diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 2db0393f..a84b7c22 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -37,9 +37,9 @@ android { else -> 0 } - val vCode = 217 + val vCode = 220 versionCode = vCode - singleAbiNum - versionName = "1.2.28" + versionName = "1.2.29" ndk { //noinspection ChromeOsAbiSupport diff --git a/app/src/main/resources/web/assets/AIChatView-46541959.js b/app/src/main/resources/web/assets/AIChatView-81429749.js similarity index 95% rename from app/src/main/resources/web/assets/AIChatView-46541959.js rename to app/src/main/resources/web/assets/AIChatView-81429749.js index 494c27aa..8df6b9f5 100644 --- a/app/src/main/resources/web/assets/AIChatView-46541959.js +++ b/app/src/main/resources/web/assets/AIChatView-81429749.js @@ -1,4 +1,4 @@ -import{d as Z,e as ee,u as te,D as ae,r,s as se,f as ne,g as oe,i as B,aQ as ie,U as Q,O as le,P as R,Q as ce,R as de,c as u,a as s,p as h,H as f,j as l,x as re,a$ as ue,b0 as pe,b1 as _e,o as c,F as ve,J as me,t as p,b2 as I,k as N,S as he,m as $,Y as K,h as z,b3 as F,v as fe,ap as y,l as m,b4 as ye,at as ge,b5 as Ce,A as be,B as ke,_ as Ae}from"./index-f62f2ff2.js";import{g as G,M as we}from"./splitpanes.es-2b477659.js";import{u as Me}from"./markdown-737d43fa.js";const Ie=g=>(be("data-v-511dc1cd"),g=g(),ke(),g),$e={class:"page-container"},xe={class:"main"},Te={key:0,class:"date"},De={class:"chat-title"},Le={class:"name"},Se={class:"time"},Ve={class:"menu-items"},He=["onClick","disabled"],Be={slot:"headline"},Qe={key:2,class:"chat-title"},Re={class:"name"},Ne={class:"time"},Ke=["innerHTML"],ze={key:0,class:"chat-item replying"},Fe={class:"chat-title"},Ge={class:"name"},Ue=["innerHTML"],qe=["placeholder","onKeydown"],Pe={class:"btns"},je=["onClick"],Ee=Ie(()=>s("md-ripple",null,null,-1)),Je=Z({__name:"AIChatView",setup(g){const U=ee(),{t:q}=te(),P=ae(),d=r(P.params.id),i=r(""),_=r([]),C=r(!1),b=r(""),A=r(""),{app:j,urlTokenKey:E}=se(ne()),x=r(),{render:k}=Me(j,E);function w(){return d.value==="create"}function J(e,t){let n=!1;if(t==0)n=!0;else{const o=t>0?_.value[t-1]:null;o!=null&&I(o.createdAt)!==I(e.createdAt)&&(n=!0)}return n}w()||oe({handle:async(e,t)=>{if(t)re(q(t),"error");else{const n=[];n.push({...e.aiChat,md:await k(e.aiChat.content)});for(const o of e.aiChats)n.push({...o,md:await k(o.content)});_.value=n,await Q(),L()}},document:ue,variables:()=>({id:d.value,query:`parent_id:${d.value} sort:created_at-asc`}),appApi:!0});const{mutate:T,onDone:O}=B({document:pe,appApi:!0});function D(){!i.value||C.value||T({id:w()?"":d.value,message:i.value,isMe:!0})}O(async e=>{var n;const t=e.data.createAIChat;if(t){for(const v of t)(n=_.value)==null||n.push({...v,md:await k(v.content)});w()&&(d.value=t[0].id,ie(U,`/aichats/${d.value}`)),i.value="",C.value=!C.value,b.value="",A.value='',await Q(),L()}});function L(){const e=x.value;e&&(e.scrollTop=e.scrollHeight)}const M=r(""),{mutate:Y,loading:W}=B({document:_e,options:{update:e=>{var n,o;e.evict({id:e.identify({__typename:"AIChat",id:M.value})});const t=(n=_.value)==null?void 0:n.findIndex(v=>v.id===M.value);t!==null&&((o=_.value)==null||o.splice(t,1))}},appApi:!0});function X(e){M.value=e,Y({query:`ids:${e}`})}const S=async e=>{e.parentId===d.value&&(b.value+=e.content,A.value=await k(b.value+''),e.finishReason==="stop"&&T({id:d.value,message:b.value,isMe:!1}))};return le(()=>{R.on("ai_chat_replied",S)}),ce(()=>{R.off("ai_chat_replied",S)}),(e,t)=>{const n=ye,o=ge,v=Ce,V=de("tooltip");return c(),u("div",$e,[s("div",xe,[h(l(we),{class:"chat-container",horizontal:""},{default:f(()=>[h(l(G),{size:"80"},{default:f(()=>[s("div",{class:"chat-items",ref_key:"scrollContainer",ref:x},[(c(!0),u(ve,null,me(_.value,(a,H)=>(c(),u("div",{key:a.id,class:"chat-item"},[J(a,H)?(c(),u("div",Te,p(l(I)(a.createdAt)),1)):N("",!0),H>0?(c(),he(o,{key:1},{content:f(()=>[s("div",Ve,[s("md-menu-item",{onClick:Oe=>X(a.id),disabled:l(W)},[s("div",Be,p(e.$t("delete_message")),1)],8,He)])]),default:f(()=>[s("div",De,[s("span",Le,p(e.$t(a.isMe?"me":"ai")),1),$((c(),u("span",Se,[z(p(l(F)(a.createdAt)),1)])),[[V,l(K)(a.createdAt)]]),h(n,{class:"bi bi-more"})])]),_:2},1024)):(c(),u("div",Qe,[s("span",Re,p(e.$t(a.isMe?"me":"ai")),1),$((c(),u("span",Ne,[z(p(l(F)(a.createdAt)),1)])),[[V,l(K)(a.createdAt)]])])),s("div",{class:"chat-content md-container",innerHTML:a.md},null,8,Ke)]))),128)),C.value?(c(),u("div",ze,[s("div",Fe,[s("span",Ge,p(e.$t("ai")),1)]),s("div",{class:"chat-content md-container",innerHTML:A.value},null,8,Ue)])):N("",!0)],512)]),_:1}),h(l(G),{class:"chat-input",size:"12",style:{"min-height":"80px"}},{default:f(()=>[$(s("md-outlined-text-field",{class:"textarea",type:"textarea","onUpdate:modelValue":t[0]||(t[0]=a=>i.value=a),autocomplete:"off",placeholder:e.$t("chat_input_hint"),onKeydown:[y(m(D,["exact","prevent"]),["enter"]),t[1]||(t[1]=y(m(a=>i.value+=` +import{d as Z,e as ee,u as te,D as ae,r,s as se,f as ne,g as oe,i as B,aQ as ie,U as Q,O as le,P as R,Q as ce,R as de,c as u,a as s,p as h,H as f,j as l,x as re,a$ as ue,b0 as pe,b1 as _e,o as c,F as ve,J as me,t as p,b2 as I,k as N,S as he,m as $,Y as K,h as z,b3 as F,v as fe,ap as y,l as m,b4 as ye,at as ge,b5 as Ce,A as be,B as ke,_ as Ae}from"./index-0c42270c.js";import{g as G,M as we}from"./splitpanes.es-7e8a6fea.js";import{u as Me}from"./markdown-fa9038b1.js";const Ie=g=>(be("data-v-511dc1cd"),g=g(),ke(),g),$e={class:"page-container"},xe={class:"main"},Te={key:0,class:"date"},De={class:"chat-title"},Le={class:"name"},Se={class:"time"},Ve={class:"menu-items"},He=["onClick","disabled"],Be={slot:"headline"},Qe={key:2,class:"chat-title"},Re={class:"name"},Ne={class:"time"},Ke=["innerHTML"],ze={key:0,class:"chat-item replying"},Fe={class:"chat-title"},Ge={class:"name"},Ue=["innerHTML"],qe=["placeholder","onKeydown"],Pe={class:"btns"},je=["onClick"],Ee=Ie(()=>s("md-ripple",null,null,-1)),Je=Z({__name:"AIChatView",setup(g){const U=ee(),{t:q}=te(),P=ae(),d=r(P.params.id),i=r(""),_=r([]),C=r(!1),b=r(""),A=r(""),{app:j,urlTokenKey:E}=se(ne()),x=r(),{render:k}=Me(j,E);function w(){return d.value==="create"}function J(e,t){let n=!1;if(t==0)n=!0;else{const o=t>0?_.value[t-1]:null;o!=null&&I(o.createdAt)!==I(e.createdAt)&&(n=!0)}return n}w()||oe({handle:async(e,t)=>{if(t)re(q(t),"error");else{const n=[];n.push({...e.aiChat,md:await k(e.aiChat.content)});for(const o of e.aiChats)n.push({...o,md:await k(o.content)});_.value=n,await Q(),L()}},document:ue,variables:()=>({id:d.value,query:`parent_id:${d.value} sort:created_at-asc`}),appApi:!0});const{mutate:T,onDone:O}=B({document:pe,appApi:!0});function D(){!i.value||C.value||T({id:w()?"":d.value,message:i.value,isMe:!0})}O(async e=>{var n;const t=e.data.createAIChat;if(t){for(const v of t)(n=_.value)==null||n.push({...v,md:await k(v.content)});w()&&(d.value=t[0].id,ie(U,`/aichats/${d.value}`)),i.value="",C.value=!C.value,b.value="",A.value='',await Q(),L()}});function L(){const e=x.value;e&&(e.scrollTop=e.scrollHeight)}const M=r(""),{mutate:Y,loading:W}=B({document:_e,options:{update:e=>{var n,o;e.evict({id:e.identify({__typename:"AIChat",id:M.value})});const t=(n=_.value)==null?void 0:n.findIndex(v=>v.id===M.value);t!==null&&((o=_.value)==null||o.splice(t,1))}},appApi:!0});function X(e){M.value=e,Y({query:`ids:${e}`})}const S=async e=>{e.parentId===d.value&&(b.value+=e.content,A.value=await k(b.value+''),e.finishReason==="stop"&&T({id:d.value,message:b.value,isMe:!1}))};return le(()=>{R.on("ai_chat_replied",S)}),ce(()=>{R.off("ai_chat_replied",S)}),(e,t)=>{const n=ye,o=ge,v=Ce,V=de("tooltip");return c(),u("div",$e,[s("div",xe,[h(l(we),{class:"chat-container",horizontal:""},{default:f(()=>[h(l(G),{size:"80"},{default:f(()=>[s("div",{class:"chat-items",ref_key:"scrollContainer",ref:x},[(c(!0),u(ve,null,me(_.value,(a,H)=>(c(),u("div",{key:a.id,class:"chat-item"},[J(a,H)?(c(),u("div",Te,p(l(I)(a.createdAt)),1)):N("",!0),H>0?(c(),he(o,{key:1},{content:f(()=>[s("div",Ve,[s("md-menu-item",{onClick:Oe=>X(a.id),disabled:l(W)},[s("div",Be,p(e.$t("delete_message")),1)],8,He)])]),default:f(()=>[s("div",De,[s("span",Le,p(e.$t(a.isMe?"me":"ai")),1),$((c(),u("span",Se,[z(p(l(F)(a.createdAt)),1)])),[[V,l(K)(a.createdAt)]]),h(n,{class:"bi bi-more"})])]),_:2},1024)):(c(),u("div",Qe,[s("span",Re,p(e.$t(a.isMe?"me":"ai")),1),$((c(),u("span",Ne,[z(p(l(F)(a.createdAt)),1)])),[[V,l(K)(a.createdAt)]])])),s("div",{class:"chat-content md-container",innerHTML:a.md},null,8,Ke)]))),128)),C.value?(c(),u("div",ze,[s("div",Fe,[s("span",Ge,p(e.$t("ai")),1)]),s("div",{class:"chat-content md-container",innerHTML:A.value},null,8,Ue)])):N("",!0)],512)]),_:1}),h(l(G),{class:"chat-input",size:"12",style:{"min-height":"80px"}},{default:f(()=>[$(s("md-outlined-text-field",{class:"textarea",type:"textarea","onUpdate:modelValue":t[0]||(t[0]=a=>i.value=a),autocomplete:"off",placeholder:e.$t("chat_input_hint"),onKeydown:[y(m(D,["exact","prevent"]),["enter"]),t[1]||(t[1]=y(m(a=>i.value+=` `,["shift","exact","prevent"]),["enter"])),t[2]||(t[2]=y(m(a=>i.value+=` `,["ctrl","exact","prevent"]),["enter"])),t[3]||(t[3]=y(m(a=>i.value+=` `,["alt","exact","prevent"]),["enter"])),t[4]||(t[4]=y(m(a=>i.value+=` diff --git a/app/src/main/resources/web/assets/AIChatsRootView-1a9d7e4e.js b/app/src/main/resources/web/assets/AIChatsRootView-9d2a06a5.js similarity index 91% rename from app/src/main/resources/web/assets/AIChatsRootView-1a9d7e4e.js rename to app/src/main/resources/web/assets/AIChatsRootView-9d2a06a5.js index 071d63bb..0c304dd4 100644 --- a/app/src/main/resources/web/assets/AIChatsRootView-1a9d7e4e.js +++ b/app/src/main/resources/web/assets/AIChatsRootView-9d2a06a5.js @@ -1 +1 @@ -import{_ as A}from"./TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js";import{o as p,c as _,a as e,d as k,r as M,u as L,i as V,b6 as x,an as G,g as I,x as D,b7 as N,U as S,ao as C,m as w,v as Z,j as t,n as B,ap as K,t as m,D as P,e as Q,E as R,G as z,R as E,p as i,H as $,h as F,l as b,I as H,C as U,a2 as j}from"./index-f62f2ff2.js";import{g as y,M as J}from"./splitpanes.es-2b477659.js";import{u as O,a as W}from"./vee-validate.esm-65abdaa1.js";import"./EditValueModal-d57e85f6.js";const X={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Y=e("path",{fill:"currentColor",d:"m9.25 22l-.4-3.2q-.325-.125-.613-.3t-.562-.375L4.7 19.375l-2.75-4.75l2.575-1.95Q4.5 12.5 4.5 12.337v-.674q0-.163.025-.338L1.95 9.375l2.75-4.75l2.975 1.25q.275-.2.575-.375t.6-.3l.4-3.2h5.5l.4 3.2q.325.125.613.3t.562.375l2.975-1.25l2.75 4.75l-2.575 1.95q.025.175.025.338v.674q0 .163-.05.338l2.575 1.95l-2.75 4.75l-2.95-1.25q-.275.2-.575.375t-.6.3l-.4 3.2h-5.5Zm2.8-6.5q1.45 0 2.475-1.025T15.55 12q0-1.45-1.025-2.475T12.05 8.5q-1.475 0-2.488 1.025T8.55 12q0 1.45 1.012 2.475T12.05 15.5Zm0-2q-.625 0-1.063-.438T10.55 12q0-.625.438-1.063t1.062-.437q.625 0 1.063.438T13.55 12q0 .625-.438 1.063t-1.062.437ZM12 12Zm-1 8h1.975l.35-2.65q.775-.2 1.438-.588t1.212-.937l2.475 1.025l.975-1.7l-2.15-1.625q.125-.35.175-.737T17.5 12q0-.4-.05-.787t-.175-.738l2.15-1.625l-.975-1.7l-2.475 1.05q-.55-.575-1.212-.962t-1.438-.588L13 4h-1.975l-.35 2.65q-.775.2-1.437.588t-1.213.937L5.55 7.15l-.975 1.7l2.15 1.6q-.125.375-.175.75t-.05.8q0 .4.05.775t.175.75l-2.15 1.625l.975 1.7l2.475-1.05q.55.575 1.213.963t1.437.587L11 20Z"},null,-1),tt=[Y];function et(h,r){return p(),_("svg",X,tt)}const ot={name:"material-symbols-settings-outline",render:et},st=e("div",{slot:"headline"},"ChatGPT",-1),at={slot:"content"},nt=["label","error","error-text"],lt={slot:"actions"},it=["disabled"],rt=k({__name:"AIChatConfigModal",props:{value:{type:String}},setup(h){const r=h,{handleSubmit:v}=O(),c=M(),{t:f}=L(),{mutate:q,loading:u,onDone:T}=V({document:x,options:{update:()=>{}},appApi:!0}),{value:a,resetField:g,errorMessage:d}=W("inputValue",G());a.value=r.value??"",a.value||g(),I({handle:(s,o)=>{o?D(f(o),"error"):s&&(a.value=s.aiChatConfig.chatGPTApiKey)},document:N,variables:null,appApi:!0}),(async()=>{var s;await S(),(s=c.value)==null||s.focus()})();const l=v(()=>{q({chatGPTApiKey:a.value??""})});return T(()=>{C()}),(s,o)=>(p(),_("md-dialog",null,[st,e("div",at,[w(e("md-outlined-text-field",{ref_key:"input",ref:c,label:s.$t("api_key"),class:"form-control","onUpdate:modelValue":o[0]||(o[0]=n=>B(a)?a.value=n:null),onKeyup:o[1]||(o[1]=K((...n)=>t(l)&&t(l)(...n),["enter"])),error:t(d),"error-text":t(d)?s.$t(t(d)):""},null,40,nt),[[Z,t(a)]])]),e("div",lt,[e("md-outlined-button",{value:"cancel",onClick:o[2]||(o[2]=(...n)=>t(C)&&t(C)(...n))},m(s.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:t(u),onClick:o[3]||(o[3]=(...n)=>t(l)&&t(l)(...n)),autofocus:""},m(s.$t("save")),9,it)])]))}}),ct={class:"page-container"},ut={class:"sidebar"},dt={class:"nav-title"},pt=["onClick"],_t=e("md-ripple",null,null,-1),mt={class:"nav"},ht=["onClick"],vt={class:"main"},Tt=k({__name:"AIChatsRootView",setup(h){const r=P(),v=Q(),c=R(r.query);function f(){U(v,"/aichats")}function q(){j(rt)}return(u,T)=>{const a=ot,g=A,d=z("router-view"),l=E("tooltip");return p(),_("div",ct,[i(t(J),null,{default:$(()=>[i(t(y),{size:"20","min-size":"10"},{default:$(()=>[e("div",ut,[e("h2",dt,[F(m(u.$t("page_title.aichats"))+" ",1),w((p(),_("button",{class:"icon-button",onClick:b(q,["prevent"])},[_t,i(a)],8,pt)),[[l,u.$t("config")]])]),e("ul",mt,[e("li",{onClick:b(f,["prevent"]),class:H({active:t(r).path==="/aichats"&&!t(c)})},m(u.$t("all")),11,ht)]),i(g,{type:"AI_CHAT",selected:t(c)},null,8,["selected"])])]),_:1}),i(t(y),null,{default:$(()=>[e("div",vt,[i(d)])]),_:1})]),_:1})])}}});export{Tt as default}; +import{_ as A}from"./TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js";import{o as p,c as _,a as e,d as k,r as M,u as L,i as V,b6 as x,an as G,g as I,x as D,b7 as N,U as S,ao as C,m as w,v as Z,j as t,n as B,ap as K,t as m,D as P,e as Q,E as R,G as z,R as E,p as i,H as $,h as F,l as b,I as H,C as U,a2 as j}from"./index-0c42270c.js";import{g as y,M as J}from"./splitpanes.es-7e8a6fea.js";import{u as O,a as W}from"./vee-validate.esm-ca78f26f.js";import"./EditValueModal-c22a5b2d.js";const X={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Y=e("path",{fill:"currentColor",d:"m9.25 22l-.4-3.2q-.325-.125-.613-.3t-.562-.375L4.7 19.375l-2.75-4.75l2.575-1.95Q4.5 12.5 4.5 12.337v-.674q0-.163.025-.338L1.95 9.375l2.75-4.75l2.975 1.25q.275-.2.575-.375t.6-.3l.4-3.2h5.5l.4 3.2q.325.125.613.3t.562.375l2.975-1.25l2.75 4.75l-2.575 1.95q.025.175.025.338v.674q0 .163-.05.338l2.575 1.95l-2.75 4.75l-2.95-1.25q-.275.2-.575.375t-.6.3l-.4 3.2h-5.5Zm2.8-6.5q1.45 0 2.475-1.025T15.55 12q0-1.45-1.025-2.475T12.05 8.5q-1.475 0-2.488 1.025T8.55 12q0 1.45 1.012 2.475T12.05 15.5Zm0-2q-.625 0-1.063-.438T10.55 12q0-.625.438-1.063t1.062-.437q.625 0 1.063.438T13.55 12q0 .625-.438 1.063t-1.062.437ZM12 12Zm-1 8h1.975l.35-2.65q.775-.2 1.438-.588t1.212-.937l2.475 1.025l.975-1.7l-2.15-1.625q.125-.35.175-.737T17.5 12q0-.4-.05-.787t-.175-.738l2.15-1.625l-.975-1.7l-2.475 1.05q-.55-.575-1.212-.962t-1.438-.588L13 4h-1.975l-.35 2.65q-.775.2-1.437.588t-1.213.937L5.55 7.15l-.975 1.7l2.15 1.6q-.125.375-.175.75t-.05.8q0 .4.05.775t.175.75l-2.15 1.625l.975 1.7l2.475-1.05q.55.575 1.213.963t1.437.587L11 20Z"},null,-1),tt=[Y];function et(h,r){return p(),_("svg",X,tt)}const ot={name:"material-symbols-settings-outline",render:et},st=e("div",{slot:"headline"},"ChatGPT",-1),at={slot:"content"},nt=["label","error","error-text"],lt={slot:"actions"},it=["disabled"],rt=k({__name:"AIChatConfigModal",props:{value:{type:String}},setup(h){const r=h,{handleSubmit:v}=O(),c=M(),{t:f}=L(),{mutate:q,loading:u,onDone:T}=V({document:x,options:{update:()=>{}},appApi:!0}),{value:a,resetField:g,errorMessage:d}=W("inputValue",G());a.value=r.value??"",a.value||g(),I({handle:(s,o)=>{o?D(f(o),"error"):s&&(a.value=s.aiChatConfig.chatGPTApiKey)},document:N,variables:null,appApi:!0}),(async()=>{var s;await S(),(s=c.value)==null||s.focus()})();const l=v(()=>{q({chatGPTApiKey:a.value??""})});return T(()=>{C()}),(s,o)=>(p(),_("md-dialog",null,[st,e("div",at,[w(e("md-outlined-text-field",{ref_key:"input",ref:c,label:s.$t("api_key"),class:"form-control","onUpdate:modelValue":o[0]||(o[0]=n=>B(a)?a.value=n:null),onKeyup:o[1]||(o[1]=K((...n)=>t(l)&&t(l)(...n),["enter"])),error:t(d),"error-text":t(d)?s.$t(t(d)):""},null,40,nt),[[Z,t(a)]])]),e("div",lt,[e("md-outlined-button",{value:"cancel",onClick:o[2]||(o[2]=(...n)=>t(C)&&t(C)(...n))},m(s.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:t(u),onClick:o[3]||(o[3]=(...n)=>t(l)&&t(l)(...n)),autofocus:""},m(s.$t("save")),9,it)])]))}}),ct={class:"page-container"},ut={class:"sidebar"},dt={class:"nav-title"},pt=["onClick"],_t=e("md-ripple",null,null,-1),mt={class:"nav"},ht=["onClick"],vt={class:"main"},Tt=k({__name:"AIChatsRootView",setup(h){const r=P(),v=Q(),c=R(r.query);function f(){U(v,"/aichats")}function q(){j(rt)}return(u,T)=>{const a=ot,g=A,d=z("router-view"),l=E("tooltip");return p(),_("div",ct,[i(t(J),null,{default:$(()=>[i(t(y),{size:"20","min-size":"10"},{default:$(()=>[e("div",ut,[e("h2",dt,[F(m(u.$t("page_title.aichats"))+" ",1),w((p(),_("button",{class:"icon-button",onClick:b(q,["prevent"])},[_t,i(a)],8,pt)),[[l,u.$t("config")]])]),e("ul",mt,[e("li",{onClick:b(f,["prevent"]),class:H({active:t(r).path==="/aichats"&&!t(c)})},m(u.$t("all")),11,ht)]),i(g,{type:"AI_CHAT",selected:t(c)},null,8,["selected"])])]),_:1}),i(t(y),null,{default:$(()=>[e("div",vt,[i(d)])]),_:1})]),_:1})])}}});export{Tt as default}; diff --git a/app/src/main/resources/web/assets/AIChatsView-2665297a.js b/app/src/main/resources/web/assets/AIChatsView-2decde9e.js similarity index 93% rename from app/src/main/resources/web/assets/AIChatsView-2665297a.js rename to app/src/main/resources/web/assets/AIChatsView-2decde9e.js index c8f2b4ea..c77c82cc 100644 --- a/app/src/main/resources/web/assets/AIChatsView-2665297a.js +++ b/app/src/main/resources/web/assets/AIChatsView-2decde9e.js @@ -1,4 +1,4 @@ -import{c as fe,u as ve,_ as ke,a as be,b as $e}from"./list-45297bd9.js";import{d as Ce,e as ye,r as k,u as Ae,K as Te,L as we,D as Ie,M as qe,N as De,w as Se,O as Ve,P as b,Q as Qe,R as Re,c as o,a as t,p as c,j as s,F as T,m as _,l as u,k as q,t as d,H as Ue,J as K,S as Be,T as Me,U as Ne,b1 as Le,x as Fe,b8 as He,C as j,W as E,o as n,v as ze,I as Pe,aR as Ge,Y as J,h as O,Z as W,$ as Ke,a0 as je,a1 as Ee,b9 as Y,a2 as Z,ab as Je,ac as Oe,a3 as We,ad as Ye,a4 as Ze,a5 as Xe,a6 as xe}from"./index-f62f2ff2.js";import{_ as et}from"./Breadcrumb-ebe74d39.js";import{u as tt,a as at}from"./tags-06583423.js";import"./vee-validate.esm-65abdaa1.js";const st={class:"v-toolbar"},lt=t("md-ripple",null,null,-1),nt=t("md-ripple",null,null,-1),ot=["onClick"],dt={class:"filters"},ct=["label"],it={class:"form-label"},ut=["label","selected","onClick"],rt={class:"buttons"},_t=["onClick"],pt={class:"table-responsive"},ht={class:"table"},mt=["checked","indeterminate"],gt=t("th",null,"ID",-1),ft=t("th",null,null,-1),vt=["onClick"],kt=["checked"],bt=["onClick"],$t={class:"nowrap"},Ct={class:"action-btns"},yt=["onClick"],At=t("md-ripple",null,null,-1),Tt=["onClick"],wt=t("md-ripple",null,null,-1),It={class:"nowrap"},qt={class:"nowrap"},Dt={key:0},St={colspan:"7"},Vt={class:"no-data-placeholder"},$=50,Ft=Ce({__name:"AIChatsView",setup(Qt){var H,z;const D=ye(),p=k([]),S=k(),{t:X}=Ae(),i=Te({text:"",tags:[]}),r=we.AI_CHAT,V=Ie().query,C=k(parseInt(((H=V.page)==null?void 0:H.toString())??"1")),h=k(qe(((z=V.q)==null?void 0:z.toString())??"")),y=k(""),{tags:A}=tt(r,h,i,async e=>{e.push({name:"parent_id",op:"",value:""}),y.value=Me(e),await Ne(),ne()}),{addToTags:x}=at(r,p,A),{deleteItems:ee}=fe(Le,()=>{I()},p),{allChecked:Q,realAllChecked:w,selectRealAll:te,allCheckedAlertVisible:ae,clearSelection:R,toggleAllChecked:U,toggleItemChecked:B,toggleRow:se,total:m,checked:M}=ve(p),{loading:le,load:ne,refetch:I}=De({handle:(e,l)=>{l?Fe(X(l),"error"):e&&(p.value=e.aiChats.map(v=>({...v,checked:!1})),m.value=e.aiChatCount)},document:He,variables:()=>({offset:(C.value-1)*$,limit:$,query:y.value}),appApi:!0});Se(C,e=>{j(D,`/aichats?page=${e}&q=${E(h.value)}`)});function oe(e){i.tags.includes(e)?je(i.tags,l=>l.id===e.id):i.tags.push(e)}function de(){h.value=Ee(i),N(),S.value.dismiss()}function N(){j(D,`/aichats?q=${E(h.value)}`)}const L=e=>{e.type===r&&(R(),I())},F=e=>{e.type===r&&I()};Ve(()=>{b.on("item_tags_updated",F),b.on("items_tags_updated",L)}),Qe(()=>{b.off("item_tags_updated",F),b.off("items_tags_updated",L)});function ce(e){Y(`/aichats/${e.id}`)}function ie(){Y("/aichats/create")}function ue(e){Z(Oe,{id:e.id,name:e.id,gql:Je` +import{c as fe,u as ve,_ as ke,a as be,b as $e}from"./list-183f8357.js";import{d as Ce,e as ye,r as k,u as Ae,K as Te,L as we,D as Ie,M as qe,N as De,w as Se,O as Ve,P as b,Q as Qe,R as Re,c as o,a as t,p as c,j as s,F as T,m as _,l as u,k as q,t as d,H as Ue,J as K,S as Be,T as Me,U as Ne,b1 as Le,x as Fe,b8 as He,C as j,W as E,o as n,v as ze,I as Pe,aR as Ge,Y as J,h as O,Z as W,$ as Ke,a0 as je,a1 as Ee,b9 as Y,a2 as Z,ab as Je,ac as Oe,a3 as We,ad as Ye,a4 as Ze,a5 as Xe,a6 as xe}from"./index-0c42270c.js";import{_ as et}from"./Breadcrumb-f52b6c6b.js";import{u as tt,a as at}from"./tags-bf0f6db9.js";import"./vee-validate.esm-ca78f26f.js";const st={class:"v-toolbar"},lt=t("md-ripple",null,null,-1),nt=t("md-ripple",null,null,-1),ot=["onClick"],dt={class:"filters"},ct=["label"],it={class:"form-label"},ut=["label","selected","onClick"],rt={class:"buttons"},_t=["onClick"],pt={class:"table-responsive"},ht={class:"table"},mt=["checked","indeterminate"],gt=t("th",null,"ID",-1),ft=t("th",null,null,-1),vt=["onClick"],kt=["checked"],bt=["onClick"],$t={class:"nowrap"},Ct={class:"action-btns"},yt=["onClick"],At=t("md-ripple",null,null,-1),Tt=["onClick"],wt=t("md-ripple",null,null,-1),It={class:"nowrap"},qt={class:"nowrap"},Dt={key:0},St={colspan:"7"},Vt={class:"no-data-placeholder"},$=50,Ft=Ce({__name:"AIChatsView",setup(Qt){var H,z;const D=ye(),p=k([]),S=k(),{t:X}=Ae(),i=Te({text:"",tags:[]}),r=we.AI_CHAT,V=Ie().query,C=k(parseInt(((H=V.page)==null?void 0:H.toString())??"1")),h=k(qe(((z=V.q)==null?void 0:z.toString())??"")),y=k(""),{tags:A}=tt(r,h,i,async e=>{e.push({name:"parent_id",op:"",value:""}),y.value=Me(e),await Ne(),ne()}),{addToTags:x}=at(r,p,A),{deleteItems:ee}=fe(Le,()=>{I()},p),{allChecked:Q,realAllChecked:w,selectRealAll:te,allCheckedAlertVisible:ae,clearSelection:R,toggleAllChecked:U,toggleItemChecked:B,toggleRow:se,total:m,checked:M}=ve(p),{loading:le,load:ne,refetch:I}=De({handle:(e,l)=>{l?Fe(X(l),"error"):e&&(p.value=e.aiChats.map(v=>({...v,checked:!1})),m.value=e.aiChatCount)},document:He,variables:()=>({offset:(C.value-1)*$,limit:$,query:y.value}),appApi:!0});Se(C,e=>{j(D,`/aichats?page=${e}&q=${E(h.value)}`)});function oe(e){i.tags.includes(e)?je(i.tags,l=>l.id===e.id):i.tags.push(e)}function de(){h.value=Ee(i),N(),S.value.dismiss()}function N(){j(D,`/aichats?q=${E(h.value)}`)}const L=e=>{e.type===r&&(R(),I())},F=e=>{e.type===r&&I()};Ve(()=>{b.on("item_tags_updated",F),b.on("items_tags_updated",L)}),Qe(()=>{b.off("item_tags_updated",F),b.off("items_tags_updated",L)});function ce(e){Y(`/aichats/${e.id}`)}function ie(){Y("/aichats/create")}function ue(e){Z(Oe,{id:e.id,name:e.id,gql:Je` mutation DeleteAIChat($query: String!) { deleteAIChats(query: $query) } diff --git a/app/src/main/resources/web/assets/AppsRootView-6c309c18.js b/app/src/main/resources/web/assets/AppsRootView-fab2d856.js similarity index 93% rename from app/src/main/resources/web/assets/AppsRootView-6c309c18.js rename to app/src/main/resources/web/assets/AppsRootView-fab2d856.js index 14e377e1..26e1bebc 100644 --- a/app/src/main/resources/web/assets/AppsRootView-6c309c18.js +++ b/app/src/main/resources/web/assets/AppsRootView-fab2d856.js @@ -1 +1 @@ -import{d as k,D as $,e as g,G as w,c as p,p as o,H as n,j as t,o as r,a as e,t as i,l as _,I as u,F as B,J as z,C as d}from"./index-f62f2ff2.js";import{g as m,M}from"./splitpanes.es-2b477659.js";const S={class:"page-container"},V={class:"sidebar"},D={class:"nav-title"},F={class:"nav"},N=["onClick"],R=["onClick"],b={class:"main"},I=k({__name:"AppsRootView",setup(j){const l=$(),c=g(),h=l.params.type;function v(s){d(c,`/apps/${s}`)}const f=["user","system"];function y(){d(c,"/apps")}return(s,A)=>{const C=w("router-view");return r(),p("div",S,[o(t(M),null,{default:n(()=>[o(t(m),{size:"20","min-size":"10"},{default:n(()=>[e("div",V,[e("h2",D,i(s.$t("page_title.apps")),1),e("ul",F,[e("li",{onClick:_(y,["prevent"]),class:u({active:t(l).path==="/apps"})},i(s.$t("all")),11,N),(r(),p(B,null,z(f,a=>e("li",{key:a,onClick:_(E=>v(a),["prevent"]),class:u({active:a===t(h)})},i(s.$t(`app_type.${a}`)),11,R)),64))])])]),_:1}),o(t(m),null,{default:n(()=>[e("div",b,[o(C)])]),_:1})]),_:1})])}}});export{I as default}; +import{d as k,D as $,e as g,G as w,c as p,p as o,H as n,j as t,o as r,a as e,t as i,l as _,I as u,F as B,J as z,C as d}from"./index-0c42270c.js";import{g as m,M}from"./splitpanes.es-7e8a6fea.js";const S={class:"page-container"},V={class:"sidebar"},D={class:"nav-title"},F={class:"nav"},N=["onClick"],R=["onClick"],b={class:"main"},I=k({__name:"AppsRootView",setup(j){const l=$(),c=g(),h=l.params.type;function v(s){d(c,`/apps/${s}`)}const f=["user","system"];function y(){d(c,"/apps")}return(s,A)=>{const C=w("router-view");return r(),p("div",S,[o(t(M),null,{default:n(()=>[o(t(m),{size:"20","min-size":"10"},{default:n(()=>[e("div",V,[e("h2",D,i(s.$t("page_title.apps")),1),e("ul",F,[e("li",{onClick:_(y,["prevent"]),class:u({active:t(l).path==="/apps"})},i(s.$t("all")),11,N),(r(),p(B,null,z(f,a=>e("li",{key:a,onClick:_(E=>v(a),["prevent"]),class:u({active:a===t(h)})},i(s.$t(`app_type.${a}`)),11,R)),64))])])]),_:1}),o(t(m),null,{default:n(()=>[e("div",b,[o(C)])]),_:1})]),_:1})])}}});export{I as default}; diff --git a/app/src/main/resources/web/assets/AppsView-4f3757c0.js b/app/src/main/resources/web/assets/AppsView-79ed36fe.js similarity index 96% rename from app/src/main/resources/web/assets/AppsView-4f3757c0.js rename to app/src/main/resources/web/assets/AppsView-79ed36fe.js index f7e5df7e..e8649754 100644 --- a/app/src/main/resources/web/assets/AppsView-4f3757c0.js +++ b/app/src/main/resources/web/assets/AppsView-79ed36fe.js @@ -1 +1 @@ -import{u as ye,_ as $e,a as be,b as we}from"./list-45297bd9.js";import{d as Ce,ae as Se,e as Ae,r as k,u as De,s as Ie,f as Ve,K as Te,af as Ue,L as qe,D as Qe,M as Be,ag as Fe,T as J,g as Le,w as Pe,i as ze,N as Me,O as Re,P as O,Q as Ne,R as Ge,c as i,a as e,p as r,j as l,m as p,l as f,k as T,h as U,t as a,H as Ke,F as W,J as xe,S as je,x as Ee,ah as He,ai as Je,C as S,W as A,aj as Oe,ak as We,o,v as Ye,I as Ze,z as Xe,Y,Z,$ as et,al as tt,am as st,a5 as lt,ad as nt}from"./index-f62f2ff2.js";import{_ as at}from"./Breadcrumb-ebe74d39.js";function ot(D,I){const g=D.findIndex(y=>y.id===I);g!==-1&&D.splice(g,1)}const it={class:"v-toolbar"},dt=e("md-ripple",null,null,-1),ct=["onClick"],ut=e("md-ripple",null,null,-1),rt={class:"filters"},pt={class:"form-row"},_t=["label"],ht={class:"buttons"},ft=["onClick"],mt={class:"table-responsive"},kt={class:"table"},vt=["checked","indeterminate"],gt=e("th",null,null,-1),yt=e("th",null,null,-1),$t=["onClick"],bt=["checked"],wt=["src"],Ct={class:"v-center"},St={class:"nowrap"},At={class:"action-btns"},Dt={key:0,indeterminate:"",class:"spinner-sm"},It=["onClick"],Vt=e("md-ripple",null,null,-1),Tt=["onClick"],Ut=e("md-ripple",null,null,-1),qt={class:"nowrap"},Qt={class:"nowrap"},Bt={class:"nowrap"},Ft={class:"nowrap"},Lt={key:0},Pt={colspan:"8"},zt={class:"no-data-placeholder"},v=50,Gt=Ce({__name:"AppsView",setup(D){var j,E;const{input:I,upload:g,uploadChanged:y}=Se(),$=Ae(),d=k([]),q=k(),{t:X}=De(),{app:ee,urlTokenKey:V}=Ie(Ve()),b=Te({text:"",tags:[]}),{allChecked:Q,realAllChecked:B,selectRealAll:te,allCheckedAlertVisible:se,clearSelection:F,toggleAllChecked:L,toggleItemChecked:P,toggleRow:le,total:m,checked:z}=ye(d),{downloadItems:ne}=Ue(V,qe.PACKAGE,d,F,"apps.zip"),{downloadFile:ae}=tt(V),M=Qe(),R=M.query,w=k(parseInt(((j=R.page)==null?void 0:j.toString())??"1")),c=k(Be(((E=R.q)==null?void 0:E.toString())??"")),N=Fe(c.value),_=M.params.type;_&&N.push({name:"type",op:"",value:_});const G=k(J(N)),oe=()=>{g(ee.value.downloadsDir)},{loading:ie}=Le({handle:(t,n)=>{n?Ee(X(n),"error"):t&&(d.value=t.packages.map(u=>({...u,checked:!1,icon:He(V.value,"pkgicon://"+u.id)})),m.value=t.packageCount)},document:Je,variables:()=>({offset:(w.value-1)*v,limit:v,query:G.value}),appApi:!0});Pe(w,t=>{_?S($,`/apps/${_}?page=${t}&q=${A(c.value)}`):S($,`/apps?page=${t}&q=${A(c.value)}`)});function de(){const t=[];b.text&&t.push({name:"text",op:"",value:b.text}),c.value=J(t),K(),q.value.dismiss()}function K(){_?S($,`/apps/${_}?q=${A(c.value)}`):S($,`/apps?q=${A(c.value)}`)}const{mutate:ce,onDone:ue}=ze({document:Oe,appApi:!0});function re(t){ue(()=>{t.isUninstalling=!0}),ce({id:t.id})}const{loading:pe,load:_e,refetch:he}=Me({handle:(t,n)=>{if(t)for(const u of t.packageStatuses)u.exist||ot(d.value,u.id)},document:We,variables:()=>({ids:d.value.filter(t=>t.isUninstalling).map(t=>t.id)}),appApi:!0}),x=t=>{t.status};return Re(()=>{O.on("upload_task_done",x);let t=!0;setInterval(()=>{d.value.some(n=>n.isUninstalling)&&!pe.value&&(t?(_e(),t=!1):he())},1e3)}),Ne(()=>{O.off("upload_task_done",x)}),(t,n)=>{const u=at,H=st,fe=$e,me=be,ke=lt,ve=nt,ge=we,h=Ge("tooltip");return o(),i(W,null,[e("div",it,[r(u,{current:()=>`${t.$t("page_title.apps")} (${l(m)})`},null,8,["current"]),l(z)?p((o(),i("button",{key:0,class:"icon-button",onClick:n[0]||(n[0]=f(s=>l(ne)(l(B),G.value),["stop"]))},[dt,r(H)])),[[h,t.$t("download")]]):T("",!0),e("button",{class:"icon-button",onClick:f(oe,["stop"]),style:{display:"none"}},[ut,U(" "+a(t.$t("install")),1)],8,ct),r(fe,{ref_key:"searchInputRef",ref:q,modelValue:c.value,"onUpdate:modelValue":n[2]||(n[2]=s=>c.value=s),search:K},{filters:Ke(()=>[e("div",rt,[e("div",pt,[p(e("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":n[1]||(n[1]=s=>b.text=s),"keyup.enter":"applyAndDoSearch"},null,8,_t),[[Ye,b.text]])]),e("div",ht,[e("md-filled-button",{onClick:f(de,["stop"])},a(t.$t("search")),9,ft)])])]),_:1},8,["modelValue"])]),r(me,{limit:v,total:l(m),"all-checked-alert-visible":l(se),"real-all-checked":l(B),"select-real-all":l(te),"clear-selection":l(F)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e("div",mt,[e("table",kt,[e("thead",null,[e("tr",null,[e("th",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[3]||(n[3]=(...s)=>l(L)&&l(L)(...s)),checked:l(Q),indeterminate:!l(Q)&&l(z)},null,40,vt)]),gt,e("th",null,a(t.$t("name")),1),yt,e("th",null,a(t.$t("size")),1),e("th",null,a(t.$t("type")),1),e("th",null,a(t.$t("installed_at")),1),e("th",null,a(t.$t("updated_at")),1)])]),e("tbody",null,[(o(!0),i(W,null,xe(d.value,s=>(o(),i("tr",{key:s.id,class:Ze({selected:s.checked}),onClick:f(C=>l(le)(s),["stop"])},[e("td",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[4]||(n[4]=(...C)=>l(P)&&l(P)(...C)),checked:s.checked},null,40,bt)]),e("td",null,[e("img",{width:"50",height:"50",src:s.icon},null,8,wt)]),e("td",null,[e("strong",Ct,a(s.name)+" ("+a(s.version)+")",1),r(ke,{id:s.id,raw:s},null,8,["id","raw"])]),e("td",St,[e("div",At,[s.isUninstalling?p((o(),i("md-circular-progress",Dt,null,512)),[[h,t.$t("uninstalling")]]):p((o(),i("button",{key:1,class:"icon-button",onClick:f(C=>re(s),["stop"])},[Vt,r(ve)],8,It)),[[h,t.$t("uninstall")]]),p((o(),i("button",{class:"icon-button",onClick:f(C=>l(ae)(s.path,`${s.name.replace(" ","")}-${s.id}.apk`),["stop"])},[Ut,r(H)],8,Tt)),[[h,t.$t("download")]])])]),e("td",qt,a(l(Xe)(s.size)),1),e("td",Qt,a(t.$t("app_type."+s.type)),1),e("td",Bt,[p((o(),i("span",null,[U(a(l(Z)(s.installedAt)),1)])),[[h,l(Y)(s.installedAt)]])]),e("td",Ft,[p((o(),i("span",null,[U(a(l(Z)(s.updatedAt)),1)])),[[h,l(Y)(s.updatedAt)]])])],10,$t))),128))]),d.value.length?T("",!0):(o(),i("tfoot",Lt,[e("tr",null,[e("td",Pt,[e("div",zt,a(t.$t(l(et)(l(ie)))),1)])])]))])]),l(m)>v?(o(),je(ge,{key:0,modelValue:w.value,"onUpdate:modelValue":n[5]||(n[5]=s=>w.value=s),total:l(m),limit:v},null,8,["modelValue","total"])):T("",!0),e("input",{ref_key:"fileInput",ref:I,style:{display:"none"},type:"file",accept:".apk",multiple:"",onChange:n[6]||(n[6]=(...s)=>l(y)&&l(y)(...s))},null,544)],64)}}});export{Gt as default}; +import{u as ye,_ as $e,a as be,b as we}from"./list-183f8357.js";import{d as Ce,ae as Se,e as Ae,r as k,u as De,s as Ie,f as Ve,K as Te,af as Ue,L as qe,D as Qe,M as Be,ag as Fe,T as J,g as Le,w as Pe,i as ze,N as Me,O as Re,P as O,Q as Ne,R as Ge,c as i,a as e,p as r,j as l,m as p,l as f,k as T,h as U,t as a,H as Ke,F as W,J as xe,S as je,x as Ee,ah as He,ai as Je,C as S,W as A,aj as Oe,ak as We,o,v as Ye,I as Ze,z as Xe,Y,Z,$ as et,al as tt,am as st,a5 as lt,ad as nt}from"./index-0c42270c.js";import{_ as at}from"./Breadcrumb-f52b6c6b.js";function ot(D,I){const g=D.findIndex(y=>y.id===I);g!==-1&&D.splice(g,1)}const it={class:"v-toolbar"},dt=e("md-ripple",null,null,-1),ct=["onClick"],ut=e("md-ripple",null,null,-1),rt={class:"filters"},pt={class:"form-row"},_t=["label"],ht={class:"buttons"},ft=["onClick"],mt={class:"table-responsive"},kt={class:"table"},vt=["checked","indeterminate"],gt=e("th",null,null,-1),yt=e("th",null,null,-1),$t=["onClick"],bt=["checked"],wt=["src"],Ct={class:"v-center"},St={class:"nowrap"},At={class:"action-btns"},Dt={key:0,indeterminate:"",class:"spinner-sm"},It=["onClick"],Vt=e("md-ripple",null,null,-1),Tt=["onClick"],Ut=e("md-ripple",null,null,-1),qt={class:"nowrap"},Qt={class:"nowrap"},Bt={class:"nowrap"},Ft={class:"nowrap"},Lt={key:0},Pt={colspan:"8"},zt={class:"no-data-placeholder"},v=50,Gt=Ce({__name:"AppsView",setup(D){var j,E;const{input:I,upload:g,uploadChanged:y}=Se(),$=Ae(),d=k([]),q=k(),{t:X}=De(),{app:ee,urlTokenKey:V}=Ie(Ve()),b=Te({text:"",tags:[]}),{allChecked:Q,realAllChecked:B,selectRealAll:te,allCheckedAlertVisible:se,clearSelection:F,toggleAllChecked:L,toggleItemChecked:P,toggleRow:le,total:m,checked:z}=ye(d),{downloadItems:ne}=Ue(V,qe.PACKAGE,d,F,"apps.zip"),{downloadFile:ae}=tt(V),M=Qe(),R=M.query,w=k(parseInt(((j=R.page)==null?void 0:j.toString())??"1")),c=k(Be(((E=R.q)==null?void 0:E.toString())??"")),N=Fe(c.value),_=M.params.type;_&&N.push({name:"type",op:"",value:_});const G=k(J(N)),oe=()=>{g(ee.value.downloadsDir)},{loading:ie}=Le({handle:(t,n)=>{n?Ee(X(n),"error"):t&&(d.value=t.packages.map(u=>({...u,checked:!1,icon:He(V.value,"pkgicon://"+u.id)})),m.value=t.packageCount)},document:Je,variables:()=>({offset:(w.value-1)*v,limit:v,query:G.value}),appApi:!0});Pe(w,t=>{_?S($,`/apps/${_}?page=${t}&q=${A(c.value)}`):S($,`/apps?page=${t}&q=${A(c.value)}`)});function de(){const t=[];b.text&&t.push({name:"text",op:"",value:b.text}),c.value=J(t),K(),q.value.dismiss()}function K(){_?S($,`/apps/${_}?q=${A(c.value)}`):S($,`/apps?q=${A(c.value)}`)}const{mutate:ce,onDone:ue}=ze({document:Oe,appApi:!0});function re(t){ue(()=>{t.isUninstalling=!0}),ce({id:t.id})}const{loading:pe,load:_e,refetch:he}=Me({handle:(t,n)=>{if(t)for(const u of t.packageStatuses)u.exist||ot(d.value,u.id)},document:We,variables:()=>({ids:d.value.filter(t=>t.isUninstalling).map(t=>t.id)}),appApi:!0}),x=t=>{t.status};return Re(()=>{O.on("upload_task_done",x);let t=!0;setInterval(()=>{d.value.some(n=>n.isUninstalling)&&!pe.value&&(t?(_e(),t=!1):he())},1e3)}),Ne(()=>{O.off("upload_task_done",x)}),(t,n)=>{const u=at,H=st,fe=$e,me=be,ke=lt,ve=nt,ge=we,h=Ge("tooltip");return o(),i(W,null,[e("div",it,[r(u,{current:()=>`${t.$t("page_title.apps")} (${l(m)})`},null,8,["current"]),l(z)?p((o(),i("button",{key:0,class:"icon-button",onClick:n[0]||(n[0]=f(s=>l(ne)(l(B),G.value),["stop"]))},[dt,r(H)])),[[h,t.$t("download")]]):T("",!0),e("button",{class:"icon-button",onClick:f(oe,["stop"]),style:{display:"none"}},[ut,U(" "+a(t.$t("install")),1)],8,ct),r(fe,{ref_key:"searchInputRef",ref:q,modelValue:c.value,"onUpdate:modelValue":n[2]||(n[2]=s=>c.value=s),search:K},{filters:Ke(()=>[e("div",rt,[e("div",pt,[p(e("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":n[1]||(n[1]=s=>b.text=s),"keyup.enter":"applyAndDoSearch"},null,8,_t),[[Ye,b.text]])]),e("div",ht,[e("md-filled-button",{onClick:f(de,["stop"])},a(t.$t("search")),9,ft)])])]),_:1},8,["modelValue"])]),r(me,{limit:v,total:l(m),"all-checked-alert-visible":l(se),"real-all-checked":l(B),"select-real-all":l(te),"clear-selection":l(F)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e("div",mt,[e("table",kt,[e("thead",null,[e("tr",null,[e("th",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[3]||(n[3]=(...s)=>l(L)&&l(L)(...s)),checked:l(Q),indeterminate:!l(Q)&&l(z)},null,40,vt)]),gt,e("th",null,a(t.$t("name")),1),yt,e("th",null,a(t.$t("size")),1),e("th",null,a(t.$t("type")),1),e("th",null,a(t.$t("installed_at")),1),e("th",null,a(t.$t("updated_at")),1)])]),e("tbody",null,[(o(!0),i(W,null,xe(d.value,s=>(o(),i("tr",{key:s.id,class:Ze({selected:s.checked}),onClick:f(C=>l(le)(s),["stop"])},[e("td",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[4]||(n[4]=(...C)=>l(P)&&l(P)(...C)),checked:s.checked},null,40,bt)]),e("td",null,[e("img",{width:"50",height:"50",src:s.icon},null,8,wt)]),e("td",null,[e("strong",Ct,a(s.name)+" ("+a(s.version)+")",1),r(ke,{id:s.id,raw:s},null,8,["id","raw"])]),e("td",St,[e("div",At,[s.isUninstalling?p((o(),i("md-circular-progress",Dt,null,512)),[[h,t.$t("uninstalling")]]):p((o(),i("button",{key:1,class:"icon-button",onClick:f(C=>re(s),["stop"])},[Vt,r(ve)],8,It)),[[h,t.$t("uninstall")]]),p((o(),i("button",{class:"icon-button",onClick:f(C=>l(ae)(s.path,`${s.name.replace(" ","")}-${s.id}.apk`),["stop"])},[Ut,r(H)],8,Tt)),[[h,t.$t("download")]])])]),e("td",qt,a(l(Xe)(s.size)),1),e("td",Qt,a(t.$t("app_type."+s.type)),1),e("td",Bt,[p((o(),i("span",null,[U(a(l(Z)(s.installedAt)),1)])),[[h,l(Y)(s.installedAt)]])]),e("td",Ft,[p((o(),i("span",null,[U(a(l(Z)(s.updatedAt)),1)])),[[h,l(Y)(s.updatedAt)]])])],10,$t))),128))]),d.value.length?T("",!0):(o(),i("tfoot",Lt,[e("tr",null,[e("td",Pt,[e("div",zt,a(t.$t(l(et)(l(ie)))),1)])])]))])]),l(m)>v?(o(),je(ge,{key:0,modelValue:w.value,"onUpdate:modelValue":n[5]||(n[5]=s=>w.value=s),total:l(m),limit:v},null,8,["modelValue","total"])):T("",!0),e("input",{ref_key:"fileInput",ref:I,style:{display:"none"},type:"file",accept:".apk",multiple:"",onChange:n[6]||(n[6]=(...s)=>l(y)&&l(y)(...s))},null,544)],64)}}});export{Gt as default}; diff --git a/app/src/main/resources/web/assets/AudiosRootView-7d6b2e65.js b/app/src/main/resources/web/assets/AudiosRootView-1ba1658f.js similarity index 70% rename from app/src/main/resources/web/assets/AudiosRootView-7d6b2e65.js rename to app/src/main/resources/web/assets/AudiosRootView-1ba1658f.js index de167f74..0e49dea7 100644 --- a/app/src/main/resources/web/assets/AudiosRootView-7d6b2e65.js +++ b/app/src/main/resources/web/assets/AudiosRootView-1ba1658f.js @@ -1 +1 @@ -import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-9dafd033.js";import{d as C,D as w,e as y,az as z,G as B,c as D,p as s,H as o,j as e,o as I,a,t as d,l as $,I as b,C as A}from"./index-f62f2ff2.js";import{g as u,M}from"./splitpanes.es-2b477659.js";import"./EditValueModal-d57e85f6.js";import"./vee-validate.esm-65abdaa1.js";const N={class:"page-container"},S={class:"sidebar"},V={class:"nav-title"},O={class:"nav"},R=["onClick"],U={class:"main"},Q=C({__name:"AudiosRootView",setup(j){var r,_;const n=w(),m=y(),i=z(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){A(m,"/audios")}return(t,q)=>{const f=k,h=g,v=B("router-view");return I(),D("div",N,[s(e(M),null,{default:o(()=>[s(e(u),{size:"20","min-size":"10"},{default:o(()=>[a("aside",S,[a("h2",V,d(t.$t("page_title.audios")),1),a("ul",O,[a("li",{onClick:$(p,["prevent"]),class:b({active:e(n).path==="/audios"&&!e(c)&&!e(l)})},d(t.$t("all")),11,R),s(f,{type:"AUDIO",selected:e(l)},null,8,["selected"])]),s(h,{type:"AUDIO",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(u),null,{default:o(()=>[a("main",U,[s(v)])]),_:1})]),_:1})])}}});export{Q as default}; +import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-f7ab6958.js";import{d as C,D as w,e as y,az as z,G as B,c as D,p as s,H as o,j as e,o as I,a,t as d,l as $,I as b,C as A}from"./index-0c42270c.js";import{g as u,M}from"./splitpanes.es-7e8a6fea.js";import"./EditValueModal-c22a5b2d.js";import"./vee-validate.esm-ca78f26f.js";const N={class:"page-container"},S={class:"sidebar"},V={class:"nav-title"},O={class:"nav"},R=["onClick"],U={class:"main"},Q=C({__name:"AudiosRootView",setup(j){var r,_;const n=w(),m=y(),i=z(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){A(m,"/audios")}return(t,q)=>{const f=k,h=g,v=B("router-view");return I(),D("div",N,[s(e(M),null,{default:o(()=>[s(e(u),{size:"20","min-size":"10"},{default:o(()=>[a("aside",S,[a("h2",V,d(t.$t("page_title.audios")),1),a("ul",O,[a("li",{onClick:$(p,["prevent"]),class:b({active:e(n).path==="/audios"&&!e(c)&&!e(l)})},d(t.$t("all")),11,R),s(f,{type:"AUDIO",selected:e(l)},null,8,["selected"])]),s(h,{type:"AUDIO",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(u),null,{default:o(()=>[a("main",U,[s(v)])]),_:1})]),_:1})])}}});export{Q as default}; diff --git a/app/src/main/resources/web/assets/AudiosView-dd82950e.js b/app/src/main/resources/web/assets/AudiosView-6a234a76.js similarity index 96% rename from app/src/main/resources/web/assets/AudiosView-dd82950e.js rename to app/src/main/resources/web/assets/AudiosView-6a234a76.js index f9f015c3..aca6a222 100644 --- a/app/src/main/resources/web/assets/AudiosView-dd82950e.js +++ b/app/src/main/resources/web/assets/AudiosView-6a234a76.js @@ -1 +1 @@ -import{u as Le,_ as Qe,a as ze,b as Fe}from"./list-45297bd9.js";import{o as l,c as a,a as e,i as ae,aK as He,u as ie,P as k,x as de,r as D,aL as Ue,d as Ne,e as Ge,s as Ke,f as xe,K as Oe,L as je,D as We,M as Je,aB as Xe,af as Ye,aA as et,N as tt,w as ot,O as st,Q as nt,R as lt,p as d,j as o,F as E,m as f,l as m,k as Q,H as at,t as g,J as oe,S as it,T as dt,U as ct,aM as ut,C as se,W as ne,v as rt,I as _t,aF as pt,a9 as mt,z as ht,$ as ft,A as gt,B as vt,al as yt,as as kt,aG as bt,a0 as $t,a1 as Tt,a2 as qt,a3 as Ct,ad as wt,am as It,a4 as At,a5 as St,a6 as Dt,_ as Vt}from"./index-f62f2ff2.js";import{_ as Bt}from"./upload-rounded-886d7dcb.js";import{_ as Rt}from"./Breadcrumb-ebe74d39.js";import{u as Mt,a as Pt}from"./tags-06583423.js";import"./vee-validate.esm-65abdaa1.js";const Zt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Et=e("path",{fill:"currentColor",d:"M9.5 9.325v5.35q0 .6.525.875t1.025-.05l4.15-2.65q.475-.275.475-.85t-.475-.85L11.05 8.5q-.5-.325-1.025-.05t-.525.875ZM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),Lt=[Et];function Qt(c,v){return l(),a("svg",Zt,Lt)}const zt={name:"material-symbols-play-circle-outline-rounded",render:Qt},Ft={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ht=e("path",{fill:"currentColor",d:"M10 16q.425 0 .713-.288T11 15V8.975q0-.425-.288-.7T10 8q-.425 0-.713.288T9 9v6.025q0 .425.288.7T10 16Zm4 0q.425 0 .713-.288T15 15V8.975q0-.425-.288-.7T14 8q-.425 0-.713.288T13 9v6.025q0 .425.288.7T14 16Zm-2 6q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),Ut=[Ht];function Nt(c,v){return l(),a("svg",Ft,Ut)}const Gt={name:"material-symbols-pause-circle-outline-rounded",render:Nt},Kt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},xt=e("path",{fill:"currentColor",d:"M3 16v-2h7v2H3Zm0-4v-2h11v2H3Zm0-4V6h11v2H3Zm13 12v-4h-4v-2h4v-4h2v4h4v2h-4v4h-2Z"},null,-1),Ot=[xt];function jt(c,v){return l(),a("svg",Kt,Ot)}const Wt={name:"material-symbols-playlist-add",render:jt};function le(c,v,u=500){const r=c.cloneNode(!0),p=c.getBoundingClientRect(),w=v.getBoundingClientRect();r.style.position="absolute",r.style.top=p.top+"px",r.style.left=p.left+"px",r.style.opacity=1,document.body.appendChild(r);let b=0;function T(_){b||(b=_);const q=_-b,i=Math.min(q/u,1);r.style.top=p.top+(w.top-p.top)*i+"px",r.style.left=p.left+(w.left-p.left)*i+"px",i<1?requestAnimationFrame(T):document.body.removeChild(r)}requestAnimationFrame(T)}const Jt=(c,v)=>{const{mutate:u,loading:r,onDone:p}=ae({document:He,appApi:!0}),{t:w}=ie();return p(()=>{k.emit("refetch_app"),v()}),{loading:r,addItemsToPlaylist:(b,T,_)=>{let q=_;if(!T){const V=c.value.filter(C=>C.checked);if(V.length===0){de(w("select_first"),"error");return}q=`ids:${V.map(C=>C.id).join(",")}`}const i=b.target,z=document.getElementById("quick-audio");le(i,z),u({query:q})},addToPlaylist:(b,T)=>{const _=b.target,q=document.getElementById("quick-audio");le(_,q),u({query:`ids:${T.id}`})}}},Xt=()=>{const c=D(""),{mutate:v,loading:u,onDone:r}=ae({document:Ue,appApi:!0});return r(()=>{k.emit("play_audio")}),{loading:u,playPath:c,play:p=>{c.value=p.path,v({path:p.path})},pause:()=>{k.emit("pause_audio")}}},h=c=>(gt("data-v-8a476041"),c=c(),vt(),c),Yt={class:"v-toolbar"},eo=h(()=>e("md-ripple",null,null,-1)),to=h(()=>e("md-ripple",null,null,-1)),oo=h(()=>e("md-ripple",null,null,-1)),so=h(()=>e("md-ripple",null,null,-1)),no=["onClick"],lo=h(()=>e("md-ripple",null,null,-1)),ao={class:"filters"},io=["label"],co={class:"form-label"},uo=["label","selected","onClick"],ro={class:"buttons"},_o=["onClick"],po={class:"table-responsive"},mo={class:"table"},ho=["checked","indeterminate"],fo=h(()=>e("th",null,"ID",-1)),go=h(()=>e("th",null,null,-1)),vo={class:"artist"},yo=["onClick"],ko=["checked"],bo={class:"title"},$o={class:"nowrap"},To={class:"action-btns"},qo=["onClick"],Co=h(()=>e("md-ripple",null,null,-1)),wo=["onClick"],Io=h(()=>e("md-ripple",null,null,-1)),Ao=["onClick"],So=h(()=>e("md-ripple",null,null,-1)),Do=["onClick"],Vo=h(()=>e("md-ripple",null,null,-1)),Bo={key:0,indeterminate:"",class:"spinner-sm"},Ro=h(()=>e("md-ripple",null,null,-1)),Mo=["onClick"],Po=h(()=>e("md-ripple",null,null,-1)),Zo={class:"nowrap"},Eo={class:"nowrap"},Lo={key:0},Qo={colspan:"8"},zo={class:"no-data-placeholder"},P=50,Fo=Ne({__name:"AudiosView",setup(c){var W,J;const v=Ge(),u=D([]),r=D(),{t:p}=ie(),{app:w,urlTokenKey:b,audioPlaying:T}=Ke(xe()),_=Oe({text:"",tags:[]}),q=t=>{var n;return T.value&&((n=w.value)==null?void 0:n.audioCurrent)===t.path},i=je.AUDIO,V=We().query,C=D(parseInt(((W=V.page)==null?void 0:W.toString())??"1")),I=D(Je(((J=V.q)==null?void 0:J.toString())??"")),A=D(""),{tags:Z}=Mt(i,I,_,async t=>{A.value=dt(t),await ct(),Ce()}),{addToTags:ce}=Pt(i,u,Z),{deleteItems:ue,deleteItem:re}=Xe(),{allChecked:F,realAllChecked:B,selectRealAll:_e,allCheckedAlertVisible:pe,clearSelection:R,toggleAllChecked:H,toggleRow:me,toggleItemChecked:U,total:S,checked:N}=Le(u),{downloadItems:he}=Ye(b,i,u,R,"audios.zip"),{downloadFile:fe}=yt(b),{addItemsToPlaylist:ge,addToPlaylist:ve}=Jt(u,R),ye=et(),{play:ke,playPath:be,loading:$e,pause:Te}=Xt(),{loading:qe,load:Ce,refetch:L}=tt({handle:(t,n)=>{n?de(p(n),"error"):t&&(u.value=t.audios.map(M=>({...M,checked:!1})),S.value=t.audioCount)},document:ut,variables:()=>({offset:(C.value-1)*P,limit:P,query:A.value}),appApi:!0});ot(C,t=>{se(v,`/audios?page=${t}&q=${ne(I.value)}`)});function we(){ye.push("/files"),kt(bt,{message:p("upload_audios")})}function Ie(t){_.tags.includes(t)?$t(_.tags,n=>n.id===t.id):_.tags.push(t)}function Ae(){I.value=Tt(_),G(),r.value.dismiss()}function G(){se(v,`/audios?q=${ne(I.value)}`)}const K=t=>{t.type===i&&(R(),L())},x=t=>{t.type===i&&L()},O=t=>{t.type===i&&(R(),L())},j=()=>{S.value--};st(()=>{k.on("item_tags_updated",x),k.on("items_tags_updated",K),k.on("media_item_deleted",j),k.on("media_items_deleted",O)}),nt(()=>{k.off("item_tags_updated",x),k.off("items_tags_updated",K),k.off("media_item_deleted",j),k.off("media_items_deleted",O)});function Se(t){qt(Ct,{type:i,tags:Z.value,item:{key:t.id,title:t.title,size:t.size},selected:Z.value.filter(n=>t.tags.some(M=>M.id===n.id))})}return(t,n)=>{const M=Rt,X=wt,Y=It,ee=Wt,te=At,De=Bt,Ve=Qe,Be=ze,Re=St,Me=Gt,Pe=zt,Ze=Dt,Ee=Fe,y=lt("tooltip");return l(),a(E,null,[e("div",Yt,[d(M,{current:()=>`${t.$t("page_title.audios")} (${o(S)})`},null,8,["current"]),o(N)?(l(),a(E,{key:0},[f((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=m(s=>o(ue)(o(i),u.value,o(B),A.value),["stop"]))},[eo,d(X)])),[[y,t.$t("delete")]]),f((l(),a("button",{class:"icon-button",onClick:n[1]||(n[1]=m(s=>o(he)(o(B),A.value),["stop"]))},[to,d(Y)])),[[y,t.$t("download")]]),f((l(),a("button",{class:"icon-button",onClick:n[2]||(n[2]=m(s=>o(ge)(s,o(B),A.value),["stop"]))},[oo,d(ee)])),[[y,t.$t("add_to_playlist")]]),f((l(),a("button",{class:"icon-button",onClick:n[3]||(n[3]=m(s=>o(ce)(o(B),A.value),["stop"]))},[so,d(te)])),[[y,t.$t("add_to_tags")]])],64)):Q("",!0),f((l(),a("button",{class:"icon-button",onClick:m(we,["stop"])},[lo,d(De)],8,no)),[[y,t.$t("upload")]]),d(Ve,{ref_key:"searchInputRef",ref:r,modelValue:I.value,"onUpdate:modelValue":n[5]||(n[5]=s=>I.value=s),search:G},{filters:at(()=>[e("div",ao,[f(e("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":n[4]||(n[4]=s=>_.text=s),"keyup.enter":"applyAndDoSearch"},null,8,io),[[rt,_.text]]),e("label",co,g(t.$t("tags")),1),e("md-chip-set",null,[(l(!0),a(E,null,oe(o(Z),s=>(l(),a("md-filter-chip",{key:s.id,label:s.name,selected:_.tags.includes(s),onClick:$=>Ie(s)},null,8,uo))),128))]),e("div",ro,[e("md-filled-button",{onClick:m(Ae,["stop"])},g(t.$t("search")),9,_o)])])]),_:1},8,["modelValue"])]),d(Be,{limit:P,total:o(S),"all-checked-alert-visible":o(pe),"real-all-checked":o(B),"select-real-all":o(_e),"clear-selection":o(R)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e("div",po,[e("table",mo,[e("thead",null,[e("tr",null,[e("th",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[6]||(n[6]=(...s)=>o(H)&&o(H)(...s)),checked:o(F),indeterminate:!o(F)&&o(N)},null,40,ho)]),fo,e("th",null,g(t.$t("name")),1),go,e("th",vo,g(t.$t("artist")),1),e("th",null,g(t.$t("tags")),1),e("th",null,g(t.$t("duration")),1),e("th",null,g(t.$t("file_size")),1)])]),e("tbody",null,[(l(!0),a(E,null,oe(u.value,s=>(l(),a("tr",{key:s.id,class:_t({selected:s.checked}),onClick:m($=>o(me)(s),["stop"])},[e("td",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[7]||(n[7]=(...$)=>o(U)&&o(U)(...$)),checked:s.checked},null,40,ko)]),e("td",null,[d(Re,{id:s.id,raw:s},null,8,["id","raw"])]),e("td",bo,g(s.title),1),e("td",$o,[e("div",To,[f((l(),a("button",{class:"icon-button",onClick:m($=>o(re)(o(i),s),["stop"])},[Co,d(X)],8,qo)),[[y,t.$t("delete")]]),f((l(),a("button",{class:"icon-button",onClick:m($=>o(fe)(s.path,o(pt)(s.path).replace(" ","-")),["stop"])},[Io,d(Y)],8,wo)),[[y,t.$t("download")]]),f((l(),a("button",{class:"icon-button",onClick:m($=>o(ve)($,s),["stop"])},[So,d(ee)],8,Ao)),[[y,t.$t("add_to_playlist")]]),f((l(),a("button",{class:"icon-button",onClick:m($=>Se(s),["stop"])},[Vo,d(te)],8,Do)),[[y,t.$t("add_to_tags")]]),o($e)&&s.path===o(be)?(l(),a("md-circular-progress",Bo)):q(s)?f((l(),a("button",{key:1,class:"icon-button",onClick:n[8]||(n[8]=m($=>o(Te)(),["stop"]))},[Ro,d(Me)])),[[y,t.$t("pause")]]):f((l(),a("button",{key:2,class:"icon-button",onClick:m($=>o(ke)(s),["stop"])},[Po,d(Pe)],8,Mo)),[[y,t.$t("play")]])])]),e("td",null,g(s.artist),1),e("td",null,[d(Ze,{tags:s.tags,type:o(i)},null,8,["tags","type"])]),e("td",Zo,g(o(mt)(s.duration)),1),e("td",Eo,g(o(ht)(s.size)),1)],10,yo))),128))]),u.value.length?Q("",!0):(l(),a("tfoot",Lo,[e("tr",null,[e("td",Qo,[e("div",zo,g(t.$t(o(ft)(o(qe),o(w).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])]),o(S)>P?(l(),it(Ee,{key:0,modelValue:C.value,"onUpdate:modelValue":n[9]||(n[9]=s=>C.value=s),total:o(S),limit:P},null,8,["modelValue","total"])):Q("",!0)],64)}}});const Oo=Vt(Fo,[["__scopeId","data-v-8a476041"]]);export{Oo as default}; +import{u as Le,_ as Qe,a as ze,b as Fe}from"./list-183f8357.js";import{o as l,c as a,a as e,i as ae,aK as He,u as ie,P as k,x as de,r as D,aL as Ue,d as Ne,e as Ge,s as Ke,f as xe,K as Oe,L as je,D as We,M as Je,aB as Xe,af as Ye,aA as et,N as tt,w as ot,O as st,Q as nt,R as lt,p as d,j as o,F as E,m as f,l as m,k as Q,H as at,t as g,J as oe,S as it,T as dt,U as ct,aM as ut,C as se,W as ne,v as rt,I as _t,aF as pt,a9 as mt,z as ht,$ as ft,A as gt,B as vt,al as yt,as as kt,aG as bt,a0 as $t,a1 as Tt,a2 as qt,a3 as Ct,ad as wt,am as It,a4 as At,a5 as St,a6 as Dt,_ as Vt}from"./index-0c42270c.js";import{_ as Bt}from"./upload-rounded-8f0af5aa.js";import{_ as Rt}from"./Breadcrumb-f52b6c6b.js";import{u as Mt,a as Pt}from"./tags-bf0f6db9.js";import"./vee-validate.esm-ca78f26f.js";const Zt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Et=e("path",{fill:"currentColor",d:"M9.5 9.325v5.35q0 .6.525.875t1.025-.05l4.15-2.65q.475-.275.475-.85t-.475-.85L11.05 8.5q-.5-.325-1.025-.05t-.525.875ZM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),Lt=[Et];function Qt(c,v){return l(),a("svg",Zt,Lt)}const zt={name:"material-symbols-play-circle-outline-rounded",render:Qt},Ft={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ht=e("path",{fill:"currentColor",d:"M10 16q.425 0 .713-.288T11 15V8.975q0-.425-.288-.7T10 8q-.425 0-.713.288T9 9v6.025q0 .425.288.7T10 16Zm4 0q.425 0 .713-.288T15 15V8.975q0-.425-.288-.7T14 8q-.425 0-.713.288T13 9v6.025q0 .425.288.7T14 16Zm-2 6q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),Ut=[Ht];function Nt(c,v){return l(),a("svg",Ft,Ut)}const Gt={name:"material-symbols-pause-circle-outline-rounded",render:Nt},Kt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},xt=e("path",{fill:"currentColor",d:"M3 16v-2h7v2H3Zm0-4v-2h11v2H3Zm0-4V6h11v2H3Zm13 12v-4h-4v-2h4v-4h2v4h4v2h-4v4h-2Z"},null,-1),Ot=[xt];function jt(c,v){return l(),a("svg",Kt,Ot)}const Wt={name:"material-symbols-playlist-add",render:jt};function le(c,v,u=500){const r=c.cloneNode(!0),p=c.getBoundingClientRect(),w=v.getBoundingClientRect();r.style.position="absolute",r.style.top=p.top+"px",r.style.left=p.left+"px",r.style.opacity=1,document.body.appendChild(r);let b=0;function T(_){b||(b=_);const q=_-b,i=Math.min(q/u,1);r.style.top=p.top+(w.top-p.top)*i+"px",r.style.left=p.left+(w.left-p.left)*i+"px",i<1?requestAnimationFrame(T):document.body.removeChild(r)}requestAnimationFrame(T)}const Jt=(c,v)=>{const{mutate:u,loading:r,onDone:p}=ae({document:He,appApi:!0}),{t:w}=ie();return p(()=>{k.emit("refetch_app"),v()}),{loading:r,addItemsToPlaylist:(b,T,_)=>{let q=_;if(!T){const V=c.value.filter(C=>C.checked);if(V.length===0){de(w("select_first"),"error");return}q=`ids:${V.map(C=>C.id).join(",")}`}const i=b.target,z=document.getElementById("quick-audio");le(i,z),u({query:q})},addToPlaylist:(b,T)=>{const _=b.target,q=document.getElementById("quick-audio");le(_,q),u({query:`ids:${T.id}`})}}},Xt=()=>{const c=D(""),{mutate:v,loading:u,onDone:r}=ae({document:Ue,appApi:!0});return r(()=>{k.emit("play_audio")}),{loading:u,playPath:c,play:p=>{c.value=p.path,v({path:p.path})},pause:()=>{k.emit("pause_audio")}}},h=c=>(gt("data-v-8a476041"),c=c(),vt(),c),Yt={class:"v-toolbar"},eo=h(()=>e("md-ripple",null,null,-1)),to=h(()=>e("md-ripple",null,null,-1)),oo=h(()=>e("md-ripple",null,null,-1)),so=h(()=>e("md-ripple",null,null,-1)),no=["onClick"],lo=h(()=>e("md-ripple",null,null,-1)),ao={class:"filters"},io=["label"],co={class:"form-label"},uo=["label","selected","onClick"],ro={class:"buttons"},_o=["onClick"],po={class:"table-responsive"},mo={class:"table"},ho=["checked","indeterminate"],fo=h(()=>e("th",null,"ID",-1)),go=h(()=>e("th",null,null,-1)),vo={class:"artist"},yo=["onClick"],ko=["checked"],bo={class:"title"},$o={class:"nowrap"},To={class:"action-btns"},qo=["onClick"],Co=h(()=>e("md-ripple",null,null,-1)),wo=["onClick"],Io=h(()=>e("md-ripple",null,null,-1)),Ao=["onClick"],So=h(()=>e("md-ripple",null,null,-1)),Do=["onClick"],Vo=h(()=>e("md-ripple",null,null,-1)),Bo={key:0,indeterminate:"",class:"spinner-sm"},Ro=h(()=>e("md-ripple",null,null,-1)),Mo=["onClick"],Po=h(()=>e("md-ripple",null,null,-1)),Zo={class:"nowrap"},Eo={class:"nowrap"},Lo={key:0},Qo={colspan:"8"},zo={class:"no-data-placeholder"},P=50,Fo=Ne({__name:"AudiosView",setup(c){var W,J;const v=Ge(),u=D([]),r=D(),{t:p}=ie(),{app:w,urlTokenKey:b,audioPlaying:T}=Ke(xe()),_=Oe({text:"",tags:[]}),q=t=>{var n;return T.value&&((n=w.value)==null?void 0:n.audioCurrent)===t.path},i=je.AUDIO,V=We().query,C=D(parseInt(((W=V.page)==null?void 0:W.toString())??"1")),I=D(Je(((J=V.q)==null?void 0:J.toString())??"")),A=D(""),{tags:Z}=Mt(i,I,_,async t=>{A.value=dt(t),await ct(),Ce()}),{addToTags:ce}=Pt(i,u,Z),{deleteItems:ue,deleteItem:re}=Xe(),{allChecked:F,realAllChecked:B,selectRealAll:_e,allCheckedAlertVisible:pe,clearSelection:R,toggleAllChecked:H,toggleRow:me,toggleItemChecked:U,total:S,checked:N}=Le(u),{downloadItems:he}=Ye(b,i,u,R,"audios.zip"),{downloadFile:fe}=yt(b),{addItemsToPlaylist:ge,addToPlaylist:ve}=Jt(u,R),ye=et(),{play:ke,playPath:be,loading:$e,pause:Te}=Xt(),{loading:qe,load:Ce,refetch:L}=tt({handle:(t,n)=>{n?de(p(n),"error"):t&&(u.value=t.audios.map(M=>({...M,checked:!1})),S.value=t.audioCount)},document:ut,variables:()=>({offset:(C.value-1)*P,limit:P,query:A.value}),appApi:!0});ot(C,t=>{se(v,`/audios?page=${t}&q=${ne(I.value)}`)});function we(){ye.push("/files"),kt(bt,{message:p("upload_audios")})}function Ie(t){_.tags.includes(t)?$t(_.tags,n=>n.id===t.id):_.tags.push(t)}function Ae(){I.value=Tt(_),G(),r.value.dismiss()}function G(){se(v,`/audios?q=${ne(I.value)}`)}const K=t=>{t.type===i&&(R(),L())},x=t=>{t.type===i&&L()},O=t=>{t.type===i&&(R(),L())},j=()=>{S.value--};st(()=>{k.on("item_tags_updated",x),k.on("items_tags_updated",K),k.on("media_item_deleted",j),k.on("media_items_deleted",O)}),nt(()=>{k.off("item_tags_updated",x),k.off("items_tags_updated",K),k.off("media_item_deleted",j),k.off("media_items_deleted",O)});function Se(t){qt(Ct,{type:i,tags:Z.value,item:{key:t.id,title:t.title,size:t.size},selected:Z.value.filter(n=>t.tags.some(M=>M.id===n.id))})}return(t,n)=>{const M=Rt,X=wt,Y=It,ee=Wt,te=At,De=Bt,Ve=Qe,Be=ze,Re=St,Me=Gt,Pe=zt,Ze=Dt,Ee=Fe,y=lt("tooltip");return l(),a(E,null,[e("div",Yt,[d(M,{current:()=>`${t.$t("page_title.audios")} (${o(S)})`},null,8,["current"]),o(N)?(l(),a(E,{key:0},[f((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=m(s=>o(ue)(o(i),u.value,o(B),A.value),["stop"]))},[eo,d(X)])),[[y,t.$t("delete")]]),f((l(),a("button",{class:"icon-button",onClick:n[1]||(n[1]=m(s=>o(he)(o(B),A.value),["stop"]))},[to,d(Y)])),[[y,t.$t("download")]]),f((l(),a("button",{class:"icon-button",onClick:n[2]||(n[2]=m(s=>o(ge)(s,o(B),A.value),["stop"]))},[oo,d(ee)])),[[y,t.$t("add_to_playlist")]]),f((l(),a("button",{class:"icon-button",onClick:n[3]||(n[3]=m(s=>o(ce)(o(B),A.value),["stop"]))},[so,d(te)])),[[y,t.$t("add_to_tags")]])],64)):Q("",!0),f((l(),a("button",{class:"icon-button",onClick:m(we,["stop"])},[lo,d(De)],8,no)),[[y,t.$t("upload")]]),d(Ve,{ref_key:"searchInputRef",ref:r,modelValue:I.value,"onUpdate:modelValue":n[5]||(n[5]=s=>I.value=s),search:G},{filters:at(()=>[e("div",ao,[f(e("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":n[4]||(n[4]=s=>_.text=s),"keyup.enter":"applyAndDoSearch"},null,8,io),[[rt,_.text]]),e("label",co,g(t.$t("tags")),1),e("md-chip-set",null,[(l(!0),a(E,null,oe(o(Z),s=>(l(),a("md-filter-chip",{key:s.id,label:s.name,selected:_.tags.includes(s),onClick:$=>Ie(s)},null,8,uo))),128))]),e("div",ro,[e("md-filled-button",{onClick:m(Ae,["stop"])},g(t.$t("search")),9,_o)])])]),_:1},8,["modelValue"])]),d(Be,{limit:P,total:o(S),"all-checked-alert-visible":o(pe),"real-all-checked":o(B),"select-real-all":o(_e),"clear-selection":o(R)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e("div",po,[e("table",mo,[e("thead",null,[e("tr",null,[e("th",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[6]||(n[6]=(...s)=>o(H)&&o(H)(...s)),checked:o(F),indeterminate:!o(F)&&o(N)},null,40,ho)]),fo,e("th",null,g(t.$t("name")),1),go,e("th",vo,g(t.$t("artist")),1),e("th",null,g(t.$t("tags")),1),e("th",null,g(t.$t("duration")),1),e("th",null,g(t.$t("file_size")),1)])]),e("tbody",null,[(l(!0),a(E,null,oe(u.value,s=>(l(),a("tr",{key:s.id,class:_t({selected:s.checked}),onClick:m($=>o(me)(s),["stop"])},[e("td",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[7]||(n[7]=(...$)=>o(U)&&o(U)(...$)),checked:s.checked},null,40,ko)]),e("td",null,[d(Re,{id:s.id,raw:s},null,8,["id","raw"])]),e("td",bo,g(s.title),1),e("td",$o,[e("div",To,[f((l(),a("button",{class:"icon-button",onClick:m($=>o(re)(o(i),s),["stop"])},[Co,d(X)],8,qo)),[[y,t.$t("delete")]]),f((l(),a("button",{class:"icon-button",onClick:m($=>o(fe)(s.path,o(pt)(s.path).replace(" ","-")),["stop"])},[Io,d(Y)],8,wo)),[[y,t.$t("download")]]),f((l(),a("button",{class:"icon-button",onClick:m($=>o(ve)($,s),["stop"])},[So,d(ee)],8,Ao)),[[y,t.$t("add_to_playlist")]]),f((l(),a("button",{class:"icon-button",onClick:m($=>Se(s),["stop"])},[Vo,d(te)],8,Do)),[[y,t.$t("add_to_tags")]]),o($e)&&s.path===o(be)?(l(),a("md-circular-progress",Bo)):q(s)?f((l(),a("button",{key:1,class:"icon-button",onClick:n[8]||(n[8]=m($=>o(Te)(),["stop"]))},[Ro,d(Me)])),[[y,t.$t("pause")]]):f((l(),a("button",{key:2,class:"icon-button",onClick:m($=>o(ke)(s),["stop"])},[Po,d(Pe)],8,Mo)),[[y,t.$t("play")]])])]),e("td",null,g(s.artist),1),e("td",null,[d(Ze,{tags:s.tags,type:o(i)},null,8,["tags","type"])]),e("td",Zo,g(o(mt)(s.duration)),1),e("td",Eo,g(o(ht)(s.size)),1)],10,yo))),128))]),u.value.length?Q("",!0):(l(),a("tfoot",Lo,[e("tr",null,[e("td",Qo,[e("div",zo,g(t.$t(o(ft)(o(qe),o(w).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])]),o(S)>P?(l(),it(Ee,{key:0,modelValue:C.value,"onUpdate:modelValue":n[9]||(n[9]=s=>C.value=s),total:o(S),limit:P},null,8,["modelValue","total"])):Q("",!0)],64)}}});const Oo=Vt(Fo,[["__scopeId","data-v-8a476041"]]);export{Oo as default}; diff --git a/app/src/main/resources/web/assets/Breadcrumb-ebe74d39.js b/app/src/main/resources/web/assets/Breadcrumb-f52b6c6b.js similarity index 81% rename from app/src/main/resources/web/assets/Breadcrumb-ebe74d39.js rename to app/src/main/resources/web/assets/Breadcrumb-f52b6c6b.js index 21ab437e..2b94128f 100644 --- a/app/src/main/resources/web/assets/Breadcrumb-ebe74d39.js +++ b/app/src/main/resources/web/assets/Breadcrumb-f52b6c6b.js @@ -1 +1 @@ -import{d as _,e as l,o as n,c as s,F as d,J as p,a as r,t as o,j as f,bR as h,l as m,h as g,bO as y,C as v,_ as b}from"./index-f62f2ff2.js";const k={class:"breadcrumb"},B=["onClick"],C={class:"active"},S=_({__name:"Breadcrumb",props:{current:{type:[String,Function]},paths:{type:Array,default:()=>[]}},setup(e){const c=e,u=l();function i(t){v(u,t)}return(t,$)=>(n(),s("ol",k,[(n(!0),s(d,null,p(c.paths,a=>(n(),s("li",{key:a},[r("a",{href:"#",onClick:m(x=>i(a),["prevent"])},o(t.$t(`page_title.${f(h)(a)}`)),9,B)]))),128)),r("li",C,[g(o(typeof e.current=="function"?e.current():e.current),1),y(t.$slots,"current",{},void 0,!0)])]))}});const N=b(S,[["__scopeId","data-v-938402da"]]);export{N as _}; +import{d as _,e as l,o as n,c as s,F as d,J as p,a as r,t as o,j as f,bR as h,l as m,h as g,bO as y,C as v,_ as b}from"./index-0c42270c.js";const k={class:"breadcrumb"},B=["onClick"],C={class:"active"},S=_({__name:"Breadcrumb",props:{current:{type:[String,Function]},paths:{type:Array,default:()=>[]}},setup(e){const c=e,u=l();function i(t){v(u,t)}return(t,$)=>(n(),s("ol",k,[(n(!0),s(d,null,p(c.paths,a=>(n(),s("li",{key:a},[r("a",{href:"#",onClick:m(x=>i(a),["prevent"])},o(t.$t(`page_title.${f(h)(a)}`)),9,B)]))),128)),r("li",C,[g(o(typeof e.current=="function"?e.current():e.current),1),y(t.$slots,"current",{},void 0,!0)])]))}});const N=b(S,[["__scopeId","data-v-938402da"]]);export{N as _}; diff --git a/app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-9dafd033.js b/app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-f7ab6958.js similarity index 93% rename from app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-9dafd033.js rename to app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-f7ab6958.js index a1dd6c74..59fd16dc 100644 --- a/app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-9dafd033.js +++ b/app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-f7ab6958.js @@ -1 +1 @@ -import{d as _,u as k,e as v,r as I,g as B,x as g,aJ as h,O as C,P as n,Q as D,o as l,c as u,J as S,l as b,I as q,t as m,F as M,T as Q,C as x,W as A}from"./index-f62f2ff2.js";const E=["onClick"],$=_({__name:"BucketFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(i){const a=i,{t:p}=k(),f=v(),o=I([]),{refetch:d}=B({handle:(e,s)=>{s?g(p(s),"error"):e&&(o.value=e.mediaBuckets)},document:h,variables:{type:a.type},appApi:!0});function y(e){const s=Q([{name:"bucket_id",op:"",value:e.id}]);x(f,`/${{AUDIO:"audios",IMAGE:"images",VIDEO:"videos"}[a.type]}?q=${A(s)}`)}const r=e=>{e.type===a.type&&d()},c=e=>{e.item.bucketId&&e.type===a.type&&d()};return C(()=>{n.on("media_items_deleted",r),n.on("media_item_deleted",c)}),D(()=>{n.off("media_items_deleted",r),n.off("media_item_deleted",c)}),(e,s)=>(l(!0),u(M,null,S(o.value,t=>(l(),u("li",{key:t.id,onClick:b(F=>y(t),["prevent"]),class:q({active:i.selected&&t.id===i.selected})},m(t.name)+" ("+m(t.itemCount)+")",11,E))),128))}});export{$ as _}; +import{d as _,u as k,e as v,r as I,g as B,x as g,aJ as h,O as C,P as n,Q as D,o as l,c as u,J as S,l as b,I as q,t as m,F as M,T as Q,C as x,W as A}from"./index-0c42270c.js";const E=["onClick"],$=_({__name:"BucketFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(i){const a=i,{t:p}=k(),f=v(),o=I([]),{refetch:d}=B({handle:(e,s)=>{s?g(p(s),"error"):e&&(o.value=e.mediaBuckets)},document:h,variables:{type:a.type},appApi:!0});function y(e){const s=Q([{name:"bucket_id",op:"",value:e.id}]);x(f,`/${{AUDIO:"audios",IMAGE:"images",VIDEO:"videos"}[a.type]}?q=${A(s)}`)}const r=e=>{e.type===a.type&&d()},c=e=>{e.item.bucketId&&e.type===a.type&&d()};return C(()=>{n.on("media_items_deleted",r),n.on("media_item_deleted",c)}),D(()=>{n.off("media_items_deleted",r),n.off("media_item_deleted",c)}),(e,s)=>(l(!0),u(M,null,S(o.value,t=>(l(),u("li",{key:t.id,onClick:b(F=>y(t),["prevent"]),class:q({active:i.selected&&t.id===i.selected})},m(t.name)+" ("+m(t.itemCount)+")",11,E))),128))}});export{$ as _}; diff --git a/app/src/main/resources/web/assets/CallsRootView-07c41008.js b/app/src/main/resources/web/assets/CallsRootView-df2ef363.js similarity index 74% rename from app/src/main/resources/web/assets/CallsRootView-07c41008.js rename to app/src/main/resources/web/assets/CallsRootView-df2ef363.js index 9b197553..2187c2f2 100644 --- a/app/src/main/resources/web/assets/CallsRootView-07c41008.js +++ b/app/src/main/resources/web/assets/CallsRootView-df2ef363.js @@ -1 +1 @@ -import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js";import{d as w,D as B,e as N,E as z,G as L,c as p,p as a,H as l,j as e,o as m,a as s,t as i,l as d,I as u,F as M,J as S,C as f}from"./index-f62f2ff2.js";import{g as h,M as T}from"./splitpanes.es-2b477659.js";import"./EditValueModal-d57e85f6.js";import"./vee-validate.esm-65abdaa1.js";const V={class:"page-container"},D={class:"sidebar"},E={class:"nav-title"},F={class:"nav"},R=["onClick"],b=["onClick"],j={class:"main"},K=w({__name:"CallsRootView",setup(q){const n=B(),c=N(),r=n.params.type,_=r?"":z(n.query);function v(t){f(c,`/calls/${t}`)}const g=["incoming","outgoing","missed"];function C(){f(c,"/calls")}return(t,A)=>{const y=$,k=L("router-view");return m(),p("div",V,[a(e(T),null,{default:l(()=>[a(e(h),{size:"20","min-size":"10"},{default:l(()=>[s("div",D,[s("h2",E,i(t.$t("page_title.calls")),1),s("ul",F,[s("li",{onClick:d(C,["prevent"]),class:u({active:e(n).path==="/calls"&&!e(_)})},i(t.$t("all")),11,R),(m(),p(M,null,S(g,o=>s("li",{key:o,onClick:d(G=>v(o),["prevent"]),class:u({active:o===e(r)})},i(t.$t(`call_type.${o}`)),11,b)),64))]),a(y,{type:"CALL",selected:e(_)},null,8,["selected"])])]),_:1}),a(e(h),null,{default:l(()=>[s("div",j,[a(k)])]),_:1})]),_:1})])}}});export{K as default}; +import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js";import{d as w,D as B,e as N,E as z,G as L,c as p,p as a,H as l,j as e,o as m,a as s,t as i,l as d,I as u,F as M,J as S,C as f}from"./index-0c42270c.js";import{g as h,M as T}from"./splitpanes.es-7e8a6fea.js";import"./EditValueModal-c22a5b2d.js";import"./vee-validate.esm-ca78f26f.js";const V={class:"page-container"},D={class:"sidebar"},E={class:"nav-title"},F={class:"nav"},R=["onClick"],b=["onClick"],j={class:"main"},K=w({__name:"CallsRootView",setup(q){const n=B(),c=N(),r=n.params.type,_=r?"":z(n.query);function v(t){f(c,`/calls/${t}`)}const g=["incoming","outgoing","missed"];function C(){f(c,"/calls")}return(t,A)=>{const y=$,k=L("router-view");return m(),p("div",V,[a(e(T),null,{default:l(()=>[a(e(h),{size:"20","min-size":"10"},{default:l(()=>[s("div",D,[s("h2",E,i(t.$t("page_title.calls")),1),s("ul",F,[s("li",{onClick:d(C,["prevent"]),class:u({active:e(n).path==="/calls"&&!e(_)})},i(t.$t("all")),11,R),(m(),p(M,null,S(g,o=>s("li",{key:o,onClick:d(G=>v(o),["prevent"]),class:u({active:o===e(r)})},i(t.$t(`call_type.${o}`)),11,b)),64))]),a(y,{type:"CALL",selected:e(_)},null,8,["selected"])])]),_:1}),a(e(h),null,{default:l(()=>[s("div",j,[a(k)])]),_:1})]),_:1})])}}});export{K as default}; diff --git a/app/src/main/resources/web/assets/CallsView-441198f9.js b/app/src/main/resources/web/assets/CallsView-d07d93e5.js similarity index 94% rename from app/src/main/resources/web/assets/CallsView-441198f9.js rename to app/src/main/resources/web/assets/CallsView-d07d93e5.js index bd2cc203..997722a7 100644 --- a/app/src/main/resources/web/assets/CallsView-441198f9.js +++ b/app/src/main/resources/web/assets/CallsView-d07d93e5.js @@ -1,4 +1,4 @@ -import{c as be,u as Ce,_ as Te,a as we,b as qe}from"./list-45297bd9.js";import{d as Se,e as Ae,s as De,f as Ve,r as k,u as Le,K as Ie,L as Re,D as Me,M as Qe,N as Ue,w as Be,O as Ne,P as y,Q as Ge,i as ze,R as Ee,c as i,a as t,p as d,j as l,F as S,m as p,l as _,k as R,H as Fe,t as n,J as W,S as He,T as Y,U as je,a7 as Ke,x as Oe,a8 as Pe,C as A,W as D,q as xe,o,v as Je,I as We,a9 as Ye,Y as Ze,h as Xe,Z as et,$ as tt,a2 as Z,a3 as st,a0 as lt,aa as at,ab as nt,ac as ot,ad as it,a4 as ct,a5 as dt,a6 as ut}from"./index-f62f2ff2.js";import{_ as rt}from"./call-outline-rounded-79a3fba5.js";import{_ as pt}from"./Breadcrumb-ebe74d39.js";import{u as _t,a as mt}from"./tags-06583423.js";import"./vee-validate.esm-65abdaa1.js";const ht={class:"v-toolbar"},ft=t("md-ripple",null,null,-1),gt=t("md-ripple",null,null,-1),vt={class:"filters"},kt=["label"],yt={class:"form-label"},$t=["label","selected","onClick"],bt={class:"buttons"},Ct=["onClick"],Tt={class:"table-responsive"},wt={class:"table"},qt=["checked","indeterminate"],St=t("th",null,"ID",-1),At=t("th",null,null,-1),Dt=["onClick"],Vt=["checked"],Lt={class:"v-center"},It={class:"nowrap"},Rt={class:"action-btns"},Mt=["onClick"],Qt=t("md-ripple",null,null,-1),Ut={key:0,indeterminate:"",class:"spinner-sm"},Bt=["onClick"],Nt=t("md-ripple",null,null,-1),Gt=["onClick"],zt=t("md-ripple",null,null,-1),Et={class:"nowrap"},Ft={class:"nowrap"},Ht={class:"nowrap"},jt={key:0},Kt={colspan:"10"},Ot={class:"no-data-placeholder"},b=50,es=Se({__name:"CallsView",setup(Pt){var O,P;const C=Ae(),{app:X}=De(Ve()),m=k([]),M=k(),{t:Q}=Le(),c=Ie({text:"",tags:[]}),u=Re.CALL,U=Me(),B=U.query,T=k(parseInt(((O=B.page)==null?void 0:O.toString())??"1")),r=k(Qe(((P=B.q)==null?void 0:P.toString())??"")),w=k(""),{tags:q}=_t(u,r,c,async e=>{f&&e.push({name:"type",op:"",value:ie[f].toString()}),w.value=Y(e),await je(),oe()}),{addToTags:ee}=mt(u,m,q),{deleteItems:te}=be(Ke,()=>{L(),I(),y.emit("refetch_tags",u)},m),{allChecked:N,realAllChecked:V,selectRealAll:se,allCheckedAlertVisible:le,clearSelection:L,toggleAllChecked:G,toggleItemChecked:z,toggleRow:ae,total:h,checked:E}=Ce(m),{loading:ne,load:oe,refetch:I}=Ue({handle:(e,a)=>{a?Oe(Q(a),"error"):e&&(m.value=e.calls.map($=>({...$,checked:!1})),h.value=e.callCount)},document:Pe,variables:()=>({offset:(T.value-1)*b,limit:b,query:w.value}),appApi:!0}),f=U.params.type,ie={incoming:1,outgoing:2,missed:3};Be(T,e=>{f?A(C,`/calls/${f}?page=${e}&q=${D(r.value)}`):A(C,`/calls?page=${e}&q=${D(r.value)}`)});function ce(e){Z(st,{type:u,tags:q.value,item:{key:e.id,title:"",size:0},selected:q.value.filter(a=>e.tags.some($=>$.id===a.id))})}function de(e){c.tags.includes(e)?lt(c.tags,a=>a.id===e.id):c.tags.push(e)}function ue(){const e=[];for(const a of c.tags)e.push({name:"tag",op:"",value:at.kebabCase(a.name)});c.text&&e.push({name:"text",op:"",value:c.text}),r.value=Y(e),F(),M.value.dismiss()}function F(){f?A(C,`/calls/${f}?q=${D(r.value)}`):A(C,`/calls?q=${D(r.value)}`)}const H=e=>{e.type===u&&(L(),I())},j=e=>{e.type===u&&I()};Ne(()=>{y.on("item_tags_updated",j),y.on("items_tags_updated",H)}),Ge(()=>{y.off("item_tags_updated",j),y.off("items_tags_updated",H)});function re(e){if(!e)return"";const a=[];return e.isp&&a.push(Q("phone_isp_type."+e.isp)),e.city===e.province?a.push(e.city):a.push(`${e.province}${e.city}`),a.join(", ")}const K=k(""),{mutate:pe,loading:_e}=ze({document:xe,appApi:!0});function me(e){K.value=e.id,pe({number:e.number})}function he(e){Z(ot,{id:e.id,name:e.id,gql:nt` +import{c as be,u as Ce,_ as Te,a as we,b as qe}from"./list-183f8357.js";import{d as Se,e as Ae,s as De,f as Ve,r as k,u as Le,K as Ie,L as Re,D as Me,M as Qe,N as Ue,w as Be,O as Ne,P as y,Q as Ge,i as ze,R as Ee,c as i,a as t,p as d,j as l,F as S,m as p,l as _,k as R,H as Fe,t as n,J as W,S as He,T as Y,U as je,a7 as Ke,x as Oe,a8 as Pe,C as A,W as D,q as xe,o,v as Je,I as We,a9 as Ye,Y as Ze,h as Xe,Z as et,$ as tt,a2 as Z,a3 as st,a0 as lt,aa as at,ab as nt,ac as ot,ad as it,a4 as ct,a5 as dt,a6 as ut}from"./index-0c42270c.js";import{_ as rt}from"./call-outline-rounded-00415545.js";import{_ as pt}from"./Breadcrumb-f52b6c6b.js";import{u as _t,a as mt}from"./tags-bf0f6db9.js";import"./vee-validate.esm-ca78f26f.js";const ht={class:"v-toolbar"},ft=t("md-ripple",null,null,-1),gt=t("md-ripple",null,null,-1),vt={class:"filters"},kt=["label"],yt={class:"form-label"},$t=["label","selected","onClick"],bt={class:"buttons"},Ct=["onClick"],Tt={class:"table-responsive"},wt={class:"table"},qt=["checked","indeterminate"],St=t("th",null,"ID",-1),At=t("th",null,null,-1),Dt=["onClick"],Vt=["checked"],Lt={class:"v-center"},It={class:"nowrap"},Rt={class:"action-btns"},Mt=["onClick"],Qt=t("md-ripple",null,null,-1),Ut={key:0,indeterminate:"",class:"spinner-sm"},Bt=["onClick"],Nt=t("md-ripple",null,null,-1),Gt=["onClick"],zt=t("md-ripple",null,null,-1),Et={class:"nowrap"},Ft={class:"nowrap"},Ht={class:"nowrap"},jt={key:0},Kt={colspan:"10"},Ot={class:"no-data-placeholder"},b=50,es=Se({__name:"CallsView",setup(Pt){var O,P;const C=Ae(),{app:X}=De(Ve()),m=k([]),M=k(),{t:Q}=Le(),c=Ie({text:"",tags:[]}),u=Re.CALL,U=Me(),B=U.query,T=k(parseInt(((O=B.page)==null?void 0:O.toString())??"1")),r=k(Qe(((P=B.q)==null?void 0:P.toString())??"")),w=k(""),{tags:q}=_t(u,r,c,async e=>{f&&e.push({name:"type",op:"",value:ie[f].toString()}),w.value=Y(e),await je(),oe()}),{addToTags:ee}=mt(u,m,q),{deleteItems:te}=be(Ke,()=>{L(),I(),y.emit("refetch_tags",u)},m),{allChecked:N,realAllChecked:V,selectRealAll:se,allCheckedAlertVisible:le,clearSelection:L,toggleAllChecked:G,toggleItemChecked:z,toggleRow:ae,total:h,checked:E}=Ce(m),{loading:ne,load:oe,refetch:I}=Ue({handle:(e,a)=>{a?Oe(Q(a),"error"):e&&(m.value=e.calls.map($=>({...$,checked:!1})),h.value=e.callCount)},document:Pe,variables:()=>({offset:(T.value-1)*b,limit:b,query:w.value}),appApi:!0}),f=U.params.type,ie={incoming:1,outgoing:2,missed:3};Be(T,e=>{f?A(C,`/calls/${f}?page=${e}&q=${D(r.value)}`):A(C,`/calls?page=${e}&q=${D(r.value)}`)});function ce(e){Z(st,{type:u,tags:q.value,item:{key:e.id,title:"",size:0},selected:q.value.filter(a=>e.tags.some($=>$.id===a.id))})}function de(e){c.tags.includes(e)?lt(c.tags,a=>a.id===e.id):c.tags.push(e)}function ue(){const e=[];for(const a of c.tags)e.push({name:"tag",op:"",value:at.kebabCase(a.name)});c.text&&e.push({name:"text",op:"",value:c.text}),r.value=Y(e),F(),M.value.dismiss()}function F(){f?A(C,`/calls/${f}?q=${D(r.value)}`):A(C,`/calls?q=${D(r.value)}`)}const H=e=>{e.type===u&&(L(),I())},j=e=>{e.type===u&&I()};Ne(()=>{y.on("item_tags_updated",j),y.on("items_tags_updated",H)}),Ge(()=>{y.off("item_tags_updated",j),y.off("items_tags_updated",H)});function re(e){if(!e)return"";const a=[];return e.isp&&a.push(Q("phone_isp_type."+e.isp)),e.city===e.province?a.push(e.city):a.push(`${e.province}${e.city}`),a.join(", ")}const K=k(""),{mutate:pe,loading:_e}=ze({document:xe,appApi:!0});function me(e){K.value=e.id,pe({number:e.number})}function he(e){Z(ot,{id:e.id,name:e.id,gql:nt` mutation DeleteCall($query: String!) { deleteCalls(query: $query) } diff --git a/app/src/main/resources/web/assets/ContactsRootView-f2e48655.js b/app/src/main/resources/web/assets/ContactsRootView-78887ad1.js similarity index 69% rename from app/src/main/resources/web/assets/ContactsRootView-f2e48655.js rename to app/src/main/resources/web/assets/ContactsRootView-78887ad1.js index 14375b42..6145a2af 100644 --- a/app/src/main/resources/web/assets/ContactsRootView-f2e48655.js +++ b/app/src/main/resources/web/assets/ContactsRootView-78887ad1.js @@ -1 +1 @@ -import{_ as m}from"./TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js";import{d as u,D as f,e as h,E as v,G as C,c as g,p as t,H as a,j as e,o as w,a as s,t as i,l as N,I as k,C as T}from"./index-f62f2ff2.js";import{g as l,M as y}from"./splitpanes.es-2b477659.js";import"./EditValueModal-d57e85f6.js";import"./vee-validate.esm-65abdaa1.js";const z={class:"page-container"},B={class:"sidebar"},M={class:"nav-title"},S={class:"nav"},V=["onClick"],$={class:"main"},A=u({__name:"ContactsRootView",setup(D){const o=f(),r=h(),n=v(o.query);function _(){T(r,"/contacts")}return(c,E)=>{const p=m,d=C("router-view");return w(),g("div",z,[t(e(y),null,{default:a(()=>[t(e(l),{size:"20","min-size":"10"},{default:a(()=>[s("div",B,[s("h2",M,i(c.$t("page_title.contacts")),1),s("ul",S,[s("li",{onClick:N(_,["prevent"]),class:k({active:e(o).path==="/contacts"&&!e(n)})},i(c.$t("all")),11,V)]),t(p,{type:"CONTACT",selected:e(n)},null,8,["selected"])])]),_:1}),t(e(l),null,{default:a(()=>[s("div",$,[t(d)])]),_:1})]),_:1})])}}});export{A as default}; +import{_ as m}from"./TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js";import{d as u,D as f,e as h,E as v,G as C,c as g,p as t,H as a,j as e,o as w,a as s,t as i,l as N,I as k,C as T}from"./index-0c42270c.js";import{g as l,M as y}from"./splitpanes.es-7e8a6fea.js";import"./EditValueModal-c22a5b2d.js";import"./vee-validate.esm-ca78f26f.js";const z={class:"page-container"},B={class:"sidebar"},M={class:"nav-title"},S={class:"nav"},V=["onClick"],$={class:"main"},A=u({__name:"ContactsRootView",setup(D){const o=f(),r=h(),n=v(o.query);function _(){T(r,"/contacts")}return(c,E)=>{const p=m,d=C("router-view");return w(),g("div",z,[t(e(y),null,{default:a(()=>[t(e(l),{size:"20","min-size":"10"},{default:a(()=>[s("div",B,[s("h2",M,i(c.$t("page_title.contacts")),1),s("ul",S,[s("li",{onClick:N(_,["prevent"]),class:k({active:e(o).path==="/contacts"&&!e(n)})},i(c.$t("all")),11,V)]),t(p,{type:"CONTACT",selected:e(n)},null,8,["selected"])])]),_:1}),t(e(l),null,{default:a(()=>[s("div",$,[t(d)])]),_:1})]),_:1})])}}});export{A as default}; diff --git a/app/src/main/resources/web/assets/ContactsView-fbe22ecb.js b/app/src/main/resources/web/assets/ContactsView-0a79638e.js similarity index 98% rename from app/src/main/resources/web/assets/ContactsView-fbe22ecb.js rename to app/src/main/resources/web/assets/ContactsView-0a79638e.js index b30e6a80..06b391d6 100644 --- a/app/src/main/resources/web/assets/ContactsView-fbe22ecb.js +++ b/app/src/main/resources/web/assets/ContactsView-0a79638e.js @@ -1,4 +1,4 @@ -import{c as Je,u as Pe,_ as We,a as Ye,b as Xe}from"./list-45297bd9.js";import{o,c as n,a as e,d as de,r as I,an as Ne,ao as j,U as qe,t as u,m,v as f,j as i,n as et,ap as tt,_ as Ve,K as Te,u as Ue,i as se,aq as fe,ar as be,k as T,p as h,F as v,J as b,H as ae,as as lt,ad as Ie,at as ot,e as nt,s as st,f as at,L as dt,D as it,M as ut,N as rt,g as ct,w as _t,O as pt,P as G,Q as mt,R as ht,l as B,S as vt,T as ft,au as bt,x as $e,av as $t,aw as yt,C as ye,W as ge,a2 as te,q as gt,I as kt,ax as Ct,h as ke,Y as wt,Z as Nt,$ as qt,A as Vt,B as Tt,a1 as Ut,a3 as It,ay as Ce,a0 as St,ab as At,ac as Dt,am as Lt,a4 as Mt,a5 as Ft,a6 as xt}from"./index-f62f2ff2.js";import{_ as Rt}from"./call-outline-rounded-79a3fba5.js";import{_ as Bt}from"./Breadcrumb-ebe74d39.js";import{u as Se,a as Ae}from"./vee-validate.esm-65abdaa1.js";import{u as Qt,a as Zt}from"./tags-06583423.js";const zt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ot=e("path",{fill:"currentColor",d:"m19.3 8.925l-4.25-4.2l1.4-1.4q.575-.575 1.413-.575t1.412.575l1.4 1.4q.575.575.6 1.388t-.55 1.387L19.3 8.925ZM17.85 10.4L7.25 21H3v-4.25l10.6-10.6l4.25 4.25Z"},null,-1),jt=[Ot];function Et(g,$){return o(),n("svg",zt,jt)}const Gt={name:"material-symbols-edit",render:Et},Ht={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Kt=e("path",{fill:"currentColor",d:"M6.7 11.7q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212T12 5.425q.2 0 .375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275L12 7.825L8.1 11.7q-.275.275-.688.288T6.7 11.7Zm0 6q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275L12 13.825L8.1 17.7q-.275.275-.688.288T6.7 17.7Z"},null,-1),Jt=[Kt];function Pt(g,$){return o(),n("svg",Ht,Jt)}const Wt={name:"material-symbols-keyboard-double-arrow-up-rounded",render:Pt},Yt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xt=e("path",{fill:"currentColor",d:"M12 12.575q-.2 0-.375-.062T11.3 12.3L6.7 7.7q-.275-.275-.288-.688T6.7 6.3q.275-.275.7-.275t.7.275l3.9 3.875L15.9 6.3q.275-.275.688-.287t.712.287q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Zm0 6q-.2 0-.375-.062T11.3 18.3l-4.6-4.6q-.275-.275-.288-.687T6.7 12.3q.275-.275.7-.275t.7.275l3.9 3.875l3.9-3.875q.275-.275.688-.288t.712.288q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Z"},null,-1),el=[Xt];function tl(g,$){return o(),n("svg",Yt,el)}const ll={name:"material-symbols-keyboard-double-arrow-down-rounded",render:tl};function H(g){return Array.from({length:g},($,Q)=>Q+1).concat(-1)}const W={phoneNumberTypes:H(20),emailTypes:H(4),addressTypes:H(3),eventTypes:H(3),imTypes:H(8),websiteTypes:H(7)},ol={slot:"headline"},nl={slot:"content"},sl=["error","error-text"],al={slot:"actions"},dl=de({__name:"PromptModal",props:{do:{type:Function,required:!0},title:{type:String,required:!0},value:{type:String}},setup(g){const $=g,{handleSubmit:Q}=Se(),d=I(),{value:C,resetField:M,errorMessage:w}=Ae("inputValue",Ne().required()),k=Q(()=>{$.do(C.value??""),j()});return C.value=$.value,$.value||M(),(async()=>{var A;await qe(),(A=d.value)==null||A.focus()})(),(A,q)=>(o(),n("md-dialog",null,[e("div",ol,u(g.title),1),e("div",nl,[m(e("md-outlined-text-field",{ref_key:"inputRef",ref:d,class:"form-control",error:i(w),"error-text":i(w)?A.$t(i(w)):"","onUpdate:modelValue":q[0]||(q[0]=N=>et(C)?C.value=N:null),onKeyup:q[1]||(q[1]=tt((...N)=>i(k)&&i(k)(...N),["enter"]))},null,40,sl),[[f,i(C)]])]),e("div",al,[e("md-outlined-button",{value:"cancel",onClick:q[2]||(q[2]=(...N)=>i(j)&&i(j)(...N))},u(A.$t("cancel")),1),e("md-filled-button",{value:"ok",onClick:q[3]||(q[3]=(...N)=>i(k)&&i(k)(...N)),autofocus:""},u(A.$t("ok")),1)])]))}});const il=Ve(dl,[["__scopeId","data-v-f510d520"]]),ul={slot:"headline"},rl={slot:"content"},cl={class:"form-label"},_l={class:"form-row"},pl=["label"],ml=["label"],hl=["label"],vl={key:1,class:"v-center"},fl=e("md-ripple",null,null,-1),bl={key:0,class:"form-row"},$l=["label"],yl=["label"],gl={class:"v-center"},kl=e("md-ripple",null,null,-1),Cl={class:"form-label"},wl=["onUpdate:modelValue","onChange"],Nl=["value"],ql={slot:"headline"},Vl=["placeholder","onUpdate:modelValue"],Tl={class:"v-center"},Ul=["onClick"],Il=e("md-ripple",null,null,-1),Sl={key:1,class:"form-label"},Al=["onUpdate:modelValue","onChange"],Dl=["value"],Ll={slot:"headline"},Ml=["label","onUpdate:modelValue"],Fl={class:"v-center"},xl=["onClick"],Rl=e("md-ripple",null,null,-1),Bl={key:2,class:"form-label"},Ql=["onUpdate:modelValue","onChange"],Zl=["value"],zl={slot:"headline"},Ol=["label","onUpdate:modelValue"],jl={class:"v-center"},El=["onClick"],Gl=e("md-ripple",null,null,-1),Hl={key:3,class:"form-label"},Kl=["onUpdate:modelValue","onChange"],Jl=["value"],Pl={slot:"headline"},Wl=["placeholder","onUpdate:modelValue"],Yl={class:"v-center"},Xl=["onClick"],eo=e("md-ripple",null,null,-1),to={key:4,class:"form-label"},lo=["onUpdate:modelValue","onChange"],oo=["value"],no={slot:"headline"},so=["placeholder","onUpdate:modelValue"],ao={class:"v-center"},io=["onClick"],uo=e("md-ripple",null,null,-1),ro={class:"form-row",style:{display:"block",position:"relative"}},co={class:"menu-items"},_o=["onClick"],po={slot:"headline"},mo=["onClick"],ho={slot:"headline"},vo=["onClick"],fo={slot:"headline"},bo=["onClick"],$o={slot:"headline"},yo=["onClick"],go={slot:"headline"},ko={class:"form-row"},Co=["label"],wo={slot:"actions"},No=["disabled"],we=de({__name:"EditContactModal",props:{data:{type:Object},sources:{type:Array},done:{type:Function,required:!0}},setup(g){const $=g,{handleSubmit:Q}=Se(),d=Te({firstName:"",middleName:"",lastName:"",prefix:"",suffix:"",nickname:"",organization:null,notes:"",source:"",starred:0,phoneNumbers:[],emails:[],addresses:[],websites:[],events:[],ims:[],groupIds:[]}),C=I(!1),{t:M}=Ue(),{mutate:w,loading:k,onDone:A}=se({document:fe` +import{c as Je,u as Pe,_ as We,a as Ye,b as Xe}from"./list-183f8357.js";import{o,c as n,a as e,d as de,r as I,an as Ne,ao as j,U as qe,t as u,m,v as f,j as i,n as et,ap as tt,_ as Ve,K as Te,u as Ue,i as se,aq as fe,ar as be,k as T,p as h,F as v,J as b,H as ae,as as lt,ad as Ie,at as ot,e as nt,s as st,f as at,L as dt,D as it,M as ut,N as rt,g as ct,w as _t,O as pt,P as G,Q as mt,R as ht,l as B,S as vt,T as ft,au as bt,x as $e,av as $t,aw as yt,C as ye,W as ge,a2 as te,q as gt,I as kt,ax as Ct,h as ke,Y as wt,Z as Nt,$ as qt,A as Vt,B as Tt,a1 as Ut,a3 as It,ay as Ce,a0 as St,ab as At,ac as Dt,am as Lt,a4 as Mt,a5 as Ft,a6 as xt}from"./index-0c42270c.js";import{_ as Rt}from"./call-outline-rounded-00415545.js";import{_ as Bt}from"./Breadcrumb-f52b6c6b.js";import{u as Se,a as Ae}from"./vee-validate.esm-ca78f26f.js";import{u as Qt,a as Zt}from"./tags-bf0f6db9.js";const zt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ot=e("path",{fill:"currentColor",d:"m19.3 8.925l-4.25-4.2l1.4-1.4q.575-.575 1.413-.575t1.412.575l1.4 1.4q.575.575.6 1.388t-.55 1.387L19.3 8.925ZM17.85 10.4L7.25 21H3v-4.25l10.6-10.6l4.25 4.25Z"},null,-1),jt=[Ot];function Et(g,$){return o(),n("svg",zt,jt)}const Gt={name:"material-symbols-edit",render:Et},Ht={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Kt=e("path",{fill:"currentColor",d:"M6.7 11.7q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212T12 5.425q.2 0 .375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275L12 7.825L8.1 11.7q-.275.275-.688.288T6.7 11.7Zm0 6q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275L12 13.825L8.1 17.7q-.275.275-.688.288T6.7 17.7Z"},null,-1),Jt=[Kt];function Pt(g,$){return o(),n("svg",Ht,Jt)}const Wt={name:"material-symbols-keyboard-double-arrow-up-rounded",render:Pt},Yt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xt=e("path",{fill:"currentColor",d:"M12 12.575q-.2 0-.375-.062T11.3 12.3L6.7 7.7q-.275-.275-.288-.688T6.7 6.3q.275-.275.7-.275t.7.275l3.9 3.875L15.9 6.3q.275-.275.688-.287t.712.287q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Zm0 6q-.2 0-.375-.062T11.3 18.3l-4.6-4.6q-.275-.275-.288-.687T6.7 12.3q.275-.275.7-.275t.7.275l3.9 3.875l3.9-3.875q.275-.275.688-.288t.712.288q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Z"},null,-1),el=[Xt];function tl(g,$){return o(),n("svg",Yt,el)}const ll={name:"material-symbols-keyboard-double-arrow-down-rounded",render:tl};function H(g){return Array.from({length:g},($,Q)=>Q+1).concat(-1)}const W={phoneNumberTypes:H(20),emailTypes:H(4),addressTypes:H(3),eventTypes:H(3),imTypes:H(8),websiteTypes:H(7)},ol={slot:"headline"},nl={slot:"content"},sl=["error","error-text"],al={slot:"actions"},dl=de({__name:"PromptModal",props:{do:{type:Function,required:!0},title:{type:String,required:!0},value:{type:String}},setup(g){const $=g,{handleSubmit:Q}=Se(),d=I(),{value:C,resetField:M,errorMessage:w}=Ae("inputValue",Ne().required()),k=Q(()=>{$.do(C.value??""),j()});return C.value=$.value,$.value||M(),(async()=>{var A;await qe(),(A=d.value)==null||A.focus()})(),(A,q)=>(o(),n("md-dialog",null,[e("div",ol,u(g.title),1),e("div",nl,[m(e("md-outlined-text-field",{ref_key:"inputRef",ref:d,class:"form-control",error:i(w),"error-text":i(w)?A.$t(i(w)):"","onUpdate:modelValue":q[0]||(q[0]=N=>et(C)?C.value=N:null),onKeyup:q[1]||(q[1]=tt((...N)=>i(k)&&i(k)(...N),["enter"]))},null,40,sl),[[f,i(C)]])]),e("div",al,[e("md-outlined-button",{value:"cancel",onClick:q[2]||(q[2]=(...N)=>i(j)&&i(j)(...N))},u(A.$t("cancel")),1),e("md-filled-button",{value:"ok",onClick:q[3]||(q[3]=(...N)=>i(k)&&i(k)(...N)),autofocus:""},u(A.$t("ok")),1)])]))}});const il=Ve(dl,[["__scopeId","data-v-f510d520"]]),ul={slot:"headline"},rl={slot:"content"},cl={class:"form-label"},_l={class:"form-row"},pl=["label"],ml=["label"],hl=["label"],vl={key:1,class:"v-center"},fl=e("md-ripple",null,null,-1),bl={key:0,class:"form-row"},$l=["label"],yl=["label"],gl={class:"v-center"},kl=e("md-ripple",null,null,-1),Cl={class:"form-label"},wl=["onUpdate:modelValue","onChange"],Nl=["value"],ql={slot:"headline"},Vl=["placeholder","onUpdate:modelValue"],Tl={class:"v-center"},Ul=["onClick"],Il=e("md-ripple",null,null,-1),Sl={key:1,class:"form-label"},Al=["onUpdate:modelValue","onChange"],Dl=["value"],Ll={slot:"headline"},Ml=["label","onUpdate:modelValue"],Fl={class:"v-center"},xl=["onClick"],Rl=e("md-ripple",null,null,-1),Bl={key:2,class:"form-label"},Ql=["onUpdate:modelValue","onChange"],Zl=["value"],zl={slot:"headline"},Ol=["label","onUpdate:modelValue"],jl={class:"v-center"},El=["onClick"],Gl=e("md-ripple",null,null,-1),Hl={key:3,class:"form-label"},Kl=["onUpdate:modelValue","onChange"],Jl=["value"],Pl={slot:"headline"},Wl=["placeholder","onUpdate:modelValue"],Yl={class:"v-center"},Xl=["onClick"],eo=e("md-ripple",null,null,-1),to={key:4,class:"form-label"},lo=["onUpdate:modelValue","onChange"],oo=["value"],no={slot:"headline"},so=["placeholder","onUpdate:modelValue"],ao={class:"v-center"},io=["onClick"],uo=e("md-ripple",null,null,-1),ro={class:"form-row",style:{display:"block",position:"relative"}},co={class:"menu-items"},_o=["onClick"],po={slot:"headline"},mo=["onClick"],ho={slot:"headline"},vo=["onClick"],fo={slot:"headline"},bo=["onClick"],$o={slot:"headline"},yo=["onClick"],go={slot:"headline"},ko={class:"form-row"},Co=["label"],wo={slot:"actions"},No=["disabled"],we=de({__name:"EditContactModal",props:{data:{type:Object},sources:{type:Array},done:{type:Function,required:!0}},setup(g){const $=g,{handleSubmit:Q}=Se(),d=Te({firstName:"",middleName:"",lastName:"",prefix:"",suffix:"",nickname:"",organization:null,notes:"",source:"",starred:0,phoneNumbers:[],emails:[],addresses:[],websites:[],events:[],ims:[],groupIds:[]}),C=I(!1),{t:M}=Ue(),{mutate:w,loading:k,onDone:A}=se({document:fe` mutation createContact($input: ContactInput!) { createContact(input: $input) { ...ContactFragment diff --git a/app/src/main/resources/web/assets/DeviceInfoView-9d38adba.js b/app/src/main/resources/web/assets/DeviceInfoView-c84a4cf1.js similarity index 96% rename from app/src/main/resources/web/assets/DeviceInfoView-9d38adba.js rename to app/src/main/resources/web/assets/DeviceInfoView-c84a4cf1.js index fb0cc4d5..4f434fbf 100644 --- a/app/src/main/resources/web/assets/DeviceInfoView-9d38adba.js +++ b/app/src/main/resources/web/assets/DeviceInfoView-c84a4cf1.js @@ -1 +1 @@ -import{_ as V}from"./Breadcrumb-ebe74d39.js";import{d as $,u as I,r as p,g as A,R as D,c as l,a,p as w,t as o,F as r,J as i,x as N,a9 as T,bx as B,o as t,m as y,j as d,Y as m,h as u,Z as f,_ as j}from"./index-f62f2ff2.js";const x={class:"page-container"},F={class:"main"},E={class:"v-toolbar"},L={class:"panel-container"},Q={class:"grid"},S={class:"g-col-6 g-col-md-4"},C={class:"card"},G={class:"card-body"},J={class:"card-title"},P={class:"card-text"},R={class:"key-value"},Y={class:"key"},Z={class:"value"},q={key:0,class:"time"},z={class:"g-col-6 g-col-md-4"},H={class:"card"},K={class:"card-body"},M={class:"card-title"},O={class:"card-text"},U={class:"key-value"},W={class:"key"},X={class:"value"},ee={key:0,class:"time"},ae={class:"g-col-6 g-col-md-4"},se={class:"card"},le={class:"card-body"},te={class:"card-title"},oe={class:"card-text"},ce={class:"key-value"},ne={class:"key"},re={class:"value"},ie={key:0,class:"time"},de=$({__name:"DeviceInfoView",setup(ue){const{t:_}=I(),b=p([]),g=p([]),k=p([]);return A({handle:(n,h)=>{if(h)N(_(h),"error");else{const s=n.deviceInfo;b.value=[{label:"device_name",value:s.deviceName},{label:"model",value:s.model},{label:"manufacturer",value:s.manufacturer},{label:"device",value:s.device},{label:"board",value:s.board},{label:"hardware",value:s.hardware},{label:"brand",value:s.buildBrand},{label:"build_fingerprint",value:s.fingerprint}],s.phoneNumbers.length>0&&b.value.push({label:"phone_number",value:s.phoneNumbers.map(e=>e.name+" "+e.number)}),g.value=[{label:"android_version",value:s.releaseBuildVersion+" ("+s.sdkVersion+")"},{label:"security_patch",value:s.securityPatch},{label:"bootloader",value:s.bootloader},{label:"build_number",value:s.displayVersion},{label:"baseband",value:s.radioVersion},{label:"java_vm",value:s.javaVmVersion},{label:"kernel",value:s.kernelVersion},{label:"opengl_es",value:s.glEsVersion},{label:"uptime",value:T(s.uptime/1e3)}];const c=n.battery;k.value=[{label:"health",value:_(`battery_health.${c.health}`)},{label:"remaining",value:`${c.level}%`},{label:"status",value:_(`battery_status.${c.status}`)},{label:"power_source",value:_(`battery_plugged.${c.plugged}`)},{label:"technology",value:c.technology},{label:"temperature",value:`${c.temperature} ℃`},{label:"voltage",value:`${c.voltage} mV`},{label:"capacity",value:c.capacity+" mAh"}]}},document:B,appApi:!0}),(n,h)=>{const s=V,c=D("tooltip");return t(),l("div",x,[a("div",F,[a("div",E,[w(s,{current:()=>n.$t("device_info")},null,8,["current"])]),a("div",L,[a("div",Q,[a("div",S,[a("section",C,[a("div",G,[a("h5",J,o(n.$t("device")),1),a("p",P,[(t(!0),l(r,null,i(b.value,e=>(t(),l("div",R,[a("div",Y,o(n.$t(e.label)),1),a("div",Z,[e.isTime?y((t(),l("span",q,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])]),a("div",z,[a("section",H,[a("div",K,[a("h5",M,o(n.$t("system")),1),a("p",O,[(t(!0),l(r,null,i(g.value,e=>(t(),l("div",U,[a("div",W,o(n.$t(e.label)),1),a("div",X,[e.isTime?y((t(),l("span",ee,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])]),a("div",ae,[a("section",se,[a("div",le,[a("h5",te,o(n.$t("battery")),1),a("p",oe,[(t(!0),l(r,null,i(k.value,e=>(t(),l("div",ce,[a("div",ne,o(n.$t(e.label)),1),a("div",re,[e.isTime?y((t(),l("span",ie,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])])])])])])}}});const be=j(de,[["__scopeId","data-v-c9cf5e1a"]]);export{be as default}; +import{_ as V}from"./Breadcrumb-f52b6c6b.js";import{d as $,u as I,r as p,g as A,R as D,c as l,a,p as w,t as o,F as r,J as i,x as N,a9 as T,bx as B,o as t,m as y,j as d,Y as m,h as u,Z as f,_ as j}from"./index-0c42270c.js";const x={class:"page-container"},F={class:"main"},E={class:"v-toolbar"},L={class:"panel-container"},Q={class:"grid"},S={class:"g-col-6 g-col-md-4"},C={class:"card"},G={class:"card-body"},J={class:"card-title"},P={class:"card-text"},R={class:"key-value"},Y={class:"key"},Z={class:"value"},q={key:0,class:"time"},z={class:"g-col-6 g-col-md-4"},H={class:"card"},K={class:"card-body"},M={class:"card-title"},O={class:"card-text"},U={class:"key-value"},W={class:"key"},X={class:"value"},ee={key:0,class:"time"},ae={class:"g-col-6 g-col-md-4"},se={class:"card"},le={class:"card-body"},te={class:"card-title"},oe={class:"card-text"},ce={class:"key-value"},ne={class:"key"},re={class:"value"},ie={key:0,class:"time"},de=$({__name:"DeviceInfoView",setup(ue){const{t:_}=I(),b=p([]),g=p([]),k=p([]);return A({handle:(n,h)=>{if(h)N(_(h),"error");else{const s=n.deviceInfo;b.value=[{label:"device_name",value:s.deviceName},{label:"model",value:s.model},{label:"manufacturer",value:s.manufacturer},{label:"device",value:s.device},{label:"board",value:s.board},{label:"hardware",value:s.hardware},{label:"brand",value:s.buildBrand},{label:"build_fingerprint",value:s.fingerprint}],s.phoneNumbers.length>0&&b.value.push({label:"phone_number",value:s.phoneNumbers.map(e=>e.name+" "+e.number)}),g.value=[{label:"android_version",value:s.releaseBuildVersion+" ("+s.sdkVersion+")"},{label:"security_patch",value:s.securityPatch},{label:"bootloader",value:s.bootloader},{label:"build_number",value:s.displayVersion},{label:"baseband",value:s.radioVersion},{label:"java_vm",value:s.javaVmVersion},{label:"kernel",value:s.kernelVersion},{label:"opengl_es",value:s.glEsVersion},{label:"uptime",value:T(s.uptime/1e3)}];const c=n.battery;k.value=[{label:"health",value:_(`battery_health.${c.health}`)},{label:"remaining",value:`${c.level}%`},{label:"status",value:_(`battery_status.${c.status}`)},{label:"power_source",value:_(`battery_plugged.${c.plugged}`)},{label:"technology",value:c.technology},{label:"temperature",value:`${c.temperature} ℃`},{label:"voltage",value:`${c.voltage} mV`},{label:"capacity",value:c.capacity+" mAh"}]}},document:B,appApi:!0}),(n,h)=>{const s=V,c=D("tooltip");return t(),l("div",x,[a("div",F,[a("div",E,[w(s,{current:()=>n.$t("device_info")},null,8,["current"])]),a("div",L,[a("div",Q,[a("div",S,[a("section",C,[a("div",G,[a("h5",J,o(n.$t("device")),1),a("p",P,[(t(!0),l(r,null,i(b.value,e=>(t(),l("div",R,[a("div",Y,o(n.$t(e.label)),1),a("div",Z,[e.isTime?y((t(),l("span",q,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])]),a("div",z,[a("section",H,[a("div",K,[a("h5",M,o(n.$t("system")),1),a("p",O,[(t(!0),l(r,null,i(g.value,e=>(t(),l("div",U,[a("div",W,o(n.$t(e.label)),1),a("div",X,[e.isTime?y((t(),l("span",ee,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])]),a("div",ae,[a("section",se,[a("div",le,[a("h5",te,o(n.$t("battery")),1),a("p",oe,[(t(!0),l(r,null,i(k.value,e=>(t(),l("div",ce,[a("div",ne,o(n.$t(e.label)),1),a("div",re,[e.isTime?y((t(),l("span",ie,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])])])])])])}}});const be=j(de,[["__scopeId","data-v-c9cf5e1a"]]);export{be as default}; diff --git a/app/src/main/resources/web/assets/DevicesView-4dc23f17.js b/app/src/main/resources/web/assets/DevicesView-b0613c32.js similarity index 92% rename from app/src/main/resources/web/assets/DevicesView-4dc23f17.js rename to app/src/main/resources/web/assets/DevicesView-b0613c32.js index 858029bc..16f6467f 100644 --- a/app/src/main/resources/web/assets/DevicesView-4dc23f17.js +++ b/app/src/main/resources/web/assets/DevicesView-b0613c32.js @@ -1,4 +1,4 @@ -import{d as y,u as A,r as C,g as F,x as N,ab as r,c2 as p,R as I,c as o,a as e,p as m,t,F as M,J as q,o as i,l as _,m as v,j as d,Y as h,h as $,Z as f,a2 as D,ac as B,i as E,a5 as T}from"./index-f62f2ff2.js";import{_ as S}from"./Breadcrumb-ebe74d39.js";import{E as j}from"./EditValueModal-d57e85f6.js";import"./vee-validate.esm-65abdaa1.js";const J={class:"page-container"},L={class:"main"},O={class:"table-responsive"},Q={class:"table"},R=e("th",null,"ID",-1),U={class:"actions one"},Y=["onClick"],Z={class:"nowrap"},z={class:"nowrap"},G={class:"actions one"},H=["onClick"],ee=y({__name:"DevicesView",setup(K){const{t:s}=A(),c=C([]);F({handle:(n,l)=>{l?N(s(l),"error"):c.value=[...n.devices]},document:r` +import{d as y,u as A,r as C,g as F,x as N,ab as r,c2 as p,R as I,c as o,a as e,p as m,t,F as M,J as q,o as i,l as _,m as v,j as d,Y as h,h as $,Z as f,a2 as D,ac as B,i as E,a5 as T}from"./index-0c42270c.js";import{_ as S}from"./Breadcrumb-f52b6c6b.js";import{E as j}from"./EditValueModal-c22a5b2d.js";import"./vee-validate.esm-ca78f26f.js";const J={class:"page-container"},L={class:"main"},O={class:"table-responsive"},Q={class:"table"},R=e("th",null,"ID",-1),U={class:"actions one"},Y=["onClick"],Z={class:"nowrap"},z={class:"nowrap"},G={class:"actions one"},H=["onClick"],ee=y({__name:"DevicesView",setup(K){const{t:s}=A(),c=C([]);F({handle:(n,l)=>{l?N(s(l),"error"):c.value=[...n.devices]},document:r` query { devices { ...DeviceFragment diff --git a/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-60d4e984.js b/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-c9962942.js similarity index 92% rename from app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-60d4e984.js rename to app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-c9962942.js index a3fe3ab3..8c16afbd 100644 --- a/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-60d4e984.js +++ b/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-c9962942.js @@ -1 +1 @@ -import{d as b,r as m,o,c as l,a as r,F as v,J as p,I as y,t as c}from"./index-f62f2ff2.js";const f={class:"v-toolbar"},g={class:"v-tabs"},h=["onClick"],k=["disabled"],F=b({__name:"EditToolbar",props:{modelValue:{type:Number,default:0},save:{type:Function},loading:{type:Boolean},tabs:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(e,{emit:d}){const n=m(e.modelValue);function u(t){n.value=t,d("update:modelValue",t)}return(t,i)=>(o(),l("div",f,[r("ul",g,[(o(!0),l(v,null,p(e.tabs,(a,s)=>(o(),l("li",{key:s,onClick:V=>u(s),class:y({active:n.value===s})},c(a.startsWith("t:")?t.$t(a.slice(2)):a),11,h))),128))]),r("button",{type:"button",disabled:e.loading,class:"btn right-actions",onClick:i[0]||(i[0]=(...a)=>e.save&&e.save(...a))},c(t.$t(e.loading?"saving":"save")),9,k)]))}});export{F as _}; +import{d as b,r as m,o,c as l,a as r,F as v,J as p,I as y,t as c}from"./index-0c42270c.js";const f={class:"v-toolbar"},g={class:"v-tabs"},h=["onClick"],k=["disabled"],F=b({__name:"EditToolbar",props:{modelValue:{type:Number,default:0},save:{type:Function},loading:{type:Boolean},tabs:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(e,{emit:d}){const n=m(e.modelValue);function u(t){n.value=t,d("update:modelValue",t)}return(t,i)=>(o(),l("div",f,[r("ul",g,[(o(!0),l(v,null,p(e.tabs,(a,s)=>(o(),l("li",{key:s,onClick:V=>u(s),class:y({active:n.value===s})},c(a.startsWith("t:")?t.$t(a.slice(2)):a),11,h))),128))]),r("button",{type:"button",disabled:e.loading,class:"btn right-actions",onClick:i[0]||(i[0]=(...a)=>e.save&&e.save(...a))},c(t.$t(e.loading?"saving":"save")),9,k)]))}});export{F as _}; diff --git a/app/src/main/resources/web/assets/EditValueModal-d57e85f6.js b/app/src/main/resources/web/assets/EditValueModal-c22a5b2d.js similarity index 91% rename from app/src/main/resources/web/assets/EditValueModal-d57e85f6.js rename to app/src/main/resources/web/assets/EditValueModal-c22a5b2d.js index cf701a6f..48cae9f5 100644 --- a/app/src/main/resources/web/assets/EditValueModal-d57e85f6.js +++ b/app/src/main/resources/web/assets/EditValueModal-c22a5b2d.js @@ -1 +1 @@ -import{d as h,r as V,an as b,U as k,ao as p,o as x,c as E,a as n,t as u,m as F,v as M,j as t,n as S,ap as q,_ as w}from"./index-f62f2ff2.js";import{u as B,a as C}from"./vee-validate.esm-65abdaa1.js";const D={slot:"headline"},R={slot:"content"},$=["placeholder","error","error-text"],K={slot:"actions"},T=["disabled"],U=h({__name:"EditValueModal",props:{getVariables:{type:Function,required:!0},title:{type:String,required:!0},placeholder:{type:String},value:{type:String},mutation:{type:Function,required:!0},done:{type:Function}},setup(r){const s=r,{handleSubmit:v}=B(),c=V(),{mutate:m,loading:f,onDone:_}=s.mutation(),{value:o,resetField:y,errorMessage:d}=C("inputValue",b().required());o.value=s.value??"",o.value||y();function g(){p()}(async()=>{var e;await k(),(e=c.value)==null||e.focus()})();const i=v(()=>{m(s.getVariables(o.value??""))});return _(()=>{var e;(e=s.done)==null||e.call(this,o.value),p()}),(e,a)=>(x(),E("md-dialog",null,[n("div",D,u(r.title),1),n("div",R,[F(n("md-outlined-text-field",{ref_key:"inputRef",ref:c,placeholder:r.placeholder,"onUpdate:modelValue":a[0]||(a[0]=l=>S(o)?o.value=l:null),onKeyup:a[1]||(a[1]=q((...l)=>t(i)&&t(i)(...l),["enter"])),error:t(d),"error-text":t(d)?e.$t(t(d)):""},null,40,$),[[M,t(o)]])]),n("div",K,[n("md-outlined-button",{value:"cancel",onClick:g},u(e.$t("cancel")),1),n("md-filled-button",{value:"save",disabled:t(f),onClick:a[2]||(a[2]=(...l)=>t(i)&&t(i)(...l)),autofocus:""},u(e.$t("save")),9,T)])]))}});const I=w(U,[["__scopeId","data-v-ed4da307"]]);export{I as E}; +import{d as h,r as V,an as b,U as k,ao as p,o as x,c as E,a as n,t as u,m as F,v as M,j as t,n as S,ap as q,_ as w}from"./index-0c42270c.js";import{u as B,a as C}from"./vee-validate.esm-ca78f26f.js";const D={slot:"headline"},R={slot:"content"},$=["placeholder","error","error-text"],K={slot:"actions"},T=["disabled"],U=h({__name:"EditValueModal",props:{getVariables:{type:Function,required:!0},title:{type:String,required:!0},placeholder:{type:String},value:{type:String},mutation:{type:Function,required:!0},done:{type:Function}},setup(r){const s=r,{handleSubmit:v}=B(),c=V(),{mutate:m,loading:f,onDone:_}=s.mutation(),{value:o,resetField:y,errorMessage:d}=C("inputValue",b().required());o.value=s.value??"",o.value||y();function g(){p()}(async()=>{var e;await k(),(e=c.value)==null||e.focus()})();const i=v(()=>{m(s.getVariables(o.value??""))});return _(()=>{var e;(e=s.done)==null||e.call(this,o.value),p()}),(e,a)=>(x(),E("md-dialog",null,[n("div",D,u(r.title),1),n("div",R,[F(n("md-outlined-text-field",{ref_key:"inputRef",ref:c,placeholder:r.placeholder,"onUpdate:modelValue":a[0]||(a[0]=l=>S(o)?o.value=l:null),onKeyup:a[1]||(a[1]=q((...l)=>t(i)&&t(i)(...l),["enter"])),error:t(d),"error-text":t(d)?e.$t(t(d)):""},null,40,$),[[M,t(o)]])]),n("div",K,[n("md-outlined-button",{value:"cancel",onClick:g},u(e.$t("cancel")),1),n("md-filled-button",{value:"save",disabled:t(f),onClick:a[2]||(a[2]=(...l)=>t(i)&&t(i)(...l)),autofocus:""},u(e.$t("save")),9,T)])]))}});const I=w(U,[["__scopeId","data-v-ed4da307"]]);export{I as E}; diff --git a/app/src/main/resources/web/assets/FeedEntryView-711970c4.js b/app/src/main/resources/web/assets/FeedEntryView-21a66b88.js similarity index 95% rename from app/src/main/resources/web/assets/FeedEntryView-711970c4.js rename to app/src/main/resources/web/assets/FeedEntryView-21a66b88.js index db8df449..672c5c40 100644 --- a/app/src/main/resources/web/assets/FeedEntryView-711970c4.js +++ b/app/src/main/resources/web/assets/FeedEntryView-21a66b88.js @@ -1 +1 @@ -import{_ as P}from"./print-outline-rounded-5fefda7f.js";import{o as s,c as o,a,d as Y,u as W,D as X,r as _,s as ee,f as te,g as A,i as ne,O as se,P as r,Q as oe,R as ae,t as q,S as ie,j as g,k as I,F as ce,J as le,m as u,l as b,p,x as Q,cl as de,aS as _e,cm as re,a5 as ue,Z as pe,A as me,B as he,a2 as ve,a3 as ye,a4 as Te,_ as fe}from"./index-f62f2ff2.js";import{u as qe}from"./markdown-737d43fa.js";const ge={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},be=a("path",{fill:"currentColor",d:"M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h6q.425 0 .713.288T12 4q0 .425-.288.713T11 5H5v14h14v-6q0-.425.288-.713T20 12q.425 0 .713.288T21 13v6q0 .825-.588 1.413T19 21H5Zm4-6q-.275-.275-.275-.7T9 13.6L17.6 5H15q-.425 0-.713-.288T14 4q0-.425.288-.713T15 3h5q.425 0 .713.288T21 4v5q0 .425-.288.713T20 10q-.425 0-.713-.288T19 9V6.4l-8.625 8.625q-.275.275-.675.275T9 15Z"},null,-1),we=[be];function ke(i,c){return s(),o("svg",ge,we)}const Ce={name:"material-symbols-open-in-new-rounded",render:ke},$e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ee=a("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038T14 18.275q0-.25.163-.487t.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.187T16.25 7.8L16 7.55V9q0 .425-.288.713T15 10q-.425 0-.713-.288T14 9V5q0-.425.288-.713T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6h-1.75l.4.35q1.225 1.225 1.788 2.663T20 11.95q0 2.4-1.25 4.363t-3.375 2.937ZM5 20q-.425 0-.713-.288T4 19q0-.425.288-.713T5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.663T4 12.05q0-2.4 1.25-4.362T8.625 4.75q.525-.25.95.038t.425.937q0 .25-.163.488t-.412.362q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.188T7.75 16.2l.25.25V15q0-.425.288-.713T9 14q.425 0 .713.288T10 15v4q0 .425-.288.713T9 20H5Z"},null,-1),Fe=[Ee];function Ve(i,c){return s(),o("svg",$e,Fe)}const Me={name:"material-symbols-sync-rounded",render:Ve},h=i=>(me("data-v-5b41a86a"),i=i(),he(),i),Le={class:"container"},De={class:"title"},He={class:"subtitle v-center"},Be={key:1,class:"author"},Se=["onClick"],xe=h(()=>a("md-ripple",null,null,-1)),Ae={key:2,indeterminate:"",class:"spinner-sm"},Ie=["disabled","onClick"],Qe=h(()=>a("md-ripple",null,null,-1)),Ze=["href"],Ne={class:"icon-button"},Re=h(()=>a("md-ripple",null,null,-1)),Ge=["onClick"],Ue=h(()=>a("md-ripple",null,null,-1)),je=["innerHTML"],m="FEED_ENTRY",ze=Y({__name:"FeedEntryView",setup(i){const{t:c}=W(),Z=X(),w=_(Z.params.id),n=_(),v=_(""),y=_(),{app:N,urlTokenKey:R}=ee(te()),{render:k}=qe(N,R),{refetch:C}=A({handle:async(e,t)=>{t?Q(c(t),"error"):(n.value=e.feedEntry,v.value=await k(e.feedEntry.content||e.feedEntry.description))},document:de,variables:()=>({id:w.value}),appApi:!0});A({handle:(e,t)=>{t?Q(c(t),"error"):e&&(y.value=e.tags)},document:_e,variables:{type:m},appApi:!0});const G=()=>{window.print()};function U(){var e,t;ve(ye,{type:m,tags:y.value,item:{key:(e=n.value)==null?void 0:e.id,title:"",size:0},selected:(t=y.value)==null?void 0:t.filter(T=>{var l;return(l=n.value)==null?void 0:l.tags.some(f=>f.id===T.id)})})}const{mutate:j,loading:$,onDone:z}=ne({document:re,appApi:!0});z(async e=>{const t=e.data;n.value=t.syncFeedContent,v.value=await k(t.syncFeedContent.content||t.syncFeedContent.description)});const J=()=>{j({id:w.value})},E=e=>{e.type===m&&C()},F=e=>{e.type===m&&C()};return se(()=>{r.on("item_tags_updated",F),r.on("items_tags_updated",E)}),oe(()=>{r.off("item_tags_updated",F),r.off("items_tags_updated",E)}),(e,t)=>{var V,M,L,D,H,B,S;const T=ue,l=Te,f=Me,K=Ce,O=P,d=ae("tooltip");return s(),o("div",Le,[a("h2",De,q((V=n.value)==null?void 0:V.title),1),a("div",He,[(M=n.value)!=null&&M.publishedAt?(s(),ie(T,{key:0,class:"time",id:g(pe)((L=n.value)==null?void 0:L.publishedAt),raw:n.value},null,8,["id","raw"])):I("",!0),(D=n.value)!=null&&D.author?(s(),o("span",Be,q((H=n.value)==null?void 0:H.author),1)):I("",!0),(s(!0),o(ce,null,le((B=n.value)==null?void 0:B.tags,x=>(s(),o("span",{key:x.id,class:"badge"},q(x.name),1))),128)),u((s(),o("button",{class:"icon-button",onClick:b(U,["prevent"]),style:{"margin-inline-start":"8px"}},[xe,p(l)],8,Se)),[[d,e.$t("add_to_tags")]]),g($)?(s(),o("md-circular-progress",Ae)):u((s(),o("button",{key:3,class:"icon-button btn-icon",disabled:g($),onClick:b(J,["prevent"])},[Qe,p(f)],8,Ie)),[[d,e.$t("sync_content")]]),u((s(),o("a",{href:(S=n.value)==null?void 0:S.url,target:"_blank"},[a("button",Ne,[Re,p(K)])],8,Ze)),[[d,e.$t("view_original_article")]]),u((s(),o("button",{class:"icon-button",onClick:b(G,["prevent"])},[Ue,p(O)],8,Ge)),[[d,e.$t("print")]])]),a("div",{class:"md-container",innerHTML:v.value},null,8,je)])}}});const Pe=fe(ze,[["__scopeId","data-v-5b41a86a"]]);export{Pe as default}; +import{_ as P}from"./print-outline-rounded-5f50c8a6.js";import{o as s,c as o,a,d as Y,u as W,D as X,r as _,s as ee,f as te,g as A,i as ne,O as se,P as r,Q as oe,R as ae,t as q,S as ie,j as g,k as I,F as ce,J as le,m as u,l as b,p,x as Q,cl as de,aS as _e,cm as re,a5 as ue,Z as pe,A as me,B as he,a2 as ve,a3 as ye,a4 as Te,_ as fe}from"./index-0c42270c.js";import{u as qe}from"./markdown-fa9038b1.js";const ge={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},be=a("path",{fill:"currentColor",d:"M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h6q.425 0 .713.288T12 4q0 .425-.288.713T11 5H5v14h14v-6q0-.425.288-.713T20 12q.425 0 .713.288T21 13v6q0 .825-.588 1.413T19 21H5Zm4-6q-.275-.275-.275-.7T9 13.6L17.6 5H15q-.425 0-.713-.288T14 4q0-.425.288-.713T15 3h5q.425 0 .713.288T21 4v5q0 .425-.288.713T20 10q-.425 0-.713-.288T19 9V6.4l-8.625 8.625q-.275.275-.675.275T9 15Z"},null,-1),we=[be];function ke(i,c){return s(),o("svg",ge,we)}const Ce={name:"material-symbols-open-in-new-rounded",render:ke},$e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ee=a("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038T14 18.275q0-.25.163-.487t.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.187T16.25 7.8L16 7.55V9q0 .425-.288.713T15 10q-.425 0-.713-.288T14 9V5q0-.425.288-.713T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6h-1.75l.4.35q1.225 1.225 1.788 2.663T20 11.95q0 2.4-1.25 4.363t-3.375 2.937ZM5 20q-.425 0-.713-.288T4 19q0-.425.288-.713T5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.663T4 12.05q0-2.4 1.25-4.362T8.625 4.75q.525-.25.95.038t.425.937q0 .25-.163.488t-.412.362q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.188T7.75 16.2l.25.25V15q0-.425.288-.713T9 14q.425 0 .713.288T10 15v4q0 .425-.288.713T9 20H5Z"},null,-1),Fe=[Ee];function Ve(i,c){return s(),o("svg",$e,Fe)}const Me={name:"material-symbols-sync-rounded",render:Ve},h=i=>(me("data-v-5b41a86a"),i=i(),he(),i),Le={class:"container"},De={class:"title"},He={class:"subtitle v-center"},Be={key:1,class:"author"},Se=["onClick"],xe=h(()=>a("md-ripple",null,null,-1)),Ae={key:2,indeterminate:"",class:"spinner-sm"},Ie=["disabled","onClick"],Qe=h(()=>a("md-ripple",null,null,-1)),Ze=["href"],Ne={class:"icon-button"},Re=h(()=>a("md-ripple",null,null,-1)),Ge=["onClick"],Ue=h(()=>a("md-ripple",null,null,-1)),je=["innerHTML"],m="FEED_ENTRY",ze=Y({__name:"FeedEntryView",setup(i){const{t:c}=W(),Z=X(),w=_(Z.params.id),n=_(),v=_(""),y=_(),{app:N,urlTokenKey:R}=ee(te()),{render:k}=qe(N,R),{refetch:C}=A({handle:async(e,t)=>{t?Q(c(t),"error"):(n.value=e.feedEntry,v.value=await k(e.feedEntry.content||e.feedEntry.description))},document:de,variables:()=>({id:w.value}),appApi:!0});A({handle:(e,t)=>{t?Q(c(t),"error"):e&&(y.value=e.tags)},document:_e,variables:{type:m},appApi:!0});const G=()=>{window.print()};function U(){var e,t;ve(ye,{type:m,tags:y.value,item:{key:(e=n.value)==null?void 0:e.id,title:"",size:0},selected:(t=y.value)==null?void 0:t.filter(T=>{var l;return(l=n.value)==null?void 0:l.tags.some(f=>f.id===T.id)})})}const{mutate:j,loading:$,onDone:z}=ne({document:re,appApi:!0});z(async e=>{const t=e.data;n.value=t.syncFeedContent,v.value=await k(t.syncFeedContent.content||t.syncFeedContent.description)});const J=()=>{j({id:w.value})},E=e=>{e.type===m&&C()},F=e=>{e.type===m&&C()};return se(()=>{r.on("item_tags_updated",F),r.on("items_tags_updated",E)}),oe(()=>{r.off("item_tags_updated",F),r.off("items_tags_updated",E)}),(e,t)=>{var V,M,L,D,H,B,S;const T=ue,l=Te,f=Me,K=Ce,O=P,d=ae("tooltip");return s(),o("div",Le,[a("h2",De,q((V=n.value)==null?void 0:V.title),1),a("div",He,[(M=n.value)!=null&&M.publishedAt?(s(),ie(T,{key:0,class:"time",id:g(pe)((L=n.value)==null?void 0:L.publishedAt),raw:n.value},null,8,["id","raw"])):I("",!0),(D=n.value)!=null&&D.author?(s(),o("span",Be,q((H=n.value)==null?void 0:H.author),1)):I("",!0),(s(!0),o(ce,null,le((B=n.value)==null?void 0:B.tags,x=>(s(),o("span",{key:x.id,class:"badge"},q(x.name),1))),128)),u((s(),o("button",{class:"icon-button",onClick:b(U,["prevent"]),style:{"margin-inline-start":"8px"}},[xe,p(l)],8,Se)),[[d,e.$t("add_to_tags")]]),g($)?(s(),o("md-circular-progress",Ae)):u((s(),o("button",{key:3,class:"icon-button btn-icon",disabled:g($),onClick:b(J,["prevent"])},[Qe,p(f)],8,Ie)),[[d,e.$t("sync_content")]]),u((s(),o("a",{href:(S=n.value)==null?void 0:S.url,target:"_blank"},[a("button",Ne,[Re,p(K)])],8,Ze)),[[d,e.$t("view_original_article")]]),u((s(),o("button",{class:"icon-button",onClick:b(G,["prevent"])},[Ue,p(O)],8,Ge)),[[d,e.$t("print")]])]),a("div",{class:"md-container",innerHTML:v.value},null,8,je)])}}});const Pe=fe(ze,[["__scopeId","data-v-5b41a86a"]]);export{Pe as default}; diff --git a/app/src/main/resources/web/assets/FeedsRootView-c5553a66.js b/app/src/main/resources/web/assets/FeedsRootView-20f8d202.js similarity index 95% rename from app/src/main/resources/web/assets/FeedsRootView-c5553a66.js rename to app/src/main/resources/web/assets/FeedsRootView-20f8d202.js index 438c10eb..bd4bb32a 100644 --- a/app/src/main/resources/web/assets/FeedsRootView-c5553a66.js +++ b/app/src/main/resources/web/assets/FeedsRootView-20f8d202.js @@ -1 +1 @@ -import{a as ae,_ as le}from"./TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js";import{d as N,r as y,i as D,c9 as ie,an as P,U,ao as V,o as g,c as C,a as t,t as i,m as q,v as j,j as e,n as H,ap as J,h as I,_ as de,ca as ce,u as re,e as ue,D as pe,E as _e,cb as fe,g as me,cc as ve,x as T,G as he,R as be,p as w,H as L,cd as $e,ce as ke,cf as ge,F as G,J as S,l as B,I as z,bJ as K,a2 as R,T as Ce,C as E,W as ye,aH as Fe,cg as xe,ac as we}from"./index-f62f2ff2.js";import{g as O,M as Me}from"./splitpanes.es-2b477659.js";import{u as W,a as Y}from"./vee-validate.esm-65abdaa1.js";import"./EditValueModal-d57e85f6.js";const Ae={slot:"headline"},Ve={slot:"content"},De={class:"form-row"},Le=["label","error","error-text"],Re={class:"form-row"},Ee={class:"form-check-label"},Ne=["checked"],qe={slot:"actions"},Ie=["disabled"],Qe=N({__name:"AddFeedModal",props:{done:{type:Function}},setup(M){const d=M,{handleSubmit:b}=W(),f=y(),c=y(!1);function $(o){c.value=o.target.checked}const{mutate:m,loading:F,onDone:k}=D({document:ie,appApi:!0}),{value:l,resetField:v,errorMessage:r}=Y("inputValue",P().required());v();function x(){V()}(async()=>{var o;await U(),(o=f.value)==null||o.focus()})();const p=b(()=>{m({url:l.value??"",fetchContent:c.value})});return k(()=>{var o;(o=d.done)==null||o.call(this),V()}),(o,n)=>(g(),C("md-dialog",null,[t("div",Ae,i(o.$t("add_subscription")),1),t("div",Ve,[t("div",De,[q(t("md-outlined-text-field",{ref_key:"inputRef",ref:f,label:o.$t("rss_url"),"onUpdate:modelValue":n[0]||(n[0]=u=>H(l)?l.value=u:null),onKeyup:n[1]||(n[1]=J((...u)=>e(p)&&e(p)(...u),["enter"])),error:e(r),"error-text":e(r)?o.$t(e(r)):""},null,40,Le),[[j,e(l)]])]),t("div",Re,[t("label",Ee,[t("md-checkbox",{"touch-target":"wrapper",onChange:$,checked:c.value},null,40,Ne),I(" "+i(o.$t("fetch_content_automatically")),1)])])]),t("div",qe,[t("md-outlined-button",{value:"cancel",onClick:x},i(o.$t("cancel")),1),t("md-filled-button",{value:"save",disabled:e(F),onClick:n[2]||(n[2]=(...u)=>e(p)&&e(p)(...u)),autofocus:""},i(o.$t("save")),9,Ie)])]))}});const Te=de(Qe,[["__scopeId","data-v-cd35ee4b"]]),Ge={slot:"headline"},Se={slot:"content"},Be={class:"form-label"},ze={class:"form-row"},Ke=["label","error","error-text"],Oe={class:"form-row"},Pe={class:"form-check-label"},Ue=["checked"],je={slot:"actions"},He=["disabled"],Je=N({__name:"FeedModal",props:{data:{type:Object}},setup(M){var x,p;const d=M,{handleSubmit:b}=W(),f=y(),c=y(!1);function $(o){c.value=o.target.checked}const{mutate:m,loading:F,onDone:k}=D({document:ce,appApi:!0}),{value:l,errorMessage:v}=Y("inputValue",P().required());l.value=((x=d.data)==null?void 0:x.name)??"",c.value=((p=d.data)==null?void 0:p.fetchContent)??!1,(async()=>{var o;await U(),(o=f.value)==null||o.focus()})();const r=b(()=>{var o;m({id:(o=d.data)==null?void 0:o.id,name:l.value,fetchContent:c.value})});return k(()=>{V()}),(o,n)=>{var u;return g(),C("md-dialog",null,[t("div",Ge,i(o.$t("update_subscription")),1),t("div",Se,[t("div",Be,i((u=M.data)==null?void 0:u.url),1),t("div",ze,[q(t("md-outlined-text-field",{ref_key:"inputRef",ref:f,class:"form-control",label:o.$t("name"),error:e(v),"error-text":e(v)?o.$t(e(v)):"","onUpdate:modelValue":n[0]||(n[0]=_=>H(l)?l.value=_:null),onKeyup:n[1]||(n[1]=J((..._)=>e(r)&&e(r)(..._),["enter"]))},null,40,Ke),[[j,e(l)]])]),t("div",Oe,[t("label",Pe,[t("md-checkbox",{"touch-target":"wrapper",onChange:$,checked:c.value},null,40,Ue),I(" "+i(o.$t("fetch_content_automatically")),1)])])]),t("div",je,[t("md-outlined-button",{value:"cancel",onClick:n[2]||(n[2]=(..._)=>e(V)&&e(V)(..._))},i(o.$t("cancel")),1),t("md-filled-button",{value:"save",disabled:e(F),onClick:n[3]||(n[3]=(..._)=>e(r)&&e(r)(..._)),autofocus:""},i(o.$t("save")),9,He)])])}}}),We={class:"page-container"},Ye={class:"sidebar"},Xe={class:"nav-title"},Ze={style:{position:"relative"}},et=t("md-ripple",null,null,-1),tt=["open"],ot=["onClick"],nt={slot:"headline"},st={class:"nav"},at=["onClick"],lt=["onClick","onContextmenu"],it={class:"main"},_t=N({__name:"FeedsRootView",setup(M){const{t:d}=re(),b=ue(),f=y([]),c=[{text:"add_subscription",click:x},{text:"import_opml_file",click:_},{text:"export_opml_file",click:X}],$=y(!1),m=pe(),F=_e(m.query),k=fe(m.query),l=y(),{refetch:v}=me({handle:(s,a)=>{a?T(d(a),"error"):s&&(f.value=s.feeds)},document:$e,appApi:!0});function r(s){const a=s.target.files;if(!a)return;const A=new FileReader;A.addEventListener("load",()=>{n({content:A.result})},!1),A.readAsText(a[0])}function x(){R(Te,{done:()=>{v()}})}const{mutate:p,onDone:o}=D({document:ke,appApi:!0});o(s=>{ve(s.data.exportFeeds,"application/xml","feeds.xml")});const{mutate:n,onDone:u}=D({document:ge,appApi:!0});u(()=>{T(d("imported")),v()});function _(){l.value.value="",l.value.click()}function X(){p()}function Z(s){const a=Ce([{name:"feed",op:"",value:K(s.name)}]);E(b,`/feeds?q=${ye(a)}`)}function ee(s,a){s.preventDefault(),Fe({x:s.x,y:s.y,items:[{label:d("edit"),onClick:()=>{R(Je,{data:a})}},{label:d("delete"),onClick:()=>{R(we,{id:a.id,name:a.name,gql:xe,appApi:!0,typeName:"Feed",done:()=>{E(b,"/feeds")}})}}]})}function te(){E(b,"/feeds")}return(s,a)=>{const A=ae,oe=le,ne=he("router-view"),se=be("tooltip");return g(),C("div",We,[w(e(Me),null,{default:L(()=>[w(e(O),{size:"20","min-size":"10"},{default:L(()=>[t("div",Ye,[t("h2",Xe,[I(i(s.$t("page_title.feeds"))+" ",1),t("div",Ze,[q((g(),C("button",{class:"icon-button",id:"add-feed-ref",onClick:a[0]||(a[0]=()=>$.value=!0)},[et,w(A)])),[[se,e(d)("add_subscription")]]),t("md-menu",{anchor:"add-feed-ref",positioning:"fixed","stay-open-on-focusout":"",quick:"",open:$.value,onClosed:a[1]||(a[1]=()=>$.value=!1)},[(g(),C(G,null,S(c,h=>t("md-menu-item",{onClick:h.click},[t("div",nt,i(s.$t(h.text)),1)],8,ot)),64))],40,tt)])]),t("ul",st,[t("li",{onClick:B(te,["prevent"]),class:z({active:e(m).path==="/feeds"&&!e(F)&&!e(k)})},i(s.$t("all")),11,at),(g(!0),C(G,null,S(f.value,h=>(g(),C("li",{onClick:B(Q=>Z(h),["stop","prevent"]),onContextmenu:Q=>ee(Q,h),class:z({active:e(m).params.feedId===h.id||e(k)&&e(K)(h.name)===e(k)})},i(h.name),43,lt))),256))]),w(oe,{type:"FEED_ENTRY",selected:e(F)},null,8,["selected"])])]),_:1}),w(e(O),null,{default:L(()=>[t("div",it,[w(ne)])]),_:1})]),_:1}),t("input",{ref_key:"fileInput",ref:l,style:{display:"none"},accept:".xml",type:"file",onChange:r},null,544)])}}});export{_t as default}; +import{a as ae,_ as le}from"./TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js";import{d as N,r as y,i as D,c9 as ie,an as P,U,ao as V,o as g,c as C,a as t,t as i,m as q,v as j,j as e,n as H,ap as J,h as I,_ as de,ca as ce,u as re,e as ue,D as pe,E as _e,cb as fe,g as me,cc as ve,x as T,G as he,R as be,p as w,H as L,cd as $e,ce as ke,cf as ge,F as G,J as S,l as B,I as z,bJ as K,a2 as R,T as Ce,C as E,W as ye,aH as Fe,cg as xe,ac as we}from"./index-0c42270c.js";import{g as O,M as Me}from"./splitpanes.es-7e8a6fea.js";import{u as W,a as Y}from"./vee-validate.esm-ca78f26f.js";import"./EditValueModal-c22a5b2d.js";const Ae={slot:"headline"},Ve={slot:"content"},De={class:"form-row"},Le=["label","error","error-text"],Re={class:"form-row"},Ee={class:"form-check-label"},Ne=["checked"],qe={slot:"actions"},Ie=["disabled"],Qe=N({__name:"AddFeedModal",props:{done:{type:Function}},setup(M){const d=M,{handleSubmit:b}=W(),f=y(),c=y(!1);function $(o){c.value=o.target.checked}const{mutate:m,loading:F,onDone:k}=D({document:ie,appApi:!0}),{value:l,resetField:v,errorMessage:r}=Y("inputValue",P().required());v();function x(){V()}(async()=>{var o;await U(),(o=f.value)==null||o.focus()})();const p=b(()=>{m({url:l.value??"",fetchContent:c.value})});return k(()=>{var o;(o=d.done)==null||o.call(this),V()}),(o,n)=>(g(),C("md-dialog",null,[t("div",Ae,i(o.$t("add_subscription")),1),t("div",Ve,[t("div",De,[q(t("md-outlined-text-field",{ref_key:"inputRef",ref:f,label:o.$t("rss_url"),"onUpdate:modelValue":n[0]||(n[0]=u=>H(l)?l.value=u:null),onKeyup:n[1]||(n[1]=J((...u)=>e(p)&&e(p)(...u),["enter"])),error:e(r),"error-text":e(r)?o.$t(e(r)):""},null,40,Le),[[j,e(l)]])]),t("div",Re,[t("label",Ee,[t("md-checkbox",{"touch-target":"wrapper",onChange:$,checked:c.value},null,40,Ne),I(" "+i(o.$t("fetch_content_automatically")),1)])])]),t("div",qe,[t("md-outlined-button",{value:"cancel",onClick:x},i(o.$t("cancel")),1),t("md-filled-button",{value:"save",disabled:e(F),onClick:n[2]||(n[2]=(...u)=>e(p)&&e(p)(...u)),autofocus:""},i(o.$t("save")),9,Ie)])]))}});const Te=de(Qe,[["__scopeId","data-v-cd35ee4b"]]),Ge={slot:"headline"},Se={slot:"content"},Be={class:"form-label"},ze={class:"form-row"},Ke=["label","error","error-text"],Oe={class:"form-row"},Pe={class:"form-check-label"},Ue=["checked"],je={slot:"actions"},He=["disabled"],Je=N({__name:"FeedModal",props:{data:{type:Object}},setup(M){var x,p;const d=M,{handleSubmit:b}=W(),f=y(),c=y(!1);function $(o){c.value=o.target.checked}const{mutate:m,loading:F,onDone:k}=D({document:ce,appApi:!0}),{value:l,errorMessage:v}=Y("inputValue",P().required());l.value=((x=d.data)==null?void 0:x.name)??"",c.value=((p=d.data)==null?void 0:p.fetchContent)??!1,(async()=>{var o;await U(),(o=f.value)==null||o.focus()})();const r=b(()=>{var o;m({id:(o=d.data)==null?void 0:o.id,name:l.value,fetchContent:c.value})});return k(()=>{V()}),(o,n)=>{var u;return g(),C("md-dialog",null,[t("div",Ge,i(o.$t("update_subscription")),1),t("div",Se,[t("div",Be,i((u=M.data)==null?void 0:u.url),1),t("div",ze,[q(t("md-outlined-text-field",{ref_key:"inputRef",ref:f,class:"form-control",label:o.$t("name"),error:e(v),"error-text":e(v)?o.$t(e(v)):"","onUpdate:modelValue":n[0]||(n[0]=_=>H(l)?l.value=_:null),onKeyup:n[1]||(n[1]=J((..._)=>e(r)&&e(r)(..._),["enter"]))},null,40,Ke),[[j,e(l)]])]),t("div",Oe,[t("label",Pe,[t("md-checkbox",{"touch-target":"wrapper",onChange:$,checked:c.value},null,40,Ue),I(" "+i(o.$t("fetch_content_automatically")),1)])])]),t("div",je,[t("md-outlined-button",{value:"cancel",onClick:n[2]||(n[2]=(..._)=>e(V)&&e(V)(..._))},i(o.$t("cancel")),1),t("md-filled-button",{value:"save",disabled:e(F),onClick:n[3]||(n[3]=(..._)=>e(r)&&e(r)(..._)),autofocus:""},i(o.$t("save")),9,He)])])}}}),We={class:"page-container"},Ye={class:"sidebar"},Xe={class:"nav-title"},Ze={style:{position:"relative"}},et=t("md-ripple",null,null,-1),tt=["open"],ot=["onClick"],nt={slot:"headline"},st={class:"nav"},at=["onClick"],lt=["onClick","onContextmenu"],it={class:"main"},_t=N({__name:"FeedsRootView",setup(M){const{t:d}=re(),b=ue(),f=y([]),c=[{text:"add_subscription",click:x},{text:"import_opml_file",click:_},{text:"export_opml_file",click:X}],$=y(!1),m=pe(),F=_e(m.query),k=fe(m.query),l=y(),{refetch:v}=me({handle:(s,a)=>{a?T(d(a),"error"):s&&(f.value=s.feeds)},document:$e,appApi:!0});function r(s){const a=s.target.files;if(!a)return;const A=new FileReader;A.addEventListener("load",()=>{n({content:A.result})},!1),A.readAsText(a[0])}function x(){R(Te,{done:()=>{v()}})}const{mutate:p,onDone:o}=D({document:ke,appApi:!0});o(s=>{ve(s.data.exportFeeds,"application/xml","feeds.xml")});const{mutate:n,onDone:u}=D({document:ge,appApi:!0});u(()=>{T(d("imported")),v()});function _(){l.value.value="",l.value.click()}function X(){p()}function Z(s){const a=Ce([{name:"feed",op:"",value:K(s.name)}]);E(b,`/feeds?q=${ye(a)}`)}function ee(s,a){s.preventDefault(),Fe({x:s.x,y:s.y,items:[{label:d("edit"),onClick:()=>{R(Je,{data:a})}},{label:d("delete"),onClick:()=>{R(we,{id:a.id,name:a.name,gql:xe,appApi:!0,typeName:"Feed",done:()=>{E(b,"/feeds")}})}}]})}function te(){E(b,"/feeds")}return(s,a)=>{const A=ae,oe=le,ne=he("router-view"),se=be("tooltip");return g(),C("div",We,[w(e(Me),null,{default:L(()=>[w(e(O),{size:"20","min-size":"10"},{default:L(()=>[t("div",Ye,[t("h2",Xe,[I(i(s.$t("page_title.feeds"))+" ",1),t("div",Ze,[q((g(),C("button",{class:"icon-button",id:"add-feed-ref",onClick:a[0]||(a[0]=()=>$.value=!0)},[et,w(A)])),[[se,e(d)("add_subscription")]]),t("md-menu",{anchor:"add-feed-ref",positioning:"fixed","stay-open-on-focusout":"",quick:"",open:$.value,onClosed:a[1]||(a[1]=()=>$.value=!1)},[(g(),C(G,null,S(c,h=>t("md-menu-item",{onClick:h.click},[t("div",nt,i(s.$t(h.text)),1)],8,ot)),64))],40,tt)])]),t("ul",st,[t("li",{onClick:B(te,["prevent"]),class:z({active:e(m).path==="/feeds"&&!e(F)&&!e(k)})},i(s.$t("all")),11,at),(g(!0),C(G,null,S(f.value,h=>(g(),C("li",{onClick:B(Q=>Z(h),["stop","prevent"]),onContextmenu:Q=>ee(Q,h),class:z({active:e(m).params.feedId===h.id||e(k)&&e(K)(h.name)===e(k)})},i(h.name),43,lt))),256))]),w(oe,{type:"FEED_ENTRY",selected:e(F)},null,8,["selected"])])]),_:1}),w(e(O),null,{default:L(()=>[t("div",it,[w(ne)])]),_:1})]),_:1}),t("input",{ref_key:"fileInput",ref:l,style:{display:"none"},accept:".xml",type:"file",onChange:r},null,544)])}}});export{_t as default}; diff --git a/app/src/main/resources/web/assets/FeedsView-8b639e3b.js b/app/src/main/resources/web/assets/FeedsView-171091b5.js similarity index 95% rename from app/src/main/resources/web/assets/FeedsView-8b639e3b.js rename to app/src/main/resources/web/assets/FeedsView-171091b5.js index 2b64596c..c08f8d2c 100644 --- a/app/src/main/resources/web/assets/FeedsView-8b639e3b.js +++ b/app/src/main/resources/web/assets/FeedsView-171091b5.js @@ -1,4 +1,4 @@ -import{c as ke,u as ye,_ as be,a as $e,b as Ce}from"./list-45297bd9.js";import{d as we,e as Te,r as _,u as Fe,K as Ee,L as Se,D as qe,M as Ae,N as Ve,g as De,w as Ie,O as Qe,P as f,Q as Ue,i as Le,R as Me,c as d,a as t,p as h,j as l,F as I,m as C,l as m,k as Q,t as c,H as Ne,J as X,S as Re,ch as Be,x as N,ci as Ge,ag as He,bJ as ee,T as ze,U as Ye,cj as je,C as te,W as se,ck as Je,o,v as Ke,I as Pe,ax as xe,Y as Oe,h as We,Z as Ze,$ as Xe,a2 as le,ab as et,ac as tt,a3 as st,a0 as lt,a1 as at,aY as nt,ad as ot,a4 as dt,a6 as it}from"./index-f62f2ff2.js";import{_ as ct}from"./Breadcrumb-ebe74d39.js";import{a as ut}from"./tags-06583423.js";import"./vee-validate.esm-65abdaa1.js";const rt={class:"v-toolbar"},pt=t("md-ripple",null,null,-1),_t=t("md-ripple",null,null,-1),ft=["disabled","onClick"],ht={class:"filters"},mt=["label"],gt={class:"form-label"},vt=["label","selected","onClick"],kt={class:"buttons"},yt=["onClick"],bt={class:"table-responsive"},$t={class:"table"},Ct=["checked","indeterminate"],wt=t("th",null,null,-1),Tt=t("th",null,null,-1),Ft=["onClick"],Et=["checked"],St=["src"],qt={style:{"min-width":"200px"}},At=["href","onClick"],Vt={class:"nowrap"},Dt={class:"action-btns"},It=["onClick"],Qt=t("md-ripple",null,null,-1),Ut=["onClick"],Lt=t("md-ripple",null,null,-1),Mt={class:"nowrap"},Nt={class:"nowrap"},Rt={key:0},Bt={colspan:"7"},Gt={class:"no-data-placeholder"},S=50,xt=we({__name:"FeedsView",setup(Ht){var W,Z;const R=Te(),g=_([]),B=_(),{t:U}=Fe(),i=Ee({text:"",feeds:[],tags:[]}),r=Se.FEED_ENTRY,G=qe().query,q=_(parseInt(((W=G.page)==null?void 0:W.toString())??"1")),w=_([]),ae=_([]),v=_(Ae(((Z=G.q)==null?void 0:Z.toString())??"")),A=_(""),{addToTags:ne}=ut(r,g,w),{deleteItems:oe}=ke(Be,()=>{D(),M(),g.value.some(e=>e.tags.length)&&f.emit("refetch_tags",r)},g),V=_(!1),{allChecked:H,realAllChecked:L,selectRealAll:de,allCheckedAlertVisible:ie,clearSelection:D,toggleAllChecked:z,toggleItemChecked:Y,toggleRow:ce,total:k,checked:j}=ye(g),{loading:ue,load:re,refetch:M}=Ve({handle:(e,a)=>{a?N(U(a),"error"):e&&(g.value=e.feedEntries.map(p=>({...p,checked:!1})),k.value=e.feedEntryCount)},document:Ge,variables:()=>({offset:(q.value-1)*S,limit:S,query:A.value}),appApi:!0});function pe(e){le(tt,{id:e.id,name:e.title,gql:et` +import{c as ke,u as ye,_ as be,a as $e,b as Ce}from"./list-183f8357.js";import{d as we,e as Te,r as _,u as Fe,K as Ee,L as Se,D as qe,M as Ae,N as Ve,g as De,w as Ie,O as Qe,P as f,Q as Ue,i as Le,R as Me,c as d,a as t,p as h,j as l,F as I,m as C,l as m,k as Q,t as c,H as Ne,J as X,S as Re,ch as Be,x as N,ci as Ge,ag as He,bJ as ee,T as ze,U as Ye,cj as je,C as te,W as se,ck as Je,o,v as Ke,I as Pe,ax as xe,Y as Oe,h as We,Z as Ze,$ as Xe,a2 as le,ab as et,ac as tt,a3 as st,a0 as lt,a1 as at,aY as nt,ad as ot,a4 as dt,a6 as it}from"./index-0c42270c.js";import{_ as ct}from"./Breadcrumb-f52b6c6b.js";import{a as ut}from"./tags-bf0f6db9.js";import"./vee-validate.esm-ca78f26f.js";const rt={class:"v-toolbar"},pt=t("md-ripple",null,null,-1),_t=t("md-ripple",null,null,-1),ft=["disabled","onClick"],ht={class:"filters"},mt=["label"],gt={class:"form-label"},vt=["label","selected","onClick"],kt={class:"buttons"},yt=["onClick"],bt={class:"table-responsive"},$t={class:"table"},Ct=["checked","indeterminate"],wt=t("th",null,null,-1),Tt=t("th",null,null,-1),Ft=["onClick"],Et=["checked"],St=["src"],qt={style:{"min-width":"200px"}},At=["href","onClick"],Vt={class:"nowrap"},Dt={class:"action-btns"},It=["onClick"],Qt=t("md-ripple",null,null,-1),Ut=["onClick"],Lt=t("md-ripple",null,null,-1),Mt={class:"nowrap"},Nt={class:"nowrap"},Rt={key:0},Bt={colspan:"7"},Gt={class:"no-data-placeholder"},S=50,xt=we({__name:"FeedsView",setup(Ht){var W,Z;const R=Te(),g=_([]),B=_(),{t:U}=Fe(),i=Ee({text:"",feeds:[],tags:[]}),r=Se.FEED_ENTRY,G=qe().query,q=_(parseInt(((W=G.page)==null?void 0:W.toString())??"1")),w=_([]),ae=_([]),v=_(Ae(((Z=G.q)==null?void 0:Z.toString())??"")),A=_(""),{addToTags:ne}=ut(r,g,w),{deleteItems:oe}=ke(Be,()=>{D(),M(),g.value.some(e=>e.tags.length)&&f.emit("refetch_tags",r)},g),V=_(!1),{allChecked:H,realAllChecked:L,selectRealAll:de,allCheckedAlertVisible:ie,clearSelection:D,toggleAllChecked:z,toggleItemChecked:Y,toggleRow:ce,total:k,checked:j}=ye(g),{loading:ue,load:re,refetch:M}=Ve({handle:(e,a)=>{a?N(U(a),"error"):e&&(g.value=e.feedEntries.map(p=>({...p,checked:!1})),k.value=e.feedEntryCount)},document:Ge,variables:()=>({offset:(q.value-1)*S,limit:S,query:A.value}),appApi:!0});function pe(e){le(tt,{id:e.id,name:e.title,gql:et` mutation deleteFeedEntry($query: String!) { deleteFeedEntries(query: $query) } diff --git a/app/src/main/resources/web/assets/FilesRecentView-d638e349.js b/app/src/main/resources/web/assets/FilesRecentView-760365b8.js similarity index 96% rename from app/src/main/resources/web/assets/FilesRecentView-d638e349.js rename to app/src/main/resources/web/assets/FilesRecentView-760365b8.js index e7d6604d..3cce4a3b 100644 --- a/app/src/main/resources/web/assets/FilesRecentView-d638e349.js +++ b/app/src/main/resources/web/assets/FilesRecentView-760365b8.js @@ -1 +1 @@ -import{d as W,u as X,r as b,f as j,s as q,bq as H,i as P,aC as Q,R as Z,c as a,a as l,p as V,m as Y,l as F,k as i,h as m,t as d,j as o,F as w,J as ee,al as te,bg as se,o as n,I as oe,bh as ae,bi as ne,ax as le,Z as ce,z as ie,$ as de,A as re,B as ue,bk as pe,bm as R,ah as S,bn as g,aH as _e,am as he,bp as me,_ as ke}from"./index-f62f2ff2.js";import{_ as ve}from"./Breadcrumb-ebe74d39.js";const be=p=>(re("data-v-e2791d49"),p=p(),ue(),p),we={class:"v-toolbar"},ge={class:"right-actions"},ye=["onClick"],fe=be(()=>l("md-ripple",null,null,-1)),Ce={class:"form-check-label"},Ie=["checked"],De={class:"panel-container"},Te={key:0,class:"file-items"},Ve=["onClick","onDblclick","onContextmenu"],Fe=["checked"],Re=["src"],Se={class:"title"},Ee={style:{"font-size":"0.75rem"}},xe={key:1,class:"no-data-placeholder"},$e={key:0,class:"file-item-info"},Ae=W({__name:"FilesRecentView",setup(p){const{t:k}=X(),E=b([]),u=b(!1),y=j(),{app:f,urlTokenKey:_}=q(y),{loading:x,files:r}=H(_),{downloadFile:C,downloadDir:$,downloadFiles:A}=te(_),{view:I}=me(E,(e,t)=>{y.lightbox={sources:e,index:t,visible:!0}}),h=b(null),{mutate:N,onDone:B}=P({document:se,appApi:!0});B(e=>{A(e.data.setTempValue.key),r.value.forEach(t=>{t.checked=!1})});const D=()=>{const e=[];return r.value.forEach(t=>{t.checked&&e.push({path:t.path})}),e};function z(e){u.value=e.target.checked}const M=()=>{N({key:pe(),value:JSON.stringify(D())})},L=Q(()=>D().length>0);function O(e){if(u.value){e.checked=!e.checked;return}h.value=e}function U(e){R(e.name)?window.open(S(_.value,e.path),"_blank"):g(e.name)?I(r.value,e):C(e.path)}function G(e,t){e.preventDefault();let c;t.isDir?c=[{label:k("download"),onClick:()=>{$(t.path)}}]:(c=[],(R(t.name)||g(t.name))&&c.push({label:k("open"),onClick:()=>{g(t.name)?I(r.value,t):window.open(S(_.value,t.path),"_blank")}}),c.push({label:k("download"),onClick:()=>{C(t.path)}})),_e({x:e.x,y:e.y,items:c})}return(e,t)=>{const c=ve,J=he,K=Z("tooltip");return n(),a(w,null,[l("div",we,[V(c,{current:e.$t("recent_files")},null,8,["current"]),l("div",ge,[u.value&&L.value?Y((n(),a("button",{key:0,class:"icon-button",onClick:F(M,["stop"])},[fe,V(J)],8,ye)),[[K,e.$t("download")]]):i("",!0),l("label",Ce,[l("md-checkbox",{"touch-target":"wrapper",onChange:z,checked:u.value},null,40,Ie),m(d(e.$t("select_mode")),1)])])]),l("div",De,[o(f).permissions.includes("WRITE_EXTERNAL_STORAGE")?(n(),a("div",Te,[(n(!0),a(w,null,ee(o(r),s=>{var T;return n(),a("div",{key:s.path,class:oe(["file-item",{active:((T=h.value)==null?void 0:T.path)===s.path}]),onClick:v=>O(s),onDblclick:F(v=>U(s),["prevent"]),onContextmenu:v=>G(v,s)},[u.value?(n(),a("md-checkbox",{key:0,"touch-target":"wrapper",checked:s.checked},null,8,Fe)):i("",!0),o(ae)(s.name)||o(ne)(s.name)?(n(),a("img",{key:1,src:o(le)(s.fileId)+"&w=50&h=50",width:"50",height:"50"},null,8,Re)):i("",!0),l("div",Se,[m(d(s.name)+" ",1),l("div",Ee,[m(d(o(ce)(s.updatedAt)),1),s.isDir?i("",!0):(n(),a(w,{key:0},[m(", "+d(o(ie)(s.size)),1)],64))])])],42,Ve)}),128))])):i("",!0),o(r).length===0?(n(),a("div",xe,d(e.$t(o(de)(o(x),o(f).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):i("",!0)]),h.value?(n(),a("div",$e,d(e.$t("path"))+": "+d(h.value.path),1)):i("",!0)],64)}}});const ze=ke(Ae,[["__scopeId","data-v-e2791d49"]]);export{ze as default}; +import{d as W,u as X,r as b,f as j,s as q,bq as H,i as P,aC as Q,R as Z,c as a,a as l,p as V,m as Y,l as F,k as i,h as m,t as d,j as o,F as w,J as ee,al as te,bg as se,o as n,I as oe,bh as ae,bi as ne,ax as le,Z as ce,z as ie,$ as de,A as re,B as ue,bk as pe,bm as R,ah as S,bn as g,aH as _e,am as he,bp as me,_ as ke}from"./index-0c42270c.js";import{_ as ve}from"./Breadcrumb-f52b6c6b.js";const be=p=>(re("data-v-e2791d49"),p=p(),ue(),p),we={class:"v-toolbar"},ge={class:"right-actions"},ye=["onClick"],fe=be(()=>l("md-ripple",null,null,-1)),Ce={class:"form-check-label"},Ie=["checked"],De={class:"panel-container"},Te={key:0,class:"file-items"},Ve=["onClick","onDblclick","onContextmenu"],Fe=["checked"],Re=["src"],Se={class:"title"},Ee={style:{"font-size":"0.75rem"}},xe={key:1,class:"no-data-placeholder"},$e={key:0,class:"file-item-info"},Ae=W({__name:"FilesRecentView",setup(p){const{t:k}=X(),E=b([]),u=b(!1),y=j(),{app:f,urlTokenKey:_}=q(y),{loading:x,files:r}=H(_),{downloadFile:C,downloadDir:$,downloadFiles:A}=te(_),{view:I}=me(E,(e,t)=>{y.lightbox={sources:e,index:t,visible:!0}}),h=b(null),{mutate:N,onDone:B}=P({document:se,appApi:!0});B(e=>{A(e.data.setTempValue.key),r.value.forEach(t=>{t.checked=!1})});const D=()=>{const e=[];return r.value.forEach(t=>{t.checked&&e.push({path:t.path})}),e};function z(e){u.value=e.target.checked}const M=()=>{N({key:pe(),value:JSON.stringify(D())})},L=Q(()=>D().length>0);function O(e){if(u.value){e.checked=!e.checked;return}h.value=e}function U(e){R(e.name)?window.open(S(_.value,e.path),"_blank"):g(e.name)?I(r.value,e):C(e.path)}function G(e,t){e.preventDefault();let c;t.isDir?c=[{label:k("download"),onClick:()=>{$(t.path)}}]:(c=[],(R(t.name)||g(t.name))&&c.push({label:k("open"),onClick:()=>{g(t.name)?I(r.value,t):window.open(S(_.value,t.path),"_blank")}}),c.push({label:k("download"),onClick:()=>{C(t.path)}})),_e({x:e.x,y:e.y,items:c})}return(e,t)=>{const c=ve,J=he,K=Z("tooltip");return n(),a(w,null,[l("div",we,[V(c,{current:e.$t("recent_files")},null,8,["current"]),l("div",ge,[u.value&&L.value?Y((n(),a("button",{key:0,class:"icon-button",onClick:F(M,["stop"])},[fe,V(J)],8,ye)),[[K,e.$t("download")]]):i("",!0),l("label",Ce,[l("md-checkbox",{"touch-target":"wrapper",onChange:z,checked:u.value},null,40,Ie),m(d(e.$t("select_mode")),1)])])]),l("div",De,[o(f).permissions.includes("WRITE_EXTERNAL_STORAGE")?(n(),a("div",Te,[(n(!0),a(w,null,ee(o(r),s=>{var T;return n(),a("div",{key:s.path,class:oe(["file-item",{active:((T=h.value)==null?void 0:T.path)===s.path}]),onClick:v=>O(s),onDblclick:F(v=>U(s),["prevent"]),onContextmenu:v=>G(v,s)},[u.value?(n(),a("md-checkbox",{key:0,"touch-target":"wrapper",checked:s.checked},null,8,Fe)):i("",!0),o(ae)(s.name)||o(ne)(s.name)?(n(),a("img",{key:1,src:o(le)(s.fileId)+"&w=50&h=50",width:"50",height:"50"},null,8,Re)):i("",!0),l("div",Se,[m(d(s.name)+" ",1),l("div",Ee,[m(d(o(ce)(s.updatedAt)),1),s.isDir?i("",!0):(n(),a(w,{key:0},[m(", "+d(o(ie)(s.size)),1)],64))])])],42,Ve)}),128))])):i("",!0),o(r).length===0?(n(),a("div",xe,d(e.$t(o(de)(o(x),o(f).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):i("",!0)]),h.value?(n(),a("div",$e,d(e.$t("path"))+": "+d(h.value.path),1)):i("",!0)],64)}}});const ze=ke(Ae,[["__scopeId","data-v-e2791d49"]]);export{ze as default}; diff --git a/app/src/main/resources/web/assets/FilesRootView-29f6b306.js b/app/src/main/resources/web/assets/FilesRootView-a1781340.js similarity index 91% rename from app/src/main/resources/web/assets/FilesRootView-29f6b306.js rename to app/src/main/resources/web/assets/FilesRootView-a1781340.js index 788c1d12..832cf6cd 100644 --- a/app/src/main/resources/web/assets/FilesRootView-29f6b306.js +++ b/app/src/main/resources/web/assets/FilesRootView-a1781340.js @@ -1 +1 @@ -import{d as y,D as b,e as w,s as B,f as S,G as V,c as l,p as c,H as m,j as e,o as p,a as t,t as n,l as o,I as i,k as z,F as D,J as F,C as $}from"./index-f62f2ff2.js";import{g as k,M}from"./splitpanes.es-2b477659.js";const N={class:"page-container"},P={class:"sidebar"},R={class:"nav-title"},T={class:"nav"},j=["onClick"],E=["onClick"],G={class:"main"},q=y({__name:"FilesRootView",setup(H){const d=b(),f=w(),{app:C}=B(S()),u=d.params.type;function r(s){$(f,`/files/${s}`)}function h(){$(f,"/files")}return(s,a)=>{const g=V("router-view");return p(),l("div",N,[c(e(M),null,{default:m(()=>[c(e(k),{size:"20","min-size":"10"},{default:m(()=>[t("div",P,[t("h2",R,n(s.$t("page_title.files")),1),t("ul",T,[t("li",{onClick:a[0]||(a[0]=o(v=>r("recent"),["prevent"])),class:i({active:e(d).path==="/files/recent"})},n(s.$t("recents")),3),t("li",{onClick:o(h,["prevent"]),class:i({active:e(d).path==="/files"})},n(s.$t("internal_storage")),11,j),e(C).sdcardPath?(p(),l("li",{key:0,onClick:a[1]||(a[1]=o(v=>r("sdcard"),["prevent"])),class:i({active:e(u)==="sdcard"})},n(s.$t("sdcard")),3)):z("",!0),(p(!0),l(D,null,F(e(C).usbDiskPaths,(v,_)=>(p(),l("li",{onClick:o(I=>r(`usb${_+1}`),["prevent"]),class:i({active:e(u)===`usb${_+1}`})},n(s.$t("usb_storage")+" "+(_+1)),11,E))),256)),t("li",{onClick:a[2]||(a[2]=o(v=>r("app"),["prevent"])),class:i({active:e(u)==="app"})},n(s.$t("app_name")),3)])])]),_:1}),c(e(k),null,{default:m(()=>[t("div",G,[c(g)])]),_:1})]),_:1})])}}});export{q as default}; +import{d as y,D as b,e as w,s as B,f as S,G as V,c as l,p as c,H as m,j as e,o as p,a as t,t as n,l as o,I as i,k as z,F as D,J as F,C as $}from"./index-0c42270c.js";import{g as k,M}from"./splitpanes.es-7e8a6fea.js";const N={class:"page-container"},P={class:"sidebar"},R={class:"nav-title"},T={class:"nav"},j=["onClick"],E=["onClick"],G={class:"main"},q=y({__name:"FilesRootView",setup(H){const d=b(),f=w(),{app:C}=B(S()),u=d.params.type;function r(s){$(f,`/files/${s}`)}function h(){$(f,"/files")}return(s,a)=>{const g=V("router-view");return p(),l("div",N,[c(e(M),null,{default:m(()=>[c(e(k),{size:"20","min-size":"10"},{default:m(()=>[t("div",P,[t("h2",R,n(s.$t("page_title.files")),1),t("ul",T,[t("li",{onClick:a[0]||(a[0]=o(v=>r("recent"),["prevent"])),class:i({active:e(d).path==="/files/recent"})},n(s.$t("recents")),3),t("li",{onClick:o(h,["prevent"]),class:i({active:e(d).path==="/files"})},n(s.$t("internal_storage")),11,j),e(C).sdcardPath?(p(),l("li",{key:0,onClick:a[1]||(a[1]=o(v=>r("sdcard"),["prevent"])),class:i({active:e(u)==="sdcard"})},n(s.$t("sdcard")),3)):z("",!0),(p(!0),l(D,null,F(e(C).usbDiskPaths,(v,_)=>(p(),l("li",{onClick:o(I=>r(`usb${_+1}`),["prevent"]),class:i({active:e(u)===`usb${_+1}`})},n(s.$t("usb_storage")+" "+(_+1)),11,E))),256)),t("li",{onClick:a[2]||(a[2]=o(v=>r("app"),["prevent"])),class:i({active:e(u)==="app"})},n(s.$t("app_name")),3)])])]),_:1}),c(e(k),null,{default:m(()=>[t("div",G,[c(g)])]),_:1})]),_:1})])}}});export{q as default}; diff --git a/app/src/main/resources/web/assets/FilesView-6a0c28d6.js b/app/src/main/resources/web/assets/FilesView-8eb4e330.js similarity index 97% rename from app/src/main/resources/web/assets/FilesView-6a0c28d6.js rename to app/src/main/resources/web/assets/FilesView-8eb4e330.js index c6424247..66b93419 100644 --- a/app/src/main/resources/web/assets/FilesView-6a0c28d6.js +++ b/app/src/main/resources/web/assets/FilesView-8eb4e330.js @@ -1 +1 @@ -import{o as i,c,a as l,d as dt,u as _t,r as M,D as pt,M as mt,ag as ht,e as bt,s as ve,f as ft,ba as vt,bb as kt,bc as yt,bd as gt,be as Tt,bf as Ct,ae as ke,i as qt,aC as Dt,w as wt,O as $t,P as H,Q as St,R as It,p as m,F as k,m as T,l as V,k as h,h as C,t as p,j as n,H as E,al as Mt,bg as Vt,at as Et,J,S as K,I as Ft,bh as xt,bi as Bt,ax as Zt,Z as At,z as y,$ as Ht,A as Pt,B as zt,bj as Lt,bk as Nt,a2 as P,bl as ye,bm as ge,ah as Te,bn as X,aH as Ce,ad as Rt,am as Ut,bo as Wt,bp as Ot,_ as Qt}from"./index-f62f2ff2.js";import{_ as jt}from"./refresh-rounded-0b456afc.js";import{_ as Gt}from"./Breadcrumb-ebe74d39.js";import{g as qe,M as Jt}from"./splitpanes.es-2b477659.js";import{E as De}from"./EditValueModal-d57e85f6.js";import"./vee-validate.esm-65abdaa1.js";const Kt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xt=l("path",{fill:"currentColor",d:"M8 18H4q-.425 0-.713-.288T3 17q0-.425.288-.713T4 16h4q.425 0 .713.288T9 17q0 .425-.288.713T8 18ZM20 8H4q-.425 0-.713-.288T3 7q0-.425.288-.713T4 6h16q.425 0 .713.288T21 7q0 .425-.288.713T20 8Zm-6 5H4q-.425 0-.713-.288T3 12q0-.425.288-.713T4 11h10q.425 0 .713.288T15 12q0 .425-.288.713T14 13Z"},null,-1),Yt=[Xt];function es(f,o){return i(),c("svg",Kt,Yt)}const ts={name:"material-symbols-sort-rounded",render:es},ss={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},os=l("path",{fill:"currentColor",d:"M19.6 21.6L12 14l-2.35 2.35q.2.375.275.8T10 18q0 1.65-1.175 2.825T6 22q-1.65 0-2.825-1.175T2 18q0-1.65 1.175-2.825T6 14q.425 0 .85.075t.8.275L10 12L7.65 9.65q-.375.2-.8.275T6 10q-1.65 0-2.825-1.175T2 6q0-1.65 1.175-2.825T6 2q1.65 0 2.825 1.175T10 6q0 .425-.075.85t-.275.8L21.6 19.6q.425.425.425 1t-.425 1q-.425.425-1 .425t-1-.425ZM15 11l-2-2l6.6-6.6q.425-.425 1-.425t1 .425q.425.425.425 1t-.425 1L15 11ZM6 8q.825 0 1.413-.588T8 6q0-.825-.588-1.413T6 4q-.825 0-1.413.588T4 6q0 .825.588 1.413T6 8Zm6 4.5q.225 0 .363-.138T12.5 12q0-.225-.138-.363T12 11.5q-.225 0-.363.138T11.5 12q0 .225.138.363T12 12.5ZM6 20q.825 0 1.413-.588T8 18q0-.825-.588-1.413T6 16q-.825 0-1.413.588T4 18q0 .825.588 1.413T6 20Z"},null,-1),ns=[os];function ls(f,o){return i(),c("svg",ss,ns)}const as={name:"material-symbols-content-cut-rounded",render:ls},is={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},cs=l("path",{fill:"currentColor",d:"M9 18q-.825 0-1.413-.588T7 16V4q0-.825.588-1.413T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.588 1.413T18 18H9Zm0-2h9V4H9v12Zm-4 6q-.825 0-1.413-.588T3 20V7q0-.425.288-.713T4 6q.425 0 .713.288T5 7v13h10q.425 0 .713.288T16 21q0 .425-.288.713T15 22H5ZM9 4v12V4Z"},null,-1),rs=[cs];function us(f,o){return i(),c("svg",is,rs)}const ds={name:"material-symbols-content-copy-outline-rounded",render:us},q=f=>(Pt("data-v-a8beb100"),f=f(),zt(),f),_s={class:"v-toolbar"},ps={class:"right-actions"},ms=q(()=>l("md-ripple",null,null,-1)),hs=q(()=>l("md-ripple",null,null,-1)),bs=["onClick"],fs=q(()=>l("md-ripple",null,null,-1)),vs=["onClick"],ks=q(()=>l("md-ripple",null,null,-1)),ys={class:"form-check"},gs={class:"form-check-label"},Ts=["checked"],Cs={class:"form-check"},qs={class:"form-check-label"},Ds=["checked"],ws=q(()=>l("md-ripple",null,null,-1)),$s={class:"icon-button btn-sort"},Ss=q(()=>l("md-ripple",null,null,-1)),Is={class:"menu-items"},Ms=["onClick","selected"],Vs={slot:"headline"},Es={class:"file-items"},Fs=["onClick","onDblclick","onContextmenu"],xs=["checked"],Bs=["src"],Zs={class:"title"},As={style:{"font-size":"0.75rem"}},Hs=["onContextmenu"],Ps={key:0,class:"no-files"},zs={key:0,class:"file-item-info"},Ls=dt({__name:"FilesView",setup(f){var me,he,be,fe;const{t:o}=_t(),we=M([]),Y=pt(),$e=Y.query,d=Y.params.type,ee=M(mt(((me=$e.q)==null?void 0:me.toString())??"")),z=ht(ee.value),v=M(((he=z.find(e=>e.name==="path"))==null?void 0:he.value)??"");let F=((be=z.find(e=>e.name==="dir"))==null?void 0:be.value)??"";F||(((fe=z.find(t=>t.name==="isDir"))==null?void 0:fe.value)==="1"?F=v.value:F=v.value.substring(0,v.value.lastIndexOf("/")));const Se=M(F),Ie=[{label:"sort_by.date_asc",value:"DATE_ASC"},{label:"sort_by.date_desc",value:"DATE_DESC"},{label:"sort_by.size_asc",value:"SIZE_ASC"},{label:"sort_by.size_desc",value:"SIZE_DESC"},{label:"sort_by.name_asc",value:"NAME_ASC"},{label:"sort_by.name_desc",value:"NAME_DESC"}],D=M(!1),te=bt(),{fileShowHidden:w,fileSortBy:L}=ve(te),se=ft(),{app:$,urlTokenKey:S,selectedFiles:Me}=ve(se);let x=$.value.internalStoragePath;d&&(d==="sdcard"?x=$.value.sdcardPath:d.startsWith("usb")?x=$.value.usbDiskPaths[parseInt(d.substring(3))-1]:d==="app"&&(x=$.value.externalFilesDir));const{loading:Ve,panels:_,currentDir:B,refetch:N}=vt(S,x,Se.value,L),{createPath:Ee,createVariables:Fe,createMutation:xe}=kt(S,_),{renameValue:Be,renamePath:Ze,renameDone:Ae,renameMutation:He,renameVariables:Pe}=yt(_),{internal:oe,sdcard:ne,usb:ze,refetch:R}=gt(),{onDeleted:U}=Lt(_,B,R),{downloadFile:le,downloadDir:Le,downloadFiles:Ne}=Mt(S),{view:W}=Ot(we,(e,t)=>{se.lightbox={sources:e,index:t,visible:!0}}),{selectedItem:Z,select:Re}=Tt(B,d,ee,te),{canPaste:ae,copy:O,cut:ie,paste:Q}=Ct(Me,N,R),{input:Ue,upload:ce,uploadChanged:re}=ke(),{input:We,upload:ue,uploadChanged:de}=ke(),{mutate:Oe,onDone:Qe}=qt({document:Vt,appApi:!0});Qe(e=>{Ne(e.data.setTempValue.key),_.value.forEach(t=>{t.items.forEach(s=>{s.checked=!1})})});const I=()=>{const e=[];return _.value.forEach(t=>{t.items.forEach(s=>{s.checked&&(s.panel=t,e.push(s))})}),e};function je(e){D.value=e.target.checked}function Ge(e){w.value=e.target.checked}const Je=()=>{Oe({key:Nt(),value:JSON.stringify(I().map(e=>({path:e.path})))})},Ke=Dt(()=>I().length>0),Xe=()=>{P(ye,{files:I(),onDone:U})};v.value&&wt(()=>_.value.length,()=>{if(_.value.length>0&&v.value){const t=_.value[_.value.length-1].items.find(s=>s.path===v.value);t&&(Z.value=t,v.value="")}});function Ye(){var e,t,s,r;if(d){if(d==="sdcard")return`${o("sdcard")} (${o("storage_free_total",{free:y(((e=ne.value)==null?void 0:e.freeBytes)??0),total:y(((t=ne.value)==null?void 0:t.totalBytes)??0)})})`;if(d==="app")return o("app_name");if(d.startsWith("usb")){const A=parseInt(d.substring(3)),b=ze.value[A-1];return`${o("usb_storage")} ${A} (${o("storage_free_total",{free:y((b==null?void 0:b.freeBytes)??0),total:y((b==null?void 0:b.totalBytes)??0)})})`}}return`${o("page_title.files")} (${o("storage_free_total",{free:y(((s=oe.value)==null?void 0:s.freeBytes)??0),total:y(((r=oe.value)==null?void 0:r.totalBytes)??0)})})`}function et(e,t){if(D.value){t.checked=!t.checked;return}Re(e,t)}function tt(e,t){L.value=t,e.close()}function st(){N(B.value)}function ot(e,t){t.isDir||(ge(t.name)?window.open(Te(S.value,t.path),"_blank"):X(t.name)?W(w?e.items:e.items.filter(s=>!s.name.startsWith(".")),t):le(t.path))}function nt(e,t){e.preventDefault();const s=[{label:o("create_folder"),onClick:()=>{Ee.value=t,P(De,{title:o("name"),placeholder:o("name"),mutation:xe,getVariables:Fe})}},{label:o("upload_files"),onClick:()=>{ce(t)}},{label:o("upload_folder"),onClick:()=>{ue(t)}}];ae()&&s.push({label:o("paste"),onClick:()=>{Q(t)}}),Ce({x:e.x,y:e.y,items:s})}function lt(e,t,s){e.preventDefault();let r;s.isDir?r=[{label:o("upload_files"),onClick:()=>{ce(s.path)}},{label:o("upload_folder"),onClick:()=>{ue(s.path)}},{label:o("download"),onClick:()=>{Le(s.path)}}]:(r=[],(ge(s.name)||X(s.name))&&r.push({label:o("open"),onClick:()=>{X(s.name)?W(t.items,s):window.open(Te(S.value,s.path),"_blank")}}),r.push({label:o("download"),onClick:()=>{le(s.path)}})),r.push({label:o("duplicate"),onClick:()=>{O([s]),Q(t.dir)}}),r.push({label:o("cut"),onClick:()=>{s.panel=t,ie([s])}}),r.push({label:o("copy"),onClick:()=>{O([s])}}),s.isDir&&ae()&&r.push({label:o("paste"),onClick:()=>{Q(s.path)}}),r=[...r,{label:o("rename"),onClick:()=>{Be.value=s.name,Ze.value=s.path,P(De,{title:o("rename"),placeholder:o("name"),value:s.name,mutation:He,getVariables:Pe,done:Ae})}},{label:o("delete"),onClick:()=>{P(ye,{files:[s],onDone:U})}}],Ce({x:e.x,y:e.y,items:r})}const _e=e=>{e.status==="done"&&setTimeout(()=>{N(e.dir),R()},1e3)},pe=e=>{U([e.item])};return $t(()=>{H.on("upload_task_done",_e),H.on("file_deleted",pe)}),St(()=>{H.off("upload_task_done",_e),H.off("file_deleted",pe)}),(e,t)=>{const s=Gt,r=ds,A=as,b=Rt,at=Ut,it=jt,ct=ts,rt=Et,ut=Wt,g=It("tooltip");return i(),c(k,null,[l("div",_s,[m(s,{current:Ye}),l("div",ps,[D.value&&Ke.value?(i(),c(k,{key:0},[T((i(),c("button",{class:"icon-button",onClick:t[0]||(t[0]=V(()=>n(O)(I()),["stop"]))},[ms,m(r)])),[[g,e.$t("copy")]]),T((i(),c("button",{class:"icon-button",onClick:t[1]||(t[1]=V(()=>n(ie)(I()),["stop"]))},[hs,m(A)])),[[g,e.$t("cut")]]),T((i(),c("button",{class:"icon-button",onClick:V(Xe,["stop"])},[fs,m(b)],8,bs)),[[g,e.$t("delete")]]),T((i(),c("button",{class:"icon-button",onClick:V(Je,["stop"])},[ks,m(at)],8,vs)),[[g,e.$t("download")]])],64)):h("",!0),l("div",ys,[l("label",gs,[l("md-checkbox",{"touch-target":"wrapper",onChange:je,checked:D.value},null,40,Ts),C(" "+p(e.$t("select_mode")),1)])]),l("div",Cs,[l("label",qs,[l("md-checkbox",{"touch-target":"wrapper",onChange:Ge,checked:n(w)},null,40,Ds),C(p(e.$t("show_hidden")),1)])]),T((i(),c("button",{class:"icon-button btn-refresh",onClick:st},[ws,m(it)])),[[g,e.$t("refresh")]]),m(rt,null,{content:E(u=>[l("div",Is,[(i(),c(k,null,J(Ie,a=>l("md-menu-item",{onClick:j=>tt(u,a.value),selected:a.value===n(L)},[l("div",Vs,p(e.$t(a.label)),1)],8,Ms)),64))])]),default:E(()=>[T((i(),c("button",$s,[Ss,m(ct)])),[[g,e.$t("sort")]])]),_:1})])]),m(n(Jt),{class:"panel-container"},{default:E(()=>[(i(!0),c(k,null,J(n(_),u=>(i(),K(n(qe),{key:u.dir},{default:E(()=>[l("div",Es,[(i(!0),c(k,null,J(u.items,a=>{var j;return i(),c(k,{key:a.path},[!a.name.startsWith(".")||n(w)?(i(),c("div",{key:0,class:Ft(["file-item",{active:(n(B)+"/").startsWith(a.path+"/")||((j=n(Z))==null?void 0:j.path)===a.path}]),onClick:G=>et(u,a),onDblclick:V(G=>ot(u,a),["prevent"]),onContextmenu:G=>lt(G,u,a)},[D.value?(i(),c("md-checkbox",{key:0,"touch-target":"wrapper",checked:a.checked},null,8,xs)):h("",!0),a.isDir?(i(),K(ut,{key:1})):h("",!0),n(xt)(a.name)||n(Bt)(a.name)?(i(),c("img",{key:2,src:n(Zt)(a.fileId)+"&w=50&h=50",width:"50",height:"50"},null,8,Bs)):h("",!0),l("div",Zs,[C(p(a.name)+" ",1),l("div",As,[C(p(n(At)(a.updatedAt)),1),a.isDir?h("",!0):(i(),c(k,{key:0},[C(", "+p(n(y)(a.size)),1)],64))])])],42,Fs)):h("",!0)],64)}),128)),l("div",{class:"empty",onContextmenu:a=>nt(a,u.dir)},[u.items.filter(a=>!a.name.startsWith(".")||n(w)).length===0?(i(),c("div",Ps,p(e.$t("no_files")),1)):h("",!0)],40,Hs)])]),_:2},1024))),128)),n(_).length===0?(i(),K(n(qe),{key:0,class:"no-data-placeholder"},{default:E(()=>[C(p(e.$t(n(Ht)(n(Ve),n($).permissions,"WRITE_EXTERNAL_STORAGE"))),1)]),_:1})):h("",!0)]),_:1}),n(Z)?(i(),c("div",zs,p(e.$t("path"))+": "+p(n(Z).path),1)):h("",!0),l("input",{ref_key:"fileInput",ref:Ue,style:{display:"none"},type:"file",multiple:"",onChange:t[2]||(t[2]=(...u)=>n(re)&&n(re)(...u))},null,544),l("input",{ref_key:"dirFileInput",ref:We,style:{display:"none"},type:"file",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:t[3]||(t[3]=(...u)=>n(de)&&n(de)(...u))},null,544)],64)}}});const js=Qt(Ls,[["__scopeId","data-v-a8beb100"]]);export{js as default}; +import{o as i,c,a as l,d as dt,u as _t,r as M,D as pt,M as mt,ag as ht,e as bt,s as ve,f as ft,ba as vt,bb as kt,bc as yt,bd as gt,be as Tt,bf as Ct,ae as ke,i as qt,aC as Dt,w as wt,O as $t,P as H,Q as St,R as It,p as m,F as k,m as T,l as V,k as h,h as C,t as p,j as n,H as E,al as Mt,bg as Vt,at as Et,J,S as K,I as Ft,bh as xt,bi as Bt,ax as Zt,Z as At,z as y,$ as Ht,A as Pt,B as zt,bj as Lt,bk as Nt,a2 as P,bl as ye,bm as ge,ah as Te,bn as X,aH as Ce,ad as Rt,am as Ut,bo as Wt,bp as Ot,_ as Qt}from"./index-0c42270c.js";import{_ as jt}from"./refresh-rounded-aea8467d.js";import{_ as Gt}from"./Breadcrumb-f52b6c6b.js";import{g as qe,M as Jt}from"./splitpanes.es-7e8a6fea.js";import{E as De}from"./EditValueModal-c22a5b2d.js";import"./vee-validate.esm-ca78f26f.js";const Kt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xt=l("path",{fill:"currentColor",d:"M8 18H4q-.425 0-.713-.288T3 17q0-.425.288-.713T4 16h4q.425 0 .713.288T9 17q0 .425-.288.713T8 18ZM20 8H4q-.425 0-.713-.288T3 7q0-.425.288-.713T4 6h16q.425 0 .713.288T21 7q0 .425-.288.713T20 8Zm-6 5H4q-.425 0-.713-.288T3 12q0-.425.288-.713T4 11h10q.425 0 .713.288T15 12q0 .425-.288.713T14 13Z"},null,-1),Yt=[Xt];function es(f,o){return i(),c("svg",Kt,Yt)}const ts={name:"material-symbols-sort-rounded",render:es},ss={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},os=l("path",{fill:"currentColor",d:"M19.6 21.6L12 14l-2.35 2.35q.2.375.275.8T10 18q0 1.65-1.175 2.825T6 22q-1.65 0-2.825-1.175T2 18q0-1.65 1.175-2.825T6 14q.425 0 .85.075t.8.275L10 12L7.65 9.65q-.375.2-.8.275T6 10q-1.65 0-2.825-1.175T2 6q0-1.65 1.175-2.825T6 2q1.65 0 2.825 1.175T10 6q0 .425-.075.85t-.275.8L21.6 19.6q.425.425.425 1t-.425 1q-.425.425-1 .425t-1-.425ZM15 11l-2-2l6.6-6.6q.425-.425 1-.425t1 .425q.425.425.425 1t-.425 1L15 11ZM6 8q.825 0 1.413-.588T8 6q0-.825-.588-1.413T6 4q-.825 0-1.413.588T4 6q0 .825.588 1.413T6 8Zm6 4.5q.225 0 .363-.138T12.5 12q0-.225-.138-.363T12 11.5q-.225 0-.363.138T11.5 12q0 .225.138.363T12 12.5ZM6 20q.825 0 1.413-.588T8 18q0-.825-.588-1.413T6 16q-.825 0-1.413.588T4 18q0 .825.588 1.413T6 20Z"},null,-1),ns=[os];function ls(f,o){return i(),c("svg",ss,ns)}const as={name:"material-symbols-content-cut-rounded",render:ls},is={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},cs=l("path",{fill:"currentColor",d:"M9 18q-.825 0-1.413-.588T7 16V4q0-.825.588-1.413T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.588 1.413T18 18H9Zm0-2h9V4H9v12Zm-4 6q-.825 0-1.413-.588T3 20V7q0-.425.288-.713T4 6q.425 0 .713.288T5 7v13h10q.425 0 .713.288T16 21q0 .425-.288.713T15 22H5ZM9 4v12V4Z"},null,-1),rs=[cs];function us(f,o){return i(),c("svg",is,rs)}const ds={name:"material-symbols-content-copy-outline-rounded",render:us},q=f=>(Pt("data-v-a8beb100"),f=f(),zt(),f),_s={class:"v-toolbar"},ps={class:"right-actions"},ms=q(()=>l("md-ripple",null,null,-1)),hs=q(()=>l("md-ripple",null,null,-1)),bs=["onClick"],fs=q(()=>l("md-ripple",null,null,-1)),vs=["onClick"],ks=q(()=>l("md-ripple",null,null,-1)),ys={class:"form-check"},gs={class:"form-check-label"},Ts=["checked"],Cs={class:"form-check"},qs={class:"form-check-label"},Ds=["checked"],ws=q(()=>l("md-ripple",null,null,-1)),$s={class:"icon-button btn-sort"},Ss=q(()=>l("md-ripple",null,null,-1)),Is={class:"menu-items"},Ms=["onClick","selected"],Vs={slot:"headline"},Es={class:"file-items"},Fs=["onClick","onDblclick","onContextmenu"],xs=["checked"],Bs=["src"],Zs={class:"title"},As={style:{"font-size":"0.75rem"}},Hs=["onContextmenu"],Ps={key:0,class:"no-files"},zs={key:0,class:"file-item-info"},Ls=dt({__name:"FilesView",setup(f){var me,he,be,fe;const{t:o}=_t(),we=M([]),Y=pt(),$e=Y.query,d=Y.params.type,ee=M(mt(((me=$e.q)==null?void 0:me.toString())??"")),z=ht(ee.value),v=M(((he=z.find(e=>e.name==="path"))==null?void 0:he.value)??"");let F=((be=z.find(e=>e.name==="dir"))==null?void 0:be.value)??"";F||(((fe=z.find(t=>t.name==="isDir"))==null?void 0:fe.value)==="1"?F=v.value:F=v.value.substring(0,v.value.lastIndexOf("/")));const Se=M(F),Ie=[{label:"sort_by.date_asc",value:"DATE_ASC"},{label:"sort_by.date_desc",value:"DATE_DESC"},{label:"sort_by.size_asc",value:"SIZE_ASC"},{label:"sort_by.size_desc",value:"SIZE_DESC"},{label:"sort_by.name_asc",value:"NAME_ASC"},{label:"sort_by.name_desc",value:"NAME_DESC"}],D=M(!1),te=bt(),{fileShowHidden:w,fileSortBy:L}=ve(te),se=ft(),{app:$,urlTokenKey:S,selectedFiles:Me}=ve(se);let x=$.value.internalStoragePath;d&&(d==="sdcard"?x=$.value.sdcardPath:d.startsWith("usb")?x=$.value.usbDiskPaths[parseInt(d.substring(3))-1]:d==="app"&&(x=$.value.externalFilesDir));const{loading:Ve,panels:_,currentDir:B,refetch:N}=vt(S,x,Se.value,L),{createPath:Ee,createVariables:Fe,createMutation:xe}=kt(S,_),{renameValue:Be,renamePath:Ze,renameDone:Ae,renameMutation:He,renameVariables:Pe}=yt(_),{internal:oe,sdcard:ne,usb:ze,refetch:R}=gt(),{onDeleted:U}=Lt(_,B,R),{downloadFile:le,downloadDir:Le,downloadFiles:Ne}=Mt(S),{view:W}=Ot(we,(e,t)=>{se.lightbox={sources:e,index:t,visible:!0}}),{selectedItem:Z,select:Re}=Tt(B,d,ee,te),{canPaste:ae,copy:O,cut:ie,paste:Q}=Ct(Me,N,R),{input:Ue,upload:ce,uploadChanged:re}=ke(),{input:We,upload:ue,uploadChanged:de}=ke(),{mutate:Oe,onDone:Qe}=qt({document:Vt,appApi:!0});Qe(e=>{Ne(e.data.setTempValue.key),_.value.forEach(t=>{t.items.forEach(s=>{s.checked=!1})})});const I=()=>{const e=[];return _.value.forEach(t=>{t.items.forEach(s=>{s.checked&&(s.panel=t,e.push(s))})}),e};function je(e){D.value=e.target.checked}function Ge(e){w.value=e.target.checked}const Je=()=>{Oe({key:Nt(),value:JSON.stringify(I().map(e=>({path:e.path})))})},Ke=Dt(()=>I().length>0),Xe=()=>{P(ye,{files:I(),onDone:U})};v.value&&wt(()=>_.value.length,()=>{if(_.value.length>0&&v.value){const t=_.value[_.value.length-1].items.find(s=>s.path===v.value);t&&(Z.value=t,v.value="")}});function Ye(){var e,t,s,r;if(d){if(d==="sdcard")return`${o("sdcard")} (${o("storage_free_total",{free:y(((e=ne.value)==null?void 0:e.freeBytes)??0),total:y(((t=ne.value)==null?void 0:t.totalBytes)??0)})})`;if(d==="app")return o("app_name");if(d.startsWith("usb")){const A=parseInt(d.substring(3)),b=ze.value[A-1];return`${o("usb_storage")} ${A} (${o("storage_free_total",{free:y((b==null?void 0:b.freeBytes)??0),total:y((b==null?void 0:b.totalBytes)??0)})})`}}return`${o("page_title.files")} (${o("storage_free_total",{free:y(((s=oe.value)==null?void 0:s.freeBytes)??0),total:y(((r=oe.value)==null?void 0:r.totalBytes)??0)})})`}function et(e,t){if(D.value){t.checked=!t.checked;return}Re(e,t)}function tt(e,t){L.value=t,e.close()}function st(){N(B.value)}function ot(e,t){t.isDir||(ge(t.name)?window.open(Te(S.value,t.path),"_blank"):X(t.name)?W(w?e.items:e.items.filter(s=>!s.name.startsWith(".")),t):le(t.path))}function nt(e,t){e.preventDefault();const s=[{label:o("create_folder"),onClick:()=>{Ee.value=t,P(De,{title:o("name"),placeholder:o("name"),mutation:xe,getVariables:Fe})}},{label:o("upload_files"),onClick:()=>{ce(t)}},{label:o("upload_folder"),onClick:()=>{ue(t)}}];ae()&&s.push({label:o("paste"),onClick:()=>{Q(t)}}),Ce({x:e.x,y:e.y,items:s})}function lt(e,t,s){e.preventDefault();let r;s.isDir?r=[{label:o("upload_files"),onClick:()=>{ce(s.path)}},{label:o("upload_folder"),onClick:()=>{ue(s.path)}},{label:o("download"),onClick:()=>{Le(s.path)}}]:(r=[],(ge(s.name)||X(s.name))&&r.push({label:o("open"),onClick:()=>{X(s.name)?W(t.items,s):window.open(Te(S.value,s.path),"_blank")}}),r.push({label:o("download"),onClick:()=>{le(s.path)}})),r.push({label:o("duplicate"),onClick:()=>{O([s]),Q(t.dir)}}),r.push({label:o("cut"),onClick:()=>{s.panel=t,ie([s])}}),r.push({label:o("copy"),onClick:()=>{O([s])}}),s.isDir&&ae()&&r.push({label:o("paste"),onClick:()=>{Q(s.path)}}),r=[...r,{label:o("rename"),onClick:()=>{Be.value=s.name,Ze.value=s.path,P(De,{title:o("rename"),placeholder:o("name"),value:s.name,mutation:He,getVariables:Pe,done:Ae})}},{label:o("delete"),onClick:()=>{P(ye,{files:[s],onDone:U})}}],Ce({x:e.x,y:e.y,items:r})}const _e=e=>{e.status==="done"&&setTimeout(()=>{N(e.dir),R()},1e3)},pe=e=>{U([e.item])};return $t(()=>{H.on("upload_task_done",_e),H.on("file_deleted",pe)}),St(()=>{H.off("upload_task_done",_e),H.off("file_deleted",pe)}),(e,t)=>{const s=Gt,r=ds,A=as,b=Rt,at=Ut,it=jt,ct=ts,rt=Et,ut=Wt,g=It("tooltip");return i(),c(k,null,[l("div",_s,[m(s,{current:Ye}),l("div",ps,[D.value&&Ke.value?(i(),c(k,{key:0},[T((i(),c("button",{class:"icon-button",onClick:t[0]||(t[0]=V(()=>n(O)(I()),["stop"]))},[ms,m(r)])),[[g,e.$t("copy")]]),T((i(),c("button",{class:"icon-button",onClick:t[1]||(t[1]=V(()=>n(ie)(I()),["stop"]))},[hs,m(A)])),[[g,e.$t("cut")]]),T((i(),c("button",{class:"icon-button",onClick:V(Xe,["stop"])},[fs,m(b)],8,bs)),[[g,e.$t("delete")]]),T((i(),c("button",{class:"icon-button",onClick:V(Je,["stop"])},[ks,m(at)],8,vs)),[[g,e.$t("download")]])],64)):h("",!0),l("div",ys,[l("label",gs,[l("md-checkbox",{"touch-target":"wrapper",onChange:je,checked:D.value},null,40,Ts),C(" "+p(e.$t("select_mode")),1)])]),l("div",Cs,[l("label",qs,[l("md-checkbox",{"touch-target":"wrapper",onChange:Ge,checked:n(w)},null,40,Ds),C(p(e.$t("show_hidden")),1)])]),T((i(),c("button",{class:"icon-button btn-refresh",onClick:st},[ws,m(it)])),[[g,e.$t("refresh")]]),m(rt,null,{content:E(u=>[l("div",Is,[(i(),c(k,null,J(Ie,a=>l("md-menu-item",{onClick:j=>tt(u,a.value),selected:a.value===n(L)},[l("div",Vs,p(e.$t(a.label)),1)],8,Ms)),64))])]),default:E(()=>[T((i(),c("button",$s,[Ss,m(ct)])),[[g,e.$t("sort")]])]),_:1})])]),m(n(Jt),{class:"panel-container"},{default:E(()=>[(i(!0),c(k,null,J(n(_),u=>(i(),K(n(qe),{key:u.dir},{default:E(()=>[l("div",Es,[(i(!0),c(k,null,J(u.items,a=>{var j;return i(),c(k,{key:a.path},[!a.name.startsWith(".")||n(w)?(i(),c("div",{key:0,class:Ft(["file-item",{active:(n(B)+"/").startsWith(a.path+"/")||((j=n(Z))==null?void 0:j.path)===a.path}]),onClick:G=>et(u,a),onDblclick:V(G=>ot(u,a),["prevent"]),onContextmenu:G=>lt(G,u,a)},[D.value?(i(),c("md-checkbox",{key:0,"touch-target":"wrapper",checked:a.checked},null,8,xs)):h("",!0),a.isDir?(i(),K(ut,{key:1})):h("",!0),n(xt)(a.name)||n(Bt)(a.name)?(i(),c("img",{key:2,src:n(Zt)(a.fileId)+"&w=50&h=50",width:"50",height:"50"},null,8,Bs)):h("",!0),l("div",Zs,[C(p(a.name)+" ",1),l("div",As,[C(p(n(At)(a.updatedAt)),1),a.isDir?h("",!0):(i(),c(k,{key:0},[C(", "+p(n(y)(a.size)),1)],64))])])],42,Fs)):h("",!0)],64)}),128)),l("div",{class:"empty",onContextmenu:a=>nt(a,u.dir)},[u.items.filter(a=>!a.name.startsWith(".")||n(w)).length===0?(i(),c("div",Ps,p(e.$t("no_files")),1)):h("",!0)],40,Hs)])]),_:2},1024))),128)),n(_).length===0?(i(),K(n(qe),{key:0,class:"no-data-placeholder"},{default:E(()=>[C(p(e.$t(n(Ht)(n(Ve),n($).permissions,"WRITE_EXTERNAL_STORAGE"))),1)]),_:1})):h("",!0)]),_:1}),n(Z)?(i(),c("div",zs,p(e.$t("path"))+": "+p(n(Z).path),1)):h("",!0),l("input",{ref_key:"fileInput",ref:Ue,style:{display:"none"},type:"file",multiple:"",onChange:t[2]||(t[2]=(...u)=>n(re)&&n(re)(...u))},null,544),l("input",{ref_key:"dirFileInput",ref:We,style:{display:"none"},type:"file",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:t[3]||(t[3]=(...u)=>n(de)&&n(de)(...u))},null,544)],64)}}});const js=Qt(Ls,[["__scopeId","data-v-a8beb100"]]);export{js as default}; diff --git a/app/src/main/resources/web/assets/HomeView-fd3ca4d3.js b/app/src/main/resources/web/assets/HomeView-2a97ac79.js similarity index 97% rename from app/src/main/resources/web/assets/HomeView-fd3ca4d3.js rename to app/src/main/resources/web/assets/HomeView-2a97ac79.js index 4bda1395..5bd2311a 100644 --- a/app/src/main/resources/web/assets/HomeView-fd3ca4d3.js +++ b/app/src/main/resources/web/assets/HomeView-2a97ac79.js @@ -1 +1 @@ -import{b as M,o as d,c,a as e,d as L,u as E,e as F,s as B,r as m,f as O,i as j,w as A,g as P,h as v,t as o,j as _,k as h,l,F as w,m as Q,v as Z,n as z,p as D,q as R,x as U,y as J,z as S,A as K,B as W,C as X,_ as Y}from"./index-f62f2ff2.js";import{u as x}from"./vee-validate.esm-65abdaa1.js";function ee(i,p){for(var u,r=-1,g=i.length;++r(K("data-v-1ff7fdfe"),i=i(),W(),i),ie={class:"page-container"},re={class:"main"},de={class:"grid"},ce={class:"g-col-lg-6 g-col-md-12"},ue={class:"card"},ve={class:"card-body"},pe={class:"card-title"},fe={key:0,class:"total-bytes"},me={class:"stats-items"},_e={class:"g-col-lg-6 g-col-md-12"},he={class:"card"},ge={class:"card-body"},$e={class:"card-title"},be={class:"stats-items"},ke={class:"g-col-lg-6 g-col-md-12"},Ce={class:"card"},ye={class:"card-body"},Te={class:"card-title"},qe={class:"stats-items"},we={class:"g-col-lg-6 g-col-md-12"},Be={class:"card"},Se={class:"card-body"},Ve={class:"card-title"},He={class:"stats-items"},Ne={class:"g-col-lg-6 g-col-md-12"},Ge={class:"card"},Ie={class:"card-body"},Me={class:"card-title"},Le={class:"form-row"},Ee=["label","error","error-text"],Fe=["onClick"],Oe=ae(()=>e("md-ripple",null,null,-1)),je=["onClick","disabled"],Ae=L({__name:"HomeView",setup(i){const{t:p}=E();x();const u=F(),{callNumber:r}=B(u),g=m(!1),{app:f}=B(O()),C=m(-1),y=m(-1),T=m(-1),$=m(-1),k=m(-1);function H(){navigator.clipboard.readText().then(t=>{r.value=t})}const{mutate:N,loading:G}=j({document:R,appApi:!0}),I=()=>{if(!r.value){g.value=!0;return}N({number:r.value})};A(r,()=>{g.value=!1}),P({handle:(t,s)=>{if(s)U(p(s),"error");else if(t){C.value=t.messageCount,y.value=t.contactCount,T.value=t.callCount,$.value=t.storageStats.internal.totalBytes,k.value=t.storageStats.internal.freeBytes;const b=t.storageStats.sdcard;b&&($.value+=b.totalBytes,k.value+=b.freeBytes);const n=t.storageStats.usb;n.length&&($.value+=V(n,q=>q.totalBytes),k.value+=V(n,q=>q.freeBytes))}},document:J,variables:null,appApi:!0});function a(t){X(u,t)}return(t,s)=>{const b=le;return d(),c("div",ie,[e("div",re,[e("div",de,[e("div",ce,[e("section",ue,[e("div",ve,[e("h5",pe,[v(o(t.$t("storage")),1),$.value>=0?(d(),c("span",fe,o(t.$t("storage_free_total",{free:_(S)(k.value),total:_(S)($.value)})),1)):h("",!0)]),e("p",me,[e("a",{href:"#",onClick:s[0]||(s[0]=l(n=>a("/images"),["prevent"]))},o(t.$t("images")),1),e("a",{href:"#",onClick:s[1]||(s[1]=l(n=>a("/audios"),["prevent"]))},o(t.$t("audios")),1),e("a",{href:"#",onClick:s[2]||(s[2]=l(n=>a("/videos"),["prevent"]))},o(t.$t("videos")),1),e("a",{href:"#",onClick:s[3]||(s[3]=l(n=>a("/files"),["prevent"]))},o(t.$t("files")),1),e("a",{href:"#",onClick:s[4]||(s[4]=l(n=>a("/apps"),["prevent"]))},o(t.$t("apps")),1)])])])]),e("div",_e,[e("section",he,[e("div",ge,[e("h5",$e,o(t.$t("work")),1),e("p",be,[e("a",{href:"#",onClick:s[5]||(s[5]=l(n=>a("/notes"),["prevent"]))},o(t.$t("page_title.notes")),1),e("a",{style:{display:"none"},href:"#",onClick:s[6]||(s[6]=l(n=>a("/books"),["prevent"]))},o(t.$t("page_title.books")),1),e("a",{href:"#",onClick:s[7]||(s[7]=l(n=>a("/feeds"),["prevent"]))},o(t.$t("page_title.feeds")),1)])])])]),e("div",ke,[e("section",Ce,[e("div",ye,[e("h5",Te,o(t.$t("social")),1),e("p",qe,[_(f).channel!=="GOOGLE"?(d(),c("a",{key:0,href:"#",onClick:s[8]||(s[8]=l(n=>a("/messages"),["prevent"]))},[v(o(t.$t("messages")),1),C.value>=0?(d(),c(w,{key:0},[v("("+o(C.value)+")",1)],64)):h("",!0)])):h("",!0),e("a",{href:"#",onClick:s[9]||(s[9]=l(n=>a("/contacts"),["prevent"]))},[v(o(t.$t("contacts")),1),y.value>=0?(d(),c(w,{key:0},[v("("+o(y.value)+")",1)],64)):h("",!0)]),_(f).channel!=="GOOGLE"?(d(),c("a",{key:1,href:"#",onClick:s[10]||(s[10]=l(n=>a("/calls"),["prevent"]))},[v(o(t.$t("calls")),1),T.value>=0?(d(),c(w,{key:0},[v("("+o(T.value)+")",1)],64)):h("",!0)])):h("",!0)])])])]),e("div",we,[e("section",Be,[e("div",Se,[e("h5",Ve,o(t.$t("tools")),1),e("p",He,[e("a",{href:"#",onClick:s[11]||(s[11]=l(n=>a("/json-viewer"),["prevent"]))},o(t.$t("json_viewer")),1),e("a",{href:"#",onClick:s[12]||(s[12]=l(n=>a("/qrcode-generator"),["prevent"]))},o(t.$t("qrcode_generator")),1),e("a",{href:"#",onClick:s[13]||(s[13]=l(n=>a("/screen-mirror"),["prevent"]))},o(t.$t("screen_mirror")),1),e("a",{href:"#",onClick:s[14]||(s[14]=l(n=>a("/device-info"),["prevent"]))},o(t.$t("device_info")),1)])])])]),e("div",Ne,[e("section",Ge,[e("div",Ie,[e("h5",Me,o(t.$t("call_phone")),1),e("p",Le,[Q(e("md-outlined-text-field",{type:"tel",label:t.$t("phone_number"),class:"form-control flex-3","onUpdate:modelValue":s[15]||(s[15]=n=>z(r)?r.value=n:null),error:g.value,"error-text":t.$t("valid.required")},[e("button",{class:"icon-button",slot:"trailing-icon",onClick:l(H,["prevent"])},[Oe,D(b)],8,Fe)],8,Ee),[[Z,_(r)]]),e("md-filled-button",{class:"btn-lg",onClick:l(I,["prevent"]),disabled:_(G)},o(t.$t("call")),9,je)])])])])])])])}}});const Ze=Y(Ae,[["__scopeId","data-v-1ff7fdfe"]]);export{Ze as default}; +import{b as M,o as d,c,a as e,d as L,u as E,e as F,s as B,r as m,f as O,i as j,w as A,g as P,h as v,t as o,j as _,k as h,l,F as w,m as Q,v as Z,n as z,p as D,q as R,x as U,y as J,z as S,A as K,B as W,C as X,_ as Y}from"./index-0c42270c.js";import{u as x}from"./vee-validate.esm-ca78f26f.js";function ee(i,p){for(var u,r=-1,g=i.length;++r(K("data-v-1ff7fdfe"),i=i(),W(),i),ie={class:"page-container"},re={class:"main"},de={class:"grid"},ce={class:"g-col-lg-6 g-col-md-12"},ue={class:"card"},ve={class:"card-body"},pe={class:"card-title"},fe={key:0,class:"total-bytes"},me={class:"stats-items"},_e={class:"g-col-lg-6 g-col-md-12"},he={class:"card"},ge={class:"card-body"},$e={class:"card-title"},be={class:"stats-items"},ke={class:"g-col-lg-6 g-col-md-12"},Ce={class:"card"},ye={class:"card-body"},Te={class:"card-title"},qe={class:"stats-items"},we={class:"g-col-lg-6 g-col-md-12"},Be={class:"card"},Se={class:"card-body"},Ve={class:"card-title"},He={class:"stats-items"},Ne={class:"g-col-lg-6 g-col-md-12"},Ge={class:"card"},Ie={class:"card-body"},Me={class:"card-title"},Le={class:"form-row"},Ee=["label","error","error-text"],Fe=["onClick"],Oe=ae(()=>e("md-ripple",null,null,-1)),je=["onClick","disabled"],Ae=L({__name:"HomeView",setup(i){const{t:p}=E();x();const u=F(),{callNumber:r}=B(u),g=m(!1),{app:f}=B(O()),C=m(-1),y=m(-1),T=m(-1),$=m(-1),k=m(-1);function H(){navigator.clipboard.readText().then(t=>{r.value=t})}const{mutate:N,loading:G}=j({document:R,appApi:!0}),I=()=>{if(!r.value){g.value=!0;return}N({number:r.value})};A(r,()=>{g.value=!1}),P({handle:(t,s)=>{if(s)U(p(s),"error");else if(t){C.value=t.messageCount,y.value=t.contactCount,T.value=t.callCount,$.value=t.storageStats.internal.totalBytes,k.value=t.storageStats.internal.freeBytes;const b=t.storageStats.sdcard;b&&($.value+=b.totalBytes,k.value+=b.freeBytes);const n=t.storageStats.usb;n.length&&($.value+=V(n,q=>q.totalBytes),k.value+=V(n,q=>q.freeBytes))}},document:J,variables:null,appApi:!0});function a(t){X(u,t)}return(t,s)=>{const b=le;return d(),c("div",ie,[e("div",re,[e("div",de,[e("div",ce,[e("section",ue,[e("div",ve,[e("h5",pe,[v(o(t.$t("storage")),1),$.value>=0?(d(),c("span",fe,o(t.$t("storage_free_total",{free:_(S)(k.value),total:_(S)($.value)})),1)):h("",!0)]),e("p",me,[e("a",{href:"#",onClick:s[0]||(s[0]=l(n=>a("/images"),["prevent"]))},o(t.$t("images")),1),e("a",{href:"#",onClick:s[1]||(s[1]=l(n=>a("/audios"),["prevent"]))},o(t.$t("audios")),1),e("a",{href:"#",onClick:s[2]||(s[2]=l(n=>a("/videos"),["prevent"]))},o(t.$t("videos")),1),e("a",{href:"#",onClick:s[3]||(s[3]=l(n=>a("/files"),["prevent"]))},o(t.$t("files")),1),e("a",{href:"#",onClick:s[4]||(s[4]=l(n=>a("/apps"),["prevent"]))},o(t.$t("apps")),1)])])])]),e("div",_e,[e("section",he,[e("div",ge,[e("h5",$e,o(t.$t("work")),1),e("p",be,[e("a",{href:"#",onClick:s[5]||(s[5]=l(n=>a("/notes"),["prevent"]))},o(t.$t("page_title.notes")),1),e("a",{style:{display:"none"},href:"#",onClick:s[6]||(s[6]=l(n=>a("/books"),["prevent"]))},o(t.$t("page_title.books")),1),e("a",{href:"#",onClick:s[7]||(s[7]=l(n=>a("/feeds"),["prevent"]))},o(t.$t("page_title.feeds")),1)])])])]),e("div",ke,[e("section",Ce,[e("div",ye,[e("h5",Te,o(t.$t("social")),1),e("p",qe,[_(f).channel!=="GOOGLE"?(d(),c("a",{key:0,href:"#",onClick:s[8]||(s[8]=l(n=>a("/messages"),["prevent"]))},[v(o(t.$t("messages")),1),C.value>=0?(d(),c(w,{key:0},[v("("+o(C.value)+")",1)],64)):h("",!0)])):h("",!0),e("a",{href:"#",onClick:s[9]||(s[9]=l(n=>a("/contacts"),["prevent"]))},[v(o(t.$t("contacts")),1),y.value>=0?(d(),c(w,{key:0},[v("("+o(y.value)+")",1)],64)):h("",!0)]),_(f).channel!=="GOOGLE"?(d(),c("a",{key:1,href:"#",onClick:s[10]||(s[10]=l(n=>a("/calls"),["prevent"]))},[v(o(t.$t("calls")),1),T.value>=0?(d(),c(w,{key:0},[v("("+o(T.value)+")",1)],64)):h("",!0)])):h("",!0)])])])]),e("div",we,[e("section",Be,[e("div",Se,[e("h5",Ve,o(t.$t("tools")),1),e("p",He,[e("a",{href:"#",onClick:s[11]||(s[11]=l(n=>a("/json-viewer"),["prevent"]))},o(t.$t("json_viewer")),1),e("a",{href:"#",onClick:s[12]||(s[12]=l(n=>a("/qrcode-generator"),["prevent"]))},o(t.$t("qrcode_generator")),1),e("a",{href:"#",onClick:s[13]||(s[13]=l(n=>a("/screen-mirror"),["prevent"]))},o(t.$t("screen_mirror")),1),e("a",{href:"#",onClick:s[14]||(s[14]=l(n=>a("/device-info"),["prevent"]))},o(t.$t("device_info")),1)])])])]),e("div",Ne,[e("section",Ge,[e("div",Ie,[e("h5",Me,o(t.$t("call_phone")),1),e("p",Le,[Q(e("md-outlined-text-field",{type:"tel",label:t.$t("phone_number"),class:"form-control flex-3","onUpdate:modelValue":s[15]||(s[15]=n=>z(r)?r.value=n:null),error:g.value,"error-text":t.$t("valid.required")},[e("button",{class:"icon-button",slot:"trailing-icon",onClick:l(H,["prevent"])},[Oe,D(b)],8,Fe)],8,Ee),[[Z,_(r)]]),e("md-filled-button",{class:"btn-lg",onClick:l(I,["prevent"]),disabled:_(G)},o(t.$t("call")),9,je)])])])])])])])}}});const Ze=Y(Ae,[["__scopeId","data-v-1ff7fdfe"]]);export{Ze as default}; diff --git a/app/src/main/resources/web/assets/ImagesRootView-9817355a.js b/app/src/main/resources/web/assets/ImagesRootView-c23380b9.js similarity index 70% rename from app/src/main/resources/web/assets/ImagesRootView-9817355a.js rename to app/src/main/resources/web/assets/ImagesRootView-c23380b9.js index 626e4159..0fa1e2f6 100644 --- a/app/src/main/resources/web/assets/ImagesRootView-9817355a.js +++ b/app/src/main/resources/web/assets/ImagesRootView-c23380b9.js @@ -1 +1 @@ -import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-9dafd033.js";import{d as C,D as w,e as y,az as I,G as M,c as z,p as s,H as o,j as e,o as B,a,t as m,l as $,I as b,C as E}from"./index-f62f2ff2.js";import{g as d,M as G}from"./splitpanes.es-2b477659.js";import"./EditValueModal-d57e85f6.js";import"./vee-validate.esm-65abdaa1.js";const N={class:"page-container"},S={class:"sidebar"},V={class:"nav-title"},A={class:"nav"},D=["onClick"],R={class:"main"},F=C({__name:"ImagesRootView",setup(j){var r,_;const n=w(),u=y(),i=I(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){E(u,"/images")}return(t,q)=>{const f=k,h=g,v=M("router-view");return B(),z("div",N,[s(e(G),null,{default:o(()=>[s(e(d),{size:"20","min-size":"10"},{default:o(()=>[a("div",S,[a("h2",V,m(t.$t("page_title.images")),1),a("ul",A,[a("li",{onClick:$(p,["prevent"]),class:b({active:e(n).path==="/images"&&!e(c)&&!e(l)})},m(t.$t("all")),11,D),s(f,{type:"IMAGE",selected:e(l)},null,8,["selected"])]),s(h,{type:"IMAGE",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(d),null,{default:o(()=>[a("div",R,[s(v)])]),_:1})]),_:1})])}}});export{F as default}; +import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-f7ab6958.js";import{d as C,D as w,e as y,az as I,G as M,c as z,p as s,H as o,j as e,o as B,a,t as m,l as $,I as b,C as E}from"./index-0c42270c.js";import{g as d,M as G}from"./splitpanes.es-7e8a6fea.js";import"./EditValueModal-c22a5b2d.js";import"./vee-validate.esm-ca78f26f.js";const N={class:"page-container"},S={class:"sidebar"},V={class:"nav-title"},A={class:"nav"},D=["onClick"],R={class:"main"},F=C({__name:"ImagesRootView",setup(j){var r,_;const n=w(),u=y(),i=I(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){E(u,"/images")}return(t,q)=>{const f=k,h=g,v=M("router-view");return B(),z("div",N,[s(e(G),null,{default:o(()=>[s(e(d),{size:"20","min-size":"10"},{default:o(()=>[a("div",S,[a("h2",V,m(t.$t("page_title.images")),1),a("ul",A,[a("li",{onClick:$(p,["prevent"]),class:b({active:e(n).path==="/images"&&!e(c)&&!e(l)})},m(t.$t("all")),11,D),s(f,{type:"IMAGE",selected:e(l)},null,8,["selected"])]),s(h,{type:"IMAGE",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(d),null,{default:o(()=>[a("div",R,[s(v)])]),_:1})]),_:1})])}}});export{F as default}; diff --git a/app/src/main/resources/web/assets/ImagesView-dfb10746.js b/app/src/main/resources/web/assets/ImagesView-62eb11b2.js similarity index 95% rename from app/src/main/resources/web/assets/ImagesView-dfb10746.js rename to app/src/main/resources/web/assets/ImagesView-62eb11b2.js index b1127579..0ea31368 100644 --- a/app/src/main/resources/web/assets/ImagesView-dfb10746.js +++ b/app/src/main/resources/web/assets/ImagesView-62eb11b2.js @@ -1 +1 @@ -import{u as Ue,_ as Be,a as qe,b as Ne}from"./list-45297bd9.js";import{d as xe,aA as He,e as Le,r as V,u as Qe,f as Ge,s as Ke,K as Oe,L as We,D as Pe,M as Xe,aB as je,af as Je,aC as Ye,N as Ze,w as et,O as tt,P as v,Q as st,R as ot,c as n,a as s,p as c,j as t,F as S,m,l as u,k,S as N,H as lt,J as x,t as r,T as at,U as nt,x as it,aD as dt,aE as ct,C as ce,W as ue,o as a,v as ut,z as _e,I as _t,ax as re,aF as M,$ as pe,A as rt,B as pt,al as mt,a2 as ht,a3 as gt,a0 as ft,a1 as vt,as as kt,aG as yt,aH as bt,ad as wt,am as Ct,a4 as $t,a5 as Tt,a6 as It,_ as Vt}from"./index-f62f2ff2.js";import{_ as St}from"./upload-rounded-886d7dcb.js";import{_ as Dt,a as At}from"./grid-view-outline-rounded-dfcff43e.js";import{_ as Rt}from"./Breadcrumb-ebe74d39.js";import{u as zt,a as Et}from"./tags-06583423.js";import"./vee-validate.esm-65abdaa1.js";const _=A=>(rt("data-v-c7fa60b1"),A=A(),pt(),A),Ft={class:"v-toolbar"},Mt=_(()=>s("md-ripple",null,null,-1)),Ut=_(()=>s("md-ripple",null,null,-1)),Bt=_(()=>s("md-ripple",null,null,-1)),qt=["onClick"],Nt=_(()=>s("md-ripple",null,null,-1)),xt=["onClick"],Ht=_(()=>s("md-ripple",null,null,-1)),Lt={class:"filters"},Qt=["label"],Gt={class:"form-label"},Kt=["label","selected","onClick"],Ot={class:"buttons"},Wt=["onClick"],Pt={key:0,class:"image-container",style:{"margin-bottom":"24px"}},Xt=["onClick","onContextmenu"],jt=["src"],Jt={class:"duration"},Yt={key:1,class:"table-responsive"},Zt={class:"table"},es=["checked","indeterminate"],ts=_(()=>s("th",null,"ID",-1)),ss=_(()=>s("th",null,null,-1)),os=_(()=>s("th",null,null,-1)),ls=["onClick"],as=["checked"],ns=["src","onClick"],is={class:"nowrap"},ds={class:"action-btns"},cs=["onClick"],us=_(()=>s("md-ripple",null,null,-1)),_s=["onClick"],rs=_(()=>s("md-ripple",null,null,-1)),ps=["onClick"],ms=_(()=>s("md-ripple",null,null,-1)),hs={class:"nowrap"},gs={key:0},fs={colspan:"7"},vs={class:"no-data-placeholder"},ks={key:2,class:"no-data-placeholder"},D=48,ys=xe({__name:"ImagesView",setup(A){var ae,ne;const me=He(),i=Le(),h=V([]),H=V(),{t:C}=Qe(),L=Ge(),{app:Q,urlTokenKey:U}=Ke(L),g=Oe({text:"",tags:[]}),d=We.IMAGE,G=Pe().query,$=V(parseInt(((ae=G.page)==null?void 0:ae.toString())??"1")),y=V(Xe(((ne=G.q)==null?void 0:ne.toString())??"")),T=V(""),{tags:R}=zt(d,y,g,async e=>{T.value=at(e),await nt(),be()}),{addToTags:he}=Et(d,h,R),{deleteItems:ge,deleteItem:K}=je(),{allChecked:O,realAllChecked:z,selectRealAll:fe,allCheckedAlertVisible:ve,clearSelection:E,toggleAllChecked:W,toggleItemChecked:P,toggleRow:ke,total:b,checked:X}=Ue(h),{downloadItems:ye}=Je(U,d,h,E,"images.zip"),{downloadFile:j}=mt(U),B=Ye(()=>h.value.map(e=>({src:re(e.fileId),name:M(e.path),duration:0,size:e.size,path:e.path,type:d,data:e})));function J(e){L.lightbox={sources:B.value,index:e,visible:!0}}function Y(e){ht(gt,{type:d,tags:R.value,item:{key:e.id,title:e.title,size:e.size},selected:R.value.filter(l=>e.tags.some(w=>w.id===l.id))})}const{loading:Z,load:be,refetch:q}=Ze({handle:async(e,l)=>{if(l)it(C(l),"error");else if(e){const w=[];for(const I of e.images)w.push({...I,checked:!1,fileId:dt(U.value,I.path)});h.value=w,b.value=e.imageCount}},document:ct,variables:()=>({offset:($.value-1)*D,limit:D,query:T.value}),appApi:!0});function we(){ce(i,`/images?page=${$.value}&q=${ue(y.value)}`)}et($,()=>{we()});function Ce(e){g.tags.includes(e)?ft(g.tags,l=>l.id===e.id):g.tags.push(e)}function $e(){y.value=vt(g),ee(),H.value.dismiss()}function ee(){ce(i,`/images?q=${ue(y.value)}`)}function Te(){i.imageViewType==="grid"?i.imageViewType="list":i.imageViewType="grid"}function Ie(){me.push("/files"),kt(yt,{message:C("upload_images")})}function Ve(e,l){e.preventDefault(),bt({x:e.x,y:e.y,items:[{label:C("add_to_tags"),onClick:()=>{Y(l)}},{label:C("download"),onClick:()=>{j(l.path,M(l.path).replace(" ","-"))}},{label:C("delete"),onClick:()=>{K(d,l)}}]})}const te=e=>{e.type===d&&(E(),q())},se=e=>{e.type===d&&q()},oe=e=>{e.type===d&&(E(),q())},le=()=>{b.value--};return tt(()=>{v.on("item_tags_updated",se),v.on("items_tags_updated",te),v.on("media_item_deleted",le),v.on("media_items_deleted",oe)}),st(()=>{v.off("item_tags_updated",se),v.off("items_tags_updated",te),v.off("media_item_deleted",le),v.off("media_items_deleted",oe)}),(e,l)=>{const w=Rt,I=wt,ie=Ct,de=$t,Se=Dt,De=At,Ae=St,Re=Be,ze=qe,Ee=Tt,Fe=It,Me=Ne,f=ot("tooltip");return a(),n(S,null,[s("div",Ft,[c(w,{current:()=>`${e.$t("page_title.images")} (${t(b)})`},null,8,["current"]),t(X)&&t(i).imageViewType==="list"?(a(),n(S,{key:0},[m((a(),n("button",{class:"icon-button",onClick:l[0]||(l[0]=u(o=>t(ge)(t(d),h.value,t(z),T.value),["stop"]))},[Mt,c(I)])),[[f,e.$t("delete")]]),m((a(),n("button",{class:"icon-button",onClick:l[1]||(l[1]=u(o=>t(ye)(t(z),T.value),["stop"]))},[Ut,c(ie)])),[[f,e.$t("download")]]),m((a(),n("button",{class:"icon-button",onClick:l[2]||(l[2]=u(o=>t(he)(t(z),T.value),["stop"]))},[Bt,c(de)])),[[f,e.$t("add_to_tags")]])],64)):k("",!0),m((a(),n("button",{class:"icon-button",onClick:u(Te,["stop"])},[Nt,t(i).imageViewType==="list"?(a(),N(Se,{key:0})):k("",!0),t(i).imageViewType==="grid"?(a(),N(De,{key:1})):k("",!0)],8,qt)),[[f,e.$t(t(i).imageViewType==="list"?"view_as_grid":"view_as_list")]]),m((a(),n("button",{class:"icon-button",onClick:u(Ie,["prevent"])},[Ht,c(Ae)],8,xt)),[[f,e.$t("upload")]]),c(Re,{ref_key:"searchInputRef",ref:H,modelValue:y.value,"onUpdate:modelValue":l[4]||(l[4]=o=>y.value=o),search:ee},{filters:lt(()=>[s("div",Lt,[m(s("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":l[3]||(l[3]=o=>g.text=o),"keyup.enter":"applyAndDoSearch"},null,8,Qt),[[ut,g.text]]),s("label",Gt,r(e.$t("tags")),1),s("md-chip-set",null,[(a(!0),n(S,null,x(t(R),o=>(a(),n("md-filter-chip",{key:o.id,label:o.name,selected:g.tags.includes(o),onClick:F=>Ce(o)},null,8,Kt))),128))]),s("div",Ot,[s("md-filled-button",{onClick:u($e,["stop"])},r(e.$t("search")),9,Wt)])])]),_:1},8,["modelValue"])]),t(i).imageViewType==="grid"?(a(),n("div",Pt,[(a(!0),n(S,null,x(B.value,(o,F)=>(a(),n("div",{class:"item",onClick:p=>J(F),onContextmenu:p=>Ve(p,o.data)},[s("img",{class:"image",src:o.src+"&w=300&h=300"},null,8,jt),s("span",Jt,r(t(_e)(o.size)),1)],40,Xt))),256))])):k("",!0),c(ze,{limit:D,total:t(b),"all-checked-alert-visible":t(ve),"real-all-checked":t(z),"select-real-all":t(fe),"clear-selection":t(E)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t(i).imageViewType==="list"?(a(),n("div",Yt,[s("table",Zt,[s("thead",null,[s("tr",null,[s("th",null,[s("md-checkbox",{"touch-target":"wrapper",onChange:l[5]||(l[5]=(...o)=>t(W)&&t(W)(...o)),checked:t(O),indeterminate:!t(O)&&t(X)},null,40,es)]),ts,ss,s("th",null,r(e.$t("name")),1),os,s("th",null,r(e.$t("tags")),1),s("th",null,r(e.$t("file_size")),1)])]),s("tbody",null,[(a(!0),n(S,null,x(h.value,(o,F)=>(a(),n("tr",{key:o.id,class:_t({selected:o.checked}),onClick:u(p=>t(ke)(o),["stop"])},[s("td",null,[s("md-checkbox",{"touch-target":"wrapper",onChange:l[6]||(l[6]=(...p)=>t(P)&&t(P)(...p)),checked:o.checked},null,40,as)]),s("td",null,[c(Ee,{id:o.id,raw:o},null,8,["id","raw"])]),s("td",null,[s("img",{src:t(re)(o.fileId)+"&w=300&h=300",width:"50",height:"50",onClick:u(p=>J(F),["stop"]),style:{cursor:"pointer"}},null,8,ns)]),s("td",null,r(t(M)(o.path)),1),s("td",is,[s("div",ds,[m((a(),n("button",{class:"icon-button",onClick:u(p=>t(K)(t(d),o),["stop"])},[us,c(I)],8,cs)),[[f,e.$t("delete")]]),m((a(),n("button",{class:"icon-button",onClick:u(p=>t(j)(o.path,t(M)(o.path).replace(" ","-")),["stop"])},[rs,c(ie)],8,_s)),[[f,e.$t("download")]]),m((a(),n("button",{class:"icon-button",onClick:u(p=>Y(o),["stop"])},[ms,c(de)],8,ps)),[[f,e.$t("add_to_tags")]])])]),s("td",null,[c(Fe,{tags:o.tags,type:t(d)},null,8,["tags","type"])]),s("td",hs,r(t(_e)(o.size)),1)],10,ls))),128))]),h.value.length?k("",!0):(a(),n("tfoot",gs,[s("tr",null,[s("td",fs,[s("div",vs,r(e.$t(t(pe)(t(Z),t(Q).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])])):k("",!0),t(i).imageViewType==="grid"&&B.value.length===0?(a(),n("div",ks,r(e.$t(t(pe)(t(Z),t(Q).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):k("",!0),t(b)>D?(a(),N(Me,{key:3,modelValue:$.value,"onUpdate:modelValue":l[7]||(l[7]=o=>$.value=o),total:t(b),limit:D},null,8,["modelValue","total"])):k("",!0)],64)}}});const Ds=Vt(ys,[["__scopeId","data-v-c7fa60b1"]]);export{Ds as default}; +import{u as Ue,_ as Be,a as qe,b as Ne}from"./list-183f8357.js";import{d as xe,aA as He,e as Le,r as V,u as Qe,f as Ge,s as Ke,K as Oe,L as We,D as Pe,M as Xe,aB as je,af as Je,aC as Ye,N as Ze,w as et,O as tt,P as v,Q as st,R as ot,c as n,a as s,p as c,j as t,F as S,m,l as u,k,S as N,H as lt,J as x,t as r,T as at,U as nt,x as it,aD as dt,aE as ct,C as ce,W as ue,o as a,v as ut,z as _e,I as _t,ax as re,aF as M,$ as pe,A as rt,B as pt,al as mt,a2 as ht,a3 as gt,a0 as ft,a1 as vt,as as kt,aG as yt,aH as bt,ad as wt,am as Ct,a4 as $t,a5 as Tt,a6 as It,_ as Vt}from"./index-0c42270c.js";import{_ as St}from"./upload-rounded-8f0af5aa.js";import{_ as Dt,a as At}from"./grid-view-outline-rounded-600c49fd.js";import{_ as Rt}from"./Breadcrumb-f52b6c6b.js";import{u as zt,a as Et}from"./tags-bf0f6db9.js";import"./vee-validate.esm-ca78f26f.js";const _=A=>(rt("data-v-c7fa60b1"),A=A(),pt(),A),Ft={class:"v-toolbar"},Mt=_(()=>s("md-ripple",null,null,-1)),Ut=_(()=>s("md-ripple",null,null,-1)),Bt=_(()=>s("md-ripple",null,null,-1)),qt=["onClick"],Nt=_(()=>s("md-ripple",null,null,-1)),xt=["onClick"],Ht=_(()=>s("md-ripple",null,null,-1)),Lt={class:"filters"},Qt=["label"],Gt={class:"form-label"},Kt=["label","selected","onClick"],Ot={class:"buttons"},Wt=["onClick"],Pt={key:0,class:"image-container",style:{"margin-bottom":"24px"}},Xt=["onClick","onContextmenu"],jt=["src"],Jt={class:"duration"},Yt={key:1,class:"table-responsive"},Zt={class:"table"},es=["checked","indeterminate"],ts=_(()=>s("th",null,"ID",-1)),ss=_(()=>s("th",null,null,-1)),os=_(()=>s("th",null,null,-1)),ls=["onClick"],as=["checked"],ns=["src","onClick"],is={class:"nowrap"},ds={class:"action-btns"},cs=["onClick"],us=_(()=>s("md-ripple",null,null,-1)),_s=["onClick"],rs=_(()=>s("md-ripple",null,null,-1)),ps=["onClick"],ms=_(()=>s("md-ripple",null,null,-1)),hs={class:"nowrap"},gs={key:0},fs={colspan:"7"},vs={class:"no-data-placeholder"},ks={key:2,class:"no-data-placeholder"},D=48,ys=xe({__name:"ImagesView",setup(A){var ae,ne;const me=He(),i=Le(),h=V([]),H=V(),{t:C}=Qe(),L=Ge(),{app:Q,urlTokenKey:U}=Ke(L),g=Oe({text:"",tags:[]}),d=We.IMAGE,G=Pe().query,$=V(parseInt(((ae=G.page)==null?void 0:ae.toString())??"1")),y=V(Xe(((ne=G.q)==null?void 0:ne.toString())??"")),T=V(""),{tags:R}=zt(d,y,g,async e=>{T.value=at(e),await nt(),be()}),{addToTags:he}=Et(d,h,R),{deleteItems:ge,deleteItem:K}=je(),{allChecked:O,realAllChecked:z,selectRealAll:fe,allCheckedAlertVisible:ve,clearSelection:E,toggleAllChecked:W,toggleItemChecked:P,toggleRow:ke,total:b,checked:X}=Ue(h),{downloadItems:ye}=Je(U,d,h,E,"images.zip"),{downloadFile:j}=mt(U),B=Ye(()=>h.value.map(e=>({src:re(e.fileId),name:M(e.path),duration:0,size:e.size,path:e.path,type:d,data:e})));function J(e){L.lightbox={sources:B.value,index:e,visible:!0}}function Y(e){ht(gt,{type:d,tags:R.value,item:{key:e.id,title:e.title,size:e.size},selected:R.value.filter(l=>e.tags.some(w=>w.id===l.id))})}const{loading:Z,load:be,refetch:q}=Ze({handle:async(e,l)=>{if(l)it(C(l),"error");else if(e){const w=[];for(const I of e.images)w.push({...I,checked:!1,fileId:dt(U.value,I.path)});h.value=w,b.value=e.imageCount}},document:ct,variables:()=>({offset:($.value-1)*D,limit:D,query:T.value}),appApi:!0});function we(){ce(i,`/images?page=${$.value}&q=${ue(y.value)}`)}et($,()=>{we()});function Ce(e){g.tags.includes(e)?ft(g.tags,l=>l.id===e.id):g.tags.push(e)}function $e(){y.value=vt(g),ee(),H.value.dismiss()}function ee(){ce(i,`/images?q=${ue(y.value)}`)}function Te(){i.imageViewType==="grid"?i.imageViewType="list":i.imageViewType="grid"}function Ie(){me.push("/files"),kt(yt,{message:C("upload_images")})}function Ve(e,l){e.preventDefault(),bt({x:e.x,y:e.y,items:[{label:C("add_to_tags"),onClick:()=>{Y(l)}},{label:C("download"),onClick:()=>{j(l.path,M(l.path).replace(" ","-"))}},{label:C("delete"),onClick:()=>{K(d,l)}}]})}const te=e=>{e.type===d&&(E(),q())},se=e=>{e.type===d&&q()},oe=e=>{e.type===d&&(E(),q())},le=()=>{b.value--};return tt(()=>{v.on("item_tags_updated",se),v.on("items_tags_updated",te),v.on("media_item_deleted",le),v.on("media_items_deleted",oe)}),st(()=>{v.off("item_tags_updated",se),v.off("items_tags_updated",te),v.off("media_item_deleted",le),v.off("media_items_deleted",oe)}),(e,l)=>{const w=Rt,I=wt,ie=Ct,de=$t,Se=Dt,De=At,Ae=St,Re=Be,ze=qe,Ee=Tt,Fe=It,Me=Ne,f=ot("tooltip");return a(),n(S,null,[s("div",Ft,[c(w,{current:()=>`${e.$t("page_title.images")} (${t(b)})`},null,8,["current"]),t(X)&&t(i).imageViewType==="list"?(a(),n(S,{key:0},[m((a(),n("button",{class:"icon-button",onClick:l[0]||(l[0]=u(o=>t(ge)(t(d),h.value,t(z),T.value),["stop"]))},[Mt,c(I)])),[[f,e.$t("delete")]]),m((a(),n("button",{class:"icon-button",onClick:l[1]||(l[1]=u(o=>t(ye)(t(z),T.value),["stop"]))},[Ut,c(ie)])),[[f,e.$t("download")]]),m((a(),n("button",{class:"icon-button",onClick:l[2]||(l[2]=u(o=>t(he)(t(z),T.value),["stop"]))},[Bt,c(de)])),[[f,e.$t("add_to_tags")]])],64)):k("",!0),m((a(),n("button",{class:"icon-button",onClick:u(Te,["stop"])},[Nt,t(i).imageViewType==="list"?(a(),N(Se,{key:0})):k("",!0),t(i).imageViewType==="grid"?(a(),N(De,{key:1})):k("",!0)],8,qt)),[[f,e.$t(t(i).imageViewType==="list"?"view_as_grid":"view_as_list")]]),m((a(),n("button",{class:"icon-button",onClick:u(Ie,["prevent"])},[Ht,c(Ae)],8,xt)),[[f,e.$t("upload")]]),c(Re,{ref_key:"searchInputRef",ref:H,modelValue:y.value,"onUpdate:modelValue":l[4]||(l[4]=o=>y.value=o),search:ee},{filters:lt(()=>[s("div",Lt,[m(s("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":l[3]||(l[3]=o=>g.text=o),"keyup.enter":"applyAndDoSearch"},null,8,Qt),[[ut,g.text]]),s("label",Gt,r(e.$t("tags")),1),s("md-chip-set",null,[(a(!0),n(S,null,x(t(R),o=>(a(),n("md-filter-chip",{key:o.id,label:o.name,selected:g.tags.includes(o),onClick:F=>Ce(o)},null,8,Kt))),128))]),s("div",Ot,[s("md-filled-button",{onClick:u($e,["stop"])},r(e.$t("search")),9,Wt)])])]),_:1},8,["modelValue"])]),t(i).imageViewType==="grid"?(a(),n("div",Pt,[(a(!0),n(S,null,x(B.value,(o,F)=>(a(),n("div",{class:"item",onClick:p=>J(F),onContextmenu:p=>Ve(p,o.data)},[s("img",{class:"image",src:o.src+"&w=300&h=300"},null,8,jt),s("span",Jt,r(t(_e)(o.size)),1)],40,Xt))),256))])):k("",!0),c(ze,{limit:D,total:t(b),"all-checked-alert-visible":t(ve),"real-all-checked":t(z),"select-real-all":t(fe),"clear-selection":t(E)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t(i).imageViewType==="list"?(a(),n("div",Yt,[s("table",Zt,[s("thead",null,[s("tr",null,[s("th",null,[s("md-checkbox",{"touch-target":"wrapper",onChange:l[5]||(l[5]=(...o)=>t(W)&&t(W)(...o)),checked:t(O),indeterminate:!t(O)&&t(X)},null,40,es)]),ts,ss,s("th",null,r(e.$t("name")),1),os,s("th",null,r(e.$t("tags")),1),s("th",null,r(e.$t("file_size")),1)])]),s("tbody",null,[(a(!0),n(S,null,x(h.value,(o,F)=>(a(),n("tr",{key:o.id,class:_t({selected:o.checked}),onClick:u(p=>t(ke)(o),["stop"])},[s("td",null,[s("md-checkbox",{"touch-target":"wrapper",onChange:l[6]||(l[6]=(...p)=>t(P)&&t(P)(...p)),checked:o.checked},null,40,as)]),s("td",null,[c(Ee,{id:o.id,raw:o},null,8,["id","raw"])]),s("td",null,[s("img",{src:t(re)(o.fileId)+"&w=300&h=300",width:"50",height:"50",onClick:u(p=>J(F),["stop"]),style:{cursor:"pointer"}},null,8,ns)]),s("td",null,r(t(M)(o.path)),1),s("td",is,[s("div",ds,[m((a(),n("button",{class:"icon-button",onClick:u(p=>t(K)(t(d),o),["stop"])},[us,c(I)],8,cs)),[[f,e.$t("delete")]]),m((a(),n("button",{class:"icon-button",onClick:u(p=>t(j)(o.path,t(M)(o.path).replace(" ","-")),["stop"])},[rs,c(ie)],8,_s)),[[f,e.$t("download")]]),m((a(),n("button",{class:"icon-button",onClick:u(p=>Y(o),["stop"])},[ms,c(de)],8,ps)),[[f,e.$t("add_to_tags")]])])]),s("td",null,[c(Fe,{tags:o.tags,type:t(d)},null,8,["tags","type"])]),s("td",hs,r(t(_e)(o.size)),1)],10,ls))),128))]),h.value.length?k("",!0):(a(),n("tfoot",gs,[s("tr",null,[s("td",fs,[s("div",vs,r(e.$t(t(pe)(t(Z),t(Q).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])])):k("",!0),t(i).imageViewType==="grid"&&B.value.length===0?(a(),n("div",ks,r(e.$t(t(pe)(t(Z),t(Q).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):k("",!0),t(b)>D?(a(),N(Me,{key:3,modelValue:$.value,"onUpdate:modelValue":l[7]||(l[7]=o=>$.value=o),total:t(b),limit:D},null,8,["modelValue","total"])):k("",!0)],64)}}});const Ds=Vt(ys,[["__scopeId","data-v-c7fa60b1"]]);export{Ds as default}; diff --git a/app/src/main/resources/web/assets/JsonViewerView-eed04b71.js b/app/src/main/resources/web/assets/JsonViewerView-d31927f1.js similarity index 96% rename from app/src/main/resources/web/assets/JsonViewerView-eed04b71.js rename to app/src/main/resources/web/assets/JsonViewerView-d31927f1.js index e55dbc2a..73704129 100644 --- a/app/src/main/resources/web/assets/JsonViewerView-eed04b71.js +++ b/app/src/main/resources/web/assets/JsonViewerView-d31927f1.js @@ -1 +1 @@ -import{br as n,d as b,r as d,O as T,P as _,Q as S,o as f,c as k,a as l,p as r,I as E,s as w,e as D,w as C,l as j,t as x,H as v,j as p,n as R,S as H,k as O,_ as A}from"./index-f62f2ff2.js";import{_ as B}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import{_ as J}from"./Breadcrumb-ebe74d39.js";import{g as y,M as q}from"./splitpanes.es-2b477659.js";const z=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,I={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=z.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`"${e.toString()}"`):s.innerText=`"${e.toString()}"`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}},M={props:{jsonValue:{type:Object,default:null}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:e.jsonValue===null?"null":"undefined"})}},L={props:{jsonValue:{type:Number,required:!0}},setup(e){const t=Number.isInteger(e.jsonValue);return()=>n("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":t,"jv-number-float":!t},innerText:e.jsonValue.toString()})}},P={props:{jsonValue:Boolean},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:e.jsonValue.toString()})}},Z={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:{}}},computed:{ordered(){const e={};return Object.keys(this.value).sort().forEach(t=>{e[t]=this.value[t]}),e}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e){setTimeout(()=>{this.value=e},0)},toggle(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent(){try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"}));const t=Object.keys(this.value).length;if(t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t===1?"1 prop":`${t} props`})),this.expand){for(const s in this.ordered)if(this.ordered.hasOwnProperty(s)){const a=this.ordered[s];e.push(n(m,{key:s,style:{display:this.expand?void 0:"none"},keyName:s,expandDepth:this.expandDepth,depth:this.depth+1,value:a}))}}return e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),n("span",e)}},F={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:[]}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e,t=0){t===0&&(this.value=[]),setTimeout(()=>{e.length>t&&(this.value.push(e[t]),this.setValue(e,t+1))},0)},toggle(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["}));const t=this.value.length;return t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t==1?"1 item":`${t} items`})),this.expand&&this.value.forEach((s,a)=>{e.push(n(m,{key:a,style:{display:this.expand?void 0:"none"},expandDepth:this.expandDepth,depth:this.depth+1,value:s}))}),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),n("span",e)}},K={props:{jsonValue:{type:Function,required:!0}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:e.jsonValue.toString()},innerHTML:"<function>"})}},U={props:{jsonValue:{type:Date,required:!0}},setup(e){const t=e.jsonValue;return()=>n("span",{class:{"jv-item":!0,"jv-string":!0},innerText:`"${t.toLocaleString()}"`})}},G=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,Q={name:"JsonString",props:{jsonValue:{type:RegExp,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=G.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`${e.toString()}`):s.innerText=`${e.toString()}`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}};const m={name:"JsonBox",props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0}},data(){return{expand:!0}},mounted(){this.expand=!(this.depth>=this.expandDepth)},methods:{toggle(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){let e;this.value===null||this.value===void 0?e=M:Array.isArray(this.value)?e=F:Object.prototype.toString.call(this.value)==="[object Date]"?e=U:typeof this.value=="object"?e=Z:typeof this.value=="number"?e=L:typeof this.value=="string"?e=I:typeof this.value=="boolean"?e=P:typeof this.value=="function"&&(e=K),this.value&&this.value.constructor===RegExp&&(e=Q);let t=!1;if(this.keyName&&this.value){if(Array.isArray(this.value)&&this.value.length)t=!0;else if(typeof this.value=="object"){const a=Object.prototype.toString.call(this.value);!["[]","[object Date]"].includes(a)&&Object.keys(this.value).length&&(t=!0)}}const s=[];return t&&s.push(n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle})),this.keyName&&s.push(n("span",{class:{"jv-key":!0},onClick:()=>{console.log(this.keyName)},innerText:`${this.keyName}:`})),s.push(n(e,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,depth:this.depth,expand:this.expand,expandDepth:this.expandDepth,"onUpdate:expand":a=>{this.expand=a}})),n("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!t,toggle:t}},s)}},W={class:"jv-code"},X=b({__name:"json-viewer",props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expandDepth:{type:Number,default:1}},setup(e){const t=d("light"),s=()=>{t.value=document.documentElement.classList[0]==="dark"?"dark":"light"};return T(()=>{_.on("color_mode_changed",s)}),S(()=>{_.off("color_mode_changed",s)}),(a,h)=>{const u=m;return f(),k("div",{class:E(["jv-container",t.value])},[l("div",W,[r(u,{value:e.value,"expand-depth":e.expandDepth},null,8,["value","expand-depth"])])],2)}}});const Y={class:"page-container"},ee={class:"main"},te={class:"v-toolbar"},se=b({__name:"JsonViewerView",setup(e){const{json:t}=w(D()),s=d(null),a=d(1),h=d(1),u=()=>{try{const o=JSON.parse(t.value);s.value=o}catch(o){console.error(o)}};C(t,u),u();function g(o){o?a.value=1e3:a.value=1,h.value++}return(o,i)=>{const V=J,$=B,N=X;return f(),k("div",Y,[l("div",ee,[l("div",te,[r(V,{current:()=>o.$t("json_viewer")},null,8,["current"]),l("md-outlined-button",{onClick:i[0]||(i[0]=j(c=>g(!0),["prevent"]))},x(o.$t("expand_all")),1),l("md-outlined-button",{onClick:i[1]||(i[1]=j(c=>g(!1),["prevent"]))},x(o.$t("collapse_all")),1)]),r(p(q),{class:"panel-container"},{default:v(()=>[r(p(y),null,{default:v(()=>[r($,{language:"json",modelValue:p(t),"onUpdate:modelValue":i[2]||(i[2]=c=>R(t)?t.value=c:null)},null,8,["modelValue"])]),_:1}),r(p(y),null,{default:v(()=>[s.value?(f(),H(N,{value:s.value,"expand-depth":a.value,key:h.value},null,8,["value","expand-depth"])):O("",!0)]),_:1})]),_:1})])])}}});const re=A(se,[["__scopeId","data-v-862c219a"]]);export{re as default}; +import{br as n,d as b,r as d,O as T,P as _,Q as S,o as f,c as k,a as l,p as r,I as E,s as w,e as D,w as C,l as j,t as x,H as v,j as p,n as R,S as H,k as O,_ as A}from"./index-0c42270c.js";import{_ as B}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import{_ as J}from"./Breadcrumb-f52b6c6b.js";import{g as y,M as q}from"./splitpanes.es-7e8a6fea.js";const z=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,I={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=z.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`"${e.toString()}"`):s.innerText=`"${e.toString()}"`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}},M={props:{jsonValue:{type:Object,default:null}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:e.jsonValue===null?"null":"undefined"})}},L={props:{jsonValue:{type:Number,required:!0}},setup(e){const t=Number.isInteger(e.jsonValue);return()=>n("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":t,"jv-number-float":!t},innerText:e.jsonValue.toString()})}},P={props:{jsonValue:Boolean},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:e.jsonValue.toString()})}},Z={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:{}}},computed:{ordered(){const e={};return Object.keys(this.value).sort().forEach(t=>{e[t]=this.value[t]}),e}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e){setTimeout(()=>{this.value=e},0)},toggle(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent(){try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"}));const t=Object.keys(this.value).length;if(t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t===1?"1 prop":`${t} props`})),this.expand){for(const s in this.ordered)if(this.ordered.hasOwnProperty(s)){const a=this.ordered[s];e.push(n(m,{key:s,style:{display:this.expand?void 0:"none"},keyName:s,expandDepth:this.expandDepth,depth:this.depth+1,value:a}))}}return e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),n("span",e)}},F={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:[]}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e,t=0){t===0&&(this.value=[]),setTimeout(()=>{e.length>t&&(this.value.push(e[t]),this.setValue(e,t+1))},0)},toggle(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["}));const t=this.value.length;return t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t==1?"1 item":`${t} items`})),this.expand&&this.value.forEach((s,a)=>{e.push(n(m,{key:a,style:{display:this.expand?void 0:"none"},expandDepth:this.expandDepth,depth:this.depth+1,value:s}))}),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),n("span",e)}},K={props:{jsonValue:{type:Function,required:!0}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:e.jsonValue.toString()},innerHTML:"<function>"})}},U={props:{jsonValue:{type:Date,required:!0}},setup(e){const t=e.jsonValue;return()=>n("span",{class:{"jv-item":!0,"jv-string":!0},innerText:`"${t.toLocaleString()}"`})}},G=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,Q={name:"JsonString",props:{jsonValue:{type:RegExp,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=G.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`${e.toString()}`):s.innerText=`${e.toString()}`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}};const m={name:"JsonBox",props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0}},data(){return{expand:!0}},mounted(){this.expand=!(this.depth>=this.expandDepth)},methods:{toggle(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){let e;this.value===null||this.value===void 0?e=M:Array.isArray(this.value)?e=F:Object.prototype.toString.call(this.value)==="[object Date]"?e=U:typeof this.value=="object"?e=Z:typeof this.value=="number"?e=L:typeof this.value=="string"?e=I:typeof this.value=="boolean"?e=P:typeof this.value=="function"&&(e=K),this.value&&this.value.constructor===RegExp&&(e=Q);let t=!1;if(this.keyName&&this.value){if(Array.isArray(this.value)&&this.value.length)t=!0;else if(typeof this.value=="object"){const a=Object.prototype.toString.call(this.value);!["[]","[object Date]"].includes(a)&&Object.keys(this.value).length&&(t=!0)}}const s=[];return t&&s.push(n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle})),this.keyName&&s.push(n("span",{class:{"jv-key":!0},onClick:()=>{console.log(this.keyName)},innerText:`${this.keyName}:`})),s.push(n(e,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,depth:this.depth,expand:this.expand,expandDepth:this.expandDepth,"onUpdate:expand":a=>{this.expand=a}})),n("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!t,toggle:t}},s)}},W={class:"jv-code"},X=b({__name:"json-viewer",props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expandDepth:{type:Number,default:1}},setup(e){const t=d("light"),s=()=>{t.value=document.documentElement.classList[0]==="dark"?"dark":"light"};return T(()=>{_.on("color_mode_changed",s)}),S(()=>{_.off("color_mode_changed",s)}),(a,h)=>{const u=m;return f(),k("div",{class:E(["jv-container",t.value])},[l("div",W,[r(u,{value:e.value,"expand-depth":e.expandDepth},null,8,["value","expand-depth"])])],2)}}});const Y={class:"page-container"},ee={class:"main"},te={class:"v-toolbar"},se=b({__name:"JsonViewerView",setup(e){const{json:t}=w(D()),s=d(null),a=d(1),h=d(1),u=()=>{try{const o=JSON.parse(t.value);s.value=o}catch(o){console.error(o)}};C(t,u),u();function g(o){o?a.value=1e3:a.value=1,h.value++}return(o,i)=>{const V=J,$=B,N=X;return f(),k("div",Y,[l("div",ee,[l("div",te,[r(V,{current:()=>o.$t("json_viewer")},null,8,["current"]),l("md-outlined-button",{onClick:i[0]||(i[0]=j(c=>g(!0),["prevent"]))},x(o.$t("expand_all")),1),l("md-outlined-button",{onClick:i[1]||(i[1]=j(c=>g(!1),["prevent"]))},x(o.$t("collapse_all")),1)]),r(p(q),{class:"panel-container"},{default:v(()=>[r(p(y),null,{default:v(()=>[r($,{language:"json",modelValue:p(t),"onUpdate:modelValue":i[2]||(i[2]=c=>R(t)?t.value=c:null)},null,8,["modelValue"])]),_:1}),r(p(y),null,{default:v(()=>[s.value?(f(),H(N,{value:s.value,"expand-depth":a.value,key:h.value},null,8,["value","expand-depth"])):O("",!0)]),_:1})]),_:1})])])}}});const re=A(se,[["__scopeId","data-v-862c219a"]]);export{re as default}; diff --git a/app/src/main/resources/web/assets/LoginView-c629b4b1.js b/app/src/main/resources/web/assets/LoginView-49618539.js similarity index 98% rename from app/src/main/resources/web/assets/LoginView-c629b4b1.js rename to app/src/main/resources/web/assets/LoginView-49618539.js index be3840ec..c2a28407 100644 --- a/app/src/main/resources/web/assets/LoginView-c629b4b1.js +++ b/app/src/main/resources/web/assets/LoginView-49618539.js @@ -1 +1 @@ -import{d as J,r as h,u as G,an as Y,cn as Q,co as X,cp as Z,cq as ee,cr as se,cs as ne,ct as te,aY as oe,cu as N,c as A,a as p,p as re,t as g,m as E,aV as x,l as ie,j as d,n as ae,ap as le,v as ue,k as $,h as ce,F as de,cv as me,o as T,cw as fe,_ as we}from"./index-f62f2ff2.js";import{u as ve,a as be}from"./vee-validate.esm-65abdaa1.js";function M(n){let t=n;if(typeof t>"u"){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function L(n,t){try{return new RegExp(n,"g").exec(t)}catch{return null}}function W(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;const t=navigator.userAgentData.brands;return!!(t&&t.length)}function pe(n,t){const o=L(`(${n})((?:\\/|\\s|:)([0-9|\\.|_]+))`,t);return o?o[3]:""}function I(n){return n.replace(/_/g,".")}function V(n,t){let o=null,e="-1";return n.some(r=>{const a=L(`(${r.test})((?:\\/|\\s|:)([0-9|\\.|_]+))?`,t);return!a||r.brand?!1:(o=r,e=a[3]||"-1",r.versionAlias?e=r.versionAlias:r.versionTest&&(e=pe(r.versionTest.toLowerCase(),t)||e),e=I(e),!0)}),{preset:o,version:e}}function _(n,t){const o={brand:"",version:"-1"};return n.some(e=>{const r=D(t,e);return r?(o.brand=e.id,o.version=e.versionAlias||r.version,o.version!=="-1"):!1}),o}function D(n,t){return n.find(o=>L(`${t.test}`,o.brand.toLowerCase()))}const P=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],F=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],R=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],O=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],U=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function H(n){return!!V(O,n).preset}function ge(n){const t=M(n),o=!!/mobi/g.exec(t),e={name:"unknown",version:"-1",majorVersion:-1,webview:H(t),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},{preset:a,version:w}=V(P,t),{preset:s,version:l}=V(U,t),b=V(F,t);if(e.chromium=!!b.preset,e.chromiumVersion=b.version,!e.chromium){const m=V(R,t);e.webkit=!!m.preset,e.webkitVersion=m.version}return s&&(r.name=s.id,r.version=l,r.majorVersion=parseInt(l,10)),a&&(e.name=a.id,e.version=w,e.webview&&r.name==="ios"&&e.name!=="safari"&&(e.webview=!1)),e.majorVersion=parseInt(e.version,10),{browser:e,os:r,isMobile:o,isHints:!1}}function K(n){const t=navigator.userAgentData,o=[...t.brands],e=n&&n.fullVersionList,r=t.mobile||!1,a=o[0],w=(n&&n.platform||t.platform||navigator.platform).toLowerCase(),s={name:a.brand,version:a.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!_(O,o).brand||H(M())},l={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&R.some(i=>D(o,i));const b=_(F,o);if(s.chromium=!!b.brand,s.chromiumVersion=b.version,!s.chromium){const i=_(R,o);s.webkit=!!i.brand,s.webkitVersion=i.version}const m=U.find(i=>new RegExp(`${i.test}`,"g").exec(w));if(l.name=m?m.id:"",n&&(l.version=n.platformVersion),e&&e.length){const i=_(P,e);s.name=i.brand||s.name,s.version=i.version||s.version}else{const i=_(P,o);s.name=i.brand||s.name,s.version=i.brand&&n?n.uaFullVersion:i.version}return s.webkit&&(l.name=r?"ios":"mac"),l.name==="ios"&&s.webview&&(s.version="-1"),l.version=I(l.version),s.version=I(s.version),l.majorVersion=parseInt(l.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:l,isMobile:r,isHints:!0}}async function he(){if(W()){const n=await navigator.userAgentData.getHighEntropyValues(["architecture","model","platform","platformVersion","uaFullVersion","fullVersionList"]);return K(n)}return _e()}function _e(n){return typeof n>"u"&&W()?K():ge(n)}const Ve={class:"header"},ye={class:"login-block"},ke=["label","error","error-text"],Se=["disabled"],Ae={key:0,class:"tips"},Ee=J({__name:"LoginView",setup(n){const{handleSubmit:t,isSubmitting:o}=ve(),e=h(!1),r=h(!0),a=h(!1),w=h("");let s;const l=window.location.protocol==="http:"?!1:!window.navigator.userAgentData,{t:b}=G(),{value:m,errorMessage:i}=be("password",Y().required()),B=h(!1);async function q(){const c=await fetch(`${N()}/init`,{method:"POST",headers:me()});if(c.status===403){e.value=!0,r.value=!0,w.value="web_access_disabled";return}r.value=!1;const f=await c.text();f?(m.value=f,B.value=!1):B.value=!0}q();const y=t(async()=>{const c=localStorage.getItem("client_id");s=new WebSocket(`${Q()}?cid=${c}&auth=1`);const f=m.value??"",k=X(f),v=Z(k);w.value="",e.value=!1,s.onopen=async()=>{o.value=!0;const u=await he(),S=ee(v,JSON.stringify({password:k,browserName:u.browser.name,browserVersion:u.browser.version,osName:u.os.name,osVersion:u.os.version,isMobile:u.isMobile}));s.send(se(S))},s.onmessage=async u=>{var C;const S=ne(v,te(await u.data.arrayBuffer())),j=JSON.parse(S);j.status==="PENDING"?a.value=!0:(localStorage.setItem("auth_token",j.token),s.close(),window.location.href=((C=oe.currentRoute.value.query.redirect)==null?void 0:C.toString())??"/")},s.onclose=async u=>{if(!(u.reason==="abort"||u.reason==="OK")){if(o.value=!1,e.value=!0,a.value=!1,!u.reason&&(await fetch(`${N()}/health_check`)).status===200){w.value="failed_connect_ws";return}w.value=`login.${u.reason?u.reason:"failed"}`}},window.setTimeout(function(){s.readyState!==1&&s.close(3001,"timeout")},2e3)});function z(){a.value=!1,e.value=!1,o.value=!1,s.close(3001,"abort")}return(c,f)=>{const k=fe;return T(),A(de,null,[p("header",Ve,[re(k,{"logged-in":!1})]),p("h1",null,g(c.$t("app_name")),1),p("div",ye,[E(p("form",{onSubmit:f[2]||(f[2]=ie((...v)=>d(y)&&d(y)(...v),["prevent"]))},[E(p("div",{class:"alert alert-danger",role:"alert"},g(w.value?c.$t(w.value):""),513),[[x,e.value]]),B.value?E((T(),A("md-outlined-text-field",{key:0,label:d(b)("password"),"onUpdate:modelValue":f[0]||(f[0]=v=>ae(m)?m.value=v:null),onKeydown:f[1]||(f[1]=le((...v)=>d(y)&&d(y)(...v),["enter"])),type:"password",class:"form-control",error:d(i),"error-text":d(i)?c.$t(d(i)):""},null,40,ke)),[[ue,d(m)]]):$("",!0),r.value?$("",!0):(T(),A("md-filled-button",{key:1,disabled:d(o)},g(c.$t(d(o)?"logging_in":"log_in")),9,Se))],544),[[x,!a.value]]),E(p("div",null,[ce(g(c.$t("login.to_continue"))+" ",1),p("md-outlined-button",{onClick:z},g(c.$t("cancel")),1)],512),[[x,a.value]])]),d(l)?(T(),A("div",Ae,g(c.$t("browser_warning")),1)):$("",!0)],64)}}});const xe=we(Ee,[["__scopeId","data-v-da05a7d0"]]);export{xe as default}; +import{d as J,r as h,u as G,an as Y,cn as Q,co as X,cp as Z,cq as ee,cr as se,cs as ne,ct as te,aY as oe,cu as N,c as A,a as p,p as re,t as g,m as E,aV as x,l as ie,j as d,n as ae,ap as le,v as ue,k as $,h as ce,F as de,cv as me,o as T,cw as fe,_ as we}from"./index-0c42270c.js";import{u as ve,a as be}from"./vee-validate.esm-ca78f26f.js";function M(n){let t=n;if(typeof t>"u"){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function L(n,t){try{return new RegExp(n,"g").exec(t)}catch{return null}}function W(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;const t=navigator.userAgentData.brands;return!!(t&&t.length)}function pe(n,t){const o=L(`(${n})((?:\\/|\\s|:)([0-9|\\.|_]+))`,t);return o?o[3]:""}function I(n){return n.replace(/_/g,".")}function V(n,t){let o=null,e="-1";return n.some(r=>{const a=L(`(${r.test})((?:\\/|\\s|:)([0-9|\\.|_]+))?`,t);return!a||r.brand?!1:(o=r,e=a[3]||"-1",r.versionAlias?e=r.versionAlias:r.versionTest&&(e=pe(r.versionTest.toLowerCase(),t)||e),e=I(e),!0)}),{preset:o,version:e}}function _(n,t){const o={brand:"",version:"-1"};return n.some(e=>{const r=D(t,e);return r?(o.brand=e.id,o.version=e.versionAlias||r.version,o.version!=="-1"):!1}),o}function D(n,t){return n.find(o=>L(`${t.test}`,o.brand.toLowerCase()))}const P=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],F=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],R=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],O=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],U=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function H(n){return!!V(O,n).preset}function ge(n){const t=M(n),o=!!/mobi/g.exec(t),e={name:"unknown",version:"-1",majorVersion:-1,webview:H(t),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},{preset:a,version:w}=V(P,t),{preset:s,version:l}=V(U,t),b=V(F,t);if(e.chromium=!!b.preset,e.chromiumVersion=b.version,!e.chromium){const m=V(R,t);e.webkit=!!m.preset,e.webkitVersion=m.version}return s&&(r.name=s.id,r.version=l,r.majorVersion=parseInt(l,10)),a&&(e.name=a.id,e.version=w,e.webview&&r.name==="ios"&&e.name!=="safari"&&(e.webview=!1)),e.majorVersion=parseInt(e.version,10),{browser:e,os:r,isMobile:o,isHints:!1}}function K(n){const t=navigator.userAgentData,o=[...t.brands],e=n&&n.fullVersionList,r=t.mobile||!1,a=o[0],w=(n&&n.platform||t.platform||navigator.platform).toLowerCase(),s={name:a.brand,version:a.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!_(O,o).brand||H(M())},l={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&R.some(i=>D(o,i));const b=_(F,o);if(s.chromium=!!b.brand,s.chromiumVersion=b.version,!s.chromium){const i=_(R,o);s.webkit=!!i.brand,s.webkitVersion=i.version}const m=U.find(i=>new RegExp(`${i.test}`,"g").exec(w));if(l.name=m?m.id:"",n&&(l.version=n.platformVersion),e&&e.length){const i=_(P,e);s.name=i.brand||s.name,s.version=i.version||s.version}else{const i=_(P,o);s.name=i.brand||s.name,s.version=i.brand&&n?n.uaFullVersion:i.version}return s.webkit&&(l.name=r?"ios":"mac"),l.name==="ios"&&s.webview&&(s.version="-1"),l.version=I(l.version),s.version=I(s.version),l.majorVersion=parseInt(l.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:l,isMobile:r,isHints:!0}}async function he(){if(W()){const n=await navigator.userAgentData.getHighEntropyValues(["architecture","model","platform","platformVersion","uaFullVersion","fullVersionList"]);return K(n)}return _e()}function _e(n){return typeof n>"u"&&W()?K():ge(n)}const Ve={class:"header"},ye={class:"login-block"},ke=["label","error","error-text"],Se=["disabled"],Ae={key:0,class:"tips"},Ee=J({__name:"LoginView",setup(n){const{handleSubmit:t,isSubmitting:o}=ve(),e=h(!1),r=h(!0),a=h(!1),w=h("");let s;const l=window.location.protocol==="http:"?!1:!window.navigator.userAgentData,{t:b}=G(),{value:m,errorMessage:i}=be("password",Y().required()),B=h(!1);async function q(){const c=await fetch(`${N()}/init`,{method:"POST",headers:me()});if(c.status===403){e.value=!0,r.value=!0,w.value="web_access_disabled";return}r.value=!1;const f=await c.text();f?(m.value=f,B.value=!1):B.value=!0}q();const y=t(async()=>{const c=localStorage.getItem("client_id");s=new WebSocket(`${Q()}?cid=${c}&auth=1`);const f=m.value??"",k=X(f),v=Z(k);w.value="",e.value=!1,s.onopen=async()=>{o.value=!0;const u=await he(),S=ee(v,JSON.stringify({password:k,browserName:u.browser.name,browserVersion:u.browser.version,osName:u.os.name,osVersion:u.os.version,isMobile:u.isMobile}));s.send(se(S))},s.onmessage=async u=>{var C;const S=ne(v,te(await u.data.arrayBuffer())),j=JSON.parse(S);j.status==="PENDING"?a.value=!0:(localStorage.setItem("auth_token",j.token),s.close(),window.location.href=((C=oe.currentRoute.value.query.redirect)==null?void 0:C.toString())??"/")},s.onclose=async u=>{if(!(u.reason==="abort"||u.reason==="OK")){if(o.value=!1,e.value=!0,a.value=!1,!u.reason&&(await fetch(`${N()}/health_check`)).status===200){w.value="failed_connect_ws";return}w.value=`login.${u.reason?u.reason:"failed"}`}},window.setTimeout(function(){s.readyState!==1&&s.close(3001,"timeout")},2e3)});function z(){a.value=!1,e.value=!1,o.value=!1,s.close(3001,"abort")}return(c,f)=>{const k=fe;return T(),A(de,null,[p("header",Ve,[re(k,{"logged-in":!1})]),p("h1",null,g(c.$t("app_name")),1),p("div",ye,[E(p("form",{onSubmit:f[2]||(f[2]=ie((...v)=>d(y)&&d(y)(...v),["prevent"]))},[E(p("div",{class:"alert alert-danger",role:"alert"},g(w.value?c.$t(w.value):""),513),[[x,e.value]]),B.value?E((T(),A("md-outlined-text-field",{key:0,label:d(b)("password"),"onUpdate:modelValue":f[0]||(f[0]=v=>ae(m)?m.value=v:null),onKeydown:f[1]||(f[1]=le((...v)=>d(y)&&d(y)(...v),["enter"])),type:"password",class:"form-control",error:d(i),"error-text":d(i)?c.$t(d(i)):""},null,40,ke)),[[ue,d(m)]]):$("",!0),r.value?$("",!0):(T(),A("md-filled-button",{key:1,disabled:d(o)},g(c.$t(d(o)?"logging_in":"log_in")),9,Se))],544),[[x,!a.value]]),E(p("div",null,[ce(g(c.$t("login.to_continue"))+" ",1),p("md-outlined-button",{onClick:z},g(c.$t("cancel")),1)],512),[[x,a.value]])]),d(l)?(T(),A("div",Ae,g(c.$t("browser_warning")),1)):$("",!0)],64)}}});const xe=we(Ee,[["__scopeId","data-v-da05a7d0"]]);export{xe as default}; diff --git a/app/src/main/resources/web/assets/MessagesRootView-3dc6eaa3.js b/app/src/main/resources/web/assets/MessagesRootView-6bf338f4.js similarity index 75% rename from app/src/main/resources/web/assets/MessagesRootView-3dc6eaa3.js rename to app/src/main/resources/web/assets/MessagesRootView-6bf338f4.js index 7b20e77d..d7ee28e6 100644 --- a/app/src/main/resources/web/assets/MessagesRootView-3dc6eaa3.js +++ b/app/src/main/resources/web/assets/MessagesRootView-6bf338f4.js @@ -1 +1 @@ -import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js";import{d as w,D as M,e as S,E as B,G as N,c as p,p as a,H as i,j as e,o as m,a as s,t as c,l as d,I as u,F as z,J as T,C as f}from"./index-f62f2ff2.js";import{g,M as V}from"./splitpanes.es-2b477659.js";import"./EditValueModal-d57e85f6.js";import"./vee-validate.esm-65abdaa1.js";const b={class:"page-container"},D={class:"sidebar"},E={class:"nav-title"},F={class:"nav"},R=["onClick"],j=["onClick"],q={class:"main"},K=w({__name:"MessagesRootView",setup(x){const n=M(),l=S(),r=n.params.type,_=r?"":B(n.query);function h(t){f(l,`/messages/${t}`)}const v=["inbox","sent","drafts"];function y(){f(l,"/messages")}return(t,G)=>{const C=$,k=N("router-view");return m(),p("div",b,[a(e(V),null,{default:i(()=>[a(e(g),{size:"20","min-size":"10"},{default:i(()=>[s("div",D,[s("h2",E,c(t.$t("page_title.messages")),1),s("ul",F,[s("li",{onClick:d(y,["prevent"]),class:u({active:e(n).path==="/messages"&&!e(_)})},c(t.$t("all")),11,R),(m(),p(z,null,T(v,o=>s("li",{key:o,onClick:d(H=>h(o),["prevent"]),class:u({active:o===e(r)})},c(t.$t(`message_type.${o}`)),11,j)),64))]),a(C,{type:"SMS",selected:e(_)},null,8,["selected"])])]),_:1}),a(e(g),null,{default:i(()=>[s("div",q,[a(k)])]),_:1})]),_:1})])}}});export{K as default}; +import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js";import{d as w,D as M,e as S,E as B,G as N,c as p,p as a,H as i,j as e,o as m,a as s,t as c,l as d,I as u,F as z,J as T,C as f}from"./index-0c42270c.js";import{g,M as V}from"./splitpanes.es-7e8a6fea.js";import"./EditValueModal-c22a5b2d.js";import"./vee-validate.esm-ca78f26f.js";const b={class:"page-container"},D={class:"sidebar"},E={class:"nav-title"},F={class:"nav"},R=["onClick"],j=["onClick"],q={class:"main"},K=w({__name:"MessagesRootView",setup(x){const n=M(),l=S(),r=n.params.type,_=r?"":B(n.query);function h(t){f(l,`/messages/${t}`)}const v=["inbox","sent","drafts"];function y(){f(l,"/messages")}return(t,G)=>{const C=$,k=N("router-view");return m(),p("div",b,[a(e(V),null,{default:i(()=>[a(e(g),{size:"20","min-size":"10"},{default:i(()=>[s("div",D,[s("h2",E,c(t.$t("page_title.messages")),1),s("ul",F,[s("li",{onClick:d(y,["prevent"]),class:u({active:e(n).path==="/messages"&&!e(_)})},c(t.$t("all")),11,R),(m(),p(z,null,T(v,o=>s("li",{key:o,onClick:d(H=>h(o),["prevent"]),class:u({active:o===e(r)})},c(t.$t(`message_type.${o}`)),11,j)),64))]),a(C,{type:"SMS",selected:e(_)},null,8,["selected"])])]),_:1}),a(e(g),null,{default:i(()=>[s("div",q,[a(k)])]),_:1})]),_:1})])}}});export{K as default}; diff --git a/app/src/main/resources/web/assets/MessagesView-acae6a6e.js b/app/src/main/resources/web/assets/MessagesView-5e09032c.js similarity index 95% rename from app/src/main/resources/web/assets/MessagesView-acae6a6e.js rename to app/src/main/resources/web/assets/MessagesView-5e09032c.js index 63a4b660..9d6b85e1 100644 --- a/app/src/main/resources/web/assets/MessagesView-acae6a6e.js +++ b/app/src/main/resources/web/assets/MessagesView-5e09032c.js @@ -1 +1 @@ -import{u as ue,_ as _e,a as pe,b as me}from"./list-45297bd9.js";import{d as he,e as ge,s as fe,f as ke,r as g,u as ve,K as ye,L as be,D as $e,M as Te,N as Ce,w as Se,O as we,P as $,Q as Ve,R as De,c as d,a as e,p as r,j as a,m as T,l as C,k as M,H as Me,t as o,F as q,J as G,S as qe,T as Ae,U as Re,x as Ie,V as Le,C as S,W as w,o as n,v as Ue,I as Be,X as Qe,Y as He,h as Ne,Z as Fe,$ as ze,a0 as xe,a1 as Ee,a2 as Ke,a3 as Pe,a4 as je,a5 as Ge,a6 as Je}from"./index-f62f2ff2.js";import{_ as Oe}from"./Breadcrumb-ebe74d39.js";import{u as We,a as Xe}from"./tags-06583423.js";import"./vee-validate.esm-65abdaa1.js";const Ye={class:"v-toolbar"},Ze=e("md-ripple",null,null,-1),et={class:"filters"},tt=["label"],st={class:"form-label"},at=["label","selected","onClick"],lt={class:"buttons"},ot=["onClick"],nt={class:"table-responsive"},dt={class:"table"},ct=["checked","indeterminate"],it=e("th",null,"ID",-1),rt=e("th",null,null,-1),ut=["onClick"],_t=["checked"],pt=["innerHTML"],mt={class:"nowrap"},ht={class:"action-btns"},gt=["onClick"],ft=e("md-ripple",null,null,-1),kt={class:"nowrap"},vt={class:"nowrap"},yt={class:"nowrap"},bt={key:0},$t={colspan:"8"},Tt={class:"no-data-placeholder"},f=50,qt=he({__name:"MessagesView",setup(Ct){var K,P;const k=ge(),{app:J}=fe(ke()),p=g([]),A=g(),{t:O}=ve(),c=ye({text:"",tags:[]}),u=be.SMS,R=$e(),I=R.query,v=g(parseInt(((K=I.page)==null?void 0:K.toString())??"1")),i=g(Te(((P=I.q)==null?void 0:P.toString())??"")),V=g(""),{tags:y}=We(u,i,c,async t=>{_&&t.push({name:"type",op:"",value:se[_].toString()}),V.value=Ae(t),await Re(),te()}),{addToTags:W}=Xe(u,p,y),{allChecked:L,realAllChecked:U,selectRealAll:X,allCheckedAlertVisible:Y,clearSelection:B,toggleAllChecked:Q,toggleItemChecked:H,toggleRow:Z,total:m,checked:N}=ue(p),{loading:ee,load:te,refetch:F}=Ce({handle:(t,l)=>{l?Ie(O(l),"error"):t&&(p.value=t.messages.map(h=>({...h,checked:!1})),m.value=t.messageCount)},document:Le,variables:()=>({offset:(v.value-1)*f,limit:f,query:V.value}),appApi:!0}),_=R.params.type,se={inbox:1,sent:2,drafts:3,outbox:4};Se(v,t=>{_?S(k,`/messages/${_}?page=${t}&q=${w(i.value)}`):S(k,`/messages?page=${t}&q=${w(i.value)}`)});function ae(t){c.tags.includes(t)?xe(c.tags,l=>l.id===t.id):c.tags.push(t)}function le(){i.value=Ee(c),z(),A.value.dismiss()}function oe(t){Ke(Pe,{type:u,tags:y.value,item:{key:t.id,title:"",size:0},selected:y.value.filter(l=>t.tags.some(h=>h.id===l.id))})}function z(){_?S(k,`/messages/${_}?q=${w(i.value)}`):S(k,`/messages?q=${w(i.value)}`)}const x=t=>{t.type===u&&(B(),F())},E=t=>{t.type===u&&F()};return we(()=>{$.on("item_tags_updated",E),$.on("items_tags_updated",x)}),Ve(()=>{$.off("item_tags_updated",E),$.off("items_tags_updated",x)}),(t,l)=>{const h=Oe,j=je,ne=_e,de=pe,ce=Ge,ie=Je,re=me,D=De("tooltip");return n(),d(q,null,[e("div",Ye,[r(h,{current:()=>`${t.$t("page_title.messages")} (${a(m)})`},null,8,["current"]),a(N)?T((n(),d("button",{key:0,class:"icon-button",onClick:l[0]||(l[0]=C(s=>a(W)(a(U),V.value),["stop"]))},[Ze,r(j)])),[[D,t.$t("add_to_tags")]]):M("",!0),r(ne,{ref_key:"searchInputRef",ref:A,modelValue:i.value,"onUpdate:modelValue":l[2]||(l[2]=s=>i.value=s),search:z},{filters:Me(()=>[e("div",et,[T(e("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":l[1]||(l[1]=s=>c.text=s),"keyup.enter":"applyAndDoSearch"},null,8,tt),[[Ue,c.text]]),e("label",st,o(t.$t("tags")),1),e("md-chip-set",null,[(n(!0),d(q,null,G(a(y),s=>(n(),d("md-filter-chip",{key:s.id,label:s.name,selected:c.tags.includes(s),onClick:b=>ae(s)},null,8,at))),128))]),e("div",lt,[e("md-filled-button",{onClick:C(le,["stop"])},o(t.$t("search")),9,ot)])])]),_:1},8,["modelValue"])]),r(de,{limit:f,total:a(m),"all-checked-alert-visible":a(Y),"real-all-checked":a(U),"select-real-all":a(X),"clear-selection":a(B)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e("div",nt,[e("table",dt,[e("thead",null,[e("tr",null,[e("th",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:l[3]||(l[3]=(...s)=>a(Q)&&a(Q)(...s)),checked:a(L),indeterminate:!a(L)&&a(N)},null,40,ct)]),it,e("th",null,o(t.$t("content")),1),rt,e("th",null,o(t.$t("sms_address")),1),e("th",null,o(t.$t("type")),1),e("th",null,o(t.$t("tags")),1),e("th",null,o(t.$t("time")),1)])]),e("tbody",null,[(n(!0),d(q,null,G(p.value,s=>(n(),d("tr",{key:s.id,class:Be({selected:s.checked}),onClick:C(b=>a(Z)(s),["stop"])},[e("td",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:l[4]||(l[4]=(...b)=>a(H)&&a(H)(...b)),checked:s.checked},null,40,_t)]),e("td",null,[r(ce,{id:s.id,raw:s},null,8,["id","raw"])]),e("td",{innerHTML:a(Qe)(s.body)},null,8,pt),e("td",mt,[e("div",ht,[T((n(),d("button",{class:"icon-button",onClick:C(b=>oe(s),["stop"])},[ft,r(j)],8,gt)),[[D,t.$t("add_to_tags")]])])]),e("td",kt,o(s.address),1),e("td",vt,o(t.$t(`message_type.${s.type}`)),1),e("td",null,[r(ie,{tags:s.tags,type:a(u)},null,8,["tags","type"])]),e("td",yt,[T((n(),d("span",null,[Ne(o(a(Fe)(s.date)),1)])),[[D,a(He)(s.date)]])])],10,ut))),128))]),p.value.length?M("",!0):(n(),d("tfoot",bt,[e("tr",null,[e("td",$t,[e("div",Tt,o(t.$t(a(ze)(a(ee),a(J).permissions,"READ_SMS"))),1)])])]))])]),a(m)>f?(n(),qe(re,{key:0,modelValue:v.value,"onUpdate:modelValue":l[5]||(l[5]=s=>v.value=s),total:a(m),limit:f},null,8,["modelValue","total"])):M("",!0)],64)}}});export{qt as default}; +import{u as ue,_ as _e,a as pe,b as me}from"./list-183f8357.js";import{d as he,e as ge,s as fe,f as ke,r as g,u as ve,K as ye,L as be,D as $e,M as Te,N as Ce,w as Se,O as we,P as $,Q as Ve,R as De,c as d,a as e,p as r,j as a,m as T,l as C,k as M,H as Me,t as o,F as q,J as G,S as qe,T as Ae,U as Re,x as Ie,V as Le,C as S,W as w,o as n,v as Ue,I as Be,X as Qe,Y as He,h as Ne,Z as Fe,$ as ze,a0 as xe,a1 as Ee,a2 as Ke,a3 as Pe,a4 as je,a5 as Ge,a6 as Je}from"./index-0c42270c.js";import{_ as Oe}from"./Breadcrumb-f52b6c6b.js";import{u as We,a as Xe}from"./tags-bf0f6db9.js";import"./vee-validate.esm-ca78f26f.js";const Ye={class:"v-toolbar"},Ze=e("md-ripple",null,null,-1),et={class:"filters"},tt=["label"],st={class:"form-label"},at=["label","selected","onClick"],lt={class:"buttons"},ot=["onClick"],nt={class:"table-responsive"},dt={class:"table"},ct=["checked","indeterminate"],it=e("th",null,"ID",-1),rt=e("th",null,null,-1),ut=["onClick"],_t=["checked"],pt=["innerHTML"],mt={class:"nowrap"},ht={class:"action-btns"},gt=["onClick"],ft=e("md-ripple",null,null,-1),kt={class:"nowrap"},vt={class:"nowrap"},yt={class:"nowrap"},bt={key:0},$t={colspan:"8"},Tt={class:"no-data-placeholder"},f=50,qt=he({__name:"MessagesView",setup(Ct){var K,P;const k=ge(),{app:J}=fe(ke()),p=g([]),A=g(),{t:O}=ve(),c=ye({text:"",tags:[]}),u=be.SMS,R=$e(),I=R.query,v=g(parseInt(((K=I.page)==null?void 0:K.toString())??"1")),i=g(Te(((P=I.q)==null?void 0:P.toString())??"")),V=g(""),{tags:y}=We(u,i,c,async t=>{_&&t.push({name:"type",op:"",value:se[_].toString()}),V.value=Ae(t),await Re(),te()}),{addToTags:W}=Xe(u,p,y),{allChecked:L,realAllChecked:U,selectRealAll:X,allCheckedAlertVisible:Y,clearSelection:B,toggleAllChecked:Q,toggleItemChecked:H,toggleRow:Z,total:m,checked:N}=ue(p),{loading:ee,load:te,refetch:F}=Ce({handle:(t,l)=>{l?Ie(O(l),"error"):t&&(p.value=t.messages.map(h=>({...h,checked:!1})),m.value=t.messageCount)},document:Le,variables:()=>({offset:(v.value-1)*f,limit:f,query:V.value}),appApi:!0}),_=R.params.type,se={inbox:1,sent:2,drafts:3,outbox:4};Se(v,t=>{_?S(k,`/messages/${_}?page=${t}&q=${w(i.value)}`):S(k,`/messages?page=${t}&q=${w(i.value)}`)});function ae(t){c.tags.includes(t)?xe(c.tags,l=>l.id===t.id):c.tags.push(t)}function le(){i.value=Ee(c),z(),A.value.dismiss()}function oe(t){Ke(Pe,{type:u,tags:y.value,item:{key:t.id,title:"",size:0},selected:y.value.filter(l=>t.tags.some(h=>h.id===l.id))})}function z(){_?S(k,`/messages/${_}?q=${w(i.value)}`):S(k,`/messages?q=${w(i.value)}`)}const x=t=>{t.type===u&&(B(),F())},E=t=>{t.type===u&&F()};return we(()=>{$.on("item_tags_updated",E),$.on("items_tags_updated",x)}),Ve(()=>{$.off("item_tags_updated",E),$.off("items_tags_updated",x)}),(t,l)=>{const h=Oe,j=je,ne=_e,de=pe,ce=Ge,ie=Je,re=me,D=De("tooltip");return n(),d(q,null,[e("div",Ye,[r(h,{current:()=>`${t.$t("page_title.messages")} (${a(m)})`},null,8,["current"]),a(N)?T((n(),d("button",{key:0,class:"icon-button",onClick:l[0]||(l[0]=C(s=>a(W)(a(U),V.value),["stop"]))},[Ze,r(j)])),[[D,t.$t("add_to_tags")]]):M("",!0),r(ne,{ref_key:"searchInputRef",ref:A,modelValue:i.value,"onUpdate:modelValue":l[2]||(l[2]=s=>i.value=s),search:z},{filters:Me(()=>[e("div",et,[T(e("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":l[1]||(l[1]=s=>c.text=s),"keyup.enter":"applyAndDoSearch"},null,8,tt),[[Ue,c.text]]),e("label",st,o(t.$t("tags")),1),e("md-chip-set",null,[(n(!0),d(q,null,G(a(y),s=>(n(),d("md-filter-chip",{key:s.id,label:s.name,selected:c.tags.includes(s),onClick:b=>ae(s)},null,8,at))),128))]),e("div",lt,[e("md-filled-button",{onClick:C(le,["stop"])},o(t.$t("search")),9,ot)])])]),_:1},8,["modelValue"])]),r(de,{limit:f,total:a(m),"all-checked-alert-visible":a(Y),"real-all-checked":a(U),"select-real-all":a(X),"clear-selection":a(B)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e("div",nt,[e("table",dt,[e("thead",null,[e("tr",null,[e("th",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:l[3]||(l[3]=(...s)=>a(Q)&&a(Q)(...s)),checked:a(L),indeterminate:!a(L)&&a(N)},null,40,ct)]),it,e("th",null,o(t.$t("content")),1),rt,e("th",null,o(t.$t("sms_address")),1),e("th",null,o(t.$t("type")),1),e("th",null,o(t.$t("tags")),1),e("th",null,o(t.$t("time")),1)])]),e("tbody",null,[(n(!0),d(q,null,G(p.value,s=>(n(),d("tr",{key:s.id,class:Be({selected:s.checked}),onClick:C(b=>a(Z)(s),["stop"])},[e("td",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:l[4]||(l[4]=(...b)=>a(H)&&a(H)(...b)),checked:s.checked},null,40,_t)]),e("td",null,[r(ce,{id:s.id,raw:s},null,8,["id","raw"])]),e("td",{innerHTML:a(Qe)(s.body)},null,8,pt),e("td",mt,[e("div",ht,[T((n(),d("button",{class:"icon-button",onClick:C(b=>oe(s),["stop"])},[ft,r(j)],8,gt)),[[D,t.$t("add_to_tags")]])])]),e("td",kt,o(s.address),1),e("td",vt,o(t.$t(`message_type.${s.type}`)),1),e("td",null,[r(ie,{tags:s.tags,type:a(u)},null,8,["tags","type"])]),e("td",yt,[T((n(),d("span",null,[Ne(o(a(Fe)(s.date)),1)])),[[D,a(He)(s.date)]])])],10,ut))),128))]),p.value.length?M("",!0):(n(),d("tfoot",bt,[e("tr",null,[e("td",$t,[e("div",Tt,o(t.$t(a(ze)(a(ee),a(J).permissions,"READ_SMS"))),1)])])]))])]),a(m)>f?(n(),qe(re,{key:0,modelValue:v.value,"onUpdate:modelValue":l[5]||(l[5]=s=>v.value=s),total:a(m),limit:f},null,8,["modelValue","total"])):M("",!0)],64)}}});export{qt as default}; diff --git a/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js b/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js similarity index 99% rename from app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js rename to app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js index 02b26e53..45773e41 100644 --- a/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js +++ b/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js @@ -1,4 +1,4 @@ -var c6=Object.defineProperty;var d6=(o,e,t)=>e in o?c6(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Zt=(o,e,t)=>(d6(o,typeof e!="symbol"?e+"":e,t),t);import{bV as me,d as h6,bW as u6,aC as g6,bC as f6,r as p6,O as D2,w as kb,P as x2,Q as m6,o as _6,c as b6,bP as v6}from"./index-f62f2ff2.js";globalThis&&globalThis.__awaiter;let C6=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function w6(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),C6&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function f(o,e,...t){return w6(e,t)}var ES;const mp="en";let Iv=!1,Ev=!1,U0=!1,d4=!1,mE=!1,_E=!1,h4=!1,Ib,$0=mp,S6,Zo;const di=typeof self=="object"?self:typeof global=="object"?global:{};let Rn;typeof di.vscode<"u"&&typeof di.vscode.process<"u"?Rn=di.vscode.process:typeof process<"u"&&(Rn=process);const y6=typeof((ES=Rn==null?void 0:Rn.versions)===null||ES===void 0?void 0:ES.electron)=="string",L6=y6&&(Rn==null?void 0:Rn.type)==="renderer";if(typeof navigator=="object"&&!L6)Zo=navigator.userAgent,Iv=Zo.indexOf("Windows")>=0,Ev=Zo.indexOf("Macintosh")>=0,_E=(Zo.indexOf("Macintosh")>=0||Zo.indexOf("iPad")>=0||Zo.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,U0=Zo.indexOf("Linux")>=0,h4=(Zo==null?void 0:Zo.indexOf("Mobi"))>=0,mE=!0,f({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Ib=mp,$0=Ib;else if(typeof Rn=="object"){Iv=Rn.platform==="win32",Ev=Rn.platform==="darwin",U0=Rn.platform==="linux",U0&&Rn.env.SNAP&&Rn.env.SNAP_REVISION,Rn.env.CI||Rn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ib=mp,$0=mp;const o=Rn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];Ib=e.locale,$0=t||mp,S6=e._translationsConfigFile}catch{}d4=!0}else console.error("Unable to resolve platform.");const Qi=Iv,Ke=Ev,hn=U0,ur=d4,Kc=mE,D6=mE&&typeof di.importScripts=="function",ga=_E,x6=h4,fa=Zo,k6=$0,I6=typeof di.postMessage=="function"&&!di.importScripts,u4=(()=>{if(I6){const o=[];di.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),di.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Ps=Ev||_E?2:Iv?1:3;let k2=!0,I2=!1;function g4(){if(!I2){I2=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,k2=new Uint16Array(o.buffer)[0]===512+1}return k2}const f4=!!(fa&&fa.indexOf("Chrome")>=0),E6=!!(fa&&fa.indexOf("Firefox")>=0),T6=!!(!f4&&fa&&fa.indexOf("Safari")>=0),N6=!!(fa&&fa.indexOf("Edg/")>=0);fa&&fa.indexOf("Android")>=0;var it;(function(o){function e(v){return v&&typeof v=="object"&&typeof v[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(v){yield v}o.single=n;function s(v){return e(v)?v:n(v)}o.wrap=s;function r(v){return v||t}o.from=r;function a(v){return!v||v[Symbol.iterator]().next().done===!0}o.isEmpty=a;function l(v){return v[Symbol.iterator]().next().value}o.first=l;function c(v,b){for(const C of v)if(b(C))return!0;return!1}o.some=c;function d(v,b){for(const C of v)if(b(C))return C}o.find=d;function*h(v,b){for(const C of v)b(C)&&(yield C)}o.filter=h;function*u(v,b){let C=0;for(const S of v)yield b(S,C++)}o.map=u;function*g(...v){for(const b of v)for(const C of b)yield C}o.concat=g;function p(v,b,C){let S=C;for(const x of v)S=b(S,x);return S}o.reduce=p;function*m(v,b,C=v.length){for(b<0&&(b+=v.length),C<0?C+=v.length:C>v.length&&(C=v.length);b{n||(n=!0,this._remove(i))}}shift(){if(this._first!==bi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==bi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==bi.Undefined&&e.next!==bi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===bi.Undefined&&e.next===bi.Undefined?(this._first=bi.Undefined,this._last=bi.Undefined):e.next===bi.Undefined?(this._last=this._last.prev,this._last.next=bi.Undefined):e.prev===bi.Undefined&&(this._first=this._first.next,this._first.prev=bi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==bi.Undefined;)yield e.element,e=e.next}}const p4="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function M6(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of p4)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const bE=M6();function m4(o){let e=bE;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const _4=new ln;_4.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function _m(o,e,t,i,n){if(n||(n=it.first(_4)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),_m(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=A6(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function A6(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}function Zs(o,e=0){return o[o.length-(1+e)]}function R6(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Bn(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function O6(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function b4(o,e){let t=0,i=o.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function T2(o){let e=0;for(let t=0;t0}function Dc(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function C4(o,e){const t=F6(o,e);if(t!==-1)return o[t]}function F6(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function w4(o,e){return o.length>0?o[0]:e}function Mn(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function L1(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function TS(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function Eb(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function N2(o,e){for(const t of e)o.push(t)}function vE(o){return Array.isArray(o)?o:[o]}function B6(o,e,t){const i=S4(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=t;function i(n){return n===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(jL||(jL={}));function Vp(o,e){return(t,i)=>e(o(t),o(i))}const W6=(o,e)=>o-e;function y4(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function V6(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function H6(o,e){return y4(o,(t,i)=>-e(t,i))}class Eg{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class aa{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new aa(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new aa(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||jL.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}aa.empty=new aa(o=>{});function Wn(o){return typeof o=="string"}function Xn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function z6(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function xc(o){return typeof o=="number"&&!isNaN(o)}function A2(o){return!!o&&typeof o[Symbol.iterator]=="function"}function L4(o){return o===!0||o===!1}function us(o){return typeof o>"u"}function U6(o){return!Ms(o)}function Ms(o){return us(o)||o===null}function _t(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Fu(o){if(Ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function Tv(o){return typeof o=="function"}function $6(o,e){const t=Math.min(o.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?qa(i):i}),e}function K6(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(D4.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!z6(n)&&e.push(n)}}return o}const D4=Object.prototype.hasOwnProperty;function x4(o,e){return KL(o,e,new Set)}function KL(o,e,t){if(Ms(o))return o;const i=e(o);if(typeof i<"u")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(KL(s,e,t));return n}if(Xn(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)D4.call(o,s)&&(n[s]=KL(o[s],e,t));return t.delete(o),n}return o}function B_(o,e,t=!0){return Xn(o)?(Xn(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Xn(o[i])&&Xn(e[i])?B_(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function so(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;tfunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}const _n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},Vl=8;class k4{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class I4{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Jt{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return D1(e,t)}compute(e,t,i){return i}}class Hp{constructor(e,t){this.newValue=e,this.didChange=t}}function D1(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new Hp(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&Bn(o,e);return new Hp(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=D1(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new Hp(o,t)}class _f{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return D1(e,t)}validate(e){return this.defaultValue}}class bf{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return D1(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function Le(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class ct extends bf{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return Le(e,this.defaultValue)}}function qL(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Lt extends bf{static clampedInt(e,t,i,n){return qL(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return Lt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Xr extends bf{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(Xr.float(e,this.defaultValue))}}class ds extends bf{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return ds.string(e,this.defaultValue)}}function Di(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class ai extends bf{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Di(e,this.defaultValue,this._allowedValues)}}class Tb extends Jt{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function Z6(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class Y6 extends Jt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[f("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),f("accessibilitySupport.on","Optimize for usage with a Screen Reader"),f("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:f("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class Q6 extends Jt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(20,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:f("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:f("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Le(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Le(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function X6(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Gi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Gi||(Gi={}));function J6(o){switch(o){case"line":return Gi.Line;case"block":return Gi.Block;case"underline":return Gi.Underline;case"line-thin":return Gi.LineThin;case"block-outline":return Gi.BlockOutline;case"underline-thin":return Gi.UnderlineThin}}class eW extends _f{constructor(){super(135)}compute(e,t,i){const n=["monaco-editor"];return t.get(36)&&n.push(t.get(36)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(70)==="default"?n.push("mouse-default"):t.get(70)==="copy"&&n.push("mouse-copy"),t.get(105)&&n.push("showUnused"),t.get(133)&&n.push("showDeprecated"),n.join(" ")}}class tW extends ct{constructor(){super(34,"emptySelectionClipboard",!0,{description:f("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class iW extends Jt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(38,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:f("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[f("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),f("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),f("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:f("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[f("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),f("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),f("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:f("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:f("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ke},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:f("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:f("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:Le(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Di(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Di(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Le(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Le(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Le(t.loop,this.defaultValue.loop)}}}class As extends Jt{constructor(){super(48,"fontLigatures",As.OFF,{anyOf:[{type:"boolean",description:f("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:f("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:f("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?As.OFF:e==="true"?As.ON:e:e?As.ON:As.OFF}}As.OFF='"liga" off, "calt" off';As.ON='"liga" on, "calt" on';class or extends Jt{constructor(){super(51,"fontVariations",or.OFF,{anyOf:[{type:"boolean",description:f("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:f("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:f("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?or.OFF:e==="true"?or.TRANSLATE:e:e?or.TRANSLATE:or.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}or.OFF="normal";or.TRANSLATE="translate";class nW extends _f{constructor(){super(47)}compute(e,t,i){return e.fontInfo}}class sW extends bf{constructor(){super(49,"fontSize",ps.fontSize,{type:"number",minimum:6,maximum:100,default:ps.fontSize,description:f("fontSize","Controls the font size in pixels.")})}validate(e){const t=Xr.float(e,this.defaultValue);return t===0?ps.fontSize:Xr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Ur extends Jt{constructor(){super(50,"fontWeight",ps.fontWeight,{anyOf:[{type:"number",minimum:Ur.MINIMUM_VALUE,maximum:Ur.MAXIMUM_VALUE,errorMessage:f("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ur.SUGGESTION_VALUES}],default:ps.fontWeight,description:f("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Lt.clampedInt(e,ps.fontWeight,Ur.MINIMUM_VALUE,Ur.MAXIMUM_VALUE))}}Ur.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Ur.MINIMUM_VALUE=1;Ur.MAXIMUM_VALUE=1e3;class oW extends Jt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[f("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),f("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),f("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(55,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:f("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:f("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:f("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:f("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:f("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:f("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:f("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:f("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:f("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Di(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Di(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Di(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Di(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Di(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Di(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:ds.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:ds.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:ds.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:ds.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:ds.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class rW extends Jt{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(57,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:f("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:f("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:f("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:f("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),delay:Lt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Le(t.sticky,this.defaultValue.sticky),above:Le(t.above,this.defaultValue.above)}}}class ag extends _f{constructor(){super(138)}compute(e,t,i){return ag.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,C=e.isViewportWrapping,S=h?2:3;let x=Math.floor(s*n);const E=x/s;let L=!1,D=!1,k=S*u,R=u/s,P=1;if(p==="fill"||p==="fit"){const{typicalViewportLineCount:je,extraLinesBeforeFirstLine:Ie,extraLinesBeyondLastLine:Qe,desiredRatio:Xe,minimapLineCount:fe}=ag.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(v/fe>1)L=!0,D=!0,u=1,k=1,R=u/s;else{let yt=!1,ws=u+1;if(p==="fit"){const zi=Math.ceil((Ie+v+Qe)*k);C&&a&&b<=t.stableFitRemainingWidth?(yt=!0,ws=t.stableFitMaxMinimapScale):yt=zi>x}if(p==="fill"||yt){L=!0;const zi=u;k=Math.min(l*s,Math.max(1,Math.floor(1/Xe))),C&&a&&b<=t.stableFitRemainingWidth&&(ws=t.stableFitMaxMinimapScale),u=Math.min(ws,Math.max(1,Math.floor(k/S))),u>zi&&(P=Math.min(2,u/zi)),R=u/s/P,x=Math.ceil(Math.max(je,Ie+v+Qe)*k),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const B=Math.floor(g*R),z=Math.min(B,Math.max(0,Math.floor((b-_-2)*R/(c+R)))+Vl);let ne=Math.floor(s*z);const ue=ne/s;ne=Math.floor(ne*P);const ye=h?1:2,Fe=m==="left"?0:i-z-_;return{renderMinimap:ye,minimapLeft:Fe,minimapWidth:z,minimapHeightIsEditorHeight:L,minimapIsSampling:D,minimapScale:u,minimapLineHeight:k,minimapCanvasInnerWidth:ne,minimapCanvasInnerHeight:x,minimapCanvasOuterWidth:ue,minimapCanvasOuterHeight:E}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(130),u=h==="inherit"?e.get(129):h,g=u==="inherit"?e.get(125):u,p=e.get(128),m=t.isDominatedByLongLines,_=e.get(54),v=e.get(64).renderType!==0,b=e.get(65),C=e.get(99),S=e.get(80),x=e.get(69),E=e.get(97),L=E.verticalScrollbarSize,D=E.verticalHasArrows,k=E.arrowSize,R=E.horizontalScrollbarSize,P=e.get(40),B=e.get(104)!=="never";let z=e.get(62);P&&B&&(z+=16);let ne=0;if(v){const El=Math.max(r,b);ne=Math.round(El*l)}let ue=0;_&&(ue=s);let ye=0,Fe=ye+ue,je=Fe+ne,Ie=je+z;const Qe=i-ue-ne-z;let Xe=!1,fe=!1,Se=-1;u==="inherit"&&m?(Xe=!0,fe=!0):g==="on"||g==="bounded"?fe=!0:g==="wordWrapColumn"&&(Se=p);const yt=ag._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:C,paddingTop:S.top,paddingBottom:S.bottom,minimap:x,verticalScrollbarWidth:L,viewLineCount:d,remainingWidth:Qe,isViewportWrapping:fe},t.memory||new I4);yt.renderMinimap!==0&&yt.minimapLeft===0&&(ye+=yt.minimapWidth,Fe+=yt.minimapWidth,je+=yt.minimapWidth,Ie+=yt.minimapWidth);const ws=Qe-yt.minimapWidth,zi=Math.max(1,Math.floor((ws-L-2)/a)),Ko=D?k:0;return fe&&(Se=Math.max(1,zi),g==="bounded"&&(Se=Math.min(Se,p))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:ue,lineNumbersLeft:Fe,lineNumbersWidth:ne,decorationsLeft:je,decorationsWidth:z,contentLeft:Ie,contentWidth:ws,minimap:yt,viewportColumn:zi,isWordWrapMinified:Xe,isViewportWrapping:fe,wrappingColumn:Se,verticalScrollbarWidth:L,horizontalScrollbarHeight:R,overviewRuler:{top:Ko,width:L,height:n-2*Ko,right:0}}}}class aW extends Jt{constructor(){super(132,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[f("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),f("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:f("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Di(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}class lW extends Jt{constructor(){const e={enabled:!0};super(61,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:f("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Le(e.enabled,this.defaultValue.enabled)}}}class cW extends Jt{constructor(){const e={enabled:!1,maxLineCount:5};super(109,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:f("editor.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:f("editor.stickyScroll.","Defines the maximum number of sticky lines to show.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),maxLineCount:Lt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10)}}}class dW extends Jt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(134,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:f("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[f("editor.inlayHints.on","Inlay hints are enabled"),f("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),f("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),f("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:f("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:f("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:f("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Di(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Lt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:ds.string(t.fontFamily,this.defaultValue.fontFamily),padding:Le(t.padding,this.defaultValue.padding)}}}class hW extends Jt{constructor(){super(62,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Lt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?Lt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class uW extends Xr{constructor(){super(63,"lineHeight",ps.lineHeight,e=>Xr.clamp(e,0,150),{markdownDescription:f("lineHeight",`Controls the line height. +var c6=Object.defineProperty;var d6=(o,e,t)=>e in o?c6(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Zt=(o,e,t)=>(d6(o,typeof e!="symbol"?e+"":e,t),t);import{bV as me,d as h6,bW as u6,aC as g6,bC as f6,r as p6,O as D2,w as kb,P as x2,Q as m6,o as _6,c as b6,bP as v6}from"./index-0c42270c.js";globalThis&&globalThis.__awaiter;let C6=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function w6(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),C6&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function f(o,e,...t){return w6(e,t)}var ES;const mp="en";let Iv=!1,Ev=!1,U0=!1,d4=!1,mE=!1,_E=!1,h4=!1,Ib,$0=mp,S6,Zo;const di=typeof self=="object"?self:typeof global=="object"?global:{};let Rn;typeof di.vscode<"u"&&typeof di.vscode.process<"u"?Rn=di.vscode.process:typeof process<"u"&&(Rn=process);const y6=typeof((ES=Rn==null?void 0:Rn.versions)===null||ES===void 0?void 0:ES.electron)=="string",L6=y6&&(Rn==null?void 0:Rn.type)==="renderer";if(typeof navigator=="object"&&!L6)Zo=navigator.userAgent,Iv=Zo.indexOf("Windows")>=0,Ev=Zo.indexOf("Macintosh")>=0,_E=(Zo.indexOf("Macintosh")>=0||Zo.indexOf("iPad")>=0||Zo.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,U0=Zo.indexOf("Linux")>=0,h4=(Zo==null?void 0:Zo.indexOf("Mobi"))>=0,mE=!0,f({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Ib=mp,$0=Ib;else if(typeof Rn=="object"){Iv=Rn.platform==="win32",Ev=Rn.platform==="darwin",U0=Rn.platform==="linux",U0&&Rn.env.SNAP&&Rn.env.SNAP_REVISION,Rn.env.CI||Rn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ib=mp,$0=mp;const o=Rn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];Ib=e.locale,$0=t||mp,S6=e._translationsConfigFile}catch{}d4=!0}else console.error("Unable to resolve platform.");const Qi=Iv,Ke=Ev,hn=U0,ur=d4,Kc=mE,D6=mE&&typeof di.importScripts=="function",ga=_E,x6=h4,fa=Zo,k6=$0,I6=typeof di.postMessage=="function"&&!di.importScripts,u4=(()=>{if(I6){const o=[];di.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),di.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Ps=Ev||_E?2:Iv?1:3;let k2=!0,I2=!1;function g4(){if(!I2){I2=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,k2=new Uint16Array(o.buffer)[0]===512+1}return k2}const f4=!!(fa&&fa.indexOf("Chrome")>=0),E6=!!(fa&&fa.indexOf("Firefox")>=0),T6=!!(!f4&&fa&&fa.indexOf("Safari")>=0),N6=!!(fa&&fa.indexOf("Edg/")>=0);fa&&fa.indexOf("Android")>=0;var it;(function(o){function e(v){return v&&typeof v=="object"&&typeof v[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(v){yield v}o.single=n;function s(v){return e(v)?v:n(v)}o.wrap=s;function r(v){return v||t}o.from=r;function a(v){return!v||v[Symbol.iterator]().next().done===!0}o.isEmpty=a;function l(v){return v[Symbol.iterator]().next().value}o.first=l;function c(v,b){for(const C of v)if(b(C))return!0;return!1}o.some=c;function d(v,b){for(const C of v)if(b(C))return C}o.find=d;function*h(v,b){for(const C of v)b(C)&&(yield C)}o.filter=h;function*u(v,b){let C=0;for(const S of v)yield b(S,C++)}o.map=u;function*g(...v){for(const b of v)for(const C of b)yield C}o.concat=g;function p(v,b,C){let S=C;for(const x of v)S=b(S,x);return S}o.reduce=p;function*m(v,b,C=v.length){for(b<0&&(b+=v.length),C<0?C+=v.length:C>v.length&&(C=v.length);b{n||(n=!0,this._remove(i))}}shift(){if(this._first!==bi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==bi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==bi.Undefined&&e.next!==bi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===bi.Undefined&&e.next===bi.Undefined?(this._first=bi.Undefined,this._last=bi.Undefined):e.next===bi.Undefined?(this._last=this._last.prev,this._last.next=bi.Undefined):e.prev===bi.Undefined&&(this._first=this._first.next,this._first.prev=bi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==bi.Undefined;)yield e.element,e=e.next}}const p4="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function M6(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of p4)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const bE=M6();function m4(o){let e=bE;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const _4=new ln;_4.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function _m(o,e,t,i,n){if(n||(n=it.first(_4)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),_m(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=A6(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function A6(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}function Zs(o,e=0){return o[o.length-(1+e)]}function R6(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Bn(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function O6(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function b4(o,e){let t=0,i=o.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function T2(o){let e=0;for(let t=0;t0}function Dc(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function C4(o,e){const t=F6(o,e);if(t!==-1)return o[t]}function F6(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function w4(o,e){return o.length>0?o[0]:e}function Mn(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function L1(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function TS(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function Eb(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function N2(o,e){for(const t of e)o.push(t)}function vE(o){return Array.isArray(o)?o:[o]}function B6(o,e,t){const i=S4(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=t;function i(n){return n===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(jL||(jL={}));function Vp(o,e){return(t,i)=>e(o(t),o(i))}const W6=(o,e)=>o-e;function y4(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function V6(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function H6(o,e){return y4(o,(t,i)=>-e(t,i))}class Eg{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class aa{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new aa(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new aa(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||jL.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}aa.empty=new aa(o=>{});function Wn(o){return typeof o=="string"}function Xn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function z6(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function xc(o){return typeof o=="number"&&!isNaN(o)}function A2(o){return!!o&&typeof o[Symbol.iterator]=="function"}function L4(o){return o===!0||o===!1}function us(o){return typeof o>"u"}function U6(o){return!Ms(o)}function Ms(o){return us(o)||o===null}function _t(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Fu(o){if(Ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function Tv(o){return typeof o=="function"}function $6(o,e){const t=Math.min(o.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?qa(i):i}),e}function K6(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(D4.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!z6(n)&&e.push(n)}}return o}const D4=Object.prototype.hasOwnProperty;function x4(o,e){return KL(o,e,new Set)}function KL(o,e,t){if(Ms(o))return o;const i=e(o);if(typeof i<"u")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(KL(s,e,t));return n}if(Xn(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)D4.call(o,s)&&(n[s]=KL(o[s],e,t));return t.delete(o),n}return o}function B_(o,e,t=!0){return Xn(o)?(Xn(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Xn(o[i])&&Xn(e[i])?B_(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function so(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;tfunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}const _n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},Vl=8;class k4{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class I4{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Jt{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return D1(e,t)}compute(e,t,i){return i}}class Hp{constructor(e,t){this.newValue=e,this.didChange=t}}function D1(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new Hp(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&Bn(o,e);return new Hp(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=D1(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new Hp(o,t)}class _f{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return D1(e,t)}validate(e){return this.defaultValue}}class bf{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return D1(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function Le(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class ct extends bf{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return Le(e,this.defaultValue)}}function qL(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Lt extends bf{static clampedInt(e,t,i,n){return qL(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return Lt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Xr extends bf{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(Xr.float(e,this.defaultValue))}}class ds extends bf{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return ds.string(e,this.defaultValue)}}function Di(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class ai extends bf{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Di(e,this.defaultValue,this._allowedValues)}}class Tb extends Jt{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function Z6(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class Y6 extends Jt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[f("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),f("accessibilitySupport.on","Optimize for usage with a Screen Reader"),f("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:f("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class Q6 extends Jt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(20,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:f("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:f("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Le(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Le(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function X6(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Gi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Gi||(Gi={}));function J6(o){switch(o){case"line":return Gi.Line;case"block":return Gi.Block;case"underline":return Gi.Underline;case"line-thin":return Gi.LineThin;case"block-outline":return Gi.BlockOutline;case"underline-thin":return Gi.UnderlineThin}}class eW extends _f{constructor(){super(135)}compute(e,t,i){const n=["monaco-editor"];return t.get(36)&&n.push(t.get(36)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(70)==="default"?n.push("mouse-default"):t.get(70)==="copy"&&n.push("mouse-copy"),t.get(105)&&n.push("showUnused"),t.get(133)&&n.push("showDeprecated"),n.join(" ")}}class tW extends ct{constructor(){super(34,"emptySelectionClipboard",!0,{description:f("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class iW extends Jt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(38,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:f("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[f("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),f("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),f("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:f("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[f("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),f("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),f("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:f("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:f("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ke},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:f("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:f("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:Le(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Di(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Di(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Le(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Le(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Le(t.loop,this.defaultValue.loop)}}}class As extends Jt{constructor(){super(48,"fontLigatures",As.OFF,{anyOf:[{type:"boolean",description:f("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:f("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:f("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?As.OFF:e==="true"?As.ON:e:e?As.ON:As.OFF}}As.OFF='"liga" off, "calt" off';As.ON='"liga" on, "calt" on';class or extends Jt{constructor(){super(51,"fontVariations",or.OFF,{anyOf:[{type:"boolean",description:f("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:f("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:f("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?or.OFF:e==="true"?or.TRANSLATE:e:e?or.TRANSLATE:or.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}or.OFF="normal";or.TRANSLATE="translate";class nW extends _f{constructor(){super(47)}compute(e,t,i){return e.fontInfo}}class sW extends bf{constructor(){super(49,"fontSize",ps.fontSize,{type:"number",minimum:6,maximum:100,default:ps.fontSize,description:f("fontSize","Controls the font size in pixels.")})}validate(e){const t=Xr.float(e,this.defaultValue);return t===0?ps.fontSize:Xr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Ur extends Jt{constructor(){super(50,"fontWeight",ps.fontWeight,{anyOf:[{type:"number",minimum:Ur.MINIMUM_VALUE,maximum:Ur.MAXIMUM_VALUE,errorMessage:f("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ur.SUGGESTION_VALUES}],default:ps.fontWeight,description:f("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Lt.clampedInt(e,ps.fontWeight,Ur.MINIMUM_VALUE,Ur.MAXIMUM_VALUE))}}Ur.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Ur.MINIMUM_VALUE=1;Ur.MAXIMUM_VALUE=1e3;class oW extends Jt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[f("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),f("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),f("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(55,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:f("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:f("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:f("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:f("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:f("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:f("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:f("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:f("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:f("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Di(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Di(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Di(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Di(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Di(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Di(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:ds.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:ds.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:ds.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:ds.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:ds.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class rW extends Jt{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(57,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:f("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:f("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:f("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:f("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),delay:Lt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Le(t.sticky,this.defaultValue.sticky),above:Le(t.above,this.defaultValue.above)}}}class ag extends _f{constructor(){super(138)}compute(e,t,i){return ag.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,C=e.isViewportWrapping,S=h?2:3;let x=Math.floor(s*n);const E=x/s;let L=!1,D=!1,k=S*u,R=u/s,P=1;if(p==="fill"||p==="fit"){const{typicalViewportLineCount:je,extraLinesBeforeFirstLine:Ie,extraLinesBeyondLastLine:Qe,desiredRatio:Xe,minimapLineCount:fe}=ag.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(v/fe>1)L=!0,D=!0,u=1,k=1,R=u/s;else{let yt=!1,ws=u+1;if(p==="fit"){const zi=Math.ceil((Ie+v+Qe)*k);C&&a&&b<=t.stableFitRemainingWidth?(yt=!0,ws=t.stableFitMaxMinimapScale):yt=zi>x}if(p==="fill"||yt){L=!0;const zi=u;k=Math.min(l*s,Math.max(1,Math.floor(1/Xe))),C&&a&&b<=t.stableFitRemainingWidth&&(ws=t.stableFitMaxMinimapScale),u=Math.min(ws,Math.max(1,Math.floor(k/S))),u>zi&&(P=Math.min(2,u/zi)),R=u/s/P,x=Math.ceil(Math.max(je,Ie+v+Qe)*k),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const B=Math.floor(g*R),z=Math.min(B,Math.max(0,Math.floor((b-_-2)*R/(c+R)))+Vl);let ne=Math.floor(s*z);const ue=ne/s;ne=Math.floor(ne*P);const ye=h?1:2,Fe=m==="left"?0:i-z-_;return{renderMinimap:ye,minimapLeft:Fe,minimapWidth:z,minimapHeightIsEditorHeight:L,minimapIsSampling:D,minimapScale:u,minimapLineHeight:k,minimapCanvasInnerWidth:ne,minimapCanvasInnerHeight:x,minimapCanvasOuterWidth:ue,minimapCanvasOuterHeight:E}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(130),u=h==="inherit"?e.get(129):h,g=u==="inherit"?e.get(125):u,p=e.get(128),m=t.isDominatedByLongLines,_=e.get(54),v=e.get(64).renderType!==0,b=e.get(65),C=e.get(99),S=e.get(80),x=e.get(69),E=e.get(97),L=E.verticalScrollbarSize,D=E.verticalHasArrows,k=E.arrowSize,R=E.horizontalScrollbarSize,P=e.get(40),B=e.get(104)!=="never";let z=e.get(62);P&&B&&(z+=16);let ne=0;if(v){const El=Math.max(r,b);ne=Math.round(El*l)}let ue=0;_&&(ue=s);let ye=0,Fe=ye+ue,je=Fe+ne,Ie=je+z;const Qe=i-ue-ne-z;let Xe=!1,fe=!1,Se=-1;u==="inherit"&&m?(Xe=!0,fe=!0):g==="on"||g==="bounded"?fe=!0:g==="wordWrapColumn"&&(Se=p);const yt=ag._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:C,paddingTop:S.top,paddingBottom:S.bottom,minimap:x,verticalScrollbarWidth:L,viewLineCount:d,remainingWidth:Qe,isViewportWrapping:fe},t.memory||new I4);yt.renderMinimap!==0&&yt.minimapLeft===0&&(ye+=yt.minimapWidth,Fe+=yt.minimapWidth,je+=yt.minimapWidth,Ie+=yt.minimapWidth);const ws=Qe-yt.minimapWidth,zi=Math.max(1,Math.floor((ws-L-2)/a)),Ko=D?k:0;return fe&&(Se=Math.max(1,zi),g==="bounded"&&(Se=Math.min(Se,p))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:ue,lineNumbersLeft:Fe,lineNumbersWidth:ne,decorationsLeft:je,decorationsWidth:z,contentLeft:Ie,contentWidth:ws,minimap:yt,viewportColumn:zi,isWordWrapMinified:Xe,isViewportWrapping:fe,wrappingColumn:Se,verticalScrollbarWidth:L,horizontalScrollbarHeight:R,overviewRuler:{top:Ko,width:L,height:n-2*Ko,right:0}}}}class aW extends Jt{constructor(){super(132,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[f("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),f("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:f("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Di(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}class lW extends Jt{constructor(){const e={enabled:!0};super(61,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:f("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Le(e.enabled,this.defaultValue.enabled)}}}class cW extends Jt{constructor(){const e={enabled:!1,maxLineCount:5};super(109,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:f("editor.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:f("editor.stickyScroll.","Defines the maximum number of sticky lines to show.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),maxLineCount:Lt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10)}}}class dW extends Jt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(134,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:f("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[f("editor.inlayHints.on","Inlay hints are enabled"),f("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),f("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),f("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:f("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:f("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:f("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Di(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Lt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:ds.string(t.fontFamily,this.defaultValue.fontFamily),padding:Le(t.padding,this.defaultValue.padding)}}}class hW extends Jt{constructor(){super(62,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Lt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?Lt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class uW extends Xr{constructor(){super(63,"lineHeight",ps.lineHeight,e=>Xr.clamp(e,0,150),{markdownDescription:f("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class gW extends Jt{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(69,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:f("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:f("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[f("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),f("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),f("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:f("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:f("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:f("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:f("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:f("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:f("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),autohide:Le(t.autohide,this.defaultValue.autohide),size:Di(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Di(t.side,this.defaultValue.side,["right","left"]),showSlider:Di(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Le(t.renderCharacters,this.defaultValue.renderCharacters),scale:Lt.clampedInt(t.scale,1,1,3),maxColumn:Lt.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function fW(o){return o==="ctrlCmd"?Ke?"metaKey":"ctrlKey":"altKey"}class pW extends Jt{constructor(){super(80,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:f("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:f("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Lt.clampedInt(t.top,0,0,1e3),bottom:Lt.clampedInt(t.bottom,0,0,1e3)}}}class mW extends Jt{constructor(){const e={enabled:!0,cycle:!0};super(81,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:f("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:f("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),cycle:Le(t.cycle,this.defaultValue.cycle)}}}class _W extends _f{constructor(){super(136)}compute(e,t,i){return e.pixelRatio}}class bW extends Jt{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[f("on","Quick suggestions show inside the suggest widget"),f("inline","Quick suggestions show as ghost text"),f("off","Quick suggestions are disabled")]}];super(84,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:f("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:f("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:f("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:f("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const c=e?"on":"off";return{comments:c,strings:c,other:c}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,s=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=Di(t,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=Di(i,this.defaultValue.comments,s),typeof n=="boolean"?l=n?"on":"off":l=Di(n,this.defaultValue.strings,s),{other:r,comments:a,strings:l}}}class vW extends Jt{constructor(){super(64,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[f("lineNumbers.off","Line numbers are not rendered."),f("lineNumbers.on","Line numbers are rendered as absolute number."),f("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),f("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:f("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function Nv(o){const e=o.get(92);return e==="editable"?o.get(86):e!=="on"}class CW extends Jt{constructor(){const e=[],t={type:"number",description:f("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(96,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:f("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:f("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:Lt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:Lt.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}function R2(o,e){if(typeof o!="string")return e;switch(o){case"hidden":return 2;case"visible":return 3;default:return 1}}let wW=class extends Jt{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(97,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),f("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),f("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:f("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),f("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),f("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:f("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:f("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:f("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:f("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=Lt.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=Lt.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Lt.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:R2(t.vertical,this.defaultValue.vertical),horizontal:R2(t.horizontal,this.defaultValue.horizontal),useShadows:Le(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:Le(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Le(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Le(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Le(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Lt.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:Lt.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:Le(t.scrollByPage,this.defaultValue.scrollByPage)}}};const xs="inUntrustedWorkspace",Zn={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class SW extends Jt{constructor(){const e={nonBasicASCII:xs,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:xs,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(119,"unicodeHighlight",e,{[Zn.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,xs],default:e.nonBasicASCII,description:f("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Zn.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:f("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Zn.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:f("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Zn.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,xs],default:e.includeComments,description:f("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[Zn.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,xs],default:e.includeStrings,description:f("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[Zn.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:f("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Zn.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:f("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(so(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&e&&(so(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),i=!0));const n=super.applyUpdate(e,t);return i?new Hp(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:lg(t.nonBasicASCII,xs,[!0,!1,xs]),invisibleCharacters:Le(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Le(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:lg(t.includeComments,xs,[!0,!1,xs]),includeStrings:lg(t.includeStrings,xs,[!0,!1,xs]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,s]of Object.entries(e))s===!0&&(i[n]=!0);return i}}class yW extends Jt{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover"};super(59,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:f("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover"],enumDescriptions:[f("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),f("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:f("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),mode:Di(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:Di(t.showToolbar,this.defaultValue.showToolbar,["always","onHover"])}}}class LW extends Jt{constructor(){const e={enabled:_n.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:_n.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:f("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:f("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:Le(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class DW extends Jt{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f("editor.guides.bracketPairs.true","Enables bracket pair guides."),f("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),f("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:f("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),f("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),f("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:f("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:f("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:f("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[f("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),f("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),f("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:f("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:lg(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:lg(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Le(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Le(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:lg(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function lg(o,e,t){const i=t.indexOf(o);return i===-1?e:t[i]}class xW extends Jt{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(112,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[f("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),f("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:f("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:f("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:f("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:f("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[f("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),f("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),f("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),f("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:f("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:f("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:f("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:f("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:f("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:f("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:f("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:f("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Di(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Le(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Le(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Le(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Le(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:Di(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:Le(t.showIcons,this.defaultValue.showIcons),showStatusBar:Le(t.showStatusBar,this.defaultValue.showStatusBar),preview:Le(t.preview,this.defaultValue.preview),previewMode:Di(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Le(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Le(t.showMethods,this.defaultValue.showMethods),showFunctions:Le(t.showFunctions,this.defaultValue.showFunctions),showConstructors:Le(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:Le(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:Le(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:Le(t.showFields,this.defaultValue.showFields),showVariables:Le(t.showVariables,this.defaultValue.showVariables),showClasses:Le(t.showClasses,this.defaultValue.showClasses),showStructs:Le(t.showStructs,this.defaultValue.showStructs),showInterfaces:Le(t.showInterfaces,this.defaultValue.showInterfaces),showModules:Le(t.showModules,this.defaultValue.showModules),showProperties:Le(t.showProperties,this.defaultValue.showProperties),showEvents:Le(t.showEvents,this.defaultValue.showEvents),showOperators:Le(t.showOperators,this.defaultValue.showOperators),showUnits:Le(t.showUnits,this.defaultValue.showUnits),showValues:Le(t.showValues,this.defaultValue.showValues),showConstants:Le(t.showConstants,this.defaultValue.showConstants),showEnums:Le(t.showEnums,this.defaultValue.showEnums),showEnumMembers:Le(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Le(t.showKeywords,this.defaultValue.showKeywords),showWords:Le(t.showWords,this.defaultValue.showWords),showColors:Le(t.showColors,this.defaultValue.showColors),showFiles:Le(t.showFiles,this.defaultValue.showFiles),showReferences:Le(t.showReferences,this.defaultValue.showReferences),showFolders:Le(t.showFolders,this.defaultValue.showFolders),showTypeParameters:Le(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Le(t.showSnippets,this.defaultValue.showSnippets),showUsers:Le(t.showUsers,this.defaultValue.showUsers),showIssues:Le(t.showIssues,this.defaultValue.showIssues)}}}class kW extends Jt{constructor(){super(107,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:f("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Le(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class IW extends _f{constructor(){super(137)}compute(e,t,i){return t.get(86)?!0:e.tabFocusMode}}class EW extends Jt{constructor(){super(131,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[f("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),f("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),f("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),f("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:f("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class TW extends _f{constructor(){super(139)}compute(e,t,i){const n=t.get(138);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class NW extends Jt{constructor(){const e={enabled:!0};super(33,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:f("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Le(e.enabled,this.defaultValue.enabled)}}}const MW="Consolas, 'Courier New', monospace",AW="Menlo, Monaco, 'Courier New', monospace",RW="'Droid Sans Mono', 'monospace', monospace",ps={fontFamily:Ke?AW:hn?RW:MW,fontWeight:"normal",fontSize:Ke?12:14,lineHeight:0,letterSpacing:0},Bu=[];function ee(o){return Bu[o.id]=o,o}const Dr={acceptSuggestionOnCommitCharacter:ee(new ct(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:f("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ee(new ai(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",f("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:f("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ee(new Y6),accessibilityPageSize:ee(new Lt(3,"accessibilityPageSize",10,1,1073741824,{description:f("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:ee(new ds(4,"ariaLabel",f("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:ee(new ai(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),f("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:f("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:ee(new ai(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",f("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:f("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ee(new ai(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",f("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:f("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ee(new ai(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),f("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:f("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ee(new Tb(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],Z6,{enumDescriptions:[f("editor.autoIndent.none","The editor will not insert indentation automatically."),f("editor.autoIndent.keep","The editor will keep the current line's indentation."),f("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),f("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),f("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:f("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ee(new ct(10,"automaticLayout",!1)),autoSurround:ee(new ai(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[f("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),f("editor.autoSurround.quotes","Surround with quotes but not brackets."),f("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:f("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ee(new LW),bracketPairGuides:ee(new DW),stickyTabStops:ee(new ct(110,"stickyTabStops",!1,{description:f("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ee(new ct(14,"codeLens",!0,{description:f("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ee(new ds(15,"codeLensFontFamily","",{description:f("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ee(new Lt(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:f("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ee(new ct(17,"colorDecorators",!0,{description:f("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorsLimit:ee(new Lt(18,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:f("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ee(new ct(19,"columnSelection",!1,{description:f("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ee(new Q6),contextmenu:ee(new ct(21,"contextmenu",!0)),copyWithSyntaxHighlighting:ee(new ct(22,"copyWithSyntaxHighlighting",!0,{description:f("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ee(new Tb(23,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],X6,{description:f("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ee(new ai(24,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[f("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),f("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),f("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:f("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ee(new Tb(25,"cursorStyle",Gi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],J6,{description:f("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ee(new Lt(26,"cursorSurroundingLines",0,0,1073741824,{description:f("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:ee(new ai(27,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[f("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),f("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:f("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ee(new Lt(28,"cursorWidth",0,0,1073741824,{markdownDescription:f("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ee(new ct(29,"disableLayerHinting",!1)),disableMonospaceOptimizations:ee(new ct(30,"disableMonospaceOptimizations",!1)),domReadOnly:ee(new ct(31,"domReadOnly",!1)),dragAndDrop:ee(new ct(32,"dragAndDrop",!0,{description:f("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ee(new tW),dropIntoEditor:ee(new NW),stickyScroll:ee(new cW),experimentalWhitespaceRendering:ee(new ai(35,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[f("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),f("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),f("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:f("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ee(new ds(36,"extraEditorClassName","")),fastScrollSensitivity:ee(new Xr(37,"fastScrollSensitivity",5,o=>o<=0?5:o,{markdownDescription:f("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ee(new iW),fixedOverflowWidgets:ee(new ct(39,"fixedOverflowWidgets",!1)),folding:ee(new ct(40,"folding",!0,{description:f("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ee(new ai(41,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[f("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),f("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:f("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ee(new ct(42,"foldingHighlight",!0,{description:f("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ee(new ct(43,"foldingImportsByDefault",!1,{description:f("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ee(new Lt(44,"foldingMaximumRegions",5e3,10,65e3,{description:f("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:ee(new ct(45,"unfoldOnClickAfterEndOfLine",!1,{description:f("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ee(new ds(46,"fontFamily",ps.fontFamily,{description:f("fontFamily","Controls the font family.")})),fontInfo:ee(new nW),fontLigatures2:ee(new As),fontSize:ee(new sW),fontWeight:ee(new Ur),fontVariations:ee(new or),formatOnPaste:ee(new ct(52,"formatOnPaste",!1,{description:f("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ee(new ct(53,"formatOnType",!1,{description:f("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ee(new ct(54,"glyphMargin",!0,{description:f("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ee(new oW),hideCursorInOverviewRuler:ee(new ct(56,"hideCursorInOverviewRuler",!1,{description:f("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ee(new rW),inDiffEditor:ee(new ct(58,"inDiffEditor",!1)),letterSpacing:ee(new Xr(60,"letterSpacing",ps.letterSpacing,o=>Xr.clamp(o,-5,20),{description:f("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ee(new lW),lineDecorationsWidth:ee(new hW),lineHeight:ee(new uW),lineNumbers:ee(new vW),lineNumbersMinChars:ee(new Lt(65,"lineNumbersMinChars",5,1,300)),linkedEditing:ee(new ct(66,"linkedEditing",!1,{description:f("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:ee(new ct(67,"links",!0,{description:f("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ee(new ai(68,"matchBrackets","always",["always","near","never"],{description:f("matchBrackets","Highlight matching brackets.")})),minimap:ee(new gW),mouseStyle:ee(new ai(70,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ee(new Xr(71,"mouseWheelScrollSensitivity",1,o=>o===0?1:o,{markdownDescription:f("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ee(new ct(72,"mouseWheelZoom",!1,{markdownDescription:f("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ee(new ct(73,"multiCursorMergeOverlapping",!0,{description:f("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ee(new Tb(74,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],fW,{markdownEnumDescriptions:[f("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),f("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:f({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ee(new ai(75,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[f("multiCursorPaste.spread","Each cursor pastes a single line of the text."),f("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:f("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ee(new Lt(76,"multiCursorLimit",1e4,1,1e5,{markdownDescription:f("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ee(new ct(77,"occurrencesHighlight",!0,{description:f("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ee(new ct(78,"overviewRulerBorder",!0,{description:f("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ee(new Lt(79,"overviewRulerLanes",3,0,3)),padding:ee(new pW),parameterHints:ee(new mW),peekWidgetDefaultFocus:ee(new ai(82,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[f("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),f("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:f("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ee(new ct(83,"definitionLinkOpensInPeek",!1,{description:f("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ee(new bW),quickSuggestionsDelay:ee(new Lt(85,"quickSuggestionsDelay",10,0,1073741824,{description:f("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ee(new ct(86,"readOnly",!1)),renameOnType:ee(new ct(87,"renameOnType",!1,{description:f("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:f("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ee(new ct(88,"renderControlCharacters",!0,{description:f("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ee(new ai(89,"renderFinalNewline",hn?"dimmed":"on",["off","on","dimmed"],{description:f("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ee(new ai(90,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",f("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:f("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ee(new ct(91,"renderLineHighlightOnlyWhenFocus",!1,{description:f("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ee(new ai(92,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ee(new ai(93,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",f("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),f("renderWhitespace.selection","Render whitespace characters only on selected text."),f("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:f("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ee(new Lt(94,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ee(new ct(95,"roundedSelection",!0,{description:f("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ee(new CW),scrollbar:ee(new wW),scrollBeyondLastColumn:ee(new Lt(98,"scrollBeyondLastColumn",4,0,1073741824,{description:f("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ee(new ct(99,"scrollBeyondLastLine",!0,{description:f("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ee(new ct(100,"scrollPredominantAxis",!0,{description:f("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ee(new ct(101,"selectionClipboard",!0,{description:f("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:hn})),selectionHighlight:ee(new ct(102,"selectionHighlight",!0,{description:f("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ee(new ct(103,"selectOnLineNumbers",!0)),showFoldingControls:ee(new ai(104,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[f("showFoldingControls.always","Always show the folding controls."),f("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),f("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:f("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ee(new ct(105,"showUnused",!0,{description:f("showUnused","Controls fading out of unused code.")})),showDeprecated:ee(new ct(133,"showDeprecated",!0,{description:f("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ee(new dW),snippetSuggestions:ee(new ai(106,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[f("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),f("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),f("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),f("snippetSuggestions.none","Do not show snippet suggestions.")],description:f("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ee(new kW),smoothScrolling:ee(new ct(108,"smoothScrolling",!1,{description:f("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ee(new Lt(111,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ee(new xW),inlineSuggest:ee(new yW),suggestFontSize:ee(new Lt(113,"suggestFontSize",0,0,1e3,{markdownDescription:f("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ee(new Lt(114,"suggestLineHeight",0,0,1e3,{markdownDescription:f("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:ee(new ct(115,"suggestOnTriggerCharacters",!0,{description:f("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ee(new ai(116,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[f("suggestSelection.first","Always select the first suggestion."),f("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),f("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:f("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ee(new ai(117,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[f("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),f("tabCompletion.off","Disable tab completions."),f("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:f("tabCompletion","Enables tab completions.")})),tabIndex:ee(new Lt(118,"tabIndex",0,-1,1073741824)),unicodeHighlight:ee(new SW),unusualLineTerminators:ee(new ai(120,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[f("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),f("unusualLineTerminators.off","Unusual line terminators are ignored."),f("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:f("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ee(new ct(121,"useShadowDOM",!0)),useTabStops:ee(new ct(122,"useTabStops",!0,{description:f("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:ee(new ai(123,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[f("wordBreak.normal","Use the default line break rule."),f("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:f("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:ee(new ds(124,"wordSeparators",p4,{description:f("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ee(new ai(125,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[f("wordWrap.off","Lines will never wrap."),f("wordWrap.on","Lines will wrap at the viewport width."),f({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),f({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:f({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ee(new ds(126,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ee(new ds(127,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ee(new Lt(128,"wordWrapColumn",80,1,1073741824,{markdownDescription:f({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:ee(new ai(129,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ee(new ai(130,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:ee(new eW),pixelRatio:ee(new _W),tabFocusMode:ee(new IW),layoutInfo:ee(new ag),wrappingInfo:ee(new TW),wrappingIndent:ee(new EW),wrappingStrategy:ee(new aW)};class PW{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Tg.isErrorNoTelemetry(e)?new Tg(e.message+` @@ -634,27 +634,27 @@ ${e.toString()}`}}class XC{constructor(e=new gw,t=!1,i,n=Wie){var s;this._servic * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt -*-----------------------------------------------------------------------------*/var Mse=Object.defineProperty,Ase=Object.getOwnPropertyDescriptor,Rse=Object.getOwnPropertyNames,Pse=Object.prototype.hasOwnProperty,MP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Rse(e))!Pse.call(o,n)&&n!==t&&Mse(o,n,{get:()=>e[n],enumerable:!(i=Ase(e,n))||i.enumerable});return o},Ose=(o,e,t)=>(MP(o,e,"default"),t&&MP(t,e,"default")),Pp={};Ose(Pp,lb);var c8={},iL={},d8=class{constructor(o){Zt(this,"_languageId");Zt(this,"_loadingTriggered");Zt(this,"_lazyLoadPromise");Zt(this,"_lazyLoadPromiseResolve");Zt(this,"_lazyLoadPromiseReject");this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(o){return iL[o]||(iL[o]=new d8(o)),iL[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,c8[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function be(o){const e=o.id;c8[e]=o,Pp.languages.register(o);const t=d8.getOrCreate(e);Pp.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Pp.languages.onLanguage(e,async()=>{const i=await t.load();Pp.languages.setLanguageConfiguration(e,i.conf)})}be({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>me(()=>import("./abap-5fd096f7.js"),[])});be({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>me(()=>import("./apex-0b2071d4.js"),[])});be({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>me(()=>import("./azcli-190356b5.js"),[])});be({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>me(()=>import("./bat-8a29f90f.js"),[])});be({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>me(()=>import("./bicep-2030a195.js"),[])});be({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>me(()=>import("./cameligo-e329b2f4.js"),[])});be({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>me(()=>import("./clojure-bbb8ba32.js"),[])});be({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>me(()=>import("./coffee-acac9422.js"),[])});be({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>me(()=>import("./cpp-9d6a58b0.js"),[])});be({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>me(()=>import("./cpp-9d6a58b0.js"),[])});be({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>me(()=>import("./csharp-91d9f9d8.js"),[])});be({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>me(()=>import("./csp-763000e4.js"),[])});be({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>me(()=>import("./css-d9a05d7d.js"),[])});be({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>me(()=>import("./cypher-cba4566f.js"),[])});be({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>me(()=>import("./dart-30a82b35.js"),[])});be({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>me(()=>import("./dockerfile-2a29d833.js"),[])});be({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>me(()=>import("./ecl-c14b226e.js"),[])});be({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>me(()=>import("./elixir-4a1aad71.js"),[])});be({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>me(()=>import("./flow9-38712bd3.js"),[])});be({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>me(()=>import("./fsharp-71c17f08.js"),[])});be({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>me(()=>import("./freemarker2-10ca9925.js"),["assets/freemarker2-10ca9925.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"]).then(o=>o.TagAutoInterpolationDollar)});be({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>me(()=>import("./freemarker2-10ca9925.js"),["assets/freemarker2-10ca9925.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"]).then(o=>o.TagAngleInterpolationDollar)});be({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>me(()=>import("./freemarker2-10ca9925.js"),["assets/freemarker2-10ca9925.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"]).then(o=>o.TagBracketInterpolationDollar)});be({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>me(()=>import("./freemarker2-10ca9925.js"),["assets/freemarker2-10ca9925.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"]).then(o=>o.TagAngleInterpolationBracket)});be({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>me(()=>import("./freemarker2-10ca9925.js"),["assets/freemarker2-10ca9925.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"]).then(o=>o.TagBracketInterpolationBracket)});be({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>me(()=>import("./freemarker2-10ca9925.js"),["assets/freemarker2-10ca9925.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"]).then(o=>o.TagAutoInterpolationDollar)});be({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>me(()=>import("./freemarker2-10ca9925.js"),["assets/freemarker2-10ca9925.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"]).then(o=>o.TagAutoInterpolationBracket)});be({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>me(()=>import("./go-81a01631.js"),[])});be({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>me(()=>import("./graphql-4b2f9989.js"),[])});be({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>me(()=>import("./handlebars-2b61f8e8.js"),["assets/handlebars-2b61f8e8.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"])});be({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>me(()=>import("./hcl-f5583a08.js"),[])});be({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>me(()=>import("./html-e129a820.js"),["assets/html-e129a820.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"])});be({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>me(()=>import("./ini-93327bda.js"),[])});be({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>me(()=>import("./java-594fa86f.js"),[])});be({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>me(()=>import("./javascript-36de10d3.js"),["assets/javascript-36de10d3.js","assets/typescript-7530e583.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"])});be({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>me(()=>import("./julia-0007448b.js"),[])});be({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>me(()=>import("./kotlin-d96111b8.js"),[])});be({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>me(()=>import("./less-35bca26e.js"),[])});be({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>me(()=>import("./lexon-9e065f08.js"),[])});be({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>me(()=>import("./lua-f5c339e1.js"),[])});be({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>me(()=>import("./liquid-822eb382.js"),["assets/liquid-822eb382.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"])});be({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>me(()=>import("./m3-f481ba01.js"),[])});be({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>me(()=>import("./markdown-9daa6125.js"),[])});be({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>me(()=>import("./mips-9083c690.js"),[])});be({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>me(()=>import("./msdax-407492d3.js"),[])});be({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>me(()=>import("./mysql-58db6cae.js"),[])});be({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>me(()=>import("./objective-c-af4e0f63.js"),[])});be({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>me(()=>import("./pascal-63b284c9.js"),[])});be({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>me(()=>import("./pascaligo-2b3d65f2.js"),[])});be({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>me(()=>import("./perl-b4e06d57.js"),[])});be({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>me(()=>import("./pgsql-7382e5ae.js"),[])});be({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>me(()=>import("./php-135114d3.js"),[])});be({id:"pla",extensions:[".pla"],loader:()=>me(()=>import("./pla-745ec9ce.js"),[])});be({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>me(()=>import("./postiats-a3fe4f4c.js"),[])});be({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>me(()=>import("./powerquery-47747fc0.js"),[])});be({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>me(()=>import("./powershell-ff3577bc.js"),[])});be({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>me(()=>import("./protobuf-6deb4a02.js"),[])});be({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>me(()=>import("./pug-2dd33d7b.js"),[])});be({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>me(()=>import("./python-ec4c56f8.js"),["assets/python-ec4c56f8.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"])});be({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>me(()=>import("./qsharp-52d3483a.js"),[])});be({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>me(()=>import("./r-419d1932.js"),[])});be({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>me(()=>import("./razor-661cced5.js"),["assets/razor-661cced5.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"])});be({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>me(()=>import("./redis-48ffdd95.js"),[])});be({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>me(()=>import("./redshift-6f3b6438.js"),[])});be({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>me(()=>import("./restructuredtext-2b6de06c.js"),[])});be({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>me(()=>import("./ruby-3203ad6f.js"),[])});be({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>me(()=>import("./rust-db058ad8.js"),[])});be({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>me(()=>import("./sb-2e6261d9.js"),[])});be({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>me(()=>import("./scala-9479f128.js"),[])});be({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>me(()=>import("./scheme-eff94c99.js"),[])});be({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>me(()=>import("./scss-47fd4d15.js"),[])});be({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>me(()=>import("./shell-6ce95083.js"),[])});be({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>me(()=>import("./solidity-05bce190.js"),[])});be({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>me(()=>import("./sophia-0df3b455.js"),[])});be({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>me(()=>import("./sparql-82e631b6.js"),[])});be({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>me(()=>import("./sql-ba093187.js"),[])});be({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>me(()=>import("./st-791b0ff5.js"),[])});be({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>me(()=>import("./swift-4e23775b.js"),[])});be({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>me(()=>import("./systemverilog-ad58bd79.js"),[])});be({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>me(()=>import("./systemverilog-ad58bd79.js"),[])});be({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>me(()=>import("./tcl-ef3a1af5.js"),[])});be({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>me(()=>import("./twig-a6c466d1.js"),[])});be({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>me(()=>import("./typescript-7530e583.js"),["assets/typescript-7530e583.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"])});be({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>me(()=>import("./vb-dc8b6e66.js"),[])});be({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\me(()=>import("./xml-96a70602.js"),["assets/xml-96a70602.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"])});be({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>me(()=>import("./yaml-3cdfc2dc.js"),["assets/yaml-3cdfc2dc.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"])});/*!----------------------------------------------------------------------------- +*-----------------------------------------------------------------------------*/var Mse=Object.defineProperty,Ase=Object.getOwnPropertyDescriptor,Rse=Object.getOwnPropertyNames,Pse=Object.prototype.hasOwnProperty,MP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Rse(e))!Pse.call(o,n)&&n!==t&&Mse(o,n,{get:()=>e[n],enumerable:!(i=Ase(e,n))||i.enumerable});return o},Ose=(o,e,t)=>(MP(o,e,"default"),t&&MP(t,e,"default")),Pp={};Ose(Pp,lb);var c8={},iL={},d8=class{constructor(o){Zt(this,"_languageId");Zt(this,"_loadingTriggered");Zt(this,"_lazyLoadPromise");Zt(this,"_lazyLoadPromiseResolve");Zt(this,"_lazyLoadPromiseReject");this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(o){return iL[o]||(iL[o]=new d8(o)),iL[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,c8[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function be(o){const e=o.id;c8[e]=o,Pp.languages.register(o);const t=d8.getOrCreate(e);Pp.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Pp.languages.onLanguage(e,async()=>{const i=await t.load();Pp.languages.setLanguageConfiguration(e,i.conf)})}be({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>me(()=>import("./abap-5fd096f7.js"),[])});be({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>me(()=>import("./apex-0b2071d4.js"),[])});be({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>me(()=>import("./azcli-190356b5.js"),[])});be({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>me(()=>import("./bat-8a29f90f.js"),[])});be({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>me(()=>import("./bicep-2030a195.js"),[])});be({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>me(()=>import("./cameligo-e329b2f4.js"),[])});be({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>me(()=>import("./clojure-bbb8ba32.js"),[])});be({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>me(()=>import("./coffee-acac9422.js"),[])});be({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>me(()=>import("./cpp-9d6a58b0.js"),[])});be({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>me(()=>import("./cpp-9d6a58b0.js"),[])});be({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>me(()=>import("./csharp-91d9f9d8.js"),[])});be({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>me(()=>import("./csp-763000e4.js"),[])});be({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>me(()=>import("./css-d9a05d7d.js"),[])});be({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>me(()=>import("./cypher-cba4566f.js"),[])});be({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>me(()=>import("./dart-30a82b35.js"),[])});be({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>me(()=>import("./dockerfile-2a29d833.js"),[])});be({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>me(()=>import("./ecl-c14b226e.js"),[])});be({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>me(()=>import("./elixir-4a1aad71.js"),[])});be({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>me(()=>import("./flow9-38712bd3.js"),[])});be({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>me(()=>import("./fsharp-71c17f08.js"),[])});be({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>me(()=>import("./freemarker2-fbaddb6e.js"),["assets/freemarker2-fbaddb6e.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"]).then(o=>o.TagAutoInterpolationDollar)});be({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>me(()=>import("./freemarker2-fbaddb6e.js"),["assets/freemarker2-fbaddb6e.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"]).then(o=>o.TagAngleInterpolationDollar)});be({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>me(()=>import("./freemarker2-fbaddb6e.js"),["assets/freemarker2-fbaddb6e.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"]).then(o=>o.TagBracketInterpolationDollar)});be({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>me(()=>import("./freemarker2-fbaddb6e.js"),["assets/freemarker2-fbaddb6e.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"]).then(o=>o.TagAngleInterpolationBracket)});be({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>me(()=>import("./freemarker2-fbaddb6e.js"),["assets/freemarker2-fbaddb6e.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"]).then(o=>o.TagBracketInterpolationBracket)});be({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>me(()=>import("./freemarker2-fbaddb6e.js"),["assets/freemarker2-fbaddb6e.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"]).then(o=>o.TagAutoInterpolationDollar)});be({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>me(()=>import("./freemarker2-fbaddb6e.js"),["assets/freemarker2-fbaddb6e.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"]).then(o=>o.TagAutoInterpolationBracket)});be({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>me(()=>import("./go-81a01631.js"),[])});be({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>me(()=>import("./graphql-4b2f9989.js"),[])});be({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>me(()=>import("./handlebars-56c84eff.js"),["assets/handlebars-56c84eff.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"])});be({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>me(()=>import("./hcl-f5583a08.js"),[])});be({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>me(()=>import("./html-11123344.js"),["assets/html-11123344.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"])});be({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>me(()=>import("./ini-93327bda.js"),[])});be({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>me(()=>import("./java-594fa86f.js"),[])});be({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>me(()=>import("./javascript-d04b7bb9.js"),["assets/javascript-d04b7bb9.js","assets/typescript-370a81a5.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"])});be({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>me(()=>import("./julia-0007448b.js"),[])});be({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>me(()=>import("./kotlin-d96111b8.js"),[])});be({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>me(()=>import("./less-35bca26e.js"),[])});be({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>me(()=>import("./lexon-9e065f08.js"),[])});be({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>me(()=>import("./lua-f5c339e1.js"),[])});be({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>me(()=>import("./liquid-15fd811a.js"),["assets/liquid-15fd811a.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"])});be({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>me(()=>import("./m3-f481ba01.js"),[])});be({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>me(()=>import("./markdown-9daa6125.js"),[])});be({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>me(()=>import("./mips-9083c690.js"),[])});be({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>me(()=>import("./msdax-407492d3.js"),[])});be({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>me(()=>import("./mysql-58db6cae.js"),[])});be({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>me(()=>import("./objective-c-af4e0f63.js"),[])});be({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>me(()=>import("./pascal-63b284c9.js"),[])});be({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>me(()=>import("./pascaligo-2b3d65f2.js"),[])});be({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>me(()=>import("./perl-b4e06d57.js"),[])});be({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>me(()=>import("./pgsql-7382e5ae.js"),[])});be({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>me(()=>import("./php-135114d3.js"),[])});be({id:"pla",extensions:[".pla"],loader:()=>me(()=>import("./pla-745ec9ce.js"),[])});be({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>me(()=>import("./postiats-a3fe4f4c.js"),[])});be({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>me(()=>import("./powerquery-47747fc0.js"),[])});be({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>me(()=>import("./powershell-ff3577bc.js"),[])});be({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>me(()=>import("./protobuf-6deb4a02.js"),[])});be({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>me(()=>import("./pug-2dd33d7b.js"),[])});be({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>me(()=>import("./python-de4359e8.js"),["assets/python-de4359e8.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"])});be({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>me(()=>import("./qsharp-52d3483a.js"),[])});be({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>me(()=>import("./r-419d1932.js"),[])});be({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>me(()=>import("./razor-bd70880a.js"),["assets/razor-bd70880a.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"])});be({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>me(()=>import("./redis-48ffdd95.js"),[])});be({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>me(()=>import("./redshift-6f3b6438.js"),[])});be({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>me(()=>import("./restructuredtext-2b6de06c.js"),[])});be({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>me(()=>import("./ruby-3203ad6f.js"),[])});be({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>me(()=>import("./rust-db058ad8.js"),[])});be({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>me(()=>import("./sb-2e6261d9.js"),[])});be({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>me(()=>import("./scala-9479f128.js"),[])});be({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>me(()=>import("./scheme-eff94c99.js"),[])});be({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>me(()=>import("./scss-47fd4d15.js"),[])});be({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>me(()=>import("./shell-6ce95083.js"),[])});be({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>me(()=>import("./solidity-05bce190.js"),[])});be({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>me(()=>import("./sophia-0df3b455.js"),[])});be({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>me(()=>import("./sparql-82e631b6.js"),[])});be({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>me(()=>import("./sql-ba093187.js"),[])});be({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>me(()=>import("./st-791b0ff5.js"),[])});be({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>me(()=>import("./swift-4e23775b.js"),[])});be({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>me(()=>import("./systemverilog-ad58bd79.js"),[])});be({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>me(()=>import("./systemverilog-ad58bd79.js"),[])});be({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>me(()=>import("./tcl-ef3a1af5.js"),[])});be({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>me(()=>import("./twig-a6c466d1.js"),[])});be({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>me(()=>import("./typescript-370a81a5.js"),["assets/typescript-370a81a5.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"])});be({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>me(()=>import("./vb-dc8b6e66.js"),[])});be({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\me(()=>import("./xml-47940d0e.js"),["assets/xml-47940d0e.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"])});be({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>me(()=>import("./yaml-de1626dc.js"),["assets/yaml-de1626dc.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"])});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt -*-----------------------------------------------------------------------------*/var Fse=Object.defineProperty,Bse=Object.getOwnPropertyDescriptor,Wse=Object.getOwnPropertyNames,Vse=Object.prototype.hasOwnProperty,AP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wse(e))!Vse.call(o,n)&&n!==t&&Fse(o,n,{get:()=>e[n],enumerable:!(i=Bse(e,n))||i.enumerable});return o},Hse=(o,e,t)=>(AP(o,e,"default"),t&&AP(t,e,"default")),Tf={};Hse(Tf,lb);var ON=class{constructor(e,t,i){Zt(this,"_onDidChange",new Tf.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},FN={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},BN={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},h8=new ON("css",FN,BN),u8=new ON("scss",FN,BN),g8=new ON("less",FN,BN);Tf.languages.css={cssDefaults:h8,lessDefaults:g8,scssDefaults:u8};function WN(){return me(()=>import("./cssMode-eb070eb5.js"),["assets/cssMode-eb070eb5.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"])}Tf.languages.onLanguage("less",()=>{WN().then(o=>o.setupMode(g8))});Tf.languages.onLanguage("scss",()=>{WN().then(o=>o.setupMode(u8))});Tf.languages.onLanguage("css",()=>{WN().then(o=>o.setupMode(h8))});/*!----------------------------------------------------------------------------- +*-----------------------------------------------------------------------------*/var Fse=Object.defineProperty,Bse=Object.getOwnPropertyDescriptor,Wse=Object.getOwnPropertyNames,Vse=Object.prototype.hasOwnProperty,AP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wse(e))!Vse.call(o,n)&&n!==t&&Fse(o,n,{get:()=>e[n],enumerable:!(i=Bse(e,n))||i.enumerable});return o},Hse=(o,e,t)=>(AP(o,e,"default"),t&&AP(t,e,"default")),Tf={};Hse(Tf,lb);var ON=class{constructor(e,t,i){Zt(this,"_onDidChange",new Tf.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},FN={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},BN={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},h8=new ON("css",FN,BN),u8=new ON("scss",FN,BN),g8=new ON("less",FN,BN);Tf.languages.css={cssDefaults:h8,lessDefaults:g8,scssDefaults:u8};function WN(){return me(()=>import("./cssMode-d97ae944.js"),["assets/cssMode-d97ae944.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"])}Tf.languages.onLanguage("less",()=>{WN().then(o=>o.setupMode(g8))});Tf.languages.onLanguage("scss",()=>{WN().then(o=>o.setupMode(u8))});Tf.languages.onLanguage("css",()=>{WN().then(o=>o.setupMode(h8))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt -*-----------------------------------------------------------------------------*/var zse=Object.defineProperty,Use=Object.getOwnPropertyDescriptor,$se=Object.getOwnPropertyNames,jse=Object.prototype.hasOwnProperty,RP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $se(e))!jse.call(o,n)&&n!==t&&zse(o,n,{get:()=>e[n],enumerable:!(i=Use(e,n))||i.enumerable});return o},Kse=(o,e,t)=>(RP(o,e,"default"),t&&RP(t,e,"default")),Rw={};Kse(Rw,lb);var qse=class{constructor(e,t,i){Zt(this,"_onDidChange",new Rw.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Gse={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},Pw={format:Gse,suggest:{},data:{useDefaultDataProvider:!0}};function Ow(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===hm,documentFormattingEdits:o===hm,documentRangeFormattingEdits:o===hm}}var hm="html",PP="handlebars",OP="razor",f8=Fw(hm,Pw,Ow(hm)),Zse=f8.defaults,p8=Fw(PP,Pw,Ow(PP)),Yse=p8.defaults,m8=Fw(OP,Pw,Ow(OP)),Qse=m8.defaults;Rw.languages.html={htmlDefaults:Zse,razorDefaults:Qse,handlebarDefaults:Yse,htmlLanguageService:f8,handlebarLanguageService:p8,razorLanguageService:m8,registerHTMLLanguageService:Fw};function Xse(){return me(()=>import("./htmlMode-6b344c1c.js"),["assets/htmlMode-6b344c1c.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"])}function Fw(o,e=Pw,t=Ow(o)){const i=new qse(o,e,t);let n;const s=Rw.languages.onLanguage(o,async()=>{n=(await Xse()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- +*-----------------------------------------------------------------------------*/var zse=Object.defineProperty,Use=Object.getOwnPropertyDescriptor,$se=Object.getOwnPropertyNames,jse=Object.prototype.hasOwnProperty,RP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $se(e))!jse.call(o,n)&&n!==t&&zse(o,n,{get:()=>e[n],enumerable:!(i=Use(e,n))||i.enumerable});return o},Kse=(o,e,t)=>(RP(o,e,"default"),t&&RP(t,e,"default")),Rw={};Kse(Rw,lb);var qse=class{constructor(e,t,i){Zt(this,"_onDidChange",new Rw.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Gse={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},Pw={format:Gse,suggest:{},data:{useDefaultDataProvider:!0}};function Ow(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===hm,documentFormattingEdits:o===hm,documentRangeFormattingEdits:o===hm}}var hm="html",PP="handlebars",OP="razor",f8=Fw(hm,Pw,Ow(hm)),Zse=f8.defaults,p8=Fw(PP,Pw,Ow(PP)),Yse=p8.defaults,m8=Fw(OP,Pw,Ow(OP)),Qse=m8.defaults;Rw.languages.html={htmlDefaults:Zse,razorDefaults:Qse,handlebarDefaults:Yse,htmlLanguageService:f8,handlebarLanguageService:p8,razorLanguageService:m8,registerHTMLLanguageService:Fw};function Xse(){return me(()=>import("./htmlMode-95ffdede.js"),["assets/htmlMode-95ffdede.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"])}function Fw(o,e=Pw,t=Ow(o)){const i=new qse(o,e,t);let n;const s=Rw.languages.onLanguage(o,async()=>{n=(await Xse()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt -*-----------------------------------------------------------------------------*/var Jse=Object.defineProperty,eoe=Object.getOwnPropertyDescriptor,toe=Object.getOwnPropertyNames,ioe=Object.prototype.hasOwnProperty,FP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of toe(e))!ioe.call(o,n)&&n!==t&&Jse(o,n,{get:()=>e[n],enumerable:!(i=eoe(e,n))||i.enumerable});return o},noe=(o,e,t)=>(FP(o,e,"default"),t&&FP(t,e,"default")),cb={};noe(cb,lb);var soe=class{constructor(e,t,i){Zt(this,"_onDidChange",new cb.Emitter);Zt(this,"_diagnosticsOptions");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},ooe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},roe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},_8=new soe("json",ooe,roe);cb.languages.json={jsonDefaults:_8};function aoe(){return me(()=>import("./jsonMode-a5d8f8e5.js"),["assets/jsonMode-a5d8f8e5.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"])}cb.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});cb.languages.onLanguage("json",()=>{aoe().then(o=>o.setupMode(_8))});/*!----------------------------------------------------------------------------- +*-----------------------------------------------------------------------------*/var Jse=Object.defineProperty,eoe=Object.getOwnPropertyDescriptor,toe=Object.getOwnPropertyNames,ioe=Object.prototype.hasOwnProperty,FP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of toe(e))!ioe.call(o,n)&&n!==t&&Jse(o,n,{get:()=>e[n],enumerable:!(i=eoe(e,n))||i.enumerable});return o},noe=(o,e,t)=>(FP(o,e,"default"),t&&FP(t,e,"default")),cb={};noe(cb,lb);var soe=class{constructor(e,t,i){Zt(this,"_onDidChange",new cb.Emitter);Zt(this,"_diagnosticsOptions");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},ooe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},roe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},_8=new soe("json",ooe,roe);cb.languages.json={jsonDefaults:_8};function aoe(){return me(()=>import("./jsonMode-2230a001.js"),["assets/jsonMode-2230a001.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"])}cb.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});cb.languages.onLanguage("json",()=>{aoe().then(o=>o.setupMode(_8))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt -*-----------------------------------------------------------------------------*/var loe=Object.defineProperty,coe=Object.getOwnPropertyDescriptor,doe=Object.getOwnPropertyNames,hoe=Object.prototype.hasOwnProperty,BP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of doe(e))!hoe.call(o,n)&&n!==t&&loe(o,n,{get:()=>e[n],enumerable:!(i=coe(e,n))||i.enumerable});return o},uoe=(o,e,t)=>(BP(o,e,"default"),t&&BP(t,e,"default")),goe="4.5.5",sf={};uoe(sf,lb);var b8=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(b8||{}),v8=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(v8||{}),C8=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(C8||{}),w8=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(w8||{}),S8=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(S8||{}),y8=class{constructor(o,e,t,i,n){Zt(this,"_onDidChange",new sf.Emitter);Zt(this,"_onDidExtraLibsChange",new sf.Emitter);Zt(this,"_extraLibs");Zt(this,"_removedExtraLibs");Zt(this,"_eagerModelSync");Zt(this,"_compilerOptions");Zt(this,"_diagnosticsOptions");Zt(this,"_workerOptions");Zt(this,"_onDidExtraLibsChangeTimeout");Zt(this,"_inlayHintsOptions");Zt(this,"_modeConfiguration");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},foe=goe,L8={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},D8=new y8({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},L8),x8=new y8({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},L8),poe=()=>Bw().then(o=>o.getTypeScriptWorker()),moe=()=>Bw().then(o=>o.getJavaScriptWorker());sf.languages.typescript={ModuleKind:b8,JsxEmit:v8,NewLineKind:C8,ScriptTarget:w8,ModuleResolutionKind:S8,typescriptVersion:foe,typescriptDefaults:D8,javascriptDefaults:x8,getTypeScriptWorker:poe,getJavaScriptWorker:moe};function Bw(){return me(()=>import("./tsMode-6ec55749.js"),["assets/tsMode-6ec55749.js","assets/index-f62f2ff2.js","assets/index-dbf96a40.css"])}sf.languages.onLanguage("typescript",()=>Bw().then(o=>o.setupTypeScript(D8)));sf.languages.onLanguage("javascript",()=>Bw().then(o=>o.setupJavaScript(x8)));var _oe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},boe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ww=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Vw=new ce("selectionAnchorSet",!1);let yl=class k8{static get(e){return e.getContribution(k8.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Vw.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(he.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Yn().appendText(f("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),cn(f("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(he.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};yl.ID="editor.contrib.selectionAnchorController";yl=_oe([boe(1,Ee)],yl);class voe extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:f("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2080),weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class Coe extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:f("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Vw})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class woe extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:f("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Vw,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2089),weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class Soe extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:f("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Vw,kbOpts:{kbExpr:N.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}lt(yl.ID,yl,4);J(voe);J(Coe);J(woe);J(Soe);const yoe=M("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},f("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Loe extends de{constructor(){super({id:"editor.action.jumpToBracket",label:f("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=br.get(t))===null||i===void 0||i.jumpToBracket()}}class Doe extends de{constructor(){super({id:"editor.action.selectToBracket",label:f("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=br.get(t))===null||n===void 0||n.selectToBracket(s)}}class xoe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class br extends U{static get(e){return e.getContribution(br.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new wt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(68),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(68)&&(this._matchBrackets=this._editor.getOption(68),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new he(r.lineNumber,r.column,r.lineNumber,r.column):new he(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(y.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new he(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(W.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}J(Toe);var Noe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Lh="9_cutcopypaste",Moe=ur||document.queryCommandSupported("cut"),E8=ur||document.queryCommandSupported("copy"),Aoe=typeof navigator.clipboard>"u"||ro?document.queryCommandSupported("paste"):!0;function VN(o){return o.register(),o}const Roe=Moe?VN(new yf({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:ur?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.cutLabel","Cut"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1}]})):void 0,Poe=E8?VN(new yf({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:ur?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.copyLabel","Copy"),order:2},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.copyLabel","Copy"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Jn.appendMenuItem(T.MenubarEditMenu,{submenu:T.MenubarCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:Lh,order:3});Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextShare,title:{value:f("share","Share"),original:"Share"},group:"11_share",order:-1});const nL=Aoe?VN(new yf({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:ur?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4}]})):void 0;class Ooe extends de{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:f("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(34)&&t.getSelection().isEmpty()||(_x.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),_x.forceCopyWithSyntaxHighlighting=!1)}}function T8(o,e){o&&(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ut).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(34),r=n.getSelection();return r&&r.isEmpty()&&!s||document.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}T8(Roe,"cut");T8(Poe,"copy");nL&&(nL.addImplementation(1e4,"code-editor",(o,e)=>{const t=o.get(ut),i=o.get(Dl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Kc?(()=>Noe(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Bm.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=n.getOption(34)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),nL.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));E8&&J(Ooe);var Foe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Te{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Te.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Te(this.value+Te.sep+e)}}Te.sep=".";Te.None=new Te("@@none@@");Te.Empty=new Te("");Te.QuickFix=new Te("quickfix");Te.Refactor=new Te("refactor");Te.RefactorExtract=Te.Refactor.append("extract");Te.RefactorInline=Te.Refactor.append("inline");Te.RefactorMove=Te.Refactor.append("move");Te.RefactorRewrite=Te.Refactor.append("rewrite");Te.Source=new Te("source");Te.SourceOrganizeImports=Te.Source.append("organizeImports");Te.SourceFixAll=Te.Source.append("fixAll");Te.SurroundWith=Te.Refactor.append("surround");var ns;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(ns||(ns={}));function Boe(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>N8(e,t,o.include))||!o.includeSourceActions&&Te.Source.contains(e))}function Woe(o,e){const t=e.kind?new Te(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>N8(t,i,o.include))||!o.includeSourceActions&&t&&Te.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function N8(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class Yr{static fromUser(e,t){return!e||typeof e!="object"?new Yr(t.kind,t.apply,!1):new Yr(Yr.getKindFromUser(e,t.kind),Yr.getApplyFromUser(e,t.apply),Yr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Te(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class Voe{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return Foe(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Vi(n)}i&&(this.action.edit=i.edit)}return this})}}var t1=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const M8="editor.action.codeAction",A8="editor.action.refactor",Hoe="editor.action.refactor.preview",R8="editor.action.sourceAction",HN="editor.action.organizeImports",zN="editor.action.fixAll";class um extends U{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return Cn(e.diagnostics)?Cn(t.diagnostics)?um.codeActionsPreferredComparator(e,t):-1:Cn(t.diagnostics)?1:um.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(um.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Te.QuickFix.contains(new Te(e.kind))&&!!e.isPreferred)}}const WP={actions:[],documentation:void 0};function UN(o,e,t,i,n,s){var r;return t1(this,void 0,void 0,function*(){const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new AN(e,s),d=zoe(o,e,a),h=new Z,u=d.map(p=>t1(this,void 0,void 0,function*(){try{n.report(p);const m=yield p.provideCodeActions(e,t,l,c.token);if(m&&h.add(m),c.token.isCancellationRequested)return WP;const _=((m==null?void 0:m.actions)||[]).filter(b=>b&&Woe(a,b)),v=$oe(p,_,a.include);return{actions:_.map(b=>new Voe(b,p)),documentation:v}}catch(m){if(Da(m))throw m;return Vi(m),WP}})),g=o.onDidChange(()=>{const p=o.all(e);Bn(p,d)||c.cancel()});try{const p=yield Promise.all(u),m=p.map(v=>v.actions).flat(),_=[...mf(p.map(v=>v.documentation)),...Uoe(o,e,i,m)];return new um(m,_,h)}finally{g.dispose(),c.dispose()}})}function zoe(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>Boe(t,new Te(n))):!0)}function*Uoe(o,e,t,i){var n,s,r;if(e&&i.length)for(const a of o.all(e))a._getAdditionalMenuItems&&(yield*(n=a._getAdditionalMenuItems)===null||n===void 0?void 0:n.call(a,{trigger:t.type,only:(r=(s=t.filter)===null||s===void 0?void 0:s.include)===null||r===void 0?void 0:r.value},i.map(l=>l.action)))}function $oe(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Te(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const s of i)if(s.kind.contains(new Te(n.kind)))return s.command}}var i1;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions"})(i1||(i1={}));function joe(o,e,t,i,n=Ye.None){var s;return t1(this,void 0,void 0,function*(){const r=o.get(ib),a=o.get(ri),l=o.get(mo),c=o.get(_i);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(n),!n.isCancellationRequested&&!(!((s=e.action.edit)===null||s===void 0)&&s.edits.length&&!(yield r.apply(e.action.edit,{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==i1.OnSave,showPreview:i==null?void 0:i.preview})).isApplied)&&e.action.command)try{yield a.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(d){const h=Koe(d);c.error(typeof h=="string"?h:f("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function Koe(o){return typeof o=="string"?o:o instanceof Error&&typeof o.message=="string"?o.message:void 0}st.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return t1(this,void 0,void 0,function*(){if(!(e instanceof Ce))throw Po();const{codeActionProvider:s}=o.get(ge),r=o.get(jt).getModel(e);if(!r)throw Po();const a=he.isISelection(t)?he.liftSelection(t):y.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Po();const l=typeof i=="string"?new Te(i):void 0,c=yield UN(s,r,a,{type:1,triggerAction:ns.Default,filter:{includeSourceActions:!0,include:l}},Qh.None,Ye.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>c.dispose(),100)}})});var qoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Goe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let n1=class P8{constructor(e){this.keybindingService=e}getResolver(){const e=new $h(()=>this.keybindingService.getKeybindings().filter(t=>P8.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===HN?i={kind:Te.SourceOrganizeImports.value}:t.command===zN&&(i={kind:Te.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Yr.fromUser(i,{kind:Te.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Te(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}};n1.codeActionCommands=[A8,M8,R8,HN,zN];n1=qoe([Goe(0,ei)],n1);M("symbolIcon.arrayForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.booleanForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.colorForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constantForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fileForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.folderForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keyForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keywordForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.moduleForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.namespaceForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.nullForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.numberForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.objectForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.operatorForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.packageForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.propertyForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.referenceForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.snippetForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.stringForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.structForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.textForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.typeParameterForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.unitForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const O8=Object.freeze({kind:Te.Empty,title:f("codeAction.widget.id.more","More Actions...")}),Zoe=Object.freeze([{kind:Te.QuickFix,title:f("codeAction.widget.id.quickfix","Quick Fix...")},{kind:Te.RefactorExtract,title:f("codeAction.widget.id.extract","Extract..."),icon:se.wrench},{kind:Te.RefactorInline,title:f("codeAction.widget.id.inline","Inline..."),icon:se.wrench},{kind:Te.RefactorRewrite,title:f("codeAction.widget.id.convert","Rewrite..."),icon:se.wrench},{kind:Te.RefactorMove,title:f("codeAction.widget.id.move","Move..."),icon:se.wrench},{kind:Te.SurroundWith,title:f("codeAction.widget.id.surround","Surround With..."),icon:se.symbolSnippet},{kind:Te.Source,title:f("codeAction.widget.id.source","Source Action..."),icon:se.symbolFile},O8]);function Yoe(o,e,t){if(!e)return o.map(s=>({kind:"action",item:s,group:O8,disabled:!!s.action.disabled,label:s.action.disabled||s.action.title}));const i=Zoe.map(s=>({group:s,actions:[]}));for(const s of o){const r=s.action.kind?new Te(s.action.kind):Te.None;for(const a of i)if(a.group.kind.contains(r)){a.actions.push(s);break}}const n=[];for(const s of i)if(s.actions.length){n.push({kind:"header",group:s.group});for(const r of s.actions)n.push({kind:"action",item:r,group:s.group,label:r.action.title,disabled:!!r.action.disabled,keybinding:t(r.action)})}return n}var Qoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Xoe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Cs=class qk{static get(e){return e.getContribution(qk.ID)}constructor(e,t){this._messageWidget=new wn,this._messageListeners=new Z,this._editor=e,this._visible=qk.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){cn(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new VP(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new fo(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new y(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(VP.fadeOut(this._messageWidget.value))}};Cs.ID="editor.contrib.messageController";Cs.MESSAGE_VISIBLE=new ce("messageVisible",!1,f("messageVisible","Whether the editor is currently showing an inline message"));Cs=Qoe([Xoe(1,Ee)],Cs);const Joe=Ji.bindToContribution(Cs.get);ie(new Joe({id:"leaveEditorMessage",precondition:Cs.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:100+30,primary:9}}));let VP=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};lt(Cs.ID,Cs,4);var F8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gk=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const B8="acceptSelectedCodeAction",W8="previewSelectedCodeAction";class ere{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,s;i.text.textContent=(s=(n=e.group)===null||n===void 0?void 0:n.title)!==null&&s!==void 0?s:""}disposeTemplate(e){}}let Zk=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);const n=new nb(e,Ps);return{container:e,icon:t,text:i,keybinding:n}}renderElement(e,t,i){var n,s,r;if(!((n=e.group)===null||n===void 0)&&n.icon?(i.icon.className=De.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=re(e.group.icon.color.id))):(i.icon.className=De.asClassName(se.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=V8(e.label),e.keybinding?(i.keybinding.set(e.keybinding),hs(i.keybinding.element)):On(i.keybinding.element);const a=(s=this._keybindingService.lookupKeybinding(B8))===null||s===void 0?void 0:s.getLabel(),l=(r=this._keybindingService.lookupKeybinding(W8))===null||r===void 0?void 0:r.getLabel();if(i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&l?this._supportsPreview?i.container.title=f({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",a,l):i.container.title=f({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",a):i.container.title="",e.description){const c=new pl(q(i.container,X("span.label-description")));c.element.classList.add("action-list-description"),c.set(e.description)}}disposeTemplate(e){}};Zk=F8([Gk(1,ei)],Zk);class tre extends UIEvent{constructor(){super("acceptSelectedAction")}}class HP extends UIEvent{constructor(){super("previewSelectedAction")}}let Yk=class extends U{constructor(e,t,i,n,s,r){super(),this._delegate=n,this._contextViewService=s,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new Uo(e,this.domNode,a,[new Zk(t,this._keybindingService),new ere],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let c=l.label?V8(l==null?void 0:l.label):"";return l.disabled&&(c=f({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",c,l.disabled)),c}return null},getWidgetAriaLabel:()=>f({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(If),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this._list.domFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(c=>c.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);const s=this._allMenuItems.map((c,d)=>{const h=document.getElementById(this._list.getElementID(d));if(h){h.style.width="auto";const u=h.getBoundingClientRect().width;return h.style.width="",u}return 0}),r=Math.max(...s,e),a=.7,l=Math.min(n,document.body.clientHeight*a);return this._list.layout(l,r),this.domNode.style.height=`${l}px`,this._list.domFocus(),r}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new HP:new tre;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof HP):this._list.setSelection([])}onListHover(e){this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};Yk=F8([Gk(4,xl),Gk(5,ei)],Yk);function V8(o){return o.replace(/\r\n|\r|\n/g," ")}var ire=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Dh={Visible:new ce("codeActionMenuVisible",!1,f("codeActionMenuVisible","Whether the action widget list is visible"))},tu=Je("actionWidgetService");let xh=class extends U{get isVisible(){return Dh.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new wn)}show(e,t,i,n,s,r,a){const l=Dh.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(Yk,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:d=>(l.set(!0),this._renderWidget(d,c,a??[])),onHide:d=>{l.reset(),this._onWidgetClosed(d)}},r,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,i){var n;const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,this._list.value)s.appendChild(this._list.value.domNode);else throw new Error("List has no value");const r=new Z,a=document.createElement("div"),l=e.appendChild(a);l.classList.add("context-view-block"),r.add(K(l,ae.MOUSE_DOWN,p=>p.stopPropagation()));const c=document.createElement("div"),d=e.appendChild(c);d.classList.add("context-view-pointerBlock"),r.add(K(d,ae.POINTER_MOVE,()=>d.remove())),r.add(K(d,ae.MOUSE_DOWN,()=>d.remove()));let h=0;if(i.length){const p=this._createActionBar(".action-widget-action-bar",i);p&&(s.appendChild(p.getContainer().parentElement),r.add(p),h=p.getContainer().offsetWidth)}const u=(n=this._list.value)===null||n===void 0?void 0:n.layout(h);s.style.width=`${u}px`;const g=r.add(gh(e));return r.add(g.onDidBlur(()=>this.hide())),r}_createActionBar(e,t){if(!t.length)return;const i=X(e),n=new go(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};xh=ire([sL(0,xl),sL(1,Ee),sL(2,Me)],xh);ot(tu,xh,1);const db=100+1e3;Tn(class extends Yc{constructor(){super({id:"hideCodeActionWidget",title:{value:f("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:Dh.Visible,keybinding:{weight:db,primary:9,secondary:[1033]}})}run(o){o.get(tu).hide()}});Tn(class extends Yc{constructor(){super({id:"selectPrevCodeAction",title:{value:f("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:Dh.Visible,keybinding:{weight:db,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusPrevious()}});Tn(class extends Yc{constructor(){super({id:"selectNextCodeAction",title:{value:f("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:Dh.Visible,keybinding:{weight:db,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusNext()}});Tn(class extends Yc{constructor(){super({id:B8,title:{value:f("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:Dh.Visible,keybinding:{weight:db,primary:3,secondary:[2132]}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected()}});Tn(class extends Yc{constructor(){super({id:W8,title:{value:f("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:Dh.Visible,keybinding:{weight:db,primary:2051}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected(!0)}});var nre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sre=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},ng;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(ng||(ng={}));let s1=class H8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._onClick=this._register(new O),this.onClick=this._onClick.event,this._state=ng.Hidden,this._domNode=X("div.lightBulbWidget"),this._register(kt.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(s=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),this._register(JU(this._domNode,s=>{if(this.state.type!==1)return;this._editor.focus(),s.preventDefault();const{top:r,height:a}=Fi(this._domNode),l=this._editor.getOption(63);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(s.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(61)&&!this._editor.getOption(61).enabled&&this.hide()})),this._register(_e.runAndSubscribe(n.onDidUpdateKeybindings,()=>{var s,r;this._preferredKbLabel=an((s=n.lookupKeybinding(i))===null||s===void 0?void 0:s.getLabel()),this._quickFixKbLabel=an((r=n.lookupKeybinding(t))===null||r===void 0?void 0:r.getLabel()),this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(61).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,c=n.get(47),d=s.getLineContent(r),h=cw(d,l),u=c.spaceWidth*h>22,g=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let p=r;if(!u){if(r>1&&!g(r-1))p-=1;else if(!g(r+1))p+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new ng.Showing(e,t,i,{position:{lineNumber:p,column:1},preference:H8._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==ng.Hidden&&(this.state=ng.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(...De.asClassNameArray(se.lightBulb)),this._domNode.classList.add(...De.asClassNameArray(se.lightbulbAutofix)),this._preferredKbLabel)){this.title=f("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel);return}this._domNode.classList.remove(...De.asClassNameArray(se.lightbulbAutofix)),this._domNode.classList.add(...De.asClassNameArray(se.lightBulb)),this._quickFixKbLabel?this.title=f("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=f("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};s1._posPref=[0];s1=nre([sre(3,ei)],s1);var ore=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},b0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},oL=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},rre=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},are=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},fv;let Qk=class extends U{constructor(e,t,i,n,s,r,a,l){super(),this._editor=e,this.delegate=n,this._configurationService=r,this._actionWidgetService=a,this._commandService=l,this._activeCodeActions=this._register(new wn),fv.set(this,!1),this._showDisabled=!1,this._lightBulbWidget=new $h(()=>{const c=this._register(s.createInstance(s1,this._editor,t,i));return this._register(c.onClick(d=>this.showCodeActionList(d.actions,d,{includeDisabledActions:!1,fromLightbulb:!0}))),c}),this._resolver=s.createInstance(n1),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){rre(this,fv,!0,"f"),super.dispose()}update(e){var t,i,n,s,r;return oL(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let a;try{a=yield e.actions}catch(l){Oe(l);return}if(!are(this,fv,"f"))if(this._lightBulbWidget.value.update(a,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const c=this.tryGetValidActionToApply(e.trigger,a);if(c){try{this._lightBulbWidget.value.hide(),yield this.delegate.applyCodeAction(c,!1,!1)}finally{a.dispose()}return}if(e.trigger.context){const d=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(d&&d.action.disabled){(n=Cs.get(this._editor))===null||n===void 0||n.showMessage(d.action.disabled,e.trigger.context.position),a.dispose();return}}}const l=!!(!((s=e.trigger.filter)===null||s===void 0)&&s.include);if(e.trigger.context&&(!a.allActions.length||!l&&!a.validActions.length)){(r=Cs.get(this._editor))===null||r===void 0||r.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=a,a.dispose();return}this._activeCodeActions.value=a,this.showCodeActionList(a,this.toCoords(e.position),{includeDisabledActions:l,fromLightbulb:!1})}else this._actionWidgetService.isVisible?a.dispose():this._activeCodeActions.value=a})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,i){return oL(this,void 0,void 0,function*(){const n=this._editor.getDomNode();if(!n)return;const s=i.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!s.length)return;const r=W.isIPosition(t)?this.toCoords(t):t,a={onSelect:(l,c)=>oL(this,void 0,void 0,function*(){this.delegate.applyCodeAction(l,!0,c||!1),this._actionWidgetService.hide()}),onHide:()=>{var l;(l=this._editor)===null||l===void 0||l.focus()}};this._actionWidgetService.show("codeActionWidget",!0,Yoe(s,this._shouldShowHeaders(),this._resolver.getResolver()),a,r,n,this._getActionBarActions(e,t,i))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Fi(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}_shouldShowHeaders(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map(s=>{var r;return{id:s.id,label:s.title,tooltip:(r=s.tooltip)!==null&&r!==void 0?r:"",class:void 0,enabled:!0,run:()=>{var a;return this._commandService.executeCommand(s.id,...(a=s.commandArguments)!==null&&a!==void 0?a:[])}}});return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:f("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:f("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};fv=new WeakMap;Qk=ore([b0(4,Me),b0(5,at),b0(6,tu),b0(7,ri)],Qk);var rL=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},lre=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},Ru;const z8=new ce("supportedCodeAction","");class cre extends U{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new fo),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(i=>LT(i,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&e.type===2){const{lineNumber:n,column:s}=i.getPosition(),r=t.getLineContent(n);if(r.length===0)return;if(s===1){if(/\s/.test(r[0]))return}else if(s===t.getLineMaxColumn(n)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[s-2])&&/\s/.test(r[s-1]))return}return i}_createEventAndSignalChange(e,t){const i=this._editor.getModel();if(!t||!i){this._signalChange(void 0);return}const n={trigger:e,selection:t,position:t.getStartPosition()};return this._signalChange(n),n}}var Rd;(function(o){o.Empty={type:0};class e{constructor(i,n,s,r){this.trigger=i,this.rangeOrSelection=n,this.position=s,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(Da(a))return dre;throw a})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(Rd||(Rd={}));const dre={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class hre extends U{constructor(e,t,i,n,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._codeActionOracle=this._register(new wn),this._state=Rd.Empty,this._onDidChangeState=this._register(new O),this.onDidChangeState=this._onDidChangeState.event,Ru.set(this,!1),this._supportedCodeActions=z8.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){rL(this,Ru,"f")||(lre(this,Ru,!0,"f"),super.dispose(),this.setState(Rd.Empty,!0))}_update(){if(rL(this,Ru,"f"))return;this._codeActionOracle.value=void 0,this.setState(Rd.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(86)){const t=[];for(const i of this._registry.all(e))Array.isArray(i.providedCodeActionKinds)&&t.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new cre(this._editor,this._markerService,i=>{var n;if(!i){this.setState(Rd.Empty);return}const s=Wi(r=>UN(this._registry,e,i.selection,i.trigger,Qh.None,r));i.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(s,250)),this.setState(new Rd.Triggered(i.trigger,i.selection,i.position,s))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:ns.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!rL(this,Ru,"f")&&this._onDidChangeState.fire(e))}}Ru=new WeakMap;var ure=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},gre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function hb(o){return oe.regex(z8.keys()[0],new RegExp("(\\s|^)"+Hs(o.value)+"\\b"))}function U8(o,e,t,i){const n=Yr.fromUser(e,{kind:Te.Refactor,apply:"never"});return iu(o,typeof(e==null?void 0:e.kind)=="string"?n.preferred?f("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",e.kind):f("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",e.kind):n.preferred?f("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):f("editor.action.refactor.noneMessage","No refactorings available"),{include:Te.Refactor.contains(n.kind)?n.kind:Te.None,onlyIncludePreferredActions:n.preferred},n.apply,t,i)}const Hw={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:f("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:f("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[f("args.schema.apply.first","Always apply the first returned code action."),f("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),f("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:f("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let kh=class $8 extends U{static get(e){return e.getContribution($8.ID)}constructor(e,t,i,n,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new hre(this._editor,r.codeActionProvider,t,i,n)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new $h(()=>this._register(s.createInstance(Qk,e,Nf.Id,ub.Id,{applyCodeAction:(a,l,c)=>gre(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a,c)}finally{l&&this._trigger({type:2,triggerAction:ns.QuickFix,filter:{}})}})})))}update(e){this._ui.value.update(e)}showCodeActions(e,t,i){return this._ui.value.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n,s){var r;if(!this._editor.hasModel())return;(r=Cs.get(this._editor))===null||r===void 0||r.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:a},preview:s})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t){return this._instantiationService.invokeFunction(joe,e,i1.FromCodeActions,{preview:t,editor:this._editor})}};kh.ID="editor.contrib.codeActionController";kh=ure([sp(1,Na),sp(2,Ee),sp(3,ed),sp(4,Me),sp(5,ge)],kh);function iu(o,e,t,i,n=!1,s=ns.Default){if(o.hasModel()){const r=kh.get(o);r==null||r.manualTriggerAtCurrentPosition(e,s,t,i,n)}}class Nf extends de{constructor(){super({id:Nf.Id,label:f("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:2132,weight:100}})}run(e,t){return iu(t,f("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,ns.QuickFix)}}Nf.Id="editor.action.quickFix";class fre extends Ji{constructor(){super({id:M8,precondition:oe.and(N.writable,N.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:Hw}]}})}runEditorCommand(e,t,i){const n=Yr.fromUser(i,{kind:Te.Empty,apply:"ifSingle"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?f("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):f("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?f("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):f("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class pre extends de{constructor(){super({id:A8,label:f("refactor.label","Refactor..."),alias:"Refactor...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:oe.and(N.writable,hb(Te.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){return U8(t,i,!1,ns.Refactor)}}class mre extends de{constructor(){super({id:Hoe,label:f("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){return U8(t,i,!0,ns.RefactorPreview)}}class _re extends de{constructor(){super({id:R8,label:f("source.label","Source Action..."),alias:"Source Action...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:oe.and(N.writable,hb(Te.Source))},description:{description:"Source Action...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){const n=Yr.fromUser(i,{kind:Te.Source,apply:"never"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?f("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):f("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?f("editor.action.source.noneMessage.preferred","No preferred source actions available"):f("editor.action.source.noneMessage","No source actions available"),{include:Te.Source.contains(n.kind)?n.kind:Te.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,void 0,ns.SourceAction)}}class bre extends de{constructor(){super({id:HN,label:f("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:oe.and(N.writable,hb(Te.SourceOrganizeImports)),kbOpts:{kbExpr:N.editorTextFocus,primary:1581,weight:100}})}run(e,t){return iu(t,f("editor.action.organize.noneMessage","No organize imports action available"),{include:Te.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,ns.OrganizeImports)}}class vre extends de{constructor(){super({id:zN,label:f("fixAll.label","Fix All"),alias:"Fix All",precondition:oe.and(N.writable,hb(Te.SourceFixAll))})}run(e,t){return iu(t,f("fixAll.noneMessage","No fix all action available"),{include:Te.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,ns.FixAll)}}class ub extends de{constructor(){super({id:ub.Id,label:f("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:oe.and(N.writable,hb(Te.QuickFix)),kbOpts:{kbExpr:N.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return iu(t,f("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Te.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,ns.AutoFix)}}ub.Id="editor.action.autoFix";lt(kh.ID,kh,3);J(Nf);J(pre);J(mre);J(_re);J(bre);J(ub);J(vre);ie(new fre);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},eN),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:f("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}));var zP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Xk{constructor(){this.lenses=[],this._disposables=new Z}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function j8(o,e,t){return zP(this,void 0,void 0,function*(){const i=o.ordered(e),n=new Map,s=new Xk,r=i.map((a,l)=>zP(this,void 0,void 0,function*(){n.set(a,l);try{const c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&s.add(c,a)}catch(c){Vi(c)}}));return yield Promise.all(r),s.lenses=s.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),s})}st.registerCommand("_executeCodeLensProvider",function(o,...e){let[t,i]=e;_t(Ce.isUri(t)),_t(typeof i=="number"||!i);const{codeLensProvider:n}=o.get(ge),s=o.get(jt).getModel(t);if(!s)throw Po();const r=[],a=new Z;return j8(n,s,Ye.None).then(l=>{a.add(l);const c=[];for(const d of l.lenses)i==null||d.symbol.command?r.push(d.symbol):i-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(s,d.symbol,Ye.None)).then(h=>r.push(h||d.symbol)));return Promise.all(c)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var Cre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wre=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const K8=Je("ICodeLensCache");class UP{constructor(e,t){this.lineCount=e,this.data=t}}let Jk=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Xc(20,.75);const t="codelens/cache";nl(()=>e.remove(t,1));const i="codelens/cache2",n=e.get(i,1,"{}");this._deserialize(n),pa(e.onWillSaveState)(s=>{s.reason===FC.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new Xk;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new UP(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const s of i.data.lenses)n.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const n=t[i],s=[];for(const a of n.lines)s.push({range:new y(a,1,a,11)});const r=new Xk;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new UP(n.lineCount,r))}}catch{}}};Jk=Cre([wre(0,jo)],Jk);ot(K8,Jk,1);class Sre{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class zw{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${zw._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s{c.symbol.command&&l.push(c.symbol),i.addDecoration({range:c.symbol.range,options:$P},h=>this._decorationIds[d]=h),a?a=y.plusRange(a,c.symbol.range):a=y.lift(c.symbol.range)}),this._viewZone=new Sre(a.startLineNumber-1,s,r),this._viewZoneId=n.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new zw(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(i&&y.isEmpty(n.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,n)=>{t.addDecoration({range:i.symbol.range,options:$P},s=>this._decorationIds[n]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},op=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Lre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let of=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=s,this._codeLensCache=r,this._disposables=new Z,this._localToDispose=new Z,this._lenses=[],this._oldCodeLensModels=new Z,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new wt(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(47)||a.hasChanged(16)||a.hasChanged(15))&&this._updateLensStyle(),a.hasChanged(14)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(63)/this._editor.getOption(49));let t=this._editor.getOption(16);return(!t||t<5)&&(t=this._editor.getOption(49)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(15),n=this._editor.getOption(47),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(s.setProperty("--vscode-editorCodeLens-fontFamily",i),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",ps.fontFamily)),this._editor.changeViewZones(r=>{for(const a of this._lenses)a.updateHeight(e,r)})}_localDispose(){var e,t,i;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(i=this._currentCodeLensModel)===null||i===void 0||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(14))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(dh(()=>{const n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(const n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){const s=n.onDidChange(()=>i.schedule());this._localToDispose.add(s)}const i=new wt(()=>{var n;const s=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=Wi(r=>j8(this._languageFeaturesService.codeLensProvider,e,r)),this._getCodeLensModelPromise.then(r=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=r,this._codeLensCache.put(e,r);const a=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=a,this._renderCodeLensSymbols(r),this._resolveCodeLensesInViewportSoon()},Oe)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(Pe(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(n=>{this._editor.changeViewZones(s=>{const r=[];let a=-1;this._lenses.forEach(c=>{!c.isValid()||a===c.getLineNumber()?r.push(c):(c.update(s),a=c.getLineNumber())});const l=new aL;r.forEach(c=>{c.dispose(l,s),this._lenses.splice(this._lenses.indexOf(c),1)}),l.commit(n)})}),i.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(n=>{n.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Pe(()=>{if(this._editor.getModel()){const n=Ca.capture(this._editor);this._editor.changeDecorations(s=>{this._editor.changeViewZones(r=>{this._disposeAllLenses(s,r)})}),n.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(n=>{if(n.target.type!==9)return;let s=n.target.element;if((s==null?void 0:s.tagName)==="SPAN"&&(s=s.parentElement),(s==null?void 0:s.tagName)==="A")for(const r of this._lenses){const a=r.getCommand(s);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),i.schedule()}_disposeAllLenses(e,t){const i=new aL;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const a of e.lenses){const l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],i.push(n)))}if(!i.length&&!this._lenses.length)return;const s=Ca.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{const c=new aL;let d=0,h=0;for(;hthis._resolveCodeLensesInViewportSoon())),d++,h++)}for(;dthis._resolveCodeLensesInViewportSoon())),h++;c.commit(a)})}),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],n=[];if(this._lenses.forEach(a=>{const l=a.computeIfNecessary(t);l&&(i.push(l),n.push(a))}),i.length===0)return;const s=Date.now(),r=Wi(a=>{const l=i.map((c,d)=>{const h=new Array(c.length),u=c.map((g,p)=>!g.symbol.command&&typeof g.provider.resolveCodeLens=="function"?Promise.resolve(g.provider.resolveCodeLens(t,g.symbol,a)).then(m=>{h[p]=m},Vi):(h[p]=g.symbol,Promise.resolve(void 0)));return Promise.all(u).then(()=>{!a.isCancellationRequested&&!n[d].isDisposed()&&n[d].updateCommands(h)})});return Promise.all(l)});this._resolveCodeLensesPromise=r,this._resolveCodeLensesPromise.then(()=>{const a=this._resolveCodeLensesDebounce.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{Oe(a),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};of.ID="css.editor.codeLens";of=yre([op(1,ge),op(2,Co),op(3,ri),op(4,_i),op(5,K8)],of);lt(of.ID,of,1);J(class extends de{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:N.hasCodeLensProvider,label:f("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return Lre(this,void 0,void 0,function*(){if(!t.hasModel())return;const i=e.get(Ma),n=e.get(ri),s=e.get(_i),r=t.getSelection().positionLineNumber,a=t.getContribution(of.ID);if(!a)return;const l=a.getModel();if(!l)return;const c=[];for(const h of l.lenses)h.symbol.command&&h.symbol.range.startLineNumber===r&&c.push({label:h.symbol.command.title,command:h.symbol.command});if(c.length===0)return;const d=yield i.pick(c,{canPickMany:!1});if(d){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(d.command.id,...d.command.arguments||[])}catch(h){s.error(h)}}})}});function Dre(o,e,t){const i=[],s=o.ordered(e).reverse().map(r=>Promise.resolve(r.provideDocumentColors(e,t)).then(a=>{if(Array.isArray(a))for(const l of a)i.push({colorInfo:l,provider:r})}));return Promise.all(s).then(()=>i)}function KP(o,e,t,i){return Promise.resolve(t.provideColorPresentations(o,e,i))}st.registerCommand("_executeDocumentColorProvider",function(o,...e){const[t]=e;if(!(t instanceof Ce))throw Po();const{colorProvider:i}=o.get(ge),n=o.get(jt).getModel(t);if(!n)throw Po();const s=[],a=i.ordered(n).reverse().map(l=>Promise.resolve(l.provideDocumentColors(n,Ye.None)).then(c=>{if(Array.isArray(c))for(const d of c)s.push({range:d.range,color:[d.color.red,d.color.green,d.color.blue,d.color.alpha]})}));return Promise.all(a).then(()=>s)});st.registerCommand("_executeColorPresentationProvider",function(o,...e){const[t,i]=e,{uri:n,range:s}=i;if(!(n instanceof Ce)||!Array.isArray(t)||t.length!==4||!y.isIRange(s))throw Po();const[r,a,l,c]=t,{colorProvider:d}=o.get(ge),h=o.get(jt).getModel(n);if(!h)throw Po();const u={range:s,color:{red:r,green:a,blue:l,alpha:c}},g=[],m=d.ordered(h).reverse().map(_=>Promise.resolve(_.provideColorPresentations(h,u,Ye.None)).then(v=>{Array.isArray(v)&&g.push(...v)}));return Promise.all(m).then(()=>g)});var xre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},lL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},kre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const q8=Object.create({});let Ih=class G8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new Z),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new q_(this._editor),this._colorDecorationClassRefs=this._register(new Z),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:G8.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(i.colorProvider.onDidChange(()=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(s=>{const r=this._isEnabled;this._isEnabled=this.isEnabled(),(r!==this._isEnabled||s.hasChanged(18))&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&typeof i=="object"){const n=i.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(17)}getDecoratorLimit(){return this._editor.getOption(18)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new fo,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){this._computePromise=Wi(e=>kre(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return Promise.resolve([]);const i=new ts(!1),n=yield Dre(this._languageFeaturesService.colorProvider,t,e);return this._debounceInformation.update(t,i.elapsed()),n})),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},Oe)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(i=>({range:{startLineNumber:i.colorInfo.range.startLineNumber,startColumn:i.colorInfo.range.startColumn,endLineNumber:i.colorInfo.range.endLineNumber,endColumn:i.colorInfo.range.endColumn},options:Re.EMPTY}));this._editor.changeDecorations(i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,s)=>this._colorDatas.set(n,e[s]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[];for(let i=0;ithis._colorDatas.has(n.id));return i.length===0?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Ih.ID="editor.contrib.colorDetector";Ih.RECOMPUTE_TIME=1e3;Ih=xre([lL(1,at),lL(2,ge),lL(3,Co)],Ih);lt(Ih.ID,Ih,1);class Ire{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new O,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new O,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let n=0;n{this.backgroundColor=r.getColor(iC)||H.white})),this._register(K(this.pickedColorNode,ae.CLICK,()=>this.model.selectNextColorPresentation())),this._register(K(s,ae.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(t.color)||"",this.pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(dr(".codicon.codicon-color-mode"))}}class Tre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=dr(".colorpicker-body"),q(e,this.domNode),this.saturationBox=new Nre(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new Mre(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new Are(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new H(new Jr(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new H(new Jr(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=(1-e)*360;this.model.color=new H(new Jr(i===360?0:i,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class Nre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=dr(".saturation-wrap"),q(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",q(this.domNode,this.canvas),this.selection=dr(".saturation-selection"),q(this.domNode,this.selection),this.layout(),this._register(K(this.domNode,ae.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new Lf);const t=Fi(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>this.onDidChangePosition(n.pageX-t.left,n.pageY-t.top),()=>null);const i=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new H(new Jr(e.h,1,1,1)),i=this.canvas.getContext("2d"),n=i.createLinearGradient(0,0,this.canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this.canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this.canvas.width,this.canvas.height),i.fillStyle=H.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class Z8 extends U{constructor(e,t){super(),this.model=t,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=q(e,dr(".strip")),this.overlay=q(this.domNode,dr(".overlay")),this.slider=q(this.domNode,dr(".slider")),this.slider.style.top="0px",this._register(K(this.domNode,ae.POINTER_DOWN,i=>this.onPointerDown(i))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new Lf),i=Fi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,s=>this.onDidChangeTop(s.pageY-i.top),()=>null);const n=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class Mre extends Z8{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:i,b:n}=e.rgba,s=new H(new nt(t,i,n,1)),r=new H(new nt(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class Are extends Z8{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Rre extends bo{constructor(e,t,i,n){super(),this.model=t,this.pixelRatio=i,this._register(Rg.onDidChange(()=>this.layout()));const s=dr(".colorpicker-widget");e.appendChild(s);const r=new Ere(s,this.model,n);this.body=new Tre(s,this.model,this.pixelRatio),this._register(r),this._register(this.body)}layout(){this.body.layout()}}var Pre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ore=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},qP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Fre{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let eI=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return pi.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return qP(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];const n=Ih.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const r=n.getColorData(s.range.getStartPosition());if(r)return[yield this._createColorHover(this._editor.getModel(),r.colorInfo,r.provider)]}return[]})}_createColorHover(e,t,i){return qP(this,void 0,void 0,function*(){const n=e.getValueInRange(t.range),{red:s,green:r,blue:a,alpha:l}=t.color,c=new nt(Math.round(s*255),Math.round(r*255),Math.round(a*255),l),d=new H(c),h=yield KP(e,t,i,Ye.None),u=new Ire(d,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(d,n),new Fre(this,y.lift(t.range),u,i)})}renderHoverParts(e,t){if(t.length===0||!this._editor.hasModel())return U.None;const i=new Z,n=t[0],s=this._editor.getModel(),r=n.model,a=i.add(new Rre(e.fragment,r,this._editor.getOption(136),this._themeService));e.setColorPicker(a);let l=new y(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn);const c=()=>{let h,u;if(r.presentation.textEdit){h=[r.presentation.textEdit],u=new y(r.presentation.textEdit.range.startLineNumber,r.presentation.textEdit.range.startColumn,r.presentation.textEdit.range.endLineNumber,r.presentation.textEdit.range.endColumn);const g=this._editor.getModel()._setTrackedRange(null,u,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h),u=this._editor.getModel()._getTrackedRange(g)||u}else h=[{range:l,text:r.presentation.label,forceMoveMarkers:!1}],u=l.setEndPosition(l.endLineNumber,l.startColumn+r.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h);r.presentation.additionalTextEdits&&(h=[...r.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",h),e.hide()),this._editor.pushUndoStop(),l=u},d=h=>KP(s,{range:l,color:{red:h.rgba.r/255,green:h.rgba.g/255,blue:h.rgba.b/255,alpha:h.rgba.a}},n.provider,Ye.None).then(u=>{r.colorPresentations=u||[]});return i.add(r.onColorFlushed(h=>{d(h).then(c)})),i.add(r.onDidChangeColor(d)),i}};eI=Pre([Ore(1,Hi)],eI);function tI(o,e){return!!o[e]}class cL{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=tI(e.event,t.triggerModifier),this.hasSideBySideModifier=tI(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class GP{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=tI(e,t.triggerModifier)}}class v0{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function ZP(o){return o==="altKey"?Ke?new v0(57,"metaKey",6,"altKey"):new v0(5,"ctrlKey",6,"altKey"):Ke?new v0(6,"altKey",57,"metaKey"):new v0(6,"altKey",5,"ctrlKey")}class Uw extends U{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new O),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new O),this.onExecute=this._onExecute.event,this._onCancel=this._register(new O),this.onCancel=this._onCancel.event,this._editor=e,this._alwaysFireExecuteOnMouseUp=t,this._opts=ZP(this._editor.getOption(74)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(i=>{if(i.hasChanged(74)){const n=ZP(this._editor.getOption(74));if(this._opts.equals(n))return;this._opts=n,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(i=>this._onEditorMouseMove(new cL(i,this._opts)))),this._register(this._editor.onMouseDown(i=>this._onEditorMouseDown(new cL(i,this._opts)))),this._register(this._editor.onMouseUp(i=>this._onEditorMouseUp(new cL(i,this._opts)))),this._register(this._editor.onKeyDown(i=>this._onEditorKeyDown(new GP(i,this._opts)))),this._register(this._editor.onKeyUp(i=>this._onEditorKeyUp(new GP(i,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(i=>this._onDidChangeCursorSelection(i))),this._register(this._editor.onDidChangeModel(i=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(i=>{(i.scrollTopChanged||i.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;(this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t||this._alwaysFireExecuteOnMouseUp)&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var Bre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Wa=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Bc=class extends qg{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,s,r,a,l,c,d,h,u),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(g=>this._onParentConfigurationChanged(g)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){B_(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Bc=Bre([Wa(3,Me),Wa(4,ut),Wa(5,ri),Wa(6,Ee),Wa(7,Hi),Wa(8,_i),Wa(9,xa),Wa(10,ui),Wa(11,ge)],Bc);const YP=new H(new nt(0,122,204)),Wre={showArrow:!0,showFrame:!0,className:"",frameColor:YP,arrowColor:YP,keepEditorSelection:!1},Vre="vs.editor.contrib.zoneWidget";class Hre{constructor(e,t,i,n,s,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this._onDomNodeTop=s,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class zre{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class $w{constructor(e){this._editor=e,this._ruleName=$w._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),zM(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){zM(this._ruleName),rx(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:y.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}$w._IdGenerator=new YT(".arrow-decoration-");class Ure{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new Z,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=qa(t),B_(this.options,Wre,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(i=>{const n=this._getWidth(i);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new $w(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const i=e-this._decoratingElementsHeight();this.container.style.height=`${i}px`;const n=this.editor.getLayoutInfo();this._doLayout(i,this._getWidth(n))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=y.isIRange(e)?y.lift(e):y.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:Re.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide()}_decoratingElementsHeight(){const e=this.editor.getOption(63);let t=0;if(this.options.showArrow){const i=Math.round(e/3);t+=2*i}if(this.options.showFrame){const i=Math.round(e/9);t+=2*i}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const r=document.createElement("div");r.style.overflow="hidden";const a=this.editor.getOption(63),l=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,l);let c=0,d=0;if(this._arrow&&this.options.showArrow&&(c=Math.round(a/3),this._arrow.height=c,this._arrow.show(i)),this.options.showFrame&&(d=Math.round(a/9)),this.editor.changeViewZones(g=>{this._viewZone&&g.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new Hre(r,i.lineNumber,i.column,t,p=>this._onViewZoneTop(p),p=>this._onViewZoneHeight(p)),this._viewZone.id=g.addZone(this._viewZone),this._overlayWidget=new zre(Vre+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const g=this.options.frameWidth?this.options.frameWidth:d;this.container.style.borderTopWidth=g+"px",this.container.style.borderBottomWidth=g+"px"}const h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=c+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,s),this.options.keepEditorSelection||this.editor.setSelection(e);const u=this.editor.getModel();if(u){const g=u.validateRange(new y(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(g,g.endLineNumber===u.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new fn(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(63),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var Y8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Q8=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const X8=Je("IPeekViewService");ot(X8,class{constructor(){this._widgets=new Map}addExclusiveWidget(o,e){const t=this._widgets.get(o);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const n=this._widgets.get(o);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(o))};this._widgets.set(o,{widget:e,listener:e.onDidClose(i)})}},1);var ss;(function(o){o.inPeekEditor=new ce("inReferenceSearchEditor",!0,f("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(ss||(ss={}));let g_=class{constructor(e,t){e instanceof Bc&&ss.inPeekEditor.bindTo(t)}dispose(){}};g_.ID="editor.contrib.referenceController";g_=Y8([Q8(1,Ee)],g_);lt(g_.ID,g_,0);function $re(o){const e=o.get(ut).getFocusedCodeEditor();return e instanceof Bc?e.getParentEditor():e}const jre={headerBackgroundColor:H.white,primaryHeadingColor:H.fromHex("#333333"),secondaryHeadingColor:H.fromHex("#6c6c6cb3")};let o1=class extends Ure{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new O,this.onDidClose=this._onDidClose.event,B_(this.options,jre,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=X(".head"),this._bodyElement=X(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=X(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),hi(i,"click",r=>this._onTitleClick(r))),q(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=X("span.filename"),this._secondaryHeading=X("span.dirname"),this._metaHeading=X("span.meta"),q(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=X(".peekview-actions");q(this._headElement,n);const s=this._getActionBarOptions();this._actionbarWidget=new go(n,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new ms("peekview.close",f("label.close","Close"),De.asClassName(se.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Lee.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:xi(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,hs(this._metaHeading)):On(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(63)*1.2),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};o1=Y8([Q8(2,Me)],o1);const Kre=M("peekViewTitle.background",{dark:pe(es,.1),light:pe(es,.1),hcDark:null,hcLight:null},f("peekViewTitleBackground","Background color of the peek view title area.")),J8=M("peekViewTitleLabel.foreground",{dark:H.white,light:H.black,hcDark:H.white,hcLight:No},f("peekViewTitleForeground","Color of the peek view title.")),e9=M("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},f("peekViewTitleInfoForeground","Color of the peek view title info.")),qre=M("peekView.border",{dark:es,light:es,hcDark:Ze,hcLight:Ze},f("peekViewBorder","Color of the peek view borders and arrow.")),Gre=M("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:H.black,hcLight:H.white},f("peekViewResultsBackground","Background color of the peek view result list."));M("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:H.white,hcLight:No},f("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));M("peekViewResult.fileForeground",{dark:H.white,light:"#1E1E1E",hcDark:H.white,hcLight:No},f("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));M("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},f("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));M("peekViewResult.selectionForeground",{dark:H.white,light:"#6C6C6C",hcDark:H.white,hcLight:No},f("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const lc=M("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:H.black,hcLight:H.white},f("peekViewEditorBackground","Background color of the peek view editor."));M("peekViewEditorGutter.background",{dark:lc,light:lc,hcDark:lc,hcLight:lc},f("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));M("peekViewEditorStickScroll.background",{dark:lc,light:lc,hcDark:lc,hcLight:lc},f("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));M("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},f("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));M("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},f("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));M("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Pt,hcLight:Pt},f("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var Zre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Wc{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=v3.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?f({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",uo(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):f("aria.oneReference","symbol in {0} on line {1} at column {2}",uo(this.uri),this.range.startLineNumber,this.range.startColumn)}}class Yre{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:n,column:s-t}),c=new y(n,l.startColumn,n,s),d=new y(r,a,r,1073741824),h=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e),g=i.getValueInRange(d).replace(/\s+$/,"");return{value:h+u+g,highlight:{start:h.length,end:h.length+u.length}}}}class f_{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new vn}dispose(){ft(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?f("aria.fileReferences.1","1 symbol in {0}, full path {1}",uo(this.uri),this.uri.fsPath):f("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,uo(this.uri),this.uri.fsPath)}resolve(e){return Zre(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new Yre(i))}catch(i){Oe(i)}return this})}}class _s{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new O,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(_s._compareReferences);let n;for(const s of e)if((!n||!Ot.isEqual(n.uri,s.uri,!0))&&(n=new f_(this,s.uri),this.groups.push(n)),n.children.length===0||_s._compareReferences(s,n.children[n.children.length-1])!==0){const r=new Wc(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){ft(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new _s(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?f("aria.result.0","No results found"):this.references.length===1?f("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?f("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):f("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,r=i.parent.groups.length;return r===1||t&&n+10?(t?n=(n+1)%s:n=(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((n,s)=>({idx:s,prefixLen:ah(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,s)=>n.prefixLen>s.prefixLen?-1:n.prefixLens.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&y.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return Ot.compare(e.uri,t.uri)||y.compareRangesUsingStarts(e.range,t.range)}}var jw=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Kw=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let iI=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof _s||e instanceof f_}getChildren(e){if(e instanceof _s)return e.groups;if(e instanceof f_)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};iI=jw([Kw(0,os)],iI);class Qre{getHeight(){return 23}getTemplateId(e){return e instanceof f_?p_.id:gb.id}}let nI=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof Wc){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return uo(e.uri)}};nI=jw([Kw(0,ei)],nI);class Xre{getId(e){return e instanceof Wc?e.id:e.uri}}let sI=class extends U{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new KC(i,{supportHighlights:!0})),this.badge=new pk(q(i,X(".count")),{},Q3),e.appendChild(i)}set(e,t){const i=hw(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(f("referencesCount","{0} references",n)):this.badge.setTitleFormat(f("referenceCount","{0} reference",n))}};sI=jw([Kw(1,Yg)],sI);let p_=class t9{constructor(e){this._instantiationService=e,this.templateId=t9.id}renderTemplate(e){return this._instantiationService.createInstance(sI,e)}renderElement(e,t,i){i.set(e.element,mw(e.filterData))}disposeTemplate(e){e.dispose()}};p_.id="FileReferencesRenderer";p_=jw([Kw(0,Me)],p_);class Jre{constructor(e){this.label=new pl(e)}set(e,t){var i;const n=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!n||!n.value)this.label.set(`${uo(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:r}=n;t&&!_r.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,mw(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class gb{constructor(){this.templateId=gb.id}renderTemplate(e){return new Jre(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}gb.id="OneReferenceRenderer";class eae{getWidgetAriaLabel(){return f("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var tae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Va=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},QP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class qw{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Z,this._callOnModelChange=new Z,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let n=0,s=e.children.length;n{const s=n.deltaDecorations([],t);for(let r=0;r{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(nae,"ReferencesWidget",this._treeContainer,new Qre,[this._instantiationService.createInstance(p_),this._instantiationService.createInstance(gb)],this._instantiationService.createInstance(iI),i),this._splitView.addView({onDidChange:_e.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},qC.Distribute),this._splitView.addView({onDidChange:_e.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},qC.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const n=(s,r)=>{s instanceof Wc&&(r==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:r,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?n(s.element,"side"):s.editorOptions.pinned?n(s.element,"goto"):n(s.element,"show")}),On(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Dt(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=f("noResults","No results"),hs(this._messageContainer),Promise.resolve(void 0)):(On(this._messageContainer),this._decorationsManager=new qw(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),hs(this._treeContainer),hs(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof Wc)return e;if(e instanceof f_&&e.children.length>0)return e.children[0]}revealReference(e){return QP(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return QP(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==We.inMemory?this.setTitle(cZ(e.uri),this._uriLabel.getUriLabel(hw(e.uri))):this.setTitle(f("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const n=yield i;if(!this._model){n.dispose();return}ft(this._previewModelReference);const s=n.object;if(s){const r=this._preview.getModel()===s.textEditorModel?0:1,a=y.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};oI=tae([Va(3,Hi),Va(4,os),Va(5,Me),Va(6,X8),Va(7,Yg),Va(8,uw),Va(9,ei),Va(10,Ut),Va(11,ui)],oI);var sae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Su=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},XP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const nu=new ce("referenceSearchVisible",!1,f("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Vc=class rI{static get(e){return e.getContribution(rI.ID)}constructor(e,t,i,n,s,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new Z,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=nu.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",r=iae.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(oI,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(f("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:c,kind:d}=l;if(c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":i?this._gotoReference(c,!0):this.openReference(c,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(f("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const d=this._editor.getModel().uri,h=new W(e.startLineNumber,e.startColumn),u=this._model.nearestReference(d,h);if(u)return this._widget.setSelection(u).then(()=>{this._widget&&this._editor.getOption(82)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return XP(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n,!1),s?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()})}revealReference(e){return XP(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;(i=this._widget)===null||i===void 0||i.hide(),this._ignoreModelChangeEvent=!0;const n=y.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then(s=>{var r;if(this._ignoreModelChangeEvent=!1,!s||!this._widget){this.closeWidget();return}if(this._editor===s)this._widget.show(n),this._widget.focusOnReferenceTree();else{const a=rI.get(s),l=this._model.clone();this.closeWidget(),s.focus(),a==null||a.toggleWidget(n,Wi(c=>Promise.resolve(l)),(r=this._peekMode)!==null&&r!==void 0?r:!1)}},s=>{this._ignoreModelChangeEvent=!1,Oe(s)})}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};Vc.ID="editor.contrib.referencesController";Vc=sae([Su(2,Ee),Su(3,ut),Su(4,_i),Su(5,Me),Su(6,jo),Su(7,at)],Vc);function su(o,e){const t=$re(o);if(!t)return;const i=Vc.get(t);i&&e(i)}is.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:ki(2089,60),when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.changeFocusBetweenPreviewAndReferences()})}});is.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!0)})}});is.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!1)})}});st.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");st.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");st.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");st.registerCommand("closeReferenceSearch",o=>su(o,e=>e.closeWidget()));is.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:oe.and(ss.inPeekEditor,oe.not("config.editor.stablePeek"))});is.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:oe.and(nu,oe.not("config.editor.stablePeek"))});is.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:oe.and(nu,L7,CN.negate(),wN.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.revealReference(i[0]))}});is.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:oe.and(nu,L7,CN.negate(),wN.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.openReference(i[0],!0,!0))}});st.registerCommand("openReference",o=>{var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.openReference(i[0],!1,!0))});var i9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Op=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const $N=new ce("hasSymbols",!1,f("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),Gw=Je("ISymbolNavigationService");let aI=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=$N.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new lI(this._editorService),n=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let c=!1,d=!1;for(const h of t.references)if(LT(h.uri,a.uri))c=!0,d=d||y.containsPosition(h.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=Oo(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:y.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?f("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):f("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};aI=i9([Op(0,Ee),Op(1,ut),Op(2,_i),Op(3,ei)],aI);ot(Gw,aI,1);ie(new class extends Ji{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:$N,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(Gw).revealNext(e)}});is.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:$N,primary:9,handler(o){o.get(Gw).reset()}});let lI=class{constructor(e){this._listener=new Map,this._disposables=new Z,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),ft(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Oo(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};lI=i9([Op(0,ut)],lI);var jN=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function fb(o,e,t,i){return jN(this,void 0,void 0,function*(){const s=t.ordered(o).map(a=>Promise.resolve(i(a,o,e)).then(void 0,l=>{Vi(l)})),r=yield Promise.all(s);return mf(r.flat())})}function Zw(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function n9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function s9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function o9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function Yw(o,e,t,i,n){return fb(e,t,o,(s,r,a)=>jN(this,void 0,void 0,function*(){const l=yield s.provideReferences(r,a,{includeDeclaration:!0},n);if(!i||!l||l.length!==2)return l;const c=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return c&&c.length===1?c:l}))}function pb(o){return jN(this,void 0,void 0,function*(){const e=yield o(),t=new _s(e,""),i=t.references.map(n=>n.link);return t.dispose(),i})}Ta("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(ge),n=Zw(i.definitionProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(ge),n=o9(i.typeDefinitionProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(ge),n=n9(i.declarationProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeReferenceProvider",(o,e,t)=>{const i=o.get(ge),n=Yw(i.referenceProvider,e,t,!1,Ye.None);return pb(()=>n)});Ta("_executeImplementationProvider",(o,e,t)=>{const i=o.get(ge),n=s9(i.implementationProvider,e,t,Ye.None);return pb(()=>n)});var Fo=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},dL,hL,uL,gL,fL,pL,mL,_L;Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextPeek,title:f("peek.submenu","Peek"),group:"navigation",order:100});class rf{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof rf||W.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class In extends C${static all(){return In._allSymbolNavigationCommands.values()}static _patchConfig(e){const t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(const i of it.wrap(t.menu))(i.id===T.EditorContext||i.id===T.EditorContextPeek)&&(i.when=oe.and(e.precondition,i.when));return t}constructor(e,t){super(In._patchConfig(t)),this.configuration=e,In._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,n){if(!t.hasModel())return Promise.resolve(void 0);const s=e.get(_i),r=e.get(ut),a=e.get(ed),l=e.get(Gw),c=e.get(ge),d=e.get(Me),h=t.getModel(),u=t.getPosition(),g=rf.is(i)?i:new rf(h,u),p=new Sh(t,5),m=U1(this._getLocationModel(c,g.model,g.position,p.token),p.token).then(_=>Fo(this,void 0,void 0,function*(){var v;if(!_||p.token.isCancellationRequested)return;cn(_.ariaMessage);let b;if(_.referenceAt(h.uri,u)){const S=this._getAlternativeCommand(t);!In._activeAlternativeCommands.has(S)&&In._allSymbolNavigationCommands.has(S)&&(b=In._allSymbolNavigationCommands.get(S))}const C=_.references.length;if(C===0){if(!this.configuration.muteMessage){const S=h.getWordAtPosition(u);(v=Cs.get(t))===null||v===void 0||v.showMessage(this._getNoResultFoundMessage(S),u)}}else if(C===1&&b)In._activeAlternativeCommands.add(this.desc.id),d.invokeFunction(S=>b.runEditorCommand(S,t,i,n).finally(()=>{In._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(r,l,t,_,n)}),_=>{s.error(_)}).finally(()=>{p.dispose()});return a.showWhile(m,250),m}_onResult(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){const r=this._getGoToPreference(i);if(!(i instanceof Bc)&&(this.configuration.openInPeek||r==="peek"&&n.references.length>1))this._openInPeek(i,n,s);else{const a=n.firstReference(),l=n.references.length>1&&r==="gotoAndPeek",c=yield this._openReference(i,e,a,this.configuration.openToSide,!l);l&&c?this._openInPeek(c,n,s):n.dispose(),r==="goto"&&t.put(a)}})}_openReference(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){let r;if(bV(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=yield t.openCodeEditor({resource:i.uri,options:{selection:y.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(a){if(s){const l=a.getModel(),c=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&c.clear()},350)}return a}})}_openInPeek(e,t,i){const n=Vc.get(e);n&&e.hasModel()?n.toggleWidget(i??e.getSelection(),Wi(s=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}In._allSymbolNavigationCommands=new Map;In._activeAlternativeCommands=new Set;class mb extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Zw(e.definitionProvider,t,i,n),f("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?f("noResultWord","No definition found for '{0}'",e.word):f("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleDefinitions}}const r9=Kc&&!BE()?2118:70;Tn((dL=class cI extends mb{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:cI.id,title:{value:f("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:f({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:oe.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:r9,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.1},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),st.registerCommandAlias("editor.action.goToDeclaration",cI.id)}},dL.id="editor.action.revealDefinition",dL));Tn((hL=class dI extends mb{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:dI.id,title:{value:f("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:oe.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:ki(2089,r9),weight:100}}),st.registerCommandAlias("editor.action.openDeclarationToTheSide",dI.id)}},hL.id="editor.action.revealDefinitionAside",hL));Tn((uL=class hI extends mb{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:hI.id,title:{value:f("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:oe.and(N.hasDefinitionProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:T.EditorContextPeek,group:"peek",order:2}}),st.registerCommandAlias("editor.action.previewDeclaration",hI.id)}},uL.id="editor.action.peekDefinition",uL));class a9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield n9(e.declarationProvider,t,i,n),f("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?f("decl.noResultWord","No declaration found for '{0}'",e.word):f("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(55).multipleDeclarations}}Tn((gL=class l9 extends a9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:l9.id,title:{value:f("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:f({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:oe.and(N.hasDeclarationProvider,N.isInWalkThroughSnippet.toNegated()),menu:[{id:T.EditorContext,group:"navigation",order:1.3},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?f("decl.noResultWord","No declaration found for '{0}'",e.word):f("decl.generic.noResults","No declaration found")}},gL.id="editor.action.revealDeclaration",gL));Tn(class extends a9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:f("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:oe.and(N.hasDeclarationProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:3}})}});class c9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield o9(e.typeDefinitionProvider,t,i,n),f("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?f("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):f("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleTypeDefinitions}}Tn((fL=class d9 extends c9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:d9.ID,title:{value:f("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:f({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:oe.and(N.hasTypeDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:0,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.4},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},fL.ID="editor.action.goToTypeDefinition",fL));Tn((pL=class h9 extends c9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:h9.ID,title:{value:f("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:oe.and(N.hasTypeDefinitionProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:4}})}},pL.ID="editor.action.peekTypeDefinition",pL));class u9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield s9(e.implementationProvider,t,i,n),f("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?f("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):f("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(55).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(55).multipleImplementations}}Tn((mL=class g9 extends u9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:g9.ID,title:{value:f("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:f({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:oe.and(N.hasImplementationProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:2118,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.45},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},mL.ID="editor.action.goToImplementation",mL));Tn((_L=class f9 extends u9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:f9.ID,title:{value:f("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:oe.and(N.hasImplementationProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:3142,weight:100},menu:{id:T.EditorContextPeek,group:"peek",order:5}})}},_L.ID="editor.action.peekImplementation",_L));class p9 extends In{_getNoResultFoundMessage(e){return e?f("references.no","No references found for '{0}'",e.word):f("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(55).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(55).multipleReferences}}Tn(class extends p9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:f("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:f({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:oe.and(N.hasReferenceProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:1094,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.45},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Yw(e.referenceProvider,t,i,!0,n),f("ref.title","References"))})}});Tn(class extends p9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:f("references.action.label","Peek References"),original:"Peek References"},precondition:oe.and(N.hasReferenceProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Yw(e.referenceProvider,t,i,!1,n),f("ref.title","References"))})}});class oae extends In{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:{value:f("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:oe.and(ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(this._references,f("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&f("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(55).multipleReferences}_getAlternativeCommand(){return""}}st.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(o,e,t,i,n,s,r)=>Fo(void 0,void 0,void 0,function*(){_t(Ce.isUri(e)),_t(W.isIPosition(t)),_t(Array.isArray(i)),_t(typeof n>"u"||typeof n=="string"),_t(typeof r>"u"||typeof r=="boolean");const a=o.get(ut),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(La(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{const d=new class extends oae{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!s,openInPeek:!!r,openToSide:!1},i,n);c.get(Me).invokeFunction(d.run.bind(d),l)})})});st.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(o,e,t,i,n)=>Fo(void 0,void 0,void 0,function*(){o.get(ri).executeCommand("editor.action.goToLocations",e,t,i,n,void 0,!0)})});st.registerCommand({id:"editor.action.findReferences",handler:(o,e,t)=>{_t(Ce.isUri(e)),_t(W.isIPosition(t));const i=o.get(ge),n=o.get(ut);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!La(s)||!s.hasModel())return;const r=Vc.get(s);if(!r)return;const a=Wi(c=>Yw(i.referenceProvider,s.getModel(),W.lift(t),!1,c).then(d=>new _s(d,f("ref.title","References")))),l=new y(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});st.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var rae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},bL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},JP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Eh=class pv{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new Z,this.toUnhookForKeyboard=new Z,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new Uw(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,an(a))})),this.toUnhook.add(s.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).catch(a=>{Oe(a)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(pv.ID)}startFindDefinitionFromCursor(e){return JP(this,void 0,void 0,function*(){yield this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;return JP(this,void 0,void 0,function*(){this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const n=new j7(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Wi(a=>this.findDefinition(e,a));let s;try{s=yield this.previousPromise}catch(a){Oe(a);return}if(!s||!s.length||!n.validate(this.editor)){this.removeLinkDecorations();return}const r=s[0].originSelectionRange?y.lift(s[0].originSelectionRange):new y(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(s.length>1){let a=r;for(const{originSelectionRange:l}of s)l&&(a=y.plusRange(a,l));this.addDecoration(a,new Yn().appendText(f("multipleResults","Click to show {0} definitions.",s.length)))}else{const a=s[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}const{object:{textEditorModel:c}}=l,{startLineNumber:d}=a.range;if(d<1||d>c.getLineCount()){l.dispose();return}const h=this.getPreviewValue(c,d,a),u=this.languageService.guessLanguageIdByFilepathOrFirstLine(c.uri);this.addDecoration(r,h?new Yn().appendCodeblock(u||"",h):void 0),l.dispose()})}})}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=pv.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{const n=!t&&this.editor.getOption(83)&&!this.isInPeekEditor(i);return new mb({openToSide:t,openInPeek:n,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(i)})}isInPeekEditor(e){const t=e.get(Ee);return ss.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};Eh.ID="editor.contrib.gotodefinitionatposition";Eh.MAX_SOURCE_PREVIEW_LINES=8;Eh=rae([bL(1,os),bL(2,Ut),bL(3,ge)],Eh);lt(Eh.ID,Eh,2);const C0=X;class m9 extends U{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Y_(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class KN extends U{static render(e,t,i){return new KN(e,t,i)}constructor(e,t,i){super(),this.actionContainer=q(e,C0("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=q(this.actionContainer,C0("a.action")),this.action.setAttribute("role","button"),t.iconClass&&q(this.action,C0(`span.icon.${t.iconClass}`));const n=q(this.action,C0("span"));n.textContent=i?`${t.label} (${i})`:t.label,this._register(K(this.actionContainer,ae.CLICK,s=>{s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer)})),this._register(K(this.actionContainer,ae.KEY_DOWN,s=>{const r=new Nt(s);(r.equals(3)||r.equals(10))&&(s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var aae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},lae=globalThis&&globalThis.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}};let cae=class{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}};class _9 extends U{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new O),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new wt(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new wt(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new wt(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(57).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=UH(e=>this._computer.computeAsync(e)),aae(this,void 0,void 0,function*(){var e,t,i,n;try{try{for(var s=!0,r=lae(this._asyncIterable),a;a=yield r.next(),e=a.done,!e;){n=a.value,s=!1;try{const l=n;l&&(this._result.push(l),this._fireResult())}finally{s=!0}}}catch(l){t={error:l}}finally{try{!s&&!e&&(i=r.return)&&(yield i.call(r))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(l){Oe(l)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new cae(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class vL{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class mv{constructor(e,t,i,n,s,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=s,this.supportsMarkerHover=r,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const ou=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class ko{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=ko._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(ko.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(ko.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(ko.isVariableCharacter(i)||ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof ko._table[i]>"u"&&!ko.isDigitCharacter(i)&&!ko.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}ko._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class Mf{constructor(){this._children=[]}appendChild(e){return e instanceof Fn&&this._children[this._children.length-1]instanceof Fn?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const c of a)c.parent=l,r(c.children,c)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof _b)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Fn extends Mf{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Fn(this.value)}}class b9 extends Mf{}class Xs extends b9{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Af?this._children[0]:void 0}clone(){const e=new Xs(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Af extends Mf{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Fn&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Af;return this.options.forEach(e.appendChild,e),e}}class qN extends Mf{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Jo&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Jo){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new qN;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Jo extends Mf{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Jo(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class m_ extends b9{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Fn(t)],!0):!1}clone(){const e=new m_(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function eO(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class _b extends Mf{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof Xs&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return eO([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof Xs&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof m_&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new _b;return this._children=this.children.map(t=>t.clone()),e}walk(e){eO(this.children,e)}}class Hc{constructor(){this._scanner=new ko,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new _b;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(l=>(l instanceof Xs&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const r=(l,c)=>{const d=n.get(l.index);if(!d)return;const h=new Xs(l.index);h.transform=l.transform;for(const u of d){const g=u.clone();h.appendChild(g),g instanceof Xs&&n.has(g.index)&&!c.has(g.index)&&(c.add(g.index),r(g,c),c.delete(g.index))}t.replace(l,[h])},a=new Set;for(const l of s)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new Xs(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Fn(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Xs(Number(t)):new m_(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new Xs(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new Af;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Fn(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new m_(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new qN;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Fn(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Jo(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Jo(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Jo(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new Jo(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Fn(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}const dae=f("defaultLabel","input"),hae=f("label.preserveCaseToggle","Preserve Case");class uae extends Ef{constructor(e){super({icon:se.preserveCase,title:hae+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class gae extends bo{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new O),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new O),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new O),this._onInput=this._register(new O),this._onKeyUp=this._register(new O),this._onPreserveCaseKeyDown=this._register(new O),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||dae;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new h7(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new uae(Object.assign({appendTitle:s,isChecked:!1},n.toggleStyles))),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const d=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const g=d.indexOf(document.activeElement);if(g>=0){let p=-1;u.equals(17)?p=(g+1)%d.length:u.equals(15)&&(g===0?p=d.length-1:p=g-1),u.equals(9)?(d[g].blur(),this.inputBox.focus()):p>=0&&d[p].focus(),ze.stop(u,!0)}}});const h=document.createElement("div");h.className="controls",h.style.display=this._showOptionButtons?"block":"none",h.appendChild(this.preserveCase.domNode),this.domNode.appendChild(h),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;(e=this.inputBox)===null||e===void 0||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var v9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},C9=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const GN=new ce("suggestWidgetVisible",!1,f("suggestWidgetVisible","Whether suggestion are visible")),ZN="historyNavigationWidgetFocus",w9="historyNavigationForwardsEnabled",S9="historyNavigationBackwardsEnabled";let ml;const w0=[];function y9(o,e){if(w0.includes(e))throw new Error("Cannot register the same widget multiple times");w0.push(e);const t=new Z,i=new ce(ZN,!1).bindTo(o),n=new ce(w9,!0).bindTo(o),s=new ce(S9,!0).bindTo(o),r=()=>{i.set(!0),ml=e},a=()=>{i.set(!1),ml===e&&(ml=void 0)};return e.element===document.activeElement&&r(),t.add(e.onDidFocus(()=>r())),t.add(e.onDidBlur(()=>a())),t.add(Pe(()=>{w0.splice(w0.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:s,dispose(){t.dispose()}}}let uI=class extends u7{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(y9(s,this.inputBox))}};uI=v9([C9(3,Ee)],uI);let gI=class extends gae{constructor(e,t,i,n,s=!1){super(e,t,s,i);const r=this._register(n.createScoped(this.inputBox.element));this._register(y9(r,this.inputBox))}};gI=v9([C9(3,Ee)],gI);is.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:oe.and(oe.has(ZN),oe.equals(S9,!0),GN.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{ml==null||ml.showPreviousValue()}});is.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:oe.and(oe.has(ZN),oe.equals(w9,!0),GN.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{ml==null||ml.showNextValue()}});var gm=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Ge={Visible:GN,HasFocusedSuggestion:new ce("suggestWidgetHasFocusedSuggestion",!1,f("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new ce("suggestWidgetDetailsVisible",!1,f("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new ce("suggestWidgetMultipleSuggestions",!1,f("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new ce("suggestionMakesTextEdit",!0,f("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new ce("acceptSuggestionOnEnter",!0,f("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new ce("suggestionHasInsertAndReplaceRange",!1,f("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new ce("suggestionInsertMode",void 0,{type:"string",description:f("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new ce("suggestionCanResolve",!1,f("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},wc=new T("suggestWidgetStatusBar");class fae{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=_r.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,y.isIRange(t.range)?(this.editStart=new W(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new W(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new W(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new W(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new W(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new W(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range.insert)||y.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof n.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return gm(this,void 0,void 0,function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(i=>{Object.assign(this.completion,i),this._isResolved=!0,t.dispose()},i=>{Da(i)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class __{constructor(e=2,t=new Set,i=new Set,n=new Map,s=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=s}}__.default=new __;let pae;function mae(){return pae}class _ae{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function YN(o,e,t,i=__.default,n={triggerKind:0},s=Ye.None){return gm(this,void 0,void 0,function*(){const r=new ts(!0);t=t.clone();const a=e.getWordAtPosition(t),l=a?new y(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):y.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],h=new Z,u=[];let g=!1;const p=(_,v,b)=>{var C,S,x;let E=!1;if(!v)return E;for(const L of v.suggestions)if(!i.kindFilter.has(L.kind)){if(!i.showDeprecated&&(!((C=L==null?void 0:L.tags)===null||C===void 0)&&C.includes(1)))continue;L.range||(L.range=c),L.sortText||(L.sortText=typeof L.label=="string"?L.label:L.label.label),!g&&L.insertTextRules&&L.insertTextRules&4&&(g=Hc.guessNeedsClipboard(L.insertText)),d.push(new fae(t,L,v,_)),E=!0}return wE(v)&&h.add(v),u.push({providerName:(S=_._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(x=v.duration)!==null&&x!==void 0?x:-1,elapsedOverall:b.elapsed()}),E},m=(()=>gm(this,void 0,void 0,function*(){}))();for(const _ of o.orderedGroups(e)){let v=!1;if(yield Promise.all(_.map(b=>gm(this,void 0,void 0,function*(){if(i.providerItemsToReuse.has(b)){const C=i.providerItemsToReuse.get(b);C.forEach(S=>d.push(S)),v=v||C.length>0;return}if(!(i.providerFilter.size>0&&!i.providerFilter.has(b)))try{const C=new ts(!0),S=yield b.provideCompletionItems(e,t,n,s);v=p(b,S,C)||v}catch(C){Vi(C)}}))),v||s.isCancellationRequested)break}return yield m,s.isCancellationRequested?(h.dispose(),Promise.reject(new qc)):new _ae(d.sort(Cae(i.snippetSortOrder)),g,{entries:u,elapsed:r.elapsed()},h)})}function QN(o,e){if(o.sortTextLow&&e.sortTextLow){if(o.sortTextLowe.sortTextLow)return 1}return o.textLabele.textLabel?1:o.completion.kind-e.completion.kind}function bae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return QN(o,e)}function vae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return QN(o,e)}const Qw=new Map;Qw.set(0,bae);Qw.set(2,vae);Qw.set(1,QN);function Cae(o){return Qw.get(o)}st.registerCommand("_executeCompletionItemProvider",(o,...e)=>gm(void 0,void 0,void 0,function*(){const[t,i,n,s]=e;_t(Ce.isUri(t)),_t(W.isIPosition(i)),_t(typeof n=="string"||!n),_t(typeof s=="number"||!s);const{completionProvider:r}=o.get(ge),a=yield o.get(os).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},c=[],d=yield YN(r,a.object.textEditorModel,W.lift(i),void 0,{triggerCharacter:n??void 0,triggerKind:n?1:0});for(const h of d.items)c.length<(s??0)&&c.push(h.resolve(Ye.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>d.disposable.dispose(),100)}}finally{a.dispose()}}));function wae(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class sg{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}var XN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},r1=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const tO=X;let a1=class fI extends U{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(ih,this._editor)),this._currentResult=null,this._participants=[];for(const n of ou.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,s)=>n.hoverOrdinal-s.hoverOrdinal),this._computer=new l1(this._editor,this._participants),this._hoverOperation=this._register(new _9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{if(!this._computer.anchor)return;const s=n.hasLoadingMessage?this._addLoadingMessage(n.value):n.value;this._withResult(new L9(this._computer.anchor,s,n.isComplete))})),this._register(hi(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(Kt.onDidChange(()=>{this._widget.position&&this._currentResult&&(this._widget.clear(),this._setCurrentResult(this._currentResult))}))}maybeShowAt(e){const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const s=n.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new vL(0,i.range,e.event.posx,e.event.posy)),i.type===7){const n=this._editor.getOption(47).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexts.priority-n.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new vL(0,e,void 0,void 0),t,i,n,null)}_startShowingOrUpdateHover(e,t,i,n,s){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):!1:this._editor.getOption(57).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}isColorPickerVisible(){return this._widget.isColorPickerVisible}isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}containsNode(e){return this._widget.getDomNode().contains(e)}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:n,highlightRange:s}=fI.computeHoverRanges(this._editor,e.range,t),r=new Z,a=r.add(new pI(this._keybindingService)),l=document.createDocumentFragment();let c=null;const d={fragment:l,statusBar:a,setColorPicker:u=>c=u,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const u of this._participants){const g=t.filter(p=>p.owner===u);g.length>0&&r.add(u.renderHoverParts(d,g))}const h=t.some(u=>u.isBeforeContent);if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const u=this._editor.createDecorationsCollection();u.set([{range:s,options:fI._DECORATION_OPTIONS}]),r.add(Pe(()=>{u.clear()}))}this._widget.showAt(l,new yae(c,i,n,this._editor.getOption(57).above,this._computer.shouldFocus,this._computer.source,h,e.initialMousePosX,e.initialMousePosY,r))}else r.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const c=e._getViewModel(),d=c.coordinatesConverter,h=d.convertModelRangeToViewRange(t),u=new W(h.startLineNumber,c.getLineMinColumn(h.startLineNumber));n=d.convertViewPositionToModelPosition(u).column}const s=t.startLineNumber;let r=t.startColumn,a=i[0].range,l=null;for(const c of i)a=y.plusRange(a,c.range),c.range.startLineNumber===s&&c.range.endLineNumber===s&&(r=Math.max(Math.min(r,c.range.startColumn),n)),c.forceShowAtRange&&(l=c.range);return{showAtPosition:l?l.getStartPosition():new W(s,t.startColumn),showAtSecondaryPosition:l?l.getStartPosition():new W(s,r),highlightRange:a}}};a1._DECORATION_OPTIONS=Re.register({description:"content-hover-highlight",className:"hoverHighlight"});a1=XN([r1(1,Me),r1(2,ei)],a1);class L9{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter(i=>i.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new Sae(this,this.anchor,t,this.isComplete)}}class Sae extends L9{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class yae{constructor(e,t,i,n,s,r,a,l,c,d){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=i,this.preferAbove=n,this.stoleFocus=s,this.source=r,this.isBeforeContent=a,this.initialMousePosX=l,this.initialMousePosY=c,this.disposables=d,this.closestMouseDistance=void 0}}let ih=class D9 extends U{get position(){var e,t;return(t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition)!==null&&t!==void 0?t:null}get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=N.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new m9),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(47)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return D9.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;!e&&this._contextKeyService.getContextKeyValue(Ge.Visible.key)&&(e=!0);const t=this._visibleData.isBeforeContent?3:void 0;return{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,preference:e?[1,2]:[2,1],positionAffinity:t}}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if(typeof this._visibleData.initialMousePosX>"u"||typeof this._visibleData.initialMousePosY>"u")return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const i=Fi(this.getDomNode());typeof this._visibleData.closestMouseDistance>"u"&&(this._visibleData.closestMouseDistance=iO(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const n=iO(e,t,i.left,i.top,i.width,i.height);return n>this._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,n),!0)}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(47);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${i/t}`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}showAt(e,t){var i;this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(i=t.colorPicker)===null||i===void 0||i.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const i=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==i&&(this._hover.contentsDomNode.style.paddingBottom=i,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};ih.ID="editor.contrib.contentHoverWidget";ih=XN([r1(1,Ee)],ih);let pI=class extends U{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=tO("div.hover-row.status-bar"),this.actionsElement=q(this.hoverElement,tO("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(KN.render(this.actionsElement,e,i))}append(e){const t=q(this.actionsElement,e);return this._hasContent=!0,t}};pI=XN([r1(0,ei)],pI);class l1{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:s;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return pi.EMPTY;const i=l1._getLineDecorations(this._editor,t);return pi.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):pi.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=l1._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return mf(t)}}function iO(o,e,t,i,n,s){const r=t+n/2,a=i+s/2,l=Math.max(Math.abs(o-r)-n/2,0),c=Math.max(Math.abs(e-a)-s/2,0);return Math.sqrt(l*l+c*c)}var Lae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},x9=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},CL;let Ll=class k9{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new O,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new Z;return{element:n.add(C3(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(i,n)=>x9(this,void 0,void 0,function*(){var s,r,a;let l;i?l=this._languageService.getLanguageIdByLanguageName(i):this._options.editor&&(l=(s=this._options.editor.getModel())===null||s===void 0?void 0:s.getLanguageId()),l||(l=Vs);const c=yield kY(this._languageService,n,l),d=document.createElement("span");if(d.innerHTML=(a=(r=k9._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(c))!==null&&a!==void 0?a:c,this._options.editor){const h=this._options.editor.getOption(47);Yi(d,h)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(d.style.fontSize=this._options.codeBlockFontSize),d}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>Dae(this._openerService,i,e.isTrusted),disposables:t}}}};Ll._ttpTokenizer=(CL=window.trustedTypes)===null||CL===void 0?void 0:CL.createPolicy("tokenizeToString",{createHTML(o){return o}});Ll=Lae([nO(1,Ut),nO(2,vo)],Ll);function Dae(o,e,t){return x9(this,void 0,void 0,function*(){try{return yield o.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:xae(t)})}catch(i){return Oe(i),!1}})}function xae(o){return o===!0?!0:o&&Array.isArray(o.enabledCommands)?o.enabledCommands:!1}const sO=X;class xg extends U{constructor(e,t,i){super(),this._renderDisposeables=this._register(new Z),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new m9),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Ll({editor:this._editor},t,i)),this._computer=new kae(this._editor),this._hoverOperation=this._register(new _9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(47)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return xg.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const s=sO("div.hover-row.markdown-hover"),r=q(s,sO("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));r.appendChild(a.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(63),r=this._hover.containerDomNode.clientHeight,a=i-n-(r-s)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}}xg.ID="editor.contrib.modesGlyphHoverWidget";class kae{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){const e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const s=n.options.glyphMarginHoverMessage;!s||Zg(s)||i.push(...vE(s).map(e))}return i}}var Iae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Eae{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Tae(o,e,t,i,n){return Iae(this,void 0,void 0,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Mae(s))return new Eae(o,s,e)}catch(s){Vi(s)}})}function JN(o,e,t,i){const s=o.ordered(e).map((r,a)=>Tae(r,a,e,t,i));return pi.fromPromises(s).coalesce()}function Nae(o,e,t,i){return JN(o,e,t,i).map(n=>n.hover).toPromise()}Ta("_executeHoverProvider",(o,e,t)=>{const i=o.get(ge);return Nae(i.hoverProvider,e,t,Ye.None)});function Mae(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Aae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},S0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const oO=X;class rr{constructor(e,t,i,n,s){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=s}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let c1=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=2}createLoadingMessage(e){return new rr(this,e.range,[new Yn().appendText(f("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];let a=1e3;const l=i.getLineLength(n),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),d=this._editor.getOption(111),h=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});let u=!1;d>=0&&l>d&&e.range.startColumn>=d&&(u=!0,r.push(new rr(this,e.range,[{value:f("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!u&&typeof h=="number"&&l>=h&&r.push(new rr(this,e.range,[{value:f("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let g=!1;for(const p of t){const m=p.range.startLineNumber===n?p.range.startColumn:1,_=p.range.endLineNumber===n?p.range.endColumn:s,v=p.options.hoverMessage;if(!v||Zg(v))continue;p.options.beforeContentClassName&&(g=!0);const b=new y(e.range.startLineNumber,m,e.range.startLineNumber,_);r.push(new rr(this,b,vE(v),g,a++))}return r}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return pi.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return pi.EMPTY;const s=new W(e.range.startLineNumber,e.range.startColumn);return JN(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!Zg(r.hover.contents)).map(r=>{const a=r.hover.range?y.lift(r.hover.range):e.range;return new rr(this,a,r.hover.contents,!1,r.ordinal)})}renderHoverParts(e,t){return I9(e,t,this._editor,this._languageService,this._openerService)}};c1=Aae([S0(1,Ut),S0(2,vo),S0(3,at),S0(4,ge)],c1);function I9(o,e,t,i,n){e.sort((r,a)=>r.ordinal-a.ordinal);const s=new Z;for(const r of e)for(const a of r.contents){if(Zg(a))continue;const l=oO("div.hover-row.markdown-hover"),c=q(l,oO("div.hover-contents")),d=s.add(new Ll({editor:t},i,n));s.add(d.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(d.render(a));c.appendChild(h.element),o.fragment.appendChild(l)}return s}var E9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},d1=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class rO{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let mI=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._dispoables=new Z,this._markers=[],this._nextIdx=-1,Ce.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(a,l)=>{let c=Sm(a.resource.toString(),l.resource.toString());return c===0&&(n==="position"?c=y.compareRangesUsingStarts(a,l)||qt.compare(a.severity,l.severity):c=qt.compare(a.severity,l.severity)||y.compareRangesUsingStarts(a,l)),c},r=()=>{this._markers=this._markerService.read({resource:Ce.isUri(e)?e:void 0,severities:qt.Error|qt.Warning|qt.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(r(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new rO(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex(r=>r.resource.toString()===e.uri.toString());s<0&&(s=bm(this._markers,{resource:e.uri},(r,a)=>Sm(r.resource.toString(),a.resource.toString())),s<0&&(s=~s));for(let r=s;rn.resource.toString()===e.toString());if(!(i<0)){for(;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Pae{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Z,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(hi(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new p5(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{r.style.left=`-${a.scrollLeft}px`,r.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){ft(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let r=((t==null?void 0:t.length)||0)+2;s&&(typeof s=="string"?r+=s.length:r+=s.value.length);const a=ma(i);this._lines=a.length,this._longestLineLength=0;for(const u of a)this._longestLineLength=Math.max(u.length+r,this._longestLineLength);xi(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const u of a)l=document.createElement("div"),l.innerText=u,u===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||s){const u=document.createElement("span");if(u.classList.add("details"),l.appendChild(u),t){const g=document.createElement("span");g.innerText=t,g.classList.add("source"),u.appendChild(g)}if(s)if(typeof s=="string"){const g=document.createElement("span");g.innerText=`(${s})`,g.classList.add("code"),u.appendChild(g)}else{this._codeLink=X("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=p=>{this._openerService.open(s.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()};const g=q(this._codeLink,X("span"));g.innerText=s.value,u.appendChild(this._codeLink)}}if(xi(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Cn(n)){const u=this._relatedBlock.appendChild(document.createElement("div"));u.style.paddingTop=`${Math.floor(this._editor.getOption(63)*.66)}px`,this._lines+=1;for(const g of n){const p=document.createElement("div"),m=document.createElement("a");m.classList.add("filename"),m.innerText=`${this._labelService.getUriBasenameLabel(g.resource)}(${g.startLineNumber}, ${g.startColumn}): `,m.title=this._labelService.getUriLabel(g.resource),this._relatedDiagnostics.set(m,g);const _=document.createElement("span");_.innerText=g.message,p.appendChild(m),p.appendChild(_),this._lines+=1,u.appendChild(p)}}const c=this._editor.getOption(47),d=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case qt.Error:t=f("Error","Error");break;case qt.Warning:t=f("Warning","Warning");break;case qt.Info:t=f("Info","Info");break;case qt.Hint:t=f("Hint","Hint");break}let i=f("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let af=class N9 extends o1{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new Z,this._onDidSelectRelatedInformation=new O,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=qt.Warning,this._backgroundColor=H.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Wae);let t=vI,i=Oae;this._severity===qt.Warning?(t=_v,i=Fae):this._severity===qt.Info&&(t=CI,i=Bae);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(J8),secondaryHeadingColor:e.getColor(e9)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(n=>this.editor.focus()));const t=[],i=this._menuService.createMenu(N9.TitleMenu,this._contextKeyService);J3(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=q(e,X(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Pae(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=y.lift(e),s=this.editor.getPosition(),r=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(r,this.computeRequiredHeight());const a=this.editor.getModel();if(a){const l=i>1?f("problems","{0} of {1} problems",t,i):f("change","{0} of {1} problem",t,i);this.setTitle(uo(a.uri),l)}this._icon.className=`codicon ${bI.className(qt.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};af.TitleMenu=new T("gotoErrorTitleMenu");af=Rae([yu(1,Hi),yu(2,vo),yu(3,Ea),yu(4,Me),yu(5,Ee),yu(6,Yg)],af);const aO=Am(ia,sj),lO=Am(Fs,Mm),cO=Am(es,gx),vI=M("editorMarkerNavigationError.background",{dark:aO,light:aO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationError","Editor marker navigation widget error color.")),Oae=M("editorMarkerNavigationError.headerBackground",{dark:pe(vI,.1),light:pe(vI,.1),hcDark:null,hcLight:null},f("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),_v=M("editorMarkerNavigationWarning.background",{dark:lO,light:lO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Fae=M("editorMarkerNavigationWarning.headerBackground",{dark:pe(_v,.1),light:pe(_v,.1),hcDark:"#0C141F",hcLight:pe(_v,.2)},f("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),CI=M("editorMarkerNavigationInfo.background",{dark:cO,light:cO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Bae=M("editorMarkerNavigationInfo.headerBackground",{dark:pe(CI,.1),light:pe(CI,.1),hcDark:null,hcLight:null},f("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Wae=M("editorMarkerNavigation.background",{dark:Ti,light:Ti,hcDark:Ti,hcLight:Ti},f("editorMarkerNavigationBackground","Editor marker navigation widget background."));var Vae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},y0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},M9=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let zc=class bv{static get(e){return e.getContribution(bv.ID)}constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new Z,this._editor=e,this._widgetVisible=A9.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(af,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(i=>{var n,s,r;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!y.containsPosition((s=this._model)===null||s===void 0?void 0:s.selected.marker,i.position))&&((r=this._model)===null||r===void 0||r.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const i=this._model.find(this._editor.getModel().uri,this._widget.position);i?this._widget.updateMarker(i.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(i=>{this._editorService.openCodeEditor({resource:i.resource,options:{pinned:!0,revealIfOpened:!0,selection:y.lift(i).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new W(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var i,n;return M9(this,void 0,void 0,function*(){if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&((i=bv.get(r))===null||i===void 0||i.close(),(n=bv.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};zc.ID="editor.contrib.markerController";zc=Vae([y0(1,T9),y0(2,Ee),y0(3,ut),y0(4,Me)],zc);class Xw extends de{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return M9(this,void 0,void 0,function*(){t.hasModel()&&((i=zc.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class Sc extends Xw{constructor(){super(!0,!1,{id:Sc.ID,label:Sc.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:578,weight:100},menuOpts:{menuId:af.TitleMenu,title:Sc.LABEL,icon:gi("marker-navigation-next",se.arrowDown,f("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Sc.ID="editor.action.marker.next";Sc.LABEL=f("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class nh extends Xw{constructor(){super(!1,!1,{id:nh.ID,label:nh.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1602,weight:100},menuOpts:{menuId:af.TitleMenu,title:nh.LABEL,icon:gi("marker-navigation-previous",se.arrowUp,f("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}nh.ID="editor.action.marker.prev";nh.LABEL=f("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class Hae extends Xw{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:f("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:66,weight:100},menuOpts:{menuId:T.MenubarGoMenu,title:f({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class zae extends Xw{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:f("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1090,weight:100},menuOpts:{menuId:T.MenubarGoMenu,title:f({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}lt(zc.ID,zc,4);J(Sc);J(nh);J(Hae);J(zae);const A9=new ce("markersNavigationVisible",!1),Uae=Ji.bindToContribution(zc.get);ie(new Uae({id:"closeMarkersNavigation",precondition:A9,handler:o=>o.close(),kbOpts:{weight:100+50,kbExpr:N.focus,primary:9,secondary:[1033]}}));var $ae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const yo=X;class jae{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const dO={type:1,filter:{include:Te.QuickFix},triggerAction:ns.QuickFixHover};let wI=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];for(const a of t){const l=a.range.startLineNumber===n?a.range.startColumn:1,c=a.range.endLineNumber===n?a.range.endColumn:s,d=this._markerDecorationsService.getMarker(i.uri,a);if(!d)continue;const h=new y(e.range.startLineNumber,l,e.range.startLineNumber,c);r.push(new jae(this,h,d))}return r}renderHoverParts(e,t){if(!t.length)return U.None;const i=new Z;t.forEach(s=>e.fragment.appendChild(this.renderMarkerHover(s,i)));const n=t.length===1?t[0]:t.sort((s,r)=>qt.compare(s.marker.severity,r.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=yo("div.hover-row"),n=q(i,yo("div.marker.hover-contents")),{source:s,message:r,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);const c=q(n,yo("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=r,s||a)if(a&&typeof a!="string"){const d=yo("span");if(s){const p=q(d,yo("span"));p.innerText=s}const h=q(d,yo("a.code-link"));h.setAttribute("href",a.target.toString()),t.add(K(h,"click",p=>{this._openerService.open(a.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()}));const u=q(h,yo("span"));u.innerText=a.value;const g=q(n,d);g.style.opacity="0.6",g.style.paddingLeft="6px"}else{const d=q(n,yo("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(Cn(l))for(const{message:d,resource:h,startLineNumber:u,startColumn:g}of l){const p=q(n,yo("div"));p.style.marginTop="8px";const m=q(p,yo("a"));m.innerText=`${uo(h)}(${u}, ${g}): `,m.style.cursor="pointer",t.add(K(m,"click",v=>{v.stopPropagation(),v.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(Oe)}));const _=q(p,yo("span"));_.innerText=d,this._editor.applyFontInfo(_)}return i}renderMarkerStatusbar(e,t,i){if((t.marker.severity===qt.Error||t.marker.severity===qt.Warning||t.marker.severity===qt.Info)&&e.statusBar.addAction({label:f("view problem","View Problem"),commandId:Sc.ID,run:()=>{var n;e.hide(),(n=zc.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(86)){const n=e.statusBar.append(yo("div"));this.recentMarkerCodeActionsInfo&&(UC.makeKey(this.recentMarkerCodeActionsInfo.marker)===UC.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=f("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?U.None:i.add(dh(()=>n.textContent=f("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add(Pe(()=>r.cancel())),r.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=f("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Pe(()=>{l||a.dispose()})),e.statusBar.addAction({label:f("quick fixes","Quick Fix..."),commandId:Nf.Id,run:c=>{l=!0;const d=kh.get(this._editor),h=Fi(c);e.hide(),d==null||d.showCodeActions(dO,a,{x:h.left+6,y:h.top+h.height+6,width:h.width,height:h.height})}})},Oe)}}getCodeActions(e){return Wi(t=>UN(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),dO,Qh.None,t))}};wI=$ae([wL(1,iT),wL(2,vo),wL(3,ge)],wI);const R9="editor.action.inlineSuggest.commit",P9="editor.action.inlineSuggest.showPrevious",O9="editor.action.inlineSuggest.showNext";var Kae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class qae extends U{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new ZW),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new Z,this.options=i,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new b_(()=>{var n;return(n=this.toggleMenuActionViewItem)===null||n===void 0?void 0:n.show()},i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new go(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,actionViewItemProvider:(n,s)=>{var r;if(n.id===b_.ID)return this.toggleMenuActionViewItem=new OC(n,n.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:De.asClassNameArray((r=i.moreIcon)!==null&&r!==void 0?r:se.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const a=i.actionViewItemProvider(n,s);if(a)return a}if(n instanceof Hg){const a=new OC(n,n.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:n.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement});return a.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(a),this.disposables.add(this._onDidChangeDropdownVisibility.add(a.onDidChangeVisibility)),a}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach(n=>{this.actionBar.push(n,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(n)})})}getKeybindingLabel(e){var t,i;const n=this.lookupKeybindings?(i=(t=this.options).getKeyBinding)===null||i===void 0?void 0:i.call(t,e):void 0;return an(n==null?void 0:n.getLabel())}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}}class b_ extends ms{constructor(e,t){t=t||f("moreActions","More Actions..."),super(b_.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return Kae(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}b_.ID="toolbar.toggle.more";var Gae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},rp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let SI=class extends qae{constructor(e,t,i,n,s,r,a){super(e,s,Object.assign(Object.assign({getKeyBinding:l=>{var c;return(c=r.lookupKeybinding(l.id))!==null&&c!==void 0?c:void 0}},t),{allowContextMenu:!0})),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=s,this._sessionDisposables=this._store.add(new Z),t!=null&&t.telemetrySource&&this._store.add(this.actionBar.onDidRun(l=>a.publicLog2("workbenchActionExecuted",{id:l.action.id,from:t.telemetrySource})))}setActions(e,t=[],i){var n,s,r;this._sessionDisposables.clear();const a=e.slice(),l=t.slice(),c=[];let d=0;const h=[];let u=!1;if(((n=this._options)===null||n===void 0?void 0:n.hiddenItemStrategy)!==-1)for(let g=0;g=this._options.maxNumberOfItems&&(a[p]=void 0,h[p]=m)}}T2(a),T2(h),super.setActions(a,Bi.join(h,l)),c.length>0&&this._sessionDisposables.add(K(this.getElement(),"contextmenu",g=>{var p,m,_,v;const b=this.getItemAction(g.target);if(!b)return;g.preventDefault(),g.stopPropagation();let C=!1;if(d===1&&((p=this._options)===null||p===void 0?void 0:p.hiddenItemStrategy)===0){C=!0;for(let E=0;Ethis._menuService.resetHiddenStates(i)}))),this._contextMenuService.showContextMenu({getAnchor:()=>g,getActions:()=>x,menuId:(_=this._options)===null||_===void 0?void 0:_.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(v=this._options)===null||v===void 0?void 0:v.menuOptions),contextKeyService:this._contextKeyService})}))}};SI=Gae([rp(2,Ea),rp(3,Ee),rp(4,xr),rp(5,ei),rp(6,mo)],SI);var F9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qr=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Zae=gi("inline-suggestion-hints-next",se.chevronRight,f("parameterHintsNextIcon","Icon for show next parameter hint.")),Yae=gi("inline-suggestion-hints-previous",se.chevronLeft,f("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Th=class yI extends U{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new ms(e,t,i,!0,()=>this._commandService.executeCommand(e)),s=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return s&&(r=f({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,s.getLabel())),n.tooltip=r,n}constructor(e,t,i,n,s,r,a){super(),this.editor=e,this.withBorder=t,this._commandService=i,this.keybindingService=s,this._contextKeyService=r,this._menuService=a,this.id=`InlineSuggestionHintsContentWidget${yI.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=vp("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[vp("div",{style:{display:"flex"}},[vp("div@actionBar",{className:"custom-actions"}),vp("div@toolBar")])]),this.position=null,this.previousAction=this.createCommandAction(P9,f("previous","Previous"),De.asClassName(Yae)),this.availableSuggestionCountAction=new ms("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(O9,f("next","Next"),De.asClassName(Zae)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(T.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new wt(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new wt(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100));const l=this._register(new go(this.nodes.actionBar));l.push(this.previousAction,{icon:!0,label:!1}),l.push(this.availableSuggestionCountAction),l.push(this.nextAction,{icon:!0,label:!1}),this.toolBar=this._register(n.createInstance(LI,this.nodes.toolBar,T.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:c=>c.startsWith("primary")},actionViewItemProvider:(c,d)=>c instanceof Vo?n.createInstance(Qae,c,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(c=>{yI._dropDownVisible=c}))}update(e,t,i,n){this.position=e,i!==void 0&&i>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule(),i!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${t+1}/${i}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),this.editor.layoutContentWidget(this);const s=n.map(r=>({class:void 0,id:r.id,enabled:!0,tooltip:r.tooltip||"",label:r.title,run:a=>this._commandService.executeCommand(r.id)}));for(const[r,a]of this.inlineCompletionsActionsMenus.getActions())for(const l of a)l instanceof Vo&&s.push(l);s.length>0&&s.unshift(new Bi),this.toolBar.setAdditionalSecondaryActions(s)}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this.position,preference:[1,2],positionAffinity:3}}};Th._dropDownVisible=!1;Th.id=0;Th=F9([Qr(2,ri),Qr(3,Me),Qr(4,ei),Qr(5,Ee),Qr(6,Ea)],Th);let Qae=class extends bh{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=vp("div.keybinding").root;new nb(t,Ps,{disableTitle:!0}).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},LI=class extends SI{constructor(e,t,i,n,s,r,a,l){super(e,Object.assign({resetMenu:t},i),n,s,r,a,l),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,r,a;const l=[],c=[];J3(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:c},(i=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||i===void 0?void 0:i.primaryGroup,(s=(n=this.options2)===null||n===void 0?void 0:n.toolbarOptions)===null||s===void 0?void 0:s.shouldInlineSubmenu,(a=(r=this.options2)===null||r===void 0?void 0:r.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),c.push(...this.additionalActions),this.setActions(l,c)}setAdditionalSecondaryActions(e){this.additionalActions=e,this.updateToolbar()}};LI=F9([Qr(3,Ea),Qr(4,Ee),Qr(5,xr),Qr(6,ei),Qr(7,mo)],LI);var Xae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},L0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Uc=class B9{static get(e){return e.getContribution(B9.ID)}constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._toUnhook=new Z,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(r=>{r.hasChanged(57)&&(this._unhookEvents(),this._hookEvents())})}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(57);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._toUnhook.add(this._editor.onMouseUp(i=>this._onEditorMouseUp(i))),this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))):(this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))),this._toUnhook.add(this._editor.onMouseLeave(i=>this._onEditorMouseLeave(i))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(i=>this._onEditorScrollChanged(i)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;if(t.type===9&&t.detail===ih.ID){this._hoverClicked=!0;return}t.type===12&&t.detail===xg.ID||(t.type!==12&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;const i=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.containsNode(i)||this._hideWidgets()}_onEditorMouseMove(e){var t,i,n,s,r,a;const l=e.target;if(this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&l.type===9&&l.detail===ih.ID||this._isHoverSticky&&!(!((i=(t=e.event.browserEvent.view)===null||t===void 0?void 0:t.getSelection())===null||i===void 0)&&i.isCollapsed)||!this._isHoverSticky&&l.type===9&&l.detail===ih.ID&&(!((n=this._contentWidget)===null||n===void 0)&&n.isColorPickerVisible())||this._isHoverSticky&&l.type===12&&l.detail===xg.ID||this._isHoverSticky&&(!((s=this._contentWidget)===null||s===void 0)&&s.isVisibleFromKeyboard()))return;if(!this._isHoverEnabled){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(r=this._glyphWidget)===null||r===void 0||r.hide();return}if(l.type===2&&l.position){(a=this._contentWidget)===null||a===void 0||a.hide(),this._glyphWidget||(this._glyphWidget=new xg(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(l.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible())||Th.dropDownVisible||(this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(a1,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i,n){this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};Uc.ID="editor.contrib.hover";Uc=Xae([L0(1,Me),L0(2,vo),L0(3,Ut),L0(4,Ee)],Uc);class Jae extends de{constructor(){super({id:"editor.action.showHover",label:f({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=Uc.get(t);if(!i)return;const n=t.getPosition(),s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=t.getOption(2)===2;i.showContentHover(s,1,1,r)}}class ele extends de{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:f({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=Uc.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=Eh.get(t);if(!r)return;r.startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(s,1,1,!0)})}}lt(Uc.ID,Uc,2);J(Jae);J(ele);ou.register(c1);ou.register(wI);Ho((o,e)=>{const t=o.getColor(vj);t&&(e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${t.transparent(.5)}; }`))});class DI extends U{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=e.target;if(t.type!==6||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==q8||!t.range)return;const i=this._editor.getContribution(Uc.ID);if(i&&!i.isColorPickerVisible()){const n=new y(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(n,1,0,!1)}}}DI.ID="editor.contrib.colorContribution";lt(DI.ID,DI,2);ou.register(eI);const Jw=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;nW9(this,void 0,void 0,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function tle(o,e,t){return{id:Jw(),asString:()=>W9(this,void 0,void 0,function*(){return""}),asFile:()=>({name:o,uri:e,data:t}),value:void 0}}class V9{constructor(){this._entries=new Map}get size(){return this._entries.size}has(e){return this._entries.has(this.toKey(e))}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*entries(){for(const[e,t]of this._entries.entries())for(const i of t)yield[e,i]}values(){return Array.from(this._entries.values()).flat()}forEach(e){for(const[t,i]of this.entries())e(i,t)}toKey(e){return e.toLowerCase()}}const eS=Object.freeze({create:o=>Dc(o.map(e=>e.toString())).join(`\r +*-----------------------------------------------------------------------------*/var loe=Object.defineProperty,coe=Object.getOwnPropertyDescriptor,doe=Object.getOwnPropertyNames,hoe=Object.prototype.hasOwnProperty,BP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of doe(e))!hoe.call(o,n)&&n!==t&&loe(o,n,{get:()=>e[n],enumerable:!(i=coe(e,n))||i.enumerable});return o},uoe=(o,e,t)=>(BP(o,e,"default"),t&&BP(t,e,"default")),goe="4.5.5",sf={};uoe(sf,lb);var b8=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(b8||{}),v8=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(v8||{}),C8=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(C8||{}),w8=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(w8||{}),S8=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(S8||{}),y8=class{constructor(o,e,t,i,n){Zt(this,"_onDidChange",new sf.Emitter);Zt(this,"_onDidExtraLibsChange",new sf.Emitter);Zt(this,"_extraLibs");Zt(this,"_removedExtraLibs");Zt(this,"_eagerModelSync");Zt(this,"_compilerOptions");Zt(this,"_diagnosticsOptions");Zt(this,"_workerOptions");Zt(this,"_onDidExtraLibsChangeTimeout");Zt(this,"_inlayHintsOptions");Zt(this,"_modeConfiguration");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},foe=goe,L8={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},D8=new y8({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},L8),x8=new y8({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},L8),poe=()=>Bw().then(o=>o.getTypeScriptWorker()),moe=()=>Bw().then(o=>o.getJavaScriptWorker());sf.languages.typescript={ModuleKind:b8,JsxEmit:v8,NewLineKind:C8,ScriptTarget:w8,ModuleResolutionKind:S8,typescriptVersion:foe,typescriptDefaults:D8,javascriptDefaults:x8,getTypeScriptWorker:poe,getJavaScriptWorker:moe};function Bw(){return me(()=>import("./tsMode-c7f68c5d.js"),["assets/tsMode-c7f68c5d.js","assets/index-0c42270c.js","assets/index-dbf96a40.css"])}sf.languages.onLanguage("typescript",()=>Bw().then(o=>o.setupTypeScript(D8)));sf.languages.onLanguage("javascript",()=>Bw().then(o=>o.setupJavaScript(x8)));var _oe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},boe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ww=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Vw=new ce("selectionAnchorSet",!1);let yl=class k8{static get(e){return e.getContribution(k8.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Vw.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(he.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Yn().appendText(f("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),cn(f("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(he.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};yl.ID="editor.contrib.selectionAnchorController";yl=_oe([boe(1,Ee)],yl);class voe extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:f("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2080),weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class Coe extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:f("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Vw})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class woe extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:f("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Vw,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2089),weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class Soe extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:f("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Vw,kbOpts:{kbExpr:N.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}lt(yl.ID,yl,4);J(voe);J(Coe);J(woe);J(Soe);const yoe=M("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},f("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Loe extends de{constructor(){super({id:"editor.action.jumpToBracket",label:f("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=br.get(t))===null||i===void 0||i.jumpToBracket()}}class Doe extends de{constructor(){super({id:"editor.action.selectToBracket",label:f("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=br.get(t))===null||n===void 0||n.selectToBracket(s)}}class xoe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class br extends U{static get(e){return e.getContribution(br.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new wt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(68),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(68)&&(this._matchBrackets=this._editor.getOption(68),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new he(r.lineNumber,r.column,r.lineNumber,r.column):new he(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(y.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new he(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(W.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}J(Toe);var Noe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Lh="9_cutcopypaste",Moe=ur||document.queryCommandSupported("cut"),E8=ur||document.queryCommandSupported("copy"),Aoe=typeof navigator.clipboard>"u"||ro?document.queryCommandSupported("paste"):!0;function VN(o){return o.register(),o}const Roe=Moe?VN(new yf({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:ur?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.cutLabel","Cut"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1}]})):void 0,Poe=E8?VN(new yf({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:ur?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.copyLabel","Copy"),order:2},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.copyLabel","Copy"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Jn.appendMenuItem(T.MenubarEditMenu,{submenu:T.MenubarCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:Lh,order:3});Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextShare,title:{value:f("share","Share"),original:"Share"},group:"11_share",order:-1});const nL=Aoe?VN(new yf({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:ur?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4}]})):void 0;class Ooe extends de{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:f("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(34)&&t.getSelection().isEmpty()||(_x.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),_x.forceCopyWithSyntaxHighlighting=!1)}}function T8(o,e){o&&(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ut).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(34),r=n.getSelection();return r&&r.isEmpty()&&!s||document.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}T8(Roe,"cut");T8(Poe,"copy");nL&&(nL.addImplementation(1e4,"code-editor",(o,e)=>{const t=o.get(ut),i=o.get(Dl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Kc?(()=>Noe(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Bm.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=n.getOption(34)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),nL.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));E8&&J(Ooe);var Foe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Te{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Te.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Te(this.value+Te.sep+e)}}Te.sep=".";Te.None=new Te("@@none@@");Te.Empty=new Te("");Te.QuickFix=new Te("quickfix");Te.Refactor=new Te("refactor");Te.RefactorExtract=Te.Refactor.append("extract");Te.RefactorInline=Te.Refactor.append("inline");Te.RefactorMove=Te.Refactor.append("move");Te.RefactorRewrite=Te.Refactor.append("rewrite");Te.Source=new Te("source");Te.SourceOrganizeImports=Te.Source.append("organizeImports");Te.SourceFixAll=Te.Source.append("fixAll");Te.SurroundWith=Te.Refactor.append("surround");var ns;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(ns||(ns={}));function Boe(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>N8(e,t,o.include))||!o.includeSourceActions&&Te.Source.contains(e))}function Woe(o,e){const t=e.kind?new Te(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>N8(t,i,o.include))||!o.includeSourceActions&&t&&Te.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function N8(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class Yr{static fromUser(e,t){return!e||typeof e!="object"?new Yr(t.kind,t.apply,!1):new Yr(Yr.getKindFromUser(e,t.kind),Yr.getApplyFromUser(e,t.apply),Yr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Te(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class Voe{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return Foe(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Vi(n)}i&&(this.action.edit=i.edit)}return this})}}var t1=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const M8="editor.action.codeAction",A8="editor.action.refactor",Hoe="editor.action.refactor.preview",R8="editor.action.sourceAction",HN="editor.action.organizeImports",zN="editor.action.fixAll";class um extends U{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return Cn(e.diagnostics)?Cn(t.diagnostics)?um.codeActionsPreferredComparator(e,t):-1:Cn(t.diagnostics)?1:um.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(um.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Te.QuickFix.contains(new Te(e.kind))&&!!e.isPreferred)}}const WP={actions:[],documentation:void 0};function UN(o,e,t,i,n,s){var r;return t1(this,void 0,void 0,function*(){const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new AN(e,s),d=zoe(o,e,a),h=new Z,u=d.map(p=>t1(this,void 0,void 0,function*(){try{n.report(p);const m=yield p.provideCodeActions(e,t,l,c.token);if(m&&h.add(m),c.token.isCancellationRequested)return WP;const _=((m==null?void 0:m.actions)||[]).filter(b=>b&&Woe(a,b)),v=$oe(p,_,a.include);return{actions:_.map(b=>new Voe(b,p)),documentation:v}}catch(m){if(Da(m))throw m;return Vi(m),WP}})),g=o.onDidChange(()=>{const p=o.all(e);Bn(p,d)||c.cancel()});try{const p=yield Promise.all(u),m=p.map(v=>v.actions).flat(),_=[...mf(p.map(v=>v.documentation)),...Uoe(o,e,i,m)];return new um(m,_,h)}finally{g.dispose(),c.dispose()}})}function zoe(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>Boe(t,new Te(n))):!0)}function*Uoe(o,e,t,i){var n,s,r;if(e&&i.length)for(const a of o.all(e))a._getAdditionalMenuItems&&(yield*(n=a._getAdditionalMenuItems)===null||n===void 0?void 0:n.call(a,{trigger:t.type,only:(r=(s=t.filter)===null||s===void 0?void 0:s.include)===null||r===void 0?void 0:r.value},i.map(l=>l.action)))}function $oe(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Te(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const s of i)if(s.kind.contains(new Te(n.kind)))return s.command}}var i1;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions"})(i1||(i1={}));function joe(o,e,t,i,n=Ye.None){var s;return t1(this,void 0,void 0,function*(){const r=o.get(ib),a=o.get(ri),l=o.get(mo),c=o.get(_i);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(n),!n.isCancellationRequested&&!(!((s=e.action.edit)===null||s===void 0)&&s.edits.length&&!(yield r.apply(e.action.edit,{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==i1.OnSave,showPreview:i==null?void 0:i.preview})).isApplied)&&e.action.command)try{yield a.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(d){const h=Koe(d);c.error(typeof h=="string"?h:f("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function Koe(o){return typeof o=="string"?o:o instanceof Error&&typeof o.message=="string"?o.message:void 0}st.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return t1(this,void 0,void 0,function*(){if(!(e instanceof Ce))throw Po();const{codeActionProvider:s}=o.get(ge),r=o.get(jt).getModel(e);if(!r)throw Po();const a=he.isISelection(t)?he.liftSelection(t):y.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Po();const l=typeof i=="string"?new Te(i):void 0,c=yield UN(s,r,a,{type:1,triggerAction:ns.Default,filter:{includeSourceActions:!0,include:l}},Qh.None,Ye.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>c.dispose(),100)}})});var qoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Goe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let n1=class P8{constructor(e){this.keybindingService=e}getResolver(){const e=new $h(()=>this.keybindingService.getKeybindings().filter(t=>P8.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===HN?i={kind:Te.SourceOrganizeImports.value}:t.command===zN&&(i={kind:Te.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Yr.fromUser(i,{kind:Te.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Te(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}};n1.codeActionCommands=[A8,M8,R8,HN,zN];n1=qoe([Goe(0,ei)],n1);M("symbolIcon.arrayForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.booleanForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.colorForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constantForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fileForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.folderForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keyForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keywordForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.moduleForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.namespaceForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.nullForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.numberForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.objectForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.operatorForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.packageForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.propertyForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.referenceForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.snippetForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.stringForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.structForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.textForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.typeParameterForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.unitForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const O8=Object.freeze({kind:Te.Empty,title:f("codeAction.widget.id.more","More Actions...")}),Zoe=Object.freeze([{kind:Te.QuickFix,title:f("codeAction.widget.id.quickfix","Quick Fix...")},{kind:Te.RefactorExtract,title:f("codeAction.widget.id.extract","Extract..."),icon:se.wrench},{kind:Te.RefactorInline,title:f("codeAction.widget.id.inline","Inline..."),icon:se.wrench},{kind:Te.RefactorRewrite,title:f("codeAction.widget.id.convert","Rewrite..."),icon:se.wrench},{kind:Te.RefactorMove,title:f("codeAction.widget.id.move","Move..."),icon:se.wrench},{kind:Te.SurroundWith,title:f("codeAction.widget.id.surround","Surround With..."),icon:se.symbolSnippet},{kind:Te.Source,title:f("codeAction.widget.id.source","Source Action..."),icon:se.symbolFile},O8]);function Yoe(o,e,t){if(!e)return o.map(s=>({kind:"action",item:s,group:O8,disabled:!!s.action.disabled,label:s.action.disabled||s.action.title}));const i=Zoe.map(s=>({group:s,actions:[]}));for(const s of o){const r=s.action.kind?new Te(s.action.kind):Te.None;for(const a of i)if(a.group.kind.contains(r)){a.actions.push(s);break}}const n=[];for(const s of i)if(s.actions.length){n.push({kind:"header",group:s.group});for(const r of s.actions)n.push({kind:"action",item:r,group:s.group,label:r.action.title,disabled:!!r.action.disabled,keybinding:t(r.action)})}return n}var Qoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Xoe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Cs=class qk{static get(e){return e.getContribution(qk.ID)}constructor(e,t){this._messageWidget=new wn,this._messageListeners=new Z,this._editor=e,this._visible=qk.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){cn(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new VP(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new fo(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new y(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(VP.fadeOut(this._messageWidget.value))}};Cs.ID="editor.contrib.messageController";Cs.MESSAGE_VISIBLE=new ce("messageVisible",!1,f("messageVisible","Whether the editor is currently showing an inline message"));Cs=Qoe([Xoe(1,Ee)],Cs);const Joe=Ji.bindToContribution(Cs.get);ie(new Joe({id:"leaveEditorMessage",precondition:Cs.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:100+30,primary:9}}));let VP=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};lt(Cs.ID,Cs,4);var F8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gk=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const B8="acceptSelectedCodeAction",W8="previewSelectedCodeAction";class ere{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,s;i.text.textContent=(s=(n=e.group)===null||n===void 0?void 0:n.title)!==null&&s!==void 0?s:""}disposeTemplate(e){}}let Zk=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);const n=new nb(e,Ps);return{container:e,icon:t,text:i,keybinding:n}}renderElement(e,t,i){var n,s,r;if(!((n=e.group)===null||n===void 0)&&n.icon?(i.icon.className=De.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=re(e.group.icon.color.id))):(i.icon.className=De.asClassName(se.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=V8(e.label),e.keybinding?(i.keybinding.set(e.keybinding),hs(i.keybinding.element)):On(i.keybinding.element);const a=(s=this._keybindingService.lookupKeybinding(B8))===null||s===void 0?void 0:s.getLabel(),l=(r=this._keybindingService.lookupKeybinding(W8))===null||r===void 0?void 0:r.getLabel();if(i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&l?this._supportsPreview?i.container.title=f({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",a,l):i.container.title=f({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",a):i.container.title="",e.description){const c=new pl(q(i.container,X("span.label-description")));c.element.classList.add("action-list-description"),c.set(e.description)}}disposeTemplate(e){}};Zk=F8([Gk(1,ei)],Zk);class tre extends UIEvent{constructor(){super("acceptSelectedAction")}}class HP extends UIEvent{constructor(){super("previewSelectedAction")}}let Yk=class extends U{constructor(e,t,i,n,s,r){super(),this._delegate=n,this._contextViewService=s,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new Uo(e,this.domNode,a,[new Zk(t,this._keybindingService),new ere],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let c=l.label?V8(l==null?void 0:l.label):"";return l.disabled&&(c=f({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",c,l.disabled)),c}return null},getWidgetAriaLabel:()=>f({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(If),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this._list.domFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(c=>c.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);const s=this._allMenuItems.map((c,d)=>{const h=document.getElementById(this._list.getElementID(d));if(h){h.style.width="auto";const u=h.getBoundingClientRect().width;return h.style.width="",u}return 0}),r=Math.max(...s,e),a=.7,l=Math.min(n,document.body.clientHeight*a);return this._list.layout(l,r),this.domNode.style.height=`${l}px`,this._list.domFocus(),r}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new HP:new tre;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof HP):this._list.setSelection([])}onListHover(e){this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};Yk=F8([Gk(4,xl),Gk(5,ei)],Yk);function V8(o){return o.replace(/\r\n|\r|\n/g," ")}var ire=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Dh={Visible:new ce("codeActionMenuVisible",!1,f("codeActionMenuVisible","Whether the action widget list is visible"))},tu=Je("actionWidgetService");let xh=class extends U{get isVisible(){return Dh.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new wn)}show(e,t,i,n,s,r,a){const l=Dh.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(Yk,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:d=>(l.set(!0),this._renderWidget(d,c,a??[])),onHide:d=>{l.reset(),this._onWidgetClosed(d)}},r,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,i){var n;const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,this._list.value)s.appendChild(this._list.value.domNode);else throw new Error("List has no value");const r=new Z,a=document.createElement("div"),l=e.appendChild(a);l.classList.add("context-view-block"),r.add(K(l,ae.MOUSE_DOWN,p=>p.stopPropagation()));const c=document.createElement("div"),d=e.appendChild(c);d.classList.add("context-view-pointerBlock"),r.add(K(d,ae.POINTER_MOVE,()=>d.remove())),r.add(K(d,ae.MOUSE_DOWN,()=>d.remove()));let h=0;if(i.length){const p=this._createActionBar(".action-widget-action-bar",i);p&&(s.appendChild(p.getContainer().parentElement),r.add(p),h=p.getContainer().offsetWidth)}const u=(n=this._list.value)===null||n===void 0?void 0:n.layout(h);s.style.width=`${u}px`;const g=r.add(gh(e));return r.add(g.onDidBlur(()=>this.hide())),r}_createActionBar(e,t){if(!t.length)return;const i=X(e),n=new go(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};xh=ire([sL(0,xl),sL(1,Ee),sL(2,Me)],xh);ot(tu,xh,1);const db=100+1e3;Tn(class extends Yc{constructor(){super({id:"hideCodeActionWidget",title:{value:f("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:Dh.Visible,keybinding:{weight:db,primary:9,secondary:[1033]}})}run(o){o.get(tu).hide()}});Tn(class extends Yc{constructor(){super({id:"selectPrevCodeAction",title:{value:f("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:Dh.Visible,keybinding:{weight:db,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusPrevious()}});Tn(class extends Yc{constructor(){super({id:"selectNextCodeAction",title:{value:f("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:Dh.Visible,keybinding:{weight:db,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusNext()}});Tn(class extends Yc{constructor(){super({id:B8,title:{value:f("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:Dh.Visible,keybinding:{weight:db,primary:3,secondary:[2132]}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected()}});Tn(class extends Yc{constructor(){super({id:W8,title:{value:f("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:Dh.Visible,keybinding:{weight:db,primary:2051}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected(!0)}});var nre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sre=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},ng;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(ng||(ng={}));let s1=class H8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._onClick=this._register(new O),this.onClick=this._onClick.event,this._state=ng.Hidden,this._domNode=X("div.lightBulbWidget"),this._register(kt.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(s=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),this._register(JU(this._domNode,s=>{if(this.state.type!==1)return;this._editor.focus(),s.preventDefault();const{top:r,height:a}=Fi(this._domNode),l=this._editor.getOption(63);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(s.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(61)&&!this._editor.getOption(61).enabled&&this.hide()})),this._register(_e.runAndSubscribe(n.onDidUpdateKeybindings,()=>{var s,r;this._preferredKbLabel=an((s=n.lookupKeybinding(i))===null||s===void 0?void 0:s.getLabel()),this._quickFixKbLabel=an((r=n.lookupKeybinding(t))===null||r===void 0?void 0:r.getLabel()),this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(61).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,c=n.get(47),d=s.getLineContent(r),h=cw(d,l),u=c.spaceWidth*h>22,g=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let p=r;if(!u){if(r>1&&!g(r-1))p-=1;else if(!g(r+1))p+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new ng.Showing(e,t,i,{position:{lineNumber:p,column:1},preference:H8._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==ng.Hidden&&(this.state=ng.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(...De.asClassNameArray(se.lightBulb)),this._domNode.classList.add(...De.asClassNameArray(se.lightbulbAutofix)),this._preferredKbLabel)){this.title=f("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel);return}this._domNode.classList.remove(...De.asClassNameArray(se.lightbulbAutofix)),this._domNode.classList.add(...De.asClassNameArray(se.lightBulb)),this._quickFixKbLabel?this.title=f("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=f("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};s1._posPref=[0];s1=nre([sre(3,ei)],s1);var ore=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},b0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},oL=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},rre=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},are=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},fv;let Qk=class extends U{constructor(e,t,i,n,s,r,a,l){super(),this._editor=e,this.delegate=n,this._configurationService=r,this._actionWidgetService=a,this._commandService=l,this._activeCodeActions=this._register(new wn),fv.set(this,!1),this._showDisabled=!1,this._lightBulbWidget=new $h(()=>{const c=this._register(s.createInstance(s1,this._editor,t,i));return this._register(c.onClick(d=>this.showCodeActionList(d.actions,d,{includeDisabledActions:!1,fromLightbulb:!0}))),c}),this._resolver=s.createInstance(n1),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){rre(this,fv,!0,"f"),super.dispose()}update(e){var t,i,n,s,r;return oL(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let a;try{a=yield e.actions}catch(l){Oe(l);return}if(!are(this,fv,"f"))if(this._lightBulbWidget.value.update(a,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const c=this.tryGetValidActionToApply(e.trigger,a);if(c){try{this._lightBulbWidget.value.hide(),yield this.delegate.applyCodeAction(c,!1,!1)}finally{a.dispose()}return}if(e.trigger.context){const d=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(d&&d.action.disabled){(n=Cs.get(this._editor))===null||n===void 0||n.showMessage(d.action.disabled,e.trigger.context.position),a.dispose();return}}}const l=!!(!((s=e.trigger.filter)===null||s===void 0)&&s.include);if(e.trigger.context&&(!a.allActions.length||!l&&!a.validActions.length)){(r=Cs.get(this._editor))===null||r===void 0||r.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=a,a.dispose();return}this._activeCodeActions.value=a,this.showCodeActionList(a,this.toCoords(e.position),{includeDisabledActions:l,fromLightbulb:!1})}else this._actionWidgetService.isVisible?a.dispose():this._activeCodeActions.value=a})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,i){return oL(this,void 0,void 0,function*(){const n=this._editor.getDomNode();if(!n)return;const s=i.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!s.length)return;const r=W.isIPosition(t)?this.toCoords(t):t,a={onSelect:(l,c)=>oL(this,void 0,void 0,function*(){this.delegate.applyCodeAction(l,!0,c||!1),this._actionWidgetService.hide()}),onHide:()=>{var l;(l=this._editor)===null||l===void 0||l.focus()}};this._actionWidgetService.show("codeActionWidget",!0,Yoe(s,this._shouldShowHeaders(),this._resolver.getResolver()),a,r,n,this._getActionBarActions(e,t,i))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Fi(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}_shouldShowHeaders(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map(s=>{var r;return{id:s.id,label:s.title,tooltip:(r=s.tooltip)!==null&&r!==void 0?r:"",class:void 0,enabled:!0,run:()=>{var a;return this._commandService.executeCommand(s.id,...(a=s.commandArguments)!==null&&a!==void 0?a:[])}}});return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:f("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:f("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};fv=new WeakMap;Qk=ore([b0(4,Me),b0(5,at),b0(6,tu),b0(7,ri)],Qk);var rL=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},lre=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},Ru;const z8=new ce("supportedCodeAction","");class cre extends U{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new fo),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(i=>LT(i,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&e.type===2){const{lineNumber:n,column:s}=i.getPosition(),r=t.getLineContent(n);if(r.length===0)return;if(s===1){if(/\s/.test(r[0]))return}else if(s===t.getLineMaxColumn(n)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[s-2])&&/\s/.test(r[s-1]))return}return i}_createEventAndSignalChange(e,t){const i=this._editor.getModel();if(!t||!i){this._signalChange(void 0);return}const n={trigger:e,selection:t,position:t.getStartPosition()};return this._signalChange(n),n}}var Rd;(function(o){o.Empty={type:0};class e{constructor(i,n,s,r){this.trigger=i,this.rangeOrSelection=n,this.position=s,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(Da(a))return dre;throw a})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(Rd||(Rd={}));const dre={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class hre extends U{constructor(e,t,i,n,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._codeActionOracle=this._register(new wn),this._state=Rd.Empty,this._onDidChangeState=this._register(new O),this.onDidChangeState=this._onDidChangeState.event,Ru.set(this,!1),this._supportedCodeActions=z8.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){rL(this,Ru,"f")||(lre(this,Ru,!0,"f"),super.dispose(),this.setState(Rd.Empty,!0))}_update(){if(rL(this,Ru,"f"))return;this._codeActionOracle.value=void 0,this.setState(Rd.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(86)){const t=[];for(const i of this._registry.all(e))Array.isArray(i.providedCodeActionKinds)&&t.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new cre(this._editor,this._markerService,i=>{var n;if(!i){this.setState(Rd.Empty);return}const s=Wi(r=>UN(this._registry,e,i.selection,i.trigger,Qh.None,r));i.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(s,250)),this.setState(new Rd.Triggered(i.trigger,i.selection,i.position,s))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:ns.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!rL(this,Ru,"f")&&this._onDidChangeState.fire(e))}}Ru=new WeakMap;var ure=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},gre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function hb(o){return oe.regex(z8.keys()[0],new RegExp("(\\s|^)"+Hs(o.value)+"\\b"))}function U8(o,e,t,i){const n=Yr.fromUser(e,{kind:Te.Refactor,apply:"never"});return iu(o,typeof(e==null?void 0:e.kind)=="string"?n.preferred?f("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",e.kind):f("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",e.kind):n.preferred?f("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):f("editor.action.refactor.noneMessage","No refactorings available"),{include:Te.Refactor.contains(n.kind)?n.kind:Te.None,onlyIncludePreferredActions:n.preferred},n.apply,t,i)}const Hw={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:f("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:f("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[f("args.schema.apply.first","Always apply the first returned code action."),f("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),f("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:f("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let kh=class $8 extends U{static get(e){return e.getContribution($8.ID)}constructor(e,t,i,n,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new hre(this._editor,r.codeActionProvider,t,i,n)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new $h(()=>this._register(s.createInstance(Qk,e,Nf.Id,ub.Id,{applyCodeAction:(a,l,c)=>gre(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a,c)}finally{l&&this._trigger({type:2,triggerAction:ns.QuickFix,filter:{}})}})})))}update(e){this._ui.value.update(e)}showCodeActions(e,t,i){return this._ui.value.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n,s){var r;if(!this._editor.hasModel())return;(r=Cs.get(this._editor))===null||r===void 0||r.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:a},preview:s})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t){return this._instantiationService.invokeFunction(joe,e,i1.FromCodeActions,{preview:t,editor:this._editor})}};kh.ID="editor.contrib.codeActionController";kh=ure([sp(1,Na),sp(2,Ee),sp(3,ed),sp(4,Me),sp(5,ge)],kh);function iu(o,e,t,i,n=!1,s=ns.Default){if(o.hasModel()){const r=kh.get(o);r==null||r.manualTriggerAtCurrentPosition(e,s,t,i,n)}}class Nf extends de{constructor(){super({id:Nf.Id,label:f("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:2132,weight:100}})}run(e,t){return iu(t,f("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,ns.QuickFix)}}Nf.Id="editor.action.quickFix";class fre extends Ji{constructor(){super({id:M8,precondition:oe.and(N.writable,N.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:Hw}]}})}runEditorCommand(e,t,i){const n=Yr.fromUser(i,{kind:Te.Empty,apply:"ifSingle"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?f("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):f("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?f("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):f("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class pre extends de{constructor(){super({id:A8,label:f("refactor.label","Refactor..."),alias:"Refactor...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:oe.and(N.writable,hb(Te.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){return U8(t,i,!1,ns.Refactor)}}class mre extends de{constructor(){super({id:Hoe,label:f("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){return U8(t,i,!0,ns.RefactorPreview)}}class _re extends de{constructor(){super({id:R8,label:f("source.label","Source Action..."),alias:"Source Action...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:oe.and(N.writable,hb(Te.Source))},description:{description:"Source Action...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){const n=Yr.fromUser(i,{kind:Te.Source,apply:"never"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?f("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):f("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?f("editor.action.source.noneMessage.preferred","No preferred source actions available"):f("editor.action.source.noneMessage","No source actions available"),{include:Te.Source.contains(n.kind)?n.kind:Te.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,void 0,ns.SourceAction)}}class bre extends de{constructor(){super({id:HN,label:f("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:oe.and(N.writable,hb(Te.SourceOrganizeImports)),kbOpts:{kbExpr:N.editorTextFocus,primary:1581,weight:100}})}run(e,t){return iu(t,f("editor.action.organize.noneMessage","No organize imports action available"),{include:Te.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,ns.OrganizeImports)}}class vre extends de{constructor(){super({id:zN,label:f("fixAll.label","Fix All"),alias:"Fix All",precondition:oe.and(N.writable,hb(Te.SourceFixAll))})}run(e,t){return iu(t,f("fixAll.noneMessage","No fix all action available"),{include:Te.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,ns.FixAll)}}class ub extends de{constructor(){super({id:ub.Id,label:f("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:oe.and(N.writable,hb(Te.QuickFix)),kbOpts:{kbExpr:N.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return iu(t,f("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Te.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,ns.AutoFix)}}ub.Id="editor.action.autoFix";lt(kh.ID,kh,3);J(Nf);J(pre);J(mre);J(_re);J(bre);J(ub);J(vre);ie(new fre);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},eN),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:f("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}));var zP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Xk{constructor(){this.lenses=[],this._disposables=new Z}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function j8(o,e,t){return zP(this,void 0,void 0,function*(){const i=o.ordered(e),n=new Map,s=new Xk,r=i.map((a,l)=>zP(this,void 0,void 0,function*(){n.set(a,l);try{const c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&s.add(c,a)}catch(c){Vi(c)}}));return yield Promise.all(r),s.lenses=s.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),s})}st.registerCommand("_executeCodeLensProvider",function(o,...e){let[t,i]=e;_t(Ce.isUri(t)),_t(typeof i=="number"||!i);const{codeLensProvider:n}=o.get(ge),s=o.get(jt).getModel(t);if(!s)throw Po();const r=[],a=new Z;return j8(n,s,Ye.None).then(l=>{a.add(l);const c=[];for(const d of l.lenses)i==null||d.symbol.command?r.push(d.symbol):i-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(s,d.symbol,Ye.None)).then(h=>r.push(h||d.symbol)));return Promise.all(c)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var Cre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wre=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const K8=Je("ICodeLensCache");class UP{constructor(e,t){this.lineCount=e,this.data=t}}let Jk=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Xc(20,.75);const t="codelens/cache";nl(()=>e.remove(t,1));const i="codelens/cache2",n=e.get(i,1,"{}");this._deserialize(n),pa(e.onWillSaveState)(s=>{s.reason===FC.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new Xk;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new UP(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const s of i.data.lenses)n.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const n=t[i],s=[];for(const a of n.lines)s.push({range:new y(a,1,a,11)});const r=new Xk;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new UP(n.lineCount,r))}}catch{}}};Jk=Cre([wre(0,jo)],Jk);ot(K8,Jk,1);class Sre{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class zw{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${zw._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s{c.symbol.command&&l.push(c.symbol),i.addDecoration({range:c.symbol.range,options:$P},h=>this._decorationIds[d]=h),a?a=y.plusRange(a,c.symbol.range):a=y.lift(c.symbol.range)}),this._viewZone=new Sre(a.startLineNumber-1,s,r),this._viewZoneId=n.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new zw(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(i&&y.isEmpty(n.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,n)=>{t.addDecoration({range:i.symbol.range,options:$P},s=>this._decorationIds[n]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},op=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Lre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let of=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=s,this._codeLensCache=r,this._disposables=new Z,this._localToDispose=new Z,this._lenses=[],this._oldCodeLensModels=new Z,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new wt(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(47)||a.hasChanged(16)||a.hasChanged(15))&&this._updateLensStyle(),a.hasChanged(14)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(63)/this._editor.getOption(49));let t=this._editor.getOption(16);return(!t||t<5)&&(t=this._editor.getOption(49)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(15),n=this._editor.getOption(47),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(s.setProperty("--vscode-editorCodeLens-fontFamily",i),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",ps.fontFamily)),this._editor.changeViewZones(r=>{for(const a of this._lenses)a.updateHeight(e,r)})}_localDispose(){var e,t,i;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(i=this._currentCodeLensModel)===null||i===void 0||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(14))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(dh(()=>{const n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(const n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){const s=n.onDidChange(()=>i.schedule());this._localToDispose.add(s)}const i=new wt(()=>{var n;const s=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=Wi(r=>j8(this._languageFeaturesService.codeLensProvider,e,r)),this._getCodeLensModelPromise.then(r=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=r,this._codeLensCache.put(e,r);const a=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=a,this._renderCodeLensSymbols(r),this._resolveCodeLensesInViewportSoon()},Oe)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(Pe(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(n=>{this._editor.changeViewZones(s=>{const r=[];let a=-1;this._lenses.forEach(c=>{!c.isValid()||a===c.getLineNumber()?r.push(c):(c.update(s),a=c.getLineNumber())});const l=new aL;r.forEach(c=>{c.dispose(l,s),this._lenses.splice(this._lenses.indexOf(c),1)}),l.commit(n)})}),i.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(n=>{n.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Pe(()=>{if(this._editor.getModel()){const n=Ca.capture(this._editor);this._editor.changeDecorations(s=>{this._editor.changeViewZones(r=>{this._disposeAllLenses(s,r)})}),n.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(n=>{if(n.target.type!==9)return;let s=n.target.element;if((s==null?void 0:s.tagName)==="SPAN"&&(s=s.parentElement),(s==null?void 0:s.tagName)==="A")for(const r of this._lenses){const a=r.getCommand(s);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),i.schedule()}_disposeAllLenses(e,t){const i=new aL;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const a of e.lenses){const l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],i.push(n)))}if(!i.length&&!this._lenses.length)return;const s=Ca.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{const c=new aL;let d=0,h=0;for(;hthis._resolveCodeLensesInViewportSoon())),d++,h++)}for(;dthis._resolveCodeLensesInViewportSoon())),h++;c.commit(a)})}),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],n=[];if(this._lenses.forEach(a=>{const l=a.computeIfNecessary(t);l&&(i.push(l),n.push(a))}),i.length===0)return;const s=Date.now(),r=Wi(a=>{const l=i.map((c,d)=>{const h=new Array(c.length),u=c.map((g,p)=>!g.symbol.command&&typeof g.provider.resolveCodeLens=="function"?Promise.resolve(g.provider.resolveCodeLens(t,g.symbol,a)).then(m=>{h[p]=m},Vi):(h[p]=g.symbol,Promise.resolve(void 0)));return Promise.all(u).then(()=>{!a.isCancellationRequested&&!n[d].isDisposed()&&n[d].updateCommands(h)})});return Promise.all(l)});this._resolveCodeLensesPromise=r,this._resolveCodeLensesPromise.then(()=>{const a=this._resolveCodeLensesDebounce.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{Oe(a),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};of.ID="css.editor.codeLens";of=yre([op(1,ge),op(2,Co),op(3,ri),op(4,_i),op(5,K8)],of);lt(of.ID,of,1);J(class extends de{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:N.hasCodeLensProvider,label:f("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return Lre(this,void 0,void 0,function*(){if(!t.hasModel())return;const i=e.get(Ma),n=e.get(ri),s=e.get(_i),r=t.getSelection().positionLineNumber,a=t.getContribution(of.ID);if(!a)return;const l=a.getModel();if(!l)return;const c=[];for(const h of l.lenses)h.symbol.command&&h.symbol.range.startLineNumber===r&&c.push({label:h.symbol.command.title,command:h.symbol.command});if(c.length===0)return;const d=yield i.pick(c,{canPickMany:!1});if(d){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(d.command.id,...d.command.arguments||[])}catch(h){s.error(h)}}})}});function Dre(o,e,t){const i=[],s=o.ordered(e).reverse().map(r=>Promise.resolve(r.provideDocumentColors(e,t)).then(a=>{if(Array.isArray(a))for(const l of a)i.push({colorInfo:l,provider:r})}));return Promise.all(s).then(()=>i)}function KP(o,e,t,i){return Promise.resolve(t.provideColorPresentations(o,e,i))}st.registerCommand("_executeDocumentColorProvider",function(o,...e){const[t]=e;if(!(t instanceof Ce))throw Po();const{colorProvider:i}=o.get(ge),n=o.get(jt).getModel(t);if(!n)throw Po();const s=[],a=i.ordered(n).reverse().map(l=>Promise.resolve(l.provideDocumentColors(n,Ye.None)).then(c=>{if(Array.isArray(c))for(const d of c)s.push({range:d.range,color:[d.color.red,d.color.green,d.color.blue,d.color.alpha]})}));return Promise.all(a).then(()=>s)});st.registerCommand("_executeColorPresentationProvider",function(o,...e){const[t,i]=e,{uri:n,range:s}=i;if(!(n instanceof Ce)||!Array.isArray(t)||t.length!==4||!y.isIRange(s))throw Po();const[r,a,l,c]=t,{colorProvider:d}=o.get(ge),h=o.get(jt).getModel(n);if(!h)throw Po();const u={range:s,color:{red:r,green:a,blue:l,alpha:c}},g=[],m=d.ordered(h).reverse().map(_=>Promise.resolve(_.provideColorPresentations(h,u,Ye.None)).then(v=>{Array.isArray(v)&&g.push(...v)}));return Promise.all(m).then(()=>g)});var xre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},lL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},kre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const q8=Object.create({});let Ih=class G8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new Z),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new q_(this._editor),this._colorDecorationClassRefs=this._register(new Z),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:G8.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(i.colorProvider.onDidChange(()=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(s=>{const r=this._isEnabled;this._isEnabled=this.isEnabled(),(r!==this._isEnabled||s.hasChanged(18))&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&typeof i=="object"){const n=i.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(17)}getDecoratorLimit(){return this._editor.getOption(18)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new fo,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){this._computePromise=Wi(e=>kre(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return Promise.resolve([]);const i=new ts(!1),n=yield Dre(this._languageFeaturesService.colorProvider,t,e);return this._debounceInformation.update(t,i.elapsed()),n})),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},Oe)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(i=>({range:{startLineNumber:i.colorInfo.range.startLineNumber,startColumn:i.colorInfo.range.startColumn,endLineNumber:i.colorInfo.range.endLineNumber,endColumn:i.colorInfo.range.endColumn},options:Re.EMPTY}));this._editor.changeDecorations(i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,s)=>this._colorDatas.set(n,e[s]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[];for(let i=0;ithis._colorDatas.has(n.id));return i.length===0?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Ih.ID="editor.contrib.colorDetector";Ih.RECOMPUTE_TIME=1e3;Ih=xre([lL(1,at),lL(2,ge),lL(3,Co)],Ih);lt(Ih.ID,Ih,1);class Ire{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new O,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new O,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let n=0;n{this.backgroundColor=r.getColor(iC)||H.white})),this._register(K(this.pickedColorNode,ae.CLICK,()=>this.model.selectNextColorPresentation())),this._register(K(s,ae.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(t.color)||"",this.pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(dr(".codicon.codicon-color-mode"))}}class Tre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=dr(".colorpicker-body"),q(e,this.domNode),this.saturationBox=new Nre(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new Mre(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new Are(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new H(new Jr(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new H(new Jr(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=(1-e)*360;this.model.color=new H(new Jr(i===360?0:i,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class Nre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=dr(".saturation-wrap"),q(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",q(this.domNode,this.canvas),this.selection=dr(".saturation-selection"),q(this.domNode,this.selection),this.layout(),this._register(K(this.domNode,ae.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new Lf);const t=Fi(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>this.onDidChangePosition(n.pageX-t.left,n.pageY-t.top),()=>null);const i=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new H(new Jr(e.h,1,1,1)),i=this.canvas.getContext("2d"),n=i.createLinearGradient(0,0,this.canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this.canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this.canvas.width,this.canvas.height),i.fillStyle=H.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class Z8 extends U{constructor(e,t){super(),this.model=t,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=q(e,dr(".strip")),this.overlay=q(this.domNode,dr(".overlay")),this.slider=q(this.domNode,dr(".slider")),this.slider.style.top="0px",this._register(K(this.domNode,ae.POINTER_DOWN,i=>this.onPointerDown(i))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new Lf),i=Fi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,s=>this.onDidChangeTop(s.pageY-i.top),()=>null);const n=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class Mre extends Z8{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:i,b:n}=e.rgba,s=new H(new nt(t,i,n,1)),r=new H(new nt(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class Are extends Z8{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Rre extends bo{constructor(e,t,i,n){super(),this.model=t,this.pixelRatio=i,this._register(Rg.onDidChange(()=>this.layout()));const s=dr(".colorpicker-widget");e.appendChild(s);const r=new Ere(s,this.model,n);this.body=new Tre(s,this.model,this.pixelRatio),this._register(r),this._register(this.body)}layout(){this.body.layout()}}var Pre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ore=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},qP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Fre{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let eI=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return pi.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return qP(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];const n=Ih.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const r=n.getColorData(s.range.getStartPosition());if(r)return[yield this._createColorHover(this._editor.getModel(),r.colorInfo,r.provider)]}return[]})}_createColorHover(e,t,i){return qP(this,void 0,void 0,function*(){const n=e.getValueInRange(t.range),{red:s,green:r,blue:a,alpha:l}=t.color,c=new nt(Math.round(s*255),Math.round(r*255),Math.round(a*255),l),d=new H(c),h=yield KP(e,t,i,Ye.None),u=new Ire(d,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(d,n),new Fre(this,y.lift(t.range),u,i)})}renderHoverParts(e,t){if(t.length===0||!this._editor.hasModel())return U.None;const i=new Z,n=t[0],s=this._editor.getModel(),r=n.model,a=i.add(new Rre(e.fragment,r,this._editor.getOption(136),this._themeService));e.setColorPicker(a);let l=new y(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn);const c=()=>{let h,u;if(r.presentation.textEdit){h=[r.presentation.textEdit],u=new y(r.presentation.textEdit.range.startLineNumber,r.presentation.textEdit.range.startColumn,r.presentation.textEdit.range.endLineNumber,r.presentation.textEdit.range.endColumn);const g=this._editor.getModel()._setTrackedRange(null,u,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h),u=this._editor.getModel()._getTrackedRange(g)||u}else h=[{range:l,text:r.presentation.label,forceMoveMarkers:!1}],u=l.setEndPosition(l.endLineNumber,l.startColumn+r.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h);r.presentation.additionalTextEdits&&(h=[...r.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",h),e.hide()),this._editor.pushUndoStop(),l=u},d=h=>KP(s,{range:l,color:{red:h.rgba.r/255,green:h.rgba.g/255,blue:h.rgba.b/255,alpha:h.rgba.a}},n.provider,Ye.None).then(u=>{r.colorPresentations=u||[]});return i.add(r.onColorFlushed(h=>{d(h).then(c)})),i.add(r.onDidChangeColor(d)),i}};eI=Pre([Ore(1,Hi)],eI);function tI(o,e){return!!o[e]}class cL{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=tI(e.event,t.triggerModifier),this.hasSideBySideModifier=tI(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class GP{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=tI(e,t.triggerModifier)}}class v0{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function ZP(o){return o==="altKey"?Ke?new v0(57,"metaKey",6,"altKey"):new v0(5,"ctrlKey",6,"altKey"):Ke?new v0(6,"altKey",57,"metaKey"):new v0(6,"altKey",5,"ctrlKey")}class Uw extends U{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new O),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new O),this.onExecute=this._onExecute.event,this._onCancel=this._register(new O),this.onCancel=this._onCancel.event,this._editor=e,this._alwaysFireExecuteOnMouseUp=t,this._opts=ZP(this._editor.getOption(74)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(i=>{if(i.hasChanged(74)){const n=ZP(this._editor.getOption(74));if(this._opts.equals(n))return;this._opts=n,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(i=>this._onEditorMouseMove(new cL(i,this._opts)))),this._register(this._editor.onMouseDown(i=>this._onEditorMouseDown(new cL(i,this._opts)))),this._register(this._editor.onMouseUp(i=>this._onEditorMouseUp(new cL(i,this._opts)))),this._register(this._editor.onKeyDown(i=>this._onEditorKeyDown(new GP(i,this._opts)))),this._register(this._editor.onKeyUp(i=>this._onEditorKeyUp(new GP(i,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(i=>this._onDidChangeCursorSelection(i))),this._register(this._editor.onDidChangeModel(i=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(i=>{(i.scrollTopChanged||i.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;(this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t||this._alwaysFireExecuteOnMouseUp)&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var Bre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Wa=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Bc=class extends qg{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,s,r,a,l,c,d,h,u),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(g=>this._onParentConfigurationChanged(g)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){B_(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Bc=Bre([Wa(3,Me),Wa(4,ut),Wa(5,ri),Wa(6,Ee),Wa(7,Hi),Wa(8,_i),Wa(9,xa),Wa(10,ui),Wa(11,ge)],Bc);const YP=new H(new nt(0,122,204)),Wre={showArrow:!0,showFrame:!0,className:"",frameColor:YP,arrowColor:YP,keepEditorSelection:!1},Vre="vs.editor.contrib.zoneWidget";class Hre{constructor(e,t,i,n,s,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this._onDomNodeTop=s,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class zre{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class $w{constructor(e){this._editor=e,this._ruleName=$w._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),zM(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){zM(this._ruleName),rx(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:y.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}$w._IdGenerator=new YT(".arrow-decoration-");class Ure{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new Z,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=qa(t),B_(this.options,Wre,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(i=>{const n=this._getWidth(i);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new $w(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const i=e-this._decoratingElementsHeight();this.container.style.height=`${i}px`;const n=this.editor.getLayoutInfo();this._doLayout(i,this._getWidth(n))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=y.isIRange(e)?y.lift(e):y.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:Re.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide()}_decoratingElementsHeight(){const e=this.editor.getOption(63);let t=0;if(this.options.showArrow){const i=Math.round(e/3);t+=2*i}if(this.options.showFrame){const i=Math.round(e/9);t+=2*i}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const r=document.createElement("div");r.style.overflow="hidden";const a=this.editor.getOption(63),l=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,l);let c=0,d=0;if(this._arrow&&this.options.showArrow&&(c=Math.round(a/3),this._arrow.height=c,this._arrow.show(i)),this.options.showFrame&&(d=Math.round(a/9)),this.editor.changeViewZones(g=>{this._viewZone&&g.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new Hre(r,i.lineNumber,i.column,t,p=>this._onViewZoneTop(p),p=>this._onViewZoneHeight(p)),this._viewZone.id=g.addZone(this._viewZone),this._overlayWidget=new zre(Vre+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const g=this.options.frameWidth?this.options.frameWidth:d;this.container.style.borderTopWidth=g+"px",this.container.style.borderBottomWidth=g+"px"}const h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=c+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,s),this.options.keepEditorSelection||this.editor.setSelection(e);const u=this.editor.getModel();if(u){const g=u.validateRange(new y(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(g,g.endLineNumber===u.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new fn(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(63),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var Y8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Q8=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const X8=Je("IPeekViewService");ot(X8,class{constructor(){this._widgets=new Map}addExclusiveWidget(o,e){const t=this._widgets.get(o);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const n=this._widgets.get(o);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(o))};this._widgets.set(o,{widget:e,listener:e.onDidClose(i)})}},1);var ss;(function(o){o.inPeekEditor=new ce("inReferenceSearchEditor",!0,f("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(ss||(ss={}));let g_=class{constructor(e,t){e instanceof Bc&&ss.inPeekEditor.bindTo(t)}dispose(){}};g_.ID="editor.contrib.referenceController";g_=Y8([Q8(1,Ee)],g_);lt(g_.ID,g_,0);function $re(o){const e=o.get(ut).getFocusedCodeEditor();return e instanceof Bc?e.getParentEditor():e}const jre={headerBackgroundColor:H.white,primaryHeadingColor:H.fromHex("#333333"),secondaryHeadingColor:H.fromHex("#6c6c6cb3")};let o1=class extends Ure{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new O,this.onDidClose=this._onDidClose.event,B_(this.options,jre,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=X(".head"),this._bodyElement=X(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=X(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),hi(i,"click",r=>this._onTitleClick(r))),q(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=X("span.filename"),this._secondaryHeading=X("span.dirname"),this._metaHeading=X("span.meta"),q(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=X(".peekview-actions");q(this._headElement,n);const s=this._getActionBarOptions();this._actionbarWidget=new go(n,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new ms("peekview.close",f("label.close","Close"),De.asClassName(se.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Lee.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:xi(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,hs(this._metaHeading)):On(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(63)*1.2),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};o1=Y8([Q8(2,Me)],o1);const Kre=M("peekViewTitle.background",{dark:pe(es,.1),light:pe(es,.1),hcDark:null,hcLight:null},f("peekViewTitleBackground","Background color of the peek view title area.")),J8=M("peekViewTitleLabel.foreground",{dark:H.white,light:H.black,hcDark:H.white,hcLight:No},f("peekViewTitleForeground","Color of the peek view title.")),e9=M("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},f("peekViewTitleInfoForeground","Color of the peek view title info.")),qre=M("peekView.border",{dark:es,light:es,hcDark:Ze,hcLight:Ze},f("peekViewBorder","Color of the peek view borders and arrow.")),Gre=M("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:H.black,hcLight:H.white},f("peekViewResultsBackground","Background color of the peek view result list."));M("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:H.white,hcLight:No},f("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));M("peekViewResult.fileForeground",{dark:H.white,light:"#1E1E1E",hcDark:H.white,hcLight:No},f("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));M("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},f("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));M("peekViewResult.selectionForeground",{dark:H.white,light:"#6C6C6C",hcDark:H.white,hcLight:No},f("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const lc=M("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:H.black,hcLight:H.white},f("peekViewEditorBackground","Background color of the peek view editor."));M("peekViewEditorGutter.background",{dark:lc,light:lc,hcDark:lc,hcLight:lc},f("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));M("peekViewEditorStickScroll.background",{dark:lc,light:lc,hcDark:lc,hcLight:lc},f("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));M("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},f("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));M("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},f("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));M("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Pt,hcLight:Pt},f("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var Zre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Wc{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=v3.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?f({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",uo(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):f("aria.oneReference","symbol in {0} on line {1} at column {2}",uo(this.uri),this.range.startLineNumber,this.range.startColumn)}}class Yre{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:n,column:s-t}),c=new y(n,l.startColumn,n,s),d=new y(r,a,r,1073741824),h=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e),g=i.getValueInRange(d).replace(/\s+$/,"");return{value:h+u+g,highlight:{start:h.length,end:h.length+u.length}}}}class f_{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new vn}dispose(){ft(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?f("aria.fileReferences.1","1 symbol in {0}, full path {1}",uo(this.uri),this.uri.fsPath):f("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,uo(this.uri),this.uri.fsPath)}resolve(e){return Zre(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new Yre(i))}catch(i){Oe(i)}return this})}}class _s{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new O,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(_s._compareReferences);let n;for(const s of e)if((!n||!Ot.isEqual(n.uri,s.uri,!0))&&(n=new f_(this,s.uri),this.groups.push(n)),n.children.length===0||_s._compareReferences(s,n.children[n.children.length-1])!==0){const r=new Wc(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){ft(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new _s(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?f("aria.result.0","No results found"):this.references.length===1?f("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?f("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):f("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,r=i.parent.groups.length;return r===1||t&&n+10?(t?n=(n+1)%s:n=(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((n,s)=>({idx:s,prefixLen:ah(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,s)=>n.prefixLen>s.prefixLen?-1:n.prefixLens.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&y.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return Ot.compare(e.uri,t.uri)||y.compareRangesUsingStarts(e.range,t.range)}}var jw=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Kw=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let iI=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof _s||e instanceof f_}getChildren(e){if(e instanceof _s)return e.groups;if(e instanceof f_)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};iI=jw([Kw(0,os)],iI);class Qre{getHeight(){return 23}getTemplateId(e){return e instanceof f_?p_.id:gb.id}}let nI=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof Wc){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return uo(e.uri)}};nI=jw([Kw(0,ei)],nI);class Xre{getId(e){return e instanceof Wc?e.id:e.uri}}let sI=class extends U{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new KC(i,{supportHighlights:!0})),this.badge=new pk(q(i,X(".count")),{},Q3),e.appendChild(i)}set(e,t){const i=hw(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(f("referencesCount","{0} references",n)):this.badge.setTitleFormat(f("referenceCount","{0} reference",n))}};sI=jw([Kw(1,Yg)],sI);let p_=class t9{constructor(e){this._instantiationService=e,this.templateId=t9.id}renderTemplate(e){return this._instantiationService.createInstance(sI,e)}renderElement(e,t,i){i.set(e.element,mw(e.filterData))}disposeTemplate(e){e.dispose()}};p_.id="FileReferencesRenderer";p_=jw([Kw(0,Me)],p_);class Jre{constructor(e){this.label=new pl(e)}set(e,t){var i;const n=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!n||!n.value)this.label.set(`${uo(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:r}=n;t&&!_r.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,mw(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class gb{constructor(){this.templateId=gb.id}renderTemplate(e){return new Jre(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}gb.id="OneReferenceRenderer";class eae{getWidgetAriaLabel(){return f("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var tae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Va=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},QP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class qw{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Z,this._callOnModelChange=new Z,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let n=0,s=e.children.length;n{const s=n.deltaDecorations([],t);for(let r=0;r{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(nae,"ReferencesWidget",this._treeContainer,new Qre,[this._instantiationService.createInstance(p_),this._instantiationService.createInstance(gb)],this._instantiationService.createInstance(iI),i),this._splitView.addView({onDidChange:_e.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},qC.Distribute),this._splitView.addView({onDidChange:_e.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},qC.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const n=(s,r)=>{s instanceof Wc&&(r==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:r,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?n(s.element,"side"):s.editorOptions.pinned?n(s.element,"goto"):n(s.element,"show")}),On(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Dt(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=f("noResults","No results"),hs(this._messageContainer),Promise.resolve(void 0)):(On(this._messageContainer),this._decorationsManager=new qw(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),hs(this._treeContainer),hs(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof Wc)return e;if(e instanceof f_&&e.children.length>0)return e.children[0]}revealReference(e){return QP(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return QP(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==We.inMemory?this.setTitle(cZ(e.uri),this._uriLabel.getUriLabel(hw(e.uri))):this.setTitle(f("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const n=yield i;if(!this._model){n.dispose();return}ft(this._previewModelReference);const s=n.object;if(s){const r=this._preview.getModel()===s.textEditorModel?0:1,a=y.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};oI=tae([Va(3,Hi),Va(4,os),Va(5,Me),Va(6,X8),Va(7,Yg),Va(8,uw),Va(9,ei),Va(10,Ut),Va(11,ui)],oI);var sae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Su=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},XP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const nu=new ce("referenceSearchVisible",!1,f("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Vc=class rI{static get(e){return e.getContribution(rI.ID)}constructor(e,t,i,n,s,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new Z,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=nu.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",r=iae.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(oI,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(f("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:c,kind:d}=l;if(c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":i?this._gotoReference(c,!0):this.openReference(c,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(f("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const d=this._editor.getModel().uri,h=new W(e.startLineNumber,e.startColumn),u=this._model.nearestReference(d,h);if(u)return this._widget.setSelection(u).then(()=>{this._widget&&this._editor.getOption(82)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return XP(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n,!1),s?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()})}revealReference(e){return XP(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;(i=this._widget)===null||i===void 0||i.hide(),this._ignoreModelChangeEvent=!0;const n=y.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then(s=>{var r;if(this._ignoreModelChangeEvent=!1,!s||!this._widget){this.closeWidget();return}if(this._editor===s)this._widget.show(n),this._widget.focusOnReferenceTree();else{const a=rI.get(s),l=this._model.clone();this.closeWidget(),s.focus(),a==null||a.toggleWidget(n,Wi(c=>Promise.resolve(l)),(r=this._peekMode)!==null&&r!==void 0?r:!1)}},s=>{this._ignoreModelChangeEvent=!1,Oe(s)})}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};Vc.ID="editor.contrib.referencesController";Vc=sae([Su(2,Ee),Su(3,ut),Su(4,_i),Su(5,Me),Su(6,jo),Su(7,at)],Vc);function su(o,e){const t=$re(o);if(!t)return;const i=Vc.get(t);i&&e(i)}is.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:ki(2089,60),when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.changeFocusBetweenPreviewAndReferences()})}});is.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!0)})}});is.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!1)})}});st.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");st.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");st.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");st.registerCommand("closeReferenceSearch",o=>su(o,e=>e.closeWidget()));is.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:oe.and(ss.inPeekEditor,oe.not("config.editor.stablePeek"))});is.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:oe.and(nu,oe.not("config.editor.stablePeek"))});is.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:oe.and(nu,L7,CN.negate(),wN.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.revealReference(i[0]))}});is.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:oe.and(nu,L7,CN.negate(),wN.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.openReference(i[0],!0,!0))}});st.registerCommand("openReference",o=>{var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.openReference(i[0],!1,!0))});var i9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Op=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const $N=new ce("hasSymbols",!1,f("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),Gw=Je("ISymbolNavigationService");let aI=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=$N.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new lI(this._editorService),n=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let c=!1,d=!1;for(const h of t.references)if(LT(h.uri,a.uri))c=!0,d=d||y.containsPosition(h.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=Oo(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:y.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?f("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):f("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};aI=i9([Op(0,Ee),Op(1,ut),Op(2,_i),Op(3,ei)],aI);ot(Gw,aI,1);ie(new class extends Ji{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:$N,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(Gw).revealNext(e)}});is.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:$N,primary:9,handler(o){o.get(Gw).reset()}});let lI=class{constructor(e){this._listener=new Map,this._disposables=new Z,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),ft(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Oo(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};lI=i9([Op(0,ut)],lI);var jN=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function fb(o,e,t,i){return jN(this,void 0,void 0,function*(){const s=t.ordered(o).map(a=>Promise.resolve(i(a,o,e)).then(void 0,l=>{Vi(l)})),r=yield Promise.all(s);return mf(r.flat())})}function Zw(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function n9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function s9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function o9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function Yw(o,e,t,i,n){return fb(e,t,o,(s,r,a)=>jN(this,void 0,void 0,function*(){const l=yield s.provideReferences(r,a,{includeDeclaration:!0},n);if(!i||!l||l.length!==2)return l;const c=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return c&&c.length===1?c:l}))}function pb(o){return jN(this,void 0,void 0,function*(){const e=yield o(),t=new _s(e,""),i=t.references.map(n=>n.link);return t.dispose(),i})}Ta("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(ge),n=Zw(i.definitionProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(ge),n=o9(i.typeDefinitionProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(ge),n=n9(i.declarationProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeReferenceProvider",(o,e,t)=>{const i=o.get(ge),n=Yw(i.referenceProvider,e,t,!1,Ye.None);return pb(()=>n)});Ta("_executeImplementationProvider",(o,e,t)=>{const i=o.get(ge),n=s9(i.implementationProvider,e,t,Ye.None);return pb(()=>n)});var Fo=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},dL,hL,uL,gL,fL,pL,mL,_L;Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextPeek,title:f("peek.submenu","Peek"),group:"navigation",order:100});class rf{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof rf||W.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class In extends C${static all(){return In._allSymbolNavigationCommands.values()}static _patchConfig(e){const t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(const i of it.wrap(t.menu))(i.id===T.EditorContext||i.id===T.EditorContextPeek)&&(i.when=oe.and(e.precondition,i.when));return t}constructor(e,t){super(In._patchConfig(t)),this.configuration=e,In._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,n){if(!t.hasModel())return Promise.resolve(void 0);const s=e.get(_i),r=e.get(ut),a=e.get(ed),l=e.get(Gw),c=e.get(ge),d=e.get(Me),h=t.getModel(),u=t.getPosition(),g=rf.is(i)?i:new rf(h,u),p=new Sh(t,5),m=U1(this._getLocationModel(c,g.model,g.position,p.token),p.token).then(_=>Fo(this,void 0,void 0,function*(){var v;if(!_||p.token.isCancellationRequested)return;cn(_.ariaMessage);let b;if(_.referenceAt(h.uri,u)){const S=this._getAlternativeCommand(t);!In._activeAlternativeCommands.has(S)&&In._allSymbolNavigationCommands.has(S)&&(b=In._allSymbolNavigationCommands.get(S))}const C=_.references.length;if(C===0){if(!this.configuration.muteMessage){const S=h.getWordAtPosition(u);(v=Cs.get(t))===null||v===void 0||v.showMessage(this._getNoResultFoundMessage(S),u)}}else if(C===1&&b)In._activeAlternativeCommands.add(this.desc.id),d.invokeFunction(S=>b.runEditorCommand(S,t,i,n).finally(()=>{In._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(r,l,t,_,n)}),_=>{s.error(_)}).finally(()=>{p.dispose()});return a.showWhile(m,250),m}_onResult(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){const r=this._getGoToPreference(i);if(!(i instanceof Bc)&&(this.configuration.openInPeek||r==="peek"&&n.references.length>1))this._openInPeek(i,n,s);else{const a=n.firstReference(),l=n.references.length>1&&r==="gotoAndPeek",c=yield this._openReference(i,e,a,this.configuration.openToSide,!l);l&&c?this._openInPeek(c,n,s):n.dispose(),r==="goto"&&t.put(a)}})}_openReference(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){let r;if(bV(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=yield t.openCodeEditor({resource:i.uri,options:{selection:y.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(a){if(s){const l=a.getModel(),c=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&c.clear()},350)}return a}})}_openInPeek(e,t,i){const n=Vc.get(e);n&&e.hasModel()?n.toggleWidget(i??e.getSelection(),Wi(s=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}In._allSymbolNavigationCommands=new Map;In._activeAlternativeCommands=new Set;class mb extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Zw(e.definitionProvider,t,i,n),f("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?f("noResultWord","No definition found for '{0}'",e.word):f("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleDefinitions}}const r9=Kc&&!BE()?2118:70;Tn((dL=class cI extends mb{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:cI.id,title:{value:f("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:f({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:oe.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:r9,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.1},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),st.registerCommandAlias("editor.action.goToDeclaration",cI.id)}},dL.id="editor.action.revealDefinition",dL));Tn((hL=class dI extends mb{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:dI.id,title:{value:f("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:oe.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:ki(2089,r9),weight:100}}),st.registerCommandAlias("editor.action.openDeclarationToTheSide",dI.id)}},hL.id="editor.action.revealDefinitionAside",hL));Tn((uL=class hI extends mb{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:hI.id,title:{value:f("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:oe.and(N.hasDefinitionProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:T.EditorContextPeek,group:"peek",order:2}}),st.registerCommandAlias("editor.action.previewDeclaration",hI.id)}},uL.id="editor.action.peekDefinition",uL));class a9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield n9(e.declarationProvider,t,i,n),f("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?f("decl.noResultWord","No declaration found for '{0}'",e.word):f("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(55).multipleDeclarations}}Tn((gL=class l9 extends a9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:l9.id,title:{value:f("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:f({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:oe.and(N.hasDeclarationProvider,N.isInWalkThroughSnippet.toNegated()),menu:[{id:T.EditorContext,group:"navigation",order:1.3},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?f("decl.noResultWord","No declaration found for '{0}'",e.word):f("decl.generic.noResults","No declaration found")}},gL.id="editor.action.revealDeclaration",gL));Tn(class extends a9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:f("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:oe.and(N.hasDeclarationProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:3}})}});class c9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield o9(e.typeDefinitionProvider,t,i,n),f("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?f("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):f("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleTypeDefinitions}}Tn((fL=class d9 extends c9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:d9.ID,title:{value:f("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:f({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:oe.and(N.hasTypeDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:0,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.4},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},fL.ID="editor.action.goToTypeDefinition",fL));Tn((pL=class h9 extends c9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:h9.ID,title:{value:f("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:oe.and(N.hasTypeDefinitionProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:4}})}},pL.ID="editor.action.peekTypeDefinition",pL));class u9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield s9(e.implementationProvider,t,i,n),f("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?f("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):f("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(55).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(55).multipleImplementations}}Tn((mL=class g9 extends u9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:g9.ID,title:{value:f("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:f({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:oe.and(N.hasImplementationProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:2118,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.45},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},mL.ID="editor.action.goToImplementation",mL));Tn((_L=class f9 extends u9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:f9.ID,title:{value:f("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:oe.and(N.hasImplementationProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:3142,weight:100},menu:{id:T.EditorContextPeek,group:"peek",order:5}})}},_L.ID="editor.action.peekImplementation",_L));class p9 extends In{_getNoResultFoundMessage(e){return e?f("references.no","No references found for '{0}'",e.word):f("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(55).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(55).multipleReferences}}Tn(class extends p9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:f("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:f({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:oe.and(N.hasReferenceProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:1094,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.45},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Yw(e.referenceProvider,t,i,!0,n),f("ref.title","References"))})}});Tn(class extends p9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:f("references.action.label","Peek References"),original:"Peek References"},precondition:oe.and(N.hasReferenceProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Yw(e.referenceProvider,t,i,!1,n),f("ref.title","References"))})}});class oae extends In{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:{value:f("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:oe.and(ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(this._references,f("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&f("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(55).multipleReferences}_getAlternativeCommand(){return""}}st.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(o,e,t,i,n,s,r)=>Fo(void 0,void 0,void 0,function*(){_t(Ce.isUri(e)),_t(W.isIPosition(t)),_t(Array.isArray(i)),_t(typeof n>"u"||typeof n=="string"),_t(typeof r>"u"||typeof r=="boolean");const a=o.get(ut),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(La(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{const d=new class extends oae{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!s,openInPeek:!!r,openToSide:!1},i,n);c.get(Me).invokeFunction(d.run.bind(d),l)})})});st.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(o,e,t,i,n)=>Fo(void 0,void 0,void 0,function*(){o.get(ri).executeCommand("editor.action.goToLocations",e,t,i,n,void 0,!0)})});st.registerCommand({id:"editor.action.findReferences",handler:(o,e,t)=>{_t(Ce.isUri(e)),_t(W.isIPosition(t));const i=o.get(ge),n=o.get(ut);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!La(s)||!s.hasModel())return;const r=Vc.get(s);if(!r)return;const a=Wi(c=>Yw(i.referenceProvider,s.getModel(),W.lift(t),!1,c).then(d=>new _s(d,f("ref.title","References")))),l=new y(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});st.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var rae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},bL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},JP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Eh=class pv{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new Z,this.toUnhookForKeyboard=new Z,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new Uw(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,an(a))})),this.toUnhook.add(s.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).catch(a=>{Oe(a)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(pv.ID)}startFindDefinitionFromCursor(e){return JP(this,void 0,void 0,function*(){yield this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;return JP(this,void 0,void 0,function*(){this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const n=new j7(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Wi(a=>this.findDefinition(e,a));let s;try{s=yield this.previousPromise}catch(a){Oe(a);return}if(!s||!s.length||!n.validate(this.editor)){this.removeLinkDecorations();return}const r=s[0].originSelectionRange?y.lift(s[0].originSelectionRange):new y(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(s.length>1){let a=r;for(const{originSelectionRange:l}of s)l&&(a=y.plusRange(a,l));this.addDecoration(a,new Yn().appendText(f("multipleResults","Click to show {0} definitions.",s.length)))}else{const a=s[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}const{object:{textEditorModel:c}}=l,{startLineNumber:d}=a.range;if(d<1||d>c.getLineCount()){l.dispose();return}const h=this.getPreviewValue(c,d,a),u=this.languageService.guessLanguageIdByFilepathOrFirstLine(c.uri);this.addDecoration(r,h?new Yn().appendCodeblock(u||"",h):void 0),l.dispose()})}})}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=pv.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{const n=!t&&this.editor.getOption(83)&&!this.isInPeekEditor(i);return new mb({openToSide:t,openInPeek:n,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(i)})}isInPeekEditor(e){const t=e.get(Ee);return ss.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};Eh.ID="editor.contrib.gotodefinitionatposition";Eh.MAX_SOURCE_PREVIEW_LINES=8;Eh=rae([bL(1,os),bL(2,Ut),bL(3,ge)],Eh);lt(Eh.ID,Eh,2);const C0=X;class m9 extends U{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Y_(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class KN extends U{static render(e,t,i){return new KN(e,t,i)}constructor(e,t,i){super(),this.actionContainer=q(e,C0("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=q(this.actionContainer,C0("a.action")),this.action.setAttribute("role","button"),t.iconClass&&q(this.action,C0(`span.icon.${t.iconClass}`));const n=q(this.action,C0("span"));n.textContent=i?`${t.label} (${i})`:t.label,this._register(K(this.actionContainer,ae.CLICK,s=>{s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer)})),this._register(K(this.actionContainer,ae.KEY_DOWN,s=>{const r=new Nt(s);(r.equals(3)||r.equals(10))&&(s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var aae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},lae=globalThis&&globalThis.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}};let cae=class{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}};class _9 extends U{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new O),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new wt(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new wt(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new wt(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(57).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=UH(e=>this._computer.computeAsync(e)),aae(this,void 0,void 0,function*(){var e,t,i,n;try{try{for(var s=!0,r=lae(this._asyncIterable),a;a=yield r.next(),e=a.done,!e;){n=a.value,s=!1;try{const l=n;l&&(this._result.push(l),this._fireResult())}finally{s=!0}}}catch(l){t={error:l}}finally{try{!s&&!e&&(i=r.return)&&(yield i.call(r))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(l){Oe(l)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new cae(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class vL{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class mv{constructor(e,t,i,n,s,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=s,this.supportsMarkerHover=r,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const ou=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class ko{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=ko._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(ko.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(ko.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(ko.isVariableCharacter(i)||ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof ko._table[i]>"u"&&!ko.isDigitCharacter(i)&&!ko.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}ko._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class Mf{constructor(){this._children=[]}appendChild(e){return e instanceof Fn&&this._children[this._children.length-1]instanceof Fn?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const c of a)c.parent=l,r(c.children,c)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof _b)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Fn extends Mf{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Fn(this.value)}}class b9 extends Mf{}class Xs extends b9{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Af?this._children[0]:void 0}clone(){const e=new Xs(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Af extends Mf{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Fn&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Af;return this.options.forEach(e.appendChild,e),e}}class qN extends Mf{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Jo&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Jo){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new qN;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Jo extends Mf{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Jo(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class m_ extends b9{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Fn(t)],!0):!1}clone(){const e=new m_(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function eO(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class _b extends Mf{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof Xs&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return eO([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof Xs&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof m_&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new _b;return this._children=this.children.map(t=>t.clone()),e}walk(e){eO(this.children,e)}}class Hc{constructor(){this._scanner=new ko,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new _b;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(l=>(l instanceof Xs&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const r=(l,c)=>{const d=n.get(l.index);if(!d)return;const h=new Xs(l.index);h.transform=l.transform;for(const u of d){const g=u.clone();h.appendChild(g),g instanceof Xs&&n.has(g.index)&&!c.has(g.index)&&(c.add(g.index),r(g,c),c.delete(g.index))}t.replace(l,[h])},a=new Set;for(const l of s)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new Xs(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Fn(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Xs(Number(t)):new m_(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new Xs(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new Af;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Fn(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new m_(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new qN;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Fn(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Jo(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Jo(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Jo(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new Jo(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Fn(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}const dae=f("defaultLabel","input"),hae=f("label.preserveCaseToggle","Preserve Case");class uae extends Ef{constructor(e){super({icon:se.preserveCase,title:hae+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class gae extends bo{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new O),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new O),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new O),this._onInput=this._register(new O),this._onKeyUp=this._register(new O),this._onPreserveCaseKeyDown=this._register(new O),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||dae;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new h7(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new uae(Object.assign({appendTitle:s,isChecked:!1},n.toggleStyles))),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const d=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const g=d.indexOf(document.activeElement);if(g>=0){let p=-1;u.equals(17)?p=(g+1)%d.length:u.equals(15)&&(g===0?p=d.length-1:p=g-1),u.equals(9)?(d[g].blur(),this.inputBox.focus()):p>=0&&d[p].focus(),ze.stop(u,!0)}}});const h=document.createElement("div");h.className="controls",h.style.display=this._showOptionButtons?"block":"none",h.appendChild(this.preserveCase.domNode),this.domNode.appendChild(h),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;(e=this.inputBox)===null||e===void 0||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var v9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},C9=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const GN=new ce("suggestWidgetVisible",!1,f("suggestWidgetVisible","Whether suggestion are visible")),ZN="historyNavigationWidgetFocus",w9="historyNavigationForwardsEnabled",S9="historyNavigationBackwardsEnabled";let ml;const w0=[];function y9(o,e){if(w0.includes(e))throw new Error("Cannot register the same widget multiple times");w0.push(e);const t=new Z,i=new ce(ZN,!1).bindTo(o),n=new ce(w9,!0).bindTo(o),s=new ce(S9,!0).bindTo(o),r=()=>{i.set(!0),ml=e},a=()=>{i.set(!1),ml===e&&(ml=void 0)};return e.element===document.activeElement&&r(),t.add(e.onDidFocus(()=>r())),t.add(e.onDidBlur(()=>a())),t.add(Pe(()=>{w0.splice(w0.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:s,dispose(){t.dispose()}}}let uI=class extends u7{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(y9(s,this.inputBox))}};uI=v9([C9(3,Ee)],uI);let gI=class extends gae{constructor(e,t,i,n,s=!1){super(e,t,s,i);const r=this._register(n.createScoped(this.inputBox.element));this._register(y9(r,this.inputBox))}};gI=v9([C9(3,Ee)],gI);is.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:oe.and(oe.has(ZN),oe.equals(S9,!0),GN.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{ml==null||ml.showPreviousValue()}});is.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:oe.and(oe.has(ZN),oe.equals(w9,!0),GN.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{ml==null||ml.showNextValue()}});var gm=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Ge={Visible:GN,HasFocusedSuggestion:new ce("suggestWidgetHasFocusedSuggestion",!1,f("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new ce("suggestWidgetDetailsVisible",!1,f("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new ce("suggestWidgetMultipleSuggestions",!1,f("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new ce("suggestionMakesTextEdit",!0,f("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new ce("acceptSuggestionOnEnter",!0,f("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new ce("suggestionHasInsertAndReplaceRange",!1,f("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new ce("suggestionInsertMode",void 0,{type:"string",description:f("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new ce("suggestionCanResolve",!1,f("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},wc=new T("suggestWidgetStatusBar");class fae{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=_r.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,y.isIRange(t.range)?(this.editStart=new W(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new W(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new W(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new W(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new W(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new W(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range.insert)||y.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof n.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return gm(this,void 0,void 0,function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(i=>{Object.assign(this.completion,i),this._isResolved=!0,t.dispose()},i=>{Da(i)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class __{constructor(e=2,t=new Set,i=new Set,n=new Map,s=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=s}}__.default=new __;let pae;function mae(){return pae}class _ae{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function YN(o,e,t,i=__.default,n={triggerKind:0},s=Ye.None){return gm(this,void 0,void 0,function*(){const r=new ts(!0);t=t.clone();const a=e.getWordAtPosition(t),l=a?new y(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):y.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],h=new Z,u=[];let g=!1;const p=(_,v,b)=>{var C,S,x;let E=!1;if(!v)return E;for(const L of v.suggestions)if(!i.kindFilter.has(L.kind)){if(!i.showDeprecated&&(!((C=L==null?void 0:L.tags)===null||C===void 0)&&C.includes(1)))continue;L.range||(L.range=c),L.sortText||(L.sortText=typeof L.label=="string"?L.label:L.label.label),!g&&L.insertTextRules&&L.insertTextRules&4&&(g=Hc.guessNeedsClipboard(L.insertText)),d.push(new fae(t,L,v,_)),E=!0}return wE(v)&&h.add(v),u.push({providerName:(S=_._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(x=v.duration)!==null&&x!==void 0?x:-1,elapsedOverall:b.elapsed()}),E},m=(()=>gm(this,void 0,void 0,function*(){}))();for(const _ of o.orderedGroups(e)){let v=!1;if(yield Promise.all(_.map(b=>gm(this,void 0,void 0,function*(){if(i.providerItemsToReuse.has(b)){const C=i.providerItemsToReuse.get(b);C.forEach(S=>d.push(S)),v=v||C.length>0;return}if(!(i.providerFilter.size>0&&!i.providerFilter.has(b)))try{const C=new ts(!0),S=yield b.provideCompletionItems(e,t,n,s);v=p(b,S,C)||v}catch(C){Vi(C)}}))),v||s.isCancellationRequested)break}return yield m,s.isCancellationRequested?(h.dispose(),Promise.reject(new qc)):new _ae(d.sort(Cae(i.snippetSortOrder)),g,{entries:u,elapsed:r.elapsed()},h)})}function QN(o,e){if(o.sortTextLow&&e.sortTextLow){if(o.sortTextLowe.sortTextLow)return 1}return o.textLabele.textLabel?1:o.completion.kind-e.completion.kind}function bae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return QN(o,e)}function vae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return QN(o,e)}const Qw=new Map;Qw.set(0,bae);Qw.set(2,vae);Qw.set(1,QN);function Cae(o){return Qw.get(o)}st.registerCommand("_executeCompletionItemProvider",(o,...e)=>gm(void 0,void 0,void 0,function*(){const[t,i,n,s]=e;_t(Ce.isUri(t)),_t(W.isIPosition(i)),_t(typeof n=="string"||!n),_t(typeof s=="number"||!s);const{completionProvider:r}=o.get(ge),a=yield o.get(os).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},c=[],d=yield YN(r,a.object.textEditorModel,W.lift(i),void 0,{triggerCharacter:n??void 0,triggerKind:n?1:0});for(const h of d.items)c.length<(s??0)&&c.push(h.resolve(Ye.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>d.disposable.dispose(),100)}}finally{a.dispose()}}));function wae(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class sg{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}var XN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},r1=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const tO=X;let a1=class fI extends U{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(ih,this._editor)),this._currentResult=null,this._participants=[];for(const n of ou.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,s)=>n.hoverOrdinal-s.hoverOrdinal),this._computer=new l1(this._editor,this._participants),this._hoverOperation=this._register(new _9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{if(!this._computer.anchor)return;const s=n.hasLoadingMessage?this._addLoadingMessage(n.value):n.value;this._withResult(new L9(this._computer.anchor,s,n.isComplete))})),this._register(hi(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(Kt.onDidChange(()=>{this._widget.position&&this._currentResult&&(this._widget.clear(),this._setCurrentResult(this._currentResult))}))}maybeShowAt(e){const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const s=n.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new vL(0,i.range,e.event.posx,e.event.posy)),i.type===7){const n=this._editor.getOption(47).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexts.priority-n.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new vL(0,e,void 0,void 0),t,i,n,null)}_startShowingOrUpdateHover(e,t,i,n,s){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):!1:this._editor.getOption(57).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}isColorPickerVisible(){return this._widget.isColorPickerVisible}isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}containsNode(e){return this._widget.getDomNode().contains(e)}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:n,highlightRange:s}=fI.computeHoverRanges(this._editor,e.range,t),r=new Z,a=r.add(new pI(this._keybindingService)),l=document.createDocumentFragment();let c=null;const d={fragment:l,statusBar:a,setColorPicker:u=>c=u,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const u of this._participants){const g=t.filter(p=>p.owner===u);g.length>0&&r.add(u.renderHoverParts(d,g))}const h=t.some(u=>u.isBeforeContent);if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const u=this._editor.createDecorationsCollection();u.set([{range:s,options:fI._DECORATION_OPTIONS}]),r.add(Pe(()=>{u.clear()}))}this._widget.showAt(l,new yae(c,i,n,this._editor.getOption(57).above,this._computer.shouldFocus,this._computer.source,h,e.initialMousePosX,e.initialMousePosY,r))}else r.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const c=e._getViewModel(),d=c.coordinatesConverter,h=d.convertModelRangeToViewRange(t),u=new W(h.startLineNumber,c.getLineMinColumn(h.startLineNumber));n=d.convertViewPositionToModelPosition(u).column}const s=t.startLineNumber;let r=t.startColumn,a=i[0].range,l=null;for(const c of i)a=y.plusRange(a,c.range),c.range.startLineNumber===s&&c.range.endLineNumber===s&&(r=Math.max(Math.min(r,c.range.startColumn),n)),c.forceShowAtRange&&(l=c.range);return{showAtPosition:l?l.getStartPosition():new W(s,t.startColumn),showAtSecondaryPosition:l?l.getStartPosition():new W(s,r),highlightRange:a}}};a1._DECORATION_OPTIONS=Re.register({description:"content-hover-highlight",className:"hoverHighlight"});a1=XN([r1(1,Me),r1(2,ei)],a1);class L9{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter(i=>i.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new Sae(this,this.anchor,t,this.isComplete)}}class Sae extends L9{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class yae{constructor(e,t,i,n,s,r,a,l,c,d){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=i,this.preferAbove=n,this.stoleFocus=s,this.source=r,this.isBeforeContent=a,this.initialMousePosX=l,this.initialMousePosY=c,this.disposables=d,this.closestMouseDistance=void 0}}let ih=class D9 extends U{get position(){var e,t;return(t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition)!==null&&t!==void 0?t:null}get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=N.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new m9),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(47)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return D9.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;!e&&this._contextKeyService.getContextKeyValue(Ge.Visible.key)&&(e=!0);const t=this._visibleData.isBeforeContent?3:void 0;return{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,preference:e?[1,2]:[2,1],positionAffinity:t}}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if(typeof this._visibleData.initialMousePosX>"u"||typeof this._visibleData.initialMousePosY>"u")return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const i=Fi(this.getDomNode());typeof this._visibleData.closestMouseDistance>"u"&&(this._visibleData.closestMouseDistance=iO(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const n=iO(e,t,i.left,i.top,i.width,i.height);return n>this._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,n),!0)}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(47);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${i/t}`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}showAt(e,t){var i;this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(i=t.colorPicker)===null||i===void 0||i.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const i=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==i&&(this._hover.contentsDomNode.style.paddingBottom=i,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};ih.ID="editor.contrib.contentHoverWidget";ih=XN([r1(1,Ee)],ih);let pI=class extends U{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=tO("div.hover-row.status-bar"),this.actionsElement=q(this.hoverElement,tO("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(KN.render(this.actionsElement,e,i))}append(e){const t=q(this.actionsElement,e);return this._hasContent=!0,t}};pI=XN([r1(0,ei)],pI);class l1{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:s;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return pi.EMPTY;const i=l1._getLineDecorations(this._editor,t);return pi.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):pi.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=l1._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return mf(t)}}function iO(o,e,t,i,n,s){const r=t+n/2,a=i+s/2,l=Math.max(Math.abs(o-r)-n/2,0),c=Math.max(Math.abs(e-a)-s/2,0);return Math.sqrt(l*l+c*c)}var Lae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},x9=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},CL;let Ll=class k9{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new O,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new Z;return{element:n.add(C3(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(i,n)=>x9(this,void 0,void 0,function*(){var s,r,a;let l;i?l=this._languageService.getLanguageIdByLanguageName(i):this._options.editor&&(l=(s=this._options.editor.getModel())===null||s===void 0?void 0:s.getLanguageId()),l||(l=Vs);const c=yield kY(this._languageService,n,l),d=document.createElement("span");if(d.innerHTML=(a=(r=k9._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(c))!==null&&a!==void 0?a:c,this._options.editor){const h=this._options.editor.getOption(47);Yi(d,h)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(d.style.fontSize=this._options.codeBlockFontSize),d}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>Dae(this._openerService,i,e.isTrusted),disposables:t}}}};Ll._ttpTokenizer=(CL=window.trustedTypes)===null||CL===void 0?void 0:CL.createPolicy("tokenizeToString",{createHTML(o){return o}});Ll=Lae([nO(1,Ut),nO(2,vo)],Ll);function Dae(o,e,t){return x9(this,void 0,void 0,function*(){try{return yield o.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:xae(t)})}catch(i){return Oe(i),!1}})}function xae(o){return o===!0?!0:o&&Array.isArray(o.enabledCommands)?o.enabledCommands:!1}const sO=X;class xg extends U{constructor(e,t,i){super(),this._renderDisposeables=this._register(new Z),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new m9),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Ll({editor:this._editor},t,i)),this._computer=new kae(this._editor),this._hoverOperation=this._register(new _9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(47)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return xg.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const s=sO("div.hover-row.markdown-hover"),r=q(s,sO("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));r.appendChild(a.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(63),r=this._hover.containerDomNode.clientHeight,a=i-n-(r-s)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}}xg.ID="editor.contrib.modesGlyphHoverWidget";class kae{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){const e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const s=n.options.glyphMarginHoverMessage;!s||Zg(s)||i.push(...vE(s).map(e))}return i}}var Iae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Eae{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Tae(o,e,t,i,n){return Iae(this,void 0,void 0,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Mae(s))return new Eae(o,s,e)}catch(s){Vi(s)}})}function JN(o,e,t,i){const s=o.ordered(e).map((r,a)=>Tae(r,a,e,t,i));return pi.fromPromises(s).coalesce()}function Nae(o,e,t,i){return JN(o,e,t,i).map(n=>n.hover).toPromise()}Ta("_executeHoverProvider",(o,e,t)=>{const i=o.get(ge);return Nae(i.hoverProvider,e,t,Ye.None)});function Mae(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Aae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},S0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const oO=X;class rr{constructor(e,t,i,n,s){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=s}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let c1=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=2}createLoadingMessage(e){return new rr(this,e.range,[new Yn().appendText(f("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];let a=1e3;const l=i.getLineLength(n),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),d=this._editor.getOption(111),h=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});let u=!1;d>=0&&l>d&&e.range.startColumn>=d&&(u=!0,r.push(new rr(this,e.range,[{value:f("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!u&&typeof h=="number"&&l>=h&&r.push(new rr(this,e.range,[{value:f("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let g=!1;for(const p of t){const m=p.range.startLineNumber===n?p.range.startColumn:1,_=p.range.endLineNumber===n?p.range.endColumn:s,v=p.options.hoverMessage;if(!v||Zg(v))continue;p.options.beforeContentClassName&&(g=!0);const b=new y(e.range.startLineNumber,m,e.range.startLineNumber,_);r.push(new rr(this,b,vE(v),g,a++))}return r}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return pi.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return pi.EMPTY;const s=new W(e.range.startLineNumber,e.range.startColumn);return JN(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!Zg(r.hover.contents)).map(r=>{const a=r.hover.range?y.lift(r.hover.range):e.range;return new rr(this,a,r.hover.contents,!1,r.ordinal)})}renderHoverParts(e,t){return I9(e,t,this._editor,this._languageService,this._openerService)}};c1=Aae([S0(1,Ut),S0(2,vo),S0(3,at),S0(4,ge)],c1);function I9(o,e,t,i,n){e.sort((r,a)=>r.ordinal-a.ordinal);const s=new Z;for(const r of e)for(const a of r.contents){if(Zg(a))continue;const l=oO("div.hover-row.markdown-hover"),c=q(l,oO("div.hover-contents")),d=s.add(new Ll({editor:t},i,n));s.add(d.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(d.render(a));c.appendChild(h.element),o.fragment.appendChild(l)}return s}var E9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},d1=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class rO{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let mI=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._dispoables=new Z,this._markers=[],this._nextIdx=-1,Ce.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(a,l)=>{let c=Sm(a.resource.toString(),l.resource.toString());return c===0&&(n==="position"?c=y.compareRangesUsingStarts(a,l)||qt.compare(a.severity,l.severity):c=qt.compare(a.severity,l.severity)||y.compareRangesUsingStarts(a,l)),c},r=()=>{this._markers=this._markerService.read({resource:Ce.isUri(e)?e:void 0,severities:qt.Error|qt.Warning|qt.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(r(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new rO(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex(r=>r.resource.toString()===e.uri.toString());s<0&&(s=bm(this._markers,{resource:e.uri},(r,a)=>Sm(r.resource.toString(),a.resource.toString())),s<0&&(s=~s));for(let r=s;rn.resource.toString()===e.toString());if(!(i<0)){for(;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Pae{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Z,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(hi(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new p5(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{r.style.left=`-${a.scrollLeft}px`,r.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){ft(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let r=((t==null?void 0:t.length)||0)+2;s&&(typeof s=="string"?r+=s.length:r+=s.value.length);const a=ma(i);this._lines=a.length,this._longestLineLength=0;for(const u of a)this._longestLineLength=Math.max(u.length+r,this._longestLineLength);xi(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const u of a)l=document.createElement("div"),l.innerText=u,u===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||s){const u=document.createElement("span");if(u.classList.add("details"),l.appendChild(u),t){const g=document.createElement("span");g.innerText=t,g.classList.add("source"),u.appendChild(g)}if(s)if(typeof s=="string"){const g=document.createElement("span");g.innerText=`(${s})`,g.classList.add("code"),u.appendChild(g)}else{this._codeLink=X("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=p=>{this._openerService.open(s.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()};const g=q(this._codeLink,X("span"));g.innerText=s.value,u.appendChild(this._codeLink)}}if(xi(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Cn(n)){const u=this._relatedBlock.appendChild(document.createElement("div"));u.style.paddingTop=`${Math.floor(this._editor.getOption(63)*.66)}px`,this._lines+=1;for(const g of n){const p=document.createElement("div"),m=document.createElement("a");m.classList.add("filename"),m.innerText=`${this._labelService.getUriBasenameLabel(g.resource)}(${g.startLineNumber}, ${g.startColumn}): `,m.title=this._labelService.getUriLabel(g.resource),this._relatedDiagnostics.set(m,g);const _=document.createElement("span");_.innerText=g.message,p.appendChild(m),p.appendChild(_),this._lines+=1,u.appendChild(p)}}const c=this._editor.getOption(47),d=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case qt.Error:t=f("Error","Error");break;case qt.Warning:t=f("Warning","Warning");break;case qt.Info:t=f("Info","Info");break;case qt.Hint:t=f("Hint","Hint");break}let i=f("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let af=class N9 extends o1{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new Z,this._onDidSelectRelatedInformation=new O,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=qt.Warning,this._backgroundColor=H.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Wae);let t=vI,i=Oae;this._severity===qt.Warning?(t=_v,i=Fae):this._severity===qt.Info&&(t=CI,i=Bae);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(J8),secondaryHeadingColor:e.getColor(e9)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(n=>this.editor.focus()));const t=[],i=this._menuService.createMenu(N9.TitleMenu,this._contextKeyService);J3(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=q(e,X(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Pae(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=y.lift(e),s=this.editor.getPosition(),r=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(r,this.computeRequiredHeight());const a=this.editor.getModel();if(a){const l=i>1?f("problems","{0} of {1} problems",t,i):f("change","{0} of {1} problem",t,i);this.setTitle(uo(a.uri),l)}this._icon.className=`codicon ${bI.className(qt.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};af.TitleMenu=new T("gotoErrorTitleMenu");af=Rae([yu(1,Hi),yu(2,vo),yu(3,Ea),yu(4,Me),yu(5,Ee),yu(6,Yg)],af);const aO=Am(ia,sj),lO=Am(Fs,Mm),cO=Am(es,gx),vI=M("editorMarkerNavigationError.background",{dark:aO,light:aO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationError","Editor marker navigation widget error color.")),Oae=M("editorMarkerNavigationError.headerBackground",{dark:pe(vI,.1),light:pe(vI,.1),hcDark:null,hcLight:null},f("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),_v=M("editorMarkerNavigationWarning.background",{dark:lO,light:lO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Fae=M("editorMarkerNavigationWarning.headerBackground",{dark:pe(_v,.1),light:pe(_v,.1),hcDark:"#0C141F",hcLight:pe(_v,.2)},f("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),CI=M("editorMarkerNavigationInfo.background",{dark:cO,light:cO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Bae=M("editorMarkerNavigationInfo.headerBackground",{dark:pe(CI,.1),light:pe(CI,.1),hcDark:null,hcLight:null},f("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Wae=M("editorMarkerNavigation.background",{dark:Ti,light:Ti,hcDark:Ti,hcLight:Ti},f("editorMarkerNavigationBackground","Editor marker navigation widget background."));var Vae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},y0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},M9=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let zc=class bv{static get(e){return e.getContribution(bv.ID)}constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new Z,this._editor=e,this._widgetVisible=A9.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(af,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(i=>{var n,s,r;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!y.containsPosition((s=this._model)===null||s===void 0?void 0:s.selected.marker,i.position))&&((r=this._model)===null||r===void 0||r.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const i=this._model.find(this._editor.getModel().uri,this._widget.position);i?this._widget.updateMarker(i.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(i=>{this._editorService.openCodeEditor({resource:i.resource,options:{pinned:!0,revealIfOpened:!0,selection:y.lift(i).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new W(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var i,n;return M9(this,void 0,void 0,function*(){if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&((i=bv.get(r))===null||i===void 0||i.close(),(n=bv.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};zc.ID="editor.contrib.markerController";zc=Vae([y0(1,T9),y0(2,Ee),y0(3,ut),y0(4,Me)],zc);class Xw extends de{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return M9(this,void 0,void 0,function*(){t.hasModel()&&((i=zc.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class Sc extends Xw{constructor(){super(!0,!1,{id:Sc.ID,label:Sc.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:578,weight:100},menuOpts:{menuId:af.TitleMenu,title:Sc.LABEL,icon:gi("marker-navigation-next",se.arrowDown,f("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Sc.ID="editor.action.marker.next";Sc.LABEL=f("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class nh extends Xw{constructor(){super(!1,!1,{id:nh.ID,label:nh.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1602,weight:100},menuOpts:{menuId:af.TitleMenu,title:nh.LABEL,icon:gi("marker-navigation-previous",se.arrowUp,f("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}nh.ID="editor.action.marker.prev";nh.LABEL=f("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class Hae extends Xw{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:f("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:66,weight:100},menuOpts:{menuId:T.MenubarGoMenu,title:f({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class zae extends Xw{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:f("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1090,weight:100},menuOpts:{menuId:T.MenubarGoMenu,title:f({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}lt(zc.ID,zc,4);J(Sc);J(nh);J(Hae);J(zae);const A9=new ce("markersNavigationVisible",!1),Uae=Ji.bindToContribution(zc.get);ie(new Uae({id:"closeMarkersNavigation",precondition:A9,handler:o=>o.close(),kbOpts:{weight:100+50,kbExpr:N.focus,primary:9,secondary:[1033]}}));var $ae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const yo=X;class jae{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const dO={type:1,filter:{include:Te.QuickFix},triggerAction:ns.QuickFixHover};let wI=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];for(const a of t){const l=a.range.startLineNumber===n?a.range.startColumn:1,c=a.range.endLineNumber===n?a.range.endColumn:s,d=this._markerDecorationsService.getMarker(i.uri,a);if(!d)continue;const h=new y(e.range.startLineNumber,l,e.range.startLineNumber,c);r.push(new jae(this,h,d))}return r}renderHoverParts(e,t){if(!t.length)return U.None;const i=new Z;t.forEach(s=>e.fragment.appendChild(this.renderMarkerHover(s,i)));const n=t.length===1?t[0]:t.sort((s,r)=>qt.compare(s.marker.severity,r.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=yo("div.hover-row"),n=q(i,yo("div.marker.hover-contents")),{source:s,message:r,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);const c=q(n,yo("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=r,s||a)if(a&&typeof a!="string"){const d=yo("span");if(s){const p=q(d,yo("span"));p.innerText=s}const h=q(d,yo("a.code-link"));h.setAttribute("href",a.target.toString()),t.add(K(h,"click",p=>{this._openerService.open(a.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()}));const u=q(h,yo("span"));u.innerText=a.value;const g=q(n,d);g.style.opacity="0.6",g.style.paddingLeft="6px"}else{const d=q(n,yo("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(Cn(l))for(const{message:d,resource:h,startLineNumber:u,startColumn:g}of l){const p=q(n,yo("div"));p.style.marginTop="8px";const m=q(p,yo("a"));m.innerText=`${uo(h)}(${u}, ${g}): `,m.style.cursor="pointer",t.add(K(m,"click",v=>{v.stopPropagation(),v.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(Oe)}));const _=q(p,yo("span"));_.innerText=d,this._editor.applyFontInfo(_)}return i}renderMarkerStatusbar(e,t,i){if((t.marker.severity===qt.Error||t.marker.severity===qt.Warning||t.marker.severity===qt.Info)&&e.statusBar.addAction({label:f("view problem","View Problem"),commandId:Sc.ID,run:()=>{var n;e.hide(),(n=zc.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(86)){const n=e.statusBar.append(yo("div"));this.recentMarkerCodeActionsInfo&&(UC.makeKey(this.recentMarkerCodeActionsInfo.marker)===UC.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=f("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?U.None:i.add(dh(()=>n.textContent=f("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add(Pe(()=>r.cancel())),r.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=f("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Pe(()=>{l||a.dispose()})),e.statusBar.addAction({label:f("quick fixes","Quick Fix..."),commandId:Nf.Id,run:c=>{l=!0;const d=kh.get(this._editor),h=Fi(c);e.hide(),d==null||d.showCodeActions(dO,a,{x:h.left+6,y:h.top+h.height+6,width:h.width,height:h.height})}})},Oe)}}getCodeActions(e){return Wi(t=>UN(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),dO,Qh.None,t))}};wI=$ae([wL(1,iT),wL(2,vo),wL(3,ge)],wI);const R9="editor.action.inlineSuggest.commit",P9="editor.action.inlineSuggest.showPrevious",O9="editor.action.inlineSuggest.showNext";var Kae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class qae extends U{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new ZW),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new Z,this.options=i,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new b_(()=>{var n;return(n=this.toggleMenuActionViewItem)===null||n===void 0?void 0:n.show()},i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new go(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,actionViewItemProvider:(n,s)=>{var r;if(n.id===b_.ID)return this.toggleMenuActionViewItem=new OC(n,n.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:De.asClassNameArray((r=i.moreIcon)!==null&&r!==void 0?r:se.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const a=i.actionViewItemProvider(n,s);if(a)return a}if(n instanceof Hg){const a=new OC(n,n.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:n.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement});return a.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(a),this.disposables.add(this._onDidChangeDropdownVisibility.add(a.onDidChangeVisibility)),a}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach(n=>{this.actionBar.push(n,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(n)})})}getKeybindingLabel(e){var t,i;const n=this.lookupKeybindings?(i=(t=this.options).getKeyBinding)===null||i===void 0?void 0:i.call(t,e):void 0;return an(n==null?void 0:n.getLabel())}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}}class b_ extends ms{constructor(e,t){t=t||f("moreActions","More Actions..."),super(b_.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return Kae(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}b_.ID="toolbar.toggle.more";var Gae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},rp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let SI=class extends qae{constructor(e,t,i,n,s,r,a){super(e,s,Object.assign(Object.assign({getKeyBinding:l=>{var c;return(c=r.lookupKeybinding(l.id))!==null&&c!==void 0?c:void 0}},t),{allowContextMenu:!0})),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=s,this._sessionDisposables=this._store.add(new Z),t!=null&&t.telemetrySource&&this._store.add(this.actionBar.onDidRun(l=>a.publicLog2("workbenchActionExecuted",{id:l.action.id,from:t.telemetrySource})))}setActions(e,t=[],i){var n,s,r;this._sessionDisposables.clear();const a=e.slice(),l=t.slice(),c=[];let d=0;const h=[];let u=!1;if(((n=this._options)===null||n===void 0?void 0:n.hiddenItemStrategy)!==-1)for(let g=0;g=this._options.maxNumberOfItems&&(a[p]=void 0,h[p]=m)}}T2(a),T2(h),super.setActions(a,Bi.join(h,l)),c.length>0&&this._sessionDisposables.add(K(this.getElement(),"contextmenu",g=>{var p,m,_,v;const b=this.getItemAction(g.target);if(!b)return;g.preventDefault(),g.stopPropagation();let C=!1;if(d===1&&((p=this._options)===null||p===void 0?void 0:p.hiddenItemStrategy)===0){C=!0;for(let E=0;Ethis._menuService.resetHiddenStates(i)}))),this._contextMenuService.showContextMenu({getAnchor:()=>g,getActions:()=>x,menuId:(_=this._options)===null||_===void 0?void 0:_.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(v=this._options)===null||v===void 0?void 0:v.menuOptions),contextKeyService:this._contextKeyService})}))}};SI=Gae([rp(2,Ea),rp(3,Ee),rp(4,xr),rp(5,ei),rp(6,mo)],SI);var F9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qr=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Zae=gi("inline-suggestion-hints-next",se.chevronRight,f("parameterHintsNextIcon","Icon for show next parameter hint.")),Yae=gi("inline-suggestion-hints-previous",se.chevronLeft,f("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Th=class yI extends U{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new ms(e,t,i,!0,()=>this._commandService.executeCommand(e)),s=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return s&&(r=f({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,s.getLabel())),n.tooltip=r,n}constructor(e,t,i,n,s,r,a){super(),this.editor=e,this.withBorder=t,this._commandService=i,this.keybindingService=s,this._contextKeyService=r,this._menuService=a,this.id=`InlineSuggestionHintsContentWidget${yI.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=vp("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[vp("div",{style:{display:"flex"}},[vp("div@actionBar",{className:"custom-actions"}),vp("div@toolBar")])]),this.position=null,this.previousAction=this.createCommandAction(P9,f("previous","Previous"),De.asClassName(Yae)),this.availableSuggestionCountAction=new ms("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(O9,f("next","Next"),De.asClassName(Zae)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(T.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new wt(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new wt(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100));const l=this._register(new go(this.nodes.actionBar));l.push(this.previousAction,{icon:!0,label:!1}),l.push(this.availableSuggestionCountAction),l.push(this.nextAction,{icon:!0,label:!1}),this.toolBar=this._register(n.createInstance(LI,this.nodes.toolBar,T.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:c=>c.startsWith("primary")},actionViewItemProvider:(c,d)=>c instanceof Vo?n.createInstance(Qae,c,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(c=>{yI._dropDownVisible=c}))}update(e,t,i,n){this.position=e,i!==void 0&&i>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule(),i!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${t+1}/${i}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),this.editor.layoutContentWidget(this);const s=n.map(r=>({class:void 0,id:r.id,enabled:!0,tooltip:r.tooltip||"",label:r.title,run:a=>this._commandService.executeCommand(r.id)}));for(const[r,a]of this.inlineCompletionsActionsMenus.getActions())for(const l of a)l instanceof Vo&&s.push(l);s.length>0&&s.unshift(new Bi),this.toolBar.setAdditionalSecondaryActions(s)}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this.position,preference:[1,2],positionAffinity:3}}};Th._dropDownVisible=!1;Th.id=0;Th=F9([Qr(2,ri),Qr(3,Me),Qr(4,ei),Qr(5,Ee),Qr(6,Ea)],Th);let Qae=class extends bh{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=vp("div.keybinding").root;new nb(t,Ps,{disableTitle:!0}).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},LI=class extends SI{constructor(e,t,i,n,s,r,a,l){super(e,Object.assign({resetMenu:t},i),n,s,r,a,l),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,r,a;const l=[],c=[];J3(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:c},(i=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||i===void 0?void 0:i.primaryGroup,(s=(n=this.options2)===null||n===void 0?void 0:n.toolbarOptions)===null||s===void 0?void 0:s.shouldInlineSubmenu,(a=(r=this.options2)===null||r===void 0?void 0:r.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),c.push(...this.additionalActions),this.setActions(l,c)}setAdditionalSecondaryActions(e){this.additionalActions=e,this.updateToolbar()}};LI=F9([Qr(3,Ea),Qr(4,Ee),Qr(5,xr),Qr(6,ei),Qr(7,mo)],LI);var Xae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},L0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Uc=class B9{static get(e){return e.getContribution(B9.ID)}constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._toUnhook=new Z,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(r=>{r.hasChanged(57)&&(this._unhookEvents(),this._hookEvents())})}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(57);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._toUnhook.add(this._editor.onMouseUp(i=>this._onEditorMouseUp(i))),this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))):(this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))),this._toUnhook.add(this._editor.onMouseLeave(i=>this._onEditorMouseLeave(i))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(i=>this._onEditorScrollChanged(i)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;if(t.type===9&&t.detail===ih.ID){this._hoverClicked=!0;return}t.type===12&&t.detail===xg.ID||(t.type!==12&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;const i=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.containsNode(i)||this._hideWidgets()}_onEditorMouseMove(e){var t,i,n,s,r,a;const l=e.target;if(this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&l.type===9&&l.detail===ih.ID||this._isHoverSticky&&!(!((i=(t=e.event.browserEvent.view)===null||t===void 0?void 0:t.getSelection())===null||i===void 0)&&i.isCollapsed)||!this._isHoverSticky&&l.type===9&&l.detail===ih.ID&&(!((n=this._contentWidget)===null||n===void 0)&&n.isColorPickerVisible())||this._isHoverSticky&&l.type===12&&l.detail===xg.ID||this._isHoverSticky&&(!((s=this._contentWidget)===null||s===void 0)&&s.isVisibleFromKeyboard()))return;if(!this._isHoverEnabled){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(r=this._glyphWidget)===null||r===void 0||r.hide();return}if(l.type===2&&l.position){(a=this._contentWidget)===null||a===void 0||a.hide(),this._glyphWidget||(this._glyphWidget=new xg(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(l.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible())||Th.dropDownVisible||(this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(a1,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i,n){this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};Uc.ID="editor.contrib.hover";Uc=Xae([L0(1,Me),L0(2,vo),L0(3,Ut),L0(4,Ee)],Uc);class Jae extends de{constructor(){super({id:"editor.action.showHover",label:f({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=Uc.get(t);if(!i)return;const n=t.getPosition(),s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=t.getOption(2)===2;i.showContentHover(s,1,1,r)}}class ele extends de{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:f({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=Uc.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=Eh.get(t);if(!r)return;r.startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(s,1,1,!0)})}}lt(Uc.ID,Uc,2);J(Jae);J(ele);ou.register(c1);ou.register(wI);Ho((o,e)=>{const t=o.getColor(vj);t&&(e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${t.transparent(.5)}; }`))});class DI extends U{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=e.target;if(t.type!==6||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==q8||!t.range)return;const i=this._editor.getContribution(Uc.ID);if(i&&!i.isColorPickerVisible()){const n=new y(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(n,1,0,!1)}}}DI.ID="editor.contrib.colorContribution";lt(DI.ID,DI,2);ou.register(eI);const Jw=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;nW9(this,void 0,void 0,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function tle(o,e,t){return{id:Jw(),asString:()=>W9(this,void 0,void 0,function*(){return""}),asFile:()=>({name:o,uri:e,data:t}),value:void 0}}class V9{constructor(){this._entries=new Map}get size(){return this._entries.size}has(e){return this._entries.has(this.toKey(e))}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*entries(){for(const[e,t]of this._entries.entries())for(const i of t)yield[e,i]}values(){return Array.from(this._entries.values()).flat()}forEach(e){for(const[t,i]of this.entries())e(i,t)}toKey(e){return e.toLowerCase()}}const eS=Object.freeze({create:o=>Dc(o.map(e=>e.toString())).join(`\r `),split:o=>o.split(`\r `),parse:o=>eS.split(o).filter(e=>!e.startsWith("#"))}),h1={EDITORS:"CodeEditors",FILES:"CodeFiles"};function ile(o){var e;const t=[];if(o.dataTransfer&&o.dataTransfer.types.length>0){const s=o.dataTransfer.getData(h1.EDITORS);if(s)try{t.push(...LC(s))}catch{}else try{const l=o.dataTransfer.getData(J_.RESOURCES);t.push(...nle(l))}catch{}if(!((e=o.dataTransfer)===null||e===void 0)&&e.files)for(let l=0;l0){const{selection:n,uri:s}=$3(Ce.parse(i));e.push({resource:s,options:{selection:n}})}}return e}class sle{constructor(){this._contributions=new Map}getAll(){return this._contributions.values()}}const H9={DragAndDropContribution:"workbench.contributions.dragAndDrop"};$t.add(H9.DragAndDropContribution,new sle);var ole=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function xI(o){const e=new V9;for(const t of o.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,e2(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,rle(n))}}return e}function rle(o){const e=o.path?Ce.parse(o.path):void 0;return tle(o.name,e,()=>ole(this,void 0,void 0,function*(){return new Uint8Array(yield o.arrayBuffer())}))}const ale=Object.freeze([h1.EDITORS,h1.FILES,J_.RESOURCES]);function lle(o,e,t=!1){var i;if(e.dataTransfer&&(t||!o.has(Qn.uriList))){const n=ile(e).filter(s=>s.resource).map(s=>s.resource.toString());for(const s of(i=e.dataTransfer)===null||i===void 0?void 0:i.items){const r=s.getAsFile();r&&n.push(r.path?Ce.file(r.path).toString():r.name)}n.length&&o.replace(Qn.uriList,e2(eS.create(n)))}for(const n of ale)o.delete(n)}var cle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ap=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},D0=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const SL="application/vnd.code.copyMetadata";let v_=class extends U{constructor(e,t,i,n,s,r){super(),this._bulkEditService=t,this._clipboardService=i,this._configurationService=n,this._languageFeaturesService=s,this._progressService=r,this._editor=e;const a=e.getContainerDomNode();this._register(K(a,"copy",l=>this.handleCopy(l))),this._register(K(a,"cut",l=>this.handleCopy(l))),this._register(K(a,"paste",l=>this.handlePaste(l),!0))}arePasteActionsEnabled(e){return this._configurationService.getValue("editor.experimental.pasteActions.enabled",{resource:e.uri})?!0:e.uri.scheme===We.vscodeNotebookCell}handleCopy(e){var t;if(!e.clipboardData||!this._editor.hasTextFocus())return;const i=this._editor.getModel(),n=this._editor.getSelections();if(!i||!(n!=null&&n.length)||!this.arePasteActionsEnabled(i))return;const s=[...n],r=n[0],a=r.isEmpty();if(a){if(!this._editor.getOption(34))return;s[0]=new y(r.startLineNumber,0,r.startLineNumber,i.getLineLength(r.startLineNumber))}const l=this._languageFeaturesService.documentPasteEditProvider.ordered(i).filter(u=>!!u.prepareDocumentPaste);if(!l.length){this.setCopyMetadata(e.clipboardData,{wasFromEmptySelection:a});return}const c=xI(e.clipboardData),d=Jw();this.setCopyMetadata(e.clipboardData,{id:d,wasFromEmptySelection:a});const h=Wi(u=>D0(this,void 0,void 0,function*(){const g=yield Promise.all(l.map(p=>p.prepareDocumentPaste(i,s,c,u)));for(const p of g)p==null||p.forEach((m,_)=>{c.replace(_,m)});return c}));(t=this._currentClipboardItem)===null||t===void 0||t.dataTransferPromise.cancel(),this._currentClipboardItem={handle:d,dataTransferPromise:h}}setCopyMetadata(e,t){e.setData(SL,JSON.stringify(t))}handlePaste(e){var t,i,n,s;return D0(this,void 0,void 0,function*(){if(!e.clipboardData||!this._editor.hasTextFocus())return;const r=this._editor.getSelections();if(!(r!=null&&r.length)||!this._editor.hasModel())return;const a=this._editor.getModel();if(!this.arePasteActionsEnabled(a))return;let l;const c=(t=e.clipboardData)===null||t===void 0?void 0:t.getData(SL);c&&typeof c=="string"&&(l=JSON.parse(c));const d=this._languageFeaturesService.documentPasteEditProvider.ordered(a);if(!d.length)return;e.preventDefault(),e.stopImmediatePropagation();const h=new Sh(this._editor,3);try{const u=xI(e.clipboardData);if(l!=null&&l.id&&((i=this._currentClipboardItem)===null||i===void 0?void 0:i.handle)===l.id){const p=yield this._currentClipboardItem.dataTransferPromise;if(h.token.isCancellationRequested)return;p.forEach((m,_)=>{u.replace(_,m)})}if(!u.has(Qn.uriList)){const p=yield this._clipboardService.readResources();if(h.token.isCancellationRequested)return;p.length&&u.append(Qn.uriList,e2(eS.create(p)))}u.delete(SL);const g=yield this._progressService.withProgress({location:15,delay:750,title:f("pasteProgressTitle","Running paste handlers..."),cancellable:!0},()=>this.getProviderPasteEdit(d,u,a,r,h.token),()=>h.cancel());if(h.token.isCancellationRequested)return;if(g){const p=typeof g.insertText=="string"?Hc.escape(g.insertText):g.insertText.snippet,m={edits:[new fl(a.uri,{range:he.liftSelection(this._editor.getSelection()),text:p,insertAsSnippet:!0}),...(s=(n=g.additionalEdit)===null||n===void 0?void 0:n.edits)!==null&&s!==void 0?s:[]]};yield this._bulkEditService.apply(m,{editor:this._editor});return}yield this.applyDefaultPasteHandler(u,l,h.token)}finally{h.dispose()}})}getProviderPasteEdit(e,t,i,n,s){return U1((()=>D0(this,void 0,void 0,function*(){for(const r of e){if(s.isCancellationRequested)return;if(!dle(r,t))continue;const a=yield r.provideDocumentPasteEdits(i,n,t,s);if(a)return a}}))(),s)}applyDefaultPasteHandler(e,t,i){var n;return D0(this,void 0,void 0,function*(){const s=(n=e.get(Qn.text))!==null&&n!==void 0?n:e.get("text");if(!s)return;const r=yield s.asString();i.isCancellationRequested||this._editor.trigger("keyboard","paste",{text:r,pasteOnNewLine:t==null?void 0:t.wasFromEmptySelection,multicursorText:null})})}};v_.ID="editor.contrib.copyPasteActionController";v_=cle([ap(1,ib),ap(2,Dl),ap(3,at),ap(4,ge),ap(5,QT)],v_);function dle(o,e){return o.pasteMimeTypes.some(t=>t.toLowerCase()===J_.FILES.toLowerCase()?[...e.values()].some(i=>i.asFile()):e.has(t))}lt(v_.ID,v_,0);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},eN),{properties:{"editor.experimental.pasteActions.enabled":{type:"boolean",scope:5,description:f("pasteActions","Enable/disable running edits from extensions on paste."),default:!1}}}));class cc{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const n=t.length,s=e.length;if(i+n>s)return!1;for(let r=0;r=65&&a<=90&&a+32===l)&&!(l>=65&&l<=90&&l+32===a))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,s,r){const a=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,d=e.endColumn,h=s.getLineContent(a),u=s.getLineContent(c);let g=h.lastIndexOf(t,l-1+t.length),p=u.indexOf(i,d-1-i.length);if(g!==-1&&p!==-1)if(a===c)h.substring(g+t.length,p).indexOf(i)>=0&&(g=-1,p=-1);else{const _=h.substring(g+t.length),v=u.substring(0,p);(_.indexOf(i)>=0||v.indexOf(i)>=0)&&(g=-1,p=-1)}let m;g!==-1&&p!==-1?(n&&g+t.length0&&u.charCodeAt(p-1)===32&&(i=" "+i,p-=1),m=cc._createRemoveBlockCommentOperations(new y(a,g+t.length+1,c,p+1),t,i)):(m=cc._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=m.length===1?i:null);for(const _ of m)r.addTrackedEditOperation(_.range,_.text)}static _createRemoveBlockCommentOperations(e,t,i){const n=[];return y.isEmpty(e)?n.push(Wt.delete(new y(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(Wt.delete(new y(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(Wt.delete(new y(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){const s=[];return y.isEmpty(e)?s.push(Wt.replace(new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(s.push(Wt.insert(new W(e.startLineNumber,e.startColumn),t+(n?" ":""))),s.push(Wt.insert(new W(e.endLineNumber,e.endColumn),(n?" ":"")+i))),s}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const s=e.getLanguageIdAtPosition(i,n),r=this.languageConfigurationService.getLanguageConfiguration(s).comments;!r||!r.blockCommentStartToken||!r.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(i.length===2){const n=i[0],s=i[1];return new he(n.range.endLineNumber,n.range.endColumn,s.range.startLineNumber,s.range.startColumn)}else{const n=i[0].range,s=this._usedEndToken?-this._usedEndToken.length-1:0;return new he(n.endLineNumber,n.endColumn+s,n.endLineNumber,n.endColumn+s)}}}class Ka{constructor(e,t,i,n,s,r,a){this.languageConfigurationService=e,this._selection=t,this._tabSize=i,this._type=n,this._insertSpace=s,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=a||!1}static _gatherPreflightCommentStrings(e,t,i,n){e.tokenization.tokenizeIfCheap(t);const s=e.getLanguageIdAtPosition(t,1),r=n.getLanguageConfiguration(s).comments,a=r?r.lineCommentToken:null;if(!a)return null;const l=[];for(let c=0,d=i-t+1;cs?t[l].commentStrOffset=r-1:t[l].commentStrOffset=r}}}class t2 extends de{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(ui);if(!t.hasModel())return;const n=t.getModel(),s=[],r=n.getOptions(),a=t.getOption(20),l=t.getSelections().map((d,h)=>({selection:d,index:h,ignoreFirstLine:!1}));l.sort((d,h)=>y.compareRangesUsingStarts(d.selection,h.selection));let c=l[0];for(let d=1;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Lu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let lf=class z9{static get(e){return e.getContribution(z9.ID)}constructor(e,t,i,n,s,r,a){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=s,this._menuService=r,this._configurationService=a,this._toDispose=new Z,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(l=>this._onContextMenu(l))),this._toDispose.add(this._editor.onMouseWheel(l=>{if(this._contextMenuIsBeingShownCount>0){const c=this._contextViewService.getContextViewElement(),d=l.srcElement;d.shadowRoot&&uh(c)===d.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(l=>{this._editor.getOption(21)&&l.keyCode===58&&(l.preventDefault(),l.stopPropagation(),this.showContextMenu())}))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(21)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(e.target.type===12||e.target.type===6&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),e.target.type===11)return this._showScrollbarContextMenu({x:e.event.posx-1,width:2,y:e.event.posy-1,height:2});if(e.target.type!==6&&e.target.type!==7&&e.target.type!==1)return;if(this._editor.focus(),e.target.position){let i=!1;for(const n of this._editor.getSelections())if(n.containsPosition(e.target.position)){i=!0;break}i||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(21)||!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?T.SimpleEditorContext:T.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),s=n.getActions({arg:e.uri});n.dispose();for(const r of s){const[,a]=r;let l=0;for(const c of a)if(c instanceof Tm){const d=this._getMenuActions(e,c.item.submenu);d.length>0&&(i.push(new Hg(c.id,c.label,d)),l++)}else i.push(c),l++;l&&i.push(new Bi)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(57);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const s=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),r=Fi(this._editor.getDomNode()),a=r.left+s.left,l=r.top+s.top+s.height;t={x:a,y:l}}const n=this._editor.getOption(121)&&!ga;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:n?this._editor.getDomNode():void 0,getAnchor:()=>t,getActions:()=>e,getActionViewItem:s=>{const r=this._keybindingFor(s);if(r)return new Zm(s,s,{label:!0,keybinding:r.getLabel(),isMenu:!0});const a=s;return typeof a.getActionViewItem=="function"?a.getActionViewItem():new Zm(s,s,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:s=>this._keybindingFor(s),onHide:s=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;const t=this._editor.getOption(69);let i=0;const n=c=>({id:`menu-action-${++i}`,label:c.label,tooltip:"",class:void 0,enabled:typeof c.enabled>"u"?!0:c.enabled,checked:c.checked,run:c.run}),s=(c,d)=>new Hg(`menu-action-${++i}`,c,d,void 0),r=(c,d,h,u,g)=>{if(!d)return n({label:c,enabled:d,run:()=>{}});const p=_=>()=>{this._configurationService.updateValue(h,_)},m=[];for(const _ of g)m.push(n({label:_.label,checked:u===_.value,run:p(_.value)}));return s(c,m)},a=[];a.push(n({label:f("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new Bi),a.push(n({label:f("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(r(f("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:f("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:f("context.minimap.size.fill","Fill"),value:"fill"},{label:f("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(r(f("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:f("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:f("context.minimap.slider.always","Always"),value:"always"}]));const l=this._editor.getOption(121)&&!ga;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:c=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};lf.ID="editor.contrib.contextmenu";lf=ple([Lu(1,xr),Lu(2,xl),Lu(3,Ee),Lu(4,ei),Lu(5,Ea),Lu(6,at)],lf);class mle extends de{constructor(){super({id:"editor.action.showContextMenu",label:f("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;(i=lf.get(t))===null||i===void 0||i.showContextMenu()}}lt(lf.ID,lf,2);J(mle);class yL{constructor(e){this.selections=e}equals(e){const t=this.selections.length,i=e.selections.length;if(t!==i)return!1;for(let n=0;n{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const i=new yL(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new LL(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new LL(new yL(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new LL(new yL(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}Nh.ID="editor.contrib.cursorUndoRedoController";class _le extends de{constructor(){super({id:"cursorUndo",label:f("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;(n=Nh.get(t))===null||n===void 0||n.cursorUndo()}}class ble extends de{constructor(){super({id:"cursorRedo",label:f("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;(n=Nh.get(t))===null||n===void 0||n.cursorRedo()}}lt(Nh.ID,Nh,0);J(_le);J(ble);class vle{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new y(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new he(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new he(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumberthis._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!this._editor.getOption(32)||this._editor.getOption(19)||(Du(e)&&(this._modifierPressed=!0),this._mouseDown&&Du(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(32)||this._editor.getOption(19)||(Du(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===_l.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(this._dragSelection===null){const n=(this._editor.getSelections()||[]).filter(s=>t.position&&s.containsPosition(t.position));if(n.length===1)this._dragSelection=n[0];else return}Du(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new W(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let i=null;if(e.event.shiftKey){const n=this._editor.getSelection();if(n){const{selectionStartLineNumber:s,selectionStartColumn:r}=n;i=[new he(s,r,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map(n=>n.containsPosition(t)?new he(t.lineNumber,t.column,t.lineNumber,t.column):n);this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(Du(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(_l.ID,new vle(this._dragSelection,t,Du(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new y(e.lineNumber,e.column,e.lineNumber,e.column),options:_l._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}_l.ID="editor.contrib.dragAndDrop";_l.TRIGGER_KEY_VALUE=Ke?6:5;_l._DECORATION_OPTIONS=Re.register({description:"dnd-target",className:"dnd-target"});lt(_l.ID,_l,2);var U9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Fp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},vv=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let C_=class extends U{constructor(e,t,i,n,s){super(),this._bulkEditService=t,this._languageFeaturesService=i,this._progressService=n,this._register(e.onDropIntoEditor(r=>this.onDropIntoEditor(e,r.position,r.event))),this._languageFeaturesService.documentOnDropEditProvider.register("*",new kI(s))}onDropIntoEditor(e,t,i){var n,s;return vv(this,void 0,void 0,function*(){if(!i.dataTransfer||!e.hasModel())return;const r=e.getModel(),a=r.getVersionId(),l=yield this.extractDataTransferData(i);if(l.size===0||e.getModel().getVersionId()!==a)return;const c=new Sh(e,1);try{const d=this._languageFeaturesService.documentOnDropEditProvider.ordered(r),h=yield this._progressService.withProgress({location:15,delay:750,title:f("dropProgressTitle","Running drop handlers..."),cancellable:!0},()=>U1((()=>vv(this,void 0,void 0,function*(){for(const u of d){const g=yield u.provideDocumentOnDropEdits(r,t,l,c.token);if(c.token.isCancellationRequested)return;if(g)return g}}))(),c.token),()=>{c.cancel()});if(c.token.isCancellationRequested||e.getModel().getVersionId()!==a)return;if(h){const u=typeof h.insertText=="string"?Hc.escape(h.insertText):h.insertText.snippet,g={edits:[new fl(r.uri,{range:new y(t.lineNumber,t.column,t.lineNumber,t.column),text:u,insertAsSnippet:!0}),...(s=(n=h.additionalEdit)===null||n===void 0?void 0:n.edits)!==null&&s!==void 0?s:[]]};yield this._bulkEditService.apply(g,{editor:e});return}}finally{c.dispose()}})}extractDataTransferData(e){return vv(this,void 0,void 0,function*(){if(!e.dataTransfer)return new V9;const t=xI(e.dataTransfer);return lle(t,e),t})}};C_.ID="editor.contrib.dropIntoEditorController";C_=U9([Fp(1,ib),Fp(2,ge),Fp(3,QT),Fp(4,Xm)],C_);let kI=class{constructor(e){this._workspaceContextService=e}provideDocumentOnDropEdits(e,t,i,n){var s;return vv(this,void 0,void 0,function*(){const r=i.get(Qn.uriList);if(r){const l=yield r.asString(),c=this.getUriListInsertText(l);if(c)return{insertText:c}}const a=(s=i.get("text"))!==null&&s!==void 0?s:i.get(Qn.text);if(a)return{insertText:yield a.asString()}})}getUriListInsertText(e){const t=[];for(const i of eS.parse(e))try{t.push(Ce.parse(i))}catch{}if(t.length)return t.map(i=>{const n=this._workspaceContextService.getWorkspaceFolder(i);if(n){const s=gZ(n.uri,i);if(s)return s}return i.fsPath}).join(" ")}};kI=U9([Fp(0,Xm)],kI);lt(C_.ID,C_,2);class xn{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,xn._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,xn._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let s=this._editor.getModel().getDecorationRange(t);if(s.startLineNumber!==s.endLineNumber&&s.endColumn===1){const r=s.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(r);s=new y(s.startLineNumber,s.startColumn,r,a)}this._rangeHighlightDecorationId=n.addDecoration(s,xn._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let n=xn._FIND_MATCH_DECORATION;const s=[];if(e.length>1e3){n=xn._FIND_MATCH_NO_OVERVIEW_DECORATION;const a=this._editor.getModel().getLineCount(),c=this._editor.getLayoutInfo().height/a,d=Math.max(2,Math.ceil(3/c));let h=e[0].range.startLineNumber,u=e[0].range.endLineNumber;for(let g=1,p=e.length;g=m.startLineNumber?m.endLineNumber>u&&(u=m.endLineNumber):(s.push({range:new y(h,1,u,1),options:xn._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),h=m.startLineNumber,u=m.endLineNumber)}s.push({range:new y(h,1,u,1),options:xn._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let a=0,l=e.length;ai.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>i.addDecoration(a,xn._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(!(!n||n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return s;if(!(s.startColumn0){const i=[];for(let r=0;ry.compareRangesUsingStarts(r.range,a.range));const n=[];let s=i[0];for(let r=1;r0?e[0].toUpperCase()+e.substr(1):o[0][0].toUpperCase()!==o[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function hO(o,e,t){return o[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&o[0].split(t).length===e.split(t).length}function uO(o,e,t){const i=e.split(t),n=o[0].split(t);let s="";return i.forEach((r,a)=>{s+=$9([n[a]],r)+t}),s.slice(0,-1)}class gO{constructor(e){this.staticValue=e,this.kind=0}}class wle{constructor(e){this.pieces=e,this.kind=1}}class cf{static fromStaticValue(e){return new cf([sh.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(e){!e||e.length===0?this._state=new gO(""):e.length===1&&e[0].staticValue!==null?this._state=new gO(e[0].staticValue):this._state=new wle(e)}buildReplaceString(e,t){if(this._state.kind===0)return t?$9(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,s=this._state.pieces.length;n0){const l=[],c=r.caseOps.length;let d=0;for(let h=0,u=a.length;h=c){l.push(a.slice(h));break}switch(r.caseOps[d]){case"U":l.push(a[h].toUpperCase());break;case"u":l.push(a[h].toUpperCase()),d++;break;case"L":l.push(a[h].toLowerCase());break;case"l":l.push(a[h].toLowerCase()),d++;break;default:l.push(a[h])}}a=l.join("")}i+=a}return i}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let i="";for(;e>0;){if(e=n)break;const r=o.charCodeAt(i);switch(r){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic(` diff --git a/app/src/main/resources/web/assets/NetworkView-f0757be1.js b/app/src/main/resources/web/assets/NetworkView-40fddeb1.js similarity index 84% rename from app/src/main/resources/web/assets/NetworkView-f0757be1.js rename to app/src/main/resources/web/assets/NetworkView-40fddeb1.js index d21b08bc..2ed7cda9 100644 --- a/app/src/main/resources/web/assets/NetworkView-f0757be1.js +++ b/app/src/main/resources/web/assets/NetworkView-40fddeb1.js @@ -1,4 +1,4 @@ -import{_ as y}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import{_ as k}from"./EditToolbar.vuevuetypescriptsetuptruelang-60d4e984.js";import{_ as b}from"./Breadcrumb-ebe74d39.js";import{d as N,u as $,r as m,g as C,x as r,ab as p,by as c,i as h,c as B,a as F,p as i,j as S,m as d,aV as g,o as U}from"./index-f62f2ff2.js";const q={class:"page-container"},D={class:"main"},Q=N({__name:"NetworkView",setup(j){const{t:s}=$(),o=m(0),n=m(""),a=m("");C({handle:(l,e)=>{e?r(s(e),"error"):(n.value=l.networkConfig.netplan,a.value=l.networkConfig.netmix)},document:p` +import{_ as y}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import{_ as k}from"./EditToolbar.vuevuetypescriptsetuptruelang-c9962942.js";import{_ as b}from"./Breadcrumb-f52b6c6b.js";import{d as N,u as $,r as m,g as C,x as r,ab as p,by as c,i as h,c as B,a as F,p as i,j as S,m as d,aV as g,o as U}from"./index-0c42270c.js";const q={class:"page-container"},D={class:"main"},Q=N({__name:"NetworkView",setup(j){const{t:s}=$(),o=m(0),n=m(""),a=m("");C({handle:(l,e)=>{e?r(s(e),"error"):(n.value=l.networkConfig.netplan,a.value=l.networkConfig.netmix)},document:p` query { networkConfig { ...NetworkConfigFragment diff --git a/app/src/main/resources/web/assets/NoteEditView-266394d2.js b/app/src/main/resources/web/assets/NoteEditView-e8325b10.js similarity index 93% rename from app/src/main/resources/web/assets/NoteEditView-266394d2.js rename to app/src/main/resources/web/assets/NoteEditView-e8325b10.js index d315d5a3..b2f2b690 100644 --- a/app/src/main/resources/web/assets/NoteEditView-266394d2.js +++ b/app/src/main/resources/web/assets/NoteEditView-e8325b10.js @@ -1 +1 @@ -import{_ as te}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import{_ as ne}from"./print-outline-rounded-5fefda7f.js";import{aN as ae,aO as j,aP as se,d as oe,e as ie,u as re,D as ue,r as x,s as le,f as ce,aC as de,g as z,i as _e,aQ as me,O as pe,P as D,Q as fe,R as ve,c as L,a as S,p as y,H as R,F as ge,J as he,m as O,l as J,k as W,j as A,aR as Te,w as ye,x as K,aS as ke,aT as be,aU as we,o as N,h as Ce,t as X,aV as xe,S as Ne,A as Se,B as Ee,Z as Me,a2 as Ie,a3 as Ve,a5 as Le,a4 as Ae,_ as $e}from"./index-f62f2ff2.js";import{_ as De}from"./Breadcrumb-ebe74d39.js";import{g as Z,M as Re}from"./splitpanes.es-2b477659.js";import{u as Qe}from"./markdown-737d43fa.js";var Ue=function(){return ae.Date.now()};const F=Ue;var Be="Expected a function",He=Math.max,Oe=Math.min;function We(f,l,i){var _,r,n,o,a,u,v=0,$=!1,g=!1,k=!0;if(typeof f!="function")throw new TypeError(Be);l=j(l)||0,se(i)&&($=!!i.leading,g="maxWait"in i,n=g?He(j(i.maxWait)||0,l):n,k="trailing"in i?!!i.trailing:k);function b(t){var c=_,p=r;return _=r=void 0,v=t,o=f.apply(p,c),o}function m(t){return v=t,a=setTimeout(w,l),$?b(t):o}function U(t){var c=t-u,p=t-v,V=l-c;return g?Oe(V,n-p):V}function E(t){var c=t-u,p=t-v;return u===void 0||c>=l||c<0||g&&p>=n}function w(){var t=F();if(E(t))return C(t);a=setTimeout(w,U(t))}function C(t){return a=void 0,k&&_?b(t):(_=r=void 0,o)}function M(){a!==void 0&&clearTimeout(a),v=0,_=u=r=a=void 0}function B(){return a===void 0?o:C(F())}function I(){var t=F(),c=E(t);if(_=arguments,r=this,u=t,c){if(a===void 0)return m(u);if(g)return clearTimeout(a),a=setTimeout(w,l),b(u)}return a===void 0&&(a=setTimeout(w,l)),o}return I.cancel=M,I.flush=B,I}const q=f=>(Se("data-v-1574eff6"),f=f(),Ee(),f),Fe={class:"page-container"},Ge={class:"main"},Pe={class:"v-toolbar"},je={class:"state-point"},ze=["onClick"],Je=q(()=>S("md-ripple",null,null,-1)),Ke=["onClick"],Xe=q(()=>S("md-ripple",null,null,-1)),Ze=["innerHTML"],Q="NOTE",qe=oe({__name:"NoteEditView",setup(f){const l=ie(),{t:i}=re(),_=ue(),r=x(_.params.id),n=x(),o=x(""),a=x(""),u=x(!1),{app:v,urlTokenKey:$}=le(ce()),g=de(()=>{var e;return(e=n.value)!=null&&e.deletedAt?["/notes","/notes/trash"]:["/notes"]}),{render:k}=Qe(v,$);let b=!1;function m(){return r.value==="create"}const U=We(()=>{u.value=!1,B({id:m()?"":r.value,input:{content:o.value,title:Te(o.value,{length:100,omission:""})}})},500),E=()=>{ye(o,async e=>{u.value=!0,a.value=await k(e),U()})},w=()=>{window.print()},C=x();z({handle:(e,s)=>{s?K(i(s),"error"):e&&(C.value=e.tags)},document:ke,variables:{type:Q},appApi:!0});let M=()=>{};if(m())E();else{const{refetch:e}=z({handle:async(s,d)=>{if(d)K(i(d),"error");else{if(n.value=s.note,b)return;o.value=s.note.content,a.value=await k(o.value),b=!0,E()}},document:be,variables:()=>({id:r.value}),appApi:!0});M=e}const{mutate:B,onDone:I}=_e({document:we,appApi:!0});I(e=>{var d,h;n.value=e.data.saveNote,m()&&((d=n.value)!=null&&d.id)&&(r.value=(h=n.value)==null?void 0:h.id,me(l,`/notes/${r.value}`))});function t(){var s;const e=(s=n==null?void 0:n.value)==null?void 0:s.updatedAt;return e?`(${i("updated_at")}: ${Me(e)})`:""}function c(){var e,s;Ie(Ve,{type:Q,tags:C.value,item:{key:(e=n.value)==null?void 0:e.id,title:"",size:0},selected:(s=C.value)==null?void 0:s.filter(d=>{var h;return(h=n.value)==null?void 0:h.tags.some(H=>H.id===d.id)})})}const p=e=>{e.type===Q&&M()},V=e=>{e.type===Q&&M()};return pe(()=>{D.on("item_tags_updated",V),D.on("items_tags_updated",p)}),fe(()=>{D.off("item_tags_updated",V),D.off("items_tags_updated",p)}),(e,s)=>{var P;const d=Le,h=De,H=Ae,Y=ne,ee=te,G=ve("tooltip");return N(),L("div",Fe,[S("div",Ge,[S("div",Pe,[y(h,{paths:g.value},{current:R(()=>{var T;return[Ce(X(m()?A(i)("create"):A(i)("edit"))+" ",1),O(S("span",je,"*",512),[[xe,u.value]]),(T=n.value)!=null&&T.updatedAt?(N(),Ne(d,{key:0,class:"time",id:t(),raw:n.value},null,8,["id","raw"])):W("",!0)]}),_:1},8,["paths"]),(N(!0),L(ge,null,he((P=n.value)==null?void 0:P.tags,T=>(N(),L("span",{key:T.id,class:"badge"},X(T.name),1))),128)),m()?W("",!0):O((N(),L("button",{key:0,class:"icon-button",onClick:J(c,["prevent"]),style:{"margin-inline-start":"8px"}},[Je,y(H)],8,ze)),[[G,e.$t("add_to_tags")]]),m()?W("",!0):O((N(),L("button",{key:1,class:"icon-button",onClick:J(w,["prevent"])},[Xe,y(Y)],8,Ke)),[[G,e.$t("print")]])]),y(A(Re),{class:"panel-container"},{default:R(()=>[y(A(Z),null,{default:R(()=>[y(ee,{language:"html",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=T=>o.value=T)},null,8,["modelValue"])]),_:1}),y(A(Z),null,{default:R(()=>[S("div",{class:"md-container",innerHTML:a.value},null,8,Ze)]),_:1})]),_:1})])])}}});const ot=$e(qe,[["__scopeId","data-v-1574eff6"]]);export{ot as default}; +import{_ as te}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import{_ as ne}from"./print-outline-rounded-5f50c8a6.js";import{aN as ae,aO as j,aP as se,d as oe,e as ie,u as re,D as ue,r as x,s as le,f as ce,aC as de,g as z,i as _e,aQ as me,O as pe,P as D,Q as fe,R as ve,c as L,a as S,p as y,H as R,F as ge,J as he,m as O,l as J,k as W,j as A,aR as Te,w as ye,x as K,aS as ke,aT as be,aU as we,o as N,h as Ce,t as X,aV as xe,S as Ne,A as Se,B as Ee,Z as Me,a2 as Ie,a3 as Ve,a5 as Le,a4 as Ae,_ as $e}from"./index-0c42270c.js";import{_ as De}from"./Breadcrumb-f52b6c6b.js";import{g as Z,M as Re}from"./splitpanes.es-7e8a6fea.js";import{u as Qe}from"./markdown-fa9038b1.js";var Ue=function(){return ae.Date.now()};const F=Ue;var Be="Expected a function",He=Math.max,Oe=Math.min;function We(f,l,i){var _,r,n,o,a,u,v=0,$=!1,g=!1,k=!0;if(typeof f!="function")throw new TypeError(Be);l=j(l)||0,se(i)&&($=!!i.leading,g="maxWait"in i,n=g?He(j(i.maxWait)||0,l):n,k="trailing"in i?!!i.trailing:k);function b(t){var c=_,p=r;return _=r=void 0,v=t,o=f.apply(p,c),o}function m(t){return v=t,a=setTimeout(w,l),$?b(t):o}function U(t){var c=t-u,p=t-v,V=l-c;return g?Oe(V,n-p):V}function E(t){var c=t-u,p=t-v;return u===void 0||c>=l||c<0||g&&p>=n}function w(){var t=F();if(E(t))return C(t);a=setTimeout(w,U(t))}function C(t){return a=void 0,k&&_?b(t):(_=r=void 0,o)}function M(){a!==void 0&&clearTimeout(a),v=0,_=u=r=a=void 0}function B(){return a===void 0?o:C(F())}function I(){var t=F(),c=E(t);if(_=arguments,r=this,u=t,c){if(a===void 0)return m(u);if(g)return clearTimeout(a),a=setTimeout(w,l),b(u)}return a===void 0&&(a=setTimeout(w,l)),o}return I.cancel=M,I.flush=B,I}const q=f=>(Se("data-v-1574eff6"),f=f(),Ee(),f),Fe={class:"page-container"},Ge={class:"main"},Pe={class:"v-toolbar"},je={class:"state-point"},ze=["onClick"],Je=q(()=>S("md-ripple",null,null,-1)),Ke=["onClick"],Xe=q(()=>S("md-ripple",null,null,-1)),Ze=["innerHTML"],Q="NOTE",qe=oe({__name:"NoteEditView",setup(f){const l=ie(),{t:i}=re(),_=ue(),r=x(_.params.id),n=x(),o=x(""),a=x(""),u=x(!1),{app:v,urlTokenKey:$}=le(ce()),g=de(()=>{var e;return(e=n.value)!=null&&e.deletedAt?["/notes","/notes/trash"]:["/notes"]}),{render:k}=Qe(v,$);let b=!1;function m(){return r.value==="create"}const U=We(()=>{u.value=!1,B({id:m()?"":r.value,input:{content:o.value,title:Te(o.value,{length:100,omission:""})}})},500),E=()=>{ye(o,async e=>{u.value=!0,a.value=await k(e),U()})},w=()=>{window.print()},C=x();z({handle:(e,s)=>{s?K(i(s),"error"):e&&(C.value=e.tags)},document:ke,variables:{type:Q},appApi:!0});let M=()=>{};if(m())E();else{const{refetch:e}=z({handle:async(s,d)=>{if(d)K(i(d),"error");else{if(n.value=s.note,b)return;o.value=s.note.content,a.value=await k(o.value),b=!0,E()}},document:be,variables:()=>({id:r.value}),appApi:!0});M=e}const{mutate:B,onDone:I}=_e({document:we,appApi:!0});I(e=>{var d,h;n.value=e.data.saveNote,m()&&((d=n.value)!=null&&d.id)&&(r.value=(h=n.value)==null?void 0:h.id,me(l,`/notes/${r.value}`))});function t(){var s;const e=(s=n==null?void 0:n.value)==null?void 0:s.updatedAt;return e?`(${i("updated_at")}: ${Me(e)})`:""}function c(){var e,s;Ie(Ve,{type:Q,tags:C.value,item:{key:(e=n.value)==null?void 0:e.id,title:"",size:0},selected:(s=C.value)==null?void 0:s.filter(d=>{var h;return(h=n.value)==null?void 0:h.tags.some(H=>H.id===d.id)})})}const p=e=>{e.type===Q&&M()},V=e=>{e.type===Q&&M()};return pe(()=>{D.on("item_tags_updated",V),D.on("items_tags_updated",p)}),fe(()=>{D.off("item_tags_updated",V),D.off("items_tags_updated",p)}),(e,s)=>{var P;const d=Le,h=De,H=Ae,Y=ne,ee=te,G=ve("tooltip");return N(),L("div",Fe,[S("div",Ge,[S("div",Pe,[y(h,{paths:g.value},{current:R(()=>{var T;return[Ce(X(m()?A(i)("create"):A(i)("edit"))+" ",1),O(S("span",je,"*",512),[[xe,u.value]]),(T=n.value)!=null&&T.updatedAt?(N(),Ne(d,{key:0,class:"time",id:t(),raw:n.value},null,8,["id","raw"])):W("",!0)]}),_:1},8,["paths"]),(N(!0),L(ge,null,he((P=n.value)==null?void 0:P.tags,T=>(N(),L("span",{key:T.id,class:"badge"},X(T.name),1))),128)),m()?W("",!0):O((N(),L("button",{key:0,class:"icon-button",onClick:J(c,["prevent"]),style:{"margin-inline-start":"8px"}},[Je,y(H)],8,ze)),[[G,e.$t("add_to_tags")]]),m()?W("",!0):O((N(),L("button",{key:1,class:"icon-button",onClick:J(w,["prevent"])},[Xe,y(Y)],8,Ke)),[[G,e.$t("print")]])]),y(A(Re),{class:"panel-container"},{default:R(()=>[y(A(Z),null,{default:R(()=>[y(ee,{language:"html",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=T=>o.value=T)},null,8,["modelValue"])]),_:1}),y(A(Z),null,{default:R(()=>[S("div",{class:"md-container",innerHTML:a.value},null,8,Ze)]),_:1})]),_:1})])])}}});const ot=$e(qe,[["__scopeId","data-v-1574eff6"]]);export{ot as default}; diff --git a/app/src/main/resources/web/assets/NotesRootView-dd5641d4.js b/app/src/main/resources/web/assets/NotesRootView-2ace0816.js similarity index 72% rename from app/src/main/resources/web/assets/NotesRootView-dd5641d4.js rename to app/src/main/resources/web/assets/NotesRootView-2ace0816.js index 122098a5..c78d3f04 100644 --- a/app/src/main/resources/web/assets/NotesRootView-dd5641d4.js +++ b/app/src/main/resources/web/assets/NotesRootView-2ace0816.js @@ -1 +1 @@ -import{_ as v}from"./TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js";import{d as C,D as g,e as k,E as N,G as w,c as $,p as s,H as n,j as e,o as y,a as t,t as i,l as r,I as _,C as p}from"./index-f62f2ff2.js";import{g as d,M as z}from"./splitpanes.es-2b477659.js";import"./EditValueModal-d57e85f6.js";import"./vee-validate.esm-65abdaa1.js";const B={class:"page-container"},E={class:"sidebar"},M={class:"nav-title"},S={class:"nav"},T=["onClick"],V=["onClick"],D={class:"main"},O=C({__name:"NotesRootView",setup(R){const o=g(),c=k(),l=N(o.query);function m(){p(c,"/notes/trash")}function u(){p(c,"/notes")}return(a,b)=>{const h=v,f=w("router-view");return y(),$("div",B,[s(e(z),null,{default:n(()=>[s(e(d),{size:"20","min-size":"10"},{default:n(()=>[t("div",E,[t("h2",M,i(a.$t("page_title.notes")),1),t("ul",S,[t("li",{onClick:r(u,["prevent"]),class:_({active:e(o).path==="/notes"&&!e(l)})},i(a.$t("all")),11,T),t("li",{onClick:r(m,["prevent"]),class:_({active:e(o).path==="/notes/trash"})},i(a.$t("trash")),11,V)]),s(h,{type:"NOTE",selected:e(l)},null,8,["selected"])])]),_:1}),s(e(d),null,{default:n(()=>[t("div",D,[s(f)])]),_:1})]),_:1})])}}});export{O as default}; +import{_ as v}from"./TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js";import{d as C,D as g,e as k,E as N,G as w,c as $,p as s,H as n,j as e,o as y,a as t,t as i,l as r,I as _,C as p}from"./index-0c42270c.js";import{g as d,M as z}from"./splitpanes.es-7e8a6fea.js";import"./EditValueModal-c22a5b2d.js";import"./vee-validate.esm-ca78f26f.js";const B={class:"page-container"},E={class:"sidebar"},M={class:"nav-title"},S={class:"nav"},T=["onClick"],V=["onClick"],D={class:"main"},O=C({__name:"NotesRootView",setup(R){const o=g(),c=k(),l=N(o.query);function m(){p(c,"/notes/trash")}function u(){p(c,"/notes")}return(a,b)=>{const h=v,f=w("router-view");return y(),$("div",B,[s(e(z),null,{default:n(()=>[s(e(d),{size:"20","min-size":"10"},{default:n(()=>[t("div",E,[t("h2",M,i(a.$t("page_title.notes")),1),t("ul",S,[t("li",{onClick:r(u,["prevent"]),class:_({active:e(o).path==="/notes"&&!e(l)})},i(a.$t("all")),11,T),t("li",{onClick:r(m,["prevent"]),class:_({active:e(o).path==="/notes/trash"})},i(a.$t("trash")),11,V)]),s(h,{type:"NOTE",selected:e(l)},null,8,["selected"])])]),_:1}),s(e(d),null,{default:n(()=>[t("div",D,[s(f)])]),_:1})]),_:1})])}}});export{O as default}; diff --git a/app/src/main/resources/web/assets/NotesTrashView-6cf9c6ed.js b/app/src/main/resources/web/assets/NotesTrashView-dc84dd35.js similarity index 93% rename from app/src/main/resources/web/assets/NotesTrashView-6cf9c6ed.js rename to app/src/main/resources/web/assets/NotesTrashView-dc84dd35.js index 58f51936..093e616c 100644 --- a/app/src/main/resources/web/assets/NotesTrashView-6cf9c6ed.js +++ b/app/src/main/resources/web/assets/NotesTrashView-dc84dd35.js @@ -1,4 +1,4 @@ -import{c as ue,u as _e,_ as pe,a as he,b as me}from"./list-45297bd9.js";import{o as n,c as a,a as e,d as ve,e as fe,r as m,u as ke,K as ge,L as be,D as $e,M as ye,N as qe,w as Ce,i as Te,R as we,p as r,j as s,F as $,m as v,l as d,k as T,H as Ve,t as c,J as G,S as De,T as Ne,U as Se,aZ as Ae,x as H,aW as Ie,C as j,W as z,a_ as Me,v as Be,I as Qe,Z as E,$ as Re,a0 as Le,a1 as Ze,aY as Ue,a2 as Fe,ab as Ge,ac as He,ad as je,a5 as ze}from"./index-f62f2ff2.js";import{_ as Ee}from"./Breadcrumb-ebe74d39.js";import{u as Ke}from"./tags-06583423.js";import"./vee-validate.esm-65abdaa1.js";const We={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},xe=e("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm0 0v13V6Zm4 5.85V15q0 .425.288.713T12 16q.425 0 .713-.288T13 15v-3.15l.9.875q.3.275.713.263t.687-.288q.275-.275.275-.7t-.275-.7l-2.6-2.6q-.275-.275-.7-.275t-.7.275l-2.6 2.6q-.275.275-.275.7t.275.7q.275.275.688.288t.712-.263l.9-.875Z"},null,-1),Je=[xe];function Oe(K,y){return n(),a("svg",We,Je)}const Pe={name:"material-symbols-restore-from-trash-outline-rounded",render:Oe},Ye={class:"v-toolbar"},Xe=e("md-ripple",null,null,-1),et=["onClick"],tt=e("md-ripple",null,null,-1),ot={class:"filters"},st=["label"],lt={class:"form-label"},nt=["label","selected","onClick"],at={class:"buttons"},ct=["onClick"],it={class:"table-responsive"},rt={class:"table"},dt=["checked","indeterminate"],ut=e("th",null,"ID",-1),_t=e("th",null,null,-1),pt=["onClick"],ht=["checked"],mt=["onClick"],vt={class:"nowrap"},ft={class:"action-btns"},kt=["onClick"],gt=e("md-ripple",null,null,-1),bt=["onClick"],$t=e("md-ripple",null,null,-1),yt={class:"nowrap"},qt={class:"nowrap"},Ct={key:0},Tt={colspan:"6"},wt={class:"no-data-placeholder"},f=50,Mt=ve({__name:"NotesTrashView",setup(K){var L,Z;const y=fe(),u=m([]),w=m(),{t:V}=ke(),i=ge({text:"",tags:[]}),W=be.NOTE,D=$e().query,k=m(parseInt(((L=D.page)==null?void 0:L.toString())??"1")),_=m(ye(((Z=D.q)==null?void 0:Z.toString())??"")),q=m(""),{tags:x}=Ke(W,_,i,async t=>{t.push({name:"trash",op:"",value:"true"}),q.value=Ne(t),await Se(),ee()}),{deleteItems:J}=ue(Ae,()=>{g(),B()},u),{allChecked:N,realAllChecked:S,selectRealAll:O,allCheckedAlertVisible:P,clearSelection:g,toggleAllChecked:A,toggleItemChecked:I,toggleRow:Y,total:p,checked:M}=_e(u),{loading:X,load:ee,refetch:B}=qe({handle:(t,l)=>{l?H(V(l),"error"):t&&(u.value=t.notes.map(C=>({...C,checked:!1})),p.value=t.noteCount)},document:Ie,variables:()=>({offset:(k.value-1)*f,limit:f,query:q.value}),appApi:!0});Ce(k,t=>{j(y,`/notes/trash?page=${t}&q=${z(_.value)}`)});function te(t){i.tags.includes(t)?Le(i.tags,l=>l.id===t.id):i.tags.push(t)}function oe(){_.value=Ze(i),Q(),w.value.dismiss()}function Q(){j(y,`/notes/trash?q=${z(_.value)}`)}const{mutate:R,onDone:se}=Te({document:Me,appApi:!0});function le(){const t=u.value.filter(l=>l.checked);if(t.length===0){H(V("select_first"),"error");return}R({query:`ids:${t.map(l=>l.id).join(",")}`})}function ne(t){Ue.push(`/notes/${t.id}`)}se(()=>{g(),B()});function ae(t){Fe(He,{id:t.id,name:t.id,gql:Ge` +import{c as ue,u as _e,_ as pe,a as he,b as me}from"./list-183f8357.js";import{o as n,c as a,a as e,d as ve,e as fe,r as m,u as ke,K as ge,L as be,D as $e,M as ye,N as qe,w as Ce,i as Te,R as we,p as r,j as s,F as $,m as v,l as d,k as T,H as Ve,t as c,J as G,S as De,T as Ne,U as Se,aZ as Ae,x as H,aW as Ie,C as j,W as z,a_ as Me,v as Be,I as Qe,Z as E,$ as Re,a0 as Le,a1 as Ze,aY as Ue,a2 as Fe,ab as Ge,ac as He,ad as je,a5 as ze}from"./index-0c42270c.js";import{_ as Ee}from"./Breadcrumb-f52b6c6b.js";import{u as Ke}from"./tags-bf0f6db9.js";import"./vee-validate.esm-ca78f26f.js";const We={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},xe=e("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm0 0v13V6Zm4 5.85V15q0 .425.288.713T12 16q.425 0 .713-.288T13 15v-3.15l.9.875q.3.275.713.263t.687-.288q.275-.275.275-.7t-.275-.7l-2.6-2.6q-.275-.275-.7-.275t-.7.275l-2.6 2.6q-.275.275-.275.7t.275.7q.275.275.688.288t.712-.263l.9-.875Z"},null,-1),Je=[xe];function Oe(K,y){return n(),a("svg",We,Je)}const Pe={name:"material-symbols-restore-from-trash-outline-rounded",render:Oe},Ye={class:"v-toolbar"},Xe=e("md-ripple",null,null,-1),et=["onClick"],tt=e("md-ripple",null,null,-1),ot={class:"filters"},st=["label"],lt={class:"form-label"},nt=["label","selected","onClick"],at={class:"buttons"},ct=["onClick"],it={class:"table-responsive"},rt={class:"table"},dt=["checked","indeterminate"],ut=e("th",null,"ID",-1),_t=e("th",null,null,-1),pt=["onClick"],ht=["checked"],mt=["onClick"],vt={class:"nowrap"},ft={class:"action-btns"},kt=["onClick"],gt=e("md-ripple",null,null,-1),bt=["onClick"],$t=e("md-ripple",null,null,-1),yt={class:"nowrap"},qt={class:"nowrap"},Ct={key:0},Tt={colspan:"6"},wt={class:"no-data-placeholder"},f=50,Mt=ve({__name:"NotesTrashView",setup(K){var L,Z;const y=fe(),u=m([]),w=m(),{t:V}=ke(),i=ge({text:"",tags:[]}),W=be.NOTE,D=$e().query,k=m(parseInt(((L=D.page)==null?void 0:L.toString())??"1")),_=m(ye(((Z=D.q)==null?void 0:Z.toString())??"")),q=m(""),{tags:x}=Ke(W,_,i,async t=>{t.push({name:"trash",op:"",value:"true"}),q.value=Ne(t),await Se(),ee()}),{deleteItems:J}=ue(Ae,()=>{g(),B()},u),{allChecked:N,realAllChecked:S,selectRealAll:O,allCheckedAlertVisible:P,clearSelection:g,toggleAllChecked:A,toggleItemChecked:I,toggleRow:Y,total:p,checked:M}=_e(u),{loading:X,load:ee,refetch:B}=qe({handle:(t,l)=>{l?H(V(l),"error"):t&&(u.value=t.notes.map(C=>({...C,checked:!1})),p.value=t.noteCount)},document:Ie,variables:()=>({offset:(k.value-1)*f,limit:f,query:q.value}),appApi:!0});Ce(k,t=>{j(y,`/notes/trash?page=${t}&q=${z(_.value)}`)});function te(t){i.tags.includes(t)?Le(i.tags,l=>l.id===t.id):i.tags.push(t)}function oe(){_.value=Ze(i),Q(),w.value.dismiss()}function Q(){j(y,`/notes/trash?q=${z(_.value)}`)}const{mutate:R,onDone:se}=Te({document:Me,appApi:!0});function le(){const t=u.value.filter(l=>l.checked);if(t.length===0){H(V("select_first"),"error");return}R({query:`ids:${t.map(l=>l.id).join(",")}`})}function ne(t){Ue.push(`/notes/${t.id}`)}se(()=>{g(),B()});function ae(t){Fe(He,{id:t.id,name:t.id,gql:Ge` mutation DeleteNote($query: String!) { deleteNotes(query: $query) } diff --git a/app/src/main/resources/web/assets/NotesView-ea089922.js b/app/src/main/resources/web/assets/NotesView-daa7a513.js similarity index 95% rename from app/src/main/resources/web/assets/NotesView-ea089922.js rename to app/src/main/resources/web/assets/NotesView-daa7a513.js index 5d4b8a50..62236a9e 100644 --- a/app/src/main/resources/web/assets/NotesView-ea089922.js +++ b/app/src/main/resources/web/assets/NotesView-daa7a513.js @@ -1,2 +1,2 @@ -import{u as ve,_ as fe,a as ge,b as ke}from"./list-45297bd9.js";import{o as l,c as a,a as t,d as be,e as $e,r as f,u as ye,K as Te,L as Ce,D as qe,M as we,N as Ve,w as Se,i as Ae,P as g,O as De,Q as Me,R as Ie,p as d,j as s,F as C,m as k,l as r,k as A,t as i,H as Ne,J as K,S as Be,T as Qe,U as Ue,x as O,aW as Re,aX as Ze,C as P,W,v as He,I as Le,Z as x,$ as ze,a2 as Fe,a3 as je,a0 as Ee,a1 as Ge,aY as J,a4 as Ke,a6 as Oe}from"./index-f62f2ff2.js";import{_ as Pe}from"./Breadcrumb-ebe74d39.js";import{u as We,a as xe}from"./tags-06583423.js";import"./vee-validate.esm-65abdaa1.js";const Je={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xe=t("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm2 10q0 .425.288.713T10 17q.425 0 .713-.288T11 16V9q0-.425-.288-.713T10 8q-.425 0-.713.288T9 9v7Zm4 0q0 .425.288.713T14 17q.425 0 .713-.288T15 16V9q0-.425-.288-.713T14 8q-.425 0-.713.288T13 9v7ZM7 6v13V6Z"},null,-1),Ye=[Xe];function et(X,q){return l(),a("svg",Je,Ye)}const tt={name:"material-symbols-delete-outline-rounded",render:et},st={class:"v-toolbar"},ot=["onClick"],nt=t("md-ripple",null,null,-1),lt=t("md-ripple",null,null,-1),at=["onClick"],it={class:"filters"},ct=["label"],dt={class:"form-label"},rt=["label","selected","onClick"],ut={class:"buttons"},_t=["onClick"],pt={class:"table-responsive"},ht={class:"table"},mt=["checked","indeterminate"],vt=t("th",null,null,-1),ft=["onClick"],gt=["checked"],kt={style:{"min-width":"200px"}},bt=["onClick"],$t={class:"nowrap"},yt={class:"action-btns"},Tt=["onClick"],Ct=t("md-ripple",null,null,-1),qt=["onClick"],wt=t("md-ripple",null,null,-1),Vt={class:"nowrap"},St={class:"nowrap"},At={key:0},Dt={colspan:"6"},Mt={class:"no-data-placeholder"},b=50,Zt=be({__name:"NotesView",setup(X){var F,j;const q=$e(),u=f([]),D=f(),{t:M}=ye(),c=Te({text:"",tags:[]}),_=Ce.NOTE,I=qe().query,$=f(parseInt(((F=I.page)==null?void 0:F.toString())??"1")),p=f(we(((j=I.q)==null?void 0:j.toString())??"")),w=f(""),{tags:y}=We(_,p,c,async e=>{e.push({name:"trash",op:"",value:"false"}),w.value=Qe(e),await Ue(),ne()}),{addToTags:Y}=xe(_,u,y),{allChecked:N,realAllChecked:B,selectRealAll:ee,allCheckedAlertVisible:te,clearSelection:V,toggleAllChecked:Q,toggleItemChecked:U,toggleRow:se,total:m,checked:R}=ve(u),{loading:oe,load:ne,refetch:S}=Ve({handle:(e,n)=>{n?O(M(n),"error"):e&&(u.value=e.notes.map(v=>({...v,checked:!1})),m.value=e.noteCount)},document:Re,variables:()=>({offset:($.value-1)*b,limit:b,query:w.value}),appApi:!0});function le(e){Fe(je,{type:_,tags:y.value,item:{key:e.id,title:"",size:0},selected:y.value.filter(n=>e.tags.some(v=>v.id===n.id))})}Se($,e=>{P(q,`/notes?page=${e}&q=${W(p.value)}`)});const{mutate:Z,onDone:ae}=Ae({document:Ze,appApi:!0});function ie(){const e=u.value.filter(n=>n.checked);if(e.length===0){O(M("select_first"),"error");return}Z({query:`ids:${e.map(n=>n.id).join(",")}`})}ae(()=>{V(),S(),u.value.some(e=>e.tags.length)&&g.emit("refetch_tags",_)});function ce(e){c.tags.includes(e)?Ee(c.tags,n=>n.id===e.id):c.tags.push(e)}function de(){p.value=Ge(c),H(),D.value.dismiss()}function H(){P(q,`/notes?q=${W(p.value)}`)}const L=e=>{e.type===_&&(V(),S())},z=e=>{e.type===_&&S()};De(()=>{g.on("item_tags_updated",z),g.on("items_tags_updated",L)}),Me(()=>{g.off("item_tags_updated",z),g.off("items_tags_updated",L)});function re(e){J.push(`/notes/${e.id}`)}function ue(){J.push("/notes/create")}return(e,n)=>{const v=Pe,E=tt,G=Ke,_e=fe,pe=ge,he=Oe,me=ke,T=Ie("tooltip");return l(),a(C,null,[t("div",st,[d(v,{current:()=>`${e.$t("page_title.notes")} (${s(m)})`},null,8,["current"]),s(R)?(l(),a(C,{key:0},[k((l(),a("button",{class:"icon-button",onClick:r(ie,["stop"])},[nt,d(E)],8,ot)),[[T,e.$t("move_to_trash")]]),k((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=r(o=>s(Y)(s(B),w.value),["stop"]))},[lt,d(G)])),[[T,e.$t("add_to_tags")]])],64)):A("",!0),t("md-outlined-button",{onClick:r(ue,["prevent"])},i(e.$t("create")),9,at),d(_e,{ref_key:"searchInputRef",ref:D,modelValue:p.value,"onUpdate:modelValue":n[2]||(n[2]=o=>p.value=o),search:H},{filters:Ne(()=>[t("div",it,[k(t("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":n[1]||(n[1]=o=>c.text=o),"keyup.enter":"applyAndDoSearch"},null,8,ct),[[He,c.text]]),t("label",dt,i(e.$t("tags")),1),t("md-chip-set",null,[(l(!0),a(C,null,K(s(y),o=>(l(),a("md-filter-chip",{key:o.id,label:o.name,selected:c.tags.includes(o),onClick:h=>ce(o)},null,8,rt))),128))]),t("div",ut,[t("md-filled-button",{onClick:r(de,["stop"])},i(e.$t("search")),9,_t)])])]),_:1},8,["modelValue"])]),d(pe,{limit:b,total:s(m),"all-checked-alert-visible":s(te),"real-all-checked":s(B),"select-real-all":s(ee),"clear-selection":s(V)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t("div",pt,[t("table",ht,[t("thead",null,[t("tr",null,[t("th",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:n[3]||(n[3]=(...o)=>s(Q)&&s(Q)(...o)),checked:s(N),indeterminate:!s(N)&&s(R)},null,40,mt)]),t("th",null,i(e.$t("title")),1),vt,t("th",null,i(e.$t("tags")),1),t("th",null,i(e.$t("updated_at")),1),t("th",null,i(e.$t("created_at")),1)])]),t("tbody",null,[(l(!0),a(C,null,K(u.value,o=>(l(),a("tr",{key:o.id,class:Le({selected:o.checked}),onClick:r(h=>s(se)(o),["stop"])},[t("td",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:n[4]||(n[4]=(...h)=>s(U)&&s(U)(...h)),checked:o.checked},null,40,gt)]),t("td",kt,[t("a",{style:{"text-overflow":"clip"},href:"#",onClick:r(h=>re(o),["stop","prevent"])},i(o.title.split(` +import{u as ve,_ as fe,a as ge,b as ke}from"./list-183f8357.js";import{o as l,c as a,a as t,d as be,e as $e,r as f,u as ye,K as Te,L as Ce,D as qe,M as we,N as Ve,w as Se,i as Ae,P as g,O as De,Q as Me,R as Ie,p as d,j as s,F as C,m as k,l as r,k as A,t as i,H as Ne,J as K,S as Be,T as Qe,U as Ue,x as O,aW as Re,aX as Ze,C as P,W,v as He,I as Le,Z as x,$ as ze,a2 as Fe,a3 as je,a0 as Ee,a1 as Ge,aY as J,a4 as Ke,a6 as Oe}from"./index-0c42270c.js";import{_ as Pe}from"./Breadcrumb-f52b6c6b.js";import{u as We,a as xe}from"./tags-bf0f6db9.js";import"./vee-validate.esm-ca78f26f.js";const Je={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xe=t("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm2 10q0 .425.288.713T10 17q.425 0 .713-.288T11 16V9q0-.425-.288-.713T10 8q-.425 0-.713.288T9 9v7Zm4 0q0 .425.288.713T14 17q.425 0 .713-.288T15 16V9q0-.425-.288-.713T14 8q-.425 0-.713.288T13 9v7ZM7 6v13V6Z"},null,-1),Ye=[Xe];function et(X,q){return l(),a("svg",Je,Ye)}const tt={name:"material-symbols-delete-outline-rounded",render:et},st={class:"v-toolbar"},ot=["onClick"],nt=t("md-ripple",null,null,-1),lt=t("md-ripple",null,null,-1),at=["onClick"],it={class:"filters"},ct=["label"],dt={class:"form-label"},rt=["label","selected","onClick"],ut={class:"buttons"},_t=["onClick"],pt={class:"table-responsive"},ht={class:"table"},mt=["checked","indeterminate"],vt=t("th",null,null,-1),ft=["onClick"],gt=["checked"],kt={style:{"min-width":"200px"}},bt=["onClick"],$t={class:"nowrap"},yt={class:"action-btns"},Tt=["onClick"],Ct=t("md-ripple",null,null,-1),qt=["onClick"],wt=t("md-ripple",null,null,-1),Vt={class:"nowrap"},St={class:"nowrap"},At={key:0},Dt={colspan:"6"},Mt={class:"no-data-placeholder"},b=50,Zt=be({__name:"NotesView",setup(X){var F,j;const q=$e(),u=f([]),D=f(),{t:M}=ye(),c=Te({text:"",tags:[]}),_=Ce.NOTE,I=qe().query,$=f(parseInt(((F=I.page)==null?void 0:F.toString())??"1")),p=f(we(((j=I.q)==null?void 0:j.toString())??"")),w=f(""),{tags:y}=We(_,p,c,async e=>{e.push({name:"trash",op:"",value:"false"}),w.value=Qe(e),await Ue(),ne()}),{addToTags:Y}=xe(_,u,y),{allChecked:N,realAllChecked:B,selectRealAll:ee,allCheckedAlertVisible:te,clearSelection:V,toggleAllChecked:Q,toggleItemChecked:U,toggleRow:se,total:m,checked:R}=ve(u),{loading:oe,load:ne,refetch:S}=Ve({handle:(e,n)=>{n?O(M(n),"error"):e&&(u.value=e.notes.map(v=>({...v,checked:!1})),m.value=e.noteCount)},document:Re,variables:()=>({offset:($.value-1)*b,limit:b,query:w.value}),appApi:!0});function le(e){Fe(je,{type:_,tags:y.value,item:{key:e.id,title:"",size:0},selected:y.value.filter(n=>e.tags.some(v=>v.id===n.id))})}Se($,e=>{P(q,`/notes?page=${e}&q=${W(p.value)}`)});const{mutate:Z,onDone:ae}=Ae({document:Ze,appApi:!0});function ie(){const e=u.value.filter(n=>n.checked);if(e.length===0){O(M("select_first"),"error");return}Z({query:`ids:${e.map(n=>n.id).join(",")}`})}ae(()=>{V(),S(),u.value.some(e=>e.tags.length)&&g.emit("refetch_tags",_)});function ce(e){c.tags.includes(e)?Ee(c.tags,n=>n.id===e.id):c.tags.push(e)}function de(){p.value=Ge(c),H(),D.value.dismiss()}function H(){P(q,`/notes?q=${W(p.value)}`)}const L=e=>{e.type===_&&(V(),S())},z=e=>{e.type===_&&S()};De(()=>{g.on("item_tags_updated",z),g.on("items_tags_updated",L)}),Me(()=>{g.off("item_tags_updated",z),g.off("items_tags_updated",L)});function re(e){J.push(`/notes/${e.id}`)}function ue(){J.push("/notes/create")}return(e,n)=>{const v=Pe,E=tt,G=Ke,_e=fe,pe=ge,he=Oe,me=ke,T=Ie("tooltip");return l(),a(C,null,[t("div",st,[d(v,{current:()=>`${e.$t("page_title.notes")} (${s(m)})`},null,8,["current"]),s(R)?(l(),a(C,{key:0},[k((l(),a("button",{class:"icon-button",onClick:r(ie,["stop"])},[nt,d(E)],8,ot)),[[T,e.$t("move_to_trash")]]),k((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=r(o=>s(Y)(s(B),w.value),["stop"]))},[lt,d(G)])),[[T,e.$t("add_to_tags")]])],64)):A("",!0),t("md-outlined-button",{onClick:r(ue,["prevent"])},i(e.$t("create")),9,at),d(_e,{ref_key:"searchInputRef",ref:D,modelValue:p.value,"onUpdate:modelValue":n[2]||(n[2]=o=>p.value=o),search:H},{filters:Ne(()=>[t("div",it,[k(t("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":n[1]||(n[1]=o=>c.text=o),"keyup.enter":"applyAndDoSearch"},null,8,ct),[[He,c.text]]),t("label",dt,i(e.$t("tags")),1),t("md-chip-set",null,[(l(!0),a(C,null,K(s(y),o=>(l(),a("md-filter-chip",{key:o.id,label:o.name,selected:c.tags.includes(o),onClick:h=>ce(o)},null,8,rt))),128))]),t("div",ut,[t("md-filled-button",{onClick:r(de,["stop"])},i(e.$t("search")),9,_t)])])]),_:1},8,["modelValue"])]),d(pe,{limit:b,total:s(m),"all-checked-alert-visible":s(te),"real-all-checked":s(B),"select-real-all":s(ee),"clear-selection":s(V)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t("div",pt,[t("table",ht,[t("thead",null,[t("tr",null,[t("th",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:n[3]||(n[3]=(...o)=>s(Q)&&s(Q)(...o)),checked:s(N),indeterminate:!s(N)&&s(R)},null,40,mt)]),t("th",null,i(e.$t("title")),1),vt,t("th",null,i(e.$t("tags")),1),t("th",null,i(e.$t("updated_at")),1),t("th",null,i(e.$t("created_at")),1)])]),t("tbody",null,[(l(!0),a(C,null,K(u.value,o=>(l(),a("tr",{key:o.id,class:Le({selected:o.checked}),onClick:r(h=>s(se)(o),["stop"])},[t("td",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:n[4]||(n[4]=(...h)=>s(U)&&s(U)(...h)),checked:o.checked},null,40,gt)]),t("td",kt,[t("a",{style:{"text-overflow":"clip"},href:"#",onClick:r(h=>re(o),["stop","prevent"])},i(o.title.split(` `)[0].trimStart()||e.$t("meta_no_title")),9,bt)]),t("td",$t,[t("div",yt,[k((l(),a("button",{class:"icon-button",onClick:r(h=>s(Z)({query:`ids:${o.id}`}),["stop"])},[Ct,d(E)],8,Tt)),[[T,e.$t("move_to_trash")]]),k((l(),a("button",{class:"icon-button",onClick:r(h=>le(o),["stop"])},[wt,d(G)],8,qt)),[[T,e.$t("add_to_tags")]])])]),t("td",null,[d(he,{tags:o.tags,type:s(_)},null,8,["tags","type"])]),t("td",Vt,i(s(x)(o.updatedAt)),1),t("td",St,i(s(x)(o.createdAt)),1)],10,ft))),128))]),u.value.length?A("",!0):(l(),a("tfoot",At,[t("tr",null,[t("td",Dt,[t("div",Mt,i(e.$t(s(ze)(s(oe)))),1)])])]))])]),s(m)>b?(l(),Be(me,{key:0,modelValue:$.value,"onUpdate:modelValue":n[5]||(n[5]=o=>$.value=o),total:s(m),limit:b},null,8,["modelValue","total"])):A("",!0)],64)}}});export{Zt as default}; diff --git a/app/src/main/resources/web/assets/QrCodeGeneratorView-11fce495.js b/app/src/main/resources/web/assets/QrCodeGeneratorView-766c95f1.js similarity index 99% rename from app/src/main/resources/web/assets/QrCodeGeneratorView-11fce495.js rename to app/src/main/resources/web/assets/QrCodeGeneratorView-766c95f1.js index 3f06fc9d..c197510c 100644 --- a/app/src/main/resources/web/assets/QrCodeGeneratorView-11fce495.js +++ b/app/src/main/resources/web/assets/QrCodeGeneratorView-766c95f1.js @@ -1,4 +1,4 @@ -import{_ as J}from"./Breadcrumb-ebe74d39.js";import{bs as I,d as Y,s as $,e as j,r as q,w as tt,c as z,a as S,p as b,H as D,j as k,o as P,m as rt,v as et,n as nt,k as it,_ as at}from"./index-f62f2ff2.js";import{g as H,M as st}from"./splitpanes.es-2b477659.js";/** +import{_ as J}from"./Breadcrumb-f52b6c6b.js";import{bs as I,d as Y,s as $,e as j,r as q,w as tt,c as z,a as S,p as b,H as D,j as k,o as P,m as rt,v as et,n as nt,k as it,_ as at}from"./index-0c42270c.js";import{g as H,M as st}from"./splitpanes.es-7e8a6fea.js";/** * @module QRCode * @package @nuintun/qrcode * @license MIT diff --git a/app/src/main/resources/web/assets/RoutesView-02f1f690.js b/app/src/main/resources/web/assets/RoutesView-f4c0aea4.js similarity index 97% rename from app/src/main/resources/web/assets/RoutesView-02f1f690.js rename to app/src/main/resources/web/assets/RoutesView-f4c0aea4.js index e988b3d2..55db8166 100644 --- a/app/src/main/resources/web/assets/RoutesView-02f1f690.js +++ b/app/src/main/resources/web/assets/RoutesView-f4c0aea4.js @@ -1,4 +1,4 @@ -import{d as ie,K as ce,r as A,u as de,i as j,aq as S,b_ as F,b$ as pe,an as _e,w as me,ao as I,o as u,c as r,a as e,t as o,j as l,m as f,c1 as E,F as y,J as k,v as x,n as ee,p as V,H as te,k as U,at as ve,g as fe,x as ge,ab as J,c2 as $e,c3 as he,R as be,a2 as L,Y as ae,h as oe,Z as ne,l as se,ac as ye,a5 as ke}from"./index-f62f2ff2.js";import{_ as we}from"./Breadcrumb-ebe74d39.js";import{T as m,a as w,_ as Ce,A as Te}from"./question-mark-rounded-fa46b9df.js";import{u as Ne,a as Fe}from"./vee-validate.esm-65abdaa1.js";const Ie={slot:"headline"},Ee={slot:"content"},Ae={class:"row mb-3"},Ve={class:"col-md-3 col-form-label"},De={class:"col-md-9"},Re=["value"],Me={key:0,class:"input-group mt-2"},qe=["placeholder"],Oe={class:"inner"},Se={class:"help-block"},Ue={value:""},Je=["value"],Le={key:2,class:"invalid-feedback"},je={class:"row mb-3"},Be={class:"col-md-3 col-form-label"},Pe={class:"col-md-9"},He=["value"],Ke={class:"row mb-3"},Qe={class:"col-md-3 col-form-label"},Ye={class:"col-md-9"},Ze={value:"all"},ze=["value"],Ge=["value"],We={class:"row mb-3"},Xe={class:"col-md-3 col-form-label"},xe={class:"col-md-9"},et={slot:"actions"},tt=["disabled"],le=ie({__name:"EditRouteModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(h){var $,B,P,H,K,Q,Y,Z,z;const _=h,{handleSubmit:b}=Ne(),i=ce({if_name:"",apply_to:"all",notes:"",target:"",is_enabled:!0}),p=A(m.INTERNET),D=Object.values(m).filter(s=>[m.IP,m.NET,m.REMOTE_PORT,m.INTERNET].includes(s)),{t:C}=de(),{mutate:R,loading:M,onDone:q}=j({document:S` +import{d as ie,K as ce,r as A,u as de,i as j,aq as S,b_ as F,b$ as pe,an as _e,w as me,ao as I,o as u,c as r,a as e,t as o,j as l,m as f,c1 as E,F as y,J as k,v as x,n as ee,p as V,H as te,k as U,at as ve,g as fe,x as ge,ab as J,c2 as $e,c3 as he,R as be,a2 as L,Y as ae,h as oe,Z as ne,l as se,ac as ye,a5 as ke}from"./index-0c42270c.js";import{_ as we}from"./Breadcrumb-f52b6c6b.js";import{T as m,a as w,_ as Ce,A as Te}from"./question-mark-rounded-b74e337c.js";import{u as Ne,a as Fe}from"./vee-validate.esm-ca78f26f.js";const Ie={slot:"headline"},Ee={slot:"content"},Ae={class:"row mb-3"},Ve={class:"col-md-3 col-form-label"},De={class:"col-md-9"},Re=["value"],Me={key:0,class:"input-group mt-2"},qe=["placeholder"],Oe={class:"inner"},Se={class:"help-block"},Ue={value:""},Je=["value"],Le={key:2,class:"invalid-feedback"},je={class:"row mb-3"},Be={class:"col-md-3 col-form-label"},Pe={class:"col-md-9"},He=["value"],Ke={class:"row mb-3"},Qe={class:"col-md-3 col-form-label"},Ye={class:"col-md-9"},Ze={value:"all"},ze=["value"],Ge=["value"],We={class:"row mb-3"},Xe={class:"col-md-3 col-form-label"},xe={class:"col-md-9"},et={slot:"actions"},tt=["disabled"],le=ie({__name:"EditRouteModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(h){var $,B,P,H,K,Q,Y,Z,z;const _=h,{handleSubmit:b}=Ne(),i=ce({if_name:"",apply_to:"all",notes:"",target:"",is_enabled:!0}),p=A(m.INTERNET),D=Object.values(m).filter(s=>[m.IP,m.NET,m.REMOTE_PORT,m.INTERNET].includes(s)),{t:C}=de(),{mutate:R,loading:M,onDone:q}=j({document:S` mutation createConfig($input: ConfigInput!) { createConfig(input: $input) { ...ConfigFragment diff --git a/app/src/main/resources/web/assets/RulesView-1e30a62b.js b/app/src/main/resources/web/assets/RulesView-9428daef.js similarity index 97% rename from app/src/main/resources/web/assets/RulesView-1e30a62b.js rename to app/src/main/resources/web/assets/RulesView-9428daef.js index bc1338e2..b227c7d8 100644 --- a/app/src/main/resources/web/assets/RulesView-1e30a62b.js +++ b/app/src/main/resources/web/assets/RulesView-9428daef.js @@ -1,4 +1,4 @@ -import{d as le,K as ce,r as N,u as se,i as B,aq as R,b_ as F,b$ as re,an as ue,w as pe,ao as T,o as r,c as u,a as e,t as o,j as c,m as _,c0 as V,c1 as O,F as w,J as C,v as W,n as X,p as A,H as x,k as J,at as me,g as _e,x as ve,ab as L,c2 as fe,c3 as he,R as ge,a2 as j,Y as ee,h as te,Z as oe,l as ne,ac as $e,a5 as be}from"./index-f62f2ff2.js";import{_ as ke}from"./Breadcrumb-ebe74d39.js";import{T as $,a as b,_ as ye,A as we}from"./question-mark-rounded-fa46b9df.js";import{u as Ce,a as Fe}from"./vee-validate.esm-65abdaa1.js";const Te={slot:"headline"},Ve={slot:"content"},Ne={class:"row"},Ae={class:"col-md-3 col-form-label"},De={class:"col-md-9 form-checks"},Ie={class:"form-check form-check-inline"},Me={class:"form-check-label",for:"action-allow"},qe={class:"form-check form-check-inline"},Ee={class:"form-check-label",for:"action-block"},Se={class:"row mb-2"},Ue={for:"action",class:"col-md-3 col-form-label"},Re={class:"col-md-9 form-checks"},Oe={class:"form-check form-check-inline"},Je={class:"form-check-label",for:"direction-inbound"},Le={class:"form-check form-check-inline"},je={class:"form-check-label",for:"direction-outbound"},Be={class:"row mb-3"},Qe={class:"col-md-3 col-form-label"},Ge={class:"col-md-9"},He=["value"],Ke={key:0,class:"input-group mt-2"},Ye=["placeholder"],Ze={class:"inner"},ze={class:"help-block"},Pe={value:""},We=["value"],Xe={key:2,class:"invalid-feedback"},xe={class:"row mb-3"},et={class:"col-md-3 col-form-label"},tt={class:"col-md-9"},ot={value:"all"},nt=["value"],at=["value"],lt={class:"row mb-3"},st={class:"col-md-3 col-form-label"},it={class:"col-md-9"},dt={slot:"actions"},ct=["disabled"],ae=le({__name:"EditRuleModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(k){var y,Q,G,H,K,Y,Z;const f=k,{handleSubmit:g}=Ce(),l=ce({action:"block",direction:"inbound",protocol:"all",apply_to:"all",notes:"",target:"",is_enabled:!0}),p=N($.DNS),D=Object.values($),{t:I}=se(),{mutate:M,loading:q,onDone:E}=B({document:R` +import{d as le,K as ce,r as N,u as se,i as B,aq as R,b_ as F,b$ as re,an as ue,w as pe,ao as T,o as r,c as u,a as e,t as o,j as c,m as _,c0 as V,c1 as O,F as w,J as C,v as W,n as X,p as A,H as x,k as J,at as me,g as _e,x as ve,ab as L,c2 as fe,c3 as he,R as ge,a2 as j,Y as ee,h as te,Z as oe,l as ne,ac as $e,a5 as be}from"./index-0c42270c.js";import{_ as ke}from"./Breadcrumb-f52b6c6b.js";import{T as $,a as b,_ as ye,A as we}from"./question-mark-rounded-b74e337c.js";import{u as Ce,a as Fe}from"./vee-validate.esm-ca78f26f.js";const Te={slot:"headline"},Ve={slot:"content"},Ne={class:"row"},Ae={class:"col-md-3 col-form-label"},De={class:"col-md-9 form-checks"},Ie={class:"form-check form-check-inline"},Me={class:"form-check-label",for:"action-allow"},qe={class:"form-check form-check-inline"},Ee={class:"form-check-label",for:"action-block"},Se={class:"row mb-2"},Ue={for:"action",class:"col-md-3 col-form-label"},Re={class:"col-md-9 form-checks"},Oe={class:"form-check form-check-inline"},Je={class:"form-check-label",for:"direction-inbound"},Le={class:"form-check form-check-inline"},je={class:"form-check-label",for:"direction-outbound"},Be={class:"row mb-3"},Qe={class:"col-md-3 col-form-label"},Ge={class:"col-md-9"},He=["value"],Ke={key:0,class:"input-group mt-2"},Ye=["placeholder"],Ze={class:"inner"},ze={class:"help-block"},Pe={value:""},We=["value"],Xe={key:2,class:"invalid-feedback"},xe={class:"row mb-3"},et={class:"col-md-3 col-form-label"},tt={class:"col-md-9"},ot={value:"all"},nt=["value"],at=["value"],lt={class:"row mb-3"},st={class:"col-md-3 col-form-label"},it={class:"col-md-9"},dt={slot:"actions"},ct=["disabled"],ae=le({__name:"EditRuleModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(k){var y,Q,G,H,K,Y,Z;const f=k,{handleSubmit:g}=Ce(),l=ce({action:"block",direction:"inbound",protocol:"all",apply_to:"all",notes:"",target:"",is_enabled:!0}),p=N($.DNS),D=Object.values($),{t:I}=se(),{mutate:M,loading:q,onDone:E}=B({document:R` mutation createConfig($input: ConfigInput!) { createConfig(input: $input) { ...ConfigFragment diff --git a/app/src/main/resources/web/assets/ScreenMirrorView-07f2edb1.js b/app/src/main/resources/web/assets/ScreenMirrorView-2d0c4567.js similarity index 97% rename from app/src/main/resources/web/assets/ScreenMirrorView-07f2edb1.js rename to app/src/main/resources/web/assets/ScreenMirrorView-2d0c4567.js index e9add590..f213232b 100644 --- a/app/src/main/resources/web/assets/ScreenMirrorView-07f2edb1.js +++ b/app/src/main/resources/web/assets/ScreenMirrorView-2d0c4567.js @@ -1 +1 @@ -import{o as n,c as o,a as t,d as U,u as j,r as v,i as b,O,P as h,Q as P,g as W,x as $,R as J,p as d,F as K,m as k,j as s,t as f,k as p,bt as X,bu as Y,bv as ee,bw as te,A as ne,B as oe,_ as se}from"./index-f62f2ff2.js";import{_ as re}from"./refresh-rounded-0b456afc.js";import{_ as ae}from"./Breadcrumb-ebe74d39.js";const ie={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ce=t("path",{fill:"currentColor",d:"M6 19q-.425 0-.713-.288T5 18v-3q0-.425.288-.713T6 14q.425 0 .713.288T7 15v2h2q.425 0 .713.288T10 18q0 .425-.288.713T9 19H6Zm0-9q-.425 0-.713-.288T5 9V6q0-.425.288-.713T6 5h3q.425 0 .713.288T10 6q0 .425-.288.713T9 7H7v2q0 .425-.288.713T6 10Zm9 9q-.425 0-.713-.288T14 18q0-.425.288-.713T15 17h2v-2q0-.425.288-.713T18 14q.425 0 .713.288T19 15v3q0 .425-.288.713T18 19h-3Zm3-9q-.425 0-.713-.288T17 9V7h-2q-.425 0-.713-.288T14 6q0-.425.288-.713T15 5h3q.425 0 .713.288T19 6v3q0 .425-.288.713T18 10Z"},null,-1),le=[ce];function _e(r,a){return n(),o("svg",ie,le)}const ue={name:"material-symbols-fullscreen-rounded",render:_e},de={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},pe=t("path",{fill:"currentColor",d:"M12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Zm-3-4h6q.425 0 .713-.288T16 15V9q0-.425-.288-.713T15 8H9q-.425 0-.713.288T8 9v6q0 .425.288.713T9 16Z"},null,-1),me=[pe];function ve(r,a){return n(),o("svg",de,me)}const he={name:"material-symbols-stop-circle-outline-rounded",render:ve},fe="/assets/screen-mirror-permission-e9e07af8.png",ge={xmlns:"http://www.w3.org/2000/svg",viewBox:"176.31 -11.19 346.88 581.88"},qe=t("path",{d:"M470.49 0H229.51a41.901 41.901 0 0 0-29.547 12.277 41.898 41.898 0 0 0-12.277 29.547v476.35a41.901 41.901 0 0 0 12.277 29.547 41.898 41.898 0 0 0 29.547 12.277h240.98a41.901 41.901 0 0 0 29.547-12.277 41.898 41.898 0 0 0 12.277-29.547V41.824a41.901 41.901 0 0 0-12.277-29.547A41.898 41.898 0 0 0 470.49 0zm33.25 518.18a33.334 33.334 0 0 1-9.766 23.484 33.335 33.335 0 0 1-23.484 9.766H229.51a33.334 33.334 0 0 1-23.484-9.766 33.335 33.335 0 0 1-9.765-23.484V41.83a33.333 33.333 0 0 1 9.828-23.371 33.32 33.32 0 0 1 23.422-9.703h240.98a33.334 33.334 0 0 1 23.484 9.765 33.335 33.335 0 0 1 9.765 23.484z"},null,-1),Te=t("path",{d:"M317.62 46.812h64.75c2.418 0 4.375-1.957 4.375-4.375s-1.957-4.375-4.375-4.375h-64.75c-2.418 0-4.375 1.957-4.375 4.375s1.957 4.375 4.375 4.375zM364.7 192.5a16.8 16.8 0 0 0-14.7-8.75 16.8 16.8 0 0 0-14.698 8.75l-91 157.5a16.453 16.453 0 0 0 0 16.977 16.584 16.584 0 0 0 6.101 6.386 16.653 16.653 0 0 0 8.512 2.364h182.09a16.626 16.626 0 0 0 14.7-8.75 16.803 16.803 0 0 0 0-16.977zm83.562 170.36a8.224 8.224 0 0 1-7.262 4.2H258.91a8.229 8.229 0 0 1-7.176-4.2 8.753 8.753 0 0 1 0-8.75l91-157.5a8.748 8.748 0 0 1 7.262-4.113 8.757 8.757 0 0 1 7.262 4.199l91 157.5a8.75 8.75 0 0 1 0 8.84z"},null,-1),be=t("path",{d:"M350 221.55a4.288 4.288 0 0 0-4.29 4.285v66.238a4.375 4.375 0 0 0 8.75 0v-66.238a4.286 4.286 0 0 0-4.46-4.285zm0 91.26a4.289 4.289 0 0 0-4.29 4.29v17.061a4.375 4.375 0 0 0 8.75 0V317.1a4.286 4.286 0 0 0-4.46-4.29z"},null,-1),$e=[qe,Te,be];function ke(r,a){return n(),o("svg",ge,$e)}const ye={render:ke},m=r=>(ne("data-v-f0cd47e7"),r=r(),oe(),r),Me={class:"page-container"},Se={class:"main"},we={class:"v-toolbar"},Ie=["disabled"],Ve=m(()=>t("md-ripple",null,null,-1)),Ce=m(()=>t("md-ripple",null,null,-1)),Ae=m(()=>t("md-ripple",null,null,-1)),He={key:0,class:"loading"},Le=m(()=>t("md-circular-progress",{indeterminate:""},null,-1)),Ze=[Le],ze={key:1,class:"request-permission"},Be=m(()=>t("img",{src:fe},null,-1)),De={class:"text"},Qe={key:2,class:"request-permission-failed"},xe=["src"],Ee=U({__name:"ScreenMirrorView",setup(r){let a;const{t:g}=j(),i=v(""),_=v(0),u=v(!1),y=v(),M=async e=>{i.value=e,u.value=!1,_.value=0,clearInterval(a)};let c=!1;const{mutate:I}=b({document:X,appApi:!0}),V=()=>{I(),c=!0},S=e=>{e&&c&&(c=!1,clearInterval(a),q())};O(()=>{h.on("screen_mirroring",M),h.on("app_socket_connection_changed",S)}),P(()=>{h.off("screen_mirroring",M),h.off("app_socket_connection_changed",S)});const{mutate:C,loading:A,onDone:H,onError:L}=b({document:Y,appApi:!0}),{loading:Z,refetch:z}=W({handle:(e,l)=>{l?$(g(l),"error"):(i.value=e.screenMirrorImage,e.screenMirrorImage||q())},document:ee,appApi:!0}),B=()=>{var e;(e=y.value)==null||e.requestFullscreen({navigationUI:"show"})},q=()=>{u.value=!1,C()};L(e=>{$(g(e.message)),u.value=!0}),H(()=>{_.value=30,a=setInterval(()=>{_.value--,_.value<=0&&(u.value=!0,clearInterval(a))},1e3)});const{mutate:w,loading:D,onDone:Q,onError:x}=b({document:te,appApi:!0});return x(e=>{$(g(e.message))}),Q(()=>{u.value=!0,i.value=""}),(e,l)=>{const E=ae,F=he,G=re,R=ue,T=J("tooltip");return n(),o("div",Me,[t("div",Se,[t("div",we,[d(E,{current:()=>e.$t("screen_mirror")},null,8,["current"]),i.value?(n(),o(K,{key:0},[k((n(),o("button",{class:"icon-button",disabled:s(D),onClick:l[0]||(l[0]=(...N)=>s(w)&&s(w)(...N))},[Ve,d(F)],8,Ie)),[[T,e.$t("stop_mirror")]]),k((n(),o("button",{class:"icon-button",onClick:l[1]||(l[1]=()=>s(z)())},[Ce,d(G)])),[[T,e.$t("refresh")]]),k((n(),o("button",{class:"icon-button",onClick:B},[Ae,d(R)])),[[T,e.$t("fullscreen")]])],64)):s(c)?p("",!0):(n(),o("md-outlined-button",{key:1,onClick:V},f(e.$t("relaunch_app")),1))]),t("div",{ref_key:"containerRef",ref:y,class:"panel-container"},[s(Z)||s(A)||s(c)?(n(),o("div",He,Ze)):p("",!0),_.value>0&&!s(c)?(n(),o("div",ze,[Be,t("pre",De,f(e.$t("screen_mirror_request_permission",{seconds:_.value})),1)])):p("",!0),u.value&&!i.value&&!s(c)?(n(),o("div",Qe,[d(s(ye)),t("p",null,f(e.$t("screen_mirror_request_permission_failed")),1),t("md-filled-button",{onClick:q},f(e.$t("try_again")),1)])):p("",!0),i.value?(n(),o("img",{key:3,src:i.value},null,8,xe)):p("",!0)],512)])])}}});const Ne=se(Ee,[["__scopeId","data-v-f0cd47e7"]]);export{Ne as default}; +import{o as n,c as o,a as t,d as U,u as j,r as v,i as b,O,P as h,Q as P,g as W,x as $,R as J,p as d,F as K,m as k,j as s,t as f,k as p,bt as X,bu as Y,bv as ee,bw as te,A as ne,B as oe,_ as se}from"./index-0c42270c.js";import{_ as re}from"./refresh-rounded-aea8467d.js";import{_ as ae}from"./Breadcrumb-f52b6c6b.js";const ie={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ce=t("path",{fill:"currentColor",d:"M6 19q-.425 0-.713-.288T5 18v-3q0-.425.288-.713T6 14q.425 0 .713.288T7 15v2h2q.425 0 .713.288T10 18q0 .425-.288.713T9 19H6Zm0-9q-.425 0-.713-.288T5 9V6q0-.425.288-.713T6 5h3q.425 0 .713.288T10 6q0 .425-.288.713T9 7H7v2q0 .425-.288.713T6 10Zm9 9q-.425 0-.713-.288T14 18q0-.425.288-.713T15 17h2v-2q0-.425.288-.713T18 14q.425 0 .713.288T19 15v3q0 .425-.288.713T18 19h-3Zm3-9q-.425 0-.713-.288T17 9V7h-2q-.425 0-.713-.288T14 6q0-.425.288-.713T15 5h3q.425 0 .713.288T19 6v3q0 .425-.288.713T18 10Z"},null,-1),le=[ce];function _e(r,a){return n(),o("svg",ie,le)}const ue={name:"material-symbols-fullscreen-rounded",render:_e},de={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},pe=t("path",{fill:"currentColor",d:"M12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Zm-3-4h6q.425 0 .713-.288T16 15V9q0-.425-.288-.713T15 8H9q-.425 0-.713.288T8 9v6q0 .425.288.713T9 16Z"},null,-1),me=[pe];function ve(r,a){return n(),o("svg",de,me)}const he={name:"material-symbols-stop-circle-outline-rounded",render:ve},fe="/assets/screen-mirror-permission-e9e07af8.png",ge={xmlns:"http://www.w3.org/2000/svg",viewBox:"176.31 -11.19 346.88 581.88"},qe=t("path",{d:"M470.49 0H229.51a41.901 41.901 0 0 0-29.547 12.277 41.898 41.898 0 0 0-12.277 29.547v476.35a41.901 41.901 0 0 0 12.277 29.547 41.898 41.898 0 0 0 29.547 12.277h240.98a41.901 41.901 0 0 0 29.547-12.277 41.898 41.898 0 0 0 12.277-29.547V41.824a41.901 41.901 0 0 0-12.277-29.547A41.898 41.898 0 0 0 470.49 0zm33.25 518.18a33.334 33.334 0 0 1-9.766 23.484 33.335 33.335 0 0 1-23.484 9.766H229.51a33.334 33.334 0 0 1-23.484-9.766 33.335 33.335 0 0 1-9.765-23.484V41.83a33.333 33.333 0 0 1 9.828-23.371 33.32 33.32 0 0 1 23.422-9.703h240.98a33.334 33.334 0 0 1 23.484 9.765 33.335 33.335 0 0 1 9.765 23.484z"},null,-1),Te=t("path",{d:"M317.62 46.812h64.75c2.418 0 4.375-1.957 4.375-4.375s-1.957-4.375-4.375-4.375h-64.75c-2.418 0-4.375 1.957-4.375 4.375s1.957 4.375 4.375 4.375zM364.7 192.5a16.8 16.8 0 0 0-14.7-8.75 16.8 16.8 0 0 0-14.698 8.75l-91 157.5a16.453 16.453 0 0 0 0 16.977 16.584 16.584 0 0 0 6.101 6.386 16.653 16.653 0 0 0 8.512 2.364h182.09a16.626 16.626 0 0 0 14.7-8.75 16.803 16.803 0 0 0 0-16.977zm83.562 170.36a8.224 8.224 0 0 1-7.262 4.2H258.91a8.229 8.229 0 0 1-7.176-4.2 8.753 8.753 0 0 1 0-8.75l91-157.5a8.748 8.748 0 0 1 7.262-4.113 8.757 8.757 0 0 1 7.262 4.199l91 157.5a8.75 8.75 0 0 1 0 8.84z"},null,-1),be=t("path",{d:"M350 221.55a4.288 4.288 0 0 0-4.29 4.285v66.238a4.375 4.375 0 0 0 8.75 0v-66.238a4.286 4.286 0 0 0-4.46-4.285zm0 91.26a4.289 4.289 0 0 0-4.29 4.29v17.061a4.375 4.375 0 0 0 8.75 0V317.1a4.286 4.286 0 0 0-4.46-4.29z"},null,-1),$e=[qe,Te,be];function ke(r,a){return n(),o("svg",ge,$e)}const ye={render:ke},m=r=>(ne("data-v-f0cd47e7"),r=r(),oe(),r),Me={class:"page-container"},Se={class:"main"},we={class:"v-toolbar"},Ie=["disabled"],Ve=m(()=>t("md-ripple",null,null,-1)),Ce=m(()=>t("md-ripple",null,null,-1)),Ae=m(()=>t("md-ripple",null,null,-1)),He={key:0,class:"loading"},Le=m(()=>t("md-circular-progress",{indeterminate:""},null,-1)),Ze=[Le],ze={key:1,class:"request-permission"},Be=m(()=>t("img",{src:fe},null,-1)),De={class:"text"},Qe={key:2,class:"request-permission-failed"},xe=["src"],Ee=U({__name:"ScreenMirrorView",setup(r){let a;const{t:g}=j(),i=v(""),_=v(0),u=v(!1),y=v(),M=async e=>{i.value=e,u.value=!1,_.value=0,clearInterval(a)};let c=!1;const{mutate:I}=b({document:X,appApi:!0}),V=()=>{I(),c=!0},S=e=>{e&&c&&(c=!1,clearInterval(a),q())};O(()=>{h.on("screen_mirroring",M),h.on("app_socket_connection_changed",S)}),P(()=>{h.off("screen_mirroring",M),h.off("app_socket_connection_changed",S)});const{mutate:C,loading:A,onDone:H,onError:L}=b({document:Y,appApi:!0}),{loading:Z,refetch:z}=W({handle:(e,l)=>{l?$(g(l),"error"):(i.value=e.screenMirrorImage,e.screenMirrorImage||q())},document:ee,appApi:!0}),B=()=>{var e;(e=y.value)==null||e.requestFullscreen({navigationUI:"show"})},q=()=>{u.value=!1,C()};L(e=>{$(g(e.message)),u.value=!0}),H(()=>{_.value=30,a=setInterval(()=>{_.value--,_.value<=0&&(u.value=!0,clearInterval(a))},1e3)});const{mutate:w,loading:D,onDone:Q,onError:x}=b({document:te,appApi:!0});return x(e=>{$(g(e.message))}),Q(()=>{u.value=!0,i.value=""}),(e,l)=>{const E=ae,F=he,G=re,R=ue,T=J("tooltip");return n(),o("div",Me,[t("div",Se,[t("div",we,[d(E,{current:()=>e.$t("screen_mirror")},null,8,["current"]),i.value?(n(),o(K,{key:0},[k((n(),o("button",{class:"icon-button",disabled:s(D),onClick:l[0]||(l[0]=(...N)=>s(w)&&s(w)(...N))},[Ve,d(F)],8,Ie)),[[T,e.$t("stop_mirror")]]),k((n(),o("button",{class:"icon-button",onClick:l[1]||(l[1]=()=>s(z)())},[Ce,d(G)])),[[T,e.$t("refresh")]]),k((n(),o("button",{class:"icon-button",onClick:B},[Ae,d(R)])),[[T,e.$t("fullscreen")]])],64)):s(c)?p("",!0):(n(),o("md-outlined-button",{key:1,onClick:V},f(e.$t("relaunch_app")),1))]),t("div",{ref_key:"containerRef",ref:y,class:"panel-container"},[s(Z)||s(A)||s(c)?(n(),o("div",He,Ze)):p("",!0),_.value>0&&!s(c)?(n(),o("div",ze,[Be,t("pre",De,f(e.$t("screen_mirror_request_permission",{seconds:_.value})),1)])):p("",!0),u.value&&!i.value&&!s(c)?(n(),o("div",Qe,[d(s(ye)),t("p",null,f(e.$t("screen_mirror_request_permission_failed")),1),t("md-filled-button",{onClick:q},f(e.$t("try_again")),1)])):p("",!0),i.value?(n(),o("img",{key:3,src:i.value},null,8,xe)):p("",!0)],512)])])}}});const Ne=se(Ee,[["__scopeId","data-v-f0cd47e7"]]);export{Ne as default}; diff --git a/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js b/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js similarity index 94% rename from app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js rename to app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js index 9e7d5d63..047ea5f2 100644 --- a/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js +++ b/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js @@ -1 +1 @@ -import{o as l,c as r,a as c,d as V,u as D,e as L,r as S,g as w,x as B,aS as H,O as N,P as o,Q as A,R as G,h as I,t as m,m as E,l as v,p as F,F as b,J,I as P,j,bJ as T,a2 as p,i as C,bK as z,T as K,C as O,bL as R,W as U,aH as W,bM as Z,bN as X,ac as Y}from"./index-f62f2ff2.js";import{E as q}from"./EditValueModal-d57e85f6.js";const ee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},te=c("path",{fill:"currentColor",d:"M12 19q-.425 0-.713-.288T11 18v-5H6q-.425 0-.713-.288T5 12q0-.425.288-.713T6 11h5V6q0-.425.288-.713T12 5q.425 0 .713.288T13 6v5h5q.425 0 .713.288T19 12q0 .425-.288.713T18 13h-5v5q0 .425-.288.713T12 19Z"},null,-1),ae=[te];function ne(d,a){return l(),r("svg",ee,ae)}const se={name:"material-symbols-add-rounded",render:ne},oe={class:"nav-title"},ie=["onClick"],le=c("md-ripple",null,null,-1),re={class:"nav"},de=["onClick","onContextmenu"],me=V({__name:"TagFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(d){const a=d,{t:n}=D(),k=L(),_=S([]),{refetch:i}=w({handle:(e,t)=>{t?B(n(t),"error"):e&&(_.value=e.tags)},document:H,variables:{type:a.type},appApi:!0});function x(){p(q,{title:n("add_tag"),placeholder:n("name"),mutation:()=>C({document:z,options:{update:()=>{i()}},appApi:!0}),getVariables:e=>({type:a.type,name:e})})}function M(e){const t=K([{name:"tag",op:"",value:T(e.name)}]);O(k,`/${R[a.type]}?q=${U(t)}`)}function $(e,t){e.preventDefault(),W({x:e.x,y:e.y,items:[{label:n("rename"),onClick:()=>{p(q,{title:n("rename"),placeholder:n("name"),value:t.name,mutation:()=>C({document:Z,appApi:!0}),getVariables:u=>({id:t.id,name:u}),done:()=>{i()}})}},{label:n("delete"),onClick:()=>{p(Y,{id:t.id,name:t.name,gql:X,appApi:!0,typeName:"Tag"})}}]})}const h=e=>{e===a.type&&i()},f=e=>{e.type===a.type&&i()},g=e=>{e.item.tags.length&&e.type===a.type&&i()};return N(()=>{o.on("refetch_tags",h),o.on("media_items_deleted",f),o.on("media_item_deleted",g)}),A(()=>{o.off("refetch_tags",h),o.off("media_items_deleted",f),o.off("media_item_deleted",g)}),(e,t)=>{const u=se,Q=G("tooltip");return l(),r(b,null,[c("h2",oe,[I(m(e.$t("tags"))+" ",1),E((l(),r("button",{class:"icon-button",onClick:v(x,["prevent"])},[le,F(u)],8,ie)),[[Q,e.$t("add_tag")]])]),c("ul",re,[(l(!0),r(b,null,J(_.value,s=>(l(),r("li",{onClick:v(y=>M(s),["prevent"]),key:s.id,onContextmenu:y=>$(y,s),class:P({active:d.selected&&j(T)(s.name)===d.selected})},m(s.name)+" ("+m(s.count)+") ",43,de))),128))])],64)}}});export{me as _,se as a}; +import{o as l,c as r,a as c,d as V,u as D,e as L,r as S,g as w,x as B,aS as H,O as N,P as o,Q as A,R as G,h as I,t as m,m as E,l as v,p as F,F as b,J,I as P,j,bJ as T,a2 as p,i as C,bK as z,T as K,C as O,bL as R,W as U,aH as W,bM as Z,bN as X,ac as Y}from"./index-0c42270c.js";import{E as q}from"./EditValueModal-c22a5b2d.js";const ee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},te=c("path",{fill:"currentColor",d:"M12 19q-.425 0-.713-.288T11 18v-5H6q-.425 0-.713-.288T5 12q0-.425.288-.713T6 11h5V6q0-.425.288-.713T12 5q.425 0 .713.288T13 6v5h5q.425 0 .713.288T19 12q0 .425-.288.713T18 13h-5v5q0 .425-.288.713T12 19Z"},null,-1),ae=[te];function ne(d,a){return l(),r("svg",ee,ae)}const se={name:"material-symbols-add-rounded",render:ne},oe={class:"nav-title"},ie=["onClick"],le=c("md-ripple",null,null,-1),re={class:"nav"},de=["onClick","onContextmenu"],me=V({__name:"TagFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(d){const a=d,{t:n}=D(),k=L(),_=S([]),{refetch:i}=w({handle:(e,t)=>{t?B(n(t),"error"):e&&(_.value=e.tags)},document:H,variables:{type:a.type},appApi:!0});function x(){p(q,{title:n("add_tag"),placeholder:n("name"),mutation:()=>C({document:z,options:{update:()=>{i()}},appApi:!0}),getVariables:e=>({type:a.type,name:e})})}function M(e){const t=K([{name:"tag",op:"",value:T(e.name)}]);O(k,`/${R[a.type]}?q=${U(t)}`)}function $(e,t){e.preventDefault(),W({x:e.x,y:e.y,items:[{label:n("rename"),onClick:()=>{p(q,{title:n("rename"),placeholder:n("name"),value:t.name,mutation:()=>C({document:Z,appApi:!0}),getVariables:u=>({id:t.id,name:u}),done:()=>{i()}})}},{label:n("delete"),onClick:()=>{p(Y,{id:t.id,name:t.name,gql:X,appApi:!0,typeName:"Tag"})}}]})}const h=e=>{e===a.type&&i()},f=e=>{e.type===a.type&&i()},g=e=>{e.item.tags.length&&e.type===a.type&&i()};return N(()=>{o.on("refetch_tags",h),o.on("media_items_deleted",f),o.on("media_item_deleted",g)}),A(()=>{o.off("refetch_tags",h),o.off("media_items_deleted",f),o.off("media_item_deleted",g)}),(e,t)=>{const u=se,Q=G("tooltip");return l(),r(b,null,[c("h2",oe,[I(m(e.$t("tags"))+" ",1),E((l(),r("button",{class:"icon-button",onClick:v(x,["prevent"])},[le,F(u)],8,ie)),[[Q,e.$t("add_tag")]])]),c("ul",re,[(l(!0),r(b,null,J(_.value,s=>(l(),r("li",{onClick:v(y=>M(s),["prevent"]),key:s.id,onContextmenu:y=>$(y,s),class:P({active:d.selected&&j(T)(s.name)===d.selected})},m(s.name)+" ("+m(s.count)+") ",43,de))),128))])],64)}}});export{me as _,se as a}; diff --git a/app/src/main/resources/web/assets/VideosRootView-f0bc46ee.js b/app/src/main/resources/web/assets/VideosRootView-3b9905f4.js similarity index 70% rename from app/src/main/resources/web/assets/VideosRootView-f0bc46ee.js rename to app/src/main/resources/web/assets/VideosRootView-3b9905f4.js index a7c9851f..1a54c7ad 100644 --- a/app/src/main/resources/web/assets/VideosRootView-f0bc46ee.js +++ b/app/src/main/resources/web/assets/VideosRootView-3b9905f4.js @@ -1 +1 @@ -import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-9dafd033.js";import{d as C,D as V,e as w,az as y,G as z,c as B,p as s,H as a,j as e,o as D,a as o,t as d,l as I,I as $,C as b}from"./index-f62f2ff2.js";import{g as m,M as E}from"./splitpanes.es-2b477659.js";import"./EditValueModal-d57e85f6.js";import"./vee-validate.esm-65abdaa1.js";const M={class:"page-container"},N={class:"sidebar"},S={class:"nav-title"},O={class:"nav"},R=["onClick"],j={class:"main"},A=C({__name:"VideosRootView",setup(q){var r,_;const n=V(),u=w(),i=y(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){b(u,"/videos")}return(t,x)=>{const f=k,v=g,h=z("router-view");return D(),B("div",M,[s(e(E),null,{default:a(()=>[s(e(m),{size:"20","min-size":"10"},{default:a(()=>[o("div",N,[o("h2",S,d(t.$t("page_title.videos")),1),o("ul",O,[o("li",{onClick:I(p,["prevent"]),class:$({active:e(n).path==="/videos"&&!e(c)&&!e(l)})},d(t.$t("all")),11,R),s(f,{type:"VIDEO",selected:e(l)},null,8,["selected"])]),s(v,{type:"VIDEO",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(m),null,{default:a(()=>[o("div",j,[s(h)])]),_:1})]),_:1})])}}});export{A as default}; +import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-f7ab6958.js";import{d as C,D as V,e as w,az as y,G as z,c as B,p as s,H as a,j as e,o as D,a as o,t as d,l as I,I as $,C as b}from"./index-0c42270c.js";import{g as m,M as E}from"./splitpanes.es-7e8a6fea.js";import"./EditValueModal-c22a5b2d.js";import"./vee-validate.esm-ca78f26f.js";const M={class:"page-container"},N={class:"sidebar"},S={class:"nav-title"},O={class:"nav"},R=["onClick"],j={class:"main"},A=C({__name:"VideosRootView",setup(q){var r,_;const n=V(),u=w(),i=y(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){b(u,"/videos")}return(t,x)=>{const f=k,v=g,h=z("router-view");return D(),B("div",M,[s(e(E),null,{default:a(()=>[s(e(m),{size:"20","min-size":"10"},{default:a(()=>[o("div",N,[o("h2",S,d(t.$t("page_title.videos")),1),o("ul",O,[o("li",{onClick:I(p,["prevent"]),class:$({active:e(n).path==="/videos"&&!e(c)&&!e(l)})},d(t.$t("all")),11,R),s(f,{type:"VIDEO",selected:e(l)},null,8,["selected"])]),s(v,{type:"VIDEO",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(m),null,{default:a(()=>[o("div",j,[s(h)])]),_:1})]),_:1})])}}});export{A as default}; diff --git a/app/src/main/resources/web/assets/VideosView-5ce3e77c.js b/app/src/main/resources/web/assets/VideosView-7dd1d1c7.js similarity index 95% rename from app/src/main/resources/web/assets/VideosView-5ce3e77c.js rename to app/src/main/resources/web/assets/VideosView-7dd1d1c7.js index 6ed58fea..6ff213e0 100644 --- a/app/src/main/resources/web/assets/VideosView-5ce3e77c.js +++ b/app/src/main/resources/web/assets/VideosView-7dd1d1c7.js @@ -1 +1 @@ -import{u as Be,_ as Me,a as qe,b as Ne}from"./list-45297bd9.js";import{d as He,aA as Le,e as Qe,r as I,u as xe,f as Ge,s as Oe,K as Ke,L as We,D as Pe,M as Xe,aB as je,af as Je,aC as Ye,N as Ze,w as et,O as tt,P as f,Q as ot,R as st,c as a,a as o,p as c,j as t,F as S,m,l as _,k,S as q,H as lt,J as N,t as u,T as nt,U as at,x as it,aD as dt,aI as ct,C as ce,W as ue,o as n,v as ut,a9 as _e,$ as re,I as _t,ax as pe,aF as H,z as rt,A as pt,B as mt,al as ht,a0 as vt,a2 as gt,a3 as ft,a1 as kt,as as yt,aG as bt,aH as wt,ad as Ct,am as $t,a4 as Tt,a5 as Vt,a6 as It,_ as St}from"./index-f62f2ff2.js";import{_ as Dt}from"./upload-rounded-886d7dcb.js";import{_ as At,a as Rt}from"./grid-view-outline-rounded-dfcff43e.js";import{_ as zt}from"./Breadcrumb-ebe74d39.js";import{u as Et,a as Ft}from"./tags-06583423.js";import"./vee-validate.esm-65abdaa1.js";const r=A=>(pt("data-v-0d1b15a6"),A=A(),mt(),A),Ut={class:"v-toolbar"},Bt=r(()=>o("md-ripple",null,null,-1)),Mt=r(()=>o("md-ripple",null,null,-1)),qt=r(()=>o("md-ripple",null,null,-1)),Nt=["onClick"],Ht=r(()=>o("md-ripple",null,null,-1)),Lt=["onClick"],Qt=r(()=>o("md-ripple",null,null,-1)),xt={class:"filters"},Gt=["label"],Ot={class:"form-label"},Kt=["label","selected","onClick"],Wt={class:"buttons"},Pt=["onClick"],Xt={key:0,class:"image-container",style:{"margin-bottom":"24px"}},jt=["onClick","onContextmenu"],Jt=["src"],Yt={class:"duration"},Zt={key:1,class:"no-data-placeholder"},eo={key:2,class:"table-responsive"},to={class:"table"},oo=["checked","indeterminate"],so=r(()=>o("th",null,"ID",-1)),lo=r(()=>o("th",null,null,-1)),no=r(()=>o("th",null,null,-1)),ao=["onClick"],io=["checked"],co=["src","onClick"],uo={class:"nowrap"},_o={class:"action-btns"},ro=["onClick"],po=r(()=>o("md-ripple",null,null,-1)),mo=["onClick"],ho=r(()=>o("md-ripple",null,null,-1)),vo=["onClick"],go=r(()=>o("md-ripple",null,null,-1)),fo={class:"nowrap"},ko={class:"nowrap"},yo={key:0},bo={colspan:"8"},wo={class:"no-data-placeholder"},D=48,Co=He({__name:"VideosView",setup(A){var ne,ae;const me=Le(),i=Qe(),h=I([]),L=I(),{t:C}=xe(),Q=Ge(),{app:x,urlTokenKey:U}=Oe(Q),v=Ke({text:"",tags:[]}),d=We.VIDEO,G=Pe().query,$=I(parseInt(((ne=G.page)==null?void 0:ne.toString())??"1")),y=I(Xe(((ae=G.q)==null?void 0:ae.toString())??"")),T=I(""),{tags:R}=Et(d,y,v,async e=>{T.value=nt(e),await at(),be()}),{addToTags:he}=Ft(d,h,R),{deleteItems:ve,deleteItem:O}=je(),{allChecked:K,realAllChecked:z,selectRealAll:ge,allCheckedAlertVisible:fe,clearSelection:E,toggleAllChecked:W,toggleItemChecked:P,toggleRow:ke,total:b,checked:X}=Be(h),{downloadItems:ye}=Je(U,d,h,E,"videos.zip"),{downloadFile:j}=ht(U),B=Ye(()=>h.value.map(e=>({src:pe(e.fileId),name:H(e.path),duration:e.duration,size:e.size,path:e.path,data:e,type:d}))),{loading:J,load:be,refetch:M}=Ze({handle:async(e,l)=>{if(l)it(C(l),"error");else if(e){const w=[];for(const V of e.videos)w.push({...V,checked:!1,fileId:dt(U.value,V.path)});h.value=w,b.value=e.videoCount}},document:ct,variables:()=>({offset:($.value-1)*D,limit:D,query:T.value}),appApi:!0});function we(){ce(i,`/videos?page=${$.value}&q=${ue(y.value)}`)}function Y(e){Q.lightbox={sources:B.value,index:e,visible:!0}}et($,()=>{we()});function Ce(e){v.tags.includes(e)?vt(v.tags,l=>l.id===e.id):v.tags.push(e)}function Z(e){gt(ft,{type:d,tags:R.value,item:{key:e.id,title:e.title,size:e.size},selected:R.value.filter(l=>e.tags.some(w=>w.id===l.id))})}function $e(){y.value=kt(v),ee(),L.value.dismiss()}function ee(){ce(i,`/videos?q=${ue(y.value)}`)}function Te(){i.videoViewType==="grid"?i.videoViewType="list":i.videoViewType="grid"}function Ve(){me.push("/files"),yt(bt,{message:C("upload_videos")})}function Ie(e,l){e.preventDefault(),wt({x:e.x,y:e.y,items:[{label:C("add_to_tags"),onClick:()=>{Z(l)}},{label:C("download"),onClick:()=>{j(l.path,H(l.path).replace(" ","-"))}},{label:C("delete"),onClick:()=>{O(d,l)}}]})}const te=e=>{e.type===d&&(E(),M())},oe=e=>{e.type===d&&M()},se=e=>{e.type===d&&(E(),M())},le=()=>{b.value--};return tt(()=>{f.on("item_tags_updated",oe),f.on("items_tags_updated",te),f.on("media_item_deleted",le),f.on("media_items_deleted",se)}),ot(()=>{f.off("item_tags_updated",oe),f.off("items_tags_updated",te),f.off("media_item_deleted",le),f.off("media_items_deleted",se)}),(e,l)=>{const w=zt,V=Ct,ie=$t,de=Tt,Se=At,De=Rt,Ae=Dt,Re=Me,ze=qe,Ee=Vt,Fe=It,Ue=Ne,g=st("tooltip");return n(),a(S,null,[o("div",Ut,[c(w,{current:()=>`${e.$t("page_title.videos")} (${t(b)})`},null,8,["current"]),t(X)&&t(i).videoViewType==="list"?(n(),a(S,{key:0},[m((n(),a("button",{class:"icon-button",onClick:l[0]||(l[0]=_(s=>t(ve)(t(d),h.value,t(z),T.value),["stop"]))},[Bt,c(V)])),[[g,e.$t("delete")]]),m((n(),a("button",{class:"icon-button",onClick:l[1]||(l[1]=_(s=>t(ye)(t(z),T.value),["stop"]))},[Mt,c(ie)])),[[g,e.$t("download")]]),m((n(),a("button",{class:"icon-button",onClick:l[2]||(l[2]=_(s=>t(he)(t(z),T.value),["stop"]))},[qt,c(de)])),[[g,e.$t("add_to_tags")]])],64)):k("",!0),m((n(),a("button",{class:"icon-button",onClick:_(Te,["prevent"])},[Ht,t(i).videoViewType==="list"?(n(),q(Se,{key:0})):k("",!0),t(i).videoViewType==="grid"?(n(),q(De,{key:1})):k("",!0)],8,Nt)),[[g,e.$t(t(i).videoViewType==="list"?"view_as_grid":"view_as_list")]]),m((n(),a("button",{class:"icon-button",onClick:_(Ve,["prevent"])},[Qt,c(Ae)],8,Lt)),[[g,e.$t("upload")]]),c(Re,{ref_key:"searchInputRef",ref:L,modelValue:y.value,"onUpdate:modelValue":l[4]||(l[4]=s=>y.value=s),search:ee},{filters:lt(()=>[o("div",xt,[m(o("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":l[3]||(l[3]=s=>v.text=s),"keyup.enter":"applyAndDoSearch"},null,8,Gt),[[ut,v.text]]),o("label",Ot,u(e.$t("tags")),1),o("md-chip-set",null,[(n(!0),a(S,null,N(t(R),s=>(n(),a("md-filter-chip",{key:s.id,label:s.name,selected:v.tags.includes(s),onClick:F=>Ce(s)},null,8,Kt))),128))]),o("div",Wt,[o("md-filled-button",{onClick:_($e,["stop"])},u(e.$t("search")),9,Pt)])])]),_:1},8,["modelValue"])]),t(i).videoViewType==="grid"?(n(),a("div",Xt,[(n(!0),a(S,null,N(B.value,(s,F)=>(n(),a("div",{class:"item",onClick:p=>Y(F),onContextmenu:p=>Ie(p,s.data)},[o("img",{class:"image",src:s.src+"&w=300&h=300"},null,8,Jt),o("span",Yt,u(t(_e)(s.duration)),1)],40,jt))),256))])):k("",!0),t(i).videoViewType==="grid"&&B.value.length===0?(n(),a("div",Zt,u(e.$t(t(re)(t(J),t(x).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):k("",!0),c(ze,{limit:D,total:t(b),"all-checked-alert-visible":t(fe),"real-all-checked":t(z),"select-real-all":t(ge),"clear-selection":t(E)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t(i).videoViewType==="list"?(n(),a("div",eo,[o("table",to,[o("thead",null,[o("tr",null,[o("th",null,[o("md-checkbox",{"touch-target":"wrapper",onChange:l[5]||(l[5]=(...s)=>t(W)&&t(W)(...s)),checked:t(K),indeterminate:!t(K)&&t(X)},null,40,oo)]),so,lo,o("th",null,u(e.$t("name")),1),no,o("th",null,u(e.$t("tags")),1),o("th",null,u(e.$t("duration")),1),o("th",null,u(e.$t("file_size")),1)])]),o("tbody",null,[(n(!0),a(S,null,N(h.value,(s,F)=>(n(),a("tr",{key:s.id,class:_t({selected:s.checked}),onClick:_(p=>t(ke)(s),["stop"])},[o("td",null,[o("md-checkbox",{"touch-target":"wrapper",onChange:l[6]||(l[6]=(...p)=>t(P)&&t(P)(...p)),checked:s.checked},null,40,io)]),o("td",null,[c(Ee,{id:s.id,raw:s},null,8,["id","raw"])]),o("td",null,[o("img",{class:"img-video",src:t(pe)(s.fileId)+"&w=300&h=300",width:"50",height:"50",style:{cursor:"pointer"},onClick:_(p=>Y(F),["stop"])},null,8,co)]),o("td",null,u(s.title),1),o("td",uo,[o("div",_o,[m((n(),a("button",{class:"icon-button",onClick:_(p=>t(O)(t(d),s),["stop"])},[po,c(V)],8,ro)),[[g,e.$t("delete")]]),m((n(),a("button",{class:"icon-button",onClick:_(p=>t(j)(s.path,t(H)(s.path).replace(" ","-")),["stop"])},[ho,c(ie)],8,mo)),[[g,e.$t("download")]]),m((n(),a("button",{class:"icon-button",onClick:_(p=>Z(s),["stop"])},[go,c(de)],8,vo)),[[g,e.$t("add_to_tags")]])])]),o("td",null,[c(Fe,{tags:s.tags,type:t(d)},null,8,["tags","type"])]),o("td",fo,u(t(_e)(s.duration)),1),o("td",ko,u(t(rt)(s.size)),1)],10,ao))),128))]),h.value.length?k("",!0):(n(),a("tfoot",yo,[o("tr",null,[o("td",bo,[o("div",wo,u(e.$t(t(re)(t(J),t(x).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])])):k("",!0),t(b)>D?(n(),q(Ue,{key:3,modelValue:$.value,"onUpdate:modelValue":l[7]||(l[7]=s=>$.value=s),total:t(b),limit:D},null,8,["modelValue","total"])):k("",!0)],64)}}});const zo=St(Co,[["__scopeId","data-v-0d1b15a6"]]);export{zo as default}; +import{u as Be,_ as Me,a as qe,b as Ne}from"./list-183f8357.js";import{d as He,aA as Le,e as Qe,r as I,u as xe,f as Ge,s as Oe,K as Ke,L as We,D as Pe,M as Xe,aB as je,af as Je,aC as Ye,N as Ze,w as et,O as tt,P as f,Q as ot,R as st,c as a,a as o,p as c,j as t,F as S,m,l as _,k,S as q,H as lt,J as N,t as u,T as nt,U as at,x as it,aD as dt,aI as ct,C as ce,W as ue,o as n,v as ut,a9 as _e,$ as re,I as _t,ax as pe,aF as H,z as rt,A as pt,B as mt,al as ht,a0 as vt,a2 as gt,a3 as ft,a1 as kt,as as yt,aG as bt,aH as wt,ad as Ct,am as $t,a4 as Tt,a5 as Vt,a6 as It,_ as St}from"./index-0c42270c.js";import{_ as Dt}from"./upload-rounded-8f0af5aa.js";import{_ as At,a as Rt}from"./grid-view-outline-rounded-600c49fd.js";import{_ as zt}from"./Breadcrumb-f52b6c6b.js";import{u as Et,a as Ft}from"./tags-bf0f6db9.js";import"./vee-validate.esm-ca78f26f.js";const r=A=>(pt("data-v-0d1b15a6"),A=A(),mt(),A),Ut={class:"v-toolbar"},Bt=r(()=>o("md-ripple",null,null,-1)),Mt=r(()=>o("md-ripple",null,null,-1)),qt=r(()=>o("md-ripple",null,null,-1)),Nt=["onClick"],Ht=r(()=>o("md-ripple",null,null,-1)),Lt=["onClick"],Qt=r(()=>o("md-ripple",null,null,-1)),xt={class:"filters"},Gt=["label"],Ot={class:"form-label"},Kt=["label","selected","onClick"],Wt={class:"buttons"},Pt=["onClick"],Xt={key:0,class:"image-container",style:{"margin-bottom":"24px"}},jt=["onClick","onContextmenu"],Jt=["src"],Yt={class:"duration"},Zt={key:1,class:"no-data-placeholder"},eo={key:2,class:"table-responsive"},to={class:"table"},oo=["checked","indeterminate"],so=r(()=>o("th",null,"ID",-1)),lo=r(()=>o("th",null,null,-1)),no=r(()=>o("th",null,null,-1)),ao=["onClick"],io=["checked"],co=["src","onClick"],uo={class:"nowrap"},_o={class:"action-btns"},ro=["onClick"],po=r(()=>o("md-ripple",null,null,-1)),mo=["onClick"],ho=r(()=>o("md-ripple",null,null,-1)),vo=["onClick"],go=r(()=>o("md-ripple",null,null,-1)),fo={class:"nowrap"},ko={class:"nowrap"},yo={key:0},bo={colspan:"8"},wo={class:"no-data-placeholder"},D=48,Co=He({__name:"VideosView",setup(A){var ne,ae;const me=Le(),i=Qe(),h=I([]),L=I(),{t:C}=xe(),Q=Ge(),{app:x,urlTokenKey:U}=Oe(Q),v=Ke({text:"",tags:[]}),d=We.VIDEO,G=Pe().query,$=I(parseInt(((ne=G.page)==null?void 0:ne.toString())??"1")),y=I(Xe(((ae=G.q)==null?void 0:ae.toString())??"")),T=I(""),{tags:R}=Et(d,y,v,async e=>{T.value=nt(e),await at(),be()}),{addToTags:he}=Ft(d,h,R),{deleteItems:ve,deleteItem:O}=je(),{allChecked:K,realAllChecked:z,selectRealAll:ge,allCheckedAlertVisible:fe,clearSelection:E,toggleAllChecked:W,toggleItemChecked:P,toggleRow:ke,total:b,checked:X}=Be(h),{downloadItems:ye}=Je(U,d,h,E,"videos.zip"),{downloadFile:j}=ht(U),B=Ye(()=>h.value.map(e=>({src:pe(e.fileId),name:H(e.path),duration:e.duration,size:e.size,path:e.path,data:e,type:d}))),{loading:J,load:be,refetch:M}=Ze({handle:async(e,l)=>{if(l)it(C(l),"error");else if(e){const w=[];for(const V of e.videos)w.push({...V,checked:!1,fileId:dt(U.value,V.path)});h.value=w,b.value=e.videoCount}},document:ct,variables:()=>({offset:($.value-1)*D,limit:D,query:T.value}),appApi:!0});function we(){ce(i,`/videos?page=${$.value}&q=${ue(y.value)}`)}function Y(e){Q.lightbox={sources:B.value,index:e,visible:!0}}et($,()=>{we()});function Ce(e){v.tags.includes(e)?vt(v.tags,l=>l.id===e.id):v.tags.push(e)}function Z(e){gt(ft,{type:d,tags:R.value,item:{key:e.id,title:e.title,size:e.size},selected:R.value.filter(l=>e.tags.some(w=>w.id===l.id))})}function $e(){y.value=kt(v),ee(),L.value.dismiss()}function ee(){ce(i,`/videos?q=${ue(y.value)}`)}function Te(){i.videoViewType==="grid"?i.videoViewType="list":i.videoViewType="grid"}function Ve(){me.push("/files"),yt(bt,{message:C("upload_videos")})}function Ie(e,l){e.preventDefault(),wt({x:e.x,y:e.y,items:[{label:C("add_to_tags"),onClick:()=>{Z(l)}},{label:C("download"),onClick:()=>{j(l.path,H(l.path).replace(" ","-"))}},{label:C("delete"),onClick:()=>{O(d,l)}}]})}const te=e=>{e.type===d&&(E(),M())},oe=e=>{e.type===d&&M()},se=e=>{e.type===d&&(E(),M())},le=()=>{b.value--};return tt(()=>{f.on("item_tags_updated",oe),f.on("items_tags_updated",te),f.on("media_item_deleted",le),f.on("media_items_deleted",se)}),ot(()=>{f.off("item_tags_updated",oe),f.off("items_tags_updated",te),f.off("media_item_deleted",le),f.off("media_items_deleted",se)}),(e,l)=>{const w=zt,V=Ct,ie=$t,de=Tt,Se=At,De=Rt,Ae=Dt,Re=Me,ze=qe,Ee=Vt,Fe=It,Ue=Ne,g=st("tooltip");return n(),a(S,null,[o("div",Ut,[c(w,{current:()=>`${e.$t("page_title.videos")} (${t(b)})`},null,8,["current"]),t(X)&&t(i).videoViewType==="list"?(n(),a(S,{key:0},[m((n(),a("button",{class:"icon-button",onClick:l[0]||(l[0]=_(s=>t(ve)(t(d),h.value,t(z),T.value),["stop"]))},[Bt,c(V)])),[[g,e.$t("delete")]]),m((n(),a("button",{class:"icon-button",onClick:l[1]||(l[1]=_(s=>t(ye)(t(z),T.value),["stop"]))},[Mt,c(ie)])),[[g,e.$t("download")]]),m((n(),a("button",{class:"icon-button",onClick:l[2]||(l[2]=_(s=>t(he)(t(z),T.value),["stop"]))},[qt,c(de)])),[[g,e.$t("add_to_tags")]])],64)):k("",!0),m((n(),a("button",{class:"icon-button",onClick:_(Te,["prevent"])},[Ht,t(i).videoViewType==="list"?(n(),q(Se,{key:0})):k("",!0),t(i).videoViewType==="grid"?(n(),q(De,{key:1})):k("",!0)],8,Nt)),[[g,e.$t(t(i).videoViewType==="list"?"view_as_grid":"view_as_list")]]),m((n(),a("button",{class:"icon-button",onClick:_(Ve,["prevent"])},[Qt,c(Ae)],8,Lt)),[[g,e.$t("upload")]]),c(Re,{ref_key:"searchInputRef",ref:L,modelValue:y.value,"onUpdate:modelValue":l[4]||(l[4]=s=>y.value=s),search:ee},{filters:lt(()=>[o("div",xt,[m(o("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":l[3]||(l[3]=s=>v.text=s),"keyup.enter":"applyAndDoSearch"},null,8,Gt),[[ut,v.text]]),o("label",Ot,u(e.$t("tags")),1),o("md-chip-set",null,[(n(!0),a(S,null,N(t(R),s=>(n(),a("md-filter-chip",{key:s.id,label:s.name,selected:v.tags.includes(s),onClick:F=>Ce(s)},null,8,Kt))),128))]),o("div",Wt,[o("md-filled-button",{onClick:_($e,["stop"])},u(e.$t("search")),9,Pt)])])]),_:1},8,["modelValue"])]),t(i).videoViewType==="grid"?(n(),a("div",Xt,[(n(!0),a(S,null,N(B.value,(s,F)=>(n(),a("div",{class:"item",onClick:p=>Y(F),onContextmenu:p=>Ie(p,s.data)},[o("img",{class:"image",src:s.src+"&w=300&h=300"},null,8,Jt),o("span",Yt,u(t(_e)(s.duration)),1)],40,jt))),256))])):k("",!0),t(i).videoViewType==="grid"&&B.value.length===0?(n(),a("div",Zt,u(e.$t(t(re)(t(J),t(x).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):k("",!0),c(ze,{limit:D,total:t(b),"all-checked-alert-visible":t(fe),"real-all-checked":t(z),"select-real-all":t(ge),"clear-selection":t(E)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t(i).videoViewType==="list"?(n(),a("div",eo,[o("table",to,[o("thead",null,[o("tr",null,[o("th",null,[o("md-checkbox",{"touch-target":"wrapper",onChange:l[5]||(l[5]=(...s)=>t(W)&&t(W)(...s)),checked:t(K),indeterminate:!t(K)&&t(X)},null,40,oo)]),so,lo,o("th",null,u(e.$t("name")),1),no,o("th",null,u(e.$t("tags")),1),o("th",null,u(e.$t("duration")),1),o("th",null,u(e.$t("file_size")),1)])]),o("tbody",null,[(n(!0),a(S,null,N(h.value,(s,F)=>(n(),a("tr",{key:s.id,class:_t({selected:s.checked}),onClick:_(p=>t(ke)(s),["stop"])},[o("td",null,[o("md-checkbox",{"touch-target":"wrapper",onChange:l[6]||(l[6]=(...p)=>t(P)&&t(P)(...p)),checked:s.checked},null,40,io)]),o("td",null,[c(Ee,{id:s.id,raw:s},null,8,["id","raw"])]),o("td",null,[o("img",{class:"img-video",src:t(pe)(s.fileId)+"&w=300&h=300",width:"50",height:"50",style:{cursor:"pointer"},onClick:_(p=>Y(F),["stop"])},null,8,co)]),o("td",null,u(s.title),1),o("td",uo,[o("div",_o,[m((n(),a("button",{class:"icon-button",onClick:_(p=>t(O)(t(d),s),["stop"])},[po,c(V)],8,ro)),[[g,e.$t("delete")]]),m((n(),a("button",{class:"icon-button",onClick:_(p=>t(j)(s.path,t(H)(s.path).replace(" ","-")),["stop"])},[ho,c(ie)],8,mo)),[[g,e.$t("download")]]),m((n(),a("button",{class:"icon-button",onClick:_(p=>Z(s),["stop"])},[go,c(de)],8,vo)),[[g,e.$t("add_to_tags")]])])]),o("td",null,[c(Fe,{tags:s.tags,type:t(d)},null,8,["tags","type"])]),o("td",fo,u(t(_e)(s.duration)),1),o("td",ko,u(t(rt)(s.size)),1)],10,ao))),128))]),h.value.length?k("",!0):(n(),a("tfoot",yo,[o("tr",null,[o("td",bo,[o("div",wo,u(e.$t(t(re)(t(J),t(x).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])])):k("",!0),t(b)>D?(n(),q(Ue,{key:3,modelValue:$.value,"onUpdate:modelValue":l[7]||(l[7]=s=>$.value=s),total:t(b),limit:D},null,8,["modelValue","total"])):k("",!0)],64)}}});const zo=St(Co,[["__scopeId","data-v-0d1b15a6"]]);export{zo as default}; diff --git a/app/src/main/resources/web/assets/WiFiView-1926eeb7.js b/app/src/main/resources/web/assets/WiFiView-67a5c23b.js similarity index 95% rename from app/src/main/resources/web/assets/WiFiView-1926eeb7.js rename to app/src/main/resources/web/assets/WiFiView-67a5c23b.js index f6aed402..19ac4d53 100644 --- a/app/src/main/resources/web/assets/WiFiView-1926eeb7.js +++ b/app/src/main/resources/web/assets/WiFiView-67a5c23b.js @@ -1,4 +1,4 @@ -var z=Object.defineProperty;var A=(i,o,s)=>o in i?z(i,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[o]=s;var T=(i,o,s)=>(A(i,typeof o!="symbol"?o+"":o,s),s);import{_ as P}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import{o as Z,c as M,a as e,d as W,u as G,r as f,an as S,g as J,x as K,ab as F,bz as B,i as O,p as q,j as l,m as r,aV as _,t as p,n as L,v as X,bA as Y,l as ee}from"./index-f62f2ff2.js";import{_ as se}from"./EditToolbar.vuevuetypescriptsetuptruelang-60d4e984.js";import{_ as oe}from"./Breadcrumb-ebe74d39.js";import{u as te,a as D}from"./vee-validate.esm-65abdaa1.js";const ne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ae=e("path",{fill:"currentColor",d:"M12 16q1.875 0 3.188-1.313T16.5 11.5q0-1.875-1.313-3.188T12 7q-1.875 0-3.188 1.313T7.5 11.5q0 1.875 1.313 3.188T12 16Zm0-1.8q-1.125 0-1.913-.788T9.3 11.5q0-1.125.788-1.913T12 8.8q1.125 0 1.913.788T14.7 11.5q0 1.125-.787 1.913T12 14.2Zm0 4.8q-3.475 0-6.35-1.838T1.3 12.2q-.075-.125-.1-.312t-.025-.388q0-.2.025-.388t.1-.312q1.475-3.125 4.35-4.963T12 4q3.475 0 6.35 1.838T22.7 10.8q.075.125.1.313t.025.387q0 .2-.025.388t-.1.312q-1.475 3.125-4.35 4.963T12 19Zm0-7.5Zm0 5.5q2.825 0 5.188-1.488T20.8 11.5q-1.25-2.525-3.613-4.013T12 6Q9.175 6 6.812 7.488T3.2 11.5q1.25 2.525 3.613 4.013T12 17Z"},null,-1),le=[ae];function ie(i,o){return Z(),M("svg",ne,le)}const ce={name:"material-symbols-visibility-outline-rounded",render:ie},de={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},re=e("path",{fill:"currentColor",d:"m16.1 13.3l-1.45-1.45q.225-1.175-.675-2.2t-2.325-.8L10.2 7.4q.425-.2.863-.3T12 7q1.875 0 3.188 1.313T16.5 11.5q0 .5-.1.938t-.3.862Zm3.2 3.15l-1.45-1.4q.95-.725 1.688-1.587T20.8 11.5q-1.25-2.525-3.588-4.013T12 6q-.725 0-1.425.1T9.2 6.4L7.65 4.85q1.025-.425 2.1-.638T12 4q3.575 0 6.425 1.887T22.7 10.8q.075.125.1.313t.025.387q0 .2-.037.388t-.088.312q-.575 1.275-1.437 2.35t-1.963 1.9Zm-.2 5.45l-3.5-3.45q-.875.275-1.762.413T12 19q-3.575 0-6.425-1.888T1.3 12.2q-.075-.125-.1-.312t-.025-.388q0-.2.025-.375t.1-.3Q1.825 9.7 2.55 8.75T4.15 7L2.075 4.9Q1.8 4.625 1.8 4.212t.3-.712q.275-.275.7-.275t.7.275l17 17q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275ZM5.55 8.4q-.725.65-1.325 1.425T3.2 11.5q1.25 2.525 3.588 4.013T12 17q.5 0 .975-.063t.975-.137l-.9-.95q-.275.075-.525.113T12 16q-1.875 0-3.188-1.312T7.5 11.5q0-.275.038-.525t.112-.525L5.55 8.4Zm7.975 2.325ZM9.75 12.6Z"},null,-1),ue=[re];function me(i,o){return Z(),M("svg",de,ue)}const _e={name:"material-symbols-visibility-off-outline-rounded",render:me};class w{constructor(){T(this,"line","");T(this,"key","");T(this,"value","")}update(o,s){this.line=this.line.replace(new RegExp(`^(${o}s*=s*).+$`),(t,n)=>n+s),this.value=s}static create(o,s){const t=new w;return t.key=o,t.value=s,t.line=`${o} = ${s}`,t}}function H(i){const o=[],s=i.split(` +var z=Object.defineProperty;var A=(i,o,s)=>o in i?z(i,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[o]=s;var T=(i,o,s)=>(A(i,typeof o!="symbol"?o+"":o,s),s);import{_ as P}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import{o as Z,c as M,a as e,d as W,u as G,r as f,an as S,g as J,x as K,ab as F,bz as B,i as O,p as q,j as l,m as r,aV as _,t as p,n as L,v as X,bA as Y,l as ee}from"./index-0c42270c.js";import{_ as se}from"./EditToolbar.vuevuetypescriptsetuptruelang-c9962942.js";import{_ as oe}from"./Breadcrumb-f52b6c6b.js";import{u as te,a as D}from"./vee-validate.esm-ca78f26f.js";const ne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ae=e("path",{fill:"currentColor",d:"M12 16q1.875 0 3.188-1.313T16.5 11.5q0-1.875-1.313-3.188T12 7q-1.875 0-3.188 1.313T7.5 11.5q0 1.875 1.313 3.188T12 16Zm0-1.8q-1.125 0-1.913-.788T9.3 11.5q0-1.125.788-1.913T12 8.8q1.125 0 1.913.788T14.7 11.5q0 1.125-.787 1.913T12 14.2Zm0 4.8q-3.475 0-6.35-1.838T1.3 12.2q-.075-.125-.1-.312t-.025-.388q0-.2.025-.388t.1-.312q1.475-3.125 4.35-4.963T12 4q3.475 0 6.35 1.838T22.7 10.8q.075.125.1.313t.025.387q0 .2-.025.388t-.1.312q-1.475 3.125-4.35 4.963T12 19Zm0-7.5Zm0 5.5q2.825 0 5.188-1.488T20.8 11.5q-1.25-2.525-3.613-4.013T12 6Q9.175 6 6.812 7.488T3.2 11.5q1.25 2.525 3.613 4.013T12 17Z"},null,-1),le=[ae];function ie(i,o){return Z(),M("svg",ne,le)}const ce={name:"material-symbols-visibility-outline-rounded",render:ie},de={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},re=e("path",{fill:"currentColor",d:"m16.1 13.3l-1.45-1.45q.225-1.175-.675-2.2t-2.325-.8L10.2 7.4q.425-.2.863-.3T12 7q1.875 0 3.188 1.313T16.5 11.5q0 .5-.1.938t-.3.862Zm3.2 3.15l-1.45-1.4q.95-.725 1.688-1.587T20.8 11.5q-1.25-2.525-3.588-4.013T12 6q-.725 0-1.425.1T9.2 6.4L7.65 4.85q1.025-.425 2.1-.638T12 4q3.575 0 6.425 1.887T22.7 10.8q.075.125.1.313t.025.387q0 .2-.037.388t-.088.312q-.575 1.275-1.437 2.35t-1.963 1.9Zm-.2 5.45l-3.5-3.45q-.875.275-1.762.413T12 19q-3.575 0-6.425-1.888T1.3 12.2q-.075-.125-.1-.312t-.025-.388q0-.2.025-.375t.1-.3Q1.825 9.7 2.55 8.75T4.15 7L2.075 4.9Q1.8 4.625 1.8 4.212t.3-.712q.275-.275.7-.275t.7.275l17 17q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275ZM5.55 8.4q-.725.65-1.325 1.425T3.2 11.5q1.25 2.525 3.588 4.013T12 17q.5 0 .975-.063t.975-.137l-.9-.95q-.275.075-.525.113T12 16q-1.875 0-3.188-1.312T7.5 11.5q0-.275.038-.525t.112-.525L5.55 8.4Zm7.975 2.325ZM9.75 12.6Z"},null,-1),ue=[re];function me(i,o){return Z(),M("svg",de,ue)}const _e={name:"material-symbols-visibility-off-outline-rounded",render:me};class w{constructor(){T(this,"line","");T(this,"key","");T(this,"value","")}update(o,s){this.line=this.line.replace(new RegExp(`^(${o}s*=s*).+$`),(t,n)=>n+s),this.value=s}static create(o,s){const t=new w;return t.key=o,t.value=s,t.line=`${o} = ${s}`,t}}function H(i){const o=[],s=i.split(` `);for(const t of s){const n=t.split("="),d=new w;d.line=t,n.length>1&&(d.key=n[0].trimEnd(),d.value=n[1].trimStart()),o.push(d)}return o}function C(i,o,s){let t=i.find(n=>n.key==o);t?t.update(o,s):(t=w.create(o,s),i.push(t))}const pe={class:"page-container"},he={class:"main"},ve={class:"row mb-3"},fe={for:"is-enabled",class:"col-sm-3 col-md-2 col-form-label"},qe={class:"col-sm-4"},ge={class:"form-check"},be=["checked"],Te={class:"row mb-3"},we={for:"ssid",class:"col-sm-3 col-md-2 col-form-label"},ye={class:"col-sm-4"},$e={class:"row mb-3"},ke={for:"password",class:"col-sm-3 col-md-2 col-form-label"},xe={class:"col-sm-4"},Ve={class:"input-group"},Ce=["type"],Ze=["onClick"],Me={class:"inner"},Ee={class:"row mb-3"},Se={for:"hide-ssid",class:"col-sm-3 col-md-2 col-form-label"},Fe={class:"col-sm-4"},Be={class:"form-check"},Le=["checked"],Ne=W({__name:"WiFiView",setup(i){const{handleSubmit:o}=te(),{t:s}=G(),t=f(0),n=f(""),{value:d,errorMessage:y}=D("password",S().required().min(8)),{value:h,errorMessage:$}=D("ssid",S().required()),v=f(!1),k=f(!1),x=f(!1);function Q(){v.value=!v.value}J({handle:(c,a)=>{a?K(s(a),"error"):(n.value=c.hostapd.config,k.value=c.hostapd.isEnabled,E())},document:F` query { hostapd { diff --git a/app/src/main/resources/web/assets/WireGuardEditView-747cb30c.js b/app/src/main/resources/web/assets/WireGuardEditView-6c951e0b.js similarity index 92% rename from app/src/main/resources/web/assets/WireGuardEditView-747cb30c.js rename to app/src/main/resources/web/assets/WireGuardEditView-6c951e0b.js index 7e416a04..745c9654 100644 --- a/app/src/main/resources/web/assets/WireGuardEditView-747cb30c.js +++ b/app/src/main/resources/web/assets/WireGuardEditView-6c951e0b.js @@ -1,4 +1,4 @@ -import{_ as E}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import{_ as M}from"./EditToolbar.vuevuetypescriptsetuptruelang-60d4e984.js";import{_ as P}from"./Breadcrumb-ebe74d39.js";import{d as S,u as j,r as _,D as T,g as N,x as A,ab as G,bZ as U,i as O,c as R,a as q,p as h,j as B,o as Q}from"./index-f62f2ff2.js";import{p as x,g as F}from"./parser-fdd85e1d.js";function l(a){const t=new Float64Array(16);if(a)for(let r=0;r>16&1),e[n-1]&=65535;e[15]=o[15]-32767-(e[14]>>16&1),r=e[15]>>16&1,e[14]&=65535,v(o,e,1-r)}for(var n=0;n<16;++n)a[2*n]=o[n]&255,a[2*n+1]=o[n]>>8}function y(a){for(let t=0;t<16;++t)a[(t+1)%16]+=(t<15?1:38)*Math.floor(a[t]/65536),a[t]&=65535}function v(a,t,r){let e,o=~(r-1);for(let n=0;n<16;++n)e=o&(a[n]^t[n]),a[n]^=e,t[n]^=e}function w(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]+r[e]|0}function K(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]-r[e]|0}function u(a,t,r){const e=new Float64Array(31);for(var o=0;o<16;++o)for(let n=0;n<16;++n)e[o+n]+=t[o]*r[n];for(var o=0;o<15;++o)e[o]+=38*e[o+16];for(var o=0;o<16;++o)a[o]=e[o];y(a),y(a)}function z(a,t){const r=l();for(var e=0;e<16;++e)r[e]=t[e];for(var e=253;e>=0;--e)u(r,r,r),e!==2&&e!==4&&u(r,r,t);for(var e=0;e<16;++e)a[e]=r[e]}function C(a){a[31]=a[31]&127|64,a[0]&=248}function H(a){let t,r=new Uint8Array(32);const e=l([1]),o=l([9]),n=l(),i=l([1]),f=l(),g=l(),$=l([56129,1]),V=l([9]);for(var s=0;s<32;++s)r[s]=a[s];C(r);for(var s=254;s>=0;--s)t=r[s>>>3]>>>(s&7)&1,v(e,o,t),v(n,i,t),w(f,e,n),K(e,e,n),w(n,o,i),K(o,o,i),u(i,f,f),u(g,e,e),u(e,n,e),u(n,o,f),w(f,e,n),K(e,e,n),u(o,e,e),K(n,i,g),u(e,n,$),w(e,e,i),u(n,n,e),u(e,i,g),u(i,o,V),u(o,f,f),v(e,o,t),v(n,i,t);return z(n,n),u(e,e,n),Z(r,e),r}function J(){const a=new Uint8Array(32);return crypto.getRandomValues(a),a}function L(){const a=J();return C(a),a}function W(a,t){const r=Uint8Array.from([t[0]>>2&63,(t[0]<<4|t[1]>>4)&63,(t[1]<<2|t[2]>>6)&63,t[2]&63]);for(let e=0;e<4;++e)a[e]=r[e]+65+(25-r[e]>>8&6)-(51-r[e]>>8&75)-(61-r[e]>>8&15)+(62-r[e]>>8&3)}function k(a){let t,r=new Uint8Array(44);for(t=0;t<32/3;++t)W(r.subarray(t*4),a.subarray(t*3));return W(r.subarray(t*4),Uint8Array.from([a[t*3+0],a[t*3+1],0])),r[43]=61,new TextDecoder().decode(r)}const X=()=>{const a=L(),t=H(a);return{publicKey:k(t),privateKey:k(a)}},Y={class:"page-container"},ee={class:"main"},ie=S({__name:"WireGuardEditView",setup(a){const{t}=j(),r=_(0),o=T().params.id,n=_(""),i=_(""),f=_(!1),g=[{id:"add-peer",label:"Add peer",precondition:null,keybindingContext:null,contextMenuGroupId:"navigation",contextMenuOrder:0,run:function(){var b;const c=x(n.value);c.wgInterface.table="off";const d=((b=c.wgInterface.address)==null?void 0:b[0])??"",m=X(),p=c.peers.length;c.peers.push({name:`Peer ${p+1}`,allowedIps:[d.substring(0,d.lastIndexOf("."))+`.${p+2}/32`],privateKey:m.privateKey,publicKey:m.publicKey}),n.value=F(c)}}];N({handle:(c,d)=>{if(d)A(t(d),"error");else{const m=c.wireGuards.find(p=>p.id===o);if(m){n.value=m.config;const p=x(m.config);i.value=(p==null?void 0:p.wgInterface.name)??"",f.value=m.isEnabled}}},document:G` +import{_ as E}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import{_ as M}from"./EditToolbar.vuevuetypescriptsetuptruelang-c9962942.js";import{_ as P}from"./Breadcrumb-f52b6c6b.js";import{d as S,u as j,r as _,D as T,g as N,x as A,ab as G,bZ as U,i as O,c as R,a as q,p as h,j as B,o as Q}from"./index-0c42270c.js";import{p as x,g as F}from"./parser-fdd85e1d.js";function l(a){const t=new Float64Array(16);if(a)for(let r=0;r>16&1),e[n-1]&=65535;e[15]=o[15]-32767-(e[14]>>16&1),r=e[15]>>16&1,e[14]&=65535,v(o,e,1-r)}for(var n=0;n<16;++n)a[2*n]=o[n]&255,a[2*n+1]=o[n]>>8}function y(a){for(let t=0;t<16;++t)a[(t+1)%16]+=(t<15?1:38)*Math.floor(a[t]/65536),a[t]&=65535}function v(a,t,r){let e,o=~(r-1);for(let n=0;n<16;++n)e=o&(a[n]^t[n]),a[n]^=e,t[n]^=e}function w(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]+r[e]|0}function K(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]-r[e]|0}function u(a,t,r){const e=new Float64Array(31);for(var o=0;o<16;++o)for(let n=0;n<16;++n)e[o+n]+=t[o]*r[n];for(var o=0;o<15;++o)e[o]+=38*e[o+16];for(var o=0;o<16;++o)a[o]=e[o];y(a),y(a)}function z(a,t){const r=l();for(var e=0;e<16;++e)r[e]=t[e];for(var e=253;e>=0;--e)u(r,r,r),e!==2&&e!==4&&u(r,r,t);for(var e=0;e<16;++e)a[e]=r[e]}function C(a){a[31]=a[31]&127|64,a[0]&=248}function H(a){let t,r=new Uint8Array(32);const e=l([1]),o=l([9]),n=l(),i=l([1]),f=l(),g=l(),$=l([56129,1]),V=l([9]);for(var s=0;s<32;++s)r[s]=a[s];C(r);for(var s=254;s>=0;--s)t=r[s>>>3]>>>(s&7)&1,v(e,o,t),v(n,i,t),w(f,e,n),K(e,e,n),w(n,o,i),K(o,o,i),u(i,f,f),u(g,e,e),u(e,n,e),u(n,o,f),w(f,e,n),K(e,e,n),u(o,e,e),K(n,i,g),u(e,n,$),w(e,e,i),u(n,n,e),u(e,i,g),u(i,o,V),u(o,f,f),v(e,o,t),v(n,i,t);return z(n,n),u(e,e,n),Z(r,e),r}function J(){const a=new Uint8Array(32);return crypto.getRandomValues(a),a}function L(){const a=J();return C(a),a}function W(a,t){const r=Uint8Array.from([t[0]>>2&63,(t[0]<<4|t[1]>>4)&63,(t[1]<<2|t[2]>>6)&63,t[2]&63]);for(let e=0;e<4;++e)a[e]=r[e]+65+(25-r[e]>>8&6)-(51-r[e]>>8&75)-(61-r[e]>>8&15)+(62-r[e]>>8&3)}function k(a){let t,r=new Uint8Array(44);for(t=0;t<32/3;++t)W(r.subarray(t*4),a.subarray(t*3));return W(r.subarray(t*4),Uint8Array.from([a[t*3+0],a[t*3+1],0])),r[43]=61,new TextDecoder().decode(r)}const X=()=>{const a=L(),t=H(a);return{publicKey:k(t),privateKey:k(a)}},Y={class:"page-container"},ee={class:"main"},ie=S({__name:"WireGuardEditView",setup(a){const{t}=j(),r=_(0),o=T().params.id,n=_(""),i=_(""),f=_(!1),g=[{id:"add-peer",label:"Add peer",precondition:null,keybindingContext:null,contextMenuGroupId:"navigation",contextMenuOrder:0,run:function(){var b;const c=x(n.value);c.wgInterface.table="off";const d=((b=c.wgInterface.address)==null?void 0:b[0])??"",m=X(),p=c.peers.length;c.peers.push({name:`Peer ${p+1}`,allowedIps:[d.substring(0,d.lastIndexOf("."))+`.${p+2}/32`],privateKey:m.privateKey,publicKey:m.publicKey}),n.value=F(c)}}];N({handle:(c,d)=>{if(d)A(t(d),"error");else{const m=c.wireGuards.find(p=>p.id===o);if(m){n.value=m.config;const p=x(m.config);i.value=(p==null?void 0:p.wgInterface.name)??"",f.value=m.isEnabled}}},document:G` query { wireGuards { ...WireGuardFragment diff --git a/app/src/main/resources/web/assets/WireGuardView-fb264a54.js b/app/src/main/resources/web/assets/WireGuardView-75612dc0.js similarity index 94% rename from app/src/main/resources/web/assets/WireGuardView-fb264a54.js rename to app/src/main/resources/web/assets/WireGuardView-75612dc0.js index cc63d495..b60e4f77 100644 --- a/app/src/main/resources/web/assets/WireGuardView-fb264a54.js +++ b/app/src/main/resources/web/assets/WireGuardView-75612dc0.js @@ -1,4 +1,4 @@ -import{d as I,e as y,r as D,u as F,g as M,x as B,ab as o,bZ as g,i as q,c as l,a as e,p as $,t,F as E,J as N,o as r,j as f,l as m,C as S,a2 as V,ac as j,a5 as A}from"./index-f62f2ff2.js";import{_ as L}from"./Breadcrumb-ebe74d39.js";import{p as P}from"./parser-fdd85e1d.js";const J={class:"page-container"},Q={class:"main"},Z={class:"table-responsive"},z={class:"table"},H=e("th",null,"ID",-1),K={class:"actions two"},O={class:"form-check"},R=["disabled","onChange","checked"],T={class:"actions two"},U=["onClick"],X=["onClick"],ae=I({__name:"WireGuardView",setup(Y){const b=y(),d=D([]),{t:c}=F();function v(n){S(b,`/wireguard/${n}`)}M({handle:(n,s)=>{s?B(c(s),"error"):d.value=n.wireGuards.map(i=>({...i,...P(i.config)}))},document:o` +import{d as I,e as y,r as D,u as F,g as M,x as B,ab as o,bZ as g,i as q,c as l,a as e,p as $,t,F as E,J as N,o as r,j as f,l as m,C as S,a2 as V,ac as j,a5 as A}from"./index-0c42270c.js";import{_ as L}from"./Breadcrumb-f52b6c6b.js";import{p as P}from"./parser-fdd85e1d.js";const J={class:"page-container"},Q={class:"main"},Z={class:"table-responsive"},z={class:"table"},H=e("th",null,"ID",-1),K={class:"actions two"},O={class:"form-check"},R=["disabled","onChange","checked"],T={class:"actions two"},U=["onClick"],X=["onClick"],ae=I({__name:"WireGuardView",setup(Y){const b=y(),d=D([]),{t:c}=F();function v(n){S(b,`/wireguard/${n}`)}M({handle:(n,s)=>{s?B(c(s),"error"):d.value=n.wireGuards.map(i=>({...i,...P(i.config)}))},document:o` query { wireGuards { ...WireGuardFragment diff --git a/app/src/main/resources/web/assets/call-outline-rounded-79a3fba5.js b/app/src/main/resources/web/assets/call-outline-rounded-00415545.js similarity index 91% rename from app/src/main/resources/web/assets/call-outline-rounded-79a3fba5.js rename to app/src/main/resources/web/assets/call-outline-rounded-00415545.js index b77f1f0e..3a94b942 100644 --- a/app/src/main/resources/web/assets/call-outline-rounded-79a3fba5.js +++ b/app/src/main/resources/web/assets/call-outline-rounded-00415545.js @@ -1 +1 @@ -import{o as e,c as t,a as o}from"./index-f62f2ff2.js";const l={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},n=o("path",{fill:"currentColor",d:"M19.95 21q-3.225 0-6.287-1.438t-5.425-3.8q-2.363-2.362-3.8-5.425T3 4.05q0-.45.3-.75t.75-.3H8.1q.35 0 .625.225t.325.575l.65 3.5q.05.35-.013.638T9.4 8.45L6.975 10.9q1.05 1.8 2.638 3.375T13.1 17l2.35-2.35q.225-.225.588-.338t.712-.062l3.45.7q.35.075.575.338T21 15.9v4.05q0 .45-.3.75t-.75.3ZM6.025 9l1.65-1.65L7.25 5H5.025q.125 1.025.35 2.025T6.025 9ZM19 18.95v-2.2l-2.35-.475l-1.675 1.675q.975.425 1.987.675T19 18.95Zm-4-1.025ZM6.025 9Z"},null,-1),c=[n];function s(a,r){return e(),t("svg",l,c)}const i={name:"material-symbols-call-outline-rounded",render:s};export{i as _}; +import{o as e,c as t,a as o}from"./index-0c42270c.js";const l={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},n=o("path",{fill:"currentColor",d:"M19.95 21q-3.225 0-6.287-1.438t-5.425-3.8q-2.363-2.362-3.8-5.425T3 4.05q0-.45.3-.75t.75-.3H8.1q.35 0 .625.225t.325.575l.65 3.5q.05.35-.013.638T9.4 8.45L6.975 10.9q1.05 1.8 2.638 3.375T13.1 17l2.35-2.35q.225-.225.588-.338t.712-.062l3.45.7q.35.075.575.338T21 15.9v4.05q0 .45-.3.75t-.75.3ZM6.025 9l1.65-1.65L7.25 5H5.025q.125 1.025.35 2.025T6.025 9ZM19 18.95v-2.2l-2.35-.475l-1.675 1.675q.975.425 1.987.675T19 18.95Zm-4-1.025ZM6.025 9Z"},null,-1),c=[n];function s(a,r){return e(),t("svg",l,c)}const i={name:"material-symbols-call-outline-rounded",render:s};export{i as _}; diff --git a/app/src/main/resources/web/assets/cssMode-eb070eb5.js b/app/src/main/resources/web/assets/cssMode-d97ae944.js similarity index 99% rename from app/src/main/resources/web/assets/cssMode-eb070eb5.js rename to app/src/main/resources/web/assets/cssMode-d97ae944.js index 0cda9931..e3450b4c 100644 --- a/app/src/main/resources/web/assets/cssMode-eb070eb5.js +++ b/app/src/main/resources/web/assets/cssMode-d97ae944.js @@ -1,4 +1,4 @@ -var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import"./index-f62f2ff2.js";/*!----------------------------------------------------------------------------- +var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import"./index-0c42270c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license diff --git a/app/src/main/resources/web/assets/freemarker2-10ca9925.js b/app/src/main/resources/web/assets/freemarker2-fbaddb6e.js similarity index 99% rename from app/src/main/resources/web/assets/freemarker2-10ca9925.js rename to app/src/main/resources/web/assets/freemarker2-fbaddb6e.js index 8052a050..2bcbcdd7 100644 --- a/app/src/main/resources/web/assets/freemarker2-10ca9925.js +++ b/app/src/main/resources/web/assets/freemarker2-fbaddb6e.js @@ -1,4 +1,4 @@ -import{m as F}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import"./index-f62f2ff2.js";/*!----------------------------------------------------------------------------- +import{m as F}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import"./index-0c42270c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license diff --git a/app/src/main/resources/web/assets/grid-view-outline-rounded-dfcff43e.js b/app/src/main/resources/web/assets/grid-view-outline-rounded-600c49fd.js similarity index 95% rename from app/src/main/resources/web/assets/grid-view-outline-rounded-dfcff43e.js rename to app/src/main/resources/web/assets/grid-view-outline-rounded-600c49fd.js index 50f6b43e..66076cc4 100644 --- a/app/src/main/resources/web/assets/grid-view-outline-rounded-dfcff43e.js +++ b/app/src/main/resources/web/assets/grid-view-outline-rounded-600c49fd.js @@ -1 +1 @@ -import{o as e,c as t,a as o}from"./index-f62f2ff2.js";const s={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},q=o("path",{fill:"currentColor",d:"M21 6.625q0 .425-.288.713T20 7.625H4q-.425 0-.713-.288T3 6.626V4q0-.425.288-.713T4 3h16q.425 0 .713.288T21 4v2.625Zm0 6.725q0 .425-.288.713T20 14.35H4q-.425 0-.713-.287T3 13.35v-2.725q0-.425.288-.713T4 9.625h16q.425 0 .713.288t.287.712v2.725ZM21 20q0 .425-.288.713T20 21H4q-.425 0-.713-.288T3 20v-2.65q0-.425.288-.713T4 16.35h16q.425 0 .713.288t.287.712V20Z"},null,-1),r=[q];function T(n,h){return e(),t("svg",s,r)}const l={name:"material-symbols-table-rows-rounded",render:T},c={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_=o("path",{fill:"currentColor",d:"M5 11q-.825 0-1.413-.588T3 9V5q0-.825.588-1.413T5 3h4q.825 0 1.413.588T11 5v4q0 .825-.588 1.413T9 11H5Zm0 10q-.825 0-1.413-.588T3 19v-4q0-.825.588-1.413T5 13h4q.825 0 1.413.588T11 15v4q0 .825-.588 1.413T9 21H5Zm10-10q-.825 0-1.413-.588T13 9V5q0-.825.588-1.413T15 3h4q.825 0 1.413.588T21 5v4q0 .825-.588 1.413T19 11h-4Zm0 10q-.825 0-1.413-.588T13 19v-4q0-.825.588-1.413T15 13h4q.825 0 1.413.588T21 15v4q0 .825-.588 1.413T19 21h-4ZM5 9h4V5H5v4Zm10 0h4V5h-4v4Zm0 10h4v-4h-4v4ZM5 19h4v-4H5v4ZM15 9Zm0 6Zm-6 0Zm0-6Z"},null,-1),i=[_];function m(n,h){return e(),t("svg",c,i)}const v={name:"material-symbols-grid-view-outline-rounded",render:m};export{v as _,l as a}; +import{o as e,c as t,a as o}from"./index-0c42270c.js";const s={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},q=o("path",{fill:"currentColor",d:"M21 6.625q0 .425-.288.713T20 7.625H4q-.425 0-.713-.288T3 6.626V4q0-.425.288-.713T4 3h16q.425 0 .713.288T21 4v2.625Zm0 6.725q0 .425-.288.713T20 14.35H4q-.425 0-.713-.287T3 13.35v-2.725q0-.425.288-.713T4 9.625h16q.425 0 .713.288t.287.712v2.725ZM21 20q0 .425-.288.713T20 21H4q-.425 0-.713-.288T3 20v-2.65q0-.425.288-.713T4 16.35h16q.425 0 .713.288t.287.712V20Z"},null,-1),r=[q];function T(n,h){return e(),t("svg",s,r)}const l={name:"material-symbols-table-rows-rounded",render:T},c={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_=o("path",{fill:"currentColor",d:"M5 11q-.825 0-1.413-.588T3 9V5q0-.825.588-1.413T5 3h4q.825 0 1.413.588T11 5v4q0 .825-.588 1.413T9 11H5Zm0 10q-.825 0-1.413-.588T3 19v-4q0-.825.588-1.413T5 13h4q.825 0 1.413.588T11 15v4q0 .825-.588 1.413T9 21H5Zm10-10q-.825 0-1.413-.588T13 9V5q0-.825.588-1.413T15 3h4q.825 0 1.413.588T21 5v4q0 .825-.588 1.413T19 11h-4Zm0 10q-.825 0-1.413-.588T13 19v-4q0-.825.588-1.413T15 13h4q.825 0 1.413.588T21 15v4q0 .825-.588 1.413T19 21h-4ZM5 9h4V5H5v4Zm10 0h4V5h-4v4Zm0 10h4v-4h-4v4ZM5 19h4v-4H5v4ZM15 9Zm0 6Zm-6 0Zm0-6Z"},null,-1),i=[_];function m(n,h){return e(),t("svg",c,i)}const v={name:"material-symbols-grid-view-outline-rounded",render:m};export{v as _,l as a}; diff --git a/app/src/main/resources/web/assets/handlebars-2b61f8e8.js b/app/src/main/resources/web/assets/handlebars-56c84eff.js similarity index 99% rename from app/src/main/resources/web/assets/handlebars-2b61f8e8.js rename to app/src/main/resources/web/assets/handlebars-56c84eff.js index 94a4cb0f..84a6b9e8 100644 --- a/app/src/main/resources/web/assets/handlebars-2b61f8e8.js +++ b/app/src/main/resources/web/assets/handlebars-56c84eff.js @@ -1,4 +1,4 @@ -import{m as i}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import"./index-f62f2ff2.js";/*!----------------------------------------------------------------------------- +import{m as i}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import"./index-0c42270c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license diff --git a/app/src/main/resources/web/assets/html-e129a820.js b/app/src/main/resources/web/assets/html-11123344.js similarity index 98% rename from app/src/main/resources/web/assets/html-e129a820.js rename to app/src/main/resources/web/assets/html-11123344.js index d771c69f..1037405a 100644 --- a/app/src/main/resources/web/assets/html-e129a820.js +++ b/app/src/main/resources/web/assets/html-11123344.js @@ -1,4 +1,4 @@ -import{m as p}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import"./index-f62f2ff2.js";/*!----------------------------------------------------------------------------- +import{m as p}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import"./index-0c42270c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license diff --git a/app/src/main/resources/web/assets/htmlMode-6b344c1c.js b/app/src/main/resources/web/assets/htmlMode-95ffdede.js similarity index 99% rename from app/src/main/resources/web/assets/htmlMode-6b344c1c.js rename to app/src/main/resources/web/assets/htmlMode-95ffdede.js index 1d2bd229..fe7cad04 100644 --- a/app/src/main/resources/web/assets/htmlMode-6b344c1c.js +++ b/app/src/main/resources/web/assets/htmlMode-95ffdede.js @@ -1,4 +1,4 @@ -var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import"./index-f62f2ff2.js";/*!----------------------------------------------------------------------------- +var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import"./index-0c42270c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license diff --git a/app/src/main/resources/web/assets/index-f62f2ff2.js b/app/src/main/resources/web/assets/index-0c42270c.js similarity index 84% rename from app/src/main/resources/web/assets/index-f62f2ff2.js rename to app/src/main/resources/web/assets/index-0c42270c.js index f5dcac41..64c0737e 100644 --- a/app/src/main/resources/web/assets/index-f62f2ff2.js +++ b/app/src/main/resources/web/assets/index-0c42270c.js @@ -1,19 +1,19 @@ -var iL=Object.defineProperty;var aL=(t,e,r)=>e in t?iL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var kr=(t,e,r)=>(aL(t,typeof e!="symbol"?e+"":e,r),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();function yy(t,e){const r=Object.create(null),n=t.split(",");for(let o=0;o!!r[o.toLowerCase()]:o=>!!r[o]}const Zt={},ul=[],ho=()=>{},sL=()=>!1,lL=/^on[^a-z]/,Mp=t=>lL.test(t),by=t=>t.startsWith("onUpdate:"),ur=Object.assign,xy=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},cL=Object.prototype.hasOwnProperty,kt=(t,e)=>cL.call(t,e),Ye=Array.isArray,fl=t=>Rd(t)==="[object Map]",Ul=t=>Rd(t)==="[object Set]",o2=t=>Rd(t)==="[object Date]",st=t=>typeof t=="function",ar=t=>typeof t=="string",id=t=>typeof t=="symbol",qt=t=>t!==null&&typeof t=="object",HT=t=>qt(t)&&st(t.then)&&st(t.catch),WT=Object.prototype.toString,Rd=t=>WT.call(t),dL=t=>Rd(t).slice(8,-1),GT=t=>Rd(t)==="[object Object]",wy=t=>ar(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Of=yy(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Dp=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},uL=/-(\w)/g,Fo=Dp(t=>t.replace(uL,(e,r)=>r?r.toUpperCase():"")),fL=/\B([A-Z])/g,xs=Dp(t=>t.replace(fL,"-$1").toLowerCase()),Fp=Dp(t=>t.charAt(0).toUpperCase()+t.slice(1)),Pf=Dp(t=>t?`on${Fp(t)}`:""),ad=(t,e)=>!Object.is(t,e),Rf=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},Xf=t=>{const e=parseFloat(t);return isNaN(e)?t:e},pL=t=>{const e=ar(t)?Number(t):NaN;return isNaN(e)?t:e};let i2;const Bv=()=>i2||(i2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bl(t){if(Ye(t)){const e={};for(let r=0;r{if(r){const n=r.split(mL);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Vn(t){let e="";if(ar(t))e=t;else if(Ye(t))for(let r=0;rfs(r,e))}const Ne=t=>ar(t)?t:t==null?"":Ye(t)||qt(t)&&(t.toString===WT||!st(t.toString))?JSON.stringify(t,KT,2):String(t),KT=(t,e)=>e&&e.__v_isRef?KT(t,e.value):fl(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,o])=>(r[`${n} =>`]=o,r),{})}:Ul(e)?{[`Set(${e.size})`]:[...e.values()]}:qt(e)&&!Ye(e)&&!GT(e)?String(e):e;let Tn;class YT{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Tn,!e&&Tn&&(this.index=(Tn.scopes||(Tn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=Tn;try{return Tn=this,e()}finally{Tn=r}}}on(){Tn=this}off(){Tn=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r{const e=new Set(t);return e.w=0,e.n=0,e},ZT=t=>(t.w&ca)>0,XT=t=>(t.n&ca)>0,EL=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let r=0;for(let n=0;n{(f==="length"||f>=d)&&c.push(u)})}else switch(r!==void 0&&c.push(a.get(r)),e){case"add":Ye(t)?wy(r)&&c.push(a.get("length")):(c.push(a.get(rs)),fl(t)&&c.push(a.get(Vv)));break;case"delete":Ye(t)||(c.push(a.get(rs)),fl(t)&&c.push(a.get(Vv)));break;case"set":fl(t)&&c.push(a.get(rs));break}if(c.length===1)c[0]&&jv(c[0]);else{const d=[];for(const u of c)u&&d.push(...u);jv(Cy(d))}}function jv(t,e){const r=Ye(t)?t:[...t];for(const n of r)n.computed&&s2(n);for(const n of r)n.computed||s2(n)}function s2(t,e){(t!==lo||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function kL(t,e){var r;return(r=Jf.get(t))==null?void 0:r.get(e)}const CL=yy("__proto__,__v_isRef,__isVue"),t4=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(id)),AL=Sy(),SL=Sy(!1,!0),IL=Sy(!0),l2=$L();function $L(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=yt(this);for(let i=0,a=this.length;i{t[e]=function(...r){Vl();const n=yt(this)[e].apply(this,r);return jl(),n}}),t}function OL(t){const e=yt(this);return hn(e,"has",t),e.hasOwnProperty(t)}function Sy(t=!1,e=!1){return function(n,o,i){if(o==="__v_isReactive")return!t;if(o==="__v_isReadonly")return t;if(o==="__v_isShallow")return e;if(o==="__v_raw"&&i===(t?e?GL:a4:e?i4:o4).get(n))return n;const a=Ye(n);if(!t){if(a&&kt(l2,o))return Reflect.get(l2,o,i);if(o==="hasOwnProperty")return OL}const c=Reflect.get(n,o,i);return(id(o)?t4.has(o):CL(o))||(t||hn(n,"get",o),e)?c:Rt(c)?a&&wy(o)?c:c.value:qt(c)?t?l4(c):vo(c):c}}const PL=r4(),RL=r4(!0);function r4(t=!1){return function(r,n,o,i){let a=r[n];if(xl(a)&&Rt(a)&&!Rt(o))return!1;if(!t&&(!ep(o)&&!xl(o)&&(a=yt(a),o=yt(o)),!Ye(r)&&Rt(a)&&!Rt(o)))return a.value=o,!0;const c=Ye(r)&&wy(n)?Number(n)t,Np=t=>Reflect.getPrototypeOf(t);function df(t,e,r=!1,n=!1){t=t.__v_raw;const o=yt(t),i=yt(e);r||(e!==i&&hn(o,"get",e),hn(o,"get",i));const{has:a}=Np(o),c=n?Iy:r?Py:sd;if(a.call(o,e))return c(t.get(e));if(a.call(o,i))return c(t.get(i));t!==o&&t.get(e)}function uf(t,e=!1){const r=this.__v_raw,n=yt(r),o=yt(t);return e||(t!==o&&hn(n,"has",t),hn(n,"has",o)),t===o?r.has(t):r.has(t)||r.has(o)}function ff(t,e=!1){return t=t.__v_raw,!e&&hn(yt(t),"iterate",rs),Reflect.get(t,"size",t)}function c2(t){t=yt(t);const e=yt(this);return Np(e).has.call(e,t)||(e.add(t),mi(e,"add",t,t)),this}function d2(t,e){e=yt(e);const r=yt(this),{has:n,get:o}=Np(r);let i=n.call(r,t);i||(t=yt(t),i=n.call(r,t));const a=o.call(r,t);return r.set(t,e),i?ad(e,a)&&mi(r,"set",t,e):mi(r,"add",t,e),this}function u2(t){const e=yt(this),{has:r,get:n}=Np(e);let o=r.call(e,t);o||(t=yt(t),o=r.call(e,t)),n&&n.call(e,t);const i=e.delete(t);return o&&mi(e,"delete",t,void 0),i}function f2(){const t=yt(this),e=t.size!==0,r=t.clear();return e&&mi(t,"clear",void 0,void 0),r}function pf(t,e){return function(n,o){const i=this,a=i.__v_raw,c=yt(a),d=e?Iy:t?Py:sd;return!t&&hn(c,"iterate",rs),a.forEach((u,f)=>n.call(o,d(u),d(f),i))}}function hf(t,e,r){return function(...n){const o=this.__v_raw,i=yt(o),a=fl(i),c=t==="entries"||t===Symbol.iterator&&a,d=t==="keys"&&a,u=o[t](...n),f=r?Iy:e?Py:sd;return!e&&hn(i,"iterate",d?Vv:rs),{next(){const{value:g,done:_}=u.next();return _?{value:g,done:_}:{value:c?[f(g[0]),f(g[1])]:f(g),done:_}},[Symbol.iterator](){return this}}}}function qi(t){return function(...e){return t==="delete"?!1:this}}function zL(){const t={get(i){return df(this,i)},get size(){return ff(this)},has:uf,add:c2,set:d2,delete:u2,clear:f2,forEach:pf(!1,!1)},e={get(i){return df(this,i,!1,!0)},get size(){return ff(this)},has:uf,add:c2,set:d2,delete:u2,clear:f2,forEach:pf(!1,!0)},r={get(i){return df(this,i,!0)},get size(){return ff(this,!0)},has(i){return uf.call(this,i,!0)},add:qi("add"),set:qi("set"),delete:qi("delete"),clear:qi("clear"),forEach:pf(!0,!1)},n={get(i){return df(this,i,!0,!0)},get size(){return ff(this,!0)},has(i){return uf.call(this,i,!0)},add:qi("add"),set:qi("set"),delete:qi("delete"),clear:qi("clear"),forEach:pf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=hf(i,!1,!1),r[i]=hf(i,!0,!1),e[i]=hf(i,!1,!0),n[i]=hf(i,!0,!0)}),[t,r,e,n]}const[qL,BL,UL,VL]=zL();function $y(t,e){const r=e?t?VL:UL:t?BL:qL;return(n,o,i)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?n:Reflect.get(kt(r,o)&&o in n?r:n,o,i)}const jL={get:$y(!1,!1)},HL={get:$y(!1,!0)},WL={get:$y(!0,!1)},o4=new WeakMap,i4=new WeakMap,a4=new WeakMap,GL=new WeakMap;function QL(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function KL(t){return t.__v_skip||!Object.isExtensible(t)?0:QL(dL(t))}function vo(t){return xl(t)?t:Oy(t,!1,n4,jL,o4)}function s4(t){return Oy(t,!1,NL,HL,i4)}function l4(t){return Oy(t,!0,FL,WL,a4)}function Oy(t,e,r,n,o){if(!qt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=o.get(t);if(i)return i;const a=KL(t);if(a===0)return t;const c=new Proxy(t,a===2?n:r);return o.set(t,c),c}function fi(t){return xl(t)?fi(t.__v_raw):!!(t&&t.__v_isReactive)}function xl(t){return!!(t&&t.__v_isReadonly)}function ep(t){return!!(t&&t.__v_isShallow)}function c4(t){return fi(t)||xl(t)}function yt(t){const e=t&&t.__v_raw;return e?yt(e):t}function Ld(t){return Zf(t,"__v_skip",!0),t}const sd=t=>qt(t)?vo(t):t,Py=t=>qt(t)?l4(t):t;function d4(t){aa&&lo&&(t=yt(t),e4(t.dep||(t.dep=Cy())))}function u4(t,e){t=yt(t);const r=t.dep;r&&jv(r)}function Rt(t){return!!(t&&t.__v_isRef===!0)}function Se(t){return f4(t,!1)}function YL(t){return f4(t,!0)}function f4(t,e){return Rt(t)?t:new ZL(t,e)}class ZL{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:yt(e),this._value=r?e:sd(e)}get value(){return d4(this),this._value}set value(e){const r=this.__v_isShallow||ep(e)||xl(e);e=r?e:yt(e),ad(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:sd(e),u4(this))}}function he(t){return Rt(t)?t.value:t}function sve(t){return st(t)?t():he(t)}const XL={get:(t,e,r)=>he(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const o=t[e];return Rt(o)&&!Rt(r)?(o.value=r,!0):Reflect.set(t,e,r,n)}};function p4(t){return fi(t)?t:new Proxy(t,XL)}function zp(t){const e=Ye(t)?new Array(t.length):{};for(const r in t)e[r]=h4(t,r);return e}class JL{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return kL(yt(this._object),this._key)}}class e6{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function t6(t,e,r){return Rt(t)?t:st(t)?new e6(t):qt(t)&&arguments.length>1?h4(t,e,r):Se(t)}function h4(t,e,r){const n=t[e];return Rt(n)?n:new JL(t,e,r)}class r6{constructor(e,r,n,o){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ay(e,()=>{this._dirty||(this._dirty=!0,u4(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=yt(this);return d4(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function n6(t,e,r=!1){let n,o;const i=st(t);return i?(n=t,o=ho):(n=t.get,o=t.set),new r6(n,o,i||!o,r)}function sa(t,e,r,n){let o;try{o=n?t(...n):t()}catch(i){qp(i,e,r)}return o}function Hn(t,e,r,n){if(st(t)){const i=sa(t,e,r,n);return i&&HT(i)&&i.catch(a=>{qp(a,e,r)}),i}const o=[];for(let i=0;i>>1;cd(Vr[n])Po&&Vr.splice(e,1)}function s6(t){Ye(t)?pl.push(...t):(!li||!li.includes(t,t.allowRecurse?Ga+1:Ga))&&pl.push(t),v4()}function p2(t,e=ld?Po+1:0){for(;ecd(r)-cd(n)),Ga=0;Gat.id==null?1/0:t.id,l6=(t,e)=>{const r=cd(t)-cd(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function _4(t){Hv=!1,ld=!0,Vr.sort(l6);const e=ho;try{for(Po=0;Poar(b)?b.trim():b)),g&&(o=r.map(Xf))}let c,d=n[c=Pf(e)]||n[c=Pf(Fo(e))];!d&&i&&(d=n[c=Pf(xs(e))]),d&&Hn(d,t,6,o);const u=n[c+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[c])return;t.emitted[c]=!0,Hn(u,t,6,o)}}function y4(t,e,r=!1){const n=e.emitsCache,o=n.get(t);if(o!==void 0)return o;const i=t.emits;let a={},c=!1;if(!st(t)){const d=u=>{const f=y4(u,e,!0);f&&(c=!0,ur(a,f))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!i&&!c?(qt(t)&&n.set(t,null),null):(Ye(i)?i.forEach(d=>a[d]=null):ur(a,i),qt(t)&&n.set(t,a),a)}function Bp(t,e){return!t||!Mp(e)?!1:(e=e.slice(2).replace(/Once$/,""),kt(t,e[0].toLowerCase()+e.slice(1))||kt(t,xs(e))||kt(t,e))}let $r=null,Up=null;function tp(t){const e=$r;return $r=t,Up=t&&t.type.__scopeId||null,e}function _i(t){Up=t}function yi(){Up=null}function go(t,e=$r,r){if(!e||t._n)return t;const n=(...o)=>{n._d&&A2(-1);const i=tp(e);let a;try{a=t(...o)}finally{tp(i),n._d&&A2(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function Qm(t){const{type:e,vnode:r,proxy:n,withProxy:o,props:i,propsOptions:[a],slots:c,attrs:d,emit:u,render:f,renderCache:g,data:_,setupState:b,ctx:h,inheritAttrs:m}=t;let y,v;const x=tp(t);try{if(r.shapeFlag&4){const T=o||n;y=Oo(f.call(T,T,g,i,b,_,h)),v=d}else{const T=e;y=Oo(T.length>1?T(i,{attrs:d,slots:c,emit:u}):T(i,null)),v=e.props?d:d6(d)}}catch(T){jc.length=0,qp(T,t,1),y=Be(Wn)}let E=y;if(v&&m!==!1){const T=Object.keys(v),{shapeFlag:C}=E;T.length&&C&7&&(a&&T.some(by)&&(v=u6(v,a)),E=da(E,v))}return r.dirs&&(E=da(E),E.dirs=E.dirs?E.dirs.concat(r.dirs):r.dirs),r.transition&&(E.transition=r.transition),y=E,tp(x),y}const d6=t=>{let e;for(const r in t)(r==="class"||r==="style"||Mp(r))&&((e||(e={}))[r]=t[r]);return e},u6=(t,e)=>{const r={};for(const n in t)(!by(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function f6(t,e,r){const{props:n,children:o,component:i}=t,{props:a,children:c,patchFlag:d}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return n?h2(n,a,u):!!a;if(d&8){const f=e.dynamicProps;for(let g=0;gt.__isSuspense;function m6(t,e){e&&e.pendingBranch?Ye(t)?e.effects.push(...t):e.effects.push(t):s6(t)}function v6(t,e){return Vp(t,null,e)}function g6(t,e){return Vp(t,null,{flush:"post"})}const mf={};function Vt(t,e,r){return Vp(t,e,r)}function Vp(t,e,{immediate:r,deep:n,flush:o,onTrack:i,onTrigger:a}=Zt){var c;const d=ky()===((c=xr)==null?void 0:c.scope)?xr:null;let u,f=!1,g=!1;if(Rt(t)?(u=()=>t.value,f=ep(t)):fi(t)?(u=()=>t,n=!0):Ye(t)?(g=!0,f=t.some(T=>fi(T)||ep(T)),u=()=>t.map(T=>{if(Rt(T))return T.value;if(fi(T))return Xa(T);if(st(T))return sa(T,d,2)})):st(t)?e?u=()=>sa(t,d,2):u=()=>{if(!(d&&d.isUnmounted))return _&&_(),Hn(t,d,3,[b])}:u=ho,e&&n){const T=u;u=()=>Xa(T())}let _,b=T=>{_=x.onStop=()=>{sa(T,d,4)}},h;if(hd)if(b=ho,e?r&&Hn(e,d,3,[u(),g?[]:void 0,b]):u(),o==="sync"){const T=uM();h=T.__watcherHandles||(T.__watcherHandles=[])}else return ho;let m=g?new Array(t.length).fill(mf):mf;const y=()=>{if(x.active)if(e){const T=x.run();(n||f||(g?T.some((C,A)=>ad(C,m[A])):ad(T,m)))&&(_&&_(),Hn(e,d,3,[T,m===mf?void 0:g&&m[0]===mf?[]:m,b]),m=T)}else x.run()};y.allowRecurse=!!e;let v;o==="sync"?v=y:o==="post"?v=()=>fn(y,d&&d.suspense):(y.pre=!0,d&&(y.id=d.uid),v=()=>Ly(y));const x=new Ay(u,v);e?r?y():m=x.run():o==="post"?fn(x.run.bind(x),d&&d.suspense):x.run();const E=()=>{x.stop(),d&&d.scope&&xy(d.scope.effects,x)};return h&&h.push(E),E}function _6(t,e,r){const n=this.proxy,o=ar(t)?t.includes(".")?b4(n,t):()=>n[t]:t.bind(n,n);let i;st(e)?i=e:(i=e.handler,r=e);const a=xr;wl(this);const c=Vp(o,i.bind(n),r);return a?wl(a):ns(),c}function b4(t,e){const r=e.split(".");return()=>{let n=t;for(let o=0;o{Xa(r,e)});else if(GT(t))for(const r in t)Xa(t[r],e);return t}function _t(t,e){const r=$r;if(r===null)return t;const n=Gp(r)||r.proxy,o=t.dirs||(t.dirs=[]);for(let i=0;i{t.isMounted=!0}),Ho(()=>{t.isUnmounting=!0}),t}const qn=[Function,Array],w4={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qn,onEnter:qn,onAfterEnter:qn,onEnterCancelled:qn,onBeforeLeave:qn,onLeave:qn,onAfterLeave:qn,onLeaveCancelled:qn,onBeforeAppear:qn,onAppear:qn,onAfterAppear:qn,onAppearCancelled:qn},y6={name:"BaseTransition",props:w4,setup(t,{slots:e}){const r=Wo(),n=x4();let o;return()=>{const i=e.default&&My(e.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const m of i)if(m.type!==Wn){a=m;break}}const c=yt(t),{mode:d}=c;if(n.isLeaving)return Km(a);const u=m2(a);if(!u)return Km(a);const f=dd(u,c,n,r);ud(u,f);const g=r.subTree,_=g&&m2(g);let b=!1;const{getTransitionKey:h}=u.type;if(h){const m=h();o===void 0?o=m:m!==o&&(o=m,b=!0)}if(_&&_.type!==Wn&&(!Qa(u,_)||b)){const m=dd(_,c,n,r);if(ud(_,m),d==="out-in")return n.isLeaving=!0,m.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},Km(a);d==="in-out"&&u.type!==Wn&&(m.delayLeave=(y,v,x)=>{const E=E4(n,_);E[String(_.key)]=_,y._leaveCb=()=>{v(),y._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=x})}return a}}},b6=y6;function E4(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function dd(t,e,r,n){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:g,onLeave:_,onAfterLeave:b,onLeaveCancelled:h,onBeforeAppear:m,onAppear:y,onAfterAppear:v,onAppearCancelled:x}=e,E=String(t.key),T=E4(r,t),C=(R,D)=>{R&&Hn(R,n,9,D)},A=(R,D)=>{const q=D[1];C(R,D),Ye(R)?R.every(H=>H.length<=1)&&q():R.length<=1&&q()},L={mode:i,persisted:a,beforeEnter(R){let D=c;if(!r.isMounted)if(o)D=m||c;else return;R._leaveCb&&R._leaveCb(!0);const q=T[E];q&&Qa(t,q)&&q.el._leaveCb&&q.el._leaveCb(),C(D,[R])},enter(R){let D=d,q=u,H=f;if(!r.isMounted)if(o)D=y||d,q=v||u,H=x||f;else return;let U=!1;const ce=R._enterCb=Ae=>{U||(U=!0,Ae?C(H,[R]):C(q,[R]),L.delayedLeave&&L.delayedLeave(),R._enterCb=void 0)};D?A(D,[R,ce]):ce()},leave(R,D){const q=String(t.key);if(R._enterCb&&R._enterCb(!0),r.isUnmounting)return D();C(g,[R]);let H=!1;const U=R._leaveCb=ce=>{H||(H=!0,D(),ce?C(h,[R]):C(b,[R]),R._leaveCb=void 0,T[q]===t&&delete T[q])};T[q]=t,_?A(_,[R,U]):U()},clone(R){return dd(R,e,r,n)}};return L}function Km(t){if(jp(t))return t=da(t),t.children=null,t}function m2(t){return jp(t)?t.children?t.children[0]:void 0:t}function ud(t,e){t.shapeFlag&6&&t.component?ud(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function My(t,e=!1,r){let n=[],o=0;for(let i=0;i1)for(let i=0;iur({name:t.name},e,{setup:t}))():t}const qc=t=>!!t.type.__asyncLoader,jp=t=>t.type.__isKeepAlive;function x6(t,e){T4(t,"a",e)}function w6(t,e){T4(t,"da",e)}function T4(t,e,r=xr){const n=t.__wdc||(t.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(Hp(e,n,r),r){let o=r.parent;for(;o&&o.parent;)jp(o.parent.vnode)&&E6(n,e,r,o),o=o.parent}}function E6(t,e,r,n){const o=Hp(e,t,n,!0);Hl(()=>{xy(n[e],o)},r)}function Hp(t,e,r=xr,n=!1){if(r){const o=r[t]||(r[t]=[]),i=e.__weh||(e.__weh=(...a)=>{if(r.isUnmounted)return;Vl(),wl(r);const c=Hn(e,r,t,a);return ns(),jl(),c});return n?o.unshift(i):o.push(i),i}}const bi=t=>(e,r=xr)=>(!hd||t==="sp")&&Hp(t,(...n)=>e(...n),r),T6=bi("bm"),mn=bi("m"),k6=bi("bu"),k4=bi("u"),Ho=bi("bum"),Hl=bi("um"),C4=bi("sp"),C6=bi("rtg"),A6=bi("rtc");function S6(t,e=xr){Hp("ec",t,e)}const Dy="components",I6="directives";function Fy(t,e){return zy(Dy,t,!0,e)||t}const A4=Symbol.for("v-ndc");function Ny(t){return ar(t)?zy(Dy,t,!1)||t:t||A4}function ws(t){return zy(I6,t)}function zy(t,e,r=!0,n=!1){const o=$r||xr;if(o){const i=o.type;if(t===Dy){const c=lM(i,!1);if(c&&(c===e||c===Fo(e)||c===Fp(Fo(e))))return i}const a=v2(o[t]||i[t],e)||v2(o.appContext[t],e);return!a&&n?i:a}}function v2(t,e){return t&&(t[e]||t[Fo(e)]||t[Fp(Fo(e))])}function wo(t,e,r,n){let o;const i=r&&r[n];if(Ye(t)||ar(t)){o=new Array(t.length);for(let a=0,c=t.length;ae(a,c,void 0,i&&i[c]));else{const a=Object.keys(t);o=new Array(a.length);for(let c=0,d=a.length;cnp(e)?!(e.type===Wn||e.type===Pt&&!S4(e.children)):!0)?t:null}function $6(t,e){const r={};for(const n in t)r[e&&/[A-Z]/.test(n)?`on:${n}`:Pf(n)]=t[n];return r}const Wv=t=>t?q4(t)?Gp(t)||t.proxy:Wv(t.parent):null,Bc=ur(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Wv(t.parent),$root:t=>Wv(t.root),$emit:t=>t.emit,$options:t=>qy(t),$forceUpdate:t=>t.f||(t.f=()=>Ly(t.update)),$nextTick:t=>t.n||(t.n=ta.bind(t.proxy)),$watch:t=>_6.bind(t)}),Ym=(t,e)=>t!==Zt&&!t.__isScriptSetup&&kt(t,e),O6={get({_:t},e){const{ctx:r,setupState:n,data:o,props:i,accessCache:a,type:c,appContext:d}=t;let u;if(e[0]!=="$"){const b=a[e];if(b!==void 0)switch(b){case 1:return n[e];case 2:return o[e];case 4:return r[e];case 3:return i[e]}else{if(Ym(n,e))return a[e]=1,n[e];if(o!==Zt&&kt(o,e))return a[e]=2,o[e];if((u=t.propsOptions[0])&&kt(u,e))return a[e]=3,i[e];if(r!==Zt&&kt(r,e))return a[e]=4,r[e];Gv&&(a[e]=0)}}const f=Bc[e];let g,_;if(f)return e==="$attrs"&&hn(t,"get",e),f(t);if((g=c.__cssModules)&&(g=g[e]))return g;if(r!==Zt&&kt(r,e))return a[e]=4,r[e];if(_=d.config.globalProperties,kt(_,e))return _[e]},set({_:t},e,r){const{data:n,setupState:o,ctx:i}=t;return Ym(o,e)?(o[e]=r,!0):n!==Zt&&kt(n,e)?(n[e]=r,!0):kt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:o,propsOptions:i}},a){let c;return!!r[a]||t!==Zt&&kt(t,a)||Ym(e,a)||(c=i[0])&&kt(c,a)||kt(n,a)||kt(Bc,a)||kt(o.config.globalProperties,a)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:kt(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function P6(){return R6().slots}function R6(){const t=Wo();return t.setupContext||(t.setupContext=U4(t))}function _2(t){return Ye(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let Gv=!0;function L6(t){const e=qy(t),r=t.proxy,n=t.ctx;Gv=!1,e.beforeCreate&&y2(e.beforeCreate,t,"bc");const{data:o,computed:i,methods:a,watch:c,provide:d,inject:u,created:f,beforeMount:g,mounted:_,beforeUpdate:b,updated:h,activated:m,deactivated:y,beforeDestroy:v,beforeUnmount:x,destroyed:E,unmounted:T,render:C,renderTracked:A,renderTriggered:L,errorCaptured:R,serverPrefetch:D,expose:q,inheritAttrs:H,components:U,directives:ce,filters:Ae}=e;if(u&&M6(u,n,null),a)for(const Ie in a){const Pe=a[Ie];st(Pe)&&(n[Ie]=Pe.bind(r))}if(o){const Ie=o.call(r,r);qt(Ie)&&(t.data=vo(Ie))}if(Gv=!0,i)for(const Ie in i){const Pe=i[Ie],Ce=st(Pe)?Pe.bind(r,r):st(Pe.get)?Pe.get.bind(r,r):ho,de=!st(Pe)&&st(Pe.set)?Pe.set.bind(r):ho,we=St({get:Ce,set:de});Object.defineProperty(n,Ie,{enumerable:!0,configurable:!0,get:()=>we.value,set:ke=>we.value=ke})}if(c)for(const Ie in c)I4(c[Ie],n,r,Ie);if(d){const Ie=st(d)?d.call(r):d;Reflect.ownKeys(Ie).forEach(Pe=>{Uc(Pe,Ie[Pe])})}f&&y2(f,t,"c");function Te(Ie,Pe){Ye(Pe)?Pe.forEach(Ce=>Ie(Ce.bind(r))):Pe&&Ie(Pe.bind(r))}if(Te(T6,g),Te(mn,_),Te(k6,b),Te(k4,h),Te(x6,m),Te(w6,y),Te(S6,R),Te(A6,A),Te(C6,L),Te(Ho,x),Te(Hl,T),Te(C4,D),Ye(q))if(q.length){const Ie=t.exposed||(t.exposed={});q.forEach(Pe=>{Object.defineProperty(Ie,Pe,{get:()=>r[Pe],set:Ce=>r[Pe]=Ce})})}else t.exposed||(t.exposed={});C&&t.render===ho&&(t.render=C),H!=null&&(t.inheritAttrs=H),U&&(t.components=U),ce&&(t.directives=ce)}function M6(t,e,r=ho){Ye(t)&&(t=Qv(t));for(const n in t){const o=t[n];let i;qt(o)?"default"in o?i=rn(o.from||n,o.default,!0):i=rn(o.from||n):i=rn(o),Rt(i)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):e[n]=i}}function y2(t,e,r){Hn(Ye(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function I4(t,e,r,n){const o=n.includes(".")?b4(r,n):()=>r[n];if(ar(t)){const i=e[t];st(i)&&Vt(o,i)}else if(st(t))Vt(o,t.bind(r));else if(qt(t))if(Ye(t))t.forEach(i=>I4(i,e,r,n));else{const i=st(t.handler)?t.handler.bind(r):e[t.handler];st(i)&&Vt(o,i,t)}}function qy(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=t.appContext,c=i.get(e);let d;return c?d=c:!o.length&&!r&&!n?d=e:(d={},o.length&&o.forEach(u=>rp(d,u,a,!0)),rp(d,e,a)),qt(e)&&i.set(e,d),d}function rp(t,e,r,n=!1){const{mixins:o,extends:i}=e;i&&rp(t,i,r,!0),o&&o.forEach(a=>rp(t,a,r,!0));for(const a in e)if(!(n&&a==="expose")){const c=D6[a]||r&&r[a];t[a]=c?c(t[a],e[a]):e[a]}return t}const D6={data:b2,props:x2,emits:x2,methods:Nc,computed:Nc,beforeCreate:Jr,created:Jr,beforeMount:Jr,mounted:Jr,beforeUpdate:Jr,updated:Jr,beforeDestroy:Jr,beforeUnmount:Jr,destroyed:Jr,unmounted:Jr,activated:Jr,deactivated:Jr,errorCaptured:Jr,serverPrefetch:Jr,components:Nc,directives:Nc,watch:N6,provide:b2,inject:F6};function b2(t,e){return e?t?function(){return ur(st(t)?t.call(this,this):t,st(e)?e.call(this,this):e)}:e:t}function F6(t,e){return Nc(Qv(t),Qv(e))}function Qv(t){if(Ye(t)){const e={};for(let r=0;r1)return r&&st(e)?e.call(n&&n.proxy):e}}function B6(){return!!(xr||$r||fd)}function U6(t,e,r,n=!1){const o={},i={};Zf(i,Wp,1),t.propsDefaults=Object.create(null),O4(t,e,o,i);for(const a in t.propsOptions[0])a in o||(o[a]=void 0);r?t.props=n?o:s4(o):t.type.props?t.props=o:t.props=i,t.attrs=i}function V6(t,e,r,n){const{props:o,attrs:i,vnode:{patchFlag:a}}=t,c=yt(o),[d]=t.propsOptions;let u=!1;if((n||a>0)&&!(a&16)){if(a&8){const f=t.vnode.dynamicProps;for(let g=0;g{d=!0;const[_,b]=P4(g,e,!0);ur(a,_),b&&c.push(...b)};!r&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!i&&!d)return qt(t)&&n.set(t,ul),ul;if(Ye(i))for(let f=0;f-1,b[1]=m<0||h-1||kt(b,"default"))&&c.push(g)}}}const u=[a,c];return qt(t)&&n.set(t,u),u}function w2(t){return t[0]!=="$"}function E2(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function T2(t,e){return E2(t)===E2(e)}function k2(t,e){return Ye(e)?e.findIndex(r=>T2(r,t)):st(e)&&T2(e,t)?0:-1}const R4=t=>t[0]==="_"||t==="$stable",By=t=>Ye(t)?t.map(Oo):[Oo(t)],j6=(t,e,r)=>{if(e._n)return e;const n=go((...o)=>By(e(...o)),r);return n._c=!1,n},L4=(t,e,r)=>{const n=t._ctx;for(const o in t){if(R4(o))continue;const i=t[o];if(st(i))e[o]=j6(o,i,n);else if(i!=null){const a=By(i);e[o]=()=>a}}},M4=(t,e)=>{const r=By(e);t.slots.default=()=>r},H6=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=yt(e),Zf(e,"_",r)):L4(e,t.slots={})}else t.slots={},e&&M4(t,e);Zf(t.slots,Wp,1)},W6=(t,e,r)=>{const{vnode:n,slots:o}=t;let i=!0,a=Zt;if(n.shapeFlag&32){const c=e._;c?r&&c===1?i=!1:(ur(o,e),!r&&c===1&&delete o._):(i=!e.$stable,L4(e,o)),a=e}else e&&(M4(t,e),a={default:1});if(i)for(const c in o)!R4(c)&&!(c in a)&&delete o[c]};function Yv(t,e,r,n,o=!1){if(Ye(t)){t.forEach((_,b)=>Yv(_,e&&(Ye(e)?e[b]:e),r,n,o));return}if(qc(n)&&!o)return;const i=n.shapeFlag&4?Gp(n.component)||n.component.proxy:n.el,a=o?null:i,{i:c,r:d}=t,u=e&&e.r,f=c.refs===Zt?c.refs={}:c.refs,g=c.setupState;if(u!=null&&u!==d&&(ar(u)?(f[u]=null,kt(g,u)&&(g[u]=null)):Rt(u)&&(u.value=null)),st(d))sa(d,c,12,[a,f]);else{const _=ar(d),b=Rt(d);if(_||b){const h=()=>{if(t.f){const m=_?kt(g,d)?g[d]:f[d]:d.value;o?Ye(m)&&xy(m,i):Ye(m)?m.includes(i)||m.push(i):_?(f[d]=[i],kt(g,d)&&(g[d]=f[d])):(d.value=[i],t.k&&(f[t.k]=d.value))}else _?(f[d]=a,kt(g,d)&&(g[d]=a)):b&&(d.value=a,t.k&&(f[t.k]=a))};a?(h.id=-1,fn(h,r)):h()}}}const fn=m6;function G6(t){return Q6(t)}function Q6(t,e){const r=Bv();r.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:a,createText:c,createComment:d,setText:u,setElementText:f,parentNode:g,nextSibling:_,setScopeId:b=ho,insertStaticContent:h}=t,m=(M,k,I,N=null,W=null,Y=null,se=!1,ye=null,X=!!k.dynamicChildren)=>{if(M===k)return;M&&!Qa(M,k)&&(N=J(M),ke(M,W,Y,!0),M=null),k.patchFlag===-2&&(X=!1,k.dynamicChildren=null);const{type:ee,ref:fe,shapeFlag:j}=k;switch(ee){case Md:y(M,k,I,N);break;case Wn:v(M,k,I,N);break;case Lf:M==null&&x(k,I,N,se);break;case Pt:U(M,k,I,N,W,Y,se,ye,X);break;default:j&1?C(M,k,I,N,W,Y,se,ye,X):j&6?ce(M,k,I,N,W,Y,se,ye,X):(j&64||j&128)&&ee.process(M,k,I,N,W,Y,se,ye,X,ve)}fe!=null&&W&&Yv(fe,M&&M.ref,Y,k||M,!k)},y=(M,k,I,N)=>{if(M==null)n(k.el=c(k.children),I,N);else{const W=k.el=M.el;k.children!==M.children&&u(W,k.children)}},v=(M,k,I,N)=>{M==null?n(k.el=d(k.children||""),I,N):k.el=M.el},x=(M,k,I,N)=>{[M.el,M.anchor]=h(M.children,k,I,N,M.el,M.anchor)},E=({el:M,anchor:k},I,N)=>{let W;for(;M&&M!==k;)W=_(M),n(M,I,N),M=W;n(k,I,N)},T=({el:M,anchor:k})=>{let I;for(;M&&M!==k;)I=_(M),o(M),M=I;o(k)},C=(M,k,I,N,W,Y,se,ye,X)=>{se=se||k.type==="svg",M==null?A(k,I,N,W,Y,se,ye,X):D(M,k,W,Y,se,ye,X)},A=(M,k,I,N,W,Y,se,ye)=>{let X,ee;const{type:fe,props:j,shapeFlag:z,transition:oe,dirs:be}=M;if(X=M.el=a(M.type,Y,j&&j.is,j),z&8?f(X,M.children):z&16&&R(M.children,X,null,N,W,Y&&fe!=="foreignObject",se,ye),be&&za(M,null,N,"created"),L(X,M,M.scopeId,se,N),j){for(const Ue in j)Ue!=="value"&&!Of(Ue)&&i(X,Ue,null,j[Ue],Y,M.children,N,W,We);"value"in j&&i(X,"value",null,j.value),(ee=j.onVnodeBeforeMount)&&Io(ee,N,M)}be&&za(M,null,N,"beforeMount");const Fe=(!W||W&&!W.pendingBranch)&&oe&&!oe.persisted;Fe&&oe.beforeEnter(X),n(X,k,I),((ee=j&&j.onVnodeMounted)||Fe||be)&&fn(()=>{ee&&Io(ee,N,M),Fe&&oe.enter(X),be&&za(M,null,N,"mounted")},W)},L=(M,k,I,N,W)=>{if(I&&b(M,I),N)for(let Y=0;Y{for(let ee=X;ee{const ye=k.el=M.el;let{patchFlag:X,dynamicChildren:ee,dirs:fe}=k;X|=M.patchFlag&16;const j=M.props||Zt,z=k.props||Zt;let oe;I&&qa(I,!1),(oe=z.onVnodeBeforeUpdate)&&Io(oe,I,k,M),fe&&za(k,M,I,"beforeUpdate"),I&&qa(I,!0);const be=W&&k.type!=="foreignObject";if(ee?q(M.dynamicChildren,ee,ye,I,N,be,Y):se||Pe(M,k,ye,null,I,N,be,Y,!1),X>0){if(X&16)H(ye,k,j,z,I,N,W);else if(X&2&&j.class!==z.class&&i(ye,"class",null,z.class,W),X&4&&i(ye,"style",j.style,z.style,W),X&8){const Fe=k.dynamicProps;for(let Ue=0;Ue{oe&&Io(oe,I,k,M),fe&&za(k,M,I,"updated")},N)},q=(M,k,I,N,W,Y,se)=>{for(let ye=0;ye{if(I!==N){if(I!==Zt)for(const ye in I)!Of(ye)&&!(ye in N)&&i(M,ye,I[ye],null,se,k.children,W,Y,We);for(const ye in N){if(Of(ye))continue;const X=N[ye],ee=I[ye];X!==ee&&ye!=="value"&&i(M,ye,ee,X,se,k.children,W,Y,We)}"value"in N&&i(M,"value",I.value,N.value)}},U=(M,k,I,N,W,Y,se,ye,X)=>{const ee=k.el=M?M.el:c(""),fe=k.anchor=M?M.anchor:c("");let{patchFlag:j,dynamicChildren:z,slotScopeIds:oe}=k;oe&&(ye=ye?ye.concat(oe):oe),M==null?(n(ee,I,N),n(fe,I,N),R(k.children,I,fe,W,Y,se,ye,X)):j>0&&j&64&&z&&M.dynamicChildren?(q(M.dynamicChildren,z,I,W,Y,se,ye),(k.key!=null||W&&k===W.subTree)&&Uy(M,k,!0)):Pe(M,k,I,fe,W,Y,se,ye,X)},ce=(M,k,I,N,W,Y,se,ye,X)=>{k.slotScopeIds=ye,M==null?k.shapeFlag&512?W.ctx.activate(k,I,N,se,X):Ae(k,I,N,W,Y,se,X):Le(M,k,X)},Ae=(M,k,I,N,W,Y,se)=>{const ye=M.component=oM(M,N,W);if(jp(M)&&(ye.ctx.renderer=ve),iM(ye),ye.asyncDep){if(W&&W.registerDep(ye,Te),!M.el){const X=ye.subTree=Be(Wn);v(null,X,k,I)}return}Te(ye,M,k,I,W,Y,se)},Le=(M,k,I)=>{const N=k.component=M.component;if(f6(M,k,I))if(N.asyncDep&&!N.asyncResolved){Ie(N,k,I);return}else N.next=k,a6(N.update),N.update();else k.el=M.el,N.vnode=k},Te=(M,k,I,N,W,Y,se)=>{const ye=()=>{if(M.isMounted){let{next:fe,bu:j,u:z,parent:oe,vnode:be}=M,Fe=fe,Ue;qa(M,!1),fe?(fe.el=be.el,Ie(M,fe,se)):fe=be,j&&Rf(j),(Ue=fe.props&&fe.props.onVnodeBeforeUpdate)&&Io(Ue,oe,fe,be),qa(M,!0);const dt=Qm(M),Gt=M.subTree;M.subTree=dt,m(Gt,dt,g(Gt.el),J(Gt),M,W,Y),fe.el=dt.el,Fe===null&&p6(M,dt.el),z&&fn(z,W),(Ue=fe.props&&fe.props.onVnodeUpdated)&&fn(()=>Io(Ue,oe,fe,be),W)}else{let fe;const{el:j,props:z}=k,{bm:oe,m:be,parent:Fe}=M,Ue=qc(k);if(qa(M,!1),oe&&Rf(oe),!Ue&&(fe=z&&z.onVnodeBeforeMount)&&Io(fe,Fe,k),qa(M,!0),j&&Oe){const dt=()=>{M.subTree=Qm(M),Oe(j,M.subTree,M,W,null)};Ue?k.type.__asyncLoader().then(()=>!M.isUnmounted&&dt()):dt()}else{const dt=M.subTree=Qm(M);m(null,dt,I,N,M,W,Y),k.el=dt.el}if(be&&fn(be,W),!Ue&&(fe=z&&z.onVnodeMounted)){const dt=k;fn(()=>Io(fe,Fe,dt),W)}(k.shapeFlag&256||Fe&&qc(Fe.vnode)&&Fe.vnode.shapeFlag&256)&&M.a&&fn(M.a,W),M.isMounted=!0,k=I=N=null}},X=M.effect=new Ay(ye,()=>Ly(ee),M.scope),ee=M.update=()=>X.run();ee.id=M.uid,qa(M,!0),ee()},Ie=(M,k,I)=>{k.component=M;const N=M.vnode.props;M.vnode=k,M.next=null,V6(M,k.props,N,I),W6(M,k.children,I),Vl(),p2(),jl()},Pe=(M,k,I,N,W,Y,se,ye,X=!1)=>{const ee=M&&M.children,fe=M?M.shapeFlag:0,j=k.children,{patchFlag:z,shapeFlag:oe}=k;if(z>0){if(z&128){de(ee,j,I,N,W,Y,se,ye,X);return}else if(z&256){Ce(ee,j,I,N,W,Y,se,ye,X);return}}oe&8?(fe&16&&We(ee,W,Y),j!==ee&&f(I,j)):fe&16?oe&16?de(ee,j,I,N,W,Y,se,ye,X):We(ee,W,Y,!0):(fe&8&&f(I,""),oe&16&&R(j,I,N,W,Y,se,ye,X))},Ce=(M,k,I,N,W,Y,se,ye,X)=>{M=M||ul,k=k||ul;const ee=M.length,fe=k.length,j=Math.min(ee,fe);let z;for(z=0;zfe?We(M,W,Y,!0,!1,j):R(k,I,N,W,Y,se,ye,X,j)},de=(M,k,I,N,W,Y,se,ye,X)=>{let ee=0;const fe=k.length;let j=M.length-1,z=fe-1;for(;ee<=j&&ee<=z;){const oe=M[ee],be=k[ee]=X?Ki(k[ee]):Oo(k[ee]);if(Qa(oe,be))m(oe,be,I,null,W,Y,se,ye,X);else break;ee++}for(;ee<=j&&ee<=z;){const oe=M[j],be=k[z]=X?Ki(k[z]):Oo(k[z]);if(Qa(oe,be))m(oe,be,I,null,W,Y,se,ye,X);else break;j--,z--}if(ee>j){if(ee<=z){const oe=z+1,be=oez)for(;ee<=j;)ke(M[ee],W,Y,!0),ee++;else{const oe=ee,be=ee,Fe=new Map;for(ee=be;ee<=z;ee++){const _r=k[ee]=X?Ki(k[ee]):Oo(k[ee]);_r.key!=null&&Fe.set(_r.key,ee)}let Ue,dt=0;const Gt=z-be+1;let gr=!1,ko=0;const eo=new Array(Gt);for(ee=0;ee=Gt){ke(_r,W,Y,!0);continue}let Nr;if(_r.key!=null)Nr=Fe.get(_r.key);else for(Ue=be;Ue<=z;Ue++)if(eo[Ue-be]===0&&Qa(_r,k[Ue])){Nr=Ue;break}Nr===void 0?ke(_r,W,Y,!0):(eo[Nr-be]=ee+1,Nr>=ko?ko=Nr:gr=!0,m(_r,k[Nr],I,null,W,Y,se,ye,X),dt++)}const Ii=gr?K6(eo):ul;for(Ue=Ii.length-1,ee=Gt-1;ee>=0;ee--){const _r=be+ee,Nr=k[_r],$i=_r+1{const{el:Y,type:se,transition:ye,children:X,shapeFlag:ee}=M;if(ee&6){we(M.component.subTree,k,I,N);return}if(ee&128){M.suspense.move(k,I,N);return}if(ee&64){se.move(M,k,I,ve);return}if(se===Pt){n(Y,k,I);for(let j=0;jye.enter(Y),W);else{const{leave:j,delayLeave:z,afterLeave:oe}=ye,be=()=>n(Y,k,I),Fe=()=>{j(Y,()=>{be(),oe&&oe()})};z?z(Y,be,Fe):Fe()}else n(Y,k,I)},ke=(M,k,I,N=!1,W=!1)=>{const{type:Y,props:se,ref:ye,children:X,dynamicChildren:ee,shapeFlag:fe,patchFlag:j,dirs:z}=M;if(ye!=null&&Yv(ye,null,I,M,!0),fe&256){k.ctx.deactivate(M);return}const oe=fe&1&&z,be=!qc(M);let Fe;if(be&&(Fe=se&&se.onVnodeBeforeUnmount)&&Io(Fe,k,M),fe&6)ze(M.component,I,N);else{if(fe&128){M.suspense.unmount(I,N);return}oe&&za(M,null,k,"beforeUnmount"),fe&64?M.type.remove(M,k,I,W,ve,N):ee&&(Y!==Pt||j>0&&j&64)?We(ee,k,I,!1,!0):(Y===Pt&&j&384||!W&&fe&16)&&We(X,k,I),N&&Re(M)}(be&&(Fe=se&&se.onVnodeUnmounted)||oe)&&fn(()=>{Fe&&Io(Fe,k,M),oe&&za(M,null,k,"unmounted")},I)},Re=M=>{const{type:k,el:I,anchor:N,transition:W}=M;if(k===Pt){He(I,N);return}if(k===Lf){T(M);return}const Y=()=>{o(I),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(M.shapeFlag&1&&W&&!W.persisted){const{leave:se,delayLeave:ye}=W,X=()=>se(I,Y);ye?ye(M.el,Y,X):X()}else Y()},He=(M,k)=>{let I;for(;M!==k;)I=_(M),o(M),M=I;o(k)},ze=(M,k,I)=>{const{bum:N,scope:W,update:Y,subTree:se,um:ye}=M;N&&Rf(N),W.stop(),Y&&(Y.active=!1,ke(se,M,k,I)),ye&&fn(ye,k),fn(()=>{M.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve())},We=(M,k,I,N=!1,W=!1,Y=0)=>{for(let se=Y;seM.shapeFlag&6?J(M.component.subTree):M.shapeFlag&128?M.suspense.next():_(M.anchor||M.el),me=(M,k,I)=>{M==null?k._vnode&&ke(k._vnode,null,null,!0):m(k._vnode||null,M,k,null,null,null,I),p2(),g4(),k._vnode=M},ve={p:m,um:ke,m:we,r:Re,mt:Ae,mc:R,pc:Pe,pbc:q,n:J,o:t};let $e,Oe;return e&&([$e,Oe]=e(ve)),{render:me,hydrate:$e,createApp:q6(me,$e)}}function qa({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function Uy(t,e,r=!1){const n=t.children,o=e.children;if(Ye(n)&&Ye(o))for(let i=0;i>1,t[r[c]]0&&(e[n]=r[i-1]),r[i]=n)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=e[a];return r}const Y6=t=>t.__isTeleport,Vc=t=>t&&(t.disabled||t.disabled===""),C2=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Zv=(t,e)=>{const r=t&&t.to;return ar(r)?e?e(r):null:r},Z6={__isTeleport:!0,process(t,e,r,n,o,i,a,c,d,u){const{mc:f,pc:g,pbc:_,o:{insert:b,querySelector:h,createText:m,createComment:y}}=u,v=Vc(e.props);let{shapeFlag:x,children:E,dynamicChildren:T}=e;if(t==null){const C=e.el=m(""),A=e.anchor=m("");b(C,r,n),b(A,r,n);const L=e.target=Zv(e.props,h),R=e.targetAnchor=m("");L&&(b(R,L),a=a||C2(L));const D=(q,H)=>{x&16&&f(E,q,H,o,i,a,c,d)};v?D(r,A):L&&D(L,R)}else{e.el=t.el;const C=e.anchor=t.anchor,A=e.target=t.target,L=e.targetAnchor=t.targetAnchor,R=Vc(t.props),D=R?r:A,q=R?C:L;if(a=a||C2(A),T?(_(t.dynamicChildren,T,D,o,i,a,c),Uy(t,e,!0)):d||g(t,e,D,q,o,i,a,c,!1),v)R||vf(e,r,C,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const H=e.target=Zv(e.props,h);H&&vf(e,H,null,u,0)}else R&&vf(e,A,L,u,1)}D4(e)},remove(t,e,r,n,{um:o,o:{remove:i}},a){const{shapeFlag:c,children:d,anchor:u,targetAnchor:f,target:g,props:_}=t;if(g&&i(f),(a||!Vc(_))&&(i(u),c&16))for(let b=0;b0?co||ul:null,J6(),pd>0&&co&&co.push(t),t}function ie(t,e,r,n,o,i){return F4(V(t,e,r,n,o,i,!0))}function Hr(t,e,r,n,o){return F4(Be(t,e,r,n,o,!0))}function np(t){return t?t.__v_isVNode===!0:!1}function Qa(t,e){return t.type===e.type&&t.key===e.key}const Wp="__vInternal",N4=({key:t})=>t??null,Mf=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?ar(t)||Rt(t)||st(t)?{i:$r,r:t,k:e,f:!!r}:t:null);function V(t,e=null,r=null,n=0,o=null,i=t===Pt?0:1,a=!1,c=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&N4(e),ref:e&&Mf(e),scopeId:Up,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:$r};return c?(jy(d,r),i&128&&t.normalize(d)):r&&(d.shapeFlag|=ar(r)?8:16),pd>0&&!a&&co&&(d.patchFlag>0||i&6)&&d.patchFlag!==32&&co.push(d),d}const Be=eM;function eM(t,e=null,r=null,n=0,o=null,i=!1){if((!t||t===A4)&&(t=Wn),np(t)){const c=da(t,e,!0);return r&&jy(c,r),pd>0&&!i&&co&&(c.shapeFlag&6?co[co.indexOf(t)]=c:co.push(c)),c.patchFlag|=-2,c}if(cM(t)&&(t=t.__vccOpts),e){e=tM(e);let{class:c,style:d}=e;c&&!ar(c)&&(e.class=Vn(c)),qt(d)&&(c4(d)&&!Ye(d)&&(d=ur({},d)),e.style=bl(d))}const a=ar(t)?1:h6(t)?128:Y6(t)?64:qt(t)?4:st(t)?2:0;return V(t,e,r,n,o,a,i,!0)}function tM(t){return t?c4(t)||Wp in t?ur({},t):t:null}function da(t,e,r=!1){const{props:n,ref:o,patchFlag:i,children:a}=t,c=e?z4(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&N4(c),ref:e&&e.ref?r&&o?Ye(o)?o.concat(Mf(e)):[o,Mf(e)]:Mf(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Pt?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&da(t.ssContent),ssFallback:t.ssFallback&&da(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Lo(t=" ",e=0){return Be(Md,null,t,e)}function Tt(t="",e=!1){return e?(te(),Hr(Wn,null,t)):Be(Wn,null,t)}function Oo(t){return t==null||typeof t=="boolean"?Be(Wn):Ye(t)?Be(Pt,null,t.slice()):typeof t=="object"?Ki(t):Be(Md,null,String(t))}function Ki(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:da(t)}function jy(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(Ye(e))r=16;else if(typeof e=="object")if(n&65){const o=e.default;o&&(o._c&&(o._d=!1),jy(t,o()),o._c&&(o._d=!0));return}else{r=32;const o=e._;!o&&!(Wp in e)?e._ctx=$r:o===3&&$r&&($r.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else st(e)?(e={default:e,_ctx:$r},r=32):(e=String(e),n&64?(r=16,e=[Lo(e)]):r=8);t.children=e,t.shapeFlag|=r}function z4(...t){const e={};for(let r=0;rxr||$r;let Hy,Gs,S2="__VUE_INSTANCE_SETTERS__";(Gs=Bv()[S2])||(Gs=Bv()[S2]=[]),Gs.push(t=>xr=t),Hy=t=>{Gs.length>1?Gs.forEach(e=>e(t)):Gs[0](t)};const wl=t=>{Hy(t),t.scope.on()},ns=()=>{xr&&xr.scope.off(),Hy(null)};function q4(t){return t.vnode.shapeFlag&4}let hd=!1;function iM(t,e=!1){hd=e;const{props:r,children:n}=t.vnode,o=q4(t);U6(t,r,o,e),H6(t,n);const i=o?aM(t,e):void 0;return hd=!1,i}function aM(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=Ld(new Proxy(t.ctx,O6));const{setup:n}=r;if(n){const o=t.setupContext=n.length>1?U4(t):null;wl(t),Vl();const i=sa(n,t,0,[t.props,o]);if(jl(),ns(),HT(i)){if(i.then(ns,ns),e)return i.then(a=>{I2(t,a,e)}).catch(a=>{qp(a,t,0)});t.asyncDep=i}else I2(t,i,e)}else B4(t,e)}function I2(t,e,r){st(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:qt(e)&&(t.setupState=p4(e)),B4(t,r)}let $2;function B4(t,e,r){const n=t.type;if(!t.render){if(!e&&$2&&!n.render){const o=n.template||qy(t).template;if(o){const{isCustomElement:i,compilerOptions:a}=t.appContext.config,{delimiters:c,compilerOptions:d}=n,u=ur(ur({isCustomElement:i,delimiters:c},a),d);n.render=$2(o,u)}}t.render=n.render||ho}wl(t),Vl(),L6(t),jl(),ns()}function sM(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return hn(t,"get","$attrs"),e[r]}}))}function U4(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return sM(t)},slots:t.slots,emit:t.emit,expose:e}}function Gp(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(p4(Ld(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Bc)return Bc[r](t)},has(e,r){return r in e||r in Bc}}))}function lM(t,e=!0){return st(t)?t.displayName||t.name:t.name||e&&t.__name}function cM(t){return st(t)&&"__vccOpts"in t}const St=(t,e)=>n6(t,e,hd);function No(t,e,r){const n=arguments.length;return n===2?qt(e)&&!Ye(e)?np(e)?Be(t,null,[e]):Be(t,e):Be(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&np(r)&&(r=[r]),Be(t,e,r))}const dM=Symbol.for("v-scx"),uM=()=>rn(dM),fM="3.3.4",pM="http://www.w3.org/2000/svg",Ka=typeof document<"u"?document:null,O2=Ka&&Ka.createElement("template"),hM={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const o=e?Ka.createElementNS(pM,t):Ka.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:t=>Ka.createTextNode(t),createComment:t=>Ka.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ka.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,o,i){const a=r?r.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),r),!(o===i||!(o=o.nextSibling)););else{O2.innerHTML=n?`${t}`:t;const c=O2.content;if(n){const d=c.firstChild;for(;d.firstChild;)c.appendChild(d.firstChild);c.removeChild(d)}e.insertBefore(c,r)}return[a?a.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function mM(t,e,r){const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function vM(t,e,r){const n=t.style,o=ar(r);if(r&&!o){if(e&&!ar(e))for(const i in e)r[i]==null&&Xv(n,i,"");for(const i in r)Xv(n,i,r[i])}else{const i=n.display;o?e!==r&&(n.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(n.display=i)}}const P2=/\s*!important$/;function Xv(t,e,r){if(Ye(r))r.forEach(n=>Xv(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=gM(t,e);P2.test(r)?t.setProperty(xs(n),r.replace(P2,""),"important"):t[n]=r}}const R2=["Webkit","Moz","ms"],Zm={};function gM(t,e){const r=Zm[e];if(r)return r;let n=Fo(e);if(n!=="filter"&&n in t)return Zm[e]=n;n=Fp(n);for(let o=0;oXm||(EM.then(()=>Xm=0),Xm=Date.now());function kM(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Hn(CM(n,r.value),e,5,[n])};return r.value=t,r.attached=TM(),r}function CM(t,e){if(Ye(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>o=>!o._stopped&&n&&n(o))}else return e}const D2=/^on[a-z]/,AM=(t,e,r,n,o=!1,i,a,c,d)=>{e==="class"?mM(t,n,o):e==="style"?vM(t,r,n):Mp(e)?by(e)||xM(t,e,r,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):SM(t,e,n,o))?yM(t,e,n,i,a,c,d):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),_M(t,e,n,o))};function SM(t,e,r,n){return n?!!(e==="innerHTML"||e==="textContent"||e in t&&D2.test(e)&&st(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||D2.test(e)&&ar(r)?!1:e in t}function IM(t){const e=Wo();if(!e)return;const r=e.ut=(o=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(i=>eg(i,o))},n=()=>{const o=t(e.proxy);Jv(e.subTree,o),r(o)};g6(n),mn(()=>{const o=new MutationObserver(n);o.observe(e.subTree.el.parentNode,{childList:!0}),Hl(()=>o.disconnect())})}function Jv(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Jv(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)eg(t.el,e);else if(t.type===Pt)t.children.forEach(r=>Jv(r,e));else if(t.type===Lf){let{el:r,anchor:n}=t;for(;r&&(eg(r,e),r!==n);)r=r.nextSibling}}function eg(t,e){if(t.nodeType===1){const r=t.style;for(const n in e)r.setProperty(`--${n}`,e[n])}}const Bi="transition",Tc="animation",md=(t,{slots:e})=>No(b6,j4(t),e);md.displayName="Transition";const V4={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$M=md.props=ur({},w4,V4),Ba=(t,e=[])=>{Ye(t)?t.forEach(r=>r(...e)):t&&t(...e)},F2=t=>t?Ye(t)?t.some(e=>e.length>1):t.length>1:!1;function j4(t){const e={};for(const U in t)U in V4||(e[U]=t[U]);if(t.css===!1)return e;const{name:r="v",type:n,duration:o,enterFromClass:i=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:c=`${r}-enter-to`,appearFromClass:d=i,appearActiveClass:u=a,appearToClass:f=c,leaveFromClass:g=`${r}-leave-from`,leaveActiveClass:_=`${r}-leave-active`,leaveToClass:b=`${r}-leave-to`}=t,h=OM(o),m=h&&h[0],y=h&&h[1],{onBeforeEnter:v,onEnter:x,onEnterCancelled:E,onLeave:T,onLeaveCancelled:C,onBeforeAppear:A=v,onAppear:L=x,onAppearCancelled:R=E}=e,D=(U,ce,Ae)=>{Wi(U,ce?f:c),Wi(U,ce?u:a),Ae&&Ae()},q=(U,ce)=>{U._isLeaving=!1,Wi(U,g),Wi(U,b),Wi(U,_),ce&&ce()},H=U=>(ce,Ae)=>{const Le=U?L:x,Te=()=>D(ce,U,Ae);Ba(Le,[ce,Te]),N2(()=>{Wi(ce,U?d:i),si(ce,U?f:c),F2(Le)||z2(ce,n,m,Te)})};return ur(e,{onBeforeEnter(U){Ba(v,[U]),si(U,i),si(U,a)},onBeforeAppear(U){Ba(A,[U]),si(U,d),si(U,u)},onEnter:H(!1),onAppear:H(!0),onLeave(U,ce){U._isLeaving=!0;const Ae=()=>q(U,ce);si(U,g),W4(),si(U,_),N2(()=>{U._isLeaving&&(Wi(U,g),si(U,b),F2(T)||z2(U,n,y,Ae))}),Ba(T,[U,Ae])},onEnterCancelled(U){D(U,!1),Ba(E,[U])},onAppearCancelled(U){D(U,!0),Ba(R,[U])},onLeaveCancelled(U){q(U),Ba(C,[U])}})}function OM(t){if(t==null)return null;if(qt(t))return[Jm(t.enter),Jm(t.leave)];{const e=Jm(t);return[e,e]}}function Jm(t){return pL(t)}function si(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(e)}function Wi(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const{_vtc:r}=t;r&&(r.delete(e),r.size||(t._vtc=void 0))}function N2(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let PM=0;function z2(t,e,r,n){const o=t._endId=++PM,i=()=>{o===t._endId&&n()};if(r)return setTimeout(i,r);const{type:a,timeout:c,propCount:d}=H4(t,e);if(!a)return n();const u=a+"end";let f=0;const g=()=>{t.removeEventListener(u,_),i()},_=b=>{b.target===t&&++f>=d&&g()};setTimeout(()=>{f(r[h]||"").split(", "),o=n(`${Bi}Delay`),i=n(`${Bi}Duration`),a=q2(o,i),c=n(`${Tc}Delay`),d=n(`${Tc}Duration`),u=q2(c,d);let f=null,g=0,_=0;e===Bi?a>0&&(f=Bi,g=a,_=i.length):e===Tc?u>0&&(f=Tc,g=u,_=d.length):(g=Math.max(a,u),f=g>0?a>u?Bi:Tc:null,_=f?f===Bi?i.length:d.length:0);const b=f===Bi&&/\b(transform|all)(,|$)/.test(n(`${Bi}Property`).toString());return{type:f,timeout:g,propCount:_,hasTransform:b}}function q2(t,e){for(;t.lengthB2(r)+B2(t[n])))}function B2(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function W4(){return document.body.offsetHeight}const G4=new WeakMap,Q4=new WeakMap,K4={name:"TransitionGroup",props:ur({},$M,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=Wo(),n=x4();let o,i;return k4(()=>{if(!o.length)return;const a=t.moveClass||`${t.name||"v"}-move`;if(!NM(o[0].el,r.vnode.el,a))return;o.forEach(MM),o.forEach(DM);const c=o.filter(FM);W4(),c.forEach(d=>{const u=d.el,f=u.style;si(u,a),f.transform=f.webkitTransform=f.transitionDuration="";const g=u._moveCb=_=>{_&&_.target!==u||(!_||/transform$/.test(_.propertyName))&&(u.removeEventListener("transitionend",g),u._moveCb=null,Wi(u,a))};u.addEventListener("transitionend",g)})}),()=>{const a=yt(t),c=j4(a);let d=a.tag||Pt;o=i,i=e.default?My(e.default()):[];for(let u=0;udelete t.mode;K4.props;const LM=K4;function MM(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function DM(t){Q4.set(t,t.el.getBoundingClientRect())}function FM(t){const e=G4.get(t),r=Q4.get(t),n=e.left-r.left,o=e.top-r.top;if(n||o){const i=t.el.style;return i.transform=i.webkitTransform=`translate(${n}px,${o}px)`,i.transitionDuration="0s",t}}function NM(t,e,r){const n=t.cloneNode();t._vtc&&t._vtc.forEach(a=>{a.split(/\s+/).forEach(c=>c&&n.classList.remove(c))}),r.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(n);const{hasTransform:i}=H4(n);return o.removeChild(n),i}const ua=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Ye(e)?r=>Rf(e,r):e};function zM(t){t.target.composing=!0}function U2(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const tg={created(t,{modifiers:{lazy:e,trim:r,number:n}},o){t._assign=ua(o);const i=n||o.props&&o.props.type==="number";di(t,e?"change":"input",a=>{if(a.target.composing)return;let c=t.value;r&&(c=c.trim()),i&&(c=Xf(c)),t._assign(c)}),r&&di(t,"change",()=>{t.value=t.value.trim()}),e||(di(t,"compositionstart",zM),di(t,"compositionend",U2),di(t,"change",U2))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:n,number:o}},i){if(t._assign=ua(i),t.composing||document.activeElement===t&&t.type!=="range"&&(r||n&&t.value.trim()===e||(o||t.type==="number")&&Xf(t.value)===e))return;const a=e??"";t.value!==a&&(t.value=a)}},qM={deep:!0,created(t,e,r){t._assign=ua(r),di(t,"change",()=>{const n=t._modelValue,o=El(t),i=t.checked,a=t._assign;if(Ye(n)){const c=Ey(n,o),d=c!==-1;if(i&&!d)a(n.concat(o));else if(!i&&d){const u=[...n];u.splice(c,1),a(u)}}else if(Ul(n)){const c=new Set(n);i?c.add(o):c.delete(o),a(c)}else a(Y4(t,i))})},mounted:V2,beforeUpdate(t,e,r){t._assign=ua(r),V2(t,e,r)}};function V2(t,{value:e,oldValue:r},n){t._modelValue=e,Ye(e)?t.checked=Ey(e,n.props.value)>-1:Ul(e)?t.checked=e.has(n.props.value):e!==r&&(t.checked=fs(e,Y4(t,!0)))}const BM={created(t,{value:e},r){t.checked=fs(e,r.props.value),t._assign=ua(r),di(t,"change",()=>{t._assign(El(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t._assign=ua(n),e!==r&&(t.checked=fs(e,n.props.value))}},UM={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const o=Ul(e);di(t,"change",()=>{const i=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>r?Xf(El(a)):El(a));t._assign(t.multiple?o?new Set(i):i:i[0])}),t._assign=ua(n)},mounted(t,{value:e}){j2(t,e)},beforeUpdate(t,e,r){t._assign=ua(r)},updated(t,{value:e}){j2(t,e)}};function j2(t,e){const r=t.multiple;if(!(r&&!Ye(e)&&!Ul(e))){for(let n=0,o=t.options.length;n-1:i.selected=e.has(a);else if(fs(El(i),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function El(t){return"_value"in t?t._value:t.value}function Y4(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const lve={created(t,e,r){gf(t,e,r,null,"created")},mounted(t,e,r){gf(t,e,r,null,"mounted")},beforeUpdate(t,e,r,n){gf(t,e,r,n,"beforeUpdate")},updated(t,e,r,n){gf(t,e,r,n,"updated")}};function VM(t,e){switch(t){case"SELECT":return UM;case"TEXTAREA":return tg;default:switch(e){case"checkbox":return qM;case"radio":return BM;default:return tg}}}function gf(t,e,r,n,o){const a=VM(t.tagName,r.props&&r.props.type)[o];a&&a(t,e,r,n)}const jM=["ctrl","shift","alt","meta"],HM={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>jM.some(r=>t[`${r}Key`]&&!e.includes(r))},Ot=(t,e)=>(r,...n)=>{for(let o=0;or=>{if(!("key"in r))return;const n=xs(r.key);if(e.some(o=>o===n||WM[o]===n))return t(r)},uo={beforeMount(t,{value:e},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):kc(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),kc(t,!0),n.enter(t)):n.leave(t,()=>{kc(t,!1)}):kc(t,e))},beforeUnmount(t,{value:e}){kc(t,e)}};function kc(t,e){t.style.display=e?t._vod:"none"}const GM=ur({patchProp:AM},hM);let H2;function Z4(){return H2||(H2=G6(GM))}const rg=(...t)=>{Z4().render(...t)},QM=(...t)=>{const e=Z4().createApp(...t),{mount:r}=e;return e.mount=n=>{const o=KM(n);if(!o)return;const i=e._component;!st(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=r(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},e};function KM(t){return ar(t)?document.querySelector(t):t}var YM=!1;function X4(t,e,r){var n=r||{},o=n.noTrailing,i=o===void 0?!1:o,a=n.noLeading,c=a===void 0?!1:a,d=n.debounceMode,u=d===void 0?void 0:d,f,g=!1,_=0;function b(){f&&clearTimeout(f)}function h(y){var v=y||{},x=v.upcomingOnly,E=x===void 0?!1:x;b(),g=!E}function m(){for(var y=arguments.length,v=new Array(y),x=0;xt?c?(_=Date.now(),i||(f=setTimeout(u?A:C,t))):C():i!==!0&&(f=setTimeout(u?A:C,u===void 0?t-T:t))}return m.cancel=h,m}function ZM(t,e,r){var n=r||{},o=n.atBegin,i=o===void 0?!1:o;return X4(t,e,{debounceMode:i!==!1})}var ng=function(t,e){return ng=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},ng(t,e)};function Go(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ng(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var re=function(){return re=Object.assign||function(e){for(var r,n=1,o=arguments.length;n=0;c--)(a=t[c])&&(i=(o<3?a(i):o>3?a(e,r,i):a(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i}function Yi(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function c(f){try{u(n.next(f))}catch(g){a(g)}}function d(f){try{u(n.throw(f))}catch(g){a(g)}}function u(f){f.done?i(f.value):o(f.value).then(c,d)}u((n=n.apply(t,e||[])).next())})}function Zi(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(u){return function(f){return d([u,f])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(r=0)),r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=JM){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=_f("debug"),t.log=_f("log"),t.warn=_f("warn"),t.error=_f("error")})(Ya||(Ya={}));var Wy="3.8.5";function so(t){try{return t()}catch{}}const G2=so(function(){return globalThis})||so(function(){return window})||so(function(){return self})||so(function(){return global})||so(function(){return so.constructor("return this")()});var Q2=new Map;function og(t){var e=Q2.get(t)||1;return Q2.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function tk(t,e){e===void 0&&(e=0);var r=og("stringifyForDisplay");return JSON.stringify(t,function(n,o){return o===void 0?r:o},e).split(JSON.stringify(r)).join("")}function yf(t){return function(e){for(var r=[],n=1;n=e)break;r=o.index+o[0].length,n+=1}return{line:n,column:e+1-r}}function nD(t){return nk(t.source,ig(t.source,t.start))}function nk(t,e){const r=t.locationOffset.column-1,n="".padStart(r)+t.body,o=e.line-1,i=t.locationOffset.line-1,a=e.line+i,c=e.line===1?r:0,d=e.column+c,u=`${t.name}:${a}:${d} +var oL=Object.defineProperty;var iL=(t,e,r)=>e in t?oL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var kr=(t,e,r)=>(iL(t,typeof e!="symbol"?e+"":e,r),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();function yy(t,e){const r=Object.create(null),n=t.split(",");for(let o=0;o!!r[o.toLowerCase()]:o=>!!r[o]}const Zt={},ul=[],ho=()=>{},aL=()=>!1,sL=/^on[^a-z]/,Mp=t=>sL.test(t),by=t=>t.startsWith("onUpdate:"),ur=Object.assign,xy=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},lL=Object.prototype.hasOwnProperty,kt=(t,e)=>lL.call(t,e),Ye=Array.isArray,fl=t=>Rd(t)==="[object Map]",Ul=t=>Rd(t)==="[object Set]",o2=t=>Rd(t)==="[object Date]",st=t=>typeof t=="function",ar=t=>typeof t=="string",id=t=>typeof t=="symbol",qt=t=>t!==null&&typeof t=="object",jT=t=>qt(t)&&st(t.then)&&st(t.catch),HT=Object.prototype.toString,Rd=t=>HT.call(t),cL=t=>Rd(t).slice(8,-1),WT=t=>Rd(t)==="[object Object]",wy=t=>ar(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Of=yy(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Dp=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},dL=/-(\w)/g,Fo=Dp(t=>t.replace(dL,(e,r)=>r?r.toUpperCase():"")),uL=/\B([A-Z])/g,xs=Dp(t=>t.replace(uL,"-$1").toLowerCase()),Fp=Dp(t=>t.charAt(0).toUpperCase()+t.slice(1)),Pf=Dp(t=>t?`on${Fp(t)}`:""),ad=(t,e)=>!Object.is(t,e),Rf=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},Xf=t=>{const e=parseFloat(t);return isNaN(e)?t:e},fL=t=>{const e=ar(t)?Number(t):NaN;return isNaN(e)?t:e};let i2;const Bv=()=>i2||(i2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bl(t){if(Ye(t)){const e={};for(let r=0;r{if(r){const n=r.split(hL);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Vn(t){let e="";if(ar(t))e=t;else if(Ye(t))for(let r=0;rfs(r,e))}const Ne=t=>ar(t)?t:t==null?"":Ye(t)||qt(t)&&(t.toString===HT||!st(t.toString))?JSON.stringify(t,QT,2):String(t),QT=(t,e)=>e&&e.__v_isRef?QT(t,e.value):fl(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,o])=>(r[`${n} =>`]=o,r),{})}:Ul(e)?{[`Set(${e.size})`]:[...e.values()]}:qt(e)&&!Ye(e)&&!WT(e)?String(e):e;let Tn;class KT{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Tn,!e&&Tn&&(this.index=(Tn.scopes||(Tn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=Tn;try{return Tn=this,e()}finally{Tn=r}}}on(){Tn=this}off(){Tn=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r{const e=new Set(t);return e.w=0,e.n=0,e},YT=t=>(t.w&ca)>0,ZT=t=>(t.n&ca)>0,wL=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let r=0;for(let n=0;n{(f==="length"||f>=d)&&c.push(u)})}else switch(r!==void 0&&c.push(a.get(r)),e){case"add":Ye(t)?wy(r)&&c.push(a.get("length")):(c.push(a.get(rs)),fl(t)&&c.push(a.get(Vv)));break;case"delete":Ye(t)||(c.push(a.get(rs)),fl(t)&&c.push(a.get(Vv)));break;case"set":fl(t)&&c.push(a.get(rs));break}if(c.length===1)c[0]&&jv(c[0]);else{const d=[];for(const u of c)u&&d.push(...u);jv(Cy(d))}}function jv(t,e){const r=Ye(t)?t:[...t];for(const n of r)n.computed&&s2(n);for(const n of r)n.computed||s2(n)}function s2(t,e){(t!==lo||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function TL(t,e){var r;return(r=Jf.get(t))==null?void 0:r.get(e)}const kL=yy("__proto__,__v_isRef,__isVue"),e4=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(id)),CL=Sy(),AL=Sy(!1,!0),SL=Sy(!0),l2=IL();function IL(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=yt(this);for(let i=0,a=this.length;i{t[e]=function(...r){Vl();const n=yt(this)[e].apply(this,r);return jl(),n}}),t}function $L(t){const e=yt(this);return hn(e,"has",t),e.hasOwnProperty(t)}function Sy(t=!1,e=!1){return function(n,o,i){if(o==="__v_isReactive")return!t;if(o==="__v_isReadonly")return t;if(o==="__v_isShallow")return e;if(o==="__v_raw"&&i===(t?e?WL:i4:e?o4:n4).get(n))return n;const a=Ye(n);if(!t){if(a&&kt(l2,o))return Reflect.get(l2,o,i);if(o==="hasOwnProperty")return $L}const c=Reflect.get(n,o,i);return(id(o)?e4.has(o):kL(o))||(t||hn(n,"get",o),e)?c:Rt(c)?a&&wy(o)?c:c.value:qt(c)?t?s4(c):vo(c):c}}const OL=t4(),PL=t4(!0);function t4(t=!1){return function(r,n,o,i){let a=r[n];if(xl(a)&&Rt(a)&&!Rt(o))return!1;if(!t&&(!ep(o)&&!xl(o)&&(a=yt(a),o=yt(o)),!Ye(r)&&Rt(a)&&!Rt(o)))return a.value=o,!0;const c=Ye(r)&&wy(n)?Number(n)t,Np=t=>Reflect.getPrototypeOf(t);function df(t,e,r=!1,n=!1){t=t.__v_raw;const o=yt(t),i=yt(e);r||(e!==i&&hn(o,"get",e),hn(o,"get",i));const{has:a}=Np(o),c=n?Iy:r?Py:sd;if(a.call(o,e))return c(t.get(e));if(a.call(o,i))return c(t.get(i));t!==o&&t.get(e)}function uf(t,e=!1){const r=this.__v_raw,n=yt(r),o=yt(t);return e||(t!==o&&hn(n,"has",t),hn(n,"has",o)),t===o?r.has(t):r.has(t)||r.has(o)}function ff(t,e=!1){return t=t.__v_raw,!e&&hn(yt(t),"iterate",rs),Reflect.get(t,"size",t)}function c2(t){t=yt(t);const e=yt(this);return Np(e).has.call(e,t)||(e.add(t),mi(e,"add",t,t)),this}function d2(t,e){e=yt(e);const r=yt(this),{has:n,get:o}=Np(r);let i=n.call(r,t);i||(t=yt(t),i=n.call(r,t));const a=o.call(r,t);return r.set(t,e),i?ad(e,a)&&mi(r,"set",t,e):mi(r,"add",t,e),this}function u2(t){const e=yt(this),{has:r,get:n}=Np(e);let o=r.call(e,t);o||(t=yt(t),o=r.call(e,t)),n&&n.call(e,t);const i=e.delete(t);return o&&mi(e,"delete",t,void 0),i}function f2(){const t=yt(this),e=t.size!==0,r=t.clear();return e&&mi(t,"clear",void 0,void 0),r}function pf(t,e){return function(n,o){const i=this,a=i.__v_raw,c=yt(a),d=e?Iy:t?Py:sd;return!t&&hn(c,"iterate",rs),a.forEach((u,f)=>n.call(o,d(u),d(f),i))}}function hf(t,e,r){return function(...n){const o=this.__v_raw,i=yt(o),a=fl(i),c=t==="entries"||t===Symbol.iterator&&a,d=t==="keys"&&a,u=o[t](...n),f=r?Iy:e?Py:sd;return!e&&hn(i,"iterate",d?Vv:rs),{next(){const{value:g,done:_}=u.next();return _?{value:g,done:_}:{value:c?[f(g[0]),f(g[1])]:f(g),done:_}},[Symbol.iterator](){return this}}}}function qi(t){return function(...e){return t==="delete"?!1:this}}function NL(){const t={get(i){return df(this,i)},get size(){return ff(this)},has:uf,add:c2,set:d2,delete:u2,clear:f2,forEach:pf(!1,!1)},e={get(i){return df(this,i,!1,!0)},get size(){return ff(this)},has:uf,add:c2,set:d2,delete:u2,clear:f2,forEach:pf(!1,!0)},r={get(i){return df(this,i,!0)},get size(){return ff(this,!0)},has(i){return uf.call(this,i,!0)},add:qi("add"),set:qi("set"),delete:qi("delete"),clear:qi("clear"),forEach:pf(!0,!1)},n={get(i){return df(this,i,!0,!0)},get size(){return ff(this,!0)},has(i){return uf.call(this,i,!0)},add:qi("add"),set:qi("set"),delete:qi("delete"),clear:qi("clear"),forEach:pf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=hf(i,!1,!1),r[i]=hf(i,!0,!1),e[i]=hf(i,!1,!0),n[i]=hf(i,!0,!0)}),[t,r,e,n]}const[zL,qL,BL,UL]=NL();function $y(t,e){const r=e?t?UL:BL:t?qL:zL;return(n,o,i)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?n:Reflect.get(kt(r,o)&&o in n?r:n,o,i)}const VL={get:$y(!1,!1)},jL={get:$y(!1,!0)},HL={get:$y(!0,!1)},n4=new WeakMap,o4=new WeakMap,i4=new WeakMap,WL=new WeakMap;function GL(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function QL(t){return t.__v_skip||!Object.isExtensible(t)?0:GL(cL(t))}function vo(t){return xl(t)?t:Oy(t,!1,r4,VL,n4)}function a4(t){return Oy(t,!1,FL,jL,o4)}function s4(t){return Oy(t,!0,DL,HL,i4)}function Oy(t,e,r,n,o){if(!qt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=o.get(t);if(i)return i;const a=QL(t);if(a===0)return t;const c=new Proxy(t,a===2?n:r);return o.set(t,c),c}function fi(t){return xl(t)?fi(t.__v_raw):!!(t&&t.__v_isReactive)}function xl(t){return!!(t&&t.__v_isReadonly)}function ep(t){return!!(t&&t.__v_isShallow)}function l4(t){return fi(t)||xl(t)}function yt(t){const e=t&&t.__v_raw;return e?yt(e):t}function Ld(t){return Zf(t,"__v_skip",!0),t}const sd=t=>qt(t)?vo(t):t,Py=t=>qt(t)?s4(t):t;function c4(t){aa&&lo&&(t=yt(t),JT(t.dep||(t.dep=Cy())))}function d4(t,e){t=yt(t);const r=t.dep;r&&jv(r)}function Rt(t){return!!(t&&t.__v_isRef===!0)}function Se(t){return u4(t,!1)}function KL(t){return u4(t,!0)}function u4(t,e){return Rt(t)?t:new YL(t,e)}class YL{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:yt(e),this._value=r?e:sd(e)}get value(){return c4(this),this._value}set value(e){const r=this.__v_isShallow||ep(e)||xl(e);e=r?e:yt(e),ad(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:sd(e),d4(this))}}function he(t){return Rt(t)?t.value:t}function ave(t){return st(t)?t():he(t)}const ZL={get:(t,e,r)=>he(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const o=t[e];return Rt(o)&&!Rt(r)?(o.value=r,!0):Reflect.set(t,e,r,n)}};function f4(t){return fi(t)?t:new Proxy(t,ZL)}function zp(t){const e=Ye(t)?new Array(t.length):{};for(const r in t)e[r]=p4(t,r);return e}class XL{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return TL(yt(this._object),this._key)}}class JL{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function e6(t,e,r){return Rt(t)?t:st(t)?new JL(t):qt(t)&&arguments.length>1?p4(t,e,r):Se(t)}function p4(t,e,r){const n=t[e];return Rt(n)?n:new XL(t,e,r)}class t6{constructor(e,r,n,o){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ay(e,()=>{this._dirty||(this._dirty=!0,d4(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=yt(this);return c4(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function r6(t,e,r=!1){let n,o;const i=st(t);return i?(n=t,o=ho):(n=t.get,o=t.set),new t6(n,o,i||!o,r)}function sa(t,e,r,n){let o;try{o=n?t(...n):t()}catch(i){qp(i,e,r)}return o}function Hn(t,e,r,n){if(st(t)){const i=sa(t,e,r,n);return i&&jT(i)&&i.catch(a=>{qp(a,e,r)}),i}const o=[];for(let i=0;i>>1;cd(Vr[n])Po&&Vr.splice(e,1)}function a6(t){Ye(t)?pl.push(...t):(!li||!li.includes(t,t.allowRecurse?Ga+1:Ga))&&pl.push(t),m4()}function p2(t,e=ld?Po+1:0){for(;ecd(r)-cd(n)),Ga=0;Gat.id==null?1/0:t.id,s6=(t,e)=>{const r=cd(t)-cd(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function g4(t){Hv=!1,ld=!0,Vr.sort(s6);const e=ho;try{for(Po=0;Poar(b)?b.trim():b)),g&&(o=r.map(Xf))}let c,d=n[c=Pf(e)]||n[c=Pf(Fo(e))];!d&&i&&(d=n[c=Pf(xs(e))]),d&&Hn(d,t,6,o);const u=n[c+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[c])return;t.emitted[c]=!0,Hn(u,t,6,o)}}function _4(t,e,r=!1){const n=e.emitsCache,o=n.get(t);if(o!==void 0)return o;const i=t.emits;let a={},c=!1;if(!st(t)){const d=u=>{const f=_4(u,e,!0);f&&(c=!0,ur(a,f))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!i&&!c?(qt(t)&&n.set(t,null),null):(Ye(i)?i.forEach(d=>a[d]=null):ur(a,i),qt(t)&&n.set(t,a),a)}function Bp(t,e){return!t||!Mp(e)?!1:(e=e.slice(2).replace(/Once$/,""),kt(t,e[0].toLowerCase()+e.slice(1))||kt(t,xs(e))||kt(t,e))}let $r=null,Up=null;function tp(t){const e=$r;return $r=t,Up=t&&t.type.__scopeId||null,e}function _i(t){Up=t}function yi(){Up=null}function go(t,e=$r,r){if(!e||t._n)return t;const n=(...o)=>{n._d&&A2(-1);const i=tp(e);let a;try{a=t(...o)}finally{tp(i),n._d&&A2(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function Qm(t){const{type:e,vnode:r,proxy:n,withProxy:o,props:i,propsOptions:[a],slots:c,attrs:d,emit:u,render:f,renderCache:g,data:_,setupState:b,ctx:h,inheritAttrs:m}=t;let y,v;const x=tp(t);try{if(r.shapeFlag&4){const T=o||n;y=Oo(f.call(T,T,g,i,b,_,h)),v=d}else{const T=e;y=Oo(T.length>1?T(i,{attrs:d,slots:c,emit:u}):T(i,null)),v=e.props?d:c6(d)}}catch(T){jc.length=0,qp(T,t,1),y=Be(Wn)}let E=y;if(v&&m!==!1){const T=Object.keys(v),{shapeFlag:C}=E;T.length&&C&7&&(a&&T.some(by)&&(v=d6(v,a)),E=da(E,v))}return r.dirs&&(E=da(E),E.dirs=E.dirs?E.dirs.concat(r.dirs):r.dirs),r.transition&&(E.transition=r.transition),y=E,tp(x),y}const c6=t=>{let e;for(const r in t)(r==="class"||r==="style"||Mp(r))&&((e||(e={}))[r]=t[r]);return e},d6=(t,e)=>{const r={};for(const n in t)(!by(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function u6(t,e,r){const{props:n,children:o,component:i}=t,{props:a,children:c,patchFlag:d}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return n?h2(n,a,u):!!a;if(d&8){const f=e.dynamicProps;for(let g=0;gt.__isSuspense;function h6(t,e){e&&e.pendingBranch?Ye(t)?e.effects.push(...t):e.effects.push(t):a6(t)}function m6(t,e){return Vp(t,null,e)}function v6(t,e){return Vp(t,null,{flush:"post"})}const mf={};function Vt(t,e,r){return Vp(t,e,r)}function Vp(t,e,{immediate:r,deep:n,flush:o,onTrack:i,onTrigger:a}=Zt){var c;const d=ky()===((c=xr)==null?void 0:c.scope)?xr:null;let u,f=!1,g=!1;if(Rt(t)?(u=()=>t.value,f=ep(t)):fi(t)?(u=()=>t,n=!0):Ye(t)?(g=!0,f=t.some(T=>fi(T)||ep(T)),u=()=>t.map(T=>{if(Rt(T))return T.value;if(fi(T))return Xa(T);if(st(T))return sa(T,d,2)})):st(t)?e?u=()=>sa(t,d,2):u=()=>{if(!(d&&d.isUnmounted))return _&&_(),Hn(t,d,3,[b])}:u=ho,e&&n){const T=u;u=()=>Xa(T())}let _,b=T=>{_=x.onStop=()=>{sa(T,d,4)}},h;if(hd)if(b=ho,e?r&&Hn(e,d,3,[u(),g?[]:void 0,b]):u(),o==="sync"){const T=dM();h=T.__watcherHandles||(T.__watcherHandles=[])}else return ho;let m=g?new Array(t.length).fill(mf):mf;const y=()=>{if(x.active)if(e){const T=x.run();(n||f||(g?T.some((C,A)=>ad(C,m[A])):ad(T,m)))&&(_&&_(),Hn(e,d,3,[T,m===mf?void 0:g&&m[0]===mf?[]:m,b]),m=T)}else x.run()};y.allowRecurse=!!e;let v;o==="sync"?v=y:o==="post"?v=()=>fn(y,d&&d.suspense):(y.pre=!0,d&&(y.id=d.uid),v=()=>Ly(y));const x=new Ay(u,v);e?r?y():m=x.run():o==="post"?fn(x.run.bind(x),d&&d.suspense):x.run();const E=()=>{x.stop(),d&&d.scope&&xy(d.scope.effects,x)};return h&&h.push(E),E}function g6(t,e,r){const n=this.proxy,o=ar(t)?t.includes(".")?y4(n,t):()=>n[t]:t.bind(n,n);let i;st(e)?i=e:(i=e.handler,r=e);const a=xr;wl(this);const c=Vp(o,i.bind(n),r);return a?wl(a):ns(),c}function y4(t,e){const r=e.split(".");return()=>{let n=t;for(let o=0;o{Xa(r,e)});else if(WT(t))for(const r in t)Xa(t[r],e);return t}function _t(t,e){const r=$r;if(r===null)return t;const n=Gp(r)||r.proxy,o=t.dirs||(t.dirs=[]);for(let i=0;i{t.isMounted=!0}),Ho(()=>{t.isUnmounting=!0}),t}const qn=[Function,Array],x4={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qn,onEnter:qn,onAfterEnter:qn,onEnterCancelled:qn,onBeforeLeave:qn,onLeave:qn,onAfterLeave:qn,onLeaveCancelled:qn,onBeforeAppear:qn,onAppear:qn,onAfterAppear:qn,onAppearCancelled:qn},_6={name:"BaseTransition",props:x4,setup(t,{slots:e}){const r=Wo(),n=b4();let o;return()=>{const i=e.default&&My(e.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const m of i)if(m.type!==Wn){a=m;break}}const c=yt(t),{mode:d}=c;if(n.isLeaving)return Km(a);const u=m2(a);if(!u)return Km(a);const f=dd(u,c,n,r);ud(u,f);const g=r.subTree,_=g&&m2(g);let b=!1;const{getTransitionKey:h}=u.type;if(h){const m=h();o===void 0?o=m:m!==o&&(o=m,b=!0)}if(_&&_.type!==Wn&&(!Qa(u,_)||b)){const m=dd(_,c,n,r);if(ud(_,m),d==="out-in")return n.isLeaving=!0,m.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},Km(a);d==="in-out"&&u.type!==Wn&&(m.delayLeave=(y,v,x)=>{const E=w4(n,_);E[String(_.key)]=_,y._leaveCb=()=>{v(),y._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=x})}return a}}},y6=_6;function w4(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function dd(t,e,r,n){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:g,onLeave:_,onAfterLeave:b,onLeaveCancelled:h,onBeforeAppear:m,onAppear:y,onAfterAppear:v,onAppearCancelled:x}=e,E=String(t.key),T=w4(r,t),C=(R,D)=>{R&&Hn(R,n,9,D)},A=(R,D)=>{const q=D[1];C(R,D),Ye(R)?R.every(H=>H.length<=1)&&q():R.length<=1&&q()},L={mode:i,persisted:a,beforeEnter(R){let D=c;if(!r.isMounted)if(o)D=m||c;else return;R._leaveCb&&R._leaveCb(!0);const q=T[E];q&&Qa(t,q)&&q.el._leaveCb&&q.el._leaveCb(),C(D,[R])},enter(R){let D=d,q=u,H=f;if(!r.isMounted)if(o)D=y||d,q=v||u,H=x||f;else return;let U=!1;const ce=R._enterCb=Ae=>{U||(U=!0,Ae?C(H,[R]):C(q,[R]),L.delayedLeave&&L.delayedLeave(),R._enterCb=void 0)};D?A(D,[R,ce]):ce()},leave(R,D){const q=String(t.key);if(R._enterCb&&R._enterCb(!0),r.isUnmounting)return D();C(g,[R]);let H=!1;const U=R._leaveCb=ce=>{H||(H=!0,D(),ce?C(h,[R]):C(b,[R]),R._leaveCb=void 0,T[q]===t&&delete T[q])};T[q]=t,_?A(_,[R,U]):U()},clone(R){return dd(R,e,r,n)}};return L}function Km(t){if(jp(t))return t=da(t),t.children=null,t}function m2(t){return jp(t)?t.children?t.children[0]:void 0:t}function ud(t,e){t.shapeFlag&6&&t.component?ud(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function My(t,e=!1,r){let n=[],o=0;for(let i=0;i1)for(let i=0;iur({name:t.name},e,{setup:t}))():t}const qc=t=>!!t.type.__asyncLoader,jp=t=>t.type.__isKeepAlive;function b6(t,e){E4(t,"a",e)}function x6(t,e){E4(t,"da",e)}function E4(t,e,r=xr){const n=t.__wdc||(t.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(Hp(e,n,r),r){let o=r.parent;for(;o&&o.parent;)jp(o.parent.vnode)&&w6(n,e,r,o),o=o.parent}}function w6(t,e,r,n){const o=Hp(e,t,n,!0);Hl(()=>{xy(n[e],o)},r)}function Hp(t,e,r=xr,n=!1){if(r){const o=r[t]||(r[t]=[]),i=e.__weh||(e.__weh=(...a)=>{if(r.isUnmounted)return;Vl(),wl(r);const c=Hn(e,r,t,a);return ns(),jl(),c});return n?o.unshift(i):o.push(i),i}}const bi=t=>(e,r=xr)=>(!hd||t==="sp")&&Hp(t,(...n)=>e(...n),r),E6=bi("bm"),mn=bi("m"),T6=bi("bu"),T4=bi("u"),Ho=bi("bum"),Hl=bi("um"),k4=bi("sp"),k6=bi("rtg"),C6=bi("rtc");function A6(t,e=xr){Hp("ec",t,e)}const Dy="components",S6="directives";function Fy(t,e){return zy(Dy,t,!0,e)||t}const C4=Symbol.for("v-ndc");function Ny(t){return ar(t)?zy(Dy,t,!1)||t:t||C4}function ws(t){return zy(S6,t)}function zy(t,e,r=!0,n=!1){const o=$r||xr;if(o){const i=o.type;if(t===Dy){const c=sM(i,!1);if(c&&(c===e||c===Fo(e)||c===Fp(Fo(e))))return i}const a=v2(o[t]||i[t],e)||v2(o.appContext[t],e);return!a&&n?i:a}}function v2(t,e){return t&&(t[e]||t[Fo(e)]||t[Fp(Fo(e))])}function wo(t,e,r,n){let o;const i=r&&r[n];if(Ye(t)||ar(t)){o=new Array(t.length);for(let a=0,c=t.length;ae(a,c,void 0,i&&i[c]));else{const a=Object.keys(t);o=new Array(a.length);for(let c=0,d=a.length;cnp(e)?!(e.type===Wn||e.type===Pt&&!A4(e.children)):!0)?t:null}function I6(t,e){const r={};for(const n in t)r[e&&/[A-Z]/.test(n)?`on:${n}`:Pf(n)]=t[n];return r}const Wv=t=>t?z4(t)?Gp(t)||t.proxy:Wv(t.parent):null,Bc=ur(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Wv(t.parent),$root:t=>Wv(t.root),$emit:t=>t.emit,$options:t=>qy(t),$forceUpdate:t=>t.f||(t.f=()=>Ly(t.update)),$nextTick:t=>t.n||(t.n=ta.bind(t.proxy)),$watch:t=>g6.bind(t)}),Ym=(t,e)=>t!==Zt&&!t.__isScriptSetup&&kt(t,e),$6={get({_:t},e){const{ctx:r,setupState:n,data:o,props:i,accessCache:a,type:c,appContext:d}=t;let u;if(e[0]!=="$"){const b=a[e];if(b!==void 0)switch(b){case 1:return n[e];case 2:return o[e];case 4:return r[e];case 3:return i[e]}else{if(Ym(n,e))return a[e]=1,n[e];if(o!==Zt&&kt(o,e))return a[e]=2,o[e];if((u=t.propsOptions[0])&&kt(u,e))return a[e]=3,i[e];if(r!==Zt&&kt(r,e))return a[e]=4,r[e];Gv&&(a[e]=0)}}const f=Bc[e];let g,_;if(f)return e==="$attrs"&&hn(t,"get",e),f(t);if((g=c.__cssModules)&&(g=g[e]))return g;if(r!==Zt&&kt(r,e))return a[e]=4,r[e];if(_=d.config.globalProperties,kt(_,e))return _[e]},set({_:t},e,r){const{data:n,setupState:o,ctx:i}=t;return Ym(o,e)?(o[e]=r,!0):n!==Zt&&kt(n,e)?(n[e]=r,!0):kt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:o,propsOptions:i}},a){let c;return!!r[a]||t!==Zt&&kt(t,a)||Ym(e,a)||(c=i[0])&&kt(c,a)||kt(n,a)||kt(Bc,a)||kt(o.config.globalProperties,a)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:kt(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function O6(){return P6().slots}function P6(){const t=Wo();return t.setupContext||(t.setupContext=B4(t))}function _2(t){return Ye(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let Gv=!0;function R6(t){const e=qy(t),r=t.proxy,n=t.ctx;Gv=!1,e.beforeCreate&&y2(e.beforeCreate,t,"bc");const{data:o,computed:i,methods:a,watch:c,provide:d,inject:u,created:f,beforeMount:g,mounted:_,beforeUpdate:b,updated:h,activated:m,deactivated:y,beforeDestroy:v,beforeUnmount:x,destroyed:E,unmounted:T,render:C,renderTracked:A,renderTriggered:L,errorCaptured:R,serverPrefetch:D,expose:q,inheritAttrs:H,components:U,directives:ce,filters:Ae}=e;if(u&&L6(u,n,null),a)for(const Ie in a){const Pe=a[Ie];st(Pe)&&(n[Ie]=Pe.bind(r))}if(o){const Ie=o.call(r,r);qt(Ie)&&(t.data=vo(Ie))}if(Gv=!0,i)for(const Ie in i){const Pe=i[Ie],Ce=st(Pe)?Pe.bind(r,r):st(Pe.get)?Pe.get.bind(r,r):ho,de=!st(Pe)&&st(Pe.set)?Pe.set.bind(r):ho,we=St({get:Ce,set:de});Object.defineProperty(n,Ie,{enumerable:!0,configurable:!0,get:()=>we.value,set:ke=>we.value=ke})}if(c)for(const Ie in c)S4(c[Ie],n,r,Ie);if(d){const Ie=st(d)?d.call(r):d;Reflect.ownKeys(Ie).forEach(Pe=>{Uc(Pe,Ie[Pe])})}f&&y2(f,t,"c");function Te(Ie,Pe){Ye(Pe)?Pe.forEach(Ce=>Ie(Ce.bind(r))):Pe&&Ie(Pe.bind(r))}if(Te(E6,g),Te(mn,_),Te(T6,b),Te(T4,h),Te(b6,m),Te(x6,y),Te(A6,R),Te(C6,A),Te(k6,L),Te(Ho,x),Te(Hl,T),Te(k4,D),Ye(q))if(q.length){const Ie=t.exposed||(t.exposed={});q.forEach(Pe=>{Object.defineProperty(Ie,Pe,{get:()=>r[Pe],set:Ce=>r[Pe]=Ce})})}else t.exposed||(t.exposed={});C&&t.render===ho&&(t.render=C),H!=null&&(t.inheritAttrs=H),U&&(t.components=U),ce&&(t.directives=ce)}function L6(t,e,r=ho){Ye(t)&&(t=Qv(t));for(const n in t){const o=t[n];let i;qt(o)?"default"in o?i=rn(o.from||n,o.default,!0):i=rn(o.from||n):i=rn(o),Rt(i)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):e[n]=i}}function y2(t,e,r){Hn(Ye(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function S4(t,e,r,n){const o=n.includes(".")?y4(r,n):()=>r[n];if(ar(t)){const i=e[t];st(i)&&Vt(o,i)}else if(st(t))Vt(o,t.bind(r));else if(qt(t))if(Ye(t))t.forEach(i=>S4(i,e,r,n));else{const i=st(t.handler)?t.handler.bind(r):e[t.handler];st(i)&&Vt(o,i,t)}}function qy(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=t.appContext,c=i.get(e);let d;return c?d=c:!o.length&&!r&&!n?d=e:(d={},o.length&&o.forEach(u=>rp(d,u,a,!0)),rp(d,e,a)),qt(e)&&i.set(e,d),d}function rp(t,e,r,n=!1){const{mixins:o,extends:i}=e;i&&rp(t,i,r,!0),o&&o.forEach(a=>rp(t,a,r,!0));for(const a in e)if(!(n&&a==="expose")){const c=M6[a]||r&&r[a];t[a]=c?c(t[a],e[a]):e[a]}return t}const M6={data:b2,props:x2,emits:x2,methods:Nc,computed:Nc,beforeCreate:Jr,created:Jr,beforeMount:Jr,mounted:Jr,beforeUpdate:Jr,updated:Jr,beforeDestroy:Jr,beforeUnmount:Jr,destroyed:Jr,unmounted:Jr,activated:Jr,deactivated:Jr,errorCaptured:Jr,serverPrefetch:Jr,components:Nc,directives:Nc,watch:F6,provide:b2,inject:D6};function b2(t,e){return e?t?function(){return ur(st(t)?t.call(this,this):t,st(e)?e.call(this,this):e)}:e:t}function D6(t,e){return Nc(Qv(t),Qv(e))}function Qv(t){if(Ye(t)){const e={};for(let r=0;r1)return r&&st(e)?e.call(n&&n.proxy):e}}function q6(){return!!(xr||$r||fd)}function B6(t,e,r,n=!1){const o={},i={};Zf(i,Wp,1),t.propsDefaults=Object.create(null),$4(t,e,o,i);for(const a in t.propsOptions[0])a in o||(o[a]=void 0);r?t.props=n?o:a4(o):t.type.props?t.props=o:t.props=i,t.attrs=i}function U6(t,e,r,n){const{props:o,attrs:i,vnode:{patchFlag:a}}=t,c=yt(o),[d]=t.propsOptions;let u=!1;if((n||a>0)&&!(a&16)){if(a&8){const f=t.vnode.dynamicProps;for(let g=0;g{d=!0;const[_,b]=O4(g,e,!0);ur(a,_),b&&c.push(...b)};!r&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!i&&!d)return qt(t)&&n.set(t,ul),ul;if(Ye(i))for(let f=0;f-1,b[1]=m<0||h-1||kt(b,"default"))&&c.push(g)}}}const u=[a,c];return qt(t)&&n.set(t,u),u}function w2(t){return t[0]!=="$"}function E2(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function T2(t,e){return E2(t)===E2(e)}function k2(t,e){return Ye(e)?e.findIndex(r=>T2(r,t)):st(e)&&T2(e,t)?0:-1}const P4=t=>t[0]==="_"||t==="$stable",By=t=>Ye(t)?t.map(Oo):[Oo(t)],V6=(t,e,r)=>{if(e._n)return e;const n=go((...o)=>By(e(...o)),r);return n._c=!1,n},R4=(t,e,r)=>{const n=t._ctx;for(const o in t){if(P4(o))continue;const i=t[o];if(st(i))e[o]=V6(o,i,n);else if(i!=null){const a=By(i);e[o]=()=>a}}},L4=(t,e)=>{const r=By(e);t.slots.default=()=>r},j6=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=yt(e),Zf(e,"_",r)):R4(e,t.slots={})}else t.slots={},e&&L4(t,e);Zf(t.slots,Wp,1)},H6=(t,e,r)=>{const{vnode:n,slots:o}=t;let i=!0,a=Zt;if(n.shapeFlag&32){const c=e._;c?r&&c===1?i=!1:(ur(o,e),!r&&c===1&&delete o._):(i=!e.$stable,R4(e,o)),a=e}else e&&(L4(t,e),a={default:1});if(i)for(const c in o)!P4(c)&&!(c in a)&&delete o[c]};function Yv(t,e,r,n,o=!1){if(Ye(t)){t.forEach((_,b)=>Yv(_,e&&(Ye(e)?e[b]:e),r,n,o));return}if(qc(n)&&!o)return;const i=n.shapeFlag&4?Gp(n.component)||n.component.proxy:n.el,a=o?null:i,{i:c,r:d}=t,u=e&&e.r,f=c.refs===Zt?c.refs={}:c.refs,g=c.setupState;if(u!=null&&u!==d&&(ar(u)?(f[u]=null,kt(g,u)&&(g[u]=null)):Rt(u)&&(u.value=null)),st(d))sa(d,c,12,[a,f]);else{const _=ar(d),b=Rt(d);if(_||b){const h=()=>{if(t.f){const m=_?kt(g,d)?g[d]:f[d]:d.value;o?Ye(m)&&xy(m,i):Ye(m)?m.includes(i)||m.push(i):_?(f[d]=[i],kt(g,d)&&(g[d]=f[d])):(d.value=[i],t.k&&(f[t.k]=d.value))}else _?(f[d]=a,kt(g,d)&&(g[d]=a)):b&&(d.value=a,t.k&&(f[t.k]=a))};a?(h.id=-1,fn(h,r)):h()}}}const fn=h6;function W6(t){return G6(t)}function G6(t,e){const r=Bv();r.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:a,createText:c,createComment:d,setText:u,setElementText:f,parentNode:g,nextSibling:_,setScopeId:b=ho,insertStaticContent:h}=t,m=(M,k,I,N=null,W=null,Y=null,se=!1,ye=null,X=!!k.dynamicChildren)=>{if(M===k)return;M&&!Qa(M,k)&&(N=J(M),ke(M,W,Y,!0),M=null),k.patchFlag===-2&&(X=!1,k.dynamicChildren=null);const{type:ee,ref:fe,shapeFlag:j}=k;switch(ee){case Md:y(M,k,I,N);break;case Wn:v(M,k,I,N);break;case Lf:M==null&&x(k,I,N,se);break;case Pt:U(M,k,I,N,W,Y,se,ye,X);break;default:j&1?C(M,k,I,N,W,Y,se,ye,X):j&6?ce(M,k,I,N,W,Y,se,ye,X):(j&64||j&128)&&ee.process(M,k,I,N,W,Y,se,ye,X,ve)}fe!=null&&W&&Yv(fe,M&&M.ref,Y,k||M,!k)},y=(M,k,I,N)=>{if(M==null)n(k.el=c(k.children),I,N);else{const W=k.el=M.el;k.children!==M.children&&u(W,k.children)}},v=(M,k,I,N)=>{M==null?n(k.el=d(k.children||""),I,N):k.el=M.el},x=(M,k,I,N)=>{[M.el,M.anchor]=h(M.children,k,I,N,M.el,M.anchor)},E=({el:M,anchor:k},I,N)=>{let W;for(;M&&M!==k;)W=_(M),n(M,I,N),M=W;n(k,I,N)},T=({el:M,anchor:k})=>{let I;for(;M&&M!==k;)I=_(M),o(M),M=I;o(k)},C=(M,k,I,N,W,Y,se,ye,X)=>{se=se||k.type==="svg",M==null?A(k,I,N,W,Y,se,ye,X):D(M,k,W,Y,se,ye,X)},A=(M,k,I,N,W,Y,se,ye)=>{let X,ee;const{type:fe,props:j,shapeFlag:z,transition:oe,dirs:be}=M;if(X=M.el=a(M.type,Y,j&&j.is,j),z&8?f(X,M.children):z&16&&R(M.children,X,null,N,W,Y&&fe!=="foreignObject",se,ye),be&&za(M,null,N,"created"),L(X,M,M.scopeId,se,N),j){for(const Ue in j)Ue!=="value"&&!Of(Ue)&&i(X,Ue,null,j[Ue],Y,M.children,N,W,We);"value"in j&&i(X,"value",null,j.value),(ee=j.onVnodeBeforeMount)&&Io(ee,N,M)}be&&za(M,null,N,"beforeMount");const Fe=(!W||W&&!W.pendingBranch)&&oe&&!oe.persisted;Fe&&oe.beforeEnter(X),n(X,k,I),((ee=j&&j.onVnodeMounted)||Fe||be)&&fn(()=>{ee&&Io(ee,N,M),Fe&&oe.enter(X),be&&za(M,null,N,"mounted")},W)},L=(M,k,I,N,W)=>{if(I&&b(M,I),N)for(let Y=0;Y{for(let ee=X;ee{const ye=k.el=M.el;let{patchFlag:X,dynamicChildren:ee,dirs:fe}=k;X|=M.patchFlag&16;const j=M.props||Zt,z=k.props||Zt;let oe;I&&qa(I,!1),(oe=z.onVnodeBeforeUpdate)&&Io(oe,I,k,M),fe&&za(k,M,I,"beforeUpdate"),I&&qa(I,!0);const be=W&&k.type!=="foreignObject";if(ee?q(M.dynamicChildren,ee,ye,I,N,be,Y):se||Pe(M,k,ye,null,I,N,be,Y,!1),X>0){if(X&16)H(ye,k,j,z,I,N,W);else if(X&2&&j.class!==z.class&&i(ye,"class",null,z.class,W),X&4&&i(ye,"style",j.style,z.style,W),X&8){const Fe=k.dynamicProps;for(let Ue=0;Ue{oe&&Io(oe,I,k,M),fe&&za(k,M,I,"updated")},N)},q=(M,k,I,N,W,Y,se)=>{for(let ye=0;ye{if(I!==N){if(I!==Zt)for(const ye in I)!Of(ye)&&!(ye in N)&&i(M,ye,I[ye],null,se,k.children,W,Y,We);for(const ye in N){if(Of(ye))continue;const X=N[ye],ee=I[ye];X!==ee&&ye!=="value"&&i(M,ye,ee,X,se,k.children,W,Y,We)}"value"in N&&i(M,"value",I.value,N.value)}},U=(M,k,I,N,W,Y,se,ye,X)=>{const ee=k.el=M?M.el:c(""),fe=k.anchor=M?M.anchor:c("");let{patchFlag:j,dynamicChildren:z,slotScopeIds:oe}=k;oe&&(ye=ye?ye.concat(oe):oe),M==null?(n(ee,I,N),n(fe,I,N),R(k.children,I,fe,W,Y,se,ye,X)):j>0&&j&64&&z&&M.dynamicChildren?(q(M.dynamicChildren,z,I,W,Y,se,ye),(k.key!=null||W&&k===W.subTree)&&Uy(M,k,!0)):Pe(M,k,I,fe,W,Y,se,ye,X)},ce=(M,k,I,N,W,Y,se,ye,X)=>{k.slotScopeIds=ye,M==null?k.shapeFlag&512?W.ctx.activate(k,I,N,se,X):Ae(k,I,N,W,Y,se,X):Le(M,k,X)},Ae=(M,k,I,N,W,Y,se)=>{const ye=M.component=nM(M,N,W);if(jp(M)&&(ye.ctx.renderer=ve),oM(ye),ye.asyncDep){if(W&&W.registerDep(ye,Te),!M.el){const X=ye.subTree=Be(Wn);v(null,X,k,I)}return}Te(ye,M,k,I,W,Y,se)},Le=(M,k,I)=>{const N=k.component=M.component;if(u6(M,k,I))if(N.asyncDep&&!N.asyncResolved){Ie(N,k,I);return}else N.next=k,i6(N.update),N.update();else k.el=M.el,N.vnode=k},Te=(M,k,I,N,W,Y,se)=>{const ye=()=>{if(M.isMounted){let{next:fe,bu:j,u:z,parent:oe,vnode:be}=M,Fe=fe,Ue;qa(M,!1),fe?(fe.el=be.el,Ie(M,fe,se)):fe=be,j&&Rf(j),(Ue=fe.props&&fe.props.onVnodeBeforeUpdate)&&Io(Ue,oe,fe,be),qa(M,!0);const dt=Qm(M),Gt=M.subTree;M.subTree=dt,m(Gt,dt,g(Gt.el),J(Gt),M,W,Y),fe.el=dt.el,Fe===null&&f6(M,dt.el),z&&fn(z,W),(Ue=fe.props&&fe.props.onVnodeUpdated)&&fn(()=>Io(Ue,oe,fe,be),W)}else{let fe;const{el:j,props:z}=k,{bm:oe,m:be,parent:Fe}=M,Ue=qc(k);if(qa(M,!1),oe&&Rf(oe),!Ue&&(fe=z&&z.onVnodeBeforeMount)&&Io(fe,Fe,k),qa(M,!0),j&&Oe){const dt=()=>{M.subTree=Qm(M),Oe(j,M.subTree,M,W,null)};Ue?k.type.__asyncLoader().then(()=>!M.isUnmounted&&dt()):dt()}else{const dt=M.subTree=Qm(M);m(null,dt,I,N,M,W,Y),k.el=dt.el}if(be&&fn(be,W),!Ue&&(fe=z&&z.onVnodeMounted)){const dt=k;fn(()=>Io(fe,Fe,dt),W)}(k.shapeFlag&256||Fe&&qc(Fe.vnode)&&Fe.vnode.shapeFlag&256)&&M.a&&fn(M.a,W),M.isMounted=!0,k=I=N=null}},X=M.effect=new Ay(ye,()=>Ly(ee),M.scope),ee=M.update=()=>X.run();ee.id=M.uid,qa(M,!0),ee()},Ie=(M,k,I)=>{k.component=M;const N=M.vnode.props;M.vnode=k,M.next=null,U6(M,k.props,N,I),H6(M,k.children,I),Vl(),p2(),jl()},Pe=(M,k,I,N,W,Y,se,ye,X=!1)=>{const ee=M&&M.children,fe=M?M.shapeFlag:0,j=k.children,{patchFlag:z,shapeFlag:oe}=k;if(z>0){if(z&128){de(ee,j,I,N,W,Y,se,ye,X);return}else if(z&256){Ce(ee,j,I,N,W,Y,se,ye,X);return}}oe&8?(fe&16&&We(ee,W,Y),j!==ee&&f(I,j)):fe&16?oe&16?de(ee,j,I,N,W,Y,se,ye,X):We(ee,W,Y,!0):(fe&8&&f(I,""),oe&16&&R(j,I,N,W,Y,se,ye,X))},Ce=(M,k,I,N,W,Y,se,ye,X)=>{M=M||ul,k=k||ul;const ee=M.length,fe=k.length,j=Math.min(ee,fe);let z;for(z=0;zfe?We(M,W,Y,!0,!1,j):R(k,I,N,W,Y,se,ye,X,j)},de=(M,k,I,N,W,Y,se,ye,X)=>{let ee=0;const fe=k.length;let j=M.length-1,z=fe-1;for(;ee<=j&&ee<=z;){const oe=M[ee],be=k[ee]=X?Ki(k[ee]):Oo(k[ee]);if(Qa(oe,be))m(oe,be,I,null,W,Y,se,ye,X);else break;ee++}for(;ee<=j&&ee<=z;){const oe=M[j],be=k[z]=X?Ki(k[z]):Oo(k[z]);if(Qa(oe,be))m(oe,be,I,null,W,Y,se,ye,X);else break;j--,z--}if(ee>j){if(ee<=z){const oe=z+1,be=oez)for(;ee<=j;)ke(M[ee],W,Y,!0),ee++;else{const oe=ee,be=ee,Fe=new Map;for(ee=be;ee<=z;ee++){const _r=k[ee]=X?Ki(k[ee]):Oo(k[ee]);_r.key!=null&&Fe.set(_r.key,ee)}let Ue,dt=0;const Gt=z-be+1;let gr=!1,ko=0;const eo=new Array(Gt);for(ee=0;ee=Gt){ke(_r,W,Y,!0);continue}let Nr;if(_r.key!=null)Nr=Fe.get(_r.key);else for(Ue=be;Ue<=z;Ue++)if(eo[Ue-be]===0&&Qa(_r,k[Ue])){Nr=Ue;break}Nr===void 0?ke(_r,W,Y,!0):(eo[Nr-be]=ee+1,Nr>=ko?ko=Nr:gr=!0,m(_r,k[Nr],I,null,W,Y,se,ye,X),dt++)}const Ii=gr?Q6(eo):ul;for(Ue=Ii.length-1,ee=Gt-1;ee>=0;ee--){const _r=be+ee,Nr=k[_r],$i=_r+1{const{el:Y,type:se,transition:ye,children:X,shapeFlag:ee}=M;if(ee&6){we(M.component.subTree,k,I,N);return}if(ee&128){M.suspense.move(k,I,N);return}if(ee&64){se.move(M,k,I,ve);return}if(se===Pt){n(Y,k,I);for(let j=0;jye.enter(Y),W);else{const{leave:j,delayLeave:z,afterLeave:oe}=ye,be=()=>n(Y,k,I),Fe=()=>{j(Y,()=>{be(),oe&&oe()})};z?z(Y,be,Fe):Fe()}else n(Y,k,I)},ke=(M,k,I,N=!1,W=!1)=>{const{type:Y,props:se,ref:ye,children:X,dynamicChildren:ee,shapeFlag:fe,patchFlag:j,dirs:z}=M;if(ye!=null&&Yv(ye,null,I,M,!0),fe&256){k.ctx.deactivate(M);return}const oe=fe&1&&z,be=!qc(M);let Fe;if(be&&(Fe=se&&se.onVnodeBeforeUnmount)&&Io(Fe,k,M),fe&6)ze(M.component,I,N);else{if(fe&128){M.suspense.unmount(I,N);return}oe&&za(M,null,k,"beforeUnmount"),fe&64?M.type.remove(M,k,I,W,ve,N):ee&&(Y!==Pt||j>0&&j&64)?We(ee,k,I,!1,!0):(Y===Pt&&j&384||!W&&fe&16)&&We(X,k,I),N&&Re(M)}(be&&(Fe=se&&se.onVnodeUnmounted)||oe)&&fn(()=>{Fe&&Io(Fe,k,M),oe&&za(M,null,k,"unmounted")},I)},Re=M=>{const{type:k,el:I,anchor:N,transition:W}=M;if(k===Pt){He(I,N);return}if(k===Lf){T(M);return}const Y=()=>{o(I),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(M.shapeFlag&1&&W&&!W.persisted){const{leave:se,delayLeave:ye}=W,X=()=>se(I,Y);ye?ye(M.el,Y,X):X()}else Y()},He=(M,k)=>{let I;for(;M!==k;)I=_(M),o(M),M=I;o(k)},ze=(M,k,I)=>{const{bum:N,scope:W,update:Y,subTree:se,um:ye}=M;N&&Rf(N),W.stop(),Y&&(Y.active=!1,ke(se,M,k,I)),ye&&fn(ye,k),fn(()=>{M.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve())},We=(M,k,I,N=!1,W=!1,Y=0)=>{for(let se=Y;seM.shapeFlag&6?J(M.component.subTree):M.shapeFlag&128?M.suspense.next():_(M.anchor||M.el),me=(M,k,I)=>{M==null?k._vnode&&ke(k._vnode,null,null,!0):m(k._vnode||null,M,k,null,null,null,I),p2(),v4(),k._vnode=M},ve={p:m,um:ke,m:we,r:Re,mt:Ae,mc:R,pc:Pe,pbc:q,n:J,o:t};let $e,Oe;return e&&([$e,Oe]=e(ve)),{render:me,hydrate:$e,createApp:z6(me,$e)}}function qa({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function Uy(t,e,r=!1){const n=t.children,o=e.children;if(Ye(n)&&Ye(o))for(let i=0;i>1,t[r[c]]0&&(e[n]=r[i-1]),r[i]=n)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=e[a];return r}const K6=t=>t.__isTeleport,Vc=t=>t&&(t.disabled||t.disabled===""),C2=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Zv=(t,e)=>{const r=t&&t.to;return ar(r)?e?e(r):null:r},Y6={__isTeleport:!0,process(t,e,r,n,o,i,a,c,d,u){const{mc:f,pc:g,pbc:_,o:{insert:b,querySelector:h,createText:m,createComment:y}}=u,v=Vc(e.props);let{shapeFlag:x,children:E,dynamicChildren:T}=e;if(t==null){const C=e.el=m(""),A=e.anchor=m("");b(C,r,n),b(A,r,n);const L=e.target=Zv(e.props,h),R=e.targetAnchor=m("");L&&(b(R,L),a=a||C2(L));const D=(q,H)=>{x&16&&f(E,q,H,o,i,a,c,d)};v?D(r,A):L&&D(L,R)}else{e.el=t.el;const C=e.anchor=t.anchor,A=e.target=t.target,L=e.targetAnchor=t.targetAnchor,R=Vc(t.props),D=R?r:A,q=R?C:L;if(a=a||C2(A),T?(_(t.dynamicChildren,T,D,o,i,a,c),Uy(t,e,!0)):d||g(t,e,D,q,o,i,a,c,!1),v)R||vf(e,r,C,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const H=e.target=Zv(e.props,h);H&&vf(e,H,null,u,0)}else R&&vf(e,A,L,u,1)}M4(e)},remove(t,e,r,n,{um:o,o:{remove:i}},a){const{shapeFlag:c,children:d,anchor:u,targetAnchor:f,target:g,props:_}=t;if(g&&i(f),(a||!Vc(_))&&(i(u),c&16))for(let b=0;b0?co||ul:null,X6(),pd>0&&co&&co.push(t),t}function ie(t,e,r,n,o,i){return D4(V(t,e,r,n,o,i,!0))}function Hr(t,e,r,n,o){return D4(Be(t,e,r,n,o,!0))}function np(t){return t?t.__v_isVNode===!0:!1}function Qa(t,e){return t.type===e.type&&t.key===e.key}const Wp="__vInternal",F4=({key:t})=>t??null,Mf=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?ar(t)||Rt(t)||st(t)?{i:$r,r:t,k:e,f:!!r}:t:null);function V(t,e=null,r=null,n=0,o=null,i=t===Pt?0:1,a=!1,c=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&F4(e),ref:e&&Mf(e),scopeId:Up,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:$r};return c?(jy(d,r),i&128&&t.normalize(d)):r&&(d.shapeFlag|=ar(r)?8:16),pd>0&&!a&&co&&(d.patchFlag>0||i&6)&&d.patchFlag!==32&&co.push(d),d}const Be=J6;function J6(t,e=null,r=null,n=0,o=null,i=!1){if((!t||t===C4)&&(t=Wn),np(t)){const c=da(t,e,!0);return r&&jy(c,r),pd>0&&!i&&co&&(c.shapeFlag&6?co[co.indexOf(t)]=c:co.push(c)),c.patchFlag|=-2,c}if(lM(t)&&(t=t.__vccOpts),e){e=eM(e);let{class:c,style:d}=e;c&&!ar(c)&&(e.class=Vn(c)),qt(d)&&(l4(d)&&!Ye(d)&&(d=ur({},d)),e.style=bl(d))}const a=ar(t)?1:p6(t)?128:K6(t)?64:qt(t)?4:st(t)?2:0;return V(t,e,r,n,o,a,i,!0)}function eM(t){return t?l4(t)||Wp in t?ur({},t):t:null}function da(t,e,r=!1){const{props:n,ref:o,patchFlag:i,children:a}=t,c=e?N4(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&F4(c),ref:e&&e.ref?r&&o?Ye(o)?o.concat(Mf(e)):[o,Mf(e)]:Mf(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Pt?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&da(t.ssContent),ssFallback:t.ssFallback&&da(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Lo(t=" ",e=0){return Be(Md,null,t,e)}function Tt(t="",e=!1){return e?(te(),Hr(Wn,null,t)):Be(Wn,null,t)}function Oo(t){return t==null||typeof t=="boolean"?Be(Wn):Ye(t)?Be(Pt,null,t.slice()):typeof t=="object"?Ki(t):Be(Md,null,String(t))}function Ki(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:da(t)}function jy(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(Ye(e))r=16;else if(typeof e=="object")if(n&65){const o=e.default;o&&(o._c&&(o._d=!1),jy(t,o()),o._c&&(o._d=!0));return}else{r=32;const o=e._;!o&&!(Wp in e)?e._ctx=$r:o===3&&$r&&($r.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else st(e)?(e={default:e,_ctx:$r},r=32):(e=String(e),n&64?(r=16,e=[Lo(e)]):r=8);t.children=e,t.shapeFlag|=r}function N4(...t){const e={};for(let r=0;rxr||$r;let Hy,Gs,S2="__VUE_INSTANCE_SETTERS__";(Gs=Bv()[S2])||(Gs=Bv()[S2]=[]),Gs.push(t=>xr=t),Hy=t=>{Gs.length>1?Gs.forEach(e=>e(t)):Gs[0](t)};const wl=t=>{Hy(t),t.scope.on()},ns=()=>{xr&&xr.scope.off(),Hy(null)};function z4(t){return t.vnode.shapeFlag&4}let hd=!1;function oM(t,e=!1){hd=e;const{props:r,children:n}=t.vnode,o=z4(t);B6(t,r,o,e),j6(t,n);const i=o?iM(t,e):void 0;return hd=!1,i}function iM(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=Ld(new Proxy(t.ctx,$6));const{setup:n}=r;if(n){const o=t.setupContext=n.length>1?B4(t):null;wl(t),Vl();const i=sa(n,t,0,[t.props,o]);if(jl(),ns(),jT(i)){if(i.then(ns,ns),e)return i.then(a=>{I2(t,a,e)}).catch(a=>{qp(a,t,0)});t.asyncDep=i}else I2(t,i,e)}else q4(t,e)}function I2(t,e,r){st(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:qt(e)&&(t.setupState=f4(e)),q4(t,r)}let $2;function q4(t,e,r){const n=t.type;if(!t.render){if(!e&&$2&&!n.render){const o=n.template||qy(t).template;if(o){const{isCustomElement:i,compilerOptions:a}=t.appContext.config,{delimiters:c,compilerOptions:d}=n,u=ur(ur({isCustomElement:i,delimiters:c},a),d);n.render=$2(o,u)}}t.render=n.render||ho}wl(t),Vl(),R6(t),jl(),ns()}function aM(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return hn(t,"get","$attrs"),e[r]}}))}function B4(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return aM(t)},slots:t.slots,emit:t.emit,expose:e}}function Gp(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(f4(Ld(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Bc)return Bc[r](t)},has(e,r){return r in e||r in Bc}}))}function sM(t,e=!0){return st(t)?t.displayName||t.name:t.name||e&&t.__name}function lM(t){return st(t)&&"__vccOpts"in t}const St=(t,e)=>r6(t,e,hd);function No(t,e,r){const n=arguments.length;return n===2?qt(e)&&!Ye(e)?np(e)?Be(t,null,[e]):Be(t,e):Be(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&np(r)&&(r=[r]),Be(t,e,r))}const cM=Symbol.for("v-scx"),dM=()=>rn(cM),uM="3.3.4",fM="http://www.w3.org/2000/svg",Ka=typeof document<"u"?document:null,O2=Ka&&Ka.createElement("template"),pM={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const o=e?Ka.createElementNS(fM,t):Ka.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:t=>Ka.createTextNode(t),createComment:t=>Ka.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ka.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,o,i){const a=r?r.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),r),!(o===i||!(o=o.nextSibling)););else{O2.innerHTML=n?`${t}`:t;const c=O2.content;if(n){const d=c.firstChild;for(;d.firstChild;)c.appendChild(d.firstChild);c.removeChild(d)}e.insertBefore(c,r)}return[a?a.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function hM(t,e,r){const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function mM(t,e,r){const n=t.style,o=ar(r);if(r&&!o){if(e&&!ar(e))for(const i in e)r[i]==null&&Xv(n,i,"");for(const i in r)Xv(n,i,r[i])}else{const i=n.display;o?e!==r&&(n.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(n.display=i)}}const P2=/\s*!important$/;function Xv(t,e,r){if(Ye(r))r.forEach(n=>Xv(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=vM(t,e);P2.test(r)?t.setProperty(xs(n),r.replace(P2,""),"important"):t[n]=r}}const R2=["Webkit","Moz","ms"],Zm={};function vM(t,e){const r=Zm[e];if(r)return r;let n=Fo(e);if(n!=="filter"&&n in t)return Zm[e]=n;n=Fp(n);for(let o=0;oXm||(wM.then(()=>Xm=0),Xm=Date.now());function TM(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Hn(kM(n,r.value),e,5,[n])};return r.value=t,r.attached=EM(),r}function kM(t,e){if(Ye(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>o=>!o._stopped&&n&&n(o))}else return e}const D2=/^on[a-z]/,CM=(t,e,r,n,o=!1,i,a,c,d)=>{e==="class"?hM(t,n,o):e==="style"?mM(t,r,n):Mp(e)?by(e)||bM(t,e,r,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):AM(t,e,n,o))?_M(t,e,n,i,a,c,d):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),gM(t,e,n,o))};function AM(t,e,r,n){return n?!!(e==="innerHTML"||e==="textContent"||e in t&&D2.test(e)&&st(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||D2.test(e)&&ar(r)?!1:e in t}function SM(t){const e=Wo();if(!e)return;const r=e.ut=(o=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(i=>eg(i,o))},n=()=>{const o=t(e.proxy);Jv(e.subTree,o),r(o)};v6(n),mn(()=>{const o=new MutationObserver(n);o.observe(e.subTree.el.parentNode,{childList:!0}),Hl(()=>o.disconnect())})}function Jv(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Jv(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)eg(t.el,e);else if(t.type===Pt)t.children.forEach(r=>Jv(r,e));else if(t.type===Lf){let{el:r,anchor:n}=t;for(;r&&(eg(r,e),r!==n);)r=r.nextSibling}}function eg(t,e){if(t.nodeType===1){const r=t.style;for(const n in e)r.setProperty(`--${n}`,e[n])}}const Bi="transition",Tc="animation",md=(t,{slots:e})=>No(y6,V4(t),e);md.displayName="Transition";const U4={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},IM=md.props=ur({},x4,U4),Ba=(t,e=[])=>{Ye(t)?t.forEach(r=>r(...e)):t&&t(...e)},F2=t=>t?Ye(t)?t.some(e=>e.length>1):t.length>1:!1;function V4(t){const e={};for(const U in t)U in U4||(e[U]=t[U]);if(t.css===!1)return e;const{name:r="v",type:n,duration:o,enterFromClass:i=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:c=`${r}-enter-to`,appearFromClass:d=i,appearActiveClass:u=a,appearToClass:f=c,leaveFromClass:g=`${r}-leave-from`,leaveActiveClass:_=`${r}-leave-active`,leaveToClass:b=`${r}-leave-to`}=t,h=$M(o),m=h&&h[0],y=h&&h[1],{onBeforeEnter:v,onEnter:x,onEnterCancelled:E,onLeave:T,onLeaveCancelled:C,onBeforeAppear:A=v,onAppear:L=x,onAppearCancelled:R=E}=e,D=(U,ce,Ae)=>{Wi(U,ce?f:c),Wi(U,ce?u:a),Ae&&Ae()},q=(U,ce)=>{U._isLeaving=!1,Wi(U,g),Wi(U,b),Wi(U,_),ce&&ce()},H=U=>(ce,Ae)=>{const Le=U?L:x,Te=()=>D(ce,U,Ae);Ba(Le,[ce,Te]),N2(()=>{Wi(ce,U?d:i),si(ce,U?f:c),F2(Le)||z2(ce,n,m,Te)})};return ur(e,{onBeforeEnter(U){Ba(v,[U]),si(U,i),si(U,a)},onBeforeAppear(U){Ba(A,[U]),si(U,d),si(U,u)},onEnter:H(!1),onAppear:H(!0),onLeave(U,ce){U._isLeaving=!0;const Ae=()=>q(U,ce);si(U,g),H4(),si(U,_),N2(()=>{U._isLeaving&&(Wi(U,g),si(U,b),F2(T)||z2(U,n,y,Ae))}),Ba(T,[U,Ae])},onEnterCancelled(U){D(U,!1),Ba(E,[U])},onAppearCancelled(U){D(U,!0),Ba(R,[U])},onLeaveCancelled(U){q(U),Ba(C,[U])}})}function $M(t){if(t==null)return null;if(qt(t))return[Jm(t.enter),Jm(t.leave)];{const e=Jm(t);return[e,e]}}function Jm(t){return fL(t)}function si(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(e)}function Wi(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const{_vtc:r}=t;r&&(r.delete(e),r.size||(t._vtc=void 0))}function N2(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let OM=0;function z2(t,e,r,n){const o=t._endId=++OM,i=()=>{o===t._endId&&n()};if(r)return setTimeout(i,r);const{type:a,timeout:c,propCount:d}=j4(t,e);if(!a)return n();const u=a+"end";let f=0;const g=()=>{t.removeEventListener(u,_),i()},_=b=>{b.target===t&&++f>=d&&g()};setTimeout(()=>{f(r[h]||"").split(", "),o=n(`${Bi}Delay`),i=n(`${Bi}Duration`),a=q2(o,i),c=n(`${Tc}Delay`),d=n(`${Tc}Duration`),u=q2(c,d);let f=null,g=0,_=0;e===Bi?a>0&&(f=Bi,g=a,_=i.length):e===Tc?u>0&&(f=Tc,g=u,_=d.length):(g=Math.max(a,u),f=g>0?a>u?Bi:Tc:null,_=f?f===Bi?i.length:d.length:0);const b=f===Bi&&/\b(transform|all)(,|$)/.test(n(`${Bi}Property`).toString());return{type:f,timeout:g,propCount:_,hasTransform:b}}function q2(t,e){for(;t.lengthB2(r)+B2(t[n])))}function B2(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function H4(){return document.body.offsetHeight}const W4=new WeakMap,G4=new WeakMap,Q4={name:"TransitionGroup",props:ur({},IM,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=Wo(),n=b4();let o,i;return T4(()=>{if(!o.length)return;const a=t.moveClass||`${t.name||"v"}-move`;if(!FM(o[0].el,r.vnode.el,a))return;o.forEach(LM),o.forEach(MM);const c=o.filter(DM);H4(),c.forEach(d=>{const u=d.el,f=u.style;si(u,a),f.transform=f.webkitTransform=f.transitionDuration="";const g=u._moveCb=_=>{_&&_.target!==u||(!_||/transform$/.test(_.propertyName))&&(u.removeEventListener("transitionend",g),u._moveCb=null,Wi(u,a))};u.addEventListener("transitionend",g)})}),()=>{const a=yt(t),c=V4(a);let d=a.tag||Pt;o=i,i=e.default?My(e.default()):[];for(let u=0;udelete t.mode;Q4.props;const RM=Q4;function LM(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function MM(t){G4.set(t,t.el.getBoundingClientRect())}function DM(t){const e=W4.get(t),r=G4.get(t),n=e.left-r.left,o=e.top-r.top;if(n||o){const i=t.el.style;return i.transform=i.webkitTransform=`translate(${n}px,${o}px)`,i.transitionDuration="0s",t}}function FM(t,e,r){const n=t.cloneNode();t._vtc&&t._vtc.forEach(a=>{a.split(/\s+/).forEach(c=>c&&n.classList.remove(c))}),r.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(n);const{hasTransform:i}=j4(n);return o.removeChild(n),i}const ua=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Ye(e)?r=>Rf(e,r):e};function NM(t){t.target.composing=!0}function U2(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const tg={created(t,{modifiers:{lazy:e,trim:r,number:n}},o){t._assign=ua(o);const i=n||o.props&&o.props.type==="number";di(t,e?"change":"input",a=>{if(a.target.composing)return;let c=t.value;r&&(c=c.trim()),i&&(c=Xf(c)),t._assign(c)}),r&&di(t,"change",()=>{t.value=t.value.trim()}),e||(di(t,"compositionstart",NM),di(t,"compositionend",U2),di(t,"change",U2))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:n,number:o}},i){if(t._assign=ua(i),t.composing||document.activeElement===t&&t.type!=="range"&&(r||n&&t.value.trim()===e||(o||t.type==="number")&&Xf(t.value)===e))return;const a=e??"";t.value!==a&&(t.value=a)}},zM={deep:!0,created(t,e,r){t._assign=ua(r),di(t,"change",()=>{const n=t._modelValue,o=El(t),i=t.checked,a=t._assign;if(Ye(n)){const c=Ey(n,o),d=c!==-1;if(i&&!d)a(n.concat(o));else if(!i&&d){const u=[...n];u.splice(c,1),a(u)}}else if(Ul(n)){const c=new Set(n);i?c.add(o):c.delete(o),a(c)}else a(K4(t,i))})},mounted:V2,beforeUpdate(t,e,r){t._assign=ua(r),V2(t,e,r)}};function V2(t,{value:e,oldValue:r},n){t._modelValue=e,Ye(e)?t.checked=Ey(e,n.props.value)>-1:Ul(e)?t.checked=e.has(n.props.value):e!==r&&(t.checked=fs(e,K4(t,!0)))}const qM={created(t,{value:e},r){t.checked=fs(e,r.props.value),t._assign=ua(r),di(t,"change",()=>{t._assign(El(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t._assign=ua(n),e!==r&&(t.checked=fs(e,n.props.value))}},BM={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const o=Ul(e);di(t,"change",()=>{const i=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>r?Xf(El(a)):El(a));t._assign(t.multiple?o?new Set(i):i:i[0])}),t._assign=ua(n)},mounted(t,{value:e}){j2(t,e)},beforeUpdate(t,e,r){t._assign=ua(r)},updated(t,{value:e}){j2(t,e)}};function j2(t,e){const r=t.multiple;if(!(r&&!Ye(e)&&!Ul(e))){for(let n=0,o=t.options.length;n-1:i.selected=e.has(a);else if(fs(El(i),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function El(t){return"_value"in t?t._value:t.value}function K4(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const sve={created(t,e,r){gf(t,e,r,null,"created")},mounted(t,e,r){gf(t,e,r,null,"mounted")},beforeUpdate(t,e,r,n){gf(t,e,r,n,"beforeUpdate")},updated(t,e,r,n){gf(t,e,r,n,"updated")}};function UM(t,e){switch(t){case"SELECT":return BM;case"TEXTAREA":return tg;default:switch(e){case"checkbox":return zM;case"radio":return qM;default:return tg}}}function gf(t,e,r,n,o){const a=UM(t.tagName,r.props&&r.props.type)[o];a&&a(t,e,r,n)}const VM=["ctrl","shift","alt","meta"],jM={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>VM.some(r=>t[`${r}Key`]&&!e.includes(r))},Ot=(t,e)=>(r,...n)=>{for(let o=0;or=>{if(!("key"in r))return;const n=xs(r.key);if(e.some(o=>o===n||HM[o]===n))return t(r)},uo={beforeMount(t,{value:e},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):kc(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),kc(t,!0),n.enter(t)):n.leave(t,()=>{kc(t,!1)}):kc(t,e))},beforeUnmount(t,{value:e}){kc(t,e)}};function kc(t,e){t.style.display=e?t._vod:"none"}const WM=ur({patchProp:CM},pM);let H2;function Y4(){return H2||(H2=W6(WM))}const rg=(...t)=>{Y4().render(...t)},GM=(...t)=>{const e=Y4().createApp(...t),{mount:r}=e;return e.mount=n=>{const o=QM(n);if(!o)return;const i=e._component;!st(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=r(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},e};function QM(t){return ar(t)?document.querySelector(t):t}var KM=!1;function Z4(t,e,r){var n=r||{},o=n.noTrailing,i=o===void 0?!1:o,a=n.noLeading,c=a===void 0?!1:a,d=n.debounceMode,u=d===void 0?void 0:d,f,g=!1,_=0;function b(){f&&clearTimeout(f)}function h(y){var v=y||{},x=v.upcomingOnly,E=x===void 0?!1:x;b(),g=!E}function m(){for(var y=arguments.length,v=new Array(y),x=0;xt?c?(_=Date.now(),i||(f=setTimeout(u?A:C,t))):C():i!==!0&&(f=setTimeout(u?A:C,u===void 0?t-T:t))}return m.cancel=h,m}function YM(t,e,r){var n=r||{},o=n.atBegin,i=o===void 0?!1:o;return Z4(t,e,{debounceMode:i!==!1})}var ng=function(t,e){return ng=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},ng(t,e)};function Go(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ng(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var re=function(){return re=Object.assign||function(e){for(var r,n=1,o=arguments.length;n=0;c--)(a=t[c])&&(i=(o<3?a(i):o>3?a(e,r,i):a(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i}function Yi(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function c(f){try{u(n.next(f))}catch(g){a(g)}}function d(f){try{u(n.throw(f))}catch(g){a(g)}}function u(f){f.done?i(f.value):o(f.value).then(c,d)}u((n=n.apply(t,e||[])).next())})}function Zi(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(u){return function(f){return d([u,f])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(r=0)),r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=XM){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=_f("debug"),t.log=_f("log"),t.warn=_f("warn"),t.error=_f("error")})(Ya||(Ya={}));var Wy="3.8.5";function so(t){try{return t()}catch{}}const G2=so(function(){return globalThis})||so(function(){return window})||so(function(){return self})||so(function(){return global})||so(function(){return so.constructor("return this")()});var Q2=new Map;function og(t){var e=Q2.get(t)||1;return Q2.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function ek(t,e){e===void 0&&(e=0);var r=og("stringifyForDisplay");return JSON.stringify(t,function(n,o){return o===void 0?r:o},e).split(JSON.stringify(r)).join("")}function yf(t){return function(e){for(var r=[],n=1;n=e)break;r=o.index+o[0].length,n+=1}return{line:n,column:e+1-r}}function rD(t){return rk(t.source,ig(t.source,t.start))}function rk(t,e){const r=t.locationOffset.column-1,n="".padStart(r)+t.body,o=e.line-1,i=t.locationOffset.line-1,a=e.line+i,c=e.line===1?r:0,d=e.column+c,u=`${t.name}:${a}:${d} `,f=n.split(/\r\n|[\n\r]/g),g=f[o];if(g.length>120){const _=Math.floor(d/80),b=d%80,h=[];for(let m=0;m["|",m]),["|","^".padStart(b)],["|",h[_+1]]])}return u+Y2([[`${a-1} |`,f[o-1]],[`${a} |`,g],["|","^".padStart(d)],[`${a+1} |`,f[o+1]]])}function Y2(t){const e=t.filter(([n,o])=>o!==void 0),r=Math.max(...e.map(([n])=>n.length));return e.map(([n,o])=>n.padStart(r)+(o?" "+o:"")).join(` -`)}function oD(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class Ky extends Error{constructor(e,...r){var n,o,i;const{nodes:a,source:c,positions:d,path:u,originalError:f,extensions:g}=oD(r);super(e),this.name="GraphQLError",this.path=u??void 0,this.originalError=f??void 0,this.nodes=Z2(Array.isArray(a)?a:a?[a]:void 0);const _=Z2((n=this.nodes)===null||n===void 0?void 0:n.map(h=>h.loc).filter(h=>h!=null));this.source=c??(_==null||(o=_[0])===null||o===void 0?void 0:o.source),this.positions=d??(_==null?void 0:_.map(h=>h.start)),this.locations=d&&c?d.map(h=>ig(c,h)):_==null?void 0:_.map(h=>ig(h.source,h.start));const b=eD(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(i=g??b)!==null&&i!==void 0?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Ky):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(e+=` +`)}function nD(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class Ky extends Error{constructor(e,...r){var n,o,i;const{nodes:a,source:c,positions:d,path:u,originalError:f,extensions:g}=nD(r);super(e),this.name="GraphQLError",this.path=u??void 0,this.originalError=f??void 0,this.nodes=Z2(Array.isArray(a)?a:a?[a]:void 0);const _=Z2((n=this.nodes)===null||n===void 0?void 0:n.map(h=>h.loc).filter(h=>h!=null));this.source=c??(_==null||(o=_[0])===null||o===void 0?void 0:o.source),this.positions=d??(_==null?void 0:_.map(h=>h.start)),this.locations=d&&c?d.map(h=>ig(c,h)):_==null?void 0:_.map(h=>ig(h.source,h.start));const b=JM(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(i=g??b)!==null&&i!==void 0?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Ky):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(e+=` -`+nD(r.loc));else if(this.source&&this.locations)for(const r of this.locations)e+=` +`+rD(r.loc));else if(this.source&&this.locations)for(const r of this.locations)e+=` -`+nk(this.source,r);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Z2(t){return t===void 0||t.length===0?void 0:t}function Sr(t,e,r){return new Ky(`Syntax Error: ${r}`,{source:t,positions:[e]})}class iD{constructor(e,r,n){this.start=e.start,this.end=r.end,this.startToken=e,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class ok{constructor(e,r,n,o,i,a){this.kind=e,this.start=r,this.end=n,this.line=o,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const ik={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},aD=new Set(Object.keys(ik));function X2(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&aD.has(e)}var al;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(al||(al={}));var ag;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(ag||(ag={}));var je;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(je||(je={}));function sg(t){return t===9||t===32}function vd(t){return t>=48&&t<=57}function ak(t){return t>=97&&t<=122||t>=65&&t<=90}function sk(t){return ak(t)||t===95}function sD(t){return ak(t)||vd(t)||t===95}function lD(t){var e;let r=Number.MAX_SAFE_INTEGER,n=null,o=-1;for(let a=0;ac===0?a:a.slice(r)).slice((e=n)!==null&&e!==void 0?e:0,o+1)}function cD(t){let e=0;for(;e1&&n.slice(1).every(b=>b.length===0||sg(b.charCodeAt(0))),a=r.endsWith('\\"""'),c=t.endsWith('"')&&!a,d=t.endsWith("\\"),u=c||d,f=!(e!=null&&e.minimize)&&(!o||t.length>70||u||i||a);let g="";const _=o&&sg(t.charCodeAt(0));return(f&&!_||i)&&(g+=` +`+rk(this.source,r);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Z2(t){return t===void 0||t.length===0?void 0:t}function Sr(t,e,r){return new Ky(`Syntax Error: ${r}`,{source:t,positions:[e]})}class oD{constructor(e,r,n){this.start=e.start,this.end=r.end,this.startToken=e,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class nk{constructor(e,r,n,o,i,a){this.kind=e,this.start=r,this.end=n,this.line=o,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const ok={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},iD=new Set(Object.keys(ok));function X2(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&iD.has(e)}var al;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(al||(al={}));var ag;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(ag||(ag={}));var je;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(je||(je={}));function sg(t){return t===9||t===32}function vd(t){return t>=48&&t<=57}function ik(t){return t>=97&&t<=122||t>=65&&t<=90}function ak(t){return ik(t)||t===95}function aD(t){return ik(t)||vd(t)||t===95}function sD(t){var e;let r=Number.MAX_SAFE_INTEGER,n=null,o=-1;for(let a=0;ac===0?a:a.slice(r)).slice((e=n)!==null&&e!==void 0?e:0,o+1)}function lD(t){let e=0;for(;e1&&n.slice(1).every(b=>b.length===0||sg(b.charCodeAt(0))),a=r.endsWith('\\"""'),c=t.endsWith('"')&&!a,d=t.endsWith("\\"),u=c||d,f=!(e!=null&&e.minimize)&&(!o||t.length>70||u||i||a);let g="";const _=o&&sg(t.charCodeAt(0));return(f&&!_||i)&&(g+=` `),g+=r,(f||u)&&(g+=` -`),'"""'+g+'"""'}var pe;(function(t){t.SOF="",t.EOF="",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(pe||(pe={}));class uD{constructor(e){const r=new ok(pe.SOF,0,0,0,0);this.source=e,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==pe.EOF)do if(e.next)e=e.next;else{const r=pD(this,e.end);e.next=r,r.prev=e,e=r}while(e.kind===pe.COMMENT);return e}}function fD(t){return t===pe.BANG||t===pe.DOLLAR||t===pe.AMP||t===pe.PAREN_L||t===pe.PAREN_R||t===pe.SPREAD||t===pe.COLON||t===pe.EQUALS||t===pe.AT||t===pe.BRACKET_L||t===pe.BRACKET_R||t===pe.BRACE_L||t===pe.PIPE||t===pe.BRACE_R}function Wl(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function Qp(t,e){return lk(t.charCodeAt(e))&&ck(t.charCodeAt(e+1))}function lk(t){return t>=55296&&t<=56319}function ck(t){return t>=56320&&t<=57343}function ps(t,e){const r=t.source.body.codePointAt(e);if(r===void 0)return pe.EOF;if(r>=32&&r<=126){const n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function pr(t,e,r,n,o){const i=t.line,a=1+r-t.lineStart;return new ok(e,r,n,i,a,o)}function pD(t,e){const r=t.source.body,n=r.length;let o=e;for(;o=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function yD(t,e){const r=t.source.body;switch(r.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` -`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Sr(t.source,e,`Invalid character escape sequence: "${r.slice(e,e+2)}".`)}function bD(t,e){const r=t.source.body,n=r.length;let o=t.lineStart,i=e+3,a=i,c="";const d=[];for(;idk?"["+AD(t)+"]":"{ "+r.map(([o,i])=>o+": "+Kp(i,e)).join(", ")+" }"}function CD(t,e){if(t.length===0)return"[]";if(e.length>dk)return"[Array]";const r=Math.min(wD,t.length),n=t.length-r,o=[];for(let i=0;i1&&o.push(`... ${n} more items`),"["+o.join(", ")+"]"}function AD(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const r=t.constructor.name;if(typeof r=="string"&&r!=="")return r}return e}const SD=function(e,r){return e instanceof r};class fk{constructor(e,r="GraphQL request",n={line:1,column:1}){typeof e=="string"||Df(!1,`Body must be a string. Received: ${uk(e)}.`),this.body=e,this.name=r,this.locationOffset=n,this.locationOffset.line>0||Df(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Df(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function ID(t){return SD(t,fk)}function $D(t,e){return new OD(t,e).parseDocument()}class OD{constructor(e,r={}){const n=ID(e)?e:new fk(e);this._lexer=new uD(n),this._options=r,this._tokenCounter=0}parseName(){const e=this.expectToken(pe.NAME);return this.node(e,{kind:je.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:je.DOCUMENT,definitions:this.many(pe.SOF,this.parseDefinition,pe.EOF)})}parseDefinition(){if(this.peek(pe.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),r=e?this._lexer.lookahead():this._lexer.token;if(r.kind===pe.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Sr(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(pe.BRACE_L))return this.node(e,{kind:je.OPERATION_DEFINITION,operation:al.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseOperationType();let n;return this.peek(pe.NAME)&&(n=this.parseName()),this.node(e,{kind:je.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(pe.NAME);switch(e.value){case"query":return al.QUERY;case"mutation":return al.MUTATION;case"subscription":return al.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(pe.PAREN_L,this.parseVariableDefinition,pe.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:je.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(pe.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(pe.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(pe.DOLLAR),this.node(e,{kind:je.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:je.SELECTION_SET,selections:this.many(pe.BRACE_L,this.parseSelection,pe.BRACE_R)})}parseSelection(){return this.peek(pe.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,r=this.parseName();let n,o;return this.expectOptionalToken(pe.COLON)?(n=r,o=this.parseName()):o=r,this.node(e,{kind:je.FIELD,alias:n,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(pe.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const r=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(pe.PAREN_L,r,pe.PAREN_R)}parseArgument(e=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(pe.COLON),this.node(r,{kind:je.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(pe.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(pe.NAME)?this.node(e,{kind:je.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:je.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:je.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:je.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const r=this._lexer.token;switch(r.kind){case pe.BRACKET_L:return this.parseList(e);case pe.BRACE_L:return this.parseObject(e);case pe.INT:return this.advanceLexer(),this.node(r,{kind:je.INT,value:r.value});case pe.FLOAT:return this.advanceLexer(),this.node(r,{kind:je.FLOAT,value:r.value});case pe.STRING:case pe.BLOCK_STRING:return this.parseStringLiteral();case pe.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:je.BOOLEAN,value:!0});case"false":return this.node(r,{kind:je.BOOLEAN,value:!1});case"null":return this.node(r,{kind:je.NULL});default:return this.node(r,{kind:je.ENUM,value:r.value})}case pe.DOLLAR:if(e)if(this.expectToken(pe.DOLLAR),this._lexer.token.kind===pe.NAME){const n=this._lexer.token.value;throw Sr(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:je.STRING,value:e.value,block:e.kind===pe.BLOCK_STRING})}parseList(e){const r=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:je.LIST,values:this.any(pe.BRACKET_L,r,pe.BRACKET_R)})}parseObject(e){const r=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:je.OBJECT,fields:this.any(pe.BRACE_L,r,pe.BRACE_R)})}parseObjectField(e){const r=this._lexer.token,n=this.parseName();return this.expectToken(pe.COLON),this.node(r,{kind:je.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const r=[];for(;this.peek(pe.AT);)r.push(this.parseDirective(e));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const r=this._lexer.token;return this.expectToken(pe.AT),this.node(r,{kind:je.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let r;if(this.expectOptionalToken(pe.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(pe.BRACKET_R),r=this.node(e,{kind:je.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(pe.BANG)?this.node(e,{kind:je.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:je.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(pe.STRING)||this.peek(pe.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),o=this.many(pe.BRACE_L,this.parseOperationTypeDefinition,pe.BRACE_R);return this.node(e,{kind:je.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:o})}parseOperationTypeDefinition(){const e=this._lexer.token,r=this.parseOperationType();this.expectToken(pe.COLON);const n=this.parseNamedType();return this.node(e,{kind:je.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),o=this.parseConstDirectives();return this.node(e,{kind:je.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:o})}parseObjectTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:je.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(pe.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(pe.BRACE_L,this.parseFieldDefinition,pe.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName(),o=this.parseArgumentDefs();this.expectToken(pe.COLON);const i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:je.FIELD_DEFINITION,description:r,name:n,arguments:o,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(pe.PAREN_L,this.parseInputValueDef,pe.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(pe.COLON);const o=this.parseTypeReference();let i;this.expectOptionalToken(pe.EQUALS)&&(i=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:je.INPUT_VALUE_DEFINITION,description:r,name:n,type:o,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:je.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:je.UNION_TYPE_DEFINITION,description:r,name:n,directives:o,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(pe.EQUALS)?this.delimitedMany(pe.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:je.ENUM_TYPE_DEFINITION,description:r,name:n,directives:o,values:i})}parseEnumValuesDefinition(){return this.optionalMany(pe.BRACE_L,this.parseEnumValueDefinition,pe.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(e,{kind:je.ENUM_VALUE_DEFINITION,description:r,name:n,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Sr(this._lexer.source,this._lexer.token.start,`${bf(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:je.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:o,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(pe.BRACE_L,this.parseInputValueDef,pe.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===pe.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.optionalMany(pe.BRACE_L,this.parseOperationTypeDefinition,pe.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:je.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:je.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:je.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:je.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:je.UNION_TYPE_EXTENSION,name:r,directives:n,types:o})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:je.ENUM_TYPE_EXTENSION,name:r,directives:n,values:o})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:je.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:o})}parseDirectiveDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(pe.AT);const n=this.parseName(),o=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:je.DIRECTIVE_DEFINITION,description:r,name:n,arguments:o,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(pe.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(ag,r.value))return r;throw this.unexpected(e)}node(e,r){return this._options.noLocation!==!0&&(r.loc=new iD(e,this._lexer.lastToken,this._lexer.source)),r}peek(e){return this._lexer.token.kind===e}expectToken(e){const r=this._lexer.token;if(r.kind===e)return this.advanceLexer(),r;throw Sr(this._lexer.source,r.start,`Expected ${pk(e)}, found ${bf(r)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const r=this._lexer.token;if(r.kind===pe.NAME&&r.value===e)this.advanceLexer();else throw Sr(this._lexer.source,r.start,`Expected "${e}", found ${bf(r)}.`)}expectOptionalKeyword(e){const r=this._lexer.token;return r.kind===pe.NAME&&r.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const r=e??this._lexer.token;return Sr(this._lexer.source,r.start,`Unexpected ${bf(r)}.`)}any(e,r,n){this.expectToken(e);const o=[];for(;!this.expectOptionalToken(n);)o.push(r.call(this));return o}optionalMany(e,r,n){if(this.expectOptionalToken(e)){const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}return[]}many(e,r,n){this.expectToken(e);const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}delimitedMany(e,r){this.expectOptionalToken(e);const n=[];do n.push(r.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,r=this._lexer.advance();if(e!==void 0&&r.kind!==pe.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Sr(this._lexer.source,r.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function bf(t){const e=t.value;return pk(t.kind)+(e!=null?` "${e}"`:"")}function pk(t){return fD(t)?`"${t}"`:t}function PD(t){return`"${t.replace(RD,LD)}"`}const RD=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function LD(t){return MD[t.charCodeAt(0)]}const MD=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Yy=Object.freeze({});function zo(t,e,r=ik){const n=new Map;for(const v of Object.values(je))n.set(v,DD(e,v));let o,i=Array.isArray(t),a=[t],c=-1,d=[],u=t,f,g;const _=[],b=[];do{c++;const v=c===a.length,x=v&&d.length!==0;if(v){if(f=b.length===0?void 0:_[_.length-1],u=g,g=b.pop(),x)if(i){u=u.slice();let T=0;for(const[C,A]of d){const L=C-T;A===null?(u.splice(L,1),T++):u[L]=A}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[T,C]of d)u[T]=C}c=o.index,a=o.keys,d=o.edits,i=o.inArray,o=o.prev}else if(g){if(f=i?c:a[c],u=g[f],u==null)continue;_.push(f)}let E;if(!Array.isArray(u)){var h,m;X2(u)||Df(!1,`Invalid AST Node: ${uk(u)}.`);const T=v?(h=n.get(u.kind))===null||h===void 0?void 0:h.leave:(m=n.get(u.kind))===null||m===void 0?void 0:m.enter;if(E=T==null?void 0:T.call(e,u,f,g,_,b),E===Yy)break;if(E===!1){if(!v){_.pop();continue}}else if(E!==void 0&&(d.push([f,E]),!v))if(X2(E))u=E;else{_.pop();continue}}if(E===void 0&&x&&d.push([f,u]),v)_.pop();else{var y;o={inArray:i,index:c,keys:a,edits:d,prev:o},i=Array.isArray(u),a=i?u:(y=r[u.kind])!==null&&y!==void 0?y:[],c=-1,d=[],g&&b.push(g),g=u}}while(o!==void 0);return d.length!==0?d[d.length-1][1]:t}function DD(t,e){const r=t[e];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:t.enter,leave:t.leave}}function hk(t){return zo(t,ND)}const FD=80,ND={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Ge(t.definitions,` +`),'"""'+g+'"""'}var pe;(function(t){t.SOF="",t.EOF="",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(pe||(pe={}));class dD{constructor(e){const r=new nk(pe.SOF,0,0,0,0);this.source=e,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==pe.EOF)do if(e.next)e=e.next;else{const r=fD(this,e.end);e.next=r,r.prev=e,e=r}while(e.kind===pe.COMMENT);return e}}function uD(t){return t===pe.BANG||t===pe.DOLLAR||t===pe.AMP||t===pe.PAREN_L||t===pe.PAREN_R||t===pe.SPREAD||t===pe.COLON||t===pe.EQUALS||t===pe.AT||t===pe.BRACKET_L||t===pe.BRACKET_R||t===pe.BRACE_L||t===pe.PIPE||t===pe.BRACE_R}function Wl(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function Qp(t,e){return sk(t.charCodeAt(e))&&lk(t.charCodeAt(e+1))}function sk(t){return t>=55296&&t<=56319}function lk(t){return t>=56320&&t<=57343}function ps(t,e){const r=t.source.body.codePointAt(e);if(r===void 0)return pe.EOF;if(r>=32&&r<=126){const n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function pr(t,e,r,n,o){const i=t.line,a=1+r-t.lineStart;return new nk(e,r,n,i,a,o)}function fD(t,e){const r=t.source.body,n=r.length;let o=e;for(;o=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function _D(t,e){const r=t.source.body;switch(r.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Sr(t.source,e,`Invalid character escape sequence: "${r.slice(e,e+2)}".`)}function yD(t,e){const r=t.source.body,n=r.length;let o=t.lineStart,i=e+3,a=i,c="";const d=[];for(;ick?"["+CD(t)+"]":"{ "+r.map(([o,i])=>o+": "+Kp(i,e)).join(", ")+" }"}function kD(t,e){if(t.length===0)return"[]";if(e.length>ck)return"[Array]";const r=Math.min(xD,t.length),n=t.length-r,o=[];for(let i=0;i1&&o.push(`... ${n} more items`),"["+o.join(", ")+"]"}function CD(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const r=t.constructor.name;if(typeof r=="string"&&r!=="")return r}return e}const AD=function(e,r){return e instanceof r};class uk{constructor(e,r="GraphQL request",n={line:1,column:1}){typeof e=="string"||Df(!1,`Body must be a string. Received: ${dk(e)}.`),this.body=e,this.name=r,this.locationOffset=n,this.locationOffset.line>0||Df(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Df(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function SD(t){return AD(t,uk)}function ID(t,e){return new $D(t,e).parseDocument()}class $D{constructor(e,r={}){const n=SD(e)?e:new uk(e);this._lexer=new dD(n),this._options=r,this._tokenCounter=0}parseName(){const e=this.expectToken(pe.NAME);return this.node(e,{kind:je.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:je.DOCUMENT,definitions:this.many(pe.SOF,this.parseDefinition,pe.EOF)})}parseDefinition(){if(this.peek(pe.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),r=e?this._lexer.lookahead():this._lexer.token;if(r.kind===pe.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Sr(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(pe.BRACE_L))return this.node(e,{kind:je.OPERATION_DEFINITION,operation:al.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseOperationType();let n;return this.peek(pe.NAME)&&(n=this.parseName()),this.node(e,{kind:je.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(pe.NAME);switch(e.value){case"query":return al.QUERY;case"mutation":return al.MUTATION;case"subscription":return al.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(pe.PAREN_L,this.parseVariableDefinition,pe.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:je.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(pe.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(pe.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(pe.DOLLAR),this.node(e,{kind:je.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:je.SELECTION_SET,selections:this.many(pe.BRACE_L,this.parseSelection,pe.BRACE_R)})}parseSelection(){return this.peek(pe.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,r=this.parseName();let n,o;return this.expectOptionalToken(pe.COLON)?(n=r,o=this.parseName()):o=r,this.node(e,{kind:je.FIELD,alias:n,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(pe.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const r=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(pe.PAREN_L,r,pe.PAREN_R)}parseArgument(e=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(pe.COLON),this.node(r,{kind:je.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(pe.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(pe.NAME)?this.node(e,{kind:je.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:je.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:je.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:je.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const r=this._lexer.token;switch(r.kind){case pe.BRACKET_L:return this.parseList(e);case pe.BRACE_L:return this.parseObject(e);case pe.INT:return this.advanceLexer(),this.node(r,{kind:je.INT,value:r.value});case pe.FLOAT:return this.advanceLexer(),this.node(r,{kind:je.FLOAT,value:r.value});case pe.STRING:case pe.BLOCK_STRING:return this.parseStringLiteral();case pe.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:je.BOOLEAN,value:!0});case"false":return this.node(r,{kind:je.BOOLEAN,value:!1});case"null":return this.node(r,{kind:je.NULL});default:return this.node(r,{kind:je.ENUM,value:r.value})}case pe.DOLLAR:if(e)if(this.expectToken(pe.DOLLAR),this._lexer.token.kind===pe.NAME){const n=this._lexer.token.value;throw Sr(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:je.STRING,value:e.value,block:e.kind===pe.BLOCK_STRING})}parseList(e){const r=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:je.LIST,values:this.any(pe.BRACKET_L,r,pe.BRACKET_R)})}parseObject(e){const r=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:je.OBJECT,fields:this.any(pe.BRACE_L,r,pe.BRACE_R)})}parseObjectField(e){const r=this._lexer.token,n=this.parseName();return this.expectToken(pe.COLON),this.node(r,{kind:je.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const r=[];for(;this.peek(pe.AT);)r.push(this.parseDirective(e));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const r=this._lexer.token;return this.expectToken(pe.AT),this.node(r,{kind:je.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let r;if(this.expectOptionalToken(pe.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(pe.BRACKET_R),r=this.node(e,{kind:je.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(pe.BANG)?this.node(e,{kind:je.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:je.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(pe.STRING)||this.peek(pe.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),o=this.many(pe.BRACE_L,this.parseOperationTypeDefinition,pe.BRACE_R);return this.node(e,{kind:je.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:o})}parseOperationTypeDefinition(){const e=this._lexer.token,r=this.parseOperationType();this.expectToken(pe.COLON);const n=this.parseNamedType();return this.node(e,{kind:je.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),o=this.parseConstDirectives();return this.node(e,{kind:je.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:o})}parseObjectTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:je.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(pe.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(pe.BRACE_L,this.parseFieldDefinition,pe.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName(),o=this.parseArgumentDefs();this.expectToken(pe.COLON);const i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:je.FIELD_DEFINITION,description:r,name:n,arguments:o,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(pe.PAREN_L,this.parseInputValueDef,pe.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(pe.COLON);const o=this.parseTypeReference();let i;this.expectOptionalToken(pe.EQUALS)&&(i=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:je.INPUT_VALUE_DEFINITION,description:r,name:n,type:o,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:je.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:je.UNION_TYPE_DEFINITION,description:r,name:n,directives:o,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(pe.EQUALS)?this.delimitedMany(pe.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:je.ENUM_TYPE_DEFINITION,description:r,name:n,directives:o,values:i})}parseEnumValuesDefinition(){return this.optionalMany(pe.BRACE_L,this.parseEnumValueDefinition,pe.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(e,{kind:je.ENUM_VALUE_DEFINITION,description:r,name:n,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Sr(this._lexer.source,this._lexer.token.start,`${bf(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:je.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:o,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(pe.BRACE_L,this.parseInputValueDef,pe.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===pe.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.optionalMany(pe.BRACE_L,this.parseOperationTypeDefinition,pe.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:je.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:je.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:je.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:je.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:je.UNION_TYPE_EXTENSION,name:r,directives:n,types:o})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:je.ENUM_TYPE_EXTENSION,name:r,directives:n,values:o})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:je.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:o})}parseDirectiveDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(pe.AT);const n=this.parseName(),o=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:je.DIRECTIVE_DEFINITION,description:r,name:n,arguments:o,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(pe.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(ag,r.value))return r;throw this.unexpected(e)}node(e,r){return this._options.noLocation!==!0&&(r.loc=new oD(e,this._lexer.lastToken,this._lexer.source)),r}peek(e){return this._lexer.token.kind===e}expectToken(e){const r=this._lexer.token;if(r.kind===e)return this.advanceLexer(),r;throw Sr(this._lexer.source,r.start,`Expected ${fk(e)}, found ${bf(r)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const r=this._lexer.token;if(r.kind===pe.NAME&&r.value===e)this.advanceLexer();else throw Sr(this._lexer.source,r.start,`Expected "${e}", found ${bf(r)}.`)}expectOptionalKeyword(e){const r=this._lexer.token;return r.kind===pe.NAME&&r.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const r=e??this._lexer.token;return Sr(this._lexer.source,r.start,`Unexpected ${bf(r)}.`)}any(e,r,n){this.expectToken(e);const o=[];for(;!this.expectOptionalToken(n);)o.push(r.call(this));return o}optionalMany(e,r,n){if(this.expectOptionalToken(e)){const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}return[]}many(e,r,n){this.expectToken(e);const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}delimitedMany(e,r){this.expectOptionalToken(e);const n=[];do n.push(r.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,r=this._lexer.advance();if(e!==void 0&&r.kind!==pe.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Sr(this._lexer.source,r.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function bf(t){const e=t.value;return fk(t.kind)+(e!=null?` "${e}"`:"")}function fk(t){return uD(t)?`"${t}"`:t}function OD(t){return`"${t.replace(PD,RD)}"`}const PD=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function RD(t){return LD[t.charCodeAt(0)]}const LD=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Yy=Object.freeze({});function zo(t,e,r=ok){const n=new Map;for(const v of Object.values(je))n.set(v,MD(e,v));let o,i=Array.isArray(t),a=[t],c=-1,d=[],u=t,f,g;const _=[],b=[];do{c++;const v=c===a.length,x=v&&d.length!==0;if(v){if(f=b.length===0?void 0:_[_.length-1],u=g,g=b.pop(),x)if(i){u=u.slice();let T=0;for(const[C,A]of d){const L=C-T;A===null?(u.splice(L,1),T++):u[L]=A}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[T,C]of d)u[T]=C}c=o.index,a=o.keys,d=o.edits,i=o.inArray,o=o.prev}else if(g){if(f=i?c:a[c],u=g[f],u==null)continue;_.push(f)}let E;if(!Array.isArray(u)){var h,m;X2(u)||Df(!1,`Invalid AST Node: ${dk(u)}.`);const T=v?(h=n.get(u.kind))===null||h===void 0?void 0:h.leave:(m=n.get(u.kind))===null||m===void 0?void 0:m.enter;if(E=T==null?void 0:T.call(e,u,f,g,_,b),E===Yy)break;if(E===!1){if(!v){_.pop();continue}}else if(E!==void 0&&(d.push([f,E]),!v))if(X2(E))u=E;else{_.pop();continue}}if(E===void 0&&x&&d.push([f,u]),v)_.pop();else{var y;o={inArray:i,index:c,keys:a,edits:d,prev:o},i=Array.isArray(u),a=i?u:(y=r[u.kind])!==null&&y!==void 0?y:[],c=-1,d=[],g&&b.push(g),g=u}}while(o!==void 0);return d.length!==0?d[d.length-1][1]:t}function MD(t,e){const r=t[e];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:t.enter,leave:t.leave}}function pk(t){return zo(t,FD)}const DD=80,FD={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Ge(t.definitions,` -`)},OperationDefinition:{leave(t){const e=gt("(",Ge(t.variableDefinitions,", "),")"),r=Ge([t.operation,Ge([t.name,e]),Ge(t.directives," ")]," ");return(r==="query"?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:n})=>t+": "+e+gt(" = ",r)+gt(" ",Ge(n," "))},SelectionSet:{leave:({selections:t})=>io(t)},Field:{leave({alias:t,name:e,arguments:r,directives:n,selectionSet:o}){const i=gt("",t,": ")+e;let a=i+gt("(",Ge(r,", "),")");return a.length>FD&&(a=i+gt(`( +`)},OperationDefinition:{leave(t){const e=gt("(",Ge(t.variableDefinitions,", "),")"),r=Ge([t.operation,Ge([t.name,e]),Ge(t.directives," ")]," ");return(r==="query"?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:n})=>t+": "+e+gt(" = ",r)+gt(" ",Ge(n," "))},SelectionSet:{leave:({selections:t})=>io(t)},Field:{leave({alias:t,name:e,arguments:r,directives:n,selectionSet:o}){const i=gt("",t,": ")+e;let a=i+gt("(",Ge(r,", "),")");return a.length>DD&&(a=i+gt(`( `,Ff(Ge(r,` `)),` -)`)),Ge([a,Ge(n," "),o]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+gt(" ",Ge(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>Ge(["...",gt("on ",t),Ge(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:n,selectionSet:o})=>`fragment ${t}${gt("(",Ge(r,", "),")")} on ${e} ${gt("",Ge(n," ")," ")}`+o},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?dD(t):PD(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+Ge(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+Ge(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+gt("(",Ge(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>gt("",t,` +)`)),Ge([a,Ge(n," "),o]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+gt(" ",Ge(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>Ge(["...",gt("on ",t),Ge(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:n,selectionSet:o})=>`fragment ${t}${gt("(",Ge(r,", "),")")} on ${e} ${gt("",Ge(n," ")," ")}`+o},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?cD(t):OD(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+Ge(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+Ge(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+gt("(",Ge(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>gt("",t,` `)+Ge(["schema",Ge(e," "),io(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>gt("",t,` `)+Ge(["scalar",e,Ge(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:o})=>gt("",t,` `)+Ge(["type",e,gt("implements ",Ge(r," & ")),Ge(n," "),io(o)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:n,directives:o})=>gt("",t,` @@ -35,33 +35,33 @@ var iL=Object.defineProperty;var aL=(t,e,r)=>e in t?iL(t,e,{enumerable:!0,config `)),` }`)}function gt(t,e,r=""){return e!=null&&e!==""?t+e+r:""}function Ff(t){return gt(" ",t.replace(/\n/g,` `))}function ew(t){var e;return(e=t==null?void 0:t.some(r=>r.includes(` -`)))!==null&&e!==void 0?e:!1}function tw(t){return t.kind===je.FIELD||t.kind===je.FRAGMENT_SPREAD||t.kind===je.INLINE_FRAGMENT}function Dd(t,e){var r=t.directives;return!r||!r.length?!0:BD(r).every(function(n){var o=n.directive,i=n.ifArgument,a=!1;return i.value.kind==="Variable"?(a=e&&e[i.value.name.value],nt(a!==void 0,64,o.name.value)):a=i.value.value,o.name.value==="skip"?!a:a})}function gd(t,e,r){var n=new Set(t),o=n.size;return zo(e,{Directive:function(i){if(n.delete(i.name.value)&&(!r||!n.size))return Yy}}),r?!n.size:n.sizeObject.create(null),{forEach:VD,slice:jD}=Array.prototype,{hasOwnProperty:HD}=Object.prototype;class Ea{constructor(e=!0,r=UD){this.weakness=e,this.makeData=r}lookup(...e){return this.lookupArray(e)}lookupArray(e){let r=this;return VD.call(e,n=>r=r.getChildTrie(n)),HD.call(r,"data")?r.data:r.data=this.makeData(jD.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let r=this;for(let n=0,o=e.length;r&&n=0});function er(t){return t!==null&&typeof t=="object"}function WD(t,e){var r=e,n=[];t.definitions.forEach(function(i){if(i.kind==="OperationDefinition")throw on(68,i.operation,i.name?" named '".concat(i.name.value,"'"):"");i.kind==="FragmentDefinition"&&n.push(i)}),typeof r>"u"&&(nt(n.length===1,69,n.length),r=n[0].name.value);var o=re(re({},t),{definitions:os([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions,!0)});return o}function Zp(t){t===void 0&&(t=[]);var e={};return t.forEach(function(r){e[r.name.value]=r}),e}function Xp(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{var r=t.name.value;if(typeof e=="function")return e(r);var n=e&&e[r];return nt(n,70,r),n||null}default:return null}}function hl(t){return{__ref:String(t)}}function Nt(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}function GD(t){return er(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function QD(t){return t.kind==="StringValue"}function KD(t){return t.kind==="BooleanValue"}function YD(t){return t.kind==="IntValue"}function ZD(t){return t.kind==="FloatValue"}function XD(t){return t.kind==="Variable"}function JD(t){return t.kind==="ObjectValue"}function eF(t){return t.kind==="ListValue"}function tF(t){return t.kind==="EnumValue"}function rF(t){return t.kind==="NullValue"}function Tl(t,e,r,n){if(YD(r)||ZD(r))t[e.value]=Number(r.value);else if(KD(r)||QD(r))t[e.value]=r.value;else if(JD(r)){var o={};r.fields.map(function(a){return Tl(o,a.name,a.value,n)}),t[e.value]=o}else if(XD(r)){var i=(n||{})[r.name.value];t[e.value]=i}else if(eF(r))t[e.value]=r.values.map(function(a){var c={};return Tl(c,e,a,n),c[e.value]});else if(tF(r))t[e.value]=r.value;else if(rF(r))t[e.value]=null;else throw on(79,e.value,r.kind)}function nF(t,e){var r=null;t.directives&&(r={},t.directives.forEach(function(o){r[o.name.value]={},o.arguments&&o.arguments.forEach(function(i){var a=i.name,c=i.value;return Tl(r[o.name.value],a,c,e)})}));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach(function(o){var i=o.name,a=o.value;return Tl(n,i,a,e)})),Zy(t.name.value,n,r)}var oF=["connection","include","skip","client","rest","export","nonreactive"],Zy=Object.assign(function(t,e,r){if(e&&r&&r.connection&&r.connection.key)if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var o={};return n.forEach(function(c){o[c]=e[c]}),"".concat(r.connection.key,"(").concat(Cc(o),")")}else return r.connection.key;var i=t;if(e){var a=Cc(e);i+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(c){oF.indexOf(c)===-1&&(r[c]&&Object.keys(r[c]).length?i+="@".concat(c,"(").concat(Cc(r[c]),")"):i+="@".concat(c))}),i},{setStringify:function(t){var e=Cc;return Cc=t,e}}),Cc=function(e){return JSON.stringify(e,iF)};function iF(t,e){return er(e)&&!Array.isArray(e)&&(e=Object.keys(e).sort().reduce(function(r,n){return r[n]=e[n],r},{})),e}function Jp(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach(function(n){var o=n.name,i=n.value;return Tl(r,o,i,e)}),r}return null}function pa(t){return t.alias?t.alias.value:t.name.value}function lg(t,e,r){for(var n,o=0,i=e.selections;o0}var nw={kind:je.FIELD,name:{kind:je.NAME,value:"__typename"}};function bk(t,e){return!t||t.selectionSet.selections.every(function(r){return r.kind===je.FRAGMENT_SPREAD&&bk(e[r.name.value],e)})}function cF(t){return bk(Nd(t)||sF(t),Zp(eh(t)))?null:t}function dF(t){var e=new Map,r=new Map;return t.forEach(function(n){n&&(n.name?e.set(n.name,n):n.test&&r.set(n.test,n))}),function(n){var o=e.get(n.name.value);return!o&&r.size&&r.forEach(function(i,a){a(n)&&(o=i)}),o}}function ow(t){var e=new Map;return function(n){n===void 0&&(n=t);var o=e.get(n);return o||e.set(n,o={variables:new Set,fragmentSpreads:new Set}),o}}function xk(t,e){Fd(e);for(var r=ow(""),n=ow(""),o=function(v){for(var x=0,E=void 0;x=0;--a)e.definitions[a].kind===je.OPERATION_DEFINITION&&++i;var c=dF(t),d=function(v){return qo(v)&&v.map(c).some(function(x){return x&&x.remove})},u=new Map,f=!1,g={enter:function(v){if(d(v.directives))return f=!0,null}},_=zo(e,{Field:g,InlineFragment:g,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(v,x,E,T,C){var A=o(C);A&&A.variables.add(v.name.value)}},FragmentSpread:{enter:function(v,x,E,T,C){if(d(v.directives))return f=!0,null;var A=o(C);A&&A.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter:function(v,x,E,T){u.set(JSON.stringify(T),v)},leave:function(v,x,E,T){var C=u.get(JSON.stringify(T));if(v===C)return v;if(i>0&&v.selectionSet.selections.every(function(A){return A.kind===je.FIELD&&A.name.value==="__typename"}))return n(v.name.value).removed=!0,f=!0,null}},Directive:{leave:function(v){if(c(v))return f=!0,null}}});if(!f)return e;var b=function(v){return v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(function(x){b(n(x)).transitiveVars.forEach(function(E){v.transitiveVars.add(E)})})),v},h=new Set;_.definitions.forEach(function(v){v.kind===je.OPERATION_DEFINITION?b(r(v.name&&v.name.value)).fragmentSpreads.forEach(function(x){h.add(x)}):v.kind===je.FRAGMENT_DEFINITION&&i===0&&!n(v.name.value).removed&&h.add(v.name.value)}),h.forEach(function(v){b(n(v)).fragmentSpreads.forEach(function(x){h.add(x)})});var m=function(v){return!!(!h.has(v)||n(v).removed)},y={enter:function(v){if(m(v.name.value))return null}};return cF(zo(_,{FragmentSpread:y,FragmentDefinition:y,OperationDefinition:{leave:function(v){if(v.variableDefinitions){var x=b(r(v.name&&v.name.value)).transitiveVars;if(x.size1)for(var n=new ma,o=1;o=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mF(t,e){if(t){if(typeof t=="string")return aw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aw(t,e)}}function aw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1,c=!1,d=arguments[1],u=d;return new i(function(f){return o.subscribe({next:function(g){var _=!c;if(c=!0,!_||a)try{u=n(u,g)}catch(b){return f.error(b)}else u=g},error:function(g){f.error(g)},complete:function(){if(!c&&!a)return f.error(new TypeError("Cannot reduce an empty sequence"));f.next(u),f.complete()}})})},e.concat=function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a=0&&c.splice(_,1),u()}});c.push(g)},error:function(f){a.error(f)},complete:function(){u()}});function u(){d.closed&&c.length===0&&a.complete()}return function(){c.forEach(function(f){return f.unsubscribe()}),d.unsubscribe()}})},e[dg]=function(){return this},t.from=function(n){var o=typeof this=="function"?this:t;if(n==null)throw new TypeError(n+" is not an object");var i=op(n,dg);if(i){var a=i.call(n);if(Object(a)!==a)throw new TypeError(a+" is not an object");return gF(a)&&a.constructor===o?a:new o(function(c){return a.subscribe(c)})}if(nb("iterator")&&(i=op(n,vF),i))return new o(function(c){Nf(function(){if(!c.closed){for(var d=hF(i.call(n)),u;!(u=d()).done;){var f=u.value;if(c.next(f),c.closed)return}c.complete()}})});if(Array.isArray(n))return new o(function(c){Nf(function(){if(!c.closed){for(var d=0;d=0;--c){var d=a[c],u=!isNaN(+d),f=u?[]:{};f[d]=i,i=f}r=n.merge(r,i)}),r}function zf(t){var e=hg(t);return qo(e)}function hg(t){var e=qo(t.errors)?t.errors.slice(0):[];return ml(t)&&qo(t.incremental)&&t.incremental.forEach(function(r){r.errors&&e.push.apply(e,r.errors)}),e}function Cl(){for(var t=[],e=0;e-1;){if(v=void 0,R=[d.slice(0,y),d.slice(y+c.length)],v=R[0],d=R[1],x=v.indexOf(`\r +`)))!==null&&e!==void 0?e:!1}function tw(t){return t.kind===je.FIELD||t.kind===je.FRAGMENT_SPREAD||t.kind===je.INLINE_FRAGMENT}function Dd(t,e){var r=t.directives;return!r||!r.length?!0:qD(r).every(function(n){var o=n.directive,i=n.ifArgument,a=!1;return i.value.kind==="Variable"?(a=e&&e[i.value.name.value],nt(a!==void 0,64,o.name.value)):a=i.value.value,o.name.value==="skip"?!a:a})}function gd(t,e,r){var n=new Set(t),o=n.size;return zo(e,{Directive:function(i){if(n.delete(i.name.value)&&(!r||!n.size))return Yy}}),r?!n.size:n.sizeObject.create(null),{forEach:UD,slice:VD}=Array.prototype,{hasOwnProperty:jD}=Object.prototype;class Ea{constructor(e=!0,r=BD){this.weakness=e,this.makeData=r}lookup(...e){return this.lookupArray(e)}lookupArray(e){let r=this;return UD.call(e,n=>r=r.getChildTrie(n)),jD.call(r,"data")?r.data:r.data=this.makeData(VD.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let r=this;for(let n=0,o=e.length;r&&n=0});function er(t){return t!==null&&typeof t=="object"}function HD(t,e){var r=e,n=[];t.definitions.forEach(function(i){if(i.kind==="OperationDefinition")throw on(68,i.operation,i.name?" named '".concat(i.name.value,"'"):"");i.kind==="FragmentDefinition"&&n.push(i)}),typeof r>"u"&&(nt(n.length===1,69,n.length),r=n[0].name.value);var o=re(re({},t),{definitions:os([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions,!0)});return o}function Zp(t){t===void 0&&(t=[]);var e={};return t.forEach(function(r){e[r.name.value]=r}),e}function Xp(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{var r=t.name.value;if(typeof e=="function")return e(r);var n=e&&e[r];return nt(n,70,r),n||null}default:return null}}function hl(t){return{__ref:String(t)}}function Nt(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}function WD(t){return er(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function GD(t){return t.kind==="StringValue"}function QD(t){return t.kind==="BooleanValue"}function KD(t){return t.kind==="IntValue"}function YD(t){return t.kind==="FloatValue"}function ZD(t){return t.kind==="Variable"}function XD(t){return t.kind==="ObjectValue"}function JD(t){return t.kind==="ListValue"}function eF(t){return t.kind==="EnumValue"}function tF(t){return t.kind==="NullValue"}function Tl(t,e,r,n){if(KD(r)||YD(r))t[e.value]=Number(r.value);else if(QD(r)||GD(r))t[e.value]=r.value;else if(XD(r)){var o={};r.fields.map(function(a){return Tl(o,a.name,a.value,n)}),t[e.value]=o}else if(ZD(r)){var i=(n||{})[r.name.value];t[e.value]=i}else if(JD(r))t[e.value]=r.values.map(function(a){var c={};return Tl(c,e,a,n),c[e.value]});else if(eF(r))t[e.value]=r.value;else if(tF(r))t[e.value]=null;else throw on(79,e.value,r.kind)}function rF(t,e){var r=null;t.directives&&(r={},t.directives.forEach(function(o){r[o.name.value]={},o.arguments&&o.arguments.forEach(function(i){var a=i.name,c=i.value;return Tl(r[o.name.value],a,c,e)})}));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach(function(o){var i=o.name,a=o.value;return Tl(n,i,a,e)})),Zy(t.name.value,n,r)}var nF=["connection","include","skip","client","rest","export","nonreactive"],Zy=Object.assign(function(t,e,r){if(e&&r&&r.connection&&r.connection.key)if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var o={};return n.forEach(function(c){o[c]=e[c]}),"".concat(r.connection.key,"(").concat(Cc(o),")")}else return r.connection.key;var i=t;if(e){var a=Cc(e);i+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(c){nF.indexOf(c)===-1&&(r[c]&&Object.keys(r[c]).length?i+="@".concat(c,"(").concat(Cc(r[c]),")"):i+="@".concat(c))}),i},{setStringify:function(t){var e=Cc;return Cc=t,e}}),Cc=function(e){return JSON.stringify(e,oF)};function oF(t,e){return er(e)&&!Array.isArray(e)&&(e=Object.keys(e).sort().reduce(function(r,n){return r[n]=e[n],r},{})),e}function Jp(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach(function(n){var o=n.name,i=n.value;return Tl(r,o,i,e)}),r}return null}function pa(t){return t.alias?t.alias.value:t.name.value}function lg(t,e,r){for(var n,o=0,i=e.selections;o0}var nw={kind:je.FIELD,name:{kind:je.NAME,value:"__typename"}};function yk(t,e){return!t||t.selectionSet.selections.every(function(r){return r.kind===je.FRAGMENT_SPREAD&&yk(e[r.name.value],e)})}function lF(t){return yk(Nd(t)||aF(t),Zp(eh(t)))?null:t}function cF(t){var e=new Map,r=new Map;return t.forEach(function(n){n&&(n.name?e.set(n.name,n):n.test&&r.set(n.test,n))}),function(n){var o=e.get(n.name.value);return!o&&r.size&&r.forEach(function(i,a){a(n)&&(o=i)}),o}}function ow(t){var e=new Map;return function(n){n===void 0&&(n=t);var o=e.get(n);return o||e.set(n,o={variables:new Set,fragmentSpreads:new Set}),o}}function bk(t,e){Fd(e);for(var r=ow(""),n=ow(""),o=function(v){for(var x=0,E=void 0;x=0;--a)e.definitions[a].kind===je.OPERATION_DEFINITION&&++i;var c=cF(t),d=function(v){return qo(v)&&v.map(c).some(function(x){return x&&x.remove})},u=new Map,f=!1,g={enter:function(v){if(d(v.directives))return f=!0,null}},_=zo(e,{Field:g,InlineFragment:g,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(v,x,E,T,C){var A=o(C);A&&A.variables.add(v.name.value)}},FragmentSpread:{enter:function(v,x,E,T,C){if(d(v.directives))return f=!0,null;var A=o(C);A&&A.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter:function(v,x,E,T){u.set(JSON.stringify(T),v)},leave:function(v,x,E,T){var C=u.get(JSON.stringify(T));if(v===C)return v;if(i>0&&v.selectionSet.selections.every(function(A){return A.kind===je.FIELD&&A.name.value==="__typename"}))return n(v.name.value).removed=!0,f=!0,null}},Directive:{leave:function(v){if(c(v))return f=!0,null}}});if(!f)return e;var b=function(v){return v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(function(x){b(n(x)).transitiveVars.forEach(function(E){v.transitiveVars.add(E)})})),v},h=new Set;_.definitions.forEach(function(v){v.kind===je.OPERATION_DEFINITION?b(r(v.name&&v.name.value)).fragmentSpreads.forEach(function(x){h.add(x)}):v.kind===je.FRAGMENT_DEFINITION&&i===0&&!n(v.name.value).removed&&h.add(v.name.value)}),h.forEach(function(v){b(n(v)).fragmentSpreads.forEach(function(x){h.add(x)})});var m=function(v){return!!(!h.has(v)||n(v).removed)},y={enter:function(v){if(m(v.name.value))return null}};return lF(zo(_,{FragmentSpread:y,FragmentDefinition:y,OperationDefinition:{leave:function(v){if(v.variableDefinitions){var x=b(r(v.name&&v.name.value)).transitiveVars;if(x.size1)for(var n=new ma,o=1;o=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hF(t,e){if(t){if(typeof t=="string")return aw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aw(t,e)}}function aw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1,c=!1,d=arguments[1],u=d;return new i(function(f){return o.subscribe({next:function(g){var _=!c;if(c=!0,!_||a)try{u=n(u,g)}catch(b){return f.error(b)}else u=g},error:function(g){f.error(g)},complete:function(){if(!c&&!a)return f.error(new TypeError("Cannot reduce an empty sequence"));f.next(u),f.complete()}})})},e.concat=function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a=0&&c.splice(_,1),u()}});c.push(g)},error:function(f){a.error(f)},complete:function(){u()}});function u(){d.closed&&c.length===0&&a.complete()}return function(){c.forEach(function(f){return f.unsubscribe()}),d.unsubscribe()}})},e[dg]=function(){return this},t.from=function(n){var o=typeof this=="function"?this:t;if(n==null)throw new TypeError(n+" is not an object");var i=op(n,dg);if(i){var a=i.call(n);if(Object(a)!==a)throw new TypeError(a+" is not an object");return vF(a)&&a.constructor===o?a:new o(function(c){return a.subscribe(c)})}if(nb("iterator")&&(i=op(n,mF),i))return new o(function(c){Nf(function(){if(!c.closed){for(var d=pF(i.call(n)),u;!(u=d()).done;){var f=u.value;if(c.next(f),c.closed)return}c.complete()}})});if(Array.isArray(n))return new o(function(c){Nf(function(){if(!c.closed){for(var d=0;d=0;--c){var d=a[c],u=!isNaN(+d),f=u?[]:{};f[d]=i,i=f}r=n.merge(r,i)}),r}function zf(t){var e=hg(t);return qo(e)}function hg(t){var e=qo(t.errors)?t.errors.slice(0):[];return ml(t)&&qo(t.incremental)&&t.incremental.forEach(function(r){r.errors&&e.push.apply(e,r.errors)}),e}function Cl(){for(var t=[],e=0;e-1;){if(v=void 0,R=[d.slice(0,y),d.slice(y+c.length)],v=R[0],d=R[1],x=v.indexOf(`\r \r -`),E=HF(v.slice(0,x)),T=E["content-type"],T&&T.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(C=v.slice(x),C){if(A=$k(t,C),Object.keys(A).length>1||"data"in A||"incremental"in A||"errors"in A||"payload"in A)AF(A)?(L={},"payload"in A&&(L=re({},A.payload)),"errors"in A&&(L=re(re({},L),{extensions:re(re({},"extensions"in L?L.extensions:null),(D={},D[ib]=A.errors,D))})),e(L)):e(A);else if(Object.keys(A).length===1&&"hasNext"in A&&!A.hasNext)return[2]}y=d.indexOf(c)}return[3,1];case 3:return[2]}})})}function HF(t){var e={};return t.split(` -`).forEach(function(r){var n=r.indexOf(":");if(n>-1){var o=r.slice(0,n).trim().toLowerCase(),i=r.slice(n+1).trim();e[o]=i}}),e}function $k(t,e){if(t.status>=300){var r=function(){try{return JSON.parse(e)}catch{return e}};mg(t,r(),"Response not successful: Received status code ".concat(t.status))}try{return JSON.parse(e)}catch(o){var n=o;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}}function WF(t,e){t.result&&t.result.errors&&t.result.data&&e.next(t.result),e.error(t)}function Ok(t){return function(e){return e.text().then(function(r){return $k(e,r)}).then(function(r){return e.status>=300&&mg(e,r,"Response not successful: Received status code ".concat(e.status)),!Array.isArray(r)&&!pw.call(r,"data")&&!pw.call(r,"errors")&&mg(e,r,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(n){return n.operationName}):t.operationName,"'.")),r})}}var ip=function(t,e){var r;try{r=JSON.stringify(t)}catch(o){var n=on(37,e,o.message);throw n.parseError=o,n}return r},GF={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},QF={accept:"*/*","content-type":"application/json"},KF={method:"POST"},Pk={http:GF,headers:QF,options:KF},Rk=function(t,e){return e(t)};function Lk(t,e){for(var r=[],n=2;n"u")throw on(35)},XF=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var t=new AbortController,e=t.signal;return{controller:t,signal:e}},Mk=function(t,e){var r=t.getContext(),n=r.uri;return n||(typeof e=="function"?e(t):e||"/graphql")};function JF(t,e){var r=[],n=function(g,_){r.push("".concat(g,"=").concat(encodeURIComponent(_)))};if("query"in e&&n("query",e.query),e.operationName&&n("operationName",e.operationName),e.variables){var o=void 0;try{o=ip(e.variables,"Variables map")}catch(g){return{parseError:g}}n("variables",o)}if(e.extensions){var i=void 0;try{i=ip(e.extensions,"Extensions map")}catch(g){return{parseError:g}}n("extensions",i)}var a="",c=t,d=t.indexOf("#");d!==-1&&(a=t.substr(d),c=t.substr(0,d));var u=c.indexOf("?")===-1?"?":"&",f=c+u+r.join("&")+a;return{newURI:f}}var hw=so(function(){return fetch}),eN=function(t){t===void 0&&(t={});var e=t.uri,r=e===void 0?"/graphql":e,n=t.fetch,o=t.print,i=o===void 0?Rk:o,a=t.includeExtensions,c=t.preserveHeaderCase,d=t.useGETForQueries,u=t.includeUnusedVariables,f=u===void 0?!1:u,g=fa(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&ZF(n||hw);var _={http:{includeExtensions:a,preserveHeaderCase:c},options:g.fetchOptions,credentials:g.credentials,headers:g.headers};return new Gl(function(b){var h=Mk(b,r),m=b.getContext(),y={};if(m.clientAwareness){var v=m.clientAwareness,x=v.name,E=v.version;x&&(y["apollographql-client-name"]=x),E&&(y["apollographql-client-version"]=E)}var T=re(re({},y),m.headers),C={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:T};if(gd(["client"],b.query)){var A=wk(b.query);if(!A)return qf(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));b.query=A}var L=Lk(b,i,Pk,_,C),R=L.options,D=L.body;D.variables&&!f&&(D.variables=OF(D.variables,b.query));var q;!R.signal&&typeof AbortController<"u"&&(q=new AbortController,R.signal=q.signal);var H=function(Ce){return Ce.kind==="OperationDefinition"&&Ce.operation==="mutation"},U=function(Ce){return Ce.kind==="OperationDefinition"&&Ce.operation==="subscription"},ce=U(zd(b.query)),Ae=gd(["defer"],b.query);if(d&&!b.query.definitions.some(H)&&(R.method="GET"),Ae||ce){R.headers=R.headers||{};var Le="multipart/mixed;";ce&&Ae&&globalThis.__DEV__!==!1&&nt.warn(36),ce?Le+="boundary=graphql;subscriptionSpec=1.0,application/json":Ae&&(Le+="deferSpec=20220824,application/json"),R.headers.accept=Le}if(R.method==="GET"){var Te=JF(h,D),Ie=Te.newURI,Pe=Te.parseError;if(Pe)return qf(Pe);h=Ie}else try{R.body=ip(D,"Payload")}catch(Ce){return qf(Ce)}return new Wt(function(Ce){var de=n||so(function(){return fetch})||hw,we=Ce.next.bind(Ce);return de(h,R).then(function(ke){var Re;b.setContext({response:ke});var He=(Re=ke.headers)===null||Re===void 0?void 0:Re.get("content-type");return He!==null&&/^multipart\/mixed/i.test(He)?jF(ke,we):Ok(b)(ke).then(we)}).then(function(){q=void 0,Ce.complete()}).catch(function(ke){q=void 0,WF(ke,Ce)}),function(){q&&q.abort()}})})},tN=function(t){Go(e,t);function e(r){r===void 0&&(r={});var n=t.call(this,eN(r).request)||this;return n.options=r,n}return e}(Gl);const{toString:mw,hasOwnProperty:rN}=Object.prototype,vw=Function.prototype.toString,gg=new Map;function rr(t,e){try{return _g(t,e)}finally{gg.clear()}}function _g(t,e){if(t===e)return!0;const r=mw.call(t),n=mw.call(e);if(r!==n)return!1;switch(r){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(_w(t,e))return!0;const o=gw(t),i=gw(e),a=o.length;if(a!==i.length)return!1;for(let c=0;c=0&&t.indexOf(e,r)===r}function _w(t,e){let r=gg.get(t);if(r){if(r.has(e))return!0}else gg.set(t,r=new Set);return r.add(e),!1}function aN(){}let sN=class{constructor(e=1/0,r=aN){this.max=e,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:o}=r;o&&(o.older=n),n&&(n.newer=o),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=o)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const r=this.map.get(e);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(e),this.dispose(r.value,e),!0):!1}};var Mr=null,yw={},lN=1,cN=function(){return function(){function t(){this.id=["slot",lN++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return t.prototype.hasValue=function(){for(var e=Mr;e;e=e.parent)if(this.id in e.slots){var r=e.slots[this.id];if(r===yw)break;return e!==Mr&&(Mr.slots[this.id]=r),!0}return Mr&&(Mr.slots[this.id]=yw),!1},t.prototype.getValue=function(){if(this.hasValue())return Mr.slots[this.id]},t.prototype.withValue=function(e,r,n,o){var i,a=(i={__proto__:null},i[this.id]=e,i),c=Mr;Mr={parent:c,slots:a};try{return r.apply(o,n)}finally{Mr=c}},t.bind=function(e){var r=Mr;return function(){var n=Mr;try{return Mr=r,e.apply(this,arguments)}finally{Mr=n}}},t.noContext=function(e,r,n){if(Mr){var o=Mr;try{return Mr=null,e.apply(n,r)}finally{Mr=o}}else return e.apply(n,r)},t}()};function bw(t){try{return t()}catch{}}var iv="@wry/context:Slot",dN=bw(function(){return globalThis})||bw(function(){return global})||Object.create(null),xw=dN,ab=xw[iv]||Array[iv]||function(t){try{Object.defineProperty(xw,iv,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(cN());ab.bind;ab.noContext;const th=new ab,{hasOwnProperty:uN}=Object.prototype,sb=Array.from||function(t){const e=[];return t.forEach(r=>e.push(r)),e};function ap(t){const{unsubscribe:e}=t;typeof e=="function"&&(t.unsubscribe=void 0,e())}const _d=[],fN=100;function Al(t,e){if(!t)throw new Error(e||"assertion failure")}function pN(t,e){const r=t.length;return r>0&&r===e.length&&t[r-1]===e[r-1]}function Dk(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function hN(t){return t.slice(0)}class rh{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++rh.count}peek(){if(this.value.length===1&&!va(this))return ww(this),this.value[0]}recompute(e){return Al(!this.recomputing,"already recomputing"),ww(this),va(this)?mN(this,e):Dk(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,Fk(this),ap(this))}dispose(){this.setDirty(),Uk(this),lb(this,(e,r)=>{e.setDirty(),Vk(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=_d.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(sb(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),_d.push(this.deps),this.deps=null)}}rh.count=0;function ww(t){const e=th.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),va(t)?zk(e,t):qk(e,t),e}function mN(t,e){return Uk(t),th.withValue(t,vN,[t,e]),_N(t,e)&&gN(t),Dk(t.value)}function vN(t,e){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,e)}catch(r){t.value[1]=r}t.recomputing=!1}function va(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function gN(t){t.dirty=!1,!va(t)&&Nk(t)}function Fk(t){lb(t,zk)}function Nk(t){lb(t,qk)}function lb(t,e){const r=t.parents.size;if(r){const n=sb(t.parents);for(let o=0;o0&&t.childValues.forEach((e,r)=>{Vk(t,r)}),t.forgetDeps(),Al(t.dirtyChildren===null)}function Vk(t,e){e.parents.delete(t),t.childValues.delete(e),Bk(t,e)}function _N(t,e){if(typeof t.subscribe=="function")try{ap(t),t.unsubscribe=t.subscribe.apply(null,e)}catch{return t.setDirty(),!1}return!0}const yN={setDirty:!0,dispose:!0,forget:!0};function jk(t){const e=new Map,r=t&&t.subscribe;function n(o){const i=th.getValue();if(i){let a=e.get(o);a||e.set(o,a=new Set),i.dependOn(a),typeof r=="function"&&(ap(a),a.unsubscribe=r(o))}}return n.dirty=function(i,a){const c=e.get(i);if(c){const d=a&&uN.call(yN,a)?a:"setDirty";sb(c).forEach(u=>u[d]()),e.delete(i),ap(c)}},n}let Ew;function bN(...t){return(Ew||(Ew=new Ea(typeof WeakMap=="function"))).lookupArray(t)}const av=new Set;function sp(t,{max:e=Math.pow(2,16),makeCacheKey:r=bN,keyArgs:n,subscribe:o}=Object.create(null)){const i=new sN(e,f=>f.dispose()),a=function(){const f=r.apply(null,n?n.apply(null,arguments):arguments);if(f===void 0)return t.apply(null,arguments);let g=i.get(f);g||(i.set(f,g=new rh(t)),g.subscribe=o,g.forget=()=>i.delete(f));const _=g.recompute(Array.prototype.slice.call(arguments));return i.set(f,g),av.add(i),th.hasValue()||(av.forEach(b=>b.clean()),av.clear()),_};Object.defineProperty(a,"size",{get(){return i.map.size},configurable:!1,enumerable:!1}),Object.freeze(a.options={max:e,makeCacheKey:r,keyArgs:n,subscribe:o});function c(f){const g=i.get(f);g&&g.setDirty()}a.dirtyKey=c,a.dirty=function(){c(r.apply(null,arguments))};function d(f){const g=i.get(f);if(g)return g.peek()}a.peekKey=d,a.peek=function(){return d(r.apply(null,arguments))};function u(f){return i.delete(f)}return a.forgetKey=u,a.forget=function(){return u(r.apply(null,arguments))},a.makeCacheKey=r,a.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(a)}var xN=function(){function t(){this.assumeImmutableResults=!1,this.getFragmentDoc=sp(WD)}return t.prototype.batch=function(e){var r=this,n=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0,o;return this.performTransaction(function(){return o=e.update(r)},n),o},t.prototype.recordOptimisticTransaction=function(e,r){this.performTransaction(e,r)},t.prototype.transformDocument=function(e){return e},t.prototype.transformForLink=function(e){return e},t.prototype.identify=function(e){},t.prototype.gc=function(){return[]},t.prototype.modify=function(e){return!1},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!!e.optimistic),this.read(re(re({},e),{rootId:e.id||"ROOT_QUERY",optimistic:r}))},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!!e.optimistic),this.read(re(re({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:r}))},t.prototype.writeQuery=function(e){var r=e.id,n=e.data,o=fa(e,["id","data"]);return this.write(Object.assign(o,{dataId:r||"ROOT_QUERY",result:n}))},t.prototype.writeFragment=function(e){var r=e.id,n=e.data,o=e.fragment,i=e.fragmentName,a=fa(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(o,i),dataId:r,result:n}))},t.prototype.updateQuery=function(e,r){return this.batch({update:function(n){var o=n.readQuery(e),i=r(o);return i==null?o:(n.writeQuery(re(re({},e),{data:i})),i)}})},t.prototype.updateFragment=function(e,r){return this.batch({update:function(n){var o=n.readFragment(e),i=r(o);return i==null?o:(n.writeFragment(re(re({},e),{data:i})),i)}})},t}(),Hk=function(t){Go(e,t);function e(r,n,o,i){var a,c=t.call(this,r)||this;if(c.message=r,c.path=n,c.query=o,c.variables=i,Array.isArray(c.path)){c.missing=c.message;for(var d=c.path.length-1;d>=0;--d)c.missing=(a={},a[c.path[d]]=c.missing,a)}else c.missing=c.path;return c.__proto__=e.prototype,c}return e}(Error),Ar=Object.prototype.hasOwnProperty;function Ic(t){return t==null}function Wk(t,e){var r=t.__typename,n=t.id,o=t._id;if(typeof r=="string"&&(e&&(e.keyObject=Ic(n)?Ic(o)?void 0:{_id:o}:{id:n}),Ic(n)&&!Ic(o)&&(n=o),!Ic(n)))return"".concat(r,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var Gk={dataIdFromObject:Wk,addTypename:!0,resultCaching:!0,canonizeResults:!1};function wN(t){return Cl(Gk,t)}function Qk(t){var e=t.canonizeResults;return e===void 0?Gk.canonizeResults:e}function EN(t,e){return Nt(e)?t.get(e.__ref,"__typename"):e&&e.__typename}var Kk=/^[_a-z][_0-9a-z]*/i;function ga(t){var e=t.match(Kk);return e?e[0]:t}function yg(t,e,r){return er(e)?ir(e)?e.every(function(n){return yg(t,n,r)}):t.selections.every(function(n){if(ha(n)&&Dd(n,r)){var o=pa(n);return Ar.call(e,o)&&(!n.selectionSet||yg(n.selectionSet,e[o],r))}return!0}):!1}function sl(t){return er(t)&&!Nt(t)&&!ir(t)}function TN(){return new ma}function Yk(t,e){var r=Zp(eh(t));return{fragmentMap:r,lookupFragment:function(n){var o=r[n];return!o&&e&&(o=e.lookup(n)),o||null}}}var Bf=Object.create(null),sv=function(){return Bf},Tw=Object.create(null),yd=function(){function t(e,r){var n=this;this.policies=e,this.group=r,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(o,i){return pg(Nt(o)?n.get(o.__ref,i):o&&o[i])},this.canRead=function(o){return Nt(o)?n.has(o.__ref):typeof o=="object"},this.toReference=function(o,i){if(typeof o=="string")return hl(o);if(Nt(o))return o;var a=n.policies.identify(o)[0];if(a){var c=hl(a);return i&&n.merge(a,o),c}}}return t.prototype.toObject=function(){return re({},this.data)},t.prototype.has=function(e){return this.lookup(e,!0)!==void 0},t.prototype.get=function(e,r){if(this.group.depend(e,r),Ar.call(this.data,e)){var n=this.data[e];if(n&&Ar.call(n,r))return n[r]}if(r==="__typename"&&Ar.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof Gi)return this.parent.get(e,r)},t.prototype.lookup=function(e,r){if(r&&this.group.depend(e,"__exists"),Ar.call(this.data,e))return this.data[e];if(this instanceof Gi)return this.parent.lookup(e,r);if(this.policies.rootTypenamesById[e])return Object.create(null)},t.prototype.merge=function(e,r){var n=this,o;Nt(e)&&(e=e.__ref),Nt(r)&&(r=r.__ref);var i=typeof e=="string"?this.lookup(o=e):e,a=typeof r=="string"?this.lookup(o=r):r;if(a){nt(typeof o=="string",1);var c=new ma(CN).merge(i,a);if(this.data[o]=c,c!==i&&(delete this.refs[o],this.group.caching)){var d=Object.create(null);i||(d.__exists=1),Object.keys(a).forEach(function(u){if(!i||i[u]!==c[u]){d[u]=1;var f=ga(u);f!==u&&!n.policies.hasKeyArgs(c.__typename,f)&&(d[f]=1),c[u]===void 0&&!(n instanceof Gi)&&delete c[u]}}),d.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[o]===c.__typename&&delete d.__typename,Object.keys(d).forEach(function(u){return n.group.dirty(o,u)})}}},t.prototype.modify=function(e,r){var n=this,o=this.lookup(e);if(o){var i=Object.create(null),a=!1,c=!0,d={DELETE:Bf,INVALIDATE:Tw,isReference:Nt,toReference:this.toReference,canRead:this.canRead,readField:function(u,f){return n.policies.readField(typeof u=="string"?{fieldName:u,from:f||hl(e)}:u,{store:n})}};if(Object.keys(o).forEach(function(u){var f=ga(u),g=o[u];if(g!==void 0){var _=typeof r=="function"?r:r[u]||r[f];if(_){var b=_===sv?Bf:_(pg(g),re(re({},d),{fieldName:f,storeFieldName:u,storage:n.getStorage(e,u)}));b===Tw?n.group.dirty(e,u):(b===Bf&&(b=void 0),b!==g&&(i[u]=b,a=!0,g=b))}g!==void 0&&(c=!1)}}),a)return this.merge(e,i),c&&(this instanceof Gi?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},t.prototype.delete=function(e,r,n){var o,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),c=r&&n?this.policies.getStoreFieldName({typename:a,fieldName:r,args:n}):r;return this.modify(e,c?(o={},o[c]=sv,o):sv)}return!1},t.prototype.evict=function(e,r){var n=!1;return e.id&&(Ar.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Gi&&this!==r&&(n=this.parent.evict(e,r)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},t.prototype.clear=function(){this.replace(null)},t.prototype.extract=function(){var e=this,r=this.toObject(),n=[];return this.getRootIdSet().forEach(function(o){Ar.call(e.policies.rootTypenamesById,o)||n.push(o)}),n.length&&(r.__META={extraRootIds:n.sort()}),r},t.prototype.replace=function(e){var r=this;if(Object.keys(this.data).forEach(function(i){e&&Ar.call(e,i)||r.delete(i)}),e){var n=e.__META,o=fa(e,["__META"]);Object.keys(o).forEach(function(i){r.merge(i,o[i])}),n&&n.extraRootIds.forEach(this.retain,this)}},t.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},t.prototype.release=function(e){if(this.rootIds[e]>0){var r=--this.rootIds[e];return r||delete this.rootIds[e],r}return 0},t.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Gi?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},t.prototype.gc=function(){var e=this,r=this.getRootIdSet(),n=this.toObject();r.forEach(function(a){Ar.call(n,a)&&(Object.keys(e.findChildRefIds(a)).forEach(r.add,r),delete n[a])});var o=Object.keys(n);if(o.length){for(var i=this;i instanceof Gi;)i=i.parent;o.forEach(function(a){return i.delete(a)})}return o},t.prototype.findChildRefIds=function(e){if(!Ar.call(this.refs,e)){var r=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return r;var o=new Set([n]);o.forEach(function(i){Nt(i)&&(r[i.__ref]=!0),er(i)&&Object.keys(i).forEach(function(a){var c=i[a];er(c)&&o.add(c)})})}return this.refs[e]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),Zk=function(){function t(e,r){r===void 0&&(r=null),this.caching=e,this.parent=r,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?jk():null,this.keyMaker=new Ea(xi)},t.prototype.depend=function(e,r){if(this.d){this.d(lv(e,r));var n=ga(r);n!==r&&this.d(lv(e,n)),this.parent&&this.parent.depend(e,r)}},t.prototype.dirty=function(e,r){this.d&&this.d.dirty(lv(e,r),r==="__exists"?"forget":"setDirty")},t}();function lv(t,e){return e+"#"+t}function kw(t,e){Wc(t)&&t.group.depend(e,"__exists")}(function(t){var e=function(r){Go(n,r);function n(o){var i=o.policies,a=o.resultCaching,c=a===void 0?!0:a,d=o.seed,u=r.call(this,i,new Zk(c))||this;return u.stump=new kN(u),u.storageTrie=new Ea(xi),d&&u.replace(d),u}return n.prototype.addLayer=function(o,i){return this.stump.addLayer(o,i)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n}(t);t.Root=e})(yd||(yd={}));var Gi=function(t){Go(e,t);function e(r,n,o,i){var a=t.call(this,n.policies,i)||this;return a.id=r,a.parent=n,a.replay=o,a.group=i,o(a),a}return e.prototype.addLayer=function(r,n){return new e(r,this,n,this.group)},e.prototype.removeLayer=function(r){var n=this,o=this.parent.removeLayer(r);return r===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(i){var a=n.data[i],c=o.lookup(i);c?a?a!==c&&Object.keys(a).forEach(function(d){rr(a[d],c[d])||n.group.dirty(i,d)}):(n.group.dirty(i,"__exists"),Object.keys(c).forEach(function(d){n.group.dirty(i,d)})):n.delete(i)}),o):o===this.parent?this:o.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return re(re({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(r){var n=this.parent.findChildRefIds(r);return Ar.call(this.data,r)?re(re({},n),t.prototype.findChildRefIds.call(this,r)):n},e.prototype.getStorage=function(){for(var r=this.parent;r.parent;)r=r.parent;return r.getStorage.apply(r,arguments)},e}(yd),kN=function(t){Go(e,t);function e(r){return t.call(this,"EntityStore.Stump",r,function(){},new Zk(r.group.caching,r.group))||this}return e.prototype.removeLayer=function(){return this},e.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},e}(Gi);function CN(t,e,r){var n=t[r],o=e[r];return rr(n,o)?n:o}function Wc(t){return!!(t instanceof yd&&t.group.caching)}function AN(t){return er(t)?ir(t)?t.slice(0):re({__proto__:Object.getPrototypeOf(t)},t):t}var bg=function(){function t(){this.known=new(mk?WeakSet:Set),this.pool=new Ea(xi),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return t.prototype.isKnown=function(e){return er(e)&&this.known.has(e)},t.prototype.pass=function(e){if(er(e)){var r=AN(e);return this.passes.set(r,e),r}return e},t.prototype.admit=function(e){var r=this;if(er(e)){var n=this.passes.get(e);if(n)return n;var o=Object.getPrototypeOf(e);switch(o){case Array.prototype:{if(this.known.has(e))return e;var i=e.map(this.admit,this),a=this.pool.lookupArray(i);return a.array||(this.known.add(a.array=i),globalThis.__DEV__!==!1&&Object.freeze(i)),a.array}case null:case Object.prototype:{if(this.known.has(e))return e;var c=Object.getPrototypeOf(e),d=[c],u=this.sortedKeys(e);d.push(u.json);var f=d.length;u.sorted.forEach(function(b){d.push(r.admit(e[b]))});var a=this.pool.lookupArray(d);if(!a.object){var g=a.object=Object.create(c);this.known.add(g),u.sorted.forEach(function(b,h){g[b]=d[f+h]}),globalThis.__DEV__!==!1&&Object.freeze(g)}return a.object}}}return e},t.prototype.sortedKeys=function(e){var r=Object.keys(e),n=this.pool.lookupArray(r);if(!n.keys){r.sort();var o=JSON.stringify(r);(n.keys=this.keysByJSON.get(o))||this.keysByJSON.set(o,n.keys={sorted:r,json:o})}return n.keys},t}(),is=Object.assign(function(t){if(er(t)){xg===void 0&&Cw();var e=xg.admit(t),r=wg.get(e);return r===void 0&&wg.set(e,r=JSON.stringify(e)),r}return JSON.stringify(t)},{reset:Cw}),xg,wg;function Cw(){xg=new bg,wg=new(xi?WeakMap:Map)}function Aw(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var SN=function(){function t(e){var r=this;this.knownResults=new(xi?WeakMap:Map),this.config=Cl(e,{addTypename:e.addTypename!==!1,canonizeResults:Qk(e)}),this.canon=e.canon||new bg,this.executeSelectionSet=sp(function(n){var o,i=n.context.canonizeResults,a=Aw(n);a[3]=!i;var c=(o=r.executeSelectionSet).peek.apply(o,a);return c?i?re(re({},c),{result:r.canon.admit(c.result)}):c:(kw(n.context.store,n.enclosingRef.__ref),r.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize,keyArgs:Aw,makeCacheKey:function(n,o,i,a){if(Wc(i.store))return i.store.makeCacheKey(n,Nt(o)?o.__ref:o,i.varString,a)}}),this.executeSubSelectedArray=sp(function(n){return kw(n.context.store,n.enclosingRef.__ref),r.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(n){var o=n.field,i=n.array,a=n.context;if(Wc(a.store))return a.store.makeCacheKey(o,i,a.varString)}})}return t.prototype.resetCanon=function(){this.canon=new bg},t.prototype.diffQueryAgainstStore=function(e){var r=e.store,n=e.query,o=e.rootId,i=o===void 0?"ROOT_QUERY":o,a=e.variables,c=e.returnPartialData,d=c===void 0?!0:c,u=e.canonizeResults,f=u===void 0?this.config.canonizeResults:u,g=this.config.cache.policies;a=re(re({},Xy(gk(n))),a);var _=hl(i),b=this.executeSelectionSet({selectionSet:zd(n).selectionSet,objectOrReference:_,enclosingRef:_,context:re({store:r,query:n,policies:g,variables:a,varString:is(a),canonizeResults:f},Yk(n,this.config.fragments))}),h;if(b.missing&&(h=[new Hk(IN(b.missing),b.missing,n,a)],!d))throw h[0];return{result:b.result,complete:!h,missing:h}},t.prototype.isFresh=function(e,r,n,o){if(Wc(o.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,r,o,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(e){var r=this,n=e.selectionSet,o=e.objectOrReference,i=e.enclosingRef,a=e.context;if(Nt(o)&&!a.policies.rootTypenamesById[o.__ref]&&!a.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var c=a.variables,d=a.policies,u=a.store,f=u.getFieldValue(o,"__typename"),g=[],_,b=new ma;this.config.addTypename&&typeof f=="string"&&!d.rootIdsByTypename[f]&&g.push({__typename:f});function h(E,T){var C;return E.missing&&(_=b.merge(_,(C={},C[T]=E.missing,C))),E.result}var m=new Set(n.selections);m.forEach(function(E){var T,C;if(Dd(E,c))if(ha(E)){var A=d.readField({fieldName:E.name.value,field:E,variables:a.variables,from:o},a),L=pa(E);A===void 0?Jy.added(E)||(_=b.merge(_,(T={},T[L]="Can't find field '".concat(E.name.value,"' on ").concat(Nt(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),T))):ir(A)?A=h(r.executeSubSelectedArray({field:E,array:A,enclosingRef:i,context:a}),L):E.selectionSet?A!=null&&(A=h(r.executeSelectionSet({selectionSet:E.selectionSet,objectOrReference:A,enclosingRef:Nt(A)?A:i,context:a}),L)):a.canonizeResults&&(A=r.canon.pass(A)),A!==void 0&&g.push((C={},C[L]=A,C))}else{var R=Xp(E,a.lookupFragment);if(!R&&E.kind===je.FRAGMENT_SPREAD)throw on(7,E.name.value);R&&d.fragmentMatches(R,f)&&R.selectionSet.selections.forEach(m.add,m)}});var y=eb(g),v={result:y,missing:_},x=a.canonizeResults?this.canon.admit(v):pg(v);return x.result&&this.knownResults.set(x.result,n),x},t.prototype.execSubSelectedArrayImpl=function(e){var r=this,n=e.field,o=e.array,i=e.enclosingRef,a=e.context,c,d=new ma;function u(f,g){var _;return f.missing&&(c=d.merge(c,(_={},_[g]=f.missing,_))),f.result}return n.selectionSet&&(o=o.filter(a.store.canRead)),o=o.map(function(f,g){return f===null?null:ir(f)?u(r.executeSubSelectedArray({field:n,array:f,enclosingRef:i,context:a}),g):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:f,enclosingRef:Nt(f)?f:i,context:a}),g):(globalThis.__DEV__!==!1&&$N(a.store,n,f),f)}),{result:a.canonizeResults?this.canon.admit(o):o,missing:c}},t}();function IN(t){try{JSON.stringify(t,function(e,r){if(typeof r=="string")throw r;return r})}catch(e){return e}}function $N(t,e,r){if(!e.selectionSet){var n=new Set([r]);n.forEach(function(o){er(o)&&(nt(!Nt(o),8,EN(t,o),e.name.value),Object.values(o).forEach(n.add,n))})}}let Dr=null;const Sw={};let ON=1;const PN=()=>class{constructor(){this.id=["slot",ON++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Dr;e;e=e.parent)if(this.id in e.slots){const r=e.slots[this.id];if(r===Sw)break;return e!==Dr&&(Dr.slots[this.id]=r),!0}return Dr&&(Dr.slots[this.id]=Sw),!1}getValue(){if(this.hasValue())return Dr.slots[this.id]}withValue(e,r,n,o){const i={__proto__:null,[this.id]:e},a=Dr;Dr={parent:a,slots:i};try{return r.apply(o,n)}finally{Dr=a}}static bind(e){const r=Dr;return function(){const n=Dr;try{return Dr=r,e.apply(this,arguments)}finally{Dr=n}}}static noContext(e,r,n){if(Dr){const o=Dr;try{return Dr=null,e.apply(n,r)}finally{Dr=o}}else return e.apply(n,r)}};function Iw(t){try{return t()}catch{}}const cv="@wry/context:Slot",RN=Iw(()=>globalThis)||Iw(()=>global)||Object.create(null),$w=RN,LN=$w[cv]||Array[cv]||function(t){try{Object.defineProperty($w,cv,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(PN());var cb=new LN,Ow=new WeakMap;function Gc(t){var e=Ow.get(t);return e||Ow.set(t,e={vars:new Set,dep:jk()}),e}function Pw(t){Gc(t).vars.forEach(function(e){return e.forgetCache(t)})}function MN(t){Gc(t).vars.forEach(function(e){return e.attachCache(t)})}function DN(t){var e=new Set,r=new Set,n=function(i){if(arguments.length>0){if(t!==i){t=i,e.forEach(function(d){Gc(d).dep.dirty(n),FN(d)});var a=Array.from(r);r.clear(),a.forEach(function(d){return d(t)})}}else{var c=cb.getValue();c&&(o(c),Gc(c).dep(n))}return t};n.onNextChange=function(i){return r.add(i),function(){r.delete(i)}};var o=n.attachCache=function(i){return e.add(i),Gc(i).vars.add(n),n};return n.forgetCache=function(i){return e.delete(i)},n}function FN(t){t.broadcastWatches&&t.broadcastWatches()}var Rw=Object.create(null);function db(t){var e=JSON.stringify(t);return Rw[e]||(Rw[e]=Object.create(null))}function Lw(t){var e=db(t);return e.keyFieldsFn||(e.keyFieldsFn=function(r,n){var o=function(a,c){return n.readField(c,a)},i=n.keyObject=ub(t,function(a){var c=vl(n.storeObject,a,o);return c===void 0&&r!==n.storeObject&&Ar.call(r,a[0])&&(c=vl(r,a,Jk)),nt(c!==void 0,2,a.join("."),r),c});return"".concat(n.typename,":").concat(JSON.stringify(i))})}function Mw(t){var e=db(t);return e.keyArgsFn||(e.keyArgsFn=function(r,n){var o=n.field,i=n.variables,a=n.fieldName,c=ub(t,function(u){var f=u[0],g=f.charAt(0);if(g==="@"){if(o&&qo(o.directives)){var _=f.slice(1),b=o.directives.find(function(v){return v.name.value===_}),h=b&&Jp(b,i);return h&&vl(h,u.slice(1))}return}if(g==="$"){var m=f.slice(1);if(i&&Ar.call(i,m)){var y=u.slice(0);return y[0]=m,vl(i,y)}return}if(r)return vl(r,u)}),d=JSON.stringify(c);return(r||d!=="{}")&&(a+=":"+d),a})}function ub(t,e){var r=new ma;return Xk(t).reduce(function(n,o){var i,a=e(o);if(a!==void 0){for(var c=o.length-1;c>=0;--c)a=(i={},i[o[c]]=a,i);n=r.merge(n,a)}return n},Object.create(null))}function Xk(t){var e=db(t);if(!e.paths){var r=e.paths=[],n=[];t.forEach(function(o,i){ir(o)?(Xk(o).forEach(function(a){return r.push(n.concat(a))}),n.length=0):(n.push(o),ir(t[i+1])||(r.push(n.slice(0)),n.length=0))})}return e.paths}function Jk(t,e){return t[e]}function vl(t,e,r){return r=r||Jk,eC(e.reduce(function n(o,i){return ir(o)?o.map(function(a){return n(a,i)}):o&&r(o,i)},t))}function eC(t){return er(t)?ir(t)?t.map(eC):ub(Object.keys(t).sort(),function(e){return vl(t,e)}):t}Zy.setStringify(is);function Eg(t){return t.args!==void 0?t.args:t.field?Jp(t.field,t.variables):null}var NN=function(){},Dw=function(t,e){return e.fieldName},Fw=function(t,e,r){var n=r.mergeObjects;return n(t,e)},Nw=function(t,e){return e},zN=function(){function t(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=re({dataIdFromObject:Wk},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return t.prototype.identify=function(e,r){var n,o=this,i=r&&(r.typename||((n=r.storeObject)===null||n===void 0?void 0:n.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=r&&r.storeObject||e,c=re(re({},r),{typename:i,storeObject:a,readField:r&&r.readField||function(){var _=fb(arguments,a);return o.readField(_,{store:o.cache.data,variables:_.variables})}}),d,u=i&&this.getTypePolicy(i),f=u&&u.keyFn||this.config.dataIdFromObject;f;){var g=f(re(re({},e),a),c);if(ir(g))f=Lw(g);else{d=g;break}}return d=d?String(d):void 0,c.keyObject?[d,c.keyObject]:[d]},t.prototype.addTypePolicies=function(e){var r=this;Object.keys(e).forEach(function(n){var o=e[n],i=o.queryType,a=o.mutationType,c=o.subscriptionType,d=fa(o,["queryType","mutationType","subscriptionType"]);i&&r.setRootTypename("Query",n),a&&r.setRootTypename("Mutation",n),c&&r.setRootTypename("Subscription",n),Ar.call(r.toBeAdded,n)?r.toBeAdded[n].push(d):r.toBeAdded[n]=[d]})},t.prototype.updateTypePolicy=function(e,r){var n=this,o=this.getTypePolicy(e),i=r.keyFields,a=r.fields;function c(d,u){d.merge=typeof u=="function"?u:u===!0?Fw:u===!1?Nw:d.merge}c(o,r.merge),o.keyFn=i===!1?NN:ir(i)?Lw(i):typeof i=="function"?i:o.keyFn,a&&Object.keys(a).forEach(function(d){var u=n.getFieldPolicy(e,d,!0),f=a[d];if(typeof f=="function")u.read=f;else{var g=f.keyArgs,_=f.read,b=f.merge;u.keyFn=g===!1?Dw:ir(g)?Mw(g):typeof g=="function"?g:u.keyFn,typeof _=="function"&&(u.read=_),c(u,b)}u.read&&u.merge&&(u.keyFn=u.keyFn||Dw)})},t.prototype.setRootTypename=function(e,r){r===void 0&&(r=e);var n="ROOT_"+e.toUpperCase(),o=this.rootTypenamesById[n];r!==o&&(nt(!o||o===e,3,e),o&&delete this.rootIdsByTypename[o],this.rootIdsByTypename[r]=n,this.rootTypenamesById[n]=r)},t.prototype.addPossibleTypes=function(e){var r=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){r.getSupertypeSet(n,!0),e[n].forEach(function(o){r.getSupertypeSet(o,!0).add(n);var i=o.match(Kk);(!i||i[0]!==o)&&r.fuzzySubtypes.set(o,new RegExp(o))})})},t.prototype.getTypePolicy=function(e){var r=this;if(!Ar.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var o=this.supertypeMap.get(e);!o&&this.fuzzySubtypes.size&&(o=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(a,c){if(a.test(e)){var d=r.supertypeMap.get(c);d&&d.forEach(function(u){return o.add(u)})}})),o&&o.size&&o.forEach(function(a){var c=r.getTypePolicy(a),d=c.fields,u=fa(c,["fields"]);Object.assign(n,u),Object.assign(n.fields,d)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(a){r.updateTypePolicy(e,a)}),this.typePolicies[e]},t.prototype.getFieldPolicy=function(e,r,n){if(e){var o=this.getTypePolicy(e).fields;return o[r]||n&&(o[r]=Object.create(null))}},t.prototype.getSupertypeSet=function(e,r){var n=this.supertypeMap.get(e);return!n&&r&&this.supertypeMap.set(e,n=new Set),n},t.prototype.fragmentMatches=function(e,r,n,o){var i=this;if(!e.typeCondition)return!0;if(!r)return!1;var a=e.typeCondition.name.value;if(r===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var c=this.getSupertypeSet(r,!0),d=[c],u=function(h){var m=i.getSupertypeSet(h,!1);m&&m.size&&d.indexOf(m)<0&&d.push(m)},f=!!(n&&this.fuzzySubtypes.size),g=!1,_=0;_1?o:e}:(a=re({},n),Ar.call(a,"from")||(a.from=e)),globalThis.__DEV__!==!1&&a.from===void 0&&globalThis.__DEV__!==!1&&nt.warn(5,tk(Array.from(t))),a.variables===void 0&&(a.variables=r),a}function tC(t){return function(r,n){if(ir(r)||ir(n))throw on(6);if(er(r)&&er(n)){var o=t.getFieldValue(r,"__typename"),i=t.getFieldValue(n,"__typename"),a=o&&i&&o!==i;if(a)return n;if(Nt(r)&&sl(n))return t.merge(r.__ref,n),r;if(sl(r)&&Nt(n))return t.merge(r,n.__ref),n;if(sl(r)&&sl(n))return re(re({},r),n)}return n}}function dv(t,e,r){var n="".concat(e).concat(r),o=t.flavors.get(n);return o||t.flavors.set(n,o=t.clientOnly===e&&t.deferred===r?t:re(re({},t),{clientOnly:e,deferred:r})),o}var qN=function(){function t(e,r,n){this.cache=e,this.reader=r,this.fragments=n}return t.prototype.writeToStore=function(e,r){var n=this,o=r.query,i=r.result,a=r.dataId,c=r.variables,d=r.overwrite,u=Nd(o),f=TN();c=re(re({},Xy(u)),c);var g=re(re({store:e,written:Object.create(null),merge:function(b,h){return f.merge(b,h)},variables:c,varString:is(c)},Yk(o,this.fragments)),{overwrite:!!d,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),_=this.processSelectionSet({result:i||Object.create(null),dataId:a,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:g});if(!Nt(_))throw on(9,i);return g.incomingById.forEach(function(b,h){var m=b.storeObject,y=b.mergeTree,v=b.fieldNodeSet,x=hl(h);if(y&&y.map.size){var E=n.applyMerges(y,x,m,g);if(Nt(E))return;m=E}if(globalThis.__DEV__!==!1&&!g.overwrite){var T=Object.create(null);v.forEach(function(L){L.selectionSet&&(T[L.name.value]=!0)});var C=function(L){return T[ga(L)]===!0},A=function(L){var R=y&&y.map.get(L);return!!(R&&R.info&&R.info.merge)};Object.keys(m).forEach(function(L){C(L)&&!A(L)&&BN(x,m,L,g.store)})}e.merge(h,m)}),e.retain(_.__ref),_},t.prototype.processSelectionSet=function(e){var r=this,n=e.dataId,o=e.result,i=e.selectionSet,a=e.context,c=e.mergeTree,d=this.cache.policies,u=Object.create(null),f=n&&d.rootTypenamesById[n]||lg(o,i,a.fragmentMap)||n&&a.store.get(n,"__typename");typeof f=="string"&&(u.__typename=f);var g=function(){var E=fb(arguments,u,a.variables);if(Nt(E.from)){var T=a.incomingById.get(E.from.__ref);if(T){var C=d.readField(re(re({},E),{from:T.storeObject}),a);if(C!==void 0)return C}}return d.readField(E,a)},_=new Set;this.flattenFields(i,o,a,f).forEach(function(E,T){var C,A=pa(T),L=o[A];if(_.add(T),L!==void 0){var R=d.getStoreFieldName({typename:f,fieldName:T.name.value,field:T,variables:E.variables}),D=qw(c,R),q=r.processFieldValue(L,T,T.selectionSet?dv(E,!1,!1):E,D),H=void 0;T.selectionSet&&(Nt(q)||sl(q))&&(H=g("__typename",q));var U=d.getMergeFunction(f,T.name.value,H);U?D.info={field:T,typename:f,merge:U}:Bw(c,R),u=E.merge(u,(C={},C[R]=q,C))}else globalThis.__DEV__!==!1&&!E.clientOnly&&!E.deferred&&!Jy.added(T)&&!d.getReadFunction(f,T.name.value)&&globalThis.__DEV__!==!1&&nt.error(10,pa(T),o)});try{var b=d.identify(o,{typename:f,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:u,readField:g}),h=b[0],m=b[1];n=n||h,m&&(u=a.merge(u,m))}catch(E){if(!n)throw E}if(typeof n=="string"){var y=hl(n),v=a.written[n]||(a.written[n]=[]);if(v.indexOf(i)>=0||(v.push(i),this.reader&&this.reader.isFresh(o,y,i,a)))return y;var x=a.incomingById.get(n);return x?(x.storeObject=a.merge(x.storeObject,u),x.mergeTree=Tg(x.mergeTree,c),_.forEach(function(E){return x.fieldNodeSet.add(E)})):a.incomingById.set(n,{storeObject:u,mergeTree:lp(c)?void 0:c,fieldNodeSet:_}),y}return u},t.prototype.processFieldValue=function(e,r,n,o){var i=this;return!r.selectionSet||e===null?globalThis.__DEV__!==!1?Ck(e):e:ir(e)?e.map(function(a,c){var d=i.processFieldValue(a,r,n,qw(o,c));return Bw(o,c),d}):this.processSelectionSet({result:e,selectionSet:r.selectionSet,context:n,mergeTree:o})},t.prototype.flattenFields=function(e,r,n,o){o===void 0&&(o=lg(r,e,n.fragmentMap));var i=new Map,a=this.cache.policies,c=new Ea(!1);return function d(u,f){var g=c.lookup(u,f.clientOnly,f.deferred);g.visited||(g.visited=!0,u.selections.forEach(function(_){if(Dd(_,n.variables)){var b=f.clientOnly,h=f.deferred;if(!(b&&h)&&qo(_.directives)&&_.directives.forEach(function(v){var x=v.name.value;if(x==="client"&&(b=!0),x==="defer"){var E=Jp(v,n.variables);(!E||E.if!==!1)&&(h=!0)}}),ha(_)){var m=i.get(_);m&&(b=b&&m.clientOnly,h=h&&m.deferred),i.set(_,dv(n,b,h))}else{var y=Xp(_,n.lookupFragment);if(!y&&_.kind===je.FRAGMENT_SPREAD)throw on(11,_.name.value);y&&a.fragmentMatches(y,o,r,n.variables)&&d(y.selectionSet,dv(n,b,h))}}}))}(e,n),i},t.prototype.applyMerges=function(e,r,n,o,i){var a,c=this;if(e.map.size&&!Nt(n)){var d=!ir(n)&&(Nt(r)||sl(r))?r:void 0,u=n;d&&!i&&(i=[Nt(d)?d.__ref:d]);var f,g=function(_,b){return ir(_)?typeof b=="number"?_[b]:void 0:o.store.getFieldValue(_,String(b))};e.map.forEach(function(_,b){var h=g(d,b),m=g(u,b);if(m!==void 0){i&&i.push(b);var y=c.applyMerges(_,h,m,o,i);y!==m&&(f=f||new Map,f.set(b,y)),i&&nt(i.pop()===b)}}),f&&(n=ir(u)?u.slice(0):re({},u),f.forEach(function(_,b){n[b]=_}))}return e.info?this.cache.policies.runMergeFunction(r,n,e.info,o,i&&(a=o.store).getStorage.apply(a,i)):n},t}(),rC=[];function qw(t,e){var r=t.map;return r.has(e)||r.set(e,rC.pop()||{map:new Map}),r.get(e)}function Tg(t,e){if(t===e||!e||lp(e))return t;if(!t||lp(t))return e;var r=t.info&&e.info?re(re({},t.info),e.info):t.info||e.info,n=t.map.size&&e.map.size,o=n?new Map:t.map.size?t.map:e.map,i={info:r,map:o};if(n){var a=new Set(e.map.keys());t.map.forEach(function(c,d){i.map.set(d,Tg(c,e.map.get(d))),a.delete(d)}),a.forEach(function(c){i.map.set(c,Tg(e.map.get(c),t.map.get(c)))})}return i}function lp(t){return!t||!(t.info||t.map.size)}function Bw(t,e){var r=t.map,n=r.get(e);n&&lp(n)&&(rC.push(n),r.delete(e))}var Uw=new Set;function BN(t,e,r,n){var o=function(g){var _=n.getFieldValue(g,r);return typeof _=="object"&&_},i=o(t);if(i){var a=o(e);if(a&&!Nt(i)&&!rr(i,a)&&!Object.keys(i).every(function(g){return n.getFieldValue(a,g)!==void 0})){var c=n.getFieldValue(t,"__typename")||n.getFieldValue(e,"__typename"),d=ga(r),u="".concat(c,".").concat(d);if(!Uw.has(u)){Uw.add(u);var f=[];!ir(i)&&!ir(a)&&[i,a].forEach(function(g){var _=n.getFieldValue(g,"__typename");typeof _=="string"&&!f.includes(_)&&f.push(_)}),globalThis.__DEV__!==!1&&nt.warn(12,d,c,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",u,i,a)}}}}var nC=function(t){Go(e,t);function e(r){r===void 0&&(r={});var n=t.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new _k(Jy),n.assumeImmutableResults=!0,n.makeVar=DN,n.txCount=0,n.config=wN(r),n.addTypename=!!n.config.addTypename,n.policies=new zN({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return e.prototype.init=function(){var r=this.data=new yd.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=r.stump,this.resetResultCache()},e.prototype.resetResultCache=function(r){var n=this,o=this.storeReader,i=this.config.fragments;this.storeWriter=new qN(this,this.storeReader=new SN({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Qk(this.config),canon:r?void 0:o&&o.canon,fragments:i}),i),this.maybeBroadcastWatch=sp(function(a,c){return n.broadcastWatch(a,c)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(a){var c=a.optimistic?n.optimisticData:n.data;if(Wc(c)){var d=a.optimistic,u=a.id,f=a.variables;return c.makeCacheKey(a.query,a.callback,is({optimistic:d,id:u,variables:f}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(a){return a.resetCaching()})},e.prototype.restore=function(r){return this.init(),r&&this.data.replace(r),this},e.prototype.extract=function(r){return r===void 0&&(r=!1),(r?this.optimisticData:this.data).extract()},e.prototype.read=function(r){var n=r.returnPartialData,o=n===void 0?!1:n;try{return this.storeReader.diffQueryAgainstStore(re(re({},r),{store:r.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:o})).result||null}catch(i){if(i instanceof Hk)return null;throw i}},e.prototype.write=function(r){try{return++this.txCount,this.storeWriter.writeToStore(this.data,r)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.modify=function(r){if(Ar.call(r,"id")&&!r.id)return!1;var n=r.optimistic?this.optimisticData:this.data;try{return++this.txCount,n.modify(r.id||"ROOT_QUERY",r.fields)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.diff=function(r){return this.storeReader.diffQueryAgainstStore(re(re({},r),{store:r.optimistic?this.optimisticData:this.data,rootId:r.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(r){var n=this;return this.watches.size||MN(this),this.watches.add(r),r.immediate&&this.maybeBroadcastWatch(r),function(){n.watches.delete(r)&&!n.watches.size&&Pw(n),n.maybeBroadcastWatch.forget(r)}},e.prototype.gc=function(r){is.reset();var n=this.optimisticData.gc();return r&&!this.txCount&&(r.resetResultCache?this.resetResultCache(r.resetResultIdentities):r.resetResultIdentities&&this.storeReader.resetCanon()),n},e.prototype.retain=function(r,n){return(n?this.optimisticData:this.data).retain(r)},e.prototype.release=function(r,n){return(n?this.optimisticData:this.data).release(r)},e.prototype.identify=function(r){if(Nt(r))return r.__ref;try{return this.policies.identify(r)[0]}catch(n){globalThis.__DEV__!==!1&&nt.warn(n)}},e.prototype.evict=function(r){if(!r.id){if(Ar.call(r,"id"))return!1;r=re(re({},r),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(r,this.data)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.reset=function(r){var n=this;return this.init(),is.reset(),r&&r.discardWatches?(this.watches.forEach(function(o){return n.maybeBroadcastWatch.forget(o)}),this.watches.clear(),Pw(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(r){var n=this.optimisticData.removeLayer(r);n!==this.optimisticData&&(this.optimisticData=n,this.broadcastWatches())},e.prototype.batch=function(r){var n=this,o=r.update,i=r.optimistic,a=i===void 0?!0:i,c=r.removeOptimistic,d=r.onWatchUpdated,u,f=function(_){var b=n,h=b.data,m=b.optimisticData;++n.txCount,_&&(n.data=n.optimisticData=_);try{return u=o(n)}finally{--n.txCount,n.data=h,n.optimisticData=m}},g=new Set;return d&&!this.txCount&&this.broadcastWatches(re(re({},r),{onWatchUpdated:function(_){return g.add(_),!1}})),typeof a=="string"?this.optimisticData=this.optimisticData.addLayer(a,f):a===!1?f(this.data):f(),typeof c=="string"&&(this.optimisticData=this.optimisticData.removeLayer(c)),d&&g.size?(this.broadcastWatches(re(re({},r),{onWatchUpdated:function(_,b){var h=d.call(this,_,b);return h!==!1&&g.delete(_),h}})),g.size&&g.forEach(function(_){return n.maybeBroadcastWatch.dirty(_)})):this.broadcastWatches(r),u},e.prototype.performTransaction=function(r,n){return this.batch({update:r,optimistic:n||n!==null})},e.prototype.transformDocument=function(r){return this.addTypenameToDocument(this.addFragmentsToDocument(r))},e.prototype.broadcastWatches=function(r){var n=this;this.txCount||this.watches.forEach(function(o){return n.maybeBroadcastWatch(o,r)})},e.prototype.addFragmentsToDocument=function(r){var n=this.config.fragments;return n?n.transform(r):r},e.prototype.addTypenameToDocument=function(r){return this.addTypename?this.addTypenameTransform.transformDocument(r):r},e.prototype.broadcastWatch=function(r,n){var o=r.lastDiff,i=this.diff(r);n&&(r.optimistic&&typeof n.optimistic=="string"&&(i.fromOptimisticTransaction=!0),n.onWatchUpdated&&n.onWatchUpdated.call(this,r,i,o)===!1)||(!o||!rr(o.result,i.result))&&r.callback(r.lastDiff=i,o)},e}(xN),Ft;(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"})(Ft||(Ft={}));function bd(t){return t?t<7:!1}function UN(t,e,r,n){var o=e.data,i=fa(e,["data"]),a=r.data,c=fa(r,["data"]);return rr(i,c)&&Uf(zd(t).selectionSet,o,a,{fragmentMap:Zp(eh(t)),variables:n})}function Uf(t,e,r,n){if(e===r)return!0;var o=new Set;return t.selections.every(function(i){if(o.has(i)||(o.add(i),!Dd(i,n.variables))||Vw(i))return!0;if(ha(i)){var a=pa(i),c=e&&e[a],d=r&&r[a],u=i.selectionSet;if(!u)return rr(c,d);var f=Array.isArray(c),g=Array.isArray(d);if(f!==g)return!1;if(f&&g){var _=c.length;if(d.length!==_)return!1;for(var b=0;b<_;++b)if(!Uf(u,c[b],d[b],n))return!1;return!0}return Uf(u,c,d,n)}else{var h=Xp(i,n.fragmentMap);if(h)return Vw(h)?!0:Uf(h.selectionSet,e,r,n)}})}function Vw(t){return!!t.directives&&t.directives.some(VN)}function VN(t){return t.name.value==="nonreactive"}var jw=Object.assign,jN=Object.hasOwnProperty,kg=function(t){Go(e,t);function e(r){var n=r.queryManager,o=r.queryInfo,i=r.options,a=t.call(this,function(y){try{var v=y._subscription._observer;v&&!v.error&&(v.error=HN)}catch{}var x=!a.observers.size;a.observers.add(y);var E=a.last;return E&&E.error?y.error&&y.error(E.error):E&&E.result&&y.next&&y.next(E.result),x&&a.reobserve().catch(function(){}),function(){a.observers.delete(y)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=o,a.queryManager=n,a.waitForOwnResult=uv(i.fetchPolicy),a.isTornDown=!1;var c=n.defaultOptions.watchQuery,d=c===void 0?{}:c,u=d.fetchPolicy,f=u===void 0?"cache-first":u,g=i.fetchPolicy,_=g===void 0?f:g,b=i.initialFetchPolicy,h=b===void 0?_==="standby"?f:_:b;a.options=re(re({},i),{initialFetchPolicy:h,fetchPolicy:_}),a.queryId=o.queryId||n.generateQueryId();var m=Nd(a.query);return a.queryName=m&&m.name&&m.name.value,a}return Object.defineProperty(e.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var r=this;return new Promise(function(n,o){var i={next:function(c){n(c),r.observers.delete(i),r.observers.size||r.queryManager.removeQuery(r.queryId),setTimeout(function(){a.unsubscribe()},0)},error:o},a=r.subscribe(i)})},e.prototype.getCurrentResult=function(r){r===void 0&&(r=!0);var n=this.getLastResult(!0),o=this.queryInfo.networkStatus||n&&n.networkStatus||Ft.ready,i=re(re({},n),{loading:bd(o),networkStatus:o}),a=this.options.fetchPolicy,c=a===void 0?"cache-first":a;if(!(uv(c)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var d=this.queryInfo.getDiff();(d.complete||this.options.returnPartialData)&&(i.data=d.result),rr(i.data,{})&&(i.data=void 0),d.complete?(delete i.partial,d.complete&&i.networkStatus===Ft.loading&&(c==="cache-first"||c==="cache-only")&&(i.networkStatus=Ft.ready,i.loading=!1)):i.partial=!0,globalThis.__DEV__!==!1&&!d.complete&&!this.options.partialRefetch&&!i.loading&&!i.data&&!i.error&&iC(d.missing)}return r&&this.updateLastResult(i),i},e.prototype.isDifferentFromLastResult=function(r,n){if(!this.last)return!0;var o=this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!UN(this.query,this.last.result,r,this.variables):!rr(this.last.result,r);return o||n&&!rr(this.last.variables,n)},e.prototype.getLast=function(r,n){var o=this.last;if(o&&o[r]&&(!n||rr(o.variables,this.variables)))return o[r]},e.prototype.getLastResult=function(r){return this.getLast("result",r)},e.prototype.getLastError=function(r){return this.getLast("error",r)},e.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(r){var n,o={pollInterval:0},i=this.options.fetchPolicy;if(i==="cache-and-network"?o.fetchPolicy=i:i==="no-cache"?o.fetchPolicy="no-cache":o.fetchPolicy="network-only",globalThis.__DEV__!==!1&&r&&jN.call(r,"variables")){var a=gk(this.query),c=a.variableDefinitions;(!c||!c.some(function(d){return d.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&nt.warn(18,r,((n=a.name)===null||n===void 0?void 0:n.value)||a)}return r&&!rr(this.options.variables,r)&&(o.variables=this.options.variables=re(re({},this.options.variables),r)),this.queryInfo.resetLastWrite(),this.reobserve(o,Ft.refetch)},e.prototype.fetchMore=function(r){var n=this,o=re(re({},r.query?r:re(re(re(re({},this.options),{query:this.options.query}),r),{variables:re(re({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"});o.query=this.transformDocument(o.query);var i=this.queryManager.generateQueryId();this.lastQuery=r.query?this.transformDocument(this.options.query):o.query;var a=this.queryInfo,c=a.networkStatus;a.networkStatus=Ft.fetchMore,o.notifyOnNetworkStatusChange&&this.observe();var d=new Set;return this.queryManager.fetchQuery(i,o,Ft.fetchMore).then(function(u){return n.queryManager.removeQuery(i),a.networkStatus===Ft.fetchMore&&(a.networkStatus=c),n.queryManager.cache.batch({update:function(f){var g=r.updateQuery;g?f.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(_){return g(_,{fetchMoreResult:u.data,variables:o.variables})}):f.writeQuery({query:o.query,variables:o.variables,data:u.data})},onWatchUpdated:function(f){d.add(f.query)}}),u}).finally(function(){d.has(n.query)||oC(n)})},e.prototype.subscribeToMore=function(r){var n=this,o=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables,context:r.context}).subscribe({next:function(i){var a=r.updateQuery;a&&n.updateQuery(function(c,d){var u=d.variables;return a(c,{subscriptionData:i,variables:u})})},error:function(i){if(r.onError){r.onError(i);return}globalThis.__DEV__!==!1&&nt.error(19,i)}});return this.subscriptions.add(o),function(){n.subscriptions.delete(o)&&o.unsubscribe()}},e.prototype.setOptions=function(r){return this.reobserve(r)},e.prototype.silentSetOptions=function(r){var n=Cl(this.options,r||{});jw(this.options,n)},e.prototype.setVariables=function(r){return rr(this.variables,r)?this.observers.size?this.result():Promise.resolve():(this.options.variables=r,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:r},Ft.setVariables):Promise.resolve())},e.prototype.updateQuery=function(r){var n=this.queryManager,o=n.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,i=r(o,{variables:this.variables});i&&(n.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),n.broadcastQueries())},e.prototype.startPolling=function(r){this.options.pollInterval=r,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(r,n){if(n.nextFetchPolicy){var o=n.fetchPolicy,i=o===void 0?"cache-first":o,a=n.initialFetchPolicy,c=a===void 0?i:a;i==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy(i,{reason:r,options:n,observable:this,initialFetchPolicy:c}):r==="variables-changed"?n.fetchPolicy=c:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy},e.prototype.fetch=function(r,n,o){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,r,n,o)},e.prototype.updatePolling=function(){var r=this;if(!this.queryManager.ssrMode){var n=this,o=n.pollingInfo,i=n.options.pollInterval;if(!i){o&&(clearTimeout(o.timeout),delete this.pollingInfo);return}if(!(o&&o.interval===i)){nt(i,20);var a=o||(this.pollingInfo={});a.interval=i;var c=function(){r.pollingInfo&&(bd(r.queryInfo.networkStatus)?d():r.reobserve({fetchPolicy:r.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},Ft.poll).then(d,d))},d=function(){var u=r.pollingInfo;u&&(clearTimeout(u.timeout),u.timeout=setTimeout(c,u.interval))};d()}}},e.prototype.updateLastResult=function(r,n){n===void 0&&(n=this.variables);var o=this.getLastError();return o&&this.last&&!rr(n,this.last.variables)&&(o=void 0),this.last=re({result:this.queryManager.assumeImmutableResults?r:Ck(r),variables:n},o?{error:o}:null)},e.prototype.reobserveAsConcast=function(r,n){var o=this;this.isTornDown=!1;var i=n===Ft.refetch||n===Ft.fetchMore||n===Ft.poll,a=this.options.variables,c=this.options.fetchPolicy,d=Cl(this.options,r||{}),u=i?d:jw(this.options,d),f=this.transformDocument(u.query);this.lastQuery=f,i||(this.updatePolling(),r&&r.variables&&!rr(r.variables,a)&&u.fetchPolicy!=="standby"&&u.fetchPolicy===c&&(this.applyNextFetchPolicy("variables-changed",u),n===void 0&&(n=Ft.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=uv(u.fetchPolicy));var g=function(){o.concast===h&&(o.waitForOwnResult=!1)},_=u.variables&&re({},u.variables),b=this.fetch(u,n,f),h=b.concast,m=b.fromLink,y={next:function(v){g(),o.reportResult(v,_)},error:function(v){g(),o.reportError(v,_)}};return!i&&(m||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=h,this.observer=y),h.addObserver(y),h},e.prototype.reobserve=function(r,n){return this.reobserveAsConcast(r,n).promise},e.prototype.resubscribeAfterError=function(){for(var r=[],n=0;n0},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(r){return r.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(r){return this.queryManager.transform(r)},e}(Wt);Ak(kg);function oC(t){var e=t.options,r=e.fetchPolicy,n=e.nextFetchPolicy;return r==="cache-and-network"||r==="network-only"?t.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,typeof n=="function"?n.apply(this,arguments):r}}):t.reobserve()}function HN(t){globalThis.__DEV__!==!1&&nt.error(21,t.message,t.stack)}function iC(t){globalThis.__DEV__!==!1&&t&&globalThis.__DEV__!==!1&&nt.debug(22,t)}function uv(t){return t==="network-only"||t==="no-cache"||t==="standby"}var aC=function(){function t(e){var r=e.cache,n=e.client,o=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=r,n&&(this.client=n),o&&this.addResolvers(o),i&&this.setFragmentMatcher(i)}return t.prototype.addResolvers=function(e){var r=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(n){r.resolvers=iw(r.resolvers,n)}):this.resolvers=iw(this.resolvers,e)},t.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(e){var r=e.document,n=e.remoteResult,o=e.context,i=e.variables,a=e.onlyRunForcedResolvers,c=a===void 0?!1:a;return Yi(this,void 0,void 0,function(){return Zi(this,function(d){return r?[2,this.resolveDocument(r,n.data,o,i,this.fragmentMatcher,c).then(function(u){return re(re({},n),{data:u.result})})]:[2,n]})})},t.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(e){return gd(["client"],e)&&this.resolvers?e:null},t.prototype.serverQuery=function(e){return wk(e)},t.prototype.prepareContext=function(e){var r=this.cache;return re(re({},e),{cache:r,getCacheKey:function(n){return r.identify(n)}})},t.prototype.addExportedVariables=function(e,r,n){return r===void 0&&(r={}),n===void 0&&(n={}),Yi(this,void 0,void 0,function(){return Zi(this,function(o){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,r)||{},this.prepareContext(n),r).then(function(i){return re(re({},r),i.exportedVariables)})]:[2,re({},r)]})})},t.prototype.shouldForceResolvers=function(e){var r=!1;return zo(e,{Directive:{enter:function(n){if(n.name.value==="client"&&n.arguments&&(r=n.arguments.some(function(o){return o.name.value==="always"&&o.value.kind==="BooleanValue"&&o.value.value===!0}),r))return Yy}}}),r},t.prototype.buildRootValueFromCache=function(e,r){return this.cache.diff({query:uF(e),variables:r,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(e,r,n,o,i,a){return n===void 0&&(n={}),o===void 0&&(o={}),i===void 0&&(i=function(){return!0}),a===void 0&&(a=!1),Yi(this,void 0,void 0,function(){var c,d,u,f,g,_,b,h,m,y,v;return Zi(this,function(x){return c=zd(e),d=eh(e),u=Zp(d),f=this.collectSelectionsToResolve(c,u),g=c.operation,_=g?g.charAt(0).toUpperCase()+g.slice(1):"Query",b=this,h=b.cache,m=b.client,y={fragmentMap:u,context:re(re({},n),{cache:h,client:m}),variables:o,fragmentMatcher:i,defaultOperationType:_,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:a},v=!1,[2,this.resolveSelectionSet(c.selectionSet,v,r,y).then(function(E){return{result:E,exportedVariables:y.exportedVariables}})]})})},t.prototype.resolveSelectionSet=function(e,r,n,o){return Yi(this,void 0,void 0,function(){var i,a,c,d,u,f=this;return Zi(this,function(g){return i=o.fragmentMap,a=o.context,c=o.variables,d=[n],u=function(_){return Yi(f,void 0,void 0,function(){var b,h;return Zi(this,function(m){return!r&&!o.selectionsToResolve.has(_)?[2]:Dd(_,c)?ha(_)?[2,this.resolveField(_,r,n,o).then(function(y){var v;typeof y<"u"&&d.push((v={},v[pa(_)]=y,v))})]:(aF(_)?b=_:(b=i[_.name.value],nt(b,16,_.name.value)),b&&b.typeCondition&&(h=b.typeCondition.name.value,o.fragmentMatcher(n,h,a))?[2,this.resolveSelectionSet(b.selectionSet,r,n,o).then(function(y){d.push(y)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return eb(d)})]})})},t.prototype.resolveField=function(e,r,n,o){return Yi(this,void 0,void 0,function(){var i,a,c,d,u,f,g,_,b,h=this;return Zi(this,function(m){return n?(i=o.variables,a=e.name.value,c=pa(e),d=a!==c,u=n[c]||n[a],f=Promise.resolve(u),(!o.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(g=n.__typename||o.defaultOperationType,_=this.resolvers&&this.resolvers[g],_&&(b=_[d?a:c],b&&(f=Promise.resolve(cb.withValue(this.cache,b,[n,Jp(e,i),o.context,{field:e,fragmentMap:o.fragmentMap}]))))),[2,f.then(function(y){var v,x;if(y===void 0&&(y=u),e.directives&&e.directives.forEach(function(T){T.name.value==="export"&&T.arguments&&T.arguments.forEach(function(C){C.name.value==="as"&&C.value.kind==="StringValue"&&(o.exportedVariables[C.value.value]=y)})}),!e.selectionSet||y==null)return y;var E=(x=(v=e.directives)===null||v===void 0?void 0:v.some(function(T){return T.name.value==="client"}))!==null&&x!==void 0?x:!1;if(Array.isArray(y))return h.resolveSubSelectedArray(e,r||E,y,o);if(e.selectionSet)return h.resolveSelectionSet(e.selectionSet,r||E,y,o)})]):[2,null]})})},t.prototype.resolveSubSelectedArray=function(e,r,n,o){var i=this;return Promise.all(n.map(function(a){if(a===null)return null;if(Array.isArray(a))return i.resolveSubSelectedArray(e,r,a,o);if(e.selectionSet)return i.resolveSelectionSet(e.selectionSet,r,a,o)}))},t.prototype.collectSelectionsToResolve=function(e,r){var n=function(a){return!Array.isArray(a)},o=this.selectionsToResolveCache;function i(a){if(!o.has(a)){var c=new Set;o.set(a,c),zo(a,{Directive:function(d,u,f,g,_){d.name.value==="client"&&_.forEach(function(b){n(b)&&tw(b)&&c.add(b)})},FragmentSpread:function(d,u,f,g,_){var b=r[d.name.value];nt(b,17,d.name.value);var h=i(b);h.size>0&&(_.forEach(function(m){n(m)&&tw(m)&&c.add(m)}),c.add(d),h.forEach(function(m){c.add(m)}))}})}return o.get(a)}return i(e)},t}(),ll=new(xi?WeakMap:Map);function fv(t,e){var r=t[e];typeof r=="function"&&(t[e]=function(){return ll.set(t,(ll.get(t)+1)%1e15),r.apply(this,arguments)})}function Hw(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var pv=function(){function t(e,r){r===void 0&&(r=e.generateQueryId()),this.queryId=r,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;ll.has(n)||(ll.set(n,0),fv(n,"evict"),fv(n,"modify"),fv(n,"reset"))}return t.prototype.init=function(e){var r=e.networkStatus||Ft.loading;return this.variables&&this.networkStatus!==Ft.loading&&!rr(this.variables,e.variables)&&(r=Ft.setVariables),rr(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:r}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},t.prototype.reset=function(){Hw(this),this.dirty=!1},t.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&rr(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&r.options.fetchPolicy==="no-cache")return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},t.prototype.updateLastDiff=function(e,r){this.lastDiff=e?{diff:e,options:r||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(e){var r;return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:(r=this.observableQuery)===null||r===void 0?void 0:r.options.canonizeResults}},t.prototype.setDiff=function(e){var r=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),!this.dirty&&!rr(n&&n.result,e&&e.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0)))},t.prototype.setObservableQuery=function(e){var r=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){var n=r.getDiff();n.fromOptimisticTransaction?e.observe():oC(e)})):delete this.oqListener)},t.prototype.notify=function(){var e=this;Hw(this),this.shouldNotify()&&this.listeners.forEach(function(r){return r(e)}),this.dirty=!1},t.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(bd(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if(e!=="cache-only"&&e!=="cache-and-network")return!1}return!0},t.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=t.prototype.cancel;var e=this.observableQuery;e&&e.stopPolling()}},t.prototype.cancel=function(){},t.prototype.updateWatch=function(e){var r=this;e===void 0&&(e=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy==="no-cache")){var o=re(re({},this.getDiffOptions(e)),{watcher:this,callback:function(i){return r.setDiff(i)}});(!this.lastWatch||!rr(o,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=o))}},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(e,r){var n=this.lastWrite;return!(n&&n.dmCount===ll.get(this.cache)&&rr(r,n.variables)&&rr(e.data,n.result.data))},t.prototype.markResult=function(e,r,n,o){var i=this,a=new ma,c=qo(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&qo(e.incremental)){var d=Sk(this.getDiff().result,e);e.data=d}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=a.merge(u.result,e.data)}this.graphQLErrors=c,n.fetchPolicy==="no-cache"?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):o!==0&&(Cg(e,n.errorPolicy)?this.cache.performTransaction(function(f){if(i.shouldWrite(e,n.variables))f.writeQuery({query:r,data:e.data,variables:n.variables,overwrite:o===1}),i.lastWrite={result:e,variables:n.variables,dmCount:ll.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var g=i.getDiffOptions(n.variables),_=f.diff(g);!i.stopped&&rr(i.variables,n.variables)&&i.updateWatch(n.variables),i.updateLastDiff(_,g),_.complete&&(e.data=_.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Ft.ready},t.prototype.markError=function(e){return this.networkStatus=Ft.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},t}();function Cg(t,e){e===void 0&&(e="none");var r=e==="ignore"||e==="all",n=!zf(t);return!n&&r&&t.data&&(n=!0),n}var WN=Object.prototype.hasOwnProperty,GN=function(){function t(e){var r=this,n=e.cache,o=e.link,i=e.defaultOptions,a=e.documentTransform,c=e.queryDeduplication,d=c===void 0?!1:c,u=e.onBroadcast,f=e.ssrMode,g=f===void 0?!1:f,_=e.clientAwareness,b=_===void 0?{}:_,h=e.localState,m=e.assumeImmutableResults,y=m===void 0?!!n.assumeImmutableResults:m;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(xi?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var v=new _k(function(x){return r.cache.transformDocument(x)},{cache:!1});this.cache=n,this.link=o,this.defaultOptions=i||Object.create(null),this.queryDeduplication=d,this.clientAwareness=b,this.localState=h||new aC({cache:n}),this.ssrMode=g,this.assumeImmutableResults=y,this.documentTransform=a?v.concat(a).concat(v):v,(this.onBroadcast=u)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var e=this;this.queries.forEach(function(r,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(on(23))},t.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(r){return r(e)}),this.fetchCancelFns.clear()},t.prototype.mutate=function(e){var r,n,o=e.mutation,i=e.variables,a=e.optimisticResponse,c=e.updateQueries,d=e.refetchQueries,u=d===void 0?[]:d,f=e.awaitRefetchQueries,g=f===void 0?!1:f,_=e.update,b=e.onQueryUpdated,h=e.fetchPolicy,m=h===void 0?((r=this.defaultOptions.mutate)===null||r===void 0?void 0:r.fetchPolicy)||"network-only":h,y=e.errorPolicy,v=y===void 0?((n=this.defaultOptions.mutate)===null||n===void 0?void 0:n.errorPolicy)||"none":y,x=e.keepRootFields,E=e.context;return Yi(this,void 0,void 0,function(){var T,C,A,L;return Zi(this,function(R){switch(R.label){case 0:return nt(o,24),nt(m==="network-only"||m==="no-cache",25),T=this.generateMutationId(),o=this.cache.transformForLink(this.transform(o)),C=this.getDocumentInfo(o).hasClientExports,i=this.getVariables(o,i),C?[4,this.localState.addExportedVariables(o,i,E)]:[3,2];case 1:i=R.sent(),R.label=2;case 2:return A=this.mutationStore&&(this.mutationStore[T]={mutation:o,variables:i,loading:!0,error:null}),a&&this.markMutationOptimistic(a,{mutationId:T,document:o,variables:i,fetchPolicy:m,errorPolicy:v,context:E,updateQueries:c,update:_,keepRootFields:x}),this.broadcastQueries(),L=this,[2,new Promise(function(D,q){return nv(L.getObservableFromLink(o,re(re({},E),{optimisticResponse:a}),i,!1),function(H){if(zf(H)&&v==="none")throw new ci({graphQLErrors:hg(H)});A&&(A.loading=!1,A.error=null);var U=re({},H);return typeof u=="function"&&(u=u(U)),v==="ignore"&&zf(U)&&delete U.errors,L.markMutationResult({mutationId:T,result:U,document:o,variables:i,fetchPolicy:m,errorPolicy:v,context:E,update:_,updateQueries:c,awaitRefetchQueries:g,refetchQueries:u,removeOptimistic:a?T:void 0,onQueryUpdated:b,keepRootFields:x})}).subscribe({next:function(H){L.broadcastQueries(),(!("hasNext"in H)||H.hasNext===!1)&&D(H)},error:function(H){A&&(A.loading=!1,A.error=H),a&&L.cache.removeOptimistic(T),L.broadcastQueries(),q(H instanceof ci?H:new ci({networkError:H}))}})})]}})})},t.prototype.markMutationResult=function(e,r){var n=this;r===void 0&&(r=this.cache);var o=e.result,i=[],a=e.fetchPolicy==="no-cache";if(!a&&Cg(o,e.errorPolicy)){if(ml(o)||i.push({result:o.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),ml(o)&&qo(o.incremental)){var c=r.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),d=void 0;c.result&&(d=Sk(c.result,o)),typeof d<"u"&&(o.data=d,i.push({result:d,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(g,_){var b=g.observableQuery,h=b&&b.queryName;if(!(!h||!WN.call(u,h))){var m=u[h],y=n.queries.get(_),v=y.document,x=y.variables,E=r.diff({query:v,variables:x,returnPartialData:!0,optimistic:!1}),T=E.result,C=E.complete;if(C&&T){var A=m(T,{mutationResult:o,queryName:v&&cg(v)||void 0,queryVariables:x});A&&i.push({result:A,dataId:"ROOT_QUERY",query:v,variables:x})}}})}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(g){a||i.forEach(function(m){return g.write(m)});var _=e.update,b=!CF(o)||ml(o)&&!o.hasNext;if(_){if(!a){var h=g.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});h.complete&&(o=re(re({},o),{data:h.result}),"incremental"in o&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}b&&_(g,o,{context:e.context,variables:e.variables})}!a&&!e.keepRootFields&&b&&g.modify({id:"ROOT_MUTATION",fields:function(m,y){var v=y.fieldName,x=y.DELETE;return v==="__typename"?m:x}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(g){return f.push(g)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then(function(){return o})}return Promise.resolve(o)},t.prototype.markMutationOptimistic=function(e,r){var n=this,o=typeof e=="function"?e(r.variables):e;return this.cache.recordOptimisticTransaction(function(i){try{n.markMutationResult(re(re({},r),{result:{data:o}}),i)}catch(a){globalThis.__DEV__!==!1&&nt.error(a)}},r.mutationId)},t.prototype.fetchQuery=function(e,r,n){return this.fetchConcastWithInfo(e,r,n).concast.promise},t.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(r,n){e[n]={variables:r.variables,networkStatus:r.networkStatus,networkError:r.networkError,graphQLErrors:r.graphQLErrors}}),e},t.prototype.resetErrors=function(e){var r=this.queries.get(e);r&&(r.networkError=void 0,r.graphQLErrors=[])},t.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},t.prototype.getDocumentInfo=function(e){var r=this.transformCache;if(!r.has(e)){var n={hasClientExports:zD(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:gd(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:xk([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:Xy(Nd(e)),asQuery:re(re({},e),{definitions:e.definitions.map(function(o){return o.kind==="OperationDefinition"&&o.operation!=="query"?re(re({},o),{operation:"query"}):o})})};r.set(e,n)}return r.get(e)},t.prototype.getVariables=function(e,r){return re(re({},this.getDocumentInfo(e).defaultVars),r)},t.prototype.watchQuery=function(e){var r=this.transform(e.query);e=re(re({},e),{variables:this.getVariables(r,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var n=new pv(this),o=new kg({queryManager:this,queryInfo:n,options:e});return o.lastQuery=r,this.queries.set(o.queryId,n),n.init({document:r,observableQuery:o,variables:o.variables}),o},t.prototype.query=function(e,r){var n=this;return r===void 0&&(r=this.generateQueryId()),nt(e.query,26),nt(e.query.kind==="Document",27),nt(!e.returnPartialData,28),nt(!e.pollInterval,29),this.fetchQuery(r,re(re({},e),{query:this.transform(e.query)})).finally(function(){return n.stopQuery(r)})},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(e){var r=this.queries.get(e);r&&r.stop()},t.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}),this.cancelPendingFetches(on(30)),this.queries.forEach(function(r){r.observableQuery?r.networkStatus=Ft.loading:r.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},t.prototype.getObservableQueries=function(e){var r=this;e===void 0&&(e="active");var n=new Map,o=new Map,i=new Set;return Array.isArray(e)&&e.forEach(function(a){typeof a=="string"?o.set(a,!1):GD(a)?o.set(r.transform(a),!1):er(a)&&a.query&&i.add(a)}),this.queries.forEach(function(a,c){var d=a.observableQuery,u=a.document;if(d){if(e==="all"){n.set(c,d);return}var f=d.queryName,g=d.options.fetchPolicy;if(g==="standby"||e==="active"&&!d.hasObservers())return;(e==="active"||f&&o.has(f)||u&&o.has(u))&&(n.set(c,d),f&&o.set(f,!0),u&&o.set(u,!0))}}),i.size&&i.forEach(function(a){var c=og("legacyOneTimeQuery"),d=r.getQuery(c).init({document:a.query,variables:a.variables}),u=new kg({queryManager:r,queryInfo:d,options:re(re({},a),{fetchPolicy:"network-only"})});nt(u.queryId===c),d.setObservableQuery(u),n.set(c,u)}),globalThis.__DEV__!==!1&&o.size&&o.forEach(function(a,c){a||globalThis.__DEV__!==!1&&nt.warn(typeof c=="string"?31:32,c)}),n},t.prototype.reFetchObservableQueries=function(e){var r=this;e===void 0&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(o,i){var a=o.options.fetchPolicy;o.resetLastResults(),(e||a!=="standby"&&a!=="cache-only")&&n.push(o.refetch()),r.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},t.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},t.prototype.startGraphQLSubscription=function(e){var r=this,n=e.query,o=e.fetchPolicy,i=e.errorPolicy,a=i===void 0?"none":i,c=e.variables,d=e.context,u=d===void 0?{}:d;n=this.transform(n),c=this.getVariables(n,c);var f=function(_){return r.getObservableFromLink(n,u,_).map(function(b){o!=="no-cache"&&(Cg(b,a)&&r.cache.write({query:n,result:b.data,dataId:"ROOT_SUBSCRIPTION",variables:_}),r.broadcastQueries());var h=zf(b),m=UF(b);if(h||m){var y={};if(h&&(y.graphQLErrors=b.errors),m&&(y.protocolErrors=b.extensions[ib]),a==="none"||m)throw new ci(y)}return a==="ignore"&&delete b.errors,b})};if(this.getDocumentInfo(n).hasClientExports){var g=this.localState.addExportedVariables(n,c,u).then(f);return new Wt(function(_){var b=null;return g.then(function(h){return b=h.subscribe(_)},_.error),function(){return b&&b.unsubscribe()}})}return f(c)},t.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},t.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},t.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(e,r,n,o){var i=this,a;o===void 0&&(o=(a=r==null?void 0:r.queryDeduplication)!==null&&a!==void 0?a:this.queryDeduplication);var c,d=this.getDocumentInfo(e),u=d.serverQuery,f=d.clientQuery;if(u){var g=this,_=g.inFlightLinkObservables,b=g.link,h={query:u,variables:n,operationName:cg(u)||void 0,context:this.prepareContext(re(re({},r),{forceFetch:!o}))};if(r=h.context,o){var m=yk(u),y=_.get(m)||new Map;_.set(m,y);var v=is(n);if(c=y.get(v),!c){var x=new el([vg(b,h)]);y.set(v,c=x),x.beforeNext(function(){y.delete(v)&&y.size<1&&_.delete(m)})}}else c=new el([vg(b,h)])}else c=new el([Wt.of({data:{}})]),r=this.prepareContext(r);return f&&(c=nv(c,function(E){return i.localState.runResolvers({document:f,remoteResult:E,context:r,variables:n})})),c},t.prototype.getResultsFromLink=function(e,r,n){var o=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return nv(this.getObservableFromLink(i,n.context,n.variables),function(a){var c=hg(a),d=c.length>0;if(o>=e.lastRequestId){if(d&&n.errorPolicy==="none")throw e.markError(new ci({graphQLErrors:c}));e.markResult(a,i,n,r),e.markReady()}var u={data:a.data,loading:!1,networkStatus:Ft.ready};return d&&n.errorPolicy!=="ignore"&&(u.errors=c,u.networkStatus=Ft.error),u},function(a){var c=Ik(a)?a:new ci({networkError:a});throw o>=e.lastRequestId&&e.markError(c),c})},t.prototype.fetchConcastWithInfo=function(e,r,n,o){var i=this;n===void 0&&(n=Ft.loading),o===void 0&&(o=r.query);var a=this.getVariables(o,r.variables),c=this.getQuery(e),d=this.defaultOptions.watchQuery,u=r.fetchPolicy,f=u===void 0?d&&d.fetchPolicy||"cache-first":u,g=r.errorPolicy,_=g===void 0?d&&d.errorPolicy||"none":g,b=r.returnPartialData,h=b===void 0?!1:b,m=r.notifyOnNetworkStatusChange,y=m===void 0?!1:m,v=r.context,x=v===void 0?{}:v,E=Object.assign({},r,{query:o,variables:a,fetchPolicy:f,errorPolicy:_,returnPartialData:h,notifyOnNetworkStatusChange:y,context:x}),T=function(D){E.variables=D;var q=i.fetchQueryByPolicy(c,E,n);return E.fetchPolicy!=="standby"&&q.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",r),q},C=function(){return i.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(D){C(),setTimeout(function(){return A.cancel(D)})});var A,L;if(this.getDocumentInfo(E.query).hasClientExports)A=new el(this.localState.addExportedVariables(E.query,E.variables,E.context).then(T).then(function(D){return D.sources})),L=!0;else{var R=T(E.variables);L=R.fromLink,A=new el(R.sources)}return A.promise.then(C,C),{concast:A,fromLink:L}},t.prototype.refetchQueries=function(e){var r=this,n=e.updateCache,o=e.include,i=e.optimistic,a=i===void 0?!1:i,c=e.removeOptimistic,d=c===void 0?a?og("refetchQueries"):void 0:c,u=e.onQueryUpdated,f=new Map;o&&this.getObservableQueries(o).forEach(function(_,b){f.set(b,{oq:_,lastDiff:r.getQuery(b).getDiff()})});var g=new Map;return n&&this.cache.batch({update:n,optimistic:a&&d||!1,removeOptimistic:d,onWatchUpdated:function(_,b,h){var m=_.watcher instanceof pv&&_.watcher.observableQuery;if(m){if(u){f.delete(m.queryId);var y=u(m,b,h);return y===!0&&(y=m.refetch()),y!==!1&&g.set(m,y),y}u!==null&&f.set(m.queryId,{oq:m,lastDiff:h,diff:b})}}}),f.size&&f.forEach(function(_,b){var h=_.oq,m=_.lastDiff,y=_.diff,v;if(u){if(!y){var x=h.queryInfo;x.reset(),y=x.getDiff()}v=u(h,y,m)}(!u||v===!0)&&(v=h.refetch()),v!==!1&&g.set(h,v),b.indexOf("legacyOneTimeQuery")>=0&&r.stopQueryNoBroadcast(b)}),d&&this.cache.removeOptimistic(d),g},t.prototype.fetchQueryByPolicy=function(e,r,n){var o=this,i=r.query,a=r.variables,c=r.fetchPolicy,d=r.refetchWritePolicy,u=r.errorPolicy,f=r.returnPartialData,g=r.context,_=r.notifyOnNetworkStatusChange,b=e.networkStatus;e.init({document:i,variables:a,networkStatus:n});var h=function(){return e.getDiff()},m=function(T,C){C===void 0&&(C=e.networkStatus||Ft.loading);var A=T.result;globalThis.__DEV__!==!1&&!f&&!rr(A,{})&&iC(T.missing);var L=function(R){return Wt.of(re({data:R,loading:bd(C),networkStatus:C},T.complete?null:{partial:!0}))};return A&&o.getDocumentInfo(i).hasForcedResolvers?o.localState.runResolvers({document:i,remoteResult:{data:A},context:g,variables:a,onlyRunForcedResolvers:!0}).then(function(R){return L(R.data||void 0)}):u==="none"&&C===Ft.refetch&&Array.isArray(T.missing)?L(void 0):L(A)},y=c==="no-cache"?0:n===Ft.refetch&&d!=="merge"?1:2,v=function(){return o.getResultsFromLink(e,y,{query:i,variables:a,context:g,fetchPolicy:c,errorPolicy:u})},x=_&&typeof b=="number"&&b!==n&&bd(n);switch(c){default:case"cache-first":{var E=h();return E.complete?{fromLink:!1,sources:[m(E,e.markReady())]}:f||x?{fromLink:!0,sources:[m(E),v()]}:{fromLink:!0,sources:[v()]}}case"cache-and-network":{var E=h();return E.complete||f||x?{fromLink:!0,sources:[m(E),v()]}:{fromLink:!0,sources:[v()]}}case"cache-only":return{fromLink:!1,sources:[m(h(),e.markReady())]};case"network-only":return x?{fromLink:!0,sources:[m(h()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return x?{fromLink:!0,sources:[m(e.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},t.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new pv(this,e)),this.queries.get(e)},t.prototype.prepareContext=function(e){e===void 0&&(e={});var r=this.localState.prepareContext(e);return re(re({},r),{clientAwareness:this.clientAwareness})},t}(),Ww=!1,sC=function(){function t(e){var r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw on(13);var n=e.uri,o=e.credentials,i=e.headers,a=e.cache,c=e.documentTransform,d=e.ssrMode,u=d===void 0?!1:d,f=e.ssrForceFetchDelay,g=f===void 0?0:f,_=e.connectToDevTools,b=_===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&globalThis.__DEV__!==!1:_,h=e.queryDeduplication,m=h===void 0?!0:h,y=e.defaultOptions,v=e.assumeImmutableResults,x=v===void 0?a.assumeImmutableResults:v,E=e.resolvers,T=e.typeDefs,C=e.fragmentMatcher,A=e.name,L=e.version,R=e.link;R||(R=n?new tN({uri:n,credentials:o,headers:i}):Gl.empty()),this.link=R,this.cache=a,this.disableNetworkFetches=u||g>0,this.queryDeduplication=m,this.defaultOptions=y||Object.create(null),this.typeDefs=T,g&&setTimeout(function(){return r.disableNetworkFetches=!1},g),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Wy,this.localState=new aC({cache:a,client:this,resolvers:E,fragmentMatcher:C}),this.queryManager=new GN({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:c,queryDeduplication:m,ssrMode:u,clientAwareness:{name:A,version:L},localState:this.localState,assumeImmutableResults:x,onBroadcast:b?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),b&&this.connectToDevTools()}return t.prototype.connectToDevTools=function(){if(typeof window=="object"){var e=window,r=Symbol.for("apollo.devtools");(e[r]=e[r]||[]).push(this),e.__APOLLO_CLIENT__=this}!Ww&&globalThis.__DEV__!==!1&&(Ww=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var n=window.navigator,o=n&&n.userAgent,i=void 0;typeof o=="string"&&(o.indexOf("Chrome/")>-1?i="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":o.indexOf("Firefox/")>-1&&(i="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),i&&globalThis.__DEV__!==!1&&nt.log("Download the Apollo DevTools for a better development experience: %s",i)}},1e4))},Object.defineProperty(t.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=ov(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=re(re({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},t.prototype.query=function(e){return this.defaultOptions.query&&(e=ov(this.defaultOptions.query,e)),nt(e.fetchPolicy!=="cache-and-network",14),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=re(re({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},t.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=ov(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},t.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!1),this.cache.readQuery(e,r)},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!1),this.cache.readFragment(e,r)},t.prototype.writeQuery=function(e){var r=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.writeFragment=function(e){var r=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},t.prototype.__requestRaw=function(e){return vg(this.link,e)},t.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(r){return r()}))}).then(function(){return e.reFetchObservableQueries()})},t.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(r){return r()}))})},t.prototype.onResetStore=function(e){var r=this;return this.resetStoreCallbacks.push(e),function(){r.resetStoreCallbacks=r.resetStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.onClearStore=function(e){var r=this;return this.clearStoreCallbacks.push(e),function(){r.clearStoreCallbacks=r.clearStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},t.prototype.refetchQueries=function(e){var r=this.queryManager.refetchQueries(e),n=[],o=[];r.forEach(function(a,c){n.push(c),o.push(a)});var i=Promise.all(o);return i.queries=n,i.results=o,i.catch(function(a){globalThis.__DEV__!==!1&&nt.debug(15,a)}),i},t.prototype.getObservableQueries=function(e){return e===void 0&&(e="active"),this.queryManager.getObservableQueries(e)},t.prototype.extract=function(e){return this.cache.extract(e)},t.prototype.restore=function(e){return this.cache.restore(e)},t.prototype.addResolvers=function(e){this.localState.addResolvers(e)},t.prototype.setResolvers=function(e){this.localState.setResolvers(e)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},t.prototype.setLink=function(e){this.link=this.queryManager.link=e},t}(),Vf=new Map,Ag=new Map,lC=!0,cp=!1;function cC(t){return t.replace(/[\s,]+/g," ").trim()}function QN(t){return cC(t.source.body.substring(t.start,t.end))}function KN(t){var e=new Set,r=[];return t.definitions.forEach(function(n){if(n.kind==="FragmentDefinition"){var o=n.name.value,i=QN(n.loc),a=Ag.get(o);a&&!a.has(i)?lC&&console.warn("Warning: fragment with name "+o+` already exists. +`),E=jF(v.slice(0,x)),T=E["content-type"],T&&T.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(C=v.slice(x),C){if(A=Ik(t,C),Object.keys(A).length>1||"data"in A||"incremental"in A||"errors"in A||"payload"in A)CF(A)?(L={},"payload"in A&&(L=re({},A.payload)),"errors"in A&&(L=re(re({},L),{extensions:re(re({},"extensions"in L?L.extensions:null),(D={},D[ib]=A.errors,D))})),e(L)):e(A);else if(Object.keys(A).length===1&&"hasNext"in A&&!A.hasNext)return[2]}y=d.indexOf(c)}return[3,1];case 3:return[2]}})})}function jF(t){var e={};return t.split(` +`).forEach(function(r){var n=r.indexOf(":");if(n>-1){var o=r.slice(0,n).trim().toLowerCase(),i=r.slice(n+1).trim();e[o]=i}}),e}function Ik(t,e){if(t.status>=300){var r=function(){try{return JSON.parse(e)}catch{return e}};mg(t,r(),"Response not successful: Received status code ".concat(t.status))}try{return JSON.parse(e)}catch(o){var n=o;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}}function HF(t,e){t.result&&t.result.errors&&t.result.data&&e.next(t.result),e.error(t)}function $k(t){return function(e){return e.text().then(function(r){return Ik(e,r)}).then(function(r){return e.status>=300&&mg(e,r,"Response not successful: Received status code ".concat(e.status)),!Array.isArray(r)&&!pw.call(r,"data")&&!pw.call(r,"errors")&&mg(e,r,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(n){return n.operationName}):t.operationName,"'.")),r})}}var ip=function(t,e){var r;try{r=JSON.stringify(t)}catch(o){var n=on(37,e,o.message);throw n.parseError=o,n}return r},WF={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},GF={accept:"*/*","content-type":"application/json"},QF={method:"POST"},Ok={http:WF,headers:GF,options:QF},Pk=function(t,e){return e(t)};function Rk(t,e){for(var r=[],n=2;n"u")throw on(35)},ZF=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var t=new AbortController,e=t.signal;return{controller:t,signal:e}},Lk=function(t,e){var r=t.getContext(),n=r.uri;return n||(typeof e=="function"?e(t):e||"/graphql")};function XF(t,e){var r=[],n=function(g,_){r.push("".concat(g,"=").concat(encodeURIComponent(_)))};if("query"in e&&n("query",e.query),e.operationName&&n("operationName",e.operationName),e.variables){var o=void 0;try{o=ip(e.variables,"Variables map")}catch(g){return{parseError:g}}n("variables",o)}if(e.extensions){var i=void 0;try{i=ip(e.extensions,"Extensions map")}catch(g){return{parseError:g}}n("extensions",i)}var a="",c=t,d=t.indexOf("#");d!==-1&&(a=t.substr(d),c=t.substr(0,d));var u=c.indexOf("?")===-1?"?":"&",f=c+u+r.join("&")+a;return{newURI:f}}var hw=so(function(){return fetch}),JF=function(t){t===void 0&&(t={});var e=t.uri,r=e===void 0?"/graphql":e,n=t.fetch,o=t.print,i=o===void 0?Pk:o,a=t.includeExtensions,c=t.preserveHeaderCase,d=t.useGETForQueries,u=t.includeUnusedVariables,f=u===void 0?!1:u,g=fa(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&YF(n||hw);var _={http:{includeExtensions:a,preserveHeaderCase:c},options:g.fetchOptions,credentials:g.credentials,headers:g.headers};return new Gl(function(b){var h=Lk(b,r),m=b.getContext(),y={};if(m.clientAwareness){var v=m.clientAwareness,x=v.name,E=v.version;x&&(y["apollographql-client-name"]=x),E&&(y["apollographql-client-version"]=E)}var T=re(re({},y),m.headers),C={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:T};if(gd(["client"],b.query)){var A=xk(b.query);if(!A)return qf(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));b.query=A}var L=Rk(b,i,Ok,_,C),R=L.options,D=L.body;D.variables&&!f&&(D.variables=$F(D.variables,b.query));var q;!R.signal&&typeof AbortController<"u"&&(q=new AbortController,R.signal=q.signal);var H=function(Ce){return Ce.kind==="OperationDefinition"&&Ce.operation==="mutation"},U=function(Ce){return Ce.kind==="OperationDefinition"&&Ce.operation==="subscription"},ce=U(zd(b.query)),Ae=gd(["defer"],b.query);if(d&&!b.query.definitions.some(H)&&(R.method="GET"),Ae||ce){R.headers=R.headers||{};var Le="multipart/mixed;";ce&&Ae&&globalThis.__DEV__!==!1&&nt.warn(36),ce?Le+="boundary=graphql;subscriptionSpec=1.0,application/json":Ae&&(Le+="deferSpec=20220824,application/json"),R.headers.accept=Le}if(R.method==="GET"){var Te=XF(h,D),Ie=Te.newURI,Pe=Te.parseError;if(Pe)return qf(Pe);h=Ie}else try{R.body=ip(D,"Payload")}catch(Ce){return qf(Ce)}return new Wt(function(Ce){var de=n||so(function(){return fetch})||hw,we=Ce.next.bind(Ce);return de(h,R).then(function(ke){var Re;b.setContext({response:ke});var He=(Re=ke.headers)===null||Re===void 0?void 0:Re.get("content-type");return He!==null&&/^multipart\/mixed/i.test(He)?VF(ke,we):$k(b)(ke).then(we)}).then(function(){q=void 0,Ce.complete()}).catch(function(ke){q=void 0,HF(ke,Ce)}),function(){q&&q.abort()}})})},eN=function(t){Go(e,t);function e(r){r===void 0&&(r={});var n=t.call(this,JF(r).request)||this;return n.options=r,n}return e}(Gl);const{toString:mw,hasOwnProperty:tN}=Object.prototype,vw=Function.prototype.toString,gg=new Map;function rr(t,e){try{return _g(t,e)}finally{gg.clear()}}function _g(t,e){if(t===e)return!0;const r=mw.call(t),n=mw.call(e);if(r!==n)return!1;switch(r){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(_w(t,e))return!0;const o=gw(t),i=gw(e),a=o.length;if(a!==i.length)return!1;for(let c=0;c=0&&t.indexOf(e,r)===r}function _w(t,e){let r=gg.get(t);if(r){if(r.has(e))return!0}else gg.set(t,r=new Set);return r.add(e),!1}function iN(){}let aN=class{constructor(e=1/0,r=iN){this.max=e,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:o}=r;o&&(o.older=n),n&&(n.newer=o),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=o)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const r=this.map.get(e);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(e),this.dispose(r.value,e),!0):!1}};var Mr=null,yw={},sN=1,lN=function(){return function(){function t(){this.id=["slot",sN++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return t.prototype.hasValue=function(){for(var e=Mr;e;e=e.parent)if(this.id in e.slots){var r=e.slots[this.id];if(r===yw)break;return e!==Mr&&(Mr.slots[this.id]=r),!0}return Mr&&(Mr.slots[this.id]=yw),!1},t.prototype.getValue=function(){if(this.hasValue())return Mr.slots[this.id]},t.prototype.withValue=function(e,r,n,o){var i,a=(i={__proto__:null},i[this.id]=e,i),c=Mr;Mr={parent:c,slots:a};try{return r.apply(o,n)}finally{Mr=c}},t.bind=function(e){var r=Mr;return function(){var n=Mr;try{return Mr=r,e.apply(this,arguments)}finally{Mr=n}}},t.noContext=function(e,r,n){if(Mr){var o=Mr;try{return Mr=null,e.apply(n,r)}finally{Mr=o}}else return e.apply(n,r)},t}()};function bw(t){try{return t()}catch{}}var iv="@wry/context:Slot",cN=bw(function(){return globalThis})||bw(function(){return global})||Object.create(null),xw=cN,ab=xw[iv]||Array[iv]||function(t){try{Object.defineProperty(xw,iv,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(lN());ab.bind;ab.noContext;const th=new ab,{hasOwnProperty:dN}=Object.prototype,sb=Array.from||function(t){const e=[];return t.forEach(r=>e.push(r)),e};function ap(t){const{unsubscribe:e}=t;typeof e=="function"&&(t.unsubscribe=void 0,e())}const _d=[],uN=100;function Al(t,e){if(!t)throw new Error(e||"assertion failure")}function fN(t,e){const r=t.length;return r>0&&r===e.length&&t[r-1]===e[r-1]}function Mk(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function pN(t){return t.slice(0)}class rh{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++rh.count}peek(){if(this.value.length===1&&!va(this))return ww(this),this.value[0]}recompute(e){return Al(!this.recomputing,"already recomputing"),ww(this),va(this)?hN(this,e):Mk(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,Dk(this),ap(this))}dispose(){this.setDirty(),Bk(this),lb(this,(e,r)=>{e.setDirty(),Uk(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=_d.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(sb(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),_d.push(this.deps),this.deps=null)}}rh.count=0;function ww(t){const e=th.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),va(t)?Nk(e,t):zk(e,t),e}function hN(t,e){return Bk(t),th.withValue(t,mN,[t,e]),gN(t,e)&&vN(t),Mk(t.value)}function mN(t,e){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,e)}catch(r){t.value[1]=r}t.recomputing=!1}function va(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function vN(t){t.dirty=!1,!va(t)&&Fk(t)}function Dk(t){lb(t,Nk)}function Fk(t){lb(t,zk)}function lb(t,e){const r=t.parents.size;if(r){const n=sb(t.parents);for(let o=0;o0&&t.childValues.forEach((e,r)=>{Uk(t,r)}),t.forgetDeps(),Al(t.dirtyChildren===null)}function Uk(t,e){e.parents.delete(t),t.childValues.delete(e),qk(t,e)}function gN(t,e){if(typeof t.subscribe=="function")try{ap(t),t.unsubscribe=t.subscribe.apply(null,e)}catch{return t.setDirty(),!1}return!0}const _N={setDirty:!0,dispose:!0,forget:!0};function Vk(t){const e=new Map,r=t&&t.subscribe;function n(o){const i=th.getValue();if(i){let a=e.get(o);a||e.set(o,a=new Set),i.dependOn(a),typeof r=="function"&&(ap(a),a.unsubscribe=r(o))}}return n.dirty=function(i,a){const c=e.get(i);if(c){const d=a&&dN.call(_N,a)?a:"setDirty";sb(c).forEach(u=>u[d]()),e.delete(i),ap(c)}},n}let Ew;function yN(...t){return(Ew||(Ew=new Ea(typeof WeakMap=="function"))).lookupArray(t)}const av=new Set;function sp(t,{max:e=Math.pow(2,16),makeCacheKey:r=yN,keyArgs:n,subscribe:o}=Object.create(null)){const i=new aN(e,f=>f.dispose()),a=function(){const f=r.apply(null,n?n.apply(null,arguments):arguments);if(f===void 0)return t.apply(null,arguments);let g=i.get(f);g||(i.set(f,g=new rh(t)),g.subscribe=o,g.forget=()=>i.delete(f));const _=g.recompute(Array.prototype.slice.call(arguments));return i.set(f,g),av.add(i),th.hasValue()||(av.forEach(b=>b.clean()),av.clear()),_};Object.defineProperty(a,"size",{get(){return i.map.size},configurable:!1,enumerable:!1}),Object.freeze(a.options={max:e,makeCacheKey:r,keyArgs:n,subscribe:o});function c(f){const g=i.get(f);g&&g.setDirty()}a.dirtyKey=c,a.dirty=function(){c(r.apply(null,arguments))};function d(f){const g=i.get(f);if(g)return g.peek()}a.peekKey=d,a.peek=function(){return d(r.apply(null,arguments))};function u(f){return i.delete(f)}return a.forgetKey=u,a.forget=function(){return u(r.apply(null,arguments))},a.makeCacheKey=r,a.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(a)}var bN=function(){function t(){this.assumeImmutableResults=!1,this.getFragmentDoc=sp(HD)}return t.prototype.batch=function(e){var r=this,n=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0,o;return this.performTransaction(function(){return o=e.update(r)},n),o},t.prototype.recordOptimisticTransaction=function(e,r){this.performTransaction(e,r)},t.prototype.transformDocument=function(e){return e},t.prototype.transformForLink=function(e){return e},t.prototype.identify=function(e){},t.prototype.gc=function(){return[]},t.prototype.modify=function(e){return!1},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!!e.optimistic),this.read(re(re({},e),{rootId:e.id||"ROOT_QUERY",optimistic:r}))},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!!e.optimistic),this.read(re(re({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:r}))},t.prototype.writeQuery=function(e){var r=e.id,n=e.data,o=fa(e,["id","data"]);return this.write(Object.assign(o,{dataId:r||"ROOT_QUERY",result:n}))},t.prototype.writeFragment=function(e){var r=e.id,n=e.data,o=e.fragment,i=e.fragmentName,a=fa(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(o,i),dataId:r,result:n}))},t.prototype.updateQuery=function(e,r){return this.batch({update:function(n){var o=n.readQuery(e),i=r(o);return i==null?o:(n.writeQuery(re(re({},e),{data:i})),i)}})},t.prototype.updateFragment=function(e,r){return this.batch({update:function(n){var o=n.readFragment(e),i=r(o);return i==null?o:(n.writeFragment(re(re({},e),{data:i})),i)}})},t}(),jk=function(t){Go(e,t);function e(r,n,o,i){var a,c=t.call(this,r)||this;if(c.message=r,c.path=n,c.query=o,c.variables=i,Array.isArray(c.path)){c.missing=c.message;for(var d=c.path.length-1;d>=0;--d)c.missing=(a={},a[c.path[d]]=c.missing,a)}else c.missing=c.path;return c.__proto__=e.prototype,c}return e}(Error),Ar=Object.prototype.hasOwnProperty;function Ic(t){return t==null}function Hk(t,e){var r=t.__typename,n=t.id,o=t._id;if(typeof r=="string"&&(e&&(e.keyObject=Ic(n)?Ic(o)?void 0:{_id:o}:{id:n}),Ic(n)&&!Ic(o)&&(n=o),!Ic(n)))return"".concat(r,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var Wk={dataIdFromObject:Hk,addTypename:!0,resultCaching:!0,canonizeResults:!1};function xN(t){return Cl(Wk,t)}function Gk(t){var e=t.canonizeResults;return e===void 0?Wk.canonizeResults:e}function wN(t,e){return Nt(e)?t.get(e.__ref,"__typename"):e&&e.__typename}var Qk=/^[_a-z][_0-9a-z]*/i;function ga(t){var e=t.match(Qk);return e?e[0]:t}function yg(t,e,r){return er(e)?ir(e)?e.every(function(n){return yg(t,n,r)}):t.selections.every(function(n){if(ha(n)&&Dd(n,r)){var o=pa(n);return Ar.call(e,o)&&(!n.selectionSet||yg(n.selectionSet,e[o],r))}return!0}):!1}function sl(t){return er(t)&&!Nt(t)&&!ir(t)}function EN(){return new ma}function Kk(t,e){var r=Zp(eh(t));return{fragmentMap:r,lookupFragment:function(n){var o=r[n];return!o&&e&&(o=e.lookup(n)),o||null}}}var Bf=Object.create(null),sv=function(){return Bf},Tw=Object.create(null),yd=function(){function t(e,r){var n=this;this.policies=e,this.group=r,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(o,i){return pg(Nt(o)?n.get(o.__ref,i):o&&o[i])},this.canRead=function(o){return Nt(o)?n.has(o.__ref):typeof o=="object"},this.toReference=function(o,i){if(typeof o=="string")return hl(o);if(Nt(o))return o;var a=n.policies.identify(o)[0];if(a){var c=hl(a);return i&&n.merge(a,o),c}}}return t.prototype.toObject=function(){return re({},this.data)},t.prototype.has=function(e){return this.lookup(e,!0)!==void 0},t.prototype.get=function(e,r){if(this.group.depend(e,r),Ar.call(this.data,e)){var n=this.data[e];if(n&&Ar.call(n,r))return n[r]}if(r==="__typename"&&Ar.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof Gi)return this.parent.get(e,r)},t.prototype.lookup=function(e,r){if(r&&this.group.depend(e,"__exists"),Ar.call(this.data,e))return this.data[e];if(this instanceof Gi)return this.parent.lookup(e,r);if(this.policies.rootTypenamesById[e])return Object.create(null)},t.prototype.merge=function(e,r){var n=this,o;Nt(e)&&(e=e.__ref),Nt(r)&&(r=r.__ref);var i=typeof e=="string"?this.lookup(o=e):e,a=typeof r=="string"?this.lookup(o=r):r;if(a){nt(typeof o=="string",1);var c=new ma(kN).merge(i,a);if(this.data[o]=c,c!==i&&(delete this.refs[o],this.group.caching)){var d=Object.create(null);i||(d.__exists=1),Object.keys(a).forEach(function(u){if(!i||i[u]!==c[u]){d[u]=1;var f=ga(u);f!==u&&!n.policies.hasKeyArgs(c.__typename,f)&&(d[f]=1),c[u]===void 0&&!(n instanceof Gi)&&delete c[u]}}),d.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[o]===c.__typename&&delete d.__typename,Object.keys(d).forEach(function(u){return n.group.dirty(o,u)})}}},t.prototype.modify=function(e,r){var n=this,o=this.lookup(e);if(o){var i=Object.create(null),a=!1,c=!0,d={DELETE:Bf,INVALIDATE:Tw,isReference:Nt,toReference:this.toReference,canRead:this.canRead,readField:function(u,f){return n.policies.readField(typeof u=="string"?{fieldName:u,from:f||hl(e)}:u,{store:n})}};if(Object.keys(o).forEach(function(u){var f=ga(u),g=o[u];if(g!==void 0){var _=typeof r=="function"?r:r[u]||r[f];if(_){var b=_===sv?Bf:_(pg(g),re(re({},d),{fieldName:f,storeFieldName:u,storage:n.getStorage(e,u)}));b===Tw?n.group.dirty(e,u):(b===Bf&&(b=void 0),b!==g&&(i[u]=b,a=!0,g=b))}g!==void 0&&(c=!1)}}),a)return this.merge(e,i),c&&(this instanceof Gi?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},t.prototype.delete=function(e,r,n){var o,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),c=r&&n?this.policies.getStoreFieldName({typename:a,fieldName:r,args:n}):r;return this.modify(e,c?(o={},o[c]=sv,o):sv)}return!1},t.prototype.evict=function(e,r){var n=!1;return e.id&&(Ar.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Gi&&this!==r&&(n=this.parent.evict(e,r)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},t.prototype.clear=function(){this.replace(null)},t.prototype.extract=function(){var e=this,r=this.toObject(),n=[];return this.getRootIdSet().forEach(function(o){Ar.call(e.policies.rootTypenamesById,o)||n.push(o)}),n.length&&(r.__META={extraRootIds:n.sort()}),r},t.prototype.replace=function(e){var r=this;if(Object.keys(this.data).forEach(function(i){e&&Ar.call(e,i)||r.delete(i)}),e){var n=e.__META,o=fa(e,["__META"]);Object.keys(o).forEach(function(i){r.merge(i,o[i])}),n&&n.extraRootIds.forEach(this.retain,this)}},t.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},t.prototype.release=function(e){if(this.rootIds[e]>0){var r=--this.rootIds[e];return r||delete this.rootIds[e],r}return 0},t.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Gi?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},t.prototype.gc=function(){var e=this,r=this.getRootIdSet(),n=this.toObject();r.forEach(function(a){Ar.call(n,a)&&(Object.keys(e.findChildRefIds(a)).forEach(r.add,r),delete n[a])});var o=Object.keys(n);if(o.length){for(var i=this;i instanceof Gi;)i=i.parent;o.forEach(function(a){return i.delete(a)})}return o},t.prototype.findChildRefIds=function(e){if(!Ar.call(this.refs,e)){var r=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return r;var o=new Set([n]);o.forEach(function(i){Nt(i)&&(r[i.__ref]=!0),er(i)&&Object.keys(i).forEach(function(a){var c=i[a];er(c)&&o.add(c)})})}return this.refs[e]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),Yk=function(){function t(e,r){r===void 0&&(r=null),this.caching=e,this.parent=r,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?Vk():null,this.keyMaker=new Ea(xi)},t.prototype.depend=function(e,r){if(this.d){this.d(lv(e,r));var n=ga(r);n!==r&&this.d(lv(e,n)),this.parent&&this.parent.depend(e,r)}},t.prototype.dirty=function(e,r){this.d&&this.d.dirty(lv(e,r),r==="__exists"?"forget":"setDirty")},t}();function lv(t,e){return e+"#"+t}function kw(t,e){Wc(t)&&t.group.depend(e,"__exists")}(function(t){var e=function(r){Go(n,r);function n(o){var i=o.policies,a=o.resultCaching,c=a===void 0?!0:a,d=o.seed,u=r.call(this,i,new Yk(c))||this;return u.stump=new TN(u),u.storageTrie=new Ea(xi),d&&u.replace(d),u}return n.prototype.addLayer=function(o,i){return this.stump.addLayer(o,i)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n}(t);t.Root=e})(yd||(yd={}));var Gi=function(t){Go(e,t);function e(r,n,o,i){var a=t.call(this,n.policies,i)||this;return a.id=r,a.parent=n,a.replay=o,a.group=i,o(a),a}return e.prototype.addLayer=function(r,n){return new e(r,this,n,this.group)},e.prototype.removeLayer=function(r){var n=this,o=this.parent.removeLayer(r);return r===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(i){var a=n.data[i],c=o.lookup(i);c?a?a!==c&&Object.keys(a).forEach(function(d){rr(a[d],c[d])||n.group.dirty(i,d)}):(n.group.dirty(i,"__exists"),Object.keys(c).forEach(function(d){n.group.dirty(i,d)})):n.delete(i)}),o):o===this.parent?this:o.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return re(re({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(r){var n=this.parent.findChildRefIds(r);return Ar.call(this.data,r)?re(re({},n),t.prototype.findChildRefIds.call(this,r)):n},e.prototype.getStorage=function(){for(var r=this.parent;r.parent;)r=r.parent;return r.getStorage.apply(r,arguments)},e}(yd),TN=function(t){Go(e,t);function e(r){return t.call(this,"EntityStore.Stump",r,function(){},new Yk(r.group.caching,r.group))||this}return e.prototype.removeLayer=function(){return this},e.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},e}(Gi);function kN(t,e,r){var n=t[r],o=e[r];return rr(n,o)?n:o}function Wc(t){return!!(t instanceof yd&&t.group.caching)}function CN(t){return er(t)?ir(t)?t.slice(0):re({__proto__:Object.getPrototypeOf(t)},t):t}var bg=function(){function t(){this.known=new(hk?WeakSet:Set),this.pool=new Ea(xi),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return t.prototype.isKnown=function(e){return er(e)&&this.known.has(e)},t.prototype.pass=function(e){if(er(e)){var r=CN(e);return this.passes.set(r,e),r}return e},t.prototype.admit=function(e){var r=this;if(er(e)){var n=this.passes.get(e);if(n)return n;var o=Object.getPrototypeOf(e);switch(o){case Array.prototype:{if(this.known.has(e))return e;var i=e.map(this.admit,this),a=this.pool.lookupArray(i);return a.array||(this.known.add(a.array=i),globalThis.__DEV__!==!1&&Object.freeze(i)),a.array}case null:case Object.prototype:{if(this.known.has(e))return e;var c=Object.getPrototypeOf(e),d=[c],u=this.sortedKeys(e);d.push(u.json);var f=d.length;u.sorted.forEach(function(b){d.push(r.admit(e[b]))});var a=this.pool.lookupArray(d);if(!a.object){var g=a.object=Object.create(c);this.known.add(g),u.sorted.forEach(function(b,h){g[b]=d[f+h]}),globalThis.__DEV__!==!1&&Object.freeze(g)}return a.object}}}return e},t.prototype.sortedKeys=function(e){var r=Object.keys(e),n=this.pool.lookupArray(r);if(!n.keys){r.sort();var o=JSON.stringify(r);(n.keys=this.keysByJSON.get(o))||this.keysByJSON.set(o,n.keys={sorted:r,json:o})}return n.keys},t}(),is=Object.assign(function(t){if(er(t)){xg===void 0&&Cw();var e=xg.admit(t),r=wg.get(e);return r===void 0&&wg.set(e,r=JSON.stringify(e)),r}return JSON.stringify(t)},{reset:Cw}),xg,wg;function Cw(){xg=new bg,wg=new(xi?WeakMap:Map)}function Aw(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var AN=function(){function t(e){var r=this;this.knownResults=new(xi?WeakMap:Map),this.config=Cl(e,{addTypename:e.addTypename!==!1,canonizeResults:Gk(e)}),this.canon=e.canon||new bg,this.executeSelectionSet=sp(function(n){var o,i=n.context.canonizeResults,a=Aw(n);a[3]=!i;var c=(o=r.executeSelectionSet).peek.apply(o,a);return c?i?re(re({},c),{result:r.canon.admit(c.result)}):c:(kw(n.context.store,n.enclosingRef.__ref),r.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize,keyArgs:Aw,makeCacheKey:function(n,o,i,a){if(Wc(i.store))return i.store.makeCacheKey(n,Nt(o)?o.__ref:o,i.varString,a)}}),this.executeSubSelectedArray=sp(function(n){return kw(n.context.store,n.enclosingRef.__ref),r.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(n){var o=n.field,i=n.array,a=n.context;if(Wc(a.store))return a.store.makeCacheKey(o,i,a.varString)}})}return t.prototype.resetCanon=function(){this.canon=new bg},t.prototype.diffQueryAgainstStore=function(e){var r=e.store,n=e.query,o=e.rootId,i=o===void 0?"ROOT_QUERY":o,a=e.variables,c=e.returnPartialData,d=c===void 0?!0:c,u=e.canonizeResults,f=u===void 0?this.config.canonizeResults:u,g=this.config.cache.policies;a=re(re({},Xy(vk(n))),a);var _=hl(i),b=this.executeSelectionSet({selectionSet:zd(n).selectionSet,objectOrReference:_,enclosingRef:_,context:re({store:r,query:n,policies:g,variables:a,varString:is(a),canonizeResults:f},Kk(n,this.config.fragments))}),h;if(b.missing&&(h=[new jk(SN(b.missing),b.missing,n,a)],!d))throw h[0];return{result:b.result,complete:!h,missing:h}},t.prototype.isFresh=function(e,r,n,o){if(Wc(o.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,r,o,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(e){var r=this,n=e.selectionSet,o=e.objectOrReference,i=e.enclosingRef,a=e.context;if(Nt(o)&&!a.policies.rootTypenamesById[o.__ref]&&!a.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var c=a.variables,d=a.policies,u=a.store,f=u.getFieldValue(o,"__typename"),g=[],_,b=new ma;this.config.addTypename&&typeof f=="string"&&!d.rootIdsByTypename[f]&&g.push({__typename:f});function h(E,T){var C;return E.missing&&(_=b.merge(_,(C={},C[T]=E.missing,C))),E.result}var m=new Set(n.selections);m.forEach(function(E){var T,C;if(Dd(E,c))if(ha(E)){var A=d.readField({fieldName:E.name.value,field:E,variables:a.variables,from:o},a),L=pa(E);A===void 0?Jy.added(E)||(_=b.merge(_,(T={},T[L]="Can't find field '".concat(E.name.value,"' on ").concat(Nt(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),T))):ir(A)?A=h(r.executeSubSelectedArray({field:E,array:A,enclosingRef:i,context:a}),L):E.selectionSet?A!=null&&(A=h(r.executeSelectionSet({selectionSet:E.selectionSet,objectOrReference:A,enclosingRef:Nt(A)?A:i,context:a}),L)):a.canonizeResults&&(A=r.canon.pass(A)),A!==void 0&&g.push((C={},C[L]=A,C))}else{var R=Xp(E,a.lookupFragment);if(!R&&E.kind===je.FRAGMENT_SPREAD)throw on(7,E.name.value);R&&d.fragmentMatches(R,f)&&R.selectionSet.selections.forEach(m.add,m)}});var y=eb(g),v={result:y,missing:_},x=a.canonizeResults?this.canon.admit(v):pg(v);return x.result&&this.knownResults.set(x.result,n),x},t.prototype.execSubSelectedArrayImpl=function(e){var r=this,n=e.field,o=e.array,i=e.enclosingRef,a=e.context,c,d=new ma;function u(f,g){var _;return f.missing&&(c=d.merge(c,(_={},_[g]=f.missing,_))),f.result}return n.selectionSet&&(o=o.filter(a.store.canRead)),o=o.map(function(f,g){return f===null?null:ir(f)?u(r.executeSubSelectedArray({field:n,array:f,enclosingRef:i,context:a}),g):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:f,enclosingRef:Nt(f)?f:i,context:a}),g):(globalThis.__DEV__!==!1&&IN(a.store,n,f),f)}),{result:a.canonizeResults?this.canon.admit(o):o,missing:c}},t}();function SN(t){try{JSON.stringify(t,function(e,r){if(typeof r=="string")throw r;return r})}catch(e){return e}}function IN(t,e,r){if(!e.selectionSet){var n=new Set([r]);n.forEach(function(o){er(o)&&(nt(!Nt(o),8,wN(t,o),e.name.value),Object.values(o).forEach(n.add,n))})}}let Dr=null;const Sw={};let $N=1;const ON=()=>class{constructor(){this.id=["slot",$N++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Dr;e;e=e.parent)if(this.id in e.slots){const r=e.slots[this.id];if(r===Sw)break;return e!==Dr&&(Dr.slots[this.id]=r),!0}return Dr&&(Dr.slots[this.id]=Sw),!1}getValue(){if(this.hasValue())return Dr.slots[this.id]}withValue(e,r,n,o){const i={__proto__:null,[this.id]:e},a=Dr;Dr={parent:a,slots:i};try{return r.apply(o,n)}finally{Dr=a}}static bind(e){const r=Dr;return function(){const n=Dr;try{return Dr=r,e.apply(this,arguments)}finally{Dr=n}}}static noContext(e,r,n){if(Dr){const o=Dr;try{return Dr=null,e.apply(n,r)}finally{Dr=o}}else return e.apply(n,r)}};function Iw(t){try{return t()}catch{}}const cv="@wry/context:Slot",PN=Iw(()=>globalThis)||Iw(()=>global)||Object.create(null),$w=PN,RN=$w[cv]||Array[cv]||function(t){try{Object.defineProperty($w,cv,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(ON());var cb=new RN,Ow=new WeakMap;function Gc(t){var e=Ow.get(t);return e||Ow.set(t,e={vars:new Set,dep:Vk()}),e}function Pw(t){Gc(t).vars.forEach(function(e){return e.forgetCache(t)})}function LN(t){Gc(t).vars.forEach(function(e){return e.attachCache(t)})}function MN(t){var e=new Set,r=new Set,n=function(i){if(arguments.length>0){if(t!==i){t=i,e.forEach(function(d){Gc(d).dep.dirty(n),DN(d)});var a=Array.from(r);r.clear(),a.forEach(function(d){return d(t)})}}else{var c=cb.getValue();c&&(o(c),Gc(c).dep(n))}return t};n.onNextChange=function(i){return r.add(i),function(){r.delete(i)}};var o=n.attachCache=function(i){return e.add(i),Gc(i).vars.add(n),n};return n.forgetCache=function(i){return e.delete(i)},n}function DN(t){t.broadcastWatches&&t.broadcastWatches()}var Rw=Object.create(null);function db(t){var e=JSON.stringify(t);return Rw[e]||(Rw[e]=Object.create(null))}function Lw(t){var e=db(t);return e.keyFieldsFn||(e.keyFieldsFn=function(r,n){var o=function(a,c){return n.readField(c,a)},i=n.keyObject=ub(t,function(a){var c=vl(n.storeObject,a,o);return c===void 0&&r!==n.storeObject&&Ar.call(r,a[0])&&(c=vl(r,a,Xk)),nt(c!==void 0,2,a.join("."),r),c});return"".concat(n.typename,":").concat(JSON.stringify(i))})}function Mw(t){var e=db(t);return e.keyArgsFn||(e.keyArgsFn=function(r,n){var o=n.field,i=n.variables,a=n.fieldName,c=ub(t,function(u){var f=u[0],g=f.charAt(0);if(g==="@"){if(o&&qo(o.directives)){var _=f.slice(1),b=o.directives.find(function(v){return v.name.value===_}),h=b&&Jp(b,i);return h&&vl(h,u.slice(1))}return}if(g==="$"){var m=f.slice(1);if(i&&Ar.call(i,m)){var y=u.slice(0);return y[0]=m,vl(i,y)}return}if(r)return vl(r,u)}),d=JSON.stringify(c);return(r||d!=="{}")&&(a+=":"+d),a})}function ub(t,e){var r=new ma;return Zk(t).reduce(function(n,o){var i,a=e(o);if(a!==void 0){for(var c=o.length-1;c>=0;--c)a=(i={},i[o[c]]=a,i);n=r.merge(n,a)}return n},Object.create(null))}function Zk(t){var e=db(t);if(!e.paths){var r=e.paths=[],n=[];t.forEach(function(o,i){ir(o)?(Zk(o).forEach(function(a){return r.push(n.concat(a))}),n.length=0):(n.push(o),ir(t[i+1])||(r.push(n.slice(0)),n.length=0))})}return e.paths}function Xk(t,e){return t[e]}function vl(t,e,r){return r=r||Xk,Jk(e.reduce(function n(o,i){return ir(o)?o.map(function(a){return n(a,i)}):o&&r(o,i)},t))}function Jk(t){return er(t)?ir(t)?t.map(Jk):ub(Object.keys(t).sort(),function(e){return vl(t,e)}):t}Zy.setStringify(is);function Eg(t){return t.args!==void 0?t.args:t.field?Jp(t.field,t.variables):null}var FN=function(){},Dw=function(t,e){return e.fieldName},Fw=function(t,e,r){var n=r.mergeObjects;return n(t,e)},Nw=function(t,e){return e},NN=function(){function t(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=re({dataIdFromObject:Hk},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return t.prototype.identify=function(e,r){var n,o=this,i=r&&(r.typename||((n=r.storeObject)===null||n===void 0?void 0:n.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=r&&r.storeObject||e,c=re(re({},r),{typename:i,storeObject:a,readField:r&&r.readField||function(){var _=fb(arguments,a);return o.readField(_,{store:o.cache.data,variables:_.variables})}}),d,u=i&&this.getTypePolicy(i),f=u&&u.keyFn||this.config.dataIdFromObject;f;){var g=f(re(re({},e),a),c);if(ir(g))f=Lw(g);else{d=g;break}}return d=d?String(d):void 0,c.keyObject?[d,c.keyObject]:[d]},t.prototype.addTypePolicies=function(e){var r=this;Object.keys(e).forEach(function(n){var o=e[n],i=o.queryType,a=o.mutationType,c=o.subscriptionType,d=fa(o,["queryType","mutationType","subscriptionType"]);i&&r.setRootTypename("Query",n),a&&r.setRootTypename("Mutation",n),c&&r.setRootTypename("Subscription",n),Ar.call(r.toBeAdded,n)?r.toBeAdded[n].push(d):r.toBeAdded[n]=[d]})},t.prototype.updateTypePolicy=function(e,r){var n=this,o=this.getTypePolicy(e),i=r.keyFields,a=r.fields;function c(d,u){d.merge=typeof u=="function"?u:u===!0?Fw:u===!1?Nw:d.merge}c(o,r.merge),o.keyFn=i===!1?FN:ir(i)?Lw(i):typeof i=="function"?i:o.keyFn,a&&Object.keys(a).forEach(function(d){var u=n.getFieldPolicy(e,d,!0),f=a[d];if(typeof f=="function")u.read=f;else{var g=f.keyArgs,_=f.read,b=f.merge;u.keyFn=g===!1?Dw:ir(g)?Mw(g):typeof g=="function"?g:u.keyFn,typeof _=="function"&&(u.read=_),c(u,b)}u.read&&u.merge&&(u.keyFn=u.keyFn||Dw)})},t.prototype.setRootTypename=function(e,r){r===void 0&&(r=e);var n="ROOT_"+e.toUpperCase(),o=this.rootTypenamesById[n];r!==o&&(nt(!o||o===e,3,e),o&&delete this.rootIdsByTypename[o],this.rootIdsByTypename[r]=n,this.rootTypenamesById[n]=r)},t.prototype.addPossibleTypes=function(e){var r=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){r.getSupertypeSet(n,!0),e[n].forEach(function(o){r.getSupertypeSet(o,!0).add(n);var i=o.match(Qk);(!i||i[0]!==o)&&r.fuzzySubtypes.set(o,new RegExp(o))})})},t.prototype.getTypePolicy=function(e){var r=this;if(!Ar.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var o=this.supertypeMap.get(e);!o&&this.fuzzySubtypes.size&&(o=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(a,c){if(a.test(e)){var d=r.supertypeMap.get(c);d&&d.forEach(function(u){return o.add(u)})}})),o&&o.size&&o.forEach(function(a){var c=r.getTypePolicy(a),d=c.fields,u=fa(c,["fields"]);Object.assign(n,u),Object.assign(n.fields,d)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(a){r.updateTypePolicy(e,a)}),this.typePolicies[e]},t.prototype.getFieldPolicy=function(e,r,n){if(e){var o=this.getTypePolicy(e).fields;return o[r]||n&&(o[r]=Object.create(null))}},t.prototype.getSupertypeSet=function(e,r){var n=this.supertypeMap.get(e);return!n&&r&&this.supertypeMap.set(e,n=new Set),n},t.prototype.fragmentMatches=function(e,r,n,o){var i=this;if(!e.typeCondition)return!0;if(!r)return!1;var a=e.typeCondition.name.value;if(r===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var c=this.getSupertypeSet(r,!0),d=[c],u=function(h){var m=i.getSupertypeSet(h,!1);m&&m.size&&d.indexOf(m)<0&&d.push(m)},f=!!(n&&this.fuzzySubtypes.size),g=!1,_=0;_1?o:e}:(a=re({},n),Ar.call(a,"from")||(a.from=e)),globalThis.__DEV__!==!1&&a.from===void 0&&globalThis.__DEV__!==!1&&nt.warn(5,ek(Array.from(t))),a.variables===void 0&&(a.variables=r),a}function eC(t){return function(r,n){if(ir(r)||ir(n))throw on(6);if(er(r)&&er(n)){var o=t.getFieldValue(r,"__typename"),i=t.getFieldValue(n,"__typename"),a=o&&i&&o!==i;if(a)return n;if(Nt(r)&&sl(n))return t.merge(r.__ref,n),r;if(sl(r)&&Nt(n))return t.merge(r,n.__ref),n;if(sl(r)&&sl(n))return re(re({},r),n)}return n}}function dv(t,e,r){var n="".concat(e).concat(r),o=t.flavors.get(n);return o||t.flavors.set(n,o=t.clientOnly===e&&t.deferred===r?t:re(re({},t),{clientOnly:e,deferred:r})),o}var zN=function(){function t(e,r,n){this.cache=e,this.reader=r,this.fragments=n}return t.prototype.writeToStore=function(e,r){var n=this,o=r.query,i=r.result,a=r.dataId,c=r.variables,d=r.overwrite,u=Nd(o),f=EN();c=re(re({},Xy(u)),c);var g=re(re({store:e,written:Object.create(null),merge:function(b,h){return f.merge(b,h)},variables:c,varString:is(c)},Kk(o,this.fragments)),{overwrite:!!d,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),_=this.processSelectionSet({result:i||Object.create(null),dataId:a,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:g});if(!Nt(_))throw on(9,i);return g.incomingById.forEach(function(b,h){var m=b.storeObject,y=b.mergeTree,v=b.fieldNodeSet,x=hl(h);if(y&&y.map.size){var E=n.applyMerges(y,x,m,g);if(Nt(E))return;m=E}if(globalThis.__DEV__!==!1&&!g.overwrite){var T=Object.create(null);v.forEach(function(L){L.selectionSet&&(T[L.name.value]=!0)});var C=function(L){return T[ga(L)]===!0},A=function(L){var R=y&&y.map.get(L);return!!(R&&R.info&&R.info.merge)};Object.keys(m).forEach(function(L){C(L)&&!A(L)&&qN(x,m,L,g.store)})}e.merge(h,m)}),e.retain(_.__ref),_},t.prototype.processSelectionSet=function(e){var r=this,n=e.dataId,o=e.result,i=e.selectionSet,a=e.context,c=e.mergeTree,d=this.cache.policies,u=Object.create(null),f=n&&d.rootTypenamesById[n]||lg(o,i,a.fragmentMap)||n&&a.store.get(n,"__typename");typeof f=="string"&&(u.__typename=f);var g=function(){var E=fb(arguments,u,a.variables);if(Nt(E.from)){var T=a.incomingById.get(E.from.__ref);if(T){var C=d.readField(re(re({},E),{from:T.storeObject}),a);if(C!==void 0)return C}}return d.readField(E,a)},_=new Set;this.flattenFields(i,o,a,f).forEach(function(E,T){var C,A=pa(T),L=o[A];if(_.add(T),L!==void 0){var R=d.getStoreFieldName({typename:f,fieldName:T.name.value,field:T,variables:E.variables}),D=qw(c,R),q=r.processFieldValue(L,T,T.selectionSet?dv(E,!1,!1):E,D),H=void 0;T.selectionSet&&(Nt(q)||sl(q))&&(H=g("__typename",q));var U=d.getMergeFunction(f,T.name.value,H);U?D.info={field:T,typename:f,merge:U}:Bw(c,R),u=E.merge(u,(C={},C[R]=q,C))}else globalThis.__DEV__!==!1&&!E.clientOnly&&!E.deferred&&!Jy.added(T)&&!d.getReadFunction(f,T.name.value)&&globalThis.__DEV__!==!1&&nt.error(10,pa(T),o)});try{var b=d.identify(o,{typename:f,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:u,readField:g}),h=b[0],m=b[1];n=n||h,m&&(u=a.merge(u,m))}catch(E){if(!n)throw E}if(typeof n=="string"){var y=hl(n),v=a.written[n]||(a.written[n]=[]);if(v.indexOf(i)>=0||(v.push(i),this.reader&&this.reader.isFresh(o,y,i,a)))return y;var x=a.incomingById.get(n);return x?(x.storeObject=a.merge(x.storeObject,u),x.mergeTree=Tg(x.mergeTree,c),_.forEach(function(E){return x.fieldNodeSet.add(E)})):a.incomingById.set(n,{storeObject:u,mergeTree:lp(c)?void 0:c,fieldNodeSet:_}),y}return u},t.prototype.processFieldValue=function(e,r,n,o){var i=this;return!r.selectionSet||e===null?globalThis.__DEV__!==!1?kk(e):e:ir(e)?e.map(function(a,c){var d=i.processFieldValue(a,r,n,qw(o,c));return Bw(o,c),d}):this.processSelectionSet({result:e,selectionSet:r.selectionSet,context:n,mergeTree:o})},t.prototype.flattenFields=function(e,r,n,o){o===void 0&&(o=lg(r,e,n.fragmentMap));var i=new Map,a=this.cache.policies,c=new Ea(!1);return function d(u,f){var g=c.lookup(u,f.clientOnly,f.deferred);g.visited||(g.visited=!0,u.selections.forEach(function(_){if(Dd(_,n.variables)){var b=f.clientOnly,h=f.deferred;if(!(b&&h)&&qo(_.directives)&&_.directives.forEach(function(v){var x=v.name.value;if(x==="client"&&(b=!0),x==="defer"){var E=Jp(v,n.variables);(!E||E.if!==!1)&&(h=!0)}}),ha(_)){var m=i.get(_);m&&(b=b&&m.clientOnly,h=h&&m.deferred),i.set(_,dv(n,b,h))}else{var y=Xp(_,n.lookupFragment);if(!y&&_.kind===je.FRAGMENT_SPREAD)throw on(11,_.name.value);y&&a.fragmentMatches(y,o,r,n.variables)&&d(y.selectionSet,dv(n,b,h))}}}))}(e,n),i},t.prototype.applyMerges=function(e,r,n,o,i){var a,c=this;if(e.map.size&&!Nt(n)){var d=!ir(n)&&(Nt(r)||sl(r))?r:void 0,u=n;d&&!i&&(i=[Nt(d)?d.__ref:d]);var f,g=function(_,b){return ir(_)?typeof b=="number"?_[b]:void 0:o.store.getFieldValue(_,String(b))};e.map.forEach(function(_,b){var h=g(d,b),m=g(u,b);if(m!==void 0){i&&i.push(b);var y=c.applyMerges(_,h,m,o,i);y!==m&&(f=f||new Map,f.set(b,y)),i&&nt(i.pop()===b)}}),f&&(n=ir(u)?u.slice(0):re({},u),f.forEach(function(_,b){n[b]=_}))}return e.info?this.cache.policies.runMergeFunction(r,n,e.info,o,i&&(a=o.store).getStorage.apply(a,i)):n},t}(),tC=[];function qw(t,e){var r=t.map;return r.has(e)||r.set(e,tC.pop()||{map:new Map}),r.get(e)}function Tg(t,e){if(t===e||!e||lp(e))return t;if(!t||lp(t))return e;var r=t.info&&e.info?re(re({},t.info),e.info):t.info||e.info,n=t.map.size&&e.map.size,o=n?new Map:t.map.size?t.map:e.map,i={info:r,map:o};if(n){var a=new Set(e.map.keys());t.map.forEach(function(c,d){i.map.set(d,Tg(c,e.map.get(d))),a.delete(d)}),a.forEach(function(c){i.map.set(c,Tg(e.map.get(c),t.map.get(c)))})}return i}function lp(t){return!t||!(t.info||t.map.size)}function Bw(t,e){var r=t.map,n=r.get(e);n&&lp(n)&&(tC.push(n),r.delete(e))}var Uw=new Set;function qN(t,e,r,n){var o=function(g){var _=n.getFieldValue(g,r);return typeof _=="object"&&_},i=o(t);if(i){var a=o(e);if(a&&!Nt(i)&&!rr(i,a)&&!Object.keys(i).every(function(g){return n.getFieldValue(a,g)!==void 0})){var c=n.getFieldValue(t,"__typename")||n.getFieldValue(e,"__typename"),d=ga(r),u="".concat(c,".").concat(d);if(!Uw.has(u)){Uw.add(u);var f=[];!ir(i)&&!ir(a)&&[i,a].forEach(function(g){var _=n.getFieldValue(g,"__typename");typeof _=="string"&&!f.includes(_)&&f.push(_)}),globalThis.__DEV__!==!1&&nt.warn(12,d,c,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",u,i,a)}}}}var rC=function(t){Go(e,t);function e(r){r===void 0&&(r={});var n=t.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new gk(Jy),n.assumeImmutableResults=!0,n.makeVar=MN,n.txCount=0,n.config=xN(r),n.addTypename=!!n.config.addTypename,n.policies=new NN({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return e.prototype.init=function(){var r=this.data=new yd.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=r.stump,this.resetResultCache()},e.prototype.resetResultCache=function(r){var n=this,o=this.storeReader,i=this.config.fragments;this.storeWriter=new zN(this,this.storeReader=new AN({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Gk(this.config),canon:r?void 0:o&&o.canon,fragments:i}),i),this.maybeBroadcastWatch=sp(function(a,c){return n.broadcastWatch(a,c)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(a){var c=a.optimistic?n.optimisticData:n.data;if(Wc(c)){var d=a.optimistic,u=a.id,f=a.variables;return c.makeCacheKey(a.query,a.callback,is({optimistic:d,id:u,variables:f}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(a){return a.resetCaching()})},e.prototype.restore=function(r){return this.init(),r&&this.data.replace(r),this},e.prototype.extract=function(r){return r===void 0&&(r=!1),(r?this.optimisticData:this.data).extract()},e.prototype.read=function(r){var n=r.returnPartialData,o=n===void 0?!1:n;try{return this.storeReader.diffQueryAgainstStore(re(re({},r),{store:r.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:o})).result||null}catch(i){if(i instanceof jk)return null;throw i}},e.prototype.write=function(r){try{return++this.txCount,this.storeWriter.writeToStore(this.data,r)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.modify=function(r){if(Ar.call(r,"id")&&!r.id)return!1;var n=r.optimistic?this.optimisticData:this.data;try{return++this.txCount,n.modify(r.id||"ROOT_QUERY",r.fields)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.diff=function(r){return this.storeReader.diffQueryAgainstStore(re(re({},r),{store:r.optimistic?this.optimisticData:this.data,rootId:r.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(r){var n=this;return this.watches.size||LN(this),this.watches.add(r),r.immediate&&this.maybeBroadcastWatch(r),function(){n.watches.delete(r)&&!n.watches.size&&Pw(n),n.maybeBroadcastWatch.forget(r)}},e.prototype.gc=function(r){is.reset();var n=this.optimisticData.gc();return r&&!this.txCount&&(r.resetResultCache?this.resetResultCache(r.resetResultIdentities):r.resetResultIdentities&&this.storeReader.resetCanon()),n},e.prototype.retain=function(r,n){return(n?this.optimisticData:this.data).retain(r)},e.prototype.release=function(r,n){return(n?this.optimisticData:this.data).release(r)},e.prototype.identify=function(r){if(Nt(r))return r.__ref;try{return this.policies.identify(r)[0]}catch(n){globalThis.__DEV__!==!1&&nt.warn(n)}},e.prototype.evict=function(r){if(!r.id){if(Ar.call(r,"id"))return!1;r=re(re({},r),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(r,this.data)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.reset=function(r){var n=this;return this.init(),is.reset(),r&&r.discardWatches?(this.watches.forEach(function(o){return n.maybeBroadcastWatch.forget(o)}),this.watches.clear(),Pw(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(r){var n=this.optimisticData.removeLayer(r);n!==this.optimisticData&&(this.optimisticData=n,this.broadcastWatches())},e.prototype.batch=function(r){var n=this,o=r.update,i=r.optimistic,a=i===void 0?!0:i,c=r.removeOptimistic,d=r.onWatchUpdated,u,f=function(_){var b=n,h=b.data,m=b.optimisticData;++n.txCount,_&&(n.data=n.optimisticData=_);try{return u=o(n)}finally{--n.txCount,n.data=h,n.optimisticData=m}},g=new Set;return d&&!this.txCount&&this.broadcastWatches(re(re({},r),{onWatchUpdated:function(_){return g.add(_),!1}})),typeof a=="string"?this.optimisticData=this.optimisticData.addLayer(a,f):a===!1?f(this.data):f(),typeof c=="string"&&(this.optimisticData=this.optimisticData.removeLayer(c)),d&&g.size?(this.broadcastWatches(re(re({},r),{onWatchUpdated:function(_,b){var h=d.call(this,_,b);return h!==!1&&g.delete(_),h}})),g.size&&g.forEach(function(_){return n.maybeBroadcastWatch.dirty(_)})):this.broadcastWatches(r),u},e.prototype.performTransaction=function(r,n){return this.batch({update:r,optimistic:n||n!==null})},e.prototype.transformDocument=function(r){return this.addTypenameToDocument(this.addFragmentsToDocument(r))},e.prototype.broadcastWatches=function(r){var n=this;this.txCount||this.watches.forEach(function(o){return n.maybeBroadcastWatch(o,r)})},e.prototype.addFragmentsToDocument=function(r){var n=this.config.fragments;return n?n.transform(r):r},e.prototype.addTypenameToDocument=function(r){return this.addTypename?this.addTypenameTransform.transformDocument(r):r},e.prototype.broadcastWatch=function(r,n){var o=r.lastDiff,i=this.diff(r);n&&(r.optimistic&&typeof n.optimistic=="string"&&(i.fromOptimisticTransaction=!0),n.onWatchUpdated&&n.onWatchUpdated.call(this,r,i,o)===!1)||(!o||!rr(o.result,i.result))&&r.callback(r.lastDiff=i,o)},e}(bN),Ft;(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"})(Ft||(Ft={}));function bd(t){return t?t<7:!1}function BN(t,e,r,n){var o=e.data,i=fa(e,["data"]),a=r.data,c=fa(r,["data"]);return rr(i,c)&&Uf(zd(t).selectionSet,o,a,{fragmentMap:Zp(eh(t)),variables:n})}function Uf(t,e,r,n){if(e===r)return!0;var o=new Set;return t.selections.every(function(i){if(o.has(i)||(o.add(i),!Dd(i,n.variables))||Vw(i))return!0;if(ha(i)){var a=pa(i),c=e&&e[a],d=r&&r[a],u=i.selectionSet;if(!u)return rr(c,d);var f=Array.isArray(c),g=Array.isArray(d);if(f!==g)return!1;if(f&&g){var _=c.length;if(d.length!==_)return!1;for(var b=0;b<_;++b)if(!Uf(u,c[b],d[b],n))return!1;return!0}return Uf(u,c,d,n)}else{var h=Xp(i,n.fragmentMap);if(h)return Vw(h)?!0:Uf(h.selectionSet,e,r,n)}})}function Vw(t){return!!t.directives&&t.directives.some(UN)}function UN(t){return t.name.value==="nonreactive"}var jw=Object.assign,VN=Object.hasOwnProperty,kg=function(t){Go(e,t);function e(r){var n=r.queryManager,o=r.queryInfo,i=r.options,a=t.call(this,function(y){try{var v=y._subscription._observer;v&&!v.error&&(v.error=jN)}catch{}var x=!a.observers.size;a.observers.add(y);var E=a.last;return E&&E.error?y.error&&y.error(E.error):E&&E.result&&y.next&&y.next(E.result),x&&a.reobserve().catch(function(){}),function(){a.observers.delete(y)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=o,a.queryManager=n,a.waitForOwnResult=uv(i.fetchPolicy),a.isTornDown=!1;var c=n.defaultOptions.watchQuery,d=c===void 0?{}:c,u=d.fetchPolicy,f=u===void 0?"cache-first":u,g=i.fetchPolicy,_=g===void 0?f:g,b=i.initialFetchPolicy,h=b===void 0?_==="standby"?f:_:b;a.options=re(re({},i),{initialFetchPolicy:h,fetchPolicy:_}),a.queryId=o.queryId||n.generateQueryId();var m=Nd(a.query);return a.queryName=m&&m.name&&m.name.value,a}return Object.defineProperty(e.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var r=this;return new Promise(function(n,o){var i={next:function(c){n(c),r.observers.delete(i),r.observers.size||r.queryManager.removeQuery(r.queryId),setTimeout(function(){a.unsubscribe()},0)},error:o},a=r.subscribe(i)})},e.prototype.getCurrentResult=function(r){r===void 0&&(r=!0);var n=this.getLastResult(!0),o=this.queryInfo.networkStatus||n&&n.networkStatus||Ft.ready,i=re(re({},n),{loading:bd(o),networkStatus:o}),a=this.options.fetchPolicy,c=a===void 0?"cache-first":a;if(!(uv(c)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var d=this.queryInfo.getDiff();(d.complete||this.options.returnPartialData)&&(i.data=d.result),rr(i.data,{})&&(i.data=void 0),d.complete?(delete i.partial,d.complete&&i.networkStatus===Ft.loading&&(c==="cache-first"||c==="cache-only")&&(i.networkStatus=Ft.ready,i.loading=!1)):i.partial=!0,globalThis.__DEV__!==!1&&!d.complete&&!this.options.partialRefetch&&!i.loading&&!i.data&&!i.error&&oC(d.missing)}return r&&this.updateLastResult(i),i},e.prototype.isDifferentFromLastResult=function(r,n){if(!this.last)return!0;var o=this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!BN(this.query,this.last.result,r,this.variables):!rr(this.last.result,r);return o||n&&!rr(this.last.variables,n)},e.prototype.getLast=function(r,n){var o=this.last;if(o&&o[r]&&(!n||rr(o.variables,this.variables)))return o[r]},e.prototype.getLastResult=function(r){return this.getLast("result",r)},e.prototype.getLastError=function(r){return this.getLast("error",r)},e.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(r){var n,o={pollInterval:0},i=this.options.fetchPolicy;if(i==="cache-and-network"?o.fetchPolicy=i:i==="no-cache"?o.fetchPolicy="no-cache":o.fetchPolicy="network-only",globalThis.__DEV__!==!1&&r&&VN.call(r,"variables")){var a=vk(this.query),c=a.variableDefinitions;(!c||!c.some(function(d){return d.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&nt.warn(18,r,((n=a.name)===null||n===void 0?void 0:n.value)||a)}return r&&!rr(this.options.variables,r)&&(o.variables=this.options.variables=re(re({},this.options.variables),r)),this.queryInfo.resetLastWrite(),this.reobserve(o,Ft.refetch)},e.prototype.fetchMore=function(r){var n=this,o=re(re({},r.query?r:re(re(re(re({},this.options),{query:this.options.query}),r),{variables:re(re({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"});o.query=this.transformDocument(o.query);var i=this.queryManager.generateQueryId();this.lastQuery=r.query?this.transformDocument(this.options.query):o.query;var a=this.queryInfo,c=a.networkStatus;a.networkStatus=Ft.fetchMore,o.notifyOnNetworkStatusChange&&this.observe();var d=new Set;return this.queryManager.fetchQuery(i,o,Ft.fetchMore).then(function(u){return n.queryManager.removeQuery(i),a.networkStatus===Ft.fetchMore&&(a.networkStatus=c),n.queryManager.cache.batch({update:function(f){var g=r.updateQuery;g?f.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(_){return g(_,{fetchMoreResult:u.data,variables:o.variables})}):f.writeQuery({query:o.query,variables:o.variables,data:u.data})},onWatchUpdated:function(f){d.add(f.query)}}),u}).finally(function(){d.has(n.query)||nC(n)})},e.prototype.subscribeToMore=function(r){var n=this,o=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables,context:r.context}).subscribe({next:function(i){var a=r.updateQuery;a&&n.updateQuery(function(c,d){var u=d.variables;return a(c,{subscriptionData:i,variables:u})})},error:function(i){if(r.onError){r.onError(i);return}globalThis.__DEV__!==!1&&nt.error(19,i)}});return this.subscriptions.add(o),function(){n.subscriptions.delete(o)&&o.unsubscribe()}},e.prototype.setOptions=function(r){return this.reobserve(r)},e.prototype.silentSetOptions=function(r){var n=Cl(this.options,r||{});jw(this.options,n)},e.prototype.setVariables=function(r){return rr(this.variables,r)?this.observers.size?this.result():Promise.resolve():(this.options.variables=r,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:r},Ft.setVariables):Promise.resolve())},e.prototype.updateQuery=function(r){var n=this.queryManager,o=n.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,i=r(o,{variables:this.variables});i&&(n.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),n.broadcastQueries())},e.prototype.startPolling=function(r){this.options.pollInterval=r,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(r,n){if(n.nextFetchPolicy){var o=n.fetchPolicy,i=o===void 0?"cache-first":o,a=n.initialFetchPolicy,c=a===void 0?i:a;i==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy(i,{reason:r,options:n,observable:this,initialFetchPolicy:c}):r==="variables-changed"?n.fetchPolicy=c:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy},e.prototype.fetch=function(r,n,o){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,r,n,o)},e.prototype.updatePolling=function(){var r=this;if(!this.queryManager.ssrMode){var n=this,o=n.pollingInfo,i=n.options.pollInterval;if(!i){o&&(clearTimeout(o.timeout),delete this.pollingInfo);return}if(!(o&&o.interval===i)){nt(i,20);var a=o||(this.pollingInfo={});a.interval=i;var c=function(){r.pollingInfo&&(bd(r.queryInfo.networkStatus)?d():r.reobserve({fetchPolicy:r.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},Ft.poll).then(d,d))},d=function(){var u=r.pollingInfo;u&&(clearTimeout(u.timeout),u.timeout=setTimeout(c,u.interval))};d()}}},e.prototype.updateLastResult=function(r,n){n===void 0&&(n=this.variables);var o=this.getLastError();return o&&this.last&&!rr(n,this.last.variables)&&(o=void 0),this.last=re({result:this.queryManager.assumeImmutableResults?r:kk(r),variables:n},o?{error:o}:null)},e.prototype.reobserveAsConcast=function(r,n){var o=this;this.isTornDown=!1;var i=n===Ft.refetch||n===Ft.fetchMore||n===Ft.poll,a=this.options.variables,c=this.options.fetchPolicy,d=Cl(this.options,r||{}),u=i?d:jw(this.options,d),f=this.transformDocument(u.query);this.lastQuery=f,i||(this.updatePolling(),r&&r.variables&&!rr(r.variables,a)&&u.fetchPolicy!=="standby"&&u.fetchPolicy===c&&(this.applyNextFetchPolicy("variables-changed",u),n===void 0&&(n=Ft.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=uv(u.fetchPolicy));var g=function(){o.concast===h&&(o.waitForOwnResult=!1)},_=u.variables&&re({},u.variables),b=this.fetch(u,n,f),h=b.concast,m=b.fromLink,y={next:function(v){g(),o.reportResult(v,_)},error:function(v){g(),o.reportError(v,_)}};return!i&&(m||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=h,this.observer=y),h.addObserver(y),h},e.prototype.reobserve=function(r,n){return this.reobserveAsConcast(r,n).promise},e.prototype.resubscribeAfterError=function(){for(var r=[],n=0;n0},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(r){return r.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(r){return this.queryManager.transform(r)},e}(Wt);Ck(kg);function nC(t){var e=t.options,r=e.fetchPolicy,n=e.nextFetchPolicy;return r==="cache-and-network"||r==="network-only"?t.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,typeof n=="function"?n.apply(this,arguments):r}}):t.reobserve()}function jN(t){globalThis.__DEV__!==!1&&nt.error(21,t.message,t.stack)}function oC(t){globalThis.__DEV__!==!1&&t&&globalThis.__DEV__!==!1&&nt.debug(22,t)}function uv(t){return t==="network-only"||t==="no-cache"||t==="standby"}var iC=function(){function t(e){var r=e.cache,n=e.client,o=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=r,n&&(this.client=n),o&&this.addResolvers(o),i&&this.setFragmentMatcher(i)}return t.prototype.addResolvers=function(e){var r=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(n){r.resolvers=iw(r.resolvers,n)}):this.resolvers=iw(this.resolvers,e)},t.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(e){var r=e.document,n=e.remoteResult,o=e.context,i=e.variables,a=e.onlyRunForcedResolvers,c=a===void 0?!1:a;return Yi(this,void 0,void 0,function(){return Zi(this,function(d){return r?[2,this.resolveDocument(r,n.data,o,i,this.fragmentMatcher,c).then(function(u){return re(re({},n),{data:u.result})})]:[2,n]})})},t.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(e){return gd(["client"],e)&&this.resolvers?e:null},t.prototype.serverQuery=function(e){return xk(e)},t.prototype.prepareContext=function(e){var r=this.cache;return re(re({},e),{cache:r,getCacheKey:function(n){return r.identify(n)}})},t.prototype.addExportedVariables=function(e,r,n){return r===void 0&&(r={}),n===void 0&&(n={}),Yi(this,void 0,void 0,function(){return Zi(this,function(o){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,r)||{},this.prepareContext(n),r).then(function(i){return re(re({},r),i.exportedVariables)})]:[2,re({},r)]})})},t.prototype.shouldForceResolvers=function(e){var r=!1;return zo(e,{Directive:{enter:function(n){if(n.name.value==="client"&&n.arguments&&(r=n.arguments.some(function(o){return o.name.value==="always"&&o.value.kind==="BooleanValue"&&o.value.value===!0}),r))return Yy}}}),r},t.prototype.buildRootValueFromCache=function(e,r){return this.cache.diff({query:dF(e),variables:r,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(e,r,n,o,i,a){return n===void 0&&(n={}),o===void 0&&(o={}),i===void 0&&(i=function(){return!0}),a===void 0&&(a=!1),Yi(this,void 0,void 0,function(){var c,d,u,f,g,_,b,h,m,y,v;return Zi(this,function(x){return c=zd(e),d=eh(e),u=Zp(d),f=this.collectSelectionsToResolve(c,u),g=c.operation,_=g?g.charAt(0).toUpperCase()+g.slice(1):"Query",b=this,h=b.cache,m=b.client,y={fragmentMap:u,context:re(re({},n),{cache:h,client:m}),variables:o,fragmentMatcher:i,defaultOperationType:_,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:a},v=!1,[2,this.resolveSelectionSet(c.selectionSet,v,r,y).then(function(E){return{result:E,exportedVariables:y.exportedVariables}})]})})},t.prototype.resolveSelectionSet=function(e,r,n,o){return Yi(this,void 0,void 0,function(){var i,a,c,d,u,f=this;return Zi(this,function(g){return i=o.fragmentMap,a=o.context,c=o.variables,d=[n],u=function(_){return Yi(f,void 0,void 0,function(){var b,h;return Zi(this,function(m){return!r&&!o.selectionsToResolve.has(_)?[2]:Dd(_,c)?ha(_)?[2,this.resolveField(_,r,n,o).then(function(y){var v;typeof y<"u"&&d.push((v={},v[pa(_)]=y,v))})]:(iF(_)?b=_:(b=i[_.name.value],nt(b,16,_.name.value)),b&&b.typeCondition&&(h=b.typeCondition.name.value,o.fragmentMatcher(n,h,a))?[2,this.resolveSelectionSet(b.selectionSet,r,n,o).then(function(y){d.push(y)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return eb(d)})]})})},t.prototype.resolveField=function(e,r,n,o){return Yi(this,void 0,void 0,function(){var i,a,c,d,u,f,g,_,b,h=this;return Zi(this,function(m){return n?(i=o.variables,a=e.name.value,c=pa(e),d=a!==c,u=n[c]||n[a],f=Promise.resolve(u),(!o.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(g=n.__typename||o.defaultOperationType,_=this.resolvers&&this.resolvers[g],_&&(b=_[d?a:c],b&&(f=Promise.resolve(cb.withValue(this.cache,b,[n,Jp(e,i),o.context,{field:e,fragmentMap:o.fragmentMap}]))))),[2,f.then(function(y){var v,x;if(y===void 0&&(y=u),e.directives&&e.directives.forEach(function(T){T.name.value==="export"&&T.arguments&&T.arguments.forEach(function(C){C.name.value==="as"&&C.value.kind==="StringValue"&&(o.exportedVariables[C.value.value]=y)})}),!e.selectionSet||y==null)return y;var E=(x=(v=e.directives)===null||v===void 0?void 0:v.some(function(T){return T.name.value==="client"}))!==null&&x!==void 0?x:!1;if(Array.isArray(y))return h.resolveSubSelectedArray(e,r||E,y,o);if(e.selectionSet)return h.resolveSelectionSet(e.selectionSet,r||E,y,o)})]):[2,null]})})},t.prototype.resolveSubSelectedArray=function(e,r,n,o){var i=this;return Promise.all(n.map(function(a){if(a===null)return null;if(Array.isArray(a))return i.resolveSubSelectedArray(e,r,a,o);if(e.selectionSet)return i.resolveSelectionSet(e.selectionSet,r,a,o)}))},t.prototype.collectSelectionsToResolve=function(e,r){var n=function(a){return!Array.isArray(a)},o=this.selectionsToResolveCache;function i(a){if(!o.has(a)){var c=new Set;o.set(a,c),zo(a,{Directive:function(d,u,f,g,_){d.name.value==="client"&&_.forEach(function(b){n(b)&&tw(b)&&c.add(b)})},FragmentSpread:function(d,u,f,g,_){var b=r[d.name.value];nt(b,17,d.name.value);var h=i(b);h.size>0&&(_.forEach(function(m){n(m)&&tw(m)&&c.add(m)}),c.add(d),h.forEach(function(m){c.add(m)}))}})}return o.get(a)}return i(e)},t}(),ll=new(xi?WeakMap:Map);function fv(t,e){var r=t[e];typeof r=="function"&&(t[e]=function(){return ll.set(t,(ll.get(t)+1)%1e15),r.apply(this,arguments)})}function Hw(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var pv=function(){function t(e,r){r===void 0&&(r=e.generateQueryId()),this.queryId=r,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;ll.has(n)||(ll.set(n,0),fv(n,"evict"),fv(n,"modify"),fv(n,"reset"))}return t.prototype.init=function(e){var r=e.networkStatus||Ft.loading;return this.variables&&this.networkStatus!==Ft.loading&&!rr(this.variables,e.variables)&&(r=Ft.setVariables),rr(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:r}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},t.prototype.reset=function(){Hw(this),this.dirty=!1},t.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&rr(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&r.options.fetchPolicy==="no-cache")return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},t.prototype.updateLastDiff=function(e,r){this.lastDiff=e?{diff:e,options:r||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(e){var r;return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:(r=this.observableQuery)===null||r===void 0?void 0:r.options.canonizeResults}},t.prototype.setDiff=function(e){var r=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),!this.dirty&&!rr(n&&n.result,e&&e.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0)))},t.prototype.setObservableQuery=function(e){var r=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){var n=r.getDiff();n.fromOptimisticTransaction?e.observe():nC(e)})):delete this.oqListener)},t.prototype.notify=function(){var e=this;Hw(this),this.shouldNotify()&&this.listeners.forEach(function(r){return r(e)}),this.dirty=!1},t.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(bd(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if(e!=="cache-only"&&e!=="cache-and-network")return!1}return!0},t.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=t.prototype.cancel;var e=this.observableQuery;e&&e.stopPolling()}},t.prototype.cancel=function(){},t.prototype.updateWatch=function(e){var r=this;e===void 0&&(e=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy==="no-cache")){var o=re(re({},this.getDiffOptions(e)),{watcher:this,callback:function(i){return r.setDiff(i)}});(!this.lastWatch||!rr(o,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=o))}},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(e,r){var n=this.lastWrite;return!(n&&n.dmCount===ll.get(this.cache)&&rr(r,n.variables)&&rr(e.data,n.result.data))},t.prototype.markResult=function(e,r,n,o){var i=this,a=new ma,c=qo(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&qo(e.incremental)){var d=Ak(this.getDiff().result,e);e.data=d}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=a.merge(u.result,e.data)}this.graphQLErrors=c,n.fetchPolicy==="no-cache"?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):o!==0&&(Cg(e,n.errorPolicy)?this.cache.performTransaction(function(f){if(i.shouldWrite(e,n.variables))f.writeQuery({query:r,data:e.data,variables:n.variables,overwrite:o===1}),i.lastWrite={result:e,variables:n.variables,dmCount:ll.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var g=i.getDiffOptions(n.variables),_=f.diff(g);!i.stopped&&rr(i.variables,n.variables)&&i.updateWatch(n.variables),i.updateLastDiff(_,g),_.complete&&(e.data=_.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Ft.ready},t.prototype.markError=function(e){return this.networkStatus=Ft.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},t}();function Cg(t,e){e===void 0&&(e="none");var r=e==="ignore"||e==="all",n=!zf(t);return!n&&r&&t.data&&(n=!0),n}var HN=Object.prototype.hasOwnProperty,WN=function(){function t(e){var r=this,n=e.cache,o=e.link,i=e.defaultOptions,a=e.documentTransform,c=e.queryDeduplication,d=c===void 0?!1:c,u=e.onBroadcast,f=e.ssrMode,g=f===void 0?!1:f,_=e.clientAwareness,b=_===void 0?{}:_,h=e.localState,m=e.assumeImmutableResults,y=m===void 0?!!n.assumeImmutableResults:m;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(xi?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var v=new gk(function(x){return r.cache.transformDocument(x)},{cache:!1});this.cache=n,this.link=o,this.defaultOptions=i||Object.create(null),this.queryDeduplication=d,this.clientAwareness=b,this.localState=h||new iC({cache:n}),this.ssrMode=g,this.assumeImmutableResults=y,this.documentTransform=a?v.concat(a).concat(v):v,(this.onBroadcast=u)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var e=this;this.queries.forEach(function(r,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(on(23))},t.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(r){return r(e)}),this.fetchCancelFns.clear()},t.prototype.mutate=function(e){var r,n,o=e.mutation,i=e.variables,a=e.optimisticResponse,c=e.updateQueries,d=e.refetchQueries,u=d===void 0?[]:d,f=e.awaitRefetchQueries,g=f===void 0?!1:f,_=e.update,b=e.onQueryUpdated,h=e.fetchPolicy,m=h===void 0?((r=this.defaultOptions.mutate)===null||r===void 0?void 0:r.fetchPolicy)||"network-only":h,y=e.errorPolicy,v=y===void 0?((n=this.defaultOptions.mutate)===null||n===void 0?void 0:n.errorPolicy)||"none":y,x=e.keepRootFields,E=e.context;return Yi(this,void 0,void 0,function(){var T,C,A,L;return Zi(this,function(R){switch(R.label){case 0:return nt(o,24),nt(m==="network-only"||m==="no-cache",25),T=this.generateMutationId(),o=this.cache.transformForLink(this.transform(o)),C=this.getDocumentInfo(o).hasClientExports,i=this.getVariables(o,i),C?[4,this.localState.addExportedVariables(o,i,E)]:[3,2];case 1:i=R.sent(),R.label=2;case 2:return A=this.mutationStore&&(this.mutationStore[T]={mutation:o,variables:i,loading:!0,error:null}),a&&this.markMutationOptimistic(a,{mutationId:T,document:o,variables:i,fetchPolicy:m,errorPolicy:v,context:E,updateQueries:c,update:_,keepRootFields:x}),this.broadcastQueries(),L=this,[2,new Promise(function(D,q){return nv(L.getObservableFromLink(o,re(re({},E),{optimisticResponse:a}),i,!1),function(H){if(zf(H)&&v==="none")throw new ci({graphQLErrors:hg(H)});A&&(A.loading=!1,A.error=null);var U=re({},H);return typeof u=="function"&&(u=u(U)),v==="ignore"&&zf(U)&&delete U.errors,L.markMutationResult({mutationId:T,result:U,document:o,variables:i,fetchPolicy:m,errorPolicy:v,context:E,update:_,updateQueries:c,awaitRefetchQueries:g,refetchQueries:u,removeOptimistic:a?T:void 0,onQueryUpdated:b,keepRootFields:x})}).subscribe({next:function(H){L.broadcastQueries(),(!("hasNext"in H)||H.hasNext===!1)&&D(H)},error:function(H){A&&(A.loading=!1,A.error=H),a&&L.cache.removeOptimistic(T),L.broadcastQueries(),q(H instanceof ci?H:new ci({networkError:H}))}})})]}})})},t.prototype.markMutationResult=function(e,r){var n=this;r===void 0&&(r=this.cache);var o=e.result,i=[],a=e.fetchPolicy==="no-cache";if(!a&&Cg(o,e.errorPolicy)){if(ml(o)||i.push({result:o.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),ml(o)&&qo(o.incremental)){var c=r.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),d=void 0;c.result&&(d=Ak(c.result,o)),typeof d<"u"&&(o.data=d,i.push({result:d,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(g,_){var b=g.observableQuery,h=b&&b.queryName;if(!(!h||!HN.call(u,h))){var m=u[h],y=n.queries.get(_),v=y.document,x=y.variables,E=r.diff({query:v,variables:x,returnPartialData:!0,optimistic:!1}),T=E.result,C=E.complete;if(C&&T){var A=m(T,{mutationResult:o,queryName:v&&cg(v)||void 0,queryVariables:x});A&&i.push({result:A,dataId:"ROOT_QUERY",query:v,variables:x})}}})}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(g){a||i.forEach(function(m){return g.write(m)});var _=e.update,b=!kF(o)||ml(o)&&!o.hasNext;if(_){if(!a){var h=g.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});h.complete&&(o=re(re({},o),{data:h.result}),"incremental"in o&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}b&&_(g,o,{context:e.context,variables:e.variables})}!a&&!e.keepRootFields&&b&&g.modify({id:"ROOT_MUTATION",fields:function(m,y){var v=y.fieldName,x=y.DELETE;return v==="__typename"?m:x}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(g){return f.push(g)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then(function(){return o})}return Promise.resolve(o)},t.prototype.markMutationOptimistic=function(e,r){var n=this,o=typeof e=="function"?e(r.variables):e;return this.cache.recordOptimisticTransaction(function(i){try{n.markMutationResult(re(re({},r),{result:{data:o}}),i)}catch(a){globalThis.__DEV__!==!1&&nt.error(a)}},r.mutationId)},t.prototype.fetchQuery=function(e,r,n){return this.fetchConcastWithInfo(e,r,n).concast.promise},t.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(r,n){e[n]={variables:r.variables,networkStatus:r.networkStatus,networkError:r.networkError,graphQLErrors:r.graphQLErrors}}),e},t.prototype.resetErrors=function(e){var r=this.queries.get(e);r&&(r.networkError=void 0,r.graphQLErrors=[])},t.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},t.prototype.getDocumentInfo=function(e){var r=this.transformCache;if(!r.has(e)){var n={hasClientExports:ND(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:gd(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:bk([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:Xy(Nd(e)),asQuery:re(re({},e),{definitions:e.definitions.map(function(o){return o.kind==="OperationDefinition"&&o.operation!=="query"?re(re({},o),{operation:"query"}):o})})};r.set(e,n)}return r.get(e)},t.prototype.getVariables=function(e,r){return re(re({},this.getDocumentInfo(e).defaultVars),r)},t.prototype.watchQuery=function(e){var r=this.transform(e.query);e=re(re({},e),{variables:this.getVariables(r,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var n=new pv(this),o=new kg({queryManager:this,queryInfo:n,options:e});return o.lastQuery=r,this.queries.set(o.queryId,n),n.init({document:r,observableQuery:o,variables:o.variables}),o},t.prototype.query=function(e,r){var n=this;return r===void 0&&(r=this.generateQueryId()),nt(e.query,26),nt(e.query.kind==="Document",27),nt(!e.returnPartialData,28),nt(!e.pollInterval,29),this.fetchQuery(r,re(re({},e),{query:this.transform(e.query)})).finally(function(){return n.stopQuery(r)})},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(e){var r=this.queries.get(e);r&&r.stop()},t.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}),this.cancelPendingFetches(on(30)),this.queries.forEach(function(r){r.observableQuery?r.networkStatus=Ft.loading:r.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},t.prototype.getObservableQueries=function(e){var r=this;e===void 0&&(e="active");var n=new Map,o=new Map,i=new Set;return Array.isArray(e)&&e.forEach(function(a){typeof a=="string"?o.set(a,!1):WD(a)?o.set(r.transform(a),!1):er(a)&&a.query&&i.add(a)}),this.queries.forEach(function(a,c){var d=a.observableQuery,u=a.document;if(d){if(e==="all"){n.set(c,d);return}var f=d.queryName,g=d.options.fetchPolicy;if(g==="standby"||e==="active"&&!d.hasObservers())return;(e==="active"||f&&o.has(f)||u&&o.has(u))&&(n.set(c,d),f&&o.set(f,!0),u&&o.set(u,!0))}}),i.size&&i.forEach(function(a){var c=og("legacyOneTimeQuery"),d=r.getQuery(c).init({document:a.query,variables:a.variables}),u=new kg({queryManager:r,queryInfo:d,options:re(re({},a),{fetchPolicy:"network-only"})});nt(u.queryId===c),d.setObservableQuery(u),n.set(c,u)}),globalThis.__DEV__!==!1&&o.size&&o.forEach(function(a,c){a||globalThis.__DEV__!==!1&&nt.warn(typeof c=="string"?31:32,c)}),n},t.prototype.reFetchObservableQueries=function(e){var r=this;e===void 0&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(o,i){var a=o.options.fetchPolicy;o.resetLastResults(),(e||a!=="standby"&&a!=="cache-only")&&n.push(o.refetch()),r.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},t.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},t.prototype.startGraphQLSubscription=function(e){var r=this,n=e.query,o=e.fetchPolicy,i=e.errorPolicy,a=i===void 0?"none":i,c=e.variables,d=e.context,u=d===void 0?{}:d;n=this.transform(n),c=this.getVariables(n,c);var f=function(_){return r.getObservableFromLink(n,u,_).map(function(b){o!=="no-cache"&&(Cg(b,a)&&r.cache.write({query:n,result:b.data,dataId:"ROOT_SUBSCRIPTION",variables:_}),r.broadcastQueries());var h=zf(b),m=BF(b);if(h||m){var y={};if(h&&(y.graphQLErrors=b.errors),m&&(y.protocolErrors=b.extensions[ib]),a==="none"||m)throw new ci(y)}return a==="ignore"&&delete b.errors,b})};if(this.getDocumentInfo(n).hasClientExports){var g=this.localState.addExportedVariables(n,c,u).then(f);return new Wt(function(_){var b=null;return g.then(function(h){return b=h.subscribe(_)},_.error),function(){return b&&b.unsubscribe()}})}return f(c)},t.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},t.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},t.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(e,r,n,o){var i=this,a;o===void 0&&(o=(a=r==null?void 0:r.queryDeduplication)!==null&&a!==void 0?a:this.queryDeduplication);var c,d=this.getDocumentInfo(e),u=d.serverQuery,f=d.clientQuery;if(u){var g=this,_=g.inFlightLinkObservables,b=g.link,h={query:u,variables:n,operationName:cg(u)||void 0,context:this.prepareContext(re(re({},r),{forceFetch:!o}))};if(r=h.context,o){var m=_k(u),y=_.get(m)||new Map;_.set(m,y);var v=is(n);if(c=y.get(v),!c){var x=new el([vg(b,h)]);y.set(v,c=x),x.beforeNext(function(){y.delete(v)&&y.size<1&&_.delete(m)})}}else c=new el([vg(b,h)])}else c=new el([Wt.of({data:{}})]),r=this.prepareContext(r);return f&&(c=nv(c,function(E){return i.localState.runResolvers({document:f,remoteResult:E,context:r,variables:n})})),c},t.prototype.getResultsFromLink=function(e,r,n){var o=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return nv(this.getObservableFromLink(i,n.context,n.variables),function(a){var c=hg(a),d=c.length>0;if(o>=e.lastRequestId){if(d&&n.errorPolicy==="none")throw e.markError(new ci({graphQLErrors:c}));e.markResult(a,i,n,r),e.markReady()}var u={data:a.data,loading:!1,networkStatus:Ft.ready};return d&&n.errorPolicy!=="ignore"&&(u.errors=c,u.networkStatus=Ft.error),u},function(a){var c=Sk(a)?a:new ci({networkError:a});throw o>=e.lastRequestId&&e.markError(c),c})},t.prototype.fetchConcastWithInfo=function(e,r,n,o){var i=this;n===void 0&&(n=Ft.loading),o===void 0&&(o=r.query);var a=this.getVariables(o,r.variables),c=this.getQuery(e),d=this.defaultOptions.watchQuery,u=r.fetchPolicy,f=u===void 0?d&&d.fetchPolicy||"cache-first":u,g=r.errorPolicy,_=g===void 0?d&&d.errorPolicy||"none":g,b=r.returnPartialData,h=b===void 0?!1:b,m=r.notifyOnNetworkStatusChange,y=m===void 0?!1:m,v=r.context,x=v===void 0?{}:v,E=Object.assign({},r,{query:o,variables:a,fetchPolicy:f,errorPolicy:_,returnPartialData:h,notifyOnNetworkStatusChange:y,context:x}),T=function(D){E.variables=D;var q=i.fetchQueryByPolicy(c,E,n);return E.fetchPolicy!=="standby"&&q.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",r),q},C=function(){return i.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(D){C(),setTimeout(function(){return A.cancel(D)})});var A,L;if(this.getDocumentInfo(E.query).hasClientExports)A=new el(this.localState.addExportedVariables(E.query,E.variables,E.context).then(T).then(function(D){return D.sources})),L=!0;else{var R=T(E.variables);L=R.fromLink,A=new el(R.sources)}return A.promise.then(C,C),{concast:A,fromLink:L}},t.prototype.refetchQueries=function(e){var r=this,n=e.updateCache,o=e.include,i=e.optimistic,a=i===void 0?!1:i,c=e.removeOptimistic,d=c===void 0?a?og("refetchQueries"):void 0:c,u=e.onQueryUpdated,f=new Map;o&&this.getObservableQueries(o).forEach(function(_,b){f.set(b,{oq:_,lastDiff:r.getQuery(b).getDiff()})});var g=new Map;return n&&this.cache.batch({update:n,optimistic:a&&d||!1,removeOptimistic:d,onWatchUpdated:function(_,b,h){var m=_.watcher instanceof pv&&_.watcher.observableQuery;if(m){if(u){f.delete(m.queryId);var y=u(m,b,h);return y===!0&&(y=m.refetch()),y!==!1&&g.set(m,y),y}u!==null&&f.set(m.queryId,{oq:m,lastDiff:h,diff:b})}}}),f.size&&f.forEach(function(_,b){var h=_.oq,m=_.lastDiff,y=_.diff,v;if(u){if(!y){var x=h.queryInfo;x.reset(),y=x.getDiff()}v=u(h,y,m)}(!u||v===!0)&&(v=h.refetch()),v!==!1&&g.set(h,v),b.indexOf("legacyOneTimeQuery")>=0&&r.stopQueryNoBroadcast(b)}),d&&this.cache.removeOptimistic(d),g},t.prototype.fetchQueryByPolicy=function(e,r,n){var o=this,i=r.query,a=r.variables,c=r.fetchPolicy,d=r.refetchWritePolicy,u=r.errorPolicy,f=r.returnPartialData,g=r.context,_=r.notifyOnNetworkStatusChange,b=e.networkStatus;e.init({document:i,variables:a,networkStatus:n});var h=function(){return e.getDiff()},m=function(T,C){C===void 0&&(C=e.networkStatus||Ft.loading);var A=T.result;globalThis.__DEV__!==!1&&!f&&!rr(A,{})&&oC(T.missing);var L=function(R){return Wt.of(re({data:R,loading:bd(C),networkStatus:C},T.complete?null:{partial:!0}))};return A&&o.getDocumentInfo(i).hasForcedResolvers?o.localState.runResolvers({document:i,remoteResult:{data:A},context:g,variables:a,onlyRunForcedResolvers:!0}).then(function(R){return L(R.data||void 0)}):u==="none"&&C===Ft.refetch&&Array.isArray(T.missing)?L(void 0):L(A)},y=c==="no-cache"?0:n===Ft.refetch&&d!=="merge"?1:2,v=function(){return o.getResultsFromLink(e,y,{query:i,variables:a,context:g,fetchPolicy:c,errorPolicy:u})},x=_&&typeof b=="number"&&b!==n&&bd(n);switch(c){default:case"cache-first":{var E=h();return E.complete?{fromLink:!1,sources:[m(E,e.markReady())]}:f||x?{fromLink:!0,sources:[m(E),v()]}:{fromLink:!0,sources:[v()]}}case"cache-and-network":{var E=h();return E.complete||f||x?{fromLink:!0,sources:[m(E),v()]}:{fromLink:!0,sources:[v()]}}case"cache-only":return{fromLink:!1,sources:[m(h(),e.markReady())]};case"network-only":return x?{fromLink:!0,sources:[m(h()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return x?{fromLink:!0,sources:[m(e.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},t.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new pv(this,e)),this.queries.get(e)},t.prototype.prepareContext=function(e){e===void 0&&(e={});var r=this.localState.prepareContext(e);return re(re({},r),{clientAwareness:this.clientAwareness})},t}(),Ww=!1,aC=function(){function t(e){var r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw on(13);var n=e.uri,o=e.credentials,i=e.headers,a=e.cache,c=e.documentTransform,d=e.ssrMode,u=d===void 0?!1:d,f=e.ssrForceFetchDelay,g=f===void 0?0:f,_=e.connectToDevTools,b=_===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&globalThis.__DEV__!==!1:_,h=e.queryDeduplication,m=h===void 0?!0:h,y=e.defaultOptions,v=e.assumeImmutableResults,x=v===void 0?a.assumeImmutableResults:v,E=e.resolvers,T=e.typeDefs,C=e.fragmentMatcher,A=e.name,L=e.version,R=e.link;R||(R=n?new eN({uri:n,credentials:o,headers:i}):Gl.empty()),this.link=R,this.cache=a,this.disableNetworkFetches=u||g>0,this.queryDeduplication=m,this.defaultOptions=y||Object.create(null),this.typeDefs=T,g&&setTimeout(function(){return r.disableNetworkFetches=!1},g),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Wy,this.localState=new iC({cache:a,client:this,resolvers:E,fragmentMatcher:C}),this.queryManager=new WN({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:c,queryDeduplication:m,ssrMode:u,clientAwareness:{name:A,version:L},localState:this.localState,assumeImmutableResults:x,onBroadcast:b?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),b&&this.connectToDevTools()}return t.prototype.connectToDevTools=function(){if(typeof window=="object"){var e=window,r=Symbol.for("apollo.devtools");(e[r]=e[r]||[]).push(this),e.__APOLLO_CLIENT__=this}!Ww&&globalThis.__DEV__!==!1&&(Ww=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var n=window.navigator,o=n&&n.userAgent,i=void 0;typeof o=="string"&&(o.indexOf("Chrome/")>-1?i="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":o.indexOf("Firefox/")>-1&&(i="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),i&&globalThis.__DEV__!==!1&&nt.log("Download the Apollo DevTools for a better development experience: %s",i)}},1e4))},Object.defineProperty(t.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=ov(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=re(re({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},t.prototype.query=function(e){return this.defaultOptions.query&&(e=ov(this.defaultOptions.query,e)),nt(e.fetchPolicy!=="cache-and-network",14),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=re(re({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},t.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=ov(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},t.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!1),this.cache.readQuery(e,r)},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!1),this.cache.readFragment(e,r)},t.prototype.writeQuery=function(e){var r=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.writeFragment=function(e){var r=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},t.prototype.__requestRaw=function(e){return vg(this.link,e)},t.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(r){return r()}))}).then(function(){return e.reFetchObservableQueries()})},t.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(r){return r()}))})},t.prototype.onResetStore=function(e){var r=this;return this.resetStoreCallbacks.push(e),function(){r.resetStoreCallbacks=r.resetStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.onClearStore=function(e){var r=this;return this.clearStoreCallbacks.push(e),function(){r.clearStoreCallbacks=r.clearStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},t.prototype.refetchQueries=function(e){var r=this.queryManager.refetchQueries(e),n=[],o=[];r.forEach(function(a,c){n.push(c),o.push(a)});var i=Promise.all(o);return i.queries=n,i.results=o,i.catch(function(a){globalThis.__DEV__!==!1&&nt.debug(15,a)}),i},t.prototype.getObservableQueries=function(e){return e===void 0&&(e="active"),this.queryManager.getObservableQueries(e)},t.prototype.extract=function(e){return this.cache.extract(e)},t.prototype.restore=function(e){return this.cache.restore(e)},t.prototype.addResolvers=function(e){this.localState.addResolvers(e)},t.prototype.setResolvers=function(e){this.localState.setResolvers(e)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},t.prototype.setLink=function(e){this.link=this.queryManager.link=e},t}(),Vf=new Map,Ag=new Map,sC=!0,cp=!1;function lC(t){return t.replace(/[\s,]+/g," ").trim()}function GN(t){return lC(t.source.body.substring(t.start,t.end))}function QN(t){var e=new Set,r=[];return t.definitions.forEach(function(n){if(n.kind==="FragmentDefinition"){var o=n.name.value,i=GN(n.loc),a=Ag.get(o);a&&!a.has(i)?sC&&console.warn("Warning: fragment with name "+o+` already exists. graphql-tag enforces all fragment names across your application to be unique; read more about -this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||Ag.set(o,a=new Set),a.add(i),e.has(i)||(e.add(i),r.push(n))}else r.push(n)}),re(re({},t),{definitions:r})}function YN(t){var e=new Set(t.definitions);e.forEach(function(n){n.loc&&delete n.loc,Object.keys(n).forEach(function(o){var i=n[o];i&&typeof i=="object"&&e.add(i)})});var r=t.loc;return r&&(delete r.startToken,delete r.endToken),t}function ZN(t){var e=cC(t);if(!Vf.has(e)){var r=$D(t,{experimentalFragmentVariables:cp,allowLegacyFragmentVariables:cp});if(!r||r.kind!=="Document")throw new Error("Not a valid GraphQL document.");Vf.set(e,YN(KN(r)))}return Vf.get(e)}function Sl(t){for(var e=[],r=1;ro?mv(r,o):hv(r,r.default);else{const o=rn(dC,null),i=rn(r9,null);e=a=>{if(a){const d=mv(o,a);return d||mv(r,a)}const c=hv(o,i);return c||hv(r,r.default)}}function n(o=t){const i=e(o);if(!i)throw new Error(`Apollo client with id ${o??"default"} not found. Use an app.runWithContext() or provideApolloClient() if you are outside of a component setup.`);return i}return{resolveClient:n,get client(){return n()}}}var n9={};function vv(t){return Rt(t)?t:typeof t=="function"?St(t):Se(t)}function o9(t){return Rt(t)?t:typeof t=="function"?St(t):t&&vo(t)}function dp(){const t=[];function e(i){return t.push(i),{off:()=>r(i)}}function r(i){const a=t.indexOf(i);a!==-1&&t.splice(a,1)}function n(i){for(const a of t)a(i)}function o(){return t.length}return{on:e,off:r,trigger:n,getCount:o}}var Va=typeof window>"u",cl={queries:Se(0),mutations:Se(0),subscriptions:Se(0),components:new Map};function i9(){const t=Wo();if(!t)return{};let e;return cl.components.has(t)?e=cl.components.get(t):(cl.components.set(t,e={queries:Se(0),mutations:Se(0),subscriptions:Se(0)}),Hl(()=>{cl.components.delete(t)})),{tracking:e}}function uC(t,e){if(Va)return;const{tracking:r}=i9();Vt(t,(n,o)=>{if(o!=null&&n!==o){const i=n?1:-1;r&&(r[e].value+=i),cl[e].value+=i}},{immediate:!0}),Ho(()=>{t.value&&(r&&r[e].value--,cl[e].value--)})}function a9(t){uC(t,"queries")}function s9(t){uC(t,"mutations")}function fC(t){return t instanceof Error?Ik(t)?t:new ci({networkError:t,errorMessage:t.message}):new ci({networkError:Object.assign(new Error,{originalError:t}),errorMessage:String(t)})}function l9(t){return new ci({graphQLErrors:t,errorMessage:`GraphQL response contains errors: ${t.map(e=>e.message).join(" | ")}`})}function c9(t,e,r){return pC(t,e,r)}function pC(t,e,r={},n=!1){var o;const i=Wo(),a=Se(),c=vv(t),d=vv(e),u=o9(r),f=Se(),g=dp(),_=Se(null),b=dp(),h=Se(!1);i&&a9(h);const m=Se();let y,v=!1,x,E;const T=()=>{v=!0,y&&y()},C=X=>{E=X,x&&x(X)},A=()=>{y=void 0,x=void 0,v=!1,E=void 0};i&&((o=C4)==null||o(()=>{var X;if(!(!M.value||Va&&((X=a.value)==null?void 0:X.prefetch)===!1))return new Promise((ee,fe)=>{y=()=>{A(),ee()},x=j=>{A(),fe(j)},v?y():E&&x(E)}).finally(ke)}));const{resolveClient:L}=nh(),R=Se();let D,q=!1,H=!1,U=!0;function ce(){var X,ee,fe,j,z,oe;if(q||!M.value||Va&&((X=a.value)==null?void 0:X.prefetch)===!1||!ve){T();return}q=!0,_.value=null,h.value=!0;const be=L((ee=a.value)==null?void 0:ee.clientId);if(R.value=be.watchQuery({query:ve,variables:k??{},...a.value,...Va&&((fe=a.value)==null?void 0:fe.fetchPolicy)!=="no-cache"?{fetchPolicy:"network-only"}:{}}),Ae(),!Va&&(U||!((j=a.value)!=null&&j.keepPreviousResult))&&(((z=a.value)==null?void 0:z.fetchPolicy)!=="no-cache"||a.value.notifyOnNetworkStatusChange)){const Fe=R.value.getCurrentResult(!1);!Fe.loading||Fe.partial||(oe=a.value)!=null&&oe.notifyOnNetworkStatusChange?(Te(Fe),H=!Fe.loading):Fe.error&&(Pe(Fe.error),H=!0)}if(!Va)for(const Fe of Y)ye(Fe);U=!1}function Ae(){D&&!D.closed||R.value&&(H=!1,D=R.value.subscribe({next:Te,error:Pe}))}function Le(){var X,ee,fe,j;const z=L((X=a.value)==null?void 0:X.clientId);return((ee=a.value)==null?void 0:ee.errorPolicy)||((j=(fe=z.defaultOptions)==null?void 0:fe.watchQuery)==null?void 0:j.errorPolicy)}function Te(X){var ee;if(H){H=!1;return}_.value=null,Ie(X);const fe=Le();fe&&fe==="all"&&!X.error&&((ee=X.errors)!=null&&ee.length)&&Ce(l9(X.errors)),T()}function Ie(X){f.value=X.data&&Object.keys(X.data).length===0?void 0:X.data,h.value=X.loading,m.value=X.networkStatus,ta(()=>{g.trigger(X)})}function Pe(X){if(H){H=!1;return}const ee=fC(X),fe=Le();fe&&fe!=="none"&&Ie(R.value.getCurrentResult()),Ce(ee),C(ee),de()}function Ce(X){_.value=X,h.value=!1,m.value=8,ta(()=>{b.trigger(X)})}function de(){if(!R.value)return;const X=R.value.getLastError(),ee=R.value.getLastResult();R.value.resetLastResults(),Ae(),Object.assign(R.value,{lastError:X,lastResult:ee})}let we=[];function ke(){T(),q&&(q=!1,h.value=!1,we.forEach(X=>X()),we=[],R.value&&(R.value.stopPolling(),R.value=null),D&&(D.unsubscribe(),D=void 0))}let Re=!1;function He(){!q||Re||(Re=!0,ta(()=>{q&&(ke(),ce()),Re=!1}))}let ze,We=!1;function J(){var X,ee;a.value?((X=a.value)!=null&&X.throttle?ze=X4(a.value.throttle,He):(ee=a.value)!=null&&ee.debounce?ze=ZM(a.value.debounce,He):ze=He,We=!0):ze=He}function me(){!q||Re||(We||J(),ze())}let ve=c.value;const $e=Se(n),Oe=St(()=>!a.value||a.value.enabled==null||a.value.enabled),M=St(()=>Oe.value&&!$e.value&&!!c.value);Vt(()=>he(u),X=>{a.value&&(a.value.throttle!==X.throttle||a.value.debounce!==X.debounce)&&J(),a.value=X,me()},{deep:!0,immediate:!0}),Vt(c,X=>{ve=X,me()});let k,I;Vt(()=>{if(M.value)return d.value},X=>{const ee=JSON.stringify([X,M.value]);ee!==I&&(k=X,me()),I=ee},{deep:!0,immediate:!0});function N(X=void 0){if(R.value)return X&&(k=X),_.value=null,h.value=!0,R.value.refetch(X).then(ee=>{var fe;const j=(fe=R.value)==null?void 0:fe.getCurrentResult();return j&&Ie(j),ee})}function W(X){if(R.value)return _.value=null,h.value=!0,R.value.fetchMore(X).then(ee=>{var fe;const j=(fe=R.value)==null?void 0:fe.getCurrentResult();return j&&Ie(j),ee})}const Y=[];function se(X){if(Va)return;const ee=vv(X);Vt(ee,(fe,j,z)=>{const oe=Y.findIndex(Fe=>Fe.options===j);oe!==-1&&Y.splice(oe,1);const be={options:fe,unsubscribeFns:[]};Y.push(be),ye(be),z(()=>{be.unsubscribeFns.forEach(Fe=>Fe()),be.unsubscribeFns=[]})},{immediate:!0})}function ye(X){if(!q)return;if(!R.value)throw new Error("Query is not defined");const ee=R.value.subscribeToMore(X.options);we.push(ee),X.unsubscribeFns.push(ee)}return Vt(M,X=>{X?ta(()=>{ce()}):ke()}),M.value&&ce(),i&&Ho(()=>{ke(),Y.length=0}),{result:f,loading:h,networkStatus:m,error:_,start:ce,stop:ke,restart:me,forceDisabled:$e,document:c,variables:d,options:u,query:R,refetch:N,fetchMore:W,subscribeToMore:se,onResult:g.on,onError:b.on}}function d9(t,e,r){const n=pC(t,e,r,!0);function o(i,a,c){return i&&(n.document.value=i),a&&(n.variables.value=a),c&&Object.assign(Rt(n.options)?n.options.value:n.options,c),n.forceDisabled.value?(n.forceDisabled.value=!1,new Promise((u,f)=>{const{off:g}=n.onResult(b=>{b.loading||(u(b.data),g(),_())}),{off:_}=n.onError(b=>{f(b),g(),_()})})):!1}return{...n,load:o}}function u9(t,e={}){const r=Wo(),n=Se(!1);r&&s9(n);const o=Se(null),i=Se(!1),a=dp(),c=dp(),{resolveClient:d}=nh();async function u(f,g={}){let _;typeof t=="function"?_=t():Rt(t)?_=t.value:_=t;let b;typeof e=="function"?b=e():Rt(e)?b=e.value:b=e;const h=d(b.clientId);o.value=null,n.value=!0,i.value=!0;try{const m=await h.mutate({mutation:_,...b,...g,variables:f??b.variables?{...b.variables,...f}:void 0});return n.value=!1,a.trigger(m),m}catch(m){const y=fC(m);if(o.value=y,n.value=!1,c.trigger(y),b.throws==="always"||b.throws!=="never"&&!c.getCount())throw y}return null}return r&&Ho(()=>{n.value=!1}),{mutate:u,loading:n,error:o,called:i,onDone:a.on,onError:c.on}}const mo=Se([]),Ql={initialized:!1,instanceStorage:{}};function f9(t,e){Ql.instanceStorage[t]=e}function p9(t){return Ql.instanceStorage[t]}const Gw=Bt({__name:"ModalContainerItem",props:{id:Number},setup(t){const e=t,r=Se(null),n=Se(),o=i(e.id);function i(a){return mo.value.find(c=>c.id===a)}return Vt(()=>r.value,a=>{f9(e.id,a),setTimeout(()=>{n.value&&n.value.firstChild.show()},0)}),(a,c)=>{var d,u,f;return te(),ie("div",{ref_key:"containerRef",ref:n,style:{position:"relative","z-index":"2"}},[(te(),Hr(Ny((d=he(o))==null?void 0:d.component),z4((u=he(o))==null?void 0:u.props.value,{modalId:`_modal_${t.id}`,ref_key:"modalRef",ref:r},$6((f=he(o))==null?void 0:f.events)),null,16,["modalId"]))],512)}}}),h9={backgroundClose:!0,escClose:!0};class hr extends Error{constructor(r,n=null){super();kr(this,"isModalError",!0);kr(this,"details");this.message=r,this.details=n}static Undefined(r){return new hr(`Modal with id: ${r} not founded. The modal window may have been closed earlier.`)}static UndefinedGuardName(r){return new hr(`Guard's name ${r} is not declaration.`)}static NextReject(r){return new hr(`Guard returned false. Modal navigation was stopped. Modal id ${r}`)}static GuardDeclarationType(r){return new hr("Guard's type should be a function. Provided:",r)}static ConfigurationType(r){return new hr("Configuration type must be an Object. Provided",r)}static ConfigurationUndefinedParam(r,n){return new hr(`In configuration founded unknown parameter: ${r}. Available are ${n.join(", ")} `)}static QueueNoEmpty(){return new hr("Modal's queue is not empty. Probably some modal reject closing by onClose hook.")}static EmptyModalQueue(){return new hr("Modal queue is empty.")}static NotInitialized(){return new hr("Modal Container not found. Put container from vue-modal in App's template.")}static ModalComponentNotProvided(){return new hr("The first parameter(VueComponent) was not specified.")}static DuplicatedRouterIntegration(){return new hr("useModalRouter.init should escaped only once.")}static ModalRouterIntegrationNotInitialized(){return new hr("The integration was not initialized. Please, use useModalRouter.init(router).")}static ModalEventNameMustBeString(r){return new hr(`Event name must be a string. Provided: ${r}`)}}const up={store:{},add(t,e,r){if(typeof r!="function")throw hr.GuardDeclarationType(r);this.store[t]||(this.store[t]={[e]:[]}),this.store[t][e]||(this.store[t][e]=[]),this.store[t][e].push(r)},get(t,e){return t in this.store?e in this.store[t]?this.store[t][e]:[]:[]},delete(t){t in this.store&&delete this.store[t]}};function hC(t){return t.reduce((e,r)=>e.then(()=>r()),Promise.resolve())}function m9(t,e,r){return()=>new Promise((n,o)=>{const i=(a=!0)=>{a===!1&&o(hr.NextReject(e)),n()};Promise.resolve(t.call(Ql.instanceStorage[e],r)).then(i).catch(a=>o(a))})}function v9(t){const e={backgroundClose:h9.backgroundClose,isRoute:!1};return t.backgroundClose!==void 0&&(e.backgroundClose=t.backgroundClose),t.isRoute&&(e.isRoute=t.isRoute),e}const od=class od{constructor(e,r,n){kr(this,"id");kr(this,"events",vo({}));kr(this,"closed");kr(this,"component");kr(this,"props");kr(this,"backgroundClose",!0);kr(this,"isRoute",!1);this.id=od.modalId++,this.component=e,this.props=Se(r),this.closed=St(()=>!mo.value.includes(this)),e.beforeModalClose&&up.add(this.id,"close",e.beforeModalClose);const o=v9(n);this.backgroundClose=o.backgroundClose,this.isRoute=o.isRoute}close(){return mC(this.id)}set onclose(e){up.add(this.id,"close",e)}get instance(){return p9(this.id)}on(e,r){return Array.isArray(this.events[e])||(this.events[e]=[]),this.events[e].push(r),()=>{const n=this.events[e].indexOf(r);n!==-1&&this.events[e].splice(n,1)}}};kr(od,"modalId",0),kr(od,"EVENT_PROMPT","vue-modal:____P____R____O____M____P____T");let Sg=od;function g9(t={}){return Object.assign({background:!1,esc:!1},t)}function _9(t,e,r){if(!Ql.initialized)throw hr.NotInitialized();if(!t)throw hr.ModalComponentNotProvided();const n=new Sg(t,e,r);return mo.value.push(Ld(n)),n}function mC(t,e={}){const r=mo.value.findIndex(o=>o.id===t);if(r===-1)return Promise.reject(hr.Undefined(t));const n=up.get(t,"close").map(o=>m9(o,t,g9(e)));return hC(n).then(()=>{mo.value.splice(r,1),delete Ql.instanceStorage[t],up.delete(t)})}function fp(t,e={},r={}){return Promise.resolve().then(()=>_9(t,e,r))}function y9(){return hC(mo.value.map(t=>()=>t.close()))}function vC(){if(mo.value.length!==0)return mo.value[mo.value.length-1]}function pp(t,e={},r={}){return y9().then(()=>{if(mo.value.length)throw hr.QueueNoEmpty()}).then(()=>fp(t,e,r))}function as(){const t=vC();return t?t.close():Promise.resolve()}function b9(){Ql.initialized=!0,document.addEventListener("keyup",t=>{if(t.key==="Escape"||t.code==="Escape"){const e=vC();if(!e)return;mC(e.id,{esc:!0})}})}const x9={setup(){return mn(b9),()=>No(LM,{name:"modal-list"},{default:()=>mo.value.map(t=>No(Gw,{key:t.id,id:t.id}))})},components:{ContainerModalItem:Gw}};/*! +this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||Ag.set(o,a=new Set),a.add(i),e.has(i)||(e.add(i),r.push(n))}else r.push(n)}),re(re({},t),{definitions:r})}function KN(t){var e=new Set(t.definitions);e.forEach(function(n){n.loc&&delete n.loc,Object.keys(n).forEach(function(o){var i=n[o];i&&typeof i=="object"&&e.add(i)})});var r=t.loc;return r&&(delete r.startToken,delete r.endToken),t}function YN(t){var e=lC(t);if(!Vf.has(e)){var r=ID(t,{experimentalFragmentVariables:cp,allowLegacyFragmentVariables:cp});if(!r||r.kind!=="Document")throw new Error("Not a valid GraphQL document.");Vf.set(e,KN(QN(r)))}return Vf.get(e)}function Sl(t){for(var e=[],r=1;ro?mv(r,o):hv(r,r.default);else{const o=rn(cC,null),i=rn(t9,null);e=a=>{if(a){const d=mv(o,a);return d||mv(r,a)}const c=hv(o,i);return c||hv(r,r.default)}}function n(o=t){const i=e(o);if(!i)throw new Error(`Apollo client with id ${o??"default"} not found. Use an app.runWithContext() or provideApolloClient() if you are outside of a component setup.`);return i}return{resolveClient:n,get client(){return n()}}}var r9={};function vv(t){return Rt(t)?t:typeof t=="function"?St(t):Se(t)}function n9(t){return Rt(t)?t:typeof t=="function"?St(t):t&&vo(t)}function dp(){const t=[];function e(i){return t.push(i),{off:()=>r(i)}}function r(i){const a=t.indexOf(i);a!==-1&&t.splice(a,1)}function n(i){for(const a of t)a(i)}function o(){return t.length}return{on:e,off:r,trigger:n,getCount:o}}var Va=typeof window>"u",cl={queries:Se(0),mutations:Se(0),subscriptions:Se(0),components:new Map};function o9(){const t=Wo();if(!t)return{};let e;return cl.components.has(t)?e=cl.components.get(t):(cl.components.set(t,e={queries:Se(0),mutations:Se(0),subscriptions:Se(0)}),Hl(()=>{cl.components.delete(t)})),{tracking:e}}function dC(t,e){if(Va)return;const{tracking:r}=o9();Vt(t,(n,o)=>{if(o!=null&&n!==o){const i=n?1:-1;r&&(r[e].value+=i),cl[e].value+=i}},{immediate:!0}),Ho(()=>{t.value&&(r&&r[e].value--,cl[e].value--)})}function i9(t){dC(t,"queries")}function a9(t){dC(t,"mutations")}function uC(t){return t instanceof Error?Sk(t)?t:new ci({networkError:t,errorMessage:t.message}):new ci({networkError:Object.assign(new Error,{originalError:t}),errorMessage:String(t)})}function s9(t){return new ci({graphQLErrors:t,errorMessage:`GraphQL response contains errors: ${t.map(e=>e.message).join(" | ")}`})}function l9(t,e,r){return fC(t,e,r)}function fC(t,e,r={},n=!1){var o;const i=Wo(),a=Se(),c=vv(t),d=vv(e),u=n9(r),f=Se(),g=dp(),_=Se(null),b=dp(),h=Se(!1);i&&i9(h);const m=Se();let y,v=!1,x,E;const T=()=>{v=!0,y&&y()},C=X=>{E=X,x&&x(X)},A=()=>{y=void 0,x=void 0,v=!1,E=void 0};i&&((o=k4)==null||o(()=>{var X;if(!(!M.value||Va&&((X=a.value)==null?void 0:X.prefetch)===!1))return new Promise((ee,fe)=>{y=()=>{A(),ee()},x=j=>{A(),fe(j)},v?y():E&&x(E)}).finally(ke)}));const{resolveClient:L}=nh(),R=Se();let D,q=!1,H=!1,U=!0;function ce(){var X,ee,fe,j,z,oe;if(q||!M.value||Va&&((X=a.value)==null?void 0:X.prefetch)===!1||!ve){T();return}q=!0,_.value=null,h.value=!0;const be=L((ee=a.value)==null?void 0:ee.clientId);if(R.value=be.watchQuery({query:ve,variables:k??{},...a.value,...Va&&((fe=a.value)==null?void 0:fe.fetchPolicy)!=="no-cache"?{fetchPolicy:"network-only"}:{}}),Ae(),!Va&&(U||!((j=a.value)!=null&&j.keepPreviousResult))&&(((z=a.value)==null?void 0:z.fetchPolicy)!=="no-cache"||a.value.notifyOnNetworkStatusChange)){const Fe=R.value.getCurrentResult(!1);!Fe.loading||Fe.partial||(oe=a.value)!=null&&oe.notifyOnNetworkStatusChange?(Te(Fe),H=!Fe.loading):Fe.error&&(Pe(Fe.error),H=!0)}if(!Va)for(const Fe of Y)ye(Fe);U=!1}function Ae(){D&&!D.closed||R.value&&(H=!1,D=R.value.subscribe({next:Te,error:Pe}))}function Le(){var X,ee,fe,j;const z=L((X=a.value)==null?void 0:X.clientId);return((ee=a.value)==null?void 0:ee.errorPolicy)||((j=(fe=z.defaultOptions)==null?void 0:fe.watchQuery)==null?void 0:j.errorPolicy)}function Te(X){var ee;if(H){H=!1;return}_.value=null,Ie(X);const fe=Le();fe&&fe==="all"&&!X.error&&((ee=X.errors)!=null&&ee.length)&&Ce(s9(X.errors)),T()}function Ie(X){f.value=X.data&&Object.keys(X.data).length===0?void 0:X.data,h.value=X.loading,m.value=X.networkStatus,ta(()=>{g.trigger(X)})}function Pe(X){if(H){H=!1;return}const ee=uC(X),fe=Le();fe&&fe!=="none"&&Ie(R.value.getCurrentResult()),Ce(ee),C(ee),de()}function Ce(X){_.value=X,h.value=!1,m.value=8,ta(()=>{b.trigger(X)})}function de(){if(!R.value)return;const X=R.value.getLastError(),ee=R.value.getLastResult();R.value.resetLastResults(),Ae(),Object.assign(R.value,{lastError:X,lastResult:ee})}let we=[];function ke(){T(),q&&(q=!1,h.value=!1,we.forEach(X=>X()),we=[],R.value&&(R.value.stopPolling(),R.value=null),D&&(D.unsubscribe(),D=void 0))}let Re=!1;function He(){!q||Re||(Re=!0,ta(()=>{q&&(ke(),ce()),Re=!1}))}let ze,We=!1;function J(){var X,ee;a.value?((X=a.value)!=null&&X.throttle?ze=Z4(a.value.throttle,He):(ee=a.value)!=null&&ee.debounce?ze=YM(a.value.debounce,He):ze=He,We=!0):ze=He}function me(){!q||Re||(We||J(),ze())}let ve=c.value;const $e=Se(n),Oe=St(()=>!a.value||a.value.enabled==null||a.value.enabled),M=St(()=>Oe.value&&!$e.value&&!!c.value);Vt(()=>he(u),X=>{a.value&&(a.value.throttle!==X.throttle||a.value.debounce!==X.debounce)&&J(),a.value=X,me()},{deep:!0,immediate:!0}),Vt(c,X=>{ve=X,me()});let k,I;Vt(()=>{if(M.value)return d.value},X=>{const ee=JSON.stringify([X,M.value]);ee!==I&&(k=X,me()),I=ee},{deep:!0,immediate:!0});function N(X=void 0){if(R.value)return X&&(k=X),_.value=null,h.value=!0,R.value.refetch(X).then(ee=>{var fe;const j=(fe=R.value)==null?void 0:fe.getCurrentResult();return j&&Ie(j),ee})}function W(X){if(R.value)return _.value=null,h.value=!0,R.value.fetchMore(X).then(ee=>{var fe;const j=(fe=R.value)==null?void 0:fe.getCurrentResult();return j&&Ie(j),ee})}const Y=[];function se(X){if(Va)return;const ee=vv(X);Vt(ee,(fe,j,z)=>{const oe=Y.findIndex(Fe=>Fe.options===j);oe!==-1&&Y.splice(oe,1);const be={options:fe,unsubscribeFns:[]};Y.push(be),ye(be),z(()=>{be.unsubscribeFns.forEach(Fe=>Fe()),be.unsubscribeFns=[]})},{immediate:!0})}function ye(X){if(!q)return;if(!R.value)throw new Error("Query is not defined");const ee=R.value.subscribeToMore(X.options);we.push(ee),X.unsubscribeFns.push(ee)}return Vt(M,X=>{X?ta(()=>{ce()}):ke()}),M.value&&ce(),i&&Ho(()=>{ke(),Y.length=0}),{result:f,loading:h,networkStatus:m,error:_,start:ce,stop:ke,restart:me,forceDisabled:$e,document:c,variables:d,options:u,query:R,refetch:N,fetchMore:W,subscribeToMore:se,onResult:g.on,onError:b.on}}function c9(t,e,r){const n=fC(t,e,r,!0);function o(i,a,c){return i&&(n.document.value=i),a&&(n.variables.value=a),c&&Object.assign(Rt(n.options)?n.options.value:n.options,c),n.forceDisabled.value?(n.forceDisabled.value=!1,new Promise((u,f)=>{const{off:g}=n.onResult(b=>{b.loading||(u(b.data),g(),_())}),{off:_}=n.onError(b=>{f(b),g(),_()})})):!1}return{...n,load:o}}function d9(t,e={}){const r=Wo(),n=Se(!1);r&&a9(n);const o=Se(null),i=Se(!1),a=dp(),c=dp(),{resolveClient:d}=nh();async function u(f,g={}){let _;typeof t=="function"?_=t():Rt(t)?_=t.value:_=t;let b;typeof e=="function"?b=e():Rt(e)?b=e.value:b=e;const h=d(b.clientId);o.value=null,n.value=!0,i.value=!0;try{const m=await h.mutate({mutation:_,...b,...g,variables:f??b.variables?{...b.variables,...f}:void 0});return n.value=!1,a.trigger(m),m}catch(m){const y=uC(m);if(o.value=y,n.value=!1,c.trigger(y),b.throws==="always"||b.throws!=="never"&&!c.getCount())throw y}return null}return r&&Ho(()=>{n.value=!1}),{mutate:u,loading:n,error:o,called:i,onDone:a.on,onError:c.on}}const mo=Se([]),Ql={initialized:!1,instanceStorage:{}};function u9(t,e){Ql.instanceStorage[t]=e}function f9(t){return Ql.instanceStorage[t]}const Gw=Bt({__name:"ModalContainerItem",props:{id:Number},setup(t){const e=t,r=Se(null),n=Se(),o=i(e.id);function i(a){return mo.value.find(c=>c.id===a)}return Vt(()=>r.value,a=>{u9(e.id,a),setTimeout(()=>{n.value&&n.value.firstChild.show()},0)}),(a,c)=>{var d,u,f;return te(),ie("div",{ref_key:"containerRef",ref:n,style:{position:"relative","z-index":"2"}},[(te(),Hr(Ny((d=he(o))==null?void 0:d.component),N4((u=he(o))==null?void 0:u.props.value,{modalId:`_modal_${t.id}`,ref_key:"modalRef",ref:r},I6((f=he(o))==null?void 0:f.events)),null,16,["modalId"]))],512)}}}),p9={backgroundClose:!0,escClose:!0};class hr extends Error{constructor(r,n=null){super();kr(this,"isModalError",!0);kr(this,"details");this.message=r,this.details=n}static Undefined(r){return new hr(`Modal with id: ${r} not founded. The modal window may have been closed earlier.`)}static UndefinedGuardName(r){return new hr(`Guard's name ${r} is not declaration.`)}static NextReject(r){return new hr(`Guard returned false. Modal navigation was stopped. Modal id ${r}`)}static GuardDeclarationType(r){return new hr("Guard's type should be a function. Provided:",r)}static ConfigurationType(r){return new hr("Configuration type must be an Object. Provided",r)}static ConfigurationUndefinedParam(r,n){return new hr(`In configuration founded unknown parameter: ${r}. Available are ${n.join(", ")} `)}static QueueNoEmpty(){return new hr("Modal's queue is not empty. Probably some modal reject closing by onClose hook.")}static EmptyModalQueue(){return new hr("Modal queue is empty.")}static NotInitialized(){return new hr("Modal Container not found. Put container from vue-modal in App's template.")}static ModalComponentNotProvided(){return new hr("The first parameter(VueComponent) was not specified.")}static DuplicatedRouterIntegration(){return new hr("useModalRouter.init should escaped only once.")}static ModalRouterIntegrationNotInitialized(){return new hr("The integration was not initialized. Please, use useModalRouter.init(router).")}static ModalEventNameMustBeString(r){return new hr(`Event name must be a string. Provided: ${r}`)}}const up={store:{},add(t,e,r){if(typeof r!="function")throw hr.GuardDeclarationType(r);this.store[t]||(this.store[t]={[e]:[]}),this.store[t][e]||(this.store[t][e]=[]),this.store[t][e].push(r)},get(t,e){return t in this.store?e in this.store[t]?this.store[t][e]:[]:[]},delete(t){t in this.store&&delete this.store[t]}};function pC(t){return t.reduce((e,r)=>e.then(()=>r()),Promise.resolve())}function h9(t,e,r){return()=>new Promise((n,o)=>{const i=(a=!0)=>{a===!1&&o(hr.NextReject(e)),n()};Promise.resolve(t.call(Ql.instanceStorage[e],r)).then(i).catch(a=>o(a))})}function m9(t){const e={backgroundClose:p9.backgroundClose,isRoute:!1};return t.backgroundClose!==void 0&&(e.backgroundClose=t.backgroundClose),t.isRoute&&(e.isRoute=t.isRoute),e}const od=class od{constructor(e,r,n){kr(this,"id");kr(this,"events",vo({}));kr(this,"closed");kr(this,"component");kr(this,"props");kr(this,"backgroundClose",!0);kr(this,"isRoute",!1);this.id=od.modalId++,this.component=e,this.props=Se(r),this.closed=St(()=>!mo.value.includes(this)),e.beforeModalClose&&up.add(this.id,"close",e.beforeModalClose);const o=m9(n);this.backgroundClose=o.backgroundClose,this.isRoute=o.isRoute}close(){return hC(this.id)}set onclose(e){up.add(this.id,"close",e)}get instance(){return f9(this.id)}on(e,r){return Array.isArray(this.events[e])||(this.events[e]=[]),this.events[e].push(r),()=>{const n=this.events[e].indexOf(r);n!==-1&&this.events[e].splice(n,1)}}};kr(od,"modalId",0),kr(od,"EVENT_PROMPT","vue-modal:____P____R____O____M____P____T");let Sg=od;function v9(t={}){return Object.assign({background:!1,esc:!1},t)}function g9(t,e,r){if(!Ql.initialized)throw hr.NotInitialized();if(!t)throw hr.ModalComponentNotProvided();const n=new Sg(t,e,r);return mo.value.push(Ld(n)),n}function hC(t,e={}){const r=mo.value.findIndex(o=>o.id===t);if(r===-1)return Promise.reject(hr.Undefined(t));const n=up.get(t,"close").map(o=>h9(o,t,v9(e)));return pC(n).then(()=>{mo.value.splice(r,1),delete Ql.instanceStorage[t],up.delete(t)})}function fp(t,e={},r={}){return Promise.resolve().then(()=>g9(t,e,r))}function _9(){return pC(mo.value.map(t=>()=>t.close()))}function mC(){if(mo.value.length!==0)return mo.value[mo.value.length-1]}function pp(t,e={},r={}){return _9().then(()=>{if(mo.value.length)throw hr.QueueNoEmpty()}).then(()=>fp(t,e,r))}function as(){const t=mC();return t?t.close():Promise.resolve()}function y9(){Ql.initialized=!0,document.addEventListener("keyup",t=>{if(t.key==="Escape"||t.code==="Escape"){const e=mC();if(!e)return;hC(e.id,{esc:!0})}})}const b9={setup(){return mn(y9),()=>No(RM,{name:"modal-list"},{default:()=>mo.value.map(t=>No(Gw,{key:t.id,id:t.id}))})},components:{ContainerModalItem:Gw}};/*! * shared v9.4.1 * (c) 2023 kazuya kawaguchi * Released under the MIT License. -*/const Ig=typeof window<"u",Ta=(t,e=!1)=>e?Symbol.for(t):Symbol(t),w9=(t,e,r)=>E9({l:t,k:e,s:r}),E9=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ir=t=>typeof t=="number"&&isFinite(t),T9=t=>_C(t)==="[object Date]",hp=t=>_C(t)==="[object RegExp]",oh=t=>Et(t)&&Object.keys(t).length===0,nn=Object.assign;let Qw;const mp=()=>Qw||(Qw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Kw(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const k9=Object.prototype.hasOwnProperty;function pb(t,e){return k9.call(t,e)}const wr=Array.isArray,Br=t=>typeof t=="function",Qe=t=>typeof t=="string",nr=t=>typeof t=="boolean",Dt=t=>t!==null&&typeof t=="object",gC=Object.prototype.toString,_C=t=>gC.call(t),Et=t=>{if(!Dt(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},C9=t=>t==null?"":wr(t)||Et(t)&&t.toString===gC?JSON.stringify(t,null,2):String(t);function A9(t,e=""){return t.reduce((r,n,o)=>o===0?r+n:r+e+n,"")}function hb(t){let e=t;return()=>++e}function S9(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}/*! +*/const Ig=typeof window<"u",Ta=(t,e=!1)=>e?Symbol.for(t):Symbol(t),x9=(t,e,r)=>w9({l:t,k:e,s:r}),w9=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ir=t=>typeof t=="number"&&isFinite(t),E9=t=>gC(t)==="[object Date]",hp=t=>gC(t)==="[object RegExp]",oh=t=>Et(t)&&Object.keys(t).length===0,nn=Object.assign;let Qw;const mp=()=>Qw||(Qw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Kw(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const T9=Object.prototype.hasOwnProperty;function pb(t,e){return T9.call(t,e)}const wr=Array.isArray,Br=t=>typeof t=="function",Qe=t=>typeof t=="string",nr=t=>typeof t=="boolean",Dt=t=>t!==null&&typeof t=="object",vC=Object.prototype.toString,gC=t=>vC.call(t),Et=t=>{if(!Dt(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},k9=t=>t==null?"":wr(t)||Et(t)&&t.toString===vC?JSON.stringify(t,null,2):String(t);function C9(t,e=""){return t.reduce((r,n,o)=>o===0?r+n:r+e+n,"")}function hb(t){let e=t;return()=>++e}function A9(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}/*! * message-compiler v9.4.1 * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */function I9(t,e,r){return{line:t,column:e,offset:r}}function $g(t,e,r){const n={start:t,end:e};return r!=null&&(n.source=r),n}const $9=/\{([0-9a-zA-Z]+)\}/g;function O9(t,...e){return e.length===1&&P9(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace($9,(r,n)=>e.hasOwnProperty(n)?e[n]:"")}const yC=Object.assign,Yw=t=>typeof t=="string",P9=t=>t!==null&&typeof t=="object";function bC(t,e=""){return t.reduce((r,n,o)=>o===0?r+n:r+e+n,"")}const tt={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},R9={[tt.EXPECTED_TOKEN]:"Expected token: '{0}'",[tt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[tt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[tt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[tt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[tt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[tt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[tt.EMPTY_PLACEHOLDER]:"Empty placeholder",[tt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[tt.INVALID_LINKED_FORMAT]:"Invalid linked format",[tt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[tt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[tt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[tt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[tt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[tt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Kl(t,e,r={}){const{domain:n,messages:o,args:i}=r,a=O9((o||R9)[t]||"",...i||[]),c=new SyntaxError(String(a));return c.code=t,e&&(c.location=e),c.domain=n,c}function L9(t){throw t}const oi=" ",M9="\r",tn=` -`,D9=String.fromCharCode(8232),F9=String.fromCharCode(8233);function N9(t){const e=t;let r=0,n=1,o=1,i=0;const a=L=>e[L]===M9&&e[L+1]===tn,c=L=>e[L]===tn,d=L=>e[L]===F9,u=L=>e[L]===D9,f=L=>a(L)||c(L)||d(L)||u(L),g=()=>r,_=()=>n,b=()=>o,h=()=>i,m=L=>a(L)||d(L)||u(L)?tn:e[L],y=()=>m(r),v=()=>m(r+i);function x(){return i=0,f(r)&&(n++,o=0),a(r)&&r++,r++,o++,e[r]}function E(){return a(r+i)&&i++,i++,e[r+i]}function T(){r=0,n=1,o=1,i=0}function C(L=0){i=L}function A(){const L=r+i;for(;L!==r;)x();i=0}return{index:g,line:_,column:b,peekOffset:h,charAt:m,currentChar:y,currentPeek:v,next:x,peek:E,reset:T,resetPeek:C,skipToPeek:A}}const Ui=void 0,z9=".",Zw="'",q9="tokenizer";function B9(t,e={}){const r=e.location!==!1,n=N9(t),o=()=>n.index(),i=()=>I9(n.line(),n.column(),n.index()),a=i(),c=o(),d={currentType:14,offset:c,startLoc:a,endLoc:a,lastType:14,lastOffset:c,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>d,{onError:f}=e;function g(k,I,N,...W){const Y=u();if(I.column+=N,I.offset+=N,f){const se=r?$g(Y.startLoc,I):null,ye=Kl(k,se,{domain:q9,args:W});f(ye)}}function _(k,I,N){k.endLoc=i(),k.currentType=I;const W={type:I};return r&&(W.loc=$g(k.startLoc,k.endLoc)),N!=null&&(W.value=N),W}const b=k=>_(k,14);function h(k,I){return k.currentChar()===I?(k.next(),I):(g(tt.EXPECTED_TOKEN,i(),0,I),"")}function m(k){let I="";for(;k.currentPeek()===oi||k.currentPeek()===tn;)I+=k.currentPeek(),k.peek();return I}function y(k){const I=m(k);return k.skipToPeek(),I}function v(k){if(k===Ui)return!1;const I=k.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I===95}function x(k){if(k===Ui)return!1;const I=k.charCodeAt(0);return I>=48&&I<=57}function E(k,I){const{currentType:N}=I;if(N!==2)return!1;m(k);const W=v(k.currentPeek());return k.resetPeek(),W}function T(k,I){const{currentType:N}=I;if(N!==2)return!1;m(k);const W=k.currentPeek()==="-"?k.peek():k.currentPeek(),Y=x(W);return k.resetPeek(),Y}function C(k,I){const{currentType:N}=I;if(N!==2)return!1;m(k);const W=k.currentPeek()===Zw;return k.resetPeek(),W}function A(k,I){const{currentType:N}=I;if(N!==8)return!1;m(k);const W=k.currentPeek()===".";return k.resetPeek(),W}function L(k,I){const{currentType:N}=I;if(N!==9)return!1;m(k);const W=v(k.currentPeek());return k.resetPeek(),W}function R(k,I){const{currentType:N}=I;if(!(N===8||N===12))return!1;m(k);const W=k.currentPeek()===":";return k.resetPeek(),W}function D(k,I){const{currentType:N}=I;if(N!==10)return!1;const W=()=>{const se=k.currentPeek();return se==="{"?v(k.peek()):se==="@"||se==="%"||se==="|"||se===":"||se==="."||se===oi||!se?!1:se===tn?(k.peek(),W()):v(se)},Y=W();return k.resetPeek(),Y}function q(k){m(k);const I=k.currentPeek()==="|";return k.resetPeek(),I}function H(k){const I=m(k),N=k.currentPeek()==="%"&&k.peek()==="{";return k.resetPeek(),{isModulo:N,hasSpace:I.length>0}}function U(k,I=!0){const N=(Y=!1,se="",ye=!1)=>{const X=k.currentPeek();return X==="{"?se==="%"?!1:Y:X==="@"||!X?se==="%"?!0:Y:X==="%"?(k.peek(),N(Y,"%",!0)):X==="|"?se==="%"||ye?!0:!(se===oi||se===tn):X===oi?(k.peek(),N(!0,oi,ye)):X===tn?(k.peek(),N(!0,tn,ye)):!0},W=N();return I&&k.resetPeek(),W}function ce(k,I){const N=k.currentChar();return N===Ui?Ui:I(N)?(k.next(),N):null}function Ae(k){return ce(k,N=>{const W=N.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36})}function Le(k){return ce(k,N=>{const W=N.charCodeAt(0);return W>=48&&W<=57})}function Te(k){return ce(k,N=>{const W=N.charCodeAt(0);return W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102})}function Ie(k){let I="",N="";for(;I=Le(k);)N+=I;return N}function Pe(k){y(k);const I=k.currentChar();return I!=="%"&&g(tt.EXPECTED_TOKEN,i(),0,I),k.next(),"%"}function Ce(k){let I="";for(;;){const N=k.currentChar();if(N==="{"||N==="}"||N==="@"||N==="|"||!N)break;if(N==="%")if(U(k))I+=N,k.next();else break;else if(N===oi||N===tn)if(U(k))I+=N,k.next();else{if(q(k))break;I+=N,k.next()}else I+=N,k.next()}return I}function de(k){y(k);let I="",N="";for(;I=Ae(k);)N+=I;return k.currentChar()===Ui&&g(tt.UNTERMINATED_CLOSING_BRACE,i(),0),N}function we(k){y(k);let I="";return k.currentChar()==="-"?(k.next(),I+=`-${Ie(k)}`):I+=Ie(k),k.currentChar()===Ui&&g(tt.UNTERMINATED_CLOSING_BRACE,i(),0),I}function ke(k){y(k),h(k,"'");let I="",N="";const W=se=>se!==Zw&&se!==tn;for(;I=ce(k,W);)I==="\\"?N+=Re(k):N+=I;const Y=k.currentChar();return Y===tn||Y===Ui?(g(tt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),Y===tn&&(k.next(),h(k,"'")),N):(h(k,"'"),N)}function Re(k){const I=k.currentChar();switch(I){case"\\":case"'":return k.next(),`\\${I}`;case"u":return He(k,I,4);case"U":return He(k,I,6);default:return g(tt.UNKNOWN_ESCAPE_SEQUENCE,i(),0,I),""}}function He(k,I,N){h(k,I);let W="";for(let Y=0;YY!=="{"&&Y!=="}"&&Y!==oi&&Y!==tn;for(;I=ce(k,W);)N+=I;return N}function We(k){let I="",N="";for(;I=Ae(k);)N+=I;return N}function J(k){const I=(N=!1,W)=>{const Y=k.currentChar();return Y==="{"||Y==="%"||Y==="@"||Y==="|"||Y==="("||Y===")"||!Y||Y===oi?W:Y===tn||Y===z9?(W+=Y,k.next(),I(N,W)):(W+=Y,k.next(),I(!0,W))};return I(!1,"")}function me(k){y(k);const I=h(k,"|");return y(k),I}function ve(k,I){let N=null;switch(k.currentChar()){case"{":return I.braceNest>=1&&g(tt.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),k.next(),N=_(I,2,"{"),y(k),I.braceNest++,N;case"}":return I.braceNest>0&&I.currentType===2&&g(tt.EMPTY_PLACEHOLDER,i(),0),k.next(),N=_(I,3,"}"),I.braceNest--,I.braceNest>0&&y(k),I.inLinked&&I.braceNest===0&&(I.inLinked=!1),N;case"@":return I.braceNest>0&&g(tt.UNTERMINATED_CLOSING_BRACE,i(),0),N=$e(k,I)||b(I),I.braceNest=0,N;default:let Y=!0,se=!0,ye=!0;if(q(k))return I.braceNest>0&&g(tt.UNTERMINATED_CLOSING_BRACE,i(),0),N=_(I,1,me(k)),I.braceNest=0,I.inLinked=!1,N;if(I.braceNest>0&&(I.currentType===5||I.currentType===6||I.currentType===7))return g(tt.UNTERMINATED_CLOSING_BRACE,i(),0),I.braceNest=0,Oe(k,I);if(Y=E(k,I))return N=_(I,5,de(k)),y(k),N;if(se=T(k,I))return N=_(I,6,we(k)),y(k),N;if(ye=C(k,I))return N=_(I,7,ke(k)),y(k),N;if(!Y&&!se&&!ye)return N=_(I,13,ze(k)),g(tt.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,N.value),y(k),N;break}return N}function $e(k,I){const{currentType:N}=I;let W=null;const Y=k.currentChar();switch((N===8||N===9||N===12||N===10)&&(Y===tn||Y===oi)&&g(tt.INVALID_LINKED_FORMAT,i(),0),Y){case"@":return k.next(),W=_(I,8,"@"),I.inLinked=!0,W;case".":return y(k),k.next(),_(I,9,".");case":":return y(k),k.next(),_(I,10,":");default:return q(k)?(W=_(I,1,me(k)),I.braceNest=0,I.inLinked=!1,W):A(k,I)||R(k,I)?(y(k),$e(k,I)):L(k,I)?(y(k),_(I,12,We(k))):D(k,I)?(y(k),Y==="{"?ve(k,I)||W:_(I,11,J(k))):(N===8&&g(tt.INVALID_LINKED_FORMAT,i(),0),I.braceNest=0,I.inLinked=!1,Oe(k,I))}}function Oe(k,I){let N={type:14};if(I.braceNest>0)return ve(k,I)||b(I);if(I.inLinked)return $e(k,I)||b(I);switch(k.currentChar()){case"{":return ve(k,I)||b(I);case"}":return g(tt.UNBALANCED_CLOSING_BRACE,i(),0),k.next(),_(I,3,"}");case"@":return $e(k,I)||b(I);default:if(q(k))return N=_(I,1,me(k)),I.braceNest=0,I.inLinked=!1,N;const{isModulo:Y,hasSpace:se}=H(k);if(Y)return se?_(I,0,Ce(k)):_(I,4,Pe(k));if(U(k))return _(I,0,Ce(k));break}return N}function M(){const{currentType:k,offset:I,startLoc:N,endLoc:W}=d;return d.lastType=k,d.lastOffset=I,d.lastStartLoc=N,d.lastEndLoc=W,d.offset=o(),d.startLoc=i(),n.currentChar()===Ui?_(d,14):Oe(n,d)}return{nextToken:M,currentOffset:o,currentPosition:i,context:u}}const U9="parser",V9=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function j9(t,e,r){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(e||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function H9(t={}){const e=t.location!==!1,{onError:r}=t;function n(v,x,E,T,...C){const A=v.currentPosition();if(A.offset+=T,A.column+=T,r){const L=e?$g(E,A):null,R=Kl(x,L,{domain:U9,args:C});r(R)}}function o(v,x,E){const T={type:v};return e&&(T.start=x,T.end=x,T.loc={start:E,end:E}),T}function i(v,x,E,T){T&&(v.type=T),e&&(v.end=x,v.loc&&(v.loc.end=E))}function a(v,x){const E=v.context(),T=o(3,E.offset,E.startLoc);return T.value=x,i(T,v.currentOffset(),v.currentPosition()),T}function c(v,x){const E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=o(5,T,C);return A.index=parseInt(x,10),v.nextToken(),i(A,v.currentOffset(),v.currentPosition()),A}function d(v,x){const E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=o(4,T,C);return A.key=x,v.nextToken(),i(A,v.currentOffset(),v.currentPosition()),A}function u(v,x){const E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=o(9,T,C);return A.value=x.replace(V9,j9),v.nextToken(),i(A,v.currentOffset(),v.currentPosition()),A}function f(v){const x=v.nextToken(),E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=o(8,T,C);return x.type!==12?(n(v,tt.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),A.value="",i(A,T,C),{nextConsumeToken:x,node:A}):(x.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,$o(x)),A.value=x.value||"",i(A,v.currentOffset(),v.currentPosition()),{node:A})}function g(v,x){const E=v.context(),T=o(7,E.offset,E.startLoc);return T.value=x,i(T,v.currentOffset(),v.currentPosition()),T}function _(v){const x=v.context(),E=o(6,x.offset,x.startLoc);let T=v.nextToken();if(T.type===9){const C=f(v);E.modifier=C.node,T=C.nextConsumeToken||v.nextToken()}switch(T.type!==10&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(T)),T=v.nextToken(),T.type===2&&(T=v.nextToken()),T.type){case 11:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(T)),E.key=g(v,T.value||"");break;case 5:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(T)),E.key=d(v,T.value||"");break;case 6:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(T)),E.key=c(v,T.value||"");break;case 7:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(T)),E.key=u(v,T.value||"");break;default:n(v,tt.UNEXPECTED_EMPTY_LINKED_KEY,x.lastStartLoc,0);const C=v.context(),A=o(7,C.offset,C.startLoc);return A.value="",i(A,C.offset,C.startLoc),E.key=A,i(E,C.offset,C.startLoc),{nextConsumeToken:T,node:E}}return i(E,v.currentOffset(),v.currentPosition()),{node:E}}function b(v){const x=v.context(),E=x.currentType===1?v.currentOffset():x.offset,T=x.currentType===1?x.endLoc:x.startLoc,C=o(2,E,T);C.items=[];let A=null;do{const D=A||v.nextToken();switch(A=null,D.type){case 0:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(D)),C.items.push(a(v,D.value||""));break;case 6:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(D)),C.items.push(c(v,D.value||""));break;case 5:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(D)),C.items.push(d(v,D.value||""));break;case 7:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(D)),C.items.push(u(v,D.value||""));break;case 8:const q=_(v);C.items.push(q.node),A=q.nextConsumeToken||null;break}}while(x.currentType!==14&&x.currentType!==1);const L=x.currentType===1?x.lastOffset:v.currentOffset(),R=x.currentType===1?x.lastEndLoc:v.currentPosition();return i(C,L,R),C}function h(v,x,E,T){const C=v.context();let A=T.items.length===0;const L=o(1,x,E);L.cases=[],L.cases.push(T);do{const R=b(v);A||(A=R.items.length===0),L.cases.push(R)}while(C.currentType!==14);return A&&n(v,tt.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),i(L,v.currentOffset(),v.currentPosition()),L}function m(v){const x=v.context(),{offset:E,startLoc:T}=x,C=b(v);return x.currentType===14?C:h(v,E,T,C)}function y(v){const x=B9(v,yC({},t)),E=x.context(),T=o(0,E.offset,E.startLoc);return e&&T.loc&&(T.loc.source=v),T.body=m(x),t.onCacheKey&&(T.cacheKey=t.onCacheKey(v)),E.currentType!==14&&n(x,tt.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,v[E.offset]||""),i(T,x.currentOffset(),x.currentPosition()),T}return{parse:y}}function $o(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function W9(t,e={}){const r={ast:t,helpers:new Set};return{context:()=>r,helper:i=>(r.helpers.add(i),i)}}function Xw(t,e){for(let r=0;rJw(r)),t}function Jw(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let r=0;rc;function u(y,v){c.code+=y}function f(y,v=!0){const x=v?o:"";u(i?x+" ".repeat(y):x)}function g(y=!0){const v=++c.indentLevel;y&&f(v)}function _(y=!0){const v=--c.indentLevel;y&&f(v)}function b(){f(c.indentLevel)}return{context:d,push:u,indent:g,deindent:_,newline:b,helper:y=>`_${y}`,needIndent:()=>c.needIndent}}function X9(t,e){const{helper:r}=t;t.push(`${r("linked")}(`),Il(t,e.key),e.modifier?(t.push(", "),Il(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function J9(t,e){const{helper:r,needIndent:n}=t;t.push(`${r("normalize")}([`),t.indent(n());const o=e.items.length;for(let i=0;i1){t.push(`${r("plural")}([`),t.indent(n());const o=e.cases.length;for(let i=0;i{const r=Yw(e.mode)?e.mode:"normal",n=Yw(e.filename)?e.filename:"message.intl",o=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:r==="arrow"?";":` -`,a=e.needIndent?e.needIndent:r!=="arrow",c=t.helpers||[],d=Z9(t,{mode:r,filename:n,sourceMap:o,breakLineCode:i,needIndent:a});d.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),d.indent(a),c.length>0&&(d.push(`const { ${bC(c.map(g=>`${g}: _${g}`),", ")} } = ctx`),d.newline()),d.push("return "),Il(d,t),d.deindent(a),d.push("}"),delete t.helpers;const{code:u,map:f}=d.context();return{ast:t,code:u,map:f?f.toJSON():void 0}};function nz(t,e={}){const r=yC({},e),n=!!r.jit,o=!!r.minify,i=r.optimize==null?!0:r.optimize,c=H9(r).parse(t);return n?(i&&Q9(c),o&&tl(c),{ast:c,code:""}):(G9(c,r),rz(c,r))}/*! + */function S9(t,e,r){return{line:t,column:e,offset:r}}function $g(t,e,r){const n={start:t,end:e};return r!=null&&(n.source=r),n}const I9=/\{([0-9a-zA-Z]+)\}/g;function $9(t,...e){return e.length===1&&O9(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(I9,(r,n)=>e.hasOwnProperty(n)?e[n]:"")}const _C=Object.assign,Yw=t=>typeof t=="string",O9=t=>t!==null&&typeof t=="object";function yC(t,e=""){return t.reduce((r,n,o)=>o===0?r+n:r+e+n,"")}const tt={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},P9={[tt.EXPECTED_TOKEN]:"Expected token: '{0}'",[tt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[tt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[tt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[tt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[tt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[tt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[tt.EMPTY_PLACEHOLDER]:"Empty placeholder",[tt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[tt.INVALID_LINKED_FORMAT]:"Invalid linked format",[tt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[tt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[tt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[tt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[tt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[tt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Kl(t,e,r={}){const{domain:n,messages:o,args:i}=r,a=$9((o||P9)[t]||"",...i||[]),c=new SyntaxError(String(a));return c.code=t,e&&(c.location=e),c.domain=n,c}function R9(t){throw t}const oi=" ",L9="\r",tn=` +`,M9=String.fromCharCode(8232),D9=String.fromCharCode(8233);function F9(t){const e=t;let r=0,n=1,o=1,i=0;const a=L=>e[L]===L9&&e[L+1]===tn,c=L=>e[L]===tn,d=L=>e[L]===D9,u=L=>e[L]===M9,f=L=>a(L)||c(L)||d(L)||u(L),g=()=>r,_=()=>n,b=()=>o,h=()=>i,m=L=>a(L)||d(L)||u(L)?tn:e[L],y=()=>m(r),v=()=>m(r+i);function x(){return i=0,f(r)&&(n++,o=0),a(r)&&r++,r++,o++,e[r]}function E(){return a(r+i)&&i++,i++,e[r+i]}function T(){r=0,n=1,o=1,i=0}function C(L=0){i=L}function A(){const L=r+i;for(;L!==r;)x();i=0}return{index:g,line:_,column:b,peekOffset:h,charAt:m,currentChar:y,currentPeek:v,next:x,peek:E,reset:T,resetPeek:C,skipToPeek:A}}const Ui=void 0,N9=".",Zw="'",z9="tokenizer";function q9(t,e={}){const r=e.location!==!1,n=F9(t),o=()=>n.index(),i=()=>S9(n.line(),n.column(),n.index()),a=i(),c=o(),d={currentType:14,offset:c,startLoc:a,endLoc:a,lastType:14,lastOffset:c,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>d,{onError:f}=e;function g(k,I,N,...W){const Y=u();if(I.column+=N,I.offset+=N,f){const se=r?$g(Y.startLoc,I):null,ye=Kl(k,se,{domain:z9,args:W});f(ye)}}function _(k,I,N){k.endLoc=i(),k.currentType=I;const W={type:I};return r&&(W.loc=$g(k.startLoc,k.endLoc)),N!=null&&(W.value=N),W}const b=k=>_(k,14);function h(k,I){return k.currentChar()===I?(k.next(),I):(g(tt.EXPECTED_TOKEN,i(),0,I),"")}function m(k){let I="";for(;k.currentPeek()===oi||k.currentPeek()===tn;)I+=k.currentPeek(),k.peek();return I}function y(k){const I=m(k);return k.skipToPeek(),I}function v(k){if(k===Ui)return!1;const I=k.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I===95}function x(k){if(k===Ui)return!1;const I=k.charCodeAt(0);return I>=48&&I<=57}function E(k,I){const{currentType:N}=I;if(N!==2)return!1;m(k);const W=v(k.currentPeek());return k.resetPeek(),W}function T(k,I){const{currentType:N}=I;if(N!==2)return!1;m(k);const W=k.currentPeek()==="-"?k.peek():k.currentPeek(),Y=x(W);return k.resetPeek(),Y}function C(k,I){const{currentType:N}=I;if(N!==2)return!1;m(k);const W=k.currentPeek()===Zw;return k.resetPeek(),W}function A(k,I){const{currentType:N}=I;if(N!==8)return!1;m(k);const W=k.currentPeek()===".";return k.resetPeek(),W}function L(k,I){const{currentType:N}=I;if(N!==9)return!1;m(k);const W=v(k.currentPeek());return k.resetPeek(),W}function R(k,I){const{currentType:N}=I;if(!(N===8||N===12))return!1;m(k);const W=k.currentPeek()===":";return k.resetPeek(),W}function D(k,I){const{currentType:N}=I;if(N!==10)return!1;const W=()=>{const se=k.currentPeek();return se==="{"?v(k.peek()):se==="@"||se==="%"||se==="|"||se===":"||se==="."||se===oi||!se?!1:se===tn?(k.peek(),W()):v(se)},Y=W();return k.resetPeek(),Y}function q(k){m(k);const I=k.currentPeek()==="|";return k.resetPeek(),I}function H(k){const I=m(k),N=k.currentPeek()==="%"&&k.peek()==="{";return k.resetPeek(),{isModulo:N,hasSpace:I.length>0}}function U(k,I=!0){const N=(Y=!1,se="",ye=!1)=>{const X=k.currentPeek();return X==="{"?se==="%"?!1:Y:X==="@"||!X?se==="%"?!0:Y:X==="%"?(k.peek(),N(Y,"%",!0)):X==="|"?se==="%"||ye?!0:!(se===oi||se===tn):X===oi?(k.peek(),N(!0,oi,ye)):X===tn?(k.peek(),N(!0,tn,ye)):!0},W=N();return I&&k.resetPeek(),W}function ce(k,I){const N=k.currentChar();return N===Ui?Ui:I(N)?(k.next(),N):null}function Ae(k){return ce(k,N=>{const W=N.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36})}function Le(k){return ce(k,N=>{const W=N.charCodeAt(0);return W>=48&&W<=57})}function Te(k){return ce(k,N=>{const W=N.charCodeAt(0);return W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102})}function Ie(k){let I="",N="";for(;I=Le(k);)N+=I;return N}function Pe(k){y(k);const I=k.currentChar();return I!=="%"&&g(tt.EXPECTED_TOKEN,i(),0,I),k.next(),"%"}function Ce(k){let I="";for(;;){const N=k.currentChar();if(N==="{"||N==="}"||N==="@"||N==="|"||!N)break;if(N==="%")if(U(k))I+=N,k.next();else break;else if(N===oi||N===tn)if(U(k))I+=N,k.next();else{if(q(k))break;I+=N,k.next()}else I+=N,k.next()}return I}function de(k){y(k);let I="",N="";for(;I=Ae(k);)N+=I;return k.currentChar()===Ui&&g(tt.UNTERMINATED_CLOSING_BRACE,i(),0),N}function we(k){y(k);let I="";return k.currentChar()==="-"?(k.next(),I+=`-${Ie(k)}`):I+=Ie(k),k.currentChar()===Ui&&g(tt.UNTERMINATED_CLOSING_BRACE,i(),0),I}function ke(k){y(k),h(k,"'");let I="",N="";const W=se=>se!==Zw&&se!==tn;for(;I=ce(k,W);)I==="\\"?N+=Re(k):N+=I;const Y=k.currentChar();return Y===tn||Y===Ui?(g(tt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),Y===tn&&(k.next(),h(k,"'")),N):(h(k,"'"),N)}function Re(k){const I=k.currentChar();switch(I){case"\\":case"'":return k.next(),`\\${I}`;case"u":return He(k,I,4);case"U":return He(k,I,6);default:return g(tt.UNKNOWN_ESCAPE_SEQUENCE,i(),0,I),""}}function He(k,I,N){h(k,I);let W="";for(let Y=0;YY!=="{"&&Y!=="}"&&Y!==oi&&Y!==tn;for(;I=ce(k,W);)N+=I;return N}function We(k){let I="",N="";for(;I=Ae(k);)N+=I;return N}function J(k){const I=(N=!1,W)=>{const Y=k.currentChar();return Y==="{"||Y==="%"||Y==="@"||Y==="|"||Y==="("||Y===")"||!Y||Y===oi?W:Y===tn||Y===N9?(W+=Y,k.next(),I(N,W)):(W+=Y,k.next(),I(!0,W))};return I(!1,"")}function me(k){y(k);const I=h(k,"|");return y(k),I}function ve(k,I){let N=null;switch(k.currentChar()){case"{":return I.braceNest>=1&&g(tt.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),k.next(),N=_(I,2,"{"),y(k),I.braceNest++,N;case"}":return I.braceNest>0&&I.currentType===2&&g(tt.EMPTY_PLACEHOLDER,i(),0),k.next(),N=_(I,3,"}"),I.braceNest--,I.braceNest>0&&y(k),I.inLinked&&I.braceNest===0&&(I.inLinked=!1),N;case"@":return I.braceNest>0&&g(tt.UNTERMINATED_CLOSING_BRACE,i(),0),N=$e(k,I)||b(I),I.braceNest=0,N;default:let Y=!0,se=!0,ye=!0;if(q(k))return I.braceNest>0&&g(tt.UNTERMINATED_CLOSING_BRACE,i(),0),N=_(I,1,me(k)),I.braceNest=0,I.inLinked=!1,N;if(I.braceNest>0&&(I.currentType===5||I.currentType===6||I.currentType===7))return g(tt.UNTERMINATED_CLOSING_BRACE,i(),0),I.braceNest=0,Oe(k,I);if(Y=E(k,I))return N=_(I,5,de(k)),y(k),N;if(se=T(k,I))return N=_(I,6,we(k)),y(k),N;if(ye=C(k,I))return N=_(I,7,ke(k)),y(k),N;if(!Y&&!se&&!ye)return N=_(I,13,ze(k)),g(tt.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,N.value),y(k),N;break}return N}function $e(k,I){const{currentType:N}=I;let W=null;const Y=k.currentChar();switch((N===8||N===9||N===12||N===10)&&(Y===tn||Y===oi)&&g(tt.INVALID_LINKED_FORMAT,i(),0),Y){case"@":return k.next(),W=_(I,8,"@"),I.inLinked=!0,W;case".":return y(k),k.next(),_(I,9,".");case":":return y(k),k.next(),_(I,10,":");default:return q(k)?(W=_(I,1,me(k)),I.braceNest=0,I.inLinked=!1,W):A(k,I)||R(k,I)?(y(k),$e(k,I)):L(k,I)?(y(k),_(I,12,We(k))):D(k,I)?(y(k),Y==="{"?ve(k,I)||W:_(I,11,J(k))):(N===8&&g(tt.INVALID_LINKED_FORMAT,i(),0),I.braceNest=0,I.inLinked=!1,Oe(k,I))}}function Oe(k,I){let N={type:14};if(I.braceNest>0)return ve(k,I)||b(I);if(I.inLinked)return $e(k,I)||b(I);switch(k.currentChar()){case"{":return ve(k,I)||b(I);case"}":return g(tt.UNBALANCED_CLOSING_BRACE,i(),0),k.next(),_(I,3,"}");case"@":return $e(k,I)||b(I);default:if(q(k))return N=_(I,1,me(k)),I.braceNest=0,I.inLinked=!1,N;const{isModulo:Y,hasSpace:se}=H(k);if(Y)return se?_(I,0,Ce(k)):_(I,4,Pe(k));if(U(k))return _(I,0,Ce(k));break}return N}function M(){const{currentType:k,offset:I,startLoc:N,endLoc:W}=d;return d.lastType=k,d.lastOffset=I,d.lastStartLoc=N,d.lastEndLoc=W,d.offset=o(),d.startLoc=i(),n.currentChar()===Ui?_(d,14):Oe(n,d)}return{nextToken:M,currentOffset:o,currentPosition:i,context:u}}const B9="parser",U9=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function V9(t,e,r){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(e||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function j9(t={}){const e=t.location!==!1,{onError:r}=t;function n(v,x,E,T,...C){const A=v.currentPosition();if(A.offset+=T,A.column+=T,r){const L=e?$g(E,A):null,R=Kl(x,L,{domain:B9,args:C});r(R)}}function o(v,x,E){const T={type:v};return e&&(T.start=x,T.end=x,T.loc={start:E,end:E}),T}function i(v,x,E,T){T&&(v.type=T),e&&(v.end=x,v.loc&&(v.loc.end=E))}function a(v,x){const E=v.context(),T=o(3,E.offset,E.startLoc);return T.value=x,i(T,v.currentOffset(),v.currentPosition()),T}function c(v,x){const E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=o(5,T,C);return A.index=parseInt(x,10),v.nextToken(),i(A,v.currentOffset(),v.currentPosition()),A}function d(v,x){const E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=o(4,T,C);return A.key=x,v.nextToken(),i(A,v.currentOffset(),v.currentPosition()),A}function u(v,x){const E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=o(9,T,C);return A.value=x.replace(U9,V9),v.nextToken(),i(A,v.currentOffset(),v.currentPosition()),A}function f(v){const x=v.nextToken(),E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=o(8,T,C);return x.type!==12?(n(v,tt.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),A.value="",i(A,T,C),{nextConsumeToken:x,node:A}):(x.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,$o(x)),A.value=x.value||"",i(A,v.currentOffset(),v.currentPosition()),{node:A})}function g(v,x){const E=v.context(),T=o(7,E.offset,E.startLoc);return T.value=x,i(T,v.currentOffset(),v.currentPosition()),T}function _(v){const x=v.context(),E=o(6,x.offset,x.startLoc);let T=v.nextToken();if(T.type===9){const C=f(v);E.modifier=C.node,T=C.nextConsumeToken||v.nextToken()}switch(T.type!==10&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(T)),T=v.nextToken(),T.type===2&&(T=v.nextToken()),T.type){case 11:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(T)),E.key=g(v,T.value||"");break;case 5:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(T)),E.key=d(v,T.value||"");break;case 6:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(T)),E.key=c(v,T.value||"");break;case 7:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(T)),E.key=u(v,T.value||"");break;default:n(v,tt.UNEXPECTED_EMPTY_LINKED_KEY,x.lastStartLoc,0);const C=v.context(),A=o(7,C.offset,C.startLoc);return A.value="",i(A,C.offset,C.startLoc),E.key=A,i(E,C.offset,C.startLoc),{nextConsumeToken:T,node:E}}return i(E,v.currentOffset(),v.currentPosition()),{node:E}}function b(v){const x=v.context(),E=x.currentType===1?v.currentOffset():x.offset,T=x.currentType===1?x.endLoc:x.startLoc,C=o(2,E,T);C.items=[];let A=null;do{const D=A||v.nextToken();switch(A=null,D.type){case 0:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(D)),C.items.push(a(v,D.value||""));break;case 6:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(D)),C.items.push(c(v,D.value||""));break;case 5:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(D)),C.items.push(d(v,D.value||""));break;case 7:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$o(D)),C.items.push(u(v,D.value||""));break;case 8:const q=_(v);C.items.push(q.node),A=q.nextConsumeToken||null;break}}while(x.currentType!==14&&x.currentType!==1);const L=x.currentType===1?x.lastOffset:v.currentOffset(),R=x.currentType===1?x.lastEndLoc:v.currentPosition();return i(C,L,R),C}function h(v,x,E,T){const C=v.context();let A=T.items.length===0;const L=o(1,x,E);L.cases=[],L.cases.push(T);do{const R=b(v);A||(A=R.items.length===0),L.cases.push(R)}while(C.currentType!==14);return A&&n(v,tt.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),i(L,v.currentOffset(),v.currentPosition()),L}function m(v){const x=v.context(),{offset:E,startLoc:T}=x,C=b(v);return x.currentType===14?C:h(v,E,T,C)}function y(v){const x=q9(v,_C({},t)),E=x.context(),T=o(0,E.offset,E.startLoc);return e&&T.loc&&(T.loc.source=v),T.body=m(x),t.onCacheKey&&(T.cacheKey=t.onCacheKey(v)),E.currentType!==14&&n(x,tt.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,v[E.offset]||""),i(T,x.currentOffset(),x.currentPosition()),T}return{parse:y}}function $o(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function H9(t,e={}){const r={ast:t,helpers:new Set};return{context:()=>r,helper:i=>(r.helpers.add(i),i)}}function Xw(t,e){for(let r=0;rJw(r)),t}function Jw(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let r=0;rc;function u(y,v){c.code+=y}function f(y,v=!0){const x=v?o:"";u(i?x+" ".repeat(y):x)}function g(y=!0){const v=++c.indentLevel;y&&f(v)}function _(y=!0){const v=--c.indentLevel;y&&f(v)}function b(){f(c.indentLevel)}return{context:d,push:u,indent:g,deindent:_,newline:b,helper:y=>`_${y}`,needIndent:()=>c.needIndent}}function Z9(t,e){const{helper:r}=t;t.push(`${r("linked")}(`),Il(t,e.key),e.modifier?(t.push(", "),Il(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function X9(t,e){const{helper:r,needIndent:n}=t;t.push(`${r("normalize")}([`),t.indent(n());const o=e.items.length;for(let i=0;i1){t.push(`${r("plural")}([`),t.indent(n());const o=e.cases.length;for(let i=0;i{const r=Yw(e.mode)?e.mode:"normal",n=Yw(e.filename)?e.filename:"message.intl",o=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:r==="arrow"?";":` +`,a=e.needIndent?e.needIndent:r!=="arrow",c=t.helpers||[],d=Y9(t,{mode:r,filename:n,sourceMap:o,breakLineCode:i,needIndent:a});d.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),d.indent(a),c.length>0&&(d.push(`const { ${yC(c.map(g=>`${g}: _${g}`),", ")} } = ctx`),d.newline()),d.push("return "),Il(d,t),d.deindent(a),d.push("}"),delete t.helpers;const{code:u,map:f}=d.context();return{ast:t,code:u,map:f?f.toJSON():void 0}};function rz(t,e={}){const r=_C({},e),n=!!r.jit,o=!!r.minify,i=r.optimize==null?!0:r.optimize,c=j9(r).parse(t);return n?(i&&G9(c),o&&tl(c),{ast:c,code:""}):(W9(c,r),tz(c,r))}/*! * core-base v9.4.1 * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */function oz(){typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(mp().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(mp().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const ka=[];ka[0]={w:[0],i:[3,0],"[":[4],o:[7]};ka[1]={w:[1],".":[2],"[":[4],o:[7]};ka[2]={w:[2],i:[3,0],0:[3,0]};ka[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};ka[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};ka[5]={"'":[4,0],o:8,l:[5,0]};ka[6]={'"':[4,0],o:8,l:[6,0]};const iz=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function az(t){return iz.test(t)}function sz(t){const e=t.charCodeAt(0),r=t.charCodeAt(t.length-1);return e===r&&(e===34||e===39)?t.slice(1,-1):t}function lz(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;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 cz(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:az(e)?sz(e):"*"+e}function dz(t){const e=[];let r=-1,n=0,o=0,i,a,c,d,u,f,g;const _=[];_[0]=()=>{a===void 0?a=c:a+=c},_[1]=()=>{a!==void 0&&(e.push(a),a=void 0)},_[2]=()=>{_[0](),o++},_[3]=()=>{if(o>0)o--,n=4,_[0]();else{if(o=0,a===void 0||(a=cz(a),a===!1))return!1;_[1]()}};function b(){const h=t[r+1];if(n===5&&h==="'"||n===6&&h==='"')return r++,c="\\"+h,_[0](),!0}for(;n!==null;)if(r++,i=t[r],!(i==="\\"&&b())){if(d=lz(i),g=ka[n],u=g[d]||g.l||8,u===8||(n=u[0],u[1]!==void 0&&(f=_[u[1]],f&&(c=i,f()===!1))))return;if(n===7)return e}}const e5=new Map;function uz(t,e){return Dt(t)?t[e]:null}function fz(t,e){if(!Dt(t))return null;let r=e5.get(e);if(r||(r=dz(e),r&&e5.set(e,r)),!r)return null;const n=r.length;let o=t,i=0;for(;it,hz=t=>"",mz="text",vz=t=>t.length===0?"":A9(t),gz=C9;function t5(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function _z(t){const e=Ir(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Ir(t.named.count)||Ir(t.named.n))?Ir(t.named.count)?t.named.count:Ir(t.named.n)?t.named.n:e:e}function yz(t,e){e.count||(e.count=t),e.n||(e.n=t)}function bz(t={}){const e=t.locale,r=_z(t),n=Dt(t.pluralRules)&&Qe(e)&&Br(t.pluralRules[e])?t.pluralRules[e]:t5,o=Dt(t.pluralRules)&&Qe(e)&&Br(t.pluralRules[e])?t5:void 0,i=v=>v[n(r,v.length,o)],a=t.list||[],c=v=>a[v],d=t.named||{};Ir(t.pluralIndex)&&yz(r,d);const u=v=>d[v];function f(v){const x=Br(t.messages)?t.messages(v):Dt(t.messages)?t.messages[v]:!1;return x||(t.parent?t.parent.message(v):hz)}const g=v=>t.modifiers?t.modifiers[v]:pz,_=Et(t.processor)&&Br(t.processor.normalize)?t.processor.normalize:vz,b=Et(t.processor)&&Br(t.processor.interpolate)?t.processor.interpolate:gz,h=Et(t.processor)&&Qe(t.processor.type)?t.processor.type:mz,y={list:c,named:u,plural:i,linked:(v,...x)=>{const[E,T]=x;let C="text",A="";x.length===1?Dt(E)?(A=E.modifier||A,C=E.type||C):Qe(E)&&(A=E||A):x.length===2&&(Qe(E)&&(A=E||A),Qe(T)&&(C=T||C));const L=f(v)(y),R=C==="vnode"&&wr(L)&&A?L[0]:L;return A?g(A)(R,C):R},message:f,type:h,interpolate:b,normalize:_,values:nn({},a,d)};return y}const xz={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};function wz(t,e,r){return[...new Set([r,...wr(e)?e:Dt(e)?Object.keys(e):Qe(e)?[e]:[r]])]}function xC(t,e,r){const n=Qe(r)?r:vb,o=t;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(n);if(!i){i=[];let a=[r];for(;wr(a);)a=r5(i,a,e);const c=wr(e)||!Et(e)?e:e.default?e.default:null;a=Qe(c)?[c]:c,wr(a)&&r5(i,a,!1),o.__localeChainCache.set(n,i)}return i}function r5(t,e,r){let n=!0;for(let o=0;o`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function Cz(){return{upper:(t,e)=>e==="text"&&Qe(t)?t.toUpperCase():e==="vnode"&&Dt(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Qe(t)?t.toLowerCase():e==="vnode"&&Dt(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Qe(t)?o5(t):e==="vnode"&&Dt(t)&&"__v_isVNode"in t?o5(t.children):t}}let wC;function i5(t){wC=t}let EC;function Az(t){EC=t}let TC;function Sz(t){TC=t}let kC=null;const a5=t=>{kC=t},Iz=()=>kC;let s5=0;function $z(t={}){const e=Br(t.onWarn)?t.onWarn:S9,r=Qe(t.version)?t.version:kz,n=Qe(t.locale)?t.locale:vb,o=wr(t.fallbackLocale)||Et(t.fallbackLocale)||Qe(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,i=Et(t.messages)?t.messages:{[n]:{}},a=Et(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},c=Et(t.numberFormats)?t.numberFormats:{[n]:{}},d=nn({},t.modifiers||{},Cz()),u=t.pluralRules||{},f=Br(t.missing)?t.missing:null,g=nr(t.missingWarn)||hp(t.missingWarn)?t.missingWarn:!0,_=nr(t.fallbackWarn)||hp(t.fallbackWarn)?t.fallbackWarn:!0,b=!!t.fallbackFormat,h=!!t.unresolving,m=Br(t.postTranslation)?t.postTranslation:null,y=Et(t.processor)?t.processor:null,v=nr(t.warnHtmlMessage)?t.warnHtmlMessage:!0,x=!!t.escapeParameter,E=Br(t.messageCompiler)?t.messageCompiler:wC,T=Br(t.messageResolver)?t.messageResolver:EC||uz,C=Br(t.localeFallbacker)?t.localeFallbacker:TC||wz,A=Dt(t.fallbackContext)?t.fallbackContext:void 0,L=t,R=Dt(L.__datetimeFormatters)?L.__datetimeFormatters:new Map,D=Dt(L.__numberFormatters)?L.__numberFormatters:new Map,q=Dt(L.__meta)?L.__meta:{};s5++;const H={version:r,cid:s5,locale:n,fallbackLocale:o,messages:i,modifiers:d,pluralRules:u,missing:f,missingWarn:g,fallbackWarn:_,fallbackFormat:b,unresolving:h,postTranslation:m,processor:y,warnHtmlMessage:v,escapeParameter:x,messageCompiler:E,messageResolver:T,localeFallbacker:C,fallbackContext:A,onWarn:e,__meta:q};return H.datetimeFormats=a,H.numberFormats=c,H.__datetimeFormatters=R,H.__numberFormatters=D,H}function gb(t,e,r,n,o){const{missing:i,onWarn:a}=t;if(i!==null){const c=i(t,r,e,o);return Qe(c)?c:e}else return e}function Oc(t,e,r){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,r,e)}function gv(t){return r=>Oz(r,t)}function Oz(t,e){const r=e.b||e.body;if((r.t||r.type)===1){const n=r,o=n.c||n.cases;return t.plural(o.reduce((i,a)=>[...i,l5(t,a)],[]))}else return l5(t,r)}function l5(t,e){const r=e.s||e.static;if(r)return t.type==="text"?r:t.normalize([r]);{const n=(e.i||e.items).reduce((o,i)=>[...o,Og(t,i)],[]);return t.normalize(n)}}function Og(t,e){const r=e.t||e.type;switch(r){case 3:const n=e;return n.v||n.value;case 9:const o=e;return o.v||o.value;case 4:const i=e;return t.interpolate(t.named(i.k||i.key));case 5:const a=e;return t.interpolate(t.list(a.i||a.index));case 6:const c=e,d=c.m||c.modifier;return t.linked(Og(t,c.k||c.key),d?Og(t,d):void 0,t.type);case 7:const u=e;return u.v||u.value;case 8:const f=e;return f.v||f.value;default:throw new Error(`unhandled node type on format message part: ${r}`)}}const CC=tt.__EXTEND_POINT__,wf=hb(CC),ra={INVALID_ARGUMENT:CC,INVALID_DATE_ARGUMENT:wf(),INVALID_ISO_DATE_ARGUMENT:wf(),NOT_SUPPORT_NON_STRING_MESSAGE:wf(),__EXTEND_POINT__:wf()};function Ja(t){return Kl(t,null,void 0)}const AC=t=>t;let dl=Object.create(null);const xd=t=>Dt(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function SC(t,e={}){let r=!1;const n=e.onError||L9;return e.onError=o=>{r=!0,n(o)},{...nz(t,e),detectError:r}}const Pz=(t,e)=>{if(!Qe(t))throw Ja(ra.NOT_SUPPORT_NON_STRING_MESSAGE);{nr(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||AC)(t),o=dl[n];if(o)return o;const{code:i,detectError:a}=SC(t,e),c=new Function(`return ${i}`)();return a?c:dl[n]=c}};function Rz(t,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&Qe(t)){nr(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||AC)(t),o=dl[n];if(o)return o;const{ast:i,detectError:a}=SC(t,{...e,location:!1,jit:!0}),c=gv(i);return a?c:dl[n]=c}else{const r=t.cacheKey;if(r){const n=dl[r];return n||(dl[r]=gv(t))}else return gv(t)}}const c5=()=>"",la=t=>Br(t);function d5(t,...e){const{fallbackFormat:r,postTranslation:n,unresolving:o,messageCompiler:i,fallbackLocale:a,messages:c}=t,[d,u]=Pg(...e),f=nr(u.missingWarn)?u.missingWarn:t.missingWarn,g=nr(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,_=nr(u.escapeParameter)?u.escapeParameter:t.escapeParameter,b=!!u.resolvedMessage,h=Qe(u.default)||nr(u.default)?nr(u.default)?i?d:()=>d:u.default:r?i?d:()=>d:"",m=r||h!=="",y=Qe(u.locale)?u.locale:t.locale;_&&Lz(u);let[v,x,E]=b?[d,y,c[y]||{}]:IC(t,d,y,a,g,f),T=v,C=d;if(!b&&!(Qe(T)||xd(T)||la(T))&&m&&(T=h,C=T),!b&&(!(Qe(T)||xd(T)||la(T))||!Qe(x)))return o?ih:d;let A=!1;const L=()=>{A=!0},R=la(T)?T:$C(t,d,x,T,C,L);if(A)return T;const D=Fz(t,x,E,u),q=bz(D),H=Mz(t,R,q);return n?n(H,d):H}function Lz(t){wr(t.list)?t.list=t.list.map(e=>Qe(e)?Kw(e):e):Dt(t.named)&&Object.keys(t.named).forEach(e=>{Qe(t.named[e])&&(t.named[e]=Kw(t.named[e]))})}function IC(t,e,r,n,o,i){const{messages:a,onWarn:c,messageResolver:d,localeFallbacker:u}=t,f=u(t,n,r);let g={},_,b=null;const h="translate";for(let m=0;mn;return u.locale=r,u.key=e,u}const d=a(n,Dz(t,r,o,n,c,i));return d.locale=r,d.key=e,d.source=n,d}function Mz(t,e,r){return e(r)}function Pg(...t){const[e,r,n]=t,o={};if(!Qe(e)&&!Ir(e)&&!la(e)&&!xd(e))throw Ja(ra.INVALID_ARGUMENT);const i=Ir(e)?String(e):(la(e),e);return Ir(r)?o.plural=r:Qe(r)?o.default=r:Et(r)&&!oh(r)?o.named=r:wr(r)&&(o.list=r),Ir(n)?o.plural=n:Qe(n)?o.default=n:Et(n)&&nn(o,n),[i,o]}function Dz(t,e,r,n,o,i){return{locale:e,key:r,warnHtmlMessage:o,onError:a=>{throw i&&i(a),a},onCacheKey:a=>w9(e,r,a)}}function Fz(t,e,r,n){const{modifiers:o,pluralRules:i,messageResolver:a,fallbackLocale:c,fallbackWarn:d,missingWarn:u,fallbackContext:f}=t,_={locale:e,modifiers:o,pluralRules:i,messages:b=>{let h=a(r,b);if(h==null&&f){const[,,m]=IC(f,b,e,c,d,u);h=a(m,b)}if(Qe(h)||xd(h)){let m=!1;const v=$C(t,b,e,h,b,()=>{m=!0});return m?c5:v}else return la(h)?h:c5}};return t.processor&&(_.processor=t.processor),n.list&&(_.list=n.list),n.named&&(_.named=n.named),Ir(n.plural)&&(_.pluralIndex=n.plural),_}function u5(t,...e){const{datetimeFormats:r,unresolving:n,fallbackLocale:o,onWarn:i,localeFallbacker:a}=t,{__datetimeFormatters:c}=t,[d,u,f,g]=Rg(...e),_=nr(f.missingWarn)?f.missingWarn:t.missingWarn;nr(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const b=!!f.part,h=Qe(f.locale)?f.locale:t.locale,m=a(t,o,h);if(!Qe(d)||d==="")return new Intl.DateTimeFormat(h,g).format(u);let y={},v,x=null;const E="datetime format";for(let A=0;A{OC.includes(d)?a[d]=r[d]:i[d]=r[d]}),Qe(n)?i.locale=n:Et(n)&&(a=n),Et(o)&&(a=o),[i.key||"",c,i,a]}function f5(t,e,r){const n=t;for(const o in r){const i=`${e}__${o}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function p5(t,...e){const{numberFormats:r,unresolving:n,fallbackLocale:o,onWarn:i,localeFallbacker:a}=t,{__numberFormatters:c}=t,[d,u,f,g]=Lg(...e),_=nr(f.missingWarn)?f.missingWarn:t.missingWarn;nr(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const b=!!f.part,h=Qe(f.locale)?f.locale:t.locale,m=a(t,o,h);if(!Qe(d)||d==="")return new Intl.NumberFormat(h,g).format(u);let y={},v,x=null;const E="number format";for(let A=0;A{PC.includes(d)?a[d]=r[d]:i[d]=r[d]}),Qe(n)?i.locale=n:Et(n)&&(a=n),Et(o)&&(a=o),[i.key||"",c,i,a]}function h5(t,e,r){const n=t;for(const o in r){const i=`${e}__${o}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}oz();/*! + */function nz(){typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(mp().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(mp().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const ka=[];ka[0]={w:[0],i:[3,0],"[":[4],o:[7]};ka[1]={w:[1],".":[2],"[":[4],o:[7]};ka[2]={w:[2],i:[3,0],0:[3,0]};ka[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};ka[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};ka[5]={"'":[4,0],o:8,l:[5,0]};ka[6]={'"':[4,0],o:8,l:[6,0]};const oz=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function iz(t){return oz.test(t)}function az(t){const e=t.charCodeAt(0),r=t.charCodeAt(t.length-1);return e===r&&(e===34||e===39)?t.slice(1,-1):t}function sz(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;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 lz(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:iz(e)?az(e):"*"+e}function cz(t){const e=[];let r=-1,n=0,o=0,i,a,c,d,u,f,g;const _=[];_[0]=()=>{a===void 0?a=c:a+=c},_[1]=()=>{a!==void 0&&(e.push(a),a=void 0)},_[2]=()=>{_[0](),o++},_[3]=()=>{if(o>0)o--,n=4,_[0]();else{if(o=0,a===void 0||(a=lz(a),a===!1))return!1;_[1]()}};function b(){const h=t[r+1];if(n===5&&h==="'"||n===6&&h==='"')return r++,c="\\"+h,_[0](),!0}for(;n!==null;)if(r++,i=t[r],!(i==="\\"&&b())){if(d=sz(i),g=ka[n],u=g[d]||g.l||8,u===8||(n=u[0],u[1]!==void 0&&(f=_[u[1]],f&&(c=i,f()===!1))))return;if(n===7)return e}}const e5=new Map;function dz(t,e){return Dt(t)?t[e]:null}function uz(t,e){if(!Dt(t))return null;let r=e5.get(e);if(r||(r=cz(e),r&&e5.set(e,r)),!r)return null;const n=r.length;let o=t,i=0;for(;it,pz=t=>"",hz="text",mz=t=>t.length===0?"":C9(t),vz=k9;function t5(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function gz(t){const e=Ir(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Ir(t.named.count)||Ir(t.named.n))?Ir(t.named.count)?t.named.count:Ir(t.named.n)?t.named.n:e:e}function _z(t,e){e.count||(e.count=t),e.n||(e.n=t)}function yz(t={}){const e=t.locale,r=gz(t),n=Dt(t.pluralRules)&&Qe(e)&&Br(t.pluralRules[e])?t.pluralRules[e]:t5,o=Dt(t.pluralRules)&&Qe(e)&&Br(t.pluralRules[e])?t5:void 0,i=v=>v[n(r,v.length,o)],a=t.list||[],c=v=>a[v],d=t.named||{};Ir(t.pluralIndex)&&_z(r,d);const u=v=>d[v];function f(v){const x=Br(t.messages)?t.messages(v):Dt(t.messages)?t.messages[v]:!1;return x||(t.parent?t.parent.message(v):pz)}const g=v=>t.modifiers?t.modifiers[v]:fz,_=Et(t.processor)&&Br(t.processor.normalize)?t.processor.normalize:mz,b=Et(t.processor)&&Br(t.processor.interpolate)?t.processor.interpolate:vz,h=Et(t.processor)&&Qe(t.processor.type)?t.processor.type:hz,y={list:c,named:u,plural:i,linked:(v,...x)=>{const[E,T]=x;let C="text",A="";x.length===1?Dt(E)?(A=E.modifier||A,C=E.type||C):Qe(E)&&(A=E||A):x.length===2&&(Qe(E)&&(A=E||A),Qe(T)&&(C=T||C));const L=f(v)(y),R=C==="vnode"&&wr(L)&&A?L[0]:L;return A?g(A)(R,C):R},message:f,type:h,interpolate:b,normalize:_,values:nn({},a,d)};return y}const bz={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};function xz(t,e,r){return[...new Set([r,...wr(e)?e:Dt(e)?Object.keys(e):Qe(e)?[e]:[r]])]}function bC(t,e,r){const n=Qe(r)?r:vb,o=t;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(n);if(!i){i=[];let a=[r];for(;wr(a);)a=r5(i,a,e);const c=wr(e)||!Et(e)?e:e.default?e.default:null;a=Qe(c)?[c]:c,wr(a)&&r5(i,a,!1),o.__localeChainCache.set(n,i)}return i}function r5(t,e,r){let n=!0;for(let o=0;o`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function kz(){return{upper:(t,e)=>e==="text"&&Qe(t)?t.toUpperCase():e==="vnode"&&Dt(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Qe(t)?t.toLowerCase():e==="vnode"&&Dt(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Qe(t)?o5(t):e==="vnode"&&Dt(t)&&"__v_isVNode"in t?o5(t.children):t}}let xC;function i5(t){xC=t}let wC;function Cz(t){wC=t}let EC;function Az(t){EC=t}let TC=null;const a5=t=>{TC=t},Sz=()=>TC;let s5=0;function Iz(t={}){const e=Br(t.onWarn)?t.onWarn:A9,r=Qe(t.version)?t.version:Tz,n=Qe(t.locale)?t.locale:vb,o=wr(t.fallbackLocale)||Et(t.fallbackLocale)||Qe(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,i=Et(t.messages)?t.messages:{[n]:{}},a=Et(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},c=Et(t.numberFormats)?t.numberFormats:{[n]:{}},d=nn({},t.modifiers||{},kz()),u=t.pluralRules||{},f=Br(t.missing)?t.missing:null,g=nr(t.missingWarn)||hp(t.missingWarn)?t.missingWarn:!0,_=nr(t.fallbackWarn)||hp(t.fallbackWarn)?t.fallbackWarn:!0,b=!!t.fallbackFormat,h=!!t.unresolving,m=Br(t.postTranslation)?t.postTranslation:null,y=Et(t.processor)?t.processor:null,v=nr(t.warnHtmlMessage)?t.warnHtmlMessage:!0,x=!!t.escapeParameter,E=Br(t.messageCompiler)?t.messageCompiler:xC,T=Br(t.messageResolver)?t.messageResolver:wC||dz,C=Br(t.localeFallbacker)?t.localeFallbacker:EC||xz,A=Dt(t.fallbackContext)?t.fallbackContext:void 0,L=t,R=Dt(L.__datetimeFormatters)?L.__datetimeFormatters:new Map,D=Dt(L.__numberFormatters)?L.__numberFormatters:new Map,q=Dt(L.__meta)?L.__meta:{};s5++;const H={version:r,cid:s5,locale:n,fallbackLocale:o,messages:i,modifiers:d,pluralRules:u,missing:f,missingWarn:g,fallbackWarn:_,fallbackFormat:b,unresolving:h,postTranslation:m,processor:y,warnHtmlMessage:v,escapeParameter:x,messageCompiler:E,messageResolver:T,localeFallbacker:C,fallbackContext:A,onWarn:e,__meta:q};return H.datetimeFormats=a,H.numberFormats=c,H.__datetimeFormatters=R,H.__numberFormatters=D,H}function gb(t,e,r,n,o){const{missing:i,onWarn:a}=t;if(i!==null){const c=i(t,r,e,o);return Qe(c)?c:e}else return e}function Oc(t,e,r){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,r,e)}function gv(t){return r=>$z(r,t)}function $z(t,e){const r=e.b||e.body;if((r.t||r.type)===1){const n=r,o=n.c||n.cases;return t.plural(o.reduce((i,a)=>[...i,l5(t,a)],[]))}else return l5(t,r)}function l5(t,e){const r=e.s||e.static;if(r)return t.type==="text"?r:t.normalize([r]);{const n=(e.i||e.items).reduce((o,i)=>[...o,Og(t,i)],[]);return t.normalize(n)}}function Og(t,e){const r=e.t||e.type;switch(r){case 3:const n=e;return n.v||n.value;case 9:const o=e;return o.v||o.value;case 4:const i=e;return t.interpolate(t.named(i.k||i.key));case 5:const a=e;return t.interpolate(t.list(a.i||a.index));case 6:const c=e,d=c.m||c.modifier;return t.linked(Og(t,c.k||c.key),d?Og(t,d):void 0,t.type);case 7:const u=e;return u.v||u.value;case 8:const f=e;return f.v||f.value;default:throw new Error(`unhandled node type on format message part: ${r}`)}}const kC=tt.__EXTEND_POINT__,wf=hb(kC),ra={INVALID_ARGUMENT:kC,INVALID_DATE_ARGUMENT:wf(),INVALID_ISO_DATE_ARGUMENT:wf(),NOT_SUPPORT_NON_STRING_MESSAGE:wf(),__EXTEND_POINT__:wf()};function Ja(t){return Kl(t,null,void 0)}const CC=t=>t;let dl=Object.create(null);const xd=t=>Dt(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function AC(t,e={}){let r=!1;const n=e.onError||R9;return e.onError=o=>{r=!0,n(o)},{...rz(t,e),detectError:r}}const Oz=(t,e)=>{if(!Qe(t))throw Ja(ra.NOT_SUPPORT_NON_STRING_MESSAGE);{nr(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||CC)(t),o=dl[n];if(o)return o;const{code:i,detectError:a}=AC(t,e),c=new Function(`return ${i}`)();return a?c:dl[n]=c}};function Pz(t,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&Qe(t)){nr(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||CC)(t),o=dl[n];if(o)return o;const{ast:i,detectError:a}=AC(t,{...e,location:!1,jit:!0}),c=gv(i);return a?c:dl[n]=c}else{const r=t.cacheKey;if(r){const n=dl[r];return n||(dl[r]=gv(t))}else return gv(t)}}const c5=()=>"",la=t=>Br(t);function d5(t,...e){const{fallbackFormat:r,postTranslation:n,unresolving:o,messageCompiler:i,fallbackLocale:a,messages:c}=t,[d,u]=Pg(...e),f=nr(u.missingWarn)?u.missingWarn:t.missingWarn,g=nr(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,_=nr(u.escapeParameter)?u.escapeParameter:t.escapeParameter,b=!!u.resolvedMessage,h=Qe(u.default)||nr(u.default)?nr(u.default)?i?d:()=>d:u.default:r?i?d:()=>d:"",m=r||h!=="",y=Qe(u.locale)?u.locale:t.locale;_&&Rz(u);let[v,x,E]=b?[d,y,c[y]||{}]:SC(t,d,y,a,g,f),T=v,C=d;if(!b&&!(Qe(T)||xd(T)||la(T))&&m&&(T=h,C=T),!b&&(!(Qe(T)||xd(T)||la(T))||!Qe(x)))return o?ih:d;let A=!1;const L=()=>{A=!0},R=la(T)?T:IC(t,d,x,T,C,L);if(A)return T;const D=Dz(t,x,E,u),q=yz(D),H=Lz(t,R,q);return n?n(H,d):H}function Rz(t){wr(t.list)?t.list=t.list.map(e=>Qe(e)?Kw(e):e):Dt(t.named)&&Object.keys(t.named).forEach(e=>{Qe(t.named[e])&&(t.named[e]=Kw(t.named[e]))})}function SC(t,e,r,n,o,i){const{messages:a,onWarn:c,messageResolver:d,localeFallbacker:u}=t,f=u(t,n,r);let g={},_,b=null;const h="translate";for(let m=0;mn;return u.locale=r,u.key=e,u}const d=a(n,Mz(t,r,o,n,c,i));return d.locale=r,d.key=e,d.source=n,d}function Lz(t,e,r){return e(r)}function Pg(...t){const[e,r,n]=t,o={};if(!Qe(e)&&!Ir(e)&&!la(e)&&!xd(e))throw Ja(ra.INVALID_ARGUMENT);const i=Ir(e)?String(e):(la(e),e);return Ir(r)?o.plural=r:Qe(r)?o.default=r:Et(r)&&!oh(r)?o.named=r:wr(r)&&(o.list=r),Ir(n)?o.plural=n:Qe(n)?o.default=n:Et(n)&&nn(o,n),[i,o]}function Mz(t,e,r,n,o,i){return{locale:e,key:r,warnHtmlMessage:o,onError:a=>{throw i&&i(a),a},onCacheKey:a=>x9(e,r,a)}}function Dz(t,e,r,n){const{modifiers:o,pluralRules:i,messageResolver:a,fallbackLocale:c,fallbackWarn:d,missingWarn:u,fallbackContext:f}=t,_={locale:e,modifiers:o,pluralRules:i,messages:b=>{let h=a(r,b);if(h==null&&f){const[,,m]=SC(f,b,e,c,d,u);h=a(m,b)}if(Qe(h)||xd(h)){let m=!1;const v=IC(t,b,e,h,b,()=>{m=!0});return m?c5:v}else return la(h)?h:c5}};return t.processor&&(_.processor=t.processor),n.list&&(_.list=n.list),n.named&&(_.named=n.named),Ir(n.plural)&&(_.pluralIndex=n.plural),_}function u5(t,...e){const{datetimeFormats:r,unresolving:n,fallbackLocale:o,onWarn:i,localeFallbacker:a}=t,{__datetimeFormatters:c}=t,[d,u,f,g]=Rg(...e),_=nr(f.missingWarn)?f.missingWarn:t.missingWarn;nr(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const b=!!f.part,h=Qe(f.locale)?f.locale:t.locale,m=a(t,o,h);if(!Qe(d)||d==="")return new Intl.DateTimeFormat(h,g).format(u);let y={},v,x=null;const E="datetime format";for(let A=0;A{$C.includes(d)?a[d]=r[d]:i[d]=r[d]}),Qe(n)?i.locale=n:Et(n)&&(a=n),Et(o)&&(a=o),[i.key||"",c,i,a]}function f5(t,e,r){const n=t;for(const o in r){const i=`${e}__${o}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function p5(t,...e){const{numberFormats:r,unresolving:n,fallbackLocale:o,onWarn:i,localeFallbacker:a}=t,{__numberFormatters:c}=t,[d,u,f,g]=Lg(...e),_=nr(f.missingWarn)?f.missingWarn:t.missingWarn;nr(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const b=!!f.part,h=Qe(f.locale)?f.locale:t.locale,m=a(t,o,h);if(!Qe(d)||d==="")return new Intl.NumberFormat(h,g).format(u);let y={},v,x=null;const E="number format";for(let A=0;A{OC.includes(d)?a[d]=r[d]:i[d]=r[d]}),Qe(n)?i.locale=n:Et(n)&&(a=n),Et(o)&&(a=o),[i.key||"",c,i,a]}function h5(t,e,r){const n=t;for(const o in r){const i=`${e}__${o}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}nz();/*! * vue-i18n v9.4.1 * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */const Nz="9.4.1";function zz(){typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(mp().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(mp().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const RC=xz.__EXTEND_POINT__,Vi=hb(RC);Vi(),Vi(),Vi(),Vi(),Vi(),Vi(),Vi(),Vi();const LC=ra.__EXTEND_POINT__,dn=hb(LC),In={UNEXPECTED_RETURN_TYPE:LC,INVALID_ARGUMENT:dn(),MUST_BE_CALL_SETUP_TOP:dn(),NOT_INSTALLED:dn(),NOT_AVAILABLE_IN_LEGACY_MODE:dn(),REQUIRED_VALUE:dn(),INVALID_VALUE:dn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:dn(),NOT_INSTALLED_WITH_PROVIDE:dn(),UNEXPECTED_ERROR:dn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:dn(),BRIDGE_SUPPORT_VUE_2_ONLY:dn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:dn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:dn(),__EXTEND_POINT__:dn()};function Qn(t,...e){return Kl(t,null,void 0)}const Mg=Ta("__translateVNode"),Dg=Ta("__datetimeParts"),Fg=Ta("__numberParts"),qz=Ta("__setPluralRules"),Bz=Ta("__injectWithOption"),Ng=Ta("__dispose");function zg(t){if(!Dt(t))return t;for(const e in t)if(pb(t,e))if(!e.includes("."))Dt(t[e])&&zg(t[e]);else{const r=e.split("."),n=r.length-1;let o=t,i=!1;for(let a=0;a{if("locale"in c&&"resource"in c){const{locale:d,resource:u}=c;d?(a[d]=a[d]||{},Qc(u,a[d])):Qc(u,a)}else Qe(c)&&Qc(JSON.parse(c),a)}),o==null&&i)for(const c in a)pb(a,c)&&zg(a[c]);return a}const Ef=t=>!Dt(t)||wr(t);function Qc(t,e){if(Ef(t)||Ef(e))throw Qn(In.INVALID_VALUE);for(const r in t)pb(t,r)&&(Ef(t[r])||Ef(e[r])?e[r]=t[r]:Qc(t[r],e[r]))}function Uz(t){return t.type}function Vz(t,e,r){let n=Dt(e.messages)?e.messages:{};"__i18nGlobal"in r&&(n=MC(t.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const o=Object.keys(n);o.length&&o.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(Dt(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(a=>{t.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(Dt(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(a=>{t.mergeNumberFormat(a,e.numberFormats[a])})}}}function m5(t){return Be(Md,null,t,0)}let v5=0;function g5(t){return(e,r,n,o)=>t(r,n,Wo()||void 0,o)}function DC(t={},e){const{__root:r,__injectWithOption:n}=t,o=r===void 0;let i=nr(t.inheritLocale)?t.inheritLocale:!0;const a=Se(r&&i?r.locale.value:Qe(t.locale)?t.locale:vb),c=Se(r&&i?r.fallbackLocale.value:Qe(t.fallbackLocale)||wr(t.fallbackLocale)||Et(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),d=Se(MC(a.value,t)),u=Se(Et(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),f=Se(Et(t.numberFormats)?t.numberFormats:{[a.value]:{}});let g=r?r.missingWarn:nr(t.missingWarn)||hp(t.missingWarn)?t.missingWarn:!0,_=r?r.fallbackWarn:nr(t.fallbackWarn)||hp(t.fallbackWarn)?t.fallbackWarn:!0,b=r?r.fallbackRoot:nr(t.fallbackRoot)?t.fallbackRoot:!0,h=!!t.fallbackFormat,m=Br(t.missing)?t.missing:null,y=Br(t.missing)?g5(t.missing):null,v=Br(t.postTranslation)?t.postTranslation:null,x=r?r.warnHtmlMessage:nr(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const T=r?r.modifiers:Et(t.modifiers)?t.modifiers:{};let C=t.pluralRules||r&&r.pluralRules,A;A=(()=>{o&&a5(null);const j={version:Nz,locale:a.value,fallbackLocale:c.value,messages:d.value,modifiers:T,pluralRules:C,missing:y===null?void 0:y,missingWarn:g,fallbackWarn:_,fallbackFormat:h,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:x,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};j.datetimeFormats=u.value,j.numberFormats=f.value,j.__datetimeFormatters=Et(A)?A.__datetimeFormatters:void 0,j.__numberFormatters=Et(A)?A.__numberFormatters:void 0;const z=$z(j);return o&&a5(z),z})(),Oc(A,a.value,c.value);function R(){return[a.value,c.value,d.value,u.value,f.value]}const D=St({get:()=>a.value,set:j=>{a.value=j,A.locale=a.value}}),q=St({get:()=>c.value,set:j=>{c.value=j,A.fallbackLocale=c.value,Oc(A,a.value,j)}}),H=St(()=>d.value),U=St(()=>u.value),ce=St(()=>f.value);function Ae(){return Br(v)?v:null}function Le(j){v=j,A.postTranslation=j}function Te(){return m}function Ie(j){j!==null&&(y=g5(j)),m=j,A.missing=y}const Pe=(j,z,oe,be,Fe,Ue)=>{R();let dt;try{o||(A.fallbackContext=r?Iz():void 0),dt=j(A)}finally{o||(A.fallbackContext=void 0)}if(Ir(dt)&&dt===ih){const[Gt,gr]=z();return r&&b?be(r):Fe(Gt)}else{if(Ue(dt))return dt;throw Qn(In.UNEXPECTED_RETURN_TYPE)}};function Ce(...j){return Pe(z=>Reflect.apply(d5,null,[z,...j]),()=>Pg(...j),"translate",z=>Reflect.apply(z.t,z,[...j]),z=>z,z=>Qe(z))}function de(...j){const[z,oe,be]=j;if(be&&!Dt(be))throw Qn(In.INVALID_ARGUMENT);return Ce(z,oe,nn({resolvedMessage:!0},be||{}))}function we(...j){return Pe(z=>Reflect.apply(u5,null,[z,...j]),()=>Rg(...j),"datetime format",z=>Reflect.apply(z.d,z,[...j]),()=>n5,z=>Qe(z))}function ke(...j){return Pe(z=>Reflect.apply(p5,null,[z,...j]),()=>Lg(...j),"number format",z=>Reflect.apply(z.n,z,[...j]),()=>n5,z=>Qe(z))}function Re(j){return j.map(z=>Qe(z)||Ir(z)||nr(z)?m5(String(z)):z)}const ze={normalize:Re,interpolate:j=>j,type:"vnode"};function We(...j){return Pe(z=>{let oe;const be=z;try{be.processor=ze,oe=Reflect.apply(d5,null,[be,...j])}finally{be.processor=null}return oe},()=>Pg(...j),"translate",z=>z[Mg](...j),z=>[m5(z)],z=>wr(z))}function J(...j){return Pe(z=>Reflect.apply(p5,null,[z,...j]),()=>Lg(...j),"number format",z=>z[Fg](...j),()=>[],z=>Qe(z)||wr(z))}function me(...j){return Pe(z=>Reflect.apply(u5,null,[z,...j]),()=>Rg(...j),"datetime format",z=>z[Dg](...j),()=>[],z=>Qe(z)||wr(z))}function ve(j){C=j,A.pluralRules=C}function $e(j,z){const oe=Qe(z)?z:a.value,be=k(oe);return A.messageResolver(be,j)!==null}function Oe(j){let z=null;const oe=xC(A,c.value,a.value);for(let be=0;be{i&&(a.value=j,A.locale=j,Oc(A,a.value,c.value))}),Vt(r.fallbackLocale,j=>{i&&(c.value=j,A.fallbackLocale=j,Oc(A,a.value,c.value))}));const fe={id:v5,locale:D,fallbackLocale:q,get inheritLocale(){return i},set inheritLocale(j){i=j,j&&r&&(a.value=r.locale.value,c.value=r.fallbackLocale.value,Oc(A,a.value,c.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:H,get modifiers(){return T},get pluralRules(){return C||{}},get isGlobal(){return o},get missingWarn(){return g},set missingWarn(j){g=j,A.missingWarn=g},get fallbackWarn(){return _},set fallbackWarn(j){_=j,A.fallbackWarn=_},get fallbackRoot(){return b},set fallbackRoot(j){b=j},get fallbackFormat(){return h},set fallbackFormat(j){h=j,A.fallbackFormat=h},get warnHtmlMessage(){return x},set warnHtmlMessage(j){x=j,A.warnHtmlMessage=j},get escapeParameter(){return E},set escapeParameter(j){E=j,A.escapeParameter=j},t:Ce,getLocaleMessage:k,setLocaleMessage:I,mergeLocaleMessage:N,getPostTranslationHandler:Ae,setPostTranslationHandler:Le,getMissingHandler:Te,setMissingHandler:Ie,[qz]:ve};return fe.datetimeFormats=U,fe.numberFormats=ce,fe.rt=de,fe.te=$e,fe.tm=M,fe.d=we,fe.n=ke,fe.getDateTimeFormat=W,fe.setDateTimeFormat=Y,fe.mergeDateTimeFormat=se,fe.getNumberFormat=ye,fe.setNumberFormat=X,fe.mergeNumberFormat=ee,fe[Bz]=n,fe[Mg]=We,fe[Dg]=me,fe[Fg]=J,fe}const _b={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function jz({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,o)=>[...n,...o.type===Pt?o.children:[o]],[]):e.reduce((r,n)=>{const o=t[n];return o&&(r[n]=o()),r},{})}function FC(t){return Pt}const Hz=Bt({name:"i18n-t",props:nn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Ir(t)||!isNaN(t)}},_b),setup(t,e){const{slots:r,attrs:n}=e,o=t.i18n||$n({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(r).filter(g=>g!=="_"),a={};t.locale&&(a.locale=t.locale),t.plural!==void 0&&(a.plural=Qe(t.plural)?+t.plural:t.plural);const c=jz(e,i),d=o[Mg](t.keypath,c,a),u=nn({},n),f=Qe(t.tag)||Dt(t.tag)?t.tag:FC();return No(f,u,d)}}}),_5=Hz;function Wz(t){return wr(t)&&!Qe(t[0])}function NC(t,e,r,n){const{slots:o,attrs:i}=e;return()=>{const a={part:!0};let c={};t.locale&&(a.locale=t.locale),Qe(t.format)?a.key=t.format:Dt(t.format)&&(Qe(t.format.key)&&(a.key=t.format.key),c=Object.keys(t.format).reduce((_,b)=>r.includes(b)?nn({},_,{[b]:t.format[b]}):_,{}));const d=n(t.value,a,c);let u=[a.key];wr(d)?u=d.map((_,b)=>{const h=o[_.type],m=h?h({[_.type]:_.value,index:b,parts:d}):[_.value];return Wz(m)&&(m[0].key=`${_.type}-${b}`),m}):Qe(d)&&(u=[d]);const f=nn({},i),g=Qe(t.tag)||Dt(t.tag)?t.tag:FC();return No(g,f,u)}}const Gz=Bt({name:"i18n-n",props:nn({value:{type:Number,required:!0},format:{type:[String,Object]}},_b),setup(t,e){const r=t.i18n||$n({useScope:"parent",__useComponent:!0});return NC(t,e,PC,(...n)=>r[Fg](...n))}}),y5=Gz,Qz=Bt({name:"i18n-d",props:nn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},_b),setup(t,e){const r=t.i18n||$n({useScope:"parent",__useComponent:!0});return NC(t,e,OC,(...n)=>r[Dg](...n))}}),b5=Qz;function Kz(t,e){const r=t;if(t.mode==="composition")return r.__getInstance(e)||t.global;{const n=r.__getInstance(e);return n!=null?n.__composer:t.global.__composer}}function Yz(t){const e=a=>{const{instance:c,modifiers:d,value:u}=a;if(!c||!c.$)throw Qn(In.UNEXPECTED_ERROR);const f=Kz(t,c.$),g=x5(u);return[Reflect.apply(f.t,f,[...w5(g)]),f]};return{created:(a,c)=>{const[d,u]=e(c);Ig&&t.global===u&&(a.__i18nWatcher=Vt(u.locale,()=>{c.instance&&c.instance.$forceUpdate()})),a.__composer=u,a.textContent=d},unmounted:a=>{Ig&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:c})=>{if(a.__composer){const d=a.__composer,u=x5(c);a.textContent=Reflect.apply(d.t,d,[...w5(u)])}},getSSRProps:a=>{const[c]=e(a);return{textContent:c}}}}function x5(t){if(Qe(t))return{path:t};if(Et(t)){if(!("path"in t))throw Qn(In.REQUIRED_VALUE,"path");return t}else throw Qn(In.INVALID_VALUE)}function w5(t){const{path:e,locale:r,args:n,choice:o,plural:i}=t,a={},c=n||{};return Qe(r)&&(a.locale=r),Ir(o)&&(a.plural=o),Ir(i)&&(a.plural=i),[e,c,a]}function Zz(t,e,...r){const n=Et(r[0])?r[0]:{},o=!!n.useI18nComponentName;(nr(n.globalInstall)?n.globalInstall:!0)&&([o?"i18n":_5.name,"I18nT"].forEach(a=>t.component(a,_5)),[y5.name,"I18nN"].forEach(a=>t.component(a,y5)),[b5.name,"I18nD"].forEach(a=>t.component(a,b5))),t.directive("t",Yz(e))}const Xz=Ta("global-vue-i18n");function Jz(t={},e){const r=nr(t.globalInjection)?t.globalInjection:!0,n=!0,o=new Map,[i,a]=eq(t),c=Ta("");function d(g){return o.get(g)||null}function u(g,_){o.set(g,_)}function f(g){o.delete(g)}{const g={get mode(){return"composition"},get allowComposition(){return n},async install(_,...b){if(_.__VUE_I18N_SYMBOL__=c,_.provide(_.__VUE_I18N_SYMBOL__,g),Et(b[0])){const y=b[0];g.__composerExtend=y.__composerExtend,g.__vueI18nExtend=y.__vueI18nExtend}let h=null;r&&(h=lq(_,g.global)),Zz(_,g,...b);const m=_.unmount;_.unmount=()=>{h&&h(),g.dispose(),m()}},get global(){return a},dispose(){i.stop()},__instances:o,__getInstance:d,__setInstance:u,__deleteInstance:f};return g}}function $n(t={}){const e=Wo();if(e==null)throw Qn(In.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Qn(In.NOT_INSTALLED);const r=tq(e),n=nq(r),o=Uz(e),i=rq(t,o);if(i==="global")return Vz(n,t,o),n;if(i==="parent"){let d=oq(r,e,t.__useComponent);return d==null&&(d=n),d}const a=r;let c=a.__getInstance(e);if(c==null){const d=nn({},t);"__i18n"in o&&(d.__i18n=o.__i18n),n&&(d.__root=n),c=DC(d),a.__composerExtend&&(c[Ng]=a.__composerExtend(c)),aq(a,e,c),a.__setInstance(e,c)}return c}function eq(t,e,r){const n=Ty();{const o=n.run(()=>DC(t));if(o==null)throw Qn(In.UNEXPECTED_ERROR);return[n,o]}}function tq(t){{const e=rn(t.isCE?Xz:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Qn(t.isCE?In.NOT_INSTALLED_WITH_PROVIDE:In.UNEXPECTED_ERROR);return e}}function rq(t,e){return oh(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function nq(t){return t.mode==="composition"?t.global:t.global.__composer}function oq(t,e,r=!1){let n=null;const o=e.root;let i=iq(e,r);for(;i!=null;){const a=t;if(t.mode==="composition"&&(n=a.__getInstance(i)),n!=null||o===i)break;i=i.parent}return n}function iq(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function aq(t,e,r){mn(()=>{},e),Hl(()=>{const n=r;t.__deleteInstance(e);const o=n[Ng];o&&(o(),delete n[Ng])},e)}const sq=["locale","fallbackLocale","availableLocales"],E5=["t","rt","d","n","tm","te"];function lq(t,e){const r=Object.create(null);return sq.forEach(o=>{const i=Object.getOwnPropertyDescriptor(e,o);if(!i)throw Qn(In.UNEXPECTED_ERROR);const a=Rt(i.value)?{get(){return i.value.value},set(c){i.value.value=c}}:{get(){return i.get&&i.get()}};Object.defineProperty(r,o,a)}),t.config.globalProperties.$i18n=r,E5.forEach(o=>{const i=Object.getOwnPropertyDescriptor(e,o);if(!i||!i.value)throw Qn(In.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${o}`,i)}),()=>{delete t.config.globalProperties.$i18n,E5.forEach(o=>{delete t.config.globalProperties[`$${o}`]})}}zz();__INTLIFY_JIT_COMPILATION__?i5(Rz):i5(Pz);Az(fz);Sz(xC);function cq(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(o){o(r)}),(n=t.get("*"))&&n.slice().map(function(o){o(e,r)})}}}const mt=cq();class dq{constructor(e,r){kr(this,"startedAt");kr(this,"callback");kr(this,"delay");kr(this,"timer");this.startedAt=Date.now(),this.callback=e,this.delay=r,this.timer=setTimeout(e,r)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.stop(),this.startedAt=Date.now(),this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const uq={key:0,class:"toast-container"},fq=Bt({__name:"Toaster",props:{message:{type:String,required:!0},type:{type:String,default:""},duration:{type:[Number,Boolean],default:5e3},onClick:{type:Function,default:()=>{}}},setup(t){const e=t,r=Se(null),n=Se(!0),o=e.duration!==!1?new dq(d,e.duration):null;function i(){e.onClick.apply(null,arguments),d()}function a(u){o&&(u?o.pause():o.resume())}function c(){o&&o.stop()}function d(){c(),n.value=!1}return(u,f)=>(te(),Hr(Vy,{to:"body"},[n.value?(te(),ie("div",uq,[V("div",{ref_key:"root",ref:r,class:Vn(["v-toast",t.type]),onMouseover:f[0]||(f[0]=g=>a(!0)),onMouseleave:f[1]||(f[1]=g=>a(!1)),onClick:i,role:"alert"},Ne(t.message),35)])):Tt("",!0)]))}}),vi=(t,e="")=>{rg(No(fq,{message:t,type:e}),document.createElement("div"))};function zC(){return window.location.host}function pq(){return{"Content-Type":"multipart/form-data","c-id":localStorage.getItem("client_id")??""}}function hq(){return`${window.location.protocol==="http:"?"ws":"wss"}://${zC()}`}function hs(){return`${window.location.protocol}//${zC()}`}const _v="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",mq=()=>{const t=crypto.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;const e=vq(t).toLowerCase();return`${e.substring(0,8)}-${e.substring(8,12)}-${e.substring(12,16)}-${e.substring(16,20)}-${e.substring(20)}`},qg=()=>{const t=yq("0123456789abcdef",_v,mq().toLowerCase().replace(/-/g,"")),e=Math.ceil(Math.log(2**128)/Math.log(_v.length));return t.padStart(e,_v[0])},vq=t=>[...t].map(e=>e.toString(16).padStart(2,"0")).join(""),gq=t=>{const e=new Uint8Array(t.length);for(let r=0;r/[\u3400-\u9FBF]/.test(t);function Bg(t){return t?btoa(encodeURIComponent(t)):""}function _q(t){try{return decodeURIComponent(atob(t))}catch{return t}}function yq(t,e,r){let n,o,i,a=[],c=t.length,d=e.length,u=r.length,f="";if(t===e)return r;for(n=0;n=d?(a[i++]=parseInt((o/d).toString(),10),o=o%d):i>0&&(a[i++]=0);u=i,f=e.slice(o,o+1).concat(f)}while(i!==0);return f}const bq=/(\b(((https?|ftp):\/\/)|www.)[A-Z0-9+&@#\/%?=~_|!:,.;-]*[-A-Z0-9+&@#\/%=~_|])/gim,xq=/(\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6})/gim;function wq(t){let e=t?String(t).replace(/<[^>]+>/gm,""):"";return e=e.replace(bq,'$1'),e=e.replace(xq,'$1'),e.replace(/\n\r?/g,"
")}var ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Eq(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var qC={exports:{}};const Tq={},kq=Object.freeze(Object.defineProperty({__proto__:null,default:Tq},Symbol.toStringTag,{value:"Module"})),Cq=Eq(kq);(function(t){var e={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(h){this.toString=function(){return"CORRUPT: "+this.message},this.message=h},invalid:function(h){this.toString=function(){return"INVALID: "+this.message},this.message=h},bug:function(h){this.toString=function(){return"BUG: "+this.message},this.message=h},notReady:function(h){this.toString=function(){return"NOT READY: "+this.message},this.message=h}}};e.cipher.aes=function(h){this.s[0][0][0]||this.O();var m,y,v,x,E=this.s[0][4],T=this.s[1];m=h.length;var C=1;if(m!==4&&m!==6&&m!==8)throw new e.exception.invalid("invalid aes key size");for(this.b=[v=h.slice(0),x=[]],h=m;h<4*m+28;h++)y=v[h-1],(h%m===0||m===8&&h%m===4)&&(y=E[y>>>24]<<24^E[y>>16&255]<<16^E[y>>8&255]<<8^E[y&255],h%m===0&&(y=y<<8^y>>>24^C<<24,C=C<<1^283*(C>>7))),v[h]=v[h-m]^y;for(m=0;h;m++,h--)y=v[m&3?h:h-4],x[m]=4>=h||4>m?y:T[0][E[y>>>24]]^T[1][E[y>>16&255]]^T[2][E[y>>8&255]]^T[3][E[y&255]]},e.cipher.aes.prototype={encrypt:function(h){return r(this,h,0)},decrypt:function(h){return r(this,h,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var h=this.s[0],m=this.s[1],y=h[4],v=m[4],x,E,T,C=[],A=[],L,R,D,q;for(x=0;256>x;x++)A[(C[x]=x<<1^283*(x>>7))^x]=x;for(E=T=0;!y[E];E^=L||1,T=A[T]||1)for(D=T^T<<1^T<<2^T<<3^T<<4,D=D>>8^D&255^99,y[E]=D,v[D]=E,R=C[x=C[L=C[E]]],q=16843009*R^65537*x^257*L^16843008*E,R=257*C[D]^16843008*D,x=0;4>x;x++)h[x][E]=R=R<<24^R>>>8,m[x][D]=q=q<<24^q>>>8;for(x=0;5>x;x++)h[x]=h[x].slice(0),m[x]=m[x].slice(0)}};function r(h,m,y){if(m.length!==4)throw new e.exception.invalid("invalid aes block size");var v=h.b[y],x=m[0]^v[0],E=m[y?3:1]^v[1],T=m[2]^v[2];m=m[y?1:3]^v[3];var C,A,L,R=v.length/4-2,D,q=4,H=[0,0,0,0];C=h.s[y],h=C[0];var U=C[1],ce=C[2],Ae=C[3],Le=C[4];for(D=0;D>>24]^U[E>>16&255]^ce[T>>8&255]^Ae[m&255]^v[q],A=h[E>>>24]^U[T>>16&255]^ce[m>>8&255]^Ae[x&255]^v[q+1],L=h[T>>>24]^U[m>>16&255]^ce[x>>8&255]^Ae[E&255]^v[q+2],m=h[m>>>24]^U[x>>16&255]^ce[E>>8&255]^Ae[T&255]^v[q+3],q+=4,x=C,E=A,T=L;for(D=0;4>D;D++)H[y?3&-D:D]=Le[x>>>24]<<24^Le[E>>16&255]<<16^Le[T>>8&255]<<8^Le[m&255]^v[q++],C=x,x=E,E=T,T=m,m=C;return H}e.bitArray={bitSlice:function(h,m,y){return h=e.bitArray.$(h.slice(m/32),32-(m&31)).slice(1),y===void 0?h:e.bitArray.clamp(h,y-m)},extract:function(h,m,y){var v=Math.floor(-m-y&31);return((m+y-1^m)&-32?h[m/32|0]<<32-v^h[m/32+1|0]>>>v:h[m/32|0]>>>v)&(1<>m-1,1)),h},partial:function(h,m,y){return h===32?m:(y?m|0:m<<32-h)+1099511627776*h},getPartial:function(h){return Math.round(h/1099511627776)||32},equal:function(h,m){if(e.bitArray.bitLength(h)!==e.bitArray.bitLength(m))return!1;var y=0,v;for(v=0;v>>m),y=h[x]<<32-m;return x=h.length?h[h.length-1]:0,h=e.bitArray.getPartial(x),v.push(e.bitArray.partial(m+h&31,32>>24|y>>>8&65280|(y&65280)<<8|y<<24;return h}},e.codec.utf8String={fromBits:function(h){var m="",y=e.bitArray.bitLength(h),v,x;for(v=0;v>>8>>>8>>>8),x<<=8;return decodeURIComponent(escape(m))},toBits:function(h){h=unescape(encodeURIComponent(h));var m=[],y,v=0;for(y=0;y>>T)>>>x),TR){if(!m)try{return e.codec.base32hex.toBits(h)}catch{}throw new e.exception.invalid("this isn't "+D+"!")}C>x?(C-=x,E.push(L^R>>>C),L=R<>>x)>>>26),6>x?(T=h[y]<<6-x,x+=26,y++):(T<<=6,x-=6);for(;v.length&3&&!m;)v+="=";return v},toBits:function(h,m){h=h.replace(/\s|=/g,"");var y=[],v,x=0,E=e.codec.base64.B,T=0,C;for(m&&(E=E.substr(0,62)+"-_"),v=0;vC)throw new e.exception.invalid("this isn't base64!");26>>x),T=C<<32-x):(x+=6,T^=C<<32-x)}return x&56&&y.push(e.bitArray.partial(x&56,T,1)),y}},e.codec.base64url={fromBits:function(h){return e.codec.base64.fromBits(h,1,1)},toBits:function(h){return e.codec.base64.toBits(h,1)}},e.hash.sha256=function(h){this.b[0]||this.O(),h?(this.F=h.F.slice(0),this.A=h.A.slice(0),this.l=h.l):this.reset()},e.hash.sha256.hash=function(h){return new e.hash.sha256().update(h).finalize()},e.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(h){typeof h=="string"&&(h=e.codec.utf8String.toBits(h));var m,y=this.A=e.bitArray.concat(this.A,h);if(m=this.l,h=this.l=m+e.bitArray.bitLength(h),9007199254740991m;y++){for(x=!0,v=2;v*v<=y;v++)if(y%v===0){x=!1;break}x&&(8>m&&(this.Y[m]=h(Math.pow(y,.5))),this.b[m]=h(Math.pow(y,1/3)),m++)}}};function n(h,m){var y,v,x,E=h.F,T=h.b,C=E[0],A=E[1],L=E[2],R=E[3],D=E[4],q=E[5],H=E[6],U=E[7];for(y=0;64>y;y++)16>y?v=m[y]:(v=m[y+1&15],x=m[y+14&15],v=m[y&15]=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(x>>>17^x>>>19^x>>>10^x<<15^x<<13)+m[y&15]+m[y+9&15]|0),v=v+U+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(H^D&(q^H))+T[y],U=H,H=q,q=D,D=R+v|0,R=L,L=A,A=C,C=v+(A&L^R&(A^L))+(A>>>2^A>>>13^A>>>22^A<<30^A<<19^A<<10)|0;E[0]=E[0]+C|0,E[1]=E[1]+A|0,E[2]=E[2]+L|0,E[3]=E[3]+R|0,E[4]=E[4]+D|0,E[5]=E[5]+q|0,E[6]=E[6]+H|0,E[7]=E[7]+U|0}e.mode.ccm={name:"ccm",G:[],listenProgress:function(h){e.mode.ccm.G.push(h)},unListenProgress:function(h){h=e.mode.ccm.G.indexOf(h),-1A)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(E=2;4>E&&L>>>8*E;E++);return E<15-A&&(E=15-A),y=C.clamp(y,8*(15-E)),m=e.mode.ccm.V(h,m,y,v,x,E),T=e.mode.ccm.C(h,T,y,m,x,E),C.concat(T.data,T.tag)},decrypt:function(h,m,y,v,x){x=x||64,v=v||[];var E=e.bitArray,T=E.bitLength(y)/8,L=E.bitLength(m),C=E.clamp(m,L-x),A=E.bitSlice(m,L-x),L=(L-x)/8;if(7>T)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(m=2;4>m&&L>>>8*m;m++);if(m<15-T&&(m=15-T),y=E.clamp(y,8*(15-m)),C=e.mode.ccm.C(h,C,y,A,x,m),h=e.mode.ccm.V(h,C.data,y,v,x,m),!E.equal(C.tag,h))throw new e.exception.corrupt("ccm: tag doesn't match");return C.data},na:function(h,m,y,v,x,E){var T=[],C=e.bitArray,A=C.i;if(v=[C.partial(8,(m.length?64:0)|v-2<<2|E-1)],v=C.concat(v,y),v[3]|=x,v=h.encrypt(v),m.length)for(y=C.bitLength(m)/8,65279>=y?T=[C.partial(16,y)]:4294967295>=y&&(T=C.concat([C.partial(16,65534)],[y])),T=C.concat(T,m),m=0;mx||16R&&(e.mode.ccm.fa(T/A),R+=D),y[3]++,x=h.encrypt(y),m[T]^=x[0],m[T+1]^=x[1],m[T+2]^=x[2],m[T+3]^=x[3];return{tag:v,data:C.clamp(m,L)}}},e.mode.ocb2={name:"ocb2",encrypt:function(h,m,y,v,x,E){if(e.bitArray.bitLength(y)!==128)throw new e.exception.invalid("ocb iv must be 128 bits");var T,C=e.mode.ocb2.S,A=e.bitArray,L=A.i,R=[0,0,0,0];y=C(h.encrypt(y));var D,q=[];for(v=v||[],x=x||64,T=0;T+4x.bitLength(y)&&(C=E(C,v(C)),y=x.concat(y,[-2147483648,0,0,0])),T=E(T,y),h.encrypt(E(v(E(C,v(C))),T))},S:function(h){return[h[0]<<1^h[1]>>>31,h[1]<<1^h[2]>>>31,h[2]<<1^h[3]>>>31,h[3]<<1^135*(h[0]>>>31)]}},e.mode.gcm={name:"gcm",encrypt:function(h,m,y,v,x){var E=m.slice(0);return m=e.bitArray,v=v||[],h=e.mode.gcm.C(!0,h,E,v,y,x||128),m.concat(h.data,h.tag)},decrypt:function(h,m,y,v,x){var E=m.slice(0),T=e.bitArray,C=T.bitLength(E);if(x=x||128,v=v||[],x<=C?(m=T.bitSlice(E,C-x),E=T.bitSlice(E,0,C-x)):(m=E,E=[]),h=e.mode.gcm.C(!1,h,E,v,y,x),!T.equal(h.tag,m))throw new e.exception.corrupt("gcm: tag doesn't match");return h.data},ka:function(h,m){var y,v,x,E,T,C=e.bitArray.i;for(x=[0,0,0,0],E=m.slice(0),y=0;128>y;y++){for((v=(h[Math.floor(y/32)]&1<<31-y%32)!==0)&&(x=C(x,E)),T=(E[3]&1)!==0,v=3;0>>1|(E[v-1]&1)<<31;E[0]>>>=1,T&&(E[0]^=-520093696)}return x},j:function(h,m,y){var v,x=y.length;for(m=m.slice(0),v=0;vx&&(h=m.hash(h)),v=0;vv||0>y)throw new e.exception.invalid("invalid params to pbkdf2");typeof h=="string"&&(h=e.codec.utf8String.toBits(h)),typeof m=="string"&&(m=e.codec.utf8String.toBits(m)),x=x||e.misc.hmac,h=new x(h);var E,T,C,A,L=[],R=e.bitArray;for(A=1;32*L.length<(v||1);A++){for(x=E=h.encrypt(R.concat(m,[A])),T=1;TT;T++)x.push(4294967296*Math.random()|0);for(T=0;T=1<this.o&&(this.o=E),this.P++,this.b=e.hash.sha256.hash(this.b.concat(x)),this.L=new e.cipher.aes(this.b),v=0;4>v&&(this.h[v]=this.h[v]+1|0,!this.h[v]);v++);}for(v=0;v>>1;this.c[T].update([v,this.N++,2,m,E,h.length].concat(h))}break;case"string":m===void 0&&(m=h.length),this.c[T].update([v,this.N++,3,m,E,h.length]),this.c[T].update(h);break;default:A=1}if(A)throw new e.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[T]+=m,this.f+=m,C===this.u&&(this.isReady()!==this.u&&o("seeded",Math.max(this.o,this.f)),o("progress",this.getProgress()))},isReady:function(h){return h=this.T[h!==void 0?h:this.M],this.o&&this.o>=h?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=h?this.J|this.u:this.u},getProgress:function(h){return h=this.T[h||this.M],this.o>=h||this.f>h?1:this.f/h},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:d(this,this.ma),mouseCollector:d(this,this.oa),keyboardCollector:d(this,this.la),accelerometerCollector:d(this,this.ea),touchCollector:d(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new e.exception.bug("can't attach event");this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(h,m){this.K[h][this.ga++]=m},removeEventListener:function(h,m){var y,v,x=this.K[h],E=[];for(v in x)x.hasOwnProperty(v)&&x[v]===m&&E.push(v);for(y=0;ym&&(h.h[m]=h.h[m]+1|0,!h.h[m]);m++);return h.L.encrypt(h.h)}function d(h,m){return function(){m.apply(h,arguments)}}e.random=new e.prng(6);e:try{var u,f,g,_;if(_=t.exports){var b;try{b=Cq}catch{b=null}_=f=b}if(_&&f.randomBytes)u=f.randomBytes(128),u=new Uint32Array(new Uint8Array(u).buffer),e.random.addEntropy(u,1024,"crypto['randomBytes']");else if(typeof window<"u"&&typeof Uint32Array<"u"){if(g=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(g);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(g);else break e;e.random.addEntropy(g,1024,"crypto['getRandomValues']")}}catch(h){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(h))}e.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(h,m,y,v){y=y||{},v=v||{};var x=e.json,E=x.g({iv:e.random.randomWords(4,0)},x.defaults),T;if(x.g(E,y),y=E.adata,typeof E.salt=="string"&&(E.salt=e.codec.base64.toBits(E.salt)),typeof E.iv=="string"&&(E.iv=e.codec.base64.toBits(E.iv)),!e.mode[E.mode]||!e.cipher[E.cipher]||typeof h=="string"&&100>=E.iter||E.ts!==64&&E.ts!==96&&E.ts!==128||E.ks!==128&&E.ks!==192&&E.ks!==256||2>E.iv.length||4=m.iter||m.ts!==64&&m.ts!==96&&m.ts!==128||m.ks!==128&&m.ks!==192&&m.ks!==256||!m.iv||2>m.iv.length||49007199254740991)throw new zt.exception.invalid("Cannot hash more than 2^53 - 1 bits");if(typeof Uint32Array<"u"){const i=new Uint32Array(r);let a=0;for(e=1024+n-(1024+n&1023);e<=o;e+=1024)this._block(i.subarray(32*a,32*(a+1))),a+=1;r.splice(0,32*a)}else for(e=1024+n-(1024+n&1023);e<=o;e+=1024)this._block(r.splice(0,32));return this},finalize:function(){let t,e=this._buffer,r=this._h;for(e=zt.bitArray.concat(e,[zt.bitArray.partial(1,1)]),t=e.length+4;t&31;t++)e.push(0);for(e.push(0),e.push(0),e.push(Math.floor(this._length/4294967296)),e.push(this._length|0);e.length;)this._block(e.splice(0,32));return this.reset(),r},_init:[],_initr:[12372232,13281083,9762859,1914609,15106769,4090911,4308331,8266105],_key:[],_keyr:[2666018,15689165,5061423,9034684,4764984,380953,1658779,7176472,197186,7368638,14987916,16757986,8096111,1480369,13046325,6891156,15813330,5187043,9229749,11312229,2818677,10937475,4324308,1135541,6741931,11809296,16458047,15666916,11046850,698149,229999,945776,13774844,2541862,12856045,9810911,11494366,7844520,15576806,8533307,15795044,4337665,16291729,5553712,15684120,6662416,7413802,12308920,13816008,4303699,9366425,10176680,13195875,4295371,6546291,11712675,15708924,1519456,15772530,6568428,6495784,8568297,13007125,7492395,2515356,12632583,14740254,7262584,1535930,13146278,16321966,1853211,294276,13051027,13221564,1051980,4080310,6651434,14088940,4675607],_precompute:function(){let t=0,e=2,r,n;function o(a){return(a-Math.floor(a))*4294967296|0}function i(a){return(a-Math.floor(a))*1099511627776&255}for(;t<80;e++){for(n=!0,r=2;r*r<=e;r++)if(e%r===0){n=!1;break}n&&(t<8&&(this._init[t*2]=o(Math.pow(e,1/2)),this._init[t*2+1]=i(Math.pow(e,1/2))<<24|this._initr[t]),this._key[t*2]=o(Math.pow(e,1/3)),this._key[t*2+1]=i(Math.pow(e,1/3))<<24|this._keyr[t],t++)}},_block:function(t){let e,r,n,o=this._h,i=this._key,a=o[0],c=o[1],d=o[2],u=o[3],f=o[4],g=o[5],_=o[6],b=o[7],h=o[8],m=o[9],y=o[10],v=o[11],x=o[12],E=o[13],T=o[14],C=o[15],A;if(typeof Uint32Array<"u"){A=Array(160);for(let Re=0;Re<32;Re++)A[Re]=t[Re]}else A=t;let L=a,R=c,D=d,q=u,H=f,U=g,ce=_,Ae=b,Le=h,Te=m,Ie=y,Pe=v,Ce=x,de=E,we=T,ke=C;for(e=0;e<80;e++){if(e<16)r=A[e*2],n=A[e*2+1];else{const Y=A[(e-15)*2],se=A[(e-15)*2+1],ye=(se<<31|Y>>>1)^(se<<24|Y>>>8)^Y>>>7,X=(Y<<31|se>>>1)^(Y<<24|se>>>8)^(Y<<25|se>>>7),ee=A[(e-2)*2],fe=A[(e-2)*2+1],j=(fe<<13|ee>>>19)^(ee<<3|fe>>>29)^ee>>>6,z=(ee<<13|fe>>>19)^(fe<<3|ee>>>29)^(ee<<26|fe>>>6),oe=A[(e-7)*2],be=A[(e-7)*2+1],Fe=A[(e-16)*2],Ue=A[(e-16)*2+1];n=X+be,r=ye+oe+(n>>>0>>0?1:0),n+=z,r+=j+(n>>>0>>0?1:0),n+=Ue,r+=Fe+(n>>>0>>0?1:0)}A[e*2]=r|=0,A[e*2+1]=n|=0;const Re=Le&Ie^~Le&Ce,He=Te&Pe^~Te&de,ze=L&D^L&H^D&H,We=R&q^R&U^q&U,J=(R<<4|L>>>28)^(L<<30|R>>>2)^(L<<25|R>>>7),me=(L<<4|R>>>28)^(R<<30|L>>>2)^(R<<25|L>>>7),ve=(Te<<18|Le>>>14)^(Te<<14|Le>>>18)^(Le<<23|Te>>>9),$e=(Le<<18|Te>>>14)^(Le<<14|Te>>>18)^(Te<<23|Le>>>9),Oe=i[e*2],M=i[e*2+1];let k=ke+$e,I=we+ve+(k>>>0>>0?1:0);k+=He,I+=Re+(k>>>0>>0?1:0),k+=M,I+=Oe+(k>>>0>>0?1:0),k=k+n|0,I+=r+(k>>>0>>0?1:0);const N=me+We,W=J+ze+(N>>>0>>0?1:0);we=Ce,ke=de,Ce=Ie,de=Pe,Ie=Le,Pe=Te,Te=Ae+k|0,Le=ce+I+(Te>>>0>>0?1:0)|0,ce=H,Ae=U,H=D,U=q,D=L,q=R,R=k+N|0,L=I+W+(R>>>0>>0?1:0)|0}c=o[1]=c+R|0,o[0]=a+L+(c>>>0>>0?1:0)|0,u=o[3]=u+q|0,o[2]=d+D+(u>>>0>>0?1:0)|0,g=o[5]=g+U|0,o[4]=f+H+(g>>>0>>0?1:0)|0,b=o[7]=b+Ae|0,o[6]=_+ce+(b>>>0>>0?1:0)|0,m=o[9]=m+Te|0,o[8]=h+Le+(m>>>0>>0?1:0)|0,v=o[11]=v+Pe|0,o[10]=y+Ie+(v>>>0>>0?1:0)|0,E=o[13]=E+de|0,o[12]=x+Ce+(E>>>0>>0?1:0)|0,C=o[15]=C+ke|0,o[14]=T+we+(C>>>0>>0?1:0)|0}};zt.hash.sha512;function Aq(t){let e,r,n,o,i;if(t.length===0)return new ArrayBuffer(0);if(n=jf.bitArray.bitLength(t)/8,jf.bitArray.bitLength(t)%8!==0)throw new jf.exception.invalid("Invalid bit size, must be divisble by 8 to fit in an arraybuffer correctly");for(o=new DataView(new ArrayBuffer(t.length*4)),r=0;r{if("locale"in c&&"resource"in c){const{locale:d,resource:u}=c;d?(a[d]=a[d]||{},Qc(u,a[d])):Qc(u,a)}else Qe(c)&&Qc(JSON.parse(c),a)}),o==null&&i)for(const c in a)pb(a,c)&&zg(a[c]);return a}const Ef=t=>!Dt(t)||wr(t);function Qc(t,e){if(Ef(t)||Ef(e))throw Qn(In.INVALID_VALUE);for(const r in t)pb(t,r)&&(Ef(t[r])||Ef(e[r])?e[r]=t[r]:Qc(t[r],e[r]))}function Bz(t){return t.type}function Uz(t,e,r){let n=Dt(e.messages)?e.messages:{};"__i18nGlobal"in r&&(n=LC(t.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const o=Object.keys(n);o.length&&o.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(Dt(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(a=>{t.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(Dt(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(a=>{t.mergeNumberFormat(a,e.numberFormats[a])})}}}function m5(t){return Be(Md,null,t,0)}let v5=0;function g5(t){return(e,r,n,o)=>t(r,n,Wo()||void 0,o)}function MC(t={},e){const{__root:r,__injectWithOption:n}=t,o=r===void 0;let i=nr(t.inheritLocale)?t.inheritLocale:!0;const a=Se(r&&i?r.locale.value:Qe(t.locale)?t.locale:vb),c=Se(r&&i?r.fallbackLocale.value:Qe(t.fallbackLocale)||wr(t.fallbackLocale)||Et(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),d=Se(LC(a.value,t)),u=Se(Et(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),f=Se(Et(t.numberFormats)?t.numberFormats:{[a.value]:{}});let g=r?r.missingWarn:nr(t.missingWarn)||hp(t.missingWarn)?t.missingWarn:!0,_=r?r.fallbackWarn:nr(t.fallbackWarn)||hp(t.fallbackWarn)?t.fallbackWarn:!0,b=r?r.fallbackRoot:nr(t.fallbackRoot)?t.fallbackRoot:!0,h=!!t.fallbackFormat,m=Br(t.missing)?t.missing:null,y=Br(t.missing)?g5(t.missing):null,v=Br(t.postTranslation)?t.postTranslation:null,x=r?r.warnHtmlMessage:nr(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const T=r?r.modifiers:Et(t.modifiers)?t.modifiers:{};let C=t.pluralRules||r&&r.pluralRules,A;A=(()=>{o&&a5(null);const j={version:Fz,locale:a.value,fallbackLocale:c.value,messages:d.value,modifiers:T,pluralRules:C,missing:y===null?void 0:y,missingWarn:g,fallbackWarn:_,fallbackFormat:h,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:x,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};j.datetimeFormats=u.value,j.numberFormats=f.value,j.__datetimeFormatters=Et(A)?A.__datetimeFormatters:void 0,j.__numberFormatters=Et(A)?A.__numberFormatters:void 0;const z=Iz(j);return o&&a5(z),z})(),Oc(A,a.value,c.value);function R(){return[a.value,c.value,d.value,u.value,f.value]}const D=St({get:()=>a.value,set:j=>{a.value=j,A.locale=a.value}}),q=St({get:()=>c.value,set:j=>{c.value=j,A.fallbackLocale=c.value,Oc(A,a.value,j)}}),H=St(()=>d.value),U=St(()=>u.value),ce=St(()=>f.value);function Ae(){return Br(v)?v:null}function Le(j){v=j,A.postTranslation=j}function Te(){return m}function Ie(j){j!==null&&(y=g5(j)),m=j,A.missing=y}const Pe=(j,z,oe,be,Fe,Ue)=>{R();let dt;try{o||(A.fallbackContext=r?Sz():void 0),dt=j(A)}finally{o||(A.fallbackContext=void 0)}if(Ir(dt)&&dt===ih){const[Gt,gr]=z();return r&&b?be(r):Fe(Gt)}else{if(Ue(dt))return dt;throw Qn(In.UNEXPECTED_RETURN_TYPE)}};function Ce(...j){return Pe(z=>Reflect.apply(d5,null,[z,...j]),()=>Pg(...j),"translate",z=>Reflect.apply(z.t,z,[...j]),z=>z,z=>Qe(z))}function de(...j){const[z,oe,be]=j;if(be&&!Dt(be))throw Qn(In.INVALID_ARGUMENT);return Ce(z,oe,nn({resolvedMessage:!0},be||{}))}function we(...j){return Pe(z=>Reflect.apply(u5,null,[z,...j]),()=>Rg(...j),"datetime format",z=>Reflect.apply(z.d,z,[...j]),()=>n5,z=>Qe(z))}function ke(...j){return Pe(z=>Reflect.apply(p5,null,[z,...j]),()=>Lg(...j),"number format",z=>Reflect.apply(z.n,z,[...j]),()=>n5,z=>Qe(z))}function Re(j){return j.map(z=>Qe(z)||Ir(z)||nr(z)?m5(String(z)):z)}const ze={normalize:Re,interpolate:j=>j,type:"vnode"};function We(...j){return Pe(z=>{let oe;const be=z;try{be.processor=ze,oe=Reflect.apply(d5,null,[be,...j])}finally{be.processor=null}return oe},()=>Pg(...j),"translate",z=>z[Mg](...j),z=>[m5(z)],z=>wr(z))}function J(...j){return Pe(z=>Reflect.apply(p5,null,[z,...j]),()=>Lg(...j),"number format",z=>z[Fg](...j),()=>[],z=>Qe(z)||wr(z))}function me(...j){return Pe(z=>Reflect.apply(u5,null,[z,...j]),()=>Rg(...j),"datetime format",z=>z[Dg](...j),()=>[],z=>Qe(z)||wr(z))}function ve(j){C=j,A.pluralRules=C}function $e(j,z){const oe=Qe(z)?z:a.value,be=k(oe);return A.messageResolver(be,j)!==null}function Oe(j){let z=null;const oe=bC(A,c.value,a.value);for(let be=0;be{i&&(a.value=j,A.locale=j,Oc(A,a.value,c.value))}),Vt(r.fallbackLocale,j=>{i&&(c.value=j,A.fallbackLocale=j,Oc(A,a.value,c.value))}));const fe={id:v5,locale:D,fallbackLocale:q,get inheritLocale(){return i},set inheritLocale(j){i=j,j&&r&&(a.value=r.locale.value,c.value=r.fallbackLocale.value,Oc(A,a.value,c.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:H,get modifiers(){return T},get pluralRules(){return C||{}},get isGlobal(){return o},get missingWarn(){return g},set missingWarn(j){g=j,A.missingWarn=g},get fallbackWarn(){return _},set fallbackWarn(j){_=j,A.fallbackWarn=_},get fallbackRoot(){return b},set fallbackRoot(j){b=j},get fallbackFormat(){return h},set fallbackFormat(j){h=j,A.fallbackFormat=h},get warnHtmlMessage(){return x},set warnHtmlMessage(j){x=j,A.warnHtmlMessage=j},get escapeParameter(){return E},set escapeParameter(j){E=j,A.escapeParameter=j},t:Ce,getLocaleMessage:k,setLocaleMessage:I,mergeLocaleMessage:N,getPostTranslationHandler:Ae,setPostTranslationHandler:Le,getMissingHandler:Te,setMissingHandler:Ie,[zz]:ve};return fe.datetimeFormats=U,fe.numberFormats=ce,fe.rt=de,fe.te=$e,fe.tm=M,fe.d=we,fe.n=ke,fe.getDateTimeFormat=W,fe.setDateTimeFormat=Y,fe.mergeDateTimeFormat=se,fe.getNumberFormat=ye,fe.setNumberFormat=X,fe.mergeNumberFormat=ee,fe[qz]=n,fe[Mg]=We,fe[Dg]=me,fe[Fg]=J,fe}const _b={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function Vz({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,o)=>[...n,...o.type===Pt?o.children:[o]],[]):e.reduce((r,n)=>{const o=t[n];return o&&(r[n]=o()),r},{})}function DC(t){return Pt}const jz=Bt({name:"i18n-t",props:nn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Ir(t)||!isNaN(t)}},_b),setup(t,e){const{slots:r,attrs:n}=e,o=t.i18n||$n({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(r).filter(g=>g!=="_"),a={};t.locale&&(a.locale=t.locale),t.plural!==void 0&&(a.plural=Qe(t.plural)?+t.plural:t.plural);const c=Vz(e,i),d=o[Mg](t.keypath,c,a),u=nn({},n),f=Qe(t.tag)||Dt(t.tag)?t.tag:DC();return No(f,u,d)}}}),_5=jz;function Hz(t){return wr(t)&&!Qe(t[0])}function FC(t,e,r,n){const{slots:o,attrs:i}=e;return()=>{const a={part:!0};let c={};t.locale&&(a.locale=t.locale),Qe(t.format)?a.key=t.format:Dt(t.format)&&(Qe(t.format.key)&&(a.key=t.format.key),c=Object.keys(t.format).reduce((_,b)=>r.includes(b)?nn({},_,{[b]:t.format[b]}):_,{}));const d=n(t.value,a,c);let u=[a.key];wr(d)?u=d.map((_,b)=>{const h=o[_.type],m=h?h({[_.type]:_.value,index:b,parts:d}):[_.value];return Hz(m)&&(m[0].key=`${_.type}-${b}`),m}):Qe(d)&&(u=[d]);const f=nn({},i),g=Qe(t.tag)||Dt(t.tag)?t.tag:DC();return No(g,f,u)}}const Wz=Bt({name:"i18n-n",props:nn({value:{type:Number,required:!0},format:{type:[String,Object]}},_b),setup(t,e){const r=t.i18n||$n({useScope:"parent",__useComponent:!0});return FC(t,e,OC,(...n)=>r[Fg](...n))}}),y5=Wz,Gz=Bt({name:"i18n-d",props:nn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},_b),setup(t,e){const r=t.i18n||$n({useScope:"parent",__useComponent:!0});return FC(t,e,$C,(...n)=>r[Dg](...n))}}),b5=Gz;function Qz(t,e){const r=t;if(t.mode==="composition")return r.__getInstance(e)||t.global;{const n=r.__getInstance(e);return n!=null?n.__composer:t.global.__composer}}function Kz(t){const e=a=>{const{instance:c,modifiers:d,value:u}=a;if(!c||!c.$)throw Qn(In.UNEXPECTED_ERROR);const f=Qz(t,c.$),g=x5(u);return[Reflect.apply(f.t,f,[...w5(g)]),f]};return{created:(a,c)=>{const[d,u]=e(c);Ig&&t.global===u&&(a.__i18nWatcher=Vt(u.locale,()=>{c.instance&&c.instance.$forceUpdate()})),a.__composer=u,a.textContent=d},unmounted:a=>{Ig&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:c})=>{if(a.__composer){const d=a.__composer,u=x5(c);a.textContent=Reflect.apply(d.t,d,[...w5(u)])}},getSSRProps:a=>{const[c]=e(a);return{textContent:c}}}}function x5(t){if(Qe(t))return{path:t};if(Et(t)){if(!("path"in t))throw Qn(In.REQUIRED_VALUE,"path");return t}else throw Qn(In.INVALID_VALUE)}function w5(t){const{path:e,locale:r,args:n,choice:o,plural:i}=t,a={},c=n||{};return Qe(r)&&(a.locale=r),Ir(o)&&(a.plural=o),Ir(i)&&(a.plural=i),[e,c,a]}function Yz(t,e,...r){const n=Et(r[0])?r[0]:{},o=!!n.useI18nComponentName;(nr(n.globalInstall)?n.globalInstall:!0)&&([o?"i18n":_5.name,"I18nT"].forEach(a=>t.component(a,_5)),[y5.name,"I18nN"].forEach(a=>t.component(a,y5)),[b5.name,"I18nD"].forEach(a=>t.component(a,b5))),t.directive("t",Kz(e))}const Zz=Ta("global-vue-i18n");function Xz(t={},e){const r=nr(t.globalInjection)?t.globalInjection:!0,n=!0,o=new Map,[i,a]=Jz(t),c=Ta("");function d(g){return o.get(g)||null}function u(g,_){o.set(g,_)}function f(g){o.delete(g)}{const g={get mode(){return"composition"},get allowComposition(){return n},async install(_,...b){if(_.__VUE_I18N_SYMBOL__=c,_.provide(_.__VUE_I18N_SYMBOL__,g),Et(b[0])){const y=b[0];g.__composerExtend=y.__composerExtend,g.__vueI18nExtend=y.__vueI18nExtend}let h=null;r&&(h=sq(_,g.global)),Yz(_,g,...b);const m=_.unmount;_.unmount=()=>{h&&h(),g.dispose(),m()}},get global(){return a},dispose(){i.stop()},__instances:o,__getInstance:d,__setInstance:u,__deleteInstance:f};return g}}function $n(t={}){const e=Wo();if(e==null)throw Qn(In.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Qn(In.NOT_INSTALLED);const r=eq(e),n=rq(r),o=Bz(e),i=tq(t,o);if(i==="global")return Uz(n,t,o),n;if(i==="parent"){let d=nq(r,e,t.__useComponent);return d==null&&(d=n),d}const a=r;let c=a.__getInstance(e);if(c==null){const d=nn({},t);"__i18n"in o&&(d.__i18n=o.__i18n),n&&(d.__root=n),c=MC(d),a.__composerExtend&&(c[Ng]=a.__composerExtend(c)),iq(a,e,c),a.__setInstance(e,c)}return c}function Jz(t,e,r){const n=Ty();{const o=n.run(()=>MC(t));if(o==null)throw Qn(In.UNEXPECTED_ERROR);return[n,o]}}function eq(t){{const e=rn(t.isCE?Zz:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Qn(t.isCE?In.NOT_INSTALLED_WITH_PROVIDE:In.UNEXPECTED_ERROR);return e}}function tq(t,e){return oh(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function rq(t){return t.mode==="composition"?t.global:t.global.__composer}function nq(t,e,r=!1){let n=null;const o=e.root;let i=oq(e,r);for(;i!=null;){const a=t;if(t.mode==="composition"&&(n=a.__getInstance(i)),n!=null||o===i)break;i=i.parent}return n}function oq(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function iq(t,e,r){mn(()=>{},e),Hl(()=>{const n=r;t.__deleteInstance(e);const o=n[Ng];o&&(o(),delete n[Ng])},e)}const aq=["locale","fallbackLocale","availableLocales"],E5=["t","rt","d","n","tm","te"];function sq(t,e){const r=Object.create(null);return aq.forEach(o=>{const i=Object.getOwnPropertyDescriptor(e,o);if(!i)throw Qn(In.UNEXPECTED_ERROR);const a=Rt(i.value)?{get(){return i.value.value},set(c){i.value.value=c}}:{get(){return i.get&&i.get()}};Object.defineProperty(r,o,a)}),t.config.globalProperties.$i18n=r,E5.forEach(o=>{const i=Object.getOwnPropertyDescriptor(e,o);if(!i||!i.value)throw Qn(In.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${o}`,i)}),()=>{delete t.config.globalProperties.$i18n,E5.forEach(o=>{delete t.config.globalProperties[`$${o}`]})}}Nz();__INTLIFY_JIT_COMPILATION__?i5(Pz):i5(Oz);Cz(uz);Az(bC);function lq(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(o){o(r)}),(n=t.get("*"))&&n.slice().map(function(o){o(e,r)})}}}const mt=lq();class cq{constructor(e,r){kr(this,"startedAt");kr(this,"callback");kr(this,"delay");kr(this,"timer");this.startedAt=Date.now(),this.callback=e,this.delay=r,this.timer=setTimeout(e,r)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.stop(),this.startedAt=Date.now(),this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const dq={key:0,class:"toast-container"},uq=Bt({__name:"Toaster",props:{message:{type:String,required:!0},type:{type:String,default:""},duration:{type:[Number,Boolean],default:5e3},onClick:{type:Function,default:()=>{}}},setup(t){const e=t,r=Se(null),n=Se(!0),o=e.duration!==!1?new cq(d,e.duration):null;function i(){e.onClick.apply(null,arguments),d()}function a(u){o&&(u?o.pause():o.resume())}function c(){o&&o.stop()}function d(){c(),n.value=!1}return(u,f)=>(te(),Hr(Vy,{to:"body"},[n.value?(te(),ie("div",dq,[V("div",{ref_key:"root",ref:r,class:Vn(["v-toast",t.type]),onMouseover:f[0]||(f[0]=g=>a(!0)),onMouseleave:f[1]||(f[1]=g=>a(!1)),onClick:i,role:"alert"},Ne(t.message),35)])):Tt("",!0)]))}}),vi=(t,e="")=>{rg(No(uq,{message:t,type:e}),document.createElement("div"))};function NC(){return window.location.host}function fq(){return{"Content-Type":"multipart/form-data","c-id":localStorage.getItem("client_id")??""}}function pq(){return`${window.location.protocol==="http:"?"ws":"wss"}://${NC()}`}function hs(){return`${window.location.protocol}//${NC()}`}const _v="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",hq=()=>{const t=crypto.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;const e=mq(t).toLowerCase();return`${e.substring(0,8)}-${e.substring(8,12)}-${e.substring(12,16)}-${e.substring(16,20)}-${e.substring(20)}`},qg=()=>{const t=_q("0123456789abcdef",_v,hq().toLowerCase().replace(/-/g,"")),e=Math.ceil(Math.log(2**128)/Math.log(_v.length));return t.padStart(e,_v[0])},mq=t=>[...t].map(e=>e.toString(16).padStart(2,"0")).join(""),vq=t=>{const e=new Uint8Array(t.length);for(let r=0;r/[\u3400-\u9FBF]/.test(t);function Bg(t){return t?btoa(encodeURIComponent(t)):""}function gq(t){try{return decodeURIComponent(atob(t))}catch{return t}}function _q(t,e,r){let n,o,i,a=[],c=t.length,d=e.length,u=r.length,f="";if(t===e)return r;for(n=0;n=d?(a[i++]=parseInt((o/d).toString(),10),o=o%d):i>0&&(a[i++]=0);u=i,f=e.slice(o,o+1).concat(f)}while(i!==0);return f}const yq=/(\b(((https?|ftp):\/\/)|www.)[A-Z0-9+&@#\/%?=~_|!:,.;-]*[-A-Z0-9+&@#\/%=~_|])/gim,bq=/(\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6})/gim;function xq(t){let e=t?String(t).replace(/<[^>]+>/gm,""):"";return e=e.replace(yq,'$1'),e=e.replace(bq,'$1'),e.replace(/\n\r?/g,"
")}var ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wq(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var zC={exports:{}};const Eq={},Tq=Object.freeze(Object.defineProperty({__proto__:null,default:Eq},Symbol.toStringTag,{value:"Module"})),kq=wq(Tq);(function(t){var e={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(h){this.toString=function(){return"CORRUPT: "+this.message},this.message=h},invalid:function(h){this.toString=function(){return"INVALID: "+this.message},this.message=h},bug:function(h){this.toString=function(){return"BUG: "+this.message},this.message=h},notReady:function(h){this.toString=function(){return"NOT READY: "+this.message},this.message=h}}};e.cipher.aes=function(h){this.s[0][0][0]||this.O();var m,y,v,x,E=this.s[0][4],T=this.s[1];m=h.length;var C=1;if(m!==4&&m!==6&&m!==8)throw new e.exception.invalid("invalid aes key size");for(this.b=[v=h.slice(0),x=[]],h=m;h<4*m+28;h++)y=v[h-1],(h%m===0||m===8&&h%m===4)&&(y=E[y>>>24]<<24^E[y>>16&255]<<16^E[y>>8&255]<<8^E[y&255],h%m===0&&(y=y<<8^y>>>24^C<<24,C=C<<1^283*(C>>7))),v[h]=v[h-m]^y;for(m=0;h;m++,h--)y=v[m&3?h:h-4],x[m]=4>=h||4>m?y:T[0][E[y>>>24]]^T[1][E[y>>16&255]]^T[2][E[y>>8&255]]^T[3][E[y&255]]},e.cipher.aes.prototype={encrypt:function(h){return r(this,h,0)},decrypt:function(h){return r(this,h,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var h=this.s[0],m=this.s[1],y=h[4],v=m[4],x,E,T,C=[],A=[],L,R,D,q;for(x=0;256>x;x++)A[(C[x]=x<<1^283*(x>>7))^x]=x;for(E=T=0;!y[E];E^=L||1,T=A[T]||1)for(D=T^T<<1^T<<2^T<<3^T<<4,D=D>>8^D&255^99,y[E]=D,v[D]=E,R=C[x=C[L=C[E]]],q=16843009*R^65537*x^257*L^16843008*E,R=257*C[D]^16843008*D,x=0;4>x;x++)h[x][E]=R=R<<24^R>>>8,m[x][D]=q=q<<24^q>>>8;for(x=0;5>x;x++)h[x]=h[x].slice(0),m[x]=m[x].slice(0)}};function r(h,m,y){if(m.length!==4)throw new e.exception.invalid("invalid aes block size");var v=h.b[y],x=m[0]^v[0],E=m[y?3:1]^v[1],T=m[2]^v[2];m=m[y?1:3]^v[3];var C,A,L,R=v.length/4-2,D,q=4,H=[0,0,0,0];C=h.s[y],h=C[0];var U=C[1],ce=C[2],Ae=C[3],Le=C[4];for(D=0;D>>24]^U[E>>16&255]^ce[T>>8&255]^Ae[m&255]^v[q],A=h[E>>>24]^U[T>>16&255]^ce[m>>8&255]^Ae[x&255]^v[q+1],L=h[T>>>24]^U[m>>16&255]^ce[x>>8&255]^Ae[E&255]^v[q+2],m=h[m>>>24]^U[x>>16&255]^ce[E>>8&255]^Ae[T&255]^v[q+3],q+=4,x=C,E=A,T=L;for(D=0;4>D;D++)H[y?3&-D:D]=Le[x>>>24]<<24^Le[E>>16&255]<<16^Le[T>>8&255]<<8^Le[m&255]^v[q++],C=x,x=E,E=T,T=m,m=C;return H}e.bitArray={bitSlice:function(h,m,y){return h=e.bitArray.$(h.slice(m/32),32-(m&31)).slice(1),y===void 0?h:e.bitArray.clamp(h,y-m)},extract:function(h,m,y){var v=Math.floor(-m-y&31);return((m+y-1^m)&-32?h[m/32|0]<<32-v^h[m/32+1|0]>>>v:h[m/32|0]>>>v)&(1<>m-1,1)),h},partial:function(h,m,y){return h===32?m:(y?m|0:m<<32-h)+1099511627776*h},getPartial:function(h){return Math.round(h/1099511627776)||32},equal:function(h,m){if(e.bitArray.bitLength(h)!==e.bitArray.bitLength(m))return!1;var y=0,v;for(v=0;v>>m),y=h[x]<<32-m;return x=h.length?h[h.length-1]:0,h=e.bitArray.getPartial(x),v.push(e.bitArray.partial(m+h&31,32>>24|y>>>8&65280|(y&65280)<<8|y<<24;return h}},e.codec.utf8String={fromBits:function(h){var m="",y=e.bitArray.bitLength(h),v,x;for(v=0;v>>8>>>8>>>8),x<<=8;return decodeURIComponent(escape(m))},toBits:function(h){h=unescape(encodeURIComponent(h));var m=[],y,v=0;for(y=0;y>>T)>>>x),TR){if(!m)try{return e.codec.base32hex.toBits(h)}catch{}throw new e.exception.invalid("this isn't "+D+"!")}C>x?(C-=x,E.push(L^R>>>C),L=R<>>x)>>>26),6>x?(T=h[y]<<6-x,x+=26,y++):(T<<=6,x-=6);for(;v.length&3&&!m;)v+="=";return v},toBits:function(h,m){h=h.replace(/\s|=/g,"");var y=[],v,x=0,E=e.codec.base64.B,T=0,C;for(m&&(E=E.substr(0,62)+"-_"),v=0;vC)throw new e.exception.invalid("this isn't base64!");26>>x),T=C<<32-x):(x+=6,T^=C<<32-x)}return x&56&&y.push(e.bitArray.partial(x&56,T,1)),y}},e.codec.base64url={fromBits:function(h){return e.codec.base64.fromBits(h,1,1)},toBits:function(h){return e.codec.base64.toBits(h,1)}},e.hash.sha256=function(h){this.b[0]||this.O(),h?(this.F=h.F.slice(0),this.A=h.A.slice(0),this.l=h.l):this.reset()},e.hash.sha256.hash=function(h){return new e.hash.sha256().update(h).finalize()},e.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(h){typeof h=="string"&&(h=e.codec.utf8String.toBits(h));var m,y=this.A=e.bitArray.concat(this.A,h);if(m=this.l,h=this.l=m+e.bitArray.bitLength(h),9007199254740991m;y++){for(x=!0,v=2;v*v<=y;v++)if(y%v===0){x=!1;break}x&&(8>m&&(this.Y[m]=h(Math.pow(y,.5))),this.b[m]=h(Math.pow(y,1/3)),m++)}}};function n(h,m){var y,v,x,E=h.F,T=h.b,C=E[0],A=E[1],L=E[2],R=E[3],D=E[4],q=E[5],H=E[6],U=E[7];for(y=0;64>y;y++)16>y?v=m[y]:(v=m[y+1&15],x=m[y+14&15],v=m[y&15]=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(x>>>17^x>>>19^x>>>10^x<<15^x<<13)+m[y&15]+m[y+9&15]|0),v=v+U+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(H^D&(q^H))+T[y],U=H,H=q,q=D,D=R+v|0,R=L,L=A,A=C,C=v+(A&L^R&(A^L))+(A>>>2^A>>>13^A>>>22^A<<30^A<<19^A<<10)|0;E[0]=E[0]+C|0,E[1]=E[1]+A|0,E[2]=E[2]+L|0,E[3]=E[3]+R|0,E[4]=E[4]+D|0,E[5]=E[5]+q|0,E[6]=E[6]+H|0,E[7]=E[7]+U|0}e.mode.ccm={name:"ccm",G:[],listenProgress:function(h){e.mode.ccm.G.push(h)},unListenProgress:function(h){h=e.mode.ccm.G.indexOf(h),-1A)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(E=2;4>E&&L>>>8*E;E++);return E<15-A&&(E=15-A),y=C.clamp(y,8*(15-E)),m=e.mode.ccm.V(h,m,y,v,x,E),T=e.mode.ccm.C(h,T,y,m,x,E),C.concat(T.data,T.tag)},decrypt:function(h,m,y,v,x){x=x||64,v=v||[];var E=e.bitArray,T=E.bitLength(y)/8,L=E.bitLength(m),C=E.clamp(m,L-x),A=E.bitSlice(m,L-x),L=(L-x)/8;if(7>T)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(m=2;4>m&&L>>>8*m;m++);if(m<15-T&&(m=15-T),y=E.clamp(y,8*(15-m)),C=e.mode.ccm.C(h,C,y,A,x,m),h=e.mode.ccm.V(h,C.data,y,v,x,m),!E.equal(C.tag,h))throw new e.exception.corrupt("ccm: tag doesn't match");return C.data},na:function(h,m,y,v,x,E){var T=[],C=e.bitArray,A=C.i;if(v=[C.partial(8,(m.length?64:0)|v-2<<2|E-1)],v=C.concat(v,y),v[3]|=x,v=h.encrypt(v),m.length)for(y=C.bitLength(m)/8,65279>=y?T=[C.partial(16,y)]:4294967295>=y&&(T=C.concat([C.partial(16,65534)],[y])),T=C.concat(T,m),m=0;mx||16R&&(e.mode.ccm.fa(T/A),R+=D),y[3]++,x=h.encrypt(y),m[T]^=x[0],m[T+1]^=x[1],m[T+2]^=x[2],m[T+3]^=x[3];return{tag:v,data:C.clamp(m,L)}}},e.mode.ocb2={name:"ocb2",encrypt:function(h,m,y,v,x,E){if(e.bitArray.bitLength(y)!==128)throw new e.exception.invalid("ocb iv must be 128 bits");var T,C=e.mode.ocb2.S,A=e.bitArray,L=A.i,R=[0,0,0,0];y=C(h.encrypt(y));var D,q=[];for(v=v||[],x=x||64,T=0;T+4x.bitLength(y)&&(C=E(C,v(C)),y=x.concat(y,[-2147483648,0,0,0])),T=E(T,y),h.encrypt(E(v(E(C,v(C))),T))},S:function(h){return[h[0]<<1^h[1]>>>31,h[1]<<1^h[2]>>>31,h[2]<<1^h[3]>>>31,h[3]<<1^135*(h[0]>>>31)]}},e.mode.gcm={name:"gcm",encrypt:function(h,m,y,v,x){var E=m.slice(0);return m=e.bitArray,v=v||[],h=e.mode.gcm.C(!0,h,E,v,y,x||128),m.concat(h.data,h.tag)},decrypt:function(h,m,y,v,x){var E=m.slice(0),T=e.bitArray,C=T.bitLength(E);if(x=x||128,v=v||[],x<=C?(m=T.bitSlice(E,C-x),E=T.bitSlice(E,0,C-x)):(m=E,E=[]),h=e.mode.gcm.C(!1,h,E,v,y,x),!T.equal(h.tag,m))throw new e.exception.corrupt("gcm: tag doesn't match");return h.data},ka:function(h,m){var y,v,x,E,T,C=e.bitArray.i;for(x=[0,0,0,0],E=m.slice(0),y=0;128>y;y++){for((v=(h[Math.floor(y/32)]&1<<31-y%32)!==0)&&(x=C(x,E)),T=(E[3]&1)!==0,v=3;0>>1|(E[v-1]&1)<<31;E[0]>>>=1,T&&(E[0]^=-520093696)}return x},j:function(h,m,y){var v,x=y.length;for(m=m.slice(0),v=0;vx&&(h=m.hash(h)),v=0;vv||0>y)throw new e.exception.invalid("invalid params to pbkdf2");typeof h=="string"&&(h=e.codec.utf8String.toBits(h)),typeof m=="string"&&(m=e.codec.utf8String.toBits(m)),x=x||e.misc.hmac,h=new x(h);var E,T,C,A,L=[],R=e.bitArray;for(A=1;32*L.length<(v||1);A++){for(x=E=h.encrypt(R.concat(m,[A])),T=1;TT;T++)x.push(4294967296*Math.random()|0);for(T=0;T=1<this.o&&(this.o=E),this.P++,this.b=e.hash.sha256.hash(this.b.concat(x)),this.L=new e.cipher.aes(this.b),v=0;4>v&&(this.h[v]=this.h[v]+1|0,!this.h[v]);v++);}for(v=0;v>>1;this.c[T].update([v,this.N++,2,m,E,h.length].concat(h))}break;case"string":m===void 0&&(m=h.length),this.c[T].update([v,this.N++,3,m,E,h.length]),this.c[T].update(h);break;default:A=1}if(A)throw new e.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[T]+=m,this.f+=m,C===this.u&&(this.isReady()!==this.u&&o("seeded",Math.max(this.o,this.f)),o("progress",this.getProgress()))},isReady:function(h){return h=this.T[h!==void 0?h:this.M],this.o&&this.o>=h?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=h?this.J|this.u:this.u},getProgress:function(h){return h=this.T[h||this.M],this.o>=h||this.f>h?1:this.f/h},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:d(this,this.ma),mouseCollector:d(this,this.oa),keyboardCollector:d(this,this.la),accelerometerCollector:d(this,this.ea),touchCollector:d(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new e.exception.bug("can't attach event");this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(h,m){this.K[h][this.ga++]=m},removeEventListener:function(h,m){var y,v,x=this.K[h],E=[];for(v in x)x.hasOwnProperty(v)&&x[v]===m&&E.push(v);for(y=0;ym&&(h.h[m]=h.h[m]+1|0,!h.h[m]);m++);return h.L.encrypt(h.h)}function d(h,m){return function(){m.apply(h,arguments)}}e.random=new e.prng(6);e:try{var u,f,g,_;if(_=t.exports){var b;try{b=kq}catch{b=null}_=f=b}if(_&&f.randomBytes)u=f.randomBytes(128),u=new Uint32Array(new Uint8Array(u).buffer),e.random.addEntropy(u,1024,"crypto['randomBytes']");else if(typeof window<"u"&&typeof Uint32Array<"u"){if(g=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(g);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(g);else break e;e.random.addEntropy(g,1024,"crypto['getRandomValues']")}}catch(h){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(h))}e.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(h,m,y,v){y=y||{},v=v||{};var x=e.json,E=x.g({iv:e.random.randomWords(4,0)},x.defaults),T;if(x.g(E,y),y=E.adata,typeof E.salt=="string"&&(E.salt=e.codec.base64.toBits(E.salt)),typeof E.iv=="string"&&(E.iv=e.codec.base64.toBits(E.iv)),!e.mode[E.mode]||!e.cipher[E.cipher]||typeof h=="string"&&100>=E.iter||E.ts!==64&&E.ts!==96&&E.ts!==128||E.ks!==128&&E.ks!==192&&E.ks!==256||2>E.iv.length||4=m.iter||m.ts!==64&&m.ts!==96&&m.ts!==128||m.ks!==128&&m.ks!==192&&m.ks!==256||!m.iv||2>m.iv.length||49007199254740991)throw new zt.exception.invalid("Cannot hash more than 2^53 - 1 bits");if(typeof Uint32Array<"u"){const i=new Uint32Array(r);let a=0;for(e=1024+n-(1024+n&1023);e<=o;e+=1024)this._block(i.subarray(32*a,32*(a+1))),a+=1;r.splice(0,32*a)}else for(e=1024+n-(1024+n&1023);e<=o;e+=1024)this._block(r.splice(0,32));return this},finalize:function(){let t,e=this._buffer,r=this._h;for(e=zt.bitArray.concat(e,[zt.bitArray.partial(1,1)]),t=e.length+4;t&31;t++)e.push(0);for(e.push(0),e.push(0),e.push(Math.floor(this._length/4294967296)),e.push(this._length|0);e.length;)this._block(e.splice(0,32));return this.reset(),r},_init:[],_initr:[12372232,13281083,9762859,1914609,15106769,4090911,4308331,8266105],_key:[],_keyr:[2666018,15689165,5061423,9034684,4764984,380953,1658779,7176472,197186,7368638,14987916,16757986,8096111,1480369,13046325,6891156,15813330,5187043,9229749,11312229,2818677,10937475,4324308,1135541,6741931,11809296,16458047,15666916,11046850,698149,229999,945776,13774844,2541862,12856045,9810911,11494366,7844520,15576806,8533307,15795044,4337665,16291729,5553712,15684120,6662416,7413802,12308920,13816008,4303699,9366425,10176680,13195875,4295371,6546291,11712675,15708924,1519456,15772530,6568428,6495784,8568297,13007125,7492395,2515356,12632583,14740254,7262584,1535930,13146278,16321966,1853211,294276,13051027,13221564,1051980,4080310,6651434,14088940,4675607],_precompute:function(){let t=0,e=2,r,n;function o(a){return(a-Math.floor(a))*4294967296|0}function i(a){return(a-Math.floor(a))*1099511627776&255}for(;t<80;e++){for(n=!0,r=2;r*r<=e;r++)if(e%r===0){n=!1;break}n&&(t<8&&(this._init[t*2]=o(Math.pow(e,1/2)),this._init[t*2+1]=i(Math.pow(e,1/2))<<24|this._initr[t]),this._key[t*2]=o(Math.pow(e,1/3)),this._key[t*2+1]=i(Math.pow(e,1/3))<<24|this._keyr[t],t++)}},_block:function(t){let e,r,n,o=this._h,i=this._key,a=o[0],c=o[1],d=o[2],u=o[3],f=o[4],g=o[5],_=o[6],b=o[7],h=o[8],m=o[9],y=o[10],v=o[11],x=o[12],E=o[13],T=o[14],C=o[15],A;if(typeof Uint32Array<"u"){A=Array(160);for(let Re=0;Re<32;Re++)A[Re]=t[Re]}else A=t;let L=a,R=c,D=d,q=u,H=f,U=g,ce=_,Ae=b,Le=h,Te=m,Ie=y,Pe=v,Ce=x,de=E,we=T,ke=C;for(e=0;e<80;e++){if(e<16)r=A[e*2],n=A[e*2+1];else{const Y=A[(e-15)*2],se=A[(e-15)*2+1],ye=(se<<31|Y>>>1)^(se<<24|Y>>>8)^Y>>>7,X=(Y<<31|se>>>1)^(Y<<24|se>>>8)^(Y<<25|se>>>7),ee=A[(e-2)*2],fe=A[(e-2)*2+1],j=(fe<<13|ee>>>19)^(ee<<3|fe>>>29)^ee>>>6,z=(ee<<13|fe>>>19)^(fe<<3|ee>>>29)^(ee<<26|fe>>>6),oe=A[(e-7)*2],be=A[(e-7)*2+1],Fe=A[(e-16)*2],Ue=A[(e-16)*2+1];n=X+be,r=ye+oe+(n>>>0>>0?1:0),n+=z,r+=j+(n>>>0>>0?1:0),n+=Ue,r+=Fe+(n>>>0>>0?1:0)}A[e*2]=r|=0,A[e*2+1]=n|=0;const Re=Le&Ie^~Le&Ce,He=Te&Pe^~Te&de,ze=L&D^L&H^D&H,We=R&q^R&U^q&U,J=(R<<4|L>>>28)^(L<<30|R>>>2)^(L<<25|R>>>7),me=(L<<4|R>>>28)^(R<<30|L>>>2)^(R<<25|L>>>7),ve=(Te<<18|Le>>>14)^(Te<<14|Le>>>18)^(Le<<23|Te>>>9),$e=(Le<<18|Te>>>14)^(Le<<14|Te>>>18)^(Te<<23|Le>>>9),Oe=i[e*2],M=i[e*2+1];let k=ke+$e,I=we+ve+(k>>>0>>0?1:0);k+=He,I+=Re+(k>>>0>>0?1:0),k+=M,I+=Oe+(k>>>0>>0?1:0),k=k+n|0,I+=r+(k>>>0>>0?1:0);const N=me+We,W=J+ze+(N>>>0>>0?1:0);we=Ce,ke=de,Ce=Ie,de=Pe,Ie=Le,Pe=Te,Te=Ae+k|0,Le=ce+I+(Te>>>0>>0?1:0)|0,ce=H,Ae=U,H=D,U=q,D=L,q=R,R=k+N|0,L=I+W+(R>>>0>>0?1:0)|0}c=o[1]=c+R|0,o[0]=a+L+(c>>>0>>0?1:0)|0,u=o[3]=u+q|0,o[2]=d+D+(u>>>0>>0?1:0)|0,g=o[5]=g+U|0,o[4]=f+H+(g>>>0>>0?1:0)|0,b=o[7]=b+Ae|0,o[6]=_+ce+(b>>>0>>0?1:0)|0,m=o[9]=m+Te|0,o[8]=h+Le+(m>>>0>>0?1:0)|0,v=o[11]=v+Pe|0,o[10]=y+Ie+(v>>>0>>0?1:0)|0,E=o[13]=E+de|0,o[12]=x+Ce+(E>>>0>>0?1:0)|0,C=o[15]=C+ke|0,o[14]=T+we+(C>>>0>>0?1:0)|0}};zt.hash.sha512;function Cq(t){let e,r,n,o,i;if(t.length===0)return new ArrayBuffer(0);if(n=jf.bitArray.bitLength(t)/8,jf.bitArray.bitLength(t)%8!==0)throw new jf.exception.invalid("Invalid bit size, must be divisble by 8 to fit in an arraybuffer correctly");for(o=new DataView(new ArrayBuffer(t.length*4)),r=0;re?e:r}function vp(t,e,r){return re?e:r}function T5(t){return t=t%360,t<0&&(t=t+360),t}function ss(t){return t=t%360,t<0&&(t=t+360),t}function Ug(t,e){const r=t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],n=t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],o=t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2];return[r,n,o]}/** +*/function un(t){return t<0?-1:t===0?0:1}function Kc(t,e,r){return(1-r)*t+r*e}function Sq(t,e,r){return re?e:r}function vp(t,e,r){return re?e:r}function T5(t){return t=t%360,t<0&&(t=t+360),t}function ss(t){return t=t%360,t<0&&(t=t+360),t}function Ug(t,e){const r=t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],n=t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],o=t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2];return[r,n,o]}/** * @license * Copyright 2021 Google LLC * @@ -91,7 +91,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/const VC=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],$q=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],jC=[95.047,100,108.883];function wb(t,e,r){return(255<<24|(t&255)<<16|(e&255)<<8|r&255)>>>0}function k5(t){const e=ls(t[0]),r=ls(t[1]),n=ls(t[2]);return wb(e,r,n)}function Eb(t){return t>>16&255}function Tb(t){return t>>8&255}function kb(t){return t&255}function Oq(t,e,r){const n=$q,o=n[0][0]*t+n[0][1]*e+n[0][2]*r,i=n[1][0]*t+n[1][1]*e+n[1][2]*r,a=n[2][0]*t+n[2][1]*e+n[2][2]*r,c=ls(o),d=ls(i),u=ls(a);return wb(c,d,u)}function Pq(t){const e=pi(Eb(t)),r=pi(Tb(t)),n=pi(kb(t));return Ug([e,r,n],VC)}function Rq(t){const e=pi(Eb(t)),r=pi(Tb(t)),n=pi(kb(t)),o=VC,i=o[0][0]*e+o[0][1]*r+o[0][2]*n,a=o[1][0]*e+o[1][1]*r+o[1][2]*n,c=o[2][0]*e+o[2][1]*r+o[2][2]*n,d=jC,u=i/d[0],f=a/d[1],g=c/d[2],_=Yc(u),b=Yc(f),h=Yc(g),m=116*b-16,y=500*(_-b),v=200*(b-h);return[m,y,v]}function Lq(t){const e=na(t),r=ls(e);return wb(r,r,r)}function C5(t){const e=Pq(t)[1];return 116*Yc(e/100)-16}function na(t){return 100*Dq((t+16)/116)}function Vg(t){return Yc(t/100)*116-16}function pi(t){const e=t/255;return e<=.040449936?e/12.92*100:Math.pow((e+.055)/1.055,2.4)*100}function ls(t){const e=t/100;let r=0;return e<=.0031308?r=e*12.92:r=1.055*Math.pow(e,1/2.4)-.055,Iq(0,255,Math.round(r*255))}function Mq(){return jC}function Yc(t){const e=.008856451679035631,r=24389/27;return t>e?Math.pow(t,1/3):(r*t+16)/116}function Dq(t){const e=.008856451679035631,r=24389/27,n=t*t*t;return n>e?n:(116*t-16)/r}/** +*/const UC=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],Iq=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],VC=[95.047,100,108.883];function wb(t,e,r){return(255<<24|(t&255)<<16|(e&255)<<8|r&255)>>>0}function k5(t){const e=ls(t[0]),r=ls(t[1]),n=ls(t[2]);return wb(e,r,n)}function Eb(t){return t>>16&255}function Tb(t){return t>>8&255}function kb(t){return t&255}function $q(t,e,r){const n=Iq,o=n[0][0]*t+n[0][1]*e+n[0][2]*r,i=n[1][0]*t+n[1][1]*e+n[1][2]*r,a=n[2][0]*t+n[2][1]*e+n[2][2]*r,c=ls(o),d=ls(i),u=ls(a);return wb(c,d,u)}function Oq(t){const e=pi(Eb(t)),r=pi(Tb(t)),n=pi(kb(t));return Ug([e,r,n],UC)}function Pq(t){const e=pi(Eb(t)),r=pi(Tb(t)),n=pi(kb(t)),o=UC,i=o[0][0]*e+o[0][1]*r+o[0][2]*n,a=o[1][0]*e+o[1][1]*r+o[1][2]*n,c=o[2][0]*e+o[2][1]*r+o[2][2]*n,d=VC,u=i/d[0],f=a/d[1],g=c/d[2],_=Yc(u),b=Yc(f),h=Yc(g),m=116*b-16,y=500*(_-b),v=200*(b-h);return[m,y,v]}function Rq(t){const e=na(t),r=ls(e);return wb(r,r,r)}function C5(t){const e=Oq(t)[1];return 116*Yc(e/100)-16}function na(t){return 100*Mq((t+16)/116)}function Vg(t){return Yc(t/100)*116-16}function pi(t){const e=t/255;return e<=.040449936?e/12.92*100:Math.pow((e+.055)/1.055,2.4)*100}function ls(t){const e=t/100;let r=0;return e<=.0031308?r=e*12.92:r=1.055*Math.pow(e,1/2.4)-.055,Sq(0,255,Math.round(r*255))}function Lq(){return VC}function Yc(t){const e=.008856451679035631,r=24389/27;return t>e?Math.pow(t,1/3):(r*t+16)/116}function Mq(t){const e=.008856451679035631,r=24389/27,n=t*t*t;return n>e?n:(116*t-16)/r}/** * @license * Copyright 2021 Google LLC * @@ -106,7 +106,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/class fo{static make(e=Mq(),r=200/Math.PI*na(50)/100,n=50,o=2,i=!1){const a=e,c=a[0]*.401288+a[1]*.650173+a[2]*-.051461,d=a[0]*-.250268+a[1]*1.204414+a[2]*.045854,u=a[0]*-.002079+a[1]*.048952+a[2]*.953127,f=.8+o/10,g=f>=.9?Kc(.59,.69,(f-.9)*10):Kc(.525,.59,(f-.8)*10);let _=i?1:f*(1-1/3.6*Math.exp((-r-42)/92));_=_>1?1:_<0?0:_;const b=f,h=[_*(100/c)+1-_,_*(100/d)+1-_,_*(100/u)+1-_],m=1/(5*r+1),y=m*m*m*m,v=1-y,x=y*r+.1*v*v*Math.cbrt(5*r),E=na(n)/e[1],T=1.48+Math.sqrt(E),C=.725/Math.pow(E,.2),A=C,L=[Math.pow(x*h[0]*c/100,.42),Math.pow(x*h[1]*d/100,.42),Math.pow(x*h[2]*u/100,.42)],R=[400*L[0]/(L[0]+27.13),400*L[1]/(L[1]+27.13),400*L[2]/(L[2]+27.13)],D=(2*R[0]+R[1]+.05*R[2])*C;return new fo(E,D,C,A,g,b,h,x,Math.pow(x,.25),T)}constructor(e,r,n,o,i,a,c,d,u,f){this.n=e,this.aw=r,this.nbb=n,this.ncb=o,this.c=i,this.nc=a,this.rgbD=c,this.fl=d,this.fLRoot=u,this.z=f}}fo.DEFAULT=fo.make();/** +*/class fo{static make(e=Lq(),r=200/Math.PI*na(50)/100,n=50,o=2,i=!1){const a=e,c=a[0]*.401288+a[1]*.650173+a[2]*-.051461,d=a[0]*-.250268+a[1]*1.204414+a[2]*.045854,u=a[0]*-.002079+a[1]*.048952+a[2]*.953127,f=.8+o/10,g=f>=.9?Kc(.59,.69,(f-.9)*10):Kc(.525,.59,(f-.8)*10);let _=i?1:f*(1-1/3.6*Math.exp((-r-42)/92));_=_>1?1:_<0?0:_;const b=f,h=[_*(100/c)+1-_,_*(100/d)+1-_,_*(100/u)+1-_],m=1/(5*r+1),y=m*m*m*m,v=1-y,x=y*r+.1*v*v*Math.cbrt(5*r),E=na(n)/e[1],T=1.48+Math.sqrt(E),C=.725/Math.pow(E,.2),A=C,L=[Math.pow(x*h[0]*c/100,.42),Math.pow(x*h[1]*d/100,.42),Math.pow(x*h[2]*u/100,.42)],R=[400*L[0]/(L[0]+27.13),400*L[1]/(L[1]+27.13),400*L[2]/(L[2]+27.13)],D=(2*R[0]+R[1]+.05*R[2])*C;return new fo(E,D,C,A,g,b,h,x,Math.pow(x,.25),T)}constructor(e,r,n,o,i,a,c,d,u,f){this.n=e,this.aw=r,this.nbb=n,this.ncb=o,this.c=i,this.nc=a,this.rgbD=c,this.fl=d,this.fLRoot=u,this.z=f}}fo.DEFAULT=fo.make();/** * @license * Copyright 2021 Google LLC * @@ -121,7 +121,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/class kn{constructor(e,r,n,o,i,a,c,d,u){this.hue=e,this.chroma=r,this.j=n,this.q=o,this.m=i,this.s=a,this.jstar=c,this.astar=d,this.bstar=u}distance(e){const r=this.jstar-e.jstar,n=this.astar-e.astar,o=this.bstar-e.bstar,i=Math.sqrt(r*r+n*n+o*o);return 1.41*Math.pow(i,.63)}static fromInt(e){return kn.fromIntInViewingConditions(e,fo.DEFAULT)}static fromIntInViewingConditions(e,r){const n=(e&16711680)>>16,o=(e&65280)>>8,i=e&255,a=pi(n),c=pi(o),d=pi(i),u=.41233895*a+.35762064*c+.18051042*d,f=.2126*a+.7152*c+.0722*d,g=.01932141*a+.11916382*c+.95034478*d,_=.401288*u+.650173*f-.051461*g,b=-.250268*u+1.204414*f+.045854*g,h=-.002079*u+.048952*f+.953127*g,m=r.rgbD[0]*_,y=r.rgbD[1]*b,v=r.rgbD[2]*h,x=Math.pow(r.fl*Math.abs(m)/100,.42),E=Math.pow(r.fl*Math.abs(y)/100,.42),T=Math.pow(r.fl*Math.abs(v)/100,.42),C=un(m)*400*x/(x+27.13),A=un(y)*400*E/(E+27.13),L=un(v)*400*T/(T+27.13),R=(11*C+-12*A+L)/11,D=(C+A-2*L)/9,q=(20*C+20*A+21*L)/20,H=(40*C+20*A+L)/20,ce=Math.atan2(D,R)*180/Math.PI,Ae=ce<0?ce+360:ce>=360?ce-360:ce,Le=Ae*Math.PI/180,Te=H*r.nbb,Ie=100*Math.pow(Te/r.aw,r.c*r.z),Pe=4/r.c*Math.sqrt(Ie/100)*(r.aw+4)*r.fLRoot,Ce=Ae<20.14?Ae+360:Ae,de=.25*(Math.cos(Ce*Math.PI/180+2)+3.8),ke=5e4/13*de*r.nc*r.ncb*Math.sqrt(R*R+D*D)/(q+.305),Re=Math.pow(ke,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),He=Re*Math.sqrt(Ie/100),ze=He*r.fLRoot,We=50*Math.sqrt(Re*r.c/(r.aw+4)),J=(1+100*.007)*Ie/(1+.007*Ie),me=1/.0228*Math.log(1+.0228*ze),ve=me*Math.cos(Le),$e=me*Math.sin(Le);return new kn(Ae,He,Ie,Pe,ze,We,J,ve,$e)}static fromJch(e,r,n){return kn.fromJchInViewingConditions(e,r,n,fo.DEFAULT)}static fromJchInViewingConditions(e,r,n,o){const i=4/o.c*Math.sqrt(e/100)*(o.aw+4)*o.fLRoot,a=r*o.fLRoot,c=r/Math.sqrt(e/100),d=50*Math.sqrt(c*o.c/(o.aw+4)),u=n*Math.PI/180,f=(1+100*.007)*e/(1+.007*e),g=1/.0228*Math.log(1+.0228*a),_=g*Math.cos(u),b=g*Math.sin(u);return new kn(n,r,e,i,a,d,f,_,b)}static fromUcs(e,r,n){return kn.fromUcsInViewingConditions(e,r,n,fo.DEFAULT)}static fromUcsInViewingConditions(e,r,n,o){const i=r,a=n,c=Math.sqrt(i*i+a*a),u=(Math.exp(c*.0228)-1)/.0228/o.fLRoot;let f=Math.atan2(a,i)*(180/Math.PI);f<0&&(f+=360);const g=e/(1-(e-100)*.007);return kn.fromJchInViewingConditions(g,u,f,o)}toInt(){return this.viewed(fo.DEFAULT)}viewed(e){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),o=this.hue*Math.PI/180,i=.25*(Math.cos(o+2)+3.8),a=e.aw*Math.pow(this.j/100,1/e.c/e.z),c=i*(5e4/13)*e.nc*e.ncb,d=a/e.nbb,u=Math.sin(o),f=Math.cos(o),g=23*(d+.305)*n/(23*c+11*n*f+108*n*u),_=g*f,b=g*u,h=(460*d+451*_+288*b)/1403,m=(460*d-891*_-261*b)/1403,y=(460*d-220*_-6300*b)/1403,v=Math.max(0,27.13*Math.abs(h)/(400-Math.abs(h))),x=un(h)*(100/e.fl)*Math.pow(v,1/.42),E=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),T=un(m)*(100/e.fl)*Math.pow(E,1/.42),C=Math.max(0,27.13*Math.abs(y)/(400-Math.abs(y))),A=un(y)*(100/e.fl)*Math.pow(C,1/.42),L=x/e.rgbD[0],R=T/e.rgbD[1],D=A/e.rgbD[2],q=1.86206786*L-1.01125463*R+.14918677*D,H=.38752654*L+.62144744*R-.00897398*D,U=-.0158415*L-.03412294*R+1.04996444*D;return Oq(q,H,U)}static fromXyzInViewingConditions(e,r,n,o){const i=.401288*e+.650173*r-.051461*n,a=-.250268*e+1.204414*r+.045854*n,c=-.002079*e+.048952*r+.953127*n,d=o.rgbD[0]*i,u=o.rgbD[1]*a,f=o.rgbD[2]*c,g=Math.pow(o.fl*Math.abs(d)/100,.42),_=Math.pow(o.fl*Math.abs(u)/100,.42),b=Math.pow(o.fl*Math.abs(f)/100,.42),h=un(d)*400*g/(g+27.13),m=un(u)*400*_/(_+27.13),y=un(f)*400*b/(b+27.13),v=(11*h+-12*m+y)/11,x=(h+m-2*y)/9,E=(20*h+20*m+21*y)/20,T=(40*h+20*m+y)/20,A=Math.atan2(x,v)*180/Math.PI,L=A<0?A+360:A>=360?A-360:A,R=L*Math.PI/180,D=T*o.nbb,q=100*Math.pow(D/o.aw,o.c*o.z),H=4/o.c*Math.sqrt(q/100)*(o.aw+4)*o.fLRoot,U=L<20.14?L+360:L,ce=1/4*(Math.cos(U*Math.PI/180+2)+3.8),Le=5e4/13*ce*o.nc*o.ncb*Math.sqrt(v*v+x*x)/(E+.305),Te=Math.pow(Le,.9)*Math.pow(1.64-Math.pow(.29,o.n),.73),Ie=Te*Math.sqrt(q/100),Pe=Ie*o.fLRoot,Ce=50*Math.sqrt(Te*o.c/(o.aw+4)),de=(1+100*.007)*q/(1+.007*q),we=Math.log(1+.0228*Pe)/.0228,ke=we*Math.cos(R),Re=we*Math.sin(R);return new kn(L,Ie,q,H,Pe,Ce,de,ke,Re)}xyzInViewingConditions(e){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),o=this.hue*Math.PI/180,i=.25*(Math.cos(o+2)+3.8),a=e.aw*Math.pow(this.j/100,1/e.c/e.z),c=i*(5e4/13)*e.nc*e.ncb,d=a/e.nbb,u=Math.sin(o),f=Math.cos(o),g=23*(d+.305)*n/(23*c+11*n*f+108*n*u),_=g*f,b=g*u,h=(460*d+451*_+288*b)/1403,m=(460*d-891*_-261*b)/1403,y=(460*d-220*_-6300*b)/1403,v=Math.max(0,27.13*Math.abs(h)/(400-Math.abs(h))),x=un(h)*(100/e.fl)*Math.pow(v,1/.42),E=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),T=un(m)*(100/e.fl)*Math.pow(E,1/.42),C=Math.max(0,27.13*Math.abs(y)/(400-Math.abs(y))),A=un(y)*(100/e.fl)*Math.pow(C,1/.42),L=x/e.rgbD[0],R=T/e.rgbD[1],D=A/e.rgbD[2],q=1.86206786*L-1.01125463*R+.14918677*D,H=.38752654*L+.62144744*R-.00897398*D,U=-.0158415*L-.03412294*R+1.04996444*D;return[q,H,U]}}/** +*/class kn{constructor(e,r,n,o,i,a,c,d,u){this.hue=e,this.chroma=r,this.j=n,this.q=o,this.m=i,this.s=a,this.jstar=c,this.astar=d,this.bstar=u}distance(e){const r=this.jstar-e.jstar,n=this.astar-e.astar,o=this.bstar-e.bstar,i=Math.sqrt(r*r+n*n+o*o);return 1.41*Math.pow(i,.63)}static fromInt(e){return kn.fromIntInViewingConditions(e,fo.DEFAULT)}static fromIntInViewingConditions(e,r){const n=(e&16711680)>>16,o=(e&65280)>>8,i=e&255,a=pi(n),c=pi(o),d=pi(i),u=.41233895*a+.35762064*c+.18051042*d,f=.2126*a+.7152*c+.0722*d,g=.01932141*a+.11916382*c+.95034478*d,_=.401288*u+.650173*f-.051461*g,b=-.250268*u+1.204414*f+.045854*g,h=-.002079*u+.048952*f+.953127*g,m=r.rgbD[0]*_,y=r.rgbD[1]*b,v=r.rgbD[2]*h,x=Math.pow(r.fl*Math.abs(m)/100,.42),E=Math.pow(r.fl*Math.abs(y)/100,.42),T=Math.pow(r.fl*Math.abs(v)/100,.42),C=un(m)*400*x/(x+27.13),A=un(y)*400*E/(E+27.13),L=un(v)*400*T/(T+27.13),R=(11*C+-12*A+L)/11,D=(C+A-2*L)/9,q=(20*C+20*A+21*L)/20,H=(40*C+20*A+L)/20,ce=Math.atan2(D,R)*180/Math.PI,Ae=ce<0?ce+360:ce>=360?ce-360:ce,Le=Ae*Math.PI/180,Te=H*r.nbb,Ie=100*Math.pow(Te/r.aw,r.c*r.z),Pe=4/r.c*Math.sqrt(Ie/100)*(r.aw+4)*r.fLRoot,Ce=Ae<20.14?Ae+360:Ae,de=.25*(Math.cos(Ce*Math.PI/180+2)+3.8),ke=5e4/13*de*r.nc*r.ncb*Math.sqrt(R*R+D*D)/(q+.305),Re=Math.pow(ke,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),He=Re*Math.sqrt(Ie/100),ze=He*r.fLRoot,We=50*Math.sqrt(Re*r.c/(r.aw+4)),J=(1+100*.007)*Ie/(1+.007*Ie),me=1/.0228*Math.log(1+.0228*ze),ve=me*Math.cos(Le),$e=me*Math.sin(Le);return new kn(Ae,He,Ie,Pe,ze,We,J,ve,$e)}static fromJch(e,r,n){return kn.fromJchInViewingConditions(e,r,n,fo.DEFAULT)}static fromJchInViewingConditions(e,r,n,o){const i=4/o.c*Math.sqrt(e/100)*(o.aw+4)*o.fLRoot,a=r*o.fLRoot,c=r/Math.sqrt(e/100),d=50*Math.sqrt(c*o.c/(o.aw+4)),u=n*Math.PI/180,f=(1+100*.007)*e/(1+.007*e),g=1/.0228*Math.log(1+.0228*a),_=g*Math.cos(u),b=g*Math.sin(u);return new kn(n,r,e,i,a,d,f,_,b)}static fromUcs(e,r,n){return kn.fromUcsInViewingConditions(e,r,n,fo.DEFAULT)}static fromUcsInViewingConditions(e,r,n,o){const i=r,a=n,c=Math.sqrt(i*i+a*a),u=(Math.exp(c*.0228)-1)/.0228/o.fLRoot;let f=Math.atan2(a,i)*(180/Math.PI);f<0&&(f+=360);const g=e/(1-(e-100)*.007);return kn.fromJchInViewingConditions(g,u,f,o)}toInt(){return this.viewed(fo.DEFAULT)}viewed(e){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),o=this.hue*Math.PI/180,i=.25*(Math.cos(o+2)+3.8),a=e.aw*Math.pow(this.j/100,1/e.c/e.z),c=i*(5e4/13)*e.nc*e.ncb,d=a/e.nbb,u=Math.sin(o),f=Math.cos(o),g=23*(d+.305)*n/(23*c+11*n*f+108*n*u),_=g*f,b=g*u,h=(460*d+451*_+288*b)/1403,m=(460*d-891*_-261*b)/1403,y=(460*d-220*_-6300*b)/1403,v=Math.max(0,27.13*Math.abs(h)/(400-Math.abs(h))),x=un(h)*(100/e.fl)*Math.pow(v,1/.42),E=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),T=un(m)*(100/e.fl)*Math.pow(E,1/.42),C=Math.max(0,27.13*Math.abs(y)/(400-Math.abs(y))),A=un(y)*(100/e.fl)*Math.pow(C,1/.42),L=x/e.rgbD[0],R=T/e.rgbD[1],D=A/e.rgbD[2],q=1.86206786*L-1.01125463*R+.14918677*D,H=.38752654*L+.62144744*R-.00897398*D,U=-.0158415*L-.03412294*R+1.04996444*D;return $q(q,H,U)}static fromXyzInViewingConditions(e,r,n,o){const i=.401288*e+.650173*r-.051461*n,a=-.250268*e+1.204414*r+.045854*n,c=-.002079*e+.048952*r+.953127*n,d=o.rgbD[0]*i,u=o.rgbD[1]*a,f=o.rgbD[2]*c,g=Math.pow(o.fl*Math.abs(d)/100,.42),_=Math.pow(o.fl*Math.abs(u)/100,.42),b=Math.pow(o.fl*Math.abs(f)/100,.42),h=un(d)*400*g/(g+27.13),m=un(u)*400*_/(_+27.13),y=un(f)*400*b/(b+27.13),v=(11*h+-12*m+y)/11,x=(h+m-2*y)/9,E=(20*h+20*m+21*y)/20,T=(40*h+20*m+y)/20,A=Math.atan2(x,v)*180/Math.PI,L=A<0?A+360:A>=360?A-360:A,R=L*Math.PI/180,D=T*o.nbb,q=100*Math.pow(D/o.aw,o.c*o.z),H=4/o.c*Math.sqrt(q/100)*(o.aw+4)*o.fLRoot,U=L<20.14?L+360:L,ce=1/4*(Math.cos(U*Math.PI/180+2)+3.8),Le=5e4/13*ce*o.nc*o.ncb*Math.sqrt(v*v+x*x)/(E+.305),Te=Math.pow(Le,.9)*Math.pow(1.64-Math.pow(.29,o.n),.73),Ie=Te*Math.sqrt(q/100),Pe=Ie*o.fLRoot,Ce=50*Math.sqrt(Te*o.c/(o.aw+4)),de=(1+100*.007)*q/(1+.007*q),we=Math.log(1+.0228*Pe)/.0228,ke=we*Math.cos(R),Re=we*Math.sin(R);return new kn(L,Ie,q,H,Pe,Ce,de,ke,Re)}xyzInViewingConditions(e){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),o=this.hue*Math.PI/180,i=.25*(Math.cos(o+2)+3.8),a=e.aw*Math.pow(this.j/100,1/e.c/e.z),c=i*(5e4/13)*e.nc*e.ncb,d=a/e.nbb,u=Math.sin(o),f=Math.cos(o),g=23*(d+.305)*n/(23*c+11*n*f+108*n*u),_=g*f,b=g*u,h=(460*d+451*_+288*b)/1403,m=(460*d-891*_-261*b)/1403,y=(460*d-220*_-6300*b)/1403,v=Math.max(0,27.13*Math.abs(h)/(400-Math.abs(h))),x=un(h)*(100/e.fl)*Math.pow(v,1/.42),E=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),T=un(m)*(100/e.fl)*Math.pow(E,1/.42),C=Math.max(0,27.13*Math.abs(y)/(400-Math.abs(y))),A=un(y)*(100/e.fl)*Math.pow(C,1/.42),L=x/e.rgbD[0],R=T/e.rgbD[1],D=A/e.rgbD[2],q=1.86206786*L-1.01125463*R+.14918677*D,H=.38752654*L+.62144744*R-.00897398*D,U=-.0158415*L-.03412294*R+1.04996444*D;return[q,H,U]}}/** * @license * Copyright 2021 Google LLC * @@ -136,7 +136,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/class Ze{static sanitizeRadians(e){return(e+Math.PI*8)%(Math.PI*2)}static trueDelinearized(e){const r=e/100;let n=0;return r<=.0031308?n=r*12.92:n=1.055*Math.pow(r,1/2.4)-.055,n*255}static chromaticAdaptation(e){const r=Math.pow(Math.abs(e),.42);return un(e)*400*r/(r+27.13)}static hueOf(e){const r=Ug(e,Ze.SCALED_DISCOUNT_FROM_LINRGB),n=Ze.chromaticAdaptation(r[0]),o=Ze.chromaticAdaptation(r[1]),i=Ze.chromaticAdaptation(r[2]),a=(11*n+-12*o+i)/11,c=(n+o-2*i)/9;return Math.atan2(c,a)}static areInCyclicOrder(e,r,n){const o=Ze.sanitizeRadians(r-e),i=Ze.sanitizeRadians(n-e);return o100.01||q[1]>100.01||q[2]>100.01?0:k5(q);o=o-(Ae-n)*o/(2*Ae)}return 0}static solveToInt(e,r,n){if(r<1e-4||n<1e-4||n>99.9999)return Lq(n);e=ss(e);const o=e/180*Math.PI,i=na(n),a=Ze.findResultByJ(o,r,i);if(a!==0)return a;const c=Ze.bisectToLimit(i,o);return k5(c)}static solveToCam(e,r,n){return kn.fromInt(Ze.solveToInt(e,r,n))}}Ze.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];Ze.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];Ze.Y_FROM_LINRGB=[.2126,.7152,.0722];Ze.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];/** +*/class Ze{static sanitizeRadians(e){return(e+Math.PI*8)%(Math.PI*2)}static trueDelinearized(e){const r=e/100;let n=0;return r<=.0031308?n=r*12.92:n=1.055*Math.pow(r,1/2.4)-.055,n*255}static chromaticAdaptation(e){const r=Math.pow(Math.abs(e),.42);return un(e)*400*r/(r+27.13)}static hueOf(e){const r=Ug(e,Ze.SCALED_DISCOUNT_FROM_LINRGB),n=Ze.chromaticAdaptation(r[0]),o=Ze.chromaticAdaptation(r[1]),i=Ze.chromaticAdaptation(r[2]),a=(11*n+-12*o+i)/11,c=(n+o-2*i)/9;return Math.atan2(c,a)}static areInCyclicOrder(e,r,n){const o=Ze.sanitizeRadians(r-e),i=Ze.sanitizeRadians(n-e);return o100.01||q[1]>100.01||q[2]>100.01?0:k5(q);o=o-(Ae-n)*o/(2*Ae)}return 0}static solveToInt(e,r,n){if(r<1e-4||n<1e-4||n>99.9999)return Rq(n);e=ss(e);const o=e/180*Math.PI,i=na(n),a=Ze.findResultByJ(o,r,i);if(a!==0)return a;const c=Ze.bisectToLimit(i,o);return k5(c)}static solveToCam(e,r,n){return kn.fromInt(Ze.solveToInt(e,r,n))}}Ze.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];Ze.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];Ze.Y_FROM_LINRGB=[.2126,.7152,.0722];Ze.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];/** * @license * Copyright 2021 Google LLC * @@ -256,7 +256,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/function Yl(t){return t.variant===_a.FIDELITY||t.variant===_a.CONTENT}function fr(t){return t.variant===_a.MONOCHROME}function Fq(t,e,r,n){let o=r,i=Ur.from(t,e,r);if(i.chromac.chroma||Math.abs(c.chroma-e)<.4)break;const d=Math.abs(c.chroma-e),u=Math.abs(i.chroma-e);dt.primaryPalette,tone:t=>t.primaryPalette.keyColor.tone});Z.secondaryPaletteKeyColor=De.fromPalette({name:"secondary_palette_key_color",palette:t=>t.secondaryPalette,tone:t=>t.secondaryPalette.keyColor.tone});Z.tertiaryPaletteKeyColor=De.fromPalette({name:"tertiary_palette_key_color",palette:t=>t.tertiaryPalette,tone:t=>t.tertiaryPalette.keyColor.tone});Z.neutralPaletteKeyColor=De.fromPalette({name:"neutral_palette_key_color",palette:t=>t.neutralPalette,tone:t=>t.neutralPalette.keyColor.tone});Z.neutralVariantPaletteKeyColor=De.fromPalette({name:"neutral_variant_palette_key_color",palette:t=>t.neutralVariantPalette,tone:t=>t.neutralVariantPalette.keyColor.tone});Z.background=De.fromPalette({name:"background",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0});Z.onBackground=De.fromPalette({name:"on_background",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>Z.background,contrastCurve:new xt(3,3,4.5,7)});Z.surface=De.fromPalette({name:"surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0});Z.surfaceDim=De.fromPalette({name:"surface_dim",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:87,isBackground:!0});Z.surfaceBright=De.fromPalette({name:"surface_bright",palette:t=>t.neutralPalette,tone:t=>t.isDark?24:98,isBackground:!0});Z.surfaceContainerLowest=De.fromPalette({name:"surface_container_lowest",palette:t=>t.neutralPalette,tone:t=>t.isDark?4:100,isBackground:!0});Z.surfaceContainerLow=De.fromPalette({name:"surface_container_low",palette:t=>t.neutralPalette,tone:t=>t.isDark?10:96,isBackground:!0});Z.surfaceContainer=De.fromPalette({name:"surface_container",palette:t=>t.neutralPalette,tone:t=>t.isDark?12:94,isBackground:!0});Z.surfaceContainerHigh=De.fromPalette({name:"surface_container_high",palette:t=>t.neutralPalette,tone:t=>t.isDark?17:92,isBackground:!0});Z.surfaceContainerHighest=De.fromPalette({name:"surface_container_highest",palette:t=>t.neutralPalette,tone:t=>t.isDark?22:90,isBackground:!0});Z.onSurface=De.fromPalette({name:"on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>Z.highestSurface(t),contrastCurve:new xt(4.5,7,11,21)});Z.surfaceVariant=De.fromPalette({name:"surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:90,isBackground:!0});Z.onSurfaceVariant=De.fromPalette({name:"on_surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?80:30,background:t=>Z.highestSurface(t),contrastCurve:new xt(3,4.5,7,11)});Z.inverseSurface=De.fromPalette({name:"inverse_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:20});Z.inverseOnSurface=De.fromPalette({name:"inverse_on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?20:95,background:t=>Z.inverseSurface,contrastCurve:new xt(4.5,7,11,21)});Z.outline=De.fromPalette({name:"outline",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?60:50,background:t=>Z.highestSurface(t),contrastCurve:new xt(1.5,3,4.5,7)});Z.outlineVariant=De.fromPalette({name:"outline_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:80,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7)});Z.shadow=De.fromPalette({name:"shadow",palette:t=>t.neutralPalette,tone:t=>0});Z.scrim=De.fromPalette({name:"scrim",palette:t=>t.neutralPalette,tone:t=>0});Z.surfaceTint=De.fromPalette({name:"surface_tint",palette:t=>t.primaryPalette,tone:t=>t.isDark?80:40,isBackground:!0});Z.primary=De.fromPalette({name:"primary",palette:t=>t.primaryPalette,tone:t=>fr(t)?t.isDark?100:0:t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.primaryContainer,Z.primary,15,"nearer",!1)});Z.onPrimary=De.fromPalette({name:"on_primary",palette:t=>t.primaryPalette,tone:t=>fr(t)?t.isDark?10:90:t.isDark?20:100,background:t=>Z.primary,contrastCurve:new xt(4.5,7,11,21)});Z.primaryContainer=De.fromPalette({name:"primary_container",palette:t=>t.primaryPalette,tone:t=>Yl(t)?Cb(t.sourceColorHct,t):fr(t)?t.isDark?85:25:t.isDark?30:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.primaryContainer,Z.primary,15,"nearer",!1)});Z.onPrimaryContainer=De.fromPalette({name:"on_primary_container",palette:t=>t.primaryPalette,tone:t=>Yl(t)?De.foregroundTone(Z.primaryContainer.tone(t),4.5):fr(t)?t.isDark?0:100:t.isDark?90:10,background:t=>Z.primaryContainer,contrastCurve:new xt(4.5,7,11,21)});Z.inversePrimary=De.fromPalette({name:"inverse_primary",palette:t=>t.primaryPalette,tone:t=>t.isDark?40:80,background:t=>Z.inverseSurface,contrastCurve:new xt(3,4.5,7,11)});Z.secondary=De.fromPalette({name:"secondary",palette:t=>t.secondaryPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.secondaryContainer,Z.secondary,15,"nearer",!1)});Z.onSecondary=De.fromPalette({name:"on_secondary",palette:t=>t.secondaryPalette,tone:t=>fr(t)?t.isDark?10:100:t.isDark?20:100,background:t=>Z.secondary,contrastCurve:new xt(4.5,7,11,21)});Z.secondaryContainer=De.fromPalette({name:"secondary_container",palette:t=>t.secondaryPalette,tone:t=>{const e=t.isDark?30:90;if(fr(t))return t.isDark?30:85;if(!Yl(t))return e;let r=Fq(t.secondaryPalette.hue,t.secondaryPalette.chroma,e,!t.isDark);return r=Cb(t.secondaryPalette.getHct(r),t),r},isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.secondaryContainer,Z.secondary,15,"nearer",!1)});Z.onSecondaryContainer=De.fromPalette({name:"on_secondary_container",palette:t=>t.secondaryPalette,tone:t=>Yl(t)?De.foregroundTone(Z.secondaryContainer.tone(t),4.5):t.isDark?90:10,background:t=>Z.secondaryContainer,contrastCurve:new xt(4.5,7,11,21)});Z.tertiary=De.fromPalette({name:"tertiary",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?t.isDark?90:25:t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.tertiaryContainer,Z.tertiary,15,"nearer",!1)});Z.onTertiary=De.fromPalette({name:"on_tertiary",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?t.isDark?10:90:t.isDark?20:100,background:t=>Z.tertiary,contrastCurve:new xt(4.5,7,11,21)});Z.tertiaryContainer=De.fromPalette({name:"tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>{if(fr(t))return t.isDark?60:49;if(!Yl(t))return t.isDark?30:90;const e=Cb(t.tertiaryPalette.getHct(t.sourceColorHct.tone),t),r=t.tertiaryPalette.getHct(e);return ah.fixIfDisliked(r).tone},isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.tertiaryContainer,Z.tertiary,15,"nearer",!1)});Z.onTertiaryContainer=De.fromPalette({name:"on_tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?t.isDark?0:100:Yl(t)?De.foregroundTone(Z.tertiaryContainer.tone(t),4.5):t.isDark?90:10,background:t=>Z.tertiaryContainer,contrastCurve:new xt(4.5,7,11,21)});Z.error=De.fromPalette({name:"error",palette:t=>t.errorPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.errorContainer,Z.error,15,"nearer",!1)});Z.onError=De.fromPalette({name:"on_error",palette:t=>t.errorPalette,tone:t=>t.isDark?20:100,background:t=>Z.error,contrastCurve:new xt(4.5,7,11,21)});Z.errorContainer=De.fromPalette({name:"error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?30:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.errorContainer,Z.error,15,"nearer",!1)});Z.onErrorContainer=De.fromPalette({name:"on_error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?90:10,background:t=>Z.errorContainer,contrastCurve:new xt(4.5,7,11,21)});Z.primaryFixed=De.fromPalette({name:"primary_fixed",palette:t=>t.primaryPalette,tone:t=>fr(t)?40:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.primaryFixed,Z.primaryFixedDim,10,"lighter",!0)});Z.primaryFixedDim=De.fromPalette({name:"primary_fixed_dim",palette:t=>t.primaryPalette,tone:t=>fr(t)?30:80,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.primaryFixed,Z.primaryFixedDim,10,"lighter",!0)});Z.onPrimaryFixed=De.fromPalette({name:"on_primary_fixed",palette:t=>t.primaryPalette,tone:t=>fr(t)?100:10,background:t=>Z.primaryFixedDim,secondBackground:t=>Z.primaryFixed,contrastCurve:new xt(4.5,7,11,21)});Z.onPrimaryFixedVariant=De.fromPalette({name:"on_primary_fixed_variant",palette:t=>t.primaryPalette,tone:t=>fr(t)?90:30,background:t=>Z.primaryFixedDim,secondBackground:t=>Z.primaryFixed,contrastCurve:new xt(3,4.5,7,11)});Z.secondaryFixed=De.fromPalette({name:"secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>fr(t)?80:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.secondaryFixed,Z.secondaryFixedDim,10,"lighter",!0)});Z.secondaryFixedDim=De.fromPalette({name:"secondary_fixed_dim",palette:t=>t.secondaryPalette,tone:t=>fr(t)?70:80,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.secondaryFixed,Z.secondaryFixedDim,10,"lighter",!0)});Z.onSecondaryFixed=De.fromPalette({name:"on_secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>10,background:t=>Z.secondaryFixedDim,secondBackground:t=>Z.secondaryFixed,contrastCurve:new xt(4.5,7,11,21)});Z.onSecondaryFixedVariant=De.fromPalette({name:"on_secondary_fixed_variant",palette:t=>t.secondaryPalette,tone:t=>fr(t)?25:30,background:t=>Z.secondaryFixedDim,secondBackground:t=>Z.secondaryFixed,contrastCurve:new xt(3,4.5,7,11)});Z.tertiaryFixed=De.fromPalette({name:"tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?40:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.tertiaryFixed,Z.tertiaryFixedDim,10,"lighter",!0)});Z.tertiaryFixedDim=De.fromPalette({name:"tertiary_fixed_dim",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?30:80,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.tertiaryFixed,Z.tertiaryFixedDim,10,"lighter",!0)});Z.onTertiaryFixed=De.fromPalette({name:"on_tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?100:10,background:t=>Z.tertiaryFixedDim,secondBackground:t=>Z.tertiaryFixed,contrastCurve:new xt(4.5,7,11,21)});Z.onTertiaryFixedVariant=De.fromPalette({name:"on_tertiary_fixed_variant",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?90:30,background:t=>Z.tertiaryFixedDim,secondBackground:t=>Z.tertiaryFixed,contrastCurve:new xt(3,4.5,7,11)});/** +*/function Yl(t){return t.variant===_a.FIDELITY||t.variant===_a.CONTENT}function fr(t){return t.variant===_a.MONOCHROME}function Dq(t,e,r,n){let o=r,i=Ur.from(t,e,r);if(i.chromac.chroma||Math.abs(c.chroma-e)<.4)break;const d=Math.abs(c.chroma-e),u=Math.abs(i.chroma-e);dt.primaryPalette,tone:t=>t.primaryPalette.keyColor.tone});Z.secondaryPaletteKeyColor=De.fromPalette({name:"secondary_palette_key_color",palette:t=>t.secondaryPalette,tone:t=>t.secondaryPalette.keyColor.tone});Z.tertiaryPaletteKeyColor=De.fromPalette({name:"tertiary_palette_key_color",palette:t=>t.tertiaryPalette,tone:t=>t.tertiaryPalette.keyColor.tone});Z.neutralPaletteKeyColor=De.fromPalette({name:"neutral_palette_key_color",palette:t=>t.neutralPalette,tone:t=>t.neutralPalette.keyColor.tone});Z.neutralVariantPaletteKeyColor=De.fromPalette({name:"neutral_variant_palette_key_color",palette:t=>t.neutralVariantPalette,tone:t=>t.neutralVariantPalette.keyColor.tone});Z.background=De.fromPalette({name:"background",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0});Z.onBackground=De.fromPalette({name:"on_background",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>Z.background,contrastCurve:new xt(3,3,4.5,7)});Z.surface=De.fromPalette({name:"surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0});Z.surfaceDim=De.fromPalette({name:"surface_dim",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:87,isBackground:!0});Z.surfaceBright=De.fromPalette({name:"surface_bright",palette:t=>t.neutralPalette,tone:t=>t.isDark?24:98,isBackground:!0});Z.surfaceContainerLowest=De.fromPalette({name:"surface_container_lowest",palette:t=>t.neutralPalette,tone:t=>t.isDark?4:100,isBackground:!0});Z.surfaceContainerLow=De.fromPalette({name:"surface_container_low",palette:t=>t.neutralPalette,tone:t=>t.isDark?10:96,isBackground:!0});Z.surfaceContainer=De.fromPalette({name:"surface_container",palette:t=>t.neutralPalette,tone:t=>t.isDark?12:94,isBackground:!0});Z.surfaceContainerHigh=De.fromPalette({name:"surface_container_high",palette:t=>t.neutralPalette,tone:t=>t.isDark?17:92,isBackground:!0});Z.surfaceContainerHighest=De.fromPalette({name:"surface_container_highest",palette:t=>t.neutralPalette,tone:t=>t.isDark?22:90,isBackground:!0});Z.onSurface=De.fromPalette({name:"on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>Z.highestSurface(t),contrastCurve:new xt(4.5,7,11,21)});Z.surfaceVariant=De.fromPalette({name:"surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:90,isBackground:!0});Z.onSurfaceVariant=De.fromPalette({name:"on_surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?80:30,background:t=>Z.highestSurface(t),contrastCurve:new xt(3,4.5,7,11)});Z.inverseSurface=De.fromPalette({name:"inverse_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:20});Z.inverseOnSurface=De.fromPalette({name:"inverse_on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?20:95,background:t=>Z.inverseSurface,contrastCurve:new xt(4.5,7,11,21)});Z.outline=De.fromPalette({name:"outline",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?60:50,background:t=>Z.highestSurface(t),contrastCurve:new xt(1.5,3,4.5,7)});Z.outlineVariant=De.fromPalette({name:"outline_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:80,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7)});Z.shadow=De.fromPalette({name:"shadow",palette:t=>t.neutralPalette,tone:t=>0});Z.scrim=De.fromPalette({name:"scrim",palette:t=>t.neutralPalette,tone:t=>0});Z.surfaceTint=De.fromPalette({name:"surface_tint",palette:t=>t.primaryPalette,tone:t=>t.isDark?80:40,isBackground:!0});Z.primary=De.fromPalette({name:"primary",palette:t=>t.primaryPalette,tone:t=>fr(t)?t.isDark?100:0:t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.primaryContainer,Z.primary,15,"nearer",!1)});Z.onPrimary=De.fromPalette({name:"on_primary",palette:t=>t.primaryPalette,tone:t=>fr(t)?t.isDark?10:90:t.isDark?20:100,background:t=>Z.primary,contrastCurve:new xt(4.5,7,11,21)});Z.primaryContainer=De.fromPalette({name:"primary_container",palette:t=>t.primaryPalette,tone:t=>Yl(t)?Cb(t.sourceColorHct,t):fr(t)?t.isDark?85:25:t.isDark?30:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.primaryContainer,Z.primary,15,"nearer",!1)});Z.onPrimaryContainer=De.fromPalette({name:"on_primary_container",palette:t=>t.primaryPalette,tone:t=>Yl(t)?De.foregroundTone(Z.primaryContainer.tone(t),4.5):fr(t)?t.isDark?0:100:t.isDark?90:10,background:t=>Z.primaryContainer,contrastCurve:new xt(4.5,7,11,21)});Z.inversePrimary=De.fromPalette({name:"inverse_primary",palette:t=>t.primaryPalette,tone:t=>t.isDark?40:80,background:t=>Z.inverseSurface,contrastCurve:new xt(3,4.5,7,11)});Z.secondary=De.fromPalette({name:"secondary",palette:t=>t.secondaryPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.secondaryContainer,Z.secondary,15,"nearer",!1)});Z.onSecondary=De.fromPalette({name:"on_secondary",palette:t=>t.secondaryPalette,tone:t=>fr(t)?t.isDark?10:100:t.isDark?20:100,background:t=>Z.secondary,contrastCurve:new xt(4.5,7,11,21)});Z.secondaryContainer=De.fromPalette({name:"secondary_container",palette:t=>t.secondaryPalette,tone:t=>{const e=t.isDark?30:90;if(fr(t))return t.isDark?30:85;if(!Yl(t))return e;let r=Dq(t.secondaryPalette.hue,t.secondaryPalette.chroma,e,!t.isDark);return r=Cb(t.secondaryPalette.getHct(r),t),r},isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.secondaryContainer,Z.secondary,15,"nearer",!1)});Z.onSecondaryContainer=De.fromPalette({name:"on_secondary_container",palette:t=>t.secondaryPalette,tone:t=>Yl(t)?De.foregroundTone(Z.secondaryContainer.tone(t),4.5):t.isDark?90:10,background:t=>Z.secondaryContainer,contrastCurve:new xt(4.5,7,11,21)});Z.tertiary=De.fromPalette({name:"tertiary",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?t.isDark?90:25:t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.tertiaryContainer,Z.tertiary,15,"nearer",!1)});Z.onTertiary=De.fromPalette({name:"on_tertiary",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?t.isDark?10:90:t.isDark?20:100,background:t=>Z.tertiary,contrastCurve:new xt(4.5,7,11,21)});Z.tertiaryContainer=De.fromPalette({name:"tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>{if(fr(t))return t.isDark?60:49;if(!Yl(t))return t.isDark?30:90;const e=Cb(t.tertiaryPalette.getHct(t.sourceColorHct.tone),t),r=t.tertiaryPalette.getHct(e);return ah.fixIfDisliked(r).tone},isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.tertiaryContainer,Z.tertiary,15,"nearer",!1)});Z.onTertiaryContainer=De.fromPalette({name:"on_tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?t.isDark?0:100:Yl(t)?De.foregroundTone(Z.tertiaryContainer.tone(t),4.5):t.isDark?90:10,background:t=>Z.tertiaryContainer,contrastCurve:new xt(4.5,7,11,21)});Z.error=De.fromPalette({name:"error",palette:t=>t.errorPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.errorContainer,Z.error,15,"nearer",!1)});Z.onError=De.fromPalette({name:"on_error",palette:t=>t.errorPalette,tone:t=>t.isDark?20:100,background:t=>Z.error,contrastCurve:new xt(4.5,7,11,21)});Z.errorContainer=De.fromPalette({name:"error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?30:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.errorContainer,Z.error,15,"nearer",!1)});Z.onErrorContainer=De.fromPalette({name:"on_error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?90:10,background:t=>Z.errorContainer,contrastCurve:new xt(4.5,7,11,21)});Z.primaryFixed=De.fromPalette({name:"primary_fixed",palette:t=>t.primaryPalette,tone:t=>fr(t)?40:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.primaryFixed,Z.primaryFixedDim,10,"lighter",!0)});Z.primaryFixedDim=De.fromPalette({name:"primary_fixed_dim",palette:t=>t.primaryPalette,tone:t=>fr(t)?30:80,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.primaryFixed,Z.primaryFixedDim,10,"lighter",!0)});Z.onPrimaryFixed=De.fromPalette({name:"on_primary_fixed",palette:t=>t.primaryPalette,tone:t=>fr(t)?100:10,background:t=>Z.primaryFixedDim,secondBackground:t=>Z.primaryFixed,contrastCurve:new xt(4.5,7,11,21)});Z.onPrimaryFixedVariant=De.fromPalette({name:"on_primary_fixed_variant",palette:t=>t.primaryPalette,tone:t=>fr(t)?90:30,background:t=>Z.primaryFixedDim,secondBackground:t=>Z.primaryFixed,contrastCurve:new xt(3,4.5,7,11)});Z.secondaryFixed=De.fromPalette({name:"secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>fr(t)?80:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.secondaryFixed,Z.secondaryFixedDim,10,"lighter",!0)});Z.secondaryFixedDim=De.fromPalette({name:"secondary_fixed_dim",palette:t=>t.secondaryPalette,tone:t=>fr(t)?70:80,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.secondaryFixed,Z.secondaryFixedDim,10,"lighter",!0)});Z.onSecondaryFixed=De.fromPalette({name:"on_secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>10,background:t=>Z.secondaryFixedDim,secondBackground:t=>Z.secondaryFixed,contrastCurve:new xt(4.5,7,11,21)});Z.onSecondaryFixedVariant=De.fromPalette({name:"on_secondary_fixed_variant",palette:t=>t.secondaryPalette,tone:t=>fr(t)?25:30,background:t=>Z.secondaryFixedDim,secondBackground:t=>Z.secondaryFixed,contrastCurve:new xt(3,4.5,7,11)});Z.tertiaryFixed=De.fromPalette({name:"tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?40:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.tertiaryFixed,Z.tertiaryFixedDim,10,"lighter",!0)});Z.tertiaryFixedDim=De.fromPalette({name:"tertiary_fixed_dim",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?30:80,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new xt(1,1,3,7),toneDeltaPair:t=>new vn(Z.tertiaryFixed,Z.tertiaryFixedDim,10,"lighter",!0)});Z.onTertiaryFixed=De.fromPalette({name:"on_tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?100:10,background:t=>Z.tertiaryFixedDim,secondBackground:t=>Z.tertiaryFixed,contrastCurve:new xt(4.5,7,11,21)});Z.onTertiaryFixedVariant=De.fromPalette({name:"on_tertiary_fixed_variant",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?90:30,background:t=>Z.tertiaryFixedDim,secondBackground:t=>Z.tertiaryFixed,contrastCurve:new xt(3,4.5,7,11)});/** * @license * Copyright 2021 Google LLC * @@ -301,7 +301,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/class Zc{constructor(e){this.input=e,this.hctsByTempCache=[],this.hctsByHueCache=[],this.tempsByHctCache=new Map,this.inputRelativeTemperatureCache=-1,this.complementCache=null}get hctsByTemp(){if(this.hctsByTempCache.length>0)return this.hctsByTempCache;const e=this.hctsByHue.concat([this.input]),r=this.tempsByHct;return e.sort((n,o)=>r.get(n)-r.get(o)),this.hctsByTempCache=e,e}get warmest(){return this.hctsByTemp[this.hctsByTemp.length-1]}get coldest(){return this.hctsByTemp[0]}analogous(e=5,r=12){const n=Math.round(this.input.hue),o=this.hctsByHue[n];let i=this.relativeTemperature(o);const a=[o];let c=0;for(let h=0;h<360;h++){const m=T5(n+h),y=this.hctsByHue[m],v=this.relativeTemperature(y),x=Math.abs(v-i);i=v,c+=x}let d=1;const u=c/r;let f=0;for(i=this.relativeTemperature(o);a.length=x,T=1;for(;E&&a.length=C,T++}if(i=y,d++,d>360){for(;a.length=a.length&&(m=m%a.length),g.splice(0,0,a[m])}const b=e-_-1;for(let h=1;h=a.length&&(m=m%a.length),g.push(a[m])}return g}get complement(){if(this.complementCache!=null)return this.complementCache;const e=this.coldest.hue,r=this.tempsByHct.get(this.coldest),n=this.warmest.hue,i=this.tempsByHct.get(this.warmest)-r,a=Zc.isBetween(this.input.hue,e,n),c=a?n:e,d=a?e:n,u=1;let f=1e3,g=this.hctsByHue[Math.round(this.input.hue)];const _=1-this.inputRelativeTemperature;for(let b=0;b<=360;b+=1){const h=ss(c+u*b);if(!Zc.isBetween(h,c,d))continue;const m=this.hctsByHue[Math.round(h)],y=(this.tempsByHct.get(m)-r)/i,v=Math.abs(_-y);v=0?this.inputRelativeTemperatureCache:(this.inputRelativeTemperatureCache=this.relativeTemperature(this.input),this.inputRelativeTemperatureCache)}get tempsByHct(){if(this.tempsByHctCache.size>0)return this.tempsByHctCache;const e=this.hctsByHue.concat([this.input]),r=new Map;for(const n of e)r.set(n,Zc.rawTemperature(n));return this.tempsByHctCache=r,r}get hctsByHue(){if(this.hctsByHueCache.length>0)return this.hctsByHueCache;const e=[];for(let r=0;r<=360;r+=1){const n=Ur.from(r,this.input.chroma,this.input.tone);e.push(n)}return this.hctsByHueCache=e,this.hctsByHueCache}static isBetween(e,r,n){return r0)return this.hctsByTempCache;const e=this.hctsByHue.concat([this.input]),r=this.tempsByHct;return e.sort((n,o)=>r.get(n)-r.get(o)),this.hctsByTempCache=e,e}get warmest(){return this.hctsByTemp[this.hctsByTemp.length-1]}get coldest(){return this.hctsByTemp[0]}analogous(e=5,r=12){const n=Math.round(this.input.hue),o=this.hctsByHue[n];let i=this.relativeTemperature(o);const a=[o];let c=0;for(let h=0;h<360;h++){const m=T5(n+h),y=this.hctsByHue[m],v=this.relativeTemperature(y),x=Math.abs(v-i);i=v,c+=x}let d=1;const u=c/r;let f=0;for(i=this.relativeTemperature(o);a.length=x,T=1;for(;E&&a.length=C,T++}if(i=y,d++,d>360){for(;a.length=a.length&&(m=m%a.length),g.splice(0,0,a[m])}const b=e-_-1;for(let h=1;h=a.length&&(m=m%a.length),g.push(a[m])}return g}get complement(){if(this.complementCache!=null)return this.complementCache;const e=this.coldest.hue,r=this.tempsByHct.get(this.coldest),n=this.warmest.hue,i=this.tempsByHct.get(this.warmest)-r,a=Zc.isBetween(this.input.hue,e,n),c=a?n:e,d=a?e:n,u=1;let f=1e3,g=this.hctsByHue[Math.round(this.input.hue)];const _=1-this.inputRelativeTemperature;for(let b=0;b<=360;b+=1){const h=ss(c+u*b);if(!Zc.isBetween(h,c,d))continue;const m=this.hctsByHue[Math.round(h)],y=(this.tempsByHct.get(m)-r)/i,v=Math.abs(_-y);v=0?this.inputRelativeTemperatureCache:(this.inputRelativeTemperatureCache=this.relativeTemperature(this.input),this.inputRelativeTemperatureCache)}get tempsByHct(){if(this.tempsByHctCache.size>0)return this.tempsByHctCache;const e=this.hctsByHue.concat([this.input]),r=new Map;for(const n of e)r.set(n,Zc.rawTemperature(n));return this.tempsByHctCache=r,r}get hctsByHue(){if(this.hctsByHueCache.length>0)return this.hctsByHueCache;const e=[];for(let r=0;r<=360;r+=1){const n=Ur.from(r,this.input.chroma,this.input.tone);e.push(n)}return this.hctsByHueCache=e,this.hctsByHueCache}static isBetween(e,r,n){return r>>0}function ii(t){return parseInt(t,16)}function HC(t,e,r="material-theme"){let n=globalThis[r];n||(n=new CSSStyleSheet,globalThis[r]=n,t.adoptedStyleSheets.push(n)),n.replaceSync(e),localStorage.setItem(r,e)}const Uq={background:Z.background,"on-background":Z.onBackground,surface:Z.surface,"surface-dim":Z.surfaceDim,"surface-bright":Z.surfaceBright,"surface-container-lowest":Z.surfaceContainerLowest,"surface-container-low":Z.surfaceContainerLow,"surface-container":Z.surfaceContainer,"surface-container-high":Z.surfaceContainerHigh,"surface-container-highest":Z.surfaceContainerHighest,"on-surface":Z.onSurface,"surface-variant":Z.surfaceVariant,"on-surface-variant":Z.onSurfaceVariant,"inverse-surface":Z.inverseSurface,"inverse-on-surface":Z.inverseOnSurface,outline:Z.outline,"outline-variant":Z.outlineVariant,shadow:Z.shadow,scrim:Z.scrim,"surface-tint":Z.surfaceTint,primary:Z.primary,"on-primary":Z.onPrimary,"primary-container":Z.primaryContainer,"on-primary-container":Z.onPrimaryContainer,"inverse-primary":Z.inversePrimary,secondary:Z.secondary,"on-secondary":Z.onSecondary,"secondary-container":Z.secondaryContainer,"on-secondary-container":Z.onSecondaryContainer,tertiary:Z.tertiary,"on-tertiary":Z.onTertiary,"tertiary-container":Z.tertiaryContainer,"on-tertiary-container":Z.onTertiaryContainer,error:Z.error,"on-error":Z.onError,"error-container":Z.errorContainer,"on-error-container":Z.onErrorContainer};function Vq(t,e){const r=new zq(Ur.fromInt(Bq(t)),e,0),n={};for(const[o,i]of Object.entries(Uq))n[o]=qq(i.getArgb(r));return n["on-surface-selected"]=n["on-surface"]+"14",n}function jq(t,e,r="material-theme"){let n=":root,:host{";for(const[o,i]of Object.entries(e))n+=`--md-sys-color-${o}:${i};`;n+="}",HC(t,n,r)}function Ab(t,e){const r=Vq(t,e);jq(document,r),window.dispatchEvent(new Event("theme-changed"))}function sh(t,e=!0){let r=t==="dark";return t==="auto"&&(r=window.matchMedia("(prefers-color-scheme: dark)").matches,e&&Gq(r?"dark":"light")),r}function Hq(){return localStorage.getItem("material-theme")}function gp(){return localStorage.getItem("color-mode")}function WC(t){localStorage.setItem("color-mode",t)}function Sb(){return localStorage.getItem("seed-color")}function GC(t){localStorage.setItem("seed-color",t)}function Wq(){return localStorage.getItem("last-auto-color-mode")}function Gq(t){localStorage.setItem("last-auto-color-mode",t)}function QC(t){const e=gp(),r=sh(e);Ab(t,r),GC(t)}function KC(t){const e=Sb(),r=sh(t);Ab(e,r),WC(t),Ib()}function Qq(t,e){const r=sh(e);Ab(t,r),Ib(),GC(t),WC(e)}function Ib(){localStorage.getItem("color-mode")==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),mt.emit("color_mode_changed")}function $b(t){const e=t.toLowerCase();return e.startsWith("https://")||e.startsWith("http://")||e.startsWith("blob:")}function Ob(t){return $b(t)?t:`${hs()}/fs?id=${encodeURIComponent(t)}`}function gl(t,e){return!e||!t?"":Ob($l(t,e))}function Kq(){return`${hs()}/upload`}function Za(t,e){const r=document.createElement("a");typeof r.download=="string"?(r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)):window.open(t)}function hve(t,e,r){const n=new Blob([t],{type:e}),o=URL.createObjectURL(n);Za(o,r)}function Bo(t){return t.substring(t.lastIndexOf("/")+1)}function Pb(t){return zt.codec.base64.toBits(t)}function YC(t,e){if(!t)return"";const r=qd(t,e);return UC(r)}function Yq(t,e){return e.startsWith("app://")?t+"/"+e.replace("app://",""):e}function $l(t,e){if(!e||!t)return"";const r=e.toLowerCase();if(r.startsWith("https://")||r.startsWith("http://"))return e;const n=window.fileIdMap||new Map;if(n.has(e))return n.get(e)??"";const o=qd(t,e),i=UC(o);return n.set(e,i),i}async function ZC(t,e){const r=localStorage.getItem("auth_token")??"",n=zt.codec.base64.toBits(r),o=1e3*1e3*512;async function i(a,c,d){const u=Math.min(a+o,t.file.size),f=u-a,g=new FormData,_=xb(qd(n,JSON.stringify({dir:t.dir,replace:e,index:c,size:f,total:d})));g.append("info",new Blob([_]));const b=t.file.slice(a,u);return g.append("file",new File([b],a>0?t.fileName:t.file.name)),new Promise(h=>{const m=new XMLHttpRequest;let y=0;m.upload.addEventListener("progress",function(v){v.lengthComputable&&(y===0&&(y=v.total-f),v.loaded>y&&(t.uploadedSize=a+v.loaded-y))},!1),m.upload.addEventListener("load",function(){c===d-1&&(t.uploadedSize=t.file.size,t.status="saving")},!1),m.onreadystatechange=function(){console.log(m),m.readyState===4&&(m.status===201?h({fileName:m.responseText}):h({error:m.responseText}))};try{m.open("POST",Kq(),!0),m.setRequestHeader("c-id",localStorage.getItem("client_id")??""),m.send(g),t.xhr=m}catch(v){h({error:v.message})}})}try{let a=0;const c=[];for(;a=0);t.status="done"}catch(a){t.status="error",t.error=a}}const Zq={type:"alert"},Xq={slot:"headline"},Jq={slot:"content",method:"dialog"},eB={slot:"actions"},jg=Bt({__name:"ConfirmModal",props:{title:{type:String},message:{type:String}},setup(t){function e(){as()}return(r,n)=>(te(),ie("md-dialog",Zq,[V("div",Xq,Ne(t.title||r.$t("confirm")),1),V("section",Jq,[V("pre",null,Ne(t.message),1)]),V("div",eB,[V("md-filled-button",{form:"form",value:"ok",onClick:e},Ne(r.$t("ok")),1)])]))}}),tB={key:0,class:"top-error"},rB=["onClick"],nB=Bt({__name:"App",setup(t){const{t:e}=$n();document.title=e("app_name");const r=Se("");let n,o=1e3;async function i(){const u=localStorage.getItem("client_id"),f=localStorage.getItem("auth_token")??"";if(!f)return;const g=Pb(f);n=new WebSocket(`${hq()}?cid=${u}`),n.onopen=async()=>{mt.emit("app_socket_connection_changed",!0),console.log("WebSocket is connecting to app"),o=1e3;const _=qd(g,new Date().getTime().toString());n.send(xb(_)),r.value=""},n.onmessage=async _=>{let b;try{b=JSON.parse(await _.data.text())}catch{b=JSON.parse(BC(g,bb(await _.data.arrayBuffer())))}console.log(b),b.encrypted?mt.emit(b.type.toLowerCase(),JSON.parse(b.data)):mt.emit(b.type.toLowerCase(),b.data)},n.onclose=_=>{setTimeout(()=>{i()},Math.min(5e3,o)),o+=1e3,r.value="closed"},n.onerror=_=>{console.error(_),n.close(),mt.emit("app_socket_connection_changed",!1),r.value="error"}}const a=async()=>{if((await fetch(`${hs()}/health_check`)).status===200){fp(jg,{title:e("troubleshoot"),message:e("failed_connect_ws")});return}fp(jg,{title:e("troubleshoot"),message:e("fix_disconnect_tips")})};function c(){if(gp()!=="auto")return;const u=sh("auto",!1)?"dark":"light",f=Wq();u!==f&&KC("auto")}function d(){const u=Hq();u?(HC(document,u),Ib()):Qq("#0000FF","auto")}return mn(()=>{mt.on("toast",u=>{vi(e(u))}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{gp()==="auto"&&QC(Sb())});try{d(),c()}catch(u){console.error(u)}i()}),(u,f)=>{const g=Fy("router-view"),_=x9;return te(),ie(Pt,null,[r.value?(te(),ie("div",tB,[Lo(Ne(u.$t("web_socket_reconnecting"))+" ",1),V("md-filled-button",{class:"btn-sm",onClick:Ot(a,["stop"])},Ne(u.$t("troubleshoot")),9,rB)])):Tt("",!0),Be(g),(te(),Hr(Vy,{to:"body"},[Be(_)]))],64)}}});const gn=(t,e)=>{const r=t.__vccOpts||t;for(const[n,o]of e)r[n]=o;return r},oB=gn(nB,[["__scopeId","data-v-ae6aa58f"]]);"serviceWorker"in navigator?navigator.serviceWorker.register("/sw.js").then(t=>{console.log("Service worker registration succeeded:",t)},t=>{console.error(`Service worker registration failed: ${t}`)}):console.error("Service workers are not supported.");const iB="modulepreload",aB=function(t){return"/"+t},A5={},it=function(e,r,n){if(!r||r.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=aB(i),i in A5)return;A5[i]=!0;const a=i.endsWith(".css"),c=a?'[rel="stylesheet"]':"";if(!!n)for(let f=o.length-1;f>=0;f--){const g=o[f];if(g.href===i&&(!a||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${c}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":iB,a||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),a)return new Promise((f,g)=>{u.addEventListener("load",f),u.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};/*! +*/function zq(t){const e=Eb(t),r=Tb(t),n=kb(t),o=[e.toString(16),r.toString(16),n.toString(16)];for(const[i,a]of o.entries())a.length===1&&(o[i]="0"+a);return"#"+o.join("")}function qq(t){t=t.replace("#","");const e=t.length===3,r=t.length===6,n=t.length===8;if(!e&&!r&&!n)throw new Error("unexpected hex "+t);let o=0,i=0,a=0;return e?(o=ii(t.slice(0,1).repeat(2)),i=ii(t.slice(1,2).repeat(2)),a=ii(t.slice(2,3).repeat(2))):r?(o=ii(t.slice(0,2)),i=ii(t.slice(2,4)),a=ii(t.slice(4,6))):n&&(o=ii(t.slice(2,4)),i=ii(t.slice(4,6)),a=ii(t.slice(6,8))),(255<<24|(o&255)<<16|(i&255)<<8|a&255)>>>0}function ii(t){return parseInt(t,16)}function jC(t,e,r="material-theme"){let n=globalThis[r];n||(n=new CSSStyleSheet,globalThis[r]=n,t.adoptedStyleSheets.push(n)),n.replaceSync(e),localStorage.setItem(r,e)}const Bq={background:Z.background,"on-background":Z.onBackground,surface:Z.surface,"surface-dim":Z.surfaceDim,"surface-bright":Z.surfaceBright,"surface-container-lowest":Z.surfaceContainerLowest,"surface-container-low":Z.surfaceContainerLow,"surface-container":Z.surfaceContainer,"surface-container-high":Z.surfaceContainerHigh,"surface-container-highest":Z.surfaceContainerHighest,"on-surface":Z.onSurface,"surface-variant":Z.surfaceVariant,"on-surface-variant":Z.onSurfaceVariant,"inverse-surface":Z.inverseSurface,"inverse-on-surface":Z.inverseOnSurface,outline:Z.outline,"outline-variant":Z.outlineVariant,shadow:Z.shadow,scrim:Z.scrim,"surface-tint":Z.surfaceTint,primary:Z.primary,"on-primary":Z.onPrimary,"primary-container":Z.primaryContainer,"on-primary-container":Z.onPrimaryContainer,"inverse-primary":Z.inversePrimary,secondary:Z.secondary,"on-secondary":Z.onSecondary,"secondary-container":Z.secondaryContainer,"on-secondary-container":Z.onSecondaryContainer,tertiary:Z.tertiary,"on-tertiary":Z.onTertiary,"tertiary-container":Z.tertiaryContainer,"on-tertiary-container":Z.onTertiaryContainer,error:Z.error,"on-error":Z.onError,"error-container":Z.errorContainer,"on-error-container":Z.onErrorContainer};function Uq(t,e){const r=new Nq(Ur.fromInt(qq(t)),e,0),n={};for(const[o,i]of Object.entries(Bq))n[o]=zq(i.getArgb(r));return n["on-surface-selected"]=n["on-surface"]+"14",n}function Vq(t,e,r="material-theme"){let n=":root,:host{";for(const[o,i]of Object.entries(e))n+=`--md-sys-color-${o}:${i};`;n+="}",jC(t,n,r)}function Ab(t,e){const r=Uq(t,e);Vq(document,r),window.dispatchEvent(new Event("theme-changed"))}function sh(t,e=!0){let r=t==="dark";return t==="auto"&&(r=window.matchMedia("(prefers-color-scheme: dark)").matches,e&&Wq(r?"dark":"light")),r}function jq(){return localStorage.getItem("material-theme")}function gp(){return localStorage.getItem("color-mode")}function HC(t){localStorage.setItem("color-mode",t)}function Sb(){return localStorage.getItem("seed-color")}function WC(t){localStorage.setItem("seed-color",t)}function Hq(){return localStorage.getItem("last-auto-color-mode")}function Wq(t){localStorage.setItem("last-auto-color-mode",t)}function GC(t){const e=gp(),r=sh(e);Ab(t,r),WC(t)}function QC(t){const e=Sb(),r=sh(t);Ab(e,r),HC(t),Ib()}function Gq(t,e){const r=sh(e);Ab(t,r),Ib(),WC(t),HC(e)}function Ib(){localStorage.getItem("color-mode")==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),mt.emit("color_mode_changed")}function $b(t){const e=t.toLowerCase();return e.startsWith("https://")||e.startsWith("http://")||e.startsWith("blob:")}function Ob(t){return $b(t)?t:`${hs()}/fs?id=${encodeURIComponent(t)}`}function gl(t,e){return!e||!t?"":Ob($l(t,e))}function Qq(){return`${hs()}/upload`}function Za(t,e){const r=document.createElement("a");typeof r.download=="string"?(r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)):window.open(t)}function pve(t,e,r){const n=new Blob([t],{type:e}),o=URL.createObjectURL(n);Za(o,r)}function Bo(t){return t.substring(t.lastIndexOf("/")+1)}function Pb(t){return zt.codec.base64.toBits(t)}function KC(t,e){if(!t)return"";const r=qd(t,e);return BC(r)}function Kq(t,e){return e.startsWith("app://")?t+"/"+e.replace("app://",""):e}function $l(t,e){if(!e||!t)return"";const r=e.toLowerCase();if(r.startsWith("https://")||r.startsWith("http://"))return e;const n=window.fileIdMap||new Map;if(n.has(e))return n.get(e)??"";const o=qd(t,e),i=BC(o);return n.set(e,i),i}async function YC(t,e){const r=localStorage.getItem("auth_token")??"",n=zt.codec.base64.toBits(r),o=1e3*1e3*512;async function i(a,c,d){const u=Math.min(a+o,t.file.size),f=u-a,g=new FormData,_=xb(qd(n,JSON.stringify({dir:t.dir,replace:e,index:c,size:f,total:d})));g.append("info",new Blob([_]));const b=t.file.slice(a,u);return g.append("file",new File([b],a>0?t.fileName:t.file.name)),new Promise(h=>{const m=new XMLHttpRequest;let y=0;m.upload.addEventListener("progress",function(v){v.lengthComputable&&(y===0&&(y=v.total-f),v.loaded>y&&(t.uploadedSize=a+v.loaded-y))},!1),m.upload.addEventListener("load",function(){c===d-1&&(t.uploadedSize=t.file.size,t.status="saving")},!1),m.onreadystatechange=function(){console.log(m),m.readyState===4&&(m.status===201?h({fileName:m.responseText}):h({error:m.responseText}))};try{m.open("POST",Qq(),!0),m.setRequestHeader("c-id",localStorage.getItem("client_id")??""),m.send(g),t.xhr=m}catch(v){h({error:v.message})}})}try{let a=0;const c=[];for(;a=0);t.status="done"}catch(a){t.status="error",t.error=a}}const Yq={type:"alert"},Zq={slot:"headline"},Xq={slot:"content",method:"dialog"},Jq={slot:"actions"},jg=Bt({__name:"ConfirmModal",props:{title:{type:String},message:{type:String}},setup(t){function e(){as()}return(r,n)=>(te(),ie("md-dialog",Yq,[V("div",Zq,Ne(t.title||r.$t("confirm")),1),V("section",Xq,[V("pre",null,Ne(t.message),1)]),V("div",Jq,[V("md-filled-button",{form:"form",value:"ok",onClick:e},Ne(r.$t("ok")),1)])]))}}),eB={key:0,class:"top-error"},tB=["onClick"],rB=Bt({__name:"App",setup(t){const{t:e}=$n();document.title=e("app_name");const r=Se("");let n,o=1e3;async function i(){const u=localStorage.getItem("client_id"),f=localStorage.getItem("auth_token")??"";if(!f)return;const g=Pb(f);n=new WebSocket(`${pq()}?cid=${u}`),n.onopen=async()=>{mt.emit("app_socket_connection_changed",!0),console.log("WebSocket is connecting to app"),o=1e3;const _=qd(g,new Date().getTime().toString());n.send(xb(_)),r.value=""},n.onmessage=async _=>{let b;try{b=JSON.parse(await _.data.text())}catch{b=JSON.parse(qC(g,bb(await _.data.arrayBuffer())))}console.log(b),b.encrypted?mt.emit(b.type.toLowerCase(),JSON.parse(b.data)):mt.emit(b.type.toLowerCase(),b.data)},n.onclose=_=>{setTimeout(()=>{i()},Math.min(5e3,o)),o+=1e3,r.value="closed"},n.onerror=_=>{console.error(_),n.close(),mt.emit("app_socket_connection_changed",!1),r.value="error"}}const a=async()=>{if((await fetch(`${hs()}/health_check`)).status===200){fp(jg,{title:e("troubleshoot"),message:e("failed_connect_ws")});return}fp(jg,{title:e("troubleshoot"),message:e("fix_disconnect_tips")})};function c(){if(gp()!=="auto")return;const u=sh("auto",!1)?"dark":"light",f=Hq();u!==f&&QC("auto")}function d(){const u=jq();u?(jC(document,u),Ib()):Gq("#0000FF","auto")}return mn(()=>{mt.on("toast",u=>{vi(e(u))}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{gp()==="auto"&&GC(Sb())});try{d(),c()}catch(u){console.error(u)}i()}),(u,f)=>{const g=Fy("router-view"),_=b9;return te(),ie(Pt,null,[r.value?(te(),ie("div",eB,[Lo(Ne(u.$t("web_socket_reconnecting"))+" ",1),V("md-filled-button",{class:"btn-sm",onClick:Ot(a,["stop"])},Ne(u.$t("troubleshoot")),9,tB)])):Tt("",!0),Be(g),(te(),Hr(Vy,{to:"body"},[Be(_)]))],64)}}});const gn=(t,e)=>{const r=t.__vccOpts||t;for(const[n,o]of e)r[n]=o;return r},nB=gn(rB,[["__scopeId","data-v-ae6aa58f"]]);"serviceWorker"in navigator?navigator.serviceWorker.register("/sw.js").then(t=>{console.log("Service worker registration succeeded:",t)},t=>{console.error(`Service worker registration failed: ${t}`)}):console.error("Service workers are not supported.");const oB="modulepreload",iB=function(t){return"/"+t},A5={},it=function(e,r,n){if(!r||r.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=iB(i),i in A5)return;A5[i]=!0;const a=i.endsWith(".css"),c=a?'[rel="stylesheet"]':"";if(!!n)for(let f=o.length-1;f>=0;f--){const g=o[f];if(g.href===i&&(!a||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${c}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":oB,a||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),a)return new Promise((f,g)=>{u.addEventListener("load",f),u.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};/*! * vue-router v4.2.4 * (c) 2023 Eduardo San Martin Morote * @license MIT -*/const rl=typeof window<"u";function sB(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Mt=Object.assign;function yv(t,e){const r={};for(const n in e){const o=e[n];r[n]=_o(o)?o.map(t):t(o)}return r}const Xc=()=>{},_o=Array.isArray,lB=/\/$/,cB=t=>t.replace(lB,"");function bv(t,e,r="/"){let n,o={},i="",a="";const c=e.indexOf("#");let d=e.indexOf("?");return c=0&&(d=-1),d>-1&&(n=e.slice(0,d),i=e.slice(d+1,c>-1?c:e.length),o=t(i)),c>-1&&(n=n||e.slice(0,c),a=e.slice(c,e.length)),n=pB(n??e,r),{fullPath:n+(i&&"?")+i+a,path:n,query:o,hash:a}}function dB(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function S5(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function uB(t,e,r){const n=e.matched.length-1,o=r.matched.length-1;return n>-1&&n===o&&Ol(e.matched[n],r.matched[o])&&XC(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function Ol(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function XC(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!fB(t[r],e[r]))return!1;return!0}function fB(t,e){return _o(t)?I5(t,e):_o(e)?I5(e,t):t===e}function I5(t,e){return _o(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function pB(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),n=t.split("/"),o=n[n.length-1];(o===".."||o===".")&&n.push("");let i=r.length-1,a,c;for(a=0;a1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var wd;(function(t){t.pop="pop",t.push="push"})(wd||(wd={}));var Jc;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Jc||(Jc={}));function hB(t){if(!t)if(rl){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),cB(t)}const mB=/^[^#]+#/;function vB(t,e){return t.replace(mB,"#")+e}function gB(t,e){const r=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-r.left-(e.left||0),top:n.top-r.top-(e.top||0)}}const lh=()=>({left:window.pageXOffset,top:window.pageYOffset});function _B(t){let e;if("el"in t){const r=t.el,n=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;e=gB(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function $5(t,e){return(history.state?history.state.position-e:-1)+t}const Hg=new Map;function yB(t,e){Hg.set(t,e)}function bB(t){const e=Hg.get(t);return Hg.delete(t),e}let xB=()=>location.protocol+"//"+location.host;function JC(t,e){const{pathname:r,search:n,hash:o}=e,i=t.indexOf("#");if(i>-1){let c=o.includes(t.slice(i))?t.slice(i).length:1,d=o.slice(c);return d[0]!=="/"&&(d="/"+d),S5(d,"")}return S5(r,t)+n+o}function wB(t,e,r,n){let o=[],i=[],a=null;const c=({state:_})=>{const b=JC(t,location),h=r.value,m=e.value;let y=0;if(_){if(r.value=b,e.value=_,a&&a===h){a=null;return}y=m?_.position-m.position:0}else n(b);o.forEach(v=>{v(r.value,h,{delta:y,type:wd.pop,direction:y?y>0?Jc.forward:Jc.back:Jc.unknown})})};function d(){a=r.value}function u(_){o.push(_);const b=()=>{const h=o.indexOf(_);h>-1&&o.splice(h,1)};return i.push(b),b}function f(){const{history:_}=window;_.state&&_.replaceState(Mt({},_.state,{scroll:lh()}),"")}function g(){for(const _ of i)_();i=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:d,listen:u,destroy:g}}function O5(t,e,r,n=!1,o=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:o?lh():null}}function EB(t){const{history:e,location:r}=window,n={value:JC(t,r)},o={value:e.state};o.value||i(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(d,u,f){const g=t.indexOf("#"),_=g>-1?(r.host&&document.querySelector("base")?t:t.slice(g))+d:xB()+t+d;try{e[f?"replaceState":"pushState"](u,"",_),o.value=u}catch(b){console.error(b),r[f?"replace":"assign"](_)}}function a(d,u){const f=Mt({},e.state,O5(o.value.back,d,o.value.forward,!0),u,{position:o.value.position});i(d,f,!0),n.value=d}function c(d,u){const f=Mt({},o.value,e.state,{forward:d,scroll:lh()});i(f.current,f,!0);const g=Mt({},O5(n.value,d,null),{position:f.position+1},u);i(d,g,!1),n.value=d}return{location:n,state:o,push:c,replace:a}}function TB(t){t=hB(t);const e=EB(t),r=wB(t,e.state,e.location,e.replace);function n(i,a=!0){a||r.pauseListeners(),history.go(i)}const o=Mt({location:"",base:t,go:n,createHref:vB.bind(null,t)},e,r);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function kB(t){return typeof t=="string"||t&&typeof t=="object"}function eA(t){return typeof t=="string"||typeof t=="symbol"}const ji={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},tA=Symbol("");var P5;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(P5||(P5={}));function Pl(t,e){return Mt(new Error,{type:t,[tA]:!0},e)}function ai(t,e){return t instanceof Error&&tA in t&&(e==null||!!(t.type&e))}const R5="[^/]+?",CB={sensitive:!1,strict:!1,start:!0,end:!0},AB=/[.+*?^${}()[\]/\\]/g;function SB(t,e){const r=Mt({},CB,e),n=[];let o=r.start?"^":"";const i=[];for(const u of t){const f=u.length?[]:[90];r.strict&&!u.length&&(o+="/");for(let g=0;ge.length?e.length===1&&e[0]===40+40?1:-1:0}function $B(t,e){let r=0;const n=t.score,o=e.score;for(;r0&&e[e.length-1]<0}const OB={type:0,value:""},PB=/[a-zA-Z0-9_]/;function RB(t){if(!t)return[[]];if(t==="/")return[[OB]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(b){throw new Error(`ERR (${r})/"${u}": ${b}`)}let r=0,n=r;const o=[];let i;function a(){i&&o.push(i),i=[]}let c=0,d,u="",f="";function g(){u&&(r===0?i.push({type:0,value:u}):r===1||r===2||r===3?(i.length>1&&(d==="*"||d==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:f,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):e("Invalid state to consume buffer"),u="")}function _(){u+=d}for(;c{a(x)}:Xc}function a(f){if(eA(f)){const g=n.get(f);g&&(n.delete(f),r.splice(r.indexOf(g),1),g.children.forEach(a),g.alias.forEach(a))}else{const g=r.indexOf(f);g>-1&&(r.splice(g,1),f.record.name&&n.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function c(){return r}function d(f){let g=0;for(;g=0&&(f.record.path!==r[g].record.path||!rA(f,r[g]));)g++;r.splice(g,0,f),f.record.name&&!D5(f)&&n.set(f.record.name,f)}function u(f,g){let _,b={},h,m;if("name"in f&&f.name){if(_=n.get(f.name),!_)throw Pl(1,{location:f});m=_.record.name,b=Mt(M5(g.params,_.keys.filter(x=>!x.optional).map(x=>x.name)),f.params&&M5(f.params,_.keys.map(x=>x.name))),h=_.stringify(b)}else if("path"in f)h=f.path,_=r.find(x=>x.re.test(h)),_&&(b=_.parse(h),m=_.record.name);else{if(_=g.name?n.get(g.name):r.find(x=>x.re.test(g.path)),!_)throw Pl(1,{location:f,currentLocation:g});m=_.record.name,b=Mt({},g.params,f.params),h=_.stringify(b)}const y=[];let v=_;for(;v;)y.unshift(v.record),v=v.parent;return{name:m,path:h,params:b,matched:y,meta:NB(y)}}return t.forEach(f=>i(f)),{addRoute:i,resolve:u,removeRoute:a,getRoutes:c,getRecordMatcher:o}}function M5(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function DB(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:FB(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function FB(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const n in t.components)e[n]=typeof r=="object"?r[n]:r;return e}function D5(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function NB(t){return t.reduce((e,r)=>Mt(e,r.meta),{})}function F5(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}function rA(t,e){return e.children.some(r=>r===t||rA(t,r))}const nA=/#/g,zB=/&/g,qB=/\//g,BB=/=/g,UB=/\?/g,oA=/\+/g,VB=/%5B/g,jB=/%5D/g,iA=/%5E/g,HB=/%60/g,aA=/%7B/g,WB=/%7C/g,sA=/%7D/g,GB=/%20/g;function Rb(t){return encodeURI(""+t).replace(WB,"|").replace(VB,"[").replace(jB,"]")}function QB(t){return Rb(t).replace(aA,"{").replace(sA,"}").replace(iA,"^")}function Wg(t){return Rb(t).replace(oA,"%2B").replace(GB,"+").replace(nA,"%23").replace(zB,"%26").replace(HB,"`").replace(aA,"{").replace(sA,"}").replace(iA,"^")}function KB(t){return Wg(t).replace(BB,"%3D")}function YB(t){return Rb(t).replace(nA,"%23").replace(UB,"%3F")}function ZB(t){return t==null?"":YB(t).replace(qB,"%2F")}function _p(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function XB(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let o=0;oi&&Wg(i)):[n&&Wg(n)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+r,i!=null&&(e+="="+i))})}return e}function JB(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=_o(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return e}const eU=Symbol(""),z5=Symbol(""),ch=Symbol(""),Lb=Symbol(""),Gg=Symbol("");function Pc(){let t=[];function e(n){return t.push(n),()=>{const o=t.indexOf(n);o>-1&&t.splice(o,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function Xi(t,e,r,n,o){const i=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((a,c)=>{const d=g=>{g===!1?c(Pl(4,{from:r,to:e})):g instanceof Error?c(g):kB(g)?c(Pl(2,{from:e,to:g})):(i&&n.enterCallbacks[o]===i&&typeof g=="function"&&i.push(g),a())},u=t.call(n&&n.instances[o],e,r,d);let f=Promise.resolve(u);t.length<3&&(f=f.then(d)),f.catch(g=>c(g))})}function xv(t,e,r,n){const o=[];for(const i of t)for(const a in i.components){let c=i.components[a];if(!(e!=="beforeRouteEnter"&&!i.instances[a]))if(tU(c)){const u=(c.__vccOpts||c)[e];u&&o.push(Xi(u,r,n,i,a))}else{let d=c();o.push(()=>d.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const f=sB(u)?u.default:u;i.components[a]=f;const _=(f.__vccOpts||f)[e];return _&&Xi(_,r,n,i,a)()}))}}return o}function tU(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function q5(t){const e=rn(ch),r=rn(Lb),n=St(()=>e.resolve(he(t.to))),o=St(()=>{const{matched:d}=n.value,{length:u}=d,f=d[u-1],g=r.matched;if(!f||!g.length)return-1;const _=g.findIndex(Ol.bind(null,f));if(_>-1)return _;const b=B5(d[u-2]);return u>1&&B5(f)===b&&g[g.length-1].path!==b?g.findIndex(Ol.bind(null,d[u-2])):_}),i=St(()=>o.value>-1&&iU(r.params,n.value.params)),a=St(()=>o.value>-1&&o.value===r.matched.length-1&&XC(r.params,n.value.params));function c(d={}){return oU(d)?e[he(t.replace)?"replace":"push"](he(t.to)).catch(Xc):Promise.resolve()}return{route:n,href:St(()=>n.value.href),isActive:i,isExactActive:a,navigate:c}}const rU=Bt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:q5,setup(t,{slots:e}){const r=vo(q5(t)),{options:n}=rn(ch),o=St(()=>({[U5(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[U5(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=e.default&&e.default(r);return t.custom?i:No("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},i)}}}),nU=rU;function oU(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function iU(t,e){for(const r in e){const n=e[r],o=t[r];if(typeof n=="string"){if(n!==o)return!1}else if(!_o(o)||o.length!==n.length||n.some((i,a)=>i!==o[a]))return!1}return!0}function B5(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const U5=(t,e,r)=>t??e??r,aU=Bt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=rn(Gg),o=St(()=>t.route||n.value),i=rn(z5,0),a=St(()=>{let u=he(i);const{matched:f}=o.value;let g;for(;(g=f[u])&&!g.components;)u++;return u}),c=St(()=>o.value.matched[a.value]);Uc(z5,St(()=>a.value+1)),Uc(eU,c),Uc(Gg,o);const d=Se();return Vt(()=>[d.value,c.value,t.name],([u,f,g],[_,b,h])=>{f&&(f.instances[g]=u,b&&b!==f&&u&&u===_&&(f.leaveGuards.size||(f.leaveGuards=b.leaveGuards),f.updateGuards.size||(f.updateGuards=b.updateGuards))),u&&f&&(!b||!Ol(f,b)||!_)&&(f.enterCallbacks[g]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=o.value,f=t.name,g=c.value,_=g&&g.components[f];if(!_)return V5(r.default,{Component:_,route:u});const b=g.props[f],h=b?b===!0?u.params:typeof b=="function"?b(u):b:null,y=No(_,Mt({},h,e,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(g.instances[f]=null)},ref:d}));return V5(r.default,{Component:y,route:u})||y}}});function V5(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const sU=aU;function lU(t){const e=MB(t.routes,t),r=t.parseQuery||XB,n=t.stringifyQuery||N5,o=t.history,i=Pc(),a=Pc(),c=Pc(),d=YL(ji);let u=ji;rl&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=yv.bind(null,J=>""+J),g=yv.bind(null,ZB),_=yv.bind(null,_p);function b(J,me){let ve,$e;return eA(J)?(ve=e.getRecordMatcher(J),$e=me):$e=J,e.addRoute($e,ve)}function h(J){const me=e.getRecordMatcher(J);me&&e.removeRoute(me)}function m(){return e.getRoutes().map(J=>J.record)}function y(J){return!!e.getRecordMatcher(J)}function v(J,me){if(me=Mt({},me||d.value),typeof J=="string"){const I=bv(r,J,me.path),N=e.resolve({path:I.path},me),W=o.createHref(I.fullPath);return Mt(I,N,{params:_(N.params),hash:_p(I.hash),redirectedFrom:void 0,href:W})}let ve;if("path"in J)ve=Mt({},J,{path:bv(r,J.path,me.path).path});else{const I=Mt({},J.params);for(const N in I)I[N]==null&&delete I[N];ve=Mt({},J,{params:g(I)}),me.params=g(me.params)}const $e=e.resolve(ve,me),Oe=J.hash||"";$e.params=f(_($e.params));const M=dB(n,Mt({},J,{hash:QB(Oe),path:$e.path})),k=o.createHref(M);return Mt({fullPath:M,hash:Oe,query:n===N5?JB(J.query):J.query||{}},$e,{redirectedFrom:void 0,href:k})}function x(J){return typeof J=="string"?bv(r,J,d.value.path):Mt({},J)}function E(J,me){if(u!==J)return Pl(8,{from:me,to:J})}function T(J){return L(J)}function C(J){return T(Mt(x(J),{replace:!0}))}function A(J){const me=J.matched[J.matched.length-1];if(me&&me.redirect){const{redirect:ve}=me;let $e=typeof ve=="function"?ve(J):ve;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=x($e):{path:$e},$e.params={}),Mt({query:J.query,hash:J.hash,params:"path"in $e?{}:J.params},$e)}}function L(J,me){const ve=u=v(J),$e=d.value,Oe=J.state,M=J.force,k=J.replace===!0,I=A(ve);if(I)return L(Mt(x(I),{state:typeof I=="object"?Mt({},Oe,I.state):Oe,force:M,replace:k}),me||ve);const N=ve;N.redirectedFrom=me;let W;return!M&&uB(n,$e,ve)&&(W=Pl(16,{to:N,from:$e}),we($e,$e,!0,!1)),(W?Promise.resolve(W):q(N,$e)).catch(Y=>ai(Y)?ai(Y,2)?Y:de(Y):Pe(Y,N,$e)).then(Y=>{if(Y){if(ai(Y,2))return L(Mt({replace:k},x(Y.to),{state:typeof Y.to=="object"?Mt({},Oe,Y.to.state):Oe,force:M}),me||N)}else Y=U(N,$e,!0,k,Oe);return H(N,$e,Y),Y})}function R(J,me){const ve=E(J,me);return ve?Promise.reject(ve):Promise.resolve()}function D(J){const me=He.values().next().value;return me&&typeof me.runWithContext=="function"?me.runWithContext(J):J()}function q(J,me){let ve;const[$e,Oe,M]=cU(J,me);ve=xv($e.reverse(),"beforeRouteLeave",J,me);for(const I of $e)I.leaveGuards.forEach(N=>{ve.push(Xi(N,J,me))});const k=R.bind(null,J,me);return ve.push(k),We(ve).then(()=>{ve=[];for(const I of i.list())ve.push(Xi(I,J,me));return ve.push(k),We(ve)}).then(()=>{ve=xv(Oe,"beforeRouteUpdate",J,me);for(const I of Oe)I.updateGuards.forEach(N=>{ve.push(Xi(N,J,me))});return ve.push(k),We(ve)}).then(()=>{ve=[];for(const I of M)if(I.beforeEnter)if(_o(I.beforeEnter))for(const N of I.beforeEnter)ve.push(Xi(N,J,me));else ve.push(Xi(I.beforeEnter,J,me));return ve.push(k),We(ve)}).then(()=>(J.matched.forEach(I=>I.enterCallbacks={}),ve=xv(M,"beforeRouteEnter",J,me),ve.push(k),We(ve))).then(()=>{ve=[];for(const I of a.list())ve.push(Xi(I,J,me));return ve.push(k),We(ve)}).catch(I=>ai(I,8)?I:Promise.reject(I))}function H(J,me,ve){c.list().forEach($e=>D(()=>$e(J,me,ve)))}function U(J,me,ve,$e,Oe){const M=E(J,me);if(M)return M;const k=me===ji,I=rl?history.state:{};ve&&($e||k?o.replace(J.fullPath,Mt({scroll:k&&I&&I.scroll},Oe)):o.push(J.fullPath,Oe)),d.value=J,we(J,me,ve,k),de()}let ce;function Ae(){ce||(ce=o.listen((J,me,ve)=>{if(!ze.listening)return;const $e=v(J),Oe=A($e);if(Oe){L(Mt(Oe,{replace:!0}),$e).catch(Xc);return}u=$e;const M=d.value;rl&&yB($5(M.fullPath,ve.delta),lh()),q($e,M).catch(k=>ai(k,12)?k:ai(k,2)?(L(k.to,$e).then(I=>{ai(I,20)&&!ve.delta&&ve.type===wd.pop&&o.go(-1,!1)}).catch(Xc),Promise.reject()):(ve.delta&&o.go(-ve.delta,!1),Pe(k,$e,M))).then(k=>{k=k||U($e,M,!1),k&&(ve.delta&&!ai(k,8)?o.go(-ve.delta,!1):ve.type===wd.pop&&ai(k,20)&&o.go(-1,!1)),H($e,M,k)}).catch(Xc)}))}let Le=Pc(),Te=Pc(),Ie;function Pe(J,me,ve){de(J);const $e=Te.list();return $e.length?$e.forEach(Oe=>Oe(J,me,ve)):console.error(J),Promise.reject(J)}function Ce(){return Ie&&d.value!==ji?Promise.resolve():new Promise((J,me)=>{Le.add([J,me])})}function de(J){return Ie||(Ie=!J,Ae(),Le.list().forEach(([me,ve])=>J?ve(J):me()),Le.reset()),J}function we(J,me,ve,$e){const{scrollBehavior:Oe}=t;if(!rl||!Oe)return Promise.resolve();const M=!ve&&bB($5(J.fullPath,0))||($e||!ve)&&history.state&&history.state.scroll||null;return ta().then(()=>Oe(J,me,M)).then(k=>k&&_B(k)).catch(k=>Pe(k,J,me))}const ke=J=>o.go(J);let Re;const He=new Set,ze={currentRoute:d,listening:!0,addRoute:b,removeRoute:h,hasRoute:y,getRoutes:m,resolve:v,options:t,push:T,replace:C,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:a.add,afterEach:c.add,onError:Te.add,isReady:Ce,install(J){const me=this;J.component("RouterLink",nU),J.component("RouterView",sU),J.config.globalProperties.$router=me,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>he(d)}),rl&&!Re&&d.value===ji&&(Re=!0,T(o.location).catch(Oe=>{}));const ve={};for(const Oe in ji)Object.defineProperty(ve,Oe,{get:()=>d.value[Oe],enumerable:!0});J.provide(ch,me),J.provide(Lb,s4(ve)),J.provide(Gg,d);const $e=J.unmount;He.add(J),J.unmount=function(){He.delete(J),He.size<1&&(u=ji,ce&&ce(),ce=null,d.value=ji,Re=!1,Ie=!1),$e()}}};function We(J){return J.reduce((me,ve)=>me.then(()=>D(ve)),Promise.resolve())}return ze}function cU(t,e){const r=[],n=[],o=[],i=Math.max(e.matched.length,t.matched.length);for(let a=0;aOl(u,c))?n.push(c):r.push(c));const d=t.matched[a];d&&(e.matched.find(u=>Ol(u,d))||o.push(d))}return[r,n,o]}function dU(){return rn(ch)}function mve(){return rn(Lb)}/*! +*/const rl=typeof window<"u";function aB(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Mt=Object.assign;function yv(t,e){const r={};for(const n in e){const o=e[n];r[n]=_o(o)?o.map(t):t(o)}return r}const Xc=()=>{},_o=Array.isArray,sB=/\/$/,lB=t=>t.replace(sB,"");function bv(t,e,r="/"){let n,o={},i="",a="";const c=e.indexOf("#");let d=e.indexOf("?");return c=0&&(d=-1),d>-1&&(n=e.slice(0,d),i=e.slice(d+1,c>-1?c:e.length),o=t(i)),c>-1&&(n=n||e.slice(0,c),a=e.slice(c,e.length)),n=fB(n??e,r),{fullPath:n+(i&&"?")+i+a,path:n,query:o,hash:a}}function cB(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function S5(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function dB(t,e,r){const n=e.matched.length-1,o=r.matched.length-1;return n>-1&&n===o&&Ol(e.matched[n],r.matched[o])&&ZC(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function Ol(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function ZC(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!uB(t[r],e[r]))return!1;return!0}function uB(t,e){return _o(t)?I5(t,e):_o(e)?I5(e,t):t===e}function I5(t,e){return _o(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function fB(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),n=t.split("/"),o=n[n.length-1];(o===".."||o===".")&&n.push("");let i=r.length-1,a,c;for(a=0;a1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var wd;(function(t){t.pop="pop",t.push="push"})(wd||(wd={}));var Jc;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Jc||(Jc={}));function pB(t){if(!t)if(rl){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),lB(t)}const hB=/^[^#]+#/;function mB(t,e){return t.replace(hB,"#")+e}function vB(t,e){const r=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-r.left-(e.left||0),top:n.top-r.top-(e.top||0)}}const lh=()=>({left:window.pageXOffset,top:window.pageYOffset});function gB(t){let e;if("el"in t){const r=t.el,n=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;e=vB(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function $5(t,e){return(history.state?history.state.position-e:-1)+t}const Hg=new Map;function _B(t,e){Hg.set(t,e)}function yB(t){const e=Hg.get(t);return Hg.delete(t),e}let bB=()=>location.protocol+"//"+location.host;function XC(t,e){const{pathname:r,search:n,hash:o}=e,i=t.indexOf("#");if(i>-1){let c=o.includes(t.slice(i))?t.slice(i).length:1,d=o.slice(c);return d[0]!=="/"&&(d="/"+d),S5(d,"")}return S5(r,t)+n+o}function xB(t,e,r,n){let o=[],i=[],a=null;const c=({state:_})=>{const b=XC(t,location),h=r.value,m=e.value;let y=0;if(_){if(r.value=b,e.value=_,a&&a===h){a=null;return}y=m?_.position-m.position:0}else n(b);o.forEach(v=>{v(r.value,h,{delta:y,type:wd.pop,direction:y?y>0?Jc.forward:Jc.back:Jc.unknown})})};function d(){a=r.value}function u(_){o.push(_);const b=()=>{const h=o.indexOf(_);h>-1&&o.splice(h,1)};return i.push(b),b}function f(){const{history:_}=window;_.state&&_.replaceState(Mt({},_.state,{scroll:lh()}),"")}function g(){for(const _ of i)_();i=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:d,listen:u,destroy:g}}function O5(t,e,r,n=!1,o=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:o?lh():null}}function wB(t){const{history:e,location:r}=window,n={value:XC(t,r)},o={value:e.state};o.value||i(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(d,u,f){const g=t.indexOf("#"),_=g>-1?(r.host&&document.querySelector("base")?t:t.slice(g))+d:bB()+t+d;try{e[f?"replaceState":"pushState"](u,"",_),o.value=u}catch(b){console.error(b),r[f?"replace":"assign"](_)}}function a(d,u){const f=Mt({},e.state,O5(o.value.back,d,o.value.forward,!0),u,{position:o.value.position});i(d,f,!0),n.value=d}function c(d,u){const f=Mt({},o.value,e.state,{forward:d,scroll:lh()});i(f.current,f,!0);const g=Mt({},O5(n.value,d,null),{position:f.position+1},u);i(d,g,!1),n.value=d}return{location:n,state:o,push:c,replace:a}}function EB(t){t=pB(t);const e=wB(t),r=xB(t,e.state,e.location,e.replace);function n(i,a=!0){a||r.pauseListeners(),history.go(i)}const o=Mt({location:"",base:t,go:n,createHref:mB.bind(null,t)},e,r);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function TB(t){return typeof t=="string"||t&&typeof t=="object"}function JC(t){return typeof t=="string"||typeof t=="symbol"}const ji={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},eA=Symbol("");var P5;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(P5||(P5={}));function Pl(t,e){return Mt(new Error,{type:t,[eA]:!0},e)}function ai(t,e){return t instanceof Error&&eA in t&&(e==null||!!(t.type&e))}const R5="[^/]+?",kB={sensitive:!1,strict:!1,start:!0,end:!0},CB=/[.+*?^${}()[\]/\\]/g;function AB(t,e){const r=Mt({},kB,e),n=[];let o=r.start?"^":"";const i=[];for(const u of t){const f=u.length?[]:[90];r.strict&&!u.length&&(o+="/");for(let g=0;ge.length?e.length===1&&e[0]===40+40?1:-1:0}function IB(t,e){let r=0;const n=t.score,o=e.score;for(;r0&&e[e.length-1]<0}const $B={type:0,value:""},OB=/[a-zA-Z0-9_]/;function PB(t){if(!t)return[[]];if(t==="/")return[[$B]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(b){throw new Error(`ERR (${r})/"${u}": ${b}`)}let r=0,n=r;const o=[];let i;function a(){i&&o.push(i),i=[]}let c=0,d,u="",f="";function g(){u&&(r===0?i.push({type:0,value:u}):r===1||r===2||r===3?(i.length>1&&(d==="*"||d==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:f,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):e("Invalid state to consume buffer"),u="")}function _(){u+=d}for(;c{a(x)}:Xc}function a(f){if(JC(f)){const g=n.get(f);g&&(n.delete(f),r.splice(r.indexOf(g),1),g.children.forEach(a),g.alias.forEach(a))}else{const g=r.indexOf(f);g>-1&&(r.splice(g,1),f.record.name&&n.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function c(){return r}function d(f){let g=0;for(;g=0&&(f.record.path!==r[g].record.path||!tA(f,r[g]));)g++;r.splice(g,0,f),f.record.name&&!D5(f)&&n.set(f.record.name,f)}function u(f,g){let _,b={},h,m;if("name"in f&&f.name){if(_=n.get(f.name),!_)throw Pl(1,{location:f});m=_.record.name,b=Mt(M5(g.params,_.keys.filter(x=>!x.optional).map(x=>x.name)),f.params&&M5(f.params,_.keys.map(x=>x.name))),h=_.stringify(b)}else if("path"in f)h=f.path,_=r.find(x=>x.re.test(h)),_&&(b=_.parse(h),m=_.record.name);else{if(_=g.name?n.get(g.name):r.find(x=>x.re.test(g.path)),!_)throw Pl(1,{location:f,currentLocation:g});m=_.record.name,b=Mt({},g.params,f.params),h=_.stringify(b)}const y=[];let v=_;for(;v;)y.unshift(v.record),v=v.parent;return{name:m,path:h,params:b,matched:y,meta:FB(y)}}return t.forEach(f=>i(f)),{addRoute:i,resolve:u,removeRoute:a,getRoutes:c,getRecordMatcher:o}}function M5(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function MB(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:DB(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function DB(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const n in t.components)e[n]=typeof r=="object"?r[n]:r;return e}function D5(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function FB(t){return t.reduce((e,r)=>Mt(e,r.meta),{})}function F5(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}function tA(t,e){return e.children.some(r=>r===t||tA(t,r))}const rA=/#/g,NB=/&/g,zB=/\//g,qB=/=/g,BB=/\?/g,nA=/\+/g,UB=/%5B/g,VB=/%5D/g,oA=/%5E/g,jB=/%60/g,iA=/%7B/g,HB=/%7C/g,aA=/%7D/g,WB=/%20/g;function Rb(t){return encodeURI(""+t).replace(HB,"|").replace(UB,"[").replace(VB,"]")}function GB(t){return Rb(t).replace(iA,"{").replace(aA,"}").replace(oA,"^")}function Wg(t){return Rb(t).replace(nA,"%2B").replace(WB,"+").replace(rA,"%23").replace(NB,"%26").replace(jB,"`").replace(iA,"{").replace(aA,"}").replace(oA,"^")}function QB(t){return Wg(t).replace(qB,"%3D")}function KB(t){return Rb(t).replace(rA,"%23").replace(BB,"%3F")}function YB(t){return t==null?"":KB(t).replace(zB,"%2F")}function _p(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function ZB(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let o=0;oi&&Wg(i)):[n&&Wg(n)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+r,i!=null&&(e+="="+i))})}return e}function XB(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=_o(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return e}const JB=Symbol(""),z5=Symbol(""),ch=Symbol(""),Lb=Symbol(""),Gg=Symbol("");function Pc(){let t=[];function e(n){return t.push(n),()=>{const o=t.indexOf(n);o>-1&&t.splice(o,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function Xi(t,e,r,n,o){const i=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((a,c)=>{const d=g=>{g===!1?c(Pl(4,{from:r,to:e})):g instanceof Error?c(g):TB(g)?c(Pl(2,{from:e,to:g})):(i&&n.enterCallbacks[o]===i&&typeof g=="function"&&i.push(g),a())},u=t.call(n&&n.instances[o],e,r,d);let f=Promise.resolve(u);t.length<3&&(f=f.then(d)),f.catch(g=>c(g))})}function xv(t,e,r,n){const o=[];for(const i of t)for(const a in i.components){let c=i.components[a];if(!(e!=="beforeRouteEnter"&&!i.instances[a]))if(eU(c)){const u=(c.__vccOpts||c)[e];u&&o.push(Xi(u,r,n,i,a))}else{let d=c();o.push(()=>d.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const f=aB(u)?u.default:u;i.components[a]=f;const _=(f.__vccOpts||f)[e];return _&&Xi(_,r,n,i,a)()}))}}return o}function eU(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function q5(t){const e=rn(ch),r=rn(Lb),n=St(()=>e.resolve(he(t.to))),o=St(()=>{const{matched:d}=n.value,{length:u}=d,f=d[u-1],g=r.matched;if(!f||!g.length)return-1;const _=g.findIndex(Ol.bind(null,f));if(_>-1)return _;const b=B5(d[u-2]);return u>1&&B5(f)===b&&g[g.length-1].path!==b?g.findIndex(Ol.bind(null,d[u-2])):_}),i=St(()=>o.value>-1&&oU(r.params,n.value.params)),a=St(()=>o.value>-1&&o.value===r.matched.length-1&&ZC(r.params,n.value.params));function c(d={}){return nU(d)?e[he(t.replace)?"replace":"push"](he(t.to)).catch(Xc):Promise.resolve()}return{route:n,href:St(()=>n.value.href),isActive:i,isExactActive:a,navigate:c}}const tU=Bt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:q5,setup(t,{slots:e}){const r=vo(q5(t)),{options:n}=rn(ch),o=St(()=>({[U5(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[U5(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=e.default&&e.default(r);return t.custom?i:No("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},i)}}}),rU=tU;function nU(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function oU(t,e){for(const r in e){const n=e[r],o=t[r];if(typeof n=="string"){if(n!==o)return!1}else if(!_o(o)||o.length!==n.length||n.some((i,a)=>i!==o[a]))return!1}return!0}function B5(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const U5=(t,e,r)=>t??e??r,iU=Bt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=rn(Gg),o=St(()=>t.route||n.value),i=rn(z5,0),a=St(()=>{let u=he(i);const{matched:f}=o.value;let g;for(;(g=f[u])&&!g.components;)u++;return u}),c=St(()=>o.value.matched[a.value]);Uc(z5,St(()=>a.value+1)),Uc(JB,c),Uc(Gg,o);const d=Se();return Vt(()=>[d.value,c.value,t.name],([u,f,g],[_,b,h])=>{f&&(f.instances[g]=u,b&&b!==f&&u&&u===_&&(f.leaveGuards.size||(f.leaveGuards=b.leaveGuards),f.updateGuards.size||(f.updateGuards=b.updateGuards))),u&&f&&(!b||!Ol(f,b)||!_)&&(f.enterCallbacks[g]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=o.value,f=t.name,g=c.value,_=g&&g.components[f];if(!_)return V5(r.default,{Component:_,route:u});const b=g.props[f],h=b?b===!0?u.params:typeof b=="function"?b(u):b:null,y=No(_,Mt({},h,e,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(g.instances[f]=null)},ref:d}));return V5(r.default,{Component:y,route:u})||y}}});function V5(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const aU=iU;function sU(t){const e=LB(t.routes,t),r=t.parseQuery||ZB,n=t.stringifyQuery||N5,o=t.history,i=Pc(),a=Pc(),c=Pc(),d=KL(ji);let u=ji;rl&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=yv.bind(null,J=>""+J),g=yv.bind(null,YB),_=yv.bind(null,_p);function b(J,me){let ve,$e;return JC(J)?(ve=e.getRecordMatcher(J),$e=me):$e=J,e.addRoute($e,ve)}function h(J){const me=e.getRecordMatcher(J);me&&e.removeRoute(me)}function m(){return e.getRoutes().map(J=>J.record)}function y(J){return!!e.getRecordMatcher(J)}function v(J,me){if(me=Mt({},me||d.value),typeof J=="string"){const I=bv(r,J,me.path),N=e.resolve({path:I.path},me),W=o.createHref(I.fullPath);return Mt(I,N,{params:_(N.params),hash:_p(I.hash),redirectedFrom:void 0,href:W})}let ve;if("path"in J)ve=Mt({},J,{path:bv(r,J.path,me.path).path});else{const I=Mt({},J.params);for(const N in I)I[N]==null&&delete I[N];ve=Mt({},J,{params:g(I)}),me.params=g(me.params)}const $e=e.resolve(ve,me),Oe=J.hash||"";$e.params=f(_($e.params));const M=cB(n,Mt({},J,{hash:GB(Oe),path:$e.path})),k=o.createHref(M);return Mt({fullPath:M,hash:Oe,query:n===N5?XB(J.query):J.query||{}},$e,{redirectedFrom:void 0,href:k})}function x(J){return typeof J=="string"?bv(r,J,d.value.path):Mt({},J)}function E(J,me){if(u!==J)return Pl(8,{from:me,to:J})}function T(J){return L(J)}function C(J){return T(Mt(x(J),{replace:!0}))}function A(J){const me=J.matched[J.matched.length-1];if(me&&me.redirect){const{redirect:ve}=me;let $e=typeof ve=="function"?ve(J):ve;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=x($e):{path:$e},$e.params={}),Mt({query:J.query,hash:J.hash,params:"path"in $e?{}:J.params},$e)}}function L(J,me){const ve=u=v(J),$e=d.value,Oe=J.state,M=J.force,k=J.replace===!0,I=A(ve);if(I)return L(Mt(x(I),{state:typeof I=="object"?Mt({},Oe,I.state):Oe,force:M,replace:k}),me||ve);const N=ve;N.redirectedFrom=me;let W;return!M&&dB(n,$e,ve)&&(W=Pl(16,{to:N,from:$e}),we($e,$e,!0,!1)),(W?Promise.resolve(W):q(N,$e)).catch(Y=>ai(Y)?ai(Y,2)?Y:de(Y):Pe(Y,N,$e)).then(Y=>{if(Y){if(ai(Y,2))return L(Mt({replace:k},x(Y.to),{state:typeof Y.to=="object"?Mt({},Oe,Y.to.state):Oe,force:M}),me||N)}else Y=U(N,$e,!0,k,Oe);return H(N,$e,Y),Y})}function R(J,me){const ve=E(J,me);return ve?Promise.reject(ve):Promise.resolve()}function D(J){const me=He.values().next().value;return me&&typeof me.runWithContext=="function"?me.runWithContext(J):J()}function q(J,me){let ve;const[$e,Oe,M]=lU(J,me);ve=xv($e.reverse(),"beforeRouteLeave",J,me);for(const I of $e)I.leaveGuards.forEach(N=>{ve.push(Xi(N,J,me))});const k=R.bind(null,J,me);return ve.push(k),We(ve).then(()=>{ve=[];for(const I of i.list())ve.push(Xi(I,J,me));return ve.push(k),We(ve)}).then(()=>{ve=xv(Oe,"beforeRouteUpdate",J,me);for(const I of Oe)I.updateGuards.forEach(N=>{ve.push(Xi(N,J,me))});return ve.push(k),We(ve)}).then(()=>{ve=[];for(const I of M)if(I.beforeEnter)if(_o(I.beforeEnter))for(const N of I.beforeEnter)ve.push(Xi(N,J,me));else ve.push(Xi(I.beforeEnter,J,me));return ve.push(k),We(ve)}).then(()=>(J.matched.forEach(I=>I.enterCallbacks={}),ve=xv(M,"beforeRouteEnter",J,me),ve.push(k),We(ve))).then(()=>{ve=[];for(const I of a.list())ve.push(Xi(I,J,me));return ve.push(k),We(ve)}).catch(I=>ai(I,8)?I:Promise.reject(I))}function H(J,me,ve){c.list().forEach($e=>D(()=>$e(J,me,ve)))}function U(J,me,ve,$e,Oe){const M=E(J,me);if(M)return M;const k=me===ji,I=rl?history.state:{};ve&&($e||k?o.replace(J.fullPath,Mt({scroll:k&&I&&I.scroll},Oe)):o.push(J.fullPath,Oe)),d.value=J,we(J,me,ve,k),de()}let ce;function Ae(){ce||(ce=o.listen((J,me,ve)=>{if(!ze.listening)return;const $e=v(J),Oe=A($e);if(Oe){L(Mt(Oe,{replace:!0}),$e).catch(Xc);return}u=$e;const M=d.value;rl&&_B($5(M.fullPath,ve.delta),lh()),q($e,M).catch(k=>ai(k,12)?k:ai(k,2)?(L(k.to,$e).then(I=>{ai(I,20)&&!ve.delta&&ve.type===wd.pop&&o.go(-1,!1)}).catch(Xc),Promise.reject()):(ve.delta&&o.go(-ve.delta,!1),Pe(k,$e,M))).then(k=>{k=k||U($e,M,!1),k&&(ve.delta&&!ai(k,8)?o.go(-ve.delta,!1):ve.type===wd.pop&&ai(k,20)&&o.go(-1,!1)),H($e,M,k)}).catch(Xc)}))}let Le=Pc(),Te=Pc(),Ie;function Pe(J,me,ve){de(J);const $e=Te.list();return $e.length?$e.forEach(Oe=>Oe(J,me,ve)):console.error(J),Promise.reject(J)}function Ce(){return Ie&&d.value!==ji?Promise.resolve():new Promise((J,me)=>{Le.add([J,me])})}function de(J){return Ie||(Ie=!J,Ae(),Le.list().forEach(([me,ve])=>J?ve(J):me()),Le.reset()),J}function we(J,me,ve,$e){const{scrollBehavior:Oe}=t;if(!rl||!Oe)return Promise.resolve();const M=!ve&&yB($5(J.fullPath,0))||($e||!ve)&&history.state&&history.state.scroll||null;return ta().then(()=>Oe(J,me,M)).then(k=>k&&gB(k)).catch(k=>Pe(k,J,me))}const ke=J=>o.go(J);let Re;const He=new Set,ze={currentRoute:d,listening:!0,addRoute:b,removeRoute:h,hasRoute:y,getRoutes:m,resolve:v,options:t,push:T,replace:C,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:a.add,afterEach:c.add,onError:Te.add,isReady:Ce,install(J){const me=this;J.component("RouterLink",rU),J.component("RouterView",aU),J.config.globalProperties.$router=me,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>he(d)}),rl&&!Re&&d.value===ji&&(Re=!0,T(o.location).catch(Oe=>{}));const ve={};for(const Oe in ji)Object.defineProperty(ve,Oe,{get:()=>d.value[Oe],enumerable:!0});J.provide(ch,me),J.provide(Lb,a4(ve)),J.provide(Gg,d);const $e=J.unmount;He.add(J),J.unmount=function(){He.delete(J),He.size<1&&(u=ji,ce&&ce(),ce=null,d.value=ji,Re=!1,Ie=!1),$e()}}};function We(J){return J.reduce((me,ve)=>me.then(()=>D(ve)),Promise.resolve())}return ze}function lU(t,e){const r=[],n=[],o=[],i=Math.max(e.matched.length,t.matched.length);for(let a=0;aOl(u,c))?n.push(c):r.push(c));const d=t.matched[a];d&&(e.matched.find(u=>Ol(u,d))||o.push(d))}return[r,n,o]}function cU(){return rn(ch)}function hve(){return rn(Lb)}/*! * pinia v2.1.6 * (c) 2023 Eduardo San Martin Morote * @license MIT -*/let lA;const dh=t=>lA=t,cA=Symbol();function Qg(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ed;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ed||(ed={}));function uU(){const t=Ty(!0),e=t.run(()=>Se({}));let r=[],n=[];const o=Ld({install(i){dh(o),o._a=i,i.provide(cA,o),i.config.globalProperties.$pinia=o,n.forEach(a=>r.push(a)),n=[]},use(i){return!this._a&&!YM?n.push(i):r.push(i),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return o}const dA=()=>{};function j5(t,e,r,n=dA){t.push(e);const o=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),n())};return!r&&ky()&&wL(o),o}function Ks(t,...e){t.slice().forEach(r=>{r(...e)})}const fU=t=>t();function Kg(t,e){t instanceof Map&&e instanceof Map&&e.forEach((r,n)=>t.set(n,r)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r],o=t[r];Qg(o)&&Qg(n)&&t.hasOwnProperty(r)&&!Rt(n)&&!fi(n)?t[r]=Kg(o,n):t[r]=n}return t}const pU=Symbol();function hU(t){return!Qg(t)||!t.hasOwnProperty(pU)}const{assign:Qi}=Object;function mU(t){return!!(Rt(t)&&t.effect)}function vU(t,e,r,n){const{state:o,actions:i,getters:a}=e,c=r.state.value[t];let d;function u(){c||(r.state.value[t]=o?o():{});const f=zp(r.state.value[t]);return Qi(f,i,Object.keys(a||{}).reduce((g,_)=>(g[_]=Ld(St(()=>{dh(r);const b=r._s.get(t);return a[_].call(b,b)})),g),{}))}return d=uA(t,u,e,r,n,!0),d}function uA(t,e,r={},n,o,i){let a;const c=Qi({actions:{}},r),d={deep:!0};let u,f,g=[],_=[],b;const h=n.state.value[t];!i&&!h&&(n.state.value[t]={}),Se({});let m;function y(R){let D;u=f=!1,typeof R=="function"?(R(n.state.value[t]),D={type:ed.patchFunction,storeId:t,events:b}):(Kg(n.state.value[t],R),D={type:ed.patchObject,payload:R,storeId:t,events:b});const q=m=Symbol();ta().then(()=>{m===q&&(u=!0)}),f=!0,Ks(g,D,n.state.value[t])}const v=i?function(){const{state:D}=r,q=D?D():{};this.$patch(H=>{Qi(H,q)})}:dA;function x(){a.stop(),g=[],_=[],n._s.delete(t)}function E(R,D){return function(){dh(n);const q=Array.from(arguments),H=[],U=[];function ce(Te){H.push(Te)}function Ae(Te){U.push(Te)}Ks(_,{args:q,name:R,store:C,after:ce,onError:Ae});let Le;try{Le=D.apply(this&&this.$id===t?this:C,q)}catch(Te){throw Ks(U,Te),Te}return Le instanceof Promise?Le.then(Te=>(Ks(H,Te),Te)).catch(Te=>(Ks(U,Te),Promise.reject(Te))):(Ks(H,Le),Le)}}const T={_p:n,$id:t,$onAction:j5.bind(null,_),$patch:y,$reset:v,$subscribe(R,D={}){const q=j5(g,R,D.detached,()=>H()),H=a.run(()=>Vt(()=>n.state.value[t],U=>{(D.flush==="sync"?f:u)&&R({storeId:t,type:ed.direct,events:b},U)},Qi({},d,D)));return q},$dispose:x},C=vo(T);n._s.set(t,C);const A=n._a&&n._a.runWithContext||fU,L=n._e.run(()=>(a=Ty(),A(()=>a.run(e))));for(const R in L){const D=L[R];if(Rt(D)&&!mU(D)||fi(D))i||(h&&hU(D)&&(Rt(D)?D.value=h[R]:Kg(D,h[R])),n.state.value[t][R]=D);else if(typeof D=="function"){const q=E(R,D);L[R]=q,c.actions[R]=D}}return Qi(C,L),Qi(yt(C),L),Object.defineProperty(C,"$state",{get:()=>n.state.value[t],set:R=>{y(D=>{Qi(D,R)})}}),n._p.forEach(R=>{Qi(C,a.run(()=>R({store:C,app:n._a,pinia:n,options:c})))}),h&&i&&r.hydrate&&r.hydrate(C.$state,h),u=!0,f=!0,C}function fA(t,e,r){let n,o;const i=typeof e=="function";typeof t=="string"?(n=t,o=i?r:e):(o=t,n=t.id);function a(c,d){const u=B6();return c=c||(u?rn(cA,null):null),c&&dh(c),c=lA,c._s.has(n)||(i?uA(n,e,o,c):vU(n,o,c)),c._s.get(n)}return a.$id=n,a}function ya(t){{t=yt(t);const e={};for(const r in t){const n=t[r];(Rt(n)||fi(n))&&(e[r]=t6(t,r))}return e}}const Bd=fA({id:"main",state:()=>({fileShowHidden:!1,chatText:"",quick:"chat",noteExpand:!0,pages:[],audios:[],audioPlaying:null,lightboxInfoVisible:!1,videoViewType:"grid",imageViewType:"grid",fileSortBy:"NAME_ASC",json:"",qrCode:"",callNumber:""}),actions:{replaceRoute(t,e){const r=this.pages.indexOf(t);r!==-1&&this.pages.splice(r,1,e)}}});var gU=typeof global=="object"&&global&&global.Object===Object&&global;const pA=gU;var _U=typeof self=="object"&&self&&self.Object===Object&&self,yU=pA||_U||Function("return this")();const wi=yU;var bU=wi.Symbol;const ba=bU;var hA=Object.prototype,xU=hA.hasOwnProperty,wU=hA.toString,Rc=ba?ba.toStringTag:void 0;function EU(t){var e=xU.call(t,Rc),r=t[Rc];try{t[Rc]=void 0;var n=!0}catch{}var o=wU.call(t);return n&&(e?t[Rc]=r:delete t[Rc]),o}var TU=Object.prototype,kU=TU.toString;function CU(t){return kU.call(t)}var AU="[object Null]",SU="[object Undefined]",H5=ba?ba.toStringTag:void 0;function Es(t){return t==null?t===void 0?SU:AU:H5&&H5 in Object(t)?EU(t):CU(t)}function xa(t){return t!=null&&typeof t=="object"}var IU="[object Symbol]";function uh(t){return typeof t=="symbol"||xa(t)&&Es(t)==IU}function Mb(t,e){for(var r=-1,n=t==null?0:t.length,o=Array(n);++r0){if(++e>=lV)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function fV(t){return function(){return t}}var pV=function(){try{var t=ks(Object,"defineProperty");return t({},"",{}),t}catch{}}();const Z5=pV;var hV=Z5?function(t,e){return Z5(t,"toString",{configurable:!0,enumerable:!1,value:fV(e),writable:!0})}:Fb;const mV=hV;var vV=uV(mV);const gV=vV;function vA(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i-1}var wV=9007199254740991,EV=/^(?:0|[1-9]\d*)$/;function fh(t,e){var r=typeof t;return e=e??wV,!!e&&(r=="number"||r!="symbol"&&EV.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=CV}function qb(t){return t!=null&&zb(t.length)&&!mA(t)}function AV(t,e,r){if(!ms(r))return!1;var n=typeof e;return(n=="number"?qb(r)&&fh(e,r.length):n=="string"&&e in r)?Nb(r[e],t):!1}var SV=Object.prototype;function IV(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||SV;return t===r}function $V(t,e){for(var r=-1,n=Array(t);++r-1}function Uj(t,e){var r=this.__data__,n=hh(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function Ei(t){var e=-1,r=t==null?0:t.length;for(this.clear();++eo?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n=n?t:Wb(t,e,r)}var sH="\\ud800-\\udfff",lH="\\u0300-\\u036f",cH="\\ufe20-\\ufe2f",dH="\\u20d0-\\u20ff",uH=lH+cH+dH,fH="\\ufe0e\\ufe0f",pH="\\u200d",hH=RegExp("["+pH+sH+uH+fH+"]");function Gb(t){return hH.test(t)}function mH(t){return t.split("")}var wA="\\ud800-\\udfff",vH="\\u0300-\\u036f",gH="\\ufe20-\\ufe2f",_H="\\u20d0-\\u20ff",yH=vH+gH+_H,bH="\\ufe0e\\ufe0f",xH="["+wA+"]",Xg="["+yH+"]",Jg="\\ud83c[\\udffb-\\udfff]",wH="(?:"+Xg+"|"+Jg+")",EA="[^"+wA+"]",TA="(?:\\ud83c[\\udde6-\\uddff]){2}",kA="[\\ud800-\\udbff][\\udc00-\\udfff]",EH="\\u200d",CA=wH+"?",AA="["+bH+"]?",TH="(?:"+EH+"(?:"+[EA,TA,kA].join("|")+")"+AA+CA+")*",kH=AA+CA+TH,CH="(?:"+[EA+Xg+"?",Xg,TA,kA,xH].join("|")+")",AH=RegExp(Jg+"(?="+Jg+")|"+CH+kH,"g");function SH(t){return t.match(AH)||[]}function IH(t){return Gb(t)?SH(t):mH(t)}function $H(t,e,r,n){var o=-1,i=t==null?0:t.length;for(n&&i&&(r=t[++o]);++oc))return!1;var u=i.get(t),f=i.get(e);if(u&&f)return u==e&&f==t;var g=-1,_=!0,b=r&YW?new Cd:void 0;for(i.set(t,e),i.set(e,t);++g=MG&&(i=UA,a=!1,e=new Cd(e));e:for(;++o=i)return t;var c=r-cQ(n);if(c<1)return n;var d=a?aH(a,0,c).join(""):t.slice(0,c);if(o===void 0)return d+n;if(a&&(c+=d.length-c),WG(o)){if(t.slice(c).search(o)){var u,f=d;for(o.global||(o=RegExp(o.source,kd(bQ.exec(o))+"g")),o.lastIndex=0;u=o.exec(f);)var g=u.index;d=d.slice(0,g===void 0?c:g)}}else if(t.indexOf(yp(o),c)!=c){var _=d.lastIndexOf(o);_>-1&&(d=d.slice(0,_))}return d+n}var wQ=kV(function(t,e){return RG(t)?DG(t,e):[]});const EQ=wQ,TQ=/(?:[^\s"]+|"[^"]*")+/g,wE=":",xp="NOT",r3={"=":"!=",">=":"<",">":"<=","!=":"=","<=":">","<":">=",in:"nin",nin:"in"},kQ=EQ(ph(r3),"in","nin");function CQ(t){return t.match(TQ)}function EE(t){return t.replace(/['"]+/g,"")}function AQ(t){return kQ.find(e=>t.indexOf(e)===0)||""}function SQ(t){const e=t.split(wE),r=EE(e[0]),n=EE(e.slice(1).join(wE)),o=AQ(n),i=n.slice(o.length);return{length:e.length,field:r,query:n,op:o,value:i}}function IQ(t){if(t==xp)return{name:"",op:xp,value:""};const e=SQ(t);return e.field=="is"?{name:e.query,op:"",value:"true"}:e.length==1?{name:"text",op:"",value:e.field}:{name:e.field,op:e.op,value:e.value}}const $Q=t=>{var n;const e=(n=CQ(t))==null?void 0:n.map(o=>IQ(o));if(!e)return[];let r=!1;return e.forEach(o=>{o.op==xp?r=!0:r&&(o.op=r3[o.op]||"",r=!1)}),e.filter(o=>o.op!==xp)},Kb=t=>{const e=[];return t.forEach(r=>{const n=r.value;r.name==="text"?n.indexOf(" ")!==-1?e.push(`"${n}"`):e.push(n):n.indexOf(" ")!==-1?e.push(`${r.name}:${r.op}"${n}"`):e.push(`${r.name}:${r.op}${n}`)}),e.join(" ")},OQ=t=>{var r;const e=Se(_q(((r=t.q)==null?void 0:r.toString())??""));return $Q(e.value)},n3=(t,e)=>{var n;const r=OQ(t);return r.length===1?((n=r.find(o=>o.name===e))==null?void 0:n.value)??"":""},vve=t=>n3(t,"tag"),gve=t=>n3(t,"feed"),_ve=t=>{const e=[];t.bucketId&&e.push({name:"bucket_id",op:"",value:t.bucketId});for(const r of t.tags)e.push({name:"tag",op:"",value:QA(r.name)});return t.text&&e.push({name:"text",op:"",value:t.text}),Kb(e)},PQ={NOTE:"notes",AUDIO:"audios",IMAGE:"images",VIDEO:"videos",FEED_ENTRY:"feeds",SMS:"messages",CALL:"calls",CONTACT:"contacts",AI_CHAT:"aichats"},RQ={class:"tags"},LQ=["onClick"],MQ=Bt({__name:"ItemTags",props:{type:{type:String},tags:{type:Object,default:[],required:!0}},setup(t){const e=t,r=Bd();function n(o){if(!e.type)return;const i=Kb([{name:"tag",op:"",value:QA(o.name)}]);_oe(r,`/${PQ[e.type]}?q=${Bg(i)}`)}return(o,i)=>(te(),ie("div",RQ,[(te(!0),ie(Pt,null,wo(t.tags,a=>(te(),ie("span",{class:"badge",onClick:Ot(c=>n(a),["stop"])},Ne(a.name),9,LQ))),256))]))}}),DQ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},FQ=V("path",{fill:"currentColor",d:"M5 19q-.825 0-1.413-.588T3 17V7q0-.825.588-1.413T5 5h10q.5 0 .938.225t.712.625l3.525 5q.35.525.35 1.15t-.35 1.15l-3.525 5q-.275.4-.712.625T15 19H5Zm13.55-7L15 7H5v10h10l3.55-5ZM5 12v5V7v5Z"},null,-1),NQ=[FQ];function zQ(t,e){return te(),ie("svg",DQ,NQ)}const qQ={name:"material-symbols-label-outline-rounded",render:zQ},BQ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},UQ=V("path",{fill:"currentColor",d:"M12 15.575q-.2 0-.375-.062T11.3 15.3l-3.6-3.6q-.275-.275-.275-.7t.275-.7q.275-.275.713-.287t.712.262L11 12.15V5q0-.425.288-.713T12 4q.425 0 .713.288T13 5v7.15l1.875-1.875q.275-.275.713-.263t.712.288q.275.275.275.7t-.275.7l-3.6 3.6q-.15.15-.325.213t-.375.062ZM6 20q-.825 0-1.413-.588T4 18v-2q0-.425.288-.713T5 15q.425 0 .713.288T6 16v2h12v-2q0-.425.288-.713T19 15q.425 0 .713.288T20 16v2q0 .825-.588 1.413T18 20H6Z"},null,-1),VQ=[UQ];function jQ(t,e){return te(),ie("svg",BQ,VQ)}const HQ={name:"material-symbols-download-rounded",render:jQ},WQ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},GQ=V("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm0 0v13V6Zm5 7.9l1.9 1.9q.3.275.713.275t.687-.275q.3-.3.3-.713t-.3-.687l-1.9-1.9l1.9-1.9q.3-.3.3-.713t-.3-.687q-.275-.3-.688-.3t-.712.3L12 11.1l-1.9-1.9q-.275-.3-.688-.3t-.712.3q-.275.275-.275.688t.275.712l1.9 1.9l-1.9 1.9q-.275.275-.275.688t.275.712q.3.275.713.275t.687-.275l1.9-1.9Z"},null,-1),QQ=[GQ];function KQ(t,e){return te(),ie("svg",WQ,QQ)}const Yb={name:"material-symbols-delete-forever-outline-rounded",render:KQ};const YQ={},ZQ={class:"popper-arrow","data-popper-arrow":""};function XQ(t,e){return te(),ie("div",ZQ)}const JQ=gn(YQ,[["render",XQ],["__scopeId","data-v-61211ab1"]]);function eK(t,e,r){let n=null;const o=Se(!1);mn(()=>{(t.content!==void 0||r.value)&&(o.value=!0),n=new MutationObserver(i),n.observe(e.value,{childList:!0,subtree:!0})}),Ho(()=>n==null?void 0:n.disconnect()),Vt(r,a=>{a?o.value=!0:o.value=!1});const i=()=>{t.content?o.value=!0:o.value=!1};return{hasContent:o}}function Kn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function _s(t){var e=Kn(t).Element;return t instanceof e||t instanceof Element}function Gn(t){var e=Kn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Zb(t){if(typeof ShadowRoot>"u")return!1;var e=Kn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var ds=Math.max,wp=Math.min,Rl=Math.round;function i_(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function o3(){return!/^((?!chrome|android).)*safari/i.test(i_())}function Ll(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,i=1;e&&Gn(t)&&(o=t.offsetWidth>0&&Rl(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Rl(n.height)/t.offsetHeight||1);var a=_s(t)?Kn(t):window,c=a.visualViewport,d=!o3()&&r,u=(n.left+(d&&c?c.offsetLeft:0))/o,f=(n.top+(d&&c?c.offsetTop:0))/i,g=n.width/o,_=n.height/i;return{width:g,height:_,top:f,right:u+g,bottom:f+_,left:u,x:u,y:f}}function Xb(t){var e=Kn(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function tK(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function rK(t){return t===Kn(t)||!Gn(t)?Xb(t):tK(t)}function Vo(t){return t?(t.nodeName||"").toLowerCase():null}function Ca(t){return((_s(t)?t.ownerDocument:t.document)||window.document).documentElement}function Jb(t){return Ll(Ca(t)).left+Xb(t).scrollLeft}function gi(t){return Kn(t).getComputedStyle(t)}function e0(t){var e=gi(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function nK(t){var e=t.getBoundingClientRect(),r=Rl(e.width)/t.offsetWidth||1,n=Rl(e.height)/t.offsetHeight||1;return r!==1||n!==1}function oK(t,e,r){r===void 0&&(r=!1);var n=Gn(e),o=Gn(e)&&nK(e),i=Ca(e),a=Ll(t,o,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((Vo(e)!=="body"||e0(i))&&(c=rK(e)),Gn(e)?(d=Ll(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):i&&(d.x=Jb(i))),{x:a.left+c.scrollLeft-d.x,y:a.top+c.scrollTop-d.y,width:a.width,height:a.height}}function t0(t){var e=Ll(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function vh(t){return Vo(t)==="html"?t:t.assignedSlot||t.parentNode||(Zb(t)?t.host:null)||Ca(t)}function i3(t){return["html","body","#document"].indexOf(Vo(t))>=0?t.ownerDocument.body:Gn(t)&&e0(t)?t:i3(vh(t))}function rd(t,e){var r;e===void 0&&(e=[]);var n=i3(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),i=Kn(n),a=o?[i].concat(i.visualViewport||[],e0(n)?n:[]):n,c=e.concat(a);return o?c:c.concat(rd(vh(a)))}function iK(t){return["table","td","th"].indexOf(Vo(t))>=0}function TE(t){return!Gn(t)||gi(t).position==="fixed"?null:t.offsetParent}function aK(t){var e=/firefox/i.test(i_()),r=/Trident/i.test(i_());if(r&&Gn(t)){var n=gi(t);if(n.position==="fixed")return null}var o=vh(t);for(Zb(o)&&(o=o.host);Gn(o)&&["html","body"].indexOf(Vo(o))<0;){var i=gi(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Vd(t){for(var e=Kn(t),r=TE(t);r&&iK(r)&&gi(r).position==="static";)r=TE(r);return r&&(Vo(r)==="html"||Vo(r)==="body"&&gi(r).position==="static")?e:r||aK(t)||e}var An="top",yo="bottom",bo="right",Sn="left",r0="auto",jd=[An,yo,bo,Sn],Ml="start",Ad="end",sK="clippingParents",a3="viewport",Lc="popper",lK="reference",kE=jd.reduce(function(t,e){return t.concat([e+"-"+Ml,e+"-"+Ad])},[]),s3=[].concat(jd,[r0]).reduce(function(t,e){return t.concat([e,e+"-"+Ml,e+"-"+Ad])},[]),cK="beforeRead",dK="read",uK="afterRead",fK="beforeMain",pK="main",hK="afterMain",mK="beforeWrite",vK="write",gK="afterWrite",_K=[cK,dK,uK,fK,pK,hK,mK,vK,gK];function yK(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!r.has(c)){var d=e.get(c);d&&o(d)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||o(i)}),n}function bK(t){var e=yK(t);return _K.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function xK(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Mo(t){return t.split("-")[0]}function wK(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}function EK(t,e){var r=Kn(t),n=Ca(t),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,c=0,d=0;if(o){i=o.width,a=o.height;var u=o3();(u||!u&&e==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:i,height:a,x:c+Jb(t),y:d}}function TK(t){var e,r=Ca(t),n=Xb(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=ds(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ds(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+Jb(t),d=-n.scrollTop;return gi(o||r).direction==="rtl"&&(c+=ds(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:d}}function l3(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Zb(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function a_(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function kK(t,e){var r=Ll(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function CE(t,e,r){return e===a3?a_(EK(t,r)):_s(e)?kK(e,r):a_(TK(Ca(t)))}function CK(t){var e=rd(vh(t)),r=["absolute","fixed"].indexOf(gi(t).position)>=0,n=r&&Gn(t)?Vd(t):t;return _s(n)?e.filter(function(o){return _s(o)&&l3(o,n)&&Vo(o)!=="body"}):[]}function AK(t,e,r,n){var o=e==="clippingParents"?CK(t):[].concat(e),i=[].concat(o,[r]),a=i[0],c=i.reduce(function(d,u){var f=CE(t,u,n);return d.top=ds(f.top,d.top),d.right=wp(f.right,d.right),d.bottom=wp(f.bottom,d.bottom),d.left=ds(f.left,d.left),d},CE(t,a,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Dl(t){return t.split("-")[1]}function n0(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function c3(t){var e=t.reference,r=t.element,n=t.placement,o=n?Mo(n):null,i=n?Dl(n):null,a=e.x+e.width/2-r.width/2,c=e.y+e.height/2-r.height/2,d;switch(o){case An:d={x:a,y:e.y-r.height};break;case yo:d={x:a,y:e.y+e.height};break;case bo:d={x:e.x+e.width,y:c};break;case Sn:d={x:e.x-r.width,y:c};break;default:d={x:e.x,y:e.y}}var u=o?n0(o):null;if(u!=null){var f=u==="y"?"height":"width";switch(i){case Ml:d[u]=d[u]-(e[f]/2-r[f]/2);break;case Ad:d[u]=d[u]+(e[f]/2-r[f]/2);break}}return d}function d3(){return{top:0,right:0,bottom:0,left:0}}function u3(t){return Object.assign({},d3(),t)}function f3(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}function o0(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,i=r.strategy,a=i===void 0?t.strategy:i,c=r.boundary,d=c===void 0?sK:c,u=r.rootBoundary,f=u===void 0?a3:u,g=r.elementContext,_=g===void 0?Lc:g,b=r.altBoundary,h=b===void 0?!1:b,m=r.padding,y=m===void 0?0:m,v=u3(typeof y!="number"?y:f3(y,jd)),x=_===Lc?lK:Lc,E=t.rects.popper,T=t.elements[h?x:_],C=AK(_s(T)?T:T.contextElement||Ca(t.elements.popper),d,f,a),A=Ll(t.elements.reference),L=c3({reference:A,element:E,strategy:"absolute",placement:o}),R=a_(Object.assign({},E,L)),D=_===Lc?R:A,q={top:C.top-D.top+v.top,bottom:D.bottom-C.bottom+v.bottom,left:C.left-D.left+v.left,right:D.right-C.right+v.right},H=t.modifiersData.offset;if(_===Lc&&H){var U=H[o];Object.keys(q).forEach(function(ce){var Ae=[bo,yo].indexOf(ce)>=0?1:-1,Le=[An,yo].indexOf(ce)>=0?"y":"x";q[ce]+=U[Le]*Ae})}return q}var AE={placement:"bottom",modifiers:[],strategy:"absolute"};function SE(){for(var t=arguments.length,e=new Array(t),r=0;rr?r:n}function jK(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,c=a===void 0?!1:a,d=r.boundary,u=r.rootBoundary,f=r.altBoundary,g=r.padding,_=r.tether,b=_===void 0?!0:_,h=r.tetherOffset,m=h===void 0?0:h,y=o0(e,{boundary:d,rootBoundary:u,padding:g,altBoundary:f}),v=Mo(e.placement),x=Dl(e.placement),E=!x,T=n0(v),C=UK(T),A=e.modifiersData.popperOffsets,L=e.rects.reference,R=e.rects.popper,D=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,q=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,U={x:0,y:0};if(A){if(i){var ce,Ae=T==="y"?An:Sn,Le=T==="y"?yo:bo,Te=T==="y"?"height":"width",Ie=A[T],Pe=Ie+y[Ae],Ce=Ie-y[Le],de=b?-R[Te]/2:0,we=x===Ml?L[Te]:R[Te],ke=x===Ml?-R[Te]:-L[Te],Re=e.elements.arrow,He=b&&Re?t0(Re):{width:0,height:0},ze=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:d3(),We=ze[Ae],J=ze[Le],me=nd(0,L[Te],He[Te]),ve=E?L[Te]/2-de-me-We-q.mainAxis:we-me-We-q.mainAxis,$e=E?-L[Te]/2+de+me+J+q.mainAxis:ke+me+J+q.mainAxis,Oe=e.elements.arrow&&Vd(e.elements.arrow),M=Oe?T==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,k=(ce=H==null?void 0:H[T])!=null?ce:0,I=Ie+ve-k-M,N=Ie+$e-k,W=nd(b?wp(Pe,I):Pe,Ie,b?ds(Ce,N):Ce);A[T]=W,U[T]=W-Ie}if(c){var Y,se=T==="x"?An:Sn,ye=T==="x"?yo:bo,X=A[C],ee=C==="y"?"height":"width",fe=X+y[se],j=X-y[ye],z=[An,Sn].indexOf(v)!==-1,oe=(Y=H==null?void 0:H[C])!=null?Y:0,be=z?fe:X-L[ee]-R[ee]-oe+q.altAxis,Fe=z?X+L[ee]+R[ee]-oe-q.altAxis:j,Ue=b&&z?VK(be,X,Fe):nd(b?be:fe,X,b?Fe:j);A[C]=Ue,U[C]=Ue-X}e.modifiersData[n]=U}}const HK={name:"preventOverflow",enabled:!0,phase:"main",fn:jK,requiresIfExists:["offset"]};function WK(t,e,r){var n=Mo(t),o=[Sn,An].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[Sn,bo].indexOf(n)>=0?{x:c,y:a}:{x:a,y:c}}function GK(t){var e=t.state,r=t.options,n=t.name,o=r.offset,i=o===void 0?[0,0]:o,a=s3.reduce(function(f,g){return f[g]=WK(g,e.rects,i),f},{}),c=a[e.placement],d=c.x,u=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=a}const QK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:GK};var KK=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,u3(typeof e!="number"?e:f3(e,jd))};function YK(t){var e,r=t.state,n=t.name,o=t.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,c=Mo(r.placement),d=n0(c),u=[Sn,bo].indexOf(c)>=0,f=u?"height":"width";if(!(!i||!a)){var g=KK(o.padding,r),_=t0(i),b=d==="y"?An:Sn,h=d==="y"?yo:bo,m=r.rects.reference[f]+r.rects.reference[d]-a[d]-r.rects.popper[f],y=a[d]-r.rects.reference[d],v=Vd(i),x=v?d==="y"?v.clientHeight||0:v.clientWidth||0:0,E=m/2-y/2,T=g[b],C=x-_[f]-g[h],A=x/2-_[f]/2+E,L=nd(T,A,C),R=d;r.modifiersData[n]=(e={},e[R]=L,e.centerOffset=L-A,e)}}function ZK(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||l3(e.elements.popper,o)&&(e.elements.arrow=o))}const XK={name:"arrow",enabled:!0,phase:"main",fn:YK,effect:ZK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var JK={left:"right",right:"left",bottom:"top",top:"bottom"};function Hf(t){return t.replace(/left|right|bottom|top/g,function(e){return JK[e]})}var eY={start:"end",end:"start"};function $E(t){return t.replace(/start|end/g,function(e){return eY[e]})}function tY(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,c=r.flipVariations,d=r.allowedAutoPlacements,u=d===void 0?s3:d,f=Dl(n),g=f?c?kE:kE.filter(function(h){return Dl(h)===f}):jd,_=g.filter(function(h){return u.indexOf(h)>=0});_.length===0&&(_=g);var b=_.reduce(function(h,m){return h[m]=o0(t,{placement:m,boundary:o,rootBoundary:i,padding:a})[Mo(m)],h},{});return Object.keys(b).sort(function(h,m){return b[h]-b[m]})}function rY(t){if(Mo(t)===r0)return[];var e=Hf(t);return[$E(t),e,$E(e)]}function nY(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,c=a===void 0?!0:a,d=r.fallbackPlacements,u=r.padding,f=r.boundary,g=r.rootBoundary,_=r.altBoundary,b=r.flipVariations,h=b===void 0?!0:b,m=r.allowedAutoPlacements,y=e.options.placement,v=Mo(y),x=v===y,E=d||(x||!h?[Hf(y)]:rY(y)),T=[y].concat(E).reduce(function(He,ze){return He.concat(Mo(ze)===r0?tY(e,{placement:ze,boundary:f,rootBoundary:g,padding:u,flipVariations:h,allowedAutoPlacements:m}):ze)},[]),C=e.rects.reference,A=e.rects.popper,L=new Map,R=!0,D=T[0],q=0;q=0,Le=Ae?"width":"height",Te=o0(e,{placement:H,boundary:f,rootBoundary:g,altBoundary:_,padding:u}),Ie=Ae?ce?bo:Sn:ce?yo:An;C[Le]>A[Le]&&(Ie=Hf(Ie));var Pe=Hf(Ie),Ce=[];if(i&&Ce.push(Te[U]<=0),c&&Ce.push(Te[Ie]<=0,Te[Pe]<=0),Ce.every(function(He){return He})){D=H,R=!1;break}L.set(H,Ce)}if(R)for(var de=h?3:1,we=function(ze){var We=T.find(function(J){var me=L.get(J);if(me)return me.slice(0,ze).every(function(ve){return ve})});if(We)return D=We,"break"},ke=de;ke>0;ke--){var Re=we(ke);if(Re==="break")break}e.placement!==D&&(e.modifiersData[n]._skip=!0,e.placement=D,e.reset=!0)}}const oY={name:"flip",enabled:!0,phase:"main",fn:nY,requiresIfExists:["offset"],data:{_skip:!1}};function iY({emit:t,placement:e,popperNode:r,triggerNode:n}){const o=vo({isOpen:!1,popperInstance:null}),i=g=>{var _;(_=o.popperInstance)==null||_.setOptions(b=>({...b,modifiers:[...b.modifiers,{name:"eventListeners",enabled:g}]}))},a=()=>i(!0),c=()=>i(!1),d=()=>{o.isOpen&&(o.isOpen=!1,t("close:popper"))},u=()=>{o.isOpen||(o.isOpen=!0,t("open:popper"))};Vt([()=>o.isOpen,e],async([g])=>{g?(await f(),a()):c()});const f=async()=>{var g;await ta(),o.popperInstance=BK(n.value,r.value,{placement:e.value,modifiers:[HK,XK,{name:"arrow",options:{padding:0}},oY,{name:"flip",enabled:!0},QK,{name:"offset",options:{offset:[0,8]}}]}),(g=o.popperInstance)==null||g.update()};return Ho(()=>{var g;(g=o.popperInstance)==null||g.destroy()}),{...zp(o),open:u,close:d}}const aY=["onClick","onKeyup"],sY=["onClick"],lY=Bt({__name:"Popper",props:{placement:{type:String,default:"bottom",validator:function(t){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(t)}},hover:{type:Boolean,default:!1},show:{type:Boolean,default:null},zIndex:{type:[Number,String],default:9999},arrow:{type:Boolean,default:!1},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(t,{emit:e}){const r=t;IM(C=>({"08b750e8":t.zIndex}));const n=P6(),o=Se(null),i=Se(null),a=Se(null),c=Se(!1),{content:d,placement:u,show:f}=zp(r),{isOpen:g,open:_,close:b}=iY({emit:e,placement:u,popperNode:i,triggerNode:a}),{hasContent:h}=eK(n,i,d),m=St(()=>f.value!==null),y=St(()=>!h.value),v=St(()=>g.value&&!y.value),x=async()=>{y.value||m.value||_()},E=async()=>{m.value||b()},T=()=>{g.value?E():x()};return Vt([h],([C])=>{g.value&&!C&&b()}),Vt(g,C=>{c.value=C}),v6(()=>{m.value&&(f.value?_():b())}),(C,A)=>{const L=JQ,R=ws("click-away");return _t((te(),ie("div",{class:"inline-block",onMouseleave:A[1]||(A[1]=D=>t.hover&&E()),ref_key:"popperContainerNode",ref:o},[V("div",{ref_key:"triggerNode",ref:a,onMouseover:A[0]||(A[0]=D=>t.hover&&x()),onClick:Ot(T,["stop"]),onFocus:x,onKeyup:Xs(E,["esc"])},[g2(C.$slots,"default",{},void 0,!0)],40,aY),Be(md,{name:"fade"},{default:go(()=>[_t(V("div",{class:"popper",ref_key:"popperNode",ref:i,onClick:Ot(()=>{},["stop"])},[g2(C.$slots,"content",{close:he(b),isOpen:c.value},()=>[Lo(Ne(he(d)),1)],!0),t.arrow?(te(),Hr(L,{key:0})):Tt("",!0)],8,sY),[[uo,v.value]])]),_:3})],32)),[[R,E]])}}});const i0=gn(lY,[["__scopeId","data-v-966bb667"]]),cY={class:"nowrap"},dY={class:"view-raw"},uY=Bt({__name:"FieldId",props:{id:{type:String,required:!0},raw:{type:[String,Object],default:""}},setup(t){return(e,r)=>{const n=i0;return te(),Hr(n,null,{content:go(()=>[V("pre",dY,Ne(t.raw),1)]),default:go(()=>[V("span",cY,Ne(t.id),1)]),_:1})}}}),fY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},pY=V("path",{fill:"currentColor",d:"M8.7 17.3q-.275-.275-.275-.7t.275-.7l3.9-3.9l-3.9-3.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.6 4.6q-.275.275-.7.275t-.7-.275Z"},null,-1),hY=[pY];function mY(t,e){return te(),ie("svg",fY,hY)}const vY={name:"material-symbols-chevron-right-rounded",render:mY},gY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_Y=V("path",{fill:"currentColor",d:"m13.3 17.3l-4.6-4.6q-.15-.15-.212-.325T8.425 12q0-.2.063-.375T8.7 11.3l4.6-4.6q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L10.8 12l3.9 3.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275Z"},null,-1),yY=[_Y];function bY(t,e){return te(),ie("svg",gY,yY)}const xY={name:"material-symbols-chevron-left-rounded",render:bY},wY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},EY=V("path",{fill:"currentColor",d:"M12 17q.425 0 .713-.288T13 16v-4.025q0-.425-.288-.7T12 11q-.425 0-.713.288T11 12v4.025q0 .425.288.7T12 17Zm0-8q.425 0 .713-.288T13 8q0-.425-.288-.713T12 7q-.425 0-.713.288T11 8q0 .425.288.713T12 9Zm0 13q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),TY=[EY];function kY(t,e){return te(),ie("svg",wY,TY)}const CY={name:"material-symbols-info-outline-rounded",render:kY},AY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},SY=V("path",{fill:"currentColor",d:"M19.75 12.05q-.3 0-.588-.213T18.8 11.3q-.125-.475-.313-.938t-.437-.887q-.175-.275-.125-.613T18.2 8.3q.375-.35.863-.3t.737.475q.325.55.575 1.125t.4 1.2q.125.5-.188.875t-.837.375Zm-6.7 8.7q0-.3.213-.588t.537-.362q.475-.125.938-.313t.887-.437q.275-.175.613-.125t.562.275q.35.375.3.863t-.475.737q-.575.325-1.15.563t-1.175.412q-.5.125-.875-.175t-.375-.85Zm5.15-2.95q-.225-.2-.275-.55t.125-.625q.25-.425.438-.888t.312-.937q.075-.325.35-.537t.6-.213q.55 0 .85.375t.175.875q-.175.6-.412 1.175t-.563 1.15q-.25.425-.738.475t-.862-.3Zm-8.375 3.95q-2.975-.8-4.875-3.2t-1.9-5.5q0-3.75 2.625-6.375T12.05 4.05h.15l-.875-.875q-.275-.275-.275-.7t.3-.725q.275-.275.7-.275t.725.275l2.575 2.6q.15.15.213.325t.062.375q0 .2-.062.375t-.213.325l-2.6 2.6q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l.9-.9h-.2q-2.925 0-4.962 2.037T5.05 13.05q0 2.425 1.475 4.288T10.3 19.8q.325.075.537.35t.213.6q0 .525-.363.825t-.862.175Z"},null,-1),IY=[SY];function $Y(t,e){return te(),ie("svg",AY,IY)}const OY={name:"material-symbols-rotate-right-rounded",render:$Y},PY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},RY=V("path",{fill:"currentColor",d:"M4.3 12.05q-.525 0-.838-.363t-.187-.862q.15-.625.4-1.212t.575-1.138q.275-.425.738-.475t.862.325q.2.2.263.538T6 9.475q-.275.425-.45.888t-.3.937q-.075.325-.338.537t-.612.213Zm5.475 9.725q-.6-.15-1.188-.4T7.426 20.8q-.425-.275-.475-.738t.325-.862q.2-.2.538-.263t.612.113q.425.275.888.45t.937.3q.325.075.537.338t.213.612q0 .525-.363.838t-.862.187Zm-5.525-4.15q-.325-.575-.575-1.163t-.4-1.187q-.125-.5.188-.863t.887-.362q.3 0 .563.213t.337.537q.125.475.3.938t.45.887q.175.275.125.6t-.275.55q-.375.375-.85.325t-.75-.475Zm9.975 4.125q-.5.125-.862-.175T13 20.75q0-.3.213-.588t.537-.362q2.325-.575 3.788-2.45T19 13.05q0-2.925-2.038-4.963T12 6.05h-.2l.9.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275l-2.6-2.6q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375T8.7 4.35l2.6-2.6q.275-.275.7-.275t.725.275q.275.3.275.725t-.275.7l-.875.875H12q3.75 0 6.375 2.625T21 13.05q0 3.1-1.9 5.5t-4.875 3.2Z"},null,-1),LY=[RY];function MY(t,e){return te(),ie("svg",PY,LY)}const DY={name:"material-symbols-rotate-left-rounded",render:MY},FY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},NY=V("path",{fill:"currentColor",d:"M6 12q.425 0 .713-.288T7 11V9h2.025q.425 0 .7-.288T10 8q0-.425-.288-.713T9 7H6q-.425 0-.713.288T5 8v3.025q0 .425.288.7T6 12Zm9 5h3q.425 0 .713-.288T19 16v-3.025q0-.425-.288-.7T18 12q-.425 0-.713.288T17 13v2h-2.025q-.425 0-.7.288T14 16q0 .425.288.713T15 17ZM4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.588 1.413T20 20H4Zm0-2V6v12Zm0 0h16V6H4v12Z"},null,-1),zY=[NY];function qY(t,e){return te(),ie("svg",FY,zY)}const BY={name:"material-symbols-aspect-ratio-outline-rounded",render:qY},UY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},VY=V("path",{fill:"currentColor",d:"m18.9 20.3l-5.6-5.6q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5q0-2.725 1.888-4.612T9.5 3q2.725 0 4.612 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.625 5.625q.275.275.263.687t-.288.688q-.275.275-.7.275t-.7-.275ZM9.5 14q1.875 0 3.188-1.313T14 9.5q0-1.875-1.313-3.188T9.5 5Q7.625 5 6.312 6.313T5 9.5q0 1.875 1.313 3.188T9.5 14Zm-1.525-3.5q-.425 0-.7-.288T7 9.5q0-.425.288-.713T8 8.5h3.025q.425 0 .7.288T12 9.5q0 .425-.288.713T11 10.5H7.975Z"},null,-1),jY=[VY];function HY(t,e){return te(),ie("svg",UY,jY)}const WY={name:"material-symbols-zoom-out-rounded",render:HY},GY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},QY=V("path",{fill:"currentColor",d:"m18.9 20.3l-5.6-5.6q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5q0-2.725 1.888-4.612T9.5 3q2.725 0 4.612 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.625 5.625q.275.275.263.687t-.288.688q-.275.275-.7.275t-.7-.275ZM9.5 14q1.875 0 3.188-1.313T14 9.5q0-1.875-1.313-3.188T9.5 5Q7.625 5 6.312 6.313T5 9.5q0 1.875 1.313 3.188T9.5 14Zm0-1.5q-.425 0-.713-.288T8.5 11.5v-1H7.475q-.425 0-.7-.288T6.5 9.5q0-.425.288-.713T7.5 8.5h1V7.475q0-.425.288-.7T9.5 6.5q.425 0 .713.287t.287.713v1h1.025q.425 0 .7.288t.275.712q0 .425-.288.713t-.712.287h-1v1.025q0 .425-.288.7T9.5 12.5Z"},null,-1),KY=[QY];function YY(t,e){return te(),ie("svg",GY,KY)}const ZY={name:"material-symbols-zoom-in-rounded",render:YY},XY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},JY=V("path",{fill:"currentColor",d:"M7 17h10q.3 0 .45-.275t-.05-.525l-2.75-3.675q-.15-.2-.4-.2t-.4.2L11.25 16L9.4 13.525q-.15-.2-.4-.2t-.4.2l-2 2.675q-.2.25-.05.525T7 17Zm-2 4q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm0-2h14V5H5v14ZM5 5v14V5Z"},null,-1),eZ=[JY];function tZ(t,e){return te(),ie("svg",XY,eZ)}const p3={name:"material-symbols-image-outline-rounded",render:tZ},rZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},nZ=V("path",{fill:"currentColor",d:"m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 13.4Z"},null,-1),oZ=[nZ];function iZ(t,e){return te(),ie("svg",rZ,oZ)}const Hd={name:"material-symbols-close-rounded",render:iZ},aZ=()=>{};let h3=!1;try{const t={};Object.defineProperty(t,"passive",{get(){h3=!0}}),window.addEventListener("test-passive",aZ,t)}catch{}const OE=(t,e,r,n=!1)=>{t.addEventListener(e,r,h3?{capture:!1,passive:n}:!1)},PE=(t,e,r)=>{t.removeEventListener(e,r)},RE=t=>{t.preventDefault()},sZ=Object.prototype.toString,lZ=t=>e=>sZ.call(e).slice(8,-1)===t;function cZ(t){return lZ("Array")(t)}function LE(t,e){const r=t.clientX-e.clientX,n=t.clientY-e.clientY;return Math.sqrt(r*r+n*n)}const dZ=()=>{const t=Se(),e=vo({width:0,height:0,maxScale:1});return{imgRef:t,imgState:e,setImgSize:()=>{if(t.value){const{width:n,height:o,naturalWidth:i}=t.value;e.maxScale=i/n,e.width=n,e.height=o}}}},uZ=(t,e,r)=>{let n,o=!1;return{onMouseDown:d=>{r(d.button)&&(t.initX=t.lastX=d.clientX,t.initY=t.lastY=d.clientY,e.dragging=!0,e.dragging=!0,o=!1,d.stopPropagation())},onMouseUp:d=>{r(d.button)&&cancelAnimationFrame(n),e.dragging=!1,e.swipeToLeft=!1,e.swipeToRight=!1,o=!1},onMouseMove:d=>{if(e.dragging)if(r(d.button)){if(o)return;o=!0,n=requestAnimationFrame(()=>{const{top:u,left:f,lastY:g,lastX:_}=t;t.top=u-g+d.clientY,t.left=f-_+d.clientX,t.lastX=d.clientX,t.lastY=d.clientY,o=!1})}else t.lastX=d.clientX,t.lastY=d.clientY;d.stopPropagation()}}},fZ=(t,e,r,n)=>{let o,i=!1,a=0,c=0;const d=50;return{onTouchStart:_=>{const{touches:b}=_;a=b[0].clientX,c=b[0].clientY,b.length>1?(r.gesturing=!0,e.touches=b):(e.initX=e.lastX=b[0].clientX,e.initY=e.lastY=b[0].clientY,r.dragging=!0),_.stopPropagation()},onTouchMove:_=>{if(i)return;const{touches:b}=_,{lastX:h,lastY:m,left:y,top:v,scale:x}=e,E=b[0].clientX,T=b[0].clientY,C=E-a,A=T-c;if(Math.abs(C)>Math.abs(A)&&(Cd&&(r.swipeToRight=!0)),!r.gesturing&&r.dragging){if(!b[0])return;const{clientX:R,clientY:D}=b[0];n()?o=requestAnimationFrame(()=>{e.lastX=R,e.lastY=D,e.top=v-m+D,e.left=y-h+R,i=!1}):(e.lastX=R,e.lastY=D)}else r.gesturing&&e.touches.length>1&&b.length>1&&(o=requestAnimationFrame(()=>{const R=(LE(e.touches[0],e.touches[1])-LE(b[0],b[1]))/t.width;e.touches=b;const D=x-R*1.3;D>.5&&D{cancelAnimationFrame(o),r.dragging=!1,r.gesturing=!1,i=!1}}},pZ=[".jpg",".png",".jpeg",".bmp",".webp",".heic",".heif",".apng",".avif",".gif"],hZ=[".mp4",".mkv",".webm",".avi",".3gp",".mov",".m4v",".3gpp"],mZ=[".mp3",".wav",".wma",".ogg",".m4a",".opus",".flac",".aac"];function Ro(t){const e=t.toLowerCase();return pZ.some(r=>e.endsWith(r))}function jo(t){const e=t.toLowerCase();return hZ.some(r=>e.endsWith(r))}function Sd(t){const e=t.toLowerCase();return mZ.some(r=>e.endsWith(r))}function ME(t){return Ro(t)||jo(t)||Sd(t)}function yve(t){return[".txt",".pdf",".md"].some(e=>t.endsWith(e))}class vZ{constructor(e,r){kr(this,"dir");kr(this,"items",[]);this.dir=e,this.items=r}deleteItem(e){const r=this.items.findIndex(n=>this.inPath(n.path,e));r!==-1&&this.items.splice(r,1)}inPath(e,r){return(e+"/").startsWith(r+"/")}rename(e,r,n){const o=this.items.find(i=>this.inPath(i.path,e));o&&(o.path===e?(o.path=o.path.replace("/"+r,"/"+n),o.name=n):o.path=o.path.replace("/"+r+"/","/"+n+"/")),this.inPath(this.dir,e)&&(this.dir===e?this.dir=this.dir.replace("/"+r,"/"+n):this.dir=this.dir.replace("/"+r+"/","/"+n+"/"))}}async function DE(t){return new Promise(e=>{const r=document.createElement("video"),n=document.createElement("canvas"),o=URL.createObjectURL(t);r.src=o,r.play(),r.onloadeddata=async()=>{const i=Math.min(r.videoWidth,r.videoHeight),a=(r.videoWidth-i)/2,c=(r.videoHeight-i)/2;n.width=200,n.height=200,n.getContext("2d").drawImage(r,a,c,i,i,0,0,n.width,n.height);const u=n.toDataURL();r.pause(),r.currentTime=0,URL.revokeObjectURL(o),r.remove(),n.remove(),e({src:o,duration:Math.round(r.duration),thumbnail:u})}})}const ki=fA({id:"temp",state:()=>({app:null,urlTokenKey:null,uploads:[],selectedFiles:[],audioPlaying:!1,lightbox:{sources:[],visible:!1,index:-1}})});function a0(){var t;return localStorage.getItem("locale")??((t=navigator.languages)==null?void 0:t[0])??"en-US"}function s0(t,e){return t==="1970-01-01T00:00:00Z"?"":new Intl.DateTimeFormat(a0(),{hour12:!1,dateStyle:"short",timeStyle:"short",...e}).format(new Date(t))}function l0(t){return t==="1970-01-01T00:00:00Z"?"":s0(t,{dateStyle:"long",timeStyle:"long"})}function kv(t){return new Intl.DateTimeFormat(a0()).format(new Date(t))}function gZ(t){return new Intl.DateTimeFormat(a0(),{hour12:!1,timeStyle:"short"}).format(new Date(t))}function gh(t){const e=Math.floor(t/3600),r=Math.floor(t%3600/60),n=Math.floor(t%60),o=e<10?`0${e}`:e,i=r<10?`0${r}`:r,a=n<10?`0${n}`:n;return e>0?`${o}:${i}:${a}`:`${i}:${a}`}function Id(t,e=!0,r=1){const n=e?1e3:1024;if(Math.abs(t)=n&&isA=t,lA=Symbol();function Qg(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ed;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ed||(ed={}));function dU(){const t=Ty(!0),e=t.run(()=>Se({}));let r=[],n=[];const o=Ld({install(i){dh(o),o._a=i,i.provide(lA,o),i.config.globalProperties.$pinia=o,n.forEach(a=>r.push(a)),n=[]},use(i){return!this._a&&!KM?n.push(i):r.push(i),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return o}const cA=()=>{};function j5(t,e,r,n=cA){t.push(e);const o=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),n())};return!r&&ky()&&xL(o),o}function Ks(t,...e){t.slice().forEach(r=>{r(...e)})}const uU=t=>t();function Kg(t,e){t instanceof Map&&e instanceof Map&&e.forEach((r,n)=>t.set(n,r)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r],o=t[r];Qg(o)&&Qg(n)&&t.hasOwnProperty(r)&&!Rt(n)&&!fi(n)?t[r]=Kg(o,n):t[r]=n}return t}const fU=Symbol();function pU(t){return!Qg(t)||!t.hasOwnProperty(fU)}const{assign:Qi}=Object;function hU(t){return!!(Rt(t)&&t.effect)}function mU(t,e,r,n){const{state:o,actions:i,getters:a}=e,c=r.state.value[t];let d;function u(){c||(r.state.value[t]=o?o():{});const f=zp(r.state.value[t]);return Qi(f,i,Object.keys(a||{}).reduce((g,_)=>(g[_]=Ld(St(()=>{dh(r);const b=r._s.get(t);return a[_].call(b,b)})),g),{}))}return d=dA(t,u,e,r,n,!0),d}function dA(t,e,r={},n,o,i){let a;const c=Qi({actions:{}},r),d={deep:!0};let u,f,g=[],_=[],b;const h=n.state.value[t];!i&&!h&&(n.state.value[t]={}),Se({});let m;function y(R){let D;u=f=!1,typeof R=="function"?(R(n.state.value[t]),D={type:ed.patchFunction,storeId:t,events:b}):(Kg(n.state.value[t],R),D={type:ed.patchObject,payload:R,storeId:t,events:b});const q=m=Symbol();ta().then(()=>{m===q&&(u=!0)}),f=!0,Ks(g,D,n.state.value[t])}const v=i?function(){const{state:D}=r,q=D?D():{};this.$patch(H=>{Qi(H,q)})}:cA;function x(){a.stop(),g=[],_=[],n._s.delete(t)}function E(R,D){return function(){dh(n);const q=Array.from(arguments),H=[],U=[];function ce(Te){H.push(Te)}function Ae(Te){U.push(Te)}Ks(_,{args:q,name:R,store:C,after:ce,onError:Ae});let Le;try{Le=D.apply(this&&this.$id===t?this:C,q)}catch(Te){throw Ks(U,Te),Te}return Le instanceof Promise?Le.then(Te=>(Ks(H,Te),Te)).catch(Te=>(Ks(U,Te),Promise.reject(Te))):(Ks(H,Le),Le)}}const T={_p:n,$id:t,$onAction:j5.bind(null,_),$patch:y,$reset:v,$subscribe(R,D={}){const q=j5(g,R,D.detached,()=>H()),H=a.run(()=>Vt(()=>n.state.value[t],U=>{(D.flush==="sync"?f:u)&&R({storeId:t,type:ed.direct,events:b},U)},Qi({},d,D)));return q},$dispose:x},C=vo(T);n._s.set(t,C);const A=n._a&&n._a.runWithContext||uU,L=n._e.run(()=>(a=Ty(),A(()=>a.run(e))));for(const R in L){const D=L[R];if(Rt(D)&&!hU(D)||fi(D))i||(h&&pU(D)&&(Rt(D)?D.value=h[R]:Kg(D,h[R])),n.state.value[t][R]=D);else if(typeof D=="function"){const q=E(R,D);L[R]=q,c.actions[R]=D}}return Qi(C,L),Qi(yt(C),L),Object.defineProperty(C,"$state",{get:()=>n.state.value[t],set:R=>{y(D=>{Qi(D,R)})}}),n._p.forEach(R=>{Qi(C,a.run(()=>R({store:C,app:n._a,pinia:n,options:c})))}),h&&i&&r.hydrate&&r.hydrate(C.$state,h),u=!0,f=!0,C}function uA(t,e,r){let n,o;const i=typeof e=="function";typeof t=="string"?(n=t,o=i?r:e):(o=t,n=t.id);function a(c,d){const u=q6();return c=c||(u?rn(lA,null):null),c&&dh(c),c=sA,c._s.has(n)||(i?dA(n,e,o,c):mU(n,o,c)),c._s.get(n)}return a.$id=n,a}function ya(t){{t=yt(t);const e={};for(const r in t){const n=t[r];(Rt(n)||fi(n))&&(e[r]=e6(t,r))}return e}}const Bd=uA({id:"main",state:()=>({fileShowHidden:!1,chatText:"",quick:"chat",noteExpand:!0,pages:[],audios:[],audioPlaying:null,lightboxInfoVisible:!1,videoViewType:"grid",imageViewType:"grid",fileSortBy:"NAME_ASC",json:"",qrCode:"",callNumber:""}),actions:{replaceRoute(t,e){const r=this.pages.indexOf(t);r!==-1&&this.pages.splice(r,1,e)}}});var vU=typeof global=="object"&&global&&global.Object===Object&&global;const fA=vU;var gU=typeof self=="object"&&self&&self.Object===Object&&self,_U=fA||gU||Function("return this")();const wi=_U;var yU=wi.Symbol;const ba=yU;var pA=Object.prototype,bU=pA.hasOwnProperty,xU=pA.toString,Rc=ba?ba.toStringTag:void 0;function wU(t){var e=bU.call(t,Rc),r=t[Rc];try{t[Rc]=void 0;var n=!0}catch{}var o=xU.call(t);return n&&(e?t[Rc]=r:delete t[Rc]),o}var EU=Object.prototype,TU=EU.toString;function kU(t){return TU.call(t)}var CU="[object Null]",AU="[object Undefined]",H5=ba?ba.toStringTag:void 0;function Es(t){return t==null?t===void 0?AU:CU:H5&&H5 in Object(t)?wU(t):kU(t)}function xa(t){return t!=null&&typeof t=="object"}var SU="[object Symbol]";function uh(t){return typeof t=="symbol"||xa(t)&&Es(t)==SU}function Mb(t,e){for(var r=-1,n=t==null?0:t.length,o=Array(n);++r0){if(++e>=sV)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function uV(t){return function(){return t}}var fV=function(){try{var t=ks(Object,"defineProperty");return t({},"",{}),t}catch{}}();const Z5=fV;var pV=Z5?function(t,e){return Z5(t,"toString",{configurable:!0,enumerable:!1,value:uV(e),writable:!0})}:Fb;const hV=pV;var mV=dV(hV);const vV=mV;function mA(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i-1}var xV=9007199254740991,wV=/^(?:0|[1-9]\d*)$/;function fh(t,e){var r=typeof t;return e=e??xV,!!e&&(r=="number"||r!="symbol"&&wV.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=kV}function qb(t){return t!=null&&zb(t.length)&&!hA(t)}function CV(t,e,r){if(!ms(r))return!1;var n=typeof e;return(n=="number"?qb(r)&&fh(e,r.length):n=="string"&&e in r)?Nb(r[e],t):!1}var AV=Object.prototype;function SV(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||AV;return t===r}function IV(t,e){for(var r=-1,n=Array(t);++r-1}function Bj(t,e){var r=this.__data__,n=hh(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function Ei(t){var e=-1,r=t==null?0:t.length;for(this.clear();++eo?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n=n?t:Wb(t,e,r)}var aH="\\ud800-\\udfff",sH="\\u0300-\\u036f",lH="\\ufe20-\\ufe2f",cH="\\u20d0-\\u20ff",dH=sH+lH+cH,uH="\\ufe0e\\ufe0f",fH="\\u200d",pH=RegExp("["+fH+aH+dH+uH+"]");function Gb(t){return pH.test(t)}function hH(t){return t.split("")}var xA="\\ud800-\\udfff",mH="\\u0300-\\u036f",vH="\\ufe20-\\ufe2f",gH="\\u20d0-\\u20ff",_H=mH+vH+gH,yH="\\ufe0e\\ufe0f",bH="["+xA+"]",Xg="["+_H+"]",Jg="\\ud83c[\\udffb-\\udfff]",xH="(?:"+Xg+"|"+Jg+")",wA="[^"+xA+"]",EA="(?:\\ud83c[\\udde6-\\uddff]){2}",TA="[\\ud800-\\udbff][\\udc00-\\udfff]",wH="\\u200d",kA=xH+"?",CA="["+yH+"]?",EH="(?:"+wH+"(?:"+[wA,EA,TA].join("|")+")"+CA+kA+")*",TH=CA+kA+EH,kH="(?:"+[wA+Xg+"?",Xg,EA,TA,bH].join("|")+")",CH=RegExp(Jg+"(?="+Jg+")|"+kH+TH,"g");function AH(t){return t.match(CH)||[]}function SH(t){return Gb(t)?AH(t):hH(t)}function IH(t,e,r,n){var o=-1,i=t==null?0:t.length;for(n&&i&&(r=t[++o]);++oc))return!1;var u=i.get(t),f=i.get(e);if(u&&f)return u==e&&f==t;var g=-1,_=!0,b=r&KW?new Cd:void 0;for(i.set(t,e),i.set(e,t);++g=LG&&(i=BA,a=!1,e=new Cd(e));e:for(;++o=i)return t;var c=r-lQ(n);if(c<1)return n;var d=a?iH(a,0,c).join(""):t.slice(0,c);if(o===void 0)return d+n;if(a&&(c+=d.length-c),HG(o)){if(t.slice(c).search(o)){var u,f=d;for(o.global||(o=RegExp(o.source,kd(yQ.exec(o))+"g")),o.lastIndex=0;u=o.exec(f);)var g=u.index;d=d.slice(0,g===void 0?c:g)}}else if(t.indexOf(yp(o),c)!=c){var _=d.lastIndexOf(o);_>-1&&(d=d.slice(0,_))}return d+n}var xQ=TV(function(t,e){return PG(t)?MG(t,e):[]});const wQ=xQ,EQ=/(?:[^\s"]+|"[^"]*")+/g,wE=":",xp="NOT",t3={"=":"!=",">=":"<",">":"<=","!=":"=","<=":">","<":">=",in:"nin",nin:"in"},TQ=wQ(ph(t3),"in","nin");function kQ(t){return t.match(EQ)}function EE(t){return t.replace(/['"]+/g,"")}function CQ(t){return TQ.find(e=>t.indexOf(e)===0)||""}function AQ(t){const e=t.split(wE),r=EE(e[0]),n=EE(e.slice(1).join(wE)),o=CQ(n),i=n.slice(o.length);return{length:e.length,field:r,query:n,op:o,value:i}}function SQ(t){if(t==xp)return{name:"",op:xp,value:""};const e=AQ(t);return e.field=="is"?{name:e.query,op:"",value:"true"}:e.length==1?{name:"text",op:"",value:e.field}:{name:e.field,op:e.op,value:e.value}}const IQ=t=>{var n;const e=(n=kQ(t))==null?void 0:n.map(o=>SQ(o));if(!e)return[];let r=!1;return e.forEach(o=>{o.op==xp?r=!0:r&&(o.op=t3[o.op]||"",r=!1)}),e.filter(o=>o.op!==xp)},Kb=t=>{const e=[];return t.forEach(r=>{const n=r.value;r.name==="text"?n.indexOf(" ")!==-1?e.push(`"${n}"`):e.push(n):n.indexOf(" ")!==-1?e.push(`${r.name}:${r.op}"${n}"`):e.push(`${r.name}:${r.op}${n}`)}),e.join(" ")},$Q=t=>{var r;const e=Se(gq(((r=t.q)==null?void 0:r.toString())??""));return IQ(e.value)},r3=(t,e)=>{var n;const r=$Q(t);return r.length===1?((n=r.find(o=>o.name===e))==null?void 0:n.value)??"":""},mve=t=>r3(t,"tag"),vve=t=>r3(t,"feed"),gve=t=>{const e=[];t.bucketId&&e.push({name:"bucket_id",op:"",value:t.bucketId});for(const r of t.tags)e.push({name:"tag",op:"",value:GA(r.name)});return t.text&&e.push({name:"text",op:"",value:t.text}),Kb(e)},OQ={NOTE:"notes",AUDIO:"audios",IMAGE:"images",VIDEO:"videos",FEED_ENTRY:"feeds",SMS:"messages",CALL:"calls",CONTACT:"contacts",AI_CHAT:"aichats"},PQ={class:"tags"},RQ=["onClick"],LQ=Bt({__name:"ItemTags",props:{type:{type:String},tags:{type:Object,default:[],required:!0}},setup(t){const e=t,r=Bd();function n(o){if(!e.type)return;const i=Kb([{name:"tag",op:"",value:GA(o.name)}]);goe(r,`/${OQ[e.type]}?q=${Bg(i)}`)}return(o,i)=>(te(),ie("div",PQ,[(te(!0),ie(Pt,null,wo(t.tags,a=>(te(),ie("span",{class:"badge",onClick:Ot(c=>n(a),["stop"])},Ne(a.name),9,RQ))),256))]))}}),MQ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},DQ=V("path",{fill:"currentColor",d:"M5 19q-.825 0-1.413-.588T3 17V7q0-.825.588-1.413T5 5h10q.5 0 .938.225t.712.625l3.525 5q.35.525.35 1.15t-.35 1.15l-3.525 5q-.275.4-.712.625T15 19H5Zm13.55-7L15 7H5v10h10l3.55-5ZM5 12v5V7v5Z"},null,-1),FQ=[DQ];function NQ(t,e){return te(),ie("svg",MQ,FQ)}const zQ={name:"material-symbols-label-outline-rounded",render:NQ},qQ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},BQ=V("path",{fill:"currentColor",d:"M12 15.575q-.2 0-.375-.062T11.3 15.3l-3.6-3.6q-.275-.275-.275-.7t.275-.7q.275-.275.713-.287t.712.262L11 12.15V5q0-.425.288-.713T12 4q.425 0 .713.288T13 5v7.15l1.875-1.875q.275-.275.713-.263t.712.288q.275.275.275.7t-.275.7l-3.6 3.6q-.15.15-.325.213t-.375.062ZM6 20q-.825 0-1.413-.588T4 18v-2q0-.425.288-.713T5 15q.425 0 .713.288T6 16v2h12v-2q0-.425.288-.713T19 15q.425 0 .713.288T20 16v2q0 .825-.588 1.413T18 20H6Z"},null,-1),UQ=[BQ];function VQ(t,e){return te(),ie("svg",qQ,UQ)}const jQ={name:"material-symbols-download-rounded",render:VQ},HQ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},WQ=V("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm0 0v13V6Zm5 7.9l1.9 1.9q.3.275.713.275t.687-.275q.3-.3.3-.713t-.3-.687l-1.9-1.9l1.9-1.9q.3-.3.3-.713t-.3-.687q-.275-.3-.688-.3t-.712.3L12 11.1l-1.9-1.9q-.275-.3-.688-.3t-.712.3q-.275.275-.275.688t.275.712l1.9 1.9l-1.9 1.9q-.275.275-.275.688t.275.712q.3.275.713.275t.687-.275l1.9-1.9Z"},null,-1),GQ=[WQ];function QQ(t,e){return te(),ie("svg",HQ,GQ)}const Yb={name:"material-symbols-delete-forever-outline-rounded",render:QQ};const KQ={},YQ={class:"popper-arrow","data-popper-arrow":""};function ZQ(t,e){return te(),ie("div",YQ)}const XQ=gn(KQ,[["render",ZQ],["__scopeId","data-v-61211ab1"]]);function JQ(t,e,r){let n=null;const o=Se(!1);mn(()=>{(t.content!==void 0||r.value)&&(o.value=!0),n=new MutationObserver(i),n.observe(e.value,{childList:!0,subtree:!0})}),Ho(()=>n==null?void 0:n.disconnect()),Vt(r,a=>{a?o.value=!0:o.value=!1});const i=()=>{t.content?o.value=!0:o.value=!1};return{hasContent:o}}function Kn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function _s(t){var e=Kn(t).Element;return t instanceof e||t instanceof Element}function Gn(t){var e=Kn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Zb(t){if(typeof ShadowRoot>"u")return!1;var e=Kn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var ds=Math.max,wp=Math.min,Rl=Math.round;function i_(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function n3(){return!/^((?!chrome|android).)*safari/i.test(i_())}function Ll(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,i=1;e&&Gn(t)&&(o=t.offsetWidth>0&&Rl(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Rl(n.height)/t.offsetHeight||1);var a=_s(t)?Kn(t):window,c=a.visualViewport,d=!n3()&&r,u=(n.left+(d&&c?c.offsetLeft:0))/o,f=(n.top+(d&&c?c.offsetTop:0))/i,g=n.width/o,_=n.height/i;return{width:g,height:_,top:f,right:u+g,bottom:f+_,left:u,x:u,y:f}}function Xb(t){var e=Kn(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function eK(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function tK(t){return t===Kn(t)||!Gn(t)?Xb(t):eK(t)}function Vo(t){return t?(t.nodeName||"").toLowerCase():null}function Ca(t){return((_s(t)?t.ownerDocument:t.document)||window.document).documentElement}function Jb(t){return Ll(Ca(t)).left+Xb(t).scrollLeft}function gi(t){return Kn(t).getComputedStyle(t)}function e0(t){var e=gi(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function rK(t){var e=t.getBoundingClientRect(),r=Rl(e.width)/t.offsetWidth||1,n=Rl(e.height)/t.offsetHeight||1;return r!==1||n!==1}function nK(t,e,r){r===void 0&&(r=!1);var n=Gn(e),o=Gn(e)&&rK(e),i=Ca(e),a=Ll(t,o,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((Vo(e)!=="body"||e0(i))&&(c=tK(e)),Gn(e)?(d=Ll(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):i&&(d.x=Jb(i))),{x:a.left+c.scrollLeft-d.x,y:a.top+c.scrollTop-d.y,width:a.width,height:a.height}}function t0(t){var e=Ll(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function vh(t){return Vo(t)==="html"?t:t.assignedSlot||t.parentNode||(Zb(t)?t.host:null)||Ca(t)}function o3(t){return["html","body","#document"].indexOf(Vo(t))>=0?t.ownerDocument.body:Gn(t)&&e0(t)?t:o3(vh(t))}function rd(t,e){var r;e===void 0&&(e=[]);var n=o3(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),i=Kn(n),a=o?[i].concat(i.visualViewport||[],e0(n)?n:[]):n,c=e.concat(a);return o?c:c.concat(rd(vh(a)))}function oK(t){return["table","td","th"].indexOf(Vo(t))>=0}function TE(t){return!Gn(t)||gi(t).position==="fixed"?null:t.offsetParent}function iK(t){var e=/firefox/i.test(i_()),r=/Trident/i.test(i_());if(r&&Gn(t)){var n=gi(t);if(n.position==="fixed")return null}var o=vh(t);for(Zb(o)&&(o=o.host);Gn(o)&&["html","body"].indexOf(Vo(o))<0;){var i=gi(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Vd(t){for(var e=Kn(t),r=TE(t);r&&oK(r)&&gi(r).position==="static";)r=TE(r);return r&&(Vo(r)==="html"||Vo(r)==="body"&&gi(r).position==="static")?e:r||iK(t)||e}var An="top",yo="bottom",bo="right",Sn="left",r0="auto",jd=[An,yo,bo,Sn],Ml="start",Ad="end",aK="clippingParents",i3="viewport",Lc="popper",sK="reference",kE=jd.reduce(function(t,e){return t.concat([e+"-"+Ml,e+"-"+Ad])},[]),a3=[].concat(jd,[r0]).reduce(function(t,e){return t.concat([e,e+"-"+Ml,e+"-"+Ad])},[]),lK="beforeRead",cK="read",dK="afterRead",uK="beforeMain",fK="main",pK="afterMain",hK="beforeWrite",mK="write",vK="afterWrite",gK=[lK,cK,dK,uK,fK,pK,hK,mK,vK];function _K(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!r.has(c)){var d=e.get(c);d&&o(d)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||o(i)}),n}function yK(t){var e=_K(t);return gK.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function bK(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Mo(t){return t.split("-")[0]}function xK(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}function wK(t,e){var r=Kn(t),n=Ca(t),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,c=0,d=0;if(o){i=o.width,a=o.height;var u=n3();(u||!u&&e==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:i,height:a,x:c+Jb(t),y:d}}function EK(t){var e,r=Ca(t),n=Xb(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=ds(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ds(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+Jb(t),d=-n.scrollTop;return gi(o||r).direction==="rtl"&&(c+=ds(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:d}}function s3(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Zb(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function a_(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function TK(t,e){var r=Ll(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function CE(t,e,r){return e===i3?a_(wK(t,r)):_s(e)?TK(e,r):a_(EK(Ca(t)))}function kK(t){var e=rd(vh(t)),r=["absolute","fixed"].indexOf(gi(t).position)>=0,n=r&&Gn(t)?Vd(t):t;return _s(n)?e.filter(function(o){return _s(o)&&s3(o,n)&&Vo(o)!=="body"}):[]}function CK(t,e,r,n){var o=e==="clippingParents"?kK(t):[].concat(e),i=[].concat(o,[r]),a=i[0],c=i.reduce(function(d,u){var f=CE(t,u,n);return d.top=ds(f.top,d.top),d.right=wp(f.right,d.right),d.bottom=wp(f.bottom,d.bottom),d.left=ds(f.left,d.left),d},CE(t,a,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Dl(t){return t.split("-")[1]}function n0(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function l3(t){var e=t.reference,r=t.element,n=t.placement,o=n?Mo(n):null,i=n?Dl(n):null,a=e.x+e.width/2-r.width/2,c=e.y+e.height/2-r.height/2,d;switch(o){case An:d={x:a,y:e.y-r.height};break;case yo:d={x:a,y:e.y+e.height};break;case bo:d={x:e.x+e.width,y:c};break;case Sn:d={x:e.x-r.width,y:c};break;default:d={x:e.x,y:e.y}}var u=o?n0(o):null;if(u!=null){var f=u==="y"?"height":"width";switch(i){case Ml:d[u]=d[u]-(e[f]/2-r[f]/2);break;case Ad:d[u]=d[u]+(e[f]/2-r[f]/2);break}}return d}function c3(){return{top:0,right:0,bottom:0,left:0}}function d3(t){return Object.assign({},c3(),t)}function u3(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}function o0(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,i=r.strategy,a=i===void 0?t.strategy:i,c=r.boundary,d=c===void 0?aK:c,u=r.rootBoundary,f=u===void 0?i3:u,g=r.elementContext,_=g===void 0?Lc:g,b=r.altBoundary,h=b===void 0?!1:b,m=r.padding,y=m===void 0?0:m,v=d3(typeof y!="number"?y:u3(y,jd)),x=_===Lc?sK:Lc,E=t.rects.popper,T=t.elements[h?x:_],C=CK(_s(T)?T:T.contextElement||Ca(t.elements.popper),d,f,a),A=Ll(t.elements.reference),L=l3({reference:A,element:E,strategy:"absolute",placement:o}),R=a_(Object.assign({},E,L)),D=_===Lc?R:A,q={top:C.top-D.top+v.top,bottom:D.bottom-C.bottom+v.bottom,left:C.left-D.left+v.left,right:D.right-C.right+v.right},H=t.modifiersData.offset;if(_===Lc&&H){var U=H[o];Object.keys(q).forEach(function(ce){var Ae=[bo,yo].indexOf(ce)>=0?1:-1,Le=[An,yo].indexOf(ce)>=0?"y":"x";q[ce]+=U[Le]*Ae})}return q}var AE={placement:"bottom",modifiers:[],strategy:"absolute"};function SE(){for(var t=arguments.length,e=new Array(t),r=0;rr?r:n}function VK(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,c=a===void 0?!1:a,d=r.boundary,u=r.rootBoundary,f=r.altBoundary,g=r.padding,_=r.tether,b=_===void 0?!0:_,h=r.tetherOffset,m=h===void 0?0:h,y=o0(e,{boundary:d,rootBoundary:u,padding:g,altBoundary:f}),v=Mo(e.placement),x=Dl(e.placement),E=!x,T=n0(v),C=BK(T),A=e.modifiersData.popperOffsets,L=e.rects.reference,R=e.rects.popper,D=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,q=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,U={x:0,y:0};if(A){if(i){var ce,Ae=T==="y"?An:Sn,Le=T==="y"?yo:bo,Te=T==="y"?"height":"width",Ie=A[T],Pe=Ie+y[Ae],Ce=Ie-y[Le],de=b?-R[Te]/2:0,we=x===Ml?L[Te]:R[Te],ke=x===Ml?-R[Te]:-L[Te],Re=e.elements.arrow,He=b&&Re?t0(Re):{width:0,height:0},ze=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:c3(),We=ze[Ae],J=ze[Le],me=nd(0,L[Te],He[Te]),ve=E?L[Te]/2-de-me-We-q.mainAxis:we-me-We-q.mainAxis,$e=E?-L[Te]/2+de+me+J+q.mainAxis:ke+me+J+q.mainAxis,Oe=e.elements.arrow&&Vd(e.elements.arrow),M=Oe?T==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,k=(ce=H==null?void 0:H[T])!=null?ce:0,I=Ie+ve-k-M,N=Ie+$e-k,W=nd(b?wp(Pe,I):Pe,Ie,b?ds(Ce,N):Ce);A[T]=W,U[T]=W-Ie}if(c){var Y,se=T==="x"?An:Sn,ye=T==="x"?yo:bo,X=A[C],ee=C==="y"?"height":"width",fe=X+y[se],j=X-y[ye],z=[An,Sn].indexOf(v)!==-1,oe=(Y=H==null?void 0:H[C])!=null?Y:0,be=z?fe:X-L[ee]-R[ee]-oe+q.altAxis,Fe=z?X+L[ee]+R[ee]-oe-q.altAxis:j,Ue=b&&z?UK(be,X,Fe):nd(b?be:fe,X,b?Fe:j);A[C]=Ue,U[C]=Ue-X}e.modifiersData[n]=U}}const jK={name:"preventOverflow",enabled:!0,phase:"main",fn:VK,requiresIfExists:["offset"]};function HK(t,e,r){var n=Mo(t),o=[Sn,An].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[Sn,bo].indexOf(n)>=0?{x:c,y:a}:{x:a,y:c}}function WK(t){var e=t.state,r=t.options,n=t.name,o=r.offset,i=o===void 0?[0,0]:o,a=a3.reduce(function(f,g){return f[g]=HK(g,e.rects,i),f},{}),c=a[e.placement],d=c.x,u=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=a}const GK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:WK};var QK=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,d3(typeof e!="number"?e:u3(e,jd))};function KK(t){var e,r=t.state,n=t.name,o=t.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,c=Mo(r.placement),d=n0(c),u=[Sn,bo].indexOf(c)>=0,f=u?"height":"width";if(!(!i||!a)){var g=QK(o.padding,r),_=t0(i),b=d==="y"?An:Sn,h=d==="y"?yo:bo,m=r.rects.reference[f]+r.rects.reference[d]-a[d]-r.rects.popper[f],y=a[d]-r.rects.reference[d],v=Vd(i),x=v?d==="y"?v.clientHeight||0:v.clientWidth||0:0,E=m/2-y/2,T=g[b],C=x-_[f]-g[h],A=x/2-_[f]/2+E,L=nd(T,A,C),R=d;r.modifiersData[n]=(e={},e[R]=L,e.centerOffset=L-A,e)}}function YK(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||s3(e.elements.popper,o)&&(e.elements.arrow=o))}const ZK={name:"arrow",enabled:!0,phase:"main",fn:KK,effect:YK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var XK={left:"right",right:"left",bottom:"top",top:"bottom"};function Hf(t){return t.replace(/left|right|bottom|top/g,function(e){return XK[e]})}var JK={start:"end",end:"start"};function $E(t){return t.replace(/start|end/g,function(e){return JK[e]})}function eY(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,c=r.flipVariations,d=r.allowedAutoPlacements,u=d===void 0?a3:d,f=Dl(n),g=f?c?kE:kE.filter(function(h){return Dl(h)===f}):jd,_=g.filter(function(h){return u.indexOf(h)>=0});_.length===0&&(_=g);var b=_.reduce(function(h,m){return h[m]=o0(t,{placement:m,boundary:o,rootBoundary:i,padding:a})[Mo(m)],h},{});return Object.keys(b).sort(function(h,m){return b[h]-b[m]})}function tY(t){if(Mo(t)===r0)return[];var e=Hf(t);return[$E(t),e,$E(e)]}function rY(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,c=a===void 0?!0:a,d=r.fallbackPlacements,u=r.padding,f=r.boundary,g=r.rootBoundary,_=r.altBoundary,b=r.flipVariations,h=b===void 0?!0:b,m=r.allowedAutoPlacements,y=e.options.placement,v=Mo(y),x=v===y,E=d||(x||!h?[Hf(y)]:tY(y)),T=[y].concat(E).reduce(function(He,ze){return He.concat(Mo(ze)===r0?eY(e,{placement:ze,boundary:f,rootBoundary:g,padding:u,flipVariations:h,allowedAutoPlacements:m}):ze)},[]),C=e.rects.reference,A=e.rects.popper,L=new Map,R=!0,D=T[0],q=0;q=0,Le=Ae?"width":"height",Te=o0(e,{placement:H,boundary:f,rootBoundary:g,altBoundary:_,padding:u}),Ie=Ae?ce?bo:Sn:ce?yo:An;C[Le]>A[Le]&&(Ie=Hf(Ie));var Pe=Hf(Ie),Ce=[];if(i&&Ce.push(Te[U]<=0),c&&Ce.push(Te[Ie]<=0,Te[Pe]<=0),Ce.every(function(He){return He})){D=H,R=!1;break}L.set(H,Ce)}if(R)for(var de=h?3:1,we=function(ze){var We=T.find(function(J){var me=L.get(J);if(me)return me.slice(0,ze).every(function(ve){return ve})});if(We)return D=We,"break"},ke=de;ke>0;ke--){var Re=we(ke);if(Re==="break")break}e.placement!==D&&(e.modifiersData[n]._skip=!0,e.placement=D,e.reset=!0)}}const nY={name:"flip",enabled:!0,phase:"main",fn:rY,requiresIfExists:["offset"],data:{_skip:!1}};function oY({emit:t,placement:e,popperNode:r,triggerNode:n}){const o=vo({isOpen:!1,popperInstance:null}),i=g=>{var _;(_=o.popperInstance)==null||_.setOptions(b=>({...b,modifiers:[...b.modifiers,{name:"eventListeners",enabled:g}]}))},a=()=>i(!0),c=()=>i(!1),d=()=>{o.isOpen&&(o.isOpen=!1,t("close:popper"))},u=()=>{o.isOpen||(o.isOpen=!0,t("open:popper"))};Vt([()=>o.isOpen,e],async([g])=>{g?(await f(),a()):c()});const f=async()=>{var g;await ta(),o.popperInstance=qK(n.value,r.value,{placement:e.value,modifiers:[jK,ZK,{name:"arrow",options:{padding:0}},nY,{name:"flip",enabled:!0},GK,{name:"offset",options:{offset:[0,8]}}]}),(g=o.popperInstance)==null||g.update()};return Ho(()=>{var g;(g=o.popperInstance)==null||g.destroy()}),{...zp(o),open:u,close:d}}const iY=["onClick","onKeyup"],aY=["onClick"],sY=Bt({__name:"Popper",props:{placement:{type:String,default:"bottom",validator:function(t){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(t)}},hover:{type:Boolean,default:!1},show:{type:Boolean,default:null},zIndex:{type:[Number,String],default:9999},arrow:{type:Boolean,default:!1},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(t,{emit:e}){const r=t;SM(C=>({"08b750e8":t.zIndex}));const n=O6(),o=Se(null),i=Se(null),a=Se(null),c=Se(!1),{content:d,placement:u,show:f}=zp(r),{isOpen:g,open:_,close:b}=oY({emit:e,placement:u,popperNode:i,triggerNode:a}),{hasContent:h}=JQ(n,i,d),m=St(()=>f.value!==null),y=St(()=>!h.value),v=St(()=>g.value&&!y.value),x=async()=>{y.value||m.value||_()},E=async()=>{m.value||b()},T=()=>{g.value?E():x()};return Vt([h],([C])=>{g.value&&!C&&b()}),Vt(g,C=>{c.value=C}),m6(()=>{m.value&&(f.value?_():b())}),(C,A)=>{const L=XQ,R=ws("click-away");return _t((te(),ie("div",{class:"inline-block",onMouseleave:A[1]||(A[1]=D=>t.hover&&E()),ref_key:"popperContainerNode",ref:o},[V("div",{ref_key:"triggerNode",ref:a,onMouseover:A[0]||(A[0]=D=>t.hover&&x()),onClick:Ot(T,["stop"]),onFocus:x,onKeyup:Xs(E,["esc"])},[g2(C.$slots,"default",{},void 0,!0)],40,iY),Be(md,{name:"fade"},{default:go(()=>[_t(V("div",{class:"popper",ref_key:"popperNode",ref:i,onClick:Ot(()=>{},["stop"])},[g2(C.$slots,"content",{close:he(b),isOpen:c.value},()=>[Lo(Ne(he(d)),1)],!0),t.arrow?(te(),Hr(L,{key:0})):Tt("",!0)],8,aY),[[uo,v.value]])]),_:3})],32)),[[R,E]])}}});const i0=gn(sY,[["__scopeId","data-v-966bb667"]]),lY={class:"nowrap"},cY={class:"view-raw"},dY=Bt({__name:"FieldId",props:{id:{type:String,required:!0},raw:{type:[String,Object],default:""}},setup(t){return(e,r)=>{const n=i0;return te(),Hr(n,null,{content:go(()=>[V("pre",cY,Ne(t.raw),1)]),default:go(()=>[V("span",lY,Ne(t.id),1)]),_:1})}}}),uY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},fY=V("path",{fill:"currentColor",d:"M8.7 17.3q-.275-.275-.275-.7t.275-.7l3.9-3.9l-3.9-3.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.6 4.6q-.275.275-.7.275t-.7-.275Z"},null,-1),pY=[fY];function hY(t,e){return te(),ie("svg",uY,pY)}const mY={name:"material-symbols-chevron-right-rounded",render:hY},vY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},gY=V("path",{fill:"currentColor",d:"m13.3 17.3l-4.6-4.6q-.15-.15-.212-.325T8.425 12q0-.2.063-.375T8.7 11.3l4.6-4.6q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L10.8 12l3.9 3.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275Z"},null,-1),_Y=[gY];function yY(t,e){return te(),ie("svg",vY,_Y)}const bY={name:"material-symbols-chevron-left-rounded",render:yY},xY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},wY=V("path",{fill:"currentColor",d:"M12 17q.425 0 .713-.288T13 16v-4.025q0-.425-.288-.7T12 11q-.425 0-.713.288T11 12v4.025q0 .425.288.7T12 17Zm0-8q.425 0 .713-.288T13 8q0-.425-.288-.713T12 7q-.425 0-.713.288T11 8q0 .425.288.713T12 9Zm0 13q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),EY=[wY];function TY(t,e){return te(),ie("svg",xY,EY)}const kY={name:"material-symbols-info-outline-rounded",render:TY},CY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},AY=V("path",{fill:"currentColor",d:"M19.75 12.05q-.3 0-.588-.213T18.8 11.3q-.125-.475-.313-.938t-.437-.887q-.175-.275-.125-.613T18.2 8.3q.375-.35.863-.3t.737.475q.325.55.575 1.125t.4 1.2q.125.5-.188.875t-.837.375Zm-6.7 8.7q0-.3.213-.588t.537-.362q.475-.125.938-.313t.887-.437q.275-.175.613-.125t.562.275q.35.375.3.863t-.475.737q-.575.325-1.15.563t-1.175.412q-.5.125-.875-.175t-.375-.85Zm5.15-2.95q-.225-.2-.275-.55t.125-.625q.25-.425.438-.888t.312-.937q.075-.325.35-.537t.6-.213q.55 0 .85.375t.175.875q-.175.6-.412 1.175t-.563 1.15q-.25.425-.738.475t-.862-.3Zm-8.375 3.95q-2.975-.8-4.875-3.2t-1.9-5.5q0-3.75 2.625-6.375T12.05 4.05h.15l-.875-.875q-.275-.275-.275-.7t.3-.725q.275-.275.7-.275t.725.275l2.575 2.6q.15.15.213.325t.062.375q0 .2-.062.375t-.213.325l-2.6 2.6q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l.9-.9h-.2q-2.925 0-4.962 2.037T5.05 13.05q0 2.425 1.475 4.288T10.3 19.8q.325.075.537.35t.213.6q0 .525-.363.825t-.862.175Z"},null,-1),SY=[AY];function IY(t,e){return te(),ie("svg",CY,SY)}const $Y={name:"material-symbols-rotate-right-rounded",render:IY},OY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},PY=V("path",{fill:"currentColor",d:"M4.3 12.05q-.525 0-.838-.363t-.187-.862q.15-.625.4-1.212t.575-1.138q.275-.425.738-.475t.862.325q.2.2.263.538T6 9.475q-.275.425-.45.888t-.3.937q-.075.325-.338.537t-.612.213Zm5.475 9.725q-.6-.15-1.188-.4T7.426 20.8q-.425-.275-.475-.738t.325-.862q.2-.2.538-.263t.612.113q.425.275.888.45t.937.3q.325.075.537.338t.213.612q0 .525-.363.838t-.862.187Zm-5.525-4.15q-.325-.575-.575-1.163t-.4-1.187q-.125-.5.188-.863t.887-.362q.3 0 .563.213t.337.537q.125.475.3.938t.45.887q.175.275.125.6t-.275.55q-.375.375-.85.325t-.75-.475Zm9.975 4.125q-.5.125-.862-.175T13 20.75q0-.3.213-.588t.537-.362q2.325-.575 3.788-2.45T19 13.05q0-2.925-2.038-4.963T12 6.05h-.2l.9.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275l-2.6-2.6q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375T8.7 4.35l2.6-2.6q.275-.275.7-.275t.725.275q.275.3.275.725t-.275.7l-.875.875H12q3.75 0 6.375 2.625T21 13.05q0 3.1-1.9 5.5t-4.875 3.2Z"},null,-1),RY=[PY];function LY(t,e){return te(),ie("svg",OY,RY)}const MY={name:"material-symbols-rotate-left-rounded",render:LY},DY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},FY=V("path",{fill:"currentColor",d:"M6 12q.425 0 .713-.288T7 11V9h2.025q.425 0 .7-.288T10 8q0-.425-.288-.713T9 7H6q-.425 0-.713.288T5 8v3.025q0 .425.288.7T6 12Zm9 5h3q.425 0 .713-.288T19 16v-3.025q0-.425-.288-.7T18 12q-.425 0-.713.288T17 13v2h-2.025q-.425 0-.7.288T14 16q0 .425.288.713T15 17ZM4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.588 1.413T20 20H4Zm0-2V6v12Zm0 0h16V6H4v12Z"},null,-1),NY=[FY];function zY(t,e){return te(),ie("svg",DY,NY)}const qY={name:"material-symbols-aspect-ratio-outline-rounded",render:zY},BY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},UY=V("path",{fill:"currentColor",d:"m18.9 20.3l-5.6-5.6q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5q0-2.725 1.888-4.612T9.5 3q2.725 0 4.612 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.625 5.625q.275.275.263.687t-.288.688q-.275.275-.7.275t-.7-.275ZM9.5 14q1.875 0 3.188-1.313T14 9.5q0-1.875-1.313-3.188T9.5 5Q7.625 5 6.312 6.313T5 9.5q0 1.875 1.313 3.188T9.5 14Zm-1.525-3.5q-.425 0-.7-.288T7 9.5q0-.425.288-.713T8 8.5h3.025q.425 0 .7.288T12 9.5q0 .425-.288.713T11 10.5H7.975Z"},null,-1),VY=[UY];function jY(t,e){return te(),ie("svg",BY,VY)}const HY={name:"material-symbols-zoom-out-rounded",render:jY},WY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},GY=V("path",{fill:"currentColor",d:"m18.9 20.3l-5.6-5.6q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5q0-2.725 1.888-4.612T9.5 3q2.725 0 4.612 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.625 5.625q.275.275.263.687t-.288.688q-.275.275-.7.275t-.7-.275ZM9.5 14q1.875 0 3.188-1.313T14 9.5q0-1.875-1.313-3.188T9.5 5Q7.625 5 6.312 6.313T5 9.5q0 1.875 1.313 3.188T9.5 14Zm0-1.5q-.425 0-.713-.288T8.5 11.5v-1H7.475q-.425 0-.7-.288T6.5 9.5q0-.425.288-.713T7.5 8.5h1V7.475q0-.425.288-.7T9.5 6.5q.425 0 .713.287t.287.713v1h1.025q.425 0 .7.288t.275.712q0 .425-.288.713t-.712.287h-1v1.025q0 .425-.288.7T9.5 12.5Z"},null,-1),QY=[GY];function KY(t,e){return te(),ie("svg",WY,QY)}const YY={name:"material-symbols-zoom-in-rounded",render:KY},ZY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},XY=V("path",{fill:"currentColor",d:"M7 17h10q.3 0 .45-.275t-.05-.525l-2.75-3.675q-.15-.2-.4-.2t-.4.2L11.25 16L9.4 13.525q-.15-.2-.4-.2t-.4.2l-2 2.675q-.2.25-.05.525T7 17Zm-2 4q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm0-2h14V5H5v14ZM5 5v14V5Z"},null,-1),JY=[XY];function eZ(t,e){return te(),ie("svg",ZY,JY)}const f3={name:"material-symbols-image-outline-rounded",render:eZ},tZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},rZ=V("path",{fill:"currentColor",d:"m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 13.4Z"},null,-1),nZ=[rZ];function oZ(t,e){return te(),ie("svg",tZ,nZ)}const Hd={name:"material-symbols-close-rounded",render:oZ},iZ=()=>{};let p3=!1;try{const t={};Object.defineProperty(t,"passive",{get(){p3=!0}}),window.addEventListener("test-passive",iZ,t)}catch{}const OE=(t,e,r,n=!1)=>{t.addEventListener(e,r,p3?{capture:!1,passive:n}:!1)},PE=(t,e,r)=>{t.removeEventListener(e,r)},RE=t=>{t.preventDefault()},aZ=Object.prototype.toString,sZ=t=>e=>aZ.call(e).slice(8,-1)===t;function lZ(t){return sZ("Array")(t)}function LE(t,e){const r=t.clientX-e.clientX,n=t.clientY-e.clientY;return Math.sqrt(r*r+n*n)}const cZ=()=>{const t=Se(),e=vo({width:0,height:0,maxScale:1});return{imgRef:t,imgState:e,setImgSize:()=>{if(t.value){const{width:n,height:o,naturalWidth:i}=t.value;e.maxScale=i/n,e.width=n,e.height=o}}}},dZ=(t,e,r)=>{let n,o=!1;return{onMouseDown:d=>{r(d.button)&&(t.initX=t.lastX=d.clientX,t.initY=t.lastY=d.clientY,e.dragging=!0,e.dragging=!0,o=!1,d.stopPropagation())},onMouseUp:d=>{r(d.button)&&cancelAnimationFrame(n),e.dragging=!1,e.swipeToLeft=!1,e.swipeToRight=!1,o=!1},onMouseMove:d=>{if(e.dragging)if(r(d.button)){if(o)return;o=!0,n=requestAnimationFrame(()=>{const{top:u,left:f,lastY:g,lastX:_}=t;t.top=u-g+d.clientY,t.left=f-_+d.clientX,t.lastX=d.clientX,t.lastY=d.clientY,o=!1})}else t.lastX=d.clientX,t.lastY=d.clientY;d.stopPropagation()}}},uZ=(t,e,r,n)=>{let o,i=!1,a=0,c=0;const d=50;return{onTouchStart:_=>{const{touches:b}=_;a=b[0].clientX,c=b[0].clientY,b.length>1?(r.gesturing=!0,e.touches=b):(e.initX=e.lastX=b[0].clientX,e.initY=e.lastY=b[0].clientY,r.dragging=!0),_.stopPropagation()},onTouchMove:_=>{if(i)return;const{touches:b}=_,{lastX:h,lastY:m,left:y,top:v,scale:x}=e,E=b[0].clientX,T=b[0].clientY,C=E-a,A=T-c;if(Math.abs(C)>Math.abs(A)&&(Cd&&(r.swipeToRight=!0)),!r.gesturing&&r.dragging){if(!b[0])return;const{clientX:R,clientY:D}=b[0];n()?o=requestAnimationFrame(()=>{e.lastX=R,e.lastY=D,e.top=v-m+D,e.left=y-h+R,i=!1}):(e.lastX=R,e.lastY=D)}else r.gesturing&&e.touches.length>1&&b.length>1&&(o=requestAnimationFrame(()=>{const R=(LE(e.touches[0],e.touches[1])-LE(b[0],b[1]))/t.width;e.touches=b;const D=x-R*1.3;D>.5&&D{cancelAnimationFrame(o),r.dragging=!1,r.gesturing=!1,i=!1}}},fZ=[".jpg",".png",".jpeg",".bmp",".webp",".heic",".heif",".apng",".avif",".gif"],pZ=[".mp4",".mkv",".webm",".avi",".3gp",".mov",".m4v",".3gpp"],hZ=[".mp3",".wav",".wma",".ogg",".m4a",".opus",".flac",".aac"];function Ro(t){const e=t.toLowerCase();return fZ.some(r=>e.endsWith(r))}function jo(t){const e=t.toLowerCase();return pZ.some(r=>e.endsWith(r))}function Sd(t){const e=t.toLowerCase();return hZ.some(r=>e.endsWith(r))}function ME(t){return Ro(t)||jo(t)||Sd(t)}function _ve(t){return[".txt",".pdf",".md"].some(e=>t.endsWith(e))}class mZ{constructor(e,r){kr(this,"dir");kr(this,"items",[]);this.dir=e,this.items=r}deleteItem(e){const r=this.items.findIndex(n=>this.inPath(n.path,e));r!==-1&&this.items.splice(r,1)}inPath(e,r){return(e+"/").startsWith(r+"/")}rename(e,r,n){const o=this.items.find(i=>this.inPath(i.path,e));o&&(o.path===e?(o.path=o.path.replace("/"+r,"/"+n),o.name=n):o.path=o.path.replace("/"+r+"/","/"+n+"/")),this.inPath(this.dir,e)&&(this.dir===e?this.dir=this.dir.replace("/"+r,"/"+n):this.dir=this.dir.replace("/"+r+"/","/"+n+"/"))}}async function DE(t){return new Promise(e=>{const r=document.createElement("video"),n=document.createElement("canvas"),o=URL.createObjectURL(t);r.src=o,r.play(),r.onloadeddata=async()=>{const i=Math.min(r.videoWidth,r.videoHeight),a=(r.videoWidth-i)/2,c=(r.videoHeight-i)/2;n.width=200,n.height=200,n.getContext("2d").drawImage(r,a,c,i,i,0,0,n.width,n.height);const u=n.toDataURL();r.pause(),r.currentTime=0,URL.revokeObjectURL(o),r.remove(),n.remove(),e({src:o,duration:Math.round(r.duration),thumbnail:u})}})}const ki=uA({id:"temp",state:()=>({app:null,urlTokenKey:null,uploads:[],selectedFiles:[],audioPlaying:!1,lightbox:{sources:[],visible:!1,index:-1}})});function a0(){return localStorage.getItem("locale")??navigator.language??"en-US"}function s0(t,e){return t==="1970-01-01T00:00:00Z"?"":new Intl.DateTimeFormat(a0(),{hour12:!1,dateStyle:"short",timeStyle:"short",...e}).format(new Date(t))}function l0(t){return t==="1970-01-01T00:00:00Z"?"":s0(t,{dateStyle:"long",timeStyle:"long"})}function kv(t){return new Intl.DateTimeFormat(a0()).format(new Date(t))}function vZ(t){return new Intl.DateTimeFormat(a0(),{hour12:!1,timeStyle:"short"}).format(new Date(t))}function gh(t){const e=Math.floor(t/3600),r=Math.floor(t%3600/60),n=Math.floor(t%60),o=e<10?`0${e}`:e,i=r<10?`0${r}`:r,a=n<10?`0${n}`:n;return e>0?`${o}:${i}:${a}`:`${i}:${a}`}function Id(t,e=!0,r=1){const n=e?1e3:1024;if(Math.abs(t)=n&&i({clientId:t.appApi?"a":"b",...typeof t.options=="function"?t.options():t.options}));return e.value&&t.handle(e.value,""),r(a=>{var d,u,f,g,_;let c="";a.error&&((d=a.error)!=null&&d.networkError?((g=(f=(u=a.error)==null?void 0:u.networkError)==null?void 0:f.response)==null?void 0:g.status)===403?c="web_access_disabled":c="network_error":c=(_=a.error)==null?void 0:_.message),(c||a.data)&&t.handle(a.data,c)}),{result:e,onResult:r,refetch:n,loading:o,variables:i}}function FE(t){const{result:e,onResult:r,load:n,loading:o,variables:i,refetch:a}=d9(t.document,t.variables,()=>({clientId:t.appApi?"a":"b",...typeof t.options=="function"?t.options():t.options}));return e.value&&t.handle(e.value,""),r(c=>{var u,f;let d="";c.error&&((u=c.error)!=null&&u.networkError?d="network_error":d=(f=c.error)==null?void 0:f.message),(d||c.data)&&t.handle(c.data,d)}),{result:e,onResult:r,load:n,loading:o,variables:i,refetch:a}}const ol=Ee` +`;function ys(t){const{result:e,onResult:r,refetch:n,loading:o,variables:i}=l9(t.document,t.variables,()=>({clientId:t.appApi?"a":"b",...typeof t.options=="function"?t.options():t.options}));return e.value&&t.handle(e.value,""),r(a=>{var d,u,f,g,_;let c="";a.error&&((d=a.error)!=null&&d.networkError?((g=(f=(u=a.error)==null?void 0:u.networkError)==null?void 0:f.response)==null?void 0:g.status)===403?c="web_access_disabled":c="network_error":c=(_=a.error)==null?void 0:_.message),(c||a.data)&&t.handle(a.data,c)}),{result:e,onResult:r,refetch:n,loading:o,variables:i}}function FE(t){const{result:e,onResult:r,load:n,loading:o,variables:i,refetch:a}=c9(t.document,t.variables,()=>({clientId:t.appApi?"a":"b",...typeof t.options=="function"?t.options():t.options}));return e.value&&t.handle(e.value,""),r(c=>{var u,f;let d="";c.error&&((u=c.error)!=null&&u.networkError?d="network_error":d=(f=c.error)==null?void 0:f.message),(d||c.data)&&t.handle(c.data,d)}),{result:e,onResult:r,load:n,loading:o,variables:i,refetch:a}}const ol=Ee` query { chatItems { ...ChatItemFragment } } ${c0} -`,SZ=Ee` +`,AZ=Ee` query ($id: ID!, $path: String!) { fileInfo(id: $id, path: $path) { ... on FileInfo { @@ -776,23 +776,23 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } } ${Yn} -`,Cve=Ee` +`,kve=Ee` query messages($offset: Int!, $limit: Int!, $query: String!) { messages(offset: $offset, limit: $limit, query: $query) { ...MessageFragment } messageCount(query: $query) } - ${yZ} -`,Ave=Ee` + ${_Z} +`,Cve=Ee` query contacts($offset: Int!, $limit: Int!, $query: String!) { contacts(offset: $offset, limit: $limit, query: $query) { ...ContactFragment } contactCount(query: $query) } - ${bZ} -`,Sve=Ee` + ${yZ} +`,Ave=Ee` query { messageCount(query: "") contactCount(query: "") @@ -812,45 +812,45 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } } } -`,Ive=Ee` +`,Sve=Ee` query { contactSources { name type } } -`,$ve=Ee` +`,Ive=Ee` query calls($offset: Int!, $limit: Int!, $query: String!) { calls(offset: $offset, limit: $limit, query: $query) { ...CallFragment } callCount(query: $query) } - ${xZ} -`,Ove=Ee` + ${bZ} +`,$ve=Ee` query images($offset: Int!, $limit: Int!, $query: String!) { images(offset: $offset, limit: $limit, query: $query) { ...ImageFragment } imageCount(query: $query) } - ${wZ} -`,Pve=Ee` + ${xZ} +`,Ove=Ee` query videos($offset: Int!, $limit: Int!, $query: String!) { videos(offset: $offset, limit: $limit, query: $query) { ...VideoFragment } videoCount(query: $query) } - ${EZ} -`,Rve=Ee` + ${wZ} +`,Pve=Ee` query audios($offset: Int!, $limit: Int!, $query: String!) { audios(offset: $offset, limit: $limit, query: $query) { ...AudioFragment } audioCount(query: $query) } - ${TZ} + ${EZ} `,NE=Ee` query files($dir: String!, $showHidden: Boolean!, $sortBy: FileSortBy!) { files(dir: $dir, showHidden: $showHidden, sortBy: $sortBy) { @@ -861,14 +861,14 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } } ${d0} -`,IZ=Ee` +`,SZ=Ee` query recentFiles { recentFiles { ...FileFragment } } ${d0} -`,$Z=Ee` +`,IZ=Ee` query { storageStats { internal { @@ -885,21 +885,21 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } } } -`,OZ=Ee` +`,$Z=Ee` query { app { ...AppFragment } } - ${_Z} -`,PZ=Ee` + ${gZ} +`,OZ=Ee` query tags($type: DataType!) { tags(type: $type) { ...TagFragment } } ${_h} -`,Lve=Ee` +`,Rve=Ee` query mediaBuckets($type: DataType!) { mediaBuckets(type: $type) { id @@ -908,7 +908,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a topItems } } -`,Mve=Ee` +`,Lve=Ee` query notes($offset: Int!, $limit: Int!, $query: String!) { notes(offset: $offset, limit: $limit, query: $query) { id @@ -923,21 +923,21 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a noteCount(query: $query) } ${Yn} -`,Dve=Ee` +`,Mve=Ee` query note($id: ID!) { note(id: $id) { ...NoteFragment } } - ${v3} -`,Fve=Ee` + ${m3} +`,Dve=Ee` query { feeds { ...FeedFragment } } ${yh} -`,Nve=Ee` +`,Fve=Ee` query feedEntries($offset: Int!, $limit: Int!, $query: String!) { feedEntries(offset: $offset, limit: $limit, query: $query) { id @@ -958,7 +958,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a feedEntryCount(query: $query) } ${Yn} -`,zve=Ee` +`,Nve=Ee` query feedsTags($type: DataType!) { tags(type: $type) { ...TagFragment @@ -969,13 +969,13 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } ${yh} ${_h} -`,qve=Ee` +`,zve=Ee` query feedEntry($id: ID!) { feedEntry(id: $id) { ...FeedEntryFragment } } - ${g3} + ${v3} `;Ee` query latestExchangeRates($live: Boolean!) { latestExchangeRates(live: $live) { @@ -986,15 +986,15 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } } } -`;const Bve=Ee` +`;const qve=Ee` query aiChats($offset: Int!, $limit: Int!, $query: String!) { aiChats(offset: $offset, limit: $limit, query: $query) { ...AIChatFragment } aiChatCount(query: $query) } - ${_3} -`,Uve=Ee` + ${g3} +`,Bve=Ee` query aiChats($id: ID!, $query: String!) { aiChat(id: $id) { ...AIChatFragment @@ -1004,29 +1004,29 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } aiChatCount(query: $query) } - ${_3} -`,Vve=Ee` + ${g3} +`,Uve=Ee` query { aiChatConfig { chatGPTApiKey } } -`,jve=Ee` +`,Vve=Ee` query packages($offset: Int!, $limit: Int!, $query: String!) { packages(offset: $offset, limit: $limit, query: $query) { ...PackageFragment } packageCount(query: $query) } - ${kZ} -`,Hve=Ee` + ${TZ} +`,jve=Ee` query packageStatuses($ids: [ID!]!) { packageStatuses(ids: $ids) { id exist } } -`,Wve=Ee` +`,Hve=Ee` query { screenMirrorImage } @@ -1036,8 +1036,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a ...NotificationFragment } } - ${CZ} -`,Gve=Ee` + ${kZ} +`,Wve=Ee` query { deviceInfo { ...DeviceInfoFragment @@ -1053,61 +1053,61 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a capacity } } - ${AZ} -`;function RZ(t){const e=[],{graphQLErrors:r,networkError:n}=t,o="operation"in t?t.operation:void 0,i="stack"in t?t.stack:void 0;let a;return o&&(a=hk(o.query)),r&&r.forEach(({message:c,locations:d})=>{e.push(`[GraphQL error] ${c}`),o&&(e.push(MZ(a,d)),Object.keys(o.variables).length&&e.push(`with variables: ${JSON.stringify(o.variables,null,2)}`))}),n&&e.push(`[Network error] ${n}`),i&&e.push(i),e}function LZ(t,e=!0){if(RZ(t).forEach(r=>{const n=/\[([\w ]*)](.*)/.exec(r);if(n){const[,o,i]=n;console.log(`%c${o}`,"color:white;border-radius:3px;background:#ff4400;font-weight:bold;padding:2px 6px;",i)}else console.log(r)}),e){let r=new Error().stack;if(r==null)return;const n=r.indexOf(` + ${CZ} +`;function PZ(t){const e=[],{graphQLErrors:r,networkError:n}=t,o="operation"in t?t.operation:void 0,i="stack"in t?t.stack:void 0;let a;return o&&(a=pk(o.query)),r&&r.forEach(({message:c,locations:d})=>{e.push(`[GraphQL error] ${c}`),o&&(e.push(LZ(a,d)),Object.keys(o.variables).length&&e.push(`with variables: ${JSON.stringify(o.variables,null,2)}`))}),n&&e.push(`[Network error] ${n}`),i&&e.push(i),e}function RZ(t,e=!0){if(PZ(t).forEach(r=>{const n=/\[([\w ]*)](.*)/.exec(r);if(n){const[,o,i]=n;console.log(`%c${o}`,"color:white;border-radius:3px;background:#ff4400;font-weight:bold;padding:2px 6px;",i)}else console.log(r)}),e){let r=new Error().stack;if(r==null)return;const n=r.indexOf(` `);r=r.slice(r.indexOf(` -`,n+1)),console.log(`%c${r}`,"color:grey;")}}function MZ(t,e){const r=t.split(` +`,n+1)),console.log(`%c${r}`,"color:grey;")}}function LZ(t,e){const r=t.split(` `),n=r.length,o=r.slice(),i={};for(let a=0;a{var o;((o=n.networkError)==null?void 0:o.message)==="connection_timeout"?mt.emit("toast","connection_timeout"):mt.emit("toast",n.message),LZ(n)}),r}function es(t,e,r,n,o=!1){const i=t.readQuery({query:r,variables:n}),a=Object.keys(i)[0],c={};a==="files"?c[a]={...i[a],items:o?e.concat(i[a].items):i[a].items.concat(e)}:c[a]=o?e.concat(i[a]):i[a].concat(e),t.writeQuery({query:r,variables:n,data:c})}const y3=Ee` +`)}function jr(t,e=!0){const r=d9(t.document,{clientId:t.appApi?"a":"b",...t.options});return e&&r.onError(n=>{var o;((o=n.networkError)==null?void 0:o.message)==="connection_timeout"?mt.emit("toast","connection_timeout"):mt.emit("toast",n.message),RZ(n)}),r}function es(t,e,r,n,o=!1){const i=t.readQuery({query:r,variables:n}),a=Object.keys(i)[0],c={};a==="files"?c[a]={...i[a],items:o?e.concat(i[a].items):i[a].items.concat(e)}:c[a]=o?e.concat(i[a]):i[a].concat(e),t.writeQuery({query:r,variables:n,data:c})}const _3=Ee` mutation createChatItem($content: String!) { createChatItem(content: $content) { ...ChatItemFragment } } ${c0} -`,DZ=Ee` +`,MZ=Ee` mutation deleteChatItem($id: ID!) { deleteChatItem(id: $id) } -`,FZ=Ee` +`,DZ=Ee` mutation createDir($path: String!) { createDir(path: $path) { ...FileFragment } } ${d0} -`,NZ=Ee` +`,FZ=Ee` mutation renameFile($path: String!, $name: String!) { renameFile(path: $path, name: $name) } -`,zZ=Ee` +`,NZ=Ee` mutation copyFile($src: String!, $dst: String!, $overwrite: Boolean!) { copyFile(src: $src, dst: $dst, overwrite: $overwrite) } -`,qZ=Ee` +`,zZ=Ee` mutation moveFile($src: String!, $dst: String!, $overwrite: Boolean!) { moveFile(src: $src, dst: $dst, overwrite: $overwrite) } -`,BZ=Ee` +`,qZ=Ee` mutation playAudio($path: String!) { playAudio(path: $path) { ...PlaylistAudioFragment } } - ${m3} -`,UZ=Ee` + ${h3} +`,BZ=Ee` mutation updateAudioPlayMode($mode: MediaPlayMode!) { updateAudioPlayMode(mode: $mode) } -`,VZ=Ee` +`,UZ=Ee` mutation deletePlaylistAudio($path: String!) { deletePlaylistAudio(path: $path) } -`,Qve=Ee` +`,Gve=Ee` mutation addPlaylistAudios($query: String!) { addPlaylistAudios(query: $query) } -`,jZ=Ee` +`,VZ=Ee` mutation clearAudioPlaylist { clearAudioPlaylist } @@ -1115,113 +1115,113 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a mutation deleteMediaItems($type: DataType!, $query: String!) { deleteMediaItems(type: $type, query: $query) } -`,Kve=Ee` +`,Qve=Ee` mutation removeFromTags($type: DataType!, $tagIds: [ID!]!, $query: String!) { removeFromTags(type: $type, tagIds: $tagIds, query: $query) } -`,Yve=Ee` +`,Kve=Ee` mutation addToTags($type: DataType!, $tagIds: [ID!]!, $query: String!) { addToTags(type: $type, tagIds: $tagIds, query: $query) } -`,HZ=Ee` +`,jZ=Ee` mutation updateTagRelations($type: DataType!, $item: TagRelationStub!, $addTagIds: [ID!]!, $removeTagIds: [ID!]!) { updateTagRelations(type: $type, item: $item, addTagIds: $addTagIds, removeTagIds: $removeTagIds) } -`,Zve=Ee` +`,Yve=Ee` mutation createTag($type: DataType!, $name: String!) { createTag(type: $type, name: $name) { ...TagFragment } } ${_h} -`,Xve=Ee` +`,Zve=Ee` mutation updateTag($id: ID!, $name: String!) { updateTag(id: $id, name: $name) { ...TagFragment } } ${_h} -`,Jve=Ee` +`,Xve=Ee` mutation deleteTag($id: ID!) { deleteTag(id: $id) } -`,ege=Ee` +`,Jve=Ee` mutation saveNote($id: ID!, $input: NoteInput!) { saveNote(id: $id, input: $input) { ...NoteFragment } } - ${v3} -`,tge=Ee` + ${m3} +`,ege=Ee` mutation deleteNotes($query: String!) { deleteNotes(query: $query) } -`,rge=Ee` +`,tge=Ee` mutation trashNotes($query: String!) { trashNotes(query: $query) } -`,nge=Ee` +`,rge=Ee` mutation untrashNotes($query: String!) { untrashNotes(query: $query) } -`,oge=Ee` +`,nge=Ee` mutation deleteFeedEntries($query: String!) { deleteFeedEntries(query: $query) } -`,ige=Ee` +`,oge=Ee` mutation deleteCalls($query: String!) { deleteCalls(query: $query) } -`,age=Ee` +`,ige=Ee` mutation deleteContacts($query: String!) { deleteContacts(query: $query) } -`,sge=Ee` +`,age=Ee` mutation createFeed($url: String!, $fetchContent: Boolean!) { createFeed(url: $url, fetchContent: $fetchContent) { ...FeedFragment } } ${yh} -`,lge=Ee` +`,sge=Ee` mutation importFeeds($content: String!) { importFeeds(content: $content) } -`,cge=Ee` +`,lge=Ee` mutation exportFeeds { exportFeeds } -`,dge=Ee` +`,cge=Ee` mutation relaunchApp { relaunchApp } -`,uge=Ee` +`,dge=Ee` mutation deleteFeed($id: ID!) { deleteFeed(id: $id) } -`,fge=Ee` +`,uge=Ee` mutation updateFeed($id: ID!, $name: String!, $fetchContent: Boolean!) { updateFeed(id: $id, name: $name, fetchContent: $fetchContent) { ...FeedFragment } } ${yh} -`,pge=Ee` +`,fge=Ee` mutation syncFeeds($id: ID) { syncFeeds(id: $id) } -`,hge=Ee` +`,pge=Ee` mutation syncFeedContent($id: ID!) { syncFeedContent(id: $id) { ...FeedEntryFragment } } - ${g3} -`,mge=Ee` + ${v3} +`,hge=Ee` mutation call($number: String!) { call(number: $number) } -`,vge=Ee` +`,mge=Ee` mutation createAIChat($id: ID!, $message: String!, $isMe: Boolean!) { createAIChat(id: $id, message: $message, isMe: $isMe) { id @@ -1233,11 +1233,11 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a updatedAt } } -`,gge=Ee` +`,vge=Ee` mutation deleteAIChats($query: String!) { deleteAIChats(query: $query) } -`,_ge=Ee` +`,gge=Ee` mutation updateAIChatConfig($chatGPTApiKey: String!) { updateAIChatConfig(chatGPTApiKey: $chatGPTApiKey) { chatGPTApiKey @@ -1247,26 +1247,26 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a mutation uninstallPackages($ids: [ID!]!) { uninstallPackages(ids: $ids) } -`;const yge=Ee` +`;const _ge=Ee` mutation uninstallPackages($id: ID!) { uninstallPackages(ids: [$id]) } -`,bge=Ee` +`,yge=Ee` mutation startScreenMirror { startScreenMirror } -`,xge=Ee` +`,bge=Ee` mutation stopScreenMirror { stopScreenMirror } -`,wge=Ee` +`,xge=Ee` mutation setTempValue($key: String!, $value: String!) { setTempValue(key: $key, value: $value) { key value } } -`,WZ=Ee` +`,HZ=Ee` mutation cancelNotifications($ids: [ID!]!) { cancelNotifications(ids: $ids) } @@ -1277,10 +1277,10 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors -*/Ep.exports;(function(t,e){(function(){var r,n="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",g=1,_=2,b=4,h=1,m=2,y=1,v=2,x=4,E=8,T=16,C=32,A=64,L=128,R=256,D=512,q=30,H="...",U=800,ce=16,Ae=1,Le=2,Te=3,Ie=1/0,Pe=9007199254740991,Ce=17976931348623157e292,de=0/0,we=4294967295,ke=we-1,Re=we>>>1,He=[["ary",L],["bind",y],["bindKey",v],["curry",E],["curryRight",T],["flip",D],["partial",C],["partialRight",A],["rearg",R]],ze="[object Arguments]",We="[object Array]",J="[object AsyncFunction]",me="[object Boolean]",ve="[object Date]",$e="[object DOMException]",Oe="[object Error]",M="[object Function]",k="[object GeneratorFunction]",I="[object Map]",N="[object Number]",W="[object Null]",Y="[object Object]",se="[object Promise]",ye="[object Proxy]",X="[object RegExp]",ee="[object Set]",fe="[object String]",j="[object Symbol]",z="[object Undefined]",oe="[object WeakMap]",be="[object WeakSet]",Fe="[object ArrayBuffer]",Ue="[object DataView]",dt="[object Float32Array]",Gt="[object Float64Array]",gr="[object Int8Array]",ko="[object Int16Array]",eo="[object Int32Array]",Ii="[object Uint8Array]",_r="[object Uint8ClampedArray]",Nr="[object Uint16Array]",$i="[object Uint32Array]",Mh=/\b__p \+= '';/g,Dh=/\b(__p \+=) '' \+/g,Fh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Kr=/&(?:amp|lt|gt|quot|#39);/g,Ia=/[&<>"']/g,nu=RegExp(Kr.source),ou=RegExp(Ia.source),iu=/<%-([\s\S]+?)%>/g,au=/<%([\s\S]+?)%>/g,lc=/<%=([\s\S]+?)%>/g,su=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lu=/^\w*$/,cu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Os=/[\\^$.*+?()[\]{}|]/g,du=RegExp(Os.source),Ps=/^\s+/,uu=/\s/,fu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pu=/\{\n\/\* \[wrapped with (.+)\] \*/,hu=/,? & /,mu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vu=/[()=,{}\[\]\/\s]/,gu=/\\(\\)?/g,_u=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Er=/\w*$/,yu=/^[-+]0x[0-9a-f]+$/i,bu=/^0b[01]+$/i,GS=/^\[object .+?Constructor\]$/,QS=/^0o[0-7]+$/i,KS=/^(?:0|[1-9]\d*)$/,YS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xu=/($^)/,ZS=/['\n\r\u2028\u2029\\]/g,wu="\\ud800-\\udfff",XS="\\u0300-\\u036f",JS="\\ufe20-\\ufe2f",eI="\\u20d0-\\u20ff",R0=XS+JS+eI,L0="\\u2700-\\u27bf",M0="a-z\\xdf-\\xf6\\xf8-\\xff",tI="\\xac\\xb1\\xd7\\xf7",rI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nI="\\u2000-\\u206f",oI=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",D0="A-Z\\xc0-\\xd6\\xd8-\\xde",F0="\\ufe0e\\ufe0f",N0=tI+rI+nI+oI,Nh="['’]",iI="["+wu+"]",z0="["+N0+"]",Eu="["+R0+"]",q0="\\d+",aI="["+L0+"]",B0="["+M0+"]",U0="[^"+wu+N0+q0+L0+M0+D0+"]",zh="\\ud83c[\\udffb-\\udfff]",sI="(?:"+Eu+"|"+zh+")",V0="[^"+wu+"]",qh="(?:\\ud83c[\\udde6-\\uddff]){2}",Bh="[\\ud800-\\udbff][\\udc00-\\udfff]",Rs="["+D0+"]",j0="\\u200d",H0="(?:"+B0+"|"+U0+")",lI="(?:"+Rs+"|"+U0+")",W0="(?:"+Nh+"(?:d|ll|m|re|s|t|ve))?",G0="(?:"+Nh+"(?:D|LL|M|RE|S|T|VE))?",Q0=sI+"?",K0="["+F0+"]?",cI="(?:"+j0+"(?:"+[V0,qh,Bh].join("|")+")"+K0+Q0+")*",dI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",uI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Y0=K0+Q0+cI,fI="(?:"+[aI,qh,Bh].join("|")+")"+Y0,pI="(?:"+[V0+Eu+"?",Eu,qh,Bh,iI].join("|")+")",hI=RegExp(Nh,"g"),mI=RegExp(Eu,"g"),Uh=RegExp(zh+"(?="+zh+")|"+pI+Y0,"g"),vI=RegExp([Rs+"?"+B0+"+"+W0+"(?="+[z0,Rs,"$"].join("|")+")",lI+"+"+G0+"(?="+[z0,Rs+H0,"$"].join("|")+")",Rs+"?"+H0+"+"+W0,Rs+"+"+G0,uI,dI,q0,fI].join("|"),"g"),gI=RegExp("["+j0+wu+R0+F0+"]"),_I=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],bI=-1,Qt={};Qt[dt]=Qt[Gt]=Qt[gr]=Qt[ko]=Qt[eo]=Qt[Ii]=Qt[_r]=Qt[Nr]=Qt[$i]=!0,Qt[ze]=Qt[We]=Qt[Fe]=Qt[me]=Qt[Ue]=Qt[ve]=Qt[Oe]=Qt[M]=Qt[I]=Qt[N]=Qt[Y]=Qt[X]=Qt[ee]=Qt[fe]=Qt[oe]=!1;var Ht={};Ht[ze]=Ht[We]=Ht[Fe]=Ht[Ue]=Ht[me]=Ht[ve]=Ht[dt]=Ht[Gt]=Ht[gr]=Ht[ko]=Ht[eo]=Ht[I]=Ht[N]=Ht[Y]=Ht[X]=Ht[ee]=Ht[fe]=Ht[j]=Ht[Ii]=Ht[_r]=Ht[Nr]=Ht[$i]=!0,Ht[Oe]=Ht[M]=Ht[oe]=!1;var xI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},wI={"&":"&","<":"<",">":">",'"':""","'":"'"},EI={"&":"&","<":"<",">":">",""":'"',"'":"'"},TI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},kI=parseFloat,CI=parseInt,Z0=typeof ui=="object"&&ui&&ui.Object===Object&&ui,AI=typeof self=="object"&&self&&self.Object===Object&&self,Rr=Z0||AI||Function("return this")(),Vh=e&&!e.nodeType&&e,$a=Vh&&!0&&t&&!t.nodeType&&t,X0=$a&&$a.exports===Vh,jh=X0&&Z0.process,Pn=function(){try{var G=$a&&$a.require&&$a.require("util").types;return G||jh&&jh.binding&&jh.binding("util")}catch{}}(),J0=Pn&&Pn.isArrayBuffer,e1=Pn&&Pn.isDate,t1=Pn&&Pn.isMap,r1=Pn&&Pn.isRegExp,n1=Pn&&Pn.isSet,o1=Pn&&Pn.isTypedArray;function _n(G,ae,ne){switch(ne.length){case 0:return G.call(ae);case 1:return G.call(ae,ne[0]);case 2:return G.call(ae,ne[0],ne[1]);case 3:return G.call(ae,ne[0],ne[1],ne[2])}return G.apply(ae,ne)}function SI(G,ae,ne,qe){for(var ot=-1,At=G==null?0:G.length;++ot-1}function Hh(G,ae,ne){for(var qe=-1,ot=G==null?0:G.length;++qe-1;);return ne}function f1(G,ae){for(var ne=G.length;ne--&&Ls(ae,G[ne],0)>-1;);return ne}function FI(G,ae){for(var ne=G.length,qe=0;ne--;)G[ne]===ae&&++qe;return qe}var NI=Kh(xI),zI=Kh(wI);function qI(G){return"\\"+TI[G]}function BI(G,ae){return G==null?r:G[ae]}function Ms(G){return gI.test(G)}function UI(G){return _I.test(G)}function VI(G){for(var ae,ne=[];!(ae=G.next()).done;)ne.push(ae.value);return ne}function Jh(G){var ae=-1,ne=Array(G.size);return G.forEach(function(qe,ot){ne[++ae]=[ot,qe]}),ne}function p1(G,ae){return function(ne){return G(ae(ne))}}function Ri(G,ae){for(var ne=-1,qe=G.length,ot=0,At=[];++ne-1}function $$(s,l){var p=this.__data__,w=Bu(p,s);return w<0?(++this.size,p.push([s,l])):p[w][1]=l,this}Ko.prototype.clear=C$,Ko.prototype.delete=A$,Ko.prototype.get=S$,Ko.prototype.has=I$,Ko.prototype.set=$$;function Yo(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l=l?s:l)),s}function Dn(s,l,p,w,S,O){var F,B=l&g,K=l&_,le=l&b;if(p&&(F=S?p(s,w,S,O):p(s)),F!==r)return F;if(!tr(s))return s;var ue=at(s);if(ue){if(F=LO(s),!B)return an(s,F)}else{var xe=qr(s),Me=xe==M||xe==k;if(zi(s))return K1(s,B);if(xe==Y||xe==ze||Me&&!S){if(F=K||Me?{}:hx(s),!B)return K?EO(s,W$(F,s)):wO(s,k1(F,s))}else{if(!Ht[xe])return S?s:{};F=MO(s,xe,B)}}O||(O=new ro);var Ke=O.get(s);if(Ke)return Ke;O.set(s,F),Vx(s)?s.forEach(function(et){F.add(Dn(et,l,p,et,s,O))}):Bx(s)&&s.forEach(function(et,ht){F.set(ht,Dn(et,l,p,ht,s,O))});var Je=le?K?km:Tm:K?ln:Tr,ut=ue?r:Je(s);return Rn(ut||s,function(et,ht){ut&&(ht=et,et=s[ht]),mc(F,ht,Dn(et,l,p,ht,s,O))}),F}function G$(s){var l=Tr(s);return function(p){return C1(p,s,l)}}function C1(s,l,p){var w=p.length;if(s==null)return!w;for(s=Ut(s);w--;){var S=p[w],O=l[S],F=s[S];if(F===r&&!(S in s)||!O(F))return!1}return!0}function A1(s,l,p){if(typeof s!="function")throw new Ln(a);return wc(function(){s.apply(r,p)},l)}function vc(s,l,p,w){var S=-1,O=Tu,F=!0,B=s.length,K=[],le=l.length;if(!B)return K;p&&(l=Jt(l,yn(p))),w?(O=Hh,F=!1):l.length>=o&&(O=cc,F=!1,l=new Ra(l));e:for(;++SS?0:S+p),w=w===r||w>S?S:ct(w),w<0&&(w+=S),w=p>w?0:Hx(w);p0&&p(B)?l>1?Lr(B,l-1,p,w,S):Pi(S,B):w||(S[S.length]=B)}return S}var am=tx(),$1=tx(!0);function Co(s,l){return s&&am(s,l,Tr)}function sm(s,l){return s&&$1(s,l,Tr)}function Vu(s,l){return Oi(l,function(p){return ti(s[p])})}function Ma(s,l){l=Fi(l,s);for(var p=0,w=l.length;s!=null&&pl}function Y$(s,l){return s!=null&&Lt.call(s,l)}function Z$(s,l){return s!=null&&l in Ut(s)}function X$(s,l,p){return s>=zr(l,p)&&s=120&&ue.length>=120)?new Ra(F&&ue):r}ue=s[0];var xe=-1,Me=B[0];e:for(;++xe-1;)B!==s&&Lu.call(B,K,1),Lu.call(s,K,1);return s}function B1(s,l){for(var p=s?l.length:0,w=p-1;p--;){var S=l[p];if(p==w||S!==O){var O=S;ei(S)?Lu.call(s,S,1):gm(s,S)}}return s}function hm(s,l){return s+Fu(x1()*(l-s+1))}function uO(s,l,p,w){for(var S=-1,O=br(Du((l-s)/(p||1)),0),F=ne(O);O--;)F[w?O:++S]=s,s+=p;return F}function mm(s,l){var p="";if(!s||l<1||l>Pe)return p;do l%2&&(p+=s),l=Fu(l/2),l&&(s+=s);while(l);return p}function ft(s,l){return Pm(gx(s,l,cn),s+"")}function fO(s){return T1(Ws(s))}function pO(s,l){var p=Ws(s);return ef(p,La(l,0,p.length))}function yc(s,l,p,w){if(!tr(s))return s;l=Fi(l,s);for(var S=-1,O=l.length,F=O-1,B=s;B!=null&&++SS?0:S+l),p=p>S?S:p,p<0&&(p+=S),S=l>p?0:p-l>>>0,l>>>=0;for(var O=ne(S);++w>>1,F=s[O];F!==null&&!xn(F)&&(p?F<=l:F=o){var le=l?null:AO(s);if(le)return Cu(le);F=!1,S=cc,K=new Ra}else K=l?[]:B;e:for(;++w=w?s:Fn(s,l,p)}var Q1=o$||function(s){return Rr.clearTimeout(s)};function K1(s,l){if(l)return s.slice();var p=s.length,w=v1?v1(p):new s.constructor(p);return s.copy(w),w}function xm(s){var l=new s.constructor(s.byteLength);return new Pu(l).set(new Pu(s)),l}function _O(s,l){var p=l?xm(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.byteLength)}function yO(s){var l=new s.constructor(s.source,Er.exec(s));return l.lastIndex=s.lastIndex,l}function bO(s){return hc?Ut(hc.call(s)):{}}function Y1(s,l){var p=l?xm(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.length)}function Z1(s,l){if(s!==l){var p=s!==r,w=s===null,S=s===s,O=xn(s),F=l!==r,B=l===null,K=l===l,le=xn(l);if(!B&&!le&&!O&&s>l||O&&F&&K&&!B&&!le||w&&F&&K||!p&&K||!S)return 1;if(!w&&!O&&!le&&s=B)return K;var le=p[w];return K*(le=="desc"?-1:1)}}return s.index-l.index}function X1(s,l,p,w){for(var S=-1,O=s.length,F=p.length,B=-1,K=l.length,le=br(O-F,0),ue=ne(K+le),xe=!w;++B1?p[S-1]:r,F=S>2?p[2]:r;for(O=s.length>3&&typeof O=="function"?(S--,O):r,F&&Zr(p[0],p[1],F)&&(O=S<3?r:O,S=1),l=Ut(l);++w-1?S[O?l[F]:F]:r}}function ox(s){return Jo(function(l){var p=l.length,w=p,S=Mn.prototype.thru;for(s&&l.reverse();w--;){var O=l[w];if(typeof O!="function")throw new Ln(a);if(S&&!F&&Xu(O)=="wrapper")var F=new Mn([],!0)}for(w=F?w:p;++w1&&bt.reverse(),ue&&KB))return!1;var le=O.get(s),ue=O.get(l);if(le&&ue)return le==l&&ue==s;var xe=-1,Me=!0,Ke=p&m?new Ra:r;for(O.set(s,l),O.set(l,s);++xe1?"& ":"")+l[w],l=l.join(p>2?", ":" "),s.replace(fu,`{ +*/Ep.exports;(function(t,e){(function(){var r,n="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",g=1,_=2,b=4,h=1,m=2,y=1,v=2,x=4,E=8,T=16,C=32,A=64,L=128,R=256,D=512,q=30,H="...",U=800,ce=16,Ae=1,Le=2,Te=3,Ie=1/0,Pe=9007199254740991,Ce=17976931348623157e292,de=0/0,we=4294967295,ke=we-1,Re=we>>>1,He=[["ary",L],["bind",y],["bindKey",v],["curry",E],["curryRight",T],["flip",D],["partial",C],["partialRight",A],["rearg",R]],ze="[object Arguments]",We="[object Array]",J="[object AsyncFunction]",me="[object Boolean]",ve="[object Date]",$e="[object DOMException]",Oe="[object Error]",M="[object Function]",k="[object GeneratorFunction]",I="[object Map]",N="[object Number]",W="[object Null]",Y="[object Object]",se="[object Promise]",ye="[object Proxy]",X="[object RegExp]",ee="[object Set]",fe="[object String]",j="[object Symbol]",z="[object Undefined]",oe="[object WeakMap]",be="[object WeakSet]",Fe="[object ArrayBuffer]",Ue="[object DataView]",dt="[object Float32Array]",Gt="[object Float64Array]",gr="[object Int8Array]",ko="[object Int16Array]",eo="[object Int32Array]",Ii="[object Uint8Array]",_r="[object Uint8ClampedArray]",Nr="[object Uint16Array]",$i="[object Uint32Array]",Mh=/\b__p \+= '';/g,Dh=/\b(__p \+=) '' \+/g,Fh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Kr=/&(?:amp|lt|gt|quot|#39);/g,Ia=/[&<>"']/g,nu=RegExp(Kr.source),ou=RegExp(Ia.source),iu=/<%-([\s\S]+?)%>/g,au=/<%([\s\S]+?)%>/g,lc=/<%=([\s\S]+?)%>/g,su=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lu=/^\w*$/,cu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Os=/[\\^$.*+?()[\]{}|]/g,du=RegExp(Os.source),Ps=/^\s+/,uu=/\s/,fu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pu=/\{\n\/\* \[wrapped with (.+)\] \*/,hu=/,? & /,mu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vu=/[()=,{}\[\]\/\s]/,gu=/\\(\\)?/g,_u=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Er=/\w*$/,yu=/^[-+]0x[0-9a-f]+$/i,bu=/^0b[01]+$/i,WS=/^\[object .+?Constructor\]$/,GS=/^0o[0-7]+$/i,QS=/^(?:0|[1-9]\d*)$/,KS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xu=/($^)/,YS=/['\n\r\u2028\u2029\\]/g,wu="\\ud800-\\udfff",ZS="\\u0300-\\u036f",XS="\\ufe20-\\ufe2f",JS="\\u20d0-\\u20ff",R0=ZS+XS+JS,L0="\\u2700-\\u27bf",M0="a-z\\xdf-\\xf6\\xf8-\\xff",eI="\\xac\\xb1\\xd7\\xf7",tI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rI="\\u2000-\\u206f",nI=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",D0="A-Z\\xc0-\\xd6\\xd8-\\xde",F0="\\ufe0e\\ufe0f",N0=eI+tI+rI+nI,Nh="['’]",oI="["+wu+"]",z0="["+N0+"]",Eu="["+R0+"]",q0="\\d+",iI="["+L0+"]",B0="["+M0+"]",U0="[^"+wu+N0+q0+L0+M0+D0+"]",zh="\\ud83c[\\udffb-\\udfff]",aI="(?:"+Eu+"|"+zh+")",V0="[^"+wu+"]",qh="(?:\\ud83c[\\udde6-\\uddff]){2}",Bh="[\\ud800-\\udbff][\\udc00-\\udfff]",Rs="["+D0+"]",j0="\\u200d",H0="(?:"+B0+"|"+U0+")",sI="(?:"+Rs+"|"+U0+")",W0="(?:"+Nh+"(?:d|ll|m|re|s|t|ve))?",G0="(?:"+Nh+"(?:D|LL|M|RE|S|T|VE))?",Q0=aI+"?",K0="["+F0+"]?",lI="(?:"+j0+"(?:"+[V0,qh,Bh].join("|")+")"+K0+Q0+")*",cI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Y0=K0+Q0+lI,uI="(?:"+[iI,qh,Bh].join("|")+")"+Y0,fI="(?:"+[V0+Eu+"?",Eu,qh,Bh,oI].join("|")+")",pI=RegExp(Nh,"g"),hI=RegExp(Eu,"g"),Uh=RegExp(zh+"(?="+zh+")|"+fI+Y0,"g"),mI=RegExp([Rs+"?"+B0+"+"+W0+"(?="+[z0,Rs,"$"].join("|")+")",sI+"+"+G0+"(?="+[z0,Rs+H0,"$"].join("|")+")",Rs+"?"+H0+"+"+W0,Rs+"+"+G0,dI,cI,q0,uI].join("|"),"g"),vI=RegExp("["+j0+wu+R0+F0+"]"),gI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_I=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yI=-1,Qt={};Qt[dt]=Qt[Gt]=Qt[gr]=Qt[ko]=Qt[eo]=Qt[Ii]=Qt[_r]=Qt[Nr]=Qt[$i]=!0,Qt[ze]=Qt[We]=Qt[Fe]=Qt[me]=Qt[Ue]=Qt[ve]=Qt[Oe]=Qt[M]=Qt[I]=Qt[N]=Qt[Y]=Qt[X]=Qt[ee]=Qt[fe]=Qt[oe]=!1;var Ht={};Ht[ze]=Ht[We]=Ht[Fe]=Ht[Ue]=Ht[me]=Ht[ve]=Ht[dt]=Ht[Gt]=Ht[gr]=Ht[ko]=Ht[eo]=Ht[I]=Ht[N]=Ht[Y]=Ht[X]=Ht[ee]=Ht[fe]=Ht[j]=Ht[Ii]=Ht[_r]=Ht[Nr]=Ht[$i]=!0,Ht[Oe]=Ht[M]=Ht[oe]=!1;var bI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},xI={"&":"&","<":"<",">":">",'"':""","'":"'"},wI={"&":"&","<":"<",">":">",""":'"',"'":"'"},EI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},TI=parseFloat,kI=parseInt,Z0=typeof ui=="object"&&ui&&ui.Object===Object&&ui,CI=typeof self=="object"&&self&&self.Object===Object&&self,Rr=Z0||CI||Function("return this")(),Vh=e&&!e.nodeType&&e,$a=Vh&&!0&&t&&!t.nodeType&&t,X0=$a&&$a.exports===Vh,jh=X0&&Z0.process,Pn=function(){try{var G=$a&&$a.require&&$a.require("util").types;return G||jh&&jh.binding&&jh.binding("util")}catch{}}(),J0=Pn&&Pn.isArrayBuffer,e1=Pn&&Pn.isDate,t1=Pn&&Pn.isMap,r1=Pn&&Pn.isRegExp,n1=Pn&&Pn.isSet,o1=Pn&&Pn.isTypedArray;function _n(G,ae,ne){switch(ne.length){case 0:return G.call(ae);case 1:return G.call(ae,ne[0]);case 2:return G.call(ae,ne[0],ne[1]);case 3:return G.call(ae,ne[0],ne[1],ne[2])}return G.apply(ae,ne)}function AI(G,ae,ne,qe){for(var ot=-1,At=G==null?0:G.length;++ot-1}function Hh(G,ae,ne){for(var qe=-1,ot=G==null?0:G.length;++qe-1;);return ne}function f1(G,ae){for(var ne=G.length;ne--&&Ls(ae,G[ne],0)>-1;);return ne}function DI(G,ae){for(var ne=G.length,qe=0;ne--;)G[ne]===ae&&++qe;return qe}var FI=Kh(bI),NI=Kh(xI);function zI(G){return"\\"+EI[G]}function qI(G,ae){return G==null?r:G[ae]}function Ms(G){return vI.test(G)}function BI(G){return gI.test(G)}function UI(G){for(var ae,ne=[];!(ae=G.next()).done;)ne.push(ae.value);return ne}function Jh(G){var ae=-1,ne=Array(G.size);return G.forEach(function(qe,ot){ne[++ae]=[ot,qe]}),ne}function p1(G,ae){return function(ne){return G(ae(ne))}}function Ri(G,ae){for(var ne=-1,qe=G.length,ot=0,At=[];++ne-1}function I$(s,l){var p=this.__data__,w=Bu(p,s);return w<0?(++this.size,p.push([s,l])):p[w][1]=l,this}Ko.prototype.clear=k$,Ko.prototype.delete=C$,Ko.prototype.get=A$,Ko.prototype.has=S$,Ko.prototype.set=I$;function Yo(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l=l?s:l)),s}function Dn(s,l,p,w,S,O){var F,B=l&g,K=l&_,le=l&b;if(p&&(F=S?p(s,w,S,O):p(s)),F!==r)return F;if(!tr(s))return s;var ue=at(s);if(ue){if(F=RO(s),!B)return an(s,F)}else{var xe=qr(s),Me=xe==M||xe==k;if(zi(s))return K1(s,B);if(xe==Y||xe==ze||Me&&!S){if(F=K||Me?{}:hx(s),!B)return K?wO(s,H$(F,s)):xO(s,k1(F,s))}else{if(!Ht[xe])return S?s:{};F=LO(s,xe,B)}}O||(O=new ro);var Ke=O.get(s);if(Ke)return Ke;O.set(s,F),Vx(s)?s.forEach(function(et){F.add(Dn(et,l,p,et,s,O))}):Bx(s)&&s.forEach(function(et,ht){F.set(ht,Dn(et,l,p,ht,s,O))});var Je=le?K?km:Tm:K?ln:Tr,ut=ue?r:Je(s);return Rn(ut||s,function(et,ht){ut&&(ht=et,et=s[ht]),mc(F,ht,Dn(et,l,p,ht,s,O))}),F}function W$(s){var l=Tr(s);return function(p){return C1(p,s,l)}}function C1(s,l,p){var w=p.length;if(s==null)return!w;for(s=Ut(s);w--;){var S=p[w],O=l[S],F=s[S];if(F===r&&!(S in s)||!O(F))return!1}return!0}function A1(s,l,p){if(typeof s!="function")throw new Ln(a);return wc(function(){s.apply(r,p)},l)}function vc(s,l,p,w){var S=-1,O=Tu,F=!0,B=s.length,K=[],le=l.length;if(!B)return K;p&&(l=Jt(l,yn(p))),w?(O=Hh,F=!1):l.length>=o&&(O=cc,F=!1,l=new Ra(l));e:for(;++SS?0:S+p),w=w===r||w>S?S:ct(w),w<0&&(w+=S),w=p>w?0:Hx(w);p0&&p(B)?l>1?Lr(B,l-1,p,w,S):Pi(S,B):w||(S[S.length]=B)}return S}var am=tx(),$1=tx(!0);function Co(s,l){return s&&am(s,l,Tr)}function sm(s,l){return s&&$1(s,l,Tr)}function Vu(s,l){return Oi(l,function(p){return ti(s[p])})}function Ma(s,l){l=Fi(l,s);for(var p=0,w=l.length;s!=null&&pl}function K$(s,l){return s!=null&&Lt.call(s,l)}function Y$(s,l){return s!=null&&l in Ut(s)}function Z$(s,l,p){return s>=zr(l,p)&&s=120&&ue.length>=120)?new Ra(F&&ue):r}ue=s[0];var xe=-1,Me=B[0];e:for(;++xe-1;)B!==s&&Lu.call(B,K,1),Lu.call(s,K,1);return s}function B1(s,l){for(var p=s?l.length:0,w=p-1;p--;){var S=l[p];if(p==w||S!==O){var O=S;ei(S)?Lu.call(s,S,1):gm(s,S)}}return s}function hm(s,l){return s+Fu(x1()*(l-s+1))}function dO(s,l,p,w){for(var S=-1,O=br(Du((l-s)/(p||1)),0),F=ne(O);O--;)F[w?O:++S]=s,s+=p;return F}function mm(s,l){var p="";if(!s||l<1||l>Pe)return p;do l%2&&(p+=s),l=Fu(l/2),l&&(s+=s);while(l);return p}function ft(s,l){return Pm(gx(s,l,cn),s+"")}function uO(s){return T1(Ws(s))}function fO(s,l){var p=Ws(s);return ef(p,La(l,0,p.length))}function yc(s,l,p,w){if(!tr(s))return s;l=Fi(l,s);for(var S=-1,O=l.length,F=O-1,B=s;B!=null&&++SS?0:S+l),p=p>S?S:p,p<0&&(p+=S),S=l>p?0:p-l>>>0,l>>>=0;for(var O=ne(S);++w>>1,F=s[O];F!==null&&!xn(F)&&(p?F<=l:F=o){var le=l?null:CO(s);if(le)return Cu(le);F=!1,S=cc,K=new Ra}else K=l?[]:B;e:for(;++w=w?s:Fn(s,l,p)}var Q1=n$||function(s){return Rr.clearTimeout(s)};function K1(s,l){if(l)return s.slice();var p=s.length,w=v1?v1(p):new s.constructor(p);return s.copy(w),w}function xm(s){var l=new s.constructor(s.byteLength);return new Pu(l).set(new Pu(s)),l}function gO(s,l){var p=l?xm(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.byteLength)}function _O(s){var l=new s.constructor(s.source,Er.exec(s));return l.lastIndex=s.lastIndex,l}function yO(s){return hc?Ut(hc.call(s)):{}}function Y1(s,l){var p=l?xm(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.length)}function Z1(s,l){if(s!==l){var p=s!==r,w=s===null,S=s===s,O=xn(s),F=l!==r,B=l===null,K=l===l,le=xn(l);if(!B&&!le&&!O&&s>l||O&&F&&K&&!B&&!le||w&&F&&K||!p&&K||!S)return 1;if(!w&&!O&&!le&&s=B)return K;var le=p[w];return K*(le=="desc"?-1:1)}}return s.index-l.index}function X1(s,l,p,w){for(var S=-1,O=s.length,F=p.length,B=-1,K=l.length,le=br(O-F,0),ue=ne(K+le),xe=!w;++B1?p[S-1]:r,F=S>2?p[2]:r;for(O=s.length>3&&typeof O=="function"?(S--,O):r,F&&Zr(p[0],p[1],F)&&(O=S<3?r:O,S=1),l=Ut(l);++w-1?S[O?l[F]:F]:r}}function ox(s){return Jo(function(l){var p=l.length,w=p,S=Mn.prototype.thru;for(s&&l.reverse();w--;){var O=l[w];if(typeof O!="function")throw new Ln(a);if(S&&!F&&Xu(O)=="wrapper")var F=new Mn([],!0)}for(w=F?w:p;++w1&&bt.reverse(),ue&&KB))return!1;var le=O.get(s),ue=O.get(l);if(le&&ue)return le==l&&ue==s;var xe=-1,Me=!0,Ke=p&m?new Ra:r;for(O.set(s,l),O.set(l,s);++xe1?"& ":"")+l[w],l=l.join(p>2?", ":" "),s.replace(fu,`{ /* [wrapped with `+l+`] */ -`)}function FO(s){return at(s)||Na(s)||!!(y1&&s&&s[y1])}function ei(s,l){var p=typeof s;return l=l??Pe,!!l&&(p=="number"||p!="symbol"&&KS.test(s))&&s>-1&&s%1==0&&s0){if(++l>=U)return arguments[0]}else l=0;return s.apply(r,arguments)}}function ef(s,l){var p=-1,w=s.length,S=w-1;for(l=l===r?w:l;++p1?s[l-1]:r;return p=typeof p=="function"?(s.pop(),p):r,Ix(s,p)});function $x(s){var l=$(s);return l.__chain__=!0,l}function Q7(s,l){return l(s),s}function tf(s,l){return l(s)}var K7=Jo(function(s){var l=s.length,p=l?s[0]:0,w=this.__wrapped__,S=function(O){return im(O,s)};return l>1||this.__actions__.length||!(w instanceof vt)||!ei(p)?this.thru(S):(w=w.slice(p,+p+(l?1:0)),w.__actions__.push({func:tf,args:[S],thisArg:r}),new Mn(w,this.__chain__).thru(function(O){return l&&!O.length&&O.push(r),O}))});function Y7(){return $x(this)}function Z7(){return new Mn(this.value(),this.__chain__)}function X7(){this.__values__===r&&(this.__values__=jx(this.value()));var s=this.__index__>=this.__values__.length,l=s?r:this.__values__[this.__index__++];return{done:s,value:l}}function J7(){return this}function e8(s){for(var l,p=this;p instanceof qu;){var w=Ex(p);w.__index__=0,w.__values__=r,l?S.__wrapped__=w:l=w;var S=w;p=p.__wrapped__}return S.__wrapped__=s,l}function t8(){var s=this.__wrapped__;if(s instanceof vt){var l=s;return this.__actions__.length&&(l=new vt(this)),l=l.reverse(),l.__actions__.push({func:tf,args:[Rm],thisArg:r}),new Mn(l,this.__chain__)}return this.thru(Rm)}function r8(){return W1(this.__wrapped__,this.__actions__)}var n8=Gu(function(s,l,p){Lt.call(s,p)?++s[p]:Zo(s,p,1)});function o8(s,l,p){var w=at(s)?i1:Q$;return p&&Zr(s,l,p)&&(l=r),w(s,Xe(l,3))}function i8(s,l){var p=at(s)?Oi:I1;return p(s,Xe(l,3))}var a8=nx(Tx),s8=nx(kx);function l8(s,l){return Lr(rf(s,l),1)}function c8(s,l){return Lr(rf(s,l),Ie)}function d8(s,l,p){return p=p===r?1:ct(p),Lr(rf(s,l),p)}function Ox(s,l){var p=at(s)?Rn:Mi;return p(s,Xe(l,3))}function Px(s,l){var p=at(s)?II:S1;return p(s,Xe(l,3))}var u8=Gu(function(s,l,p){Lt.call(s,p)?s[p].push(l):Zo(s,p,[l])});function f8(s,l,p,w){s=sn(s)?s:Ws(s),p=p&&!w?ct(p):0;var S=s.length;return p<0&&(p=br(S+p,0)),lf(s)?p<=S&&s.indexOf(l,p)>-1:!!S&&Ls(s,l,p)>-1}var p8=ft(function(s,l,p){var w=-1,S=typeof l=="function",O=sn(s)?ne(s.length):[];return Mi(s,function(F){O[++w]=S?_n(l,F,p):gc(F,l,p)}),O}),h8=Gu(function(s,l,p){Zo(s,p,l)});function rf(s,l){var p=at(s)?Jt:M1;return p(s,Xe(l,3))}function m8(s,l,p,w){return s==null?[]:(at(l)||(l=l==null?[]:[l]),p=w?r:p,at(p)||(p=p==null?[]:[p]),z1(s,l,p))}var v8=Gu(function(s,l,p){s[p?0:1].push(l)},function(){return[[],[]]});function g8(s,l,p){var w=at(s)?Wh:c1,S=arguments.length<3;return w(s,Xe(l,4),p,S,Mi)}function _8(s,l,p){var w=at(s)?$I:c1,S=arguments.length<3;return w(s,Xe(l,4),p,S,S1)}function y8(s,l){var p=at(s)?Oi:I1;return p(s,af(Xe(l,3)))}function b8(s){var l=at(s)?T1:fO;return l(s)}function x8(s,l,p){(p?Zr(s,l,p):l===r)?l=1:l=ct(l);var w=at(s)?V$:pO;return w(s,l)}function w8(s){var l=at(s)?j$:mO;return l(s)}function E8(s){if(s==null)return 0;if(sn(s))return lf(s)?Ds(s):s.length;var l=qr(s);return l==I||l==ee?s.size:um(s).length}function T8(s,l,p){var w=at(s)?Gh:vO;return p&&Zr(s,l,p)&&(l=r),w(s,Xe(l,3))}var k8=ft(function(s,l){if(s==null)return[];var p=l.length;return p>1&&Zr(s,l[0],l[1])?l=[]:p>2&&Zr(l[0],l[1],l[2])&&(l=[l[0]]),z1(s,Lr(l,1),[])}),nf=i$||function(){return Rr.Date.now()};function C8(s,l){if(typeof l!="function")throw new Ln(a);return s=ct(s),function(){if(--s<1)return l.apply(this,arguments)}}function Rx(s,l,p){return l=p?r:l,l=s&&l==null?s.length:l,Xo(s,L,r,r,r,r,l)}function Lx(s,l){var p;if(typeof l!="function")throw new Ln(a);return s=ct(s),function(){return--s>0&&(p=l.apply(this,arguments)),s<=1&&(l=r),p}}var Mm=ft(function(s,l,p){var w=y;if(p.length){var S=Ri(p,js(Mm));w|=C}return Xo(s,w,l,p,S)}),Mx=ft(function(s,l,p){var w=y|v;if(p.length){var S=Ri(p,js(Mx));w|=C}return Xo(l,w,s,p,S)});function Dx(s,l,p){l=p?r:l;var w=Xo(s,E,r,r,r,r,r,l);return w.placeholder=Dx.placeholder,w}function Fx(s,l,p){l=p?r:l;var w=Xo(s,T,r,r,r,r,r,l);return w.placeholder=Fx.placeholder,w}function Nx(s,l,p){var w,S,O,F,B,K,le=0,ue=!1,xe=!1,Me=!0;if(typeof s!="function")throw new Ln(a);l=zn(l)||0,tr(p)&&(ue=!!p.leading,xe="maxWait"in p,O=xe?br(zn(p.maxWait)||0,l):O,Me="trailing"in p?!!p.trailing:Me);function Ke(cr){var oo=w,ni=S;return w=S=r,le=cr,F=s.apply(ni,oo),F}function Je(cr){return le=cr,B=wc(ht,l),ue?Ke(cr):F}function ut(cr){var oo=cr-K,ni=cr-le,n2=l-oo;return xe?zr(n2,O-ni):n2}function et(cr){var oo=cr-K,ni=cr-le;return K===r||oo>=l||oo<0||xe&&ni>=O}function ht(){var cr=nf();if(et(cr))return bt(cr);B=wc(ht,ut(cr))}function bt(cr){return B=r,Me&&w?Ke(cr):(w=S=r,F)}function wn(){B!==r&&Q1(B),le=0,w=K=S=B=r}function Xr(){return B===r?F:bt(nf())}function En(){var cr=nf(),oo=et(cr);if(w=arguments,S=this,K=cr,oo){if(B===r)return Je(K);if(xe)return Q1(B),B=wc(ht,l),Ke(K)}return B===r&&(B=wc(ht,l)),F}return En.cancel=wn,En.flush=Xr,En}var A8=ft(function(s,l){return A1(s,1,l)}),S8=ft(function(s,l,p){return A1(s,zn(l)||0,p)});function I8(s){return Xo(s,D)}function of(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new Ln(a);var p=function(){var w=arguments,S=l?l.apply(this,w):w[0],O=p.cache;if(O.has(S))return O.get(S);var F=s.apply(this,w);return p.cache=O.set(S,F)||O,F};return p.cache=new(of.Cache||Yo),p}of.Cache=Yo;function af(s){if(typeof s!="function")throw new Ln(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function $8(s){return Lx(2,s)}var O8=gO(function(s,l){l=l.length==1&&at(l[0])?Jt(l[0],yn(Xe())):Jt(Lr(l,1),yn(Xe()));var p=l.length;return ft(function(w){for(var S=-1,O=zr(w.length,p);++S=l}),Na=P1(function(){return arguments}())?P1:function(s){return or(s)&&Lt.call(s,"callee")&&!_1.call(s,"callee")},at=ne.isArray,W8=J0?yn(J0):eO;function sn(s){return s!=null&&sf(s.length)&&!ti(s)}function lr(s){return or(s)&&sn(s)}function G8(s){return s===!0||s===!1||or(s)&&Yr(s)==me}var zi=s$||Gm,Q8=e1?yn(e1):tO;function K8(s){return or(s)&&s.nodeType===1&&!Ec(s)}function Y8(s){if(s==null)return!0;if(sn(s)&&(at(s)||typeof s=="string"||typeof s.splice=="function"||zi(s)||Hs(s)||Na(s)))return!s.length;var l=qr(s);if(l==I||l==ee)return!s.size;if(xc(s))return!um(s).length;for(var p in s)if(Lt.call(s,p))return!1;return!0}function Z8(s,l){return _c(s,l)}function X8(s,l,p){p=typeof p=="function"?p:r;var w=p?p(s,l):r;return w===r?_c(s,l,r,p):!!w}function Fm(s){if(!or(s))return!1;var l=Yr(s);return l==Oe||l==$e||typeof s.message=="string"&&typeof s.name=="string"&&!Ec(s)}function J8(s){return typeof s=="number"&&b1(s)}function ti(s){if(!tr(s))return!1;var l=Yr(s);return l==M||l==k||l==J||l==ye}function qx(s){return typeof s=="number"&&s==ct(s)}function sf(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Pe}function tr(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function or(s){return s!=null&&typeof s=="object"}var Bx=t1?yn(t1):nO;function eP(s,l){return s===l||dm(s,l,Am(l))}function tP(s,l,p){return p=typeof p=="function"?p:r,dm(s,l,Am(l),p)}function rP(s){return Ux(s)&&s!=+s}function nP(s){if(qO(s))throw new ot(i);return R1(s)}function oP(s){return s===null}function iP(s){return s==null}function Ux(s){return typeof s=="number"||or(s)&&Yr(s)==N}function Ec(s){if(!or(s)||Yr(s)!=Y)return!1;var l=Ru(s);if(l===null)return!0;var p=Lt.call(l,"constructor")&&l.constructor;return typeof p=="function"&&p instanceof p&&Iu.call(p)==t$}var Nm=r1?yn(r1):oO;function aP(s){return qx(s)&&s>=-Pe&&s<=Pe}var Vx=n1?yn(n1):iO;function lf(s){return typeof s=="string"||!at(s)&&or(s)&&Yr(s)==fe}function xn(s){return typeof s=="symbol"||or(s)&&Yr(s)==j}var Hs=o1?yn(o1):aO;function sP(s){return s===r}function lP(s){return or(s)&&qr(s)==oe}function cP(s){return or(s)&&Yr(s)==be}var dP=Zu(fm),uP=Zu(function(s,l){return s<=l});function jx(s){if(!s)return[];if(sn(s))return lf(s)?to(s):an(s);if(dc&&s[dc])return VI(s[dc]());var l=qr(s),p=l==I?Jh:l==ee?Cu:Ws;return p(s)}function ri(s){if(!s)return s===0?s:0;if(s=zn(s),s===Ie||s===-Ie){var l=s<0?-1:1;return l*Ce}return s===s?s:0}function ct(s){var l=ri(s),p=l%1;return l===l?p?l-p:l:0}function Hx(s){return s?La(ct(s),0,we):0}function zn(s){if(typeof s=="number")return s;if(xn(s))return de;if(tr(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=tr(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=d1(s);var p=bu.test(s);return p||QS.test(s)?CI(s.slice(2),p?2:8):yu.test(s)?de:+s}function Wx(s){return Ao(s,ln(s))}function fP(s){return s?La(ct(s),-Pe,Pe):s===0?s:0}function $t(s){return s==null?"":bn(s)}var pP=Us(function(s,l){if(xc(l)||sn(l)){Ao(l,Tr(l),s);return}for(var p in l)Lt.call(l,p)&&mc(s,p,l[p])}),Gx=Us(function(s,l){Ao(l,ln(l),s)}),cf=Us(function(s,l,p,w){Ao(l,ln(l),s,w)}),hP=Us(function(s,l,p,w){Ao(l,Tr(l),s,w)}),mP=Jo(im);function vP(s,l){var p=Bs(s);return l==null?p:k1(p,l)}var gP=ft(function(s,l){s=Ut(s);var p=-1,w=l.length,S=w>2?l[2]:r;for(S&&Zr(l[0],l[1],S)&&(w=1);++p1),O}),Ao(s,km(s),p),w&&(p=Dn(p,g|_|b,SO));for(var S=l.length;S--;)gm(p,l[S]);return p});function MP(s,l){return Kx(s,af(Xe(l)))}var DP=Jo(function(s,l){return s==null?{}:cO(s,l)});function Kx(s,l){if(s==null)return{};var p=Jt(km(s),function(w){return[w]});return l=Xe(l),q1(s,p,function(w,S){return l(w,S[0])})}function FP(s,l,p){l=Fi(l,s);var w=-1,S=l.length;for(S||(S=1,s=r);++wl){var w=s;s=l,l=w}if(p||s%1||l%1){var S=x1();return zr(s+S*(l-s+kI("1e-"+((S+"").length-1))),l)}return hm(s,l)}var QP=Vs(function(s,l,p){return l=l.toLowerCase(),s+(p?Xx(l):l)});function Xx(s){return Bm($t(s).toLowerCase())}function Jx(s){return s=$t(s),s&&s.replace(YS,NI).replace(mI,"")}function KP(s,l,p){s=$t(s),l=bn(l);var w=s.length;p=p===r?w:La(ct(p),0,w);var S=p;return p-=l.length,p>=0&&s.slice(p,S)==l}function YP(s){return s=$t(s),s&&ou.test(s)?s.replace(Ia,zI):s}function ZP(s){return s=$t(s),s&&du.test(s)?s.replace(Os,"\\$&"):s}var XP=Vs(function(s,l,p){return s+(p?"-":"")+l.toLowerCase()}),JP=Vs(function(s,l,p){return s+(p?" ":"")+l.toLowerCase()}),eR=rx("toLowerCase");function tR(s,l,p){s=$t(s),l=ct(l);var w=l?Ds(s):0;if(!l||w>=l)return s;var S=(l-w)/2;return Yu(Fu(S),p)+s+Yu(Du(S),p)}function rR(s,l,p){s=$t(s),l=ct(l);var w=l?Ds(s):0;return l&&w>>0,p?(s=$t(s),s&&(typeof l=="string"||l!=null&&!Nm(l))&&(l=bn(l),!l&&Ms(s))?Ni(to(s),0,p):s.split(l,p)):[]}var cR=Vs(function(s,l,p){return s+(p?" ":"")+Bm(l)});function dR(s,l,p){return s=$t(s),p=p==null?0:La(ct(p),0,s.length),l=bn(l),s.slice(p,p+l.length)==l}function uR(s,l,p){var w=$.templateSettings;p&&Zr(s,l,p)&&(l=r),s=$t(s),l=cf({},l,w,cx);var S=cf({},l.imports,w.imports,cx),O=Tr(S),F=Xh(S,O),B,K,le=0,ue=l.interpolate||xu,xe="__p += '",Me=em((l.escape||xu).source+"|"+ue.source+"|"+(ue===lc?_u:xu).source+"|"+(l.evaluate||xu).source+"|$","g"),Ke="//# sourceURL="+(Lt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++bI+"]")+` -`;s.replace(Me,function(et,ht,bt,wn,Xr,En){return bt||(bt=wn),xe+=s.slice(le,En).replace(ZS,qI),ht&&(B=!0,xe+=`' + +`)}function DO(s){return at(s)||Na(s)||!!(y1&&s&&s[y1])}function ei(s,l){var p=typeof s;return l=l??Pe,!!l&&(p=="number"||p!="symbol"&&QS.test(s))&&s>-1&&s%1==0&&s0){if(++l>=U)return arguments[0]}else l=0;return s.apply(r,arguments)}}function ef(s,l){var p=-1,w=s.length,S=w-1;for(l=l===r?w:l;++p1?s[l-1]:r;return p=typeof p=="function"?(s.pop(),p):r,Ix(s,p)});function $x(s){var l=$(s);return l.__chain__=!0,l}function G7(s,l){return l(s),s}function tf(s,l){return l(s)}var Q7=Jo(function(s){var l=s.length,p=l?s[0]:0,w=this.__wrapped__,S=function(O){return im(O,s)};return l>1||this.__actions__.length||!(w instanceof vt)||!ei(p)?this.thru(S):(w=w.slice(p,+p+(l?1:0)),w.__actions__.push({func:tf,args:[S],thisArg:r}),new Mn(w,this.__chain__).thru(function(O){return l&&!O.length&&O.push(r),O}))});function K7(){return $x(this)}function Y7(){return new Mn(this.value(),this.__chain__)}function Z7(){this.__values__===r&&(this.__values__=jx(this.value()));var s=this.__index__>=this.__values__.length,l=s?r:this.__values__[this.__index__++];return{done:s,value:l}}function X7(){return this}function J7(s){for(var l,p=this;p instanceof qu;){var w=Ex(p);w.__index__=0,w.__values__=r,l?S.__wrapped__=w:l=w;var S=w;p=p.__wrapped__}return S.__wrapped__=s,l}function e8(){var s=this.__wrapped__;if(s instanceof vt){var l=s;return this.__actions__.length&&(l=new vt(this)),l=l.reverse(),l.__actions__.push({func:tf,args:[Rm],thisArg:r}),new Mn(l,this.__chain__)}return this.thru(Rm)}function t8(){return W1(this.__wrapped__,this.__actions__)}var r8=Gu(function(s,l,p){Lt.call(s,p)?++s[p]:Zo(s,p,1)});function n8(s,l,p){var w=at(s)?i1:G$;return p&&Zr(s,l,p)&&(l=r),w(s,Xe(l,3))}function o8(s,l){var p=at(s)?Oi:I1;return p(s,Xe(l,3))}var i8=nx(Tx),a8=nx(kx);function s8(s,l){return Lr(rf(s,l),1)}function l8(s,l){return Lr(rf(s,l),Ie)}function c8(s,l,p){return p=p===r?1:ct(p),Lr(rf(s,l),p)}function Ox(s,l){var p=at(s)?Rn:Mi;return p(s,Xe(l,3))}function Px(s,l){var p=at(s)?SI:S1;return p(s,Xe(l,3))}var d8=Gu(function(s,l,p){Lt.call(s,p)?s[p].push(l):Zo(s,p,[l])});function u8(s,l,p,w){s=sn(s)?s:Ws(s),p=p&&!w?ct(p):0;var S=s.length;return p<0&&(p=br(S+p,0)),lf(s)?p<=S&&s.indexOf(l,p)>-1:!!S&&Ls(s,l,p)>-1}var f8=ft(function(s,l,p){var w=-1,S=typeof l=="function",O=sn(s)?ne(s.length):[];return Mi(s,function(F){O[++w]=S?_n(l,F,p):gc(F,l,p)}),O}),p8=Gu(function(s,l,p){Zo(s,p,l)});function rf(s,l){var p=at(s)?Jt:M1;return p(s,Xe(l,3))}function h8(s,l,p,w){return s==null?[]:(at(l)||(l=l==null?[]:[l]),p=w?r:p,at(p)||(p=p==null?[]:[p]),z1(s,l,p))}var m8=Gu(function(s,l,p){s[p?0:1].push(l)},function(){return[[],[]]});function v8(s,l,p){var w=at(s)?Wh:c1,S=arguments.length<3;return w(s,Xe(l,4),p,S,Mi)}function g8(s,l,p){var w=at(s)?II:c1,S=arguments.length<3;return w(s,Xe(l,4),p,S,S1)}function _8(s,l){var p=at(s)?Oi:I1;return p(s,af(Xe(l,3)))}function y8(s){var l=at(s)?T1:uO;return l(s)}function b8(s,l,p){(p?Zr(s,l,p):l===r)?l=1:l=ct(l);var w=at(s)?U$:fO;return w(s,l)}function x8(s){var l=at(s)?V$:hO;return l(s)}function w8(s){if(s==null)return 0;if(sn(s))return lf(s)?Ds(s):s.length;var l=qr(s);return l==I||l==ee?s.size:um(s).length}function E8(s,l,p){var w=at(s)?Gh:mO;return p&&Zr(s,l,p)&&(l=r),w(s,Xe(l,3))}var T8=ft(function(s,l){if(s==null)return[];var p=l.length;return p>1&&Zr(s,l[0],l[1])?l=[]:p>2&&Zr(l[0],l[1],l[2])&&(l=[l[0]]),z1(s,Lr(l,1),[])}),nf=o$||function(){return Rr.Date.now()};function k8(s,l){if(typeof l!="function")throw new Ln(a);return s=ct(s),function(){if(--s<1)return l.apply(this,arguments)}}function Rx(s,l,p){return l=p?r:l,l=s&&l==null?s.length:l,Xo(s,L,r,r,r,r,l)}function Lx(s,l){var p;if(typeof l!="function")throw new Ln(a);return s=ct(s),function(){return--s>0&&(p=l.apply(this,arguments)),s<=1&&(l=r),p}}var Mm=ft(function(s,l,p){var w=y;if(p.length){var S=Ri(p,js(Mm));w|=C}return Xo(s,w,l,p,S)}),Mx=ft(function(s,l,p){var w=y|v;if(p.length){var S=Ri(p,js(Mx));w|=C}return Xo(l,w,s,p,S)});function Dx(s,l,p){l=p?r:l;var w=Xo(s,E,r,r,r,r,r,l);return w.placeholder=Dx.placeholder,w}function Fx(s,l,p){l=p?r:l;var w=Xo(s,T,r,r,r,r,r,l);return w.placeholder=Fx.placeholder,w}function Nx(s,l,p){var w,S,O,F,B,K,le=0,ue=!1,xe=!1,Me=!0;if(typeof s!="function")throw new Ln(a);l=zn(l)||0,tr(p)&&(ue=!!p.leading,xe="maxWait"in p,O=xe?br(zn(p.maxWait)||0,l):O,Me="trailing"in p?!!p.trailing:Me);function Ke(cr){var oo=w,ni=S;return w=S=r,le=cr,F=s.apply(ni,oo),F}function Je(cr){return le=cr,B=wc(ht,l),ue?Ke(cr):F}function ut(cr){var oo=cr-K,ni=cr-le,n2=l-oo;return xe?zr(n2,O-ni):n2}function et(cr){var oo=cr-K,ni=cr-le;return K===r||oo>=l||oo<0||xe&&ni>=O}function ht(){var cr=nf();if(et(cr))return bt(cr);B=wc(ht,ut(cr))}function bt(cr){return B=r,Me&&w?Ke(cr):(w=S=r,F)}function wn(){B!==r&&Q1(B),le=0,w=K=S=B=r}function Xr(){return B===r?F:bt(nf())}function En(){var cr=nf(),oo=et(cr);if(w=arguments,S=this,K=cr,oo){if(B===r)return Je(K);if(xe)return Q1(B),B=wc(ht,l),Ke(K)}return B===r&&(B=wc(ht,l)),F}return En.cancel=wn,En.flush=Xr,En}var C8=ft(function(s,l){return A1(s,1,l)}),A8=ft(function(s,l,p){return A1(s,zn(l)||0,p)});function S8(s){return Xo(s,D)}function of(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new Ln(a);var p=function(){var w=arguments,S=l?l.apply(this,w):w[0],O=p.cache;if(O.has(S))return O.get(S);var F=s.apply(this,w);return p.cache=O.set(S,F)||O,F};return p.cache=new(of.Cache||Yo),p}of.Cache=Yo;function af(s){if(typeof s!="function")throw new Ln(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function I8(s){return Lx(2,s)}var $8=vO(function(s,l){l=l.length==1&&at(l[0])?Jt(l[0],yn(Xe())):Jt(Lr(l,1),yn(Xe()));var p=l.length;return ft(function(w){for(var S=-1,O=zr(w.length,p);++S=l}),Na=P1(function(){return arguments}())?P1:function(s){return or(s)&&Lt.call(s,"callee")&&!_1.call(s,"callee")},at=ne.isArray,H8=J0?yn(J0):J$;function sn(s){return s!=null&&sf(s.length)&&!ti(s)}function lr(s){return or(s)&&sn(s)}function W8(s){return s===!0||s===!1||or(s)&&Yr(s)==me}var zi=a$||Gm,G8=e1?yn(e1):eO;function Q8(s){return or(s)&&s.nodeType===1&&!Ec(s)}function K8(s){if(s==null)return!0;if(sn(s)&&(at(s)||typeof s=="string"||typeof s.splice=="function"||zi(s)||Hs(s)||Na(s)))return!s.length;var l=qr(s);if(l==I||l==ee)return!s.size;if(xc(s))return!um(s).length;for(var p in s)if(Lt.call(s,p))return!1;return!0}function Y8(s,l){return _c(s,l)}function Z8(s,l,p){p=typeof p=="function"?p:r;var w=p?p(s,l):r;return w===r?_c(s,l,r,p):!!w}function Fm(s){if(!or(s))return!1;var l=Yr(s);return l==Oe||l==$e||typeof s.message=="string"&&typeof s.name=="string"&&!Ec(s)}function X8(s){return typeof s=="number"&&b1(s)}function ti(s){if(!tr(s))return!1;var l=Yr(s);return l==M||l==k||l==J||l==ye}function qx(s){return typeof s=="number"&&s==ct(s)}function sf(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Pe}function tr(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function or(s){return s!=null&&typeof s=="object"}var Bx=t1?yn(t1):rO;function J8(s,l){return s===l||dm(s,l,Am(l))}function eP(s,l,p){return p=typeof p=="function"?p:r,dm(s,l,Am(l),p)}function tP(s){return Ux(s)&&s!=+s}function rP(s){if(zO(s))throw new ot(i);return R1(s)}function nP(s){return s===null}function oP(s){return s==null}function Ux(s){return typeof s=="number"||or(s)&&Yr(s)==N}function Ec(s){if(!or(s)||Yr(s)!=Y)return!1;var l=Ru(s);if(l===null)return!0;var p=Lt.call(l,"constructor")&&l.constructor;return typeof p=="function"&&p instanceof p&&Iu.call(p)==e$}var Nm=r1?yn(r1):nO;function iP(s){return qx(s)&&s>=-Pe&&s<=Pe}var Vx=n1?yn(n1):oO;function lf(s){return typeof s=="string"||!at(s)&&or(s)&&Yr(s)==fe}function xn(s){return typeof s=="symbol"||or(s)&&Yr(s)==j}var Hs=o1?yn(o1):iO;function aP(s){return s===r}function sP(s){return or(s)&&qr(s)==oe}function lP(s){return or(s)&&Yr(s)==be}var cP=Zu(fm),dP=Zu(function(s,l){return s<=l});function jx(s){if(!s)return[];if(sn(s))return lf(s)?to(s):an(s);if(dc&&s[dc])return UI(s[dc]());var l=qr(s),p=l==I?Jh:l==ee?Cu:Ws;return p(s)}function ri(s){if(!s)return s===0?s:0;if(s=zn(s),s===Ie||s===-Ie){var l=s<0?-1:1;return l*Ce}return s===s?s:0}function ct(s){var l=ri(s),p=l%1;return l===l?p?l-p:l:0}function Hx(s){return s?La(ct(s),0,we):0}function zn(s){if(typeof s=="number")return s;if(xn(s))return de;if(tr(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=tr(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=d1(s);var p=bu.test(s);return p||GS.test(s)?kI(s.slice(2),p?2:8):yu.test(s)?de:+s}function Wx(s){return Ao(s,ln(s))}function uP(s){return s?La(ct(s),-Pe,Pe):s===0?s:0}function $t(s){return s==null?"":bn(s)}var fP=Us(function(s,l){if(xc(l)||sn(l)){Ao(l,Tr(l),s);return}for(var p in l)Lt.call(l,p)&&mc(s,p,l[p])}),Gx=Us(function(s,l){Ao(l,ln(l),s)}),cf=Us(function(s,l,p,w){Ao(l,ln(l),s,w)}),pP=Us(function(s,l,p,w){Ao(l,Tr(l),s,w)}),hP=Jo(im);function mP(s,l){var p=Bs(s);return l==null?p:k1(p,l)}var vP=ft(function(s,l){s=Ut(s);var p=-1,w=l.length,S=w>2?l[2]:r;for(S&&Zr(l[0],l[1],S)&&(w=1);++p1),O}),Ao(s,km(s),p),w&&(p=Dn(p,g|_|b,AO));for(var S=l.length;S--;)gm(p,l[S]);return p});function LP(s,l){return Kx(s,af(Xe(l)))}var MP=Jo(function(s,l){return s==null?{}:lO(s,l)});function Kx(s,l){if(s==null)return{};var p=Jt(km(s),function(w){return[w]});return l=Xe(l),q1(s,p,function(w,S){return l(w,S[0])})}function DP(s,l,p){l=Fi(l,s);var w=-1,S=l.length;for(S||(S=1,s=r);++wl){var w=s;s=l,l=w}if(p||s%1||l%1){var S=x1();return zr(s+S*(l-s+TI("1e-"+((S+"").length-1))),l)}return hm(s,l)}var GP=Vs(function(s,l,p){return l=l.toLowerCase(),s+(p?Xx(l):l)});function Xx(s){return Bm($t(s).toLowerCase())}function Jx(s){return s=$t(s),s&&s.replace(KS,FI).replace(hI,"")}function QP(s,l,p){s=$t(s),l=bn(l);var w=s.length;p=p===r?w:La(ct(p),0,w);var S=p;return p-=l.length,p>=0&&s.slice(p,S)==l}function KP(s){return s=$t(s),s&&ou.test(s)?s.replace(Ia,NI):s}function YP(s){return s=$t(s),s&&du.test(s)?s.replace(Os,"\\$&"):s}var ZP=Vs(function(s,l,p){return s+(p?"-":"")+l.toLowerCase()}),XP=Vs(function(s,l,p){return s+(p?" ":"")+l.toLowerCase()}),JP=rx("toLowerCase");function eR(s,l,p){s=$t(s),l=ct(l);var w=l?Ds(s):0;if(!l||w>=l)return s;var S=(l-w)/2;return Yu(Fu(S),p)+s+Yu(Du(S),p)}function tR(s,l,p){s=$t(s),l=ct(l);var w=l?Ds(s):0;return l&&w>>0,p?(s=$t(s),s&&(typeof l=="string"||l!=null&&!Nm(l))&&(l=bn(l),!l&&Ms(s))?Ni(to(s),0,p):s.split(l,p)):[]}var lR=Vs(function(s,l,p){return s+(p?" ":"")+Bm(l)});function cR(s,l,p){return s=$t(s),p=p==null?0:La(ct(p),0,s.length),l=bn(l),s.slice(p,p+l.length)==l}function dR(s,l,p){var w=$.templateSettings;p&&Zr(s,l,p)&&(l=r),s=$t(s),l=cf({},l,w,cx);var S=cf({},l.imports,w.imports,cx),O=Tr(S),F=Xh(S,O),B,K,le=0,ue=l.interpolate||xu,xe="__p += '",Me=em((l.escape||xu).source+"|"+ue.source+"|"+(ue===lc?_u:xu).source+"|"+(l.evaluate||xu).source+"|$","g"),Ke="//# sourceURL="+(Lt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yI+"]")+` +`;s.replace(Me,function(et,ht,bt,wn,Xr,En){return bt||(bt=wn),xe+=s.slice(le,En).replace(YS,zI),ht&&(B=!0,xe+=`' + __e(`+ht+`) + '`),Xr&&(K=!0,xe+=`'; `+Xr+`; @@ -1296,11 +1296,11 @@ __p += '`),bt&&(xe+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+xe+`return __p -}`;var ut=t2(function(){return At(O,Ke+"return "+xe).apply(r,F)});if(ut.source=xe,Fm(ut))throw ut;return ut}function fR(s){return $t(s).toLowerCase()}function pR(s){return $t(s).toUpperCase()}function hR(s,l,p){if(s=$t(s),s&&(p||l===r))return d1(s);if(!s||!(l=bn(l)))return s;var w=to(s),S=to(l),O=u1(w,S),F=f1(w,S)+1;return Ni(w,O,F).join("")}function mR(s,l,p){if(s=$t(s),s&&(p||l===r))return s.slice(0,h1(s)+1);if(!s||!(l=bn(l)))return s;var w=to(s),S=f1(w,to(l))+1;return Ni(w,0,S).join("")}function vR(s,l,p){if(s=$t(s),s&&(p||l===r))return s.replace(Ps,"");if(!s||!(l=bn(l)))return s;var w=to(s),S=u1(w,to(l));return Ni(w,S).join("")}function gR(s,l){var p=q,w=H;if(tr(l)){var S="separator"in l?l.separator:S;p="length"in l?ct(l.length):p,w="omission"in l?bn(l.omission):w}s=$t(s);var O=s.length;if(Ms(s)){var F=to(s);O=F.length}if(p>=O)return s;var B=p-Ds(w);if(B<1)return w;var K=F?Ni(F,0,B).join(""):s.slice(0,B);if(S===r)return K+w;if(F&&(B+=K.length-B),Nm(S)){if(s.slice(B).search(S)){var le,ue=K;for(S.global||(S=em(S.source,$t(Er.exec(S))+"g")),S.lastIndex=0;le=S.exec(ue);)var xe=le.index;K=K.slice(0,xe===r?B:xe)}}else if(s.indexOf(bn(S),B)!=B){var Me=K.lastIndexOf(S);Me>-1&&(K=K.slice(0,Me))}return K+w}function _R(s){return s=$t(s),s&&nu.test(s)?s.replace(Kr,GI):s}var yR=Vs(function(s,l,p){return s+(p?" ":"")+l.toUpperCase()}),Bm=rx("toUpperCase");function e2(s,l,p){return s=$t(s),l=p?r:l,l===r?UI(s)?YI(s):RI(s):s.match(l)||[]}var t2=ft(function(s,l){try{return _n(s,r,l)}catch(p){return Fm(p)?p:new ot(p)}}),bR=Jo(function(s,l){return Rn(l,function(p){p=So(p),Zo(s,p,Mm(s[p],s))}),s});function xR(s){var l=s==null?0:s.length,p=Xe();return s=l?Jt(s,function(w){if(typeof w[1]!="function")throw new Ln(a);return[p(w[0]),w[1]]}):[],ft(function(w){for(var S=-1;++SPe)return[];var p=we,w=zr(s,we);l=Xe(l),s-=we;for(var S=Zh(w,l);++p0||l<0)?new vt(p):(s<0?p=p.takeRight(-s):s&&(p=p.drop(s)),l!==r&&(l=ct(l),p=l<0?p.dropRight(-l):p.take(l-s)),p)},vt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},vt.prototype.toArray=function(){return this.take(we)},Co(vt.prototype,function(s,l){var p=/^(?:filter|find|map|reject)|While$/.test(l),w=/^(?:head|last)$/.test(l),S=$[w?"take"+(l=="last"?"Right":""):l],O=w||/^find/.test(l);S&&($.prototype[l]=function(){var F=this.__wrapped__,B=w?[1]:arguments,K=F instanceof vt,le=B[0],ue=K||at(F),xe=function(ht){var bt=S.apply($,Pi([ht],B));return w&&Me?bt[0]:bt};ue&&p&&typeof le=="function"&&le.length!=1&&(K=ue=!1);var Me=this.__chain__,Ke=!!this.__actions__.length,Je=O&&!Me,ut=K&&!Ke;if(!O&&ue){F=ut?F:new vt(this);var et=s.apply(F,B);return et.__actions__.push({func:tf,args:[xe],thisArg:r}),new Mn(et,Me)}return Je&&ut?s.apply(this,B):(et=this.thru(xe),Je?w?et.value()[0]:et.value():et)})}),Rn(["pop","push","shift","sort","splice","unshift"],function(s){var l=Au[s],p=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",w=/^(?:pop|shift)$/.test(s);$.prototype[s]=function(){var S=arguments;if(w&&!this.__chain__){var O=this.value();return l.apply(at(O)?O:[],S)}return this[p](function(F){return l.apply(at(F)?F:[],S)})}}),Co(vt.prototype,function(s,l){var p=$[l];if(p){var w=p.name+"";Lt.call(qs,w)||(qs[w]=[]),qs[w].push({name:l,func:p})}}),qs[Qu(r,v).name]=[{name:"wrapper",func:r}],vt.prototype.clone=_$,vt.prototype.reverse=y$,vt.prototype.value=b$,$.prototype.at=K7,$.prototype.chain=Y7,$.prototype.commit=Z7,$.prototype.next=X7,$.prototype.plant=e8,$.prototype.reverse=t8,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=r8,$.prototype.first=$.prototype.head,dc&&($.prototype[dc]=J7),$},Fs=ZI();$a?(($a.exports=Fs)._=Fs,Vh._=Fs):Rr._=Fs}).call(ui)})(Ep,Ep.exports);var qE=Ep.exports;const GZ={slot:"headline"},QZ={slot:"content"},KZ=["label","selected","onClick"],YZ={slot:"actions"},ZZ=["disabled"],XZ=Bt({__name:"UpdateTagRelationsModal",props:{type:{type:String,required:!0},tags:{type:Array,default:()=>[]},item:{type:Object,required:!0},selected:{type:Array,default:()=>[]}},setup(t){const e=t,r=Se([...e.selected]),{mutate:n,loading:o,onDone:i}=jr({document:HZ,appApi:!0});i(()=>{mt.emit("item_tags_updated",{item:e.item,type:e.type}),mt.emit("refetch_tags",e.type),as()});function a(d){r.value.includes(d)?gs(r.value,u=>u.id===d.id):r.value.push(d)}const c=()=>{const d=r.value.map(f=>f.id),u=e.selected.map(f=>f.id);n({type:e.type,addTagIds:qE.difference(d,u),item:e.item,removeTagIds:qE.difference(u,d)})};return(d,u)=>(te(),ie("md-dialog",null,[V("div",GZ,Ne(d.$t("add_to_tags")),1),V("div",QZ,[V("md-chip-set",null,[(te(!0),ie(Pt,null,wo(t.tags,f=>(te(),ie("md-filter-chip",{key:f.id,label:f.name,selected:r.value.includes(f),onClick:g=>a(f)},null,8,KZ))),128))])]),V("div",YZ,[V("md-outlined-button",{value:"cancel",onClick:u[0]||(u[0]=(...f)=>he(as)&&he(as)(...f))},Ne(d.$t("cancel")),1),V("md-filled-button",{value:"save",disabled:he(o),onClick:c,autofocus:""},Ne(d.$t("save")),9,ZZ)])]))}}),Ege=(t,e)=>{const r=Se("");return{createPath:r,createVariables(n){return{path:r.value+"/"+n}},createMutation(){return jr({document:FZ,options:{update:async(n,o)=>{for(const i of e.value)if(i.dir===r.value){const a=o.data.createDir;i.items.push({...a,name:Bo(a.path),fileId:$l(t.value,a.path)})}}},appApi:!0})}}},Tge=t=>{const e=Se(""),r=Se("");return{renameValue:e,renamePath:r,renameDone(n){const o=r.value,i=e.value;for(const a of t.value)a.rename(o,i,n)},renameMutation(){return jr({document:NZ,appApi:!0})},renameVariables(n){return{path:r.value,name:n}}}},kge=(t,e,r)=>({onDeleted(n){for(const o of t.value)n.forEach(i=>{o.deleteItem(i.path)});n.forEach(o=>{if(e.value.startsWith(o.path)){const i=o.path.lastIndexOf("/");e.value=o.path.substring(0,i)}}),r()}}),Cge=()=>{const t=Se(null),e=Se(null),r=Se([]),{refetch:n}=ys({handle:(o,i)=>{i||(t.value=o.storageStats.internal,e.value=o.storageStats.sdcard,r.value=o.storageStats.usb)},document:$Z,appApi:!0});return{internal:t,sdcard:e,usb:r,refetch:n}},Age=(t,e,r,n)=>{const o=Se(e),i=Se(""),a=Se([]),{t:c}=$n();let d=0,u=!1;const{loading:f}=ys({handle:async(_,b)=>{if(b)vi(c(b),"error");else{const{dir:h,items:m}=_.files,y=[];for(const x of m){const E={...x,name:Bo(x.path)};(jo(E.name)||Ro(E.name))&&(E.fileId=$l(t.value,x.path)),y.push(E)}const v=h.replace(e,"").split("/").length;for(;a.value.length>=v;)a.value.pop();if(a.value.push(new vZ(h,y)),r&&!u){const x=r.replace(e+"/","").split("/");y.length===0?u=!0:d({dir:o.value,showHidden:!0,sortBy:n.value}),options:{fetchPolicy:"no-cache"},appApi:!0}),{refetch:g}=ys({handle:async(_,b)=>{if(b)vi(c(b),"error");else{const{dir:h,items:m}=_.files,y=[];for(const v of m)y.push({...v,name:Bo(v.path),fileId:$l(t.value,v.path)});a.value.forEach(v=>{v.dir===h&&(v.items=y)})}i.value=""},document:NE,variables:()=>({dir:i.value,showHidden:!0,sortBy:n.value}),options:()=>({fetchPolicy:"no-cache",enabled:!!i.value}),appApi:!0});return{loading:f,panels:a,refetch(_){i.value=_,g()},currentDir:o}},Sge=t=>{const{t:e}=$n(),r=Se([]),{loading:n}=ys({handle:async(o,i)=>{if(i)vi(e(i),"error");else{const a=o.recentFiles;for(const c of a){const d={...c,name:Bo(c.path)};(jo(d.name)||Ro(d.name))&&(d.fileId=$l(t.value,c.path)),r.value.push(d)}}},document:IZ,options:{fetchPolicy:"no-cache"},appApi:!0});return{files:r,loading:n}},JZ=t=>({async downloadFile(e,r){const n=gl(t.value,e);r?Za(n+`&dl=1&name=${r}`,r):Za(n+"&dl=1",Bo(e))},async downloadDir(e,r){const n=$l(t.value,e),o=`${hs()}/zip/dir?id=${encodeURIComponent(n)}`;r?Za(o+`&name=${r}`,r):Za(o,Bo(e))},downloadFiles(e){const r=YC(t.value,JSON.stringify({id:e,type:"FILE",name:""}));Za(`${hs()}/zip/files?id=${encodeURIComponent(r)}`,"")}}),Ige=(t,e)=>({view(r,n){t.value=r.filter(i=>Ro(i.name)||jo(i.name)||Sd(i.name)).map(i=>({path:i.path,src:"",name:Bo(i.path),size:i.size,duration:0,data:n}));const o=zG(t.value,i=>i.path===n.path);e(t.value,o)}}),$ge=(t,e,r,n)=>{const o=Se(null);return{selectedItem:o,select(i,a){a.isDir?t.value=a.path:i.items.some(d=>d.path===t.value)&&i.items.some(d=>d.path===a.path)&&(t.value=i.dir);const c=[];c.push({name:"path",op:"",value:a.path}),c.push({name:"isDir",op:"",value:t.value===a.path?"1":"0"}),r.value=Kb(c),o.value=a,goe(n,e?`/files/${e}?q=${Bg(r.value)}`:`/files?q=${Bg(r.value)}`)}}},Oge=(t,e,r)=>{const n=Se(!1),o=Se(),{mutate:i,loading:a,onDone:c,onError:d}=jr({document:zZ,appApi:!0}),{mutate:u,loading:f,onDone:g,onError:_}=jr({document:qZ,appApi:!0}),{t:b}=$n(),h=y=>{vi(b(y.message))};d(h),_(h);const m=()=>{var y;if(n.value)for(const v of t.value)gs(((y=v.panel)==null?void 0:y.items)??[],x=>x.path===v.path);setTimeout(()=>{e(o.value),r()},500)};return c(m),g(m),{loading:a||f,canPaste(){return t.value.length>0},copy(y){t.value=y,n.value=!1},cut(y){t.value=y,n.value=!0},paste(y){o.value=y;for(const v of t.value){const x={src:v.path,dst:y+"/"+v.name,overwrite:!1};n.value?u(x):i(x)}}}},Pge=()=>{const{uploads:t}=ya(ki()),e=Se(""),r=Se();return{input:r,upload(n){e.value=n,r.value.value="",r.value.click()},uploadChanged(n){const o=n.target.files;if(!o)return;const i=[];for(let a=0;a({getUploads(t,e){const r=[];for(let n=0;n{const{t:i}=$n();return{downloadItems:(a,c)=>{let d=c;if(!a){const f=r.value.filter(g=>g.checked);if(f.length===0){vi(i("select_first"),"error");return}d=`ids:${f.map(g=>g.id).join(",")}`}const u=YC(t.value,JSON.stringify({query:d,type:e,name:o}));Za(`${hs()}/zip/files?id=${encodeURIComponent(u)}`,o),n()}}},tX={id:"form",slot:"content",method:"dialog"},rX={slot:"actions"},nX={form:"form",value:"cancel"},oX=["disabled"],iX=Bt({__name:"DeleteItemsConfirm",props:{gql:{type:Object,required:!0},done:{type:Function,required:!0},variables:{type:Function,required:!0}},setup(t){const e=t,{mutate:r,loading:n,onDone:o}=jr({document:e.gql,appApi:!0});function i(){r(e.variables())}return o(()=>{e.done(),as()}),(a,c)=>(te(),ie("md-dialog",null,[V("form",tX,Ne(a.$t("confirm_to_delete")),1),V("div",rX,[V("md-outlined-button",nX,Ne(a.$t("cancel")),1),V("md-filled-button",{form:"form",value:"delete",disabled:he(n),onClick:i,autofocus:""},Ne(a.$t("delete")),9,oX)])]))}}),aX={id:"form",slot:"content",method:"dialog"},sX={slot:"actions"},lX={form:"form",value:"cancel"},cX=["disabled"],dX=Bt({__name:"DeleteConfirm",props:{id:{type:String,default:"",required:!0},name:{type:String},gql:{type:Object,required:!0},typeName:{type:String,required:!0},appApi:{type:Boolean,default:!1},done:{type:Function},variables:{type:Function}},setup(t){const e=t,{mutate:r,loading:n,onDone:o}=jr({document:e.gql,options:{update:a=>{e.typeName!=="Application"&&a.evict({id:a.identify({__typename:e.typeName,id:e.id})})}},appApi:e.appApi});function i(){r(e.variables?e.variables():{id:e.id})}return o(()=>{e.done&&e.done(),as()}),(a,c)=>(te(),ie("md-dialog",null,[V("form",aX,Ne(a.$t("confirm_to_delete_name",{name:t.name})),1),V("div",sX,[V("md-outlined-button",lX,Ne(a.$t("cancel")),1),V("md-filled-button",{form:"form",value:"delete",disabled:he(n),onClick:i,autofocus:""},Ne(a.$t("delete")),9,cX)])]))}}),uX=()=>{const{t}=$n(),e=new Map;return e.set("AUDIO","Audio"),e.set("VIDEO","Video"),e.set("IMAGE","Image"),{deleteItems:(r,n,o,i)=>{let a=i;if(!o){const c=n.filter(d=>d.checked);if(c.length===0){vi(t("select_first"),"error");return}a=`ids:${c.map(d=>d.id).join(",")}`}pp(iX,{gql:zE,variables:()=>({type:r,query:a}),done:()=>{mt.emit("media_items_deleted",{type:r})}})},deleteItem:(r,n)=>{pp(dX,{id:n.id,name:n.title,gql:zE,variables:()=>({type:r,query:`ids:${n.id}`}),appApi:!0,typeName:e.get(r)??"",done:()=>{mt.emit("media_item_deleted",{item:n,type:r})}})}}};var Wf=(t=>(t.AUDIO="AUDIO",t.VIDEO="VIDEO",t.IMAGE="IMAGE",t.PACKAGE="PACKAGE",t.AI_CHAT="AI_CHAT",t.CALL="CALL",t.CONTACT="CONTACT",t.SMS="SMS",t.NOTE="NOTE",t.BOOK="BOOK",t.FEED_ENTRY="FEED_ENTRY",t))(Wf||{});const fX={id:"form",slot:"content",method:"dialog"},pX={slot:"actions"},hX={form:"form",value:"cancel"},mX=["disabled"],vX=Bt({__name:"DeleteFileConfirm",props:{onDone:{type:Function,required:!0},files:{type:Array,required:!0}},setup(t){const e=t,{mutate:r,loading:n,onDone:o}=jr({document:Ee` +}`;var ut=t2(function(){return At(O,Ke+"return "+xe).apply(r,F)});if(ut.source=xe,Fm(ut))throw ut;return ut}function uR(s){return $t(s).toLowerCase()}function fR(s){return $t(s).toUpperCase()}function pR(s,l,p){if(s=$t(s),s&&(p||l===r))return d1(s);if(!s||!(l=bn(l)))return s;var w=to(s),S=to(l),O=u1(w,S),F=f1(w,S)+1;return Ni(w,O,F).join("")}function hR(s,l,p){if(s=$t(s),s&&(p||l===r))return s.slice(0,h1(s)+1);if(!s||!(l=bn(l)))return s;var w=to(s),S=f1(w,to(l))+1;return Ni(w,0,S).join("")}function mR(s,l,p){if(s=$t(s),s&&(p||l===r))return s.replace(Ps,"");if(!s||!(l=bn(l)))return s;var w=to(s),S=u1(w,to(l));return Ni(w,S).join("")}function vR(s,l){var p=q,w=H;if(tr(l)){var S="separator"in l?l.separator:S;p="length"in l?ct(l.length):p,w="omission"in l?bn(l.omission):w}s=$t(s);var O=s.length;if(Ms(s)){var F=to(s);O=F.length}if(p>=O)return s;var B=p-Ds(w);if(B<1)return w;var K=F?Ni(F,0,B).join(""):s.slice(0,B);if(S===r)return K+w;if(F&&(B+=K.length-B),Nm(S)){if(s.slice(B).search(S)){var le,ue=K;for(S.global||(S=em(S.source,$t(Er.exec(S))+"g")),S.lastIndex=0;le=S.exec(ue);)var xe=le.index;K=K.slice(0,xe===r?B:xe)}}else if(s.indexOf(bn(S),B)!=B){var Me=K.lastIndexOf(S);Me>-1&&(K=K.slice(0,Me))}return K+w}function gR(s){return s=$t(s),s&&nu.test(s)?s.replace(Kr,WI):s}var _R=Vs(function(s,l,p){return s+(p?" ":"")+l.toUpperCase()}),Bm=rx("toUpperCase");function e2(s,l,p){return s=$t(s),l=p?r:l,l===r?BI(s)?KI(s):PI(s):s.match(l)||[]}var t2=ft(function(s,l){try{return _n(s,r,l)}catch(p){return Fm(p)?p:new ot(p)}}),yR=Jo(function(s,l){return Rn(l,function(p){p=So(p),Zo(s,p,Mm(s[p],s))}),s});function bR(s){var l=s==null?0:s.length,p=Xe();return s=l?Jt(s,function(w){if(typeof w[1]!="function")throw new Ln(a);return[p(w[0]),w[1]]}):[],ft(function(w){for(var S=-1;++SPe)return[];var p=we,w=zr(s,we);l=Xe(l),s-=we;for(var S=Zh(w,l);++p0||l<0)?new vt(p):(s<0?p=p.takeRight(-s):s&&(p=p.drop(s)),l!==r&&(l=ct(l),p=l<0?p.dropRight(-l):p.take(l-s)),p)},vt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},vt.prototype.toArray=function(){return this.take(we)},Co(vt.prototype,function(s,l){var p=/^(?:filter|find|map|reject)|While$/.test(l),w=/^(?:head|last)$/.test(l),S=$[w?"take"+(l=="last"?"Right":""):l],O=w||/^find/.test(l);S&&($.prototype[l]=function(){var F=this.__wrapped__,B=w?[1]:arguments,K=F instanceof vt,le=B[0],ue=K||at(F),xe=function(ht){var bt=S.apply($,Pi([ht],B));return w&&Me?bt[0]:bt};ue&&p&&typeof le=="function"&&le.length!=1&&(K=ue=!1);var Me=this.__chain__,Ke=!!this.__actions__.length,Je=O&&!Me,ut=K&&!Ke;if(!O&&ue){F=ut?F:new vt(this);var et=s.apply(F,B);return et.__actions__.push({func:tf,args:[xe],thisArg:r}),new Mn(et,Me)}return Je&&ut?s.apply(this,B):(et=this.thru(xe),Je?w?et.value()[0]:et.value():et)})}),Rn(["pop","push","shift","sort","splice","unshift"],function(s){var l=Au[s],p=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",w=/^(?:pop|shift)$/.test(s);$.prototype[s]=function(){var S=arguments;if(w&&!this.__chain__){var O=this.value();return l.apply(at(O)?O:[],S)}return this[p](function(F){return l.apply(at(F)?F:[],S)})}}),Co(vt.prototype,function(s,l){var p=$[l];if(p){var w=p.name+"";Lt.call(qs,w)||(qs[w]=[]),qs[w].push({name:l,func:p})}}),qs[Qu(r,v).name]=[{name:"wrapper",func:r}],vt.prototype.clone=g$,vt.prototype.reverse=_$,vt.prototype.value=y$,$.prototype.at=Q7,$.prototype.chain=K7,$.prototype.commit=Y7,$.prototype.next=Z7,$.prototype.plant=J7,$.prototype.reverse=e8,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=t8,$.prototype.first=$.prototype.head,dc&&($.prototype[dc]=X7),$},Fs=YI();$a?(($a.exports=Fs)._=Fs,Vh._=Fs):Rr._=Fs}).call(ui)})(Ep,Ep.exports);var qE=Ep.exports;const WZ={slot:"headline"},GZ={slot:"content"},QZ=["label","selected","onClick"],KZ={slot:"actions"},YZ=["disabled"],ZZ=Bt({__name:"UpdateTagRelationsModal",props:{type:{type:String,required:!0},tags:{type:Array,default:()=>[]},item:{type:Object,required:!0},selected:{type:Array,default:()=>[]}},setup(t){const e=t,r=Se([...e.selected]),{mutate:n,loading:o,onDone:i}=jr({document:jZ,appApi:!0});i(()=>{mt.emit("item_tags_updated",{item:e.item,type:e.type}),mt.emit("refetch_tags",e.type),as()});function a(d){r.value.includes(d)?gs(r.value,u=>u.id===d.id):r.value.push(d)}const c=()=>{const d=r.value.map(f=>f.id),u=e.selected.map(f=>f.id);n({type:e.type,addTagIds:qE.difference(d,u),item:e.item,removeTagIds:qE.difference(u,d)})};return(d,u)=>(te(),ie("md-dialog",null,[V("div",WZ,Ne(d.$t("add_to_tags")),1),V("div",GZ,[V("md-chip-set",null,[(te(!0),ie(Pt,null,wo(t.tags,f=>(te(),ie("md-filter-chip",{key:f.id,label:f.name,selected:r.value.includes(f),onClick:g=>a(f)},null,8,QZ))),128))])]),V("div",KZ,[V("md-outlined-button",{value:"cancel",onClick:u[0]||(u[0]=(...f)=>he(as)&&he(as)(...f))},Ne(d.$t("cancel")),1),V("md-filled-button",{value:"save",disabled:he(o),onClick:c,autofocus:""},Ne(d.$t("save")),9,YZ)])]))}}),wge=(t,e)=>{const r=Se("");return{createPath:r,createVariables(n){return{path:r.value+"/"+n}},createMutation(){return jr({document:DZ,options:{update:async(n,o)=>{for(const i of e.value)if(i.dir===r.value){const a=o.data.createDir;i.items.push({...a,name:Bo(a.path),fileId:$l(t.value,a.path)})}}},appApi:!0})}}},Ege=t=>{const e=Se(""),r=Se("");return{renameValue:e,renamePath:r,renameDone(n){const o=r.value,i=e.value;for(const a of t.value)a.rename(o,i,n)},renameMutation(){return jr({document:FZ,appApi:!0})},renameVariables(n){return{path:r.value,name:n}}}},Tge=(t,e,r)=>({onDeleted(n){for(const o of t.value)n.forEach(i=>{o.deleteItem(i.path)});n.forEach(o=>{if(e.value.startsWith(o.path)){const i=o.path.lastIndexOf("/");e.value=o.path.substring(0,i)}}),r()}}),kge=()=>{const t=Se(null),e=Se(null),r=Se([]),{refetch:n}=ys({handle:(o,i)=>{i||(t.value=o.storageStats.internal,e.value=o.storageStats.sdcard,r.value=o.storageStats.usb)},document:IZ,appApi:!0});return{internal:t,sdcard:e,usb:r,refetch:n}},Cge=(t,e,r,n)=>{const o=Se(e),i=Se(""),a=Se([]),{t:c}=$n();let d=0,u=!1;const{loading:f}=ys({handle:async(_,b)=>{if(b)vi(c(b),"error");else{const{dir:h,items:m}=_.files,y=[];for(const x of m){const E={...x,name:Bo(x.path)};(jo(E.name)||Ro(E.name))&&(E.fileId=$l(t.value,x.path)),y.push(E)}const v=h.replace(e,"").split("/").length;for(;a.value.length>=v;)a.value.pop();if(a.value.push(new mZ(h,y)),r&&!u){const x=r.replace(e+"/","").split("/");y.length===0?u=!0:d({dir:o.value,showHidden:!0,sortBy:n.value}),options:{fetchPolicy:"no-cache"},appApi:!0}),{refetch:g}=ys({handle:async(_,b)=>{if(b)vi(c(b),"error");else{const{dir:h,items:m}=_.files,y=[];for(const v of m)y.push({...v,name:Bo(v.path),fileId:$l(t.value,v.path)});a.value.forEach(v=>{v.dir===h&&(v.items=y)})}i.value=""},document:NE,variables:()=>({dir:i.value,showHidden:!0,sortBy:n.value}),options:()=>({fetchPolicy:"no-cache",enabled:!!i.value}),appApi:!0});return{loading:f,panels:a,refetch(_){i.value=_,g()},currentDir:o}},Age=t=>{const{t:e}=$n(),r=Se([]),{loading:n}=ys({handle:async(o,i)=>{if(i)vi(e(i),"error");else{const a=o.recentFiles;for(const c of a){const d={...c,name:Bo(c.path)};(jo(d.name)||Ro(d.name))&&(d.fileId=$l(t.value,c.path)),r.value.push(d)}}},document:SZ,options:{fetchPolicy:"no-cache"},appApi:!0});return{files:r,loading:n}},XZ=t=>({async downloadFile(e,r){const n=gl(t.value,e);r?Za(n+`&dl=1&name=${r}`,r):Za(n+"&dl=1",Bo(e))},async downloadDir(e,r){const n=$l(t.value,e),o=`${hs()}/zip/dir?id=${encodeURIComponent(n)}`;r?Za(o+`&name=${r}`,r):Za(o,Bo(e))},downloadFiles(e){const r=KC(t.value,JSON.stringify({id:e,type:"FILE",name:""}));Za(`${hs()}/zip/files?id=${encodeURIComponent(r)}`,"")}}),Sge=(t,e)=>({view(r,n){t.value=r.filter(i=>Ro(i.name)||jo(i.name)||Sd(i.name)).map(i=>({path:i.path,src:"",name:Bo(i.path),size:i.size,duration:0,data:n}));const o=NG(t.value,i=>i.path===n.path);e(t.value,o)}}),Ige=(t,e,r,n)=>{const o=Se(null);return{selectedItem:o,select(i,a){a.isDir?t.value=a.path:i.items.some(d=>d.path===t.value)&&i.items.some(d=>d.path===a.path)&&(t.value=i.dir);const c=[];c.push({name:"path",op:"",value:a.path}),c.push({name:"isDir",op:"",value:t.value===a.path?"1":"0"}),r.value=Kb(c),o.value=a,voe(n,e?`/files/${e}?q=${Bg(r.value)}`:`/files?q=${Bg(r.value)}`)}}},$ge=(t,e,r)=>{const n=Se(!1),o=Se(),{mutate:i,loading:a,onDone:c,onError:d}=jr({document:NZ,appApi:!0}),{mutate:u,loading:f,onDone:g,onError:_}=jr({document:zZ,appApi:!0}),{t:b}=$n(),h=y=>{vi(b(y.message))};d(h),_(h);const m=()=>{var y;if(n.value)for(const v of t.value)gs(((y=v.panel)==null?void 0:y.items)??[],x=>x.path===v.path);setTimeout(()=>{e(o.value),r()},500)};return c(m),g(m),{loading:a||f,canPaste(){return t.value.length>0},copy(y){t.value=y,n.value=!1},cut(y){t.value=y,n.value=!0},paste(y){o.value=y;for(const v of t.value){const x={src:v.path,dst:y+"/"+v.name,overwrite:!1};n.value?u(x):i(x)}}}},Oge=()=>{const{uploads:t}=ya(ki()),e=Se(""),r=Se();return{input:r,upload(n){e.value=n,r.value.value="",r.value.click()},uploadChanged(n){const o=n.target.files;if(!o)return;const i=[];for(let a=0;a({getUploads(t,e){const r=[];for(let n=0;n{const{t:i}=$n();return{downloadItems:(a,c)=>{let d=c;if(!a){const f=r.value.filter(g=>g.checked);if(f.length===0){vi(i("select_first"),"error");return}d=`ids:${f.map(g=>g.id).join(",")}`}const u=KC(t.value,JSON.stringify({query:d,type:e,name:o}));Za(`${hs()}/zip/files?id=${encodeURIComponent(u)}`,o),n()}}},eX={id:"form",slot:"content",method:"dialog"},tX={slot:"actions"},rX={form:"form",value:"cancel"},nX=["disabled"],oX=Bt({__name:"DeleteItemsConfirm",props:{gql:{type:Object,required:!0},done:{type:Function,required:!0},variables:{type:Function,required:!0}},setup(t){const e=t,{mutate:r,loading:n,onDone:o}=jr({document:e.gql,appApi:!0});function i(){r(e.variables())}return o(()=>{e.done(),as()}),(a,c)=>(te(),ie("md-dialog",null,[V("form",eX,Ne(a.$t("confirm_to_delete")),1),V("div",tX,[V("md-outlined-button",rX,Ne(a.$t("cancel")),1),V("md-filled-button",{form:"form",value:"delete",disabled:he(n),onClick:i,autofocus:""},Ne(a.$t("delete")),9,nX)])]))}}),iX={id:"form",slot:"content",method:"dialog"},aX={slot:"actions"},sX={form:"form",value:"cancel"},lX=["disabled"],cX=Bt({__name:"DeleteConfirm",props:{id:{type:String,default:"",required:!0},name:{type:String},gql:{type:Object,required:!0},typeName:{type:String,required:!0},appApi:{type:Boolean,default:!1},done:{type:Function},variables:{type:Function}},setup(t){const e=t,{mutate:r,loading:n,onDone:o}=jr({document:e.gql,options:{update:a=>{e.typeName!=="Application"&&a.evict({id:a.identify({__typename:e.typeName,id:e.id})})}},appApi:e.appApi});function i(){r(e.variables?e.variables():{id:e.id})}return o(()=>{e.done&&e.done(),as()}),(a,c)=>(te(),ie("md-dialog",null,[V("form",iX,Ne(a.$t("confirm_to_delete_name",{name:t.name})),1),V("div",aX,[V("md-outlined-button",sX,Ne(a.$t("cancel")),1),V("md-filled-button",{form:"form",value:"delete",disabled:he(n),onClick:i,autofocus:""},Ne(a.$t("delete")),9,lX)])]))}}),dX=()=>{const{t}=$n(),e=new Map;return e.set("AUDIO","Audio"),e.set("VIDEO","Video"),e.set("IMAGE","Image"),{deleteItems:(r,n,o,i)=>{let a=i;if(!o){const c=n.filter(d=>d.checked);if(c.length===0){vi(t("select_first"),"error");return}a=`ids:${c.map(d=>d.id).join(",")}`}pp(oX,{gql:zE,variables:()=>({type:r,query:a}),done:()=>{mt.emit("media_items_deleted",{type:r})}})},deleteItem:(r,n)=>{pp(cX,{id:n.id,name:n.title,gql:zE,variables:()=>({type:r,query:`ids:${n.id}`}),appApi:!0,typeName:e.get(r)??"",done:()=>{mt.emit("media_item_deleted",{item:n,type:r})}})}}};var Wf=(t=>(t.AUDIO="AUDIO",t.VIDEO="VIDEO",t.IMAGE="IMAGE",t.PACKAGE="PACKAGE",t.AI_CHAT="AI_CHAT",t.CALL="CALL",t.CONTACT="CONTACT",t.SMS="SMS",t.NOTE="NOTE",t.BOOK="BOOK",t.FEED_ENTRY="FEED_ENTRY",t))(Wf||{});const uX={id:"form",slot:"content",method:"dialog"},fX={slot:"actions"},pX={form:"form",value:"cancel"},hX=["disabled"],mX=Bt({__name:"DeleteFileConfirm",props:{onDone:{type:Function,required:!0},files:{type:Array,required:!0}},setup(t){const e=t,{mutate:r,loading:n,onDone:o}=jr({document:Ee` mutation DeleteFiles($paths: [String!]!) { deleteFiles(paths: $paths) } - `,appApi:!0});function i(){r({paths:e.files.map(a=>a.path)})}return o(()=>{e.onDone(e.files),as()}),(a,c)=>(te(),ie("md-dialog",null,[V("form",fX,Ne(a.$t("confirm_to_delete_name",{name:he(xQ)(t.files.map(d=>d.name).join(", "),{length:200})})),1),V("div",pX,[V("md-outlined-button",hX,Ne(a.$t("cancel")),1),V("md-filled-button",{form:"form",value:"delete",disabled:he(n),onClick:i,autofocus:""},Ne(a.$t("delete")),9,mX)])]))}}),Zn=t=>(_i("data-v-271aa27d"),t=t(),yi(),t),gX={class:"layout"},_X={key:0,class:"toolbar"},yX={key:0,class:"source-name v-center"},bX=Zn(()=>V("md-ripple",null,null,-1)),xX=Zn(()=>V("md-ripple",null,null,-1)),wX=Zn(()=>V("md-ripple",null,null,-1)),EX=Zn(()=>V("md-ripple",null,null,-1)),TX=Zn(()=>V("md-ripple",null,null,-1)),kX=Zn(()=>V("md-ripple",null,null,-1)),CX=Zn(()=>V("md-ripple",null,null,-1)),AX=Zn(()=>V("md-ripple",null,null,-1)),SX=["onClick"],IX={key:2,class:"loading"},$X=Zn(()=>V("md-circular-progress",{indeterminate:""},null,-1)),OX=[$X],PX={key:3,class:"v-on-error"},RX=["onClick"],LX=["src"],MX=["onClick"],DX={style:{padding:"50px"}},FX=["src"],NX=["src"],zX={key:1,class:"info"},qX={class:"top-title"},BX=["onClick"],UX=Zn(()=>V("md-ripple",null,null,-1)),VX=Zn(()=>V("md-ripple",null,null,-1)),jX={class:"list-items"},HX={class:"item"},WX={class:"title"},GX={class:"subtitle"},QX={key:0},KX={key:0,class:"item"},YX={class:"title"},ZX={class:"subtitle"},XX={key:1,class:"item"},JX={class:"title"},eJ={class:"subtitle"},tJ={key:2,class:"item"},rJ={class:"title"},nJ=["onClick"],oJ=Zn(()=>V("md-ripple",null,null,-1)),iJ={class:"subtitle"},aJ={key:3,class:"item"},sJ={class:"title"},lJ={class:"subtitle"},BE=.2,cJ=Bt({__name:"lightbox",props:{loop:{type:Boolean,default:!0}},emits:["on-error","on-prev","on-next","on-prev-click","on-next-click","on-index-change"],setup(t,{emit:e}){const r=t,n=()=>{const z=v.value;z&&(z.viewOriginImage=!0),y.loading=!0},o=ki(),{urlTokenKey:i,app:a}=ya(o),c=Se(),{imgRef:d,imgState:u,setImgSize:f}=dZ(),g=Se(0),{lightboxInfoVisible:_}=ya(Bd()),{downloadFile:b}=JZ(i),{deleteItem:h}=uX(),m=vo({scale:1,lastScale:1,rotateDeg:0,top:0,left:0,initX:0,initY:0,lastX:0,lastY:0,touches:[]}),y=vo({loadError:!1,loading:!1,dragging:!1,gesturing:!1,swipeToLeft:!1,swipeToRight:!1,wheeling:!1}),v=Se(),x=()=>y.loadError?"default":"move",E=Se(null);function T(){var Fe,Ue;const z=[Wf.VIDEO,Wf.AUDIO,Wf.IMAGE],oe=(Fe=v.value)==null?void 0:Fe.type,be=(Ue=v.value)==null?void 0:Ue.data;oe&&z.includes(oe)?h(oe,be):pp(vX,{files:[be],onDone:()=>{mt.emit("file_deleted",{item:be})}})}const{loading:C,load:A,refetch:L}=FE({handle:(z,oe)=>{oe||z&&(E.value=z.fileInfo)},document:SZ,variables:()=>{var z,oe,be;return{id:((oe=(z=v.value)==null?void 0:z.data)==null?void 0:oe.id)??"",path:((be=v.value)==null?void 0:be.path)??""}},appApi:!0}),R=new Map,{loading:D,load:q}=FE({handle:(z,oe)=>{var be;z&&R.set(((be=v.value)==null?void 0:be.type)??"",z.tags)},document:PZ,variables:()=>{var z;return{type:((z=v.value)==null?void 0:z.type)??""}},appApi:!0}),H=St(()=>({cursor:x(),top:`calc(50% + ${m.top}px)`,left:`calc(50% + ${m.left}px)`,transition:y.dragging||y.gesturing?"none":"",transform:`translate(-50%, -50%) scale(${m.scale}) rotate(${m.rotateDeg}deg)`})),U=()=>{o.lightbox.visible=!1,o.lightbox.index=-1,g.value=0};function ce(){var Fe,Ue,dt,Gt,gr;const z=((Ue=(Fe=E.value)==null?void 0:Fe.data)==null?void 0:Ue.width)??0,oe=((Gt=(dt=E.value)==null?void 0:dt.data)==null?void 0:Gt.height)??0;let be=` ${z} x ${oe}`;return Ro(((gr=v.value)==null?void 0:gr.name)??"")&&(be+=` ${Math.round(z*oe/1e6)} MP`),be}const Ae=()=>{m.scale=1,m.lastScale=1,m.rotateDeg=0,m.top=0,m.left=0,y.loadError=!1,y.dragging=!1,y.gesturing=!1,y.loading=!0},Le=async(z,oe)=>{const be=g.value;Ae();const Fe=o.lightbox.sources[z];Fe.src||(Fe.src=gl(o.urlTokenKey,Fe.path)),g.value=z,v.value=o.lightbox.sources[g.value],setTimeout(()=>{var dt;const Ue=((dt=v.value)==null?void 0:dt.type)??"";Ue&&!R.has(Ue)&&q(),A()},0),be!==z&&(oe&&(cZ(oe)?oe.forEach(Ue=>{e(Ue,be,z)}):e(oe,be,z)),e("on-index-change",be,z))},Te=()=>{const z=g.value,oe=r.loop?(z+1)%o.lightbox.sources.length:z+1;!r.loop&&oe>o.lightbox.sources.length-1||Le(oe,["on-next","on-next-click"])},Ie=()=>{const z=g.value;let oe=z-1;if(z===0){if(!r.loop)return;oe=o.lightbox.sources.length-1}Le(oe,["on-prev","on-prev-click"])},Pe=z=>{Math.abs(1-z)<.05?z=1:Math.abs(u.maxScale-z)<.05&&(z=u.maxScale),m.lastScale=m.scale,m.scale=z},Ce=()=>{const z=m.scale+BE;z{const z=m.scale-(m.scale<.7?.1:BE);z>.1&&Pe(z)},we=()=>{m.rotateDeg-=90},ke=()=>{m.rotateDeg+=90},Re=()=>{m.scale=1,m.top=0,m.left=0},He=z=>z===0,{onMouseDown:ze,onMouseMove:We,onMouseUp:J}=uZ(m,y,He),{onTouchStart:me,onTouchMove:ve,onTouchEnd:$e}=fZ(u,m,y,He),Oe=()=>{m.scale!==u.maxScale?(m.lastScale=m.scale,m.scale=u.maxScale):m.scale=m.lastScale},M=z=>{y.loadError||y.gesturing||y.loading||y.dragging||y.wheeling||(y.wheeling=!0,setTimeout(()=>{y.wheeling=!1},80),z.deltaY<0?Ce():de())};let k=!0;const I=()=>{k=!0},N=()=>{k=!1},W=z=>{const oe=z;if(oe.key==="Escape"){if(document.querySelector("md-dialog[open]"))return;U()}else if(oe.key==="ArrowLeft")Ie();else if(oe.key==="ArrowRight")Te();else if(oe.key===" "){const be=c.value;be&&(be.paused&&!k?be.play():be.pause())}},Y=()=>{y.loading=!1,v.value&&Ro(v.value.name)&&f()},se=z=>{y.loading=!1,y.loadError=!0,e("on-error",z)},ye=()=>{f()};Vt(()=>o.lightbox.index,z=>{z<0||z>=o.lightbox.sources.length||Le(z)}),Vt(()=>y.dragging,(z,oe)=>{});function X(){var Fe,Ue;const z=((Fe=v.value)==null?void 0:Fe.type)??"",oe=R.get(z)??[],be=((Ue=v.value)==null?void 0:Ue.data)??{};pp(XZ,{type:z,tags:oe,item:{key:be.id,title:be.title,size:be.size},selected:oe.filter(dt=>{var Gt,gr;return(gr=(Gt=E.value)==null?void 0:Gt.data)==null?void 0:gr.tags.some(ko=>ko.id===dt.id)})})}const ee=z=>{var oe,be;z.item.key===((be=(oe=v.value)==null?void 0:oe.data)==null?void 0:be.id)&&L()},fe=z=>{var oe,be;z.item.id===((be=(oe=v.value)==null?void 0:oe.data)==null?void 0:be.id)&&(gs(o.lightbox.sources,Fe=>{var Ue;return((Ue=Fe.data)==null?void 0:Ue.id)===z.item.id}),o.lightbox.sources.length?Te():U())},j=z=>{var oe,be;z.item.path===((be=(oe=v.value)==null?void 0:oe.data)==null?void 0:be.path)&&(gs(o.lightbox.sources,Fe=>Fe.path===z.item.path),o.lightbox.sources.length?Te():U())};return mn(()=>{OE(document,"keydown",W),OE(window,"resize",ye),mt.on("item_tags_updated",ee),mt.on("media_item_deleted",fe),mt.on("file_deleted",j)}),Ho(()=>{PE(document,"keydown",W),PE(window,"resize",ye),mt.off("item_tags_updated",ee),mt.off("media_item_deleted",fe),mt.off("file_deleted",j)}),(z,oe)=>{const be=Hd,Fe=p3,Ue=ZY,dt=WY,Gt=BY,gr=DY,ko=OY,eo=CY,Ii=xY,_r=vY,Nr=uY,$i=Yb,Mh=HQ,Dh=qQ,Fh=MQ,Kr=ws("tooltip");return te(),Hr(Vy,{to:"body"},[he(o).lightbox.visible?(te(),Hr(md,{key:0},{default:go(()=>[V("div",{onTouchmove:oe[9]||(oe[9]=(...Ia)=>he(RE)&&he(RE)(...Ia)),class:"lightbox",onWheel:M},[Be(md,{mode:"out-in"},{default:go(()=>{var Ia,nu,ou,iu,au,lc,su,lu,cu,Os,du,Ps,uu,fu,pu,hu,mu,vu,gu,_u;return[V("div",gX,[v.value?(te(),ie("header",_X,[v.value.name?(te(),ie("div",yX,[_t((te(),ie("button",{class:"icon-button",onClick:U},[bX,Be(be)])),[[Kr,z.$t("close")]]),V("span",null,Ne(v.value.name),1)])):Tt("",!0),he(Ro)(v.value.name)?(te(),ie(Pt,{key:1},[v.value.viewOriginImage?Tt("",!0):_t((te(),ie("button",{key:0,class:"icon-button",onClick:n},[xX,Be(Fe)])),[[Kr,z.$t("view_origin_image")]]),_t((te(),ie("button",{class:"icon-button",onClick:Ce},[wX,Be(Ue)])),[[Kr,z.$t("zoom_in")]]),_t((te(),ie("button",{class:"icon-button",onClick:de},[EX,Be(dt)])),[[Kr,z.$t("zoom_out")]]),_t((te(),ie("button",{class:"icon-button",onClick:Re},[TX,Be(Gt)])),[[Kr,z.$t("resize")]]),_t((te(),ie("button",{class:"icon-button",onClick:we},[kX,Be(gr)])),[[Kr,z.$t("rotate_left")]]),_t((te(),ie("button",{class:"icon-button",onClick:ke},[CX,Be(ko)])),[[Kr,z.$t("rotate_right")]])],64)):Tt("",!0),_t((te(),ie("button",{class:"icon-button",onClick:oe[0]||(oe[0]=Er=>_.value=!he(_))},[AX,Be(eo)])),[[Kr,z.$t("info")]])])):Tt("",!0),V("section",{class:"content",onClick:Ot(U,["self"])},[he(o).lightbox.sources.length>1&&(t.loop||g.value>0)?(te(),ie("div",{key:0,class:"btn-prev",onClick:Ie},[Be(Ii)])):Tt("",!0),he(o).lightbox.sources.length>1&&(t.loop||g.valuehe(ze)&&he(ze)(...Er)),onMouseup:oe[2]||(oe[2]=(...Er)=>he(J)&&he(J)(...Er)),onMousemove:oe[3]||(oe[3]=(...Er)=>he(We)&&he(We)(...Er)),onTouchstart:oe[4]||(oe[4]=(...Er)=>he(me)&&he(me)(...Er)),onTouchmove:oe[5]||(oe[5]=(...Er)=>he(ve)&&he(ve)(...Er)),onTouchend:oe[6]||(oe[6]=(...Er)=>he($e)&&he($e)(...Er)),onLoad:Y,onError:se,onDblclick:Oe,onDragstart:oe[7]||(oe[7]=Er=>{Er.preventDefault()})},null,40,NX)],4)),[[uo,!y.loading&&!y.loadError]]):Tt("",!0)],8,SX),he(_)?(te(),ie("section",zX,[V("div",qX,[Be(Nr,{id:z.$t("info"),raw:E.value},null,8,["id","raw"]),(iu=v.value)!=null&&iu.data?_t((te(),ie("button",{key:0,class:"icon-button",onClick:Ot(T,["stop"])},[UX,Be($i)],8,BX)),[[Kr,z.$t("delete")]]):Tt("",!0),_t((te(),ie("button",{class:"icon-button",onClick:oe[8]||(oe[8]=Ot(Er=>{var yu,bu;return he(b)(((yu=v.value)==null?void 0:yu.path)??"",he(Bo)(((bu=v.value)==null?void 0:bu.path)??"").replace(" ","-"))},["stop"]))},[VX,Be(Mh)])),[[Kr,z.$t("download")]])]),V("section",jX,[V("div",HX,[V("div",WX,Ne(z.$t("file_size")),1),V("div",GX,[Lo(Ne(he(Id)(((au=v.value)==null?void 0:au.size)??0))+" ",1),(su=(lc=E.value)==null?void 0:lc.data)!=null&&su.width&&((cu=(lu=E.value)==null?void 0:lu.data)!=null&&cu.height)?(te(),ie("span",QX,Ne(ce()),1)):Tt("",!0)])]),(Os=E.value)!=null&&Os.updatedAt?(te(),ie("div",KX,[V("div",YX,Ne(z.$t("updated_at")),1),V("div",ZX,[_t((te(),ie("span",null,[Lo(Ne(he(s0)(E.value.updatedAt)),1)])),[[Kr,he(l0)(E.value.updatedAt)]])])])):Tt("",!0),v.value&&(he(Sd)((du=v.value)==null?void 0:du.name)||he(jo)((Ps=v.value)==null?void 0:Ps.name))?(te(),ie("div",XX,[V("div",JX,Ne(z.$t("duration")),1),V("div",eJ,Ne(he(gh)(((fu=(uu=E.value)==null?void 0:uu.data)==null?void 0:fu.duration)??((pu=v.value)==null?void 0:pu.duration))),1)])):Tt("",!0),(hu=v.value)!=null&&hu.type?(te(),ie("div",tJ,[V("div",rJ,[Lo(Ne(z.$t("tags"))+" ",1),_t((te(),ie("button",{class:"icon-button",onClick:Ot(X,["prevent"])},[oJ,Be(Dh)],8,nJ)),[[Kr,z.$t("add_to_tags")]])]),V("div",iJ,[Be(Fh,{tags:(vu=(mu=E.value)==null?void 0:mu.data)==null?void 0:vu.tags},null,8,["tags"])])])):Tt("",!0),(gu=v.value)!=null&&gu.path?(te(),ie("div",aJ,[V("div",sJ,Ne(z.$t("path")),1),V("div",lJ,Ne(he(Yq)(he(a).externalFilesDir,(_u=v.value)==null?void 0:_u.path)),1)])):Tt("",!0)])])):Tt("",!0)])]}),_:1})],32)]),_:1})):Tt("",!0)])}}});const dJ=gn(cJ,[["__scopeId","data-v-271aa27d"]]);function uJ(t,e=[],r=""){return t?"loading":r&&!e.includes(r)?"no_permission":"no_data"}const x3=t=>(_i("data-v-df129d1d"),t=t(),yi(),t),fJ={class:"notifications"},pJ={class:"top-title"},hJ=["onClick"],mJ=x3(()=>V("md-ripple",null,null,-1)),vJ={key:0,class:"alert-warning"},gJ=["onClick"],_J={class:"items-container"},yJ={key:0,class:"list-items"},bJ={class:"title"},xJ=["src"],wJ={class:"view-raw"},EJ={class:"name"},TJ={class:"time nowrap"},kJ={class:"subtitle"},CJ={class:"body"},AJ=["onClick"],SJ=x3(()=>V("md-ripple",null,null,-1)),IJ={key:1,class:"no-data"},$J=Bt({__name:"Notifications",setup(t){const{resolveClient:e}=nh(),{t:r}=$n(),{app:n,urlTokenKey:o}=ya(ki()),i=Se([]),{loading:a}=ys({handle:(_,b)=>{b?vi(r(b),"error"):_&&(i.value=_.notifications.map(h=>({...h,icon:gl(o.value,"pkgicon://"+h.appId)})))},document:Cv,appApi:!0}),c=Se(Notification.permission),{mutate:d}=jr({document:WZ,appApi:!0}),u=_=>{d({ids:[_.id]})},f=()=>{if(Notification.permission==="denied"){fp(jg,{title:r("desktop_notification_permission_grant_title"),message:r("desktop_notification_permission_grant_message")});return}Notification.requestPermission().then(_=>{c.value=_})},g=()=>{const _=i.value.map(b=>b.id);d({ids:_})};return mn(()=>{mt.on("notification_created",async _=>{const b=e("a");if(es(b.cache,[{..._,__typename:"Notification"}],Cv,null,!0),_.icon=gl(o.value,"pkgicon://"+_.appId),"Notification"in window&&Notification.permission==="granted"){const h=new Notification(_.title,{body:_.body,icon:_.icon});h.onclick=()=>{window.focus(),h.close()}}}),mt.on("notification_updated",async _=>{const h=e("a").cache;if(h.evict({id:h.identify({__typename:"Notification",id:_.id})}),es(h,[{..._,__typename:"Notification"}],Cv,null,!0),_.icon=gl(o.value,"pkgicon://"+_.appId),"Notification"in window&&Notification.permission==="granted"){const m=new Notification(_.title,{body:_.body,icon:_.icon});m.onclick=()=>{window.focus(),m.close()}}}),mt.on("notification_deleted",async _=>{const h=e("a").cache;h.evict({id:h.identify({__typename:"Notification",id:_.id})})})}),(_,b)=>{const h=Yb,m=i0,y=Hd,v=ws("tooltip");return te(),ie("div",fJ,[V("div",pJ,[Lo(Ne(_.$t("header_actions.notifications"))+" ("+Ne(i.value.length)+") ",1),i.value.length?_t((te(),ie("button",{key:0,class:"icon-button",onClick:Ot(g,["prevent"])},[mJ,Be(h)],8,hJ)),[[v,_.$t("clear_list")]]):Tt("",!0)]),c.value!=="granted"?(te(),ie("div",vJ,[Lo(Ne(_.$t("desktop_notification_permission_not_granted"))+" ",1),V("md-filled-button",{class:"btn-sm",onClick:Ot(f,["stop"])},Ne(_.$t("grant_permission")),9,gJ)])):Tt("",!0),V("div",_J,[i.value.length?(te(),ie("section",yJ,[(te(!0),ie(Pt,null,wo(i.value,x=>(te(),ie("div",{class:"item",key:x.id},[V("div",bJ,[Be(m,null,{content:go(()=>[V("pre",wJ,Ne(x),1)]),default:go(()=>[V("img",{width:"20",height:"20",src:x.icon},null,8,xJ)]),_:2},1024),V("span",EJ,Ne(x.appName),1),_t((te(),ie("span",TJ,[Lo(Ne(he(s0)(x.time)),1)])),[[v,he(l0)(x.time)]])]),V("div",kJ,Ne(x.title),1),V("div",CJ,Ne(x.body),1),V("button",{class:"icon-button icon",onClick:Ot(E=>u(x),["stop"])},[SJ,Be(y)],8,AJ)]))),128))])):(te(),ie("span",IJ,Ne(_.$t(he(uJ)(he(a),he(n).permissions,"NOTIFICATION_LISTENER"))),1))])])}}});const OJ=gn($J,[["__scopeId","data-v-df129d1d"]]);/** + `,appApi:!0});function i(){r({paths:e.files.map(a=>a.path)})}return o(()=>{e.onDone(e.files),as()}),(a,c)=>(te(),ie("md-dialog",null,[V("form",uX,Ne(a.$t("confirm_to_delete_name",{name:he(bQ)(t.files.map(d=>d.name).join(", "),{length:200})})),1),V("div",fX,[V("md-outlined-button",pX,Ne(a.$t("cancel")),1),V("md-filled-button",{form:"form",value:"delete",disabled:he(n),onClick:i,autofocus:""},Ne(a.$t("delete")),9,hX)])]))}}),Zn=t=>(_i("data-v-271aa27d"),t=t(),yi(),t),vX={class:"layout"},gX={key:0,class:"toolbar"},_X={key:0,class:"source-name v-center"},yX=Zn(()=>V("md-ripple",null,null,-1)),bX=Zn(()=>V("md-ripple",null,null,-1)),xX=Zn(()=>V("md-ripple",null,null,-1)),wX=Zn(()=>V("md-ripple",null,null,-1)),EX=Zn(()=>V("md-ripple",null,null,-1)),TX=Zn(()=>V("md-ripple",null,null,-1)),kX=Zn(()=>V("md-ripple",null,null,-1)),CX=Zn(()=>V("md-ripple",null,null,-1)),AX=["onClick"],SX={key:2,class:"loading"},IX=Zn(()=>V("md-circular-progress",{indeterminate:""},null,-1)),$X=[IX],OX={key:3,class:"v-on-error"},PX=["onClick"],RX=["src"],LX=["onClick"],MX={style:{padding:"50px"}},DX=["src"],FX=["src"],NX={key:1,class:"info"},zX={class:"top-title"},qX=["onClick"],BX=Zn(()=>V("md-ripple",null,null,-1)),UX=Zn(()=>V("md-ripple",null,null,-1)),VX={class:"list-items"},jX={class:"item"},HX={class:"title"},WX={class:"subtitle"},GX={key:0},QX={key:0,class:"item"},KX={class:"title"},YX={class:"subtitle"},ZX={key:1,class:"item"},XX={class:"title"},JX={class:"subtitle"},eJ={key:2,class:"item"},tJ={class:"title"},rJ=["onClick"],nJ=Zn(()=>V("md-ripple",null,null,-1)),oJ={class:"subtitle"},iJ={key:3,class:"item"},aJ={class:"title"},sJ={class:"subtitle"},BE=.2,lJ=Bt({__name:"lightbox",props:{loop:{type:Boolean,default:!0}},emits:["on-error","on-prev","on-next","on-prev-click","on-next-click","on-index-change"],setup(t,{emit:e}){const r=t,n=()=>{const z=v.value;z&&(z.viewOriginImage=!0),y.loading=!0},o=ki(),{urlTokenKey:i,app:a}=ya(o),c=Se(),{imgRef:d,imgState:u,setImgSize:f}=cZ(),g=Se(0),{lightboxInfoVisible:_}=ya(Bd()),{downloadFile:b}=XZ(i),{deleteItem:h}=dX(),m=vo({scale:1,lastScale:1,rotateDeg:0,top:0,left:0,initX:0,initY:0,lastX:0,lastY:0,touches:[]}),y=vo({loadError:!1,loading:!1,dragging:!1,gesturing:!1,swipeToLeft:!1,swipeToRight:!1,wheeling:!1}),v=Se(),x=()=>y.loadError?"default":"move",E=Se(null);function T(){var Fe,Ue;const z=[Wf.VIDEO,Wf.AUDIO,Wf.IMAGE],oe=(Fe=v.value)==null?void 0:Fe.type,be=(Ue=v.value)==null?void 0:Ue.data;oe&&z.includes(oe)?h(oe,be):pp(mX,{files:[be],onDone:()=>{mt.emit("file_deleted",{item:be})}})}const{loading:C,load:A,refetch:L}=FE({handle:(z,oe)=>{oe||z&&(E.value=z.fileInfo)},document:AZ,variables:()=>{var z,oe,be;return{id:((oe=(z=v.value)==null?void 0:z.data)==null?void 0:oe.id)??"",path:((be=v.value)==null?void 0:be.path)??""}},appApi:!0}),R=new Map,{loading:D,load:q}=FE({handle:(z,oe)=>{var be;z&&R.set(((be=v.value)==null?void 0:be.type)??"",z.tags)},document:OZ,variables:()=>{var z;return{type:((z=v.value)==null?void 0:z.type)??""}},appApi:!0}),H=St(()=>({cursor:x(),top:`calc(50% + ${m.top}px)`,left:`calc(50% + ${m.left}px)`,transition:y.dragging||y.gesturing?"none":"",transform:`translate(-50%, -50%) scale(${m.scale}) rotate(${m.rotateDeg}deg)`})),U=()=>{o.lightbox.visible=!1,o.lightbox.index=-1,g.value=0};function ce(){var Fe,Ue,dt,Gt,gr;const z=((Ue=(Fe=E.value)==null?void 0:Fe.data)==null?void 0:Ue.width)??0,oe=((Gt=(dt=E.value)==null?void 0:dt.data)==null?void 0:Gt.height)??0;let be=` ${z} x ${oe}`;return Ro(((gr=v.value)==null?void 0:gr.name)??"")&&(be+=` ${Math.round(z*oe/1e6)} MP`),be}const Ae=()=>{m.scale=1,m.lastScale=1,m.rotateDeg=0,m.top=0,m.left=0,y.loadError=!1,y.dragging=!1,y.gesturing=!1,y.loading=!0},Le=async(z,oe)=>{const be=g.value;Ae();const Fe=o.lightbox.sources[z];Fe.src||(Fe.src=gl(o.urlTokenKey,Fe.path)),g.value=z,v.value=o.lightbox.sources[g.value],setTimeout(()=>{var dt;const Ue=((dt=v.value)==null?void 0:dt.type)??"";Ue&&!R.has(Ue)&&q(),A()},0),be!==z&&(oe&&(lZ(oe)?oe.forEach(Ue=>{e(Ue,be,z)}):e(oe,be,z)),e("on-index-change",be,z))},Te=()=>{const z=g.value,oe=r.loop?(z+1)%o.lightbox.sources.length:z+1;!r.loop&&oe>o.lightbox.sources.length-1||Le(oe,["on-next","on-next-click"])},Ie=()=>{const z=g.value;let oe=z-1;if(z===0){if(!r.loop)return;oe=o.lightbox.sources.length-1}Le(oe,["on-prev","on-prev-click"])},Pe=z=>{Math.abs(1-z)<.05?z=1:Math.abs(u.maxScale-z)<.05&&(z=u.maxScale),m.lastScale=m.scale,m.scale=z},Ce=()=>{const z=m.scale+BE;z{const z=m.scale-(m.scale<.7?.1:BE);z>.1&&Pe(z)},we=()=>{m.rotateDeg-=90},ke=()=>{m.rotateDeg+=90},Re=()=>{m.scale=1,m.top=0,m.left=0},He=z=>z===0,{onMouseDown:ze,onMouseMove:We,onMouseUp:J}=dZ(m,y,He),{onTouchStart:me,onTouchMove:ve,onTouchEnd:$e}=uZ(u,m,y,He),Oe=()=>{m.scale!==u.maxScale?(m.lastScale=m.scale,m.scale=u.maxScale):m.scale=m.lastScale},M=z=>{y.loadError||y.gesturing||y.loading||y.dragging||y.wheeling||(y.wheeling=!0,setTimeout(()=>{y.wheeling=!1},80),z.deltaY<0?Ce():de())};let k=!0;const I=()=>{k=!0},N=()=>{k=!1},W=z=>{const oe=z;if(oe.key==="Escape"){if(document.querySelector("md-dialog[open]"))return;U()}else if(oe.key==="ArrowLeft")Ie();else if(oe.key==="ArrowRight")Te();else if(oe.key===" "){const be=c.value;be&&(be.paused&&!k?be.play():be.pause())}},Y=()=>{y.loading=!1,v.value&&Ro(v.value.name)&&f()},se=z=>{y.loading=!1,y.loadError=!0,e("on-error",z)},ye=()=>{f()};Vt(()=>o.lightbox.index,z=>{z<0||z>=o.lightbox.sources.length||Le(z)}),Vt(()=>y.dragging,(z,oe)=>{});function X(){var Fe,Ue;const z=((Fe=v.value)==null?void 0:Fe.type)??"",oe=R.get(z)??[],be=((Ue=v.value)==null?void 0:Ue.data)??{};pp(ZZ,{type:z,tags:oe,item:{key:be.id,title:be.title,size:be.size},selected:oe.filter(dt=>{var Gt,gr;return(gr=(Gt=E.value)==null?void 0:Gt.data)==null?void 0:gr.tags.some(ko=>ko.id===dt.id)})})}const ee=z=>{var oe,be;z.item.key===((be=(oe=v.value)==null?void 0:oe.data)==null?void 0:be.id)&&L()},fe=z=>{var oe,be;z.item.id===((be=(oe=v.value)==null?void 0:oe.data)==null?void 0:be.id)&&(gs(o.lightbox.sources,Fe=>{var Ue;return((Ue=Fe.data)==null?void 0:Ue.id)===z.item.id}),o.lightbox.sources.length?Te():U())},j=z=>{var oe,be;z.item.path===((be=(oe=v.value)==null?void 0:oe.data)==null?void 0:be.path)&&(gs(o.lightbox.sources,Fe=>Fe.path===z.item.path),o.lightbox.sources.length?Te():U())};return mn(()=>{OE(document,"keydown",W),OE(window,"resize",ye),mt.on("item_tags_updated",ee),mt.on("media_item_deleted",fe),mt.on("file_deleted",j)}),Ho(()=>{PE(document,"keydown",W),PE(window,"resize",ye),mt.off("item_tags_updated",ee),mt.off("media_item_deleted",fe),mt.off("file_deleted",j)}),(z,oe)=>{const be=Hd,Fe=f3,Ue=YY,dt=HY,Gt=qY,gr=MY,ko=$Y,eo=kY,Ii=bY,_r=mY,Nr=dY,$i=Yb,Mh=jQ,Dh=zQ,Fh=LQ,Kr=ws("tooltip");return te(),Hr(Vy,{to:"body"},[he(o).lightbox.visible?(te(),Hr(md,{key:0},{default:go(()=>[V("div",{onTouchmove:oe[9]||(oe[9]=(...Ia)=>he(RE)&&he(RE)(...Ia)),class:"lightbox",onWheel:M},[Be(md,{mode:"out-in"},{default:go(()=>{var Ia,nu,ou,iu,au,lc,su,lu,cu,Os,du,Ps,uu,fu,pu,hu,mu,vu,gu,_u;return[V("div",vX,[v.value?(te(),ie("header",gX,[v.value.name?(te(),ie("div",_X,[_t((te(),ie("button",{class:"icon-button",onClick:U},[yX,Be(be)])),[[Kr,z.$t("close")]]),V("span",null,Ne(v.value.name),1)])):Tt("",!0),he(Ro)(v.value.name)?(te(),ie(Pt,{key:1},[v.value.viewOriginImage?Tt("",!0):_t((te(),ie("button",{key:0,class:"icon-button",onClick:n},[bX,Be(Fe)])),[[Kr,z.$t("view_origin_image")]]),_t((te(),ie("button",{class:"icon-button",onClick:Ce},[xX,Be(Ue)])),[[Kr,z.$t("zoom_in")]]),_t((te(),ie("button",{class:"icon-button",onClick:de},[wX,Be(dt)])),[[Kr,z.$t("zoom_out")]]),_t((te(),ie("button",{class:"icon-button",onClick:Re},[EX,Be(Gt)])),[[Kr,z.$t("resize")]]),_t((te(),ie("button",{class:"icon-button",onClick:we},[TX,Be(gr)])),[[Kr,z.$t("rotate_left")]]),_t((te(),ie("button",{class:"icon-button",onClick:ke},[kX,Be(ko)])),[[Kr,z.$t("rotate_right")]])],64)):Tt("",!0),_t((te(),ie("button",{class:"icon-button",onClick:oe[0]||(oe[0]=Er=>_.value=!he(_))},[CX,Be(eo)])),[[Kr,z.$t("info")]])])):Tt("",!0),V("section",{class:"content",onClick:Ot(U,["self"])},[he(o).lightbox.sources.length>1&&(t.loop||g.value>0)?(te(),ie("div",{key:0,class:"btn-prev",onClick:Ie},[Be(Ii)])):Tt("",!0),he(o).lightbox.sources.length>1&&(t.loop||g.valuehe(ze)&&he(ze)(...Er)),onMouseup:oe[2]||(oe[2]=(...Er)=>he(J)&&he(J)(...Er)),onMousemove:oe[3]||(oe[3]=(...Er)=>he(We)&&he(We)(...Er)),onTouchstart:oe[4]||(oe[4]=(...Er)=>he(me)&&he(me)(...Er)),onTouchmove:oe[5]||(oe[5]=(...Er)=>he(ve)&&he(ve)(...Er)),onTouchend:oe[6]||(oe[6]=(...Er)=>he($e)&&he($e)(...Er)),onLoad:Y,onError:se,onDblclick:Oe,onDragstart:oe[7]||(oe[7]=Er=>{Er.preventDefault()})},null,40,FX)],4)),[[uo,!y.loading&&!y.loadError]]):Tt("",!0)],8,AX),he(_)?(te(),ie("section",NX,[V("div",zX,[Be(Nr,{id:z.$t("info"),raw:E.value},null,8,["id","raw"]),(iu=v.value)!=null&&iu.data?_t((te(),ie("button",{key:0,class:"icon-button",onClick:Ot(T,["stop"])},[BX,Be($i)],8,qX)),[[Kr,z.$t("delete")]]):Tt("",!0),_t((te(),ie("button",{class:"icon-button",onClick:oe[8]||(oe[8]=Ot(Er=>{var yu,bu;return he(b)(((yu=v.value)==null?void 0:yu.path)??"",he(Bo)(((bu=v.value)==null?void 0:bu.path)??"").replace(" ","-"))},["stop"]))},[UX,Be(Mh)])),[[Kr,z.$t("download")]])]),V("section",VX,[V("div",jX,[V("div",HX,Ne(z.$t("file_size")),1),V("div",WX,[Lo(Ne(he(Id)(((au=v.value)==null?void 0:au.size)??0))+" ",1),(su=(lc=E.value)==null?void 0:lc.data)!=null&&su.width&&((cu=(lu=E.value)==null?void 0:lu.data)!=null&&cu.height)?(te(),ie("span",GX,Ne(ce()),1)):Tt("",!0)])]),(Os=E.value)!=null&&Os.updatedAt?(te(),ie("div",QX,[V("div",KX,Ne(z.$t("updated_at")),1),V("div",YX,[_t((te(),ie("span",null,[Lo(Ne(he(s0)(E.value.updatedAt)),1)])),[[Kr,he(l0)(E.value.updatedAt)]])])])):Tt("",!0),v.value&&(he(Sd)((du=v.value)==null?void 0:du.name)||he(jo)((Ps=v.value)==null?void 0:Ps.name))?(te(),ie("div",ZX,[V("div",XX,Ne(z.$t("duration")),1),V("div",JX,Ne(he(gh)(((fu=(uu=E.value)==null?void 0:uu.data)==null?void 0:fu.duration)??((pu=v.value)==null?void 0:pu.duration))),1)])):Tt("",!0),(hu=v.value)!=null&&hu.type?(te(),ie("div",eJ,[V("div",tJ,[Lo(Ne(z.$t("tags"))+" ",1),_t((te(),ie("button",{class:"icon-button",onClick:Ot(X,["prevent"])},[nJ,Be(Dh)],8,rJ)),[[Kr,z.$t("add_to_tags")]])]),V("div",oJ,[Be(Fh,{tags:(vu=(mu=E.value)==null?void 0:mu.data)==null?void 0:vu.tags},null,8,["tags"])])])):Tt("",!0),(gu=v.value)!=null&&gu.path?(te(),ie("div",iJ,[V("div",aJ,Ne(z.$t("path")),1),V("div",sJ,Ne(he(Kq)(he(a).externalFilesDir,(_u=v.value)==null?void 0:_u.path)),1)])):Tt("",!0)])])):Tt("",!0)])]}),_:1})],32)]),_:1})):Tt("",!0)])}}});const cJ=gn(lJ,[["__scopeId","data-v-271aa27d"]]);function dJ(t,e=[],r=""){return t?"loading":r&&!e.includes(r)?"no_permission":"no_data"}const b3=t=>(_i("data-v-df129d1d"),t=t(),yi(),t),uJ={class:"notifications"},fJ={class:"top-title"},pJ=["onClick"],hJ=b3(()=>V("md-ripple",null,null,-1)),mJ={key:0,class:"alert-warning"},vJ=["onClick"],gJ={class:"items-container"},_J={key:0,class:"list-items"},yJ={class:"title"},bJ=["src"],xJ={class:"view-raw"},wJ={class:"name"},EJ={class:"time nowrap"},TJ={class:"subtitle"},kJ={class:"body"},CJ=["onClick"],AJ=b3(()=>V("md-ripple",null,null,-1)),SJ={key:1,class:"no-data"},IJ=Bt({__name:"Notifications",setup(t){const{resolveClient:e}=nh(),{t:r}=$n(),{app:n,urlTokenKey:o}=ya(ki()),i=Se([]),{loading:a}=ys({handle:(_,b)=>{b?vi(r(b),"error"):_&&(i.value=_.notifications.map(h=>({...h,icon:gl(o.value,"pkgicon://"+h.appId)})))},document:Cv,appApi:!0}),c=Se(Notification.permission),{mutate:d}=jr({document:HZ,appApi:!0}),u=_=>{d({ids:[_.id]})},f=()=>{if(Notification.permission==="denied"){fp(jg,{title:r("desktop_notification_permission_grant_title"),message:r("desktop_notification_permission_grant_message")});return}Notification.requestPermission().then(_=>{c.value=_})},g=()=>{const _=i.value.map(b=>b.id);d({ids:_})};return mn(()=>{mt.on("notification_created",async _=>{const b=e("a");if(es(b.cache,[{..._,__typename:"Notification"}],Cv,null,!0),_.icon=gl(o.value,"pkgicon://"+_.appId),"Notification"in window&&Notification.permission==="granted"){const h=new Notification(_.title,{body:_.body,icon:_.icon});h.onclick=()=>{window.focus(),h.close()}}}),mt.on("notification_updated",async _=>{const h=e("a").cache;if(h.evict({id:h.identify({__typename:"Notification",id:_.id})}),es(h,[{..._,__typename:"Notification"}],Cv,null,!0),_.icon=gl(o.value,"pkgicon://"+_.appId),"Notification"in window&&Notification.permission==="granted"){const m=new Notification(_.title,{body:_.body,icon:_.icon});m.onclick=()=>{window.focus(),m.close()}}}),mt.on("notification_deleted",async _=>{const h=e("a").cache;h.evict({id:h.identify({__typename:"Notification",id:_.id})})})}),(_,b)=>{const h=Yb,m=i0,y=Hd,v=ws("tooltip");return te(),ie("div",uJ,[V("div",fJ,[Lo(Ne(_.$t("header_actions.notifications"))+" ("+Ne(i.value.length)+") ",1),i.value.length?_t((te(),ie("button",{key:0,class:"icon-button",onClick:Ot(g,["prevent"])},[hJ,Be(h)],8,pJ)),[[v,_.$t("clear_list")]]):Tt("",!0)]),c.value!=="granted"?(te(),ie("div",mJ,[Lo(Ne(_.$t("desktop_notification_permission_not_granted"))+" ",1),V("md-filled-button",{class:"btn-sm",onClick:Ot(f,["stop"])},Ne(_.$t("grant_permission")),9,vJ)])):Tt("",!0),V("div",gJ,[i.value.length?(te(),ie("section",_J,[(te(!0),ie(Pt,null,wo(i.value,x=>(te(),ie("div",{class:"item",key:x.id},[V("div",yJ,[Be(m,null,{content:go(()=>[V("pre",xJ,Ne(x),1)]),default:go(()=>[V("img",{width:"20",height:"20",src:x.icon},null,8,bJ)]),_:2},1024),V("span",wJ,Ne(x.appName),1),_t((te(),ie("span",EJ,[Lo(Ne(he(s0)(x.time)),1)])),[[v,he(l0)(x.time)]])]),V("div",TJ,Ne(x.title),1),V("div",kJ,Ne(x.body),1),V("button",{class:"icon-button icon",onClick:Ot(E=>u(x),["stop"])},[AJ,Be(y)],8,CJ)]))),128))])):(te(),ie("span",SJ,Ne(_.$t(he(dJ)(he(a),he(n).permissions,"NOTIFICATION_LISTENER"))),1))])])}}});const $J=gn(IJ,[["__scopeId","data-v-df129d1d"]]);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -1308,7 +1308,7 @@ function print() { __p += __j.call(arguments, '') } * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause -*/const PJ=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}},RJ=(t,e,r)=>{e.constructor.createProperty(r,t)};function Q(t){return(e,r)=>r!==void 0?RJ(t,e,r):PJ(t,e)}/** +*/const OJ=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}},PJ=(t,e,r)=>{e.constructor.createProperty(r,t)};function Q(t){return(e,r)=>r!==void 0?PJ(t,e,r):OJ(t,e)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -1324,41 +1324,41 @@ function print() { __p += __j.call(arguments, '') } * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause -*/function LJ(t){return Wd({descriptor:e=>({get(){var r,n;return(n=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelectorAll(t))!==null&&n!==void 0?n:[]},enumerable:!0,configurable:!0})})}/** +*/function RJ(t){return Wd({descriptor:e=>({get(){var r,n;return(n=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelectorAll(t))!==null&&n!==void 0?n:[]},enumerable:!0,configurable:!0})})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause -*/function w3(t){return Wd({descriptor:e=>({async get(){var r;return await this.updateComplete,(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(t)},enumerable:!0,configurable:!0})})}/** +*/function x3(t){return Wd({descriptor:e=>({async get(){var r;return await this.updateComplete,(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(t)},enumerable:!0,configurable:!0})})}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause -*/var Av;const MJ=((Av=window.HTMLSlotElement)===null||Av===void 0?void 0:Av.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);function Gr(t){const{slot:e,selector:r}=t??{};return Wd({descriptor:n=>({get(){var o;const i="slot"+(e?`[name=${e}]`:":not([name])"),a=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(i),c=a!=null?MJ(a,t):[];return r?c.filter(d=>d.matches(r)):c},enumerable:!0,configurable:!0})})}/** +*/var Av;const LJ=((Av=window.HTMLSlotElement)===null||Av===void 0?void 0:Av.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);function Gr(t){const{slot:e,selector:r}=t??{};return Wd({descriptor:n=>({get(){var o;const i="slot"+(e?`[name=${e}]`:":not([name])"),a=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(i),c=a!=null?LJ(a,t):[];return r?c.filter(d=>d.matches(r)):c},enumerable:!0,configurable:!0})})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause -*/function DJ(t,e,r){let n,o=t;return typeof t=="object"?(o=t.slot,n=t):n={flatten:e},r?Gr({slot:o,flatten:e,selector:r}):Wd({descriptor:i=>({get(){var a,c;const d="slot"+(o?`[name=${o}]`:":not([name])"),u=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(d);return(c=u==null?void 0:u.assignedNodes(n))!==null&&c!==void 0?c:[]},enumerable:!0,configurable:!0})})}/** +*/function MJ(t,e,r){let n,o=t;return typeof t=="object"?(o=t.slot,n=t):n={flatten:e},r?Gr({slot:o,flatten:e,selector:r}):Wd({descriptor:i=>({get(){var a,c;const d="slot"+(o?`[name=${o}]`:":not([name])"),u=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(d);return(c=u==null?void 0:u.assignedNodes(n))!==null&&c!==void 0?c:[]},enumerable:!0,configurable:!0})})}/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause -*/const Gf=window,u0=Gf.ShadowRoot&&(Gf.ShadyCSS===void 0||Gf.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f0=Symbol(),UE=new WeakMap;let E3=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==f0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(u0&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=UE.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&UE.set(r,e))}return e}toString(){return this.cssText}};const FJ=t=>new E3(typeof t=="string"?t:t+"",void 0,f0),Ve=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((n,o,i)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1],t[0]);return new E3(r,t,f0)},NJ=(t,e)=>{u0?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const n=document.createElement("style"),o=Gf.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)})},VE=u0?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return FJ(r)})(t):t;/** +*/const Gf=window,u0=Gf.ShadowRoot&&(Gf.ShadyCSS===void 0||Gf.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f0=Symbol(),UE=new WeakMap;let w3=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==f0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(u0&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=UE.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&UE.set(r,e))}return e}toString(){return this.cssText}};const DJ=t=>new w3(typeof t=="string"?t:t+"",void 0,f0),Ve=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((n,o,i)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1],t[0]);return new w3(r,t,f0)},FJ=(t,e)=>{u0?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const n=document.createElement("style"),o=Gf.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)})},VE=u0?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return DJ(r)})(t):t;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause -*/var Sv;const Tp=window,jE=Tp.trustedTypes,zJ=jE?jE.emptyScript:"",HE=Tp.reactiveElementPolyfillSupport,s_={toAttribute(t,e){switch(e){case Boolean:t=t?zJ:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},T3=(t,e)=>e!==t&&(e==e||t==t),Iv={attribute:!0,type:String,converter:s_,reflect:!1,hasChanged:T3},l_="finalized";let il=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,n)=>{const o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),e.push(o))}),e}static createProperty(e,r=Iv){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,n,r);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,r,n){return{get(){return this[r]},set(o){const i=this[e];this[r]=o,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Iv}static finalize(){if(this.hasOwnProperty(l_))return!1;this[l_]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const o of n)r.unshift(VE(o))}else e!==void 0&&r.push(VE(e));return r}static _$Ep(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return NJ(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r,n=Iv){var o;const i=this.constructor._$Ep(e,n);if(i!==void 0&&n.reflect===!0){const a=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:s_).toAttribute(r,n.type);this._$El=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(e,r){var n;const o=this.constructor,i=o._$Ev.get(e);if(i!==void 0&&this._$El!==i){const a=o.getPropertyOptions(i),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:s_;this._$El=i,this[i]=c.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,n){let o=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||T3)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1;const n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};il[l_]=!0,il.elementProperties=new Map,il.elementStyles=[],il.shadowRootOptions={mode:"open"},HE==null||HE({ReactiveElement:il}),((Sv=Tp.reactiveElementVersions)!==null&&Sv!==void 0?Sv:Tp.reactiveElementVersions=[]).push("1.6.3");/** +*/var Sv;const Tp=window,jE=Tp.trustedTypes,NJ=jE?jE.emptyScript:"",HE=Tp.reactiveElementPolyfillSupport,s_={toAttribute(t,e){switch(e){case Boolean:t=t?NJ:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},E3=(t,e)=>e!==t&&(e==e||t==t),Iv={attribute:!0,type:String,converter:s_,reflect:!1,hasChanged:E3},l_="finalized";let il=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,n)=>{const o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),e.push(o))}),e}static createProperty(e,r=Iv){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,n,r);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,r,n){return{get(){return this[r]},set(o){const i=this[e];this[r]=o,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Iv}static finalize(){if(this.hasOwnProperty(l_))return!1;this[l_]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const o of n)r.unshift(VE(o))}else e!==void 0&&r.push(VE(e));return r}static _$Ep(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return FJ(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r,n=Iv){var o;const i=this.constructor._$Ep(e,n);if(i!==void 0&&n.reflect===!0){const a=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:s_).toAttribute(r,n.type);this._$El=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(e,r){var n;const o=this.constructor,i=o._$Ev.get(e);if(i!==void 0&&this._$El!==i){const a=o.getPropertyOptions(i),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:s_;this._$El=i,this[i]=c.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,n){let o=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||E3)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1;const n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};il[l_]=!0,il.elementProperties=new Map,il.elementStyles=[],il.shadowRootOptions={mode:"open"},HE==null||HE({ReactiveElement:il}),((Sv=Tp.reactiveElementVersions)!==null&&Sv!==void 0?Sv:Tp.reactiveElementVersions=[]).push("1.6.3");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause -*/var $v;const kp=window,Fl=kp.trustedTypes,WE=Fl?Fl.createPolicy("lit-html",{createHTML:t=>t}):void 0,c_="$lit$",ea=`lit$${(Math.random()+"").slice(9)}$`,k3="?"+ea,qJ=`<${k3}>`,bs=document,$d=()=>bs.createComment(""),Od=t=>t===null||typeof t!="object"&&typeof t!="function",C3=Array.isArray,BJ=t=>C3(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Ov=`[ +*/var $v;const kp=window,Fl=kp.trustedTypes,WE=Fl?Fl.createPolicy("lit-html",{createHTML:t=>t}):void 0,c_="$lit$",ea=`lit$${(Math.random()+"").slice(9)}$`,T3="?"+ea,zJ=`<${T3}>`,bs=document,$d=()=>bs.createComment(""),Od=t=>t===null||typeof t!="object"&&typeof t!="function",k3=Array.isArray,qJ=t=>k3(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Ov=`[ \f\r]`,Mc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,GE=/-->/g,QE=/>/g,Ua=RegExp(`>|${Ov}(?:([^\\s"'>=/]+)(${Ov}*=${Ov}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),KE=/'/g,YE=/"/g,A3=/^(?:script|style|textarea|title)$/i,UJ=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_e=UJ(1),jn=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),ZE=new WeakMap,ts=bs.createTreeWalker(bs,129,null,!1);function S3(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return WE!==void 0?WE.createHTML(e):e}const VJ=(t,e)=>{const r=t.length-1,n=[];let o,i=e===2?"":"",a=Mc;for(let c=0;c"?(a=o??Mc,g=-1):f[1]===void 0?g=-2:(g=a.lastIndex-f[2].length,u=f[1],a=f[3]===void 0?Ua:f[3]==='"'?YE:KE):a===YE||a===KE?a=Ua:a===GE||a===QE?a=Mc:(a=Ua,o=void 0);const b=a===Ua&&t[c+1].startsWith("/>")?" ":"";i+=a===Mc?d+qJ:g>=0?(n.push(u),d.slice(0,g)+c_+d.slice(g)+ea+b):d+ea+(g===-2?(n.push(void 0),c):b)}return[S3(t,i+(t[r]||"")+(e===2?"":"")),n]};class Pd{constructor({strings:e,_$litType$:r},n){let o;this.parts=[];let i=0,a=0;const c=e.length-1,d=this.parts,[u,f]=VJ(e,r);if(this.el=Pd.createElement(u,n),ts.currentNode=this.el.content,r===2){const g=this.el.content,_=g.firstChild;_.remove(),g.append(..._.childNodes)}for(;(o=ts.nextNode())!==null&&d.length0){o.textContent=Fl?Fl.emptyScript:"";for(let b=0;b<_;b++)o.append(g[b],$d()),ts.nextNode(),d.push({type:2,index:++i});o.append(g[_],$d())}}}else if(o.nodeType===8)if(o.data===k3)d.push({type:2,index:i});else{let g=-1;for(;(g=o.data.indexOf(ea,g+1))!==-1;)d.push({type:7,index:i}),g+=ea.length-1}i++}}static createElement(e,r){const n=bs.createElement("template");return n.innerHTML=e,n}}function Nl(t,e,r=t,n){var o,i,a,c;if(e===jn)return e;let d=n!==void 0?(o=r._$Co)===null||o===void 0?void 0:o[n]:r._$Cl;const u=Od(e)?void 0:e._$litDirective$;return(d==null?void 0:d.constructor)!==u&&((i=d==null?void 0:d._$AO)===null||i===void 0||i.call(d,!1),u===void 0?d=void 0:(d=new u(t),d._$AT(t,r,n)),n!==void 0?((a=(c=r)._$Co)!==null&&a!==void 0?a:c._$Co=[])[n]=d:r._$Cl=d),d!==void 0&&(e=Nl(t,d._$AS(t,e.values),d,n)),e}class jJ{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var r;const{el:{content:n},parts:o}=this._$AD,i=((r=e==null?void 0:e.creationScope)!==null&&r!==void 0?r:bs).importNode(n,!0);ts.currentNode=i;let a=ts.nextNode(),c=0,d=0,u=o[0];for(;u!==void 0;){if(c===u.index){let f;u.type===2?f=new Gd(a,a.nextSibling,this,e):u.type===1?f=new u.ctor(a,u.name,u.strings,this,e):u.type===6&&(f=new KJ(a,this,e)),this._$AV.push(f),u=o[++d]}c!==(u==null?void 0:u.index)&&(a=ts.nextNode(),c++)}return ts.currentNode=bs,i}v(e){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}}class Gd{constructor(e,r,n,o){var i;this.type=2,this._$AH=ge,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=o,this._$Cp=(i=o==null?void 0:o.isConnected)===null||i===void 0||i}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Nl(this,e,r),Od(e)?e===ge||e==null||e===""?(this._$AH!==ge&&this._$AR(),this._$AH=ge):e!==this._$AH&&e!==jn&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):BJ(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ge&&Od(this._$AH)?this._$AA.nextSibling.data=e:this.$(bs.createTextNode(e)),this._$AH=e}g(e){var r;const{values:n,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Pd.createElement(S3(o.h,o.h[0]),this.options)),o);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===i)this._$AH.v(n);else{const a=new jJ(i,this),c=a.u(this.options);a.v(n),this.$(c),this._$AH=a}}_$AC(e){let r=ZE.get(e.strings);return r===void 0&&ZE.set(e.strings,r=new Pd(e)),r}T(e){C3(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,o=0;for(const i of e)o===r.length?r.push(n=new Gd(this.k($d()),this.k($d()),this,this.options)):n=r[o],n._$AI(i),o++;o2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ge}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,n,o){const i=this.strings;let a=!1;if(i===void 0)e=Nl(this,e,r,0),a=!Od(e)||e!==this._$AH&&e!==jn,a&&(this._$AH=e);else{const c=e;let d,u;for(e=i[0],d=0;d{var n,o;const i=(n=r==null?void 0:r.renderBefore)!==null&&n!==void 0?n:e;let a=i._$litPart$;if(a===void 0){const c=(o=r==null?void 0:r.renderBefore)!==null&&o!==void 0?o:null;i._$litPart$=a=new Gd(e.insertBefore($d(),c),c,void 0,r??{})}return a._$AI(t),a};/** +\f\r"'\`<>=]|("|')|))|$)`,"g"),KE=/'/g,YE=/"/g,C3=/^(?:script|style|textarea|title)$/i,BJ=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_e=BJ(1),jn=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),ZE=new WeakMap,ts=bs.createTreeWalker(bs,129,null,!1);function A3(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return WE!==void 0?WE.createHTML(e):e}const UJ=(t,e)=>{const r=t.length-1,n=[];let o,i=e===2?"":"",a=Mc;for(let c=0;c"?(a=o??Mc,g=-1):f[1]===void 0?g=-2:(g=a.lastIndex-f[2].length,u=f[1],a=f[3]===void 0?Ua:f[3]==='"'?YE:KE):a===YE||a===KE?a=Ua:a===GE||a===QE?a=Mc:(a=Ua,o=void 0);const b=a===Ua&&t[c+1].startsWith("/>")?" ":"";i+=a===Mc?d+zJ:g>=0?(n.push(u),d.slice(0,g)+c_+d.slice(g)+ea+b):d+ea+(g===-2?(n.push(void 0),c):b)}return[A3(t,i+(t[r]||"")+(e===2?"":"")),n]};class Pd{constructor({strings:e,_$litType$:r},n){let o;this.parts=[];let i=0,a=0;const c=e.length-1,d=this.parts,[u,f]=UJ(e,r);if(this.el=Pd.createElement(u,n),ts.currentNode=this.el.content,r===2){const g=this.el.content,_=g.firstChild;_.remove(),g.append(..._.childNodes)}for(;(o=ts.nextNode())!==null&&d.length0){o.textContent=Fl?Fl.emptyScript:"";for(let b=0;b<_;b++)o.append(g[b],$d()),ts.nextNode(),d.push({type:2,index:++i});o.append(g[_],$d())}}}else if(o.nodeType===8)if(o.data===T3)d.push({type:2,index:i});else{let g=-1;for(;(g=o.data.indexOf(ea,g+1))!==-1;)d.push({type:7,index:i}),g+=ea.length-1}i++}}static createElement(e,r){const n=bs.createElement("template");return n.innerHTML=e,n}}function Nl(t,e,r=t,n){var o,i,a,c;if(e===jn)return e;let d=n!==void 0?(o=r._$Co)===null||o===void 0?void 0:o[n]:r._$Cl;const u=Od(e)?void 0:e._$litDirective$;return(d==null?void 0:d.constructor)!==u&&((i=d==null?void 0:d._$AO)===null||i===void 0||i.call(d,!1),u===void 0?d=void 0:(d=new u(t),d._$AT(t,r,n)),n!==void 0?((a=(c=r)._$Co)!==null&&a!==void 0?a:c._$Co=[])[n]=d:r._$Cl=d),d!==void 0&&(e=Nl(t,d._$AS(t,e.values),d,n)),e}class VJ{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var r;const{el:{content:n},parts:o}=this._$AD,i=((r=e==null?void 0:e.creationScope)!==null&&r!==void 0?r:bs).importNode(n,!0);ts.currentNode=i;let a=ts.nextNode(),c=0,d=0,u=o[0];for(;u!==void 0;){if(c===u.index){let f;u.type===2?f=new Gd(a,a.nextSibling,this,e):u.type===1?f=new u.ctor(a,u.name,u.strings,this,e):u.type===6&&(f=new QJ(a,this,e)),this._$AV.push(f),u=o[++d]}c!==(u==null?void 0:u.index)&&(a=ts.nextNode(),c++)}return ts.currentNode=bs,i}v(e){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}}class Gd{constructor(e,r,n,o){var i;this.type=2,this._$AH=ge,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=o,this._$Cp=(i=o==null?void 0:o.isConnected)===null||i===void 0||i}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Nl(this,e,r),Od(e)?e===ge||e==null||e===""?(this._$AH!==ge&&this._$AR(),this._$AH=ge):e!==this._$AH&&e!==jn&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):qJ(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ge&&Od(this._$AH)?this._$AA.nextSibling.data=e:this.$(bs.createTextNode(e)),this._$AH=e}g(e){var r;const{values:n,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Pd.createElement(A3(o.h,o.h[0]),this.options)),o);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===i)this._$AH.v(n);else{const a=new VJ(i,this),c=a.u(this.options);a.v(n),this.$(c),this._$AH=a}}_$AC(e){let r=ZE.get(e.strings);return r===void 0&&ZE.set(e.strings,r=new Pd(e)),r}T(e){k3(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,o=0;for(const i of e)o===r.length?r.push(n=new Gd(this.k($d()),this.k($d()),this,this.options)):n=r[o],n._$AI(i),o++;o2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ge}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,n,o){const i=this.strings;let a=!1;if(i===void 0)e=Nl(this,e,r,0),a=!Od(e)||e!==this._$AH&&e!==jn,a&&(this._$AH=e);else{const c=e;let d,u;for(e=i[0],d=0;d{var n,o;const i=(n=r==null?void 0:r.renderBefore)!==null&&n!==void 0?n:e;let a=i._$litPart$;if(a===void 0){const c=(o=r==null?void 0:r.renderBefore)!==null&&o!==void 0?o:null;i._$litPart$=a=new Gd(e.insertBefore($d(),c),c,void 0,r??{})}return a._$AI(t),a};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause -*/var Pv,Rv;let lt=class extends il{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const n=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=n.firstChild),n}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=I3(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return jn}};lt.finalized=!0,lt._$litElement$=!0,(Pv=globalThis.litElementHydrateSupport)===null||Pv===void 0||Pv.call(globalThis,{LitElement:lt});const JE=globalThis.litElementPolyfillSupport;JE==null||JE({LitElement:lt});((Rv=globalThis.litElementVersions)!==null&&Rv!==void 0?Rv:globalThis.litElementVersions=[]).push("3.3.3");/** +*/var Pv,Rv;let lt=class extends il{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const n=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=n.firstChild),n}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=S3(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return jn}};lt.finalized=!0,lt._$litElement$=!0,(Pv=globalThis.litElementHydrateSupport)===null||Pv===void 0||Pv.call(globalThis,{LitElement:lt});const JE=globalThis.litElementPolyfillSupport;JE==null||JE({LitElement:lt});((Rv=globalThis.litElementVersions)!==null&&Rv!==void 0?Rv:globalThis.litElementVersions=[]).push("3.3.3");/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: BSD-3-Clause -*/const YJ=!1;/** +*/const KJ=!1;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -1370,26 +1370,26 @@ function print() { __p += __j.call(arguments, '') } * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class $3 extends lt{constructor(){super(...arguments),this.value=""}render(){const e={"md3-badge--large":this.value};return _e`
+*/class I3 extends lt{constructor(){super(...arguments),this.value=""}render(){const e={"md3-badge--large":this.value};return _e`

${this.value}

-
`}}P([Q()],$3.prototype,"value",void 0);/** +
`}}P([Q()],I3.prototype,"value",void 0);/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const ZJ=Ve`:host{--_color: var(--md-badge-color, var(--md-sys-color-error, #b3261e));--_large-color: var(--md-badge-large-color, var(--md-sys-color-error, #b3261e));--_large-label-text-color: var(--md-badge-large-label-text-color, var(--md-sys-color-on-error, #fff));--_large-label-text-font: var(--md-badge-large-label-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));--_large-label-text-line-height: var(--md-badge-large-label-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));--_large-label-text-size: var(--md-badge-large-label-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));--_large-label-text-weight: var(--md-badge-large-label-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-shape: var(--md-badge-large-shape, 9999px);--_large-size: var(--md-badge-large-size, 16px);--_shape: var(--md-badge-shape, 9999px);--_size: var(--md-badge-size, 6px)}.md3-badge{inset-inline-start:50%;margin-inline-start:6px;margin-block-start:4px;position:absolute;inset-block-start:0px;background-color:var(--_color);border-radius:var(--_shape);height:var(--_size)}.md3-badge:not(.md3-badge--large){width:var(--_size)}.md3-badge.md3-badge--large{display:flex;flex-direction:column;justify-content:center;margin-inline-start:2px;margin-block-start:1px;background-color:var(--_large-color);border-radius:var(--_large-shape);height:var(--_large-size);min-width:var(--_large-size);color:var(--_large-label-text-color)}.md3-badge.md3-badge--large .md3-badge__value{padding:0px 4px;text-align:center}.md3-badge__value{font-family:var(--_large-label-text-font);font-size:var(--_large-label-text-size);line-height:var(--_large-label-text-line-height);font-weight:var(--_large-label-text-weight)}/*# sourceMappingURL=badge-styles.css.map */ +*/const YJ=Ve`:host{--_color: var(--md-badge-color, var(--md-sys-color-error, #b3261e));--_large-color: var(--md-badge-large-color, var(--md-sys-color-error, #b3261e));--_large-label-text-color: var(--md-badge-large-label-text-color, var(--md-sys-color-on-error, #fff));--_large-label-text-font: var(--md-badge-large-label-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));--_large-label-text-line-height: var(--md-badge-large-label-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));--_large-label-text-size: var(--md-badge-large-label-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));--_large-label-text-weight: var(--md-badge-large-label-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-shape: var(--md-badge-large-shape, 9999px);--_large-size: var(--md-badge-large-size, 16px);--_shape: var(--md-badge-shape, 9999px);--_size: var(--md-badge-size, 6px)}.md3-badge{inset-inline-start:50%;margin-inline-start:6px;margin-block-start:4px;position:absolute;inset-block-start:0px;background-color:var(--_color);border-radius:var(--_shape);height:var(--_size)}.md3-badge:not(.md3-badge--large){width:var(--_size)}.md3-badge.md3-badge--large{display:flex;flex-direction:column;justify-content:center;margin-inline-start:2px;margin-block-start:1px;background-color:var(--_large-color);border-radius:var(--_large-shape);height:var(--_large-size);min-width:var(--_large-size);color:var(--_large-label-text-color)}.md3-badge.md3-badge--large .md3-badge__value{padding:0px 4px;text-align:center}.md3-badge__value{font-family:var(--_large-label-text-font);font-size:var(--_large-label-text-size);line-height:var(--_large-label-text-line-height);font-weight:var(--_large-label-text-weight)}/*# sourceMappingURL=badge-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let d_=class extends $3{};d_.styles=[ZJ];d_=P([rt("md-badge")],d_);const XJ=t=>(_i("data-v-568572c5"),t=t(),yi(),t),JJ={class:"tasks"},eee={class:"list-items"},tee={class:"title"},ree={class:"subtitle"},nee={key:0,class:"body"},oee=["onClick"],iee=XJ(()=>V("md-ripple",null,null,-1)),aee={key:0,class:"no-data"},see=Bt({__name:"TaskList",setup(t){const e=ki(),r=Bd(),n=St(()=>e.uploads.reverse());function o(i){var a;e.uploads.splice(e.uploads.indexOf(i),1),i.status==="pending"&&(i.status="canceled",(a=i.xhr)==null||a.abort())}return Vt(()=>e.uploads,async i=>{r.quick="task";const a=BA(i.filter(c=>c.status==="created"),5);for(const c of a)await Promise.all(c.map(async d=>{d.status="pending",await ZC(d,!0),mt.emit("upload_task_done",d)}))}),(i,a)=>{const c=Hd;return te(),ie("div",JJ,[V("section",eee,[(te(!0),ie(Pt,null,wo(n.value,d=>(te(),ie("div",{class:"item",key:d.file.name+d.file.size},[V("div",tee,Ne(d.file.name),1),V("div",ree," ["+Ne(i.$t(`upload_status.${d.status}`))+"] "+Ne(he(Id)(d.uploadedSize))+"("+Ne(d.uploadedSize)+") / "+Ne(he(Id)(d.file.size)),1),d.error?(te(),ie("div",nee,Ne(d.error),1)):Tt("",!0),V("button",{class:"icon-button icon",onClick:Ot(u=>o(d),["stop"])},[iee,Be(c)],8,oee)]))),128))]),n.value.length?Tt("",!0):(te(),ie("span",aee,Ne(i.$t("no_task")),1))])}}});const lee=gn(see,[["__scopeId","data-v-568572c5"]]),cee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},dee=V("path",{fill:"currentColor",d:"M17.5 18q-.425 0-.713-.288T16.5 17V7q0-.425.288-.713T17.5 6q.425 0 .713.288T18.5 7v10q0 .425-.288.713T17.5 18ZM7.05 16.975q-.5.35-1.025.05t-.525-.9v-8.25q0-.6.525-.9t1.025.05l6.2 4.15q.45.3.45.825t-.45.825l-6.2 4.15ZM7.5 12Zm0 2.25L10.9 12L7.5 9.75v4.5Z"},null,-1),uee=[dee];function fee(t,e){return te(),ie("svg",cee,uee)}const pee={name:"material-symbols-skip-next-outline-rounded",render:fee},hee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},mee=V("path",{fill:"currentColor",d:"M11.5 10.5h-.775q-.3 0-.513-.213T10 9.75q0-.325.213-.537T10.75 9h1.5q.325 0 .537.213T13 9.75v4.525q0 .3-.213.513T12.25 15q-.325 0-.537-.213t-.213-.537V10.5ZM17 17v-3q0-.425.288-.713T18 13q.425 0 .713.275t.287.7V18q0 .425-.288.713T18 19H6.85l.825.825q.3.3.313.725t-.288.725q-.3.3-.713.3T6.3 21.3l-2.6-2.6q-.275-.275-.275-.7t.275-.7l2.575-2.575q.3-.3.713-.3t.712.3q.3.3.3.713t-.3.712l-.85.85H17ZM7 7v3q0 .425-.288.713T6 11q-.425 0-.713-.275t-.287-.7V6q0-.425.288-.713T6 5h11.15l-.825-.825q-.3-.3-.313-.725t.288-.725q.3-.3.713-.3t.687.275l2.6 2.6q.275.275.275.7t-.275.7l-2.575 2.575q-.3.3-.713.3t-.712-.3q-.3-.3-.3-.713t.3-.712l.85-.85H7Z"},null,-1),vee=[mee];function gee(t,e){return te(),ie("svg",hee,vee)}const _ee={name:"material-symbols-repeat-one-rounded",render:gee},yee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},bee=V("path",{fill:"currentColor",d:"M17 17v-3q0-.425.288-.713T18 13q.425 0 .713.275t.287.7V18q0 .425-.288.713T18 19H6.85l.825.825q.3.3.313.725t-.288.725q-.3.3-.713.3T6.3 21.3l-2.6-2.6q-.275-.275-.275-.7t.275-.7l2.575-2.575q.3-.3.713-.3t.712.3q.3.3.3.713t-.3.712l-.85.85H17ZM7 7v3q0 .425-.288.713T6 11q-.425 0-.713-.275t-.287-.7V6q0-.425.288-.713T6 5h11.15l-.825-.825q-.3-.3-.313-.725t.288-.725q.3-.3.713-.3t.687.275l2.6 2.6q.275.275.275.7t-.275.7l-2.575 2.575q-.3.3-.713.3t-.712-.3q-.3-.3-.3-.713t.3-.712l.85-.85H7Z"},null,-1),xee=[bee];function wee(t,e){return te(),ie("svg",yee,xee)}const Eee={name:"material-symbols-repeat-rounded",render:wee},Tee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},kee=V("path",{fill:"currentColor",d:"M9.175 10.575L4.7 6.1q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.475 4.475l-1.4 1.4ZM15 20q-.425 0-.713-.288T14 19q0-.425.288-.713T15 18h1.6l-3.175-3.175L14.85 13.4L18 16.55V15q0-.425.288-.713T19 14q.425 0 .713.288T20 15v4q0 .425-.288.713T19 20h-4Zm-10.3-.7q-.275-.275-.275-.7t.275-.7L16.6 6H15q-.425 0-.712-.287T14 5q0-.425.288-.713T15 4h4q.425 0 .713.288T20 5v4q0 .425-.288.713T19 10q-.425 0-.713-.288T18 9V7.4L6.1 19.3q-.275.275-.7.275t-.7-.275Z"},null,-1),Cee=[kee];function Aee(t,e){return te(),ie("svg",Tee,Cee)}const See={name:"material-symbols-shuffle-outline-rounded",render:Aee},Iee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},$ee=V("path",{fill:"currentColor",d:"M6.5 18q-.425 0-.713-.288T5.5 17V7q0-.425.288-.713T6.5 6q.425 0 .713.288T7.5 7v10q0 .425-.288.713T6.5 18Zm10.45-1.025l-6.2-4.15q-.45-.3-.45-.825t.45-.825l6.2-4.15q.5-.35 1.025-.05t.525.9v8.25q0 .6-.525.9t-1.025-.05ZM16.5 12Zm0 2.25v-4.5L13.1 12l3.4 2.25Z"},null,-1),Oee=[$ee];function Pee(t,e){return te(),ie("svg",Iee,Oee)}const Ree={name:"material-symbols-skip-previous-outline-rounded",render:Pee},Zl=t=>(_i("data-v-137f137c"),t=t(),yi(),t),Lee={class:"audio-player"},Mee={key:0,class:"play-title"},Dee=["src"],Fee={key:1,class:"buttons"},Nee=["onClick"],zee=Zl(()=>V("md-ripple",null,null,-1)),qee=["onClick"],Bee=Zl(()=>V("md-ripple",null,null,-1)),Uee=["onClick"],Vee=Zl(()=>V("md-ripple",null,null,-1)),jee={key:0,indeterminate:"",class:"spinner-sm"},Hee=Zl(()=>V("md-ripple",null,null,-1)),Wee={class:"list-items"},Gee=["onClick"],Qee=Zl(()=>V("md-ripple",null,null,-1)),Kee={class:"title"},Yee={class:"subtitle"},Zee=["onClick"],Xee=Zl(()=>V("md-ripple",null,null,-1)),Jee=Bt({__name:"AudioPlayer",setup(t){const{app:e,urlTokenKey:r,audioPlaying:n}=ya(ki()),o=St(()=>e.value.audios??[]),i=Se(),a=Se("");async function c(){const{audioCurrent:Ce}=e.value;a.value=gl(r.value,Ce),i.value=o.value.find(de=>de.path==Ce)}c(),Vt(()=>e.value.audioCurrent,c);const{mutate:d,loading:u,onDone:f,onError:g}=jr({document:BZ,appApi:!0}),{mutate:_,loading:b,onDone:h,onError:m}=jr({document:jZ,appApi:!0});h(()=>{e.value={...e.value,audioCurrent:"",audios:[]}});const{mutate:y,loading:v,onDone:x,onError:E}=jr({document:UZ,appApi:!0}),{mutate:T,loading:C,onDone:A,onError:L}=jr({document:VZ,appApi:!0}),R=Se();async function D(){var de;if(o.value.length===0)return;const Ce=e.value.audioMode;Ce==="REPEAT"?Le():Ce==="REPEAT_ONE"?(de=R.value)==null||de.play():q()}function q(){const Ce=gQ(e.value.audios);d({path:Ce.path}),e.value={...e.value,audioCurrent:Ce.path}}function H(){o.value.length!==0&&(e.value.audioMode==="SHUFFLE"?q():U())}function U(){const Ce=o.value.findIndex(we=>{var ke;return we.path===((ke=i.value)==null?void 0:ke.path)});let de;Ce<=0?de=o.value[o.value.length-1]:de=o.value[Ce-1],d({path:de.path}),e.value={...e.value,audioCurrent:de.path}}function ce(){o.value.length!==0&&(e.value.audioMode==="SHUFFLE"?q():Le())}function Ae(){var Ce;(Ce=R.value)==null||Ce.play()}function Le(){const Ce=o.value.findIndex(we=>{var ke;return we.path===((ke=i.value)==null?void 0:ke.path)});let de;Ce+1>=o.value.length?de=o.value[0]:de=o.value[Ce+1],d({path:de.path}),e.value={...e.value,audioCurrent:de.path}}function Te(){let Ce=e.value.audioMode;Ce==="REPEAT"?Ce="REPEAT_ONE":Ce==="REPEAT_ONE"?Ce="SHUFFLE":Ce="REPEAT",y({mode:Ce}),e.value={...e.value,audioMode:Ce}}function Ie(Ce){d({path:Ce.path}),e.value={...e.value,audioCurrent:Ce.path}}f(()=>{Ae()});function Pe(Ce){T({path:Ce.path});const de=[...e.value.audios];gs(de,we=>we.path===Ce.path),e.value={...e.value,audios:de}}return mn(()=>{var Ce,de;mt.on("do_play_audio",()=>{setTimeout(Ae,500)}),mt.on("pause_audio",()=>{var we;(we=R.value)==null||we.pause()}),(Ce=R.value)==null||Ce.addEventListener("pause",function(){n.value=!1}),(de=R.value)==null||de.addEventListener("play",function(){n.value=!0})}),(Ce,de)=>{var ve,$e;const we=Ree,ke=See,Re=Eee,He=_ee,ze=pee,We=Yb,J=Hd,me=ws("tooltip");return te(),ie("div",Lee,[i.value?(te(),ie("div",Mee,Ne(i.value.title),1)):Tt("",!0),V("audio",{ref_key:"audioRef",ref:R,class:"audio",controls:"",src:a.value,onEnded:D},null,40,Dee),o.value.length?(te(),ie("div",Fee,[V("button",{class:"icon-button",onClick:Ot(H,["stop"])},[zee,Be(we)],8,Nee),V("button",{class:"icon-button mode",onClick:Ot(Te,["stop"])},[Bee,((ve=he(e))==null?void 0:ve.audioMode)==="SHUFFLE"?(te(),Hr(ke,{key:0})):(($e=he(e))==null?void 0:$e.audioMode)==="REPEAT"?(te(),Hr(Re,{key:1})):(te(),Hr(He,{key:2}))],8,qee),V("button",{class:"icon-button",onClick:Ot(ce,["stop"])},[Vee,Be(ze)],8,Uee),he(b)?(te(),ie("md-circular-progress",jee)):_t((te(),ie("button",{key:1,class:"icon-button",onClick:de[0]||(de[0]=Ot((...Oe)=>he(_)&&he(_)(...Oe),["prevent"]))},[Hee,Be(We)])),[[me,Ce.$t("clear_list")]])])):Tt("",!0),V("section",Wee,[(te(!0),ie(Pt,null,wo(o.value,Oe=>{var M;return te(),ie("div",{class:Vn(["item",{selected:Oe.path===((M=i.value)==null?void 0:M.path)}]),key:Oe.path,onClick:Ot(k=>Ie(Oe),["stop"])},[Qee,V("div",Kee,Ne(Oe.title),1),V("div",Yee,Ne(Oe.artist)+" "+Ne(he(gh)(Oe.duration)),1),V("button",{class:"icon-button icon",onClick:Ot(k=>Pe(Oe),["stop"])},[Xee,Be(J)],8,Zee)],10,Gee)}),128))])])}}});const ete=gn(Jee,[["__scopeId","data-v-137f137c"]]),tte={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},rte=V("path",{fill:"currentColor",d:"M3 18.5v-13q0-.55.45-.838t.95-.087l15.4 6.5q.625.275.625.925t-.625.925l-15.4 6.5q-.5.2-.95-.088T3 18.5ZM5 17l11.85-5L5 7v3.5l6 1.5l-6 1.5V17Zm0-5V7v10v-5Z"},null,-1),nte=[rte];function ote(t,e){return te(),ie("svg",tte,nte)}const ite={name:"material-symbols-send-outline-rounded",render:ote},ate={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ste=V("path",{fill:"currentColor",d:"M4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.588 1.413T20 20H4ZM4 6v12h16V8h-8.825l-2-2H4Zm0 0v12V6Z"},null,-1),lte=[ste];function cte(t,e){return te(),ie("svg",ate,lte)}const dte={name:"material-symbols-folder-outline-rounded",render:cte},ute={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},fte=V("path",{fill:"currentColor",d:"M12 14.95q-.2 0-.375-.062t-.325-.213L6.675 10.05q-.275-.275-.262-.688t.287-.687q.275-.275.7-.275t.7.275l3.9 3.9l3.925-3.925q.275-.275.688-.263t.687.288q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213T12 14.95Z"},null,-1),pte=[fte];function hte(t,e){return te(),ie("svg",ute,pte)}const mte={name:"material-symbols-expand-more-rounded",render:hte},vte={class:"image-container"},gte=["onClick"],_te=["src"],yte={class:"duration"},bte=Bt({__name:"ChatImages",props:{data:{type:Object}},setup(t){const e=t,r=ki();function n(a){return a.thumbnail?a.thumbnail:a.src.startsWith("blob:")?a.src:`${a.src}&w=300&h=300`}function o(a){r.lightbox={sources:i.value,index:a,visible:!0}}const i=St(()=>{var u,f,g,_;const a=e.data,c=((f=(u=a==null?void 0:a._content)==null?void 0:u.value)==null?void 0:f.items)??[],d=[];return(_=(g=a==null?void 0:a.data)==null?void 0:g.ids)==null||_.forEach((b,h)=>{const m=c[h];d.push({path:m.uri,src:Ob(b),viewOriginImage:$b(b)||m.uri.endsWith(".gif"),name:Bo(m.uri),duration:m.duration,size:m.size,thumbnail:m.thumbnail})}),d});return(a,c)=>(te(),ie("div",vte,[(te(!0),ie(Pt,null,wo(i.value,(d,u)=>(te(),ie("div",{class:"item",key:u,onClick:f=>o(u)},[V("img",{class:"image",src:n(d)},null,8,_te),V("span",yte,Ne(he(jo)(d.name)?he(gh)(d.duration):he(Id)(d.size)),1)],8,gte))),128))]))}});const xte=gn(bte,[["__scopeId","data-v-578f7f0f"]]),wte={class:"chat-section"},Ete=["href","onClick"],Tte={class:"left"},kte={class:"info"},Cte=["src"],Ate=Bt({__name:"ChatFiles",props:{data:{type:Object}},setup(t){const e=t,r=ki(),n=Se([]);function o(c){return c.thumbnail?c.thumbnail:c.src.startsWith("blob:")?c.src:`${c.src}&w=50&h=50`}const i=St(()=>{var u,f,g,_,b,h;const c=((g=(f=(u=e.data)==null?void 0:u._content)==null?void 0:f.value)==null?void 0:g.items)??[],d=[];return(h=(b=(_=e.data)==null?void 0:_.data)==null?void 0:b.ids)==null||h.forEach((m,y)=>{const v=c[y];d.push({path:v.uri,src:Ob(m),viewOriginImage:$b(m)||v.uri.endsWith(".gif"),name:Bo(v.uri),duration:v.duration,size:v.size,thumbnail:v.thumbnail})}),d});function a(c){if(ME(c.name)){n.value=i.value.filter(u=>ME(u.name));const d=n.value.findIndex(u=>u.src===c.src);r.lightbox={sources:n.value,index:d,visible:!0}}else window.open(c.src,"_blank")}return(c,d)=>(te(),ie("div",wte,[(te(!0),ie(Pt,null,wo(i.value,(u,f)=>(te(),ie("a",{key:f,class:"file-item",target:"_blank",href:u.src,onClick:Ot(g=>a(u),["prevent"])},[V("span",Tte,[V("span",null,Ne(u.name),1),V("span",kte,Ne(he(Id)(u.size))+Ne(he(jo)(u.name)?" / "+he(gh)(u.duration):""),1)]),he(Ro)(u.name)||he(jo)(u.name)?(te(),ie("img",{key:0,src:o(u)},null,8,Cte)):Tt("",!0)],8,Ete))),128))]))}});const Ste=gn(Ate,[["__scopeId","data-v-5f17c344"]]),Ite=()=>{const t=[];let e=null;const{mutate:r}=jr({document:y3,options:{update:(i,a)=>{i.evict({id:i.identify({__typename:"ChatItem",id:e==null?void 0:e.item.id})}),es(i,a.data.createChatItem,ol),n()}},appApi:!0}),n=()=>{e=null,t.length&&o()},o=async()=>{if(!e&&(e=t.shift()||null,e)){const i=BA(e.uploads,5);for(const d of i)await Promise.all(d.map(async u=>{await ZC(u,!1)}));const a=e.item._content,c=[];a.value.items.forEach((d,u)=>{const f=b3(d.uri);c.push({uri:`app://${f}/`+e.uploads[u].fileName,size:d.size,duration:d.duration})}),r({content:JSON.stringify({type:a.type,value:{items:c}})})}};return{async enqueue(i,a){t.push({item:i,uploads:a}),e==null&&await o()}}},m0=t=>(_i("data-v-d30ba72e"),t=t(),yi(),t),$te={class:"chat"},Ote={class:"top-title"},Pte={key:0,class:"date"},Rte={class:"chat-title"},Lte={class:"name"},Mte={class:"time"},Dte={key:0,class:"sending"},Fte={class:"menu-items"},Nte=["onClick","disabled"],zte={slot:"headline"},qte={class:"chat-content"},Bte={key:0},Ute=["innerHTML"],Vte={class:"chat-input"},jte={class:"textarea-wrapper"},Hte=["onDrop","onDragenter","onDragleave","placeholder","onKeydown"],Wte={class:"btns"},Gte=m0(()=>V("md-ripple",null,null,-1)),Qte=m0(()=>V("md-ripple",null,null,-1)),Kte={class:"btn-send-container"},Yte=["disable"],Zte=m0(()=>V("md-ripple",null,null,-1)),Xte=Bt({__name:"HomeConsole",setup(t){const{getUploads:e}=eX(),{resolveClient:r}=nh(),n=Se(),o=Se(),i=Se(),a=Se([]),{enqueue:c}=Ite(),{app:d}=ya(ki()),{externalFilesDir:u}=d.value,f=Se(""),{t:g}=$n();let _=!1;function b(de,we){let ke=!1;if(we==0)ke=!0;else{const Re=we>0?a.value[we-1]:null;Re!=null&&kv(Re.createdAt)!==kv(de.createdAt)&&(ke=!0)}return ke}ys({handle:async(de,we)=>{we?vi(g(we),"error"):de&&(a.value=de.chatItems,_||(D(),_=!0))},document:ol,appApi:!0});function h(de){return{images:xte,files:Ste}[de]}const m=Bd(),{chatText:y}=ya(m),{mutate:v,loading:x,onDone:E}=jr({document:y3,options:{update:(de,we)=>{es(de,we.data.createChatItem,ol)}},appApi:!0});function T(de){const we=de.target.files,ke=[];for(const Re of we)ke.push(Re);C(ke)}async function C(de){if(!de.length)return;const we=e(u,de),ke=[],Re=[];for(const J of we)if(J.file.type.startsWith("video")){const me=await DE(J.file);Re.push({uri:J.fileName,size:J.file.size,duration:me.duration,thumbnail:me.thumbnail})}else Re.push({uri:J.fileName,size:J.file.size,duration:0});const He={type:"files",value:{items:Re}},ze={id:"new_"+qg(),isMe:!0,createdAt:new Date().toISOString(),content:JSON.stringify(He),_content:He,__typename:"ChatItem",data:{__typename:"MessageFiles",ids:we.map(J=>URL.createObjectURL(J.file))}};ke.push(ze),c(ze,we);const We=r("a");es(We.cache,ke,ol),D()}function A(de){const we=de.target.files,ke=[];for(const Re of we)ke.push(Re);L(ke)}async function L(de){if(!de.length)return;const we=e(u,de),ke=[],Re=[];for(const J of we)if(J.file.type.startsWith("video")){const me=await DE(J.file);Re.push({uri:J.fileName,size:J.file.size,duration:me.duration,thumbnail:me.thumbnail})}else Re.push({uri:J.fileName,size:J.file.size,duration:0});const He={type:"images",value:{items:Re}},ze={id:"new_"+qg(),isMe:!0,createdAt:new Date().toISOString(),content:JSON.stringify(He),_content:He,__typename:"ChatItem",data:{__typename:"MessageImages",ids:we.map(J=>URL.createObjectURL(J.file))}};ke.push(ze),c(ze,we);const We=r("a");es(We.cache,ke,ol),D()}function R(){y.value&&v({content:JSON.stringify({type:"text",value:{text:y.value}})})}function D(){const de=n.value;de&&setTimeout(()=>{de.scrollTop=de.scrollHeight},100)}E(()=>{y.value="",D()});const{mutate:q,loading:H}=jr({document:DZ,options:{update:de=>{de.evict({id:de.identify({__typename:"ChatItem",id:f.value})})}},appApi:!0});function U(de){f.value=de,q({id:de})}function ce(){i.value.value="",i.value.click()}function Ae(){o.value.value="",o.value.click()}const Le=Se(!1);function Te(){Le.value=!0}function Ie(){Le.value=!1}function Pe(de){var ke;const we=(ke=de.dataTransfer)==null?void 0:ke.files;if(Le.value=!1,we){const Re=[];for(const He of we)Re.push(He);Re.length&&C(Re)}}function Ce(de){var ke;const we=(ke=de.clipboardData)==null?void 0:ke.items;if(we){const Re=[],He=[];for(const ze of we){if(ze.kind!=="file")continue;const We=ze.getAsFile();We.type.startsWith("image")||We.type.startsWith("video")?Re.push(We):He.push(We)}Re.length&&(de.preventDefault(),L(Re)),He.length&&(de.preventDefault(),C(He))}}return mn(()=>{mt.on("message_created",async de=>{const we=r("a"),ke=[];for(const Re of de){let He=null;Re.data&&(He=Re.data,He.__typename=Re.data.type.split(".").pop()),ke.push({...Re,data:He,__typename:"ChatItem"})}es(we.cache,ke,ol),D()}),mt.on("message_deleted",async de=>{const ke=r("a").cache;for(const Re of de)ke.evict({id:ke.identify({__typename:"ChatItem",id:Re})})}),mt.on("message_updated",async de=>{const ke=r("a").cache;for(const Re of de){const He=Re.id,ze=ke.identify({__typename:"ChatItem",id:He}),We=c0,J=ke.readFragment({id:ze,fragment:We});J&&ke.writeFragment({id:ze,fragment:We,data:{...J,...Re}})}})}),(de,we)=>{var me,ve,$e;const ke=mte,Re=i0,He=p3,ze=dte,We=ite,J=ws("tooltip");return te(),ie("div",$te,[V("div",Ote,Ne(((me=he(d))==null?void 0:me.deviceName)??de.$t("my_phone"))+Ne((ve=he(d))!=null&&ve.battery?" ("+de.$t("battery_left",{percentage:($e=he(d))==null?void 0:$e.battery})+")":""),1),V("div",{class:"chat-items-container",ref_key:"scrollContainer",ref:n},[V("div",null,[(te(!0),ie(Pt,null,wo(a.value,(Oe,M)=>(te(),ie("div",{key:Oe.id,class:"chat-item"},[b(Oe,M)?(te(),ie("div",Pte,Ne(he(kv)(Oe.createdAt)),1)):Tt("",!0),Be(Re,null,{content:go(()=>[V("div",Fte,[V("md-menu-item",{onClick:k=>U(Oe.id),disabled:he(H)},[V("div",zte,Ne(de.$t("delete_message")),1)],8,Nte)])]),default:go(()=>[V("div",Rte,[V("span",Lte,Ne(de.$t(Oe.isMe?"me":"app_name")),1),_t((te(),ie("span",Mte,[Lo(Ne(he(gZ)(Oe.createdAt)),1)])),[[J,he(l0)(Oe.createdAt)]]),Oe.id.startsWith("new_")?(te(),ie("span",Dte,Ne(de.$t("sending")),1)):Tt("",!0),Be(ke,{class:"bi bi-more"})])]),_:2},1024),V("div",qte,[Oe._content.type==="text"?(te(),ie("div",Bte,[V("pre",{innerHTML:he(wq)(Oe._content.value.text)},null,8,Ute)])):(te(),Hr(Ny(h(Oe._content.type)),{key:1,data:Oe},null,8,["data"]))])]))),128))])],512),V("div",Vte,[V("div",jte,[_t(V("div",{class:"drag-mask"},Ne(de.$t("release_to_send_file")),513),[[uo,Le.value]]),_t(V("md-outlined-text-field",{type:"textarea",rows:"2","onUpdate:modelValue":we[0]||(we[0]=Oe=>Rt(y)?y.value=Oe:null),autocomplete:"off",onPaste:Ce,onDrop:Ot(Pe,["prevent"]),onDragenter:Ot(Te,["prevent"]),onDragleave:Ot(Ie,["prevent"]),class:"textarea",placeholder:de.$t("chat_input_hint"),onKeydown:[Xs(Ot(R,["exact","prevent"]),["enter"]),we[1]||(we[1]=Xs(Ot(Oe=>y.value+=` +*/let d_=class extends I3{};d_.styles=[YJ];d_=P([rt("md-badge")],d_);const ZJ=t=>(_i("data-v-568572c5"),t=t(),yi(),t),XJ={class:"tasks"},JJ={class:"list-items"},eee={class:"title"},tee={class:"subtitle"},ree={key:0,class:"body"},nee=["onClick"],oee=ZJ(()=>V("md-ripple",null,null,-1)),iee={key:0,class:"no-data"},aee=Bt({__name:"TaskList",setup(t){const e=ki(),r=Bd(),n=St(()=>e.uploads.reverse());function o(i){var a;e.uploads.splice(e.uploads.indexOf(i),1),i.status==="pending"&&(i.status="canceled",(a=i.xhr)==null||a.abort())}return Vt(()=>e.uploads,async i=>{r.quick="task";const a=qA(i.filter(c=>c.status==="created"),5);for(const c of a)await Promise.all(c.map(async d=>{d.status="pending",await YC(d,!0),mt.emit("upload_task_done",d)}))}),(i,a)=>{const c=Hd;return te(),ie("div",XJ,[V("section",JJ,[(te(!0),ie(Pt,null,wo(n.value,d=>(te(),ie("div",{class:"item",key:d.file.name+d.file.size},[V("div",eee,Ne(d.file.name),1),V("div",tee," ["+Ne(i.$t(`upload_status.${d.status}`))+"] "+Ne(he(Id)(d.uploadedSize))+"("+Ne(d.uploadedSize)+") / "+Ne(he(Id)(d.file.size)),1),d.error?(te(),ie("div",ree,Ne(d.error),1)):Tt("",!0),V("button",{class:"icon-button icon",onClick:Ot(u=>o(d),["stop"])},[oee,Be(c)],8,nee)]))),128))]),n.value.length?Tt("",!0):(te(),ie("span",iee,Ne(i.$t("no_task")),1))])}}});const see=gn(aee,[["__scopeId","data-v-568572c5"]]),lee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},cee=V("path",{fill:"currentColor",d:"M17.5 18q-.425 0-.713-.288T16.5 17V7q0-.425.288-.713T17.5 6q.425 0 .713.288T18.5 7v10q0 .425-.288.713T17.5 18ZM7.05 16.975q-.5.35-1.025.05t-.525-.9v-8.25q0-.6.525-.9t1.025.05l6.2 4.15q.45.3.45.825t-.45.825l-6.2 4.15ZM7.5 12Zm0 2.25L10.9 12L7.5 9.75v4.5Z"},null,-1),dee=[cee];function uee(t,e){return te(),ie("svg",lee,dee)}const fee={name:"material-symbols-skip-next-outline-rounded",render:uee},pee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},hee=V("path",{fill:"currentColor",d:"M11.5 10.5h-.775q-.3 0-.513-.213T10 9.75q0-.325.213-.537T10.75 9h1.5q.325 0 .537.213T13 9.75v4.525q0 .3-.213.513T12.25 15q-.325 0-.537-.213t-.213-.537V10.5ZM17 17v-3q0-.425.288-.713T18 13q.425 0 .713.275t.287.7V18q0 .425-.288.713T18 19H6.85l.825.825q.3.3.313.725t-.288.725q-.3.3-.713.3T6.3 21.3l-2.6-2.6q-.275-.275-.275-.7t.275-.7l2.575-2.575q.3-.3.713-.3t.712.3q.3.3.3.713t-.3.712l-.85.85H17ZM7 7v3q0 .425-.288.713T6 11q-.425 0-.713-.275t-.287-.7V6q0-.425.288-.713T6 5h11.15l-.825-.825q-.3-.3-.313-.725t.288-.725q.3-.3.713-.3t.687.275l2.6 2.6q.275.275.275.7t-.275.7l-2.575 2.575q-.3.3-.713.3t-.712-.3q-.3-.3-.3-.713t.3-.712l.85-.85H7Z"},null,-1),mee=[hee];function vee(t,e){return te(),ie("svg",pee,mee)}const gee={name:"material-symbols-repeat-one-rounded",render:vee},_ee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},yee=V("path",{fill:"currentColor",d:"M17 17v-3q0-.425.288-.713T18 13q.425 0 .713.275t.287.7V18q0 .425-.288.713T18 19H6.85l.825.825q.3.3.313.725t-.288.725q-.3.3-.713.3T6.3 21.3l-2.6-2.6q-.275-.275-.275-.7t.275-.7l2.575-2.575q.3-.3.713-.3t.712.3q.3.3.3.713t-.3.712l-.85.85H17ZM7 7v3q0 .425-.288.713T6 11q-.425 0-.713-.275t-.287-.7V6q0-.425.288-.713T6 5h11.15l-.825-.825q-.3-.3-.313-.725t.288-.725q.3-.3.713-.3t.687.275l2.6 2.6q.275.275.275.7t-.275.7l-2.575 2.575q-.3.3-.713.3t-.712-.3q-.3-.3-.3-.713t.3-.712l.85-.85H7Z"},null,-1),bee=[yee];function xee(t,e){return te(),ie("svg",_ee,bee)}const wee={name:"material-symbols-repeat-rounded",render:xee},Eee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Tee=V("path",{fill:"currentColor",d:"M9.175 10.575L4.7 6.1q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.475 4.475l-1.4 1.4ZM15 20q-.425 0-.713-.288T14 19q0-.425.288-.713T15 18h1.6l-3.175-3.175L14.85 13.4L18 16.55V15q0-.425.288-.713T19 14q.425 0 .713.288T20 15v4q0 .425-.288.713T19 20h-4Zm-10.3-.7q-.275-.275-.275-.7t.275-.7L16.6 6H15q-.425 0-.712-.287T14 5q0-.425.288-.713T15 4h4q.425 0 .713.288T20 5v4q0 .425-.288.713T19 10q-.425 0-.713-.288T18 9V7.4L6.1 19.3q-.275.275-.7.275t-.7-.275Z"},null,-1),kee=[Tee];function Cee(t,e){return te(),ie("svg",Eee,kee)}const Aee={name:"material-symbols-shuffle-outline-rounded",render:Cee},See={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Iee=V("path",{fill:"currentColor",d:"M6.5 18q-.425 0-.713-.288T5.5 17V7q0-.425.288-.713T6.5 6q.425 0 .713.288T7.5 7v10q0 .425-.288.713T6.5 18Zm10.45-1.025l-6.2-4.15q-.45-.3-.45-.825t.45-.825l6.2-4.15q.5-.35 1.025-.05t.525.9v8.25q0 .6-.525.9t-1.025-.05ZM16.5 12Zm0 2.25v-4.5L13.1 12l3.4 2.25Z"},null,-1),$ee=[Iee];function Oee(t,e){return te(),ie("svg",See,$ee)}const Pee={name:"material-symbols-skip-previous-outline-rounded",render:Oee},Zl=t=>(_i("data-v-137f137c"),t=t(),yi(),t),Ree={class:"audio-player"},Lee={key:0,class:"play-title"},Mee=["src"],Dee={key:1,class:"buttons"},Fee=["onClick"],Nee=Zl(()=>V("md-ripple",null,null,-1)),zee=["onClick"],qee=Zl(()=>V("md-ripple",null,null,-1)),Bee=["onClick"],Uee=Zl(()=>V("md-ripple",null,null,-1)),Vee={key:0,indeterminate:"",class:"spinner-sm"},jee=Zl(()=>V("md-ripple",null,null,-1)),Hee={class:"list-items"},Wee=["onClick"],Gee=Zl(()=>V("md-ripple",null,null,-1)),Qee={class:"title"},Kee={class:"subtitle"},Yee=["onClick"],Zee=Zl(()=>V("md-ripple",null,null,-1)),Xee=Bt({__name:"AudioPlayer",setup(t){const{app:e,urlTokenKey:r,audioPlaying:n}=ya(ki()),o=St(()=>e.value.audios??[]),i=Se(),a=Se("");async function c(){const{audioCurrent:Ce}=e.value;a.value=gl(r.value,Ce),i.value=o.value.find(de=>de.path==Ce)}c(),Vt(()=>e.value.audioCurrent,c);const{mutate:d,loading:u,onDone:f,onError:g}=jr({document:qZ,appApi:!0}),{mutate:_,loading:b,onDone:h,onError:m}=jr({document:VZ,appApi:!0});h(()=>{e.value={...e.value,audioCurrent:"",audios:[]}});const{mutate:y,loading:v,onDone:x,onError:E}=jr({document:BZ,appApi:!0}),{mutate:T,loading:C,onDone:A,onError:L}=jr({document:UZ,appApi:!0}),R=Se();async function D(){var de;if(o.value.length===0)return;const Ce=e.value.audioMode;Ce==="REPEAT"?Le():Ce==="REPEAT_ONE"?(de=R.value)==null||de.play():q()}function q(){const Ce=vQ(e.value.audios);d({path:Ce.path}),e.value={...e.value,audioCurrent:Ce.path}}function H(){o.value.length!==0&&(e.value.audioMode==="SHUFFLE"?q():U())}function U(){const Ce=o.value.findIndex(we=>{var ke;return we.path===((ke=i.value)==null?void 0:ke.path)});let de;Ce<=0?de=o.value[o.value.length-1]:de=o.value[Ce-1],d({path:de.path}),e.value={...e.value,audioCurrent:de.path}}function ce(){o.value.length!==0&&(e.value.audioMode==="SHUFFLE"?q():Le())}function Ae(){var Ce;(Ce=R.value)==null||Ce.play()}function Le(){const Ce=o.value.findIndex(we=>{var ke;return we.path===((ke=i.value)==null?void 0:ke.path)});let de;Ce+1>=o.value.length?de=o.value[0]:de=o.value[Ce+1],d({path:de.path}),e.value={...e.value,audioCurrent:de.path}}function Te(){let Ce=e.value.audioMode;Ce==="REPEAT"?Ce="REPEAT_ONE":Ce==="REPEAT_ONE"?Ce="SHUFFLE":Ce="REPEAT",y({mode:Ce}),e.value={...e.value,audioMode:Ce}}function Ie(Ce){d({path:Ce.path}),e.value={...e.value,audioCurrent:Ce.path}}f(()=>{Ae()});function Pe(Ce){T({path:Ce.path});const de=[...e.value.audios];gs(de,we=>we.path===Ce.path),e.value={...e.value,audios:de}}return mn(()=>{var Ce,de;mt.on("do_play_audio",()=>{setTimeout(Ae,500)}),mt.on("pause_audio",()=>{var we;(we=R.value)==null||we.pause()}),(Ce=R.value)==null||Ce.addEventListener("pause",function(){n.value=!1}),(de=R.value)==null||de.addEventListener("play",function(){n.value=!0})}),(Ce,de)=>{var ve,$e;const we=Pee,ke=Aee,Re=wee,He=gee,ze=fee,We=Yb,J=Hd,me=ws("tooltip");return te(),ie("div",Ree,[i.value?(te(),ie("div",Lee,Ne(i.value.title),1)):Tt("",!0),V("audio",{ref_key:"audioRef",ref:R,class:"audio",controls:"",src:a.value,onEnded:D},null,40,Mee),o.value.length?(te(),ie("div",Dee,[V("button",{class:"icon-button",onClick:Ot(H,["stop"])},[Nee,Be(we)],8,Fee),V("button",{class:"icon-button mode",onClick:Ot(Te,["stop"])},[qee,((ve=he(e))==null?void 0:ve.audioMode)==="SHUFFLE"?(te(),Hr(ke,{key:0})):(($e=he(e))==null?void 0:$e.audioMode)==="REPEAT"?(te(),Hr(Re,{key:1})):(te(),Hr(He,{key:2}))],8,zee),V("button",{class:"icon-button",onClick:Ot(ce,["stop"])},[Uee,Be(ze)],8,Bee),he(b)?(te(),ie("md-circular-progress",Vee)):_t((te(),ie("button",{key:1,class:"icon-button",onClick:de[0]||(de[0]=Ot((...Oe)=>he(_)&&he(_)(...Oe),["prevent"]))},[jee,Be(We)])),[[me,Ce.$t("clear_list")]])])):Tt("",!0),V("section",Hee,[(te(!0),ie(Pt,null,wo(o.value,Oe=>{var M;return te(),ie("div",{class:Vn(["item",{selected:Oe.path===((M=i.value)==null?void 0:M.path)}]),key:Oe.path,onClick:Ot(k=>Ie(Oe),["stop"])},[Gee,V("div",Qee,Ne(Oe.title),1),V("div",Kee,Ne(Oe.artist)+" "+Ne(he(gh)(Oe.duration)),1),V("button",{class:"icon-button icon",onClick:Ot(k=>Pe(Oe),["stop"])},[Zee,Be(J)],8,Yee)],10,Wee)}),128))])])}}});const Jee=gn(Xee,[["__scopeId","data-v-137f137c"]]),ete={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},tte=V("path",{fill:"currentColor",d:"M3 18.5v-13q0-.55.45-.838t.95-.087l15.4 6.5q.625.275.625.925t-.625.925l-15.4 6.5q-.5.2-.95-.088T3 18.5ZM5 17l11.85-5L5 7v3.5l6 1.5l-6 1.5V17Zm0-5V7v10v-5Z"},null,-1),rte=[tte];function nte(t,e){return te(),ie("svg",ete,rte)}const ote={name:"material-symbols-send-outline-rounded",render:nte},ite={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ate=V("path",{fill:"currentColor",d:"M4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.588 1.413T20 20H4ZM4 6v12h16V8h-8.825l-2-2H4Zm0 0v12V6Z"},null,-1),ste=[ate];function lte(t,e){return te(),ie("svg",ite,ste)}const cte={name:"material-symbols-folder-outline-rounded",render:lte},dte={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ute=V("path",{fill:"currentColor",d:"M12 14.95q-.2 0-.375-.062t-.325-.213L6.675 10.05q-.275-.275-.262-.688t.287-.687q.275-.275.7-.275t.7.275l3.9 3.9l3.925-3.925q.275-.275.688-.263t.687.288q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213T12 14.95Z"},null,-1),fte=[ute];function pte(t,e){return te(),ie("svg",dte,fte)}const hte={name:"material-symbols-expand-more-rounded",render:pte},mte={class:"image-container"},vte=["onClick"],gte=["src"],_te={class:"duration"},yte=Bt({__name:"ChatImages",props:{data:{type:Object}},setup(t){const e=t,r=ki();function n(a){return a.thumbnail?a.thumbnail:a.src.startsWith("blob:")?a.src:`${a.src}&w=300&h=300`}function o(a){r.lightbox={sources:i.value,index:a,visible:!0}}const i=St(()=>{var u,f,g,_;const a=e.data,c=((f=(u=a==null?void 0:a._content)==null?void 0:u.value)==null?void 0:f.items)??[],d=[];return(_=(g=a==null?void 0:a.data)==null?void 0:g.ids)==null||_.forEach((b,h)=>{const m=c[h];d.push({path:m.uri,src:Ob(b),viewOriginImage:$b(b)||m.uri.endsWith(".gif"),name:Bo(m.uri),duration:m.duration,size:m.size,thumbnail:m.thumbnail})}),d});return(a,c)=>(te(),ie("div",mte,[(te(!0),ie(Pt,null,wo(i.value,(d,u)=>(te(),ie("div",{class:"item",key:u,onClick:f=>o(u)},[V("img",{class:"image",src:n(d)},null,8,gte),V("span",_te,Ne(he(jo)(d.name)?he(gh)(d.duration):he(Id)(d.size)),1)],8,vte))),128))]))}});const bte=gn(yte,[["__scopeId","data-v-578f7f0f"]]),xte={class:"chat-section"},wte=["href","onClick"],Ete={class:"left"},Tte={class:"info"},kte=["src"],Cte=Bt({__name:"ChatFiles",props:{data:{type:Object}},setup(t){const e=t,r=ki(),n=Se([]);function o(c){return c.thumbnail?c.thumbnail:c.src.startsWith("blob:")?c.src:`${c.src}&w=50&h=50`}const i=St(()=>{var u,f,g,_,b,h;const c=((g=(f=(u=e.data)==null?void 0:u._content)==null?void 0:f.value)==null?void 0:g.items)??[],d=[];return(h=(b=(_=e.data)==null?void 0:_.data)==null?void 0:b.ids)==null||h.forEach((m,y)=>{const v=c[y];d.push({path:v.uri,src:Ob(m),viewOriginImage:$b(m)||v.uri.endsWith(".gif"),name:Bo(v.uri),duration:v.duration,size:v.size,thumbnail:v.thumbnail})}),d});function a(c){if(ME(c.name)){n.value=i.value.filter(u=>ME(u.name));const d=n.value.findIndex(u=>u.src===c.src);r.lightbox={sources:n.value,index:d,visible:!0}}else window.open(c.src,"_blank")}return(c,d)=>(te(),ie("div",xte,[(te(!0),ie(Pt,null,wo(i.value,(u,f)=>(te(),ie("a",{key:f,class:"file-item",target:"_blank",href:u.src,onClick:Ot(g=>a(u),["prevent"])},[V("span",Ete,[V("span",null,Ne(u.name),1),V("span",Tte,Ne(he(Id)(u.size))+Ne(he(jo)(u.name)?" / "+he(gh)(u.duration):""),1)]),he(Ro)(u.name)||he(jo)(u.name)?(te(),ie("img",{key:0,src:o(u)},null,8,kte)):Tt("",!0)],8,wte))),128))]))}});const Ate=gn(Cte,[["__scopeId","data-v-5f17c344"]]),Ste=()=>{const t=[];let e=null;const{mutate:r}=jr({document:_3,options:{update:(i,a)=>{i.evict({id:i.identify({__typename:"ChatItem",id:e==null?void 0:e.item.id})}),es(i,a.data.createChatItem,ol),n()}},appApi:!0}),n=()=>{e=null,t.length&&o()},o=async()=>{if(!e&&(e=t.shift()||null,e)){const i=qA(e.uploads,5);for(const d of i)await Promise.all(d.map(async u=>{await YC(u,!1)}));const a=e.item._content,c=[];a.value.items.forEach((d,u)=>{const f=y3(d.uri);c.push({uri:`app://${f}/`+e.uploads[u].fileName,size:d.size,duration:d.duration})}),r({content:JSON.stringify({type:a.type,value:{items:c}})})}};return{async enqueue(i,a){t.push({item:i,uploads:a}),e==null&&await o()}}},m0=t=>(_i("data-v-d30ba72e"),t=t(),yi(),t),Ite={class:"chat"},$te={class:"top-title"},Ote={key:0,class:"date"},Pte={class:"chat-title"},Rte={class:"name"},Lte={class:"time"},Mte={key:0,class:"sending"},Dte={class:"menu-items"},Fte=["onClick","disabled"],Nte={slot:"headline"},zte={class:"chat-content"},qte={key:0},Bte=["innerHTML"],Ute={class:"chat-input"},Vte={class:"textarea-wrapper"},jte=["onDrop","onDragenter","onDragleave","placeholder","onKeydown"],Hte={class:"btns"},Wte=m0(()=>V("md-ripple",null,null,-1)),Gte=m0(()=>V("md-ripple",null,null,-1)),Qte={class:"btn-send-container"},Kte=["disable"],Yte=m0(()=>V("md-ripple",null,null,-1)),Zte=Bt({__name:"HomeConsole",setup(t){const{getUploads:e}=JZ(),{resolveClient:r}=nh(),n=Se(),o=Se(),i=Se(),a=Se([]),{enqueue:c}=Ste(),{app:d}=ya(ki()),{externalFilesDir:u}=d.value,f=Se(""),{t:g}=$n();let _=!1;function b(de,we){let ke=!1;if(we==0)ke=!0;else{const Re=we>0?a.value[we-1]:null;Re!=null&&kv(Re.createdAt)!==kv(de.createdAt)&&(ke=!0)}return ke}ys({handle:async(de,we)=>{we?vi(g(we),"error"):de&&(a.value=de.chatItems,_||(D(),_=!0))},document:ol,appApi:!0});function h(de){return{images:bte,files:Ate}[de]}const m=Bd(),{chatText:y}=ya(m),{mutate:v,loading:x,onDone:E}=jr({document:_3,options:{update:(de,we)=>{es(de,we.data.createChatItem,ol)}},appApi:!0});function T(de){const we=de.target.files,ke=[];for(const Re of we)ke.push(Re);C(ke)}async function C(de){if(!de.length)return;const we=e(u,de),ke=[],Re=[];for(const J of we)if(J.file.type.startsWith("video")){const me=await DE(J.file);Re.push({uri:J.fileName,size:J.file.size,duration:me.duration,thumbnail:me.thumbnail})}else Re.push({uri:J.fileName,size:J.file.size,duration:0});const He={type:"files",value:{items:Re}},ze={id:"new_"+qg(),isMe:!0,createdAt:new Date().toISOString(),content:JSON.stringify(He),_content:He,__typename:"ChatItem",data:{__typename:"MessageFiles",ids:we.map(J=>URL.createObjectURL(J.file))}};ke.push(ze),c(ze,we);const We=r("a");es(We.cache,ke,ol),D()}function A(de){const we=de.target.files,ke=[];for(const Re of we)ke.push(Re);L(ke)}async function L(de){if(!de.length)return;const we=e(u,de),ke=[],Re=[];for(const J of we)if(J.file.type.startsWith("video")){const me=await DE(J.file);Re.push({uri:J.fileName,size:J.file.size,duration:me.duration,thumbnail:me.thumbnail})}else Re.push({uri:J.fileName,size:J.file.size,duration:0});const He={type:"images",value:{items:Re}},ze={id:"new_"+qg(),isMe:!0,createdAt:new Date().toISOString(),content:JSON.stringify(He),_content:He,__typename:"ChatItem",data:{__typename:"MessageImages",ids:we.map(J=>URL.createObjectURL(J.file))}};ke.push(ze),c(ze,we);const We=r("a");es(We.cache,ke,ol),D()}function R(){y.value&&v({content:JSON.stringify({type:"text",value:{text:y.value}})})}function D(){const de=n.value;de&&setTimeout(()=>{de.scrollTop=de.scrollHeight},100)}E(()=>{y.value="",D()});const{mutate:q,loading:H}=jr({document:MZ,options:{update:de=>{de.evict({id:de.identify({__typename:"ChatItem",id:f.value})})}},appApi:!0});function U(de){f.value=de,q({id:de})}function ce(){i.value.value="",i.value.click()}function Ae(){o.value.value="",o.value.click()}const Le=Se(!1);function Te(){Le.value=!0}function Ie(){Le.value=!1}function Pe(de){var ke;const we=(ke=de.dataTransfer)==null?void 0:ke.files;if(Le.value=!1,we){const Re=[];for(const He of we)Re.push(He);Re.length&&C(Re)}}function Ce(de){var ke;const we=(ke=de.clipboardData)==null?void 0:ke.items;if(we){const Re=[],He=[];for(const ze of we){if(ze.kind!=="file")continue;const We=ze.getAsFile();We.type.startsWith("image")||We.type.startsWith("video")?Re.push(We):He.push(We)}Re.length&&(de.preventDefault(),L(Re)),He.length&&(de.preventDefault(),C(He))}}return mn(()=>{mt.on("message_created",async de=>{const we=r("a"),ke=[];for(const Re of de){let He=null;Re.data&&(He=Re.data,He.__typename=Re.data.type.split(".").pop()),ke.push({...Re,data:He,__typename:"ChatItem"})}es(we.cache,ke,ol),D()}),mt.on("message_deleted",async de=>{const ke=r("a").cache;for(const Re of de)ke.evict({id:ke.identify({__typename:"ChatItem",id:Re})})}),mt.on("message_updated",async de=>{const ke=r("a").cache;for(const Re of de){const He=Re.id,ze=ke.identify({__typename:"ChatItem",id:He}),We=c0,J=ke.readFragment({id:ze,fragment:We});J&&ke.writeFragment({id:ze,fragment:We,data:{...J,...Re}})}})}),(de,we)=>{var me,ve,$e;const ke=hte,Re=i0,He=f3,ze=cte,We=ote,J=ws("tooltip");return te(),ie("div",Ite,[V("div",$te,Ne(((me=he(d))==null?void 0:me.deviceName)??de.$t("my_phone"))+Ne((ve=he(d))!=null&&ve.battery?" ("+de.$t("battery_left",{percentage:($e=he(d))==null?void 0:$e.battery})+")":""),1),V("div",{class:"chat-items-container",ref_key:"scrollContainer",ref:n},[V("div",null,[(te(!0),ie(Pt,null,wo(a.value,(Oe,M)=>(te(),ie("div",{key:Oe.id,class:"chat-item"},[b(Oe,M)?(te(),ie("div",Ote,Ne(he(kv)(Oe.createdAt)),1)):Tt("",!0),Be(Re,null,{content:go(()=>[V("div",Dte,[V("md-menu-item",{onClick:k=>U(Oe.id),disabled:he(H)},[V("div",Nte,Ne(de.$t("delete_message")),1)],8,Fte)])]),default:go(()=>[V("div",Pte,[V("span",Rte,Ne(de.$t(Oe.isMe?"me":"app_name")),1),_t((te(),ie("span",Lte,[Lo(Ne(he(vZ)(Oe.createdAt)),1)])),[[J,he(l0)(Oe.createdAt)]]),Oe.id.startsWith("new_")?(te(),ie("span",Mte,Ne(de.$t("sending")),1)):Tt("",!0),Be(ke,{class:"bi bi-more"})])]),_:2},1024),V("div",zte,[Oe._content.type==="text"?(te(),ie("div",qte,[V("pre",{innerHTML:he(xq)(Oe._content.value.text)},null,8,Bte)])):(te(),Hr(Ny(h(Oe._content.type)),{key:1,data:Oe},null,8,["data"]))])]))),128))])],512),V("div",Ute,[V("div",Vte,[_t(V("div",{class:"drag-mask"},Ne(de.$t("release_to_send_file")),513),[[uo,Le.value]]),_t(V("md-outlined-text-field",{type:"textarea",rows:"2","onUpdate:modelValue":we[0]||(we[0]=Oe=>Rt(y)?y.value=Oe:null),autocomplete:"off",onPaste:Ce,onDrop:Ot(Pe,["prevent"]),onDragenter:Ot(Te,["prevent"]),onDragleave:Ot(Ie,["prevent"]),class:"textarea",placeholder:de.$t("chat_input_hint"),onKeydown:[Xs(Ot(R,["exact","prevent"]),["enter"]),we[1]||(we[1]=Xs(Ot(Oe=>y.value+=` `,["shift","exact","prevent"]),["enter"])),we[2]||(we[2]=Xs(Ot(Oe=>y.value+=` `,["ctrl","exact","prevent"]),["enter"])),we[3]||(we[3]=Xs(Ot(Oe=>y.value+=` `,["alt","exact","prevent"]),["enter"])),we[4]||(we[4]=Xs(Ot(Oe=>y.value+=` -`,["meta","exact","prevent"]),["enter"]))]},null,40,Hte),[[tg,he(y)]])]),V("div",Wte,[V("button",{class:"icon-button",onClick:ce},[Gte,Be(He)]),V("button",{class:"icon-button",onClick:Ae},[Qte,Be(ze)]),V("div",Kte,[V("button",{class:"icon-button btn-send",onClick:R,disable:he(x)},[Zte,Be(We)],8,Yte)])])]),V("input",{ref_key:"fileInput",ref:o,style:{display:"none"},type:"file",multiple:"",onChange:T},null,544),V("input",{ref_key:"imageInput",ref:i,style:{display:"none"},type:"file",accept:"image/*, video/*",multiple:"",onChange:A},null,544)])}}});const Jte=gn(Xte,[["__scopeId","data-v-d30ba72e"]]),ere={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},tre=V("path",{fill:"currentColor",d:"M7 14h6.025q.425 0 .7-.288T14 13q0-.425-.288-.713T13 12H6.975q-.425 0-.7.288T6 13q0 .425.288.713T7 14Zm0-3h10.025q.425 0 .7-.288T18 10q0-.425-.288-.713T17 9H6.975q-.425 0-.7.288T6 10q0 .425.288.713T7 11Zm0-3h10.025q.425 0 .7-.288T18 7q0-.425-.288-.713T17 6H6.975q-.425 0-.7.288T6 7q0 .425.288.713T7 8ZM2 19.575V4q0-.825.588-1.413T4 2h16q.825 0 1.413.588T22 4v12q0 .825-.588 1.413T20 18H6l-2.3 2.3q-.475.475-1.088.213T2 19.575Zm2-2.4L5.175 16H20V4H4v13.175ZM4 4v13.175V4Z"},null,-1),rre=[tre];function nre(t,e){return te(),ie("svg",ere,rre)}const ore={name:"material-symbols-chat-outline-rounded",render:nre},ire={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},are=V("path",{fill:"currentColor",d:"M16 20q-1.25 0-2.125-.875T13 17q0-1.25.875-2.125T16 14q.275 0 .525.038T17 14.2V7q0-.425.288-.713T18 6h3q.425 0 .713.288T22 7q0 .425-.288.713T21 8h-2v9q0 1.25-.875 2.125T16 20ZM4 8q-.425 0-.713-.288T3 7q0-.425.288-.713T4 6h10q.425 0 .713.288T15 7q0 .425-.288.713T14 8H4Zm0 4q-.425 0-.713-.288T3 11q0-.425.288-.713T4 10h10q.425 0 .713.288T15 11q0 .425-.288.713T14 12H4Zm0 4q-.425 0-.713-.288T3 15q0-.425.288-.713T4 14h6q.425 0 .713.288T11 15q0 .425-.288.713T10 16H4Z"},null,-1),sre=[are];function lre(t,e){return te(),ie("svg",ire,sre)}const cre={name:"material-symbols-queue-music-rounded",render:lre},dre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ure=V("path",{fill:"currentColor",d:"M3.75 22q-.325 0-.537-.213T3 21.25q0-.325.213-.537t.537-.213H5.5v-.75h-.75q-.325 0-.537-.213T4 19q0-.325.213-.537t.537-.213h.75v-.75H3.75q-.325 0-.537-.213T3 16.75q0-.325.213-.537T3.75 16H6q.425 0 .713.288T7 17v1q0 .425-.288.713T6 19q.425 0 .713.288T7 20v1q0 .425-.288.713T6 22H3.75Zm0-7q-.325 0-.537-.213T3 14.25v-2q0-.425.288-.713T4 11.25h1.5v-.75H3.75q-.325 0-.537-.213T3 9.75q0-.325.213-.537T3.75 9H6q.425 0 .713.288T7 10v1.75q0 .425-.288.713T6 12.75H4.5v.75h1.75q.325 0 .537.213T7 14.25q0 .325-.213.537T6.25 15h-2.5Zm1.5-7q-.325 0-.537-.213T4.5 7.25V3.5h-.75q-.325 0-.537-.213T3 2.75q0-.325.213-.537T3.75 2h1.5q.325 0 .537.213T6 2.75v4.5q0 .325-.213.537T5.25 8ZM10 19q-.425 0-.713-.288T9 18q0-.425.288-.713T10 17h10q.425 0 .713.288T21 18q0 .425-.288.713T20 19H10Zm0-6q-.425 0-.713-.288T9 12q0-.425.288-.713T10 11h10q.425 0 .713.288T21 12q0 .425-.288.713T20 13H10Zm0-6q-.425 0-.713-.288T9 6q0-.425.288-.713T10 5h10q.425 0 .713.288T21 6q0 .425-.288.713T20 7H10Z"},null,-1),fre=[ure];function pre(t,e){return te(),ie("svg",dre,fre)}const hre={name:"material-symbols-format-list-numbered-rounded",render:pre},mre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},vre=V("path",{fill:"currentColor",d:"M5 19q-.425 0-.713-.288T4 18q0-.425.288-.713T5 17h1v-7q0-2.075 1.25-3.688T10.5 4.2v-.7q0-.625.438-1.063T12 2q.625 0 1.063.438T13.5 3.5v.7q2 .5 3.25 2.113T18 10v7h1q.425 0 .713.288T20 18q0 .425-.288.713T19 19H5Zm7-7.5ZM12 22q-.825 0-1.413-.588T10 20h4q0 .825-.588 1.413T12 22Zm-4-5h8v-7q0-1.65-1.175-2.825T12 6q-1.65 0-2.825 1.175T8 10v7Z"},null,-1),gre=[vre];function _re(t,e){return te(),ie("svg",mre,gre)}const yre={name:"material-symbols-notifications-outline-rounded",render:_re},bre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},xre=V("path",{fill:"currentColor",d:"M15.325 16.275q-.275-.325-.275-.737t.275-.688l1.85-1.85H10q-.425 0-.713-.288T9 12q0-.425.288-.713T10 11h7.175l-1.85-1.85q-.3-.3-.3-.713t.3-.712q.275-.3.688-.3t.687.275l3.6 3.6q.15.15.213.325t.062.375q0 .2-.062.375t-.213.325l-3.6 3.6q-.325.325-.713.288t-.662-.313ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h6q.425 0 .713.288T12 4q0 .425-.288.713T11 5H5v14h6q.425 0 .713.288T12 20q0 .425-.288.713T11 21H5Z"},null,-1),wre=[xre];function Ere(t,e){return te(),ie("svg",bre,wre)}const Tre={name:"material-symbols-logout-rounded",render:Ere},kre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Cre=V("path",{fill:"currentColor",d:"M12 5q-.425 0-.713-.288T11 4V2q0-.425.288-.713T12 1q.425 0 .713.288T13 2v2q0 .425-.288.713T12 5Zm4.95 2.05q-.275-.275-.275-.687t.275-.713l1.4-1.425q.3-.3.712-.3t.713.3q.275.275.275.7t-.275.7L18.35 7.05q-.275.275-.7.275t-.7-.275ZM20 13q-.425 0-.713-.288T19 12q0-.425.288-.713T20 11h2q.425 0 .713.288T23 12q0 .425-.288.713T22 13h-2Zm-8 10q-.425 0-.713-.288T11 22v-2q0-.425.288-.713T12 19q.425 0 .713.288T13 20v2q0 .425-.288.713T12 23ZM5.65 7.05l-1.425-1.4q-.3-.3-.3-.725t.3-.7q.275-.275.7-.275t.7.275L7.05 5.65q.275.275.275.7t-.275.7q-.3.275-.7.275t-.7-.275Zm12.7 12.725l-1.4-1.425q-.275-.3-.275-.713t.275-.687q.275-.275.688-.275t.712.275l1.425 1.4q.3.275.288.7t-.288.725q-.3.3-.725.3t-.7-.3ZM2 13q-.425 0-.713-.288T1 12q0-.425.288-.713T2 11h2q.425 0 .713.288T5 12q0 .425-.288.713T4 13H2Zm2.225 6.775q-.275-.275-.275-.7t.275-.7L5.65 16.95q.275-.275.687-.275t.713.275q.3.3.3.713t-.3.712l-1.4 1.4q-.3.3-.725.3t-.7-.3ZM12 18q-2.5 0-4.25-1.75T6 12q0-2.5 1.75-4.25T12 6q2.5 0 4.25 1.75T18 12q0 2.5-1.75 4.25T12 18Zm0-2q1.65 0 2.825-1.175T16 12q0-1.65-1.175-2.825T12 8q-1.65 0-2.825 1.175T8 12q0 1.65 1.175 2.825T12 16Zm0-4Z"},null,-1),Are=[Cre];function Sre(t,e){return te(),ie("svg",kre,Are)}const Ire={name:"material-symbols-sunny-outline-rounded",render:Sre},$re={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ore=V("path",{fill:"currentColor",d:"M8.65 20H6q-.825 0-1.413-.588T4 18v-2.65L2.075 13.4Q1.5 12.825 1.5 12t.575-1.4L4 8.65V6q0-.825.588-1.413T6 4h2.65l1.95-1.925Q11.175 1.5 12 1.5t1.4.575L15.35 4H18q.825 0 1.413.588T20 6v2.65l1.925 1.95q.575.575.575 1.4t-.575 1.4L20 15.35V18q0 .825-.588 1.413T18 20h-2.65l-1.95 1.925q-.575.575-1.4.575t-1.4-.575L8.65 20ZM12 12Zm0 5q2.075 0 3.538-1.463T17 12q0-2.075-1.463-3.538T12 7v10Zm0 3.5l2.5-2.5H18v-3.5l2.5-2.5L18 9.5V6h-3.5L12 3.5L9.5 6H6v3.5L3.5 12L6 14.5V18h3.5l2.5 2.5Z"},null,-1),Pre=[Ore];function Rre(t,e){return te(),ie("svg",$re,Pre)}const Lre={name:"material-symbols-brightness6-outline-rounded",render:Rre},Mre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Dre=V("path",{fill:"currentColor",d:"M12 21q-3.775 0-6.388-2.613T3 12q0-3.45 2.25-5.988T11 3.05q.625-.075.975.45t-.025 1.1q-.425.65-.638 1.375T11.1 7.5q0 2.25 1.575 3.825T16.5 12.9q.775 0 1.538-.225t1.362-.625q.525-.35 1.075-.037t.475.987q-.35 3.45-2.937 5.725T12 21Zm0-2q2.2 0 3.95-1.213t2.55-3.162q-.5.125-1 .2t-1 .075q-3.075 0-5.238-2.163T9.1 7.5q0-.5.075-1t.2-1q-1.95.8-3.163 2.55T5 12q0 2.9 2.05 4.95T12 19Zm-.25-6.75Z"},null,-1),Fre=[Dre];function Nre(t,e){return te(),ie("svg",Mre,Fre)}const zre={name:"material-symbols-dark-mode-outline-rounded",render:Nre};/** +`,["meta","exact","prevent"]),["enter"]))]},null,40,jte),[[tg,he(y)]])]),V("div",Hte,[V("button",{class:"icon-button",onClick:ce},[Wte,Be(He)]),V("button",{class:"icon-button",onClick:Ae},[Gte,Be(ze)]),V("div",Qte,[V("button",{class:"icon-button btn-send",onClick:R,disable:he(x)},[Yte,Be(We)],8,Kte)])])]),V("input",{ref_key:"fileInput",ref:o,style:{display:"none"},type:"file",multiple:"",onChange:T},null,544),V("input",{ref_key:"imageInput",ref:i,style:{display:"none"},type:"file",accept:"image/*, video/*",multiple:"",onChange:A},null,544)])}}});const Xte=gn(Zte,[["__scopeId","data-v-d30ba72e"]]),Jte={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ere=V("path",{fill:"currentColor",d:"M7 14h6.025q.425 0 .7-.288T14 13q0-.425-.288-.713T13 12H6.975q-.425 0-.7.288T6 13q0 .425.288.713T7 14Zm0-3h10.025q.425 0 .7-.288T18 10q0-.425-.288-.713T17 9H6.975q-.425 0-.7.288T6 10q0 .425.288.713T7 11Zm0-3h10.025q.425 0 .7-.288T18 7q0-.425-.288-.713T17 6H6.975q-.425 0-.7.288T6 7q0 .425.288.713T7 8ZM2 19.575V4q0-.825.588-1.413T4 2h16q.825 0 1.413.588T22 4v12q0 .825-.588 1.413T20 18H6l-2.3 2.3q-.475.475-1.088.213T2 19.575Zm2-2.4L5.175 16H20V4H4v13.175ZM4 4v13.175V4Z"},null,-1),tre=[ere];function rre(t,e){return te(),ie("svg",Jte,tre)}const nre={name:"material-symbols-chat-outline-rounded",render:rre},ore={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ire=V("path",{fill:"currentColor",d:"M16 20q-1.25 0-2.125-.875T13 17q0-1.25.875-2.125T16 14q.275 0 .525.038T17 14.2V7q0-.425.288-.713T18 6h3q.425 0 .713.288T22 7q0 .425-.288.713T21 8h-2v9q0 1.25-.875 2.125T16 20ZM4 8q-.425 0-.713-.288T3 7q0-.425.288-.713T4 6h10q.425 0 .713.288T15 7q0 .425-.288.713T14 8H4Zm0 4q-.425 0-.713-.288T3 11q0-.425.288-.713T4 10h10q.425 0 .713.288T15 11q0 .425-.288.713T14 12H4Zm0 4q-.425 0-.713-.288T3 15q0-.425.288-.713T4 14h6q.425 0 .713.288T11 15q0 .425-.288.713T10 16H4Z"},null,-1),are=[ire];function sre(t,e){return te(),ie("svg",ore,are)}const lre={name:"material-symbols-queue-music-rounded",render:sre},cre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},dre=V("path",{fill:"currentColor",d:"M3.75 22q-.325 0-.537-.213T3 21.25q0-.325.213-.537t.537-.213H5.5v-.75h-.75q-.325 0-.537-.213T4 19q0-.325.213-.537t.537-.213h.75v-.75H3.75q-.325 0-.537-.213T3 16.75q0-.325.213-.537T3.75 16H6q.425 0 .713.288T7 17v1q0 .425-.288.713T6 19q.425 0 .713.288T7 20v1q0 .425-.288.713T6 22H3.75Zm0-7q-.325 0-.537-.213T3 14.25v-2q0-.425.288-.713T4 11.25h1.5v-.75H3.75q-.325 0-.537-.213T3 9.75q0-.325.213-.537T3.75 9H6q.425 0 .713.288T7 10v1.75q0 .425-.288.713T6 12.75H4.5v.75h1.75q.325 0 .537.213T7 14.25q0 .325-.213.537T6.25 15h-2.5Zm1.5-7q-.325 0-.537-.213T4.5 7.25V3.5h-.75q-.325 0-.537-.213T3 2.75q0-.325.213-.537T3.75 2h1.5q.325 0 .537.213T6 2.75v4.5q0 .325-.213.537T5.25 8ZM10 19q-.425 0-.713-.288T9 18q0-.425.288-.713T10 17h10q.425 0 .713.288T21 18q0 .425-.288.713T20 19H10Zm0-6q-.425 0-.713-.288T9 12q0-.425.288-.713T10 11h10q.425 0 .713.288T21 12q0 .425-.288.713T20 13H10Zm0-6q-.425 0-.713-.288T9 6q0-.425.288-.713T10 5h10q.425 0 .713.288T21 6q0 .425-.288.713T20 7H10Z"},null,-1),ure=[dre];function fre(t,e){return te(),ie("svg",cre,ure)}const pre={name:"material-symbols-format-list-numbered-rounded",render:fre},hre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},mre=V("path",{fill:"currentColor",d:"M5 19q-.425 0-.713-.288T4 18q0-.425.288-.713T5 17h1v-7q0-2.075 1.25-3.688T10.5 4.2v-.7q0-.625.438-1.063T12 2q.625 0 1.063.438T13.5 3.5v.7q2 .5 3.25 2.113T18 10v7h1q.425 0 .713.288T20 18q0 .425-.288.713T19 19H5Zm7-7.5ZM12 22q-.825 0-1.413-.588T10 20h4q0 .825-.588 1.413T12 22Zm-4-5h8v-7q0-1.65-1.175-2.825T12 6q-1.65 0-2.825 1.175T8 10v7Z"},null,-1),vre=[mre];function gre(t,e){return te(),ie("svg",hre,vre)}const _re={name:"material-symbols-notifications-outline-rounded",render:gre},yre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},bre=V("path",{fill:"currentColor",d:"M15.325 16.275q-.275-.325-.275-.737t.275-.688l1.85-1.85H10q-.425 0-.713-.288T9 12q0-.425.288-.713T10 11h7.175l-1.85-1.85q-.3-.3-.3-.713t.3-.712q.275-.3.688-.3t.687.275l3.6 3.6q.15.15.213.325t.062.375q0 .2-.062.375t-.213.325l-3.6 3.6q-.325.325-.713.288t-.662-.313ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h6q.425 0 .713.288T12 4q0 .425-.288.713T11 5H5v14h6q.425 0 .713.288T12 20q0 .425-.288.713T11 21H5Z"},null,-1),xre=[bre];function wre(t,e){return te(),ie("svg",yre,xre)}const Ere={name:"material-symbols-logout-rounded",render:wre},Tre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},kre=V("path",{fill:"currentColor",d:"M12 5q-.425 0-.713-.288T11 4V2q0-.425.288-.713T12 1q.425 0 .713.288T13 2v2q0 .425-.288.713T12 5Zm4.95 2.05q-.275-.275-.275-.687t.275-.713l1.4-1.425q.3-.3.712-.3t.713.3q.275.275.275.7t-.275.7L18.35 7.05q-.275.275-.7.275t-.7-.275ZM20 13q-.425 0-.713-.288T19 12q0-.425.288-.713T20 11h2q.425 0 .713.288T23 12q0 .425-.288.713T22 13h-2Zm-8 10q-.425 0-.713-.288T11 22v-2q0-.425.288-.713T12 19q.425 0 .713.288T13 20v2q0 .425-.288.713T12 23ZM5.65 7.05l-1.425-1.4q-.3-.3-.3-.725t.3-.7q.275-.275.7-.275t.7.275L7.05 5.65q.275.275.275.7t-.275.7q-.3.275-.7.275t-.7-.275Zm12.7 12.725l-1.4-1.425q-.275-.3-.275-.713t.275-.687q.275-.275.688-.275t.712.275l1.425 1.4q.3.275.288.7t-.288.725q-.3.3-.725.3t-.7-.3ZM2 13q-.425 0-.713-.288T1 12q0-.425.288-.713T2 11h2q.425 0 .713.288T5 12q0 .425-.288.713T4 13H2Zm2.225 6.775q-.275-.275-.275-.7t.275-.7L5.65 16.95q.275-.275.687-.275t.713.275q.3.3.3.713t-.3.712l-1.4 1.4q-.3.3-.725.3t-.7-.3ZM12 18q-2.5 0-4.25-1.75T6 12q0-2.5 1.75-4.25T12 6q2.5 0 4.25 1.75T18 12q0 2.5-1.75 4.25T12 18Zm0-2q1.65 0 2.825-1.175T16 12q0-1.65-1.175-2.825T12 8q-1.65 0-2.825 1.175T8 12q0 1.65 1.175 2.825T12 16Zm0-4Z"},null,-1),Cre=[kre];function Are(t,e){return te(),ie("svg",Tre,Cre)}const Sre={name:"material-symbols-sunny-outline-rounded",render:Are},Ire={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},$re=V("path",{fill:"currentColor",d:"M8.65 20H6q-.825 0-1.413-.588T4 18v-2.65L2.075 13.4Q1.5 12.825 1.5 12t.575-1.4L4 8.65V6q0-.825.588-1.413T6 4h2.65l1.95-1.925Q11.175 1.5 12 1.5t1.4.575L15.35 4H18q.825 0 1.413.588T20 6v2.65l1.925 1.95q.575.575.575 1.4t-.575 1.4L20 15.35V18q0 .825-.588 1.413T18 20h-2.65l-1.95 1.925q-.575.575-1.4.575t-1.4-.575L8.65 20ZM12 12Zm0 5q2.075 0 3.538-1.463T17 12q0-2.075-1.463-3.538T12 7v10Zm0 3.5l2.5-2.5H18v-3.5l2.5-2.5L18 9.5V6h-3.5L12 3.5L9.5 6H6v3.5L3.5 12L6 14.5V18h3.5l2.5 2.5Z"},null,-1),Ore=[$re];function Pre(t,e){return te(),ie("svg",Ire,Ore)}const Rre={name:"material-symbols-brightness6-outline-rounded",render:Pre},Lre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Mre=V("path",{fill:"currentColor",d:"M12 21q-3.775 0-6.388-2.613T3 12q0-3.45 2.25-5.988T11 3.05q.625-.075.975.45t-.025 1.1q-.425.65-.638 1.375T11.1 7.5q0 2.25 1.575 3.825T16.5 12.9q.775 0 1.538-.225t1.362-.625q.525-.35 1.075-.037t.475.987q-.35 3.45-2.937 5.725T12 21Zm0-2q2.2 0 3.95-1.213t2.55-3.162q-.5.125-1 .2t-1 .075q-3.075 0-5.238-2.163T9.1 7.5q0-.5.075-1t.2-1q-1.95.8-3.163 2.55T5 12q0 2.9 2.05 4.95T12 19Zm-.25-6.75Z"},null,-1),Dre=[Mre];function Fre(t,e){return te(),ie("svg",Lre,Dre)}const Nre={name:"material-symbols-dark-mode-outline-rounded",render:Fre};/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const xh=["ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"];xh.map(wh);function wh(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}function Qd(t,{focusable:e}={}){if(e!==!1&&t.addInitializer(r=>{r.addController({hostConnected(){r.hasAttribute("tabindex")||(r.tabIndex=0)}})}),!("role"in Element.prototype)){for(const r of xh)t.createProperty(r,{attribute:wh(r),reflect:!0});t.createProperty("role",{reflect:!0})}}function Kd(t,e){if(qre(e))return e;if(!("role"in t))throw new Error("Missing setupHostAria()");let r=[],n=!1;for(const i of xh){let a=null;Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get(){return a},set(c){const d=()=>{if(a=c,!n){r.push({property:i,callback:d});return}t[i]=c};d()}})}let o=null;return Object.defineProperty(e,"role",{enumerable:!0,configurable:!0,get(){return o},set(i){const a=()=>{if(o=i,!n){r.push({property:"role",callback:a});return}i===null?t.removeAttribute("role"):t.setAttribute("role",i)};a()}}),t.addController({hostConnected(){if(n)return;n=!0;const i=new Set;for(const{property:a}of r)(t.getAttribute(wh(a))!==null||t[a]!==void 0)&&i.add(a);for(const{property:a,callback:c}of r)i.has(a)||c();r=[]}}),e}function qre(t){return"role"in t}/** +*/const xh=["ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"];xh.map(wh);function wh(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}function Qd(t,{focusable:e}={}){if(e!==!1&&t.addInitializer(r=>{r.addController({hostConnected(){r.hasAttribute("tabindex")||(r.tabIndex=0)}})}),!("role"in Element.prototype)){for(const r of xh)t.createProperty(r,{attribute:wh(r),reflect:!0});t.createProperty("role",{reflect:!0})}}function Kd(t,e){if(zre(e))return e;if(!("role"in t))throw new Error("Missing setupHostAria()");let r=[],n=!1;for(const i of xh){let a=null;Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get(){return a},set(c){const d=()=>{if(a=c,!n){r.push({property:i,callback:d});return}t[i]=c};d()}})}let o=null;return Object.defineProperty(e,"role",{enumerable:!0,configurable:!0,get(){return o},set(i){const a=()=>{if(o=i,!n){r.push({property:"role",callback:a});return}i===null?t.removeAttribute("role"):t.setAttribute("role",i)};a()}}),t.addController({hostConnected(){if(n)return;n=!0;const i=new Set;for(const{property:a}of r)(t.getAttribute(wh(a))!==null||t[a]!==void 0)&&i.add(a);for(const{property:a,callback:c}of r)i.has(a)||c();r=[]}}),e}function zre(t){return"role"in t}/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 @@ -1409,55 +1409,55 @@ function print() { __p += __j.call(arguments, '') } * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class Bre extends Eh{getRenderClasses(){return{...super.getRenderClasses(),"md3-segmented-button-set--outlined":!0}}}/** +*/class qre extends Eh{getRenderClasses(){return{...super.getRenderClasses(),"md3-segmented-button-set--outlined":!0}}}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const Ure=Ve`:host{--_container-height: var(--md-outlined-segmented-button-container-height, 40px);--_disabled-icon-color: var(--md-outlined-segmented-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-color: var(--md-outlined-segmented-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-color: var(--md-outlined-segmented-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-outlined-segmented-button-hover-state-layer-opacity, 0.08);--_label-text-font: var(--md-outlined-segmented-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-segmented-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-segmented-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-segmented-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-segmented-button-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-opacity: var(--md-outlined-segmented-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-outlined-segmented-button-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-icon-color: var(--md-outlined-segmented-button-selected-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-focus-label-text-color: var(--md-outlined-segmented-button-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-icon-color: var(--md-outlined-segmented-button-selected-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-outlined-segmented-button-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-outlined-segmented-button-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-label-text-color: var(--md-outlined-segmented-button-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-icon-color: var(--md-outlined-segmented-button-selected-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-label-text-color: var(--md-outlined-segmented-button-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-outlined-segmented-button-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_shape: var(--md-outlined-segmented-button-shape, 9999px);--_unselected-focus-icon-color: var(--md-outlined-segmented-button-unselected-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-focus-label-text-color: var(--md-outlined-segmented-button-unselected-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-icon-color: var(--md-outlined-segmented-button-unselected-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-label-text-color: var(--md-outlined-segmented-button-unselected-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-state-layer-color: var(--md-outlined-segmented-button-unselected-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-label-text-color: var(--md-outlined-segmented-button-unselected-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-icon-color: var(--md-outlined-segmented-button-unselected-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-label-text-color: var(--md-outlined-segmented-button-unselected-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-state-layer-color: var(--md-outlined-segmented-button-unselected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_icon-size: var(--md-outlined-segmented-button-icon-size, 18px);--_selected-icon-color: var(--md-outlined-segmented-button-selected-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_unselected-icon-color: var(--md-outlined-segmented-button-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_shape-start-start: var( --md-outlined-segmented-button-shape-start-start, var(--_shape) );--_shape-start-end: var( --md-outlined-segmented-button-shape-start-end, var(--_shape) );--_shape-end-end: var( --md-outlined-segmented-button-shape-end-end, var(--_shape) );--_shape-end-start: var( --md-outlined-segmented-button-shape-end-start, var(--_shape) )}/*# sourceMappingURL=outlined-styles.css.map */ + */const Bre=Ve`:host{--_container-height: var(--md-outlined-segmented-button-container-height, 40px);--_disabled-icon-color: var(--md-outlined-segmented-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-color: var(--md-outlined-segmented-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-color: var(--md-outlined-segmented-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-outlined-segmented-button-hover-state-layer-opacity, 0.08);--_label-text-font: var(--md-outlined-segmented-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-segmented-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-segmented-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-segmented-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-segmented-button-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-opacity: var(--md-outlined-segmented-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-outlined-segmented-button-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-icon-color: var(--md-outlined-segmented-button-selected-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-focus-label-text-color: var(--md-outlined-segmented-button-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-icon-color: var(--md-outlined-segmented-button-selected-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-outlined-segmented-button-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-outlined-segmented-button-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-label-text-color: var(--md-outlined-segmented-button-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-icon-color: var(--md-outlined-segmented-button-selected-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-label-text-color: var(--md-outlined-segmented-button-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-outlined-segmented-button-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_shape: var(--md-outlined-segmented-button-shape, 9999px);--_unselected-focus-icon-color: var(--md-outlined-segmented-button-unselected-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-focus-label-text-color: var(--md-outlined-segmented-button-unselected-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-icon-color: var(--md-outlined-segmented-button-unselected-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-label-text-color: var(--md-outlined-segmented-button-unselected-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-state-layer-color: var(--md-outlined-segmented-button-unselected-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-label-text-color: var(--md-outlined-segmented-button-unselected-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-icon-color: var(--md-outlined-segmented-button-unselected-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-label-text-color: var(--md-outlined-segmented-button-unselected-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-state-layer-color: var(--md-outlined-segmented-button-unselected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_icon-size: var(--md-outlined-segmented-button-icon-size, 18px);--_selected-icon-color: var(--md-outlined-segmented-button-selected-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_unselected-icon-color: var(--md-outlined-segmented-button-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_shape-start-start: var( --md-outlined-segmented-button-shape-start-start, var(--_shape) );--_shape-start-end: var( --md-outlined-segmented-button-shape-start-end, var(--_shape) );--_shape-end-end: var( --md-outlined-segmented-button-shape-end-end, var(--_shape) );--_shape-end-start: var( --md-outlined-segmented-button-shape-end-start, var(--_shape) )}/*# sourceMappingURL=outlined-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const Vre=Ve`:host{display:flex;outline:none}.md3-segmented-button-set{display:grid;grid-auto-columns:1fr;grid-auto-flow:column;grid-auto-rows:auto;width:100%;height:var(--_container-height)}.md3-segmented-button-set ::slotted(:first-child){border-start-start-radius:var(--_shape-start-start);border-end-start-radius:var(--_shape-end-start)}.md3-segmented-button-set ::slotted(:last-child){border-start-end-radius:var(--_shape-start-end);border-end-end-radius:var(--_shape-end-end)}/*# sourceMappingURL=shared-styles.css.map */ +*/const Ure=Ve`:host{display:flex;outline:none}.md3-segmented-button-set{display:grid;grid-auto-columns:1fr;grid-auto-flow:column;grid-auto-rows:auto;width:100%;height:var(--_container-height)}.md3-segmented-button-set ::slotted(:first-child){border-start-start-radius:var(--_shape-start-start);border-end-start-radius:var(--_shape-end-start)}.md3-segmented-button-set ::slotted(:last-child){border-start-end-radius:var(--_shape-start-end);border-end-end-radius:var(--_shape-end-end)}/*# sourceMappingURL=shared-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let u_=class extends Bre{};u_.styles=[Vre,Ure];u_=P([rt("md-outlined-segmented-button-set")],u_);/** +*/let u_=class extends qre{};u_.styles=[Ure,Bre];u_=P([rt("md-outlined-segmented-button-set")],u_);/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const O3=Symbol("attachableController");let Qf;Qf=new MutationObserver(t=>{var e;for(const r of t)(e=r.target[O3])==null||e.hostConnected()});class P3{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(e){e===null?this.host.removeAttribute("for"):this.host.setAttribute("for",e)}get control(){return this.host.hasAttribute("for")?!this.htmlFor||!this.host.isConnected?null:this.host.getRootNode().querySelector(`#${this.htmlFor}`):this.currentControl||this.host.parentElement}set control(e){e?this.attach(e):this.detach()}constructor(e,r){this.host=e,this.onControlChange=r,this.currentControl=null,e.addController(this),e[O3]=this,Qf==null||Qf.observe(e,{attributeFilter:["for"]})}attach(e){e!==this.currentControl&&(this.setCurrentControl(e),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(e){this.onControlChange(this.currentControl,e),this.currentControl=e}}/** +*/const $3=Symbol("attachableController");let Qf;Qf=new MutationObserver(t=>{var e;for(const r of t)(e=r.target[$3])==null||e.hostConnected()});class O3{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(e){e===null?this.host.removeAttribute("for"):this.host.setAttribute("for",e)}get control(){return this.host.hasAttribute("for")?!this.htmlFor||!this.host.isConnected?null:this.host.getRootNode().querySelector(`#${this.htmlFor}`):this.currentControl||this.host.parentElement}set control(e){e?this.attach(e):this.detach()}constructor(e,r){this.host=e,this.onControlChange=r,this.currentControl=null,e.addController(this),e[$3]=this,Qf==null||Qf.observe(e,{attributeFilter:["for"]})}attach(e){e!==this.currentControl&&(this.setCurrentControl(e),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(e){this.onControlChange(this.currentControl,e),this.currentControl=e}}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const jre=["focusin","focusout","pointerdown"];class v0 extends lt{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new P3(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){var r;if(!e[eT]){switch(e.type){default:return;case"focusin":this.visible=((r=this.control)==null?void 0:r.matches(":focus-visible"))??!1;break;case"focusout":case"pointerdown":this.visible=!1;break}e[eT]=!0}}onControlChange(e,r){for(const n of jre)e==null||e.removeEventListener(n,this),r==null||r.addEventListener(n,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}}P([Q({type:Boolean,reflect:!0})],v0.prototype,"visible",void 0);P([Q({type:Boolean,reflect:!0})],v0.prototype,"inward",void 0);const eT=Symbol("handledByFocusRing");/** +*/const Vre=["focusin","focusout","pointerdown"];class v0 extends lt{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new O3(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){var r;if(!e[eT]){switch(e.type){default:return;case"focusin":this.visible=((r=this.control)==null?void 0:r.matches(":focus-visible"))??!1;break;case"focusout":case"pointerdown":this.visible=!1;break}e[eT]=!0}}onControlChange(e,r){for(const n of Vre)e==null||e.removeEventListener(n,this),r==null||r.addEventListener(n,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}}P([Q({type:Boolean,reflect:!0})],v0.prototype,"visible",void 0);P([Q({type:Boolean,reflect:!0})],v0.prototype,"inward",void 0);const eT=Symbol("handledByFocusRing");/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const Hre=Ve`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}/*# sourceMappingURL=focus-ring-styles.css.map */ +*/const jre=Ve`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}/*# sourceMappingURL=focus-ring-styles.css.map */ `;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let f_=class extends v0{};f_.styles=[Hre];f_=P([rt("md-focus-ring")],f_);/** +*/let f_=class extends v0{};f_.styles=[jre];f_=P([rt("md-focus-ring")],f_);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const po={STANDARD:"cubic-bezier(0.2, 0, 0, 1)",STANDARD_ACCELERATE:"cubic-bezier(.3,0,1,1)",STANDARD_DECELERATE:"cubic-bezier(0,0,0,1)",EMPHASIZED:"cubic-bezier(.3,0,0,1)",EMPHASIZED_ACCELERATE:"cubic-bezier(.3,0,.8,.15)",EMPHASIZED_DECELERATE:"cubic-bezier(.05,.7,.1,1)"};function Wre(){let t=null;return{start(){return t==null||t.abort(),t=new AbortController,t.signal},finish(){t=null}}}/** +*/const po={STANDARD:"cubic-bezier(0.2, 0, 0, 1)",STANDARD_ACCELERATE:"cubic-bezier(.3,0,1,1)",STANDARD_DECELERATE:"cubic-bezier(0,0,0,1)",EMPHASIZED:"cubic-bezier(.3,0,0,1)",EMPHASIZED_ACCELERATE:"cubic-bezier(.3,0,.8,.15)",EMPHASIZED_DECELERATE:"cubic-bezier(.05,.7,.1,1)"};function Hre(){let t=null;return{start(){return t==null||t.abort(),t=new AbortController,t.signal},finish(){t=null}}}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const Gre=450,tT=225,Qre=.2,Kre=10,Yre=75,Zre=.35,Xre="::after",Jre="forwards";var en;(function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(en||(en={}));const ene=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],tne=150;class Yd extends lt{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=en.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new P3(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return _e`
`}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==en.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state===en.HOLDING){this.state=en.WAITING_FOR_CLICK;return}if(this.state===en.TOUCH_DELAY){this.state=en.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e)){this.state=en.WAITING_FOR_CLICK,this.startPressAnimation(e);return}this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=en.TOUCH_DELAY,await new Promise(r=>{setTimeout(r,tne)}),this.state===en.TOUCH_DELAY&&(this.state=en.HOLDING,this.startPressAnimation(e)))}}handleClick(){if(!this.disabled){if(this.state===en.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===en.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:r}=this.getBoundingClientRect(),n=Math.max(e,r),o=Math.max(Zre*n,Yre),i=Math.floor(n*Qre),c=Math.sqrt(r**2+e**2)+Kre;this.initialSize=i,this.rippleScale=`${(c+o)/i}`,this.rippleSize=`${i}px`}getNormalizedPointerEventCoords(e){const{scrollX:r,scrollY:n}=window,{left:o,top:i}=this.getBoundingClientRect(),a=r+o,c=n+i,{pageX:d,pageY:u}=e;return{x:d-a,y:u-c}}getTranslationCoordinates(e){const{height:r,width:n}=this.getBoundingClientRect(),o={x:(n-this.initialSize)/2,y:(r-this.initialSize)/2};let i;return e instanceof PointerEvent?i=this.getNormalizedPointerEventCoords(e):i={x:n/2,y:r/2},i={x:i.x-this.initialSize/2,y:i.y-this.initialSize/2},{startPoint:i,endPoint:o}}startPressAnimation(e){var a;if(!this.mdRoot)return;this.pressed=!0,(a=this.growAnimation)==null||a.cancel(),this.determineRippleSize();const{startPoint:r,endPoint:n}=this.getTranslationCoordinates(e),o=`${r.x}px, ${r.y}px`,i=`${n.x}px, ${n.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${o}) scale(1)`,`translate(${i}) scale(${this.rippleScale})`]},{pseudoElement:Xre,duration:Gre,easing:po.STANDARD,fill:Jre})}async endPressAnimation(){this.state=en.INACTIVE;const e=this.growAnimation;let r=1/0;if(typeof(e==null?void 0:e.currentTime)=="number"?r=e.currentTime:e!=null&&e.currentTime&&(r=e.currentTime.to("ms").value),r>=tT){this.pressed=!1;return}await new Promise(n=>{setTimeout(n,tT-r)}),this.growAnimation===e&&(this.pressed=!1)}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if(e.type==="pointerenter"||e.type==="pointerleave")return!this.isTouch(e);const r=e.buttons===1;return this.isTouch(e)||r}inBounds({x:e,y:r}){const{top:n,left:o,bottom:i,right:a}=this.getBoundingClientRect();return e>=o&&e<=a&&r>=n&&r<=i}isTouch({pointerType:e}){return e==="touch"}async handleEvent(e){switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e);break}}onControlChange(e,r){for(const n of ene)e==null||e.removeEventListener(n,this),r==null||r.addEventListener(n,this)}}P([Q({type:Boolean,reflect:!0})],Yd.prototype,"disabled",void 0);P([It()],Yd.prototype,"hovered",void 0);P([It()],Yd.prototype,"pressed",void 0);P([wt(".surface")],Yd.prototype,"mdRoot",void 0);/** +*/const Wre=450,tT=225,Gre=.2,Qre=10,Kre=75,Yre=.35,Zre="::after",Xre="forwards";var en;(function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(en||(en={}));const Jre=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],ene=150;class Yd extends lt{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=en.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new O3(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return _e`
`}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==en.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state===en.HOLDING){this.state=en.WAITING_FOR_CLICK;return}if(this.state===en.TOUCH_DELAY){this.state=en.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e)){this.state=en.WAITING_FOR_CLICK,this.startPressAnimation(e);return}this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=en.TOUCH_DELAY,await new Promise(r=>{setTimeout(r,ene)}),this.state===en.TOUCH_DELAY&&(this.state=en.HOLDING,this.startPressAnimation(e)))}}handleClick(){if(!this.disabled){if(this.state===en.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===en.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:r}=this.getBoundingClientRect(),n=Math.max(e,r),o=Math.max(Yre*n,Kre),i=Math.floor(n*Gre),c=Math.sqrt(r**2+e**2)+Qre;this.initialSize=i,this.rippleScale=`${(c+o)/i}`,this.rippleSize=`${i}px`}getNormalizedPointerEventCoords(e){const{scrollX:r,scrollY:n}=window,{left:o,top:i}=this.getBoundingClientRect(),a=r+o,c=n+i,{pageX:d,pageY:u}=e;return{x:d-a,y:u-c}}getTranslationCoordinates(e){const{height:r,width:n}=this.getBoundingClientRect(),o={x:(n-this.initialSize)/2,y:(r-this.initialSize)/2};let i;return e instanceof PointerEvent?i=this.getNormalizedPointerEventCoords(e):i={x:n/2,y:r/2},i={x:i.x-this.initialSize/2,y:i.y-this.initialSize/2},{startPoint:i,endPoint:o}}startPressAnimation(e){var a;if(!this.mdRoot)return;this.pressed=!0,(a=this.growAnimation)==null||a.cancel(),this.determineRippleSize();const{startPoint:r,endPoint:n}=this.getTranslationCoordinates(e),o=`${r.x}px, ${r.y}px`,i=`${n.x}px, ${n.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${o}) scale(1)`,`translate(${i}) scale(${this.rippleScale})`]},{pseudoElement:Zre,duration:Wre,easing:po.STANDARD,fill:Xre})}async endPressAnimation(){this.state=en.INACTIVE;const e=this.growAnimation;let r=1/0;if(typeof(e==null?void 0:e.currentTime)=="number"?r=e.currentTime:e!=null&&e.currentTime&&(r=e.currentTime.to("ms").value),r>=tT){this.pressed=!1;return}await new Promise(n=>{setTimeout(n,tT-r)}),this.growAnimation===e&&(this.pressed=!1)}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if(e.type==="pointerenter"||e.type==="pointerleave")return!this.isTouch(e);const r=e.buttons===1;return this.isTouch(e)||r}inBounds({x:e,y:r}){const{top:n,left:o,bottom:i,right:a}=this.getBoundingClientRect();return e>=o&&e<=a&&r>=n&&r<=i}isTouch({pointerType:e}){return e==="touch"}async handleEvent(e){switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e);break}}onControlChange(e,r){for(const n of Jre)e==null||e.removeEventListener(n,this),r==null||r.addEventListener(n,this)}}P([Q({type:Boolean,reflect:!0})],Yd.prototype,"disabled",void 0);P([It()],Yd.prototype,"hovered",void 0);P([It()],Yd.prototype,"pressed",void 0);P([wt(".surface")],Yd.prototype,"mdRoot",void 0);/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const rne=Ve`:host{--_hover-color: var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-opacity: var(--md-ripple-hover-opacity, 0.08);--_pressed-color: var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-opacity: var(--md-ripple-pressed-opacity, 0.12);display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--_hover-color);inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--_pressed-color) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--_hover-color);opacity:var(--_hover-opacity)}.pressed::after{opacity:var(--_pressed-opacity);transition-duration:105ms}/*# sourceMappingURL=ripple-styles.css.map */ +*/const tne=Ve`:host{--_hover-color: var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-opacity: var(--md-ripple-hover-opacity, 0.08);--_pressed-color: var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-opacity: var(--md-ripple-pressed-opacity, 0.12);display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--_hover-color);inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--_pressed-color) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--_hover-color);opacity:var(--_hover-opacity)}.pressed::after{opacity:var(--_pressed-opacity);transition-duration:105ms}/*# sourceMappingURL=ripple-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let p_=class extends Yd{};p_.styles=[rne];p_=P([rt("md-ripple")],p_);/** +*/let p_=class extends Yd{};p_.styles=[tne];p_=P([rt("md-ripple")],p_);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 @@ -1505,39 +1505,39 @@ function print() { __p += __j.call(arguments, '') } * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class nne extends Ci{getRenderClasses(){return{...super.getRenderClasses(),"md3-segmented-button--outlined":!0}}renderOutline(){return _e``}}/** +*/class rne extends Ci{getRenderClasses(){return{...super.getRenderClasses(),"md3-segmented-button--outlined":!0}}renderOutline(){return _e``}}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const one=Ve`:host{--_container-height: var(--md-outlined-segmented-button-container-height, 40px);--_disabled-icon-color: var(--md-outlined-segmented-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-color: var(--md-outlined-segmented-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-color: var(--md-outlined-segmented-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-outlined-segmented-button-hover-state-layer-opacity, 0.08);--_label-text-font: var(--md-outlined-segmented-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-segmented-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-segmented-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-segmented-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-segmented-button-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-opacity: var(--md-outlined-segmented-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-outlined-segmented-button-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-icon-color: var(--md-outlined-segmented-button-selected-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-focus-label-text-color: var(--md-outlined-segmented-button-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-icon-color: var(--md-outlined-segmented-button-selected-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-outlined-segmented-button-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-outlined-segmented-button-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-label-text-color: var(--md-outlined-segmented-button-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-icon-color: var(--md-outlined-segmented-button-selected-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-label-text-color: var(--md-outlined-segmented-button-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-outlined-segmented-button-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_shape: var(--md-outlined-segmented-button-shape, 9999px);--_unselected-focus-icon-color: var(--md-outlined-segmented-button-unselected-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-focus-label-text-color: var(--md-outlined-segmented-button-unselected-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-icon-color: var(--md-outlined-segmented-button-unselected-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-label-text-color: var(--md-outlined-segmented-button-unselected-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-state-layer-color: var(--md-outlined-segmented-button-unselected-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-label-text-color: var(--md-outlined-segmented-button-unselected-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-icon-color: var(--md-outlined-segmented-button-unselected-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-label-text-color: var(--md-outlined-segmented-button-unselected-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-state-layer-color: var(--md-outlined-segmented-button-unselected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_icon-size: var(--md-outlined-segmented-button-icon-size, 18px);--_selected-icon-color: var(--md-outlined-segmented-button-selected-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_unselected-icon-color: var(--md-outlined-segmented-button-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_spacing-leading: var(--md-outlined-segmented-button-spacing-leading, 12px);--_spacing-trailing: var(--md-outlined-segmented-button-spacing-trailing, 12px)}.md3-segmented-button__outline{border-radius:inherit;border-style:solid;border-width:1px;inset:0px -0.5px;pointer-events:none;position:absolute}/*# sourceMappingURL=outlined-styles.css.map */ + */const nne=Ve`:host{--_container-height: var(--md-outlined-segmented-button-container-height, 40px);--_disabled-icon-color: var(--md-outlined-segmented-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-color: var(--md-outlined-segmented-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-color: var(--md-outlined-segmented-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-outlined-segmented-button-hover-state-layer-opacity, 0.08);--_label-text-font: var(--md-outlined-segmented-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-segmented-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-segmented-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-segmented-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-segmented-button-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-opacity: var(--md-outlined-segmented-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-outlined-segmented-button-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-icon-color: var(--md-outlined-segmented-button-selected-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-focus-label-text-color: var(--md-outlined-segmented-button-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-icon-color: var(--md-outlined-segmented-button-selected-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-outlined-segmented-button-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-outlined-segmented-button-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-label-text-color: var(--md-outlined-segmented-button-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-icon-color: var(--md-outlined-segmented-button-selected-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-label-text-color: var(--md-outlined-segmented-button-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-outlined-segmented-button-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_shape: var(--md-outlined-segmented-button-shape, 9999px);--_unselected-focus-icon-color: var(--md-outlined-segmented-button-unselected-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-focus-label-text-color: var(--md-outlined-segmented-button-unselected-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-icon-color: var(--md-outlined-segmented-button-unselected-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-label-text-color: var(--md-outlined-segmented-button-unselected-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-state-layer-color: var(--md-outlined-segmented-button-unselected-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-label-text-color: var(--md-outlined-segmented-button-unselected-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-icon-color: var(--md-outlined-segmented-button-unselected-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-label-text-color: var(--md-outlined-segmented-button-unselected-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-state-layer-color: var(--md-outlined-segmented-button-unselected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_icon-size: var(--md-outlined-segmented-button-icon-size, 18px);--_selected-icon-color: var(--md-outlined-segmented-button-selected-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_unselected-icon-color: var(--md-outlined-segmented-button-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_spacing-leading: var(--md-outlined-segmented-button-spacing-leading, 12px);--_spacing-trailing: var(--md-outlined-segmented-button-spacing-trailing, 12px)}.md3-segmented-button__outline{border-radius:inherit;border-style:solid;border-width:1px;inset:0px -0.5px;pointer-events:none;position:absolute}/*# sourceMappingURL=outlined-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const ine=Ve`@keyframes md3-segmented-button-checkmark-selection-draw-in{from{stroke-dashoffset:29.7833385}to{stroke-dashoffset:0}}@keyframes md3-segmented-button-simple-fade-out{from{opacity:1}to{opacity:0}}@keyframes md3-segmented-button-simple-fade-in{from{opacity:0}to{opacity:1}}:host{display:inline-flex;outline:none}.md3-segmented-button{align-items:center;background:rgba(0,0,0,0);border:none;border-radius:inherit;display:flex;flex:1;justify-content:center;outline:none;position:relative;vertical-align:middle;padding-inline-start:var(--_spacing-leading);padding-inline-end:var(--_spacing-trailing)}.md3-segmented-button .md3-segmented-button__outline{border-color:var(--_outline-color)}.md3-segmented-button:disabled .md3-segmented-button__outline{border-color:var(--_disabled-outline-color)}.md3-segmented-button .md3-segmented-button__graphic,.md3-segmented-button .md3-segmented-button__checkmark,.md3-segmented-button .md3-segmented-button__icon,.md3-segmented-button .md3-segmented-button__icon ::slotted([slot=icon]){height:var(--_icon-size);width:var(--_icon-size);font-size:var(--_icon-size)}.md3-segmented-button.md3-segmented-button--with-icon.md3-segmented-button--with-label .md3-segmented-button__graphic,.md3-segmented-button.md3-segmented-button--selected.md3-segmented-button--with-label.md3-segmented-button--with-checkmark .md3-segmented-button__graphic,.md3-segmented-button.md3-segmented-button--selected.md3-segmented-button--without-label.md3-segmented-button--with-checkmark .md3-segmented-button__graphic{width:calc(var(--_icon-size) + 8px)}.md3-segmented-button .md3-segmented-button__label-text{font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight)}.md3-segmented-button.md3-segmented-button--selected:enabled .md3-segmented-button__label-text{color:var(--_selected-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:hover .md3-segmented-button__label-text{color:var(--_selected-hover-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:focus .md3-segmented-button__label-text{color:var(--_selected-focus-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:active .md3-segmented-button__label-text{color:var(--_selected-pressed-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled .md3-segmented-button__label-text{color:var(--_unselected-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:hover .md3-segmented-button__label-text{color:var(--_unselected-hover-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:focus .md3-segmented-button__label-text{color:var(--_unselected-focus-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:active .md3-segmented-button__label-text{color:var(--_unselected-pressed-label-text-color)}.md3-segmented-button:disabled .md3-segmented-button__label-text{color:var(--_disabled-label-text-color)}.md3-segmented-button--unselected{--md-ripple-hover-color: var(--_unselected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_unselected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.md3-segmented-button--unselected .md3-segmented-button__icon{color:var(--_unselected-icon-color)}.md3-segmented-button--unselected:hover .md3-segmented-button__icon{color:var(--_unselected-hover-icon-color)}.md3-segmented-button--unselected:focus .md3-segmented-button__icon{color:var(--_unselected-focus-icon-color)}.md3-segmented-button--unselected:active .md3-segmented-button__icon{color:var(--_unselected-pressed-icon-color)}.md3-segmented-button--unselected:disabled .md3-segmented-button__icon{color:var(--_disabled-icon-color)}.md3-segmented-button--selected{background-color:var(--_selected-container-color);--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.md3-segmented-button--selected .md3-segmented-button__icon{color:var(--_selected-icon-color)}.md3-segmented-button--selected .md3-segmented-button__checkmark-path{stroke:var(--_selected-icon-color)}.md3-segmented-button--selected:hover .md3-segmented-button__checkmark-path{stroke:var(--_selected-hover-icon-color)}.md3-segmented-button--selected:focus .md3-segmented-button__checkmark-path{stroke:var(--_selected-focus-icon-color)}.md3-segmented-button--selected:active .md3-segmented-button__checkmark-path{stroke:var(--_selected-pressed-icon-color)}.md3-segmented-button--selected:disabled .md3-segmented-button__checkmark-path{stroke:var(--_disabled-icon-color)}.md3-segmented-button:enabled{cursor:pointer}.md3-segmented-button__focus-ring{z-index:1}.md3-segmented-button__ripple{border-radius:inherit;z-index:0}.md3-segmented-button__touch{position:absolute;top:50%;height:48px;left:50%;width:100%;transform:translate(-50%, -50%)}.md3-segmented-button__leading,.md3-segmented-button__graphic{display:inline-flex;justify-content:flex-start;align-items:center}.md3-segmented-button__graphic{position:relative;overflow:hidden}.md3-segmented-button__graphic{transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.md3-segmented-button--unselected.md3-segmented-button--with-label .md3-segmented-button__graphic,.md3-segmented-button--unselected.md3-segmented-button--without-label .md3-segmented-button__graphic,.md3-segmented-button--selected.md3-segmented-button--without-checkmark .md3-segmented-button__graphic{width:0}.md3-segmented-button--unselected .md3-segmented-button__checkmark{opacity:0}.md3-segmented-button--selected.md3-segmented-button--with-label .md3-segmented-button__icon{opacity:0}.md3-segmented-button--with-label .md3-segmented-button__checkmark{display:inline-flex;position:absolute}.md3-segmented-button__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385}.md3-segmented-button--selecting .md3-segmented-button__checkmark-path{stroke-dashoffset:29.7833385;animation:md3-segmented-button-checkmark-selection-draw-in;animation-duration:150ms;animation-delay:50ms;animation-fill-mode:forwards;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.md3-segmented-button--selecting.md3-segmented-button--with-label .md3-segmented-button__icon{animation:md3-segmented-button-simple-fade-out;animation-duration:75ms;animation-timing-function:linear;animation-fill-mode:forwards}.md3-segmented-button--deselecting .md3-segmented-button__checkmark{animation:md3-segmented-button-simple-fade-out;animation-duration:50ms;animation-timing-function:linear;animation-fill-mode:forwards}.md3-segmented-button--deselecting.md3-segmented-button--with-label .md3-segmented-button__icon{opacity:0;animation:md3-segmented-button-simple-fade-in;animation-delay:50ms;animation-duration:150ms;animation-timing-function:linear;animation-fill-mode:forwards}/*# sourceMappingURL=shared-styles.css.map */ +*/const one=Ve`@keyframes md3-segmented-button-checkmark-selection-draw-in{from{stroke-dashoffset:29.7833385}to{stroke-dashoffset:0}}@keyframes md3-segmented-button-simple-fade-out{from{opacity:1}to{opacity:0}}@keyframes md3-segmented-button-simple-fade-in{from{opacity:0}to{opacity:1}}:host{display:inline-flex;outline:none}.md3-segmented-button{align-items:center;background:rgba(0,0,0,0);border:none;border-radius:inherit;display:flex;flex:1;justify-content:center;outline:none;position:relative;vertical-align:middle;padding-inline-start:var(--_spacing-leading);padding-inline-end:var(--_spacing-trailing)}.md3-segmented-button .md3-segmented-button__outline{border-color:var(--_outline-color)}.md3-segmented-button:disabled .md3-segmented-button__outline{border-color:var(--_disabled-outline-color)}.md3-segmented-button .md3-segmented-button__graphic,.md3-segmented-button .md3-segmented-button__checkmark,.md3-segmented-button .md3-segmented-button__icon,.md3-segmented-button .md3-segmented-button__icon ::slotted([slot=icon]){height:var(--_icon-size);width:var(--_icon-size);font-size:var(--_icon-size)}.md3-segmented-button.md3-segmented-button--with-icon.md3-segmented-button--with-label .md3-segmented-button__graphic,.md3-segmented-button.md3-segmented-button--selected.md3-segmented-button--with-label.md3-segmented-button--with-checkmark .md3-segmented-button__graphic,.md3-segmented-button.md3-segmented-button--selected.md3-segmented-button--without-label.md3-segmented-button--with-checkmark .md3-segmented-button__graphic{width:calc(var(--_icon-size) + 8px)}.md3-segmented-button .md3-segmented-button__label-text{font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight)}.md3-segmented-button.md3-segmented-button--selected:enabled .md3-segmented-button__label-text{color:var(--_selected-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:hover .md3-segmented-button__label-text{color:var(--_selected-hover-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:focus .md3-segmented-button__label-text{color:var(--_selected-focus-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:active .md3-segmented-button__label-text{color:var(--_selected-pressed-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled .md3-segmented-button__label-text{color:var(--_unselected-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:hover .md3-segmented-button__label-text{color:var(--_unselected-hover-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:focus .md3-segmented-button__label-text{color:var(--_unselected-focus-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:active .md3-segmented-button__label-text{color:var(--_unselected-pressed-label-text-color)}.md3-segmented-button:disabled .md3-segmented-button__label-text{color:var(--_disabled-label-text-color)}.md3-segmented-button--unselected{--md-ripple-hover-color: var(--_unselected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_unselected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.md3-segmented-button--unselected .md3-segmented-button__icon{color:var(--_unselected-icon-color)}.md3-segmented-button--unselected:hover .md3-segmented-button__icon{color:var(--_unselected-hover-icon-color)}.md3-segmented-button--unselected:focus .md3-segmented-button__icon{color:var(--_unselected-focus-icon-color)}.md3-segmented-button--unselected:active .md3-segmented-button__icon{color:var(--_unselected-pressed-icon-color)}.md3-segmented-button--unselected:disabled .md3-segmented-button__icon{color:var(--_disabled-icon-color)}.md3-segmented-button--selected{background-color:var(--_selected-container-color);--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.md3-segmented-button--selected .md3-segmented-button__icon{color:var(--_selected-icon-color)}.md3-segmented-button--selected .md3-segmented-button__checkmark-path{stroke:var(--_selected-icon-color)}.md3-segmented-button--selected:hover .md3-segmented-button__checkmark-path{stroke:var(--_selected-hover-icon-color)}.md3-segmented-button--selected:focus .md3-segmented-button__checkmark-path{stroke:var(--_selected-focus-icon-color)}.md3-segmented-button--selected:active .md3-segmented-button__checkmark-path{stroke:var(--_selected-pressed-icon-color)}.md3-segmented-button--selected:disabled .md3-segmented-button__checkmark-path{stroke:var(--_disabled-icon-color)}.md3-segmented-button:enabled{cursor:pointer}.md3-segmented-button__focus-ring{z-index:1}.md3-segmented-button__ripple{border-radius:inherit;z-index:0}.md3-segmented-button__touch{position:absolute;top:50%;height:48px;left:50%;width:100%;transform:translate(-50%, -50%)}.md3-segmented-button__leading,.md3-segmented-button__graphic{display:inline-flex;justify-content:flex-start;align-items:center}.md3-segmented-button__graphic{position:relative;overflow:hidden}.md3-segmented-button__graphic{transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.md3-segmented-button--unselected.md3-segmented-button--with-label .md3-segmented-button__graphic,.md3-segmented-button--unselected.md3-segmented-button--without-label .md3-segmented-button__graphic,.md3-segmented-button--selected.md3-segmented-button--without-checkmark .md3-segmented-button__graphic{width:0}.md3-segmented-button--unselected .md3-segmented-button__checkmark{opacity:0}.md3-segmented-button--selected.md3-segmented-button--with-label .md3-segmented-button__icon{opacity:0}.md3-segmented-button--with-label .md3-segmented-button__checkmark{display:inline-flex;position:absolute}.md3-segmented-button__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385}.md3-segmented-button--selecting .md3-segmented-button__checkmark-path{stroke-dashoffset:29.7833385;animation:md3-segmented-button-checkmark-selection-draw-in;animation-duration:150ms;animation-delay:50ms;animation-fill-mode:forwards;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.md3-segmented-button--selecting.md3-segmented-button--with-label .md3-segmented-button__icon{animation:md3-segmented-button-simple-fade-out;animation-duration:75ms;animation-timing-function:linear;animation-fill-mode:forwards}.md3-segmented-button--deselecting .md3-segmented-button__checkmark{animation:md3-segmented-button-simple-fade-out;animation-duration:50ms;animation-timing-function:linear;animation-fill-mode:forwards}.md3-segmented-button--deselecting.md3-segmented-button--with-label .md3-segmented-button__icon{opacity:0;animation:md3-segmented-button-simple-fade-in;animation-delay:50ms;animation-duration:150ms;animation-timing-function:linear;animation-fill-mode:forwards}/*# sourceMappingURL=shared-styles.css.map */ `;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let h_=class extends nne{};h_.styles=[ine,one];h_=P([rt("md-outlined-segmented-button")],h_);const ane=t=>(_i("data-v-2b618255"),t=t(),yi(),t),sne={class:"theme-changer"},lne={id:"hex"},cne={class:"label"},dne={class:"input-wrapper"},une={class:"overflow"},fne=["value"],pne=ane(()=>V("md-focus-ring",{for:"color-input"},null,-1)),hne=["selected"],mne=["selected"],vne=["selected"],gne=Bt({__name:"ThemeChanger",setup(t){const e=Se(Sb()),r=Se(gp());function n(i){const{button:a}=i.detail,c=a.dataset.value;r.value=c,KC(c)}function o(i){e.value=i.target.value,QC(e.value)}return(i,a)=>{const c=zre,d=Lre,u=Ire;return te(),ie("div",sne,[V("div",null,[V("label",lne,[V("span",cne,Ne(i.$t("color")),1),V("span",dne,[V("div",une,[V("input",{id:"color-input",onInput:o,type:"color",value:e.value},null,40,fne)]),pne])])]),V("md-outlined-segmented-button-set",{onSegmentedButtonSetSelection:n},[V("md-outlined-segmented-button",{"data-value":"dark",selected:r.value==="dark"},[Be(c,{slot:"icon"})],8,hne),V("md-outlined-segmented-button",{"data-value":"auto",selected:r.value==="auto"},[Be(d,{slot:"icon"})],8,mne),V("md-outlined-segmented-button",{"data-value":"light",selected:r.value==="light"},[Be(u,{slot:"icon"})],8,vne)],32)])}}});const _ne=gn(gne,[["__scopeId","data-v-2b618255"]]),yne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},bne=V("path",{fill:"currentColor",d:"M12 22q-2.05 0-3.875-.788t-3.188-2.15q-1.362-1.362-2.15-3.187T2 12q0-2.075.813-3.9t2.2-3.175Q6.4 3.575 8.25 2.788T12.2 2q2 0 3.775.688t3.113 1.9q1.337 1.212 2.125 2.875T22 11.05q0 2.875-1.75 4.413T16 17h-1.85q-.225 0-.313.125t-.087.275q0 .3.375.863t.375 1.287q0 1.25-.688 1.85T12 22Zm0-10Zm-5.5 1q.65 0 1.075-.425T8 11.5q0-.65-.425-1.075T6.5 10q-.65 0-1.075.425T5 11.5q0 .65.425 1.075T6.5 13Zm3-4q.65 0 1.075-.425T11 7.5q0-.65-.425-1.075T9.5 6q-.65 0-1.075.425T8 7.5q0 .65.425 1.075T9.5 9Zm5 0q.65 0 1.075-.425T16 7.5q0-.65-.425-1.075T14.5 6q-.65 0-1.075.425T13 7.5q0 .65.425 1.075T14.5 9Zm3 4q.65 0 1.075-.425T19 11.5q0-.65-.425-1.075T17.5 10q-.65 0-1.075.425T16 11.5q0 .65.425 1.075T17.5 13ZM12 20q.225 0 .363-.125t.137-.325q0-.35-.375-.825T11.75 17.3q0-1.05.725-1.675T14.25 15H16q1.65 0 2.825-.963T20 11.05q0-3.025-2.313-5.038T12.2 4Q8.8 4 6.4 6.325T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),xne=[bne];function wne(t,e){return te(),ie("svg",yne,xne)}const Ene={name:"material-symbols-palette-outline",render:wne},Tne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},kne=V("path",{fill:"currentColor",d:"M13.35 22q-.6 0-.862-.388t-.063-.962l3.65-9.675q.15-.4.563-.687T17.5 10q.425 0 .85.288t.575.687l3.65 9.675q.2.575-.062.963t-.888.387q-.275 0-.5-.175T20.8 21.4l-.85-2.45H15.1l-.875 2.45q-.1.25-.35.425T13.35 22Zm2.35-4.8h3.6l-1.75-4.95h-.1L15.7 17.2ZM7.15 8.55q.4.725.85 1.338t1.05 1.262q1.1-1.2 1.825-2.462T12.1 6H2q-.425 0-.713-.288T1 5q0-.425.288-.713T2 4h6V3q0-.425.288-.713T9 2q.425 0 .713.288T10 3v1h6q.425 0 .713.288T17 5q0 .425-.288.713T16 6h-1.9q-.525 1.775-1.425 3.45T10.45 12.6l2.4 2.45l-.75 2.05L9 14l-4.3 4.3q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.35-4.35q-.675-.775-1.25-1.563T5.375 9.326Q5.1 8.8 5.35 8.4t.875-.4q.25 0 .525.163t.4.387Z"},null,-1),Cne=[kne];function Ane(t,e){return te(),ie("svg",Tne,Cne)}const Sne={name:"material-symbols-translate-rounded",render:Ane},g0=t=>(_i("data-v-ac6560d3"),t=t(),yi(),t),Ine={class:"h-action",style:{position:"relative"}},$ne=g0(()=>V("md-ripple",null,null,-1)),One=["open"],Pne=["onClick"],Rne={slot:"headline"},Lne={class:"h-action",style:{position:"relative"}},Mne=g0(()=>V("md-ripple",null,null,-1)),Dne=["open"],Fne=g0(()=>V("md-ripple",null,null,-1)),Nne=Bt({__name:"HeaderActions",props:{loggedIn:{type:Boolean}},setup(t){const e=t,r=Se(!1),n=Se(!1),{locale:o,t:i}=$n(),a=[{name:"English",value:"en-US"},{name:"简体中文",value:"zh-CN"},{name:"繁体中文",value:"zh-TW"},{name:"español",value:"es"},{name:"日本語",value:"ja"},{name:"Nederlands",value:"nl"},{name:"italiano",value:"it"},{name:"हिन्दी",value:"hi"},{name:"français",value:"fr"},{name:"русский язык",value:"ru"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de"},{name:"Português",value:"pt"},{name:"தமிழ்",value:"ta"},{name:"한국어",value:"ko"}];function c(u){r.value=!1,o.value=u,localStorage.setItem("locale",u),document.title=i("app_name")}function d(){localStorage.clear(),window.location.reload()}return(u,f)=>{const g=Sne,_=Ene,b=_ne,h=Tre,m=ws("tooltip");return te(),ie(Pt,null,[V("div",Ine,[_t((te(),ie("button",{class:"icon-button",id:"lang-ref",onClick:f[0]||(f[0]=()=>r.value=!0)},[$ne,Be(g)])),[[m,he(i)("header_actions.language")]]),V("md-menu",{anchor:"lang-ref","stay-open-on-focusout":"",quick:"",open:r.value,onClosed:f[1]||(f[1]=()=>r.value=!1)},[(te(),ie(Pt,null,wo(a,y=>V("md-menu-item",{onClick:v=>c(y.value)},[V("div",Rne,Ne(y.name),1)],8,Pne)),64))],40,One)]),V("div",Lne,[_t((te(),ie("button",{class:"icon-button",id:"theme-ref",onClick:f[2]||(f[2]=()=>n.value=!0)},[Mne,Be(_)])),[[m,he(i)("header_actions.theme")]]),V("md-menu",{anchor:"theme-ref","stay-open-on-focusout":"",quick:"",open:n.value,onClosed:f[3]||(f[3]=()=>n.value=!1)},[Be(b)],40,Dne)]),e.loggedIn?_t((te(),ie("button",{key:0,class:"icon-button h-action",style:{"margin-inline-end":"8px"},onClick:d},[Fne,Be(h)])),[[m,u.$t("header_actions.logout")]]):Tt("",!0)],64)}}});const zne=gn(Nne,[["__scopeId","data-v-ac6560d3"]]),R3=t=>(_i("data-v-034bd5b7"),t=t(),yi(),t),qne=R3(()=>V("span",{class:"right-arrow"},null,-1)),Bne=[qne],Une=R3(()=>V("span",{class:"right-arrow"},null,-1)),Vne=[Une],jne=["disabled","onMouseenter","onFocus","onClick"],Hne={slot:"headline"},Wne=Bt({__name:"ContextSubMenu",props:{items:{type:Object,default:null},parentItem:{type:Object,default:null},options:{type:Object,default:null},zIndex:{type:Number,default:0},globalData:{type:Object,default:null},position:{type:Object,default:null}},emits:["close","keepOpen","preUpdatePos"],setup(t,{emit:e}){const r=t,{globalData:n,position:o,options:i,parentItem:a}=zp(r),c=Se(),d=Se(),u=Se(!1),f=Se(!1);let g=null;const _=Se(0),b=Se(null),h=Se({parentPosition:{x:0,y:0},screenSize:n.value.screenSize}),m=Se({x:0,y:0});function y(H,U){if(U.disabled||!U.children||U.children.length==0||b.value===U)return;b.value=U,h.value.parentPosition.x=n.value.parentPosition.x+o.value.x,h.value.parentPosition.y=n.value.parentPosition.y+o.value.y,c.value&&(m.value.x=c.value.offsetWidth+(i.value.xOffset||0));const ce=H.target;ce&&(m.value.y=ce.offsetTop+(i.value.yOffset||0))}function v(){g=b.value,setTimeout(()=>{g===b.value&&(b.value=null)})}Vt(b,(H,U)=>{H&&U&&setTimeout(()=>{d.value&&d.value.doCheckPos()},50)});function x(H){v(),H&&e("close",!0)}function E(H){g===H&&(g=null),e("keepOpen",a.value)}function T(H){m.value.x=H.x,m.value.y=H.y}function C(H){H.disabled||(typeof H.onClick=="function"?(H.onClick(),e("close",!0)):(!H.children||H.children.length===0)&&e("close",!0))}function A(){e("keepOpen",a.value)}function L(H){H.relatedTarget!=null&&e("close",!1)}function R(H){c.value&&(c.value.scrollTop+=H?30:-30)}let D=0;function q(){const H=c.value,U=n.value;if(H){const ce={x:o.value.x,y:o.value.y},Ae=U.parentPosition.x+o.value.x+H.offsetWidth;if(Ae>U.screenSize.w&&(ce.x-=Ae-U.screenSize.w),H.offsetHeight>U.screenSize.h-30)_.value=U.screenSize.h-30,ce.y=-U.parentPosition.y,f.value=!0;else{f.value=!1,_.value=0;const Le=U.parentPosition.y+o.value.y+H.offsetHeight;Le>U.screenSize.h&&(ce.y-=Le-U.screenSize.h+30)}e("preUpdatePos",ce),u.value=!0}}return mn(()=>{D=window.setTimeout(()=>q(),100)}),Ho(()=>{D>0&&(clearTimeout(D),D=0)}),(H,U)=>{const ce=Fy("ContextSubMenu",!0);return t.items?(te(),ie("div",{key:0,class:Vn("context-menu "+(he(i).customClass?he(i).customClass:"")+(u.value?" ready":"")),style:bl({maxWidth:he(a)&&he(a).maxWidth?`${he(a).maxWidth}px`:"600px",minWidth:he(a)&&he(a).minWidth?`${he(a).minWidth}px`:"100px",zIndex:t.zIndex,left:`${he(o).x}px`,top:`${he(o).y}px`}),onMouseenter:A,onMouseleave:U[4]||(U[4]=Ae=>L(Ae))},[_t(V("div",{class:"context-menu-updown up",onClick:U[0]||(U[0]=Ae=>R(!1))},Bne,512),[[uo,f.value]]),_t(V("div",{class:"context-menu-updown down",onClick:U[1]||(U[1]=Ae=>R(!0))},Vne,512),[[uo,f.value]]),V("div",{class:"context-menu-items",ref_key:"menu",ref:c,style:bl({maxHeight:_.value>0?`${_.value}px`:""})},[(te(!0),ie(Pt,null,wo(t.items,(Ae,Le)=>(te(),ie("md-menu-item",{key:Le,disabled:Ae.disabled,onMouseenter:Te=>y(Te,Ae),onMouseleave:U[2]||(U[2]=Te=>v()),onFocus:Te=>y(Te,Ae),onBlur:U[3]||(U[3]=Te=>v()),onClick:Te=>C(Ae)},[V("div",Hne,Ne(Ae.label),1)],40,jne))),128))],4),b.value&&b.value.children?(te(),Hr(ce,{key:0,ref_key:"childMenu",ref:d,zIndex:t.zIndex+1,items:b.value.children,parentItem:b.value,options:he(i),globalData:h.value,position:m.value,onClose:x,onKeepOpen:E,onPreUpdatePos:T},null,8,["zIndex","items","parentItem","options","globalData","position"])):Tt("",!0)],38)):Tt("",!0)}}});const Gne=gn(Wne,[["__scopeId","data-v-034bd5b7"]]),Lv={defaultMinWidth:100,defaultMaxWidth:600,defaultStartZindex:1},Qne=Bt({__name:"ContextMenu",props:{options:{type:Object,default:null},show:{type:Boolean,default:!1}},emits:["update:show","close"],setup(t,{emit:e}){const r=t,n=Se({x:0,y:0}),o={parentPosition:{x:0,y:0},screenSize:{w:window.innerWidth,h:window.innerHeight}};function i(){n.value.x=r.options.x,n.value.y=r.options.y}function a(){e("update:show",!1),e("close")}function c(f){f&&a()}function d(f){n.value.x=f.x,n.value.y=f.y}const u=f=>{f.key==="Escape"&&a()};return mn(()=>{document.addEventListener("keydown",u),i(),setTimeout(()=>{document.addEventListener("click",a),document.addEventListener("contextmenu",a)},100)}),Ho(()=>{document.removeEventListener("keydown",u),document.removeEventListener("click",a)}),Vt(()=>r.show,f=>{f&&i()}),(f,g)=>{const _=Gne;return t.show?(te(),Hr(_,{key:0,items:t.options.items,parentItem:{maxWidth:t.options.maxWidth||he(Lv).defaultMaxWidth,minWidth:t.options.minWidth||he(Lv).defaultMinWidth},options:t.options,"z-index":t.options.zIndex||he(Lv).defaultStartZindex,globalData:o,position:n.value,"on-close":c,onPreUpdatePos:d},null,8,["items","parentItem","options","z-index","position"])):Tt("",!0)}}}),Kne=t=>{const e=document.createElement("div"),r=No(Qne,{options:t,show:!0,onClose:()=>{rg(null,e)}});return rg(r,e),document.body.appendChild(e.firstElementChild),r.component},Xl=t=>(_i("data-v-e23481d8"),t=t(),yi(),t),Yne={key:0,class:"loading"},Zne=Xl(()=>V("md-circular-progress",{indeterminate:""},null,-1)),Xne=[Zne],Jne={key:1,class:"alert alert-danger"},eoe={key:2,class:"layout"},toe={class:"default-content"},roe={class:"start"},noe={class:"tab-items"},ooe=["onClick","onContextmenu"],ioe=["onClick"],aoe=Xl(()=>V("md-ripple",null,null,-1)),soe={class:"end"},loe={class:"page-content"},coe={class:"quick"},doe=Xl(()=>V("md-ripple",null,null,-1)),uoe=Xl(()=>V("md-ripple",null,null,-1)),foe=Xl(()=>V("md-ripple",null,null,-1)),poe=Xl(()=>V("md-ripple",null,null,-1)),hoe={class:"quick-content"},moe=Bt({__name:"MainView",setup(t){const e=Bd(),r=dU(),n=ki(),{app:o,urlTokenKey:i}=ya(n),{t:a}=$n(),c=Se(!0),d=Se(""),u=Se([]),f=new Map;let g=!1;const _=St(()=>n.uploads.length>0);function b(q){e.quick===q?e.quick="":e.quick=q}const{refetch:h}=ys({handle:(q,H)=>{var U;if(c.value=!1,H)d.value=H;else if(q){const ce=(U=o.value)==null?void 0:U.urlToken,Ae=q.app.urlToken;i.value=Pb(Ae),ce!==Ae&&(window.fileIdMap=new Map),o.value=q.app,g&&(g=!1,mt.emit("do_play_audio"))}},document:OZ,appApi:!0});function m(q,H){q.preventDefault();const U=[];H!=="/"&&U.push({label:a("close"),onClick:()=>{L(H)}}),U.push({label:a("close_other_tabs"),onClick:()=>{gs(e.pages,ce=>ce!==H),y.value!==H&&y.value!=="/"&&A(H),u.value=e.pages}}),U.push({label:a("close_tabs_to_the_right"),onClick:()=>{const ce=e.pages.indexOf(H);gs(e.pages,Ae=>e.pages.indexOf(Ae)>ce),y.value!==H&&y.value!=="/"&&A(H),u.value=e.pages}}),Kne({x:q.x,y:q.y,items:U})}const y=Se(r.currentRoute.value.fullPath);Vt(()=>r.currentRoute.value.fullPath,q=>{y.value=q});const v=()=>{h()},x=()=>{g=!0,h()},E=q=>{q.type==="AUDIO"&&h()},T=q=>{q.type==="AUDIO"&&h()};mn(()=>{mt.on("refetch_app",v),mt.on("play_audio",x),mt.on("media_items_deleted",E),mt.on("media_item_deleted",T),u.value=e.pages}),Hl(()=>{mt.off("refetch_app",v),mt.off("play_audio",x),mt.off("media_items_deleted",E),mt.off("media_item_deleted",T)});const C=(q,H)=>{let U;const ce=q;return f.has(ce)?U=f.get(ce):(U=H,f.set(ce,U)),U};function A(q){r.push(q)}function L(q){const H=e.pages.indexOf(q);H!==-1&&(e.pages.splice(H,1),y.value===q&&(e.pages.length?H{localStorage.setItem("main_state",JSON.stringify(q)),y.value=r.currentRoute.value.fullPath},{deep:!0});const R=localStorage.getItem("main_state");R&&(e.$state={...e.$state,...JSON.parse(R)});const D=q=>{["/","/login"].includes(q.path)||e.pages.includes(q.fullPath)||(e.pages.push(q.fullPath),u.value=e.pages)};return D(r.currentRoute.value),r.afterEach((q,H,U)=>{D(q)}),(q,H)=>{const U=Hd,ce=zne,Ae=Fy("router-view"),Le=yre,Te=hre,Ie=cre,Pe=ore,Ce=Jte,de=ete,we=lee,ke=OJ,Re=dJ,He=ws("tooltip");return c.value?(te(),ie("div",Yne,Xne)):d.value?(te(),ie("div",Jne,Ne(q.$t(d.value)),1)):(te(),ie("div",eoe,[V("header",null,[V("div",toe,[V("section",roe,[V("div",noe,[V("div",{class:Vn(["tab-item",{active:y.value==="/"}]),onClick:H[0]||(H[0]=ze=>A("/")),key:"/",onContextmenu:H[1]||(H[1]=ze=>m(ze,"/"))},[V("span",null,Ne(q.$t("page_title.home")),1)],34),(te(!0),ie(Pt,null,wo(he(e).pages,ze=>(te(),ie("div",{key:ze,onClick:We=>A(ze),class:Vn(["tab-item",{active:y.value===ze}]),onContextmenu:We=>m(We,ze)},[V("span",null,Ne(q.$t(`page_title.${he(yoe)(ze)}`)),1),V("button",{class:"icon-button tab-icon",onClick:Ot(We=>L(ze),["stop"])},[aoe,Be(U)],8,ioe)],42,ooe))),128))])]),V("section",soe,[Be(ce,{"logged-in":!0})])])]),V("div",loe,[Be(Ae,null,{default:go(({Component:ze,route:We})=>[(te(),Hr(Ny(C(We.fullPath,ze)),{key:q.$route.fullPath}))]),_:1})]),V("div",coe,[_t((te(),ie("button",{class:Vn(["icon-button q-action",{selected:he(e).quick==="notification"}]),onClick:H[2]||(H[2]=ze=>b("notification")),toggle:""},[doe,Be(Le)],2)),[[He,q.$t("header_actions.notifications")]]),_.value?_t((te(),ie("button",{key:0,class:Vn(["icon-button q-action",{selected:he(e).quick==="task"}]),onClick:H[3]||(H[3]=ze=>b("task")),toggle:""},[uoe,Be(Te)],2)),[[He,q.$t("header_actions.tasks")]]):Tt("",!0),_t((te(),ie("button",{id:"quick-audio",class:Vn(["icon-button q-action",{selected:he(e).quick==="audio"}]),onClick:H[4]||(H[4]=ze=>b("audio")),toggle:""},[foe,Be(Ie)],2)),[[He,q.$t("playlist")]]),_t((te(),ie("button",{class:Vn(["icon-button q-action",{selected:he(e).quick==="chat"}]),onClick:H[5]||(H[5]=ze=>b("chat")),toggle:""},[poe,Be(Pe)],2)),[[He,q.$t("my_phone")]])]),V("div",hoe,[_t(Be(Ce,null,null,512),[[uo,he(e).quick==="chat"]]),_t(Be(de,null,null,512),[[uo,he(e).quick==="audio"]]),_t(Be(we,null,null,512),[[uo,he(e).quick==="task"]]),_t(Be(ke,null,null,512),[[uo,he(e).quick==="notification"]])]),Be(Re)]))}}});const voe=gn(moe,[["__scopeId","data-v-e23481d8"]]),Do=lU({strict:!0,history:TB(),scrollBehavior(t,e,r){return r||{top:0}},routes:[{path:"/",component:voe,meta:{requiresAuth:!0},children:[{name:"home",path:"",component:()=>it(()=>import("./HomeView-fd3ca4d3.js"),["assets/HomeView-fd3ca4d3.js","assets/vee-validate.esm-65abdaa1.js","assets/HomeView-5125e9ec.css"]),meta:{group:"home"}},{path:"messages",component:()=>it(()=>import("./MessagesRootView-3dc6eaa3.js"),["assets/MessagesRootView-3dc6eaa3.js","assets/TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js","assets/EditValueModal-d57e85f6.js","assets/vee-validate.esm-65abdaa1.js","assets/EditValueModal-33a23af3.css","assets/splitpanes.es-2b477659.js"]),meta:{group:"messages"},children:[{path:"",component:()=>it(()=>import("./MessagesView-acae6a6e.js"),["assets/MessagesView-acae6a6e.js","assets/list-45297bd9.js","assets/list-69812e9a.css","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-06583423.js","assets/vee-validate.esm-65abdaa1.js","assets/tags-1a6de70c.css"]),meta:{group:"messages"}},{path:":type",component:()=>it(()=>import("./MessagesView-acae6a6e.js"),["assets/MessagesView-acae6a6e.js","assets/list-45297bd9.js","assets/list-69812e9a.css","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-06583423.js","assets/vee-validate.esm-65abdaa1.js","assets/tags-1a6de70c.css"]),meta:{group:"messages"}}]},{path:"calls",component:()=>it(()=>import("./CallsRootView-07c41008.js"),["assets/CallsRootView-07c41008.js","assets/TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js","assets/EditValueModal-d57e85f6.js","assets/vee-validate.esm-65abdaa1.js","assets/EditValueModal-33a23af3.css","assets/splitpanes.es-2b477659.js"]),meta:{group:"calls"},children:[{path:"",component:()=>it(()=>import("./CallsView-441198f9.js"),["assets/CallsView-441198f9.js","assets/list-45297bd9.js","assets/list-69812e9a.css","assets/call-outline-rounded-79a3fba5.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-06583423.js","assets/vee-validate.esm-65abdaa1.js","assets/tags-1a6de70c.css"]),meta:{group:"calls"}},{path:":type",component:()=>it(()=>import("./CallsView-441198f9.js"),["assets/CallsView-441198f9.js","assets/list-45297bd9.js","assets/list-69812e9a.css","assets/call-outline-rounded-79a3fba5.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-06583423.js","assets/vee-validate.esm-65abdaa1.js","assets/tags-1a6de70c.css"]),meta:{group:"calls"}}]},{path:"apps",component:()=>it(()=>import("./AppsRootView-6c309c18.js"),["assets/AppsRootView-6c309c18.js","assets/splitpanes.es-2b477659.js"]),meta:{group:"apps"},children:[{path:"",component:()=>it(()=>import("./AppsView-4f3757c0.js"),["assets/AppsView-4f3757c0.js","assets/list-45297bd9.js","assets/list-69812e9a.css","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css"]),meta:{group:"apps"}},{path:":type",component:()=>it(()=>import("./AppsView-4f3757c0.js"),["assets/AppsView-4f3757c0.js","assets/list-45297bd9.js","assets/list-69812e9a.css","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css"]),meta:{group:"apps"}}]},{path:"contacts",component:()=>it(()=>import("./ContactsRootView-f2e48655.js"),["assets/ContactsRootView-f2e48655.js","assets/TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js","assets/EditValueModal-d57e85f6.js","assets/vee-validate.esm-65abdaa1.js","assets/EditValueModal-33a23af3.css","assets/splitpanes.es-2b477659.js"]),meta:{group:"contacts"},children:[{path:"",component:()=>it(()=>import("./ContactsView-fbe22ecb.js"),["assets/ContactsView-fbe22ecb.js","assets/list-45297bd9.js","assets/list-69812e9a.css","assets/call-outline-rounded-79a3fba5.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/vee-validate.esm-65abdaa1.js","assets/tags-06583423.js","assets/tags-1a6de70c.css","assets/ContactsView-f9fe45af.css"]),meta:{group:"contacts"}}]},{path:"images",component:()=>it(()=>import("./ImagesRootView-9817355a.js"),["assets/ImagesRootView-9817355a.js","assets/TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js","assets/EditValueModal-d57e85f6.js","assets/vee-validate.esm-65abdaa1.js","assets/EditValueModal-33a23af3.css","assets/BucketFilter.vuevuetypescriptsetuptruelang-9dafd033.js","assets/splitpanes.es-2b477659.js"]),meta:{group:"images"},children:[{path:"",component:()=>it(()=>import("./ImagesView-dfb10746.js"),["assets/ImagesView-dfb10746.js","assets/list-45297bd9.js","assets/list-69812e9a.css","assets/upload-rounded-886d7dcb.js","assets/grid-view-outline-rounded-dfcff43e.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-06583423.js","assets/vee-validate.esm-65abdaa1.js","assets/tags-1a6de70c.css","assets/ImagesView-4b740933.css"]),meta:{group:"images"}}]},{path:"videos",component:()=>it(()=>import("./VideosRootView-f0bc46ee.js"),["assets/VideosRootView-f0bc46ee.js","assets/TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js","assets/EditValueModal-d57e85f6.js","assets/vee-validate.esm-65abdaa1.js","assets/EditValueModal-33a23af3.css","assets/BucketFilter.vuevuetypescriptsetuptruelang-9dafd033.js","assets/splitpanes.es-2b477659.js"]),meta:{group:"videos"},children:[{path:"",component:()=>it(()=>import("./VideosView-5ce3e77c.js"),["assets/VideosView-5ce3e77c.js","assets/list-45297bd9.js","assets/list-69812e9a.css","assets/upload-rounded-886d7dcb.js","assets/grid-view-outline-rounded-dfcff43e.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-06583423.js","assets/vee-validate.esm-65abdaa1.js","assets/tags-1a6de70c.css","assets/VideosView-6b8ce396.css"]),meta:{group:"videos"}}]},{path:"audios",component:()=>it(()=>import("./AudiosRootView-7d6b2e65.js"),["assets/AudiosRootView-7d6b2e65.js","assets/TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js","assets/EditValueModal-d57e85f6.js","assets/vee-validate.esm-65abdaa1.js","assets/EditValueModal-33a23af3.css","assets/BucketFilter.vuevuetypescriptsetuptruelang-9dafd033.js","assets/splitpanes.es-2b477659.js"]),meta:{group:"audios"},children:[{path:"",component:()=>it(()=>import("./AudiosView-dd82950e.js"),["assets/AudiosView-dd82950e.js","assets/list-45297bd9.js","assets/list-69812e9a.css","assets/upload-rounded-886d7dcb.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-06583423.js","assets/vee-validate.esm-65abdaa1.js","assets/tags-1a6de70c.css","assets/AudiosView-eba13dce.css"]),meta:{group:"audios"}}]},{path:"notes/:id",component:()=>it(()=>import("./NoteEditView-266394d2.js"),["assets/NoteEditView-266394d2.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js","assets/MonacoEditor-eb205dcf.css","assets/print-outline-rounded-5fefda7f.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/splitpanes.es-2b477659.js","assets/markdown-737d43fa.js","assets/NoteEditView-9c575aea.css"]),meta:{group:"notes"}},{path:"notes",component:()=>it(()=>import("./NotesRootView-dd5641d4.js"),["assets/NotesRootView-dd5641d4.js","assets/TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js","assets/EditValueModal-d57e85f6.js","assets/vee-validate.esm-65abdaa1.js","assets/EditValueModal-33a23af3.css","assets/splitpanes.es-2b477659.js"]),meta:{group:"notes"},children:[{path:"",component:()=>it(()=>import("./NotesView-ea089922.js"),["assets/NotesView-ea089922.js","assets/list-45297bd9.js","assets/list-69812e9a.css","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-06583423.js","assets/vee-validate.esm-65abdaa1.js","assets/tags-1a6de70c.css"]),meta:{group:"notes"}},{path:"trash",component:()=>it(()=>import("./NotesTrashView-6cf9c6ed.js"),["assets/NotesTrashView-6cf9c6ed.js","assets/list-45297bd9.js","assets/list-69812e9a.css","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-06583423.js","assets/vee-validate.esm-65abdaa1.js","assets/tags-1a6de70c.css"]),meta:{group:"trash"}}]},{path:"aichats/:id",component:()=>it(()=>import("./AIChatView-46541959.js"),["assets/AIChatView-46541959.js","assets/splitpanes.es-2b477659.js","assets/markdown-737d43fa.js","assets/AIChatView-e251387c.css"]),meta:{group:"aichats"}},{path:"aichats",component:()=>it(()=>import("./AIChatsRootView-1a9d7e4e.js"),["assets/AIChatsRootView-1a9d7e4e.js","assets/TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js","assets/EditValueModal-d57e85f6.js","assets/vee-validate.esm-65abdaa1.js","assets/EditValueModal-33a23af3.css","assets/splitpanes.es-2b477659.js"]),meta:{group:"aichats"},children:[{path:"",component:()=>it(()=>import("./AIChatsView-2665297a.js"),["assets/AIChatsView-2665297a.js","assets/list-45297bd9.js","assets/list-69812e9a.css","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-06583423.js","assets/vee-validate.esm-65abdaa1.js","assets/tags-1a6de70c.css"]),meta:{group:"aichats"}}]},{path:"files",component:()=>it(()=>import("./FilesRootView-29f6b306.js"),["assets/FilesRootView-29f6b306.js","assets/splitpanes.es-2b477659.js"]),meta:{group:"files"},children:[{path:"",component:()=>it(()=>import("./FilesView-6a0c28d6.js"),["assets/FilesView-6a0c28d6.js","assets/refresh-rounded-0b456afc.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/splitpanes.es-2b477659.js","assets/EditValueModal-d57e85f6.js","assets/vee-validate.esm-65abdaa1.js","assets/EditValueModal-33a23af3.css","assets/FilesView-d054e85d.css"]),meta:{group:"files"}},{path:"recent",component:()=>it(()=>import("./FilesRecentView-d638e349.js"),["assets/FilesRecentView-d638e349.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/FilesRecentView-48321e01.css"]),meta:{group:"files"}},{path:":type",component:()=>it(()=>import("./FilesView-6a0c28d6.js"),["assets/FilesView-6a0c28d6.js","assets/refresh-rounded-0b456afc.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/splitpanes.es-2b477659.js","assets/EditValueModal-d57e85f6.js","assets/vee-validate.esm-65abdaa1.js","assets/EditValueModal-33a23af3.css","assets/FilesView-d054e85d.css"]),meta:{group:"files"}}]},{path:"json-viewer",component:()=>it(()=>import("./JsonViewerView-eed04b71.js"),["assets/JsonViewerView-eed04b71.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js","assets/MonacoEditor-eb205dcf.css","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/splitpanes.es-2b477659.js","assets/JsonViewerView-50d35b39.css"]),meta:{group:"json_viewer"}},{path:"qrcode-generator",component:()=>it(()=>import("./QrCodeGeneratorView-11fce495.js"),["assets/QrCodeGeneratorView-11fce495.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/splitpanes.es-2b477659.js","assets/QrCodeGeneratorView-45d4ebea.css"]),meta:{group:"qrcode_generator"}},{path:"screen-mirror",component:()=>it(()=>import("./ScreenMirrorView-07f2edb1.js"),["assets/ScreenMirrorView-07f2edb1.js","assets/refresh-rounded-0b456afc.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/ScreenMirrorView-c252eda6.css"]),meta:{group:"screen_mirror"}},{path:"device-info",component:()=>it(()=>import("./DeviceInfoView-9d38adba.js"),["assets/DeviceInfoView-9d38adba.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/DeviceInfoView-31c16428.css"]),meta:{group:"device_info"}},{path:"network",component:()=>it(()=>import("./NetworkView-f0757be1.js"),["assets/NetworkView-f0757be1.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js","assets/MonacoEditor-eb205dcf.css","assets/EditToolbar.vuevuetypescriptsetuptruelang-60d4e984.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css"]),meta:{group:"network"}},{path:"wifi",component:()=>it(()=>import("./WiFiView-1926eeb7.js"),["assets/WiFiView-1926eeb7.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js","assets/MonacoEditor-eb205dcf.css","assets/EditToolbar.vuevuetypescriptsetuptruelang-60d4e984.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/vee-validate.esm-65abdaa1.js"]),meta:{group:"wifi"}},{path:"wireguard",component:()=>it(()=>import("./WireGuardView-fb264a54.js"),["assets/WireGuardView-fb264a54.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/parser-fdd85e1d.js"]),meta:{group:"wireguard"}},{path:"wireguard/:id",component:()=>it(()=>import("./WireGuardEditView-747cb30c.js"),["assets/WireGuardEditView-747cb30c.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js","assets/MonacoEditor-eb205dcf.css","assets/EditToolbar.vuevuetypescriptsetuptruelang-60d4e984.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/parser-fdd85e1d.js"]),meta:{group:"wireguard"}},{path:"rules",component:()=>it(()=>import("./RulesView-1e30a62b.js"),["assets/RulesView-1e30a62b.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/question-mark-rounded-fa46b9df.js","assets/vee-validate.esm-65abdaa1.js"]),meta:{group:"rules"}},{path:"routes",component:()=>it(()=>import("./RoutesView-02f1f690.js"),["assets/RoutesView-02f1f690.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/question-mark-rounded-fa46b9df.js","assets/vee-validate.esm-65abdaa1.js"]),meta:{group:"routes"}},{path:"devices",component:()=>it(()=>import("./DevicesView-4dc23f17.js"),["assets/DevicesView-4dc23f17.js","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/EditValueModal-d57e85f6.js","assets/vee-validate.esm-65abdaa1.js","assets/EditValueModal-33a23af3.css"]),meta:{group:"devices"}},{path:"feeds",component:()=>it(()=>import("./FeedsRootView-c5553a66.js"),["assets/FeedsRootView-c5553a66.js","assets/TagFilter.vuevuetypescriptsetuptruelang-9b4a0b6e.js","assets/EditValueModal-d57e85f6.js","assets/vee-validate.esm-65abdaa1.js","assets/EditValueModal-33a23af3.css","assets/splitpanes.es-2b477659.js","assets/FeedsRootView-0b26ab4d.css"]),meta:{group:"feeds"},children:[{path:"",component:()=>it(()=>import("./FeedsView-8b639e3b.js"),["assets/FeedsView-8b639e3b.js","assets/list-45297bd9.js","assets/list-69812e9a.css","assets/Breadcrumb-ebe74d39.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-06583423.js","assets/vee-validate.esm-65abdaa1.js","assets/tags-1a6de70c.css"]),meta:{group:"feeds"}},{path:":feedId/entries/:id",component:()=>it(()=>import("./FeedEntryView-711970c4.js"),["assets/FeedEntryView-711970c4.js","assets/print-outline-rounded-5fefda7f.js","assets/markdown-737d43fa.js","assets/FeedEntryView-1da67e15.css"]),meta:{group:"feeds"}}]}]},{name:"login",path:"/login",component:()=>it(()=>import("./LoginView-c629b4b1.js"),["assets/LoginView-c629b4b1.js","assets/vee-validate.esm-65abdaa1.js","assets/LoginView-4b589233.css"]),meta:{requiresAuth:!1}}]}),L3=new Map;Do.beforeEach(async(t,e)=>{var o;const r=(o=document.getElementsByClassName("main")[0])==null?void 0:o.scrollTop;r!==void 0&&L3.set(e.fullPath,r);const n=localStorage.getItem("auth_token");if(t.meta.requiresAuth&&!n)return{path:"/login",query:{redirect:t.fullPath}}});Do.afterEach((t,e)=>{setTimeout(()=>{const r=document.getElementsByClassName("main")[0];if(r){const n=L3.get(t.fullPath);n&&(r.scrollTop=n)}},0)});const goe=(t,e)=>{const r=Do.currentRoute.value.fullPath;Do.currentRoute.value.fullPath=e,t.pages.includes(e)?window.history.pushState({},document.title,e):(window.history.replaceState({},document.title,e),t.replaceRoute(r,e))},_oe=(t,e)=>{t.pages.includes(e)?Do.push(e):(Do.replace(e),t.replaceRoute(Do.currentRoute.value.fullPath,e))},Vge=t=>{setTimeout(()=>{Do.push(t)},0)},yoe=t=>Do.resolve(t).meta.group;/** +*/let h_=class extends rne{};h_.styles=[one,nne];h_=P([rt("md-outlined-segmented-button")],h_);const ine=t=>(_i("data-v-2b618255"),t=t(),yi(),t),ane={class:"theme-changer"},sne={id:"hex"},lne={class:"label"},cne={class:"input-wrapper"},dne={class:"overflow"},une=["value"],fne=ine(()=>V("md-focus-ring",{for:"color-input"},null,-1)),pne=["selected"],hne=["selected"],mne=["selected"],vne=Bt({__name:"ThemeChanger",setup(t){const e=Se(Sb()),r=Se(gp());function n(i){const{button:a}=i.detail,c=a.dataset.value;r.value=c,QC(c)}function o(i){e.value=i.target.value,GC(e.value)}return(i,a)=>{const c=Nre,d=Rre,u=Sre;return te(),ie("div",ane,[V("div",null,[V("label",sne,[V("span",lne,Ne(i.$t("color")),1),V("span",cne,[V("div",dne,[V("input",{id:"color-input",onInput:o,type:"color",value:e.value},null,40,une)]),fne])])]),V("md-outlined-segmented-button-set",{onSegmentedButtonSetSelection:n},[V("md-outlined-segmented-button",{"data-value":"dark",selected:r.value==="dark"},[Be(c,{slot:"icon"})],8,pne),V("md-outlined-segmented-button",{"data-value":"auto",selected:r.value==="auto"},[Be(d,{slot:"icon"})],8,hne),V("md-outlined-segmented-button",{"data-value":"light",selected:r.value==="light"},[Be(u,{slot:"icon"})],8,mne)],32)])}}});const gne=gn(vne,[["__scopeId","data-v-2b618255"]]),_ne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},yne=V("path",{fill:"currentColor",d:"M12 22q-2.05 0-3.875-.788t-3.188-2.15q-1.362-1.362-2.15-3.187T2 12q0-2.075.813-3.9t2.2-3.175Q6.4 3.575 8.25 2.788T12.2 2q2 0 3.775.688t3.113 1.9q1.337 1.212 2.125 2.875T22 11.05q0 2.875-1.75 4.413T16 17h-1.85q-.225 0-.313.125t-.087.275q0 .3.375.863t.375 1.287q0 1.25-.688 1.85T12 22Zm0-10Zm-5.5 1q.65 0 1.075-.425T8 11.5q0-.65-.425-1.075T6.5 10q-.65 0-1.075.425T5 11.5q0 .65.425 1.075T6.5 13Zm3-4q.65 0 1.075-.425T11 7.5q0-.65-.425-1.075T9.5 6q-.65 0-1.075.425T8 7.5q0 .65.425 1.075T9.5 9Zm5 0q.65 0 1.075-.425T16 7.5q0-.65-.425-1.075T14.5 6q-.65 0-1.075.425T13 7.5q0 .65.425 1.075T14.5 9Zm3 4q.65 0 1.075-.425T19 11.5q0-.65-.425-1.075T17.5 10q-.65 0-1.075.425T16 11.5q0 .65.425 1.075T17.5 13ZM12 20q.225 0 .363-.125t.137-.325q0-.35-.375-.825T11.75 17.3q0-1.05.725-1.675T14.25 15H16q1.65 0 2.825-.963T20 11.05q0-3.025-2.313-5.038T12.2 4Q8.8 4 6.4 6.325T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),bne=[yne];function xne(t,e){return te(),ie("svg",_ne,bne)}const wne={name:"material-symbols-palette-outline",render:xne},Ene={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Tne=V("path",{fill:"currentColor",d:"M13.35 22q-.6 0-.862-.388t-.063-.962l3.65-9.675q.15-.4.563-.687T17.5 10q.425 0 .85.288t.575.687l3.65 9.675q.2.575-.062.963t-.888.387q-.275 0-.5-.175T20.8 21.4l-.85-2.45H15.1l-.875 2.45q-.1.25-.35.425T13.35 22Zm2.35-4.8h3.6l-1.75-4.95h-.1L15.7 17.2ZM7.15 8.55q.4.725.85 1.338t1.05 1.262q1.1-1.2 1.825-2.462T12.1 6H2q-.425 0-.713-.288T1 5q0-.425.288-.713T2 4h6V3q0-.425.288-.713T9 2q.425 0 .713.288T10 3v1h6q.425 0 .713.288T17 5q0 .425-.288.713T16 6h-1.9q-.525 1.775-1.425 3.45T10.45 12.6l2.4 2.45l-.75 2.05L9 14l-4.3 4.3q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.35-4.35q-.675-.775-1.25-1.563T5.375 9.326Q5.1 8.8 5.35 8.4t.875-.4q.25 0 .525.163t.4.387Z"},null,-1),kne=[Tne];function Cne(t,e){return te(),ie("svg",Ene,kne)}const Ane={name:"material-symbols-translate-rounded",render:Cne},g0=t=>(_i("data-v-ac6560d3"),t=t(),yi(),t),Sne={class:"h-action",style:{position:"relative"}},Ine=g0(()=>V("md-ripple",null,null,-1)),$ne=["open"],One=["onClick"],Pne={slot:"headline"},Rne={class:"h-action",style:{position:"relative"}},Lne=g0(()=>V("md-ripple",null,null,-1)),Mne=["open"],Dne=g0(()=>V("md-ripple",null,null,-1)),Fne=Bt({__name:"HeaderActions",props:{loggedIn:{type:Boolean}},setup(t){const e=t,r=Se(!1),n=Se(!1),{locale:o,t:i}=$n(),a=[{name:"English",value:"en-US"},{name:"简体中文",value:"zh-CN"},{name:"繁体中文",value:"zh-TW"},{name:"español",value:"es"},{name:"日本語",value:"ja"},{name:"Nederlands",value:"nl"},{name:"italiano",value:"it"},{name:"हिन्दी",value:"hi"},{name:"français",value:"fr"},{name:"русский язык",value:"ru"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de"},{name:"Português",value:"pt"},{name:"தமிழ்",value:"ta"},{name:"한국어",value:"ko"}];function c(u){r.value=!1,o.value=u,localStorage.setItem("locale",u),document.title=i("app_name")}function d(){localStorage.clear(),window.location.reload()}return(u,f)=>{const g=Ane,_=wne,b=gne,h=Ere,m=ws("tooltip");return te(),ie(Pt,null,[V("div",Sne,[_t((te(),ie("button",{class:"icon-button",id:"lang-ref",onClick:f[0]||(f[0]=()=>r.value=!0)},[Ine,Be(g)])),[[m,he(i)("header_actions.language")]]),V("md-menu",{anchor:"lang-ref","stay-open-on-focusout":"",quick:"",open:r.value,onClosed:f[1]||(f[1]=()=>r.value=!1)},[(te(),ie(Pt,null,wo(a,y=>V("md-menu-item",{onClick:v=>c(y.value)},[V("div",Pne,Ne(y.name),1)],8,One)),64))],40,$ne)]),V("div",Rne,[_t((te(),ie("button",{class:"icon-button",id:"theme-ref",onClick:f[2]||(f[2]=()=>n.value=!0)},[Lne,Be(_)])),[[m,he(i)("header_actions.theme")]]),V("md-menu",{anchor:"theme-ref","stay-open-on-focusout":"",quick:"",open:n.value,onClosed:f[3]||(f[3]=()=>n.value=!1)},[Be(b)],40,Mne)]),e.loggedIn?_t((te(),ie("button",{key:0,class:"icon-button h-action",style:{"margin-inline-end":"8px"},onClick:d},[Dne,Be(h)])),[[m,u.$t("header_actions.logout")]]):Tt("",!0)],64)}}});const Nne=gn(Fne,[["__scopeId","data-v-ac6560d3"]]),P3=t=>(_i("data-v-034bd5b7"),t=t(),yi(),t),zne=P3(()=>V("span",{class:"right-arrow"},null,-1)),qne=[zne],Bne=P3(()=>V("span",{class:"right-arrow"},null,-1)),Une=[Bne],Vne=["disabled","onMouseenter","onFocus","onClick"],jne={slot:"headline"},Hne=Bt({__name:"ContextSubMenu",props:{items:{type:Object,default:null},parentItem:{type:Object,default:null},options:{type:Object,default:null},zIndex:{type:Number,default:0},globalData:{type:Object,default:null},position:{type:Object,default:null}},emits:["close","keepOpen","preUpdatePos"],setup(t,{emit:e}){const r=t,{globalData:n,position:o,options:i,parentItem:a}=zp(r),c=Se(),d=Se(),u=Se(!1),f=Se(!1);let g=null;const _=Se(0),b=Se(null),h=Se({parentPosition:{x:0,y:0},screenSize:n.value.screenSize}),m=Se({x:0,y:0});function y(H,U){if(U.disabled||!U.children||U.children.length==0||b.value===U)return;b.value=U,h.value.parentPosition.x=n.value.parentPosition.x+o.value.x,h.value.parentPosition.y=n.value.parentPosition.y+o.value.y,c.value&&(m.value.x=c.value.offsetWidth+(i.value.xOffset||0));const ce=H.target;ce&&(m.value.y=ce.offsetTop+(i.value.yOffset||0))}function v(){g=b.value,setTimeout(()=>{g===b.value&&(b.value=null)})}Vt(b,(H,U)=>{H&&U&&setTimeout(()=>{d.value&&d.value.doCheckPos()},50)});function x(H){v(),H&&e("close",!0)}function E(H){g===H&&(g=null),e("keepOpen",a.value)}function T(H){m.value.x=H.x,m.value.y=H.y}function C(H){H.disabled||(typeof H.onClick=="function"?(H.onClick(),e("close",!0)):(!H.children||H.children.length===0)&&e("close",!0))}function A(){e("keepOpen",a.value)}function L(H){H.relatedTarget!=null&&e("close",!1)}function R(H){c.value&&(c.value.scrollTop+=H?30:-30)}let D=0;function q(){const H=c.value,U=n.value;if(H){const ce={x:o.value.x,y:o.value.y},Ae=U.parentPosition.x+o.value.x+H.offsetWidth;if(Ae>U.screenSize.w&&(ce.x-=Ae-U.screenSize.w),H.offsetHeight>U.screenSize.h-30)_.value=U.screenSize.h-30,ce.y=-U.parentPosition.y,f.value=!0;else{f.value=!1,_.value=0;const Le=U.parentPosition.y+o.value.y+H.offsetHeight;Le>U.screenSize.h&&(ce.y-=Le-U.screenSize.h+30)}e("preUpdatePos",ce),u.value=!0}}return mn(()=>{D=window.setTimeout(()=>q(),100)}),Ho(()=>{D>0&&(clearTimeout(D),D=0)}),(H,U)=>{const ce=Fy("ContextSubMenu",!0);return t.items?(te(),ie("div",{key:0,class:Vn("context-menu "+(he(i).customClass?he(i).customClass:"")+(u.value?" ready":"")),style:bl({maxWidth:he(a)&&he(a).maxWidth?`${he(a).maxWidth}px`:"600px",minWidth:he(a)&&he(a).minWidth?`${he(a).minWidth}px`:"100px",zIndex:t.zIndex,left:`${he(o).x}px`,top:`${he(o).y}px`}),onMouseenter:A,onMouseleave:U[4]||(U[4]=Ae=>L(Ae))},[_t(V("div",{class:"context-menu-updown up",onClick:U[0]||(U[0]=Ae=>R(!1))},qne,512),[[uo,f.value]]),_t(V("div",{class:"context-menu-updown down",onClick:U[1]||(U[1]=Ae=>R(!0))},Une,512),[[uo,f.value]]),V("div",{class:"context-menu-items",ref_key:"menu",ref:c,style:bl({maxHeight:_.value>0?`${_.value}px`:""})},[(te(!0),ie(Pt,null,wo(t.items,(Ae,Le)=>(te(),ie("md-menu-item",{key:Le,disabled:Ae.disabled,onMouseenter:Te=>y(Te,Ae),onMouseleave:U[2]||(U[2]=Te=>v()),onFocus:Te=>y(Te,Ae),onBlur:U[3]||(U[3]=Te=>v()),onClick:Te=>C(Ae)},[V("div",jne,Ne(Ae.label),1)],40,Vne))),128))],4),b.value&&b.value.children?(te(),Hr(ce,{key:0,ref_key:"childMenu",ref:d,zIndex:t.zIndex+1,items:b.value.children,parentItem:b.value,options:he(i),globalData:h.value,position:m.value,onClose:x,onKeepOpen:E,onPreUpdatePos:T},null,8,["zIndex","items","parentItem","options","globalData","position"])):Tt("",!0)],38)):Tt("",!0)}}});const Wne=gn(Hne,[["__scopeId","data-v-034bd5b7"]]),Lv={defaultMinWidth:100,defaultMaxWidth:600,defaultStartZindex:1},Gne=Bt({__name:"ContextMenu",props:{options:{type:Object,default:null},show:{type:Boolean,default:!1}},emits:["update:show","close"],setup(t,{emit:e}){const r=t,n=Se({x:0,y:0}),o={parentPosition:{x:0,y:0},screenSize:{w:window.innerWidth,h:window.innerHeight}};function i(){n.value.x=r.options.x,n.value.y=r.options.y}function a(){e("update:show",!1),e("close")}function c(f){f&&a()}function d(f){n.value.x=f.x,n.value.y=f.y}const u=f=>{f.key==="Escape"&&a()};return mn(()=>{document.addEventListener("keydown",u),i(),setTimeout(()=>{document.addEventListener("click",a),document.addEventListener("contextmenu",a)},100)}),Ho(()=>{document.removeEventListener("keydown",u),document.removeEventListener("click",a)}),Vt(()=>r.show,f=>{f&&i()}),(f,g)=>{const _=Wne;return t.show?(te(),Hr(_,{key:0,items:t.options.items,parentItem:{maxWidth:t.options.maxWidth||he(Lv).defaultMaxWidth,minWidth:t.options.minWidth||he(Lv).defaultMinWidth},options:t.options,"z-index":t.options.zIndex||he(Lv).defaultStartZindex,globalData:o,position:n.value,"on-close":c,onPreUpdatePos:d},null,8,["items","parentItem","options","z-index","position"])):Tt("",!0)}}}),Qne=t=>{const e=document.createElement("div"),r=No(Gne,{options:t,show:!0,onClose:()=>{rg(null,e)}});return rg(r,e),document.body.appendChild(e.firstElementChild),r.component},Xl=t=>(_i("data-v-e23481d8"),t=t(),yi(),t),Kne={key:0,class:"loading"},Yne=Xl(()=>V("md-circular-progress",{indeterminate:""},null,-1)),Zne=[Yne],Xne={key:1,class:"alert alert-danger"},Jne={key:2,class:"layout"},eoe={class:"default-content"},toe={class:"start"},roe={class:"tab-items"},noe=["onClick","onContextmenu"],ooe=["onClick"],ioe=Xl(()=>V("md-ripple",null,null,-1)),aoe={class:"end"},soe={class:"page-content"},loe={class:"quick"},coe=Xl(()=>V("md-ripple",null,null,-1)),doe=Xl(()=>V("md-ripple",null,null,-1)),uoe=Xl(()=>V("md-ripple",null,null,-1)),foe=Xl(()=>V("md-ripple",null,null,-1)),poe={class:"quick-content"},hoe=Bt({__name:"MainView",setup(t){const e=Bd(),r=cU(),n=ki(),{app:o,urlTokenKey:i}=ya(n),{t:a}=$n(),c=Se(!0),d=Se(""),u=Se([]),f=new Map;let g=!1;const _=St(()=>n.uploads.length>0);function b(q){e.quick===q?e.quick="":e.quick=q}const{refetch:h}=ys({handle:(q,H)=>{var U;if(c.value=!1,H)d.value=H;else if(q){const ce=(U=o.value)==null?void 0:U.urlToken,Ae=q.app.urlToken;i.value=Pb(Ae),ce!==Ae&&(window.fileIdMap=new Map),o.value=q.app,g&&(g=!1,mt.emit("do_play_audio"))}},document:$Z,appApi:!0});function m(q,H){q.preventDefault();const U=[];H!=="/"&&U.push({label:a("close"),onClick:()=>{L(H)}}),U.push({label:a("close_other_tabs"),onClick:()=>{gs(e.pages,ce=>ce!==H),y.value!==H&&y.value!=="/"&&A(H),u.value=e.pages}}),U.push({label:a("close_tabs_to_the_right"),onClick:()=>{const ce=e.pages.indexOf(H);gs(e.pages,Ae=>e.pages.indexOf(Ae)>ce),y.value!==H&&y.value!=="/"&&A(H),u.value=e.pages}}),Qne({x:q.x,y:q.y,items:U})}const y=Se(r.currentRoute.value.fullPath);Vt(()=>r.currentRoute.value.fullPath,q=>{y.value=q});const v=()=>{h()},x=()=>{g=!0,h()},E=q=>{q.type==="AUDIO"&&h()},T=q=>{q.type==="AUDIO"&&h()};mn(()=>{mt.on("refetch_app",v),mt.on("play_audio",x),mt.on("media_items_deleted",E),mt.on("media_item_deleted",T),u.value=e.pages}),Hl(()=>{mt.off("refetch_app",v),mt.off("play_audio",x),mt.off("media_items_deleted",E),mt.off("media_item_deleted",T)});const C=(q,H)=>{let U;const ce=q;return f.has(ce)?U=f.get(ce):(U=H,f.set(ce,U)),U};function A(q){r.push(q)}function L(q){const H=e.pages.indexOf(q);H!==-1&&(e.pages.splice(H,1),y.value===q&&(e.pages.length?H{localStorage.setItem("main_state",JSON.stringify(q)),y.value=r.currentRoute.value.fullPath},{deep:!0});const R=localStorage.getItem("main_state");R&&(e.$state={...e.$state,...JSON.parse(R)});const D=q=>{["/","/login"].includes(q.path)||e.pages.includes(q.fullPath)||(e.pages.push(q.fullPath),u.value=e.pages)};return D(r.currentRoute.value),r.afterEach((q,H,U)=>{D(q)}),(q,H)=>{const U=Hd,ce=Nne,Ae=Fy("router-view"),Le=_re,Te=pre,Ie=lre,Pe=nre,Ce=Xte,de=Jee,we=see,ke=$J,Re=cJ,He=ws("tooltip");return c.value?(te(),ie("div",Kne,Zne)):d.value?(te(),ie("div",Xne,Ne(q.$t(d.value)),1)):(te(),ie("div",Jne,[V("header",null,[V("div",eoe,[V("section",toe,[V("div",roe,[V("div",{class:Vn(["tab-item",{active:y.value==="/"}]),onClick:H[0]||(H[0]=ze=>A("/")),key:"/",onContextmenu:H[1]||(H[1]=ze=>m(ze,"/"))},[V("span",null,Ne(q.$t("page_title.home")),1)],34),(te(!0),ie(Pt,null,wo(he(e).pages,ze=>(te(),ie("div",{key:ze,onClick:We=>A(ze),class:Vn(["tab-item",{active:y.value===ze}]),onContextmenu:We=>m(We,ze)},[V("span",null,Ne(q.$t(`page_title.${he(_oe)(ze)}`)),1),V("button",{class:"icon-button tab-icon",onClick:Ot(We=>L(ze),["stop"])},[ioe,Be(U)],8,ooe)],42,noe))),128))])]),V("section",aoe,[Be(ce,{"logged-in":!0})])])]),V("div",soe,[Be(Ae,null,{default:go(({Component:ze,route:We})=>[(te(),Hr(Ny(C(We.fullPath,ze)),{key:q.$route.fullPath}))]),_:1})]),V("div",loe,[_t((te(),ie("button",{class:Vn(["icon-button q-action",{selected:he(e).quick==="notification"}]),onClick:H[2]||(H[2]=ze=>b("notification")),toggle:""},[coe,Be(Le)],2)),[[He,q.$t("header_actions.notifications")]]),_.value?_t((te(),ie("button",{key:0,class:Vn(["icon-button q-action",{selected:he(e).quick==="task"}]),onClick:H[3]||(H[3]=ze=>b("task")),toggle:""},[doe,Be(Te)],2)),[[He,q.$t("header_actions.tasks")]]):Tt("",!0),_t((te(),ie("button",{id:"quick-audio",class:Vn(["icon-button q-action",{selected:he(e).quick==="audio"}]),onClick:H[4]||(H[4]=ze=>b("audio")),toggle:""},[uoe,Be(Ie)],2)),[[He,q.$t("playlist")]]),_t((te(),ie("button",{class:Vn(["icon-button q-action",{selected:he(e).quick==="chat"}]),onClick:H[5]||(H[5]=ze=>b("chat")),toggle:""},[foe,Be(Pe)],2)),[[He,q.$t("my_phone")]])]),V("div",poe,[_t(Be(Ce,null,null,512),[[uo,he(e).quick==="chat"]]),_t(Be(de,null,null,512),[[uo,he(e).quick==="audio"]]),_t(Be(we,null,null,512),[[uo,he(e).quick==="task"]]),_t(Be(ke,null,null,512),[[uo,he(e).quick==="notification"]])]),Be(Re)]))}}});const moe=gn(hoe,[["__scopeId","data-v-e23481d8"]]),Do=sU({strict:!0,history:EB(),scrollBehavior(t,e,r){return r||{top:0}},routes:[{path:"/",component:moe,meta:{requiresAuth:!0},children:[{name:"home",path:"",component:()=>it(()=>import("./HomeView-2a97ac79.js"),["assets/HomeView-2a97ac79.js","assets/vee-validate.esm-ca78f26f.js","assets/HomeView-5125e9ec.css"]),meta:{group:"home"}},{path:"messages",component:()=>it(()=>import("./MessagesRootView-6bf338f4.js"),["assets/MessagesRootView-6bf338f4.js","assets/TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js","assets/EditValueModal-c22a5b2d.js","assets/vee-validate.esm-ca78f26f.js","assets/EditValueModal-33a23af3.css","assets/splitpanes.es-7e8a6fea.js"]),meta:{group:"messages"},children:[{path:"",component:()=>it(()=>import("./MessagesView-5e09032c.js"),["assets/MessagesView-5e09032c.js","assets/list-183f8357.js","assets/list-69812e9a.css","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-bf0f6db9.js","assets/vee-validate.esm-ca78f26f.js","assets/tags-1a6de70c.css"]),meta:{group:"messages"}},{path:":type",component:()=>it(()=>import("./MessagesView-5e09032c.js"),["assets/MessagesView-5e09032c.js","assets/list-183f8357.js","assets/list-69812e9a.css","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-bf0f6db9.js","assets/vee-validate.esm-ca78f26f.js","assets/tags-1a6de70c.css"]),meta:{group:"messages"}}]},{path:"calls",component:()=>it(()=>import("./CallsRootView-df2ef363.js"),["assets/CallsRootView-df2ef363.js","assets/TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js","assets/EditValueModal-c22a5b2d.js","assets/vee-validate.esm-ca78f26f.js","assets/EditValueModal-33a23af3.css","assets/splitpanes.es-7e8a6fea.js"]),meta:{group:"calls"},children:[{path:"",component:()=>it(()=>import("./CallsView-d07d93e5.js"),["assets/CallsView-d07d93e5.js","assets/list-183f8357.js","assets/list-69812e9a.css","assets/call-outline-rounded-00415545.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-bf0f6db9.js","assets/vee-validate.esm-ca78f26f.js","assets/tags-1a6de70c.css"]),meta:{group:"calls"}},{path:":type",component:()=>it(()=>import("./CallsView-d07d93e5.js"),["assets/CallsView-d07d93e5.js","assets/list-183f8357.js","assets/list-69812e9a.css","assets/call-outline-rounded-00415545.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-bf0f6db9.js","assets/vee-validate.esm-ca78f26f.js","assets/tags-1a6de70c.css"]),meta:{group:"calls"}}]},{path:"apps",component:()=>it(()=>import("./AppsRootView-fab2d856.js"),["assets/AppsRootView-fab2d856.js","assets/splitpanes.es-7e8a6fea.js"]),meta:{group:"apps"},children:[{path:"",component:()=>it(()=>import("./AppsView-79ed36fe.js"),["assets/AppsView-79ed36fe.js","assets/list-183f8357.js","assets/list-69812e9a.css","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css"]),meta:{group:"apps"}},{path:":type",component:()=>it(()=>import("./AppsView-79ed36fe.js"),["assets/AppsView-79ed36fe.js","assets/list-183f8357.js","assets/list-69812e9a.css","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css"]),meta:{group:"apps"}}]},{path:"contacts",component:()=>it(()=>import("./ContactsRootView-78887ad1.js"),["assets/ContactsRootView-78887ad1.js","assets/TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js","assets/EditValueModal-c22a5b2d.js","assets/vee-validate.esm-ca78f26f.js","assets/EditValueModal-33a23af3.css","assets/splitpanes.es-7e8a6fea.js"]),meta:{group:"contacts"},children:[{path:"",component:()=>it(()=>import("./ContactsView-0a79638e.js"),["assets/ContactsView-0a79638e.js","assets/list-183f8357.js","assets/list-69812e9a.css","assets/call-outline-rounded-00415545.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/vee-validate.esm-ca78f26f.js","assets/tags-bf0f6db9.js","assets/tags-1a6de70c.css","assets/ContactsView-f9fe45af.css"]),meta:{group:"contacts"}}]},{path:"images",component:()=>it(()=>import("./ImagesRootView-c23380b9.js"),["assets/ImagesRootView-c23380b9.js","assets/TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js","assets/EditValueModal-c22a5b2d.js","assets/vee-validate.esm-ca78f26f.js","assets/EditValueModal-33a23af3.css","assets/BucketFilter.vuevuetypescriptsetuptruelang-f7ab6958.js","assets/splitpanes.es-7e8a6fea.js"]),meta:{group:"images"},children:[{path:"",component:()=>it(()=>import("./ImagesView-62eb11b2.js"),["assets/ImagesView-62eb11b2.js","assets/list-183f8357.js","assets/list-69812e9a.css","assets/upload-rounded-8f0af5aa.js","assets/grid-view-outline-rounded-600c49fd.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-bf0f6db9.js","assets/vee-validate.esm-ca78f26f.js","assets/tags-1a6de70c.css","assets/ImagesView-4b740933.css"]),meta:{group:"images"}}]},{path:"videos",component:()=>it(()=>import("./VideosRootView-3b9905f4.js"),["assets/VideosRootView-3b9905f4.js","assets/TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js","assets/EditValueModal-c22a5b2d.js","assets/vee-validate.esm-ca78f26f.js","assets/EditValueModal-33a23af3.css","assets/BucketFilter.vuevuetypescriptsetuptruelang-f7ab6958.js","assets/splitpanes.es-7e8a6fea.js"]),meta:{group:"videos"},children:[{path:"",component:()=>it(()=>import("./VideosView-7dd1d1c7.js"),["assets/VideosView-7dd1d1c7.js","assets/list-183f8357.js","assets/list-69812e9a.css","assets/upload-rounded-8f0af5aa.js","assets/grid-view-outline-rounded-600c49fd.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-bf0f6db9.js","assets/vee-validate.esm-ca78f26f.js","assets/tags-1a6de70c.css","assets/VideosView-6b8ce396.css"]),meta:{group:"videos"}}]},{path:"audios",component:()=>it(()=>import("./AudiosRootView-1ba1658f.js"),["assets/AudiosRootView-1ba1658f.js","assets/TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js","assets/EditValueModal-c22a5b2d.js","assets/vee-validate.esm-ca78f26f.js","assets/EditValueModal-33a23af3.css","assets/BucketFilter.vuevuetypescriptsetuptruelang-f7ab6958.js","assets/splitpanes.es-7e8a6fea.js"]),meta:{group:"audios"},children:[{path:"",component:()=>it(()=>import("./AudiosView-6a234a76.js"),["assets/AudiosView-6a234a76.js","assets/list-183f8357.js","assets/list-69812e9a.css","assets/upload-rounded-8f0af5aa.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-bf0f6db9.js","assets/vee-validate.esm-ca78f26f.js","assets/tags-1a6de70c.css","assets/AudiosView-eba13dce.css"]),meta:{group:"audios"}}]},{path:"notes/:id",component:()=>it(()=>import("./NoteEditView-e8325b10.js"),["assets/NoteEditView-e8325b10.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js","assets/MonacoEditor-eb205dcf.css","assets/print-outline-rounded-5f50c8a6.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/splitpanes.es-7e8a6fea.js","assets/markdown-fa9038b1.js","assets/NoteEditView-9c575aea.css"]),meta:{group:"notes"}},{path:"notes",component:()=>it(()=>import("./NotesRootView-2ace0816.js"),["assets/NotesRootView-2ace0816.js","assets/TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js","assets/EditValueModal-c22a5b2d.js","assets/vee-validate.esm-ca78f26f.js","assets/EditValueModal-33a23af3.css","assets/splitpanes.es-7e8a6fea.js"]),meta:{group:"notes"},children:[{path:"",component:()=>it(()=>import("./NotesView-daa7a513.js"),["assets/NotesView-daa7a513.js","assets/list-183f8357.js","assets/list-69812e9a.css","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-bf0f6db9.js","assets/vee-validate.esm-ca78f26f.js","assets/tags-1a6de70c.css"]),meta:{group:"notes"}},{path:"trash",component:()=>it(()=>import("./NotesTrashView-dc84dd35.js"),["assets/NotesTrashView-dc84dd35.js","assets/list-183f8357.js","assets/list-69812e9a.css","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-bf0f6db9.js","assets/vee-validate.esm-ca78f26f.js","assets/tags-1a6de70c.css"]),meta:{group:"trash"}}]},{path:"aichats/:id",component:()=>it(()=>import("./AIChatView-81429749.js"),["assets/AIChatView-81429749.js","assets/splitpanes.es-7e8a6fea.js","assets/markdown-fa9038b1.js","assets/AIChatView-e251387c.css"]),meta:{group:"aichats"}},{path:"aichats",component:()=>it(()=>import("./AIChatsRootView-9d2a06a5.js"),["assets/AIChatsRootView-9d2a06a5.js","assets/TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js","assets/EditValueModal-c22a5b2d.js","assets/vee-validate.esm-ca78f26f.js","assets/EditValueModal-33a23af3.css","assets/splitpanes.es-7e8a6fea.js"]),meta:{group:"aichats"},children:[{path:"",component:()=>it(()=>import("./AIChatsView-2decde9e.js"),["assets/AIChatsView-2decde9e.js","assets/list-183f8357.js","assets/list-69812e9a.css","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-bf0f6db9.js","assets/vee-validate.esm-ca78f26f.js","assets/tags-1a6de70c.css"]),meta:{group:"aichats"}}]},{path:"files",component:()=>it(()=>import("./FilesRootView-a1781340.js"),["assets/FilesRootView-a1781340.js","assets/splitpanes.es-7e8a6fea.js"]),meta:{group:"files"},children:[{path:"",component:()=>it(()=>import("./FilesView-8eb4e330.js"),["assets/FilesView-8eb4e330.js","assets/refresh-rounded-aea8467d.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/splitpanes.es-7e8a6fea.js","assets/EditValueModal-c22a5b2d.js","assets/vee-validate.esm-ca78f26f.js","assets/EditValueModal-33a23af3.css","assets/FilesView-d054e85d.css"]),meta:{group:"files"}},{path:"recent",component:()=>it(()=>import("./FilesRecentView-760365b8.js"),["assets/FilesRecentView-760365b8.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/FilesRecentView-48321e01.css"]),meta:{group:"files"}},{path:":type",component:()=>it(()=>import("./FilesView-8eb4e330.js"),["assets/FilesView-8eb4e330.js","assets/refresh-rounded-aea8467d.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/splitpanes.es-7e8a6fea.js","assets/EditValueModal-c22a5b2d.js","assets/vee-validate.esm-ca78f26f.js","assets/EditValueModal-33a23af3.css","assets/FilesView-d054e85d.css"]),meta:{group:"files"}}]},{path:"json-viewer",component:()=>it(()=>import("./JsonViewerView-d31927f1.js"),["assets/JsonViewerView-d31927f1.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js","assets/MonacoEditor-eb205dcf.css","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/splitpanes.es-7e8a6fea.js","assets/JsonViewerView-50d35b39.css"]),meta:{group:"json_viewer"}},{path:"qrcode-generator",component:()=>it(()=>import("./QrCodeGeneratorView-766c95f1.js"),["assets/QrCodeGeneratorView-766c95f1.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/splitpanes.es-7e8a6fea.js","assets/QrCodeGeneratorView-45d4ebea.css"]),meta:{group:"qrcode_generator"}},{path:"screen-mirror",component:()=>it(()=>import("./ScreenMirrorView-2d0c4567.js"),["assets/ScreenMirrorView-2d0c4567.js","assets/refresh-rounded-aea8467d.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/ScreenMirrorView-c252eda6.css"]),meta:{group:"screen_mirror"}},{path:"device-info",component:()=>it(()=>import("./DeviceInfoView-c84a4cf1.js"),["assets/DeviceInfoView-c84a4cf1.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/DeviceInfoView-31c16428.css"]),meta:{group:"device_info"}},{path:"network",component:()=>it(()=>import("./NetworkView-40fddeb1.js"),["assets/NetworkView-40fddeb1.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js","assets/MonacoEditor-eb205dcf.css","assets/EditToolbar.vuevuetypescriptsetuptruelang-c9962942.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css"]),meta:{group:"network"}},{path:"wifi",component:()=>it(()=>import("./WiFiView-67a5c23b.js"),["assets/WiFiView-67a5c23b.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js","assets/MonacoEditor-eb205dcf.css","assets/EditToolbar.vuevuetypescriptsetuptruelang-c9962942.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/vee-validate.esm-ca78f26f.js"]),meta:{group:"wifi"}},{path:"wireguard",component:()=>it(()=>import("./WireGuardView-75612dc0.js"),["assets/WireGuardView-75612dc0.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/parser-fdd85e1d.js"]),meta:{group:"wireguard"}},{path:"wireguard/:id",component:()=>it(()=>import("./WireGuardEditView-6c951e0b.js"),["assets/WireGuardEditView-6c951e0b.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js","assets/MonacoEditor-eb205dcf.css","assets/EditToolbar.vuevuetypescriptsetuptruelang-c9962942.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/parser-fdd85e1d.js"]),meta:{group:"wireguard"}},{path:"rules",component:()=>it(()=>import("./RulesView-9428daef.js"),["assets/RulesView-9428daef.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/question-mark-rounded-b74e337c.js","assets/vee-validate.esm-ca78f26f.js"]),meta:{group:"rules"}},{path:"routes",component:()=>it(()=>import("./RoutesView-f4c0aea4.js"),["assets/RoutesView-f4c0aea4.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/question-mark-rounded-b74e337c.js","assets/vee-validate.esm-ca78f26f.js"]),meta:{group:"routes"}},{path:"devices",component:()=>it(()=>import("./DevicesView-b0613c32.js"),["assets/DevicesView-b0613c32.js","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/EditValueModal-c22a5b2d.js","assets/vee-validate.esm-ca78f26f.js","assets/EditValueModal-33a23af3.css"]),meta:{group:"devices"}},{path:"feeds",component:()=>it(()=>import("./FeedsRootView-20f8d202.js"),["assets/FeedsRootView-20f8d202.js","assets/TagFilter.vuevuetypescriptsetuptruelang-12e262c1.js","assets/EditValueModal-c22a5b2d.js","assets/vee-validate.esm-ca78f26f.js","assets/EditValueModal-33a23af3.css","assets/splitpanes.es-7e8a6fea.js","assets/FeedsRootView-0b26ab4d.css"]),meta:{group:"feeds"},children:[{path:"",component:()=>it(()=>import("./FeedsView-171091b5.js"),["assets/FeedsView-171091b5.js","assets/list-183f8357.js","assets/list-69812e9a.css","assets/Breadcrumb-f52b6c6b.js","assets/Breadcrumb-d8ca2f00.css","assets/tags-bf0f6db9.js","assets/vee-validate.esm-ca78f26f.js","assets/tags-1a6de70c.css"]),meta:{group:"feeds"}},{path:":feedId/entries/:id",component:()=>it(()=>import("./FeedEntryView-21a66b88.js"),["assets/FeedEntryView-21a66b88.js","assets/print-outline-rounded-5f50c8a6.js","assets/markdown-fa9038b1.js","assets/FeedEntryView-1da67e15.css"]),meta:{group:"feeds"}}]}]},{name:"login",path:"/login",component:()=>it(()=>import("./LoginView-49618539.js"),["assets/LoginView-49618539.js","assets/vee-validate.esm-ca78f26f.js","assets/LoginView-4b589233.css"]),meta:{requiresAuth:!1}}]}),R3=new Map;Do.beforeEach(async(t,e)=>{var o;const r=(o=document.getElementsByClassName("main")[0])==null?void 0:o.scrollTop;r!==void 0&&R3.set(e.fullPath,r);const n=localStorage.getItem("auth_token");if(t.meta.requiresAuth&&!n)return{path:"/login",query:{redirect:t.fullPath}}});Do.afterEach((t,e)=>{setTimeout(()=>{const r=document.getElementsByClassName("main")[0];if(r){const n=R3.get(t.fullPath);n&&(r.scrollTop=n)}},0)});const voe=(t,e)=>{const r=Do.currentRoute.value.fullPath;Do.currentRoute.value.fullPath=e,t.pages.includes(e)?window.history.pushState({},document.title,e):(window.history.replaceState({},document.title,e),t.replaceRoute(r,e))},goe=(t,e)=>{t.pages.includes(e)?Do.push(e):(Do.replace(e),t.replaceRoute(Do.currentRoute.value.fullPath,e))},Uge=t=>{setTimeout(()=>{Do.push(t)},0)},_oe=t=>Do.resolve(t).meta.group;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class boe extends lt{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return _e``}}/** +*/class yoe extends lt{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return _e``}}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const xoe=Ve`:host{--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000));display:flex;pointer-events:none}:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}/*# sourceMappingURL=elevation-styles.css.map */ + */const boe=Ve`:host{--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000));display:flex;pointer-events:none}:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}/*# sourceMappingURL=elevation-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let m_=class extends boe{};m_.styles=[xoe];m_=P([rt("md-elevation")],m_);/** +*/let m_=class extends yoe{};m_.styles=[boe];m_=P([rt("md-elevation")],m_);/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause -*/const M3=Symbol.for(""),woe=t=>{if((t==null?void 0:t.r)===M3)return t==null?void 0:t._$litStatic$},Wr=(t,...e)=>({_$litStatic$:e.reduce((r,n,o)=>r+(i=>{if(i._$litStatic$!==void 0)return i._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${i}. Use 'unsafeStatic' to pass non-literal values, but - take care to ensure page security.`)})(n)+t[o+1],t[0]),r:M3}),rT=new Map,Eoe=t=>(e,...r)=>{const n=r.length;let o,i;const a=[],c=[];let d,u=0,f=!1;for(;u{if((t==null?void 0:t.r)===L3)return t==null?void 0:t._$litStatic$},Wr=(t,...e)=>({_$litStatic$:e.reduce((r,n,o)=>r+(i=>{if(i._$litStatic$!==void 0)return i._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${i}. Use 'unsafeStatic' to pass non-literal values, but + take care to ensure page security.`)})(n)+t[o+1],t[0]),r:L3}),rT=new Map,woe=t=>(e,...r)=>{const n=r.length;let o,i;const a=[],c=[];let d,u=0,f=!1;for(;u{const r=e;r.addEventListener("click",async n=>{const{type:o,[zl]:i}=r,{form:a}=i;if(!(!a||o==="button")&&(await new Promise(c=>{c()}),!n.defaultPrevented)){if(o==="reset"){a.reset();return}a.addEventListener("submit",c=>{Object.defineProperty(c,"submitter",{configurable:!0,enumerable:!0,get:()=>r})},{capture:!0,once:!0}),i.setFormValue(r.value),a.requestSubmit()}})})}/** +*/function M3(t){t.addInitializer(e=>{const r=e;r.addEventListener("click",async n=>{const{type:o,[zl]:i}=r,{form:a}=i;if(!(!a||o==="button")&&(await new Promise(c=>{c()}),!n.defaultPrevented)){if(o==="reset"){a.reset();return}a.addEventListener("submit",c=>{Object.defineProperty(c,"submitter",{configurable:!0,enumerable:!0,get:()=>r})},{capture:!0,once:!0}),i.setFormValue(r.value),a.requestSubmit()}})})}/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/var F3;class Or extends lt{get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[zl].form}constructor(){super(),this.disabled=!1,this.href="",this.target="",this.trailingIcon=!1,this.hasIcon=!1,this.type="submit",this.value="",this[F3]=this.attachInternals(),this.handleActivationClick=e=>{!Zd(e)||!this.buttonElement||(this.focus(),Th(this.buttonElement))},this.addEventListener("click",this.handleActivationClick)}focus(){var e;(e=this.buttonElement)==null||e.focus()}blur(){var e;(e=this.buttonElement)==null||e.blur()}render(){const e=this.disabled&&!this.href,r=this.href?Wr`a`:Wr`button`,{ariaLabel:n,ariaHasPopup:o,ariaExpanded:i}=this;return Jl` +*/var D3;class Or extends lt{get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[zl].form}constructor(){super(),this.disabled=!1,this.href="",this.target="",this.trailingIcon=!1,this.hasIcon=!1,this.type="submit",this.value="",this[D3]=this.attachInternals(),this.handleActivationClick=e=>{!Zd(e)||!this.buttonElement||(this.focus(),Th(this.buttonElement))},this.addEventListener("click",this.handleActivationClick)}focus(){var e;(e=this.buttonElement)==null||e.focus()}blur(){var e;(e=this.buttonElement)==null||e.blur()}render(){const e=this.disabled&&!this.href,r=this.href?Wr`a`:Wr`button`,{ariaLabel:n,ariaHasPopup:o,ariaExpanded:i}=this;return Jl` <${r} class="button ${jt(this.getRenderClasses())}" ?disabled=${e} @@ -1571,15 +1571,15 @@ function print() { __p += __j.call(arguments, '') } ${this.trailingIcon?ge:r} ${this.trailingIcon?r:ge} - `}handleSlotChange(){this.hasIcon=this.assignedIcons.length>0}}F3=zl;Qr(Or),D3(Or);Or.formAssociated=!0;Or.shadowRootOptions={mode:"open",delegatesFocus:!0};P([Q({type:Boolean,reflect:!0})],Or.prototype,"disabled",void 0);P([Q()],Or.prototype,"href",void 0);P([Q()],Or.prototype,"target",void 0);P([Q({type:Boolean,attribute:"trailing-icon"})],Or.prototype,"trailingIcon",void 0);P([Q({type:Boolean,attribute:"has-icon"})],Or.prototype,"hasIcon",void 0);P([Q()],Or.prototype,"type",void 0);P([Q()],Or.prototype,"value",void 0);P([wt(".button")],Or.prototype,"buttonElement",void 0);P([Gr({slot:"icon",flatten:!0})],Or.prototype,"assignedIcons",void 0);/** + `}handleSlotChange(){this.hasIcon=this.assignedIcons.length>0}}D3=zl;Qr(Or),M3(Or);Or.formAssociated=!0;Or.shadowRootOptions={mode:"open",delegatesFocus:!0};P([Q({type:Boolean,reflect:!0})],Or.prototype,"disabled",void 0);P([Q()],Or.prototype,"href",void 0);P([Q()],Or.prototype,"target",void 0);P([Q({type:Boolean,attribute:"trailing-icon"})],Or.prototype,"trailingIcon",void 0);P([Q({type:Boolean,attribute:"has-icon"})],Or.prototype,"hasIcon",void 0);P([Q()],Or.prototype,"type",void 0);P([Q()],Or.prototype,"value",void 0);P([wt(".button")],Or.prototype,"buttonElement",void 0);P([Gr({slot:"icon",flatten:!0})],Or.prototype,"assignedIcons",void 0);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class Coe extends Or{renderElevation(){return _e``}}/** +*/class koe extends Or{renderElevation(){return _e``}}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const Aoe=Ve`:host{--_container-color: var(--md-elevated-button-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_container-elevation: var(--md-elevated-button-container-elevation, 1);--_container-height: var(--md-elevated-button-container-height, 40px);--_container-shadow-color: var(--md-elevated-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-shape: var(--md-elevated-button-container-shape, 9999px);--_disabled-container-color: var(--md-elevated-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-elevated-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-elevated-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-elevated-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-elevated-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-elevated-button-focus-container-elevation, 1);--_focus-label-text-color: var(--md-elevated-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-container-elevation: var(--md-elevated-button-hover-container-elevation, 2);--_hover-label-text-color: var(--md-elevated-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-elevated-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-elevated-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-elevated-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-elevated-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-elevated-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-elevated-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-elevated-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-elevated-button-pressed-container-elevation, 1);--_pressed-label-text-color: var(--md-elevated-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-elevated-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-elevated-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-elevated-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-elevated-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-elevated-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-elevated-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-elevated-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-elevated-button-icon-size, 18px);--_pressed-icon-color: var(--md-elevated-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-space: var(--md-elevated-button-leading-space, 24px);--_trailing-space: var(--md-elevated-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-elevated-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-elevated-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-elevated-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-elevated-button-with-trailing-icon-trailing-space, 16px);--_container-shape-start-start: var( --md-elevated-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-elevated-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-elevated-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-elevated-button-container-shape-end-start, var(--_container-shape) )}/*# sourceMappingURL=elevated-styles.css.map */ + */const Coe=Ve`:host{--_container-color: var(--md-elevated-button-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_container-elevation: var(--md-elevated-button-container-elevation, 1);--_container-height: var(--md-elevated-button-container-height, 40px);--_container-shadow-color: var(--md-elevated-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-shape: var(--md-elevated-button-container-shape, 9999px);--_disabled-container-color: var(--md-elevated-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-elevated-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-elevated-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-elevated-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-elevated-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-elevated-button-focus-container-elevation, 1);--_focus-label-text-color: var(--md-elevated-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-container-elevation: var(--md-elevated-button-hover-container-elevation, 2);--_hover-label-text-color: var(--md-elevated-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-elevated-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-elevated-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-elevated-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-elevated-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-elevated-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-elevated-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-elevated-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-elevated-button-pressed-container-elevation, 1);--_pressed-label-text-color: var(--md-elevated-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-elevated-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-elevated-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-elevated-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-elevated-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-elevated-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-elevated-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-elevated-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-elevated-button-icon-size, 18px);--_pressed-icon-color: var(--md-elevated-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-space: var(--md-elevated-button-leading-space, 24px);--_trailing-space: var(--md-elevated-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-elevated-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-elevated-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-elevated-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-elevated-button-with-trailing-icon-trailing-space, 16px);--_container-shape-start-start: var( --md-elevated-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-elevated-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-elevated-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-elevated-button-container-shape-end-start, var(--_container-shape) )}/*# sourceMappingURL=elevated-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC @@ -1594,59 +1594,59 @@ function print() { __p += __j.call(arguments, '') } * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let g_=class extends Coe{};g_.styles=[Xd,_0,Aoe];g_=P([rt("md-elevated-button")],g_);/** +*/let g_=class extends koe{};g_.styles=[Xd,_0,Coe];g_=P([rt("md-elevated-button")],g_);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class Soe extends Or{renderElevation(){return _e``}}/** +*/class Aoe extends Or{renderElevation(){return _e``}}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const Ioe=Ve`:host{--_container-color: var(--md-filled-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-elevation: var(--md-filled-button-container-elevation, 0);--_container-height: var(--md-filled-button-container-height, 40px);--_container-shadow-color: var(--md-filled-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-shape: var(--md-filled-button-container-shape, 9999px);--_disabled-container-color: var(--md-filled-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-button-focus-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-container-elevation: var(--md-filled-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-button-hover-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-button-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-filled-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-button-pressed-label-text-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-color: var(--md-filled-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_leading-space: var(--md-filled-button-leading-space, 24px);--_trailing-space: var(--md-filled-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-button-with-trailing-icon-trailing-space, 16px);--_container-shape-start-start: var( --md-filled-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-filled-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-filled-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-filled-button-container-shape-end-start, var(--_container-shape) )}/*# sourceMappingURL=filled-styles.css.map */ + */const Soe=Ve`:host{--_container-color: var(--md-filled-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-elevation: var(--md-filled-button-container-elevation, 0);--_container-height: var(--md-filled-button-container-height, 40px);--_container-shadow-color: var(--md-filled-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-shape: var(--md-filled-button-container-shape, 9999px);--_disabled-container-color: var(--md-filled-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-button-focus-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-container-elevation: var(--md-filled-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-button-hover-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-button-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-filled-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-button-pressed-label-text-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-color: var(--md-filled-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_leading-space: var(--md-filled-button-leading-space, 24px);--_trailing-space: var(--md-filled-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-button-with-trailing-icon-trailing-space, 16px);--_container-shape-start-start: var( --md-filled-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-filled-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-filled-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-filled-button-container-shape-end-start, var(--_container-shape) )}/*# sourceMappingURL=filled-styles.css.map */ `;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let __=class extends Soe{};__.styles=[Xd,_0,Ioe];__=P([rt("md-filled-button")],__);/** +*/let __=class extends Aoe{};__.styles=[Xd,_0,Soe];__=P([rt("md-filled-button")],__);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class $oe extends Or{renderElevation(){return _e``}}/** +*/class Ioe extends Or{renderElevation(){return _e``}}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const Ooe=Ve`:host{--_container-color: var(--md-filled-tonal-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-elevation: var(--md-filled-tonal-button-container-elevation, 0);--_container-height: var(--md-filled-tonal-button-container-height, 40px);--_container-shadow-color: var(--md-filled-tonal-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-shape: var(--md-filled-tonal-button-container-shape, 9999px);--_disabled-container-color: var(--md-filled-tonal-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-tonal-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-tonal-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-tonal-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-tonal-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-tonal-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-tonal-button-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-container-elevation: var(--md-filled-tonal-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-tonal-button-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-tonal-button-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_label-text-font: var(--md-filled-tonal-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-tonal-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-tonal-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-tonal-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-tonal-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-tonal-button-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-color: var(--md-filled-tonal-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-tonal-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_leading-space: var(--md-filled-tonal-button-leading-space, 24px);--_trailing-space: var(--md-filled-tonal-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-tonal-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-tonal-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-tonal-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-tonal-button-with-trailing-icon-trailing-space, 16px);--_container-shape-start-start: var( --md-filled-tonal-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-filled-tonal-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-filled-tonal-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-filled-tonal-button-container-shape-end-start, var(--_container-shape) )}/*# sourceMappingURL=filled-tonal-styles.css.map */ + */const $oe=Ve`:host{--_container-color: var(--md-filled-tonal-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-elevation: var(--md-filled-tonal-button-container-elevation, 0);--_container-height: var(--md-filled-tonal-button-container-height, 40px);--_container-shadow-color: var(--md-filled-tonal-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-shape: var(--md-filled-tonal-button-container-shape, 9999px);--_disabled-container-color: var(--md-filled-tonal-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-tonal-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-tonal-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-tonal-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-tonal-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-tonal-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-tonal-button-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-container-elevation: var(--md-filled-tonal-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-tonal-button-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-tonal-button-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_label-text-font: var(--md-filled-tonal-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-tonal-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-tonal-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-tonal-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-tonal-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-tonal-button-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-color: var(--md-filled-tonal-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-tonal-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_leading-space: var(--md-filled-tonal-button-leading-space, 24px);--_trailing-space: var(--md-filled-tonal-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-tonal-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-tonal-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-tonal-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-tonal-button-with-trailing-icon-trailing-space, 16px);--_container-shape-start-start: var( --md-filled-tonal-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-filled-tonal-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-filled-tonal-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-filled-tonal-button-container-shape-end-start, var(--_container-shape) )}/*# sourceMappingURL=filled-tonal-styles.css.map */ `;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let y_=class extends $oe{};y_.styles=[Xd,_0,Ooe];y_=P([rt("md-filled-tonal-button")],y_);/** +*/let y_=class extends Ioe{};y_.styles=[Xd,_0,$oe];y_=P([rt("md-filled-tonal-button")],y_);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class Poe extends Or{renderOutline(){return _e``}}/** +*/class Ooe extends Or{renderOutline(){return _e``}}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const Roe=Ve`:host{--_container-height: var(--md-outlined-button-container-height, 40px);--_container-shape: var(--md-outlined-button-container-shape, 9999px);--_disabled-label-text-color: var(--md-outlined-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-button-disabled-label-text-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-button-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-outlined-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-outlined-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-outlined-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-outlined-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-outlined-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-outlined-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-button-outline-width, 1px);--_pressed-label-text-color: var(--md-outlined-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-outline-color: var(--md-outlined-button-pressed-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-color: var(--md-outlined-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-outlined-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-outlined-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-outlined-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-outlined-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-outlined-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-outlined-button-icon-size, 18px);--_pressed-icon-color: var(--md-outlined-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-space: var(--md-outlined-button-leading-space, 24px);--_trailing-space: var(--md-outlined-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-outlined-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-outlined-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-outlined-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-outlined-button-with-trailing-icon-trailing-space, 16px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0;--_container-shape-start-start: var( --md-outlined-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-outlined-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-outlined-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-outlined-button-container-shape-end-start, var(--_container-shape) )}.button__outline{inset:0;border-style:solid;position:absolute;box-sizing:border-box;border-color:var(--_outline-color);border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.button:active .button__outline{border-color:var(--_pressed-outline-color)}.button:disabled .button__outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}@media(forced-colors: active){.button:disabled .button__outline{opacity:1}}.button__outline,.button__ripple{border-width:var(--_outline-width)}.button__ripple{inline-size:calc(100% - 2*var(--_outline-width));block-size:calc(100% - 2*var(--_outline-width));border-style:solid;border-color:rgba(0,0,0,0)}/*# sourceMappingURL=outlined-styles.css.map */ + */const Poe=Ve`:host{--_container-height: var(--md-outlined-button-container-height, 40px);--_container-shape: var(--md-outlined-button-container-shape, 9999px);--_disabled-label-text-color: var(--md-outlined-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-button-disabled-label-text-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-button-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-outlined-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-outlined-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-outlined-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-outlined-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-outlined-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-outlined-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-button-outline-width, 1px);--_pressed-label-text-color: var(--md-outlined-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-outline-color: var(--md-outlined-button-pressed-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-color: var(--md-outlined-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-outlined-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-outlined-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-outlined-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-outlined-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-outlined-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-outlined-button-icon-size, 18px);--_pressed-icon-color: var(--md-outlined-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-space: var(--md-outlined-button-leading-space, 24px);--_trailing-space: var(--md-outlined-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-outlined-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-outlined-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-outlined-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-outlined-button-with-trailing-icon-trailing-space, 16px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0;--_container-shape-start-start: var( --md-outlined-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-outlined-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-outlined-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-outlined-button-container-shape-end-start, var(--_container-shape) )}.button__outline{inset:0;border-style:solid;position:absolute;box-sizing:border-box;border-color:var(--_outline-color);border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.button:active .button__outline{border-color:var(--_pressed-outline-color)}.button:disabled .button__outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}@media(forced-colors: active){.button:disabled .button__outline{opacity:1}}.button__outline,.button__ripple{border-width:var(--_outline-width)}.button__ripple{inline-size:calc(100% - 2*var(--_outline-width));block-size:calc(100% - 2*var(--_outline-width));border-style:solid;border-color:rgba(0,0,0,0)}/*# sourceMappingURL=outlined-styles.css.map */ `;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let b_=class extends Poe{};b_.styles=[Xd,Roe];b_=P([rt("md-outlined-button")],b_);/** +*/let b_=class extends Ooe{};b_.styles=[Xd,Poe];b_=P([rt("md-outlined-button")],b_);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class Loe extends Or{}/** +*/class Roe extends Or{}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const Moe=Ve`:host{--_container-height: var(--md-text-button-container-height, 40px);--_container-shape: var(--md-text-button-container-shape, 9999px);--_disabled-label-text-color: var(--md-text-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-text-button-disabled-label-text-opacity, 0.38);--_focus-label-text-color: var(--md-text-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-text-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-text-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-text-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-text-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-text-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-text-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-text-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-text-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-text-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-text-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-text-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-text-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-text-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-text-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-text-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-text-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-text-button-icon-size, 18px);--_pressed-icon-color: var(--md-text-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-space: var(--md-text-button-leading-space, 12px);--_trailing-space: var(--md-text-button-trailing-space, 12px);--_with-leading-icon-leading-space: var(--md-text-button-with-leading-icon-leading-space, 12px);--_with-leading-icon-trailing-space: var(--md-text-button-with-leading-icon-trailing-space, 16px);--_with-trailing-icon-leading-space: var(--md-text-button-with-trailing-icon-leading-space, 16px);--_with-trailing-icon-trailing-space: var(--md-text-button-with-trailing-icon-trailing-space, 12px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0;--_container-shape-start-start: var( --md-text-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-text-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-text-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-text-button-container-shape-end-start, var(--_container-shape) )}/*# sourceMappingURL=text-styles.css.map */ + */const Loe=Ve`:host{--_container-height: var(--md-text-button-container-height, 40px);--_container-shape: var(--md-text-button-container-shape, 9999px);--_disabled-label-text-color: var(--md-text-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-text-button-disabled-label-text-opacity, 0.38);--_focus-label-text-color: var(--md-text-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-text-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-text-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-text-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-text-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-text-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-text-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-text-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-text-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-text-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-text-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-text-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-text-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-text-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-text-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-text-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-text-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-text-button-icon-size, 18px);--_pressed-icon-color: var(--md-text-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-space: var(--md-text-button-leading-space, 12px);--_trailing-space: var(--md-text-button-trailing-space, 12px);--_with-leading-icon-leading-space: var(--md-text-button-with-leading-icon-leading-space, 12px);--_with-leading-icon-trailing-space: var(--md-text-button-with-leading-icon-trailing-space, 16px);--_with-trailing-icon-leading-space: var(--md-text-button-with-trailing-icon-leading-space, 16px);--_with-trailing-icon-trailing-space: var(--md-text-button-with-trailing-icon-trailing-space, 12px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0;--_container-shape-start-start: var( --md-text-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-text-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-text-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-text-button-container-shape-end-start, var(--_container-shape) )}/*# sourceMappingURL=text-styles.css.map */ `;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let x_=class extends Loe{};x_.styles=[Xd,Moe];x_=P([rt("md-text-button")],x_);/** +*/let x_=class extends Roe{};x_.styles=[Xd,Loe];x_=P([rt("md-text-button")],x_);/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: Apache-2.0 @@ -1677,12 +1677,12 @@ function print() { __p += __j.call(arguments, '') } * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const Doe=Ve`:host{--_container-shape: var(--md-checkbox-container-shape, 2px);--_container-size: var(--md-checkbox-container-size, 18px);--_icon-size: var(--md-checkbox-icon-size, 18px);--_selected-container-color: var(--md-checkbox-selected-container-color, var(--md-sys-color-primary, #6750a4));--_selected-disabled-container-color: var(--md-checkbox-selected-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_selected-disabled-container-opacity: var(--md-checkbox-selected-disabled-container-opacity, 0.38);--_selected-disabled-icon-color: var(--md-checkbox-selected-disabled-icon-color, var(--md-sys-color-surface, #fef7ff));--_selected-focus-container-color: var(--md-checkbox-selected-focus-container-color, var(--md-sys-color-primary, #6750a4));--_selected-focus-icon-color: var(--md-checkbox-selected-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_selected-hover-container-color: var(--md-checkbox-selected-hover-container-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-checkbox-selected-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_selected-hover-state-layer-color: var(--md-checkbox-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-checkbox-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-checkbox-selected-icon-color, var(--md-sys-color-on-primary, #fff));--_selected-pressed-container-color: var(--md-checkbox-selected-pressed-container-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-checkbox-selected-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_selected-pressed-state-layer-color: var(--md-checkbox-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_selected-pressed-state-layer-opacity: var(--md-checkbox-selected-pressed-state-layer-opacity, 0.12);--_state-layer-shape: var(--md-checkbox-state-layer-shape, 9999px);--_state-layer-size: var(--md-checkbox-state-layer-size, 40px);--_disabled-container-opacity: var(--md-checkbox-disabled-container-opacity, 0.38);--_disabled-outline-color: var(--md-checkbox-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-width: var(--md-checkbox-disabled-outline-width, 2px);--_focus-outline-color: var(--md-checkbox-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-outline-width: var(--md-checkbox-focus-outline-width, 2px);--_hover-outline-color: var(--md-checkbox-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-checkbox-hover-outline-width, 2px);--_hover-state-layer-color: var(--md-checkbox-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-checkbox-hover-state-layer-opacity, 0.08);--_outline-color: var(--md-checkbox-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-width: var(--md-checkbox-outline-width, 2px);--_pressed-outline-color: var(--md-checkbox-pressed-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-outline-width: var(--md-checkbox-pressed-outline-width, 2px);--_pressed-state-layer-color: var(--md-checkbox-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-checkbox-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: var( --md-checkbox-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-checkbox-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-checkbox-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-checkbox-container-shape-end-start, var(--_container-shape) );border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:inline-flex;height:var(--_container-size);position:relative;vertical-align:top;width:var(--_container-size);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-size))/2)}md-focus-ring{height:44px;inset:unset;width:44px}input{appearance:none;height:48px;margin:0;opacity:0;outline:none;position:absolute;width:48px;z-index:1;cursor:inherit}:host([touch-target=none]) input{height:100%;width:100%}.container{border-radius:inherit;display:flex;height:100%;place-content:center;place-items:center;position:relative;width:100%}.outline,.background,.icon{inset:0;position:absolute}.outline,.background{border-radius:inherit}.outline{border-color:var(--_outline-color);border-style:solid;border-width:var(--_outline-width);box-sizing:border-box}.background{background-color:var(--_selected-container-color)}.background,.icon{opacity:0;transition-duration:150ms,50ms;transition-property:transform,opacity;transition-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15),linear;transform:scale(0.6)}:where(.selected) :is(.background,.icon){opacity:1;transition-duration:350ms,50ms;transition-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1),linear;transform:scale(1)}md-ripple{border-radius:var(--_state-layer-shape);height:var(--_state-layer-size);inset:unset;width:var(--_state-layer-size);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.selected md-ripple{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}.icon{fill:var(--_selected-icon-color);height:var(--_icon-size);width:var(--_icon-size)}.mark.short{height:2px;transition-property:transform,height;width:2px}.mark.long{height:2px;transition-property:transform,width;width:10px}.mark{animation-duration:150ms;animation-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15);transition-duration:150ms;transition-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15)}.selected .mark{animation-duration:350ms;animation-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1);transition-duration:350ms;transition-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1)}.checked .mark,.prev-checked.unselected .mark{transform:scaleY(-1) translate(7px, -14px) rotate(45deg)}.checked .mark.short,.prev-checked.unselected .mark.short{height:5.6568542495px}.checked .mark.long,.prev-checked.unselected .mark.long{width:11.313708499px}.indeterminate .mark,.prev-indeterminate.unselected .mark{transform:scaleY(-1) translate(4px, -10px) rotate(0deg)}.prev-unselected .mark{transition-property:none}.prev-unselected.checked .mark.long{animation-name:prev-unselected-to-checked}@keyframes prev-unselected-to-checked{from{width:0}}:where(:hover) .outline{border-color:var(--_hover-outline-color);border-width:var(--_hover-outline-width)}:where(:hover) .background{background:var(--_selected-hover-container-color)}:where(:hover) .icon{fill:var(--_selected-hover-icon-color)}:where(:focus-within) .outline{border-color:var(--_focus-outline-color);border-width:var(--_focus-outline-width)}:where(:focus-within) .background{background:var(--_selected-focus-container-color)}:where(:focus-within) .icon{fill:var(--_selected-focus-icon-color)}:where(:active) .outline{border-color:var(--_pressed-outline-color);border-width:var(--_pressed-outline-width)}:where(:active) .background{background:var(--_selected-pressed-container-color)}:where(:active) .icon{fill:var(--_selected-pressed-icon-color)}:where(.disabled,.prev-disabled) :is(.background,.icon,.mark){animation-duration:0s;transition-duration:0s}:where(.disabled) .outline{border-color:var(--_disabled-outline-color);border-width:var(--_disabled-outline-width);opacity:var(--_disabled-container-opacity)}:where(.selected.disabled) .outline{visibility:hidden}:where(.selected.disabled) .background{background:var(--_selected-disabled-container-color);opacity:var(--_selected-disabled-container-opacity)}:where(.disabled) .icon{fill:var(--_selected-disabled-icon-color)}@media(forced-colors: active){.background{background-color:CanvasText}.selected.disabled .background{background-color:GrayText;opacity:1}.outline{border-color:CanvasText}.disabled .outline{border-color:GrayText;opacity:1}.icon{fill:Canvas}}/*# sourceMappingURL=checkbox-styles.css.map */ +*/const Moe=Ve`:host{--_container-shape: var(--md-checkbox-container-shape, 2px);--_container-size: var(--md-checkbox-container-size, 18px);--_icon-size: var(--md-checkbox-icon-size, 18px);--_selected-container-color: var(--md-checkbox-selected-container-color, var(--md-sys-color-primary, #6750a4));--_selected-disabled-container-color: var(--md-checkbox-selected-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_selected-disabled-container-opacity: var(--md-checkbox-selected-disabled-container-opacity, 0.38);--_selected-disabled-icon-color: var(--md-checkbox-selected-disabled-icon-color, var(--md-sys-color-surface, #fef7ff));--_selected-focus-container-color: var(--md-checkbox-selected-focus-container-color, var(--md-sys-color-primary, #6750a4));--_selected-focus-icon-color: var(--md-checkbox-selected-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_selected-hover-container-color: var(--md-checkbox-selected-hover-container-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-checkbox-selected-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_selected-hover-state-layer-color: var(--md-checkbox-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-checkbox-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-checkbox-selected-icon-color, var(--md-sys-color-on-primary, #fff));--_selected-pressed-container-color: var(--md-checkbox-selected-pressed-container-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-checkbox-selected-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_selected-pressed-state-layer-color: var(--md-checkbox-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_selected-pressed-state-layer-opacity: var(--md-checkbox-selected-pressed-state-layer-opacity, 0.12);--_state-layer-shape: var(--md-checkbox-state-layer-shape, 9999px);--_state-layer-size: var(--md-checkbox-state-layer-size, 40px);--_disabled-container-opacity: var(--md-checkbox-disabled-container-opacity, 0.38);--_disabled-outline-color: var(--md-checkbox-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-width: var(--md-checkbox-disabled-outline-width, 2px);--_focus-outline-color: var(--md-checkbox-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-outline-width: var(--md-checkbox-focus-outline-width, 2px);--_hover-outline-color: var(--md-checkbox-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-checkbox-hover-outline-width, 2px);--_hover-state-layer-color: var(--md-checkbox-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-checkbox-hover-state-layer-opacity, 0.08);--_outline-color: var(--md-checkbox-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-width: var(--md-checkbox-outline-width, 2px);--_pressed-outline-color: var(--md-checkbox-pressed-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-outline-width: var(--md-checkbox-pressed-outline-width, 2px);--_pressed-state-layer-color: var(--md-checkbox-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-checkbox-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: var( --md-checkbox-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-checkbox-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-checkbox-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-checkbox-container-shape-end-start, var(--_container-shape) );border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:inline-flex;height:var(--_container-size);position:relative;vertical-align:top;width:var(--_container-size);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-size))/2)}md-focus-ring{height:44px;inset:unset;width:44px}input{appearance:none;height:48px;margin:0;opacity:0;outline:none;position:absolute;width:48px;z-index:1;cursor:inherit}:host([touch-target=none]) input{height:100%;width:100%}.container{border-radius:inherit;display:flex;height:100%;place-content:center;place-items:center;position:relative;width:100%}.outline,.background,.icon{inset:0;position:absolute}.outline,.background{border-radius:inherit}.outline{border-color:var(--_outline-color);border-style:solid;border-width:var(--_outline-width);box-sizing:border-box}.background{background-color:var(--_selected-container-color)}.background,.icon{opacity:0;transition-duration:150ms,50ms;transition-property:transform,opacity;transition-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15),linear;transform:scale(0.6)}:where(.selected) :is(.background,.icon){opacity:1;transition-duration:350ms,50ms;transition-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1),linear;transform:scale(1)}md-ripple{border-radius:var(--_state-layer-shape);height:var(--_state-layer-size);inset:unset;width:var(--_state-layer-size);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.selected md-ripple{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}.icon{fill:var(--_selected-icon-color);height:var(--_icon-size);width:var(--_icon-size)}.mark.short{height:2px;transition-property:transform,height;width:2px}.mark.long{height:2px;transition-property:transform,width;width:10px}.mark{animation-duration:150ms;animation-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15);transition-duration:150ms;transition-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15)}.selected .mark{animation-duration:350ms;animation-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1);transition-duration:350ms;transition-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1)}.checked .mark,.prev-checked.unselected .mark{transform:scaleY(-1) translate(7px, -14px) rotate(45deg)}.checked .mark.short,.prev-checked.unselected .mark.short{height:5.6568542495px}.checked .mark.long,.prev-checked.unselected .mark.long{width:11.313708499px}.indeterminate .mark,.prev-indeterminate.unselected .mark{transform:scaleY(-1) translate(4px, -10px) rotate(0deg)}.prev-unselected .mark{transition-property:none}.prev-unselected.checked .mark.long{animation-name:prev-unselected-to-checked}@keyframes prev-unselected-to-checked{from{width:0}}:where(:hover) .outline{border-color:var(--_hover-outline-color);border-width:var(--_hover-outline-width)}:where(:hover) .background{background:var(--_selected-hover-container-color)}:where(:hover) .icon{fill:var(--_selected-hover-icon-color)}:where(:focus-within) .outline{border-color:var(--_focus-outline-color);border-width:var(--_focus-outline-width)}:where(:focus-within) .background{background:var(--_selected-focus-container-color)}:where(:focus-within) .icon{fill:var(--_selected-focus-icon-color)}:where(:active) .outline{border-color:var(--_pressed-outline-color);border-width:var(--_pressed-outline-width)}:where(:active) .background{background:var(--_selected-pressed-container-color)}:where(:active) .icon{fill:var(--_selected-pressed-icon-color)}:where(.disabled,.prev-disabled) :is(.background,.icon,.mark){animation-duration:0s;transition-duration:0s}:where(.disabled) .outline{border-color:var(--_disabled-outline-color);border-width:var(--_disabled-outline-width);opacity:var(--_disabled-container-opacity)}:where(.selected.disabled) .outline{visibility:hidden}:where(.selected.disabled) .background{background:var(--_selected-disabled-container-color);opacity:var(--_selected-disabled-container-opacity)}:where(.disabled) .icon{fill:var(--_selected-disabled-icon-color)}@media(forced-colors: active){.background{background-color:CanvasText}.selected.disabled .background{background-color:GrayText;opacity:1}.outline{border-color:CanvasText}.disabled .outline{border-color:GrayText;opacity:1}.icon{fill:Canvas}}/*# sourceMappingURL=checkbox-styles.css.map */ `;/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let w_=class extends On{};w_.styles=[Doe];w_=P([rt("md-checkbox")],w_);/** +*/let w_=class extends On{};w_.styles=[Moe];w_=P([rt("md-checkbox")],w_);/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 @@ -1725,7 +1725,7 @@ function print() { __p += __j.call(arguments, '') } * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const Foe=Ve`:host{--_container-height: var(--md-assist-chip-container-height, 32px);--_container-shape: var(--md-assist-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-assist-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-assist-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color: var(--md-assist-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation: var(--md-assist-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-assist-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color: var(--md-assist-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-assist-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-assist-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-assist-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-assist-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-assist-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color: var(--md-assist-chip-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-assist-chip-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-color: var(--md-assist-chip-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-assist-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-assist-chip-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-assist-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-assist-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-assist-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-assist-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-assist-chip-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--md-assist-chip-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity: var(--md-assist-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-assist-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-assist-chip-disabled-outline-opacity, 0.12);--_focus-outline-color: var(--md-assist-chip-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_outline-color: var(--md-assist-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-assist-chip-outline-width, 1px);--_disabled-leading-icon-color: var(--md-assist-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-assist-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color: var(--md-assist-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-assist-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-assist-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-assist-chip-icon-size, 18px);--_pressed-leading-icon-color: var(--md-assist-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var( --md-assist-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-assist-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-assist-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-assist-chip-container-shape-end-start, var(--_container-shape) )}@media(forced-colors: active){.link .outline{border-color:ActiveText}}/*# sourceMappingURL=assist-styles.css.map */ +*/const Doe=Ve`:host{--_container-height: var(--md-assist-chip-container-height, 32px);--_container-shape: var(--md-assist-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-assist-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-assist-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color: var(--md-assist-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation: var(--md-assist-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-assist-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color: var(--md-assist-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-assist-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-assist-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-assist-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-assist-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-assist-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color: var(--md-assist-chip-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-assist-chip-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-color: var(--md-assist-chip-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-assist-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-assist-chip-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-assist-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-assist-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-assist-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-assist-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-assist-chip-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--md-assist-chip-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity: var(--md-assist-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-assist-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-assist-chip-disabled-outline-opacity, 0.12);--_focus-outline-color: var(--md-assist-chip-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_outline-color: var(--md-assist-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-assist-chip-outline-width, 1px);--_disabled-leading-icon-color: var(--md-assist-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-assist-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color: var(--md-assist-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-assist-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-assist-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-assist-chip-icon-size, 18px);--_pressed-leading-icon-color: var(--md-assist-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var( --md-assist-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-assist-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-assist-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-assist-chip-container-shape-end-start, var(--_container-shape) )}@media(forced-colors: active){.link .outline{border-color:ActiveText}}/*# sourceMappingURL=assist-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC @@ -1740,22 +1740,22 @@ function print() { __p += __j.call(arguments, '') } * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let E_=class extends Jd{};E_.styles=[kh,y0,Foe];E_=P([rt("md-assist-chip")],E_);/** +*/let E_=class extends Jd{};E_.styles=[kh,y0,Doe];E_=P([rt("md-assist-chip")],E_);/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const Cf="aria-label-remove";class N3 extends Cs{get ariaLabelRemove(){if(this.hasAttribute(Cf))return this.getAttribute(Cf);const{ariaLabel:e}=this;return`Remove ${e||this.label}`}set ariaLabelRemove(e){const r=this.ariaLabelRemove;e!==r&&(e===null?this.removeAttribute(Cf):this.setAttribute(Cf,e),this.requestUpdate())}constructor(){super(),this.handleTrailingActionFocus=this.handleTrailingActionFocus.bind(this),this.addEventListener("keydown",this.handleKeyDown.bind(this))}focus(e){if((this.alwaysFocusable||!this.disabled)&&(e!=null&&e.trailing)&&this.trailingAction){this.trailingAction.focus(e);return}super.focus(e)}renderContainerContent(){return _e` +*/const Cf="aria-label-remove";class F3 extends Cs{get ariaLabelRemove(){if(this.hasAttribute(Cf))return this.getAttribute(Cf);const{ariaLabel:e}=this;return`Remove ${e||this.label}`}set ariaLabelRemove(e){const r=this.ariaLabelRemove;e!==r&&(e===null?this.removeAttribute(Cf):this.setAttribute(Cf,e),this.requestUpdate())}constructor(){super(),this.handleTrailingActionFocus=this.handleTrailingActionFocus.bind(this),this.addEventListener("keydown",this.handleKeyDown.bind(this))}focus(e){if((this.alwaysFocusable||!this.disabled)&&(e!=null&&e.trailing)&&this.trailingAction){this.trailingAction.focus(e);return}super.focus(e)}renderContainerContent(){return _e` ${super.renderContainerContent()} ${this.renderTrailingAction(this.handleTrailingActionFocus)} `}handleKeyDown(e){var u,f;const r=e.key==="ArrowLeft",n=e.key==="ArrowRight";if(!r&&!n||!this.primaryAction||!this.trailingAction)return;const i=getComputedStyle(this).direction==="rtl"?r:n,a=(u=this.primaryAction)==null?void 0:u.matches(":focus-within"),c=(f=this.trailingAction)==null?void 0:f.matches(":focus-within");if(i&&c||!i&&a)return;e.preventDefault(),e.stopPropagation(),(i?this.trailingAction:this.primaryAction).focus()}handleTrailingActionFocus(){const{primaryAction:e,trailingAction:r}=this;!e||!r||(e.tabIndex=-1,r.addEventListener("focusout",()=>{e.tabIndex=0},{once:!0}))}}/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/function z3({ariaLabel:t,disabled:e,focusListener:r,tabbable:n=!1}){return _e` +*/function N3({ariaLabel:t,disabled:e,focusListener:r,tabbable:n=!1}){return _e` - `}function Noe(t){this.disabled||(t.stopPropagation(),!this.dispatchEvent(new Event("remove",{cancelable:!0})))||this.remove()}/** + `}function Foe(t){this.disabled||(t.stopPropagation(),!this.dispatchEvent(new Event("remove",{cancelable:!0})))||this.remove()}/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class ec extends N3{constructor(){super(...arguments),this.elevated=!1,this.removable=!1,this.selected=!1}get primaryId(){return"button"}getContainerClasses(){return{...super.getContainerClasses(),elevated:this.elevated,selected:this.selected,"has-trailing":this.removable}}renderPrimaryAction(e){const{ariaLabel:r}=this;return _e` +*/class ec extends F3{constructor(){super(...arguments),this.elevated=!1,this.removable=!1,this.selected=!1}get primaryId(){return"button"}getContainerClasses(){return{...super.getContainerClasses(),elevated:this.elevated,selected:this.selected,"has-trailing":this.removable}}renderPrimaryAction(e){const{ariaLabel:r}=this;return _e` - `}renderTrailingAction(e){return z3({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:!this.href&&this.disabled,tabbable:this.removeOnly})}}P([Q({type:Boolean})],As.prototype,"avatar",void 0);P([Q()],As.prototype,"href",void 0);P([Q()],As.prototype,"target",void 0);P([Q({type:Boolean,attribute:"remove-only"})],As.prototype,"removeOnly",void 0);P([Q({type:Boolean,reflect:!0})],As.prototype,"selected",void 0);P([wt(".trailing.action")],As.prototype,"trailingAction",void 0);/** + `}renderTrailingAction(e){return N3({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:!this.href&&this.disabled,tabbable:this.removeOnly})}}P([Q({type:Boolean})],As.prototype,"avatar",void 0);P([Q()],As.prototype,"href",void 0);P([Q()],As.prototype,"target",void 0);P([Q({type:Boolean,attribute:"remove-only"})],As.prototype,"removeOnly",void 0);P([Q({type:Boolean,reflect:!0})],As.prototype,"selected",void 0);P([wt(".trailing.action")],As.prototype,"trailingAction",void 0);/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const qoe=Ve`:host{--_container-height: var(--md-input-chip-container-height, 32px);--_container-shape: var(--md-input-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-input-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-input-chip-disabled-label-text-opacity, 0.38);--_disabled-selected-container-color: var(--md-input-chip-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity: var(--md-input-chip-disabled-selected-container-opacity, 0.12);--_label-text-font: var(--md-input-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-input-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-input-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-input-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_selected-container-color: var(--md-input-chip-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-label-text-color: var(--md-input-chip-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-input-chip-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-input-chip-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-opacity: var(--md-input-chip-selected-hover-state-layer-opacity, 0.08);--_selected-label-text-color: var(--md-input-chip-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-outline-width: var(--md-input-chip-selected-outline-width, 0px);--_selected-pressed-label-text-color: var(--md-input-chip-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-input-chip-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-opacity: var(--md-input-chip-selected-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-input-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-input-chip-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-input-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-input-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color: var(--md-input-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-input-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-input-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-input-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-input-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-input-chip-outline-width, 1px);--_pressed-label-text-color: var(--md-input-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-input-chip-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-input-chip-pressed-state-layer-opacity, 0.12);--_avatar-shape: var(--md-input-chip-avatar-shape, 9999px);--_avatar-size: var(--md-input-chip-avatar-size, 24px);--_disabled-avatar-opacity: var(--md-input-chip-disabled-avatar-opacity, 0.38);--_disabled-leading-icon-color: var(--md-input-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-input-chip-disabled-leading-icon-opacity, 0.38);--_icon-size: var(--md-input-chip-icon-size, 18px);--_selected-focus-leading-icon-color: var(--md-input-chip-selected-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-leading-icon-color: var(--md-input-chip-selected-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-leading-icon-color: var(--md-input-chip-selected-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-leading-icon-color: var(--md-input-chip-selected-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-input-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-input-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-input-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color: var(--md-input-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_disabled-trailing-icon-color: var(--md-input-chip-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-input-chip-disabled-trailing-icon-opacity, 0.38);--_selected-focus-trailing-icon-color: var(--md-input-chip-selected-focus-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-trailing-icon-color: var(--md-input-chip-selected-hover-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-trailing-icon-color: var(--md-input-chip-selected-pressed-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-trailing-icon-color: var(--md-input-chip-selected-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_focus-trailing-icon-color: var(--md-input-chip-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-input-chip-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-trailing-icon-color: var(--md-input-chip-pressed-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-color: var(--md-input-chip-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_container-shape-start-start: var( --md-input-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-input-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-input-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-input-chip-container-shape-end-start, var(--_container-shape) )}:host([avatar]){--_container-shape-start-start: var( --md-input-chip-container-shape-start-start, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-start-end: var( --md-input-chip-container-shape-start-end, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-end-end: var( --md-input-chip-container-shape-end-end, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-end-start: var( --md-input-chip-container-shape-end-start, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) )}.avatar .primary.action{padding-inline-start:4px}.avatar .leading.icon ::slotted(:first-child){border-radius:var(--_avatar-shape);height:var(--_avatar-size);width:var(--_avatar-size)}.disabled.avatar .leading.icon{opacity:var(--_disabled-avatar-opacity)}@media(forced-colors: active){.link .outline{border-color:ActiveText}.disabled.avatar .leading.icon{opacity:1}}/*# sourceMappingURL=input-styles.css.map */ +*/const zoe=Ve`:host{--_container-height: var(--md-input-chip-container-height, 32px);--_container-shape: var(--md-input-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-input-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-input-chip-disabled-label-text-opacity, 0.38);--_disabled-selected-container-color: var(--md-input-chip-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity: var(--md-input-chip-disabled-selected-container-opacity, 0.12);--_label-text-font: var(--md-input-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-input-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-input-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-input-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_selected-container-color: var(--md-input-chip-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-label-text-color: var(--md-input-chip-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-input-chip-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-input-chip-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-opacity: var(--md-input-chip-selected-hover-state-layer-opacity, 0.08);--_selected-label-text-color: var(--md-input-chip-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-outline-width: var(--md-input-chip-selected-outline-width, 0px);--_selected-pressed-label-text-color: var(--md-input-chip-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-input-chip-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-opacity: var(--md-input-chip-selected-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-input-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-input-chip-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-input-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-input-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color: var(--md-input-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-input-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-input-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-input-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-input-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-input-chip-outline-width, 1px);--_pressed-label-text-color: var(--md-input-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-input-chip-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-input-chip-pressed-state-layer-opacity, 0.12);--_avatar-shape: var(--md-input-chip-avatar-shape, 9999px);--_avatar-size: var(--md-input-chip-avatar-size, 24px);--_disabled-avatar-opacity: var(--md-input-chip-disabled-avatar-opacity, 0.38);--_disabled-leading-icon-color: var(--md-input-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-input-chip-disabled-leading-icon-opacity, 0.38);--_icon-size: var(--md-input-chip-icon-size, 18px);--_selected-focus-leading-icon-color: var(--md-input-chip-selected-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-leading-icon-color: var(--md-input-chip-selected-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-leading-icon-color: var(--md-input-chip-selected-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-leading-icon-color: var(--md-input-chip-selected-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-input-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-input-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-input-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color: var(--md-input-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_disabled-trailing-icon-color: var(--md-input-chip-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-input-chip-disabled-trailing-icon-opacity, 0.38);--_selected-focus-trailing-icon-color: var(--md-input-chip-selected-focus-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-trailing-icon-color: var(--md-input-chip-selected-hover-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-trailing-icon-color: var(--md-input-chip-selected-pressed-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-trailing-icon-color: var(--md-input-chip-selected-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_focus-trailing-icon-color: var(--md-input-chip-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-input-chip-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-trailing-icon-color: var(--md-input-chip-pressed-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-color: var(--md-input-chip-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_container-shape-start-start: var( --md-input-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-input-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-input-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-input-chip-container-shape-end-start, var(--_container-shape) )}:host([avatar]){--_container-shape-start-start: var( --md-input-chip-container-shape-start-start, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-start-end: var( --md-input-chip-container-shape-start-end, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-end-end: var( --md-input-chip-container-shape-end-end, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-end-start: var( --md-input-chip-container-shape-end-start, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) )}.avatar .primary.action{padding-inline-start:4px}.avatar .leading.icon ::slotted(:first-child){border-radius:var(--_avatar-shape);height:var(--_avatar-size);width:var(--_avatar-size)}.disabled.avatar .leading.icon{opacity:var(--_disabled-avatar-opacity)}@media(forced-colors: active){.link .outline{border-color:ActiveText}.disabled.avatar .leading.icon{opacity:1}}/*# sourceMappingURL=input-styles.css.map */ `;/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let k_=class extends As{};k_.styles=[kh,B3,q3,qoe];k_=P([rt("md-input-chip")],k_);/** +*/let k_=class extends As{};k_.styles=[kh,q3,z3,zoe];k_=P([rt("md-input-chip")],k_);/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class Boe extends Jd{}/** +*/class qoe extends Jd{}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const Uoe=Ve`:host{--_container-height: var(--md-suggestion-chip-container-height, 32px);--_container-shape: var(--md-suggestion-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-suggestion-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-suggestion-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color: var(--md-suggestion-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation: var(--md-suggestion-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-suggestion-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color: var(--md-suggestion-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-suggestion-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-suggestion-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-suggestion-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-suggestion-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-suggestion-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color: var(--md-suggestion-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color: var(--md-suggestion-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-suggestion-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-suggestion-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-suggestion-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-suggestion-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-suggestion-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-suggestion-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-suggestion-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-suggestion-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-suggestion-chip-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-suggestion-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-suggestion-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-suggestion-chip-disabled-outline-opacity, 0.12);--_focus-outline-color: var(--md-suggestion-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-suggestion-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-suggestion-chip-outline-width, 1px);--_disabled-leading-icon-color: var(--md-suggestion-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-suggestion-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color: var(--md-suggestion-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-suggestion-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-suggestion-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color: var(--md-suggestion-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-suggestion-chip-icon-size, 18px);--_container-shape-start-start: var( --md-suggestion-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-suggestion-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-suggestion-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-suggestion-chip-container-shape-end-start, var(--_container-shape) )}@media(forced-colors: active){.link .outline{border-color:ActiveText}}/*# sourceMappingURL=suggestion-styles.css.map */ + */const Boe=Ve`:host{--_container-height: var(--md-suggestion-chip-container-height, 32px);--_container-shape: var(--md-suggestion-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-suggestion-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-suggestion-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color: var(--md-suggestion-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation: var(--md-suggestion-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-suggestion-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color: var(--md-suggestion-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-suggestion-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-suggestion-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-suggestion-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-suggestion-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-suggestion-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color: var(--md-suggestion-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color: var(--md-suggestion-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-suggestion-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-suggestion-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-suggestion-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-suggestion-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-suggestion-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-suggestion-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-suggestion-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-suggestion-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-suggestion-chip-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-suggestion-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-suggestion-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-suggestion-chip-disabled-outline-opacity, 0.12);--_focus-outline-color: var(--md-suggestion-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-suggestion-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-suggestion-chip-outline-width, 1px);--_disabled-leading-icon-color: var(--md-suggestion-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-suggestion-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color: var(--md-suggestion-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-suggestion-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-suggestion-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color: var(--md-suggestion-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-suggestion-chip-icon-size, 18px);--_container-shape-start-start: var( --md-suggestion-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-suggestion-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-suggestion-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-suggestion-chip-container-shape-end-start, var(--_container-shape) )}@media(forced-colors: active){.link .outline{border-color:ActiveText}}/*# sourceMappingURL=suggestion-styles.css.map */ `;/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let C_=class extends Boe{};C_.styles=[kh,y0,Uoe];C_=P([rt("md-suggestion-chip")],C_);/** +*/let C_=class extends qoe{};C_.styles=[kh,y0,Boe];C_=P([rt("md-suggestion-chip")],C_);/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 @@ -1852,20 +1852,20 @@ function print() { __p += __j.call(arguments, '') } * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const Voe=Ve`:host{--_color: var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));--_thickness: var(--md-divider-thickness, 1px);box-sizing:border-box;color:var(--_color);display:flex;height:var(--_thickness);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}/*# sourceMappingURL=divider-styles.css.map */ +*/const Uoe=Ve`:host{--_color: var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));--_thickness: var(--md-divider-thickness, 1px);box-sizing:border-box;color:var(--_color);display:flex;height:var(--_thickness);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}/*# sourceMappingURL=divider-styles.css.map */ `;/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let A_=class extends Ch{};A_.styles=[Voe];A_=P([rt("md-divider")],A_);/** +*/let A_=class extends Ch{};A_.styles=[Uoe];A_=P([rt("md-divider")],A_);/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const joe={dialog:[[[{transform:"translateY(-50px)"},{transform:"translateY(0)"}],{duration:500,easing:po.EMPHASIZED}]],scrim:[[[{opacity:0},{opacity:.32}],{duration:500,easing:"linear"}]],container:[[[{opacity:0},{opacity:1}],{duration:50,easing:"linear",pseudoElement:"::before"}],[[{height:"35%"},{height:"100%"}],{duration:500,easing:po.EMPHASIZED,pseudoElement:"::before"}]],headline:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],content:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:0},{opacity:0,offset:.5},{opacity:1}],{duration:300,easing:"linear",fill:"forwards"}]]},Hoe={dialog:[[[{transform:"translateY(0)"},{transform:"translateY(-50px)"}],{duration:150,easing:po.EMPHASIZED_ACCELERATE}]],scrim:[[[{opacity:.32},{opacity:0}],{duration:150,easing:"linear"}]],container:[[[{height:"100%"},{height:"35%"}],{duration:150,easing:po.EMPHASIZED_ACCELERATE,pseudoElement:"::before"}],[[{opacity:"1"},{opacity:"0"}],{delay:100,duration:50,easing:"linear",pseudoElement:"::before"}]],headline:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],content:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]]};/** +*/const Voe={dialog:[[[{transform:"translateY(-50px)"},{transform:"translateY(0)"}],{duration:500,easing:po.EMPHASIZED}]],scrim:[[[{opacity:0},{opacity:.32}],{duration:500,easing:"linear"}]],container:[[[{opacity:0},{opacity:1}],{duration:50,easing:"linear",pseudoElement:"::before"}],[[{height:"35%"},{height:"100%"}],{duration:500,easing:po.EMPHASIZED,pseudoElement:"::before"}]],headline:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],content:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:0},{opacity:0,offset:.5},{opacity:1}],{duration:300,easing:"linear",fill:"forwards"}]]},joe={dialog:[[[{transform:"translateY(0)"},{transform:"translateY(-50px)"}],{duration:150,easing:po.EMPHASIZED_ACCELERATE}]],scrim:[[[{opacity:.32},{opacity:0}],{duration:150,easing:"linear"}]],container:[[[{height:"100%"},{height:"35%"}],{duration:150,easing:po.EMPHASIZED_ACCELERATE,pseudoElement:"::before"}],[[{opacity:"1"},{opacity:"0"}],{delay:100,duration:50,easing:"linear",pseudoElement:"::before"}]],headline:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],content:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]]};/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class mr extends lt{get open(){return this.isOpen}set open(e){e!==this.isOpen&&(this.isOpen=e,e?(this.setAttribute("open",""),this.show()):(this.removeAttribute("open"),this.close()))}constructor(){super(),this.returnValue="",this.getOpenAnimation=()=>joe,this.getCloseAnimation=()=>Hoe,this.isOpen=!1,this.isOpening=!1,this.isConnectedPromise=this.getIsConnectedPromise(),this.isAtScrollTop=!1,this.isAtScrollBottom=!1,this.nextClickIsFromContent=!1,this.hasHeadline=!1,this.hasActions=!1,this.hasIcon=!1,this.addEventListener("submit",this.handleSubmit)}async show(){var n;this.isOpening=!0,await this.isConnectedPromise,await this.updateComplete;const e=this.dialog;if(e.open||!this.isOpening){this.isOpening=!1;return}if(!this.dispatchEvent(new Event("open",{cancelable:!0}))){this.open=!1;return}e.showModal(),this.open=!0,this.scroller&&(this.scroller.scrollTop=0),(n=this.querySelector("[autofocus]"))==null||n.focus(),await this.animateDialog(this.getOpenAnimation()),this.dispatchEvent(new Event("opened")),this.isOpening=!1}async close(e=this.returnValue){if(this.isOpening=!1,!this.isConnected){this.open=!1;return}await this.updateComplete;const r=this.dialog;if(!r.open||this.isOpening){this.open=!1;return}const n=this.returnValue;if(this.returnValue=e,!this.dispatchEvent(new Event("close",{cancelable:!0}))){this.returnValue=n;return}await this.animateDialog(this.getCloseAnimation()),r.close(e),this.open=!1,this.dispatchEvent(new Event("closed"))}connectedCallback(){super.connectedCallback(),this.isConnectedPromiseResolve()}disconnectedCallback(){super.disconnectedCallback(),this.isConnectedPromise=this.getIsConnectedPromise()}render(){const e=this.open&&!(this.isAtScrollTop&&this.isAtScrollBottom),r={"has-headline":this.hasHeadline,"has-actions":this.hasActions,"has-icon":this.hasIcon,scrollable:e,"show-top-divider":e&&!this.isAtScrollTop,"show-bottom-divider":e&&!this.isAtScrollBottom},{ariaLabel:n}=this;return _e` +*/class mr extends lt{get open(){return this.isOpen}set open(e){e!==this.isOpen&&(this.isOpen=e,e?(this.setAttribute("open",""),this.show()):(this.removeAttribute("open"),this.close()))}constructor(){super(),this.returnValue="",this.getOpenAnimation=()=>Voe,this.getCloseAnimation=()=>joe,this.isOpen=!1,this.isOpening=!1,this.isConnectedPromise=this.getIsConnectedPromise(),this.isAtScrollTop=!1,this.isAtScrollBottom=!1,this.nextClickIsFromContent=!1,this.hasHeadline=!1,this.hasActions=!1,this.hasIcon=!1,this.addEventListener("submit",this.handleSubmit)}async show(){var n;this.isOpening=!0,await this.isConnectedPromise,await this.updateComplete;const e=this.dialog;if(e.open||!this.isOpening){this.isOpening=!1;return}if(!this.dispatchEvent(new Event("open",{cancelable:!0}))){this.open=!1;return}e.showModal(),this.open=!0,this.scroller&&(this.scroller.scrollTop=0),(n=this.querySelector("[autofocus]"))==null||n.focus(),await this.animateDialog(this.getOpenAnimation()),this.dispatchEvent(new Event("opened")),this.isOpening=!1}async close(e=this.returnValue){if(this.isOpening=!1,!this.isConnected){this.open=!1;return}await this.updateComplete;const r=this.dialog;if(!r.open||this.isOpening){this.open=!1;return}const n=this.returnValue;if(this.returnValue=e,!this.dispatchEvent(new Event("close",{cancelable:!0}))){this.returnValue=n;return}await this.animateDialog(this.getCloseAnimation()),r.close(e),this.open=!1,this.dispatchEvent(new Event("closed"))}connectedCallback(){super.connectedCallback(),this.isConnectedPromiseResolve()}disconnectedCallback(){super.disconnectedCallback(),this.isConnectedPromise=this.getIsConnectedPromise()}render(){const e=this.open&&!(this.isAtScrollTop&&this.isAtScrollBottom),r={"has-headline":this.hasHeadline,"has-actions":this.hasActions,"has-icon":this.hasIcon,scrollable:e,"show-top-divider":e&&!this.isAtScrollTop,"show-bottom-divider":e&&!this.isAtScrollBottom},{ariaLabel:n}=this;return _e`
{this.refreshErrorAlert=!1}),this.disableTransitions&&requestAnimationFrame(()=>{this.disableTransitions=!1})}renderSupportingText(){const{supportingOrErrorText:e,counterText:r}=this;if(!e&&!r)return ge;const n=_e`${e}`,o=r?_e`${r}`:ge,a=this.error&&this.errorText&&!this.refreshErrorAlert?"alert":ge;return _e`
${n}${o}
- `}updateSlottedAriaDescribedBy(){for(const e of this.slottedAriaDescribedBy)I3(_e`${this.supportingOrErrorText} ${this.counterText}`,e),e.setAttribute("hidden","")}renderLabel(e){if(!this.label)return ge;let r;e?r=this.focused||this.populated||this.isAnimating:r=!this.focused&&!this.populated&&!this.isAnimating;const n={hidden:!r,floating:e,resting:!e},o=`${this.label}${this.required?"*":""}`;return _e` + `}updateSlottedAriaDescribedBy(){for(const e of this.slottedAriaDescribedBy)S3(_e`${this.supportingOrErrorText} ${this.counterText}`,e),e.setAttribute("hidden","")}renderLabel(e){if(!this.label)return ge;let r;e?r=this.focused||this.populated||this.isAnimating:r=!this.focused&&!this.populated&&!this.isAnimating;const n={hidden:!r,floating:e,resting:!e},o=`${this.label}${this.required?"*":""}`;return _e` ${o} @@ -2007,28 +2007,28 @@ function print() { __p += __j.call(arguments, '') } * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class Koe extends sr{renderBackground(){return _e` +*/class Qoe extends sr{renderBackground(){return _e`
`}renderIndicator(){return _e`
`}}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const Yoe=Ve`:host{--_active-indicator-color: var(--md-filled-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_active-indicator-height: var(--md-filled-field-active-indicator-height, 1px);--_bottom-space: var(--md-filled-field-bottom-space, 16px);--_container-color: var(--md-filled-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_container-shape-start-start: var( --md-filled-field-container-shape-start-start, var(--md-filled-field-container-shape, 4px) );--_container-shape-start-end: var( --md-filled-field-container-shape-start-end, var(--md-filled-field-container-shape, 4px) );--_container-shape-end-end: var( --md-filled-field-container-shape-end-end, var(--md-filled-field-container-shape, 0px) );--_container-shape-end-start: var( --md-filled-field-container-shape-end-start, var(--md-filled-field-container-shape, 0px) );--_content-color: var(--md-filled-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-filled-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-filled-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-filled-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-weight: var(--md-filled-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-active-indicator-color: var(--md-filled-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-indicator-height: var(--md-filled-field-disabled-active-indicator-height, 1px);--_disabled-active-indicator-opacity: var(--md-filled-field-disabled-active-indicator-opacity, 0.38);--_disabled-container-color: var(--md-filled-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-field-disabled-container-opacity, 0.04);--_disabled-content-color: var(--md-filled-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-filled-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-filled-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-filled-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-filled-field-disabled-leading-content-opacity, 0.38);--_disabled-supporting-text-color: var(--md-filled-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-filled-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-filled-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-filled-field-disabled-trailing-content-opacity, 0.38);--_error-active-indicator-color: var(--md-filled-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-content-color: var(--md-filled-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-active-indicator-color: var(--md-filled-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-content-color: var(--md-filled-field-error-focus-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-label-text-color: var(--md-filled-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-filled-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-supporting-text-color: var(--md-filled-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-filled-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-active-indicator-color: var(--md-filled-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-content-color: var(--md-filled-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-filled-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-filled-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-state-layer-color: var(--md-filled-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-state-layer-opacity: var(--md-filled-field-error-hover-state-layer-opacity, 0.08);--_error-hover-supporting-text-color: var(--md-filled-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-filled-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-filled-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-filled-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-supporting-text-color: var(--md-filled-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-filled-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-active-indicator-color: var(--md-filled-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_focus-active-indicator-height: var(--md-filled-field-focus-active-indicator-height, 3px);--_focus-content-color: var(--md-filled-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-filled-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-filled-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-supporting-text-color: var(--md-filled-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-filled-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-active-indicator-color: var(--md-filled-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-active-indicator-height: var(--md-filled-field-hover-active-indicator-height, 1px);--_hover-content-color: var(--md-filled-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-filled-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-leading-content-color: var(--md-filled-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filled-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-filled-field-hover-state-layer-opacity, 0.08);--_hover-supporting-text-color: var(--md-filled-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-filled-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-filled-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-filled-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-filled-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-filled-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-filled-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-filled-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-filled-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-filled-field-leading-space, 16px);--_supporting-text-color: var(--md-filled-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-filled-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-filled-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-filled-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-filled-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-filled-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-filled-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-filled-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-filled-field-top-space, 16px);--_trailing-content-color: var(--md-filled-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-filled-field-trailing-space, 16px);--_with-label-bottom-space: var(--md-filled-field-with-label-bottom-space, 8px);--_with-label-top-space: var(--md-filled-field-with-label-top-space, 8px)}.background,.state-layer{border-radius:inherit;inset:0;pointer-events:none;position:absolute}.background{background:var(--_container-color)}.state-layer{visibility:hidden}.field:not(.disabled):hover .state-layer{visibility:visible}.label.floating{position:absolute;top:var(--_with-label-top-space)}.field:not(.with-start) .label-wrapper{margin-inline-start:var(--_leading-space)}.field:not(.with-end) .label-wrapper{margin-inline-end:var(--_trailing-space)}.active-indicator{inset:auto 0 0 0;pointer-events:none;position:absolute;width:100%;z-index:1}.active-indicator::before,.active-indicator::after{border-bottom:var(--_active-indicator-height) solid var(--_active-indicator-color);inset:auto 0 0 0;content:"";position:absolute;width:100%}.active-indicator::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .active-indicator::after{opacity:1}.field:not(.with-start) .content ::slotted(*){padding-inline-start:var(--_leading-space)}.field:not(.with-end) .content ::slotted(*){padding-inline-end:var(--_trailing-space)}.field:not(.no-label) .content ::slotted(:not(textarea)){padding-bottom:var(--_with-label-bottom-space);padding-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}.field:not(.no-label) .content ::slotted(textarea){margin-bottom:var(--_with-label-bottom-space);margin-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}:hover .active-indicator::before{border-bottom-color:var(--_hover-active-indicator-color);border-bottom-width:var(--_hover-active-indicator-height)}.active-indicator::after{border-bottom-color:var(--_focus-active-indicator-color);border-bottom-width:var(--_focus-active-indicator-height)}:hover .state-layer{background:var(--_hover-state-layer-color);opacity:var(--_hover-state-layer-opacity)}.disabled .active-indicator::before{border-bottom-color:var(--_disabled-active-indicator-color);border-bottom-width:var(--_disabled-active-indicator-height);opacity:var(--_disabled-active-indicator-opacity)}.disabled .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.error .active-indicator::before{border-bottom-color:var(--_error-active-indicator-color)}.error:hover .active-indicator::before{border-bottom-color:var(--_error-hover-active-indicator-color)}.error:hover .state-layer{background:var(--_error-hover-state-layer-color);opacity:var(--_error-hover-state-layer-opacity)}.error .active-indicator::after{border-bottom-color:var(--_error-focus-active-indicator-color)}.resizable .container{bottom:var(--_focus-active-indicator-height);clip-path:inset(var(--_focus-active-indicator-height) 0 0 0)}.resizable .container>*{top:var(--_focus-active-indicator-height)}/*# sourceMappingURL=filled-styles.css.map */ + */const Koe=Ve`:host{--_active-indicator-color: var(--md-filled-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_active-indicator-height: var(--md-filled-field-active-indicator-height, 1px);--_bottom-space: var(--md-filled-field-bottom-space, 16px);--_container-color: var(--md-filled-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_container-shape-start-start: var( --md-filled-field-container-shape-start-start, var(--md-filled-field-container-shape, 4px) );--_container-shape-start-end: var( --md-filled-field-container-shape-start-end, var(--md-filled-field-container-shape, 4px) );--_container-shape-end-end: var( --md-filled-field-container-shape-end-end, var(--md-filled-field-container-shape, 0px) );--_container-shape-end-start: var( --md-filled-field-container-shape-end-start, var(--md-filled-field-container-shape, 0px) );--_content-color: var(--md-filled-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-filled-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-filled-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-filled-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-weight: var(--md-filled-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-active-indicator-color: var(--md-filled-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-indicator-height: var(--md-filled-field-disabled-active-indicator-height, 1px);--_disabled-active-indicator-opacity: var(--md-filled-field-disabled-active-indicator-opacity, 0.38);--_disabled-container-color: var(--md-filled-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-field-disabled-container-opacity, 0.04);--_disabled-content-color: var(--md-filled-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-filled-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-filled-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-filled-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-filled-field-disabled-leading-content-opacity, 0.38);--_disabled-supporting-text-color: var(--md-filled-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-filled-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-filled-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-filled-field-disabled-trailing-content-opacity, 0.38);--_error-active-indicator-color: var(--md-filled-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-content-color: var(--md-filled-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-active-indicator-color: var(--md-filled-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-content-color: var(--md-filled-field-error-focus-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-label-text-color: var(--md-filled-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-filled-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-supporting-text-color: var(--md-filled-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-filled-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-active-indicator-color: var(--md-filled-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-content-color: var(--md-filled-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-filled-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-filled-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-state-layer-color: var(--md-filled-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-state-layer-opacity: var(--md-filled-field-error-hover-state-layer-opacity, 0.08);--_error-hover-supporting-text-color: var(--md-filled-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-filled-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-filled-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-filled-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-supporting-text-color: var(--md-filled-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-filled-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-active-indicator-color: var(--md-filled-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_focus-active-indicator-height: var(--md-filled-field-focus-active-indicator-height, 3px);--_focus-content-color: var(--md-filled-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-filled-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-filled-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-supporting-text-color: var(--md-filled-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-filled-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-active-indicator-color: var(--md-filled-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-active-indicator-height: var(--md-filled-field-hover-active-indicator-height, 1px);--_hover-content-color: var(--md-filled-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-filled-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-leading-content-color: var(--md-filled-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filled-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-filled-field-hover-state-layer-opacity, 0.08);--_hover-supporting-text-color: var(--md-filled-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-filled-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-filled-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-filled-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-filled-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-filled-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-filled-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-filled-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-filled-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-filled-field-leading-space, 16px);--_supporting-text-color: var(--md-filled-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-filled-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-filled-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-filled-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-filled-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-filled-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-filled-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-filled-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-filled-field-top-space, 16px);--_trailing-content-color: var(--md-filled-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-filled-field-trailing-space, 16px);--_with-label-bottom-space: var(--md-filled-field-with-label-bottom-space, 8px);--_with-label-top-space: var(--md-filled-field-with-label-top-space, 8px)}.background,.state-layer{border-radius:inherit;inset:0;pointer-events:none;position:absolute}.background{background:var(--_container-color)}.state-layer{visibility:hidden}.field:not(.disabled):hover .state-layer{visibility:visible}.label.floating{position:absolute;top:var(--_with-label-top-space)}.field:not(.with-start) .label-wrapper{margin-inline-start:var(--_leading-space)}.field:not(.with-end) .label-wrapper{margin-inline-end:var(--_trailing-space)}.active-indicator{inset:auto 0 0 0;pointer-events:none;position:absolute;width:100%;z-index:1}.active-indicator::before,.active-indicator::after{border-bottom:var(--_active-indicator-height) solid var(--_active-indicator-color);inset:auto 0 0 0;content:"";position:absolute;width:100%}.active-indicator::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .active-indicator::after{opacity:1}.field:not(.with-start) .content ::slotted(*){padding-inline-start:var(--_leading-space)}.field:not(.with-end) .content ::slotted(*){padding-inline-end:var(--_trailing-space)}.field:not(.no-label) .content ::slotted(:not(textarea)){padding-bottom:var(--_with-label-bottom-space);padding-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}.field:not(.no-label) .content ::slotted(textarea){margin-bottom:var(--_with-label-bottom-space);margin-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}:hover .active-indicator::before{border-bottom-color:var(--_hover-active-indicator-color);border-bottom-width:var(--_hover-active-indicator-height)}.active-indicator::after{border-bottom-color:var(--_focus-active-indicator-color);border-bottom-width:var(--_focus-active-indicator-height)}:hover .state-layer{background:var(--_hover-state-layer-color);opacity:var(--_hover-state-layer-opacity)}.disabled .active-indicator::before{border-bottom-color:var(--_disabled-active-indicator-color);border-bottom-width:var(--_disabled-active-indicator-height);opacity:var(--_disabled-active-indicator-opacity)}.disabled .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.error .active-indicator::before{border-bottom-color:var(--_error-active-indicator-color)}.error:hover .active-indicator::before{border-bottom-color:var(--_error-hover-active-indicator-color)}.error:hover .state-layer{background:var(--_error-hover-state-layer-color);opacity:var(--_error-hover-state-layer-opacity)}.error .active-indicator::after{border-bottom-color:var(--_error-focus-active-indicator-color)}.resizable .container{bottom:var(--_focus-active-indicator-height);clip-path:inset(var(--_focus-active-indicator-height) 0 0 0)}.resizable .container>*{top:var(--_focus-active-indicator-height)}/*# sourceMappingURL=filled-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const j3=Ve`:host{display:inline-flex;resize:both}.field{display:flex;flex:1;flex-direction:column;writing-mode:horizontal-tb;max-width:100%}.container-overflow{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:flex;height:100%;position:relative}.container{align-items:center;border-radius:inherit;display:flex;flex:1;max-height:100%;min-height:100%;min-width:min-content;position:relative}.field,.container-overflow{resize:inherit}.resizable:not(.disabled) .container{resize:inherit;overflow:hidden}.disabled{pointer-events:none}.start,.middle,.end{display:flex;box-sizing:border-box;height:100%;position:relative}.start{color:var(--_leading-content-color)}.end{color:var(--_trailing-content-color)}.start,.end{align-items:center;justify-content:center}.with-start .start,.with-end .end{min-width:48px}.with-start .start{margin-inline-end:4px}.with-end .end{margin-inline-start:4px}.middle{align-items:stretch;align-self:baseline;flex:1}.content{color:var(--_content-color);display:flex;flex:1;opacity:0;transition:opacity 83ms cubic-bezier(0.2, 0, 0, 1)}.no-label .content,.focused .content,.populated .content{opacity:1;transition-delay:67ms}:is(.disabled,.disable-transitions) .content{transition:none}.content ::slotted(*){all:unset;color:currentColor;font-family:var(--_content-font);font-size:var(--_content-size);line-height:var(--_content-line-height);font-weight:var(--_content-weight);width:100%;white-space:pre-wrap}.content ::slotted(:not(textarea)){padding-top:var(--_top-space);padding-bottom:var(--_bottom-space)}.content ::slotted(textarea){margin-top:var(--_top-space);margin-bottom:var(--_bottom-space)}:hover .content{color:var(--_hover-content-color)}:hover .start{color:var(--_hover-leading-content-color)}:hover .end{color:var(--_hover-trailing-content-color)}.focused .content{color:var(--_focus-content-color)}.focused .start{color:var(--_focus-leading-content-color)}.focused .end{color:var(--_focus-trailing-content-color)}.disabled .content{color:var(--_disabled-content-color)}.disabled.no-label .content,.disabled.focused .content,.disabled.populated .content{opacity:var(--_disabled-content-opacity)}.disabled .start{color:var(--_disabled-leading-content-color);opacity:var(--_disabled-leading-content-opacity)}.disabled .end{color:var(--_disabled-trailing-content-color);opacity:var(--_disabled-trailing-content-opacity)}.error .content{color:var(--_error-content-color)}.error .start{color:var(--_error-leading-content-color)}.error .end{color:var(--_error-trailing-content-color)}.error:hover .content{color:var(--_error-hover-content-color)}.error:hover .start{color:var(--_error-hover-leading-content-color)}.error:hover .end{color:var(--_error-hover-trailing-content-color)}.error.focused .content{color:var(--_error-focus-content-color)}.error.focused .start{color:var(--_error-focus-leading-content-color)}.error.focused .end{color:var(--_error-focus-trailing-content-color)}.label{box-sizing:border-box;color:var(--_label-text-color);overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;z-index:1;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);width:min-content}.label-wrapper{inset:0;pointer-events:none;position:absolute}.label.resting{position:absolute;top:var(--_top-space)}.label.floating{font-size:var(--_label-text-populated-size);line-height:var(--_label-text-populated-line-height);transform-origin:top left}.label.hidden{opacity:0}.no-label .label{display:none}.label-wrapper{inset:0;position:absolute;text-align:initial}:hover .label{color:var(--_hover-label-text-color)}.focused .label{color:var(--_focus-label-text-color)}.disabled .label{color:var(--_disabled-label-text-color)}.disabled .label:not(.hidden){opacity:var(--_disabled-label-text-opacity)}.error .label{color:var(--_error-label-text-color)}.error:hover .label{color:var(--_error-hover-label-text-color)}.error.focused .label{color:var(--_error-focus-label-text-color)}.supporting-text{color:var(--_supporting-text-color);display:flex;font-family:var(--_supporting-text-font);font-size:var(--_supporting-text-size);line-height:var(--_supporting-text-line-height);font-weight:var(--_supporting-text-weight);gap:16px;justify-content:space-between;padding-inline-start:var(--_supporting-text-leading-space);padding-inline-end:var(--_supporting-text-trailing-space);padding-top:var(--_supporting-text-top-space)}.supporting-text :nth-child(2){flex-shrink:0}:hover .supporting-text{color:var(--_hover-supporting-text-color)}.focus .supporting-text{color:var(--_focus-supporting-text-color)}.disabled .supporting-text{color:var(--_disabled-supporting-text-color);opacity:var(--_disabled-supporting-text-opacity)}.error .supporting-text{color:var(--_error-supporting-text-color)}.error:hover .supporting-text{color:var(--_error-hover-supporting-text-color)}.error.focus .supporting-text{color:var(--_error-focus-supporting-text-color)}/*# sourceMappingURL=shared-styles.css.map */ +*/const V3=Ve`:host{display:inline-flex;resize:both}.field{display:flex;flex:1;flex-direction:column;writing-mode:horizontal-tb;max-width:100%}.container-overflow{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:flex;height:100%;position:relative}.container{align-items:center;border-radius:inherit;display:flex;flex:1;max-height:100%;min-height:100%;min-width:min-content;position:relative}.field,.container-overflow{resize:inherit}.resizable:not(.disabled) .container{resize:inherit;overflow:hidden}.disabled{pointer-events:none}.start,.middle,.end{display:flex;box-sizing:border-box;height:100%;position:relative}.start{color:var(--_leading-content-color)}.end{color:var(--_trailing-content-color)}.start,.end{align-items:center;justify-content:center}.with-start .start,.with-end .end{min-width:48px}.with-start .start{margin-inline-end:4px}.with-end .end{margin-inline-start:4px}.middle{align-items:stretch;align-self:baseline;flex:1}.content{color:var(--_content-color);display:flex;flex:1;opacity:0;transition:opacity 83ms cubic-bezier(0.2, 0, 0, 1)}.no-label .content,.focused .content,.populated .content{opacity:1;transition-delay:67ms}:is(.disabled,.disable-transitions) .content{transition:none}.content ::slotted(*){all:unset;color:currentColor;font-family:var(--_content-font);font-size:var(--_content-size);line-height:var(--_content-line-height);font-weight:var(--_content-weight);width:100%;white-space:pre-wrap}.content ::slotted(:not(textarea)){padding-top:var(--_top-space);padding-bottom:var(--_bottom-space)}.content ::slotted(textarea){margin-top:var(--_top-space);margin-bottom:var(--_bottom-space)}:hover .content{color:var(--_hover-content-color)}:hover .start{color:var(--_hover-leading-content-color)}:hover .end{color:var(--_hover-trailing-content-color)}.focused .content{color:var(--_focus-content-color)}.focused .start{color:var(--_focus-leading-content-color)}.focused .end{color:var(--_focus-trailing-content-color)}.disabled .content{color:var(--_disabled-content-color)}.disabled.no-label .content,.disabled.focused .content,.disabled.populated .content{opacity:var(--_disabled-content-opacity)}.disabled .start{color:var(--_disabled-leading-content-color);opacity:var(--_disabled-leading-content-opacity)}.disabled .end{color:var(--_disabled-trailing-content-color);opacity:var(--_disabled-trailing-content-opacity)}.error .content{color:var(--_error-content-color)}.error .start{color:var(--_error-leading-content-color)}.error .end{color:var(--_error-trailing-content-color)}.error:hover .content{color:var(--_error-hover-content-color)}.error:hover .start{color:var(--_error-hover-leading-content-color)}.error:hover .end{color:var(--_error-hover-trailing-content-color)}.error.focused .content{color:var(--_error-focus-content-color)}.error.focused .start{color:var(--_error-focus-leading-content-color)}.error.focused .end{color:var(--_error-focus-trailing-content-color)}.label{box-sizing:border-box;color:var(--_label-text-color);overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;z-index:1;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);width:min-content}.label-wrapper{inset:0;pointer-events:none;position:absolute}.label.resting{position:absolute;top:var(--_top-space)}.label.floating{font-size:var(--_label-text-populated-size);line-height:var(--_label-text-populated-line-height);transform-origin:top left}.label.hidden{opacity:0}.no-label .label{display:none}.label-wrapper{inset:0;position:absolute;text-align:initial}:hover .label{color:var(--_hover-label-text-color)}.focused .label{color:var(--_focus-label-text-color)}.disabled .label{color:var(--_disabled-label-text-color)}.disabled .label:not(.hidden){opacity:var(--_disabled-label-text-opacity)}.error .label{color:var(--_error-label-text-color)}.error:hover .label{color:var(--_error-hover-label-text-color)}.error.focused .label{color:var(--_error-focus-label-text-color)}.supporting-text{color:var(--_supporting-text-color);display:flex;font-family:var(--_supporting-text-font);font-size:var(--_supporting-text-size);line-height:var(--_supporting-text-line-height);font-weight:var(--_supporting-text-weight);gap:16px;justify-content:space-between;padding-inline-start:var(--_supporting-text-leading-space);padding-inline-end:var(--_supporting-text-trailing-space);padding-top:var(--_supporting-text-top-space)}.supporting-text :nth-child(2){flex-shrink:0}:hover .supporting-text{color:var(--_hover-supporting-text-color)}.focus .supporting-text{color:var(--_focus-supporting-text-color)}.disabled .supporting-text{color:var(--_disabled-supporting-text-color);opacity:var(--_disabled-supporting-text-opacity)}.error .supporting-text{color:var(--_error-supporting-text-color)}.error:hover .supporting-text{color:var(--_error-hover-supporting-text-color)}.error.focus .supporting-text{color:var(--_error-focus-supporting-text-color)}/*# sourceMappingURL=shared-styles.css.map */ `;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let O_=class extends Koe{};O_.styles=[j3,Yoe];O_=P([rt("md-filled-field")],O_);/** +*/let O_=class extends Qoe{};O_.styles=[V3,Koe];O_=P([rt("md-filled-field")],O_);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class Zoe extends sr{renderOutline(e){return _e` +*/class Yoe extends sr{renderOutline(e){return _e`
@@ -2042,29 +2042,29 @@ function print() { __p += __j.call(arguments, '') } * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const Xoe=Ve`:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_container-shape: var(--md-outlined-field-container-shape, 4px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_container-shape-start-start: var( --md-outlined-field-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-outlined-field-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-outlined-field-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-outlined-field-container-shape-end-start, var(--_container-shape) )}.outline{border-color:var(--_outline-color);border-radius:inherit;color:var(--_outline-color);display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}:host-context([dir=rtl]) .resizable .container,:host([dir=rtl]) .resizable .container{clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}/*# sourceMappingURL=outlined-styles.css.map */ + */const Zoe=Ve`:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_container-shape: var(--md-outlined-field-container-shape, 4px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_container-shape-start-start: var( --md-outlined-field-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-outlined-field-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-outlined-field-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-outlined-field-container-shape-end-start, var(--_container-shape) )}.outline{border-color:var(--_outline-color);border-radius:inherit;color:var(--_outline-color);display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}:host-context([dir=rtl]) .resizable .container,:host([dir=rtl]) .resizable .container{clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}/*# sourceMappingURL=outlined-styles.css.map */ `;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let P_=class extends Zoe{};P_.styles=[j3,Xoe];P_=P([rt("md-outlined-field")],P_);/** +*/let P_=class extends Yoe{};P_.styles=[V3,Zoe];P_=P([rt("md-outlined-field")],P_);/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class Joe extends lt{render(){return _e``}connectedCallback(){if(super.connectedCallback(),this.getAttribute("aria-hidden")==="false"){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}/** +*/class Xoe extends lt{render(){return _e``}connectedCallback(){if(super.connectedCallback(),this.getAttribute("aria-hidden")==="false"){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const eie=Ve`:host{font-size:24px;width:24px;height:24px;color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}/*# sourceMappingURL=icon-styles.css.map */ + */const Joe=Ve`:host{font-size:24px;width:24px;height:24px;color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}/*# sourceMappingURL=icon-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let R_=class extends Joe{};R_.styles=[eie];R_=P([rt("md-icon")],R_);/** +*/let R_=class extends Xoe{};R_.styles=[Joe];R_=P([rt("md-icon")],R_);/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const tie=Ve`:host{--_container-color: var(--md-filled-icon-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-height: var(--md-filled-icon-button-container-height, 40px);--_container-shape: var(--md-filled-icon-button-container-shape, 9999px);--_container-width: var(--md-filled-icon-button-container-width, 40px);--_disabled-container-color: var(--md-filled-icon-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-icon-button-disabled-container-opacity, 0.12);--_disabled-icon-color: var(--md-filled-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-icon-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-icon-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-icon-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-icon-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-filled-icon-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-icon-button-icon-size, 24px);--_pressed-icon-color: var(--md-filled-icon-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-icon-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-filled-icon-button-selected-container-color, var(--md-sys-color-primary, #6750a4));--_toggle-selected-focus-icon-color: var(--md-filled-icon-button-toggle-selected-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-hover-icon-color: var(--md-filled-icon-button-toggle-selected-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-hover-state-layer-color: var(--md-filled-icon-button-toggle-selected-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-icon-color: var(--md-filled-icon-button-toggle-selected-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-pressed-icon-color: var(--md-filled-icon-button-toggle-selected-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-pressed-state-layer-color: var(--md-filled-icon-button-toggle-selected-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_unselected-container-color: var(--md-filled-icon-button-unselected-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_toggle-focus-icon-color: var(--md-filled-icon-button-toggle-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-hover-icon-color: var(--md-filled-icon-button-toggle-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-hover-state-layer-color: var(--md-filled-icon-button-toggle-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_toggle-icon-color: var(--md-filled-icon-button-toggle-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-pressed-icon-color: var(--md-filled-icon-button-toggle-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-pressed-state-layer-color: var(--md-filled-icon-button-toggle-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var( --md-filled-icon-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-filled-icon-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-filled-icon-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-filled-icon-button-container-shape-end-start, var(--_container-shape) )}.icon-button{color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.icon-button:hover{color:var(--_hover-icon-color)}.icon-button:focus{color:var(--_focus-icon-color)}.icon-button:active{color:var(--_pressed-icon-color)}.icon-button:disabled{color:var(--_disabled-icon-color)}.icon-button::before{background-color:var(--_container-color);border-radius:inherit;content:"";inset:0;position:absolute;z-index:-1}.icon-button:disabled::before{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.icon-button:disabled .icon{opacity:var(--_disabled-icon-opacity)}.toggle-filled{--md-ripple-hover-color: var(--_toggle-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-pressed-state-layer-color)}.toggle-filled:not(:disabled){color:var(--_toggle-icon-color)}.toggle-filled:not(:disabled):hover{color:var(--_toggle-hover-icon-color)}.toggle-filled:not(:disabled):focus{color:var(--_toggle-focus-icon-color)}.toggle-filled:not(:disabled):active{color:var(--_toggle-pressed-icon-color)}.toggle-filled:not(:disabled)::before{background-color:var(--_unselected-container-color)}.selected{--md-ripple-hover-color: var(--_toggle-selected-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-selected-pressed-state-layer-color)}.selected:not(:disabled){color:var(--_toggle-selected-icon-color)}.selected:not(:disabled):hover{color:var(--_toggle-selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_toggle-selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_toggle-selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)}/*# sourceMappingURL=filled-styles.css.map */ +*/const eie=Ve`:host{--_container-color: var(--md-filled-icon-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-height: var(--md-filled-icon-button-container-height, 40px);--_container-shape: var(--md-filled-icon-button-container-shape, 9999px);--_container-width: var(--md-filled-icon-button-container-width, 40px);--_disabled-container-color: var(--md-filled-icon-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-icon-button-disabled-container-opacity, 0.12);--_disabled-icon-color: var(--md-filled-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-icon-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-icon-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-icon-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-icon-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-filled-icon-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-icon-button-icon-size, 24px);--_pressed-icon-color: var(--md-filled-icon-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-icon-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-filled-icon-button-selected-container-color, var(--md-sys-color-primary, #6750a4));--_toggle-selected-focus-icon-color: var(--md-filled-icon-button-toggle-selected-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-hover-icon-color: var(--md-filled-icon-button-toggle-selected-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-hover-state-layer-color: var(--md-filled-icon-button-toggle-selected-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-icon-color: var(--md-filled-icon-button-toggle-selected-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-pressed-icon-color: var(--md-filled-icon-button-toggle-selected-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-pressed-state-layer-color: var(--md-filled-icon-button-toggle-selected-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_unselected-container-color: var(--md-filled-icon-button-unselected-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_toggle-focus-icon-color: var(--md-filled-icon-button-toggle-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-hover-icon-color: var(--md-filled-icon-button-toggle-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-hover-state-layer-color: var(--md-filled-icon-button-toggle-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_toggle-icon-color: var(--md-filled-icon-button-toggle-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-pressed-icon-color: var(--md-filled-icon-button-toggle-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-pressed-state-layer-color: var(--md-filled-icon-button-toggle-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var( --md-filled-icon-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-filled-icon-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-filled-icon-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-filled-icon-button-container-shape-end-start, var(--_container-shape) )}.icon-button{color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.icon-button:hover{color:var(--_hover-icon-color)}.icon-button:focus{color:var(--_focus-icon-color)}.icon-button:active{color:var(--_pressed-icon-color)}.icon-button:disabled{color:var(--_disabled-icon-color)}.icon-button::before{background-color:var(--_container-color);border-radius:inherit;content:"";inset:0;position:absolute;z-index:-1}.icon-button:disabled::before{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.icon-button:disabled .icon{opacity:var(--_disabled-icon-opacity)}.toggle-filled{--md-ripple-hover-color: var(--_toggle-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-pressed-state-layer-color)}.toggle-filled:not(:disabled){color:var(--_toggle-icon-color)}.toggle-filled:not(:disabled):hover{color:var(--_toggle-hover-icon-color)}.toggle-filled:not(:disabled):focus{color:var(--_toggle-focus-icon-color)}.toggle-filled:not(:disabled):active{color:var(--_toggle-pressed-icon-color)}.toggle-filled:not(:disabled)::before{background-color:var(--_unselected-container-color)}.selected{--md-ripple-hover-color: var(--_toggle-selected-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-selected-pressed-state-layer-color)}.selected:not(:disabled){color:var(--_toggle-selected-icon-color)}.selected:not(:disabled):hover{color:var(--_toggle-selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_toggle-selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_toggle-selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)}/*# sourceMappingURL=filled-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC @@ -2073,7 +2073,7 @@ function print() { __p += __j.call(arguments, '') } * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/var H3;class Pr extends lt{constructor(){super(...arguments),this.disabled=!1,this.flipIconInRtl=!1,this.href="",this.target="",this.ariaLabelSelected="",this.toggle=!1,this.selected=!1,this.type="submit",this.value="",this.flipIcon=nT(this,this.flipIconInRtl),this[H3]=this.attachInternals()}get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[zl].form}get labels(){return this[zl].labels}willUpdate(){this.href&&(this.disabled=!1)}render(){const e=this.href?Wr`div`:Wr`button`,{ariaLabel:r,ariaHasPopup:n,ariaExpanded:o}=this,i=r&&this.ariaLabelSelected,a=this.toggle?this.selected:ge;let c=ge;return this.href||(c=i&&this.selected?this.ariaLabelSelected:r),Jl`<${e} +*/var j3;class Pr extends lt{constructor(){super(...arguments),this.disabled=!1,this.flipIconInRtl=!1,this.href="",this.target="",this.ariaLabelSelected="",this.toggle=!1,this.selected=!1,this.type="submit",this.value="",this.flipIcon=nT(this,this.flipIconInRtl),this[j3]=this.attachInternals()}get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[zl].form}get labels(){return this[zl].labels}willUpdate(){this.href&&(this.disabled=!1)}render(){const e=this.href?Wr`div`:Wr`button`,{ariaLabel:r,ariaHasPopup:n,ariaExpanded:o}=this,i=r&&this.ariaLabelSelected,a=this.toggle?this.selected:ge;let c=ge;return this.href||(c=i&&this.selected?this.ariaLabelSelected:r),Jl`<${e} class="icon-button ${jt(this.getRenderClasses())}" id="button" aria-label="${c||ge}" @@ -2098,7 +2098,7 @@ function print() { __p += __j.call(arguments, '') } `}getRenderClasses(){return{"flip-icon":this.flipIcon,selected:this.toggle&&this.selected}}renderIcon(){return _e``}renderSelectedIcon(){return _e``}renderTouchTarget(){return _e``}renderFocusRing(){return _e``}renderRipple(){return _e``}connectedCallback(){this.flipIcon=nT(this,this.flipIconInRtl),super.connectedCallback()}async handleClick(e){await 0,!(!this.toggle||this.disabled||e.defaultPrevented)&&(this.selected=!this.selected,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}H3=zl;Qr(Pr),D3(Pr);Pr.formAssociated=!0;Pr.shadowRootOptions={mode:"open",delegatesFocus:!0};P([Q({type:Boolean,reflect:!0})],Pr.prototype,"disabled",void 0);P([Q({type:Boolean,attribute:"flip-icon-in-rtl"})],Pr.prototype,"flipIconInRtl",void 0);P([Q()],Pr.prototype,"href",void 0);P([Q()],Pr.prototype,"target",void 0);P([Q({attribute:"aria-label-selected"})],Pr.prototype,"ariaLabelSelected",void 0);P([Q({type:Boolean})],Pr.prototype,"toggle",void 0);P([Q({type:Boolean,reflect:!0})],Pr.prototype,"selected",void 0);P([Q()],Pr.prototype,"type",void 0);P([Q()],Pr.prototype,"value",void 0);P([It()],Pr.prototype,"flipIcon",void 0);/** + >`}connectedCallback(){this.flipIcon=nT(this,this.flipIconInRtl),super.connectedCallback()}async handleClick(e){await 0,!(!this.toggle||this.disabled||e.defaultPrevented)&&(this.selected=!this.selected,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}j3=zl;Qr(Pr),M3(Pr);Pr.formAssociated=!0;Pr.shadowRootOptions={mode:"open",delegatesFocus:!0};P([Q({type:Boolean,reflect:!0})],Pr.prototype,"disabled",void 0);P([Q({type:Boolean,attribute:"flip-icon-in-rtl"})],Pr.prototype,"flipIconInRtl",void 0);P([Q()],Pr.prototype,"href",void 0);P([Q()],Pr.prototype,"target",void 0);P([Q({attribute:"aria-label-selected"})],Pr.prototype,"ariaLabelSelected",void 0);P([Q({type:Boolean})],Pr.prototype,"toggle",void 0);P([Q({type:Boolean,reflect:!0})],Pr.prototype,"selected",void 0);P([Q()],Pr.prototype,"type",void 0);P([Q()],Pr.prototype,"value",void 0);P([It()],Pr.prototype,"flipIcon",void 0);/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 @@ -2107,46 +2107,46 @@ function print() { __p += __j.call(arguments, '') } * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let L_=class extends Pr{getRenderClasses(){return{...super.getRenderClasses(),filled:!0,"toggle-filled":this.toggle}}};L_.styles=[Ah,tie];L_=P([rt("md-filled-icon-button")],L_);/** +*/let L_=class extends Pr{getRenderClasses(){return{...super.getRenderClasses(),filled:!0,"toggle-filled":this.toggle}}};L_.styles=[Ah,eie];L_=P([rt("md-filled-icon-button")],L_);/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const rie=Ve`:host{--_container-color: var(--md-filled-tonal-icon-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-height: var(--md-filled-tonal-icon-button-container-height, 40px);--_container-shape: var(--md-filled-tonal-icon-button-container-shape, 9999px);--_container-width: var(--md-filled-tonal-icon-button-container-width, 40px);--_disabled-container-color: var(--md-filled-tonal-icon-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-tonal-icon-button-disabled-container-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-icon-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-icon-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-icon-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-icon-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-filled-tonal-icon-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-icon-button-icon-size, 24px);--_pressed-icon-color: var(--md-filled-tonal-icon-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-icon-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-filled-tonal-icon-button-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_toggle-selected-focus-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-hover-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-hover-state-layer-color: var(--md-filled-tonal-icon-button-toggle-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-pressed-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-pressed-state-layer-color: var(--md-filled-tonal-icon-button-toggle-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_unselected-container-color: var(--md-filled-tonal-icon-button-unselected-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_toggle-focus-icon-color: var(--md-filled-tonal-icon-button-toggle-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-hover-icon-color: var(--md-filled-tonal-icon-button-toggle-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-hover-state-layer-color: var(--md-filled-tonal-icon-button-toggle-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-icon-color: var(--md-filled-tonal-icon-button-toggle-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-pressed-icon-color: var(--md-filled-tonal-icon-button-toggle-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-pressed-state-layer-color: var(--md-filled-tonal-icon-button-toggle-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_container-shape-start-start: var( --md-filled-tonal-icon-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-filled-tonal-icon-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-filled-tonal-icon-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-filled-tonal-icon-button-container-shape-end-start, var(--_container-shape) )}.icon-button{color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.icon-button:hover{color:var(--_hover-icon-color)}.icon-button:focus{color:var(--_focus-icon-color)}.icon-button:active{color:var(--_pressed-icon-color)}.icon-button:disabled{color:var(--_disabled-icon-color)}.icon-button::before{background-color:var(--_container-color);border-radius:inherit;content:"";inset:0;position:absolute;z-index:-1}.icon-button:disabled::before{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.icon-button:disabled .icon{opacity:var(--_disabled-icon-opacity)}.toggle-filled-tonal{--md-ripple-hover-color: var(--_toggle-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-pressed-state-layer-color)}.toggle-filled-tonal:not(:disabled){color:var(--_toggle-icon-color)}.toggle-filled-tonal:not(:disabled):hover{color:var(--_toggle-hover-icon-color)}.toggle-filled-tonal:not(:disabled):focus{color:var(--_toggle-focus-icon-color)}.toggle-filled-tonal:not(:disabled):active{color:var(--_toggle-pressed-icon-color)}.toggle-filled-tonal:not(:disabled)::before{background-color:var(--_unselected-container-color)}.selected{--md-ripple-hover-color: var(--_toggle-selected-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-selected-pressed-state-layer-color)}.selected:not(:disabled){color:var(--_toggle-selected-icon-color)}.selected:not(:disabled):hover{color:var(--_toggle-selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_toggle-selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_toggle-selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)}/*# sourceMappingURL=filled-tonal-styles.css.map */ +*/const tie=Ve`:host{--_container-color: var(--md-filled-tonal-icon-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-height: var(--md-filled-tonal-icon-button-container-height, 40px);--_container-shape: var(--md-filled-tonal-icon-button-container-shape, 9999px);--_container-width: var(--md-filled-tonal-icon-button-container-width, 40px);--_disabled-container-color: var(--md-filled-tonal-icon-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-tonal-icon-button-disabled-container-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-icon-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-icon-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-icon-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-icon-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-filled-tonal-icon-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-icon-button-icon-size, 24px);--_pressed-icon-color: var(--md-filled-tonal-icon-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-icon-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-filled-tonal-icon-button-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_toggle-selected-focus-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-hover-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-hover-state-layer-color: var(--md-filled-tonal-icon-button-toggle-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-pressed-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-pressed-state-layer-color: var(--md-filled-tonal-icon-button-toggle-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_unselected-container-color: var(--md-filled-tonal-icon-button-unselected-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_toggle-focus-icon-color: var(--md-filled-tonal-icon-button-toggle-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-hover-icon-color: var(--md-filled-tonal-icon-button-toggle-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-hover-state-layer-color: var(--md-filled-tonal-icon-button-toggle-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-icon-color: var(--md-filled-tonal-icon-button-toggle-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-pressed-icon-color: var(--md-filled-tonal-icon-button-toggle-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-pressed-state-layer-color: var(--md-filled-tonal-icon-button-toggle-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_container-shape-start-start: var( --md-filled-tonal-icon-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-filled-tonal-icon-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-filled-tonal-icon-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-filled-tonal-icon-button-container-shape-end-start, var(--_container-shape) )}.icon-button{color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.icon-button:hover{color:var(--_hover-icon-color)}.icon-button:focus{color:var(--_focus-icon-color)}.icon-button:active{color:var(--_pressed-icon-color)}.icon-button:disabled{color:var(--_disabled-icon-color)}.icon-button::before{background-color:var(--_container-color);border-radius:inherit;content:"";inset:0;position:absolute;z-index:-1}.icon-button:disabled::before{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.icon-button:disabled .icon{opacity:var(--_disabled-icon-opacity)}.toggle-filled-tonal{--md-ripple-hover-color: var(--_toggle-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-pressed-state-layer-color)}.toggle-filled-tonal:not(:disabled){color:var(--_toggle-icon-color)}.toggle-filled-tonal:not(:disabled):hover{color:var(--_toggle-hover-icon-color)}.toggle-filled-tonal:not(:disabled):focus{color:var(--_toggle-focus-icon-color)}.toggle-filled-tonal:not(:disabled):active{color:var(--_toggle-pressed-icon-color)}.toggle-filled-tonal:not(:disabled)::before{background-color:var(--_unselected-container-color)}.selected{--md-ripple-hover-color: var(--_toggle-selected-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-selected-pressed-state-layer-color)}.selected:not(:disabled){color:var(--_toggle-selected-icon-color)}.selected:not(:disabled):hover{color:var(--_toggle-selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_toggle-selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_toggle-selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)}/*# sourceMappingURL=filled-tonal-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let M_=class extends Pr{getRenderClasses(){return{...super.getRenderClasses(),"filled-tonal":!0,"toggle-filled-tonal":this.toggle}}};M_.styles=[Ah,rie];M_=P([rt("md-filled-tonal-icon-button")],M_);/** +*/let M_=class extends Pr{getRenderClasses(){return{...super.getRenderClasses(),"filled-tonal":!0,"toggle-filled-tonal":this.toggle}}};M_.styles=[Ah,tie];M_=P([rt("md-filled-tonal-icon-button")],M_);/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const nie=Ve`:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, 9999px);--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:disabled{color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:disabled .icon{opacity:var(--_disabled-icon-opacity)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}/*# sourceMappingURL=standard-styles.css.map */ +*/const rie=Ve`:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, 9999px);--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:disabled{color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:disabled .icon{opacity:var(--_disabled-icon-opacity)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}/*# sourceMappingURL=standard-styles.css.map */ `;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let D_=class extends Pr{getRenderClasses(){return{...super.getRenderClasses(),standard:!0}}};D_.styles=[Ah,nie];D_=P([rt("md-icon-button")],D_);/** +*/let D_=class extends Pr{getRenderClasses(){return{...super.getRenderClasses(),standard:!0}}};D_.styles=[Ah,rie];D_=P([rt("md-icon-button")],D_);/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const oie=Ve`:host{--_container-height: var(--md-outlined-icon-button-container-height, 40px);--_container-shape: var(--md-outlined-icon-button-container-shape, 9999px);--_container-width: var(--md-outlined-icon-button-container-width, 40px);--_disabled-icon-color: var(--md-outlined-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-icon-button-disabled-icon-opacity, 0.38);--_disabled-selected-container-color: var(--md-outlined-icon-button-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity: var(--md-outlined-icon-button-disabled-selected-container-opacity, 0.12);--_hover-state-layer-opacity: var(--md-outlined-icon-button-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-outlined-icon-button-icon-size, 24px);--_pressed-state-layer-opacity: var(--md-outlined-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-outlined-icon-button-selected-container-color, var(--md-sys-color-inverse-surface, #322f35));--_selected-focus-icon-color: var(--md-outlined-icon-button-selected-focus-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-hover-icon-color: var(--md-outlined-icon-button-selected-hover-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-hover-state-layer-color: var(--md-outlined-icon-button-selected-hover-state-layer-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-icon-color: var(--md-outlined-icon-button-selected-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-pressed-icon-color: var(--md-outlined-icon-button-selected-pressed-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-pressed-state-layer-color: var(--md-outlined-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_disabled-outline-color: var(--md-outlined-icon-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-icon-button-disabled-outline-opacity, 0.12);--_focus-icon-color: var(--md-outlined-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-outlined-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-outlined-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_icon-color: var(--md-outlined-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-outlined-icon-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-icon-button-outline-width, 1px);--_pressed-icon-color: var(--md-outlined-icon-button-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--md-outlined-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var( --md-outlined-icon-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-outlined-icon-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-outlined-icon-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-outlined-icon-button-container-shape-end-start, var(--_container-shape) )}.outlined{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.outlined::before{border-color:var(--_outline-color);border-width:var(--_outline-width)}.outlined:hover{color:var(--_hover-icon-color)}.outlined:focus{color:var(--_focus-icon-color)}.outlined:active{color:var(--_pressed-icon-color)}.outlined:disabled{color:var(--_disabled-icon-color)}.outlined:disabled::before{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}.outlined:disabled .icon{opacity:var(--_disabled-icon-opacity)}.outlined::before{block-size:100%;border-style:solid;border-radius:inherit;box-sizing:border-box;content:"";inline-size:100%;inset:0;pointer-events:none;position:absolute;z-index:-1}.outlined.selected::before{border-width:0}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)}.selected:disabled::before{background-color:var(--_disabled-selected-container-color);opacity:var(--_disabled-selected-container-opacity)}@media(forced-colors: active){:host([disabled]){--_disabled-outline-opacity: 1}.selected::before{border-color:CanvasText;border-width:var(--_outline-width)}.selected:disabled::before{border-color:GrayText;opacity:1}}/*# sourceMappingURL=outlined-styles.css.map */ +*/const nie=Ve`:host{--_container-height: var(--md-outlined-icon-button-container-height, 40px);--_container-shape: var(--md-outlined-icon-button-container-shape, 9999px);--_container-width: var(--md-outlined-icon-button-container-width, 40px);--_disabled-icon-color: var(--md-outlined-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-icon-button-disabled-icon-opacity, 0.38);--_disabled-selected-container-color: var(--md-outlined-icon-button-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity: var(--md-outlined-icon-button-disabled-selected-container-opacity, 0.12);--_hover-state-layer-opacity: var(--md-outlined-icon-button-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-outlined-icon-button-icon-size, 24px);--_pressed-state-layer-opacity: var(--md-outlined-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-outlined-icon-button-selected-container-color, var(--md-sys-color-inverse-surface, #322f35));--_selected-focus-icon-color: var(--md-outlined-icon-button-selected-focus-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-hover-icon-color: var(--md-outlined-icon-button-selected-hover-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-hover-state-layer-color: var(--md-outlined-icon-button-selected-hover-state-layer-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-icon-color: var(--md-outlined-icon-button-selected-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-pressed-icon-color: var(--md-outlined-icon-button-selected-pressed-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-pressed-state-layer-color: var(--md-outlined-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_disabled-outline-color: var(--md-outlined-icon-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-icon-button-disabled-outline-opacity, 0.12);--_focus-icon-color: var(--md-outlined-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-outlined-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-outlined-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_icon-color: var(--md-outlined-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-outlined-icon-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-icon-button-outline-width, 1px);--_pressed-icon-color: var(--md-outlined-icon-button-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--md-outlined-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var( --md-outlined-icon-button-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-outlined-icon-button-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-outlined-icon-button-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-outlined-icon-button-container-shape-end-start, var(--_container-shape) )}.outlined{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.outlined::before{border-color:var(--_outline-color);border-width:var(--_outline-width)}.outlined:hover{color:var(--_hover-icon-color)}.outlined:focus{color:var(--_focus-icon-color)}.outlined:active{color:var(--_pressed-icon-color)}.outlined:disabled{color:var(--_disabled-icon-color)}.outlined:disabled::before{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}.outlined:disabled .icon{opacity:var(--_disabled-icon-opacity)}.outlined::before{block-size:100%;border-style:solid;border-radius:inherit;box-sizing:border-box;content:"";inline-size:100%;inset:0;pointer-events:none;position:absolute;z-index:-1}.outlined.selected::before{border-width:0}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)}.selected:disabled::before{background-color:var(--_disabled-selected-container-color);opacity:var(--_disabled-selected-container-opacity)}@media(forced-colors: active){:host([disabled]){--_disabled-outline-opacity: 1}.selected::before{border-color:CanvasText;border-width:var(--_outline-width)}.selected:disabled::before{border-color:GrayText;opacity:1}}/*# sourceMappingURL=outlined-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let F_=class extends Pr{getRenderClasses(){return{...super.getRenderClasses(),outlined:!0}}};F_.styles=[Ah,oie];F_=P([rt("md-outlined-icon-button")],F_);/** +*/let F_=class extends Pr{getRenderClasses(){return{...super.getRenderClasses(),outlined:!0}}};F_.styles=[Ah,nie];F_=P([rt("md-outlined-icon-button")],F_);/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/function W3(t,e=Qo){const r=Sh(t,e);return r&&(r.tabIndex=0,r.focus()),r}function G3(t,e=Qo){const r=Q3(t,e);return r&&(r.tabIndex=0,r.focus()),r}function iie(t,e=Qo){const r=_l(t,e);return r&&(r.item.tabIndex=-1),r}function _l(t,e=Qo){for(let r=0;r=0;r--){const n=t[r];if(e(n))return n}return null}function aie(t,e,r=Qo){for(let n=1;n=0;r--){const n=t[r];if(e(n))return n}return null}function iie(t,e,r=Qo){for(let n=1;n{const f=u.key;if(u.defaultPrevented||!this.isNavigableKey(f))return;const g=this.items;if(!g.length)return;const _=_l(g,this.isActivatable);_&&(_.item.tabIndex=-1),u.preventDefault();const b=this.isRtl(),h=b?Fr.ArrowRight:Fr.ArrowLeft,m=b?Fr.ArrowLeft:Fr.ArrowRight;switch(f){case Fr.ArrowDown:case m:oT(g,_,this.isActivatable);break;case Fr.ArrowUp:case h:iT(g,_,this.isActivatable);break;case Fr.Home:W3(g,this.isActivatable);break;case Fr.End:G3(g,this.isActivatable);break}},this.onDeactivateItems=()=>{const u=this.items;for(const f of u)this.deactivateItem(f)},this.onRequestActivation=u=>{this.onDeactivateItems();const f=u.target;this.activateItem(f),f.focus()},this.onSlotchange=()=>{const u=this.items;let f=!1;for(const _ of u){if(!_.disabled&&_.tabIndex>-1&&!f){f=!0,_.tabIndex=0;continue}_.tabIndex=-1}if(f)return;const g=Sh(u,this.isActivatable);g&&(g.tabIndex=0)};const{isItem:r,getPossibleItems:n,isRtl:o,deactivateItem:i,activateItem:a,isNavigableKey:c,isActivatable:d}=e;this.isItem=r,this.getPossibleItems=n,this.isRtl=o,this.deactivateItem=i,this.activateItem=a,this.isNavigableKey=c,this.isActivatable=d}get items(){const e=this.getPossibleItems(),r=[];for(const n of e){if(this.isItem(n)){r.push(n);continue}const i=n.item;i&&this.isItem(i)&&r.push(i)}return r}activateNextItem(){const e=this.items,r=_l(e,this.isActivatable);return r&&(r.item.tabIndex=-1),oT(e,r,this.isActivatable)}activatePreviousItem(){const e=this.items,r=_l(e,this.isActivatable);return r&&(r.item.tabIndex=-1),iT(e,r,this.isActivatable)}}/** +*/const Fr={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class K3{constructor(e){this.handleKeydown=u=>{const f=u.key;if(u.defaultPrevented||!this.isNavigableKey(f))return;const g=this.items;if(!g.length)return;const _=_l(g,this.isActivatable);_&&(_.item.tabIndex=-1),u.preventDefault();const b=this.isRtl(),h=b?Fr.ArrowRight:Fr.ArrowLeft,m=b?Fr.ArrowLeft:Fr.ArrowRight;switch(f){case Fr.ArrowDown:case m:oT(g,_,this.isActivatable);break;case Fr.ArrowUp:case h:iT(g,_,this.isActivatable);break;case Fr.Home:H3(g,this.isActivatable);break;case Fr.End:W3(g,this.isActivatable);break}},this.onDeactivateItems=()=>{const u=this.items;for(const f of u)this.deactivateItem(f)},this.onRequestActivation=u=>{this.onDeactivateItems();const f=u.target;this.activateItem(f),f.focus()},this.onSlotchange=()=>{const u=this.items;let f=!1;for(const _ of u){if(!_.disabled&&_.tabIndex>-1&&!f){f=!0,_.tabIndex=0;continue}_.tabIndex=-1}if(f)return;const g=Sh(u,this.isActivatable);g&&(g.tabIndex=0)};const{isItem:r,getPossibleItems:n,isRtl:o,deactivateItem:i,activateItem:a,isNavigableKey:c,isActivatable:d}=e;this.isItem=r,this.getPossibleItems=n,this.isRtl=o,this.deactivateItem=i,this.activateItem=a,this.isNavigableKey=c,this.isActivatable=d}get items(){const e=this.getPossibleItems(),r=[];for(const n of e){if(this.isItem(n)){r.push(n);continue}const i=n.item;i&&this.isItem(i)&&r.push(i)}return r}activateNextItem(){const e=this.items,r=_l(e,this.isActivatable);return r&&(r.item.tabIndex=-1),oT(e,r,this.isActivatable)}activatePreviousItem(){const e=this.items,r=_l(e,this.isActivatable);return r&&(r.item.tabIndex=-1),iT(e,r,this.isActivatable)}}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const lie=new Set(Object.values(Fr));class x0 extends lt{get items(){return this.listController.items}constructor(){super(),this.listController=new Y3({isItem:e=>e.hasAttribute("md-list-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.tabIndex=-1},activateItem:e=>{e.tabIndex=0},isNavigableKey:e=>lie.has(e),isActivatable:e=>!e.disabled&&e.type!=="text"}),this.internals=Kd(this,this.attachInternals()),this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown)}render(){return _e` +*/const sie=new Set(Object.values(Fr));class x0 extends lt{get items(){return this.listController.items}constructor(){super(),this.listController=new K3({isItem:e=>e.hasAttribute("md-list-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.tabIndex=-1},activateItem:e=>{e.tabIndex=0},isNavigableKey:e=>sie.has(e),isActivatable:e=>!e.disabled&&e.type!=="text"}),this.internals=Kd(this,this.attachInternals()),this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown)}render(){return _e` - `}handleTextSlotChange(){let e=!1,r=0;for(const n of this.textSlots)if(die(n)&&(r+=1),r>1){e=!0;break}this.multiline=e}}P([Q({type:Boolean,reflect:!0})],w0.prototype,"multiline",void 0);P([LJ(".text slot")],w0.prototype,"textSlots",void 0);function die(t){var e;for(const r of t.assignedNodes({flatten:!0})){const n=r.nodeType===Node.ELEMENT_NODE,o=r.nodeType===Node.TEXT_NODE&&((e=r.textContent)==null?void 0:e.match(/\S/));if(n||o)return!0}return!1}/** + `}handleTextSlotChange(){let e=!1,r=0;for(const n of this.textSlots)if(cie(n)&&(r+=1),r>1){e=!0;break}this.multiline=e}}P([Q({type:Boolean,reflect:!0})],w0.prototype,"multiline",void 0);P([RJ(".text slot")],w0.prototype,"textSlots",void 0);function cie(t){var e;for(const r of t.assignedNodes({flatten:!0})){const n=r.nodeType===Node.ELEMENT_NODE,o=r.nodeType===Node.TEXT_NODE&&((e=r.textContent)==null?void 0:e.match(/\S/));if(n||o)return!0}return!1}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const uie=Ve`:host{color:var(--md-sys-color-on-surface, #1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, 0.875rem);font-weight:var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden}/*# sourceMappingURL=item-styles.css.map */ + */const die=Ve`:host{color:var(--md-sys-color-on-surface, #1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, 0.875rem);font-weight:var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden}/*# sourceMappingURL=item-styles.css.map */ `;/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let z_=class extends w0{};z_.styles=[uie];z_=P([rt("md-item")],z_);/** +*/let z_=class extends w0{};z_.styles=[die];z_=P([rt("md-item")],z_);/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 @@ -2234,36 +2234,36 @@ function print() { __p += __j.call(arguments, '') } - `}onFocus(){this.tabIndex===-1&&this.dispatchEvent(K3())}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}Qr(Ai);Ai.shadowRootOptions={...lt.shadowRootOptions,delegatesFocus:!0};P([Q({type:Boolean,reflect:!0})],Ai.prototype,"disabled",void 0);P([Q({reflect:!0})],Ai.prototype,"type",void 0);P([Q({type:Boolean,attribute:"md-list-item",reflect:!0})],Ai.prototype,"isListItem",void 0);P([Q()],Ai.prototype,"href",void 0);P([Q()],Ai.prototype,"target",void 0);P([wt(".list-item")],Ai.prototype,"listItemRoot",void 0);/** + `}onFocus(){this.tabIndex===-1&&this.dispatchEvent(Q3())}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}Qr(Ai);Ai.shadowRootOptions={...lt.shadowRootOptions,delegatesFocus:!0};P([Q({type:Boolean,reflect:!0})],Ai.prototype,"disabled",void 0);P([Q({reflect:!0})],Ai.prototype,"type",void 0);P([Q({type:Boolean,attribute:"md-list-item",reflect:!0})],Ai.prototype,"isListItem",void 0);P([Q()],Ai.prototype,"href",void 0);P([Q()],Ai.prototype,"target",void 0);P([wt(".list-item")],Ai.prototype,"listItemRoot",void 0);/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const fie=Ve`:host{display:flex;--md-ripple-hover-color: var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape: 8px}a,button,li{background:none;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, 0.3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color, var(--md-sys-color-on-surface, #1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));min-height:var(--md-list-item-one-line-container-height, 56px);padding-top:var(--md-list-item-top-space, 12px);padding-bottom:var(--md-list-item-bottom-space, 12px);padding-inline-start:var(--md-list-item-leading-space, 16px);padding-inline-end:var(--md-list-item-trailing-space, 16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height, 72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}@media(forced-colors: active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}/*# sourceMappingURL=list-item-styles.css.map */ +*/const uie=Ve`:host{display:flex;--md-ripple-hover-color: var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape: 8px}a,button,li{background:none;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, 0.3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color, var(--md-sys-color-on-surface, #1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));min-height:var(--md-list-item-one-line-container-height, 56px);padding-top:var(--md-list-item-top-space, 12px);padding-bottom:var(--md-list-item-bottom-space, 12px);padding-inline-start:var(--md-list-item-leading-space, 16px);padding-inline-end:var(--md-list-item-trailing-space, 16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height, 72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}@media(forced-colors: active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}/*# sourceMappingURL=list-item-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let q_=class extends Ai{};q_.styles=[fie];q_=P([rt("md-list-item")],q_);/** +*/let q_=class extends Ai{};q_.styles=[uie];q_=P([rt("md-list-item")],q_);/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause -*/const Z3="important",pie=" !"+Z3,ql=p0(class extends h0{constructor(t){var e;if(super(t),t.type!==Ji.ATTRIBUTE||t.name!=="style"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return n==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){const{style:r}=t.element;if(this.ht===void 0){this.ht=new Set;for(const n in e)this.ht.add(n);return this.render(e)}this.ht.forEach(n=>{e[n]==null&&(this.ht.delete(n),n.includes("-")?r.removeProperty(n):r[n]="")});for(const n in e){const o=e[n];if(o!=null){this.ht.add(n);const i=typeof o=="string"&&o.endsWith(pie);n.includes("-")||i?r.setProperty(n,i?o.slice(0,-11):o,i?Z3:""):r[n]=o}}return jn}});/** +*/const Y3="important",fie=" !"+Y3,ql=p0(class extends h0{constructor(t){var e;if(super(t),t.type!==Ji.ATTRIBUTE||t.name!=="style"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return n==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){const{style:r}=t.element;if(this.ht===void 0){this.ht=new Set;for(const n in e)this.ht.add(n);return this.render(e)}this.ht.forEach(n=>{e[n]==null&&(this.ht.delete(n),n.includes("-")?r.removeProperty(n):r[n]="")});for(const n in e){const o=e[n];if(o!=null){this.ht.add(n);const i=typeof o=="string"&&o.endsWith(fie);n.includes("-")||i?r.setProperty(n,i?o.slice(0,-11):o,i?Y3:""):r[n]=o}}return jn}});/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/function hie(t,e){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:t,reason:e,itemPath:[t]}})}const aT=hie;function mie(){return new Event("deactivate-typeahead",{bubbles:!0,composed:!0})}function Mv(){return new Event("activate-typeahead",{bubbles:!0,composed:!0})}const Hi={UP:"ArrowUp",DOWN:"ArrowDown",RIGHT:"ArrowRight",LEFT:"ArrowLeft"},yl={SPACE:"Space",ENTER:"Enter"},B_={CLICK_SELECTION:"click-selection",KEYDOWN:"keydown"},U_={ESCAPE:"Escape",SPACE:yl.SPACE,ENTER:yl.ENTER};function X3(t){return Object.values(U_).some(e=>e===t)}function vie(t){return Object.values(yl).some(e=>e===t)}function V_(t,e){const r=new Event("md-contains",{bubbles:!0,composed:!0});let n=[];const o=a=>{n=a.composedPath()};return e.addEventListener("md-contains",o),t.dispatchEvent(r),e.removeEventListener("md-contains",o),n.length>0}const Ys={NONE:"none",LIST_ROOT:"list-root",FIRST_ITEM:"first-item",LAST_ITEM:"last-item"};/** +*/function pie(t,e){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:t,reason:e,itemPath:[t]}})}const aT=pie;function hie(){return new Event("deactivate-typeahead",{bubbles:!0,composed:!0})}function Mv(){return new Event("activate-typeahead",{bubbles:!0,composed:!0})}const Hi={UP:"ArrowUp",DOWN:"ArrowDown",RIGHT:"ArrowRight",LEFT:"ArrowLeft"},yl={SPACE:"Space",ENTER:"Enter"},B_={CLICK_SELECTION:"click-selection",KEYDOWN:"keydown"},U_={ESCAPE:"Escape",SPACE:yl.SPACE,ENTER:yl.ENTER};function Z3(t){return Object.values(U_).some(e=>e===t)}function mie(t){return Object.values(yl).some(e=>e===t)}function V_(t,e){const r=new Event("md-contains",{bubbles:!0,composed:!0});let n=[];const o=a=>{n=a.composedPath()};return e.addEventListener("md-contains",o),t.dispatchEvent(r),e.removeEventListener("md-contains",o),n.length>0}const Ys={NONE:"none",LIST_ROOT:"list-root",FIRST_ITEM:"first-item",LAST_ITEM:"last-item"};/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const Cp={END_START:"end-start",END_END:"end-end",START_START:"start-start",START_END:"start-end"};class gie{constructor(e,r){this.host=e,this.getProperties=r,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:r,anchorCorner:n,surfaceCorner:o,positioning:i,xOffset:a,yOffset:c,repositionStrategy:d}=this.getProperties(),u=n.toLowerCase().trim(),f=o.toLowerCase().trim();if(!e||!r)return;const g=window.innerWidth,_=window.innerHeight;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete;const b=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),h=r.getSurfacePositionClientRect?r.getSurfacePositionClientRect():r.getBoundingClientRect(),[m,y]=f.split("-"),[v,x]=u.split("-"),E=getComputedStyle(e).direction==="ltr";let{blockInset:T,blockOutOfBoundsCorrection:C,surfaceBlockProperty:A}=this.calculateBlock({surfaceRect:b,anchorRect:h,anchorBlock:v,surfaceBlock:m,yOffset:c,positioning:i,windowInnerHeight:_});if(C){const q=m==="start"?"end":"start",H=v==="start"?"end":"start",U=this.calculateBlock({surfaceRect:b,anchorRect:h,anchorBlock:H,surfaceBlock:q,yOffset:c,positioning:i,windowInnerHeight:_});C>U.blockOutOfBoundsCorrection&&(T=U.blockInset,C=U.blockOutOfBoundsCorrection,A=U.surfaceBlockProperty)}let{inlineInset:L,inlineOutOfBoundsCorrection:R,surfaceInlineProperty:D}=this.calculateInline({surfaceRect:b,anchorRect:h,anchorInline:x,surfaceInline:y,xOffset:a,positioning:i,isLTR:E,windowInnerWidth:g});if(R){const q=y==="start"?"end":"start",H=x==="start"?"end":"start",U=this.calculateInline({surfaceRect:b,anchorRect:h,anchorInline:H,surfaceInline:q,xOffset:a,positioning:i,isLTR:E,windowInnerWidth:g});Math.abs(R)>Math.abs(U.inlineOutOfBoundsCorrection)&&(L=U.inlineInset,R=U.inlineOutOfBoundsCorrection,D=U.surfaceInlineProperty)}d==="move"&&(T=T-C,L=L-R),this.surfaceStylesInternal={display:"block",opacity:"1",[A]:`${T}px`,[D]:`${L}px`},d==="resize"&&(C&&(this.surfaceStylesInternal.height=`${b.height-C}px`),R&&(this.surfaceStylesInternal.width=`${b.width-R}px`)),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:r,anchorRect:n,anchorBlock:o,surfaceBlock:i,yOffset:a,positioning:c,windowInnerHeight:d}=e,u=c==="fixed"?1:0,f=i==="start"?1:0,g=i==="end"?1:0,b=(o!==i?1:0)*n.height+a,h=f*n.top+g*(d-n.bottom),m=Math.abs(Math.min(0,d-h-b-r.height));return{blockInset:u*h+b,blockOutOfBoundsCorrection:m,surfaceBlockProperty:i==="start"?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:r,surfaceInline:n,anchorInline:o,anchorRect:i,surfaceRect:a,xOffset:c,positioning:d,windowInnerWidth:u}=e,f=d==="fixed"?1:0,g=r?1:0,_=r?0:1,b=n==="start"?1:0,h=n==="end"?1:0,y=(o!==n?1:0)*i.width+c,v=b*i.left+h*(u-i.right),x=b*(u-i.right)+h*i.left,E=g*v+_*x,T=Math.abs(Math.min(0,u-E-y-a.width));return{inlineInset:f*E+y,inlineOutOfBoundsCorrection:T,surfaceInlineProperty:n==="start"?"inset-inline-start":"inset-inline-end"}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let r=!1;for(const[a,c]of Object.entries(e))if(r=r||c!==this.lastValues[a],r)break;const n=this.lastValues.isOpen!==e.isOpen,o=!!e.anchorEl,i=!!e.surfaceEl;r&&o&&i&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):n&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate()}}/** +*/const Cp={END_START:"end-start",END_END:"end-end",START_START:"start-start",START_END:"start-end"};class vie{constructor(e,r){this.host=e,this.getProperties=r,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:r,anchorCorner:n,surfaceCorner:o,positioning:i,xOffset:a,yOffset:c,repositionStrategy:d}=this.getProperties(),u=n.toLowerCase().trim(),f=o.toLowerCase().trim();if(!e||!r)return;const g=window.innerWidth,_=window.innerHeight;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete;const b=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),h=r.getSurfacePositionClientRect?r.getSurfacePositionClientRect():r.getBoundingClientRect(),[m,y]=f.split("-"),[v,x]=u.split("-"),E=getComputedStyle(e).direction==="ltr";let{blockInset:T,blockOutOfBoundsCorrection:C,surfaceBlockProperty:A}=this.calculateBlock({surfaceRect:b,anchorRect:h,anchorBlock:v,surfaceBlock:m,yOffset:c,positioning:i,windowInnerHeight:_});if(C){const q=m==="start"?"end":"start",H=v==="start"?"end":"start",U=this.calculateBlock({surfaceRect:b,anchorRect:h,anchorBlock:H,surfaceBlock:q,yOffset:c,positioning:i,windowInnerHeight:_});C>U.blockOutOfBoundsCorrection&&(T=U.blockInset,C=U.blockOutOfBoundsCorrection,A=U.surfaceBlockProperty)}let{inlineInset:L,inlineOutOfBoundsCorrection:R,surfaceInlineProperty:D}=this.calculateInline({surfaceRect:b,anchorRect:h,anchorInline:x,surfaceInline:y,xOffset:a,positioning:i,isLTR:E,windowInnerWidth:g});if(R){const q=y==="start"?"end":"start",H=x==="start"?"end":"start",U=this.calculateInline({surfaceRect:b,anchorRect:h,anchorInline:H,surfaceInline:q,xOffset:a,positioning:i,isLTR:E,windowInnerWidth:g});Math.abs(R)>Math.abs(U.inlineOutOfBoundsCorrection)&&(L=U.inlineInset,R=U.inlineOutOfBoundsCorrection,D=U.surfaceInlineProperty)}d==="move"&&(T=T-C,L=L-R),this.surfaceStylesInternal={display:"block",opacity:"1",[A]:`${T}px`,[D]:`${L}px`},d==="resize"&&(C&&(this.surfaceStylesInternal.height=`${b.height-C}px`),R&&(this.surfaceStylesInternal.width=`${b.width-R}px`)),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:r,anchorRect:n,anchorBlock:o,surfaceBlock:i,yOffset:a,positioning:c,windowInnerHeight:d}=e,u=c==="fixed"?1:0,f=i==="start"?1:0,g=i==="end"?1:0,b=(o!==i?1:0)*n.height+a,h=f*n.top+g*(d-n.bottom),m=Math.abs(Math.min(0,d-h-b-r.height));return{blockInset:u*h+b,blockOutOfBoundsCorrection:m,surfaceBlockProperty:i==="start"?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:r,surfaceInline:n,anchorInline:o,anchorRect:i,surfaceRect:a,xOffset:c,positioning:d,windowInnerWidth:u}=e,f=d==="fixed"?1:0,g=r?1:0,_=r?0:1,b=n==="start"?1:0,h=n==="end"?1:0,y=(o!==n?1:0)*i.width+c,v=b*i.left+h*(u-i.right),x=b*(u-i.right)+h*i.left,E=g*v+_*x,T=Math.abs(Math.min(0,u-E-y-a.width));return{inlineInset:f*E+y,inlineOutOfBoundsCorrection:T,surfaceInlineProperty:n==="start"?"inset-inline-start":"inset-inline-end"}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let r=!1;for(const[a,c]of Object.entries(e))if(r=r||c!==this.lastValues[a],r)break;const n=this.lastValues.isOpen!==e.isOpen,o=!!e.anchorEl,i=!!e.surfaceEl;r&&o&&i&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):n&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate()}}/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const Bn={INDEX:0,ITEM:1,TEXT:2};class _ie{constructor(e){this.getProperties=e,this.typeaheadRecords=[],this.typaheadBuffer="",this.cancelTypeaheadTimeout=0,this.isTypingAhead=!1,this.lastActiveRecord=null,this.onKeydown=r=>{this.isTypingAhead?this.typeahead(r):this.beginTypeahead(r)},this.endTypeahead=()=>{this.isTypingAhead=!1,this.typaheadBuffer="",this.typeaheadRecords=[]}}get items(){return this.getProperties().getItems()}get active(){return this.getProperties().active}beginTypeahead(e){this.active&&(e.code==="Space"||e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"||(this.isTypingAhead=!0,this.typeaheadRecords=this.items.map((r,n)=>[n,r,r.typeaheadText.trim().toLowerCase()]),this.lastActiveRecord=this.typeaheadRecords.find(r=>r[Bn.ITEM].tabIndex===0)??null,this.lastActiveRecord&&(this.lastActiveRecord[Bn.ITEM].tabIndex=-1),this.typeahead(e)))}typeahead(e){if(e.defaultPrevented)return;if(clearTimeout(this.cancelTypeaheadTimeout),e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"){this.endTypeahead(),this.lastActiveRecord&&(this.lastActiveRecord[Bn.ITEM].tabIndex=-1);return}e.code==="Space"&&e.preventDefault(),this.cancelTypeaheadTimeout=setTimeout(this.endTypeahead,this.getProperties().typeaheadBufferTime),this.typaheadBuffer+=e.key.toLowerCase();const r=this.lastActiveRecord?this.lastActiveRecord[Bn.INDEX]:-1,n=this.typeaheadRecords.length,o=d=>(d[Bn.INDEX]+n-r)%n,i=this.typeaheadRecords.filter(d=>!d[Bn.ITEM].disabled&&d[Bn.TEXT].startsWith(this.typaheadBuffer)).sort((d,u)=>o(d)-o(u));if(i.length===0){clearTimeout(this.cancelTypeaheadTimeout),this.lastActiveRecord&&(this.lastActiveRecord[Bn.ITEM].tabIndex=-1),this.endTypeahead();return}const a=this.typaheadBuffer.length===1;let c;this.lastActiveRecord===i[0]&&a?c=i[1]??i[0]:c=i[0],this.lastActiveRecord&&(this.lastActiveRecord[Bn.ITEM].tabIndex=-1),this.lastActiveRecord=c,c[Bn.ITEM].tabIndex=0,c[Bn.ITEM].focus()}}/** +*/const Bn={INDEX:0,ITEM:1,TEXT:2};class gie{constructor(e){this.getProperties=e,this.typeaheadRecords=[],this.typaheadBuffer="",this.cancelTypeaheadTimeout=0,this.isTypingAhead=!1,this.lastActiveRecord=null,this.onKeydown=r=>{this.isTypingAhead?this.typeahead(r):this.beginTypeahead(r)},this.endTypeahead=()=>{this.isTypingAhead=!1,this.typaheadBuffer="",this.typeaheadRecords=[]}}get items(){return this.getProperties().getItems()}get active(){return this.getProperties().active}beginTypeahead(e){this.active&&(e.code==="Space"||e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"||(this.isTypingAhead=!0,this.typeaheadRecords=this.items.map((r,n)=>[n,r,r.typeaheadText.trim().toLowerCase()]),this.lastActiveRecord=this.typeaheadRecords.find(r=>r[Bn.ITEM].tabIndex===0)??null,this.lastActiveRecord&&(this.lastActiveRecord[Bn.ITEM].tabIndex=-1),this.typeahead(e)))}typeahead(e){if(e.defaultPrevented)return;if(clearTimeout(this.cancelTypeaheadTimeout),e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"){this.endTypeahead(),this.lastActiveRecord&&(this.lastActiveRecord[Bn.ITEM].tabIndex=-1);return}e.code==="Space"&&e.preventDefault(),this.cancelTypeaheadTimeout=setTimeout(this.endTypeahead,this.getProperties().typeaheadBufferTime),this.typaheadBuffer+=e.key.toLowerCase();const r=this.lastActiveRecord?this.lastActiveRecord[Bn.INDEX]:-1,n=this.typeaheadRecords.length,o=d=>(d[Bn.INDEX]+n-r)%n,i=this.typeaheadRecords.filter(d=>!d[Bn.ITEM].disabled&&d[Bn.TEXT].startsWith(this.typaheadBuffer)).sort((d,u)=>o(d)-o(u));if(i.length===0){clearTimeout(this.cancelTypeaheadTimeout),this.lastActiveRecord&&(this.lastActiveRecord[Bn.ITEM].tabIndex=-1),this.endTypeahead();return}const a=this.typaheadBuffer.length===1;let c;this.lastActiveRecord===i[0]&&a?c=i[1]??i[0]:c=i[0],this.lastActiveRecord&&(this.lastActiveRecord[Bn.ITEM].tabIndex=-1),this.lastActiveRecord=c,c[Bn.ITEM].tabIndex=0,c[Bn.ITEM].focus()}}/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const J3=200,eS=new Set([Fr.ArrowDown,Fr.ArrowUp,Fr.Home,Fr.End]),yie=new Set([Fr.ArrowLeft,Fr.ArrowRight,...eS]);function bie(t=document){var r;let e=t.activeElement;for(;e&&((r=e==null?void 0:e.shadowRoot)!=null&&r.activeElement);)e=e.shadowRoot.activeElement;return e}class vr extends lt{get openDirection(){return this.menuCorner.split("-")[0]==="start"?"DOWN":"UP"}get anchorElement(){return this.anchor?this.getRootNode().querySelector(`#${this.anchor}`):this.currentAnchorElement}set anchorElement(e){this.currentAnchorElement=e,this.requestUpdate("anchorElement")}constructor(){super(),this.anchor="",this.positioning="absolute",this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.typeaheadDelay=J3,this.anchorCorner=Cp.END_START,this.menuCorner=Cp.START_START,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=Ys.FIRST_ITEM,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.openCloseAnimationSignal=Wre(),this.listController=new Y3({isItem:e=>e.hasAttribute("md-menu-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.selected=!1,e.tabIndex=-1},activateItem:e=>{e.selected=!0,e.tabIndex=0},isNavigableKey:e=>{if(!this.isSubmenu)return yie.has(e);const n=getComputedStyle(this).direction==="rtl"?Fr.ArrowLeft:Fr.ArrowRight;return e===n?!0:eS.has(e)}}),this.lastFocusedElement=null,this.typeaheadController=new _ie(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=Kd(this,this.attachInternals()),this.menuPositionController=new gie(this,()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow?"move":"resize"})),this.handleFocusout=async e=>{const r=this.anchorElement;if(this.stayOpenOnFocusout||!this.open||this.pointerPath.includes(r))return;if(e.relatedTarget){if(V_(e.relatedTarget,this)||V_(e.relatedTarget,r))return}else if(this.pointerPath.includes(this))return;const n=this.skipRestoreFocus;this.skipRestoreFocus=!0,this.close(),await this.updateComplete,this.skipRestoreFocus=n},this.onOpened=async()=>{this.lastFocusedElement=bie();const e=this.items,r=_l(e);r&&this.defaultFocus!==Ys.NONE&&(r.item.tabIndex=-1);let n=!this.quick;switch(this.quick?this.dispatchEvent(new Event("opening")):n=!!await this.animateOpen(),this.defaultFocus){case Ys.FIRST_ITEM:const o=Sh(e);o&&(o.tabIndex=0,o.focus(),await o.updateComplete);break;case Ys.LAST_ITEM:const i=Q3(e);i&&(i.tabIndex=0,i.focus(),await i.updateComplete);break;case Ys.LIST_ROOT:this.focus();break;default:case Ys.NONE:break}n||this.dispatchEvent(new Event("opened"))},this.beforeClose=async()=>{var e,r;this.open=!1,this.skipRestoreFocus||(r=(e=this.lastFocusedElement)==null?void 0:e.focus)==null||r.call(e),this.quick||await this.animateClose()},this.onClosed=()=>{this.quick&&(this.dispatchEvent(new Event("closing")),this.dispatchEvent(new Event("closed")))},this.onWindowPointerdown=e=>{this.pointerPath=e.composedPath()},this.onDocumentClick=e=>{if(!this.open)return;const r=e.composedPath();!this.stayOpenOnOutsideClick&&!r.includes(this)&&!r.includes(this.anchorElement)&&(this.open=!1)},this.internals.role="menu",this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keydown",this.captureKeydown,{capture:!0}),this.addEventListener("focusout",this.handleFocusout)}get items(){return this.listController.items}willUpdate(e){if(e.has("open")){if(this.open){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}update(e){e.has("open")&&(this.open?this.setUpGlobalEventListeners():this.cleanUpGlobalEventListeners()),super.update(e)}connectedCallback(){super.connectedCallback(),this.open&&this.setUpGlobalEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpGlobalEventListeners()}render(){return this.renderSurface()}renderSurface(){return _e` +*/const X3=200,J3=new Set([Fr.ArrowDown,Fr.ArrowUp,Fr.Home,Fr.End]),_ie=new Set([Fr.ArrowLeft,Fr.ArrowRight,...J3]);function yie(t=document){var r;let e=t.activeElement;for(;e&&((r=e==null?void 0:e.shadowRoot)!=null&&r.activeElement);)e=e.shadowRoot.activeElement;return e}class vr extends lt{get openDirection(){return this.menuCorner.split("-")[0]==="start"?"DOWN":"UP"}get anchorElement(){return this.anchor?this.getRootNode().querySelector(`#${this.anchor}`):this.currentAnchorElement}set anchorElement(e){this.currentAnchorElement=e,this.requestUpdate("anchorElement")}constructor(){super(),this.anchor="",this.positioning="absolute",this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.typeaheadDelay=X3,this.anchorCorner=Cp.END_START,this.menuCorner=Cp.START_START,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=Ys.FIRST_ITEM,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.openCloseAnimationSignal=Hre(),this.listController=new K3({isItem:e=>e.hasAttribute("md-menu-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.selected=!1,e.tabIndex=-1},activateItem:e=>{e.selected=!0,e.tabIndex=0},isNavigableKey:e=>{if(!this.isSubmenu)return _ie.has(e);const n=getComputedStyle(this).direction==="rtl"?Fr.ArrowLeft:Fr.ArrowRight;return e===n?!0:J3.has(e)}}),this.lastFocusedElement=null,this.typeaheadController=new gie(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=Kd(this,this.attachInternals()),this.menuPositionController=new vie(this,()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow?"move":"resize"})),this.handleFocusout=async e=>{const r=this.anchorElement;if(this.stayOpenOnFocusout||!this.open||this.pointerPath.includes(r))return;if(e.relatedTarget){if(V_(e.relatedTarget,this)||V_(e.relatedTarget,r))return}else if(this.pointerPath.includes(this))return;const n=this.skipRestoreFocus;this.skipRestoreFocus=!0,this.close(),await this.updateComplete,this.skipRestoreFocus=n},this.onOpened=async()=>{this.lastFocusedElement=yie();const e=this.items,r=_l(e);r&&this.defaultFocus!==Ys.NONE&&(r.item.tabIndex=-1);let n=!this.quick;switch(this.quick?this.dispatchEvent(new Event("opening")):n=!!await this.animateOpen(),this.defaultFocus){case Ys.FIRST_ITEM:const o=Sh(e);o&&(o.tabIndex=0,o.focus(),await o.updateComplete);break;case Ys.LAST_ITEM:const i=G3(e);i&&(i.tabIndex=0,i.focus(),await i.updateComplete);break;case Ys.LIST_ROOT:this.focus();break;default:case Ys.NONE:break}n||this.dispatchEvent(new Event("opened"))},this.beforeClose=async()=>{var e,r;this.open=!1,this.skipRestoreFocus||(r=(e=this.lastFocusedElement)==null?void 0:e.focus)==null||r.call(e),this.quick||await this.animateClose()},this.onClosed=()=>{this.quick&&(this.dispatchEvent(new Event("closing")),this.dispatchEvent(new Event("closed")))},this.onWindowPointerdown=e=>{this.pointerPath=e.composedPath()},this.onDocumentClick=e=>{if(!this.open)return;const r=e.composedPath();!this.stayOpenOnOutsideClick&&!r.includes(this)&&!r.includes(this.anchorElement)&&(this.open=!1)},this.internals.role="menu",this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keydown",this.captureKeydown,{capture:!0}),this.addEventListener("focusout",this.handleFocusout)}get items(){return this.listController.items}willUpdate(e){if(e.has("open")){if(this.open){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}update(e){e.has("open")&&(this.open?this.setUpGlobalEventListeners():this.cleanUpGlobalEventListeners()),super.update(e)}connectedCallback(){super.connectedCallback(),this.open&&this.setUpGlobalEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpGlobalEventListeners()}render(){return this.renderSurface()}renderSurface(){return _e` - `}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,r){return e?_e`${e}`:ge}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusin(){this.focused=!0}handleFocusout(){this.focused=!1}handleInput(e){this.dirty=!0,this.value=e.target.value,this.syncValidity()}handleChange(e){this.syncValidity(),this.redispatchEvent(e)}redispatchEvent(e){wa(this,e)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return this.type==="textarea"?null:this.getInputOrTextarea()}syncValidity(){const e=this.getInputOrTextarea();this.hasCustomValidityError?e.setCustomValidity(this.internals.validationMessage):e.setCustomValidity(""),this.internals.setValidity(e.validity,e.validationMessage,this.getInputOrTextarea())}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}}Qr(pt);pt.shadowRootOptions={...lt.shadowRootOptions,delegatesFocus:!0};pt.formAssociated=!0;P([Q({type:Boolean,reflect:!0})],pt.prototype,"disabled",void 0);P([Q({type:Boolean,reflect:!0})],pt.prototype,"error",void 0);P([Q({attribute:"error-text"})],pt.prototype,"errorText",void 0);P([Q()],pt.prototype,"label",void 0);P([Q({type:Boolean,reflect:!0})],pt.prototype,"required",void 0);P([Q()],pt.prototype,"value",void 0);P([Q({attribute:"prefix-text"})],pt.prototype,"prefixText",void 0);P([Q({attribute:"suffix-text"})],pt.prototype,"suffixText",void 0);P([Q({type:Boolean,attribute:"has-leading-icon"})],pt.prototype,"hasLeadingIcon",void 0);P([Q({type:Boolean,attribute:"has-trailing-icon"})],pt.prototype,"hasTrailingIcon",void 0);P([Q({attribute:"supporting-text"})],pt.prototype,"supportingText",void 0);P([Q({attribute:"text-direction"})],pt.prototype,"textDirection",void 0);P([Q({type:Number})],pt.prototype,"rows",void 0);P([Q({reflect:!0})],pt.prototype,"inputMode",void 0);P([Q()],pt.prototype,"max",void 0);P([Q({type:Number})],pt.prototype,"maxLength",void 0);P([Q()],pt.prototype,"min",void 0);P([Q({type:Number})],pt.prototype,"minLength",void 0);P([Q()],pt.prototype,"pattern",void 0);P([Q({reflect:!0,converter:eae})],pt.prototype,"placeholder",void 0);P([Q({type:Boolean,reflect:!0})],pt.prototype,"readOnly",void 0);P([Q({type:Boolean,reflect:!0})],pt.prototype,"multiple",void 0);P([Q()],pt.prototype,"step",void 0);P([Q({reflect:!0})],pt.prototype,"type",void 0);P([Q({reflect:!0})],pt.prototype,"autocomplete",void 0);P([It()],pt.prototype,"dirty",void 0);P([It()],pt.prototype,"focused",void 0);P([It()],pt.prototype,"nativeError",void 0);P([It()],pt.prototype,"nativeErrorText",void 0);P([wt(".input")],pt.prototype,"inputOrTextarea",void 0);P([wt(".field")],pt.prototype,"field",void 0);P([Gr({slot:"leading-icon"})],pt.prototype,"leadingIcons",void 0);P([Gr({slot:"trailing-icon"})],pt.prototype,"trailingIcons",void 0);/** + `}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,r){return e?_e`${e}`:ge}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusin(){this.focused=!0}handleFocusout(){this.focused=!1}handleInput(e){this.dirty=!0,this.value=e.target.value,this.syncValidity()}handleChange(e){this.syncValidity(),this.redispatchEvent(e)}redispatchEvent(e){wa(this,e)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return this.type==="textarea"?null:this.getInputOrTextarea()}syncValidity(){const e=this.getInputOrTextarea();this.hasCustomValidityError?e.setCustomValidity(this.internals.validationMessage):e.setCustomValidity(""),this.internals.setValidity(e.validity,e.validationMessage,this.getInputOrTextarea())}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}}Qr(pt);pt.shadowRootOptions={...lt.shadowRootOptions,delegatesFocus:!0};pt.formAssociated=!0;P([Q({type:Boolean,reflect:!0})],pt.prototype,"disabled",void 0);P([Q({type:Boolean,reflect:!0})],pt.prototype,"error",void 0);P([Q({attribute:"error-text"})],pt.prototype,"errorText",void 0);P([Q()],pt.prototype,"label",void 0);P([Q({type:Boolean,reflect:!0})],pt.prototype,"required",void 0);P([Q()],pt.prototype,"value",void 0);P([Q({attribute:"prefix-text"})],pt.prototype,"prefixText",void 0);P([Q({attribute:"suffix-text"})],pt.prototype,"suffixText",void 0);P([Q({type:Boolean,attribute:"has-leading-icon"})],pt.prototype,"hasLeadingIcon",void 0);P([Q({type:Boolean,attribute:"has-trailing-icon"})],pt.prototype,"hasTrailingIcon",void 0);P([Q({attribute:"supporting-text"})],pt.prototype,"supportingText",void 0);P([Q({attribute:"text-direction"})],pt.prototype,"textDirection",void 0);P([Q({type:Number})],pt.prototype,"rows",void 0);P([Q({reflect:!0})],pt.prototype,"inputMode",void 0);P([Q()],pt.prototype,"max",void 0);P([Q({type:Number})],pt.prototype,"maxLength",void 0);P([Q()],pt.prototype,"min",void 0);P([Q({type:Number})],pt.prototype,"minLength",void 0);P([Q()],pt.prototype,"pattern",void 0);P([Q({reflect:!0,converter:Jie})],pt.prototype,"placeholder",void 0);P([Q({type:Boolean,reflect:!0})],pt.prototype,"readOnly",void 0);P([Q({type:Boolean,reflect:!0})],pt.prototype,"multiple",void 0);P([Q()],pt.prototype,"step",void 0);P([Q({reflect:!0})],pt.prototype,"type",void 0);P([Q({reflect:!0})],pt.prototype,"autocomplete",void 0);P([It()],pt.prototype,"dirty",void 0);P([It()],pt.prototype,"focused",void 0);P([It()],pt.prototype,"nativeError",void 0);P([It()],pt.prototype,"nativeErrorText",void 0);P([wt(".input")],pt.prototype,"inputOrTextarea",void 0);P([wt(".field")],pt.prototype,"field",void 0);P([Gr({slot:"leading-icon"})],pt.prototype,"leadingIcons",void 0);P([Gr({slot:"trailing-icon"})],pt.prototype,"trailingIcons",void 0);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class tae extends pt{constructor(){super(...arguments),this.fieldTag=Wr`md-filled-field`}}/** +*/class eae extends pt{constructor(){super(...arguments),this.fieldTag=Wr`md-filled-field`}}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const uS=Ve`:host{display:inline-flex;outline:none;resize:both;-webkit-tap-highlight-color:rgba(0,0,0,0)}.text-field,.field{width:100%}.text-field{display:inline-flex}.field{cursor:text}.disabled .field{cursor:default}.text-field,.textarea .field{resize:inherit}.icon{color:currentColor;display:flex;fill:currentColor}.icon ::slotted(*){display:flex}[hasstart] .icon.leading{font-size:var(--_leading-icon-size);height:var(--_leading-icon-size);width:var(--_leading-icon-size)}[hasend] .icon.trailing{font-size:var(--_trailing-icon-size);height:var(--_trailing-icon-size);width:var(--_trailing-icon-size)}.input-wrapper{display:flex}.input-wrapper>*{all:inherit;padding:0}.input{caret-color:var(--_caret-color);overflow-x:hidden;text-align:inherit}.input::placeholder{color:currentColor;opacity:1}.input::-webkit-calendar-picker-indicator{display:none}.input::-webkit-search-decoration,.input::-webkit-search-cancel-button{display:none}@media(forced-colors: active){.input{background-color:Field}}:focus-within .input{caret-color:var(--_focus-caret-color)}.error:focus-within .input{caret-color:var(--_error-focus-caret-color)}.text-field:not(.disabled) .prefix{color:var(--_input-text-prefix-color)}.text-field:not(.disabled) .suffix{color:var(--_input-text-suffix-color)}.text-field:not(.disabled) .input::placeholder{color:var(--_input-text-placeholder-color)}.prefix,.suffix{text-wrap:nowrap;width:min-content}.prefix{padding-inline-end:var(--_input-text-prefix-trailing-space)}.suffix{padding-inline-start:var(--_input-text-suffix-leading-space)}/*# sourceMappingURL=shared-styles.css.map */ + */const dS=Ve`:host{display:inline-flex;outline:none;resize:both;-webkit-tap-highlight-color:rgba(0,0,0,0)}.text-field,.field{width:100%}.text-field{display:inline-flex}.field{cursor:text}.disabled .field{cursor:default}.text-field,.textarea .field{resize:inherit}.icon{color:currentColor;display:flex;fill:currentColor}.icon ::slotted(*){display:flex}[hasstart] .icon.leading{font-size:var(--_leading-icon-size);height:var(--_leading-icon-size);width:var(--_leading-icon-size)}[hasend] .icon.trailing{font-size:var(--_trailing-icon-size);height:var(--_trailing-icon-size);width:var(--_trailing-icon-size)}.input-wrapper{display:flex}.input-wrapper>*{all:inherit;padding:0}.input{caret-color:var(--_caret-color);overflow-x:hidden;text-align:inherit}.input::placeholder{color:currentColor;opacity:1}.input::-webkit-calendar-picker-indicator{display:none}.input::-webkit-search-decoration,.input::-webkit-search-cancel-button{display:none}@media(forced-colors: active){.input{background-color:Field}}:focus-within .input{caret-color:var(--_focus-caret-color)}.error:focus-within .input{caret-color:var(--_error-focus-caret-color)}.text-field:not(.disabled) .prefix{color:var(--_input-text-prefix-color)}.text-field:not(.disabled) .suffix{color:var(--_input-text-suffix-color)}.text-field:not(.disabled) .input::placeholder{color:var(--_input-text-placeholder-color)}.prefix,.suffix{text-wrap:nowrap;width:min-content}.prefix{padding-inline-end:var(--_input-text-prefix-trailing-space)}.suffix{padding-inline-start:var(--_input-text-suffix-leading-space)}/*# sourceMappingURL=shared-styles.css.map */ `;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let iy=class extends tae{constructor(){super(...arguments),this.fieldTag=Wr`md-filled-field`}};iy.styles=[uS,Yie,Kie];iy=P([rt("md-filled-text-field")],iy);/** +*/let iy=class extends eae{constructor(){super(...arguments),this.fieldTag=Wr`md-filled-field`}};iy.styles=[dS,Kie,Qie];iy=P([rt("md-filled-text-field")],iy);/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const rae=Ve`@media(forced-colors: active){:host{--md-outlined-text-field-disabled-input-text-color: GrayText;--md-outlined-text-field-disabled-input-text-opacity: 1;--md-outlined-text-field-disabled-label-text-color: GrayText;--md-outlined-text-field-disabled-label-text-opacity: 1;--md-outlined-text-field-disabled-leading-icon-color: GrayText;--md-outlined-text-field-disabled-leading-icon-opacity: 1;--md-outlined-text-field-disabled-outline-color: GrayText;--md-outlined-text-field-disabled-outline-opacity: 1;--md-outlined-text-field-disabled-supporting-text-color: GrayText;--md-outlined-text-field-disabled-supporting-text-opacity: 1;--md-outlined-text-field-disabled-trailing-icon-color: GrayText;--md-outlined-text-field-disabled-trailing-icon-opacity: 1}}/*# sourceMappingURL=outlined-forced-colors-styles.css.map */ +*/const tae=Ve`@media(forced-colors: active){:host{--md-outlined-text-field-disabled-input-text-color: GrayText;--md-outlined-text-field-disabled-input-text-opacity: 1;--md-outlined-text-field-disabled-label-text-color: GrayText;--md-outlined-text-field-disabled-label-text-opacity: 1;--md-outlined-text-field-disabled-leading-icon-color: GrayText;--md-outlined-text-field-disabled-leading-icon-opacity: 1;--md-outlined-text-field-disabled-outline-color: GrayText;--md-outlined-text-field-disabled-outline-opacity: 1;--md-outlined-text-field-disabled-supporting-text-color: GrayText;--md-outlined-text-field-disabled-supporting-text-opacity: 1;--md-outlined-text-field-disabled-trailing-icon-color: GrayText;--md-outlined-text-field-disabled-trailing-icon-opacity: 1}}/*# sourceMappingURL=outlined-forced-colors-styles.css.map */ `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/const nae=Ve`:host{--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_container-shape: var(--md-outlined-text-field-container-shape, 4px);--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var( --md-outlined-text-field-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-outlined-text-field-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-outlined-text-field-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-outlined-text-field-container-shape-end-start, var(--_container-shape) );--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space)}/*# sourceMappingURL=outlined-styles.css.map */ +*/const rae=Ve`:host{--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_container-shape: var(--md-outlined-text-field-container-shape, 4px);--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var( --md-outlined-text-field-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-outlined-text-field-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-outlined-text-field-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-outlined-text-field-container-shape-end-start, var(--_container-shape) );--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space)}/*# sourceMappingURL=outlined-styles.css.map */ `;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/class oae extends pt{constructor(){super(...arguments),this.fieldTag=Wr`md-outlined-field`}}/** +*/class nae extends pt{constructor(){super(...arguments),this.fieldTag=Wr`md-outlined-field`}}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 -*/let ay=class extends oae{constructor(){super(...arguments),this.fieldTag=Wr`md-outlined-field`}};ay.styles=[uS,nae,rae];ay=P([rt("md-outlined-text-field")],ay);const fS=(t={})=>{const{uri:e=`${hs()}/graphql`,print:r=Rk,includeExtensions:n,headers:o,includeUnusedVariables:i=!1}=t;return new Gl(a=>{const c=Mk(a,e),d=a.getContext(),{options:u,body:f}=Lk(a,r,Pk,{http:{includeExtensions:n}},{http:d.http,options:d.fetchOptions,credentials:d.credentials,headers:{...o,...pq()}});if(f.variables&&!i){const h=new Set(Object.keys(f.variables));zo(a.query,{Variable(m,y,v){v&&v.kind!=="VariableDefinition"&&h.delete(m.name.value)}}),h.size&&(f.variables={...f.variables},h.forEach(m=>{delete f.variables[m]}))}let g;if(!u.signal){const{controller:h,signal:m}=XF();g=h,g&&(u.signal=m)}let _="";try{_=ip(f,"Payload"),console.info(`[request] ${_}`)}catch(h){return console.error(h),qf(h)}const b=localStorage.getItem("auth_token")??"";return new Wt(h=>{(async()=>{const y=performance.now(),v=Pb(b);u.body=xb(qd(v,_));const x=performance.now();return Promise.race([fetch(c,u),new Promise((E,T)=>setTimeout(()=>T(new Error("connection_timeout")),1e4))]).then(async E=>{if(E.status!==403)if(E.status===401)localStorage.removeItem("auth_token"),window.location.reload();else{const T=await E.arrayBuffer(),C=performance.now(),A=BC(v,Sq(T)),L=performance.now();console.info(`[response] ${A}`),console.info(`[time] encrypt: ${x-y}ms, api: ${C-x}ms, decrypt: ${L-C}ms`),E.text=async()=>A}return a.setContext({response:E}),E}).then(Ok(a)).then(E=>(h.next(E),h.complete(),E)).catch(E=>{E.name!=="AbortError"&&(E.result&&E.result.errors&&E.result.data&&h.next(E.result),h.error(E))}),()=>{g&&g.abort()}})()})})},cT=new sC({link:fS(),cache:new nC({typePolicies:{File:{keyFields:["path"]},ChatItem:{fields:{_content:{read(t,{readField:e}){return JSON.parse(e("content"))}}}}}}),defaultOptions:{watchQuery:{errorPolicy:"all",fetchPolicy:"cache-and-network"}}}),iae=new sC({link:fS({headers:{"x-box-api":!0}}),cache:new nC({typePolicies:{WireGuardPeer:{keyFields:["publicKey"]}}}),defaultOptions:{watchQuery:{errorPolicy:"all",fetchPolicy:"cache-and-network"}}}),aae={a:cT,b:iae,default:cT},Ap="__vue_click_away_down__",Sp="__vue_click_away_up__",pS=(t,e,r)=>{hS(t);let n;const o=r.context,i=e.value;t[Ap]=a=>{n=a.target},t[Sp]=a=>{if(n===a.target&&(!t||!t.contains(a.target))&&i&&typeof i=="function")return i.call(o,a)},document.addEventListener("mousedown",t[Ap],!1),document.addEventListener("mouseup",t[Sp],!1)},hS=t=>{document.removeEventListener("mousedown",t[Ap],!1),document.removeEventListener("mouseup",t[Sp],!1),delete t[Ap],delete t[Sp]},sae=(t,e,r)=>{e.value!==e.oldValue&&pS(t,e,r)},lae={install:t=>{t.directive("click-away",cae)}},cae={mounted:pS,updated:sae,unmounted:hS},dae={install:t=>{t.directive("tooltip",uae)}},uae={updated:(t,e)=>{t.tooltipText=e.value},mounted:(t,e)=>{let r,n=null;function o(){n=document.createElement("div"),n.className="tooltip",n.textContent=t.tooltipText||e.value,document.body.appendChild(n),n&&(n.style.position="absolute",n.style.visibility="hidden")}function i(){n||o();const a=t.getBoundingClientRect();if(n){const c=n.getBoundingClientRect();n.style.top=a.bottom+8+"px",n.style.left=a.left-Math.abs(a.width-c.width)/2+"px",n.style.visibility="visible"}}t.mouseenterFunc=()=>{r=setTimeout(i,600)},t.addEventListener("mouseenter",t.mouseenterFunc),t.mouseleaveFunc=()=>{clearTimeout(r),n&&(document.body.removeChild(n),n=null)},t.tagName==="BUTTON"&&t.addEventListener("click",t.mouseleaveFunc),t.addEventListener("mouseleave",t.mouseleaveFunc)},unmounted:t=>{t.mouseleaveFunc(),t.removeEventListener("mouseenter",t.mouseenterFunc),t.tagName==="BUTTON"&&t.removeEventListener("click",t.mouseleaveFunc),t.removeEventListener("mouseleave",t.mouseleaveFunc)}},fae={app_name:"PlainApp",troubleshoot:"Troubleshoot",fix_disconnect_tips:"If the connection keeps dropping, try keeping your phone screen awake or plugging the USB adapter into a power outlet.",fetch_content_automatically:"Fetch content automatically",call:"Call",call_phone:"Call phone",web_socket_reconnecting:"WebSocket is reconnecting...",device_info:"Device info",basic_info:"Basic info",device_name:"Device name",model:"Model",device:"Device",board:"Board",hardware:"Hardware",brand:"Brand",build_fingerprint:"Build fingerprint",system:"System",android_version:"Android version",security_patch:"Security patch",bootloader:"Bootloader",build_number:"Build number",baseband:"Baseband",kernel:"Kernel",java_vm:"Java VM",opengl_es:"OpenGL ES",uptime:"Uptime",battery:"Battery",health:"Health",level:"Level",remaining:"Remaining",power_source:"Power source",technology:"Technology",temperature:"Temperature",voltage:"Voltage",capacity:"Capacity",battery_health:{1:"Unknown",2:"Good",3:"Overheat",4:"Dead",5:"Over voltage",6:"Unspecified failure",7:"Cold"},battery_status:{1:"Unknown",2:"Charging",3:"Discharging",4:"Not charging",5:"Full"},battery_plugged:{0:"Battery",1:"AC",2:"USB",3:"Wireless"},grant_permission:"Grant permission",desktop_notification_permission_not_granted:"Desktop notification permission is not granted.",desktop_notification_permission_grant_title:"Grant permission for desktop notifications",desktop_notification_permission_grant_message:`1. Click the padlock icon in the address bar. +*/let ay=class extends nae{constructor(){super(...arguments),this.fieldTag=Wr`md-outlined-field`}};ay.styles=[dS,rae,tae];ay=P([rt("md-outlined-text-field")],ay);const uS=(t={})=>{const{uri:e=`${hs()}/graphql`,print:r=Pk,includeExtensions:n,headers:o,includeUnusedVariables:i=!1}=t;return new Gl(a=>{const c=Lk(a,e),d=a.getContext(),{options:u,body:f}=Rk(a,r,Ok,{http:{includeExtensions:n}},{http:d.http,options:d.fetchOptions,credentials:d.credentials,headers:{...o,...fq()}});if(f.variables&&!i){const h=new Set(Object.keys(f.variables));zo(a.query,{Variable(m,y,v){v&&v.kind!=="VariableDefinition"&&h.delete(m.name.value)}}),h.size&&(f.variables={...f.variables},h.forEach(m=>{delete f.variables[m]}))}let g;if(!u.signal){const{controller:h,signal:m}=ZF();g=h,g&&(u.signal=m)}let _="";try{_=ip(f,"Payload"),console.info(`[request] ${_}`)}catch(h){return console.error(h),qf(h)}const b=localStorage.getItem("auth_token")??"";return new Wt(h=>{(async()=>{const y=performance.now(),v=Pb(b);u.body=xb(qd(v,_));const x=performance.now();return Promise.race([fetch(c,u),new Promise((E,T)=>setTimeout(()=>T(new Error("connection_timeout")),1e4))]).then(async E=>{if(E.status!==403)if(E.status===401)localStorage.removeItem("auth_token"),window.location.reload();else{const T=await E.arrayBuffer(),C=performance.now(),A=qC(v,Aq(T)),L=performance.now();console.info(`[response] ${A}`),console.info(`[time] encrypt: ${x-y}ms, api: ${C-x}ms, decrypt: ${L-C}ms`),E.text=async()=>A}return a.setContext({response:E}),E}).then($k(a)).then(E=>(h.next(E),h.complete(),E)).catch(E=>{E.name!=="AbortError"&&(E.result&&E.result.errors&&E.result.data&&h.next(E.result),h.error(E))}),()=>{g&&g.abort()}})()})})},cT=new aC({link:uS(),cache:new rC({typePolicies:{File:{keyFields:["path"]},ChatItem:{fields:{_content:{read(t,{readField:e}){return JSON.parse(e("content"))}}}}}}),defaultOptions:{watchQuery:{errorPolicy:"all",fetchPolicy:"cache-and-network"}}}),oae=new aC({link:uS({headers:{"x-box-api":!0}}),cache:new rC({typePolicies:{WireGuardPeer:{keyFields:["publicKey"]}}}),defaultOptions:{watchQuery:{errorPolicy:"all",fetchPolicy:"cache-and-network"}}}),iae={a:cT,b:oae,default:cT},Ap="__vue_click_away_down__",Sp="__vue_click_away_up__",fS=(t,e,r)=>{pS(t);let n;const o=r.context,i=e.value;t[Ap]=a=>{n=a.target},t[Sp]=a=>{if(n===a.target&&(!t||!t.contains(a.target))&&i&&typeof i=="function")return i.call(o,a)},document.addEventListener("mousedown",t[Ap],!1),document.addEventListener("mouseup",t[Sp],!1)},pS=t=>{document.removeEventListener("mousedown",t[Ap],!1),document.removeEventListener("mouseup",t[Sp],!1),delete t[Ap],delete t[Sp]},aae=(t,e,r)=>{e.value!==e.oldValue&&fS(t,e,r)},sae={install:t=>{t.directive("click-away",lae)}},lae={mounted:fS,updated:aae,unmounted:pS},cae={install:t=>{t.directive("tooltip",dae)}},dae={updated:(t,e)=>{t.tooltipText=e.value},mounted:(t,e)=>{let r,n=null;function o(){n=document.createElement("div"),n.className="tooltip",n.textContent=t.tooltipText||e.value,document.body.appendChild(n),n&&(n.style.position="absolute",n.style.visibility="hidden")}function i(){n||o();const a=t.getBoundingClientRect();if(n){const c=n.getBoundingClientRect();n.style.top=a.bottom+8+"px",n.style.left=a.left-Math.abs(a.width-c.width)/2+"px",n.style.visibility="visible"}}t.mouseenterFunc=()=>{r=setTimeout(i,600)},t.addEventListener("mouseenter",t.mouseenterFunc),t.mouseleaveFunc=()=>{clearTimeout(r),n&&(document.body.removeChild(n),n=null)},t.tagName==="BUTTON"&&t.addEventListener("click",t.mouseleaveFunc),t.addEventListener("mouseleave",t.mouseleaveFunc)},unmounted:t=>{t.mouseleaveFunc(),t.removeEventListener("mouseenter",t.mouseenterFunc),t.tagName==="BUTTON"&&t.removeEventListener("click",t.mouseleaveFunc),t.removeEventListener("mouseleave",t.mouseleaveFunc)}},uae={app_name:"PlainApp",troubleshoot:"Troubleshoot",fix_disconnect_tips:"If the connection keeps dropping, try keeping your phone screen awake or plugging the USB adapter into a power outlet.",fetch_content_automatically:"Fetch content automatically",call:"Call",call_phone:"Call phone",web_socket_reconnecting:"WebSocket is reconnecting...",device_info:"Device info",basic_info:"Basic info",device_name:"Device name",model:"Model",device:"Device",board:"Board",hardware:"Hardware",brand:"Brand",build_fingerprint:"Build fingerprint",system:"System",android_version:"Android version",security_patch:"Security patch",bootloader:"Bootloader",build_number:"Build number",baseband:"Baseband",kernel:"Kernel",java_vm:"Java VM",opengl_es:"OpenGL ES",uptime:"Uptime",battery:"Battery",health:"Health",level:"Level",remaining:"Remaining",power_source:"Power source",technology:"Technology",temperature:"Temperature",voltage:"Voltage",capacity:"Capacity",battery_health:{1:"Unknown",2:"Good",3:"Overheat",4:"Dead",5:"Over voltage",6:"Unspecified failure",7:"Cold"},battery_status:{1:"Unknown",2:"Charging",3:"Discharging",4:"Not charging",5:"Full"},battery_plugged:{0:"Battery",1:"AC",2:"USB",3:"Wireless"},grant_permission:"Grant permission",desktop_notification_permission_not_granted:"Desktop notification permission is not granted.",desktop_notification_permission_grant_title:"Grant permission for desktop notifications",desktop_notification_permission_grant_message:`1. Click the padlock icon in the address bar. 2. Open "Site settings" or "Permissions." 3. Find "Notifications" and change it to "Allow."`,sort:"Sort",sort_by:{date_asc:"Oldest date first",date_desc:"Newest date first",size_asc:"Smallest first",size_desc:"Largest first",name_asc:"Name (A to Z)",name_desc:"Name (Z to A)"},print:"Print",cancel:"Cancel",ok:"OK",connection_timeout:"Connection is timeout",save:"Save",saving:"Saving",saved:"Saved",status:"Status",enabled:"Enabled",updated:"Updated",enable:"Enable",deleted:"Deleted",create:"Create",listening_port:"Listening port",edit:"Edit",delete:"Delete",actions:"Actions",running:"Running",stopped:"Stopped",basic:"Basic",name:"Name",address:"Address",yes:"Yes",no:"No",my_phone:"My phone",me:"Me",password:"Password",chat_input_hint:"What is in your mind?",release_to_send_file:"Release to send the file",confirm_to_delete_name:'Confirm to delete "{name}"?',confirm_to_delete:"Confirm to delete?",valid:{string_min:"At least {min} characters",required:"This field is required"},theme:{title:"Theme",system:"System default",light:"Light",dark:"Dark"},language:{title:"Language",system:"System default"},exchange:{data_date:"Date"},education:{memorize_words:"Memorize words"},log_in:"Log in",logging_in:"Logging in",login:{to_continue:"Tap the Accept button on your phone to continue.",failed:"Login failed, please make sure your phone is not in sleep mode.",rejected:"Login request is rejected.",invalid_password:"Wrong password."},failed_connect_ws:"Failed to connect to WebSocket. Please relaunch the app and try again.",header_actions:{language:"Change language",theme:"Change theme",tasks:"Tasks",audios:"Audio",logout:"Logout",notifications:"Notifications"},page_title:{home:"Home",wireguard:"WireGuard",network:"Network",wifi:"Wi-Fi",rules:"Rules",routes:"Routes",devices:"Devices",messages:"Messages",contacts:"Contacts",calls:"Calls",apps:"Apps",files:"Files",audios:"Audio",videos:"Videos",images:"Images",books:"Books",feeds:"Feeds",notes:"Notes",json_viewer:"JSON viewer",qrcode_generator:"QrCode generator",trash:"Trash",aichats:"ChatGPT",screen_mirror:"Screen mirror",device_info:"Device info"},wireguard:{},wifi:{ssid:"Name",hide_ssid:"Hide network"},manufacturer:"Manufacturer",mac_address:"MAC address",ip_address:"IP address",online:"Online",offline:"Offline",unknown:"Unknown",created_at:"Created at",updated_at:"Updated at",active_at:"Active at",rename:"Rename",apply_to:"Apply to",direction:"Direction",match:"Match",inbound:"Inbound",outbound:"Outbound",target_type:{ip:"IP address",net:"Subnet",dns:"Domain",remote_port:"Remote port",internet:"Internet",iface:"Local network",list:"Target list"},all_devices:"All devices",network:"Network",allow:"Allow",block:"Block",description:"Description",notes:"Notes",rule_inbound:"{action} traffic from {target}",rule_outbound:"{action} traffic to {target}",for_example:"e.g.",invalid_value:"Invalid value",space:" ",remote_port:"remote port {port}",all_local_networks:"All local networks",examples_ip:`Examples 10.10.10.2 @@ -2998,7 +2998,7 @@ example.com:80,443–453`,examples_remote_port:`Examples 1419 1001–1024`,route_description:"Route traffic to {target} via {if_name}",traffic_to:"Traffic to",route_via:"Route to",delete_message:"Delete message",social:"Social",messages:"Messages",contacts:"Contacts",calls:"Calls",storage:"Storage",files:"Files",music:"Music",videos:"Videos",images:"Images",audios:"Audio",content:"Content",from:"From",type:"Type",time:"Time",message_type:{1:"Inbox",2:"Sent",3:"Drafts",4:"Outbox",inbox:"Inbox",sent:"Sent",outbox:"Outbox",drafts:"Draft"},artist:"Artist",sms_address:"Address",phone_numbers:"Phone numbers",telephone:"Telephone",custom:"Custom",website:"Website",email:"Email",phone_number:"Phone number",add_field:"Add field",im:"IM",contact:{phone_number_type:{1:"Home",2:"Mobile",3:"Work",4:"Work fax",5:"Home fax",6:"Pager",7:"Other",8:"Callback",9:"Car",10:"Company main",11:"ISDN",12:"Main",13:"Other fax",14:"Radio",15:"Telex",16:"TTY TDD",17:"Work mobile",18:"Work pager",19:"Assistant",20:"MMS"},email_type:{1:"Home",2:"Work",3:"Other",4:"Mobile"},address_type:{1:"Home",2:"Work",3:"Other"},event_type:{1:"Anniversary",2:"Other",3:"Birthday"},im_type:{0:"AIM",1:"Windows Live",2:"Yahoo",3:"Skype",4:"QQ",5:"Hangouts",6:"ICQ",7:"Jabber",8:"NetMeeting"},website_type:{1:"Homepage",2:"Blog",3:"Profile",4:"Home",5:"Work",6:"FTP",7:"Other"}},call_type:{1:"Incoming",2:"Outgoing",3:"Missed",4:"Voicemail",5:"Rejected",6:"Blocked",incoming:"Incoming",outgoing:"Outgoing",missed:"Missed"},app_type:{user:"User",system:"System"},first_name:"First name",last_name:"Last name",middle_name:"Middle name",prefix:"Prefix",suffix:"Suffix",browser_warning:"Suggest to use the lastest version of Chrome web browser",no_permission:'No permission. Please go to APP > "Web on PC" to enable the permissions and refresh the page.',no_data:"No data.",loading:"Loading...",duration:"Duration",started_at:"Started at",phone_geo:"GEO",avatar:"Avatar",phone_isp_type:{1:"China mobile",2:"China unicom",3:"China telecom",4:"China uicom virtual",5:"China telecom virtual",6:"China mobile virtual"},storage_free_total:"{free} available of {total}",current_path:"Current path",create_folder:"Create folder",upload_files:"Upload files",upload_folder:"Upload folder",preview:"Preview",view:"View",upload:"Upload",download:"Download",copy:"Copy",paste:"Paste",cut:"Cut",duplicate:"Duplicate",properties:"Properties",show_hidden:"Show hidden",select_mode:"Select mode",modified_at:"Modified at",file_size:"File size",path:"Path",open:"Open",box_is_null:"Please select a box in the app and try again",battery_left:"Battery {percentage}%",invalid_file_signature:"Invalid file signature",no_task:"No task",upload_status:{created:"Waiting",pending:"Uploading",saving:"Saving",done:"Uploaded",error:"Upload failed"},load_failed:"Load {name} failed",network_error:"Network error, can not connnect to the API",web_access_disabled:'Web access is currently disabled. Please open the PlainApp > top right 💻 icon > "Web on PC" page and tap "Enable" switch.',play:"Play",add_to_playlist:"Add to playlist",added_to_playlist:"Added to playlist!",select_first:"Select first!",search_hint:"Search…",keywords:"Keywords",search:"Search",tags:"Tags",add_to_tags:"Add to tags",remove_from_tags:"Remove from tags",delete_files:"Delete files",clear_list:"Clear list",select_tags:"Select tags",tools:"Tools",json_viewer:"JSON viewer",qrcode_generator:"QrCode generator",title:"Title",restore:"Restore",trash:"Trash",move_to_trash:"Move to trash",work:"Work",expand_all:"Expand all",collapse_all:"Collapse all",all:"All",manage:"Manage",subscriptions:"Subscriptions",published_at:"Published at",source:"Source",view_original_article:"View original article",add:"Add",add_tag:"Add tag",add_subscription:"Add subscription",import_opml_file:"Import OPML file",export_opml_file:"Export OPML file",rss_url:"RSS URL",imported:"Imported",update_subscription:"Update subscription",sync_feeds:"Sync feeds",sync_content:"Sync content",feeds_synced:"Feeds synced",syncing:"Syncing...",meta_no_title:"[No title]",no_content:"[No content]",confirm:"Confirm",upload_audios:"You can upload in Music folder or other folder.",upload_videos:"You can upload in Videos folder or other folder.",upload_images:"You can upload in Pictures folder or other folder.",no_files:"No files",view_origin_image:"View origin image",new_chat:"New chat",ai:"AI",config:"Config",api_key:"API key",apps:"Apps",version:"Version",size:"Size",recents:"Recents",internal_storage:"Internal storage",sdcard:"SD card",recent_files:"Recent files",installed_at:"Installed at",screen_mirror:"Screen mirror",try_again:"Try again",stop_mirror:"Stop mirror",fullscreen:"Fullscreen",deleting:"Deleting…",uninstalling:"Uninstalling…",uninstall:"Uninstall",install:"Install",sending:"Sending…",usb_storage:"USB storage",folders:"Folders",color:"Color",make_a_phone_call:"make a phone call",view_as_list:"View as list",view_as_grid:"View as grid",pause:"Pause",playlist:"Playlist",no_api_key:"No api key",refresh:"Refresh",info:"Info",zoom_in:"Zoom in",zoom_out:"Zoom out",resize:"Resize",rotate_left:"Rotate left",rotate_right:"Rotate right",close:"Close",close_other_tabs:"Close other tabs",close_tabs_to_the_right:"Close tabs to the right",relaunch_app:"Relaunch app",all_items_on_this_page_are_selected:"All {count} items on this page are selected.",all_items_are_selected:"All {count} items are selected.",select_all_items:"Select all {count} items",clear_selection:"Clear selection",screen_mirror_request_permission_failed:"You haven't grant PlainApp the permission to take screenshots.",screen_mirror_request_permission:`Please tap "Start now" on the phone. If the permission window is not displayed, please relaunch PlainApp. -Try again in {seconds} seconds`},pae={app_name:"简朴",troubleshoot:"故障排除",fix_disconnect_tips:"如果连接频繁断开,请尝试保持手机屏幕亮起或将 USB 适配器插入电源插座。",fetch_content_automatically:"自动拉取正文内容",call:"呼叫",call_phone:"打电话",web_socket_reconnecting:"WebSocket 正在重连中...",device_info:"设备信息",basic_info:"基本信息",device_name:"设备名称",model:"型号",device:"设备",board:"主板",hardware:"硬件",brand:"品牌",build_fingerprint:"构建指纹",system:"系统",android_version:"Android 版本",security_patch:"安全补丁",bootloader:"引导程序",build_number:"构建编号",baseband:"基带",kernel:"内核",java_vm:"Java 虚拟机",opengl_es:"OpenGL ES",uptime:"运行时间",battery:"电池",health:"健康",level:"电量",remaining:"剩余",power_source:"电源",technology:"技术",temperature:"温度",voltage:"电压",capacity:"容量",battery_health:{1:"未知",2:"良好",3:"过热",4:"失效",5:"过电压",6:"未指定故障",7:"寒冷"},battery_status:{1:"未知",2:"充电中",3:"放电中",4:"未充电",5:"充满"},battery_plugged:{0:"电池",1:"交流电",2:"USB",3:"无线"},grant_permission:"授权",desktop_notification_permission_not_granted:"未授予桌面通知权限。",desktop_notification_permission_grant_title:"授予桌面通知权限",desktop_notification_permission_grant_message:`1. 点击地址栏中的挂锁图标。 +Try again in {seconds} seconds`},fae={app_name:"简朴",troubleshoot:"故障排除",fix_disconnect_tips:"如果连接频繁断开,请尝试保持手机屏幕亮起或将 USB 适配器插入电源插座。",fetch_content_automatically:"自动拉取正文内容",call:"呼叫",call_phone:"打电话",web_socket_reconnecting:"WebSocket 正在重连中...",device_info:"设备信息",basic_info:"基本信息",device_name:"设备名称",model:"型号",device:"设备",board:"主板",hardware:"硬件",brand:"品牌",build_fingerprint:"构建指纹",system:"系统",android_version:"Android 版本",security_patch:"安全补丁",bootloader:"引导程序",build_number:"构建编号",baseband:"基带",kernel:"内核",java_vm:"Java 虚拟机",opengl_es:"OpenGL ES",uptime:"运行时间",battery:"电池",health:"健康",level:"电量",remaining:"剩余",power_source:"电源",technology:"技术",temperature:"温度",voltage:"电压",capacity:"容量",battery_health:{1:"未知",2:"良好",3:"过热",4:"失效",5:"过电压",6:"未指定故障",7:"寒冷"},battery_status:{1:"未知",2:"充电中",3:"放电中",4:"未充电",5:"充满"},battery_plugged:{0:"电池",1:"交流电",2:"USB",3:"无线"},grant_permission:"授权",desktop_notification_permission_not_granted:"未授予桌面通知权限。",desktop_notification_permission_grant_title:"授予桌面通知权限",desktop_notification_permission_grant_message:`1. 点击地址栏中的挂锁图标。 2. 打开“站点设置”或“权限”。 3. 找到“通知”并将其更改为“允许”。`,sort:"排序",sort_by:{date_asc:"最旧日期优先",date_desc:"最新日期优先",size_asc:"最小优先",size_desc:"最大优先",name_asc:"名称(从A到Z)",name_desc:"名称(从Z到A)"},print:"打印",cancel:"取消",ok:"好的",connection_timeout:"连接超时",save:"保存",saving:"保存中",saved:"已保存",status:"状态",enabled:"启用",updated:"已更新",enable:"启用",deleted:"已删除",create:"创建",listening_port:"监听端口",edit:"编辑",delete:"删除",actions:"操作",running:"运行中",stopped:"停止",basic:"基本",name:"名称",address:"地址",yes:"是",no:"否",my_phone:"我的手机",me:"我",password:"密码",chat_input_hint:"您想说什么?",release_to_send_file:"松手以发送文件",confirm_to_delete_name:'确认删除"{name}"?',confirm_to_delete:"确认删除?",valid:{string_min:"至少{min}个字符",required:"字段必填"},theme:{title:"主题",system:"系统默认",light:"浅色",dark:"黑暗"},language:{title:"语言",system:"系统默认"},exchange:{data_date:"日期"},education:{memorize_words:"记单词"},log_in:"登录",logging_in:"登录中",login:{to_continue:"请在手机上点击允许按钮才能继续操作。",failed:"登录失败,请确认手机没有进入休眠模式。",rejected:"登录请求被拒绝。",invalid_password:"密码错误。"},failed_connect_ws:"无法连接到WebSocket。请重新启动应用程序并重试。",header_actions:{language:"更改语言",theme:"更改主题",tasks:"任务列表",audios:"音频",logout:"退出登录",notifications:"通知"},page_title:{home:"首页",wireguard:"WireGuard",network:"网络配置",wifi:"无线网络",rules:"网络规则",routes:"网络路由",devices:"网络设备",messages:"短信",contacts:"联系人",calls:"通话记录",apps:"应用",files:"文件",audios:"音频",videos:"视频",images:"图片",books:"书籍",feeds:"订阅",notes:"笔记",json_viewer:"JSON查看器",qrcode_generator:"二维码生成器",trash:"回收站",aichats:"ChatGPT",screen_mirror:"屏幕镜像",device_info:"设备信息"},wireguard:{},wifi:{ssid:"名称",hide_ssid:"隐藏网络不被发现"},manufacturer:"厂商",mac_address:"MAC地址",ip_address:"IP地址",online:"在线",offline:"离线",unknown:"未知",created_at:"创建时间",updated_at:"更新时间",active_at:"活跃时间",rename:"重命名",apply_to:"应用于",direction:"方向",match:"匹配",inbound:"进来",outbound:"出去",target_type:{ip:"IP地址",net:"子网",dns:"域名",remote_port:"远程端口",internet:"互联网",iface:"本地网络",list:"目标列表"},all_devices:"所有设备",network:"网络",allow:"允许",block:"阻止",description:"描述",notes:"备注",rule_inbound:"{action}来自{target}的流量",rule_outbound:"{action}访问{target}",for_example:"示例",invalid_value:"输入有误",space:"",remote_port:"远程端口{port}",all_local_networks:"所有本地网络",examples_ip:`示例 10.10.10.2 @@ -3015,7 +3015,7 @@ example.com:80,443–453`,examples_remote_port:`示例 1419 1001–1024`,route_description:"发往{target}的流量经过{if_name}",traffic_to:"流量发往",route_via:"路由通过",delete_message:"删除消息",social:"社交",messages:"短信",contacts:"联系人",calls:"通话记录",storage:"存储",files:"文件",music:"音乐",videos:"视频",images:"图片",audios:"音频",content:"内容",from:"来自",type:"类型",time:"时间",message_type:{1:"收件箱",2:"已发送",3:"草稿箱",4:"发件箱",inbox:"收件箱",sent:"已发送",outbox:"发件箱",drafts:"草稿箱"},artist:"艺术家",sms_address:"号码",phone_numbers:"电话号码",telephone:"电话",custom:"自定义",website:"网站",email:"Email",phone_number:"电话号码",add_field:"添加更多项",im:"聊天工具",contact:{phone_number_type:{1:"住宅",2:"手机",3:"单位",4:"单位传真",5:"住宅传真",6:"寻呼机",7:"其他",8:"回拨号码",9:"车载电话",10:"公司总机",11:"ISDN",12:"总机",13:"其他传真",14:"无线装置",15:"电报",16:"TTY TDD",17:"单位手机",18:"单位寻呼机",19:"助理",20:"彩信"},email_type:{1:"个人",2:"工作",3:"其他",4:"手机"},address_type:{1:"住宅",2:"单位",3:"其他"},event_type:{1:"周年纪念日",2:"其他",3:"生日"},im_type:{0:"AIM",1:"Windows Live",2:"雅虎",3:"Skype",4:"QQ",5:"环聊",6:"ICQ",7:"Jabber",8:"NetMeeting"},website_type:{1:"首页",2:"博客",3:"主页",4:"个人",5:"工作",6:"FTP",7:"其他"}},call_type:{1:"呼入",2:"呼出",3:"未接",4:"语音信箱",5:"拒接",6:"已屏蔽",incoming:"呼入",outgoing:"呼出",missed:"未接"},app_type:{user:"用户",system:"系统"},first_name:"名字",last_name:"姓氏",middle_name:"中间名",prefix:"名称前缀",suffix:"名称后缀",browser_warning:"推荐使用最新版的Chrome浏览器",no_permission:'没有权限,请到手机应用 > "电脑浏览器访问"里面打开权限并刷新页面重试。',no_data:"没有数据。",loading:"加载中...",duration:"时长",started_at:"开始时间",phone_geo:"归属地",avatar:"头像",phone_isp_type:{1:"中国移动",2:"中国联通",3:"中国电信",4:"中国联通虚拟运营商",5:"中国电信虚拟运营商",6:"中国移动虚拟运营商"},storage_free_total:"剩余{free} 共{total}",current_path:"当前路径",create_folder:"创建目录",upload_files:"上传文件",upload_folder:"上传目录",preview:"预览",view:"查看",upload:"上传",download:"下载",copy:"复制",paste:"粘贴",cut:"剪切",duplicate:"创建副本",properties:"属性",show_hidden:"显示隐藏项",select_mode:"选择模式",modified_at:"修改时间",file_size:"文件大小",path:"路径",open:"打开",box_is_null:"请在应用中选择一个盒子再重试",battery_left:"电量{percentage}%",invalid_file_signature:"文件签名不一致",no_task:"暂无任务",upload_status:{created:"等待中",pending:"上传中",saving:"保存中",done:"已上传",error:"上传失败"},load_failed:"加载{name}失败",network_error:"网络异常,无法连接API",web_access_disabled:'Web访问当前已禁用。请打开PlainApp > 右上角 💻 图标 > "电脑浏览器访问"页面,并点击"启用"开关。',play:"播放",add_to_playlist:"加入播放列表",added_to_playlist:"已加入播放列表!",select_first:"请先选择!",search_hint:"搜索…",keywords:"关键字",search:"搜索",tags:"标签",add_to_tags:"添加到标签",remove_from_tags:"移除标签",delete_files:"删除文件",clear_list:"清空列表",select_tags:"选择标签",tools:"工具",json_viewer:"JSON查看器",qrcode_generator:"二维码生成器",title:"标题",restore:"恢复",trash:"回收站",move_to_trash:"移到回收站",work:"工作",expand_all:"展开全部",collapse_all:"合并全部",all:"全部",manage:"管理",subscriptions:"订阅源",published_at:"发布时间",source:"来源",view_original_article:"查看原文",add:"添加",add_tag:"添加标签",add_subscription:"添加订阅",import_opml_file:"导入OPML文件",export_opml_file:"导出OPML文件",rss_url:"RSS地址",imported:"已导入",update_subscription:"更新订阅",sync_feeds:"同步订阅",sync_content:"同步正文内容",feeds_synced:"订阅已同步",syncing:"同步中...",meta_no_title:"[没有标题]",no_content:"[没有内容]",confirm:"确认",upload_audios:"您可以上传音频到Music目录或者其他目录下。",upload_videos:"您可以上传音频到Movies目录或者其他目录下。",upload_images:"您可以上传音频到Pictures目录或者其他目录下。",no_files:"没有文件",view_origin_image:"查看原图",new_chat:"创建会话",ai:"人工智能",config:"配置",api_key:"API密钥",apps:"应用",version:"版本",size:"大小",recents:"最近",internal_storage:"内部存储",sdcard:"存储卡",recent_files:"最近访问",installed_at:"安装时间",screen_mirror:"屏幕镜像",try_again:"重试",stop_mirror:"停止镜像",fullscreen:"全屏显示",deleting:"删除中",uninstalling:"卸载中…",uninstall:"卸载",install:"安装",sending:"发送中…",usb_storage:"USB存储",folders:"文件夹",color:"颜色",make_a_phone_call:"打电话",view_as_list:"列表视图",view_as_grid:"网格视图",pause:"暂停",playlist:"播放列表",no_api_key:"缺少 API 密钥",refresh:"刷新",info:"信息",zoom_in:"放大",zoom_out:"缩小",resize:"调整大小",rotate_left:"左旋转",rotate_right:"右旋转",close:"关闭",close_other_tabs:"关闭其他标签页",close_tabs_to_the_right:"关闭右侧标签页",relaunch_app:"重启应用",all_items_on_this_page_are_selected:"已选择此页面上{count}项。",all_items_are_selected:"已选择全部{count}项。",select_all_items:"选择所有{count}项",clear_selection:"清除选择",screen_mirror_request_permission_failed:"您还没有授权简朴截屏的权限。",screen_mirror_request_permission:`请在手机上点击“现在开始”按钮。 如果权限窗口未显示,请重新启动简朴。 -请在{seconds}秒后再试。`},hae={app_name:"簡樸",troubleshoot:"故障排除",fix_disconnect_tips:"如果連線频繁斷開,請嘗試保持手機螢幕亮起或將 USB 適配器插入電源插座。",fetch_content_automatically:"自動拉取正文內容",call:"呼叫",call_phone:"打電話",web_socket_reconnecting:"WebSocket 正在重連中...",device_info:"設備信息",basic_info:"基本信息",device_name:"設備名稱",model:"型號",device:"設備",board:"主板",hardware:"硬件",brand:"品牌",build_fingerprint:"構建指紋",system:"系統",android_version:"Android 版本",security_patch:"安全補丁",bootloader:"引導程序",build_number:"構建編號",baseband:"基帶",kernel:"內核",java_vm:"Java 虛擬機",opengl_es:"OpenGL ES",uptime:"運行時間",battery:"電池",health:"健康",level:"電量",remaining:"剩餘",power_source:"電源",technology:"技術",temperature:"溫度",voltage:"電壓",capacity:"容量",battery_health:{1:"未知",2:"良好",3:"過熱",4:"失效",5:"過電壓",6:"未指定故障",7:"寒冷"},battery_status:{1:"未知",2:"充電中",3:"放電中",4:"未充電",5:"充滿"},battery_plugged:{0:"電池",1:"交流電",2:"USB",3:"無線"},grant_permission:"授權",desktop_notification_permission_not_granted:"未授予桌面通知權限。",desktop_notification_permission_grant_title:"授予桌面通知權限",desktop_notification_permission_grant_message:`1. 點擊地址欄中的掛鎖圖標。 +请在{seconds}秒后再试。`},pae={app_name:"簡樸",troubleshoot:"故障排除",fix_disconnect_tips:"如果連線频繁斷開,請嘗試保持手機螢幕亮起或將 USB 適配器插入電源插座。",fetch_content_automatically:"自動拉取正文內容",call:"呼叫",call_phone:"打電話",web_socket_reconnecting:"WebSocket 正在重連中...",device_info:"設備信息",basic_info:"基本信息",device_name:"設備名稱",model:"型號",device:"設備",board:"主板",hardware:"硬件",brand:"品牌",build_fingerprint:"構建指紋",system:"系統",android_version:"Android 版本",security_patch:"安全補丁",bootloader:"引導程序",build_number:"構建編號",baseband:"基帶",kernel:"內核",java_vm:"Java 虛擬機",opengl_es:"OpenGL ES",uptime:"運行時間",battery:"電池",health:"健康",level:"電量",remaining:"剩餘",power_source:"電源",technology:"技術",temperature:"溫度",voltage:"電壓",capacity:"容量",battery_health:{1:"未知",2:"良好",3:"過熱",4:"失效",5:"過電壓",6:"未指定故障",7:"寒冷"},battery_status:{1:"未知",2:"充電中",3:"放電中",4:"未充電",5:"充滿"},battery_plugged:{0:"電池",1:"交流電",2:"USB",3:"無線"},grant_permission:"授權",desktop_notification_permission_not_granted:"未授予桌面通知權限。",desktop_notification_permission_grant_title:"授予桌面通知權限",desktop_notification_permission_grant_message:`1. 點擊地址欄中的掛鎖圖標。 2. 打開“站點設置”或“權限”。 3. 找到“通知”並將其更改為“允許”。`,sort:"排序",sort_by:{date_asc:"最舊日期優先",date_desc:"最新日期優先",size_asc:"最小優先",size_desc:"最大優先",name_asc:"名稱(從A到Z)",name_desc:"名稱(從Z到A)"},print:"打印",cancel:"取消",ok:"好的",connection_timeout:"連接超時",save:"保存",saving:"保存中",saved:"已保存",status:"狀態",enabled:"啟用",updated:"已更新",enable:"啟用",deleted:"已刪除",create:"創建",listening_port:"監聽端口",edit:"編輯",delete:"刪除",actions:"操作",running:"運行中",stopped:"停止",basic:"基本",name:"名稱",address:"地址",yes:"是",no:"否",my_phone:"我的手機",me:"我",password:"密碼",chat_input_hint:"您想說什麼?",release_to_send_file:"鬆手以發送文件",confirm_to_delete_name:'確認刪除"{name}"?',confirm_to_delete:"確認刪除?",valid:{string_min:"至少{min}個字符",required:"字段必填"},theme:{title:"主題",system:"系統默認",light:"淺色",dark:"黑暗"},language:{title:"語言",system:"系統默認"},exchange:{data_date:"日期"},education:{memorize_words:"記單詞"},log_in:"登錄",logging_in:"登錄中",login:{to_continue:"請在手機上點擊允許按鈕才能繼續操作。",failed:"登錄失敗,請確認手機沒有進入休眠模式。",rejected:"登錄請求被拒絕。",invalid_password:"密碼錯誤。"},failed_connect_ws:"無法連接到WebSocket。請重新啟動應用程序並重試。",header_actions:{language:"更改語言",theme:"更改主題",tasks:"任務列表",audios:"音頻",logout:"退出登錄",notifications:"通知"},page_title:{home:"首頁",wireguard:"WireGuard",network:"網絡配置",wifi:"無線網絡",rules:"網絡規則",routes:"網絡路由",devices:"網絡設備",messages:"短信",contacts:"聯絡人",calls:"通話記錄",apps:"應用",files:"文件",audios:"音頻",videos:"視頻",images:"圖片",books:"書籍",feeds:"訂閱",notes:"筆記",json_viewer:"JSON查看器",qrcode_generator:"二維碼生成器",trash:"回收站",aichats:"ChatGPT",screen_mirror:"屏幕鏡像",device_info:"設備信息"},wireguard:{},wifi:{ssid:"名稱",hide_ssid:"隱藏網絡不被發現"},manufacturer:"廠商",mac_address:"MAC地址",ip_address:"IP地址",online:"在線",offline:"離線",unknown:"未知",created_at:"創建時間",updated_at:"更新時間",active_at:"活躍時間",rename:"重命名",apply_to:"應用於",direction:"方向",match:"匹配",inbound:"進來",outbound:"出去",target_type:{ip:"IP地址",net:"子網",dns:"域名",remote_port:"遠程端口",internet:"互聯網",iface:"本地網絡",list:"目標列表"},all_devices:"所有設備",network:"網絡",allow:"允許",block:"阻止",description:"描述",notes:"備註",rule_inbound:"{action}來自{target}的流量",rule_outbound:"{action}訪問{target}",for_example:"示例",invalid_value:"輸入有誤",space:"",remote_port:"遠程端口{port}",all_local_networks:"所有本地網絡",examples_ip:`示例 10.10.10.2 @@ -3032,7 +3032,7 @@ example.com:80,443–453`,examples_remote_port:`示例 1419 1001–1024`,route_description:"發往{target}的流量經過{if_name}",traffic_to:"流量發往",route_via:"路由通過",delete_message:"刪除消息",social:"社交",messages:"短信",contacts:"聯絡人",calls:"通話記錄",storage:"存儲",files:"文件",music:"音樂",videos:"視頻",images:"圖片",audios:"音頻",content:"內容",from:"來自",type:"類型",time:"時間",message_type:{1:"收件箱",2:"已發送",3:"草稿箱",4:"發件箱",inbox:"收件箱",sent:"已發送",outbox:"發件箱",drafts:"草稿箱"},artist:"藝術家",sms_address:"號碼",phone_numbers:"電話號碼",telephone:"電話",custom:"自定義",website:"網站",email:"Email",phone_number:"電話號碼",add_field:"添加更多項",im:"聊天工具",contact:{phone_number_type:{1:"住宅",2:"手機",3:"單位",4:"單位傳真",5:"住宅傳真",6:"尋呼機",7:"其他",8:"回撥號碼",9:"車載電話",10:"公司總機",11:"ISDN",12:"總機",13:"其他傳真",14:"無線裝置",15:"電報",16:"TTY TDD",17:"單位手機",18:"單位尋呼機",19:"助理",20:"彩信"},email_type:{1:"個人",2:"工作",3:"其他",4:"手機"},address_type:{1:"住宅",2:"單位",3:"其他"},event_type:{1:"周年紀念日",2:"其他",3:"生日"},im_type:{0:"AIM",1:"Windows Live",2:"雅虎",3:"Skype",4:"QQ",5:"環聊",6:"ICQ",7:"Jabber",8:"NetMeeting"},website_type:{1:"首頁",2:"博客",3:"主頁",4:"個人",5:"工作",6:"FTP",7:"其他"}},call_type:{1:"呼入",2:"呼出",3:"未接",4:"語音信箱",5:"拒接",6:"已屏蔽",incoming:"呼入",outgoing:"呼出",missed:"未接"},app_type:{user:"用戶",system:"系統"},first_name:"名字",last_name:"姓氏",middle_name:"中間名",prefix:"名稱前綴",suffix:"名稱後綴",browser_warning:"推薦使用最新版的Chrome瀏覽器",no_permission:'沒有權限,請到手機應用 > "電腦瀏覽器訪問"裡面打開權限並刷新頁面重試。',no_data:"沒有數據。",loading:"加載中...",duration:"時長",started_at:"開始時間",phone_geo:"歸屬地",avatar:"頭像",phone_isp_type:{1:"中國移動",2:"中國聯通",3:"中國電信",4:"中國聯通虛擬運營商",5:"中國電信虛擬運營商",6:"中國移動虛擬運營商"},storage_free_total:"剩餘{free} 共{total}",current_path:"當前路徑",create_folder:"創建目錄",upload_files:"上傳文件",upload_folder:"上傳目錄",preview:"預覽",view:"查看",upload:"上傳",download:"下載",copy:"複製",paste:"粘貼",cut:"剪切",duplicate:"創建副本",properties:"屬性",show_hidden:"顯示隱藏項",select_mode:"選擇模式",modified_at:"修改時間",file_size:"文件大小",path:"路徑",open:"打開",box_is_null:"請在應用中選擇一個盒子再重試",battery_left:"電量{percentage}%",invalid_file_signature:"文件簽名不一致",no_task:"暫無任務",upload_status:{created:"等待中",pending:"上傳中",saving:"保存中",done:"已上傳",error:"上傳失敗"},load_failed:"加載{name}失敗",network_error:"網絡異常,無法連接API",web_access_disabled:'Web訪問當前已禁用。請打開PlainApp > 右上角 💻 圖標 > "電腦瀏覽器訪問"頁面,並點擊"啟用"開關。',play:"播放",add_to_playlist:"加入播放列表",added_to_playlist:"已加入播放列表!",select_first:"請先選擇!",search_hint:"搜索…",keywords:"關鍵字",search:"搜索",tags:"標籤",add_to_tags:"添加到標籤",remove_from_tags:"移除標籤",delete_files:"刪除文件",clear_list:"清空列表",select_tags:"選擇標籤",tools:"工具",json_viewer:"JSON查看器",qrcode_generator:"二維碼生成器",title:"標題",restore:"恢復",trash:"回收站",move_to_trash:"移到回收站",work:"工作",expand_all:"展開全部",collapse_all:"合併全部",all:"全部",manage:"管理",subscriptions:"訂阅源",published_at:"發布時間",source:"來源",view_original_article:"查看原文",add:"添加",add_tag:"添加標籤",add_subscription:"添加訂阅",import_opml_file:"導入OPML文件",export_opml_file:"導出OPML文件",rss_url:"RSS地址",imported:"已導入",update_subscription:"更新訂阅",sync_feeds:"同步訂阅",sync_content:"同步正文內容",feeds_synced:"訂阅已同步",syncing:"同步中...",meta_no_title:"[沒有標題]",no_content:"[沒有內容]",confirm:"確認",upload_audios:"您可以上傳音頻到Music目錄或者其他目錄下。",upload_videos:"您可以上傳音頻到Movies目錄或者其他目錄下。",upload_images:"您可以上傳音頻到Pictures目錄或者其他目錄下。",no_files:"沒有文件",view_origin_image:"查看原圖",new_chat:"創建會話",ai:"人工智能",config:"配置",api_key:"API密鑰",apps:"應用",version:"版本",size:"大小",recents:"最近",internal_storage:"內部存儲",sdcard:"存儲卡",recent_files:"最近訪問",installed_at:"安裝時間",screen_mirror:"屏幕鏡像",try_again:"重試",stop_mirror:"停止鏡像",fullscreen:"全屏顯示",deleting:"刪除中",uninstalling:"卸載中…",uninstall:"卸載",install:"安裝",sending:"發送中…",usb_storage:"USB存儲",folders:"文件夾",color:"顏色",make_a_phone_call:"打電話",view_as_list:"列表視圖",view_as_grid:"網格視圖",pause:"暫停",playlist:"播放列表",no_api_key:"缺少 API 密鑰",refresh:"刷新",info:"信息",zoom_in:"放大",zoom_out:"縮小",resize:"調整大小",rotate_left:"左旋轉",rotate_right:"右旋轉",close:"關閉",close_other_tabs:"關閉其他標簽頁",close_tabs_to_the_right:"關閉右側標簽頁",relaunch_app:"重啟應用",all_items_on_this_page_are_selected:"已選擇此頁面上{count}項。",all_items_are_selected:"已選擇全部{count}項。",select_all_items:"選擇所有{count}項",clear_selection:"清除選擇",screen_mirror_request_permission_failed:"您還沒有授權簡樸截屏的權限。",screen_mirror_request_permission:`請在手機上點擊“現在開始”按鈕。 如果權限窗口未顯示,請重新啟動簡樸。 -請在{seconds}秒後再試。`},mae={app_name:"PlainApp",troubleshoot:"Solución de problemas",fix_disconnect_tips:"Si la conexión se interrumpe constantemente, intente mantener la pantalla del teléfono encendida o conectar el adaptador USB a una toma de corriente.",fetch_content_automatically:"Obtener contenido automáticamente",call:"Llamada",call_phone:"Llamar por teléfono",web_socket_reconnecting:"WebSocket reconectando...",device_info:"Información del dispositivo",basic_info:"Información básica",device_name:"Nombre del dispositivo",model:"Modelo",device:"Dispositivo",board:"Placa",hardware:"Hardware",brand:"Marca",build_fingerprint:"Huella de compilación",system:"Sistema",android_version:"Versión de Android",security_patch:"Parche de seguridad",bootloader:"Cargador de arranque",build_number:"Número de compilación",baseband:"Banda base",kernel:"Núcleo",java_vm:"Máquina virtual de Java",opengl_es:"OpenGL ES",uptime:"Tiempo de actividad",battery:"Batería",health:"Salud",level:"Nivel",remaining:"Restante",power_source:"Fuente de energía",technology:"Tecnología",temperature:"Temperatura",voltage:"Voltaje",capacity:"Capacidad",battery_health:{1:"Desconocido",2:"Bueno",3:"Sobrecalentamiento",4:"Muerto",5:"Sobrevoltaje",6:"Fallo no especificado",7:"Frío"},battery_status:{1:"Desconocido",2:"Cargando",3:"Descargando",4:"No cargando",5:"Completo"},battery_plugged:{0:"Batería",1:"AC",2:"USB",3:"Inalámbrico"},grant_permission:"Conceder permiso",desktop_notification_permission_not_granted:"No se ha otorgado el permiso de notificación de escritorio.",desktop_notification_permission_grant_title:"Conceder permiso para notificaciones de escritorio",desktop_notification_permission_grant_message:`1. Haga clic en el icono del candado en la barra de direcciones. +請在{seconds}秒後再試。`},hae={app_name:"PlainApp",troubleshoot:"Solución de problemas",fix_disconnect_tips:"Si la conexión se interrumpe constantemente, intente mantener la pantalla del teléfono encendida o conectar el adaptador USB a una toma de corriente.",fetch_content_automatically:"Obtener contenido automáticamente",call:"Llamada",call_phone:"Llamar por teléfono",web_socket_reconnecting:"WebSocket reconectando...",device_info:"Información del dispositivo",basic_info:"Información básica",device_name:"Nombre del dispositivo",model:"Modelo",device:"Dispositivo",board:"Placa",hardware:"Hardware",brand:"Marca",build_fingerprint:"Huella de compilación",system:"Sistema",android_version:"Versión de Android",security_patch:"Parche de seguridad",bootloader:"Cargador de arranque",build_number:"Número de compilación",baseband:"Banda base",kernel:"Núcleo",java_vm:"Máquina virtual de Java",opengl_es:"OpenGL ES",uptime:"Tiempo de actividad",battery:"Batería",health:"Salud",level:"Nivel",remaining:"Restante",power_source:"Fuente de energía",technology:"Tecnología",temperature:"Temperatura",voltage:"Voltaje",capacity:"Capacidad",battery_health:{1:"Desconocido",2:"Bueno",3:"Sobrecalentamiento",4:"Muerto",5:"Sobrevoltaje",6:"Fallo no especificado",7:"Frío"},battery_status:{1:"Desconocido",2:"Cargando",3:"Descargando",4:"No cargando",5:"Completo"},battery_plugged:{0:"Batería",1:"AC",2:"USB",3:"Inalámbrico"},grant_permission:"Conceder permiso",desktop_notification_permission_not_granted:"No se ha otorgado el permiso de notificación de escritorio.",desktop_notification_permission_grant_title:"Conceder permiso para notificaciones de escritorio",desktop_notification_permission_grant_message:`1. Haga clic en el icono del candado en la barra de direcciones. 2. Abra "Configuración del sitio" o "Permisos". 3. Encuentre "Notificaciones" y cámbielo a "Permitir".`,sort:"Ordenar",sort_by:{date_asc:"Fecha más antigua primero",date_desc:"Fecha más reciente primero",size_asc:"Más pequeño primero",size_desc:"Más grande primero",name_asc:"Nombre (A a Z)",name_desc:"Nombre (Z a A)"},print:"Imprimir",cancel:"Cancelar",ok:"Aceptar",connection_timeout:"Tiempo de conexión agotado",save:"Guardar",saving:"Guardando",saved:"Guardado",status:"Estado",enabled:"Habilitado",updated:"Actualizado",enable:"Habilitar",deleted:"Eliminado",create:"Crear",listening_port:"Puerto de escucha",edit:"Editar",delete:"Eliminar",actions:"Acciones",running:"Ejecutándose",stopped:"Detenido",basic:"Básico",name:"Nombre",address:"Dirección",yes:"Sí",no:"No",my_phone:"Mi teléfono",me:"Yo",password:"Contraseña",chat_input_hint:"¿Qué tienes en mente?",release_to_send_file:"Suelta para enviar archivo",confirm_to_delete_name:'¿Confirmar eliminación de "{name}"?',confirm_to_delete:"¿Confirmar eliminación?",valid:{string_min:"Al menos {min} caracteres",required:"Este campo es obligatorio"},theme:{title:"Tema",system:"Predeterminado del sistema",light:"Claro",dark:"Oscuro"},language:{title:"Idioma",system:"Predeterminado del sistema"},exchange:{data_date:"Fecha"},education:{memorize_words:"Memorizar palabras"},log_in:"Iniciar sesión",logging_in:"Iniciando sesión",login:{to_continue:"Toca el botón Aceptar en tu teléfono para continuar.",failed:"Fallo al iniciar sesión, asegúrate de que tu teléfono no esté en modo de suspensión.",rejected:"La solicitud de inicio de sesión ha sido rechazada.",invalid_password:"Contraseña incorrecta."},failed_connect_ws:"Error al conectar con WebSocket. Por favor, vuelva a iniciar la aplicación e inténtelo nuevamente.",header_actions:{language:"Cambiar idioma",theme:"Cambiar tema",tasks:"Tareas",audios:"Audio",logout:"Cerrar sesión",notifications:"Notificaciones"},page_title:{home:"Inicio",wireguard:"WireGuard",network:"Red",wifi:"Wi-Fi",rules:"Reglas",routes:"Rutas",devices:"Dispositivos",messages:"Mensajes",contacts:"Contactos",calls:"Llamadas",apps:"Aplicaciones",files:"Archivos",audios:"Audio",videos:"Videos",images:"Imágenes",books:"Libros",feeds:"Feeds",notes:"Notas",json_viewer:"Visor de JSON",qrcode_generator:"Generador de códigos QR",trash:"Papelera",aichats:"ChatGPT",screen_mirror:"Espejo de pantalla",device_info:"Información del dispositivo"},wireguard:{},wifi:{ssid:"Nombre",hide_ssid:"Ocultar red"},manufacturer:"Fabricante",mac_address:"Dirección MAC",ip_address:"Dirección IP",online:"En línea",offline:"Fuera de línea",unknown:"Desconocido",created_at:"Creado el",updated_at:"Actualizado el",active_at:"Activo el",rename:"Renombrar",apply_to:"Aplicar a",direction:"Dirección",match:"Coincidencia",inbound:"Entrada",outbound:"Salida",target_type:{ip:"Dirección IP",net:"Subred",dns:"Dominio",remote_port:"Puerto remoto",internet:"Internet",iface:"Red local",list:"Lista de objetivos"},all_devices:"Todos los dispositivos",network:"Red",allow:"Permitir",block:"Bloquear",description:"Descripción",notes:"Notas",rule_inbound:"{action} tráfico desde {target}",rule_outbound:"{action} tráfico hacia {target}",for_example:"por ejemplo",invalid_value:"Valor no válido",space:" ",remote_port:"puerto remoto {port}",all_local_networks:"Todas las redes locales",examples_ip:`Ejemplos 10.10.10.2 @@ -3049,7 +3049,7 @@ ejemplo.com:80,443–453`,examples_remote_port:`Ejemplos 1419 1001–1024`,route_description:"Enrutamiento de tráfico a {target} a través de {if_name}",traffic_to:"Tráfico hacia",route_via:"Enrutado hacia",delete_message:"Eliminar mensaje",social:"Social",messages:"Mensajes",contacts:"Contactos",calls:"Llamadas",storage:"Almacenamiento",files:"Archivos",music:"Música",videos:"Videos",images:"Imágenes",audios:"Audio",content:"Contenido",from:"De",type:"Tipo",time:"Hora",message_type:{1:"Bandeja de entrada",2:"Enviado",3:"Borradores",4:"Bandeja de salida",inbox:"Bandeja de entrada",sent:"Enviado",outbox:"Bandeja de salida",drafts:"Borrador"},artist:"Artista",sms_address:"Dirección",phone_numbers:"Números de teléfono",telephone:"Teléfono",custom:"Personalizado",website:"Sitio web",email:"Email",phone_number:"Número de teléfono",add_field:"Agregar campo",im:"IM",contact:{phone_number_type:{1:"Casa",2:"Móvil",3:"Trabajo",4:"Fax del trabajo",5:"Fax de casa",6:"Localizador",7:"Otro",8:"Devolver llamada",9:"Coche",10:"Línea principal de la empresa",11:"ISDN",12:"Principal",13:"Otro fax",14:"Radio",15:"Telex",16:"TTY TDD",17:"Móvil del trabajo",18:"Localizador del trabajo",19:"Asistente",20:"MMS"},email_type:{1:"Casa",2:"Trabajo",3:"Otro",4:"Móvil"},address_type:{1:"Casa",2:"Trabajo",3:"Otro"},event_type:{1:"Aniversario",2:"Otro",3:"Cumpleaños"},im_type:{0:"AIM",1:"Windows Live",2:"Yahoo",3:"Skype",4:"QQ",5:"Hangouts",6:"ICQ",7:"Jabber",8:"NetMeeting"},website_type:{1:"Página de inicio",2:"Blog",3:"Perfil",4:"Casa",5:"Trabajo",6:"FTP",7:"Otro"}},call_type:{1:"Entrante",2:"Saliente",3:"Perdida",4:"Buzón de voz",5:"Rechazada",6:"Bloqueada",incoming:"Entrante",outgoing:"Saliente",missed:"Perdida"},app_type:{user:"Usuario",system:"Sistema"},first_name:"Nombre",last_name:"Apellido",middle_name:"Segundo nombre",prefix:"Prefijo",suffix:"Sufijo",browser_warning:"Se sugiere usar la última versión del navegador web Chrome",no_permission:'Sin permiso. Por favor, ve a APP > "Web en PC" para habilitar los permisos y actualiza la página.',no_data:"No hay datos.",loading:"Cargando...",duration:"Duración",started_at:"Comenzó el",phone_geo:"GEO",avatar:"Avatar",phone_isp_type:{1:"China mobile",2:"China unicom",3:"China telecom",4:"China uicom virtual",5:"China telecom virtual",6:"China mobile virtual"},storage_free_total:"{free} disponibles de {total}",current_path:"Ruta actual",create_folder:"Crear carpeta",upload_files:"Cargar archivos",upload_folder:"Cargar carpeta",preview:"Vista previa",view:"Ver",upload:"Cargar",download:"Descargar",copy:"Copiar",paste:"Pegar",cut:"Cortar",duplicate:"Duplicar",properties:"Propiedades",show_hidden:"Mostrar ocultos",select_mode:"Modo de selección",modified_at:"Modificado el",file_size:"Tamaño del archivo",path:"Ruta",open:"Abrir",box_is_null:"Por favor, selecciona una caja en la aplicación e inténtalo de nuevo",battery_left:"Batería {percentage}%",invalid_file_signature:"Firma de archivo no válida",no_task:"Ninguna tarea",upload_status:{created:"Esperando",pending:"Cargando",saving:"Guardando",done:"Cargado",error:"Error al cargar"},load_failed:"Error al cargar {name}",network_error:"Error de red, no se puede conectar al API",web_access_disabled:'El acceso web está actualmente deshabilitado. Por favor, abra PlainApp > icono de la parte superior derecha 💻 > página "Web en PC" y toque el interruptor "Habilitar".',play:"Reproducir",add_to_playlist:"Añadir a lista de reproducción",added_to_playlist:"Añadido a la lista de reproducción",select_first:"Seleccionar primero",search_hint:"Buscar...",keywords:"Palabras clave",search:"Buscar",tags:"Etiquetas",add_to_tags:"Añadir a etiquetas",remove_from_tags:"Eliminar de etiquetas",delete_files:"Eliminar archivos",clear_list:"Limpiar lista",select_tags:"Seleccionar etiquetas",tools:"Herramientas",json_viewer:"Visor de JSON",qrcode_generator:"Generador de códigos QR",title:"Título",restore:"Restaurar",trash:"Papelera",move_to_trash:"Mover a la papelera",work:"Trabajo",expand_all:"Expandir todo",collapse_all:"Contraer todo",all:"Todos",manage:"Gestionar",subscriptions:"Suscripciones",published_at:"Publicado el",source:"Fuente",view_original_article:"Ver artículo original",add:"Agregar",add_tag:"Agregar etiqueta",add_subscription:"Agregar suscripción",import_opml_file:"Importar archivo OPML",export_opml_file:"Exportar archivo OPML",rss_url:"URL del RSS",imported:"Importado",update_subscription:"Actualizar suscripción",sync_feeds:"Sincronizar feeds",sync_content:"Sincronizar contenido",feeds_synced:"Feeds sincronizados",syncing:"Sincronizando...",meta_no_title:"[Sin título]",no_content:"[Sin contenido]",confirm:"Confirmar",upload_audios:"Puedes cargar en la carpeta Música o en otra carpeta.",upload_videos:"Puedes cargar en la carpeta Videos o en otra carpeta.",upload_images:"Puedes cargar en la carpeta Imágenes o en otra carpeta.",no_files:"Sin archivos",view_origin_image:"Ver imagen original",new_chat:"Nuevo chat",ai:"IA",config:"Configuración",api_key:"Clave API",apps:"Aplicaciones",version:"Versión",size:"Tamaño",recents:"Recientes",internal_storage:"Almacenamiento interno",sdcard:"Tarjeta SD",recent_files:"Archivos recientes",installed_at:"Instalado el",screen_mirror:"Espejo de pantalla",try_again:"Intentar de nuevo",stop_mirror:"Detener espejo",fullscreen:"Pantalla completa",deleting:"Eliminando...",uninstalling:"Desinstalando...",uninstall:"Desinstalar",install:"Instalar",sending:"Enviando…",usb_storage:"Almacenamiento USB",folders:"Carpetas",color:"Color",make_a_phone_call:"hacer una llamada telefónica",view_as_list:"Ver como lista",view_as_grid:"Ver como cuadrícula",pause:"Pausa",playlist:"Lista de reproducción",no_api_key:"Sin clave API",refresh:"Actualizar",info:"Información",zoom_in:"Acercar",zoom_out:"Alejar",resize:"Cambiar tamaño",rotate_left:"Rotar a la izquierda",rotate_right:"Rotar a la derecha",close:"Cerrar",close_other_tabs:"Cerrar otras pestañas",close_tabs_to_the_right:"Cerrar pestañas a la derecha",relaunch_app:"Reiniciar aplicación",all_items_on_this_page_are_selected:"Todos los {count} elementos en esta página están seleccionados.",all_items_are_selected:"Todos los {count} elementos están seleccionados.",select_all_items:"Seleccionar todos los {count} elementos",clear_selection:"Borrar selección",screen_mirror_request_permission_failed:"No has concedido permiso a PlainApp para tomar capturas de pantalla.",screen_mirror_request_permission:`Por favor, toca "Comenzar ahora" en el teléfono. Si la ventana de permisos no se muestra, vuelve a abrir PlainApp. -Inténtalo de nuevo en {seconds} segundos.`},vae={app_name:"PlainApp",troubleshoot:"トラブルシューティング",fix_disconnect_tips:"接続が頻繁に切断される場合は、スマートフォンの画面をオンのままにするか、USBアダプタを電源コンセントに接続してみてください。",fetch_content_automatically:"コンテンツを自動的に取得",call:"コール",call_phone:"電話する",web_socket_reconnecting:"WebSocketが再接続中です...",device_info:"デバイス情報",basic_info:"基本情報",device_name:"デバイス名",model:"モデル",device:"デバイス",board:"ボード",hardware:"ハードウェア",brand:"ブランド",build_fingerprint:"ビルドフィンガープリント",system:"システム",android_version:"Androidバージョン",security_patch:"セキュリティパッチ",bootloader:"ブートローダー",build_number:"ビルド番号",baseband:"ベースバンド",kernel:"カーネル",java_vm:"Java VM",opengl_es:"OpenGL ES",uptime:"アップタイム",battery:"バッテリー",health:"健康",level:"レベル",remaining:"残り",power_source:"電源",technology:"技術",temperature:"温度",voltage:"電圧",capacity:"容量",battery_health:{1:"不明",2:"良好",3:"過熱",4:"死亡",5:"過電圧",6:"特定の障害",7:"冷たい"},battery_status:{1:"不明",2:"充電中",3:"放電中",4:"充電されていません",5:"フル"},battery_plugged:{0:"バッテリー",1:"AC",2:"USB",3:"ワイヤレス"},grant_permission:"権限を付与",desktop_notification_permission_not_granted:"デスクトップ通知の許可が付与されていません。",desktop_notification_permission_grant_title:"デスクトップ通知の許可を付与する",desktop_notification_permission_grant_message:`1. アドレスバーの南京錠アイコンをクリックします。 +Inténtalo de nuevo en {seconds} segundos.`},mae={app_name:"PlainApp",troubleshoot:"トラブルシューティング",fix_disconnect_tips:"接続が頻繁に切断される場合は、スマートフォンの画面をオンのままにするか、USBアダプタを電源コンセントに接続してみてください。",fetch_content_automatically:"コンテンツを自動的に取得",call:"コール",call_phone:"電話する",web_socket_reconnecting:"WebSocketが再接続中です...",device_info:"デバイス情報",basic_info:"基本情報",device_name:"デバイス名",model:"モデル",device:"デバイス",board:"ボード",hardware:"ハードウェア",brand:"ブランド",build_fingerprint:"ビルドフィンガープリント",system:"システム",android_version:"Androidバージョン",security_patch:"セキュリティパッチ",bootloader:"ブートローダー",build_number:"ビルド番号",baseband:"ベースバンド",kernel:"カーネル",java_vm:"Java VM",opengl_es:"OpenGL ES",uptime:"アップタイム",battery:"バッテリー",health:"健康",level:"レベル",remaining:"残り",power_source:"電源",technology:"技術",temperature:"温度",voltage:"電圧",capacity:"容量",battery_health:{1:"不明",2:"良好",3:"過熱",4:"死亡",5:"過電圧",6:"特定の障害",7:"冷たい"},battery_status:{1:"不明",2:"充電中",3:"放電中",4:"充電されていません",5:"フル"},battery_plugged:{0:"バッテリー",1:"AC",2:"USB",3:"ワイヤレス"},grant_permission:"権限を付与",desktop_notification_permission_not_granted:"デスクトップ通知の許可が付与されていません。",desktop_notification_permission_grant_title:"デスクトップ通知の許可を付与する",desktop_notification_permission_grant_message:`1. アドレスバーの南京錠アイコンをクリックします。 2. "サイト設定"または"権限"を開きます。 3. "通知"を見つけ、それを"許可"に変更します。`,sort:"並べ替え",sort_by:{date_asc:"古い順",date_desc:"新しい順",size_asc:"小さい順",size_desc:"大きい順",name_asc:"名前(AからZへ)",name_desc:"名前(ZからAへ)"},print:"印刷",cancel:"キャンセル",ok:"OK",connection_timeout:"接続がタイムアウトしました",save:"保存",saving:"保存中",saved:"保存済み",status:"ステータス",enabled:"有効",updated:"更新済み",enable:"有効化",deleted:"削除済み",create:"作成",listening_port:"受信ポート",edit:"編集",delete:"削除",actions:"アクション",running:"実行中",stopped:"停止中",basic:"基本",name:"名前",address:"住所",yes:"はい",no:"いいえ",my_phone:"マイフォン",me:"私",password:"パスワード",chat_input_hint:"何を考えていますか?",release_to_send_file:"リリースしてファイルを送信",confirm_to_delete_name:'"{name}"を削除しますか?',confirm_to_delete:"削除しますか?",valid:{string_min:"{min}文字以上で入力してください",required:"このフィールドは必須です"},theme:{title:"テーマ",system:"システムデフォルト",light:"ライト",dark:"ダーク"},language:{title:"言語",system:"システムデフォルト"},exchange:{data_date:"日付"},education:{memorize_words:"単語を覚える"},log_in:"ログイン",logging_in:"ログイン中",login:{to_continue:"続行するには、電話の[受け入れ]ボタンをタップしてください。",failed:"ログインに失敗しました。電話がスリープモードになっていないか確認してください。",rejected:"ログイン要求が拒否されました。",invalid_password:"パスワードが間違っています。"},failed_connect_ws:"WebSocketに接続できませんでした。アプリを再起動してもう一度お試しください。",header_actions:{language:"言語を変更",theme:"テーマを変更",tasks:"タスク",audios:"オーディオ",logout:"ログアウト",notifications:"通知"},page_title:{home:"ホーム",wireguard:"WireGuard",network:"ネットワーク",wifi:"Wi-Fi",rules:"ルール",routes:"ルート",devices:"デバイス",messages:"メッセージ",contacts:"連絡先",calls:"通話",apps:"アプリ",files:"ファイル",audios:"オーディオ",videos:"ビデオ",images:"画像",books:"ブックス",feeds:"フィード",notes:"ノート",json_viewer:"JSONビューアー",qrcode_generator:"QRコードジェネレーター",trash:"ゴミ箱",aichats:"ChatGPT",screen_mirror:"スクリーンミラー",device_info:"デバイス情報"},wireguard:{},wifi:{ssid:"名前",hide_ssid:"ネットワークを非表示"},manufacturer:"メーカー",mac_address:"MACアドレス",ip_address:"IPアドレス",online:"オンライン",offline:"オフライン",unknown:"不明",created_at:"作成日",updated_at:"更新日",active_at:"アクティブ日",rename:"名前を変更",apply_to:"適用対象",direction:"方向",match:"一致",inbound:"受信",outbound:"送信",target_type:{ip:"IPアドレス",net:"サブネット",dns:"ドメイン",remote_port:"リモートポート",internet:"インターネット",iface:"ローカルネットワーク",list:"対象リスト"},all_devices:"すべてのデバイス",network:"ネットワーク",allow:"許可",block:"ブロック",description:"説明",notes:"ノート",rule_inbound:"{action} {target} からのトラフィック",rule_outbound:"{action} {target} へのトラフィック",for_example:"例",invalid_value:"無効な値",space:" ",remote_port:"リモートポート {port}",all_local_networks:"すべてのローカルネットワーク",examples_ip:`例 10.10.10.2 @@ -3066,7 +3066,7 @@ example.com:80,443–453`,examples_remote_port:`例 1419 1001–1024`,route_description:"{if_name} を介して {target} へのトラフィックをルーティング",traffic_to:"トラフィック先",route_via:"ルート",delete_message:"メッセージを削除",social:"ソーシャル",messages:"メッセージ",contacts:"連絡先",calls:"通話",storage:"ストレージ",files:"ファイル",music:"音楽",videos:"ビデオ",images:"画像",audios:"オーディオ",content:"コンテンツ",from:"送信元",type:"タイプ",time:"時間",message_type:{1:"受信箱",2:"送信済み",3:"下書き",4:"送信中",inbox:"受信箱",sent:"送信済み",outbox:"送信中",drafts:"下書き"},artist:"アーティスト",sms_address:"SMSアドレス",phone_numbers:"電話番号",telephone:"電話",custom:"カスタム",website:"ウェブサイト",email:"メール",phone_number:"電話番号",add_field:"フィールドを追加",im:"IM",contact:{phone_number_type:{1:"自宅",2:"モバイル",3:"職場",4:"職場のFAX",5:"自宅のFAX",6:"ポケットベル",7:"その他",8:"コールバック",9:"カー",10:"会社の主番号",11:"ISDN",12:"主番号",13:"その他のFAX",14:"ラジオ",15:"テレックス",16:"TTY TDD",17:"職場のモバイル",18:"職場のポケットベル",19:"アシスタント",20:"MMS"},email_type:{1:"自宅",2:"職場",3:"その他",4:"モバイル"},address_type:{1:"自宅",2:"職場",3:"その他"},event_type:{1:"記念日",2:"その他",3:"誕生日"},im_type:{0:"AIM",1:"Windows Live",2:"Yahoo",3:"Skype",4:"QQ",5:"Hangouts",6:"ICQ",7:"Jabber",8:"NetMeeting"},website_type:{1:"ホームページ",2:"ブログ",3:"プロフィール",4:"自宅",5:"職場",6:"FTP",7:"その他"}},call_type:{1:"着信",2:"発信",3:"不在",4:"ボイスメール",5:"拒否",6:"ブロック",incoming:"着信",outgoing:"発信",missed:"不在"},app_type:{user:"ユーザー",system:"システム"},first_name:"名",last_name:"姓",middle_name:"ミドルネーム",prefix:"接頭辞",suffix:"接尾辞",browser_warning:"最新版のChromeウェブブラウザを使用することをお勧めします。",no_permission:"権限がありません。アプリケーションの[PC上のWeb]で権限を有効にしてページをリフレッシュしてください。",no_data:"データがありません。",loading:"読み込み中...",duration:"時間",started_at:"開始時刻",phone_geo:"GEO",avatar:"アバター",phone_isp_type:{1:"中国モバイル",2:"中国ユニコム",3:"中国テレコム",4:"中国ユニコム仮想",5:"中国テレコム仮想",6:"中国モバイル仮想"},storage_free_total:"{free} のうち {total} 使用中",current_path:"現在のパス",create_folder:"フォルダーを作成",upload_files:"ファイルをアップロード",upload_folder:"フォルダーをアップロード",preview:"プレビュー",view:"表示",upload:"アップロード",download:"ダウンロード",copy:"コピー",paste:"貼り付け",cut:"カット",duplicate:"複製",properties:"プロパティ",show_hidden:"非表示を表示",select_mode:"選択モード",modified_at:"更新日",file_size:"ファイルサイズ",path:"パス",open:"開く",box_is_null:"アプリ内のボックスを選択してからもう一度お試しください",battery_left:"バッテリー残量 {percentage}%",invalid_file_signature:"無効なファイル署名",no_task:"タスクなし",upload_status:{created:"待機中",pending:"アップロード中",saving:"保存中",done:"アップロード済み",error:"アップロードに失敗しました"},load_failed:"{name}の読み込みに失敗しました",network_error:"ネットワークエラー、APIに接続できません",web_access_disabled:'Webアクセスは現在無効になっています。PlainAppを開き、右上の 💻 アイコン > "PC上のWeb"ページを開き、"有効にする"スイッチをタップしてください。',play:"再生",add_to_playlist:"プレイリストに追加",added_to_playlist:"プレイリストに追加しました!",select_first:"最初に選択してください!",search_hint:"検索...",keywords:"キーワード",search:"検索",tags:"タグ",add_to_tags:"タグに追加",remove_from_tags:"タグから削除",delete_files:"ファイルを削除",clear_list:"リストをクリア",select_tags:"タグを選択",tools:"ツール",json_viewer:"JSONビューアー",qrcode_generator:"QRコードジェネレーター",title:"タイトル",restore:"復元",trash:"ゴミ箱",move_to_trash:"ゴミ箱に移動",work:"作業",expand_all:"すべて展開",collapse_all:"すべて折りたたむ",all:"すべて",manage:"管理",subscriptions:"購読",published_at:"公開日",source:"ソース",view_original_article:"元の記事を表示",add:"追加",add_tag:"タグを追加",add_subscription:"購読を追加",import_opml_file:"OPMLファイルをインポート",export_opml_file:"OPMLファイルをエクスポート",rss_url:"RSS URL",imported:"インポート済み",update_subscription:"購読を更新",sync_feeds:"フィードを同期",sync_content:"コンテンツを同期",feeds_synced:"フィードが同期されました",syncing:"同期中...",meta_no_title:"[タイトルなし]",no_content:"[コンテンツなし]",confirm:"確認",upload_audios:"音楽フォルダーまたは他のフォルダーにアップロードできます。",upload_videos:"ビデオフォルダーまたは他のフォルダーにアップロードできます。",upload_images:"画像フォルダーまたは他のフォルダーにアップロードできます。",no_files:"ファイルなし",view_origin_image:"元の画像を表示",new_chat:"新しいチャット",ai:"AI",config:"設定",api_key:"APIキー",apps:"アプリケーション",version:"バージョン",size:"サイズ",recents:"最近使用したもの",internal_storage:"内部ストレージ",sdcard:"SDカード",recent_files:"最近使用したファイル",installed_at:"インストール日",screen_mirror:"画面ミラーリング",try_again:"再試行",stop_mirror:"ミラーリング停止",fullscreen:"フルスクリーン",deleting:"削除中...",uninstalling:"アンインストール中...",uninstall:"アンインストール",install:"インストール",sending:"送信中…",usb_storage:"USBストレージ",folders:"フォルダー",color:"色",make_a_phone_call:"電話をかける",view_as_list:"リストビュー",view_as_grid:"グリッドビュー",pause:"一時停止",playlist:"プレイリスト",no_api_key:"APIキーがありません。",refresh:"更新",info:"情報",zoom_in:"ズームイン",zoom_out:"ズームアウト",resize:"リサイズ",rotate_left:"左に回転",rotate_right:"右に回転",close:"閉じる",close_other_tabs:"他のタブを閉じる",close_tabs_to_the_right:"右のタブを閉じる",relaunch_app:"アプリを再起動",all_items_on_this_page_are_selected:"このページのすべての{count}アイテムが選択されています。",all_items_are_selected:"すべての{count}アイテムが選択されています。",select_all_items:"{count}個のアイテムをすべて選択",clear_selection:"選択を解除",screen_mirror_request_permission_failed:"PlainAppにスクリーンショットの許可がありません。",screen_mirror_request_permission:`電話で[開始]をタップしてください。 許可ウィンドウが表示されない場合は、PlainAppを再起動してください。 -{seconds}秒後に再試行します`},gae={app_name:"PlainApp",troubleshoot:"Problemen oplossen",fix_disconnect_tips:"Als de verbinding voortdurend wordt verbroken, probeer dan het scherm van uw telefoon aan te houden of de USB-adapter op een stopcontact aan te sluiten.",fetch_content_automatically:"Inhoud automatisch ophalen",call:"Oproep",call_phone:"Telefoonoproep",web_socket_reconnecting:"WebSocket is opnieuw aan het verbinden...",device_info:"Apparaatinformatie",basic_info:"Basisinformatie",device_name:"Apparaatnaam",model:"Model",device:"Apparaat",board:"Bord",hardware:"Hardware",brand:"Merk",build_fingerprint:"Build-vingerafdruk",system:"Systeem",android_version:"Android-versie",security_patch:"Beveiligingspatch",bootloader:"Bootloader",build_number:"Build-nummer",baseband:"Baseband",kernel:"Kernel",java_vm:"Java VM",opengl_es:"OpenGL ES",uptime:"Uptime",battery:"Batterij",health:"Gezondheid",level:"Niveau",remaining:"Resterend",power_source:"Stroombron",technology:"Technologie",temperature:"Temperatuur",voltage:"Spanning",capacity:"Capaciteit",battery_health:{1:"Onbekend",2:"Goed",3:"Oververhit",4:"Dood",5:"Over spanning",6:"Niet-gespecificeerde fout",7:"Koud"},battery_status:{1:"Onbekend",2:"Opladen",3:"Ontladen",4:"Niet opladen",5:"Vol"},battery_plugged:{0:"Batterij",1:"AC",2:"USB",3:"Draadloos"},grant_permission:"Toestemming verlenen",desktop_notification_permission_not_granted:"Toestemming voor desktopmeldingen is niet verleend.",desktop_notification_permission_grant_title:"Toestemming verlenen voor desktopmeldingen",desktop_notification_permission_grant_message:`1. Klik op het hangslotsymbool in de adresbalk. +{seconds}秒後に再試行します`},vae={app_name:"PlainApp",troubleshoot:"Problemen oplossen",fix_disconnect_tips:"Als de verbinding voortdurend wordt verbroken, probeer dan het scherm van uw telefoon aan te houden of de USB-adapter op een stopcontact aan te sluiten.",fetch_content_automatically:"Inhoud automatisch ophalen",call:"Oproep",call_phone:"Telefoonoproep",web_socket_reconnecting:"WebSocket is opnieuw aan het verbinden...",device_info:"Apparaatinformatie",basic_info:"Basisinformatie",device_name:"Apparaatnaam",model:"Model",device:"Apparaat",board:"Bord",hardware:"Hardware",brand:"Merk",build_fingerprint:"Build-vingerafdruk",system:"Systeem",android_version:"Android-versie",security_patch:"Beveiligingspatch",bootloader:"Bootloader",build_number:"Build-nummer",baseband:"Baseband",kernel:"Kernel",java_vm:"Java VM",opengl_es:"OpenGL ES",uptime:"Uptime",battery:"Batterij",health:"Gezondheid",level:"Niveau",remaining:"Resterend",power_source:"Stroombron",technology:"Technologie",temperature:"Temperatuur",voltage:"Spanning",capacity:"Capaciteit",battery_health:{1:"Onbekend",2:"Goed",3:"Oververhit",4:"Dood",5:"Over spanning",6:"Niet-gespecificeerde fout",7:"Koud"},battery_status:{1:"Onbekend",2:"Opladen",3:"Ontladen",4:"Niet opladen",5:"Vol"},battery_plugged:{0:"Batterij",1:"AC",2:"USB",3:"Draadloos"},grant_permission:"Toestemming verlenen",desktop_notification_permission_not_granted:"Toestemming voor desktopmeldingen is niet verleend.",desktop_notification_permission_grant_title:"Toestemming verlenen voor desktopmeldingen",desktop_notification_permission_grant_message:`1. Klik op het hangslotsymbool in de adresbalk. 2. Open "Site-instellingen" of "Machtigingen". 3. Zoek "Meldingen" en wijzig het naar "Toestaan".`,sort:"Sorteren",sort_by:{date_asc:"Oudste datum eerst",date_desc:"Nieuwste datum eerst",size_asc:"Kleinste eerst",size_desc:"Grootste eerst",name_asc:"Naam (A tot Z)",name_desc:"Naam (Z tot A)"},print:"Afdrukken",cancel:"Annuleren",ok:"OK",connection_timeout:"Verbinding is verlopen",save:"Opslaan",saving:"Opslaan...",saved:"Opgeslagen",status:"Status",enabled:"Ingeschakeld",updated:"Bijgewerkt",enable:"Inschakelen",deleted:"Verwijderd",create:"Creëren",listening_port:"Luisterende poort",edit:"Bewerken",delete:"Verwijderen",actions:"Acties",running:"Actief",stopped:"Gestopt",basic:"Basis",name:"Naam",address:"Adres",yes:"Ja",no:"Nee",my_phone:"Mijn telefoon",me:"Ik",password:"Wachtwoord",chat_input_hint:"Wat denk je?",release_to_send_file:"Loslaten om bestand te verzenden",confirm_to_delete_name:'Bevestigen om "{name}" te verwijderen?',confirm_to_delete:"Bevestigen om te verwijderen?",valid:{string_min:"Minimaal {min} karakters",required:"Dit veld is verplicht"},theme:{title:"Thema",system:"Standaard van het systeem",light:"Licht",dark:"Donker"},language:{title:"Taal",system:"Standaard van het systeem"},exchange:{data_date:"Datum"},education:{memorize_words:"Woorden onthouden"},log_in:"Inloggen",logging_in:"Inloggen...",login:{to_continue:"Tik op de Accepteren-knop op je telefoon om door te gaan.",failed:"Inloggen mislukt, zorg ervoor dat je telefoon niet in de slaapstand staat.",rejected:"Inlogverzoek is afgewezen.",invalid_password:"Onjuist wachtwoord."},failed_connect_ws:"Verbinding met WebSocket mislukt. Start de app opnieuw en probeer het opnieuw.",header_actions:{language:"Taal wijzigen",theme:"Thema wijzigen",tasks:"Taken",audios:"Audio",logout:"Uitloggen",notifications:"Meldingen"},page_title:{home:"Startpagina",wireguard:"WireGuard",network:"Netwerk",wifi:"Wi-Fi",rules:"Regels",routes:"Routes",devices:"Apparaten",messages:"Berichten",contacts:"Contacten",calls:"Oproepen",apps:"Apps",files:"Bestanden",audios:"Audio",videos:"Video's",images:"Afbeeldingen",books:"Boeken",feeds:"Feeds",notes:"Notities",json_viewer:"JSON-viewer",qrcode_generator:"QR-code generator",trash:"Prullenbak",aichats:"ChatGPT",screen_mirror:"Scherm spiegelen",device_info:"Apparaatinfo"},wireguard:{},wifi:{ssid:"Naam",hide_ssid:"Netwerk verbergen"},manufacturer:"Fabrikant",mac_address:"MAC-adres",ip_address:"IP-adres",online:"Online",offline:"Offline",unknown:"Onbekend",created_at:"Aangemaakt op",updated_at:"Bijgewerkt op",active_at:"Actief op",rename:"Hernoemen",apply_to:"Toepassen op",direction:"Richting",match:"Overeenkomst",inbound:"Inkomend",outbound:"Uitgaand",target_type:{ip:"IP-adres",net:"Subnet",dns:"Domein",remote_port:"Externe poort",internet:"Internet",iface:"Lokaal netwerk",list:"Doellijst"},all_devices:"Alle apparaten",network:"Netwerk",allow:"Toestaan",block:"Blokkeer",description:"Beschrijving",notes:"Notities",rule_inbound:"{action} verkeer van {target}",rule_outbound:"{action} verkeer naar {target}",for_example:"bijv.",invalid_value:"Ongeldige waarde",space:" ",remote_port:"externe poort {port}",all_local_networks:"Alle lokale netwerken",examples_ip:`Voorbeelden 10.10.10.2 @@ -3083,7 +3083,7 @@ example.com:80,443–453`,examples_remote_port:`Voorbeelden 1419 1001–1024`,route_description:"Verkeer naar {target} routeren via {if_name}",traffic_to:"Verkeer naar",route_via:"Routeren via",delete_message:"Bericht verwijderen",social:"Sociaal",messages:"Berichten",contacts:"Contacten",calls:"Oproepen",storage:"Opslag",files:"Bestanden",music:"Muziek",videos:"Video's",images:"Afbeeldingen",audios:"Audio",content:"Inhoud",from:"Van",type:"Type",time:"Tijd",message_type:{1:"Inbox",2:"Verzonden",3:"Concepten",4:"Verzenden",inbox:"Inbox",sent:"Verzonden",outbox:"Verzenden",drafts:"Concept"},artist:"Artiest",sms_address:"Adres",phone_numbers:"Telefoonnummers",telephone:"Telefoon",custom:"Aangepast",website:"Website",email:"E-mail",phone_number:"Telefoonnummer",add_field:"Veld toevoegen",im:"IM",contact:{phone_number_type:{1:"Thuis",2:"Mobiel",3:"Werk",4:"Werk fax",5:"Thuis fax",6:"Pager",7:"Overig",8:"Terugbelverzoek",9:"Auto",10:"Bedrijf hoofd",11:"ISDN",12:"Hoofd",13:"Overige fax",14:"Radio",15:"Telex",16:"TTY TDD",17:"Werk mobiel",18:"Werk pager",19:"Assistent",20:"MMS"},email_type:{1:"Thuis",2:"Werk",3:"Overig",4:"Mobiel"},address_type:{1:"Thuis",2:"Werk",3:"Overig"},event_type:{1:"Jubileum",2:"Overig",3:"Verjaardag"},im_type:{0:"AIM",1:"Windows Live",2:"Yahoo",3:"Skype",4:"QQ",5:"Hangouts",6:"ICQ",7:"Jabber",8:"NetMeeting"},website_type:{1:"Startpagina",2:"Blog",3:"Profiel",4:"Thuis",5:"Werk",6:"FTP",7:"Overig"}},call_type:{1:"Inkomend",2:"Uitgaand",3:"Gemist",4:"Voicemail",5:"Afgewezen",6:"Geblokkeerd",incoming:"Inkomend",outgoing:"Uitgaand",missed:"Gemist"},app_type:{user:"Gebruiker",system:"Systeem"},first_name:"Voornaam",last_name:"Achternaam",middle_name:"Tussennaam",prefix:"Voorvoegsel",suffix:"Achtervoegsel",browser_warning:"Wij raden aan de nieuwste versie van de Chrome webbrowser te gebruiken.",no_permission:'Geen toestemming. Ga naar APP > "Web op PC" om de toestemmingen in te schakelen en vernieuw de pagina.',no_data:"Geen gegevens.",loading:"Laden...",duration:"Duur",started_at:"Gestart op",phone_geo:"GEO",avatar:"Avatar",phone_isp_type:{1:"China Mobile",2:"China Unicom",3:"China Telecom",4:"China Unicom Virtual",5:"China Telecom Virtual",6:"China Mobile Virtual"},storage_free_total:"{free} beschikbaar van {total}",current_path:"Huidige pad",create_folder:"Map aanmaken",upload_files:"Bestanden uploaden",upload_folder:"Map uploaden",preview:"Voorbeeld",view:"Bekijken",upload:"Uploaden",download:"Downloaden",copy:"Kopiëren",paste:"Plakken",cut:"Knippen",duplicate:"Dupliceren",properties:"Eigenschappen",show_hidden:"Verborgen items weergeven",select_mode:"Selecteer modus",modified_at:"Aangepast op",file_size:"Bestandsgrootte",path:"Pad",open:"Openen",box_is_null:"Selecteer eerst een vak in de app en probeer het opnieuw",battery_left:"Batterij {percentage}%",invalid_file_signature:"Ongeldige bestandssignatuur",no_task:"Geen taak",upload_status:{created:"Wachten",pending:"Uploaden",saving:"Opslaan",done:"Geüpload",error:"Uploaden mislukt"},load_failed:"Laden van {name} mislukt",network_error:"Netwerkfout, kan geen verbinding maken met de API",web_access_disabled:'Webtoegang is momenteel uitgeschakeld. Open alstublieft PlainApp > pictogram rechtsboven 💻 > pagina "Web op pc" en tik op de schakelaar "Inschakelen".',play:"Afspelen",add_to_playlist:"Toevoegen aan afspeellijst",added_to_playlist:"Toegevoegd aan afspeellijst!",select_first:"Selecteer eerst!",search_hint:"Zoeken...",keywords:"Sleutelwoorden",search:"Zoeken",tags:"Tags",add_to_tags:"Toevoegen aan tags",remove_from_tags:"Verwijderen van tags",delete_files:"Bestanden verwijderen",clear_list:"Lijst wissen",select_tags:"Tags selecteren",tools:"Hulpmiddelen",json_viewer:"JSON-viewer",qrcode_generator:"QR-code generator",title:"Titel",restore:"Herstellen",trash:"Prullenbak",move_to_trash:"Naar prullenbak verplaatsen",work:"Werk",expand_all:"Alles uitvouwen",collapse_all:"Alles samenvouwen",all:"Alles",manage:"Beheren",subscriptions:"Abonnementen",published_at:"Gepubliceerd op",source:"Bron",view_original_article:"Origineel artikel bekijken",add:"Toevoegen",add_tag:"Tag toevoegen",add_subscription:"Abonnement toevoegen",import_opml_file:"OPML-bestand importeren",export_opml_file:"OPML-bestand exporteren",rss_url:"RSS URL",imported:"Geïmporteerd",update_subscription:"Abonnement bijwerken",sync_feeds:"Feeds synchroniseren",sync_content:"Inhoud synchroniseren",feeds_synced:"Feeds gesynchroniseerd",syncing:"Synchroniseren...",meta_no_title:"[Geen titel]",no_content:"[Geen inhoud]",confirm:"Bevestigen",upload_audios:"Je kunt uploaden in de Muziekmap of een andere map.",upload_videos:"Je kunt uploaden in de Videomap of een andere map.",upload_images:"Je kunt uploaden in de Afbeeldingenmap of een andere map.",no_files:"Geen bestanden",view_origin_image:"Originele afbeelding bekijken",new_chat:"Nieuwe chat",ai:"AI",config:"Configuratie",api_key:"API-sleutel",apps:"Apps",version:"Versie",size:"Grootte",recents:"Recent",internal_storage:"Interne opslag",sdcard:"SD-kaart",recent_files:"Recente bestanden",installed_at:"Geïnstalleerd op",screen_mirror:"Scherm spiegelen",try_again:"Probeer opnieuw",stop_mirror:"Spiegelen stoppen",fullscreen:"Volledig scherm",deleting:"Verwijderen...",uninstalling:"Verwijderen...",uninstall:"Verwijderen",install:"Installeren",sending:"Verzenden…",usb_storage:"USB-opslag",folders:"Mappen",color:"Kleur",make_a_phone_call:"Telefoongesprek voeren",view_as_list:"Lijstweergave",view_as_grid:"Rasterweergave",pause:"Pauze",playlist:"Afspeellijst",no_api_key:"Geen API-sleutel",refresh:"Vernieuwen",info:"Info",zoom_in:"Inzoomen",zoom_out:"Uitzoomen",resize:"Formaat wijzigen",rotate_left:"Linksom draaien",rotate_right:"Rechtsom draaien",close:"Sluiten",close_other_tabs:"Andere tabbladen sluiten",close_tabs_to_the_right:"Tabbladen aan de rechterkant sluiten",relaunch_app:"App opnieuw starten",all_items_on_this_page_are_selected:"Alle {count} items op deze pagina zijn geselecteerd.",all_items_are_selected:"Alle {count} items zijn geselecteerd.",select_all_items:"Selecteer alle {count} items",clear_selection:"Selectie wissen",screen_mirror_request_permission_failed:"Je hebt PlainApp geen toestemming gegeven om schermafbeeldingen te maken.",screen_mirror_request_permission:`Tik op "Nu starten" op je telefoon. Als het toestemmingsvenster niet wordt weergegeven, start je PlainApp opnieuw. -Probeer het over {seconds} seconden opnieuw`},_ae={app_name:"PlainApp",troubleshoot:"Risoluzione dei problemi",fix_disconnect_tips:"Se la connessione si interrompe costantemente, prova a mantenere lo schermo del telefono acceso o a collegare l'adattatore USB a una presa di corrente.",fetch_content_automatically:"Recupera contenuto automaticamente",call:"Chiamata",call_phone:"Chiamata telefonica",web_socket_reconnecting:"WebSocket si sta riconnettendo...",device_info:"Informazioni sul dispositivo",basic_info:"Informazioni di base",device_name:"Nome dispositivo",model:"Modello",device:"Dispositivo",board:"Scheda",hardware:"Hardware",brand:"Marca",build_fingerprint:"Impronta build",system:"Sistema",android_version:"Versione Android",security_patch:"Patch di sicurezza",bootloader:"Bootloader",build_number:"Numero build",baseband:"Baseband",kernel:"Kernel",java_vm:"Java VM",opengl_es:"OpenGL ES",uptime:"Tempo di attività",battery:"Batteria",health:"Salute",level:"Livello",remaining:"Rimanente",power_source:"Sorgente di alimentazione",technology:"Tecnologia",temperature:"Temperatura",voltage:"Voltaggio",capacity:"Capacità",battery_health:{1:"Sconosciuto",2:"Buono",3:"Surriscaldato",4:"Morto",5:"Sovratensione",6:"Guasto non specificato",7:"Freddo"},battery_status:{1:"Sconosciuto",2:"In carica",3:"In scarica",4:"Non in carica",5:"Pieno"},battery_plugged:{0:"Batteria",1:"AC",2:"USB",3:"Wireless"},grant_permission:"Concedi permesso",desktop_notification_permission_not_granted:"Il permesso di notifica desktop non è stato concesso.",desktop_notification_permission_grant_title:"Concedi autorizzazione per le notifiche desktop",desktop_notification_permission_grant_message:`1. Fai clic sull'icona del lucchetto nella barra degli indirizzi. +Probeer het over {seconds} seconden opnieuw`},gae={app_name:"PlainApp",troubleshoot:"Risoluzione dei problemi",fix_disconnect_tips:"Se la connessione si interrompe costantemente, prova a mantenere lo schermo del telefono acceso o a collegare l'adattatore USB a una presa di corrente.",fetch_content_automatically:"Recupera contenuto automaticamente",call:"Chiamata",call_phone:"Chiamata telefonica",web_socket_reconnecting:"WebSocket si sta riconnettendo...",device_info:"Informazioni sul dispositivo",basic_info:"Informazioni di base",device_name:"Nome dispositivo",model:"Modello",device:"Dispositivo",board:"Scheda",hardware:"Hardware",brand:"Marca",build_fingerprint:"Impronta build",system:"Sistema",android_version:"Versione Android",security_patch:"Patch di sicurezza",bootloader:"Bootloader",build_number:"Numero build",baseband:"Baseband",kernel:"Kernel",java_vm:"Java VM",opengl_es:"OpenGL ES",uptime:"Tempo di attività",battery:"Batteria",health:"Salute",level:"Livello",remaining:"Rimanente",power_source:"Sorgente di alimentazione",technology:"Tecnologia",temperature:"Temperatura",voltage:"Voltaggio",capacity:"Capacità",battery_health:{1:"Sconosciuto",2:"Buono",3:"Surriscaldato",4:"Morto",5:"Sovratensione",6:"Guasto non specificato",7:"Freddo"},battery_status:{1:"Sconosciuto",2:"In carica",3:"In scarica",4:"Non in carica",5:"Pieno"},battery_plugged:{0:"Batteria",1:"AC",2:"USB",3:"Wireless"},grant_permission:"Concedi permesso",desktop_notification_permission_not_granted:"Il permesso di notifica desktop non è stato concesso.",desktop_notification_permission_grant_title:"Concedi autorizzazione per le notifiche desktop",desktop_notification_permission_grant_message:`1. Fai clic sull'icona del lucchetto nella barra degli indirizzi. 2. Apri "Impostazioni sito" o "Permessi". 3. Trova "Notifiche" e cambialo su "Consenti".`,sort:"Ordina",sort_by:{date_asc:"Data più antica prima",date_desc:"Data più recente prima",size_asc:"Più piccolo prima",size_desc:"Più grande prima",name_asc:"Nome (A a Z)",name_desc:"Nome (Z a A)"},print:"Stampa",cancel:"Annulla",ok:"OK",connection_timeout:"Connessione scaduta",save:"Salva",saving:"Salvataggio",saved:"Salvato",status:"Stato",enabled:"Abilitato",updated:"Aggiornato",enable:"Abilita",deleted:"Eliminato",create:"Crea",listening_port:"Porta di ascolto",edit:"Modifica",delete:"Elimina",actions:"Azioni",running:"In esecuzione",stopped:"Fermato",basic:"Base",name:"Nome",address:"Indirizzo",yes:"Sì",no:"No",my_phone:"Il mio telefono",me:"Me",password:"Password",chat_input_hint:"Cosa hai in mente?",release_to_send_file:"Rilascia per inviare file",confirm_to_delete_name:'Conferma eliminazione di "{name}"?',confirm_to_delete:"Conferma eliminazione?",valid:{string_min:"Almeno {min} caratteri",required:"Questo campo è obbligatorio"},theme:{title:"Tema",system:"Predefinito del sistema",light:"Chiaro",dark:"Scuro"},language:{title:"Lingua",system:"Predefinito del sistema"},exchange:{data_date:"Data"},education:{memorize_words:"Memorizza parole"},log_in:"Accedi",logging_in:"Accesso in corso",login:{to_continue:"Tocca il pulsante Accetta sul tuo telefono per continuare.",failed:"Accesso fallito, assicurati che il tuo telefono non sia in modalità sleep.",rejected:"Richiesta di accesso rifiutata.",invalid_password:"Password errata."},failed_connect_ws:"Impossibile connettersi a WebSocket. Si prega di riavviare l'applicazione e riprovare.",header_actions:{language:"Cambia lingua",theme:"Cambia tema",tasks:"Attività",audios:"Audio",logout:"Logout",notifications:"Notifiche"},page_title:{home:"Home",wireguard:"WireGuard",network:"Rete",wifi:"Wi-Fi",rules:"Regole",routes:"Percorsi",devices:"Dispositivi",messages:"Messaggi",contacts:"Contatti",calls:"Chiamate",apps:"Applicazioni",files:"File",audios:"Audio",videos:"Video",images:"Immagini",books:"Libri",feeds:"Feed",notes:"Note",json_viewer:"Visualizzatore JSON",qrcode_generator:"Generatore di codici QR",trash:"Cestino",aichats:"ChatGPT",screen_mirror:"Screen Mirror",device_info:"Informazioni sul dispositivo"},wireguard:{},wifi:{ssid:"Nome",hide_ssid:"Nascondi rete"},manufacturer:"Produttore",mac_address:"Indirizzo MAC",ip_address:"Indirizzo IP",online:"Online",offline:"Offline",unknown:"Sconosciuto",created_at:"Creato il",updated_at:"Aggiornato il",active_at:"Attivo il",rename:"Rinomina",apply_to:"Applica a",direction:"Direzione",match:"Corrispondenza",inbound:"In ingresso",outbound:"In uscita",target_type:{ip:"Indirizzo IP",net:"Sottorete",dns:"Dominio",remote_port:"Porta remota",internet:"Internet",iface:"Rete locale",list:"Elenco target"},all_devices:"Tutti i dispositivi",network:"Rete",allow:"Consenti",block:"Blocca",description:"Descrizione",notes:"Note",rule_inbound:"{action} traffico da {target}",rule_outbound:"{action} traffico verso {target}",for_example:"ad esempio",invalid_value:"Valore non valido",space:" ",remote_port:"porta remota {port}",all_local_networks:"Tutte le reti locali",examples_ip:`Esempi 10.10.10.2 @@ -3100,7 +3100,7 @@ example.com:80,443–453`,examples_remote_port:`Esempi 1419 1001–1024`,route_description:"Instrada il traffico verso {target} tramite {if_name}",traffic_to:"Traffico verso",route_via:"Instrada verso",delete_message:"Elimina messaggio",social:"Social",messages:"Messaggi",contacts:"Contatti",calls:"Chiamate",storage:"Archiviazione",files:"File",music:"Musica",videos:"Video",images:"Immagini",audios:"Audio",content:"Contenuto",from:"Da",type:"Tipo",time:"Orario",message_type:{1:"Posta in arrivo",2:"Inviato",3:"Bozze",4:"Posta in uscita",inbox:"Posta in arrivo",sent:"Inviato",outbox:"Posta in uscita",drafts:"Bozza"},artist:"Artista",sms_address:"Indirizzo SMS",phone_numbers:"Numeri di telefono",telephone:"Telefono",custom:"Personalizzato",website:"Sito web",email:"Email",phone_number:"Numero di telefono",add_field:"Aggiungi campo",im:"IM",contact:{phone_number_type:{1:"Casa",2:"Mobile",3:"Lavoro",4:"Fax del lavoro",5:"Fax di casa",6:"Localizzatore",7:"Altro",8:"Richiamata",9:"Auto",10:"Principale aziendale",11:"ISDN",12:"Principale",13:"Altro fax",14:"Radio",15:"Telex",16:"TTY TDD",17:"Cellulare del lavoro",18:"Localizzatore del lavoro",19:"Assistente",20:"MMS"},email_type:{1:"Casa",2:"Lavoro",3:"Altro",4:"Mobile"},address_type:{1:"Casa",2:"Lavoro",3:"Altro"},event_type:{1:"Anniversario",2:"Altro",3:"Compleanno"},im_type:{0:"AIM",1:"Windows Live",2:"Yahoo",3:"Skype",4:"QQ",5:"Hangouts",6:"ICQ",7:"Jabber",8:"NetMeeting"},website_type:{1:"Homepage",2:"Blog",3:"Profilo",4:"Casa",5:"Lavoro",6:"FTP",7:"Altro"}},call_type:{1:"In entrata",2:"In uscita",3:"Persa",4:"Segreteria telefonica",5:"Rifiutata",6:"Bloccata",incoming:"In entrata",outgoing:"In uscita",missed:"Persa"},app_type:{user:"Utente",system:"Sistema"},first_name:"Nome",last_name:"Cognome",middle_name:"Secondo nome",prefix:"Prefisso",suffix:"Suffisso",browser_warning:"Si consiglia di utilizzare l'ultima versione del browser web Chrome",no_permission:'Nessun permesso. Vai su APP > "Web su PC" per abilitare i permessi e aggiorna la pagina.',no_data:"Nessun dato.",loading:"Caricamento...",duration:"Durata",started_at:"Iniziato il",phone_geo:"GEO",avatar:"Avatar",phone_isp_type:{1:"Cina Mobile",2:"Cina Unicom",3:"Cina Telecom",4:"Cina Uicom Virtuale",5:"Cina Telecom Virtuale",6:"Cina Mobile Virtuale"},storage_free_total:"{free} disponibili di {total}",current_path:"Percorso corrente",create_folder:"Crea cartella",upload_files:"Carica file",upload_folder:"Carica cartella",preview:"Anteprima",view:"Visualizza",upload:"Carica",download:"Scarica",copy:"Copia",paste:"Incolla",cut:"Taglia",duplicate:"Duplica",properties:"Proprietà",show_hidden:"Mostra nascosti",select_mode:"Modalità selezione",modified_at:"Modificato il",file_size:"Dimensione del file",path:"Percorso",open:"Apri",box_is_null:"Seleziona una casella nell'applicazione e riprova",battery_left:"Batteria {percentage}%",invalid_file_signature:"Firma del file non valida",no_task:"Nessun compito",upload_status:{created:"In attesa",pending:"Caricamento",saving:"Salvataggio",done:"Caricato",error:"Caricamento non riuscito"},load_failed:"Caricamento di {name} non riuscito",network_error:"Errore di rete, impossibile connettersi all'API",web_access_disabled:`L'accesso web è attualmente disabilitato. Per favore, apri PlainApp > icona in alto a destra 💻 > pagina "Web su PC" e tocca l'interruttore "Abilita".`,play:"Riproduci",add_to_playlist:"Aggiungi alla playlist",added_to_playlist:"Aggiunto alla playlist!",select_first:"Seleziona prima!",search_hint:"Cerca...",keywords:"Parole chiave",search:"Cerca",tags:"Tag",add_to_tags:"Aggiungi ai tag",remove_from_tags:"Rimuovi dai tag",delete_files:"Elimina file",clear_list:"Svuota elenco",select_tags:"Seleziona tag",tools:"Strumenti",json_viewer:"Visualizzatore JSON",qrcode_generator:"Generatore di codici QR",title:"Titolo",restore:"Ripristina",trash:"Cestino",move_to_trash:"Sposta nel cestino",work:"Lavoro",expand_all:"Espandi tutto",collapse_all:"Comprimi tutto",all:"Tutti",manage:"Gestisci",subscriptions:"Abbonamenti",published_at:"Pubblicato il",source:"Origine",view_original_article:"Visualizza articolo originale",add:"Aggiungi",add_tag:"Aggiungi tag",add_subscription:"Aggiungi abbonamento",import_opml_file:"Importa file OPML",export_opml_file:"Esporta file OPML",rss_url:"URL RSS",imported:"Importato",update_subscription:"Aggiorna abbonamento",sync_feeds:"Sincronizza feed",sync_content:"Sincronizza contenuto",feeds_synced:"Feed sincronizzati",syncing:"Sincronizzazione in corso...",meta_no_title:"[Nessun titolo]",no_content:"[Nessun contenuto]",confirm:"Conferma",upload_audios:"Puoi caricare nella cartella Musica o in altre cartelle.",upload_videos:"Puoi caricare nella cartella Video o in altre cartelle.",upload_images:"Puoi caricare nella cartella Immagini o in altre cartelle.",no_files:"Nessun file",view_origin_image:"Visualizza immagine originale",new_chat:"Nuova chat",ai:"IA",config:"Configurazione",api_key:"Chiave API",apps:"Applicazioni",version:"Versione",size:"Dimensione",recents:"Recenti",internal_storage:"Archiviazione interna",sdcard:"Scheda SD",recent_files:"File recenti",installed_at:"Installato il",screen_mirror:"Espezione schermo",try_again:"Riprova",stop_mirror:"Ferma espezione",fullscreen:"Schermo intero",deleting:"Eliminazione in corso...",uninstalling:"Disinstallazione in corso...",uninstall:"Disinstalla",install:"Installa",sending:"Invio…",usb_storage:"Archiviazione USB",folders:"Cartelle",color:"Colore",make_a_phone_call:"Fai una chiamata",view_as_list:"Visualizza come elenco",view_as_grid:"Visualizza come griglia",pause:"Pausa",playlist:"Playlist",no_api_key:"Nessuna chiave API",refresh:"Aggiorna",info:"Info",zoom_in:"Ingrandisci",zoom_out:"Riduci",resize:"Ridimensiona",rotate_left:"Ruota a sinistra",rotate_right:"Ruota a destra",close:"Chiudi",close_other_tabs:"Chiudi altre schede",close_tabs_to_the_right:"Chiudi schede a destra",relaunch_app:"Rilancia l'applicazione",all_items_on_this_page_are_selected:"Tutti gli {count} elementi in questa pagina sono selezionati.",all_items_are_selected:"Tutti gli {count} elementi sono selezionati.",select_all_items:"Seleziona tutti gli {count} elementi",clear_selection:"Cancella la selezione",screen_mirror_request_permission_failed:"Non hai concesso il permesso a PlainApp di effettuare screenshot.",screen_mirror_request_permission:`Tocca "Avvia ora" sul telefono. Se la finestra dei permessi non viene visualizzata, riavvia PlainApp. -Riprova tra {seconds} secondi.`},yae={app_name:"प्लेन ऐप",troubleshoot:"ट्रबलशूट",fix_disconnect_tips:"अगर कनेक्शन बार-बार कट रहा है, तो अपने फ़ोन की स्क्रीन को जगाए रखने या USB एडॉप्टर को बिजली के आउटलेट में प्लग करने का प्रयास करें।",fetch_content_automatically:"ऑटोमेटिकली कंटेंट लोड करें",call:"कॉल",call_phone:"फोन पर कॉल",web_socket_reconnecting:"वेब सॉकेट रीकनेक्टिंग...",device_info:"डिवाइस जानकारी",basic_info:"मौलिक जानकारी",device_name:"डिवाइस नाम",model:"मॉडल",device:"डिवाइस",board:"बोर्ड",hardware:"हार्डवेयर",brand:"ब्रांड",build_fingerprint:"बिल्ड फिंगरप्रिंट",system:"सिस्टम",android_version:"एंड्रॉयड संस्करण",security_patch:"सुरक्षा पैच",bootloader:"बूटलोडर",build_number:"बिल्ड नंबर",baseband:"बेसबैंड",kernel:"कर्नेल",java_vm:"जावा वीएम",opengl_es:"ओपनजीएल ईएस",uptime:"अपटाइम",battery:"बैटरी",health:"स्वास्थ्य",level:"स्तर",remaining:"शेष",power_source:"शक्ति स्रोत",technology:"तकनीक",temperature:"तापमान",voltage:"वोल्टेज",capacity:"क्षमता",battery_health:{1:"अज्ञात",2:"अच्छा",3:"ओवरहीट",4:"मृत",5:"ओवर वोल्टेज",6:"अनिर्दिष्ट असफलता",7:"ठंडा"},battery_status:{1:"अज्ञात",2:"चार्ज हो रहा है",3:"डिस्चार्ज हो रहा है",4:"चार्ज नहीं हो रहा है",5:"पूरा"},battery_plugged:{0:"बैटरी",1:"एसी",2:"यूएसबी",3:"वायरलेस"},grant_permission:"अनुमति दें",desktop_notification_permission_not_granted:"डेस्कटॉप नोटिफिकेशन अनुमति प्रदान नहीं की गई है।",desktop_notification_permission_grant_title:"डेस्कटॉप सूचना के लिए अनुमति दें",desktop_notification_permission_grant_message:`1. पता बार में पैडलॉक आइकन पर क्लिक करें। +Riprova tra {seconds} secondi.`},_ae={app_name:"प्लेन ऐप",troubleshoot:"ट्रबलशूट",fix_disconnect_tips:"अगर कनेक्शन बार-बार कट रहा है, तो अपने फ़ोन की स्क्रीन को जगाए रखने या USB एडॉप्टर को बिजली के आउटलेट में प्लग करने का प्रयास करें।",fetch_content_automatically:"ऑटोमेटिकली कंटेंट लोड करें",call:"कॉल",call_phone:"फोन पर कॉल",web_socket_reconnecting:"वेब सॉकेट रीकनेक्टिंग...",device_info:"डिवाइस जानकारी",basic_info:"मौलिक जानकारी",device_name:"डिवाइस नाम",model:"मॉडल",device:"डिवाइस",board:"बोर्ड",hardware:"हार्डवेयर",brand:"ब्रांड",build_fingerprint:"बिल्ड फिंगरप्रिंट",system:"सिस्टम",android_version:"एंड्रॉयड संस्करण",security_patch:"सुरक्षा पैच",bootloader:"बूटलोडर",build_number:"बिल्ड नंबर",baseband:"बेसबैंड",kernel:"कर्नेल",java_vm:"जावा वीएम",opengl_es:"ओपनजीएल ईएस",uptime:"अपटाइम",battery:"बैटरी",health:"स्वास्थ्य",level:"स्तर",remaining:"शेष",power_source:"शक्ति स्रोत",technology:"तकनीक",temperature:"तापमान",voltage:"वोल्टेज",capacity:"क्षमता",battery_health:{1:"अज्ञात",2:"अच्छा",3:"ओवरहीट",4:"मृत",5:"ओवर वोल्टेज",6:"अनिर्दिष्ट असफलता",7:"ठंडा"},battery_status:{1:"अज्ञात",2:"चार्ज हो रहा है",3:"डिस्चार्ज हो रहा है",4:"चार्ज नहीं हो रहा है",5:"पूरा"},battery_plugged:{0:"बैटरी",1:"एसी",2:"यूएसबी",3:"वायरलेस"},grant_permission:"अनुमति दें",desktop_notification_permission_not_granted:"डेस्कटॉप नोटिफिकेशन अनुमति प्रदान नहीं की गई है।",desktop_notification_permission_grant_title:"डेस्कटॉप सूचना के लिए अनुमति दें",desktop_notification_permission_grant_message:`1. पता बार में पैडलॉक आइकन पर क्लिक करें। 2. "साइट सेटिंग्स" या "अनुमतियाँ" खोलें। 3. "अधिसूचनाएँ" खोजें और इसे "अनुमति दें" पर बदलें।`,sort:"सॉर्ट",sort_by:{date_asc:"सबसे पुरानी तारीख पहले",date_desc:"सबसे नई तारीख पहले",size_asc:"सबसे छोटा पहले",size_desc:"सबसे बड़ा पहले",name_asc:"नाम (ए से जेड तक)",name_desc:"नाम (जेड से ए तक)"},print:"प्रिंट",cancel:"कैंसिल",ok:"ओके",connection_timeout:"कनेक्शन समय समाप्त हो गया है",save:"सेव",saving:"सेविंग",saved:"सेव्ड",status:"स्टेटस",enabled:"इनेबल्ड",updated:"अपडेटेड",enable:"इनेबल",deleted:"डिलिटेड",create:"क्रिएट",listening_port:"लिसनिंग पोर्ट",edit:"एडिट",delete:"डिलीट",actions:"एक्शन्स",running:"रनिंग",stopped:"स्टोप्पड़",basic:"बेसिक",name:"नाम",address:"एड्रेस",yes:"यस",no:"नो",my_phone:"माय फ़ोन",me:"में",password:"पासवर्ड",chat_input_hint:"आपके मन में क्या है?",release_to_send_file:"रिलीज टू सेंड फाइल",confirm_to_delete_name:'कन्फर्म टू डिलीट "{name}"?',confirm_to_delete:"कन्फर्म टू डिलीट?",valid:{string_min:"{min} से कम नहीं",required:"यह क्षेत्र आवश्यक है"},theme:{title:"थीम",system:"सिस्टम डिफ़ॉल्ट",light:"लाइट",dark:"डार्क"},language:{title:"भाषा",system:"सिस्टम डिफ़ॉल्ट"},exchange:{data_date:"डेट"},education:{memorize_words:"शब्दों को याद करें"},log_in:"लॉग इन करें",logging_in:"लॉग इन हो रहा है",login:{to_continue:"आगे बढ़ने के लिए एक्सेप्ट बटन दबाएं.",failed:"लॉगिन फेल्ड,कृपया सुनिश्चित करें कि आपका फ़ोन स्लीप मोड में नहीं है.",rejected:"लॉगिन रिक्वेस्ट इस रिजेक्टेड.",invalid_password:"गलत पासवर्ड."},failed_connect_ws:"WebSocket से कनेक्ट करने में विफल। कृपया एप्लिकेशन को पुनः आरंभ करें और पुनः प्रयास करें।",header_actions:{language:"भाषा बदले",theme:"थीम बदले ",tasks:"टास्क",audios:"ऑडियो",logout:"लॉगआउट",notifications:"नोटिफिकेशन्स"},page_title:{home:"होम",wireguard:"wireguard",network:"नेटवर्क",wifi:"वाई-फाई",rules:"रूल्स",routes:"रुट्स",devices:"डिवाइसेस",messages:"मैसेजेस",contacts:"कॉन्टेक्ट्स",calls:"कॉल्स",apps:"ऐप्प्स",files:"फाइल्स",audios:"ऑडियो",videos:"वीडियोस",images:"इमेजेज",books:"बुक्स",feeds:"फीड्स",notes:"नोट्स",json_viewer:"JSON व्यूअर",qrcode_generator:"Qrकोड जनरेटर",trash:"ट्रैश",aichats:"ChatGPT",screen_mirror:"स्क्रीन मिरर",device_info:"डिवाइस इन्फो"},wireguard:{},wifi:{ssid:"नाम",hide_ssid:"हाईड नेटवर्क"},manufacturer:"मैन्युफैक्चरर",mac_address:"MAC एड्रेस",ip_address:"आई पी एड्रेस",online:"ऑनलाइन",offline:"ऑफलाइन",unknown:"अननोन",created_at:"क्रिएटेड ऍट",updated_at:"अपडेटेड ऍट",active_at:"एक्टिव ऍट",rename:"नाम बदलें",apply_to:"अप्लाई करें",direction:"डायरेक्शन",match:"मैच",inbound:"इनबाउंड",outbound:"आउटबाउंड",target_type:{ip:"आई पी एड्रेस",net:"सबनेट",dns:"डोमेन",remote_port:"रिमोट पोर्ट",internet:"इंटरनेट",iface:"लोकल नेटवर्क",list:"टारगेट लिस्ट"},all_devices:"ऑल डिवाइसेस",network:"नेटवर्क",allow:"अल्लोव",block:"ब्लॉक",description:"डिस्क्रिप्शन",notes:"नोट्स",rule_inbound:"{action} ट्रैफिक फ्रॉम {target}",rule_outbound:"{action} ट्रैफिक टू {target}",for_example:"उ.दा.",invalid_value:"इनवैलिड वैल्यू",space:" ",remote_port:"रिमोट पोर्ट {port}",all_local_networks:"ऑल लोकल नेटवर्क्स",examples_ip:`उदाहरण 10.10.10.2 @@ -3117,7 +3117,7 @@ example.com:80,443–453`,examples_remote_port:`उदाहरण 1419 1001–1024`,route_description:"रूट ट्रैफिक टू {target} द्वारा {if_name}",traffic_to:"ट्रैफिक टू",route_via:"रूट टू",delete_message:"डिलीट मैसेज",social:"सोशल",messages:"मैसेजेस",contacts:"कॉन्टेक्ट्स",calls:"कॉल्स",storage:"स्टोरेज",files:"फाइल्स",music:"म्यूजिक",videos:"वीडियोस",images:"इमेजेज",audios:"ऑडियो",content:"कंटेंट",from:"फ्रॉम",type:"टाइप",time:"टाइम",message_type:{1:"इनबॉक्स",2:"सेंट",3:"ड्राफ्ट्स",4:"आउटबॉक्स",inbox:"इनबॉक्स",sent:"सेंट",outbox:"आउटबॉक्स",drafts:"ड्राफ्ट्स"},artist:"आर्टिस्ट",sms_address:"एड्रेस",phone_numbers:"फ़ोन नंबर्स",telephone:"टेलीफोन",custom:"कस्टम",website:"वेबसाइट",email:"ईमेल",phone_number:"फ़ोन नंबर",add_field:"ऐड फील्ड",im:"IM",contact:{phone_number_type:{1:"होम",2:"मोबाइल",3:"वर्क",4:"वर्क फैक्स",5:"होम फैक्स",6:"पेजर",7:"इतर",8:"कालबैक",9:"कार",10:"कंपनी मेन",11:"ISDN",12:"मेन",13:"इतर फैक्स",14:"रेडियो",15:"टेलेक्स",16:"TTY TDD",17:"वर्क मोबाइल",18:"वर्क पेजर",19:"असिस्टेंट",20:"MMS"},email_type:{1:"होम",2:"वर्क",3:"इतर",4:"मोबाइल"},address_type:{1:"होम",2:"वर्क",3:"इतर"},event_type:{1:"एनिवर्सरी",2:"इतर",3:"बर्थडे"},im_type:{0:"एआईएम",1:"विंडोज लाइव",2:"याहू",3:"स्काइप",4:"QQ",5:"हैंगआउट्स",6:"ICQ",7:"जब्बर",8:"नेटमीटिंग"},website_type:{1:"होमपेज",2:"ब्लॉग",3:"प्रोफाइल",4:"होम",5:"वर्क",6:"FTP",7:"इतर"}},call_type:{1:"इनकमिंग",2:"आउटगोइंग",3:"मिस्ड",4:"वॉइसमेल",5:"रिजेक्टेड",6:"ब्लॉक्ड",incoming:"इनकमिंग",outgoing:"आउटगोइंग",missed:"मिस्ड"},app_type:{user:"यूजर",system:"सिस्टम"},first_name:"पहिला नाम",last_name:"अंतिम नाम",middle_name:"मध्य नाम",prefix:"प्रीफिक्स",suffix:"सफिक्स",browser_warning:"वेब ब्राउज़र के नये वरजन का उपयोग करें.",no_permission:'अनुमति नहीं है। कृपया "वेब ऑन पीसी" पर जाएं और परमिशन चालू करे और पेज को रिफ्रेश करें.',no_data:"नो डाटा.",loading:"लोडिंग...",duration:"डूरेशन",started_at:"स्टार्टेड ऍट",phone_geo:"GEO",avatar:"अवतार",phone_isp_type:{1:"चीन मोबाइल",2:"चीन यूनिकॉम",3:"चीन टेलीकॉम",4:"चीन यूनिकॉम वर्चुअल",5:"चीन टेलीकॉम वर्चुअल",6:"चीन मोबाइल वर्चुअल"},storage_free_total:"{free} अवेलेबल ऑफ़ {total}",current_path:"करंट जगा",create_folder:"क्रिएट फोल्डर",upload_files:"अपलोड फाइल्स",upload_folder:"अपलोड फोल्डर",preview:"प्रीविव",view:"वीव",upload:"अपलोड",download:"डाउनलोड",copy:"कॉपी",paste:"पेस्ट",cut:"कट",duplicate:"डुप्लीकेट",properties:"प्रॉपर्टीज",show_hidden:"शो हिडन",select_mode:"सिलेक्ट मोड",modified_at:"मॉडिफाइड ऍट",file_size:"फाइल साइज",path:"जगा",open:"ओपन",box_is_null:"कृपया ऐप में एक बॉक्स का चयन करें और फिर से कोशिश करें",battery_left:"बैटरी {percentage}%",invalid_file_signature:"इनवैलिड फाइल सिग्नेचर",no_task:"नो टास्क",upload_status:{created:"वेटिंग",pending:"अप्लोडिंग",saving:"सेविंग",done:"अप्लोडेड",error:"अपलोड फेल्ड"},load_failed:"लोड {name} फेल्ड",network_error:"नेटवर्क एरर, API से कनेक्ट नहीं हो सकता है ",web_access_disabled:'वेब एक्सेस वर्तमान में अक्षम है। कृपया PlainApp > ऊपर के 💻 आइकन > "पीसी पर वेब" पृष्ठ खोलें और "सक्षम" स्विच टैप करें।',play:"प्ले",add_to_playlist:"ऐड टू प्लेलिस्ट",added_to_playlist:"एडेड टू प्लेलिस्ट!",select_first:"सिलेक्ट फर्स्ट!",search_hint:"सर्च…",keywords:"कीवर्ड्स",search:"सर्च",tags:"टैग्स",add_to_tags:"ऐड टू टैग्स",remove_from_tags:"रिमूव फ्रॉम टैग्स",delete_files:"डिलीट फाइल्स",clear_list:"क्लियर लिस्ट",select_tags:"सिलेक्ट टैग्स",tools:"टूल्स",json_viewer:"JSON व्यूअर",qrcode_generator:"QrCode जनरेटर",title:"टाइटल",restore:"रिस्टोर",trash:"ट्रैश",move_to_trash:"मूव टू ट्रैश",work:"वर्क",expand_all:"एक्सपैंड ऑल",collapse_all:"कोलॅप्स ऑल",all:"ऑल",manage:"मैनेज",subscriptions:"सुब्स्क्रिप्शन्स",published_at:"पब्लिश्ड ऐट",source:"सोर्स",view_original_article:"व्यू ओरिजिनल आर्टिकल",add:"ऐड",add_tag:"ऐड टैग",add_subscription:"ऐड सब्सक्रिप्शन",import_opml_file:"इम्पोर्ट OPML फाइल",export_opml_file:"एक्सपोर्ट OPML फाइल",rss_url:"RSS URL",imported:"इम्पोर्टेड",update_subscription:"अपडेट सब्सक्रिप्शन",sync_feeds:"सिंक फीड्स",sync_content:"सिंक कंटेंट",feeds_synced:"फीड्स सिंक्ड",syncing:"सिंकिंग...",meta_no_title:"[नो टाइटल]",no_content:"[नो कंटेंट]",confirm:"कन्फर्म",upload_audios:"आप म्यूजिक फ़ोल्डर या किसी अन्य फ़ोल्डर में अपलोड कर सकते हैं.",upload_videos:"आप वीडियो फ़ोल्डर या किसी अन्य फ़ोल्डर में अपलोड कर सकते हैं.",upload_images:"आप पिक्चर्स फ़ोल्डर या किसी अन्य फ़ोल्डर में अपलोड कर सकते हैं.",no_files:"नो फाइल्स",view_origin_image:"व्यू ओरिजिन इमेज",new_chat:"नई चैट",ai:"AI ",config:"कॉन्फिग",api_key:"API की",apps:"ऐप्प्स",version:"वरजन",size:"साइज",recents:"रीसेंट्स",internal_storage:"इंटरनल स्टोरेज",sdcard:"एस-डी कार्ड",recent_files:"रीसेंट फाइल्स",installed_at:"इंस्टॉल्ड ऍट",screen_mirror:"स्क्रीन मिरर",try_again:"ट्राय अगेन",stop_mirror:"स्टॉप मिरर",fullscreen:"फुलस्क्रीन",deleting:"डिलेटिंग…",uninstalling:"अनइंस्टॉलिंग…",uninstall:"अनइंस्टॉल",install:"इंस्टॉल",sending:"भेज रहा हूँ…",usb_storage:"यूएसबी स्टोरेज",folders:"फोल्डर्स",color:"कलर",make_a_phone_call:"फोन कॉल",view_as_list:"व्यू एस लिस्ट",view_as_grid:"व्यू एस ग्रिड",pause:"पॉज",playlist:"प्लेलिस्ट",no_api_key:"एपीआई की नहीं",refresh:"रिफ्रेश",info:"इन्फो",zoom_in:"जूम इन",zoom_out:"जूम आउट",resize:"रीसाइज़",rotate_left:"रोटेट लेफ्ट",rotate_right:"रोटेट राइट",close:"क्लोज़",close_other_tabs:"क्लोज़ अदर टैब्स",close_tabs_to_the_right:"क्लोज़ टैब्स टू द राइट",relaunch_app:"रीलांच ऐप",all_items_on_this_page_are_selected:"इस पृष्ठ पर सभी {count} आइटम चयनित हैं।",all_items_are_selected:"सभी {count} आइटम चयनित हैं।",select_all_items:"सभी {count} आइटम चुनें",clear_selection:"चयन साफ़ करें",screen_mirror_request_permission_failed:"आपने प्लेनएप को स्क्रीनशॉट लेने की परमिशन नहीं दी है.",screen_mirror_request_permission:`कृपया फ़ोन पर "स्टार्ट नाउ" पर टैप करें. यदि परमिशन विंडो डिस्प्लै नहीं होती है, तो प्लेनएप को फिर से लॉन्च करें. -फिर से कोशिश करें {seconds} सेकण्ड्स`},bae={app_name:"PlainApp",troubleshoot:"Dépannage",fix_disconnect_tips:"Si la connexion est constamment interrompue, essayez de garder l'écran de votre téléphone allumé ou de brancher l'adaptateur USB sur une prise de courant.",fetch_content_automatically:"Récupérer le contenu automatiquement",call:"Appel",call_phone:"Appeler par téléphone",web_socket_reconnecting:"Reconnexion WebSocket en cours...",device_info:"Informations sur l'appareil",basic_info:"Informations de base",device_name:"Nom de l'appareil",model:"Modèle",device:"Appareil",board:"Carte",hardware:"Matériel",brand:"Marque",build_fingerprint:"Empreinte de build",system:"Système",android_version:"Version Android",security_patch:"Correctif de sécurité",bootloader:"Chargeur d'amorçage",build_number:"Numéro de build",baseband:"Bande de base",kernel:"Noyau",java_vm:"Machine virtuelle Java",opengl_es:"OpenGL ES",uptime:"Temps de fonctionnement",battery:"Batterie",health:"Santé",level:"Niveau",remaining:"Restant",power_source:"Source d'alimentation",technology:"Technologie",temperature:"Température",voltage:"Tension",capacity:"Capacité",battery_health:{1:"Inconnu",2:"Bon",3:"Surchauffe",4:"Mort",5:"Surtension",6:"Défaillance non spécifiée",7:"Froid"},battery_status:{1:"Inconnu",2:"En charge",3:"Décharge",4:"Non en charge",5:"Complet"},battery_plugged:{0:"Batterie",1:"CA",2:"USB",3:"Sans fil"},grant_permission:"Accorder la permission",desktop_notification_permission_not_granted:"La permission de notification du bureau n'a pas été accordée.",desktop_notification_permission_grant_title:"Accorder l'autorisation pour les notifications du bureau",desktop_notification_permission_grant_message:`1. Cliquez sur l'icône du cadenas dans la barre d'adresse. +फिर से कोशिश करें {seconds} सेकण्ड्स`},yae={app_name:"PlainApp",troubleshoot:"Dépannage",fix_disconnect_tips:"Si la connexion est constamment interrompue, essayez de garder l'écran de votre téléphone allumé ou de brancher l'adaptateur USB sur une prise de courant.",fetch_content_automatically:"Récupérer le contenu automatiquement",call:"Appel",call_phone:"Appeler par téléphone",web_socket_reconnecting:"Reconnexion WebSocket en cours...",device_info:"Informations sur l'appareil",basic_info:"Informations de base",device_name:"Nom de l'appareil",model:"Modèle",device:"Appareil",board:"Carte",hardware:"Matériel",brand:"Marque",build_fingerprint:"Empreinte de build",system:"Système",android_version:"Version Android",security_patch:"Correctif de sécurité",bootloader:"Chargeur d'amorçage",build_number:"Numéro de build",baseband:"Bande de base",kernel:"Noyau",java_vm:"Machine virtuelle Java",opengl_es:"OpenGL ES",uptime:"Temps de fonctionnement",battery:"Batterie",health:"Santé",level:"Niveau",remaining:"Restant",power_source:"Source d'alimentation",technology:"Technologie",temperature:"Température",voltage:"Tension",capacity:"Capacité",battery_health:{1:"Inconnu",2:"Bon",3:"Surchauffe",4:"Mort",5:"Surtension",6:"Défaillance non spécifiée",7:"Froid"},battery_status:{1:"Inconnu",2:"En charge",3:"Décharge",4:"Non en charge",5:"Complet"},battery_plugged:{0:"Batterie",1:"CA",2:"USB",3:"Sans fil"},grant_permission:"Accorder la permission",desktop_notification_permission_not_granted:"La permission de notification du bureau n'a pas été accordée.",desktop_notification_permission_grant_title:"Accorder l'autorisation pour les notifications du bureau",desktop_notification_permission_grant_message:`1. Cliquez sur l'icône du cadenas dans la barre d'adresse. 2. Ouvrez "Paramètres du site" ou "Autorisations". 3. Trouvez "Notifications" et changez-le en "Autoriser".`,sort:"Trier",sort_by:{date_asc:"Date la plus ancienne en premier",date_desc:"Date la plus récente en premier",size_asc:"Plus petit en premier",size_desc:"Plus grand en premier",name_asc:"Nom (A à Z)",name_desc:"Nom (Z à A)"},print:"Imprimer",cancel:"Annuler",ok:"OK",connection_timeout:"La connexion a expiré",save:"Enregistrer",saving:"Enregistrement en cours",saved:"Enregistré",status:"Statut",enabled:"Activé",updated:"Mis à jour",enable:"Activer",deleted:"Supprimé",create:"Créer",listening_port:"Port d'écoute",edit:"Modifier",delete:"Supprimer",actions:"Actions",running:"En cours",stopped:"Arrêté",basic:"Basique",name:"Nom",address:"Adresse",yes:"Oui",no:"Non",my_phone:"Mon téléphone",me:"Moi",password:"Mot de passe",chat_input_hint:"Qu'avez-vous en tête ?",release_to_send_file:"Relâchez pour envoyer le fichier",confirm_to_delete_name:'Confirmer la suppression de "{name}" ?',confirm_to_delete:"Confirmer la suppression ?",valid:{string_min:"Au moins {min} caractères",required:"Ce champ est obligatoire"},theme:{title:"Thème",system:"Par défaut du système",light:"Clair",dark:"Sombre"},language:{title:"Langue",system:"Par défaut du système"},exchange:{data_date:"Date"},education:{memorize_words:"Mémoriser des mots"},log_in:"Se connecter",logging_in:"Connexion en cours",login:{to_continue:"Appuyez sur le bouton Accepter sur votre téléphone pour continuer.",failed:"Échec de la connexion, assurez-vous que votre téléphone n'est pas en mode veille.",rejected:"La demande de connexion a été rejetée.",invalid_password:"Mot de passe incorrect."},failed_connect_ws:"Échec de la connexion au WebSocket. Veuillez relancer l'application et réessayer.",header_actions:{language:"Changer de langue",theme:"Changer de thème",tasks:"Tâches",audios:"Audio",logout:"Se déconnecter",notifications:"Notifications"},page_title:{home:"Accueil",wireguard:"WireGuard",network:"Réseau",wifi:"Wi-Fi",rules:"Règles",routes:"Itinéraires",devices:"Appareils",messages:"Messages",contacts:"Contacts",calls:"Appels",apps:"Applications",files:"Fichiers",audios:"Audio",videos:"Vidéos",images:"Images",books:"Livres",feeds:"Flux",notes:"Notes",json_viewer:"Visionneuse JSON",qrcode_generator:"Générateur de codes QR",trash:"Corbeille",aichats:"ChatGPT",screen_mirror:"Miroir d'écran",device_info:"Informations sur l'appareil"},wireguard:{},wifi:{ssid:"Nom",hide_ssid:"Masquer le réseau"},manufacturer:"Fabricant",mac_address:"Adresse MAC",ip_address:"Adresse IP",online:"En ligne",offline:"Hors ligne",unknown:"Inconnu",created_at:"Créé le",updated_at:"Mis à jour le",active_at:"Actif le",rename:"Renommer",apply_to:"Appliquer à",direction:"Direction",match:"Correspondance",inbound:"Entrant",outbound:"Sortant",target_type:{ip:"Adresse IP",net:"Sous-réseau",dns:"Domaine",remote_port:"Port distant",internet:"Internet",iface:"Réseau local",list:"Liste des cibles"},all_devices:"Tous les appareils",network:"Réseau",allow:"Autoriser",block:"Bloquer",description:"Description",notes:"Notes",rule_inbound:"{action} le trafic depuis {target}",rule_outbound:"{action} le trafic vers {target}",for_example:"par exemple",invalid_value:"Valeur invalide",space:" ",remote_port:"port distant {port}",all_local_networks:"Tous les réseaux locaux",examples_ip:`Exemples 10.10.10.2 @@ -3134,7 +3134,7 @@ exemple.com:80,443–453`,examples_remote_port:`Exemples 1419 1001–1024`,route_description:"Routage du trafic vers {target} via {if_name}",traffic_to:"Trafic vers",route_via:"Routé via",delete_message:"Supprimer le message",social:"Social",messages:"Messages",contacts:"Contacts",calls:"Appels",storage:"Stockage",files:"Fichiers",music:"Musique",videos:"Vidéos",images:"Images",audios:"Audio",content:"Contenu",from:"De",type:"Type",time:"Heure",message_type:{1:"Boîte de réception",2:"Envoyé",3:"Brouillons",4:"Boîte de sortie",inbox:"Boîte de réception",sent:"Envoyé",outbox:"Boîte de sortie",drafts:"Brouillon"},artist:"Artiste",sms_address:"Adresse",phone_numbers:"Numéros de téléphone",telephone:"Téléphone",custom:"Personnalisé",website:"Site web",email:"E-mail",phone_number:"Numéro de téléphone",add_field:"Ajouter un champ",im:"IM",contact:{phone_number_type:{1:"Domicile",2:"Mobile",3:"Travail",4:"Fax du travail",5:"Fax à domicile",6:"Localisateur",7:"Autre",8:"Rappel",9:"Voiture",10:"Ligne principale de l'entreprise",11:"ISDN",12:"Principal",13:"Autre fax",14:"Radio",15:"Télex",16:"TTY TDD",17:"Mobile au travail",18:"Localisateur au travail",19:"Assistant",20:"MMS"},email_type:{1:"Domicile",2:"Travail",3:"Autre",4:"Mobile"},address_type:{1:"Domicile",2:"Travail",3:"Autre"},event_type:{1:"Anniversaire",2:"Autre",3:"Anniversaire"},im_type:{0:"AIM",1:"Windows Live",2:"Yahoo",3:"Skype",4:"QQ",5:"Hangouts",6:"ICQ",7:"Jabber",8:"NetMeeting"},website_type:{1:"Page d'accueil",2:"Blog",3:"Profil",4:"Domicile",5:"Travail",6:"FTP",7:"Autre"}},call_type:{1:"Entrant",2:"Sortant",3:"Manqué",4:"Boîte vocale",5:"Rejeté",6:"Bloqué",incoming:"Entrant",outgoing:"Sortant",missed:"Manqué"},app_type:{user:"Utilisateur",system:"Système"},first_name:"Prénom",last_name:"Nom de famille",middle_name:"Deuxième prénom",prefix:"Préfixe",suffix:"Suffixe",browser_warning:"Il est recommandé d'utiliser la dernière version du navigateur web Chrome.",no_permission:'Pas de permission. Veuillez accéder à APP > "Web en PC" pour activer les autorisations et actualisez la page.',no_data:"Pas de données.",loading:"Chargement en cours...",duration:"Durée",started_at:"Commencé le",phone_geo:"GEO",avatar:"Avatar",phone_isp_type:{1:"China Mobile",2:"China Unicom",3:"China Telecom",4:"China Unicom virtuel",5:"China Telecom virtuel",6:"China Mobile virtuel"},storage_free_total:"{free} disponibles sur {total}",current_path:"Chemin actuel",create_folder:"Créer un dossier",upload_files:"Télécharger des fichiers",upload_folder:"Télécharger un dossier",preview:"Aperçu",view:"Voir",upload:"Télécharger",download:"Télécharger",copy:"Copier",paste:"Coller",cut:"Couper",duplicate:"Dupliquer",properties:"Propriétés",show_hidden:"Afficher les fichiers cachés",select_mode:"Mode de sélection",modified_at:"Modifié le",file_size:"Taille du fichier",path:"Chemin",open:"Ouvrir",box_is_null:"Veuillez sélectionner une boîte dans l'application et réessayer.",battery_left:"Batterie à {percentage}%",invalid_file_signature:"Signature de fichier non valide",no_task:"Pas de tâche",upload_status:{created:"En attente",pending:"Téléchargement en cours",saving:"Enregistrement en cours",done:"Téléchargé",error:"Erreur de téléchargement"},load_failed:"Échec du chargement de {name}",network_error:"Erreur réseau, impossible de se connecter à l'API",web_access_disabled:`L'accès au Web est actuellement désactivé. Veuillez ouvrir PlainApp > icône en haut à droite 💻 > page "Web sur PC" et appuyez sur l'interrupteur "Activer".`,play:"Lecture",add_to_playlist:"Ajouter à la liste de lecture",added_to_playlist:"Ajouté à la liste de lecture",select_first:"Sélectionner d'abord",search_hint:"Rechercher...",keywords:"Mots-clés",search:"Rechercher",tags:"Étiquettes",add_to_tags:"Ajouter aux étiquettes",remove_from_tags:"Supprimer des étiquettes",delete_files:"Supprimer des fichiers",clear_list:"Vider la liste",select_tags:"Sélectionner des étiquettes",tools:"Outils",json_viewer:"Visionneuse JSON",qrcode_generator:"Générateur de codes QR",title:"Titre",restore:"Restaurer",trash:"Corbeille",move_to_trash:"Déplacer vers la corbeille",work:"Travail",expand_all:"Tout développer",collapse_all:"Tout réduire",all:"Tous",manage:"Gérer",subscriptions:"Abonnements",published_at:"Publié le",source:"Source",view_original_article:"Voir l'article original",add:"Ajouter",add_tag:"Ajouter une étiquette",add_subscription:"Ajouter un abonnement",import_opml_file:"Importer un fichier OPML",export_opml_file:"Exporter un fichier OPML",rss_url:"URL du flux RSS",imported:"Importé",update_subscription:"Mettre à jour l'abonnement",sync_feeds:"Synchroniser les flux",sync_content:"Synchroniser le contenu",feeds_synced:"Flux synchronisés",syncing:"Synchronisation en cours...",meta_no_title:"[Pas de titre]",no_content:"[Pas de contenu]",confirm:"Confirmer",upload_audios:"Vous pouvez télécharger dans le dossier Musique ou dans un autre dossier.",upload_videos:"Vous pouvez télécharger dans le dossier Vidéos ou dans un autre dossier.",upload_images:"Vous pouvez télécharger dans le dossier Images ou dans un autre dossier.",no_files:"Pas de fichiers",view_origin_image:"Voir l'image originale",new_chat:"Nouveau chat",ai:"IA",config:"Configuration",api_key:"Clé API",apps:"Applications",version:"Version",size:"Taille",recents:"Récents",internal_storage:"Stockage interne",sdcard:"Carte SD",recent_files:"Fichiers récents",installed_at:"Installé le",screen_mirror:"Miroir d'écran",try_again:"Réessayer",stop_mirror:"Arrêter le miroir",fullscreen:"Plein écran",deleting:"Suppression en cours...",uninstalling:"Désinstallation en cours...",uninstall:"Désinstaller",install:"Installer",sending:"Envoi…",usb_storage:"Stockage USB",folders:"Dossiers",color:"Couleur",make_a_phone_call:"Passer un appel",view_as_list:"Vue en liste",view_as_grid:"Vue en grille",pause:"Pause",playlist:"Liste de lecture",no_api_key:"Pas de clé API.",refresh:"Rafraîchir",info:"Info",zoom_in:"Zoom avant",zoom_out:"Zoom arrière",resize:"Redimensionner",rotate_left:"Rotation à gauche",rotate_right:"Rotation à droite",close:"Fermer",close_other_tabs:"Fermer les autres onglets",close_tabs_to_the_right:"Fermer les onglets à droite",relaunch_app:"Relancer l'application",all_items_on_this_page_are_selected:"Tous les {count} éléments de cette page sont sélectionnés.",all_items_are_selected:"Tous les {count} éléments sont sélectionnés.",select_all_items:"Sélectionner tous les {count} éléments",clear_selection:"Effacer la sélection",screen_mirror_request_permission_failed:"Vous n'avez pas accordé la permission à PlainApp pour prendre des captures d'écran.",screen_mirror_request_permission:`Veuillez appuyer sur "Commencer maintenant" sur votre téléphone. Si la fenêtre de permission n'apparaît pas, rouvrez PlainApp. -Réessayez dans {seconds} secondes.`},xae={app_name:"PlainApp",troubleshoot:"Устранение неполадок",fix_disconnect_tips:"Если соединение постоянно прерывается, попробуйте не выключать экран телефона или подключить USB-адаптер к электрической розетке.",fetch_content_automatically:"Автоматически получать содержимое",call:"Звонок",call_phone:"Позвонить по телефону",web_socket_reconnecting:"WebSocket переподключается...",device_info:"Информация об устройстве",basic_info:"Основная информация",device_name:"Имя устройства",model:"Модель",device:"Устройство",board:"Плата",hardware:"Аппаратное обеспечение",brand:"Бренд",build_fingerprint:"Отпечаток сборки",system:"Система",android_version:"Версия Android",security_patch:"Патч безопасности",bootloader:"Загрузчик",build_number:"Номер сборки",baseband:"Базовая полоса",kernel:"Ядро",java_vm:"Java VM",opengl_es:"OpenGL ES",uptime:"Время работы",battery:"Батарея",health:"Состояние",level:"Уровень",remaining:"Осталось",power_source:"Источник питания",technology:"Технология",temperature:"Температура",voltage:"Напряжение",capacity:"Емкость",battery_health:{1:"Неизвестно",2:"Хорошо",3:"Перегрев",4:"Вышедшая из строя",5:"Перенапряжение",6:"Неуказанная ошибка",7:"Холодно"},battery_status:{1:"Неизвестно",2:"Заряжается",3:"Разряжается",4:"Не заряжается",5:"Полный"},battery_plugged:{0:"Батарея",1:"Сеть",2:"USB",3:"Беспроводное"},grant_permission:"Предоставить разрешение",desktop_notification_permission_not_granted:"Разрешение на уведомления на рабочем столе не предоставлено.",desktop_notification_permission_grant_title:"Предоставить разрешение на уведомления на рабочем столе",desktop_notification_permission_grant_message:`1. Щелкните по значку замка в адресной строке. +Réessayez dans {seconds} secondes.`},bae={app_name:"PlainApp",troubleshoot:"Устранение неполадок",fix_disconnect_tips:"Если соединение постоянно прерывается, попробуйте не выключать экран телефона или подключить USB-адаптер к электрической розетке.",fetch_content_automatically:"Автоматически получать содержимое",call:"Звонок",call_phone:"Позвонить по телефону",web_socket_reconnecting:"WebSocket переподключается...",device_info:"Информация об устройстве",basic_info:"Основная информация",device_name:"Имя устройства",model:"Модель",device:"Устройство",board:"Плата",hardware:"Аппаратное обеспечение",brand:"Бренд",build_fingerprint:"Отпечаток сборки",system:"Система",android_version:"Версия Android",security_patch:"Патч безопасности",bootloader:"Загрузчик",build_number:"Номер сборки",baseband:"Базовая полоса",kernel:"Ядро",java_vm:"Java VM",opengl_es:"OpenGL ES",uptime:"Время работы",battery:"Батарея",health:"Состояние",level:"Уровень",remaining:"Осталось",power_source:"Источник питания",technology:"Технология",temperature:"Температура",voltage:"Напряжение",capacity:"Емкость",battery_health:{1:"Неизвестно",2:"Хорошо",3:"Перегрев",4:"Вышедшая из строя",5:"Перенапряжение",6:"Неуказанная ошибка",7:"Холодно"},battery_status:{1:"Неизвестно",2:"Заряжается",3:"Разряжается",4:"Не заряжается",5:"Полный"},battery_plugged:{0:"Батарея",1:"Сеть",2:"USB",3:"Беспроводное"},grant_permission:"Предоставить разрешение",desktop_notification_permission_not_granted:"Разрешение на уведомления на рабочем столе не предоставлено.",desktop_notification_permission_grant_title:"Предоставить разрешение на уведомления на рабочем столе",desktop_notification_permission_grant_message:`1. Щелкните по значку замка в адресной строке. 2. Откройте "Настройки сайта" или "Разрешения". 3. Найдите "Уведомления" и измените на "Разрешить".`,sort:"Сортировка",sort_by:{date_asc:"Старые даты вначале",date_desc:"Новые даты вначале",size_asc:"Сначала меньшие",size_desc:"Сначала большие",name_asc:"Имя (А до Я)",name_desc:"Имя (Я до А)"},print:"Печать",cancel:"Отмена",ok:"ОК",connection_timeout:"Время соединения истекло",save:"Сохранить",saving:"Сохранение",saved:"Сохранено",status:"Статус",enabled:"Включено",updated:"Обновлено",enable:"Включить",deleted:"Удалено",create:"Создать",listening_port:"Порт прослушивания",edit:"Редактировать",delete:"Удалить",actions:"Действия",running:"Запущено",stopped:"Остановлено",basic:"Основное",name:"Имя",address:"Адрес",yes:"Да",no:"Нет",my_phone:"Мой телефон",me:"Я",password:"Пароль",chat_input_hint:"Что у вас на уме?",release_to_send_file:"Отпустите, чтобы отправить файл",confirm_to_delete_name:'Подтвердите удаление "{name}"?',confirm_to_delete:"Подтвердите удаление?",valid:{string_min:"Минимум {min} символов",required:"Это поле обязательно"},theme:{title:"Тема",system:"Системная",light:"Светлая",dark:"Темная"},language:{title:"Язык",system:"Системный"},exchange:{data_date:"Дата"},education:{memorize_words:"Запомнить слова"},log_in:"Войти",logging_in:"Вход...",login:{to_continue:'Нажмите кнопку "Принять" на вашем телефоне, чтобы продолжить.',failed:"Ошибка входа. Убедитесь, что ваш телефон не в режиме сна.",rejected:"Запрос на вход отклонен.",invalid_password:"Неправильный пароль."},failed_connect_ws:"Не удалось подключиться к WebSocket. Пожалуйста, перезапустите приложение и попробуйте снова.",header_actions:{language:"Изменить язык",theme:"Изменить тему",tasks:"Задачи",audios:"Аудио",logout:"Выйти",notifications:"Уведомления"},page_title:{home:"Главная",wireguard:"WireGuard",network:"Сеть",wifi:"Wi-Fi",rules:"Правила",routes:"Маршруты",devices:"Устройства",messages:"Сообщения",contacts:"Контакты",calls:"Звонки",apps:"Приложения",files:"Файлы",audios:"Аудио",videos:"Видео",images:"Изображения",books:"Книги",feeds:"Ленты",notes:"Заметки",json_viewer:"Просмотр JSON",qrcode_generator:"Генератор QR-кода",trash:"Корзина",aichats:"Чат с ИИ",screen_mirror:"Зеркало экрана",device_info:"Информация об устройстве"},wireguard:{},wifi:{ssid:"Имя",hide_ssid:"Скрыть сеть"},manufacturer:"Производитель",mac_address:"MAC-адрес",ip_address:"IP-адрес",online:"В сети",offline:"Не в сети",unknown:"Неизвестно",created_at:"Создано",updated_at:"Обновлено",active_at:"Активно",rename:"Переименовать",apply_to:"Применить к",direction:"Направление",match:"Совпадение",inbound:"Входящее",outbound:"Исходящее",target_type:{ip:"IP-адрес",net:"Подсеть",dns:"Домен",remote_port:"Удаленный порт",internet:"Интернет",iface:"Локальная сеть",list:"Список целей"},all_devices:"Все устройства",network:"Сеть",allow:"Разрешить",block:"Заблокировать",description:"Описание",notes:"Заметки",rule_inbound:"{action} трафик с {target}",rule_outbound:"{action} трафик на {target}",for_example:"например",invalid_value:"Недопустимое значение",space:" ",remote_port:"удаленный порт {port}",all_local_networks:"Все локальные сети",examples_ip:`Примеры 10.10.10.2 @@ -3151,7 +3151,7 @@ example.com:80,443–453`,examples_remote_port:`Примеры 1419 1001–1024`,route_description:"Маршрутизация трафика к {target} через {if_name}",traffic_to:"Трафик к",route_via:"Маршрут через",delete_message:"Удалить сообщение",social:"Социальное",messages:"Сообщения",contacts:"Контакты",calls:"Звонки",storage:"Хранилище",files:"Файлы",music:"Музыка",videos:"Видео",images:"Изображения",audios:"Аудио",content:"Содержимое",from:"От",type:"Тип",time:"Время",message_type:{1:"Входящие",2:"Отправленные",3:"Черновики",4:"Исходящие",inbox:"Входящие",sent:"Отправленные",outbox:"Исходящие",drafts:"Черновики"},artist:"Исполнитель",sms_address:"Адрес",phone_numbers:"Номера телефонов",telephone:"Телефон",custom:"Пользовательский",website:"Веб-сайт",email:"Электронная почта",phone_number:"Номер телефона",add_field:"Добавить поле",im:"IM",contact:{phone_number_type:{1:"Домашний",2:"Мобильный",3:"Рабочий",4:"Рабочий факс",5:"Домашний факс",6:"Пейджер",7:"Другой",8:"Обратный вызов",9:"Автомобиль",10:"Основной офис",11:"ISDN",12:"Основной",13:"Другой факс",14:"Радио",15:"Телекс",16:"TTY TDD",17:"Рабочий мобильный",18:"Рабочий пейджер",19:"Ассистент",20:"MMS"},email_type:{1:"Домашний",2:"Рабочий",3:"Другой",4:"Мобильный"},address_type:{1:"Домашний",2:"Рабочий",3:"Другой"},event_type:{1:"Годовщина",2:"Другое",3:"День рождения"},im_type:{0:"AIM",1:"Windows Live",2:"Yahoo",3:"Skype",4:"QQ",5:"Hangouts",6:"ICQ",7:"Jabber",8:"NetMeeting"},website_type:{1:"Домашняя страница",2:"Блог",3:"Профиль",4:"Домашний",5:"Рабочий",6:"FTP",7:"Другой"}},call_type:{1:"Входящий",2:"Исходящий",3:"Пропущенный",4:"Голосовая почта",5:"Отклоненный",6:"Заблокированный",incoming:"Входящий",outgoing:"Исходящий",missed:"Пропущенный"},app_type:{user:"Пользовательское",system:"Системное"},first_name:"Имя",last_name:"Фамилия",middle_name:"Отчество",prefix:"Префикс",suffix:"Суффикс",browser_warning:"Рекомендуется использовать последнюю версию браузера Chrome",no_permission:'Нет разрешения. Пожалуйста, перейдите в раздел "Приложение" > "Веб на ПК", чтобы предоставить разрешения и обновите страницу.',no_data:"Нет данных",loading:"Загрузка...",duration:"Длительность",started_at:"Начало",phone_geo:"Гео",avatar:"Аватар",phone_isp_type:{1:"China Mobile",2:"China Unicom",3:"China Telecom",4:"China Unicom Virtual",5:"China Telecom Virtual",6:"China Mobile Virtual"},storage_free_total:"{free} доступно из {total}",current_path:"Текущий путь",create_folder:"Создать папку",upload_files:"Загрузить файлы",upload_folder:"Загрузить папку",preview:"Просмотр",view:"Просмотр",upload:"Загрузить",download:"Скачать",copy:"Копировать",paste:"Вставить",cut:"Вырезать",duplicate:"Дублировать",properties:"Свойства",show_hidden:"Показать скрытые",select_mode:"Режим выбора",modified_at:"Изменено",file_size:"Размер файла",path:"Путь",open:"Открыть",box_is_null:"Пожалуйста, выберите папку в приложении и попробуйте снова",battery_left:"Заряд батареи {percentage}%",invalid_file_signature:"Недопустимая подпись файла",no_task:"Нет задачи",upload_status:{created:"Ожидание",pending:"Загрузка",saving:"Сохранение",done:"Загружено",error:"Ошибка загрузки"},load_failed:"Не удалось загрузить {name}",network_error:"Ошибка сети, невозможно подключиться к API",web_access_disabled:'Веб-доступ в настоящее время отключен. Пожалуйста, откройте PlainApp > значок рабочего стола в правом верхнем углу 💻 > страницу "Веб на ПК" и переключите переключатель в положение "Включить".',play:"Воспроизвести",add_to_playlist:"Добавить в плейлист",added_to_playlist:"Добавлено в плейлист!",select_first:"Сначала выберите!",search_hint:"Поиск...",keywords:"Ключевые слова",search:"Поиск",tags:"Теги",add_to_tags:"Добавить в теги",remove_from_tags:"Убрать из тегов",delete_files:"Удалить файлы",clear_list:"Очистить список",select_tags:"Выберите теги",tools:"Инструменты",json_viewer:"Просмотр JSON",qrcode_generator:"Генератор QR-кода",title:"Заголовок",restore:"Восстановить",trash:"Корзина",move_to_trash:"Переместить в корзину",work:"Работа",expand_all:"Развернуть все",collapse_all:"Свернуть все",all:"Все",manage:"Управление",subscriptions:"Подписки",published_at:"Опубликовано",source:"Источник",view_original_article:"Посмотреть оригинальную статью",add:"Добавить",add_tag:"Добавить тег",add_subscription:"Добавить подписку",import_opml_file:"Импортировать файл OPML",export_opml_file:"Экспортировать файл OPML",rss_url:"URL RSS",imported:"Импортировано",update_subscription:"Обновить подписку",sync_feeds:"Синхронизировать ленты",sync_content:"Синхронизировать контент",feeds_synced:"Ленты синхронизированы",syncing:"Синхронизация...",meta_no_title:"[Без заголовка]",no_content:"[Нет контента]",confirm:"Подтвердить",upload_audios:'Вы можете загрузить в папке "Музыка" или другой папке.',upload_videos:'Вы можете загрузить в папке "Видео" или другой папке.',upload_images:'Вы можете загрузить в папке "Изображения" или другой папке.',no_files:"Нет файлов",view_origin_image:"Посмотреть исходное изображение",new_chat:"Новый чат",ai:"ИИ",config:"Конфигурация",api_key:"API ключ",apps:"Приложения",version:"Версия",size:"Размер",recents:"Недавние",internal_storage:"Внутреннее хранилище",sdcard:"SD-карта",recent_files:"Последние файлы",installed_at:"Установлено",screen_mirror:"Зеркало экрана",try_again:"Попробуйте снова",stop_mirror:"Остановить зеркало",fullscreen:"Полноэкранный режим",deleting:"Удаление...",uninstalling:"Удаление...",uninstall:"Удалить",install:"Установить",sending:"Отправка…",usb_storage:"USB-накопитель",folders:"Папки",color:"Цвет",make_a_phone_call:"Сделать звонок",view_as_list:"Просмотр в виде списка",view_as_grid:"Просмотр в виде сетки",pause:"Пауза",playlist:"Плейлист",no_api_key:"Нет API ключа",refresh:"Обновить",info:"Информация",zoom_in:"Увеличить",zoom_out:"Уменьшить",resize:"Изменить размер",rotate_left:"Повернуть влево",rotate_right:"Повернуть вправо",close:"Закрыть",close_other_tabs:"Закрыть другие вкладки",close_tabs_to_the_right:"Закрыть вкладки справа",relaunch_app:"Перезапустить приложение",all_items_on_this_page_are_selected:"Все {count} элементов на этой странице выбраны.",all_items_are_selected:"Все {count} элементов выбраны.",select_all_items:"Выбрать все {count} элементов",clear_selection:"Снять выделение",screen_mirror_request_permission_failed:"Вы не предоставили приложению PlainApp разрешение на снятие скриншотов.",screen_mirror_request_permission:`Пожалуйста, нажмите кнопку "Начать сейчас" на телефоне. Если окно запроса разрешения не отображается, перезапустите приложение PlainApp. -Попробуйте снова через {seconds} секунд`},wae={app_name:"PlainApp",troubleshoot:"সমস্যা সমাধান",fix_disconnect_tips:"যদি সংযোগটি বারবার বিচ্ছিন্ন হয়ে যায়, তাহলে আপনার ফোনের স্ক্রীন চালু রাখার চেষ্টা করুন অথবা USB অ্যাডাপ্টারটিকে একটি বিদ্যুৎ সকেট ​​প্লাগ ইন করুন।",fetch_content_automatically:"স্বয়ংক্রিয়ভাবে সামগ্রী পূর্ণ করুন",call:"কল",call_phone:"ফোনে কল",web_socket_reconnecting:"ওয়েবসকেট পুনরায় সংযোগ করা হচ্ছে ...",device_info:"ডিভাইস তথ্য",basic_info:"মৌলিক তথ্য",device_name:"ডিভাইস নাম",model:"মডেল",device:"ডিভাইস",board:"বোর্ড",hardware:"হার্ডওয়্যার",brand:"ব্র্যান্ড",build_fingerprint:"বিল্ড ফিঙ্গারপ্রিন্ট",system:"সিস্টেম",android_version:"এ্যান্ড্রয়েড সংস্করণ",security_patch:"সুরক্ষা প্যাচ",bootloader:"বুটলোডার",build_number:"বিল্ড নাম্বার",baseband:"বেসব্যান্ড",kernel:"কার্নেল",java_vm:"জাভা VM",opengl_es:"OpenGL ES",uptime:"আপটাইম",battery:"ব্যাটারি",health:"স্বাস্থ্য",level:"পর্যায়",remaining:"অবশিষ্ট",power_source:"বৈদ্যুতিন উৎস",technology:"প্রযুক্তি",temperature:"তাপমাত্রা",voltage:"ভোল্টেজ",capacity:"ধারণক্ষমতা",battery_health:{1:"অজানা",2:"ভাল",3:"অধিতাপ",4:"মৃত",5:"অধিভোল্টেজ",6:"অসুনিয়ামিত ব্যর্থতা",7:"ঠান্ডা"},battery_status:{1:"অজানা",2:"চার্জিং",3:"ডিসচার্জিং",4:"চার্জিং হচ্ছে না",5:"পূর্ণ"},battery_plugged:{0:"ব্যাটারি",1:"AC",2:"USB",3:"ওয়ায়ারলেস"},grant_permission:"অনুমতি দিন",desktop_notification_permission_not_granted:"ডেস্কটপ বিজ্ঞপ্তি অনুমতি প্রদান করা হয়নি।",desktop_notification_permission_grant_title:"ডেস্কটপ বিজ্ঞপ্তির জন্য অনুমতি দিন",desktop_notification_permission_grant_message:`1. ঠিকানা বারে প্যাডলক আইকনে ক্লিক করুন। +Попробуйте снова через {seconds} секунд`},xae={app_name:"PlainApp",troubleshoot:"সমস্যা সমাধান",fix_disconnect_tips:"যদি সংযোগটি বারবার বিচ্ছিন্ন হয়ে যায়, তাহলে আপনার ফোনের স্ক্রীন চালু রাখার চেষ্টা করুন অথবা USB অ্যাডাপ্টারটিকে একটি বিদ্যুৎ সকেট ​​প্লাগ ইন করুন।",fetch_content_automatically:"স্বয়ংক্রিয়ভাবে সামগ্রী পূর্ণ করুন",call:"কল",call_phone:"ফোনে কল",web_socket_reconnecting:"ওয়েবসকেট পুনরায় সংযোগ করা হচ্ছে ...",device_info:"ডিভাইস তথ্য",basic_info:"মৌলিক তথ্য",device_name:"ডিভাইস নাম",model:"মডেল",device:"ডিভাইস",board:"বোর্ড",hardware:"হার্ডওয়্যার",brand:"ব্র্যান্ড",build_fingerprint:"বিল্ড ফিঙ্গারপ্রিন্ট",system:"সিস্টেম",android_version:"এ্যান্ড্রয়েড সংস্করণ",security_patch:"সুরক্ষা প্যাচ",bootloader:"বুটলোডার",build_number:"বিল্ড নাম্বার",baseband:"বেসব্যান্ড",kernel:"কার্নেল",java_vm:"জাভা VM",opengl_es:"OpenGL ES",uptime:"আপটাইম",battery:"ব্যাটারি",health:"স্বাস্থ্য",level:"পর্যায়",remaining:"অবশিষ্ট",power_source:"বৈদ্যুতিন উৎস",technology:"প্রযুক্তি",temperature:"তাপমাত্রা",voltage:"ভোল্টেজ",capacity:"ধারণক্ষমতা",battery_health:{1:"অজানা",2:"ভাল",3:"অধিতাপ",4:"মৃত",5:"অধিভোল্টেজ",6:"অসুনিয়ামিত ব্যর্থতা",7:"ঠান্ডা"},battery_status:{1:"অজানা",2:"চার্জিং",3:"ডিসচার্জিং",4:"চার্জিং হচ্ছে না",5:"পূর্ণ"},battery_plugged:{0:"ব্যাটারি",1:"AC",2:"USB",3:"ওয়ায়ারলেস"},grant_permission:"অনুমতি দিন",desktop_notification_permission_not_granted:"ডেস্কটপ বিজ্ঞপ্তি অনুমতি প্রদান করা হয়নি।",desktop_notification_permission_grant_title:"ডেস্কটপ বিজ্ঞপ্তির জন্য অনুমতি দিন",desktop_notification_permission_grant_message:`1. ঠিকানা বারে প্যাডলক আইকনে ক্লিক করুন। 2. "সাইট সেটিংস" বা "অনুমতি" খোলুন। 3. "বিজ্ঞপ্তি" খুঁজে বের করুন এবং এটি পরিবর্তন করুন "অনুমতি দিন"।`,sort:"সাজান",sort_by:{date_asc:"নিম্নতম তারিখ আগে",date_desc:"নতুনতম তারিখ আগে",size_asc:"সবচেয়ে ছোট",size_desc:"সবচেয়ে বড়",name_asc:"নাম (এ থেকে জেড)",name_desc:"নাম (জেড থেকে এ)"},print:"প্রিন্ট",cancel:"বাতিল করুন",ok:"ঠিক আছে",connection_timeout:"সংযোগ সময় আউট হয়েছে",save:"সংরক্ষণ করুন",saving:"সংরক্ষণ হচ্ছে",saved:"সংরক্ষিত",status:"স্থিতি",enabled:"সক্ষম",updated:"আপডেট করা হয়েছে",enable:"সক্ষম করুন",deleted:"মুছে ফেলা হয়েছে",create:"তৈরি করুন",listening_port:"শ্রবণ পোর্ট",edit:"সম্পাদন করুন",delete:"মুছে ফেলুন",actions:"ক্রিয়াকলাপ",running:"চলমান",stopped:"বন্ধ",basic:"মৌলিক",name:"নাম",address:"ঠিকানা",yes:"হ্যাঁ",no:"না",my_phone:"আমার ফোন",me:"আমি",password:"পাসওয়ার্ড",chat_input_hint:"আপনার মনে কি আছে?",release_to_send_file:"ফাইল পাঠাতে মুক্তি দিন",confirm_to_delete_name:'"{name}" মুছতে নিশ্চিত?',confirm_to_delete:"মুছতে নিশ্চিত?",valid:{string_min:"কমপক্ষে {min} টি অক্ষর",required:"এই ক্ষেত্রটি প্রয়োজন"},theme:{title:"থিম",system:"সিস্টেম ডিফল্ট",light:"হালকা",dark:"ডার্ক"},language:{title:"ভাষা",system:"সিস্টেম ডিফল্ট"},exchange:{data_date:"তারিখ"},education:{memorize_words:"শব্দগুলি মনে রাখুন"},log_in:"লগ ইন করুন",logging_in:"লগ ইন হচ্ছে",login:{to_continue:"চালকে যাত্রা শুরু করতে আপনার ফোনে স্বীকৃতি বোতামটি ট্যাপ করুন।",failed:"লগ ইন ব্যর্থ, দয়া করে নিশ্চিত করুন আপনার ফোন শুত্বা মোডে নেই।",rejected:"লগ ইন অনুরোধ বাতিল হয়েছে।",invalid_password:"ভুল পাসওয়ার্ড।"},failed_connect_ws:"ওয়েবসকেটে সংযোগ স্থাপন করতে ব্যর্থ। অনুগ্রহ করে অ্যাপটি পুনরায় চালু করুন এবং আবার চেষ্টা করুন।",header_actions:{language:"ভাষা পরিবর্তন করুন",theme:"থিম পরিবর্তন করুন",tasks:"কার্যসমূহ",audios:"অডিও",logout:"লগআউট",notifications:"বিজ্ঞপ্তি"},page_title:{home:"হোম",wireguard:"ওয়াইয়ারগার্ড",network:"নেটওয়ার্ক",wifi:"ওয়াই-ফাই",rules:"নিয়ম",routes:"রুট",devices:"ডিভাইস",messages:"মেসেজ",contacts:"যোগাযোগ",calls:"কল",apps:"অ্যাপ",files:"ফাইলস",audios:"অডিও",videos:"ভিডিও",images:"ছবি",books:"বই",feeds:"ফিড",notes:"নোটস",json_viewer:"JSON ভিউয়ার",qrcode_generator:"কিউআরকোড জেনারেটর",trash:"ট্র্যাশ",aichats:"চ্যাটজিপিটি",screen_mirror:"স্ক্রীন মিরর",device_info:"ডিভাইস তথ্য"},wireguard:{},wifi:{ssid:"নাম",hide_ssid:"নেটওয়ার্ক লুকান"},manufacturer:"উত্পাদক",mac_address:"ম্যাক ঠিকানা",ip_address:"আইপি ঠিকানা",online:"অনলাইন",offline:"অফলাইন",unknown:"অজানা",created_at:"তৈরি করা হয়েছে",updated_at:"আপডেট করা হয়েছে",active_at:"সক্রিয় হয়েছে",rename:"পুনঃনামকরণ",apply_to:"প্রযুক্ত করুন",direction:"দিক",match:"ম্যাচ",inbound:"ইনবাউন্ড",outbound:"আউটবাউন্ড",target_type:{ip:"আইপি ঠিকানা",net:"সাবনেট",dns:"ডোমেন",remote_port:"রিমোট পোর্ট",internet:"ইন্টারনেট",iface:"স্থানীয় নেটওয়ার্ক",list:"লক্ষ্য তালিকা"},all_devices:"সব ডিভাইস",network:"নেটওয়ার্ক",allow:"অনুমতি",block:"বাধা",description:"বিবরণ",notes:"নোটস",rule_inbound:"{ক্রিয়া} ট্রাফিক {লক্ষ্য} থেকে",rule_outbound:"{ক্রিয়া} ট্রাফিক {লক্ষ্য} এ",for_example:"উদাহরণস্বরূপ",invalid_value:"অবৈধ মান",space:" ",remote_port:"রিমোট পোর্ট {পোর্ট}",all_local_networks:"সব স্থানীয় নেটওয়ার্ক",examples_ip:`উদাহরণ 10.10.10.2 @@ -3168,7 +3168,7 @@ example.com:80,443–453`,examples_remote_port:`উদাহরণ 1419 1001–1024`,route_description:"{লক্ষ্য} প্রয়োজন থাকলে {if_name} এর মাধ্যমে ট্রাফিক পাঠানো হয়",traffic_to:"ট্রাফিক",route_via:"রুট",delete_message:"মেসেজ মুছুন",social:"সোশ্যাল",messages:"মেসেজ",contacts:"যোগাযোগ",calls:"কল",storage:"স্টোরেজ",files:"ফাইলস",music:"সংগীত",videos:"ভিডিও",images:"ছবি",audios:"অডিও",content:"কন্টেন্ট",from:"থেকে",type:"টাইপ",time:"সময়",message_type:{1:"ইনবক্স",2:"প্রেরিত",3:"ড্রাফ্ট",4:"আউটবক্স",inbox:"ইনবক্স",sent:"প্রেরিত",outbox:"আউটবক্স",drafts:"ড্রাফ্ট"},artist:"শিল্পী",sms_address:"ঠিকানা",phone_numbers:"ফোন নম্বর",telephone:"টেলিফোন",custom:"কাস্টম",website:"ওয়েবসাইট",email:"ইমেল",phone_number:"ফোন নম্বর",add_field:"ফিল্ড যোগ করুন",im:"আইএম",contact:{phone_number_type:{1:"বাড়ি",2:"মোবাইল",3:"কাজ",4:"কাজের ফ্যাক্স",5:"বাড়ির ফ্যাক্স",6:"পেজার",7:"অন্যান্য",8:"কলব্যাক",9:"গাড়ি",10:"কোম্পানির মেইন",11:"আইএসডিএন",12:"মেইন",13:"অন্যান্য ফ্যাক্স",14:"রেডিও",15:"টেলেক্স",16:"টিটি টিডি",17:"কাজের মোবাইল",18:"কাজের পেজার",19:"সহায়ক",20:"এমএমএস"},email_type:{1:"বাড়ি",2:"কাজ",3:"অন্যান্য",4:"মোবাইল"},address_type:{1:"বাড়ি",2:"কাজ",3:"অন্যান্য"},event_type:{1:"উদয়পন",2:"অন্যান্য",3:"জন্মদিন"},im_type:{0:"AIM",1:"উইন্ডোজ লাইভ",2:"ইয়াহু",3:"স্কাইপ",4:"কিউকিউ",5:"হ্যাংআউটস",6:"আইসিকিউ",7:"জ্যাবার",8:"নেটমিটিং"},website_type:{1:"হোমপেজ",2:"ব্লগ",3:"প্রোফাইল",4:"বাড়ি",5:"কাজ",6:"এফটিপি",7:"অন্যান্য"}},call_type:{1:"ইনকামিং",2:"আউটগোয়ার্ড",3:"মিস্ট",4:"ভয়েসমেইল",5:"রিজেক্টেড",6:"ব্লকড",incoming:"ইনকামিং",outgoing:"আউটগোয়ার্ড",missed:"মিস্ট"},app_type:{user:"ব্যবহারকারী",system:"সিস্টেম"},first_name:"প্রথম নাম",last_name:"শেষ নাম",middle_name:"মধ্যবর্তী নাম",prefix:"উপসর্গ",suffix:"প্রত্যয়",browser_warning:"সর্বশেষ সংস্করণের ক্রোম ওয়েব ব্রাউজার ব্যবহার করার সুপারিশ করা হচ্ছে",no_permission:'অনুমতি নেই। দয়া করে অনুমতিগুলি সক্রিয় করতে APP > "ওয়েব অন পিসি" এ যান এবং পৃষ্ঠাটি রিফ্রেশ করুন।',no_data:"কোন ডেটা নেই।",loading:"লোড হচ্ছে...",duration:"সময়কাল",started_at:"শুরু হয়েছে",phone_geo:"GEO",avatar:"অবতার",phone_isp_type:{1:"চীনা মোবাইল",2:"চীনা ইউনিকোম",3:"চীনা টেলিকম",4:"চীনা ইউনিকোম ভার্চুয়াল",5:"চীনা টেলিকম ভার্চুয়াল",6:"চীনা মোবাইল ভার্চুয়াল"},storage_free_total:"{free} পাওয়া যাবে এবং {total} মোট",current_path:"বর্তমান পাথ",create_folder:"ফোল্ডার তৈরি করুন",upload_files:"ফাইল আপলোড করুন",upload_folder:"ফোল্ডার আপলোড করুন",preview:"প্রিভিউ",view:"দেখুন",upload:"আপলোড করুন",download:"ডাউনলোড করুন",copy:"কপি",paste:"পেস্ট",cut:"কাট",duplicate:"ডুপ্লিকেট",properties:"বৈশিষ্ট্য",show_hidden:"গোপন দেখান",select_mode:"মোড নির্বাচন করুন",modified_at:"সংশোধিত হয়েছে",file_size:"ফাইলের আকার",path:"পাথ",open:"খোলা",box_is_null:"দয়া করে অ্যাপে একটি বক্স নির্বাচন করে আবার চেষ্টা করুন এবং আবার চেষ্টা করুন",battery_left:"ব্যাটারি {শতাংশ}%",invalid_file_signature:"অবৈধ ফাইল স্বাক্ষর",no_task:"কোন কার্য নেই",upload_status:{created:"অপেক্ষা করছে",pending:"আপলোড হচ্ছে",saving:"সংরক্ষণ হচ্ছে",done:"আপলোড হয়েছে",error:"আপলোড ব্যর্থ হয়েছে"},load_failed:"{নাম} লোড ব্যর্থ হয়েছে",network_error:"নেটওয়ার্ক ত্রুটি, API-তে সংযুক্ত হতে পারে না",web_access_disabled:'ওয়েব এক্সেস বর্তমানে অক্ষম রয়েছে। দয়া করে PlainApp > উপরে ডানদিকে 💻 আইকন > "পিসি উপর ওয়েব" পৃষ্ঠা খোলুন এবং "সক্ষম" সুইচ ট্যাপ করুন।',play:"প্লে",add_to_playlist:"প্লেলিস্টে যোগ করুন",added_to_playlist:"প্লেলিস্টে যোগ করা হয়েছে!",select_first:"প্রথমে নির্বাচন করুন!",search_hint:"অনুসন্ধান করুন…",keywords:"কীওয়ার্ডস",search:"অনুসন্ধান",tags:"ট্যাগ",add_to_tags:"ট্যাগে যোগ করুন",remove_from_tags:"ট্যাগ থেকে সরান",delete_files:"ফাইল মুছুন",clear_list:"তালিকা সাফ করুন",select_tags:"ট্যাগ নির্বাচন করুন",tools:"টুলস",json_viewer:"JSON ভিউয়ার",qrcode_generator:"কিউআরকোড জেনারেটর",title:"শিরোনাম",restore:"পুনরুদ্ধার",trash:"ট্র্যাশ",move_to_trash:"ট্র্যাশে সরান",work:"কাজ",expand_all:"সব বিস্তার করুন",collapse_all:"সব সংকুচিত করুন",all:"সব",manage:"পরিচালনা করুন",subscriptions:"সাবস্ক্রিপশনগুলি",published_at:"প্রকাশিত হয়েছে",source:"উৎস",view_original_article:"মৌলিক নিবন্ধ দেখুন",add:"যোগ করুন",add_tag:"ট্যাগ যোগ করুন",add_subscription:"সাবস্ক্রিপশন যোগ করুন",import_opml_file:"OPML ফাইল আমদানি করুন",export_opml_file:"OPML ফাইল নির্যাতন করুন",rss_url:"RSS URL",imported:"আমদানি করা হয়েছে",update_subscription:"সাবস্ক্রিপশন আপডেট করুন",sync_feeds:"ফিডগুলি সিঙ্ক করুন",sync_content:"সামগ্রী সিঙ্ক করুন",feeds_synced:"ফিডগুলি সিঙ্ক হয়েছে",syncing:"সিঙ্ক হচ্ছে...",meta_no_title:"[কোন শিরোনাম নেই]",no_content:"[কোন সামগ্রী নেই]",confirm:"নিশ্চিত করুন",upload_audios:"আপনি সংগীত ফোল্ডার বা অন্য ফোল্ডারে আপলোড করতে পারেন।",upload_videos:"আপনি ভিডিও ফোল্ডার বা অন্য ফোল্ডারে আপলোড করতে পারেন।",upload_images:"আপনি চিত্র ফোল্ডার বা অন্য ফোল্ডারে আপলোড করতে পারেন।",no_files:"কোন ফাইল নেই",view_origin_image:"মৌলিক চিত্র দেখুন",new_chat:"নতুন চ্যাট",ai:"এআই",config:"কনফিগ",api_key:"API কী",apps:"অ্যাপস",version:"সংস্করণ",size:"আকার",recents:"সাম্প্রতিক",internal_storage:"অভ্যন্তরীণ স্টোরেজ",sdcard:"এসডিকার্ড",recent_files:"সাম্প্রতিক ফাইলগুলি",installed_at:"ইনস্টল হয়েছে",screen_mirror:"স্ক্রিন মিরর",try_again:"আবার চেষ্টা করুন",stop_mirror:"মিরর বন্ধ করুন",fullscreen:"পূর্ণস্ক্রীন",deleting:"মুছে দিচ্ছে...",uninstalling:"আনইনস্টল করা হচ্ছে...",uninstall:"আনইনস্টল করুন",install:"ইনস্টল করুন",sending:"প্রেরণ…",usb_storage:"ইউএসবি স্টোরেজ",folders:"ফোল্ডারগুলি",color:"রঙ",make_a_phone_call:"ফোন করুন",view_as_list:"তালিকা হিসাবে দেখুন",view_as_grid:"গ্রিড হিসাবে দেখুন",pause:"বিরতি",playlist:"প্লেলিস্ট",no_api_key:"কোন API কী নেই",refresh:"রিফ্রেশ",info:"তথ্য",zoom_in:"জুম ইন",zoom_out:"জুম আউট",resize:"আকার পরিবর্তন করুন",rotate_left:"বামে ঘুরান",rotate_right:"ডানে ঘুরান",close:"বন্ধ করুন",close_other_tabs:"অন্যান্য ট্যাব বন্ধ করুন",close_tabs_to_the_right:"ডানদিকের ট্যাবগুলি বন্ধ করুন",relaunch_app:"আবার চালু করুন",all_items_on_this_page_are_selected:"এই পৃষ্ঠায় সব {count} আইটেম নির্বাচিত হয়েছে।",all_items_are_selected:"সমস্ত {count} আইটেম নির্বাচিত হয়েছে।",select_all_items:"সমস্ত {count} আইটেম নির্বাচন করুন",clear_selection:"নির্বাচন সরান",screen_mirror_request_permission_failed:"আপনি PlainApp এ স্ক্রীনশট নেওয়ার অনুমতি দেননি।",screen_mirror_request_permission:`দয়া করে ফোনে এ "এখন শুরু করুন" ট্যাপ করুন। যদি অনুমতি উইন্ডো প্রদর্শিত না হয়, তাহলে দয়া করে PlainApp পুনরায় আরম্ভ করুন। -{সেকেন্ড} সেকেন্ডে আবার চেষ্টা করুন`},Eae={app_name:"EinfacheApp",troubleshoot:"Fehlerbehebung",fix_disconnect_tips:"Wenn die Verbindung ständig unterbrochen wird, versuchen Sie, den Bildschirm Ihres Telefons wach zu halten oder den USB-Adapter an eine Steckdose anzuschließen.",fetch_content_automatically:"Inhalt automatisch abrufen",call:"Anruf",call_phone:"Telefonanruf",web_socket_reconnecting:"WebSocket wird wieder verbunden...",device_info:"Geräteinformationen",basic_info:"Grundlegende Informationen",device_name:"Gerätename",model:"Modell",device:"Gerät",board:"Platine",hardware:"Hardware",brand:"Marke",build_fingerprint:"Build-Fingerabdruck",system:"System",android_version:"Android-Version",security_patch:"Sicherheitspatch",bootloader:"Bootloader",build_number:"Build-Nummer",baseband:"Basisband",kernel:"Kernel",java_vm:"Java VM",opengl_es:"OpenGL ES",uptime:"Betriebszeit",battery:"Batterie",health:"Gesundheit",level:"Level",remaining:"Verbleibend",power_source:"Stromquelle",technology:"Technologie",temperature:"Temperatur",voltage:"Spannung",capacity:"Kapazität",battery_health:{1:"Unbekannt",2:"Gut",3:"Überhitzt",4:"Tot",5:"Überspannung",6:"Nicht näher bezeichneter Fehler",7:"Kalt"},battery_status:{1:"Unbekannt",2:"Lädt",3:"Entlädt",4:"Nicht am Laden",5:"Voll"},battery_plugged:{0:"Batterie",1:"Netz",2:"USB",3:"Kabellos"},grant_permission:"Bitte gewähren Sie die Berechtigung",desktop_notification_permission_not_granted:"Die Berechtigung für Desktop-Benachrichtigungen wurde nicht erteilt.",desktop_notification_permission_grant_title:"Berechtigung für Desktop-Benachrichtigungen erteilen",desktop_notification_permission_grant_message:`1. Klicken Sie auf das Vorhängeschlosssymbol in der Adressleiste. +{সেকেন্ড} সেকেন্ডে আবার চেষ্টা করুন`},wae={app_name:"EinfacheApp",troubleshoot:"Fehlerbehebung",fix_disconnect_tips:"Wenn die Verbindung ständig unterbrochen wird, versuchen Sie, den Bildschirm Ihres Telefons wach zu halten oder den USB-Adapter an eine Steckdose anzuschließen.",fetch_content_automatically:"Inhalt automatisch abrufen",call:"Anruf",call_phone:"Telefonanruf",web_socket_reconnecting:"WebSocket wird wieder verbunden...",device_info:"Geräteinformationen",basic_info:"Grundlegende Informationen",device_name:"Gerätename",model:"Modell",device:"Gerät",board:"Platine",hardware:"Hardware",brand:"Marke",build_fingerprint:"Build-Fingerabdruck",system:"System",android_version:"Android-Version",security_patch:"Sicherheitspatch",bootloader:"Bootloader",build_number:"Build-Nummer",baseband:"Basisband",kernel:"Kernel",java_vm:"Java VM",opengl_es:"OpenGL ES",uptime:"Betriebszeit",battery:"Batterie",health:"Gesundheit",level:"Level",remaining:"Verbleibend",power_source:"Stromquelle",technology:"Technologie",temperature:"Temperatur",voltage:"Spannung",capacity:"Kapazität",battery_health:{1:"Unbekannt",2:"Gut",3:"Überhitzt",4:"Tot",5:"Überspannung",6:"Nicht näher bezeichneter Fehler",7:"Kalt"},battery_status:{1:"Unbekannt",2:"Lädt",3:"Entlädt",4:"Nicht am Laden",5:"Voll"},battery_plugged:{0:"Batterie",1:"Netz",2:"USB",3:"Kabellos"},grant_permission:"Bitte gewähren Sie die Berechtigung",desktop_notification_permission_not_granted:"Die Berechtigung für Desktop-Benachrichtigungen wurde nicht erteilt.",desktop_notification_permission_grant_title:"Berechtigung für Desktop-Benachrichtigungen erteilen",desktop_notification_permission_grant_message:`1. Klicken Sie auf das Vorhängeschlosssymbol in der Adressleiste. 2. Öffnen Sie "Website-Einstellungen" oder "Berechtigungen". 3. Suchen Sie "Benachrichtigungen" und ändern Sie es auf "Zulassen".`,sort:"Sortieren",sort_by:{date_asc:"Älteste zuerst",date_desc:"Neueste zuerst",size_asc:"Kleinste zuerst",size_desc:"Größte zuerst",name_asc:"Name (A bis Z)",name_desc:"Name (Z bis A)"},print:"Drucken",cancel:"Abbrechen",ok:"OK",connection_timeout:"Verbindung ist abgelaufen",save:"Speichern",saving:"Speichern",saved:"Gespeichert",status:"Status",enabled:"Aktiviert",updated:"Aktualisiert",enable:"Aktivieren",deleted:"Gelöscht",create:"Erstellen",listening_port:"Hörender Port",edit:"Bearbeiten",delete:"Löschen",actions:"Aktionen",running:"Ausgeführt",stopped:"Gestoppt",basic:"Grundlegend",name:"Name",address:"Adresse",yes:"Ja",no:"Nein",my_phone:"Mein Handy",me:"Ich",password:"Passwort",chat_input_hint:"Was denkst du gerade?",release_to_send_file:"Loslassen, um Datei zu senden",confirm_to_delete_name:'Löschen von "{name}" bestätigen?',confirm_to_delete:"Löschen bestätigen?",valid:{string_min:"Mindestens {min} Zeichen",required:"Dieses Feld ist erforderlich"},theme:{title:"Thema",system:"Systemstandard",light:"Hell",dark:"Dunkel"},language:{title:"Sprache",system:"Systemstandard"},exchange:{data_date:"Datum"},education:{memorize_words:"Wörter auswendig lernen"},log_in:"Einloggen",logging_in:"Melde mich an",login:{to_continue:"Tippe auf die Akzeptieren-Schaltfläche auf deinem Handy, um fortzufahren.",failed:"Anmeldung fehlgeschlagen, bitte stelle sicher, dass dein Handy nicht im Ruhemodus ist.",rejected:"Anfrage zur Anmeldung wurde abgelehnt.",invalid_password:"Falsches Passwort."},failed_connect_ws:"Verbindung zum WebSocket konnte nicht hergestellt werden. Bitte starten Sie die App neu und versuchen Sie es erneut.",header_actions:{language:"Sprache ändern",theme:"Thema ändern",tasks:"Aufgaben",audios:"Audio",logout:"Abmelden",notifications:"Benachrichtigungen"},page_title:{home:"Startseite",wireguard:"WireGuard",network:"Netzwerk",wifi:"WLAN",rules:"Regeln",routes:"Routen",devices:"Geräte",messages:"Nachrichten",contacts:"Kontakte",calls:"Anrufe",apps:"Apps",files:"Dateien",audios:"Audio",videos:"Videos",images:"Bilder",books:"Bücher",feeds:"Feeds",notes:"Notizen",json_viewer:"JSON-Anzeiger",qrcode_generator:"QR-Code-Generator",trash:"Papierkorb",aichats:"ChatGPT",screen_mirror:"Bildschirmspiegelung",device_info:"Geräteinformationen"},wireguard:{},wifi:{ssid:"Name",hide_ssid:"Netzwerk ausblenden"},manufacturer:"Hersteller",mac_address:"MAC-Adresse",ip_address:"IP-Adresse",online:"Online",offline:"Offline",unknown:"Unbekannt",created_at:"Erstellt am",updated_at:"Aktualisiert am",active_at:"Aktiviert am",rename:"Umbenennen",apply_to:"Anwenden auf",direction:"Richtung",match:"Übereinstimmung",inbound:"Eingehend",outbound:"Ausgehend",target_type:{ip:"IP-Adresse",net:"Subnetz",dns:"Domain",remote_port:"Remote-Port",internet:"Internet",iface:"Lokales Netzwerk",list:"Zielliste"},all_devices:"Alle Geräte",network:"Netzwerk",allow:"Erlauben",block:"Blockieren",description:"Beschreibung",notes:"Notizen",rule_inbound:"{action} Verkehr von {target}",rule_outbound:"{action} Verkehr zu {target}",for_example:"z. B.",invalid_value:"Ungültiger Wert",space:" ",remote_port:"Remote-Port {port}",all_local_networks:"Alle lokalen Netzwerke",examples_ip:`Beispiele 10.10.10.2 @@ -3185,7 +3185,7 @@ example.com:80,443–453`,examples_remote_port:`Beispiele 1419 1001–1024`,route_description:"Verkehr zu {target} über {if_name} routen",traffic_to:"Verkehr zu",route_via:"Routen über",delete_message:"Nachricht löschen",social:"Soziales",messages:"Nachrichten",contacts:"Kontakte",calls:"Anrufe",storage:"Speicher",files:"Dateien",music:"Musik",videos:"Videos",images:"Bilder",audios:"Audio",content:"Inhalt",from:"Von",type:"Typ",message_type:{1:"Posteingang",2:"Gesendet",3:"Entwürfe",4:"Postausgang",inbox:"Posteingang",sent:"Gesendet",outbox:"Postausgang",drafts:"Entwurf"},artist:"Künstler",sms_address:"Adresse",phone_numbers:"Telefonnummern",telephone:"Telefon",custom:"Benutzerdefiniert",website:"Website",email:"E-Mail",phone_number:"Telefonnummer",add_field:"Feld hinzufügen",im:"IM",contact:{phone_number_type:{1:"Zuhause",2:"Mobil",3:"Arbeit",4:"Arbeitsfax",5:"Zuhausefax",6:"Pager",7:"Andere",8:"Rückruf",9:"Auto",10:"Unternehmenshauptnummer",11:"ISDN",12:"Hauptnummer",13:"Andere Faxnummer",14:"Radio",15:"Telex",16:"TTY TDD",17:"Arbeitsmobil",18:"Arbeitspager",19:"Assistent",20:"MMS"},email_type:{1:"Zuhause",2:"Arbeit",3:"Andere",4:"Mobil"},address_type:{1:"Zuhause",2:"Arbeit",3:"Andere"},event_type:{1:"Jahrestag",2:"Andere",3:"Geburtstag"},im_type:{0:"AIM",1:"Windows Live",2:"Yahoo",3:"Skype",4:"QQ",5:"Hangouts",6:"ICQ",7:"Jabber",8:"NetMeeting"},website_type:{1:"Homepage",2:"Blog",3:"Profil",4:"Zuhause",5:"Arbeit",6:"FTP",7:"Andere"}},call_type:{1:"Eingehend",2:"Ausgehend",3:"Verpasst",4:"Voicemail",5:"Abgelehnt",6:"Blockiert",incoming:"Eingehend",outgoing:"Ausgehend",missed:"Verpasst"},app_type:{user:"Benutzer",system:"System"},first_name:"Vorname",last_name:"Nachname",middle_name:"Zweiter Vorname",prefix:"Präfix",suffix:"Suffix",browser_warning:"Empfohlen wird die Verwendung der neuesten Version des Chrome Webbrowsers",no_permission:'Keine Berechtigung. Bitte gehen Sie zu APP > "Web auf PC", um die Berechtigungen zu aktivieren, und aktualisieren Sie die Seite.',no_data:"Keine Daten.",loading:"Laden...",duration:"Dauer",started_at:"Gestartet am",phone_geo:"GEO",avatar:"Avatar",phone_isp_type:{1:"China Mobile",2:"China Unicom",3:"China Telecom",4:"China Unicom Virtual",5:"China Telecom Virtual",6:"China Mobile Virtual"},storage_free_total:"{free} verfügbar von {total}",current_path:"Aktueller Pfad",create_folder:"Ordner erstellen",upload_files:"Dateien hochladen",upload_folder:"Ordner hochladen",preview:"Vorschau",view:"Anzeigen",upload:"Hochladen",download:"Herunterladen",copy:"Kopieren",paste:"Einfügen",cut:"Ausschneiden",duplicate:"Duplizieren",properties:"Eigenschaften",show_hidden:"Versteckte anzeigen",select_mode:"Auswahlmodus",modified_at:"Geändert am",file_size:"Dateigröße",path:"Pfad",open:"Öffnen",box_is_null:"Bitte wählen Sie eine Box in der App aus und versuchen Sie es erneut",battery_left:"Akku {percentage}%",invalid_file_signature:"Ungültige Datei-Signatur",no_task:"Keine Aufgabe",upload_status:{created:"Warten",pending:"Hochladen",saving:"Speichern",done:"Hochgeladen",error:"Hochladen fehlgeschlagen"},load_failed:"Laden von {name} fehlgeschlagen",network_error:"Netzwerkfehler, keine Verbindung zur API möglich",web_access_disabled:'Der Webzugriff ist derzeit deaktiviert. Bitte öffnen Sie PlainApp > rechts oben 💻 Symbol > Seite "Web auf PC" und tippen Sie auf den Schalter "Aktivieren".',play:"Abspielen",add_to_playlist:"Zur Wiedergabeliste hinzufügen",added_to_playlist:"Zur Wiedergabeliste hinzugefügt!",select_first:"Erst auswählen!",search_hint:"Suche...",keywords:"Schlüsselwörter",search:"Suche",tags:"Tags",add_to_tags:"Zu den Tags hinzufügen",remove_from_tags:"Aus den Tags entfernen",delete_files:"Dateien löschen",clear_list:"Liste leeren",select_tags:"Tags auswählen",tools:"Werkzeuge",json_viewer:"JSON-Betrachter",qrcode_generator:"QR-Code-Generator",title:"Titel",restore:"Wiederherstellen",trash:"Papierkorb",move_to_trash:"In den Papierkorb verschieben",work:"Arbeit",expand_all:"Alle erweitern",collapse_all:"Alle minimieren",all:"Alle",manage:"Verwalten",subscriptions:"Abonnements",published_at:"Veröffentlicht am",source:"Quelle",view_original_article:"Originalartikel anzeigen",add:"Hinzufügen",add_tag:"Tag hinzufügen",add_subscription:"Abonnement hinzufügen",import_opml_file:"OPML-Datei importieren",export_opml_file:"OPML-Datei exportieren",rss_url:"RSS-URL",imported:"Importiert",update_subscription:"Abonnement aktualisieren",sync_feeds:"Feeds synchronisieren",sync_content:"Inhalt synchronisieren",feeds_synced:"Feeds synchronisiert",syncing:"Synchronisierung...",meta_no_title:"[Kein Titel]",no_content:"[Kein Inhalt]",confirm:"Bestätigen",upload_audios:"Sie können im Ordner Musik oder einem anderen Ordner hochladen.",upload_videos:"Sie können im Ordner Videos oder einem anderen Ordner hochladen.",upload_images:"Sie können im Ordner Bilder oder einem anderen Ordner hochladen.",no_files:"Keine Dateien",view_origin_image:"Originalbild anzeigen",new_chat:"Neuer Chat",ai:"KI",config:"Konfiguration",api_key:"API-Schlüssel",apps:"Apps",version:"Version",size:"Größe",recents:"Zuletzt verwendet",internal_storage:"Interner Speicher",sdcard:"SD-Karte",recent_files:"Neueste Dateien",installed_at:"Installiert am",screen_mirror:"Bildschirm spiegeln",try_again:"Erneut versuchen",stop_mirror:"Spiegelung beenden",fullscreen:"Vollbild",deleting:"Löschen...",uninstalling:"Deinstallieren...",uninstall:"Deinstallieren",install:"Installieren",sending:"Senden…",usb_storage:"USB-Speicher",folders:"Ordner",color:"Farbe",make_a_phone_call:"Telefonanruf tätigen",view_as_list:"Listenansicht",view_as_grid:"Rasteransicht",pause:"Pause",playlist:"Wiedergabeliste",no_api_key:"Kein API-Schlüssel",refresh:"Aktualisieren",info:"Info",zoom_in:"Vergrößern",zoom_out:"Verkleinern",resize:"Größe ändern",rotate_left:"Nach links drehen",rotate_right:"Nach rechts drehen",close:"Schließen",close_other_tabs:"Andere Tabs schließen",close_tabs_to_the_right:"Tabs rechts schließen",relaunch_app:"App neu starten",all_items_on_this_page_are_selected:"Alle {count} Elemente auf dieser Seite sind ausgewählt.",all_items_are_selected:"Alle {count} Elemente sind ausgewählt.",select_all_items:"Alle {count} Elemente auswählen",clear_selection:"Auswahl aufheben",screen_mirror_request_permission_failed:"Sie haben PlainApp nicht die Erlaubnis zum Aufnehmen von Bildschirmfotos erteilt.",screen_mirror_request_permission:`Bitte tippen Sie auf "Jetzt starten" auf dem Telefon. Wenn das Berechtigungsfenster nicht angezeigt wird, starten Sie PlainApp neu. -Versuchen Sie es in {seconds} Sekunden erneut`},Tae={app_name:"PlainApp",troubleshoot:"Solução de problemas",fix_disconnect_tips:"Se a conexão estiver constantemente caindo, tente manter a tela do seu telefone acesa ou conectar o adaptador USB a uma tomada elétrica.",fetch_content_automatically:"Obter conteúdo automaticamente",call:"Chamada",call_phone:"Chamar por telefone",web_socket_reconnecting:"WebSocket reconectando...",device_info:"Informações do dispositivo",basic_info:"Informações básicas",device_name:"Nome do dispositivo",model:"Modelo",device:"Dispositivo",board:"Placa",hardware:"Hardware",brand:"Marca",build_fingerprint:"Impressão digital da compilação",system:"Sistema",android_version:"Versão do Android",security_patch:"Patch de segurança",bootloader:"Carregador de inicialização",build_number:"Número da compilação",baseband:"Baseband",kernel:"Kernel",java_vm:"Máquina virtual Java",opengl_es:"OpenGL ES",uptime:"Tempo de atividade",battery:"Bateria",health:"Saúde",level:"Nível",remaining:"Restante",power_source:"Fonte de energia",technology:"Tecnologia",temperature:"Temperatura",voltage:"Voltagem",capacity:"Capacidade",battery_health:{1:"Desconhecido",2:"Bom",3:"Superaquecimento",4:"Morto",5:"Sobretensão",6:"Falha não especificada",7:"Frio"},battery_status:{1:"Desconhecido",2:"Carregando",3:"Descarregando",4:"Não carregando",5:"Completo"},battery_plugged:{0:"Bateria",1:"AC",2:"USB",3:"Sem fio"},grant_permission:"Conceder permissão",desktop_notification_permission_not_granted:"A permissão de notificação na área de trabalho não foi concedida.",desktop_notification_permission_grant_title:"Conceder permissão para notificações na área de trabalho",desktop_notification_permission_grant_message:`1. Clique no ícone do cadeado na barra de endereço. +Versuchen Sie es in {seconds} Sekunden erneut`},Eae={app_name:"PlainApp",troubleshoot:"Solução de problemas",fix_disconnect_tips:"Se a conexão estiver constantemente caindo, tente manter a tela do seu telefone acesa ou conectar o adaptador USB a uma tomada elétrica.",fetch_content_automatically:"Obter conteúdo automaticamente",call:"Chamada",call_phone:"Chamar por telefone",web_socket_reconnecting:"WebSocket reconectando...",device_info:"Informações do dispositivo",basic_info:"Informações básicas",device_name:"Nome do dispositivo",model:"Modelo",device:"Dispositivo",board:"Placa",hardware:"Hardware",brand:"Marca",build_fingerprint:"Impressão digital da compilação",system:"Sistema",android_version:"Versão do Android",security_patch:"Patch de segurança",bootloader:"Carregador de inicialização",build_number:"Número da compilação",baseband:"Baseband",kernel:"Kernel",java_vm:"Máquina virtual Java",opengl_es:"OpenGL ES",uptime:"Tempo de atividade",battery:"Bateria",health:"Saúde",level:"Nível",remaining:"Restante",power_source:"Fonte de energia",technology:"Tecnologia",temperature:"Temperatura",voltage:"Voltagem",capacity:"Capacidade",battery_health:{1:"Desconhecido",2:"Bom",3:"Superaquecimento",4:"Morto",5:"Sobretensão",6:"Falha não especificada",7:"Frio"},battery_status:{1:"Desconhecido",2:"Carregando",3:"Descarregando",4:"Não carregando",5:"Completo"},battery_plugged:{0:"Bateria",1:"AC",2:"USB",3:"Sem fio"},grant_permission:"Conceder permissão",desktop_notification_permission_not_granted:"A permissão de notificação na área de trabalho não foi concedida.",desktop_notification_permission_grant_title:"Conceder permissão para notificações na área de trabalho",desktop_notification_permission_grant_message:`1. Clique no ícone do cadeado na barra de endereço. 2. Abra "Configurações do site" ou "Permissões". 3. Encontre "Notificações" e altere para "Permitir".`,sort:"Ordenar",sort_by:{date_asc:"Data mais antiga primeiro",date_desc:"Data mais recente primeiro",size_asc:"Menor primeiro",size_desc:"Maior primeiro",name_asc:"Nome (A a Z)",name_desc:"Nome (Z a A)"},print:"Imprimir",cancel:"Cancelar",ok:"OK",connection_timeout:"Conexão expirada",save:"Salvar",saving:"Salvando",saved:"Salvo",status:"Status",enabled:"Ativado",updated:"Atualizado",enable:"Ativar",deleted:"Excluído",create:"Criar",listening_port:"Porta de escuta",edit:"Editar",delete:"Excluir",actions:"Ações",running:"Executando",stopped:"Parado",basic:"Básico",name:"Nome",address:"Endereço",yes:"Sim",no:"Não",my_phone:"Meu telefone",me:"Eu",password:"Senha",chat_input_hint:"O que está em sua mente?",release_to_send_file:"Solte para enviar arquivo",confirm_to_delete_name:'Confirmar exclusão de "{name}"?',confirm_to_delete:"Confirmar exclusão?",valid:{string_min:"Pelo menos {min} caracteres",required:"Este campo é obrigatório"},theme:{title:"Tema",system:"Padrão do sistema",light:"Claro",dark:"Escuro"},language:{title:"Idioma",system:"Padrão do sistema"},exchange:{data_date:"Data"},education:{memorize_words:"Memorizar palavras"},log_in:"Entrar",logging_in:"Entrando",login:{to_continue:"Toque no botão Aceitar em seu telefone para continuar.",failed:"Falha no login, certifique-se de que seu telefone não está em modo de suspensão.",rejected:"Solicitação de login foi rejeitada.",invalid_password:"Senha incorreta."},failed_connect_ws:"Falha ao conectar ao WebSocket. Por favor, reinicie o aplicativo e tente novamente.",header_actions:{language:"Mudar idioma",theme:"Mudar tema",tasks:"Tarefas",audios:"Áudio",logout:"Sair",notifications:"Notificações"},page_title:{home:"Início",wireguard:"WireGuard",network:"Rede",wifi:"Wi-Fi",rules:"Regras",routes:"Rotas",devices:"Dispositivos",messages:"Mensagens",contacts:"Contatos",calls:"Chamadas",apps:"Aplicativos",files:"Arquivos",audios:"Áudio",videos:"Vídeos",images:"Imagens",books:"Livros",feeds:"Feeds",notes:"Notas",json_viewer:"Visualizador JSON",qrcode_generator:"Gerador de QR Code",trash:"Lixeira",aichats:"ChatGPT",screen_mirror:"Espelhamento de Tela",device_info:"Informações do Dispositivo"},wireguard:{},wifi:{ssid:"Nome",hide_ssid:"Ocultar rede"},manufacturer:"Fabricante",mac_address:"Endereço MAC",ip_address:"Endereço IP",online:"Online",offline:"Offline",unknown:"Desconhecido",created_at:"Criado em",updated_at:"Atualizado em",active_at:"Ativo em",rename:"Renomear",apply_to:"Aplicar a",direction:"Direção",match:"Correspondência",inbound:"Entrada",outbound:"Saída",target_type:{ip:"Endereço IP",net:"Sub-rede",dns:"Domínio",remote_port:"Porta Remota",internet:"Internet",iface:"Rede local",list:"Lista de Destinos"},all_devices:"Todos os dispositivos",network:"Rede",allow:"Permitir",block:"Bloquear",description:"Descrição",notes:"Notas",rule_inbound:"{action} tráfego de {target}",rule_outbound:"{action} tráfego para {target}",for_example:"por exemplo",invalid_value:"Valor inválido",space:" ",remote_port:"porta remota {port}",all_local_networks:"Todas as redes locais",examples_ip:`Exemplos 10.10.10.2 @@ -3202,7 +3202,7 @@ example.com:80,443–453`,examples_remote_port:`Exemplos 1419 1001–1024`,route_description:"Rota de tráfego para {target} via {if_name}",traffic_to:"Tráfego para",route_via:"Rota via",delete_message:"Apagar mensagem",social:"Social",messages:"Mensagens",contacts:"Contatos",calls:"Chamadas",storage:"Armazenamento",files:"Arquivos",music:"Música",videos:"Vídeos",images:"Imagens",audios:"Áudios",content:"Conteúdo",from:"De",type:"Tipo",message_type:{1:"Caixa de entrada",2:"Enviada",3:"Rascunhos",4:"Caixa de saída",inbox:"Caixa de entrada",sent:"Enviada",outbox:"Caixa de saída",drafts:"Rascunhos"},artist:"Artista",sms_address:"Endereço",phone_numbers:"Números de telefone",telephone:"Telefone",custom:"Personalizado",website:"Website",email:"E-mail",phone_number:"Número de telefone",add_field:"Adicionar campo",im:"IM",contact:{phone_number_type:{1:"Casa",2:"Celular",3:"Trabalho",4:"Fax do trabalho",5:"Fax de casa",6:"Pager",7:"Outro",8:"Retorno de chamada",9:"Carro",10:"Principal da empresa",11:"ISDN",12:"Principal",13:"Outro fax",14:"Rádio",15:"Telex",16:"TTY TDD",17:"Celular do trabalho",18:"Pager do trabalho",19:"Assistente",20:"MMS"},email_type:{1:"Casa",2:"Trabalho",3:"Outro",4:"Celular"},address_type:{1:"Casa",2:"Trabalho",3:"Outro"},event_type:{1:"Aniversário",2:"Outro",3:"Aniversário"},im_type:{0:"AIM",1:"Windows Live",2:"Yahoo",3:"Skype",4:"QQ",5:"Hangouts",6:"ICQ",7:"Jabber",8:"NetMeeting"},website_type:{1:"Página inicial",2:"Blog",3:"Perfil",4:"Casa",5:"Trabalho",6:"FTP",7:"Outro"}},call_type:{1:"Recebida",2:"Efetuada",3:"Perdida",4:"Correio de voz",5:"Rejeitada",6:"Bloqueada",incoming:"Recebida",outgoing:"Efetuada",missed:"Perdida"},app_type:{user:"Usuário",system:"Sistema"},first_name:"Primeiro nome",last_name:"Sobrenome",middle_name:"Nome do meio",prefix:"Prefixo",suffix:"Sufixo",browser_warning:"Sugere-se o uso da versão mais recente do navegador Chrome",no_permission:'Sem permissão. Por favor, vá para APP > "Web no PC" para habilitar as permissões e atualize a página.',no_data:"Sem dados.",loading:"Carregando...",duration:"Duração",started_at:"Iniciado em",phone_geo:"GEO",avatar:"Avatar",phone_isp_type:{1:"China Mobile",2:"China Unicom",3:"China Telecom",4:"China Unicom Virtual",5:"China Telecom Virtual",6:"China Mobile Virtual"},storage_free_total:"{free} disponíveis de {total}",current_path:"Caminho atual",create_folder:"Criar pasta",upload_files:"Carregar arquivos",upload_folder:"Carregar pasta",preview:"Visualizar",view:"Visualizar",upload:"Carregar",download:"Baixar",copy:"Copiar",paste:"Colar",cut:"Recortar",duplicate:"Duplicar",properties:"Propriedades",show_hidden:"Mostrar ocultos",select_mode:"Modo de seleção",modified_at:"Modificado em",file_size:"Tamanho do arquivo",path:"Caminho",open:"Abrir",box_is_null:"Por favor, selecione uma caixa no aplicativo e tente novamente",battery_left:"Bateria {percentage}%",invalid_file_signature:"Assinatura de arquivo inválida",no_task:"Sem tarefa",upload_status:{created:"Aguardando",pending:"Carregando",saving:"Salvando",done:"Carregado",error:"Falha no carregamento"},load_failed:"Falha ao carregar {name}",network_error:"Erro de rede, impossível conectar à API",web_access_disabled:'O acesso à web está atualmente desativado. Por favor, abra o PlainApp > ícone do desktop no canto superior direito 💻 > página "Web no PC" e toque no interruptor "Ativar".',play:"Reproduzir",add_to_playlist:"Adicionar à playlist",added_to_playlist:"Adicionado à playlist!",select_first:"Selecione primeiro!",search_hint:"Pesquisar...",keywords:"Palavras-chave",search:"Pesquisar",tags:"Tags",add_to_tags:"Adicionar às tags",remove_from_tags:"Remover das tags",delete_files:"Excluir arquivos",clear_list:"Limpar lista",select_tags:"Selecionar tags",tools:"Ferramentas",json_viewer:"Visualizador JSON",qrcode_generator:"Gerador de QrCode",title:"Título",restore:"Restaurar",trash:"Lixo",move_to_trash:"Mover para o lixo",work:"Trabalho",expand_all:"Expandir tudo",collapse_all:"Recolher tudo",all:"Todos",manage:"Gerenciar",subscriptions:"Assinaturas",published_at:"Publicado em",source:"Fonte",view_original_article:"Ver artigo original",add:"Adicionar",add_tag:"Adicionar tag",add_subscription:"Adicionar assinatura",import_opml_file:"Importar arquivo OPML",export_opml_file:"Exportar arquivo OPML",rss_url:"URL do RSS",imported:"Importado",update_subscription:"Atualizar assinatura",sync_feeds:"Sincronizar feeds",sync_content:"Sincronizar conteúdo",feeds_synced:"Feeds sincronizados",syncing:"Sincronizando...",meta_no_title:"[Sem título]",no_content:"[Sem conteúdo]",confirm:"Confirmar",upload_audios:"Você pode carregar na pasta Músicas ou outra pasta.",upload_videos:"Você pode carregar na pasta Vídeos ou outra pasta.",upload_images:"Você pode carregar na pasta Imagens ou outra pasta.",no_files:"Sem arquivos",view_origin_image:"Ver imagem original",new_chat:"Nova conversa",ai:"IA",config:"Configuração",api_key:"Chave da API",apps:"Aplicativos",version:"Versão",size:"Tamanho",recents:"Recentes",internal_storage:"Armazenamento interno",sdcard:"Cartão SD",recent_files:"Arquivos recentes",installed_at:"Instalado em",screen_mirror:"Espelhamento de tela",try_again:"Tentar novamente",stop_mirror:"Parar espelhamento",fullscreen:"Tela cheia",deleting:"Excluindo...",uninstalling:"Desinstalando...",uninstall:"Desinstalar",install:"Instalar",sending:"Enviando…",usb_storage:"Armazenamento USB",folders:"Pastas",color:"Cor",make_a_phone_call:"Fazer uma ligação",view_as_list:"Visualizar como lista",view_as_grid:"Visualizar como grade",pause:"Pausar",playlist:"Lista de reprodução",no_api_key:"Sem chave da API",refresh:"Atualizar",info:"Informações",zoom_in:"Aumentar zoom",zoom_out:"Diminuir zoom",resize:"Redimensionar",rotate_left:"Girar para esquerda",rotate_right:"Girar para direita",close:"Fechar",close_other_tabs:"Fechar outras abas",close_tabs_to_the_right:"Fechar abas à direita",relaunch_app:"Reiniciar aplicativo",all_items_on_this_page_are_selected:"Todos os {count} itens nesta página estão selecionados.",all_items_are_selected:"Todos os {count} itens estão selecionados.",select_all_items:"Selecionar todos os {count} itens",clear_selection:"Limpar seleção",screen_mirror_request_permission_failed:"Você não concedeu permissão ao PlainApp para capturar capturas de tela.",screen_mirror_request_permission:`Por favor, toque em "Iniciar agora" no telefone. Se a janela de permissão não for exibida, reinicie o PlainApp. -Tente novamente em {seconds} segundos`},kae={app_name:"அரசியலமைப்பு",troubleshoot:"பிழைகளை திருத்து",fix_disconnect_tips:"இணைப்பு தொடர்ந்து துண்டிக்கப்பட்டால், உங்கள் தொலைபேசியின் திரையை விழிப்புடன் வைத்திருக்க முயற்சிக்கவும் அல்லது USB அடாப்டரை மின்சார சாக்கெட்டில் செருகவும்.",fetch_content_automatically:"உருப்படியை தானாக பெறுங்கள்",call:"அழை",call_phone:"போனில் அழை",web_socket_reconnecting:"வலைப்பின்னல் சேர்க்கிறது...",device_info:"கருவி தகவல்",basic_info:"அடிப்படை தகவல்",device_name:"கருவி பெயர்",model:"மாதிரி",device:"கருவி",board:"போர்டு",hardware:"உடைநிலை",brand:"பிரேண்ட்",build_fingerprint:"பில்ட் ஃபிங்கர் பிரமாணம்",system:"கணினி",android_version:"அண்ட்ராய்டு பதிப்பு",security_patch:"பாதுகாப்பு படிவம்",bootloader:"பூட்லோடர்",build_number:"பில்ட் எண்",baseband:"அடிக்குறிகள்",kernel:"கெர்னல்",java_vm:"ஜாவா வி.எம்",opengl_es:"ஓப்பன் ஜி.எஸ்",uptime:"அப்டைம்",battery:"பேட்டரி",health:"ஆரோக்கியம்",level:"நிலை",remaining:"மீதி",power_source:"மின்னுலக மூலம்",technology:"தொழில்நுட்பம்",temperature:"காலமானம்",voltage:"மின்னணு",capacity:"பொருளாதாரம்",battery_health:{1:"அறியப்படாதது",2:"நன்றாக",3:"அதிகச் சூடானது",4:"போன்ற",5:"அதிக மின்னணு",6:"குறிப்பிடப்படாத பிழை",7:"சோம்பல்"},battery_status:{1:"அறியப்படாதது",2:"சார்ஜிங்",3:"பிளவுக்குள்",4:"சார்ஜிங் இல்லை",5:"முழு"},battery_plugged:{0:"பேட்டரி",1:"எச்சரிக்கை",2:"யூஎஸ்பி",3:"வயர்லெஸ்"},grant_permission:"அனுமதி வழங்கு",desktop_notification_permission_not_granted:"டெஸ்க்டாப் அறிவிப்பு அனுமதி அளிக்கப்படவில்லை.",desktop_notification_permission_grant_title:"டெஸ்க்டாப் அறிவிப்பு அனுமதி அளிக்கவும்",desktop_notification_permission_grant_message:`1. முகவரி பட்டியில் பேட்லாக் ஐகானை கிளிக் செய்யவும். +Tente novamente em {seconds} segundos`},Tae={app_name:"அரசியலமைப்பு",troubleshoot:"பிழைகளை திருத்து",fix_disconnect_tips:"இணைப்பு தொடர்ந்து துண்டிக்கப்பட்டால், உங்கள் தொலைபேசியின் திரையை விழிப்புடன் வைத்திருக்க முயற்சிக்கவும் அல்லது USB அடாப்டரை மின்சார சாக்கெட்டில் செருகவும்.",fetch_content_automatically:"உருப்படியை தானாக பெறுங்கள்",call:"அழை",call_phone:"போனில் அழை",web_socket_reconnecting:"வலைப்பின்னல் சேர்க்கிறது...",device_info:"கருவி தகவல்",basic_info:"அடிப்படை தகவல்",device_name:"கருவி பெயர்",model:"மாதிரி",device:"கருவி",board:"போர்டு",hardware:"உடைநிலை",brand:"பிரேண்ட்",build_fingerprint:"பில்ட் ஃபிங்கர் பிரமாணம்",system:"கணினி",android_version:"அண்ட்ராய்டு பதிப்பு",security_patch:"பாதுகாப்பு படிவம்",bootloader:"பூட்லோடர்",build_number:"பில்ட் எண்",baseband:"அடிக்குறிகள்",kernel:"கெர்னல்",java_vm:"ஜாவா வி.எம்",opengl_es:"ஓப்பன் ஜி.எஸ்",uptime:"அப்டைம்",battery:"பேட்டரி",health:"ஆரோக்கியம்",level:"நிலை",remaining:"மீதி",power_source:"மின்னுலக மூலம்",technology:"தொழில்நுட்பம்",temperature:"காலமானம்",voltage:"மின்னணு",capacity:"பொருளாதாரம்",battery_health:{1:"அறியப்படாதது",2:"நன்றாக",3:"அதிகச் சூடானது",4:"போன்ற",5:"அதிக மின்னணு",6:"குறிப்பிடப்படாத பிழை",7:"சோம்பல்"},battery_status:{1:"அறியப்படாதது",2:"சார்ஜிங்",3:"பிளவுக்குள்",4:"சார்ஜிங் இல்லை",5:"முழு"},battery_plugged:{0:"பேட்டரி",1:"எச்சரிக்கை",2:"யூஎஸ்பி",3:"வயர்லெஸ்"},grant_permission:"அனுமதி வழங்கு",desktop_notification_permission_not_granted:"டெஸ்க்டாப் அறிவிப்பு அனுமதி அளிக்கப்படவில்லை.",desktop_notification_permission_grant_title:"டெஸ்க்டாப் அறிவிப்பு அனுமதி அளிக்கவும்",desktop_notification_permission_grant_message:`1. முகவரி பட்டியில் பேட்லாக் ஐகானை கிளிக் செய்யவும். 2. "இணைய அமைப்புகள்" அல்லது "அனுமதிகள்" விரிவாக்கவும். 3. "அறிவிப்புகள்" ஐகானைக் கண்டு, அதை "அனுமதி" என்று மாற்றவும்.`,sort:"வரிசைப்படுத்து",sort_by:{date_asc:"பழைய தேதி முதல்",date_desc:"புதிய தேதி முதல்",size_asc:"சிறியது முதல்",size_desc:"பெரியது முதல்",name_asc:"பெயர் (ஏ முதல் ஜேட்)",name_desc:"பெயர் (ஜேட் முதல் ஏ)"},print:"அச்சிடு",cancel:"ரத்து செய்",ok:"சரி",connection_timeout:"இணைப்பு நேரம் முடிந்தது",save:"சேமி",saving:"சேமிக்கப்படுகின்றது",saved:"சேமிக்கப்பட்டது",status:"நிலை",enabled:"இயக்கப்பட்டது",updated:"புதுப்பிக்கப்பட்டது",enable:"இயக்கு",deleted:"அழிக்கப்பட்டது",create:"உருவாக்கு",listening_port:"கேட்டுக்கொள்ளுதல் போர்ட்",edit:"திருத்து",delete:"அழி",actions:"செயல்கள்",running:"இயங்குகின்றது",stopped:"நிறுத்தப்பட்டது",basic:"அடிப்படை",name:"பெயர்",address:"முகவரி",yes:"ஆம்",no:"இல்லை",my_phone:"என் மொபைல்",me:"எனக்கு",password:"கடவுச்சொல்",chat_input_hint:"உங்கள் உள்ளம் என்ன?",release_to_send_file:"கைவிட்டு கோப்பு அனுப்பு",confirm_to_delete_name:'நீக்க உறுதிப்படுத்த "{name}"?',confirm_to_delete:"நீக்க உறுதிப்படுத்த?",valid:{string_min:"குறைந்தது {min} எழுத்துக்கள்",required:"இந்த புலம் தேவைப்படுகின்றது"},theme:{title:"தீம்",system:"அமைப்பு இயக்கும் முக்கியம்",light:"வளர்",dark:"கரை"},language:{title:"மொழி",system:"அமைப்பு இயக்கும் முக்கியம்"},exchange:{data_date:"தேதி"},education:{memorize_words:"வார்த்தைகளை நினைக்கு"},log_in:"உள்நுழைக",logging_in:"உள்நுழைகின்றது",login:{to_continue:"உங்கள் மொபைலில் தொடர முழுமை குறித்து ஒருமுறை ஒப்பிடுக.",failed:"உள்நுழைவது தோல்வி, உங்கள் மொபைல் தூக்க நிலையில் இல்லை என்பதை உறுதிசெய்யவும்.",rejected:"உள்நுழைவு கோரிக்கை நிராகரிக்கப்பட்டுள்ளது.",invalid_password:"தவறான கடவுச்சொல்."},failed_connect_ws:"WebSocket-க்கு இணைக்க தோல்வி. அனுமதிக்கு மீள்விக்கவும் மற்றும் மீண்டும் முயற்சி செய்க.",header_actions:{language:"மொழி மாற்று",theme:"தீம் மாற்று",tasks:"பணிகள்",audios:"ஆடியோ",logout:"வெளியேறு",notifications:"அறிவிப்புகள்"},page_title:{home:"முகப்பு",wireguard:"வயர்கார்ட்",network:"நெட்வொர்க்",wifi:"வயர்லஸ் இணைப்பு",rules:"விதிகள்",routes:"பாதைகள்",devices:"சாதனங்கள்",messages:"செய்திகள்",contacts:"தொடர்புகள்",calls:"அழைப்புகள்",apps:"பயன்பாடுகள்",files:"கோப்புகள்",audios:"ஆடியோ",videos:"வீடியோக்கள்",images:"படங்கள்",books:"புத்தகங்கள்",feeds:"புதிய செய்திகள்",notes:"குறிப்புகள்",json_viewer:"JSON பார்வையாளர்",qrcode_generator:"QR குறியீட்டம் உருவாக்குகின்றது",trash:"குப்பை",aichats:"சாத்திகம் உரைகள்",screen_mirror:"திரை பிரதிமை",device_info:"சாதன தகவல்"},wireguard:{},wifi:{ssid:"பெயர்",hide_ssid:"இணையத்தை மறை"},manufacturer:"உற்பத்தியாளர்",mac_address:"MAC முகவரி",ip_address:"IP முகவரி",online:"இணையத்தில்",offline:"இணையத்தில் இல்லை",unknown:"அறியப்படாதது",created_at:"உருவாக்கப்பட்ட நேரம்",updated_at:"புதுப்பிக்கப்பட்ட நேரம்",active_at:"செயலில் இல்லாத நேரம்",rename:"மறுபெயரிடு",apply_to:"பொருத்து",direction:"இயக்குவது",match:"பொருத்து",inbound:"வருகை",outbound:"வெளியில்",target_type:{ip:"IP முகவரி",net:"வலைப்பின்னல்",dns:"மானேஜ்ஜர்",remote_port:"ரிமோட் போர்ட்",internet:"இணையம்",iface:"உள்ளேய வலைப்பின்னல்",list:"இலக்கு பட்டியல்"},all_devices:"அனைத்து சாதனங்கள்",network:"நெட்வொர்க்",allow:"அனுமதி",block:"தடு",description:"விளக்கம்",notes:"குறிப்புகள்",rule_inbound:"{action} {target} இல் இருந்து வருகை",rule_outbound:"{action} {target} க்கு வருகை",for_example:"எ.க.",invalid_value:"தவறான மதிப்பு",space:" ",remote_port:"ரிமோட் போர்ட் {port}",all_local_networks:"அனைத்து உள்ளூர் வலைப்பின்னல்கள்",examples_ip:`உதாரணங்கள் 10.10.10.2 @@ -3219,7 +3219,7 @@ example.com:80,443–453`,examples_remote_port:`உதாரணங்கள் 1419 1001–1024`,route_description:"வழிகள் {if_name} மூலம் {target} க்கு வருகை",traffic_to:"வருகை க்கு",route_via:"வழி க்கு",delete_message:"செய்தி நீக்கு",social:"சமூகம்",messages:"செய்திகள்",contacts:"தொடர்புகள்",calls:"அழைப்புகள்",storage:"சேமிப்பு",files:"கோப்புகள்",music:"இசை",videos:"வீடியோக்கள்",images:"படங்கள்",audios:"ஆடியோ",content:"உள்ளடக்கம்",from:"இருந்து",type:"வகை",time:"நேரம்",message_type:{1:"உடைய பெட்டகம்",2:"அனுப்பியது",3:"வருத்தம்",4:"வெளியிட்டது",inbox:"உடைய பெட்டகம்",sent:"அனுப்பியது",outbox:"வெளியிட்டது",drafts:"வருத்தம்"},artist:"கலைஞர்",sms_address:"முகவரி",phone_numbers:"தொலைபேசி எண்கள்",telephone:"தொலைபேசி",custom:"விருப்ப",website:"இணையதளம்",email:"மின்னஞ்சல்",phone_number:"தொலைபேசி எண்",add_field:"புலம் சேர்க்க",im:"ஐஎம்",contact:{phone_number_type:{1:"வீடு",2:"மொபைல்",3:"வேலை",4:"வேலை பாக்ஸ்",5:"வீடு பாக்ஸ்",6:"பேஜர்",7:"பிற",8:"கால் பேக்",9:"கார்",10:"நிறுதி வேலை",11:"ISDN",12:"முதல்",13:"பிற வேலை பாக்ஸ்",14:"வானொளி",15:"டெலெக்ஸ்",16:"TTY TDD",17:"வேலை மொபைல்",18:"வேலை பேஜர்",19:"உதவி",20:"MMS"},email_type:{1:"வீடு",2:"வேலை",3:"பிற",4:"மொபைல்"},address_type:{1:"வீடு",2:"வேலை",3:"பிற"},event_type:{1:"பெருமான நாள்",2:"பிற",3:"பிறந்தநாள்"},im_type:{0:"AIM",1:"Windows Live",2:"Yahoo",3:"Skype",4:"QQ",5:"Hangouts",6:"ICQ",7:"Jabber",8:"NetMeeting"},website_type:{1:"முதல் பக்கம்",2:"வலைப்பதிவு",3:"சுயவிவரம்",4:"வீடு",5:"வேலை",6:"FTP",7:"பிற"}},call_type:{1:"வருகை",2:"அழிப்பு",3:"காணாமல்",4:"வாய்செய்திகள்",5:"நிராகரிக்கப்பட்டது",6:"தடுப்பு",incoming:"வருகை",outgoing:"அழிப்பு",missed:"காணாமல்"},app_type:{user:"பயனர்",system:"அமைப்பு"},first_name:"முதல் பெயர்",last_name:"கடை பெயர்",middle_name:"நடுப்பெயர்",prefix:"முன் அடையாளம்",suffix:"பின் அடையாளம்",browser_warning:"கூகுள் வலை உலாவியின் கடைசி பதிப்பை பயன்படுத்த பரிந்துரைக்கின்றோம்",no_permission:'அனுமதி இல்லை. அனுமதிகளை இயக்க மற்றும் பக்கத்தை புதுப்பிக்க டென்ட் வருக APP > "வலையில் அமைக்க" செய்யுங்கள்.',no_data:"தரவு இல்லை.",loading:"ஏற்றுகிறது...",duration:"கீழ்",started_at:"ஆரம்பம்",phone_geo:"GEO",avatar:"அவதாரம்",phone_isp_type:{1:"சீனா மொபைல்",2:"சீனா யூனிகாம்",3:"சீனா டெலிகாம்",4:"சீனா யூகோம் வெவ்யால்",5:"சீனா டெலிகாம் வெவ்யால்",6:"சீனா மொபைல் வெவ்யால்"},storage_free_total:"{இலவச} இலவசமாக உள்ளது {மொத்தம்}",current_path:"தற்போதைய பாதை",create_folder:"கோப்பகம் உருவாக்கு",upload_files:"கோப்புகளை பதிவேற்று",upload_folder:"கோப்பகம் பதிவேற்று",preview:"முன்னோட்டம்",view:"காட்சி",upload:"பதிவேற்று",download:"பதிவிறக்கம்",copy:"நகல்",paste:"செருக",cut:"வெட்டு",duplicate:"நகலெடு",properties:"சொத்துகள்",show_hidden:"மறைக்கப்பட்டதைக் காட்டு",select_mode:"முறையை தேர்ந்தெடு",modified_at:"மாற்றப்பட்டது",file_size:"கோப்பு அளவு",path:"பாதை",open:"திற",box_is_null:"உங்கள் பயன்பாட்டில் ஒரு பெட்டியை தேர்ந்தெடுக்கவும் மற்றும் மீண்டும் முயல்க.",battery_left:"பேட்டரி {சதவிகிதம்}%",invalid_file_signature:"தவறான கோப்பு கையொப்பம்",no_task:"பணி இல்லை",upload_status:{created:"காத்திருக்கின்றது",pending:"பதிவேற்றுகின்றது",saving:"சேமிக்கின்றது",done:"பதிவேற்றப்பட்டது",error:"பதிவேற்று தோல்வியுற்றது"},load_failed:"ஏற்றுகின்றது {பெயர்} தோல்வி",network_error:"பிணைய பிழை, பரிந்துரைக்க முடியாது API-க்கு இணையம் கொண்டு போக முடியாது",web_access_disabled:'வலை அணுகல் தற்போது முடக்கப்பட்டுள்ளது. தயவுசெய்து PlainApp > மேல் வலது 💻 ஐகான் > "பிசி மீலில் வலை" பக்கத்தை திறக்கவும் மற்றும் "இயக்கு" ஸ்விச் டாப் செய்யுங்கள்।',play:"பிளே",add_to_playlist:"பிளேலிஸ்டுக்கு சேர்க்க",added_to_playlist:"பிளேலிஸ்டுக்கு சேர்க்கப்பட்டது!",select_first:"முதலில் தேர்ந்தெடுக்கவும்!",search_hint:"தேட…",keywords:"சொல்கள்",search:"தேடு",tags:"குறிச்சொற்கள்",add_to_tags:"குறிச்சொற்களுக்கு சேர்க்க",remove_from_tags:"குறிச்சொற்களில் இல்லை செய்ய",delete_files:"கோப்புகளை நீக்கு",clear_list:"பட்டியலை அழிக்க",select_tags:"குறிச்சொற்களைத் தேர்ந்தெடு",tools:"கருவிகள்",json_viewer:"JSON பார்வையாளர்",qrcode_generator:"QrCode உருவாக்கி",title:"தலைப்பு",restore:"மீட்டமை",trash:"குப்பை",move_to_trash:"குப்பைக்கு நகர்த்து",work:"வேலை",expand_all:"அனைத்தையும் விரிக்க",collapse_all:"அனைத்தையும் மூடு",all:"அனைத்தும்",manage:"மேலாண்மை செய்",subscriptions:"சந்ததிகள்",published_at:"வெளியிடப்பட்டது",source:"மூலம்",view_original_article:"மூல கட்டுரையைக் காண்க",add:"சேர்க்க",add_tag:"குறிச்சொற் சேர்க்க",add_subscription:"சந்ததியை சேர்க்க",import_opml_file:"OPML கோப்பை இறக்குமதி செய்",export_opml_file:"OPML கோப்பை ஏற்றுமதி செய்",rss_url:"RSS URL",imported:"இறக்குமதி செய்யப்பட்டது",update_subscription:"சந்ததியை புதுப்பி",sync_feeds:"ஃபீட்களை ஒத்திசை",sync_content:"உள்ளடக்கத்தை ஒத்திசை",feeds_synced:"ஃபீட்கள் ஒத்திசைக்கப்பட்டன",syncing:"ஒத்திசைக்கின்றது...",meta_no_title:"தலைப்பு இல்லை",no_content:"[உள்ளடக்கம் இல்லை]",confirm:"உறுதி செய்",upload_audios:"நீங்கள் இசை கோப்புகளை இசை கோப்பு அல்லது பிற கோப்புகளில் பதிவேற்றலாம்.",upload_videos:"நீங்கள் வீடியோ கோப்புகளை வீடியோ கோப்பு அல்லது பிற கோப்புகளில் பதிவேற்றலாம்.",upload_images:"நீங்கள் புகைப்படங்களை படிகள் அல்லது பிற கோப்புகளில் பதிவேற்றலாம்.",no_files:"கோப்புகள் இல்லை",view_origin_image:"மூல புகைப்படத்தைக் காண்க",new_chat:"புதிய அரட்டை",ai:"ஐசி",config:"கட்டமை",api_key:"API விசை",apps:"பயன்பாடுகள்",version:"பதிப்பு",size:"அளவு",recents:"சமீபத்தியம்",internal_storage:"உள் சேமிப்பு",sdcard:"SD அட்டை",recent_files:"சமீப கோப்புகள்",installed_at:"நிறுவியது என்பது",screen_mirror:"திரை கடிகாணிக்க",try_again:"மீண்டும் முயற்சி செய்",stop_mirror:"கடிகாணித்தல் நிறுத்து",fullscreen:"முழு திரை",deleting:"நீக்குகின்றது...",uninstalling:"நீக்குகின்றது...",uninstall:"நீக்கு",install:"நிறுவு",sending:"அனுப்புகின்றது...",usb_storage:"USB சேமிப்பு",folders:"கோப்புகள்",color:"வண்ணம்",make_a_phone_call:"தொலைபேசி அழைப்பு செய்",view_as_list:"பட்டியலாகக் காட்டு",view_as_grid:"கட்டங்களாகக் காட்டு",pause:"இடைநிறுத்து",playlist:"பிளேலிஸ்டு",no_api_key:"API விசை இல்லை",refresh:"புதுப்பி",info:"தகவல்",zoom_in:"மிகவும் அழுத்து",zoom_out:"மிகவும் சிறிதாக்கு",resize:"அளவை மாற்று",rotate_left:"இடது திருத்து",rotate_right:"வலது திருத்து",close:"மூடு",close_other_tabs:"பிற தாவல்களை மூடு",close_tabs_to_the_right:"வலது தாவல்களை மூடு",relaunch_app:"பயன்பாட்டை மீண்டும் தொடங்கு",all_items_on_this_page_are_selected:"இந்த பக்கத்தில் உள்ள அனைத்து {count} பொருட்களும் தேர்ந்தெடுக்கப்பட்டுள்ளன.",all_items_are_selected:"அனைத்து {count} பொருட்களும் தேர்ந்தெடுக்கப்பட்டுள்ளன.",select_all_items:"அனைத்து {count} பொருட்களையும் தேர்ந்தெடு",clear_selection:"தேர்ந்தெடுப்பை அகற்று",screen_mirror_request_permission_failed:"நீங்கள் காட்சிகள் எடுப்பதிகரித்த அனுமதியை PlainApp-க்கு அளித்திருக்கவில்லை.",screen_mirror_request_permission:`தயவுசெய்து ஃபோனில் "இப்போ தொடக்க" ஐ தட்டவும். அனுமதி சாளரம் காட்சியாகாதால், தயவுசெய்து PlainApp-ஐ மீண்டும் தொடக்கவும். -{விநாடிகள்} விநாடிகளில் மீண்டும் முயற்சிக்க.`},Cae={app_name:"평범한 앱",troubleshoot:"문제 해결",fix_disconnect_tips:"연결이 계속 끊어지면 휴대전화 화면을 켜두거나 USB 어댑터를 전원 콘센트에 연결해 보세요.",fetch_content_automatically:"콘텐츠 자동으로 가져오기",call:"전화",call_phone:"전화 걸기",web_socket_reconnecting:"WebSocket이 다시 연결 중...",device_info:"장치 정보",basic_info:"기본 정보",device_name:"장치 이름",model:"모델",device:"장치",board:"보드",hardware:"하드웨어",brand:"브랜드",build_fingerprint:"빌드 지문",system:"시스템",android_version:"Android 버전",security_patch:"보안 패치",bootloader:"부트로더",build_number:"빌드 번호",baseband:"베이스밴드",kernel:"커널",java_vm:"Java VM",opengl_es:"OpenGL ES",uptime:"가동 시간",battery:"배터리",health:"건강",level:"레벨",remaining:"남은 시간",power_source:"전원 공급원",technology:"기술",temperature:"온도",voltage:"전압",capacity:"용량",battery_health:{1:"알 수 없음",2:"양호",3:"과열",4:"망가짐",5:"과전압",6:"명시되지 않은 오류",7:"저온"},battery_status:{1:"알 수 없음",2:"충전 중",3:"방전 중",4:"충전되지 않음",5:"완전 충전"},battery_plugged:{0:"배터리",1:"AC",2:"USB",3:"무선"},grant_permission:"권한 부여",desktop_notification_permission_not_granted:"데스크톱 알림 권한이 부여되지 않았습니다.",desktop_notification_permission_grant_title:"데스크톱 알림 권한 부여",desktop_notification_permission_grant_message:`1. 주소 표시줄의 자물쇠 아이콘을 클릭하세요. +{விநாடிகள்} விநாடிகளில் மீண்டும் முயற்சிக்க.`},kae={app_name:"평범한 앱",troubleshoot:"문제 해결",fix_disconnect_tips:"연결이 계속 끊어지면 휴대전화 화면을 켜두거나 USB 어댑터를 전원 콘센트에 연결해 보세요.",fetch_content_automatically:"콘텐츠 자동으로 가져오기",call:"전화",call_phone:"전화 걸기",web_socket_reconnecting:"WebSocket이 다시 연결 중...",device_info:"장치 정보",basic_info:"기본 정보",device_name:"장치 이름",model:"모델",device:"장치",board:"보드",hardware:"하드웨어",brand:"브랜드",build_fingerprint:"빌드 지문",system:"시스템",android_version:"Android 버전",security_patch:"보안 패치",bootloader:"부트로더",build_number:"빌드 번호",baseband:"베이스밴드",kernel:"커널",java_vm:"Java VM",opengl_es:"OpenGL ES",uptime:"가동 시간",battery:"배터리",health:"건강",level:"레벨",remaining:"남은 시간",power_source:"전원 공급원",technology:"기술",temperature:"온도",voltage:"전압",capacity:"용량",battery_health:{1:"알 수 없음",2:"양호",3:"과열",4:"망가짐",5:"과전압",6:"명시되지 않은 오류",7:"저온"},battery_status:{1:"알 수 없음",2:"충전 중",3:"방전 중",4:"충전되지 않음",5:"완전 충전"},battery_plugged:{0:"배터리",1:"AC",2:"USB",3:"무선"},grant_permission:"권한 부여",desktop_notification_permission_not_granted:"데스크톱 알림 권한이 부여되지 않았습니다.",desktop_notification_permission_grant_title:"데스크톱 알림 권한 부여",desktop_notification_permission_grant_message:`1. 주소 표시줄의 자물쇠 아이콘을 클릭하세요. 2. "사이트 설정" 또는 "권한"을 엽니다. 3. "알림"을 찾아 "허용"으로 변경하세요.`,sort:"정렬",sort_by:{date_asc:"오래된 날짜부터",date_desc:"최신 날짜부터",size_asc:"가장 작은 순서",size_desc:"가장 큰 순서",name_asc:"이름 (A에서 Z)",name_desc:"이름 (Z에서 A)"},print:"인쇄",cancel:"취소",ok:"확인",connection_timeout:"연결 시간 초과",save:"저장",saving:"저장 중",saved:"저장됨",status:"상태",enabled:"활성화됨",updated:"업데이트됨",enable:"활성화",deleted:"삭제됨",create:"생성",listening_port:"수신 포트",edit:"편집",delete:"삭제",actions:"작업",running:"실행 중",stopped:"중지됨",basic:"기본",name:"이름",address:"주소",yes:"예",no:"아니오",my_phone:"내 휴대폰",me:"나",password:"비밀번호",chat_input_hint:"무엇이 마음에 드시나요?",release_to_send_file:"파일을 전송하려면 놓으세요",confirm_to_delete_name:'"{name}"을(를) 삭제하시겠습니까?',confirm_to_delete:"삭제하시겠습니까?",valid:{string_min:"{min}자 이상이어야 합니다",required:"이 필드는 필수입니다"},theme:{title:"테마",system:"시스템 기본값",light:"라이트",dark:"다크"},language:{title:"언어",system:"시스템 기본값"},exchange:{data_date:"날짜"},education:{memorize_words:"단어 기억"},log_in:"로그인",logging_in:"로그인 중",login:{to_continue:"계속하려면 휴대폰에서 수락 버튼을 탭하세요.",failed:"로그인 실패, 휴대폰이 슬립 모드가 아닌지 확인하세요.",rejected:"로그인 요청이 거부되었습니다.",invalid_password:"잘못된 비밀번호입니다."},failed_connect_ws:"WebSocket에 연결하지 못했습니다. 앱을 다시 시작하고 다시 시도해주세요.",header_actions:{language:"언어 변경",theme:"테마 변경",tasks:"작업",audios:"오디오",logout:"로그아웃",notifications:"알림"},page_title:{home:"홈",wireguard:"WireGuard",network:"네트워크",wifi:"Wi-Fi",rules:"규칙",routes:"경로",devices:"장치",messages:"메시지",contacts:"연락처",calls:"전화",apps:"앱",files:"파일",audios:"오디오",videos:"비디오",images:"이미지",books:"도서",feeds:"피드",notes:"노트",json_viewer:"JSON 뷰어",qrcode_generator:"QR코드 생성기",trash:"휴지통",aichats:"ChatGPT",screen_mirror:"화면 미러링",device_info:"장치 정보"},wireguard:{},wifi:{ssid:"이름",hide_ssid:"네트워크 숨김"},manufacturer:"제조사",mac_address:"MAC 주소",ip_address:"IP 주소",online:"온라인",offline:"오프라인",unknown:"알 수 없음",created_at:"생성 일시",updated_at:"업데이트 일시",active_at:"활동 일시",rename:"이름 변경",apply_to:"적용 대상",direction:"방향",match:"일치",inbound:"수신",outbound:"송신",target_type:{ip:"IP 주소",net:"서브넷",dns:"도메인",remote_port:"원격 포트",internet:"인터넷",iface:"로컬 네트워크",list:"대상 목록"},all_devices:"모든 장치",network:"네트워크",allow:"허용",block:"차단",description:"설명",notes:"노트",rule_inbound:"{action} {target}에서의 트래픽",rule_outbound:"{action} {target}으로의 트래픽",for_example:"예시",invalid_value:"잘못된 값",space:" ",remote_port:"원격 포트 {port}",all_local_networks:"모든 로컬 네트워크",examples_ip:`예시 10.10.10.2 @@ -3236,7 +3236,7 @@ example.com:80,443–453`,examples_remote_port:`예시 1419 1001–1024`,route_description:"{if_name}을(를) 통해 {target}으로의 트래픽 라우팅",traffic_to:"트래픽 대상",route_via:"라우트 경로",delete_message:"메시지 삭제",social:"소셜",messages:"메시지",contacts:"연락처",calls:"전화",storage:"저장소",files:"파일",music:"음악",videos:"비디오",images:"이미지",audios:"오디오",content:"컨텐츠",from:"보낸 이",type:"유형",time:"시간",message_type:{1:"받은 편지함",2:"보낸 편지함",3:"임시 보관함",4:"발신함",inbox:"받은 편지함",sent:"보낸 편지함",outbox:"발신함",drafts:"임시 보관함"},artist:"아티스트",sms_address:"주소",phone_numbers:"전화번호",telephone:"전화",custom:"사용자 정의",website:"웹사이트",email:"이메일",phone_number:"전화번호",add_field:"필드 추가",im:"IM",contact:{phone_number_type:{1:"집",2:"모바일",3:"직장",4:"직장 팩스",5:"집 팩스",6:"페이저",7:"기타",8:"콜백",9:"자동차",10:"회사 본부",11:"ISDN",12:"본부",13:"기타 팩스",14:"라디오",15:"텔렉스",16:"TTY TDD",17:"직장 모바일",18:"직장 페이저",19:"어시스턴트",20:"MMS"},email_type:{1:"집",2:"직장",3:"기타",4:"모바일"},address_type:{1:"집",2:"직장",3:"기타"},event_type:{1:"기념일",2:"기타",3:"생일"},im_type:{0:"AIM",1:"Windows Live",2:"Yahoo",3:"Skype",4:"QQ",5:"행아웃",6:"ICQ",7:"Jabber",8:"NetMeeting"},website_type:{1:"홈페이지",2:"블로그",3:"프로필",4:"집",5:"직장",6:"FTP",7:"기타"}},call_type:{1:"수신",2:"발신",3:"부재중",4:"음성 메일",5:"거절",6:"차단",incoming:"수신",outgoing:"발신",missed:"부재중"},app_type:{user:"사용자",system:"시스템"},first_name:"이름",last_name:"성",middle_name:"중간 이름",prefix:"접두사",suffix:"접미사",browser_warning:"Chrome 웹 브라우저의 최신 버전을 사용하는 것이 좋습니다.",no_permission:'권한 없음. APP > "PC에서 웹"으로 이동하여 권한을 활성화하고 페이지를 새로 고칩니다.',no_data:"데이터 없음.",loading:"로딩 중...",duration:"기간",started_at:"시작일",phone_geo:"GEO",avatar:"아바타",phone_isp_type:{1:"중국 모바일",2:"중국 유니콤",3:"중국 텔레콤",4:"중국 유니콤 가상",5:"중국 텔레콤 가상",6:"중국 모바일 가상"},storage_free_total:"{free} 중 {total} 사용 가능",current_path:"현재 경로",create_folder:"폴더 생성",upload_files:"파일 업로드",upload_folder:"폴더 업로드",preview:"미리보기",view:"보기",upload:"업로드",download:"다운로드",copy:"복사",paste:"붙여넣기",cut:"잘라내기",duplicate:"중복",properties:"속성",show_hidden:"숨은 항목 표시",select_mode:"선택 모드",modified_at:"수정일",file_size:"파일 크기",path:"경로",open:"열기",box_is_null:"앱에서 상자를 선택한 후 다시 시도하십시오.",battery_left:"배터리 {percentage}%",invalid_file_signature:"잘못된 파일 서명",no_task:"작업 없음",upload_status:{created:"대기 중",pending:"업로드 중",saving:"저장 중",done:"업로드 완료",error:"업로드 실패"},load_failed:"{name} 로드 실패",network_error:"네트워크 오류, API에 연결할 수 없음",web_access_disabled:'현재 웹 액세스가 비활성화되어 있습니다. PlainApp > 오른쪽 상단 💻 아이콘 > "PC에서 웹" 페이지를 열고 "활성화" 스위치를 탭하세요.',play:"재생",add_to_playlist:"재생 목록에 추가",added_to_playlist:"재생 목록에 추가되었습니다!",select_first:"먼저 선택하세요!",search_hint:"검색...",keywords:"키워드",search:"검색",tags:"태그",add_to_tags:"태그에 추가",remove_from_tags:"태그에서 제거",delete_files:"파일 삭제",clear_list:"목록 지우기",select_tags:"태그 선택",tools:"도구",json_viewer:"JSON 뷰어",qrcode_generator:"QR 코드 생성기",title:"제목",restore:"복원",trash:"휴지통",move_to_trash:"휴지통으로 이동",work:"작업",expand_all:"모두 펼치기",collapse_all:"모두 축소하기",all:"모두",manage:"관리",subscriptions:"구독",published_at:"게시일",source:"출처",view_original_article:"원본 기사 보기",add:"추가",add_tag:"태그 추가",add_subscription:"구독 추가",import_opml_file:"OPML 파일 가져오기",export_opml_file:"OPML 파일 내보내기",rss_url:"RSS URL",imported:"가져옴",update_subscription:"구독 업데이트",sync_feeds:"피드 동기화",sync_content:"콘텐츠 동기화",feeds_synced:"피드 동기화됨",syncing:"동기화 중...",meta_no_title:"[제목 없음]",no_content:"[콘텐츠 없음]",confirm:"확인",upload_audios:"음악 폴더 또는 다른 폴더에 업로드할 수 있습니다.",upload_videos:"비디오 폴더 또는 다른 폴더에 업로드할 수 있습니다.",upload_images:"이미지 폴더 또는 다른 폴더에 업로드할 수 있습니다.",no_files:"파일 없음",view_origin_image:"원본 이미지 보기",new_chat:"새로운 채팅",ai:"인공 지능",config:"설정",api_key:"API 키",apps:"앱",version:"버전",size:"크기",recents:"최근",internal_storage:"내부 저장소",sdcard:"SD 카드",recent_files:"최근 파일",installed_at:"설치일",screen_mirror:"화면 미러링",try_again:"다시 시도",stop_mirror:"미러링 중지",fullscreen:"전체 화면",deleting:"삭제 중...",uninstalling:"제거 중...",uninstall:"제거",install:"설치",sending:"전송 중...",usb_storage:"USB 저장소",folders:"폴더",color:"색상",make_a_phone_call:"전화 걸기",view_as_list:"목록으로 보기",view_as_grid:"그리드로 보기",pause:"일시 정지",playlist:"재생 목록",no_api_key:"API 키 없음",refresh:"새로 고침",info:"정보",zoom_in:"확대",zoom_out:"축소",resize:"크기 조절",rotate_left:"왼쪽으로 회전",rotate_right:"오른쪽으로 회전",close:"닫기",close_other_tabs:"다른 탭 닫기",close_tabs_to_the_right:"오른쪽의 탭 닫기",relaunch_app:"앱 다시 시작",all_items_on_this_page_are_selected:"이 페이지의 모든 {count} 항목이 선택되었습니다.",all_items_are_selected:"모든 {count} 항목이 선택되었습니다.",select_all_items:"모든 {count} 항목 선택",clear_selection:"선택 지우기",screen_mirror_request_permission_failed:"PlainApp에 스크린샷 권한이 부여되지 않았습니다.",screen_mirror_request_permission:`전화에서 "지금 시작"을 탭하세요. 권한 창이 표시되지 않으면 PlainApp을 다시 시작하세요. -{seconds} 초 후에 다시 시도하세요`};var sy;try{sy=Map}catch{}var ly;try{ly=Set}catch{}function mS(t,e,r){if(!t||typeof t!="object"||typeof t=="function")return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(cy);if(sy&&t instanceof sy)return new Map(Array.from(t.entries()));if(ly&&t instanceof ly)return new Set(Array.from(t.values()));if(t instanceof Object){e.push(t);var n=Object.create(t);r.push(n);for(var o in t){var i=e.findIndex(function(a){return a===t[o]});n[o]=i>-1?r[i]:mS(t[o],e,r)}return n}return t}function cy(t){return mS(t,[],[])}const Aae=Object.prototype.toString,Sae=Error.prototype.toString,Iae=RegExp.prototype.toString,$ae=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Oae=/^Symbol\((.*)\)(.*)$/;function Pae(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function dT(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const r=typeof t;if(r==="number")return Pae(t);if(r==="string")return e?`"${t}"`:t;if(r==="function")return"[Function "+(t.name||"anonymous")+"]";if(r==="symbol")return $ae.call(t).replace(Oae,"Symbol($1)");const n=Aae.call(t).slice(8,-1);return n==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):n==="Error"||t instanceof Error?"["+Sae.call(t)+"]":n==="RegExp"?Iae.call(t):null}function Bl(t,e){let r=dT(t,e);return r!==null?r:JSON.stringify(t,function(n,o){let i=dT(this[n],e);return i!==null?i:o},2)}let Ha={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:r,originalValue:n})=>{let o=n!=null&&n!==r,i=`${t} must be a \`${e}\` type, but the final value was: \`${Bl(r,!0)}\``+(o?` (cast from the value \`${Bl(n,!0)}\`).`:".");return r===null&&(i+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),i},defined:"${path} must be defined"},ao={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Rae={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},dy={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Lae={isValue:"${path} field must be ${value}"},Mae={noUnknown:"${path} field has unspecified keys: ${unknown}"},Yf={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};const Dae=Object.assign(Object.create(null),{mixed:Ha,string:ao,number:Rae,date:dy,object:Mae,array:Yf,boolean:Lae});var Fae=Object.prototype,Nae=Fae.hasOwnProperty;function zae(t,e){return t!=null&&Nae.call(t,e)}var qae=zae,Bae=Array.isArray,Sa=Bae,Uae=typeof ui=="object"&&ui&&ui.Object===Object&&ui,vS=Uae,Vae=vS,jae=typeof self=="object"&&self&&self.Object===Object&&self,Hae=Vae||jae||Function("return this")(),Si=Hae,Wae=Si,Gae=Wae.Symbol,Ih=Gae,uT=Ih,gS=Object.prototype,Qae=gS.hasOwnProperty,Kae=gS.toString,Dc=uT?uT.toStringTag:void 0;function Yae(t){var e=Qae.call(t,Dc),r=t[Dc];try{t[Dc]=void 0;var n=!0}catch{}var o=Kae.call(t);return n&&(e?t[Dc]=r:delete t[Dc]),o}var Zae=Yae,Xae=Object.prototype,Jae=Xae.toString;function ese(t){return Jae.call(t)}var tse=ese,fT=Ih,rse=Zae,nse=tse,ose="[object Null]",ise="[object Undefined]",pT=fT?fT.toStringTag:void 0;function ase(t){return t==null?t===void 0?ise:ose:pT&&pT in Object(t)?rse(t):nse(t)}var tu=ase;function sse(t){return t!=null&&typeof t=="object"}var ru=sse,lse=tu,cse=ru,dse="[object Symbol]";function use(t){return typeof t=="symbol"||cse(t)&&lse(t)==dse}var E0=use,fse=Sa,pse=E0,hse=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mse=/^\w*$/;function vse(t,e){if(fse(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||pse(t)?!0:mse.test(t)||!hse.test(t)||e!=null&&t in Object(e)}var T0=vse;function gse(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var k0=gse,_se=tu,yse=k0,bse="[object AsyncFunction]",xse="[object Function]",wse="[object GeneratorFunction]",Ese="[object Proxy]";function Tse(t){if(!yse(t))return!1;var e=_se(t);return e==xse||e==wse||e==bse||e==Ese}var _S=Tse,kse=Si,Cse=kse["__core-js_shared__"],Ase=Cse,Fv=Ase,hT=function(){var t=/[^.]+$/.exec(Fv&&Fv.keys&&Fv.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Sse(t){return!!hT&&hT in t}var Ise=Sse,$se=Function.prototype,Ose=$se.toString;function Pse(t){if(t!=null){try{return Ose.call(t)}catch{}try{return t+""}catch{}}return""}var yS=Pse,Rse=_S,Lse=Ise,Mse=k0,Dse=yS,Fse=/[\\^$.*+?()[\]{}|]/g,Nse=/^\[object .+?Constructor\]$/,zse=Function.prototype,qse=Object.prototype,Bse=zse.toString,Use=qse.hasOwnProperty,Vse=RegExp("^"+Bse.call(Use).replace(Fse,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jse(t){if(!Mse(t)||Lse(t))return!1;var e=Rse(t)?Vse:Nse;return e.test(Dse(t))}var Hse=jse;function Wse(t,e){return t==null?void 0:t[e]}var Gse=Wse,Qse=Hse,Kse=Gse;function Yse(t,e){var r=Kse(t,e);return Qse(r)?r:void 0}var Is=Yse,Zse=Is,Xse=Zse(Object,"create"),$h=Xse,mT=$h;function Jse(){this.__data__=mT?mT(null):{},this.size=0}var ele=Jse;function tle(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var rle=tle,nle=$h,ole="__lodash_hash_undefined__",ile=Object.prototype,ale=ile.hasOwnProperty;function sle(t){var e=this.__data__;if(nle){var r=e[t];return r===ole?void 0:r}return ale.call(e,t)?e[t]:void 0}var lle=sle,cle=$h,dle=Object.prototype,ule=dle.hasOwnProperty;function fle(t){var e=this.__data__;return cle?e[t]!==void 0:ule.call(e,t)}var ple=fle,hle=$h,mle="__lodash_hash_undefined__";function vle(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=hle&&e===void 0?mle:e,this}var gle=vle,_le=ele,yle=rle,ble=lle,xle=ple,wle=gle;function nc(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1}var zle=Nle,qle=Oh;function Ble(t,e){var r=this.__data__,n=qle(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var Ule=Ble,Vle=kle,jle=Rle,Hle=Dle,Wle=zle,Gle=Ule;function oc(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=ade}var I0=sde,lde=E0,cde=1/0;function dde(t){if(typeof t=="string"||lde(t))return t;var e=t+"";return e=="0"&&1/t==-cde?"-0":e}var Lh=dde,ude=ES,fde=kS,pde=Sa,hde=CS,mde=I0,vde=Lh;function gde(t,e,r){e=ude(e,t);for(var n=-1,o=e.length,i=!1;++nt&&t.__isYupSchema__;class Ede{constructor(e,r){if(this.fn=void 0,this.refs=e,this.refs=e,typeof r=="function"){this.fn=r;return}if(!wde(r,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:o,otherwise:i}=r,a=typeof n=="function"?n:(...c)=>c.every(d=>d===n);this.fn=function(...c){let d=c.pop(),u=c.pop(),f=a(...c)?o:i;if(f)return typeof f=="function"?f(u):u.concat(f.resolve(d))}}resolve(e,r){let n=this.refs.map(i=>i.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),o=this.fn.apply(e,n.concat(e,r));if(o===void 0||o===e)return e;if(!SS(o))throw new TypeError("conditions must return a schema object");return o.resolve(r)}}function IS(t){return t==null?[]:[].concat(t)}function uy(){return uy=Object.assign||function(t){for(var e=1;eBl(r[i])):typeof e=="function"?e(r):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,r,n,o){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=r,this.path=n,this.type=o,this.errors=[],this.inner=[],IS(e).forEach(i=>{Cn.isError(i)?(this.errors.push(...i.errors),this.inner=this.inner.concat(i.inner.length?i.inner:i)):this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Cn)}}const kde=t=>{let e=!1;return(...r)=>{e||(e=!0,t(...r))}};function fy(t,e){let{endEarly:r,tests:n,args:o,value:i,errors:a,sort:c,path:d}=t,u=kde(e),f=n.length;const g=[];if(a=a||[],!f)return a.length?u(new Cn(a,i,d)):u(null,i);for(let _=0;_c))return!1;var u=i.get(t),f=i.get(e);if(u&&f)return u==e&&f==t;var g=-1,_=!0,b=r&Bfe?new Ffe:void 0;for(i.set(t,e),i.set(e,t);++g=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var Pme=/[^.^\]^[]+|(?=\[\]|\.\.)/g,qS=/^\d+$/,Rme=/^\d/,Lme=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Mme=/^\s*(['"]?)(.*?)(\1)\s*$/,O0=512,BT=new $s(O0),UT=new $s(O0),VT=new $s(O0),BS={Cache:$s,split:_y,normalizePath:qv,setter:function(t){var e=qv(t);return UT.get(t)||UT.set(t,function(n,o){for(var i=0,a=e.length,c=n;i=0)&&(r[o]=t[o]);return r}function $f(t){function e(r,n){let{value:o,path:i="",label:a,options:c,originalValue:d,sync:u}=r,f=qme(r,["value","path","label","options","originalValue","sync"]);const{name:g,test:_,params:b,message:h}=t;let{parent:m,context:y}=c;function v(A){return us.isRef(A)?A.getValue(o,m,y):A}function x(A={}){const L=Ome(Pp({value:o,originalValue:d,label:a,path:A.path||i},b,A.params),v),R=new Cn(Cn.formatError(A.message||h,L),o,L.path,A.type||g);return R.params=L,R}let E=Pp({path:i,parent:m,type:g,createError:x,resolve:v,options:c,originalValue:d},f);if(!u){try{Promise.resolve(_.call(E,o,E)).then(A=>{Cn.isError(A)?n(A):A?n(null,A):n(x())}).catch(n)}catch(A){n(A)}return}let T;try{var C;if(T=_.call(E,o,E),typeof((C=T)==null?void 0:C.then)=="function")throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(A){n(A);return}Cn.isError(T)?n(T):T?n(null,T):n(x())}return e.OPTIONS=t,e}let Bme=t=>t.substr(0,t.length-1).substr(1);function Ume(t,e,r,n=r){let o,i,a;return e?(BS.forEach(e,(c,d,u)=>{let f=d?Bme(c):c;if(t=t.resolve({context:n,parent:o,value:r}),t.innerType){let g=u?parseInt(f,10):0;if(r&&g>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${e}. because there is no value at that index. `);o=r,r=r&&r[g],t=t.innerType}if(!u){if(!t.fields||!t.fields[f])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${a} which is a type: "${t._type}")`);o=r,r=r&&r[f],t=t.fields[f]}i=f,a=d?"["+c+"]":"."+c}),{schema:t,parent:o,parentPath:i}):{parent:o,parentPath:e,schema:t}}class Rp{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const r of this.list)e.push(r);for(const[,r]of this.refs)e.push(r.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((r,n)=>r.concat(us.isRef(n)?e(n):n),[])}add(e){us.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){us.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new Rp;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,r){const n=this.clone();return e.list.forEach(o=>n.add(o)),e.refs.forEach(o=>n.add(o)),r.list.forEach(o=>n.delete(o)),r.refs.forEach(o=>n.delete(o)),n}}function Un(){return Un=Object.assign||function(t){for(var e=1;e{this.typeError(Ha.notType)}),this.type=(e==null?void 0:e.type)||"mixed",this.spec=Un({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},e==null?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeError=this._typeError,r._whitelistError=this._whitelistError,r._blacklistError=this._blacklistError,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.exclusiveTests=Un({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=cy(Un({},this.spec,e)),r}label(e){let r=this.clone();return r.spec.label=e,r}meta(...e){if(e.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},e[0]),r}withMutation(e){let r=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=r,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let r=this,n=e.clone();const o=Un({},r.spec,n.spec);return n.spec=o,n._typeError||(n._typeError=r._typeError),n._whitelistError||(n._whitelistError=r._whitelistError),n._blacklistError||(n._blacklistError=r._blacklistError),n._whitelist=r._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=r._blacklist.merge(e._blacklist,e._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(i=>{e.tests.forEach(a=>{i.test(a.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(e){return this.spec.nullable&&e===null?!0:this._typeCheck(e)}resolve(e){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((o,i)=>i.resolve(o,e),r),r=r.resolve(e)}return r}cast(e,r={}){let n=this.resolve(Un({value:e},r)),o=n._cast(e,r);if(e!==void 0&&r.assert!==!1&&n.isType(o)!==!0){let i=Bl(e),a=Bl(o);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". +{seconds} 초 후에 다시 시도하세요`};var sy;try{sy=Map}catch{}var ly;try{ly=Set}catch{}function hS(t,e,r){if(!t||typeof t!="object"||typeof t=="function")return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(cy);if(sy&&t instanceof sy)return new Map(Array.from(t.entries()));if(ly&&t instanceof ly)return new Set(Array.from(t.values()));if(t instanceof Object){e.push(t);var n=Object.create(t);r.push(n);for(var o in t){var i=e.findIndex(function(a){return a===t[o]});n[o]=i>-1?r[i]:hS(t[o],e,r)}return n}return t}function cy(t){return hS(t,[],[])}const Cae=Object.prototype.toString,Aae=Error.prototype.toString,Sae=RegExp.prototype.toString,Iae=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",$ae=/^Symbol\((.*)\)(.*)$/;function Oae(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function dT(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const r=typeof t;if(r==="number")return Oae(t);if(r==="string")return e?`"${t}"`:t;if(r==="function")return"[Function "+(t.name||"anonymous")+"]";if(r==="symbol")return Iae.call(t).replace($ae,"Symbol($1)");const n=Cae.call(t).slice(8,-1);return n==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):n==="Error"||t instanceof Error?"["+Aae.call(t)+"]":n==="RegExp"?Sae.call(t):null}function Bl(t,e){let r=dT(t,e);return r!==null?r:JSON.stringify(t,function(n,o){let i=dT(this[n],e);return i!==null?i:o},2)}let Ha={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:r,originalValue:n})=>{let o=n!=null&&n!==r,i=`${t} must be a \`${e}\` type, but the final value was: \`${Bl(r,!0)}\``+(o?` (cast from the value \`${Bl(n,!0)}\`).`:".");return r===null&&(i+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),i},defined:"${path} must be defined"},ao={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Pae={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},dy={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Rae={isValue:"${path} field must be ${value}"},Lae={noUnknown:"${path} field has unspecified keys: ${unknown}"},Yf={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};const Mae=Object.assign(Object.create(null),{mixed:Ha,string:ao,number:Pae,date:dy,object:Lae,array:Yf,boolean:Rae});var Dae=Object.prototype,Fae=Dae.hasOwnProperty;function Nae(t,e){return t!=null&&Fae.call(t,e)}var zae=Nae,qae=Array.isArray,Sa=qae,Bae=typeof ui=="object"&&ui&&ui.Object===Object&&ui,mS=Bae,Uae=mS,Vae=typeof self=="object"&&self&&self.Object===Object&&self,jae=Uae||Vae||Function("return this")(),Si=jae,Hae=Si,Wae=Hae.Symbol,Ih=Wae,uT=Ih,vS=Object.prototype,Gae=vS.hasOwnProperty,Qae=vS.toString,Dc=uT?uT.toStringTag:void 0;function Kae(t){var e=Gae.call(t,Dc),r=t[Dc];try{t[Dc]=void 0;var n=!0}catch{}var o=Qae.call(t);return n&&(e?t[Dc]=r:delete t[Dc]),o}var Yae=Kae,Zae=Object.prototype,Xae=Zae.toString;function Jae(t){return Xae.call(t)}var ese=Jae,fT=Ih,tse=Yae,rse=ese,nse="[object Null]",ose="[object Undefined]",pT=fT?fT.toStringTag:void 0;function ise(t){return t==null?t===void 0?ose:nse:pT&&pT in Object(t)?tse(t):rse(t)}var tu=ise;function ase(t){return t!=null&&typeof t=="object"}var ru=ase,sse=tu,lse=ru,cse="[object Symbol]";function dse(t){return typeof t=="symbol"||lse(t)&&sse(t)==cse}var E0=dse,use=Sa,fse=E0,pse=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hse=/^\w*$/;function mse(t,e){if(use(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||fse(t)?!0:hse.test(t)||!pse.test(t)||e!=null&&t in Object(e)}var T0=mse;function vse(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var k0=vse,gse=tu,_se=k0,yse="[object AsyncFunction]",bse="[object Function]",xse="[object GeneratorFunction]",wse="[object Proxy]";function Ese(t){if(!_se(t))return!1;var e=gse(t);return e==bse||e==xse||e==yse||e==wse}var gS=Ese,Tse=Si,kse=Tse["__core-js_shared__"],Cse=kse,Fv=Cse,hT=function(){var t=/[^.]+$/.exec(Fv&&Fv.keys&&Fv.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Ase(t){return!!hT&&hT in t}var Sse=Ase,Ise=Function.prototype,$se=Ise.toString;function Ose(t){if(t!=null){try{return $se.call(t)}catch{}try{return t+""}catch{}}return""}var _S=Ose,Pse=gS,Rse=Sse,Lse=k0,Mse=_S,Dse=/[\\^$.*+?()[\]{}|]/g,Fse=/^\[object .+?Constructor\]$/,Nse=Function.prototype,zse=Object.prototype,qse=Nse.toString,Bse=zse.hasOwnProperty,Use=RegExp("^"+qse.call(Bse).replace(Dse,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Vse(t){if(!Lse(t)||Rse(t))return!1;var e=Pse(t)?Use:Fse;return e.test(Mse(t))}var jse=Vse;function Hse(t,e){return t==null?void 0:t[e]}var Wse=Hse,Gse=jse,Qse=Wse;function Kse(t,e){var r=Qse(t,e);return Gse(r)?r:void 0}var Is=Kse,Yse=Is,Zse=Yse(Object,"create"),$h=Zse,mT=$h;function Xse(){this.__data__=mT?mT(null):{},this.size=0}var Jse=Xse;function ele(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var tle=ele,rle=$h,nle="__lodash_hash_undefined__",ole=Object.prototype,ile=ole.hasOwnProperty;function ale(t){var e=this.__data__;if(rle){var r=e[t];return r===nle?void 0:r}return ile.call(e,t)?e[t]:void 0}var sle=ale,lle=$h,cle=Object.prototype,dle=cle.hasOwnProperty;function ule(t){var e=this.__data__;return lle?e[t]!==void 0:dle.call(e,t)}var fle=ule,ple=$h,hle="__lodash_hash_undefined__";function mle(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ple&&e===void 0?hle:e,this}var vle=mle,gle=Jse,_le=tle,yle=sle,ble=fle,xle=vle;function nc(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1}var Nle=Fle,zle=Oh;function qle(t,e){var r=this.__data__,n=zle(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var Ble=qle,Ule=Tle,Vle=Ple,jle=Mle,Hle=Nle,Wle=Ble;function oc(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=ide}var I0=ade,sde=E0,lde=1/0;function cde(t){if(typeof t=="string"||sde(t))return t;var e=t+"";return e=="0"&&1/t==-lde?"-0":e}var Lh=cde,dde=wS,ude=TS,fde=Sa,pde=kS,hde=I0,mde=Lh;function vde(t,e,r){e=dde(e,t);for(var n=-1,o=e.length,i=!1;++nt&&t.__isYupSchema__;class wde{constructor(e,r){if(this.fn=void 0,this.refs=e,this.refs=e,typeof r=="function"){this.fn=r;return}if(!xde(r,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:o,otherwise:i}=r,a=typeof n=="function"?n:(...c)=>c.every(d=>d===n);this.fn=function(...c){let d=c.pop(),u=c.pop(),f=a(...c)?o:i;if(f)return typeof f=="function"?f(u):u.concat(f.resolve(d))}}resolve(e,r){let n=this.refs.map(i=>i.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),o=this.fn.apply(e,n.concat(e,r));if(o===void 0||o===e)return e;if(!AS(o))throw new TypeError("conditions must return a schema object");return o.resolve(r)}}function SS(t){return t==null?[]:[].concat(t)}function uy(){return uy=Object.assign||function(t){for(var e=1;eBl(r[i])):typeof e=="function"?e(r):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,r,n,o){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=r,this.path=n,this.type=o,this.errors=[],this.inner=[],SS(e).forEach(i=>{Cn.isError(i)?(this.errors.push(...i.errors),this.inner=this.inner.concat(i.inner.length?i.inner:i)):this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Cn)}}const Tde=t=>{let e=!1;return(...r)=>{e||(e=!0,t(...r))}};function fy(t,e){let{endEarly:r,tests:n,args:o,value:i,errors:a,sort:c,path:d}=t,u=Tde(e),f=n.length;const g=[];if(a=a||[],!f)return a.length?u(new Cn(a,i,d)):u(null,i);for(let _=0;_c))return!1;var u=i.get(t),f=i.get(e);if(u&&f)return u==e&&f==t;var g=-1,_=!0,b=r&qfe?new Dfe:void 0;for(i.set(t,e),i.set(e,t);++g=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var Ome=/[^.^\]^[]+|(?=\[\]|\.\.)/g,zS=/^\d+$/,Pme=/^\d/,Rme=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Lme=/^\s*(['"]?)(.*?)(\1)\s*$/,O0=512,BT=new $s(O0),UT=new $s(O0),VT=new $s(O0),qS={Cache:$s,split:_y,normalizePath:qv,setter:function(t){var e=qv(t);return UT.get(t)||UT.set(t,function(n,o){for(var i=0,a=e.length,c=n;i=0)&&(r[o]=t[o]);return r}function $f(t){function e(r,n){let{value:o,path:i="",label:a,options:c,originalValue:d,sync:u}=r,f=zme(r,["value","path","label","options","originalValue","sync"]);const{name:g,test:_,params:b,message:h}=t;let{parent:m,context:y}=c;function v(A){return us.isRef(A)?A.getValue(o,m,y):A}function x(A={}){const L=$me(Pp({value:o,originalValue:d,label:a,path:A.path||i},b,A.params),v),R=new Cn(Cn.formatError(A.message||h,L),o,L.path,A.type||g);return R.params=L,R}let E=Pp({path:i,parent:m,type:g,createError:x,resolve:v,options:c,originalValue:d},f);if(!u){try{Promise.resolve(_.call(E,o,E)).then(A=>{Cn.isError(A)?n(A):A?n(null,A):n(x())}).catch(n)}catch(A){n(A)}return}let T;try{var C;if(T=_.call(E,o,E),typeof((C=T)==null?void 0:C.then)=="function")throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(A){n(A);return}Cn.isError(T)?n(T):T?n(null,T):n(x())}return e.OPTIONS=t,e}let qme=t=>t.substr(0,t.length-1).substr(1);function Bme(t,e,r,n=r){let o,i,a;return e?(qS.forEach(e,(c,d,u)=>{let f=d?qme(c):c;if(t=t.resolve({context:n,parent:o,value:r}),t.innerType){let g=u?parseInt(f,10):0;if(r&&g>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${e}. because there is no value at that index. `);o=r,r=r&&r[g],t=t.innerType}if(!u){if(!t.fields||!t.fields[f])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${a} which is a type: "${t._type}")`);o=r,r=r&&r[f],t=t.fields[f]}i=f,a=d?"["+c+"]":"."+c}),{schema:t,parent:o,parentPath:i}):{parent:o,parentPath:e,schema:t}}class Rp{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const r of this.list)e.push(r);for(const[,r]of this.refs)e.push(r.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((r,n)=>r.concat(us.isRef(n)?e(n):n),[])}add(e){us.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){us.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new Rp;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,r){const n=this.clone();return e.list.forEach(o=>n.add(o)),e.refs.forEach(o=>n.add(o)),r.list.forEach(o=>n.delete(o)),r.refs.forEach(o=>n.delete(o)),n}}function Un(){return Un=Object.assign||function(t){for(var e=1;e{this.typeError(Ha.notType)}),this.type=(e==null?void 0:e.type)||"mixed",this.spec=Un({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},e==null?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeError=this._typeError,r._whitelistError=this._whitelistError,r._blacklistError=this._blacklistError,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.exclusiveTests=Un({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=cy(Un({},this.spec,e)),r}label(e){let r=this.clone();return r.spec.label=e,r}meta(...e){if(e.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},e[0]),r}withMutation(e){let r=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=r,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let r=this,n=e.clone();const o=Un({},r.spec,n.spec);return n.spec=o,n._typeError||(n._typeError=r._typeError),n._whitelistError||(n._whitelistError=r._whitelistError),n._blacklistError||(n._blacklistError=r._blacklistError),n._whitelist=r._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=r._blacklist.merge(e._blacklist,e._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(i=>{e.tests.forEach(a=>{i.test(a.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(e){return this.spec.nullable&&e===null?!0:this._typeCheck(e)}resolve(e){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((o,i)=>i.resolve(o,e),r),r=r.resolve(e)}return r}cast(e,r={}){let n=this.resolve(Un({value:e},r)),o=n._cast(e,r);if(e!==void 0&&r.assert!==!1&&n.isType(o)!==!0){let i=Bl(e),a=Bl(o);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". attempted value: ${i} -`+(a!==i?`result of cast: ${a}`:""))}return o}_cast(e,r){let n=e===void 0?e:this.transforms.reduce((o,i)=>i.call(this,o,e,this),e);return n===void 0&&(n=this.getDefault()),n}_validate(e,r={},n){let{sync:o,path:i,from:a=[],originalValue:c=e,strict:d=this.spec.strict,abortEarly:u=this.spec.abortEarly}=r,f=e;d||(f=this._cast(f,Un({assert:!1},r)));let g={value:f,path:i,options:r,originalValue:c,schema:this,label:this.spec.label,sync:o,from:a},_=[];this._typeError&&_.push(this._typeError);let b=[];this._whitelistError&&b.push(this._whitelistError),this._blacklistError&&b.push(this._blacklistError),fy({args:g,value:f,path:i,sync:o,tests:_,endEarly:u},h=>{if(h)return void n(h,f);fy({tests:this.tests.concat(b),args:g,path:i,sync:o,value:f,endEarly:u},n)})}validate(e,r,n){let o=this.resolve(Un({},r,{value:e}));return typeof n=="function"?o._validate(e,r,n):new Promise((i,a)=>o._validate(e,r,(c,d)=>{c?a(c):i(d)}))}validateSync(e,r){let n=this.resolve(Un({},r,{value:e})),o;return n._validate(e,Un({},r,{sync:!0}),(i,a)=>{if(i)throw i;o=a}),o}isValid(e,r){return this.validate(e,r).then(()=>!0,n=>{if(Cn.isError(n))return!1;throw n})}isValidSync(e,r){try{return this.validateSync(e,r),!0}catch(n){if(Cn.isError(n))return!1;throw n}}_getDefault(){let e=this.spec.default;return e==null?e:typeof e=="function"?e.call(this):cy(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){let r=this.clone();return r.spec.strict=e,r}_isPresent(e){return e!=null}defined(e=Ha.defined){return this.test({message:e,name:"defined",exclusive:!0,test(r){return r!==void 0}})}required(e=Ha.required){return this.clone({presence:"required"}).withMutation(r=>r.test({message:e,name:"required",exclusive:!0,test(n){return this.schema._isPresent(n)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(r=>r.OPTIONS.name!=="required"),e}nullable(e=!0){return this.clone({nullable:e!==!1})}transform(e){let r=this.clone();return r.transforms.push(e),r}test(...e){let r;if(e.length===1?typeof e[0]=="function"?r={test:e[0]}:r=e[0]:e.length===2?r={name:e[0],test:e[1]}:r={name:e[0],message:e[1],test:e[2]},r.message===void 0&&(r.message=Ha.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),o=$f(r),i=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(a=>!(a.OPTIONS.name===r.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),n.tests.push(o),n}when(e,r){!Array.isArray(e)&&typeof e!="string"&&(r=e,e=".");let n=this.clone(),o=IS(e).map(i=>new us(i));return o.forEach(i=>{i.isSibling&&n.deps.push(i.key)}),n.conditions.push(new Ede(o,r)),n}typeError(e){let r=this.clone();return r._typeError=$f({message:e,name:"typeError",test(n){return n!==void 0&&!this.schema.isType(n)?this.createError({params:{type:this.schema._type}}):!0}}),r}oneOf(e,r=Ha.oneOf){let n=this.clone();return e.forEach(o=>{n._whitelist.add(o),n._blacklist.delete(o)}),n._whitelistError=$f({message:r,name:"oneOf",test(o){if(o===void 0)return!0;let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:i.toArray().join(", "),resolved:a}})}}),n}notOneOf(e,r=Ha.notOneOf){let n=this.clone();return e.forEach(o=>{n._blacklist.add(o),n._whitelist.delete(o)}),n._blacklistError=$f({message:r,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:i.toArray().join(", "),resolved:a}}):!0}}),n}strip(e=!0){let r=this.clone();return r.spec.strip=e,r}describe(){const e=this.clone(),{label:r,meta:n}=e.spec;return{meta:n,label:r,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(i=>({name:i.OPTIONS.name,params:i.OPTIONS.params})).filter((i,a,c)=>c.findIndex(d=>d.name===i.name)===a)}}}xo.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])xo.prototype[`${t}At`]=function(e,r,n={}){const{parent:o,parentPath:i,schema:a}=Ume(this,e,r,n.context);return a[t](o&&o[i],Un({},n,{parent:o,path:e}))};for(const t of["equals","is"])xo.prototype[t]=xo.prototype.oneOf;for(const t of["not","nope"])xo.prototype[t]=xo.prototype.notOneOf;xo.prototype.optional=xo.prototype.notRequired;const pn=t=>t==null;let Vme=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,jme=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Hme=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Wme=t=>pn(t)||t===t.trim(),Gme={}.toString();function Qme(){return new US}class US extends xo{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;const r=e!=null&&e.toString?e.toString():e;return r===Gme?e:r})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,r=ao.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},test(n){return pn(n)||n.length===this.resolve(e)}})}min(e,r=ao.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:e},test(n){return pn(n)||n.length>=this.resolve(e)}})}max(e,r=ao.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:e},test(n){return pn(n)||n.length<=this.resolve(e)}})}matches(e,r){let n=!1,o,i;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:o,name:i}=r:o=r),this.test({name:i||"matches",message:o||ao.matches,params:{regex:e},test:a=>pn(a)||a===""&&n||a.search(e)!==-1})}email(e=ao.email){return this.matches(Vme,{name:"email",message:e,excludeEmptyString:!0})}url(e=ao.url){return this.matches(jme,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=ao.uuid){return this.matches(Hme,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=ao.trim){return this.transform(r=>r!=null?r.trim():r).test({message:e,name:"trim",test:Wme})}lowercase(e=ao.lowercase){return this.transform(r=>pn(r)?r:r.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:r=>pn(r)||r===r.toLowerCase()})}uppercase(e=ao.uppercase){return this.transform(r=>pn(r)?r:r.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:r=>pn(r)||r===r.toUpperCase()})}}Qme.prototype=US.prototype;var Kme=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function Yme(t){var e=[1,4,5,6,7,10,11],r=0,n,o;if(o=Kme.exec(t)){for(var i=0,a;a=e[i];++i)o[a]=+o[a]||0;o[2]=(+o[2]||1)-1,o[3]=+o[3]||1,o[7]=o[7]?String(o[7]).substr(0,3):0,(o[8]===void 0||o[8]==="")&&(o[9]===void 0||o[9]==="")?n=+new Date(o[1],o[2],o[3],o[4],o[5],o[6],o[7]):(o[8]!=="Z"&&o[9]!==void 0&&(r=o[10]*60+o[11],o[9]==="+"&&(r=0-r)),n=Date.UTC(o[1],o[2],o[3],o[4],o[5]+r,o[6],o[7]))}else n=Date.parse?Date.parse(t):NaN;return n}let VS=new Date(""),Zme=t=>Object.prototype.toString.call(t)==="[object Date]";class Xme extends xo{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:(e=Yme(e),isNaN(e)?VS:new Date(e))})})}_typeCheck(e){return Zme(e)&&!isNaN(e.getTime())}prepareParam(e,r){let n;if(us.isRef(e))n=e;else{let o=this.cast(e);if(!this._typeCheck(o))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=o}return n}min(e,r=dy.min){let n=this.prepareParam(e,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:e},test(o){return pn(o)||o>=this.resolve(n)}})}max(e,r=dy.max){let n=this.prepareParam(e,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:e},test(o){return pn(o)||o<=this.resolve(n)}})}}Xme.INVALID_DATE=VS;var jS={exports:{}};jS.exports=function(t){return HS(Jme(t),t)};jS.exports.array=HS;function HS(t,e){var r=t.length,n=new Array(r),o={},i=r,a=eve(e),c=tve(t);for(e.forEach(function(u){if(!c.has(u[0])||!c.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||d(t[i],i,new Set);return n;function d(u,f,g){if(g.has(u)){var _;try{_=", node was:"+JSON.stringify(u)}catch{_=""}throw new Error("Cyclic dependency"+_)}if(!c.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!o[f]){o[f]=!0;var b=a.get(u)||new Set;if(b=Array.from(b),f=b.length){g.add(u);do{var h=b[--f];d(h,c.get(h),g)}while(f);g.delete(u)}n[--r]=u}}}function Jme(t){for(var e=new Set,r=0,n=t.length;r{this.transform(function(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{r=null}return this.isType(r)?r:null})})}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,r){const n=super._cast(e,r);if(!this._typeCheck(n)||!this.innerType)return n;let o=!1;const i=n.map((a,c)=>{const d=this.innerType.cast(a,Lp({},r,{path:`${r.path||""}[${c}]`}));return d!==a&&(o=!0),d});return o?i:n}_validate(e,r={},n){var o,i;let a=[],c=r.sync,d=r.path,u=this.innerType,f=(o=r.abortEarly)!=null?o:this.spec.abortEarly,g=(i=r.recursive)!=null?i:this.spec.recursive,_=r.originalValue!=null?r.originalValue:e;super._validate(e,r,(b,h)=>{if(b){if(!Cn.isError(b)||f)return void n(b,h);a.push(b)}if(!g||!u||!this._typeCheck(h)){n(a[0]||null,h);return}_=_||h;let m=new Array(h.length);for(let y=0;yu.validate(v,E,C)}fy({sync:c,path:d,value:h,errors:a,endEarly:f,tests:m},n)})}clone(e){const r=super.clone(e);return r.innerType=this.innerType,r}concat(e){let r=super.concat(e);return r.innerType=this.innerType,e.innerType&&(r.innerType=r.innerType?r.innerType.concat(e.innerType):e.innerType),r}of(e){let r=this.clone();if(!SS(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Bl(e));return r.innerType=e,r}length(e,r=Yf.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},test(n){return pn(n)||n.length===this.resolve(e)}})}min(e,r){return r=r||Yf.min,this.test({message:r,name:"min",exclusive:!0,params:{min:e},test(n){return pn(n)||n.length>=this.resolve(e)}})}max(e,r){return r=r||Yf.max,this.test({message:r,name:"max",exclusive:!0,params:{max:e},test(n){return pn(n)||n.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,r)=>this._typeCheck(e)?e:r==null?[]:[].concat(r))}compact(e){let r=e?(n,o,i)=>!e(n,o,i):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}rve.prototype=WS.prototype;function nve(t){Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(r=>{Dae[e][r]=t[e][r]})})}nve({mixed:{required:"valid.required"},string:{min:"valid.string_min"}});var jT;const ove=Jz({legacy:!1,locale:localStorage.getItem("locale")??((jT=navigator.languages)==null?void 0:jT[0]),fallbackLocale:"en-US",messages:{"en-US":fae,"zh-CN":pae,"zh-TW":hae,es:mae,ja:vae,nl:gae,it:_ae,hi:yae,fr:bae,ru:xae,bn:wae,de:Eae,pt:Tae,ta:kae,ko:Cae}}),ive=localStorage.getItem("client_id");ive||localStorage.setItem("client_id",qg());QM({setup(){Uc(dC,aae)},render:()=>No(oB)}).use(lae).use(dae).use(uU()).use(Do).use(ove).mount("#app");export{uJ as $,_i as A,yi as B,_oe as C,mve as D,vve as E,Pt as F,Fy as G,go as H,Vn as I,wo as J,vo as K,Wf as L,_q as M,FE as N,mn as O,mt as P,Hl as Q,ws as R,Hr as S,Kb as T,ta as U,Cve as V,Bg as W,wq as X,l0 as Y,s0 as Z,gn as _,V as a,Uve as a$,gs as a0,_ve as a1,pp as a2,XZ as a3,qQ as a4,uY as a5,MQ as a6,ige as a7,$ve as a8,gh as a9,dU as aA,uX as aB,St as aC,$l as aD,Ove as aE,Bo as aF,jg as aG,Kne as aH,Pve as aI,Lve as aJ,Qve as aK,BZ as aL,Rve as aM,wi as aN,qU as aO,ms as aP,goe as aQ,xQ as aR,PZ as aS,Dve as aT,ege as aU,uo as aV,Mve as aW,rge as aX,Do as aY,tge as aZ,nge as a_,qE as aa,Ee as ab,dX as ac,Yb as ad,Pge as ae,Rge as af,$Q as ag,gl as ah,jve as ai,yge as aj,Hve as ak,JZ as al,HQ as am,Qme as an,as as ao,Xs as ap,Sl as aq,bZ as ar,fp as as,i0 as at,age as au,Ave as av,Ive as aw,Ob as ax,uve as ay,OQ as az,GA as b,es as b$,vge as b0,gge as b1,kv as b2,gZ as b3,mte as b4,ite as b5,_ge as b6,Vve as b7,Bve as b8,Vge as b9,lve as bA,Uc as bB,Ho as bC,sve as bD,l4 as bE,v6 as bF,rn as bG,Wo as bH,YL as bI,QA as bJ,Zve as bK,PQ as bL,Xve as bM,Jve as bN,g2 as bO,bl as bP,iX as bQ,yoe as bR,rve as bS,Kve as bT,Yve as bU,it as bV,zp as bW,Eq as bX,yb as bY,bve as bZ,Tve as b_,Age as ba,Ege as bb,Tge as bc,Cge as bd,$ge as be,Oge as bf,wge as bg,Ro as bh,jo as bi,kge as bj,qg as bk,vX as bl,yve as bm,ME as bn,dte as bo,Ige as bp,Sge as bq,No as br,Go as bs,dge as bt,bge as bu,Wve as bv,xge as bw,Gve as bx,xve as by,wve as bz,ie as c,BM as c0,UM as c1,Eve as c2,kve as c3,bV as c4,kd as c5,yp as c6,IH as c7,aH as c8,sge as c9,fge as ca,gve as cb,hve as cc,Fve as cd,cge as ce,lge as cf,uge as cg,oge as ch,Nve as ci,zve as cj,pge as ck,qve as cl,hge as cm,hq as cn,fve as co,pve as cp,qd as cq,xb as cr,BC as cs,bb as ct,hs as cu,pq as cv,zne as cw,Bt as d,Bd as e,ki as f,ys as g,Lo as h,jr as i,he as j,Tt as k,Ot as l,_t as m,Rt as n,te as o,Be as p,mge as q,Se as r,ya as s,Ne as t,$n as u,tg as v,Vt as w,vi as x,Sve as y,Id as z}; +`+(a!==i?`result of cast: ${a}`:""))}return o}_cast(e,r){let n=e===void 0?e:this.transforms.reduce((o,i)=>i.call(this,o,e,this),e);return n===void 0&&(n=this.getDefault()),n}_validate(e,r={},n){let{sync:o,path:i,from:a=[],originalValue:c=e,strict:d=this.spec.strict,abortEarly:u=this.spec.abortEarly}=r,f=e;d||(f=this._cast(f,Un({assert:!1},r)));let g={value:f,path:i,options:r,originalValue:c,schema:this,label:this.spec.label,sync:o,from:a},_=[];this._typeError&&_.push(this._typeError);let b=[];this._whitelistError&&b.push(this._whitelistError),this._blacklistError&&b.push(this._blacklistError),fy({args:g,value:f,path:i,sync:o,tests:_,endEarly:u},h=>{if(h)return void n(h,f);fy({tests:this.tests.concat(b),args:g,path:i,sync:o,value:f,endEarly:u},n)})}validate(e,r,n){let o=this.resolve(Un({},r,{value:e}));return typeof n=="function"?o._validate(e,r,n):new Promise((i,a)=>o._validate(e,r,(c,d)=>{c?a(c):i(d)}))}validateSync(e,r){let n=this.resolve(Un({},r,{value:e})),o;return n._validate(e,Un({},r,{sync:!0}),(i,a)=>{if(i)throw i;o=a}),o}isValid(e,r){return this.validate(e,r).then(()=>!0,n=>{if(Cn.isError(n))return!1;throw n})}isValidSync(e,r){try{return this.validateSync(e,r),!0}catch(n){if(Cn.isError(n))return!1;throw n}}_getDefault(){let e=this.spec.default;return e==null?e:typeof e=="function"?e.call(this):cy(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){let r=this.clone();return r.spec.strict=e,r}_isPresent(e){return e!=null}defined(e=Ha.defined){return this.test({message:e,name:"defined",exclusive:!0,test(r){return r!==void 0}})}required(e=Ha.required){return this.clone({presence:"required"}).withMutation(r=>r.test({message:e,name:"required",exclusive:!0,test(n){return this.schema._isPresent(n)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(r=>r.OPTIONS.name!=="required"),e}nullable(e=!0){return this.clone({nullable:e!==!1})}transform(e){let r=this.clone();return r.transforms.push(e),r}test(...e){let r;if(e.length===1?typeof e[0]=="function"?r={test:e[0]}:r=e[0]:e.length===2?r={name:e[0],test:e[1]}:r={name:e[0],message:e[1],test:e[2]},r.message===void 0&&(r.message=Ha.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),o=$f(r),i=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(a=>!(a.OPTIONS.name===r.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),n.tests.push(o),n}when(e,r){!Array.isArray(e)&&typeof e!="string"&&(r=e,e=".");let n=this.clone(),o=SS(e).map(i=>new us(i));return o.forEach(i=>{i.isSibling&&n.deps.push(i.key)}),n.conditions.push(new wde(o,r)),n}typeError(e){let r=this.clone();return r._typeError=$f({message:e,name:"typeError",test(n){return n!==void 0&&!this.schema.isType(n)?this.createError({params:{type:this.schema._type}}):!0}}),r}oneOf(e,r=Ha.oneOf){let n=this.clone();return e.forEach(o=>{n._whitelist.add(o),n._blacklist.delete(o)}),n._whitelistError=$f({message:r,name:"oneOf",test(o){if(o===void 0)return!0;let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:i.toArray().join(", "),resolved:a}})}}),n}notOneOf(e,r=Ha.notOneOf){let n=this.clone();return e.forEach(o=>{n._blacklist.add(o),n._whitelist.delete(o)}),n._blacklistError=$f({message:r,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:i.toArray().join(", "),resolved:a}}):!0}}),n}strip(e=!0){let r=this.clone();return r.spec.strip=e,r}describe(){const e=this.clone(),{label:r,meta:n}=e.spec;return{meta:n,label:r,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(i=>({name:i.OPTIONS.name,params:i.OPTIONS.params})).filter((i,a,c)=>c.findIndex(d=>d.name===i.name)===a)}}}xo.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])xo.prototype[`${t}At`]=function(e,r,n={}){const{parent:o,parentPath:i,schema:a}=Bme(this,e,r,n.context);return a[t](o&&o[i],Un({},n,{parent:o,path:e}))};for(const t of["equals","is"])xo.prototype[t]=xo.prototype.oneOf;for(const t of["not","nope"])xo.prototype[t]=xo.prototype.notOneOf;xo.prototype.optional=xo.prototype.notRequired;const pn=t=>t==null;let Ume=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,Vme=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,jme=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Hme=t=>pn(t)||t===t.trim(),Wme={}.toString();function Gme(){return new BS}class BS extends xo{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;const r=e!=null&&e.toString?e.toString():e;return r===Wme?e:r})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,r=ao.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},test(n){return pn(n)||n.length===this.resolve(e)}})}min(e,r=ao.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:e},test(n){return pn(n)||n.length>=this.resolve(e)}})}max(e,r=ao.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:e},test(n){return pn(n)||n.length<=this.resolve(e)}})}matches(e,r){let n=!1,o,i;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:o,name:i}=r:o=r),this.test({name:i||"matches",message:o||ao.matches,params:{regex:e},test:a=>pn(a)||a===""&&n||a.search(e)!==-1})}email(e=ao.email){return this.matches(Ume,{name:"email",message:e,excludeEmptyString:!0})}url(e=ao.url){return this.matches(Vme,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=ao.uuid){return this.matches(jme,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=ao.trim){return this.transform(r=>r!=null?r.trim():r).test({message:e,name:"trim",test:Hme})}lowercase(e=ao.lowercase){return this.transform(r=>pn(r)?r:r.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:r=>pn(r)||r===r.toLowerCase()})}uppercase(e=ao.uppercase){return this.transform(r=>pn(r)?r:r.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:r=>pn(r)||r===r.toUpperCase()})}}Gme.prototype=BS.prototype;var Qme=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function Kme(t){var e=[1,4,5,6,7,10,11],r=0,n,o;if(o=Qme.exec(t)){for(var i=0,a;a=e[i];++i)o[a]=+o[a]||0;o[2]=(+o[2]||1)-1,o[3]=+o[3]||1,o[7]=o[7]?String(o[7]).substr(0,3):0,(o[8]===void 0||o[8]==="")&&(o[9]===void 0||o[9]==="")?n=+new Date(o[1],o[2],o[3],o[4],o[5],o[6],o[7]):(o[8]!=="Z"&&o[9]!==void 0&&(r=o[10]*60+o[11],o[9]==="+"&&(r=0-r)),n=Date.UTC(o[1],o[2],o[3],o[4],o[5]+r,o[6],o[7]))}else n=Date.parse?Date.parse(t):NaN;return n}let US=new Date(""),Yme=t=>Object.prototype.toString.call(t)==="[object Date]";class Zme extends xo{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:(e=Kme(e),isNaN(e)?US:new Date(e))})})}_typeCheck(e){return Yme(e)&&!isNaN(e.getTime())}prepareParam(e,r){let n;if(us.isRef(e))n=e;else{let o=this.cast(e);if(!this._typeCheck(o))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=o}return n}min(e,r=dy.min){let n=this.prepareParam(e,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:e},test(o){return pn(o)||o>=this.resolve(n)}})}max(e,r=dy.max){let n=this.prepareParam(e,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:e},test(o){return pn(o)||o<=this.resolve(n)}})}}Zme.INVALID_DATE=US;var VS={exports:{}};VS.exports=function(t){return jS(Xme(t),t)};VS.exports.array=jS;function jS(t,e){var r=t.length,n=new Array(r),o={},i=r,a=Jme(e),c=eve(t);for(e.forEach(function(u){if(!c.has(u[0])||!c.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||d(t[i],i,new Set);return n;function d(u,f,g){if(g.has(u)){var _;try{_=", node was:"+JSON.stringify(u)}catch{_=""}throw new Error("Cyclic dependency"+_)}if(!c.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!o[f]){o[f]=!0;var b=a.get(u)||new Set;if(b=Array.from(b),f=b.length){g.add(u);do{var h=b[--f];d(h,c.get(h),g)}while(f);g.delete(u)}n[--r]=u}}}function Xme(t){for(var e=new Set,r=0,n=t.length;r{this.transform(function(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{r=null}return this.isType(r)?r:null})})}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,r){const n=super._cast(e,r);if(!this._typeCheck(n)||!this.innerType)return n;let o=!1;const i=n.map((a,c)=>{const d=this.innerType.cast(a,Lp({},r,{path:`${r.path||""}[${c}]`}));return d!==a&&(o=!0),d});return o?i:n}_validate(e,r={},n){var o,i;let a=[],c=r.sync,d=r.path,u=this.innerType,f=(o=r.abortEarly)!=null?o:this.spec.abortEarly,g=(i=r.recursive)!=null?i:this.spec.recursive,_=r.originalValue!=null?r.originalValue:e;super._validate(e,r,(b,h)=>{if(b){if(!Cn.isError(b)||f)return void n(b,h);a.push(b)}if(!g||!u||!this._typeCheck(h)){n(a[0]||null,h);return}_=_||h;let m=new Array(h.length);for(let y=0;yu.validate(v,E,C)}fy({sync:c,path:d,value:h,errors:a,endEarly:f,tests:m},n)})}clone(e){const r=super.clone(e);return r.innerType=this.innerType,r}concat(e){let r=super.concat(e);return r.innerType=this.innerType,e.innerType&&(r.innerType=r.innerType?r.innerType.concat(e.innerType):e.innerType),r}of(e){let r=this.clone();if(!AS(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Bl(e));return r.innerType=e,r}length(e,r=Yf.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},test(n){return pn(n)||n.length===this.resolve(e)}})}min(e,r){return r=r||Yf.min,this.test({message:r,name:"min",exclusive:!0,params:{min:e},test(n){return pn(n)||n.length>=this.resolve(e)}})}max(e,r){return r=r||Yf.max,this.test({message:r,name:"max",exclusive:!0,params:{max:e},test(n){return pn(n)||n.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,r)=>this._typeCheck(e)?e:r==null?[]:[].concat(r))}compact(e){let r=e?(n,o,i)=>!e(n,o,i):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}tve.prototype=HS.prototype;function rve(t){Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(r=>{Mae[e][r]=t[e][r]})})}rve({mixed:{required:"valid.required"},string:{min:"valid.string_min"}});const nve=Xz({legacy:!1,locale:localStorage.getItem("locale")??navigator.language,fallbackLocale:"en-US",messages:{"en-US":uae,"zh-CN":fae,"zh-TW":pae,es:hae,ja:mae,nl:vae,it:gae,hi:_ae,fr:yae,ru:bae,bn:xae,de:wae,pt:Eae,ta:Tae,ko:kae}}),ove=localStorage.getItem("client_id");ove||localStorage.setItem("client_id",qg());GM({setup(){Uc(cC,iae)},render:()=>No(nB)}).use(sae).use(cae).use(dU()).use(Do).use(nve).mount("#app");export{dJ as $,_i as A,yi as B,goe as C,hve as D,mve as E,Pt as F,Fy as G,go as H,Vn as I,wo as J,vo as K,Wf as L,gq as M,FE as N,mn as O,mt as P,Hl as Q,ws as R,Hr as S,Kb as T,ta as U,kve as V,Bg as W,xq as X,l0 as Y,s0 as Z,gn as _,V as a,Bve as a$,gs as a0,gve as a1,pp as a2,ZZ as a3,zQ as a4,dY as a5,LQ as a6,oge as a7,Ive as a8,gh as a9,cU as aA,dX as aB,St as aC,$l as aD,$ve as aE,Bo as aF,jg as aG,Qne as aH,Ove as aI,Rve as aJ,Gve as aK,qZ as aL,Pve as aM,wi as aN,zU as aO,ms as aP,voe as aQ,bQ as aR,OZ as aS,Mve as aT,Jve as aU,uo as aV,Lve as aW,tge as aX,Do as aY,ege as aZ,rge as a_,qE as aa,Ee as ab,cX as ac,Yb as ad,Oge as ae,Pge as af,IQ as ag,gl as ah,Vve as ai,_ge as aj,jve as ak,XZ as al,jQ as am,Gme as an,as as ao,Xs as ap,Sl as aq,yZ as ar,fp as as,i0 as at,ige as au,Cve as av,Sve as aw,Ob as ax,dve as ay,$Q as az,WA as b,es as b$,mge as b0,vge as b1,kv as b2,vZ as b3,hte as b4,ote as b5,gge as b6,Uve as b7,qve as b8,Uge as b9,sve as bA,Uc as bB,Ho as bC,ave as bD,s4 as bE,m6 as bF,rn as bG,Wo as bH,KL as bI,GA as bJ,Yve as bK,OQ as bL,Zve as bM,Xve as bN,g2 as bO,bl as bP,oX as bQ,_oe as bR,tve as bS,Qve as bT,Kve as bU,it as bV,zp as bW,wq as bX,yb as bY,yve as bZ,Eve as b_,Cge as ba,wge as bb,Ege as bc,kge as bd,Ige as be,$ge as bf,xge as bg,Ro as bh,jo as bi,Tge as bj,qg as bk,mX as bl,_ve as bm,ME as bn,cte as bo,Sge as bp,Age as bq,No as br,Go as bs,cge as bt,yge as bu,Hve as bv,bge as bw,Wve as bx,bve as by,xve as bz,ie as c,qM as c0,BM as c1,wve as c2,Tve as c3,yV as c4,kd as c5,yp as c6,SH as c7,iH as c8,age as c9,uge as ca,vve as cb,pve as cc,Dve as cd,lge as ce,sge as cf,dge as cg,nge as ch,Fve as ci,Nve as cj,fge as ck,zve as cl,pge as cm,pq as cn,uve as co,fve as cp,qd as cq,xb as cr,qC as cs,bb as ct,hs as cu,fq as cv,Nne as cw,Bt as d,Bd as e,ki as f,ys as g,Lo as h,jr as i,he as j,Tt as k,Ot as l,_t as m,Rt as n,te as o,Be as p,hge as q,Se as r,ya as s,Ne as t,$n as u,tg as v,Vt as w,vi as x,Ave as y,Id as z}; diff --git a/app/src/main/resources/web/assets/javascript-36de10d3.js b/app/src/main/resources/web/assets/javascript-d04b7bb9.js similarity index 84% rename from app/src/main/resources/web/assets/javascript-36de10d3.js rename to app/src/main/resources/web/assets/javascript-d04b7bb9.js index 3b69e544..aeb95e25 100644 --- a/app/src/main/resources/web/assets/javascript-36de10d3.js +++ b/app/src/main/resources/web/assets/javascript-d04b7bb9.js @@ -1,4 +1,4 @@ -import{conf as t,language as e}from"./typescript-7530e583.js";import"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import"./index-f62f2ff2.js";/*!----------------------------------------------------------------------------- +import{conf as t,language as e}from"./typescript-370a81a5.js";import"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import"./index-0c42270c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license diff --git a/app/src/main/resources/web/assets/jsonMode-a5d8f8e5.js b/app/src/main/resources/web/assets/jsonMode-2230a001.js similarity index 99% rename from app/src/main/resources/web/assets/jsonMode-a5d8f8e5.js rename to app/src/main/resources/web/assets/jsonMode-2230a001.js index 9caa834c..912f8037 100644 --- a/app/src/main/resources/web/assets/jsonMode-a5d8f8e5.js +++ b/app/src/main/resources/web/assets/jsonMode-2230a001.js @@ -1,4 +1,4 @@ -var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ze}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import"./index-f62f2ff2.js";/*!----------------------------------------------------------------------------- +var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ze}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import"./index-0c42270c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license diff --git a/app/src/main/resources/web/assets/liquid-822eb382.js b/app/src/main/resources/web/assets/liquid-15fd811a.js similarity index 98% rename from app/src/main/resources/web/assets/liquid-822eb382.js rename to app/src/main/resources/web/assets/liquid-15fd811a.js index 13ba393a..c8244f81 100644 --- a/app/src/main/resources/web/assets/liquid-822eb382.js +++ b/app/src/main/resources/web/assets/liquid-15fd811a.js @@ -1,4 +1,4 @@ -import{m as d}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import"./index-f62f2ff2.js";/*!----------------------------------------------------------------------------- +import{m as d}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import"./index-0c42270c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license diff --git a/app/src/main/resources/web/assets/list-45297bd9.js b/app/src/main/resources/web/assets/list-183f8357.js similarity index 97% rename from app/src/main/resources/web/assets/list-45297bd9.js rename to app/src/main/resources/web/assets/list-183f8357.js index 112ba5e6..40a0d1bc 100644 --- a/app/src/main/resources/web/assets/list-45297bd9.js +++ b/app/src/main/resources/web/assets/list-183f8357.js @@ -1 +1 @@ -import{d as V,aC as q,o as i,c as d,a as r,l as k,I as C,F as A,J as I,t as T,h as $,k as b,r as y,p as S,ap as N,bO as x,A as w,B as Z,_ as E,u as F,x as R,a2 as M,bQ as z}from"./index-f62f2ff2.js";const P={class:"pagination"},H=["onClick"],D={key:0,class:"page-link"},K=["onClick"],Q=["onClick"],ie=V({__name:"VPagination",props:{total:{type:Number,default:0},limit:{type:Number,default:50},rangeSize:{type:Number,default:2},modelValue:{type:Number,default:0}},emits:["update:modelValue"],setup(e,{emit:a}){const l=e;function u(o){a("update:modelValue",o)}const t=q(()=>Math.ceil(l.total/l.limit)),s=q(()=>{const o=[],p=5+l.rangeSize*2;let n=t.value<=p?1:l.modelValue-l.rangeSize,m=t.value<=p?t.value:l.modelValue+l.rangeSize;if(m=m>t.value?t.value:m,n=n<1?1:n,t.value>p){const g=n-1<3,B=t.value-m<3;if(g){m=p-2;for(let c=1;cl.modelValue>1),_=q(()=>l.modelValue(i(),d("ul",P,[r("li",{class:C(["page-item",{disabled:!f.value}])},[r("a",{class:"page-link",href:"#",onClick:k(h,["prevent"])},"«",8,H)],2),(i(!0),d(A,null,I(s.value,n=>(i(),d("li",{class:C(["page-item",{disabled:n===null,active:n===e.modelValue}])},[n===null?(i(),d("span",D,"···")):(i(),d("a",{key:1,class:"page-link",href:"#",onClick:k(m=>u(n),["prevent"])},T(n),9,K))],2))),256)),r("li",{class:C(["page-item",{disabled:!_.value}])},[r("a",{class:"page-link",href:"#",onClick:k(v,["prevent"])},"»",8,Q)],2)]))}}),j={key:0,class:"alert-info alert-all-checked"},J={key:1,class:"alert-info alert-all-checked"},de=V({__name:"AllCheckedAlert",props:{limit:{type:Number,required:!0},total:{type:Number,required:!0},allCheckedAlertVisible:{type:Boolean,required:!0},realAllChecked:{type:Boolean,required:!0},selectRealAll:{type:Function},clearSelection:{type:Function}},setup(e){return(a,l)=>(i(),d(A,null,[e.allCheckedAlertVisible?(i(),d("div",j,[$(T(a.$t("all_items_on_this_page_are_selected",{count:e.limit}))+" ",1),r("a",{href:"#",onClick:l[0]||(l[0]=k((...u)=>e.selectRealAll&&e.selectRealAll(...u),["prevent"]))},T(a.$t("select_all_items",{count:e.total})),1)])):b("",!0),e.realAllChecked?(i(),d("div",J,[$(T(a.$t("all_items_are_selected",{count:e.total}))+" ",1),r("a",{href:"#",onClick:l[1]||(l[1]=k((...u)=>e.clearSelection&&e.clearSelection(...u),["prevent"]))},T(a.$t("clear_selection")),1)])):b("",!0)],64))}}),L={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},O=r("path",{fill:"currentColor",d:"M4 19q-.425 0-.713-.288T3 18q0-.425.288-.713T4 17h4q.425 0 .713.288T9 18q0 .425-.288.713T8 19H4ZM4 7q-.425 0-.713-.288T3 6q0-.425.288-.713T4 5h8q.425 0 .713.288T13 6q0 .425-.288.713T12 7H4Zm8 14q-.425 0-.713-.288T11 20v-4q0-.425.288-.713T12 15q.425 0 .713.288T13 16v1h7q.425 0 .713.288T21 18q0 .425-.288.713T20 19h-7v1q0 .425-.288.713T12 21Zm-4-6q-.425 0-.713-.288T7 14v-1H4q-.425 0-.713-.288T3 12q0-.425.288-.713T4 11h3v-1q0-.425.288-.713T8 9q.425 0 .713.288T9 10v4q0 .425-.288.713T8 15Zm4-2q-.425 0-.713-.288T11 12q0-.425.288-.713T12 11h8q.425 0 .713.288T21 12q0 .425-.288.713T20 13h-8Zm4-4q-.425 0-.713-.288T15 8V4q0-.425.288-.713T16 3q.425 0 .713.288T17 4v1h3q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-3v1q0 .425-.288.713T16 9Z"},null,-1),G=[O];function U(e,a){return i(),d("svg",L,G)}const W={name:"material-symbols-tune-rounded",render:U},X={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Y=r("path",{fill:"currentColor",d:"m18.9 20.3l-5.6-5.6q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5q0-2.725 1.888-4.612T9.5 3q2.725 0 4.612 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.625 5.625q.275.275.275.675t-.3.7q-.275.275-.7.275t-.7-.275ZM9.5 14q1.875 0 3.188-1.313T14 9.5q0-1.875-1.313-3.188T9.5 5Q7.625 5 6.312 6.313T5 9.5q0 1.875 1.313 3.188T9.5 14Z"},null,-1),ee=[Y];function le(e,a){return i(),d("svg",X,ee)}const te={name:"material-symbols-search-rounded",render:le},ae=e=>(w("data-v-9d028dad"),e=e(),Z(),e),ne={class:"search-input"},se=["value","placeholder"],oe=ae(()=>r("md-ripple",null,null,-1)),ue=["open"],re=V({__name:"SearchInput",props:{modelValue:{type:String,default:""},search:{type:Function,required:!0}},emits:["update:modelValue"],setup(e,{expose:a,emit:l}){const u=e,t=y(!1),s=y(!1),f=h=>{l("update:modelValue",h.target.value)};function _(){t.value=!0}return a({dismiss:()=>s.value=!1}),(h,v)=>{const o=te,p=W;return i(),d("div",ne,[r("md-outlined-text-field",{id:"input-ref",type:"search","data-search-input":"true",value:e.modelValue,onInput:f,onFocus:_,onBlur:v[1]||(v[1]=n=>t.value=!1),onKeyup:v[2]||(v[2]=N((...n)=>u.search&&u.search(...n),["enter"])),placeholder:h.$t("search_hint")},[S(o,{slot:"leading-icon"}),r("button",{class:"icon-button",ref:"moreButton",slot:"trailing-icon",onClick:v[0]||(v[0]=k(()=>s.value=!0,["prevent"]))},[oe,S(p)],512)],40,se),r("md-menu",{anchor:"input-ref","menu-corner":"start-end","anchor-corner":"end-end","stay-open-on-focusout":"",quick:"",open:s.value,onClosed:v[3]||(v[3]=()=>s.value=!1)},[x(h.$slots,"filters",{},void 0,!0)],40,ue)])}}});const he=E(re,[["__scopeId","data-v-9d028dad"]]),ve=e=>{const a=y(!1),l=y(!1),u=y(0);return{realAllChecked:l,allChecked:a,toggleAllChecked:t=>{t.target.checked?(a.value=!0,e.value.forEach(s=>{s.checked=!0})):(a.value=!1,l.value=!1,e.value.forEach(s=>{s.checked=!1}))},toggleItemChecked:t=>{t.target.checked?e.value.every(s=>s.checked)&&(a.value=!0):(a.value=!1,l.value=!1)},toggleRow:t=>{t.checked=!t.checked,t.checked?e.value.every(s=>s.checked)&&(a.value=!0):(a.value=!1,l.value=!1)},allCheckedAlertVisible:q(()=>a.value&&!l.value&&e.value.length{l.value=!0},clearSelection:()=>{a.value=!1,l.value=!1,e.value.forEach(t=>{t.checked=!1})},total:u,checked:q(()=>e.value.some(t=>t.checked))}},pe=(e,a,l)=>{const{t:u}=F();return{deleteItems:(t,s)=>{let f=s;if(!t){const _=l.value.filter(h=>h.checked);if(_.length===0){R(u("select_first"),"error");return}f=`ids:${_.map(h=>h.id).join(",")}`}M(z,{gql:e,variables:()=>({query:f}),done:a})}}};export{he as _,de as a,ie as b,pe as c,ve as u}; +import{d as V,aC as q,o as i,c as d,a as r,l as k,I as C,F as A,J as I,t as T,h as $,k as b,r as y,p as S,ap as N,bO as x,A as w,B as Z,_ as E,u as F,x as R,a2 as M,bQ as z}from"./index-0c42270c.js";const P={class:"pagination"},H=["onClick"],D={key:0,class:"page-link"},K=["onClick"],Q=["onClick"],ie=V({__name:"VPagination",props:{total:{type:Number,default:0},limit:{type:Number,default:50},rangeSize:{type:Number,default:2},modelValue:{type:Number,default:0}},emits:["update:modelValue"],setup(e,{emit:a}){const l=e;function u(o){a("update:modelValue",o)}const t=q(()=>Math.ceil(l.total/l.limit)),s=q(()=>{const o=[],p=5+l.rangeSize*2;let n=t.value<=p?1:l.modelValue-l.rangeSize,m=t.value<=p?t.value:l.modelValue+l.rangeSize;if(m=m>t.value?t.value:m,n=n<1?1:n,t.value>p){const g=n-1<3,B=t.value-m<3;if(g){m=p-2;for(let c=1;cl.modelValue>1),_=q(()=>l.modelValue(i(),d("ul",P,[r("li",{class:C(["page-item",{disabled:!f.value}])},[r("a",{class:"page-link",href:"#",onClick:k(h,["prevent"])},"«",8,H)],2),(i(!0),d(A,null,I(s.value,n=>(i(),d("li",{class:C(["page-item",{disabled:n===null,active:n===e.modelValue}])},[n===null?(i(),d("span",D,"···")):(i(),d("a",{key:1,class:"page-link",href:"#",onClick:k(m=>u(n),["prevent"])},T(n),9,K))],2))),256)),r("li",{class:C(["page-item",{disabled:!_.value}])},[r("a",{class:"page-link",href:"#",onClick:k(v,["prevent"])},"»",8,Q)],2)]))}}),j={key:0,class:"alert-info alert-all-checked"},J={key:1,class:"alert-info alert-all-checked"},de=V({__name:"AllCheckedAlert",props:{limit:{type:Number,required:!0},total:{type:Number,required:!0},allCheckedAlertVisible:{type:Boolean,required:!0},realAllChecked:{type:Boolean,required:!0},selectRealAll:{type:Function},clearSelection:{type:Function}},setup(e){return(a,l)=>(i(),d(A,null,[e.allCheckedAlertVisible?(i(),d("div",j,[$(T(a.$t("all_items_on_this_page_are_selected",{count:e.limit}))+" ",1),r("a",{href:"#",onClick:l[0]||(l[0]=k((...u)=>e.selectRealAll&&e.selectRealAll(...u),["prevent"]))},T(a.$t("select_all_items",{count:e.total})),1)])):b("",!0),e.realAllChecked?(i(),d("div",J,[$(T(a.$t("all_items_are_selected",{count:e.total}))+" ",1),r("a",{href:"#",onClick:l[1]||(l[1]=k((...u)=>e.clearSelection&&e.clearSelection(...u),["prevent"]))},T(a.$t("clear_selection")),1)])):b("",!0)],64))}}),L={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},O=r("path",{fill:"currentColor",d:"M4 19q-.425 0-.713-.288T3 18q0-.425.288-.713T4 17h4q.425 0 .713.288T9 18q0 .425-.288.713T8 19H4ZM4 7q-.425 0-.713-.288T3 6q0-.425.288-.713T4 5h8q.425 0 .713.288T13 6q0 .425-.288.713T12 7H4Zm8 14q-.425 0-.713-.288T11 20v-4q0-.425.288-.713T12 15q.425 0 .713.288T13 16v1h7q.425 0 .713.288T21 18q0 .425-.288.713T20 19h-7v1q0 .425-.288.713T12 21Zm-4-6q-.425 0-.713-.288T7 14v-1H4q-.425 0-.713-.288T3 12q0-.425.288-.713T4 11h3v-1q0-.425.288-.713T8 9q.425 0 .713.288T9 10v4q0 .425-.288.713T8 15Zm4-2q-.425 0-.713-.288T11 12q0-.425.288-.713T12 11h8q.425 0 .713.288T21 12q0 .425-.288.713T20 13h-8Zm4-4q-.425 0-.713-.288T15 8V4q0-.425.288-.713T16 3q.425 0 .713.288T17 4v1h3q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-3v1q0 .425-.288.713T16 9Z"},null,-1),G=[O];function U(e,a){return i(),d("svg",L,G)}const W={name:"material-symbols-tune-rounded",render:U},X={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Y=r("path",{fill:"currentColor",d:"m18.9 20.3l-5.6-5.6q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5q0-2.725 1.888-4.612T9.5 3q2.725 0 4.612 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.625 5.625q.275.275.275.675t-.3.7q-.275.275-.7.275t-.7-.275ZM9.5 14q1.875 0 3.188-1.313T14 9.5q0-1.875-1.313-3.188T9.5 5Q7.625 5 6.312 6.313T5 9.5q0 1.875 1.313 3.188T9.5 14Z"},null,-1),ee=[Y];function le(e,a){return i(),d("svg",X,ee)}const te={name:"material-symbols-search-rounded",render:le},ae=e=>(w("data-v-9d028dad"),e=e(),Z(),e),ne={class:"search-input"},se=["value","placeholder"],oe=ae(()=>r("md-ripple",null,null,-1)),ue=["open"],re=V({__name:"SearchInput",props:{modelValue:{type:String,default:""},search:{type:Function,required:!0}},emits:["update:modelValue"],setup(e,{expose:a,emit:l}){const u=e,t=y(!1),s=y(!1),f=h=>{l("update:modelValue",h.target.value)};function _(){t.value=!0}return a({dismiss:()=>s.value=!1}),(h,v)=>{const o=te,p=W;return i(),d("div",ne,[r("md-outlined-text-field",{id:"input-ref",type:"search","data-search-input":"true",value:e.modelValue,onInput:f,onFocus:_,onBlur:v[1]||(v[1]=n=>t.value=!1),onKeyup:v[2]||(v[2]=N((...n)=>u.search&&u.search(...n),["enter"])),placeholder:h.$t("search_hint")},[S(o,{slot:"leading-icon"}),r("button",{class:"icon-button",ref:"moreButton",slot:"trailing-icon",onClick:v[0]||(v[0]=k(()=>s.value=!0,["prevent"]))},[oe,S(p)],512)],40,se),r("md-menu",{anchor:"input-ref","menu-corner":"start-end","anchor-corner":"end-end","stay-open-on-focusout":"",quick:"",open:s.value,onClosed:v[3]||(v[3]=()=>s.value=!1)},[x(h.$slots,"filters",{},void 0,!0)],40,ue)])}}});const he=E(re,[["__scopeId","data-v-9d028dad"]]),ve=e=>{const a=y(!1),l=y(!1),u=y(0);return{realAllChecked:l,allChecked:a,toggleAllChecked:t=>{t.target.checked?(a.value=!0,e.value.forEach(s=>{s.checked=!0})):(a.value=!1,l.value=!1,e.value.forEach(s=>{s.checked=!1}))},toggleItemChecked:t=>{t.target.checked?e.value.every(s=>s.checked)&&(a.value=!0):(a.value=!1,l.value=!1)},toggleRow:t=>{t.checked=!t.checked,t.checked?e.value.every(s=>s.checked)&&(a.value=!0):(a.value=!1,l.value=!1)},allCheckedAlertVisible:q(()=>a.value&&!l.value&&e.value.length{l.value=!0},clearSelection:()=>{a.value=!1,l.value=!1,e.value.forEach(t=>{t.checked=!1})},total:u,checked:q(()=>e.value.some(t=>t.checked))}},pe=(e,a,l)=>{const{t:u}=F();return{deleteItems:(t,s)=>{let f=s;if(!t){const _=l.value.filter(h=>h.checked);if(_.length===0){R(u("select_first"),"error");return}f=`ids:${_.map(h=>h.id).join(",")}`}M(z,{gql:e,variables:()=>({query:f}),done:a})}}};export{he as _,de as a,ie as b,pe as c,ve as u}; diff --git a/app/src/main/resources/web/assets/markdown-737d43fa.js b/app/src/main/resources/web/assets/markdown-fa9038b1.js similarity index 99% rename from app/src/main/resources/web/assets/markdown-737d43fa.js rename to app/src/main/resources/web/assets/markdown-fa9038b1.js index 9996096d..8e5e6462 100644 --- a/app/src/main/resources/web/assets/markdown-737d43fa.js +++ b/app/src/main/resources/web/assets/markdown-fa9038b1.js @@ -1,4 +1,4 @@ -import{bX as Pr,bY as le,ah as Or}from"./index-f62f2ff2.js";var B={};const Vr="Á",$r="á",Ur="Ă",Gr="ă",Hr="∾",jr="∿",Zr="∾̳",Wr="Â",Xr="â",Jr="´",Qr="А",Yr="а",Kr="Æ",en="æ",tn="⁡",un="𝔄",rn="𝔞",nn="À",sn="à",on="ℵ",an="ℵ",cn="Α",ln="α",fn="Ā",dn="ā",hn="⨿",pn="&",bn="&",mn="⩕",gn="⩓",vn="∧",xn="⩜",yn="⩘",kn="⩚",wn="∠",_n="⦤",An="∠",Sn="⦨",En="⦩",qn="⦪",Cn="⦫",Tn="⦬",Dn="⦭",In="⦮",Nn="⦯",zn="∡",Rn="∟",Ln="⊾",Mn="⦝",Fn="∢",Bn="Å",Pn="⍼",On="Ą",Vn="ą",$n="𝔸",Un="𝕒",Gn="⩯",Hn="≈",jn="⩰",Zn="≊",Wn="≋",Xn="'",Jn="⁡",Qn="≈",Yn="≊",Kn="Å",es="å",ts="𝒜",us="𝒶",rs="≔",ns="*",ss="≈",is="≍",os="Ã",as="ã",cs="Ä",ls="ä",fs="∳",ds="⨑",hs="≌",ps="϶",bs="‵",ms="∽",gs="⋍",vs="∖",xs="⫧",ys="⊽",ks="⌅",ws="⌆",_s="⌅",As="⎵",Ss="⎶",Es="≌",qs="Б",Cs="б",Ts="„",Ds="∵",Is="∵",Ns="∵",zs="⦰",Rs="϶",Ls="ℬ",Ms="ℬ",Fs="Β",Bs="β",Ps="ℶ",Os="≬",Vs="𝔅",$s="𝔟",Us="⋂",Gs="◯",Hs="⋃",js="⨀",Zs="⨁",Ws="⨂",Xs="⨆",Js="★",Qs="▽",Ys="△",Ks="⨄",ei="⋁",ti="⋀",ui="⤍",ri="⧫",ni="▪",si="▴",ii="▾",oi="◂",ai="▸",ci="␣",li="▒",fi="░",di="▓",hi="█",pi="=⃥",bi="≡⃥",mi="⫭",gi="⌐",vi="𝔹",xi="𝕓",yi="⊥",ki="⊥",wi="⋈",_i="⧉",Ai="┐",Si="╕",Ei="╖",qi="╗",Ci="┌",Ti="╒",Di="╓",Ii="╔",Ni="─",zi="═",Ri="┬",Li="╤",Mi="╥",Fi="╦",Bi="┴",Pi="╧",Oi="╨",Vi="╩",$i="⊟",Ui="⊞",Gi="⊠",Hi="┘",ji="╛",Zi="╜",Wi="╝",Xi="└",Ji="╘",Qi="╙",Yi="╚",Ki="│",eo="║",to="┼",uo="╪",ro="╫",no="╬",so="┤",io="╡",oo="╢",ao="╣",co="├",lo="╞",fo="╟",ho="╠",po="‵",bo="˘",mo="˘",go="¦",vo="𝒷",xo="ℬ",yo="⁏",ko="∽",wo="⋍",_o="⧅",Ao="\\",So="⟈",Eo="•",qo="•",Co="≎",To="⪮",Do="≏",Io="≎",No="≏",zo="Ć",Ro="ć",Lo="⩄",Mo="⩉",Fo="⩋",Bo="∩",Po="⋒",Oo="⩇",Vo="⩀",$o="ⅅ",Uo="∩︀",Go="⁁",Ho="ˇ",jo="ℭ",Zo="⩍",Wo="Č",Xo="č",Jo="Ç",Qo="ç",Yo="Ĉ",Ko="ĉ",ea="∰",ta="⩌",ua="⩐",ra="Ċ",na="ċ",sa="¸",ia="¸",oa="⦲",aa="¢",ca="·",la="·",fa="𝔠",da="ℭ",ha="Ч",pa="ч",ba="✓",ma="✓",ga="Χ",va="χ",xa="ˆ",ya="≗",ka="↺",wa="↻",_a="⊛",Aa="⊚",Sa="⊝",Ea="⊙",qa="®",Ca="Ⓢ",Ta="⊖",Da="⊕",Ia="⊗",Na="○",za="⧃",Ra="≗",La="⨐",Ma="⫯",Fa="⧂",Ba="∲",Pa="”",Oa="’",Va="♣",$a="♣",Ua=":",Ga="∷",Ha="⩴",ja="≔",Za="≔",Wa=",",Xa="@",Ja="∁",Qa="∘",Ya="∁",Ka="ℂ",ec="≅",tc="⩭",uc="≡",rc="∮",nc="∯",sc="∮",ic="𝕔",oc="ℂ",ac="∐",cc="∐",lc="©",fc="©",dc="℗",hc="∳",pc="↵",bc="✗",mc="⨯",gc="𝒞",vc="𝒸",xc="⫏",yc="⫑",kc="⫐",wc="⫒",_c="⋯",Ac="⤸",Sc="⤵",Ec="⋞",qc="⋟",Cc="↶",Tc="⤽",Dc="⩈",Ic="⩆",Nc="≍",zc="∪",Rc="⋓",Lc="⩊",Mc="⊍",Fc="⩅",Bc="∪︀",Pc="↷",Oc="⤼",Vc="⋞",$c="⋟",Uc="⋎",Gc="⋏",Hc="¤",jc="↶",Zc="↷",Wc="⋎",Xc="⋏",Jc="∲",Qc="∱",Yc="⌭",Kc="†",el="‡",tl="ℸ",ul="↓",rl="↡",nl="⇓",sl="‐",il="⫤",ol="⊣",al="⤏",cl="˝",ll="Ď",fl="ď",dl="Д",hl="д",pl="‡",bl="⇊",ml="ⅅ",gl="ⅆ",vl="⤑",xl="⩷",yl="°",kl="∇",wl="Δ",_l="δ",Al="⦱",Sl="⥿",El="𝔇",ql="𝔡",Cl="⥥",Tl="⇃",Dl="⇂",Il="´",Nl="˙",zl="˝",Rl="`",Ll="˜",Ml="⋄",Fl="⋄",Bl="⋄",Pl="♦",Ol="♦",Vl="¨",$l="ⅆ",Ul="ϝ",Gl="⋲",Hl="÷",jl="÷",Zl="⋇",Wl="⋇",Xl="Ђ",Jl="ђ",Ql="⌞",Yl="⌍",Kl="$",e1="𝔻",t1="𝕕",u1="¨",r1="˙",n1="⃜",s1="≐",i1="≑",o1="≐",a1="∸",c1="∔",l1="⊡",f1="⌆",d1="∯",h1="¨",p1="⇓",b1="⇐",m1="⇔",g1="⫤",v1="⟸",x1="⟺",y1="⟹",k1="⇒",w1="⊨",_1="⇑",A1="⇕",S1="∥",E1="⤓",q1="↓",C1="↓",T1="⇓",D1="⇵",I1="̑",N1="⇊",z1="⇃",R1="⇂",L1="⥐",M1="⥞",F1="⥖",B1="↽",P1="⥟",O1="⥗",V1="⇁",$1="↧",U1="⊤",G1="⤐",H1="⌟",j1="⌌",Z1="𝒟",W1="𝒹",X1="Ѕ",J1="ѕ",Q1="⧶",Y1="Đ",K1="đ",ef="⋱",tf="▿",uf="▾",rf="⇵",nf="⥯",sf="⦦",of="Џ",af="џ",cf="⟿",lf="É",ff="é",df="⩮",hf="Ě",pf="ě",bf="Ê",mf="ê",gf="≖",vf="≕",xf="Э",yf="э",kf="⩷",wf="Ė",_f="ė",Af="≑",Sf="ⅇ",Ef="≒",qf="𝔈",Cf="𝔢",Tf="⪚",Df="È",If="è",Nf="⪖",zf="⪘",Rf="⪙",Lf="∈",Mf="⏧",Ff="ℓ",Bf="⪕",Pf="⪗",Of="Ē",Vf="ē",$f="∅",Uf="∅",Gf="◻",Hf="∅",jf="▫",Zf=" ",Wf=" ",Xf=" ",Jf="Ŋ",Qf="ŋ",Yf=" ",Kf="Ę",e2="ę",t2="𝔼",u2="𝕖",r2="⋕",n2="⧣",s2="⩱",i2="ε",o2="Ε",a2="ε",c2="ϵ",l2="≖",f2="≕",d2="≂",h2="⪖",p2="⪕",b2="⩵",m2="=",g2="≂",v2="≟",x2="⇌",y2="≡",k2="⩸",w2="⧥",_2="⥱",A2="≓",S2="ℯ",E2="ℰ",q2="≐",C2="⩳",T2="≂",D2="Η",I2="η",N2="Ð",z2="ð",R2="Ë",L2="ë",M2="€",F2="!",B2="∃",P2="∃",O2="ℰ",V2="ⅇ",$2="ⅇ",U2="≒",G2="Ф",H2="ф",j2="♀",Z2="ffi",W2="ff",X2="ffl",J2="𝔉",Q2="𝔣",Y2="fi",K2="◼",e4="▪",t4="fj",u4="♭",r4="fl",n4="▱",s4="ƒ",i4="𝔽",o4="𝕗",a4="∀",c4="∀",l4="⋔",f4="⫙",d4="ℱ",h4="⨍",p4="½",b4="⅓",m4="¼",g4="⅕",v4="⅙",x4="⅛",y4="⅔",k4="⅖",w4="¾",_4="⅗",A4="⅜",S4="⅘",E4="⅚",q4="⅝",C4="⅞",T4="⁄",D4="⌢",I4="𝒻",N4="ℱ",z4="ǵ",R4="Γ",L4="γ",M4="Ϝ",F4="ϝ",B4="⪆",P4="Ğ",O4="ğ",V4="Ģ",$4="Ĝ",U4="ĝ",G4="Г",H4="г",j4="Ġ",Z4="ġ",W4="≥",X4="≧",J4="⪌",Q4="⋛",Y4="≥",K4="≧",ed="⩾",td="⪩",ud="⩾",rd="⪀",nd="⪂",sd="⪄",id="⋛︀",od="⪔",ad="𝔊",cd="𝔤",ld="≫",fd="⋙",dd="⋙",hd="ℷ",pd="Ѓ",bd="ѓ",md="⪥",gd="≷",vd="⪒",xd="⪤",yd="⪊",kd="⪊",wd="⪈",_d="≩",Ad="⪈",Sd="≩",Ed="⋧",qd="𝔾",Cd="𝕘",Td="`",Dd="≥",Id="⋛",Nd="≧",zd="⪢",Rd="≷",Ld="⩾",Md="≳",Fd="𝒢",Bd="ℊ",Pd="≳",Od="⪎",Vd="⪐",$d="⪧",Ud="⩺",Gd=">",Hd=">",jd="≫",Zd="⋗",Wd="⦕",Xd="⩼",Jd="⪆",Qd="⥸",Yd="⋗",Kd="⋛",eh="⪌",th="≷",uh="≳",rh="≩︀",nh="≩︀",sh="ˇ",ih=" ",oh="½",ah="ℋ",ch="Ъ",lh="ъ",fh="⥈",dh="↔",hh="⇔",ph="↭",bh="^",mh="ℏ",gh="Ĥ",vh="ĥ",xh="♥",yh="♥",kh="…",wh="⊹",_h="𝔥",Ah="ℌ",Sh="ℋ",Eh="⤥",qh="⤦",Ch="⇿",Th="∻",Dh="↩",Ih="↪",Nh="𝕙",zh="ℍ",Rh="―",Lh="─",Mh="𝒽",Fh="ℋ",Bh="ℏ",Ph="Ħ",Oh="ħ",Vh="≎",$h="≏",Uh="⁃",Gh="‐",Hh="Í",jh="í",Zh="⁣",Wh="Î",Xh="î",Jh="И",Qh="и",Yh="İ",Kh="Е",e3="е",t3="¡",u3="⇔",r3="𝔦",n3="ℑ",s3="Ì",i3="ì",o3="ⅈ",a3="⨌",c3="∭",l3="⧜",f3="℩",d3="IJ",h3="ij",p3="Ī",b3="ī",m3="ℑ",g3="ⅈ",v3="ℐ",x3="ℑ",y3="ı",k3="ℑ",w3="⊷",_3="Ƶ",A3="⇒",S3="℅",E3="∞",q3="⧝",C3="ı",T3="⊺",D3="∫",I3="∬",N3="ℤ",z3="∫",R3="⊺",L3="⋂",M3="⨗",F3="⨼",B3="⁣",P3="⁢",O3="Ё",V3="ё",$3="Į",U3="į",G3="𝕀",H3="𝕚",j3="Ι",Z3="ι",W3="⨼",X3="¿",J3="𝒾",Q3="ℐ",Y3="∈",K3="⋵",e6="⋹",t6="⋴",u6="⋳",r6="∈",n6="⁢",s6="Ĩ",i6="ĩ",o6="І",a6="і",c6="Ï",l6="ï",f6="Ĵ",d6="ĵ",h6="Й",p6="й",b6="𝔍",m6="𝔧",g6="ȷ",v6="𝕁",x6="𝕛",y6="𝒥",k6="𝒿",w6="Ј",_6="ј",A6="Є",S6="є",E6="Κ",q6="κ",C6="ϰ",T6="Ķ",D6="ķ",I6="К",N6="к",z6="𝔎",R6="𝔨",L6="ĸ",M6="Х",F6="х",B6="Ќ",P6="ќ",O6="𝕂",V6="𝕜",$6="𝒦",U6="𝓀",G6="⇚",H6="Ĺ",j6="ĺ",Z6="⦴",W6="ℒ",X6="Λ",J6="λ",Q6="⟨",Y6="⟪",K6="⦑",ep="⟨",tp="⪅",up="ℒ",rp="«",np="⇤",sp="⤟",ip="←",op="↞",ap="⇐",cp="⤝",lp="↩",fp="↫",dp="⤹",hp="⥳",pp="↢",bp="⤙",mp="⤛",gp="⪫",vp="⪭",xp="⪭︀",yp="⤌",kp="⤎",wp="❲",_p="{",Ap="[",Sp="⦋",Ep="⦏",qp="⦍",Cp="Ľ",Tp="ľ",Dp="Ļ",Ip="ļ",Np="⌈",zp="{",Rp="Л",Lp="л",Mp="⤶",Fp="“",Bp="„",Pp="⥧",Op="⥋",Vp="↲",$p="≤",Up="≦",Gp="⟨",Hp="⇤",jp="←",Zp="←",Wp="⇐",Xp="⇆",Jp="↢",Qp="⌈",Yp="⟦",Kp="⥡",e8="⥙",t8="⇃",u8="⌊",r8="↽",n8="↼",s8="⇇",i8="↔",o8="↔",a8="⇔",c8="⇆",l8="⇋",f8="↭",d8="⥎",h8="↤",p8="⊣",b8="⥚",m8="⋋",g8="⧏",v8="⊲",x8="⊴",y8="⥑",k8="⥠",w8="⥘",_8="↿",A8="⥒",S8="↼",E8="⪋",q8="⋚",C8="≤",T8="≦",D8="⩽",I8="⪨",N8="⩽",z8="⩿",R8="⪁",L8="⪃",M8="⋚︀",F8="⪓",B8="⪅",P8="⋖",O8="⋚",V8="⪋",$8="⋚",U8="≦",G8="≶",H8="≶",j8="⪡",Z8="≲",W8="⩽",X8="≲",J8="⥼",Q8="⌊",Y8="𝔏",K8="𝔩",e5="≶",t5="⪑",u5="⥢",r5="↽",n5="↼",s5="⥪",i5="▄",o5="Љ",a5="љ",c5="⇇",l5="≪",f5="⋘",d5="⌞",h5="⇚",p5="⥫",b5="◺",m5="Ŀ",g5="ŀ",v5="⎰",x5="⎰",y5="⪉",k5="⪉",w5="⪇",_5="≨",A5="⪇",S5="≨",E5="⋦",q5="⟬",C5="⇽",T5="⟦",D5="⟵",I5="⟵",N5="⟸",z5="⟷",R5="⟷",L5="⟺",M5="⟼",F5="⟶",B5="⟶",P5="⟹",O5="↫",V5="↬",$5="⦅",U5="𝕃",G5="𝕝",H5="⨭",j5="⨴",Z5="∗",W5="_",X5="↙",J5="↘",Q5="◊",Y5="◊",K5="⧫",eb="(",tb="⦓",ub="⇆",rb="⌟",nb="⇋",sb="⥭",ib="‎",ob="⊿",ab="‹",cb="𝓁",lb="ℒ",fb="↰",db="↰",hb="≲",pb="⪍",bb="⪏",mb="[",gb="‘",vb="‚",xb="Ł",yb="ł",kb="⪦",wb="⩹",_b="<",Ab="<",Sb="≪",Eb="⋖",qb="⋋",Cb="⋉",Tb="⥶",Db="⩻",Ib="◃",Nb="⊴",zb="◂",Rb="⦖",Lb="⥊",Mb="⥦",Fb="≨︀",Bb="≨︀",Pb="¯",Ob="♂",Vb="✠",$b="✠",Ub="↦",Gb="↦",Hb="↧",jb="↤",Zb="↥",Wb="▮",Xb="⨩",Jb="М",Qb="м",Yb="—",Kb="∺",em="∡",tm=" ",um="ℳ",rm="𝔐",nm="𝔪",sm="℧",im="µ",om="*",am="⫰",cm="∣",lm="·",fm="⊟",dm="−",hm="∸",pm="⨪",bm="∓",mm="⫛",gm="…",vm="∓",xm="⊧",ym="𝕄",km="𝕞",wm="∓",_m="𝓂",Am="ℳ",Sm="∾",Em="Μ",qm="μ",Cm="⊸",Tm="⊸",Dm="∇",Im="Ń",Nm="ń",zm="∠⃒",Rm="≉",Lm="⩰̸",Mm="≋̸",Fm="ʼn",Bm="≉",Pm="♮",Om="ℕ",Vm="♮",$m=" ",Um="≎̸",Gm="≏̸",Hm="⩃",jm="Ň",Zm="ň",Wm="Ņ",Xm="ņ",Jm="≇",Qm="⩭̸",Ym="⩂",Km="Н",e9="н",t9="–",u9="⤤",r9="↗",n9="⇗",s9="↗",i9="≠",o9="≐̸",a9="​",c9="​",l9="​",f9="​",d9="≢",h9="⤨",p9="≂̸",b9="≫",m9="≪",g9=` +import{bX as Pr,bY as le,ah as Or}from"./index-0c42270c.js";var B={};const Vr="Á",$r="á",Ur="Ă",Gr="ă",Hr="∾",jr="∿",Zr="∾̳",Wr="Â",Xr="â",Jr="´",Qr="А",Yr="а",Kr="Æ",en="æ",tn="⁡",un="𝔄",rn="𝔞",nn="À",sn="à",on="ℵ",an="ℵ",cn="Α",ln="α",fn="Ā",dn="ā",hn="⨿",pn="&",bn="&",mn="⩕",gn="⩓",vn="∧",xn="⩜",yn="⩘",kn="⩚",wn="∠",_n="⦤",An="∠",Sn="⦨",En="⦩",qn="⦪",Cn="⦫",Tn="⦬",Dn="⦭",In="⦮",Nn="⦯",zn="∡",Rn="∟",Ln="⊾",Mn="⦝",Fn="∢",Bn="Å",Pn="⍼",On="Ą",Vn="ą",$n="𝔸",Un="𝕒",Gn="⩯",Hn="≈",jn="⩰",Zn="≊",Wn="≋",Xn="'",Jn="⁡",Qn="≈",Yn="≊",Kn="Å",es="å",ts="𝒜",us="𝒶",rs="≔",ns="*",ss="≈",is="≍",os="Ã",as="ã",cs="Ä",ls="ä",fs="∳",ds="⨑",hs="≌",ps="϶",bs="‵",ms="∽",gs="⋍",vs="∖",xs="⫧",ys="⊽",ks="⌅",ws="⌆",_s="⌅",As="⎵",Ss="⎶",Es="≌",qs="Б",Cs="б",Ts="„",Ds="∵",Is="∵",Ns="∵",zs="⦰",Rs="϶",Ls="ℬ",Ms="ℬ",Fs="Β",Bs="β",Ps="ℶ",Os="≬",Vs="𝔅",$s="𝔟",Us="⋂",Gs="◯",Hs="⋃",js="⨀",Zs="⨁",Ws="⨂",Xs="⨆",Js="★",Qs="▽",Ys="△",Ks="⨄",ei="⋁",ti="⋀",ui="⤍",ri="⧫",ni="▪",si="▴",ii="▾",oi="◂",ai="▸",ci="␣",li="▒",fi="░",di="▓",hi="█",pi="=⃥",bi="≡⃥",mi="⫭",gi="⌐",vi="𝔹",xi="𝕓",yi="⊥",ki="⊥",wi="⋈",_i="⧉",Ai="┐",Si="╕",Ei="╖",qi="╗",Ci="┌",Ti="╒",Di="╓",Ii="╔",Ni="─",zi="═",Ri="┬",Li="╤",Mi="╥",Fi="╦",Bi="┴",Pi="╧",Oi="╨",Vi="╩",$i="⊟",Ui="⊞",Gi="⊠",Hi="┘",ji="╛",Zi="╜",Wi="╝",Xi="└",Ji="╘",Qi="╙",Yi="╚",Ki="│",eo="║",to="┼",uo="╪",ro="╫",no="╬",so="┤",io="╡",oo="╢",ao="╣",co="├",lo="╞",fo="╟",ho="╠",po="‵",bo="˘",mo="˘",go="¦",vo="𝒷",xo="ℬ",yo="⁏",ko="∽",wo="⋍",_o="⧅",Ao="\\",So="⟈",Eo="•",qo="•",Co="≎",To="⪮",Do="≏",Io="≎",No="≏",zo="Ć",Ro="ć",Lo="⩄",Mo="⩉",Fo="⩋",Bo="∩",Po="⋒",Oo="⩇",Vo="⩀",$o="ⅅ",Uo="∩︀",Go="⁁",Ho="ˇ",jo="ℭ",Zo="⩍",Wo="Č",Xo="č",Jo="Ç",Qo="ç",Yo="Ĉ",Ko="ĉ",ea="∰",ta="⩌",ua="⩐",ra="Ċ",na="ċ",sa="¸",ia="¸",oa="⦲",aa="¢",ca="·",la="·",fa="𝔠",da="ℭ",ha="Ч",pa="ч",ba="✓",ma="✓",ga="Χ",va="χ",xa="ˆ",ya="≗",ka="↺",wa="↻",_a="⊛",Aa="⊚",Sa="⊝",Ea="⊙",qa="®",Ca="Ⓢ",Ta="⊖",Da="⊕",Ia="⊗",Na="○",za="⧃",Ra="≗",La="⨐",Ma="⫯",Fa="⧂",Ba="∲",Pa="”",Oa="’",Va="♣",$a="♣",Ua=":",Ga="∷",Ha="⩴",ja="≔",Za="≔",Wa=",",Xa="@",Ja="∁",Qa="∘",Ya="∁",Ka="ℂ",ec="≅",tc="⩭",uc="≡",rc="∮",nc="∯",sc="∮",ic="𝕔",oc="ℂ",ac="∐",cc="∐",lc="©",fc="©",dc="℗",hc="∳",pc="↵",bc="✗",mc="⨯",gc="𝒞",vc="𝒸",xc="⫏",yc="⫑",kc="⫐",wc="⫒",_c="⋯",Ac="⤸",Sc="⤵",Ec="⋞",qc="⋟",Cc="↶",Tc="⤽",Dc="⩈",Ic="⩆",Nc="≍",zc="∪",Rc="⋓",Lc="⩊",Mc="⊍",Fc="⩅",Bc="∪︀",Pc="↷",Oc="⤼",Vc="⋞",$c="⋟",Uc="⋎",Gc="⋏",Hc="¤",jc="↶",Zc="↷",Wc="⋎",Xc="⋏",Jc="∲",Qc="∱",Yc="⌭",Kc="†",el="‡",tl="ℸ",ul="↓",rl="↡",nl="⇓",sl="‐",il="⫤",ol="⊣",al="⤏",cl="˝",ll="Ď",fl="ď",dl="Д",hl="д",pl="‡",bl="⇊",ml="ⅅ",gl="ⅆ",vl="⤑",xl="⩷",yl="°",kl="∇",wl="Δ",_l="δ",Al="⦱",Sl="⥿",El="𝔇",ql="𝔡",Cl="⥥",Tl="⇃",Dl="⇂",Il="´",Nl="˙",zl="˝",Rl="`",Ll="˜",Ml="⋄",Fl="⋄",Bl="⋄",Pl="♦",Ol="♦",Vl="¨",$l="ⅆ",Ul="ϝ",Gl="⋲",Hl="÷",jl="÷",Zl="⋇",Wl="⋇",Xl="Ђ",Jl="ђ",Ql="⌞",Yl="⌍",Kl="$",e1="𝔻",t1="𝕕",u1="¨",r1="˙",n1="⃜",s1="≐",i1="≑",o1="≐",a1="∸",c1="∔",l1="⊡",f1="⌆",d1="∯",h1="¨",p1="⇓",b1="⇐",m1="⇔",g1="⫤",v1="⟸",x1="⟺",y1="⟹",k1="⇒",w1="⊨",_1="⇑",A1="⇕",S1="∥",E1="⤓",q1="↓",C1="↓",T1="⇓",D1="⇵",I1="̑",N1="⇊",z1="⇃",R1="⇂",L1="⥐",M1="⥞",F1="⥖",B1="↽",P1="⥟",O1="⥗",V1="⇁",$1="↧",U1="⊤",G1="⤐",H1="⌟",j1="⌌",Z1="𝒟",W1="𝒹",X1="Ѕ",J1="ѕ",Q1="⧶",Y1="Đ",K1="đ",ef="⋱",tf="▿",uf="▾",rf="⇵",nf="⥯",sf="⦦",of="Џ",af="џ",cf="⟿",lf="É",ff="é",df="⩮",hf="Ě",pf="ě",bf="Ê",mf="ê",gf="≖",vf="≕",xf="Э",yf="э",kf="⩷",wf="Ė",_f="ė",Af="≑",Sf="ⅇ",Ef="≒",qf="𝔈",Cf="𝔢",Tf="⪚",Df="È",If="è",Nf="⪖",zf="⪘",Rf="⪙",Lf="∈",Mf="⏧",Ff="ℓ",Bf="⪕",Pf="⪗",Of="Ē",Vf="ē",$f="∅",Uf="∅",Gf="◻",Hf="∅",jf="▫",Zf=" ",Wf=" ",Xf=" ",Jf="Ŋ",Qf="ŋ",Yf=" ",Kf="Ę",e2="ę",t2="𝔼",u2="𝕖",r2="⋕",n2="⧣",s2="⩱",i2="ε",o2="Ε",a2="ε",c2="ϵ",l2="≖",f2="≕",d2="≂",h2="⪖",p2="⪕",b2="⩵",m2="=",g2="≂",v2="≟",x2="⇌",y2="≡",k2="⩸",w2="⧥",_2="⥱",A2="≓",S2="ℯ",E2="ℰ",q2="≐",C2="⩳",T2="≂",D2="Η",I2="η",N2="Ð",z2="ð",R2="Ë",L2="ë",M2="€",F2="!",B2="∃",P2="∃",O2="ℰ",V2="ⅇ",$2="ⅇ",U2="≒",G2="Ф",H2="ф",j2="♀",Z2="ffi",W2="ff",X2="ffl",J2="𝔉",Q2="𝔣",Y2="fi",K2="◼",e4="▪",t4="fj",u4="♭",r4="fl",n4="▱",s4="ƒ",i4="𝔽",o4="𝕗",a4="∀",c4="∀",l4="⋔",f4="⫙",d4="ℱ",h4="⨍",p4="½",b4="⅓",m4="¼",g4="⅕",v4="⅙",x4="⅛",y4="⅔",k4="⅖",w4="¾",_4="⅗",A4="⅜",S4="⅘",E4="⅚",q4="⅝",C4="⅞",T4="⁄",D4="⌢",I4="𝒻",N4="ℱ",z4="ǵ",R4="Γ",L4="γ",M4="Ϝ",F4="ϝ",B4="⪆",P4="Ğ",O4="ğ",V4="Ģ",$4="Ĝ",U4="ĝ",G4="Г",H4="г",j4="Ġ",Z4="ġ",W4="≥",X4="≧",J4="⪌",Q4="⋛",Y4="≥",K4="≧",ed="⩾",td="⪩",ud="⩾",rd="⪀",nd="⪂",sd="⪄",id="⋛︀",od="⪔",ad="𝔊",cd="𝔤",ld="≫",fd="⋙",dd="⋙",hd="ℷ",pd="Ѓ",bd="ѓ",md="⪥",gd="≷",vd="⪒",xd="⪤",yd="⪊",kd="⪊",wd="⪈",_d="≩",Ad="⪈",Sd="≩",Ed="⋧",qd="𝔾",Cd="𝕘",Td="`",Dd="≥",Id="⋛",Nd="≧",zd="⪢",Rd="≷",Ld="⩾",Md="≳",Fd="𝒢",Bd="ℊ",Pd="≳",Od="⪎",Vd="⪐",$d="⪧",Ud="⩺",Gd=">",Hd=">",jd="≫",Zd="⋗",Wd="⦕",Xd="⩼",Jd="⪆",Qd="⥸",Yd="⋗",Kd="⋛",eh="⪌",th="≷",uh="≳",rh="≩︀",nh="≩︀",sh="ˇ",ih=" ",oh="½",ah="ℋ",ch="Ъ",lh="ъ",fh="⥈",dh="↔",hh="⇔",ph="↭",bh="^",mh="ℏ",gh="Ĥ",vh="ĥ",xh="♥",yh="♥",kh="…",wh="⊹",_h="𝔥",Ah="ℌ",Sh="ℋ",Eh="⤥",qh="⤦",Ch="⇿",Th="∻",Dh="↩",Ih="↪",Nh="𝕙",zh="ℍ",Rh="―",Lh="─",Mh="𝒽",Fh="ℋ",Bh="ℏ",Ph="Ħ",Oh="ħ",Vh="≎",$h="≏",Uh="⁃",Gh="‐",Hh="Í",jh="í",Zh="⁣",Wh="Î",Xh="î",Jh="И",Qh="и",Yh="İ",Kh="Е",e3="е",t3="¡",u3="⇔",r3="𝔦",n3="ℑ",s3="Ì",i3="ì",o3="ⅈ",a3="⨌",c3="∭",l3="⧜",f3="℩",d3="IJ",h3="ij",p3="Ī",b3="ī",m3="ℑ",g3="ⅈ",v3="ℐ",x3="ℑ",y3="ı",k3="ℑ",w3="⊷",_3="Ƶ",A3="⇒",S3="℅",E3="∞",q3="⧝",C3="ı",T3="⊺",D3="∫",I3="∬",N3="ℤ",z3="∫",R3="⊺",L3="⋂",M3="⨗",F3="⨼",B3="⁣",P3="⁢",O3="Ё",V3="ё",$3="Į",U3="į",G3="𝕀",H3="𝕚",j3="Ι",Z3="ι",W3="⨼",X3="¿",J3="𝒾",Q3="ℐ",Y3="∈",K3="⋵",e6="⋹",t6="⋴",u6="⋳",r6="∈",n6="⁢",s6="Ĩ",i6="ĩ",o6="І",a6="і",c6="Ï",l6="ï",f6="Ĵ",d6="ĵ",h6="Й",p6="й",b6="𝔍",m6="𝔧",g6="ȷ",v6="𝕁",x6="𝕛",y6="𝒥",k6="𝒿",w6="Ј",_6="ј",A6="Є",S6="є",E6="Κ",q6="κ",C6="ϰ",T6="Ķ",D6="ķ",I6="К",N6="к",z6="𝔎",R6="𝔨",L6="ĸ",M6="Х",F6="х",B6="Ќ",P6="ќ",O6="𝕂",V6="𝕜",$6="𝒦",U6="𝓀",G6="⇚",H6="Ĺ",j6="ĺ",Z6="⦴",W6="ℒ",X6="Λ",J6="λ",Q6="⟨",Y6="⟪",K6="⦑",ep="⟨",tp="⪅",up="ℒ",rp="«",np="⇤",sp="⤟",ip="←",op="↞",ap="⇐",cp="⤝",lp="↩",fp="↫",dp="⤹",hp="⥳",pp="↢",bp="⤙",mp="⤛",gp="⪫",vp="⪭",xp="⪭︀",yp="⤌",kp="⤎",wp="❲",_p="{",Ap="[",Sp="⦋",Ep="⦏",qp="⦍",Cp="Ľ",Tp="ľ",Dp="Ļ",Ip="ļ",Np="⌈",zp="{",Rp="Л",Lp="л",Mp="⤶",Fp="“",Bp="„",Pp="⥧",Op="⥋",Vp="↲",$p="≤",Up="≦",Gp="⟨",Hp="⇤",jp="←",Zp="←",Wp="⇐",Xp="⇆",Jp="↢",Qp="⌈",Yp="⟦",Kp="⥡",e8="⥙",t8="⇃",u8="⌊",r8="↽",n8="↼",s8="⇇",i8="↔",o8="↔",a8="⇔",c8="⇆",l8="⇋",f8="↭",d8="⥎",h8="↤",p8="⊣",b8="⥚",m8="⋋",g8="⧏",v8="⊲",x8="⊴",y8="⥑",k8="⥠",w8="⥘",_8="↿",A8="⥒",S8="↼",E8="⪋",q8="⋚",C8="≤",T8="≦",D8="⩽",I8="⪨",N8="⩽",z8="⩿",R8="⪁",L8="⪃",M8="⋚︀",F8="⪓",B8="⪅",P8="⋖",O8="⋚",V8="⪋",$8="⋚",U8="≦",G8="≶",H8="≶",j8="⪡",Z8="≲",W8="⩽",X8="≲",J8="⥼",Q8="⌊",Y8="𝔏",K8="𝔩",e5="≶",t5="⪑",u5="⥢",r5="↽",n5="↼",s5="⥪",i5="▄",o5="Љ",a5="љ",c5="⇇",l5="≪",f5="⋘",d5="⌞",h5="⇚",p5="⥫",b5="◺",m5="Ŀ",g5="ŀ",v5="⎰",x5="⎰",y5="⪉",k5="⪉",w5="⪇",_5="≨",A5="⪇",S5="≨",E5="⋦",q5="⟬",C5="⇽",T5="⟦",D5="⟵",I5="⟵",N5="⟸",z5="⟷",R5="⟷",L5="⟺",M5="⟼",F5="⟶",B5="⟶",P5="⟹",O5="↫",V5="↬",$5="⦅",U5="𝕃",G5="𝕝",H5="⨭",j5="⨴",Z5="∗",W5="_",X5="↙",J5="↘",Q5="◊",Y5="◊",K5="⧫",eb="(",tb="⦓",ub="⇆",rb="⌟",nb="⇋",sb="⥭",ib="‎",ob="⊿",ab="‹",cb="𝓁",lb="ℒ",fb="↰",db="↰",hb="≲",pb="⪍",bb="⪏",mb="[",gb="‘",vb="‚",xb="Ł",yb="ł",kb="⪦",wb="⩹",_b="<",Ab="<",Sb="≪",Eb="⋖",qb="⋋",Cb="⋉",Tb="⥶",Db="⩻",Ib="◃",Nb="⊴",zb="◂",Rb="⦖",Lb="⥊",Mb="⥦",Fb="≨︀",Bb="≨︀",Pb="¯",Ob="♂",Vb="✠",$b="✠",Ub="↦",Gb="↦",Hb="↧",jb="↤",Zb="↥",Wb="▮",Xb="⨩",Jb="М",Qb="м",Yb="—",Kb="∺",em="∡",tm=" ",um="ℳ",rm="𝔐",nm="𝔪",sm="℧",im="µ",om="*",am="⫰",cm="∣",lm="·",fm="⊟",dm="−",hm="∸",pm="⨪",bm="∓",mm="⫛",gm="…",vm="∓",xm="⊧",ym="𝕄",km="𝕞",wm="∓",_m="𝓂",Am="ℳ",Sm="∾",Em="Μ",qm="μ",Cm="⊸",Tm="⊸",Dm="∇",Im="Ń",Nm="ń",zm="∠⃒",Rm="≉",Lm="⩰̸",Mm="≋̸",Fm="ʼn",Bm="≉",Pm="♮",Om="ℕ",Vm="♮",$m=" ",Um="≎̸",Gm="≏̸",Hm="⩃",jm="Ň",Zm="ň",Wm="Ņ",Xm="ņ",Jm="≇",Qm="⩭̸",Ym="⩂",Km="Н",e9="н",t9="–",u9="⤤",r9="↗",n9="⇗",s9="↗",i9="≠",o9="≐̸",a9="​",c9="​",l9="​",f9="​",d9="≢",h9="⤨",p9="≂̸",b9="≫",m9="≪",g9=` `,v9="∄",x9="∄",y9="𝔑",k9="𝔫",w9="≧̸",_9="≱",A9="≱",S9="≧̸",E9="⩾̸",q9="⩾̸",C9="⋙̸",T9="≵",D9="≫⃒",I9="≯",N9="≯",z9="≫̸",R9="↮",L9="⇎",M9="⫲",F9="∋",B9="⋼",P9="⋺",O9="∋",V9="Њ",$9="њ",U9="↚",G9="⇍",H9="‥",j9="≦̸",Z9="≰",W9="↚",X9="⇍",J9="↮",Q9="⇎",Y9="≰",K9="≦̸",eg="⩽̸",tg="⩽̸",ug="≮",rg="⋘̸",ng="≴",sg="≪⃒",ig="≮",og="⋪",ag="⋬",cg="≪̸",lg="∤",fg="⁠",dg=" ",hg="𝕟",pg="ℕ",bg="⫬",mg="¬",gg="≢",vg="≭",xg="∦",yg="∉",kg="≠",wg="≂̸",_g="∄",Ag="≯",Sg="≱",Eg="≧̸",qg="≫̸",Cg="≹",Tg="⩾̸",Dg="≵",Ig="≎̸",Ng="≏̸",zg="∉",Rg="⋵̸",Lg="⋹̸",Mg="∉",Fg="⋷",Bg="⋶",Pg="⧏̸",Og="⋪",Vg="⋬",$g="≮",Ug="≰",Gg="≸",Hg="≪̸",jg="⩽̸",Zg="≴",Wg="⪢̸",Xg="⪡̸",Jg="∌",Qg="∌",Yg="⋾",Kg="⋽",e7="⊀",t7="⪯̸",u7="⋠",r7="∌",n7="⧐̸",s7="⋫",i7="⋭",o7="⊏̸",a7="⋢",c7="⊐̸",l7="⋣",f7="⊂⃒",d7="⊈",h7="⊁",p7="⪰̸",b7="⋡",m7="≿̸",g7="⊃⃒",v7="⊉",x7="≁",y7="≄",k7="≇",w7="≉",_7="∤",A7="∦",S7="∦",E7="⫽⃥",q7="∂̸",C7="⨔",T7="⊀",D7="⋠",I7="⊀",N7="⪯̸",z7="⪯̸",R7="⤳̸",L7="↛",M7="⇏",F7="↝̸",B7="↛",P7="⇏",O7="⋫",V7="⋭",$7="⊁",U7="⋡",G7="⪰̸",H7="𝒩",j7="𝓃",Z7="∤",W7="∦",X7="≁",J7="≄",Q7="≄",Y7="∤",K7="∦",ev="⋢",tv="⋣",uv="⊄",rv="⫅̸",nv="⊈",sv="⊂⃒",iv="⊈",ov="⫅̸",av="⊁",cv="⪰̸",lv="⊅",fv="⫆̸",dv="⊉",hv="⊃⃒",pv="⊉",bv="⫆̸",mv="≹",gv="Ñ",vv="ñ",xv="≸",yv="⋪",kv="⋬",wv="⋫",_v="⋭",Av="Ν",Sv="ν",Ev="#",qv="№",Cv=" ",Tv="≍⃒",Dv="⊬",Iv="⊭",Nv="⊮",zv="⊯",Rv="≥⃒",Lv=">⃒",Mv="⤄",Fv="⧞",Bv="⤂",Pv="≤⃒",Ov="<⃒",Vv="⊴⃒",$v="⤃",Uv="⊵⃒",Gv="∼⃒",Hv="⤣",jv="↖",Zv="⇖",Wv="↖",Xv="⤧",Jv="Ó",Qv="ó",Yv="⊛",Kv="Ô",ex="ô",tx="⊚",ux="О",rx="о",nx="⊝",sx="Ő",ix="ő",ox="⨸",ax="⊙",cx="⦼",lx="Œ",fx="œ",dx="⦿",hx="𝔒",px="𝔬",bx="˛",mx="Ò",gx="ò",vx="⧁",xx="⦵",yx="Ω",kx="∮",wx="↺",_x="⦾",Ax="⦻",Sx="‾",Ex="⧀",qx="Ō",Cx="ō",Tx="Ω",Dx="ω",Ix="Ο",Nx="ο",zx="⦶",Rx="⊖",Lx="𝕆",Mx="𝕠",Fx="⦷",Bx="“",Px="‘",Ox="⦹",Vx="⊕",$x="↻",Ux="⩔",Gx="∨",Hx="⩝",jx="ℴ",Zx="ℴ",Wx="ª",Xx="º",Jx="⊶",Qx="⩖",Yx="⩗",Kx="⩛",ey="Ⓢ",ty="𝒪",uy="ℴ",ry="Ø",ny="ø",sy="⊘",iy="Õ",oy="õ",ay="⨶",cy="⨷",ly="⊗",fy="Ö",dy="ö",hy="⌽",py="‾",by="⏞",my="⎴",gy="⏜",vy="¶",xy="∥",yy="∥",ky="⫳",wy="⫽",_y="∂",Ay="∂",Sy="П",Ey="п",qy="%",Cy=".",Ty="‰",Dy="⊥",Iy="‱",Ny="𝔓",zy="𝔭",Ry="Φ",Ly="φ",My="ϕ",Fy="ℳ",By="☎",Py="Π",Oy="π",Vy="⋔",$y="ϖ",Uy="ℏ",Gy="ℎ",Hy="ℏ",jy="⨣",Zy="⊞",Wy="⨢",Xy="+",Jy="∔",Qy="⨥",Yy="⩲",Ky="±",ek="±",tk="⨦",uk="⨧",rk="±",nk="ℌ",sk="⨕",ik="𝕡",ok="ℙ",ak="£",ck="⪷",lk="⪻",fk="≺",dk="≼",hk="⪷",pk="≺",bk="≼",mk="≺",gk="⪯",vk="≼",xk="≾",yk="⪯",kk="⪹",wk="⪵",_k="⋨",Ak="⪯",Sk="⪳",Ek="≾",qk="′",Ck="″",Tk="ℙ",Dk="⪹",Ik="⪵",Nk="⋨",zk="∏",Rk="∏",Lk="⌮",Mk="⌒",Fk="⌓",Bk="∝",Pk="∝",Ok="∷",Vk="∝",$k="≾",Uk="⊰",Gk="𝒫",Hk="𝓅",jk="Ψ",Zk="ψ",Wk=" ",Xk="𝔔",Jk="𝔮",Qk="⨌",Yk="𝕢",Kk="ℚ",ew="⁗",tw="𝒬",uw="𝓆",rw="ℍ",nw="⨖",sw="?",iw="≟",ow='"',aw='"',cw="⇛",lw="∽̱",fw="Ŕ",dw="ŕ",hw="√",pw="⦳",bw="⟩",mw="⟫",gw="⦒",vw="⦥",xw="⟩",yw="»",kw="⥵",ww="⇥",_w="⤠",Aw="⤳",Sw="→",Ew="↠",qw="⇒",Cw="⤞",Tw="↪",Dw="↬",Iw="⥅",Nw="⥴",zw="⤖",Rw="↣",Lw="↝",Mw="⤚",Fw="⤜",Bw="∶",Pw="ℚ",Ow="⤍",Vw="⤏",$w="⤐",Uw="❳",Gw="}",Hw="]",jw="⦌",Zw="⦎",Ww="⦐",Xw="Ř",Jw="ř",Qw="Ŗ",Yw="ŗ",Kw="⌉",e_="}",t_="Р",u_="р",r_="⤷",n_="⥩",s_="”",i_="”",o_="↳",a_="ℜ",c_="ℛ",l_="ℜ",f_="ℝ",d_="ℜ",h_="▭",p_="®",b_="®",m_="∋",g_="⇋",v_="⥯",x_="⥽",y_="⌋",k_="𝔯",w_="ℜ",__="⥤",A_="⇁",S_="⇀",E_="⥬",q_="Ρ",C_="ρ",T_="ϱ",D_="⟩",I_="⇥",N_="→",z_="→",R_="⇒",L_="⇄",M_="↣",F_="⌉",B_="⟧",P_="⥝",O_="⥕",V_="⇂",$_="⌋",U_="⇁",G_="⇀",H_="⇄",j_="⇌",Z_="⇉",W_="↝",X_="↦",J_="⊢",Q_="⥛",Y_="⋌",K_="⧐",eA="⊳",tA="⊵",uA="⥏",rA="⥜",nA="⥔",sA="↾",iA="⥓",oA="⇀",aA="˚",cA="≓",lA="⇄",fA="⇌",dA="‏",hA="⎱",pA="⎱",bA="⫮",mA="⟭",gA="⇾",vA="⟧",xA="⦆",yA="𝕣",kA="ℝ",wA="⨮",_A="⨵",AA="⥰",SA=")",EA="⦔",qA="⨒",CA="⇉",TA="⇛",DA="›",IA="𝓇",NA="ℛ",zA="↱",RA="↱",LA="]",MA="’",FA="’",BA="⋌",PA="⋊",OA="▹",VA="⊵",$A="▸",UA="⧎",GA="⧴",HA="⥨",jA="℞",ZA="Ś",WA="ś",XA="‚",JA="⪸",QA="Š",YA="š",KA="⪼",eS="≻",tS="≽",uS="⪰",rS="⪴",nS="Ş",sS="ş",iS="Ŝ",oS="ŝ",aS="⪺",cS="⪶",lS="⋩",fS="⨓",dS="≿",hS="С",pS="с",bS="⊡",mS="⋅",gS="⩦",vS="⤥",xS="↘",yS="⇘",kS="↘",wS="§",_S=";",AS="⤩",SS="∖",ES="∖",qS="✶",CS="𝔖",TS="𝔰",DS="⌢",IS="♯",NS="Щ",zS="щ",RS="Ш",LS="ш",MS="↓",FS="←",BS="∣",PS="∥",OS="→",VS="↑",$S="­",US="Σ",GS="σ",HS="ς",jS="ς",ZS="∼",WS="⩪",XS="≃",JS="≃",QS="⪞",YS="⪠",KS="⪝",eE="⪟",tE="≆",uE="⨤",rE="⥲",nE="←",sE="∘",iE="∖",oE="⨳",aE="⧤",cE="∣",lE="⌣",fE="⪪",dE="⪬",hE="⪬︀",pE="Ь",bE="ь",mE="⌿",gE="⧄",vE="/",xE="𝕊",yE="𝕤",kE="♠",wE="♠",_E="∥",AE="⊓",SE="⊓︀",EE="⊔",qE="⊔︀",CE="√",TE="⊏",DE="⊑",IE="⊏",NE="⊑",zE="⊐",RE="⊒",LE="⊐",ME="⊒",FE="□",BE="□",PE="⊓",OE="⊏",VE="⊑",$E="⊐",UE="⊒",GE="⊔",HE="▪",jE="□",ZE="▪",WE="→",XE="𝒮",JE="𝓈",QE="∖",YE="⌣",KE="⋆",eq="⋆",tq="☆",uq="★",rq="ϵ",nq="ϕ",sq="¯",iq="⊂",oq="⋐",aq="⪽",cq="⫅",lq="⊆",fq="⫃",dq="⫁",hq="⫋",pq="⊊",bq="⪿",mq="⥹",gq="⊂",vq="⋐",xq="⊆",yq="⫅",kq="⊆",wq="⊊",_q="⫋",Aq="⫇",Sq="⫕",Eq="⫓",qq="⪸",Cq="≻",Tq="≽",Dq="≻",Iq="⪰",Nq="≽",zq="≿",Rq="⪰",Lq="⪺",Mq="⪶",Fq="⋩",Bq="≿",Pq="∋",Oq="∑",Vq="∑",$q="♪",Uq="¹",Gq="²",Hq="³",jq="⊃",Zq="⋑",Wq="⪾",Xq="⫘",Jq="⫆",Qq="⊇",Yq="⫄",Kq="⊃",eC="⊇",tC="⟉",uC="⫗",rC="⥻",nC="⫂",sC="⫌",iC="⊋",oC="⫀",aC="⊃",cC="⋑",lC="⊇",fC="⫆",dC="⊋",hC="⫌",pC="⫈",bC="⫔",mC="⫖",gC="⤦",vC="↙",xC="⇙",yC="↙",kC="⤪",wC="ß",_C=" ",AC="⌖",SC="Τ",EC="τ",qC="⎴",CC="Ť",TC="ť",DC="Ţ",IC="ţ",NC="Т",zC="т",RC="⃛",LC="⌕",MC="𝔗",FC="𝔱",BC="∴",PC="∴",OC="∴",VC="Θ",$C="θ",UC="ϑ",GC="ϑ",HC="≈",jC="∼",ZC="  ",WC=" ",XC=" ",JC="≈",QC="∼",YC="Þ",KC="þ",eT="˜",tT="∼",uT="≃",rT="≅",nT="≈",sT="⨱",iT="⊠",oT="×",aT="⨰",cT="∭",lT="⤨",fT="⌶",dT="⫱",hT="⊤",pT="𝕋",bT="𝕥",mT="⫚",gT="⤩",vT="‴",xT="™",yT="™",kT="▵",wT="▿",_T="◃",AT="⊴",ST="≜",ET="▹",qT="⊵",CT="◬",TT="≜",DT="⨺",IT="⃛",NT="⨹",zT="⧍",RT="⨻",LT="⏢",MT="𝒯",FT="𝓉",BT="Ц",PT="ц",OT="Ћ",VT="ћ",$T="Ŧ",UT="ŧ",GT="≬",HT="↞",jT="↠",ZT="Ú",WT="ú",XT="↑",JT="↟",QT="⇑",YT="⥉",KT="Ў",eD="ў",tD="Ŭ",uD="ŭ",rD="Û",nD="û",sD="У",iD="у",oD="⇅",aD="Ű",cD="ű",lD="⥮",fD="⥾",dD="𝔘",hD="𝔲",pD="Ù",bD="ù",mD="⥣",gD="↿",vD="↾",xD="▀",yD="⌜",kD="⌜",wD="⌏",_D="◸",AD="Ū",SD="ū",ED="¨",qD="_",CD="⏟",TD="⎵",DD="⏝",ID="⋃",ND="⊎",zD="Ų",RD="ų",LD="𝕌",MD="𝕦",FD="⤒",BD="↑",PD="↑",OD="⇑",VD="⇅",$D="↕",UD="↕",GD="⇕",HD="⥮",jD="↿",ZD="↾",WD="⊎",XD="↖",JD="↗",QD="υ",YD="ϒ",KD="ϒ",eI="Υ",tI="υ",uI="↥",rI="⊥",nI="⇈",sI="⌝",iI="⌝",oI="⌎",aI="Ů",cI="ů",lI="◹",fI="𝒰",dI="𝓊",hI="⋰",pI="Ũ",bI="ũ",mI="▵",gI="▴",vI="⇈",xI="Ü",yI="ü",kI="⦧",wI="⦜",_I="ϵ",AI="ϰ",SI="∅",EI="ϕ",qI="ϖ",CI="∝",TI="↕",DI="⇕",II="ϱ",NI="ς",zI="⊊︀",RI="⫋︀",LI="⊋︀",MI="⫌︀",FI="ϑ",BI="⊲",PI="⊳",OI="⫨",VI="⫫",$I="⫩",UI="В",GI="в",HI="⊢",jI="⊨",ZI="⊩",WI="⊫",XI="⫦",JI="⊻",QI="∨",YI="⋁",KI="≚",eN="⋮",tN="|",uN="‖",rN="|",nN="‖",sN="∣",iN="|",oN="❘",aN="≀",cN=" ",lN="𝔙",fN="𝔳",dN="⊲",hN="⊂⃒",pN="⊃⃒",bN="𝕍",mN="𝕧",gN="∝",vN="⊳",xN="𝒱",yN="𝓋",kN="⫋︀",wN="⊊︀",_N="⫌︀",AN="⊋︀",SN="⊪",EN="⦚",qN="Ŵ",CN="ŵ",TN="⩟",DN="∧",IN="⋀",NN="≙",zN="℘",RN="𝔚",LN="𝔴",MN="𝕎",FN="𝕨",BN="℘",PN="≀",ON="≀",VN="𝒲",$N="𝓌",UN="⋂",GN="◯",HN="⋃",jN="▽",ZN="𝔛",WN="𝔵",XN="⟷",JN="⟺",QN="Ξ",YN="ξ",KN="⟵",ez="⟸",tz="⟼",uz="⋻",rz="⨀",nz="𝕏",sz="𝕩",iz="⨁",oz="⨂",az="⟶",cz="⟹",lz="𝒳",fz="𝓍",dz="⨆",hz="⨄",pz="△",bz="⋁",mz="⋀",gz="Ý",vz="ý",xz="Я",yz="я",kz="Ŷ",wz="ŷ",_z="Ы",Az="ы",Sz="¥",Ez="𝔜",qz="𝔶",Cz="Ї",Tz="ї",Dz="𝕐",Iz="𝕪",Nz="𝒴",zz="𝓎",Rz="Ю",Lz="ю",Mz="ÿ",Fz="Ÿ",Bz="Ź",Pz="ź",Oz="Ž",Vz="ž",$z="З",Uz="з",Gz="Ż",Hz="ż",jz="ℨ",Zz="​",Wz="Ζ",Xz="ζ",Jz="𝔷",Qz="ℨ",Yz="Ж",Kz="ж",eR="⇝",tR="𝕫",uR="ℤ",rR="𝒵",nR="𝓏",sR="‍",iR="‌",oR={Aacute:Vr,aacute:$r,Abreve:Ur,abreve:Gr,ac:Hr,acd:jr,acE:Zr,Acirc:Wr,acirc:Xr,acute:Jr,Acy:Qr,acy:Yr,AElig:Kr,aelig:en,af:tn,Afr:un,afr:rn,Agrave:nn,agrave:sn,alefsym:on,aleph:an,Alpha:cn,alpha:ln,Amacr:fn,amacr:dn,amalg:hn,amp:pn,AMP:bn,andand:mn,And:gn,and:vn,andd:xn,andslope:yn,andv:kn,ang:wn,ange:_n,angle:An,angmsdaa:Sn,angmsdab:En,angmsdac:qn,angmsdad:Cn,angmsdae:Tn,angmsdaf:Dn,angmsdag:In,angmsdah:Nn,angmsd:zn,angrt:Rn,angrtvb:Ln,angrtvbd:Mn,angsph:Fn,angst:Bn,angzarr:Pn,Aogon:On,aogon:Vn,Aopf:$n,aopf:Un,apacir:Gn,ap:Hn,apE:jn,ape:Zn,apid:Wn,apos:Xn,ApplyFunction:Jn,approx:Qn,approxeq:Yn,Aring:Kn,aring:es,Ascr:ts,ascr:us,Assign:rs,ast:ns,asymp:ss,asympeq:is,Atilde:os,atilde:as,Auml:cs,auml:ls,awconint:fs,awint:ds,backcong:hs,backepsilon:ps,backprime:bs,backsim:ms,backsimeq:gs,Backslash:vs,Barv:xs,barvee:ys,barwed:ks,Barwed:ws,barwedge:_s,bbrk:As,bbrktbrk:Ss,bcong:Es,Bcy:qs,bcy:Cs,bdquo:Ts,becaus:Ds,because:Is,Because:Ns,bemptyv:zs,bepsi:Rs,bernou:Ls,Bernoullis:Ms,Beta:Fs,beta:Bs,beth:Ps,between:Os,Bfr:Vs,bfr:$s,bigcap:Us,bigcirc:Gs,bigcup:Hs,bigodot:js,bigoplus:Zs,bigotimes:Ws,bigsqcup:Xs,bigstar:Js,bigtriangledown:Qs,bigtriangleup:Ys,biguplus:Ks,bigvee:ei,bigwedge:ti,bkarow:ui,blacklozenge:ri,blacksquare:ni,blacktriangle:si,blacktriangledown:ii,blacktriangleleft:oi,blacktriangleright:ai,blank:ci,blk12:li,blk14:fi,blk34:di,block:hi,bne:pi,bnequiv:bi,bNot:mi,bnot:gi,Bopf:vi,bopf:xi,bot:yi,bottom:ki,bowtie:wi,boxbox:_i,boxdl:Ai,boxdL:Si,boxDl:Ei,boxDL:qi,boxdr:Ci,boxdR:Ti,boxDr:Di,boxDR:Ii,boxh:Ni,boxH:zi,boxhd:Ri,boxHd:Li,boxhD:Mi,boxHD:Fi,boxhu:Bi,boxHu:Pi,boxhU:Oi,boxHU:Vi,boxminus:$i,boxplus:Ui,boxtimes:Gi,boxul:Hi,boxuL:ji,boxUl:Zi,boxUL:Wi,boxur:Xi,boxuR:Ji,boxUr:Qi,boxUR:Yi,boxv:Ki,boxV:eo,boxvh:to,boxvH:uo,boxVh:ro,boxVH:no,boxvl:so,boxvL:io,boxVl:oo,boxVL:ao,boxvr:co,boxvR:lo,boxVr:fo,boxVR:ho,bprime:po,breve:bo,Breve:mo,brvbar:go,bscr:vo,Bscr:xo,bsemi:yo,bsim:ko,bsime:wo,bsolb:_o,bsol:Ao,bsolhsub:So,bull:Eo,bullet:qo,bump:Co,bumpE:To,bumpe:Do,Bumpeq:Io,bumpeq:No,Cacute:zo,cacute:Ro,capand:Lo,capbrcup:Mo,capcap:Fo,cap:Bo,Cap:Po,capcup:Oo,capdot:Vo,CapitalDifferentialD:$o,caps:Uo,caret:Go,caron:Ho,Cayleys:jo,ccaps:Zo,Ccaron:Wo,ccaron:Xo,Ccedil:Jo,ccedil:Qo,Ccirc:Yo,ccirc:Ko,Cconint:ea,ccups:ta,ccupssm:ua,Cdot:ra,cdot:na,cedil:sa,Cedilla:ia,cemptyv:oa,cent:aa,centerdot:ca,CenterDot:la,cfr:fa,Cfr:da,CHcy:ha,chcy:pa,check:ba,checkmark:ma,Chi:ga,chi:va,circ:xa,circeq:ya,circlearrowleft:ka,circlearrowright:wa,circledast:_a,circledcirc:Aa,circleddash:Sa,CircleDot:Ea,circledR:qa,circledS:Ca,CircleMinus:Ta,CirclePlus:Da,CircleTimes:Ia,cir:Na,cirE:za,cire:Ra,cirfnint:La,cirmid:Ma,cirscir:Fa,ClockwiseContourIntegral:Ba,CloseCurlyDoubleQuote:Pa,CloseCurlyQuote:Oa,clubs:Va,clubsuit:$a,colon:Ua,Colon:Ga,Colone:Ha,colone:ja,coloneq:Za,comma:Wa,commat:Xa,comp:Ja,compfn:Qa,complement:Ya,complexes:Ka,cong:ec,congdot:tc,Congruent:uc,conint:rc,Conint:nc,ContourIntegral:sc,copf:ic,Copf:oc,coprod:ac,Coproduct:cc,copy:lc,COPY:fc,copysr:dc,CounterClockwiseContourIntegral:hc,crarr:pc,cross:bc,Cross:mc,Cscr:gc,cscr:vc,csub:xc,csube:yc,csup:kc,csupe:wc,ctdot:_c,cudarrl:Ac,cudarrr:Sc,cuepr:Ec,cuesc:qc,cularr:Cc,cularrp:Tc,cupbrcap:Dc,cupcap:Ic,CupCap:Nc,cup:zc,Cup:Rc,cupcup:Lc,cupdot:Mc,cupor:Fc,cups:Bc,curarr:Pc,curarrm:Oc,curlyeqprec:Vc,curlyeqsucc:$c,curlyvee:Uc,curlywedge:Gc,curren:Hc,curvearrowleft:jc,curvearrowright:Zc,cuvee:Wc,cuwed:Xc,cwconint:Jc,cwint:Qc,cylcty:Yc,dagger:Kc,Dagger:el,daleth:tl,darr:ul,Darr:rl,dArr:nl,dash:sl,Dashv:il,dashv:ol,dbkarow:al,dblac:cl,Dcaron:ll,dcaron:fl,Dcy:dl,dcy:hl,ddagger:pl,ddarr:bl,DD:ml,dd:gl,DDotrahd:vl,ddotseq:xl,deg:yl,Del:kl,Delta:wl,delta:_l,demptyv:Al,dfisht:Sl,Dfr:El,dfr:ql,dHar:Cl,dharl:Tl,dharr:Dl,DiacriticalAcute:Il,DiacriticalDot:Nl,DiacriticalDoubleAcute:zl,DiacriticalGrave:Rl,DiacriticalTilde:Ll,diam:Ml,diamond:Fl,Diamond:Bl,diamondsuit:Pl,diams:Ol,die:Vl,DifferentialD:$l,digamma:Ul,disin:Gl,div:Hl,divide:jl,divideontimes:Zl,divonx:Wl,DJcy:Xl,djcy:Jl,dlcorn:Ql,dlcrop:Yl,dollar:Kl,Dopf:e1,dopf:t1,Dot:u1,dot:r1,DotDot:n1,doteq:s1,doteqdot:i1,DotEqual:o1,dotminus:a1,dotplus:c1,dotsquare:l1,doublebarwedge:f1,DoubleContourIntegral:d1,DoubleDot:h1,DoubleDownArrow:p1,DoubleLeftArrow:b1,DoubleLeftRightArrow:m1,DoubleLeftTee:g1,DoubleLongLeftArrow:v1,DoubleLongLeftRightArrow:x1,DoubleLongRightArrow:y1,DoubleRightArrow:k1,DoubleRightTee:w1,DoubleUpArrow:_1,DoubleUpDownArrow:A1,DoubleVerticalBar:S1,DownArrowBar:E1,downarrow:q1,DownArrow:C1,Downarrow:T1,DownArrowUpArrow:D1,DownBreve:I1,downdownarrows:N1,downharpoonleft:z1,downharpoonright:R1,DownLeftRightVector:L1,DownLeftTeeVector:M1,DownLeftVectorBar:F1,DownLeftVector:B1,DownRightTeeVector:P1,DownRightVectorBar:O1,DownRightVector:V1,DownTeeArrow:$1,DownTee:U1,drbkarow:G1,drcorn:H1,drcrop:j1,Dscr:Z1,dscr:W1,DScy:X1,dscy:J1,dsol:Q1,Dstrok:Y1,dstrok:K1,dtdot:ef,dtri:tf,dtrif:uf,duarr:rf,duhar:nf,dwangle:sf,DZcy:of,dzcy:af,dzigrarr:cf,Eacute:lf,eacute:ff,easter:df,Ecaron:hf,ecaron:pf,Ecirc:bf,ecirc:mf,ecir:gf,ecolon:vf,Ecy:xf,ecy:yf,eDDot:kf,Edot:wf,edot:_f,eDot:Af,ee:Sf,efDot:Ef,Efr:qf,efr:Cf,eg:Tf,Egrave:Df,egrave:If,egs:Nf,egsdot:zf,el:Rf,Element:Lf,elinters:Mf,ell:Ff,els:Bf,elsdot:Pf,Emacr:Of,emacr:Vf,empty:$f,emptyset:Uf,EmptySmallSquare:Gf,emptyv:Hf,EmptyVerySmallSquare:jf,emsp13:Zf,emsp14:Wf,emsp:Xf,ENG:Jf,eng:Qf,ensp:Yf,Eogon:Kf,eogon:e2,Eopf:t2,eopf:u2,epar:r2,eparsl:n2,eplus:s2,epsi:i2,Epsilon:o2,epsilon:a2,epsiv:c2,eqcirc:l2,eqcolon:f2,eqsim:d2,eqslantgtr:h2,eqslantless:p2,Equal:b2,equals:m2,EqualTilde:g2,equest:v2,Equilibrium:x2,equiv:y2,equivDD:k2,eqvparsl:w2,erarr:_2,erDot:A2,escr:S2,Escr:E2,esdot:q2,Esim:C2,esim:T2,Eta:D2,eta:I2,ETH:N2,eth:z2,Euml:R2,euml:L2,euro:M2,excl:F2,exist:B2,Exists:P2,expectation:O2,exponentiale:V2,ExponentialE:$2,fallingdotseq:U2,Fcy:G2,fcy:H2,female:j2,ffilig:Z2,fflig:W2,ffllig:X2,Ffr:J2,ffr:Q2,filig:Y2,FilledSmallSquare:K2,FilledVerySmallSquare:e4,fjlig:t4,flat:u4,fllig:r4,fltns:n4,fnof:s4,Fopf:i4,fopf:o4,forall:a4,ForAll:c4,fork:l4,forkv:f4,Fouriertrf:d4,fpartint:h4,frac12:p4,frac13:b4,frac14:m4,frac15:g4,frac16:v4,frac18:x4,frac23:y4,frac25:k4,frac34:w4,frac35:_4,frac38:A4,frac45:S4,frac56:E4,frac58:q4,frac78:C4,frasl:T4,frown:D4,fscr:I4,Fscr:N4,gacute:z4,Gamma:R4,gamma:L4,Gammad:M4,gammad:F4,gap:B4,Gbreve:P4,gbreve:O4,Gcedil:V4,Gcirc:$4,gcirc:U4,Gcy:G4,gcy:H4,Gdot:j4,gdot:Z4,ge:W4,gE:X4,gEl:J4,gel:Q4,geq:Y4,geqq:K4,geqslant:ed,gescc:td,ges:ud,gesdot:rd,gesdoto:nd,gesdotol:sd,gesl:id,gesles:od,Gfr:ad,gfr:cd,gg:ld,Gg:fd,ggg:dd,gimel:hd,GJcy:pd,gjcy:bd,gla:md,gl:gd,glE:vd,glj:xd,gnap:yd,gnapprox:kd,gne:wd,gnE:_d,gneq:Ad,gneqq:Sd,gnsim:Ed,Gopf:qd,gopf:Cd,grave:Td,GreaterEqual:Dd,GreaterEqualLess:Id,GreaterFullEqual:Nd,GreaterGreater:zd,GreaterLess:Rd,GreaterSlantEqual:Ld,GreaterTilde:Md,Gscr:Fd,gscr:Bd,gsim:Pd,gsime:Od,gsiml:Vd,gtcc:$d,gtcir:Ud,gt:Gd,GT:Hd,Gt:jd,gtdot:Zd,gtlPar:Wd,gtquest:Xd,gtrapprox:Jd,gtrarr:Qd,gtrdot:Yd,gtreqless:Kd,gtreqqless:eh,gtrless:th,gtrsim:uh,gvertneqq:rh,gvnE:nh,Hacek:sh,hairsp:ih,half:oh,hamilt:ah,HARDcy:ch,hardcy:lh,harrcir:fh,harr:dh,hArr:hh,harrw:ph,Hat:bh,hbar:mh,Hcirc:gh,hcirc:vh,hearts:xh,heartsuit:yh,hellip:kh,hercon:wh,hfr:_h,Hfr:Ah,HilbertSpace:Sh,hksearow:Eh,hkswarow:qh,hoarr:Ch,homtht:Th,hookleftarrow:Dh,hookrightarrow:Ih,hopf:Nh,Hopf:zh,horbar:Rh,HorizontalLine:Lh,hscr:Mh,Hscr:Fh,hslash:Bh,Hstrok:Ph,hstrok:Oh,HumpDownHump:Vh,HumpEqual:$h,hybull:Uh,hyphen:Gh,Iacute:Hh,iacute:jh,ic:Zh,Icirc:Wh,icirc:Xh,Icy:Jh,icy:Qh,Idot:Yh,IEcy:Kh,iecy:e3,iexcl:t3,iff:u3,ifr:r3,Ifr:n3,Igrave:s3,igrave:i3,ii:o3,iiiint:a3,iiint:c3,iinfin:l3,iiota:f3,IJlig:d3,ijlig:h3,Imacr:p3,imacr:b3,image:m3,ImaginaryI:g3,imagline:v3,imagpart:x3,imath:y3,Im:k3,imof:w3,imped:_3,Implies:A3,incare:S3,in:"∈",infin:E3,infintie:q3,inodot:C3,intcal:T3,int:D3,Int:I3,integers:N3,Integral:z3,intercal:R3,Intersection:L3,intlarhk:M3,intprod:F3,InvisibleComma:B3,InvisibleTimes:P3,IOcy:O3,iocy:V3,Iogon:$3,iogon:U3,Iopf:G3,iopf:H3,Iota:j3,iota:Z3,iprod:W3,iquest:X3,iscr:J3,Iscr:Q3,isin:Y3,isindot:K3,isinE:e6,isins:t6,isinsv:u6,isinv:r6,it:n6,Itilde:s6,itilde:i6,Iukcy:o6,iukcy:a6,Iuml:c6,iuml:l6,Jcirc:f6,jcirc:d6,Jcy:h6,jcy:p6,Jfr:b6,jfr:m6,jmath:g6,Jopf:v6,jopf:x6,Jscr:y6,jscr:k6,Jsercy:w6,jsercy:_6,Jukcy:A6,jukcy:S6,Kappa:E6,kappa:q6,kappav:C6,Kcedil:T6,kcedil:D6,Kcy:I6,kcy:N6,Kfr:z6,kfr:R6,kgreen:L6,KHcy:M6,khcy:F6,KJcy:B6,kjcy:P6,Kopf:O6,kopf:V6,Kscr:$6,kscr:U6,lAarr:G6,Lacute:H6,lacute:j6,laemptyv:Z6,lagran:W6,Lambda:X6,lambda:J6,lang:Q6,Lang:Y6,langd:K6,langle:ep,lap:tp,Laplacetrf:up,laquo:rp,larrb:np,larrbfs:sp,larr:ip,Larr:op,lArr:ap,larrfs:cp,larrhk:lp,larrlp:fp,larrpl:dp,larrsim:hp,larrtl:pp,latail:bp,lAtail:mp,lat:gp,late:vp,lates:xp,lbarr:yp,lBarr:kp,lbbrk:wp,lbrace:_p,lbrack:Ap,lbrke:Sp,lbrksld:Ep,lbrkslu:qp,Lcaron:Cp,lcaron:Tp,Lcedil:Dp,lcedil:Ip,lceil:Np,lcub:zp,Lcy:Rp,lcy:Lp,ldca:Mp,ldquo:Fp,ldquor:Bp,ldrdhar:Pp,ldrushar:Op,ldsh:Vp,le:$p,lE:Up,LeftAngleBracket:Gp,LeftArrowBar:Hp,leftarrow:jp,LeftArrow:Zp,Leftarrow:Wp,LeftArrowRightArrow:Xp,leftarrowtail:Jp,LeftCeiling:Qp,LeftDoubleBracket:Yp,LeftDownTeeVector:Kp,LeftDownVectorBar:e8,LeftDownVector:t8,LeftFloor:u8,leftharpoondown:r8,leftharpoonup:n8,leftleftarrows:s8,leftrightarrow:i8,LeftRightArrow:o8,Leftrightarrow:a8,leftrightarrows:c8,leftrightharpoons:l8,leftrightsquigarrow:f8,LeftRightVector:d8,LeftTeeArrow:h8,LeftTee:p8,LeftTeeVector:b8,leftthreetimes:m8,LeftTriangleBar:g8,LeftTriangle:v8,LeftTriangleEqual:x8,LeftUpDownVector:y8,LeftUpTeeVector:k8,LeftUpVectorBar:w8,LeftUpVector:_8,LeftVectorBar:A8,LeftVector:S8,lEg:E8,leg:q8,leq:C8,leqq:T8,leqslant:D8,lescc:I8,les:N8,lesdot:z8,lesdoto:R8,lesdotor:L8,lesg:M8,lesges:F8,lessapprox:B8,lessdot:P8,lesseqgtr:O8,lesseqqgtr:V8,LessEqualGreater:$8,LessFullEqual:U8,LessGreater:G8,lessgtr:H8,LessLess:j8,lesssim:Z8,LessSlantEqual:W8,LessTilde:X8,lfisht:J8,lfloor:Q8,Lfr:Y8,lfr:K8,lg:e5,lgE:t5,lHar:u5,lhard:r5,lharu:n5,lharul:s5,lhblk:i5,LJcy:o5,ljcy:a5,llarr:c5,ll:l5,Ll:f5,llcorner:d5,Lleftarrow:h5,llhard:p5,lltri:b5,Lmidot:m5,lmidot:g5,lmoustache:v5,lmoust:x5,lnap:y5,lnapprox:k5,lne:w5,lnE:_5,lneq:A5,lneqq:S5,lnsim:E5,loang:q5,loarr:C5,lobrk:T5,longleftarrow:D5,LongLeftArrow:I5,Longleftarrow:N5,longleftrightarrow:z5,LongLeftRightArrow:R5,Longleftrightarrow:L5,longmapsto:M5,longrightarrow:F5,LongRightArrow:B5,Longrightarrow:P5,looparrowleft:O5,looparrowright:V5,lopar:$5,Lopf:U5,lopf:G5,loplus:H5,lotimes:j5,lowast:Z5,lowbar:W5,LowerLeftArrow:X5,LowerRightArrow:J5,loz:Q5,lozenge:Y5,lozf:K5,lpar:eb,lparlt:tb,lrarr:ub,lrcorner:rb,lrhar:nb,lrhard:sb,lrm:ib,lrtri:ob,lsaquo:ab,lscr:cb,Lscr:lb,lsh:fb,Lsh:db,lsim:hb,lsime:pb,lsimg:bb,lsqb:mb,lsquo:gb,lsquor:vb,Lstrok:xb,lstrok:yb,ltcc:kb,ltcir:wb,lt:_b,LT:Ab,Lt:Sb,ltdot:Eb,lthree:qb,ltimes:Cb,ltlarr:Tb,ltquest:Db,ltri:Ib,ltrie:Nb,ltrif:zb,ltrPar:Rb,lurdshar:Lb,luruhar:Mb,lvertneqq:Fb,lvnE:Bb,macr:Pb,male:Ob,malt:Vb,maltese:$b,Map:"⤅",map:Ub,mapsto:Gb,mapstodown:Hb,mapstoleft:jb,mapstoup:Zb,marker:Wb,mcomma:Xb,Mcy:Jb,mcy:Qb,mdash:Yb,mDDot:Kb,measuredangle:em,MediumSpace:tm,Mellintrf:um,Mfr:rm,mfr:nm,mho:sm,micro:im,midast:om,midcir:am,mid:cm,middot:lm,minusb:fm,minus:dm,minusd:hm,minusdu:pm,MinusPlus:bm,mlcp:mm,mldr:gm,mnplus:vm,models:xm,Mopf:ym,mopf:km,mp:wm,mscr:_m,Mscr:Am,mstpos:Sm,Mu:Em,mu:qm,multimap:Cm,mumap:Tm,nabla:Dm,Nacute:Im,nacute:Nm,nang:zm,nap:Rm,napE:Lm,napid:Mm,napos:Fm,napprox:Bm,natural:Pm,naturals:Om,natur:Vm,nbsp:$m,nbump:Um,nbumpe:Gm,ncap:Hm,Ncaron:jm,ncaron:Zm,Ncedil:Wm,ncedil:Xm,ncong:Jm,ncongdot:Qm,ncup:Ym,Ncy:Km,ncy:e9,ndash:t9,nearhk:u9,nearr:r9,neArr:n9,nearrow:s9,ne:i9,nedot:o9,NegativeMediumSpace:a9,NegativeThickSpace:c9,NegativeThinSpace:l9,NegativeVeryThinSpace:f9,nequiv:d9,nesear:h9,nesim:p9,NestedGreaterGreater:b9,NestedLessLess:m9,NewLine:g9,nexist:v9,nexists:x9,Nfr:y9,nfr:k9,ngE:w9,nge:_9,ngeq:A9,ngeqq:S9,ngeqslant:E9,nges:q9,nGg:C9,ngsim:T9,nGt:D9,ngt:I9,ngtr:N9,nGtv:z9,nharr:R9,nhArr:L9,nhpar:M9,ni:F9,nis:B9,nisd:P9,niv:O9,NJcy:V9,njcy:$9,nlarr:U9,nlArr:G9,nldr:H9,nlE:j9,nle:Z9,nleftarrow:W9,nLeftarrow:X9,nleftrightarrow:J9,nLeftrightarrow:Q9,nleq:Y9,nleqq:K9,nleqslant:eg,nles:tg,nless:ug,nLl:rg,nlsim:ng,nLt:sg,nlt:ig,nltri:og,nltrie:ag,nLtv:cg,nmid:lg,NoBreak:fg,NonBreakingSpace:dg,nopf:hg,Nopf:pg,Not:bg,not:mg,NotCongruent:gg,NotCupCap:vg,NotDoubleVerticalBar:xg,NotElement:yg,NotEqual:kg,NotEqualTilde:wg,NotExists:_g,NotGreater:Ag,NotGreaterEqual:Sg,NotGreaterFullEqual:Eg,NotGreaterGreater:qg,NotGreaterLess:Cg,NotGreaterSlantEqual:Tg,NotGreaterTilde:Dg,NotHumpDownHump:Ig,NotHumpEqual:Ng,notin:zg,notindot:Rg,notinE:Lg,notinva:Mg,notinvb:Fg,notinvc:Bg,NotLeftTriangleBar:Pg,NotLeftTriangle:Og,NotLeftTriangleEqual:Vg,NotLess:$g,NotLessEqual:Ug,NotLessGreater:Gg,NotLessLess:Hg,NotLessSlantEqual:jg,NotLessTilde:Zg,NotNestedGreaterGreater:Wg,NotNestedLessLess:Xg,notni:Jg,notniva:Qg,notnivb:Yg,notnivc:Kg,NotPrecedes:e7,NotPrecedesEqual:t7,NotPrecedesSlantEqual:u7,NotReverseElement:r7,NotRightTriangleBar:n7,NotRightTriangle:s7,NotRightTriangleEqual:i7,NotSquareSubset:o7,NotSquareSubsetEqual:a7,NotSquareSuperset:c7,NotSquareSupersetEqual:l7,NotSubset:f7,NotSubsetEqual:d7,NotSucceeds:h7,NotSucceedsEqual:p7,NotSucceedsSlantEqual:b7,NotSucceedsTilde:m7,NotSuperset:g7,NotSupersetEqual:v7,NotTilde:x7,NotTildeEqual:y7,NotTildeFullEqual:k7,NotTildeTilde:w7,NotVerticalBar:_7,nparallel:A7,npar:S7,nparsl:E7,npart:q7,npolint:C7,npr:T7,nprcue:D7,nprec:I7,npreceq:N7,npre:z7,nrarrc:R7,nrarr:L7,nrArr:M7,nrarrw:F7,nrightarrow:B7,nRightarrow:P7,nrtri:O7,nrtrie:V7,nsc:$7,nsccue:U7,nsce:G7,Nscr:H7,nscr:j7,nshortmid:Z7,nshortparallel:W7,nsim:X7,nsime:J7,nsimeq:Q7,nsmid:Y7,nspar:K7,nsqsube:ev,nsqsupe:tv,nsub:uv,nsubE:rv,nsube:nv,nsubset:sv,nsubseteq:iv,nsubseteqq:ov,nsucc:av,nsucceq:cv,nsup:lv,nsupE:fv,nsupe:dv,nsupset:hv,nsupseteq:pv,nsupseteqq:bv,ntgl:mv,Ntilde:gv,ntilde:vv,ntlg:xv,ntriangleleft:yv,ntrianglelefteq:kv,ntriangleright:wv,ntrianglerighteq:_v,Nu:Av,nu:Sv,num:Ev,numero:qv,numsp:Cv,nvap:Tv,nvdash:Dv,nvDash:Iv,nVdash:Nv,nVDash:zv,nvge:Rv,nvgt:Lv,nvHarr:Mv,nvinfin:Fv,nvlArr:Bv,nvle:Pv,nvlt:Ov,nvltrie:Vv,nvrArr:$v,nvrtrie:Uv,nvsim:Gv,nwarhk:Hv,nwarr:jv,nwArr:Zv,nwarrow:Wv,nwnear:Xv,Oacute:Jv,oacute:Qv,oast:Yv,Ocirc:Kv,ocirc:ex,ocir:tx,Ocy:ux,ocy:rx,odash:nx,Odblac:sx,odblac:ix,odiv:ox,odot:ax,odsold:cx,OElig:lx,oelig:fx,ofcir:dx,Ofr:hx,ofr:px,ogon:bx,Ograve:mx,ograve:gx,ogt:vx,ohbar:xx,ohm:yx,oint:kx,olarr:wx,olcir:_x,olcross:Ax,oline:Sx,olt:Ex,Omacr:qx,omacr:Cx,Omega:Tx,omega:Dx,Omicron:Ix,omicron:Nx,omid:zx,ominus:Rx,Oopf:Lx,oopf:Mx,opar:Fx,OpenCurlyDoubleQuote:Bx,OpenCurlyQuote:Px,operp:Ox,oplus:Vx,orarr:$x,Or:Ux,or:Gx,ord:Hx,order:jx,orderof:Zx,ordf:Wx,ordm:Xx,origof:Jx,oror:Qx,orslope:Yx,orv:Kx,oS:ey,Oscr:ty,oscr:uy,Oslash:ry,oslash:ny,osol:sy,Otilde:iy,otilde:oy,otimesas:ay,Otimes:cy,otimes:ly,Ouml:fy,ouml:dy,ovbar:hy,OverBar:py,OverBrace:by,OverBracket:my,OverParenthesis:gy,para:vy,parallel:xy,par:yy,parsim:ky,parsl:wy,part:_y,PartialD:Ay,Pcy:Sy,pcy:Ey,percnt:qy,period:Cy,permil:Ty,perp:Dy,pertenk:Iy,Pfr:Ny,pfr:zy,Phi:Ry,phi:Ly,phiv:My,phmmat:Fy,phone:By,Pi:Py,pi:Oy,pitchfork:Vy,piv:$y,planck:Uy,planckh:Gy,plankv:Hy,plusacir:jy,plusb:Zy,pluscir:Wy,plus:Xy,plusdo:Jy,plusdu:Qy,pluse:Yy,PlusMinus:Ky,plusmn:ek,plussim:tk,plustwo:uk,pm:rk,Poincareplane:nk,pointint:sk,popf:ik,Popf:ok,pound:ak,prap:ck,Pr:lk,pr:fk,prcue:dk,precapprox:hk,prec:pk,preccurlyeq:bk,Precedes:mk,PrecedesEqual:gk,PrecedesSlantEqual:vk,PrecedesTilde:xk,preceq:yk,precnapprox:kk,precneqq:wk,precnsim:_k,pre:Ak,prE:Sk,precsim:Ek,prime:qk,Prime:Ck,primes:Tk,prnap:Dk,prnE:Ik,prnsim:Nk,prod:zk,Product:Rk,profalar:Lk,profline:Mk,profsurf:Fk,prop:Bk,Proportional:Pk,Proportion:Ok,propto:Vk,prsim:$k,prurel:Uk,Pscr:Gk,pscr:Hk,Psi:jk,psi:Zk,puncsp:Wk,Qfr:Xk,qfr:Jk,qint:Qk,qopf:Yk,Qopf:Kk,qprime:ew,Qscr:tw,qscr:uw,quaternions:rw,quatint:nw,quest:sw,questeq:iw,quot:ow,QUOT:aw,rAarr:cw,race:lw,Racute:fw,racute:dw,radic:hw,raemptyv:pw,rang:bw,Rang:mw,rangd:gw,range:vw,rangle:xw,raquo:yw,rarrap:kw,rarrb:ww,rarrbfs:_w,rarrc:Aw,rarr:Sw,Rarr:Ew,rArr:qw,rarrfs:Cw,rarrhk:Tw,rarrlp:Dw,rarrpl:Iw,rarrsim:Nw,Rarrtl:zw,rarrtl:Rw,rarrw:Lw,ratail:Mw,rAtail:Fw,ratio:Bw,rationals:Pw,rbarr:Ow,rBarr:Vw,RBarr:$w,rbbrk:Uw,rbrace:Gw,rbrack:Hw,rbrke:jw,rbrksld:Zw,rbrkslu:Ww,Rcaron:Xw,rcaron:Jw,Rcedil:Qw,rcedil:Yw,rceil:Kw,rcub:e_,Rcy:t_,rcy:u_,rdca:r_,rdldhar:n_,rdquo:s_,rdquor:i_,rdsh:o_,real:a_,realine:c_,realpart:l_,reals:f_,Re:d_,rect:h_,reg:p_,REG:b_,ReverseElement:m_,ReverseEquilibrium:g_,ReverseUpEquilibrium:v_,rfisht:x_,rfloor:y_,rfr:k_,Rfr:w_,rHar:__,rhard:A_,rharu:S_,rharul:E_,Rho:q_,rho:C_,rhov:T_,RightAngleBracket:D_,RightArrowBar:I_,rightarrow:N_,RightArrow:z_,Rightarrow:R_,RightArrowLeftArrow:L_,rightarrowtail:M_,RightCeiling:F_,RightDoubleBracket:B_,RightDownTeeVector:P_,RightDownVectorBar:O_,RightDownVector:V_,RightFloor:$_,rightharpoondown:U_,rightharpoonup:G_,rightleftarrows:H_,rightleftharpoons:j_,rightrightarrows:Z_,rightsquigarrow:W_,RightTeeArrow:X_,RightTee:J_,RightTeeVector:Q_,rightthreetimes:Y_,RightTriangleBar:K_,RightTriangle:eA,RightTriangleEqual:tA,RightUpDownVector:uA,RightUpTeeVector:rA,RightUpVectorBar:nA,RightUpVector:sA,RightVectorBar:iA,RightVector:oA,ring:aA,risingdotseq:cA,rlarr:lA,rlhar:fA,rlm:dA,rmoustache:hA,rmoust:pA,rnmid:bA,roang:mA,roarr:gA,robrk:vA,ropar:xA,ropf:yA,Ropf:kA,roplus:wA,rotimes:_A,RoundImplies:AA,rpar:SA,rpargt:EA,rppolint:qA,rrarr:CA,Rrightarrow:TA,rsaquo:DA,rscr:IA,Rscr:NA,rsh:zA,Rsh:RA,rsqb:LA,rsquo:MA,rsquor:FA,rthree:BA,rtimes:PA,rtri:OA,rtrie:VA,rtrif:$A,rtriltri:UA,RuleDelayed:GA,ruluhar:HA,rx:jA,Sacute:ZA,sacute:WA,sbquo:XA,scap:JA,Scaron:QA,scaron:YA,Sc:KA,sc:eS,sccue:tS,sce:uS,scE:rS,Scedil:nS,scedil:sS,Scirc:iS,scirc:oS,scnap:aS,scnE:cS,scnsim:lS,scpolint:fS,scsim:dS,Scy:hS,scy:pS,sdotb:bS,sdot:mS,sdote:gS,searhk:vS,searr:xS,seArr:yS,searrow:kS,sect:wS,semi:_S,seswar:AS,setminus:SS,setmn:ES,sext:qS,Sfr:CS,sfr:TS,sfrown:DS,sharp:IS,SHCHcy:NS,shchcy:zS,SHcy:RS,shcy:LS,ShortDownArrow:MS,ShortLeftArrow:FS,shortmid:BS,shortparallel:PS,ShortRightArrow:OS,ShortUpArrow:VS,shy:$S,Sigma:US,sigma:GS,sigmaf:HS,sigmav:jS,sim:ZS,simdot:WS,sime:XS,simeq:JS,simg:QS,simgE:YS,siml:KS,simlE:eE,simne:tE,simplus:uE,simrarr:rE,slarr:nE,SmallCircle:sE,smallsetminus:iE,smashp:oE,smeparsl:aE,smid:cE,smile:lE,smt:fE,smte:dE,smtes:hE,SOFTcy:pE,softcy:bE,solbar:mE,solb:gE,sol:vE,Sopf:xE,sopf:yE,spades:kE,spadesuit:wE,spar:_E,sqcap:AE,sqcaps:SE,sqcup:EE,sqcups:qE,Sqrt:CE,sqsub:TE,sqsube:DE,sqsubset:IE,sqsubseteq:NE,sqsup:zE,sqsupe:RE,sqsupset:LE,sqsupseteq:ME,square:FE,Square:BE,SquareIntersection:PE,SquareSubset:OE,SquareSubsetEqual:VE,SquareSuperset:$E,SquareSupersetEqual:UE,SquareUnion:GE,squarf:HE,squ:jE,squf:ZE,srarr:WE,Sscr:XE,sscr:JE,ssetmn:QE,ssmile:YE,sstarf:KE,Star:eq,star:tq,starf:uq,straightepsilon:rq,straightphi:nq,strns:sq,sub:iq,Sub:oq,subdot:aq,subE:cq,sube:lq,subedot:fq,submult:dq,subnE:hq,subne:pq,subplus:bq,subrarr:mq,subset:gq,Subset:vq,subseteq:xq,subseteqq:yq,SubsetEqual:kq,subsetneq:wq,subsetneqq:_q,subsim:Aq,subsub:Sq,subsup:Eq,succapprox:qq,succ:Cq,succcurlyeq:Tq,Succeeds:Dq,SucceedsEqual:Iq,SucceedsSlantEqual:Nq,SucceedsTilde:zq,succeq:Rq,succnapprox:Lq,succneqq:Mq,succnsim:Fq,succsim:Bq,SuchThat:Pq,sum:Oq,Sum:Vq,sung:$q,sup1:Uq,sup2:Gq,sup3:Hq,sup:jq,Sup:Zq,supdot:Wq,supdsub:Xq,supE:Jq,supe:Qq,supedot:Yq,Superset:Kq,SupersetEqual:eC,suphsol:tC,suphsub:uC,suplarr:rC,supmult:nC,supnE:sC,supne:iC,supplus:oC,supset:aC,Supset:cC,supseteq:lC,supseteqq:fC,supsetneq:dC,supsetneqq:hC,supsim:pC,supsub:bC,supsup:mC,swarhk:gC,swarr:vC,swArr:xC,swarrow:yC,swnwar:kC,szlig:wC,Tab:_C,target:AC,Tau:SC,tau:EC,tbrk:qC,Tcaron:CC,tcaron:TC,Tcedil:DC,tcedil:IC,Tcy:NC,tcy:zC,tdot:RC,telrec:LC,Tfr:MC,tfr:FC,there4:BC,therefore:PC,Therefore:OC,Theta:VC,theta:$C,thetasym:UC,thetav:GC,thickapprox:HC,thicksim:jC,ThickSpace:ZC,ThinSpace:WC,thinsp:XC,thkap:JC,thksim:QC,THORN:YC,thorn:KC,tilde:eT,Tilde:tT,TildeEqual:uT,TildeFullEqual:rT,TildeTilde:nT,timesbar:sT,timesb:iT,times:oT,timesd:aT,tint:cT,toea:lT,topbot:fT,topcir:dT,top:hT,Topf:pT,topf:bT,topfork:mT,tosa:gT,tprime:vT,trade:xT,TRADE:yT,triangle:kT,triangledown:wT,triangleleft:_T,trianglelefteq:AT,triangleq:ST,triangleright:ET,trianglerighteq:qT,tridot:CT,trie:TT,triminus:DT,TripleDot:IT,triplus:NT,trisb:zT,tritime:RT,trpezium:LT,Tscr:MT,tscr:FT,TScy:BT,tscy:PT,TSHcy:OT,tshcy:VT,Tstrok:$T,tstrok:UT,twixt:GT,twoheadleftarrow:HT,twoheadrightarrow:jT,Uacute:ZT,uacute:WT,uarr:XT,Uarr:JT,uArr:QT,Uarrocir:YT,Ubrcy:KT,ubrcy:eD,Ubreve:tD,ubreve:uD,Ucirc:rD,ucirc:nD,Ucy:sD,ucy:iD,udarr:oD,Udblac:aD,udblac:cD,udhar:lD,ufisht:fD,Ufr:dD,ufr:hD,Ugrave:pD,ugrave:bD,uHar:mD,uharl:gD,uharr:vD,uhblk:xD,ulcorn:yD,ulcorner:kD,ulcrop:wD,ultri:_D,Umacr:AD,umacr:SD,uml:ED,UnderBar:qD,UnderBrace:CD,UnderBracket:TD,UnderParenthesis:DD,Union:ID,UnionPlus:ND,Uogon:zD,uogon:RD,Uopf:LD,uopf:MD,UpArrowBar:FD,uparrow:BD,UpArrow:PD,Uparrow:OD,UpArrowDownArrow:VD,updownarrow:$D,UpDownArrow:UD,Updownarrow:GD,UpEquilibrium:HD,upharpoonleft:jD,upharpoonright:ZD,uplus:WD,UpperLeftArrow:XD,UpperRightArrow:JD,upsi:QD,Upsi:YD,upsih:KD,Upsilon:eI,upsilon:tI,UpTeeArrow:uI,UpTee:rI,upuparrows:nI,urcorn:sI,urcorner:iI,urcrop:oI,Uring:aI,uring:cI,urtri:lI,Uscr:fI,uscr:dI,utdot:hI,Utilde:pI,utilde:bI,utri:mI,utrif:gI,uuarr:vI,Uuml:xI,uuml:yI,uwangle:kI,vangrt:wI,varepsilon:_I,varkappa:AI,varnothing:SI,varphi:EI,varpi:qI,varpropto:CI,varr:TI,vArr:DI,varrho:II,varsigma:NI,varsubsetneq:zI,varsubsetneqq:RI,varsupsetneq:LI,varsupsetneqq:MI,vartheta:FI,vartriangleleft:BI,vartriangleright:PI,vBar:OI,Vbar:VI,vBarv:$I,Vcy:UI,vcy:GI,vdash:HI,vDash:jI,Vdash:ZI,VDash:WI,Vdashl:XI,veebar:JI,vee:QI,Vee:YI,veeeq:KI,vellip:eN,verbar:tN,Verbar:uN,vert:rN,Vert:nN,VerticalBar:sN,VerticalLine:iN,VerticalSeparator:oN,VerticalTilde:aN,VeryThinSpace:cN,Vfr:lN,vfr:fN,vltri:dN,vnsub:hN,vnsup:pN,Vopf:bN,vopf:mN,vprop:gN,vrtri:vN,Vscr:xN,vscr:yN,vsubnE:kN,vsubne:wN,vsupnE:_N,vsupne:AN,Vvdash:SN,vzigzag:EN,Wcirc:qN,wcirc:CN,wedbar:TN,wedge:DN,Wedge:IN,wedgeq:NN,weierp:zN,Wfr:RN,wfr:LN,Wopf:MN,wopf:FN,wp:BN,wr:PN,wreath:ON,Wscr:VN,wscr:$N,xcap:UN,xcirc:GN,xcup:HN,xdtri:jN,Xfr:ZN,xfr:WN,xharr:XN,xhArr:JN,Xi:QN,xi:YN,xlarr:KN,xlArr:ez,xmap:tz,xnis:uz,xodot:rz,Xopf:nz,xopf:sz,xoplus:iz,xotime:oz,xrarr:az,xrArr:cz,Xscr:lz,xscr:fz,xsqcup:dz,xuplus:hz,xutri:pz,xvee:bz,xwedge:mz,Yacute:gz,yacute:vz,YAcy:xz,yacy:yz,Ycirc:kz,ycirc:wz,Ycy:_z,ycy:Az,yen:Sz,Yfr:Ez,yfr:qz,YIcy:Cz,yicy:Tz,Yopf:Dz,yopf:Iz,Yscr:Nz,yscr:zz,YUcy:Rz,yucy:Lz,yuml:Mz,Yuml:Fz,Zacute:Bz,zacute:Pz,Zcaron:Oz,zcaron:Vz,Zcy:$z,zcy:Uz,Zdot:Gz,zdot:Hz,zeetrf:jz,ZeroWidthSpace:Zz,Zeta:Wz,zeta:Xz,zfr:Jz,Zfr:Qz,ZHcy:Yz,zhcy:Kz,zigrarr:eR,zopf:tR,Zopf:uR,Zscr:rR,zscr:nR,zwj:sR,zwnj:iR};var Mu=oR,st=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,$e={},Ct={};function aR(t){var e,u,n=Ct[t];if(n)return n;for(n=Ct[t]=[],e=0;e<128;e++)u=String.fromCharCode(e),/^[0-9a-z]$/i.test(u)?n.push(u):n.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e"u"&&(u=!0),o=aR(e),n=0,r=t.length;n=55296&&s<=57343){if(s>=55296&&s<=56319&&n+1=56320&&a<=57343)){i+=encodeURIComponent(t[n]+t[n+1]),n++;continue}i+="%EF%BF%BD";continue}i+=encodeURIComponent(t[n])}return i}m0.defaultChars=";/?:@&=+$,-_.!~*'()#";m0.componentChars="-_.!~*'()";var cR=m0,Tt={};function lR(t){var e,u,n=Tt[t];if(n)return n;for(n=Tt[t]=[],e=0;e<128;e++)u=String.fromCharCode(e),n.push(u);for(e=0;e=55296&&l<=57343?d+="���":d+=String.fromCharCode(l),r+=6;continue}if((a&248)===240&&r+91114111?d+="����":(l-=65536,d+=String.fromCharCode(55296+(l>>10),56320+(l&1023))),r+=9;continue}d+="�"}return d})}g0.defaultChars=";/?:@&=+$,#";g0.componentChars="";var fR=g0,dR=function(e){var u="";return u+=e.protocol||"",u+=e.slashes?"//":"",u+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?u+="["+e.hostname+"]":u+=e.hostname||"",u+=e.port?":"+e.port:"",u+=e.pathname||"",u+=e.search||"",u+=e.hash||"",u};function l0(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var hR=/^([a-z0-9.+-]+:)/i,pR=/:[0-9]*$/,bR=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,mR=["<",">",'"',"`"," ","\r",` `," "],gR=["{","}","|","\\","^","`"].concat(mR),vR=["'"].concat(gR),Dt=["%","/","?",";","#"].concat(vR),It=["/","?","#"],xR=255,Nt=/^[+a-z0-9A-Z_-]{0,63}$/,yR=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,zt={javascript:!0,"javascript:":!0},Rt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function kR(t,e){if(t&&t instanceof l0)return t;var u=new l0;return u.parse(t,e),u}l0.prototype.parse=function(t,e){var u,n,r,s,a,o=t;if(o=o.trim(),!e&&t.split("#").length===1){var i=bR.exec(o);if(i)return this.pathname=i[1],i[2]&&(this.search=i[2]),this}var c=hR.exec(o);if(c&&(c=c[0],r=c.toLowerCase(),this.protocol=c,o=o.substr(c.length)),(e||c||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=o.substr(0,2)==="//",a&&!(c&&zt[c])&&(o=o.substr(2),this.slashes=!0)),!zt[c]&&(a||c&&!Rt[c])){var l=-1;for(u=0;u127?v+="x":v+=b[g];if(!v.match(Nt)){var w=m.slice(0,u),A=m.slice(u+1),k=b.match(yR);k&&(w.push(k[1]),A.unshift(k[2])),A.length&&(o=A.join(".")+o),this.hostname=w.join(".");break}}}}this.hostname.length>xR&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var C=o.indexOf("#");C!==-1&&(this.hash=o.substr(C),o=o.slice(0,C));var T=o.indexOf("?");return T!==-1&&(this.search=o.substr(T),o=o.slice(0,T)),o&&(this.pathname=o),Rt[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};l0.prototype.parseHost=function(t){var e=pR.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var wR=kR;$e.encode=cR;$e.decode=fR;$e.format=dR;$e.parse=wR;var ke={},N0,Lt;function Fu(){return Lt||(Lt=1,N0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),N0}var z0,Mt;function Bu(){return Mt||(Mt=1,z0=/[\0-\x1F\x7F-\x9F]/),z0}var R0,Ft;function _R(){return Ft||(Ft=1,R0=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),R0}var L0,Bt;function Pu(){return Bt||(Bt=1,L0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),L0}var Pt;function AR(){return Pt||(Pt=1,ke.Any=Fu(),ke.Cc=Bu(),ke.Cf=_R(),ke.P=st,ke.Z=Pu()),ke}(function(t){function e(_){return Object.prototype.toString.call(_)}function u(_){return e(_)==="[object String]"}var n=Object.prototype.hasOwnProperty;function r(_,O){return n.call(_,O)}function s(_){var O=Array.prototype.slice.call(arguments,1);return O.forEach(function(z){if(z){if(typeof z!="object")throw new TypeError(z+"must be object");Object.keys(z).forEach(function(Q){_[Q]=z[Q]})}}),_}function a(_,O,z){return[].concat(_.slice(0,O),z,_.slice(O+1))}function o(_){return!(_>=55296&&_<=57343||_>=64976&&_<=65007||(_&65535)===65535||(_&65535)===65534||_>=0&&_<=8||_===11||_>=14&&_<=31||_>=127&&_<=159||_>1114111)}function i(_){if(_>65535){_-=65536;var O=55296+(_>>10),z=56320+(_&1023);return String.fromCharCode(O,z)}return String.fromCharCode(_)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(c.source+"|"+l.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,p=Mu;function f(_,O){var z=0;return r(p,O)?p[O]:O.charCodeAt(0)===35&&h.test(O)&&(z=O[1].toLowerCase()==="x"?parseInt(O.slice(2),16):parseInt(O.slice(1),10),o(z))?i(z):_}function m(_){return _.indexOf("\\")<0?_:_.replace(c,"$1")}function b(_){return _.indexOf("\\")<0&&_.indexOf("&")<0?_:_.replace(d,function(O,z,Q){return z||f(O,Q)})}var v=/[&<>"]/,g=/[&<>"]/g,y={"&":"&","<":"<",">":">",'"':"""};function w(_){return y[_]}function A(_){return v.test(_)?_.replace(g,w):_}var k=/[.?*+^$[\]\\(){}|-]/g;function C(_){return _.replace(k,"\\$&")}function T(_){switch(_){case 9:case 32:return!0}return!1}function R(_){if(_>=8192&&_<=8202)return!0;switch(_){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var D=st;function L(_){return D.test(_)}function ee(_){switch(_){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function $(_){return _=_.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(_=_.replace(/ẞ/g,"ß")),_.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=$e,t.lib.ucmicro=AR(),t.assign=s,t.isString=u,t.has=r,t.unescapeMd=m,t.unescapeAll=b,t.isValidEntityCode=o,t.fromCodePoint=i,t.escapeHtml=A,t.arrayReplaceAt=a,t.isSpace=T,t.isWhiteSpace=R,t.isMdAsciiPunct=ee,t.isPunctChar=L,t.escapeRE=C,t.normalizeReference=$})(B);var v0={},SR=function(e,u,n){var r,s,a,o,i=-1,c=e.posMax,l=e.pos;for(e.pos=u+1,r=1;e.pos32))return i;if(r===41){if(s===0)break;s--}u++}return o===u||s!==0||(i.str=Ot(e.slice(o,u)),i.lines=a,i.pos=u,i.ok=!0),i},qR=B.unescapeAll,CR=function(e,u,n){var r,s,a=0,o=u,i={ok:!1,pos:0,lines:0,str:""};if(u>=n||(s=e.charCodeAt(u),s!==34&&s!==39&&s!==40))return i;for(u++,s===40&&(s=41);u"+Ee(t[e].content)+""};fe.code_block=function(t,e,u,n,r){var s=t[e];return""+Ee(t[e].content)+` `};fe.fence=function(t,e,u,n,r){var s=t[e],a=s.info?DR(s.info).trim():"",o="",i="",c,l,d,h,p;return a&&(d=a.split(/(\s+)/g),o=d[0],i=d.slice(2).join("")),u.highlight?c=u.highlight(s.content,o,i)||Ee(s.content):c=Ee(s.content),c.indexOf("e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var s=(t,e,n)=>(q(t,typeof e!="symbol"?e+"":e,n),n);import{c4 as P,c5 as y,c6 as x,c7 as p,c8 as N,o as $,c as O,a as T}from"./index-f62f2ff2.js";function E(t,e){for(var n=-1,i=t.length;++n-1;);return n}var S=/^\s+/;function l(t,e,n){if(t=y(t),t&&(n||e===void 0))return t.replace(S,"");if(!t||!(e=x(e)))return t;var i=p(t),r=E(i,p(e));return N(i,r).join("")}class C{constructor(){s(this,"type","all");s(this,"value","")}parse(e){const n=e.indexOf(":");n===-1?this.type=e:(this.type=e.slice(0,n),this.value=e.slice(n+1))}getText(e,n,i){var c,f;let r="";switch(this.type){case"all":r=e("all_devices");break;case"mac":r=((c=n.find(u=>u.mac===this.value))==null?void 0:c.name)??this.value;break;case"iface":r=((f=i.find(u=>u.ifName==this.value))==null?void 0:f.name)??this.value;break}return r}toValue(){return this.type=="all"?this.type:`${this.type}:${this.value}`}}function h(t){return A(t)?!0:o(t)}function o(t){return/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/.test(t)}function A(t){return/^((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])(\.(?!$)|$)){4}$/.test(t)}function k(t){if(t.includes(":")){if(o(t))return!0;let e="",n="";if(t.includes("]:")&&t.startsWith("[")){const i=t.split("]:");e=l(i[0],"["),n=i[1]}else{const i=t.split(":");e=i[0],n=i[1]}return h(e)&&a(n)}return h(t)}function a(t){return t.includes(",")?t.split(",").every(d):d(t)}function d(t){if(/^[0-9]{1,5}|([0-9]{1,5}\\-[0-9]{1,5})$/.test(t))if(t.includes("-")){const e=t.split("-"),n=parseInt(e[0]),i=parseInt(e[1]);return n>=1&&n0&&i<65536}else{const e=parseInt(t);return e>=1&&e<=65535}return!1}function b(t){if(t.includes(":")){if(F(t))return!0;let e="",n="";if(t.includes("]:")&&t.startsWith("[")){const i=t.split("]:");e=l(i[0],"["),n=i[1]}else{const i=t.split(":");e=i[0],n=i[1]}return m(e)&&a(n)}return m(t)}function R(t){const e=t.split("/");if(e.length!==2)return!1;const n=parseInt(e[1]);return A(e[0])&&n>=0&&n<=32}function F(t){const e=t.split("/");if(e.length!==2)return!1;const n=parseInt(e[1]);return o(e[0])&&n>32&&n<=128}function m(t){return R(t)?!0:F(t)}function _(t,e){let n=t;return e&&(n=l(t,"*.")),/[a-z0-9]{2}/.test(n)?!0:new RegExp("^(?=.{1,253}\\.?$)(?:(?!-|[^.]+_)[A-Za-z0-9-_]{1,63}(?(t.IP="ip",t.NET="net",t.DNS="dns",t.REMOTE_PORT="remote_port",t.INTERNET="internet",t.INTERFACE="iface",t.LIST="list",t))(W||{});class j{constructor(){s(this,"type","dns");s(this,"value","")}parse(e){const n=e.indexOf(":");n===-1?this.type=e:(this.type=e.slice(0,n),this.value=e.slice(n+1))}static hasInput(e){return["ip","net","dns","remote_port"].includes(e)}static hint(e){switch(e){case"ip":return"10.10.10.2";case"net":return"10.10.10.0/24";case"dns":return"example.com";case"remote_port":return"1419"}return""}static isValid(e,n){switch(e){case"ip":return k(n);case"net":return b(n);case"dns":return g(n);case"remote_port":return a(n)}return!0}getText(e,n){var i;return this.type=="internet"?e("target_type.internet"):this.type=="iface"?this.value?((i=n.find(r=>r.ifName==this.value))==null?void 0:i.name)??this.value:e("all_local_networks"):this.type=="remote_port"?e("remote_port",{port:this.value}):this.value}toValue(){return!this.value||this.type==="internet"?this.type:`${this.type}:${this.value}`}}const B={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},M=T("path",{fill:"currentColor",d:"M12.025 16q-.6 0-1.012-.425t-.363-1q.075-1.05.5-1.825t1.35-1.6q1.025-.9 1.563-1.563t.537-1.512q0-1.025-.687-1.7T12 5.7q-.8 0-1.363.338t-.912.837q-.35.5-.862.675t-.988-.025q-.575-.25-.787-.825t.087-1.075Q7.9 4.5 9.125 3.75T12 3q2.625 0 4.038 1.462t1.412 3.513q0 1.25-.537 2.138t-1.688 2.012q-.85.8-1.2 1.3t-.475 1.15q-.1.625-.525 1.025t-1 .4ZM12 22q-.825 0-1.413-.588T10 20q0-.825.588-1.413T12 18q.825 0 1.413.588T14 20q0 .825-.588 1.413T12 22Z"},null,-1),V=[M];function Z(t,e){return $(),O("svg",B,V)}const v={name:"material-symbols-question-mark-rounded",render:Z};export{C as A,W as T,v as _,j as a}; +var I=Object.defineProperty;var q=(t,e,n)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var s=(t,e,n)=>(q(t,typeof e!="symbol"?e+"":e,n),n);import{c4 as P,c5 as y,c6 as x,c7 as p,c8 as N,o as $,c as O,a as T}from"./index-0c42270c.js";function E(t,e){for(var n=-1,i=t.length;++n-1;);return n}var S=/^\s+/;function l(t,e,n){if(t=y(t),t&&(n||e===void 0))return t.replace(S,"");if(!t||!(e=x(e)))return t;var i=p(t),r=E(i,p(e));return N(i,r).join("")}class C{constructor(){s(this,"type","all");s(this,"value","")}parse(e){const n=e.indexOf(":");n===-1?this.type=e:(this.type=e.slice(0,n),this.value=e.slice(n+1))}getText(e,n,i){var c,f;let r="";switch(this.type){case"all":r=e("all_devices");break;case"mac":r=((c=n.find(u=>u.mac===this.value))==null?void 0:c.name)??this.value;break;case"iface":r=((f=i.find(u=>u.ifName==this.value))==null?void 0:f.name)??this.value;break}return r}toValue(){return this.type=="all"?this.type:`${this.type}:${this.value}`}}function h(t){return A(t)?!0:o(t)}function o(t){return/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/.test(t)}function A(t){return/^((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])(\.(?!$)|$)){4}$/.test(t)}function k(t){if(t.includes(":")){if(o(t))return!0;let e="",n="";if(t.includes("]:")&&t.startsWith("[")){const i=t.split("]:");e=l(i[0],"["),n=i[1]}else{const i=t.split(":");e=i[0],n=i[1]}return h(e)&&a(n)}return h(t)}function a(t){return t.includes(",")?t.split(",").every(d):d(t)}function d(t){if(/^[0-9]{1,5}|([0-9]{1,5}\\-[0-9]{1,5})$/.test(t))if(t.includes("-")){const e=t.split("-"),n=parseInt(e[0]),i=parseInt(e[1]);return n>=1&&n0&&i<65536}else{const e=parseInt(t);return e>=1&&e<=65535}return!1}function b(t){if(t.includes(":")){if(F(t))return!0;let e="",n="";if(t.includes("]:")&&t.startsWith("[")){const i=t.split("]:");e=l(i[0],"["),n=i[1]}else{const i=t.split(":");e=i[0],n=i[1]}return m(e)&&a(n)}return m(t)}function R(t){const e=t.split("/");if(e.length!==2)return!1;const n=parseInt(e[1]);return A(e[0])&&n>=0&&n<=32}function F(t){const e=t.split("/");if(e.length!==2)return!1;const n=parseInt(e[1]);return o(e[0])&&n>32&&n<=128}function m(t){return R(t)?!0:F(t)}function _(t,e){let n=t;return e&&(n=l(t,"*.")),/[a-z0-9]{2}/.test(n)?!0:new RegExp("^(?=.{1,253}\\.?$)(?:(?!-|[^.]+_)[A-Za-z0-9-_]{1,63}(?(t.IP="ip",t.NET="net",t.DNS="dns",t.REMOTE_PORT="remote_port",t.INTERNET="internet",t.INTERFACE="iface",t.LIST="list",t))(W||{});class j{constructor(){s(this,"type","dns");s(this,"value","")}parse(e){const n=e.indexOf(":");n===-1?this.type=e:(this.type=e.slice(0,n),this.value=e.slice(n+1))}static hasInput(e){return["ip","net","dns","remote_port"].includes(e)}static hint(e){switch(e){case"ip":return"10.10.10.2";case"net":return"10.10.10.0/24";case"dns":return"example.com";case"remote_port":return"1419"}return""}static isValid(e,n){switch(e){case"ip":return k(n);case"net":return b(n);case"dns":return g(n);case"remote_port":return a(n)}return!0}getText(e,n){var i;return this.type=="internet"?e("target_type.internet"):this.type=="iface"?this.value?((i=n.find(r=>r.ifName==this.value))==null?void 0:i.name)??this.value:e("all_local_networks"):this.type=="remote_port"?e("remote_port",{port:this.value}):this.value}toValue(){return!this.value||this.type==="internet"?this.type:`${this.type}:${this.value}`}}const B={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},M=T("path",{fill:"currentColor",d:"M12.025 16q-.6 0-1.012-.425t-.363-1q.075-1.05.5-1.825t1.35-1.6q1.025-.9 1.563-1.563t.537-1.512q0-1.025-.687-1.7T12 5.7q-.8 0-1.363.338t-.912.837q-.35.5-.862.675t-.988-.025q-.575-.25-.787-.825t.087-1.075Q7.9 4.5 9.125 3.75T12 3q2.625 0 4.038 1.462t1.412 3.513q0 1.25-.537 2.138t-1.688 2.012q-.85.8-1.2 1.3t-.475 1.15q-.1.625-.525 1.025t-1 .4ZM12 22q-.825 0-1.413-.588T10 20q0-.825.588-1.413T12 18q.825 0 1.413.588T14 20q0 .825-.588 1.413T12 22Z"},null,-1),V=[M];function Z(t,e){return $(),O("svg",B,V)}const v={name:"material-symbols-question-mark-rounded",render:Z};export{C as A,W as T,v as _,j as a}; diff --git a/app/src/main/resources/web/assets/razor-661cced5.js b/app/src/main/resources/web/assets/razor-bd70880a.js similarity index 99% rename from app/src/main/resources/web/assets/razor-661cced5.js rename to app/src/main/resources/web/assets/razor-bd70880a.js index 20937f46..e9d56384 100644 --- a/app/src/main/resources/web/assets/razor-661cced5.js +++ b/app/src/main/resources/web/assets/razor-bd70880a.js @@ -1,4 +1,4 @@ -import{m as s}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import"./index-f62f2ff2.js";/*!----------------------------------------------------------------------------- +import{m as s}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import"./index-0c42270c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license diff --git a/app/src/main/resources/web/assets/refresh-rounded-0b456afc.js b/app/src/main/resources/web/assets/refresh-rounded-aea8467d.js similarity index 90% rename from app/src/main/resources/web/assets/refresh-rounded-0b456afc.js rename to app/src/main/resources/web/assets/refresh-rounded-aea8467d.js index 7eae7513..f4f316ca 100644 --- a/app/src/main/resources/web/assets/refresh-rounded-0b456afc.js +++ b/app/src/main/resources/web/assets/refresh-rounded-aea8467d.js @@ -1 +1 @@ -import{o as e,c as t,a as o}from"./index-f62f2ff2.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.713T19 4q.425 0 .713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.713-.288T13 10q0-.425.288-.713T14 9h3.2q-.8-1.4-2.188-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.725 0 3.188-.913t2.187-2.437q.125-.275.413-.463t.587-.187q.575 0 .863.4t.062.9q-.95 2.125-2.925 3.413T12 20Z"},null,-1),r=[s];function c(q,a){return e(),t("svg",n,r)}const T={name:"material-symbols-refresh-rounded",render:c};export{T as _}; +import{o as e,c as t,a as o}from"./index-0c42270c.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.713T19 4q.425 0 .713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.713-.288T13 10q0-.425.288-.713T14 9h3.2q-.8-1.4-2.188-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.725 0 3.188-.913t2.187-2.437q.125-.275.413-.463t.587-.187q.575 0 .863.4t.062.9q-.95 2.125-2.925 3.413T12 20Z"},null,-1),r=[s];function c(q,a){return e(),t("svg",n,r)}const T={name:"material-symbols-refresh-rounded",render:c};export{T as _}; diff --git a/app/src/main/resources/web/assets/splitpanes.es-2b477659.js b/app/src/main/resources/web/assets/splitpanes.es-7e8a6fea.js similarity index 99% rename from app/src/main/resources/web/assets/splitpanes.es-2b477659.js rename to app/src/main/resources/web/assets/splitpanes.es-7e8a6fea.js index 55b9868f..f56aa845 100644 --- a/app/src/main/resources/web/assets/splitpanes.es-2b477659.js +++ b/app/src/main/resources/web/assets/splitpanes.es-7e8a6fea.js @@ -1 +1 @@ -import{br as m,o as u,c,bO as z,bP as x}from"./index-f62f2ff2.js";const M={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,i)=>(e[i.id]=i)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,i){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=i},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,i){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===i?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,i),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=i,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[i])},onSplitterDblClick(e,i){let n=0;this.panes=this.panes.map((t,s)=>(t.size=s===i?t.max:t.min,s!==i&&(n+=t.min),t)),this.panes[i].size-=n,this.$emit("pane-maximize",this.panes[i]),this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},onPaneClick(e,i){this.$emit("pane-click",this.indexedPanes[i])},getCurrentMouseDrag(e){const i=this.container.getBoundingClientRect(),{clientX:n,clientY:t}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-i.left,y:t-i.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const i=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=i-e),e*100/i},calculatePanesSize(e){const i=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(i),nextPanesSize:this.sumNextPanesSize(i),prevReachedMinPanes:0,nextReachedMinPanes:0};const t=0+(this.pushOtherPanes?0:n.prevPanesSize),s=100-(this.pushOtherPanes?0:n.nextPanesSize),a=Math.max(Math.min(this.getCurrentDragPercentage(e),s),t);let o=[i,i+1],h=this.panes[o[0]]||null,r=this.panes[o[1]]||null;const p=h.max<100&&a>=h.max+n.prevPanesSize,d=r.max<100&&a<=100-(r.max+this.sumNextPanesSize(i+1));if(p||d){p?(h.size=h.max,r.size=Math.max(100-h.max-n.prevPanesSize-n.nextPanesSize,0)):(h.size=Math.max(100-r.max-n.prevPanesSize-this.sumNextPanesSize(i+1),0),r.size=r.max);return}if(this.pushOtherPanes){const l=this.doPushOtherPanes(n,a);if(!l)return;({sums:n,panesToResize:o}=l),h=this.panes[o[0]]||null,r=this.panes[o[1]]||null}h!==null&&(h.size=Math.min(Math.max(a-n.prevPanesSize-n.prevReachedMinPanes,h.min),h.max)),r!==null&&(r.size=Math.min(Math.max(100-a-n.nextPanesSize-n.nextReachedMinPanes,r.min),r.max))},doPushOtherPanes(e,i){const n=this.touch.activeSplitter,t=[n,n+1];return i{a>t[0]&&a<=n&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(t[0]),t[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,a)=>{a>0&&a<=n&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[t[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):i>100-e.nextPanesSize-this.panes[t[1]].min&&(t[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,t[1]>n+1&&this.panes.forEach((s,a)=>{a>n&&a{a=n+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[t[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:t}},sumPrevPanesSize(e){return this.panes.reduce((i,n,t)=>i+(ti+(t>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(i=>i.indexi.min)||{}},findNextExpandedPane(e){return this.panes.find(i=>i.index>e+1&&i.size>i.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const i=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!i&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(e,i,n=!1){const t=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),n||(s.onmousedown=a=>this.onMouseDown(a,t),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=a=>this.onMouseDown(a,t)),s.onclick=a=>this.onSplitterClick(a,t+1)),this.dblClickSplitter&&(s.ondblclick=a=>this.onSplitterDblClick(a,t+1)),i.parentNode.insertBefore(s,i)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let i=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!i&&this.firstSplitter?this.addSplitter(i,n,!0):i&&this.addSplitter(i,n),i++)})},requestUpdate({target:e,...i}){const n=this.indexedPanes[e._.uid];Object.entries(i).forEach(([t,s])=>n[t]=s)},onPaneAdd(e){let i=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&i++,s===e.$el));const n=parseFloat(e.minSize),t=parseFloat(e.maxSize);this.panes.splice(i,0,{id:e._.uid,index:i,min:isNaN(n)?0:n,max:isNaN(t)?100:t,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,a)=>s.index=a),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[i]}),this.$emit("pane-add",{index:i,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const i=this.panes.findIndex(t=>t.id===e._.uid),n=this.panes.splice(i,1)[0];this.panes.forEach((t,s)=>t.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:i}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(i=>i.givenSize!==null||i.min||i.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(i=>({min:i.min,max:i.max,size:i.size})))},equalize(){const e=100/this.panesCount;let i=0;const n=[],t=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),i-=s.size,s.size>=s.max&&n.push(s.id),s.size<=s.min&&t.push(s.id)}),i>.1&&this.readjustSizes(i,n,t)},initialPanesSizing(){let e=100;const i=[],n=[];let t=0;this.panes.forEach(a=>{e-=a.size,a.size!==null&&t++,a.size>=a.max&&i.push(a.id),a.size<=a.min&&n.push(a.id)});let s=100;e>.1&&(this.panes.forEach(a=>{a.size===null&&(a.size=Math.max(Math.min(e/(this.panesCount-t),a.max),a.min)),s-=a.size}),s>.1&&this.readjustSizes(e,i,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:i}={}){let n=100/this.panesCount,t=0;const s=[],a=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{t-=o.size,o.size>=o.max&&s.push(o.id),o.size<=o.min&&a.push(o.id)}),!(Math.abs(t)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),t-=o.size,o.size>=o.max&&s.push(o.id),o.size<=o.min&&a.push(o.id)}),t>.1&&this.readjustSizes(t,s,a))},readjustSizes(e,i,n){let t;e>0?t=e/(this.panesCount-i.length):t=e/(this.panesCount-n.length),this.panes.forEach((s,a)=>{if(e>0&&!i.includes(s.id)){const o=Math.max(Math.min(s.size+t,s.max),s.min),h=o-s.size;e-=h,s.size=o}else if(!n.includes(s.id)){const o=Math.max(Math.min(s.size+t,s.max),s.min),h=o-s.size;e-=h,s.size=o}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((i,n)=>{i.ondblclick=e?t=>this.onSplitterDblClick(t,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return m("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},P=(e,i)=>{const n=e.__vccOpts||e;for(const[t,s]of i)n[t]=s;return n},v={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function S(e,i,n,t,s,a){return u(),c("div",{class:"splitpanes__pane",onClick:i[0]||(i[0]=o=>a.onPaneClick(o,e._.uid)),style:x(e.style)},[z(e.$slots,"default")],4)}const g=P(v,[["render",S]]);export{M,g}; +import{br as m,o as u,c,bO as z,bP as x}from"./index-0c42270c.js";const M={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,i)=>(e[i.id]=i)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,i){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=i},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,i){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===i?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,i),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=i,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[i])},onSplitterDblClick(e,i){let n=0;this.panes=this.panes.map((t,s)=>(t.size=s===i?t.max:t.min,s!==i&&(n+=t.min),t)),this.panes[i].size-=n,this.$emit("pane-maximize",this.panes[i]),this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},onPaneClick(e,i){this.$emit("pane-click",this.indexedPanes[i])},getCurrentMouseDrag(e){const i=this.container.getBoundingClientRect(),{clientX:n,clientY:t}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-i.left,y:t-i.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const i=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=i-e),e*100/i},calculatePanesSize(e){const i=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(i),nextPanesSize:this.sumNextPanesSize(i),prevReachedMinPanes:0,nextReachedMinPanes:0};const t=0+(this.pushOtherPanes?0:n.prevPanesSize),s=100-(this.pushOtherPanes?0:n.nextPanesSize),a=Math.max(Math.min(this.getCurrentDragPercentage(e),s),t);let o=[i,i+1],h=this.panes[o[0]]||null,r=this.panes[o[1]]||null;const p=h.max<100&&a>=h.max+n.prevPanesSize,d=r.max<100&&a<=100-(r.max+this.sumNextPanesSize(i+1));if(p||d){p?(h.size=h.max,r.size=Math.max(100-h.max-n.prevPanesSize-n.nextPanesSize,0)):(h.size=Math.max(100-r.max-n.prevPanesSize-this.sumNextPanesSize(i+1),0),r.size=r.max);return}if(this.pushOtherPanes){const l=this.doPushOtherPanes(n,a);if(!l)return;({sums:n,panesToResize:o}=l),h=this.panes[o[0]]||null,r=this.panes[o[1]]||null}h!==null&&(h.size=Math.min(Math.max(a-n.prevPanesSize-n.prevReachedMinPanes,h.min),h.max)),r!==null&&(r.size=Math.min(Math.max(100-a-n.nextPanesSize-n.nextReachedMinPanes,r.min),r.max))},doPushOtherPanes(e,i){const n=this.touch.activeSplitter,t=[n,n+1];return i{a>t[0]&&a<=n&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(t[0]),t[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,a)=>{a>0&&a<=n&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[t[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):i>100-e.nextPanesSize-this.panes[t[1]].min&&(t[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,t[1]>n+1&&this.panes.forEach((s,a)=>{a>n&&a{a=n+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[t[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:t}},sumPrevPanesSize(e){return this.panes.reduce((i,n,t)=>i+(ti+(t>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(i=>i.indexi.min)||{}},findNextExpandedPane(e){return this.panes.find(i=>i.index>e+1&&i.size>i.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const i=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!i&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(e,i,n=!1){const t=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),n||(s.onmousedown=a=>this.onMouseDown(a,t),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=a=>this.onMouseDown(a,t)),s.onclick=a=>this.onSplitterClick(a,t+1)),this.dblClickSplitter&&(s.ondblclick=a=>this.onSplitterDblClick(a,t+1)),i.parentNode.insertBefore(s,i)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let i=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!i&&this.firstSplitter?this.addSplitter(i,n,!0):i&&this.addSplitter(i,n),i++)})},requestUpdate({target:e,...i}){const n=this.indexedPanes[e._.uid];Object.entries(i).forEach(([t,s])=>n[t]=s)},onPaneAdd(e){let i=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&i++,s===e.$el));const n=parseFloat(e.minSize),t=parseFloat(e.maxSize);this.panes.splice(i,0,{id:e._.uid,index:i,min:isNaN(n)?0:n,max:isNaN(t)?100:t,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,a)=>s.index=a),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[i]}),this.$emit("pane-add",{index:i,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const i=this.panes.findIndex(t=>t.id===e._.uid),n=this.panes.splice(i,1)[0];this.panes.forEach((t,s)=>t.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:i}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(i=>i.givenSize!==null||i.min||i.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(i=>({min:i.min,max:i.max,size:i.size})))},equalize(){const e=100/this.panesCount;let i=0;const n=[],t=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),i-=s.size,s.size>=s.max&&n.push(s.id),s.size<=s.min&&t.push(s.id)}),i>.1&&this.readjustSizes(i,n,t)},initialPanesSizing(){let e=100;const i=[],n=[];let t=0;this.panes.forEach(a=>{e-=a.size,a.size!==null&&t++,a.size>=a.max&&i.push(a.id),a.size<=a.min&&n.push(a.id)});let s=100;e>.1&&(this.panes.forEach(a=>{a.size===null&&(a.size=Math.max(Math.min(e/(this.panesCount-t),a.max),a.min)),s-=a.size}),s>.1&&this.readjustSizes(e,i,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:i}={}){let n=100/this.panesCount,t=0;const s=[],a=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{t-=o.size,o.size>=o.max&&s.push(o.id),o.size<=o.min&&a.push(o.id)}),!(Math.abs(t)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),t-=o.size,o.size>=o.max&&s.push(o.id),o.size<=o.min&&a.push(o.id)}),t>.1&&this.readjustSizes(t,s,a))},readjustSizes(e,i,n){let t;e>0?t=e/(this.panesCount-i.length):t=e/(this.panesCount-n.length),this.panes.forEach((s,a)=>{if(e>0&&!i.includes(s.id)){const o=Math.max(Math.min(s.size+t,s.max),s.min),h=o-s.size;e-=h,s.size=o}else if(!n.includes(s.id)){const o=Math.max(Math.min(s.size+t,s.max),s.min),h=o-s.size;e-=h,s.size=o}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((i,n)=>{i.ondblclick=e?t=>this.onSplitterDblClick(t,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return m("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},P=(e,i)=>{const n=e.__vccOpts||e;for(const[t,s]of i)n[t]=s;return n},v={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function S(e,i,n,t,s,a){return u(),c("div",{class:"splitpanes__pane",onClick:i[0]||(i[0]=o=>a.onPaneClick(o,e._.uid)),style:x(e.style)},[z(e.$slots,"default")],4)}const g=P(v,[["render",S]]);export{M,g}; diff --git a/app/src/main/resources/web/assets/tags-06583423.js b/app/src/main/resources/web/assets/tags-bf0f6db9.js similarity index 96% rename from app/src/main/resources/web/assets/tags-06583423.js rename to app/src/main/resources/web/assets/tags-bf0f6db9.js index 80d4b351..248a7d86 100644 --- a/app/src/main/resources/web/assets/tags-06583423.js +++ b/app/src/main/resources/web/assets/tags-bf0f6db9.js @@ -1 +1 @@ -import{o as y,c as T,a as s,d as w,r as L,bS as B,i as $,bT as D,bU as Q,t as h,p as M,F as Z,J as x,j as l,m as E,aV as G,ao as k,P as A,a0 as H,a4 as j,_ as J,u as C,x as F,a2 as N,g as P,ag as R,bJ as U,aS as z}from"./index-f62f2ff2.js";import{u as K,a as O}from"./vee-validate.esm-65abdaa1.js";const W={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},X=s("path",{fill:"currentColor",d:"M18.45 15.6L17 14.15L18.55 12L15 7H9.85l-2-2H15q.5 0 .925.213t.725.637l3.525 5q.35.525.35 1.15t-.35 1.15L18.45 15.6ZM5 19q-.825 0-1.413-.588T3 17V7q0-.275.063-.5t.187-.45L2.1 4.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l17 17q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275l-3.15-3.15q-.225.125-.45.188T15 19H5Zm4.575-6.6Zm3.85-1.825ZM14.2 17L5 7.8V17h9.2Z"},null,-1),Y=[X];function ee(_,a){return y(),T("svg",W,Y)}const te={name:"material-symbols-label-off-outline-rounded",render:ee},ae={slot:"headline"},se={slot:"content"},oe=["label","selected"],ne=["label","selected"],le=["label","selected","onClick"],de={slot:"actions"},ie=["disabled"],ue=w({__name:"AddToTagsModal",props:{type:{type:String,required:!0},tags:{type:Array,default:()=>[]},query:{type:String,required:!0}},setup(_){const a=_,{handleSubmit:d}=K(),i=L("add_to_tags");function g(e){const{button:r}=e.detail,q=r.dataset.value;i.value=q}const{value:o,errorMessage:n}=O("selectedTags",B().test("required",()=>"valid.required",e=>e.length),{initialValue:[]}),{mutate:m,loading:u,onDone:p}=$({document:D,appApi:!0}),{mutate:f,loading:t,onDone:v}=$({document:Q,appApi:!0}),b=()=>{A.emit("items_tags_updated",{type:a.type}),A.emit("refetch_tags",a.type),k()};v(b),p(b);function I(e){o.value.includes(e)?H(o.value,r=>r.id===e.id):o.value.push(e)}const S=d(()=>{i.value==="add_to_tags"?f({type:a.type,tagIds:o.value.map(e=>e.id),query:a.query}):m({type:a.type,tagIds:o.value.map(e=>e.id),query:a.query})});return(e,r)=>{const q=j,V=te;return y(),T("md-dialog",null,[s("div",ae,h(e.$t("tags")),1),s("div",se,[s("md-outlined-segmented-button-set",{onSegmentedButtonSetSelection:g},[s("md-outlined-segmented-button",{label:e.$t("add_to_tags"),selected:i.value==="add_to_tags"},[M(q,{slot:"icon"})],8,oe),s("md-outlined-segmented-button",{label:e.$t("remove_from_tags"),selected:i.value==="remove_from_tags"},[M(V,{slot:"icon"})],8,ne)],32),s("md-chip-set",null,[(y(!0),T(Z,null,x(_.tags,c=>(y(),T("md-filter-chip",{key:c.id,label:c.name,selected:l(o).includes(c),onClick:ce=>I(c)},null,8,le))),128))]),E(s("div",{class:"invalid-feedback"},h(l(n)?e.$t(l(n)):""),513),[[G,l(n)]])]),s("div",de,[s("md-outlined-button",{value:"cancel",onClick:r[0]||(r[0]=(...c)=>l(k)&&l(k)(...c))},h(e.$t("cancel")),1),s("md-filled-button",{value:"save",disabled:l(t)||l(u),onClick:r[1]||(r[1]=(...c)=>l(S)&&l(S)(...c)),autofocus:""},h(e.$t("save")),9,ie)])])}}});const re=J(ue,[["__scopeId","data-v-ce8a2639"]]),ge=(_,a,d)=>{const{t:i}=C();return{addToTags:(g,o)=>{let n=o;if(!g){const m=a.value.filter(u=>u.checked);if(m.length===0){F(i("select_first"),"error");return}n=`ids:${m.map(u=>u.id).join(",")}`}N(re,{type:_,tags:d.value,query:n})}}},pe=(_,a,d,i)=>{const g=L([]),{t:o}=C();return P({handle:async(n,m)=>{if(m)F(o(m),"error");else if(n){g.value=n.tags;const u=R(a.value);d.tags=[];const p=[];u.forEach(t=>{if(t.name==="text")d.text=t.value;else if(t.name==="tag"){const v=n.tags.find(b=>U(b.name)===t.value);v?(d.tags.push(v),p.push(v.id)):p.push("invalid")}else t.name==="bucket_id"&&(d.bucketId=t.value)});const f=[...u].filter(t=>t.name!=="tag");p.forEach(t=>{f.push({name:"tag_id",op:"",value:t})}),i(f)}},document:z,variables:{type:_},appApi:!0}),{tags:g}};export{ge as a,pe as u}; +import{o as y,c as T,a as s,d as w,r as L,bS as B,i as $,bT as D,bU as Q,t as h,p as M,F as Z,J as x,j as l,m as E,aV as G,ao as k,P as A,a0 as H,a4 as j,_ as J,u as C,x as F,a2 as N,g as P,ag as R,bJ as U,aS as z}from"./index-0c42270c.js";import{u as K,a as O}from"./vee-validate.esm-ca78f26f.js";const W={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},X=s("path",{fill:"currentColor",d:"M18.45 15.6L17 14.15L18.55 12L15 7H9.85l-2-2H15q.5 0 .925.213t.725.637l3.525 5q.35.525.35 1.15t-.35 1.15L18.45 15.6ZM5 19q-.825 0-1.413-.588T3 17V7q0-.275.063-.5t.187-.45L2.1 4.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l17 17q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275l-3.15-3.15q-.225.125-.45.188T15 19H5Zm4.575-6.6Zm3.85-1.825ZM14.2 17L5 7.8V17h9.2Z"},null,-1),Y=[X];function ee(_,a){return y(),T("svg",W,Y)}const te={name:"material-symbols-label-off-outline-rounded",render:ee},ae={slot:"headline"},se={slot:"content"},oe=["label","selected"],ne=["label","selected"],le=["label","selected","onClick"],de={slot:"actions"},ie=["disabled"],ue=w({__name:"AddToTagsModal",props:{type:{type:String,required:!0},tags:{type:Array,default:()=>[]},query:{type:String,required:!0}},setup(_){const a=_,{handleSubmit:d}=K(),i=L("add_to_tags");function g(e){const{button:r}=e.detail,q=r.dataset.value;i.value=q}const{value:o,errorMessage:n}=O("selectedTags",B().test("required",()=>"valid.required",e=>e.length),{initialValue:[]}),{mutate:m,loading:u,onDone:p}=$({document:D,appApi:!0}),{mutate:f,loading:t,onDone:v}=$({document:Q,appApi:!0}),b=()=>{A.emit("items_tags_updated",{type:a.type}),A.emit("refetch_tags",a.type),k()};v(b),p(b);function I(e){o.value.includes(e)?H(o.value,r=>r.id===e.id):o.value.push(e)}const S=d(()=>{i.value==="add_to_tags"?f({type:a.type,tagIds:o.value.map(e=>e.id),query:a.query}):m({type:a.type,tagIds:o.value.map(e=>e.id),query:a.query})});return(e,r)=>{const q=j,V=te;return y(),T("md-dialog",null,[s("div",ae,h(e.$t("tags")),1),s("div",se,[s("md-outlined-segmented-button-set",{onSegmentedButtonSetSelection:g},[s("md-outlined-segmented-button",{label:e.$t("add_to_tags"),selected:i.value==="add_to_tags"},[M(q,{slot:"icon"})],8,oe),s("md-outlined-segmented-button",{label:e.$t("remove_from_tags"),selected:i.value==="remove_from_tags"},[M(V,{slot:"icon"})],8,ne)],32),s("md-chip-set",null,[(y(!0),T(Z,null,x(_.tags,c=>(y(),T("md-filter-chip",{key:c.id,label:c.name,selected:l(o).includes(c),onClick:ce=>I(c)},null,8,le))),128))]),E(s("div",{class:"invalid-feedback"},h(l(n)?e.$t(l(n)):""),513),[[G,l(n)]])]),s("div",de,[s("md-outlined-button",{value:"cancel",onClick:r[0]||(r[0]=(...c)=>l(k)&&l(k)(...c))},h(e.$t("cancel")),1),s("md-filled-button",{value:"save",disabled:l(t)||l(u),onClick:r[1]||(r[1]=(...c)=>l(S)&&l(S)(...c)),autofocus:""},h(e.$t("save")),9,ie)])])}}});const re=J(ue,[["__scopeId","data-v-ce8a2639"]]),ge=(_,a,d)=>{const{t:i}=C();return{addToTags:(g,o)=>{let n=o;if(!g){const m=a.value.filter(u=>u.checked);if(m.length===0){F(i("select_first"),"error");return}n=`ids:${m.map(u=>u.id).join(",")}`}N(re,{type:_,tags:d.value,query:n})}}},pe=(_,a,d,i)=>{const g=L([]),{t:o}=C();return P({handle:async(n,m)=>{if(m)F(o(m),"error");else if(n){g.value=n.tags;const u=R(a.value);d.tags=[];const p=[];u.forEach(t=>{if(t.name==="text")d.text=t.value;else if(t.name==="tag"){const v=n.tags.find(b=>U(b.name)===t.value);v?(d.tags.push(v),p.push(v.id)):p.push("invalid")}else t.name==="bucket_id"&&(d.bucketId=t.value)});const f=[...u].filter(t=>t.name!=="tag");p.forEach(t=>{f.push({name:"tag_id",op:"",value:t})}),i(f)}},document:z,variables:{type:_},appApi:!0}),{tags:g}};export{ge as a,pe as u}; diff --git a/app/src/main/resources/web/assets/tsMode-6ec55749.js b/app/src/main/resources/web/assets/tsMode-c7f68c5d.js similarity index 99% rename from app/src/main/resources/web/assets/tsMode-6ec55749.js rename to app/src/main/resources/web/assets/tsMode-c7f68c5d.js index 02da6f7d..674ce6f1 100644 --- a/app/src/main/resources/web/assets/tsMode-6ec55749.js +++ b/app/src/main/resources/web/assets/tsMode-c7f68c5d.js @@ -1,4 +1,4 @@ -var M=Object.defineProperty;var K=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(K(e,typeof t!="symbol"?t+"":t,r),r);import{t as R,m as E}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import"./index-f62f2ff2.js";/*!----------------------------------------------------------------------------- +var M=Object.defineProperty;var K=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(K(e,typeof t!="symbol"?t+"":t,r),r);import{t as R,m as E}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import"./index-0c42270c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license diff --git a/app/src/main/resources/web/assets/typescript-7530e583.js b/app/src/main/resources/web/assets/typescript-370a81a5.js similarity index 98% rename from app/src/main/resources/web/assets/typescript-7530e583.js rename to app/src/main/resources/web/assets/typescript-370a81a5.js index ea016575..f94d1785 100644 --- a/app/src/main/resources/web/assets/typescript-7530e583.js +++ b/app/src/main/resources/web/assets/typescript-370a81a5.js @@ -1,4 +1,4 @@ -import{m as a}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import"./index-f62f2ff2.js";/*!----------------------------------------------------------------------------- +import{m as a}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import"./index-0c42270c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license diff --git a/app/src/main/resources/web/assets/upload-rounded-886d7dcb.js b/app/src/main/resources/web/assets/upload-rounded-8f0af5aa.js similarity index 90% rename from app/src/main/resources/web/assets/upload-rounded-886d7dcb.js rename to app/src/main/resources/web/assets/upload-rounded-8f0af5aa.js index 6b6fc6db..16e2230c 100644 --- a/app/src/main/resources/web/assets/upload-rounded-886d7dcb.js +++ b/app/src/main/resources/web/assets/upload-rounded-8f0af5aa.js @@ -1 +1 @@ -import{o as e,c as o,a as t}from"./index-f62f2ff2.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=t("path",{fill:"currentColor",d:"M12 16q-.425 0-.713-.288T11 15V7.85L9.125 9.725q-.3.3-.7.3T7.7 9.7q-.3-.3-.287-.712T7.7 8.3l3.6-3.6q.15-.15.325-.212T12 4.425q.2 0 .375.063t.325.212l3.6 3.6q.3.3.288.713T16.3 9.7q-.3.3-.713.313t-.712-.288L13 7.85V15q0 .425-.288.713T12 16Zm-6 4q-.825 0-1.413-.588T4 18v-2q0-.425.288-.713T5 15q.425 0 .713.288T6 16v2h12v-2q0-.425.288-.713T19 15q.425 0 .713.288T20 16v2q0 .825-.588 1.413T18 20H6Z"},null,-1),c=[s];function a(l,q){return e(),o("svg",n,c)}const _={name:"material-symbols-upload-rounded",render:a};export{_}; +import{o as e,c as o,a as t}from"./index-0c42270c.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=t("path",{fill:"currentColor",d:"M12 16q-.425 0-.713-.288T11 15V7.85L9.125 9.725q-.3.3-.7.3T7.7 9.7q-.3-.3-.287-.712T7.7 8.3l3.6-3.6q.15-.15.325-.212T12 4.425q.2 0 .375.063t.325.212l3.6 3.6q.3.3.288.713T16.3 9.7q-.3.3-.713.313t-.712-.288L13 7.85V15q0 .425-.288.713T12 16Zm-6 4q-.825 0-1.413-.588T4 18v-2q0-.425.288-.713T5 15q.425 0 .713.288T6 16v2h12v-2q0-.425.288-.713T19 15q.425 0 .713.288T20 16v2q0 .825-.588 1.413T18 20H6Z"},null,-1),c=[s];function a(l,q){return e(),o("svg",n,c)}const _={name:"material-symbols-upload-rounded",render:a};export{_}; diff --git a/app/src/main/resources/web/assets/vee-validate.esm-65abdaa1.js b/app/src/main/resources/web/assets/vee-validate.esm-ca78f26f.js similarity index 99% rename from app/src/main/resources/web/assets/vee-validate.esm-65abdaa1.js rename to app/src/main/resources/web/assets/vee-validate.esm-ca78f26f.js index 5b9d55f1..e352d74c 100644 --- a/app/src/main/resources/web/assets/vee-validate.esm-65abdaa1.js +++ b/app/src/main/resources/web/assets/vee-validate.esm-ca78f26f.js @@ -1,4 +1,4 @@ -import{aC as C,O as rn,bB as ln,n as Ve,j as E,w as Z,bC as En,bD as I,r as G,K as Ee,U as ae,bE as jn,bF as wn,bG as Pn,bH as Fe,bI as Fn}from"./index-f62f2ff2.js";/** +import{aC as C,O as rn,bB as ln,n as Ve,j as E,w as Z,bC as En,bD as I,r as G,K as Ee,U as ae,bE as jn,bF as wn,bG as Pn,bH as Fe,bI as Fn}from"./index-0c42270c.js";/** * vee-validate v4.11.6 * (c) 2023 Abdelrahman Awad * @license MIT diff --git a/app/src/main/resources/web/assets/xml-96a70602.js b/app/src/main/resources/web/assets/xml-47940d0e.js similarity index 95% rename from app/src/main/resources/web/assets/xml-96a70602.js rename to app/src/main/resources/web/assets/xml-47940d0e.js index a92d191e..2296e622 100644 --- a/app/src/main/resources/web/assets/xml-96a70602.js +++ b/app/src/main/resources/web/assets/xml-47940d0e.js @@ -1,4 +1,4 @@ -import{m}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import"./index-f62f2ff2.js";/*!----------------------------------------------------------------------------- +import{m}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import"./index-0c42270c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license diff --git a/app/src/main/resources/web/assets/yaml-3cdfc2dc.js b/app/src/main/resources/web/assets/yaml-de1626dc.js similarity index 98% rename from app/src/main/resources/web/assets/yaml-3cdfc2dc.js rename to app/src/main/resources/web/assets/yaml-de1626dc.js index 730096fa..a8329032 100644 --- a/app/src/main/resources/web/assets/yaml-3cdfc2dc.js +++ b/app/src/main/resources/web/assets/yaml-de1626dc.js @@ -1,4 +1,4 @@ -import{m as i}from"./MonacoEditor.vuevuetypescriptsetuptruelang-87724a30.js";import"./index-f62f2ff2.js";/*!----------------------------------------------------------------------------- +import{m as i}from"./MonacoEditor.vuevuetypescriptsetuptruelang-aab104b3.js";import"./index-0c42270c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.35.0(71ac097e6155a405f6be52b0b368a04508c31e31) * Released under the MIT license diff --git a/app/src/main/resources/web/index.html b/app/src/main/resources/web/index.html index 21dbc56b..85a9d9e5 100644 --- a/app/src/main/resources/web/index.html +++ b/app/src/main/resources/web/index.html @@ -7,13 +7,22 @@ PlainApp - + +
Your browser is not supported or up-to-date. Please try updating it.
- + \ No newline at end of file