Files
yakpanel-core/YakPanel/static/vite/js/index-9jkqp4z-.js
2026-04-07 02:04:22 +05:30

3 lines
1004 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/unsubscribe-DVRoLsiA.js?v=1773287522785","js/index-BTglIPU2.js?v=1773287522785","js/vue-core-DJjvd5ZC.js?v=1773287522785","js/prismjs-BZPoR7_J.js?v=1773287522785","css/prismjs-D-3FhBe_.css?v=1773287522785","js/naive-ui--dJnpVcV.js?v=1773287522785","css/index-DEM1fxGq.css?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785","js/mail-COTHIXbY.js?v=1773287522785","js/index-CO4dbYz3.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-B7YvCBmY.js?v=1773287522785","css/index-CVIzYRIt.css?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-C5hb-Th7.js?v=1773287522785","js/data-BVsViUMm.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785","js/campaign-CYIboXPk.js?v=1773287522785","js/useTableData-BmkIKQ_R.js?v=1773287522785"])))=>i.map(i=>d[i]);
var GV=Object.defineProperty;var KV=(e,t,n)=>t in e?GV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var B5=(e,t,n)=>KV(e,typeof t!="symbol"?t+"":t,n);import{_ as XV}from"./index-BRQskX9P.js?v=1773287522785";import{bo as YV,i as pt,w as vo,ce as ZV,cf as JV,cg as Pb,ch as hp,ci as gp,t as Jh,Q as Zm,c as gt,n as Un,c2 as Ro,_ as Qh,aK as ZI,p as No,aq as zc,cj as bt,k as P5,P as JI,m as Hc,h as lo,ap as QI,v as Jm,x as gl,l as f1,as as d1,a3 as ZD}from"./index-BTglIPU2.js?v=1773287522785";import{r as ie,k as re,an as ft,$ as Y,Z as ae,F as Pt,a0 as C,a9 as P,_ as $,a6 as ju,X as ze,S as _,j as ye,ak as $n,e as tt,aa as ke,a8 as De,R as Hn,al as _n,ap as eg,o as Mi,w as qo,c as ve,n as yr,ao as Dr,L as Di,q as br,a4 as QV,N as An,t as p1,b as h1,K as wf,l as Go,v as Ko,H as er,a3 as ej,i as eW,p as tj,y as Xo,aj as Qm,x as JD,P as co,ad as QD,u as tW,s as nW,am as nj}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{d as rW,s as rj,f as oj,a as oW,c as iW,h as aW,i as e4,j as ij,k as uW,l as sW,m as lW,n as cW,o as fW,p as dW,q as F5,r as pW,t as hW,u as gW,v as vW,w as mW,x as yW,y as bW,z as wW,A as _W,B as M5,C as xW,D as aj,E as CW,F as SW,G as EW,H as DW,I as kW,J as I5,K as OW,L as AW,M as j5,N as TW,O as BW,P as PW,Q as uj,R as FW,S as MW,g as IW,T as jW,U as LW}from"./campaign-CYIboXPk.js?v=1773287522785";import{_ as RW}from"./index.vue_vue_type_script_setup_true_lang-DCuz-_aa.js?v=1773287522785";import{a3 as So,ag as vl,ah as sj,B as Dn,n as Oc,a8 as ha,a9 as tg,an as lj,am as cj,a6 as Kr,a1 as dr,b as Tr,p as Rt,aO as av,a4 as ng,_ as fj,aP as Dp,aM as L5,aD as NW,aq as dj,as as pj,au as $W,av as UW,Z as hj,$ as gj,aC as Lu,ac as zW,a7 as HW,k as VW,a2 as t4,m as WW}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{_ as Jo}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{u as Qo}from"./useTableData-BmkIKQ_R.js?v=1773287522785";import{_ as qW}from"./index-CWSeZZK7.js?v=1773287522785";import{_ as rg}from"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import{_ as ga}from"./index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785";import{u as Eo}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{b as GW,c as KW,a as XW,i as YW,d as ZW,e as JW,s as QW,f as eq,h as tq}from"./mail-COTHIXbY.js?v=1773287522785";import{_ as ml}from"./index.vue_vue_type_script_setup_true_lang-C5hb-Th7.js?v=1773287522785";import{u as Ru,g as nq}from"./useTableColumns-DDeyYvje.js?v=1773287522785";import{_ as Br}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{c as rq,g as vj}from"./data-BVsViUMm.js?v=1773287522785";import{_ as n4}from"./index-DIKmrNCq.js?v=1773287522785";import{o as g1}from"./upload-CD_WMkIS.js?v=1773287522785";import{g as Yi}from"./index-DRk77PlU.js?v=1773287522785";import{_ as mj}from"./index-lEMZglLp.js?v=1773287522785";import{g as yj}from"./file-B5PwfK2h.js?v=1773287522785";import{_ as v1}from"./index.vue_vue_type_script_setup_true_lang-HxsqzSKU.js?v=1773287522785";import{a as oq}from"./prismjs-BZPoR7_J.js?v=1773287522785";import{_ as r4}from"./index.vue_vue_type_script_setup_true_lang-D2Bk83Ev.js?v=1773287522785";import{_ as iq}from"./index-CZps0rIN.js?v=1773287522785";import{c as aq}from"./copy-D-wIKr0q.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-B7YvCBmY.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";function R5(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}const gm=YV("menu-mail-market","overview"),aC=ie(null),Xi=ie(!1),Va=ie(-1),kc=class kc{constructor(){}static getInstance(){return kc.instance||(kc.instance=JV()),kc.instance}};B5(kc,"instance");let uC=kc;const Js=ie(!1),kp=ie(""),Ya=ie({type:"today",data:uq()});function uq(){const{start:e,end:t}=ZV(new Date);return[e.getTime(),t.getTime()]}function va(){const e=uC.getInstance();function t(){return{...kp.value?{domain:kp.value}:{},start_time:Math.floor(Ya.value.data[0]/1e3),end_time:Math.floor(Ya.value.data[1]/1e3)}}async function n(){try{Js.value=!0;const{message:i}=await rW(t());pt(i)&&e.trigger(i)}finally{Js.value=!1}}return{getRate:i=>i>=0?"".concat(i,"%"):"--",getChartTime:(i,a)=>{let u=new Date;return i==="hourly"?(u.setMinutes(0),u.setSeconds(0),u.setHours(a)):i==="daily"&&(u=new Date(a*1e3)),vo(u)},getOverview:n,getParams:t,onResult:e.on}}const sq={class:"w-240px ml-8px"},lq=re({__name:"date",props:{type:{},typeModifiers:{},value:{default:()=>[]},valueModifiers:{}},emits:["update:type","update:value"],setup(e){const t=ft(e,"type"),n=ft(e,"value");function r(s=new Date){const l=hp(s),c=gp(s);return[l.getTime(),c.getTime()]}const o=()=>{const s=new Date,l=gp(s);return[hp(Pb(s,-6)).getTime(),l.getTime()]},i=s=>{switch(s){case"today":n.value=r();break;case"yesterday":n.value=r(Pb(new Date,-1));break;case"7day":n.value=o();break}},a=s=>{const l=new Date,c=Pb(l,-30);return hp(c).getTime()>s||gp(l).getTime()<s},u=s=>{t.value="custom",n.value=[hp(s[0]).getTime(),gp(s[1]).getTime()]};return(s,l)=>{const c=vl,f=So,p=sj;return Y(),ae(Pt,null,[C(f,{value:t.value,"onUpdate:value":[l[0]||(l[0]=d=>t.value=d),i]},{default:P(()=>[C(c,{label:s.$t("Public.Search.Today"),value:"today"},null,8,["label"]),C(c,{label:s.$t("Public.Search.Yesterday"),value:"yesterday"},null,8,["label"]),C(c,{label:s.$t("Public.Search.Last7"),value:"7day"},null,8,["label"])]),_:1},8,["value"]),$("div",sq,[C(p,{value:n.value,type:"daterange","is-date-disabled":a,"onUpdate:value":u},null,8,["value"])])],64)}}}),cq={class:"flex items-center justify-between"},fq={class:"flex items-center gap-16px"},dq={class:"w-240px"},pq={key:0},hq={class:"flex items-center"},gq=re({__name:"index",setup(e){const t=Jh(),{getOverview:n}=va(),{isFree:r}=ju(t),o=()=>{Zm({source:324})},i=()=>{n()},a=()=>{n()};return(u,s)=>{const l=Dn;return Y(),ae("div",cq,[$("div",fq,[$("div",dq,[C(RW,{value:_(kp),"onUpdate:value":[s[0]||(s[0]=c=>ze(kp)?kp.value=c:null),i]},null,8,["value"])]),_(r)?(Y(),ae("div",pq,[s[4]||(s[4]=$("span",{class:"mr-8px"},"Upgrade to Pro Edition to unlock all reports immediately",-1)),C(l,{type:"primary",size:"small",ghost:"",onClick:o},{default:P(()=>s[3]||(s[3]=[ye("Upgrade Now")])),_:1,__:[3]})])):$n("",!0)]),$("div",hq,[C(lq,{type:_(Ya).type,"onUpdate:type":s[1]||(s[1]=c=>_(Ya).type=c),value:_(Ya).data,"onUpdate:value":[s[2]||(s[2]=c=>_(Ya).data=c),a]},null,8,["type","value"])])])}}}),vq={class:"rate-box"},mq={class:"rate-list"},yq={class:"rate-text"},bq={class:"rate-list"},wq={class:"rate-text"},_q={class:"rate-list"},xq={class:"rate-text"},Cq={class:"rate-list"},Sq={class:"rate-text"},Eq=re({__name:"index",setup(e){const{onResult:t,getRate:n}=va(),r=tt({delivery:0,open:0,click:0,bounce:0});return t(o=>{r.delivery=o.dashboard.delivery_rate,r.open=o.dashboard.open_rate,r.click=o.dashboard.click_rate,r.bounce=o.dashboard.bounce_rate}),(o,i)=>(Y(),ae("div",vq,[$("div",mq,[i[0]||(i[0]=$("div",{class:"rate-title"},"Delivered",-1)),$("div",yq,ke("".concat(_(r).delivery,"%")),1)]),$("div",bq,[i[1]||(i[1]=$("div",{class:"rate-title"},"Open",-1)),$("div",wq,ke(_(n)(_(r).open)),1)]),$("div",_q,[i[2]||(i[2]=$("div",{class:"rate-title"},"Click",-1)),$("div",xq,ke(_(n)(_(r).click)),1)]),$("div",Cq,[i[3]||(i[3]=$("div",{class:"rate-title"},"Bounce",-1)),$("div",Sq,ke(_(n)(_(r).bounce)),1)])]))}}),Dq=gt(Eq,[["__scopeId","data-v-a72fecba"]]),kq=re({__name:"index",setup(e){const{getRate:t,onResult:n}=va(),{table:r,columns:o}=Qo([{key:"mail_provider",title:"Mail Provider",ellipsis:{tooltip:!0}},{key:"delivery_rate",title:"Delivered",render:i=>t(i.delivery_rate)},{key:"open_rate",title:"Open",render:i=>t(i.open_rate)},{key:"click_rate",title:"Click",render:i=>t(i.click_rate)},{key:"bounce_rate",title:"Bounce",render:i=>t(i.bounce_rate)}]);return n(i=>{r.data=i.mail_providers}),(i,a)=>{const u=Jo;return Y(),De(u,{"min-height":276,"max-height":276,bordered:!1,loading:_(Js),data:_(r).data,columns:_(o)},null,8,["loading","data","columns"])}}}),Oq=gt(kq,[["__scopeId","data-v-be528f51"]]),Aq={class:"p-20px"},Tq=re({__name:"error",setup(e){const{t}=Hn(),{getParams:n}=va(),{loading:r,setLoading:o}=Eo(),{table:i,columns:a}=Qo([{key:"recipient",title:t("Mail.Mass.index_50"),width:160,render:l=>C(Oc,{class:l.tooltip?"":"break-all!","line-clamp":l.tooltip?999:1,tooltip:!1},{default:()=>[l.recipient]})},{key:"dsn",title:"Dsn",width:60},{key:"delay",title:t("Mail.Mass.index_51"),width:70},{key:"delays",title:t("Mail.Mass.index_52"),width:150},{key:"status",title:t("Public.Table.Status"),width:100,ellipsis:{tooltip:!0},render:l=>l.status},{key:"relay",title:t("Mail.Mass.index_53"),width:200,render:l=>C(Oc,{class:l.tooltip?"":"break-all!","line-clamp":l.tooltip?9999:1,tooltip:!1},{default:()=>[l.relay]})},{key:"description",title:t("Public.Btn.Details"),render:l=>C(Oc,{class:l.tooltip?"":"break-all!","line-clamp":l.tooltip?9999:1,tooltip:!1},{default:()=>[l.description]})}]),u=l=>({onMousemove:()=>{l.tooltip=!0},onMouseleave:()=>{l.tooltip=!1}});return(async()=>{try{o(!0);const l=n(),{message:c}=await GW({...l.domain?{domain:l.domain}:{},start:l.start_time,end:l.end_time});i.data=Un(c)?c.map(f=>({...f,tooltip:!1})):[]}finally{o(!1)}})(),(l,c)=>{const f=Jo,p=ga;return Y(),ae("div",Aq,[C(p,null,{table:P(()=>[C(f,{"max-height":600,loading:_(r),data:_(i).data,columns:_(a),"row-props":u},null,8,["loading","data","columns"])]),_:1})])}}}),Bq={class:"total-list"},Pq={class:"total-item"},Fq={class:"total-value text-primary"},Mq={class:"total-item"},Iq={class:"total-value text-primary"},jq={class:"total-failed"},Lq={class:"failed-item"},Rq={class:"total-value"},Nq={class:"failed-item"},$q={class:"total-label"},Uq={class:"total-value"},zq=re({__name:"index",setup(e){const{t}=Hn(),{onResult:n,getChartTime:r,getOverview:o}=va(),i=Ro("--chart-tooltip-bg-color"),a=Ro("--color-text-2"),u=Ro("--color-border"),s=_n("chartRef"),l=ie({delivered:0,delivery_rate:0,failed:0,failure_rate:0,sends:0}),c=ie(!1),f=async y=>{await ZI({source:361}),await rj({operation:y?1:0})};(async()=>{const{message:y}=await oj();pt(y)&&(c.value=y.abnormal_mail_check_switch)})();const d=()=>{No({title:t("Mail.Overview.today_9"),width:980,component:Tq})},m=eg({tooltip:{trigger:"axis",order:"seriesDesc",backgroundColor:i.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},axisPointer:{type:"shadow"}},legend:{top:0,itemGap:16,icon:"circle",itemWidth:10,itemHeight:10,data:[t("Mail.Overview.today_2"),t("Mail.Overview.today_3")],textStyle:{color:a.value,lineHeight:12,padding:[0,0,-2,0],rich:{a:{verticalAlign:"middle"}}}},grid:{top:"16%",left:"2%",right:"2%",bottom:"4%",containLabel:!0},yAxis:{type:"value",boundaryGap:[0,"6%"],splitLine:{show:!0,lineStyle:{type:"dashed",width:1,color:u.value}}},xAxis:v(),series:[{type:"bar",name:t("Mail.Overview.today_3"),data:[]},{type:"bar",name:t("Mail.Overview.today_2"),data:[]}]});function v(y="HH:mm"){return{type:"category",axisLabel:{formatter:g=>vo(g,y)}}}const h=y=>{const g=[],b=[];y.data.forEach(w=>{g.push([r(y.column_type,w.x),w.failed,y.column_type]),b.push([r(y.column_type,w.x),w.delivered,y.column_type])}),m.series=[{type:"bar",name:t("Mail.Overview.today_3"),data:g,stack:"total",itemStyle:{color:"#1A519B"}},{type:"bar",name:t("Mail.Overview.today_2"),data:b,stack:"total",itemStyle:{color:"#91CC75"}}],m.xAxis=v(y.column_type==="hourly"?"HH:mm":"yyyy-MM-dd")};return n(y=>{y.send_mail_chart&&(l.value=y.send_mail_chart.dashboard,h(y.send_mail_chart))}),Mi(()=>{setTimeout(()=>{s.value&&s.value.getChart().on("click",g=>{if(g.componentSubType==="bar"&&Un(g.value)&&g.value[2]==="daily"){const b=new Date(g.value[0]);Ya.value.type="custom",Ya.value.data=[hp(b).getTime(),gp(b).getTime()],o()}})},1e3)}),(y,g)=>{const b=Qh,w=qW,x=ha,k=tg;return Y(),ae(Pt,null,[g[7]||(g[7]=$("div",{class:"mb-20px font-bold text-20px text-font2"},"Send today",-1)),$("div",Bq,[$("div",Pq,[g[1]||(g[1]=$("div",{class:"total-label"},"Success rate",-1)),$("div",Fq,ke(_(l).delivery_rate)+"%",1)]),$("div",Mq,[g[2]||(g[2]=$("div",{class:"total-label"},"Success",-1)),$("div",Iq,ke(_(l).delivered),1)]),$("div",jq,[$("div",Lq,[g[4]||(g[4]=$("div",{class:"total-label"},[$("span",null,"Failed")],-1)),$("div",Rq,[$("span",{class:"text-primary cursor-pointer",onClick:d},ke(_(l).failed),1),C(b,{class:"ml-6px text-12px!",onClick:d},{default:P(()=>g[3]||(g[3]=[ye("Details")])),_:1,__:[3]})])]),$("div",Nq,[$("div",$q,[g[6]||(g[6]=$("span",{class:"mr-6px"},"Auto block failed emails",-1)),C(w,null,{default:P(()=>g[5]||(g[5]=[$("p",null," When email delivery status is 'Bounced', emails will be automatically added to the blocked list. ",-1),$("p",null,"New mailing tasks will exclude these emails to maintain IP and domain reputation.",-1)])),_:1,__:[5]})]),$("div",Uq,[C(x,{value:_(c),"onUpdate:value":[g[0]||(g[0]=D=>ze(c)?c.value=D:null),f],size:"small"},null,8,["value"])])])])]),C(k,{class:"w-100% h-200px",show:_(Js)},{default:P(()=>[C(rg,{ref_key:"chartRef",ref:s,type:"bar",height:"200",option:_(m)},null,8,["option"])]),_:1},8,["show"])],64)}}}),Hq=gt(zq,[["__scopeId","data-v-1decb7ed"]]),o4=re({name:"AuthBox",setup(e,{slots:t}){const n=Jh(),{isFree:r}=ju(n);return()=>{var o;return C(Pt,null,[r.value?C("div",{class:"text-14px color-desc"},[ye("Pro Edition Exclusive Features")]):(o=t.default)==null?void 0:o.call(t)])}}}),Vq={class:"flex-center h-200px"},Wq=re({__name:"unique",setup(e){const t=Ro("--chart-tooltip-bg-color"),n=Ro("--color-border"),{onResult:r,getChartTime:o}=va(),i=eg({tooltip:{trigger:"axis",order:"seriesDesc",backgroundColor:t.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},axisPointer:{type:"shadow"}},grid:{top:"16%",left:"2%",right:"2%",bottom:"2%",containLabel:!0},yAxis:{type:"value",splitLine:{show:!0,lineStyle:{type:"dashed",width:1,color:n.value}},name:"%",max:({max:s})=>s>100?100:s},xAxis:a(),series:u()});function a(s="HH:mm"){return{type:"category",axisLabel:{formatter:l=>vo(l,s)}}}function u(s=[]){return[{name:"Unique Open Rate",type:"line",data:s,itemStyle:{color:"#1a519b"},smooth:!1,showSymbol:!1,sampling:"average"}]}return r(s=>{const{open_rate_chart:l}=s;if(l){const c=l.data.map(f=>[o(l.column_type,f.x),f.open_rate]);i.series=u(c),i.xAxis=a(l.column_type==="hourly"?"HH:mm":"yyyy-MM-dd")}}),(s,l)=>{const c=tg;return Y(),ae(Pt,null,[l[0]||(l[0]=$("div",{class:"mb-16px font-bold text-20px text-font2"},"Unique Open Rate %",-1)),$("div",Vq,[C(_(o4),null,{default:P(()=>[C(c,{class:"w-100%",show:_(Js)},{default:P(()=>[C(rg,{height:200,option:_(i)},null,8,["option"])]),_:1},8,["show"])]),_:1})])],64)}}}),qq={class:"flex-center h-200px"},Gq=re({__name:"click",setup(e){const t=Ro("--chart-tooltip-bg-color"),n=Ro("--color-border"),{onResult:r,getChartTime:o}=va(),i=eg({tooltip:{trigger:"axis",order:"seriesDesc",backgroundColor:t.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},axisPointer:{type:"shadow"}},grid:{top:"16%",left:"2%",right:"2%",bottom:"2%",containLabel:!0},yAxis:{name:"%",type:"value",boundaryGap:[0,"6%"],splitLine:{show:!0,lineStyle:{type:"dashed",width:1,color:n.value}},max:({max:s})=>s>100?100:s},xAxis:a(),series:u()});function a(s="HH:mm"){return{type:"category",axisLabel:{formatter:l=>vo(l,s)}}}function u(s=[]){return[{name:"Click Rate",type:"line",data:s,itemStyle:{color:"#1a519b"},smooth:!1,showSymbol:!1,sampling:"average"}]}return r(s=>{const{click_rate_chart:l}=s;if(l){const c=l.data.map(f=>[o(l.column_type,f.x),f.click_rate]);i.series=u(c),i.xAxis=a(l.column_type==="hourly"?"HH:mm":"yyyy-MM-dd")}}),(s,l)=>{const c=tg;return Y(),ae(Pt,null,[l[0]||(l[0]=$("div",{class:"mb-16px font-bold text-20px text-font2"},"Click Rate %",-1)),$("div",qq,[C(_(o4),null,{default:P(()=>[C(c,{class:"w-100%",show:_(Js)},{default:P(()=>[C(rg,{height:200,option:_(i)},null,8,["option"])]),_:1},8,["show"])]),_:1})])],64)}}}),Kq={class:"flex-center h-200px"},Xq=re({__name:"bounce",setup(e){const t=Ro("--chart-tooltip-bg-color"),n=Ro("--color-border"),{onResult:r,getChartTime:o}=va(),i=eg({tooltip:{trigger:"axis",order:"seriesDesc",backgroundColor:t.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},axisPointer:{type:"shadow"}},grid:{top:"16%",left:"2%",right:"2%",bottom:"2%",containLabel:!0},yAxis:{name:"%",type:"value",splitLine:{show:!0,lineStyle:{type:"dashed",width:1,color:n.value}},max:({max:s})=>s>100?100:s},xAxis:a(),series:u()});function a(s="HH:mm"){return{type:"category",axisLabel:{formatter:l=>vo(l,s)}}}function u(s=[]){return[{name:"Bounce Rate",type:"line",data:s,itemStyle:{color:"#20a53a"},smooth:!1,showSymbol:!1,sampling:"average"}]}return r(s=>{const{bounce_rate_chart:l}=s;if(l){const c=l.data.map(f=>[o(l.column_type,f.x),f.bounce_rate]);i.series=u(c),i.xAxis=a(l.column_type==="hourly"?"HH:mm":"yyyy-MM-dd")}}),(s,l)=>{const c=tg;return Y(),ae(Pt,null,[l[0]||(l[0]=$("div",{class:"mb-16px font-bold text-20px text-font2"},"Bounce Rate %",-1)),$("div",Kq,[C(_(o4),null,{default:P(()=>[C(c,{class:"w-100%",show:_(Js)},{default:P(()=>[C(rg,{height:200,option:_(i)},null,8,["option"])]),_:1},8,["show"])]),_:1})])],64)}}}),Yq={class:"overview-card"},Zq={class:"overview-card"},Jq={class:"overview-card"},Qq={class:"overview-card"},eG={class:"overview-card"},tG=re({__name:"index",setup(e){const{getOverview:t}=va();return t(),(n,r)=>{const o=lj,i=cj;return Y(),ae("div",null,[C(gq),C(Dq),C(i,{class:"mt-16px","x-gap":"16","y-gap":"16",cols:2},{default:P(()=>[C(o,null,{default:P(()=>[$("div",Yq,[C(Oq)])]),_:1}),C(o,null,{default:P(()=>[$("div",Zq,[C(Hq)])]),_:1}),C(o,null,{default:P(()=>[$("div",Jq,[C(Wq)])]),_:1}),C(o,null,{default:P(()=>[$("div",Qq,[C(Gq)])]),_:1}),C(o,null,{default:P(()=>[$("div",eG,[C(Xq)])]),_:1})]),_:1})])}}}),nG=gt(tG,[["__scopeId","data-v-430df597"]]);function rG(e){const t=ie(0),{mainHeight:n,footerHeight:r}=ju(Jh());return qo(()=>n.value,i=>{yr(()=>{if(!e.value)return;const{top:a}=e.value.getBoundingClientRect();t.value=i-a-16-16-r.value})},{immediate:!0}),{height:ve(()=>t.value===0?"auto":t.value+"px")}}const oG="/static/vite/images/unsubscribe-C7VkuZUt.png",iG=re({__name:"template",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(e,{expose:t}){const n=ft(e,"value"),r=ie([]),{loading:o,setLoading:i}=Eo(),a=async()=>{try{i(!0);const{message:u}=await oW();Un(u)&&u.length>0&&(r.value=u.map(s=>({label:s.name,value:s.id})),n.value||(n.value=u[0].id))}finally{i(!1)}};return a(),t({getList:a}),(u,s)=>{const l=Kr;return Y(),De(l,{value:n.value,"onUpdate:value":s[0]||(s[0]=c=>n.value=c),loading:_(o),filterable:!0,options:_(r)},null,8,["value","loading","options"])}}}),aG={class:"w-170px mr-10px"},uG={class:"w-180px"},sG=re({__name:"sender",props:{value:{},valueModifiers:{}},emits:Dr(["change"],["update:value"]),setup(e,{emit:t}){const n=t,r=ie(null),o=ft(e,"value"),i=ie([]),a=ve(()=>u.value.filter(h=>h.domain===r.value).map(h=>({data:h,label:h.username,value:h.username}))),u=ie([]),s=(h,y)=>{const{data:g}=y;pt(g)&&n("change",g.full_name)},l=ie(!1),c=ie(!1),f=async()=>{try{l.value=!0;const{message:h}=await KW();Un(h)&&(i.value=h.map(y=>({label:y,value:y})),r.value=h[0]||null)}finally{l.value=!1}},p=async()=>{try{c.value=!0;const{message:h}=await XW();Un(h)&&h.length>0&&(u.value=h)}finally{c.value=!1}},d=()=>{if(a.value[0]){const{data:h}=a.value[0];o.value="".concat(a.value[0].value),pt(h)&&n("change",h.full_name)}else o.value=null,n("change","")},m=()=>{d()};return(async()=>{if(await Promise.all([f(),p()]),o.value){for(const h of u.value)if(h.username===o.value){r.value=h.domain;break}}else d()})(),(h,y)=>{const g=Kr;return Y(),ae(Pt,null,[$("div",aG,[C(g,{value:_(r),"onUpdate:value":[y[0]||(y[0]=b=>ze(r)?r.value=b:null),m],loading:_(l),options:_(i)},null,8,["value","loading","options"])]),$("div",uG,[C(g,{value:o.value,"onUpdate:value":[y[1]||(y[1]=b=>o.value=b),s],loading:_(c),options:_(a)},null,8,["value","loading","options"])])],64)}}}),lG={class:"flex items-center mb-8px"},cG={class:"ml-40px"},bj=re({__name:"import",props:Dr({path:{default:""},accept:{default:()=>[]}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e){const t=e,{path:n,accept:r}=t,o=ft(e,"value"),i=()=>{g1({path:n,size:5,uploadData:{accept:r.map(a=>".".concat(a)).join(","),multiple:!1},onUploadSuccess:a=>{o.value=a[0].name}})};return(a,u)=>{const s=Dn;return Y(),ae("div",null,[$("div",lG,[C(s,{onClick:i},{default:P(()=>[ye(ke(a.$t("Public.Btn.Import")),1)]),_:1}),$("div",cG,[ye(ke(a.$t("Mail.Mass.index_43"))+" ",1),$("span",{class:Di(o.value?"text-primary":"text-error")},ke(o.value||a.$t("Mail.Mass.index_44")),3)])]),br(a.$slots,"default")])}}}),fG={class:"p-20px"},dG={class:"w-250px"},pG=re({__name:"type-create",props:{refresh:{}},setup(e,{expose:t}){const n=e,{refresh:r}=n,o=ie(null),i=tt({mail_type:"",file:""}),a={mail_type:{required:!0,message:"Please enter group name",trigger:["blur","input"]},file:{required:!0,message:"Please upload file",trigger:["blur","change"]}},u=()=>{zc("/www/server/panel/plugin/mail_sys/data/example_recipients.txt")};return t({onConfirm:async()=>{var l;await((l=o.value)==null?void 0:l.validate()),await YW({...i}),r==null||r()}}),(l,c)=>{const f=Tr,p=dr,d=Br,m=Qh,v=n4;return Y(),ae("div",fG,[C(d,{ref_key:"formRef",ref:o,model:_(i),rules:a},{default:P(()=>[C(p,{label:"Group name",path:"mail_type"},{default:P(()=>[$("div",dG,[C(f,{type:"text",value:_(i).mail_type,"onUpdate:value":c[0]||(c[0]=h=>_(i).mail_type=h),placeholder:"Please enter group name"},null,8,["value"])])]),_:1}),C(p,{label:"Emails",path:"file"},{default:P(()=>[C(bj,{value:_(i).file,"onUpdate:value":c[1]||(c[1]=h=>_(i).file=h),path:"/www/server/panel/data/mail/in_bulk/recipient",accept:["txt","json"]},null,8,["value"])]),_:1})]),_:1},8,["model"]),C(v,{class:"mt-4px"},{default:P(()=>[$("li",null,[c[3]||(c[3]=ye(" File type:txt/json One mailbox per line Not more than 5 MB ")),C(m,{target:"_blank",onClick:u},{default:P(()=>c[2]||(c[2]=[ye("Download the template")])),_:1,__:[2]})])]),_:1})])}}}),hG={class:"flex-1"},gG={class:"flex items-center"},vG={class:"w-260px"},mG={class:"ml-10px"},yG={class:"mt-8px"},bG=re({__name:"type",props:{value:{},valueModifiers:{},name:{},nameModifiers:{}},emits:["update:value","update:name"],setup(e,{expose:t}){const n=ft(e,"value"),r=ft(e,"name"),o=ie([]),i=ie([]),a=ie(0),{loading:u,setLoading:s}=Eo(),l=async()=>{try{s(!0);const{message:p}=await iW();Un(p)&&(i.value=p,o.value=p.map(d=>({label:d.mail_type,value:d.id})))}finally{s(!1)}},c=async p=>{r.value=i.value.filter(m=>p.includes(m.id)).map(m=>m.mail_type);const{message:d}=await aW({etypes:p.join(",")});pt(d)&&(a.value=d.result)},f=()=>{No({title:"Create New Group",width:480,footer:!0,data:{refresh:l},component:pG})};return l(),t({getType:l}),(p,d)=>{const m=Kr,v=Qh;return Y(),ae("div",hG,[$("div",gG,[$("div",vG,[C(m,{value:n.value,"onUpdate:value":[d[0]||(d[0]=h=>n.value=h),c],options:_(o),multiple:!0,filterable:!0,loading:_(u),placeholder:"Please select recipients with groups"},null,8,["value","options","loading"])]),$("div",mG,[C(v,{onClick:f},{default:P(()=>d[1]||(d[1]=[ye("Create")])),_:1,__:[1]})])]),$("div",yG,[d[2]||(d[2]=ye("Send Emails (")),$("b",null,ke(_(a)),1),d[3]||(d[3]=ye(" Recipients)"))])])}}}),og=QV("email-editor",()=>{const e=ie("2.1"),t=ie({meta:{version:e.value,createdAt:"",updatedAt:""},style:{backgroundColor:"#ffffff",width:"500px"}}),n=ie([]),r=ie({}),o=ie({}),i=ie({}),a=ie({}),u=ie({}),s=ie({}),l=ie(""),c=ie(""),f=ie(async()=>!1);return{version:e,pageConfig:t,columnsSource:n,columnsMap:r,columnsConfigMap:o,cellMap:i,cellConfigMap:a,blockMap:u,blockConfigMap:s,selectedBlockKey:l,selectedBlockType:c,saveFn:f}}),wj={key:"",name:"Columns",type:"columns",meta:{version:"",createdAt:"",updatedAt:""},attr:{},style:{backgroundColor:"",padding:{more:!1,all:"0",top:"0",left:"0",right:"0",bottom:"0"}},containerStyle:{backgroundColor:""}},_j={key:"",name:"Cell",type:"cell",meta:{version:"",createdAt:"",updatedAt:""},attr:{},style:{backgroundColor:"",padding:{more:!1,all:"0",top:"0",left:"0",right:"0",bottom:"0"},border:{more:!1,all:{color:"",width:"0",style:"solid"},top:{color:"",width:"0",style:"solid"},right:{color:"",width:"0",style:"solid"},bottom:{color:"",width:"0",style:"solid"},left:{color:"",width:"0",style:"solid"}}},containerStyle:{}},sC={key:"",name:"Button",type:"button",meta:{version:"",createdAt:"",updatedAt:""},attr:{href:"#",target:"_blank",content:"Button Text"},style:{display:"inline-block",backgroundColor:"#20A53A",color:"#fff",width:"auto",fontWeight:"normal",fontSize:"14px",lineHeight:"120%",letterSpacing:"0px",boxSizing:"border-box",textDecoration:"none",padding:{more:!0,all:"0",top:"10px",left:"20px",right:"20px",bottom:"10px"},border:{more:!1,all:{color:"",width:"0",style:"solid"},top:{color:"",width:"0",style:"solid"},right:{color:"",width:"0",style:"solid"},bottom:{color:"",width:"0",style:"solid"},left:{color:"",width:"0",style:"solid"}},borderRadius:{more:!1,all:"4px",top:"0",left:"0",right:"0",bottom:"0"}},containerStyle:{textAlign:"center",padding:{more:!1,all:"10px",top:"0",left:"0",right:"0",bottom:"0"}}},xj={key:"",name:"Link",type:"link",meta:{version:"",createdAt:"",updatedAt:""},attr:{href:"",target:"_blank",content:"Link Text"},style:{display:"inline-block",color:"#333",fontWeight:"normal",fontSize:"14px",lineHeight:"120%",letterSpacing:"0px",textDecoration:"none"},containerStyle:{textAlign:"center",padding:{more:!1,all:"10px",top:"0",left:"0",right:"0",bottom:"0"}}},lC={key:"",name:"Divider",type:"divider",meta:{version:"",createdAt:"",updatedAt:""},attr:{},style:{display:"inline-block",width:"100%",height:"1px",lineHeight:"1px",verticalAlign:"middle",boxSizing:"border-box",borderTop:{color:"#bbbbbb",width:"1px",style:"solid"}},containerStyle:{textAlign:"center",padding:{more:!1,all:"10px",top:"0",left:"0",right:"0",bottom:"0"}}},Cj={key:"",name:"Header",type:"header",meta:{version:"",createdAt:"",updatedAt:""},attr:{content:"Header"},style:{display:"inline-block",color:"#333",fontWeight:"normal",fontSize:"22px",lineHeight:"140%",letterSpacing:"0px"},containerStyle:{textAlign:"left",padding:{more:!1,all:"10px",top:"0",left:"0",right:"0",bottom:"0"}}},Sj={key:"",name:"Text",type:"text",meta:{version:"",createdAt:"",updatedAt:""},attr:{content:"Text"},style:{display:"inline-block",color:"#333",fontWeight:"normal",fontSize:"14px",lineHeight:"120%",letterSpacing:"0px"},containerStyle:{textAlign:"left",padding:{more:!1,all:"10px",top:"0",left:"0",right:"0",bottom:"0"}}},cC={key:"",name:"Image",type:"image",meta:{version:"",createdAt:"",updatedAt:""},attr:{href:"",target:"_blank",src:"",alt:""},style:{display:"inline-block",width:"100%",boxSizing:"border-box",textDecoration:"none"},containerStyle:{textAlign:"center",padding:{more:!1,all:"10px",top:"0",left:"0",right:"0",bottom:"0"}}},fC={key:"",name:"Menu",type:"menu",meta:{version:"",createdAt:"",updatedAt:""},attr:{links:[{id:Yi(6),label:"Menu",href:""},{id:Yi(6),label:"Menu",href:""}]},style:{display:"inline-block",fontWeight:"normal",fontSize:"14px",letterSpacing:"0px",color:"#333",textDecoration:"none",padding:{more:!0,all:"",top:"5px",left:"15px",right:"15px",bottom:"5px"}},containerStyle:{textAlign:"center",padding:{more:!1,all:"10px",top:"0",left:"0",right:"0",bottom:"0"}}},wG=new Map([["button",sC],["link",xj],["divider",lC],["header",Cj],["text",Sj],["image",cC],["menu",fC]]),_G=e=>{const t=og(),{version:n}=ju(t),r=m=>{try{const v=JSON.parse(m),h=v.version;return h<2?o(v):h<2.1?d(v):v}catch(v){console.log(m,v)}},o=m=>{const v={meta:{version:n.value,createdAt:bt(new Date,"yyyy-MM-dd HH:mm:ss"),updatedAt:bt(new Date,"yyyy-MM-dd HH:mm:ss")},style:{width:"",backgroundColor:""}};m.page_style?(v.style.width=m.page_style.maxWidth,v.style.backgroundColor=m.page_style.backgroundColor):(v.style.width="500px",v.style.backgroundColor="#fff");const{columns_source:h,column_map:y,column_row_style_map:g}=m,b=[],w={},x={};h.forEach(H=>{b.push(H)}),Object.entries(y).forEach(([H,G])=>{pt(G)&&(w[H]={key:H,type:G.type,name:"Columns",children:G.children})}),Object.keys(g).forEach(H=>{const G=g[H],X=Rt(wj);X.key=H,X.meta.version=n.value,X.meta.createdAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),X.meta.updatedAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),X.style.padding=G.style.padding,X.style.backgroundColor=G.style.backgroundColor,x[H]=X});const{cell_map:k,cell_style_map:D}=m,T={},A={};Object.keys(k).forEach(H=>{const G=k[H];T[H]={key:H,type:"cell",name:"Cell",width:Number.parseFloat(G.width),children:G.children}}),Object.keys(D).forEach(H=>{const G=D[H],X=Rt(_j);X.key=H,X.meta.version=n.value,X.meta.createdAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),X.meta.updatedAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),X.style.backgroundColor=G.style.background,X.style.padding=G.style.padding,X.style.border=i(G.style.border),A[H]=X});const{comp_map:F,comp_style_map:j}=m,R={},U={};return Object.keys(F).forEach(H=>{const G=F[H];R[H]={key:H,type:G.type,name:rq(G.type)}}),Object.keys(j).forEach(H=>{const G=F[H],X=j[H];switch(G.type){case"button":U[H]=u(H,X);break;case"divider":U[H]=s(H,X);break;case"header":U[H]=l(H,X);break;case"text":U[H]=c(H,X);break;case"image":U[H]=f(H,X);break;case"menu":U[H]=p(H,X);break}}),{pageConfig:v,columnsSource:b,columnsMap:w,columnsConfigMap:x,cellMap:T,cellConfigMap:A,blockMap:R,blockConfigMap:U}},i=m=>({more:m.more,all:a(m.all),top:a(m.top),left:a(m.left),right:a(m.right),bottom:a(m.bottom)}),a=m=>{const v=m.split(" ");return{width:v[0]||"0",style:v[1]||"solid",color:v[2]||""}},u=(m,v)=>{const h=Rt(sC);return h.key=m,h.meta.version=n.value,h.meta.createdAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),h.meta.updatedAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),h.attr.content=v.content,h.attr.href=v.info.href||"#",h.attr.target=v.info.target||"_blank",h.style=v.style,h.style.border=i(v.style.border),h.style.fontWeight=v.style.FontWeight,h.style.letterSpacing=v.style.LetterSpacing,delete v.style.FontWeight,delete v.style.LetterSpacing,h.containerStyle=v.general,h},s=(m,v)=>{const h=Rt(lC);return h.key=m,h.meta.version=n.value,h.meta.createdAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),h.meta.updatedAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),h.style=v.style,h.style.borderTop=a(v.style.borderTop),h},l=(m,v)=>{const h=Rt(Cj);return h.key=m,h.meta.version=n.value,h.meta.createdAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),h.meta.updatedAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),h.attr.content=v.content||"",h.style=v.style,h.containerStyle=v.general,h},c=(m,v)=>{const h=Rt(Sj);return h.key=m,h.meta.version=n.value,h.meta.createdAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),h.meta.updatedAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),h.attr.content=v.content||"",h.style=v.style,h.containerStyle=v.general,h.containerStyle.textAlign=v.style.textAlign,delete v.style.textAlign,h},f=(m,v)=>{const h=Rt(cC);return h.key=m,h.meta.version=n.value,h.meta.createdAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),h.meta.updatedAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),h.attr=v.info,h.style=v.style,h.containerStyle.padding=v.general.padding,h.containerStyle.textAlign=v.general.textAlign||"center",h},p=(m,v)=>{const h=Rt(fC);return h.key=m,h.meta.version=n.value,h.meta.createdAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),h.meta.updatedAt=bt(new Date,"yyyy-MM-dd HH:mm:ss"),h.attr.links=v.links,h.style=v.style,h.style.display=v.info.layout==="horizontal"?"inline-block":"block",h.containerStyle.padding=v.general.padding,h.containerStyle.textAlign=v.general.textAlign||"center",h},d=m=>{const{blockMap:v,blockConfigMap:h}=m;return Object.keys(v).forEach(y=>{const g=v[y],b=h[y];switch(g.type){case"button":h[y].style=Object.assign({},Rt(sC.style),b.style);break;case"link":h[y].style=Object.assign({},Rt(xj.style),b.style);break;case"divider":h[y].style=Object.assign({},Rt(lC.style),b.style);break;case"image":h[y].style=Object.assign({},Rt(cC.style),b.style);break;case"menu":h[y].type=g.type,h[y].name=g.name,h[y].style=Object.assign({},Rt(fC.style),b.style);break}}),m};return{parsedData:r(e)}},Pr=()=>{const e=og(),{version:t,columnsSource:n,columnsMap:r,columnsConfigMap:o,cellMap:i,cellConfigMap:a,blockMap:u,blockConfigMap:s,pageConfig:l,selectedBlockKey:c,selectedBlockType:f,saveFn:p}=ju(e);return{saveFn:p,getData:()=>JSON.stringify({version:t.value,pageConfig:An(l.value),blockMap:An(u.value),blockConfigMap:An(s.value),cellMap:An(i.value),cellConfigMap:An(a.value),columnsConfigMap:An(o.value),columnsMap:An(r.value),columnsSource:An(n.value)}),setData:g=>{const{parsedData:b}=_G(g);b&&(l.value=b.pageConfig,u.value=b.blockMap,s.value=b.blockConfigMap,i.value=b.cellMap,a.value=b.cellConfigMap,o.value=b.columnsConfigMap,r.value=b.columnsMap,n.value=b.columnsSource)},resetData:()=>{u.value={},s.value={},i.value={},a.value={},o.value={},r.value={},n.value=[],c.value="",f.value=""},setSaveFn:g=>{p.value=g},autoSaveFn:()=>{let g=null;g&&clearTimeout(g),g=window.setTimeout(()=>{p.value()},300)}}};function ei(){const e=o=>{const i={};return Object.entries(o).forEach(([a,u])=>{t(a)&&pt(u)&&Object.assign(i,n(a,u)),!t(a)&&av(u)&&(i[a]=u),!t(a)&&pt(u)&&a==="borderTop"&&pt(u)&&(i.borderTop="".concat(u.width," ").concat(u.style," ").concat(u.color||"transparent"))}),i},t=o=>o==="border"||o==="padding"||o==="borderRadius",n=(o,i)=>{const a={},u={top:"TopLeft",right:"TopRight",bottom:"BottomRight",left:"BottomLeft"};if(!i.more)o==="border"&&pt(i.all)&&i.all.width!=="0"?a.border="".concat(i.all.width," ").concat(i.all.style," ").concat(i.all.color||"transparent"):(o==="padding"||o==="borderRadius")&&av(i.all)&&(a[o]=i.all);else{const s=["top","right","bottom","left"];switch(o){case"border":s.forEach(l=>{const c=i[l];pt(c)&&c.width!=="0"&&(a["border".concat(r(l))]="".concat(c.width," ").concat(c.style," ").concat(c.color||"transparent"))});break;case"padding":s.forEach(l=>{const c=i[l];av(c)&&c!=="0"&&(a["padding".concat(r(l))]=c)});break;case"borderRadius":s.forEach(l=>{const c=i[l];av(c)&&c!=="0"&&(a["border".concat(u[l],"Radius")]=c)});break}}return a},r=o=>o.charAt(0).toUpperCase()+o.slice(1);return{configToStyle:e}}const i4=()=>{const e=og(),{columnsSource:t,columnsMap:n,columnsConfigMap:r,cellMap:o,cellConfigMap:i,blockMap:a,blockConfigMap:u,pageConfig:s}=ju(e),{configToStyle:l}=ei(),c=ie(""),f=()=>{c.value=p().outerHTML},p=()=>{const A=d(),F=document.createElement("table");return F.style.backgroundColor=s.value.style.backgroundColor||"#fff",F.style.width="100%",t.value.forEach(j=>{A[j]&&F.appendChild(A[j].dom)}),F},d=()=>{const A=m(),F={};return Object.entries(n.value).forEach(([j,R])=>{const U=document.createElement("tr"),H=document.createElement("td"),G=document.createElement("div");h(G,r.value[j].style),G.style.width=s.value.style.width||"auto",G.style.margin="0 auto";const X=document.createElement("table");X.style.width="100%";const oe=document.createElement("tr");R.children.forEach(se=>{oe.appendChild(A[se].dom)}),X.appendChild(oe),G.appendChild(X),H.appendChild(G),U.appendChild(H),F[j]={dom:U}}),F},m=()=>{const A=v(),F={};return Object.entries(o.value).forEach(([j,R])=>{const U=document.createElement("td");U.style.width="".concat(R.width,"%"),h(U,i.value[j].style),R.children.forEach(H=>{A[H]&&U.appendChild(A[H].dom)}),F[j]={dom:U}}),F},v=()=>{const A={};return Object.keys(a.value).forEach(F=>{const j=a.value[F],R=u.value[F],U=document.createElement("div");switch(h(U,R.containerStyle),j.type){case"button":U.appendChild(g(R));break;case"link":U.appendChild(b(R));break;case"divider":U.appendChild(w(R));break;case"header":U.appendChild(x(R));break;case"text":U.appendChild(k(R));break;case"image":U.appendChild(D(R));break;case"menu":U.appendChild(T(R));break}A[F]={dom:U,config:R}}),A},h=(A,F)=>{const j=l(F);Object.entries(j).forEach(([R,U])=>{A.style[R]=U})},y=A=>A.replace("<p>",'<p style="margin: 0;">'),g=A=>{var j,R,U;const F=document.createElement("a");return F.href=(j=A.attr.href)!=null?j:"",F.target=(R=A.attr.target)!=null?R:"",F.innerHTML=y((U=A.attr.content)!=null?U:""),h(F,A.style),F},b=A=>{var j,R,U;const F=document.createElement("a");return F.href=(j=A.attr.href)!=null?j:"",F.target=(R=A.attr.target)!=null?R:"",F.innerHTML=y((U=A.attr.content)!=null?U:""),h(F,A.style),F},w=A=>{const F=document.createElement("div");return h(F,A.style),F},x=A=>{var j;const F=document.createElement("div");return F.innerHTML=y((j=A.attr.content)!=null?j:""),h(F,A.style),F},k=A=>{var j;const F=document.createElement("div");return F.innerHTML=y((j=A.attr.content)!=null?j:""),h(F,A.style),F},D=A=>{var j,R,U,H;const F=document.createElement("img");if(F.src=(j=A.attr.src)!=null?j:"",F.alt=(R=A.attr.alt)!=null?R:"",A.attr.href){const G=document.createElement("a");return G.href=(U=A.attr.href)!=null?U:"",G.target=(H=A.attr.target)!=null?H:"",F.style.width="100%",G.appendChild(F),h(G,A.style),G}return h(F,A.style),F},T=A=>{var j;const F=document.createElement("div");return(j=A.attr.links)==null||j.forEach(R=>{var H;const U=document.createElement("a");h(U,A.style),U.href=R.href,U.target=(H=A.attr.target)!=null?H:"",U.innerHTML=R.label,F.appendChild(U)}),F};return{html:c,generateHtml:f}},xG=re({__name:"preview",props:{id:{}},setup(e){const n=p1(e,"id"),r=ie(""),o=ie(null),{setData:i,resetData:a}=Pr(),{html:u,generateHtml:s}=i4(),l=()=>{if(o.value){const f=o.value.contentDocument||o.value.contentWindow.document;f.open(),f.write(r.value),f.close()}},c=async()=>{if(!n.value)return;const{message:f}=await e4({id:n.value});pt(f)&&(r.value=f.content,f.type===1&&(i(f.render),s(),r.value=u.value,await ij({id:n.value,type:f.type,temp_name:f.name,render:f.render,content:u.value},!1)))};return qo(()=>n.value,async()=>{await c(),await yr(),l()}),Mi(async()=>{await c(),l()}),h1(()=>{a()}),(f,p)=>(Y(),ae("iframe",{ref_key:"iframeRef",ref:o,class:"min-h-520px",width:"100%",height:"100%",style:{border:"none"}},null,512))}}),CG={class:"mb-12px font-bold text-15px text-font2 leading-28px"},SG={class:"flex flex-col w-550px"},EG={class:"form-card mb-16px pt-20px"},DG={class:"w-360px"},kG={class:"w-360px"},OG={class:"w-260px"},AG={class:"w-60px ml-24px"},TG={class:"form-card flex-1 py-20px"},BG={class:"w-360px"},PG={class:"flex w-360px"},FG={class:"flex-1 mr-10px"},MG={class:"form-card flex flex-col items-center w-640px ml-16px pt-12px p-16px overflow-hidden"},IG={class:"mb-12px"},jG={class:"min-w-260px"},LG={class:"min-w-260px"},RG={class:"min-w-260px"},NG={class:"mt-16px"},$G=re({__name:"index",props:Dr({row:{},isEdit:{type:Boolean,default:!1},refresh:{type:Function,default:()=>{}}},{show:{type:Boolean},showModifiers:{}}),emits:["update:show"],setup(e){const t=e,{t:n}=Hn(),{refresh:r}=t,o=ft(e,"show"),i=Jh(),a=_n("formRef"),u=_n("containerRef"),{height:s}=rG(u),l=tt({task_name:P5(12),addresser:null,full_name:"",subject:"",temp_id:aC.value,is_record:0,etypes:[],unsubscribe:1,threadsType:0,threads:1,start_time:null,pause:0,remark:"",mail_to:""}),c=ie([]),f={full_name:{trigger:["blur","input"],validator:()=>l.full_name===""?new Error("Please enter display name"):!0},subject:{trigger:["blur","input"],validator:()=>l.subject===""?new Error("Please enter mail subject"):!0},etypes:{trigger:"change",validator:()=>l.etypes.length===0?new Error("Please select contact person"):!0},start_time:{validator:()=>l.pause===1&&l.start_time===null?new Error("Please select send time"):!0}},p=A=>{l.full_name=A||""},d=_n("startTimeRef"),m=()=>{yr(()=>{var A;(A=d.value)==null||A.restoreValidation()})},v=()=>{var A;(A=d.value)==null||A.validate()},h=()=>{No({title:n("Mail.Mass.index_54"),width:450,minHeight:196,component:ej(()=>JI(()=>import("./unsubscribe-DVRoLsiA.js?v=1773287522785"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))})},y=()=>{No({title:n("Mail.Mass.index_42"),width:554,minHeight:604,content:()=>C("img",{src:oG},[ye(" ")])})},g=_n("subjectRef"),b=_n("mailToRef"),w=async()=>{var A,F;if(i.isFree){Zm({source:325});return}if(l.subject===""){(A=g.value)==null||A.focus(),Hc.error("Please enter mail subject");return}if(l.mail_to===""){(F=b.value)==null||F.focus(),Hc.error("Please enter test email");return}await uW({mail_from:l.addresser||"",subject:l.subject,mail_to:l.mail_to,temp_id:l.temp_id||0})},x=()=>({task_name:l.task_name,addresser:l.addresser||"",full_name:l.full_name,subject:l.subject,temp_id:l.temp_id||0,is_record:l.is_record,unsubscribe:l.unsubscribe,threads:l.threadsType===0?0:l.threads,etypes:l.etypes.join(","),start_time:l.pause===0?Math.floor(new Date().getTime()/1e3):Math.floor((l.start_time||0)/1e3),remark:l.remark}),k=()=>{l.subject||l.etypes.length>0?lo({title:"Tips",content:"Do you want to discard your current edits?",onConfirm:()=>{o.value=!1}}):o.value=!1},D=async()=>{var R;if(i.isFree)return Zm({source:326}),!1;await((R=a.value)==null?void 0:R.validate());const A=x(),{isEdit:F,row:j}=t;F&&j?await sW({...A,id:j.id}):await lW(A),o.value=!1,r==null||r()},T=()=>{const{row:A,isEdit:F}=t;A&&(F?l.task_name=A.task_name:l.task_name="".concat(A.task_name,"_").concat(P5(4)),l.addresser=A.addresser,l.full_name=A.full_name,l.subject=A.subject,l.is_record=A.is_record,l.unsubscribe=A.unsubscribe,l.threadsType=A.threads===0?0:1,l.threads=A.threads,l.etypes=A.etypes.split(",").map(j=>vj(j)),A.start_time*1e3>new Date().getTime()&&(l.pause=1,l.start_time=A.start_time*1e3),l.temp_id=A.temp_id,l.remark=A.remark)};return wf(()=>{aC.value=null,Xi.value=!1}),T(),(A,F)=>{const j=dr,R=Tr,U=ha,H=Dn,G=Qh,X=ng,oe=So,se=fj,L=sj,B=Br;return Y(),ae("div",null,[C(B,{ref_key:"formRef",ref:a,"label-width":"150",model:_(l),rules:f},{default:P(()=>[$("div",CG,ke(A.isEdit?A.$t("Mail.Mass.index_67"):A.$t("Mail.Mass.index_1")),1),$("div",{ref_key:"containerRef",ref:u,class:"flex min-h-654px",style:er({height:_(s)})},[$("div",SG,[$("div",EG,[C(j,{label:"From",path:"addresser"},{default:P(()=>[C(sG,{value:_(l).addresser,"onUpdate:value":F[0]||(F[0]=E=>_(l).addresser=E),onChange:p},null,8,["value"])]),_:1}),C(j,{label:"Display Name",path:"full_name"},{default:P(()=>[$("div",DG,[C(R,{value:_(l).full_name,"onUpdate:value":F[1]||(F[1]=E=>_(l).full_name=E),placeholder:"Please enter display Name"},null,8,["value"])])]),_:1}),C(j,{label:"Subject",path:"subject"},{default:P(()=>[$("div",kG,[C(R,{ref_key:"subjectRef",ref:g,value:_(l).subject,"onUpdate:value":F[2]||(F[2]=E=>_(l).subject=E),placeholder:"Please enter mail subject"},null,8,["value"])])]),_:1}),C(j,{label:"Recipients",type:"etypes"},{default:P(()=>[C(bG,{value:_(l).etypes,"onUpdate:value":F[3]||(F[3]=E=>_(l).etypes=E),name:_(c),"onUpdate:name":F[4]||(F[4]=E=>ze(c)?c.value=E:null)},null,8,["value","name"])]),_:1}),C(j,{label:"Email template"},{default:P(()=>[$("div",OG,[C(iG,{value:_(l).temp_id,"onUpdate:value":F[5]||(F[5]=E=>_(l).temp_id=E)},null,8,["value"])])]),_:1}),C(j,{label:A.$t("Mail.Mass.index_30")},{default:P(()=>[C(U,{value:_(l).is_record,"onUpdate:value":F[6]||(F[6]=E=>_(l).is_record=E),"checked-value":1,"unchecked-value":0},null,8,["value"])]),_:1},8,["label"]),C(j,{label:A.$t("Mail.Mass.index_31")},{default:P(()=>[C(U,{value:_(l).unsubscribe,"onUpdate:value":F[7]||(F[7]=E=>_(l).unsubscribe=E),"checked-value":1,"unchecked-value":0},null,8,["value"]),C(H,{class:"ml-16px",size:"small",onClick:h},{default:P(()=>[ye(ke(A.$t("Public.Btn.Set")),1)]),_:1}),C(G,{class:"ml-16px",onClick:y},{default:P(()=>[ye(ke(A.$t("Mail.Mass.index_32")),1)]),_:1})]),_:1},8,["label"]),C(j,{label:A.$t("Mail.Mass.index_33"),path:"threads"},{default:P(()=>[C(oe,{value:_(l).threadsType,"onUpdate:value":F[8]||(F[8]=E=>_(l).threadsType=E)},{default:P(()=>[C(X,{value:0},{default:P(()=>[ye(ke(A.$t("Mail.Mass.index_34")),1)]),_:1}),C(X,{value:1},{default:P(()=>[ye(ke(A.$t("Mail.Mass.index_35")),1)]),_:1})]),_:1},8,["value"]),Go($("div",AG,[C(se,{value:_(l).threads,"onUpdate:value":F[9]||(F[9]=E=>_(l).threads=E),min:1,max:5,"show-button":!1,placeholder:A.$t("Mail.Mass.index_36")},null,8,["value","placeholder"])],512),[[Ko,_(l).threadsType===1]])]),_:1},8,["label"])]),$("div",TG,[C(j,{ref_key:"startTimeRef",ref:d,label:"Send time",path:"start_time"},{default:P(()=>[C(oe,{value:_(l).pause,"onUpdate:value":[F[11]||(F[11]=E=>_(l).pause=E),m],class:"flex items-center"},{default:P(()=>[C(X,{value:0},{default:P(()=>F[14]||(F[14]=[ye("Send Now")])),_:1,__:[14]}),C(X,{class:"items-center",value:1},{default:P(()=>[C(L,{value:_(l).start_time,"onUpdate:value":[F[10]||(F[10]=E=>_(l).start_time=E),v],type:"datetime",disabled:_(l).pause===0,clearable:""},null,8,["value","disabled"])]),_:1})]),_:1},8,["value"])]),_:1},512),C(j,{label:"Remark"},{default:P(()=>[$("div",BG,[C(R,{value:_(l).remark,"onUpdate:value":F[12]||(F[12]=E=>_(l).remark=E),placeholder:"Please enter remark"},null,8,["value"])])]),_:1}),C(j,{label:"Send Test email to","show-feedback":!1},{default:P(()=>[$("div",PG,[$("div",FG,[C(R,{ref_key:"mailToRef",ref:b,value:_(l).mail_to,"onUpdate:value":F[13]||(F[13]=E=>_(l).mail_to=E),placeholder:"Please enter email"},null,8,["value"])]),C(H,{onClick:w},{default:P(()=>F[15]||(F[15]=[ye("Send Test Mail")])),_:1,__:[15]})])]),_:1})])]),$("div",MG,[$("div",IG,[C(j,{label:"From: ","show-feedback":!1,style:{"--n-blank-height":"21px"},"label-style":{fontWeight:"bold"}},{default:P(()=>[$("div",jG,ke(_(l).addresser),1)]),_:1}),C(j,{label:"To: ","show-feedback":!1,style:{"--n-blank-height":"21px"},"label-style":{fontWeight:"bold"}},{default:P(()=>[$("div",LG,ke(_(c).length>0?_(c).join(", "):"--"),1)]),_:1}),C(j,{label:"Subject: ","show-feedback":!1,style:{"--n-blank-height":"21px"},"label-style":{fontWeight:"bold"}},{default:P(()=>[$("div",RG,ke(_(l).subject||"--"),1)]),_:1})]),C(xG,{id:_(l).temp_id},null,8,["id"])])],4),$("div",NG,[C(H,{class:"mr-16px",onClick:k},{default:P(()=>[ye(ke(A.$t("Public.Btn.Cancel")),1)]),_:1}),C(H,{type:"primary",onClick:D},{default:P(()=>[ye(ke(A.$t("Public.Btn.Confirm")),1)]),_:1})])]),_:1},8,["model"])])}}}),UG=gt($G,[["__scopeId","data-v-87a7687c"]]),zG={class:"p-20px"},HG=re({__name:"details",props:{id:{},type:{},row:{}},setup(e){const t=e,{t:n}=Hn(),r=tt({task_id:t.id,type:t.type,value:t.type==="domain"?t.row.domain:t.row.status,page:1,size:10}),{loading:o,setLoading:i}=Eo(),{table:a,columns:u}=Qo([{key:"recipient",title:n("Mail.Mass.index_50"),width:160,render:f=>C(Oc,{class:f.tooltip?"":"break-all!","line-clamp":f.tooltip?999:1,tooltip:!1},{default:()=>[f.recipient]})},{key:"dsn",title:"Dsn",width:60},{key:"delay",title:n("Mail.Mass.index_51"),width:70},{key:"delays",title:n("Mail.Mass.index_52"),width:150},{key:"relay",title:n("Mail.Mass.index_53"),width:200,render:f=>C(Oc,{class:f.tooltip?"":"break-all!","line-clamp":f.tooltip?9999:1,tooltip:!1},{default:()=>[f.relay]})},{key:"err_info",title:n("Public.Btn.Details"),render:f=>C(Oc,{class:f.tooltip?"":"break-all!","line-clamp":f.tooltip?9999:1,tooltip:!1},{default:()=>[f.err_info]})}]),s=()=>{r.type==="domain"&&u.value.push({key:"status",title:n("Public.Table.Status"),width:100,ellipsis:{tooltip:!0},render:f=>f.status}),r.type==="status"&&u.value.unshift({key:"domain",title:n("Mail.Mass.index_45"),width:120,ellipsis:{tooltip:!0},render:f=>f.domain})},l=f=>({onMousemove:()=>{f.tooltip=!0},onMouseleave:()=>{f.tooltip=!1}}),c=async()=>{try{i(!0);const{message:f}=await ZW(An(r));pt(f)&&(a.data=Un(f.data)?f.data.map(p=>({...p,tooltip:!1})):[],a.total=QI(f.page))}finally{i(!1)}};return s(),c(),(f,p)=>{const d=Jo,m=ml,v=ga;return Y(),ae("div",zG,[C(v,null,{table:P(()=>[C(d,{loading:_(o),data:_(a).data,columns:_(u),"row-props":l},null,8,["loading","data","columns"])]),pageRight:P(()=>[C(m,{page:_(r).page,"onUpdate:page":p[0]||(p[0]=h=>_(r).page=h),"page-size":_(r).size,"onUpdate:pageSize":p[1]||(p[1]=h=>_(r).size=h),"item-count":_(a).total,onRefresh:c},null,8,["page","page-size","item-count"])]),_:1})])}}}),VG={class:"p-20px"},WG=re({__name:"index",props:{row:{}},setup(e){const t=e,{t:n}=Hn(),r=tt({task_id:t.row.id,type:"domain"}),o=async()=>{const{message:p}=await cW({task_id:t.row.id});pt(p)&&zc(p.result)},{loading:i,setLoading:a}=Eo(),{table:u,columns:s}=Qo([{key:"domain",title:()=>C(Pt,null,[r.type==="domain"?n("Mail.Mass.index_45"):n("Public.Table.Status")]),render:p=>r.type==="domain"?p.domain:p.status},{key:"count",title:n("Mail.Mass.index_46")},Ru({width:120,options:p=>[{label:n("Public.Btn.Details"),onClick:()=>{c(p)}}]})]),l=Jm(""),c=p=>{l.data.id=t.row.id,l.data.type=r.type,l.data.row=p,l.title=n("Mail.Mass.index_49",[r.type==="domain"?p.domain:p.status]),l.show=!0},f=async()=>{try{a(!0);const{message:p}=await JW(An(r));u.data=Un(p)?p:[]}finally{a(!1)}};return f(),(p,d)=>{const m=vl,v=So,h=Dn,y=Jo,g=ga,b=gl;return Y(),ae("div",VG,[C(g,null,{toolsLeft:P(()=>[C(v,{value:_(r).type,"onUpdate:value":[d[0]||(d[0]=w=>_(r).type=w),f]},{default:P(()=>[C(m,{value:"domain"},{default:P(()=>[ye(ke(p.$t("Mail.Mass.index_45")),1)]),_:1}),C(m,{value:"status"},{default:P(()=>[ye(ke(p.$t("Public.Table.Status")),1)]),_:1})]),_:1},8,["value"]),C(h,{onClick:o},{default:P(()=>[ye(ke(p.$t("Public.Btn.Export")),1)]),_:1})]),table:P(()=>[C(y,{"max-height":340,loading:_(i),data:_(u).data,columns:_(s)},null,8,["loading","data","columns"])]),_:1}),C(b,{show:_(l).show,"onUpdate:show":d[1]||(d[1]=w=>_(l).show=w),title:_(l).title,data:_(l).data,width:980,"min-height":152,component:HG},null,8,["show","title","data"])])}}}),qG={class:"h-full"},GG=re({__name:"index",props:{row:{}},setup(e){const t=e,{t:n}=Hn(),r=ie(n("Mail.Mass.index_48")),{loading:o,setLoading:i}=Eo();return(async()=>{try{i(!0);const{message:u}=await yj({path:t.row.error_log});pt(u)&&(r.value=u.data?u.data.slice(-1e4):n("Mail.Mass.index_48"))}finally{i(!1)}})(),(u,s)=>{const l=mj;return Y(),ae("div",qG,[C(l,{log:_(r),loading:_(o)},null,8,["log","loading"])])}}}),KG=re({__name:"index",setup(e){const{t}=Hn(),n=tt({p:1,size:10}),r=tt({title:"",row:void 0,isEdit:!1}),o=v=>{r.row=v,r.isEdit=!1,Xi.value=!0},i=v=>{r.row=v,r.isEdit=!0,Xi.value=!0},{table:a,columns:u}=Qo([{key:"created",title:t("Mail.Mass.index_2"),width:"14%",minWidth:140,render:v=>vo(v.created)},{key:"subject",title:t("Mail.Mass.index_23"),width:"12%",minWidth:100,ellipsis:{tooltip:!0}},{key:"addresser",title:t("Mail.Mass.index_4"),minWidth:180,width:"15%",ellipsis:{tooltip:!0}},{key:"recipient_count",title:t("Mail.Mass.index_5"),width:"7%",minWidth:80},{key:"success_count",title:t("Mail.Mass.index_6"),width:"7%",minWidth:80,render:v=>v.delivered-v.count.error_count},{key:"error_count",title:t("Mail.Mass.index_7"),width:"7%",minWidth:80,render:v=>C("a",{class:"bt-link error",href:"javascript:;",onClick:()=>{c(v)}},[v.count.error_count])},{key:"task_process",title:t("Public.Table.Status"),width:"7%",render:v=>v.task_process===0||v.pause===1?C("span",{class:"text-#fcb040"},[ye(" "),t("Mail.Mass.index_9"),ye(" ")]):v.task_process===1?C("span",{class:"text-#fcb040"},[ye(" "),t("Mail.Mass.index_10"),ye(" ")]):t("Mail.Mass.index_11")},{key:"remark",title:t("Public.Table.Ps"),width:"10%",minWidth:80,ellipsis:{tooltip:!0}},nq({status:"success"}),Ru({width:180,options:v=>[{label:t("Public.Btn.Edit"),show:v.task_process===0&&v.pause===0,onClick:()=>{i(v)}},{label:t("Mail.Mass.index_61"),show:!(v.task_process===0&&v.pause===0),onClick:()=>{s(v)}},{label:v.pause===1?t("Mail.Mass.index_12"):t("Public.Status.Pause"),show:v.task_process!==2,onClick:()=>{p(v)}},{label:t("Public.Btn.Del"),onClick:()=>{d(v)}}]})]),s=v=>{No({title:t("Mail.Mass.index_62",[v.subject]),width:640,minHeight:320,footer:!0,confirmText:t("Mail.Mass.index_63"),data:{row:v,onAdd:o},component:ej(()=>JI(()=>import("./index-CO4dbYz3.js?v=1773287522785"),__vite__mapDeps([9,1,2,3,4,5,6,10,11,12,13,14,15,16,17])))})},l=Jm(""),c=v=>{l.data.row=v,l.title=t("Mail.Mass.index_13",[v.subject]),l.show=!0},f=Jm(""),p=v=>{lo({title:t("Mail.Mass.index_15",[v.subject]),content:v.task_process?t("Mail.Mass.index_16"):t("Mail.Mass.index_17"),onConfirm:async()=>{await QW({task_id:v.id,pause:v.pause?0:1}),m()}})},d=async v=>{lo({title:t("Mail.Mass.index_18"),content:t("Mail.Mass.index_19",[v.subject]),onConfirm:async()=>{await eq({task_id:v.id}),m()}})},m=async()=>{try{a.loading=!0;const{message:v}=await tq(An(n));pt(v)&&(a.data=Un(v.data)?v.data:[],a.total=QI(v.page))}finally{a.loading=!1}};return m(),(v,h)=>{const y=Dn,g=Jo,b=ml,w=ga,x=gl;return Y(),ae("div",null,[Go(C(w,null,{toolsLeft:P(()=>[C(y,{type:"primary",onClick:h[0]||(h[0]=k=>o())},{default:P(()=>[ye(ke(v.$t("Mail.Mass.index_1")),1)]),_:1})]),table:P(()=>[C(g,{loading:_(a).loading,data:_(a).data,columns:_(u)},null,8,["loading","data","columns"])]),pageRight:P(()=>[C(b,{page:_(n).p,"onUpdate:page":h[1]||(h[1]=k=>_(n).p=k),"page-size":_(n).size,"onUpdate:pageSize":h[2]||(h[2]=k=>_(n).size=k),"item-count":_(a).total,onRefresh:m},null,8,["page","page-size","item-count"])]),_:1},512),[[Ko,!_(Xi)]]),_(Xi)?(Y(),De(UG,{key:0,show:_(Xi),"onUpdate:show":h[3]||(h[3]=k=>ze(Xi)?Xi.value=k:null),"is-edit":_(r).isEdit,title:_(r).title,row:_(r).row,refresh:m},null,8,["show","is-edit","title","row"])):$n("",!0),C(x,{show:_(l).show,"onUpdate:show":h[4]||(h[4]=k=>_(l).show=k),title:_(l).title,data:_(l).data,width:700,"min-height":192,component:WG},null,8,["show","title","data"]),C(x,{show:_(f).show,"onUpdate:show":h[5]||(h[5]=k=>_(f).show=k),title:_(f).title,data:_(f).data,width:750,height:580,component:GG},null,8,["show","title","data"])])}}}),XG=gt(KG,[["__scopeId","data-v-9c8b6936"]]),Ej=e=>{gm.value=e},YG=e=>{Ej("task"),aC.value=e,yr(()=>{Xi.value=!0})},ZG=e=>{Va.value=e,Ej("contact")};var Dj=Symbol.for("DndContextType");function JG(e){tj(Dj,e)}function QG(){return eW(Dj)}function Qr(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var N5=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),$5=function(){return Math.random().toString(36).substring(7).split("").join(".")},U5={INIT:"@@redux/INIT"+$5(),REPLACE:"@@redux/REPLACE"+$5()};function eK(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function kj(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Qr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Qr(1));return n(kj)(e,t)}if(typeof e!="function")throw new Error(Qr(2));var o=e,i=t,a=[],u=a,s=!1;function l(){u===a&&(u=a.slice())}function c(){if(s)throw new Error(Qr(3));return i}function f(v){if(typeof v!="function")throw new Error(Qr(4));if(s)throw new Error(Qr(5));var h=!0;return l(),u.push(v),function(){if(h){if(s)throw new Error(Qr(6));h=!1,l();var g=u.indexOf(v);u.splice(g,1),a=null}}}function p(v){if(!eK(v))throw new Error(Qr(7));if(typeof v.type>"u")throw new Error(Qr(8));if(s)throw new Error(Qr(9));try{s=!0,i=o(i,v)}finally{s=!1}for(var h=a=u,y=0;y<h.length;y++){var g=h[y];g()}return v}function d(v){if(typeof v!="function")throw new Error(Qr(10));o=v,p({type:U5.REPLACE})}function m(){var v,h=f;return v={subscribe:function(g){if(typeof g!="object"||g===null)throw new Error(Qr(11));function b(){g.next&&g.next(c())}b();var w=h(b);return{unsubscribe:w}}},v[N5]=function(){return this},v}return p({type:U5.INIT}),r={dispatch:p,subscribe:f,getState:c,replaceReducer:d},r[N5]=m,r}function Ge(e,t,...n){if(tK()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;r=new Error(t.replace(/%s/g,function(){return n[o++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function tK(){return typeof process<"u"&&!0}function nK(e,t,n){return t.split(".").reduce((r,o)=>r&&r[o]?r[o]:n||null,e)}function rK(e,t){return e.filter(n=>n!==t)}function Oj(e){return typeof e=="object"}function oK(e,t){const n=new Map,r=i=>{n.set(i,n.has(i)?n.get(i)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach((i,a)=>{i===1&&o.push(a)}),o}function iK(e,t){return e.filter(n=>t.indexOf(n)>-1)}const a4="dnd-core/INIT_COORDS",m1="dnd-core/BEGIN_DRAG",u4="dnd-core/PUBLISH_DRAG_SOURCE",y1="dnd-core/HOVER",b1="dnd-core/DROP",w1="dnd-core/END_DRAG";function z5(e,t){return{type:a4,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const aK={type:a4,payload:{clientOffset:null,sourceClientOffset:null}};function uK(e){return function(n=[],r={publishSource:!0}){const{publishSource:o=!0,clientOffset:i,getSourceClientOffset:a}=r,u=e.getMonitor(),s=e.getRegistry();e.dispatch(z5(i)),sK(n,u,s);const l=fK(n,u);if(l==null){e.dispatch(aK);return}let c=null;if(i){if(!a)throw new Error("getSourceClientOffset must be defined");lK(a),c=a(l)}e.dispatch(z5(i,c));const p=s.getSource(l).beginDrag(u,l);if(p==null)return;cK(p),s.pinSource(l);const d=s.getSourceType(l);return{type:m1,payload:{itemType:d,item:p,sourceId:l,clientOffset:i||null,sourceClientOffset:c||null,isSourcePublic:!!o}}}}function sK(e,t,n){Ge(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){Ge(n.getSource(r),"Expected sourceIds to be registered.")})}function lK(e){Ge(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function cK(e){Ge(Oj(e),"Item must be an object.")}function fK(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function dK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){dK(e,o,n[o])})}return e}function hK(e){return function(n={}){const r=e.getMonitor(),o=e.getRegistry();gK(r),yK(r).forEach((a,u)=>{const s=vK(a,u,o,r),l={type:b1,payload:{dropResult:pK({},n,s)}};e.dispatch(l)})}}function gK(e){Ge(e.isDragging(),"Cannot call drop while not dragging."),Ge(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function vK(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;return mK(i),typeof i>"u"&&(i=t===0?{}:r.getDropResult()),i}function mK(e){Ge(typeof e>"u"||Oj(e),"Drop result must either be an object or undefined.")}function yK(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function bK(e){return function(){const n=e.getMonitor(),r=e.getRegistry();wK(n);const o=n.getSourceId();return o!=null&&(r.getSource(o,!0).endDrag(n,o),r.unpinSource()),{type:w1}}}function wK(e){Ge(e.isDragging(),"Cannot call endDrag while not dragging.")}function dC(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function _K(e){return function(n,{clientOffset:r}={}){xK(n);const o=n.slice(0),i=e.getMonitor(),a=e.getRegistry(),u=i.getItemType();return SK(o,a,u),CK(o,i,a),EK(o,i,a),{type:y1,payload:{targetIds:o,clientOffset:r||null}}}}function xK(e){Ge(Array.isArray(e),"Expected targetIds to be an array.")}function CK(e,t,n){Ge(t.isDragging(),"Cannot call hover while not dragging."),Ge(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const o=e[r];Ge(e.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array.");const i=n.getTarget(o);Ge(i,"Expected targetIds to be registered.")}}function SK(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r],i=t.getTargetType(o);dC(i,n)||e.splice(r,1)}}function EK(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function DK(e){return function(){if(e.getMonitor().isDragging())return{type:u4}}}function kK(e){return{beginDrag:uK(e),publishDragSource:DK(e),hover:_K(e),drop:hK(e),endDrag:bK(e)}}class OK{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(i){return(...a)=>{const u=i.apply(t,a);typeof u<"u"&&n(u)}}const o=kK(this);return Object.keys(o).reduce((i,a)=>{const u=o[a];return i[a]=r(u),i},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function AK(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Aj(e,t){return{x:e.x-t.x,y:e.y-t.y}}function TK(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Aj(AK(t,r),n)}function BK(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Aj(t,n)}const Op=[],s4=[];Op.__IS_NONE__=!0;s4.__IS_ALL__=!0;function PK(e,t){return e===Op?!1:e===s4||typeof t>"u"?!0:iK(t,e).length>0}class FK{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;Ge(typeof t=="function","listener must be a function."),Ge(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;const i=()=>{const a=this.store.getState(),u=a.stateId;try{u===o||u===o+1&&!PK(a.dirtyHandlerIds,r)||t()}finally{o=u}};return this.store.subscribe(i)}subscribeToOffsetChange(t){Ge(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const o=this.store.getState().dragOffset;o!==n&&(n=o,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return Ge(n,"Expected to find a valid source. sourceId=".concat(t)),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(Ge(n,"Expected to find a valid target. targetId=".concat(t)),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),o=this.getItemType();return dC(r,o)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(Ge(n,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),o=this.getItemType();return r!==o?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const o=this.registry.getTargetType(t),i=this.getItemType();if(i&&!dC(o,i))return!1;const a=this.getTargetIds();if(!a.length)return!1;const u=a.indexOf(t);return r?u===a.length-1:u>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return TK(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return BK(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const H5=typeof global<"u"?global:self,Tj=H5.MutationObserver||H5.WebKitMutationObserver;function Bj(e){return function(){const n=setTimeout(o,0),r=setInterval(o,50);function o(){clearTimeout(n),clearInterval(r),e()}}}function MK(e){let t=1;const n=new Tj(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const IK=typeof Tj=="function"?MK:Bj;class jK{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const n=this.index;if(this.index++,t[n].call(),this.index>this.capacity){for(let r=0,o=t.length-this.index;r<o;r++)t[r]=t[r+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=IK(this.flush),this.requestErrorThrow=Bj(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class LK{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class RK{create(t){const n=this.freeTasks,r=n.length?n.pop():new LK(this.onError,o=>n[n.length]=o);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const Pj=new jK,NK=new RK(Pj.registerPendingError);function $K(e){Pj.enqueueTask(NK.create(e))}const l4="dnd-core/ADD_SOURCE",c4="dnd-core/ADD_TARGET",f4="dnd-core/REMOVE_SOURCE",_1="dnd-core/REMOVE_TARGET";function UK(e){return{type:l4,payload:{sourceId:e}}}function zK(e){return{type:c4,payload:{targetId:e}}}function HK(e){return{type:f4,payload:{sourceId:e}}}function VK(e){return{type:_1,payload:{targetId:e}}}function WK(e){Ge(typeof e.canDrag=="function","Expected canDrag to be a function."),Ge(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Ge(typeof e.endDrag=="function","Expected endDrag to be a function.")}function qK(e){Ge(typeof e.canDrop=="function","Expected canDrop to be a function."),Ge(typeof e.hover=="function","Expected hover to be a function."),Ge(typeof e.drop=="function","Expected beginDrag to be a function.")}function pC(e,t){if(t&&Array.isArray(e)){e.forEach(n=>pC(n,!1));return}Ge(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ro;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ro||(ro={}));let GK=0;function KK(){return GK++}function XK(e){const t=KK().toString();switch(e){case ro.SOURCE:return"S".concat(t);case ro.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function V5(e){switch(e[0]){case"S":return ro.SOURCE;case"T":return ro.TARGET;default:throw new Error("Cannot parse handler ID: ".concat(e))}}function W5(e,t){const n=e.entries();let r=!1;do{const{done:o,value:[,i]}=n.next();if(i===t)return!0;r=!!o}while(!r);return!1}class YK{addSource(t,n){pC(t),WK(n);const r=this.addHandler(ro.SOURCE,t,n);return this.store.dispatch(UK(r)),r}addTarget(t,n){pC(t,!0),qK(n);const r=this.addHandler(ro.TARGET,t,n);return this.store.dispatch(zK(r)),r}containsHandler(t){return W5(this.dragSources,t)||W5(this.dropTargets,t)}getSource(t,n=!1){return Ge(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Ge(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Ge(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Ge(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return V5(t)===ro.SOURCE}isTargetId(t){return V5(t)===ro.TARGET}removeSource(t){Ge(this.getSource(t),"Expected an existing source."),this.store.dispatch(HK(t)),$K(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Ge(this.getTarget(t),"Expected an existing target."),this.store.dispatch(VK(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);Ge(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){Ge(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const o=XK(t);return this.types.set(o,n),t===ro.SOURCE?this.dragSources.set(o,r):t===ro.TARGET&&this.dropTargets.set(o,r),o}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const ZK=(e,t)=>e===t;function JK(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function QK(e,t,n=ZK){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function eX(e=Op,t){switch(t.type){case y1:break;case l4:case c4:case _1:case f4:return Op;case m1:case u4:case w1:case b1:default:return s4}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=oK(n,r);if(!(o.length>0||!QK(n,r)))return Op;const a=r[r.length-1],u=n[n.length-1];return a!==u&&(a&&o.push(a),u&&o.push(u)),o}function tX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){tX(e,o,n[o])})}return e}const q5={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function rX(e=q5,t){const{payload:n}=t;switch(t.type){case a4:case m1:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case y1:return JK(e.clientOffset,n.clientOffset)?e:nX({},e,{clientOffset:n.clientOffset});case w1:case b1:return q5;default:return e}}function oX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Il(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){oX(e,o,n[o])})}return e}const iX={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function aX(e=iX,t){const{payload:n}=t;switch(t.type){case m1:return Il({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case u4:return Il({},e,{isSourcePublic:!0});case y1:return Il({},e,{targetIds:n.targetIds});case _1:return e.targetIds.indexOf(n.targetId)===-1?e:Il({},e,{targetIds:rK(e.targetIds,n.targetId)});case b1:return Il({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case w1:return Il({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function uX(e=0,t){switch(t.type){case l4:case c4:return e+1;case f4:case _1:return e-1;default:return e}}function sX(e=0){return e+1}function lX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){lX(e,o,n[o])})}return e}function fX(e={},t){return{dirtyHandlerIds:eX(e.dirtyHandlerIds,{type:t.type,payload:cX({},t.payload,{prevTargetIds:nK(e,"dragOperation.targetIds",[])})}),dragOffset:rX(e.dragOffset,t),refCount:uX(e.refCount,t),dragOperation:aX(e.dragOperation,t),stateId:sX(e.stateId)}}function dX(e,t=void 0,n={},r=!1){const o=pX(r),i=new FK(o,new YK(o)),a=new OK(o,i),u=e(a,t,n);return a.receiveBackend(u),a}function pX(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return kj(fX,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function G5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hX(e){if(Array.isArray(e))return e}function gX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,u;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(s){i=!0,u=s}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw u}}return r}}function vX(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mX(e,t){return hX(e)||gX(e,t)||yX(e,t)||vX()}function yX(e,t){if(e){if(typeof e=="string")return G5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G5(e,t)}}var K5=0,vm=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function bX(e){return"manager"in e&&e.manager}function wX(e){if(bX(e)){var t=e.manager;return[t,!1]}var n=_X(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[n,r]}function _X(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fj(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=t;return o[vm]||(o[vm]=dX(e,t,n,r)),o[vm]}function Fj(){return typeof globalThis<"u"?globalThis:typeof global<"u"?global:window}const xX=re({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(t,n){var r=n.slots,o=mX(wX(t),2),i=o[0],a=o[1];a&&++K5,wf(function(){if(a){var s=Fj();--K5===0&&(s[vm]=null)}}),JG(i);var u;return function(){var s;return(u=(s=r.default)===null||s===void 0?void 0:s.call(r))!==null&&u!==void 0?u:null}}});function CX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Fb=!1,Mb=!1,SX=(function(){function e(n){CX(this,e),this.sourceId=null,this.internalMonitor=n.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(r){this.sourceId=r},t.getHandlerId=function(){return this.sourceId},t.canDrag=function(){Ge(!Fb,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Fb=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Fb=!1}},t.isDragging=function(){if(!this.sourceId)return!1;Ge(!Mb,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Mb=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Mb=!1}},t.subscribeToStateChange=function(r,o){return this.internalMonitor.subscribeToStateChange(r,o)},t.isDraggingSource=function(r){return this.internalMonitor.isDraggingSource(r)},t.isOverTarget=function(r,o){return this.internalMonitor.isOverTarget(r,o)},t.getTargetIds=function(){return this.internalMonitor.getTargetIds()},t.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},t.getSourceId=function(){return this.internalMonitor.getSourceId()},t.subscribeToOffsetChange=function(r){return this.internalMonitor.subscribeToOffsetChange(r)},t.canDragSource=function(r){return this.internalMonitor.canDragSource(r)},t.canDropOnTarget=function(r){return this.internalMonitor.canDropOnTarget(r)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e})();function EX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ib=!1,DX=(function(){function e(n){EX(this,e),this.targetId=null,this.internalMonitor=n.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(r){this.targetId=r},t.getHandlerId=function(){return this.targetId},t.subscribeToStateChange=function(r,o){return this.internalMonitor.subscribeToStateChange(r,o)},t.canDrop=function(){if(!this.targetId)return!1;Ge(!Ib,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Ib=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Ib=!1}},t.isOver=function(r){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,r):!1},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e})(),kX=function(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e};function OX(e){return e?e.__v_isVNode===!0:!1}function AX(e){return e?e.__v_skip:!1}function TX(e){return OX(e)&&kX(e.type)!=="symbol"}function BX(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}function PX(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(AX(t)&&BX(),!TX(t)){var r=t;return e(r,n),r}}}function Mj(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=PX(r);t[n]=function(){return o}}}),t}function hC(e,t,n,r){let o;if(o!==void 0)return!!o;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const u=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s<i.length;s++){const l=i[s];if(!u(l))return!1;const c=e[l],f=t[l];if(o=void 0,o===!1||o===void 0&&c!==f)return!1}return!0}function FX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function IX(e,t,n){return t&&MX(e.prototype,t),e}var jX=(function(){function e(n){var r=this;FX(this,e),this.hooks=Mj({dragSource:function(o,i){r.clearDragSource(),r.dragSourceOptions=i||null,r.dragSourceNode=o,r.reconnectDragSource()},dragPreview:function(o,i){r.clearDragPreview(),r.dragPreviewOptions=i||null,r.dragPreviewNode=o,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=n}var t=e.prototype;return t.receiveHandlerId=function(r){this.handlerId!==r&&(this.handlerId=r,this.reconnect())},t.reconnect=function(){var r=this.reconnectDragSource();this.reconnectDragPreview(r)},t.reconnectDragSource=function(){var r=this.dragSource,o=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return o&&this.disconnectDragSource(),this.handlerId?r?(o&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=r,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,r,this.dragSourceOptions)),o):(this.lastConnectedDragSource=r,o):o},t.reconnectDragPreview=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=this.dragPreview,i=r||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(i&&this.disconnectDragPreview(),!!this.handlerId){if(!o){this.lastConnectedDragPreview=o;return}i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=o,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,o,this.dragPreviewOptions))}},t.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},t.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},t.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},t.didDragSourceOptionsChange=function(){return!hC(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},t.didDragPreviewOptionsChange=function(){return!hC(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},t.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},t.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},t.clearDragSource=function(){this.dragSourceNode=null},t.clearDragPreview=function(){this.dragPreviewNode=null},IX(e,[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(r){this.dragSourceOptionsInternal=r}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(r){this.dragPreviewOptionsInternal=r}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}]),e})();function LX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function NX(e,t,n){return t&&RX(e.prototype,t),e}var $X=(function(){function e(n){var r=this;LX(this,e),this.hooks=Mj({dropTarget:function(o,i){r.clearDropTarget(),r.dropTargetOptions=i,ze(o)?r.dropTargetRef=o:r.dropTargetNode=o,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=n}var t=e.prototype;return t.reconnect=function(){var r=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();r&&this.disconnectDropTarget();var o=this.dropTarget;if(this.handlerId){if(!o){this.lastConnectedDropTarget=o;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=o,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,o,this.dropTargetOptions))}},t.receiveHandlerId=function(r){r!==this.handlerId&&(this.handlerId=r,this.reconnect())},t.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},t.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},t.didOptionsChange=function(){return!hC(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},t.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},t.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},NX(e,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(r){this.dropTargetOptionsInternal=r}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}]),e})();function UX(e,t,n){var r=_(n).getRegistry(),o=r.addTarget(_(e),_(t));return[o,function(){return r.removeTarget(o)}]}function zX(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}function HX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var VX=(function(){function e(n,r,o){HX(this,e),this.spec=n,this.monitor=r,this.connector=o}var t=e.prototype;return t.beginDrag=function(){var r=this.spec,o=this.monitor,i=null;return typeof r.item=="object"?i=r.item:typeof r.item=="function"?i=r.item(o):i={},i!=null?i:null},t.canDrag=function(){var r=this.spec,o=this.monitor;return typeof r.canDrag=="boolean"?r.canDrag:typeof r.canDrag=="function"?r.canDrag(o):!0},t.isDragging=function(r,o){var i=this.spec,a=this.monitor,u=i.isDragging;return u?u(a):o===r.getSourceId()},t.endDrag=function(){var r=this.spec,o=this.monitor,i=this.connector,a=r.end;a&&a(o.getItem(),o),i.reconnect()},e})();function WX(e,t,n){var r=ve(function(){return new VX(_(e),_(t),_(n))});return Xo(function(){r.value.spec=_(e)}),r}function _f(){var e=QG();return Ge(e!=null,"Expected drag drop context"),e}function qX(e){return ve(function(){var t=_(e).type;return Ge(t!=null,"spec.type must be defined"),t})}function X5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GX(e){if(Array.isArray(e))return e}function KX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,u;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(s){i=!0,u=s}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw u}}return r}}function XX(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function YX(e,t){return GX(e)||KX(e,t)||ZX(e,t)||XX()}function ZX(e,t){if(e){if(typeof e=="string")return X5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X5(e,t)}}function JX(e,t,n){var r=_f(),o=WX(e,t,n),i=qX(e);Xo(function(u){if(_(i)!=null){var s=YX(zX(_(i),_(o),_(r)),2),l=s[0],c=s[1];_(t).receiveHandlerId(l),_(n).receiveHandlerId(l),u(c)}})}function Ij(e){return ve(function(){return typeof e=="function"?e():e})}function QX(){var e=_f();return ve(function(){return new SX(_(e))})}function eY(e,t){var n=_f(),r=ve(function(){return new jX(_(n).getBackend())});return Xo(function(o){r.value.dragSourceOptions=_(e)||null,_(r).reconnect(),o(function(){r.value.disconnectDragSource()})}),Xo(function(o){r.value.dragPreviewOptions=_(t)||null,_(r).reconnect(),o(function(){r.value.disconnectDragPreview()})}),r}var jb,Y5;function tY(){return Y5||(Y5=1,jb=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}),jb}var nY=tY();const jj=oq(nY);function rY(e,t,n){var r=ie(_(t)(_(e))),o=function(){var i=_(t)(_(e));jj(r.value,i)||(r.value=i,n&&n())};return Xo(o),[r,o]}function Z5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oY(e){if(Array.isArray(e))return e}function iY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,u;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(s){i=!0,u=s}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw u}}return r}}function aY(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function uY(e,t){return oY(e)||iY(e,t)||sY(e,t)||aY()}function sY(e,t){if(e){if(typeof e=="string")return Z5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z5(e,t)}}function lY(e,t,n){var r=uY(rY(e,t,n),2),o=r[0],i=r[1];return Xo(function(u){var s=_(e).getHandlerId();s!=null&&u(_(e).subscribeToStateChange(i,{handlerIds:[s]}))}),o}function Lj(e,t,n){var r=function(){return{}};return lY(t,e||r,function(){return _(n).reconnect()})}function d4(e,t){var n=tt({el:null,options:_(t)});Xo(function(){e(n)},{flush:"post"});var r=function(o,i){R5(n,"el",o);var a=_(t)||i;return jj(n.options,a)||R5(n,"options",a),_(o)};return r}function cY(e,t){return d4(function(n){_(e).hooks.dragSource()(n.el,n.options)},ve(function(){return _(t).options}))}function fY(e,t){return d4(function(n){_(e).hooks.dragPreview()(n.el,n.options)},ve(function(){return _(t).previewOptions}))}function e0(e){var t=Ij(e),n=QX(),r=eY(ve(function(){return _(t).options}),ve(function(){return _(t).previewOptions}));return JX(t,n,r),[Lj(ve(function(){return _(t).collect||function(){return{}}}),n,r),cY(r,t),fY(r,t)]}function dY(e){return ve(function(){var t=_(e).accept;return Ge(t!=null,"accept must be defined"),Array.isArray(t)?t:[t]})}function pY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var hY=(function(){function e(n,r){pY(this,e),this.spec=n,this.monitor=r}var t=e.prototype;return t.canDrop=function(){var r=this.spec,o=this.monitor;return r.canDrop?r.canDrop(o.getItem(),o):!0},t.hover=function(){var r=this.spec,o=this.monitor;r.hover&&r.hover(o.getItem(),o)},t.drop=function(){var r=this.spec,o=this.monitor;if(r.drop)return r.drop(o.getItem(),o)},e})();function gY(e,t){var n=ve(function(){return new hY(_(e),_(t))});return Xo(function(){n.value.spec=_(e)}),n}function J5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vY(e){if(Array.isArray(e))return e}function mY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,u;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(s){i=!0,u=s}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw u}}return r}}function yY(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bY(e,t){return vY(e)||mY(e,t)||wY(e,t)||yY()}function wY(e,t){if(e){if(typeof e=="string")return J5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J5(e,t)}}function _Y(e,t,n){var r=_f(),o=gY(e,t),i=dY(e);Xo(function(u){var s=bY(UX(i,o,r),2),l=s[0],c=s[1];_(t).receiveHandlerId(l),_(n).receiveHandlerId(l),u(c)})}function xY(){var e=_f();return ve(function(){return new DX(_(e))})}function CY(e){var t=_f(),n=ve(function(){return new $X(_(t).getBackend())});return Xo(function(r){n.value.dropTargetOptions=_(e)||null,n.value.reconnect(),r(function(){return n.value.disconnectDropTarget()})}),n}function SY(e,t){return d4(function(n){_(e).hooks.dropTarget()(n.el,n.options)},ve(function(){return _(t).options}))}function p4(e){var t=Ij(e),n=xY(),r=CY(ve(function(){return _(t).options}));return _Y(t,n,r),[Lj(ve(function(){return _(t).collect||function(){return{}}}),n,r),SY(r,t)]}function Rj(e){let t=null;return()=>(t==null&&(t=e()),t)}function EY(e,t){return e.filter(n=>n!==t)}function DY(e,t){const n=new Set,r=i=>n.add(i);e.forEach(r),t.forEach(r);const o=[];return n.forEach(i=>o.push(i)),o}class kY{enter(t){const n=this.entered.length,r=o=>this.isNodeInDocument(o)&&(!o.contains||o.contains(t));return this.entered=DY(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=EY(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class OY{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const o=this.config.exposeProperties[r];o!=null&&(n[r]={value:o(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Nj="__NATIVE_FILE__",$j="__NATIVE_URL__",Uj="__NATIVE_TEXT__",zj="__NATIVE_HTML__",Q5=Object.freeze(Object.defineProperty({__proto__:null,FILE:Nj,HTML:zj,TEXT:Uj,URL:$j},Symbol.toStringTag,{value:"Module"}));function Lb(e,t,n){const r=t.reduce((o,i)=>o||e.getData(i),"");return r!=null?r:n}const gC={[Nj]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[zj]:{exposeProperties:{html:(e,t)=>Lb(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[$j]:{exposeProperties:{urls:(e,t)=>Lb(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Uj]:{exposeProperties:{text:(e,t)=>Lb(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function AY(e,t){const n=gC[e];if(!n)throw new Error("native type ".concat(e," has no configuration"));const r=new OY(n);return r.loadDataTransfer(t),r}function Rb(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(gC).filter(n=>{const r=gC[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(o=>t.indexOf(o)>-1):!1})[0]||null}const TY=Rj(()=>/firefox/i.test(navigator.userAgent)),Hj=Rj(()=>!!window.safari);class ek{interpolate(t){const{xs:n,ys:r,c1s:o,c2s:i,c3s:a}=this;let u=n.length-1;if(t===n[u])return r[u];let s=0,l=a.length-1,c;for(;s<=l;){c=Math.floor(.5*(s+l));const d=n[c];if(d<t)s=c+1;else if(d>t)l=c-1;else return r[c]}u=Math.max(0,l);const f=t-n[u],p=f*f;return r[u]+o[u]*f+i[u]*p+a[u]*f*p}constructor(t,n){const{length:r}=t,o=[];for(let d=0;d<r;d++)o.push(d);o.sort((d,m)=>t[d]<t[m]?-1:1);const i=[],a=[];let u,s;for(let d=0;d<r-1;d++)u=t[d+1]-t[d],s=n[d+1]-n[d],i.push(u),a.push(s/u);const l=[a[0]];for(let d=0;d<i.length-1;d++){const m=a[d],v=a[d+1];if(m*v<=0)l.push(0);else{u=i[d];const h=i[d+1],y=u+h;l.push(3*y/((y+h)/m+(y+u)/v))}}l.push(a[a.length-1]);const c=[],f=[];let p;for(let d=0;d<l.length-1;d++){p=a[d];const m=l[d],v=1/i[d],h=m+l[d+1]-p-p;c.push((p-m-h)*v),f.push(h*v*v)}this.xs=t,this.ys=n,this.c1s=l,this.c2s=c,this.c3s=f}}const BY=1;function Vj(e){const t=e.nodeType===BY?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function uv(e){return{x:e.clientX,y:e.clientY}}function PY(e){var t;return e.nodeName==="IMG"&&(TY()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function FY(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return Hj()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}function MY(e,t,n,r,o){const i=PY(t),u=Vj(i?e:t),s={x:n.x-u.x,y:n.y-u.y},{offsetWidth:l,offsetHeight:c}=e,{anchorX:f,anchorY:p}=r,{dragPreviewWidth:d,dragPreviewHeight:m}=FY(i,t,l,c),v=()=>{let k=new ek([0,.5,1],[s.y,s.y/c*m,s.y+m-c]).interpolate(p);return Hj()&&i&&(k+=(window.devicePixelRatio-1)*m),k},h=()=>new ek([0,.5,1],[s.x,s.x/l*d,s.x+d-l]).interpolate(f),{offsetX:y,offsetY:g}=o,b=y===0||y,w=g===0||g;return{x:b?y:h(),y:w?g:v()}}class IY{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}}function jY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){jY(e,o,n[o])})}return e}class LY{profile(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const o=a=>this.handleDragStart(a,t),i=a=>this.handleSelectStart(a);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",o),n.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",o),n.removeEventListener("selectstart",i),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=a=>this.handleDragEnter(a,t),o=a=>this.handleDragOver(a,t),i=a=>this.handleDrop(a,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",o),n.addEventListener("drop",i),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",o),n.removeEventListener("drop",i)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return tk({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return tk({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(Q5).some(n=>Q5[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=AY(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=o=>{const i=this.sourceNodes.get(o);return i&&Vj(i)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=o=>!!(o&&this.document&&this.document.body&&this.document.body.contains(o)),this.endDragIfSourceWasRemovedFromDOM=()=>{const o=this.currentDragSourceNode;o==null||this.isNodeInDocument(o)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=o=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(o||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=o=>{if(o.defaultPrevented)return;const{dragStartSourceIds:i}=this;this.dragStartSourceIds=null;const a=uv(o);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(i||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:u}=o,s=Rb(u);if(this.monitor.isDragging()){if(u&&typeof u.setDragImage=="function"){const c=this.monitor.getSourceId(),f=this.sourceNodes.get(c),p=this.sourcePreviewNodes.get(c)||f;if(p){const{anchorX:d,anchorY:m,offsetX:v,offsetY:h}=this.getCurrentSourcePreviewNodeOptions(),b=MY(f,p,a,{anchorX:d,anchorY:m},{offsetX:v,offsetY:h});u.setDragImage(p,b.x,b.y)}}try{u==null||u.setData("application/json",{})}catch(c){}this.setCurrentDragSourceNode(o.target);const{captureDraggingState:l}=this.getCurrentSourcePreviewNodeOptions();l?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(s)this.beginDragNativeItem(s);else{if(u&&!u.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=o=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(o.dataTransfer)}if(!this.enterLeaveCounter.enter(o.target)||this.monitor.isDragging())return;const{dataTransfer:u}=o,s=Rb(u);s&&this.beginDragNativeItem(s,u)},this.handleTopDragEnter=o=>{const{dragEnterTargetIds:i}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=o.altKey,i.length>0&&this.actions.hover(i,{clientOffset:uv(o)}),i.some(u=>this.monitor.canDropOnTarget(u))&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=o=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(o.dataTransfer)}},this.handleTopDragOver=o=>{const{dragOverTargetIds:i}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}this.altKeyPressed=o.altKey,this.lastClientOffset=uv(o),this.scheduleHover(i),(i||[]).some(u=>this.monitor.canDropOnTarget(u))?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=o=>{this.isDraggingNativeItem()&&o.preventDefault(),this.enterLeaveCounter.leave(o.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=o=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var i;o.preventDefault(),(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(o.dataTransfer)}else Rb(o.dataTransfer)&&o.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=o=>{const{dropTargetIds:i}=this;this.dropTargetIds=[],this.actions.hover(i,{clientOffset:uv(o)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=o=>{const i=o.target;typeof i.dragDrop=="function"&&(i.tagName==="INPUT"||i.tagName==="SELECT"||i.tagName==="TEXTAREA"||i.isContentEditable||(o.preventDefault(),i.dragDrop()))},this.options=new IY(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new kY(this.isNodeInDocument)}}const RY=function(t,n,r){return new LY(t,n,r)},NY=Symbol("EmailEditorContext");function $Y(e){tj(NY,e)}const UY=re({__name:"EditorProvider",setup(e){const t=og();return $Y({store:t}),(n,r)=>(Y(),De(_(xX),{backend:_(RY)},{default:P(()=>[br(n.$slots,"default")]),_:3},8,["backend"]))}}),$t=()=>{const e=og(),{version:t,selectedBlockKey:n,selectedBlockType:r,columnsSource:o,columnsMap:i,columnsConfigMap:a,cellMap:u,cellConfigMap:s,blockMap:l,blockConfigMap:c,pageConfig:f}=ju(e),{autoSaveFn:p}=Pr(),d=ve(()=>o.value.map(L=>i.value[L])),m=(L,B)=>{n.value=L,r.value=B},v=()=>{const B={key:Yi(),type:"columns",name:"Columns",children:[]};return h(B),B},h=L=>{const B=y(L.key);a.value[L.key]=B},y=L=>{const B=new Date,E=Rt(wj);return E.key=L,E.meta.version=t.value,E.meta.createdAt=bt(B,"yyyy-MM-dd HH:mm:ss"),E.meta.updatedAt=bt(B,"yyyy-MM-dd HH:mm:ss"),E},g=L=>{const B=v();i.value[B.key]=B,x(B.key),o.value.splice(L,0,B.key),p()},b=()=>{const L=Yi(),B={key:L,width:100,name:"Cell",type:"cell",children:[]};return u.value[L]=B,s.value[L]=w(B.key),B},w=L=>{const B=new Date,E=Rt(_j);return E.key=L,E.meta.version=t.value,E.meta.createdAt=bt(B,"yyyy-MM-dd HH:mm:ss"),E.meta.updatedAt=bt(B,"yyyy-MM-dd HH:mm:ss"),E},x=L=>{const B=i.value[L];if(B){const E=b();B.children.push(E.key)}},k=(L,B)=>{if(L<0||L>=o.value.length||B<0||B>o.value.length){console.warn("Move column: 索引超出范围");return}const E=o.value[L],O=[...o.value];O.splice(L,1);const M=L<B?B-1:B;O.splice(M,0,E),o.value=O,p()},D=(L,B)=>{const E=i.value[L];if(E){const O=E.children.findIndex(M=>M===B);O>-1&&(E.children.splice(O,1),delete u.value[B])}},T=(L,B)=>{const E=i.value[L];if(!E||!i.value[L])return;const M=E.children.length,V=B.length,Q=V-M;if(Q>0)for(let Z=0;Z<Q;Z++){const le=b();E.children.push(le.key)}else Q<0&&E.children.slice(V,Math.abs(Q)).forEach(le=>{D(L,le)});B.forEach((Z,le)=>{E.children[le]&&(u.value[E.children[le]].width=Z)}),p()},A=L=>{const B=wG.get(L.type);if(B){const E=new Date,O=Rt(B);O.key=L.key,O.name=L.name,O.meta.version=t.value,O.meta.createdAt=bt(E,"yyyy-MM-dd HH:mm:ss"),O.meta.updatedAt=bt(E,"yyyy-MM-dd HH:mm:ss"),c.value[L.key]=O}},F=(L,B,E)=>{const O=u.value[B];if(O){const V={key:Yi(),type:E.type,name:"".concat(E.name)};A(V),l.value[V.key]=V,O.children.splice(L,0,V.key),p()}},j=(L,B,E)=>{const O=u.value[L];if(!O||!O.children)return;const M=O.children[B];if(!M||B===E)return;O.children.splice(B,1);const V=B<E?E-1:E;O.children.splice(V,0,M),p()},R=(L,B,E,O,M)=>{if(L===B)return j(L,E,O);const V=u.value[L],Q=u.value[B];if(!V||!V.children||!Q||!Q.children||V.children[E]!==M)return;const Z=V.children.splice(E,1);Q.children.splice(O,0,Z[0]),p()},U=(L,B,E=!0)=>{const O=Rt(l.value[B]),M=Rt(c.value[B]),V=u.value[L];if(V){const Q=Yi();O.key=Q,M.key=Q,M.meta={version:t.value,createdAt:bt(new Date,"yyyy-MM-dd HH:mm:ss"),updatedAt:bt(new Date,"yyyy-MM-dd HH:mm:ss")};const Z=V.children.findIndex(le=>le===B);l.value[Q]=O,c.value[Q]=M,Z?V.children.splice(Z+1,0,Q):V.children.push(Q)}E&&p()},H=(L,B)=>{const E=Rt(u.value[B]),O=Rt(s.value[B]),M=Yi();E.key=M,E.children=[],O.key=M,O.meta={version:t.value,createdAt:bt(new Date,"yyyy-MM-dd HH:mm:ss"),updatedAt:bt(new Date,"yyyy-MM-dd HH:mm:ss")},u.value[M]=E,s.value[M]=O,u.value[B].children.forEach(Q=>{U(M,Q,!1)});const V=i.value[L];V&&V.children.push(M)},G=L=>{const B=Rt(i.value[L]),E=Rt(a.value[L]),O=Yi();B.key=O,B.children=[],E.key=O,E.meta={version:t.value,createdAt:bt(new Date,"yyyy-MM-dd HH:mm:ss"),updatedAt:bt(new Date,"yyyy-MM-dd HH:mm:ss")},i.value[O]=B,a.value[O]=E;const M=o.value.findIndex(V=>V===L);o.value.splice(M+1,0,O),i.value[L].children.forEach(V=>{H(O,V)}),p()},X=(L,B,E=!0)=>{const O=u.value[L];if(O){const M=O.children.findIndex(V=>V===B);M>-1&&(m("",""),O.children.splice(M,1),delete l.value[B],delete c.value[B])}E&&p()},oe=(L,B)=>{const E=u.value[L],O=i.value[B];if(E){E.children.forEach(V=>{X(L,V,!1)});const M=O.children.findIndex(V=>V===L);M>-1&&(delete u.value[L],delete s.value[L],O.children.splice(M,1))}};return{columnsSource:o,columnsMap:i,columnsMaps:d,columnsConfigMap:a,cellMap:u,cellConfigMap:s,blockMap:l,blockConfigMap:c,selectedBlockKey:n,selectedBlockType:r,pageConfig:f,selectBlock:m,insertColumnSourceAt:g,moveColumnSource:k,generateNewCell:b,applyNewWidthColumnsInCell:T,delColumnsInCell:D,insertBlockToCell:F,moveBlockInCell:j,moveBlockBetweenCells:R,duplicateBlock:U,duplicateColumn:G,removeBlock:X,removeColumn:L=>{const B=o.value.findIndex(E=>E===L);B>-1&&(m("",""),i.value[L].children.forEach(E=>{oe(E,L)}),delete i.value[L],delete a.value[L],o.value.splice(B,1)),p()}}},zY={class:"block-toolbar"},HY=re({__name:"Toolbar",props:{cellKey:{type:String,required:!0},data:{type:Object,required:!0}},setup(e){const{duplicateBlock:t,duplicateColumn:n,removeBlock:r,removeColumn:o}=$t(),i=()=>{e.data.type!=="columns"?t(e.cellKey,e.data.key):n(e.data.key)},a=()=>{e.data.type!=="columns"?r(e.cellKey,e.data.key):o(e.data.key)};return(u,s)=>{const l=f1;return Y(),ae("div",zY,[$("button",{class:"tool-btn",onClick:Qm(i,["stop"])},[C(l,{name:"drag-copy",size:"16",color:"#fff"})]),$("button",{class:"tool-btn",onClick:Qm(a,["stop"])},[C(l,{name:"drag-remove",size:"16",color:"#fff"})])])}}}),VY=gt(HY,[["__scopeId","data-v-091fc6b8"]]),WY=["data-block-id"],qY={class:"block-section"},GY={class:"block-content"},KY=re({__name:"Section",props:{data:{type:Object,required:!0},cellKey:{type:String,default:""},blockType:{type:String,required:!0},blockIndex:{type:Number,default:-1}},emits:["select","unSelect"],setup(e,{emit:t}){const n=t,{selectedBlockKey:r,columnsConfigMap:o,blockConfigMap:i,selectBlock:a}=$t(),{configToStyle:u}=ei(),s=ve(()=>r.value===e.data.key),l=()=>{a(e.data.key,e.data.type),n("select")},c=ve(()=>{let y={};return e.data.type==="columns"?y=o.value[e.data.key].containerStyle:y=i.value[e.data.key].containerStyle,u(y)}),[f,p,d]=e0(()=>({type:"SORT_BASE_BLOCK",item:()=>({type:"SORT_BASE_BLOCK",sourceIndex:e.blockIndex,sourceCellKey:e.cellKey,blockData:Rt(e.data)}),collect:y=>({isDragging:y.isDragging()})})),[m,v]=e0(()=>({type:"SORT_COLUMNS_BLOCK",item:()=>({type:"SORT_COLUMNS_BLOCK",sourceIndex:e.blockIndex,blockData:Rt(e.data)}),collect:y=>({isDragging:y.isDragging()})})),h=ve(()=>f.value.isDragging||m.value.isDragging);return qo(()=>h.value,y=>{y===!0&&n("unSelect")}),qo(()=>s.value,(y,g)=>{y===!1&&g===!0&&n("unSelect")}),(y,g)=>(Y(),ae("div",{ref:_(d),class:Di(["block-base",["block-".concat(e.blockType),{"is-selected":_(s)},{"is-dragging":_(h)}]]),"data-block-id":e.data.key,style:er(_(c)),onClick:Qm(l,["stop"])},[$("div",qY,[Go(C(VY,{"cell-key":e.cellKey,data:e.data},null,8,["cell-key","data"]),[[Ko,_(s)&&!_(h)]]),e.data.type==="columns"?(Y(),ae("div",{key:0,ref:_(v),class:"drag-handle columns-drag-handle"},g[0]||(g[0]=[$("i",{class:"drag-icon"},"≡",-1)]),512)):$n("",!0),e.data.type!=="columns"?(Y(),ae("div",{key:1,ref:_(p),class:"drag-handle"},g[1]||(g[1]=[$("i",{class:"drag-icon"},"≡",-1)]),512)):$n("",!0)]),$("div",GY,[br(y.$slots,"default",{},void 0,!0)])],14,WY))}}),Nu=gt(KY,[["__scopeId","data-v-24248443"]]);var Et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function XY(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yl(e){var t={exports:{}};return e(t,t.exports),t.exports}var Da,mm,sv=function(e){return e&&e.Math==Math&&e},$e=sv(typeof globalThis=="object"&&globalThis)||sv(typeof window=="object"&&window)||sv(typeof self=="object"&&self)||sv(typeof Et=="object"&&Et)||(function(){return this})()||Function("return this")(),h4=Function.prototype,nk=h4.apply,YY=h4.bind,rk=h4.call,Wj=typeof Reflect=="object"&&Reflect.apply||(YY?rk.bind(nk):function(){return rk.apply(nk,arguments)}),qj=Function.prototype,vC=qj.bind,mC=qj.call,ZY=vC&&vC.bind(mC),Ft=vC?function(e){return e&&ZY(mC,e)}:function(e){return e&&function(){return mC.apply(e,arguments)}},zn=function(e){return typeof e=="function"},kr=function(e){try{return!!e()}catch(t){return!0}},xr=!kr((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),qf=Function.prototype.call,Nr=qf.bind?qf.bind(qf):function(){return qf.apply(qf,arguments)},ok={}.propertyIsEnumerable,ik=Object.getOwnPropertyDescriptor,JY=ik&&!ok.call({1:2},1)?function(e){var t=ik(this,e);return!!t&&t.enumerable}:ok,g4={f:JY},$o=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},QY=Ft({}.toString),eZ=Ft("".slice),Os=function(e){return eZ(QY(e),8,-1)},Nb=$e.Object,tZ=Ft("".split),Gj=kr((function(){return!Nb("z").propertyIsEnumerable(0)}))?function(e){return Os(e)=="String"?tZ(e,""):Nb(e)}:Nb,nZ=$e.TypeError,v4=function(e){if(e==null)throw nZ("Can't call method on "+e);return e},Ii=function(e){return Gj(v4(e))},so=function(e){return typeof e=="object"?e!==null:zn(e)},Lr={},ak=function(e){return zn(e)?e:void 0},xf=function(e,t){return arguments.length<2?ak(Lr[e])||ak($e[e]):Lr[e]&&Lr[e][t]||$e[e]&&$e[e][t]},Qp=Ft({}.isPrototypeOf),$b=xf("navigator","userAgent")||"",uk=$e.process,sk=$e.Deno,lk=uk&&uk.versions||sk&&sk.version,ck=lk&&lk.v8;ck&&(mm=(Da=ck.split("."))[0]>0&&Da[0]<4?1:+(Da[0]+Da[1])),!mm&&$b&&(!(Da=$b.match(/Edge\/(\d+)/))||Da[1]>=74)&&(Da=$b.match(/Chrome\/(\d+)/))&&(mm=+Da[1]);var lv,t0=mm,ci=!!Object.getOwnPropertySymbols&&!kr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t0&&t0<41})),m4=ci&&!Symbol.sham&&typeof Symbol.iterator=="symbol",rZ=$e.Object,Ac=m4?function(e){return typeof e=="symbol"}:function(e){var t=xf("Symbol");return zn(t)&&Qp(t.prototype,rZ(e))},oZ=$e.String,yC=function(e){try{return oZ(e)}catch(t){return"Object"}},iZ=$e.TypeError,y4=function(e){if(zn(e))return e;throw iZ(yC(e)+" is not a function")},n0=function(e,t){var n=e[t];return n==null?void 0:y4(n)},aZ=$e.TypeError,uZ=Object.defineProperty,ru=$e["__core-js_shared__"]||(function(e,t){try{uZ($e,e,{value:t,configurable:!0,writable:!0})}catch(n){$e[e]=t}return t})("__core-js_shared__",{}),bl=yl((function(e){(e.exports=function(t,n){return ru[t]||(ru[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),sZ=$e.Object,ig=function(e){return sZ(v4(e))},lZ=Ft({}.hasOwnProperty),ot=Object.hasOwn||function(e,t){return lZ(ig(e),t)},cZ=0,fZ=Math.random(),dZ=Ft(1 .toString),r0=function(e){return"Symbol("+(e===void 0?"":e)+")_"+dZ(++cZ+fZ,36)},Gf=bl("wks"),As=$e.Symbol,fk=As&&As.for,pZ=m4?As:As&&As.withoutSetter||r0,ir=function(e){if(!ot(Gf,e)||!ci&&typeof Gf[e]!="string"){var t="Symbol."+e;ci&&ot(As,e)?Gf[e]=As[e]:Gf[e]=m4&&fk?fk(t):pZ(t)}return Gf[e]},hZ=$e.TypeError,gZ=ir("toPrimitive"),vZ=function(e,t){if(!so(e)||Ac(e))return e;var n,r=n0(e,gZ);if(r){if(n=Nr(r,e,t),!so(n)||Ac(n))return n;throw hZ("Can't convert object to primitive value")}return(function(o,i){var a,u;if(zn(a=o.toString)&&!so(u=Nr(a,o))||zn(a=o.valueOf)&&!so(u=Nr(a,o)))return u;throw aZ("Can't convert object to primitive value")})(e)},Cf=function(e){var t=vZ(e,"string");return Ac(t)?t:t+""},bC=$e.document,mZ=so(bC)&&so(bC.createElement),Kj=function(e){return mZ?bC.createElement(e):{}},Xj=!xr&&!kr((function(){return Object.defineProperty(Kj("div"),"a",{get:function(){return 7}}).a!=7})),dk=Object.getOwnPropertyDescriptor,yZ=xr?dk:function(e,t){if(e=Ii(e),t=Cf(t),Xj)try{return dk(e,t)}catch(n){}if(ot(e,t))return $o(!Nr(g4.f,e,t),e[t])},x1={f:yZ},bZ=/#|\.prototype\./,ag=function(e,t){var n=_Z[wZ(e)];return n==CZ||n!=xZ&&(zn(t)?kr(t):!!t)},wZ=ag.normalize=function(e){return String(e).replace(bZ,".").toLowerCase()},_Z=ag.data={},xZ=ag.NATIVE="N",CZ=ag.POLYFILL="P",SZ=ag,pk=Ft(Ft.bind),b4=function(e,t){return y4(e),t===void 0?e:pk?pk(e,t):function(){return e.apply(t,arguments)}},EZ=$e.String,DZ=$e.TypeError,zr=function(e){if(so(e))return e;throw DZ(EZ(e)+" is not an object")},kZ=$e.TypeError,hk=Object.defineProperty,OZ=xr?hk:function(e,t,n){if(zr(e),t=Cf(t),zr(n),Xj)try{return hk(e,t,n)}catch(r){}if("get"in n||"set"in n)throw kZ("Accessors not supported");return"value"in n&&(e[t]=n.value),e},$u={f:OZ},sr=xr?function(e,t,n){return $u.f(e,t,$o(1,n))}:function(e,t,n){return e[t]=n,e},AZ=x1.f,TZ=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return Wj(e,this,arguments)};return t.prototype=e.prototype,t},Zi=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,p=e.stat,d=e.proto,m=f?$e:p?$e[c]:($e[c]||{}).prototype,v=f?Lr:Lr[c]||sr(Lr,c,{})[c],h=v.prototype;for(o in t)n=!SZ(f?o:c+(p?".":"#")+o,e.forced)&&m&&ot(m,o),a=v[o],n&&(u=e.noTargetGet?(l=AZ(m,o))&&l.value:m[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?b4(i,$e):e.wrap&&n?TZ(i):d&&zn(i)?Ft(i):i,(e.sham||i&&i.sham||a&&a.sham)&&sr(s,"sham",!0),sr(v,o,s),d&&(ot(Lr,r=c+"Prototype")||sr(Lr,r,{}),sr(Lr[r],o,i),e.real&&h&&!h[o]&&sr(h,o,i)))},gk=bl("keys"),C1=function(e){return gk[e]||(gk[e]=r0(e))},BZ=!kr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),vk=C1("IE_PROTO"),wC=$e.Object,PZ=wC.prototype,o0=BZ?wC.getPrototypeOf:function(e){var t=ig(e);if(ot(t,vk))return t[vk];var n=t.constructor;return zn(n)&&t instanceof n?n.prototype:t instanceof wC?PZ:null},FZ=$e.String,MZ=$e.TypeError,i0=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=Ft(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,o){return zr(r),(function(i){if(typeof i=="object"||zn(i))return i;throw MZ("Can't set "+FZ(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),IZ=Math.ceil,jZ=Math.floor,w4=function(e){var t=+e;return t!=t||t===0?0:(t>0?jZ:IZ)(t)},LZ=Math.max,RZ=Math.min,_C=function(e,t){var n=w4(e);return n<0?LZ(n+t,0):RZ(n,t)},NZ=Math.min,ug=function(e){return(t=e.length)>0?NZ(w4(t),9007199254740991):0;var t},$Z=function(e){return function(t,n,r){var o,i=Ii(t),a=ug(i),u=_C(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},UZ={indexOf:$Z(!1)},sg={},zZ=UZ.indexOf,mk=Ft([].push),Yj=function(e,t){var n,r=Ii(e),o=0,i=[];for(n in r)!ot(sg,n)&&ot(r,n)&&mk(i,n);for(;t.length>o;)ot(r,n=t[o++])&&(~zZ(i,n)||mk(i,n));return i},a0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],HZ=a0.concat("length","prototype"),VZ=Object.getOwnPropertyNames||function(e){return Yj(e,HZ)},_4={f:VZ},ym={f:Object.getOwnPropertySymbols},WZ=Ft([].concat),qZ=xf("Reflect","ownKeys")||function(e){var t=_4.f(zr(e)),n=ym.f;return n?WZ(t,n(e)):t},x4=Object.keys||function(e){return Yj(e,a0)},GZ=xr?Object.defineProperties:function(e,t){zr(e);for(var n,r=Ii(t),o=x4(t),i=o.length,a=0;i>a;)$u.f(e,n=o[a++],r[n]);return e},KZ=xf("document","documentElement"),Zj=C1("IE_PROTO"),Ub=function(){},Jj=function(e){return"<script>"+e+"<\/script>"},yk=function(e){e.write(Jj("")),e.close();var t=e.parentWindow.Object;return e=null,t},bm=function(){try{lv=new ActiveXObject("htmlfile")}catch(r){}var e,t;bm=typeof document<"u"?document.domain&&lv?yk(lv):((t=Kj("iframe")).style.display="none",KZ.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Jj("document.F=Object")),e.close(),e.F):yk(lv);for(var n=a0.length;n--;)delete bm.prototype[a0[n]];return bm()};sg[Zj]=!0;var la=Object.create||function(e,t){var n;return e!==null?(Ub.prototype=zr(e),n=new Ub,Ub.prototype=null,n[Zj]=e):n=bm(),t===void 0?n:GZ(n,t)},xC=function(e,t,n){var r=Cf(t);r in e?$u.f(e,r,$o(0,n)):e[r]=n},XZ=$e.Array,YZ=Math.max,Qj=function(e,t,n){for(var r=ug(e),o=_C(t,r),i=_C(r,r),a=XZ(YZ(i-o,0)),u=0;o<i;o++,u++)xC(a,u,e[o]);return a.length=u,a},ZZ=Ft("".replace),JZ=Ft("".split),QZ=Ft([].join),CC=String(Error("zxcasd").stack),eL=/\n\s*at [^:]*:[^\n]*/,eJ=eL.test(CC),tJ=/@[^\n]*\n/.test(CC)&&!/zxcasd/.test(CC),nJ=function(e,t){if(typeof e!="string")return e;if(eJ)for(;t--;)e=ZZ(e,eL,"");else if(tJ)return QZ(Qj(JZ(e,"\n"),t),"\n");return e},rJ=function(e,t){so(t)&&"cause"in t&&sr(e,"cause",t.cause)},ia={},oJ=ir("iterator"),iJ=Array.prototype,tL={};tL[ir("toStringTag")]="z";var C4=String(tL)==="[object z]",aJ=ir("toStringTag"),uJ=$e.Object,sJ=Os((function(){return arguments})())=="Arguments",lg=C4?Os:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch(a){}})(t=uJ(e),aJ))=="string"?n:sJ?Os(t):(r=Os(t))=="Object"&&zn(t.callee)?"Arguments":r},lJ=ir("iterator"),bk=function(e){if(e!=null)return n0(e,lJ)||n0(e,"@@iterator")||ia[lg(e)]},cJ=$e.TypeError,wk=function(e,t,n){var r,o;zr(e);try{if(!(r=n0(e,"return"))){if(t==="throw")throw n;return n}r=Nr(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return zr(r),n},fJ=$e.TypeError,wm=function(e,t){this.stopped=e,this.result=t},_k=wm.prototype,dJ=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),m=b4(t,c),v=function(y){return r&&wk(r,"normal",y),new wm(!0,y)},h=function(y){return f?(zr(y),d?m(y[0],y[1],v):m(y[0],y[1])):d?m(y,v):m(y)};if(p)r=e;else{if(!(o=bk(e)))throw fJ(yC(e)+" is not iterable");if((function(y){return y!==void 0&&(ia.Array===y||iJ[oJ]===y)})(o)){for(i=0,a=ug(e);a>i;i++)if((u=h(e[i]))&&Qp(_k,u))return u;return new wm(!1)}r=(function(y,g){var b=arguments.length<2?bk(y):g;if(y4(b))return zr(Nr(b,y));throw cJ(yC(y)+" is not iterable")})(e,o)}for(s=r.next;!(l=Nr(s,r)).done;){try{u=h(l.value)}catch(y){wk(r,"throw",y)}if(typeof u=="object"&&u&&Qp(_k,u))return u}return new wm(!1)},pJ=$e.String,eh=function(e){if(lg(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return pJ(e)},hJ=function(e,t){return e===void 0?arguments.length<2?"":t:eh(e)},gJ=!kr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",$o(1,7)),e.stack!==7)})),vJ=ir("toStringTag"),u0=$e.Error,mJ=[].push,th=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Qp(zb,this);i0?n=i0(new u0(void 0),o?o0(this):zb):(n=o?this:la(zb),sr(n,vJ,"Error")),sr(n,"message",hJ(t,"")),gJ&&sr(n,"stack",nJ(n.stack,1)),rJ(n,r);var i=[];return dJ(e,mJ,{that:i}),sr(n,"errors",i),n};i0?i0(th,u0):(function(e,t){for(var n=qZ(t),r=$u.f,o=x1.f,i=0;i<n.length;i++){var a=n[i];ot(e,a)||r(e,a,o(t,a))}})(th,u0);var zb=th.prototype=la(u0.prototype,{constructor:$o(1,th),message:$o(1,""),name:$o(1,"AggregateError")});Zi({global:!0},{AggregateError:th});var yJ=Ft(Function.toString);zn(ru.inspectSource)||(ru.inspectSource=function(e){return yJ(e)});var s0,Ap,l0,nL=ru.inspectSource,xk=$e.WeakMap,bJ=zn(xk)&&/native code/.test(nL(xk)),SC=$e.TypeError,wJ=$e.WeakMap;if(bJ||ru.state){var Qu=ru.state||(ru.state=new wJ),_J=Ft(Qu.get),Ck=Ft(Qu.has),xJ=Ft(Qu.set);s0=function(e,t){if(Ck(Qu,e))throw new SC("Object already initialized");return t.facade=e,xJ(Qu,e,t),t},Ap=function(e){return _J(Qu,e)||{}},l0=function(e){return Ck(Qu,e)}}else{var jl=C1("state");sg[jl]=!0,s0=function(e,t){if(ot(e,jl))throw new SC("Object already initialized");return t.facade=e,sr(e,jl,t),t},Ap=function(e){return ot(e,jl)?e[jl]:{}},l0=function(e){return ot(e,jl)}}var Za,Sk,Ek,Sf={set:s0,get:Ap,has:l0,enforce:function(e){return l0(e)?Ap(e):s0(e,{})},getterFor:function(e){return function(t){var n;if(!so(t)||(n=Ap(t)).type!==e)throw SC("Incompatible receiver, "+e+" required");return n}}},rL=Function.prototype,CJ=xr&&Object.getOwnPropertyDescriptor,Dk=ot(rL,"name"),SJ={PROPER:Dk&&(function(){}).name==="something",CONFIGURABLE:Dk&&(!xr||xr&&CJ(rL,"name").configurable)},c0=function(e,t,n,r){sr(e,t,n)},EC=ir("iterator"),oL=!1;[].keys&&("next"in(Ek=[].keys())?(Sk=o0(o0(Ek)))!==Object.prototype&&(Za=Sk):oL=!0);var EJ=Za==null||kr((function(){var e={};return Za[EC].call(e)!==e}));Za=EJ?{}:la(Za),zn(Za[EC])||c0(Za,EC,(function(){return this}));var iL={IteratorPrototype:Za,BUGGY_SAFARI_ITERATORS:oL},DJ=C4?{}.toString:function(){return"[object "+lg(this)+"]"},kJ=$u.f,kk=ir("toStringTag"),f0=function(e,t,n,r){if(e){var o=n?e:e.prototype;ot(o,kk)||kJ(o,kk,{configurable:!0,value:t}),r&&!C4&&sr(o,"toString",DJ)}},OJ=iL.IteratorPrototype,AJ=function(){return this},TJ=SJ.PROPER,Hb=iL.BUGGY_SAFARI_ITERATORS,BJ=ir("iterator"),PJ=function(){return this},aL=function(e,t,n,r,o,i,a){(function(h,y,g,b){var w=y+" Iterator";h.prototype=la(OJ,{next:$o(1,g)}),f0(h,w,!1,!0),ia[w]=AJ})(n,t,r);var u,s,l=function(h){if(h===o&&m)return m;if(!Hb&&h in p)return p[h];switch(h){case"keys":case"values":case"entries":return function(){return new n(this,h)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,p=e.prototype,d=p[BJ]||p["@@iterator"]||o&&p[o],m=!Hb&&d||l(o),v=t=="Array"&&p.entries||d;return v&&(u=o0(v.call(new e)))!==Object.prototype&&u.next&&(f0(u,c,!0,!0),ia[c]=PJ),TJ&&o=="values"&&d&&d.name!=="values"&&(f=!0,m=function(){return Nr(d,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Zi({target:t,proto:!0,forced:Hb||f},s)),ia[t]=m,s},FJ=Sf.set,MJ=Sf.getterFor("Array Iterator");aL(Array,"Array",(function(e,t){FJ(this,{type:"Array Iterator",target:Ii(e),index:0,kind:t})}),(function(){var e=MJ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),ia.Arguments=ia.Array;var IJ=Ft("".charAt),Ok=Ft("".charCodeAt),jJ=Ft("".slice),LJ=function(e){return function(t,n){var r,o,i=eh(v4(t)),a=w4(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Ok(i,a))<55296||r>56319||a+1===u||(o=Ok(i,a+1))<56320||o>57343?e?IJ(i,a):r:e?jJ(i,a,a+2):o-56320+(r-55296<<10)+65536}},RJ={charAt:LJ(!0)}.charAt,NJ=Sf.set,$J=Sf.getterFor("String Iterator");aL(String,"String",(function(e){NJ(this,{type:"String Iterator",string:eh(e),index:0})}),(function(){var e,t=$J(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=RJ(n,r),t.index+=e.length,{value:e,done:!1})}));var UJ=Lr.AggregateError,Ak=ir("toStringTag");for(var Vb in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Tk=$e[Vb],Wb=Tk&&Tk.prototype;Wb&&lg(Wb)!==Ak&&sr(Wb,Ak,Vb),ia[Vb]=ia.Array}var ka,_m,zJ=UJ,cv=function(e){return e&&e.Math==Math&&e},Fe=cv(typeof globalThis=="object"&&globalThis)||cv(typeof window=="object"&&window)||cv(typeof self=="object"&&self)||cv(typeof Et=="object"&&Et)||(function(){return this})()||Function("return this")(),Mn=function(e){try{return!!e()}catch(t){return!0}},ki=!Mn((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Kf=Function.prototype.call,Nn=Kf.bind?Kf.bind(Kf):function(){return Kf.apply(Kf,arguments)},Bk={}.propertyIsEnumerable,Pk=Object.getOwnPropertyDescriptor,HJ=Pk&&!Bk.call({1:2},1)?function(e){var t=Pk(this,e);return!!t&&t.enumerable}:Bk,VJ={f:HJ},ou=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uL=Function.prototype,DC=uL.bind,kC=uL.call,WJ=DC&&DC.bind(kC),_t=DC?function(e){return e&&WJ(kC,e)}:function(e){return e&&function(){return kC.apply(e,arguments)}},qJ=_t({}.toString),GJ=_t("".slice),Ts=function(e){return GJ(qJ(e),8,-1)},qb=Fe.Object,KJ=_t("".split),sL=Mn((function(){return!qb("z").propertyIsEnumerable(0)}))?function(e){return Ts(e)=="String"?KJ(e,""):qb(e)}:qb,XJ=Fe.TypeError,S1=function(e){if(e==null)throw XJ("Can't call method on "+e);return e},Ef=function(e){return sL(S1(e))},En=function(e){return typeof e=="function"},vi=function(e){return typeof e=="object"?e!==null:En(e)},YJ=function(e){return En(e)?e:void 0},cg=function(e,t){return arguments.length<2?YJ(Fe[e]):Fe[e]&&Fe[e][t]},d0=_t({}.isPrototypeOf),Gb=cg("navigator","userAgent")||"",Fk=Fe.process,Mk=Fe.Deno,Ik=Fk&&Fk.versions||Mk&&Mk.version,jk=Ik&&Ik.v8;jk&&(_m=(ka=jk.split("."))[0]>0&&ka[0]<4?1:+(ka[0]+ka[1])),!_m&&Gb&&(!(ka=Gb.match(/Edge\/(\d+)/))||ka[1]>=74)&&(ka=Gb.match(/Chrome\/(\d+)/))&&(_m=+ka[1]);var Lk=_m,OC=!!Object.getOwnPropertySymbols&&!Mn((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Lk&&Lk<41})),S4=OC&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ZJ=Fe.Object,AC=S4?function(e){return typeof e=="symbol"}:function(e){var t=cg("Symbol");return En(t)&&d0(t.prototype,ZJ(e))},JJ=Fe.String,TC=function(e){try{return JJ(e)}catch(t){return"Object"}},QJ=Fe.TypeError,E4=function(e){if(En(e))return e;throw QJ(TC(e)+" is not a function")},nh=function(e,t){var n=e[t];return n==null?void 0:E4(n)},eQ=Fe.TypeError,tQ=Object.defineProperty,D4=function(e,t){try{tQ(Fe,e,{value:t,configurable:!0,writable:!0})}catch(n){Fe[e]=t}return t},iu=Fe["__core-js_shared__"]||D4("__core-js_shared__",{}),k4=yl((function(e){(e.exports=function(t,n){return iu[t]||(iu[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),nQ=Fe.Object,O4=function(e){return nQ(S1(e))},rQ=_t({}.hasOwnProperty),Cr=Object.hasOwn||function(e,t){return rQ(O4(e),t)},oQ=0,iQ=Math.random(),aQ=_t(1 .toString),lL=function(e){return"Symbol("+(e===void 0?"":e)+")_"+aQ(++oQ+iQ,36)},Xf=k4("wks"),Bs=Fe.Symbol,Rk=Bs&&Bs.for,uQ=S4?Bs:Bs&&Bs.withoutSetter||lL,pr=function(e){if(!Cr(Xf,e)||!OC&&typeof Xf[e]!="string"){var t="Symbol."+e;OC&&Cr(Bs,e)?Xf[e]=Bs[e]:Xf[e]=S4&&Rk?Rk(t):uQ(t)}return Xf[e]},sQ=Fe.TypeError,lQ=pr("toPrimitive"),cQ=function(e,t){if(!vi(e)||AC(e))return e;var n,r=nh(e,lQ);if(r){if(n=Nn(r,e,t),!vi(n)||AC(n))return n;throw sQ("Can't convert object to primitive value")}return(function(o,i){var a,u;if(En(a=o.toString)&&!vi(u=Nn(a,o))||En(a=o.valueOf)&&!vi(u=Nn(a,o)))return u;throw eQ("Can't convert object to primitive value")})(e)},A4=function(e){var t=cQ(e,"string");return AC(t)?t:t+""},BC=Fe.document,fQ=vi(BC)&&vi(BC.createElement),T4=function(e){return fQ?BC.createElement(e):{}},cL=!ki&&!Mn((function(){return Object.defineProperty(T4("div"),"a",{get:function(){return 7}}).a!=7})),Nk=Object.getOwnPropertyDescriptor,dQ=ki?Nk:function(e,t){if(e=Ef(e),t=A4(t),cL)try{return Nk(e,t)}catch(n){}if(Cr(e,t))return ou(!Nn(VJ.f,e,t),e[t])},B4={f:dQ},pQ=Fe.String,hQ=Fe.TypeError,Hr=function(e){if(vi(e))return e;throw hQ(pQ(e)+" is not an object")},gQ=Fe.TypeError,$k=Object.defineProperty,vQ=ki?$k:function(e,t,n){if(Hr(e),t=A4(t),Hr(n),cL)try{return $k(e,t,n)}catch(r){}if("get"in n||"set"in n)throw gQ("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Df={f:vQ},wr=ki?function(e,t,n){return Df.f(e,t,ou(1,n))}:function(e,t,n){return e[t]=n,e},mQ=_t(Function.toString);En(iu.inspectSource)||(iu.inspectSource=function(e){return mQ(e)});var p0,Tp,h0,P4=iu.inspectSource,Uk=Fe.WeakMap,yQ=En(Uk)&&/native code/.test(P4(Uk)),zk=k4("keys"),F4=function(e){return zk[e]||(zk[e]=lL(e))},M4={},PC=Fe.TypeError,bQ=Fe.WeakMap;if(yQ||iu.state){var es=iu.state||(iu.state=new bQ),wQ=_t(es.get),Hk=_t(es.has),_Q=_t(es.set);p0=function(e,t){if(Hk(es,e))throw new PC("Object already initialized");return t.facade=e,_Q(es,e,t),t},Tp=function(e){return wQ(es,e)||{}},h0=function(e){return Hk(es,e)}}else{var Ll=F4("state");M4[Ll]=!0,p0=function(e,t){if(Cr(e,Ll))throw new PC("Object already initialized");return t.facade=e,wr(e,Ll,t),t},Tp=function(e){return Cr(e,Ll)?e[Ll]:{}},h0=function(e){return Cr(e,Ll)}}var Qs={set:p0,get:Tp,has:h0,enforce:function(e){return h0(e)?Tp(e):p0(e,{})},getterFor:function(e){return function(t){var n;if(!vi(t)||(n=Tp(t)).type!==e)throw PC("Incompatible receiver, "+e+" required");return n}}},fL=Function.prototype,xQ=ki&&Object.getOwnPropertyDescriptor,Vk=Cr(fL,"name"),I4={PROPER:Vk&&(function(){}).name==="something",CONFIGURABLE:Vk&&(!ki||ki&&xQ(fL,"name").configurable)},el=yl((function(e){var t=I4.CONFIGURABLE,n=Qs.get,r=Qs.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;En(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Cr(u,"name")||t&&u.name!==d)&&wr(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Fe?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:wr(i,a,u)):f?i[a]=u:D4(a,u)})(Function.prototype,"toString",(function(){return En(this)&&n(this).source||P4(this)}))})),CQ=Math.ceil,SQ=Math.floor,j4=function(e){var t=+e;return t!=t||t===0?0:(t>0?SQ:CQ)(t)},EQ=Math.max,DQ=Math.min,FC=function(e,t){var n=j4(e);return n<0?EQ(n+t,0):DQ(n,t)},kQ=Math.min,dL=function(e){return e>0?kQ(j4(e),9007199254740991):0},E1=function(e){return dL(e.length)},OQ=function(e){return function(t,n,r){var o,i=Ef(t),a=E1(i),u=FC(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},AQ={indexOf:OQ(!1)}.indexOf,Wk=_t([].push),pL=function(e,t){var n,r=Ef(e),o=0,i=[];for(n in r)!Cr(M4,n)&&Cr(r,n)&&Wk(i,n);for(;t.length>o;)Cr(r,n=t[o++])&&(~AQ(i,n)||Wk(i,n));return i},g0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],TQ=g0.concat("length","prototype"),BQ=Object.getOwnPropertyNames||function(e){return pL(e,TQ)},PQ={f:BQ},FQ={f:Object.getOwnPropertySymbols},MQ=_t([].concat),IQ=cg("Reflect","ownKeys")||function(e){var t=PQ.f(Hr(e)),n=FQ.f;return n?MQ(t,n(e)):t},hL=function(e,t){for(var n=IQ(t),r=Df.f,o=B4.f,i=0;i<n.length;i++){var a=n[i];Cr(e,a)||r(e,a,o(t,a))}},jQ=/#|\.prototype\./,fg=function(e,t){var n=RQ[LQ(e)];return n==$Q||n!=NQ&&(En(t)?Mn(t):!!t)},LQ=fg.normalize=function(e){return String(e).replace(jQ,".").toLowerCase()},RQ=fg.data={},NQ=fg.NATIVE="N",$Q=fg.POLYFILL="P",UQ=fg,zQ=B4.f,dg=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Fe:l?Fe[u]||D4(u,{}):(Fe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=zQ(n,r))&&a.value:n[r],!UQ(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;hL(i,o)}(e.sham||o&&o.sham)&&wr(i,"sham",!0),el(n,r,i,e)}},gL={};gL[pr("toStringTag")]="z";var fv,L4=String(gL)==="[object z]",HQ=pr("toStringTag"),VQ=Fe.Object,WQ=Ts((function(){return arguments})())=="Arguments",D1=L4?Ts:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch(a){}})(t=VQ(e),HQ))=="string"?n:WQ?Ts(t):(r=Ts(t))=="Object"&&En(t.callee)?"Arguments":r},qQ=Fe.String,Ps=function(e){if(D1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return qQ(e)},GQ=function(){var e=Hr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},R4=Fe.RegExp,vL=Mn((function(){var e=R4("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));vL||Mn((function(){return!R4("a","y").sticky}));var KQ=vL||Mn((function(){var e=R4("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),XQ={BROKEN_CARET:KQ},YQ=Object.keys||function(e){return pL(e,g0)},ZQ=ki?Object.defineProperties:function(e,t){Hr(e);for(var n,r=Ef(t),o=YQ(t),i=o.length,a=0;i>a;)Df.f(e,n=o[a++],r[n]);return e},JQ=cg("document","documentElement"),mL=F4("IE_PROTO"),Kb=function(){},yL=function(e){return"<script>"+e+"<\/script>"},qk=function(e){e.write(yL("")),e.close();var t=e.parentWindow.Object;return e=null,t},xm=function(){try{fv=new ActiveXObject("htmlfile")}catch(r){}var e,t;xm=typeof document<"u"?document.domain&&fv?qk(fv):((t=T4("iframe")).style.display="none",JQ.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(yL("document.F=Object")),e.close(),e.F):qk(fv);for(var n=g0.length;n--;)delete xm.prototype[g0[n]];return xm()};M4[mL]=!0;var Gk,Xb,pg=Object.create||function(e,t){var n;return e!==null?(Kb.prototype=Hr(e),n=new Kb,Kb.prototype=null,n[mL]=e):n=xm(),t===void 0?n:ZQ(n,t)},QQ=Fe.RegExp,eee=Mn((function(){var e=QQ(".","s");return!(e.dotAll&&e.exec("\n")&&e.flags==="s")})),tee=Fe.RegExp,nee=Mn((function(){var e=tee("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),ree=Qs.get,oee=k4("native-string-replace",String.prototype.replace),v0=RegExp.prototype.exec,MC=v0,iee=_t("".charAt),aee=_t("".indexOf),uee=_t("".replace),Yb=_t("".slice),Zb=(Xb=/b*/g,Nn(v0,Gk=/a/,"a"),Nn(v0,Xb,"a"),Gk.lastIndex!==0||Xb.lastIndex!==0),Kk=XQ.BROKEN_CARET,Jb=/()??/.exec("")[1]!==void 0;(Zb||Jb||Kk||eee||nee)&&(MC=function(e){var t,n,r,o,i,a,u,s=this,l=ree(s),c=Ps(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Nn(MC,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=Kk&&s.sticky,m=Nn(GQ,s),v=s.source,h=0,y=c;if(d&&(m=uee(m,"y",""),aee(m,"g")===-1&&(m+="g"),y=Yb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&iee(c,s.lastIndex-1)!=="\n")&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",m)),Jb&&(n=new RegExp("^"+v+"$(?!\\s)",m)),Zb&&(r=s.lastIndex),o=Nn(v0,d?n:s,y),d?o?(o.input=Yb(o.input,h),o[0]=Yb(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Zb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Jb&&o&&o.length>1&&Nn(oee,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&p)for(o.groups=a=pg(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var m0=MC;dg({target:"RegExp",proto:!0,forced:/./.exec!==m0},{exec:m0});var see=pr("species"),Xk=RegExp.prototype,lee=_t("".charAt),Yk=_t("".charCodeAt),cee=_t("".slice),fee=function(e){return function(t,n){var r,o,i=Ps(S1(t)),a=j4(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Yk(i,a))<55296||r>56319||a+1===u||(o=Yk(i,a+1))<56320||o>57343?e?lee(i,a):r:e?cee(i,a,a+2):o-56320+(r-55296<<10)+65536}},bL={charAt:fee(!0)},dee=bL.charAt,pee=function(e,t,n){return t+(n?dee(e,t).length:1)},hee=Fe.TypeError,Zk=function(e,t){var n=e.exec;if(En(n)){var r=Nn(n,e,t);return r!==null&&Hr(r),r}if(Ts(e)==="RegExp")return Nn(m0,e,t);throw hee("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var o=pr(e),i=!Mn((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!Mn((function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[see]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||n){var u=_t(/./[o]),s=t(o,""[e],(function(l,c,f,p,d){var m=_t(l),v=c.exec;return v===m0||v===Xk.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}}));el(String.prototype,e,s[0]),el(Xk,o,s[1])}})("match",(function(e,t,n){return[function(r){var o=S1(this),i=r==null?void 0:nh(r,e);return i?Nn(i,r,o):new RegExp(r)[e](Ps(o))},function(r){var o=Hr(this),i=Ps(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return Zk(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Zk(o,i))!==null;){var f=Ps(s[0]);l[c]=f,f===""&&(o.lastIndex=pee(i,dL(o.lastIndex),u)),c++}return c===0?null:l}]})),dg({global:!0},{globalThis:Fe});var gee=!Mn((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Jk=F4("IE_PROTO"),IC=Fe.Object,vee=IC.prototype,rh=gee?IC.getPrototypeOf:function(e){var t=O4(e);if(Cr(t,Jk))return t[Jk];var n=t.constructor;return En(n)&&t instanceof n?n.prototype:t instanceof IC?vee:null},mee=Fe.String,yee=Fe.TypeError,Vc=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=_t(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,o){return Hr(r),(function(i){if(typeof i=="object"||En(i))return i;throw yee("Can't set "+mee(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),bee=Fe.Array,wee=Math.max,_ee=_t("".replace),xee=_t("".split),Cee=_t([].join),jC=String(Error("zxcasd").stack),wL=/\n\s*at [^:]*:[^\n]*/,See=wL.test(jC),Eee=/@[^\n]*\n/.test(jC)&&!/zxcasd/.test(jC),Dee=function(e,t){if(typeof e!="string")return e;if(See)for(;t--;)e=_ee(e,wL,"");else if(Eee)return Cee((function(n,r,o){for(var i,a,u,s,l=E1(n),c=FC(r,l),f=FC(l,l),p=bee(wee(f-c,0)),d=0;c<f;c++,d++)i=p,a=d,u=n[c],s=void 0,(s=A4(a))in i?Df.f(i,s,ou(0,u)):i[s]=u;return p.length=d,p})(xee(e,"\n"),t),"\n");return e},kee=function(e,t){vi(t)&&"cause"in t&&wr(e,"cause",t.cause)},Qk=_t(_t.bind),_L=function(e,t){return E4(e),t===void 0?e:Qk?Qk(e,t):function(){return e.apply(t,arguments)}},Wc={},Oee=pr("iterator"),Aee=Array.prototype,Tee=pr("iterator"),eO=function(e){if(e!=null)return nh(e,Tee)||nh(e,"@@iterator")||Wc[D1(e)]},Bee=Fe.TypeError,tO=function(e,t,n){var r,o;Hr(e);try{if(!(r=nh(e,"return"))){if(t==="throw")throw n;return n}r=Nn(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return Hr(r),n},Pee=Fe.TypeError,Cm=function(e,t){this.stopped=e,this.result=t},nO=Cm.prototype,Fee=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),m=_L(t,c),v=function(y){return r&&tO(r,"normal",y),new Cm(!0,y)},h=function(y){return f?(Hr(y),d?m(y[0],y[1],v):m(y[0],y[1])):d?m(y,v):m(y)};if(p)r=e;else{if(!(o=eO(e)))throw Pee(TC(e)+" is not iterable");if((function(y){return y!==void 0&&(Wc.Array===y||Aee[Oee]===y)})(o)){for(i=0,a=E1(e);a>i;i++)if((u=h(e[i]))&&d0(nO,u))return u;return new Cm(!1)}r=(function(y,g){var b=arguments.length<2?eO(y):g;if(E4(b))return Hr(Nn(b,y));throw Bee(TC(y)+" is not iterable")})(e,o)}for(s=r.next;!(l=Nn(s,r)).done;){try{u=h(l.value)}catch(y){tO(r,"throw",y)}if(typeof u=="object"&&u&&d0(nO,u))return u}return new Cm(!1)},Mee=function(e,t){return e===void 0?arguments.length<2?"":t:Ps(e)},Iee=!Mn((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ou(1,7)),e.stack!==7)})),jee=pr("toStringTag"),y0=Fe.Error,Lee=[].push,oh=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=d0(Qb,this);Vc?n=Vc(new y0(void 0),o?rh(this):Qb):(n=o?this:pg(Qb),wr(n,jee,"Error")),wr(n,"message",Mee(t,"")),Iee&&wr(n,"stack",Dee(n.stack,1)),kee(n,r);var i=[];return Fee(e,Lee,{that:i}),wr(n,"errors",i),n};Vc?Vc(oh,y0):hL(oh,y0);var Qb=oh.prototype=pg(y0.prototype,{constructor:ou(1,oh),message:ou(1,""),name:ou(1,"AggregateError")});dg({global:!0},{AggregateError:oh});var LC=pr("unscopables"),RC=Array.prototype;RC[LC]==null&&Df.f(RC,LC,{configurable:!0,value:pg(null)});var Fs,rO,oO,e2=function(e){RC[LC][e]=!0},NC=pr("iterator"),xL=!1;[].keys&&("next"in(oO=[].keys())?(rO=rh(rh(oO)))!==Object.prototype&&(Fs=rO):xL=!0);var Ree=Fs==null||Mn((function(){var e={};return Fs[NC].call(e)!==e}));Ree&&(Fs={}),En(Fs[NC])||el(Fs,NC,(function(){return this}));var N4={IteratorPrototype:Fs,BUGGY_SAFARI_ITERATORS:xL},Nee=Df.f,iO=pr("toStringTag"),aO=function(e,t,n){e&&!Cr(e=n?e:e.prototype,iO)&&Nee(e,iO,{configurable:!0,value:t})},$ee=N4.IteratorPrototype,Uee=function(){return this},zee=I4.PROPER,Hee=I4.CONFIGURABLE,uO=N4.IteratorPrototype,t2=N4.BUGGY_SAFARI_ITERATORS,Yf=pr("iterator"),Vee=function(){return this},CL=function(e,t,n,r,o,i,a){(function(h,y,g,b){var w=y+" Iterator";h.prototype=pg($ee,{next:ou(1,g)}),aO(h,w,!1),Wc[w]=Uee})(n,t,r);var u,s,l=function(h){if(h===o&&m)return m;if(!t2&&h in p)return p[h];switch(h){case"keys":case"values":case"entries":return function(){return new n(this,h)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,p=e.prototype,d=p[Yf]||p["@@iterator"]||o&&p[o],m=!t2&&d||l(o),v=t=="Array"&&p.entries||d;return v&&(u=rh(v.call(new e)))!==Object.prototype&&u.next&&(rh(u)!==uO&&(Vc?Vc(u,uO):En(u[Yf])||el(u,Yf,Vee)),aO(u,c,!0)),zee&&o=="values"&&d&&d.name!=="values"&&(Hee?wr(p,"name","values"):(f=!0,m=function(){return Nn(d,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||dg({target:t,proto:!0,forced:t2||f},s)),p[Yf]!==m&&el(p,Yf,m,{name:o}),Wc[t]=m,s},Wee=Qs.set,qee=Qs.getterFor("Array Iterator"),vp=CL(Array,"Array",(function(e,t){Wee(this,{type:"Array Iterator",target:Ef(e),index:0,kind:t})}),(function(){var e=qee(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Wc.Arguments=Wc.Array,e2("keys"),e2("values"),e2("entries");var Gee=bL.charAt,Kee=Qs.set,Xee=Qs.getterFor("String Iterator");CL(String,"String",(function(e){Kee(this,{type:"String Iterator",string:Ps(e),index:0})}),(function(){var e,t=Xee(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Gee(n,r),t.index+=e.length,{value:e,done:!1})}));var n2,b0={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},r2=T4("span").classList,sO=r2&&r2.constructor&&r2.constructor.prototype,SL=sO===Object.prototype?void 0:sO,o2=pr("iterator"),lO=pr("toStringTag"),i2=vp.values,EL=function(e,t){if(e){if(e[o2]!==i2)try{wr(e,o2,i2)}catch(r){e[o2]=i2}if(e[lO]||wr(e,lO,t),b0[t]){for(var n in vp)if(e[n]!==vp[n])try{wr(e,n,vp[n])}catch(r){e[n]=vp[n]}}}};for(var a2 in b0)EL(Fe[a2]&&Fe[a2].prototype,a2);EL(SL,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error("抱歉wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),cO(),fO()):global&&(!((n2=global.navigator)===null||n2===void 0)&&n2.userAgent.match("QQBrowser"))&&(cO(),fO());function cO(){typeof globalThis>"u"&&(window.globalThis=window)}function fO(){zJ===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var dO,w0=Array.isArray||function(e){return Os(e)=="Array"},DL=function(){},Yee=[],kL=xf("Reflect","construct"),$4=/^\s*(?:class|function)\b/,Zee=Ft($4.exec),Jee=!$4.exec(DL),Zf=function(e){if(!zn(e))return!1;try{return kL(DL,Yee,e),!0}catch(t){return!1}},Qee=!kL||kr((function(){var e;return Zf(Zf.call)||!Zf(Object)||!Zf((function(){e=!0}))||e}))?function(e){if(!zn(e))return!1;switch(lg(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Jee||!!Zee($4,nL(e))}:Zf,ete=ir("species"),pO=$e.Array,OL=function(e,t){return new((function(n){var r;return w0(n)&&(r=n.constructor,(Qee(r)&&(r===pO||w0(r.prototype))||so(r)&&(r=r[ete])===null)&&(r=void 0)),r===void 0?pO:r})(e))(t===0?0:t)},tte=ir("species"),AL=ir("isConcatSpreadable"),hO=$e.TypeError,nte=t0>=51||!kr((function(){var e=[];return e[AL]=!1,e.concat()[0]!==e})),rte=(dO="concat",t0>=51||!kr((function(){var e=[];return(e.constructor={})[tte]=function(){return{foo:1}},e[dO](Boolean).foo!==1}))),ote=function(e){if(!so(e))return!1;var t=e[AL];return t!==void 0?!!t:w0(e)};Zi({target:"Array",proto:!0,forced:!nte||!rte},{concat:function(e){var t,n,r,o,i,a=ig(this),u=OL(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(ote(i=t===-1?a:arguments[t])){if(s+(o=ug(i))>9007199254740991)throw hO("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&xC(u,s,i[n])}else{if(s>=9007199254740991)throw hO("Maximum allowed index exceeded");xC(u,s++,i)}return u.length=s,u}});var gO=_4.f,vO=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],TL={f:function(e){return vO&&Os(e)=="Window"?(function(t){try{return gO(t)}catch(n){return Qj(vO)}})(e):gO(Ii(e))}},ite=Ft([].slice),U4={f:ir},ate=$u.f,tn=function(e){var t=Lr.Symbol||(Lr.Symbol={});ot(t,e)||ate(t,e,{value:U4.f(e)})},mO=Ft([].push),ute=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=ig(s),v=Gj(m),h=b4(l,c),y=ug(v),g=0,b=f||OL,w=t?b(s,y):n||a?b(s,0):void 0;y>g;g++)if((u||g in v)&&(d=h(p=v[g],g,m),e))if(t)w[g]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:mO(w,p)}else switch(e){case 4:return!1;case 7:mO(w,p)}return i?-1:r||o?o:w}},k1={forEach:ute(0)}.forEach,vr=C1("hidden"),yO=ir("toPrimitive"),ste=Sf.set,bO=Sf.getterFor("Symbol"),Io=Object.prototype,qa=$e.Symbol,Ja=qa&&qa.prototype,wO=$e.TypeError,u2=$e.QObject,Jf=xf("JSON","stringify"),BL=x1.f,Ga=$u.f,PL=TL.f,lte=g4.f,FL=Ft([].push),ca=bl("symbols"),hg=bl("op-symbols"),s2=bl("string-to-symbol-registry"),l2=bl("symbol-to-string-registry"),cte=bl("wks"),c2=!u2||!u2.prototype||!u2.prototype.findChild,$C=xr&&kr((function(){return la(Ga({},"a",{get:function(){return Ga(this,"a",{value:7}).a}})).a!=7}))?function(e,t,n){var r=BL(Io,t);r&&delete Io[t],Ga(e,t,n),r&&e!==Io&&Ga(Io,t,r)}:Ga,f2=function(e,t){var n=ca[e]=la(Ja);return ste(n,{type:"Symbol",tag:e,description:t}),xr||(n.description=t),n},_0=function(e,t,n){e===Io&&_0(hg,t,n),zr(e);var r=Cf(t);return zr(n),ot(ca,r)?(n.enumerable?(ot(e,vr)&&e[vr][r]&&(e[vr][r]=!1),n=la(n,{enumerable:$o(0,!1)})):(ot(e,vr)||Ga(e,vr,$o(1,{})),e[vr][r]=!0),$C(e,r,n)):Ga(e,r,n)},_O=function(e,t){zr(e);var n=Ii(t),r=x4(n).concat(UC(n));return k1(r,(function(o){xr&&!Nr(ML,n,o)||_0(e,o,n[o])})),e},ML=function(e){var t=Cf(e),n=Nr(lte,this,t);return!(this===Io&&ot(ca,t)&&!ot(hg,t))&&(!(n||!ot(this,t)||!ot(ca,t)||ot(this,vr)&&this[vr][t])||n)},xO=function(e,t){var n=Ii(e),r=Cf(t);if(n!==Io||!ot(ca,r)||ot(hg,r)){var o=BL(n,r);return!o||!ot(ca,r)||ot(n,vr)&&n[vr][r]||(o.enumerable=!0),o}},CO=function(e){var t=PL(Ii(e)),n=[];return k1(t,(function(r){ot(ca,r)||ot(sg,r)||FL(n,r)})),n},UC=function(e){var t=e===Io,n=PL(t?hg:Ii(e)),r=[];return k1(n,(function(o){!ot(ca,o)||t&&!ot(Io,o)||FL(r,ca[o])})),r};if(ci||(Ja=(qa=function(){if(Qp(Ja,this))throw wO("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?eh(arguments[0]):void 0,t=r0(e),n=function(r){this===Io&&Nr(n,hg,r),ot(this,vr)&&ot(this[vr],t)&&(this[vr][t]=!1),$C(this,t,$o(1,r))};return xr&&c2&&$C(Io,t,{configurable:!0,set:n}),f2(t,e)}).prototype,c0(Ja,"toString",(function(){return bO(this).tag})),c0(qa,"withoutSetter",(function(e){return f2(r0(e),e)})),g4.f=ML,$u.f=_0,x1.f=xO,_4.f=TL.f=CO,ym.f=UC,U4.f=function(e){return f2(ir(e),e)},xr&&Ga(Ja,"description",{configurable:!0,get:function(){return bO(this).description}})),Zi({global:!0,wrap:!0,forced:!ci,sham:!ci},{Symbol:qa}),k1(x4(cte),(function(e){tn(e)})),Zi({target:"Symbol",stat:!0,forced:!ci},{for:function(e){var t=eh(e);if(ot(s2,t))return s2[t];var n=qa(t);return s2[t]=n,l2[n]=t,n},keyFor:function(e){if(!Ac(e))throw wO(e+" is not a symbol");if(ot(l2,e))return l2[e]},useSetter:function(){c2=!0},useSimple:function(){c2=!1}}),Zi({target:"Object",stat:!0,forced:!ci,sham:!xr},{create:function(e,t){return t===void 0?la(e):_O(la(e),t)},defineProperty:_0,defineProperties:_O,getOwnPropertyDescriptor:xO}),Zi({target:"Object",stat:!0,forced:!ci},{getOwnPropertyNames:CO,getOwnPropertySymbols:UC}),Zi({target:"Object",stat:!0,forced:kr((function(){ym.f(1)}))},{getOwnPropertySymbols:function(e){return ym.f(ig(e))}}),Jf){var fte=!ci||kr((function(){var e=qa();return Jf([e])!="[null]"||Jf({a:e})!="{}"||Jf(Object(e))!="{}"}));Zi({target:"JSON",stat:!0,forced:fte},{stringify:function(e,t,n){var r=ite(arguments),o=t;if((so(t)||e!==void 0)&&!Ac(e))return w0(t)||(t=function(i,a){if(zn(o)&&(a=Nr(o,this,i,a)),!Ac(a))return a}),r[1]=t,Wj(Jf,null,r)}})}if(!Ja[yO]){var dte=Ja.valueOf;c0(Ja,yO,(function(e){return Nr(dte,this)}))}f0(qa,"Symbol"),sg[vr]=!0,tn("asyncIterator"),tn("hasInstance"),tn("isConcatSpreadable"),tn("iterator"),tn("match"),tn("matchAll"),tn("replace"),tn("search"),tn("species"),tn("split"),tn("toPrimitive"),tn("toStringTag"),tn("unscopables"),f0($e.JSON,"JSON",!0);var pte=Lr.Symbol;tn("asyncDispose"),tn("dispose"),tn("matcher"),tn("metadata"),tn("observable"),tn("patternMatch"),tn("replaceAll");var dv=pte,hte=U4.f("iterator"),gte=yl((function(e){function t(n){return typeof dv=="function"&&typeof hte=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof dv=="function"&&r.constructor===dv&&r!==dv.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),vte=XY(gte),IL=B4.f,mte=Mn((function(){IL(1)}));if(dg({target:"Object",stat:!0,forced:!ki||mte,sham:!ki},{getOwnPropertyDescriptor:function(e,t){return IL(Ef(e),t)}}),(typeof global>"u"?"undefined":vte(global))==="object"){var yte=Object.getOwnPropertyDescriptor(global,"window");global.window&&!yte.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}function SO(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jn(e){var t,n;return SO(e)!==!1&&((t=e.constructor)===void 0||SO(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Mo(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function tl(e){return!!e&&!!e[Vr]}function nl(e){return!!e&&((function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===Ste})(e)||Array.isArray(e)||!!e[PO]||!!e.constructor[PO]||z4(e)||H4(e))}function ih(e,t,n){n===void 0&&(n=!1),qc(e)===0?(n?Object.keys:K4)(e).forEach((function(r){n&&typeof r=="symbol"||t(r,e[r],e)})):e.forEach((function(r,o){return t(o,r,e)}))}function qc(e){var t=e[Vr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:z4(e)?2:H4(e)?3:0}function zC(e,t){return qc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function jL(e,t,n){var r=qc(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function z4(e){return xte&&e instanceof Map}function H4(e){return Cte&&e instanceof Set}function ds(e){return e.o||e.t}function V4(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ete(e);delete t[Vr];for(var n=K4(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function W4(e,t){return t===void 0&&(t=!1),q4(e)||tl(e)||!nl(e)||(qc(e)>1&&(e.set=e.add=e.clear=e.delete=bte),Object.freeze(e),t&&ih(e,(function(n,r){return W4(r,!0)}),!0)),e}function bte(){Mo(2)}function q4(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function aa(e){var t=Dte[e];return t||Mo(18,e),t}function EO(){return ah}function d2(e,t){t&&(aa("Patches"),e.u=[],e.s=[],e.v=t)}function x0(e){HC(e),e.p.forEach(wte),e.p=null}function HC(e){e===ah&&(ah=e.l)}function DO(e){return ah={p:[],l:ah,h:e,m:!0,_:0}}function wte(e){var t=e[Vr];t.i===0||t.i===1?t.j():t.O=!0}function p2(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||aa("ES5").S(t,e,r),r?(n[Vr].P&&(x0(t),Mo(4)),nl(e)&&(e=C0(t,e),t.l||S0(t,e)),t.u&&aa("Patches").M(n[Vr],e,t.u,t.s)):e=C0(t,n,[]),x0(t),t.u&&t.v(t.u,t.s),e!==LL?e:void 0}function C0(e,t,n){if(q4(t))return t;var r=t[Vr];if(!r)return ih(t,(function(i,a){return kO(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return S0(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=V4(r.k):r.o;ih(r.i===3?new Set(o):o,(function(i,a){return kO(e,r,o,i,a,n)})),S0(e,o,!1),n&&e.u&&aa("Patches").R(r,n,e.u,e.s)}return r.o}function kO(e,t,n,r,o,i){if(tl(o)){var a=C0(e,o,i&&t&&t.i!==3&&!zC(t.D,r)?i.concat(r):void 0);if(jL(n,r,a),!tl(a))return;e.m=!1}if(nl(o)&&!q4(o)){if(!e.h.F&&e._<1)return;C0(e,o),t&&t.A.l||S0(e,o)}}function S0(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&W4(t,n)}function h2(e,t){var n=e[Vr];return(n?ds(n):e)[t]}function OO(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function VC(e){e.P||(e.P=!0,e.l&&VC(e.l))}function g2(e){e.o||(e.o=V4(e.t))}function WC(e,t,n){var r=z4(t)?aa("MapSet").N(t,n):H4(t)?aa("MapSet").T(t,n):e.g?(function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:EO(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=Sm;a&&(s=[u],l=Em);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p})(t,n):aa("ES5").J(t,n);return(n?n.A:EO()).p.push(r),r}function _te(e){return tl(e)||Mo(22,e),(function t(n){if(!nl(n))return n;var r,o=n[Vr],i=qc(n);if(o){if(!o.P&&(o.i<4||!aa("ES5").K(o)))return o.t;o.I=!0,r=AO(n,i),o.I=!1}else r=AO(n,i);return ih(r,(function(a,u){o&&(function(s,l){return qc(s)===2?s.get(l):s[l]})(o.t,a)===u||jL(r,a,t(u))})),i===3?new Set(r):r})(e)}function AO(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return V4(e)}var TO,ah,G4=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",xte=typeof Map<"u",Cte=typeof Set<"u",BO=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",LL=G4?Symbol.for("immer-nothing"):((TO={})["immer-nothing"]=!0,TO),PO=G4?Symbol.for("immer-draftable"):"__$immer_draftable",Vr=G4?Symbol.for("immer-state"):"__$immer_state",Ste=""+Object.prototype.constructor,K4=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Ete=Object.getOwnPropertyDescriptors||function(e){var t={};return K4(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Dte={},Sm={get:function(e,t){if(t===Vr)return e;var n=ds(e);if(!zC(n,t))return(function(o,i,a){var u,s=OO(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0})(e,n,t);var r=n[t];return e.I||!nl(r)?r:r===h2(e.t,t)?(g2(e),e.o[t]=WC(e.A.h,r,e)):r},has:function(e,t){return t in ds(e)},ownKeys:function(e){return Reflect.ownKeys(ds(e))},set:function(e,t,n){var r=OO(ds(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=h2(ds(e),t),i=o==null?void 0:o[Vr];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if((function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u})(n,o)&&(n!==void 0||zC(e.t,t)))return!0;g2(e),VC(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return h2(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,g2(e),VC(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ds(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Mo(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Mo(12)}},Em={};ih(Sm,(function(e,t){Em[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Em.deleteProperty=function(e,t){return Sm.deleteProperty.call(this,e[0],t)},Em.set=function(e,t,n){return Sm.set.call(this,e[0],t,n,e[0])};var kte=(function(){function e(n){var r=this;this.g=BO,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=r;return function(d){var m=this;d===void 0&&(d=u);for(var v=arguments.length,h=Array(v>1?v-1:0),y=1;y<v;y++)h[y-1]=arguments[y];return s.produce(d,(function(g){var b;return(b=i).call.apply(b,[m,g].concat(h))}))}}var l;if(typeof i!="function"&&Mo(6),a!==void 0&&typeof a!="function"&&Mo(7),nl(o)){var c=DO(r),f=WC(r,o,void 0),p=!0;try{l=i(f),p=!1}finally{p?x0(c):HC(c)}return typeof Promise<"u"&&l instanceof Promise?l.then((function(d){return d2(c,a),p2(d,c)}),(function(d){throw x0(c),d})):(d2(c,a),p2(l,c))}if(!o||typeof o!="object")return(l=i(o))===LL?void 0:(l===void 0&&(l=o),r.F&&W4(l,!0),l);Mo(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return r.produceWithPatches(s,(function(p){return o.apply(void 0,[p].concat(c))}))}:[r.produce(o,i,(function(s,l){a=s,u=l})),a,u];var a,u},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){nl(n)||Mo(8),tl(n)&&(n=_te(n));var r=DO(this),o=WC(this,n,void 0);return o[Vr].C=!0,HC(r),o},t.finishDraft=function(n,r){var o=(n&&n[Vr]).A;return d2(o,r),p2(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!BO&&Mo(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=aa("Patches").$;return tl(n)?a(n,r):this.produce(n,(function(u){return a(u,r)}))},e})(),Ir=new kte,O1=Ir.produce;Ir.produceWithPatches.bind(Ir),Ir.setAutoFreeze.bind(Ir),Ir.setUseProxies.bind(Ir),Ir.applyPatches.bind(Ir);var FO=Ir.createDraft.bind(Ir),MO=Ir.finishDraft.bind(Ir);function ji(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E0=new WeakMap,Qf=new WeakMap,IO=new WeakMap,jO=new WeakMap,LO=new WeakMap,RO=new WeakMap;function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function pv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NO(Object(n),!0).forEach((function(r){ji(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NO(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Ote=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of S.pathRefs(e))one.transform(n,t);for(var r of S.pointRefs(e))ine.transform(r,t);for(var o of S.rangeRefs(e))une.transform(o,t);var i=new Set,a=[],u=p=>{if(p){var d=p.join(",");i.has(d)||(i.add(d),a.push(p))}},s=E0.get(e)||[],l=Ate(t);for(var c of s)u(q.transform(c,t));for(var f of l)u(f);E0.set(e,a),K.transform(e,t),e.operations.push(t),S.normalize(e),t.type==="set_selection"&&(e.marks=null),Qf.get(e)||(Qf.set(e,!0),Promise.resolve().then((()=>{Qf.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(ee.isExpanded(r))K.setNodes(e,{[t]:n},{match:me.isText,split:!0});else{var o=pv(pv({},S.marks(e)||{}),{},{[t]:n});e.marks=o,Qf.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&ee.isCollapsed(n)&&K.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&ee.isCollapsed(n)&&K.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&ee.isExpanded(n)&&K.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?fe.fragment(e,t):[]},insertBreak:()=>{K.splitNodes(e,{always:!0})},insertFragment:t=>{K.insertFragment(e,t)},insertNode:t=>{K.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=pv({text:t},r);K.insertNodes(e,o)}else K.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!me.isText(n))if(we.isElement(n)&&n.children.length===0)K.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!S.isEditor(n)&&we.isElement(n)&&(e.isInline(n)||n.children.length===0||me.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=fe.get(e,r);if(!me.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(me.isText(s)||we.isElement(s)&&e.isInline(s))!==o?(K.removeNodes(e,{at:r.concat(i),voids:!0}),i--):we.isElement(s)?e.isInline(s)&&(l!=null&&me.isText(l)?c&&(K.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(K.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):l!=null&&me.isText(l)&&(me.equals(s,l,{loose:!0})?(K.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):l.text===""?(K.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):s.text===""&&(K.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(ee.isExpanded(n))K.unsetNodes(e,t,{match:me.isText,split:!0});else{var r=pv({},S.marks(e)||{});delete r[t],e.marks=r,Qf.get(e)||e.onChange()}}};return e},Ate=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return q.levels(t);case"insert_node":var{node:n,path:r}=e,o=q.levels(r),i=me.isText(n)?[]:Array.from(fe.nodes(n),(w=>{var[,x]=w;return r.concat(x)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...q.ancestors(a),q.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(q.equals(u,s))return[];var l=[],c=[];for(var f of q.ancestors(u)){var p=q.transform(f,e);l.push(p)}for(var d of q.ancestors(s)){var m=q.transform(d,e);c.push(m)}var v=c[c.length-1],h=s[s.length-1],y=v.concat(h);return[...l,...c,y];case"remove_node":var{path:g}=e;return[...q.ancestors(g)];case"split_node":var{path:b}=e;return[...q.levels(b),q.next(b)];default:return[]}};function fa(e,t){if(e==null)return{};var n,r,o=(function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c})(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var je,qC=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?Mte(e):e,o=je.None,i=je.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=qte(s,l);if([o,i]=n?[i,c]:[c,o],_c(o,je.ZWJ)&&_c(i,je.ExtPict)&&!Yte(n?e.substring(0,a):e.substring(0,e.length-a))||_c(o,je.RI)&&_c(i,je.RI)&&!(u=u!==null?!u:!!n||Jte(e.substring(0,e.length-a)))||o!==je.None&&i!==je.None&&Kte(o,i))break;a+=s.length}return a||1},Tte=/\s/,Bte=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\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\u0AF0\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\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\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]/,Pte=/['\u2018\u2019]/,GC=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Fte=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(Tte.test(t))return!1;if(Pte.test(t)){var o=qC(n,r),[i,a]=GC(n,o,r);if(e(i,a,r))return!0}return!Bte.test(t)},Mte=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(jte(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(Ite(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},Ite=e=>e>=55296&&e<=56319,jte=e=>e>=56320&&e<=57343;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(je||(je={}));var Lte=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Rte=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Nte=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,$te=/^[\u1100-\u115F\uA960-\uA97C]$/,Ute=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,zte=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Hte=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Vte=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Wte=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,qte=(e,t)=>{var n=je.Any;return e.search(Lte)!==-1&&(n|=je.Extend),t===8205&&(n|=je.ZWJ),t>=127462&&t<=127487&&(n|=je.RI),e.search(Rte)!==-1&&(n|=je.Prepend),e.search(Nte)!==-1&&(n|=je.SpacingMark),e.search($te)!==-1&&(n|=je.L),e.search(Ute)!==-1&&(n|=je.V),e.search(zte)!==-1&&(n|=je.T),e.search(Hte)!==-1&&(n|=je.LV),e.search(Vte)!==-1&&(n|=je.LVT),e.search(Wte)!==-1&&(n|=je.ExtPict),n};function _c(e,t){return(e&t)!=0}var Gte=[[je.L,je.L|je.V|je.LV|je.LVT],[je.LV|je.V,je.V|je.T],[je.LVT|je.T,je.T],[je.Any,je.Extend|je.ZWJ],[je.Any,je.SpacingMark],[je.Prepend,je.Any],[je.ZWJ,je.ExtPict],[je.RI,je.RI]];function Kte(e,t){return Gte.findIndex((n=>_c(e,n[0])&&_c(t,n[1])))===-1}var Xte=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Yte=e=>e.search(Xte)!==-1,Zte=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Jte=e=>{var t=e.match(Zte);return t!==null&&t[0].length/2%2==1},$O=e=>Jn(e)&&fe.isNodeList(e.children)&&!S.isEditor(e),we={isAncestor:e=>Jn(e)&&fe.isNodeList(e.children),isElement:$O,isElementList:e=>Array.isArray(e)&&e.every((t=>we.isElement(t))),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return $O(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},Qte=["text"],ene=["text"];function UO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function Rl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(n),!0).forEach((function(r){ji(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UO(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var zO=new WeakMap,S={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=S.path(e,o),u=r==="lowest";for(var[s,l]of S.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!me.isText(s)&&!q.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:S.point(e,t,{edge:"end"}),focus:S.end(e,[])},{distance:i=1}=r,a=0;for(var u of S.positions(e,Rl(Rl({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:S.start(e,[]),focus:S.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of S.positions(e,Rl(Rl({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[S.start(e,t),S.end(e,t)],end:(e,t)=>S.point(e,t,{edge:"end"}),first(e,t){var n=S.path(e,t,{edge:"start"});return S.node(e,n)},fragment(e,t){var n=S.range(e,t);return fe.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((n=>S.isBlock(e,n))),hasInlines:(e,t)=>t.children.some((n=>me.isText(n)||S.isInline(e,n))),hasTexts:(e,t)=>t.children.every((n=>me.isText(n))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>we.isElement(t)&&!e.isInline(t),isEditor(e){if(!Jn(e))return!1;var t=zO.get(e);if(t!==void 0)return t;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteBackward=="function"&&typeof e.deleteForward=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isInline=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&(e.marks===null||Jn(e.marks))&&(e.selection===null||ee.isRange(e.selection))&&fe.isNodeList(e.children)&&Qa.isOperationList(e.operations);return zO.set(e,n),n},isEnd(e,t,n){var r=S.end(e,n);return Ue.equals(t,r)},isEdge:(e,t,n)=>S.isStart(e,t,n)||S.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&me.isText(r)&&r.text===""&&!e.isVoid(t)},isInline:(e,t)=>we.isElement(t)&&e.isInline(t),isNormalizing(e){var t=IO.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=S.start(e,n);return Ue.equals(t,r)},isVoid:(e,t)=>we.isElement(t)&&e.isVoid(t),last(e,t){var n=S.path(e,t,{edge:"end"});return S.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=S.path(e,t,n);return[fe.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(i==null&&(i=()=>!0),n){var a=[],u=S.path(e,n);for(var[s,l]of fe.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&S.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(ee.isExpanded(n)){var[r]=S.nodes(e,{match:me.isText});if(r){var[o]=r;return fa(o,Qte)}return{}}var{anchor:i}=n,{path:a}=i,[u]=S.leaf(e,a);if(i.offset===0){var s=S.previous(e,{at:a,match:me.isText}),l=S.above(e,{match:d=>S.isBlock(e,d)});if(s&&l){var[c,f]=s,[,p]=l;q.isAncestor(p,f)&&(u=c)}}return fa(u,ene)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=S.after(e,i,{voids:r});if(a){var[,u]=S.last(e,[]),s=[a.path,u];if(q.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(q.isPath(i)){var[l]=S.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=S.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=S.path(e,t,n);return[fe.get(e,r),r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(tne.isSpan(n))s=n[0],l=n[1];else{var c=S.path(e,n,{edge:"start"}),f=S.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var p,d=fe.nodes(e,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&S.isVoid(e,w)}}),m=[];for(var[v,h]of d){var y=p&&q.compare(h,p[1])===0;if(r!=="highest"||!y){if(u(v,h))if(r==="lowest"&&y)p=[v,h];else{var g=r==="lowest"?p:[v,h];g&&(o?m.push(g):yield g),p=[v,h]}else if(o&&!y&&me.isText(v))return}}r==="lowest"&&p&&(o?m.push(p):yield p),o&&(yield*m)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=i=>E0.get(i)||[];if(S.isNormalizing(e)){if(n){var o=Array.from(fe.nodes(e),(i=>{var[,a]=i;return a}));E0.set(e,o)}r(e).length!==0&&S.withoutNormalizing(e,(()=>{for(var i of r(e))if(fe.has(e,i)){var a=S.node(e,i),[u,s]=a;we.isElement(u)&&u.children.length===0&&e.normalizeNode(a)}for(var l=42*r(e).length,c=0;r(e).length!==0;){if(c>l)throw new Error("\n Could not completely normalize the editor after ".concat(l," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var f=r(e).pop();if(fe.has(e,f)){var p=S.node(e,f);e.normalizeNode(p)}c++}}))}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=S.path(e,t,n),o=q.parent(r);return S.node(e,o)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(q.isPath(t)){if(o==="start"){var[,i]=fe.first(e,t);t=i}else if(o==="end"){var[,a]=fe.last(e,t);t=a}}return ee.isRange(t)&&(t=o==="start"?ee.start(t):o==="end"?ee.end(t):q.common(t.anchor.path,t.focus.path)),Ue.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>fe.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return S.pathRefs(e).delete(o),o.current=null,i}};return S.pathRefs(e).add(o),o},pathRefs(e){var t=jO.get(e);return t||(t=new Set,jO.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(q.isPath(t)){var o;if(r==="end"){var[,i]=fe.last(e,t);o=i}else{var[,a]=fe.first(e,t);o=a}var u=fe.get(e,o);if(!me.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(ee.isRange(t)){var[s,l]=ee.edges(t);return r==="start"?s:l}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return S.pointRefs(e).delete(o),o.current=null,i}};return S.pointRefs(e).add(o),o},pointRefs(e){var t=LO.get(e);return t||(t=new Set,LO.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=S.range(e,n),[u,s]=ee.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,m=0;for(var[v,h]of S.nodes(e,{at:n,reverse:o,voids:i})){if(we.isElement(v)){if(!i&&e.isVoid(v)){yield S.start(e,h);continue}if(e.isInline(v))continue;if(S.hasInlines(e,v)){var y=q.isAncestor(h,s.path)?s:S.end(e,h),g=q.isAncestor(h,u.path)?u:S.start(e,h);f=S.string(e,{anchor:g,focus:y},{voids:i}),c=!0}}if(me.isText(v)){var b=q.equals(h,l.path);for(b?(d=o?l.offset:v.text.length-l.offset,m=l.offset):(d=v.text.length,m=o?d:0),(b||c||r==="offset")&&(yield{path:h,offset:m},c=!1);;){if(p===0){if(f==="")break;p=w(f,r,o),f=GC(f,p,o)[1]}if(m=o?m-p:m+p,(d-=p)<0){p=-d;break}p=0,yield{path:h,offset:m}}}}}function w(x,k,D){return k==="character"?qC(x,D):k==="word"?(function(T){for(var A=arguments.length>1&&arguments[1]!==void 0&&arguments[1],F=0,j=!1;T.length>0;){var R=qC(T,A),[U,H]=GC(T,R,A);if(Fte(U,H,A))j=!0,F+=R;else{if(j)break;F+=R}T=H}return F})(x,D):k==="line"||k==="block"?x.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=S.before(e,i,{voids:r});if(a){var[,u]=S.first(e,[]),s=[a.path,u];if(q.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(q.isPath(i)){var[l]=S.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=S.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>ee.isRange(t)&&!n?t:{anchor:S.start(e,t),focus:S.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return S.rangeRefs(e).delete(o),o.current=null,i}};return S.rangeRefs(e).add(o),o},rangeRefs(e){var t=RO.get(e);return t||(t=new Set,RO.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){IO.set(e,t)},start:(e,t)=>S.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=S.range(e,t),[i,a]=ee.edges(o),u="";for(var[s,l]of S.nodes(e,{at:o,match:me.isText,voids:r})){var c=s.text;q.equals(l,a.path)&&(c=c.slice(0,a.offset)),q.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=ee.edges(t);if(o.offset!==0||i.offset!==0||ee.isCollapsed(t))return t;var a=S.above(e,{at:i,match:p=>S.isBlock(e,p)}),u=a?a[1]:[],s={anchor:S.start(e,[]),focus:i},l=!0;for(var[c,f]of S.nodes(e,{at:s,match:me.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||q.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return S.above(e,Rl(Rl({},t),{},{match:n=>S.isVoid(e,n)}))},withoutNormalizing(e,t){var n=S.isNormalizing(e);S.setNormalizing(e,!1);try{t()}finally{S.setNormalizing(e,n)}S.normalize(e)}},tne={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(q.isPath)},nne=["children"],rne=["text"],HO=new WeakMap,fe={ancestor(e,t){var n=fe.get(e,t);if(me.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of q.ancestors(t,n)){var o=[fe.ancestor(e,r),r];yield o}},child(e,t){if(me.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=fe.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=fe.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=q.common(t,n);return[fe.get(e,r),r]},descendant(e,t){var n=fe.get(e,t);if(S.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of fe.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of fe.nodes(e,t))we.isElement(n)&&(yield[n,r])},extractProps:e=>we.isAncestor(e)?fa(e,nne):fa(e,rne),first(e,t){for(var n=t.slice(),r=fe.get(e,n);r&&!me.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(me.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=O1({children:e.children},(r=>{var[o,i]=ee.edges(t),a=fe.nodes(r,{reverse:!0,pass:p=>{var[,d]=p;return!ee.includes(t,d)}});for(var[,u]of a){if(!ee.includes(t,u)){var s=fe.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(q.equals(u,i.path)){var c=fe.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(q.equals(u,o.path)){var f=fe.leaf(r,u);f.text=f.text.slice(o.offset)}}S.isEditor(r)&&(r.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(me.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(me.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>me.isText(e)||we.isElement(e)||S.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=HO.get(e);if(t!==void 0)return t;var n=e.every((r=>fe.isNode(r)));return HO.set(e,n),n},last(e,t){for(var n=t.slice(),r=fe.get(e,n);r&&!me.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=fe.get(e,t);if(!me.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of q.levels(t,n)){var o=fe.get(e,r);yield[o,r]}},matches:(e,t)=>we.isElement(e)&&we.isElementProps(t)&&we.matches(e,t)||me.isText(e)&&me.isTextProps(t)&&me.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?q.isBefore(u,i):q.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||me.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=q.next(u);if(fe.has(e,l)){u=l,s=fe.get(e,u);continue}}r&&u[u.length-1]!==0?(u=q.previous(u),s=fe.get(e,u)):(u=q.parent(u),s=fe.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;q.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=fe.get(e,u)}},parent(e,t){var n=q.parent(t),r=fe.get(e,n);if(me.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>me.isText(e)?e.text:e.children.map(fe.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of fe.nodes(e,t))me.isText(n)&&(yield[n,r])}};function VO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VO(Object(n),!0).forEach((function(r){ji(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VO(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Qa={isNodeOperation:e=>Qa.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Jn(e))return!1;switch(e.type){case"insert_node":case"remove_node":return q.isPath(e.path)&&fe.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&q.isPath(e.path);case"merge_node":return typeof e.position=="number"&&q.isPath(e.path)&&Jn(e.properties);case"move_node":return q.isPath(e.path)&&q.isPath(e.newPath);case"set_node":return q.isPath(e.path)&&Jn(e.properties)&&Jn(e.newProperties);case"set_selection":return e.properties===null&&ee.isRange(e.newProperties)||e.newProperties===null&&ee.isRange(e.properties)||Jn(e.properties)&&Jn(e.newProperties);case"split_node":return q.isPath(e.path)&&typeof e.position=="number"&&Jn(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((t=>Qa.isOperation(t))),isSelectionOperation:e=>Qa.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Qa.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return ln(ln({},e),{},{type:"remove_node"});case"insert_text":return ln(ln({},e),{},{type:"remove_text"});case"merge_node":return ln(ln({},e),{},{type:"split_node",path:q.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(q.equals(t,n))return e;if(q.isSibling(n,t))return ln(ln({},e),{},{path:t,newPath:n});var r=q.transform(n,e),o=q.transform(q.next(n),e);return ln(ln({},e),{},{path:r,newPath:o});case"remove_node":return ln(ln({},e),{},{type:"insert_node"});case"remove_text":return ln(ln({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return ln(ln({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return ln(ln({},e),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return ln(ln({},e),{},{type:"merge_node",path:q.next(e.path)})}}},q={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=q.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return q.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return q.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return q.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((n,r)=>n===t[r])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>q.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&q.compare(e,t)===0,isBefore:(e,t)=>q.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&q.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&q.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&q.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&q.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]=="number"),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&q.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!q.isAncestor(t,e)&&!q.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return O1(e,(r=>{var{affinity:o="forward"}=n;if(e&&(e==null?void 0:e.length)!==0){if(r===null)return null;switch(t.type){case"insert_node":var{path:i}=t;(q.equals(i,r)||q.endsBefore(i,r)||q.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(q.equals(a,r)||q.isAncestor(a,r))return null;q.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;q.equals(u,r)||q.endsBefore(u,r)?r[u.length-1]-=1:q.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(q.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else q.endsBefore(l,r)?r[l.length-1]+=1:q.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:p}=t;if(q.equals(f,p))return;if(q.isAncestor(f,r)||q.equals(f,r)){var d=p.slice();return q.endsBefore(f,p)&&f.length<p.length&&(d[f.length-1]-=1),d.concat(r.slice(f.length))}q.isSibling(f,p)&&(q.isAncestor(p,r)||q.equals(p,r))?q.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:q.endsBefore(p,r)||q.equals(p,r)||q.isAncestor(p,r)?(q.endsBefore(f,r)&&(r[f.length-1]-=1),r[p.length-1]+=1):q.endsBefore(f,r)&&(q.equals(p,r)&&(r[p.length-1]+=1),r[f.length-1]-=1)}}}))}},one={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=q.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}};function WO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function qO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WO(Object(n),!0).forEach((function(r){ji(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WO(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Ue={compare(e,t){var n=q.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>Ue.compare(e,t)===1,isBefore:(e,t)=>Ue.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&q.equals(e.path,t.path),isPoint:e=>Jn(e)&&typeof e.offset=="number"&&q.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return O1(e,(r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(t.type){case"insert_node":case"move_node":r.path=q.transform(i,t,n);break;case"insert_text":q.equals(t.path,i)&&t.offset<=a&&(r.offset+=t.text.length);break;case"merge_node":q.equals(t.path,i)&&(r.offset+=t.position),r.path=q.transform(i,t,n);break;case"remove_text":q.equals(t.path,i)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break;case"remove_node":if(q.equals(t.path,i)||q.isAncestor(t.path,i))return null;r.path=q.transform(i,t,n);break;case"split_node":if(q.equals(t.path,i)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(r.offset-=t.position,r.path=q.transform(i,t,qO(qO({},n),{},{affinity:"forward"})))}else r.path=q.transform(i,t,n)}}))}},ine={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=Ue.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},ane=["anchor","focus"];function GO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}var ee={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return ee.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=ee.edges(e);return t},equals:(e,t)=>Ue.equals(e.anchor,t.anchor)&&Ue.equals(e.focus,t.focus),includes(e,t){if(ee.isRange(t)){if(ee.includes(e,t.anchor)||ee.includes(e,t.focus))return!0;var[n,r]=ee.edges(e),[o,i]=ee.edges(t);return Ue.isBefore(n,o)&&Ue.isAfter(r,i)}var[a,u]=ee.edges(e),s=!1,l=!1;return Ue.isPoint(t)?(s=Ue.compare(t,a)>=0,l=Ue.compare(t,u)<=0):(s=q.compare(t,a.path)>=0,l=q.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=fa(e,ane),[r,o]=ee.edges(e),[i,a]=ee.edges(t),u=Ue.isBefore(r,i)?i:r,s=Ue.isBefore(o,a)?o:a;return Ue.isBefore(s,u)?null:(function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?GO(Object(f),!0).forEach((function(p){ji(l,p,f[p])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):GO(Object(f)).forEach((function(p){Object.defineProperty(l,p,Object.getOwnPropertyDescriptor(f,p))}))}return l})({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Ue.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Ue.equals(t,n)},isExpanded:e=>!ee.isCollapsed(e),isForward:e=>!ee.isBackward(e),isRange:e=>Jn(e)&&Ue.isPoint(e.anchor)&&Ue.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=ee.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return O1(e,(r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=ee.isCollapsed(r);ee.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?ee.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=Ue.transform(r.anchor,t,{affinity:o}),l=Ue.transform(r.focus,t,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l}))}},une={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=ee.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},RL=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Jn(r)&&Jn(o)){if(!RL(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0},sne=["text"],lne=["anchor","focus"];function KO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KO(Object(n),!0).forEach((function(r){ji(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KO(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var me={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return fa(i,sne)}return RL(r?o(e):e,r?o(t):t)},isText:e=>Jn(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every((t=>me.isText(t))),isTextProps:e=>e.text!==void 0,matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Vi({},e)];for(var r of t){var o=fa(r,lne),[i,a]=ee.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var p=l,d=void 0,m=void 0;if(a.offset<s){var v=a.offset-f;m=Vi(Vi({},p),{},{text:p.text.slice(v)}),p=Vi(Vi({},p),{},{text:p.text.slice(0,v)})}if(i.offset>f){var h=i.offset-f;d=Vi(Vi({},p),{},{text:p.text.slice(0,h)}),p=Vi(Vi({},p),{},{text:p.text.slice(h)})}Object.assign(p,o),d&&u.push(d),u.push(p),m&&u.push(m)}}n=u}return n}};function XO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function ed(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XO(Object(n),!0).forEach((function(r){ji(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XO(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var cne={transform(e,t){e.children=FO(e.children);var n=e.selection&&FO(e.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=fe.parent(r,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of ee.points(o))o[f]=Ue.transform(c,i);break;case"insert_text":var{path:p,offset:d,text:m}=i;if(m.length===0)break;var v=fe.leaf(r,p),h=v.text.slice(0,d),y=v.text.slice(d);if(v.text=h+m+y,o)for(var[g,b]of ee.points(o))o[b]=Ue.transform(g,i);break;case"merge_node":var{path:w}=i,x=fe.get(r,w),k=q.previous(w),D=fe.get(r,k),T=fe.parent(r,w),A=w[w.length-1];if(me.isText(x)&&me.isText(D))D.text+=x.text;else{if(me.isText(x)||me.isText(D))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(x," ").concat(D));D.children.push(...x.children)}if(T.children.splice(A,1),o)for(var[F,j]of ee.points(o))o[j]=Ue.transform(F,i);break;case"move_node":var{path:R,newPath:U}=i;if(q.isAncestor(R,U))throw new Error("Cannot move a path [".concat(R,"] to new path [").concat(U,"] because the destination is inside itself."));var H=fe.get(r,R),G=fe.parent(r,R),X=R[R.length-1];G.children.splice(X,1);var oe=q.transform(R,i),se=fe.get(r,q.parent(oe)),L=oe[oe.length-1];if(se.children.splice(L,0,H),o)for(var[B,E]of ee.points(o))o[E]=Ue.transform(B,i);break;case"remove_node":var{path:O}=i,M=O[O.length-1];if(fe.parent(r,O).children.splice(M,1),o)for(var[V,Q]of ee.points(o)){var Z=Ue.transform(V,i);if(o!=null&&Z!=null)o[Q]=Z;else{var le=void 0,Se=void 0;for(var[Oe,Me]of fe.texts(r)){if(q.compare(Me,O)!==-1){Se=[Oe,Me];break}le=[Oe,Me]}var ne=!1;le&&Se&&(ne=q.equals(Se[1],O)?!q.hasPrevious(Se[1]):q.common(le[1],O).length<q.common(Se[1],O).length),le&&!ne?(V.path=le[1],V.offset=le[0].text.length):Se?(V.path=Se[1],V.offset=0):o=null}}break;case"remove_text":var{path:Ye,offset:Re,text:xe}=i;if(xe.length===0)break;var Ne=fe.leaf(r,Ye),Xt=Ne.text.slice(0,Re),nt=Ne.text.slice(Re+xe.length);if(Ne.text=Xt+nt,o)for(var[mt,It]of ee.points(o))o[It]=Ue.transform(mt,i);break;case"set_node":var{path:Wn,properties:Qe,newProperties:hr}=i;if(Wn.length===0)throw new Error("Cannot set properties on the root node!");var ko=fe.get(r,Wn);for(var ni in hr){if(ni==="children"||ni==="text")throw new Error('Cannot set the "'.concat(ni,'" property of nodes!'));var Tl=hr[ni];Tl==null?delete ko[ni]:ko[ni]=Tl}for(var Xu in Qe)hr.hasOwnProperty(Xu)||delete ko[Xu];break;case"set_selection":var{newProperties:Oo}=i;if(Oo==null)o=Oo;else{if(o==null){if(!ee.isRange(Oo))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Oo)," when there is no current selection."));o=ed({},Oo)}for(var ri in Oo){var Ri=Oo[ri];if(Ri==null){if(ri==="anchor"||ri==="focus")throw new Error('Cannot remove the "'.concat(ri,'" selection property'));delete o[ri]}else o[ri]=Ri}}break;case"split_node":var{path:qn,position:Gn,properties:Kn}=i;if(qn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(qn,"] because the root node cannot be split."));var ar,kn=fe.get(r,qn),Zr=fe.parent(r,qn),zf=qn[qn.length-1];if(me.isText(kn)){var _a=kn.text.slice(0,Gn),Ni=kn.text.slice(Gn);kn.text=_a,ar=ed(ed({},Kn),{},{text:Ni})}else{var Bl=kn.children.slice(0,Gn),Yu=kn.children.slice(Gn);kn.children=Bl,ar=ed(ed({},Kn),{},{children:Yu})}if(Zr.children.splice(zf+1,0,ar),o)for(var[Pl,Ao]of ee.points(o))o[Ao]=Ue.transform(Pl,i)}return o})(e,n,t)}finally{e.children=MO(e.children),e.selection=n?tl(n)?MO(n):n:null}}},fne=["text"],dne=["children"];function YO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function ZO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YO(Object(n),!0).forEach((function(r){ji(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YO(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var pne={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};S.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(fe.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?S.end(e,[]):[0],s=!0),s==null&&(s=!1),ee.isRange(a))if(r||(a=S.unhangRange(e,a)),ee.isCollapsed(a))a=a.anchor;else{var[,c]=ee.edges(a),f=S.pointRef(e,c);K.delete(e,{at:a}),a=f.unref()}if(Ue.isPoint(a)){u==null&&(u=me.isText(l)?k=>me.isText(k):e.isInline(l)?k=>me.isText(k)||S.isInline(e,k):k=>S.isBlock(e,k));var[p]=S.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,m=S.pathRef(e,d),v=S.isEnd(e,a,d);K.splitNodes(e,{at:a,match:u,mode:i,voids:o});var h=m.unref();a=v?q.next(h):h}var y=q.parent(a),g=a[a.length-1];if(o||!S.void(e,{at:y})){for(var b of t){var w=y.concat(g);g++,e.apply({type:"insert_node",path:w,node:b}),a=q.next(a)}if(a=q.previous(a),s){var x=S.end(e,a);x&&K.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};S.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(i==null&&(i=q.isPath(n)?Nl(e,n):b=>S.isBlock(e,b)),n){var a=S.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(b=>{var[,w]=b;return S.pathRef(e,w)}));for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=S.node(e,q.parent(l)),[f,p]=c,d=l[l.length-1],{length:m}=f.children;if(m===1){var v=q.next(p);K.moveNodes(e,{at:l,to:v,voids:o}),K.removeNodes(e,{at:p,voids:o})}else if(d===0)K.moveNodes(e,{at:l,to:p,voids:o});else if(d===m-1){var h=q.next(p);K.moveNodes(e,{at:l,to:h,voids:o})}else{var y=q.next(l),g=q.next(p);K.splitNodes(e,{at:y,voids:o}),K.moveNodes(e,{at:l,to:g,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};S.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(n==null)if(q.isPath(r)){var[u]=S.parent(e,r);n=A=>u.children.includes(A)}else n=A=>S.isBlock(e,A);if(!o&&ee.isRange(r)&&(r=S.unhangRange(e,r)),ee.isRange(r))if(ee.isCollapsed(r))r=r.anchor;else{var[,s]=ee.edges(r),l=S.pointRef(e,s);K.delete(e,{at:r}),r=l.unref(),t.at==null&&K.select(e,r)}var[c]=S.nodes(e,{at:r,match:n,voids:i,mode:a}),f=S.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[p,d]=c,[m,v]=f;if(d.length!==0&&v.length!==0){var h,y,g=q.next(v),b=q.common(d,v),w=q.isSibling(d,v),x=Array.from(S.levels(e,{at:d}),(A=>{var[F]=A;return F})).slice(b.length).slice(0,-1),k=S.above(e,{at:d,mode:"highest",match:A=>x.includes(A)&&NL(e,A)}),D=k&&S.pathRef(e,k[1]);if(me.isText(p)&&me.isText(m)){var T=fa(p,fne);y=m.text.length,h=T}else{if(!we.isElement(p)||!we.isElement(m))throw new Error("Cannot merge the node at path [".concat(d,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(m)));T=fa(p,dne),y=m.children.length,h=T}w||K.moveNodes(e,{at:d,to:g,voids:i}),D&&K.removeNodes(e,{at:D.current,voids:i}),we.isElement(m)&&S.isEmpty(e,m)||me.isText(m)&&m.text===""&&v[v.length-1]!==0?K.removeNodes(e,{at:v,voids:i}):e.apply({type:"merge_node",path:g,position:y,properties:h}),D&&D.unref()}}}}))},moveNodes(e,t){S.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){a==null&&(a=q.isPath(r)?Nl(e,r):d=>S.isBlock(e,d));var u=S.pathRef(e,n),s=S.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(d=>{var[,m]=d;return S.pathRef(e,m)}));for(var c of l){var f=c.unref(),p=u.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:p}),u.current&&q.isSibling(p,f)&&q.isAfter(p,f)&&(u.current=q.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};S.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=q.isPath(i)?Nl(e,i):p=>S.isBlock(e,p)),!n&&ee.isRange(i)&&(i=S.unhangRange(e,i));var u=S.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(p=>{var[,d]=p;return S.pathRef(e,d)}));for(var l of s){var c=l.unref();if(c){var[f]=S.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};S.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=q.isPath(o)?Nl(e,o):x=>S.isBlock(e,x)),!i&&ee.isRange(o)&&(o=S.unhangRange(e,o)),u&&ee.isRange(o)){if(ee.isCollapsed(o)&&S.leaf(e,o.anchor)[0].text.length>0)return;var l=S.rangeRef(e,o,{affinity:"inward"}),[c,f]=ee.edges(o),p=a==="lowest"?"lowest":"highest",d=S.isEnd(e,f,f.path);K.splitNodes(e,{at:f,match:r,mode:p,voids:s,always:!d});var m=S.isStart(e,c,c.path);K.splitNodes(e,{at:c,match:r,mode:p,voids:s,always:!m}),o=l.unref(),n.at==null&&K.select(e,o)}for(var[v,h]of S.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},g={};if(h.length!==0){var b=!1;for(var w in t)w!=="children"&&w!=="text"&&t[w]!==v[w]&&(b=!0,v.hasOwnProperty(w)&&(y[w]=v[w]),t[w]!=null&&(g[w]=t[w]));b&&e.apply({type:"set_node",path:h,properties:y,newProperties:g})}}}}))},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};S.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(o==null&&(o=H=>S.isBlock(e,H)),ee.isRange(i)&&(i=hne(e,i)),q.isPath(i)){var s=i,l=S.point(e,s),[c]=S.parent(e,s);o=H=>H===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=S.pointRef(e,i,{affinity:"backward"}),[p]=S.nodes(e,{at:i,match:o,mode:n,voids:r});if(p){var d=S.void(e,{at:i,mode:"highest"});if(!r&&d){var[m,v]=d;if(we.isElement(m)&&e.isInline(m)){var h=S.after(e,v);if(!h){var y=q.next(v);K.insertNodes(e,{text:""},{at:y,voids:r}),h=S.point(e,y)}i=h,u=!0}a=i.path.length-v.length+1,u=!0}var g=S.pointRef(e,i),b=i.path.length-a,[,w]=p,x=i.path.slice(0,b),k=a===0?i.offset:i.path[b]+0;for(var[D,T]of S.levels(e,{at:x,reverse:!0,voids:r})){var A=!1;if(T.length<w.length||T.length===0||!r&&S.isVoid(e,D))break;var F=f.current,j=S.isEnd(e,F,T);if(u||!f||!S.isEdge(e,F,T)){A=!0;var R=fe.extractProps(D);e.apply({type:"split_node",path:T,position:k,properties:R})}k=T[T.length-1]+(A||j?1:0)}if(t.at==null){var U=g.current||S.end(e,[]);K.select(e,U)}f.unref(),g.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;K.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};S.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=q.isPath(i)?Nl(e,i):p=>S.isBlock(e,p)),q.isPath(i)&&(i=S.range(e,i));var u=ee.isRange(i)?S.rangeRef(e,i):null,s=S.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(p=>{var[,d]=p;return S.pathRef(e,d)})).reverse(),c=function(p){var d=p.unref(),[m]=S.node(e,d),v=S.range(e,d);r&&u&&(v=ee.intersection(u.current,v)),K.liftNodes(e,{at:v,match:h=>we.isAncestor(m)&&m.children.includes(h),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};S.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(a==null&&(a=q.isPath(u)?Nl(e,u):e.isInline(t)?h=>S.isInline(e,h)||me.isText(h):h=>S.isBlock(e,h)),o&&ee.isRange(u)){var[s,l]=ee.edges(u),c=S.rangeRef(e,u,{affinity:"inward"});K.splitNodes(e,{at:l,match:a,voids:i}),K.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&K.select(e,u)}var f=Array.from(S.nodes(e,{at:u,match:e.isInline(t)?h=>S.isBlock(e,h):h=>S.isEditor(h),mode:"lowest",voids:i}));for(var[,p]of f){var d=ee.isRange(u)?ee.intersection(u,S.range(e,p)):u;if(d){var m=Array.from(S.nodes(e,{at:d,match:a,mode:r,voids:i}));if(m.length>0){var v=(function(){var[h]=m,y=m[m.length-1],[,g]=h,[,b]=y;if(g.length===0&&b.length===0)return"continue";var w=q.equals(g,b)?q.parent(g):q.common(g,b),x=S.range(e,g,b),k=S.node(e,w),[D]=k,T=w.length+1,A=q.next(b.slice(0,T)),F=ZO(ZO({},t),{},{children:[]});K.insertNodes(e,F,{at:A,voids:i}),K.moveNodes(e,{at:x,match:j=>we.isAncestor(D)&&D.children.includes(j),to:A.concat(0),voids:i})})();if(v==="continue")continue}}}}}))}},NL=(e,t)=>{if(we.isElement(t)){var n=t;return!!S.isVoid(e,t)||n.children.length===1&&NL(e,n.children[0])}return!S.isEditor(t)},hne=(e,t)=>{if(ee.isCollapsed(t))return t.anchor;var[,n]=ee.edges(t),r=S.pointRef(e,n);return K.delete(e,{at:t}),r.unref()},Nl=(e,t)=>{var[n]=S.node(e,t);return r=>r===n};function JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function QO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(n),!0).forEach((function(r){ji(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var gne={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")K.select(e,r.anchor);else if(n==="focus")K.select(e,r.focus);else if(n==="start"){var[o]=ee.edges(r);K.select(e,o)}else if(n==="end"){var[,i]=ee.edges(r);K.select(e,i)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){a==="start"&&(a=ee.isBackward(n)?"focus":"anchor"),a==="end"&&(a=ee.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(a==null||a==="anchor"){var f=i?S.before(e,u,l):S.after(e,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var p=i?S.before(e,s,l):S.after(e,s,l);p&&(c.focus=p)}K.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=S.range(e,t),n)K.setSelection(e,t);else{if(!ee.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){o==="start"&&(o=ee.isBackward(r)?"focus":"anchor"),o==="end"&&(o=ee.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;K.setSelection(e,{[o==="anchor"?"anchor":"focus"]:QO(QO({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)(i==="anchor"&&t.anchor!=null&&!Ue.equals(t.anchor,n.anchor)||i==="focus"&&t.focus!=null&&!Ue.equals(t.focus,n.focus)||i!=="anchor"&&i!=="focus"&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},vne={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};S.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(ee.isRange(a)&&ee.isCollapsed(a)&&(a=a.anchor),Ue.isPoint(a)){var s=S.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?S.before(e,a,c)||S.start(e,[]):S.after(e,a,c)||S.end(e,[])},u=!0}}if(q.isPath(a))K.removeNodes(e,{at:a,voids:i});else if(!ee.isCollapsed(a)){if(!u){var[,f]=ee.edges(a),p=S.end(e,[]);Ue.equals(f,p)||(a=S.unhangRange(e,a,{voids:i}))}var[d,m]=ee.edges(a),v=S.above(e,{match:Se=>S.isBlock(e,Se),at:d,voids:i}),h=S.above(e,{match:Se=>S.isBlock(e,Se),at:m,voids:i}),y=v&&h&&!q.equals(v[1],h[1]),g=q.equals(d.path,m.path),b=i?null:S.void(e,{at:d,mode:"highest"}),w=i?null:S.void(e,{at:m,mode:"highest"});if(b){var x=S.before(e,d);x&&v&&q.isAncestor(v[1],x.path)&&(d=x)}if(w){var k=S.after(e,m);k&&h&&q.isAncestor(h[1],k.path)&&(m=k)}var D,T=[];for(var A of S.nodes(e,{at:a,voids:i})){var[F,j]=A;D&&q.compare(j,D)===0||(!i&&S.isVoid(e,F)||!q.isCommon(j,d.path)&&!q.isCommon(j,m.path))&&(T.push(A),D=j)}var R=Array.from(T,(Se=>{var[,Oe]=Se;return S.pathRef(e,Oe)})),U=S.pointRef(e,d),H=S.pointRef(e,m);if(!g&&!b){var G=U.current,[X]=S.leaf(e,G),{path:oe}=G,{offset:se}=d,L=X.text.slice(se);L.length>0&&e.apply({type:"remove_text",path:oe,offset:se,text:L})}for(var B of R){var E=B.unref();K.removeNodes(e,{at:E,voids:i})}if(!w){var O=H.current,[M]=S.leaf(e,O),{path:V}=O,Q=g?d.offset:0,Z=M.text.slice(Q,m.offset);Z.length>0&&e.apply({type:"remove_text",path:V,offset:Q,text:Z})}!g&&y&&H.current&&U.current&&K.mergeNodes(e,{at:H.current,hanging:!0,voids:i});var le=n?U.unref()||H.unref():H.unref()||U.unref();t.at==null&&le&&K.select(e,le)}}}))},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};S.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(ee.isRange(i))if(r||(i=S.unhangRange(e,i)),ee.isCollapsed(i))i=i.anchor;else{var[,a]=ee.edges(i);if(!o&&S.void(e,{at:a}))return;var u=S.pointRef(e,a);K.delete(e,{at:i}),i=u.unref()}else q.isPath(i)&&(i=S.start(e,i));if(o||!S.void(e,{at:i})){var s=S.above(e,{at:i,match:O=>S.isInline(e,O),mode:"highest",voids:o});if(s){var[,l]=s;S.isEnd(e,i,l)?i=S.after(e,l):S.isStart(e,i,l)&&(i=S.before(e,l))}var c=S.above(e,{match:O=>S.isBlock(e,O),at:i,voids:o}),[,f]=c,p=S.isStart(e,i,f),d=S.isEnd(e,i,f),m=p&&d,v=!p||p&&d,h=!d,[,y]=fe.first({children:t},[]),[,g]=fe.last({children:t},[]),b=[],w=O=>{var[M,V]=O;return V.length!==0&&(!!m||!(v&&q.isAncestor(V,y)&&we.isElement(M)&&!e.isVoid(M)&&!e.isInline(M))&&!(h&&q.isAncestor(V,g)&&we.isElement(M)&&!e.isVoid(M)&&!e.isInline(M)))};for(var x of fe.nodes({children:t},{pass:w}))w(x)&&b.push(x);var k=[],D=[],T=[],A=!0,F=!1;for(var[j]of b)we.isElement(j)&&!e.isInline(j)?(A=!1,F=!0,D.push(j)):A?k.push(j):T.push(j);var[R]=S.nodes(e,{at:i,match:O=>me.isText(O)||S.isInline(e,O),mode:"highest",voids:o}),[,U]=R,H=S.isStart(e,i,U),G=S.isEnd(e,i,U),X=S.pathRef(e,d?q.next(f):f),oe=S.pathRef(e,G?q.next(U):U),se=S.pathRef(e,f);K.splitNodes(e,{at:i,match:O=>F?S.isBlock(e,O):me.isText(O)||S.isInline(e,O),mode:F?"lowest":"highest",voids:o});var L=S.pathRef(e,!H||H&&G?q.next(U):U);if(K.insertNodes(e,k,{at:L.current,match:O=>me.isText(O)||S.isInline(e,O),mode:"highest",voids:o}),m&&D.length&&K.delete(e,{at:se.unref(),voids:o}),K.insertNodes(e,D,{at:X.current,match:O=>S.isBlock(e,O),mode:"lowest",voids:o}),K.insertNodes(e,T,{at:oe.current,match:O=>me.isText(O)||S.isInline(e,O),mode:"highest",voids:o}),!n.at){var B;B=T.length>0?q.previous(oe.current):D.length>0?q.previous(X.current):q.previous(L.current);var E=S.end(e,B);K.select(e,E)}L.unref(),X.unref(),oe.unref()}}}))},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};S.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(q.isPath(o)&&(o=S.range(e,o)),ee.isRange(o))if(ee.isCollapsed(o))o=o.anchor;else{var i=ee.end(o);if(!r&&S.void(e,{at:i}))return;var a=S.pointRef(e,i);K.delete(e,{at:o,voids:r}),o=a.unref(),K.setSelection(e,{anchor:o,focus:o})}if(r||!S.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function eA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function hv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(n),!0).forEach((function(r){ji(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eA(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var K=hv(hv(hv(hv({},cne),pne),gne),vne),KC="[object Map]",XC="[object Set]",mne=/^\[object .+?Constructor\]$/,yne=/^(?:0|[1-9]\d*)$/,bne="[\\ud800-\\udfff]",YC="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",ZC="\\ud83c[\\udffb-\\udfff]",$L="[^\\ud800-\\udfff]",UL="(?:\\ud83c[\\udde6-\\uddff]){2}",zL="[\\ud800-\\udbff][\\udc00-\\udfff]",tA="(?:"+YC+"|"+ZC+")?",wne="[\\ufe0e\\ufe0f]?"+tA+("(?:\\u200d(?:"+[$L,UL,zL].join("|")+")[\\ufe0e\\ufe0f]?"+tA+")*"),_ne="(?:"+[$L+YC+"?",YC,UL,zL,bne].join("|")+")",xne=RegExp(ZC+"(?="+ZC+")|"+_ne+wne,"g"),Cne=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Sne=typeof Et=="object"&&Et&&Et.Object===Object&&Et,Ene=typeof self=="object"&&self&&self.Object===Object&&self,wl=Sne||Ene||Function("return this")();function Dne(e,t){return(function(n,r){for(var o=-1,i=n?n.length:0,a=Array(i);++o<i;)a[o]=r(n[o],o,n);return a})(t,(function(n){return e[n]}))}function kne(e){var t=-1,n=Array(e.size);return e.forEach((function(r,o){n[++t]=[o,r]})),n}function One(e){var t=-1,n=Array(e.size);return e.forEach((function(r){n[++t]=r})),n}function Ane(e){return(function(t){return Cne.test(t)})(e)?(function(t){return t.match(xne)||[]})(e):(function(t){return t.split("")})(e)}var nA,rA,Tne=Function.prototype,A1=Object.prototype,v2=wl["__core-js_shared__"],oA=(function(){var e=/[^.]+$/.exec(v2&&v2.keys&&v2.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),HL=Tne.toString,D0=A1.hasOwnProperty,gg=A1.toString,Bne=RegExp("^"+HL.call(D0).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),iA=wl.Symbol,m2=iA?iA.iterator:void 0,Pne=A1.propertyIsEnumerable,Fne=(nA=Object.keys,rA=Object,function(e){return nA(rA(e))}),JC=vg(wl,"DataView"),QC=vg(wl,"Map"),eS=vg(wl,"Promise"),tS=vg(wl,"Set"),nS=vg(wl,"WeakMap"),Mne=_l(JC),Ine=_l(QC),jne=_l(eS),Lne=_l(tS),Rne=_l(nS);function Nne(e,t){var n=VL(e)||(function(a){return(function(u){return GL(u)&&X4(u)})(a)&&D0.call(a,"callee")&&(!Pne.call(a,"callee")||gg.call(a)=="[object Arguments]")})(e)?(function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l})(e.length,String):[],r=n.length,o=!!r;for(var i in e)!D0.call(e,i)||o&&(i=="length"||zne(i,r))||n.push(i);return n}function $ne(e){if(!qL(e)||(function(n){return!!oA&&oA in n})(e))return!1;var t=WL(e)||(function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch(o){}return r})(e)?Bne:mne;return t.test(_l(e))}function Une(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||A1,t!==r)return Fne(e);var t,n,r,o=[];for(var i in Object(e))D0.call(e,i)&&i!="constructor"&&o.push(i);return o}function vg(e,t){var n=(function(r,o){return r==null?void 0:r[o]})(e,t);return $ne(n)?n:void 0}var ps=function(e){return gg.call(e)};function zne(e,t){return!!(t=t==null?9007199254740991:t)&&(typeof e=="number"||yne.test(e))&&e>-1&&e%1==0&&e<t}function _l(e){if(e!=null){try{return HL.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(JC&&ps(new JC(new ArrayBuffer(1)))!="[object DataView]"||QC&&ps(new QC)!=KC||eS&&ps(eS.resolve())!="[object Promise]"||tS&&ps(new tS)!=XC||nS&&ps(new nS)!="[object WeakMap]")&&(ps=function(e){var t=gg.call(e),n=t=="[object Object]"?e.constructor:void 0,r=n?_l(n):void 0;if(r)switch(r){case Mne:return"[object DataView]";case Ine:return KC;case jne:return"[object Promise]";case Lne:return XC;case Rne:return"[object WeakMap]"}return t});var VL=Array.isArray;function X4(e){return e!=null&&(function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})(e.length)&&!WL(e)}function WL(e){var t=qL(e)?gg.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function qL(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function GL(e){return!!e&&typeof e=="object"}function Hne(e){return e?Dne(e,(function(t){return X4(t)?Nne(t):Une(t)})(e)):[]}var aA=function(e){if(!e)return[];if(X4(e))return(function(n){return typeof n=="string"||!VL(n)&&GL(n)&&gg.call(n)=="[object String]"})(e)?Ane(e):(function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o<i;)r[o]=n[o];return r})(e);if(m2&&e[m2])return(function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o})(e[m2]());var t=ps(e);return(t==KC?kne:t==XC?One:Hne)(e)};function uA(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Y4(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(n){e[n]===void 0?e[n]=t[n]:uA(t[n])&&uA(e[n])&&Object.keys(t[n]).length>0&&Y4(e[n],t[n])}))}var KL={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function mg(){var e=typeof document<"u"?document:{};return Y4(e,KL),e}var Vne={document:KL,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<"u"&&clearTimeout(e)}};function xl(){var e=typeof window<"u"?window:{};return Y4(e,Vne),e}function rS(e){return rS=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},rS(e)}function k0(e,t){return k0=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},k0(e,t)}function Wne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function oS(e,t,n){return oS=Wne()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&k0(u,i.prototype),u},oS.apply(null,arguments)}function iS(e){var t=typeof Map=="function"?new Map:void 0;return iS=function(n){if(n===null||!(function(o){return Function.toString.call(o).indexOf("[native code]")!==-1})(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return oS(n,arguments,rS(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),k0(r,n)},iS(e)}var eu=(function(e){var t,n;function r(o){var i,a,u;return i=e.call.apply(e,[this].concat(o))||this,a=(function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s})(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r})(iS(Array));function T1(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(n){Array.isArray(n)?t.push.apply(t,T1(n)):t.push(n)})),t}function XL(e,t){return Array.prototype.filter.call(e,t)}function N(e,t){var n=xl(),r=mg(),o=[];if(!t&&e instanceof eu)return e;if(!e)return new eu(o);if(typeof e=="string"){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=(function(l,c){if(typeof l!="string")return[l];for(var f=[],p=c.querySelectorAll(l),d=0;d<p.length;d+=1)f.push(p[d]);return f})(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof eu)return e;o=e}return new eu((function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c})(o))}function Gc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=T1(t.map((function(o){return o.split(" ")})));return this.forEach((function(o){var i;(i=o.classList).add.apply(i,r)})),this}function Kc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=T1(t.map((function(o){return o.split(" ")})));return this.forEach((function(o){var i;(i=o.classList).remove.apply(i,r)})),this}function Xc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=T1(t.map((function(o){return o.split(" ")})));return XL(this,(function(o){return r.filter((function(i){return o.classList.contains(i)})).length>0})).length>0}function mo(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function O0(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Yc(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(u,s){return s.toUpperCase()}))]=i.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Oi(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Ai(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(v){var h=v.target;if(h){var y=v.target.dom7EventData||[];if(y.indexOf(v)<0&&y.unshift(v),N(h).is(o))i.apply(h,y);else for(var g=N(h).parents(),b=0;b<g.length;b+=1)N(g[b]).is(o)&&i.apply(g[b],y)}}function s(v){var h=v&&v.target&&v.target.dom7EventData||[];h.indexOf(v)<0&&h.unshift(v),i.apply(this,h)}typeof t[1]=="function"&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var p=this[f];if(o)for(l=0;l<c.length;l+=1){var d=c[l];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[d]||(p.dom7LiveListeners[d]=[]),p.dom7LiveListeners[d].push({listener:i,proxyListener:u}),p.addEventListener(d,u,a)}else for(l=0;l<c.length;l+=1){var m=c[l];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[m]||(p.dom7Listeners[m]=[]),p.dom7Listeners[m].push({listener:i,proxyListener:s}),p.addEventListener(m,s,a)}}return this}function sA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];typeof t[1]=="function"&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],p=void 0;if(!o&&f.dom7Listeners?p=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(p=f.dom7LiveListeners[l]),p&&p.length)for(var d=p.length-1;d>=0;d-=1){var m=p[d];i&&m.listener===i||i&&m.listener&&m.listener.dom7proxy&&m.listener.dom7proxy===i?(f.removeEventListener(l,m.proxyListener,a),p.splice(d,1)):i||(f.removeEventListener(l,m.proxyListener,a),p.splice(d,1))}}return this}function A0(){var e=xl();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function T0(){var e=xl();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function lA(){if(this.length>0){var e=xl(),t=mg(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Zc(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function B0(){for(var e=xl(),t=0;t<this.length;t+=1){var n=this[t];n.style.display==="none"&&(n.style.display=""),e.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function P0(e,t){var n,r=xl();if(arguments.length===1){if(typeof e!="string"){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e=="string"){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function F0(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function cA(e){return N(XL(this,e))}function Su(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function M0(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function fA(e){var t,n,r=xl(),o=mg(),i=this[0];if(!i||e===void 0)return!1;if(typeof e=="string"){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=N(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof eu){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function yo(){for(var e,t=mg(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof e=="string"){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof eu)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function dA(e){var t,n,r=mg();for(t=0;t<this.length;t+=1)if(typeof e=="string"){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof eu)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Jc(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?N(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return N(t)}function I0(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?N(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return N(t)}function Qc(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return N(t)}function ef(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!N(r[o]).is(e)||t.push(r[o]);return N(t)}function tf(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function nf(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}N.fn=eu.prototype;var qne="resize scroll".split(" ");function YL(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)qne.indexOf(e)<0&&(e in this[o]?this[o][e]():N(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var pA=YL("click"),Eu=YL("focus"),Gne="[object GeneratorFunction]",Kne=/^(?:0|[1-9]\d*)$/;function Xne(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}var B1=Object.prototype,aS=B1.hasOwnProperty,ZL=B1.toString,Yne=B1.propertyIsEnumerable,Zne=(function(e,t){return function(n){return e(t(n))}})(Object.keys,Object);function Jne(e,t){var n=JL(e)||(function(a){return(function(u){return(function(s){return!!s&&typeof s=="object"})(u)&&Z4(u)})(a)&&aS.call(a,"callee")&&(!Yne.call(a,"callee")||ZL.call(a)=="[object Arguments]")})(e)?(function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l})(e.length,String):[],r=n.length,o=!!r;for(var i in e)!aS.call(e,i)||o&&(i=="length"||nre(i,r))||n.push(i);return n}var hA,Qne=(hA=function(e,t){return e&&ere(e,t,rre)},function(e,t){if(e==null)return e;if(!Z4(e))return hA(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&t(o[r],r,o)!==!1;);return e}),ere=(function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[++o];if(n(i[s],s,i)===!1)break}return t}})();function tre(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||B1,t!==r)return Zne(e);var t,n,r,o=[];for(var i in Object(e))aS.call(e,i)&&i!="constructor"&&o.push(i);return o}function nre(e,t){return!!(t=t==null?9007199254740991:t)&&(typeof e=="number"||Kne.test(e))&&e>-1&&e%1==0&&e<t}var JL=Array.isArray;function Z4(e){return e!=null&&(function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})(e.length)&&!(function(t){var n=(function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")})(t)?ZL.call(t):"";return n=="[object Function]"||n==Gne})(e)}function rre(e){return Z4(e)?Jne(e):tre(e)}function ore(e){return e}var J4=function(e,t){return(JL(e)?Xne:Qne)(e,typeof t=="function"?t:ore)};let QL=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var ire=/^\s+|\s+$/g,are=/^[-+]0x[0-9a-f]+$/i,ure=/^0b[01]+$/i,sre=/^0o[0-7]+$/i,lre=parseInt,cre=typeof Et=="object"&&Et&&Et.Object===Object&&Et,fre=typeof self=="object"&&self&&self.Object===Object&&self,dre=cre||fre||Function("return this")(),pre=Object.prototype.toString,hre=Math.max,gre=Math.min,y2=function(){return dre.Date.now()};function vre(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError("Expected a function");function d(b){var w=r,x=o;return r=o=void 0,l=b,a=e.apply(x,w)}function m(b){return l=b,u=setTimeout(h,t),c?d(b):a}function v(b){var w=b-s;return s===void 0||w>=t||w<0||f&&b-l>=i}function h(){var b=y2();if(v(b))return y(b);u=setTimeout(h,(function(w){var x=t-(w-s);return f?gre(x,i-(w-l)):x})(b))}function y(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function g(){var b=y2(),w=v(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return m(s);if(f)return u=setTimeout(h,t),d(s)}return u===void 0&&(u=setTimeout(h,t)),a}return t=gA(t)||0,j0(n)&&(c=!!n.leading,i=(f="maxWait"in n)?hre(gA(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),g.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},g.flush=function(){return u===void 0?a:y(y2())},g}function j0(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function gA(e){if(typeof e=="number")return e;if((function(r){return typeof r=="symbol"||(function(o){return!!o&&typeof o=="object"})(r)&&pre.call(r)=="[object Symbol]"})(e))return NaN;if(j0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=j0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(ire,"");var n=ure.test(e);return n||sre.test(e)?lre(e.slice(2),n?2:8):are.test(e)?NaN:+e}var rl=function(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError("Expected a function");return j0(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),vre(e,t,{leading:r,maxWait:t,trailing:o})};const mre={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function uh(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:t===void 0?void 0:t.key}}const uS=Array.isArray;function Dm(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function b2(e){return e===void 0}function Mr(e){return e!==void 0}const vA=uh("",{},[],void 0,void 0);function td(e,t){var n,r;const o=e.key===t.key,i=((n=e.data)===null||n===void 0?void 0:n.is)===((r=t.data)===null||r===void 0?void 0:r.is);return e.sel===t.sel&&o&&i}function yre(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const a=(r=e[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const bre=["create","update","remove","destroy","pre","post"];function wre(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=mre;for(const f of bre)for(const p of e){const d=p[f];d!==void 0&&n[f].push(d)}function o(f){const p=f.id?"#"+f.id:"",d=f.getAttribute("class"),m=d?"."+d.split(" ").join("."):"";return uh(r.tagName(f).toLowerCase()+p+m,{},[],void 0,f)}function i(f,p){return function(){if(--p==0){const d=r.parentNode(f);r.removeChild(d,f)}}}function a(f,p){var d,m;let v,h=f.data;if(h!==void 0){const b=(d=h.hook)===null||d===void 0?void 0:d.init;Mr(b)&&(b(f),h=f.data)}const y=f.children,g=f.sel;if(g==="!")b2(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(g!==void 0){const b=g.indexOf("#"),w=g.indexOf(".",b),x=b>0?b:g.length,k=w>0?w:g.length,D=b!==-1||w!==-1?g.slice(0,Math.min(x,k)):g,T=f.elm=Mr(h)&&Mr(v=h.ns)?r.createElementNS(v,D,h):r.createElement(D,h);for(x<k&&T.setAttribute("id",g.slice(x+1,k)),w>0&&T.setAttribute("class",g.slice(k+1).replace(/\./g," ")),v=0;v<n.create.length;++v)n.create[v](vA,f);if(uS(y))for(v=0;v<y.length;++v){const F=y[v];F!=null&&r.appendChild(T,a(F,p))}else Dm(f.text)&&r.appendChild(T,r.createTextNode(f.text));const A=f.data.hook;Mr(A)&&((m=A.create)===null||m===void 0||m.call(A,vA,f),A.insert&&p.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function u(f,p,d,m,v,h){for(;m<=v;++m){const y=d[m];y!=null&&r.insertBefore(f,a(y,h),p)}}function s(f){var p,d;const m=f.data;if(m!==void 0){(d=(p=m==null?void 0:m.hook)===null||p===void 0?void 0:p.destroy)===null||d===void 0||d.call(p,f);for(let v=0;v<n.destroy.length;++v)n.destroy[v](f);if(f.children!==void 0)for(let v=0;v<f.children.length;++v){const h=f.children[v];h!=null&&typeof h!="string"&&s(h)}}}function l(f,p,d,m){for(var v,h;d<=m;++d){let y,g;const b=p[d];if(b!=null)if(Mr(b.sel)){s(b),y=n.remove.length+1,g=i(b.elm,y);for(let x=0;x<n.remove.length;++x)n.remove[x](b,g);const w=(h=(v=b==null?void 0:b.data)===null||v===void 0?void 0:v.hook)===null||h===void 0?void 0:h.remove;Mr(w)?w(b,g):g()}else r.removeChild(f,b.elm)}}function c(f,p,d){var m,v,h,y,g;const b=(m=p.data)===null||m===void 0?void 0:m.hook;(v=b==null?void 0:b.prepatch)===null||v===void 0||v.call(b,f,p);const w=p.elm=f.elm,x=f.children,k=p.children;if(f!==p){if(p.data!==void 0){for(let D=0;D<n.update.length;++D)n.update[D](f,p);(y=(h=p.data.hook)===null||h===void 0?void 0:h.update)===null||y===void 0||y.call(h,f,p)}b2(p.text)?Mr(x)&&Mr(k)?x!==k&&(function(D,T,A,F){let j,R,U,H,G=0,X=0,oe=T.length-1,se=T[0],L=T[oe],B=A.length-1,E=A[0],O=A[B];for(;G<=oe&&X<=B;)se==null?se=T[++G]:L==null?L=T[--oe]:E==null?E=A[++X]:O==null?O=A[--B]:td(se,E)?(c(se,E,F),se=T[++G],E=A[++X]):td(L,O)?(c(L,O,F),L=T[--oe],O=A[--B]):td(se,O)?(c(se,O,F),r.insertBefore(D,se.elm,r.nextSibling(L.elm)),se=T[++G],O=A[--B]):td(L,E)?(c(L,E,F),r.insertBefore(D,L.elm,se.elm),L=T[--oe],E=A[++X]):(j===void 0&&(j=yre(T,G,oe)),R=j[E.key],b2(R)?r.insertBefore(D,a(E,F),se.elm):(U=T[R],U.sel!==E.sel?r.insertBefore(D,a(E,F),se.elm):(c(U,E,F),T[R]=void 0,r.insertBefore(D,U.elm,se.elm))),E=A[++X]);(G<=oe||X<=B)&&(G>oe?(H=A[B+1]==null?null:A[B+1].elm,u(D,H,A,X,B,F)):l(D,T,G,oe))})(w,x,k,d):Mr(k)?(Mr(f.text)&&r.setTextContent(w,""),u(w,null,k,0,k.length-1,d)):Mr(x)?l(w,x,0,x.length-1):Mr(f.text)&&r.setTextContent(w,""):f.text!==p.text&&(Mr(x)&&l(w,x,0,x.length-1),r.setTextContent(w,p.text)),(g=b==null?void 0:b.postpatch)===null||g===void 0||g.call(b,f,p)}}return function(f,p){let d,m,v;const h=[];for(d=0;d<n.pre.length;++d)n.pre[d]();for((function(y){return y.sel!==void 0})(f)||(f=o(f)),td(f,p)?c(f,p,h):(m=f.elm,v=r.parentNode(m),a(p,h),v!==null&&(r.insertBefore(v,p.elm,r.nextSibling(m)),l(v,[f],0,0))),d=0;d<h.length;++d)h[d].data.hook.insert(h[d]);for(d=0;d<n.post.length;++d)n.post[d]();return p}}function eR(e,t,n){if(e.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&t!==void 0)for(let r=0;r<t.length;++r){const o=t[r].data;o!==void 0&&eR(o,t[r].children,t[r].sel)}}function rf(e,t,n){let r,o,i,a={};if(n!==void 0?(t!==null&&(a=t),uS(n)?r=n:Dm(n)?o=n.toString():n&&n.sel&&(r=[n])):t!=null&&(uS(t)?r=t:Dm(t)?o=t.toString():t&&t.sel?r=[t]:a=t),r!==void 0)for(i=0;i<r.length;++i)Dm(r[i])&&(r[i]=uh(void 0,void 0,void 0,r[i],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||eR(a,r,e),uh(e,a,r,o,void 0)}function mA(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const a=i[n];o[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,a):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,a):r.setAttribute(n,a))}for(n in o)n in i||r.removeAttribute(n)}}const _re={create:mA,update:mA};function yA(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const xre={create:yA,update:yA},bA=/[A-Z]/g;function wA(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(bA,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(bA,"-$&").toLowerCase(),i[r]))}const Cre={create:wA,update:wA};function tR(e,t,n){if(typeof e=="function")e.call(t,n,t);else if(typeof e=="object")for(let r=0;r<e.length;r++)tR(e[r],t,n)}function Sre(e,t){const n=e.type,r=t.data.on;r&&r[n]&&tR(r[n],t,e)}function w2(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const s=t.listener=e.listener||function l(c){Sre(c,l.vnode)};if(s.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const Ere={create:w2,update:w2,destroy:w2};function _A(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||n==="value"&&i[n]===r||(i[n]=r)}const Dre={create:_A,update:_A},xA=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let _2=!1;function kre(e,t,n){(function(r){xA((function(){xA(r)}))})((function(){e[t]=n}))}function CA(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||(r[0]==="-"&&r[1]==="-"?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],r==="delayed"&&a.delayed)for(const s in a.delayed)n=a.delayed[s],u&&n===i.delayed[s]||kre(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const Ore={pre:function(){_2=!1},create:CA,update:CA,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;_2||(e.elm.offsetLeft,_2=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",(function(c){c.target===o&&--u,u===0&&t()}))}};function nR(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?nR(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(uh(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Be(e,t,...n){const r=nR(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?rf(e,t,r[0].text):rf(e,t,r)}Be||(Be={});var Are=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Tre=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rR="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",Bre="[\\ud800-\\udfff]",SA="["+rR+"]",L0="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",oR="\\d+",Pre="[\\u2700-\\u27bf]",iR="[a-z\\xdf-\\xf6\\xf8-\\xff]",aR="[^\\ud800-\\udfff"+rR+oR+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",sS="\\ud83c[\\udffb-\\udfff]",uR="[^\\ud800-\\udfff]",Q4="(?:\\ud83c[\\udde6-\\uddff]){2}",e3="[\\ud800-\\udbff][\\udc00-\\udfff]",hc="[A-Z\\xc0-\\xd6\\xd8-\\xde]",EA="(?:"+iR+"|"+aR+")",Fre="(?:"+hc+"|"+aR+")",DA="(?:"+L0+"|"+sS+")?",sR="[\\ufe0e\\ufe0f]?"+DA+("(?:\\u200d(?:"+[uR,Q4,e3].join("|")+")[\\ufe0e\\ufe0f]?"+DA+")*"),Mre="(?:"+[Pre,Q4,e3].join("|")+")"+sR,Ire="(?:"+[uR+L0+"?",L0,Q4,e3,Bre].join("|")+")",jre=RegExp("[']","g"),Lre=RegExp(L0,"g"),Rre=RegExp(sS+"(?="+sS+")|"+Ire+sR,"g"),Nre=RegExp([hc+"?"+iR+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[SA,hc,"$"].join("|")+")",Fre+"+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[SA,hc+EA,"$"].join("|")+")",hc+"?"+EA+"+(?:['](?:d|ll|m|re|s|t|ve))?",hc+"+(?:['](?:D|LL|M|RE|S|T|VE))?",oR,Mre].join("|"),"g"),$re=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Ure=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zre=typeof Et=="object"&&Et&&Et.Object===Object&&Et,Hre=typeof self=="object"&&self&&self.Object===Object&&self,Vre=zre||Hre||Function("return this")(),x2,Wre=(x2={À:"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",ſ:"ss"},function(e){return x2==null?void 0:x2[e]});function lR(e){return $re.test(e)}function qre(e){return lR(e)?(function(t){return t.match(Rre)||[]})(e):(function(t){return t.split("")})(e)}var Gre=Object.prototype.toString,kA=Vre.Symbol,OA=kA?kA.prototype:void 0,AA=OA?OA.toString:void 0;function Kre(e){if(typeof e=="string")return e;if((function(n){return typeof n=="symbol"||(function(r){return!!r&&typeof r=="object"})(n)&&Gre.call(n)=="[object Symbol]"})(e))return AA?AA.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Xre(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:(function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l})(e,t,n)}function km(e){return e==null?"":Kre(e)}var TA,Yre=(TA=function(e,t,n){return t=t.toLowerCase(),e+(n?Zre(km(t).toLowerCase()):t)},function(e){return(function(t,n,r,o){var i=-1,a=t?t.length:0;for(o;++i<a;)r=n(r,t[i],i,t);return r})((function(t,n,r){return t=km(t),(n=n)===void 0?(function(o){return Ure.test(o)})(t)?(function(o){return o.match(Nre)||[]})(t):(function(o){return o.match(Are)||[]})(t):t.match(n)||[]})((function(t){return(t=km(t))&&t.replace(Tre,Wre).replace(Lre,"")})(e).replace(jre,"")),TA,"")}),BA,Zre=(BA="toUpperCase",function(e){var t=lR(e=km(e))?qre(e):void 0,n=t?t[0]:e.charAt(0),r=t?Xre(t,1).join(""):e.slice(1);return n[BA]()+r});for(var Jre=Yre,Qre=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),C2={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},cR={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Qre?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},t3={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},gv=1;gv<20;gv++)t3["f"+gv]=111+gv;function fR(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(i){return(function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var p in C2)l[C2[p]]=!1;var d=!0,m=!1,v=void 0;try{for(var h,y=c[Symbol.iterator]();!(d=(h=y.next()).done);d=!0){var g=h.value,b=g.endsWith("?")&&g.length>1;b&&(g=g.slice(0,-1));var w=dR(g),x=C2[w];if(g.length>1&&!x&&!cR[g]&&!t3[w])throw new TypeError('Unknown modifier: "'+g+'"');f!==1&&x||(s?l.key=w:l.which=eoe(g)),x&&(l[x]=!b||null)}}catch(k){m=!0,v=k}finally{try{!d&&y.return&&y.return()}finally{if(m)throw v}}return l})(i,t)})),o=function(i){return r.some((function(a){return(function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0})(a,i)}))};return n==null?o:o(n)}function eoe(e){return e=dR(e),t3[e]||e.toUpperCase().charCodeAt(0)}function dR(e){return e=e.toLowerCase(),e=cR[e]||e}var toe=fR,S2=function(e,t){return fR(e,{byKey:!0},t)},noe=/^\s+|\s+$/g,roe=/^[-+]0x[0-9a-f]+$/i,ooe=/^0b[01]+$/i,ioe=/^0o[0-7]+$/i,aoe=parseInt,uoe=typeof Et=="object"&&Et&&Et.Object===Object&&Et,soe=typeof self=="object"&&self&&self.Object===Object&&self,loe=uoe||soe||Function("return this")(),coe=Object.prototype.toString,foe=Math.max,doe=Math.min,E2=function(){return loe.Date.now()};function lS(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function PA(e){if(typeof e=="number")return e;if((function(r){return typeof r=="symbol"||(function(o){return!!o&&typeof o=="object"})(r)&&coe.call(r)=="[object Symbol]"})(e))return NaN;if(lS(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=lS(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(noe,"");var n=ooe.test(e);return n||ioe.test(e)?aoe(e.slice(2),n?2:8):roe.test(e)?NaN:+e}var $l,pR=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError("Expected a function");function d(b){var w=r,x=o;return r=o=void 0,l=b,a=e.apply(x,w)}function m(b){return l=b,u=setTimeout(h,t),c?d(b):a}function v(b){var w=b-s;return s===void 0||w>=t||w<0||f&&b-l>=i}function h(){var b=E2();if(v(b))return y(b);u=setTimeout(h,(function(w){var x=t-(w-s);return f?doe(x,i-(w-l)):x})(b))}function y(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function g(){var b=E2(),w=v(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return m(s);if(f)return u=setTimeout(h,t),d(s)}return u===void 0&&(u=setTimeout(h,t)),a}return t=PA(t)||0,lS(n)&&(c=!!n.leading,i=(f="maxWait"in n)?foe(PA(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),g.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},g.flush=function(){return u===void 0?a:y(E2())},g},hR=yl((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",d="[object RegExp]",m="[object Set]",v="[object String]",h="[object Symbol]",y="[object WeakMap]",g="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",D="[object Int16Array]",T="[object Int32Array]",A="[object Uint8Array]",F="[object Uint8ClampedArray]",j="[object Uint16Array]",R="[object Uint32Array]",U=/\w*$/,H=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,X={};X[o]=X["[object Array]"]=X[g]=X[b]=X[i]=X[a]=X[w]=X[x]=X[k]=X[D]=X[T]=X[l]=X[c]=X[f]=X[d]=X[m]=X[v]=X[h]=X[A]=X[F]=X[j]=X[R]=!0,X["[object Error]"]=X[u]=X[y]=!1;var oe=typeof Et=="object"&&Et&&Et.Object===Object&&Et,se=typeof self=="object"&&self&&self.Object===Object&&self,L=oe||se||Function("return this")(),B=t&&!t.nodeType&&t,E=B&&e&&!e.nodeType&&e,O=E&&E.exports===B;function M(z,te){return z.set(te[0],te[1]),z}function V(z,te){return z.add(te),z}function Q(z,te,ge,be){var et=-1,jt=z?z.length:0;for(be;++et<jt;)ge=te(ge,z[et],et,z);return ge}function Z(z){var te=!1;if(z!=null&&typeof z.toString!="function")try{te=!!(z+"")}catch(ge){}return te}function le(z){var te=-1,ge=Array(z.size);return z.forEach((function(be,et){ge[++te]=[et,be]})),ge}function Se(z,te){return function(ge){return z(te(ge))}}function Oe(z){var te=-1,ge=Array(z.size);return z.forEach((function(be){ge[++te]=be})),ge}var Me=Array.prototype,ne=Function.prototype,Ye=Object.prototype,Re=L["__core-js_shared__"],xe=(function(){var z=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||"");return z?"Symbol(src)_1."+z:""})(),Ne=ne.toString,Xt=Ye.hasOwnProperty,nt=Ye.toString,mt=RegExp("^"+Ne.call(Xt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),It=O?L.Buffer:void 0,Wn=L.Symbol,Qe=L.Uint8Array,hr=Se(Object.getPrototypeOf,Object),ko=Object.create,ni=Ye.propertyIsEnumerable,Tl=Me.splice,Xu=Object.getOwnPropertySymbols,Oo=It?It.isBuffer:void 0,ri=Se(Object.keys,Object),Ri=oi(L,"DataView"),qn=oi(L,"Map"),Gn=oi(L,"Promise"),Kn=oi(L,"Set"),ar=oi(L,"WeakMap"),kn=oi(Object,"create"),Zr=ai(Ri),zf=ai(qn),_a=ai(Gn),Ni=ai(Kn),Bl=ai(ar),Yu=Wn?Wn.prototype:void 0,Pl=Yu?Yu.valueOf:void 0;function Ao(z){var te=-1,ge=z?z.length:0;for(this.clear();++te<ge;){var be=z[te];this.set(be[0],be[1])}}function Jr(z){var te=-1,ge=z?z.length:0;for(this.clear();++te<ge;){var be=z[te];this.set(be[0],be[1])}}function $i(z){var te=-1,ge=z?z.length:0;for(this.clear();++te<ge;){var be=z[te];this.set(be[0],be[1])}}function To(z){this.__data__=new Jr(z)}function xa(z,te){var ge=W(z)||(function(kt){return(function(it){return(function(bn){return!!bn&&typeof bn=="object"})(it)&&J(it)})(kt)&&Xt.call(kt,"callee")&&(!ni.call(kt,"callee")||nt.call(kt)==o)})(z)?(function(kt,it){for(var bn=-1,Xn=Array(kt);++bn<kt;)Xn[bn]=it(bn);return Xn})(z.length,String):[],be=ge.length,et=!!be;for(var jt in z)!Xt.call(z,jt)||et&&(jt=="length"||Jg(jt,be))||ge.push(jt);return ge}function Yg(z,te,ge){var be=z[te];Xt.call(z,te)&&Qg(be,ge)&&(ge!==void 0||te in z)||(z[te]=ge)}function Fr(z,te){for(var ge=z.length;ge--;)if(Qg(z[ge][0],te))return ge;return-1}function Hf(z,te,ge,be,et,jt,kt){var it;if(be&&(it=jt?be(z,et,jt,kt):be(z)),it!==void 0)return it;if(!yt(z))return z;var bn=W(z);if(bn){if(it=(function(Te){var dt=Te.length,en=Te.constructor(dt);return dt&&typeof Te[0]=="string"&&Xt.call(Te,"index")&&(en.index=Te.index,en.input=Te.input),en})(z),!te)return(function(Te,dt){var en=-1,Ze=Te.length;for(dt||(dt=Array(Ze));++en<Ze;)dt[en]=Te[en];return dt})(z,it)}else{var Xn=ii(z),Zu=Xn==u||Xn==s;if(ce(z))return(function(Te,dt){if(dt)return Te.slice();var en=new Te.constructor(Te.length);return Te.copy(en),en})(z,te);if(Xn==f||Xn==o||Zu&&!jt){if(Z(z))return jt?z:{};if(it=(function(Te){return typeof Te.constructor!="function"||Ca(Te)?{}:(dt=hr(Te),yt(dt)?ko(dt):{});var dt})(Zu?{}:z),!te)return(function(Te,dt){return Zg(Te,Vf(Te),dt)})(z,(function(Te,dt){return Te&&Zg(dt,qe(dt),Te)})(it,z))}else{if(!X[Xn])return jt?z:{};it=(function(Te,dt,en,Ze){var at=Te.constructor;switch(dt){case g:return Fl(Te);case i:case a:return new at(+Te);case b:return(function(ut,Yt){var ur=Yt?Fl(ut.buffer):ut.buffer;return new ut.constructor(ur,ut.byteOffset,ut.byteLength)})(Te,Ze);case w:case x:case k:case D:case T:case A:case F:case j:case R:return(function(ut,Yt){var ur=Yt?Fl(ut.buffer):ut.buffer;return new ut.constructor(ur,ut.byteOffset,ut.length)})(Te,Ze);case l:return(function(ut,Yt,ur){return Q(Yt?ur(le(ut),!0):le(ut),M,new ut.constructor)})(Te,Ze,en);case c:case v:return new at(Te);case d:return(function(ut){var Yt=new ut.constructor(ut.source,U.exec(ut));return Yt.lastIndex=ut.lastIndex,Yt})(Te);case m:return(function(ut,Yt,ur){return Q(Yt?ur(Oe(ut),!0):Oe(ut),V,new ut.constructor)})(Te,Ze,en);case h:return(function(ut){return Pl?Object(Pl.call(ut)):{}})(Te)}})(z,Xn,Hf,te)}}kt||(kt=new To);var Hi=kt.get(z);if(Hi)return Hi;if(kt.set(z,it),!bn)var Sa=ge?(function(Te){return(function(dt,en,Ze){var at=en(dt);return W(dt)?at:(function(ut,Yt){for(var ur=-1,gr=Yt.length,Bo=ut.length;++ur<gr;)ut[Bo+ur]=Yt[ur];return ut})(at,Ze(dt))})(Te,qe,Vf)})(z):qe(z);return(function(Te,dt){for(var en=-1,Ze=Te?Te.length:0;++en<Ze&&dt(Te[en],en,Te)!==!1;);})(Sa||z,(function(Te,dt){Sa&&(Te=z[dt=Te]),Yg(it,dt,Hf(Te,te,ge,be,dt,z,kt))})),it}function Ui(z){return!(!yt(z)||(function(te){return!!xe&&xe in te})(z))&&(Ee(z)||Z(z)?mt:H).test(ai(z))}function Fl(z){var te=new z.constructor(z.byteLength);return new Qe(te).set(new Qe(z)),te}function Zg(z,te,ge,be){ge||(ge={});for(var et=-1,jt=te.length;++et<jt;){var kt=te[et],it=void 0;Yg(ge,kt,it===void 0?z[kt]:it)}return ge}function zi(z,te){var ge,be,et=z.__data__;return((be=typeof(ge=te))=="string"||be=="number"||be=="symbol"||be=="boolean"?ge!=="__proto__":ge===null)?et[typeof te=="string"?"string":"hash"]:et.map}function oi(z,te){var ge=(function(be,et){return be==null?void 0:be[et]})(z,te);return Ui(ge)?ge:void 0}Ao.prototype.clear=function(){this.__data__=kn?kn(null):{}},Ao.prototype.delete=function(z){return this.has(z)&&delete this.__data__[z]},Ao.prototype.get=function(z){var te=this.__data__;if(kn){var ge=te[z];return ge===n?void 0:ge}return Xt.call(te,z)?te[z]:void 0},Ao.prototype.has=function(z){var te=this.__data__;return kn?te[z]!==void 0:Xt.call(te,z)},Ao.prototype.set=function(z,te){return this.__data__[z]=kn&&te===void 0?n:te,this},Jr.prototype.clear=function(){this.__data__=[]},Jr.prototype.delete=function(z){var te=this.__data__,ge=Fr(te,z);return!(ge<0)&&(ge==te.length-1?te.pop():Tl.call(te,ge,1),!0)},Jr.prototype.get=function(z){var te=this.__data__,ge=Fr(te,z);return ge<0?void 0:te[ge][1]},Jr.prototype.has=function(z){return Fr(this.__data__,z)>-1},Jr.prototype.set=function(z,te){var ge=this.__data__,be=Fr(ge,z);return be<0?ge.push([z,te]):ge[be][1]=te,this},$i.prototype.clear=function(){this.__data__={hash:new Ao,map:new(qn||Jr),string:new Ao}},$i.prototype.delete=function(z){return zi(this,z).delete(z)},$i.prototype.get=function(z){return zi(this,z).get(z)},$i.prototype.has=function(z){return zi(this,z).has(z)},$i.prototype.set=function(z,te){return zi(this,z).set(z,te),this},To.prototype.clear=function(){this.__data__=new Jr},To.prototype.delete=function(z){return this.__data__.delete(z)},To.prototype.get=function(z){return this.__data__.get(z)},To.prototype.has=function(z){return this.__data__.has(z)},To.prototype.set=function(z,te){var ge=this.__data__;if(ge instanceof Jr){var be=ge.__data__;if(!qn||be.length<199)return be.push([z,te]),this;ge=this.__data__=new $i(be)}return ge.set(z,te),this};var Vf=Xu?Se(Xu,Object):function(){return[]},ii=function(z){return nt.call(z)};function Jg(z,te){return!!(te=te==null?r:te)&&(typeof z=="number"||G.test(z))&&z>-1&&z%1==0&&z<te}function Ca(z){var te=z&&z.constructor;return z===(typeof te=="function"&&te.prototype||Ye)}function ai(z){if(z!=null){try{return Ne.call(z)}catch(te){}try{return z+""}catch(te){}}return""}function Qg(z,te){return z===te||z!=z&&te!=te}(Ri&&ii(new Ri(new ArrayBuffer(1)))!=b||qn&&ii(new qn)!=l||Gn&&ii(Gn.resolve())!=p||Kn&&ii(new Kn)!=m||ar&&ii(new ar)!=y)&&(ii=function(z){var te=nt.call(z),ge=te==f?z.constructor:void 0,be=ge?ai(ge):void 0;if(be)switch(be){case Zr:return b;case zf:return l;case _a:return p;case Ni:return m;case Bl:return y}return te});var W=Array.isArray;function J(z){return z!=null&&(function(te){return typeof te=="number"&&te>-1&&te%1==0&&te<=r})(z.length)&&!Ee(z)}var ce=Oo||function(){return!1};function Ee(z){var te=yt(z)?nt.call(z):"";return te==u||te==s}function yt(z){var te=typeof z;return!!z&&(te=="object"||te=="function")}function qe(z){return J(z)?xa(z):(function(te){if(!Ca(te))return ri(te);var ge=[];for(var be in Object(te))Xt.call(te,be)&&be!="constructor"&&ge.push(be);return ge})(z)}e.exports=function(z){return Hf(z,!0,!0)}}));function FA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var poe=0;function hoe(e){return"__private_"+poe+++"_"+e}function goe(e,t,n){const r=[];return e.forEach((o=>typeof o!="string"?r.push(o):t[Symbol.split](o).forEach(((i,a,u)=>{i!==""&&r.push(i),a<u.length-1&&r.push(n)})))),r}function MA(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const o of Object.keys(t))if(o!=="_"){let i=t[o];typeof i=="string"&&(i=n[Symbol.replace](i,"$$$$")),r=goe(r,new RegExp("%\\{".concat(o,"\\}"),"g"),i)}return r}var gR=($l=hoe("apply"),class{constructor(e){Object.defineProperty(this,$l,{value:voe}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(FA(this,$l)[$l],this):FA(this,$l)[$l](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!(function(r,o){return Object.prototype.hasOwnProperty.call(r,o)})(this.locale.strings,e))throw new Error("missing string: ".concat(e));const n=this.locale.strings[e];if(typeof n=="object"){if(t&&t.smart_count!==void 0)return MA(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return MA(n,t)}});function voe(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var vR=function(){var e={},t=e._fns={};return e.emit=function(n,r,o,i,a,u,s){var l=(function(c){for(var f=t[c]?t[c]:[],p=c.indexOf(":"),d=p===-1?[c]:[c.substring(0,p),c.substring(p+1)],m=Object.keys(t),v=0,h=m.length;v<h;v++){var y=m[v];if(y==="*"&&(f=f.concat(t[y])),d.length===2&&d[0]===y){f=f.concat(t[y]);break}}return f})(n);l.length&&(function(c,f,p){for(var d=0,m=f.length;d<m&&f[d];d++)f[d].event=c,f[d].apply(f[d],p)})(n,l,[r,o,i,a,u,s])},e.on=function(n,r){t[n]||(t[n]=[]),t[n].push(r)},e.once=function(n,r){this.on(n,(function o(){r.apply(this,arguments),e.off(n,o)}))},e.off=function(n,r){var o=[];if(n&&r)for(var i=this._fns[n],a=0,u=i?i.length:0;a<u;a++)i[a]!==r&&o.push(i[a]);o.length?this._fns[n]=o:delete this._fns[n]},e},moe={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t}},D2=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function mR(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}mR.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)o[t]!=="*"&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if(typeof e.splice=="function")for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e=="object")for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var yoe=/[\/\+\.]/,boe=function(e,t){function n(r){var o=(function(i,a,u){var s=new mR(i,u||/[\/\.]/);return a!==void 0?s.match(a):s})(r,e,yoe);return o&&o.length>=2}return t?n(t.split(";")[0]):n},woe=0;function _oe(e){return"__private_"+woe+++"_"+e}var k2=_oe("publish");class yR{constructor(){Object.defineProperty(this,k2,{value:xoe}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,(function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o})(this,k2)[k2](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function xoe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((r=>{r(...t)}))}yR.VERSION="2.0.3";var IA=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},jA={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function LA(e){let t="";return e.replace(/[^A-Z0-9]/gi,(n=>(t+="-".concat((function(r){return r.charCodeAt(0).toString(32)})(n)),"/")))+t}var Coe=function(e){if(e==null&&(e=typeof navigator<"u"?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function O2(e){return e<10?"0".concat(e):e.toString()}var vv=function(){const e=new Date;return"".concat(O2(e.getHours()),":").concat(O2(e.getMinutes()),":").concat(O2(e.getSeconds()))},bR={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("[Uppy] [".concat(vv(),"]"),...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug("[Uppy] [".concat(vv(),"]"),...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn("[Uppy] [".concat(vv(),"]"),...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("[Uppy] [".concat(vv(),"]"),...t)}}},Soe={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},wR=moe;let _R,xR;function _e(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Eoe=0;function yn(e){return"__private_"+Eoe+++"_"+e}const{nanoid:Doe}=wR,{justErrorsLogger:koe,debugLogger:Ooe}=bR;class hi extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class Aoe extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Rn=yn("plugins"),nd=yn("storeUnsubscribe"),Wi=yn("emitter"),ys=yn("preProcessors"),bs=yn("uploaders"),Qi=yn("postProcessors"),Bp=yn("checkRestrictions"),A2=yn("checkMinNumberOfFiles"),sh=yn("checkRequiredMetaFieldsOnFile"),T2=yn("checkRequiredMetaFields"),wn=yn("showOrLogErrorAndThrow"),rd=yn("assertNewUploadAllowed"),od=yn("checkAndCreateFileStateObject"),id=yn("startIfAutoProceed"),B2=yn("addListeners"),Fo=yn("updateOnlineStatus"),qi=yn("createUpload"),P2=yn("getUpload"),Cs=yn("removeUpload"),Gi=yn("runUpload");_R=Symbol.for("uppy test: getPlugins"),xR=Symbol.for("uppy test: createUpload");class CR{constructor(t){Object.defineProperty(this,Gi,{value:zoe}),Object.defineProperty(this,Cs,{value:Uoe}),Object.defineProperty(this,P2,{value:$oe}),Object.defineProperty(this,qi,{value:Noe}),Object.defineProperty(this,B2,{value:Roe}),Object.defineProperty(this,id,{value:Loe}),Object.defineProperty(this,od,{value:joe}),Object.defineProperty(this,rd,{value:Ioe}),Object.defineProperty(this,wn,{value:Moe}),Object.defineProperty(this,T2,{value:Foe}),Object.defineProperty(this,sh,{value:Poe}),Object.defineProperty(this,A2,{value:Boe}),Object.defineProperty(this,Bp,{value:Toe}),Object.defineProperty(this,Rn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,nd,{writable:!0,value:void 0}),Object.defineProperty(this,Wi,{writable:!0,value:vR()}),Object.defineProperty(this,ys,{writable:!0,value:new Set}),Object.defineProperty(this,bs,{writable:!0,value:new Set}),Object.defineProperty(this,Qi,{writable:!0,value:new Set}),Object.defineProperty(this,Fo,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Soe;const n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:r=>r,onBeforeUpload:r=>r,store:new yR,logger:koe,infoTimeout:5e3};if(this.opts={...n,...t,restrictions:{...n.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=Ooe),this.log("Using Core v".concat(this.constructor.VERSION)),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=rl(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Coe(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),_e(this,nd)[nd]=this.store.subscribe(((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)})),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),_e(this,B2)[B2]()}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];_e(this,Wi)[Wi].emit(t,...r)}on(t,n){return _e(this,Wi)[Wi].on(t,n),this}once(t,n){return _e(this,Wi)[Wi].once(t,n),this}off(t,n){return _e(this,Wi)[Wi].off(t,n),this}updateAll(t){this.iteratePlugins((n=>{n.update(t)}))}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,n){if(!this.getState().files[t])throw new Error("Cant set state for ".concat(t," (the file could have been removed)"));this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...n}}})}i18nInit(){const t=new gR([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins((n=>{n.setOptions()})),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach((o=>{const i={...n[o]};i.progress={...i.progress,...t},r[o]=i})),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){_e(this,ys)[ys].add(t)}removePreProcessor(t){return _e(this,ys)[ys].delete(t)}addPostProcessor(t){_e(this,Qi)[Qi].add(t)}removePostProcessor(t){return _e(this,Qi)[Qi].delete(t)}addUploader(t){_e(this,bs)[bs].add(t)}removeUploader(t){return _e(this,bs)[bs].delete(t)}setMeta(t){const n={...this.getState().meta,...t},r={...this.getState().files};Object.keys(r).forEach((o=>{r[o]={...r[o],meta:{...r[o].meta,...t}}})),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:r})}setFileMeta(t,n){const r={...this.getState().files};if(!r[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const o={...r[t].meta,...n};r[t]={...r[t],meta:o},this.setState({files:r})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:n,error:r}=this.getState(),o=Object.values(t),i=o.filter((m=>{let{progress:v}=m;return!v.uploadComplete&&v.uploadStarted})),a=o.filter((m=>!m.progress.uploadStarted)),u=o.filter((m=>m.progress.uploadStarted||m.progress.preprocess||m.progress.postprocess)),s=o.filter((m=>m.progress.uploadStarted)),l=o.filter((m=>m.isPaused)),c=o.filter((m=>m.progress.uploadComplete)),f=o.filter((m=>m.error)),p=i.filter((m=>!m.isPaused)),d=o.filter((m=>m.progress.preprocess||m.progress.postprocess));return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&d.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some((m=>m.isGhost))}}validateRestrictions(t,n){try{return _e(this,Bp)[Bp](t,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(t){const{files:n}=this.getState();return!(!n[t]||n[t].isGhost)}addFile(t){_e(this,rd)[rd](t);const{files:n}=this.getState();let r=_e(this,od)[od](n,t);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:t.data,isGhost:!1},this.log("Replaced the blob in the restored ghost file: ".concat(r.name,", ").concat(r.id))),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log("Added file: ".concat(r.name,", ").concat(r.id,", mime type: ").concat(r.type)),_e(this,id)[id](),r.id}addFiles(t){_e(this,rd)[rd]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<t.length;i++)try{let a=_e(this,od)[od](n,t[i]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:t[i].data,isGhost:!1},this.log("Replaced blob in a ghost file: ".concat(a.name,", ").concat(a.id))),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:n}),r.forEach((i=>{this.emit("file-added",i)})),this.emit("files-added",r),r.length>5?this.log("Added batch of ".concat(r.length," files")):Object.keys(r).forEach((i=>{this.log("Added file: ".concat(r[i].name,"\n id: ").concat(r[i].id,"\n type: ").concat(r[i].type))})),r.length>0&&_e(this,id)[id](),o.length>0){let i="Multiple errors occurred while adding files:\n";if(o.forEach((a=>{i+="\n * ".concat(a.message)})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(t,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}t.forEach((f=>{r[f]&&(u[f]=r[f],delete i[f])})),Object.keys(a).forEach((f=>{const p=o[f].fileIDs.filter(s);p.length!==0?a[f]={...o[f],fileIDs:p}:delete a[f]}));const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach((f=>{this.emit("file-removed",u[f],n)})),c.length>5?this.log("Removed ".concat(c.length," files")):this.log("Removed files: ".concat(c.join(", ")))}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const n=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter((n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted)).forEach((n=>{const r={...t[n],isPaused:!0};t[n]=r})),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter((n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted)).forEach((n=>{const r={...t[n],isPaused:!1,error:null};t[n]=r})),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter((o=>t[o].error));if(n.forEach((o=>{const i={...t[o],isPaused:!1,error:null};t[o]=i})),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=_e(this,qi)[qi](n,{forceAllowNewUpload:!0});return _e(this,Gi)[Gi](r)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),n=Object.keys(t);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=_e(this,qi)[qi]([t],{forceAllowNewUpload:!0});return _e(this,Gi)[Gi](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins((t=>{t.provider&&t.provider.logout&&t.provider.logout()}))}calculateProgress(t,n){if(!this.getFile(t.id))return void this.log("Not setting progress for a file that has been removed: ".concat(t.id));const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter((s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess));if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=t.filter((s=>s.progress.bytesTotal!=null)),r=t.filter((s=>s.progress.bytesTotal==null));if(n.length===0){const s=100*t.length,l=r.reduce(((f,p)=>f+p.progress.percentage),0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=n.reduce(((s,l)=>s+l.progress.bytesTotal),0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach((s=>{a+=s.progress.bytesUploaded})),r.forEach((s=>{a+=i*(s.progress.percentage||0)/100}));let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,n){if(typeof t!="function")throw new TypeError("Expected a plugin class, but got ".concat(t===null?"null":typeof t,". Please verify that the plugin was imported and spelled correctly."));const r=new t(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a="Already found a plugin named '".concat(i.id,"'. Tried to use: '").concat(o,"'.\nUppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.");throw new Error(a)}return t.VERSION&&this.log("Using ".concat(o," v").concat(t.VERSION)),r.type in _e(this,Rn)[Rn]?_e(this,Rn)[Rn][r.type].push(r):_e(this,Rn)[Rn][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(_e(this,Rn)[Rn])){const r=n.find((o=>o.id===t));if(r!=null)return r}}[_R](t){return _e(this,Rn)[Rn][t]}iteratePlugins(t){Object.values(_e(this,Rn)[Rn]).flat(1).forEach(t)}removePlugin(t){this.log("Removing plugin ".concat(t.id)),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=_e(this,Rn)[Rn][t.type],r=n.findIndex((i=>i.id===t.id));r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log("Closing Uppy instance ".concat(this.opts.id,": removing all files and uninstalling plugins")),this.reset(),_e(this,nd)[nd](),this.iteratePlugins((t=>{this.removePlugin(t)})),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",_e(this,Fo)[Fo]),window.removeEventListener("offline",_e(this,Fo)[Fo]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:o?t.message:t,details:o?t.details:null}]}),setTimeout((()=>this.hideInfo()),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t)}}restore(t){return this.log('Core: attempting to restore upload "'.concat(t,'"')),this.getState().currentUploads[t]?_e(this,Gi)[Gi](t):(_e(this,Cs)[Cs](t),Promise.reject(new Error("Nonexistent upload")))}[xR](){return _e(this,qi)[qi](...arguments)}addResultData(t,n){if(!_e(this,P2)[P2](t))return void this.log("Not setting result for an upload that has been removed: ".concat(t));const{currentUploads:r}=this.getState(),o={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:o}})}upload(){var t;(t=_e(this,Rn)[Rn].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then((()=>{_e(this,A2)[A2](n),_e(this,T2)[T2](n)})).catch((o=>{_e(this,wn)[wn](o)})).then((()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap((s=>s.fileIDs)),a=[];Object.keys(n).forEach((s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)}));const u=_e(this,qi)[qi](a);return _e(this,Gi)[Gi](u)})).catch((o=>{_e(this,wn)[wn](o,{showInformer:!1})})))}}function Toe(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new hi("".concat(this.i18n("youCanOnlyUploadX",{smart_count:i})));if(a&&!a.some((u=>u.indexOf("/")>-1?!!e.type&&boe(e.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!e.extension)&&e.extension.toLowerCase()===u.substr(1).toLowerCase()))){const u=a.join(", ");throw new hi(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&e.size!=null){let u=0;if(u+=e.size,t.forEach((s=>{u+=s.size})),u>o)throw new hi(this.i18n("exceedsSize",{size:D2(o),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new hi(this.i18n("exceedsSize",{size:D2(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new hi(this.i18n("inferiorSize",{size:D2(r)}))}function Boe(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new hi("".concat(this.i18n("youHaveToAtLeastSelectX",{smart_count:t})))}function Poe(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||e.meta[t[i]]===""){const a=new hi("".concat(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})));r.push(a),o.push(t[i]),_e(this,wn)[wn](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Foe(e){const t=Object.keys(e).flatMap((n=>{const r=this.getFile(n);return _e(this,sh)[sh](r)}));if(t.length)throw new Aoe(t,"".concat(this.i18n("missingRequiredMetaField")))}function Moe(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=t===void 0?{}:t;const i=typeof e=="object"?e.message:e,a=typeof e=="object"&&e.details?e.details:"";let u=i;if(a&&(u+=" ".concat(a)),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof e=="object"?e:new Error(e)}function Ioe(e){const{allowNewUpload:t}=this.getState();t===!1&&_e(this,wn)[wn](new hi(this.i18n("noMoreFilesAllowed")),{file:e})}function joe(e,t){const n=(function(f){var p;if(f.type)return f.type;const d=f.name?(p=IA(f.name).extension)==null?void 0:p.toLowerCase():null;return d&&d in jA?jA[d]:"application/octet-stream"})(t),r=(function(f,p){return p.name?p.name:f.split("/")[0]==="image"?"".concat(f.split("/")[0],".").concat(f.split("/")[1]):"noname"})(n,t),o=IA(r).extension,i=!!t.isRemote,a=(function(f){let p="uppy";return typeof f.name=="string"&&(p+="-".concat(LA(f.name.toLowerCase()))),f.type!==void 0&&(p+="-".concat(f.type)),f.meta&&typeof f.meta.relativePath=="string"&&(p+="-".concat(LA(f.meta.relativePath.toLowerCase()))),f.data.size!==void 0&&(p+="-".concat(f.data.size)),f.data.lastModified!==void 0&&(p+="-".concat(f.data.lastModified)),p})({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new hi(this.i18n("noDuplicates",{fileName:r}));_e(this,wn)[wn](f,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);c===!1?_e(this,wn)[wn](new hi("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(e).map((p=>e[p]));_e(this,Bp)[Bp](l,f)}catch(f){_e(this,wn)[wn](f,{file:l})}return l}function Loe(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Roe(){const e=(t,n,r)=>{let o=t.message||"Unknown error";t.details&&(o+=" ".concat(t.details)),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=" ".concat(n.details)),o.message=this.i18n("failedToUpload",{file:t.name}),_e(this,wn)[wn](o,{throwErr:!1})}else _e(this,wn)[wn](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log("Not setting progress for a file that has been removed: ".concat(t.id))})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((t,n)=>{if(!this.getFile(t.id))return void this.log("Not setting progress for a file that has been removed: ".concat(t.id));const r=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...r,postprocess:_e(this,Qi)[Qi].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:n}}):this.log("Not setting progress for a file that has been removed: ".concat(t.id))})),this.on("preprocess-complete",(t=>{if(!this.getFile(t.id))return void this.log("Not setting progress for a file that has been removed: ".concat(t.id));const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.preprocess,this.setState({files:n})})),this.on("postprocess-progress",((t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:n}}):this.log("Not setting progress for a file that has been removed: ".concat(t.id))})),this.on("postprocess-complete",(t=>{if(!this.getFile(t.id))return void this.log("Not setting progress for a file that has been removed: ".concat(t.id));const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.postprocess,this.setState({files:n})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(t=>{t&&_e(this,sh)[sh](t)})),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",_e(this,Fo)[Fo]),window.addEventListener("offline",_e(this,Fo)[Fo]),setTimeout(_e(this,Fo)[Fo],3e3))}function Noe(e,t){t===void 0&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=Doe();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function $oe(e){const{currentUploads:t}=this.getState();return t[e]}function Uoe(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function zoe(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[..._e(this,ys)[ys],..._e(this,bs)[bs],..._e(this,Qi)[Qi]];try{for(let a=r;a<o.length&&n;a++){const u=o[a],s={...n,step:a};this.setState({currentUploads:{...t,[e]:s}}),await u(s.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),_e(this,Cs)[Cs](e),a}if(n){n.fileIDs.forEach((l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)}));const a=n.fileIDs.map((l=>this.getFile(l))),u=a.filter((l=>!l.error)),s=a.filter((l=>l.error));await this.addResultData(e,{successful:u,failed:s,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),_e(this,Cs)[Cs](e)),i==null&&this.log("Not setting result for an upload that has been removed: ".concat(e)),i}CR.VERSION="2.1.3";var SR=CR,Hoe=yl((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(E,O){for(var M in O)E[M]=O[M];return E}function m(E){var O=E.parentNode;O&&O.removeChild(E)}function v(E,O,M){var V,Q,Z,le={};for(Z in O)Z=="key"?V=O[Z]:Z=="ref"?Q=O[Z]:le[Z]=O[Z];if(arguments.length>2&&(le.children=arguments.length>3?n.call(arguments,2):M),typeof E=="function"&&E.defaultProps!=null)for(Z in E.defaultProps)le[Z]===void 0&&(le[Z]=E.defaultProps[Z]);return h(E,le,V,Q,null)}function h(E,O,M,V,Q){var Z={type:E,props:O,key:M,ref:V,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Q==null?++o:Q};return Q==null&&r.vnode!=null&&r.vnode(Z),Z}function y(E){return E.children}function g(E,O){this.props=E,this.context=O}function b(E,O){if(O==null)return E.__?b(E.__,E.__.__k.indexOf(E)+1):null;for(var M;O<E.__k.length;O++)if((M=E.__k[O])!=null&&M.__e!=null)return M.__e;return typeof E.type=="function"?b(E):null}function w(E){var O,M;if((E=E.__)!=null&&E.__c!=null){for(E.__e=E.__c.base=null,O=0;O<E.__k.length;O++)if((M=E.__k[O])!=null&&M.__e!=null){E.__e=E.__c.base=M.__e;break}return w(E)}}function x(E){(!E.__d&&(E.__d=!0)&&a.push(E)&&!k.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(k)}function k(){for(var E;k.__r=a.length;)E=a.sort((function(O,M){return O.__v.__b-M.__v.__b})),a=[],E.some((function(O){var M,V,Q,Z,le,Se;O.__d&&(le=(Z=(M=O).__v).__e,(Se=M.__P)&&(V=[],(Q=d({},Z)).__v=Z.__v+1,H(Se,Z,Q,M.__n,Se.ownerSVGElement!==void 0,Z.__h!=null?[le]:null,V,le==null?b(Z):le,Z.__h),G(V,Z),Z.__e!=le&&w(Z)))}))}function D(E,O,M,V,Q,Z,le,Se,Oe,Me){var ne,Ye,Re,xe,Ne,Xt,nt,mt=V&&V.__k||f,It=mt.length;for(M.__k=[],ne=0;ne<O.length;ne++)if((xe=M.__k[ne]=(xe=O[ne])==null||typeof xe=="boolean"?null:typeof xe=="string"||typeof xe=="number"||typeof xe=="bigint"?h(null,xe,null,null,xe):Array.isArray(xe)?h(y,{children:xe},null,null,null):xe.__b>0?h(xe.type,xe.props,xe.key,null,xe.__v):xe)!=null){if(xe.__=M,xe.__b=M.__b+1,(Re=mt[ne])===null||Re&&xe.key==Re.key&&xe.type===Re.type)mt[ne]=void 0;else for(Ye=0;Ye<It;Ye++){if((Re=mt[Ye])&&xe.key==Re.key&&xe.type===Re.type){mt[Ye]=void 0;break}Re=null}H(E,xe,Re=Re||c,Q,Z,le,Se,Oe,Me),Ne=xe.__e,(Ye=xe.ref)&&Re.ref!=Ye&&(nt||(nt=[]),Re.ref&&nt.push(Re.ref,null,xe),nt.push(Ye,xe.__c||Ne,xe)),Ne!=null?(Xt==null&&(Xt=Ne),typeof xe.type=="function"&&xe.__k===Re.__k?xe.__d=Oe=T(xe,Oe,E):Oe=A(E,xe,Re,mt,Ne,Oe),typeof M.type=="function"&&(M.__d=Oe)):Oe&&Re.__e==Oe&&Oe.parentNode!=E&&(Oe=b(Re))}for(M.__e=Xt,ne=It;ne--;)mt[ne]!=null&&(typeof M.type=="function"&&mt[ne].__e!=null&&mt[ne].__e==M.__d&&(M.__d=b(V,ne+1)),se(mt[ne],mt[ne]));if(nt)for(ne=0;ne<nt.length;ne++)oe(nt[ne],nt[++ne],nt[++ne])}function T(E,O,M){for(var V,Q=E.__k,Z=0;Q&&Z<Q.length;Z++)(V=Q[Z])&&(V.__=E,O=typeof V.type=="function"?T(V,O,M):A(M,V,V,Q,V.__e,O));return O}function A(E,O,M,V,Q,Z){var le,Se,Oe;if(O.__d!==void 0)le=O.__d,O.__d=void 0;else if(M==null||Q!=Z||Q.parentNode==null)e:if(Z==null||Z.parentNode!==E)E.appendChild(Q),le=null;else{for(Se=Z,Oe=0;(Se=Se.nextSibling)&&Oe<V.length;Oe+=2)if(Se==Q)break e;E.insertBefore(Q,Z),le=Z}return le!==void 0?le:Q.nextSibling}function F(E,O,M){O[0]==="-"?E.setProperty(O,M):E[O]=M==null?"":typeof M!="number"||p.test(O)?M:M+"px"}function j(E,O,M,V,Q){var Z;e:if(O==="style")if(typeof M=="string")E.style.cssText=M;else{if(typeof V=="string"&&(E.style.cssText=V=""),V)for(O in V)M&&O in M||F(E.style,O,"");if(M)for(O in M)V&&M[O]===V[O]||F(E.style,O,M[O])}else if(O[0]==="o"&&O[1]==="n")Z=O!==(O=O.replace(/Capture$/,"")),O=O.toLowerCase()in E?O.toLowerCase().slice(2):O.slice(2),E.l||(E.l={}),E.l[O+Z]=M,M?V||E.addEventListener(O,Z?U:R,Z):E.removeEventListener(O,Z?U:R,Z);else if(O!=="dangerouslySetInnerHTML"){if(Q)O=O.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(O!=="href"&&O!=="list"&&O!=="form"&&O!=="tabIndex"&&O!=="download"&&O in E)try{E[O]=M==null?"":M;break e}catch(le){}typeof M=="function"||(M!=null&&(M!==!1||O[0]==="a"&&O[1]==="r")?E.setAttribute(O,M):E.removeAttribute(O))}}function R(E){this.l[E.type+!1](r.event?r.event(E):E)}function U(E){this.l[E.type+!0](r.event?r.event(E):E)}function H(E,O,M,V,Q,Z,le,Se,Oe){var Me,ne,Ye,Re,xe,Ne,Xt,nt,mt,It,Wn,Qe=O.type;if(O.constructor!==void 0)return null;M.__h!=null&&(Oe=M.__h,Se=O.__e=M.__e,O.__h=null,Z=[Se]),(Me=r.__b)&&Me(O);try{e:if(typeof Qe=="function"){if(nt=O.props,mt=(Me=Qe.contextType)&&V[Me.__c],It=Me?mt?mt.props.value:Me.__:V,M.__c?Xt=(ne=O.__c=M.__c).__=ne.__E:("prototype"in Qe&&Qe.prototype.render?O.__c=ne=new Qe(nt,It):(O.__c=ne=new g(nt,It),ne.constructor=Qe,ne.render=L),mt&&mt.sub(ne),ne.props=nt,ne.state||(ne.state={}),ne.context=It,ne.__n=V,Ye=ne.__d=!0,ne.__h=[]),ne.__s==null&&(ne.__s=ne.state),Qe.getDerivedStateFromProps!=null&&(ne.__s==ne.state&&(ne.__s=d({},ne.__s)),d(ne.__s,Qe.getDerivedStateFromProps(nt,ne.__s))),Re=ne.props,xe=ne.state,Ye)Qe.getDerivedStateFromProps==null&&ne.componentWillMount!=null&&ne.componentWillMount(),ne.componentDidMount!=null&&ne.__h.push(ne.componentDidMount);else{if(Qe.getDerivedStateFromProps==null&&nt!==Re&&ne.componentWillReceiveProps!=null&&ne.componentWillReceiveProps(nt,It),!ne.__e&&ne.shouldComponentUpdate!=null&&ne.shouldComponentUpdate(nt,ne.__s,It)===!1||O.__v===M.__v){ne.props=nt,ne.state=ne.__s,O.__v!==M.__v&&(ne.__d=!1),ne.__v=O,O.__e=M.__e,O.__k=M.__k,O.__k.forEach((function(hr){hr&&(hr.__=O)})),ne.__h.length&&le.push(ne);break e}ne.componentWillUpdate!=null&&ne.componentWillUpdate(nt,ne.__s,It),ne.componentDidUpdate!=null&&ne.__h.push((function(){ne.componentDidUpdate(Re,xe,Ne)}))}ne.context=It,ne.props=nt,ne.state=ne.__s,(Me=r.__r)&&Me(O),ne.__d=!1,ne.__v=O,ne.__P=E,Me=ne.render(ne.props,ne.state,ne.context),ne.state=ne.__s,ne.getChildContext!=null&&(V=d(d({},V),ne.getChildContext())),Ye||ne.getSnapshotBeforeUpdate==null||(Ne=ne.getSnapshotBeforeUpdate(Re,xe)),Wn=Me!=null&&Me.type===y&&Me.key==null?Me.props.children:Me,D(E,Array.isArray(Wn)?Wn:[Wn],O,M,V,Q,Z,le,Se,Oe),ne.base=O.__e,O.__h=null,ne.__h.length&&le.push(ne),Xt&&(ne.__E=ne.__=null),ne.__e=!1}else Z==null&&O.__v===M.__v?(O.__k=M.__k,O.__e=M.__e):O.__e=X(M.__e,O,M,V,Q,Z,le,Oe);(Me=r.diffed)&&Me(O)}catch(hr){O.__v=null,(Oe||Z!=null)&&(O.__e=Se,O.__h=!!Oe,Z[Z.indexOf(Se)]=null),r.__e(hr,O,M)}}function G(E,O){r.__c&&r.__c(O,E),E.some((function(M){try{E=M.__h,M.__h=[],E.some((function(V){V.call(M)}))}catch(V){r.__e(V,M.__v)}}))}function X(E,O,M,V,Q,Z,le,Se){var Oe,Me,ne,Ye=M.props,Re=O.props,xe=O.type,Ne=0;if(xe==="svg"&&(Q=!0),Z!=null){for(;Ne<Z.length;Ne++)if((Oe=Z[Ne])&&"setAttribute"in Oe==!!xe&&(xe?Oe.localName===xe:Oe.nodeType===3)){E=Oe,Z[Ne]=null;break}}if(E==null){if(xe===null)return document.createTextNode(Re);E=Q?document.createElementNS("http://www.w3.org/2000/svg",xe):document.createElement(xe,Re.is&&Re),Z=null,Se=!1}if(xe===null)Ye===Re||Se&&E.data===Re||(E.data=Re);else{if(Z=Z&&n.call(E.childNodes),Me=(Ye=M.props||c).dangerouslySetInnerHTML,ne=Re.dangerouslySetInnerHTML,!Se){if(Z!=null)for(Ye={},Ne=0;Ne<E.attributes.length;Ne++)Ye[E.attributes[Ne].name]=E.attributes[Ne].value;(ne||Me)&&(ne&&(Me&&ne.__html==Me.__html||ne.__html===E.innerHTML)||(E.innerHTML=ne&&ne.__html||""))}if((function(Xt,nt,mt,It,Wn){var Qe;for(Qe in mt)Qe==="children"||Qe==="key"||Qe in nt||j(Xt,Qe,null,mt[Qe],It);for(Qe in nt)Wn&&typeof nt[Qe]!="function"||Qe==="children"||Qe==="key"||Qe==="value"||Qe==="checked"||mt[Qe]===nt[Qe]||j(Xt,Qe,nt[Qe],mt[Qe],It)})(E,Re,Ye,Q,Se),ne)O.__k=[];else if(Ne=O.props.children,D(E,Array.isArray(Ne)?Ne:[Ne],O,M,V,Q&&xe!=="foreignObject",Z,le,Z?Z[0]:M.__k&&b(M,0),Se),Z!=null)for(Ne=Z.length;Ne--;)Z[Ne]!=null&&m(Z[Ne]);Se||("value"in Re&&(Ne=Re.value)!==void 0&&(Ne!==Ye.value||Ne!==E.value||xe==="progress"&&!Ne)&&j(E,"value",Ne,Ye.value,!1),"checked"in Re&&(Ne=Re.checked)!==void 0&&Ne!==E.checked&&j(E,"checked",Ne,Ye.checked,!1))}return E}function oe(E,O,M){try{typeof E=="function"?E(O):E.current=O}catch(V){r.__e(V,M)}}function se(E,O,M){var V,Q;if(r.unmount&&r.unmount(E),(V=E.ref)&&(V.current&&V.current!==E.__e||oe(V,null,O)),(V=E.__c)!=null){if(V.componentWillUnmount)try{V.componentWillUnmount()}catch(Z){r.__e(Z,O)}V.base=V.__P=null}if(V=E.__k)for(Q=0;Q<V.length;Q++)V[Q]&&se(V[Q],O,typeof E.type!="function");M||E.__e==null||m(E.__e),E.__e=E.__d=void 0}function L(E,O,M){return this.constructor(E,M)}function B(E,O,M){var V,Q,Z;r.__&&r.__(E,O),Q=(V=typeof M=="function")?null:M&&M.__k||O.__k,Z=[],H(O,E=(!V&&M||O).__k=v(y,null,[E]),Q||c,c,O.ownerSVGElement!==void 0,!V&&M?[M]:Q?null:O.firstChild?n.call(O.childNodes):null,Z,!V&&M?M:Q?Q.__e:O.firstChild,V),G(Z,E)}n=f.slice,r={__e:function(E,O){for(var M,V,Q;O=O.__;)if((M=O.__c)&&!M.__)try{if((V=M.constructor)&&V.getDerivedStateFromError!=null&&(M.setState(V.getDerivedStateFromError(E)),Q=M.__d),M.componentDidCatch!=null&&(M.componentDidCatch(E),Q=M.__d),Q)return M.__E=M}catch(Z){E=Z}throw E}},o=0,i=function(E){return E!=null&&E.constructor===void 0},g.prototype.setState=function(E,O){var M;M=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=d({},this.state),typeof E=="function"&&(E=E(d({},M),this.props)),E&&d(M,E),E!=null&&this.__v&&(O&&this.__h.push(O),x(this))},g.prototype.forceUpdate=function(E){this.__v&&(this.__e=!0,E&&this.__h.push(E),x(this))},g.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,k.__r=0,l=0,t.Component=g,t.Fragment=y,t.cloneElement=function(E,O,M){var V,Q,Z,le=d({},E.props);for(Z in O)Z=="key"?V=O[Z]:Z=="ref"?Q=O[Z]:le[Z]=O[Z];return arguments.length>2&&(le.children=arguments.length>3?n.call(arguments,2):M),h(E.type,le,V||E.key,Q||E.ref,null)},t.createContext=function(E,O){var M={__c:O="__cC"+l++,__:E,Consumer:function(V,Q){return V.children(Q)},Provider:function(V){var Q,Z;return this.getChildContext||(Q=[],(Z={})[O]=this,this.getChildContext=function(){return Z},this.shouldComponentUpdate=function(le){this.props.value!==le.value&&Q.some(x)},this.sub=function(le){Q.push(le);var Se=le.componentWillUnmount;le.componentWillUnmount=function(){Q.splice(Q.indexOf(le),1),Se&&Se.call(le)}}),V.children}};return M.Provider.__=M.Consumer.contextType=M},t.createElement=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function E(O,M){B(O,M,E)},t.isValidElement=i,t.options=r,t.render=B,t.toChildArray=function E(O,M){return M=M||[],O==null||typeof O=="boolean"||(Array.isArray(O)?O.some((function(V){E(V,M)})):M.push(O)),M}})),Voe=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((n=e)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},n3=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new gR([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function RA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Woe=0;function qoe(e){return"__private_"+Woe+++"_"+e}const{render:NA}=Hoe;var ad=qoe("updateUI");class r3 extends n3{constructor(){super(...arguments),Object.defineProperty(this,ad,{writable:!0,value:void 0})}mount(t,n){const r=n.id,o=Voe(t);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return RA(this,ad)[ad]=(function(s){let l=null,c=null;return function(){for(var f=arguments.length,p=new Array(f),d=0;d<f;d++)p[d]=arguments[d];return c=p,l||(l=Promise.resolve().then((()=>(l=null,s(...c))))),l}})((s=>{this.uppy.getPlugin(this.id)&&(NA(this.render(s),u),this.afterUpdate())})),this.uppy.log("Installing ".concat(r," to a DOM element '").concat(t,"'")),this.opts.replaceTargetContent&&(o.innerHTML=""),NA(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof t=="object"&&t instanceof r3)i=t;else if(typeof t=="function"){const u=t;this.uppy.iteratePlugins((s=>{if(s instanceof u)return i=s,!1}))}if(i)return this.uppy.log("Installing ".concat(r," to ").concat(i.id)),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log("Not installing ".concat(r));let a="Invalid target option given to ".concat(r,".");throw a+=typeof t=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(t){var n,r;this.el!=null&&((n=(r=RA(this,ad))[ad])==null||n.call(r,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Goe=r3;const{debugLogger:Koe}=bR;var mp=SR,Xoe=SR,Yoe=Goe,Zoe=n3,Joe=Koe;mp.Uppy=Xoe,mp.UIPlugin=Yoe,mp.BasePlugin=Zoe,mp.debugLogger=Joe;class Qoe extends Error{constructor(t,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=n}}var o3=Qoe,F2=function(){return fetch(...arguments).catch((e=>{throw e.name==="AbortError"?e:new o3(e)}))};class eie extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var mv,Oa,li,Aa,$A,tie=eie;function si(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var nie=0;function M2(e){return"__private_"+nie+++"_"+e}async function I2(e){if(e.status===401)throw new tie;const t=e.json();if(e.status<200||e.status>300){let n="Failed request with status: ".concat(e.status,". ").concat(e.statusText);try{const r=await t;n=r.message?"".concat(n," message: ").concat(r.message):n,n=r.requestId?"".concat(n," request-Id: ").concat(r.requestId):n}finally{throw new Error(n)}}return t}var UA=(Oa=M2("getPostResponseFunc"),li=M2("getUrl"),Aa=M2("errorHandler"),$A=mv=class ER{constructor(t,n){Object.defineProperty(this,Aa,{value:oie}),Object.defineProperty(this,li,{value:rie}),Object.defineProperty(this,Oa,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),n=this.opts.companionUrl;return(t&&t[n]?t[n]:n).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...ER.defaultHeaders,...t})}onReceiveResponse(t){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=t;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(si(this,li)[li](t),{method:"OPTIONS"}).then((n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map((r=>r.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((n=>(this.uppy.log("[CompanionClient] unable to make preflight request ".concat(n),"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then((n=>{let[r,o]=n;return Object.keys(o).forEach((i=>{r.includes(i.toLowerCase())||(this.uppy.log("[CompanionClient] excluding disallowed header ".concat(i)),delete o[i])})),o}))}get(t,n){return this.preflightAndHeaders(t).then((r=>F2(si(this,li)[li](t),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(si(this,Oa)[Oa](n)).then(I2).catch(si(this,Aa)[Aa]("get",t))}post(t,n,r){const o="post";return this.preflightAndHeaders(t).then((i=>F2(si(this,li)[li](t),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)}))).then(si(this,Oa)[Oa](r)).then(I2).catch(si(this,Aa)[Aa](o,t))}delete(t,n,r){const o="delete";return this.preflightAndHeaders(t).then((i=>F2("".concat(this.hostname,"/").concat(t),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null}))).then(si(this,Oa)[Oa](r)).then(I2).catch(si(this,Aa)[Aa](o,t))}},mv.VERSION="2.0.4",mv.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client=".concat(mv.VERSION)},$A);function rie(e){return/^(https?:|)\/\//.test(e)?e:"".concat(this.hostname,"/").concat(e)}function oie(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error("Could not ".concat(e," ").concat(si(this,li)[li](t)));o.cause=n,n=o}return Promise.reject(n)}}var iie={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))},ui,Ta,eo,Yn,yv;let zA,HA;function cn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var aie=0;function ud(e){return"__private_"+aie+++"_"+e}var uie=(ui=ud("queued"),Ta=ud("emitter"),eo=ud("isOpen"),Yn=ud("socket"),yv=ud("handleMessage"),zA=Symbol.for("uppy test: getSocket"),HA=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,ui,{writable:!0,value:[]}),Object.defineProperty(this,Ta,{writable:!0,value:vR()}),Object.defineProperty(this,eo,{writable:!0,value:!1}),Object.defineProperty(this,Yn,{writable:!0,value:void 0}),Object.defineProperty(this,yv,{writable:!0,value:t=>{try{const n=JSON.parse(t.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return cn(this,eo)[eo]}[zA](){return cn(this,Yn)[Yn]}[HA](){return cn(this,ui)[ui]}open(){cn(this,Yn)[Yn]=new WebSocket(this.opts.target),cn(this,Yn)[Yn].onopen=()=>{for(cn(this,eo)[eo]=!0;cn(this,ui)[ui].length>0&&cn(this,eo)[eo];){const e=cn(this,ui)[ui].shift();this.send(e.action,e.payload)}},cn(this,Yn)[Yn].onclose=()=>{cn(this,eo)[eo]=!1},cn(this,Yn)[Yn].onmessage=cn(this,yv)[yv]}close(){var e;(e=cn(this,Yn)[Yn])==null||e.close()}send(e,t){cn(this,eo)[eo]?cn(this,Yn)[Yn].send(JSON.stringify({action:e,payload:t})):cn(this,ui)[ui].push({action:e,payload:t})}on(e,t){cn(this,Ta)[Ta].on(e,t)}emit(e,t){cn(this,Ta)[Ta].emit(e,t)}once(e,t){cn(this,Ta)[Ta].once(e,t)}}),sie={RequestClient:UA,Provider:class extends UA{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map((r=>r.charAt(0).toUpperCase()+r.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey="companion-".concat(this.pluginId,"-auth-token"),this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),"".concat(this.hostname,"/").concat(this.id,"/connect?").concat(new URLSearchParams(e))}fileUrl(e){return"".concat(this.hostname,"/").concat(this.id,"/get/").concat(e)}fetchPreAuthToken(){return this.companionKeysParams?this.post("".concat(this.id,"/preauth/"),{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log("[CompanionClient] unable to fetch preAuthToken ".concat(e),"warning")})):Promise.resolve()}list(e){return this.get("".concat(this.id,"/list/").concat(e||""))}logout(){return this.get("".concat(this.id,"/logout")).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const r=t.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError("".concat(e.id,': the option "companionAllowedHosts" must be one of string, Array, RegExp'));e.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://".concat(t.companionUrl.replace(/^\/\//,"")):e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||iie}},Socket:uie},Ba,Ul,lie=rl((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log("Upload progress: ".concat(r)),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function sd(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var cie=0;function VA(e){return"__private_"+cie+++"_"+e}var WA=(Ba=VA("emitter"),Ul=VA("events"),class{constructor(e){Object.defineProperty(this,Ba,{writable:!0,value:void 0}),Object.defineProperty(this,Ul,{writable:!0,value:[]}),sd(this,Ba)[Ba]=e}on(e,t){return sd(this,Ul)[Ul].push([e,t]),sd(this,Ba)[Ba].on(e,t)}remove(){for(const[e,t]of sd(this,Ul)[Ul].splice(0))sd(this,Ba)[Ba].off(e,t)}});function to(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var fie=0;function P1(e){return"__private_"+fie+++"_"+e}var Ki=P1("aliveTimer"),ts=P1("isDone"),ld=P1("onTimedOut"),ns=P1("timeout"),qA=class{constructor(e,t){Object.defineProperty(this,Ki,{writable:!0,value:void 0}),Object.defineProperty(this,ts,{writable:!0,value:!1}),Object.defineProperty(this,ld,{writable:!0,value:void 0}),Object.defineProperty(this,ns,{writable:!0,value:void 0}),to(this,ns)[ns]=e,to(this,ld)[ld]=t}progress(){to(this,ts)[ts]||to(this,ns)[ns]>0&&(clearTimeout(to(this,Ki)[Ki]),to(this,Ki)[Ki]=setTimeout(to(this,ld)[ld],to(this,ns)[ns]))}done(){to(this,ts)[ts]||(clearTimeout(to(this,Ki)[Ki]),to(this,Ki)[Ki]=null,to(this,ts)[ts]=!0)}};function pn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var die=0;function Cl(e){return"__private_"+die+++"_"+e}function pie(){return new Error("Cancelled")}var jr=Cl("activeRequests"),lr=Cl("queuedHandlers"),Pp=Cl("call"),yp=Cl("queueNext"),cS=Cl("next"),j2=Cl("queue"),fS=Cl("dequeue");function hie(e){pn(this,jr)[jr]+=1;let t,n=!1;try{t=e()}catch(r){throw pn(this,jr)[jr]-=1,r}return{abort:()=>{n||(n=!0,pn(this,jr)[jr]-=1,t(),pn(this,yp)[yp]())},done:()=>{n||(n=!0,pn(this,jr)[jr]-=1,pn(this,yp)[yp]())}}}function gie(){queueMicrotask((()=>pn(this,cS)[cS]()))}function vie(){if(pn(this,jr)[jr]>=this.limit||pn(this,lr)[lr].length===0)return;const e=pn(this,lr)[lr].shift(),t=pn(this,Pp)[Pp](e.fn);e.abort=t.abort,e.done=t.done}function mie(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{pn(this,fS)[fS](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=pn(this,lr)[lr].findIndex((o=>n.priority>o.priority));return r===-1?pn(this,lr)[lr].push(n):pn(this,lr)[lr].splice(r,0,n),n}function yie(e){const t=pn(this,lr)[lr].indexOf(e);t!==-1&&pn(this,lr)[lr].splice(t,1)}var bie={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,fS,{value:yie}),Object.defineProperty(this,j2,{value:mie}),Object.defineProperty(this,cS,{value:vie}),Object.defineProperty(this,yp,{value:gie}),Object.defineProperty(this,Pp,{value:hie}),Object.defineProperty(this,jr,{writable:!0,value:0}),Object.defineProperty(this,lr,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return pn(this,jr)[jr]<this.limit?pn(this,Pp)[Pp](e):pn(this,j2)[j2](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise(((s,l)=>{a=n.run((()=>{let c,f;try{f=Promise.resolve(e(...o))}catch(p){f=Promise.reject(p)}return f.then((p=>{c?l(c):(a.done(),s(p))}),(p=>{c?l(c):(a.done(),l(p))})),()=>{c=pie()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},GA,KA,DR=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},wie={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:_ie}=wR,{Provider:xie,RequestClient:Cie,Socket:Sie}=sie,{RateLimitedQueue:Eie,internalRateLimitedQueue:L2}=bie;function XA(e,t){let n=t;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),DR(e)?(n=new o3(n,e),n):(n.request=e,n)}function YA(e){return e.data.slice(0,e.data.size,e.meta.type)}var Die=(KA=GA=class extends n3{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=wie;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let o={};try{o=JSON.parse(r)}catch(i){e.log(i)}return o},getResponseError(r,o){let i=new Error("Upload error");return DR(o)&&(i=new o3(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),L2 in this.opts?this.requests=this.opts[L2]:this.requests=new Eie(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof n=="function"?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((r=>{e.append(r,t[r])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=YA(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((o=>{const i=this.getOptions(o),a=YA(o);o.name?n.append(i.fieldName,a,o.name):n.append(i.fieldName,a)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log("uploading ".concat(t," of ").concat(n)),new Promise(((o,i)=>{this.uppy.emit("upload-started",e);const a=r.formData?this.createFormDataUpload(e,r):e.data,u=new XMLHttpRequest;this.uploaderEvents[e.id]=new WA(this.uppy);const s=new qA(r.timeout,(()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,f),i(f)})),l=_ie();u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] ".concat(l," started"))})),u.upload.addEventListener("progress",(f=>{this.uppy.log("[XHRUpload] ".concat(l," progress: ").concat(f.loaded," / ").concat(f.total)),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})})),u.addEventListener("load",(f=>{if(this.uppy.log("[XHRUpload] ".concat(l," finished")),s.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(f.target.status,u.responseText,u)){const v=r.getResponseData(u.responseText,u),h=v[r.responseUrlFieldName],y={status:f.target.status,body:v,uploadURL:h};return this.uppy.emit("upload-success",e,y),h&&this.uppy.log("Download ".concat(e.name," from ").concat(h)),o(e)}const p=r.getResponseData(u.responseText,u),d=XA(u,r.getResponseError(u.responseText,u)),m={status:f.target.status,body:p};return this.uppy.emit("upload-error",e,d,m),i(d)})),u.addEventListener("error",(()=>{this.uppy.log("[XHRUpload] ".concat(l," errored")),s.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const f=XA(u,r.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",e,f),i(f)})),u.open(r.method.toUpperCase(),r.endpoint,!0),u.withCredentials=r.withCredentials,r.responseType!==""&&(u.responseType=r.responseType);const c=this.requests.run((()=>{this.uppy.emit("upload-started",e);const f=this.getOptions(e);return Object.keys(f.headers).forEach((p=>{u.setRequestHeader(p,f.headers[p])})),u.send(a),()=>{s.done(),u.abort()}}));this.onFileRemove(e.id,(()=>{c.abort(),i(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{c.abort(),i(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((i=>{o[i]=e.meta[i]})),new(e.remote.providerOptions.provider?xie:Cie)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((i=>{const{token:a}=i,u=(function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return"".concat(/^http:\/\//i.test(c)?"ws":"wss","://").concat(f)})(e.remote.companionUrl),s=new Sie({target:"".concat(u,"/api/").concat(a),autoOpen:!1});this.uploaderEvents[e.id]=new WA(this.uppy),this.onFileRemove(e.id,(()=>{s.send("cancel",{}),l.abort(),n("upload ".concat(e.id," was removed"))})),this.onCancelAll(e.id,(()=>{s.send("cancel",{}),l.abort(),n("upload ".concat(e.id," was canceled"))})),this.onRetry(e.id,(()=>{s.send("pause",{}),s.send("resume",{})})),this.onRetryAll(e.id,(()=>{s.send("pause",{}),s.send("resume",{})})),s.on("progress",(c=>lie(this,c,e))),s.on("success",(c=>{const f=t.getResponseData(c.response.responseText,c.response),p=f[t.responseUrlFieldName],d={status:c.response.status,body:f,uploadURL:p};return this.uppy.emit("upload-success",e,d),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),s.on("error",(c=>{const f=c.response,p=f?t.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",e,p),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(p)}));const l=this.requests.run((()=>(s.open(),e.isPaused&&s.send("pause",{}),()=>s.close())))})).catch((i=>{this.uppy.emit("upload-error",e,i),r(i)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new qA(this.opts.timeout,(()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),n(c)})),l=c=>{e.forEach((f=>{this.uppy.emit("upload-error",f,c)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(c=>{s.progress(),c.lengthComputable&&e.forEach((f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})}))})),u.addEventListener("load",(c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const p=this.opts.getResponseData(u.responseText,u),d={status:c.target.status,body:p};return e.forEach((m=>{this.uppy.emit("upload-success",m,d)})),t()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),n(f)})),u.addEventListener("error",(()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),n(c)})),this.uppy.on("cancel-all",(()=>{s.done(),u.abort()})),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((c=>{u.setRequestHeader(c,this.opts.headers[c])})),u.send(a),e.forEach((c=>{this.uppy.emit("upload-started",c)}))}))}uploadFiles(e){const t=e.map(((n,r)=>{const o=parseInt(r,10)+1,i=e.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,o,i):this.upload(n,o,i)}));return(function(n){const r=[],o=[];function i(u){r.push(u)}function a(u){o.push(u)}return Promise.all(n.map((u=>u.then(i,a)))).then((()=>({successful:r,failed:o})))})(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[L2]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((n=>this.uppy.getFile(n)));if(this.opts.bundle){if(t.some((n=>n.isRemote)))throw new Error("Cant upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},GA.VERSION="2.0.6",KA),ZA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yg(e){var t={exports:{}};return e(t,t.exports),t.exports}var Pa,Om,bv=function(e){return e&&e.Math==Math&&e},ue=bv(typeof globalThis=="object"&&globalThis)||bv(typeof window=="object"&&window)||bv(typeof self=="object"&&self)||bv(typeof ZA=="object"&&ZA)||(function(){return this})()||Function("return this")(),kie=Object.defineProperty,i3=function(e,t){try{kie(ue,e,{value:t,configurable:!0,writable:!0})}catch(n){ue[e]=t}return t},au=ue["__core-js_shared__"]||i3("__core-js_shared__",{}),a3=yg((function(e){(e.exports=function(t,n){return au[t]||(au[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),kR=Function.prototype,dS=kR.bind,pS=kR.call,Oie=dS&&dS.bind(pS),Ce=dS?function(e){return e&&Oie(pS,e)}:function(e){return e&&function(){return pS.apply(e,arguments)}},Aie=ue.TypeError,bo=function(e){if(e==null)throw Aie("Can't call method on "+e);return e},Tie=ue.Object,Uu=function(e){return Tie(bo(e))},Bie=Ce({}.hasOwnProperty),on=Object.hasOwn||function(e,t){return Bie(Uu(e),t)},Pie=0,Fie=Math.random(),Mie=Ce(1 .toString),u3=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Mie(++Pie+Fie,36)},xt=function(e){return typeof e=="function"},Iie=function(e){return xt(e)?e:void 0},Sl=function(e,t){return arguments.length<2?Iie(ue[e]):ue[e]&&ue[e][t]},Tc=Sl("navigator","userAgent")||"",JA=ue.process,QA=ue.Deno,e7=JA&&JA.versions||QA&&QA.version,t7=e7&&e7.v8;t7&&(Om=(Pa=t7.split("."))[0]>0&&Pa[0]<4?1:+(Pa[0]+Pa[1])),!Om&&Tc&&(!(Pa=Tc.match(/Edge\/(\d+)/))||Pa[1]>=74)&&(Pa=Tc.match(/Chrome\/(\d+)/))&&(Om=+Pa[1]);var lh=Om,ht=function(e){try{return!!e()}catch(t){return!0}},hS=!!Object.getOwnPropertySymbols&&!ht((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&lh&&lh<41})),s3=hS&&!Symbol.sham&&typeof Symbol.iterator=="symbol",cd=a3("wks"),Ms=ue.Symbol,n7=Ms&&Ms.for,jie=s3?Ms:Ms&&Ms.withoutSetter||u3,qt=function(e){if(!on(cd,e)||!hS&&typeof cd[e]!="string"){var t="Symbol."+e;hS&&on(Ms,e)?cd[e]=Ms[e]:cd[e]=s3&&n7?n7(t):jie(t)}return cd[e]},OR={};OR[qt("toStringTag")]="z";var l3=String(OR)==="[object z]",Tn=!ht((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Tt=function(e){return typeof e=="object"?e!==null:xt(e)},gS=ue.document,Lie=Tt(gS)&&Tt(gS.createElement),ch=function(e){return Lie?gS.createElement(e):{}},AR=!Tn&&!ht((function(){return Object.defineProperty(ch("div"),"a",{get:function(){return 7}}).a!=7})),Rie=ue.String,Nie=ue.TypeError,an=function(e){if(Tt(e))return e;throw Nie(Rie(e)+" is not an object")},fd=Function.prototype.call,st=fd.bind?fd.bind(fd):function(){return fd.apply(fd,arguments)},ol=Ce({}.isPrototypeOf),$ie=ue.Object,R2=s3?function(e){return typeof e=="symbol"}:function(e){var t=Sl("Symbol");return xt(t)&&ol(t.prototype,$ie(e))},Uie=ue.String,F1=function(e){try{return Uie(e)}catch(t){return"Object"}},zie=ue.TypeError,Du=function(e){if(xt(e))return e;throw zie(F1(e)+" is not a function")},il=function(e,t){var n=e[t];return n==null?void 0:Du(n)},Hie=ue.TypeError,Vie=ue.TypeError,Wie=qt("toPrimitive"),c3=function(e){var t=(function(n,r){if(!Tt(n)||R2(n))return n;var o,i=il(n,Wie);if(i){if(o=st(i,n,r),!Tt(o)||R2(o))return o;throw Vie("Can't convert object to primitive value")}return(function(a,u){var s,l;if(xt(s=a.toString)&&!Tt(l=st(s,a))||xt(s=a.valueOf)&&!Tt(l=st(s,a)))return l;throw Hie("Can't convert object to primitive value")})(n)})(e,"string");return R2(t)?t:t+""},qie=ue.TypeError,r7=Object.defineProperty,ti={f:Tn?r7:function(e,t,n){if(an(e),t=c3(t),an(n),AR)try{return r7(e,t,n)}catch(r){}if("get"in n||"set"in n)throw qie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},M1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Uo=Tn?function(e,t,n){return ti.f(e,t,M1(1,n))}:function(e,t,n){return e[t]=n,e},Gie=Ce(Function.toString);xt(au.inspectSource)||(au.inspectSource=function(e){return Gie(e)});var R0,Fp,N0,I1=au.inspectSource,o7=ue.WeakMap,TR=xt(o7)&&/native code/.test(I1(o7)),i7=a3("keys"),f3=function(e){return i7[e]||(i7[e]=u3(e))},j1={},vS=ue.TypeError,Kie=ue.WeakMap;if(TR||au.state){var rs=au.state||(au.state=new Kie),Xie=Ce(rs.get),a7=Ce(rs.has),Yie=Ce(rs.set);R0=function(e,t){if(a7(rs,e))throw new vS("Object already initialized");return t.facade=e,Yie(rs,e,t),t},Fp=function(e){return Xie(rs,e)||{}},N0=function(e){return a7(rs,e)}}else{var zl=f3("state");j1[zl]=!0,R0=function(e,t){if(on(e,zl))throw new vS("Object already initialized");return t.facade=e,Uo(e,zl,t),t},Fp=function(e){return on(e,zl)?e[zl]:{}},N0=function(e){return on(e,zl)}}var tr={set:R0,get:Fp,has:N0,enforce:function(e){return N0(e)?Fp(e):R0(e,{})},getterFor:function(e){return function(t){var n;if(!Tt(t)||(n=Fp(t)).type!==e)throw vS("Incompatible receiver, "+e+" required");return n}}},BR=Function.prototype,Zie=Tn&&Object.getOwnPropertyDescriptor,N2=on(BR,"name"),kf={EXISTS:N2,PROPER:N2&&(function(){}).name==="something",CONFIGURABLE:N2&&(!Tn||Tn&&Zie(BR,"name").configurable)},Sr=yg((function(e){var t=kf.CONFIGURABLE,n=tr.get,r=tr.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;xt(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!on(u,"name")||t&&u.name!==d)&&Uo(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==ue?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Uo(i,a,u)):f?i[a]=u:i3(a,u)})(Function.prototype,"toString",(function(){return xt(this)&&n(this).source||I1(this)}))})),Jie=Ce({}.toString),Qie=Ce("".slice),zo=function(e){return Qie(Jie(e),8,-1)},eae=qt("toStringTag"),tae=ue.Object,nae=zo((function(){return arguments})())=="Arguments",L1=l3?zo:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch(a){}})(t=tae(e),eae))=="string"?n:nae?zo(t):(r=zo(t))=="Object"&&xt(t.callee)?"Arguments":r},rae=l3?{}.toString:function(){return"[object "+L1(this)+"]"};l3||Sr(Object.prototype,"toString",rae,{unsafe:!0});var $0={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},$2=ch("span").classList,u7=$2&&$2.constructor&&$2.constructor.prototype,PR=u7===Object.prototype?void 0:u7,s7=Ce(Ce.bind),al=function(e,t){return Du(e),t===void 0?e:s7?s7(e,t):function(){return e.apply(t,arguments)}},U2=ue.Object,oae=Ce("".split),R1=ht((function(){return!U2("z").propertyIsEnumerable(0)}))?function(e){return zo(e)=="String"?oae(e,""):U2(e)}:U2,iae=Math.ceil,aae=Math.floor,bg=function(e){var t=+e;return t!=t||t===0?0:(t>0?aae:iae)(t)},uae=Math.min,Of=function(e){return e>0?uae(bg(e),9007199254740991):0},El=function(e){return Of(e.length)},U0=Array.isArray||function(e){return zo(e)=="Array"},FR=function(){},sae=[],MR=Sl("Reflect","construct"),d3=/^\s*(?:class|function)\b/,lae=Ce(d3.exec),cae=!d3.exec(FR),dd=function(e){if(!xt(e))return!1;try{return MR(FR,sae,e),!0}catch(t){return!1}},N1=!MR||ht((function(){var e;return dd(dd.call)||!dd(Object)||!dd((function(){e=!0}))||e}))?function(e){if(!xt(e))return!1;switch(L1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cae||!!lae(d3,I1(e))}:dd,fae=qt("species"),l7=ue.Array,IR=function(e,t){return new((function(n){var r;return U0(n)&&(r=n.constructor,(N1(r)&&(r===l7||U0(r.prototype))||Tt(r)&&(r=r[fae])===null)&&(r=void 0)),r===void 0?l7:r})(e))(t===0?0:t)},c7=Ce([].push),pd=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=Uu(s),v=R1(m),h=al(l,c),y=El(v),g=0,b=f||IR,w=t?b(s,y):n||a?b(s,0):void 0;y>g;g++)if((u||g in v)&&(d=h(p=v[g],g,m),e))if(t)w[g]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:c7(w,p)}else switch(e){case 4:return!1;case 7:c7(w,p)}return i?-1:r||o?o:w}},Af={forEach:pd(0),map:pd(1),filter:pd(2),find:pd(5),findIndex:pd(6)},jR=function(e,t){var n=[][e];return!!n&&ht((function(){n.call(null,t||function(){throw 1},1)}))},dae=Af.forEach,z2=jR("forEach")?[].forEach:function(e){return dae(this,e,arguments.length>1?arguments[1]:void 0)},LR=function(e){if(e&&e.forEach!==z2)try{Uo(e,"forEach",z2)}catch(t){e.forEach=z2}};for(var H2 in $0)$0[H2]&&LR(ue[H2]&&ue[H2].prototype);LR(PR);var f7={}.propertyIsEnumerable,d7=Object.getOwnPropertyDescriptor,pae=d7&&!f7.call({1:2},1)?function(e){var t=d7(this,e);return!!t&&t.enumerable}:f7,RR={f:pae},zu=function(e){return R1(bo(e))},p7=Object.getOwnPropertyDescriptor,wg={f:Tn?p7:function(e,t){if(e=zu(e),t=c3(t),AR)try{return p7(e,t)}catch(n){}if(on(e,t))return M1(!st(RR.f,e,t),e[t])}},hae=Math.max,gae=Math.min,of=function(e,t){var n=bg(e);return n<0?hae(n+t,0):gae(n,t)},h7=function(e){return function(t,n,r){var o,i=zu(t),a=El(i),u=of(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},NR={includes:h7(!0),indexOf:h7(!1)},vae=NR.indexOf,g7=Ce([].push),$R=function(e,t){var n,r=zu(e),o=0,i=[];for(n in r)!on(j1,n)&&on(r,n)&&g7(i,n);for(;t.length>o;)on(r,n=t[o++])&&(~vae(i,n)||g7(i,n));return i},z0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mae=z0.concat("length","prototype"),fh={f:Object.getOwnPropertyNames||function(e){return $R(e,mae)}},UR={f:Object.getOwnPropertySymbols},yae=Ce([].concat),bae=Sl("Reflect","ownKeys")||function(e){var t=fh.f(an(e)),n=UR.f;return n?yae(t,n(e)):t},wae=function(e,t){for(var n=bae(t),r=ti.f,o=wg.f,i=0;i<n.length;i++){var a=n[i];on(e,a)||r(e,a,o(t,a))}},_ae=/#|\.prototype\./,_g=function(e,t){var n=Cae[xae(e)];return n==Eae||n!=Sae&&(xt(t)?ht(t):!!t)},xae=_g.normalize=function(e){return String(e).replace(_ae,".").toLowerCase()},Cae=_g.data={},Sae=_g.NATIVE="N",Eae=_g.POLYFILL="P",dh=_g,Dae=wg.f,Vt=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?ue:l?ue[u]||i3(u,{}):(ue[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Dae(n,r))&&a.value:n[r],!dh(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;wae(i,o)}(e.sham||o&&o.sham)&&Uo(i,"sham",!0),Sr(n,r,i,e)}},Bc=Object.keys||function(e){return $R(e,z0)},kae=ht((function(){Bc(1)}));function v7(e){return Object.prototype.toString.call(e)==="[object Object]"}Vt({target:"Object",stat:!0,forced:kae},{keys:function(e){return Bc(Uu(e))}});var Oae={isHistory(e){return v7(t=e)!==!1&&((n=t.constructor)===void 0||v7(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Qa.isOperationList(e.redos[0]))&&(e.undos.length===0||Qa.isOperationList(e.undos[0]));var t,n,r}},V2=new WeakMap,W2=new WeakMap,xc={isHistoryEditor:e=>Oae.isHistory(e.history)&&S.isEditor(e),isMerging:e=>W2.get(e),isSaving:e=>V2.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=xc.isMerging(e);W2.set(e,!1),t(),W2.set(e,n)},withoutSaving(e,t){var n=xc.isSaving(e);V2.set(e,!1),t(),V2.set(e,n)}},Aae=ue.String,St=function(e){if(L1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Aae(e)},p3=function(){var e=an(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Tae=kf.PROPER,mS=RegExp.prototype,zR=mS.toString,Bae=Ce(p3),Pae=ht((function(){return zR.call({source:"a",flags:"b"})!="/a/b"})),Fae=Tae&&zR.name!="toString";(Pae||Fae)&&Sr(RegExp.prototype,"toString",(function(){var e=an(this),t=St(e.source),n=e.flags;return"/"+t+"/"+St(n===void 0&&ol(mS,e)&&!("flags"in mS)?Bae(e):n)}),{unsafe:!0});var wv,Mae=Tn?Object.defineProperties:function(e,t){an(e);for(var n,r=zu(t),o=Bc(t),i=o.length,a=0;i>a;)ti.f(e,n=o[a++],r[n]);return e},yS=Sl("document","documentElement"),HR=f3("IE_PROTO"),q2=function(){},VR=function(e){return"<script>"+e+"<\/script>"},m7=function(e){e.write(VR("")),e.close();var t=e.parentWindow.Object;return e=null,t},Am=function(){try{wv=new ActiveXObject("htmlfile")}catch(r){}var e,t;Am=typeof document<"u"?document.domain&&wv?m7(wv):((t=ch("iframe")).style.display="none",yS.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(VR("document.F=Object")),e.close(),e.F):m7(wv);for(var n=z0.length;n--;)delete Am.prototype[z0[n]];return Am()};j1[HR]=!0;var $1=Object.create||function(e,t){var n;return e!==null?(q2.prototype=an(e),n=new q2,q2.prototype=null,n[HR]=e):n=Am(),t===void 0?n:Mae(n,t)},bS=qt("unscopables"),wS=Array.prototype;wS[bS]==null&&ti.f(wS,bS,{configurable:!0,value:$1(null)});var Mp=function(e){wS[bS][e]=!0},Iae=NR.includes;Vt({target:"Array",proto:!0},{includes:function(e){return Iae(this,e,arguments.length>1?arguments[1]:void 0)}}),Mp("includes");var jae=qt("match"),h3=function(e){var t;return Tt(e)&&((t=e[jae])!==void 0?!!t:zo(e)=="RegExp")},Lae=ue.TypeError,g3=function(e){if(h3(e))throw Lae("The method doesn't accept regular expressions");return e},Rae=qt("match"),v3=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Rae]=!1,"/./"[e](t)}catch(r){}}return!1},Nae=Ce("".indexOf);Vt({target:"String",proto:!0,forced:!v3("includes")},{includes:function(e){return!!~Nae(St(bo(this)),St(g3(e)),arguments.length>1?arguments[1]:void 0)}});var $ae=/"/g,Uae=Ce("".replace);Vt({target:"String",proto:!0,forced:ht((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=St(bo(this)),r="<a",(r+=' name="'+Uae(St(t),$ae,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var _S=function(e,t,n){var r,o;an(e);try{if(!(r=il(e,"return"))){if(t==="throw")throw n;return n}r=st(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return an(r),n},zae=function(e,t,n,r){try{return r?t(an(n)[0],n[1]):t(n)}catch(o){_S(e,"throw",o)}},af={},Hae=qt("iterator"),Vae=Array.prototype,WR=function(e){return e!==void 0&&(af.Array===e||Vae[Hae]===e)},ph=function(e,t,n){var r=c3(t);r in e?ti.f(e,r,M1(0,n)):e[r]=n},Wae=qt("iterator"),m3=function(e){if(e!=null)return il(e,Wae)||il(e,"@@iterator")||af[L1(e)]},qae=ue.TypeError,qR=function(e,t){var n=arguments.length<2?m3(e):t;if(Du(n))return an(st(n,e));throw qae(F1(e)+" is not iterable")},y7=ue.Array,GR=qt("iterator"),KR=!1;try{var Gae=0,b7={next:function(){return{done:!!Gae++}},return:function(){KR=!0}};b7[GR]=function(){return this},Array.from(b7,(function(){throw 2}))}catch(e){}var y3=function(e,t){if(!KR)return!1;var n=!1;try{var r={};r[GR]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},Kae=!y3((function(e){Array.from(e)}));Vt({target:"Array",stat:!0,forced:Kae},{from:function(e){var t=Uu(e),n=N1(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=al(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,p=m3(t),d=0;if(!p||this==y7&&WR(p))for(a=El(t),u=n?new this(a):y7(a);a>d;d++)f=i?o(t[d],d):t[d],ph(u,d,f);else for(c=(l=qR(t,p)).next,u=n?new this:[];!(s=st(c,l)).done;d++)f=i?zae(l,o,[s.value,d],!0):s.value,ph(u,d,f);return u.length=d,u}});var Is,w7,_7,Xae=Ce("".charAt),x7=Ce("".charCodeAt),Yae=Ce("".slice),Zae=function(e){return function(t,n){var r,o,i=St(bo(t)),a=bg(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=x7(i,a))<55296||r>56319||a+1===u||(o=x7(i,a+1))<56320||o>57343?e?Xae(i,a):r:e?Yae(i,a,a+2):o-56320+(r-55296<<10)+65536}},XR={charAt:Zae(!0)},Jae=!ht((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),C7=f3("IE_PROTO"),xS=ue.Object,Qae=xS.prototype,H0=Jae?xS.getPrototypeOf:function(e){var t=Uu(e);if(on(t,C7))return t[C7];var n=t.constructor;return xt(n)&&t instanceof n?n.prototype:t instanceof xS?Qae:null},CS=qt("iterator"),YR=!1;[].keys&&("next"in(_7=[].keys())?(w7=H0(H0(_7)))!==Object.prototype&&(Is=w7):YR=!0);var eue=Is==null||ht((function(){var e={};return Is[CS].call(e)!==e}));eue&&(Is={}),xt(Is[CS])||Sr(Is,CS,(function(){return this}));var b3={IteratorPrototype:Is,BUGGY_SAFARI_ITERATORS:YR},tue=ti.f,S7=qt("toStringTag"),V0=function(e,t,n){e&&!on(e=n?e:e.prototype,S7)&&tue(e,S7,{configurable:!0,value:t})},nue=b3.IteratorPrototype,rue=function(){return this},oue=ue.String,iue=ue.TypeError,uf=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=Ce(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,o){return an(r),(function(i){if(typeof i=="object"||xt(i))return i;throw iue("Can't set "+oue(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),aue=kf.PROPER,uue=kf.CONFIGURABLE,E7=b3.IteratorPrototype,_v=b3.BUGGY_SAFARI_ITERATORS,hd=qt("iterator"),sue=function(){return this},w3=function(e,t,n,r,o,i,a){(function(y,g,b,w){var x=g+" Iterator";y.prototype=$1(nue,{next:M1(1,b)}),V0(y,x,!1),af[x]=rue})(n,t,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!_v&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=t+" Iterator",p=!1,d=e.prototype,m=d[hd]||d["@@iterator"]||o&&d[o],v=!_v&&m||c(o),h=t=="Array"&&d.entries||m;if(h&&(u=H0(h.call(new e)))!==Object.prototype&&u.next&&(H0(u)!==E7&&(uf?uf(u,E7):xt(u[hd])||Sr(u,hd,sue)),V0(u,f,!0)),aue&&o=="values"&&m&&m.name!=="values"&&(uue?Uo(d,"name","values"):(p=!0,v=function(){return st(m,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(_v||p||!(l in d))&&Sr(d,l,s[l]);else Vt({target:t,proto:!0,forced:_v||p},s);return d[hd]!==v&&Sr(d,hd,v,{name:o}),af[t]=v,s},lue=XR.charAt,cue=tr.set,fue=tr.getterFor("String Iterator");w3(String,"String",(function(e){cue(this,{type:"String Iterator",string:St(e),index:0})}),(function(){var e,t=fue(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=lue(n,r),t.index+=e.length,{value:e,done:!1})}));var G2,due=wg.f,D7=Ce("".endsWith),pue=Ce("".slice),hue=Math.min,ZR=v3("endsWith"),gue=!(ZR||(G2=due(String.prototype,"endsWith"),!G2||G2.writable));Vt({target:"String",proto:!0,forced:!gue&&!ZR},{endsWith:function(e){var t=St(bo(this));g3(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=n===void 0?r:hue(Of(n),r),i=St(e);return D7?D7(t,i,o):pue(t,o-i.length,o)===i}});var vue=Ce([].join),mue=R1!=Object,yue=jR("join",",");Vt({target:"Array",proto:!0,forced:mue||!yue},{join:function(e){return vue(zu(this),e===void 0?",":e)}});var bue=qt("species"),U1=function(e){return lh>=51||!ht((function(){var t=[];return(t.constructor={})[bue]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},wue=Af.map,_ue=U1("map");Vt({target:"Array",proto:!0,forced:!_ue},{map:function(e){return wue(this,e,arguments.length>1?arguments[1]:void 0)}});var _3=ue.RegExp,SS=ht((function(){var e=_3("a","y");return e.lastIndex=2,e.exec("abcd")!=null})),xue=SS||ht((function(){return!_3("a","y").sticky})),z1={BROKEN_CARET:SS||ht((function(){var e=_3("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),MISSED_STICKY:xue,UNSUPPORTED_Y:SS},Cue=ue.RegExp,x3=ht((function(){var e=Cue(".","s");return!(e.dotAll&&e.exec("\n")&&e.flags==="s")})),Sue=ue.RegExp,C3=ht((function(){var e=Sue("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),Eue=tr.get,Due=a3("native-string-replace",String.prototype.replace),W0=RegExp.prototype.exec,ES=W0,kue=Ce("".charAt),Oue=Ce("".indexOf),Aue=Ce("".replace),K2=Ce("".slice),X2=(function(){var e=/a/,t=/b*/g;return st(W0,e,"a"),st(W0,t,"a"),e.lastIndex!==0||t.lastIndex!==0})(),k7=z1.BROKEN_CARET,Y2=/()??/.exec("")[1]!==void 0;(X2||Y2||k7||x3||C3)&&(ES=function(e){var t,n,r,o,i,a,u,s=this,l=Eue(s),c=St(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=st(ES,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=k7&&s.sticky,m=st(p3,s),v=s.source,h=0,y=c;if(d&&(m=Aue(m,"y",""),Oue(m,"g")===-1&&(m+="g"),y=K2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&kue(c,s.lastIndex-1)!=="\n")&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",m)),Y2&&(n=new RegExp("^"+v+"$(?!\\s)",m)),X2&&(r=s.lastIndex),o=st(W0,d?n:s,y),d?o?(o.input=K2(o.input,h),o[0]=K2(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:X2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Y2&&o&&o.length>1&&st(Due,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&p)for(o.groups=a=$1(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var hh=ES;Vt({target:"RegExp",proto:!0,forced:/./.exec!==hh},{exec:hh});var S3=Function.prototype,O7=S3.apply,Tue=S3.bind,A7=S3.call,E3=typeof Reflect=="object"&&Reflect.apply||(Tue?A7.bind(O7):function(){return A7.apply(O7,arguments)}),Bue=qt("species"),Z2=RegExp.prototype,D3=function(e,t,n,r){var o=qt(e),i=!ht((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!ht((function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Bue]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||n){var u=Ce(/./[o]),s=t(o,""[e],(function(l,c,f,p,d){var m=Ce(l),v=c.exec;return v===hh||v===Z2.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}}));Sr(String.prototype,e,s[0]),Sr(Z2,o,s[1])}r&&Uo(Z2[o],"sham",!0)},Pue=XR.charAt,k3=function(e,t,n){return t+(n?Pue(e,t).length:1)},Fue=Math.floor,J2=Ce("".charAt),Mue=Ce("".replace),Q2=Ce("".slice),Iue=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,jue=/\$([$&'`]|\d{1,2})/g,Lue=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=jue;return o!==void 0&&(o=Uu(o),s=Iue),Mue(i,s,(function(l,c){var f;switch(J2(c,0)){case"$":return"$";case"&":return e;case"`":return Q2(t,0,n);case"'":return Q2(t,a);case"<":f=o[Q2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Fue(p/10);return d===0?l:d<=u?r[d-1]===void 0?J2(c,1):r[d-1]+J2(c,1):l}f=r[p-1]}return f===void 0?"":f}))},Rue=ue.TypeError,gh=function(e,t){var n=e.exec;if(xt(n)){var r=st(n,e,t);return r!==null&&an(r),r}if(zo(e)==="RegExp")return st(hh,e,t);throw Rue("RegExp#exec called on incompatible receiver")},DS=qt("replace"),Nue=Math.max,$ue=Math.min,Uue=Ce([].concat),ew=Ce([].push),T7=Ce("".indexOf),B7=Ce("".slice),zue="a".replace(/./,"$0")==="$0",P7=!!/./[DS]&&/./[DS]("a","$0")==="";D3("replace",(function(e,t,n){var r=P7?"$":"$0";return[function(o,i){var a=bo(this),u=o==null?void 0:il(o,DS);return u?st(u,o,a,i):st(t,St(a),o,i)},function(o,i){var a=an(this),u=St(o);if(typeof i=="string"&&T7(i,r)===-1&&T7(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=xt(i);l||(i=St(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=gh(a,u);if(d===null||(ew(p,d),!c))break;St(d[0])===""&&(a.lastIndex=k3(u,Of(a.lastIndex),f))}for(var m,v="",h=0,y=0;y<p.length;y++){for(var g=St((d=p[y])[0]),b=Nue($ue(bg(d.index),u.length),0),w=[],x=1;x<d.length;x++)ew(w,(m=d[x])===void 0?m:String(m));var k=d.groups;if(l){var D=Uue([g],w,b,u);k!==void 0&&ew(D,k);var T=St(E3(i,void 0,D))}else T=Lue(g,u,b,w,k,i);b>=h&&(v+=B7(u,h,b)+T,h=b+g.length)}return v+B7(u,h)}]}),!!ht((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!zue||P7);var kS=function(e,t){return kS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},kS(e,t)};function Tf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}kS(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ao=function(){return ao=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ao.apply(this,arguments)};function uo(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function rt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function OS(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var Hue=0,F7=function(){this.id=""+Hue++},Vue=tr.set,Wue=tr.getterFor("Array Iterator"),bp=w3(Array,"Array",(function(e,t){Vue(this,{type:"Array Iterator",target:zu(e),index:0,kind:t})}),(function(){var e=Wue(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");af.Arguments=af.Array,Mp("keys"),Mp("values"),Mp("entries");var sf=function(e,t,n){for(var r in t)Sr(e,r,t[r],n);return e},que=ue.Array,Gue=Math.max,AS=function(e,t,n){for(var r=El(e),o=of(t,r),i=of(n===void 0?r:n,r),a=que(Gue(i-o,0)),u=0;o<i;o++,u++)ph(a,u,e[o]);return a.length=u,a},M7=fh.f,I7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Kue={f:function(e){return I7&&zo(e)=="Window"?(function(t){try{return M7(t)}catch(n){return AS(I7)}})(e):M7(zu(e))}},j7=ht((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),xv=Object.isExtensible,Ss=ht((function(){xv(1)}))||j7?function(e){return!!Tt(e)&&(!j7||zo(e)!="ArrayBuffer")&&(!xv||xv(e))}:xv,Xue=!ht((function(){return Object.isExtensible(Object.preventExtensions({}))})),H1=yg((function(e){var t=ti.f,n=!1,r=u3("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=fh.f,s=Ce([].splice),l={};l[r]=1,u(l).length&&(fh.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},Vt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Kue.f}))},fastKey:function(u,s){if(!Tt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!on(u,r)){if(!Ss(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!on(u,r)){if(!Ss(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Xue&&n&&Ss(u)&&!on(u,r)&&i(u),u}};j1[r]=!0})),Yue=ue.TypeError,Tm=function(e,t){this.stopped=e,this.result=t},L7=Tm.prototype,vh=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),m=al(t,c),v=function(y){return r&&_S(r,"normal",y),new Tm(!0,y)},h=function(y){return f?(an(y),d?m(y[0],y[1],v):m(y[0],y[1])):d?m(y,v):m(y)};if(p)r=e;else{if(!(o=m3(e)))throw Yue(F1(e)+" is not iterable");if(WR(o)){for(i=0,a=El(e);a>i;i++)if((u=h(e[i]))&&ol(L7,u))return u;return new Tm(!1)}r=qR(e,o)}for(s=r.next;!(l=st(s,r)).done;){try{u=h(l.value)}catch(y){_S(r,"throw",y)}if(typeof u=="object"&&u&&ol(L7,u))return u}return new Tm(!1)},Zue=ue.TypeError,V1=function(e,t){if(ol(t,e))return e;throw Zue("Incorrect invocation")},JR=function(e,t,n){var r,o;return uf&&xt(r=t.constructor)&&r!==n&&Tt(o=r.prototype)&&o!==n.prototype&&uf(e,o),e},QR=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=ue[e],u=a&&a.prototype,s=a,l={},c=function(h){var y=Ce(u[h]);Sr(u,h,h=="add"?function(g){return y(this,g===0?0:g),this}:h=="delete"?function(g){return!(o&&!Tt(g))&&y(this,g===0?0:g)}:h=="get"?function(g){return o&&!Tt(g)?void 0:y(this,g===0?0:g)}:h=="has"?function(g){return!(o&&!Tt(g))&&y(this,g===0?0:g)}:function(g,b){return y(this,g===0?0:g,b),this})};if(dh(e,!xt(a)||!(o||u.forEach&&!ht((function(){new a().entries().next()})))))s=n.getConstructor(t,e,r,i),H1.enable();else if(dh(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=ht((function(){f.has(1)})),m=y3((function(h){new a(h)})),v=!o&&ht((function(){for(var h=new a,y=5;y--;)h[i](y,y);return!h.has(-0)}));m||((s=t((function(h,y){V1(h,u);var g=JR(new a,h,s);return y!=null&&vh(y,g[i],{that:g,AS_ENTRIES:r}),g}))).prototype=u,u.constructor=s),(d||v)&&(c("delete"),c("has"),r&&c("get")),(v||p)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Vt({global:!0,forced:s!=a},l),V0(s,e),o||n.setStrong(s,e,r),s},Cv=H1.getWeakData,Jue=tr.set,Que=tr.getterFor,ese=Af.find,tse=Af.findIndex,nse=Ce([].splice),rse=0,Sv=function(e){return e.frozen||(e.frozen=new eN)},eN=function(){this.entries=[]},tw=function(e,t){return ese(e.entries,(function(n){return n[0]===t}))};eN.prototype={get:function(e){var t=tw(this,e);if(t)return t[1]},has:function(e){return!!tw(this,e)},set:function(e,t){var n=tw(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=tse(this.entries,(function(n){return n[0]===e}));return~t&&nse(this.entries,t,1),!!~t}};var gd,tN={getConstructor:function(e,t,n,r){var o=e((function(s,l){V1(s,i),Jue(s,{type:t,id:rse++,frozen:void 0}),l!=null&&vh(l,s[r],{that:s,AS_ENTRIES:n})})),i=o.prototype,a=Que(t),u=function(s,l,c){var f=a(s),p=Cv(an(l),!0);return p===!0?Sv(f).set(l,c):p[f.id]=c,s};return sf(i,{delete:function(s){var l=a(this);if(!Tt(s))return!1;var c=Cv(s);return c===!0?Sv(l).delete(s):c&&on(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Tt(s))return!1;var c=Cv(s);return c===!0?Sv(l).has(s):c&&on(c,l.id)}}),sf(i,n?{get:function(s){var l=a(this);if(Tt(s)){var c=Cv(s);return c===!0?Sv(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Ev=tr.enforce,ose=!ue.ActiveXObject&&"ActiveXObject"in ue,nN=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ise=QR("WeakMap",nN,tN);if(TR&&ose){gd=tN.getConstructor(nN,"WeakMap",!0),H1.enable();var vd=ise.prototype,R7=Ce(vd.delete),Dv=Ce(vd.has),N7=Ce(vd.get),$7=Ce(vd.set);sf(vd,{delete:function(e){if(Tt(e)&&!Ss(e)){var t=Ev(this);return t.frozen||(t.frozen=new gd),R7(this,e)||t.frozen.delete(e)}return R7(this,e)},has:function(e){if(Tt(e)&&!Ss(e)){var t=Ev(this);return t.frozen||(t.frozen=new gd),Dv(this,e)||t.frozen.has(e)}return Dv(this,e)},get:function(e){if(Tt(e)&&!Ss(e)){var t=Ev(this);return t.frozen||(t.frozen=new gd),Dv(this,e)?N7(this,e):t.frozen.get(e)}return N7(this,e)},set:function(e,t){if(Tt(e)&&!Ss(e)){var n=Ev(this);n.frozen||(n.frozen=new gd),Dv(this,e)?$7(this,e,t):n.frozen.set(e,t)}else $7(this,e,t);return this}})}var nw=qt("iterator"),U7=qt("toStringTag"),rw=bp.values,rN=function(e,t){if(e){if(e[nw]!==rw)try{Uo(e,nw,rw)}catch(r){e[nw]=rw}if(e[U7]||Uo(e,U7,t),$0[t]){for(var n in bp)if(e[n]!==bp[n])try{Uo(e,n,bp[n])}catch(r){e[n]=bp[n]}}}};for(var ow in $0)rN(ue[ow]&&ue[ow].prototype,ow);rN(PR,"DOMTokenList");var TS=new WeakMap,BS=new WeakMap,O3=new WeakMap,W1=new WeakMap,PS=new WeakMap,q0=new WeakMap,A3=new WeakMap,FS=new WeakMap,Bm=new WeakMap,z7=new WeakMap,H7=new WeakMap,V7=new WeakMap,W7=new WeakMap,mh=new WeakMap,lf=new WeakMap,T3=new WeakMap,G0=new WeakMap,MS=new WeakMap,K0=new WeakMap,Pm=new WeakMap,oN=new WeakMap,js=new WeakMap,iw=new WeakMap,q7=new WeakMap,aw=new WeakMap,ase=Af.find,G7=!0;"find"in[]&&Array(1).find((function(){G7=!1})),Vt({target:"Array",proto:!0,forced:G7},{find:function(e){return ase(this,e,arguments.length>1?arguments[1]:void 0)}}),Mp("find"),Vt({global:!0},{globalThis:ue});const use=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];P0&&(N.fn.css=P0),yo&&(N.fn.append=yo),Gc&&(N.fn.addClass=Gc),Kc&&(N.fn.removeClass=Kc),Xc&&(N.fn.hasClass=Xc),Ai&&(N.fn.on=Ai),Eu&&(N.fn.focus=Eu),mo&&(N.fn.attr=mo),O0&&(N.fn.removeAttr=O0),Zc&&(N.fn.hide=Zc),B0&&(N.fn.show=B0),lA&&(N.fn.offset=lA),A0&&(N.fn.width=A0),T0&&(N.fn.height=T0),Jc&&(N.fn.parent=Jc),I0&&(N.fn.parents=I0),fA&&(N.fn.is=fA),Yc&&(N.fn.dataset=Yc),Oi&&(N.fn.val=Oi),M0&&(N.fn.text=M0),Su&&(N.fn.html=Su),ef&&(N.fn.children=ef),tf&&(N.fn.remove=tf),Qc&&(N.fn.find=Qc),F0&&(N.fn.each=F0),nf&&(N.fn.empty=nf);var gi,Zn,B3=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Po=function(e){return ul(e)&&e.nodeType===1},ul=function(e){var t=B3(e);return!!t&&e instanceof t.Node},K7=function(e){var t=e&&e.anchorNode&&B3(e.anchorNode);return!!t&&e instanceof t.Selection},iN=function(e){return ul(e)&&e.nodeType===3},IS=function(e){var t,n,r;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(e))||null},aN=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(ul(r=i)&&r.nodeType===8||Po(i)&&i.childNodes.length===0||Po(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+=n==="forward"?1:-1);return[i,t]},sse=function(e,t,n){return rt(aN(e,t,n),1)[0]},lse=function e(t){var n,r,o="";if(iN(t)&&t.nodeValue)return t.nodeValue;if(Po(t)){try{for(var i=uo(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&t.tagName!=="BR"||(o+="\n")}return o};function uN(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?t(o,e):i!=1&&i!=9&&i!=11||uN(o,t)}}function X7(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==gi.ELEMENT_NODE?"":t.tagName.toLowerCase()}(Zn=gi||(gi={}))[Zn.ELEMENT_NODE=1]="ELEMENT_NODE",Zn[Zn.TEXT_NODE=3]="TEXT_NODE",Zn[Zn.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Zn[Zn.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Zn[Zn.COMMENT_NODE=8]="COMMENT_NODE",Zn[Zn.DOCUMENT_NODE=9]="DOCUMENT_NODE",Zn[Zn.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Zn[Zn.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var jS=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Ip=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),md=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),cse=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),fse=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),LS=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),yd=!fse&&!cse&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",I={getWindow:function(e){var t=oN.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=Pm.get(t);return n||(n=new F7,Pm.set(t,n)),n},setNewKey:function(e){var t=new F7;Pm.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=lf.get(r);if(o==null){if(S.isEditor(r))return n;break}var i=mh.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=I.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return lf.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var o=I.getParentNode(e,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[I.findPath(e,t)[0]];return fe.get(e,n)},toDOMNode:function(e,t){var n;if(S.isEditor(t))n=T3.get(e);else{var r=I.findKey(e,t);n=MS.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=I.toDOMNode(e,e);try{r=Po(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=ee.isBackward(t),i=I.toDOMPoint(e,n),a=ee.isCollapsed(t)?i:I.toDOMPoint(e,r),u=I.getWindow(e).document.createRange(),s=rt(o?a:i,2),l=s[0],c=s[1],f=rt(o?i:a,2),p=f[0],d=f[1],m=!!(Po(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),v=!!(Po(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,m?1:c),u.setEnd(p,v?1:d),u},toDOMPoint:function(e,t){var n,r,o,i=rt(S.node(e,t.path),1)[0],a=I.toDOMNode(e,i);S.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=uo(u),c=l.next();!c.done;c=l.next()){var f=c.value,p=f.childNodes[0];if(p!=null&&p.textContent!=null){var d=p.textContent.length,m=f.getAttribute("data-slate-length"),v=s+(m==null?d:parseInt(m,10));if(t.offset<=v){o=[p,Math.min(d,Math.max(0,t.offset-s))];break}s=v}}}catch(h){n={error:h}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=Po(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?G0.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=I.toSlateNode(e,t.target),u=I.findPath(e,a);if(S.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=S.point(e,u,{edge:l?"start":"end"}),f=l?S.before(e,c):S.after(e,c);if(f)return S.range(e,f)}var p=this.getWindow(e).document;if(p.caretRangeFromPoint)i=p.caretRangeFromPoint(n,r);else{var d=p.caretPositionFromPoint(n,r);d&&((i=p.createRange()).setStart(d.offsetNode,d.offset),i.setEnd(d.offsetNode,d.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return I.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((K7(t)?t.anchorNode:t.startContainer)&&(K7(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=LS&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=I.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:I.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var p={anchor:c,focus:f};return ee.isExpanded(p)&&ee.isForward(p)&&Po(i)&&S.void(e,{at:p.focus,mode:"highest"})&&(p=S.unhangRange(e,p,{voids:!0})),p},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=rt(o?t:(function(g){var b,w=rt(g,2),x=w[0],k=w[1];if(Po(x)&&x.childNodes.length){var D=k===x.childNodes.length,T=D?k-1:k;for(x=(b=rt(aN(x,T,D?"backward":"forward"),2))[0],D=(T=b[1])<k;Po(x)&&x.childNodes.length;){var A=D?x.childNodes.length-1:0;x=sse(x,A,D?"backward":"forward")}k=D&&x.textContent!=null?x.textContent.length:0}return[x,k]})(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var p=l.closest('[data-slate-void="true"]'),d=l.closest("[data-slate-leaf]"),m=null;if(d){c=d.closest('[data-slate-node="text"]');var v=I.getWindow(e).document.createRange();v.setStart(c,0),v.setEnd(u,s);var h=v.cloneContents();OS(OS([],rt(aA(h.querySelectorAll("[data-slate-zero-width]")))),rt(aA(h.querySelectorAll("[contenteditable=false]")))).forEach((function(g){g.parentNode.removeChild(g)})),f=h.textContent.length,m=c}else p&&((d=p.querySelector("[data-slate-leaf]"))?(c=d.closest('[data-slate-node="text"]'),f=(m=d).textContent.length,m.querySelectorAll("[data-slate-zero-width]").forEach((function(g){f-=g.textContent.length}))):f=1);m&&f===m.textContent.length&&(l.hasAttribute("data-slate-zero-width")||Ip&&(!((r=m.textContent)===null||r===void 0)&&r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=I.toSlateNode(e,c);return{path:I.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return S.hasPath(e,n.path)&&S.hasPath(e,r.path)},getNodeType:function(e){return we.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(t){return fe.string(t)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=S.nodes(e,{universal:!0});try{for(var i=uo(o),a=i.next();!a.done;a=i.next()){var u=rt(a.value,1)[0];we.isElement(u)&&r.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=rt(S.nodes(e,{match:function(i){return n.checkNodeType(i,t)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=rt(S.nodes(e,{match:function(r){return me.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=rt(S.nodes(e,{match:function(o){return o===t},universal:!0}),1),r=n[0];return r!=null&&rt(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(S.isEnd(e,n.anchor,t)||S.isEnd(e,n.focus,t))},getTextarea:function(e){var t=TS.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return W1.get(e)||null},getHoverbar:function(e){return q0.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=I.getTextarea(e).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=uo(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(v){t={error:v}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=S.nodes(e,{match:function(v){return!(!we.isElement(v)||e.isInline(v))},universal:!0});try{for(var f=uo(c),p=f.next();!p.done;p=f.next()){var d=p.value;if(d!=null){var m=d[0];uN(I.toDOMNode(e,m),(function(v,h){var y=N(h);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||h.removeChild(v)}))}}}catch(v){r={error:v}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=S.nodes(e,{match:function(u){return e.isVoid(u)}}),o=0;try{for(var i=uo(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||ee.isExpanded(t))return!1;var n=I.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=S.node(e,t);if(n==null)return!1;var r=rt(n,1)[0].children;return r.length===1&&r[0].text===""}},dse=1,sN={},yh={},pse=Af.filter,hse=U1("filter");Vt({target:"Array",proto:!0,forced:!hse},{filter:function(e){return pse(this,e,arguments.length>1?arguments[1]:void 0)}});var RS=" \n\v\f\r    \u2028\u2029\uFEFF",Y7=Ce("".replace),X0="["+RS+"]",gse=RegExp("^"+X0+X0+"*"),vse=RegExp(X0+X0+"*$"),mse=function(e){return function(t){var n=St(bo(t));return 1&e&&(n=Y7(n,gse,"")),2&e&&(n=Y7(n,vse,"")),n}},yse={trim:mse(3)},bse=kf.PROPER,wse=yse.trim;Vt({target:"String",proto:!0,forced:(function(e){return ht((function(){return!!RS[e]()||"…"[e]()!=="…"||bse&&RS[e].name!==e}))})("trim")},{trim:function(){return wse(this)}});var NS=[],lN={};function _se(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var bh,Hl,Z7,uw,Y0=ue.Promise,J7=qt("species"),P3=function(e){var t=Sl(e),n=ti.f;Tn&&t&&!t[J7]&&n(t,J7,{configurable:!0,get:function(){return this}})},xse=ue.TypeError,Cse=qt("species"),cN=function(e,t){var n,r=an(e).constructor;return r===void 0||(n=an(r)[Cse])==null?t:(function(o){if(N1(o))return o;throw xse(F1(o)+" is not a constructor")})(n)},fN=Ce([].slice),dN=/(?:ipad|iphone|ipod).*applewebkit/i.test(Tc),uu=zo(ue.process)=="process",$S=ue.setImmediate,Q7=ue.clearImmediate,Sse=ue.process,sw=ue.Dispatch,Ese=ue.Function,eT=ue.MessageChannel,Dse=ue.String,lw=0,jp={};try{bh=ue.location}catch(e){}var F3=function(e){if(on(jp,e)){var t=jp[e];delete jp[e],t()}},cw=function(e){return function(){F3(e)}},tT=function(e){F3(e.data)},nT=function(e){ue.postMessage(Dse(e),bh.protocol+"//"+bh.host)};$S&&Q7||($S=function(e){var t=fN(arguments,1);return jp[++lw]=function(){E3(xt(e)?e:Ese(e),void 0,t)},Hl(lw),lw},Q7=function(e){delete jp[e]},uu?Hl=function(e){Sse.nextTick(cw(e))}:sw&&sw.now?Hl=function(e){sw.now(cw(e))}:eT&&!dN?(uw=(Z7=new eT).port2,Z7.port1.onmessage=tT,Hl=al(uw.postMessage,uw)):ue.addEventListener&&xt(ue.postMessage)&&!ue.importScripts&&bh&&bh.protocol!=="file:"&&!ht(nT)?(Hl=nT,ue.addEventListener("message",tT,!1)):Hl="onreadystatechange"in ch("script")?function(e){yS.appendChild(ch("script")).onreadystatechange=function(){yS.removeChild(this),F3(e)}}:function(e){setTimeout(cw(e),0)});var bd,ws,Lp,gc,fw,dw,pw,rT,pN={set:$S},kse=/ipad|iphone|ipod/i.test(Tc)&&ue.Pebble!==void 0,Ose=/web0s(?!.*chrome)/i.test(Tc),Ase=wg.f,hw=pN.set,oT=ue.MutationObserver||ue.WebKitMutationObserver,iT=ue.document,aT=ue.process,kv=ue.Promise,uT=Ase(ue,"queueMicrotask"),hN=uT&&uT.value;hN||(bd=function(){var e,t;for(uu&&(e=aT.domain)&&e.exit();ws;){t=ws.fn,ws=ws.next;try{t()}catch(n){throw ws?gc():Lp=void 0,n}}Lp=void 0,e&&e.enter()},dN||uu||Ose||!oT||!iT?!kse&&kv&&kv.resolve?((pw=kv.resolve(void 0)).constructor=kv,rT=al(pw.then,pw),gc=function(){rT(bd)}):uu?gc=function(){aT.nextTick(bd)}:(hw=al(hw,ue),gc=function(){hw(bd)}):(fw=!0,dw=iT.createTextNode(""),new oT(bd).observe(dw,{characterData:!0}),gc=function(){dw.data=fw=!fw}));var gw,sT,gN,lT,vN=hN||function(e){var t={fn:e,next:void 0};Lp&&(Lp.next=t),ws||(ws=t,gc()),Lp=t},Tse=function(e){var t,n;this.promise=new e((function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o})),this.resolve=Du(t),this.reject=Du(n)},M3={f:function(e){return new Tse(e)}},US=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Bse=typeof window=="object",mN=pN.set,Pse=qt("species"),di="Promise",cT=tr.getterFor(di),Fse=tr.set,Mse=tr.getterFor(di),hs=Y0&&Y0.prototype,mi=Y0,wd=hs,yN=ue.TypeError,zS=ue.document,I3=ue.process,Pc=M3.f,Ise=Pc,jse=!!(zS&&zS.createEvent&&ue.dispatchEvent),bN=xt(ue.PromiseRejectionEvent),wN=!1,Rp=dh(di,(function(){var e=I1(mi),t=e!==String(mi);if(!t&&lh===66)return!0;if(lh>=51&&/native code/.test(e))return!1;var n=new mi((function(o){o(1)})),r=function(o){o((function(){}),(function(){}))};return(n.constructor={})[Pse]=r,!(wN=n.then((function(){}))instanceof r)||!t&&Bse&&!bN})),Lse=Rp||!y3((function(e){mi.all(e).catch((function(){}))})),_N=function(e){var t;return!(!Tt(e)||!xt(t=e.then))&&t},j3=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;vN((function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(e.rejection===2&&Nse(e),e.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(yN("Promise-chain cycle")):(u=_N(a))?st(u,a,f,p):f(a)):p(r)}catch(m){d&&!s&&d.exit(),p(m)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Rse(e)}))}},xN=function(e,t,n){var r,o;jse?((r=zS.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),ue.dispatchEvent(r)):r={promise:t,reason:n},!bN&&(o=ue["on"+e])?o(r):e==="unhandledrejection"&&(function(i,a){var u=ue.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",n)},Rse=function(e){st(mN,ue,(function(){var t,n=e.facade,r=e.value;if(fT(e)&&(t=US((function(){uu?I3.emit("unhandledRejection",r,n):xN("unhandledrejection",n,r)})),e.rejection=uu||fT(e)?2:1,t.error))throw t.value}))},fT=function(e){return e.rejection!==1&&!e.parent},Nse=function(e){st(mN,ue,(function(){var t=e.facade;uu?I3.emit("rejectionHandled",t):xN("rejectionhandled",t,e.value)}))},Cc=function(e,t,n){return function(r){e(t,r,n)}},Fc=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,j3(e,!0))},HS=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw yN("Promise can't be resolved itself");var r=_N(t);r?vN((function(){var o={done:!1};try{st(r,t,Cc(HS,o,e),Cc(Fc,o,e))}catch(i){Fc(o,i,e)}})):(e.value=t,e.state=1,j3(e,!1))}catch(o){Fc({done:!1},o,e)}}};if(Rp&&(wd=(mi=function(e){V1(this,wd),Du(e),st(gw,this);var t=cT(this);try{e(Cc(HS,t),Cc(Fc,t))}catch(n){Fc(t,n)}}).prototype,(gw=function(e){Fse(this,{type:di,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=sf(wd,{then:function(e,t){var n=Mse(this),r=n.reactions,o=Pc(cN(this,mi));return o.ok=!xt(e)||e,o.fail=xt(t)&&t,o.domain=uu?I3.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&j3(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),sT=function(){var e=new gw,t=cT(e);this.promise=e,this.resolve=Cc(HS,t),this.reject=Cc(Fc,t)},M3.f=Pc=function(e){return e===mi||e===gN?new sT(e):Ise(e)},xt(Y0)&&hs!==Object.prototype)){lT=hs.then,wN||(Sr(hs,"then",(function(e,t){var n=this;return new mi((function(r,o){st(lT,n,r,o)})).then(e,t)}),{unsafe:!0}),Sr(hs,"catch",wd.catch,{unsafe:!0}));try{delete hs.constructor}catch(e){}uf&&uf(hs,wd)}Vt({global:!0,wrap:!0,forced:Rp},{Promise:mi}),V0(mi,di,!1),P3(di),gN=Sl(di),Vt({target:di,stat:!0,forced:Rp},{reject:function(e){var t=Pc(this);return st(t.reject,void 0,e),t.promise}}),Vt({target:di,stat:!0,forced:Rp},{resolve:function(e){return(function(t,n){if(an(t),Tt(n)&&n.constructor===t)return n;var r=M3.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),Vt({target:di,stat:!0,forced:Lse},{all:function(e){var t=this,n=Pc(t),r=n.resolve,o=n.reject,i=US((function(){var a=Du(t.resolve),u=[],s=0,l=1;vh(e,(function(c){var f=s++,p=!1;l++,st(a,t,c).then((function(d){p||(p=!0,u[f]=d,--l||r(u))}),o)})),--l||r(u)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Pc(t),r=n.reject,o=US((function(){var i=Du(t.resolve);vh(e,(function(a){st(i,t,a).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Vl=z1.UNSUPPORTED_Y,$se=Math.min,CN=[].push,Use=Ce(/./.exec),Wl=Ce(CN),_d=Ce("".slice);function wo(e){Promise.resolve().then(e)}function SN(e,t){return we.isElement(e)?(function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,u=a===void 0?[]:a,s=S.isVoid(r,n),l="";s||(l=u.map((function(y){return SN(y,r)})).join(""));var c=(function(y){return lN[y]||_se})(i),f=c(n,l,r),p="";if(p=typeof f=="string"?f:f.html||"",s||NS.forEach((function(y){return p=y(n,p)})),typeof f=="string")return p;var d=f.prefix,m=d===void 0?"":d,v=f.suffix,h=v===void 0?"":v;return m&&(p=m+p),h&&(p+=h),p})(e,t):(function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var i=o;i=(function(s){return s.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")})(i);var a=I.getParentsNodes(r,n).some((function(s){return I.getNodeType(s)==="pre"}));if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/&nbsp;/g," ")),i===""){var u=I.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="<br>"}return NS.forEach((function(s){return i=s(n,i)})),i})(e,t)}function EN(e){return"w-e-element-"+e}D3("split",(function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=St(bo(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!h3(o))return st(t,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,m=new RegExp(o.source,p+"g");(s=st(hh,m,a))&&!((l=m.lastIndex)>d&&(Wl(f,_d(a,d,s.index)),s.length>1&&s.index<a.length&&E3(CN,f,AS(s,1)),c=s[0].length,d=l,f.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return d===a.length?!c&&Use(m,"")||Wl(f,""):Wl(f,_d(a,d)),f.length>u?AS(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:st(t,this,o,i)}:t,[function(o,i){var a=bo(this),u=o==null?void 0:il(o,e);return u?st(u,o,a,i):st(r,St(a),o,i)},function(o,i){var a=an(this),u=St(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=cN(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Vl?"g":"y"),p=new l(Vl?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return gh(p,u)===null?[u]:[];for(var m=0,v=0,h=[];v<u.length;){p.lastIndex=Vl?0:v;var y,g=gh(p,Vl?_d(u,v):u);if(g===null||(y=$se(Of(p.lastIndex+(Vl?v:0)),u.length))===m)v=k3(u,v,c);else{if(Wl(h,_d(u,m,v)),h.length===d)return h;for(var b=1;b<=g.length-1;b++)if(Wl(h,g[b]),h.length===d)return h;v=m=y}}return Wl(h,_d(u,m)),h}]}),!!ht((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),Vl);var dT=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},pT=function(e,t,n){var r=I.toDOMRange(e,t).getBoundingClientRect(),o=I.toDOMRange(e,n).getBoundingClientRect();return dT(r,o)&&dT(o,r)},DN=["span","b","strong","i","em","s","strike","u","font","sub","sup"],kN=[],L3=[],Z0={},zse=ti.f,Hse=fh.f,Vse=tr.enforce,Wse=qt("match"),na=ue.RegExp,vc=na.prototype,qse=ue.SyntaxError,Gse=Ce(p3),Kse=Ce(vc.exec),Ov=Ce("".charAt),hT=Ce("".replace),gT=Ce("".indexOf),Xse=Ce("".slice),Yse=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ls=/a/g,vw=/a/g,Zse=new na(Ls)!==Ls,ON=z1.MISSED_STICKY,Jse=z1.UNSUPPORTED_Y,Qse=Tn&&(!Zse||ON||x3||C3||ht((function(){return vw[Wse]=!1,na(Ls)!=Ls||na(vw)==vw||na(Ls,"i")!="/a/i"})));if(dh("RegExp",Qse)){for(var Fa=function(e,t){var n,r,o,i,a,u,s=ol(vc,this),l=h3(e),c=t===void 0,f=[],p=e;if(!s&&l&&c&&e.constructor===Fa)return e;if((l||ol(vc,e))&&(e=e.source,c&&(t="flags"in p?p.flags:Gse(p))),e=e===void 0?"":St(e),t=t===void 0?"":St(t),p=e,x3&&"dotAll"in Ls&&(r=!!t&&gT(t,"s")>-1)&&(t=hT(t,/s/g,"")),n=t,ON&&"sticky"in Ls&&(o=!!t&&gT(t,"y")>-1)&&Jse&&(t=hT(t,/y/g,"")),C3&&(i=(function(d){for(var m,v=d.length,h=0,y="",g=[],b={},w=!1,x=!1,k=0,D="";h<=v;h++){if((m=Ov(d,h))==="\\")m+=Ov(d,++h);else if(m==="]")w=!1;else if(!w)switch(!0){case m==="[":w=!0;break;case m==="(":Kse(Yse,Xse(d,h+1))&&(h+=2,x=!0),y+=m,k++;continue;case(m===">"&&x):if(D===""||on(b,D))throw new qse("Invalid capture group name");b[D]=!0,g[g.length]=[D,k],x=!1,D="";continue}x?D+=m:y+=m}return[y,g]})(e),e=i[0],f=i[1]),a=JR(na(e,t),s?this:vc,Fa),(r||o||f.length)&&(u=Vse(a),r&&(u.dotAll=!0,u.raw=Fa((function(d){for(var m,v=d.length,h=0,y="",g=!1;h<=v;h++)(m=Ov(d,h))!=="\\"?g||m!=="."?(m==="["?g=!0:m==="]"&&(g=!1),y+=m):y+="[\\s\\S]":y+=m+Ov(d,++h);return y})(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==p)try{Uo(a,"source",p===""?"(?:)":p)}catch(d){}return a},ele=function(e){e in Fa||zse(Fa,e,{configurable:!0,get:function(){return na[e]},set:function(t){na[e]=t}})},vT=Hse(na),mT=0;vT.length>mT;)ele(vT[mT++]);vc.constructor=Fa,Fa.prototype=vc,Sr(ue,"RegExp",Fa)}P3("RegExp");var tle=new RegExp(" ","g");function AN(e){return e.replace(tle," ")}function yT(e,t){var n=e.length;if(n){var r=e[n-1];if(me.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+t,!0}}return!1}function nle(e,t,n){return{type:"paragraph",children:[{text:N(e).text().replace(/\s+/gm," ")}]}}function mw(e,t){var n=(function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach((function(l){if(l.nodeType!==gi.ELEMENT_NODE){if(l.nodeType===gi.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf("\n")>=0)return;c&&(c=AN(c),yT(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(yT(u,"\n")||u.push({text:"\n"}));var f=R3(N(l),a);Array.isArray(f)?f.forEach((function(p){return u.push(p)})):u.push(f)}})),u)})(e,t),r=(function(i){for(var a in Z0)if(i[0].matches(a))return Z0[a];return nle})(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(i){S.isVoid(t,i)||(n.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),L3.forEach((function(a){i=a(e[0],i,t)})))})),o}function yw(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=(function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')})(n);var r={text:n=AN(n)};return L3.forEach((function(o){r=o(e[0],r,t)})),r}function R3(e,t){kN.forEach((function(r){var o=r.selector,i=r.preParseHtml;e[0].matches(o)&&(e=N(i(e[0])))}));var n=X7(e);return n==="span"?e.attr("data-w-e-type")?mw(e,t):yw(e,t):n==="code"?X7(e.parent())==="pre"?mw(e,t):yw(e,t):DN.includes(n)?yw(e,t):mw(e,t)}function TN(e,t,n){var r=N(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function bT(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map((function(o){return"<p>"+o+"</p>"})).join(""));var r=N("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(o){var i=R3(N(o),e);Array.isArray(i)?i.forEach((function(a){return n.push(a)})):n.push(i)})),n}var rle=ti.f,wT=H1.fastKey,_T=tr.set,bw=tr.getterFor,ole={getConstructor:function(e,t,n,r){var o=e((function(l,c){V1(l,i),_T(l,{type:t,index:$1(null),first:void 0,last:void 0,size:0}),Tn||(l.size=0),c!=null&&vh(c,l[r],{that:l,AS_ENTRIES:n})})),i=o.prototype,a=bw(t),u=function(l,c,f){var p,d,m=a(l),v=s(l,c);return v?v.value=f:(m.last=v={index:d=wT(c,!0),key:c,value:f,previous:p=m.last,next:void 0,removed:!1},m.first||(m.first=v),p&&(p.next=v),Tn?m.size++:l.size++,d!=="F"&&(m.index[d]=v)),l},s=function(l,c){var f,p=a(l),d=wT(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return sf(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,Tn?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),p=s(c,l);if(p){var d=p.next,m=p.previous;delete f.index[p.index],p.removed=!0,m&&(m.next=d),d&&(d.previous=m),f.first==p&&(f.first=d),f.last==p&&(f.last=m),Tn?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=al(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(p(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),sf(i,n?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),Tn&&rle(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=bw(t),i=bw(r);w3(e,t,(function(a,u){_T(this,{type:r,target:a,state:o(a),kind:u,last:void 0})}),(function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),P3(t)}};QR("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),ole);var xT=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function CT(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):K.insertNodes(e,t,{mode:"highest"})}var ile=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var o=t.selection;if(o){var i=rt(ee.edges(o),2),a=i[0],u=i[1],s=S.void(t,{at:a.path}),l=S.void(t,{at:u.path});if(!ee.isCollapsed(o)||s){var c=I.toDOMRange(t,o),f=c.cloneContents(),p=f.childNodes[0];if(f.childNodes.forEach((function(x){x.textContent&&x.textContent.trim()!==""&&(p=x)})),l){var d=rt(l,1)[0],m=c.cloneRange(),v=I.toDOMNode(t,d);m.setEndAfter(v),f=m.cloneContents()}if(s&&(p=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach((function(x){var k=x.getAttribute("data-slate-zero-width")==="n";x.textContent=k?"\n":""})),iN(p)){var h=p.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(p),f.appendChild(h),p=h}var y=t.getFragment(),g=JSON.stringify(y),b=window.btoa(encodeURIComponent(g));p.setAttribute("data-slate-fragment",b),r.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",lse(w)),f.ownerDocument.body.removeChild(w),r}}},t.insertData=function(r){var o,i,a=r.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);t.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),p=!1;try{for(var d=uo(f),m=d.next();!m.done;m=d.next()){var v=m.value;p&&K.splitNodes(t,{always:!0}),n(v),p=!0}}catch(h){o={error:h}}finally{try{m&&!m.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}},t},wp=function(e){return e!=null},ale={object:!0,function:!0,undefined:!0},ule=/^\s*class[\s{/}]/,sle=Function.prototype.toString,ST=function(e){return!!(function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch(n){return!1}return!(function(n){if(!(function(r){return!!wp(r)&&hasOwnProperty.call(ale,typeof r)})(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch(r){return!1}})(t)})(e)&&!ule.test(sle.call(e))},N3=function(e){return e!=null},lle=Object.keys,cle=(function(){try{return Object.keys("primitive"),!0}catch(e){return!1}})()?Object.keys:function(e){return lle(N3(e)?Object(e):e)},fle=function(e){if(!N3(e))throw new TypeError("Cannot use null or undefined");return e},dle=Math.max,ET=(function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")})()?Object.assign:function(e,t){var n,r,o,i=dle(arguments.length,2);for(e=Object(fle(e)),o=function(a){try{e[a]=t[a]}catch(u){n||(n=u)}},r=1;r<i;++r)cle(t=arguments[r]).forEach(o);if(n!==void 0)throw n;return e},ple=Array.prototype.forEach,hle=Object.create,gle=function(e,t){var n;for(n in e)t[n]=e[n]},DT=function(e){var t=hle(null);return ple.call(arguments,(function(n){N3(n)&&gle(Object(n),t)})),t},ww="razdwatrzy",vle=String.prototype.indexOf,xd=typeof ww.contains=="function"&&ww.contains("dwa")===!0&&ww.contains("foo")===!1?String.prototype.contains:function(e){return vle.call(this,e,arguments[1])>-1},Av=yg((function(e){var t=e.exports=function(n,r){var o,i,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],wp(n)?(o=xd.call(n,"c"),i=xd.call(n,"e"),a=xd.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?ET(DT(u),s):s};t.gs=function(n,r,o){var i,a,u,s;return typeof n!="string"?(u=o,o=r,r=n,n=null):u=arguments[3],wp(r)?ST(r)?wp(o)?ST(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,wp(n)?(i=xd.call(n,"c"),a=xd.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?ET(DT(u),s):s}})),_w=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},mle=yg((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,p=Object.defineProperty,d=Object.defineProperties,m=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(h,y){var g;return _w(y),m.call(this,"__ee__")?g=this.__ee__:(g=v.value=f(null),p(this,"__ee__",v),v.value=null),g[h]?typeof g[h]=="object"?g[h].push(y):g[h]=[g[h],y]:g[h]=y,this},r=function(h,y){var g,b;return _w(y),b=this,n.call(this,h,g=function(){o.call(b,h,g),l.call(y,this,arguments)}),g.__eeOnceListener__=y,this},o=function(h,y){var g,b,w,x;if(_w(y),!m.call(this,"__ee__"))return this;if(!(g=this.__ee__)[h])return this;if(typeof(b=g[h])=="object")for(x=0;w=b[x];++x)w!==y&&w.__eeOnceListener__!==y||(b.length===2?g[h]=b[x?0:1]:b.splice(x,1));else b!==y&&b.__eeOnceListener__!==y||delete g[h];return this},i=function(h){var y,g,b,w,x;if(m.call(this,"__ee__")&&(w=this.__ee__[h]))if(typeof w=="object"){for(g=arguments.length,x=new Array(g-1),y=1;y<g;++y)x[y-1]=arguments[y];for(w=w.slice(),y=0;b=w[y];++y)l.call(b,this,x)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(g=arguments.length,x=new Array(g-1),y=1;y<g;++y)x[y-1]=arguments[y];l.call(w,this,x)}},a={on:n,once:r,off:o,emit:i},u={on:Av(n),once:Av(r),off:Av(o),emit:Av(i)},s=d({},u),e.exports=t=function(h){return h==null?f(s):d(Object(h),u)},t.methods=a}));function Tv(e){var t=q7.get(e);return t==null&&(t=mle(),q7.set(e,t)),t}var J0=new WeakMap;function kT(e,t){var n=J0.get(e);n==null&&(n=new Set,J0.set(e,n)),n.add(t)}function yle(e){return J0.get(e)||new Set}function ble(e){J0.set(e,new Set)}function $3(e){var t=I.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function U3(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=$3(e);if(r==null)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=I.toDOMRange(e,n).getClientRects()[0];if(s==null)return t;s.width;var l=s.height,c={},f=s.top-o,p=s.left-i;if(p>a/2){var d=a-p;c.right=d+5+"px"}else c.left=p+5+"px";if(f>u/2){var m=u-f;c.bottom=m+5+"px"}else{var v=f+l;v<0&&(v=0),c.top=v+5+"px"}return c}function z3(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var o=we.isElement(t)&&e.isVoid(t),i=we.isElement(t)&&e.isInline(t),a=K0.get(t);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var p=(function(D){var T=[];T.push(D);for(var A=0;T.length>0;){var F=T.pop();if(F==null||++A>1e4)break;var j=F.nodeName;if(F.nodeType===1){var R=j.toLowerCase();if(use.includes(R)||R==="iframe"||R==="video")return F;var U=F.children||[],H=U.length;if(H)for(var G=H-1;G>=0;G--)T.push(U[G])}}return null})(a);if(p!=null){var d=p.getBoundingClientRect();s=d.top,c=d.height}}var m=$3(e);if(m==null)return r;var v,h=m.top,y=m.left,g=m.width,b=m.height,w={},x=s-h,k=l-y;if(n==="bar")return w.left=k+"px",x>40?w.bottom=b-x+5+"px":w.top=x+c+5+"px",w;if(n==="modal")return o?i?k>(g-f)/2?w.right=g-k+5+"px":w.left=k+f+5+"px":w.left="20px":w.left=k+"px",o?((v=x)<0&&(v=0),w.top=v+"px"):x>(b-c)/2?w.bottom=b-x+5+"px":((v=x+c)<0&&(v=0),w.top=v+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function VS(e,t){wo((function(){var n=$3(e);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),p=t.height(),d=l-o,m=c-i,v=t.attr("style");if(v.indexOf("top")>=0&&(r=d+p-u)>0){var h=t.css("top"),y=parseInt(h.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(v.indexOf("bottom")>=0&&l<0){var g=t.css("bottom"),b=parseInt(g.toString())-Math.abs(l);t.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=m+f-a)>0){var w=t.css("left"),x=parseInt(w.toString())-r;x<0&&(x=0),t.css("left",x+"px")}if(v.indexOf("right")>=0&&c<0){var k=t.css("right"),D=parseInt(k.toString())-Math.abs(c);t.css("right",D+"px")}}}))}var wle=U1("slice"),_le=qt("species"),xw=ue.Array,xle=Math.max;Vt({target:"Array",proto:!0,forced:!wle},{slice:function(e,t){var n,r,o,i=zu(this),a=El(i),u=of(e,a),s=of(t===void 0?a:t,a);if(U0(i)&&(n=i.constructor,(N1(n)&&(n===xw||U0(n.prototype))||Tt(n)&&(n=n[_le])===null)&&(n=void 0),n===xw||n===void 0))return fN(i,u,s);for(r=new(n===void 0?xw:n)(xle(s-u,0)),o=0;u<s;u++,o++)u in i&&ph(r,o,i[u]);return r.length=o,r}});var Cle=wg.f,OT=Ce("".startsWith),Sle=Ce("".slice),Ele=Math.min,BN=v3("startsWith"),Dle=!BN&&!!(function(){var e=Cle(String.prototype,"startsWith");return e&&!e.writable})();Vt({target:"String",proto:!0,forced:!Dle&&!BN},{startsWith:function(e){var t=St(bo(this));g3(e);var n=Of(Ele(arguments.length>1?arguments[1]:void 0,t.length)),r=St(e);return OT?OT(t,r,n):Sle(t,n,n+r.length)===r}});var ql=Object.assign,AT=Object.defineProperty,kle=Ce([].concat),TT=!ql||ht((function(){if(Tn&&ql({b:1},ql(AT({},"a",{enumerable:!0,get:function(){AT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(o){t[o]=o})),ql({},e)[n]!=7||Bc(ql({},t)).join("")!=r}))?function(e,t){for(var n=Uu(e),r=arguments.length,o=1,i=UR.f,a=RR.f;r>o;)for(var u,s=R1(arguments[o++]),l=i?kle(Bc(s),i(s)):Bc(s),c=l.length,f=0;c>f;)u=l[f++],Tn&&!st(a,s,u)||(n[u]=s[u]);return n}:ql;Vt({target:"Object",stat:!0,forced:Object.assign!==TT},{assign:TT});var Ole=["props","attrs","style","dataset","on","hook"];function PN(e){var t=e.data,n=t===void 0?{}:t,r=e.children,o=r===void 0?[]:r;Object.keys(n).forEach((function(i){var a,u,s=n[i];if(i!=="key"){if(!Ole.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=Jre(l),(function(c,f){c.data==null&&(c.data={});var p=c.data;p.dataset==null&&(p.dataset={}),Object.assign(p.dataset,f)})(e,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var p=c.data;p.props==null&&(p.props={}),Object.assign(p.props,f)})(e,(u={},u[i]=s,u)),delete n[i]}}else e.key=s})),o.length>0&&o.forEach((function(i){typeof i!="string"&&PN(i)}))}var WS=[],FN={};function Ale(e,t,n){return Be(n.isInline(e)?"span":"div",null,t)}function BT(e,t){return t===void 0&&(t=!1),Be("span",{"data-slate-string":!0},t?e+"\n":e)}function Cw(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),Be("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?Be("br",null):null)}function qS(e,t,n,r){return mh.set(e,t),lf.set(e,n),we.isElement(e)?(function(o,i){var a,u=I.findKey(i,o),s=i.isInline(o),l=S.isVoid(i,o),c=EN(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},p=o.type,d=o.children,m=d===void 0?[]:d,v=(function(x){return FN[x]||Ale})(p);a=l?null:m.map((function(x,k){return qS(x,k,o,i)}));var h=v(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",g=rt(fe.texts(o),1),b=rt(g[0],1)[0],w=Be(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},qS(b,0,o,i));h=Be(y,{style:{position:"relative"}},h,w),mh.set(b,0),lf.set(b,o)}return h.data==null&&(h.data={}),Object.assign(h.data,f),l||s||(h=(function(x,k){var D=k;return WS.forEach((function(T){D=T(x,k)})),D})(o,h)),wo((function(){var x=IS(c);x!=null&&(MS.set(u,x),K0.set(o,x),G0.set(x,o))})),h})(e,r):(function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=I.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=I.findPath(a,o),c=s([o,l]),f=me.decorations(o,c),p=f.map((function(v,h){var y=(function(g,b,w,x,k){b===void 0&&(b=!1);var D=g.text,T=I.findPath(k,w),A=q.parent(T);if(S.isEditor(x))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return k.isVoid(x)?Cw(fe.string(x).length):D!==""||x.children[x.children.length-1]!==w||k.isInline(x)||S.string(k,A)!==""?D===""?Cw():b&&D.slice(-1)==="\n"?BT(D,!0):BT(D):Cw(0,!0)})(v,h===f.length-1,o,i,a);return y=(function(g,b){var w=b;return WS.forEach((function(x){w=x(g,w)})),w})(v,y),Be("span",{"data-slate-leaf":!0},y)})),d=(function(v){return"w-e-text-"+v})(u.id),m=Be("span",{"data-slate-node":"text",id:d,key:u.id},p);return wo((function(){var v=IS(d);v!=null&&(MS.set(u,v),K0.set(o,v),G0.set(v,o))})),m})(e,n,r)}function Tle(e,t){var n,r=e.$scroll,o=(function(v){return"w-e-textarea-"+v})(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=(function(v,h){return h===void 0&&(h=!1),rf("div#"+v,{props:{contentEditable:!h}})})(o,a),l=t.children||[];s.children=l.map((function(v,h){var y=qS(v,h,t,t);return PN(y),y}));var c=H7.get(e);if(c==null&&(c=!0),c){var f=(function(v,h){return N('<div\n id="'+v+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')})(o);r.append(f),e.$textArea=f,n=f[0],(d=wre([xre,Dre,Ore,Cre,Ere,_re]))(n,s),H7.set(e,!1),V7.set(e,d)}else{var p=W7.get(e),d=V7.get(e);if(p==null||d==null)return;n=p.elm,d(p,s)}if(n!=null||(n=IS(o))!=null){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var m=B3(n);m&&oN.set(t,m)}T3.set(t,n),K0.set(t,n),G0.set(n,t),W7.set(e,s)}}function PT(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function FT(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Sw(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return FT(n.overflowY,t)||FT(n.overflowX,t)||(function(r){var o=(function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(a){return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1}function Bv(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function MT(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s=typeof a=="function"?a:function(Me){return Me!==a};if(!PT(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;PT(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&Sw(f)&&!Sw(document.documentElement)||f!=null&&Sw(f,u)&&c.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,h=e.getBoundingClientRect(),y=h.height,g=h.width,b=h.top,w=h.right,x=h.bottom,k=h.left,D=o==="start"||o==="nearest"?b:o==="end"?x:b+y/2,T=i==="center"?k+g/2:i==="end"?w:k,A=[],F=0;F<c.length;F++){var j=c[F],R=j.getBoundingClientRect(),U=R.height,H=R.width,G=R.top,X=R.right,oe=R.bottom,se=R.left;if(r==="if-needed"&&b>=0&&k>=0&&x<=d&&w<=p&&b>=G&&x<=oe&&k>=se&&w<=X)return A;var L=getComputedStyle(j),B=parseInt(L.borderLeftWidth,10),E=parseInt(L.borderTopWidth,10),O=parseInt(L.borderRightWidth,10),M=parseInt(L.borderBottomWidth,10),V=0,Q=0,Z="offsetWidth"in j?j.offsetWidth-j.clientWidth-B-O:0,le="offsetHeight"in j?j.offsetHeight-j.clientHeight-E-M:0;if(l===j)V=o==="start"?D:o==="end"?D-d:o==="nearest"?Bv(v,v+d,d,E,M,v+D,v+D+y,y):D-d/2,Q=i==="start"?T:i==="center"?T-p/2:i==="end"?T-p:Bv(m,m+p,p,B,O,m+T,m+T+g,g),V=Math.max(0,V+v),Q=Math.max(0,Q+m);else{V=o==="start"?D-G-E:o==="end"?D-oe+M+le:o==="nearest"?Bv(G,oe,U,E,M+le,D,D+y,y):D-(G+U/2)+le/2,Q=i==="start"?T-se-B:i==="center"?T-(se+H/2)+Z/2:i==="end"?T-X+O+Z:Bv(se,X,H,B,O+Z,T,T+g,g);var Se=j.scrollLeft,Oe=j.scrollTop;D+=Oe-(V=Math.max(0,Math.min(Oe+V,j.scrollHeight-U+le))),T+=Se-(Q=Math.max(0,Math.min(Se+Q,j.scrollWidth-H+Z)))}A.push({el:j,top:V,left:Q})}return A}function IT(e){return e===Object(e)&&Object.keys(e).length!==0}function no(e,t){return ul(t)&&I.hasDOMNode(e,t,{editable:!0})}function jT(e,t){if(e.getConfig().readOnly)return!1;var n=mc(e,t)&&I.toSlateNode(e,t);return S.isVoid(e,n)}function mc(e,t){return ul(t)&&I.hasDOMNode(e,t)}function MN(e,t,n){n===void 0&&(n=!1);var r=t.selection,o=t.getConfig(),i=I.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a=i.type!=="None";if(r||a){var u=T3.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=I.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&ee.equals(l,r)){var c=!0;if(ee.isCollapsed(r)){var f=i.anchorNode,p=i.anchorOffset;if(f===u){var d=u.childNodes,m=void 0;(m=d[p])&&m.matches("table")&&(c=!1),(m=d[p-1])&&m.matches("table")&&(c=!1)}}if(c)return}}if(!r||I.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&I.toDOMRange(t,r);if(v){ee.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var h=v.startContainer.parentElement;if(!h.closest("[data-slate-spacer]")){h.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(g,b){var w=!g.ownerDocument.documentElement.contains(g);if(IT(b)&&typeof b.behavior=="function")return b.behavior(w?[]:MT(g,b));if(!w){var x=(function(k){return k===!1?{block:"end",inline:"nearest"}:IT(k)?k:{block:"start",inline:"nearest"}})(b);(function(k,D){D===void 0&&(D="auto");var T="scrollBehavior"in document.body.style;k.forEach((function(A){var F=A.el,j=A.top,R=A.left;F.scroll&&T?F.scroll({top:j,left:R,behavior:D}):(F.scrollTop=j,F.scrollLeft=R)}))})(MT(g,x),x.behavior)}})(h,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete h.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){v&&Ip&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=I.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var Ew=new WeakMap,LT=new WeakMap,Ble={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},Ple={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Fle={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Lt=function(e){var t=Ble[e],n=Ple[e],r=Fle[e],o=t&&S2(t),i=n&&S2(n),a=r&&S2(r);return function(u){return!(!o||!o(u))||!!(jS&&i&&i(u))||!(jS||!a||!a(u))}},zt={isBold:Lt("bold"),isCompose:Lt("compose"),isMoveBackward:Lt("moveBackward"),isMoveForward:Lt("moveForward"),isDeleteBackward:Lt("deleteBackward"),isDeleteForward:Lt("deleteForward"),isDeleteLineBackward:Lt("deleteLineBackward"),isDeleteLineForward:Lt("deleteLineForward"),isDeleteWordBackward:Lt("deleteWordBackward"),isDeleteWordForward:Lt("deleteWordForward"),isExtendBackward:Lt("extendBackward"),isExtendForward:Lt("extendForward"),isExtendLineBackward:Lt("extendLineBackward"),isExtendLineForward:Lt("extendLineForward"),isItalic:Lt("italic"),isMoveLineBackward:Lt("moveLineBackward"),isMoveLineForward:Lt("moveLineForward"),isMoveWordBackward:Lt("moveWordBackward"),isMoveWordForward:Lt("moveWordForward"),isRedo:Lt("redo"),isSplitBlock:Lt("splitBlock"),isTransposeCharacter:Lt("transposeCharacter"),isUndo:Lt("undo"),isTab:Lt("tab"),isSelectAll:Lt("selectAll")};function fn(e){e.preventDefault()}var Mle={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(yd&&!o&&no(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=rt(r.getTargetRanges(),1)[0];if(s){var l=I.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&ee.equals(i,l)||K.select(n,l)}}if(i&&ee.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";S.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":S.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":S.deleteForward(n);break;case"deleteContentBackward":S.deleteBackward(n);break;case"deleteEntireSoftLine":S.deleteBackward(n,{unit:"line"}),S.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":S.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":S.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":S.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":S.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":S.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":S.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":S.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!aw.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&S.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&no(n,r.target)){var a=I.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===I.toDOMNode(n,n)||Po(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&ul(u)&&I.hasDOMNode(n,u)){var s=I.toSlateNode(n,u);if(we.isElement(s)&&!n.isVoid(s))return}if(md){var l=a.getSelection();l==null||l.removeAllRanges()}js.delete(n)}}}},focus:function(e,t,n){var r=I.toDOMNode(n,n),o=I.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,Ip&&e.target!==r?r.focus():js.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&mc(n,e.target)&&ul(e.target)){var r=I.toSlateNode(n,e.target),o=I.findPath(n,r);if(S.hasPath(n,o)&&fe.get(n,o)===r){var i=S.start(n,o),a=S.end(n,o),u=S.void(n,{at:i}),s=S.void(n,{at:a});if(u&&s&&q.equals(u[1],s[1])){var l=S.range(n,i);K.select(n,l)}}}},compositionstart:function(e,t,n){if(no(n,e.target)){var r=n.selection;if(r&&ee.isExpanded(r)&&(S.deleteFragment(n),Promise.resolve().then((function(){MN(t,n,!0)}))),r&&ee.isCollapsed(r)){var o=I.toDOMRange(n,r).startContainer,i=o.textContent||"";Ew.set(n,i),LT.set(n,o)}t.isComposing=!0,(function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)})(t,n)}},compositionend:function(e,t,n){var r=e;if(no(n,r.target)){t.isComposing=!1;var o=n.selection;if(o!=null){(LS||Ip)&&I.cleanExposedTexNodeInSelectionBlock(n);for(var i=ee.isBackward(o)?o.focus:o.anchor,a=rt(S.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=rt(S.node(n,i.path.slice(0,u+1)),1)[0];if(we.isElement(s)&&((md||Ip)&&s.type==="link"||s.type==="code")){I.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=I.getLeftLengthOfMaxLength(n);c<l.length?(I.toDOMRange(n,o).startContainer.textContent=Ew.get(n)||"",c>0&&S.insertText(n,l.slice(0,c)),t.changeViewState()):S.insertText(n,l)}else S.insertText(n,l);md||setTimeout((function(){var f=n.selection;if(f!=null){var p=LT.get(n);p!=null&&I.toDOMRange(n,f).startContainer!==p&&(p.textContent=Ew.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){no(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&no(n,r.target)){if((function(a,u){var s=W1.get(a),l=s&&s.getMenus(),c=q0.get(a),f=c&&c.getMenus(),p=ao(ao({},l),f);for(var d in p){var m=p[d],v=m.hotkey;if(v&&toe(v,u)&&!m.isDisabled(a)){var h=m.getValue(a);m.exec(a,h)}}})(n,r),zt.isTab(r))return fn(r),void n.handleTab();if(zt.isRedo(r))return fn(r),void(typeof n.redo=="function"&&n.redo());if(zt.isUndo(r))return fn(r),void(typeof n.undo=="function"&&n.undo());if(zt.isMoveLineBackward(r))return fn(r),void K.move(n,{unit:"line",reverse:!0});if(zt.isMoveLineForward(r))return fn(r),void K.move(n,{unit:"line"});if(zt.isExtendLineBackward(r))return fn(r),void K.move(n,{unit:"line",edge:"focus",reverse:!0});if(zt.isExtendLineForward(r))return fn(r),void K.move(n,{unit:"line",edge:"focus"});if(zt.isMoveBackward(r))return fn(r),void(o&&ee.isCollapsed(o)?K.move(n,{reverse:!0}):K.collapse(n,{edge:"start"}));if(zt.isMoveForward(r))return fn(r),void(o&&ee.isCollapsed(o)?K.move(n):K.collapse(n,{edge:"end"}));if(zt.isMoveWordBackward(r))return fn(r),o&&ee.isExpanded(o)&&K.collapse(n,{edge:"focus"}),void K.move(n,{unit:"word",reverse:!0});if(zt.isMoveWordForward(r))return fn(r),o&&ee.isExpanded(o)&&K.collapse(n,{edge:"focus"}),void K.move(n,{unit:"word"});if(zt.isSelectAll(r))return fn(r),void n.selectAll();if(yd){if((LS||md)&&o&&(zt.isDeleteBackward(r)||zt.isDeleteForward(r))&&ee.isCollapsed(o)){var i=fe.parent(n,o.anchor.path);if(we.isElement(i)&&S.isVoid(n,i)&&S.isInline(n,i))return r.preventDefault(),void K.delete(n,{unit:"block"})}}else{if(zt.isBold(r)||zt.isItalic(r)||zt.isTransposeCharacter(r))return void fn(r);if(zt.isSplitBlock(r))return fn(r),void S.insertBreak(n);if(zt.isDeleteBackward(r))return fn(r),void(o&&ee.isExpanded(o)?S.deleteFragment(n,{direction:"backward"}):S.deleteBackward(n));if(zt.isDeleteForward(r))return fn(r),void(o&&ee.isExpanded(o)?S.deleteFragment(n,{direction:"forward"}):S.deleteForward(n));if(zt.isDeleteLineBackward(r))return fn(r),void(o&&ee.isExpanded(o)?S.deleteFragment(n,{direction:"backward"}):S.deleteBackward(n,{unit:"line"}));if(zt.isDeleteLineForward(r))return fn(r),void(o&&ee.isExpanded(o)?S.deleteFragment(n,{direction:"forward"}):S.deleteForward(n,{unit:"line"}));if(zt.isDeleteWordBackward(r))return fn(r),void(o&&ee.isExpanded(o)?S.deleteFragment(n,{direction:"backward"}):S.deleteBackward(n,{unit:"word"}));if(zt.isDeleteWordForward(r))return fn(r),void(o&&ee.isExpanded(o)?S.deleteFragment(n,{direction:"forward"}):S.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!yd&&!n.getConfig().readOnly&&no(n,e.target)){e.preventDefault();var r=e.key;S.insertText(n,r)}},copy:function(e,t,n){var r=e;if(no(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&no(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(ee.isExpanded(o))S.deleteFragment(n);else{var a=fe.parent(n,o.anchor.path);S.isVoid(n,a)&&K.delete(n)}}},paste:function(e,t,n){aw.set(n,!0);var r=e;if(!n.getConfig().readOnly&&no(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void aw.set(n,!1);if(!yd||(function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1})(r)){r.preventDefault();var i=r.clipboardData;i!=null&&n.insertData(i)}}},dragover:function(e,t,n){if(mc(n,e.target)){var r=I.toSlateNode(n,e.target);S.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(mc(n,r.target)&&!n.getConfig().readOnly){var o=I.toSlateNode(n,r.target),i=I.findPath(n,o);if(S.isVoid(n,o)||S.void(n,{at:i,voids:!0})){var a=S.range(n,i);K.select(n,a)}var u=r.dataTransfer;u!=null&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&mc(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&mc(n,r.target)&&o!=null&&!(yd&&md&&o.files.length>0)){r.preventDefault();var i=n.selection,a=I.findEventRange(n,r);K.select(n,a),t.isDraggingInternally&&(i&&K.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},Ile=1,jle=(function(){function e(t){var n=this;this.id=Ile++,this.$textArea=null,this.$progressBar=N('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=N('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=rl((function(){var a=n.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var p=I.findDocumentOrShadowRoot(s),d=p.activeElement,m=I.toDOMNode(s,s),v=p.getSelection();if(d===m?(u.latestElement=d,js.set(s,!0)):js.delete(s),!v)return K.deselect(s);var h=v.anchorNode,y=v.focusNode,g=no(s,h)||jT(s,h),b=no(s,y)||jT(s,y);if(g&&b){var w=I.toSlateRange(s,v,{exactMatch:!1,suppressThrow:!1});K.select(s,w)}else K.deselect(s)}})(n,a)}),100);var r=N(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var o=N('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=N('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,wo((function(){var a=n.editorInstance,u=I.getWindow(a);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",(function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)})),o.on("click",(function(){return a.hidePanelOrModal()})),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",(function(){return s(a)})),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=BS.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(J4(Mle,(function(i,a){n.on(a,(function(u){i(u,t,o)}))})),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",rl((function(){o.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",(function(){t.latestEditorSelection==null&&n.selection!=null?setTimeout((function(){return i&&i(n)})):t.latestEditorSelection!=null&&n.selection==null&&setTimeout((function(){return o&&o(n)})),t.latestEditorSelection=n.selection}))},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-I.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},e.prototype.changeProgress=function(t){var n=this.$progressBar;n.css("width",t+"%"),t>=100&&setTimeout((function(){n.hide(),n.css("width","0"),n.show()}),1e3)},e.prototype.changeViewState=function(){var t=this,n=this.editorInstance;Tle(this,n),(function(r,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=N('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((i=r.$placeholder)===null||i===void 0||i.hide(),r.showPlaceholder=!1)}})(this,n),wo((function(){MN(t,n)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e})();function H3(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&H3(t)}function V3(){return N('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function IN(){return N('<div class="w-e-bar-divider"></div>')}function jN(e,t,n,r,o){if(o===void 0&&(o=!1),t){if(r){var i=jS?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}D3("match",(function(e,t,n){return[function(r){var o=bo(this),i=r==null?void 0:il(r,e);return i?st(i,r,o):new RegExp(r)[e](St(o))},function(r){var o=an(this),i=St(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return gh(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=gh(o,i))!==null;){var f=St(s[0]);l[c]=f,f===""&&(o.lastIndex=k3(i,Of(o.lastIndex),u)),c++}return c===0?null:l}]}));var W3=(function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=N('<div class="w-e-bar-item"></div>'),this.$button=N('<button type="button"></button>'),this.disabled=!1,this.menu=n;var i=n.tag,a=n.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=n.title,s=n.hotkey,l=s===void 0?"":s,c=n.iconSvg,f=c===void 0?"":c,p=this.$button;if(f){var d=N(f);H3(d),p.append(d)}else p.text(u);jN(p,f,u,l,r),r&&f&&p.append(N('<span class="title">'+u+"</span>")),a&&p.css("width",a+"px"),p.attr("data-menu-key",t),this.$elem.append(p),wo((function(){return o.init()}))}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(n){n.preventDefault(),Rr(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())}))},e.prototype.exec=function(){var t=Rr(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=Rr(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=Rr(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e})(),Lle=(function(e){function t(n,r,o){return o===void 0&&(o=!1),e.call(this,n,r,o)||this}return Tf(t,e),t.prototype.onButtonClick=function(){},t})(W3),q3=(function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=FS.get(t);n==null&&(n=new Set,FS.set(t,n)),n.add(this),Bm.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=Bm.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=Bm.get(this);t&&t.emit("modalOrPanelHide")}},e})(),Rle=(function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=N('<div class="w-e-drop-panel"></div>'),r}return Tf(t,e),t.prototype.genSelfElem=function(){return null},t})(q3),Nle=(function(e){function t(n,r,o){o===void 0&&(o=!1);var i=e.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=V3();i.$button.append(a)}return i}return Tf(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=Rr(this);if(this.dropPanel==null){var o=new Rle(r),i=n.getPanelContentElem(r);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=n.getPanelContentElem(r),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},t})(W3),$le=(function(e){function t(n,r){r===void 0&&(r=0);var o=e.call(this,n)||this;o.type="modal",o.$elem=N('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var i=o.$elem;return i.on("click",(function(a){return a.stopPropagation()})),i.on("keyup",(function(a){a.code==="Escape"&&(o.hide(),n.restoreSelection())})),o}return Tf(t,e),t.prototype.genSelfElem=function(){var n=this,r=N('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),o=Bm.get(this);return r.on("click",(function(){n.hide(),o==null||o.restoreSelection()})),r},t.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},t})(q3);function $r(e,t,n){var r=N('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=N('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function Bf(e,t){var n=N('<div class="button-container"></div>'),r=N('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var Ule=(function(e){function t(n,r,o){o===void 0&&(o=!1);var i=e.call(this,n,r,o)||this;return i.$body=N("body"),i.modal=null,i.menu=r,i}return Tf(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=Rr(this),r=this.menu.getModalPositionNode(n);return we.isElement(r)?z3(n,r,"modal"):U3(n)},t.prototype.handleModal=function(){var n=Rr(this),r=this.menu;if(this.modal==null){var o=new $le(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},t.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=Rr(this),i=this.menu;if(i.getModalContentElem!=null){var a=I.getTextarea(o),u=I.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(n.renderContent(l),s)n.setStyle({left:"0",right:"0"});else{var c=this.getPosition();n.setStyle(c)}r&&(s?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),s||VS(o,n.$elem),setTimeout((function(){o.blur()}))}},t})(W3),zle=(function(e){function t(n,r){var o=e.call(this,n)||this;return o.type="selectList",o.$elem=N('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",(function(i){i.stopPropagation()})),o}return Tf(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=N("<ul></ul>");n.forEach((function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=N('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=N('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(f),c.addClass("selected")}c.append(N('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)})),r.append(o)},t.prototype.genSelfElem=function(){return null},t})(q3),Hle=(function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=N('<div class="w-e-bar-item"></div>'),this.$button=N('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=n.tag,a=n.title,u=n.width,s=n.iconSvg,l=s===void 0?"":s,c=n.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var p=this.$button;u&&p.css("width",u+"px"),p.attr("data-menu-key",t),jN(p,l,a,f,r),this.$elem.append(p),this.menu=n,wo((function(){return o.init()}))}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",(function(n){n.preventDefault(),Rr(t).hidePanelOrModal(),t.trigger()}))},e.prototype.trigger=function(){var t=this,n=Rr(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new zle(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",(function(a){var u=a.target;if(u!=null){a.preventDefault();var s=N(u).attr("data-value");t.onChange(s)}}))}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},e.prototype.onChange=function(t){var n=Rr(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=Rr(this),n=this.menu,r=n.getValue(t),o=(function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var p=u[f];if(p.value===s){c=p.text;break}}return c})(n.getOptions(t),r.toString()),i=this.$button,a=V3();i.empty(),i.text(o),i.append(a)},e.prototype.setDisabled=function(){var t=Rr(this),n=this.menu.isDisabled(t),r=this.$button;(t.selection==null||t.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e})(),RT=(function(){function e(t){this.$elem=N('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=N('<div class="w-e-bar-item-menus-container"></div>'),this.$button=N('<button type="button"></button>');var n=t.key,r=t.iconSvg,o=t.title,i=this.$elem,a=this.$button;if(r){var u=N(r);H3(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=V3();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(t){var n=t.$elem;this.$container.append(n)},e.prototype.observe=function(t){var n=this.$container;t.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,n=this.$container,r=this.$button,o=new MutationObserver((function(){var i=n.find("button"),a=i.length;if(a!==0){var u=0;i.each((function(s){N(s).hasClass("disabled")&&u++})),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),t.observe(o)}}));return o},e})(),NT=new WeakMap;function Rr(e){var t=A3.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function LN(e,t,n){n===void 0&&(n=!1);var r=NT.get(t);if(r)return r;var o=t.tag;if(o==="button"){var i=t.showDropPanel,a=t.showModal;r=i?new Nle(e,t,n):a?new Ule(e,t,n):new Lle(e,t,n)}if(o==="select"&&(r=new Hle(e,t,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return NT.set(t,r),r}function Vle(e,t){var n=e.selection;return n!=null&&!ee.isCollapsed(n)&&!I.getSelectedElems(e).some((function(r){if(e.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0}))&&!!me.isText(t)}var Wle=(function(){function e(){var t=this;this.$elem=N('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=pR((function(){var n=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&t.changeItemsState(),i&&we.isElement(i)&&n&&t.isSamePath(i,t.prevSelectedNode)||(t.hideAndClean(),i!=null&&(t.registerItems(u),t.setPosition(i),t.show()),t.prevSelectedNode=i)}),200),wo((function(){var n=t.getEditorInstance(),r=t.$elem;r.on("mousedown",(function(i){return i.preventDefault()}),{passive:!1}),I.getTextarea(n).$textAreaContainer.append(r),n.on("change",t.changeHoverbarState);var o=t.hideAndClean.bind(t);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-t[0].getBoundingClientRect().bottom<360&&(n=!0),n?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var t=this;wo((function(){t.hoverbarItems.forEach((function(n){n.changeMenuState()}))}))},e.prototype.registerItems=function(t){var n=this,r=this.$elem;t.forEach((function(o){if(o!=="|")n.registerSingleItem(o);else{var i=IN();r.append(i)}}))},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,o=r[t];if(o==null){var i=yh[t];if(i==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=i(),r[t]=o}var a=LN(t,o);this.hoverbarItems.push(a),A3.set(a,n),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),we.isElement(t)){var o=z3(n,t,"bar");return r.css(o),void VS(n,r)}if(me.isText(t))return o=U3(n),r.css(o),void VS(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],i=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,p=l||function(v,h){return I.checkNodeType(h,u)},d=rt(S.nodes(t,{match:function(v){return p(t,v)},universal:!0}),1),m=d[0];if(m!=null)return r=m[0],o=f,"break"};for(var a in n)if(i(a)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},e.prototype.getEditorInstance=function(){var t=PS.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,n=t===void 0?{}:t,r=n.text;return r&&r.match==null&&(r.match=Vle),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=I.findPath(null,t),o=I.findPath(null,n);return q.equals(r,o)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e})();function RN(e,t,n,r){if(mh.set(e,t),lf.set(e,n),we.isElement(e)){var o=e.children;if((o===void 0?[]:o).forEach((function(u,s){return RN(u,s,e,r)})),S.isVoid(r,e)){var i=rt(fe.texts(e),1),a=rt(i[0],1)[0];mh.set(a,0),lf.set(a,e)}}}function qle(e){var t=e.selector,n=t===void 0?"":t,r=e.config,o=r===void 0?{}:r,i=e.content,a=e.html,u=e.plugins,s=u===void 0?[]:u,l=(y=>{var g=y,{apply:b}=g;return g.history={undos:[],redos:[]},g.redo=()=>{var{history:w}=g,{redos:x}=w;if(x.length>0){var k=x[x.length-1];xc.withoutSaving(g,(()=>{S.withoutNormalizing(g,(()=>{for(var D of k)g.apply(D)}))})),w.redos.pop(),w.undos.push(k)}},g.undo=()=>{var{history:w}=g,{undos:x}=w;if(x.length>0){var k=x[x.length-1];xc.withoutSaving(g,(()=>{S.withoutNormalizing(g,(()=>{var D=k.map(Qa.inverse).reverse();for(var T of D)g.apply(T)}))})),w.redos.push(k),w.undos.pop()}},g.apply=w=>{var{operations:x,history:k}=g,{undos:D}=k,T=D[D.length-1],A=T&&T[T.length-1],F=((H,G)=>!(!G||H.type!=="set_selection"||G.type!=="set_selection"))(w,A),j=xc.isSaving(g),R=xc.isMerging(g);if(j==null&&(j=((H,G)=>H.type!=="set_selection"||H.properties!=null&&H.newProperties!=null)(w)),j){if(R==null&&(R=T!=null&&(x.length!==0||((H,G)=>H.type==="set_selection"||!(!G||H.type!=="insert_text"||G.type!=="insert_text"||H.offset!==G.offset+G.text.length||!q.equals(H.path,G.path))||!(!G||H.type!=="remove_text"||G.type!=="remove_text"||H.offset+H.text.length!==G.offset||!q.equals(H.path,G.path)))(w,A)||F)),T&&R)F&&T.pop(),T.push(w);else{var U=[w];D.push(U)}for(;D.length>100;)D.shift();(H=>H.type!=="set_selection")(w)&&(k.redos=[])}b(w)},g})((function(y){var g=y,b=g.insertText,w=g.insertNode,x=g.insertFragment,k=g.dangerouslyInsertHtml;return g.insertText=function(D){if(g.getConfig().maxLength){var T=I.getLeftLengthOfMaxLength(g);T<=0||(T<D.length?b(D.slice(0,T)):b(D))}else b(D)},g.insertNode=function(D){if(g.getConfig().maxLength){var T=I.getLeftLengthOfMaxLength(g);T<=0||T<fe.string(D).length||w(D)}else w(D)},g.insertFragment=function(D){if(g.getConfig().maxLength)if(D.length!==1)D.forEach((function(A){g.insertNode(A)}));else{var T=D[0];if(I.getLeftLengthOfMaxLength(g)<fe.string(T).length)return;x(D)}else x(D)},g.dangerouslyInsertHtml=function(D,T){if(D===void 0&&(D=""),T===void 0&&(T=!1),D)if(g.getConfig().maxLength){var A=I.getLeftLengthOfMaxLength(g);if(!(A<=0)){var F=document.createElement("div");F.innerHTML=D;var j=Array.from(F.childNodes).reduce((function(R,U){var H=U.nodeType,G=U.nodeName;return U?H===gi.TEXT_NODE?R+(U.textContent||""):H===gi.ELEMENT_NODE?xT.has(G.toLowerCase())?R:R+(U.textContent||""):R:R}),"");A<j.length||k(D,T)}}else k(D,T)},g})((function(y){var g=y;return g.on=function(b,w){var x=Tv(g);if(x.on(b,w),b==="destroyed"&&kT(g,w),b!=="destroyed"){var k=function(){return x.off(b,w)};x.on("destroyed",k),kT(g,k)}},g.once=function(b,w){Tv(g).once(b,w)},g.off=function(b,w){Tv(g).off(b,w)},g.emit=function(b){for(var w=[],x=1;x<arguments.length;x++)w[x-1]=arguments[x];var k=Tv(g);k.emit.apply(k,OS([b],rt(w))),b==="destroyed"&&(yle(g).forEach((function(D){return k.off("destroyed",D)})),ble(g))},g})((function(y){var g=y;return g.select=function(b){K.select(g,b)},g.deselect=function(){var b=g.selection,w=I.findDocumentOrShadowRoot(g).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&K.deselect(y)},g.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||K.move(y,{distance:b,unit:"character",reverse:w}))},g.moveReverse=function(b){g.move(b,!0)},g.restoreSelection=function(){var b=iw.get(g);b!=null&&(g.focus(),K.select(g,b))},g.getSelectionPosition=function(){return U3(g)},g.getNodePosition=function(b){return z3(g,b)},g.isSelectedAll=function(){var b=g.selection;if(b==null)return!1;var w=rt(ee.edges(b),2),x=w[0],k=w[1],D=rt(S.edges(g,[]),2),T=D[0],A=D[1];return!(!Ue.equals(x,T)||!Ue.equals(k,A))},g.selectAll=function(){var b=S.start(g,[]),w=S.end(g,[]);K.select(g,{anchor:b,focus:w})},g})((function(y){var g=y,b=g.onChange,w=g.insertText,x=g.apply,k=g.deleteBackward;return g.insertText=function(D){g.getConfig().readOnly||w(D)},g.apply=function(D){var T,A,F,j,R,U,H,G,X=[];switch(D.type){case"insert_text":case"remove_text":case"set_node":try{for(var oe=uo(S.levels(g,{at:D.path})),se=oe.next();!se.done;se=oe.next()){var L=rt(se.value,2),B=L[0],E=L[1],O=I.findKey(g,B);X.push([E,O])}}catch(Ye){T={error:Ye}}finally{try{se&&!se.done&&(A=oe.return)&&A.call(oe)}finally{if(T)throw T.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var M=uo(S.levels(g,{at:q.parent(D.path)})),V=M.next();!V.done;V=M.next()){var Q=rt(V.value,2);B=Q[0],E=Q[1],O=I.findKey(g,B),X.push([E,O])}}catch(Ye){F={error:Ye}}finally{try{V&&!V.done&&(j=M.return)&&j.call(M)}finally{if(F)throw F.error}}break;case"move_node":try{for(var Z=uo(S.levels(g,{at:q.common(q.parent(D.path),q.parent(D.newPath))})),le=Z.next();!le.done;le=Z.next()){var Se=rt(le.value,2);B=Se[0],E=Se[1],O=I.findKey(g,B),X.push([E,O])}}catch(Ye){R={error:Ye}}finally{try{le&&!le.done&&(U=Z.return)&&U.call(Z)}finally{if(R)throw R.error}}}x(D);try{for(var Oe=uo(X),Me=Oe.next();!Me.done;Me=Oe.next()){var ne=rt(Me.value,2);E=ne[0],O=ne[1],B=rt(S.node(g,E),1)[0],Pm.set(B,O)}}catch(Ye){H={error:Ye}}finally{try{Me&&!Me.done&&(G=Oe.return)&&G.call(Oe)}finally{if(H)throw H.error}}},g.deleteBackward=function(D){if(D!=="line")return k(D);if(y.selection&&ee.isCollapsed(y.selection)){var T=S.above(y,{match:function(R){return S.isBlock(y,R)},at:y.selection});if(T){var A=rt(T,2)[1],F=S.range(y,A,y.selection.anchor),j=(function(R,U){var H=S.range(R,ee.end(U)),G=Array.from(S.positions(R,{at:U})),X=0,oe=G.length,se=Math.floor(oe/2);if(pT(R,S.range(R,G[X]),H))return S.range(R,G[X],H);if(G.length<2)return S.range(R,G[G.length-1],H);for(;se!==G.length&&se!==X;)pT(R,S.range(R,G[se]),H)?oe=se:X=se,se=Math.floor((X+oe)/2);return S.range(R,G[oe],H)})(g,F);ee.isCollapsed(j)||K.delete(y,{at:j})}}},g.onChange=function(){var D=g.selection;D!=null&&iw.set(g,D),g.emit("change"),b()},g.handleTab=function(){g.insertText(" ")},g.getHtml=function(){var D=g.children;return(D===void 0?[]:D).map((function(T){return SN(T,g)})).join("")},g.getText=function(){var D=g.children;return(D===void 0?[]:D).map((function(T){return fe.string(T)})).join("\n")},g.getSelectionText=function(){var D=g.selection;return D==null?"":S.string(y,D)},g.getElemsByType=function(D,T){var A,F;T===void 0&&(T=!1);var j=[],R=S.nodes(g,{at:[],universal:!0});try{for(var U=uo(R),H=U.next();!H.done;H=U.next()){var G=rt(H.value,1)[0];if(we.isElement(G)&&(T?G.type.indexOf(D)>=0:G.type===D)){var X=EN(I.findKey(g,G).id);j.push(ao(ao({},G),{id:X}))}}}catch(oe){A={error:oe}}finally{try{H&&!H.done&&(F=U.return)&&F.call(U)}finally{if(A)throw A.error}}return j},g.getElemsByTypePrefix=function(D){return g.getElemsByType(D,!0)},g.isEmpty=function(){var D=g.children,T=D===void 0?[]:D;if(T.length>1)return!1;var A=T[0];if(A==null)return!0;if(we.isElement(A)&&A.type==="paragraph"){var F=A.children,j=F===void 0?[]:F;if(j.length>1)return!1;var R=j[0];if(R==null||me.isText(R)&&R.text==="")return!0}return!1},g.clear=function(){K.delete(g,{at:{anchor:S.start(g,[]),focus:S.end(g,[])}}),g.children.length===0&&K.insertNodes(g,[{type:"paragraph",children:[{text:""}]}])},g.getParentNode=function(D){return I.getParentNode(g,D)},g.dangerouslyInsertHtml=function(D,T){if(D===void 0&&(D=""),T===void 0&&(T=!1),D){var A=document.createElement("div");A.innerHTML=D;var F=Array.from(A.childNodes);if(F=F.filter((function(H){var G=H.nodeType,X=H.nodeName;return G===gi.TEXT_NODE||G===gi.ELEMENT_NODE&&!xT.has(X.toLowerCase())})),F.length!==0){var j=g.selection;if(j!=null){var R=null;I.isSelectedEmptyParagraph(g)&&!T&&(R=[j.focus.path[0]]),A.setAttribute("hidden","true"),document.body.appendChild(A);var U=0;F.forEach((function(H){var G=H.nodeType,X=H.nodeName,oe=H.textContent,se=oe===void 0?"":oe;if(G!==gi.TEXT_NODE)if(X!=="BR"){var L=H,B=!1;if(DN.includes(X.toLowerCase()))B=!0;else for(var E in Z0)if(L.matches(E)){B=!0;break}if(B){var O=R3(N(L),g);return Array.isArray(O)?(O.forEach((function(V){return CT(g,V)})),U++):(CT(g,O),U++),void(I.isSelectedVoidNode(g)&&g.move(1))}var M=window.getComputedStyle(L).display;I.isSelectedEmptyParagraph(g)||M.indexOf("inline")<0&&g.insertBreak(),g.dangerouslyInsertHtml(L.innerHTML,!0)}else g.insertText("\n");else{if(!se||!se.trim())return;g.insertNode({text:se})}})),U&&R&&I.isEmptyPath(g,R)&&K.removeNodes(g,{at:R}),A.remove()}}}},g.setHtml=function(D){D===void 0&&(D="");var T=g.isDisabled(),A=g.isFocused(),F=JSON.stringify(g.selection);g.enable(),g.focus(),g.clear();var j=bT(g,D);if(K.insertFragment(g,j),A||(g.deselect(),g.blur()),T&&(g.deselect(),g.disable()),g.isFocused())try{g.select(JSON.parse(F))}catch(R){g.select(S.start(g,[]))}},g})((function(y){var g=y;return g.getAllMenuKeys=function(){var b=[];for(var w in yh)b.push(w);return b},g.getConfig=function(){var b=z7.get(g);if(b==null)throw new Error("Can not get editor config");return b},g.getMenuConfig=function(b){var w=g.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},g.alert=function(b,w){w===void 0&&(w="info");var x=g.getConfig().customAlert;x&&x(b,w)},g})((function(y){var g=ile(Ote());return g.id="wangEditor-"+dse++,g.isDestroyed=!1,g.isFullScreen=!1,g.focus=function(b){if(I.toDOMNode(g,g).focus({preventScroll:!0}),js.set(g,!0),b){var w=S.end(g,[]);K.select(g,w)}else{var x=iw.get(g);x?K.select(g,x):K.select(g,S.start(g,[]))}},g.isFocused=function(){return!!js.get(g)},g.blur=function(){I.toDOMNode(g,g).blur(),K.deselect(g),js.set(g,!1)},g.updateView=function(){I.getTextarea(g).changeViewState();var b=I.getToolbar(g);b&&b.changeToolbarState();var w=I.getHoverbar(g);w&&w.changeHoverbarState()},g.destroy=function(){if(!g.isDestroyed){var b=I.getTextarea(g);b.destroy(),TS.delete(g),BS.delete(b);var w=I.getToolbar(g);w&&(w.destroy(),W1.delete(g),O3.delete(w));var x=I.getHoverbar(g);x&&(x.destroy(),q0.delete(g),PS.delete(x)),g.isDestroyed=!0,g.emit("destroyed")}},g.scrollToElem=function(b){if(!g.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+="\nYou has disabled editor scroll, please do this yourself",void console.warn(w)}var x=N("#"+b);if(x.length!==0){var k=x[0];if(!I.hasDOMNode(g,k))return w="Element (found by id is '"+b+"') is not in editor DOM",w+="\n 通过 id '"+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,k);var D=I.getTextarea(g),T=D.$textAreaContainer,A=D.$scroll,F=x.offset().top,j=T.offset().top;A[0].scrollBy({top:F-j,behavior:"smooth"})}},g.showProgressBar=function(b){b<1||I.getTextarea(g).changeProgress(b)},g.hidePanelOrModal=function(){var b=FS.get(g);b!=null&&b.forEach((function(w){return w.hide()}))},g.enable=function(){g.getConfig().readOnly=!1,g.updateView()},g.disable=function(){g.getConfig().readOnly=!0,g.updateView()},g.isDisabled=function(){return g.getConfig().readOnly},g.toDOMNode=function(b){return I.toDOMNode(g,b)},g.fullScreen=function(){if(!g.isFullScreen){var b=null,w=I.getToolbar(g);w&&(b=w.$box);var x=I.getTextarea(g).$box.parent();if(b&&b.parent()[0]!==x[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");x.addClass("w-e-full-screen-container");var k=x.css("z-index");x.attr("data-z-index",k.toString()),g.isFullScreen=!0,g.emit("fullScreen")}},g.unFullScreen=function(){if(g.isFullScreen){var b=I.getTextarea(g).$box.parent();setTimeout((function(){b.removeClass("w-e-full-screen-container"),g.isFullScreen=!1,g.emit("unFullScreen")}),200)}},g.getEditableContainer=function(){return I.getTextarea(g).$textAreaContainer[0]},g})()))))));if(n&&(function(y,g){return TN(y,"data-w-e-textarea",g)})(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=(function(y){y===void 0&&(y={});var g=hR(sN),b={},w=y.MENU_CONF,x=w===void 0?{}:w;return J4(g,(function(k,D){b[D]=ao(ao({},k),x[D]||{})})),delete y.MENU_CONF,ao({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(k,D){window.alert(D+":\n"+k)}},y)})(o);z7.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach((function(y){l=y(l)})),a!=null&&(l.children=bT(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),I.normalizeContent(l),n){var d=new jle(n);TS.set(l,d),BS.set(d,l),d.changeViewState(),wo((function(){var y=d.$scroll;y!=null&&y.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",y)}));var m=void 0;Object.keys(p).length>0&&(m=new Wle,PS.set(m,l),q0.set(l,m)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(y,g){return RN(y,g,l,l)}));var v=c.onCreated,h=c.onDestroyed;return v&&l.on("created",(function(){return v(l)})),h&&l.on("destroyed",(function(){return h(l)})),wo((function(){return l.emit("created")})),l}var Gle=U1("splice"),Kle=ue.TypeError,Xle=Math.max,Yle=Math.min;Vt({target:"Array",proto:!0,forced:!Gle},{splice:function(e,t){var n,r,o,i,a,u,s=Uu(this),l=El(s),c=of(e,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=Yle(Xle(bg(t),0),l-c)),l+n-r>9007199254740991)throw Kle("Maximum allowed length exceeded");for(o=IR(s,r),i=0;i<r;i++)(a=c+i)in s&&ph(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var Zle=(function(){function e(t,n){var r=this;this.$toolbar=N('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=pR((function(){r.toolbarItems.forEach((function(a){a.changeMenuState()}))}),200),this.config=n;var o=N(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",(function(a){return a.preventDefault()}),{passive:!1}),o.append(i),wo((function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=hR(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach((function(m,v){f.splice(s.index+v,0,m)})));var p=f.filter((function(m){if(typeof m=="string"){if(c.includes(m))return!1}else if(c.includes(m.key))return!1;return!0})),d=p.length;p.forEach((function(m,v){if(m==="|"){if(v===0||v+1===d||n==="|")return;var h=IN();return r.append(h),void(n=m)}if(typeof m=="string")return t.registerSingleItem(m,t),void(n=m);t.registerGroup(m),n="group"}))},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,o=(function(l){return new RT(l)})(t),i=t.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach((function(l){s.includes(l)||n.registerSingleItem(l,o)})),r.append(o.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),o=n instanceof RT,i=this.menus,a=i[t];if(a==null){var u=yh[t];if(u==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=u(),i[t]=a}else console.warn("Duplicated toolbar menu key '"+t+"'\n重复注册了菜单栏 menu '"+t+"'");var s=LN(t,a,o);this.toolbarItems.push(s),A3.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var t=O3.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e})(),Jle=kf.EXISTS,Qle=ti.f,NN=Function.prototype,ece=Ce(NN.toString),$N=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,tce=Ce($N.exec);function UN(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,o=r===void 0?"":r,i=e.maxFileSize,a=i===void 0?10485760:i,u=e.maxNumberOfFiles,s=u===void 0?100:u,l=e.meta,c=l===void 0?{}:l,f=e.metaWithUrl,p=f!==void 0&&f,d=e.headers,m=d===void 0?{}:d,v=e.withCredentials,h=v!==void 0&&v,y=e.timeout,g=y===void 0?1e4:y,b=e.onBeforeUpload,w=b===void 0?function(U){return U}:b,x=e.onSuccess,k=x===void 0?function(U,H){}:x,D=e.onError,T=D===void 0?function(U,H,G){console.error(U.name+" upload error",H,G)}:D,A=e.onProgress,F=A===void 0?function(U){}:A;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var j=n;p&&(j=(function(U,H){var G=rt(U.split("#"),2),X=G[0],oe=G[1],se=[];J4(H,(function(B,E){se.push(E+"="+B)}));var L=se.join("&");return X=X.indexOf("?")>0?X+"&"+L:X+"?"+L,oe?X+"#"+oe:X})(j,c));var R=new mp({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(Die,{endpoint:j,headers:m,formData:!0,fieldName:o,bundle:!0,withCredentials:h,timeout:g});return R.on("upload-success",(function(U,H){var G=H.body,X=G===void 0?{}:G;try{k(U,X)}catch(oe){console.error("wangEditor upload file - onSuccess error",oe)}R.removeFile(U.id)})),R.on("progress",(function(U){U<1||F(U)})),R.on("upload-error",(function(U,H,G){try{T(U,H,G)}catch(X){console.error("wangEditor upload file - onError error",X)}R.removeFile(U.id)})),R.on("restriction-failed",(function(U,H){try{T(U,H)}catch(G){console.error("wangEditor upload file - onError error",G)}R.removeFile(U.id)})),R}function su(e){return su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},su(e)}function nce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach((function(o){nce(e,o,n[o])}))}return e}function ma(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ya(e,t,n){return t&&$T(e.prototype,t),n&&$T(e,n),e}function sl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wh(e,t){if(t&&(su(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sl(e)}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},cf(e)}function GS(e,t){return GS=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},GS(e,t)}function q1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&GS(e,t)}Tn&&!Jle&&Qle(NN,"name",{configurable:!0,get:function(){try{return tce($N,ece(this))[1]}catch(e){return""}}});var rce={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},ra=new((function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ma(this,e),this.init(t,n)}return ya(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||rce,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},{key:"create",value:function(t){return new e(this.logger,dn({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e})()),ku=(function(){function e(){ma(this,e),this.observers={}}return ya(e,[{key:"on",value:function(t,n){var r=this;return t.split(" ").forEach((function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)})),this}},{key:"off",value:function(t,n){this.observers[t]&&(n?this.observers[t]=this.observers[t].filter((function(r){return r!==n})):delete this.observers[t])}},{key:"emit",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach((function(u){u.apply(void 0,r)}))}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach((function(u){u.apply(u,[t].concat(r))}))}}}]),e})();function Cd(){var e,t,n=new Promise((function(r,o){e=r,t=o}));return n.resolve=e,n.reject=t,n}function UT(e){return e==null?"":""+e}function oce(e,t,n){e.forEach((function(r){t[r]&&(n[r]=t[r])}))}function G3(e,t,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function zT(e,t,n){var r=G3(e,t,Object);r.obj[r.k]=n}function Q0(e,t){var n=G3(e,t),r=n.obj,o=n.k;if(r)return r[o]}function HT(e,t,n){var r=Q0(e,n);return r!==void 0?r:Q0(t,n)}function zN(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):zN(e[r],t[r],n):e[r]=t[r]);return e}function Gl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ice={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ace(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,(function(t){return ice[t]})):e}var G1=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function HN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];s===void 0&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=r.slice(i+a).join(n);return l?HN(s,l,n):void 0}o=o[r[i]]}return o}}var uce=(function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ma(this,t),r=wh(this,cf(t).call(this)),G1&&ku.call(sl(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return q1(t,ku),ya(t,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(s=n.split("."));var l=Q0(this.data,s);return l||!u||typeof o!="string"?l:HN(this.data&&this.data[n]&&this.data[n][r],o,a)}},{key:"addResource",value:function(n,r,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[n,r];o&&(s=s.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(i=r,r=(s=n.split("."))[1]),this.addNamespaces(r),zT(this.data,s,i),a.silent||this.emit("added",n,r,o,i)}},{key:"addResources",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(n,r,a,o[a],{silent:!0});i.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[n,r];n.indexOf(".")>-1&&(i=o,o=r,r=(s=n.split("."))[1]),this.addNamespaces(r);var l=Q0(this.data,s)||{};i?zN(l,o,a):l=dn({},l,o),zT(this.data,s,l),u.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?dn({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t})(),VN={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(a){i.processors[a]&&(t=i.processors[a].process(t,n,r,o))})),t}},VT={},WT=(function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ma(this,t),r=wh(this,cf(t).call(this)),G1&&ku.call(sl(r)),oce(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,sl(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=ra.create("translator"),r}return q1(t,ku),ya(t,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(su(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],r),s=u.key,l=u.namespaces,c=l[l.length-1],f=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){var d=r.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var m=this.resolve(n,r),v=m&&m.res,h=m&&m.usedKey||s,y=m&&m.exactUsedKey||s,g=Object.prototype.toString.apply(v),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,k=typeof v!="string"&&typeof v!="boolean"&&typeof v!="number";if(x&&v&&k&&b.indexOf(g)<0&&(typeof w!="string"||g!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,v,dn({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var D=g==="[object Array]",T=D?[]:{},A=D?y:h;for(var F in v)if(Object.prototype.hasOwnProperty.call(v,F)){var j="".concat(A).concat(a).concat(F);T[F]=this.translate(j,dn({},r,{joinArrays:!1,ns:l})),T[F]===j&&(T[F]=v[F])}v=T}}else if(x&&typeof w=="string"&&g==="[object Array]")(v=v.join(w))&&(v=this.extendTranslation(v,n,r,o));else{var R=!1,U=!1,H=r.count!==void 0&&typeof r.count!="string",G=t.hasDefaultValue(r),X=H?this.pluralResolver.getSuffix(f,r.count):"",oe=r["defaultValue".concat(X)]||r.defaultValue;!this.isValidLookup(v)&&G&&(R=!0,v=oe),this.isValidLookup(v)||(U=!0,v=s);var se=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,L=se&&U?void 0:v,B=G&&oe!==v&&this.options.updateMissing;if(U||R||B){if(this.logger.log(B?"updateKey":"missingKey",f,c,s,B?oe:v),a){var E=this.resolve(s,dn({},r,{keySeparator:!1}));E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var O=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&M&&M[0])for(var V=0;V<M.length;V++)O.push(M[V]);else this.options.saveMissingTo==="all"?O=this.languageUtils.toResolveHierarchy(r.lng||this.language):O.push(r.lng||this.language);var Q=function(Z,le,Se){i.options.missingKeyHandler?i.options.missingKeyHandler(Z,c,le,B?Se:L,B,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(Z,c,le,B?Se:L,B,r),i.emit("missingKey",Z,c,le,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?O.forEach((function(Z){i.pluralResolver.getSuffixes(Z).forEach((function(le){Q([Z],s+le,r["defaultValue".concat(le)]||oe)}))})):Q(O,s,oe))}v=this.extendTranslation(v,n,r,m,o),U&&v===s&&this.options.appendNamespaceToMissingKey&&(v="".concat(c,":").concat(s)),(U||R)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(v))}return v}},{key:"extendTranslation",value:function(n,r,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(dn({},o,{interpolation:dn({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=n.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=dn({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),l){var p=n.match(this.interpolator.nestingRegexp);s<(p&&p.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,(function(){for(var v=arguments.length,h=new Array(v),y=0;y<v;y++)h[y]=arguments[y];return a&&a[0]===h[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(h[0]," in key: ").concat(r[0])),null):u.translate.apply(u,h.concat([r]))}),o)),o.interpolation&&this.interpolator.reset()}var d=o.postProcess||this.options.postProcess,m=typeof d=="string"?[d]:d;return n!=null&&m&&m.length&&o.applyPostProcessor!==!1&&(n=VN.handle(m,n,r,this.options&&this.options.postProcessPassResolved?dn({i18nResolved:i},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach((function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),p=f.key;o=p;var d=f.namespaces;s.options.fallbackNS&&(d=d.concat(s.options.fallbackNS));var m=l.count!==void 0&&typeof l.count!="string",v=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",h=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);d.forEach((function(y){s.isValidLookup(r)||(u=y,!VT["".concat(h[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(VT["".concat(h[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(g){if(!s.isValidLookup(r)){a=g;var b,w,x=p,k=[x];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(k,p,g,y,l):(m&&(b=s.pluralResolver.getSuffix(g,l.count)),m&&v&&k.push(x+b),v&&k.push(x+="".concat(s.options.contextSeparator).concat(l.context)),m&&k.push(x+=b));w=k.pop();)s.isValidLookup(r)||(i=w,r=s.getResource(g,y,w,l))}})))}))}})),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,i):this.resourceStore.getResource(n,r,o,i)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),t})();function Dw(e){return e.charAt(0).toUpperCase()+e.slice(1)}var sce=(function(){function e(t){ma(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ra.create("languageUtils")}return ya(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(o){return o.toLowerCase()})):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Dw(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Dw(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Dw(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var n,r=this;return t?(t.forEach((function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}})),!n&&this.options.supportedLngs&&t.forEach((function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find((function(a){if(a.indexOf(i)===0)return a}))}})),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],a=function(u){u&&(r.isSupportedCode(u)?i.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),o.forEach((function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))})),i}}]),e})(),lce=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],cce={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function fce(){var e={};return lce.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:cce[t.fc]}}))})),e}var dce=(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ma(this,e),this.languageUtils=t,this.options=n,this.logger=ra.create("pluralResolver"),this.rules=fce()}return ya(e,[{key:"addRule",value:function(t,n){this.rules[t]=n}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,n){return this.getSuffixes(t).map((function(r){return n+r}))}},{key:"getSuffixes",value:function(t){var n=this,r=this.getRule(t);return r?r.numbers.map((function(o){return n.getSuffix(t,o)})):[]}},{key:"getSuffix",value:function(t,n){var r=this,o=this.getRule(t);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e})(),pce=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ma(this,e),this.logger=ra.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return ya(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=n.escape!==void 0?n.escape:ace,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?Gl(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Gl(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Gl(n.nestingPrefix):n.nestingPrefixEscaped||Gl("$t("),this.nestingSuffix=n.nestingSuffix?Gl(n.nestingSuffix):n.nestingSuffixEscaped||Gl(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(v){return v.replace(/\$/g,"$$$$")}var f=function(v){if(v.indexOf(s.formatSeparator)<0){var h=HT(n,l,v);return s.alwaysFormat?s.format(h,void 0,r,dn({},o,n,{interpolationkey:v})):h}var y=v.split(s.formatSeparator),g=y.shift().trim(),b=y.join(s.formatSeparator).trim();return s.format(HT(n,l,g),b,r,dn({},o,n,{interpolationkey:g}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,m=[{regex:this.regexpUnescape,safeValue:function(v){return c(v)}},{regex:this.regexp,safeValue:function(v){return s.escapeValue?c(s.escape(v)):c(v)}}];return m.forEach((function(v){for(u=0;i=v.regex.exec(t);){if((a=f(i[1].trim()))===void 0)if(typeof p=="function"){var h=p(t,i,o);a=typeof h=="string"?h:""}else{if(d){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=UT(a));var y=v.safeValue(a);if(t=t.replace(i[0],y),d?(v.regex.lastIndex+=y.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,++u>=s.maxReplaces)break}})),t}},{key:"nest",value:function(t,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=dn({},a);function s(p,d){var m=this.nestingOptionsSeparator;if(p.indexOf(m)<0)return p;var v=p.split(new RegExp("".concat(m,"[ ]*{"))),h="{".concat(v[1]);p=v[0],h=(h=this.interpolate(h,u)).replace(/'/g,'"');try{u=JSON.parse(h),d&&(u=dn({},d,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),y),"".concat(p).concat(m).concat(h)}return delete u.defaultValue,p}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(t);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map((function(p){return p.trim()}));r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=UT(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),o=""),c&&(o=l.reduce((function(p,d){return i.format(p,d,a.lng,dn({},a,{interpolationkey:r[1].trim()}))}),o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}}]),e})(),hce=(function(e){function t(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ma(this,t),i=wh(this,cf(t).call(this)),G1&&ku.call(sl(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=ra.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return q1(t,ku),ya(t,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach((function(f){var p=!0;r.forEach((function(d){var m="".concat(f,"|").concat(d);!o.reload&&a.store.hasResourceBundle(f,d)?a.state[m]=2:a.state[m]<0||(a.state[m]===1?s.indexOf(m)<0&&s.push(m):(a.state[m]=1,p=!1,s.indexOf(m)<0&&s.push(m),u.indexOf(m)<0&&u.push(m),c.indexOf(d)<0&&c.push(d)))})),p||l.push(f)})),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(n,r,o){var i=n.split("|"),a=i[0],u=i[1];r&&this.emit("failedLoading",a,u,r),o&&this.store.addResourceBundle(a,u,o),this.state[n]=r?-1:2;var s={};this.queue.forEach((function(l){(function(c,f,p,d){var m=G3(c,f,Object),v=m.obj,h=m.k;v[h]=v[h]||[],v[h].push(p)})(l.loaded,[a],u),(function(c,f){for(var p=c.indexOf(f);p!==-1;)c.splice(p,1),p=c.indexOf(f)})(l.pending,n),r&&l.errors.push(r),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach((function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach((function(f){s[c].indexOf(f)<0&&s[c].push(f)}))})),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((function(l){return!l.done}))}},{key:"read",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,(function(l,c){l&&c&&a<5?setTimeout((function(){i.read.call(i,n,r,o,a+1,2*u,s)}),u):s(l,c)})):s(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var u=this.queueLoad(n,r,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach((function(s){o.loadOne(s)}))}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=n.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,(function(s,l){s&&r.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&r.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),r.loaded(n,s,l)}))}},{key:"saveMissing",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,i,null,dn({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),t})();function gce(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(su(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),su(e[2])==="object"||su(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach((function(r){t[r]=n[r]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function qT(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Pv(){}var vce=(function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ma(this,t),n=wh(this,cf(t).call(this)),G1&&ku.call(sl(n)),n.options=qT(r),n.services={},n.logger=ra,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),wh(n,sl(n));setTimeout((function(){n.init(r,o)}),0)}return n}return q1(t,ku),ya(t,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(d){return d?typeof d=="function"?new d:d:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=dn({},gce(),this.options,qT(r)),this.format=this.options.interpolation.format,o||(o=Pv),!this.options.isClone){this.modules.logger?ra.init(i(this.modules.logger),this.options):ra.init(null,this.options);var a=new sce(this.options);this.store=new uce(this.options.resources,this.options);var u=this.services;u.logger=ra,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new dce(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new pce(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new hce(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",(function(d){for(var m=arguments.length,v=new Array(m>1?m-1:0),h=1;h<m;h++)v[h-1]=arguments[h];n.emit.apply(n,[d].concat(v))})),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new WT(this.services,this.options),this.translator.on("*",(function(d){for(var m=arguments.length,v=new Array(m>1?m-1:0),h=1;h<m;h++)v[h-1]=arguments[h];n.emit.apply(n,[d].concat(v))})),this.modules.external.forEach((function(d){d.init&&d.init(n)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach((function(d){n[d]=function(){var m;return(m=n.store)[d].apply(m,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(d){n[d]=function(){var m;return(m=n.store)[d].apply(m,arguments),n}}));var f=Cd(),p=function(){var d=function(m,v){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),f.resolve(v),o(m,v)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return d(null,n.t.bind(n));n.changeLanguage(n.options.lng,d)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pv,i=o,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&r.services.languageUtils.toResolveHierarchy(c).forEach((function(f){u.indexOf(f)<0&&u.push(f)}))};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(c){return s(c)}))}this.options.preload&&this.options.preload.forEach((function(c){return s(c)})),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(n,r,o){var i=Cd();return n||(n=this.languages),r||(r=this.options.ns),o||(o=Pv),this.services.backendConnector.reload(n,r,(function(a){i.resolve(),o(a)})),i}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&VN.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var i=Cd();this.emit("languageChanging",n);var a=function(u){n||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,(function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve((function(){return o.t.apply(o,arguments)})),r&&r(c,(function(){return o.t.apply(o,arguments)}))})(l,s)}))};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(n,r,o){var i=this,a=function u(s,l){var c;if(su(l)!=="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),d=2;d<f;d++)p[d-2]=arguments[d];c=i.options.overloadTranslationOptionHandler([s,l].concat(p))}else c=dn({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var m=i.options.keySeparator||".",v=o?"".concat(o).concat(m).concat(s):s;return i.t(v,c)};return typeof n=="string"?a.lng=n:a.lngs=n,a.ns=r,a.keyPrefix=o,a}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var p=r.services.backendConnector.state["".concat(c,"|").concat(f)];return p===-1||p===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||!(!s(i,n)||a&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,i=Cd();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach((function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)})),this.loadResources((function(a){i.resolve(),r&&r(a)})),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=Cd();typeof n=="string"&&(n=[n]);var i=this.options.preload||[],a=n.filter((function(u){return i.indexOf(u)<0}));return a.length?(this.options.preload=i.concat(a),this.loadResources((function(u){o.resolve(),r&&r(u)})),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pv,i=dn({},this.options,r,{isClone:!0}),a=new t(i),u=["store","services","language"];return u.forEach((function(s){a[s]=n[s]})),a.services=dn({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new WT(a.services,a.options),a.translator.on("*",(function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))})),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t})(),_h=new vce;function Or(e,t){_h.addResourceBundle(e,"translation",t,!0,!0)}function mce(e){_h.changeLanguage(e)}_h.init({lng:"zh-CN",resources:{}});var de=_h.t.bind(_h);Or("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Or("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var yce=L4?{}.toString:function(){return"[object "+D1(this)+"]"};L4||el(Object.prototype,"toString",yce,{unsafe:!0});var GT=Array.isArray||function(e){return Ts(e)=="Array"},WN=function(){},bce=[],qN=cg("Reflect","construct"),K3=/^\s*(?:class|function)\b/,wce=_t(K3.exec),_ce=!K3.exec(WN),Sd=function(e){if(!En(e))return!1;try{return qN(WN,bce,e),!0}catch(t){return!1}},xce=!qN||Mn((function(){var e;return Sd(Sd.call)||!Sd(Object)||!Sd((function(){e=!0}))||e}))?function(e){if(!En(e))return!1;switch(D1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return _ce||!!wce(K3,P4(e))}:Sd,Cce=pr("species"),KT=Fe.Array,Sce=function(e,t){return new((function(n){var r;return GT(n)&&(r=n.constructor,(xce(r)&&(r===KT||GT(r.prototype))||vi(r)&&(r=r[Cce])===null)&&(r=void 0)),r===void 0?KT:r})(e))(t===0?0:t)},XT=_t([].push),Ece=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=O4(s),v=sL(m),h=_L(l,c),y=E1(v),g=0,b=f||Sce,w=t?b(s,y):n||a?b(s,0):void 0;y>g;g++)if((u||g in v)&&(d=h(p=v[g],g,m),e))if(t)w[g]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:XT(w,p)}else switch(e){case 4:return!1;case 7:XT(w,p)}return i?-1:r||o?o:w}},Dce={forEach:Ece(0)}.forEach,kce=(function(e,t){var n=[][e];return!!n&&Mn((function(){n.call(null,t||function(){throw 1},1)}))})("forEach"),kw=kce?[].forEach:function(e){return Dce(this,e,arguments.length>1?arguments[1]:void 0)},GN=function(e){if(e&&e.forEach!==kw)try{wr(e,"forEach",kw)}catch(t){e.forEach=kw}};for(var Ow in b0)b0[Ow]&&GN(Fe[Ow]&&Fe[Ow].prototype);GN(SL),Or("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),Or("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var Oce={type:"paragraph",renderElem:function(e,t,n){return Be("p",null,t)}},ey=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K1(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ma,Fm,Fv=function(e){return e&&e.Math==Math&&e},Le=Fv(typeof globalThis=="object"&&globalThis)||Fv(typeof window=="object"&&window)||Fv(typeof self=="object"&&self)||Fv(typeof ey=="object"&&ey)||(function(){return this})()||Function("return this")(),Wt=function(e){try{return!!e()}catch(t){return!0}},Yo=!Wt((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Ed=Function.prototype.call,rn=Ed.bind?Ed.bind(Ed):function(){return Ed.apply(Ed,arguments)},YT={}.propertyIsEnumerable,ZT=Object.getOwnPropertyDescriptor,Ace=ZT&&!YT.call({1:2},1)?function(e){var t=ZT(this,e);return!!t&&t.enumerable}:YT,KN={f:Ace},X3=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},XN=Function.prototype,KS=XN.bind,XS=XN.call,Tce=KS&&KS.bind(XS),Ae=KS?function(e){return e&&Tce(XS,e)}:function(e){return e&&function(){return XS.apply(e,arguments)}},Bce=Ae({}.toString),Pce=Ae("".slice),lu=function(e){return Pce(Bce(e),8,-1)},Aw=Le.Object,Fce=Ae("".split),X1=Wt((function(){return!Aw("z").propertyIsEnumerable(0)}))?function(e){return lu(e)=="String"?Fce(e,""):Aw(e)}:Aw,Mce=Le.TypeError,_o=function(e){if(e==null)throw Mce("Can't call method on "+e);return e},Pf=function(e){return X1(_o(e))},nr=function(e){return typeof e=="function"},yi=function(e){return typeof e=="object"?e!==null:nr(e)},Ice=function(e){return nr(e)?e:void 0},xg=function(e,t){return arguments.length<2?Ice(Le[e]):Le[e]&&Le[e][t]},YN=Ae({}.isPrototypeOf),Tw=xg("navigator","userAgent")||"",JT=Le.process,QT=Le.Deno,e9=JT&&JT.versions||QT&&QT.version,t9=e9&&e9.v8;t9&&(Fm=(Ma=t9.split("."))[0]>0&&Ma[0]<4?1:+(Ma[0]+Ma[1])),!Fm&&Tw&&(!(Ma=Tw.match(/Edge\/(\d+)/))||Ma[1]>=74)&&(Ma=Tw.match(/Chrome\/(\d+)/))&&(Fm=+Ma[1]);var YS=Fm,ZS=!!Object.getOwnPropertySymbols&&!Wt((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&YS&&YS<41})),Y3=ZS&&!Symbol.sham&&typeof Symbol.iterator=="symbol",jce=Le.Object,Bw=Y3?function(e){return typeof e=="symbol"}:function(e){var t=xg("Symbol");return nr(t)&&YN(t.prototype,jce(e))},Lce=Le.String,ZN=function(e){try{return Lce(e)}catch(t){return"Object"}},Rce=Le.TypeError,JN=function(e){if(nr(e))return e;throw Rce(ZN(e)+" is not a function")},Y1=function(e,t){var n=e[t];return n==null?void 0:JN(n)},Nce=Le.TypeError,$ce=Object.defineProperty,Z3=function(e,t){try{$ce(Le,e,{value:t,configurable:!0,writable:!0})}catch(n){Le[e]=t}return t},cu=Le["__core-js_shared__"]||Z3("__core-js_shared__",{}),J3=K1((function(e){(e.exports=function(t,n){return cu[t]||(cu[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Uce=Le.Object,Cg=function(e){return Uce(_o(e))},zce=Ae({}.hasOwnProperty),fo=Object.hasOwn||function(e,t){return zce(Cg(e),t)},Hce=0,Vce=Math.random(),Wce=Ae(1 .toString),QN=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Wce(++Hce+Vce,36)},Dd=J3("wks"),Rs=Le.Symbol,n9=Rs&&Rs.for,qce=Y3?Rs:Rs&&Rs.withoutSetter||QN,Xr=function(e){if(!fo(Dd,e)||!ZS&&typeof Dd[e]!="string"){var t="Symbol."+e;ZS&&fo(Rs,e)?Dd[e]=Rs[e]:Dd[e]=Y3&&n9?n9(t):qce(t)}return Dd[e]},Gce=Le.TypeError,Kce=Xr("toPrimitive"),Q3=function(e){var t=(function(n,r){if(!yi(n)||Bw(n))return n;var o,i=Y1(n,Kce);if(i){if(o=rn(i,n,r),!yi(o)||Bw(o))return o;throw Gce("Can't convert object to primitive value")}return(function(a,u){var s,l;if(nr(s=a.toString)&&!yi(l=rn(s,a))||nr(s=a.valueOf)&&!yi(l=rn(s,a)))return l;throw Nce("Can't convert object to primitive value")})(n)})(e,"string");return Bw(t)?t:t+""},JS=Le.document,Xce=yi(JS)&&yi(JS.createElement),e8=function(e){return Xce?JS.createElement(e):{}},e$=!Yo&&!Wt((function(){return Object.defineProperty(e8("div"),"a",{get:function(){return 7}}).a!=7})),r9=Object.getOwnPropertyDescriptor,t8={f:Yo?r9:function(e,t){if(e=Pf(e),t=Q3(t),e$)try{return r9(e,t)}catch(n){}if(fo(e,t))return X3(!rn(KN.f,e,t),e[t])}},Yce=Le.String,Zce=Le.TypeError,Ur=function(e){if(yi(e))return e;throw Zce(Yce(e)+" is not an object")},Jce=Le.TypeError,o9=Object.defineProperty,Ff={f:Yo?o9:function(e,t,n){if(Ur(e),t=Q3(t),Ur(n),e$)try{return o9(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Jce("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ff=Yo?function(e,t,n){return Ff.f(e,t,X3(1,n))}:function(e,t,n){return e[t]=n,e},Qce=Ae(Function.toString);nr(cu.inspectSource)||(cu.inspectSource=function(e){return Qce(e)});var QS,ty,eE,n8=cu.inspectSource,i9=Le.WeakMap,efe=nr(i9)&&/native code/.test(n8(i9)),a9=J3("keys"),t$=function(e){return a9[e]||(a9[e]=QN(e))},r8={},u9=Le.TypeError,tfe=Le.WeakMap;if(efe||cu.state){var os=cu.state||(cu.state=new tfe),nfe=Ae(os.get),s9=Ae(os.has),rfe=Ae(os.set);QS=function(e,t){if(s9(os,e))throw new u9("Object already initialized");return t.facade=e,rfe(os,e,t),t},ty=function(e){return nfe(os,e)||{}},eE=function(e){return s9(os,e)}}else{var Kl=t$("state");r8[Kl]=!0,QS=function(e,t){if(fo(e,Kl))throw new u9("Object already initialized");return t.facade=e,ff(e,Kl,t),t},ty=function(e){return fo(e,Kl)?e[Kl]:{}},eE=function(e){return fo(e,Kl)}}var tE={get:ty,enforce:function(e){return eE(e)?ty(e):QS(e,{})}},n$=Function.prototype,ofe=Yo&&Object.getOwnPropertyDescriptor,Pw=fo(n$,"name"),Z1={EXISTS:Pw,PROPER:Pw&&(function(){}).name==="something",CONFIGURABLE:Pw&&(!Yo||Yo&&ofe(n$,"name").configurable)},xh=K1((function(e){var t=Z1.CONFIGURABLE,n=tE.get,r=tE.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;nr(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!fo(u,"name")||t&&u.name!==d)&&ff(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Le?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ff(i,a,u)):f?i[a]=u:Z3(a,u)})(Function.prototype,"toString",(function(){return nr(this)&&n(this).source||n8(this)}))})),ife=Math.ceil,afe=Math.floor,Mf=function(e){var t=+e;return t!=t||t===0?0:(t>0?afe:ife)(t)},ufe=Math.max,sfe=Math.min,Ch=function(e,t){var n=Mf(e);return n<0?ufe(n+t,0):sfe(n,t)},lfe=Math.min,Sg=function(e){return e>0?lfe(Mf(e),9007199254740991):0},J1=function(e){return Sg(e.length)},l9=function(e){return function(t,n,r){var o,i=Pf(t),a=J1(i),u=Ch(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},r$={includes:l9(!0),indexOf:l9(!1)},cfe=r$.indexOf,c9=Ae([].push),o$=function(e,t){var n,r=Pf(e),o=0,i=[];for(n in r)!fo(r8,n)&&fo(r,n)&&c9(i,n);for(;t.length>o;)fo(r,n=t[o++])&&(~cfe(i,n)||c9(i,n));return i},ny=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ffe=ny.concat("length","prototype"),dfe={f:Object.getOwnPropertyNames||function(e){return o$(e,ffe)}},i$={f:Object.getOwnPropertySymbols},pfe=Ae([].concat),hfe=xg("Reflect","ownKeys")||function(e){var t=dfe.f(Ur(e)),n=i$.f;return n?pfe(t,n(e)):t},gfe=function(e,t){for(var n=hfe(t),r=Ff.f,o=t8.f,i=0;i<n.length;i++){var a=n[i];fo(e,a)||r(e,a,o(t,a))}},vfe=/#|\.prototype\./,Eg=function(e,t){var n=yfe[mfe(e)];return n==wfe||n!=bfe&&(nr(t)?Wt(t):!!t)},mfe=Eg.normalize=function(e){return String(e).replace(vfe,".").toLowerCase()},yfe=Eg.data={},bfe=Eg.NATIVE="N",wfe=Eg.POLYFILL="P",_fe=Eg,xfe=t8.f,Cn=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Le:l?Le[u]||Z3(u,{}):(Le[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=xfe(n,r))&&a.value:n[r],!_fe(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;gfe(i,o)}(e.sham||o&&o.sham)&&ff(i,"sham",!0),xh(n,r,i,e)}},f9=Ae(Ae.bind),ry=Array.isArray||function(e){return lu(e)=="Array"},a$={};a$[Xr("toStringTag")]="z";var o8=String(a$)==="[object z]",Cfe=Xr("toStringTag"),Sfe=Le.Object,Efe=lu((function(){return arguments})())=="Arguments",i8=o8?lu:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch(a){}})(t=Sfe(e),Cfe))=="string"?n:Efe?lu(t):(r=lu(t))=="Object"&&nr(t.callee)?"Arguments":r},u$=function(){},Dfe=[],s$=xg("Reflect","construct"),a8=/^\s*(?:class|function)\b/,kfe=Ae(a8.exec),Ofe=!a8.exec(u$),kd=function(e){if(!nr(e))return!1;try{return s$(u$,Dfe,e),!0}catch(t){return!1}},u8=!s$||Wt((function(){var e;return kd(kd.call)||!kd(Object)||!kd((function(){e=!0}))||e}))?function(e){if(!nr(e))return!1;switch(i8(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ofe||!!kfe(a8,n8(e))}:kd,Afe=Xr("species"),d9=Le.Array,Tfe=function(e,t){return new((function(n){var r;return ry(n)&&(r=n.constructor,(u8(r)&&(r===d9||ry(r.prototype))||yi(r)&&(r=r[Afe])===null)&&(r=void 0)),r===void 0?d9:r})(e))(t===0?0:t)},p9=Ae([].push),Mv=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=Cg(s),v=X1(m),h=(function(x,k){return JN(x),k===void 0?x:f9?f9(x,k):function(){return x.apply(k,arguments)}})(l,c),y=J1(v),g=0,b=f||Tfe,w=t?b(s,y):n||a?b(s,0):void 0;y>g;g++)if((u||g in v)&&(d=h(p=v[g],g,m),e))if(t)w[g]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:p9(w,p)}else switch(e){case 4:return!1;case 7:p9(w,p)}return i?-1:r||o?o:w}},Q1={forEach:Mv(0),map:Mv(1),filter:Mv(2),find:Mv(5)},Bfe=Xr("species"),s8=function(e){return YS>=51||!Wt((function(){var t=[];return(t.constructor={})[Bfe]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Pfe=Q1.filter;Cn({target:"Array",proto:!0,forced:!s8("filter")},{filter:function(e){return Pfe(this,e,arguments.length>1?arguments[1]:void 0)}});var Ffe=o8?{}.toString:function(){return"[object "+i8(this)+"]"};o8||xh(Object.prototype,"toString",Ffe,{unsafe:!0});var Iv,Mfe=Le.String,Ht=function(e){if(i8(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Mfe(e)},l$=function(){var e=Ur(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},l8=Le.RegExp,nE=Wt((function(){var e=l8("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));nE||Wt((function(){return!l8("a","y").sticky}));var c$={BROKEN_CARET:nE||Wt((function(){var e=l8("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:nE},Mc=Object.keys||function(e){return o$(e,ny)},Ife=Yo?Object.defineProperties:function(e,t){Ur(e);for(var n,r=Pf(t),o=Mc(t),i=o.length,a=0;i>a;)Ff.f(e,n=o[a++],r[n]);return e},jfe=xg("document","documentElement"),f$=t$("IE_PROTO"),Fw=function(){},d$=function(e){return"<script>"+e+"<\/script>"},h9=function(e){e.write(d$("")),e.close();var t=e.parentWindow.Object;return e=null,t},Mm=function(){try{Iv=new ActiveXObject("htmlfile")}catch(r){}var e,t;Mm=typeof document<"u"?document.domain&&Iv?h9(Iv):((t=e8("iframe")).style.display="none",jfe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(d$("document.F=Object")),e.close(),e.F):h9(Iv);for(var n=ny.length;n--;)delete Mm.prototype[ny[n]];return Mm()};r8[f$]=!0;var g9,Mw,p$=Object.create||function(e,t){var n;return e!==null?(Fw.prototype=Ur(e),n=new Fw,Fw.prototype=null,n[f$]=e):n=Mm(),t===void 0?n:Ife(n,t)},Lfe=Le.RegExp,Rfe=Wt((function(){var e=Lfe(".","s");return!(e.dotAll&&e.exec("\n")&&e.flags==="s")})),Nfe=Le.RegExp,$fe=Wt((function(){var e=Nfe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),Ufe=tE.get,zfe=J3("native-string-replace",String.prototype.replace),oy=RegExp.prototype.exec,rE=oy,Hfe=Ae("".charAt),Vfe=Ae("".indexOf),Wfe=Ae("".replace),Iw=Ae("".slice),jw=(Mw=/b*/g,rn(oy,g9=/a/,"a"),rn(oy,Mw,"a"),g9.lastIndex!==0||Mw.lastIndex!==0),v9=c$.BROKEN_CARET,Lw=/()??/.exec("")[1]!==void 0;(jw||Lw||v9||Rfe||$fe)&&(rE=function(e){var t,n,r,o,i,a,u,s=this,l=Ufe(s),c=Ht(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=rn(rE,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=v9&&s.sticky,m=rn(l$,s),v=s.source,h=0,y=c;if(d&&(m=Wfe(m,"y",""),Vfe(m,"g")===-1&&(m+="g"),y=Iw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Hfe(c,s.lastIndex-1)!=="\n")&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",m)),Lw&&(n=new RegExp("^"+v+"$(?!\\s)",m)),jw&&(r=s.lastIndex),o=rn(oy,d?n:s,y),d?o?(o.input=Iw(o.input,h),o[0]=Iw(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:jw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Lw&&o&&o.length>1&&rn(zfe,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&p)for(o.groups=a=p$(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Sh=rE;Cn({target:"RegExp",proto:!0,forced:/./.exec!==Sh},{exec:Sh});var c8=Function.prototype,m9=c8.apply,qfe=c8.bind,y9=c8.call,h$=typeof Reflect=="object"&&Reflect.apply||(qfe?y9.bind(m9):function(){return y9.apply(m9,arguments)}),Gfe=Xr("species"),Rw=RegExp.prototype,f8=function(e,t,n,r){var o=Xr(e),i=!Wt((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!Wt((function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Gfe]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||n){var u=Ae(/./[o]),s=t(o,""[e],(function(l,c,f,p,d){var m=Ae(l),v=c.exec;return v===Sh||v===Rw.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}}));xh(String.prototype,e,s[0]),xh(Rw,o,s[1])}r&&ff(Rw[o],"sham",!0)},Kfe=Ae("".charAt),b9=Ae("".charCodeAt),Xfe=Ae("".slice),Yfe=function(e){return function(t,n){var r,o,i=Ht(_o(t)),a=Mf(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=b9(i,a))<55296||r>56319||a+1===u||(o=b9(i,a+1))<56320||o>57343?e?Kfe(i,a):r:e?Xfe(i,a,a+2):o-56320+(r-55296<<10)+65536}},Zfe=Yfe(!0),d8=function(e,t,n){return t+(n?Zfe(e,t).length:1)},Jfe=Math.floor,Nw=Ae("".charAt),Qfe=Ae("".replace),$w=Ae("".slice),ede=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,tde=/\$([$&'`]|\d{1,2})/g,nde=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=tde;return o!==void 0&&(o=Cg(o),s=ede),Qfe(i,s,(function(l,c){var f;switch(Nw(c,0)){case"$":return"$";case"&":return e;case"`":return $w(t,0,n);case"'":return $w(t,a);case"<":f=o[$w(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Jfe(p/10);return d===0?l:d<=u?r[d-1]===void 0?Nw(c,1):r[d-1]+Nw(c,1):l}f=r[p-1]}return f===void 0?"":f}))},rde=Le.TypeError,Eh=function(e,t){var n=e.exec;if(nr(n)){var r=rn(n,e,t);return r!==null&&Ur(r),r}if(lu(e)==="RegExp")return rn(Sh,e,t);throw rde("RegExp#exec called on incompatible receiver")},oE=Xr("replace"),ode=Math.max,ide=Math.min,ade=Ae([].concat),Uw=Ae([].push),w9=Ae("".indexOf),_9=Ae("".slice),ude="a".replace(/./,"$0")==="$0",x9=!!/./[oE]&&/./[oE]("a","$0")==="";f8("replace",(function(e,t,n){var r=x9?"$":"$0";return[function(o,i){var a=_o(this),u=o==null?void 0:Y1(o,oE);return u?rn(u,o,a,i):rn(t,Ht(a),o,i)},function(o,i){var a=Ur(this),u=Ht(o);if(typeof i=="string"&&w9(i,r)===-1&&w9(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=nr(i);l||(i=Ht(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=Eh(a,u);if(d===null||(Uw(p,d),!c))break;Ht(d[0])===""&&(a.lastIndex=d8(u,Sg(a.lastIndex),f))}for(var m,v="",h=0,y=0;y<p.length;y++){for(var g=Ht((d=p[y])[0]),b=ode(ide(Mf(d.index),u.length),0),w=[],x=1;x<d.length;x++)Uw(w,(m=d[x])===void 0?m:String(m));var k=d.groups;if(l){var D=ade([g],w,b,u);k!==void 0&&Uw(D,k);var T=Ht(h$(i,void 0,D))}else T=nde(g,u,b,w,k,i);b>=h&&(v+=_9(u,h,b)+T,h=b+g.length)}return v+_9(u,h)}]}),!!Wt((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!ude||x9);var iE=Xr("unscopables"),aE=Array.prototype;aE[iE]==null&&Ff.f(aE,iE,{configurable:!0,value:p$(null)});var g$=function(e){aE[iE][e]=!0},sde=Q1.find,C9=!0;"find"in[]&&Array(1).find((function(){C9=!1})),Cn({target:"Array",proto:!0,forced:C9},{find:function(e){return sde(this,e,arguments.length>1?arguments[1]:void 0)}}),g$("find");var lde=Xr("match"),v$=function(e){var t;return yi(e)&&((t=e[lde])!==void 0?!!t:lu(e)=="RegExp")},cde=Le.TypeError,fde=Xr("species"),m$=function(e,t,n){var r=Q3(t);r in e?Ff.f(e,r,X3(0,n)):e[r]=n},dde=Le.Array,pde=Math.max,S9=function(e,t,n){for(var r=J1(e),o=Ch(t,r),i=Ch(n===void 0?r:n,r),a=dde(pde(i-o,0)),u=0;o<i;o++,u++)m$(a,u,e[o]);return a.length=u,a},Xl=c$.UNSUPPORTED_Y,hde=Math.min,y$=[].push,gde=Ae(/./.exec),Yl=Ae(y$),Od=Ae("".slice);f8("split",(function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Ht(_o(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!v$(o))return rn(t,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,m=new RegExp(o.source,p+"g");(s=rn(Sh,m,a))&&!((l=m.lastIndex)>d&&(Yl(f,Od(a,d,s.index)),s.length>1&&s.index<a.length&&h$(y$,f,S9(s,1)),c=s[0].length,d=l,f.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return d===a.length?!c&&gde(m,"")||Yl(f,""):Yl(f,Od(a,d)),f.length>u?S9(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:rn(t,this,o,i)}:t,[function(o,i){var a=_o(this),u=o==null?void 0:Y1(o,e);return u?rn(u,o,a,i):rn(r,Ht(a),o,i)},function(o,i){var a=Ur(this),u=Ht(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=(function(w,x){var k,D=Ur(w).constructor;return D===void 0||(k=Ur(D)[fde])==null?x:(function(T){if(u8(T))return T;throw cde(ZN(T)+" is not a constructor")})(k)})(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Xl?"g":"y"),p=new l(Xl?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return Eh(p,u)===null?[u]:[];for(var m=0,v=0,h=[];v<u.length;){p.lastIndex=Xl?0:v;var y,g=Eh(p,Xl?Od(u,v):u);if(g===null||(y=hde(Sg(p.lastIndex+(Xl?v:0)),u.length))===m)v=d8(u,v,c);else{if(Yl(h,Od(u,m,v)),h.length===d)return h;for(var b=1;b<=g.length-1;b++)if(Yl(h,g[b]),h.length===d)return h;v=m=y}}return Yl(h,Od(u,m)),h}]}),!!Wt((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),Xl);var uE=" \n\v\f\r    \u2028\u2029\uFEFF",E9=Ae("".replace),iy="["+uE+"]",vde=RegExp("^"+iy+iy+"*"),mde=RegExp(iy+iy+"*$"),yde=function(e){return function(t){var n=Ht(_o(t));return 1&e&&(n=E9(n,vde,"")),2&e&&(n=E9(n,mde,"")),n}},bde={trim:yde(3)},wde=Z1.PROPER,_de=bde.trim;function p8(e){return N("<div>"+e+"</div>").children().filter((function(t){return t.tagName!=="BR"})).length===0}function If(e){return e.length===0?"":e[0].outerHTML}function jf(e){return e.length?e[0].tagName.toLowerCase():""}function Ho(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}Cn({target:"String",proto:!0,forced:Wt((function(){return!!uE.trim()||"…".trim()!=="…"||wde&&uE.trim.name!=="trim"}))},{trim:function(){return _de(this)}}),Cn({global:!0},{globalThis:Le}),P0&&(N.fn.css=P0),yo&&(N.fn.append=yo),dA&&(N.fn.prepend=dA),Gc&&(N.fn.addClass=Gc),Kc&&(N.fn.removeClass=Kc),Xc&&(N.fn.hasClass=Xc),Ai&&(N.fn.on=Ai),sA&&(N.fn.off=sA),Eu&&(N.fn.focus=Eu),mo&&(N.fn.attr=mo),O0&&(N.fn.removeAttr=O0),Zc&&(N.fn.hide=Zc),B0&&(N.fn.show=B0),I0&&(N.fn.parents=I0),Yc&&(N.fn.dataset=Yc),Oi&&(N.fn.val=Oi),M0&&(N.fn.text=M0),Su&&(N.fn.html=Su),ef&&(N.fn.children=ef),tf&&(N.fn.remove=tf),Qc&&(N.fn.find=Qc),A0&&(N.fn.width=A0),T0&&(N.fn.height=T0),cA&&(N.fn.filter=cA),nf&&(N.fn.empty=nf);var xde={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=N(e);return(t=t.filter((function(o){return!!me.isText(o)||!!n.isInline(o)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},sE=function(e,t){return sE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},sE(e,t);};function Ut(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}sE(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ou=function(){return Ou=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ou.apply(this,arguments)};function Hu(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n((function(f){f(c)}))).then(a,u)}s((r=r.apply(e,[])).next())}))}function Vu(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function b$(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ct(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function D9(e){var t=ct(S.nodes(e,{match:function(i){return e.children[0]===i},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!we.isElement(n)||n.type==="paragraph"||fe.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!me.isText(o[0])&&(K.setNodes(e,{type:"paragraph"}),!0)}var Cde={renderElems:[Oce],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[xde],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(o){D9(r)||t(o)},r.deleteForward=function(o){D9(r)||n(o)},r}},Sde=/"/g,Ede=Ae("".replace),_p=function(e,t,n,r){var o=Ht(_o(e)),i="<"+t;return n!==""&&(i+=" "+n+'="'+Ede(Ht(r),Sde,"&quot;")+'"'),i+">"+o+"</"+t+">"},xp=function(e){return Wt((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function zw(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function is(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Cn({target:"String",proto:!0,forced:xp("bold")},{bold:function(){return _p(this,"b","","")}}),Cn({target:"String",proto:!0,forced:xp("italics")},{italics:function(){return _p(this,"i","","")}}),Cn({target:"String",proto:!0,forced:xp("sub")},{sub:function(){return _p(this,"sub","","")}}),Cn({target:"String",proto:!0,forced:xp("sup")},{sup:function(){return _p(this,"sup","","")}});var k9={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Hw=e8("span").classList,O9=Hw&&Hw.constructor&&Hw.constructor.prototype,Dde=O9===Object.prototype?void 0:O9,w$=function(e,t){var n=[][e];return!!n&&Wt((function(){n.call(null,t||function(){throw 1},1)}))},kde=Q1.forEach,Vw=w$("forEach")?[].forEach:function(e){return kde(this,e,arguments.length>1?arguments[1]:void 0)},_$=function(e){if(e&&e.forEach!==Vw)try{ff(e,"forEach",Vw)}catch(t){e.forEach=Vw}};for(var Ww in k9)k9[Ww]&&_$(Le[Ww]&&Le[Ww].prototype);function x$(e,t){return e.selection==null||!!ct(S.nodes(e,{match:function(n){return I.getNodeType(n)==="pre"||!!S.isVoid(e,n)},universal:!0}),1)[0]}function Ode(e,t){Object.keys(t).forEach((function(n){n!=="text"&&S.removeMark(e,n)}))}_$(Dde),Cn({target:"Object",stat:!0,forced:Wt((function(){Mc(1)}))},{keys:function(e){return Mc(Cg(e))}});var Dl=(function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var n=this.mark,r=S.marks(t);return r?r[n]:!!ct(S.nodes(t,{match:function(o){return o[n]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return x$(t,this.mark)},e.prototype.exec=function(t,n){var r=this.mark,o=this.marksNeedToRemove;n?t.removeMark(r):(t.addMark(r,!0),o&&o.forEach((function(i){return t.removeMark(i)})))},e})(),Ade='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',Tde='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',Bde='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Pde='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',Fde='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',C$='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',S$='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',Mde='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',Ide='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',jde='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Lde='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',Rde='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Nde='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',$de='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Ude='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',zde='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Hde='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Vde='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',Wde='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',qde=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=de("textStyle.bold"),n.iconSvg=Ade,n.hotkey="mod+b",n}return Ut(t,e),t})(Dl),Gde=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=de("textStyle.code"),n.iconSvg=Fde,n.hotkey="mod+e",n}return Ut(t,e),t})(Dl),Kde=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=de("textStyle.italic"),n.iconSvg=Bde,n.hotkey="mod+i",n}return Ut(t,e),t})(Dl),Xde=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=de("textStyle.through"),n.iconSvg=Pde,n.hotkey="mod+shift+x",n}return Ut(t,e),t})(Dl),Yde=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=de("textStyle.underline"),n.iconSvg=Tde,n.hotkey="mod+u",n}return Ut(t,e),t})(Dl),Zde=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=de("textStyle.sub"),n.iconSvg=Wde,n.hotkey="",n}return Ut(t,e),t})(Dl),Jde=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=de("textStyle.sup"),n.iconSvg=Vde,n.hotkey="",n}return Ut(t,e),t})(Dl),Qde=(function(){function e(){this.title=de("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return x$(t)},e.prototype.exec=function(t,n){var r,o,i=S.nodes(t,{match:function(s){return me.isText(s)},universal:!0});try{for(var a=b$(i),u=a.next();!u.done;u=a.next())Ode(t,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},e})(),epe={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=Be("strong",null,c)),a&&(c=Be("code",null,c)),o&&(c=Be("em",null,c)),i&&(c=Be("u",null,c)),u&&(c=Be("s",null,c)),s&&(c=Be("sub",null,c)),l&&(c=Be("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new qde}},{key:"underline",factory:function(){return new Yde}},{key:"italic",factory:function(){return new Kde}},{key:"through",factory:function(){return new Xde}},{key:"code",factory:function(){return new Gde}},{key:"sub",factory:function(){return new Zde}},{key:"sup",factory:function(){return new Jde}},{key:"clearStyle",factory:function(){return new Qde}}],styleToHtml:function(e,t){if(!me.isText(e))return t;if(p8(t))return zw(e,t);var n=N(t);if(jf(n)==="br")return zw(e,"<br>");var r=n.html();return r=zw(e,r),n.html(r),If(n)},parseStyleHtml:function(e,t,n){var r=N(e);if(!me.isText(t))return t;var o=t;return is(r,"b,strong")&&(o.bold=!0),is(r,"i,em")&&(o.italic=!0),is(r,"u")&&(o.underline=!0),is(r,"s,strike")&&(o.through=!0),is(r,"sub")&&(o.sub=!0),is(r,"sup")&&(o.sup=!0),is(r,"code")&&(o.code=!0),o}};function Dg(e){return function(t,n,r){return Be("h"+e,null,n)}}var tpe={type:"header1",renderElem:Dg(1)},npe={type:"header2",renderElem:Dg(2)},rpe={type:"header3",renderElem:Dg(3)},ope={type:"header4",renderElem:Dg(4)},ipe={type:"header5",renderElem:Dg(5)},ape=Z1.PROPER,lE=RegExp.prototype,E$=lE.toString,upe=Ae(l$),spe=Wt((function(){return E$.call({source:"a",flags:"b"})!="/a/b"})),lpe=ape&&E$.name!="toString";(spe||lpe)&&xh(RegExp.prototype,"toString",(function(){var e=Ur(this),t=Ht(e.source),n=e.flags;return"/"+t+"/"+Ht(n===void 0&&YN(lE,e)&&!("flags"in lE)?upe(e):n)}),{unsafe:!0});var qw,cpe=Le.TypeError,D$=function(e){if(v$(e))throw cpe("The method doesn't accept regular expressions");return e},fpe=Xr("match"),k$=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[fpe]=!1,"/./"[e](t)}catch(r){}}return!1},dpe=t8.f,A9=Ae("".startsWith),ppe=Ae("".slice),hpe=Math.min,T9=k$("startsWith");function O$(e){var t=ct(S.nodes(e,{match:function(o){return I.getNodeType(o).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=ct(n,1)[0];return I.getNodeType(r)}function A$(e){return e.selection==null||!ct(S.nodes(e,{match:function(t){var n=I.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function T$(e,t){t&&K.setNodes(e,{type:t})}Cn({target:"String",proto:!0,forced:!(!T9&&(qw=dpe(String.prototype,"startsWith"),qw&&!qw.writable)||T9)},{startsWith:function(e){var t=Ht(_o(this));D$(e);var n=Sg(hpe(arguments.length>1?arguments[1]:void 0,t.length)),r=Ht(e);return A9?A9(t,r,n):ppe(t,n,n+r.length)===r}});var gpe=(function(){function e(){this.title=de("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(t){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:de("header.text")}],r=this.getValue(t).toString();return n.forEach((function(o){o.value===r?o.selected=!0:delete o.selected})),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return O$(t)},e.prototype.isDisabled=function(t){return A$(t)},e.prototype.exec=function(t,n){T$(t,n.toString())},e})(),kg=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return O$(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return A$(t)},e.prototype.exec=function(t,n){var r=this.type;T$(t,n===r?"paragraph":r)},e})(),vpe=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return Ut(t,e),t})(kg),mpe=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return Ut(t,e),t})(kg),ype=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return Ut(t,e),t})(kg),bpe=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return Ut(t,e),t})(kg),wpe=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return Ut(t,e),t})(kg),_pe={key:"headerSelect",factory:function(){return new gpe}},xpe={key:"header1",factory:function(){return new vpe}},Cpe={key:"header2",factory:function(){return new mpe}},Spe={key:"header3",factory:function(){return new ype}},Epe={key:"header4",factory:function(){return new bpe}},Dpe={key:"header5",factory:function(){return new wpe}};function Ad(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Td(e){return function(t,n,r){var o=N(t);return(n=n.filter((function(i){return!!me.isText(i)||!!r.isInline(i)}))).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var kpe={renderElems:[tpe,npe,rpe,ope,ipe],elemsToHtml:[{type:"header1",elemToHtml:Ad(1)},{type:"header2",elemToHtml:Ad(2)},{type:"header3",elemToHtml:Ad(3)},{type:"header4",elemToHtml:Ad(4)},{type:"header5",elemToHtml:Ad(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Td(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Td(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Td(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Td(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Td(5)}],menus:[_pe,xpe,Cpe,Spe,Epe,Dpe],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=ct(S.nodes(n,{match:function(o){return I.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&I.isSelectionAtLineEnd(e,r[1])?K.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},Zl=Object.assign,B9=Object.defineProperty,Ope=Ae([].concat),P9=!Zl||Wt((function(){if(Yo&&Zl({b:1},Zl(B9({},"a",{enumerable:!0,get:function(){B9(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(o){t[o]=o})),Zl({},e)[n]!=7||Mc(Zl({},t)).join("")!=r}))?function(e,t){for(var n=Cg(e),r=arguments.length,o=1,i=i$.f,a=KN.f;r>o;)for(var u,s=X1(arguments[o++]),l=i?Ope(Mc(s),i(s)):Mc(s),c=l.length,f=0;c>f;)u=l[f++],Yo&&!rn(a,s,u)||(n[u]=s[u]);return n}:Zl;function ll(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}Cn({target:"Object",stat:!0,forced:Object.assign!==P9},{assign:P9});var Ape={selector:"font",preParseHtml:function(e){var t=N(e);if(jf(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},B$=(function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){var n=this.mark,r=S.marks(t);return r&&r[n]?r[n]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!ct(S.nodes(t,{match:function(n){return I.getNodeType(n)==="pre"||!!S.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var n=this.mark;if(this.$content==null){var r=N('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",(function(l){var c=l.target;if(c!=null&&(l.preventDefault(),t.selection!=null)){var f=N(c).attr("data-value");f==="0"?S.removeMark(t,n):S.addMark(t,n,f)}})),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(t),a=t.getMenuConfig(n).colors;(a===void 0?[]:a).forEach((function(l){var c=N('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=N('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)}));var u="";n==="color"&&(u=de("color.default")),n==="bgColor"&&(u=de("color.clear"));var s=N('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+u+"\n </li>\n ");return o.prepend(s),o[0]},e})(),Tpe=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=de("color.color"),n.iconSvg=Mde,n.mark="color",n}return Ut(t,e),t})(B$),Bpe=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=de("color.bgColor"),n.iconSvg=Ide,n.mark="bgColor",n}return Ut(t,e),t})(B$),F9=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],Ppe={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&ll(i,{color:r}),o&&ll(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!me.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((p8(t)||jf(n=N(t))!=="span")&&(n=N("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),If(n)):t},preParseHtml:[Ape],parseStyleHtml:function(e,t,n){var r=N(e);if(!me.isText(t))return t;var o=t,i=Ho(r,"color");i&&(o.color=i);var a=Ho(r,"background-color");return a||(a=Ho(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Tpe},config:{colors:F9}},{key:"bgColor",factory:function(){return new Bpe},config:{colors:F9}}]},Fpe=/^(?:\w+:)?\/\/(\S+)$/,Mpe=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Ipe=/^[^\s\.]+\.\S{2,}$/,jpe=r$.includes;function eb(e){return e===void 0&&(e="r"),e+"-"+QL()}function h8(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function P$(e,t,n,r){return Hu(this,void 0,void 0,(function(){var o,i;return Vu(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return t.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function F$(e,t,n){return Hu(this,void 0,void 0,(function(){var r;return Vu(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function g8(e){return e.selection==null||!!I.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function Gw(e,t){return{type:"link",url:h8(e),children:t?[{text:t}]:[]}}function M$(e,t,n){return Hu(this,void 0,void 0,(function(){var r,o,i;return Vu(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),g8(e)?[2]:[4,P$("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,F$("insertLink",e,n)]:[2];case 2:return r=a.sent(),(o=e.selection)==null||(ee.isCollapsed(o)?(e.insertText(" "),i=Gw(r,t),K.insertNodes(e,i),e.insertFragment([{text:" "}])):S.string(e,o)!==t?(e.deleteFragment(),i=Gw(r,t),K.insertNodes(e,i)):(i=Gw(r),K.wrapNodes(e,i,{split:!0}),K.collapse(e,{edge:"end"}))),[2]}}))}))}Cn({target:"Array",proto:!0},{includes:function(e){return jpe(this,e,arguments.length>1?arguments[1]:void 0)}}),g$("includes");var Lpe={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Be("a",{href:o,target:i===void 0?"_blank":i},t)}},Rpe={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=N(e);return(t=t.filter((function(o){return!!me.isText(o)||!!n.isInline(o)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function Kw(){return eb("w-e-insert-link")}var Npe=(function(){function e(){this.title=de("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=Kw(),this.urlInputId=Kw(),this.buttonId=Kw()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return g8(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=t.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=ct($r(de("link.text"),o),2),s=u[0],l=N(u[1]),c=ct($r(de("link.url"),i),2),f=c[0],p=N(c[1]),d=ct(Bf(a,de("common.ok")),1)[0];if(this.$content==null){var m=N("<div></div>");m.on("click","#"+a,(function(y){y.preventDefault();var g=m.find("#"+o).val(),b=m.find("#"+i).val();M$(t,g,b),t.hidePanelOrModal()})),this.$content=m}var v=this.$content;if(v.empty(),v.append(s),v.append(f),v.append(d),n==null||ee.isCollapsed(n))l.val("");else{var h=S.string(t,n);l.val(h)}return p.val(""),setTimeout((function(){l.focus()})),v[0]},e})();function M9(){return eb("w-e-update-link")}var $pe=(function(){function e(){this.title=de("link.edit"),this.iconSvg=C$,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=M9(),this.buttonId=M9()}return e.prototype.getSelectedLinkElem=function(t){var n=I.getSelectedNodeByType(t,"link");return n==null?null:n},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return I.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,o=ct($r(de("link.url"),n),2),i=o[0],a=N(o[1]),u=ct(Bf(r,de("common.ok")),1)[0];if(this.$content==null){var s=N("<div></div>");s.on("click","button",(function(f){f.preventDefault(),t.restoreSelection();var p=I.getSelectedNodeByType(t,"link"),d=p?fe.string(p):"",m=s.find("#"+n).val();(function(v,h,y){Hu(this,void 0,void 0,(function(){var g,b;return Vu(this,(function(w){switch(w.label){case 0:return y?[4,P$("editLink",v,h,y)]:[2];case 1:return w.sent()?[4,F$("editLink",v,y)]:[2];case 2:return g=w.sent(),b={url:h8(g)},K.setNodes(v,b,{match:function(x){return I.checkNodeType(x,"link")}}),[2]}}))}))})(t,d,m),t.hidePanelOrModal()})),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(t);return a.val(c),setTimeout((function(){a.focus()})),l[0]},e})(),Upe=(function(){function e(){this.title=de("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||I.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||K.unwrapNodes(t,{match:function(r){return I.checkNodeType(r,"link")}})},e})(),zpe=(function(){function e(){this.title=de("link.view"),this.iconSvg=S$,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=I.getSelectedNodeByType(t,"link");return n==null?null:n},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},e})(),I9={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Hpe={renderElems:[Lpe],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[Rpe],menus:[{key:"insertLink",factory:function(){return new Npe},config:I9},{key:"editLink",factory:function(){return new $pe},config:I9},{key:"unLink",factory:function(){return new Upe}},{key:"viewLink",factory:function(){return new zpe}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(i){return i.type==="link"||t(i)},o.insertData=function(i){var a=i.getData("text/plain");if((function(l){if(typeof l!="string")return!1;var c=l.match(Fpe);if(!c)return!1;var f=c[1];return!(!f||!Mpe.test(f)&&!Ipe.test(f))})(a)){if(!g8(o)){var u=o.selection;if(u!=null){var s=S.string(o,u);M$(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=ct(i,2),u=a[0],s=a[1];return I.getNodeType(u)!=="link"?r([u,s]):fe.string(u)===""?K.removeNodes(o,{at:s}):r([u,s])},o}},Vpe=Ae(1 .valueOf),Wpe=Le.RangeError,qpe=Le.RangeError,I$=Le.String,j$=Math.floor,cE=Ae((function(e){var t=Ht(_o(this)),n="",r=Mf(e);if(r<0||r==1/0)throw Wpe("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),j9=Ae("".slice),Bd=Ae(1 .toFixed),Sc=function(e,t,n){return t===0?n:t%2==1?Sc(e,t-1,n*e):Sc(e*e,t/2,n)},Jl=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=j$(o/1e7)},Xw=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=j$(r/t),r=r%t*1e7},L9=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=I$(e[t]);n=n===""?r:n+cE("0",7-r.length)+r}return n};function R9(e,t){return"w-e-image-container-"+I.findKey(e,t).id}Cn({target:"Number",proto:!0,forced:Wt((function(){return Bd(8e-5,3)!=="0.000"||Bd(.9,0)!=="1"||Bd(1.255,2)!=="1.25"||Bd(0xde0b6b3a7640080,0)!=="1000000000000000128"}))||!Wt((function(){Bd({})}))},{toFixed:function(e){var t,n,r,o,i=Vpe(this),a=Mf(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw qpe("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return I$(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=(function(c){for(var f=0,p=c;p>=4096;)f+=12,p/=4096;for(;p>=2;)f+=1,p/=2;return f})(i*Sc(2,69,1))-69)<0?i*Sc(2,-t,1):i/Sc(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Jl(u,0,n),r=a;r>=7;)Jl(u,1e7,0),r-=7;for(Jl(u,Sc(10,r,1),0),r=t-1;r>=23;)Xw(u,1<<23),r-=23;Xw(u,1<<r),Jl(u,1,1),Xw(u,2),l=L9(u)}else Jl(u,0,n),Jl(u,1<<-t,0),l=L9(u)+cE("0",a);return a>0?s+((o=l.length)<=a?"0."+cE("0",a-o)+l:j9(l,0,o-a)+"."+j9(l,o-a)):s+l}});var Gpe={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=i===void 0?"":i,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,p=f===void 0?"":f,d=c.height,m=d===void 0?"":d,v=I.isNodeSelected(n,e),h={};p&&(h.width="100%"),m&&(h.height="100%");var y=Be("img",{style:h,src:o,alt:a,"data-href":s}),g=n.isDisabled();return v&&!g?(function(b,w,x,k){var D=N("body"),T=R9(b,w),A=k.width,F=k.height,j=0,R=0,U=0,H=!1,G=null;function X(B){G=(function(){var M=N("#"+T);if(M.length===0)throw new Error("Cannot find image container elem");return M})(),j=B;var E=G.find("img");if(E.length===0)throw new Error("Cannot find image elem");R=E.width(),U=E.height(),D.on("mousemove",oe),D.on("mouseup",se);var O=I.getHoverbar(b);O&&O.hideAndClean()}var oe=rl((function(B){B.preventDefault();var E=B.clientX,O=R+(H?j-E:E-j),M=U*(O/R);G!=null&&(O<=15||M<=15||(G.css("width",O+"px"),G.css("height",M+"px")))}),100);function se(B){if(D.off("mousemove",oe),G!=null){var E=G.width().toFixed(2),O=G.height().toFixed(2),M={style:Ou(Ou({},w.style),{width:E+"px",height:O+"px"})};K.setNodes(b,M,{at:I.findPath(b,w)}),D.off("mouseup",se)}}var L={};return A&&(L.width=A),F&&(L.height=F),Be("div",{id:T,style:L,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(B){var E=N(B.target);E.hasClass("w-e-image-dragger")&&(B.preventDefault(),(E.hasClass("left-top")||E.hasClass("left-bottom"))&&(H=!0),X(B.clientX))}}},x,Be("div",{className:"w-e-image-dragger left-top"}),Be("div",{className:"w-e-image-dragger right-top"}),Be("div",{className:"w-e-image-dragger left-bottom"}),Be("div",{className:"w-e-image-dragger right-bottom"}))})(n,e,y,{width:p,height:m}):(function(b,w,x,k){var D=k.width,T=k.height,A={};return D&&(A.width=D),T&&(A.height=T),Be("div",{id:R9(b,w),style:A,className:"w-e-image-container"},x)})(n,e,y,{width:p,height:m})}},Kpe={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=N(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:Ho(r,"width"),height:Ho(r,"height")},children:[{text:""}]}}};function L$(e,t,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),Hu(this,void 0,void 0,(function(){var i,a;return Vu(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function R$(e,t,n){return Hu(this,void 0,void 0,(function(){var r;return Vu(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function Ns(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Hu(this,void 0,void 0,(function(){var o,i,a;return Vu(this,(function(u){switch(u.label){case 0:return[4,L$("insertImage",e,t,n,r)];case 1:return u.sent()?[4,R$("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:h8(o),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),I.getSelectedNodeByType(e,"image")&&e.move(1),tb(e)||(K.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function tb(e){var t=e.selection;return t==null||!ee.isCollapsed(t)||!!ct(S.nodes(e,{match:function(n){var r=I.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!S.isVoid(e,n)},universal:!0}),1)[0]}function jv(){return eb("w-e-insert-image")}var Xpe=(function(){function e(){this.title=de("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=jv(),this.altInputId=jv(),this.hrefInputId=jv(),this.buttonId=jv()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return tb(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=ct($r(de("image.src"),o),2),l=s[0],c=N(s[1]),f=ct($r(de("image.desc"),i),2),p=f[0],d=N(f[1]),m=ct($r(de("image.link"),a),2),v=m[0],h=N(m[1]),y=ct(Bf(u,de("common.ok")),1)[0];if(this.$content==null){var g=N("<div></div>");g.on("click","#"+u,(function(w){w.preventDefault();var x=g.find("#"+o).val().trim(),k=g.find("#"+i).val().trim(),D=g.find("#"+a).val().trim();n.insertImage(t,x,k,D),t.hidePanelOrModal()})),this.$content=g}var b=this.$content;return b.empty(),b.append(l),b.append(p),b.append(v),b.append(y),c.val(""),d.val(""),h.val(""),setTimeout((function(){c.focus()})),b[0]},e.prototype.insertImage=function(t,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(t.restoreSelection(),this.isDisabled(t)||Ns(t,n,r,o))},e})(),Ype=(function(){function e(){this.title=de("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||I.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||K.removeNodes(t,{match:function(r){return I.checkNodeType(r,"image")}})},e})();function Lv(){return eb("w-e-edit-image")}var Zpe=(function(){function e(){this.title=de("image.edit"),this.iconSvg=C$,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Lv(),this.altInputId=Lv(),this.hrefInputId=Lv(),this.buttonId=Lv()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return I.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!ee.isCollapsed(n)||I.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(t);if(s==null)throw new Error("Not found selected image node");var l=ct($r(de("image.src"),o),2),c=l[0],f=N(l[1]),p=ct($r(de("image.desc"),i),2),d=p[0],m=N(p[1]),v=ct($r(de("image.link"),a),2),h=v[0],y=N(v[1]),g=ct(Bf(u,de("common.ok")),1)[0];if(this.$content==null){var b=N("<div></div>");b.on("click","#"+u,(function(j){j.preventDefault();var R=b.find("#"+o).val(),U=b.find("#"+i).val(),H=b.find("#"+a).val();n.updateImage(t,R,U,H),t.hidePanelOrModal()})),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(d),w.append(h),w.append(g);var x=s,k=x.src,D=x.alt,T=D===void 0?"":D,A=x.href,F=A===void 0?"":A;return f.val(k),m.val(T),y.val(F),setTimeout((function(){f.focus()})),w[0]},e.prototype.updateImage=function(t,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(t.restoreSelection(),this.isDisabled(t)||(function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Hu(this,void 0,void 0,(function(){var f,p,d,m,v,h;return Vu(this,(function(y){switch(y.label){case 0:return[4,L$("editImage",a,u,s,l)];case 1:return y.sent()?[4,R$("editImage",a,u)]:[2];case 2:return f=y.sent(),(p=I.getSelectedNodeByType(a,"image"))==null||(d=p.style,m={src:f,alt:s,href:l,style:Ou(Ou({},d===void 0?{}:d),c)},K.setNodes(a,m,{match:function(g){return I.checkNodeType(g,"image")}}),v=I.getSelectedNodeByType(a,"image"),(h=a.getMenuConfig("editImage").onUpdatedImage)&&h(v)),[2]}}))}))})(t,n,r,o,i))},e})(),Jpe=(function(){function e(){this.title=de("image.viewLink"),this.iconSvg=S$,this.tag="button"}return e.prototype.getValue=function(t){var n=I.getSelectedNodeByType(t,"image");return n&&n.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},e})(),v8=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return I.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.getSelectedNode(t);if(r!=null){var o=I.getHoverbar(t);o&&o.hideAndClean();var i=r.style,a={style:Ou(Ou({},i===void 0?{}:i),{width:this.value,height:""})};K.setNodes(t,a,{match:function(u){return I.checkNodeType(u,"image")}})}}},e})(),Qpe=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return Ut(t,e),t})(v8),ehe=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return Ut(t,e),t})(v8),the=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return Ut(t,e),t})(v8),N9={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},nhe={renderElems:[Gpe],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,p=l.height,d=p===void 0?"":p,m="";return f&&(m+="width: "+f+";"),d&&(m+="height: "+d+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+m+'"/>'}}],parseElemsHtml:[Kpe],menus:[{key:"insertImage",factory:function(){return new Xpe},config:N9},{key:"deleteImage",factory:function(){return new Ype}},{key:"editImage",factory:function(){return new Zpe},config:N9},{key:"viewImageLink",factory:function(){return new Jpe}},{key:"imageWidth30",factory:function(){return new Qpe}},{key:"imageWidth50",factory:function(){return new ehe}},{key:"imageWidth100",factory:function(){return new the}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(o){return o.type==="image"||t(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},rhe={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=Be("div",{style:{margin:"5px 0"}},Be("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Be("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(i){var a=I.findPath(n,e),u={checked:i.target.checked};K.setNodes(n,u,{at:a})}}})),Be("span",null,t));return o}},ohe=(function(){function e(){this.title=de("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!I.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!I.getSelectedElems(t).some((function(n){if(S.isVoid(t,n)&&S.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0}))},e.prototype.exec=function(t,n){var r=this.isActive(t);K.setNodes(t,{type:r?"paragraph":"todo"})},e})(),ihe={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=N(e);(t=t.filter((function(i){return!!me.isText(i)||!!n.isInline(i)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:t}}},ahe={renderElems:[rhe],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=N(e).find("li"),n=N('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[ihe],menus:[{key:"todo",factory:function(){return new ohe}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var o=e.selection;if(o&&ee.isCollapsed(o)){var i=I.getSelectedNodeByType(e,"todo");if(i&&fe.string(i).length===0)return void K.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},uhe={type:"blockquote",renderElem:function(e,t,n){return Be("blockquote",null,t)}},she={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=N(e);return(t=t.filter((function(o){return!!me.isText(o)||!!n.isInline(o)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},lhe=(function(){function e(){this.title=de("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!I.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!ct(S.nodes(t,{match:function(n){var r=I.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";K.setNodes(t,{type:r},{mode:"highest"})}},e})(),che={key:"blockquote",factory:function(){return new lhe}},fhe=Ae([].slice),dhe=s8("slice"),phe=Xr("species"),Yw=Le.Array,hhe=Math.max;Cn({target:"Array",proto:!0,forced:!dhe},{slice:function(e,t){var n,r,o,i=Pf(this),a=J1(i),u=Ch(e,a),s=Ch(t===void 0?a:t,a);if(ry(i)&&(n=i.constructor,(u8(n)&&(n===Yw||ry(n.prototype))||yi(n)&&(n=n[phe])===null)&&(n=void 0),n===Yw||n===void 0))return fhe(i,u,s);for(r=new(n===void 0?Yw:n)(hhe(s-u,0)),o=0;u<s;u++,o++)u in i&&m$(r,o,i[u]);return r.length=o,r}});var ghe={renderElems:[uhe],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[she],menus:[che],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(o==null)return t();var i=ct(S.nodes(e,{match:function(c){return I.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=I.findPath(e,a),s=S.end(e,u);if(Ue.equals(s,o.focus)){var l=fe.string(a);if(l&&l.slice(-1)==="\n")return e.deleteBackward("character"),void K.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},vhe=(function(){function e(){this.title=de("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!ct(S.nodes(t,{match:function(n){return I.getNodeType(n)==="pre"||!!S.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=N('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",(function(i){var a=i.target;if(a!=null){i.preventDefault();var u=N(a).text();t.insertText(u)}})),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach((function(i){var a=N("<li>"+i+"</li>");r.append(a)})),r[0]},e})(),mhe={menus:[{key:"emotion",factory:function(){return new vhe},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},yhe={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},bhe={selector:"font",preParseHtml:function(e){var t=N(e);if(jf(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",yhe[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},whe=Ae("".indexOf);Cn({target:"String",proto:!0,forced:!k$("includes")},{includes:function(e){return!!~whe(Ht(_o(this)),Ht(D$(e)),arguments.length>1?arguments[1]:void 0)}});var Ia,Im,Rv=function(e){return e&&e.Math==Math&&e},He=Rv(typeof globalThis=="object"&&globalThis)||Rv(typeof window=="object"&&window)||Rv(typeof self=="object"&&self)||Rv(typeof ey=="object"&&ey)||(function(){return this})()||Function("return this")(),m8=Function.prototype,$9=m8.apply,_he=m8.bind,U9=m8.call,N$=typeof Reflect=="object"&&Reflect.apply||(_he?U9.bind($9):function(){return U9.apply($9,arguments)}),$$=Function.prototype,fE=$$.bind,dE=$$.call,xhe=fE&&fE.bind(dE),Jt=fE?function(e){return e&&xhe(dE,e)}:function(e){return e&&function(){return dE.apply(e,arguments)}},rr=function(e){return typeof e=="function"},Wr=function(e){try{return!!e()}catch(t){return!0}},Er=!Wr((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Pd=Function.prototype.call,Ci=Pd.bind?Pd.bind(Pd):function(){return Pd.apply(Pd,arguments)},z9={}.propertyIsEnumerable,H9=Object.getOwnPropertyDescriptor,Che=H9&&!z9.call({1:2},1)?function(e){var t=H9(this,e);return!!t&&t.enumerable}:z9,y8={f:Che},cl=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},She=Jt({}.toString),Ehe=Jt("".slice),$s=function(e){return Ehe(She(e),8,-1)},Zw=He.Object,Dhe=Jt("".split),U$=Wr((function(){return!Zw("z").propertyIsEnumerable(0)}))?function(e){return $s(e)=="String"?Dhe(e,""):Zw(e)}:Zw,khe=He.TypeError,b8=function(e){if(e==null)throw khe("Can't call method on "+e);return e},Li=function(e){return U$(b8(e))},jo=function(e){return typeof e=="object"?e!==null:rr(e)},oo={},V9=function(e){return rr(e)?e:void 0},Og=function(e,t){return arguments.length<2?V9(oo[e])||V9(He[e]):oo[e]&&oo[e][t]||He[e]&&He[e][t]},z$=Jt({}.isPrototypeOf),Jw=Og("navigator","userAgent")||"",W9=He.process,q9=He.Deno,G9=W9&&W9.versions||q9&&q9.version,K9=G9&&G9.v8;K9&&(Im=(Ia=K9.split("."))[0]>0&&Ia[0]<4?1:+(Ia[0]+Ia[1])),!Im&&Jw&&(!(Ia=Jw.match(/Edge\/(\d+)/))||Ia[1]>=74)&&(Ia=Jw.match(/Chrome\/(\d+)/))&&(Im=+Ia[1]);var ay=Im,fi=!!Object.getOwnPropertySymbols&&!Wr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ay&&ay<41})),w8=fi&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ohe=He.Object,Ic=w8?function(e){return typeof e=="symbol"}:function(e){var t=Og("Symbol");return rr(t)&&z$(t.prototype,Ohe(e))},Ahe=He.String,The=He.TypeError,H$=function(e){if(rr(e))return e;throw The((function(t){try{return Ahe(t)}catch(n){return"Object"}})(e)+" is not a function")},Bhe=He.TypeError,Phe=Object.defineProperty,fu=He["__core-js_shared__"]||(function(e,t){try{Phe(He,e,{value:t,configurable:!0,writable:!0})}catch(n){He[e]=t}return t})("__core-js_shared__",{}),kl=K1((function(e){(e.exports=function(t,n){return fu[t]||(fu[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Fhe=He.Object,Ag=function(e){return Fhe(b8(e))},Mhe=Jt({}.hasOwnProperty),lt=Object.hasOwn||function(e,t){return Mhe(Ag(e),t)},Ihe=0,jhe=Math.random(),Lhe=Jt(1 .toString),uy=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Lhe(++Ihe+jhe,36)},Fd=kl("wks"),Us=He.Symbol,X9=Us&&Us.for,Rhe=w8?Us:Us&&Us.withoutSetter||uy,Yr=function(e){if(!lt(Fd,e)||!fi&&typeof Fd[e]!="string"){var t="Symbol."+e;fi&&lt(Us,e)?Fd[e]=Us[e]:Fd[e]=w8&&X9?X9(t):Rhe(t)}return Fd[e]},Nhe=He.TypeError,$he=Yr("toPrimitive"),Lf=function(e){var t=(function(n,r){if(!jo(n)||Ic(n))return n;var o,i,a=(o=n[$he])==null?void 0:H$(o);if(a){if(i=Ci(a,n,r),!jo(i)||Ic(i))return i;throw Nhe("Can't convert object to primitive value")}return(function(u,s){var l,c;if(rr(l=u.toString)&&!jo(c=Ci(l,u))||rr(l=u.valueOf)&&!jo(c=Ci(l,u)))return c;throw Bhe("Can't convert object to primitive value")})(n)})(e,"string");return Ic(t)?t:t+""},pE=He.document,Uhe=jo(pE)&&jo(pE.createElement),V$=function(e){return Uhe?pE.createElement(e):{}},W$=!Er&&!Wr((function(){return Object.defineProperty(V$("div"),"a",{get:function(){return 7}}).a!=7})),Y9=Object.getOwnPropertyDescriptor,_8={f:Er?Y9:function(e,t){if(e=Li(e),t=Lf(t),W$)try{return Y9(e,t)}catch(n){}if(lt(e,t))return cl(!Ci(y8.f,e,t),e[t])}},zhe=/#|\.prototype\./,Tg=function(e,t){var n=Vhe[Hhe(e)];return n==qhe||n!=Whe&&(rr(t)?Wr(t):!!t)},Hhe=Tg.normalize=function(e){return String(e).replace(zhe,".").toLowerCase()},Vhe=Tg.data={},Whe=Tg.NATIVE="N",qhe=Tg.POLYFILL="P",Ghe=Tg,Z9=Jt(Jt.bind),q$=function(e,t){return H$(e),t===void 0?e:Z9?Z9(e,t):function(){return e.apply(t,arguments)}},Khe=He.String,Xhe=He.TypeError,fl=function(e){if(jo(e))return e;throw Xhe(Khe(e)+" is not an object")},Yhe=He.TypeError,J9=Object.defineProperty,Ol={f:Er?J9:function(e,t,n){if(fl(e),t=Lf(t),fl(n),W$)try{return J9(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Yhe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},pi=Er?function(e,t,n){return Ol.f(e,t,cl(1,n))}:function(e,t,n){return e[t]=n,e},Zhe=_8.f,Jhe=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return N$(e,this,arguments)};return t.prototype=e.prototype,t},Wa=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,p=e.stat,d=e.proto,m=f?He:p?He[c]:(He[c]||{}).prototype,v=f?oo:oo[c]||pi(oo,c,{})[c],h=v.prototype;for(o in t)n=!Ghe(f?o:c+(p?".":"#")+o,e.forced)&&m&&lt(m,o),a=v[o],n&&(u=e.noTargetGet?(l=Zhe(m,o))&&l.value:m[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?q$(i,He):e.wrap&&n?Jhe(i):d&&rr(i)?Jt(i):i,(e.sham||i&&i.sham||a&&a.sham)&&pi(s,"sham",!0),pi(v,o,s),d&&(lt(oo,r=c+"Prototype")||pi(oo,r,{}),pi(oo[r],o,i),e.real&&h&&!h[o]&&pi(h,o,i)))},sy=Array.isArray||function(e){return $s(e)=="Array"},Qhe=Math.ceil,ege=Math.floor,x8=function(e){var t=+e;return t!=t||t===0?0:(t>0?ege:Qhe)(t)},tge=Math.min,nb=function(e){return(t=e.length)>0?tge(x8(t),9007199254740991):0;var t},hE=function(e,t,n){var r=Lf(t);r in e?Ol.f(e,r,cl(0,n)):e[r]=n},G$={};G$[Yr("toStringTag")]="z";var C8=String(G$)==="[object z]",nge=Yr("toStringTag"),rge=He.Object,oge=$s((function(){return arguments})())=="Arguments",rb=C8?$s:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch(a){}})(t=rge(e),nge))=="string"?n:oge?$s(t):(r=$s(t))=="Object"&&rr(t.callee)?"Arguments":r},ige=Jt(Function.toString);rr(fu.inspectSource)||(fu.inspectSource=function(e){return ige(e)});var K$=fu.inspectSource,X$=function(){},age=[],Y$=Og("Reflect","construct"),S8=/^\s*(?:class|function)\b/,uge=Jt(S8.exec),sge=!S8.exec(X$),Md=function(e){if(!rr(e))return!1;try{return Y$(X$,age,e),!0}catch(t){return!1}},lge=!Y$||Wr((function(){var e;return Md(Md.call)||!Md(Object)||!Md((function(){e=!0}))||e}))?function(e){if(!rr(e))return!1;switch(rb(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return sge||!!uge(S8,K$(e))}:Md,cge=Yr("species"),Q9=He.Array,Z$=function(e,t){return new((function(n){var r;return sy(n)&&(r=n.constructor,(lge(r)&&(r===Q9||sy(r.prototype))||jo(r)&&(r=r[cge])===null)&&(r=void 0)),r===void 0?Q9:r})(e))(t===0?0:t)},fge=Yr("species"),J$=Yr("isConcatSpreadable"),eB=He.TypeError,dge=ay>=51||!Wr((function(){var e=[];return e[J$]=!1,e.concat()[0]!==e})),pge=ay>=51||!Wr((function(){var e=[];return(e.constructor={})[fge]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),hge=function(e){if(!jo(e))return!1;var t=e[J$];return t!==void 0?!!t:sy(e)};Wa({target:"Array",proto:!0,forced:!dge||!pge},{concat:function(e){var t,n,r,o,i,a=Ag(this),u=Z$(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(hge(i=t===-1?a:arguments[t])){if(s+(o=nb(i))>9007199254740991)throw eB("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&hE(u,s,i[n])}else{if(s>=9007199254740991)throw eB("Maximum allowed index exceeded");hE(u,s++,i)}return u.length=s,u}});var Nv,gge=He.String,ly=function(e){if(rb(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return gge(e)},vge=Math.max,mge=Math.min,gE=function(e,t){var n=x8(e);return n<0?vge(n+t,0):mge(n,t)},yge=function(e){return function(t,n,r){var o,i=Li(t),a=nb(i),u=gE(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},bge={indexOf:yge(!1)},Bg={},wge=bge.indexOf,tB=Jt([].push),Q$=function(e,t){var n,r=Li(e),o=0,i=[];for(n in r)!lt(Bg,n)&&lt(r,n)&&tB(i,n);for(;t.length>o;)lt(r,n=t[o++])&&(~wge(i,n)||tB(i,n));return i},cy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],E8=Object.keys||function(e){return Q$(e,cy)},_ge=Er?Object.defineProperties:function(e,t){fl(e);for(var n,r=Li(t),o=E8(t),i=o.length,a=0;i>a;)Ol.f(e,n=o[a++],r[n]);return e},xge=Og("document","documentElement"),nB=kl("keys"),ob=function(e){return nB[e]||(nB[e]=uy(e))},eU=ob("IE_PROTO"),Qw=function(){},tU=function(e){return"<script>"+e+"<\/script>"},rB=function(e){e.write(tU("")),e.close();var t=e.parentWindow.Object;return e=null,t},jm=function(){try{Nv=new ActiveXObject("htmlfile")}catch(r){}var e,t;jm=typeof document<"u"?document.domain&&Nv?rB(Nv):((t=V$("iframe")).style.display="none",xge.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(tU("document.F=Object")),e.close(),e.F):rB(Nv);for(var n=cy.length;n--;)delete jm.prototype[cy[n]];return jm()};Bg[eU]=!0;var fy,Np,dy,dl=Object.create||function(e,t){var n;return e!==null?(Qw.prototype=fl(e),n=new Qw,Qw.prototype=null,n[eU]=e):n=jm(),t===void 0?n:_ge(n,t)},Cge=cy.concat("length","prototype"),nU={f:Object.getOwnPropertyNames||function(e){return Q$(e,Cge)}},Sge=He.Array,Ege=Math.max,oB=nU.f,iB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rU={f:function(e){return iB&&$s(e)=="Window"?(function(t){try{return oB(t)}catch(n){return(function(r,o,i){for(var a=nb(r),u=gE(void 0,a),s=gE(a,a),l=Sge(Ege(s-u,0)),c=0;u<s;u++,c++)hE(l,c,r[u]);return l.length=c,l})(iB)}})(e):oB(Li(e))}},e_={f:Object.getOwnPropertySymbols},Dge=Jt([].slice),py=function(e,t,n,r){pi(e,t,n)},D8={f:Yr},kge=Ol.f,nn=function(e){var t=oo.Symbol||(oo.Symbol={});lt(t,e)||kge(t,e,{value:D8.f(e)})},Oge=C8?{}.toString:function(){return"[object "+rb(this)+"]"},Age=Ol.f,aB=Yr("toStringTag"),hy=function(e,t,n,r){if(e){var o=n?e:e.prototype;lt(o,aB)||Age(o,aB,{configurable:!0,value:t}),r&&!C8&&pi(o,"toString",Oge)}},uB=He.WeakMap,Tge=rr(uB)&&/native code/.test(K$(uB)),vE=He.TypeError,Bge=He.WeakMap;if(Tge||fu.state){var as=fu.state||(fu.state=new Bge),Pge=Jt(as.get),sB=Jt(as.has),Fge=Jt(as.set);fy=function(e,t){if(sB(as,e))throw new vE("Object already initialized");return t.facade=e,Fge(as,e,t),t},Np=function(e){return Pge(as,e)||{}},dy=function(e){return sB(as,e)}}else{var Ql=ob("state");Bg[Ql]=!0,fy=function(e,t){if(lt(e,Ql))throw new vE("Object already initialized");return t.facade=e,pi(e,Ql,t),t},Np=function(e){return lt(e,Ql)?e[Ql]:{}},dy=function(e){return lt(e,Ql)}}var Rf={set:fy,get:Np,has:dy,enforce:function(e){return dy(e)?Np(e):fy(e,{})},getterFor:function(e){return function(t){var n;if(!jo(t)||(n=Np(t)).type!==e)throw vE("Incompatible receiver, "+e+" required");return n}}},lB=Jt([].push),ja=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=Ag(s),v=U$(m),h=q$(l,c),y=nb(v),g=0,b=f||Z$,w=t?b(s,y):n||a?b(s,0):void 0;y>g;g++)if((u||g in v)&&(d=h(p=v[g],g,m),e))if(t)w[g]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:lB(w,p)}else switch(e){case 4:return!1;case 7:lB(w,p)}return i?-1:r||o?o:w}},ib=[ja(0),ja(1),ja(2),ja(3),ja(4),ja(5),ja(6),ja(7)][0],mr=ob("hidden"),cB=Yr("toPrimitive"),Mge=Rf.set,fB=Rf.getterFor("Symbol"),Lo=Object.prototype,Ka=He.Symbol,tu=Ka&&Ka.prototype,dB=He.TypeError,t_=He.QObject,Id=Og("JSON","stringify"),oU=_8.f,Xa=Ol.f,iU=rU.f,Ige=y8.f,aU=Jt([].push),da=kl("symbols"),Pg=kl("op-symbols"),n_=kl("string-to-symbol-registry"),r_=kl("symbol-to-string-registry"),jge=kl("wks"),o_=!t_||!t_.prototype||!t_.prototype.findChild,mE=Er&&Wr((function(){return dl(Xa({},"a",{get:function(){return Xa(this,"a",{value:7}).a}})).a!=7}))?function(e,t,n){var r=oU(Lo,t);r&&delete Lo[t],Xa(e,t,n),r&&e!==Lo&&Xa(Lo,t,r)}:Xa,i_=function(e,t){var n=da[e]=dl(tu);return Mge(n,{type:"Symbol",tag:e,description:t}),Er||(n.description=t),n},gy=function(e,t,n){e===Lo&&gy(Pg,t,n),fl(e);var r=Lf(t);return fl(n),lt(da,r)?(n.enumerable?(lt(e,mr)&&e[mr][r]&&(e[mr][r]=!1),n=dl(n,{enumerable:cl(0,!1)})):(lt(e,mr)||Xa(e,mr,cl(1,{})),e[mr][r]=!0),mE(e,r,n)):Xa(e,r,n)},pB=function(e,t){fl(e);var n=Li(t),r=E8(n).concat(yE(n));return ib(r,(function(o){Er&&!Ci(uU,n,o)||gy(e,o,n[o])})),e},uU=function(e){var t=Lf(e),n=Ci(Ige,this,t);return!(this===Lo&&lt(da,t)&&!lt(Pg,t))&&(!(n||!lt(this,t)||!lt(da,t)||lt(this,mr)&&this[mr][t])||n)},hB=function(e,t){var n=Li(e),r=Lf(t);if(n!==Lo||!lt(da,r)||lt(Pg,r)){var o=oU(n,r);return!o||!lt(da,r)||lt(n,mr)&&n[mr][r]||(o.enumerable=!0),o}},gB=function(e){var t=iU(Li(e)),n=[];return ib(t,(function(r){lt(da,r)||lt(Bg,r)||aU(n,r)})),n},yE=function(e){var t=e===Lo,n=iU(t?Pg:Li(e)),r=[];return ib(n,(function(o){!lt(da,o)||t&&!lt(Lo,o)||aU(r,da[o])})),r};if(fi||(tu=(Ka=function(){if(z$(tu,this))throw dB("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?ly(arguments[0]):void 0,t=uy(e),n=function(r){this===Lo&&Ci(n,Pg,r),lt(this,mr)&&lt(this[mr],t)&&(this[mr][t]=!1),mE(this,t,cl(1,r))};return Er&&o_&&mE(Lo,t,{configurable:!0,set:n}),i_(t,e)}).prototype,py(tu,"toString",(function(){return fB(this).tag})),py(Ka,"withoutSetter",(function(e){return i_(uy(e),e)})),y8.f=uU,Ol.f=gy,_8.f=hB,nU.f=rU.f=gB,e_.f=yE,D8.f=function(e){return i_(Yr(e),e)},Er&&Xa(tu,"description",{configurable:!0,get:function(){return fB(this).description}})),Wa({global:!0,wrap:!0,forced:!fi,sham:!fi},{Symbol:Ka}),ib(E8(jge),(function(e){nn(e)})),Wa({target:"Symbol",stat:!0,forced:!fi},{for:function(e){var t=ly(e);if(lt(n_,t))return n_[t];var n=Ka(t);return n_[t]=n,r_[n]=t,n},keyFor:function(e){if(!Ic(e))throw dB(e+" is not a symbol");if(lt(r_,e))return r_[e]},useSetter:function(){o_=!0},useSimple:function(){o_=!1}}),Wa({target:"Object",stat:!0,forced:!fi,sham:!Er},{create:function(e,t){return t===void 0?dl(e):pB(dl(e),t)},defineProperty:gy,defineProperties:pB,getOwnPropertyDescriptor:hB}),Wa({target:"Object",stat:!0,forced:!fi},{getOwnPropertyNames:gB,getOwnPropertySymbols:yE}),Wa({target:"Object",stat:!0,forced:Wr((function(){e_.f(1)}))},{getOwnPropertySymbols:function(e){return e_.f(Ag(e))}}),Id){var Lge=!fi||Wr((function(){var e=Ka();return Id([e])!="[null]"||Id({a:e})!="{}"||Id(Object(e))!="{}"}));Wa({target:"JSON",stat:!0,forced:Lge},{stringify:function(e,t,n){var r=Dge(arguments),o=t;if((jo(t)||e!==void 0)&&!Ic(e))return sy(t)||(t=function(i,a){if(rr(o)&&(a=Ci(o,this,i,a)),!Ic(a))return a}),r[1]=t,N$(Id,null,r)}})}if(!tu[cB]){var Rge=tu.valueOf;py(tu,cB,(function(e){return Ci(Rge,this)}))}hy(Ka,"Symbol"),Bg[mr]=!0,nn("asyncIterator"),nn("hasInstance"),nn("isConcatSpreadable"),nn("iterator"),nn("match"),nn("matchAll"),nn("replace"),nn("search"),nn("species"),nn("split"),nn("toPrimitive"),nn("toStringTag"),nn("unscopables"),hy(He.JSON,"JSON",!0);var nu,vB,mB,Nge=oo.Symbol,zs={},sU=Function.prototype,$ge=Er&&Object.getOwnPropertyDescriptor,yB=lt(sU,"name"),Uge={PROPER:yB&&(function(){}).name==="something",CONFIGURABLE:yB&&(!Er||Er&&$ge(sU,"name").configurable)},zge=!Wr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),bB=ob("IE_PROTO"),bE=He.Object,Hge=bE.prototype,wE=zge?bE.getPrototypeOf:function(e){var t=Ag(e);if(lt(t,bB))return t[bB];var n=t.constructor;return rr(n)&&t instanceof n?n.prototype:t instanceof bE?Hge:null},_E=Yr("iterator"),lU=!1;[].keys&&("next"in(mB=[].keys())?(vB=wE(wE(mB)))!==Object.prototype&&(nu=vB):lU=!0);var Vge=nu==null||Wr((function(){var e={};return nu[_E].call(e)!==e}));nu=Vge?{}:dl(nu),rr(nu[_E])||py(nu,_E,(function(){return this}));var cU={IteratorPrototype:nu,BUGGY_SAFARI_ITERATORS:lU},Wge=cU.IteratorPrototype,qge=function(){return this};He.String,He.TypeError,Object.setPrototypeOf||"__proto__"in{}&&(function(){var e={};try{Jt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch(t){}})();var Gge=Uge.PROPER,a_=cU.BUGGY_SAFARI_ITERATORS,Kge=Yr("iterator"),Xge=function(){return this},fU=function(e,t,n,r,o,i,a){(function(h,y,g,b){var w=y+" Iterator";h.prototype=dl(Wge,{next:cl(1,g)}),hy(h,w,!1,!0),zs[w]=qge})(n,t,r);var u,s,l=function(h){if(h===o&&m)return m;if(!a_&&h in p)return p[h];switch(h){case"keys":case"values":case"entries":return function(){return new n(this,h)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,p=e.prototype,d=p[Kge]||p["@@iterator"]||o&&p[o],m=!a_&&d||l(o),v=t=="Array"&&p.entries||d;return v&&(u=wE(v.call(new e)))!==Object.prototype&&u.next&&(hy(u,c,!0,!0),zs[c]=Xge),Gge&&o=="values"&&d&&d.name!=="values"&&(f=!0,m=function(){return Ci(d,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Wa({target:t,proto:!0,forced:a_||f},s)),zs[t]=m,s},Yge=Rf.set,Zge=Rf.getterFor("Array Iterator");fU(Array,"Array",(function(e,t){Yge(this,{type:"Array Iterator",target:Li(e),index:0,kind:t})}),(function(){var e=Zge(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),zs.Arguments=zs.Array;var wB=Yr("toStringTag");for(var u_ in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var _B=He[u_],s_=_B&&_B.prototype;s_&&rb(s_)!==wB&&pi(s_,wB,u_),zs[u_]=zs.Array}var Jge=Nge;nn("asyncDispose"),nn("dispose"),nn("matcher"),nn("metadata"),nn("observable"),nn("patternMatch"),nn("replaceAll");var $v=Jge,Qge=Jt("".charAt),xB=Jt("".charCodeAt),eve=Jt("".slice),tve=function(e){return function(t,n){var r,o,i=ly(b8(t)),a=x8(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=xB(i,a))<55296||r>56319||a+1===u||(o=xB(i,a+1))<56320||o>57343?e?Qge(i,a):r:e?eve(i,a,a+2):o-56320+(r-55296<<10)+65536}},nve=tve(!0),rve=Rf.set,ove=Rf.getterFor("String Iterator");fU(String,"String",(function(e){rve(this,{type:"String Iterator",string:ly(e),index:0})}),(function(){var e,t=ove(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=nve(n,r),t.index+=e.length,{value:e,done:!1})}));var ive=D8.f("iterator"),ave=K1((function(e){function t(n){return typeof $v=="function"&&typeof ive=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof $v=="function"&&r.constructor===$v&&r!==$v.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),dU=(function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e})(ave),uve=Z1.EXISTS,sve=Ff.f,pU=Function.prototype,lve=Ae(pU.toString),hU=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,cve=Ae(hU.exec);Yo&&!uve&&sve(pU,"name",{configurable:!0,get:function(){try{return cve(hU,lve(this))[1]}catch(e){return""}}});var gU=(function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.mark,r=S.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!ct(S.nodes(t,{match:function(n){return I.getNodeType(n)==="pre"||!!S.isVoid(t,n)},universal:!0}),1)[0])},e.prototype.exec=function(t,n){var r=this.mark;n?t.addMark(r,n):t.removeMark(r)},e})(),fve=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=de("fontSize.title"),n.iconSvg=jde,n.mark="fontSize",n}return Ut(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:de("fontSize.default"),value:""}),i.forEach((function(u){if(typeof u=="string")r.push({text:u,value:u});else if(dU(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}}));var a=this.getValue(n);return r.forEach((function(u){u.value===a?u.selected=!0:delete u.selected})),r},t})(gU),dve=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=de("fontFamily.title"),n.iconSvg=Lde,n.mark="fontFamily",n.selectPanelWidth=150,n}return Ut(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:de("fontFamily.default"),value:""}),i.forEach((function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(dU(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}}));var a=this.getValue(n);return r.forEach((function(u){u.value===a?u.selected=!0:delete u.selected})),r},t})(gU),pve={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&ll(i,{fontSize:r}),o&&ll(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!me.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((p8(t)||jf(n=N(t))!=="span")&&(n=N("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),If(n)):t},preParseHtml:[bhe],parseStyleHtml:function(e,t,n){var r=N(e);if(!me.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=Ho(r,"font-size"),s=a.find((function(d){return d.value&&d.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=Ho(r,"font-family").replace(/"/g,""),p=c.find((function(d){return d.value&&d.value===f}))||c.includes(f);return f&&p&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new fve},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new dve},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},hve={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=N(e),n=Ho(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},vU=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=ct(S.nodes(t,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":ct(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=ct(S.nodes(t,{match:function(r){var o=I.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e})(),gve=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=de("indent.decrease"),n.iconSvg=Rde,n}return Ut(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){K.setNodes(n,{indent:null},{match:function(o){return we.isElement(o)}})},t})(vU),vve=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=de("indent.increase"),n.iconSvg=Nde,n}return Ut(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){K.setNodes(n,{indent:"2em"},{match:function(o){return we.isElement(o)},mode:"highest"})},t})(vU),mve={renderStyle:function(e,t){if(!we.isElement(e))return t;var n=e.indent,r=t;return n&&ll(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!we.isElement(e))return t;var n=e.indent;if(!n)return t;var r=N(t);return r.css("text-indent",n),If(r)},preParseHtml:[hve],parseStyleHtml:function(e,t,n){var r=N(e);if(!we.isElement(t))return t;var o=t,i=Ho(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new vve}},{key:"delIndent",factory:function(){return new gve}}]},ab=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=ct(S.nodes(t,{match:function(r){var o=I.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!I.getSelectedElems(t).some((function(n){if(S.isVoid(t,n)&&S.isBlock(t,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0}))},e})(),yve=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=de("justify.left"),n.iconSvg=$de,n}return Ut(t,e),t.prototype.exec=function(n,r){K.setNodes(n,{textAlign:"left"},{match:function(o){return we.isElement(o)&&!n.isInline(o)}})},t})(ab),bve=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=de("justify.right"),n.iconSvg=Ude,n}return Ut(t,e),t.prototype.exec=function(n,r){K.setNodes(n,{textAlign:"right"},{match:function(o){return we.isElement(o)&&!n.isInline(o)}})},t})(ab),wve=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=de("justify.center"),n.iconSvg=zde,n}return Ut(t,e),t.prototype.exec=function(n,r){K.setNodes(n,{textAlign:"center"},{match:function(o){return we.isElement(o)&&!n.isInline(o)}})},t})(ab),_ve=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=de("justify.justify"),n.iconSvg=Hde,n}return Ut(t,e),t.prototype.exec=function(n,r){K.setNodes(n,{textAlign:"justify"},{match:function(o){return we.isElement(o)&&!n.isInline(o)}})},t})(ab),xve={renderStyle:function(e,t){if(!we.isElement(e))return t;var n=e.textAlign,r=t;return n&&ll(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!we.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=N(t);return r.css("text-align",n),If(r)},parseStyleHtml:function(e,t,n){var r=N(e);if(!we.isElement(t))return t;var o=t,i=Ho(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new yve}},{key:"justifyRight",factory:function(){return new bve}},{key:"justifyCenter",factory:function(){return new wve}},{key:"justifyJustify",factory:function(){return new _ve}}]},Cve=(function(){function e(){this.title=de("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:de("lineHeight.default"),value:""}),o.forEach((function(a){n.push({text:a,value:a})}));var i=this.getValue(t);return n.forEach((function(a){a.value===i?a.selected=!0:delete a.selected})),n},e.prototype.getMatchNode=function(t){var n=ct(S.nodes(t,{match:function(r){var o=I.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getMatchNode(t);return n==null?"":we.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){K.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e})(),Sve={renderStyle:function(e,t){if(!we.isElement(e))return t;var n=e.lineHeight,r=t;return n&&ll(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!we.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=N(t);return r.css("line-height",n),If(r)},parseStyleHtml:function(e,t,n){var r=N(e);if(!we.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=Ho(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Cve},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Eve=(function(){function e(){this.title=de("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.redo=="function"&&t.redo()},e})(),Dve=(function(){function e(){this.title=de("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.undo=="function"&&t.undo()},e})(),kve={menus:[{key:"redo",factory:function(){return new Eve}},{key:"undo",factory:function(){return new Dve}}]},Ove={type:"divider",renderElem:function(e,t,n){return rf("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:I.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[rf("hr")])}},Ave=(function(){function e(){this.title=de("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!I.getSelectedElems(t).some((function(n){if(t.isVoid(n))return!0;var r=I.getNodeType(n);return r==="table"||r==="pre"||void 0}))},e.prototype.exec=function(t,n){K.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e})(),Tve={renderElems:[Ove],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Ave}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="divider"||t(o)},r.normalizeNode=function(o){var i=ct(o,2),a=i[0],u=i[1];if(I.getNodeType(a)!=="divider")return n([a,u]);I.isLastNode(r,a)&&K.insertNodes(r,I.genEmptyParagraph(),{at:[u[0]+1]})},r}},Bve=Q1.map;Cn({target:"Array",proto:!0,forced:!s8("map")},{map:function(e){return Bve(this,e,arguments.length>1?arguments[1]:void 0)}});var Pve=Ae([].join),Fve=X1!=Object,Mve=w$("join",",");Cn({target:"Array",proto:!0,forced:Fve||!Mve},{join:function(e){return Pve(Pf(this),e===void 0?",":e)}});var Ive=(function(){function e(){this.title=de("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(t){var n=I.getSelectedNodeByType(t,"code");if(n==null)return null;var r=I.getParentNode(t,n);return r==null||I.getNodeType(r)!=="pre"?null:n},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);return n==null?"":n.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var n=I.getSelectedElems(t);return!!n.some((function(r){return t.isVoid(r)}))||!n.some((function(r){var o=I.getNodeType(r);if(o==="pre"||o==="paragraph")return!0}))},e.prototype.exec=function(t,n){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,n.toString())},e.prototype.changeToPlainText=function(t){var n=this.getSelectCodeElem(t);if(n!=null){var r=fe.string(n);K.removeNodes(t,{mode:"highest"});var o=r.split("\n").map((function(i){return{type:"paragraph",children:[{text:i}]}}));K.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,o,i=[],a=S.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var u=b$(a),s=u.next();!s.done;s=u.next()){var l=ct(s.value,1)[0];l&&i.push(fe.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}K.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join("\n")}]}]};K.insertNodes(t,c,{mode:"highest"})},e})(),jve={key:"codeBlock",factory:function(){return new Ive}};Cn({target:"String",proto:!0,forced:xp("anchor")},{anchor:function(e){return _p(this,"a","name",e)}}),f8("match",(function(e,t,n){return[function(r){var o=_o(this),i=r==null?void 0:Y1(r,e);return i?rn(i,r,o):new RegExp(r)[e](Ht(o))},function(r){var o=Ur(this),i=Ht(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return Eh(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Eh(o,i))!==null;){var f=Ht(s[0]);l[c]=f,f===""&&(o.lastIndex=d8(i,Sg(o.lastIndex),u)),c++}return c===0?null:l}]}));var Lve={type:"pre",renderElem:function(e,t,n){return Be("pre",null,t)}},Rve={type:"code",renderElem:function(e,t,n){return Be("code",null,t)}},Nve={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=N(e);return(t=t.filter((function(o){return I.getNodeType(o)==="code"}))).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(o){return I.getNodeType(o)==="code"}))}}},$ve={menus:[jve],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var i=I.getSelectedNodeByType(o,"code");if(i!=null){var a=(function(l,c){var f=c.selection;if(f==null)return"";var p=fe.string(l),d=f.anchor.offset,m=p.slice(0,d).split("\n"),v=m.length;return v===0?"":m[v-1]})(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText("\n"+s)}}o.insertText("\n")}else t()},o.normalizeNode=function(i){var a=ct(i,2),u=a[0],s=a[1],l=I.getNodeType(u);return l==="code"&&s.length<=1&&K.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(I.isLastNode(o,u)&&K.insertNodes(o,I.genEmptyParagraph(),{at:[s[0]+1]}),I.getNodeType(u.children[0])!=="code"&&(K.unwrapNodes(o),K.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([u,s])},o.insertData=function(i){if(I.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");S.insertText(o,a)}else r(i)},o},renderElems:[Lve,Rve],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=N(e);if(jf(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:N(e)[0].textContent||""}]}}},Nve]},Uve=(function(){function e(){this.title=de("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e})(),zve={menus:[{key:"fullScreen",factory:function(){return new Uve}}]},Hve=(function(){function e(){this.title=de("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!ee.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var o=[r.anchor.path[0]];K.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(S.start(t,o))}},e})(),Vve=[epe,Ppe,pve,mve,xve,Sve,nhe,Tve,mhe,Hpe,$ve,ghe,kpe,Cde,ahe,kve,zve,{menus:[{key:"enter",factory:function(){return new Hve}}]}];Or("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Or("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var CB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function k8(e){var t={exports:{}};return e(t,t.exports),t.exports}var La,Lm,Uv=function(e){return e&&e.Math==Math&&e},Pe=Uv(typeof globalThis=="object"&&globalThis)||Uv(typeof window=="object"&&window)||Uv(typeof self=="object"&&self)||Uv(typeof CB=="object"&&CB)||(function(){return this})()||Function("return this")(),mU=Function.prototype,xE=mU.bind,CE=mU.call,Wve=xE&&xE.bind(CE),Ke=xE?function(e){return e&&Wve(CE,e)}:function(e){return e&&function(){return CE.apply(e,arguments)}},Kt=function(e){try{return!!e()}catch(t){return!0}},qve=Ke({}.toString),Gve=Ke("".slice),ua=function(e){return Gve(qve(e),8,-1)},l_=Pe.Object,Kve=Ke("".split),yU=Kt((function(){return!l_("z").propertyIsEnumerable(0)}))?function(e){return ua(e)=="String"?Kve(e,""):l_(e)}:l_,Xve=Pe.TypeError,ub=function(e){if(e==null)throw Xve("Can't call method on "+e);return e},Nf=function(e){return yU(ub(e))},Yve=Object.defineProperty,O8=function(e,t){try{Yve(Pe,e,{value:t,configurable:!0,writable:!0})}catch(n){Pe[e]=t}return t},du=Pe["__core-js_shared__"]||O8("__core-js_shared__",{}),A8=k8((function(e){(e.exports=function(t,n){return du[t]||(du[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Zve=Pe.Object,Fg=function(e){return Zve(ub(e))},Jve=Ke({}.hasOwnProperty),Sn=Object.hasOwn||function(e,t){return Jve(Fg(e),t)},Qve=0,eme=Math.random(),tme=Ke(1 .toString),T8=function(e){return"Symbol("+(e===void 0?"":e)+")_"+tme(++Qve+eme,36)},Qt=function(e){return typeof e=="function"},nme=function(e){return Qt(e)?e:void 0},Mg=function(e,t){return arguments.length<2?nme(Pe[e]):Pe[e]&&Pe[e][t]},c_=Mg("navigator","userAgent")||"",SB=Pe.process,EB=Pe.Deno,DB=SB&&SB.versions||EB&&EB.version,kB=DB&&DB.v8;kB&&(Lm=(La=kB.split("."))[0]>0&&La[0]<4?1:+(La[0]+La[1])),!Lm&&c_&&(!(La=c_.match(/Edge\/(\d+)/))||La[1]>=74)&&(La=c_.match(/Chrome\/(\d+)/))&&(Lm=+La[1]);var zv,SE=Lm,EE=!!Object.getOwnPropertySymbols&&!Kt((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&SE&&SE<41})),B8=EE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",jd=A8("wks"),Hs=Pe.Symbol,OB=Hs&&Hs.for,rme=B8?Hs:Hs&&Hs.withoutSetter||T8,Vn=function(e){if(!Sn(jd,e)||!EE&&typeof jd[e]!="string"){var t="Symbol."+e;EE&&Sn(Hs,e)?jd[e]=Hs[e]:jd[e]=B8&&OB?OB(t):rme(t)}return jd[e]},Zt=function(e){return typeof e=="object"?e!==null:Qt(e)},ome=Pe.String,ime=Pe.TypeError,Ar=function(e){if(Zt(e))return e;throw ime(ome(e)+" is not an object")},Au=!Kt((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),DE=Pe.document,ame=Zt(DE)&&Zt(DE.createElement),P8=function(e){return ame?DE.createElement(e):{}},bU=!Au&&!Kt((function(){return Object.defineProperty(P8("div"),"a",{get:function(){return 7}}).a!=7})),Ld=Function.prototype.call,Pn=Ld.bind?Ld.bind(Ld):function(){return Ld.apply(Ld,arguments)},vy=Ke({}.isPrototypeOf),ume=Pe.Object,f_=B8?function(e){return typeof e=="symbol"}:function(e){var t=Mg("Symbol");return Qt(t)&&vy(t.prototype,ume(e))},sme=Pe.String,kE=function(e){try{return sme(e)}catch(t){return"Object"}},lme=Pe.TypeError,F8=function(e){if(Qt(e))return e;throw lme(kE(e)+" is not a function")},Dh=function(e,t){var n=e[t];return n==null?void 0:F8(n)},cme=Pe.TypeError,fme=Pe.TypeError,dme=Vn("toPrimitive"),M8=function(e){var t=(function(n,r){if(!Zt(n)||f_(n))return n;var o,i=Dh(n,dme);if(i){if(o=Pn(i,n,r),!Zt(o)||f_(o))return o;throw fme("Can't convert object to primitive value")}return(function(a,u){var s,l;if(Qt(s=a.toString)&&!Zt(l=Pn(s,a))||Qt(s=a.valueOf)&&!Zt(l=Pn(s,a)))return l;throw cme("Can't convert object to primitive value")})(n)})(e,"string");return f_(t)?t:t+""},pme=Pe.TypeError,AB=Object.defineProperty,Al={f:Au?AB:function(e,t,n){if(Ar(e),t=M8(t),Ar(n),bU)try{return AB(e,t,n)}catch(r){}if("get"in n||"set"in n)throw pme("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},hme=Math.ceil,gme=Math.floor,Ig=function(e){var t=+e;return t!=t||t===0?0:(t>0?gme:hme)(t)},vme=Math.max,mme=Math.min,OE=function(e,t){var n=Ig(e);return n<0?vme(n+t,0):mme(n,t)},yme=Math.min,wU=function(e){return e>0?yme(Ig(e),9007199254740991):0},$f=function(e){return wU(e.length)},TB=function(e){return function(t,n,r){var o,i=Nf(t),a=$f(i),u=OE(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},_U={includes:TB(!0),indexOf:TB(!1)},sb={},bme=_U.indexOf,BB=Ke([].push),xU=function(e,t){var n,r=Nf(e),o=0,i=[];for(n in r)!Sn(sb,n)&&Sn(r,n)&&BB(i,n);for(;t.length>o;)Sn(r,n=t[o++])&&(~bme(i,n)||BB(i,n));return i},my=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wme=Object.keys||function(e){return xU(e,my)},_me=Au?Object.defineProperties:function(e,t){Ar(e);for(var n,r=Nf(t),o=wme(t),i=o.length,a=0;i>a;)Al.f(e,n=o[a++],r[n]);return e},xme=Mg("document","documentElement"),PB=A8("keys"),I8=function(e){return PB[e]||(PB[e]=T8(e))},CU=I8("IE_PROTO"),d_=function(){},SU=function(e){return"<script>"+e+"<\/script>"},FB=function(e){e.write(SU("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rm=function(){try{zv=new ActiveXObject("htmlfile")}catch(r){}var e,t;Rm=typeof document<"u"?document.domain&&zv?FB(zv):((t=P8("iframe")).style.display="none",xme.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(SU("document.F=Object")),e.close(),e.F):FB(zv);for(var n=my.length;n--;)delete Rm.prototype[my[n]];return Rm()};sb[CU]=!0;var j8=Object.create||function(e,t){var n;return e!==null?(d_.prototype=Ar(e),n=new d_,d_.prototype=null,n[CU]=e):n=Rm(),t===void 0?n:_me(n,t)},AE=Vn("unscopables"),TE=Array.prototype;TE[AE]==null&&Al.f(TE,AE,{configurable:!0,value:j8(null)});var $p=function(e){TE[AE][e]=!0},df={},Cme=Ke(Function.toString);Qt(du.inspectSource)||(du.inspectSource=function(e){return Cme(e)});var yy,Up,by,L8=du.inspectSource,MB=Pe.WeakMap,EU=Qt(MB)&&/native code/.test(L8(MB)),lb=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},pu=Au?function(e,t,n){return Al.f(e,t,lb(1,n))}:function(e,t,n){return e[t]=n,e},BE=Pe.TypeError,Sme=Pe.WeakMap;if(EU||du.state){var us=du.state||(du.state=new Sme),Eme=Ke(us.get),IB=Ke(us.has),Dme=Ke(us.set);yy=function(e,t){if(IB(us,e))throw new BE("Object already initialized");return t.facade=e,Dme(us,e,t),t},Up=function(e){return Eme(us,e)||{}},by=function(e){return IB(us,e)}}else{var ec=I8("state");sb[ec]=!0,yy=function(e,t){if(Sn(e,ec))throw new BE("Object already initialized");return t.facade=e,pu(e,ec,t),t},Up=function(e){return Sn(e,ec)?e[ec]:{}},by=function(e){return Sn(e,ec)}}var Vs,jB,LB,Ti={set:yy,get:Up,has:by,enforce:function(e){return by(e)?Up(e):yy(e,{})},getterFor:function(e){return function(t){var n;if(!Zt(t)||(n=Up(t)).type!==e)throw BE("Incompatible receiver, "+e+" required");return n}}},RB={}.propertyIsEnumerable,NB=Object.getOwnPropertyDescriptor,kme={f:NB&&!RB.call({1:2},1)?function(e){var t=NB(this,e);return!!t&&t.enumerable}:RB},$B=Object.getOwnPropertyDescriptor,DU={f:Au?$B:function(e,t){if(e=Nf(e),t=M8(t),bU)try{return $B(e,t)}catch(n){}if(Sn(e,t))return lb(!Pn(kme.f,e,t),e[t])}},kU=Function.prototype,Ome=Au&&Object.getOwnPropertyDescriptor,UB=Sn(kU,"name"),R8={PROPER:UB&&(function(){}).name==="something",CONFIGURABLE:UB&&(!Au||Au&&Ome(kU,"name").configurable)},pa=k8((function(e){var t=R8.CONFIGURABLE,n=Ti.get,r=Ti.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Qt(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Sn(u,"name")||t&&u.name!==d)&&pu(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Pe?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:pu(i,a,u)):f?i[a]=u:O8(a,u)})(Function.prototype,"toString",(function(){return Qt(this)&&n(this).source||L8(this)}))})),Ame=my.concat("length","prototype"),wy={f:Object.getOwnPropertyNames||function(e){return xU(e,Ame)}},Tme={f:Object.getOwnPropertySymbols},Bme=Ke([].concat),Pme=Mg("Reflect","ownKeys")||function(e){var t=wy.f(Ar(e)),n=Tme.f;return n?Bme(t,n(e)):t},Fme=function(e,t){for(var n=Pme(t),r=Al.f,o=DU.f,i=0;i<n.length;i++){var a=n[i];Sn(e,a)||r(e,a,o(t,a))}},Mme=/#|\.prototype\./,jg=function(e,t){var n=jme[Ime(e)];return n==Rme||n!=Lme&&(Qt(t)?Kt(t):!!t)},Ime=jg.normalize=function(e){return String(e).replace(Mme,".").toLowerCase()},jme=jg.data={},Lme=jg.NATIVE="N",Rme=jg.POLYFILL="P",PE=jg,Nme=DU.f,Tu=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Pe:l?Pe[u]||O8(u,{}):(Pe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Nme(n,r))&&a.value:n[r],!PE(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Fme(i,o)}(e.sham||o&&o.sham)&&pu(i,"sham",!0),pa(n,r,i,e)}},$me=!Kt((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),zB=I8("IE_PROTO"),FE=Pe.Object,Ume=FE.prototype,_y=$me?FE.getPrototypeOf:function(e){var t=Fg(e);if(Sn(t,zB))return t[zB];var n=t.constructor;return Qt(n)&&t instanceof n?n.prototype:t instanceof FE?Ume:null},ME=Vn("iterator"),OU=!1;[].keys&&("next"in(LB=[].keys())?(jB=_y(_y(LB)))!==Object.prototype&&(Vs=jB):OU=!0);var zme=Vs==null||Kt((function(){var e={};return Vs[ME].call(e)!==e}));zme&&(Vs={}),Qt(Vs[ME])||pa(Vs,ME,(function(){return this}));var N8={IteratorPrototype:Vs,BUGGY_SAFARI_ITERATORS:OU},Hme=Al.f,HB=Vn("toStringTag"),IE=function(e,t,n){e&&!Sn(e=n?e:e.prototype,HB)&&Hme(e,HB,{configurable:!0,value:t})},Vme=N8.IteratorPrototype,Wme=function(){return this},qme=Pe.String,Gme=Pe.TypeError,xy=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=Ke(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,o){return Ar(r),(function(i){if(typeof i=="object"||Qt(i))return i;throw Gme("Can't set "+qme(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),Kme=R8.PROPER,Xme=R8.CONFIGURABLE,VB=N8.IteratorPrototype,p_=N8.BUGGY_SAFARI_ITERATORS,Rd=Vn("iterator"),Yme=function(){return this},AU=function(e,t,n,r,o,i,a){(function(h,y,g,b){var w=y+" Iterator";h.prototype=j8(Vme,{next:lb(1,g)}),IE(h,w,!1),df[w]=Wme})(n,t,r);var u,s,l=function(h){if(h===o&&m)return m;if(!p_&&h in p)return p[h];switch(h){case"keys":case"values":case"entries":return function(){return new n(this,h)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,p=e.prototype,d=p[Rd]||p["@@iterator"]||o&&p[o],m=!p_&&d||l(o),v=t=="Array"&&p.entries||d;return v&&(u=_y(v.call(new e)))!==Object.prototype&&u.next&&(_y(u)!==VB&&(xy?xy(u,VB):Qt(u[Rd])||pa(u,Rd,Yme)),IE(u,c,!0)),Kme&&o=="values"&&d&&d.name!=="values"&&(Xme?pu(p,"name","values"):(f=!0,m=function(){return Pn(d,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Tu({target:t,proto:!0,forced:p_||f},s)),p[Rd]!==m&&pa(p,Rd,m,{name:o}),df[t]=m,s},Zme=Ti.set,Jme=Ti.getterFor("Array Iterator"),Cp=AU(Array,"Array",(function(e,t){Zme(this,{type:"Array Iterator",target:Nf(e),index:0,kind:t})}),(function(){var e=Jme(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");df.Arguments=df.Array,$p("keys"),$p("values"),$p("entries");var TU={};TU[Vn("toStringTag")]="z";var $8=String(TU)==="[object z]",Qme=Vn("toStringTag"),e0e=Pe.Object,t0e=ua((function(){return arguments})())=="Arguments",cb=$8?ua:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch(a){}})(t=e0e(e),Qme))=="string"?n:t0e?ua(t):(r=ua(t))=="Object"&&Qt(t.callee)?"Arguments":r},n0e=$8?{}.toString:function(){return"[object "+cb(this)+"]"};$8||pa(Object.prototype,"toString",n0e,{unsafe:!0});var r0e=Pe.String,Ji=function(e){if(cb(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return r0e(e)},o0e=Ke("".charAt),WB=Ke("".charCodeAt),i0e=Ke("".slice),a0e=function(e){return function(t,n){var r,o,i=Ji(ub(t)),a=Ig(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=WB(i,a))<55296||r>56319||a+1===u||(o=WB(i,a+1))<56320||o>57343?e?o0e(i,a):r:e?i0e(i,a,a+2):o-56320+(r-55296<<10)+65536}},BU={charAt:a0e(!0)},u0e=BU.charAt,s0e=Ti.set,l0e=Ti.getterFor("String Iterator");AU(String,"String",(function(e){s0e(this,{type:"String Iterator",string:Ji(e),index:0})}),(function(){var e,t=l0e(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=u0e(n,r),t.index+=e.length,{value:e,done:!1})}));var jE=function(e,t,n){for(var r in t)pa(e,r,t[r],n);return e},c0e=Pe.Array,f0e=Math.max,qB=wy.f,GB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d0e={f:function(e){return GB&&ua(e)=="Window"?(function(t){try{return qB(t)}catch(n){return(function(r,o,i){for(var a,u,s,l,c=$f(r),f=OE(void 0,c),p=OE(c,c),d=c0e(f0e(p-f,0)),m=0;f<p;f++,m++)a=d,u=m,s=r[f],(l=M8(u))in a?Al.f(a,l,lb(0,s)):a[l]=s;return d.length=m,d})(GB)}})(e):qB(Nf(e))}},KB=Kt((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Hv=Object.isExtensible,Es=Kt((function(){Hv(1)}))||KB?function(e){return!!Zt(e)&&(!KB||ua(e)!="ArrayBuffer")&&(!Hv||Hv(e))}:Hv,p0e=!Kt((function(){return Object.isExtensible(Object.preventExtensions({}))})),U8=k8((function(e){var t=Al.f,n=!1,r=T8("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=wy.f,s=Ke([].splice),l={};l[r]=1,u(l).length&&(wy.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},Tu({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d0e.f}))},fastKey:function(u,s){if(!Zt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Sn(u,r)){if(!Es(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Sn(u,r)){if(!Es(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return p0e&&n&&Es(u)&&!Sn(u,r)&&i(u),u}};sb[r]=!0})),XB=Ke(Ke.bind),z8=function(e,t){return F8(e),t===void 0?e:XB?XB(e,t):function(){return e.apply(t,arguments)}},h0e=Vn("iterator"),g0e=Array.prototype,v0e=Vn("iterator"),YB=function(e){if(e!=null)return Dh(e,v0e)||Dh(e,"@@iterator")||df[cb(e)]},m0e=Pe.TypeError,ZB=function(e,t,n){var r,o;Ar(e);try{if(!(r=Dh(e,"return"))){if(t==="throw")throw n;return n}r=Pn(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return Ar(r),n},y0e=Pe.TypeError,Nm=function(e,t){this.stopped=e,this.result=t},JB=Nm.prototype,PU=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),v=z8(t,f),h=function(g){return r&&ZB(r,"normal",g),new Nm(!0,g)},y=function(g){return p?(Ar(g),m?v(g[0],g[1],h):v(g[0],g[1])):m?v(g,h):v(g)};if(d)r=e;else{if(!(o=YB(e)))throw y0e(kE(e)+" is not iterable");if((c=o)!==void 0&&(df.Array===c||g0e[h0e]===c)){for(i=0,a=$f(e);a>i;i++)if((u=y(e[i]))&&vy(JB,u))return u;return new Nm(!1)}r=(function(g,b){var w=arguments.length<2?YB(g):b;if(F8(w))return Ar(Pn(w,g));throw m0e(kE(g)+" is not iterable")})(e,o)}for(s=r.next;!(l=Pn(s,r)).done;){try{u=y(l.value)}catch(g){ZB(r,"throw",g)}if(typeof u=="object"&&u&&vy(JB,u))return u}return new Nm(!1)},b0e=Pe.TypeError,FU=function(e,t){if(vy(t,e))return e;throw b0e("Incorrect invocation")},MU=Vn("iterator"),IU=!1;try{var w0e=0,QB={next:function(){return{done:!!w0e++}},return:function(){IU=!0}};QB[MU]=function(){return this},Array.from(QB,(function(){throw 2}))}catch(e){}var LE=Array.isArray||function(e){return ua(e)=="Array"},jU=function(){},_0e=[],LU=Mg("Reflect","construct"),H8=/^\s*(?:class|function)\b/,x0e=Ke(H8.exec),C0e=!H8.exec(jU),Nd=function(e){if(!Qt(e))return!1;try{return LU(jU,_0e,e),!0}catch(t){return!1}},S0e=!LU||Kt((function(){var e;return Nd(Nd.call)||!Nd(Object)||!Nd((function(){e=!0}))||e}))?function(e){if(!Qt(e))return!1;switch(cb(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return C0e||!!x0e(H8,L8(e))}:Nd,E0e=Vn("species"),eP=Pe.Array,RU=function(e,t){return new((function(n){var r;return LE(n)&&(r=n.constructor,(S0e(r)&&(r===eP||LE(r.prototype))||Zt(r)&&(r=r[E0e])===null)&&(r=void 0)),r===void 0?eP:r})(e))(t===0?0:t)},tP=Ke([].push),h_=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=Fg(s),v=yU(m),h=z8(l,c),y=$f(v),g=0,b=f||RU,w=t?b(s,y):n||a?b(s,0):void 0;y>g;g++)if((u||g in v)&&(d=h(p=v[g],g,m),e))if(t)w[g]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:tP(w,p)}else switch(e){case 4:return!1;case 7:tP(w,p)}return i?-1:r||o?o:w}},V8={filter:h_(2),find:h_(5),findIndex:h_(6)},Vv=U8.getWeakData,D0e=Ti.set,k0e=Ti.getterFor,O0e=V8.find,A0e=V8.findIndex,T0e=Ke([].splice),B0e=0,Wv=function(e){return e.frozen||(e.frozen=new NU)},NU=function(){this.entries=[]},g_=function(e,t){return O0e(e.entries,(function(n){return n[0]===t}))};NU.prototype={get:function(e){var t=g_(this,e);if(t)return t[1]},has:function(e){return!!g_(this,e)},set:function(e,t){var n=g_(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=A0e(this.entries,(function(n){return n[0]===e}));return~t&&T0e(this.entries,t,1),!!~t}};var $d,$U={getConstructor:function(e,t,n,r){var o=e((function(s,l){FU(s,i),D0e(s,{type:t,id:B0e++,frozen:void 0}),l!=null&&PU(l,s[r],{that:s,AS_ENTRIES:n})})),i=o.prototype,a=k0e(t),u=function(s,l,c){var f=a(s),p=Vv(Ar(l),!0);return p===!0?Wv(f).set(l,c):p[f.id]=c,s};return jE(i,{delete:function(s){var l=a(this);if(!Zt(s))return!1;var c=Vv(s);return c===!0?Wv(l).delete(s):c&&Sn(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Zt(s))return!1;var c=Vv(s);return c===!0?Wv(l).has(s):c&&Sn(c,l.id)}}),jE(i,n?{get:function(s){var l=a(this);if(Zt(s)){var c=Vv(s);return c===!0?Wv(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},qv=Ti.enforce,P0e=!Pe.ActiveXObject&&"ActiveXObject"in Pe,UU=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},F0e=(function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=Pe[e],u=a&&a.prototype,s=a,l={},c=function(h){var y=Ke(u[h]);pa(u,h,h=="add"?function(g){return y(this,g===0?0:g),this}:h=="delete"?function(g){return!(o&&!Zt(g))&&y(this,g===0?0:g)}:h=="get"?function(g){return o&&!Zt(g)?void 0:y(this,g===0?0:g)}:h=="has"?function(g){return!(o&&!Zt(g))&&y(this,g===0?0:g)}:function(g,b){return y(this,g===0?0:g,b),this})};if(PE(e,!Qt(a)||!(o||u.forEach&&!Kt((function(){new a().entries().next()})))))s=n.getConstructor(t,e,r,i),U8.enable();else if(PE(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Kt((function(){f.has(1)})),m=(function(h,y){if(!IU)return!1;var g=!1;try{var b={};b[MU]=function(){return{next:function(){return{done:g=!0}}}},(function(w){new a(w)})(b)}catch(w){}return g})(),v=!o&&Kt((function(){for(var h=new a,y=5;y--;)h[i](y,y);return!h.has(-0)}));m||((s=t((function(h,y){FU(h,u);var g=(function(b,w,x){var k,D;return xy&&Qt(k=w.constructor)&&k!==x&&Zt(D=k.prototype)&&D!==x.prototype&&xy(b,D),b})(new a,h,s);return y!=null&&PU(y,g[i],{that:g,AS_ENTRIES:r}),g}))).prototype=u,u.constructor=s),(d||v)&&(c("delete"),c("has"),r&&c("get")),(v||p)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Tu({global:!0,forced:s!=a},l),IE(s,e),o||n.setStrong(s,e,r),s})("WeakMap",UU,$U);if(EU&&P0e){$d=$U.getConstructor(UU,"WeakMap",!0),U8.enable();var Ud=F0e.prototype,nP=Ke(Ud.delete),Gv=Ke(Ud.has),rP=Ke(Ud.get),oP=Ke(Ud.set);jE(Ud,{delete:function(e){if(Zt(e)&&!Es(e)){var t=qv(this);return t.frozen||(t.frozen=new $d),nP(this,e)||t.frozen.delete(e)}return nP(this,e)},has:function(e){if(Zt(e)&&!Es(e)){var t=qv(this);return t.frozen||(t.frozen=new $d),Gv(this,e)||t.frozen.has(e)}return Gv(this,e)},get:function(e){if(Zt(e)&&!Es(e)){var t=qv(this);return t.frozen||(t.frozen=new $d),Gv(this,e)?rP(this,e):t.frozen.get(e)}return rP(this,e)},set:function(e,t){if(Zt(e)&&!Es(e)){var n=qv(this);n.frozen||(n.frozen=new $d),Gv(this,e)?oP(this,e,t):n.frozen.set(e,t)}else oP(this,e,t);return this}})}var zU={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},v_=P8("span").classList,iP=v_&&v_.constructor&&v_.constructor.prototype,M0e=iP===Object.prototype?void 0:iP,m_=Vn("iterator"),aP=Vn("toStringTag"),y_=Cp.values,HU=function(e,t){if(e){if(e[m_]!==y_)try{pu(e,m_,y_)}catch(r){e[m_]=y_}if(e[aP]||pu(e,aP,t),zU[t]){for(var n in Cp)if(e[n]!==Cp[n])try{pu(e,n,Cp[n])}catch(r){e[n]=Cp[n]}}}};for(var b_ in zU)HU(Pe[b_]&&Pe[b_].prototype,b_);HU(M0e,"DOMTokenList");var RE=new WeakMap,I0e={type:"list-item",renderElem:function(e,t,n){RE.set(e,n);var r=e,o=r.level,i=o===void 0?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=(function(f,p){var d=p,m=d.type,v=d.level,h=v===void 0?0:v,y=d.ordered,g=y!==void 0&&y;if(!g)return-1;var b=1,w=p,x=I.findPath(f,w);if(x[0]===0)return 1;for(;x[0]>0;){var k=q.previous(x),D=S.node(f,k);if(D==null)break;var T=D[0],A=T.level,F=A===void 0?0:A,j=T.type,R=T.ordered;if(j!==m||F<h)break;if(F===h){if(R!==g)break;b++}w=T,x=k}return b})(n,e);s=l+"."}else s=(function(f){f===void 0&&(f=0);var p="";switch(f){case 0:p="•";break;case 1:p="◦";break;default:p="▪"}return p})(i);var c=(function(f){var p,d=f.children||[],m=d.length;if(m===0)return"";for(var v=0;v<m&&!p;v++){var h=d[v];me.isText(h)&&(p=h)}return p==null?"":p.color||""})(e);return Be("div",{style:u},Be("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),Be("span",null,t))}},NE=function(e,t){return NE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},NE(e,t);};function VU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}NE(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function uP(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function zp(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function sP(e){return S.nodes(e,{at:e.selection||void 0,match:function(t){return I.findPath(e,t).length===1}})}var j0e=_U.includes;Tu({target:"Array",proto:!0},{includes:function(e){return j0e(this,e,arguments.length>1?arguments[1]:void 0)}}),$p("includes");var lP,w_,L0e=function(){var e=Ar(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},W8=Pe.RegExp,WU=Kt((function(){var e=W8("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));WU||Kt((function(){return!W8("a","y").sticky}));var R0e={BROKEN_CARET:WU||Kt((function(){var e=W8("^r","gy");return e.lastIndex=2,e.exec("str")!=null}))},N0e=Pe.RegExp,$0e=Kt((function(){var e=N0e(".","s");return!(e.dotAll&&e.exec("\n")&&e.flags==="s")})),U0e=Pe.RegExp,z0e=Kt((function(){var e=U0e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),H0e=Ti.get,V0e=A8("native-string-replace",String.prototype.replace),Cy=RegExp.prototype.exec,$E=Cy,W0e=Ke("".charAt),q0e=Ke("".indexOf),G0e=Ke("".replace),__=Ke("".slice),x_=(w_=/b*/g,Pn(Cy,lP=/a/,"a"),Pn(Cy,w_,"a"),lP.lastIndex!==0||w_.lastIndex!==0),cP=R0e.BROKEN_CARET,C_=/()??/.exec("")[1]!==void 0;(x_||C_||cP||$0e||z0e)&&($E=function(e){var t,n,r,o,i,a,u,s=this,l=H0e(s),c=Ji(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Pn($E,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=cP&&s.sticky,m=Pn(L0e,s),v=s.source,h=0,y=c;if(d&&(m=G0e(m,"y",""),q0e(m,"g")===-1&&(m+="g"),y=__(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&W0e(c,s.lastIndex-1)!=="\n")&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",m)),C_&&(n=new RegExp("^"+v+"$(?!\\s)",m)),x_&&(r=s.lastIndex),o=Pn(Cy,d?n:s,y),d?o?(o.input=__(o.input,h),o[0]=__(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:x_&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),C_&&o&&o.length>1&&Pn(V0e,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&p)for(o.groups=a=j8(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Sy=$E;Tu({target:"RegExp",proto:!0,forced:/./.exec!==Sy},{exec:Sy});var qU=(function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return I.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!I.getSelectedElems(t).some((function(n){if(S.isVoid(t,n)&&S.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0}))},e.prototype.exec=function(t,n){this.isActive(t)?K.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):K.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e})(),K0e='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',X0e='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',Y0e=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=de("listModule.unOrderedList"),n.iconSvg=K0e,n}return VU(t,e),t})(qU),Z0e=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=de("listModule.orderedList"),n.iconSvg=X0e,n}return VU(t,e),t})(qU),J0e={key:"bulletedList",factory:function(){return new Y0e}},Q0e={key:"numberedList",factory:function(){return new Z0e}},fP=[],eye={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=o!==void 0&&o?"ol":"ul",a=(function(l){var c=RE.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,m=d!==void 0&&d,v=f.level,h=v===void 0?0:v,y=I.findPath(c,l);if(y[0]===0)return h+1;var g=q.previous(y),b=S.node(c,g);if(!b)return 0;var w=zp(b,1)[0];if(I.getNodeType(w)!==p)return h+1;var x=w,k=x.ordered,D=k!==void 0&&k,T=x.level,A=T===void 0?0:T;return A<h?h-A:A>h?0:A===h?D===m?0:1:0})(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",fP.push(i);var s=(function(l){var c=RE.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,m=d!==void 0&&d,v=f.level,h=v===void 0?0:v,y=I.findPath(c,l);if(y[0]===c.children.length-1)return h+1;var g=q.next(y),b=S.node(c,g);if(!b)return 0;var w=zp(b,1)[0];if(I.getNodeType(w)!==p)return h+1;var x=w,k=x.ordered,D=k!==void 0&&k,T=x.level,A=T===void 0?0:T;return A<h?h-A:A>h?0:A===h?D===m?0:1:0})(e);if(s>0)for(u=0;u<s;u++)r+="</"+fP.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},tye=Vn("species"),nye=V8.filter,rye=SE>=51||!Kt((function(){var e=[];return(e.constructor={})[tye]=function(){return{foo:1}},e.filter(Boolean).foo!==1}));Tu({target:"Array",proto:!0,forced:!rye},{filter:function(e){return nye(this,e,arguments.length>1?arguments[1]:void 0)}});var q8=Function.prototype,dP=q8.apply,oye=q8.bind,pP=q8.call,iye=typeof Reflect=="object"&&Reflect.apply||(oye?pP.bind(dP):function(){return pP.apply(dP,arguments)}),hP=(Vn("species"),RegExp.prototype),aye=BU.charAt,uye=function(e,t,n){return t+(n?aye(e,t).length:1)},sye=Math.floor,S_=Ke("".charAt),lye=Ke("".replace),E_=Ke("".slice),cye=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,fye=/\$([$&'`]|\d{1,2})/g,dye=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=fye;return o!==void 0&&(o=Fg(o),s=cye),lye(i,s,(function(l,c){var f;switch(S_(c,0)){case"$":return"$";case"&":return e;case"`":return E_(t,0,n);case"'":return E_(t,a);case"<":f=o[E_(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=sye(p/10);return d===0?l:d<=u?r[d-1]===void 0?S_(c,1):r[d-1]+S_(c,1):l}f=r[p-1]}return f===void 0?"":f}))},pye=Pe.TypeError,hye=function(e,t){var n=e.exec;if(Qt(n)){var r=Pn(n,e,t);return r!==null&&Ar(r),r}if(ua(e)==="RegExp")return Pn(Sy,e,t);throw pye("RegExp#exec called on incompatible receiver")},UE=Vn("replace"),gye=Math.max,vye=Math.min,mye=Ke([].concat),D_=Ke([].push),gP=Ke("".indexOf),vP=Ke("".slice),yye="a".replace(/./,"$0")==="$0",mP=!!/./[UE]&&/./[UE]("a","$0")==="";(function(e,t,n,r){var o=Vn(e),i=!Kt((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!Kt((function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||n){var u=Ke(/./[o]),s=(function(l,c,f){var p=mP?"$":"$0";return[function(d,m){var v=ub(this),h=d==null?void 0:Dh(d,UE);return h?Pn(h,d,v,m):Pn(c,Ji(v),d,m)},function(d,m){var v=Ar(this),h=Ji(d);if(typeof m=="string"&&gP(m,p)===-1&&gP(m,"$<")===-1){var y=f(c,v,h,m);if(y.done)return y.value}var g=Qt(m);g||(m=Ji(m));var b=v.global;if(b){var w=v.unicode;v.lastIndex=0}for(var x=[];;){var k=hye(v,h);if(k===null||(D_(x,k),!b))break;Ji(k[0])===""&&(v.lastIndex=uye(h,wU(v.lastIndex),w))}for(var D,T="",A=0,F=0;F<x.length;F++){for(var j=Ji((k=x[F])[0]),R=gye(vye(Ig(k.index),h.length),0),U=[],H=1;H<k.length;H++)D_(U,(D=k[H])===void 0?D:String(D));var G=k.groups;if(g){var X=mye([j],U,R,h);G!==void 0&&D_(X,G);var oe=Ji(iye(m,void 0,X))}else oe=dye(j,h,R,U,G,m);R>=A&&(T+=vP(h,A,R)+oe,A=R+j.length)}return T+vP(h,A)}]})(0,""[e],(function(l,c,f,p,d){var m=Ke(l),v=c.exec;return v===Sy||v===hP.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}}));pa(String.prototype,e,s[0]),pa(hP,o,s[1])}})("replace",0,!!Kt((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!yye||mP);var bye=Pe.TypeError,GU=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,p=!!a&&z8(a,u);f<r;){if(f in n){if(s=p?p(n[f],f,t):n[f],i>0&&LE(s))l=$f(s),c=GU(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw bye("Exceed the acceptable array length");e[c]=s}c++}f++}return c},wye=GU;function k_(e){return e.length?e[0].tagName.toLowerCase():""}Tu({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Fg(this),n=$f(t),r=RU(t,0);return r.length=wye(r,t,t,n,0,e===void 0?1:Ig(e)),r}}),$p("flat"),Tu({global:!0},{globalThis:Pe}),yo&&(N.fn.append=yo),mo&&(N.fn.attr=mo),Jc&&(N.fn.parent=Jc);var _ye={renderElems:[I0e],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(ee.isExpanded(a))t(i);else{var u=I.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)t(i);else{var s=u.level,l=s===void 0?0:s;l>0?K.setNodes(o,{level:l-1}):K.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(i)}else t(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(ee.isCollapsed(l)){var c=I.getSelectedNodeByType(o,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,p=f===void 0?0:f;return void K.setNodes(o,{level:p+1})}}if(ee.isExpanded(l)){var d=0,m=!1;try{for(var v=uP(sP(o)),h=v.next();!h.done;h=v.next()){var y=zp(h.value,1)[0];I.getNodeType(y)==="list-item"?d++:m=!0}}catch(D){i={error:D}}finally{try{h&&!h.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}if(m||d<=1)return void n();try{for(var g=uP(sP(o)),b=g.next();!b.done;b=g.next()){var w=zp(b.value,2),x=(y=w[0],w[1]),k=y.level;p=k===void 0?0:k,K.setNodes(o,{level:p+1},{at:x})}}catch(D){u={error:D}}finally{try{b&&!b.done&&(s=g.return)&&s.call(g)}finally{if(u)throw u.error}}}else n()}else n()},o.normalizeNode=function(i){var a=zp(i,2),u=a[0],s=a[1],l=I.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||K.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[J0e,Q0e],elemsToHtml:[eye],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=N(e);(t=t.filter((function(a){return!!me.isText(a)||!!n.isInline(a)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=(function(a){return k_(a.parent())==="ol"})(r),i=(function(a){for(var u=0,s=a.parent(),l=k_(s);l==="ul"||l==="ol";)l=k_(s=s.parent()),u++;return u-1})(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},KU=yl((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",m="[object RegExp]",v="[object Set]",h="[object String]",y="[object Symbol]",g="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",x=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,D={};D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D[o]=D[i]=D[b]=D[a]=D[w]=D[u]=D[s]=D[l]=D[c]=D[f]=D[p]=D[m]=D[v]=D[h]=D[g]=!1;var T=typeof Et=="object"&&Et&&Et.Object===Object&&Et,A=typeof self=="object"&&self&&self.Object===Object&&self,F=T||A||Function("return this")(),j=t&&!t.nodeType&&t,R=j&&e&&!e.nodeType&&e,U=R&&R.exports===j,H=U&&T.process,G=(function(){try{return H&&H.binding&&H.binding("util")}catch(W){}})(),X=G&&G.isTypedArray;function oe(W,J){for(var ce=-1,Ee=W==null?0:W.length;++ce<Ee;)if(J(W[ce],ce,W))return!0;return!1}function se(W){var J=-1,ce=Array(W.size);return W.forEach((function(Ee,yt){ce[++J]=[yt,Ee]})),ce}function L(W){var J=-1,ce=Array(W.size);return W.forEach((function(Ee){ce[++J]=Ee})),ce}var B=Array.prototype,E=Function.prototype,O=Object.prototype,M=F["__core-js_shared__"],V=E.toString,Q=O.hasOwnProperty,Z=(function(){var W=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return W?"Symbol(src)_1."+W:""})(),le=O.toString,Se=RegExp("^"+V.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oe=U?F.Buffer:void 0,Me=F.Symbol,ne=F.Uint8Array,Ye=O.propertyIsEnumerable,Re=B.splice,xe=Me?Me.toStringTag:void 0,Ne=Object.getOwnPropertySymbols,Xt=Oe?Oe.isBuffer:void 0,nt=(function(W,J){return function(ce){return W(J(ce))}})(Object.keys,Object),mt=xa(F,"DataView"),It=xa(F,"Map"),Wn=xa(F,"Promise"),Qe=xa(F,"Set"),hr=xa(F,"WeakMap"),ko=xa(Object,"create"),ni=Ui(mt),Tl=Ui(It),Xu=Ui(Wn),Oo=Ui(Qe),ri=Ui(hr),Ri=Me?Me.prototype:void 0,qn=Ri?Ri.valueOf:void 0;function Gn(W){var J=-1,ce=W==null?0:W.length;for(this.clear();++J<ce;){var Ee=W[J];this.set(Ee[0],Ee[1])}}function Kn(W){var J=-1,ce=W==null?0:W.length;for(this.clear();++J<ce;){var Ee=W[J];this.set(Ee[0],Ee[1])}}function ar(W){var J=-1,ce=W==null?0:W.length;for(this.clear();++J<ce;){var Ee=W[J];this.set(Ee[0],Ee[1])}}function kn(W){var J=-1,ce=W==null?0:W.length;for(this.__data__=new ar;++J<ce;)this.add(W[J])}function Zr(W){var J=this.__data__=new Kn(W);this.size=J.size}function zf(W,J){var ce=zi(W),Ee=!ce&&Zg(W),yt=!ce&&!Ee&&oi(W),qe=!ce&&!Ee&&!yt&&ai(W),z=ce||Ee||yt||qe,te=z?(function(et,jt){for(var kt=-1,it=Array(et);++kt<et;)it[kt]=jt(kt);return it})(W.length,String):[],ge=te.length;for(var be in W)!Q.call(W,be)||z&&(be=="length"||yt&&(be=="offset"||be=="parent")||qe&&(be=="buffer"||be=="byteLength"||be=="byteOffset")||Hf(be,ge))||te.push(be);return te}function _a(W,J){for(var ce=W.length;ce--;)if(Fl(W[ce][0],J))return ce;return-1}function Ni(W){return W==null?W===void 0?"[object Undefined]":"[object Null]":xe&&xe in Object(W)?(function(J){var ce=Q.call(J,xe),Ee=J[xe];try{J[xe]=void 0;var yt=!0}catch(z){}var qe=le.call(J);return yt&&(ce?J[xe]=Ee:delete J[xe]),qe})(W):(function(J){return le.call(J)})(W)}function Bl(W){return Ca(W)&&Ni(W)==o}function Yu(W,J,ce,Ee,yt){return W===J||(W==null||J==null||!Ca(W)&&!Ca(J)?W!=W&&J!=J:(function(qe,z,te,ge,be,et){var jt=zi(qe),kt=zi(z),it=jt?i:Fr(qe),bn=kt?i:Fr(z),Xn=(it=it==o?p:it)==p,Zu=(bn=bn==o?p:bn)==p,Hi=it==bn;if(Hi&&oi(qe)){if(!oi(z))return!1;jt=!0,Xn=!1}if(Hi&&!Xn)return et||(et=new Zr),jt||ai(qe)?Jr(qe,z,te,ge,be,et):(function(Ze,at,ut,Yt,ur,gr,Bo){switch(ut){case w:if(Ze.byteLength!=at.byteLength||Ze.byteOffset!=at.byteOffset)return!1;Ze=Ze.buffer,at=at.buffer;case b:return!(Ze.byteLength!=at.byteLength||!gr(new ne(Ze),new ne(at)));case a:case u:case f:return Fl(+Ze,+at);case s:return Ze.name==at.name&&Ze.message==at.message;case m:case h:return Ze==at+"";case c:var Ea=se;case v:var Wf=1&Yt;if(Ea||(Ea=L),Ze.size!=at.size&&!Wf)return!1;var ev=Bo.get(Ze);if(ev)return ev==at;Yt|=2,Bo.set(Ze,at);var Ml=Jr(Ea(Ze),Ea(at),Yt,ur,gr,Bo);return Bo.delete(Ze),Ml;case y:if(qn)return qn.call(Ze)==qn.call(at)}return!1})(qe,z,it,te,ge,be,et);if(!(1&te)){var Sa=Xn&&Q.call(qe,"__wrapped__"),Te=Zu&&Q.call(z,"__wrapped__");if(Sa||Te){var dt=Sa?qe.value():qe,en=Te?z.value():z;return et||(et=new Zr),be(dt,en,te,ge,et)}}return Hi?(et||(et=new Zr),(function(Ze,at,ut,Yt,ur,gr){var Bo=1&ut,Ea=$i(Ze),Wf=Ea.length,ev=$i(at).length;if(Wf!=ev&&!Bo)return!1;for(var Ml=Wf;Ml--;){var Ju=Ea[Ml];if(!(Bo?Ju in at:Q.call(at,Ju)))return!1}var A5=gr.get(Ze);if(A5&&gr.get(at))return A5==at;var tv=!0;gr.set(Ze,at),gr.set(at,Ze);for(var Bb=Bo;++Ml<Wf;){var nv=Ze[Ju=Ea[Ml]],rv=at[Ju];if(Yt)var T5=Bo?Yt(rv,nv,Ju,at,Ze,gr):Yt(nv,rv,Ju,Ze,at,gr);if(!(T5===void 0?nv===rv||ur(nv,rv,ut,Yt,gr):T5)){tv=!1;break}Bb||(Bb=Ju=="constructor")}if(tv&&!Bb){var ov=Ze.constructor,iv=at.constructor;ov==iv||!("constructor"in Ze)||!("constructor"in at)||typeof ov=="function"&&ov instanceof ov&&typeof iv=="function"&&iv instanceof iv||(tv=!1)}return gr.delete(Ze),gr.delete(at),tv})(qe,z,te,ge,be,et)):!1})(W,J,ce,Ee,Yu,yt))}function Pl(W){return!(!Jg(W)||(function(J){return!!Z&&Z in J})(W))&&(Vf(W)?Se:x).test(Ui(W))}function Ao(W){if(ce=(J=W)&&J.constructor,Ee=typeof ce=="function"&&ce.prototype||O,J!==Ee)return nt(W);var J,ce,Ee,yt=[];for(var qe in Object(W))Q.call(W,qe)&&qe!="constructor"&&yt.push(qe);return yt}function Jr(W,J,ce,Ee,yt,qe){var z=1&ce,te=W.length,ge=J.length;if(te!=ge&&!(z&&ge>te))return!1;var be=qe.get(W);if(be&&qe.get(J))return be==J;var et=-1,jt=!0,kt=2&ce?new kn:void 0;for(qe.set(W,J),qe.set(J,W);++et<te;){var it=W[et],bn=J[et];if(Ee)var Xn=z?Ee(bn,it,et,J,W,qe):Ee(it,bn,et,W,J,qe);if(Xn!==void 0){if(Xn)continue;jt=!1;break}if(kt){if(!oe(J,(function(Zu,Hi){if(Sa=Hi,!kt.has(Sa)&&(it===Zu||yt(it,Zu,ce,Ee,qe)))return kt.push(Hi);var Sa}))){jt=!1;break}}else if(it!==bn&&!yt(it,bn,ce,Ee,qe)){jt=!1;break}}return qe.delete(W),qe.delete(J),jt}function $i(W){return(function(J,ce,Ee){var yt=ce(J);return zi(J)?yt:(function(qe,z){for(var te=-1,ge=z.length,be=qe.length;++te<ge;)qe[be+te]=z[te];return qe})(yt,Ee(J))})(W,Qg,Yg)}function To(W,J){var ce,Ee,yt=W.__data__;return((Ee=typeof(ce=J))=="string"||Ee=="number"||Ee=="symbol"||Ee=="boolean"?ce!=="__proto__":ce===null)?yt[typeof J=="string"?"string":"hash"]:yt.map}function xa(W,J){var ce=(function(Ee,yt){return Ee==null?void 0:Ee[yt]})(W,J);return Pl(ce)?ce:void 0}Gn.prototype.clear=function(){this.__data__=ko?ko(null):{},this.size=0},Gn.prototype.delete=function(W){var J=this.has(W)&&delete this.__data__[W];return this.size-=J?1:0,J},Gn.prototype.get=function(W){var J=this.__data__;if(ko){var ce=J[W];return ce===n?void 0:ce}return Q.call(J,W)?J[W]:void 0},Gn.prototype.has=function(W){var J=this.__data__;return ko?J[W]!==void 0:Q.call(J,W)},Gn.prototype.set=function(W,J){var ce=this.__data__;return this.size+=this.has(W)?0:1,ce[W]=ko&&J===void 0?n:J,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(W){var J=this.__data__,ce=_a(J,W);return!(ce<0)&&(ce==J.length-1?J.pop():Re.call(J,ce,1),--this.size,!0)},Kn.prototype.get=function(W){var J=this.__data__,ce=_a(J,W);return ce<0?void 0:J[ce][1]},Kn.prototype.has=function(W){return _a(this.__data__,W)>-1},Kn.prototype.set=function(W,J){var ce=this.__data__,Ee=_a(ce,W);return Ee<0?(++this.size,ce.push([W,J])):ce[Ee][1]=J,this},ar.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(It||Kn),string:new Gn}},ar.prototype.delete=function(W){var J=To(this,W).delete(W);return this.size-=J?1:0,J},ar.prototype.get=function(W){return To(this,W).get(W)},ar.prototype.has=function(W){return To(this,W).has(W)},ar.prototype.set=function(W,J){var ce=To(this,W),Ee=ce.size;return ce.set(W,J),this.size+=ce.size==Ee?0:1,this},kn.prototype.add=kn.prototype.push=function(W){return this.__data__.set(W,n),this},kn.prototype.has=function(W){return this.__data__.has(W)},Zr.prototype.clear=function(){this.__data__=new Kn,this.size=0},Zr.prototype.delete=function(W){var J=this.__data__,ce=J.delete(W);return this.size=J.size,ce},Zr.prototype.get=function(W){return this.__data__.get(W)},Zr.prototype.has=function(W){return this.__data__.has(W)},Zr.prototype.set=function(W,J){var ce=this.__data__;if(ce instanceof Kn){var Ee=ce.__data__;if(!It||Ee.length<199)return Ee.push([W,J]),this.size=++ce.size,this;ce=this.__data__=new ar(Ee)}return ce.set(W,J),this.size=ce.size,this};var Yg=Ne?function(W){return W==null?[]:(W=Object(W),(function(J,ce){for(var Ee=-1,yt=J==null?0:J.length,qe=0,z=[];++Ee<yt;){var te=J[Ee];ce(te,Ee,J)&&(z[qe++]=te)}return z})(Ne(W),(function(J){return Ye.call(W,J)})))}:function(){return[]},Fr=Ni;function Hf(W,J){return!!(J=J==null?r:J)&&(typeof W=="number"||k.test(W))&&W>-1&&W%1==0&&W<J}function Ui(W){if(W!=null){try{return V.call(W)}catch(J){}try{return W+""}catch(J){}}return""}function Fl(W,J){return W===J||W!=W&&J!=J}(mt&&Fr(new mt(new ArrayBuffer(1)))!=w||It&&Fr(new It)!=c||Wn&&Fr(Wn.resolve())!=d||Qe&&Fr(new Qe)!=v||hr&&Fr(new hr)!=g)&&(Fr=function(W){var J=Ni(W),ce=J==p?W.constructor:void 0,Ee=ce?Ui(ce):"";if(Ee)switch(Ee){case ni:return w;case Tl:return c;case Xu:return d;case Oo:return v;case ri:return g}return J});var Zg=Bl((function(){return arguments})())?Bl:function(W){return Ca(W)&&Q.call(W,"callee")&&!Ye.call(W,"callee")},zi=Array.isArray,oi=Xt||function(){return!1};function Vf(W){if(!Jg(W))return!1;var J=Ni(W);return J==l||J=="[object GeneratorFunction]"||J=="[object AsyncFunction]"||J=="[object Proxy]"}function ii(W){return typeof W=="number"&&W>-1&&W%1==0&&W<=r}function Jg(W){var J=typeof W;return W!=null&&(J=="object"||J=="function")}function Ca(W){return W!=null&&typeof W=="object"}var ai=X?(function(W){return function(J){return W(J)}})(X):function(W){return Ca(W)&&ii(W.length)&&!!D[Ni(W)]};function Qg(W){return(J=W)!=null&&ii(J.length)&&!Vf(J)?zf(W):Ao(W);var J}e.exports=function(W,J){return Yu(W,J)}}));Or("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),Or("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var yP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function XU(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ra,$m,Kv=function(e){return e&&e.Math==Math&&e},We=Kv(typeof globalThis=="object"&&globalThis)||Kv(typeof window=="object"&&window)||Kv(typeof self=="object"&&self)||Kv(typeof yP=="object"&&yP)||(function(){return this})()||Function("return this")(),mn=function(e){try{return!!e()}catch(t){return!0}},Bu=!mn((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),zd=Function.prototype.call,xn=zd.bind?zd.bind(zd):function(){return zd.apply(zd,arguments)},bP={}.propertyIsEnumerable,wP=Object.getOwnPropertyDescriptor,xye={f:wP&&!bP.call({1:2},1)?function(e){var t=wP(this,e);return!!t&&t.enumerable}:bP},G8=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},YU=Function.prototype,zE=YU.bind,HE=YU.call,Cye=zE&&zE.bind(HE),Je=zE?function(e){return e&&Cye(HE,e)}:function(e){return e&&function(){return HE.apply(e,arguments)}},Sye=Je({}.toString),Eye=Je("".slice),hu=function(e){return Eye(Sye(e),8,-1)},O_=We.Object,Dye=Je("".split),ZU=mn((function(){return!O_("z").propertyIsEnumerable(0)}))?function(e){return hu(e)=="String"?Dye(e,""):O_(e)}:O_,kye=We.TypeError,Pu=function(e){if(e==null)throw kye("Can't call method on "+e);return e},Lg=function(e){return ZU(Pu(e))},or=function(e){return typeof e=="function"},bi=function(e){return typeof e=="object"?e!==null:or(e)},Oye=function(e){return or(e)?e:void 0},Rg=function(e,t){return arguments.length<2?Oye(We[e]):We[e]&&We[e][t]},JU=Je({}.isPrototypeOf),A_=Rg("navigator","userAgent")||"",_P=We.process,xP=We.Deno,CP=_P&&_P.versions||xP&&xP.version,SP=CP&&CP.v8;SP&&($m=(Ra=SP.split("."))[0]>0&&Ra[0]<4?1:+(Ra[0]+Ra[1])),!$m&&A_&&(!(Ra=A_.match(/Edge\/(\d+)/))||Ra[1]>=74)&&(Ra=A_.match(/Chrome\/(\d+)/))&&($m=+Ra[1]);var VE=$m,WE=!!Object.getOwnPropertySymbols&&!mn((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&VE&&VE<41})),K8=WE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Aye=We.Object,T_=K8?function(e){return typeof e=="symbol"}:function(e){var t=Rg("Symbol");return or(t)&&JU(t.prototype,Aye(e))},Tye=We.String,QU=function(e){try{return Tye(e)}catch(t){return"Object"}},Bye=We.TypeError,ez=function(e){if(or(e))return e;throw Bye(QU(e)+" is not a function")},X8=function(e,t){var n=e[t];return n==null?void 0:ez(n)},Pye=We.TypeError,Fye=Object.defineProperty,Y8=function(e,t){try{Fye(We,e,{value:t,configurable:!0,writable:!0})}catch(n){We[e]=t}return t},gu=We["__core-js_shared__"]||Y8("__core-js_shared__",{}),Z8=XU((function(e){(e.exports=function(t,n){return gu[t]||(gu[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Mye=We.Object,J8=function(e){return Mye(Pu(e))},Iye=Je({}.hasOwnProperty),po=Object.hasOwn||function(e,t){return Iye(J8(e),t)},jye=0,Lye=Math.random(),Rye=Je(1 .toString),tz=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Rye(++jye+Lye,36)},Hd=Z8("wks"),Ws=We.Symbol,EP=Ws&&Ws.for,Nye=K8?Ws:Ws&&Ws.withoutSetter||tz,Do=function(e){if(!po(Hd,e)||!WE&&typeof Hd[e]!="string"){var t="Symbol."+e;WE&&po(Ws,e)?Hd[e]=Ws[e]:Hd[e]=K8&&EP?EP(t):Nye(t)}return Hd[e]},$ye=We.TypeError,Uye=Do("toPrimitive"),Q8=function(e){var t=(function(n,r){if(!bi(n)||T_(n))return n;var o,i=X8(n,Uye);if(i){if(o=xn(i,n,r),!bi(o)||T_(o))return o;throw $ye("Can't convert object to primitive value")}return(function(a,u){var s,l;if(or(s=a.toString)&&!bi(l=xn(s,a))||or(s=a.valueOf)&&!bi(l=xn(s,a)))return l;throw Pye("Can't convert object to primitive value")})(n)})(e,"string");return T_(t)?t:t+""},qE=We.document,zye=bi(qE)&&bi(qE.createElement),e6=function(e){return zye?qE.createElement(e):{}},nz=!Bu&&!mn((function(){return Object.defineProperty(e6("div"),"a",{get:function(){return 7}}).a!=7})),DP=Object.getOwnPropertyDescriptor,rz={f:Bu?DP:function(e,t){if(e=Lg(e),t=Q8(t),nz)try{return DP(e,t)}catch(n){}if(po(e,t))return G8(!xn(xye.f,e,t),e[t])}},Hye=We.String,Vye=We.TypeError,ho=function(e){if(bi(e))return e;throw Vye(Hye(e)+" is not an object")},Wye=We.TypeError,kP=Object.defineProperty,Ng={f:Bu?kP:function(e,t,n){if(ho(e),t=Q8(t),ho(n),nz)try{return kP(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Wye("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},pf=Bu?function(e,t,n){return Ng.f(e,t,G8(1,n))}:function(e,t,n){return e[t]=n,e},qye=Je(Function.toString);or(gu.inspectSource)||(gu.inspectSource=function(e){return qye(e)});var GE,Ey,KE,t6=gu.inspectSource,OP=We.WeakMap,Gye=or(OP)&&/native code/.test(t6(OP)),AP=Z8("keys"),oz=function(e){return AP[e]||(AP[e]=tz(e))},n6={},TP=We.TypeError,Kye=We.WeakMap;if(Gye||gu.state){var ss=gu.state||(gu.state=new Kye),Xye=Je(ss.get),BP=Je(ss.has),Yye=Je(ss.set);GE=function(e,t){if(BP(ss,e))throw new TP("Object already initialized");return t.facade=e,Yye(ss,e,t),t},Ey=function(e){return Xye(ss,e)||{}},KE=function(e){return BP(ss,e)}}else{var tc=oz("state");n6[tc]=!0,GE=function(e,t){if(po(e,tc))throw new TP("Object already initialized");return t.facade=e,pf(e,tc,t),t},Ey=function(e){return po(e,tc)?e[tc]:{}},KE=function(e){return po(e,tc)}}var XE={get:Ey,enforce:function(e){return KE(e)?Ey(e):GE(e,{})}},iz=Function.prototype,Zye=Bu&&Object.getOwnPropertyDescriptor,PP=po(iz,"name"),r6={PROPER:PP&&(function(){}).name==="something",CONFIGURABLE:PP&&(!Bu||Bu&&Zye(iz,"name").configurable)},kh=XU((function(e){var t=r6.CONFIGURABLE,n=XE.get,r=XE.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;or(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!po(u,"name")||t&&u.name!==d)&&pf(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==We?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:pf(i,a,u)):f?i[a]=u:Y8(a,u)})(Function.prototype,"toString",(function(){return or(this)&&n(this).source||t6(this)}))})),Jye=Math.ceil,Qye=Math.floor,fb=function(e){var t=+e;return t!=t||t===0?0:(t>0?Qye:Jye)(t)},e1e=Math.max,t1e=Math.min,Oh=function(e,t){var n=fb(e);return n<0?e1e(n+t,0):t1e(n,t)},n1e=Math.min,o6=function(e){return e>0?n1e(fb(e),9007199254740991):0},db=function(e){return o6(e.length)},r1e=function(e){return function(t,n,r){var o,i=Lg(t),a=db(i),u=Oh(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},o1e=r1e(!1),FP=Je([].push),az=function(e,t){var n,r=Lg(e),o=0,i=[];for(n in r)!po(n6,n)&&po(r,n)&&FP(i,n);for(;t.length>o;)po(r,n=t[o++])&&(~o1e(i,n)||FP(i,n));return i},Dy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],i1e=Dy.concat("length","prototype"),a1e={f:Object.getOwnPropertyNames||function(e){return az(e,i1e)}},u1e={f:Object.getOwnPropertySymbols},s1e=Je([].concat),l1e=Rg("Reflect","ownKeys")||function(e){var t=a1e.f(ho(e)),n=u1e.f;return n?s1e(t,n(e)):t},c1e=function(e,t){for(var n=l1e(t),r=Ng.f,o=rz.f,i=0;i<n.length;i++){var a=n[i];po(e,a)||r(e,a,o(t,a))}},f1e=/#|\.prototype\./,$g=function(e,t){var n=p1e[d1e(e)];return n==g1e||n!=h1e&&(or(t)?mn(t):!!t)},d1e=$g.normalize=function(e){return String(e).replace(f1e,".").toLowerCase()},p1e=$g.data={},h1e=$g.NATIVE="N",g1e=$g.POLYFILL="P",v1e=$g,m1e=rz.f,Fu=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?We:l?We[u]||Y8(u,{}):(We[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=m1e(n,r))&&a.value:n[r],!v1e(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;c1e(i,o)}(e.sham||o&&o.sham)&&pf(i,"sham",!0),kh(n,r,i,e)}},uz={};uz[Do("toStringTag")]="z";var i6=String(uz)==="[object z]",y1e=Do("toStringTag"),b1e=We.Object,w1e=hu((function(){return arguments})())=="Arguments",a6=i6?hu:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch(a){}})(t=b1e(e),y1e))=="string"?n:w1e?hu(t):(r=hu(t))=="Object"&&or(t.callee)?"Arguments":r},_1e=We.String,Qn=function(e){if(a6(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return _1e(e)},x1e=/"/g,C1e=Je("".replace);Fu({target:"String",proto:!0,forced:mn((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Qn(Pu(this)),r="<a",(r+=' name="'+C1e(Qn(t),x1e,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Xv,sz=function(){var e=ho(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},u6=We.RegExp,YE=mn((function(){var e=u6("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));YE||mn((function(){return!u6("a","y").sticky}));var lz={BROKEN_CARET:YE||mn((function(){var e=u6("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:YE},S1e=Object.keys||function(e){return az(e,Dy)},E1e=Bu?Object.defineProperties:function(e,t){ho(e);for(var n,r=Lg(t),o=S1e(t),i=o.length,a=0;i>a;)Ng.f(e,n=o[a++],r[n]);return e},D1e=Rg("document","documentElement"),cz=oz("IE_PROTO"),B_=function(){},fz=function(e){return"<script>"+e+"<\/script>"},MP=function(e){e.write(fz("")),e.close();var t=e.parentWindow.Object;return e=null,t},Um=function(){try{Xv=new ActiveXObject("htmlfile")}catch(r){}var e,t;Um=typeof document<"u"?document.domain&&Xv?MP(Xv):((t=e6("iframe")).style.display="none",D1e.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(fz("document.F=Object")),e.close(),e.F):MP(Xv);for(var n=Dy.length;n--;)delete Um.prototype[Dy[n]];return Um()};n6[cz]=!0;var IP,P_,dz=Object.create||function(e,t){var n;return e!==null?(B_.prototype=ho(e),n=new B_,B_.prototype=null,n[cz]=e):n=Um(),t===void 0?n:E1e(n,t)},k1e=We.RegExp,O1e=mn((function(){var e=k1e(".","s");return!(e.dotAll&&e.exec("\n")&&e.flags==="s")})),A1e=We.RegExp,T1e=mn((function(){var e=A1e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),B1e=XE.get,P1e=Z8("native-string-replace",String.prototype.replace),ky=RegExp.prototype.exec,ZE=ky,F1e=Je("".charAt),M1e=Je("".indexOf),I1e=Je("".replace),F_=Je("".slice),M_=(P_=/b*/g,xn(ky,IP=/a/,"a"),xn(ky,P_,"a"),IP.lastIndex!==0||P_.lastIndex!==0),jP=lz.BROKEN_CARET,I_=/()??/.exec("")[1]!==void 0;(M_||I_||jP||O1e||T1e)&&(ZE=function(e){var t,n,r,o,i,a,u,s=this,l=B1e(s),c=Qn(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=xn(ZE,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=jP&&s.sticky,m=xn(sz,s),v=s.source,h=0,y=c;if(d&&(m=I1e(m,"y",""),M1e(m,"g")===-1&&(m+="g"),y=F_(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&F1e(c,s.lastIndex-1)!=="\n")&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",m)),I_&&(n=new RegExp("^"+v+"$(?!\\s)",m)),M_&&(r=s.lastIndex),o=xn(ky,d?n:s,y),d?o?(o.input=F_(o.input,h),o[0]=F_(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:M_&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),I_&&o&&o.length>1&&xn(P1e,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&p)for(o.groups=a=dz(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Ah=ZE;Fu({target:"RegExp",proto:!0,forced:/./.exec!==Ah},{exec:Ah});var Oy=Array.isArray||function(e){return hu(e)=="Array"},pz=function(){},j1e=[],hz=Rg("Reflect","construct"),s6=/^\s*(?:class|function)\b/,L1e=Je(s6.exec),R1e=!s6.exec(pz),Vd=function(e){if(!or(e))return!1;try{return hz(pz,j1e,e),!0}catch(t){return!1}},l6=!hz||mn((function(){var e;return Vd(Vd.call)||!Vd(Object)||!Vd((function(){e=!0}))||e}))?function(e){if(!or(e))return!1;switch(a6(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return R1e||!!L1e(s6,t6(e))}:Vd,gz=function(e,t,n){var r=Q8(t);r in e?Ng.f(e,r,G8(0,n)):e[r]=n},N1e=Do("species"),c6=function(e){return VE>=51||!mn((function(){var t=[];return(t.constructor={})[N1e]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},$1e=Je([].slice),U1e=c6("slice"),z1e=Do("species"),j_=We.Array,H1e=Math.max;function Zo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function LP(e){var t=e.selection;if(t==null)return!1;var n=Zo(S.nodes(e,{match:function(i){return I.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=Zo(n,2)[1],o=S.start(e,r);if(Ue.equals(t.anchor,o))return!0}return!1}function RP(e,t){var n,r,o=S.nodes(e,{at:t,match:function(s){return I.getNodeType(s)==="table"}}),i=!1;try{for(var a=(function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")})(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}Fu({target:"Array",proto:!0,forced:!U1e},{slice:function(e,t){var n,r,o,i=Lg(this),a=db(i),u=Oh(e,a),s=Oh(t===void 0?a:t,a);if(Oy(i)&&(n=i.constructor,(l6(n)&&(n===j_||Oy(n.prototype))||bi(n)&&(n=n[z1e])===null)&&(n=void 0),n===j_||n===void 0))return $1e(i,u,s);for(r=new(n===void 0?j_:n)(H1e(s-u,0)),o=0;u<s;u++,o++)u in i&&gz(r,o,i[u]);return r.length=o,r}});var NP=Je(Je.bind),V1e=Do("species"),$P=We.Array,W1e=function(e,t){return new((function(n){var r;return Oy(n)&&(r=n.constructor,(l6(r)&&(r===$P||Oy(r.prototype))||bi(r)&&(r=r[V1e])===null)&&(r=void 0)),r===void 0?$P:r})(e))(t===0?0:t)},UP=Je([].push),Yv=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=J8(s),v=ZU(m),h=(function(x,k){return ez(x),k===void 0?x:NP?NP(x,k):function(){return x.apply(k,arguments)}})(l,c),y=db(v),g=0,b=f||W1e,w=t?b(s,y):n||a?b(s,0):void 0;y>g;g++)if((u||g in v)&&(d=h(p=v[g],g,m),e))if(t)w[g]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:UP(w,p)}else switch(e){case 4:return!1;case 7:UP(w,p)}return i?-1:r||o?o:w}},pb={forEach:Yv(0),map:Yv(1),filter:Yv(2),find:Yv(5)},q1e=pb.map;Fu({target:"Array",proto:!0,forced:!c6("map")},{map:function(e){return q1e(this,e,arguments.length>1?arguments[1]:void 0)}});var G1e=i6?{}.toString:function(){return"[object "+a6(this)+"]"};function hb(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function vz(e){return hb(e).every((function(t){return!!t.isHeader}))}i6||kh(Object.prototype,"toString",G1e,{unsafe:!0});var K1e=r6.PROPER,JE=RegExp.prototype,mz=JE.toString,X1e=Je(sz),Y1e=mn((function(){return mz.call({source:"a",flags:"b"})!="/a/b"})),Z1e=K1e&&mz.name!="toString";(Y1e||Z1e)&&kh(RegExp.prototype,"toString",(function(){var e=ho(this),t=Qn(e.source),n=e.flags;return"/"+t+"/"+Qn(n===void 0&&JU(JE,e)&&!("flags"in JE)?X1e(e):n)}),{unsafe:!0});var QE=Do("unscopables"),eD=Array.prototype;eD[QE]==null&&Ng.f(eD,QE,{configurable:!0,value:dz(null)});var J1e=pb.find,zP=!0;"find"in[]&&Array(1).find((function(){zP=!1})),Fu({target:"Array",proto:!0,forced:zP},{find:function(e){return J1e(this,e,arguments.length>1?arguments[1]:void 0)}}),eD[QE].find=!0;var f6=Function.prototype,HP=f6.apply,Q1e=f6.bind,VP=f6.call,yz=typeof Reflect=="object"&&Reflect.apply||(Q1e?VP.bind(HP):function(){return VP.apply(HP,arguments)}),ebe=Do("species"),L_=RegExp.prototype,bz=function(e,t,n,r){var o=Do(e),i=!mn((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!mn((function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[ebe]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||n){var u=Je(/./[o]),s=t(o,""[e],(function(l,c,f,p,d){var m=Je(l),v=c.exec;return v===Ah||v===L_.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}}));kh(String.prototype,e,s[0]),kh(L_,o,s[1])}r&&pf(L_[o],"sham",!0)},tbe=Do("match"),nbe=We.TypeError,rbe=Do("species"),obe=Je("".charAt),WP=Je("".charCodeAt),ibe=Je("".slice),abe=function(e){return function(t,n){var r,o,i=Qn(Pu(t)),a=fb(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=WP(i,a))<55296||r>56319||a+1===u||(o=WP(i,a+1))<56320||o>57343?e?obe(i,a):r:e?ibe(i,a,a+2):o-56320+(r-55296<<10)+65536}},ube=abe(!0),wz=function(e,t,n){return t+(n?ube(e,t).length:1)},sbe=We.Array,lbe=Math.max,qP=function(e,t,n){for(var r=db(e),o=Oh(t,r),i=Oh(n===void 0?r:n,r),a=sbe(lbe(i-o,0)),u=0;o<i;o++,u++)gz(a,u,e[o]);return a.length=u,a},cbe=We.TypeError,tD=function(e,t){var n=e.exec;if(or(n)){var r=xn(n,e,t);return r!==null&&ho(r),r}if(hu(e)==="RegExp")return xn(Ah,e,t);throw cbe("RegExp#exec called on incompatible receiver")},nc=lz.UNSUPPORTED_Y,fbe=Math.min,_z=[].push,dbe=Je(/./.exec),rc=Je(_z),Wd=Je("".slice);bz("split",(function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=Qn(Pu(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!bi(a=o)||!((u=a[tbe])!==void 0?u:hu(a)=="RegExp"))return xn(t,s,o,l);for(var c,f,p,d=[],m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),v=0,h=new RegExp(o.source,m+"g");(c=xn(Ah,h,s))&&!((f=h.lastIndex)>v&&(rc(d,Wd(s,v,c.index)),c.length>1&&c.index<s.length&&yz(_z,d,qP(c,1)),p=c[0].length,v=f,d.length>=l));)h.lastIndex===c.index&&h.lastIndex++;return v===s.length?!p&&dbe(h,"")||rc(d,""):rc(d,Wd(s,v)),d.length>l?qP(d,0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:xn(t,this,o,i)}:t,[function(o,i){var a=Pu(this),u=o==null?void 0:X8(o,e);return u?xn(u,o,a,i):xn(r,Qn(a),o,i)},function(o,i){var a=ho(this),u=Qn(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=(function(w,x){var k,D=ho(w).constructor;return D===void 0||(k=ho(D)[rbe])==null?x:(function(T){if(l6(T))return T;throw nbe(QU(T)+" is not a constructor")})(k)})(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(nc?"g":"y"),p=new l(nc?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return tD(p,u)===null?[u]:[];for(var m=0,v=0,h=[];v<u.length;){p.lastIndex=nc?0:v;var y,g=tD(p,nc?Wd(u,v):u);if(g===null||(y=fbe(o6(p.lastIndex+(nc?v:0)),u.length))===m)v=wz(u,v,c);else{if(rc(h,Wd(u,m,v)),h.length===d)return h;for(var b=1;b<=g.length-1;b++)if(rc(h,g[b]),h.length===d)return h;v=m=y}}return rc(h,Wd(u,m)),h}]}),!!mn((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),nc);var nD=" \n\v\f\r    \u2028\u2029\uFEFF",GP=Je("".replace),Ay="["+nD+"]",pbe=RegExp("^"+Ay+Ay+"*"),hbe=RegExp(Ay+Ay+"*$"),gbe=function(e){return function(t){var n=Qn(Pu(t));return 1&e&&(n=GP(n,pbe,"")),2&e&&(n=GP(n,hbe,"")),n}},vbe={trim:gbe(3)},mbe=r6.PROPER,ybe=vbe.trim;function xz(e){return e.length?e[0].tagName.toLowerCase():""}Fu({target:"String",proto:!0,forced:(function(e){return mn((function(){return!!nD[e]()||"…"[e]()!=="…"||mbe&&nD[e].name!==e}))})("trim")},{trim:function(){return ybe(this)}}),Fu({global:!0},{globalThis:We}),yo&&(N.fn.append=yo),Ai&&(N.fn.on=Ai),Eu&&(N.fn.focus=Eu),mo&&(N.fn.attr=mo),Oi&&(N.fn.val=Oi),Su&&(N.fn.html=Su),Yc&&(N.fn.dataset=Yc),Gc&&(N.fn.addClass=Gc),Kc&&(N.fn.removeClass=Kc),ef&&(N.fn.children=ef),F0&&(N.fn.each=F0),Qc&&(N.fn.find=Qc);var Th=!1,Cz=0,Sz=0,Bh=null,Ph=null,Hp=N("body");function Ez(e){Th=!1,Ph=null,Bh=null,Hp.off("mousemove",Dz),Hp.off("mouseup",Ez)}Hp.on("mousedown",(function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),Th=!0;var n=e.clientX;Cz=n;var r=t.getBoundingClientRect().width;Sz=r,Hp.on("mousemove",Dz),Hp.on("mouseup",Ez)}}));var Dz=rl((function(e){if(Th&&Ph!=null&&Bh!=null){e.preventDefault();var t=e.clientX,n=Sz+(t-Cz);(n=Math.floor(100*n)/100)<30&&(n=30),K.setNodes(Ph,{width:n.toString()},{at:Bh})}}),100),bbe={type:"table",renderElem:function(e,t,n){var r=(function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||ee.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,p=I.findPath(u,s),d=S.start(u,p),m=S.end(u,p),v=Ue.compare(c,m)<=0&&Ue.compare(c,d)>=0,h=Ue.compare(f,m)<=0&&Ue.compare(f,d)>=0;return!!(v&&h&&q.equals(c.path.slice(0,3),f.path.slice(0,3)))})(n,e),o=e.width,i=o===void 0?"auto":o,a=Be("div",{className:"table-container","data-selected":I.isNodeSelected(n,e),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=I.findPath(n,e),l=S.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},Be("table",{width:i,contentEditable:r},Be("colgroup",null,hb(e).map((function(u){var s=u.width;return Be("col",{width:s===void 0?"auto":s})}))),Be("tbody",null,t)));return a}},wbe={type:"table-row",renderElem:function(e,t,n){return Be("tr",null,t)}},_be={type:"table-cell",renderElem:function(e,t,n){var r=(function(p,d){var m=I.getParentNode(p,d);if(m==null)return!1;var v=I.getParentNode(p,m);return v!=null&&hb(v).some((function(h){return h===d}))})(n,e),o=e,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!r)return Be("td",{colSpan:a,rowSpan:s},t);var f=Be(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:rl((function(p){var d=this.elm;if(d!=null){var m=d.getBoundingClientRect(),v=m.left,h=m.width,y=m.top,g=m.height,b=p.clientX,w=p.clientY;Th||(b>v+h-5&&b<v+h&&w>y&&w<y+g?(d.style.cursor="col-resize",Ph=n,Bh=I.findPath(n,e)):Th||(d.style.cursor="auto",Ph=null,Bh=null))}}),100)}},t);return f}},xbe={selector:"table",preParseHtml:function(e){var t=N(e);if(xz(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},Cbe=pb.filter;Fu({target:"Array",proto:!0,forced:!c6("filter")},{filter:function(e){return Cbe(this,e,arguments.length>1?arguments[1]:void 0)}});var Sbe=Math.floor,R_=Je("".charAt),Ebe=Je("".replace),N_=Je("".slice),Dbe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,kbe=/\$([$&'`]|\d{1,2})/g,Obe=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=kbe;return o!==void 0&&(o=J8(o),s=Dbe),Ebe(i,s,(function(l,c){var f;switch(R_(c,0)){case"$":return"$";case"&":return e;case"`":return N_(t,0,n);case"'":return N_(t,a);case"<":f=o[N_(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Sbe(p/10);return d===0?l:d<=u?r[d-1]===void 0?R_(c,1):r[d-1]+R_(c,1):l}f=r[p-1]}return f===void 0?"":f}))},rD=Do("replace"),Abe=Math.max,Tbe=Math.min,Bbe=Je([].concat),$_=Je([].push),KP=Je("".indexOf),XP=Je("".slice),Pbe="a".replace(/./,"$0")==="$0",YP=!!/./[rD]&&/./[rD]("a","$0")==="";bz("replace",(function(e,t,n){var r=YP?"$":"$0";return[function(o,i){var a=Pu(this),u=o==null?void 0:X8(o,rD);return u?xn(u,o,a,i):xn(t,Qn(a),o,i)},function(o,i){var a=ho(this),u=Qn(o);if(typeof i=="string"&&KP(i,r)===-1&&KP(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=or(i);l||(i=Qn(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=tD(a,u);if(d===null||($_(p,d),!c))break;Qn(d[0])===""&&(a.lastIndex=wz(u,o6(a.lastIndex),f))}for(var m,v="",h=0,y=0;y<p.length;y++){for(var g=Qn((d=p[y])[0]),b=Abe(Tbe(fb(d.index),u.length),0),w=[],x=1;x<d.length;x++)$_(w,(m=d[x])===void 0?m:String(m));var k=d.groups;if(l){var D=Bbe([g],w,b,u);k!==void 0&&$_(D,k);var T=Qn(yz(i,void 0,D))}else T=Obe(g,u,b,w,k,i);b>=h&&(v+=XP(u,h,b)+T,h=b+g.length)}return v+XP(u,h)}]}),!!mn((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!Pbe||YP);var Fbe={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=N(e);(t=t.filter((function(u){return!!me.isText(u)||!!n.isInline(u)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:xz(r)==="th",colSpan:o,rowSpan:i,width:a,children:t}}},Mbe={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(r){return I.getNodeType(r)==="table-cell"}))}}},Ibe={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=N(e),o="auto";return(function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var p=f.split(":");p[0].trim()==="width"&&(u=p[1].trim())}}return u})(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:t.filter((function(i){return I.getNodeType(i)==="table-row"}))}}},jbe=(function(){function e(){this.title=de("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!ee.isCollapsed(n)||!!I.getSelectedElems(t).some((function(r){var o=I.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!t.isVoid(r)}))},e.prototype.getPanelContentElem=function(t){var n=this;if(this.$content)return this.$content[0];for(var r=N('<div class="w-e-panel-content-table"></div>'),o=N("<span>0 &times; 0</span>"),i=N("<table></table>"),a=0;a<10;a++){for(var u=N("<tr></tr>"),s=0;s<10;s++){var l=N("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",(function(c){var f=c.target;if(f!=null){var p=N(f).dataset(),d=p.x,m=p.y;o[0].innerHTML=d+1+" &times; "+(m+1),i.children().each((function(v){N(v).children().each((function(h){var y=N(h),g=y.dataset(),b=g.x,w=g.y;b<=d&&w<=m?y.addClass("active"):y.removeClass("active")}))}))}})),l.on("click",(function(c){c.preventDefault();var f=c.target;if(f!=null){var p=N(f).dataset(),d=p.x,m=p.y;n.insertTable(t,m+1,d+1)}}))}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},e.prototype.insertTable=function(t,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){I.isSelectedEmptyParagraph(t)&&K.removeNodes(t,{mode:"highest"});var a=(function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],p=0;p<s;p++){var d={type:"table-cell",children:[{text:""}]};c===0&&(d.isHeader=!0),f.push(d)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}})(o,i);K.insertNodes(t,a,{mode:"highest"})}},e})(),Lbe=(function(){function e(){this.title=de("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||I.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||K.removeNodes(t,{mode:"highest"})},e})(),Rbe=(function(){function e(){this.title=de("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!ee.isCollapsed(n)||I.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Zo(S.nodes(t,{match:function(d){return I.checkNodeType(d,"table-cell")},universal:!0}),1),o=Zo(r[0],2),i=o[0],a=o[1],u=I.getParentNode(t,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=q.parent(a),p=q.next(f);K.insertNodes(t,l,{at:p})}}},e})(),Nbe=(function(){function e(){this.title=de("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!ee.isCollapsed(n)||I.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Zo(S.nodes(t,{match:function(s){return I.checkNodeType(s,"table-row")},universal:!0}),1),o=Zo(r[0],2),i=o[0],a=o[1],u=I.getParentNode(t,i);((u==null?void 0:u.children.length)||0)<=1?K.removeNodes(t,{mode:"highest"}):K.removeNodes(t,{at:a})}},e})(),ZP={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},U_=e6("span").classList,JP=U_&&U_.constructor&&U_.constructor.prototype,$be=JP===Object.prototype?void 0:JP,Ube=pb.forEach,zbe=(function(e,t){var n=[].forEach;return!!n&&mn((function(){n.call(null,(function(){throw 1}),1)}))})(),z_=zbe?[].forEach:function(e){return Ube(this,e,arguments.length>1?arguments[1]:void 0)},kz=function(e){if(e&&e.forEach!==z_)try{pf(e,"forEach",z_)}catch(t){e.forEach=z_}};for(var H_ in ZP)ZP[H_]&&kz(We[H_]&&We[H_].prototype);kz($be);var Hbe=(function(){function e(){this.title=de("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!ee.isCollapsed(n)||I.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Zo(S.nodes(t,{match:function(l){return I.checkNodeType(l,"table-cell")},universal:!0}),1),o=Zo(r[0],2),i=o[0],a=o[1],u=I.getParentNode(t,i);if(u!=null){var s=I.getParentNode(t,u);s!=null&&(s.children||[]).forEach((function(l,c){we.isElement(l)&&(l.children||[]).forEach((function(f){var p=I.findPath(t,f);if(p.length===a.length&&KU(p.slice(-1),a.slice(-1))){var d={type:"table-cell",children:[{text:""}]};c===0&&vz(s)&&(d.isHeader=!0),K.insertNodes(t,d,{at:p})}}))}))}}},e})(),Vbe=(function(){function e(){this.title=de("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!ee.isCollapsed(n)||I.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Zo(S.nodes(t,{match:function(c){return I.checkNodeType(c,"table-cell")},universal:!0}),1),o=Zo(r[0],2),i=o[0],a=o[1],u=I.getParentNode(t,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)K.removeNodes(t,{mode:"highest"});else{var l=I.getParentNode(t,u);l!=null&&(l.children||[]).forEach((function(c){we.isElement(c)&&(c.children||[]).forEach((function(f){var p=I.findPath(t,f);p.length===a.length&&KU(p.slice(-1),a.slice(-1))&&K.removeNodes(t,{at:p})}))}))}}},e})(),Wbe=(function(){function e(){this.title=de("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var n=I.getSelectedNodeByType(t,"table");return n!=null&&vz(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!ee.isCollapsed(n)||I.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,o=I.getSelectedNodeByType(t,"table");o!=null&&hb(o).forEach((function(i){return K.setNodes(t,{isHeader:r},{at:I.findPath(t,i)})}))}},e})(),qbe=(function(){function e(){this.title=de("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var n=I.getSelectedNodeByType(t,"table");return n!=null&&n.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!ee.isCollapsed(n)||I.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};K.setNodes(t,r,{mode:"highest"})}},e})(),Gbe={renderElems:[bbe,wbe,_be],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[xbe],parseElemsHtml:[Fbe,Mbe,Ibe],menus:[{key:"insertTable",factory:function(){return new jbe}},{key:"deleteTable",factory:function(){return new Lbe}},{key:"insertTableRow",factory:function(){return new Rbe}},{key:"deleteTableRow",factory:function(){return new Nbe}},{key:"insertTableCol",factory:function(){return new Hbe}},{key:"deleteTableCol",factory:function(){return new Vbe}},{key:"tableHeader",factory:function(){return new Wbe}},{key:"tableFullWidth",factory:function(){return new qbe}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){I.getSelectedNodeByType(s,"table")==null?t():s.insertText("\n")},s.deleteBackward=function(l){if(!LP(s)){var c=s.selection;if(c){var f=S.before(s,c);if(f){var p=RP(s,f),d=RP(s,c);if(p&&!d)return}}n(l)}},s.handleTab=function(){var l;if(I.getSelectedNodeByType(s,"table")){var c=S.above(e);I.checkNodeType(c[0],"table-cell")&&K.select(e,c[1]);var f=S.next(e);if(f)f[0]&&f[0].text&&(f=(l=S.above(e,{at:f[1]}))!==null&&l!==void 0?l:f),K.select(e,f[1]);else{var p=s.children||[],d=p.length;if(I.checkNodeType(p[d-1],"table")){var m=I.genEmptyParagraph();K.insertNodes(s,m,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){LP(s)||r(l)},s.normalizeNode=function(l){var c=Zo(l,2),f=c[0],p=c[1];if(I.getNodeType(f)!=="table")return o([f,p]);if(I.isLastNode(s,f)){var d=I.genEmptyParagraph();K.insertNodes(s,d,{at:[p[0]+1]})}},s.insertData=function(l){if(I.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c==="\n"||/<img[^>]+>/.test(l.getData("text/html"))?i(l):S.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=I.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,p=l.focus;if(q.equals(f.path.slice(0,3),p.path.slice(0,3)))if(fe.string(c).length!==0){var d=I.findPath(s,c),m={anchor:S.start(s,d),focus:S.end(s,d)};s.select(m)}else u();else u()}else u()}else u()},s}};Or("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Or("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});var Ty=function(){return Ty=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ty.apply(this,arguments)};function gb(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n((function(f){f(c)}))).then(a,u)}s((r=r.apply(e,[])).next())}))}function vb(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function qs(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Kbe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=(function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")})(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(i){return new Promise((function(a,u){(function(s,l,c,f){Promise.resolve(f).then((function(p){s({value:p,done:c})}),l)})(a,u,(i=e[o](i)).done,i.value)}))}}}var QP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function d6(e){var t={exports:{}};return e(t,t.exports),t.exports}var Na,zm,Zv=function(e){return e&&e.Math==Math&&e},he=Zv(typeof globalThis=="object"&&globalThis)||Zv(typeof window=="object"&&window)||Zv(typeof self=="object"&&self)||Zv(typeof QP=="object"&&QP)||(function(){return this})()||Function("return this")(),At=function(e){try{return!!e()}catch(t){return!0}},Bi=!At((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),qd=Function.prototype.call,Ot=qd.bind?qd.bind(qd):function(){return qd.apply(qd,arguments)},eF={}.propertyIsEnumerable,tF=Object.getOwnPropertyDescriptor,Xbe={f:tF&&!eF.call({1:2},1)?function(e){var t=tF(this,e);return!!t&&t.enumerable}:eF},mb=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Oz=Function.prototype,oD=Oz.bind,iD=Oz.call,Ybe=oD&&oD.bind(iD),Ie=oD?function(e){return e&&Ybe(iD,e)}:function(e){return e&&function(){return iD.apply(e,arguments)}},Zbe=Ie({}.toString),Jbe=Ie("".slice),Si=function(e){return Jbe(Zbe(e),8,-1)},V_=he.Object,Qbe=Ie("".split),p6=At((function(){return!V_("z").propertyIsEnumerable(0)}))?function(e){return Si(e)=="String"?Qbe(e,""):V_(e)}:V_,e2e=he.TypeError,Ug=function(e){if(e==null)throw e2e("Can't call method on "+e);return e},Wu=function(e){return p6(Ug(e))},Ct=function(e){return typeof e=="function"},Nt=function(e){return typeof e=="object"?e!==null:Ct(e)},t2e=function(e){return Ct(e)?e:void 0},pl=function(e,t){return arguments.length<2?t2e(he[e]):he[e]&&he[e][t]},Fh=Ie({}.isPrototypeOf),jc=pl("navigator","userAgent")||"",nF=he.process,rF=he.Deno,oF=nF&&nF.versions||rF&&rF.version,iF=oF&&oF.v8;iF&&(zm=(Na=iF.split("."))[0]>0&&Na[0]<4?1:+(Na[0]+Na[1])),!zm&&jc&&(!(Na=jc.match(/Edge\/(\d+)/))||Na[1]>=74)&&(Na=jc.match(/Chrome\/(\d+)/))&&(zm=+Na[1]);var Mh=zm,aD=!!Object.getOwnPropertySymbols&&!At((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Mh&&Mh<41})),h6=aD&&!Symbol.sham&&typeof Symbol.iterator=="symbol",n2e=he.Object,W_=h6?function(e){return typeof e=="symbol"}:function(e){var t=pl("Symbol");return Ct(t)&&Fh(t.prototype,n2e(e))},r2e=he.String,By=function(e){try{return r2e(e)}catch(t){return"Object"}},o2e=he.TypeError,Mu=function(e){if(Ct(e))return e;throw o2e(By(e)+" is not a function")},Ih=function(e,t){var n=e[t];return n==null?void 0:Mu(n)},i2e=he.TypeError,a2e=Object.defineProperty,g6=function(e,t){try{a2e(he,e,{value:t,configurable:!0,writable:!0})}catch(n){he[e]=t}return t},vu=he["__core-js_shared__"]||g6("__core-js_shared__",{}),v6=d6((function(e){(e.exports=function(t,n){return vu[t]||(vu[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),u2e=he.Object,yb=function(e){return u2e(Ug(e))},s2e=Ie({}.hasOwnProperty),hn=Object.hasOwn||function(e,t){return s2e(yb(e),t)},l2e=0,c2e=Math.random(),f2e=Ie(1 .toString),m6=function(e){return"Symbol("+(e===void 0?"":e)+")_"+f2e(++l2e+c2e,36)},Gd=v6("wks"),Gs=he.Symbol,aF=Gs&&Gs.for,d2e=h6?Gs:Gs&&Gs.withoutSetter||m6,un=function(e){if(!hn(Gd,e)||!aD&&typeof Gd[e]!="string"){var t="Symbol."+e;aD&&hn(Gs,e)?Gd[e]=Gs[e]:Gd[e]=h6&&aF?aF(t):d2e(t)}return Gd[e]},p2e=he.TypeError,h2e=un("toPrimitive"),y6=function(e){var t=(function(n,r){if(!Nt(n)||W_(n))return n;var o,i=Ih(n,h2e);if(i){if(o=Ot(i,n,r),!Nt(o)||W_(o))return o;throw p2e("Can't convert object to primitive value")}return(function(a,u){var s,l;if(Ct(s=a.toString)&&!Nt(l=Ot(s,a))||Ct(s=a.valueOf)&&!Nt(l=Ot(s,a)))return l;throw i2e("Can't convert object to primitive value")})(n)})(e,"string");return W_(t)?t:t+""},uD=he.document,g2e=Nt(uD)&&Nt(uD.createElement),jh=function(e){return g2e?uD.createElement(e):{}},Az=!Bi&&!At((function(){return Object.defineProperty(jh("div"),"a",{get:function(){return 7}}).a!=7})),uF=Object.getOwnPropertyDescriptor,b6={f:Bi?uF:function(e,t){if(e=Wu(e),t=y6(t),Az)try{return uF(e,t)}catch(n){}if(hn(e,t))return mb(!Ot(Xbe.f,e,t),e[t])}},v2e=he.String,m2e=he.TypeError,In=function(e){if(Nt(e))return e;throw m2e(v2e(e)+" is not an object")},y2e=he.TypeError,sF=Object.defineProperty,ba={f:Bi?sF:function(e,t,n){if(In(e),t=y6(t),In(n),Az)try{return sF(e,t,n)}catch(r){}if("get"in n||"set"in n)throw y2e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},mu=Bi?function(e,t,n){return ba.f(e,t,mb(1,n))}:function(e,t,n){return e[t]=n,e},b2e=Ie(Function.toString);Ct(vu.inspectSource)||(vu.inspectSource=function(e){return b2e(e)});var Py,Vp,Fy,bb=vu.inspectSource,lF=he.WeakMap,Tz=Ct(lF)&&/native code/.test(bb(lF)),cF=v6("keys"),w6=function(e){return cF[e]||(cF[e]=m6(e))},wb={},sD=he.TypeError,w2e=he.WeakMap;if(Tz||vu.state){var ls=vu.state||(vu.state=new w2e),_2e=Ie(ls.get),fF=Ie(ls.has),x2e=Ie(ls.set);Py=function(e,t){if(fF(ls,e))throw new sD("Object already initialized");return t.facade=e,x2e(ls,e,t),t},Vp=function(e){return _2e(ls,e)||{}},Fy=function(e){return fF(ls,e)}}else{var oc=w6("state");wb[oc]=!0,Py=function(e,t){if(hn(e,oc))throw new sD("Object already initialized");return t.facade=e,mu(e,oc,t),t},Vp=function(e){return hn(e,oc)?e[oc]:{}},Fy=function(e){return hn(e,oc)}}var qr={set:Py,get:Vp,has:Fy,enforce:function(e){return Fy(e)?Vp(e):Py(e,{})},getterFor:function(e){return function(t){var n;if(!Nt(t)||(n=Vp(t)).type!==e)throw sD("Incompatible receiver, "+e+" required");return n}}},Bz=Function.prototype,C2e=Bi&&Object.getOwnPropertyDescriptor,q_=hn(Bz,"name"),Uf={EXISTS:q_,PROPER:q_&&(function(){}).name==="something",CONFIGURABLE:q_&&(!Bi||Bi&&C2e(Bz,"name").configurable)},xo=d6((function(e){var t=Uf.CONFIGURABLE,n=qr.get,r=qr.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Ct(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!hn(u,"name")||t&&u.name!==d)&&mu(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==he?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:mu(i,a,u)):f?i[a]=u:g6(a,u)})(Function.prototype,"toString",(function(){return Ct(this)&&n(this).source||bb(this)}))})),S2e=Math.ceil,E2e=Math.floor,_b=function(e){var t=+e;return t!=t||t===0?0:(t>0?E2e:S2e)(t)},D2e=Math.max,k2e=Math.min,Lh=function(e,t){var n=_b(e);return n<0?D2e(n+t,0):k2e(n,t)},O2e=Math.min,Pz=function(e){return e>0?O2e(_b(e),9007199254740991):0},zg=function(e){return Pz(e.length)},dF=function(e){return function(t,n,r){var o,i=Wu(t),a=zg(i),u=Lh(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Fz={includes:dF(!0),indexOf:dF(!1)},A2e=Fz.indexOf,pF=Ie([].push),Mz=function(e,t){var n,r=Wu(e),o=0,i=[];for(n in r)!hn(wb,n)&&hn(r,n)&&pF(i,n);for(;t.length>o;)hn(r,n=t[o++])&&(~A2e(i,n)||pF(i,n));return i},My=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],T2e=My.concat("length","prototype"),Iy={f:Object.getOwnPropertyNames||function(e){return Mz(e,T2e)}},B2e={f:Object.getOwnPropertySymbols},P2e=Ie([].concat),F2e=pl("Reflect","ownKeys")||function(e){var t=Iy.f(In(e)),n=B2e.f;return n?P2e(t,n(e)):t},M2e=function(e,t){for(var n=F2e(t),r=ba.f,o=b6.f,i=0;i<n.length;i++){var a=n[i];hn(e,a)||r(e,a,o(t,a))}},I2e=/#|\.prototype\./,Hg=function(e,t){var n=L2e[j2e(e)];return n==N2e||n!=R2e&&(Ct(t)?At(t):!!t)},j2e=Hg.normalize=function(e){return String(e).replace(I2e,".").toLowerCase()},L2e=Hg.data={},R2e=Hg.NATIVE="N",N2e=Hg.POLYFILL="P",jy=Hg,$2e=b6.f,_r=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?he:l?he[u]||g6(u,{}):(he[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=$2e(n,r))&&a.value:n[r],!jy(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;M2e(i,o)}(e.sham||o&&o.sham)&&mu(i,"sham",!0),xo(n,r,i,e)}},Iz={};Iz[un("toStringTag")]="z";var _6=String(Iz)==="[object z]",U2e=un("toStringTag"),z2e=he.Object,H2e=Si((function(){return arguments})())=="Arguments",xb=_6?Si:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch(a){}})(t=z2e(e),U2e))=="string"?n:H2e?Si(t):(r=Si(t))=="Object"&&Ct(t.callee)?"Arguments":r},V2e=he.String,io=function(e){if(xb(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return V2e(e)},lD=" \n\v\f\r    \u2028\u2029\uFEFF",hF=Ie("".replace),Ly="["+lD+"]",W2e=RegExp("^"+Ly+Ly+"*"),q2e=RegExp(Ly+Ly+"*$"),G2e=function(e){return function(t){var n=io(Ug(t));return 1&e&&(n=hF(n,W2e,"")),2&e&&(n=hF(n,q2e,"")),n}},K2e={trim:G2e(3)},X2e=Uf.PROPER,Y2e=K2e.trim;function gF(e){return e.length?e[0].tagName.toLowerCase():""}function jz(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=N(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}_r({target:"String",proto:!0,forced:At((function(){return!!lD.trim()||"…".trim()!=="…"||X2e&&lD.trim.name!=="trim"}))},{trim:function(){return Y2e(this)}}),_r({global:!0},{globalThis:he}),yo&&(N.fn.append=yo),Ai&&(N.fn.on=Ai),Eu&&(N.fn.focus=Eu),mo&&(N.fn.attr=mo),Oi&&(N.fn.val=Oi),Su&&(N.fn.html=Su),Jc&&(N.fn.parent=Jc),Xc&&(N.fn.hasClass=Xc),nf&&(N.fn.empty=nf);var Jv,Z2e={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,p=f===void 0?"auto":f,d=I.isNodeSelected(n,e);if(a.trim().indexOf("<iframe ")===0)r=Be("div",{className:"w-e-textarea-video-container","data-selected":d?"true":"",innerHTML:jz(a,c,p)});else{var m=Be("video",{poster:s,controls:!0},Be("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");c!=="auto"&&(m.data.width=c),p!=="auto"&&(m.data.height=p),r=Be("div",{className:"w-e-textarea-video-container","data-selected":d?"true":""},m)}return rf("div",{props:{contentEditable:!1},on:{mousedown:function(v){return v.preventDefault()}}},r)}},J2e={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=r===void 0?"":r,i=n.poster,a=i===void 0?"":i,u=n.width,s=u===void 0?"auto":u,l=n.height,c=l===void 0?"auto":l,f='<div data-w-e-type="video" data-w-e-is-void>\n';return o.trim().indexOf("<iframe ")===0?f+=jz(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},Q2e=Object.keys||function(e){return Mz(e,My)},ewe=Bi?Object.defineProperties:function(e,t){In(e);for(var n,r=Wu(t),o=Q2e(t),i=o.length,a=0;i>a;)ba.f(e,n=o[a++],r[n]);return e},cD=pl("document","documentElement"),Lz=w6("IE_PROTO"),G_=function(){},Rz=function(e){return"<script>"+e+"<\/script>"},vF=function(e){e.write(Rz("")),e.close();var t=e.parentWindow.Object;return e=null,t},Hm=function(){try{Jv=new ActiveXObject("htmlfile")}catch(r){}var e,t;Hm=typeof document<"u"?document.domain&&Jv?vF(Jv):((t=jh("iframe")).style.display="none",cD.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Rz("document.F=Object")),e.close(),e.F):vF(Jv);for(var n=My.length;n--;)delete Hm.prototype[My[n]];return Hm()};wb[Lz]=!0;var x6=Object.create||function(e,t){var n;return e!==null?(G_.prototype=In(e),n=new G_,G_.prototype=null,n[Lz]=e):n=Hm(),t===void 0?n:ewe(n,t)},fD=un("unscopables"),dD=Array.prototype;dD[fD]==null&&ba.f(dD,fD,{configurable:!0,value:x6(null)});var Wp=function(e){dD[fD][e]=!0},twe=Fz.includes;_r({target:"Array",proto:!0},{includes:function(e){return twe(this,e,arguments.length>1?arguments[1]:void 0)}}),Wp("includes");var nwe={selector:"iframe,video,p",preParseHtml:function(e){var t=N(e),n=t;if(gF(t)==="p"){var r=t.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=N(o))}}var a=gF(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=N('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},mF=Ie(Ie.bind),Rh=function(e,t){return Mu(e),t===void 0?e:mF?mF(e,t):function(){return e.apply(t,arguments)}},Ry=Array.isArray||function(e){return Si(e)=="Array"},Nz=function(){},rwe=[],$z=pl("Reflect","construct"),C6=/^\s*(?:class|function)\b/,owe=Ie(C6.exec),iwe=!C6.exec(Nz),Kd=function(e){if(!Ct(e))return!1;try{return $z(Nz,rwe,e),!0}catch(t){return!1}},S6=!$z||At((function(){var e;return Kd(Kd.call)||!Kd(Object)||!Kd((function(){e=!0}))||e}))?function(e){if(!Ct(e))return!1;switch(xb(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return iwe||!!owe(C6,bb(e))}:Kd,awe=un("species"),yF=he.Array,uwe=function(e,t){return new((function(n){var r;return Ry(n)&&(r=n.constructor,(S6(r)&&(r===yF||Ry(r.prototype))||Nt(r)&&(r=r[awe])===null)&&(r=void 0)),r===void 0?yF:r})(e))(t===0?0:t)},bF=Ie([].push),wF=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=yb(s),v=p6(m),h=Rh(l,c),y=zg(v),g=0,b=f||uwe,w=t?b(s,y):n||a?b(s,0):void 0;y>g;g++)if((u||g in v)&&(d=h(p=v[g],g,m),e))if(t)w[g]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:bF(w,p)}else switch(e){case 4:return!1;case 7:bF(w,p)}return i?-1:r||o?o:w}},E6={find:wF(5),findIndex:wF(6)},swe=E6.find,_F=!0;"find"in[]&&Array(1).find((function(){_F=!1})),_r({target:"Array",proto:!0,forced:_F},{find:function(e){return swe(this,e,arguments.length>1?arguments[1]:void 0)}}),Wp("find");var lwe=_6?{}.toString:function(){return"[object "+xb(this)+"]"};function xF(e,t,n,r){return t===void 0&&(t=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}_6||xo(Object.prototype,"toString",lwe,{unsafe:!0});var CF,K_,cwe={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=N(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",xF(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",xF(o,i=l.attr("poster")||"",a,u)}},Uz=function(){var e=In(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},D6=he.RegExp,zz=At((function(){var e=D6("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));zz||At((function(){return!D6("a","y").sticky}));var fwe={BROKEN_CARET:zz||At((function(){var e=D6("^r","gy");return e.lastIndex=2,e.exec("str")!=null}))},dwe=he.RegExp,pwe=At((function(){var e=dwe(".","s");return!(e.dotAll&&e.exec("\n")&&e.flags==="s")})),hwe=he.RegExp,gwe=At((function(){var e=hwe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),vwe=qr.get,mwe=v6("native-string-replace",String.prototype.replace),Ny=RegExp.prototype.exec,pD=Ny,ywe=Ie("".charAt),bwe=Ie("".indexOf),wwe=Ie("".replace),X_=Ie("".slice),Y_=(K_=/b*/g,Ot(Ny,CF=/a/,"a"),Ot(Ny,K_,"a"),CF.lastIndex!==0||K_.lastIndex!==0),SF=fwe.BROKEN_CARET,Z_=/()??/.exec("")[1]!==void 0;(Y_||Z_||SF||pwe||gwe)&&(pD=function(e){var t,n,r,o,i,a,u,s=this,l=vwe(s),c=io(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ot(pD,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=SF&&s.sticky,m=Ot(Uz,s),v=s.source,h=0,y=c;if(d&&(m=wwe(m,"y",""),bwe(m,"g")===-1&&(m+="g"),y=X_(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&ywe(c,s.lastIndex-1)!=="\n")&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",m)),Z_&&(n=new RegExp("^"+v+"$(?!\\s)",m)),Y_&&(r=s.lastIndex),o=Ot(Ny,d?n:s,y),d?o?(o.input=X_(o.input,h),o[0]=X_(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Y_&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Z_&&o&&o.length>1&&Ot(mwe,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&p)for(o.groups=a=x6(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var $y=pD;_r({target:"RegExp",proto:!0,forced:/./.exec!==$y},{exec:$y});var k6=Function.prototype,EF=k6.apply,_we=k6.bind,DF=k6.call,Hz=typeof Reflect=="object"&&Reflect.apply||(_we?DF.bind(EF):function(){return DF.apply(EF,arguments)}),kF=(un("species"),RegExp.prototype),xwe=Ie("".charAt),OF=Ie("".charCodeAt),Cwe=Ie("".slice),Swe=function(e){return function(t,n){var r,o,i=io(Ug(t)),a=_b(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=OF(i,a))<55296||r>56319||a+1===u||(o=OF(i,a+1))<56320||o>57343?e?xwe(i,a):r:e?Cwe(i,a,a+2):o-56320+(r-55296<<10)+65536}},Vz={charAt:Swe(!0)},Ewe=Vz.charAt,Dwe=function(e,t,n){return t+(n?Ewe(e,t).length:1)},kwe=Math.floor,J_=Ie("".charAt),Owe=Ie("".replace),Q_=Ie("".slice),Awe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Twe=/\$([$&'`]|\d{1,2})/g,Bwe=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Twe;return o!==void 0&&(o=yb(o),s=Awe),Owe(i,s,(function(l,c){var f;switch(J_(c,0)){case"$":return"$";case"&":return e;case"`":return Q_(t,0,n);case"'":return Q_(t,a);case"<":f=o[Q_(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=kwe(p/10);return d===0?l:d<=u?r[d-1]===void 0?J_(c,1):r[d-1]+J_(c,1):l}f=r[p-1]}return f===void 0?"":f}))},Pwe=he.TypeError,Fwe=function(e,t){var n=e.exec;if(Ct(n)){var r=Ot(n,e,t);return r!==null&&In(r),r}if(Si(e)==="RegExp")return Ot($y,e,t);throw Pwe("RegExp#exec called on incompatible receiver")},hD=un("replace"),Mwe=Math.max,Iwe=Math.min,jwe=Ie([].concat),ex=Ie([].push),AF=Ie("".indexOf),TF=Ie("".slice),Lwe="a".replace(/./,"$0")==="$0",BF=!!/./[hD]&&/./[hD]("a","$0")==="";function Wz(e){return e+"-"+QL()}(function(e,t,n,r){var o=un(e),i=!At((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!At((function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||n){var u=Ie(/./[o]),s=(function(l,c,f){var p=BF?"$":"$0";return[function(d,m){var v=Ug(this),h=d==null?void 0:Ih(d,hD);return h?Ot(h,d,v,m):Ot(c,io(v),d,m)},function(d,m){var v=In(this),h=io(d);if(typeof m=="string"&&AF(m,p)===-1&&AF(m,"$<")===-1){var y=f(c,v,h,m);if(y.done)return y.value}var g=Ct(m);g||(m=io(m));var b=v.global;if(b){var w=v.unicode;v.lastIndex=0}for(var x=[];;){var k=Fwe(v,h);if(k===null||(ex(x,k),!b))break;io(k[0])===""&&(v.lastIndex=Dwe(h,Pz(v.lastIndex),w))}for(var D,T="",A=0,F=0;F<x.length;F++){for(var j=io((k=x[F])[0]),R=Mwe(Iwe(_b(k.index),h.length),0),U=[],H=1;H<k.length;H++)ex(U,(D=k[H])===void 0?D:String(D));var G=k.groups;if(g){var X=jwe([j],U,R,h);G!==void 0&&ex(X,G);var oe=io(Hz(m,void 0,X))}else oe=Bwe(j,h,R,U,G,m);R>=A&&(T+=TF(h,A,R)+oe,A=R+j.length)}return T+TF(h,A)}]})(0,""[e],(function(l,c,f,p,d){var m=Ie(l),v=c.exec;return v===$y||v===kF.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}}));xo(String.prototype,e,s[0]),xo(kF,o,s[1])}})("replace",0,!!At((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!Lwe||BF);var Uy=he.Promise,zy=function(e,t,n){for(var r in t)xo(e,r,t[r],n);return e},Rwe=he.String,Nwe=he.TypeError,hf=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=Ie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,o){return In(r),(function(i){if(typeof i=="object"||Ct(i))return i;throw Nwe("Can't set "+Rwe(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),$we=ba.f,PF=un("toStringTag"),Hy=function(e,t,n){e&&!hn(e=n?e:e.prototype,PF)&&$we(e,PF,{configurable:!0,value:t})},FF=un("species"),Uwe=he.TypeError,O6=function(e,t){if(Fh(t,e))return e;throw Uwe("Incorrect invocation")},gf={},zwe=un("iterator"),Hwe=Array.prototype,Vwe=un("iterator"),MF=function(e){if(e!=null)return Ih(e,Vwe)||Ih(e,"@@iterator")||gf[xb(e)]},Wwe=he.TypeError,IF=function(e,t,n){var r,o;In(e);try{if(!(r=Ih(e,"return"))){if(t==="throw")throw n;return n}r=Ot(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return In(r),n},qwe=he.TypeError,Vm=function(e,t){this.stopped=e,this.result=t},jF=Vm.prototype,Vy=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),v=Rh(t,f),h=function(g){return r&&IF(r,"normal",g),new Vm(!0,g)},y=function(g){return p?(In(g),m?v(g[0],g[1],h):v(g[0],g[1])):m?v(g,h):v(g)};if(d)r=e;else{if(!(o=MF(e)))throw qwe(By(e)+" is not iterable");if((c=o)!==void 0&&(gf.Array===c||Hwe[zwe]===c)){for(i=0,a=zg(e);a>i;i++)if((u=y(e[i]))&&Fh(jF,u))return u;return new Vm(!1)}r=(function(g,b){var w=arguments.length<2?MF(g):b;if(Mu(w))return In(Ot(w,g));throw Wwe(By(g)+" is not iterable")})(e,o)}for(s=r.next;!(l=Ot(s,r)).done;){try{u=y(l.value)}catch(g){IF(r,"throw",g)}if(typeof u=="object"&&u&&Fh(jF,u))return u}return new Vm(!1)},qz=un("iterator"),Gz=!1;try{var Gwe=0,LF={next:function(){return{done:!!Gwe++}},return:function(){Gz=!0}};LF[qz]=function(){return this},Array.from(LF,(function(){throw 2}))}catch(e){}var Nh,ic,RF,tx,Kz=function(e,t){if(!Gz)return!1;var n=!1;try{var r={};r[qz]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},Kwe=he.TypeError,Xwe=un("species"),Xz=Ie([].slice),Yz=/(?:ipad|iphone|ipod).*applewebkit/i.test(jc),yu=Si(he.process)=="process",gD=he.setImmediate,NF=he.clearImmediate,Ywe=he.process,nx=he.Dispatch,Zwe=he.Function,$F=he.MessageChannel,Jwe=he.String,rx=0,qp={};try{Nh=he.location}catch(e){}var A6=function(e){if(hn(qp,e)){var t=qp[e];delete qp[e],t()}},ox=function(e){return function(){A6(e)}},UF=function(e){A6(e.data)},zF=function(e){he.postMessage(Jwe(e),Nh.protocol+"//"+Nh.host)};gD&&NF||(gD=function(e){var t=Xz(arguments,1);return qp[++rx]=function(){Hz(Ct(e)?e:Zwe(e),void 0,t)},ic(rx),rx},NF=function(e){delete qp[e]},yu?ic=function(e){Ywe.nextTick(ox(e))}:nx&&nx.now?ic=function(e){nx.now(ox(e))}:$F&&!Yz?(tx=(RF=new $F).port2,RF.port1.onmessage=UF,ic=Rh(tx.postMessage,tx)):he.addEventListener&&Ct(he.postMessage)&&!he.importScripts&&Nh&&Nh.protocol!=="file:"&&!At(zF)?(ic=zF,he.addEventListener("message",UF,!1)):ic="onreadystatechange"in jh("script")?function(e){cD.appendChild(jh("script")).onreadystatechange=function(){cD.removeChild(this),A6(e)}}:function(e){setTimeout(ox(e),0)});var Xd,_s,Gp,yc,ix,ax,ux,HF,Zz={set:gD},Qwe=/ipad|iphone|ipod/i.test(jc)&&he.Pebble!==void 0,e_e=/web0s(?!.*chrome)/i.test(jc),t_e=b6.f,sx=Zz.set,VF=he.MutationObserver||he.WebKitMutationObserver,WF=he.document,qF=he.process,Qv=he.Promise,GF=t_e(he,"queueMicrotask"),Jz=GF&&GF.value;Jz||(Xd=function(){var e,t;for(yu&&(e=qF.domain)&&e.exit();_s;){t=_s.fn,_s=_s.next;try{t()}catch(n){throw _s?yc():Gp=void 0,n}}Gp=void 0,e&&e.enter()},Yz||yu||e_e||!VF||!WF?!Qwe&&Qv&&Qv.resolve?((ux=Qv.resolve(void 0)).constructor=Qv,HF=Rh(ux.then,ux),yc=function(){HF(Xd)}):yu?yc=function(){qF.nextTick(Xd)}:(sx=Rh(sx,he),yc=function(){sx(Xd)}):(ix=!0,ax=WF.createTextNode(""),new VF(Xd).observe(ax,{characterData:!0}),yc=function(){ax.data=ix=!ix}));var lx,KF,Qz,XF,eH=Jz||function(e){var t={fn:e,next:void 0};Gp&&(Gp.next=t),_s||(_s=t,yc()),Gp=t},n_e=function(e){var t,n;this.promise=new e((function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o})),this.resolve=Mu(t),this.reject=Mu(n)},T6={f:function(e){return new n_e(e)}},vD=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},r_e=typeof window=="object",tH=Zz.set,o_e=un("species"),ea="Promise",YF=qr.getterFor(ea),i_e=qr.set,a_e=qr.getterFor(ea),gs=Uy&&Uy.prototype,wi=Uy,Yd=gs,nH=he.TypeError,mD=he.document,B6=he.process,Lc=T6.f,u_e=Lc,s_e=!!(mD&&mD.createEvent&&he.dispatchEvent),rH=Ct(he.PromiseRejectionEvent),oH=!1,Kp=jy(ea,(function(){var e=bb(wi),t=e!==String(wi);if(!t&&Mh===66)return!0;if(Mh>=51&&/native code/.test(e))return!1;var n=new wi((function(o){o(1)})),r=function(o){o((function(){}),(function(){}))};return(n.constructor={})[o_e]=r,!(oH=n.then((function(){}))instanceof r)||!t&&r_e&&!rH})),l_e=Kp||!Kz((function(e){wi.all(e).catch((function(){}))})),iH=function(e){var t;return!(!Nt(e)||!Ct(t=e.then))&&t},P6=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;eH((function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(e.rejection===2&&f_e(e),e.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(nH("Promise-chain cycle")):(u=iH(a))?Ot(u,a,f,p):f(a)):p(r)}catch(m){d&&!s&&d.exit(),p(m)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&c_e(e)}))}},aH=function(e,t,n){var r,o;s_e?((r=mD.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),he.dispatchEvent(r)):r={promise:t,reason:n},!rH&&(o=he["on"+e])?o(r):e==="unhandledrejection"&&(function(i,a){var u=he.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",n)},c_e=function(e){Ot(tH,he,(function(){var t,n=e.facade,r=e.value;if(ZF(e)&&(t=vD((function(){yu?B6.emit("unhandledRejection",r,n):aH("unhandledrejection",n,r)})),e.rejection=yu||ZF(e)?2:1,t.error))throw t.value}))},ZF=function(e){return e.rejection!==1&&!e.parent},f_e=function(e){Ot(tH,he,(function(){var t=e.facade;yu?B6.emit("rejectionHandled",t):aH("rejectionhandled",t,e.value)}))},Ec=function(e,t,n){return function(r){e(t,r,n)}},Rc=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,P6(e,!0))},yD=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw nH("Promise can't be resolved itself");var r=iH(t);r?eH((function(){var o={done:!1};try{Ot(r,t,Ec(yD,o,e),Ec(Rc,o,e))}catch(i){Rc(o,i,e)}})):(e.value=t,e.state=1,P6(e,!1))}catch(o){Rc({done:!1},o,e)}}};if(Kp&&(Yd=(wi=function(e){O6(this,Yd),Mu(e),Ot(lx,this);var t=YF(this);try{e(Ec(yD,t),Ec(Rc,t))}catch(n){Rc(t,n)}}).prototype,(lx=function(e){i_e(this,{type:ea,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=zy(Yd,{then:function(e,t){var n=a_e(this),r=n.reactions,o=Lc((function(i,a){var u,s=In(i).constructor;return s===void 0||(u=In(s)[Xwe])==null?a:(function(l){if(S6(l))return l;throw Kwe(By(l)+" is not a constructor")})(u)})(this,wi));return o.ok=!Ct(e)||e,o.fail=Ct(t)&&t,o.domain=yu?B6.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&P6(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),KF=function(){var e=new lx,t=YF(e);this.promise=e,this.resolve=Ec(yD,t),this.reject=Ec(Rc,t)},T6.f=Lc=function(e){return e===wi||e===Qz?new KF(e):u_e(e)},Ct(Uy)&&gs!==Object.prototype)){XF=gs.then,oH||(xo(gs,"then",(function(e,t){var n=this;return new wi((function(r,o){Ot(XF,n,r,o)})).then(e,t)}),{unsafe:!0}),xo(gs,"catch",Yd.catch,{unsafe:!0}));try{delete gs.constructor}catch(e){}hf&&hf(gs,Yd)}function $h(e,t,n){return n===void 0&&(n=""),gb(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return vb(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return typeof(u=c.sent())=="string"?(e.alert(u,"error"),[2]):u==null?[2]:[4,a(t)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){K.insertNodes(e,l)})),o(l),[2]}}))}))}function cx(){return Wz("w-e-insert-video")}_r({global:!0,wrap:!0,forced:Kp},{Promise:wi}),Hy(wi,ea,!1),(function(e){var t=pl("Promise"),n=ba.f;Bi&&t&&!t[FF]&&n(t,FF,{configurable:!0,get:function(){return this}})})(),Qz=pl(ea),_r({target:ea,stat:!0,forced:Kp},{reject:function(e){var t=Lc(this);return Ot(t.reject,void 0,e),t.promise}}),_r({target:ea,stat:!0,forced:Kp},{resolve:function(e){return(function(t,n){if(In(t),Nt(n)&&n.constructor===t)return n;var r=T6.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),_r({target:ea,stat:!0,forced:l_e},{all:function(e){var t=this,n=Lc(t),r=n.resolve,o=n.reject,i=vD((function(){var a=Mu(t.resolve),u=[],s=0,l=1;Vy(e,(function(c){var f=s++,p=!1;l++,Ot(a,t,c).then((function(d){p||(p=!0,u[f]=d,--l||r(u))}),o)})),--l||r(u)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Lc(t),r=n.reject,o=vD((function(){var i=Mu(t.resolve);Vy(e,(function(a){Ot(i,t,a).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var d_e=(function(){function e(){this.title=de("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=cx(),this.posterInputId=cx(),this.buttonId=cx()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!ee.isCollapsed(n)||!!I.getSelectedElems(t).some((function(r){var o=I.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)}))},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,u=qs($r(de("videoModule.videoSrc"),o,de("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=qs($r(de("videoModule.videoPoster"),i,de("videoModule.videoPosterPlaceHolder")),2),f=c[0],p=c[1],d=N(l),m=N(p),v=qs(Bf(a,de("videoModule.ok")),1)[0];if(this.$content==null){var h=N("<div></div>");h.on("click","#"+a,(function(g){return gb(n,void 0,void 0,(function(){var b,w;return vb(this,(function(x){switch(x.label){case 0:return g.preventDefault(),b=h.find("#"+o).val().trim(),w=h.find("#"+i).val().trim(),[4,$h(t,b,w)];case 1:return x.sent(),t.hidePanelOrModal(),[2]}}))}))})),this.$content=h}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(v),d.val(""),m.val(""),setTimeout((function(){d.focus()})),y[0]},e})(),p_e=Ie([].join),h_e=p6!=Object,g_e=(function(e,t){var n=[].join;return!!n&&At((function(){n.call(null,",",1)}))})();_r({target:"Array",proto:!0,forced:h_e||!g_e},{join:function(e){return p_e(Wu(this),e===void 0?",":e)}});var Ks,JF,QF,v_e=!At((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),eM=w6("IE_PROTO"),bD=he.Object,m_e=bD.prototype,Wy=v_e?bD.getPrototypeOf:function(e){var t=yb(e);if(hn(t,eM))return t[eM];var n=t.constructor;return Ct(n)&&t instanceof n?n.prototype:t instanceof bD?m_e:null},wD=un("iterator"),uH=!1;[].keys&&("next"in(QF=[].keys())?(JF=Wy(Wy(QF)))!==Object.prototype&&(Ks=JF):uH=!0);var y_e=Ks==null||At((function(){var e={};return Ks[wD].call(e)!==e}));y_e&&(Ks={}),Ct(Ks[wD])||xo(Ks,wD,(function(){return this}));var F6={IteratorPrototype:Ks,BUGGY_SAFARI_ITERATORS:uH},b_e=F6.IteratorPrototype,w_e=function(){return this},__e=Uf.PROPER,x_e=Uf.CONFIGURABLE,tM=F6.IteratorPrototype,fx=F6.BUGGY_SAFARI_ITERATORS,Zd=un("iterator"),C_e=function(){return this},sH=function(e,t,n,r,o,i,a){(function(h,y,g,b){var w=y+" Iterator";h.prototype=x6(b_e,{next:mb(1,g)}),Hy(h,w,!1),gf[w]=w_e})(n,t,r);var u,s,l=function(h){if(h===o&&m)return m;if(!fx&&h in p)return p[h];switch(h){case"keys":case"values":case"entries":return function(){return new n(this,h)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,p=e.prototype,d=p[Zd]||p["@@iterator"]||o&&p[o],m=!fx&&d||l(o),v=t=="Array"&&p.entries||d;return v&&(u=Wy(v.call(new e)))!==Object.prototype&&u.next&&(Wy(u)!==tM&&(hf?hf(u,tM):Ct(u[Zd])||xo(u,Zd,C_e)),Hy(u,c,!0)),__e&&o=="values"&&d&&d.name!=="values"&&(x_e?mu(p,"name","values"):(f=!0,m=function(){return Ot(d,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||_r({target:t,proto:!0,forced:fx||f},s)),p[Zd]!==m&&xo(p,Zd,m,{name:o}),gf[t]=m,s},S_e=qr.set,E_e=qr.getterFor("Array Iterator"),Sp=sH(Array,"Array",(function(e,t){S_e(this,{type:"Array Iterator",target:Wu(e),index:0,kind:t})}),(function(){var e=E_e(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");gf.Arguments=gf.Array,Wp("keys"),Wp("values"),Wp("entries");var D_e=Vz.charAt,k_e=qr.set,O_e=qr.getterFor("String Iterator");sH(String,"String",(function(e){k_e(this,{type:"String Iterator",string:io(e),index:0})}),(function(){var e,t=O_e(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=D_e(n,r),t.index+=e.length,{value:e,done:!1})}));var lH=function(e,t,n){var r=y6(t);r in e?ba.f(e,r,mb(0,n)):e[r]=n},A_e=he.Array,T_e=Math.max,nM=Iy.f,rM=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],B_e={f:function(e){return rM&&Si(e)=="Window"?(function(t){try{return nM(t)}catch(n){return(function(r,o,i){for(var a=zg(r),u=Lh(void 0,a),s=Lh(a,a),l=A_e(T_e(s-u,0)),c=0;u<s;u++,c++)lH(l,c,r[u]);return l.length=c,l})(rM)}})(e):nM(Wu(e))}},oM=At((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),em=Object.isExtensible,Ds=At((function(){em(1)}))||oM?function(e){return!!Nt(e)&&(!oM||Si(e)!="ArrayBuffer")&&(!em||em(e))}:em,P_e=!At((function(){return Object.isExtensible(Object.preventExtensions({}))})),M6=d6((function(e){var t=ba.f,n=!1,r=m6("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=Iy.f,s=Ie([].splice),l={};l[r]=1,u(l).length&&(Iy.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},_r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:B_e.f}))},fastKey:function(u,s){if(!Nt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!hn(u,r)){if(!Ds(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!hn(u,r)){if(!Ds(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return P_e&&n&&Ds(u)&&!hn(u,r)&&i(u),u}};wb[r]=!0})),tm=M6.getWeakData,F_e=qr.set,M_e=qr.getterFor,I_e=E6.find,j_e=E6.findIndex,L_e=Ie([].splice),R_e=0,nm=function(e){return e.frozen||(e.frozen=new cH)},cH=function(){this.entries=[]},dx=function(e,t){return I_e(e.entries,(function(n){return n[0]===t}))};cH.prototype={get:function(e){var t=dx(this,e);if(t)return t[1]},has:function(e){return!!dx(this,e)},set:function(e,t){var n=dx(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=j_e(this.entries,(function(n){return n[0]===e}));return~t&&L_e(this.entries,t,1),!!~t}};var Jd,fH={getConstructor:function(e,t,n,r){var o=e((function(s,l){O6(s,i),F_e(s,{type:t,id:R_e++,frozen:void 0}),l!=null&&Vy(l,s[r],{that:s,AS_ENTRIES:n})})),i=o.prototype,a=M_e(t),u=function(s,l,c){var f=a(s),p=tm(In(l),!0);return p===!0?nm(f).set(l,c):p[f.id]=c,s};return zy(i,{delete:function(s){var l=a(this);if(!Nt(s))return!1;var c=tm(s);return c===!0?nm(l).delete(s):c&&hn(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Nt(s))return!1;var c=tm(s);return c===!0?nm(l).has(s):c&&hn(c,l.id)}}),zy(i,n?{get:function(s){var l=a(this);if(Nt(s)){var c=tm(s);return c===!0?nm(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},rm=qr.enforce,N_e=!he.ActiveXObject&&"ActiveXObject"in he,dH=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},$_e=(function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=he[e],u=a&&a.prototype,s=a,l={},c=function(h){var y=Ie(u[h]);xo(u,h,h=="add"?function(g){return y(this,g===0?0:g),this}:h=="delete"?function(g){return!(o&&!Nt(g))&&y(this,g===0?0:g)}:h=="get"?function(g){return o&&!Nt(g)?void 0:y(this,g===0?0:g)}:h=="has"?function(g){return!(o&&!Nt(g))&&y(this,g===0?0:g)}:function(g,b){return y(this,g===0?0:g,b),this})};if(jy(e,!Ct(a)||!(o||u.forEach&&!At((function(){new a().entries().next()})))))s=n.getConstructor(t,e,r,i),M6.enable();else if(jy(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=At((function(){f.has(1)})),m=Kz((function(h){new a(h)})),v=!o&&At((function(){for(var h=new a,y=5;y--;)h[i](y,y);return!h.has(-0)}));m||((s=t((function(h,y){O6(h,u);var g=(function(b,w,x){var k,D;return hf&&Ct(k=w.constructor)&&k!==x&&Nt(D=k.prototype)&&D!==x.prototype&&hf(b,D),b})(new a,h,s);return y!=null&&Vy(y,g[i],{that:g,AS_ENTRIES:r}),g}))).prototype=u,u.constructor=s),(d||v)&&(c("delete"),c("has"),r&&c("get")),(v||p)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,_r({global:!0,forced:s!=a},l),Hy(s,e),o||n.setStrong(s,e,r),s})("WeakMap",dH,fH);if(Tz&&N_e){Jd=fH.getConstructor(dH,"WeakMap",!0),M6.enable();var Qd=$_e.prototype,iM=Ie(Qd.delete),om=Ie(Qd.has),aM=Ie(Qd.get),uM=Ie(Qd.set);zy(Qd,{delete:function(e){if(Nt(e)&&!Ds(e)){var t=rm(this);return t.frozen||(t.frozen=new Jd),iM(this,e)||t.frozen.delete(e)}return iM(this,e)},has:function(e){if(Nt(e)&&!Ds(e)){var t=rm(this);return t.frozen||(t.frozen=new Jd),om(this,e)||t.frozen.has(e)}return om(this,e)},get:function(e){if(Nt(e)&&!Ds(e)){var t=rm(this);return t.frozen||(t.frozen=new Jd),om(this,e)?aM(this,e):t.frozen.get(e)}return aM(this,e)},set:function(e,t){if(Nt(e)&&!Ds(e)){var n=rm(this);n.frozen||(n.frozen=new Jd),om(this,e)?uM(this,e,t):n.frozen.set(e,t)}else uM(this,e,t);return this}})}var pH={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},px=jh("span").classList,sM=px&&px.constructor&&px.constructor.prototype,U_e=sM===Object.prototype?void 0:sM,hx=un("iterator"),lM=un("toStringTag"),gx=Sp.values,hH=function(e,t){if(e){if(e[hx]!==gx)try{mu(e,hx,gx)}catch(r){e[hx]=gx}if(e[lM]||mu(e,lM,t),pH[t]){for(var n in Sp)if(e[n]!==Sp[n])try{mu(e,n,Sp[n])}catch(r){e[n]=Sp[n]}}}};for(var vx in pH)hH(he[vx]&&he[vx].prototype,vx);hH(U_e,"DOMTokenList");var z_e=Uf.EXISTS,H_e=ba.f,gH=Function.prototype,V_e=Ie(gH.toString),vH=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,W_e=Ie(vH.exec);Bi&&!z_e&&H_e(gH,"name",{configurable:!0,get:function(){try{return W_e(vH,V_e(this))[1]}catch(e){return""}}});var q_e=un("species"),G_e=Mh>=51||!At((function(){var e=[];return(e.constructor={})[q_e]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),K_e=un("species"),mx=he.Array,X_e=Math.max;function mH(e){return e.getMenuConfig("uploadVideo")}_r({target:"Array",proto:!0,forced:!G_e},{slice:function(e,t){var n,r,o,i=Wu(this),a=zg(i),u=Lh(e,a),s=Lh(t===void 0?a:t,a);if(Ry(i)&&(n=i.constructor,(S6(n)&&(n===mx||Ry(n.prototype))||Nt(n)&&(n=n[K_e])===null)&&(n=void 0),n===mx||n===void 0))return Xz(i,u,s);for(r=new(n===void 0?mx:n)(X_e(s-u,0)),o=0;u<s;u++,o++)u in i&&lH(r,o,i[u]);return r.length=o,r}});var cM=new WeakMap;function Y_e(e,t){return gb(this,void 0,void 0,(function(){var n,r,o,i;return vb(this,(function(a){switch(a.label){case 0:return n=(function(u){var s=cM.get(u);if(s!=null)return s;var l=mH(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,m=l.onError;return s=UN(Ty(Ty({},l),{onProgress:function(v){u.showProgressBar(v),f&&f(v)},onSuccess:function(v,h){if(d)return d(h,(function(T,A){return $h(u,T,A)})),void c(v,h);var y=h.errno,g=y===void 0?1:y,b=h.data,w=b===void 0?{}:b;if(g===0){var x=w.url,k=x===void 0?"":x,D=w.poster;$h(u,k,D===void 0?"":D),c(v,h)}else p(v,h)},onError:function(v,h,y){m(v,h,y)}})),cM.set(u,s),s})(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var Z_e=(function(){function e(){this.title=de("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a((function(c,f){return $h(t,c,f)}));else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=N("body"),l=N('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",(function(){var c=l[0].files;(function(f,p){var d,m;gb(this,void 0,void 0,(function(){var v,h,y,g,b,w;return vb(this,(function(x){switch(x.label){case 0:if(p==null)return[2];v=Array.prototype.slice.call(p),h=mH(f).customUpload,x.label=1;case 1:x.trys.push([1,9,10,15]),y=Kbe(v),x.label=2;case 2:return[4,y.next()];case 3:return(g=x.sent()).done?[3,8]:(b=g.value,h?[4,h(b,(function(k,D){return $h(f,k,D)}))]:[3,5]);case 4:return x.sent(),[3,7];case 5:return[4,Y_e(f,b)];case 6:x.sent(),x.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=x.sent(),d={error:w},[3,15];case 10:return x.trys.push([10,,13,14]),g&&!g.done&&(m=y.return)?[4,m.call(y)]:[3,12];case 11:x.sent(),x.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}}))}))})(t,c)}))}},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!ee.isCollapsed(n)||!!I.getSelectedElems(t).some((function(r){var o=I.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)}))},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e})(),J_e=Uf.PROPER,_D=RegExp.prototype,yH=_D.toString,Q_e=Ie(Uz),exe=At((function(){return yH.call({source:"a",flags:"b"})!="/a/b"})),txe=J_e&&yH.name!="toString";function yx(){return Wz("w-e-insert-video")}(exe||txe)&&xo(RegExp.prototype,"toString",(function(){var e=In(this),t=io(e.source),n=e.flags;return"/"+t+"/"+io(n===void 0&&Fh(_D,e)&&!("flags"in _D)?Q_e(e):n)}),{unsafe:!0});var nxe=(function(){function e(){this.title=de("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=yx(),this.heightInputId=yx(),this.buttonId=yx()}return e.prototype.getSelectedVideoNode=function(t){return I.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=qs($r(de("videoModule.width"),r,"auto"),2),u=a[0],s=N(a[1]),l=qs($r(de("videoModule.height"),o,"auto"),2),c=l[0],f=N(l[1]),p=qs(Bf(i,de("videoModule.ok")),1)[0];if(this.$content==null){var d=N("<div></div>");d.on("click","#"+i,(function(w){w.preventDefault();var x=d.find("#"+r).val().trim(),k=d.find("#"+o).val().trim(),D=parseInt(x),T=parseInt(k),A=D?D.toString():"auto",F=T?T.toString():"auto";t.restoreSelection(),K.setNodes(t,{width:A,height:F},{match:function(j){return I.checkNodeType(j,"video")}}),t.hidePanelOrModal()})),this.$content=d}var m=this.$content;m.empty(),m.append(u),m.append(c),m.append(p);var v=this.getSelectedVideoNode(t);if(v==null)return m[0];var h=v.width,y=h===void 0?"auto":h,g=v.height,b=g===void 0?"auto":g;return s.val(y),f.val(b),setTimeout((function(){s.focus()})),m[0]},e})(),rxe={renderElems:[Z2e],elemsToHtml:[J2e],preParseHtml:[nwe],parseElemsHtml:[cwe],menus:[{key:"insertVideo",factory:function(){return new d_e},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Z_e},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new nxe}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="video"||t(o)},r.normalizeNode=function(o){var i=qs(o,2),a=i[0],u=i[1];return I.getNodeType(a)==="video"&&I.isLastNode(r,a)&&K.insertNodes(r,I.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};Or("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Or("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var fM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function I6(e){var t={exports:{}};return e(t,t.exports),t.exports}var $a,Wm,im=function(e){return e&&e.Math==Math&&e},pe=im(typeof globalThis=="object"&&globalThis)||im(typeof window=="object"&&window)||im(typeof self=="object"&&self)||im(typeof fM=="object"&&fM)||(function(){return this})()||Function("return this")(),Mt=function(e){try{return!!e()}catch(t){return!0}},Pi=!Mt((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),ep=Function.prototype.call,wt=ep.bind?ep.bind(ep):function(){return ep.apply(ep,arguments)},dM={}.propertyIsEnumerable,pM=Object.getOwnPropertyDescriptor,oxe={f:pM&&!dM.call({1:2},1)?function(e){var t=pM(this,e);return!!t&&t.enumerable}:dM},Cb=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},bH=Function.prototype,xD=bH.bind,CD=bH.call,ixe=xD&&xD.bind(CD),Ve=xD?function(e){return e&&ixe(CD,e)}:function(e){return e&&function(){return CD.apply(e,arguments)}},axe=Ve({}.toString),uxe=Ve("".slice),Vo=function(e){return uxe(axe(e),8,-1)},bx=pe.Object,sxe=Ve("".split),j6=Mt((function(){return!bx("z").propertyIsEnumerable(0)}))?function(e){return Vo(e)=="String"?sxe(e,""):bx(e)}:bx,lxe=pe.TypeError,Uh=function(e){if(e==null)throw lxe("Can't call method on "+e);return e},qu=function(e){return j6(Uh(e))},Dt=function(e){return typeof e=="function"},Bt=function(e){return typeof e=="object"?e!==null:Dt(e)},cxe=function(e){return Dt(e)?e:void 0},hl=function(e,t){return arguments.length<2?cxe(pe[e]):pe[e]&&pe[e][t]},zh=Ve({}.isPrototypeOf),Nc=hl("navigator","userAgent")||"",hM=pe.process,gM=pe.Deno,vM=hM&&hM.versions||gM&&gM.version,mM=vM&&vM.v8;mM&&(Wm=($a=mM.split("."))[0]>0&&$a[0]<4?1:+($a[0]+$a[1])),!Wm&&Nc&&(!($a=Nc.match(/Edge\/(\d+)/))||$a[1]>=74)&&($a=Nc.match(/Chrome\/(\d+)/))&&(Wm=+$a[1]);var Hh=Wm,SD=!!Object.getOwnPropertySymbols&&!Mt((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Hh&&Hh<41})),L6=SD&&!Symbol.sham&&typeof Symbol.iterator=="symbol",fxe=pe.Object,wx=L6?function(e){return typeof e=="symbol"}:function(e){var t=hl("Symbol");return Dt(t)&&zh(t.prototype,fxe(e))},dxe=pe.String,qy=function(e){try{return dxe(e)}catch(t){return"Object"}},pxe=pe.TypeError,Iu=function(e){if(Dt(e))return e;throw pxe(qy(e)+" is not a function")},Vh=function(e,t){var n=e[t];return n==null?void 0:Iu(n)},hxe=pe.TypeError,gxe=Object.defineProperty,R6=function(e,t){try{gxe(pe,e,{value:t,configurable:!0,writable:!0})}catch(n){pe[e]=t}return t},bu=pe["__core-js_shared__"]||R6("__core-js_shared__",{}),N6=I6((function(e){(e.exports=function(t,n){return bu[t]||(bu[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),vxe=pe.Object,$6=function(e){return vxe(Uh(e))},mxe=Ve({}.hasOwnProperty),gn=Object.hasOwn||function(e,t){return mxe($6(e),t)},yxe=0,bxe=Math.random(),wxe=Ve(1 .toString),U6=function(e){return"Symbol("+(e===void 0?"":e)+")_"+wxe(++yxe+bxe,36)},tp=N6("wks"),Xs=pe.Symbol,yM=Xs&&Xs.for,_xe=L6?Xs:Xs&&Xs.withoutSetter||U6,sn=function(e){if(!gn(tp,e)||!SD&&typeof tp[e]!="string"){var t="Symbol."+e;SD&&gn(Xs,e)?tp[e]=Xs[e]:tp[e]=L6&&yM?yM(t):_xe(t)}return tp[e]},xxe=pe.TypeError,Cxe=sn("toPrimitive"),z6=function(e){var t=(function(n,r){if(!Bt(n)||wx(n))return n;var o,i=Vh(n,Cxe);if(i){if(o=wt(i,n,r),!Bt(o)||wx(o))return o;throw xxe("Can't convert object to primitive value")}return(function(a,u){var s,l;if(Dt(s=a.toString)&&!Bt(l=wt(s,a))||Dt(s=a.valueOf)&&!Bt(l=wt(s,a)))return l;throw hxe("Can't convert object to primitive value")})(n)})(e,"string");return wx(t)?t:t+""},ED=pe.document,Sxe=Bt(ED)&&Bt(ED.createElement),Wh=function(e){return Sxe?ED.createElement(e):{}},wH=!Pi&&!Mt((function(){return Object.defineProperty(Wh("div"),"a",{get:function(){return 7}}).a!=7})),bM=Object.getOwnPropertyDescriptor,H6={f:Pi?bM:function(e,t){if(e=qu(e),t=z6(t),wH)try{return bM(e,t)}catch(n){}if(gn(e,t))return Cb(!wt(oxe.f,e,t),e[t])}},Exe=pe.String,Dxe=pe.TypeError,jn=function(e){if(Bt(e))return e;throw Dxe(Exe(e)+" is not an object")},kxe=pe.TypeError,wM=Object.defineProperty,wa={f:Pi?wM:function(e,t,n){if(jn(e),t=z6(t),jn(n),wH)try{return wM(e,t,n)}catch(r){}if("get"in n||"set"in n)throw kxe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ei=Pi?function(e,t,n){return wa.f(e,t,Cb(1,n))}:function(e,t,n){return e[t]=n,e},Oxe=Ve(Function.toString);Dt(bu.inspectSource)||(bu.inspectSource=function(e){return Oxe(e)});var Gy,Xp,Ky,Sb=bu.inspectSource,_M=pe.WeakMap,_H=Dt(_M)&&/native code/.test(Sb(_M)),xM=N6("keys"),V6=function(e){return xM[e]||(xM[e]=U6(e))},Eb={},DD=pe.TypeError,Axe=pe.WeakMap;if(_H||bu.state){var cs=bu.state||(bu.state=new Axe),Txe=Ve(cs.get),CM=Ve(cs.has),Bxe=Ve(cs.set);Gy=function(e,t){if(CM(cs,e))throw new DD("Object already initialized");return t.facade=e,Bxe(cs,e,t),t},Xp=function(e){return Txe(cs,e)||{}},Ky=function(e){return CM(cs,e)}}else{var ac=V6("state");Eb[ac]=!0,Gy=function(e,t){if(gn(e,ac))throw new DD("Object already initialized");return t.facade=e,Ei(e,ac,t),t},Xp=function(e){return gn(e,ac)?e[ac]:{}},Ky=function(e){return gn(e,ac)}}var Gr={set:Gy,get:Xp,has:Ky,enforce:function(e){return Ky(e)?Xp(e):Gy(e,{})},getterFor:function(e){return function(t){var n;if(!Bt(t)||(n=Xp(t)).type!==e)throw DD("Incompatible receiver, "+e+" required");return n}}},xH=Function.prototype,Pxe=Pi&&Object.getOwnPropertyDescriptor,_x=gn(xH,"name"),Vg={EXISTS:_x,PROPER:_x&&(function(){}).name==="something",CONFIGURABLE:_x&&(!Pi||Pi&&Pxe(xH,"name").configurable)},Co=I6((function(e){var t=Vg.CONFIGURABLE,n=Gr.get,r=Gr.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Dt(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!gn(u,"name")||t&&u.name!==d)&&Ei(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==pe?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Ei(i,a,u)):f?i[a]=u:R6(a,u)})(Function.prototype,"toString",(function(){return Dt(this)&&n(this).source||Sb(this)}))})),Fxe=Math.ceil,Mxe=Math.floor,W6=function(e){var t=+e;return t!=t||t===0?0:(t>0?Mxe:Fxe)(t)},Ixe=Math.max,jxe=Math.min,qh=function(e,t){var n=W6(e);return n<0?Ixe(n+t,0):jxe(n,t)},Lxe=Math.min,CH=function(e){return e>0?Lxe(W6(e),9007199254740991):0},Wg=function(e){return CH(e.length)},Rxe=function(e){return function(t,n,r){var o,i=qu(t),a=Wg(i),u=qh(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Nxe=Rxe(!1),SM=Ve([].push),SH=function(e,t){var n,r=qu(e),o=0,i=[];for(n in r)!gn(Eb,n)&&gn(r,n)&&SM(i,n);for(;t.length>o;)gn(r,n=t[o++])&&(~Nxe(i,n)||SM(i,n));return i},Xy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$xe=Xy.concat("length","prototype"),Yy={f:Object.getOwnPropertyNames||function(e){return SH(e,$xe)}},Uxe={f:Object.getOwnPropertySymbols},zxe=Ve([].concat),Hxe=hl("Reflect","ownKeys")||function(e){var t=Yy.f(jn(e)),n=Uxe.f;return n?zxe(t,n(e)):t},Vxe=function(e,t){for(var n=Hxe(t),r=wa.f,o=H6.f,i=0;i<n.length;i++){var a=n[i];gn(e,a)||r(e,a,o(t,a))}},Wxe=/#|\.prototype\./,qg=function(e,t){var n=Gxe[qxe(e)];return n==Xxe||n!=Kxe&&(Dt(t)?Mt(t):!!t)},qxe=qg.normalize=function(e){return String(e).replace(Wxe,".").toLowerCase()},Gxe=qg.data={},Kxe=qg.NATIVE="N",Xxe=qg.POLYFILL="P",Zy=qg,Yxe=H6.f,_i=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?pe:l?pe[u]||R6(u,{}):(pe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Yxe(n,r))&&a.value:n[r],!Zy(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Vxe(i,o)}(e.sham||o&&o.sham)&&Ei(i,"sham",!0),Co(n,r,i,e)}},Jy=Array.isArray||function(e){return Vo(e)=="Array"},EH={};EH[sn("toStringTag")]="z";var q6=String(EH)==="[object z]",Zxe=sn("toStringTag"),Jxe=pe.Object,Qxe=Vo((function(){return arguments})())=="Arguments",Db=q6?Vo:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch(a){}})(t=Jxe(e),Zxe))=="string"?n:Qxe?Vo(t):(r=Vo(t))=="Object"&&Dt(t.callee)?"Arguments":r},DH=function(){},eCe=[],kH=hl("Reflect","construct"),G6=/^\s*(?:class|function)\b/,tCe=Ve(G6.exec),nCe=!G6.exec(DH),np=function(e){if(!Dt(e))return!1;try{return kH(DH,eCe,e),!0}catch(t){return!1}},K6=!kH||Mt((function(){var e;return np(np.call)||!np(Object)||!np((function(){e=!0}))||e}))?function(e){if(!Dt(e))return!1;switch(Db(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return nCe||!!tCe(G6,Sb(e))}:np,OH=function(e,t,n){var r=z6(t);r in e?wa.f(e,r,Cb(0,n)):e[r]=n},rCe=sn("species"),AH=Ve([].slice),oCe=Hh>=51||!Mt((function(){var e=[];return(e.constructor={})[rCe]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),iCe=sn("species"),xx=pe.Array,aCe=Math.max;_i({target:"Array",proto:!0,forced:!oCe},{slice:function(e,t){var n,r,o,i=qu(this),a=Wg(i),u=qh(e,a),s=qh(t===void 0?a:t,a);if(Jy(i)&&(n=i.constructor,(K6(n)&&(n===xx||Jy(n.prototype))||Bt(n)&&(n=n[iCe])===null)&&(n=void 0),n===xx||n===void 0))return AH(i,u,s);for(r=new(n===void 0?xx:n)(aCe(s-u,0)),o=0;u<s;u++,o++)u in i&&OH(r,o,i[u]);return r.length=o,r}});var uCe=q6?{}.toString:function(){return"[object "+Db(this)+"]"};q6||Co(Object.prototype,"toString",uCe,{unsafe:!0});var am,sCe=pe.String,wu=function(e){if(Db(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return sCe(e)},TH=function(){var e=jn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},X6=pe.RegExp,kD=Mt((function(){var e=X6("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));kD||Mt((function(){return!X6("a","y").sticky}));var BH={BROKEN_CARET:kD||Mt((function(){var e=X6("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:kD},lCe=Object.keys||function(e){return SH(e,Xy)},cCe=Pi?Object.defineProperties:function(e,t){jn(e);for(var n,r=qu(t),o=lCe(t),i=o.length,a=0;i>a;)wa.f(e,n=o[a++],r[n]);return e},OD=hl("document","documentElement"),PH=V6("IE_PROTO"),Cx=function(){},FH=function(e){return"<script>"+e+"<\/script>"},EM=function(e){e.write(FH("")),e.close();var t=e.parentWindow.Object;return e=null,t},qm=function(){try{am=new ActiveXObject("htmlfile")}catch(r){}var e,t;qm=typeof document<"u"?document.domain&&am?EM(am):((t=Wh("iframe")).style.display="none",OD.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(FH("document.F=Object")),e.close(),e.F):EM(am);for(var n=Xy.length;n--;)delete qm.prototype[Xy[n]];return qm()};Eb[PH]=!0;var DM,Sx,Y6=Object.create||function(e,t){var n;return e!==null?(Cx.prototype=jn(e),n=new Cx,Cx.prototype=null,n[PH]=e):n=qm(),t===void 0?n:cCe(n,t)},fCe=pe.RegExp,dCe=Mt((function(){var e=fCe(".","s");return!(e.dotAll&&e.exec("\n")&&e.flags==="s")})),pCe=pe.RegExp,hCe=Mt((function(){var e=pCe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),gCe=Gr.get,vCe=N6("native-string-replace",String.prototype.replace),Qy=RegExp.prototype.exec,AD=Qy,mCe=Ve("".charAt),yCe=Ve("".indexOf),bCe=Ve("".replace),Ex=Ve("".slice),Dx=(Sx=/b*/g,wt(Qy,DM=/a/,"a"),wt(Qy,Sx,"a"),DM.lastIndex!==0||Sx.lastIndex!==0),kM=BH.BROKEN_CARET,kx=/()??/.exec("")[1]!==void 0;(Dx||kx||kM||dCe||hCe)&&(AD=function(e){var t,n,r,o,i,a,u,s=this,l=gCe(s),c=wu(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=wt(AD,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=kM&&s.sticky,m=wt(TH,s),v=s.source,h=0,y=c;if(d&&(m=bCe(m,"y",""),yCe(m,"g")===-1&&(m+="g"),y=Ex(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&mCe(c,s.lastIndex-1)!=="\n")&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",m)),kx&&(n=new RegExp("^"+v+"$(?!\\s)",m)),Dx&&(r=s.lastIndex),o=wt(Qy,d?n:s,y),d?o?(o.input=Ex(o.input,h),o[0]=Ex(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Dx&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),kx&&o&&o.length>1&&wt(vCe,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&p)for(o.groups=a=Y6(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Gh=AD;_i({target:"RegExp",proto:!0,forced:/./.exec!==Gh},{exec:Gh});var Z6=Function.prototype,OM=Z6.apply,wCe=Z6.bind,AM=Z6.call,MH=typeof Reflect=="object"&&Reflect.apply||(wCe?AM.bind(OM):function(){return AM.apply(OM,arguments)}),_Ce=sn("species"),Ox=RegExp.prototype,xCe=sn("match"),CCe=pe.TypeError,SCe=sn("species"),IH=function(e,t){var n,r=jn(e).constructor;return r===void 0||(n=jn(r)[SCe])==null?t:(function(o){if(K6(o))return o;throw CCe(qy(o)+" is not a constructor")})(n)},ECe=Ve("".charAt),TM=Ve("".charCodeAt),DCe=Ve("".slice),kCe=function(e){return function(t,n){var r,o,i=wu(Uh(t)),a=W6(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=TM(i,a))<55296||r>56319||a+1===u||(o=TM(i,a+1))<56320||o>57343?e?ECe(i,a):r:e?DCe(i,a,a+2):o-56320+(r-55296<<10)+65536}},jH={charAt:kCe(!0)},OCe=jH.charAt,ACe=function(e,t,n){return t+(n?OCe(e,t).length:1)},TCe=pe.Array,BCe=Math.max,TD=function(e,t,n){for(var r=Wg(e),o=qh(t,r),i=qh(n===void 0?r:n,r),a=TCe(BCe(i-o,0)),u=0;o<i;o++,u++)OH(a,u,e[o]);return a.length=u,a},PCe=pe.TypeError,BM=function(e,t){var n=e.exec;if(Dt(n)){var r=wt(n,e,t);return r!==null&&jn(r),r}if(Vo(e)==="RegExp")return wt(Gh,e,t);throw PCe("RegExp#exec called on incompatible receiver")},uc=BH.UNSUPPORTED_Y,FCe=Math.min,LH=[].push,MCe=Ve(/./.exec),sc=Ve(LH),rp=Ve("".slice);(function(e,t,n,r){var o=sn(e),i=!Mt((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!Mt((function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[_Ce]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||n){var u=Ve(/./[o]),s=(function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,m){var v,h,y=wu(Uh(this)),g=m===void 0?4294967295:m>>>0;if(g===0)return[];if(d===void 0)return[y];if(!Bt(v=d)||!((h=v[xCe])!==void 0?h:Vo(v)=="RegExp"))return wt(c,y,d,g);for(var b,w,x,k=[],D=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),T=0,A=new RegExp(d.source,D+"g");(b=wt(Gh,A,y))&&!((w=A.lastIndex)>T&&(sc(k,rp(y,T,b.index)),b.length>1&&b.index<y.length&&MH(LH,k,TD(b,1)),x=b[0].length,T=w,k.length>=g));)A.lastIndex===b.index&&A.lastIndex++;return T===y.length?!x&&MCe(A,"")||sc(k,""):sc(k,rp(y,T)),k.length>g?TD(k,0,g):k}:"0".split(void 0,0).length?function(d,m){return d===void 0&&m===0?[]:wt(c,this,d,m)}:c,[function(d,m){var v=Uh(this),h=d==null?void 0:Vh(d,l);return h?wt(h,d,v,m):wt(p,wu(v),d,m)},function(d,m){var v=jn(this),h=wu(d),y=f(p,v,h,m,p!==c);if(y.done)return y.value;var g=IH(v,RegExp),b=v.unicode,w=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(uc?"g":"y"),x=new g(uc?"^(?:"+v.source+")":v,w),k=m===void 0?4294967295:m>>>0;if(k===0)return[];if(h.length===0)return BM(x,h)===null?[h]:[];for(var D=0,T=0,A=[];T<h.length;){x.lastIndex=uc?0:T;var F,j=BM(x,uc?rp(h,T):h);if(j===null||(F=FCe(CH(x.lastIndex+(uc?T:0)),h.length))===D)T=ACe(h,T,b);else{if(sc(A,rp(h,D,T)),A.length===k)return A;for(var R=1;R<=j.length-1;R++)if(sc(A,j[R]),A.length===k)return A;T=D=F}}return sc(A,rp(h,D)),A}]})(o,""[e],(function(l,c,f,p,d){var m=Ve(l),v=c.exec;return v===Gh||v===Ox.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}}));Co(String.prototype,e,s[0]),Co(Ox,o,s[1])}r&&Ei(Ox[o],"sham",!0)})("split",0,!!Mt((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),uc);var e1=function(){return e1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e1.apply(this,arguments)};function J6(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n((function(f){f(c)}))).then(a,u)}s((r=r.apply(e,[])).next())}))}function Q6(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function ICe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=(function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")})(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(i){return new Promise((function(a,u){(function(s,l,c,f){Promise.resolve(f).then((function(p){s({value:p,done:c})}),l)})(a,u,(i=e[o](i)).done,i.value)}))}}}var BD=sn("unscopables"),PD=Array.prototype;PD[BD]==null&&wa.f(PD,BD,{configurable:!0,value:Y6(null)});var Ys,PM,FM,Ax=function(e){PD[BD][e]=!0},vf={},jCe=!Mt((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),MM=V6("IE_PROTO"),FD=pe.Object,LCe=FD.prototype,t1=jCe?FD.getPrototypeOf:function(e){var t=$6(e);if(gn(t,MM))return t[MM];var n=t.constructor;return Dt(n)&&t instanceof n?n.prototype:t instanceof FD?LCe:null},MD=sn("iterator"),RH=!1;[].keys&&("next"in(FM=[].keys())?(PM=t1(t1(FM)))!==Object.prototype&&(Ys=PM):RH=!0);var RCe=Ys==null||Mt((function(){var e={};return Ys[MD].call(e)!==e}));RCe&&(Ys={}),Dt(Ys[MD])||Co(Ys,MD,(function(){return this}));var e5={IteratorPrototype:Ys,BUGGY_SAFARI_ITERATORS:RH},NCe=wa.f,IM=sn("toStringTag"),n1=function(e,t,n){e&&!gn(e=n?e:e.prototype,IM)&&NCe(e,IM,{configurable:!0,value:t})},$Ce=e5.IteratorPrototype,UCe=function(){return this},zCe=pe.String,HCe=pe.TypeError,mf=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=Ve(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,o){return jn(r),(function(i){if(typeof i=="object"||Dt(i))return i;throw HCe("Can't set "+zCe(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),VCe=Vg.PROPER,WCe=Vg.CONFIGURABLE,jM=e5.IteratorPrototype,Tx=e5.BUGGY_SAFARI_ITERATORS,op=sn("iterator"),qCe=function(){return this},NH=function(e,t,n,r,o,i,a){(function(h,y,g,b){var w=y+" Iterator";h.prototype=Y6($Ce,{next:Cb(1,g)}),n1(h,w,!1),vf[w]=UCe})(n,t,r);var u,s,l=function(h){if(h===o&&m)return m;if(!Tx&&h in p)return p[h];switch(h){case"keys":case"values":case"entries":return function(){return new n(this,h)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,p=e.prototype,d=p[op]||p["@@iterator"]||o&&p[o],m=!Tx&&d||l(o),v=t=="Array"&&p.entries||d;return v&&(u=t1(v.call(new e)))!==Object.prototype&&u.next&&(t1(u)!==jM&&(mf?mf(u,jM):Dt(u[op])||Co(u,op,qCe)),n1(u,c,!0)),VCe&&o=="values"&&d&&d.name!=="values"&&(WCe?Ei(p,"name","values"):(f=!0,m=function(){return wt(d,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||_i({target:t,proto:!0,forced:Tx||f},s)),p[op]!==m&&Co(p,op,m,{name:o}),vf[t]=m,s},GCe=Gr.set,KCe=Gr.getterFor("Array Iterator"),Ep=NH(Array,"Array",(function(e,t){GCe(this,{type:"Array Iterator",target:qu(e),index:0,kind:t})}),(function(){var e=KCe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");vf.Arguments=vf.Array,Ax("keys"),Ax("values"),Ax("entries");var XCe=jH.charAt,YCe=Gr.set,ZCe=Gr.getterFor("String Iterator");NH(String,"String",(function(e){YCe(this,{type:"String Iterator",string:wu(e),index:0})}),(function(){var e,t=ZCe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=XCe(n,r),t.index+=e.length,{value:e,done:!1})}));var r1=function(e,t,n){for(var r in t)Co(e,r,t[r],n);return e},LM=Yy.f,RM=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],JCe={f:function(e){return RM&&Vo(e)=="Window"?(function(t){try{return LM(t)}catch(n){return TD(RM)}})(e):LM(qu(e))}},NM=Mt((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),um=Object.isExtensible,ks=Mt((function(){um(1)}))||NM?function(e){return!!Bt(e)&&(!NM||Vo(e)!="ArrayBuffer")&&(!um||um(e))}:um,QCe=!Mt((function(){return Object.isExtensible(Object.preventExtensions({}))})),t5=I6((function(e){var t=wa.f,n=!1,r=U6("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=Yy.f,s=Ve([].splice),l={};l[r]=1,u(l).length&&(Yy.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},_i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:JCe.f}))},fastKey:function(u,s){if(!Bt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!gn(u,r)){if(!ks(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!gn(u,r)){if(!ks(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return QCe&&n&&ks(u)&&!gn(u,r)&&i(u),u}};Eb[r]=!0})),$M=Ve(Ve.bind),Kh=function(e,t){return Iu(e),t===void 0?e:$M?$M(e,t):function(){return e.apply(t,arguments)}},eSe=sn("iterator"),tSe=Array.prototype,nSe=sn("iterator"),UM=function(e){if(e!=null)return Vh(e,nSe)||Vh(e,"@@iterator")||vf[Db(e)]},rSe=pe.TypeError,zM=function(e,t,n){var r,o;jn(e);try{if(!(r=Vh(e,"return"))){if(t==="throw")throw n;return n}r=wt(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return jn(r),n},oSe=pe.TypeError,Gm=function(e,t){this.stopped=e,this.result=t},HM=Gm.prototype,o1=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),v=Kh(t,f),h=function(g){return r&&zM(r,"normal",g),new Gm(!0,g)},y=function(g){return p?(jn(g),m?v(g[0],g[1],h):v(g[0],g[1])):m?v(g,h):v(g)};if(d)r=e;else{if(!(o=UM(e)))throw oSe(qy(e)+" is not iterable");if((c=o)!==void 0&&(vf.Array===c||tSe[eSe]===c)){for(i=0,a=Wg(e);a>i;i++)if((u=y(e[i]))&&zh(HM,u))return u;return new Gm(!1)}r=(function(g,b){var w=arguments.length<2?UM(g):b;if(Iu(w))return jn(wt(w,g));throw rSe(qy(g)+" is not iterable")})(e,o)}for(s=r.next;!(l=wt(s,r)).done;){try{u=y(l.value)}catch(g){zM(r,"throw",g)}if(typeof u=="object"&&u&&zh(HM,u))return u}return new Gm(!1)},iSe=pe.TypeError,n5=function(e,t){if(zh(t,e))return e;throw iSe("Incorrect invocation")},$H=sn("iterator"),UH=!1;try{var aSe=0,VM={next:function(){return{done:!!aSe++}},return:function(){UH=!0}};VM[$H]=function(){return this},Array.from(VM,(function(){throw 2}))}catch(e){}var zH=function(e,t){if(!UH)return!1;var n=!1;try{var r={};r[$H]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},uSe=sn("species"),WM=pe.Array,sSe=function(e,t){return new((function(n){var r;return Jy(n)&&(r=n.constructor,(K6(r)&&(r===WM||Jy(r.prototype))||Bt(r)&&(r=r[uSe])===null)&&(r=void 0)),r===void 0?WM:r})(e))(t===0?0:t)},qM=Ve([].push),Bx=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=$6(s),v=j6(m),h=Kh(l,c),y=Wg(v),g=0,b=f||sSe,w=t?b(s,y):n||a?b(s,0):void 0;y>g;g++)if((u||g in v)&&(d=h(p=v[g],g,m),e))if(t)w[g]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:qM(w,p)}else switch(e){case 4:return!1;case 7:qM(w,p)}return i?-1:r||o?o:w}},r5={forEach:Bx(0),find:Bx(5),findIndex:Bx(6)},sm=t5.getWeakData,lSe=Gr.set,cSe=Gr.getterFor,fSe=r5.find,dSe=r5.findIndex,pSe=Ve([].splice),hSe=0,lm=function(e){return e.frozen||(e.frozen=new HH)},HH=function(){this.entries=[]},Px=function(e,t){return fSe(e.entries,(function(n){return n[0]===t}))};HH.prototype={get:function(e){var t=Px(this,e);if(t)return t[1]},has:function(e){return!!Px(this,e)},set:function(e,t){var n=Px(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=dSe(this.entries,(function(n){return n[0]===e}));return~t&&pSe(this.entries,t,1),!!~t}};var ip,VH={getConstructor:function(e,t,n,r){var o=e((function(s,l){n5(s,i),lSe(s,{type:t,id:hSe++,frozen:void 0}),l!=null&&o1(l,s[r],{that:s,AS_ENTRIES:n})})),i=o.prototype,a=cSe(t),u=function(s,l,c){var f=a(s),p=sm(jn(l),!0);return p===!0?lm(f).set(l,c):p[f.id]=c,s};return r1(i,{delete:function(s){var l=a(this);if(!Bt(s))return!1;var c=sm(s);return c===!0?lm(l).delete(s):c&&gn(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Bt(s))return!1;var c=sm(s);return c===!0?lm(l).has(s):c&&gn(c,l.id)}}),r1(i,n?{get:function(s){var l=a(this);if(Bt(s)){var c=sm(s);return c===!0?lm(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},cm=Gr.enforce,gSe=!pe.ActiveXObject&&"ActiveXObject"in pe,WH=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},vSe=(function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=pe[e],u=a&&a.prototype,s=a,l={},c=function(h){var y=Ve(u[h]);Co(u,h,h=="add"?function(g){return y(this,g===0?0:g),this}:h=="delete"?function(g){return!(o&&!Bt(g))&&y(this,g===0?0:g)}:h=="get"?function(g){return o&&!Bt(g)?void 0:y(this,g===0?0:g)}:h=="has"?function(g){return!(o&&!Bt(g))&&y(this,g===0?0:g)}:function(g,b){return y(this,g===0?0:g,b),this})};if(Zy(e,!Dt(a)||!(o||u.forEach&&!Mt((function(){new a().entries().next()})))))s=n.getConstructor(t,e,r,i),t5.enable();else if(Zy(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Mt((function(){f.has(1)})),m=zH((function(h){new a(h)})),v=!o&&Mt((function(){for(var h=new a,y=5;y--;)h[i](y,y);return!h.has(-0)}));m||((s=t((function(h,y){n5(h,u);var g=(function(b,w,x){var k,D;return mf&&Dt(k=w.constructor)&&k!==x&&Bt(D=k.prototype)&&D!==x.prototype&&mf(b,D),b})(new a,h,s);return y!=null&&o1(y,g[i],{that:g,AS_ENTRIES:r}),g}))).prototype=u,u.constructor=s),(d||v)&&(c("delete"),c("has"),r&&c("get")),(v||p)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,_i({global:!0,forced:s!=a},l),n1(s,e),o||n.setStrong(s,e,r),s})("WeakMap",WH,VH);if(_H&&gSe){ip=VH.getConstructor(WH,"WeakMap",!0),t5.enable();var ap=vSe.prototype,GM=Ve(ap.delete),fm=Ve(ap.has),KM=Ve(ap.get),XM=Ve(ap.set);r1(ap,{delete:function(e){if(Bt(e)&&!ks(e)){var t=cm(this);return t.frozen||(t.frozen=new ip),GM(this,e)||t.frozen.delete(e)}return GM(this,e)},has:function(e){if(Bt(e)&&!ks(e)){var t=cm(this);return t.frozen||(t.frozen=new ip),fm(this,e)||t.frozen.has(e)}return fm(this,e)},get:function(e){if(Bt(e)&&!ks(e)){var t=cm(this);return t.frozen||(t.frozen=new ip),fm(this,e)?KM(this,e):t.frozen.get(e)}return KM(this,e)},set:function(e,t){if(Bt(e)&&!ks(e)){var n=cm(this);n.frozen||(n.frozen=new ip),fm(this,e)?XM(this,e,t):n.frozen.set(e,t)}else XM(this,e,t);return this}})}var i1={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Fx=Wh("span").classList,YM=Fx&&Fx.constructor&&Fx.constructor.prototype,qH=YM===Object.prototype?void 0:YM,Mx=sn("iterator"),ZM=sn("toStringTag"),Ix=Ep.values,GH=function(e,t){if(e){if(e[Mx]!==Ix)try{Ei(e,Mx,Ix)}catch(r){e[Mx]=Ix}if(e[ZM]||Ei(e,ZM,t),i1[t]){for(var n in Ep)if(e[n]!==Ep[n])try{Ei(e,n,Ep[n])}catch(r){e[n]=Ep[n]}}}};for(var jx in i1)GH(pe[jx]&&pe[jx].prototype,jx);GH(qH,"DOMTokenList");var KH=function(e,t){var n=[][e];return!!n&&Mt((function(){n.call(null,t||function(){throw 1},1)}))},mSe=r5.forEach,Lx=KH("forEach")?[].forEach:function(e){return mSe(this,e,arguments.length>1?arguments[1]:void 0)},XH=function(e){if(e&&e.forEach!==Lx)try{Ei(e,"forEach",Lx)}catch(t){e.forEach=Lx}};for(var Rx in i1)i1[Rx]&&XH(pe[Rx]&&pe[Rx].prototype);XH(qH);var Xh,lc,JM,Nx,a1=pe.Promise,QM=sn("species"),YH=/(?:ipad|iphone|ipod).*applewebkit/i.test(Nc),_u=Vo(pe.process)=="process",ID=pe.setImmediate,eI=pe.clearImmediate,ySe=pe.process,$x=pe.Dispatch,bSe=pe.Function,tI=pe.MessageChannel,wSe=pe.String,Ux=0,Yp={};try{Xh=pe.location}catch(e){}var o5=function(e){if(gn(Yp,e)){var t=Yp[e];delete Yp[e],t()}},zx=function(e){return function(){o5(e)}},nI=function(e){o5(e.data)},rI=function(e){pe.postMessage(wSe(e),Xh.protocol+"//"+Xh.host)};ID&&eI||(ID=function(e){var t=AH(arguments,1);return Yp[++Ux]=function(){MH(Dt(e)?e:bSe(e),void 0,t)},lc(Ux),Ux},eI=function(e){delete Yp[e]},_u?lc=function(e){ySe.nextTick(zx(e))}:$x&&$x.now?lc=function(e){$x.now(zx(e))}:tI&&!YH?(Nx=(JM=new tI).port2,JM.port1.onmessage=nI,lc=Kh(Nx.postMessage,Nx)):pe.addEventListener&&Dt(pe.postMessage)&&!pe.importScripts&&Xh&&Xh.protocol!=="file:"&&!Mt(rI)?(lc=rI,pe.addEventListener("message",nI,!1)):lc="onreadystatechange"in Wh("script")?function(e){OD.appendChild(Wh("script")).onreadystatechange=function(){OD.removeChild(this),o5(e)}}:function(e){setTimeout(zx(e),0)});var up,xs,Zp,bc,Hx,Vx,Wx,oI,ZH={set:ID},_Se=/ipad|iphone|ipod/i.test(Nc)&&pe.Pebble!==void 0,xSe=/web0s(?!.*chrome)/i.test(Nc),CSe=H6.f,qx=ZH.set,iI=pe.MutationObserver||pe.WebKitMutationObserver,aI=pe.document,uI=pe.process,dm=pe.Promise,sI=CSe(pe,"queueMicrotask"),JH=sI&&sI.value;JH||(up=function(){var e,t;for(_u&&(e=uI.domain)&&e.exit();xs;){t=xs.fn,xs=xs.next;try{t()}catch(n){throw xs?bc():Zp=void 0,n}}Zp=void 0,e&&e.enter()},YH||_u||xSe||!iI||!aI?!_Se&&dm&&dm.resolve?((Wx=dm.resolve(void 0)).constructor=dm,oI=Kh(Wx.then,Wx),bc=function(){oI(up)}):_u?bc=function(){uI.nextTick(up)}:(qx=Kh(qx,pe),bc=function(){qx(up)}):(Hx=!0,Vx=aI.createTextNode(""),new iI(up).observe(Vx,{characterData:!0}),bc=function(){Vx.data=Hx=!Hx}));var Gx,lI,QH,cI,eV=JH||function(e){var t={fn:e,next:void 0};Zp&&(Zp.next=t),xs||(xs=t,bc()),Zp=t},SSe=function(e){var t,n;this.promise=new e((function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o})),this.resolve=Iu(t),this.reject=Iu(n)},i5={f:function(e){return new SSe(e)}},jD=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},ESe=typeof window=="object",tV=ZH.set,DSe=sn("species"),ta="Promise",fI=Gr.getterFor(ta),kSe=Gr.set,OSe=Gr.getterFor(ta),vs=a1&&a1.prototype,xi=a1,sp=vs,nV=pe.TypeError,LD=pe.document,a5=pe.process,$c=i5.f,ASe=$c,TSe=!!(LD&&LD.createEvent&&pe.dispatchEvent),rV=Dt(pe.PromiseRejectionEvent),oV=!1,Jp=Zy(ta,(function(){var e=Sb(xi),t=e!==String(xi);if(!t&&Hh===66)return!0;if(Hh>=51&&/native code/.test(e))return!1;var n=new xi((function(o){o(1)})),r=function(o){o((function(){}),(function(){}))};return(n.constructor={})[DSe]=r,!(oV=n.then((function(){}))instanceof r)||!t&&ESe&&!rV})),BSe=Jp||!zH((function(e){xi.all(e).catch((function(){}))})),iV=function(e){var t;return!(!Bt(e)||!Dt(t=e.then))&&t},u5=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;eV((function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(e.rejection===2&&FSe(e),e.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(nV("Promise-chain cycle")):(u=iV(a))?wt(u,a,f,p):f(a)):p(r)}catch(m){d&&!s&&d.exit(),p(m)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&PSe(e)}))}},aV=function(e,t,n){var r,o;TSe?((r=LD.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),pe.dispatchEvent(r)):r={promise:t,reason:n},!rV&&(o=pe["on"+e])?o(r):e==="unhandledrejection"&&(function(i,a){var u=pe.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",n)},PSe=function(e){wt(tV,pe,(function(){var t,n=e.facade,r=e.value;if(dI(e)&&(t=jD((function(){_u?a5.emit("unhandledRejection",r,n):aV("unhandledrejection",n,r)})),e.rejection=_u||dI(e)?2:1,t.error))throw t.value}))},dI=function(e){return e.rejection!==1&&!e.parent},FSe=function(e){wt(tV,pe,(function(){var t=e.facade;_u?a5.emit("rejectionHandled",t):aV("rejectionhandled",t,e.value)}))},Dc=function(e,t,n){return function(r){e(t,r,n)}},Uc=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,u5(e,!0))},RD=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw nV("Promise can't be resolved itself");var r=iV(t);r?eV((function(){var o={done:!1};try{wt(r,t,Dc(RD,o,e),Dc(Uc,o,e))}catch(i){Uc(o,i,e)}})):(e.value=t,e.state=1,u5(e,!1))}catch(o){Uc({done:!1},o,e)}}};if(Jp&&(sp=(xi=function(e){n5(this,sp),Iu(e),wt(Gx,this);var t=fI(this);try{e(Dc(RD,t),Dc(Uc,t))}catch(n){Uc(t,n)}}).prototype,(Gx=function(e){kSe(this,{type:ta,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=r1(sp,{then:function(e,t){var n=OSe(this),r=n.reactions,o=$c(IH(this,xi));return o.ok=!Dt(e)||e,o.fail=Dt(t)&&t,o.domain=_u?a5.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&u5(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),lI=function(){var e=new Gx,t=fI(e);this.promise=e,this.resolve=Dc(RD,t),this.reject=Dc(Uc,t)},i5.f=$c=function(e){return e===xi||e===QH?new lI(e):ASe(e)},Dt(a1)&&vs!==Object.prototype)){cI=vs.then,oV||(Co(vs,"then",(function(e,t){var n=this;return new xi((function(r,o){wt(cI,n,r,o)})).then(e,t)}),{unsafe:!0}),Co(vs,"catch",sp.catch,{unsafe:!0}));try{delete vs.constructor}catch(e){}mf&&mf(vs,sp)}_i({global:!0,wrap:!0,forced:Jp},{Promise:xi}),n1(xi,ta,!1),(function(e){var t=hl("Promise"),n=wa.f;Pi&&t&&!t[QM]&&n(t,QM,{configurable:!0,get:function(){return this}})})(),QH=hl(ta),_i({target:ta,stat:!0,forced:Jp},{reject:function(e){var t=$c(this);return wt(t.reject,void 0,e),t.promise}}),_i({target:ta,stat:!0,forced:Jp},{resolve:function(e){return(function(t,n){if(jn(t),Bt(n)&&n.constructor===t)return n;var r=i5.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),_i({target:ta,stat:!0,forced:BSe},{all:function(e){var t=this,n=$c(t),r=n.resolve,o=n.reject,i=jD((function(){var a=Iu(t.resolve),u=[],s=0,l=1;o1(e,(function(c){var f=s++,p=!1;l++,wt(a,t,c).then((function(d){p||(p=!0,u[f]=d,--l||r(u))}),o)})),--l||r(u)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=$c(t),r=n.reject,o=jD((function(){var i=Iu(t.resolve);o1(e,(function(a){wt(i,t,a).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var MSe=Vg.PROPER,ND=RegExp.prototype,uV=ND.toString,ISe=Ve(TH),jSe=Mt((function(){return uV.call({source:"a",flags:"b"})!="/a/b"})),LSe=MSe&&uV.name!="toString";(jSe||LSe)&&Co(RegExp.prototype,"toString",(function(){var e=jn(this),t=wu(e.source),n=e.flags;return"/"+t+"/"+wu(n===void 0&&zh(ND,e)&&!("flags"in ND)?ISe(e):n)}),{unsafe:!0});var RSe=Vg.EXISTS,NSe=wa.f,sV=Function.prototype,$Se=Ve(sV.toString),lV=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,USe=Ve(lV.exec);Pi&&!RSe&&NSe(sV,"name",{configurable:!0,get:function(){try{return USe(lV,$Se(this))[1]}catch(e){return""}}});var pI=new WeakMap;function cV(e){return e.getMenuConfig("uploadImage")}function zSe(e,t){return J6(this,void 0,void 0,(function(){return Q6(this,(function(n){return[2,new Promise((function(r){var o=new FileReader;o.readAsDataURL(t),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;Ns(e,a,t.name,u),r("ok")}}}))]}))}))}function HSe(e,t){return J6(this,void 0,void 0,(function(){var n,r,o,i;return Q6(this,(function(a){switch(a.label){case 0:return n=(function(u){var s=pI.get(u);if(s!=null)return s;var l=cV(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,m=l.onError;return s=UN(e1(e1({},l),{onProgress:function(v){u.showProgressBar(v),f&&f(v)},onSuccess:function(v,h){if(d)return d(h,(function(F,j,R){return Ns(u,F,j,R)})),void c(v,h);var y=h.errno,g=y===void 0?1:y,b=h.data,w=b===void 0?{}:b;if(g===0){if(Array.isArray(w))w.forEach((function(F){var j=F.url,R=j===void 0?"":j,U=F.alt,H=U===void 0?"":U,G=F.href;Ns(u,R,H,G===void 0?"":G)}));else{var x=w.url,k=x===void 0?"":x,D=w.alt,T=D===void 0?"":D,A=w.href;Ns(u,k,T,A===void 0?"":A)}c(v,h)}else p(v,h)},onError:function(v,h,y){m(v,h,y)}})),pI.set(u,s),s})(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function fV(e,t){var n,r;return J6(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,p;return Q6(this,(function(d){switch(d.label){case 0:if(t==null)return[2];o=Array.prototype.slice.call(t),i=cV(e),a=i.customUpload,u=i.base64LimitSize,d.label=1;case 1:d.trys.push([1,11,12,17]),s=ICe(o),d.label=2;case 2:return[4,s.next()];case 3:return(l=d.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,zSe(e,c)]:[3,5]);case 4:return d.sent(),[3,9];case 5:return a?[4,a(c,(function(m,v,h){return Ns(e,m,v,h)}))]:[3,7];case 6:return d.sent(),[3,9];case 7:return[4,HSe(e,c)];case 8:d.sent(),d.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return p=d.sent(),n={error:p},[3,17];case 12:return d.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:d.sent(),d.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var VSe=Ve([].join),WSe=j6!=Object,qSe=KH("join",",");_i({target:"Array",proto:!0,forced:WSe||!qSe},{join:function(e){return VSe(qu(this),e===void 0?",":e)}}),yo&&(N.fn.append=yo),Ai&&(N.fn.on=Ai),tf&&(N.fn.remove=tf),Oi&&(N.fn.val=Oi),pA&&(N.fn.click=pA),Zc&&(N.fn.hide=Zc);var GSe=(function(){function e(){this.title=de("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return tb(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a((function(c,f,p){return Ns(t,c,f,p)}));else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=N("body"),l=N('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",(function(){var c=l[0].files;fV(t,c)}))}},e})(),KSe={menus:[{key:"uploadImage",factory:function(){return new GSe},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(tb(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(i){return(function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),p=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)p.push(l.value)}catch(d){c={error:d}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return p})(i.type.split("/"),1)[0]==="image"}))?fV(e,o):t(r)}},n}};Or("en",{highLightModule:{selectLang:"Language"}}),Or("zh-CN",{highLightModule:{selectLang:"选择语言"}});var u1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function s5(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ua,Km,pm=function(e){return e&&e.Math==Math&&e},Xe=pm(typeof globalThis=="object"&&globalThis)||pm(typeof window=="object"&&window)||pm(typeof self=="object"&&self)||pm(typeof u1=="object"&&u1)||(function(){return this})()||Function("return this")(),XSe=Object.defineProperty,l5=function(e,t){try{XSe(Xe,e,{value:t,configurable:!0,writable:!0})}catch(n){Xe[e]=t}return t},xu=Xe["__core-js_shared__"]||l5("__core-js_shared__",{}),c5=s5((function(e){(e.exports=function(t,n){return xu[t]||(xu[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),dV=Function.prototype,$D=dV.bind,UD=dV.call,YSe=$D&&$D.bind(UD),vt=$D?function(e){return e&&YSe(UD,e)}:function(e){return e&&function(){return UD.apply(e,arguments)}},ZSe=Xe.TypeError,yf=function(e){if(e==null)throw ZSe("Can't call method on "+e);return e},JSe=Xe.Object,f5=function(e){return JSe(yf(e))},QSe=vt({}.hasOwnProperty),go=Object.hasOwn||function(e,t){return QSe(f5(e),t)},eEe=0,tEe=Math.random(),nEe=vt(1 .toString),pV=function(e){return"Symbol("+(e===void 0?"":e)+")_"+nEe(++eEe+tEe,36)},fr=function(e){return typeof e=="function"},rEe=function(e){return fr(e)?e:void 0},Gg=function(e,t){return arguments.length<2?rEe(Xe[e]):Xe[e]&&Xe[e][t]},Kx=Gg("navigator","userAgent")||"",hI=Xe.process,gI=Xe.Deno,vI=hI&&hI.versions||gI&&gI.version,mI=vI&&vI.v8;mI&&(Km=(Ua=mI.split("."))[0]>0&&Ua[0]<4?1:+(Ua[0]+Ua[1])),!Km&&Kx&&(!(Ua=Kx.match(/Edge\/(\d+)/))||Ua[1]>=74)&&(Ua=Kx.match(/Chrome\/(\d+)/))&&(Km=+Ua[1]);var yI=Km,Fn=function(e){try{return!!e()}catch(t){return!0}},zD=!!Object.getOwnPropertySymbols&&!Fn((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yI&&yI<41})),d5=zD&&!Symbol.sham&&typeof Symbol.iterator=="symbol",lp=c5("wks"),Zs=Xe.Symbol,bI=Zs&&Zs.for,oEe=d5?Zs:Zs&&Zs.withoutSetter||pV,Gu=function(e){if(!go(lp,e)||!zD&&typeof lp[e]!="string"){var t="Symbol."+e;zD&&go(Zs,e)?lp[e]=Zs[e]:lp[e]=d5&&bI?bI(t):oEe(t)}return lp[e]},hV={};hV[Gu("toStringTag")]="z";var p5=String(hV)==="[object z]",Fi=!Fn((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),oa=function(e){return typeof e=="object"?e!==null:fr(e)},HD=Xe.document,iEe=oa(HD)&&oa(HD.createElement),h5=function(e){return iEe?HD.createElement(e):{}},gV=!Fi&&!Fn((function(){return Object.defineProperty(h5("div"),"a",{get:function(){return 7}}).a!=7})),aEe=Xe.String,uEe=Xe.TypeError,Wo=function(e){if(oa(e))return e;throw uEe(aEe(e)+" is not an object")},cp=Function.prototype.call,Bn=cp.bind?cp.bind(cp):function(){return cp.apply(cp,arguments)},vV=vt({}.isPrototypeOf),sEe=Xe.Object,Xx=d5?function(e){return typeof e=="symbol"}:function(e){var t=Gg("Symbol");return fr(t)&&vV(t.prototype,sEe(e))},lEe=Xe.String,mV=function(e){try{return lEe(e)}catch(t){return"Object"}},cEe=Xe.TypeError,yV=function(e){if(fr(e))return e;throw cEe(mV(e)+" is not a function")},bV=function(e,t){var n=e[t];return n==null?void 0:yV(n)},fEe=Xe.TypeError,dEe=Xe.TypeError,pEe=Gu("toPrimitive"),g5=function(e){var t=(function(n,r){if(!oa(n)||Xx(n))return n;var o,i=bV(n,pEe);if(i){if(o=Bn(i,n,r),!oa(o)||Xx(o))return o;throw dEe("Can't convert object to primitive value")}return(function(a,u){var s,l;if(fr(s=a.toString)&&!oa(l=Bn(s,a))||fr(s=a.valueOf)&&!oa(l=Bn(s,a)))return l;throw fEe("Can't convert object to primitive value")})(n)})(e,"string");return Xx(t)?t:t+""},hEe=Xe.TypeError,wI=Object.defineProperty,kb={f:Fi?wI:function(e,t,n){if(Wo(e),t=g5(t),Wo(n),gV)try{return wI(e,t,n)}catch(r){}if("get"in n||"set"in n)throw hEe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},v5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},bf=Fi?function(e,t,n){return kb.f(e,t,v5(1,n))}:function(e,t,n){return e[t]=n,e},gEe=vt(Function.toString);fr(xu.inspectSource)||(xu.inspectSource=function(e){return gEe(e)});var VD,s1,WD,m5=xu.inspectSource,_I=Xe.WeakMap,vEe=fr(_I)&&/native code/.test(m5(_I)),xI=c5("keys"),wV=function(e){return xI[e]||(xI[e]=pV(e))},y5={},CI=Xe.TypeError,mEe=Xe.WeakMap;if(vEe||xu.state){var fs=xu.state||(xu.state=new mEe),yEe=vt(fs.get),SI=vt(fs.has),bEe=vt(fs.set);VD=function(e,t){if(SI(fs,e))throw new CI("Object already initialized");return t.facade=e,bEe(fs,e,t),t},s1=function(e){return yEe(fs,e)||{}},WD=function(e){return SI(fs,e)}}else{var cc=wV("state");y5[cc]=!0,VD=function(e,t){if(go(e,cc))throw new CI("Object already initialized");return t.facade=e,bf(e,cc,t),t},s1=function(e){return go(e,cc)?e[cc]:{}},WD=function(e){return go(e,cc)}}var qD={get:s1,enforce:function(e){return WD(e)?s1(e):VD(e,{})}},_V=Function.prototype,wEe=Fi&&Object.getOwnPropertyDescriptor,EI=go(_V,"name"),xV={PROPER:EI&&(function(){}).name==="something",CONFIGURABLE:EI&&(!Fi||Fi&&wEe(_V,"name").configurable)},Yh=s5((function(e){var t=xV.CONFIGURABLE,n=qD.get,r=qD.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;fr(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!go(u,"name")||t&&u.name!==d)&&bf(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Xe?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:bf(i,a,u)):f?i[a]=u:l5(a,u)})(Function.prototype,"toString",(function(){return fr(this)&&n(this).source||m5(this)}))})),_Ee=vt({}.toString),xEe=vt("".slice),Cu=function(e){return xEe(_Ee(e),8,-1)},CEe=Gu("toStringTag"),SEe=Xe.Object,EEe=Cu((function(){return arguments})())=="Arguments",b5=p5?Cu:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch(a){}})(t=SEe(e),CEe))=="string"?n:EEe?Cu(t):(r=Cu(t))=="Object"&&fr(t.callee)?"Arguments":r},DEe=p5?{}.toString:function(){return"[object "+b5(this)+"]"};p5||Yh(Object.prototype,"toString",DEe,{unsafe:!0});var DI,kI={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Yx=h5("span").classList,OI=Yx&&Yx.constructor&&Yx.constructor.prototype,kEe=OI===Object.prototype?void 0:OI,AI=vt(vt.bind),Zx=Xe.Object,OEe=vt("".split),w5=Fn((function(){return!Zx("z").propertyIsEnumerable(0)}))?function(e){return Cu(e)=="String"?OEe(e,""):Zx(e)}:Zx,AEe=Math.ceil,TEe=Math.floor,_5=function(e){var t=+e;return t!=t||t===0?0:(t>0?TEe:AEe)(t)},BEe=Math.min,CV=function(e){return e>0?BEe(_5(e),9007199254740991):0},x5=function(e){return CV(e.length)},TI=Array.isArray||function(e){return Cu(e)=="Array"},SV=function(){},PEe=[],EV=Gg("Reflect","construct"),C5=/^\s*(?:class|function)\b/,FEe=vt(C5.exec),MEe=!C5.exec(SV),fp=function(e){if(!fr(e))return!1;try{return EV(SV,PEe,e),!0}catch(t){return!1}},DV=!EV||Fn((function(){var e;return fp(fp.call)||!fp(Object)||!fp((function(){e=!0}))||e}))?function(e){if(!fr(e))return!1;switch(b5(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return MEe||!!FEe(C5,m5(e))}:fp,IEe=Gu("species"),BI=Xe.Array,jEe=function(e,t){return new((function(n){var r;return TI(n)&&(r=n.constructor,(DV(r)&&(r===BI||TI(r.prototype))||oa(r)&&(r=r[IEe])===null)&&(r=void 0)),r===void 0?BI:r})(e))(t===0?0:t)},PI=vt([].push),za=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,m=f5(s),v=w5(m),h=(function(x,k){return yV(x),k===void 0?x:AI?AI(x,k):function(){return x.apply(k,arguments)}})(l,c),y=x5(v),g=0,b=f||jEe,w=t?b(s,y):n||a?b(s,0):void 0;y>g;g++)if((u||g in v)&&(d=h(p=v[g],g,m),e))if(t)w[g]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:PI(w,p)}else switch(e){case 4:return!1;case 7:PI(w,p)}return i?-1:r||o?o:w}},LEe=[za(0),za(1),za(2),za(3),za(4),za(5),za(6),za(7)][0],Jx=(DI=[].forEach)&&Fn((function(){DI.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return LEe(this,e,arguments.length>1?arguments[1]:void 0)},kV=function(e){if(e&&e.forEach!==Jx)try{bf(e,"forEach",Jx)}catch(t){e.forEach=Jx}};for(var Qx in kI)kI[Qx]&&kV(Xe[Qx]&&Xe[Qx].prototype);kV(kEe);var FI={}.propertyIsEnumerable,MI=Object.getOwnPropertyDescriptor,OV={f:MI&&!FI.call({1:2},1)?function(e){var t=MI(this,e);return!!t&&t.enumerable}:FI},Ob=function(e){return w5(yf(e))},II=Object.getOwnPropertyDescriptor,AV={f:Fi?II:function(e,t){if(e=Ob(e),t=g5(t),gV)try{return II(e,t)}catch(n){}if(go(e,t))return v5(!Bn(OV.f,e,t),e[t])}},REe=Math.max,NEe=Math.min,GD=function(e,t){var n=_5(e);return n<0?REe(n+t,0):NEe(n,t)},$Ee=function(e){return function(t,n,r){var o,i=Ob(t),a=x5(i),u=GD(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},UEe=$Ee(!1),jI=vt([].push),TV=function(e,t){var n,r=Ob(e),o=0,i=[];for(n in r)!go(y5,n)&&go(r,n)&&jI(i,n);for(;t.length>o;)go(r,n=t[o++])&&(~UEe(i,n)||jI(i,n));return i},l1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zEe=l1.concat("length","prototype"),HEe={f:Object.getOwnPropertyNames||function(e){return TV(e,zEe)}},BV={f:Object.getOwnPropertySymbols},VEe=vt([].concat),WEe=Gg("Reflect","ownKeys")||function(e){var t=HEe.f(Wo(e)),n=BV.f;return n?VEe(t,n(e)):t},qEe=function(e,t){for(var n=WEe(t),r=kb.f,o=AV.f,i=0;i<n.length;i++){var a=n[i];go(e,a)||r(e,a,o(t,a))}},GEe=/#|\.prototype\./,Kg=function(e,t){var n=XEe[KEe(e)];return n==ZEe||n!=YEe&&(fr(t)?Fn(t):!!t)},KEe=Kg.normalize=function(e){return String(e).replace(GEe,".").toLowerCase()},XEe=Kg.data={},YEe=Kg.NATIVE="N",ZEe=Kg.POLYFILL="P",JEe=Kg,QEe=AV.f,Ab=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Xe:l?Xe[u]||l5(u,{}):(Xe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=QEe(n,r))&&a.value:n[r],!JEe(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;qEe(i,o)}(e.sham||o&&o.sham)&&bf(i,"sham",!0),Yh(n,r,i,e)}},Xm=Object.keys||function(e){return TV(e,l1)},fc=Object.assign,LI=Object.defineProperty,eDe=vt([].concat),RI=!fc||Fn((function(){if(Fi&&fc({b:1},fc(LI({},"a",{enumerable:!0,get:function(){LI(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(o){t[o]=o})),fc({},e)[n]!=7||Xm(fc({},t)).join("")!=r}))?function(e,t){for(var n=f5(e),r=arguments.length,o=1,i=BV.f,a=OV.f;r>o;)for(var u,s=w5(arguments[o++]),l=i?eDe(Xm(s),i(s)):Xm(s),c=l.length,f=0;c>f;)u=l[f++],Fi&&!Bn(a,s,u)||(n[u]=s[u]);return n}:fc;Ab({target:"Object",stat:!0,forced:Object.assign!==RI},{assign:RI});var NI=s5((function(e){var t=(function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function h(y){return y instanceof u?new u(y.type,h(y.content),y.alias):Array.isArray(y)?y.map(h):y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(h){return Object.prototype.toString.call(h).slice(8,-1)},objId:function(h){return h.__id||Object.defineProperty(h,"__id",{value:++o}),h.__id},clone:function h(y,g){var b,w;switch(g=g||{},a.util.type(y)){case"Object":if(w=a.util.objId(y),g[w])return g[w];for(var x in b={},g[w]=b,y)y.hasOwnProperty(x)&&(b[x]=h(y[x],g));return b;case"Array":return w=a.util.objId(y),g[w]?g[w]:(b=[],g[w]=b,y.forEach((function(k,D){b[D]=h(k,g)})),b);default:return y}},getLanguage:function(h){for(;h&&!r.test(h.className);)h=h.parentElement;return h?(h.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var h=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(h){var y=document.getElementsByTagName("script");for(var g in y)if(y[g].src==h)return y[g]}return null}},isActive:function(h,y,g){for(var b="no-"+y;h;){var w=h.classList;if(w.contains(y))return!0;if(w.contains(b))return!1;h=h.parentElement}return!!g}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(h,y){var g=a.util.clone(a.languages[h]);for(var b in y)g[b]=y[b];return g},insertBefore:function(h,y,g,b){var w=(b=b||a.languages)[h],x={};for(var k in w)if(w.hasOwnProperty(k)){if(k==y)for(var D in g)g.hasOwnProperty(D)&&(x[D]=g[D]);g.hasOwnProperty(k)||(x[k]=w[k])}var T=b[h];return b[h]=x,a.languages.DFS(a.languages,(function(A,F){F===T&&A!=h&&(this[A]=x)})),x},DFS:function h(y,g,b,w){w=w||{};var x=a.util.objId;for(var k in y)if(y.hasOwnProperty(k)){g.call(y,k,y[k],b||k);var D=y[k],T=a.util.type(D);T!=="Object"||w[x(D)]?T!=="Array"||w[x(D)]||(w[x(D)]=!0,h(D,g,k,w)):(w[x(D)]=!0,h(D,g,null,w))}}},plugins:{},highlightAll:function(h,y){a.highlightAllUnder(document,h,y)},highlightAllUnder:function(h,y,g){var b={callback:g,container:h,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,x=0;w=b.elements[x++];)a.highlightElement(w,y===!0,b.callback)},highlightElement:function(h,y,g){var b=a.util.getLanguage(h),w=a.languages[b];h.className=h.className.replace(r,"").replace(/\s+/g," ")+" language-"+b;var x=h.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&(x.className=x.className.replace(r,"").replace(/\s+/g," ")+" language-"+b);var k={element:h,language:b,grammar:w,code:h.textContent};function D(A){k.highlightedCode=A,a.hooks.run("before-insert",k),k.element.innerHTML=k.highlightedCode,a.hooks.run("after-highlight",k),a.hooks.run("complete",k),g&&g.call(k.element)}if(a.hooks.run("before-sanity-check",k),(x=k.element.parentElement)&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!k.code)return a.hooks.run("complete",k),void(g&&g.call(k.element));if(a.hooks.run("before-highlight",k),k.grammar)if(y&&n.Worker){var T=new Worker(a.filename);T.onmessage=function(A){D(A.data)},T.postMessage(JSON.stringify({language:k.language,code:k.code,immediateClose:!0}))}else D(a.highlight(k.code,k.grammar,k.language));else D(a.util.encode(k.code))},highlight:function(h,y,g){var b={code:h,grammar:y,language:g};return a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),u.stringify(a.util.encode(b.tokens),b.language)},tokenize:function(h,y){var g=y.rest;if(g){for(var b in g)y[b]=g[b];delete y.rest}var w=new c;return f(w,w.head,h),l(h,w,y,w.head,0),(function(x){for(var k=[],D=x.head.next;D!==x.tail;)k.push(D.value),D=D.next;return k})(w)},hooks:{all:{},add:function(h,y){var g=a.hooks.all;g[h]=g[h]||[],g[h].push(y)},run:function(h,y){var g=a.hooks.all[h];if(g&&g.length)for(var b,w=0;b=g[w++];)b(y)}},Token:u};function u(h,y,g,b){this.type=h,this.content=y,this.alias=g,this.length=0|(b||"").length}function s(h,y,g,b){h.lastIndex=y;var w=h.exec(g);if(w&&b&&w[1]){var x=w[1].length;w.index+=x,w[0]=w[0].slice(x)}return w}function l(h,y,g,b,w,x){for(var k in g)if(g.hasOwnProperty(k)&&g[k]){var D=g[k];D=Array.isArray(D)?D:[D];for(var T=0;T<D.length;++T){if(x&&x.cause==k+","+T)return;var A=D[T],F=A.inside,j=!!A.lookbehind,R=!!A.greedy,U=A.alias;if(R&&!A.pattern.global){var H=A.pattern.toString().match(/[imsuy]*$/)[0];A.pattern=RegExp(A.pattern.source,H+"g")}for(var G=A.pattern||A,X=b.next,oe=w;X!==y.tail&&!(x&&oe>=x.reach);oe+=X.value.length,X=X.next){var se=X.value;if(y.length>h.length)return;if(!(se instanceof u)){var L,B=1;if(R){if(!(L=s(G,oe,h,j)))break;var E=L.index,O=L.index+L[0].length,M=oe;for(M+=X.value.length;E>=M;)M+=(X=X.next).value.length;if(oe=M-=X.value.length,X.value instanceof u)continue;for(var V=X;V!==y.tail&&(M<O||typeof V.value=="string");V=V.next)B++,M+=V.value.length;B--,se=h.slice(oe,M),L.index-=oe}else if(!(L=s(G,0,se,j)))continue;E=L.index;var Q=L[0],Z=se.slice(0,E),le=se.slice(E+Q.length),Se=oe+se.length;x&&Se>x.reach&&(x.reach=Se);var Oe=X.prev;if(Z&&(Oe=f(y,Oe,Z),oe+=Z.length),p(y,Oe,B),X=f(y,Oe,new u(k,F?a.tokenize(Q,F):Q,U,Q)),le&&f(y,X,le),B>1){var Me={cause:k+","+T,reach:Se};l(h,y,g,X.prev,oe,Me),x&&Me.reach>x.reach&&(x.reach=Me.reach)}}}}}}function c(){var h={value:null,prev:null,next:null},y={value:null,prev:h,next:null};h.next=y,this.head=h,this.tail=y,this.length=0}function f(h,y,g){var b=y.next,w={value:g,prev:y,next:b};return y.next=w,b.prev=w,h.length++,w}function p(h,y,g){for(var b=y.next,w=0;w<g&&b!==h.tail;w++)b=b.next;y.next=b,b.prev=y,h.length-=w}if(n.Prism=a,u.stringify=function h(y,g){if(typeof y=="string")return y;if(Array.isArray(y)){var b="";return y.forEach((function(T){b+=h(T,g)})),b}var w={type:y.type,content:h(y.content,g),tag:"span",classes:["token",y.type],attributes:{},language:g},x=y.alias;x&&(Array.isArray(x)?Array.prototype.push.apply(w.classes,x):w.classes.push(x)),a.hooks.run("wrap",w);var k="";for(var D in w.attributes)k+=" "+D+'="'+(w.attributes[D]||"").replace(/"/g,"&quot;")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+k+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",(function(h){var y=JSON.parse(h.data),g=y.language,b=y.code,w=y.immediateClose;n.postMessage(a.highlight(b,a.languages[g],g)),w&&n.close()}),!1)),a;var d=a.util.currentScript();function m(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var v=document.readyState;v==="loading"||v==="interactive"&&d&&d.defer?document.addEventListener("DOMContentLoaded",m):window.requestAnimationFrame?window.requestAnimationFrame(m):window.setTimeout(m,16)}return a})(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=t),u1!==void 0&&(u1.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return n})),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,(function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))})(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,(function(){if(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(s){s.selector+=", "+o})),t.hooks.add("before-sanity-check",(function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(r,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),p=s.language;if(p==="none"){var d=(/\.(\w+)$/.exec(f)||[,"none"])[1];p=n[d]||d}u(c,p),u(l,p);var m=t.plugins.autoloader;m&&m.loadLanguages(p);var v=new XMLHttpRequest;v.open("GET",f,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?(l.setAttribute(r,"loaded"),c.textContent=v.responseText,t.highlightElement(c)):(l.setAttribute(r,"failed"),v.status>=400?c.textContent="✖ Error "+v.status+" while fetching file: "+v.statusText:c.textContent="✖ Error: File does not exist or is empty"))},v.send(null)}})),t.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)t.highlightElement(l)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(i," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}})()}));(function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(s,l)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],p=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:p=!0),(p||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var d=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(d+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(d=a(s[c-1])+d,s.splice(c-1,1),c--),s[c]=new e.Token("plain-text",d,null,d)}f.content&&typeof f.content!="string"&&u(f.content)}};e.hooks.add("after-tokenize",(function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)}))})(Prism),(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],(function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(s){/<\?/.test(s.code)&&e.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(s){e.languages["markup-templating"].tokenizePlaceholders(s,"php")}))})(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism),(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(Prism),(function(e){function t(O,M){return O.replace(/<<(\d+)>>/g,(function(V,Q){return"(?:"+M[+Q]+")"}))}function n(O,M,V){return RegExp(t(O,M),"")}function r(O,M){for(var V=0;V<M;V++)O=O.replace(/<<self>>/g,(function(){return"(?:"+O+")"}));return O.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(O){return"\\b(?:"+O.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),p=s(o+" "+i+" "+u),d=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),m=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,h=t(/<<0>>(?:\s*<<1>>)?/.source,[v,d]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,h]),g=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,g]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,m,g]),x=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),k=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,y,g]),D={keyword:c,punctuation:/[<>()?,.:[\]]/},T=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,F=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:RegExp(T),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,k]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,h]),lookbehind:!0,inside:D},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:D},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,p,v]),inside:D}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,y]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,d]),inside:{function:n(/^<<0>>/.source,[v]),generic:{pattern:RegExp(d),alias:"class-name",inside:D}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,h,v,k,c.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[h,m]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(k),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var j=A+"|"+T,R=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[j]),U=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[R]),2),H=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,G=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,U]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[H,G]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[H]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[U]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var X=/:[^}\r\n]+/.source,oe=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[R]),2),se=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[oe,X]),L=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[j]),2),B=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,X]);function E(O,M){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[O]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[M,X]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[se]),lookbehind:!0,greedy:!0,inside:E(se,oe)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[B]),lookbehind:!0,greedy:!0,inside:E(B,L)}]})})(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:[']|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby})(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),(function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash})(Prism),(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(l){return l=l.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(l){["url","bold","italic","strike","code-snippet"].forEach((function(c){l!==c&&(e.languages.markdown[l].inside.content.inside[c]=e.languages.markdown[c])}))})),e.hooks.add("after-tokenize",(function(l){l.language!=="markdown"&&l.language!=="md"||(function c(f){if(f&&typeof f!="string")for(var p=0,d=f.length;p<d;p++){var m=f[p];if(m.type==="code"){var v=m.content[1],h=m.content[3];if(v&&h&&v.type==="code-language"&&h.type==="code-block"&&typeof v.content=="string"){var y=v.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),g="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());h.alias?typeof h.alias=="string"?h.alias=[h.alias,g]:h.alias.push(g):h.alias=[g]}}else c(m.content)}})(l.tokens)})),e.hooks.add("wrap",(function(l){if(l.type==="code-block"){for(var c="",f=0,p=l.classes.length;f<p;f++){var d=l.classes[f],m=/language-(.+)/.exec(d);if(m){c=m[1];break}}var v=e.languages[c];if(v)l.content=e.highlight((function(y){var g=y.replace(a,"");return g.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(b,w){var x;return(w=w.toLowerCase())[0]==="#"?(x=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(x)):u[w]||b}))})(l.content),v,c);else if(c&&c!=="none"&&e.plugins.autoloader){var h="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=h,e.plugins.autoloader.loadLanguages(c,(function(){var y=document.getElementById(h);y&&(y.innerHTML=e.highlight(y.textContent,e.languages[c],c))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown})(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if(e.language==="groovy"&&e.type==="string"){var t=e.content[0];if(t!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}}));var tDe=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function PV(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce((function(t,n){return t+PV(n)}),0)}var hm,nDe=Xe.String,sa=function(e){if(b5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return nDe(e)},FV=function(){var e=Wo(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},S5=Xe.RegExp,KD=Fn((function(){var e=S5("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));KD||Fn((function(){return!S5("a","y").sticky}));var MV={BROKEN_CARET:KD||Fn((function(){var e=S5("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:KD},rDe=Fi?Object.defineProperties:function(e,t){Wo(e);for(var n,r=Ob(t),o=Xm(t),i=o.length,a=0;i>a;)kb.f(e,n=o[a++],r[n]);return e},oDe=Gg("document","documentElement"),IV=wV("IE_PROTO"),eC=function(){},jV=function(e){return"<script>"+e+"<\/script>"},$I=function(e){e.write(jV("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ym=function(){try{hm=new ActiveXObject("htmlfile")}catch(r){}var e,t;Ym=typeof document<"u"?document.domain&&hm?$I(hm):((t=h5("iframe")).style.display="none",oDe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(jV("document.F=Object")),e.close(),e.F):$I(hm);for(var n=l1.length;n--;)delete Ym.prototype[l1[n]];return Ym()};y5[IV]=!0;var UI,tC,iDe=Object.create||function(e,t){var n;return e!==null?(eC.prototype=Wo(e),n=new eC,eC.prototype=null,n[IV]=e):n=Ym(),t===void 0?n:rDe(n,t)},aDe=Xe.RegExp,uDe=Fn((function(){var e=aDe(".","s");return!(e.dotAll&&e.exec("\n")&&e.flags==="s")})),sDe=Xe.RegExp,lDe=Fn((function(){var e=sDe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),cDe=qD.get,fDe=c5("native-string-replace",String.prototype.replace),c1=RegExp.prototype.exec,XD=c1,dDe=vt("".charAt),pDe=vt("".indexOf),hDe=vt("".replace),nC=vt("".slice),rC=(tC=/b*/g,Bn(c1,UI=/a/,"a"),Bn(c1,tC,"a"),UI.lastIndex!==0||tC.lastIndex!==0),zI=MV.BROKEN_CARET,oC=/()??/.exec("")[1]!==void 0;(rC||oC||zI||uDe||lDe)&&(XD=function(e){var t,n,r,o,i,a,u,s=this,l=cDe(s),c=sa(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Bn(XD,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=zI&&s.sticky,m=Bn(FV,s),v=s.source,h=0,y=c;if(d&&(m=hDe(m,"y",""),pDe(m,"g")===-1&&(m+="g"),y=nC(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&dDe(c,s.lastIndex-1)!=="\n")&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",m)),oC&&(n=new RegExp("^"+v+"$(?!\\s)",m)),rC&&(r=s.lastIndex),o=Bn(c1,d?n:s,y),d?o?(o.input=nC(o.input,h),o[0]=nC(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:rC&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),oC&&o&&o.length>1&&Bn(fDe,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&p)for(o.groups=a=iDe(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Zh=XD;Ab({target:"RegExp",proto:!0,forced:/./.exec!==Zh},{exec:Zh});var E5=Function.prototype,HI=E5.apply,gDe=E5.bind,VI=E5.call,vDe=typeof Reflect=="object"&&Reflect.apply||(gDe?VI.bind(HI):function(){return VI.apply(HI,arguments)}),mDe=Gu("species"),iC=RegExp.prototype,yDe=Gu("match"),bDe=Xe.TypeError,wDe=Gu("species"),_De=vt("".charAt),WI=vt("".charCodeAt),xDe=vt("".slice),CDe=function(e){return function(t,n){var r,o,i=sa(yf(t)),a=_5(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=WI(i,a))<55296||r>56319||a+1===u||(o=WI(i,a+1))<56320||o>57343?e?_De(i,a):r:e?xDe(i,a,a+2):o-56320+(r-55296<<10)+65536}},SDe=CDe(!0),EDe=function(e,t,n){return t+(n?SDe(e,t).length:1)},DDe=Xe.Array,kDe=Math.max,qI=function(e,t,n){for(var r,o,i,a,u=x5(e),s=GD(t,u),l=GD(n===void 0?u:n,u),c=DDe(kDe(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=g5(o))in r?kb.f(r,a,v5(0,i)):r[a]=i;return c.length=f,c},ODe=Xe.TypeError,GI=function(e,t){var n=e.exec;if(fr(n)){var r=Bn(n,e,t);return r!==null&&Wo(r),r}if(Cu(e)==="RegExp")return Bn(Zh,e,t);throw ODe("RegExp#exec called on incompatible receiver")},dc=MV.UNSUPPORTED_Y,ADe=Math.min,LV=[].push,TDe=vt(/./.exec),pc=vt(LV),dp=vt("".slice);(function(e,t,n,r){var o=Gu(e),i=!Fn((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!Fn((function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[mDe]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||n){var u=vt(/./[o]),s=(function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,m){var v,h,y=sa(yf(this)),g=m===void 0?4294967295:m>>>0;if(g===0)return[];if(d===void 0)return[y];if(!oa(v=d)||!((h=v[yDe])!==void 0?h:Cu(v)=="RegExp"))return Bn(c,y,d,g);for(var b,w,x,k=[],D=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),T=0,A=new RegExp(d.source,D+"g");(b=Bn(Zh,A,y))&&!((w=A.lastIndex)>T&&(pc(k,dp(y,T,b.index)),b.length>1&&b.index<y.length&&vDe(LV,k,qI(b,1)),x=b[0].length,T=w,k.length>=g));)A.lastIndex===b.index&&A.lastIndex++;return T===y.length?!x&&TDe(A,"")||pc(k,""):pc(k,dp(y,T)),k.length>g?qI(k,0,g):k}:"0".split(void 0,0).length?function(d,m){return d===void 0&&m===0?[]:Bn(c,this,d,m)}:c,[function(d,m){var v=yf(this),h=d==null?void 0:bV(d,l);return h?Bn(h,d,v,m):Bn(p,sa(v),d,m)},function(d,m){var v=Wo(this),h=sa(d),y=f(p,v,h,m,p!==c);if(y.done)return y.value;var g=(function(U,H){var G,X=Wo(U).constructor;return X===void 0||(G=Wo(X)[wDe])==null?H:(function(oe){if(DV(oe))return oe;throw bDe(mV(oe)+" is not a constructor")})(G)})(v,RegExp),b=v.unicode,w=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(dc?"g":"y"),x=new g(dc?"^(?:"+v.source+")":v,w),k=m===void 0?4294967295:m>>>0;if(k===0)return[];if(h.length===0)return GI(x,h)===null?[h]:[];for(var D=0,T=0,A=[];T<h.length;){x.lastIndex=dc?0:T;var F,j=GI(x,dc?dp(h,T):h);if(j===null||(F=ADe(CV(x.lastIndex+(dc?T:0)),h.length))===D)T=EDe(h,T,b);else{if(pc(A,dp(h,D,T)),A.length===k)return A;for(var R=1;R<=j.length-1;R++)if(pc(A,j[R]),A.length===k)return A;T=D=F}}return pc(A,dp(h,D)),A}]})(o,""[e],(function(l,c,f,p,d){var m=vt(l),v=c.exec;return v===Zh||v===iC.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:m(f,c,p)}:{done:!1}}));Yh(String.prototype,e,s[0]),Yh(iC,o,s[1])}r&&bf(iC[o],"sham",!0)})("split",0,!!Fn((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),dc),Ab({global:!0},{globalThis:Xe}),mo&&(N.fn.attr=mo);var BDe=xV.PROPER,YD=RegExp.prototype,RV=YD.toString,PDe=vt(FV),FDe=Fn((function(){return RV.call({source:"a",flags:"b"})!="/a/b"})),MDe=BDe&&RV.name!="toString";(FDe||MDe)&&Yh(RegExp.prototype,"toString",(function(){var e=Wo(this),t=sa(e.source),n=e.flags;return"/"+t+"/"+sa(n===void 0&&vV(YD,e)&&!("flags"in YD)?PDe(e):n)}),{unsafe:!0});var IDe=(function(){function e(){this.title=de("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach((function(a){var u=a.text,s=a.value;n.push({text:u,value:s})}));var i=this.getValue(t);return n.forEach((function(a){a.value===i?a.selected=!0:delete a.selected})),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);if(n==null||!we.isElement(n))return"";var r=n.language.toString(),o=t.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some((function(i){return i.value===r}))?r:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,n){if(this.getSelectCodeElem(t)!=null){var r={language:n.toString()};K.setNodes(t,r,{match:function(o){return I.checkNodeType(o,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=I.getSelectedNodeByType(t,"code");if(n==null)return null;var r=I.getParentNode(t,n);return we.isElement(r)?r.type!=="pre"?null:n:null},e})(),jDe={renderStyle:function(e,t){var n=e,r=t,o="";return tDe.forEach((function(i){n[i]&&(o=i)})),o&&(function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})})(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=N(e);if(!we.isElement(t)||I.getNodeType(t)!=="code")return t;var o=t,i=r.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new IDe},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},LDe=/"/g,RDe=vt("".replace);Ab({target:"String",proto:!0,forced:Fn((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=sa(yf(this)),r="<a",(r+=' name="'+RDe(sa(t),LDe,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var NV=function(e){var t,n,r,o=(function(y,g){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var w,x,k=b.call(y),D=[];try{for(;(g===void 0||g-- >0)&&!(w=k.next()).done;)D.push(w.value)}catch(T){x={error:T}}finally{try{w&&!w.done&&(b=k.return)&&b.call(k)}finally{if(x)throw x.error}}return D})(e,2),i=o[0],a=o[1],u=[],s=(function(y){if(!me.isText(y))return null;var g=I.getParentNode(null,y);if(g&&I.getNodeType(g)==="code"){var b=I.getParentNode(null,g);if(b&&I.getNodeType(b)==="pre")return g}return null})(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=(function(y,g){if(!g)return[];var b=NI.languages[g];return b?NI.tokenize(y.text,b):[]})(i,c),p=0;try{for(var d=(function(y){var g=typeof Symbol=="function"&&Symbol.iterator,b=g&&y[g],w=0;if(b)return b.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&w>=y.length&&(y=void 0),{value:y&&y[w++],done:!y}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")})(f),m=d.next();!m.done;m=d.next()){var v=m.value,h=p+PV(v);typeof v!="string"&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:p},r.focus={path:a,offset:h},r)),p=h}}catch(y){t={error:y}}finally{try{m&&!m.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}return u},Gt=function(){return Gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gt.apply(this,arguments)},On=(function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=Gt(Gt({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=Gt(Gt({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=Gt(Gt({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=Gt(Gt({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){(function(r,o){var i=r.key,a=r.factory,u=r.config,s=ao(ao({},u),o||{});if(yh[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");yh[i]=a,(function(l,c){c!=null&&(sN[l]=c)})(i,s)})(t,n)},e.registerRenderElem=function(t){(function(n){var r=n.type,o=n.renderElem;FN[r||""]=o})(t)},e.registerRenderStyle=function(t){(function(n){WS.push(n)})(t)},e.registerElemToHtml=function(t){(function(n){var r=n.type,o=n.elemToHtml;lN[r||""]=o})(t)},e.registerStyleToHtml=function(t){(function(n){NS.push(n)})(t)},e.registerPreParseHtml=function(t){(function(n){kN.push(n)})(t)},e.registerParseElemHtml=function(t){(function(n){var r=n.selector,o=n.parseElemHtml;Z0[r]=o})(t)},e.registerParseStyleHtml=function(t){(function(n){L3.push(n)})(t)},e.registerModule=function(t){ms(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e})();function ms(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(c){return On.registerMenu(c)})),n&&n.forEach((function(c){return On.registerRenderElem(c)})),r&&On.registerRenderStyle(r),o&&o.forEach((function(c){return On.registerElemToHtml(c)})),i&&On.registerStyleToHtml(i),a&&a.forEach((function(c){return On.registerPreParseHtml(c)})),u&&u.forEach((function(c){return On.registerParseElemHtml(c)})),s&&On.registerParseStyleHtml(s),l&&On.registerPlugin(l)}Vve.forEach((function(e){return ms(e)})),ms(_ye),ms(Gbe),ms(rxe),ms(KSe),ms(jDe);var $V='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',UV={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},NDe={hoverbarKeys:Gt(Gt({},UV),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};On.setEditorConfig(Gt(Gt({},NDe),{decorate:NV}));var $De={hoverbarKeys:UV};On.setSimpleEditorConfig(Gt(Gt({},$De),{decorate:NV}));var UDe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:de("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:de("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:de("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:de("editor.image"),iconSvg:$V,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:de("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};On.setToolbarConfig(UDe);var zDe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:de("editor.image"),iconSvg:$V,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function HDe(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,o=r===void 0?[]:r,i=e.html,a=e.config,u=a===void 0?{}:a,s=e.mode,l=(s===void 0?"default":s)==="simple"?On.simpleEditorConfig:On.editorConfig,c=Gt(Gt({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return qle({selector:n,config:Gt(Gt(Gt({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:On.plugins})}function VDe(e){var t=e.selector,n=e.editor,r=e.config,o=r===void 0?{}:r,i=e.mode,a=i===void 0?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?On.simpleToolbarConfig:On.toolbarConfig,s=(function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,p=c.config,d=p===void 0?{}:p;if((function(h,y){return TN(h,"data-w-e-toolbar",y)})(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var m=ao({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},d||{}),v=new Zle(f,m);return O3.set(v,l),W1.set(l,v),v})(n,{selector:t,config:Gt(Gt({},u),o)});return s}On.setSimpleToolbarConfig(zDe);var WDe=Object.defineProperty,qDe=Object.defineProperties,GDe=Object.getOwnPropertyDescriptors,KI=Object.getOwnPropertySymbols,KDe=Object.prototype.hasOwnProperty,XDe=Object.prototype.propertyIsEnumerable,XI=(e,t,n)=>t in e?WDe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,YDe=(e,t)=>{for(var n in t||(t={}))KDe.call(t,n)&&XI(e,n,t[n]);if(KI)for(var n of KI(t))XDe.call(t,n)&&XI(e,n,t[n]);return e},ZDe=(e,t)=>qDe(e,GDe(t));function Ha(e){let t="请使用 '@".concat(e,"' 事件,不要放在 props 中");return t+="\nPlease use '@".concat(e,"' event instead of props"),t}var zV=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const JDe=re({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=ie(null),r=JD(null),o=ie(""),i=()=>{if(!n.value)return;const u=An(e.defaultContent);HDe({selector:n.value,mode:e.mode,content:u||[],html:e.defaultHtml||e.modelValue||"",config:ZDe(YDe({},e.defaultConfig),{onCreated(s){if(r.value=s,t.emit("onCreated",s),e.defaultConfig.onCreated){const l=Ha("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,t.emit("update:modelValue",l),t.emit("onChange",s),e.defaultConfig.onChange){const c=Ha("onChange");throw new Error(c)}},onDestroyed(s){if(t.emit("onDestroyed",s),e.defaultConfig.onDestroyed){const l=Ha("onDestroyed");throw new Error(l)}},onMaxLength(s){if(t.emit("onMaxLength",s),e.defaultConfig.onMaxLength){const l=Ha("onMaxLength");throw new Error(l)}},onFocus(s){if(t.emit("onFocus",s),e.defaultConfig.onFocus){const l=Ha("onFocus");throw new Error(l)}},onBlur(s){if(t.emit("onBlur",s),e.defaultConfig.onBlur){const l=Ha("onBlur");throw new Error(l)}},customAlert(s,l){if(t.emit("customAlert",s,l),e.defaultConfig.customAlert){const c=Ha("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(e.defaultConfig.customPaste){const f=Ha("customPaste");throw new Error(f)}let c;return t.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return Mi(()=>{i()}),qo(()=>e.modelValue,u=>{u!==o.value&&a(u)}),{box:n}}}),QDe={ref:"box",style:{height:"100%"}};function e4e(e,t,n,r,o,i){return Y(),ae("div",QDe,null,512)}var t4e=zV(JDe,[["render",e4e]]);const n4e=re({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=ie(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");I.getToolbar(r)||VDe({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return Xo(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),r4e={ref:"selector"};function o4e(e,t,n,r,o,i){return Y(),ae("div",r4e,null,512)}var i4e=zV(n4e,[["render",o4e]]);const a4e={ref:"editorBoxRef",class:"editor-box"},u4e=re({__name:"Editor",props:Dr({type:{type:String,default:"button"}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e,{expose:t}){const n=JD(void 0),r=_n("toolbarRef"),o=ft(e,"value"),i=ie({}),a=()=>{switch(e.type){case"button":return["bold","underline","italic","through"];case"text":return["bold","underline","italic","through","sup","sub","color","bgColor","bulletedList","numberedList","insertLink"];case"header":return["bold","underline","italic","through","color","bgColor","bulletedList","numberedList","insertLink"]}};mce("en");const u={toolbarKeys:a()},s={autoFocus:!1,placeholder:""},l=ie(!1);let c=!1;const f=()=>{if(!n.value||!r.value)return;const v=n.value.getEditableContainer();if(!v)return;const h=v.getBoundingClientRect();if(!r.value.selector)return;const y=r.value.$el.querySelector(".w-e-toolbar");let g=300;y&&(g=y.getBoundingClientRect().width);const b=h.left+(h.width-g)/2;i.value={top:"".concat(h.top-56,"px"),left:"".concat(b,"px")}},p=v=>{n.value=v,yr(()=>{window.addEventListener("resize",f);const h=I.getToolbar(v);h&&h.$box.find('button[data-menu-key="insertLink"]').on("click",()=>{c=!0})})},d=()=>{l.value=!0,yr(()=>{f()})},m=()=>{if(c){c=!1;return}l.value=!1};return h1(()=>{const v=n.value;v!=null&&(v.destroy(),window.removeEventListener("resize",f))}),t({focus:()=>{var v;l.value=!0,(v=n.value)==null||v.focus()},blur:()=>{l.value=!1}}),(v,h)=>(Y(),ae("div",a4e,[Go(C(_(i4e),{ref_key:"toolbarRef",ref:r,class:"toolbar",mode:"default",editor:_(n),style:er(_(i)),defaultConfig:u},null,8,["editor","style"]),[[Ko,_(l)]]),C(_(t4e),{modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=y=>o.value=y),class:"editor",mode:"simple",defaultConfig:s,onOnCreated:p,onOnFocus:d,onOnBlur:m},null,8,["modelValue"])],512))}}),Tb=gt(u4e,[["__scopeId","data-v-ca4c9ef8"]]),s4e=re({__name:"Button",props:{data:{type:Object,required:!0},cellKey:{type:String,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const{blockConfigMap:t}=$t(),{configToStyle:n}=ei(),r=_n("editorRef"),o=ve({get(){return t.value[e.data.key].attr},set(s){t.value[e.data.key].attr=s}}),i=ve(()=>{const{style:s}=t.value[e.data.key];return{...n(s)}}),a=()=>{var s;(s=r.value)==null||s.focus()},u=()=>{var s;(s=r.value)==null||s.blur()};return(s,l)=>(Y(),De(Nu,{data:e.data,"cell-key":e.cellKey,"block-type":e.data.type,"block-index":e.blockIndex,onSelect:a,onUnSelect:u},{default:P(()=>[$("div",{style:er(_(i))},[C(Tb,{ref_key:"editorRef",ref:r,value:_(o).content,"onUpdate:value":l[0]||(l[0]=c=>_(o).content=c)},null,8,["value"])],4)]),_:1},8,["data","cell-key","block-type","block-index"]))}}),l4e=re({__name:"Link",props:{data:{type:Object,required:!0},cellKey:{type:String,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const{blockConfigMap:t}=$t(),{configToStyle:n}=ei(),r=_n("editorRef"),o=ve({get(){return t.value[e.data.key].attr},set(s){t.value[e.data.key].attr=s}}),i=ve(()=>{const{style:s}=t.value[e.data.key];return{...n(s)}}),a=()=>{var s;(s=r.value)==null||s.focus()},u=()=>{var s;(s=r.value)==null||s.blur()};return(s,l)=>(Y(),De(Nu,{data:e.data,"cell-key":e.cellKey,"block-type":e.data.type,"block-index":e.blockIndex,onSelect:a,onUnSelect:u},{default:P(()=>[$("div",{style:er(_(i))},[C(Tb,{ref_key:"editorRef",ref:r,value:_(o).content,"onUpdate:value":l[0]||(l[0]=c=>_(o).content=c)},null,8,["value"])],4)]),_:1},8,["data","cell-key","block-type","block-index"]))}}),c4e=re({__name:"Divider",props:{data:{type:Object,required:!0},cellKey:{type:String,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const{blockConfigMap:t}=$t(),{configToStyle:n}=ei(),r=ve(()=>{const{style:o}=t.value[e.data.key];return{...n(o)}});return(o,i)=>(Y(),De(Nu,{data:e.data,"cell-key":e.cellKey,"block-type":e.data.type,"block-index":e.blockIndex},{default:P(()=>[$("div",{style:er(_(r))},null,4)]),_:1},8,["data","cell-key","block-type","block-index"]))}}),f4e=re({__name:"Header",props:{data:{type:Object,required:!0},cellKey:{type:String,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const{blockConfigMap:t}=$t(),{configToStyle:n}=ei(),r=_n("editorRef"),o=ve({get(){return t.value[e.data.key].attr},set(s){t.value[e.data.key].attr=s}}),i=ve(()=>{const{style:s}=t.value[e.data.key];return{...n(s),width:"100%"}}),a=()=>{var s;(s=r.value)==null||s.focus()},u=()=>{var s;(s=r.value)==null||s.blur()};return(s,l)=>(Y(),De(Nu,{data:e.data,"cell-key":e.cellKey,"block-type":e.data.type,"block-index":e.blockIndex,onSelect:a,onUnSelect:u},{default:P(()=>[$("div",{style:er(_(i))},[C(Tb,{ref_key:"editorRef",ref:r,value:_(o).content,"onUpdate:value":l[0]||(l[0]=c=>_(o).content=c),type:"header"},null,8,["value"])],4)]),_:1},8,["data","cell-key","block-type","block-index"]))}}),d4e=re({__name:"Text",props:{data:{type:Object,required:!0},cellKey:{type:String,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const{blockConfigMap:t}=$t(),{configToStyle:n}=ei(),r=_n("editorRef"),o=ve({get(){return t.value[e.data.key].attr},set(s){t.value[e.data.key].attr=s}}),i=ve(()=>{const{style:s}=t.value[e.data.key];return{...n(s),width:"100%"}}),a=()=>{var s;(s=r.value)==null||s.focus()},u=()=>{var s;(s=r.value)==null||s.blur()};return(s,l)=>(Y(),De(Nu,{data:e.data,"cell-key":e.cellKey,"block-type":e.data.type,"block-index":e.blockIndex,onSelect:a,onUnSelect:u},{default:P(()=>[$("div",{style:er(_(i))},[C(Tb,{ref_key:"editorRef",ref:r,value:_(o).content,"onUpdate:value":l[0]||(l[0]=c=>_(o).content=c),type:"text"},null,8,["value"])],4)]),_:1},8,["data","cell-key","block-type","block-index"]))}}),p4e={},h4e={class:"block-none"};function g4e(e,t){return Y(),ae("div",h4e,[br(e.$slots,"default",{},void 0,!0)])}const HV=gt(p4e,[["render",g4e],["__scopeId","data-v-1e66913b"]]),v4e=["src","alt"],m4e=re({__name:"Image",props:{data:{type:Object,required:!0},cellKey:{type:String,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const{blockConfigMap:t}=$t(),{configToStyle:n}=ei(),r=ve(()=>{const{style:i}=t.value[e.data.key];return{...n(i)}}),o=ve({get(){return t.value[e.data.key].attr},set(i){t.value[e.data.key].attr=i}});return(i,a)=>(Y(),De(Nu,{data:e.data,"cell-key":e.cellKey,"block-type":e.data.type,"block-index":e.blockIndex},{default:P(()=>[$("div",{style:er(_(r))},[_(o).src?(Y(),ae("img",{key:0,src:_(o).src,alt:_(o).alt},null,8,v4e)):(Y(),De(HV,{key:1},{default:P(()=>a[0]||(a[0]=[ye("Image")])),_:1,__:[0]}))],4)]),_:1},8,["data","cell-key","block-type","block-index"]))}}),y4e=gt(m4e,[["__scopeId","data-v-8d5a55cb"]]),b4e=re({__name:"Menu",props:{data:{type:Object,required:!0},cellKey:{type:String,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const{blockConfigMap:t}=$t(),{configToStyle:n}=ei(),r=ve(()=>{const{style:i}=t.value[e.data.key];return{...n(i)}}),o=ve(()=>t.value[e.data.key].attr);return(i,a)=>(Y(),De(Nu,{data:e.data,"cell-key":e.cellKey,"block-type":e.data.type,"block-index":e.blockIndex},{default:P(()=>{var u;return[$("div",null,[((u=_(o).links)==null?void 0:u.length)===0?(Y(),De(HV,{key:0},{default:P(()=>a[0]||(a[0]=[ye("Menu")])),_:1,__:[0]})):$n("",!0),(Y(!0),ae(Pt,null,co(_(o).links,s=>(Y(),ae("a",{key:s.id,style:er(_(r))},ke(s.label),5))),128))])]}),_:1},8,["data","cell-key","block-type","block-index"]))}}),w4e=["data-cell-key"],_4e={key:0,class:"column-placeholder"},x4e=re({__name:"Cell",props:{data:{type:Object,required:!0},blockKey:{type:String,required:!0}},setup(e){const{cellMap:t,cellConfigMap:n,blockMap:r,insertBlockToCell:o,moveBlockInCell:i,moveBlockBetweenCells:a}=$t(),{configToStyle:u}=ei(),s=ie(null),l=ie(null),c=ie([]),f=B=>{B&&(s.value=B,X(B))},p=(B,E)=>{B&&(c.value.length<=E&&(c.value=c.value.concat(new Array(E-c.value.length+1).fill(null))),c.value[E]=B)},d=ve(()=>"".concat(e.data.width,"%")),m=ve(()=>{const{style:B}=n.value[e.blockKey];return{...u(B),width:d.value}}),v=ve(()=>t.value[e.blockKey]?t.value[e.blockKey].children.filter(B=>!!r.value[B]).map(B=>r.value[B]):[]),h=ve(()=>v.value&&v.value.length>0),y=ie(!1),g=ie(-1),b=ie(-1),w=ie(""),x=ie(""),k=ie({x:0,y:0}),D=ve(()=>y.value&&w.value===e.blockKey&&b.value!==-1),T=ie([]),A=B=>!y.value||g.value===-1||B<g.value?B:B-1,F=ve(()=>{if(!h.value||!y.value||g.value===-1)return v.value||[];const B=[...v.value||[]];if(D.value){if(b.value===g.value)return B;const O=B.splice(b.value,1)[0];return B.splice(g.value>b.value?g.value-1:g.value,0,O),B}const E={key:"drag-placeholder",type:"placeholder",name:"Placeholder"};return g.value<=B.length?B.splice(g.value,0,E):B.push(E),B}),j=()=>{if(!s.value||!l.value||c.value.length===0)return;const B=[],E=s.value.getBoundingClientRect();c.value.forEach((O,M)=>{if(!O)return;const V=O.getBoundingClientRect();B.push({index:M,top:V.top-E.top,bottom:V.bottom-E.top,center:V.top+V.height/2-E.top,height:V.height})}),B.sort((O,M)=>O.top-M.top),T.value=B},R=(B,E)=>{if(E.length===0||B<E[0].top)return 0;if(B>E[E.length-1].bottom)return E.length;let O=0,M=E.length-1;for(;O<=M;){const V=Math.floor((O+M)/2),Q=E[V];if(B>=Q.top&&B<=Q.bottom){const Z=Q.top+Q.height/2;return B<Z?Q.index:Q.index+1}B<Q.top?M=V-1:O=V+1}return O<E.length?O:E.length},U=()=>{if(!s.value){g.value=0;return}const B=s.value.getBoundingClientRect(),E=k.value.y-B.top;if(E<20){g.value=0;return}if(E>B.height-20){g.value=v.value.length;return}if(!T.value.length&&(j(),!T.value.length)){g.value=0;return}g.value=R(E,T.value)},H=Dp(()=>{U()},10,{leading:!0,trailing:!0}),G=()=>{y.value=!1,g.value=-1,b.value=-1,w.value="",x.value="",T.value=[]},[,X]=p4(()=>({accept:["ADD_BASE_BLOCK","SORT_BASE_BLOCK"],hover:Dp((B,E)=>{if(x.value=B.type,y.value||j(),!E.isOver()){G();return}y.value=!0,B.type==="SORT_BASE_BLOCK"&&(b.value=B.sourceIndex!==void 0?B.sourceIndex:-1,w.value=B.sourceCellKey||"");const O=E.getClientOffset();O&&(k.value={x:O.x,y:O.y},H())},16),drop(B){if(B.type==="ADD_BASE_BLOCK"&&(h.value&&g.value!==-1?o(g.value,e.blockKey,B.blockData):o(0,e.blockKey,B.blockData)),B.type==="SORT_BASE_BLOCK"&&g.value!==-1)if(B.sourceCellKey===e.blockKey){const E=B.sourceIndex<g.value?g.value-1:g.value;B.sourceIndex!==E&&i(e.blockKey,B.sourceIndex,g.value)}else B.sourceCellKey&&a(B.sourceCellKey,e.blockKey,B.sourceIndex,g.value,B.blockData.key);G()},collect:B=>(B.isOver()||G(),{})})),oe=B=>({button:s4e,link:l4e,divider:c4e,header:f4e,text:d4e,image:y4e,menu:b4e})[B]||null,se=L5(()=>{y.value&&j()},100,{leading:!0,maxWait:200}),L=L5(()=>{y.value&&j()},100,{leading:!0,maxWait:200});return Mi(()=>{window.addEventListener("scroll",se,{passive:!0}),window.addEventListener("resize",L,{passive:!0})}),wf(()=>{window.removeEventListener("scroll",se),window.removeEventListener("resize",L),H.cancel(),se.cancel(),L.cancel()}),(B,E)=>(Y(),ae("div",{ref:f,class:Di(["cell-container",{"drop-active":_(y)}]),style:er(_(m)),"data-cell-key":e.blockKey},[$("div",{ref_key:"contentRef",ref:l,class:"cell-content"},[(Y(!0),ae(Pt,null,co(_(F),(O,M)=>(Y(),ae(Pt,{key:O.key||"placeholder-".concat(M)},[O.type!=="placeholder"?(Y(),ae("div",{key:0,class:"block-wrapper",ref_for:!0,ref:V=>p(V,M)},[(Y(),De(QD(oe(O.type)),{data:O,"block-index":A(M),"cell-key":e.blockKey,class:"block-item"},null,8,["data","block-index","cell-key"]))],512)):(Y(),ae("div",{key:1,class:Di(["block-placeholder",{active:_(y)}])},E[0]||(E[0]=[$("div",{class:"placeholder-content"},[$("span",null,"Place new content here")],-1)]),2))],64))),128))],512),_(h)?$n("",!0):(Y(),ae("div",_4e,E[1]||(E[1]=[$("span",null,"Drag and drop contents to this column",-1)])))],14,w4e))}}),C4e=gt(x4e,[["__scopeId","data-v-36bdbe4c"]]),S4e=["onMousedown"],E4e=re({__name:"Columns",props:{index:Number,data:{type:Object,required:!0}},setup(e){const{columnsConfigMap:t,cellMap:n,selectedBlockKey:r,pageConfig:o}=$t(),{configToStyle:i}=ei(),a=JD(null),u=ie([]),s=ie(!1),l=ie(-1),c=ie(0),f=ie([]),p=ve(()=>{const{style:j}=t.value[e.data.key];return{...i(j),width:o.value.style.width}}),d=ve(()=>r.value===e.data.key),m=ie(null),v=(j,R)=>{m.value&&clearTimeout(m.value),m.value=window.setTimeout(()=>{n.value[e.data.children[j]].width=u.value[j],n.value[e.data.children[R]].width=u.value[R],m.value=null},16)};qo(()=>e.data.children.length,()=>h());const h=()=>{var H,G;if(!((G=(H=e.data)==null?void 0:H.children)!=null&&G.length))return;const j=e.data.children.length,R=Math.floor(100/j),U=100-R*j;u.value=e.data.children.map((X,oe)=>{const se=n.value[X];if(typeof se.width=="number"&&!isNaN(se.width))return se.width;{const L=oe===j-1?R+U:R;return se.width=L,L}}),y()},y=()=>{if(!u.value||u.value.length===0)return;const j=u.value.reduce((R,U)=>R+(isNaN(U)?0:U),0);if(j!==100){const R=100-j,U=u.value.length-1;u.value[U]=Math.max(10,(u.value[U]||0)+R),e.data.children[U]&&(n.value[e.data.children[U]].width=u.value[U])}},g=(j,R)=>{var X;if(R<0||R>=e.data.children.length-1)return;j.preventDefault(),s.value=!0,l.value=R,c.value=j.clientX,u.value.length===0&&h();const U=(X=a.value)==null?void 0:X.querySelectorAll(".cell-container");if(!U||U.length<=R+1){s.value=!1;return}const H=U[R].getBoundingClientRect().width,G=U[R+1].getBoundingClientRect().width;H>0&&G>0?(f.value=[H,G],b(),document.body.style.userSelect="none",document.body.style.cursor="col-resize"):s.value=!1},b=()=>{document.addEventListener("mousemove",T,{passive:!1,capture:!0}),document.addEventListener("mouseup",F,{passive:!1,capture:!0}),document.addEventListener("touchmove",x,{passive:!1,capture:!0}),document.addEventListener("touchend",F,{passive:!1,capture:!0}),document.addEventListener("touchcancel",F,{passive:!1,capture:!0})},w=()=>{document.removeEventListener("mousemove",T,{capture:!0}),document.removeEventListener("mouseup",F,{capture:!0}),document.removeEventListener("touchmove",x,{capture:!0}),document.removeEventListener("touchend",F,{capture:!0}),document.removeEventListener("touchcancel",F,{capture:!0})},x=j=>{if(!s.value||!j.touches[0])return;j.preventDefault();const R={clientX:j.touches[0].clientX,preventDefault:()=>j.preventDefault()};T(R)};let k=null,D=null;const T=j=>{j.preventDefault(),s.value&&(D=j,k===null&&(k=requestAnimationFrame(A)))},A=()=>{if(k=null,!D||!s.value)return;const j=D,R=l.value;if(R<0||R>=u.value.length-1||f.value.length<2||f.value[0]<=0||f.value[1]<=0)return;const U=f.value[0]+f.value[1],H=j.clientX-c.value,G=Math.max(50,Math.min(U-50,f.value[0]+H)),X=u.value[R]+u.value[R+1],oe=10,se=X-oe;let L=Math.round(G/U*X);L=Math.max(oe,Math.min(se,L));let B=X-L;u.value[R]=L,u.value[R+1]=B,v(R,R+1)},F=j=>{if(j.preventDefault(),s.value=!1,k!==null&&(cancelAnimationFrame(k),k=null),m.value){clearTimeout(m.value),m.value=null;const R=l.value;R>=0&&R<u.value.length-1&&(n.value[e.data.children[R]].width=u.value[R],n.value[e.data.children[R+1]].width=u.value[R+1])}w(),document.body.style.userSelect="",document.body.style.cursor="",D=null};return Mi(()=>{h()}),wf(()=>{k!==null&&cancelAnimationFrame(k),m.value&&clearTimeout(m.value),w()}),(j,R)=>(Y(),De(Nu,{data:e.data,"block-type":"columns","block-index":e.index},{default:P(()=>[$("div",{ref_key:"columnsLayoutRef",ref:a,class:"columns-layout",style:er(_(p))},[(Y(!0),ae(Pt,null,co(e.data.children,(U,H)=>(Y(),ae(Pt,{key:U},[C(C4e,{blockKey:U,data:_(n)[U]},null,8,["blockKey","data"]),H<e.data.children.length-1?Go((Y(),ae("div",{key:0,class:Di(["column-divider",{active:_(s)&&_(l)===H}]),onMousedown:G=>g(G,H)},null,42,S4e)),[[Ko,_(d)]]):$n("",!0)],64))),128))],4)]),_:1},8,["data","block-index"]))}}),D4e=gt(E4e,[["__scopeId","data-v-50d34a0a"]]),k4e={key:0,class:"empty-container"},O4e=re({__name:"Canvas",setup(e){const{pageConfig:t,columnsMaps:n,selectBlock:r,insertColumnSourceAt:o,moveColumnSource:i}=$t(),a=ie(null),u=ie(null),s=L=>{L&&(a.value=L,se(L))},l=ie(new Map),c=ie([]),f=tt({needsUpdate:!0,isUpdating:!1,lastUpdateTime:0,lastColumnsLength:0}),p=ie({x:0,y:0}),d=tt({isDragging:!1,isProcessingDrop:!1,placeholderIndex:-1,highlightIndex:-1,insertPosition:null,currentDragType:null,sortingActive:!1}),m=tt({isSorting:!1,sourceIndex:-1,lastAppliedTarget:-1,originalOrder:[],draggedElement:null,dragSourceDisplayIndex:-1}),v=ie(0),h=ve(()=>{if(m.isSorting||!d.isDragging||d.placeholderIndex<0)return n.value;const L=[...n.value],B={key:"drag-placeholder",type:"placeholder",name:"Placeholder",children:[]},E=Math.min(Math.max(0,d.placeholderIndex),L.length);return L.splice(E,0,B),L}),y=ve(()=>({backgroundColor:t.value.style.backgroundColor})),g=L=>{const B=h.value[L];if(!B||!m.isSorting)return L;const E=n.value.findIndex(O=>O===B);return E===-1?L:E},b={isAllowedDragType(L){return L==="SORT_COLUMNS_BLOCK"||n.value.length===0?!0:L==="ADD_COLUMNS_BLOCK"},findTargetPosition(L){if(c.value.length===0)return null;if(L<c.value[0].top)return{targetIndex:0,targetPosition:"before"};const B=c.value[c.value.length-1];if(L>B.bottom)return{targetIndex:B.index,targetPosition:"after"};for(const E of c.value)if(!(m.isSorting&&E.index===m.sourceIndex)&&L>=E.top&&L<=E.bottom)return{targetIndex:E.index,targetPosition:L<E.center?"before":"after"};for(let E=0;E<c.value.length-1;E++){const O=c.value[E],M=c.value[E+1];if(!(m.isSorting&&(O.index===m.sourceIndex||M.index===m.sourceIndex))&&L>O.bottom&&L<M.top)return{targetIndex:O.index,targetPosition:"after"}}return null},getMoveToIndex(L){return L?L.targetPosition==="before"?L.targetIndex:L.targetIndex+1:-1},shouldSkipMove(L,B,E){return B===L||B===L+1||B===E},getNewSourceIndex(L,B){return B>L?B-1:B}},w=(L,B)=>{if(!L){l.value.delete(B);return}const E=g(B);L.dataset.index=E.toString(),l.value.set(B,L),f.needsUpdate=!0},x=(L=!1)=>{if(!(f.isUpdating&&!L)&&!(!f.needsUpdate&&!L)){f.isUpdating=!0;try{const B=a.value;if(!B)return;const E=B.getBoundingClientRect(),O=[],M=B.querySelectorAll(".block-columns-wrapper");if(M.length===0){c.value=[],f.needsUpdate=!1;return}M.forEach((V,Q)=>{const Z=V.getBoundingClientRect(),le=V.dataset.index;let Se=le?parseInt(le,10):Q;O.push({index:Se,domIndex:Q,top:Z.top-E.top,bottom:Z.bottom-E.top,height:Z.height,center:Z.top-E.top+Z.height/2,element:V})}),c.value=O.sort((V,Q)=>V.top-Q.top),f.needsUpdate=!1,f.lastUpdateTime=Date.now(),f.lastColumnsLength=n.value.length}finally{f.isUpdating=!1}}};qo(()=>n.value.length,(L,B)=>{L!==B&&(f.needsUpdate=!0,yr(()=>{x()}))});const k=()=>{r("","")},D=Dp(L=>{d.isProcessingDrop||(p.value={x:L.clientX,y:L.clientY},d.isDragging&&(m.isSorting?j(p.value):F(p.value)))},16),T=()=>{!d.isDragging||d.isProcessingDrop||A()},A=()=>{d.highlightIndex=-1,d.insertPosition=null},F=L=>{if(!d.isDragging||d.isProcessingDrop||m.isSorting)return;if(!b.isAllowedDragType(d.currentDragType||"")){d.placeholderIndex=-1;return}const B=a.value;if(!B)return;const E=B.getBoundingClientRect(),O=L.y-E.top;if(c.value.length===0){d.placeholderIndex=0;return}f.needsUpdate&&x();const M=b.findTargetPosition(O);if(!M)return;const{targetIndex:V,targetPosition:Q}=M;d.highlightIndex=V,d.insertPosition=Q,d.placeholderIndex=Q==="before"?V:V+1},j=Dp(L=>{!m.isSorting||d.isProcessingDrop||(f.needsUpdate&&x(!0),R(L))},16,{leading:!0,trailing:!0}),R=L=>{var Q;if(!m.isSorting)return;const B=(Q=a.value)==null?void 0:Q.getBoundingClientRect();if(!B)return;const E=L.y-B.top,O=b.findTargetPosition(E);if(!O)return;const M=b.getMoveToIndex(O);if(b.shouldSkipMove(m.sourceIndex,M,m.lastAppliedTarget))return;d.highlightIndex=O.targetIndex,d.insertPosition=O.targetPosition,v.value++,i(m.sourceIndex,M);const V=b.getNewSourceIndex(m.sourceIndex,M);m.lastAppliedTarget=M,m.sourceIndex=V,f.needsUpdate=!0,yr(()=>{x(!0)})},U=L=>{if(m.isSorting)return;x(!0);let B=null,E=-1;for(const O of c.value)if(O.index===L){E=O.domIndex,B=O.element;break}if(!B){const O=a.value;O&&O.querySelectorAll(".block-columns-wrapper").forEach((V,Q)=>{parseInt(V.dataset.index||"-1",10)===L&&(B=V,E=Q)})}E===-1&&(E=L),m.isSorting=!0,m.sourceIndex=L,m.originalOrder=[...n.value],m.lastAppliedTarget=-1,m.draggedElement=B,m.dragSourceDisplayIndex=E,d.isDragging=!0,d.currentDragType="SORT_COLUMNS_BLOCK",d.sortingActive=!0,v.value=0,f.needsUpdate=!0,x(!0)},H=()=>{m.isSorting=!1,m.sourceIndex=-1,m.originalOrder=[],m.lastAppliedTarget=-1,m.draggedElement=null,m.dragSourceDisplayIndex=-1,d.sortingActive=!1,d.highlightIndex=-1,d.insertPosition=null,v.value=0,f.needsUpdate=!0,yr(()=>x(!0))},G=L=>{try{const{type:B,blockData:E}=L;if(!E||!b.isAllowedDragType(B))return;if(B==="ADD_COLUMNS_BLOCK"){const O=d.placeholderIndex>=0?d.placeholderIndex:n.value.length;o(O)}else B==="ADD_BASE_BLOCK"&&o(0)}finally{f.needsUpdate=!0,yr(()=>x(!0))}},X=()=>{d.isDragging=!1,d.isProcessingDrop=!1,d.currentDragType=null,d.placeholderIndex=-1,d.highlightIndex=-1,d.insertPosition=null,d.sortingActive=!1,m.isSorting=!1,m.sourceIndex=-1,m.originalOrder=[],m.lastAppliedTarget=-1,m.draggedElement=null,m.dragSourceDisplayIndex=-1,f.needsUpdate=!0},oe=()=>{X(),yr(()=>x())},[,se]=p4(()=>({accept:["ADD_COLUMNS_BLOCK","ADD_BASE_BLOCK","SORT_COLUMNS_BLOCK"],hover:Dp((L,B)=>{if(d.isProcessingDrop)return;const E=B.isOver({shallow:!0});d.currentDragType=L.type;const O=L.type==="SORT_COLUMNS_BLOCK"||b.isAllowedDragType(L.type),M=E&&B.canDrop()&&O;if(d.isDragging&&!M&&!m.isSorting&&(d.placeholderIndex=-1),d.isDragging=M,!O&&L.type!=="SORT_COLUMNS_BLOCK"||!E)return;const V=B.getClientOffset();V&&(L.type==="SORT_COLUMNS_BLOCK"&&"sourceIndex"in L?(m.isSorting||U(L.sourceIndex),j(V)):(L.type==="ADD_COLUMNS_BLOCK"||L.type==="ADD_BASE_BLOCK")&&F(V))},16,{leading:!0,trailing:!0}),drop:(L,B)=>{if(!d.isProcessingDrop){d.isProcessingDrop=!0;try{if(!B.isOver({shallow:!0}))return;L.type==="SORT_COLUMNS_BLOCK"?H():(L.type==="ADD_COLUMNS_BLOCK"||L.type==="ADD_BASE_BLOCK")&&G(L)}finally{setTimeout(()=>{oe()},50)}}},collect:L=>(d.isDragging&&!L.isOver()&&(m.isSorting||(d.placeholderIndex=-1),d.isDragging=!1),{})}));return(L,B)=>(Y(),ae("div",{ref:s,class:"canvas-area",onClick:Qm(k,["stop"])},[$("div",{ref_key:"canvasRef",ref:u,class:"canvas-container",style:er(_(y)),onMousemove:B[0]||(B[0]=(...E)=>_(D)&&_(D)(...E)),onMouseleave:T},[(Y(!0),ae(Pt,null,co(_(h),(E,O)=>(Y(),ae(Pt,{key:E.key||"placeholder-".concat(O)},[E.type==="columns"?(Y(),ae("div",{key:0,ref_for:!0,ref:M=>w(M,O),class:"block-columns-wrapper"},[C(D4e,{data:E,index:g(O)},null,8,["data","index"])],512)):$n("",!0),E.type==="placeholder"?(Y(),ae("div",{key:1,class:Di(["block-placeholder",{active:_(d).isDragging}])},B[1]||(B[1]=[$("div",{class:"placeholder-content"},[$("span",null,"Place the new content here")],-1)]),2)):$n("",!0)],64))),128)),_(n).length===0&&!_(d).isDragging?(Y(),ae("div",k4e,B[2]||(B[2]=[$("div",{class:"empty-message"},"No content here. Drag content from left.",-1)]))):$n("",!0)],36)]))}}),A4e=gt(O4e,[["__scopeId","data-v-0ed9adc7"]]),T4e=["innerHTML"],B4e=re({__name:"index",setup(e){const{html:t,generateHtml:n}=i4();return n(),(r,o)=>(Y(),ae("div",{innerHTML:_(t)},null,8,T4e))}}),P4e={class:"editor-tools"},F4e=re({__name:"index",setup(e){const t=()=>{No({title:"Preview",width:800,height:600,component:B4e})};return(n,r)=>{const o=f1;return Y(),ae("div",P4e,[$("div",null,[$("span",{class:"cursor-pointer",onClick:t},[C(o,{name:"drag-preview",size:"18"})])]),$("div",null,[$n("",!0)])])}}}),M4e=gt(F4e,[["__scopeId","data-v-428569d7"]]),I4e={class:"editor-container"},j4e={class:"flex-1"},L4e=re({__name:"Editor",setup(e){return(t,n)=>(Y(),ae("div",I4e,[C(M4e),$("div",j4e,[C(A4e)])]))}}),R4e=gt(L4e,[["__scopeId","data-v-b95fec5b"]]),N4e={class:"text"},$4e=re({__name:"block",props:{type:{type:String,required:!0},data:{type:Object,required:!0}},setup(e){const[,t]=e0(()=>({type:e.type==="columns"?"ADD_COLUMNS_BLOCK":"ADD_BASE_BLOCK",item:{type:e.type==="columns"?"ADD_COLUMNS_BLOCK":"ADD_BASE_BLOCK",blockData:Rt(e.data)}}));return(n,r)=>{const o=f1;return Y(),ae("div",{ref:_(t),class:"block-item"},[C(o,{name:"drag-".concat(e.type),size:"18"},null,8,["name"]),$("div",N4e,ke(e.data.name),1)],512)}}}),U4e=gt($4e,[["__scopeId","data-v-ea0cad5e"]]),z4e={class:"block-panel"},H4e={class:"block-list"},V4e=re({__name:"index",setup(e){const t=ie([{type:"columns",name:"Columns",key:"0"},{type:"button",name:"Button",key:"0"},{type:"link",name:"Link",key:"0"},{type:"divider",name:"Divider",key:"0"},{type:"header",name:"Header",key:"0"},{type:"text",name:"Text",key:"0"},{type:"image",name:"Image",key:"0"},{type:"menu",name:"Menu",key:"0"}]);return(n,r)=>(Y(),ae("div",z4e,[$("div",H4e,[(Y(!0),ae(Pt,null,co(_(t),o=>(Y(),De(U4e,{key:o.type,type:o.type,data:o},null,8,["type","data"]))),128))])]))}}),W4e=gt(V4e,[["__scopeId","data-v-2cd77b18"]]),q4e={class:"editor-menu"},G4e=re({__name:"EditorMenu",setup(e){return(t,n)=>(Y(),ae("div",q4e,[C(W4e)]))}}),K4e=gt(G4e,[["__scopeId","data-v-7b19c6e6"]]),X4e={};function Y4e(e,t){const n=NW;return Y(),De(n,{"arrow-placement":"right","display-directive":"show"},{default:P(()=>[br(e.$slots,"default",{},void 0,!0)]),_:3})}const Ku=gt(X4e,[["render",Y4e],["__scopeId","data-v-be0a8b1b"]]),Z4e={class:"columns-panel"},J4e={class:"layout-grid"},Q4e=["onClick"],e3e={class:"layout-preview"},t3e={class:"text"},n3e={key:0,class:"layout-option active mt-16px"},r3e={class:"layout-preview"},o3e={class:"text"},i3e=re({__name:"ColumnsPanel",setup(e){const{columnsMap:t,cellMap:n,selectedBlockKey:r,generateNewCell:o}=$t(),{autoSaveFn:i}=Pr(),a=ve(()=>t.value[r.value]),u=[{type:"single",columns:[100]},{type:"two-equal",columns:[50,50]},{type:"three-equal",columns:[33,33,33]},{type:"four-equal",columns:[25,25,25,25]},{type:"two-left-small",columns:[33,67]},{type:"two-right-small",columns:[67,33]},{type:"four-left-small",columns:[17,33,17,33]},{type:"four-right-small",columns:[33,17,33,17]}],s=new Map(u.map(h=>[h.type,h.columns])),l=ie(null),c=ve(()=>{var y;const h=(y=a.value)==null?void 0:y.children;return h!=null&&h.length?h.map(g=>n.value[g].width||0):[]}),f=ve(()=>{const h=c.value;if(!h.length)return"";for(let y=0;y<u.length;y++){const g=u[y];if(g.columns.length!==h.length)continue;let b=!0;for(let w=0;w<h.length;w++)if(Math.abs(h[w]-g.columns[w])>3){b=!1;break}if(b)return g.type}return""}),p=ve(()=>c.value.length>0&&u.some(h=>h.columns.length!==c.value.length?!1:h.columns.every((y,g)=>Math.abs(y-c.value[g])<=1))),d=ve(()=>p.value?f.value:""),m=h=>s.get(h)||[100],v=h=>{if(l.value=h,!a.value)return;const y=m(h),g=a.value.children||[],b=Math.max(0,y.length-g.length),w=b>0?Array.from({length:b},()=>o()):[],x=y.map((k,D)=>{if(D<g.length)return n.value[g[D]].width=k,g[D];const T=w[D-g.length];return T.width=k,T.key});r.value&&(t.value[r.value].children=x),i()};return(h,y)=>(Y(),ae("div",Z4e,[$("div",J4e,[(Y(),ae(Pt,null,co(u,g=>$("div",{key:g.type,class:Di(["layout-option",{active:_(d)===g.type}]),onClick:b=>v(g.type)},[$("div",e3e,[(Y(!0),ae(Pt,null,co(g.columns,(b,w)=>(Y(),ae("div",{key:w,class:"column",style:er({width:b+"%"})},[$("span",t3e,ke(b),1)],4))),128))])],10,Q4e)),64))]),_(p)?$n("",!0):(Y(),ae("div",n3e,[$("div",r3e,[(Y(!0),ae(Pt,null,co(_(c),(g,b)=>(Y(),ae("div",{key:b,class:"column",style:er({width:g+"%"})},[$("span",o3e,ke(g),1)],4))),128))])]))]))}}),a3e=gt(i3e,[["__scopeId","data-v-8fe129c8"]]),u3e={class:"style-container"},s3e={class:"style-rows"},l3e={class:"style-label"},c3e={class:"style-value"},f3e=re({__name:"BaseContainer",props:{label:{type:String,default:""}},setup(e){return(t,n)=>(Y(),ae("div",u3e,[$("div",s3e,[$("div",l3e,ke(e.label),1),$("div",c3e,[br(t.$slots,"value",{},void 0,!0)])]),br(t.$slots,"options",{},void 0,!0)]))}}),Ln=gt(f3e,[["__scopeId","data-v-351aa9d1"]]),d3e=re({__name:"Head",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(e){const t=ft(e,"value");return(n,r)=>{const o=vl,i=So;return Y(),De(Ln,{label:"Heading Type"},{value:P(()=>[C(i,{value:t.value,"onUpdate:value":r[0]||(r[0]=a=>t.value=a)},{default:P(()=>[C(o,{value:"22px"},{default:P(()=>r[1]||(r[1]=[ye("H1")])),_:1,__:[1]}),C(o,{value:"20px"},{default:P(()=>r[2]||(r[2]=[ye("H2")])),_:1,__:[2]}),C(o,{value:"18px"},{default:P(()=>r[3]||(r[3]=[ye("H3")])),_:1,__:[3]}),C(o,{value:"16px"},{default:P(()=>r[4]||(r[4]=[ye("H4")])),_:1,__:[4]})]),_:1},8,["value"])]),_:1})}}}),p3e={class:"w-32px"},VV=re({__name:"Color",props:Dr({label:{default:""}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup(e){const t=ft(e,"value");return(n,r)=>{const o=dj;return Y(),De(Ln,{label:n.label},{value:P(()=>[$("div",p3e,[C(o,{value:t.value,"onUpdate:value":r[0]||(r[0]=i=>t.value=i),modes:["hex"]},{label:P(()=>r[1]||(r[1]=[$("span",null,null,-1)])),_:1},8,["value"])])]),_:1},8,["label"])}}}),h3e={class:"w-180px"},g3e=re({__name:"Width",props:{value:{default:""},valueModifiers:{}},emits:["update:value"],setup(e){const t=ft(e,"value"),n=ie(100);qo(()=>t.value,o=>{n.value=Number.parseFloat(o)},{immediate:!0});const r=o=>{t.value="".concat(o,"%")};return(o,i)=>{const a=pj;return Y(),De(Ln,{label:"Width"},{value:P(()=>[$("div",h3e,[C(a,{value:n.value,"onUpdate:value":[i[0]||(i[0]=u=>n.value=u),r],step:1},null,8,["value"])])]),_:1})}}}),v3e={class:"flex items-center h-32px"},m3e={key:0,class:"ml-8px whitespace-nowrap"},y3e=re({__name:"WidthAuto",props:{value:{default:""},valueModifiers:{}},emits:["update:value"],setup(e){const t=ft(e,"value"),n=ie(!0),r=ie(100);qo(()=>t.value,a=>{a==="auto"?n.value=!0:(n.value=!1,r.value=Number.parseFloat(a)),n.value||(r.value=Number.parseFloat(a))},{immediate:!0});const o=a=>{r.value=100,a?t.value="100%":t.value="".concat(r.value,"%")},i=a=>{t.value="".concat(a,"%")};return(a,u)=>{const s=ha,l=pj;return Y(),De(Ln,{label:"Width"},{value:P(()=>[u[2]||(u[2]=$("span",{class:"mr-12px"},"Auto On",-1)),C(s,{value:n.value,"onUpdate:value":[u[0]||(u[0]=c=>n.value=c),o]},null,8,["value"])]),options:P(()=>[$("div",v3e,[C(l,{value:r.value,"onUpdate:value":[u[1]||(u[1]=c=>r.value=c),i],step:1,disabled:n.value},null,8,["value","disabled"]),n.value?$n("",!0):(Y(),ae("span",m3e,ke(r.value)+"%",1))])]),_:1})}}}),cr=re({__name:"BaseNumber",props:Dr({unit:{type:String,default:"px"},step:{type:Number,default:1}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup(e){const t=ft(e,"value"),n=ie(0);qo(()=>t.value,o=>{n.value=o?Number.parseFloat(o):0},{immediate:!0});const r=o=>{t.value="".concat(o||0).concat(e.unit)};return(o,i)=>{const a=fj,u=UW,s=$W;return Y(),De(s,{class:"w-130px"},{default:P(()=>[C(a,{value:_(n),"onUpdate:value":[i[0]||(i[0]=l=>ze(n)?n.value=l:null),r],min:0,step:e.step,placeholder:""},null,8,["value","step"]),C(u,{class:"w-40px text-center"},{default:P(()=>[ye(ke(e.unit),1)]),_:1})]),_:1})}}}),b3e=re({__name:"WidthNumber",props:{value:{default:"500px"},valueModifiers:{}},emits:["update:value"],setup(e){const t=ft(e,"value");return(n,r)=>(Y(),De(Ln,{label:"Width"},{value:P(()=>[C(cr,{value:t.value,"onUpdate:value":r[0]||(r[0]=o=>t.value=o)},null,8,["value"])]),_:1}))}}),w3e={class:"w-100px"},_3e=re({__name:"FontWeight",props:Dr({label:{default:""}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup(e){const t=ft(e,"value"),n=[{label:"Normal",value:"normal"},{label:"Bold",value:"bold"}];return t.value||(t.value=n[0].value),(r,o)=>{const i=Kr;return Y(),De(Ln,{label:"Font Weight"},{value:P(()=>[$("div",w3e,[C(i,{value:t.value,"onUpdate:value":o[0]||(o[0]=a=>t.value=a),options:n},null,8,["value"])])]),_:1})}}}),x3e=re({__name:"FontSize",props:{value:{default:"14px"},valueModifiers:{}},emits:["update:value"],setup(e){const t=ft(e,"value");return(n,r)=>(Y(),De(Ln,{label:"Font Size"},{value:P(()=>[C(cr,{value:t.value,"onUpdate:value":r[0]||(r[0]=o=>t.value=o)},null,8,["value"])]),_:1}))}}),C3e=re({__name:"LineHeight",props:{value:{default:"120%"},valueModifiers:{}},emits:["update:value"],setup(e){const t=ft(e,"value");return(n,r)=>(Y(),De(Ln,{label:"Line Height"},{value:P(()=>[C(cr,{value:t.value,"onUpdate:value":r[0]||(r[0]=o=>t.value=o),unit:"%",step:10},null,8,["value"])]),_:1}))}}),S3e=re({__name:"LetterSpacing",props:{value:{default:"0px"},valueModifiers:{}},emits:["update:value"],setup(e){const t=ft(e,"value");return(n,r)=>(Y(),De(Ln,{label:"Letter Spacing"},{value:P(()=>[C(cr,{value:t.value,"onUpdate:value":r[0]||(r[0]=o=>t.value=o)},null,8,["value"])]),_:1}))}}),E3e=re({__name:"TextAlign",props:Dr({label:{default:""}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e){const t=ft(e,"value");return(n,r)=>{const o=vl,i=So;return Y(),De(Ln,{label:n.label||"Text Align"},{value:P(()=>[C(i,{value:t.value,"onUpdate:value":r[0]||(r[0]=a=>t.value=a)},{default:P(()=>[C(o,{value:"left"},{default:P(()=>r[1]||(r[1]=[ye("Left")])),_:1,__:[1]}),C(o,{value:"center"},{default:P(()=>r[2]||(r[2]=[ye("Center")])),_:1,__:[2]}),C(o,{value:"right"},{default:P(()=>r[3]||(r[3]=[ye("Right")])),_:1,__:[3]})]),_:1},8,["value"])]),_:1},8,["label"])}}}),D3e={class:"flex flex-col gap-8px"},k3e={class:"w-92px"},O3e={class:"w-32px"},wc=re({__name:"BaseBorder",props:{value:{default:()=>({width:"0",style:"solid",color:""})},valueModifiers:{}},emits:["update:value"],setup(e){const t=ft(e,"value"),n=[{label:"Solid",value:"solid"},{label:"Dotted",value:"dotted"},{label:"Dashed",value:"dashed"}];return(r,o)=>{const i=Kr,a=dj;return Y(),ae("div",D3e,[C(cr,{value:t.value.width,"onUpdate:value":o[0]||(o[0]=u=>t.value.width=u),placeholder:""},null,8,["value"]),$("div",k3e,[C(i,{value:t.value.style,"onUpdate:value":o[1]||(o[1]=u=>t.value.style=u),options:n,placeholder:""},null,8,["value"])]),$("div",O3e,[C(a,{value:t.value.color,"onUpdate:value":o[2]||(o[2]=u=>t.value.color=u),modes:["hex"]},{label:P(()=>o[3]||(o[3]=[$("span",null,null,-1)])),_:1},8,["value"])])])}}}),A3e=re({__name:"Line",props:{value:{default:()=>({width:"0",style:"solid",color:""})},valueModifiers:{}},emits:["update:value"],setup(e){const t=ft(e,"value");return(n,r)=>(Y(),De(Ln,{label:"Line"},{value:P(()=>[C(wc,{value:t.value,"onUpdate:value":r[0]||(r[0]=o=>t.value=o)},null,8,["value"])]),_:1}))}}),T3e={},B3e={class:"flex items-center h-32px"};function P3e(e,t){return Y(),ae("div",B3e,[br(e.$slots,"default")])}const pp=gt(T3e,[["render",P3e]]),D5=re({__name:"MoreOptions",props:{show:{type:Boolean,default:!1},topLabel:{default:"Top"},rightLabel:{default:"Right"},leftLabel:{default:"Left"},bottomLabel:{default:"Bottom"}},setup(e){return(t,n)=>{const r=lj,o=cj;return t.show?(Y(),De(o,{key:1,"x-gap":"8","y-gap":"8",cols:2},{default:P(()=>[C(r,null,{default:P(()=>[C(pp,null,{default:P(()=>[ye(ke(t.topLabel),1)]),_:1}),br(t.$slots,"top")]),_:3}),C(r,null,{default:P(()=>[C(pp,null,{default:P(()=>[ye(ke(t.rightLabel),1)]),_:1}),br(t.$slots,"right")]),_:3}),C(r,null,{default:P(()=>[C(pp,null,{default:P(()=>[ye(ke(t.leftLabel),1)]),_:1}),br(t.$slots,"left")]),_:3}),C(r,null,{default:P(()=>[C(pp,null,{default:P(()=>[ye(ke(t.bottomLabel),1)]),_:1}),br(t.$slots,"bottom")]),_:3})]),_:3})):(Y(),ae(Pt,{key:0},[C(pp,null,{default:P(()=>n[0]||(n[0]=[ye("All Sides")])),_:1,__:[0]}),br(t.$slots,"all")],64))}}}),F3e=re({__name:"Border",props:Dr({label:{default:""}},{value:{default:()=>({more:!1,all:{width:"0",style:"solid",color:""},top:{width:"0",style:"solid",color:""},left:{width:"0",style:"solid",color:""},right:{width:"0",style:"solid",color:""},bottom:{width:"0",style:"solid",color:""}})},valueModifiers:{}}),emits:["update:value"],setup(e){const t=ft(e,"value"),n=r=>{r?(t.value.top=t.value.all,t.value.right=t.value.all,t.value.bottom=t.value.all,t.value.left=t.value.all):t.value.all=t.value.top};return(r,o)=>{const i=ha;return Y(),De(Ln,{label:r.label||"Border"},{value:P(()=>[o[6]||(o[6]=$("span",{class:"mr-12px"},"More Options",-1)),C(i,{value:t.value.more,"onUpdate:value":[o[0]||(o[0]=a=>t.value.more=a),n]},null,8,["value"])]),options:P(()=>[C(D5,{show:t.value.more},{all:P(()=>[C(wc,{value:t.value.all,"onUpdate:value":o[1]||(o[1]=a=>t.value.all=a)},null,8,["value"])]),top:P(()=>[C(wc,{value:t.value.top,"onUpdate:value":o[2]||(o[2]=a=>t.value.top=a)},null,8,["value"])]),left:P(()=>[C(wc,{value:t.value.left,"onUpdate:value":o[3]||(o[3]=a=>t.value.left=a)},null,8,["value"])]),right:P(()=>[C(wc,{value:t.value.right,"onUpdate:value":o[4]||(o[4]=a=>t.value.right=a)},null,8,["value"])]),bottom:P(()=>[C(wc,{value:t.value.bottom,"onUpdate:value":o[5]||(o[5]=a=>t.value.bottom=a)},null,8,["value"])]),_:1},8,["show"])]),_:1},8,["label"])}}}),M3e=re({__name:"Padding",props:Dr({label:{default:""}},{value:{default:()=>({more:!1,all:"",top:"",left:"",right:"",bottom:""})},valueModifiers:{}}),emits:["update:value"],setup(e){const t=ft(e,"value"),n=r=>{r?(t.value.top=t.value.all,t.value.right=t.value.all,t.value.bottom=t.value.all,t.value.left=t.value.all):t.value.all=t.value.top};return(r,o)=>{const i=ha;return Y(),De(Ln,{label:r.label||"Padding"},{value:P(()=>[o[6]||(o[6]=$("span",{class:"mr-12px"},"More Options",-1)),C(i,{value:t.value.more,"onUpdate:value":[o[0]||(o[0]=a=>t.value.more=a),n]},null,8,["value"])]),options:P(()=>[C(D5,{show:t.value.more},{all:P(()=>[C(cr,{value:t.value.all,"onUpdate:value":o[1]||(o[1]=a=>t.value.all=a)},null,8,["value"])]),top:P(()=>[C(cr,{value:t.value.top,"onUpdate:value":o[2]||(o[2]=a=>t.value.top=a)},null,8,["value"])]),left:P(()=>[C(cr,{value:t.value.left,"onUpdate:value":o[3]||(o[3]=a=>t.value.left=a)},null,8,["value"])]),right:P(()=>[C(cr,{value:t.value.right,"onUpdate:value":o[4]||(o[4]=a=>t.value.right=a)},null,8,["value"])]),bottom:P(()=>[C(cr,{value:t.value.bottom,"onUpdate:value":o[5]||(o[5]=a=>t.value.bottom=a)},null,8,["value"])]),_:1},8,["show"])]),_:1},8,["label"])}}}),I3e=re({__name:"Rounded",props:{value:{default:()=>({more:!1,all:"",top:"",left:"",right:"",bottom:""})},valueModifiers:{}},emits:["update:value"],setup(e){const t=ft(e,"value"),n=r=>{r?(t.value.top=t.value.all,t.value.right=t.value.all,t.value.bottom=t.value.all,t.value.left=t.value.all):t.value.all=t.value.top};return(r,o)=>{const i=ha;return Y(),De(Ln,{label:"Rounded Border"},{value:P(()=>[o[6]||(o[6]=$("span",{class:"mr-12px"},"More Options",-1)),C(i,{value:t.value.more,"onUpdate:value":[o[0]||(o[0]=a=>t.value.more=a),n]},null,8,["value"])]),options:P(()=>[C(D5,{show:t.value.more,"top-label":"Top Left","left-label":"Bottom Left","right-label":"Top Right","bottom-label":"Bottom Right"},{all:P(()=>[C(cr,{value:t.value.all,"onUpdate:value":o[1]||(o[1]=a=>t.value.all=a)},null,8,["value"])]),top:P(()=>[C(cr,{value:t.value.top,"onUpdate:value":o[2]||(o[2]=a=>t.value.top=a)},null,8,["value"])]),left:P(()=>[C(cr,{value:t.value.left,"onUpdate:value":o[3]||(o[3]=a=>t.value.left=a)},null,8,["value"])]),right:P(()=>[C(cr,{value:t.value.right,"onUpdate:value":o[4]||(o[4]=a=>t.value.right=a)},null,8,["value"])]),bottom:P(()=>[C(cr,{value:t.value.bottom,"onUpdate:value":o[5]||(o[5]=a=>t.value.bottom=a)},null,8,["value"])]),_:1},8,["show"])]),_:1})}}}),j3e={class:"w-140px"},L3e=re({__name:"Layout",props:Dr({label:{default:""}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup(e){const t=ft(e,"value"),n=[{label:"Horizontal",value:"inline-block"},{label:"Vertical",value:"block"}];return t.value||(t.value=n[0].value),(r,o)=>{const i=Kr;return Y(),De(Ln,{label:"Layout"},{value:P(()=>[$("div",j3e,[C(i,{value:t.value,"onUpdate:value":o[0]||(o[0]=a=>t.value=a),options:n},null,8,["value"])])]),_:1})}}});function R3e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!tW(e)}function vn(e){return[re({setup(n,{slots:r}){return()=>C(N3e,{options:e},R3e(r)?r:{default:()=>[r]})}})]}const N3e=re({props:{value:{type:Object,default:()=>({})},options:{type:Array,default:()=>[]}},setup(e,{slots:t}){return()=>C(Pt,null,[e.options.map(n=>$3e(n,e.value,t))])}});function $3e(e,t,n){const{key:r,attrKey:o,label:i}=e,a=r||o;switch(o){case"color":case"backgroundColor":return C(VV,{value:t[a],"onUpdate:value":u=>t[a]=u,label:i},null);case"head":return C(d3e,{value:t[a],"onUpdate:value":u=>t[a]=u},null);case"padding":return C(M3e,{value:t[a],"onUpdate:value":u=>t[a]=u,label:i},null);case"border":return C(F3e,{value:t[a],"onUpdate:value":u=>t[a]=u,label:i},null);case"borderTop":return C(A3e,{value:t[a],"onUpdate:value":u=>t[a]=u},null);case"width":return C(g3e,{value:t[a],"onUpdate:value":u=>t[a]=u},null);case"widthAuto":return C(y3e,{value:t[a],"onUpdate:value":u=>t[a]=u},null);case"widthNumber":return C(b3e,{value:t[a],"onUpdate:value":u=>t[a]=u},null);case"fontWeight":return C(_3e,{value:t[a],"onUpdate:value":u=>t[a]=u},null);case"fontSize":return C(x3e,{value:t[a],"onUpdate:value":u=>t[a]=u},null);case"lineHeight":return C(C3e,{value:t[a],"onUpdate:value":u=>t[a]=u},null);case"letterSpacing":return C(S3e,{value:t[a],"onUpdate:value":u=>t[a]=u},null);case"textAlign":return C(E3e,{value:t[a],"onUpdate:value":u=>t[a]=u,label:i},null);case"borderRadius":return C(I3e,{value:t[a],"onUpdate:value":u=>t[a]=u},null);case"layout":return C(L3e,{value:t[a],"onUpdate:value":u=>t[a]=u},null);case"custom":return U3e(e,n)}}function U3e(e,t){var n;if(e.render)return C(Pt,null,[e.render()]);if(e.key)return(n=t[e.key])==null?void 0:n.call(t)}const z3e={class:"mb-8px"},H3e={class:"py-16px"},V3e=re({__name:"ColumnPropertiesPanel",setup(e){const{selectedBlockKey:t,columnsMap:n,cellMap:r,cellConfigMap:o,applyNewWidthColumnsInCell:i,delColumnsInCell:a}=$t(),{autoSaveFn:u}=Pr(),s=_n("tabsRef"),l=ve(()=>n.value[t.value]),c=ve(()=>l.value.children.map(y=>r.value[y])),f=ie(0),p=()=>{const y=[];c.value.forEach(T=>{y.push(T.width)});const g=100,b=Math.floor(g/(y.length+1)),w=y.reduce((T,A)=>T+A,0),x=w+b,D=(g-x)/w;y.push(b);for(let T=0;T<y.length-1;T++)y[T]=Math.floor(y[T]+y[T]*D);i(t.value,y),f.value=y.length-1,yr(()=>{var T;(T=s.value)==null||T.syncBarPosition()})},d=()=>{if(c.value.length<=1)return;const y=c.value.reduce((F,j)=>{const R=j.width;return{...F,[j.key]:R}},{}),g=c.value[f.value];delete y[g.key];let b=Object.values(y);const w=100,x=b.reduce((F,j)=>F+j,0),D=(w-x)/x;b=b.map(F=>Math.floor(F*(1+D)));const T=b.reduce((F,j)=>F+j,0),A=w-T;A!==0&&(b[b.length-1]+=A),a(t.value,g.key),i(t.value,b),f.value>=b.length&&(f.value=b.length-1),yr(()=>{var F;(F=s.value)==null||F.syncBarPosition()})},m=ve(()=>{var y;return((y=c.value[f.value])==null?void 0:y.key)||""}),v=ve({get(){return o.value[m.value].style},set(y){o.value[m.value].style=y,u()}}),[h]=vn([{attrKey:"backgroundColor",label:"Background Color"},{attrKey:"padding",label:"Padding"},{attrKey:"border",label:"Border"}]);return(y,g)=>{const b=Dn,w=gj,x=hj;return Y(),ae("div",null,[$("div",z3e,[C(b,{onClick:p},{default:P(()=>g[2]||(g[2]=[ye(" Add ")])),_:1,__:[2]}),C(b,{class:"ml-10px",disabled:_(c).length<=1,onClick:d},{default:P(()=>g[3]||(g[3]=[ye("Delete")])),_:1,__:[3]},8,["disabled"])]),C(x,{ref_key:"tabsRef",ref:s,value:_(f),"onUpdate:value":g[0]||(g[0]=k=>ze(f)?f.value=k:null),class:"mb-8px",type:"line"},{default:P(()=>[(Y(!0),ae(Pt,null,co(_(c),(k,D)=>(Y(),De(w,{key:k.key,name:D,tab:"Column ".concat(D+1)},null,8,["name","tab"]))),128))]),_:1},8,["value"]),$("div",H3e,[_(m)?(Y(),De(_(h),{key:0,value:_(v),"onUpdate:value":g[1]||(g[1]=k=>ze(v)?v.value=k:null)},null,8,["value"])):$n("",!0)])])}}}),W3e=gt(V3e,[["__scopeId","data-v-3229e000"]]),q3e={class:"py-8px"},G3e=re({__name:"RowPropertiesPanel",setup(e){const{selectedBlockKey:t,columnsConfigMap:n}=$t(),{autoSaveFn:r}=Pr(),o=ve({get(){return n.value[t.value].style},set(u){n.value[t.value].style=u,r()}}),i=ve({get(){return n.value[t.value].containerStyle},set(u){n.value[t.value].containerStyle=u,r()}}),[a]=vn([{attrKey:"backgroundColor",label:"Background Color"},{attrKey:"custom",render:()=>C(VV,{label:"Content Background Color",value:i.value.backgroundColor,"onUpdate:value":u=>{i.value.backgroundColor=u}},null)},{attrKey:"padding",label:"Padding"}]);return(u,s)=>(Y(),ae("div",q3e,[C(_(a),{value:_(o),"onUpdate:value":s[0]||(s[0]=l=>ze(o)?o.value=l:null)},null,8,["value"])]))}}),K3e=re({__name:"Columns",setup(e){return(t,n)=>{const r=Lu;return Y(),De(Ku,{"default-expanded-names":["1","2","3"]},{default:P(()=>[C(r,{title:"Columns",name:"1"},{default:P(()=>[C(a3e)]),_:1}),C(r,{title:"Column Properties",name:"2"},{default:P(()=>[C(W3e)]),_:1}),C(r,{title:"Row Properties",name:"3"},{default:P(()=>[C(G3e)]),_:1})]),_:1})}}}),X3e={class:"mt-12px"},Y3e={class:"mt-12px"},k5=re({__name:"Link",props:{value:{},valueModifiers:{},target:{},targetModifiers:{}},emits:["update:value","update:target"],setup(e){const t=ft(e,"value"),n=ft(e,"target"),r=ie(!1),o=i=>{i?t.value="__UNSUBSCRIBE_URL__":t.value=""};return(i,a)=>{const u=Tr,s=ha;return Y(),De(Ln,{label:"Link"},{options:P(()=>[$("div",null,[C(u,{value:t.value,"onUpdate:value":a[0]||(a[0]=l=>t.value=l),disabled:_(r)},null,8,["value","disabled"])]),$("div",X3e,[C(s,{value:n.value,"onUpdate:value":a[1]||(a[1]=l=>n.value=l),"checked-value":"_blank","unchecked-value":"_self"},null,8,["value"]),a[3]||(a[3]=$("span",{class:"ml-8px"},"Open link in new tab",-1))]),$("div",Y3e,[C(s,{value:_(r),"onUpdate:value":[a[2]||(a[2]=l=>ze(r)?r.value=l:null),o]},null,8,["value"]),a[4]||(a[4]=$("span",{class:"ml-8px"},"Unsubscribe",-1))])]),_:1})}}}),Z3e={class:"pb-10px"},J3e={class:"py-8px"},Q3e={class:"py-8px"},e8e=re({__name:"Button",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=$t(),{autoSaveFn:r}=Pr(),o=ve({get(){return n.value[t.value].attr},set(c){n.value[t.value].attr=c,r()}}),i=ve({get(){return n.value[t.value].style},set(c){n.value[t.value].style=c,r()}}),a=ve({get(){return n.value[t.value].containerStyle},set(c){n.value[t.value].containerStyle=c,r()}}),[u]=vn([{attrKey:"custom",render:()=>C(k5,{value:o.value.href,"onUpdate:value":c=>o.value.href=c,target:o.value.target,"onUpdate:target":c=>o.value.target=c},null)}]),[s]=vn([{attrKey:"backgroundColor",label:"Background Color"},{attrKey:"color",label:"Text Color"},{attrKey:"widthAuto",key:"width",label:"Width"},{attrKey:"fontWeight"},{attrKey:"fontSize"},{attrKey:"lineHeight"},{attrKey:"letterSpacing"},{attrKey:"padding"},{attrKey:"border"},{attrKey:"borderRadius"}]),[l]=vn([{attrKey:"textAlign"},{attrKey:"padding"}]);return(c,f)=>{const p=Lu;return Y(),De(Ku,{"default-expanded-names":["1","2","3"]},{default:P(()=>[C(p,{title:"Action",name:"1"},{default:P(()=>[$("div",Z3e,[C(_(u))])]),_:1}),C(p,{title:"Button Options",name:"2"},{default:P(()=>[$("div",J3e,[C(_(s),{value:_(i),"onUpdate:value":f[0]||(f[0]=d=>ze(i)?i.value=d:null)},null,8,["value"])])]),_:1}),C(p,{title:"Container",name:"3"},{default:P(()=>[$("div",Q3e,[C(_(l),{value:_(a),"onUpdate:value":f[1]||(f[1]=d=>ze(a)?a.value=d:null)},null,8,["value"])])]),_:1})]),_:1})}}}),t8e={class:"pb-10px"},n8e={class:"py-8px"},r8e={class:"py-8px"},o8e=re({__name:"Link",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=$t(),{autoSaveFn:r}=Pr(),o=ve({get(){return n.value[t.value].attr},set(c){n.value[t.value].attr=c,r()}}),i=ve({get(){return n.value[t.value].style},set(c){n.value[t.value].style=c,r()}}),a=ve({get(){return n.value[t.value].containerStyle},set(c){n.value[t.value].containerStyle=c,r()}}),[u]=vn([{attrKey:"custom",render:()=>C(k5,{value:o.value.href,"onUpdate:value":c=>o.value.href=c,target:o.value.target,"onUpdate:target":c=>o.value.target=c},null)}]),[s]=vn([{attrKey:"color",label:"Text Color"},{attrKey:"fontWeight"},{attrKey:"fontSize"},{attrKey:"lineHeight"},{attrKey:"letterSpacing"}]),[l]=vn([{attrKey:"textAlign"},{attrKey:"padding"}]);return(c,f)=>{const p=Lu;return Y(),De(Ku,{"default-expanded-names":["1","2","3"]},{default:P(()=>[C(p,{title:"Action",name:"1"},{default:P(()=>[$("div",t8e,[C(_(u))])]),_:1}),C(p,{title:"Link Options",name:"2"},{default:P(()=>[$("div",n8e,[C(_(s),{value:_(i),"onUpdate:value":f[0]||(f[0]=d=>ze(i)?i.value=d:null)},null,8,["value"])])]),_:1}),C(p,{title:"Container",name:"3"},{default:P(()=>[$("div",r8e,[C(_(l),{value:_(a),"onUpdate:value":f[1]||(f[1]=d=>ze(a)?a.value=d:null)},null,8,["value"])])]),_:1})]),_:1})}}}),i8e={class:"py-8px"},a8e={class:"py-8px"},u8e=re({__name:"Divider",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=$t(),{autoSaveFn:r}=Pr(),o=ve({get(){return n.value[t.value].style},set(s){n.value[t.value].style=s,r()}}),i=ve({get(){return n.value[t.value].containerStyle},set(s){n.value[t.value].containerStyle=s,r()}}),[a]=vn([{attrKey:"width"},{attrKey:"borderTop"}]),[u]=vn([{attrKey:"textAlign"},{attrKey:"padding"}]);return(s,l)=>{const c=Lu;return Y(),De(Ku,{"default-expanded-names":["1","2"]},{default:P(()=>[C(c,{title:"Line",name:"1"},{default:P(()=>[$("div",i8e,[C(_(a),{value:_(o),"onUpdate:value":l[0]||(l[0]=f=>ze(o)?o.value=f:null)},null,8,["value"])])]),_:1}),C(c,{title:"Container",name:"2"},{default:P(()=>[$("div",a8e,[C(_(u),{value:_(i),"onUpdate:value":l[1]||(l[1]=f=>ze(i)?i.value=f:null)},null,8,["value"])])]),_:1})]),_:1})}}}),s8e={class:"py-8px"},l8e={class:"py-8px"},c8e=re({__name:"Header",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=$t(),{autoSaveFn:r}=Pr(),o=ve({get(){return n.value[t.value].style},set(s){n.value[t.value].style=s,r()}}),i=ve({get(){return n.value[t.value].containerStyle},set(s){n.value[t.value].containerStyle=s,r()}}),[a]=vn([{attrKey:"head",key:"fontSize"},{attrKey:"fontWeight"},{attrKey:"fontSize"},{attrKey:"color",label:"Text Color"},{attrKey:"lineHeight"},{attrKey:"letterSpacing"}]),[u]=vn([{attrKey:"textAlign"},{attrKey:"padding"}]);return(s,l)=>{const c=Lu;return Y(),De(Ku,{"default-expanded-names":["1","2"]},{default:P(()=>[C(c,{title:"Header",name:"1"},{default:P(()=>[$("div",s8e,[C(_(a),{value:_(o),"onUpdate:value":l[0]||(l[0]=f=>ze(o)?o.value=f:null)},null,8,["value"])])]),_:1}),C(c,{title:"Container",name:"2"},{default:P(()=>[$("div",l8e,[C(_(u),{value:_(i),"onUpdate:value":l[1]||(l[1]=f=>ze(i)?i.value=f:null)},null,8,["value"])])]),_:1})]),_:1})}}}),f8e={class:"py-8px"},d8e={class:"py-8px"},p8e=re({__name:"Text",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=$t(),{autoSaveFn:r}=Pr(),o=ve({get(){return n.value[t.value].style},set(s){n.value[t.value].style=s,r()}}),i=ve({get(){return n.value[t.value].containerStyle},set(s){n.value[t.value].containerStyle=s,r()}}),[a]=vn([{attrKey:"fontWeight"},{attrKey:"fontSize"},{attrKey:"color",label:"Text Color"},{attrKey:"lineHeight"},{attrKey:"letterSpacing"}]),[u]=vn([{attrKey:"textAlign"},{attrKey:"padding"}]);return(s,l)=>{const c=Lu;return Y(),De(Ku,{"default-expanded-names":["1","2"]},{default:P(()=>[C(c,{title:"Text",name:"1"},{default:P(()=>[$("div",f8e,[C(_(a),{value:_(o),"onUpdate:value":l[0]||(l[0]=f=>ze(o)?o.value=f:null)},null,8,["value"])])]),_:1}),C(c,{title:"Container",name:"2"},{default:P(()=>[$("div",d8e,[C(_(u),{value:_(i),"onUpdate:value":l[1]||(l[1]=f=>ze(i)?i.value=f:null)},null,8,["value"])])]),_:1})]),_:1})}}}),h8e=re({__name:"Image",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(e){const t=ft(e,"value");return(n,r)=>{const o=Tr;return Y(),De(Ln,{label:"Image URL"},{options:P(()=>[C(o,{value:t.value,"onUpdate:value":r[0]||(r[0]=i=>t.value=i)},null,8,["value"])]),_:1})}}}),g8e=re({__name:"Title",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(e){const t=ft(e,"value");return(n,r)=>{const o=Tr;return Y(),De(Ln,{label:"Alternate Text"},{options:P(()=>[C(o,{value:t.value,"onUpdate:value":r[0]||(r[0]=i=>t.value=i)},null,8,["value"])]),_:1})}}}),v8e={class:"pb-10px"},m8e={class:"pb-10px"},y8e={class:"py-8px"},b8e=re({__name:"Image",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=$t(),{autoSaveFn:r}=Pr(),o=ve({get(){return n.value[t.value].attr},set(c){n.value[t.value].attr=c,r()}}),i=ve({get(){return n.value[t.value].style},set(c){n.value[t.value].style=c,r()}}),a=ve({get(){return n.value[t.value].containerStyle},set(c){n.value[t.value].containerStyle=c,r()}}),[u]=vn([{attrKey:"custom",render:()=>C(h8e,{value:o.value.src,"onUpdate:value":c=>o.value.src=c},null)},{attrKey:"widthAuto",key:"width"},{attrKey:"custom",render:()=>C(g8e,{value:o.value.alt,"onUpdate:value":c=>o.value.alt=c},null)}]),[s]=vn([{attrKey:"custom",render:()=>C(k5,{value:o.value.href,"onUpdate:value":c=>o.value.href=c,target:o.value.target,"onUpdate:target":c=>o.value.target=c},null)}]),[l]=vn([{attrKey:"textAlign"},{attrKey:"padding"}]);return(c,f)=>{const p=Lu;return Y(),De(Ku,{"default-expanded-names":["1","2","3"]},{default:P(()=>[C(p,{title:"Image",name:"1"},{default:P(()=>[$("div",v8e,[C(_(u),{value:_(i),"onUpdate:value":f[0]||(f[0]=d=>ze(i)?i.value=d:null)},null,8,["value"])])]),_:1}),C(p,{title:"Action",name:"2"},{default:P(()=>[$("div",m8e,[C(_(s),{value:_(i),"onUpdate:value":f[1]||(f[1]=d=>ze(i)?i.value=d:null)},null,8,["value"])])]),_:1}),C(p,{title:"Container",name:"3"},{default:P(()=>[$("div",y8e,[C(_(l),{value:_(a),"onUpdate:value":f[2]||(f[2]=d=>ze(a)?a.value=d:null)},null,8,["value"])])]),_:1})]),_:1})}}}),w8e={class:"flex-1"},_8e={class:"flex-1"},x8e=re({__name:"Item",props:Dr({id:{},index:{},moveLink:{type:Function},findLink:{type:Function}},{label:{},labelModifiers:{},href:{},hrefModifiers:{}}),emits:Dr(["del"],["update:label","update:href"]),setup(e,{emit:t}){const n=e,r=t,o=ft(e,"label"),i=ft(e,"href"),a=()=>{r("del")},[u,s,l]=e0({type:"MenuLink",item:()=>({id:n.id,index:n.index}),collect:d=>({isDragging:d.isDragging()}),end:(d,m)=>{const{id:v,index:h}=d;m.didDrop()||n.moveLink(v,h)}}),[,c]=p4(()=>({accept:"MenuLink",hover({id:d}){if(d!==n.id){const{index:m}=n.findLink(n.id);n.moveLink(d,m)}}})),f=d=>{d&&l(c(d))},p=ve(()=>u.value.isDragging?0:1);return(d,m)=>{const v=Tr,h=f1;return Y(),ae("li",{ref:f,class:"link-items",style:er({opacity:_(p)})},[$("div",w8e,[C(v,{value:o.value,"onUpdate:value":m[0]||(m[0]=y=>o.value=y)},null,8,["value"])]),$("div",_8e,[C(v,{value:i.value,"onUpdate:value":m[1]||(m[1]=y=>i.value=y)},null,8,["value"])]),$("div",{class:"w-auto cursor-pointer",onClick:a},[C(h,{name:"drag-remove",size:"13"})]),$("div",{ref:_(s),class:"w-auto cursor-grab"},[C(h,{name:"drag-sort",size:"16"})],512)],4)}}}),C8e=gt(x8e,[["__scopeId","data-v-e4eac8d4"]]),S8e={class:"w-full"},E8e={class:"link-group"},D8e=re({__name:"List",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=$t(),{autoSaveFn:r}=Pr(),o=ve({get(){return n.value[t.value].attr.links||[]},set(l){n.value[t.value].attr.links=l,r()}}),i=l=>{o.value.splice(l,1)},a=()=>{o.value.push({id:Yi(6),label:"",href:""})},u=l=>{const c=o.value.filter(f=>"".concat(f.id)===l)[0];return{link:c,index:o.value.indexOf(c)}},s=(l,c)=>{const{link:f,index:p}=u(l);o.value.splice(p,1),o.value.splice(c,0,f)};return(l,c)=>{const f=Dn;return Y(),ae("div",S8e,[$("ul",E8e,[(Y(!0),ae(Pt,null,co(_(o),(p,d)=>(Y(),De(C8e,{label:p.label,"onUpdate:label":m=>p.label=m,href:p.href,"onUpdate:href":m=>p.href=m,key:p.id,id:p.id,index:d,"find-link":u,"move-link":s,onDel:m=>i(d)},null,8,["label","onUpdate:label","href","onUpdate:href","id","index","onDel"]))),128))]),C(f,{block:"",class:"mt-12px",onClick:a},{default:P(()=>c[0]||(c[0]=[ye("Add")])),_:1,__:[0]})])}}}),k8e=gt(D8e,[["__scopeId","data-v-f35858c9"]]),O8e={class:"py-8px"},A8e={class:"py-8px"},T8e=re({__name:"Menu",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=$t(),{autoSaveFn:r}=Pr(),o=ve({get(){return n.value[t.value].style},set(s){n.value[t.value].style=s,r()}}),i=ve({get(){return n.value[t.value].containerStyle},set(s){n.value[t.value].containerStyle=s,r()}}),[a]=vn([{attrKey:"fontWeight"},{attrKey:"fontSize"},{attrKey:"letterSpacing"},{attrKey:"color",label:"Text Color"},{attrKey:"layout",key:"display"},{attrKey:"padding"}]),[u]=vn([{attrKey:"textAlign"},{attrKey:"padding"}]);return(s,l)=>{const c=Lu;return Y(),De(Ku,{"default-expanded-names":["1","2","3"]},{default:P(()=>[C(c,{title:"Menu Items",name:"1"},{default:P(()=>[C(k8e)]),_:1}),C(c,{title:"Style",name:"2"},{default:P(()=>[$("div",O8e,[C(_(a),{value:_(o),"onUpdate:value":l[0]||(l[0]=f=>ze(o)?o.value=f:null)},null,8,["value"])])]),_:1}),C(c,{title:"Container",name:"3"},{default:P(()=>[$("div",A8e,[C(_(u),{value:_(i),"onUpdate:value":l[1]||(l[1]=f=>ze(i)?i.value=f:null)},null,8,["value"])])]),_:1})]),_:1})}}}),B8e={},P8e={class:"h-full pb-100px flex items-center justify-center"};function F8e(e,t){const n=zW;return Y(),ae("div",P8e,[C(n,{size:"large",description:"Please select a component"})])}const M8e=gt(B8e,[["render",F8e]]),I8e=re({__name:"Content",setup(e){const{selectedBlockType:t,selectedBlockKey:n}=$t(),r=ve(()=>{switch(t.value){case"columns":return K3e;case"button":return e8e;case"link":return o8e;case"divider":return u8e;case"header":return c8e;case"text":return p8e;case"image":return b8e;case"menu":return T8e;default:return M8e}});return(o,i)=>(Y(),De(QD(_(r)),{key:_(n)}))}}),j8e={class:"p-20px"},L8e=re({__name:"Page",setup(e){const{pageConfig:t}=$t(),n=ve({get(){return t.value.style},set(o){t.value.style=o}}),[r]=vn([{attrKey:"backgroundColor",label:"Background Color"},{attrKey:"widthNumber",label:"Width",key:"width"}]);return(o,i)=>(Y(),ae("div",j8e,[C(_(r),{value:_(n),"onUpdate:value":i[0]||(i[0]=a=>ze(n)?n.value=a:null)},null,8,["value"])]))}}),R8e=re({__name:"ConfigTabs",setup(e){const t=ie("config"),n=[{name:"config",label:"Content",component:I8e},{name:"page",label:"Page",component:L8e}];return(r,o)=>{const i=gj,a=hj;return Y(),De(a,{value:_(t),"onUpdate:value":o[0]||(o[0]=u=>ze(t)?t.value=u:null),type:"line"},{default:P(()=>[(Y(),ae(Pt,null,co(n,u=>C(i,{key:u.name,name:u.name,tab:u.label},{default:P(()=>[(Y(),De(QD(u.component)))]),_:2},1032,["name","tab"])),64))]),_:1},8,["value"])}}}),N8e=gt(R8e,[["__scopeId","data-v-83e94fc5"]]),$8e={class:"editor-sidebar"},U8e=re({__name:"EditorSidebar",setup(e){return(t,n)=>(Y(),ae("div",$8e,[C(N8e)]))}}),z8e=gt(U8e,[["__scopeId","data-v-584e5790"]]),H8e={class:"email-editor"},V8e=re({__name:"index",props:{save:{}},setup(e,{expose:t}){const n=e,{setData:r,getData:o,resetData:i,setSaveFn:a}=Pr(),{html:u,generateHtml:s}=i4();return n.save&&a(n.save),h1(()=>{i()}),t({setEmailData:l=>{r(l)},getEmailData:()=>o(),getEmailHTML:()=>(s(),u.value)}),(l,c)=>(Y(),De(UY,null,{default:P(()=>[$("div",H8e,[C(K4e),C(R4e),C(z8e)])]),_:1}))}}),W8e=gt(V8e,[["__scopeId","data-v-a2ccb84d"]]),q8e={class:"mb-20px"},G8e={class:"w-320px"},K8e={class:"flex items-center"},X8e=re({__name:"form",props:Dr({data:{default:null},refresh:{}},{show:{type:Boolean,default:!1},showModifiers:{}}),emits:["update:show"],setup(e){const t=e,n=p1(t,"data"),r=ft(e,"show"),o=_n("editorRef"),i=ie(1),a=ie(""),u=()=>{r.value=!1},s=ie(!1),l=async(p=!1)=>{var d,m;if(n.value)try{p||(s.value=!0),await ij({id:n.value.id,type:i.value,temp_name:a.value,render:((d=o.value)==null?void 0:d.getEmailData())||"",content:((m=o.value)==null?void 0:m.getEmailHTML())||""},p)}finally{p||(s.value=!1)}},c=async()=>{await l(!0),u(),t.refresh()},f=async()=>{var p;if(s.value=!0,!!n.value)try{a.value=n.value.name;const{message:d}=await e4({id:n.value.id});pt(d)&&((p=o.value)==null||p.setEmailData(d.render))}finally{s.value=!1}};return Mi(()=>{f()}),(p,d)=>{const m=vl,v=So,h=dr,y=Tr,g=HW,b=Dn;return Y(),ae("div",null,[d[5]||(d[5]=$("div",{class:"mb-14px font-bold text-18px text-font2 leading-28px"},"Template Editor",-1)),C(g,null,{default:P(()=>[$n("",!0),$("div",q8e,[C(W8e,{ref_key:"editorRef",ref:o,save:l},null,512)]),C(h,{label:"Template name"},{default:P(()=>[$("div",G8e,[C(y,{value:_(a),"onUpdate:value":d[1]||(d[1]=w=>ze(a)?a.value=w:null)},null,8,["value"])])]),_:1})]),_:1}),$("div",K8e,[C(b,{onClick:u},{default:P(()=>d[4]||(d[4]=[ye("Back")])),_:1,__:[4]}),C(b,{type:"primary",loading:_(s),disabled:_(s),class:"ml-12px",onClick:c},{default:P(()=>[ye(ke(p.$t("Public.Btn.Confirm")),1)]),_:1},8,["loading","disabled"])])])}}}),Y8e='{"version":"2.0","pageConfig":{"meta":{"version":"2.0","createdAt":"","updatedAt":""},"style":{"backgroundColor":"#ffffff","width":"500px"}},"blockMap":{"9d79c91fd764":{"key":"9d79c91fd764","type":"divider","name":"Divider"},"b37fb9a4cfad":{"key":"b37fb9a4cfad","type":"link","name":"Link"}},"blockConfigMap":{"9d79c91fd764":{"key":"9d79c91fd764","name":"Divider","type":"divider","meta":{"version":"2.0","createdAt":"2025-03-25 11:16:12","updatedAt":"2025-03-25 11:16:12"},"attr":{},"style":{"display":"inline-block","width":"100%","height":"1px","lineHeight":"1px","verticalAlign":"middle","borderTop":{"color":"#bbbbbb","width":"1px","style":"solid"}},"containerStyle":{"textAlign":"center","padding":{"more":false,"all":"10px","top":"0","left":"0","right":"0","bottom":"0"}}},"b37fb9a4cfad":{"key":"b37fb9a4cfad","name":"Link","type":"link","meta":{"version":"2.0","createdAt":"2025-03-25 11:16:18","updatedAt":"2025-03-25 11:16:18"},"attr":{"href":"__UNSUBSCRIBE_URL__","target":"_blank","content":"<p><u>Unsubscribe</u></p>"},"style":{"display":"inline-block","color":"#A2A2A2FF","fontWeight":"normal","fontSize":"12px","lineHeight":"120%","letterSpacing":"0px"},"containerStyle":{"textAlign":"center","padding":{"more":false,"all":"10px","top":"0","left":"0","right":"0","bottom":"0"}}}},"cellMap":{"29b965b1ee6b":{"key":"29b965b1ee6b","width":100,"name":"Cell","type":"cell","children":[]},"91fef345521e":{"key":"91fef345521e","width":100,"name":"Cell","type":"cell","children":["9d79c91fd764","b37fb9a4cfad"]}},"cellConfigMap":{"29b965b1ee6b":{"key":"29b965b1ee6b","name":"Cell","type":"cell","meta":{"version":"2.0","createdAt":"2025-03-25 11:16:05","updatedAt":"2025-03-25 11:16:05"},"attr":{},"style":{"backgroundColor":"","padding":{"more":false,"all":"0","top":"0","left":"0","right":"0","bottom":"0"},"border":{"more":false,"all":{"color":"","width":"0","style":"solid"},"top":{"color":"","width":"0","style":"solid"},"right":{"color":"","width":"0","style":"solid"},"bottom":{"color":"","width":"0","style":"solid"},"left":{"color":"","width":"0","style":"solid"}}},"containerStyle":{}},"91fef345521e":{"key":"91fef345521e","name":"Cell","type":"cell","meta":{"version":"2.0","createdAt":"2025-03-25 11:16:08","updatedAt":"2025-03-25 11:16:08"},"attr":{},"style":{"backgroundColor":"","padding":{"more":false,"all":"0","top":"0","left":"0","right":"0","bottom":"0"},"border":{"more":false,"all":{"color":"","width":"0","style":"solid"},"top":{"color":"","width":"0","style":"solid"},"right":{"color":"","width":"0","style":"solid"},"bottom":{"color":"","width":"0","style":"solid"},"left":{"color":"","width":"0","style":"solid"}}},"containerStyle":{}}},"columnsConfigMap":{"75faa7472294":{"key":"75faa7472294","name":"Columns","type":"columns","meta":{"version":"2.0","createdAt":"2025-03-25 11:16:05","updatedAt":"2025-03-25 11:16:05"},"attr":{},"style":{"backgroundColor":"","padding":{"more":false,"all":"0","top":"0","left":"0","right":"0","bottom":"0"}},"containerStyle":{"backgroundColor":""}},"73fc2135ce3e":{"key":"73fc2135ce3e","name":"Columns","type":"columns","meta":{"version":"2.0","createdAt":"2025-03-25 11:16:08","updatedAt":"2025-03-25 11:16:08"},"attr":{},"style":{"backgroundColor":"","padding":{"more":false,"all":"0","top":"0","left":"0","right":"0","bottom":"0"}},"containerStyle":{"backgroundColor":""}}},"columnsMap":{"75faa7472294":{"key":"75faa7472294","type":"columns","name":"Columns","children":["29b965b1ee6b"]},"73fc2135ce3e":{"key":"73fc2135ce3e","type":"columns","name":"Columns","children":["91fef345521e"]}},"columnsSource":["75faa7472294","73fc2135ce3e"]}',Z8e='<table style="background-color: rgb(255, 255, 255); width: 100%;"><tr><td><div style="padding: 0px; width: 500px; margin: 0px auto;"><table style="width: 100%;"><tr><td style="width: 100%; padding: 0px;"></td></tr></table></div></td></tr><tr><td><div style="padding: 0px; width: 500px; margin: 0px auto;"><table style="width: 100%;"><tr><td style="width: 100%; padding: 0px;"><div style="text-align: center; padding: 10px;"><div style="display: inline-block; width: 100%; height: 1px; line-height: 1px; vertical-align: middle; border-top: 1px solid rgb(187, 187, 187);"></div></div><div style="text-align: center; padding: 10px;"><a href="__UNSUBSCRIBE_URL__" target="_blank" style="display: inline-block; color: rgb(162, 162, 162); font-weight: normal; font-size: 12px; line-height: 120%; letter-spacing: 0px;"><p><u>Unsubscribe</u></p></a></div></td></tr></table></div></td></tr></table>',J8e={class:"p-24px"},Q8e={class:"w-280px"},e6e={class:"ml-24px"},t6e=re({__name:"index",props:{refresh:{},showForm:{}},setup(e,{expose:t}){const n=e,r=_n("formRef"),o=tt({type:1,temp_name:"template_".concat(vo(new Date,"yyyyMMddHHmmss")),upload_path:"",content:"",render:""}),i={temp_name:{required:!0,trigger:["blur","input"],message:"Template name is required"},upload_path:{validator:()=>o.type===0&&!o.upload_path?new Error("Please upload HTML file"):!0}},a=()=>{const l="/www/server/panel/data/mail/in_bulk/content";g1({path:l,size:5,uploadData:{accept:["html"].map(c=>".".concat(c)).join(","),multiple:!1},onUploadSuccess:c=>{o.upload_path="".concat(l,"/").concat(c[0].name)}})},u=()=>o.type===0?{temp_name:o.temp_name,type:o.type,upload_path:o.upload_path}:{temp_name:o.temp_name,type:o.type,content:Z8e,render:Y8e};return t({onConfirm:async()=>{var c;await((c=r.value)==null?void 0:c.validate());const{message:l}=await fW(u());n.refresh(),o.type===1&&pt(l)&&n.showForm(l.data)}}),(l,c)=>{const f=vl,p=So,d=dr,m=Tr,v=Dn,h=Br;return Y(),ae("div",J8e,[C(h,{ref_key:"formRef",ref:r,model:_(o),rules:i},{default:P(()=>[C(d,{label:"Template mode"},{default:P(()=>[C(p,{value:_(o).type,"onUpdate:value":c[0]||(c[0]=y=>_(o).type=y)},{default:P(()=>[C(f,{value:1},{default:P(()=>c[2]||(c[2]=[ye("Drag")])),_:1,__:[2]}),C(f,{value:0},{default:P(()=>c[3]||(c[3]=[ye("Upload HTML")])),_:1,__:[3]})]),_:1},8,["value"])]),_:1}),C(d,{label:"Template name",path:"temp_name"},{default:P(()=>[$("div",Q8e,[C(m,{value:_(o).temp_name,"onUpdate:value":c[1]||(c[1]=y=>_(o).temp_name=y)},null,8,["value"])])]),_:1}),Go(C(d,{label:"HTML File",path:"upload_path"},{default:P(()=>[C(v,{onClick:a},{default:P(()=>[ye(ke(l.$t("Public.Btn.Import")),1)]),_:1}),$("div",e6e,[$("span",null,ke(l.$t("Mail.Mass.index_43")),1),$("span",{class:Di(_(o).upload_path?"text-default":"text-error")},ke(_(o).upload_path||l.$t("Mail.Mass.index_44")),3)])]),_:1},512),[[Ko,_(o).type===0]])]),_:1},8,["model"])])}}}),n6e=re({__name:"preview",props:{row:{}},setup(e){const n=p1(e,"row"),r=ie(""),o=ie(null),i=()=>{if(o.value){const u=o.value.contentDocument||o.value.contentWindow.document;u.open(),u.write(r.value),u.close()}};Mi(async()=>{await a(),i()});const a=async()=>{const{message:u}=await e4({id:n.value.id});pt(u)&&(r.value=u.content)};return a(),(u,s)=>(Y(),ae("iframe",{ref_key:"iframeRef",ref:o,width:"800",height:"600",style:{border:"none"}},null,512))}}),r6e={class:"relative"},o6e=re({__name:"index",setup(e){const{t}=Hn(),n=tt({show:!1,data:{refresh:()=>{g()},showForm:b=>{o.value=b,r.value=!0}}}),r=ie(!1),o=ie(null),i=async()=>{n.show=!0},a=()=>{g1({path:"/tmp/upload",size:1,confirmText:t("Public.Btn.Import"),uploadData:{accept:["zip"].map(b=>".".concat(b)).join(","),multiple:!1},onUploadSuccess:async b=>{const w=b[0];await gW({path:"/tmp/upload/".concat(w.name)}),g()}})},{keys:u,table:s,columns:l,setLoading:c}=Qo([{type:"selection",width:40},{key:"name",title:"Name"},{key:"type",title:"Mode",render:b=>b.type===0?"Upload HTML":"Drag"},{key:"created",title:"Add Time",render:b=>vo(b.created)},Ru({width:360,options:b=>[{label:"Create task",onClick:()=>{YG(b.id)}},{label:"Duplicate",onClick:()=>{p(b)}},{label:t("Public.Btn.Export"),onClick:()=>{d(b)}},{label:"Preview",onClick:()=>{m(b)}},{label:t("Public.Btn.Edit"),disabled:b.type===0,onClick:()=>{v(b)}},{label:t("Public.Btn.Del"),onClick:()=>{h(b)}}]})]),f=[{key:"import",label:"Batch Export",onBatch:async b=>{const{message:w}=await F5({ids:b.map(x=>x.id).join(",")});pt(w)&&zc(w.result)}}],p=async b=>{await dW({id:"".concat(b.id)}),g()},d=async b=>{const{message:w}=await F5({ids:"".concat(b.id)});pt(w)&&zc(w.result)},m=b=>{No({title:"Preview [".concat(b.name,"]"),width:800,data:{row:b},component:n6e})},v=b=>{o.value=b,r.value=!0},h=b=>{lo({title:"Delete Template [".concat(b.name,"]"),content:"Are you sure you want to delete this template?",onConfirm:async()=>{await pW({id:b.id}),g()}})},y=tt({p:1,size:10}),g=async()=>{try{c(!0);const{message:b}=await hW(An(y));pt(b)&&(s.data=Un(b.data)?b.data:[],s.total=b.total)}finally{c(!1)}};return g(),(b,w)=>{const x=Dn,k=Jo,D=v1,T=ml,A=ga,F=gl;return Y(),ae("div",r6e,[Go(C(A,null,{toolsLeft:P(()=>[C(x,{type:"primary",onClick:i},{default:P(()=>w[6]||(w[6]=[ye("Add Template")])),_:1,__:[6]}),C(x,{onClick:a},{default:P(()=>[ye(ke(b.$t("Public.Btn.Import")),1)]),_:1})]),table:P(()=>[C(k,{"checked-row-keys":_(u),"onUpdate:checkedRowKeys":w[0]||(w[0]=j=>ze(u)?u.value=j:null),loading:_(s).loading,data:_(s).data,columns:_(l)},null,8,["checked-row-keys","loading","data","columns"])]),pageLeft:P(()=>[C(D,{"checked-row-keys":_(u),"onUpdate:checkedRowKeys":w[1]||(w[1]=j=>ze(u)?u.value=j:null),data:_(s).data,options:f},null,8,["checked-row-keys","data"])]),pageRight:P(()=>[C(T,{page:_(y).p,"onUpdate:page":w[2]||(w[2]=j=>_(y).p=j),"page-size":_(y).size,"onUpdate:pageSize":w[3]||(w[3]=j=>_(y).size=j),"item-count":_(s).total,onRefresh:g},null,8,["page","page-size","item-count"])]),_:1},512),[[Ko,!_(r)]]),C(F,{show:_(n).show,"onUpdate:show":w[4]||(w[4]=j=>_(n).show=j),title:"Add Template",data:_(n).data,width:500,footer:!0,component:t6e},null,8,["show","data"]),_(r)?(Y(),De(X8e,{key:0,show:_(r),"onUpdate:show":w[5]||(w[5]=j=>ze(r)?r.value=j:null),data:_(o),refresh:g},null,8,["show","data"])):$n("",!0)])}}}),WV=(e={})=>d1.post("/plugin?action=a&name=mail_sys&s=get_mail_type_list",e),i6e=e=>d1.post("/plugin?action=a&name=mail_sys&s=add_mail_type",e,{requestOptions:{loading:ZD.global.t("Mail.Api.index_22"),successMessage:!0}}),a6e=e=>d1.post("/plugin?action=a&name=mail_sys&s=del_mail_type_list",e,{requestOptions:{loading:ZD.global.t("Mail.Api.index_37"),successMessage:!0}}),u6e=e=>d1.post("/plugin?action=a&name=mail_sys&s=edit_mail_type",e,{requestOptions:{loading:ZD.global.t("Mail.Api.index_42"),successMessage:!0}}),qV=re({__name:"index",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(e,{expose:t}){const n=ft(e,"value"),r=ie([]),{loading:o,setLoading:i}=Eo(),a=async()=>{try{i(!0);const{message:u}=await WV();Un(u)&&(r.value=u.map(s=>({label:s.mail_type,value:s.id})))}finally{i(!1)}};return a(),t({getType:a}),(u,s)=>{const l=Kr;return Y(),De(l,nW(u.$attrs,{value:n.value,"onUpdate:value":s[0]||(s[0]=c=>n.value=c),options:_(r),loading:_(o)}),null,16,["value","options","loading"])}}}),s6e={class:"px-20px pt-24px pb-8px"},l6e={class:"w-300px"},c6e={class:"w-300px"},f6e=re({__name:"index",props:{row:{},onRefresh:{}},setup(e,{expose:t}){const{t:n}=Hn(),r=e,{row:o,onRefresh:i}=r;yr(()=>{u.etypes=o.mail_type.map(f=>vj(Object.keys(f)[0]))});const a=ie(null),u=tt({etypes:[]}),s={etypes:{trigger:"change",validator:()=>u.etypes.length?!0:new Error(n("Mail.Unsubscribe.index_16"))}},l=()=>({etypes:u.etypes.join(","),recipients:o.recipient,active:o.active});return t({onConfirm:async()=>{var f;await((f=a.value)==null?void 0:f.validate()),await vW(l()),i==null||i()}}),(f,p)=>{const d=Tr,m=dr,v=Br;return Y(),ae("div",s6e,[C(v,{ref_key:"formRef",ref:a,model:_(u),rules:s},{default:P(()=>[C(m,{label:f.$t("Config.Alarm.index_43")},{default:P(()=>[$("div",l6e,[C(d,{value:_(o).recipient,"onUpdate:value":p[0]||(p[0]=h=>_(o).recipient=h),readonly:!0},null,8,["value"])])]),_:1},8,["label"]),C(m,{label:"Groups",path:"etypes"},{default:P(()=>[$("div",c6e,[C(qV,{ref:"typeSelect",value:_(u).etypes,"onUpdate:value":p[1]||(p[1]=h=>_(u).etypes=h),multiple:"",filterable:""},null,8,["value"])])]),_:1})]),_:1},8,["model"])])}}}),d6e={class:"p-20px"},p6e={class:"w-320px"},h6e={class:"flex-1"},g6e={class:"flex items-center h-32px mb-8px"},v6e={class:"w-320px"},m6e=re({__name:"index",props:{active:{},group:{},refresh:{}},setup(e,{expose:t}){const{t:n}=Hn(),r=e,{refresh:o}=r,i=ie(null),a=tt({etypes:r.group!==-1?[r.group]:[],type:1,file:"",content:""}),u={etypes:{trigger:"change",validator:()=>a.etypes.length?!0:new Error(n("Mail.Unsubscribe.index_16"))},data:{validator:()=>a.type===1&&!a.content?new Error("Please enter the content"):a.type===0&&!a.file?new Error("Please upload the file"):!0}},s=()=>{zc("/www/server/panel/plugin/mail_sys/data/example_recipients.txt")};return t({onConfirm:async()=>{var c;await((c=i.value)==null?void 0:c.validate()),a.type===1&&await mW({etypes:a.etypes.join(","),recipient_content:a.content}),a.type===0&&await yW({etypes:a.etypes.join(","),file:a.file}),o==null||o()}}),(c,f)=>{const p=dr,d=ng,m=So,v=iq,h=Br,y=Qh,g=n4;return Y(),ae("div",d6e,[C(h,{ref_key:"formRef",ref:i,model:_(a),rules:u},{default:P(()=>[C(p,{label:"Groups",path:"etypes"},{default:P(()=>[$("div",p6e,[C(qV,{ref:"typeSelect",value:_(a).etypes,"onUpdate:value":f[0]||(f[0]=b=>_(a).etypes=b),multiple:"",filterable:""},null,8,["value"])])]),_:1}),C(p,{label:"Data",path:"data"},{default:P(()=>[$("div",h6e,[$("div",g6e,[C(m,{value:_(a).type,"onUpdate:value":f[1]||(f[1]=b=>_(a).type=b)},{default:P(()=>[C(d,{value:1},{default:P(()=>f[4]||(f[4]=[ye("Paste data")])),_:1,__:[4]}),C(d,{value:0},{default:P(()=>f[5]||(f[5]=[ye("Upload file")])),_:1,__:[5]})]),_:1},8,["value"])]),Go($("div",v6e,[C(v,{value:_(a).content,"onUpdate:value":f[2]||(f[2]=b=>_(a).content=b),rows:6,placeholder:"Please paste in the data"},null,8,["value"])],512),[[Ko,_(a).type===1]]),Go($("div",null,[C(bj,{value:_(a).file,"onUpdate:value":f[3]||(f[3]=b=>_(a).file=b),path:"/www/server/panel/data/mail/in_bulk/recipient",accept:["txt","json"]},null,8,["value"])],512),[[Ko,_(a).type===0]])])]),_:1})]),_:1},8,["model"]),C(g,{class:"mt-8px ml-24px"},{default:P(()=>[$("li",null,[ye(ke(c.$t("Mail.Mass.index_74"))+" ",1),C(y,{target:"_blank",onClick:s},{default:P(()=>f[6]||(f[6]=[ye("Download the template")])),_:1,__:[6]})])]),_:1})])}}}),Xg=ie([]),O5=async()=>{const{message:e}=await WV();Xg.value=Un(e)?e:[]},y6e=()=>{Xg.value=[]},b6e={class:"p-20px"},w6e={class:"flex-1"},_6e={class:"mt-12px"},x6e={class:"px-20px pt-24px pb-8px"},C6e={class:"w-150px"},S6e=re({__name:"set",setup(e){const{t}=Hn(),n=ie(""),{table:r,columns:o,setLoading:i}=Qo([{key:"mail_type",title:"Group Name"},Ru({width:120,options:v=>[{label:t("Public.Btn.Edit"),disabled:v.id===0,onClick:()=>{u(v)}},{label:t("Public.Btn.Delete"),disabled:v.id===0,onClick:()=>{s(v)}}]})]),a=async()=>{const v=n.value.trim();if(v===""){Hc.error("Please enter group name");return}await i6e({mail_type:v}),l(),n.value=""},u=v=>{c.title="Edit Group",p.id=v.id,p.mail_type=v.mail_type,c.show=!0},s=v=>{lo({title:"Delete Group [".concat(v.mail_type,"]"),content:"Are you sure you want to delete this group?",onConfirm:async()=>{await a6e({ids:"".concat(v.id)}),l()}})},l=async()=>{try{i(!0),await O5(),r.data=Xg.value}finally{i(!1)}},c=Jm(),f=ie(null),p=tt({id:-1,mail_type:""}),d={mail_type:{required:!0,message:"Please enter group name",trigger:["blur","change"]}},m=async()=>{var v;await((v=f.value)==null?void 0:v.validate()),await u6e(An(p)),await l()};return l(),(v,h)=>{const y=Tr,g=Dn,b=VW,w=Jo,x=dr,k=Br,D=gl;return Y(),ae("div",b6e,[C(b,null,{default:P(()=>[$("div",w6e,[C(y,{value:_(n),"onUpdate:value":h[0]||(h[0]=T=>ze(n)?n.value=T:null),placeholder:"Please enter group name"},null,8,["value"])]),$("div",null,[C(g,{type:"primary",onClick:a},{default:P(()=>[ye(ke(v.$t("Public.Btn.Add")),1)]),_:1})])]),_:1}),$("div",_6e,[C(w,{"max-height":300,loading:_(r).loading,data:_(r).data,columns:_(o)},null,8,["loading","data","columns"])]),C(D,{show:_(c).show,"onUpdate:show":h[2]||(h[2]=T=>_(c).show=T),title:_(c).title,width:350,footer:!0,onConfirm:m},{default:P(()=>[$("div",x6e,[C(k,{ref_key:"formRef",ref:f,model:_(p),rules:d},{default:P(()=>[C(x,{label:"Group Name",path:"mail_type"},{default:P(()=>[$("div",C6e,[C(y,{value:_(p).mail_type,"onUpdate:value":h[1]||(h[1]=T=>_(p).mail_type=T),placeholder:""},null,8,["value"])])]),_:1})]),_:1},8,["model"])])]),_:1},8,["show","title"])])}}}),E6e={class:"w-200px"},D6e=re({__name:"index",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(e){const{t}=Hn(),n=ft(e,"value"),r=ve(()=>{const l=Xg.value.map(c=>({label:c.mail_type,value:c.id}));return l.unshift({label:t("Public.All"),value:-1}),l}),o=({option:l})=>"Group: ".concat(l.label),i=()=>{No({title:"Group Management",width:360,component:S6e})},{loading:a,setLoading:u}=Eo();return(async()=>{try{u(!0),await O5()}finally{u(!1)}})(),wf(()=>{y6e()}),(l,c)=>{const f=Dn,p=Kr;return Y(),ae("div",E6e,[C(p,{value:n.value,"onUpdate:value":c[0]||(c[0]=d=>n.value=d),loading:_(a),options:_(r),renderTag:o},{action:P(()=>[C(f,{block:"",onClick:i},{default:P(()=>c[1]||(c[1]=[ye("Group Management")])),_:1,__:[1]})]),_:1},8,["value","loading","options"])])}}}),k6e={class:"px-20px pt-24px pb-8px"},O6e={class:"w-240px"},A6e=re({__name:"batch",props:{rows:{}},emits:["refresh"],setup(e,{expose:t,emit:n}){const r=e,o=n,{t:i}=Hn(),{rows:a}=r,u=_n("formRef"),s=tt({type:null}),l={type:{trigger:"change",validator:()=>s.type===null?new Error(i("Mail.Unsubscribe.index_16")):!0}},c=ve(()=>Xg.value.map(h=>({label:h.mail_type,value:h.id}))),{loading:f,setLoading:p}=Eo();(async()=>{try{p(!0),await O5()}finally{p(!1)}})();const m=()=>({etypes:"".concat(s.type||0),recipients:a.map(h=>h.recipient).join(","),active:a[0].active});return t({onConfirm:async()=>{var h;await((h=u.value)==null?void 0:h.validate()),await bW(m()),o("refresh")}}),(h,y)=>{const g=Kr,b=dr,w=Br;return Y(),ae("div",k6e,[C(w,{ref_key:"formRef",ref:u,model:_(s),rules:l},{default:P(()=>[C(b,{label:"Groups",path:"type"},{default:P(()=>[$("div",O6e,[C(g,{value:_(s).type,"onUpdate:value":y[0]||(y[0]=x=>_(s).type=x),loading:_(f),options:_(c),multiple:"",filterable:""},null,8,["value","loading","options"])])]),_:1})]),_:1},8,["model"])])}}}),T6e={class:"text-center fw-bold text-18px color-font2"},B6e={class:"w-96% h-200px mx-auto"},P6e=re({__name:"index",props:{active:{default:0}},setup(e){const n=p1(e,"active"),r=Ro("--chart-tooltip-bg-color"),o=Ro("--color-border"),i=(f=[])=>[{data:f}],a=(f=[])=>[{name:"Count",type:"line",data:f,itemStyle:{color:"#20a53a"},smooth:!0,showSymbol:!1,sampling:"average",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:"rgba(32, 164, 58, 0.4)"},{offset:.7,color:"rgba(32, 164, 58, 0)"}]}}}],u=eg({tooltip:{trigger:"axis",order:"seriesDesc",backgroundColor:r.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},axisPointer:{type:"shadow"}},grid:{top:"16%",left:"2%",right:"2%",bottom:"4%",containLabel:!0},xAxis:i(),yAxis:{type:"value",splitLine:{lineStyle:{color:o.value}}},series:a()}),{loading:s,setLoading:l}=Eo(),c=async()=>{try{l(!0);const{message:f}=await wW({active:n.value});if(Un(f)){const p=f.map(m=>m.month),d=f.map(m=>m.count);u.xAxis=i(p),u.series=a(d)}}finally{l(!1)}};return c(),qo(()=>n.value,()=>{c()}),(f,p)=>{const d=tg;return Y(),De(d,{class:"mb-16px",show:_(s)},{default:P(()=>[$("div",T6e,ke(_(n)?f.$t("Mail.Mass.index_71"):f.$t("Mail.Mass.index_72"))+" "+ke(f.$t("Mail.Mass.index_73")),1),$("div",B6e,[C(rg,{height:200,option:_(u)},null,8,["option"])])]),_:1},8,["show"])}}}),F6e=re({__name:"index",setup(e,{expose:t}){const{t:n}=Hn(),r=tt({p:1,size:10,active:1,keyword:""}),o=()=>{No({title:n("Mail.Mass.index_75"),width:540,minHeight:170,footer:!0,data:{active:r.active,group:Va.value,refresh:()=>{d()}},component:m6e})},i=m=>{r.active=m,r.p=1,d()},a=()=>{r.p=1,d()},{keys:u,table:s,columns:l,setLoading:c}=Qo([{type:"selection",width:40},{key:"recipient",title:n("Mail.Unsubscribe.index_1"),ellipsis:{tooltip:!0}},{key:"mail_type",title:"Group Name",render:m=>m.mail_type.map(v=>Object.values(v)[0]).join(", ")},{key:"created",title:n("Mail.Unsubscribe.index_19"),width:"12%",minWidth:140,render:m=>vo(m.created)},Ru({width:250,options:m=>[{label:n("Mail.Mass.index_76"),onClick:async()=>{No({title:n("Mail.Mass.index_76"),width:500,footer:!0,data:{row:m,onRefresh:()=>{d()}},component:f6e})}},{label:m.active?n("Mail.Mass.index_72"):n("Mail.Mass.index_71"),show:!1,onClick:async()=>{lo({title:"".concat(m.active?n("Mail.Mass.index_72"):n("Mail.Mass.index_71")," [").concat(m.recipient,"]"),content:n("Mail.Mass.index_77",[m.active?n("Mail.Mass.index_72"):n("Mail.Mass.index_71")]),onConfirm:async()=>{await _W({recipient:m.recipient,active:m.active===0?1:0}),d()}})}},{label:n("Public.Btn.Del"),onClick:async()=>{lo({title:"".concat(n("Public.Btn.Del")," [").concat(m.recipient,"]"),content:n("Mail.Mass.index_78",[m.active?n("Mail.Mass.index_71"):n("Mail.Mass.index_72")]),onConfirm:async()=>{await M5({mails:"".concat(m.recipient),active:m.active}),d()}})}}]})]),f=[{key:"del",label:n("Public.Batch.Del"),onBatch:m=>{lo({title:n("Public.Batch.Del"),content:n("Site.Batch.index_11"),onConfirm:async()=>{await M5({mails:m.map(v=>v.recipient).join("\n"),active:r.active}),d()}})}},{key:"category",label:"Batch set group",onBatch:m=>{No({title:"Batch set group",width:440,footer:!0,data:{rows:m,onRefresh:()=>{d()}},component:A6e})}}],p=()=>({...Va.value===-1?{}:{etype:Va.value},search:r.keyword,p:r.p,size:r.size,active:r.active}),d=async()=>{try{c(!0);const{message:m}=await xW(p());pt(m)&&(s.data=m.data,s.total=m.total)}finally{u.value=[],c(!1)}};return Mi(()=>{d()}),wf(()=>{Va.value=-1}),t({init:d}),(m,v)=>{const h=Dn,y=vl,g=So,b=r4,w=Jo,x=v1,k=ml,D=ga,T=t4;return Y(),De(T,null,{default:P(()=>[C(P6e,{active:_(r).active},null,8,["active"]),C(D,null,{toolsLeft:P(()=>[C(h,{type:"primary",onClick:o},{default:P(()=>[ye(ke(m.$t("Public.Btn.Import")),1)]),_:1})]),toolsRight:P(()=>[C(g,{value:_(r).active,"onUpdate:value":v[0]||(v[0]=A=>_(r).active=A),onUpdateValue:i},{default:P(()=>[C(y,{label:m.$t("Mail.Mass.index_71"),value:1},null,8,["label"]),C(y,{label:m.$t("Mail.Mass.index_72"),value:0},null,8,["label"])]),_:1},8,["value"]),C(D6e,{value:_(Va),"onUpdate:value":[v[1]||(v[1]=A=>ze(Va)?Va.value=A:null),d]},null,8,["value"]),C(b,{value:_(r).keyword,"onUpdate:value":v[2]||(v[2]=A=>_(r).keyword=A),width:240,placeholder:m.$t("Mail.Unsubscribe.index_5"),onSearch:a},null,8,["value","placeholder"])]),table:P(()=>[C(w,{"checked-row-keys":_(u),"onUpdate:checkedRowKeys":v[3]||(v[3]=A=>ze(u)?u.value=A:null),"row-key":"id",loading:_(s).loading,data:_(s).data,columns:_(l)},null,8,["checked-row-keys","loading","data","columns"])]),pageLeft:P(()=>[C(x,{"checked-row-keys":_(u),"onUpdate:checkedRowKeys":v[4]||(v[4]=A=>ze(u)?u.value=A:null),"row-key":"id",data:_(s).data,options:f},null,8,["checked-row-keys","data"])]),pageRight:P(()=>[C(k,{page:_(r).p,"onUpdate:page":v[5]||(v[5]=A=>_(r).p=A),"page-size":_(r).size,"onUpdate:pageSize":v[6]||(v[6]=A=>_(r).size=A),"item-count":_(s).total,"store-key":"mail-unsubscribe",onRefresh:d},null,8,["page","page-size","item-count"])]),_:1})]),_:1})}}}),M6e={class:"p-20px"},I6e={class:"mt-12px"},j6e={class:"mt-12px"},L6e={class:"w-300px"},R6e={class:"w-300px"},N6e={class:"ml-32px"},$6e=re({__name:"AddGroup",props:{refresh:{}},setup(e,{expose:t}){const n=e,r=_n("formRef"),o=tt({type:1,input_name:"",select_name:null,file_path:""}),i={name:{trigger:["blur","input","change"],validator:()=>o.type===1&&!o.input_name?new Error("Please enter the group name"):o.type===0&&!o.select_name?new Error("Please select the group name"):!0},file_path:{message:"Please upload file",trigger:["change"],validator:()=>o.type===0&&!o.file_path?new Error("Please upload file"):!0}},a=ie([]),u=()=>{const c="/www/server/panel/data/mail/in_bulk/recipient";g1({path:c,size:5,uploadData:{accept:["txt"].map(f=>".".concat(f)).join(","),multiple:!1},onUploadSuccess:f=>{o.file_path="".concat(c,"/").concat(f[0].name)}})};return(async()=>{const{message:c}=await aj();Un(c)&&(a.value=c.map(f=>({label:f.mail_type,value:f.mail_type})))})(),t({onConfirm:async()=>{var c;await((c=r.value)==null?void 0:c.validate()),await CW({is_new:o.type,group_name:o.type===0?o.select_name||"":o.input_name,file_path:o.file_path}),n.refresh()}}),(c,f)=>{const p=ng,d=So,m=dr,v=Tr,h=Kr,y=Dn,g=Br,b=n4;return Y(),ae("div",M6e,[C(g,{ref_key:"formRef",ref:r,model:_(o),rules:i},{default:P(()=>[C(m,{label:" "},{default:P(()=>[C(d,{value:_(o).type,"onUpdate:value":f[0]||(f[0]=w=>_(o).type=w)},{default:P(()=>[$("div",null,[C(p,{value:1},{default:P(()=>f[3]||(f[3]=[ye("Create a new group and import")])),_:1,__:[3]})]),$("div",I6e,[C(p,{value:0},{default:P(()=>f[4]||(f[4]=[ye("Import into existing group")])),_:1,__:[4]})]),$("div",j6e,[C(p,{value:2},{default:P(()=>f[5]||(f[5]=[ye("Only create a new group")])),_:1,__:[5]})])]),_:1},8,["value"])]),_:1}),C(m,{label:"Group name",path:"name"},{default:P(()=>[Go($("div",L6e,[C(v,{value:_(o).input_name,"onUpdate:value":f[1]||(f[1]=w=>_(o).input_name=w)},null,8,["value"])],512),[[Ko,_(o).type===1||_(o).type===2]]),Go($("div",R6e,[C(h,{value:_(o).select_name,"onUpdate:value":f[2]||(f[2]=w=>_(o).select_name=w),options:_(a)},null,8,["value","options"])],512),[[Ko,_(o).type===0]])]),_:1}),_(o).type!==2?(Y(),De(m,{key:0,label:"File",path:"file_path"},{default:P(()=>[C(y,{onClick:u},{default:P(()=>[ye(ke(c.$t("Public.Btn.Import")),1)]),_:1}),$("div",N6e,[$("span",null,ke(c.$t("Mail.Mass.index_43")),1),$("span",{class:Di(_(o).file_path?"text-default":"text-error")},ke(_(o).file_path||c.$t("Mail.Mass.index_44")),3)])]),_:1})):$n("",!0)]),_:1},8,["model"]),C(b,{class:"ml-20px mt-8px"},{default:P(()=>f[6]||(f[6]=[$("li",null,"Currently, Only group files exported from YakPanel are supported for import.",-1)])),_:1,__:[6]})])}}}),U6e={class:"p-20px pb-32px"},z6e={class:"flex items-center h-32px"},H6e={class:"mt-8px"},V6e=re({__name:"BatchExport",props:{rows:{default:()=>[]}},setup(e,{expose:t}){const n=e,r=tt({type:0});return t({onConfirm:async()=>{const{message:i}=await SW({is_split:r.type,ids:n.rows.map(a=>a.id).join(",")});pt(i)&&zc(i.result)}}),(i,a)=>{const u=ng,s=So,l=dr,c=Br;return Y(),ae("div",U6e,[C(c,null,{default:P(()=>[C(l,{label:"Export method","show-feedback":!1},{default:P(()=>[C(s,{value:_(r).type,"onUpdate:value":a[0]||(a[0]=f=>_(r).type=f)},{default:P(()=>[$("div",z6e,[C(u,{value:0},{default:P(()=>a[1]||(a[1]=[ye(" Export each group to a separate file ")])),_:1,__:[1]})]),$("div",H6e,[C(u,{value:1},{default:P(()=>a[2]||(a[2]=[ye(" Export multiple groups into a single file ")])),_:1,__:[2]})])]),_:1},8,["value"])]),_:1})]),_:1})])}}}),W6e={class:"px-20px pt-24px pb-8px"},q6e={class:"w-240px"},G6e=re({__name:"BatchMerge",props:{rows:{default:()=>[]},refresh:{}},setup(e,{expose:t}){const n=e,r=tt({target_group:n.rows[0].id}),o=ie([]);return o.value=n.rows.map(u=>({label:u.mail_type,value:u.id})),t({onConfirm:async()=>{await EW({source_groups:n.rows.map(u=>u.id).join(","),target_group:r.target_group}),n.refresh()}}),(u,s)=>{const l=Kr,c=dr,f=Br;return Y(),ae("div",W6e,[C(f,null,{default:P(()=>[C(c,{label:"Merge to"},{default:P(()=>[$("div",q6e,[C(l,{value:_(r).target_group,"onUpdate:value":s[0]||(s[0]=p=>_(r).target_group=p),options:_(o)},null,8,["value","options"])])]),_:1})]),_:1})])}}}),K6e={class:"p-20px pt-24px pb-8px"},X6e={class:"w-200px"},Y6e=re({__name:"RenameGroup",props:{row:{},isEdit:{type:Boolean},refresh:{}},setup(e,{expose:t}){const n=e,{row:r,isEdit:o,refresh:i}=n,a=ie(null),u=tt({mail_type:r?r.mail_type:""}),s={mail_type:{required:!0,trigger:"blur",message:"Please enter group name"}};return t({onConfirm:async()=>{var c;await((c=a.value)==null?void 0:c.validate()),o&&r?await DW({...An(u),id:r.id}):await kW(An(u)),i==null||i()}}),(c,f)=>{const p=Tr,d=dr,m=Br;return Y(),ae("div",K6e,[C(m,{ref_key:"formRef",ref:a,model:_(u),rules:s},{default:P(()=>[C(d,{label:"Group Name",path:"mail_type"},{default:P(()=>[$("div",X6e,[C(p,{value:_(u).mail_type,"onUpdate:value":f[0]||(f[0]=v=>_(u).mail_type=v),placeholder:"Please enter group name"},null,8,["value"])])]),_:1})]),_:1},8,["model"])])}}}),Z6e=re({__name:"index",setup(e,{expose:t}){const{t:n}=Hn(),r=()=>{b()},o=tt({show:!1,title:"Add Group",data:{refresh:r}}),i=()=>{o.title="Add Group",o.show=!0},a=tt({p:1,size:10,type:-1,keyword:""}),{keys:u,table:s,columns:l,setLoading:c}=Qo([{type:"selection",width:40},{key:"mail_type",title:"Group Name",render:w=>C("a",{class:"bt-link",href:"javascript:;",onClick:()=>{ZG(w.id)}},[w.mail_type])},{key:"subscribers",title:n("Mail.Mass.index_71"),align:"center"},{key:"unsubscribers",title:n("Mail.Mass.index_72"),align:"center"},{key:"created",title:n("Mail.Unsubscribe.index_19"),render:w=>vo(w.created)},Ru({width:200,options:w=>[{label:n("Mail.Mass.index_83"),show:!1,onClick:()=>{aq(w.subscribe_url)}},{label:n("Docker.Container.index_15"),onClick:()=>{y(w)}},{label:n("Public.Btn.Del"),onClick:()=>{lo({title:n("Public.Btn.Del"),content:n("Mail.Mass.index_85",[w.mail_type]),onConfirm:async()=>{await I5({ids:w.id}),b()}})}}]})]),f=[{key:"del",type:"confirm",label:n("Public.Batch.Del"),confirm:{title:n("Public.Batch.Del"),desc:n("Site.Batch.index_11"),api:w=>I5({ids:w.id},!1),done:()=>{b()},columns:[{key:"mail_type",title:"Groups",ellipsis:{tooltip:{width:"trigger"}}}]}},{key:"export",label:"Batch export",onBatch:w=>{d(w)}},{key:"merge",label:"Batch merge",onBatch:w=>{v(w)}}],p=tt({show:!1,title:"Export Group",data:{rows:[]}}),d=w=>{p.data.rows=w,p.show=!0},m=tt({show:!1,title:"Merge Group",data:{rows:[],refresh:r}}),v=w=>{m.data.rows=w,m.show=!0},h=tt({show:!1,title:"Edit Group",data:{row:null,isEdit:!1,refresh:r}}),y=w=>{h.data.row=w,h.data.isEdit=!0,h.show=!0},g=()=>({search:a.keyword,p:a.p,size:a.size}),b=async()=>{try{c(!0);const{message:w}=await OW(g());pt(w)&&(s.data=w.data,s.total=w.total)}finally{u.value=[],c(!1)}};return Mi(()=>{b()}),t({init:b}),(w,x)=>{const k=Dn,D=r4,T=Jo,A=v1,F=ml,j=ga,R=gl;return Y(),ae("div",null,[C(j,null,{toolsLeft:P(()=>[C(k,{type:"primary",onClick:i},{default:P(()=>x[9]||(x[9]=[ye("Add Group")])),_:1,__:[9]})]),toolsRight:P(()=>[C(D,{value:_(a).keyword,"onUpdate:value":x[0]||(x[0]=U=>_(a).keyword=U),width:240,placeholder:w.$t("Config.Alarm.index_67"),onSearch:b},null,8,["value","placeholder"])]),table:P(()=>[C(T,{"checked-row-keys":_(u),"onUpdate:checkedRowKeys":x[1]||(x[1]=U=>ze(u)?u.value=U:null),"row-key":"id",loading:_(s).loading,data:_(s).data,columns:_(l)},null,8,["checked-row-keys","loading","data","columns"])]),pageLeft:P(()=>[C(A,{"checked-row-keys":_(u),"onUpdate:checkedRowKeys":x[2]||(x[2]=U=>ze(u)?u.value=U:null),"row-key":"id",data:_(s).data,options:f},null,8,["checked-row-keys","data"])]),pageRight:P(()=>[C(F,{page:_(a).p,"onUpdate:page":x[3]||(x[3]=U=>_(a).p=U),"page-size":_(a).size,"onUpdate:pageSize":x[4]||(x[4]=U=>_(a).size=U),"item-count":_(s).total,onRefresh:b},null,8,["page","page-size","item-count"])]),_:1}),C(R,{show:_(o).show,"onUpdate:show":x[5]||(x[5]=U=>_(o).show=U),title:_(o).title,width:530,data:_(o).data,footer:!0,component:$6e},null,8,["show","title","data"]),C(R,{show:_(h).show,"onUpdate:show":x[6]||(x[6]=U=>_(h).show=U),title:_(h).title,width:400,data:_(h).data,footer:!0,component:Y6e},null,8,["show","title","data"]),C(R,{show:_(p).show,"onUpdate:show":x[7]||(x[7]=U=>_(p).show=U),title:_(p).title,width:440,data:_(p).data,footer:!0,component:V6e},null,8,["show","title","data"]),C(R,{show:_(m).show,"onUpdate:show":x[8]||(x[8]=U=>_(m).show=U),title:_(m).title,width:440,data:_(m).data,footer:!0,component:G6e},null,8,["show","title","data"])])}}}),J6e={class:"px-20px py-24px"},Q6e={class:"w-300px"},e5e={class:"h-32px flex items-center"},t5e={class:"h-32px flex items-center"},n5e={class:"h-32px flex items-center"},r5e=re({__name:"Scan",props:{refresh:{type:Function}},setup(e,{expose:t}){const n=_n("formRef"),r=tt({etype:null,oper:1}),o={etype:{trigger:"change",validator:()=>r.etype?!0:new Error("Please select group")}},i=ie([]);return(async()=>{const{message:s}=await aj();Un(s)&&(i.value=s.map(l=>({label:l.mail_type,value:l.id})))})(),t({onConfirm:async()=>{var s;await((s=n.value)==null?void 0:s.validate()),await AW({etype:r.etype||0,oper:r.oper}),setTimeout(()=>{var l;(l=e.refresh)==null||l.call(e)},1e3)}}),(s,l)=>{const c=Kr,f=dr,p=ng,d=So,m=Br;return Y(),ae("div",J6e,[C(m,{ref_key:"formRef",ref:n,form:_(r),rules:o,"label-width":"150"},{default:P(()=>[C(f,{label:"Group",path:"etype"},{default:P(()=>[$("div",Q6e,[C(c,{value:_(r).etype,"onUpdate:value":l[0]||(l[0]=v=>_(r).etype=v),options:_(i)},null,8,["value","options"])])]),_:1}),C(f,{label:"Method","show-feedback":!1},{default:P(()=>[C(d,{value:_(r).oper,"onUpdate:value":l[1]||(l[1]=v=>_(r).oper=v),options:_(i)},{default:P(()=>[$("div",e5e,[C(p,{value:1},{default:P(()=>l[2]||(l[2]=[ye("no-operation")])),_:1,__:[2]})]),$("div",t5e,[C(p,{value:2},{default:P(()=>l[3]||(l[3]=[ye("Added to the exception prevention table")])),_:1,__:[3]})]),$("div",n5e,[C(p,{value:3},{default:P(()=>l[4]||(l[4]=[ye("The abnormal mailbox is deleted from the group")])),_:1,__:[4]})])]),_:1},8,["value","options"])]),_:1})]),_:1},8,["form"])])}}}),o5e={class:"p-20px"},i5e={class:"h-400px"},a5e=3,u5e=re({__name:"ScanLogs",setup(e){const{loading:t,setLoading:n}=Eo(),r=ie("None"),o=ie(null),i=ie(!1),a=ie(0),u=async()=>{s(!0)},s=async(d=!1)=>{try{d&&n(!0);const{message:m}=await yj({path:"/www/server/panel/plugin/mail_sys/data/check_email_valid.txt"});pt(m)?(r.value=m.data?m.data:"None",a.value=0,r.value.includes("Check finished")||r.value.includes("扫描完成")?p():i.value&&c()):l()}finally{d&&n(!1)}},l=()=>{a.value++,a.value>=a5e?p():i.value&&c()},c=()=>{i.value&&(o.value!==null&&clearTimeout(o.value),o.value=window.setTimeout(()=>{s(!1)},1e3))},f=()=>{i.value||(i.value=!0,a.value=0,c())},p=()=>{o.value!==null&&(clearTimeout(o.value),o.value=null),i.value=!1};return h1(()=>{p()}),Mi(()=>{s(!0),f()}),(d,m)=>{const v=Dn,h=mj;return Y(),ae("div",o5e,[C(v,{class:"mb-8px",type:"primary",onClick:u},{default:P(()=>[ye(ke(d.$t("Public.Btn.Refresh")),1)]),_:1}),$("div",i5e,[C(h,{loading:_(t),log:_(r)},null,8,["loading","log"])])])}}}),s5e={class:"ml-8px"},l5e=re({__name:"index",setup(e,{expose:t}){const{t:n}=Hn(),r=ie(!1),o=async T=>{await ZI({source:362}),await rj({operation:T?1:0})},i=async()=>{const{message:T}=await oj();pt(T)&&(r.value=T.abnormal_mail_check_switch)},a=tt({p:1,size:10,status:"bounced",search:""}),u=ie([]),s=tt({show:!1,data:{refresh:()=>{f()}}}),l=()=>{s.show=!0},c=tt({show:!1}),f=()=>{c.show=!0},{keys:p,table:d,columns:m,setLoading:v}=Qo([{type:"selection",width:40},{key:"recipient",title:n("Mail.Unsubscribe.index_1")},{key:"task_name",title:n("Mail.Mass.index_23"),render:T=>"".concat(T.task_name," (").concat(vo(T.task_time),")")},{key:"status",title:n("Ftp.Table.index_3")},{key:"state",title:n("Config.Safe.index_156"),render:T=>T.state||T.count>=3?n("Mail.Mass.index_95"):n("Mail.Mass.index_96")},{key:"created",title:n("Mail.Unsubscribe.index_19"),render:T=>vo(T.created)},Ru({width:200,options:T=>[{label:n("Public.Btn.Del"),onClick:async()=>{lo({title:n("Public.Btn.Del"),content:n("Mail.Mass.index_85",[T.recipient]),onConfirm:async()=>{await j5({ids:T.id}),b()}})}}]})]),h=[{key:"del",type:"confirm",label:n("Public.Batch.Del"),confirm:{title:n("Public.Batch.Del"),desc:n("Site.Batch.index_11"),api:T=>j5({ids:T.id},!1),done:()=>{b()},columns:[{key:"recipient",title:n("Mail.Unsubscribe.index_1"),ellipsis:{tooltip:{width:"trigger"}}}]}}],y=()=>{a.p=1,b()},g=()=>{lo({title:n("Public.Btn.Clear"),content:n("Mail.Mass.index_94"),onConfirm:async()=>{await BW({status:a.status}),b()}})},b=async()=>{try{v(!0);const{message:T}=await TW(An(a));pt(T)&&(d.data=T.data,d.total=T.total)}finally{p.value=[],v(!1)}},{loading:w,setLoading:x}=Eo(),k=async()=>{try{x(!0);const{message:T}=await PW();Un(T)&&(u.value=T.map(A=>({label:A.status,value:A.status})),T.length>0&&(a.status=T[0].status))}finally{x(!1)}},D=async()=>{await k(),b()};return D(),i(),t({init:D}),(T,A)=>{const F=Dn,j=ha,R=Kr,U=r4,H=Jo,G=v1,X=ml,oe=ga,se=gl,L=t4;return Y(),De(L,null,{default:P(()=>[C(oe,null,{toolsLeft:P(()=>[C(F,{type:"primary",onClick:l},{default:P(()=>A[9]||(A[9]=[ye("Scan Invalid Domains")])),_:1,__:[9]}),C(F,{onClick:f},{default:P(()=>A[10]||(A[10]=[ye("Scan Logs")])),_:1,__:[10]}),C(F,{onClick:g},{default:P(()=>[ye(ke(T.$t("Public.Btn.Clear")),1)]),_:1}),$("div",s5e,[A[11]||(A[11]=$("span",{class:"mr-12px"},"Auto block failed emails",-1)),C(j,{value:_(r),"onUpdate:value":[A[0]||(A[0]=B=>ze(r)?r.value=B:null),o]},null,8,["value"])])]),toolsRight:P(()=>[C(R,{class:"w-200px",loading:_(w),value:_(a).status,"onUpdate:value":[A[1]||(A[1]=B=>_(a).status=B),y],options:_(u)},null,8,["loading","value","options"]),C(U,{value:_(a).search,"onUpdate:value":A[2]||(A[2]=B=>_(a).search=B),width:240,placeholder:T.$t("Config.Alarm.index_67"),onSearch:b},null,8,["value","placeholder"])]),table:P(()=>[C(H,{"checked-row-keys":_(p),"onUpdate:checkedRowKeys":A[3]||(A[3]=B=>ze(p)?p.value=B:null),"row-key":"id",loading:_(d).loading,data:_(d).data,columns:_(m)},null,8,["checked-row-keys","loading","data","columns"])]),pageLeft:P(()=>[C(G,{"checked-row-keys":_(p),"onUpdate:checkedRowKeys":A[4]||(A[4]=B=>ze(p)?p.value=B:null),"row-key":"id",data:_(d).data,options:h},null,8,["checked-row-keys","data"])]),pageRight:P(()=>[C(X,{page:_(a).p,"onUpdate:page":A[5]||(A[5]=B=>_(a).p=B),"page-size":_(a).size,"onUpdate:pageSize":A[6]||(A[6]=B=>_(a).size=B),"item-count":_(d).total,onRefresh:b},null,8,["page","page-size","item-count"])]),_:1}),C(se,{show:_(s).show,"onUpdate:show":A[7]||(A[7]=B=>_(s).show=B),title:"Scan Invalid Domains",width:540,footer:!0,"confirm-text":"Scan",component:r5e,data:_(s).data},null,8,["show","data"]),C(se,{show:_(c).show,"onUpdate:show":A[8]||(A[8]=B=>_(c).show=B),title:"Scan Logs",width:720,component:u5e},null,8,["show"])]),_:1})}}}),c5e="/static/vite/images/auto-pro-Dl8DXXI8.png",f5e={key:0,class:"pt-40px pb-40px"},d5e={class:"text-center my-24px"},p5e={class:"flex justify-center"},h5e={class:"w-76%"},g5e=re({__name:"conversion",setup(e){const t=Jh(),{isFree:n}=ju(t),r=()=>{Zm({source:360})};return(o,i)=>{const a=Dn,u=WW;return Y(),ae("div",null,[_(n)?(Y(),ae("div",f5e,[i[0]||(i[0]=$("div",{class:"mb-24px text-center text-24px font-bold"},"Automation",-1)),i[1]||(i[1]=$("div",{class:"text-center text-14px color-desc"}," Pro Edition Exclusive Features ",-1)),$("div",d5e,[C(a,{type:"primary",class:"px-20px h-38px text-15px",onClick:r},{default:P(()=>[ye(ke(o.$t("WP.Transition.index_7")),1)]),_:1})]),$("div",p5e,[$("div",h5e,[C(u,{class:"w-full",width:"100%",src:_(c5e)},null,8,["src"])])])])):br(o.$slots,"default",{key:1},void 0,!0)])}}}),v5e=gt(g5e,[["__scopeId","data-v-258f8949"]]),m5e={triggers:[{type:"subscriber_added",group_ids:[]}],root:{broken:!1,complete:!1,email_id:0,from:"",from_name:"",id:0,name:"",next:null,nodeKey:"a86bac74",parentNodeKey:"root",parent_id:0,subject:"",track_opens:!0,track_clicks:!0,track_unsubscribe:!0,type:"email"}},YI=[{key:"default",title:"Simple welcome email",description:"Send a welcome email to new subscribers",data:m5e}],y5e={class:"p-24px"},b5e={class:"w-260px"},w5e={class:"template-list"},_5e={class:"template-title"},x5e={class:"template-desc"},C5e=re({__name:"index",setup(e,{expose:t}){const n=_n("formRef"),r=tt({name:""}),o=ie("default"),i={name:{required:!0,message:"Please enter the task name",trigger:"blur"}},a=nj();return t({onConfirm:async()=>{var l;await((l=n.value)==null?void 0:l.validate());const s=YI.filter(c=>c.key===o.value)[0];if(s){const{message:c}=await uj({name:r.name,triggers:s.data.triggers,root:s.data.root});Hc.success("Add successfully"),pt(c)&&a.push("/flow/".concat(c.id))}}}),(s,l)=>{const c=Tr,f=dr,p=Br;return Y(),ae("div",y5e,[C(p,{ref_key:"formRef",ref:n,model:_(r),rules:i},{default:P(()=>[C(f,{label:"Task name",path:"name"},{default:P(()=>[$("div",b5e,[C(c,{value:_(r).name,"onUpdate:value":l[0]||(l[0]=d=>_(r).name=d)},null,8,["value"])])]),_:1}),C(f,{label:"Template","show-feedback":!1},{default:P(()=>[$("div",w5e,[(Y(!0),ae(Pt,null,co(_(YI),d=>(Y(),ae("div",{key:d.key,class:Di(["template-item",{active:_(o)===d.key}])},[$("div",_5e,ke(d.title),1),$("div",x5e,ke(d.description),1)],2))),128))])]),_:1})]),_:1},8,["model"])])}}}),S5e=gt(C5e,[["__scopeId","data-v-5af2dd72"]]),E5e={class:"px-20px pt-28px pb-12px"},D5e={class:"w-240px"},k5e=re({__name:"index",props:{row:{default:null}},setup(e,{expose:t}){const n=e,r=_n("formRef"),o=tt({name:""}),i={name:{required:!0,trigger:"blur",message:"Please enter the name"}},a=()=>{const{row:s}=n;s&&(o.name=s.name||"")},u=async()=>{var s;await((s=r.value)==null?void 0:s.validate()),await FW({id:n.row.id,name:o.name}),n.row.name=o.name};return a(),t({onConfirm:u}),(s,l)=>{const c=Tr,f=dr,p=Br;return Y(),ae("div",E5e,[C(p,{ref_key:"formRef",ref:r,model:_(o),rules:i},{default:P(()=>[C(f,{label:"Name",path:"name"},{default:P(()=>[$("div",D5e,[C(c,{value:_(o).name,"onUpdate:value":l[0]||(l[0]=d=>_(o).name=d)},null,8,["value"])])]),_:1})]),_:1},8,["model"])])}}}),O5e=re({__name:"index",setup(e){const{t}=Hn(),n=tt({show:!1}),r=()=>{n.show=!0},{table:o,columns:i,setLoading:a}=Qo([{key:"name",title:"Name"},{key:"status",title:"Status",render:v=>C(ha,{value:v.status,checkedValue:1,uncheckedValue:0,size:"small",onUpdateValue:async h=>{await MW({id:v.id,status:h}),v.status=h}},null)},{key:"sent",title:"Delivered / Sent",render:v=>"".concat(v.delivered," / ").concat(v.sent)},{key:"clicked",title:"Clicked",render:v=>"".concat(v.clicked,"%")},{key:"opened",title:"Opened",render:v=>"".concat(v.opened,"%")},Ru({width:260,options:v=>[{label:"Duplicate",onClick:()=>{u(v)}},{label:"Rename",onClick:()=>{l(v)}},{label:t("Public.Btn.Edit"),disabled:v.status===1,onClick:()=>{f(v)}},{label:t("Public.Btn.Delete"),onClick:()=>{p(v)}}]})]),u=async v=>{const h=Hc.loading("Copying, please wait...");try{const{message:y}=await IW({id:v.id});if(pt(y)){const g=b=>{let w=b;for(;w;)w.id=0,pt(w)&&w.type==="condition"&&(g(w.yes),g(w.no)),w=w.next};g(y.root),await uj({name:"".concat(v.name," - Copy"),triggers:y.triggers,root:y.root},!1),m(),Hc.success("Copy success")}}finally{h.close()}},s=tt({show:!1,title:"Rename the automation",data:{row:null}}),l=v=>{s.data.row=v,s.show=!0},c=nj(),f=v=>{c.push("/flow/".concat(v.id))},p=v=>{lo({title:"Delete [".concat(v.name,"]"),content:"Are you sure to delete this item?",onConfirm:async()=>{try{a(!0),await jW({id:v.id}),m()}finally{a(!1)}}})},d=tt({keyword:"",p:1,p_size:10}),m=async()=>{try{a(!0);const{message:v}=await LW(An(d));pt(v)&&(o.data=Un(v.list)?v.list:[],o.total=v.total)}finally{a(!1)}};return m(),(v,h)=>{const y=Dn,g=Jo,b=ml,w=ga,x=gl;return Y(),De(v5e,null,{default:P(()=>[C(w,null,{toolsLeft:P(()=>[C(y,{type:"primary",onClick:r},{default:P(()=>h[4]||(h[4]=[ye("New automation")])),_:1,__:[4]})]),table:P(()=>[C(g,{loading:_(o).loading,data:_(o).data,columns:_(i)},null,8,["loading","data","columns"])]),pageRight:P(()=>[C(b,{page:_(d).p,"onUpdate:page":h[0]||(h[0]=k=>_(d).p=k),"page-size":_(d).p_size,"onUpdate:pageSize":h[1]||(h[1]=k=>_(d).p_size=k),"item-count":_(o).total,onRefresh:m},null,8,["page","page-size","item-count"])]),_:1}),C(x,{show:_(n).show,"onUpdate:show":h[2]||(h[2]=k=>_(n).show=k),title:"Add Automated Task",width:500,footer:!0,component:S5e},null,8,["show"]),C(x,{show:_(s).show,"onUpdate:show":h[3]||(h[3]=k=>_(s).show=k),title:_(s).title,width:440,data:_(s).data,footer:!0,component:k5e},null,8,["show","title","data"])]),_:1})}}}),ake=re({__name:"index",setup(e){const t=[{key:"overview",label:"Overview",component:nG},{key:"task",label:"Marketing Task",component:XG},{key:"template",label:"Template",component:o6e},{key:"contact",label:"Subscribers",component:F6e},{key:"mail",label:"Groups",component:Z6e},{key:"invalid",label:"Suspend List",component:l5e},{key:"automation",label:"Automation",component:O5e}];return(n,r)=>{const o=XV,i=t4;return Y(),De(i,{class:"p-16px"},{default:P(()=>[C(o,{value:_(gm),"onUpdate:value":r[0]||(r[0]=a=>ze(gm)?gm.value=a:null),options:t},null,8,["value"])]),_:1})}}});export{ake as default};