sep-yui 0.1.111 → 0.1.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -59
- package/dist/sep-yui.es.ts +540 -532
- package/dist/sep-yui.umd.ts +14 -14
- package/dist/style.css +1 -1
- package/package.json +15 -13
package/dist/sep-yui.umd.ts
CHANGED
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
<path d="M9.5 21H5.5C4.96957 21 4.46086 20.7893 4.08579 20.4142C3.71071 20.0391 3.5 19.5304 3.5 19V5C3.5 4.46957 3.71071 3.96086 4.08579 3.58579C4.46086 3.21071 4.96957 3 5.5 3H9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
511
511
|
<path d="M16.5 17L21.5 12L16.5 7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
512
512
|
<path d="M21.5 12H9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
513
|
-
`},yh=Object.freeze(Object.defineProperty({__proto__:null,action:L7,addPlus:h7,addUser:PC,alertTriangle:_8,archive:k7,arrowDown:N8,arrowLeft:A8,arrowUp:D8,atSign:MC,baseDetail:c7,baseOfAssemblyUnits:P7,baseOfEquipmentAndInventory:F7,baseProduct:f7,bgNotContent:u7,bookOpen:S7,calendar:pC,chartLine:_7,checkbox:$8,chevronDown:W8,chevronLeft:z8,chevronRight:O8,chevronUp:L8,closeTag:yC,closeVision:m7,company:$7,copy:uC,crossLarge:lC,crossSmall:sC,dark:H8,deleteSmall:p7,document:d7,editing:X7,equipmentBase:E7,exit:F8,exitBig:R8,exitCircle:U8,exitSmall:B8,externalLink:V8,eye:fC,eyeOff:hC,fileDatabase:j7,fileText:rC,files:tC,filter:l7,folder:oC,gitPullRequest:aC,handSignEmoji:mC,help:T8,info:eC,leftBig:X8,leftBigSmall:Y8,light:q8,logout:AC,mainPage:I7,marriage:T7,menuArchive:M7,menuClose:C7,menuOpen:x7,minus:Z8,moonFill:E8,moreHorizontal:nC,moreVertical:iC,move:cC,noDistrub:EC,notification:P8,notificationYes:G8,openDocument:wC,openVision:g7,paint:gC,paperClip:q7,pin:_C,planeRight:xC,plus:J8,plus16:Q8,plusSmall:K8,printer:w7,production:H7,profile:t7,profileIcon:e7,read:TC,remains:kC,reports:Y7,reset:dC,rightBig:n7,rightSmall:i7,search:s7,searchNormal:o7,settings:r7,settingsDark:a7,shadedArrowDown:G7,shadedArrowLeft:Q7,shadedArrowRight:K7,shadedArrowUp:J7,shippingTasks:O7,shopping:W7,sidebar:SC,slashCircle:bC,smile:CC,star:Z7,stepArrowDown:I8,stepArrowUp:j8,supplierDatabase:A7,theBaseOfTheTool:N7,theComplaint:V7,theDatabaseOfMaterials:D7,time:vC,trash:y7,trashSmall:b7,uploadCloud:v7,usersGroup:U7,warehouse:z7,wastes:R7,writeDowns:B7},Symbol.toStringTag,{value:"Module"})),DC=["data-testid","fill","viewBox"],NC=["innerHTML"],jC=l.defineComponent({__name:"Icon",props:{height:{},width:{},name:{},color:{},dataTestid:{default:"Icon"}},setup(e){const t=e,n=l.computed(()=>({color:t.color,width:`${t.width}px`,height:`${t.height}px`})),i=a=>a.replace(/-./g,o=>o[1].toUpperCase()),r=l.computed(()=>yh[i(t.name)]);return(a,o)=>{var s,u,c;return l.openBlock(),l.createElementBlock("svg",{class:"icon-yui-kit","data-testid":t.dataTestid,style:l.normalizeStyle(n.value),fill:(s=l.unref(yh)[i(t.name)])==null?void 0:s.fill,viewBox:((u=l.unref(yh)[i(t.name)])==null?void 0:u.viewbox)||"0 0 24 24"},[l.createElementVNode("g",{innerHTML:(c=r.value)==null?void 0:c.path},null,8,NC)],12,DC)}}}),pe=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},ve=pe(jC,[["__scopeId","data-v-ee4d5302"]]),IC=["data-testid"],WC=["data-testid"],OC=l.defineComponent({__name:"Badges",props:{text:{},type:{default:tt.default},choosed:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestid:{default:"Badges"}},emits:["choose"],setup(e,{expose:t,emit:n}){const i=e,r=n,a=l.reactive({choosed:i.choosed}),o=l.ref(null),s=()=>!!(o.value&&o.value.scrollWidth>o.value.clientWidth),u=l.ref(s()),c=l.computed(()=>({"base-yui-kit":!0,"default-yui-kit":i.type===tt.default,"blue-yui-kit":i.type===tt.blue,"light-blue-yui-kit":i.type===tt.lightBlue,"contrast-blue-yui-kit":i.type===tt.contrastBlue,"green-yui-kit":i.type===tt.green,"orange-yui-kit":i.type===tt.orange,"red-yui-kit":i.type===tt.red,"pink-yui-kit":i.type===tt.pink,"violet-yui-kit":i.type===tt.violet,"yellow-yui-kit":i.type===tt.yellow,"choosed-yui-kit":i.choosed||a.choosed})),f=()=>{r("choose",a.choosed,i.text),i.disabled||(a.choosed=!a.choosed)},h=new ResizeObserver(()=>{u.value=s()});return t({isSpanOverflow:u}),l.onMounted(()=>{o.value&&h.observe(o.value)}),(g,p)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(c.value),onClick:f,"data-testid":i.dataTestid},[l.createElementVNode("span",{ref_key:"spanRef",ref:o,class:"badges-text","data-testid":`${i.dataTestid}-BadgesText`},l.toDisplayString(i.text),9,WC),l.createVNode(ve,{class:"close-icon",width:10,height:10,"data-testid":`${i.dataTestid}-Icon`,name:l.unref(ce).closeTag,color:"var(--grey6)"},null,8,["data-testid","name"])],10,IC))}}),Vt=pe(OC,[["__scopeId","data-v-af5e7a5f"]]),zC=["data-testid"],LC=["data-testid"],$C=["data-testid"],HC=["data-testid"],RC=["data-testid"],BC=["data-testid"],VC=["title","onClick","data-testid"],FC=["data-testid"],UC=["onClick","data-testid"],YC=["data-testid"],bh=25,wh=pe(l.defineComponent({__name:"BreadCrumbs",props:{items:{},dataTestid:{default:"BreadCrumbs"}},emits:["click"],setup(e,{emit:t}){const n=e,i=t,r=l.reactive({items:[],crumbs:l.computed(()=>{const h=n.items.length<4?n.items.length-1:3;let g=[n.items[0],...n.items.slice(-h)];return n.items.length===1&&(g=[n.items[0]]),g.map(p=>(p.isSub=!1,p))}),subCrumbs:l.computed(()=>n.items.slice(1,-3).map(h=>(h.isSub=!0,h))),getClassesLink:l.computed(()=>(h,g=!1)=>({"bread-crumbs-yui-kit__link":!0,"disabled-yui-kit":!h.path,active:g})),getClassesSpan:l.computed(()=>h=>({"checked-yui-kit":h===r.crumbs.length-1})),fullTitle:l.computed(()=>h=>h.title.length>bh),isShowList:!1}),a=l.computed(()=>({crumbs:{"bread-crumbs-yui-kit__item":!0},subcrumbs:{"bread-subcrumbs-yui-kit__item":!0}})),o=l.computed(()=>({crumbs:{"bread-subcrumbs-yui-kit":!0,"scroll-yui-kit":!0,"active-yui-kit":r.isShowList}})),s=(h,g)=>{g!==r.items.length-1&&(h.isSub&&u(),n.items.forEach(({path:p},y)=>{p===h.path&&i("click",{title:h.title,path:h.path,inx:y+1})}))},u=()=>r.isShowList=!r.isShowList,c=h=>h.title.length>bh?h.title.slice(0,bh).trim()+"...":h.title,f=h=>r.items.length>=5&&h===1;return l.onMounted(()=>r.items=r.crumbs.concat(r.subCrumbs)),(h,g)=>(l.openBlock(),l.createElementBlock("ul",{class:"bread-crumbs-yui-kit","data-testid":n.dataTestid},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.items,(p,y)=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(a.value.crumbs),key:p.path,"data-testid":`${n.dataTestid}-Crumbs${y}`},[f(y)?(l.openBlock(),l.createElementBlock("div",{key:0,"data-testid":`${n.dataTestid}-ShowSubList${y}`},[l.createElementVNode("span",{class:"bread-crumbs-yui-kit--closed",onClick:u,"data-testid":`${n.dataTestid}-Closed${y}`},"...",8,HC),l.createElementVNode("ul",{class:l.normalizeClass(o.value.crumbs),"data-testid":`${n.dataTestid}-Crumbs${y}`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.subCrumbs,(v,k)=>(l.openBlock(),l.createElementBlock("li",{key:v.path,class:l.normalizeClass(a.value.subcrumbs),"data-testid":`${n.dataTestid}-SubCrumbs${k}`},[l.createElementVNode("span",{title:v.title,onClick:w=>s(v,k),class:l.normalizeClass({"disabled-yui-kit":!v.path}),"data-testid":`${n.dataTestid}-SubCrumbs-Title${k}`},l.toDisplayString(c(v)),11,VC)],10,BC))),128))],10,RC)],8,$C)):l.createCommentVNode("",!0),p.isSub?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(r.getClassesLink(p,y===r.crumbs.length-1)),"data-testid":`${n.dataTestid}-Classes${y}`},[l.createElementVNode("span",{class:l.normalizeClass(r.getClassesSpan(y)),onClick:v=>s(p,y),"data-testid":`${n.dataTestid}-Checked${y}`},[l.createTextVNode(l.toDisplayString(y!==r.crumbs.length-1?c(p):p.title),1),r.fullTitle(p)&&y!==r.crumbs.length-1?(l.openBlock(),l.createElementBlock("span",{key:0,"data-testid":`${n.dataTestid}-FullName`,class:"fullName-yui-kit"},l.toDisplayString(p.title),9,YC)):l.createCommentVNode("",!0)],10,UC),y!==r.crumbs.length-1?(l.openBlock(),l.createBlock(ve,{key:0,name:l.unref(ce).rightSmall,"data-testid":`${n.dataTestid}-Icon`},null,8,["name","data-testid"])):l.createCommentVNode("",!0)],10,FC))],10,LC))),128))],8,zC))}}),[["__scopeId","data-v-07b79f0f"]]);var Ai=(e=>(e.small="small",e.medium="medium",e.large="large",e.little="little",e))(Ai||{}),ut=(e=>(e.primary="primary",e.outline="outline",e.ghost="ghost",e.secondary="secondary",e.reject="reject",e.minor="minor",e))(ut||{});const XC=["disabled","data-testid"],qC=["data-testid"],GC=["data-testid"],KC=l.defineComponent({__name:"Button",props:{disabled:{type:Boolean,default:!1},size:{default:Ai.medium},type:{default:ut.primary},pill:{type:Boolean,default:!1},backgroundColor:{},color:{default:""},dataTestid:{default:"Button"}},emits:["click"],setup(e,{emit:t}){const n=e,i=t,r=l.computed(()=>({"button-yui-kit":!0,[n.size]:!0,"disabled-yui-kit":n.disabled,"pill-yui-kit":n.pill,"primary-yui-kit":n.type===ut.primary,"secondary-yui-kit":n.type===ut.secondary,"outline-yui-kit":n.type===ut.outline,"reject-yui-kit":n.type===ut.reject,"ghost-yui-kit":n.type===ut.ghost,"minor-yui-kit":n.type===ut.minor})),a=l.computed(()=>({backgroundColor:n.backgroundColor})),o=l.computed(()=>({color:n.color==="primary"||n.color==="secondary"?"black":n.color})),s=u=>i("click",u);return(u,c)=>(l.openBlock(),l.createElementBlock("button",{class:l.normalizeClass(r.value),disabled:n.disabled,tabindex:"0",style:l.normalizeStyle(a.value),"data-testid":n.dataTestid,onClick:s,onKeyup:l.withKeys(s,["enter"])},[u.$slots["left-icon"]?(l.openBlock(),l.createElementBlock("span",{key:0,style:l.normalizeStyle(o.value),"data-testid":`${n.dataTestid}-LeftIcon`},[l.renderSlot(u.$slots,"left-icon",{},void 0,!0)],12,qC)):l.createCommentVNode("",!0),l.renderSlot(u.$slots,"default",{},void 0,!0),u.$slots["right-icon"]?(l.openBlock(),l.createElementBlock("span",{key:1,style:l.normalizeStyle(o.value),"data-testid":`${n.dataTestid}-RightIcon`},[l.renderSlot(u.$slots,"right-icon",{},void 0,!0)],12,GC)):l.createCommentVNode("",!0)],46,XC))}}),Ot=pe(KC,[["__scopeId","data-v-f06809e2"]]),QC=["data-testid"],JC=["onClick","data-testid"],Tu=pe(l.defineComponent({__name:"Switch",props:{items:{},defaultValue:{},isIcons:{type:Boolean},dataTestid:{default:"Switch"}},emits:["change"],setup(e,{emit:t}){const n=e,i=l.reactive({activeIndex:0}),r=t,a=s=>({"switch-yui-kit-item":!0,"switch-yui-kit-active":i.activeIndex===s}),o=s=>{i.activeIndex=s,r("change",{index:s,value:n.items[s]})};return l.watch(()=>n.defaultValue,()=>{var s;i.activeIndex=n.defaultValue?(s=n.items)==null?void 0:s.indexOf(n.defaultValue):0}),l.onMounted(()=>{n.defaultValue&&n.items.includes(n.defaultValue)&&(i.activeIndex=n.items.indexOf(n.defaultValue))}),(s,u)=>(l.openBlock(),l.createElementBlock("ul",{class:"switch-yui-kit-list","data-testid":n.dataTestid},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.items,(c,f)=>(l.openBlock(),l.createElementBlock("li",{key:c,class:l.normalizeClass(a(f)),onClick:h=>o(f),"data-testid":`${n.dataTestid}-Item${f}`},[n.isIcons?(l.openBlock(),l.createBlock(ve,{key:0,name:c,"data-testid":`${n.dataTestid}-Item-Icon${f}`},null,8,["name","data-testid"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(c),1)],64))],10,JC))),128))],8,QC))}}),[["__scopeId","data-v-7d9e7187"]]);function St(e){return l.getCurrentScope()?(l.onScopeDispose(e),!0):!1}function se(e){return typeof e=="function"?e():l.unref(e)}const hi={mounted:"mounted",updated:"updated",unmounted:"unmounted"},mi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Pu=e=>e!=null,ZC=Object.prototype.toString,My=e=>ZC.call(e)==="[object Object]",Eu=()=>+Date.now(),vh=(e,t,n)=>Math.min(n,Math.max(t,e)),Qe=()=>{},Au=ex();function ex(){var e,t;return mi&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Os(e,t){function n(...i){return new Promise((r,a)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(r).catch(a)})}return n}const kh=e=>e();function tx(e,t={}){let n,i,r=Qe;const a=s=>{clearTimeout(s),r(),r=Qe};return s=>{const u=se(e),c=se(t.maxWait);return n&&a(n),u<=0||c!==void 0&&c<=0?(i&&(a(i),i=null),Promise.resolve(s())):new Promise((f,h)=>{r=t.rejectOnCancel?h:f,c&&!i&&(i=setTimeout(()=>{n&&a(n),i=null,f(s())},c)),n=setTimeout(()=>{i&&a(i),i=null,f(s())},u)})}}function Cy(...e){let t=0,n,i=!0,r=Qe,a,o,s,u,c;!l.isRef(e[0])&&typeof e[0]=="object"?{delay:o,trailing:s=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[o,s=!0,u=!0,c=!1]=e;const f=()=>{n&&(clearTimeout(n),n=void 0,r(),r=Qe)};return g=>{const p=se(o),y=Date.now()-t,v=()=>a=g();return f(),p<=0?(t=Date.now(),v()):(y>p&&(u||!i)?(t=Date.now(),v()):s&&(a=new Promise((k,w)=>{r=c?w:k,n=setTimeout(()=>{t=Date.now(),i=!0,k(v()),f()},Math.max(0,p-y))})),!u&&!n&&(n=setTimeout(()=>i=!0,p)),i=!1,a)}}function nx(e=kh){const t=l.ref(!0);function n(){t.value=!1}function i(){t.value=!0}const r=(...a)=>{t.value&&e(...a)};return{isActive:l.readonly(t),pause:n,resume:i,eventFilter:r}}function Mh(e,t=!1,n="Timeout"){return new Promise((i,r)=>{setTimeout(t?()=>r(n):i,e)})}function ix(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const i=t;t=void 0,i&&await i},n}function rx(e,t,n=!1){return t.reduce((i,r)=>(r in e&&(!n||e[r]!==void 0)&&(i[r]=e[r]),i),{})}function ax(e){return Object.entries(e)}function xy(e){return l.getCurrentInstance()}function Du(...e){if(e.length!==1)return l.toRef(...e);const t=e[0];return typeof t=="function"?l.readonly(l.customRef(()=>({get:t,set:Qe}))):l.ref(t)}function Sy(e,t=200,n={}){return Os(tx(t,n),e)}function ox(e,t=200,n=!1,i=!0,r=!1){return Os(Cy(t,n,i,r),e)}function sx(e,t,n={}){const{eventFilter:i=kh,...r}=n;return l.watch(e,Os(i,t),r)}function Nu(e,t,n={}){const{eventFilter:i,...r}=n,{eventFilter:a,pause:o,resume:s,isActive:u}=nx(i);return{stop:sx(e,t,{...r,eventFilter:a}),pause:o,resume:s,isActive:u}}function _y(e,t,...[n]){const{flush:i="sync",deep:r=!1,immediate:a=!0,direction:o="both",transform:s={}}=n||{},u=[],c="ltr"in s&&s.ltr||(g=>g),f="rtl"in s&&s.rtl||(g=>g);return(o==="both"||o==="ltr")&&u.push(Nu(e,g=>{u.forEach(p=>p.pause()),t.value=c(g),u.forEach(p=>p.resume())},{flush:i,deep:r,immediate:a})),(o==="both"||o==="rtl")&&u.push(Nu(t,g=>{u.forEach(p=>p.pause()),e.value=f(g),u.forEach(p=>p.resume())},{flush:i,deep:r,immediate:a})),()=>{u.forEach(g=>g.stop())}}function Ty(e,t={}){if(!l.isRef(e))return l.toRefs(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const i in e.value)n[i]=l.customRef(()=>({get(){return e.value[i]},set(r){var a;if((a=se(t.replaceRef))!=null?a:!0)if(Array.isArray(e.value)){const s=[...e.value];s[i]=r,e.value=s}else{const s={...e.value,[i]:r};Object.setPrototypeOf(s,Object.getPrototypeOf(e.value)),e.value=s}else e.value[i]=r}}));return n}function er(e,t=!0,n){xy()?l.onMounted(e,n):t?e():l.nextTick(e)}function lx(e,t){xy()&&l.onUnmounted(e,t)}function Ch(e,t=!1){function n(h,{flush:g="sync",deep:p=!1,timeout:y,throwOnTimeout:v}={}){let k=null;const M=[new Promise(x=>{k=l.watch(e,S=>{h(S)!==t&&(k?k():l.nextTick(()=>k==null?void 0:k()),x(S))},{flush:g,deep:p,immediate:!0})})];return y!=null&&M.push(Mh(y,v).then(()=>se(e)).finally(()=>k==null?void 0:k())),Promise.race(M)}function i(h,g){if(!l.isRef(h))return n(S=>S===h,g);const{flush:p="sync",deep:y=!1,timeout:v,throwOnTimeout:k}=g??{};let w=null;const x=[new Promise(S=>{w=l.watch([e,h],([E,I])=>{t!==(E===I)&&(w?w():l.nextTick(()=>w==null?void 0:w()),S(E))},{flush:p,deep:y,immediate:!0})})];return v!=null&&x.push(Mh(v,k).then(()=>se(e)).finally(()=>(w==null||w(),se(e)))),Promise.race(x)}function r(h){return n(g=>!!g,h)}function a(h){return i(null,h)}function o(h){return i(void 0,h)}function s(h){return n(Number.isNaN,h)}function u(h,g){return n(p=>{const y=Array.from(p);return y.includes(h)||y.includes(se(h))},g)}function c(h){return f(1,h)}function f(h=1,g){let p=-1;return n(()=>(p+=1,p>=h),g)}return Array.isArray(se(e))?{toMatch:n,toContains:u,changed:c,changedTimes:f,get not(){return Ch(e,!t)}}:{toMatch:n,toBe:i,toBeTruthy:r,toBeNull:a,toBeNaN:s,toBeUndefined:o,changed:c,changedTimes:f,get not(){return Ch(e,!t)}}}function xh(e){return Ch(e)}function Py(e,t=1e3,n={}){const{immediate:i=!0,immediateCallback:r=!1}=n;let a=null;const o=l.ref(!1);function s(){a&&(clearInterval(a),a=null)}function u(){o.value=!1,s()}function c(){const f=se(t);f<=0||(o.value=!0,r&&e(),s(),a=setInterval(e,f))}if(i&&mi&&c(),l.isRef(t)||typeof t=="function"){const f=l.watch(t,()=>{o.value&&mi&&c()});St(f)}return St(u),{isActive:o,pause:u,resume:c}}function ux(e,t,n={}){const{immediate:i=!0}=n,r=l.ref(!1);let a=null;function o(){a&&(clearTimeout(a),a=null)}function s(){r.value=!1,o()}function u(...c){o(),r.value=!0,a=setTimeout(()=>{r.value=!1,a=null,e(...c)},se(t))}return i&&(r.value=!0,mi&&u()),St(s),{isPending:l.readonly(r),start:u,stop:s}}function dx(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,r=l.isRef(e),a=l.ref(e);function o(s){if(arguments.length)return a.value=s,a.value;{const u=se(n);return a.value=a.value===u?se(i):u,a.value}}return r?o:[a,o]}const Re=mi?window:void 0,Sh=mi?window.document:void 0,zs=mi?window.navigator:void 0;function nt(e){var t;const n=se(e);return(t=n==null?void 0:n.$el)!=null?t:n}function ye(...e){let t,n,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,r]=e,t=Re):[t,n,i,r]=e,!t)return Qe;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],o=()=>{a.forEach(f=>f()),a.length=0},s=(f,h,g,p)=>(f.addEventListener(h,g,p),()=>f.removeEventListener(h,g,p)),u=l.watch(()=>[nt(t),se(r)],([f,h])=>{if(o(),!f)return;const g=My(h)?{...h}:h;a.push(...n.flatMap(p=>i.map(y=>s(f,p,y,g))))},{immediate:!0,flush:"post"}),c=()=>{u(),o()};return St(c),c}let Ey=!1;function cx(e,t,n={}){const{window:i=Re,ignore:r=[],capture:a=!0,detectIframe:o=!1}=n;if(!i)return Qe;Au&&!Ey&&(Ey=!0,Array.from(i.document.body.children).forEach(p=>p.addEventListener("click",Qe)),i.document.documentElement.addEventListener("click",Qe));let s=!0;const u=p=>se(r).some(y=>{if(typeof y=="string")return Array.from(i.document.querySelectorAll(y)).some(v=>v===p.target||p.composedPath().includes(v));{const v=nt(y);return v&&(p.target===v||p.composedPath().includes(v))}}),c=p=>{const y=nt(e);if(!(!y||y===p.target||p.composedPath().includes(y))){if(p.detail===0&&(s=!u(p)),!s){s=!0;return}t(p)}};let f=!1;const h=[ye(i,"click",p=>{f||(f=!0,setTimeout(()=>{f=!1},0),c(p))},{passive:!0,capture:a}),ye(i,"pointerdown",p=>{const y=nt(e);s=!u(p)&&!!(y&&!p.composedPath().includes(y))},{passive:!0}),o&&ye(i,"blur",p=>{setTimeout(()=>{var y;const v=nt(e);((y=i.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(v!=null&&v.contains(i.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>h.forEach(p=>p())}function fx(){const e=l.ref(!1),t=l.getCurrentInstance();return t&&l.onMounted(()=>{e.value=!0},t),e}function wn(e){const t=fx();return l.computed(()=>(t.value,!!e()))}function Ay(e,t,n={}){const{window:i=Re,...r}=n;let a;const o=wn(()=>i&&"MutationObserver"in i),s=()=>{a&&(a.disconnect(),a=void 0)},u=l.computed(()=>{const g=se(e),p=(Array.isArray(g)?g:[g]).map(nt).filter(Pu);return new Set(p)}),c=l.watch(()=>u.value,g=>{s(),o.value&&g.size&&(a=new MutationObserver(t),g.forEach(p=>a.observe(p,r)))},{immediate:!0,flush:"post"}),f=()=>a==null?void 0:a.takeRecords(),h=()=>{c(),s()};return St(h),{isSupported:o,stop:h,takeRecords:f}}function hx(e={}){var t;const{window:n=Re,deep:i=!0,triggerOnRemoval:r=!1}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,o=()=>{var c;let f=a==null?void 0:a.activeElement;if(i)for(;f!=null&&f.shadowRoot;)f=(c=f==null?void 0:f.shadowRoot)==null?void 0:c.activeElement;return f},s=l.ref(),u=()=>{s.value=o()};return n&&(ye(n,"blur",c=>{c.relatedTarget===null&&u()},!0),ye(n,"focus",u,!0)),r&&Ay(a,c=>{c.filter(f=>f.removedNodes.length).map(f=>Array.from(f.removedNodes)).flat().forEach(f=>{f===s.value&&u()})},{childList:!0,subtree:!0}),u(),s}function Dy(e,t={}){const{immediate:n=!0,fpsLimit:i=void 0,window:r=Re}=t,a=l.ref(!1),o=i?1e3/i:null;let s=0,u=null;function c(g){if(!a.value||!r)return;s||(s=g);const p=g-s;if(o&&p<o){u=r.requestAnimationFrame(c);return}s=g,e({delta:p,timestamp:g}),u=r.requestAnimationFrame(c)}function f(){!a.value&&r&&(a.value=!0,s=0,u=r.requestAnimationFrame(c))}function h(){a.value=!1,u!=null&&r&&(r.cancelAnimationFrame(u),u=null)}return n&&f(),St(h),{isActive:l.readonly(a),pause:h,resume:f}}function mx(e={}){const{navigator:t=zs}=e,n=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],i=wn(()=>t&&"getBattery"in t&&typeof t.getBattery=="function"),r=l.ref(!1),a=l.ref(0),o=l.ref(0),s=l.ref(1);let u;function c(){r.value=this.charging,a.value=this.chargingTime||0,o.value=this.dischargingTime||0,s.value=this.level}return i.value&&t.getBattery().then(f=>{u=f,c.call(u),ye(u,n,c,{passive:!0})}),{isSupported:i,charging:r,chargingTime:a,dischargingTime:o,level:s}}function xr(e,t={}){const{window:n=Re}=t,i=wn(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const a=l.ref(!1),o=c=>{a.value=c.matches},s=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",o):r.removeListener(o))},u=l.watchEffect(()=>{i.value&&(s(),r=n.matchMedia(se(e)),"addEventListener"in r?r.addEventListener("change",o):r.addListener(o),a.value=r.matches)});return St(()=>{u(),s(),r=void 0}),a}const Ny=["hash","host","hostname","href","pathname","port","protocol","search"];function px(e={}){const{window:t=Re}=e,n=Object.fromEntries(Ny.map(a=>[a,l.ref()]));for(const[a,o]of ax(n))l.watch(o,s=>{!(t!=null&&t.location)||t.location[a]===s||(t.location[a]=s)});const i=a=>{var o;const{state:s,length:u}=(t==null?void 0:t.history)||{},{origin:c}=(t==null?void 0:t.location)||{};for(const f of Ny)n[f].value=(o=t==null?void 0:t.location)==null?void 0:o[f];return l.reactive({trigger:a,state:s,length:u,origin:c,...n})},r=l.ref(i("load"));return t&&(ye(t,"popstate",()=>r.value=i("popstate"),{passive:!0}),ye(t,"hashchange",()=>r.value=i("hashchange"),{passive:!0})),r}function _h(e,t={}){const{controls:n=!1,navigator:i=zs}=t,r=wn(()=>i&&"permissions"in i),a=l.shallowRef(),o=typeof e=="string"?{name:e}:e,s=l.shallowRef(),u=()=>{var f,h;s.value=(h=(f=a.value)==null?void 0:f.state)!=null?h:"prompt"};ye(a,"change",u);const c=ix(async()=>{if(r.value){if(!a.value)try{a.value=await i.permissions.query(o)}catch{a.value=void 0}finally{u()}if(n)return l.toRaw(a.value)}});return c(),n?{state:s,isSupported:r,query:c}:s}function gx(e={}){const{navigator:t=zs,read:n=!1,source:i,copiedDuring:r=1500,legacy:a=!1}=e,o=wn(()=>t&&"clipboard"in t),s=_h("clipboard-read"),u=_h("clipboard-write"),c=l.computed(()=>o.value||a),f=l.ref(""),h=l.ref(!1),g=ux(()=>h.value=!1,r);function p(){o.value&&w(s.value)?t.clipboard.readText().then(M=>{f.value=M}):f.value=k()}c.value&&n&&ye(["copy","cut"],p);async function y(M=se(i)){c.value&&M!=null&&(o.value&&w(u.value)?await t.clipboard.writeText(M):v(M),f.value=M,h.value=!0,g.start())}function v(M){const x=document.createElement("textarea");x.value=M??"",x.style.position="absolute",x.style.opacity="0",document.body.appendChild(x),x.select(),document.execCommand("copy"),x.remove()}function k(){var M,x,S;return(S=(x=(M=document==null?void 0:document.getSelection)==null?void 0:M.call(document))==null?void 0:x.toString())!=null?S:""}function w(M){return M==="granted"||M==="prompt"}return{isSupported:c,text:f,copied:h,copy:y}}const ju=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Iu="__vueuse_ssr_handlers__",yx=bx();function bx(){return Iu in ju||(ju[Iu]=ju[Iu]||{}),ju[Iu]}function jy(e,t){return yx[e]||t}function Th(e){return xr("(prefers-color-scheme: dark)",e)}function wx(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const vx={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Iy="vueuse-storage";function Wy(e,t,n,i={}){var r;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:f,window:h=Re,eventFilter:g,onError:p=D=>{console.error(D)},initOnMounted:y}=i,v=(f?l.shallowRef:l.ref)(typeof t=="function"?t():t);if(!n)try{n=jy("getDefaultStorage",()=>{var D;return(D=Re)==null?void 0:D.localStorage})()}catch(D){p(D)}if(!n)return v;const k=se(t),w=wx(k),M=(r=i.serializer)!=null?r:vx[w],{pause:x,resume:S}=Nu(v,()=>I(v.value),{flush:a,deep:o,eventFilter:g});h&&s&&er(()=>{n instanceof Storage?ye(h,"storage",W):ye(h,Iy,$),y&&W()}),y||W();function E(D,z){if(h){const H={key:e,oldValue:D,newValue:z,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(Iy,{detail:H}))}}function I(D){try{const z=n.getItem(e);if(D==null)E(z,null),n.removeItem(e);else{const H=M.write(D);z!==H&&(n.setItem(e,H),E(z,H))}}catch(z){p(z)}}function A(D){const z=D?D.newValue:n.getItem(e);if(z==null)return u&&k!=null&&n.setItem(e,M.write(k)),k;if(!D&&c){const H=M.read(z);return typeof c=="function"?c(H,k):w==="object"&&!Array.isArray(H)?{...k,...H}:H}else return typeof z!="string"?z:M.read(z)}function W(D){if(!(D&&D.storageArea!==n)){if(D&&D.key==null){v.value=k;return}if(!(D&&D.key!==e)){x();try{(D==null?void 0:D.newValue)!==M.write(v.value)&&(v.value=A(D))}catch(z){p(z)}finally{D?l.nextTick(S):S()}}}}function $(D){W(D.detail)}return v}const kx="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Mx(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:r=Re,storage:a,storageKey:o="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:u,emitAuto:c,disableTransition:f=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},g=Th({window:r}),p=l.computed(()=>g.value?"dark":"light"),y=u||(o==null?Du(i):Wy(o,i,a,{window:r,listenToStorageChanges:s})),v=l.computed(()=>y.value==="auto"?p.value:y.value),k=jy("updateHTMLAttrs",(S,E,I)=>{const A=typeof S=="string"?r==null?void 0:r.document.querySelector(S):nt(S);if(!A)return;const W=new Set,$=new Set;let D=null;if(E==="class"){const H=I.split(/\s/g);Object.values(h).flatMap(X=>(X||"").split(/\s/g)).filter(Boolean).forEach(X=>{H.includes(X)?W.add(X):$.add(X)})}else D={key:E,value:I};if(W.size===0&&$.size===0&&D===null)return;let z;f&&(z=r.document.createElement("style"),z.appendChild(document.createTextNode(kx)),r.document.head.appendChild(z));for(const H of W)A.classList.add(H);for(const H of $)A.classList.remove(H);D&&A.setAttribute(D.key,D.value),f&&(r.getComputedStyle(z).opacity,document.head.removeChild(z))});function w(S){var E;k(t,n,(E=h[S])!=null?E:S)}function M(S){e.onChanged?e.onChanged(S,w):w(S)}l.watch(v,M,{flush:"post",immediate:!0}),er(()=>M(v.value));const x=l.computed({get(){return c?y.value:v.value},set(S){y.value=S}});try{return Object.assign(x,{store:y,system:p,state:v})}catch{return x}}function Cx(e={}){const{valueDark:t="dark",valueLight:n="",window:i=Re}=e,r=Mx({...e,onChanged:(s,u)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,s==="dark",u,s):u(s)},modes:{dark:t,light:n}}),a=l.computed(()=>r.system?r.system.value:Th({window:i}).value?"dark":"light");return l.computed({get(){return r.value==="dark"},set(s){const u=s?"dark":"light";a.value===u?r.value="auto":r.value=u}})}function xx(e={}){const{window:t=Re,eventFilter:n=kh}=e,i=l.ref({x:null,y:null,z:null}),r=l.ref({alpha:null,beta:null,gamma:null}),a=l.ref(0),o=l.ref({x:null,y:null,z:null});if(t){const s=Os(n,u=>{i.value=u.acceleration,o.value=u.accelerationIncludingGravity,r.value=u.rotationRate,a.value=u.interval});ye(t,"devicemotion",s)}return{acceleration:i,accelerationIncludingGravity:o,rotationRate:r,interval:a}}function Sx(e={}){const{window:t=Re}=e,n=wn(()=>t&&"DeviceOrientationEvent"in t),i=l.ref(!1),r=l.ref(null),a=l.ref(null),o=l.ref(null);return t&&n.value&&ye(t,"deviceorientation",s=>{i.value=s.absolute,r.value=s.alpha,a.value=s.beta,o.value=s.gamma}),{isSupported:n,isAbsolute:i,alpha:r,beta:a,gamma:o}}function _x(e={}){const{window:t=Re}=e,n=l.ref(1);if(t){let i=function(){n.value=t.devicePixelRatio,r(),a=t.matchMedia(`(resolution: ${n.value}dppx)`),a.addEventListener("change",i,{once:!0})},r=function(){a==null||a.removeEventListener("change",i)},a;i(),St(r)}return{pixelRatio:n}}function Tx(e={}){const{navigator:t=zs,requestPermissions:n=!1,constraints:i={audio:!0,video:!0},onUpdated:r}=e,a=l.ref([]),o=l.computed(()=>a.value.filter(y=>y.kind==="videoinput")),s=l.computed(()=>a.value.filter(y=>y.kind==="audioinput")),u=l.computed(()=>a.value.filter(y=>y.kind==="audiooutput")),c=wn(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),f=l.ref(!1);let h;async function g(){c.value&&(a.value=await t.mediaDevices.enumerateDevices(),r==null||r(a.value),h&&(h.getTracks().forEach(y=>y.stop()),h=null))}async function p(){if(!c.value)return!1;if(f.value)return!0;const{state:y,query:v}=_h("camera",{controls:!0});return await v(),y.value!=="granted"&&(h=await t.mediaDevices.getUserMedia(i),g()),f.value=!0,f.value}return c.value&&(n&&p(),ye(t.mediaDevices,"devicechange",g),g()),{devices:a,ensurePermissions:p,permissionGranted:f,videoInputs:o,audioInputs:s,audioOutputs:u,isSupported:c}}function Px(e={}){const{document:t=Sh}=e;if(!t)return l.ref("visible");const n=l.ref(t.visibilityState);return ye(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Ex(e,t={}){var n,i;const{pointerTypes:r,preventDefault:a,stopPropagation:o,exact:s,onMove:u,onEnd:c,onStart:f,initialValue:h,axis:g="both",draggingElement:p=Re,containerElement:y,handle:v=e,buttons:k=[0]}=t,w=l.ref((n=se(h))!=null?n:{x:0,y:0}),M=l.ref(),x=W=>r?r.includes(W.pointerType):!0,S=W=>{se(a)&&W.preventDefault(),se(o)&&W.stopPropagation()},E=W=>{var $;if(!se(k).includes(W.button)||se(t.disabled)||!x(W)||se(s)&&W.target!==se(e))return;const D=se(y),z=($=D==null?void 0:D.getBoundingClientRect)==null?void 0:$.call(D),H=se(e).getBoundingClientRect(),X={x:W.clientX-(D?H.left-z.left+D.scrollLeft:H.left),y:W.clientY-(D?H.top-z.top+D.scrollTop:H.top)};(f==null?void 0:f(X,W))!==!1&&(M.value=X,S(W))},I=W=>{if(se(t.disabled)||!x(W)||!M.value)return;const $=se(y),D=se(e).getBoundingClientRect();let{x:z,y:H}=w.value;(g==="x"||g==="both")&&(z=W.clientX-M.value.x,$&&(z=Math.min(Math.max(0,z),$.scrollWidth-D.width))),(g==="y"||g==="both")&&(H=W.clientY-M.value.y,$&&(H=Math.min(Math.max(0,H),$.scrollHeight-D.height))),w.value={x:z,y:H},u==null||u(w.value,W),S(W)},A=W=>{se(t.disabled)||!x(W)||M.value&&(M.value=void 0,c==null||c(w.value,W),S(W))};if(mi){const W={capture:(i=t.capture)!=null?i:!0};ye(v,"pointerdown",E,W),ye(p,"pointermove",I,W),ye(p,"pointerup",A,W)}return{...Ty(w),position:w,isDragging:l.computed(()=>!!M.value),style:l.computed(()=>`left:${w.value.x}px;top:${w.value.y}px;`)}}function Oy(e,t,n={}){const{window:i=Re,...r}=n;let a;const o=wn(()=>i&&"ResizeObserver"in i),s=()=>{a&&(a.disconnect(),a=void 0)},u=l.computed(()=>{const h=se(e);return Array.isArray(h)?h.map(g=>nt(g)):[nt(h)]}),c=l.watch(u,h=>{if(s(),o.value&&i){a=new ResizeObserver(t);for(const g of h)g&&a.observe(g,r)}},{immediate:!0,flush:"post"}),f=()=>{s(),c()};return St(f),{isSupported:o,stop:f}}function Ax(e,t={}){const{reset:n=!0,windowResize:i=!0,windowScroll:r=!0,immediate:a=!0,updateTiming:o="sync"}=t,s=l.ref(0),u=l.ref(0),c=l.ref(0),f=l.ref(0),h=l.ref(0),g=l.ref(0),p=l.ref(0),y=l.ref(0);function v(){const w=nt(e);if(!w){n&&(s.value=0,u.value=0,c.value=0,f.value=0,h.value=0,g.value=0,p.value=0,y.value=0);return}const M=w.getBoundingClientRect();s.value=M.height,u.value=M.bottom,c.value=M.left,f.value=M.right,h.value=M.top,g.value=M.width,p.value=M.x,y.value=M.y}function k(){o==="sync"?v():o==="next-frame"&&requestAnimationFrame(()=>v())}return Oy(e,k),l.watch(()=>nt(e),w=>!w&&k()),Ay(e,k,{attributeFilter:["style","class"]}),r&&ye("scroll",k,{capture:!0,passive:!0}),i&&ye("resize",k,{passive:!0}),er(()=>{a&&k()}),{height:s,bottom:u,left:c,right:f,top:h,width:g,x:p,y,update:k}}function zy(e,t={width:0,height:0},n={}){const{window:i=Re,box:r="content-box"}=n,a=l.computed(()=>{var h,g;return(g=(h=nt(e))==null?void 0:h.namespaceURI)==null?void 0:g.includes("svg")}),o=l.ref(t.width),s=l.ref(t.height),{stop:u}=Oy(e,([h])=>{const g=r==="border-box"?h.borderBoxSize:r==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(i&&a.value){const p=nt(e);if(p){const y=p.getBoundingClientRect();o.value=y.width,s.value=y.height}}else if(g){const p=Array.isArray(g)?g:[g];o.value=p.reduce((y,{inlineSize:v})=>y+v,0),s.value=p.reduce((y,{blockSize:v})=>y+v,0)}else o.value=h.contentRect.width,s.value=h.contentRect.height},n);er(()=>{const h=nt(e);h&&(o.value="offsetWidth"in h?h.offsetWidth:t.width,s.value="offsetHeight"in h?h.offsetHeight:t.height)});const c=l.watch(()=>nt(e),h=>{o.value=h?t.width:0,s.value=h?t.height:0});function f(){u(),c()}return{width:o,height:s,stop:f}}function Dx(e,t,n={}){const{root:i,rootMargin:r="0px",threshold:a=0,window:o=Re,immediate:s=!0}=n,u=wn(()=>o&&"IntersectionObserver"in o),c=l.computed(()=>{const y=se(e);return(Array.isArray(y)?y:[y]).map(nt).filter(Pu)});let f=Qe;const h=l.ref(s),g=u.value?l.watch(()=>[c.value,nt(i),h.value],([y,v])=>{if(f(),!h.value||!y.length)return;const k=new IntersectionObserver(t,{root:nt(v),rootMargin:r,threshold:a});y.forEach(w=>w&&k.observe(w)),f=()=>{k.disconnect(),f=Qe}},{immediate:s,flush:"post"}):Qe,p=()=>{f(),g(),h.value=!1};return St(p),{isSupported:u,isActive:h,pause(){f(),h.value=!1},resume(){h.value=!0},stop:p}}function Nx(e,t={}){const{window:n=Re,scrollTarget:i,threshold:r=0}=t,a=l.ref(!1);return Dx(e,o=>{let s=a.value,u=0;for(const c of o)c.time>=u&&(u=c.time,s=c.isIntersecting);a.value=s},{root:i,window:n,threshold:r}),a}function jx(e={}){const{initialValue:t=""}=e,n=wn(()=>typeof window<"u"&&"EyeDropper"in window),i=l.ref(t);async function r(a){if(!n.value)return;const s=await new window.EyeDropper().open(a);return i.value=s.sRGBHex,s}return{isSupported:n,sRGBHex:i,open:r}}const Ly=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Ix(e,t={}){const{document:n=Sh,autoExit:i=!1}=t,r=l.computed(()=>{var w;return(w=nt(e))!=null?w:n==null?void 0:n.querySelector("html")}),a=l.ref(!1),o=l.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(w=>n&&w in n||r.value&&w in r.value)),s=l.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(w=>n&&w in n||r.value&&w in r.value)),u=l.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(w=>n&&w in n||r.value&&w in r.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(w=>n&&w in n),f=wn(()=>r.value&&n&&o.value!==void 0&&s.value!==void 0&&u.value!==void 0),h=()=>c?(n==null?void 0:n[c])===r.value:!1,g=()=>{if(u.value){if(n&&n[u.value]!=null)return n[u.value];{const w=r.value;if((w==null?void 0:w[u.value])!=null)return!!w[u.value]}}return!1};async function p(){if(!(!f.value||!a.value)){if(s.value)if((n==null?void 0:n[s.value])!=null)await n[s.value]();else{const w=r.value;(w==null?void 0:w[s.value])!=null&&await w[s.value]()}a.value=!1}}async function y(){if(!f.value||a.value)return;g()&&await p();const w=r.value;o.value&&(w==null?void 0:w[o.value])!=null&&(await w[o.value](),a.value=!0)}async function v(){await(a.value?p():y())}const k=()=>{const w=g();(!w||w&&h())&&(a.value=w)};return ye(n,Ly,k,!1),ye(()=>nt(r),Ly,k,!1),i&&St(p),{isSupported:f,isFullscreen:a,enter:y,exit:p,toggle:v}}function Wx(e={}){const{enableHighAccuracy:t=!0,maximumAge:n=3e4,timeout:i=27e3,navigator:r=zs,immediate:a=!0}=e,o=wn(()=>r&&"geolocation"in r),s=l.ref(null),u=l.shallowRef(null),c=l.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function f(y){s.value=y.timestamp,c.value=y.coords,u.value=null}let h;function g(){o.value&&(h=r.geolocation.watchPosition(f,y=>u.value=y,{enableHighAccuracy:t,maximumAge:n,timeout:i}))}a&&g();function p(){h&&r&&r.geolocation.clearWatch(h)}return St(()=>{p()}),{isSupported:o,coords:c,locatedAt:s,error:u,resume:g,pause:p}}const Ox=["mousemove","mousedown","resize","keydown","touchstart","wheel"],zx=6e4;function Lx(e=zx,t={}){const{initialState:n=!1,listenForVisibilityChange:i=!0,events:r=Ox,window:a=Re,eventFilter:o=Cy(50)}=t,s=l.ref(n),u=l.ref(Eu());let c;const f=()=>{s.value=!1,clearTimeout(c),c=setTimeout(()=>s.value=!0,e)},h=Os(o,()=>{u.value=Eu(),f()});if(a){const g=a.document;for(const p of r)ye(a,p,h,{passive:!0});i&&ye(g,"visibilitychange",()=>{g.hidden||h()}),f()}return{idle:s,lastActive:u,reset:f}}const $x={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function $y(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:i=!1,initialValue:r={x:0,y:0},window:a=Re,target:o=a,scroll:s=!0,eventFilter:u}=e;let c=null;const f=l.ref(r.x),h=l.ref(r.y),g=l.ref(null),p=typeof t=="function"?t:$x[t],y=E=>{const I=p(E);c=E,I&&([f.value,h.value]=I,g.value="mouse")},v=E=>{if(E.touches.length>0){const I=p(E.touches[0]);I&&([f.value,h.value]=I,g.value="touch")}},k=()=>{if(!c||!a)return;const E=p(c);c instanceof MouseEvent&&E&&(f.value=E[0]+a.scrollX,h.value=E[1]+a.scrollY)},w=()=>{f.value=r.x,h.value=r.y},M=u?E=>u(()=>y(E),{}):E=>y(E),x=u?E=>u(()=>v(E),{}):E=>v(E),S=u?()=>u(()=>k(),{}):()=>k();if(o){const E={passive:!0};ye(o,["mousemove","dragover"],M,E),n&&t!=="movement"&&(ye(o,["touchstart","touchmove"],x,E),i&&ye(o,"touchend",w,E)),s&&t==="page"&&ye(a,"scroll",S,{passive:!0})}return{x:f,y:h,sourceType:g}}function Hx(e,t={}){const{handleOutside:n=!0,window:i=Re}=t,r=t.type||"page",{x:a,y:o,sourceType:s}=$y(t),u=l.ref(e??(i==null?void 0:i.document.body)),c=l.ref(0),f=l.ref(0),h=l.ref(0),g=l.ref(0),p=l.ref(0),y=l.ref(0),v=l.ref(!0);let k=()=>{};return i&&(k=l.watch([u,a,o],()=>{const w=nt(u);if(!w||!(w instanceof Element))return;const{left:M,top:x,width:S,height:E}=w.getBoundingClientRect();h.value=M+(r==="page"?i.pageXOffset:0),g.value=x+(r==="page"?i.pageYOffset:0),p.value=E,y.value=S;const I=a.value-h.value,A=o.value-g.value;v.value=S===0||E===0||I<0||A<0||I>S||A>E,(n||!v.value)&&(c.value=I,f.value=A)},{immediate:!0}),ye(document,"mouseleave",()=>{v.value=!0})),{x:a,y:o,sourceType:s,elementX:c,elementY:f,elementPositionX:h,elementPositionY:g,elementHeight:p,elementWidth:y,isOutside:v,stop:k}}function Rx(e={}){const{touch:t=!0,drag:n=!0,capture:i=!1,initialValue:r=!1,window:a=Re}=e,o=l.ref(r),s=l.ref(null);if(!a)return{pressed:o,sourceType:s};const u=h=>()=>{o.value=!0,s.value=h},c=()=>{o.value=!1,s.value=null},f=l.computed(()=>nt(e.target)||a);return ye(f,"mousedown",u("mouse"),{passive:!0,capture:i}),ye(a,"mouseleave",c,{passive:!0,capture:i}),ye(a,"mouseup",c,{passive:!0,capture:i}),n&&(ye(f,"dragstart",u("mouse"),{passive:!0,capture:i}),ye(a,"drop",c,{passive:!0,capture:i}),ye(a,"dragend",c,{passive:!0,capture:i})),t&&(ye(f,"touchstart",u("touch"),{passive:!0,capture:i}),ye(a,"touchend",c,{passive:!0,capture:i}),ye(a,"touchcancel",c,{passive:!0,capture:i})),{pressed:o,sourceType:s}}function Hy(e={}){const{window:t=Re}=e,n=t==null?void 0:t.navigator,i=wn(()=>n&&"connection"in n),r=l.ref(!0),a=l.ref(!1),o=l.ref(void 0),s=l.ref(void 0),u=l.ref(void 0),c=l.ref(void 0),f=l.ref(void 0),h=l.ref(void 0),g=l.ref("unknown"),p=i.value&&n.connection;function y(){n&&(r.value=n.onLine,o.value=r.value?void 0:Date.now(),s.value=r.value?Date.now():void 0,p&&(u.value=p.downlink,c.value=p.downlinkMax,h.value=p.effectiveType,f.value=p.rtt,a.value=p.saveData,g.value=p.type))}return t&&(ye(t,"offline",()=>{r.value=!1,o.value=Date.now()}),ye(t,"online",()=>{r.value=!0,s.value=Date.now()})),p&&ye(p,"change",y,!1),y(),{isSupported:l.readonly(i),isOnline:l.readonly(r),saveData:l.readonly(a),offlineAt:l.readonly(o),onlineAt:l.readonly(s),downlink:l.readonly(u),downlinkMax:l.readonly(c),effectiveType:l.readonly(h),rtt:l.readonly(f),type:l.readonly(g)}}function Ry(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,i=l.ref(new Date),r=()=>i.value=new Date,a=n==="requestAnimationFrame"?Dy(r,{immediate:!0}):Py(r,n,{immediate:!0});return t?{now:i,...a}:i}function Bx(e){const t=l.ref(),n=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return l.watch(()=>se(e),i=>{n(),i&&(t.value=URL.createObjectURL(i))},{immediate:!0}),St(n),l.readonly(t)}function By(e,t,n){if(typeof e=="function"||l.isReadonly(e))return l.computed(()=>vh(se(e),se(t),se(n)));const i=l.ref(e);return l.computed({get(){return i.value=vh(i.value,se(t),se(n))},set(r){i.value=vh(r,se(t),se(n))}})}function Vx(e){const{total:t=Number.POSITIVE_INFINITY,pageSize:n=10,page:i=1,onPageChange:r=Qe,onPageSizeChange:a=Qe,onPageCountChange:o=Qe}=e,s=By(n,1,Number.POSITIVE_INFINITY),u=l.computed(()=>Math.max(1,Math.ceil(se(t)/se(s)))),c=By(i,1,u),f=l.computed(()=>c.value===1),h=l.computed(()=>c.value===u.value);l.isRef(i)&&_y(i,c,{direction:l.isReadonly(i)?"ltr":"both"}),l.isRef(n)&&_y(n,s,{direction:l.isReadonly(n)?"ltr":"both"});function g(){c.value--}function p(){c.value++}const y={currentPage:c,currentPageSize:s,pageCount:u,isFirstPage:f,isLastPage:h,prev:g,next:p};return l.watch(c,()=>{r(l.reactive(y))}),l.watch(s,()=>{a(l.reactive(y))}),l.watch(u,()=>{o(l.reactive(y))}),y}function Fx(e={}){const{isOnline:t}=Hy(e);return t}function Ux(e={}){const{window:t=Re}=e,n=l.ref(!1),i=r=>{if(!t)return;r=r||t.event;const a=r.relatedTarget||r.toElement;n.value=!a};return t&&(ye(t,"mouseout",i,{passive:!0}),ye(t.document,"mouseleave",i,{passive:!0}),ye(t.document,"mouseenter",i,{passive:!0})),n}const Vy={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},Yx=Object.keys(Vy);function Xx(e={}){const{target:t=Re}=e,n=l.ref(!1),i=l.ref(e.initialValue||{});Object.assign(i.value,Vy,i.value);const r=a=>{n.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(a.pointerType))&&(i.value=rx(a,Yx,!1))};if(t){const a={passive:!0};ye(t,["pointerdown","pointermove","pointerup"],r,a),ye(t,"pointerleave",()=>n.value=!1,a)}return{...Ty(i),isInside:n}}function qx(e,t={}){const{document:n=Sh}=t,i=wn(()=>n&&"pointerLockElement"in n),r=l.ref(),a=l.ref();let o;i.value&&(ye(n,"pointerlockchange",()=>{var c;const f=(c=n.pointerLockElement)!=null?c:r.value;o&&f===o&&(r.value=n.pointerLockElement,r.value||(o=a.value=null))}),ye(n,"pointerlockerror",()=>{var c;const f=(c=n.pointerLockElement)!=null?c:r.value;if(o&&f===o){const h=n.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${h} pointer lock.`)}}));async function s(c){var f;if(!i.value)throw new Error("Pointer Lock API is not supported by your browser.");if(a.value=c instanceof Event?c.currentTarget:null,o=c instanceof Event?(f=nt(e))!=null?f:a.value:nt(c),!o)throw new Error("Target element undefined.");return o.requestPointerLock(),await xh(r).toBe(o)}async function u(){return r.value?(n.exitPointerLock(),await xh(r).toBeNull(),!0):!1}return{isSupported:i,element:r,triggerElement:a,lock:s,unlock:u}}function Gx(e){const t=xr("(prefers-color-scheme: light)",e),n=xr("(prefers-color-scheme: dark)",e);return l.computed(()=>n.value?"dark":t.value?"light":"no-preference")}function Kx(e){const t=xr("(prefers-contrast: more)",e),n=xr("(prefers-contrast: less)",e),i=xr("(prefers-contrast: custom)",e);return l.computed(()=>t.value?"more":n.value?"less":i.value?"custom":"no-preference")}function Qx(e={}){const{window:t=Re}=e;if(!t)return l.ref(["en"]);const n=t.navigator,i=l.ref(n.languages);return ye(t,"languagechange",()=>{i.value=n.languages}),i}function Jx(e){const t=xr("(prefers-reduced-motion: reduce)",e);return l.computed(()=>t.value?"reduce":"no-preference")}const Zx=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],eS={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>e===1?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>e===1?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>e===1?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""};function tS(e){return e.toISOString().slice(0,10)}function nS(e,t={}){const{controls:n=!1,updateInterval:i=3e4}=t,{now:r,...a}=Ry({interval:i,controls:!0}),o=l.computed(()=>iS(new Date(se(e)),t,se(r)));return n?{timeAgo:o,...a}:o}function iS(e,t={},n=Date.now()){var i;const{max:r,messages:a=eS,fullDateFormatter:o=tS,units:s=Zx,showSecond:u=!1,rounding:c="round"}=t,f=typeof c=="number"?k=>+k.toFixed(c):Math[c],h=+n-+e,g=Math.abs(h);function p(k,w){return f(Math.abs(k)/w.value)}function y(k,w){const M=p(k,w),x=k>0,S=v(w.name,M,x);return v(x?"past":"future",S,x)}function v(k,w,M){const x=a[k];return typeof x=="function"?x(w,M):x.replace("{0}",w.toString())}if(g<6e4&&!u)return a.justNow;if(typeof r=="number"&&g>r)return o(new Date(e));if(typeof r=="string"){const k=(i=s.find(w=>w.name===r))==null?void 0:i.max;if(k&&g>k)return o(new Date(e))}for(const[k,w]of s.entries()){if(p(h,w)<=0&&s[k-1])return y(h,s[k-1]);if(g<w.max)return y(h,w)}return a.invalid}function rS(e={}){const{controls:t=!1,offset:n=0,immediate:i=!0,interval:r="requestAnimationFrame",callback:a}=e,o=l.ref(Eu()+n),s=()=>o.value=Eu()+n,u=a?()=>{s(),a(o.value)}:s,c=r==="requestAnimationFrame"?Dy(u,{immediate:i}):Py(u,r,{immediate:i});return t?{timestamp:o,...c}:o}function aS(e,t){const{containerStyle:n,wrapperProps:i,scrollTo:r,calculateRange:a,currentList:o,containerRef:s}="itemHeight"in t?lS(t,e):sS(t,e);return{list:o,scrollTo:r,containerProps:{ref:s,onScroll:()=>{a()},style:n},wrapperProps:i}}function Fy(e){const t=l.ref(null),n=zy(t),i=l.ref([]),r=l.shallowRef(e);return{state:l.ref({start:0,end:10}),source:r,currentList:i,size:n,containerRef:t}}function Uy(e,t,n){return i=>{if(typeof n=="number")return Math.ceil(i/n);const{start:r=0}=e.value;let a=0,o=0;for(let s=r;s<t.value.length;s++){const u=n(s);if(a+=u,o=s,a>i)break}return o-r}}function Yy(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let i=0,r=0;for(let a=0;a<e.value.length;a++){const o=t(a);if(i+=o,i>=n){r=a;break}}return r+1}}function Xy(e,t,n,i,{containerRef:r,state:a,currentList:o,source:s}){return()=>{const u=r.value;if(u){const c=n(e==="vertical"?u.scrollTop:u.scrollLeft),f=i(e==="vertical"?u.clientHeight:u.clientWidth),h=c-t,g=c+f+t;a.value={start:h<0?0:h,end:g>s.value.length?s.value.length:g},o.value=s.value.slice(a.value.start,a.value.end).map((p,y)=>({data:p,index:y+a.value.start}))}}}function qy(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((r,a,o)=>r+e(o),0)}function Gy(e,t,n,i){l.watch([e.width,e.height,t,n],()=>{i()})}function Ky(e,t){return l.computed(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,i,r)=>n+e(r),0))}const oS={horizontal:"scrollLeft",vertical:"scrollTop"};function Qy(e,t,n,i){return r=>{i.value&&(i.value[oS[e]]=n(r),t())}}function sS(e,t){const n=Fy(t),{state:i,source:r,currentList:a,size:o,containerRef:s}=n,u={overflowX:"auto"},{itemWidth:c,overscan:f=5}=e,h=Uy(i,r,c),g=Yy(r,c),p=Xy("horizontal",f,g,h,n),y=qy(c,r),v=l.computed(()=>y(i.value.start)),k=Ky(c,r);Gy(o,t,s,p);const w=Qy("horizontal",p,y,s),M=l.computed(()=>({style:{height:"100%",width:`${k.value-v.value}px`,marginLeft:`${v.value}px`,display:"flex"}}));return{scrollTo:w,calculateRange:p,wrapperProps:M,containerStyle:u,currentList:a,containerRef:s}}function lS(e,t){const n=Fy(t),{state:i,source:r,currentList:a,size:o,containerRef:s}=n,u={overflowY:"auto"},{itemHeight:c,overscan:f=5}=e,h=Uy(i,r,c),g=Yy(r,c),p=Xy("vertical",f,g,h,n),y=qy(c,r),v=l.computed(()=>y(i.value.start)),k=Ky(c,r);Gy(o,t,s,p);const w=Qy("vertical",p,y,s),M=l.computed(()=>({style:{width:"100%",height:`${k.value-v.value}px`,marginTop:`${v.value}px`}}));return{calculateRange:p,scrollTo:w,containerStyle:u,wrapperProps:M,currentList:a,containerRef:s}}function uS(e={}){const{window:t=Re}=e;if(!t)return l.ref(!1);const n=l.ref(t.document.hasFocus());return ye(t,"blur",()=>{n.value=!1}),ye(t,"focus",()=>{n.value=!0}),n}function dS(e={}){const{window:t=Re,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:a=!0,type:o="inner"}=e,s=l.ref(n),u=l.ref(i),c=()=>{t&&(o==="outer"?(s.value=t.outerWidth,u.value=t.outerHeight):a?(s.value=t.innerWidth,u.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight))};if(c(),er(c),ye("resize",c,{passive:!0}),r){const f=xr("(orientation: portrait)");l.watch(f,()=>c())}return{width:s,height:u}}const cS=l.defineComponent({name:"OnClickOutside",props:["as","options"],emits:["trigger"],setup(e,{slots:t,emit:n}){const i=l.ref();return cx(i,r=>{n("trigger",r)},e.options),()=>{if(t.default)return l.h(e.as||"div",{ref:i},t.default())}}}),Ft=mi?window:void 0;function _t(e){var t;const n=se(e);return(t=n==null?void 0:n.$el)!=null?t:n}function en(...e){let t,n,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,r]=e,t=Ft):[t,n,i,r]=e,!t)return Qe;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],o=()=>{a.forEach(f=>f()),a.length=0},s=(f,h,g,p)=>(f.addEventListener(h,g,p),()=>f.removeEventListener(h,g,p)),u=l.watch(()=>[_t(t),se(r)],([f,h])=>{if(o(),!f)return;const g=My(h)?{...h}:h;a.push(...n.flatMap(p=>i.map(y=>s(f,p,y,g))))},{immediate:!0,flush:"post"}),c=()=>{u(),o()};return St(c),c}let Jy=!1;function Zy(e,t,n={}){const{window:i=Ft,ignore:r=[],capture:a=!0,detectIframe:o=!1}=n;if(!i)return Qe;Au&&!Jy&&(Jy=!0,Array.from(i.document.body.children).forEach(p=>p.addEventListener("click",Qe)),i.document.documentElement.addEventListener("click",Qe));let s=!0;const u=p=>se(r).some(y=>{if(typeof y=="string")return Array.from(i.document.querySelectorAll(y)).some(v=>v===p.target||p.composedPath().includes(v));{const v=_t(y);return v&&(p.target===v||p.composedPath().includes(v))}}),c=p=>{const y=_t(e);if(!(!y||y===p.target||p.composedPath().includes(y))){if(p.detail===0&&(s=!u(p)),!s){s=!0;return}t(p)}};let f=!1;const h=[en(i,"click",p=>{f||(f=!0,setTimeout(()=>{f=!1},0),c(p))},{passive:!0,capture:a}),en(i,"pointerdown",p=>{const y=_t(e);s=!u(p)&&!!(y&&!p.composedPath().includes(y))},{passive:!0}),o&&en(i,"blur",p=>{setTimeout(()=>{var y;const v=_t(e);((y=i.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(v!=null&&v.contains(i.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>h.forEach(p=>p())}const Ls={[hi.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Zy(e,t.value,{capture:n});else{const[i,r]=t.value;e.__onClickOutside_stop=Zy(e,i,Object.assign({capture:n},r))}},[hi.unmounted](e){e.__onClickOutside_stop()}};function fS(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function e2(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=Ft,eventName:a="keydown",passive:o=!1,dedupe:s=!1}=i,u=fS(t);return en(r,a,f=>{f.repeat&&se(s)||u(f)&&n(f)},o)}const hS={[hi.mounted](e,t){var n,i;const r=(i=(n=t.arg)==null?void 0:n.split(","))!=null?i:!0;if(typeof t.value=="function")e2(r,t.value,{target:e});else{const[a,o]=t.value;e2(r,a,{target:e,...o})}}},mS=500,pS=10;function Ph(e,t,n){var i,r;const a=l.computed(()=>_t(e));let o,s,u,c=!1;function f(){o&&(clearTimeout(o),o=void 0),s=void 0,u=void 0,c=!1}function h(w){var M,x,S;const[E,I,A]=[u,s,c];if(f(),!(n!=null&&n.onMouseUp)||!I||!E||(M=n==null?void 0:n.modifiers)!=null&&M.self&&w.target!==a.value)return;(x=n==null?void 0:n.modifiers)!=null&&x.prevent&&w.preventDefault(),(S=n==null?void 0:n.modifiers)!=null&&S.stop&&w.stopPropagation();const W=w.x-I.x,$=w.y-I.y,D=Math.sqrt(W*W+$*$);n.onMouseUp(w.timeStamp-E,D,A)}function g(w){var M,x,S,E;(M=n==null?void 0:n.modifiers)!=null&&M.self&&w.target!==a.value||(f(),(x=n==null?void 0:n.modifiers)!=null&&x.prevent&&w.preventDefault(),(S=n==null?void 0:n.modifiers)!=null&&S.stop&&w.stopPropagation(),s={x:w.x,y:w.y},u=w.timeStamp,o=setTimeout(()=>{c=!0,t(w)},(E=n==null?void 0:n.delay)!=null?E:mS))}function p(w){var M,x,S,E;if((M=n==null?void 0:n.modifiers)!=null&&M.self&&w.target!==a.value||!s||(n==null?void 0:n.distanceThreshold)===!1)return;(x=n==null?void 0:n.modifiers)!=null&&x.prevent&&w.preventDefault(),(S=n==null?void 0:n.modifiers)!=null&&S.stop&&w.stopPropagation();const I=w.x-s.x,A=w.y-s.y;Math.sqrt(I*I+A*A)>=((E=n==null?void 0:n.distanceThreshold)!=null?E:pS)&&f()}const y={capture:(i=n==null?void 0:n.modifiers)==null?void 0:i.capture,once:(r=n==null?void 0:n.modifiers)==null?void 0:r.once},v=[en(a,"pointerdown",g,y),en(a,"pointermove",p,y),en(a,["pointerup","pointerleave"],h,y)];return()=>v.forEach(w=>w())}const gS=l.defineComponent({name:"OnLongPress",props:["as","options"],emits:["trigger"],setup(e,{slots:t,emit:n}){const i=l.ref();return Ph(i,r=>{n("trigger",r)},e.options),()=>{if(t.default)return l.h(e.as||"div",{ref:i},t.default())}}}),t2={[hi.mounted](e,t){typeof t.value=="function"?Ph(e,t.value,{modifiers:t.modifiers}):Ph(e,...t.value)}},yS=l.defineComponent({name:"UseActiveElement",setup(e,{slots:t}){const n=l.reactive({element:hx()});return()=>{if(t.default)return t.default(n)}}}),bS=l.defineComponent({name:"UseBattery",setup(e,{slots:t}){const n=l.reactive(mx(e));return()=>{if(t.default)return t.default(n)}}}),wS=l.defineComponent({name:"UseBrowserLocation",setup(e,{slots:t}){const n=l.reactive(px());return()=>{if(t.default)return t.default(n)}}}),vS=l.defineComponent({name:"UseClipboard",props:["source","read","navigator","copiedDuring","legacy"],setup(e,{slots:t}){const n=l.reactive(gx(e));return()=>{var i;return(i=t.default)==null?void 0:i.call(t,n)}}}),Wu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ou="__vueuse_ssr_handlers__",kS=MS();function MS(){return Ou in Wu||(Wu[Ou]=Wu[Ou]||{}),Wu[Ou]}function n2(e,t){return kS[e]||t}function CS(){const e=l.ref(!1),t=l.getCurrentInstance();return t&&l.onMounted(()=>{e.value=!0},t),e}function zu(e){const t=CS();return l.computed(()=>(t.value,!!e()))}function xS(e,t={}){const{window:n=Ft}=t,i=zu(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const a=l.ref(!1),o=c=>{a.value=c.matches},s=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",o):r.removeListener(o))},u=l.watchEffect(()=>{i.value&&(s(),r=n.matchMedia(se(e)),"addEventListener"in r?r.addEventListener("change",o):r.addListener(o),a.value=r.matches)});return St(()=>{u(),s(),r=void 0}),a}function SS(e){return xS("(prefers-color-scheme: dark)",e)}function _S(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const TS={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},i2="vueuse-storage";function PS(e,t,n,i={}){var r;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:f,window:h=Ft,eventFilter:g,onError:p=D=>{console.error(D)},initOnMounted:y}=i,v=(f?l.shallowRef:l.ref)(typeof t=="function"?t():t);if(!n)try{n=n2("getDefaultStorage",()=>{var D;return(D=Ft)==null?void 0:D.localStorage})()}catch(D){p(D)}if(!n)return v;const k=se(t),w=_S(k),M=(r=i.serializer)!=null?r:TS[w],{pause:x,resume:S}=Nu(v,()=>I(v.value),{flush:a,deep:o,eventFilter:g});h&&s&&er(()=>{n instanceof Storage?en(h,"storage",W):en(h,i2,$),y&&W()}),y||W();function E(D,z){if(h){const H={key:e,oldValue:D,newValue:z,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(i2,{detail:H}))}}function I(D){try{const z=n.getItem(e);if(D==null)E(z,null),n.removeItem(e);else{const H=M.write(D);z!==H&&(n.setItem(e,H),E(z,H))}}catch(z){p(z)}}function A(D){const z=D?D.newValue:n.getItem(e);if(z==null)return u&&k!=null&&n.setItem(e,M.write(k)),k;if(!D&&c){const H=M.read(z);return typeof c=="function"?c(H,k):w==="object"&&!Array.isArray(H)?{...k,...H}:H}else return typeof z!="string"?z:M.read(z)}function W(D){if(!(D&&D.storageArea!==n)){if(D&&D.key==null){v.value=k;return}if(!(D&&D.key!==e)){x();try{(D==null?void 0:D.newValue)!==M.write(v.value)&&(v.value=A(D))}catch(z){p(z)}finally{D?l.nextTick(S):S()}}}}function $(D){W(D.detail)}return v}const ES="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function AS(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:r=Ft,storage:a,storageKey:o="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:u,emitAuto:c,disableTransition:f=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},g=SS({window:r}),p=l.computed(()=>g.value?"dark":"light"),y=u||(o==null?Du(i):PS(o,i,a,{window:r,listenToStorageChanges:s})),v=l.computed(()=>y.value==="auto"?p.value:y.value),k=n2("updateHTMLAttrs",(S,E,I)=>{const A=typeof S=="string"?r==null?void 0:r.document.querySelector(S):_t(S);if(!A)return;const W=new Set,$=new Set;let D=null;if(E==="class"){const H=I.split(/\s/g);Object.values(h).flatMap(X=>(X||"").split(/\s/g)).filter(Boolean).forEach(X=>{H.includes(X)?W.add(X):$.add(X)})}else D={key:E,value:I};if(W.size===0&&$.size===0&&D===null)return;let z;f&&(z=r.document.createElement("style"),z.appendChild(document.createTextNode(ES)),r.document.head.appendChild(z));for(const H of W)A.classList.add(H);for(const H of $)A.classList.remove(H);D&&A.setAttribute(D.key,D.value),f&&(r.getComputedStyle(z).opacity,document.head.removeChild(z))});function w(S){var E;k(t,n,(E=h[S])!=null?E:S)}function M(S){e.onChanged?e.onChanged(S,w):w(S)}l.watch(v,M,{flush:"post",immediate:!0}),er(()=>M(v.value));const x=l.computed({get(){return c?y.value:v.value},set(S){y.value=S}});try{return Object.assign(x,{store:y,system:p,state:v})}catch{return x}}const DS=l.defineComponent({name:"UseColorMode",props:["selector","attribute","modes","onChanged","storageKey","storage","emitAuto"],setup(e,{slots:t}){const n=AS(e),i=l.reactive({mode:n,system:n.system,store:n.store});return()=>{if(t.default)return t.default(i)}}}),NS=l.defineComponent({name:"UseDark",props:["selector","attribute","valueDark","valueLight","onChanged","storageKey","storage"],setup(e,{slots:t}){const n=Cx(e),i=l.reactive({isDark:n,toggleDark:dx(n)});return()=>{if(t.default)return t.default(i)}}}),jS=l.defineComponent({name:"UseDeviceMotion",setup(e,{slots:t}){const n=l.reactive(xx());return()=>{if(t.default)return t.default(n)}}}),IS=l.defineComponent({name:"UseDeviceOrientation",setup(e,{slots:t}){const n=l.reactive(Sx());return()=>{if(t.default)return t.default(n)}}}),WS=l.defineComponent({name:"UseDevicePixelRatio",setup(e,{slots:t}){const n=l.reactive({pixelRatio:_x()});return()=>{if(t.default)return t.default(n)}}}),OS=l.defineComponent({name:"UseDevicesList",props:["onUpdated","requestPermissions","constraints"],setup(e,{slots:t}){const n=l.reactive(Tx(e));return()=>{if(t.default)return t.default(n)}}}),zS=l.defineComponent({name:"UseDocumentVisibility",setup(e,{slots:t}){const n=l.reactive({visibility:Px()});return()=>{if(t.default)return t.default(n)}}}),LS=l.defineComponent({name:"UseDraggable",props:["storageKey","storageType","initialValue","exact","preventDefault","stopPropagation","pointerTypes","as","handle","axis","onStart","onMove","onEnd","disabled","buttons","containerElement"],setup(e,{slots:t}){const n=l.ref(),i=l.computed(()=>{var f;return(f=e.handle)!=null?f:n.value}),r=l.computed(()=>{var f;return(f=e.containerElement)!=null?f:void 0}),a=l.computed(()=>!!e.disabled),o=e.storageKey&&Wy(e.storageKey,se(e.initialValue)||{x:0,y:0},mi?e.storageType==="session"?sessionStorage:localStorage:void 0),s=o||e.initialValue||{x:0,y:0},u=(f,h)=>{var g;(g=e.onEnd)==null||g.call(e,f,h),o&&(o.value.x=f.x,o.value.y=f.y)},c=l.reactive(Ex(n,{...e,handle:i,initialValue:s,onEnd:u,disabled:a,containerElement:r}));return()=>{if(t.default)return l.h(e.as||"div",{ref:n,style:`touch-action:none;${c.style}`},t.default(c))}}}),$S=l.defineComponent({name:"UseElementBounding",props:["box","as"],setup(e,{slots:t}){const n=l.ref(),i=l.reactive(Ax(n));return()=>{if(t.default)return l.h(e.as||"div",{ref:n},t.default(i))}}});function r2(e,t={}){const{delayEnter:n=0,delayLeave:i=0,window:r=Ft}=t,a=l.ref(!1);let o;const s=u=>{const c=u?n:i;o&&(clearTimeout(o),o=void 0),c?o=setTimeout(()=>a.value=u,c):a.value=u};return r&&(en(e,"mouseenter",()=>s(!0),{passive:!0}),en(e,"mouseleave",()=>s(!1),{passive:!0})),a}const HS={[hi.mounted](e,t){const n=t.value;if(typeof n=="function"){const i=r2(e);l.watch(i,r=>n(r))}else{const[i,r]=n,a=r2(e,r);l.watch(a,o=>i(o))}}},RS=l.defineComponent({name:"UseElementSize",props:["width","height","box","as"],setup(e,{slots:t}){const n=l.ref(),i=l.reactive(zy(n,{width:e.width,height:e.height},{box:e.box}));return()=>{if(t.default)return l.h(e.as||"div",{ref:n},t.default(i))}}});function Eh(e,t,n={}){const{window:i=Ft,...r}=n;let a;const o=zu(()=>i&&"ResizeObserver"in i),s=()=>{a&&(a.disconnect(),a=void 0)},u=l.computed(()=>{const h=se(e);return Array.isArray(h)?h.map(g=>_t(g)):[_t(h)]}),c=l.watch(u,h=>{if(s(),o.value&&i){a=new ResizeObserver(t);for(const g of h)g&&a.observe(g,r)}},{immediate:!0,flush:"post"}),f=()=>{s(),c()};return St(f),{isSupported:o,stop:f}}function BS(e,t={width:0,height:0},n={}){const{window:i=Ft,box:r="content-box"}=n,a=l.computed(()=>{var h,g;return(g=(h=_t(e))==null?void 0:h.namespaceURI)==null?void 0:g.includes("svg")}),o=l.ref(t.width),s=l.ref(t.height),{stop:u}=Eh(e,([h])=>{const g=r==="border-box"?h.borderBoxSize:r==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(i&&a.value){const p=_t(e);if(p){const y=p.getBoundingClientRect();o.value=y.width,s.value=y.height}}else if(g){const p=Array.isArray(g)?g:[g];o.value=p.reduce((y,{inlineSize:v})=>y+v,0),s.value=p.reduce((y,{blockSize:v})=>y+v,0)}else o.value=h.contentRect.width,s.value=h.contentRect.height},n);er(()=>{const h=_t(e);h&&(o.value="offsetWidth"in h?h.offsetWidth:t.width,s.value="offsetHeight"in h?h.offsetHeight:t.height)});const c=l.watch(()=>_t(e),h=>{o.value=h?t.width:0,s.value=h?t.height:0});function f(){u(),c()}return{width:o,height:s,stop:f}}const VS={[hi.mounted](e,t){var n;const i=typeof t.value=="function"?t.value:(n=t.value)==null?void 0:n[0],r=typeof t.value=="function"?[]:t.value.slice(1),{width:a,height:o}=BS(e,...r);l.watch([a,o],([s,u])=>i({width:s,height:u}))}},FS=l.defineComponent({name:"UseElementVisibility",props:["as"],setup(e,{slots:t}){const n=l.ref(),i=l.reactive({isVisible:Nx(n)});return()=>{if(t.default)return l.h(e.as||"div",{ref:n},t.default(i))}}});function Ah(e,t,n={}){const{root:i,rootMargin:r="0px",threshold:a=0,window:o=Ft,immediate:s=!0}=n,u=zu(()=>o&&"IntersectionObserver"in o),c=l.computed(()=>{const y=se(e);return(Array.isArray(y)?y:[y]).map(_t).filter(Pu)});let f=Qe;const h=l.ref(s),g=u.value?l.watch(()=>[c.value,_t(i),h.value],([y,v])=>{if(f(),!h.value||!y.length)return;const k=new IntersectionObserver(t,{root:_t(v),rootMargin:r,threshold:a});y.forEach(w=>w&&k.observe(w)),f=()=>{k.disconnect(),f=Qe}},{immediate:s,flush:"post"}):Qe,p=()=>{f(),g(),h.value=!1};return St(p),{isSupported:u,isActive:h,pause(){f(),h.value=!1},resume(){h.value=!0},stop:p}}function Dh(e,t={}){const{window:n=Ft,scrollTarget:i,threshold:r=0}=t,a=l.ref(!1);return Ah(e,o=>{let s=a.value,u=0;for(const c of o)c.time>=u&&(u=c.time,s=c.isIntersecting);a.value=s},{root:i,window:n,threshold:r}),a}const US={[hi.mounted](e,t){if(typeof t.value=="function"){const n=t.value,i=Dh(e);l.watch(i,r=>n(r),{immediate:!0})}else{const[n,i]=t.value,r=Dh(e,i);l.watch(r,a=>n(a),{immediate:!0})}}},YS=l.defineComponent({name:"UseEyeDropper",props:{sRGBHex:String},setup(e,{slots:t}){const n=l.reactive(jx());return()=>{if(t.default)return t.default(n)}}}),XS=l.defineComponent({name:"UseFullscreen",props:["as"],setup(e,{slots:t}){const n=l.ref(),i=l.reactive(Ix(n));return()=>{if(t.default)return l.h(e.as||"div",{ref:n},t.default(i))}}}),qS=l.defineComponent({name:"UseGeolocation",props:["enableHighAccuracy","maximumAge","timeout","navigator"],setup(e,{slots:t}){const n=l.reactive(Wx(e));return()=>{if(t.default)return t.default(n)}}}),GS=l.defineComponent({name:"UseIdle",props:["timeout","events","listenForVisibilityChange","initialState"],setup(e,{slots:t}){const n=l.reactive(Lx(e.timeout,e));return()=>{if(t.default)return t.default(n)}}});function KS(e,t,n){const{immediate:i=!0,delay:r=0,onError:a=Qe,onSuccess:o=Qe,resetOnExecute:s=!0,shallow:u=!0,throwError:c}=n??{},f=u?l.shallowRef(t):l.ref(t),h=l.ref(!1),g=l.ref(!1),p=l.shallowRef(void 0);async function y(w=0,...M){s&&(f.value=t),p.value=void 0,h.value=!1,g.value=!0,w>0&&await Mh(w);const x=typeof e=="function"?e(...M):e;try{const S=await x;f.value=S,h.value=!0,o(S)}catch(S){if(p.value=S,a(S),c)throw S}finally{g.value=!1}return f.value}i&&y(r);const v={state:f,isReady:h,isLoading:g,error:p,execute:y};function k(){return new Promise((w,M)=>{xh(g).toBe(!1).then(()=>w(v)).catch(M)})}return{...v,then(w,M){return k().then(w,M)}}}async function QS(e){return new Promise((t,n)=>{const i=new Image,{src:r,srcset:a,sizes:o,class:s,loading:u,crossorigin:c,referrerPolicy:f}=e;i.src=r,a&&(i.srcset=a),o&&(i.sizes=o),s&&(i.className=s),u&&(i.loading=u),c&&(i.crossOrigin=c),f&&(i.referrerPolicy=f),i.onload=()=>t(i),i.onerror=n})}function JS(e,t={}){const n=KS(()=>QS(se(e)),void 0,{resetOnExecute:!0,...t});return l.watch(()=>se(e),()=>n.execute(t.delay),{deep:!0}),n}const ZS=l.defineComponent({name:"UseImage",props:["src","srcset","sizes","as","alt","class","loading","crossorigin","referrerPolicy"],setup(e,{slots:t}){const n=l.reactive(JS(e));return()=>n.isLoading&&t.loading?t.loading(n):n.error&&t.error?t.error(n.error):t.default?t.default(n):l.h(e.as||"img",e)}});function Lu(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const a2=1;function Nh(e,t={}){const{throttle:n=0,idle:i=200,onStop:r=Qe,onScroll:a=Qe,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:u="auto",window:c=Ft,onError:f=A=>{console.error(A)}}=t,h=l.ref(0),g=l.ref(0),p=l.computed({get(){return h.value},set(A){v(A,void 0)}}),y=l.computed({get(){return g.value},set(A){v(void 0,A)}});function v(A,W){var $,D,z,H;if(!c)return;const X=se(e);if(!X)return;(z=X instanceof Document?c.document.body:X)==null||z.scrollTo({top:($=se(W))!=null?$:y.value,left:(D=se(A))!=null?D:p.value,behavior:se(u)});const re=((H=X==null?void 0:X.document)==null?void 0:H.documentElement)||(X==null?void 0:X.documentElement)||X;p!=null&&(h.value=re.scrollLeft),y!=null&&(g.value=re.scrollTop)}const k=l.ref(!1),w=l.reactive({left:!0,right:!1,top:!0,bottom:!1}),M=l.reactive({left:!1,right:!1,top:!1,bottom:!1}),x=A=>{k.value&&(k.value=!1,M.left=!1,M.right=!1,M.top=!1,M.bottom=!1,r(A))},S=Sy(x,n+i),E=A=>{var W;if(!c)return;const $=((W=A==null?void 0:A.document)==null?void 0:W.documentElement)||(A==null?void 0:A.documentElement)||_t(A),{display:D,flexDirection:z}=getComputedStyle($),H=$.scrollLeft;M.left=H<h.value,M.right=H>h.value;const X=Math.abs(H)<=(o.left||0),re=Math.abs(H)+$.clientWidth>=$.scrollWidth-(o.right||0)-a2;D==="flex"&&z==="row-reverse"?(w.left=re,w.right=X):(w.left=X,w.right=re),h.value=H;let ne=$.scrollTop;A===c.document&&!ne&&(ne=c.document.body.scrollTop),M.top=ne<g.value,M.bottom=ne>g.value;const q=Math.abs(ne)<=(o.top||0),Z=Math.abs(ne)+$.clientHeight>=$.scrollHeight-(o.bottom||0)-a2;D==="flex"&&z==="column-reverse"?(w.top=Z,w.bottom=q):(w.top=q,w.bottom=Z),g.value=ne},I=A=>{var W;if(!c)return;const $=(W=A.target.documentElement)!=null?W:A.target;E($),k.value=!0,S(A),a(A)};return en(e,"scroll",n?ox(I,n,!0,!1):I,s),er(()=>{try{const A=se(e);if(!A)return;E(A)}catch(A){f(A)}}),en(e,"scrollend",x,s),{x:p,y,isScrolling:k,arrivedState:w,directions:M,measure(){const A=se(e);c&&A&&E(A)}}}function o2(e,t,n={}){var i;const{direction:r="bottom",interval:a=100,canLoadMore:o=()=>!0}=n,s=l.reactive(Nh(e,{...n,offset:{[r]:(i=n.distance)!=null?i:0,...n.offset}})),u=l.ref(),c=l.computed(()=>!!u.value),f=l.computed(()=>Lu(se(e))),h=Dh(f);function g(){if(s.measure(),!f.value||!h.value||!o(f.value))return;const{scrollHeight:y,clientHeight:v,scrollWidth:k,clientWidth:w}=f.value,M=r==="bottom"||r==="top"?y<=v:k<=w;(s.arrivedState[r]||M)&&(u.value||(u.value=Promise.all([t(s),new Promise(x=>setTimeout(x,a))]).finally(()=>{u.value=null,l.nextTick(()=>g())})))}const p=l.watch(()=>[s.arrivedState[r],h.value],g,{immediate:!0});return lx(p),{isLoading:c,reset(){l.nextTick(()=>g())}}}const e_={[hi.mounted](e,t){typeof t.value=="function"?o2(e,t.value):o2(e,...t.value)}},t_={[hi.mounted](e,t){typeof t.value=="function"?Ah(e,t.value):Ah(e,...t.value)}},n_=l.defineComponent({name:"UseMouse",props:["touch","resetOnTouchEnds","initialValue"],setup(e,{slots:t}){const n=l.reactive($y(e));return()=>{if(t.default)return t.default(n)}}}),i_=l.defineComponent({name:"UseMouseElement",props:["handleOutside","as"],setup(e,{slots:t}){const n=l.ref(),i=l.reactive(Hx(n,e));return()=>{if(t.default)return l.h(e.as||"div",{ref:n},t.default(i))}}}),r_=l.defineComponent({name:"UseMousePressed",props:["touch","initialValue","as"],setup(e,{slots:t}){const n=l.ref(),i=l.reactive(Rx({...e,target:n}));return()=>{if(t.default)return l.h(e.as||"div",{ref:n},t.default(i))}}}),a_=l.defineComponent({name:"UseNetwork",setup(e,{slots:t}){const n=l.reactive(Hy());return()=>{if(t.default)return t.default(n)}}}),o_=l.defineComponent({name:"UseNow",props:["interval"],setup(e,{slots:t}){const n=l.reactive(Ry({...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),s_=l.defineComponent({name:"UseObjectUrl",props:["object"],setup(e,{slots:t}){const n=Du(e,"object"),i=Bx(n);return()=>{if(t.default&&i.value)return t.default(i)}}}),l_=l.defineComponent({name:"UseOffsetPagination",props:["total","page","pageSize","onPageChange","onPageSizeChange","onPageCountChange"],emits:["page-change","page-size-change","page-count-change"],setup(e,{slots:t,emit:n}){const i=l.reactive(Vx({...e,onPageChange(...r){var a;(a=e.onPageChange)==null||a.call(e,...r),n("page-change",...r)},onPageSizeChange(...r){var a;(a=e.onPageSizeChange)==null||a.call(e,...r),n("page-size-change",...r)},onPageCountChange(...r){var a;(a=e.onPageCountChange)==null||a.call(e,...r),n("page-count-change",...r)}}));return()=>{if(t.default)return t.default(i)}}}),u_=l.defineComponent({name:"UseOnline",setup(e,{slots:t}){const n=l.reactive({isOnline:Fx()});return()=>{if(t.default)return t.default(n)}}}),d_=l.defineComponent({name:"UsePageLeave",setup(e,{slots:t}){const n=l.reactive({isLeft:Ux()});return()=>{if(t.default)return t.default(n)}}}),c_=l.defineComponent({name:"UsePointer",props:["pointerTypes","initialValue","target"],setup(e,{slots:t}){const n=l.ref(null),i=l.reactive(Xx({...e,target:e.target==="self"?n:Ft}));return()=>{if(t.default)return t.default(i,{ref:n})}}}),f_=l.defineComponent({name:"UsePointerLock",props:["as"],setup(e,{slots:t}){const n=l.ref(),i=l.reactive(qx(n));return()=>{if(t.default)return l.h(e.as||"div",{ref:n},t.default(i))}}}),h_=l.defineComponent({name:"UsePreferredColorScheme",setup(e,{slots:t}){const n=l.reactive({colorScheme:Gx()});return()=>{if(t.default)return t.default(n)}}}),m_=l.defineComponent({name:"UsePreferredContrast",setup(e,{slots:t}){const n=l.reactive({contrast:Kx()});return()=>{if(t.default)return t.default(n)}}}),p_=l.defineComponent({name:"UsePreferredDark",setup(e,{slots:t}){const n=l.reactive({prefersDark:Th()});return()=>{if(t.default)return t.default(n)}}}),g_=l.defineComponent({name:"UsePreferredLanguages",setup(e,{slots:t}){const n=l.reactive({languages:Qx()});return()=>{if(t.default)return t.default(n)}}}),y_=l.defineComponent({name:"UsePreferredReducedMotion",setup(e,{slots:t}){const n=l.reactive({motion:Jx()});return()=>{if(t.default)return t.default(n)}}}),b_={[hi.mounted](e,t){typeof t.value=="function"?Eh(e,t.value):Eh(e,...t.value)}};function w_(e,t,n={}){const{window:i=Ft,...r}=n;let a;const o=zu(()=>i&&"MutationObserver"in i),s=()=>{a&&(a.disconnect(),a=void 0)},u=l.computed(()=>{const g=se(e),p=(Array.isArray(g)?g:[g]).map(_t).filter(Pu);return new Set(p)}),c=l.watch(()=>u.value,g=>{s(),o.value&&g.size&&(a=new MutationObserver(t),g.forEach(p=>a.observe(p,r)))},{immediate:!0,flush:"post"}),f=()=>a==null?void 0:a.takeRecords(),h=()=>{c(),s()};return St(h),{isSupported:o,stop:h,takeRecords:f}}function $u(e,t,n={}){const{window:i=Ft,initialValue:r,observe:a=!1}=n,o=l.ref(r),s=l.computed(()=>{var c;return _t(t)||((c=i==null?void 0:i.document)==null?void 0:c.documentElement)});function u(){var c;const f=se(e),h=se(s);if(h&&i&&f){const g=(c=i.getComputedStyle(h).getPropertyValue(f))==null?void 0:c.trim();o.value=g||r}}return a&&w_(s,u,{attributeFilter:["style","class"],window:i}),l.watch([s,()=>se(e)],(c,f)=>{f[0]&&f[1]&&f[0].style.removeProperty(f[1]),u()},{immediate:!0}),l.watch(o,c=>{var f;const h=se(e);(f=s.value)!=null&&f.style&&h&&(c==null?s.value.style.removeProperty(h):s.value.style.setProperty(h,c))}),o}const s2="--vueuse-safe-area-top",l2="--vueuse-safe-area-right",u2="--vueuse-safe-area-bottom",d2="--vueuse-safe-area-left";function v_(){const e=l.ref(""),t=l.ref(""),n=l.ref(""),i=l.ref("");if(mi){const a=$u(s2),o=$u(l2),s=$u(u2),u=$u(d2);a.value="env(safe-area-inset-top, 0px)",o.value="env(safe-area-inset-right, 0px)",s.value="env(safe-area-inset-bottom, 0px)",u.value="env(safe-area-inset-left, 0px)",r(),en("resize",Sy(r))}function r(){e.value=Hu(s2),t.value=Hu(l2),n.value=Hu(u2),i.value=Hu(d2)}return{top:e,right:t,bottom:n,left:i,update:r}}function Hu(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}const k_=l.defineComponent({name:"UseScreenSafeArea",props:{top:Boolean,right:Boolean,bottom:Boolean,left:Boolean},setup(e,{slots:t}){const{top:n,right:i,bottom:r,left:a}=v_();return()=>{if(t.default)return l.h("div",{style:{paddingTop:e.top?n.value:"",paddingRight:e.right?i.value:"",paddingBottom:e.bottom?r.value:"",paddingLeft:e.left?a.value:"",boxSizing:"border-box",maxHeight:"100vh",maxWidth:"100vw",overflow:"auto"}},t.default())}}}),M_={[hi.mounted](e,t){if(typeof t.value=="function"){const n=t.value,i=Nh(e,{onScroll(){n(i)},onStop(){n(i)}})}else{const[n,i]=t.value,r=Nh(e,{...i,onScroll(a){var o;(o=i.onScroll)==null||o.call(i,a),n(r)},onStop(a){var o;(o=i.onStop)==null||o.call(i,a),n(r)}})}}};function c2(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:c2(n)}}function C_(e){const t=e||window.event,n=t.target;return c2(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const jh=new WeakMap;function x_(e,t=!1){const n=l.ref(t);let i=null,r="";l.watch(Du(e),s=>{const u=Lu(se(s));if(u){const c=u;if(jh.get(c)||jh.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(r=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const a=()=>{const s=Lu(se(e));!s||n.value||(Au&&(i=en(s,"touchmove",u=>{C_(u)},{passive:!1})),s.style.overflow="hidden",n.value=!0)},o=()=>{const s=Lu(se(e));!s||!n.value||(Au&&(i==null||i()),s.style.overflow=r,jh.delete(s),n.value=!1)};return St(o),l.computed({get(){return n.value},set(s){s?a():o()}})}function S_(){let e=!1;const t=l.ref(!1);return(n,i)=>{if(t.value=i.value,e)return;e=!0;const r=x_(n,i.value);l.watch(t,a=>r.value=a)}}const __=S_(),T_=l.defineComponent({name:"UseTimeAgo",props:["time","updateInterval","max","fullDateFormatter","messages","showSecond"],setup(e,{slots:t}){const n=l.reactive(nS(()=>e.time,{...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),P_=l.defineComponent({name:"UseTimestamp",props:["immediate","interval","offset"],setup(e,{slots:t}){const n=l.reactive(rS({...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),E_=l.defineComponent({name:"UseVirtualList",props:["list","options","height"],setup(e,{slots:t,expose:n}){const{list:i}=l.toRefs(e),{list:r,containerProps:a,wrapperProps:o,scrollTo:s}=aS(i,e.options);return n({scrollTo:s}),a.style&&typeof a.style=="object"&&!Array.isArray(a.style)&&(a.style.height=e.height||"300px"),()=>l.h("div",{...a},[l.h("div",{...o.value},r.value.map(u=>l.h("div",{style:{overflow:"hidden",height:u.height}},t.default?t.default(u):"Please set content!")))])}}),A_=l.defineComponent({name:"UseWindowFocus",setup(e,{slots:t}){const n=l.reactive({focused:uS()});return()=>{if(t.default)return t.default(n)}}}),D_=l.defineComponent({name:"UseWindowSize",props:["initialWidth","initialHeight"],setup(e,{slots:t}){const n=l.reactive(dS(e));return()=>{if(t.default)return t.default(n)}}}),N_=["data-testid"],j_=["data-testid"],I_=["open","data-testid"],vo=pe(l.defineComponent({__name:"SelectList",props:{isOpened:{type:Boolean,default:!1},disableOpen:{type:Boolean},headerClasses:{},optionsClasses:{},disabled:{type:Boolean},dataTestid:{default:"SelectList"}},emits:["change","focusout-options"],setup(e,{emit:t}){const n=e,i=l.reactive({isOpened:!1}),r=l.ref(null),a=l.ref(null),o=t;l.watchEffect(()=>i.isOpened=n.isOpened);const s=()=>{n.disabled||n.disableOpen||(i.isOpened=!i.isOpened,o("change",i.isOpened))},u=()=>{i.isOpened=!1,o("focusout-options"),o("change",i.isOpened)},c=()=>{if(a.value&&r.value&&i.isOpened){const f=a.value.getBoundingClientRect();r.value.style.top=`${f.top+f.height}px`}};return l.watch(()=>n.isOpened,()=>{i.isOpened=n.isOpened}),l.watch(()=>i.isOpened,c),l.onMounted(()=>{window.addEventListener("scroll",c,!0)}),l.onUnmounted(()=>{window.removeEventListener("scroll",c,!0)}),(f,h)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{class:"select-list-yui-kit","data-testid":n.dataTestid},[l.createElementVNode("div",{ref_key:"currentRef",ref:a,class:l.normalizeClass(["select-list-yui-kit__current",{"active-yui-kit":i.isOpened},{"disabled-yui-kit":n.disabled},n==null?void 0:n.headerClasses]),tabindex:"0",onKeyup:l.withKeys(s,["enter"]),onClick:s,"data-testid":`${n.dataTestid}-Current`},[l.renderSlot(f.$slots,"header",{},void 0,!0)],42,j_),l.withDirectives(l.createElementVNode("ul",{ref_key:"dropdownRef",ref:r,class:l.normalizeClass(["select-list-yui-kit__list",n==null?void 0:n.optionsClasses]),open:i.isOpened,"data-testid":`${n.dataTestid}-OptionsList`},[l.renderSlot(f.$slots,"options",{},void 0,!0)],10,I_),[[l.vShow,i.isOpened]])],8,N_)),[[l.unref(Ls),u,void 0,{bubble:!0}]])}}),[["__scopeId","data-v-28eb797a"]]);function $s(e){return e!==null&&typeof e=="object"&&"key"in e}function f2(e){return e!==null&&Array.isArray(e)&&typeof e[0]=="object"&&"key"in e[0]}const Ih=e=>e!==null&&typeof e=="object"&&"hint"in e,Hs=e=>e!==null&&Array.isArray(e)&&Ih(e[0]),W_=["onClick","data-testid"],O_={class:"options__item"},z_={class:"options__value truncate-yui-kit"},L_={key:0,class:"options__used"},Wh=pe(l.defineComponent({__name:"Options",props:{options:{},defaultOption:{},class:{},disabled:{type:Boolean},dataTestid:{default:"Options"}},emits:["change"],setup(e,{emit:t}){const n=e,i=l.reactive({choosedOption:n.defaultOption??(n.options[0]||""),lengthOption:0});l.watch(()=>n.defaultOption,()=>{n.defaultOption?i.choosedOption=n.defaultOption:i.choosedOption=""},{immediate:!0});const r=t,a=l.computed(()=>({"select-list-yui-kit__item":!0,"truncate-yui-kit":!0})),o=c=>{i.choosedOption=c,$s(i.choosedOption)?r("change",i.choosedOption.key):r("change",i.choosedOption)},s=c=>{let f=!1;return $s(c)?$s(i.choosedOption)?c.value===i.choosedOption.value&&(f=!0):((c.key==="null"||c.key===null)&&i.choosedOption===""&&(f=!0),c.value===i.choosedOption&&(f=!0)):$s(i.choosedOption)?c===i.choosedOption.value&&(f=!0):c===i.choosedOption&&(f=!0),{active:f}},u=c=>Ih(c)?c.hint:$s(c)?c.value:c;return(c,f)=>(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.options,(h,g)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:g},[l.createElementVNode("li",{class:l.normalizeClass([a.value,s(h),n.class]),onClick:()=>o(h),"data-testid":`${n.dataTestid}-${g}`},[l.createElementVNode("div",O_,[l.createElementVNode("div",z_,l.toDisplayString(u(h)),1),typeof h=="object"&&(h!=null&&h.used)?(l.openBlock(),l.createElementBlock("div",L_)):l.createCommentVNode("",!0)]),l.renderSlot(c.$slots,"option",{inx:g},void 0,!0)],10,W_),l.renderSlot(c.$slots,"default",{},void 0,!0)],64))),128))}}),[["__scopeId","data-v-3b9e7c21"]]),$_=["data-testid"],Oh=pe(l.defineComponent({__name:"Dropdown",props:{options:{},defaultOption:{},class:{},disabled:{type:Boolean,default:!1},dataTestid:{default:"Dropdown"}},emits:["change"],setup(e,{emit:t}){const n=e,i=l.reactive({choosedOption:n.defaultOption||n.options[0]||"",isOpened:!1}),r=t,a=s=>{i.isOpened=s},o=s=>{let u;if(f2(n.options)){const c=n.options.find(f=>f.key===s);i.choosedOption=(c==null?void 0:c.value)||s,u=c==null?void 0:c.key}else i.choosedOption=s;i.isOpened=!1,r("change",u||s)};return l.watch(()=>n.defaultOption,()=>{n.defaultOption&&(i.choosedOption=n.defaultOption)}),l.onMounted(()=>{f2(n.options)&&(i.choosedOption=n.defaultOption||n.options[0].value)}),(s,u)=>(l.openBlock(),l.createBlock(vo,{onChange:a,"is-opened":i.isOpened,class:l.normalizeClass([n.class,"dropdown-yui-kit"]),disabled:n.disabled,"data-testid":n.dataTestid},{header:l.withCtx(()=>[l.createElementVNode("span",{class:"truncate-yui-kit dropdown-yui-kit__text","data-testid":`${n.dataTestid}-SelectedText`},l.toDisplayString(i.choosedOption),9,$_),i.isOpened?(l.openBlock(),l.createBlock(ve,{key:0,name:l.unref(ce).chevronUp,"data-testid":`${n.dataTestid}-ArrowUp`},null,8,["name","data-testid"])):l.createCommentVNode("",!0),i.isOpened?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(ve,{key:1,name:l.unref(ce).chevronDown,"data-testid":`${n.dataTestid}-ArrowDown`},null,8,["name","data-testid"]))]),options:l.withCtx(()=>[l.createVNode(Wh,{options:n.options,"default-option":n.defaultOption,onChange:o,"data-testid":`${n.dataTestid}-Options`},null,8,["options","default-option","data-testid"])]),_:1},8,["is-opened","class","disabled","data-testid"]))}}),[["__scopeId","data-v-446a42d7"]]);/**
|
|
513
|
+
`},yh=Object.freeze(Object.defineProperty({__proto__:null,action:L7,addPlus:h7,addUser:PC,alertTriangle:_8,archive:k7,arrowDown:N8,arrowLeft:A8,arrowUp:D8,atSign:MC,baseDetail:c7,baseOfAssemblyUnits:P7,baseOfEquipmentAndInventory:F7,baseProduct:f7,bgNotContent:u7,bookOpen:S7,calendar:pC,chartLine:_7,checkbox:$8,chevronDown:W8,chevronLeft:z8,chevronRight:O8,chevronUp:L8,closeTag:yC,closeVision:m7,company:$7,copy:uC,crossLarge:lC,crossSmall:sC,dark:H8,deleteSmall:p7,document:d7,editing:X7,equipmentBase:E7,exit:F8,exitBig:R8,exitCircle:U8,exitSmall:B8,externalLink:V8,eye:fC,eyeOff:hC,fileDatabase:j7,fileText:rC,files:tC,filter:l7,folder:oC,gitPullRequest:aC,handSignEmoji:mC,help:T8,info:eC,leftBig:X8,leftBigSmall:Y8,light:q8,logout:AC,mainPage:I7,marriage:T7,menuArchive:M7,menuClose:C7,menuOpen:x7,minus:Z8,moonFill:E8,moreHorizontal:nC,moreVertical:iC,move:cC,noDistrub:EC,notification:P8,notificationYes:G8,openDocument:wC,openVision:g7,paint:gC,paperClip:q7,pin:_C,planeRight:xC,plus:J8,plus16:Q8,plusSmall:K8,printer:w7,production:H7,profile:t7,profileIcon:e7,read:TC,remains:kC,reports:Y7,reset:dC,rightBig:n7,rightSmall:i7,search:s7,searchNormal:o7,settings:r7,settingsDark:a7,shadedArrowDown:G7,shadedArrowLeft:Q7,shadedArrowRight:K7,shadedArrowUp:J7,shippingTasks:O7,shopping:W7,sidebar:SC,slashCircle:bC,smile:CC,star:Z7,stepArrowDown:I8,stepArrowUp:j8,supplierDatabase:A7,theBaseOfTheTool:N7,theComplaint:V7,theDatabaseOfMaterials:D7,time:vC,trash:y7,trashSmall:b7,uploadCloud:v7,usersGroup:U7,warehouse:z7,wastes:R7,writeDowns:B7},Symbol.toStringTag,{value:"Module"})),DC=["data-testid","fill","viewBox"],NC=["innerHTML"],jC=l.defineComponent({__name:"Icon",props:{height:{},width:{},name:{},color:{},dataTestid:{default:"Icon"}},setup(e){const t=e,n=l.computed(()=>({color:t.color,width:`${t.width}px`,height:`${t.height}px`})),i=a=>a.replace(/-./g,o=>o[1].toUpperCase()),r=l.computed(()=>yh[i(t.name)]);return(a,o)=>{var s,u,c;return l.openBlock(),l.createElementBlock("svg",{class:"icon-yui-kit","data-testid":t.dataTestid,style:l.normalizeStyle(n.value),fill:(s=l.unref(yh)[i(t.name)])==null?void 0:s.fill,viewBox:((u=l.unref(yh)[i(t.name)])==null?void 0:u.viewbox)||"0 0 24 24"},[l.createElementVNode("g",{innerHTML:(c=r.value)==null?void 0:c.path},null,8,NC)],12,DC)}}}),pe=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},ve=pe(jC,[["__scopeId","data-v-938d45fe"]]),IC=["data-testid"],WC=["data-testid"],OC=l.defineComponent({__name:"Badges",props:{text:{},type:{default:tt.default},choosed:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestid:{default:"Badges"}},emits:["choose"],setup(e,{expose:t,emit:n}){const i=e,r=n,a=l.reactive({choosed:i.choosed}),o=l.ref(null),s=()=>!!(o.value&&o.value.scrollWidth>o.value.clientWidth),u=l.ref(s()),c=l.computed(()=>({"base-yui-kit":!0,"default-yui-kit":i.type===tt.default,"blue-yui-kit":i.type===tt.blue,"light-blue-yui-kit":i.type===tt.lightBlue,"contrast-blue-yui-kit":i.type===tt.contrastBlue,"green-yui-kit":i.type===tt.green,"orange-yui-kit":i.type===tt.orange,"red-yui-kit":i.type===tt.red,"pink-yui-kit":i.type===tt.pink,"violet-yui-kit":i.type===tt.violet,"yellow-yui-kit":i.type===tt.yellow,"choosed-yui-kit":i.choosed||a.choosed})),f=()=>{r("choose",a.choosed,i.text),i.disabled||(a.choosed=!a.choosed)},h=new ResizeObserver(()=>{u.value=s()});return t({isSpanOverflow:u}),l.onMounted(()=>{o.value&&h.observe(o.value)}),(g,p)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(c.value),onClick:f,"data-testid":i.dataTestid},[l.createElementVNode("span",{ref_key:"spanRef",ref:o,class:"badges-text","data-testid":`${i.dataTestid}-BadgesText`},l.toDisplayString(i.text),9,WC),l.createVNode(ve,{class:"close-icon",width:10,height:10,"data-testid":`${i.dataTestid}-Icon`,name:l.unref(ce).closeTag,color:"var(--grey6)"},null,8,["data-testid","name"])],10,IC))}}),Vt=pe(OC,[["__scopeId","data-v-c5dec394"]]),zC=["data-testid"],LC=["data-testid"],$C=["data-testid"],HC=["data-testid"],RC=["data-testid"],BC=["data-testid"],VC=["title","onClick","data-testid"],FC=["data-testid"],UC=["onClick","data-testid"],YC=["data-testid"],bh=25,wh=pe(l.defineComponent({__name:"BreadCrumbs",props:{items:{},dataTestid:{default:"BreadCrumbs"}},emits:["click"],setup(e,{emit:t}){const n=e,i=t,r=l.reactive({items:[],crumbs:l.computed(()=>{const h=n.items.length<4?n.items.length-1:3;let g=[n.items[0],...n.items.slice(-h)];return n.items.length===1&&(g=[n.items[0]]),g.map(p=>(p.isSub=!1,p))}),subCrumbs:l.computed(()=>n.items.slice(1,-3).map(h=>(h.isSub=!0,h))),getClassesLink:l.computed(()=>(h,g=!1)=>({"bread-crumbs-yui-kit__link":!0,"disabled-yui-kit":!h.path,active:g})),getClassesSpan:l.computed(()=>h=>({"checked-yui-kit":h===r.crumbs.length-1})),fullTitle:l.computed(()=>h=>h.title.length>bh),isShowList:!1}),a=l.computed(()=>({crumbs:{"bread-crumbs-yui-kit__item":!0},subcrumbs:{"bread-subcrumbs-yui-kit__item":!0}})),o=l.computed(()=>({crumbs:{"bread-subcrumbs-yui-kit":!0,"scroll-yui-kit":!0,"active-yui-kit":r.isShowList}})),s=(h,g)=>{g!==r.items.length-1&&(h.isSub&&u(),n.items.forEach(({path:p},y)=>{p===h.path&&i("click",{title:h.title,path:h.path,inx:y+1})}))},u=()=>r.isShowList=!r.isShowList,c=h=>h.title.length>bh?h.title.slice(0,bh).trim()+"...":h.title,f=h=>r.items.length>=5&&h===1;return l.onMounted(()=>r.items=r.crumbs.concat(r.subCrumbs)),(h,g)=>(l.openBlock(),l.createElementBlock("ul",{class:"bread-crumbs-yui-kit","data-testid":n.dataTestid},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.items,(p,y)=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(a.value.crumbs),key:p.path,"data-testid":`${n.dataTestid}-Crumbs${y}`},[f(y)?(l.openBlock(),l.createElementBlock("div",{key:0,"data-testid":`${n.dataTestid}-ShowSubList${y}`},[l.createElementVNode("span",{class:"bread-crumbs-yui-kit--closed",onClick:u,"data-testid":`${n.dataTestid}-Closed${y}`},"...",8,HC),l.createElementVNode("ul",{class:l.normalizeClass(o.value.crumbs),"data-testid":`${n.dataTestid}-Crumbs${y}`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.subCrumbs,(v,k)=>(l.openBlock(),l.createElementBlock("li",{key:v.path,class:l.normalizeClass(a.value.subcrumbs),"data-testid":`${n.dataTestid}-SubCrumbs${k}`},[l.createElementVNode("span",{title:v.title,onClick:w=>s(v,k),class:l.normalizeClass({"disabled-yui-kit":!v.path}),"data-testid":`${n.dataTestid}-SubCrumbs-Title${k}`},l.toDisplayString(c(v)),11,VC)],10,BC))),128))],10,RC)],8,$C)):l.createCommentVNode("",!0),p.isSub?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(r.getClassesLink(p,y===r.crumbs.length-1)),"data-testid":`${n.dataTestid}-Classes${y}`},[l.createElementVNode("span",{class:l.normalizeClass(r.getClassesSpan(y)),onClick:v=>s(p,y),"data-testid":`${n.dataTestid}-Checked${y}`},[l.createTextVNode(l.toDisplayString(y!==r.crumbs.length-1?c(p):p.title),1),r.fullTitle(p)&&y!==r.crumbs.length-1?(l.openBlock(),l.createElementBlock("span",{key:0,"data-testid":`${n.dataTestid}-FullName`,class:"fullName-yui-kit"},l.toDisplayString(p.title),9,YC)):l.createCommentVNode("",!0)],10,UC),y!==r.crumbs.length-1?(l.openBlock(),l.createBlock(ve,{key:0,name:l.unref(ce).rightSmall,"data-testid":`${n.dataTestid}-Icon`},null,8,["name","data-testid"])):l.createCommentVNode("",!0)],10,FC))],10,LC))),128))],8,zC))}}),[["__scopeId","data-v-8724a2a0"]]);var Ai=(e=>(e.small="small",e.medium="medium",e.large="large",e.little="little",e))(Ai||{}),ut=(e=>(e.primary="primary",e.outline="outline",e.ghost="ghost",e.secondary="secondary",e.reject="reject",e.minor="minor",e))(ut||{});const XC=["disabled","data-testid"],qC=["data-testid"],GC=["data-testid"],KC=l.defineComponent({__name:"Button",props:{disabled:{type:Boolean,default:!1},size:{default:Ai.medium},type:{default:ut.primary},pill:{type:Boolean,default:!1},backgroundColor:{},color:{default:""},dataTestid:{default:"Button"}},emits:["click"],setup(e,{emit:t}){const n=e,i=t,r=l.computed(()=>({"button-yui-kit":!0,[n.size]:!0,"disabled-yui-kit":n.disabled,"pill-yui-kit":n.pill,"primary-yui-kit":n.type===ut.primary,"secondary-yui-kit":n.type===ut.secondary,"outline-yui-kit":n.type===ut.outline,"reject-yui-kit":n.type===ut.reject,"ghost-yui-kit":n.type===ut.ghost,"minor-yui-kit":n.type===ut.minor})),a=l.computed(()=>({backgroundColor:n.backgroundColor})),o=l.computed(()=>({color:n.color==="primary"||n.color==="secondary"?"black":n.color})),s=u=>i("click",u);return(u,c)=>(l.openBlock(),l.createElementBlock("button",{class:l.normalizeClass(r.value),disabled:n.disabled,tabindex:"0",style:l.normalizeStyle(a.value),"data-testid":n.dataTestid,onClick:s,onKeyup:l.withKeys(s,["enter"])},[u.$slots["left-icon"]?(l.openBlock(),l.createElementBlock("span",{key:0,style:l.normalizeStyle(o.value),"data-testid":`${n.dataTestid}-LeftIcon`},[l.renderSlot(u.$slots,"left-icon",{},void 0,!0)],12,qC)):l.createCommentVNode("",!0),l.renderSlot(u.$slots,"default",{},void 0,!0),u.$slots["right-icon"]?(l.openBlock(),l.createElementBlock("span",{key:1,style:l.normalizeStyle(o.value),"data-testid":`${n.dataTestid}-RightIcon`},[l.renderSlot(u.$slots,"right-icon",{},void 0,!0)],12,GC)):l.createCommentVNode("",!0)],46,XC))}}),Ot=pe(KC,[["__scopeId","data-v-bc379e0f"]]),QC=["data-testid"],JC=["onClick","data-testid"],Tu=pe(l.defineComponent({__name:"Switch",props:{items:{},defaultValue:{},isIcons:{type:Boolean},dataTestid:{default:"Switch"}},emits:["change"],setup(e,{emit:t}){const n=e,i=l.reactive({activeIndex:0}),r=t,a=s=>({"switch-yui-kit-item":!0,"switch-yui-kit-active":i.activeIndex===s}),o=s=>{i.activeIndex=s,r("change",{index:s,value:n.items[s]})};return l.watch(()=>n.defaultValue,()=>{var s;i.activeIndex=n.defaultValue?(s=n.items)==null?void 0:s.indexOf(n.defaultValue):0}),l.onMounted(()=>{n.defaultValue&&n.items.includes(n.defaultValue)&&(i.activeIndex=n.items.indexOf(n.defaultValue))}),(s,u)=>(l.openBlock(),l.createElementBlock("ul",{class:"switch-yui-kit-list","data-testid":n.dataTestid},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.items,(c,f)=>(l.openBlock(),l.createElementBlock("li",{key:c,class:l.normalizeClass(a(f)),onClick:h=>o(f),"data-testid":`${n.dataTestid}-Item${f}`},[n.isIcons?(l.openBlock(),l.createBlock(ve,{key:0,name:c,"data-testid":`${n.dataTestid}-Item-Icon${f}`},null,8,["name","data-testid"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(c),1)],64))],10,JC))),128))],8,QC))}}),[["__scopeId","data-v-d81088ca"]]);function St(e){return l.getCurrentScope()?(l.onScopeDispose(e),!0):!1}function se(e){return typeof e=="function"?e():l.unref(e)}const hi={mounted:"mounted",updated:"updated",unmounted:"unmounted"},mi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Pu=e=>e!=null,ZC=Object.prototype.toString,My=e=>ZC.call(e)==="[object Object]",Eu=()=>+Date.now(),vh=(e,t,n)=>Math.min(n,Math.max(t,e)),Qe=()=>{},Au=ex();function ex(){var e,t;return mi&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Os(e,t){function n(...i){return new Promise((r,a)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(r).catch(a)})}return n}const kh=e=>e();function tx(e,t={}){let n,i,r=Qe;const a=s=>{clearTimeout(s),r(),r=Qe};return s=>{const u=se(e),c=se(t.maxWait);return n&&a(n),u<=0||c!==void 0&&c<=0?(i&&(a(i),i=null),Promise.resolve(s())):new Promise((f,h)=>{r=t.rejectOnCancel?h:f,c&&!i&&(i=setTimeout(()=>{n&&a(n),i=null,f(s())},c)),n=setTimeout(()=>{i&&a(i),i=null,f(s())},u)})}}function Cy(...e){let t=0,n,i=!0,r=Qe,a,o,s,u,c;!l.isRef(e[0])&&typeof e[0]=="object"?{delay:o,trailing:s=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[o,s=!0,u=!0,c=!1]=e;const f=()=>{n&&(clearTimeout(n),n=void 0,r(),r=Qe)};return g=>{const p=se(o),y=Date.now()-t,v=()=>a=g();return f(),p<=0?(t=Date.now(),v()):(y>p&&(u||!i)?(t=Date.now(),v()):s&&(a=new Promise((k,w)=>{r=c?w:k,n=setTimeout(()=>{t=Date.now(),i=!0,k(v()),f()},Math.max(0,p-y))})),!u&&!n&&(n=setTimeout(()=>i=!0,p)),i=!1,a)}}function nx(e=kh){const t=l.ref(!0);function n(){t.value=!1}function i(){t.value=!0}const r=(...a)=>{t.value&&e(...a)};return{isActive:l.readonly(t),pause:n,resume:i,eventFilter:r}}function Mh(e,t=!1,n="Timeout"){return new Promise((i,r)=>{setTimeout(t?()=>r(n):i,e)})}function ix(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const i=t;t=void 0,i&&await i},n}function rx(e,t,n=!1){return t.reduce((i,r)=>(r in e&&(!n||e[r]!==void 0)&&(i[r]=e[r]),i),{})}function ax(e){return Object.entries(e)}function xy(e){return l.getCurrentInstance()}function Du(...e){if(e.length!==1)return l.toRef(...e);const t=e[0];return typeof t=="function"?l.readonly(l.customRef(()=>({get:t,set:Qe}))):l.ref(t)}function Sy(e,t=200,n={}){return Os(tx(t,n),e)}function ox(e,t=200,n=!1,i=!0,r=!1){return Os(Cy(t,n,i,r),e)}function sx(e,t,n={}){const{eventFilter:i=kh,...r}=n;return l.watch(e,Os(i,t),r)}function Nu(e,t,n={}){const{eventFilter:i,...r}=n,{eventFilter:a,pause:o,resume:s,isActive:u}=nx(i);return{stop:sx(e,t,{...r,eventFilter:a}),pause:o,resume:s,isActive:u}}function _y(e,t,...[n]){const{flush:i="sync",deep:r=!1,immediate:a=!0,direction:o="both",transform:s={}}=n||{},u=[],c="ltr"in s&&s.ltr||(g=>g),f="rtl"in s&&s.rtl||(g=>g);return(o==="both"||o==="ltr")&&u.push(Nu(e,g=>{u.forEach(p=>p.pause()),t.value=c(g),u.forEach(p=>p.resume())},{flush:i,deep:r,immediate:a})),(o==="both"||o==="rtl")&&u.push(Nu(t,g=>{u.forEach(p=>p.pause()),e.value=f(g),u.forEach(p=>p.resume())},{flush:i,deep:r,immediate:a})),()=>{u.forEach(g=>g.stop())}}function Ty(e,t={}){if(!l.isRef(e))return l.toRefs(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const i in e.value)n[i]=l.customRef(()=>({get(){return e.value[i]},set(r){var a;if((a=se(t.replaceRef))!=null?a:!0)if(Array.isArray(e.value)){const s=[...e.value];s[i]=r,e.value=s}else{const s={...e.value,[i]:r};Object.setPrototypeOf(s,Object.getPrototypeOf(e.value)),e.value=s}else e.value[i]=r}}));return n}function er(e,t=!0,n){xy()?l.onMounted(e,n):t?e():l.nextTick(e)}function lx(e,t){xy()&&l.onUnmounted(e,t)}function Ch(e,t=!1){function n(h,{flush:g="sync",deep:p=!1,timeout:y,throwOnTimeout:v}={}){let k=null;const M=[new Promise(x=>{k=l.watch(e,S=>{h(S)!==t&&(k?k():l.nextTick(()=>k==null?void 0:k()),x(S))},{flush:g,deep:p,immediate:!0})})];return y!=null&&M.push(Mh(y,v).then(()=>se(e)).finally(()=>k==null?void 0:k())),Promise.race(M)}function i(h,g){if(!l.isRef(h))return n(S=>S===h,g);const{flush:p="sync",deep:y=!1,timeout:v,throwOnTimeout:k}=g??{};let w=null;const x=[new Promise(S=>{w=l.watch([e,h],([E,I])=>{t!==(E===I)&&(w?w():l.nextTick(()=>w==null?void 0:w()),S(E))},{flush:p,deep:y,immediate:!0})})];return v!=null&&x.push(Mh(v,k).then(()=>se(e)).finally(()=>(w==null||w(),se(e)))),Promise.race(x)}function r(h){return n(g=>!!g,h)}function a(h){return i(null,h)}function o(h){return i(void 0,h)}function s(h){return n(Number.isNaN,h)}function u(h,g){return n(p=>{const y=Array.from(p);return y.includes(h)||y.includes(se(h))},g)}function c(h){return f(1,h)}function f(h=1,g){let p=-1;return n(()=>(p+=1,p>=h),g)}return Array.isArray(se(e))?{toMatch:n,toContains:u,changed:c,changedTimes:f,get not(){return Ch(e,!t)}}:{toMatch:n,toBe:i,toBeTruthy:r,toBeNull:a,toBeNaN:s,toBeUndefined:o,changed:c,changedTimes:f,get not(){return Ch(e,!t)}}}function xh(e){return Ch(e)}function Py(e,t=1e3,n={}){const{immediate:i=!0,immediateCallback:r=!1}=n;let a=null;const o=l.ref(!1);function s(){a&&(clearInterval(a),a=null)}function u(){o.value=!1,s()}function c(){const f=se(t);f<=0||(o.value=!0,r&&e(),s(),a=setInterval(e,f))}if(i&&mi&&c(),l.isRef(t)||typeof t=="function"){const f=l.watch(t,()=>{o.value&&mi&&c()});St(f)}return St(u),{isActive:o,pause:u,resume:c}}function ux(e,t,n={}){const{immediate:i=!0}=n,r=l.ref(!1);let a=null;function o(){a&&(clearTimeout(a),a=null)}function s(){r.value=!1,o()}function u(...c){o(),r.value=!0,a=setTimeout(()=>{r.value=!1,a=null,e(...c)},se(t))}return i&&(r.value=!0,mi&&u()),St(s),{isPending:l.readonly(r),start:u,stop:s}}function dx(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,r=l.isRef(e),a=l.ref(e);function o(s){if(arguments.length)return a.value=s,a.value;{const u=se(n);return a.value=a.value===u?se(i):u,a.value}}return r?o:[a,o]}const Re=mi?window:void 0,Sh=mi?window.document:void 0,zs=mi?window.navigator:void 0;function nt(e){var t;const n=se(e);return(t=n==null?void 0:n.$el)!=null?t:n}function ye(...e){let t,n,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,r]=e,t=Re):[t,n,i,r]=e,!t)return Qe;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],o=()=>{a.forEach(f=>f()),a.length=0},s=(f,h,g,p)=>(f.addEventListener(h,g,p),()=>f.removeEventListener(h,g,p)),u=l.watch(()=>[nt(t),se(r)],([f,h])=>{if(o(),!f)return;const g=My(h)?{...h}:h;a.push(...n.flatMap(p=>i.map(y=>s(f,p,y,g))))},{immediate:!0,flush:"post"}),c=()=>{u(),o()};return St(c),c}let Ey=!1;function cx(e,t,n={}){const{window:i=Re,ignore:r=[],capture:a=!0,detectIframe:o=!1}=n;if(!i)return Qe;Au&&!Ey&&(Ey=!0,Array.from(i.document.body.children).forEach(p=>p.addEventListener("click",Qe)),i.document.documentElement.addEventListener("click",Qe));let s=!0;const u=p=>se(r).some(y=>{if(typeof y=="string")return Array.from(i.document.querySelectorAll(y)).some(v=>v===p.target||p.composedPath().includes(v));{const v=nt(y);return v&&(p.target===v||p.composedPath().includes(v))}}),c=p=>{const y=nt(e);if(!(!y||y===p.target||p.composedPath().includes(y))){if(p.detail===0&&(s=!u(p)),!s){s=!0;return}t(p)}};let f=!1;const h=[ye(i,"click",p=>{f||(f=!0,setTimeout(()=>{f=!1},0),c(p))},{passive:!0,capture:a}),ye(i,"pointerdown",p=>{const y=nt(e);s=!u(p)&&!!(y&&!p.composedPath().includes(y))},{passive:!0}),o&&ye(i,"blur",p=>{setTimeout(()=>{var y;const v=nt(e);((y=i.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(v!=null&&v.contains(i.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>h.forEach(p=>p())}function fx(){const e=l.ref(!1),t=l.getCurrentInstance();return t&&l.onMounted(()=>{e.value=!0},t),e}function wn(e){const t=fx();return l.computed(()=>(t.value,!!e()))}function Ay(e,t,n={}){const{window:i=Re,...r}=n;let a;const o=wn(()=>i&&"MutationObserver"in i),s=()=>{a&&(a.disconnect(),a=void 0)},u=l.computed(()=>{const g=se(e),p=(Array.isArray(g)?g:[g]).map(nt).filter(Pu);return new Set(p)}),c=l.watch(()=>u.value,g=>{s(),o.value&&g.size&&(a=new MutationObserver(t),g.forEach(p=>a.observe(p,r)))},{immediate:!0,flush:"post"}),f=()=>a==null?void 0:a.takeRecords(),h=()=>{c(),s()};return St(h),{isSupported:o,stop:h,takeRecords:f}}function hx(e={}){var t;const{window:n=Re,deep:i=!0,triggerOnRemoval:r=!1}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,o=()=>{var c;let f=a==null?void 0:a.activeElement;if(i)for(;f!=null&&f.shadowRoot;)f=(c=f==null?void 0:f.shadowRoot)==null?void 0:c.activeElement;return f},s=l.ref(),u=()=>{s.value=o()};return n&&(ye(n,"blur",c=>{c.relatedTarget===null&&u()},!0),ye(n,"focus",u,!0)),r&&Ay(a,c=>{c.filter(f=>f.removedNodes.length).map(f=>Array.from(f.removedNodes)).flat().forEach(f=>{f===s.value&&u()})},{childList:!0,subtree:!0}),u(),s}function Dy(e,t={}){const{immediate:n=!0,fpsLimit:i=void 0,window:r=Re}=t,a=l.ref(!1),o=i?1e3/i:null;let s=0,u=null;function c(g){if(!a.value||!r)return;s||(s=g);const p=g-s;if(o&&p<o){u=r.requestAnimationFrame(c);return}s=g,e({delta:p,timestamp:g}),u=r.requestAnimationFrame(c)}function f(){!a.value&&r&&(a.value=!0,s=0,u=r.requestAnimationFrame(c))}function h(){a.value=!1,u!=null&&r&&(r.cancelAnimationFrame(u),u=null)}return n&&f(),St(h),{isActive:l.readonly(a),pause:h,resume:f}}function mx(e={}){const{navigator:t=zs}=e,n=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],i=wn(()=>t&&"getBattery"in t&&typeof t.getBattery=="function"),r=l.ref(!1),a=l.ref(0),o=l.ref(0),s=l.ref(1);let u;function c(){r.value=this.charging,a.value=this.chargingTime||0,o.value=this.dischargingTime||0,s.value=this.level}return i.value&&t.getBattery().then(f=>{u=f,c.call(u),ye(u,n,c,{passive:!0})}),{isSupported:i,charging:r,chargingTime:a,dischargingTime:o,level:s}}function xr(e,t={}){const{window:n=Re}=t,i=wn(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const a=l.ref(!1),o=c=>{a.value=c.matches},s=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",o):r.removeListener(o))},u=l.watchEffect(()=>{i.value&&(s(),r=n.matchMedia(se(e)),"addEventListener"in r?r.addEventListener("change",o):r.addListener(o),a.value=r.matches)});return St(()=>{u(),s(),r=void 0}),a}const Ny=["hash","host","hostname","href","pathname","port","protocol","search"];function px(e={}){const{window:t=Re}=e,n=Object.fromEntries(Ny.map(a=>[a,l.ref()]));for(const[a,o]of ax(n))l.watch(o,s=>{!(t!=null&&t.location)||t.location[a]===s||(t.location[a]=s)});const i=a=>{var o;const{state:s,length:u}=(t==null?void 0:t.history)||{},{origin:c}=(t==null?void 0:t.location)||{};for(const f of Ny)n[f].value=(o=t==null?void 0:t.location)==null?void 0:o[f];return l.reactive({trigger:a,state:s,length:u,origin:c,...n})},r=l.ref(i("load"));return t&&(ye(t,"popstate",()=>r.value=i("popstate"),{passive:!0}),ye(t,"hashchange",()=>r.value=i("hashchange"),{passive:!0})),r}function _h(e,t={}){const{controls:n=!1,navigator:i=zs}=t,r=wn(()=>i&&"permissions"in i),a=l.shallowRef(),o=typeof e=="string"?{name:e}:e,s=l.shallowRef(),u=()=>{var f,h;s.value=(h=(f=a.value)==null?void 0:f.state)!=null?h:"prompt"};ye(a,"change",u);const c=ix(async()=>{if(r.value){if(!a.value)try{a.value=await i.permissions.query(o)}catch{a.value=void 0}finally{u()}if(n)return l.toRaw(a.value)}});return c(),n?{state:s,isSupported:r,query:c}:s}function gx(e={}){const{navigator:t=zs,read:n=!1,source:i,copiedDuring:r=1500,legacy:a=!1}=e,o=wn(()=>t&&"clipboard"in t),s=_h("clipboard-read"),u=_h("clipboard-write"),c=l.computed(()=>o.value||a),f=l.ref(""),h=l.ref(!1),g=ux(()=>h.value=!1,r);function p(){o.value&&w(s.value)?t.clipboard.readText().then(M=>{f.value=M}):f.value=k()}c.value&&n&&ye(["copy","cut"],p);async function y(M=se(i)){c.value&&M!=null&&(o.value&&w(u.value)?await t.clipboard.writeText(M):v(M),f.value=M,h.value=!0,g.start())}function v(M){const x=document.createElement("textarea");x.value=M??"",x.style.position="absolute",x.style.opacity="0",document.body.appendChild(x),x.select(),document.execCommand("copy"),x.remove()}function k(){var M,x,S;return(S=(x=(M=document==null?void 0:document.getSelection)==null?void 0:M.call(document))==null?void 0:x.toString())!=null?S:""}function w(M){return M==="granted"||M==="prompt"}return{isSupported:c,text:f,copied:h,copy:y}}const ju=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Iu="__vueuse_ssr_handlers__",yx=bx();function bx(){return Iu in ju||(ju[Iu]=ju[Iu]||{}),ju[Iu]}function jy(e,t){return yx[e]||t}function Th(e){return xr("(prefers-color-scheme: dark)",e)}function wx(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const vx={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Iy="vueuse-storage";function Wy(e,t,n,i={}){var r;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:f,window:h=Re,eventFilter:g,onError:p=D=>{console.error(D)},initOnMounted:y}=i,v=(f?l.shallowRef:l.ref)(typeof t=="function"?t():t);if(!n)try{n=jy("getDefaultStorage",()=>{var D;return(D=Re)==null?void 0:D.localStorage})()}catch(D){p(D)}if(!n)return v;const k=se(t),w=wx(k),M=(r=i.serializer)!=null?r:vx[w],{pause:x,resume:S}=Nu(v,()=>I(v.value),{flush:a,deep:o,eventFilter:g});h&&s&&er(()=>{n instanceof Storage?ye(h,"storage",W):ye(h,Iy,$),y&&W()}),y||W();function E(D,z){if(h){const H={key:e,oldValue:D,newValue:z,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(Iy,{detail:H}))}}function I(D){try{const z=n.getItem(e);if(D==null)E(z,null),n.removeItem(e);else{const H=M.write(D);z!==H&&(n.setItem(e,H),E(z,H))}}catch(z){p(z)}}function A(D){const z=D?D.newValue:n.getItem(e);if(z==null)return u&&k!=null&&n.setItem(e,M.write(k)),k;if(!D&&c){const H=M.read(z);return typeof c=="function"?c(H,k):w==="object"&&!Array.isArray(H)?{...k,...H}:H}else return typeof z!="string"?z:M.read(z)}function W(D){if(!(D&&D.storageArea!==n)){if(D&&D.key==null){v.value=k;return}if(!(D&&D.key!==e)){x();try{(D==null?void 0:D.newValue)!==M.write(v.value)&&(v.value=A(D))}catch(z){p(z)}finally{D?l.nextTick(S):S()}}}}function $(D){W(D.detail)}return v}const kx="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Mx(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:r=Re,storage:a,storageKey:o="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:u,emitAuto:c,disableTransition:f=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},g=Th({window:r}),p=l.computed(()=>g.value?"dark":"light"),y=u||(o==null?Du(i):Wy(o,i,a,{window:r,listenToStorageChanges:s})),v=l.computed(()=>y.value==="auto"?p.value:y.value),k=jy("updateHTMLAttrs",(S,E,I)=>{const A=typeof S=="string"?r==null?void 0:r.document.querySelector(S):nt(S);if(!A)return;const W=new Set,$=new Set;let D=null;if(E==="class"){const H=I.split(/\s/g);Object.values(h).flatMap(X=>(X||"").split(/\s/g)).filter(Boolean).forEach(X=>{H.includes(X)?W.add(X):$.add(X)})}else D={key:E,value:I};if(W.size===0&&$.size===0&&D===null)return;let z;f&&(z=r.document.createElement("style"),z.appendChild(document.createTextNode(kx)),r.document.head.appendChild(z));for(const H of W)A.classList.add(H);for(const H of $)A.classList.remove(H);D&&A.setAttribute(D.key,D.value),f&&(r.getComputedStyle(z).opacity,document.head.removeChild(z))});function w(S){var E;k(t,n,(E=h[S])!=null?E:S)}function M(S){e.onChanged?e.onChanged(S,w):w(S)}l.watch(v,M,{flush:"post",immediate:!0}),er(()=>M(v.value));const x=l.computed({get(){return c?y.value:v.value},set(S){y.value=S}});try{return Object.assign(x,{store:y,system:p,state:v})}catch{return x}}function Cx(e={}){const{valueDark:t="dark",valueLight:n="",window:i=Re}=e,r=Mx({...e,onChanged:(s,u)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,s==="dark",u,s):u(s)},modes:{dark:t,light:n}}),a=l.computed(()=>r.system?r.system.value:Th({window:i}).value?"dark":"light");return l.computed({get(){return r.value==="dark"},set(s){const u=s?"dark":"light";a.value===u?r.value="auto":r.value=u}})}function xx(e={}){const{window:t=Re,eventFilter:n=kh}=e,i=l.ref({x:null,y:null,z:null}),r=l.ref({alpha:null,beta:null,gamma:null}),a=l.ref(0),o=l.ref({x:null,y:null,z:null});if(t){const s=Os(n,u=>{i.value=u.acceleration,o.value=u.accelerationIncludingGravity,r.value=u.rotationRate,a.value=u.interval});ye(t,"devicemotion",s)}return{acceleration:i,accelerationIncludingGravity:o,rotationRate:r,interval:a}}function Sx(e={}){const{window:t=Re}=e,n=wn(()=>t&&"DeviceOrientationEvent"in t),i=l.ref(!1),r=l.ref(null),a=l.ref(null),o=l.ref(null);return t&&n.value&&ye(t,"deviceorientation",s=>{i.value=s.absolute,r.value=s.alpha,a.value=s.beta,o.value=s.gamma}),{isSupported:n,isAbsolute:i,alpha:r,beta:a,gamma:o}}function _x(e={}){const{window:t=Re}=e,n=l.ref(1);if(t){let i=function(){n.value=t.devicePixelRatio,r(),a=t.matchMedia(`(resolution: ${n.value}dppx)`),a.addEventListener("change",i,{once:!0})},r=function(){a==null||a.removeEventListener("change",i)},a;i(),St(r)}return{pixelRatio:n}}function Tx(e={}){const{navigator:t=zs,requestPermissions:n=!1,constraints:i={audio:!0,video:!0},onUpdated:r}=e,a=l.ref([]),o=l.computed(()=>a.value.filter(y=>y.kind==="videoinput")),s=l.computed(()=>a.value.filter(y=>y.kind==="audioinput")),u=l.computed(()=>a.value.filter(y=>y.kind==="audiooutput")),c=wn(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),f=l.ref(!1);let h;async function g(){c.value&&(a.value=await t.mediaDevices.enumerateDevices(),r==null||r(a.value),h&&(h.getTracks().forEach(y=>y.stop()),h=null))}async function p(){if(!c.value)return!1;if(f.value)return!0;const{state:y,query:v}=_h("camera",{controls:!0});return await v(),y.value!=="granted"&&(h=await t.mediaDevices.getUserMedia(i),g()),f.value=!0,f.value}return c.value&&(n&&p(),ye(t.mediaDevices,"devicechange",g),g()),{devices:a,ensurePermissions:p,permissionGranted:f,videoInputs:o,audioInputs:s,audioOutputs:u,isSupported:c}}function Px(e={}){const{document:t=Sh}=e;if(!t)return l.ref("visible");const n=l.ref(t.visibilityState);return ye(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Ex(e,t={}){var n,i;const{pointerTypes:r,preventDefault:a,stopPropagation:o,exact:s,onMove:u,onEnd:c,onStart:f,initialValue:h,axis:g="both",draggingElement:p=Re,containerElement:y,handle:v=e,buttons:k=[0]}=t,w=l.ref((n=se(h))!=null?n:{x:0,y:0}),M=l.ref(),x=W=>r?r.includes(W.pointerType):!0,S=W=>{se(a)&&W.preventDefault(),se(o)&&W.stopPropagation()},E=W=>{var $;if(!se(k).includes(W.button)||se(t.disabled)||!x(W)||se(s)&&W.target!==se(e))return;const D=se(y),z=($=D==null?void 0:D.getBoundingClientRect)==null?void 0:$.call(D),H=se(e).getBoundingClientRect(),X={x:W.clientX-(D?H.left-z.left+D.scrollLeft:H.left),y:W.clientY-(D?H.top-z.top+D.scrollTop:H.top)};(f==null?void 0:f(X,W))!==!1&&(M.value=X,S(W))},I=W=>{if(se(t.disabled)||!x(W)||!M.value)return;const $=se(y),D=se(e).getBoundingClientRect();let{x:z,y:H}=w.value;(g==="x"||g==="both")&&(z=W.clientX-M.value.x,$&&(z=Math.min(Math.max(0,z),$.scrollWidth-D.width))),(g==="y"||g==="both")&&(H=W.clientY-M.value.y,$&&(H=Math.min(Math.max(0,H),$.scrollHeight-D.height))),w.value={x:z,y:H},u==null||u(w.value,W),S(W)},A=W=>{se(t.disabled)||!x(W)||M.value&&(M.value=void 0,c==null||c(w.value,W),S(W))};if(mi){const W={capture:(i=t.capture)!=null?i:!0};ye(v,"pointerdown",E,W),ye(p,"pointermove",I,W),ye(p,"pointerup",A,W)}return{...Ty(w),position:w,isDragging:l.computed(()=>!!M.value),style:l.computed(()=>`left:${w.value.x}px;top:${w.value.y}px;`)}}function Oy(e,t,n={}){const{window:i=Re,...r}=n;let a;const o=wn(()=>i&&"ResizeObserver"in i),s=()=>{a&&(a.disconnect(),a=void 0)},u=l.computed(()=>{const h=se(e);return Array.isArray(h)?h.map(g=>nt(g)):[nt(h)]}),c=l.watch(u,h=>{if(s(),o.value&&i){a=new ResizeObserver(t);for(const g of h)g&&a.observe(g,r)}},{immediate:!0,flush:"post"}),f=()=>{s(),c()};return St(f),{isSupported:o,stop:f}}function Ax(e,t={}){const{reset:n=!0,windowResize:i=!0,windowScroll:r=!0,immediate:a=!0,updateTiming:o="sync"}=t,s=l.ref(0),u=l.ref(0),c=l.ref(0),f=l.ref(0),h=l.ref(0),g=l.ref(0),p=l.ref(0),y=l.ref(0);function v(){const w=nt(e);if(!w){n&&(s.value=0,u.value=0,c.value=0,f.value=0,h.value=0,g.value=0,p.value=0,y.value=0);return}const M=w.getBoundingClientRect();s.value=M.height,u.value=M.bottom,c.value=M.left,f.value=M.right,h.value=M.top,g.value=M.width,p.value=M.x,y.value=M.y}function k(){o==="sync"?v():o==="next-frame"&&requestAnimationFrame(()=>v())}return Oy(e,k),l.watch(()=>nt(e),w=>!w&&k()),Ay(e,k,{attributeFilter:["style","class"]}),r&&ye("scroll",k,{capture:!0,passive:!0}),i&&ye("resize",k,{passive:!0}),er(()=>{a&&k()}),{height:s,bottom:u,left:c,right:f,top:h,width:g,x:p,y,update:k}}function zy(e,t={width:0,height:0},n={}){const{window:i=Re,box:r="content-box"}=n,a=l.computed(()=>{var h,g;return(g=(h=nt(e))==null?void 0:h.namespaceURI)==null?void 0:g.includes("svg")}),o=l.ref(t.width),s=l.ref(t.height),{stop:u}=Oy(e,([h])=>{const g=r==="border-box"?h.borderBoxSize:r==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(i&&a.value){const p=nt(e);if(p){const y=p.getBoundingClientRect();o.value=y.width,s.value=y.height}}else if(g){const p=Array.isArray(g)?g:[g];o.value=p.reduce((y,{inlineSize:v})=>y+v,0),s.value=p.reduce((y,{blockSize:v})=>y+v,0)}else o.value=h.contentRect.width,s.value=h.contentRect.height},n);er(()=>{const h=nt(e);h&&(o.value="offsetWidth"in h?h.offsetWidth:t.width,s.value="offsetHeight"in h?h.offsetHeight:t.height)});const c=l.watch(()=>nt(e),h=>{o.value=h?t.width:0,s.value=h?t.height:0});function f(){u(),c()}return{width:o,height:s,stop:f}}function Dx(e,t,n={}){const{root:i,rootMargin:r="0px",threshold:a=0,window:o=Re,immediate:s=!0}=n,u=wn(()=>o&&"IntersectionObserver"in o),c=l.computed(()=>{const y=se(e);return(Array.isArray(y)?y:[y]).map(nt).filter(Pu)});let f=Qe;const h=l.ref(s),g=u.value?l.watch(()=>[c.value,nt(i),h.value],([y,v])=>{if(f(),!h.value||!y.length)return;const k=new IntersectionObserver(t,{root:nt(v),rootMargin:r,threshold:a});y.forEach(w=>w&&k.observe(w)),f=()=>{k.disconnect(),f=Qe}},{immediate:s,flush:"post"}):Qe,p=()=>{f(),g(),h.value=!1};return St(p),{isSupported:u,isActive:h,pause(){f(),h.value=!1},resume(){h.value=!0},stop:p}}function Nx(e,t={}){const{window:n=Re,scrollTarget:i,threshold:r=0}=t,a=l.ref(!1);return Dx(e,o=>{let s=a.value,u=0;for(const c of o)c.time>=u&&(u=c.time,s=c.isIntersecting);a.value=s},{root:i,window:n,threshold:r}),a}function jx(e={}){const{initialValue:t=""}=e,n=wn(()=>typeof window<"u"&&"EyeDropper"in window),i=l.ref(t);async function r(a){if(!n.value)return;const s=await new window.EyeDropper().open(a);return i.value=s.sRGBHex,s}return{isSupported:n,sRGBHex:i,open:r}}const Ly=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Ix(e,t={}){const{document:n=Sh,autoExit:i=!1}=t,r=l.computed(()=>{var w;return(w=nt(e))!=null?w:n==null?void 0:n.querySelector("html")}),a=l.ref(!1),o=l.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(w=>n&&w in n||r.value&&w in r.value)),s=l.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(w=>n&&w in n||r.value&&w in r.value)),u=l.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(w=>n&&w in n||r.value&&w in r.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(w=>n&&w in n),f=wn(()=>r.value&&n&&o.value!==void 0&&s.value!==void 0&&u.value!==void 0),h=()=>c?(n==null?void 0:n[c])===r.value:!1,g=()=>{if(u.value){if(n&&n[u.value]!=null)return n[u.value];{const w=r.value;if((w==null?void 0:w[u.value])!=null)return!!w[u.value]}}return!1};async function p(){if(!(!f.value||!a.value)){if(s.value)if((n==null?void 0:n[s.value])!=null)await n[s.value]();else{const w=r.value;(w==null?void 0:w[s.value])!=null&&await w[s.value]()}a.value=!1}}async function y(){if(!f.value||a.value)return;g()&&await p();const w=r.value;o.value&&(w==null?void 0:w[o.value])!=null&&(await w[o.value](),a.value=!0)}async function v(){await(a.value?p():y())}const k=()=>{const w=g();(!w||w&&h())&&(a.value=w)};return ye(n,Ly,k,!1),ye(()=>nt(r),Ly,k,!1),i&&St(p),{isSupported:f,isFullscreen:a,enter:y,exit:p,toggle:v}}function Wx(e={}){const{enableHighAccuracy:t=!0,maximumAge:n=3e4,timeout:i=27e3,navigator:r=zs,immediate:a=!0}=e,o=wn(()=>r&&"geolocation"in r),s=l.ref(null),u=l.shallowRef(null),c=l.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function f(y){s.value=y.timestamp,c.value=y.coords,u.value=null}let h;function g(){o.value&&(h=r.geolocation.watchPosition(f,y=>u.value=y,{enableHighAccuracy:t,maximumAge:n,timeout:i}))}a&&g();function p(){h&&r&&r.geolocation.clearWatch(h)}return St(()=>{p()}),{isSupported:o,coords:c,locatedAt:s,error:u,resume:g,pause:p}}const Ox=["mousemove","mousedown","resize","keydown","touchstart","wheel"],zx=6e4;function Lx(e=zx,t={}){const{initialState:n=!1,listenForVisibilityChange:i=!0,events:r=Ox,window:a=Re,eventFilter:o=Cy(50)}=t,s=l.ref(n),u=l.ref(Eu());let c;const f=()=>{s.value=!1,clearTimeout(c),c=setTimeout(()=>s.value=!0,e)},h=Os(o,()=>{u.value=Eu(),f()});if(a){const g=a.document;for(const p of r)ye(a,p,h,{passive:!0});i&&ye(g,"visibilitychange",()=>{g.hidden||h()}),f()}return{idle:s,lastActive:u,reset:f}}const $x={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function $y(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:i=!1,initialValue:r={x:0,y:0},window:a=Re,target:o=a,scroll:s=!0,eventFilter:u}=e;let c=null;const f=l.ref(r.x),h=l.ref(r.y),g=l.ref(null),p=typeof t=="function"?t:$x[t],y=E=>{const I=p(E);c=E,I&&([f.value,h.value]=I,g.value="mouse")},v=E=>{if(E.touches.length>0){const I=p(E.touches[0]);I&&([f.value,h.value]=I,g.value="touch")}},k=()=>{if(!c||!a)return;const E=p(c);c instanceof MouseEvent&&E&&(f.value=E[0]+a.scrollX,h.value=E[1]+a.scrollY)},w=()=>{f.value=r.x,h.value=r.y},M=u?E=>u(()=>y(E),{}):E=>y(E),x=u?E=>u(()=>v(E),{}):E=>v(E),S=u?()=>u(()=>k(),{}):()=>k();if(o){const E={passive:!0};ye(o,["mousemove","dragover"],M,E),n&&t!=="movement"&&(ye(o,["touchstart","touchmove"],x,E),i&&ye(o,"touchend",w,E)),s&&t==="page"&&ye(a,"scroll",S,{passive:!0})}return{x:f,y:h,sourceType:g}}function Hx(e,t={}){const{handleOutside:n=!0,window:i=Re}=t,r=t.type||"page",{x:a,y:o,sourceType:s}=$y(t),u=l.ref(e??(i==null?void 0:i.document.body)),c=l.ref(0),f=l.ref(0),h=l.ref(0),g=l.ref(0),p=l.ref(0),y=l.ref(0),v=l.ref(!0);let k=()=>{};return i&&(k=l.watch([u,a,o],()=>{const w=nt(u);if(!w||!(w instanceof Element))return;const{left:M,top:x,width:S,height:E}=w.getBoundingClientRect();h.value=M+(r==="page"?i.pageXOffset:0),g.value=x+(r==="page"?i.pageYOffset:0),p.value=E,y.value=S;const I=a.value-h.value,A=o.value-g.value;v.value=S===0||E===0||I<0||A<0||I>S||A>E,(n||!v.value)&&(c.value=I,f.value=A)},{immediate:!0}),ye(document,"mouseleave",()=>{v.value=!0})),{x:a,y:o,sourceType:s,elementX:c,elementY:f,elementPositionX:h,elementPositionY:g,elementHeight:p,elementWidth:y,isOutside:v,stop:k}}function Rx(e={}){const{touch:t=!0,drag:n=!0,capture:i=!1,initialValue:r=!1,window:a=Re}=e,o=l.ref(r),s=l.ref(null);if(!a)return{pressed:o,sourceType:s};const u=h=>()=>{o.value=!0,s.value=h},c=()=>{o.value=!1,s.value=null},f=l.computed(()=>nt(e.target)||a);return ye(f,"mousedown",u("mouse"),{passive:!0,capture:i}),ye(a,"mouseleave",c,{passive:!0,capture:i}),ye(a,"mouseup",c,{passive:!0,capture:i}),n&&(ye(f,"dragstart",u("mouse"),{passive:!0,capture:i}),ye(a,"drop",c,{passive:!0,capture:i}),ye(a,"dragend",c,{passive:!0,capture:i})),t&&(ye(f,"touchstart",u("touch"),{passive:!0,capture:i}),ye(a,"touchend",c,{passive:!0,capture:i}),ye(a,"touchcancel",c,{passive:!0,capture:i})),{pressed:o,sourceType:s}}function Hy(e={}){const{window:t=Re}=e,n=t==null?void 0:t.navigator,i=wn(()=>n&&"connection"in n),r=l.ref(!0),a=l.ref(!1),o=l.ref(void 0),s=l.ref(void 0),u=l.ref(void 0),c=l.ref(void 0),f=l.ref(void 0),h=l.ref(void 0),g=l.ref("unknown"),p=i.value&&n.connection;function y(){n&&(r.value=n.onLine,o.value=r.value?void 0:Date.now(),s.value=r.value?Date.now():void 0,p&&(u.value=p.downlink,c.value=p.downlinkMax,h.value=p.effectiveType,f.value=p.rtt,a.value=p.saveData,g.value=p.type))}return t&&(ye(t,"offline",()=>{r.value=!1,o.value=Date.now()}),ye(t,"online",()=>{r.value=!0,s.value=Date.now()})),p&&ye(p,"change",y,!1),y(),{isSupported:l.readonly(i),isOnline:l.readonly(r),saveData:l.readonly(a),offlineAt:l.readonly(o),onlineAt:l.readonly(s),downlink:l.readonly(u),downlinkMax:l.readonly(c),effectiveType:l.readonly(h),rtt:l.readonly(f),type:l.readonly(g)}}function Ry(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,i=l.ref(new Date),r=()=>i.value=new Date,a=n==="requestAnimationFrame"?Dy(r,{immediate:!0}):Py(r,n,{immediate:!0});return t?{now:i,...a}:i}function Bx(e){const t=l.ref(),n=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return l.watch(()=>se(e),i=>{n(),i&&(t.value=URL.createObjectURL(i))},{immediate:!0}),St(n),l.readonly(t)}function By(e,t,n){if(typeof e=="function"||l.isReadonly(e))return l.computed(()=>vh(se(e),se(t),se(n)));const i=l.ref(e);return l.computed({get(){return i.value=vh(i.value,se(t),se(n))},set(r){i.value=vh(r,se(t),se(n))}})}function Vx(e){const{total:t=Number.POSITIVE_INFINITY,pageSize:n=10,page:i=1,onPageChange:r=Qe,onPageSizeChange:a=Qe,onPageCountChange:o=Qe}=e,s=By(n,1,Number.POSITIVE_INFINITY),u=l.computed(()=>Math.max(1,Math.ceil(se(t)/se(s)))),c=By(i,1,u),f=l.computed(()=>c.value===1),h=l.computed(()=>c.value===u.value);l.isRef(i)&&_y(i,c,{direction:l.isReadonly(i)?"ltr":"both"}),l.isRef(n)&&_y(n,s,{direction:l.isReadonly(n)?"ltr":"both"});function g(){c.value--}function p(){c.value++}const y={currentPage:c,currentPageSize:s,pageCount:u,isFirstPage:f,isLastPage:h,prev:g,next:p};return l.watch(c,()=>{r(l.reactive(y))}),l.watch(s,()=>{a(l.reactive(y))}),l.watch(u,()=>{o(l.reactive(y))}),y}function Fx(e={}){const{isOnline:t}=Hy(e);return t}function Ux(e={}){const{window:t=Re}=e,n=l.ref(!1),i=r=>{if(!t)return;r=r||t.event;const a=r.relatedTarget||r.toElement;n.value=!a};return t&&(ye(t,"mouseout",i,{passive:!0}),ye(t.document,"mouseleave",i,{passive:!0}),ye(t.document,"mouseenter",i,{passive:!0})),n}const Vy={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},Yx=Object.keys(Vy);function Xx(e={}){const{target:t=Re}=e,n=l.ref(!1),i=l.ref(e.initialValue||{});Object.assign(i.value,Vy,i.value);const r=a=>{n.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(a.pointerType))&&(i.value=rx(a,Yx,!1))};if(t){const a={passive:!0};ye(t,["pointerdown","pointermove","pointerup"],r,a),ye(t,"pointerleave",()=>n.value=!1,a)}return{...Ty(i),isInside:n}}function qx(e,t={}){const{document:n=Sh}=t,i=wn(()=>n&&"pointerLockElement"in n),r=l.ref(),a=l.ref();let o;i.value&&(ye(n,"pointerlockchange",()=>{var c;const f=(c=n.pointerLockElement)!=null?c:r.value;o&&f===o&&(r.value=n.pointerLockElement,r.value||(o=a.value=null))}),ye(n,"pointerlockerror",()=>{var c;const f=(c=n.pointerLockElement)!=null?c:r.value;if(o&&f===o){const h=n.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${h} pointer lock.`)}}));async function s(c){var f;if(!i.value)throw new Error("Pointer Lock API is not supported by your browser.");if(a.value=c instanceof Event?c.currentTarget:null,o=c instanceof Event?(f=nt(e))!=null?f:a.value:nt(c),!o)throw new Error("Target element undefined.");return o.requestPointerLock(),await xh(r).toBe(o)}async function u(){return r.value?(n.exitPointerLock(),await xh(r).toBeNull(),!0):!1}return{isSupported:i,element:r,triggerElement:a,lock:s,unlock:u}}function Gx(e){const t=xr("(prefers-color-scheme: light)",e),n=xr("(prefers-color-scheme: dark)",e);return l.computed(()=>n.value?"dark":t.value?"light":"no-preference")}function Kx(e){const t=xr("(prefers-contrast: more)",e),n=xr("(prefers-contrast: less)",e),i=xr("(prefers-contrast: custom)",e);return l.computed(()=>t.value?"more":n.value?"less":i.value?"custom":"no-preference")}function Qx(e={}){const{window:t=Re}=e;if(!t)return l.ref(["en"]);const n=t.navigator,i=l.ref(n.languages);return ye(t,"languagechange",()=>{i.value=n.languages}),i}function Jx(e){const t=xr("(prefers-reduced-motion: reduce)",e);return l.computed(()=>t.value?"reduce":"no-preference")}const Zx=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],eS={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>e===1?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>e===1?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>e===1?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""};function tS(e){return e.toISOString().slice(0,10)}function nS(e,t={}){const{controls:n=!1,updateInterval:i=3e4}=t,{now:r,...a}=Ry({interval:i,controls:!0}),o=l.computed(()=>iS(new Date(se(e)),t,se(r)));return n?{timeAgo:o,...a}:o}function iS(e,t={},n=Date.now()){var i;const{max:r,messages:a=eS,fullDateFormatter:o=tS,units:s=Zx,showSecond:u=!1,rounding:c="round"}=t,f=typeof c=="number"?k=>+k.toFixed(c):Math[c],h=+n-+e,g=Math.abs(h);function p(k,w){return f(Math.abs(k)/w.value)}function y(k,w){const M=p(k,w),x=k>0,S=v(w.name,M,x);return v(x?"past":"future",S,x)}function v(k,w,M){const x=a[k];return typeof x=="function"?x(w,M):x.replace("{0}",w.toString())}if(g<6e4&&!u)return a.justNow;if(typeof r=="number"&&g>r)return o(new Date(e));if(typeof r=="string"){const k=(i=s.find(w=>w.name===r))==null?void 0:i.max;if(k&&g>k)return o(new Date(e))}for(const[k,w]of s.entries()){if(p(h,w)<=0&&s[k-1])return y(h,s[k-1]);if(g<w.max)return y(h,w)}return a.invalid}function rS(e={}){const{controls:t=!1,offset:n=0,immediate:i=!0,interval:r="requestAnimationFrame",callback:a}=e,o=l.ref(Eu()+n),s=()=>o.value=Eu()+n,u=a?()=>{s(),a(o.value)}:s,c=r==="requestAnimationFrame"?Dy(u,{immediate:i}):Py(u,r,{immediate:i});return t?{timestamp:o,...c}:o}function aS(e,t){const{containerStyle:n,wrapperProps:i,scrollTo:r,calculateRange:a,currentList:o,containerRef:s}="itemHeight"in t?lS(t,e):sS(t,e);return{list:o,scrollTo:r,containerProps:{ref:s,onScroll:()=>{a()},style:n},wrapperProps:i}}function Fy(e){const t=l.ref(null),n=zy(t),i=l.ref([]),r=l.shallowRef(e);return{state:l.ref({start:0,end:10}),source:r,currentList:i,size:n,containerRef:t}}function Uy(e,t,n){return i=>{if(typeof n=="number")return Math.ceil(i/n);const{start:r=0}=e.value;let a=0,o=0;for(let s=r;s<t.value.length;s++){const u=n(s);if(a+=u,o=s,a>i)break}return o-r}}function Yy(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let i=0,r=0;for(let a=0;a<e.value.length;a++){const o=t(a);if(i+=o,i>=n){r=a;break}}return r+1}}function Xy(e,t,n,i,{containerRef:r,state:a,currentList:o,source:s}){return()=>{const u=r.value;if(u){const c=n(e==="vertical"?u.scrollTop:u.scrollLeft),f=i(e==="vertical"?u.clientHeight:u.clientWidth),h=c-t,g=c+f+t;a.value={start:h<0?0:h,end:g>s.value.length?s.value.length:g},o.value=s.value.slice(a.value.start,a.value.end).map((p,y)=>({data:p,index:y+a.value.start}))}}}function qy(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((r,a,o)=>r+e(o),0)}function Gy(e,t,n,i){l.watch([e.width,e.height,t,n],()=>{i()})}function Ky(e,t){return l.computed(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,i,r)=>n+e(r),0))}const oS={horizontal:"scrollLeft",vertical:"scrollTop"};function Qy(e,t,n,i){return r=>{i.value&&(i.value[oS[e]]=n(r),t())}}function sS(e,t){const n=Fy(t),{state:i,source:r,currentList:a,size:o,containerRef:s}=n,u={overflowX:"auto"},{itemWidth:c,overscan:f=5}=e,h=Uy(i,r,c),g=Yy(r,c),p=Xy("horizontal",f,g,h,n),y=qy(c,r),v=l.computed(()=>y(i.value.start)),k=Ky(c,r);Gy(o,t,s,p);const w=Qy("horizontal",p,y,s),M=l.computed(()=>({style:{height:"100%",width:`${k.value-v.value}px`,marginLeft:`${v.value}px`,display:"flex"}}));return{scrollTo:w,calculateRange:p,wrapperProps:M,containerStyle:u,currentList:a,containerRef:s}}function lS(e,t){const n=Fy(t),{state:i,source:r,currentList:a,size:o,containerRef:s}=n,u={overflowY:"auto"},{itemHeight:c,overscan:f=5}=e,h=Uy(i,r,c),g=Yy(r,c),p=Xy("vertical",f,g,h,n),y=qy(c,r),v=l.computed(()=>y(i.value.start)),k=Ky(c,r);Gy(o,t,s,p);const w=Qy("vertical",p,y,s),M=l.computed(()=>({style:{width:"100%",height:`${k.value-v.value}px`,marginTop:`${v.value}px`}}));return{calculateRange:p,scrollTo:w,containerStyle:u,wrapperProps:M,currentList:a,containerRef:s}}function uS(e={}){const{window:t=Re}=e;if(!t)return l.ref(!1);const n=l.ref(t.document.hasFocus());return ye(t,"blur",()=>{n.value=!1}),ye(t,"focus",()=>{n.value=!0}),n}function dS(e={}){const{window:t=Re,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:a=!0,type:o="inner"}=e,s=l.ref(n),u=l.ref(i),c=()=>{t&&(o==="outer"?(s.value=t.outerWidth,u.value=t.outerHeight):a?(s.value=t.innerWidth,u.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight))};if(c(),er(c),ye("resize",c,{passive:!0}),r){const f=xr("(orientation: portrait)");l.watch(f,()=>c())}return{width:s,height:u}}const cS=l.defineComponent({name:"OnClickOutside",props:["as","options"],emits:["trigger"],setup(e,{slots:t,emit:n}){const i=l.ref();return cx(i,r=>{n("trigger",r)},e.options),()=>{if(t.default)return l.h(e.as||"div",{ref:i},t.default())}}}),Ft=mi?window:void 0;function _t(e){var t;const n=se(e);return(t=n==null?void 0:n.$el)!=null?t:n}function en(...e){let t,n,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,r]=e,t=Ft):[t,n,i,r]=e,!t)return Qe;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],o=()=>{a.forEach(f=>f()),a.length=0},s=(f,h,g,p)=>(f.addEventListener(h,g,p),()=>f.removeEventListener(h,g,p)),u=l.watch(()=>[_t(t),se(r)],([f,h])=>{if(o(),!f)return;const g=My(h)?{...h}:h;a.push(...n.flatMap(p=>i.map(y=>s(f,p,y,g))))},{immediate:!0,flush:"post"}),c=()=>{u(),o()};return St(c),c}let Jy=!1;function Zy(e,t,n={}){const{window:i=Ft,ignore:r=[],capture:a=!0,detectIframe:o=!1}=n;if(!i)return Qe;Au&&!Jy&&(Jy=!0,Array.from(i.document.body.children).forEach(p=>p.addEventListener("click",Qe)),i.document.documentElement.addEventListener("click",Qe));let s=!0;const u=p=>se(r).some(y=>{if(typeof y=="string")return Array.from(i.document.querySelectorAll(y)).some(v=>v===p.target||p.composedPath().includes(v));{const v=_t(y);return v&&(p.target===v||p.composedPath().includes(v))}}),c=p=>{const y=_t(e);if(!(!y||y===p.target||p.composedPath().includes(y))){if(p.detail===0&&(s=!u(p)),!s){s=!0;return}t(p)}};let f=!1;const h=[en(i,"click",p=>{f||(f=!0,setTimeout(()=>{f=!1},0),c(p))},{passive:!0,capture:a}),en(i,"pointerdown",p=>{const y=_t(e);s=!u(p)&&!!(y&&!p.composedPath().includes(y))},{passive:!0}),o&&en(i,"blur",p=>{setTimeout(()=>{var y;const v=_t(e);((y=i.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(v!=null&&v.contains(i.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>h.forEach(p=>p())}const Ls={[hi.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Zy(e,t.value,{capture:n});else{const[i,r]=t.value;e.__onClickOutside_stop=Zy(e,i,Object.assign({capture:n},r))}},[hi.unmounted](e){e.__onClickOutside_stop()}};function fS(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function e2(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=Ft,eventName:a="keydown",passive:o=!1,dedupe:s=!1}=i,u=fS(t);return en(r,a,f=>{f.repeat&&se(s)||u(f)&&n(f)},o)}const hS={[hi.mounted](e,t){var n,i;const r=(i=(n=t.arg)==null?void 0:n.split(","))!=null?i:!0;if(typeof t.value=="function")e2(r,t.value,{target:e});else{const[a,o]=t.value;e2(r,a,{target:e,...o})}}},mS=500,pS=10;function Ph(e,t,n){var i,r;const a=l.computed(()=>_t(e));let o,s,u,c=!1;function f(){o&&(clearTimeout(o),o=void 0),s=void 0,u=void 0,c=!1}function h(w){var M,x,S;const[E,I,A]=[u,s,c];if(f(),!(n!=null&&n.onMouseUp)||!I||!E||(M=n==null?void 0:n.modifiers)!=null&&M.self&&w.target!==a.value)return;(x=n==null?void 0:n.modifiers)!=null&&x.prevent&&w.preventDefault(),(S=n==null?void 0:n.modifiers)!=null&&S.stop&&w.stopPropagation();const W=w.x-I.x,$=w.y-I.y,D=Math.sqrt(W*W+$*$);n.onMouseUp(w.timeStamp-E,D,A)}function g(w){var M,x,S,E;(M=n==null?void 0:n.modifiers)!=null&&M.self&&w.target!==a.value||(f(),(x=n==null?void 0:n.modifiers)!=null&&x.prevent&&w.preventDefault(),(S=n==null?void 0:n.modifiers)!=null&&S.stop&&w.stopPropagation(),s={x:w.x,y:w.y},u=w.timeStamp,o=setTimeout(()=>{c=!0,t(w)},(E=n==null?void 0:n.delay)!=null?E:mS))}function p(w){var M,x,S,E;if((M=n==null?void 0:n.modifiers)!=null&&M.self&&w.target!==a.value||!s||(n==null?void 0:n.distanceThreshold)===!1)return;(x=n==null?void 0:n.modifiers)!=null&&x.prevent&&w.preventDefault(),(S=n==null?void 0:n.modifiers)!=null&&S.stop&&w.stopPropagation();const I=w.x-s.x,A=w.y-s.y;Math.sqrt(I*I+A*A)>=((E=n==null?void 0:n.distanceThreshold)!=null?E:pS)&&f()}const y={capture:(i=n==null?void 0:n.modifiers)==null?void 0:i.capture,once:(r=n==null?void 0:n.modifiers)==null?void 0:r.once},v=[en(a,"pointerdown",g,y),en(a,"pointermove",p,y),en(a,["pointerup","pointerleave"],h,y)];return()=>v.forEach(w=>w())}const gS=l.defineComponent({name:"OnLongPress",props:["as","options"],emits:["trigger"],setup(e,{slots:t,emit:n}){const i=l.ref();return Ph(i,r=>{n("trigger",r)},e.options),()=>{if(t.default)return l.h(e.as||"div",{ref:i},t.default())}}}),t2={[hi.mounted](e,t){typeof t.value=="function"?Ph(e,t.value,{modifiers:t.modifiers}):Ph(e,...t.value)}},yS=l.defineComponent({name:"UseActiveElement",setup(e,{slots:t}){const n=l.reactive({element:hx()});return()=>{if(t.default)return t.default(n)}}}),bS=l.defineComponent({name:"UseBattery",setup(e,{slots:t}){const n=l.reactive(mx(e));return()=>{if(t.default)return t.default(n)}}}),wS=l.defineComponent({name:"UseBrowserLocation",setup(e,{slots:t}){const n=l.reactive(px());return()=>{if(t.default)return t.default(n)}}}),vS=l.defineComponent({name:"UseClipboard",props:["source","read","navigator","copiedDuring","legacy"],setup(e,{slots:t}){const n=l.reactive(gx(e));return()=>{var i;return(i=t.default)==null?void 0:i.call(t,n)}}}),Wu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ou="__vueuse_ssr_handlers__",kS=MS();function MS(){return Ou in Wu||(Wu[Ou]=Wu[Ou]||{}),Wu[Ou]}function n2(e,t){return kS[e]||t}function CS(){const e=l.ref(!1),t=l.getCurrentInstance();return t&&l.onMounted(()=>{e.value=!0},t),e}function zu(e){const t=CS();return l.computed(()=>(t.value,!!e()))}function xS(e,t={}){const{window:n=Ft}=t,i=zu(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const a=l.ref(!1),o=c=>{a.value=c.matches},s=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",o):r.removeListener(o))},u=l.watchEffect(()=>{i.value&&(s(),r=n.matchMedia(se(e)),"addEventListener"in r?r.addEventListener("change",o):r.addListener(o),a.value=r.matches)});return St(()=>{u(),s(),r=void 0}),a}function SS(e){return xS("(prefers-color-scheme: dark)",e)}function _S(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const TS={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},i2="vueuse-storage";function PS(e,t,n,i={}){var r;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:f,window:h=Ft,eventFilter:g,onError:p=D=>{console.error(D)},initOnMounted:y}=i,v=(f?l.shallowRef:l.ref)(typeof t=="function"?t():t);if(!n)try{n=n2("getDefaultStorage",()=>{var D;return(D=Ft)==null?void 0:D.localStorage})()}catch(D){p(D)}if(!n)return v;const k=se(t),w=_S(k),M=(r=i.serializer)!=null?r:TS[w],{pause:x,resume:S}=Nu(v,()=>I(v.value),{flush:a,deep:o,eventFilter:g});h&&s&&er(()=>{n instanceof Storage?en(h,"storage",W):en(h,i2,$),y&&W()}),y||W();function E(D,z){if(h){const H={key:e,oldValue:D,newValue:z,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(i2,{detail:H}))}}function I(D){try{const z=n.getItem(e);if(D==null)E(z,null),n.removeItem(e);else{const H=M.write(D);z!==H&&(n.setItem(e,H),E(z,H))}}catch(z){p(z)}}function A(D){const z=D?D.newValue:n.getItem(e);if(z==null)return u&&k!=null&&n.setItem(e,M.write(k)),k;if(!D&&c){const H=M.read(z);return typeof c=="function"?c(H,k):w==="object"&&!Array.isArray(H)?{...k,...H}:H}else return typeof z!="string"?z:M.read(z)}function W(D){if(!(D&&D.storageArea!==n)){if(D&&D.key==null){v.value=k;return}if(!(D&&D.key!==e)){x();try{(D==null?void 0:D.newValue)!==M.write(v.value)&&(v.value=A(D))}catch(z){p(z)}finally{D?l.nextTick(S):S()}}}}function $(D){W(D.detail)}return v}const ES="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function AS(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:r=Ft,storage:a,storageKey:o="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:u,emitAuto:c,disableTransition:f=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},g=SS({window:r}),p=l.computed(()=>g.value?"dark":"light"),y=u||(o==null?Du(i):PS(o,i,a,{window:r,listenToStorageChanges:s})),v=l.computed(()=>y.value==="auto"?p.value:y.value),k=n2("updateHTMLAttrs",(S,E,I)=>{const A=typeof S=="string"?r==null?void 0:r.document.querySelector(S):_t(S);if(!A)return;const W=new Set,$=new Set;let D=null;if(E==="class"){const H=I.split(/\s/g);Object.values(h).flatMap(X=>(X||"").split(/\s/g)).filter(Boolean).forEach(X=>{H.includes(X)?W.add(X):$.add(X)})}else D={key:E,value:I};if(W.size===0&&$.size===0&&D===null)return;let z;f&&(z=r.document.createElement("style"),z.appendChild(document.createTextNode(ES)),r.document.head.appendChild(z));for(const H of W)A.classList.add(H);for(const H of $)A.classList.remove(H);D&&A.setAttribute(D.key,D.value),f&&(r.getComputedStyle(z).opacity,document.head.removeChild(z))});function w(S){var E;k(t,n,(E=h[S])!=null?E:S)}function M(S){e.onChanged?e.onChanged(S,w):w(S)}l.watch(v,M,{flush:"post",immediate:!0}),er(()=>M(v.value));const x=l.computed({get(){return c?y.value:v.value},set(S){y.value=S}});try{return Object.assign(x,{store:y,system:p,state:v})}catch{return x}}const DS=l.defineComponent({name:"UseColorMode",props:["selector","attribute","modes","onChanged","storageKey","storage","emitAuto"],setup(e,{slots:t}){const n=AS(e),i=l.reactive({mode:n,system:n.system,store:n.store});return()=>{if(t.default)return t.default(i)}}}),NS=l.defineComponent({name:"UseDark",props:["selector","attribute","valueDark","valueLight","onChanged","storageKey","storage"],setup(e,{slots:t}){const n=Cx(e),i=l.reactive({isDark:n,toggleDark:dx(n)});return()=>{if(t.default)return t.default(i)}}}),jS=l.defineComponent({name:"UseDeviceMotion",setup(e,{slots:t}){const n=l.reactive(xx());return()=>{if(t.default)return t.default(n)}}}),IS=l.defineComponent({name:"UseDeviceOrientation",setup(e,{slots:t}){const n=l.reactive(Sx());return()=>{if(t.default)return t.default(n)}}}),WS=l.defineComponent({name:"UseDevicePixelRatio",setup(e,{slots:t}){const n=l.reactive({pixelRatio:_x()});return()=>{if(t.default)return t.default(n)}}}),OS=l.defineComponent({name:"UseDevicesList",props:["onUpdated","requestPermissions","constraints"],setup(e,{slots:t}){const n=l.reactive(Tx(e));return()=>{if(t.default)return t.default(n)}}}),zS=l.defineComponent({name:"UseDocumentVisibility",setup(e,{slots:t}){const n=l.reactive({visibility:Px()});return()=>{if(t.default)return t.default(n)}}}),LS=l.defineComponent({name:"UseDraggable",props:["storageKey","storageType","initialValue","exact","preventDefault","stopPropagation","pointerTypes","as","handle","axis","onStart","onMove","onEnd","disabled","buttons","containerElement"],setup(e,{slots:t}){const n=l.ref(),i=l.computed(()=>{var f;return(f=e.handle)!=null?f:n.value}),r=l.computed(()=>{var f;return(f=e.containerElement)!=null?f:void 0}),a=l.computed(()=>!!e.disabled),o=e.storageKey&&Wy(e.storageKey,se(e.initialValue)||{x:0,y:0},mi?e.storageType==="session"?sessionStorage:localStorage:void 0),s=o||e.initialValue||{x:0,y:0},u=(f,h)=>{var g;(g=e.onEnd)==null||g.call(e,f,h),o&&(o.value.x=f.x,o.value.y=f.y)},c=l.reactive(Ex(n,{...e,handle:i,initialValue:s,onEnd:u,disabled:a,containerElement:r}));return()=>{if(t.default)return l.h(e.as||"div",{ref:n,style:`touch-action:none;${c.style}`},t.default(c))}}}),$S=l.defineComponent({name:"UseElementBounding",props:["box","as"],setup(e,{slots:t}){const n=l.ref(),i=l.reactive(Ax(n));return()=>{if(t.default)return l.h(e.as||"div",{ref:n},t.default(i))}}});function r2(e,t={}){const{delayEnter:n=0,delayLeave:i=0,window:r=Ft}=t,a=l.ref(!1);let o;const s=u=>{const c=u?n:i;o&&(clearTimeout(o),o=void 0),c?o=setTimeout(()=>a.value=u,c):a.value=u};return r&&(en(e,"mouseenter",()=>s(!0),{passive:!0}),en(e,"mouseleave",()=>s(!1),{passive:!0})),a}const HS={[hi.mounted](e,t){const n=t.value;if(typeof n=="function"){const i=r2(e);l.watch(i,r=>n(r))}else{const[i,r]=n,a=r2(e,r);l.watch(a,o=>i(o))}}},RS=l.defineComponent({name:"UseElementSize",props:["width","height","box","as"],setup(e,{slots:t}){const n=l.ref(),i=l.reactive(zy(n,{width:e.width,height:e.height},{box:e.box}));return()=>{if(t.default)return l.h(e.as||"div",{ref:n},t.default(i))}}});function Eh(e,t,n={}){const{window:i=Ft,...r}=n;let a;const o=zu(()=>i&&"ResizeObserver"in i),s=()=>{a&&(a.disconnect(),a=void 0)},u=l.computed(()=>{const h=se(e);return Array.isArray(h)?h.map(g=>_t(g)):[_t(h)]}),c=l.watch(u,h=>{if(s(),o.value&&i){a=new ResizeObserver(t);for(const g of h)g&&a.observe(g,r)}},{immediate:!0,flush:"post"}),f=()=>{s(),c()};return St(f),{isSupported:o,stop:f}}function BS(e,t={width:0,height:0},n={}){const{window:i=Ft,box:r="content-box"}=n,a=l.computed(()=>{var h,g;return(g=(h=_t(e))==null?void 0:h.namespaceURI)==null?void 0:g.includes("svg")}),o=l.ref(t.width),s=l.ref(t.height),{stop:u}=Eh(e,([h])=>{const g=r==="border-box"?h.borderBoxSize:r==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(i&&a.value){const p=_t(e);if(p){const y=p.getBoundingClientRect();o.value=y.width,s.value=y.height}}else if(g){const p=Array.isArray(g)?g:[g];o.value=p.reduce((y,{inlineSize:v})=>y+v,0),s.value=p.reduce((y,{blockSize:v})=>y+v,0)}else o.value=h.contentRect.width,s.value=h.contentRect.height},n);er(()=>{const h=_t(e);h&&(o.value="offsetWidth"in h?h.offsetWidth:t.width,s.value="offsetHeight"in h?h.offsetHeight:t.height)});const c=l.watch(()=>_t(e),h=>{o.value=h?t.width:0,s.value=h?t.height:0});function f(){u(),c()}return{width:o,height:s,stop:f}}const VS={[hi.mounted](e,t){var n;const i=typeof t.value=="function"?t.value:(n=t.value)==null?void 0:n[0],r=typeof t.value=="function"?[]:t.value.slice(1),{width:a,height:o}=BS(e,...r);l.watch([a,o],([s,u])=>i({width:s,height:u}))}},FS=l.defineComponent({name:"UseElementVisibility",props:["as"],setup(e,{slots:t}){const n=l.ref(),i=l.reactive({isVisible:Nx(n)});return()=>{if(t.default)return l.h(e.as||"div",{ref:n},t.default(i))}}});function Ah(e,t,n={}){const{root:i,rootMargin:r="0px",threshold:a=0,window:o=Ft,immediate:s=!0}=n,u=zu(()=>o&&"IntersectionObserver"in o),c=l.computed(()=>{const y=se(e);return(Array.isArray(y)?y:[y]).map(_t).filter(Pu)});let f=Qe;const h=l.ref(s),g=u.value?l.watch(()=>[c.value,_t(i),h.value],([y,v])=>{if(f(),!h.value||!y.length)return;const k=new IntersectionObserver(t,{root:_t(v),rootMargin:r,threshold:a});y.forEach(w=>w&&k.observe(w)),f=()=>{k.disconnect(),f=Qe}},{immediate:s,flush:"post"}):Qe,p=()=>{f(),g(),h.value=!1};return St(p),{isSupported:u,isActive:h,pause(){f(),h.value=!1},resume(){h.value=!0},stop:p}}function Dh(e,t={}){const{window:n=Ft,scrollTarget:i,threshold:r=0}=t,a=l.ref(!1);return Ah(e,o=>{let s=a.value,u=0;for(const c of o)c.time>=u&&(u=c.time,s=c.isIntersecting);a.value=s},{root:i,window:n,threshold:r}),a}const US={[hi.mounted](e,t){if(typeof t.value=="function"){const n=t.value,i=Dh(e);l.watch(i,r=>n(r),{immediate:!0})}else{const[n,i]=t.value,r=Dh(e,i);l.watch(r,a=>n(a),{immediate:!0})}}},YS=l.defineComponent({name:"UseEyeDropper",props:{sRGBHex:String},setup(e,{slots:t}){const n=l.reactive(jx());return()=>{if(t.default)return t.default(n)}}}),XS=l.defineComponent({name:"UseFullscreen",props:["as"],setup(e,{slots:t}){const n=l.ref(),i=l.reactive(Ix(n));return()=>{if(t.default)return l.h(e.as||"div",{ref:n},t.default(i))}}}),qS=l.defineComponent({name:"UseGeolocation",props:["enableHighAccuracy","maximumAge","timeout","navigator"],setup(e,{slots:t}){const n=l.reactive(Wx(e));return()=>{if(t.default)return t.default(n)}}}),GS=l.defineComponent({name:"UseIdle",props:["timeout","events","listenForVisibilityChange","initialState"],setup(e,{slots:t}){const n=l.reactive(Lx(e.timeout,e));return()=>{if(t.default)return t.default(n)}}});function KS(e,t,n){const{immediate:i=!0,delay:r=0,onError:a=Qe,onSuccess:o=Qe,resetOnExecute:s=!0,shallow:u=!0,throwError:c}=n??{},f=u?l.shallowRef(t):l.ref(t),h=l.ref(!1),g=l.ref(!1),p=l.shallowRef(void 0);async function y(w=0,...M){s&&(f.value=t),p.value=void 0,h.value=!1,g.value=!0,w>0&&await Mh(w);const x=typeof e=="function"?e(...M):e;try{const S=await x;f.value=S,h.value=!0,o(S)}catch(S){if(p.value=S,a(S),c)throw S}finally{g.value=!1}return f.value}i&&y(r);const v={state:f,isReady:h,isLoading:g,error:p,execute:y};function k(){return new Promise((w,M)=>{xh(g).toBe(!1).then(()=>w(v)).catch(M)})}return{...v,then(w,M){return k().then(w,M)}}}async function QS(e){return new Promise((t,n)=>{const i=new Image,{src:r,srcset:a,sizes:o,class:s,loading:u,crossorigin:c,referrerPolicy:f}=e;i.src=r,a&&(i.srcset=a),o&&(i.sizes=o),s&&(i.className=s),u&&(i.loading=u),c&&(i.crossOrigin=c),f&&(i.referrerPolicy=f),i.onload=()=>t(i),i.onerror=n})}function JS(e,t={}){const n=KS(()=>QS(se(e)),void 0,{resetOnExecute:!0,...t});return l.watch(()=>se(e),()=>n.execute(t.delay),{deep:!0}),n}const ZS=l.defineComponent({name:"UseImage",props:["src","srcset","sizes","as","alt","class","loading","crossorigin","referrerPolicy"],setup(e,{slots:t}){const n=l.reactive(JS(e));return()=>n.isLoading&&t.loading?t.loading(n):n.error&&t.error?t.error(n.error):t.default?t.default(n):l.h(e.as||"img",e)}});function Lu(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const a2=1;function Nh(e,t={}){const{throttle:n=0,idle:i=200,onStop:r=Qe,onScroll:a=Qe,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:u="auto",window:c=Ft,onError:f=A=>{console.error(A)}}=t,h=l.ref(0),g=l.ref(0),p=l.computed({get(){return h.value},set(A){v(A,void 0)}}),y=l.computed({get(){return g.value},set(A){v(void 0,A)}});function v(A,W){var $,D,z,H;if(!c)return;const X=se(e);if(!X)return;(z=X instanceof Document?c.document.body:X)==null||z.scrollTo({top:($=se(W))!=null?$:y.value,left:(D=se(A))!=null?D:p.value,behavior:se(u)});const re=((H=X==null?void 0:X.document)==null?void 0:H.documentElement)||(X==null?void 0:X.documentElement)||X;p!=null&&(h.value=re.scrollLeft),y!=null&&(g.value=re.scrollTop)}const k=l.ref(!1),w=l.reactive({left:!0,right:!1,top:!0,bottom:!1}),M=l.reactive({left:!1,right:!1,top:!1,bottom:!1}),x=A=>{k.value&&(k.value=!1,M.left=!1,M.right=!1,M.top=!1,M.bottom=!1,r(A))},S=Sy(x,n+i),E=A=>{var W;if(!c)return;const $=((W=A==null?void 0:A.document)==null?void 0:W.documentElement)||(A==null?void 0:A.documentElement)||_t(A),{display:D,flexDirection:z}=getComputedStyle($),H=$.scrollLeft;M.left=H<h.value,M.right=H>h.value;const X=Math.abs(H)<=(o.left||0),re=Math.abs(H)+$.clientWidth>=$.scrollWidth-(o.right||0)-a2;D==="flex"&&z==="row-reverse"?(w.left=re,w.right=X):(w.left=X,w.right=re),h.value=H;let ne=$.scrollTop;A===c.document&&!ne&&(ne=c.document.body.scrollTop),M.top=ne<g.value,M.bottom=ne>g.value;const q=Math.abs(ne)<=(o.top||0),Z=Math.abs(ne)+$.clientHeight>=$.scrollHeight-(o.bottom||0)-a2;D==="flex"&&z==="column-reverse"?(w.top=Z,w.bottom=q):(w.top=q,w.bottom=Z),g.value=ne},I=A=>{var W;if(!c)return;const $=(W=A.target.documentElement)!=null?W:A.target;E($),k.value=!0,S(A),a(A)};return en(e,"scroll",n?ox(I,n,!0,!1):I,s),er(()=>{try{const A=se(e);if(!A)return;E(A)}catch(A){f(A)}}),en(e,"scrollend",x,s),{x:p,y,isScrolling:k,arrivedState:w,directions:M,measure(){const A=se(e);c&&A&&E(A)}}}function o2(e,t,n={}){var i;const{direction:r="bottom",interval:a=100,canLoadMore:o=()=>!0}=n,s=l.reactive(Nh(e,{...n,offset:{[r]:(i=n.distance)!=null?i:0,...n.offset}})),u=l.ref(),c=l.computed(()=>!!u.value),f=l.computed(()=>Lu(se(e))),h=Dh(f);function g(){if(s.measure(),!f.value||!h.value||!o(f.value))return;const{scrollHeight:y,clientHeight:v,scrollWidth:k,clientWidth:w}=f.value,M=r==="bottom"||r==="top"?y<=v:k<=w;(s.arrivedState[r]||M)&&(u.value||(u.value=Promise.all([t(s),new Promise(x=>setTimeout(x,a))]).finally(()=>{u.value=null,l.nextTick(()=>g())})))}const p=l.watch(()=>[s.arrivedState[r],h.value],g,{immediate:!0});return lx(p),{isLoading:c,reset(){l.nextTick(()=>g())}}}const e_={[hi.mounted](e,t){typeof t.value=="function"?o2(e,t.value):o2(e,...t.value)}},t_={[hi.mounted](e,t){typeof t.value=="function"?Ah(e,t.value):Ah(e,...t.value)}},n_=l.defineComponent({name:"UseMouse",props:["touch","resetOnTouchEnds","initialValue"],setup(e,{slots:t}){const n=l.reactive($y(e));return()=>{if(t.default)return t.default(n)}}}),i_=l.defineComponent({name:"UseMouseElement",props:["handleOutside","as"],setup(e,{slots:t}){const n=l.ref(),i=l.reactive(Hx(n,e));return()=>{if(t.default)return l.h(e.as||"div",{ref:n},t.default(i))}}}),r_=l.defineComponent({name:"UseMousePressed",props:["touch","initialValue","as"],setup(e,{slots:t}){const n=l.ref(),i=l.reactive(Rx({...e,target:n}));return()=>{if(t.default)return l.h(e.as||"div",{ref:n},t.default(i))}}}),a_=l.defineComponent({name:"UseNetwork",setup(e,{slots:t}){const n=l.reactive(Hy());return()=>{if(t.default)return t.default(n)}}}),o_=l.defineComponent({name:"UseNow",props:["interval"],setup(e,{slots:t}){const n=l.reactive(Ry({...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),s_=l.defineComponent({name:"UseObjectUrl",props:["object"],setup(e,{slots:t}){const n=Du(e,"object"),i=Bx(n);return()=>{if(t.default&&i.value)return t.default(i)}}}),l_=l.defineComponent({name:"UseOffsetPagination",props:["total","page","pageSize","onPageChange","onPageSizeChange","onPageCountChange"],emits:["page-change","page-size-change","page-count-change"],setup(e,{slots:t,emit:n}){const i=l.reactive(Vx({...e,onPageChange(...r){var a;(a=e.onPageChange)==null||a.call(e,...r),n("page-change",...r)},onPageSizeChange(...r){var a;(a=e.onPageSizeChange)==null||a.call(e,...r),n("page-size-change",...r)},onPageCountChange(...r){var a;(a=e.onPageCountChange)==null||a.call(e,...r),n("page-count-change",...r)}}));return()=>{if(t.default)return t.default(i)}}}),u_=l.defineComponent({name:"UseOnline",setup(e,{slots:t}){const n=l.reactive({isOnline:Fx()});return()=>{if(t.default)return t.default(n)}}}),d_=l.defineComponent({name:"UsePageLeave",setup(e,{slots:t}){const n=l.reactive({isLeft:Ux()});return()=>{if(t.default)return t.default(n)}}}),c_=l.defineComponent({name:"UsePointer",props:["pointerTypes","initialValue","target"],setup(e,{slots:t}){const n=l.ref(null),i=l.reactive(Xx({...e,target:e.target==="self"?n:Ft}));return()=>{if(t.default)return t.default(i,{ref:n})}}}),f_=l.defineComponent({name:"UsePointerLock",props:["as"],setup(e,{slots:t}){const n=l.ref(),i=l.reactive(qx(n));return()=>{if(t.default)return l.h(e.as||"div",{ref:n},t.default(i))}}}),h_=l.defineComponent({name:"UsePreferredColorScheme",setup(e,{slots:t}){const n=l.reactive({colorScheme:Gx()});return()=>{if(t.default)return t.default(n)}}}),m_=l.defineComponent({name:"UsePreferredContrast",setup(e,{slots:t}){const n=l.reactive({contrast:Kx()});return()=>{if(t.default)return t.default(n)}}}),p_=l.defineComponent({name:"UsePreferredDark",setup(e,{slots:t}){const n=l.reactive({prefersDark:Th()});return()=>{if(t.default)return t.default(n)}}}),g_=l.defineComponent({name:"UsePreferredLanguages",setup(e,{slots:t}){const n=l.reactive({languages:Qx()});return()=>{if(t.default)return t.default(n)}}}),y_=l.defineComponent({name:"UsePreferredReducedMotion",setup(e,{slots:t}){const n=l.reactive({motion:Jx()});return()=>{if(t.default)return t.default(n)}}}),b_={[hi.mounted](e,t){typeof t.value=="function"?Eh(e,t.value):Eh(e,...t.value)}};function w_(e,t,n={}){const{window:i=Ft,...r}=n;let a;const o=zu(()=>i&&"MutationObserver"in i),s=()=>{a&&(a.disconnect(),a=void 0)},u=l.computed(()=>{const g=se(e),p=(Array.isArray(g)?g:[g]).map(_t).filter(Pu);return new Set(p)}),c=l.watch(()=>u.value,g=>{s(),o.value&&g.size&&(a=new MutationObserver(t),g.forEach(p=>a.observe(p,r)))},{immediate:!0,flush:"post"}),f=()=>a==null?void 0:a.takeRecords(),h=()=>{c(),s()};return St(h),{isSupported:o,stop:h,takeRecords:f}}function $u(e,t,n={}){const{window:i=Ft,initialValue:r,observe:a=!1}=n,o=l.ref(r),s=l.computed(()=>{var c;return _t(t)||((c=i==null?void 0:i.document)==null?void 0:c.documentElement)});function u(){var c;const f=se(e),h=se(s);if(h&&i&&f){const g=(c=i.getComputedStyle(h).getPropertyValue(f))==null?void 0:c.trim();o.value=g||r}}return a&&w_(s,u,{attributeFilter:["style","class"],window:i}),l.watch([s,()=>se(e)],(c,f)=>{f[0]&&f[1]&&f[0].style.removeProperty(f[1]),u()},{immediate:!0}),l.watch(o,c=>{var f;const h=se(e);(f=s.value)!=null&&f.style&&h&&(c==null?s.value.style.removeProperty(h):s.value.style.setProperty(h,c))}),o}const s2="--vueuse-safe-area-top",l2="--vueuse-safe-area-right",u2="--vueuse-safe-area-bottom",d2="--vueuse-safe-area-left";function v_(){const e=l.ref(""),t=l.ref(""),n=l.ref(""),i=l.ref("");if(mi){const a=$u(s2),o=$u(l2),s=$u(u2),u=$u(d2);a.value="env(safe-area-inset-top, 0px)",o.value="env(safe-area-inset-right, 0px)",s.value="env(safe-area-inset-bottom, 0px)",u.value="env(safe-area-inset-left, 0px)",r(),en("resize",Sy(r))}function r(){e.value=Hu(s2),t.value=Hu(l2),n.value=Hu(u2),i.value=Hu(d2)}return{top:e,right:t,bottom:n,left:i,update:r}}function Hu(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}const k_=l.defineComponent({name:"UseScreenSafeArea",props:{top:Boolean,right:Boolean,bottom:Boolean,left:Boolean},setup(e,{slots:t}){const{top:n,right:i,bottom:r,left:a}=v_();return()=>{if(t.default)return l.h("div",{style:{paddingTop:e.top?n.value:"",paddingRight:e.right?i.value:"",paddingBottom:e.bottom?r.value:"",paddingLeft:e.left?a.value:"",boxSizing:"border-box",maxHeight:"100vh",maxWidth:"100vw",overflow:"auto"}},t.default())}}}),M_={[hi.mounted](e,t){if(typeof t.value=="function"){const n=t.value,i=Nh(e,{onScroll(){n(i)},onStop(){n(i)}})}else{const[n,i]=t.value,r=Nh(e,{...i,onScroll(a){var o;(o=i.onScroll)==null||o.call(i,a),n(r)},onStop(a){var o;(o=i.onStop)==null||o.call(i,a),n(r)}})}}};function c2(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:c2(n)}}function C_(e){const t=e||window.event,n=t.target;return c2(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const jh=new WeakMap;function x_(e,t=!1){const n=l.ref(t);let i=null,r="";l.watch(Du(e),s=>{const u=Lu(se(s));if(u){const c=u;if(jh.get(c)||jh.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(r=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const a=()=>{const s=Lu(se(e));!s||n.value||(Au&&(i=en(s,"touchmove",u=>{C_(u)},{passive:!1})),s.style.overflow="hidden",n.value=!0)},o=()=>{const s=Lu(se(e));!s||!n.value||(Au&&(i==null||i()),s.style.overflow=r,jh.delete(s),n.value=!1)};return St(o),l.computed({get(){return n.value},set(s){s?a():o()}})}function S_(){let e=!1;const t=l.ref(!1);return(n,i)=>{if(t.value=i.value,e)return;e=!0;const r=x_(n,i.value);l.watch(t,a=>r.value=a)}}const __=S_(),T_=l.defineComponent({name:"UseTimeAgo",props:["time","updateInterval","max","fullDateFormatter","messages","showSecond"],setup(e,{slots:t}){const n=l.reactive(nS(()=>e.time,{...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),P_=l.defineComponent({name:"UseTimestamp",props:["immediate","interval","offset"],setup(e,{slots:t}){const n=l.reactive(rS({...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),E_=l.defineComponent({name:"UseVirtualList",props:["list","options","height"],setup(e,{slots:t,expose:n}){const{list:i}=l.toRefs(e),{list:r,containerProps:a,wrapperProps:o,scrollTo:s}=aS(i,e.options);return n({scrollTo:s}),a.style&&typeof a.style=="object"&&!Array.isArray(a.style)&&(a.style.height=e.height||"300px"),()=>l.h("div",{...a},[l.h("div",{...o.value},r.value.map(u=>l.h("div",{style:{overflow:"hidden",height:u.height}},t.default?t.default(u):"Please set content!")))])}}),A_=l.defineComponent({name:"UseWindowFocus",setup(e,{slots:t}){const n=l.reactive({focused:uS()});return()=>{if(t.default)return t.default(n)}}}),D_=l.defineComponent({name:"UseWindowSize",props:["initialWidth","initialHeight"],setup(e,{slots:t}){const n=l.reactive(dS(e));return()=>{if(t.default)return t.default(n)}}}),N_=["data-testid"],j_=["data-testid"],I_=["open","data-testid"],vo=pe(l.defineComponent({__name:"SelectList",props:{isOpened:{type:Boolean,default:!1},disableOpen:{type:Boolean},headerClasses:{},optionsClasses:{},disabled:{type:Boolean},dataTestid:{default:"SelectList"}},emits:["change","focusout-options"],setup(e,{emit:t}){const n=e,i=l.reactive({isOpened:!1}),r=l.ref(null),a=l.ref(null),o=t;l.watchEffect(()=>i.isOpened=n.isOpened);const s=()=>{n.disabled||n.disableOpen||(i.isOpened=!i.isOpened,o("change",i.isOpened))},u=()=>{i.isOpened=!1,o("focusout-options"),o("change",i.isOpened)},c=()=>{if(a.value&&r.value&&i.isOpened){const f=a.value.getBoundingClientRect();r.value.style.top=`${f.top+f.height}px`}};return l.watch(()=>n.isOpened,()=>{i.isOpened=n.isOpened}),l.watch(()=>i.isOpened,c),l.onMounted(()=>{window.addEventListener("scroll",c,!0)}),l.onUnmounted(()=>{window.removeEventListener("scroll",c,!0)}),(f,h)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{class:"select-list-yui-kit","data-testid":n.dataTestid},[l.createElementVNode("div",{ref_key:"currentRef",ref:a,class:l.normalizeClass(["select-list-yui-kit__current",{"active-yui-kit":i.isOpened},{"disabled-yui-kit":n.disabled},n==null?void 0:n.headerClasses]),tabindex:"0",onKeyup:l.withKeys(s,["enter"]),onClick:s,"data-testid":`${n.dataTestid}-Current`},[l.renderSlot(f.$slots,"header",{},void 0,!0)],42,j_),l.withDirectives(l.createElementVNode("ul",{ref_key:"dropdownRef",ref:r,class:l.normalizeClass(["select-list-yui-kit__list",n==null?void 0:n.optionsClasses]),open:i.isOpened,"data-testid":`${n.dataTestid}-OptionsList`},[l.renderSlot(f.$slots,"options",{},void 0,!0)],10,I_),[[l.vShow,i.isOpened]])],8,N_)),[[l.unref(Ls),u,void 0,{bubble:!0}]])}}),[["__scopeId","data-v-c09b5c35"]]);function $s(e){return e!==null&&typeof e=="object"&&"key"in e}function f2(e){return e!==null&&Array.isArray(e)&&typeof e[0]=="object"&&"key"in e[0]}const Ih=e=>e!==null&&typeof e=="object"&&"hint"in e,Hs=e=>e!==null&&Array.isArray(e)&&Ih(e[0]),W_=["onClick","data-testid"],O_={class:"options__item"},z_={class:"options__value truncate-yui-kit"},L_={key:0,class:"options__used"},Wh=pe(l.defineComponent({__name:"Options",props:{options:{},defaultOption:{},class:{},disabled:{type:Boolean},dataTestid:{default:"Options"}},emits:["change"],setup(e,{emit:t}){const n=e,i=l.reactive({choosedOption:n.defaultOption??(n.options[0]||""),lengthOption:0});l.watch(()=>n.defaultOption,()=>{n.defaultOption?i.choosedOption=n.defaultOption:i.choosedOption=""},{immediate:!0});const r=t,a=l.computed(()=>({"select-list-yui-kit__item":!0,"truncate-yui-kit":!0})),o=c=>{i.choosedOption=c,$s(i.choosedOption)?r("change",i.choosedOption.key):r("change",i.choosedOption)},s=c=>{let f=!1;return $s(c)?$s(i.choosedOption)?c.value===i.choosedOption.value&&(f=!0):((c.key==="null"||c.key===null)&&i.choosedOption===""&&(f=!0),c.value===i.choosedOption&&(f=!0)):$s(i.choosedOption)?c===i.choosedOption.value&&(f=!0):c===i.choosedOption&&(f=!0),{active:f}},u=c=>Ih(c)?c.hint:$s(c)?c.value:c;return(c,f)=>(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.options,(h,g)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:g},[l.createElementVNode("li",{class:l.normalizeClass([a.value,s(h),n.class]),onClick:()=>o(h),"data-testid":`${n.dataTestid}-${g}`},[l.createElementVNode("div",O_,[l.createElementVNode("div",z_,l.toDisplayString(u(h)),1),typeof h=="object"&&(h!=null&&h.used)?(l.openBlock(),l.createElementBlock("div",L_)):l.createCommentVNode("",!0)]),l.renderSlot(c.$slots,"option",{inx:g},void 0,!0)],10,W_),l.renderSlot(c.$slots,"default",{},void 0,!0)],64))),128))}}),[["__scopeId","data-v-8aadb8ca"]]),$_=["data-testid"],Oh=pe(l.defineComponent({__name:"Dropdown",props:{options:{},defaultOption:{},class:{},disabled:{type:Boolean,default:!1},dataTestid:{default:"Dropdown"}},emits:["change"],setup(e,{emit:t}){const n=e,i=l.reactive({choosedOption:n.defaultOption||n.options[0]||"",isOpened:!1}),r=t,a=s=>{i.isOpened=s},o=s=>{let u;if(f2(n.options)){const c=n.options.find(f=>f.key===s);i.choosedOption=(c==null?void 0:c.value)||s,u=c==null?void 0:c.key}else i.choosedOption=s;i.isOpened=!1,r("change",u||s)};return l.watch(()=>n.defaultOption,()=>{n.defaultOption&&(i.choosedOption=n.defaultOption)}),l.onMounted(()=>{f2(n.options)&&(i.choosedOption=n.defaultOption||n.options[0].value)}),(s,u)=>(l.openBlock(),l.createBlock(vo,{onChange:a,"is-opened":i.isOpened,class:l.normalizeClass([n.class,"dropdown-yui-kit"]),disabled:n.disabled,"data-testid":n.dataTestid},{header:l.withCtx(()=>[l.createElementVNode("span",{class:"truncate-yui-kit dropdown-yui-kit__text","data-testid":`${n.dataTestid}-SelectedText`},l.toDisplayString(i.choosedOption),9,$_),i.isOpened?(l.openBlock(),l.createBlock(ve,{key:0,name:l.unref(ce).chevronUp,"data-testid":`${n.dataTestid}-ArrowUp`},null,8,["name","data-testid"])):l.createCommentVNode("",!0),i.isOpened?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(ve,{key:1,name:l.unref(ce).chevronDown,"data-testid":`${n.dataTestid}-ArrowDown`},null,8,["name","data-testid"]))]),options:l.withCtx(()=>[l.createVNode(Wh,{options:n.options,"default-option":n.defaultOption,onChange:o,"data-testid":`${n.dataTestid}-Options`},null,8,["options","default-option","data-testid"])]),_:1},8,["is-opened","class","disabled","data-testid"]))}}),[["__scopeId","data-v-08af0925"]]);/**
|
|
514
514
|
* @license
|
|
515
515
|
* Copyright 2019 Google LLC
|
|
516
516
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1131,7 +1131,7 @@
|
|
|
1131
1131
|
* @license
|
|
1132
1132
|
* Copyright 2020 Google LLC
|
|
1133
1133
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1134
|
-
*/const cw=()=>new
|
|
1134
|
+
*/const cw=()=>new e4e;class e4e{}const Im=new WeakMap,fw=Z2(class extends Zve{render(e){return bt}update(e,[t]){var i;const n=t!==this.G;return n&&this.G!==void 0&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.G=t,this.ht=(i=e.options)==null?void 0:i.host,this.rt(this.ct=e.element)),bt}rt(e){if(this.isConnected||(e=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let n=Im.get(t);n===void 0&&(n=new WeakMap,Im.set(t,n)),n.get(this.G)!==void 0&&this.G.call(this.ht,void 0),n.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){var e,t;return typeof this.G=="function"?(e=Im.get(this.ht??globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),hw=e=>{if(!e||!(e instanceof Element)){console.warn("insertSlotsBySlot: container is not a valid DOM element");return}const t=Array.from(e.children).filter(i=>{var r;return i.hasAttribute("slot")&&((r=i.getAttribute("slot"))==null?void 0:r.trim())!==""}),n=new Map;t.forEach(i=>{const r=i.getAttribute("slot");n.has(r)||n.set(r,[]),n.get(r).push(i)});for(const[i,r]of n){const a=`[name="${i}"]`;let o=e.querySelector(a);!o&&"shadowRoot"in e&&e.shadowRoot&&(o=e.shadowRoot.querySelector(a)),o&&(o.innerHTML="",r.forEach(s=>{o.appendChild(s)}))}};var t4e=Object.defineProperty,n4e=Object.getOwnPropertyDescriptor,ir=(e,t,n,i)=>{for(var r=i>1?void 0:i?n4e(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&t4e(t,n,r),r};let Oi=class extends Di{constructor(){super(...arguments),this.date=new Date,this.minDate=null,this.maxDate=null,this.locale="en-US",this.firstDayOfWeek=1,this.disabledDates=[],this.events=[],this._date=this.date,this._monthsButtonId="open-months-popup",this._yearsButtonId="open-years-popup",this.popoverYearsRef=cw(),this.popoverMonthsRef=cw()}get currentLocale(){return this.locale}createRenderRoot(){return this}generateUniqueButtonId(e){if(typeof crypto<"u"&&crypto.randomUUID)return e+crypto.randomUUID().substring(0,5);const t=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);return e+t}connectedCallback(){super.connectedCallback(),this.date!==null?this._date=this.date:this._date=new Date,this._monthsButtonId=this.generateUniqueButtonId(this._monthsButtonId),this._yearsButtonId=this.generateUniqueButtonId(this._yearsButtonId),requestAnimationFrame(()=>{hw(this)})}updated(){requestAnimationFrame(()=>{hw(this)})}handleChangeMonth({detail:e}){this._date=Lve(e.month,this._date.getFullYear()),this.popoverMonthsRef.value&&this.popoverMonthsRef.value.hide()}handleYearSelected({detail:e}){this._date=new Date(this._date.getFullYear(),this._date.getMonth(),3),this._date.setFullYear(e.year),this.popoverYearsRef.value&&this.popoverYearsRef.value.hide()}handleMonthsChange(){this.dispatchEvent(new CustomEvent("show-months",{bubbles:!0,composed:!0}))}handleYearsChange(){this.dispatchEvent(new CustomEvent("show-years",{bubbles:!0,composed:!0}))}handleYearsHideChange(){this.dispatchEvent(new CustomEvent("hide-years",{bubbles:!0,composed:!0}))}handleMonthsHideChange(){this.dispatchEvent(new CustomEvent("hide-months",{bubbles:!0,composed:!0}))}handleDateSelected(e){this.date=e.detail,this.dispatchEvent(new CustomEvent("change-date",{detail:{date:this.date},bubbles:!0,composed:!0}))}render(){var e,t;return Yn`
|
|
1135
1135
|
<style>
|
|
1136
1136
|
.calendar {
|
|
1137
1137
|
--col-cal-bg: #ffffff;
|
|
@@ -1262,7 +1262,7 @@
|
|
|
1262
1262
|
@change-date=${this.handleDateSelected}
|
|
1263
1263
|
></col-cal-dates>
|
|
1264
1264
|
</div>
|
|
1265
|
-
`}};ir([fe({type:Object})],Oi.prototype,"date",2),ir([fe({type:Object})],Oi.prototype,"minDate",2),ir([fe({type:Object})],Oi.prototype,"maxDate",2),ir([fe({type:String})],Oi.prototype,"locale",2),ir([fe({type:Number})],Oi.prototype,"firstDayOfWeek",2),ir([fe({type:Array})],Oi.prototype,"disabledDates",2),ir([fe({type:Array})],Oi.prototype,"events",2),ir([Yu()],Oi.prototype,"_date",2),Oi=ir([Sa("col-cal")],Oi);const i3e=["data-testid"],r3e=["data-testid"],a3e=["data-testid"],o3e=pe(l.defineComponent({__name:"DataPickerChoose",props:{value:{},isActive:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePickerChoose"}},emits:["clear","click"],setup(e,{emit:t}){const n=e,i=l.reactive({defaultValue:"-- -- ----",value:"",isActive:!1}),r=t;l.watchEffect(()=>i.isActive=n.isActive),l.watchEffect(()=>i.value=n.value);const a=()=>{r("clear")},o=()=>{r("click")},s=u=>{if(!u)return null;const c=u.indexOf(" "),f=c===-1?3:Math.min(c,3);return`${u.charAt(0).toUpperCase()}${u.slice(1,f)}${u.slice(c)}`};return(u,c)=>(l.openBlock(),l.createElementBlock("button",{onClick:o,class:l.normalizeClass(["date-picker-yui-kit__header-btn",{"date-picker-yui-kit__header-btn_table-view":n.isSmall},{"date-picker-yui-kit__header-btn_range-view":n.isRange},{"date-disable-yui-kit":n.disabled},{"date-active-yui-kit":i.isActive}]),"data-testid":`${n.dataTestid}-HeaderBtn-Trigger`},[l.createVNode(ve,{name:l.unref(ce).calendar,"data-testid":`${n.dataTestid}-Icon`},null,8,["name","data-testid"]),i.value?(l.openBlock(),l.createElementBlock("span",{key:0,"data-testid":`${n.dataTestid}-Value-Display`},l.toDisplayString(s(i.value)),9,r3e)):(l.openBlock(),l.createElementBlock("span",{key:1,class:"date-picker-yui-kit__header-btn__dash","data-testid":`${n.dataTestid}-HeaderBtnDash-Placeholder`},l.toDisplayString(i.defaultValue),9,a3e)),i.value?(l.openBlock(),l.createBlock(Ot,{key:2,size:l.unref(Ai).small,type:l.unref(ut).ghost,disabled:n.disabled,onClick:l.withModifiers(a,["stop"]),class:"date-picker-close-yui-kit","data-testid":`${n.dataTestid}-Button-Clear`},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).crossSmall,"data-testid":`${n.dataTestid}-ButtonClose-Icon`},null,8,["name","data-testid"])]),_:1},8,["size","type","disabled","data-testid"])):l.createCommentVNode("",!0)],10,i3e))}}),[["__scopeId","data-v-8e63d7ec"]]),mw=["top","right","bottom","left"],pw=["start","end"],gw=mw.reduce((e,t)=>e.concat(t,t+"-"+pw[0],t+"-"+pw[1]),[]),yi=Math.min,Yt=Math.max,cd=Math.round,fd=Math.floor,zi=e=>({x:e,y:e}),s3e={left:"right",right:"left",bottom:"top",top:"bottom"},l3e={start:"end",end:"start"};function Wm(e,t,n){return Yt(e,yi(t,n))}function bi(e,t){return typeof e=="function"?e(t):e}function In(e){return e.split("-")[0]}function wi(e){return e.split("-")[1]}function Om(e){return e==="x"?"y":"x"}function zm(e){return e==="y"?"height":"width"}const u3e=new Set(["top","bottom"]);function vi(e){return u3e.has(In(e))?"y":"x"}function Lm(e){return Om(vi(e))}function yw(e,t,n){n===void 0&&(n=!1);const i=wi(e),r=Lm(e),a=zm(r);let o=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=md(o)),[o,md(o)]}function d3e(e){const t=md(e);return[hd(e),t,hd(t)]}function hd(e){return e.replace(/start|end/g,t=>l3e[t])}const bw=["left","right"],ww=["right","left"],c3e=["top","bottom"],f3e=["bottom","top"];function h3e(e,t,n){switch(e){case"top":case"bottom":return n?t?ww:bw:t?bw:ww;case"left":case"right":return t?c3e:f3e;default:return[]}}function m3e(e,t,n,i){const r=wi(e);let a=h3e(In(e),n==="start",i);return r&&(a=a.map(o=>o+"-"+r),t&&(a=a.concat(a.map(hd)))),a}function md(e){return e.replace(/left|right|bottom|top/g,t=>s3e[t])}function p3e(e){return{top:0,right:0,bottom:0,left:0,...e}}function $m(e){return typeof e!="number"?p3e(e):{top:e,right:e,bottom:e,left:e}}function jo(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function vw(e,t,n){let{reference:i,floating:r}=e;const a=vi(t),o=Lm(t),s=zm(o),u=In(t),c=a==="y",f=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,g=i[s]/2-r[s]/2;let p;switch(u){case"top":p={x:f,y:i.y-r.height};break;case"bottom":p={x:f,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:h};break;case"left":p={x:i.x-r.width,y:h};break;default:p={x:i.x,y:i.y}}switch(wi(t)){case"start":p[o]-=g*(n&&c?-1:1);break;case"end":p[o]+=g*(n&&c?-1:1);break}return p}const g3e=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:h}=vw(c,i,u),g=i,p={},y=0;for(let v=0;v<s.length;v++){const{name:k,fn:w}=s[v],{x:M,y:x,data:S,reset:E}=await w({x:f,y:h,initialPlacement:i,placement:g,strategy:r,middlewareData:p,rects:c,platform:o,elements:{reference:e,floating:t}});f=M??f,h=x??h,p={...p,[k]:{...p[k],...S}},E&&y<=50&&(y++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(c=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:f,y:h}=vw(c,g,u)),v=-1)}return{x:f,y:h,placement:g,strategy:r,middlewareData:p}};async function Ia(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:a,rects:o,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:g=!1,padding:p=0}=bi(t,e),y=$m(p),k=s[g?h==="floating"?"reference":"floating":h],w=jo(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(k)))==null||n?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:u})),M=h==="floating"?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},E=jo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:M,offsetParent:x,strategy:u}):M);return{top:(w.top-E.top+y.top)/S.y,bottom:(E.bottom-w.bottom+y.bottom)/S.y,left:(w.left-E.left+y.left)/S.x,right:(E.right-w.right+y.right)/S.x}}const y3e=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:a,platform:o,elements:s,middlewareData:u}=t,{element:c,padding:f=0}=bi(e,t)||{};if(c==null)return{};const h=$m(f),g={x:n,y:i},p=Lm(r),y=zm(p),v=await o.getDimensions(c),k=p==="y",w=k?"top":"left",M=k?"bottom":"right",x=k?"clientHeight":"clientWidth",S=a.reference[y]+a.reference[p]-g[p]-a.floating[y],E=g[p]-a.reference[p],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let A=I?I[x]:0;(!A||!await(o.isElement==null?void 0:o.isElement(I)))&&(A=s.floating[x]||a.floating[y]);const W=S/2-E/2,$=A/2-v[y]/2-1,D=yi(h[w],$),z=yi(h[M],$),H=D,X=A-v[y]-z,re=A/2-v[y]/2+W,ne=Wm(H,re,X),q=!u.arrow&&wi(r)!=null&&re!==ne&&a.reference[y]/2-(re<H?D:z)-v[y]/2<0,Z=q?re<H?re-H:re-X:0;return{[p]:g[p]+Z,data:{[p]:ne,centerOffset:re-ne-Z,...q&&{alignmentOffset:Z}},reset:q}}});function b3e(e,t,n){return(e?[...n.filter(r=>wi(r)===e),...n.filter(r=>wi(r)!==e)]:n.filter(r=>In(r)===r)).filter(r=>e?wi(r)===e||(t?hd(r)!==r:!1):!0)}const w3e=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,r;const{rects:a,middlewareData:o,placement:s,platform:u,elements:c}=t,{crossAxis:f=!1,alignment:h,allowedPlacements:g=gw,autoAlignment:p=!0,...y}=bi(e,t),v=h!==void 0||g===gw?b3e(h||null,p,g):g,k=await Ia(t,y),w=((n=o.autoPlacement)==null?void 0:n.index)||0,M=v[w];if(M==null)return{};const x=yw(M,a,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(s!==M)return{reset:{placement:v[0]}};const S=[k[In(M)],k[x[0]],k[x[1]]],E=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:M,overflows:S}],I=v[w+1];if(I)return{data:{index:w+1,overflows:E},reset:{placement:I}};const A=E.map(D=>{const z=wi(D.placement);return[D.placement,z&&f?D.overflows.slice(0,2).reduce((H,X)=>H+X,0):D.overflows[0],D.overflows]}).sort((D,z)=>D[1]-z[1]),$=((r=A.filter(D=>D[2].slice(0,wi(D[0])?2:3).every(z=>z<=0))[0])==null?void 0:r[0])||A[0][0];return $!==s?{data:{index:w+1,overflows:E},reset:{placement:$}}:{}}}},v3e=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:a,rects:o,initialPlacement:s,platform:u,elements:c}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...k}=bi(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=In(r),M=vi(s),x=In(s)===s,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),E=g||(x||!v?[md(s)]:d3e(s)),I=y!=="none";!g&&I&&E.push(...m3e(s,v,y,S));const A=[s,...E],W=await Ia(t,k),$=[];let D=((i=a.flip)==null?void 0:i.overflows)||[];if(f&&$.push(W[w]),h){const re=yw(r,o,S);$.push(W[re[0]],W[re[1]])}if(D=[...D,{placement:r,overflows:$}],!$.every(re=>re<=0)){var z,H;const re=(((z=a.flip)==null?void 0:z.index)||0)+1,ne=A[re];if(ne&&(!(h==="alignment"?M!==vi(ne):!1)||D.every(ue=>vi(ue.placement)===M?ue.overflows[0]>0:!0)))return{data:{index:re,overflows:D},reset:{placement:ne}};let q=(H=D.filter(Z=>Z.overflows[0]<=0).sort((Z,ue)=>Z.overflows[1]-ue.overflows[1])[0])==null?void 0:H.placement;if(!q)switch(p){case"bestFit":{var X;const Z=(X=D.filter(ue=>{if(I){const Ne=vi(ue.placement);return Ne===M||Ne==="y"}return!0}).map(ue=>[ue.placement,ue.overflows.filter(Ne=>Ne>0).reduce((Ne,it)=>Ne+it,0)]).sort((ue,Ne)=>ue[1]-Ne[1])[0])==null?void 0:X[0];Z&&(q=Z);break}case"initialPlacement":q=s;break}if(r!==q)return{reset:{placement:q}}}return{}}}};function kw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Mw(e){return mw.some(t=>e[t]>=0)}const k3e=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=bi(e,t);switch(i){case"referenceHidden":{const a=await Ia(t,{...r,elementContext:"reference"}),o=kw(a,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Mw(o)}}}case"escaped":{const a=await Ia(t,{...r,altBoundary:!0}),o=kw(a,n.floating);return{data:{escapedOffsets:o,escaped:Mw(o)}}}default:return{}}}}};function Cw(e){const t=yi(...e.map(a=>a.left)),n=yi(...e.map(a=>a.top)),i=Yt(...e.map(a=>a.right)),r=Yt(...e.map(a=>a.bottom));return{x:t,y:n,width:i-t,height:r-n}}function M3e(e){const t=e.slice().sort((r,a)=>r.y-a.y),n=[];let i=null;for(let r=0;r<t.length;r++){const a=t[r];!i||a.y-i.y>i.height/2?n.push([a]):n[n.length-1].push(a),i=a}return n.map(r=>jo(Cw(r)))}const C3e=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:i,rects:r,platform:a,strategy:o}=t,{padding:s=2,x:u,y:c}=bi(e,t),f=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(i.reference))||[]),h=M3e(f),g=jo(Cw(f)),p=$m(s);function y(){if(h.length===2&&h[0].left>h[1].right&&u!=null&&c!=null)return h.find(k=>u>k.left-p.left&&u<k.right+p.right&&c>k.top-p.top&&c<k.bottom+p.bottom)||g;if(h.length>=2){if(vi(n)==="y"){const D=h[0],z=h[h.length-1],H=In(n)==="top",X=D.top,re=z.bottom,ne=H?D.left:z.left,q=H?D.right:z.right,Z=q-ne,ue=re-X;return{top:X,bottom:re,left:ne,right:q,width:Z,height:ue,x:ne,y:X}}const k=In(n)==="left",w=Yt(...h.map(D=>D.right)),M=yi(...h.map(D=>D.left)),x=h.filter(D=>k?D.left===M:D.right===w),S=x[0].top,E=x[x.length-1].bottom,I=M,A=w,W=A-I,$=E-S;return{top:S,bottom:E,left:I,right:A,width:W,height:$,x:I,y:S}}return g}const v=await a.getElementRects({reference:{getBoundingClientRect:y},floating:i.floating,strategy:o});return r.reference.x!==v.reference.x||r.reference.y!==v.reference.y||r.reference.width!==v.reference.width||r.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}},xw=new Set(["left","top"]);async function x3e(e,t){const{placement:n,platform:i,elements:r}=e,a=await(i.isRTL==null?void 0:i.isRTL(r.floating)),o=In(n),s=wi(n),u=vi(n)==="y",c=xw.has(o)?-1:1,f=a&&u?-1:1,h=bi(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof y=="number"&&(p=s==="end"?y*-1:y),u?{x:p*f,y:g*c}:{x:g*c,y:p*f}}const S3e=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:a,placement:o,middlewareData:s}=t,u=await x3e(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(i=s.arrow)!=null&&i.alignmentOffset?{}:{x:r+u.x,y:a+u.y,data:{...u,placement:o}}}}},_3e=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:k=>{let{x:w,y:M}=k;return{x:w,y:M}}},...u}=bi(e,t),c={x:n,y:i},f=await Ia(t,u),h=vi(In(r)),g=Om(h);let p=c[g],y=c[h];if(a){const k=g==="y"?"top":"left",w=g==="y"?"bottom":"right",M=p+f[k],x=p-f[w];p=Wm(M,p,x)}if(o){const k=h==="y"?"top":"left",w=h==="y"?"bottom":"right",M=y+f[k],x=y-f[w];y=Wm(M,y,x)}const v=s.fn({...t,[g]:p,[h]:y});return{...v,data:{x:v.x-n,y:v.y-i,enabled:{[g]:a,[h]:o}}}}}},T3e=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:r,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:u=!0,crossAxis:c=!0}=bi(e,t),f={x:n,y:i},h=vi(r),g=Om(h);let p=f[g],y=f[h];const v=bi(s,t),k=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const x=g==="y"?"height":"width",S=a.reference[g]-a.floating[x]+k.mainAxis,E=a.reference[g]+a.reference[x]-k.mainAxis;p<S?p=S:p>E&&(p=E)}if(c){var w,M;const x=g==="y"?"width":"height",S=xw.has(In(r)),E=a.reference[h]-a.floating[x]+(S&&((w=o.offset)==null?void 0:w[h])||0)+(S?0:k.crossAxis),I=a.reference[h]+a.reference[x]+(S?0:((M=o.offset)==null?void 0:M[h])||0)-(S?k.crossAxis:0);y<E?y=E:y>I&&(y=I)}return{[g]:p,[h]:y}}}},P3e=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:a,platform:o,elements:s}=t,{apply:u=()=>{},...c}=bi(e,t),f=await Ia(t,c),h=In(r),g=wi(r),p=vi(r)==="y",{width:y,height:v}=a.floating;let k,w;h==="top"||h==="bottom"?(k=h,w=g===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(w=h,k=g==="end"?"top":"bottom");const M=v-f.top-f.bottom,x=y-f.left-f.right,S=yi(v-f[k],M),E=yi(y-f[w],x),I=!t.middlewareData.shift;let A=S,W=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(W=x),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(A=M),I&&!g){const D=Yt(f.left,0),z=Yt(f.right,0),H=Yt(f.top,0),X=Yt(f.bottom,0);p?W=y-2*(D!==0||z!==0?D+z:Yt(f.left,f.right)):A=v-2*(H!==0||X!==0?H+X:Yt(f.top,f.bottom))}await u({...t,availableWidth:W,availableHeight:A});const $=await o.getDimensions(s.floating);return y!==$.width||v!==$.height?{reset:{rects:!0}}:{}}}};function pd(){return typeof window<"u"}function Wa(e){return Hm(e)?(e.nodeName||"").toLowerCase():"#document"}function Wn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Li(e){var t;return(t=(Hm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hm(e){return pd()?e instanceof Node||e instanceof Wn(e).Node:!1}function ki(e){return pd()?e instanceof Element||e instanceof Wn(e).Element:!1}function $i(e){return pd()?e instanceof HTMLElement||e instanceof Wn(e).HTMLElement:!1}function Sw(e){return!pd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wn(e).ShadowRoot}const E3e=new Set(["inline","contents"]);function al(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Mi(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!E3e.has(r)}const A3e=new Set(["table","td","th"]);function D3e(e){return A3e.has(Wa(e))}const N3e=[":popover-open",":modal"];function gd(e){return N3e.some(t=>{try{return e.matches(t)}catch{return!1}})}const j3e=["transform","translate","scale","rotate","perspective"],I3e=["transform","translate","scale","rotate","perspective","filter"],W3e=["paint","layout","strict","content"];function Rm(e){const t=Bm(),n=ki(e)?Mi(e):e;return j3e.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||I3e.some(i=>(n.willChange||"").includes(i))||W3e.some(i=>(n.contain||"").includes(i))}function O3e(e){let t=zr(e);for(;$i(t)&&!Io(t);){if(Rm(t))return t;if(gd(t))return null;t=zr(t)}return null}function Bm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const z3e=new Set(["html","body","#document"]);function Io(e){return z3e.has(Wa(e))}function Mi(e){return Wn(e).getComputedStyle(e)}function yd(e){return ki(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zr(e){if(Wa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sw(e)&&e.host||Li(e);return Sw(t)?t.host:t}function _w(e){const t=zr(e);return Io(t)?e.ownerDocument?e.ownerDocument.body:e.body:$i(t)&&al(t)?t:_w(t)}function Wo(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=_w(e),a=r===((i=e.ownerDocument)==null?void 0:i.body),o=Wn(r);if(a){const s=Vm(o);return t.concat(o,o.visualViewport||[],al(r)?r:[],s&&n?Wo(s):[])}return t.concat(r,Wo(r,[],n))}function Vm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tw(e){const t=Mi(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=$i(e),a=r?e.offsetWidth:n,o=r?e.offsetHeight:i,s=cd(n)!==a||cd(i)!==o;return s&&(n=a,i=o),{width:n,height:i,$:s}}function Fm(e){return ki(e)?e:e.contextElement}function Oo(e){const t=Fm(e);if(!$i(t))return zi(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:a}=Tw(t);let o=(a?cd(n.width):n.width)/i,s=(a?cd(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const L3e=zi(0);function Pw(e){const t=Wn(e);return!Bm()||!t.visualViewport?L3e:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $3e(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wn(e)?!1:t}function Oa(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=Fm(e);let o=zi(1);t&&(i?ki(i)&&(o=Oo(i)):o=Oo(e));const s=$3e(a,n,i)?Pw(a):zi(0);let u=(r.left+s.x)/o.x,c=(r.top+s.y)/o.y,f=r.width/o.x,h=r.height/o.y;if(a){const g=Wn(a),p=i&&ki(i)?Wn(i):i;let y=g,v=Vm(y);for(;v&&i&&p!==y;){const k=Oo(v),w=v.getBoundingClientRect(),M=Mi(v),x=w.left+(v.clientLeft+parseFloat(M.paddingLeft))*k.x,S=w.top+(v.clientTop+parseFloat(M.paddingTop))*k.y;u*=k.x,c*=k.y,f*=k.x,h*=k.y,u+=x,c+=S,y=Wn(v),v=Vm(y)}}return jo({width:f,height:h,x:u,y:c})}function Um(e,t){const n=yd(e).scrollLeft;return t?t.left+n:Oa(Li(e)).left+n}function Ew(e,t,n){n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=i.left+t.scrollLeft-(n?0:Um(e,i)),a=i.top+t.scrollTop;return{x:r,y:a}}function H3e(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const a=r==="fixed",o=Li(i),s=t?gd(t.floating):!1;if(i===o||s&&a)return n;let u={scrollLeft:0,scrollTop:0},c=zi(1);const f=zi(0),h=$i(i);if((h||!h&&!a)&&((Wa(i)!=="body"||al(o))&&(u=yd(i)),$i(i))){const p=Oa(i);c=Oo(i),f.x=p.x+i.clientLeft,f.y=p.y+i.clientTop}const g=o&&!h&&!a?Ew(o,u,!0):zi(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+g.x,y:n.y*c.y-u.scrollTop*c.y+f.y+g.y}}function R3e(e){return Array.from(e.getClientRects())}function B3e(e){const t=Li(e),n=yd(e),i=e.ownerDocument.body,r=Yt(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Yt(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+Um(e);const s=-n.scrollTop;return Mi(i).direction==="rtl"&&(o+=Yt(t.clientWidth,i.clientWidth)-r),{width:r,height:a,x:o,y:s}}function V3e(e,t){const n=Wn(e),i=Li(e),r=n.visualViewport;let a=i.clientWidth,o=i.clientHeight,s=0,u=0;if(r){a=r.width,o=r.height;const c=Bm();(!c||c&&t==="fixed")&&(s=r.offsetLeft,u=r.offsetTop)}return{width:a,height:o,x:s,y:u}}const F3e=new Set(["absolute","fixed"]);function U3e(e,t){const n=Oa(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,a=$i(e)?Oo(e):zi(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=r*a.x,c=i*a.y;return{width:o,height:s,x:u,y:c}}function Aw(e,t,n){let i;if(t==="viewport")i=V3e(e,n);else if(t==="document")i=B3e(Li(e));else if(ki(t))i=U3e(t,n);else{const r=Pw(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return jo(i)}function Dw(e,t){const n=zr(e);return n===t||!ki(n)||Io(n)?!1:Mi(n).position==="fixed"||Dw(n,t)}function Y3e(e,t){const n=t.get(e);if(n)return n;let i=Wo(e,[],!1).filter(s=>ki(s)&&Wa(s)!=="body"),r=null;const a=Mi(e).position==="fixed";let o=a?zr(e):e;for(;ki(o)&&!Io(o);){const s=Mi(o),u=Rm(o);!u&&s.position==="fixed"&&(r=null),(a?!u&&!r:!u&&s.position==="static"&&!!r&&F3e.has(r.position)||al(o)&&!u&&Dw(e,o))?i=i.filter(f=>f!==o):r=s,o=zr(o)}return t.set(e,i),i}function X3e(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const o=[...n==="clippingAncestors"?gd(t)?[]:Y3e(t,this._c):[].concat(n),i],s=o[0],u=o.reduce((c,f)=>{const h=Aw(t,f,r);return c.top=Yt(h.top,c.top),c.right=yi(h.right,c.right),c.bottom=yi(h.bottom,c.bottom),c.left=Yt(h.left,c.left),c},Aw(t,s,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function q3e(e){const{width:t,height:n}=Tw(e);return{width:t,height:n}}function G3e(e,t,n){const i=$i(t),r=Li(t),a=n==="fixed",o=Oa(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=zi(0);function c(){u.x=Um(r)}if(i||!i&&!a)if((Wa(t)!=="body"||al(r))&&(s=yd(t)),i){const p=Oa(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else r&&c();a&&!i&&r&&c();const f=r&&!i&&!a?Ew(r,s):zi(0),h=o.left+s.scrollLeft-u.x-f.x,g=o.top+s.scrollTop-u.y-f.y;return{x:h,y:g,width:o.width,height:o.height}}function Ym(e){return Mi(e).position==="static"}function Nw(e,t){if(!$i(e)||Mi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Li(e)===n&&(n=n.ownerDocument.body),n}function jw(e,t){const n=Wn(e);if(gd(e))return n;if(!$i(e)){let r=zr(e);for(;r&&!Io(r);){if(ki(r)&&!Ym(r))return r;r=zr(r)}return n}let i=Nw(e,t);for(;i&&D3e(i)&&Ym(i);)i=Nw(i,t);return i&&Io(i)&&Ym(i)&&!Rm(i)?n:i||O3e(e)||n}const K3e=async function(e){const t=this.getOffsetParent||jw,n=this.getDimensions,i=await n(e.floating);return{reference:G3e(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Q3e(e){return Mi(e).direction==="rtl"}const Iw={convertOffsetParentRelativeRectToViewportRelativeRect:H3e,getDocumentElement:Li,getClippingRect:X3e,getOffsetParent:jw,getElementRects:K3e,getClientRects:R3e,getDimensions:q3e,getScale:Oo,isElement:ki,isRTL:Q3e};function Ww(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function J3e(e,t){let n=null,i;const r=Li(e);function a(){var s;clearTimeout(i),(s=n)==null||s.disconnect(),n=null}function o(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const c=e.getBoundingClientRect(),{left:f,top:h,width:g,height:p}=c;if(s||t(),!g||!p)return;const y=fd(h),v=fd(r.clientWidth-(f+g)),k=fd(r.clientHeight-(h+p)),w=fd(f),x={rootMargin:-y+"px "+-v+"px "+-k+"px "+-w+"px",threshold:Yt(0,yi(1,u))||1};let S=!0;function E(I){const A=I[0].intersectionRatio;if(A!==u){if(!S)return o();A?o(!1,A):i=setTimeout(()=>{o(!1,1e-7)},1e3)}A===1&&!Ww(c,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(E,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return o(!0),a}function Xm(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,c=Fm(e),f=r||a?[...c?Wo(c):[],...Wo(t)]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const h=c&&s?J3e(c,n):null;let g=-1,p=null;o&&(p=new ResizeObserver(w=>{let[M]=w;M&&M.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!u&&p.observe(c),p.observe(t));let y,v=u?Oa(e):null;u&&k();function k(){const w=Oa(e);v&&!Ww(v,w)&&n(),v=w,y=requestAnimationFrame(k)}return n(),()=>{var w;f.forEach(M=>{r&&M.removeEventListener("scroll",n),a&&M.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,u&&cancelAnimationFrame(y)}}const Z3e=Ia,qm=S3e,Gm=w3e,e4e=_3e,t4e=v3e,n4e=P3e,i4e=k3e,r4e=y3e,a4e=C3e,o4e=T3e,Ow=(e,t,n)=>{const i=new Map,r={platform:Iw,...n},a={...r.platform,_c:i};return g3e(e,t,{...r,platform:a})};function s4e(e){return e!=null&&typeof e=="object"&&"$el"in e}function Km(e){if(s4e(e)){const t=e.$el;return Hm(t)&&Wa(t)==="#comment"?null:t}return e}function zo(e){return typeof e=="function"?e():l.unref(e)}function l4e(e){return{name:"arrow",options:e,fn(t){const n=Km(zo(e.element));return n==null?{}:r4e({element:n,padding:e.padding}).fn(t)}}}function zw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lw(e,t){const n=zw(e);return Math.round(t*n)/n}function Qm(e,t,n){n===void 0&&(n={});const i=n.whileElementsMounted,r=l.computed(()=>{var A;return(A=zo(n.open))!=null?A:!0}),a=l.computed(()=>zo(n.middleware)),o=l.computed(()=>{var A;return(A=zo(n.placement))!=null?A:"bottom"}),s=l.computed(()=>{var A;return(A=zo(n.strategy))!=null?A:"absolute"}),u=l.computed(()=>{var A;return(A=zo(n.transform))!=null?A:!0}),c=l.computed(()=>Km(e.value)),f=l.computed(()=>Km(t.value)),h=l.ref(0),g=l.ref(0),p=l.ref(s.value),y=l.ref(o.value),v=l.shallowRef({}),k=l.ref(!1),w=l.computed(()=>{const A={position:p.value,left:"0",top:"0"};if(!f.value)return A;const W=Lw(f.value,h.value),$=Lw(f.value,g.value);return u.value?{...A,transform:"translate("+W+"px, "+$+"px)",...zw(f.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:W+"px",top:$+"px"}});let M;function x(){if(c.value==null||f.value==null)return;const A=r.value;Ow(c.value,f.value,{middleware:a.value,placement:o.value,strategy:s.value}).then(W=>{h.value=W.x,g.value=W.y,p.value=W.strategy,y.value=W.placement,v.value=W.middlewareData,k.value=A!==!1})}function S(){typeof M=="function"&&(M(),M=void 0)}function E(){if(S(),i===void 0){x();return}if(c.value!=null&&f.value!=null){M=i(c.value,f.value,x);return}}function I(){r.value||(k.value=!1)}return l.watch([a,o,s,r],x,{flush:"sync"}),l.watch([c,f],E,{flush:"sync"}),l.watch(r,I,{flush:"sync"}),l.getCurrentScope()&&l.onScopeDispose(S),{x:l.shallowReadonly(h),y:l.shallowReadonly(g),strategy:l.shallowReadonly(p),placement:l.shallowReadonly(y),middlewareData:l.shallowReadonly(v),isPositioned:l.shallowReadonly(k),floatingStyles:w,update:x}}const u4e=pe(l.defineComponent({__name:"PopoverWrapper",props:{placement:{default:"bottom-start"},open:{type:Boolean,default:!1}},emits:["unmount-close"],setup(e,{emit:t}){const n=e,i=t,r=l.ref(null),a=l.ref(null),o=l.ref(null),{floatingStyles:s}=Qm(a,o,{middleware:[qm(10),Gm({crossAxis:!0,allowedPlacements:["top-start","bottom-start"]})],placement:n.placement,whileElementsMounted:Xm}),u=()=>{i("unmount-close")},c=f=>{r.value&&!r.value.contains(f.target)&&u()};return l.onBeforeUnmount(()=>{document.removeEventListener("click",c)}),l.onMounted(()=>{document.addEventListener("click",c)}),(f,h)=>(l.openBlock(),l.createElementBlock("div",{class:"popover-wrapper",ref_key:"popoverWrapper",ref:r},[l.createElementVNode("div",{class:"popover-trigger",ref_key:"popoverTrigger",ref:a},[l.renderSlot(f.$slots,"trigger",{},void 0,!0)],512),n.open?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"popoverContent",ref:o,class:l.normalizeClass(["popover-content",[`popover-${e.placement}`,{"popover-show":n.open}]]),style:l.normalizeStyle(l.unref(s))},[l.renderSlot(f.$slots,"default",{},void 0,!0)],6)):l.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-e686f30e"]]),$w=e=>e instanceof Date&&!isNaN(e.getTime()),bd=e=>{const t=$w(e)&&e!==null?e:new Date;return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59,999))},Hw=e=>{const t=$w(e)&&e!==null?e:new Date,n={year:t.getFullYear(),month:t.getMonth(),day:t.getDate()};return new Date(Date.UTC(n.year,n.month,n.day))},d4e=(e,t)=>{if(!e)return"";t!=="ru-RU"&&(t="en-US");const n=new Date(e),i=ud(t),r=n.getDate().toString().padStart(2,"0"),a=n.getFullYear().toString();return`${i[n.getMonth()]} ${r}, ${a}`},c4e=["data-testid"],f4e=[".date",".minDate",".maxDate","locale","data-testid"],Jm=l.defineComponent({__name:"DatePicker",props:l.mergeModels({range:{},locale:{default:"ru-RU"},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePicker"}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["clear","change"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const i=e,r=l.reactive({isActive:!1,isOpen:{months:!1,years:!1},isNotClear:!0,startDate:null,endDate:null}),a=n,o=l.useModel(e,"modelValue"),s=()=>{r.isNotClear=!1,o.value=null,a("clear"),setTimeout(()=>r.isNotClear=!0,1),u({detail:{date:null}})},u=({detail:w})=>{w&&(o.value=w.date,r.isActive=!1,a("change",w.date))},c=()=>{r.isOpen.months=!0},f=()=>{r.isOpen.years=!0},h=()=>{r.isOpen.months=!1},g=()=>{r.isOpen.years=!1},p=()=>{r.isActive=!1,h(),g()};l.watchEffect(()=>r.startDate=i.startDate??null),l.watchEffect(()=>r.endDate=i.endDate??null);const y=()=>{const w=r.startDate??new Date;if(i.startDate){const M=o.value??new Date;if(w.valueOf()<=M.valueOf())return w;if(w!=null)return w}return null},v=()=>{const w=r.endDate??new Date;if(i.endDate){const M=o.value??new Date;if(w.valueOf()>=M.valueOf())return w;if(w!=null)return w}return null},k=()=>{r.isActive=!0};return l.watch(()=>o.value,()=>{o.value||(r.isNotClear=!1,o.value=null,setTimeout(()=>r.isNotClear=!0,1))}),t({clearChoose:s}),(w,M)=>(l.openBlock(),l.createElementBlock("div",{class:"date-picker-yui-kit__wrapper","data-testid":`${i.dataTestid}-Wrapper`},[l.createVNode(u4e,{open:!i.disabled&&r.isActive,onUnmountClose:p},{trigger:l.withCtx(()=>[l.createVNode(o3e,{onClick:k,onClear:s,"is-active":r.isActive,"is-small":i.isSmall,"is-range":i.isRange,disabled:i.disabled,"data-testid":`${i.dataTestid}-Choose`,value:l.unref(d4e)(o.value||null,i.locale)},null,8,["is-active","is-small","is-range","disabled","data-testid","value"])]),default:l.withCtx(()=>[l.createElementVNode("col-cal",{".date":o.value,".minDate":y(),".maxDate":v(),locale:i.locale??"ru-RU","data-testid":`${i.dataTestid}-Component`,onShowMonths:c,onShowYears:f,onHideMonths:h,onHideYears:g,onChangeDate:u,class:"date-picker-yui-kit"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Object.keys(r.isOpen),x=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:x},[r.isOpen[x]?(l.openBlock(),l.createBlock(ve,{key:0,name:l.unref(ce).chevronUp,width:16,height:16,class:"open-popup",slot:`${x}-popup-icon`},null,8,["name","slot"])):(l.openBlock(),l.createBlock(ve,{key:1,name:l.unref(ce).chevronDown,width:16,height:16,slot:`${x}-popup-icon`},null,8,["name","slot"]))],64))),128)),l.createVNode(ve,{slot:"icon-left-button",name:l.unref(ce).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(ve,{slot:"icon-right-button",name:l.unref(ce).chevronRight,width:16,height:16},null,8,["name"]),l.createVNode(ve,{slot:"years-icon-left",name:l.unref(ce).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(ve,{slot:"years-icon-right",name:l.unref(ce).chevronRight,width:16,height:16},null,8,["name"])],40,f4e)]),_:1},8,["open"])],8,c4e))}});var za=(e=>(e.start="start",e.end="end",e))(za||{});const h4e=["data-testid"],m4e=["data-testid"],p4e=pe(l.defineComponent({__name:"DatePickerRange",props:l.mergeModels({range:{},locale:{default:"ru-RU"},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePickerRange"}},{startDate:{},startDateModifiers:{},endDate:{},endDateModifiers:{}}),emits:l.mergeModels(["change"],["update:startDate","update:endDate"]),setup(e,{expose:t,emit:n}){const i=e,r=n,a=l.reactive({date:{start:null,end:null},isActive:!1}),o=l.useModel(e,"startDate"),s=l.useModel(e,"endDate"),u=(g,p)=>{p===za.start&&(a.date[p]=g),p===za.end&&(a.date[p]=i.toLastTime&&g!==null?bd(g):g),r("change",a.date)},c=g=>{a.date[g]=null},f=()=>{Object.keys(a.date).forEach(g=>{a.date[g]=null})},h=()=>{(o.value||s.value)&&(a.date={start:o.value,end:i.toLastTime?bd(s.value):s.value})};return l.watch([()=>o.value,()=>s.value],()=>{h()}),l.onMounted(()=>{h()}),t({clear:f}),(g,p)=>{var y,v;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["date-picker-yui-kit__header",{"date-disable-yui-kit":i.disabled},{"date-active-yui-kit":a.isActive}]),"data-testid":`${i.dataTestid}-Header`},[l.createVNode(Jm,{modelValue:a.date.start,"onUpdate:modelValue":p[0]||(p[0]=k=>a.date.start=k),locale:i.locale,"is-range":"",disabled:i.disabled,"end-date":(y=a.date)==null?void 0:y.end,onChange:p[1]||(p[1]=k=>u(k,l.unref(za).start)),onClear:p[2]||(p[2]=k=>c(l.unref(za).start)),"data-testid":`${i.dataTestid}-Component-Start`},null,8,["modelValue","locale","disabled","end-date","data-testid"]),l.createElementVNode("div",{class:"date-picker-yui-kit__header__dash","data-testid":`${i.dataTestid}-Header-Dash`},null,8,m4e),l.createVNode(Jm,{modelValue:a.date.end,"onUpdate:modelValue":p[3]||(p[3]=k=>a.date.end=k),locale:i.locale,"is-range":"",disabled:i.disabled,"start-date":(v=a.date)==null?void 0:v.start,onChange:p[4]||(p[4]=k=>u(k,l.unref(za).end)),onClear:p[5]||(p[5]=k=>c(l.unref(za).end)),"data-testid":`${i.dataTestid}-Component-End`},null,8,["modelValue","locale","disabled","start-date","data-testid"])],10,h4e)}}}),[["__scopeId","data-v-75e1e357"]]),Zm=l.defineComponent({__name:"Calendar",props:{range:{},locale:{},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"Calendar"}},emits:["change","click"],setup(e,{emit:t}){const n=e,i=l.reactive({date:null,dateObject:{start:null,end:null}}),r=t,a=l.ref(),o=u=>{r("change",u)};l.watchEffect(()=>i.date=n.setDate||null);const s=()=>{var u,c;return{start:n.fromTodayTime?new Date(Date.now()):((u=n.range)==null?void 0:u.start)??null,end:((c=n.range)==null?void 0:c.end)??null}};return l.watch([()=>{var u;return(u=n.range)==null?void 0:u.start},()=>{var u;return(u=n.range)==null?void 0:u.end}],()=>{var u,c,f;i.dateObject=s(),((u=n.range)==null?void 0:u.start)===null&&((c=n.range)==null?void 0:c.end)===null&&((f=a.value)==null||f.clear())}),l.onMounted(()=>{if(n.isRange){i.dateObject=s();return}n.setDate&&(i.date=n.setDate??null)}),(u,c)=>n.isRange?(l.openBlock(),l.createBlock(p4e,{key:0,ref_key:"datePickerRangeRef",ref:a,"to-last-time":n.toLastTime,"start-date":i.dateObject.start,"onUpdate:startDate":c[0]||(c[0]=f=>i.dateObject.start=f),"end-date":i.dateObject.end,"onUpdate:endDate":c[1]||(c[1]=f=>i.dateObject.end=f),disabled:n.disabled,locale:n.locale,onClick:c[2]||(c[2]=f=>r("click")),onChange:o,"data-testid":`${n.dataTestid}-DataPickerRange`},null,8,["to-last-time","start-date","end-date","disabled","locale","data-testid"])):(l.openBlock(),l.createBlock(Jm,{key:1,modelValue:i.date,"onUpdate:modelValue":c[3]||(c[3]=f=>i.date=f),disabled:n.disabled,locale:n.locale,"is-small":n.isSmall,"data-testid":`${n.dataTestid}-DataPicker`,onClick:c[4]||(c[4]=f=>r("click")),onChange:o},null,8,["modelValue","disabled","locale","is-small","data-testid"]))}});function Rw(e,t){var n;const i=l.shallowRef();return l.watchEffect(()=>{i.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!=null?n:"sync"}),l.readonly(i)}function e1(e,t){let n,i,r;const a=l.ref(!0),o=()=>{a.value=!0,r()};l.watch(e,o,{flush:"sync"});const s=typeof t=="function"?t:t.get,u=typeof t=="function"?void 0:t.set,c=l.customRef((f,h)=>(i=f,r=h,{get(){return a.value&&(n=s(n),a.value=!1),i(),n},set(g){u==null||u(g)}}));return Object.isExtensible(c)&&(c.trigger=o),c}function Oe(e){return l.getCurrentScope()?(l.onScopeDispose(e),!0):!1}function ln(){const e=new Set,t=r=>{e.delete(r)};return{on:r=>{e.add(r);const a=()=>t(r);return Oe(a),{off:a}},off:t,trigger:(...r)=>Promise.all(Array.from(e).map(a=>a(...r)))}}function g4e(e){let t=!1,n;const i=l.effectScope(!0);return(...r)=>(t||(n=i.run(()=>e(...r)),t=!0),n)}const Lo=new WeakMap,Bw=(e,t)=>{var n;const i=(n=l.getCurrentInstance())==null?void 0:n.proxy;if(i==null)throw new Error("provideLocal must be called in setup");Lo.has(i)||Lo.set(i,Object.create(null));const r=Lo.get(i);r[e]=t,l.provide(e,t)},Vw=(...e)=>{var t;const n=e[0],i=(t=l.getCurrentInstance())==null?void 0:t.proxy;if(i==null)throw new Error("injectLocal must be called in setup");return Lo.has(i)&&n in Lo.get(i)?Lo.get(i)[n]:l.inject(...e)};function y4e(e,t){const n=(t==null?void 0:t.injectionKey)||Symbol(e.name||"InjectionState"),i=t==null?void 0:t.defaultValue;return[(...o)=>{const s=e(...o);return Bw(n,s),s},()=>Vw(n,i)]}function b4e(e){let t=0,n,i;const r=()=>{t-=1,i&&t<=0&&(i.stop(),n=void 0,i=void 0)};return(...a)=>(t+=1,i||(i=l.effectScope(!0),n=i.run(()=>e(...a))),Oe(r),n)}function Fw(e,t,{enumerable:n=!1,unwrap:i=!0}={}){for(const[r,a]of Object.entries(t))r!=="value"&&(l.isRef(a)&&i?Object.defineProperty(e,r,{get(){return a.value},set(o){a.value=o},enumerable:n}):Object.defineProperty(e,r,{value:a,enumerable:n}));return e}function w4e(e,t){return t==null?l.unref(e):l.unref(e)[t]}function v4e(e){return l.unref(e)!=null}function Uw(e,t){if(typeof Symbol<"u"){const n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let i=0;return{next:()=>({value:t[i++],done:i>t.length})}}}),n}else return Object.assign([...t],e)}function B(e){return typeof e=="function"?e():l.unref(e)}const k4e=B;function t1(e,t){const n=(t==null?void 0:t.computedGetter)===!1?l.unref:B;return function(...i){return l.computed(()=>e.apply(this,i.map(r=>n(r))))}}function M4e(e,t={}){let n=[],i;if(Array.isArray(t))n=t;else{i=t;const{includeOwnProperties:r=!0}=t;n.push(...Object.keys(e)),r&&n.push(...Object.getOwnPropertyNames(e))}return Object.fromEntries(n.map(r=>{const a=e[r];return[r,typeof a=="function"?t1(a.bind(e),i):a]}))}function Yw(e){if(!l.isRef(e))return l.reactive(e);const t=new Proxy({},{get(n,i,r){return l.unref(Reflect.get(e.value,i,r))},set(n,i,r){return l.isRef(e.value[i])&&!l.isRef(r)?e.value[i].value=r:e.value[i]=r,!0},deleteProperty(n,i){return Reflect.deleteProperty(e.value,i)},has(n,i){return Reflect.has(e.value,i)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return l.reactive(t)}function n1(e){return Yw(l.computed(e))}function C4e(e,...t){const n=t.flat(),i=n[0];return n1(()=>Object.fromEntries(typeof i=="function"?Object.entries(l.toRefs(e)).filter(([r,a])=>!i(B(a),r)):Object.entries(l.toRefs(e)).filter(r=>!n.includes(r[0]))))}const Et=typeof window<"u"&&typeof document<"u",Xw=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,qw=e=>typeof e<"u",wd=e=>e!=null,x4e=(e,...t)=>{e||console.warn(...t)},S4e=Object.prototype.toString,ol=e=>S4e.call(e)==="[object Object]",_4e=()=>Date.now(),La=()=>+Date.now(),vd=(e,t,n)=>Math.min(n,Math.max(t,e)),Ve=()=>{},T4e=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e),Gw=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),kd=P4e();function P4e(){var e,t;return Et&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function $a(e,t){function n(...i){return new Promise((r,a)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(r).catch(a)})}return n}const sl=e=>e();function Md(e,t={}){let n,i,r=Ve;const a=s=>{clearTimeout(s),r(),r=Ve};return s=>{const u=B(e),c=B(t.maxWait);return n&&a(n),u<=0||c!==void 0&&c<=0?(i&&(a(i),i=null),Promise.resolve(s())):new Promise((f,h)=>{r=t.rejectOnCancel?h:f,c&&!i&&(i=setTimeout(()=>{n&&a(n),i=null,f(s())},c)),n=setTimeout(()=>{i&&a(i),i=null,f(s())},u)})}}function ll(...e){let t=0,n,i=!0,r=Ve,a,o,s,u,c;!l.isRef(e[0])&&typeof e[0]=="object"?{delay:o,trailing:s=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[o,s=!0,u=!0,c=!1]=e;const f=()=>{n&&(clearTimeout(n),n=void 0,r(),r=Ve)};return g=>{const p=B(o),y=Date.now()-t,v=()=>a=g();return f(),p<=0?(t=Date.now(),v()):(y>p&&(u||!i)?(t=Date.now(),v()):s&&(a=new Promise((k,w)=>{r=c?w:k,n=setTimeout(()=>{t=Date.now(),i=!0,k(v()),f()},Math.max(0,p-y))})),!u&&!n&&(n=setTimeout(()=>i=!0,p)),i=!1,a)}}function i1(e=sl){const t=l.ref(!0);function n(){t.value=!1}function i(){t.value=!0}const r=(...a)=>{t.value&&e(...a)};return{isActive:l.readonly(t),pause:n,resume:i,eventFilter:r}}const E4e={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Kw(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}const A4e=/\B([A-Z])/g,D4e=Kw(e=>e.replace(A4e,"-$1").toLowerCase()),N4e=/-(\w)/g,Qw=Kw(e=>e.replace(N4e,(t,n)=>n?n.toUpperCase():""));function ul(e,t=!1,n="Timeout"){return new Promise((i,r)=>{setTimeout(t?()=>r(n):i,e)})}function r1(e){return e}function Jw(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const i=t;t=void 0,i&&await i},n}function j4e(e){return e()}function a1(e,...t){return t.some(n=>n in e)}function Zw(e,t){var n;if(typeof e=="number")return e+t;const i=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",r=e.slice(i.length),a=Number.parseFloat(i)+t;return Number.isNaN(a)?e:a+r}function ev(e,t,n=!1){return t.reduce((i,r)=>(r in e&&(!n||e[r]!==void 0)&&(i[r]=e[r]),i),{})}function tv(e,t,n=!1){return Object.fromEntries(Object.entries(e).filter(([i,r])=>(!n||r!==void 0)&&!t.includes(i)))}function nv(e){return Object.entries(e)}function dl(e){return e||l.getCurrentInstance()}function wt(...e){if(e.length!==1)return l.toRef(...e);const t=e[0];return typeof t=="function"?l.readonly(l.customRef(()=>({get:t,set:Ve}))):l.ref(t)}const I4e=wt;function W4e(e,...t){const n=t.flat(),i=n[0];return n1(()=>Object.fromEntries(typeof i=="function"?Object.entries(l.toRefs(e)).filter(([r,a])=>i(B(a),r)):n.map(r=>[r,wt(e,r)])))}function iv(e,t=1e4){return l.customRef((n,i)=>{let r=B(e),a;const o=()=>setTimeout(()=>{r=B(e),i()},B(t));return Oe(()=>{clearTimeout(a)}),{get(){return n(),r},set(s){r=s,i(),clearTimeout(a),a=o()}}})}function Cd(e,t=200,n={}){return $a(Md(t,n),e)}function o1(e,t=200,n={}){const i=l.ref(e.value),r=Cd(()=>{i.value=e.value},t,n);return l.watch(e,()=>r()),i}function O4e(e,t){return l.computed({get(){var n;return(n=e.value)!=null?n:t},set(n){e.value=n}})}function s1(e,t=200,n=!1,i=!0,r=!1){return $a(ll(t,n,i,r),e)}function l1(e,t=200,n=!0,i=!0){if(t<=0)return e;const r=l.ref(e.value),a=s1(()=>{r.value=e.value},t,n,i);return l.watch(e,()=>a()),r}function rv(e,t={}){let n=e,i,r;const a=l.customRef((g,p)=>(i=g,r=p,{get(){return o()},set(y){s(y)}}));function o(g=!0){return g&&i(),n}function s(g,p=!0){var y,v;if(g===n)return;const k=n;((y=t.onBeforeChange)==null?void 0:y.call(t,g,k))!==!1&&(n=g,(v=t.onChanged)==null||v.call(t,g,k),p&&r())}return Fw(a,{get:o,set:s,untrackedGet:()=>o(!1),silentSet:g=>s(g,!1),peek:()=>o(!1),lay:g=>s(g,!1)},{enumerable:!0})}const z4e=rv;function L4e(...e){if(e.length===2){const[t,n]=e;t.value=n}if(e.length===3){const[t,n,i]=e;t[n]=i}}function $o(e,t,n={}){const{eventFilter:i=sl,...r}=n;return l.watch(e,$a(i,t),r)}function Ho(e,t,n={}){const{eventFilter:i,...r}=n,{eventFilter:a,pause:o,resume:s,isActive:u}=i1(i);return{stop:$o(e,t,{...r,eventFilter:a}),pause:o,resume:s,isActive:u}}function u1(e,t,...[n]){const{flush:i="sync",deep:r=!1,immediate:a=!0,direction:o="both",transform:s={}}=n||{},u=[],c="ltr"in s&&s.ltr||(g=>g),f="rtl"in s&&s.rtl||(g=>g);return(o==="both"||o==="ltr")&&u.push(Ho(e,g=>{u.forEach(p=>p.pause()),t.value=c(g),u.forEach(p=>p.resume())},{flush:i,deep:r,immediate:a})),(o==="both"||o==="rtl")&&u.push(Ho(t,g=>{u.forEach(p=>p.pause()),e.value=f(g),u.forEach(p=>p.resume())},{flush:i,deep:r,immediate:a})),()=>{u.forEach(g=>g.stop())}}function $4e(e,t,n={}){const{flush:i="sync",deep:r=!1,immediate:a=!0}=n;return Array.isArray(t)||(t=[t]),l.watch(e,o=>t.forEach(s=>s.value=o),{flush:i,deep:r,immediate:a})}function d1(e,t={}){if(!l.isRef(e))return l.toRefs(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const i in e.value)n[i]=l.customRef(()=>({get(){return e.value[i]},set(r){var a;if((a=B(t.replaceRef))!=null?a:!0)if(Array.isArray(e.value)){const s=[...e.value];s[i]=r,e.value=s}else{const s={...e.value,[i]:r};Object.setPrototypeOf(s,Object.getPrototypeOf(e.value)),e.value=s}else e.value[i]=r}}));return n}function H4e(e,t=!0,n){dl(n)?l.onBeforeMount(e,n):t?e():l.nextTick(e)}function av(e,t){dl(t)&&l.onBeforeUnmount(e,t)}function At(e,t=!0,n){dl()?l.onMounted(e,n):t?e():l.nextTick(e)}function ov(e,t){dl(t)&&l.onUnmounted(e,t)}function c1(e,t=!1){function n(h,{flush:g="sync",deep:p=!1,timeout:y,throwOnTimeout:v}={}){let k=null;const M=[new Promise(x=>{k=l.watch(e,S=>{h(S)!==t&&(k?k():l.nextTick(()=>k==null?void 0:k()),x(S))},{flush:g,deep:p,immediate:!0})})];return y!=null&&M.push(ul(y,v).then(()=>B(e)).finally(()=>k==null?void 0:k())),Promise.race(M)}function i(h,g){if(!l.isRef(h))return n(S=>S===h,g);const{flush:p="sync",deep:y=!1,timeout:v,throwOnTimeout:k}=g??{};let w=null;const x=[new Promise(S=>{w=l.watch([e,h],([E,I])=>{t!==(E===I)&&(w?w():l.nextTick(()=>w==null?void 0:w()),S(E))},{flush:p,deep:y,immediate:!0})})];return v!=null&&x.push(ul(v,k).then(()=>B(e)).finally(()=>(w==null||w(),B(e)))),Promise.race(x)}function r(h){return n(g=>!!g,h)}function a(h){return i(null,h)}function o(h){return i(void 0,h)}function s(h){return n(Number.isNaN,h)}function u(h,g){return n(p=>{const y=Array.from(p);return y.includes(h)||y.includes(B(h))},g)}function c(h){return f(1,h)}function f(h=1,g){let p=-1;return n(()=>(p+=1,p>=h),g)}return Array.isArray(B(e))?{toMatch:n,toContains:u,changed:c,changedTimes:f,get not(){return c1(e,!t)}}:{toMatch:n,toBe:i,toBeTruthy:r,toBeNull:a,toBeNaN:s,toBeUndefined:o,changed:c,changedTimes:f,get not(){return c1(e,!t)}}}function cl(e){return c1(e)}function R4e(e,t){return e===t}function B4e(...e){var t;const n=e[0],i=e[1];let r=(t=e[2])!=null?t:R4e;if(typeof r=="string"){const a=r;r=(o,s)=>o[a]===s[a]}return l.computed(()=>B(n).filter(a=>B(i).findIndex(o=>r(a,o))===-1))}function V4e(e,t){return l.computed(()=>B(e).every((n,i,r)=>t(B(n),i,r)))}function F4e(e,t){return l.computed(()=>B(e).map(n=>B(n)).filter(t))}function U4e(e,t){return l.computed(()=>B(B(e).find((n,i,r)=>t(B(n),i,r))))}function Y4e(e,t){return l.computed(()=>B(e).findIndex((n,i,r)=>t(B(n),i,r)))}function X4e(e,t){let n=e.length;for(;n-- >0;)if(t(e[n],n,e))return e[n]}function q4e(e,t){return l.computed(()=>B(Array.prototype.findLast?B(e).findLast((n,i,r)=>t(B(n),i,r)):X4e(B(e),(n,i,r)=>t(B(n),i,r))))}function G4e(e){return ol(e)&&a1(e,"formIndex","comparator")}function K4e(...e){var t;const n=e[0],i=e[1];let r=e[2],a=0;if(G4e(r)&&(a=(t=r.fromIndex)!=null?t:0,r=r.comparator),typeof r=="string"){const o=r;r=(s,u)=>s[o]===B(u)}return r=r??((o,s)=>o===B(s)),l.computed(()=>B(n).slice(a).some((o,s,u)=>r(B(o),B(i),s,B(u))))}function Q4e(e,t){return l.computed(()=>B(e).map(n=>B(n)).join(B(t)))}function J4e(e,t){return l.computed(()=>B(e).map(n=>B(n)).map(t))}function Z4e(e,t,...n){const i=(r,a,o)=>t(B(r),B(a),o);return l.computed(()=>{const r=B(e);return n.length?r.reduce(i,B(n[0])):r.reduce(i)})}function e6e(e,t){return l.computed(()=>B(e).some((n,i,r)=>t(B(n),i,r)))}function t6e(e){return Array.from(new Set(e))}function n6e(e,t){return e.reduce((n,i)=>(n.some(r=>t(i,r,e))||n.push(i),n),[])}function i6e(e,t){return l.computed(()=>{const n=B(e).map(i=>B(i));return t?n6e(n,t):t6e(n)})}function r6e(e=0,t={}){let n=l.unref(e);const i=l.ref(e),{max:r=Number.POSITIVE_INFINITY,min:a=Number.NEGATIVE_INFINITY}=t,o=(h=1)=>i.value=Math.max(Math.min(r,i.value+h),a),s=(h=1)=>i.value=Math.min(Math.max(a,i.value-h),r),u=()=>i.value,c=h=>i.value=Math.max(a,Math.min(r,h));return{count:i,inc:o,dec:s,get:u,set:c,reset:(h=n)=>(n=h,c(h))}}const a6e=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,o6e=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function s6e(e,t,n,i){let r=e<12?"AM":"PM";return i&&(r=r.split("").reduce((a,o)=>a+=`${o}.`,"")),n?r.toLowerCase():r}function Ha(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function sv(e,t,n={}){var i;const r=e.getFullYear(),a=e.getMonth(),o=e.getDate(),s=e.getHours(),u=e.getMinutes(),c=e.getSeconds(),f=e.getMilliseconds(),h=e.getDay(),g=(i=n.customMeridiem)!=null?i:s6e,p={Yo:()=>Ha(r),YY:()=>String(r).slice(-2),YYYY:()=>r,M:()=>a+1,Mo:()=>Ha(a+1),MM:()=>`${a+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(B(n.locales),{month:"short"}),MMMM:()=>e.toLocaleDateString(B(n.locales),{month:"long"}),D:()=>String(o),Do:()=>Ha(o),DD:()=>`${o}`.padStart(2,"0"),H:()=>String(s),Ho:()=>Ha(s),HH:()=>`${s}`.padStart(2,"0"),h:()=>`${s%12||12}`.padStart(1,"0"),ho:()=>Ha(s%12||12),hh:()=>`${s%12||12}`.padStart(2,"0"),m:()=>String(u),mo:()=>Ha(u),mm:()=>`${u}`.padStart(2,"0"),s:()=>String(c),so:()=>Ha(c),ss:()=>`${c}`.padStart(2,"0"),SSS:()=>`${f}`.padStart(3,"0"),d:()=>h,dd:()=>e.toLocaleDateString(B(n.locales),{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(B(n.locales),{weekday:"short"}),dddd:()=>e.toLocaleDateString(B(n.locales),{weekday:"long"}),A:()=>g(s,u),AA:()=>g(s,u,!1,!0),a:()=>g(s,u,!0),aa:()=>g(s,u,!0,!0)};return t.replace(o6e,(y,v)=>{var k,w;return(w=v??((k=p[y])==null?void 0:k.call(p)))!=null?w:y})}function lv(e){if(e===null)return new Date(Number.NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){const t=e.match(a6e);if(t){const n=t[2]-1||0,i=(t[7]||"0").substring(0,3);return new Date(t[1],n,t[3]||1,t[4]||0,t[5]||0,t[6]||0,i)}}return new Date(e)}function l6e(e,t="HH:mm:ss",n={}){return l.computed(()=>sv(lv(B(e)),B(t),n))}function Lr(e,t=1e3,n={}){const{immediate:i=!0,immediateCallback:r=!1}=n;let a=null;const o=l.ref(!1);function s(){a&&(clearInterval(a),a=null)}function u(){o.value=!1,s()}function c(){const f=B(t);f<=0||(o.value=!0,r&&e(),s(),a=setInterval(e,f))}if(i&&Et&&c(),l.isRef(t)||typeof t=="function"){const f=l.watch(t,()=>{o.value&&Et&&c()});Oe(f)}return Oe(u),{isActive:o,pause:u,resume:c}}function u6e(e=1e3,t={}){const{controls:n=!1,immediate:i=!0,callback:r}=t,a=l.ref(0),o=()=>a.value+=1,s=()=>{a.value=0},u=Lr(r?()=>{o(),r(a.value)}:o,e,{immediate:i});return n?{counter:a,reset:s,...u}:a}function d6e(e,t={}){var n;const i=l.ref((n=t.initialValue)!=null?n:null);return l.watch(e,()=>i.value=La(),t),i}function Ro(e,t,n={}){const{immediate:i=!0}=n,r=l.ref(!1);let a=null;function o(){a&&(clearTimeout(a),a=null)}function s(){r.value=!1,o()}function u(...c){o(),r.value=!0,a=setTimeout(()=>{r.value=!1,a=null,e(...c)},B(t))}return i&&(r.value=!0,Et&&u()),Oe(s),{isPending:l.readonly(r),start:u,stop:s}}function c6e(e=1e3,t={}){const{controls:n=!1,callback:i}=t,r=Ro(i??Ve,e,t),a=l.computed(()=>!r.isPending.value);return n?{ready:a,...r}:a}function f6e(e,t={}){const{method:n="parseFloat",radix:i,nanToZero:r}=t;return l.computed(()=>{let a=B(e);return typeof a=="string"&&(a=Number[n](a,i)),r&&Number.isNaN(a)&&(a=0),a})}function h6e(e){return l.computed(()=>`${B(e)}`)}function m6e(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,r=l.isRef(e),a=l.ref(e);function o(s){if(arguments.length)return a.value=s,a.value;{const u=B(n);return a.value=a.value===u?B(i):u,a.value}}return r?o:[a,o]}function p6e(e,t,n){let i=n!=null&&n.immediate?[]:[...e instanceof Function?e():Array.isArray(e)?e:B(e)];return l.watch(e,(r,a,o)=>{const s=Array.from({length:i.length}),u=[];for(const f of r){let h=!1;for(let g=0;g<i.length;g++)if(!s[g]&&f===i[g]){s[g]=!0,h=!0;break}h||u.push(f)}const c=i.filter((f,h)=>!s[h]);t(r,i,u,c,o),i=[...r]},n)}function g6e(e,t,n){const{count:i,...r}=n,a=l.ref(0),o=$o(e,(...s)=>{a.value+=1,a.value>=B(i)&&l.nextTick(()=>o()),t(...s)},r);return{count:a,stop:o}}function uv(e,t,n={}){const{debounce:i=0,maxWait:r=void 0,...a}=n;return $o(e,t,{...a,eventFilter:Md(i,{maxWait:r})})}function y6e(e,t,n){return l.watch(e,t,{...n,deep:!0})}function Bo(e,t,n={}){const{eventFilter:i=sl,...r}=n,a=$a(i,t);let o,s,u;if(r.flush==="sync"){const c=l.ref(!1);s=()=>{},o=f=>{c.value=!0,f(),c.value=!1},u=l.watch(e,(...f)=>{c.value||a(...f)},r)}else{const c=[],f=l.ref(0),h=l.ref(0);s=()=>{f.value=h.value},c.push(l.watch(e,()=>{h.value++},{...r,flush:"sync"})),o=g=>{const p=h.value;g(),f.value+=h.value-p},c.push(l.watch(e,(...g)=>{const p=f.value>0&&f.value===h.value;f.value=0,h.value=0,!p&&a(...g)},r)),u=()=>{c.forEach(g=>g())}}return{stop:u,ignoreUpdates:o,ignorePrevAsyncUpdates:s}}function b6e(e,t,n){return l.watch(e,t,{...n,immediate:!0})}function w6e(e,t,n){const i=l.watch(e,(...r)=>(l.nextTick(()=>i()),t(...r)),n);return i}function dv(e,t,n={}){const{throttle:i=0,trailing:r=!0,leading:a=!0,...o}=n;return $o(e,t,{...o,eventFilter:ll(i,r,a)})}function v6e(e,t,n={}){let i;function r(){if(!i)return;const f=i;i=void 0,f()}function a(f){i=f}const o=(f,h)=>(r(),t(f,h,a)),s=Bo(e,o,n),{ignoreUpdates:u}=s;return{...s,trigger:()=>{let f;return u(()=>{f=o(k6e(e),M6e(e))}),f}}}function k6e(e){return l.isReactive(e)?e:Array.isArray(e)?e.map(t=>B(t)):B(e)}function M6e(e){return Array.isArray(e)?e.map(()=>{}):void 0}function cv(e,t,n){const i=l.watch(e,(r,a,o)=>{r&&(n!=null&&n.once&&l.nextTick(()=>i()),t(r,a,o))},{...n,once:!1});return i}function fv(e,t,n){let i;l.isRef(n)?i={evaluating:n}:i=n||{};const{lazy:r=!1,evaluating:a=void 0,shallow:o=!0,onError:s=Ve}=i,u=l.ref(!r),c=o?l.shallowRef(t):l.ref(t);let f=0;return l.watchEffect(async h=>{if(!u.value)return;f++;const g=f;let p=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{const y=await e(v=>{h(()=>{a&&(a.value=!1),p||v()})});g===f&&(c.value=y)}catch(y){s(y)}finally{a&&g===f&&(a.value=!1),p=!0}}),r?l.computed(()=>(u.value=!0,c.value)):c}function C6e(e,t,n,i){let r=l.inject(e);return n&&(r=l.inject(e,n)),i&&(r=l.inject(e,n,i)),typeof t=="function"?l.computed(a=>t(r,a)):l.computed({get:a=>t.get(r,a),set:t.set})}function x6e(e={}){const{inheritAttrs:t=!0}=e,n=l.shallowRef(),i=l.defineComponent({setup(a,{slots:o}){return()=>{n.value=o.default}}}),r=l.defineComponent({inheritAttrs:t,setup(a,{attrs:o,slots:s}){return()=>{var u;if(!n.value&&process.env.NODE_ENV!=="production")throw new Error("[VueUse] Failed to find the definition of reusable template");const c=(u=n.value)==null?void 0:u.call(n,{...S6e(o),$slots:s});return t&&(c==null?void 0:c.length)===1?c[0]:c}}});return Uw({define:i,reuse:r},[i,r])}function S6e(e){const t={};for(const n in e)t[Qw(n)]=e[n];return t}function _6e(e={}){let t=0;const n=l.ref([]);function i(...o){const s=l.shallowReactive({key:t++,args:o,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(s),s.promise=new Promise((u,c)=>{s.resolve=f=>(s.isResolving=!0,u(f)),s.reject=c}).finally(()=>{s.promise=void 0;const u=n.value.indexOf(s);u!==-1&&n.value.splice(u,1)}),s.promise}function r(...o){return e.singleton&&n.value.length>0?n.value[0].promise:i(...o)}const a=l.defineComponent((o,{slots:s})=>{const u=()=>n.value.map(c=>{var f;return l.h(l.Fragment,{key:c.key},(f=s.default)==null?void 0:f.call(s,c))});return e.transition?()=>l.h(l.TransitionGroup,e.transition,u):u});return a.start=r,a}function T6e(e){return function(...t){return e.apply(this,t.map(n=>B(n)))}}function Ie(e){var t;const n=B(e);return(t=n==null?void 0:n.$el)!=null?t:n}const me=Et?window:void 0,un=Et?window.document:void 0,kn=Et?window.navigator:void 0,P6e=Et?window.location:void 0;function K(...e){let t,n,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,r]=e,t=me):[t,n,i,r]=e,!t)return Ve;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],o=()=>{a.forEach(f=>f()),a.length=0},s=(f,h,g,p)=>(f.addEventListener(h,g,p),()=>f.removeEventListener(h,g,p)),u=l.watch(()=>[Ie(t),B(r)],([f,h])=>{if(o(),!f)return;const g=ol(h)?{...h}:h;a.push(...n.flatMap(p=>i.map(y=>s(f,p,y,g))))},{immediate:!0,flush:"post"}),c=()=>{u(),o()};return Oe(c),c}let hv=!1;function E6e(e,t,n={}){const{window:i=me,ignore:r=[],capture:a=!0,detectIframe:o=!1}=n;if(!i)return Ve;kd&&!hv&&(hv=!0,Array.from(i.document.body.children).forEach(g=>g.addEventListener("click",Ve)),i.document.documentElement.addEventListener("click",Ve));let s=!0;const u=g=>r.some(p=>{if(typeof p=="string")return Array.from(i.document.querySelectorAll(p)).some(y=>y===g.target||g.composedPath().includes(y));{const y=Ie(p);return y&&(g.target===y||g.composedPath().includes(y))}}),f=[K(i,"click",g=>{const p=Ie(e);if(!(!p||p===g.target||g.composedPath().includes(p))){if(g.detail===0&&(s=!u(g)),!s){s=!0;return}t(g)}},{passive:!0,capture:a}),K(i,"pointerdown",g=>{const p=Ie(e);s=!u(g)&&!!(p&&!g.composedPath().includes(p))},{passive:!0}),o&&K(i,"blur",g=>{setTimeout(()=>{var p;const y=Ie(e);((p=i.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(y!=null&&y.contains(i.document.activeElement))&&t(g)},0)})].filter(Boolean);return()=>f.forEach(g=>g())}function A6e(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function xd(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=me,eventName:a="keydown",passive:o=!1,dedupe:s=!1}=i,u=A6e(t);return K(r,a,f=>{f.repeat&&B(s)||u(f)&&n(f)},o)}function D6e(e,t,n={}){return xd(e,t,{...n,eventName:"keydown"})}function N6e(e,t,n={}){return xd(e,t,{...n,eventName:"keypress"})}function j6e(e,t,n={}){return xd(e,t,{...n,eventName:"keyup"})}const I6e=500,W6e=10;function O6e(e,t,n){var i,r;const a=l.computed(()=>Ie(e));let o,s,u,c=!1;function f(){o&&(clearTimeout(o),o=void 0),s=void 0,u=void 0,c=!1}function h(w){var M,x,S;const[E,I,A]=[u,s,c];if(f(),!(n!=null&&n.onMouseUp)||!I||!E||(M=n==null?void 0:n.modifiers)!=null&&M.self&&w.target!==a.value)return;(x=n==null?void 0:n.modifiers)!=null&&x.prevent&&w.preventDefault(),(S=n==null?void 0:n.modifiers)!=null&&S.stop&&w.stopPropagation();const W=w.x-I.x,$=w.y-I.y,D=Math.sqrt(W*W+$*$);n.onMouseUp(w.timeStamp-E,D,A)}function g(w){var M,x,S,E;(M=n==null?void 0:n.modifiers)!=null&&M.self&&w.target!==a.value||(f(),(x=n==null?void 0:n.modifiers)!=null&&x.prevent&&w.preventDefault(),(S=n==null?void 0:n.modifiers)!=null&&S.stop&&w.stopPropagation(),s={x:w.x,y:w.y},u=w.timeStamp,o=setTimeout(()=>{c=!0,t(w)},(E=n==null?void 0:n.delay)!=null?E:I6e))}function p(w){var M,x,S,E;if((M=n==null?void 0:n.modifiers)!=null&&M.self&&w.target!==a.value||!s||(n==null?void 0:n.distanceThreshold)===!1)return;(x=n==null?void 0:n.modifiers)!=null&&x.prevent&&w.preventDefault(),(S=n==null?void 0:n.modifiers)!=null&&S.stop&&w.stopPropagation();const I=w.x-s.x,A=w.y-s.y;Math.sqrt(I*I+A*A)>=((E=n==null?void 0:n.distanceThreshold)!=null?E:W6e)&&f()}const y={capture:(i=n==null?void 0:n.modifiers)==null?void 0:i.capture,once:(r=n==null?void 0:n.modifiers)==null?void 0:r.once},v=[K(a,"pointerdown",g,y),K(a,"pointermove",p,y),K(a,["pointerup","pointerleave"],h,y)];return()=>v.forEach(w=>w())}function z6e(){const{activeElement:e,body:t}=document;if(!e||e===t)return!1;switch(e.tagName){case"INPUT":case"TEXTAREA":return!0}return e.hasAttribute("contenteditable")}function L6e({keyCode:e,metaKey:t,ctrlKey:n,altKey:i}){return t||n||i?!1:e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function $6e(e,t={}){const{document:n=un}=t;n&&K(n,"keydown",r=>{!z6e()&&L6e(r)&&e(r)},{passive:!0})}function H6e(e,t=null){const n=l.getCurrentInstance();let i=()=>{};const r=l.customRef((a,o)=>(i=o,{get(){var s,u;return a(),(u=(s=n==null?void 0:n.proxy)==null?void 0:s.$refs[e])!=null?u:t},set(){}}));return At(i),l.onUpdated(i),r}function mv(){const e=l.ref(!1),t=l.getCurrentInstance();return t&&l.onMounted(()=>{e.value=!0},t),e}function Le(e){const t=mv();return l.computed(()=>(t.value,!!e()))}function Vo(e,t,n={}){const{window:i=me,...r}=n;let a;const o=Le(()=>i&&"MutationObserver"in i),s=()=>{a&&(a.disconnect(),a=void 0)},u=l.computed(()=>{const g=B(e),p=(Array.isArray(g)?g:[g]).map(Ie).filter(wd);return new Set(p)}),c=l.watch(()=>u.value,g=>{s(),o.value&&g.size&&(a=new MutationObserver(t),g.forEach(p=>a.observe(p,r)))},{immediate:!0,flush:"post"}),f=()=>a==null?void 0:a.takeRecords(),h=()=>{c(),s()};return Oe(h),{isSupported:o,stop:h,takeRecords:f}}function pv(e={}){var t;const{window:n=me,deep:i=!0,triggerOnRemoval:r=!1}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,o=()=>{var c;let f=a==null?void 0:a.activeElement;if(i)for(;f!=null&&f.shadowRoot;)f=(c=f==null?void 0:f.shadowRoot)==null?void 0:c.activeElement;return f},s=l.ref(),u=()=>{s.value=o()};return n&&(K(n,"blur",c=>{c.relatedTarget===null&&u()},!0),K(n,"focus",u,!0)),r&&Vo(a,c=>{c.filter(f=>f.removedNodes.length).map(f=>Array.from(f.removedNodes)).flat().forEach(f=>{f===s.value&&u()})},{childList:!0,subtree:!0}),u(),s}function Ra(e,t={}){const{immediate:n=!0,fpsLimit:i=void 0,window:r=me}=t,a=l.ref(!1),o=i?1e3/i:null;let s=0,u=null;function c(g){if(!a.value||!r)return;s||(s=g);const p=g-s;if(o&&p<o){u=r.requestAnimationFrame(c);return}s=g,e({delta:p,timestamp:g}),u=r.requestAnimationFrame(c)}function f(){!a.value&&r&&(a.value=!0,s=0,u=r.requestAnimationFrame(c))}function h(){a.value=!1,u!=null&&r&&(r.cancelAnimationFrame(u),u=null)}return n&&f(),Oe(h),{isActive:l.readonly(a),pause:h,resume:f}}function R6e(e,t,n){let i,r;ol(n)?(i=n,r=tv(n,["window","immediate","commitStyles","persist","onReady","onError"])):(i={duration:n},r=n);const{window:a=me,immediate:o=!0,commitStyles:s,persist:u,playbackRate:c=1,onReady:f,onError:h=q=>{console.error(q)}}=i,g=Le(()=>a&&HTMLElement&&"animate"in HTMLElement.prototype),p=l.shallowRef(void 0),y=l.shallowReactive({startTime:null,currentTime:null,timeline:null,playbackRate:c,pending:!1,playState:o?"idle":"paused",replaceState:"active"}),v=l.computed(()=>y.pending),k=l.computed(()=>y.playState),w=l.computed(()=>y.replaceState),M=l.computed({get(){return y.startTime},set(q){y.startTime=q,p.value&&(p.value.startTime=q)}}),x=l.computed({get(){return y.currentTime},set(q){y.currentTime=q,p.value&&(p.value.currentTime=q,re())}}),S=l.computed({get(){return y.timeline},set(q){y.timeline=q,p.value&&(p.value.timeline=q)}}),E=l.computed({get(){return y.playbackRate},set(q){y.playbackRate=q,p.value&&(p.value.playbackRate=q)}}),I=()=>{if(p.value)try{p.value.play(),re()}catch(q){ne(),h(q)}else z()},A=()=>{var q;try{(q=p.value)==null||q.pause(),ne()}catch(Z){h(Z)}},W=()=>{var q;p.value||z();try{(q=p.value)==null||q.reverse(),re()}catch(Z){ne(),h(Z)}},$=()=>{var q;try{(q=p.value)==null||q.finish(),ne()}catch(Z){h(Z)}},D=()=>{var q;try{(q=p.value)==null||q.cancel(),ne()}catch(Z){h(Z)}};l.watch(()=>Ie(e),q=>{q&&z()}),l.watch(()=>t,q=>{p.value&&z(),!Ie(e)&&p.value&&(p.value.effect=new KeyframeEffect(Ie(e),B(q),r))},{deep:!0}),At(()=>z(!0),!1),Oe(D);function z(q){const Z=Ie(e);!g.value||!Z||(p.value||(p.value=Z.animate(B(t),r)),u&&p.value.persist(),c!==1&&(p.value.playbackRate=c),q&&!o?p.value.pause():re(),f==null||f(p.value))}K(p,["cancel","finish","remove"],ne),K(p,"finish",()=>{var q;s&&((q=p.value)==null||q.commitStyles())});const{resume:H,pause:X}=Ra(()=>{p.value&&(y.pending=p.value.pending,y.playState=p.value.playState,y.replaceState=p.value.replaceState,y.startTime=p.value.startTime,y.currentTime=p.value.currentTime,y.timeline=p.value.timeline,y.playbackRate=p.value.playbackRate)},{immediate:!1});function re(){g.value&&H()}function ne(){g.value&&a&&a.requestAnimationFrame(X)}return{isSupported:g,animate:p,play:I,pause:A,reverse:W,finish:$,cancel:D,pending:v,playState:k,replaceState:w,startTime:M,currentTime:x,timeline:S,playbackRate:E}}function B6e(e,t){const{interrupt:n=!0,onError:i=Ve,onFinished:r=Ve,signal:a}=t||{},o={aborted:"aborted",fulfilled:"fulfilled",pending:"pending",rejected:"rejected"},s=Array.from(Array.from({length:e.length}),()=>({state:o.pending,data:null})),u=l.reactive(s),c=l.ref(-1);if(!e||e.length===0)return r(),{activeIndex:c,result:u};function f(h,g){c.value++,u[c.value].data=g,u[c.value].state=h}return e.reduce((h,g)=>h.then(p=>{var y;if(a!=null&&a.aborted){f(o.aborted,new Error("aborted"));return}if(((y=u[c.value])==null?void 0:y.state)===o.rejected&&n){r();return}const v=g(p).then(k=>(f(o.fulfilled,k),c.value===e.length-1&&r(),k));return a?Promise.race([v,V6e(a)]):v}).catch(p=>a!=null&&a.aborted?(f(o.aborted,p),p):(f(o.rejected,p),i(),p)),Promise.resolve()),{activeIndex:c,result:u}}function V6e(e){return new Promise((t,n)=>{const i=new Error("aborted");e.aborted?n(i):e.addEventListener("abort",()=>n(i),{once:!0})})}function gv(e,t,n){const{immediate:i=!0,delay:r=0,onError:a=Ve,onSuccess:o=Ve,resetOnExecute:s=!0,shallow:u=!0,throwError:c}=n??{},f=u?l.shallowRef(t):l.ref(t),h=l.ref(!1),g=l.ref(!1),p=l.shallowRef(void 0);async function y(w=0,...M){s&&(f.value=t),p.value=void 0,h.value=!1,g.value=!0,w>0&&await ul(w);const x=typeof e=="function"?e(...M):e;try{const S=await x;f.value=S,h.value=!0,o(S)}catch(S){if(p.value=S,a(S),c)throw S}finally{g.value=!1}return f.value}i&&y(r);const v={state:f,isReady:h,isLoading:g,error:p,execute:y};function k(){return new Promise((w,M)=>{cl(g).toBe(!1).then(()=>w(v)).catch(M)})}return{...v,then(w,M){return k().then(w,M)}}}const fl={array:e=>JSON.stringify(e),object:e=>JSON.stringify(e),set:e=>JSON.stringify(Array.from(e)),map:e=>JSON.stringify(Object.fromEntries(e)),null:()=>""};function F6e(e){return e?e instanceof Map?fl.map:e instanceof Set?fl.set:Array.isArray(e)?fl.array:fl.object:fl.null}function U6e(e,t){const n=l.ref(""),i=l.ref();function r(){if(Et)return i.value=new Promise((a,o)=>{try{const s=B(e);if(s==null)a("");else if(typeof s=="string")a(f1(new Blob([s],{type:"text/plain"})));else if(s instanceof Blob)a(f1(s));else if(s instanceof ArrayBuffer)a(window.btoa(String.fromCharCode(...new Uint8Array(s))));else if(s instanceof HTMLCanvasElement)a(s.toDataURL(t==null?void 0:t.type,t==null?void 0:t.quality));else if(s instanceof HTMLImageElement){const u=s.cloneNode(!1);u.crossOrigin="Anonymous",Y6e(u).then(()=>{const c=document.createElement("canvas"),f=c.getContext("2d");c.width=u.width,c.height=u.height,f.drawImage(u,0,0,c.width,c.height),a(c.toDataURL(t==null?void 0:t.type,t==null?void 0:t.quality))}).catch(o)}else if(typeof s=="object"){const c=((t==null?void 0:t.serializer)||F6e(s))(s);return a(f1(new Blob([c],{type:"application/json"})))}else o(new Error("target is unsupported types"))}catch(s){o(s)}}),i.value.then(a=>n.value=a),i.value}return l.isRef(e)||typeof e=="function"?l.watch(e,r,{immediate:!0}):r(),{base64:n,promise:i,execute:r}}function Y6e(e){return new Promise((t,n)=>{e.complete?t():(e.onload=()=>{t()},e.onerror=n)})}function f1(e){return new Promise((t,n)=>{const i=new FileReader;i.onload=r=>{t(r.target.result)},i.onerror=n,i.readAsDataURL(e)})}function X6e(e={}){const{navigator:t=kn}=e,n=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],i=Le(()=>t&&"getBattery"in t&&typeof t.getBattery=="function"),r=l.ref(!1),a=l.ref(0),o=l.ref(0),s=l.ref(1);let u;function c(){r.value=this.charging,a.value=this.chargingTime||0,o.value=this.dischargingTime||0,s.value=this.level}return i.value&&t.getBattery().then(f=>{u=f,c.call(u),K(u,n,c,{passive:!0})}),{isSupported:i,charging:r,chargingTime:a,dischargingTime:o,level:s}}function q6e(e){let{acceptAllDevices:t=!1}=e||{};const{filters:n=void 0,optionalServices:i=void 0,navigator:r=kn}=e||{},a=Le(()=>r&&"bluetooth"in r),o=l.shallowRef(void 0),s=l.shallowRef(null);l.watch(o,()=>{h()});async function u(){if(a.value){s.value=null,n&&n.length>0&&(t=!1);try{o.value=await(r==null?void 0:r.bluetooth.requestDevice({acceptAllDevices:t,filters:n,optionalServices:i}))}catch(g){s.value=g}}}const c=l.ref(),f=l.computed(()=>{var g;return((g=c.value)==null?void 0:g.connected)||!1});async function h(){if(s.value=null,o.value&&o.value.gatt){o.value.addEventListener("gattserverdisconnected",()=>{});try{c.value=await o.value.gatt.connect()}catch(g){s.value=g}}}return At(()=>{var g;o.value&&((g=o.value.gatt)==null||g.connect())}),Oe(()=>{var g;o.value&&((g=o.value.gatt)==null||g.disconnect())}),{isSupported:a,isConnected:f,device:o,requestDevice:u,server:c,error:s}}function Mn(e,t={}){const{window:n=me}=t,i=Le(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const a=l.ref(!1),o=c=>{a.value=c.matches},s=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",o):r.removeListener(o))},u=l.watchEffect(()=>{i.value&&(s(),r=n.matchMedia(B(e)),"addEventListener"in r?r.addEventListener("change",o):r.addListener(o),a.value=r.matches)});return Oe(()=>{u(),s(),r=void 0}),a}const G6e={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},K6e={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},yv={xs:0,sm:600,md:960,lg:1264,xl:1904},Q6e={xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560},J6e=yv,Z6e={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},eke={xs:0,sm:600,md:1024,lg:1440,xl:1920},tke={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},nke={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},ike={sm:576,md:768,lg:992,xl:1200};function rke(e,t={}){function n(f,h){let g=B(e[B(f)]);return h!=null&&(g=Zw(g,h)),typeof g=="number"&&(g=`${g}px`),g}const{window:i=me,strategy:r="min-width"}=t;function a(f){return i?i.matchMedia(f).matches:!1}const o=f=>Mn(()=>`(min-width: ${n(f)})`,t),s=f=>Mn(()=>`(max-width: ${n(f)})`,t),u=Object.keys(e).reduce((f,h)=>(Object.defineProperty(f,h,{get:()=>r==="min-width"?o(h):s(h),enumerable:!0,configurable:!0}),f),{});function c(){const f=Object.keys(e).map(h=>[h,o(h)]);return l.computed(()=>f.filter(([,h])=>h.value).map(([h])=>h))}return Object.assign(u,{greaterOrEqual:o,smallerOrEqual:s,greater(f){return Mn(()=>`(min-width: ${n(f,.1)})`,t)},smaller(f){return Mn(()=>`(max-width: ${n(f,-.1)})`,t)},between(f,h){return Mn(()=>`(min-width: ${n(f)}) and (max-width: ${n(h,-.1)})`,t)},isGreater(f){return a(`(min-width: ${n(f,.1)})`)},isGreaterOrEqual(f){return a(`(min-width: ${n(f)})`)},isSmaller(f){return a(`(max-width: ${n(f,-.1)})`)},isSmallerOrEqual(f){return a(`(max-width: ${n(f)})`)},isInBetween(f,h){return a(`(min-width: ${n(f)}) and (max-width: ${n(h,-.1)})`)},current:c,active(){const f=c();return l.computed(()=>f.value.length===0?"":f.value.at(-1))}})}function ake(e){const{name:t,window:n=me}=e,i=Le(()=>n&&"BroadcastChannel"in n),r=l.ref(!1),a=l.ref(),o=l.ref(),s=l.shallowRef(null),u=f=>{a.value&&a.value.postMessage(f)},c=()=>{a.value&&a.value.close(),r.value=!0};return i.value&&At(()=>{s.value=null,a.value=new BroadcastChannel(t),a.value.addEventListener("message",f=>{o.value=f.data},{passive:!0}),a.value.addEventListener("messageerror",f=>{s.value=f},{passive:!0}),a.value.addEventListener("close",()=>{r.value=!0})}),Oe(()=>{c()}),{isSupported:i,channel:a,data:o,post:u,close:c,error:s,isClosed:r}}const bv=["hash","host","hostname","href","pathname","port","protocol","search"];function oke(e={}){const{window:t=me}=e,n=Object.fromEntries(bv.map(a=>[a,l.ref()]));for(const[a,o]of nv(n))l.watch(o,s=>{!(t!=null&&t.location)||t.location[a]===s||(t.location[a]=s)});const i=a=>{var o;const{state:s,length:u}=(t==null?void 0:t.history)||{},{origin:c}=(t==null?void 0:t.location)||{};for(const f of bv)n[f].value=(o=t==null?void 0:t.location)==null?void 0:o[f];return l.reactive({trigger:a,state:s,length:u,origin:c,...n})},r=l.ref(i("load"));return t&&(K(t,"popstate",()=>r.value=i("popstate"),{passive:!0}),K(t,"hashchange",()=>r.value=i("hashchange"),{passive:!0})),r}function ske(e,t=(i,r)=>i===r,n){const i=l.ref(e.value);return l.watch(()=>e.value,r=>{t(r,i.value)||(i.value=r)},n),i}function Sd(e,t={}){const{controls:n=!1,navigator:i=kn}=t,r=Le(()=>i&&"permissions"in i),a=l.shallowRef(),o=typeof e=="string"?{name:e}:e,s=l.shallowRef(),u=()=>{var f,h;s.value=(h=(f=a.value)==null?void 0:f.state)!=null?h:"prompt"};K(a,"change",u);const c=Jw(async()=>{if(r.value){if(!a.value)try{a.value=await i.permissions.query(o)}catch{a.value=void 0}finally{u()}if(n)return l.toRaw(a.value)}});return c(),n?{state:s,isSupported:r,query:c}:s}function lke(e={}){const{navigator:t=kn,read:n=!1,source:i,copiedDuring:r=1500,legacy:a=!1}=e,o=Le(()=>t&&"clipboard"in t),s=Sd("clipboard-read"),u=Sd("clipboard-write"),c=l.computed(()=>o.value||a),f=l.ref(""),h=l.ref(!1),g=Ro(()=>h.value=!1,r);function p(){o.value&&w(s.value)?t.clipboard.readText().then(M=>{f.value=M}):f.value=k()}c.value&&n&&K(["copy","cut"],p);async function y(M=B(i)){c.value&&M!=null&&(o.value&&w(u.value)?await t.clipboard.writeText(M):v(M),f.value=M,h.value=!0,g.start())}function v(M){const x=document.createElement("textarea");x.value=M??"",x.style.position="absolute",x.style.opacity="0",document.body.appendChild(x),x.select(),document.execCommand("copy"),x.remove()}function k(){var M,x,S;return(S=(x=(M=document==null?void 0:document.getSelection)==null?void 0:M.call(document))==null?void 0:x.toString())!=null?S:""}function w(M){return M==="granted"||M==="prompt"}return{isSupported:c,text:f,copied:h,copy:y}}function uke(e={}){const{navigator:t=kn,read:n=!1,source:i,copiedDuring:r=1500}=e,a=Le(()=>t&&"clipboard"in t),o=l.ref([]),s=l.ref(!1),u=Ro(()=>s.value=!1,r);function c(){a.value&&t.clipboard.read().then(h=>{o.value=h})}a.value&&n&&K(["copy","cut"],c);async function f(h=B(i)){a.value&&h!=null&&(await t.clipboard.write(h),o.value=h,s.value=!0,u.start())}return{isSupported:a,content:o,copied:s,copy:f}}function hl(e){return JSON.parse(JSON.stringify(e))}function dke(e,t={}){const n=l.ref({}),{manual:i,clone:r=hl,deep:a=!0,immediate:o=!0}=t;function s(){n.value=r(B(e))}return!i&&(l.isRef(e)||typeof e=="function")?l.watch(e,s,{...t,deep:a,immediate:o}):s(),{cloned:n,sync:s}}const _d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Td="__vueuse_ssr_handlers__",wv=cke();function cke(){return Td in _d||(_d[Td]=_d[Td]||{}),_d[Td]}function Pd(e,t){return wv[e]||t}function fke(e,t){wv[e]=t}function vv(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const h1={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},m1="vueuse-storage";function Ed(e,t,n,i={}){var r;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:f,window:h=me,eventFilter:g,onError:p=D=>{console.error(D)},initOnMounted:y}=i,v=(f?l.shallowRef:l.ref)(typeof t=="function"?t():t);if(!n)try{n=Pd("getDefaultStorage",()=>{var D;return(D=me)==null?void 0:D.localStorage})()}catch(D){p(D)}if(!n)return v;const k=B(t),w=vv(k),M=(r=i.serializer)!=null?r:h1[w],{pause:x,resume:S}=Ho(v,()=>I(v.value),{flush:a,deep:o,eventFilter:g});h&&s&&At(()=>{n instanceof Storage?K(h,"storage",W):K(h,m1,$),y&&W()}),y||W();function E(D,z){if(h){const H={key:e,oldValue:D,newValue:z,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(m1,{detail:H}))}}function I(D){try{const z=n.getItem(e);if(D==null)E(z,null),n.removeItem(e);else{const H=M.write(D);z!==H&&(n.setItem(e,H),E(z,H))}}catch(z){p(z)}}function A(D){const z=D?D.newValue:n.getItem(e);if(z==null)return u&&k!=null&&n.setItem(e,M.write(k)),k;if(!D&&c){const H=M.read(z);return typeof c=="function"?c(H,k):w==="object"&&!Array.isArray(H)?{...k,...H}:H}else return typeof z!="string"?z:M.read(z)}function W(D){if(!(D&&D.storageArea!==n)){if(D&&D.key==null){v.value=k;return}if(!(D&&D.key!==e)){x();try{(D==null?void 0:D.newValue)!==M.write(v.value)&&(v.value=A(D))}catch(z){p(z)}finally{D?l.nextTick(S):S()}}}}function $(D){W(D.detail)}return v}function p1(e){return Mn("(prefers-color-scheme: dark)",e)}const hke="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function kv(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:r=me,storage:a,storageKey:o="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:u,emitAuto:c,disableTransition:f=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},g=p1({window:r}),p=l.computed(()=>g.value?"dark":"light"),y=u||(o==null?wt(i):Ed(o,i,a,{window:r,listenToStorageChanges:s})),v=l.computed(()=>y.value==="auto"?p.value:y.value),k=Pd("updateHTMLAttrs",(S,E,I)=>{const A=typeof S=="string"?r==null?void 0:r.document.querySelector(S):Ie(S);if(!A)return;const W=new Set,$=new Set;let D=null;if(E==="class"){const H=I.split(/\s/g);Object.values(h).flatMap(X=>(X||"").split(/\s/g)).filter(Boolean).forEach(X=>{H.includes(X)?W.add(X):$.add(X)})}else D={key:E,value:I};if(W.size===0&&$.size===0&&D===null)return;let z;f&&(z=r.document.createElement("style"),z.appendChild(document.createTextNode(hke)),r.document.head.appendChild(z));for(const H of W)A.classList.add(H);for(const H of $)A.classList.remove(H);D&&A.setAttribute(D.key,D.value),f&&(r.getComputedStyle(z).opacity,document.head.removeChild(z))});function w(S){var E;k(t,n,(E=h[S])!=null?E:S)}function M(S){e.onChanged?e.onChanged(S,w):w(S)}l.watch(v,M,{flush:"post",immediate:!0}),At(()=>M(v.value));const x=l.computed({get(){return c?y.value:v.value},set(S){y.value=S}});try{return Object.assign(x,{store:y,system:p,state:v})}catch{return x}}function mke(e=l.ref(!1)){const t=ln(),n=ln(),i=ln();let r=Ve;const a=u=>(i.trigger(u),e.value=!0,new Promise(c=>{r=c})),o=u=>{e.value=!1,t.trigger(u),r({data:u,isCanceled:!1})},s=u=>{e.value=!1,n.trigger(u),r({data:u,isCanceled:!0})};return{isRevealed:l.computed(()=>e.value),reveal:a,confirm:o,cancel:s,onReveal:i.on,onConfirm:t.on,onCancel:n.on}}function ml(e,t,n={}){const{window:i=me,initialValue:r,observe:a=!1}=n,o=l.ref(r),s=l.computed(()=>{var c;return Ie(t)||((c=i==null?void 0:i.document)==null?void 0:c.documentElement)});function u(){var c;const f=B(e),h=B(s);if(h&&i&&f){const g=(c=i.getComputedStyle(h).getPropertyValue(f))==null?void 0:c.trim();o.value=g||r}}return a&&Vo(s,u,{attributeFilter:["style","class"],window:i}),l.watch([s,()=>B(e)],(c,f)=>{f[0]&&f[1]&&f[0].style.removeProperty(f[1]),u()},{immediate:!0}),l.watch(o,c=>{var f;const h=B(e);(f=s.value)!=null&&f.style&&h&&(c==null?s.value.style.removeProperty(h):s.value.style.setProperty(h,c))}),o}function Mv(e){const t=l.getCurrentInstance(),n=e1(()=>null,()=>e?Ie(e):t.proxy.$el);return l.onUpdated(n.trigger),l.onMounted(n.trigger),n}function pke(e,t){const n=l.shallowRef(c()),i=wt(e),r=l.computed({get(){var f;const h=i.value;let g=t!=null&&t.getIndexOf?t.getIndexOf(n.value,h):h.indexOf(n.value);return g<0&&(g=(f=t==null?void 0:t.fallbackIndex)!=null?f:0),g},set(f){a(f)}});function a(f){const h=i.value,g=h.length,p=(f%g+g)%g,y=h[p];return n.value=y,y}function o(f=1){return a(r.value+f)}function s(f=1){return o(f)}function u(f=1){return o(-f)}function c(){var f,h;return(h=B((f=t==null?void 0:t.initialValue)!=null?f:B(e)[0]))!=null?h:void 0}return l.watch(i,()=>a(r.value)),{state:n,index:r,next:s,prev:u,go:a}}function gke(e={}){const{valueDark:t="dark",valueLight:n="",window:i=me}=e,r=kv({...e,onChanged:(s,u)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,s==="dark",u,s):u(s)},modes:{dark:t,light:n}}),a=l.computed(()=>r.system?r.system.value:p1({window:i}).value?"dark":"light");return l.computed({get(){return r.value==="dark"},set(s){const u=s?"dark":"light";a.value===u?r.value="auto":r.value=u}})}function Cv(e){return e}function yke(e,t){return e.value=t}function bke(e){return e?typeof e=="function"?e:hl:Cv}function wke(e){return e?typeof e=="function"?e:hl:Cv}function xv(e,t={}){const{clone:n=!1,dump:i=bke(n),parse:r=wke(n),setSource:a=yke}=t;function o(){return l.markRaw({snapshot:i(e.value),timestamp:La()})}const s=l.ref(o()),u=l.ref([]),c=l.ref([]),f=x=>{a(e,r(x.snapshot)),s.value=x},h=()=>{u.value.unshift(s.value),s.value=o(),t.capacity&&u.value.length>t.capacity&&u.value.splice(t.capacity,Number.POSITIVE_INFINITY),c.value.length&&c.value.splice(0,c.value.length)},g=()=>{u.value.splice(0,u.value.length),c.value.splice(0,c.value.length)},p=()=>{const x=u.value.shift();x&&(c.value.unshift(s.value),f(x))},y=()=>{const x=c.value.shift();x&&(u.value.unshift(s.value),f(x))},v=()=>{f(s.value)},k=l.computed(()=>[s.value,...u.value]),w=l.computed(()=>u.value.length>0),M=l.computed(()=>c.value.length>0);return{source:e,undoStack:u,redoStack:c,last:s,history:k,canUndo:w,canRedo:M,clear:g,commit:h,reset:v,undo:p,redo:y}}function g1(e,t={}){const{deep:n=!1,flush:i="pre",eventFilter:r}=t,{eventFilter:a,pause:o,resume:s,isActive:u}=i1(r),{ignoreUpdates:c,ignorePrevAsyncUpdates:f,stop:h}=Bo(e,k,{deep:n,flush:i,eventFilter:a});function g(S,E){f(),c(()=>{S.value=E})}const p=xv(e,{...t,clone:t.clone||n,setSource:g}),{clear:y,commit:v}=p;function k(){f(),v()}function w(S){s(),S&&k()}function M(S){let E=!1;const I=()=>E=!0;c(()=>{S(I)}),E||k()}function x(){h(),y()}return{...p,isTracking:u,pause:o,resume:w,commit:k,batch:M,dispose:x}}function vke(e,t={}){const n=t.debounce?Md(t.debounce):void 0;return{...g1(e,{...t,eventFilter:n})}}function kke(e={}){const{window:t=me,eventFilter:n=sl}=e,i=l.ref({x:null,y:null,z:null}),r=l.ref({alpha:null,beta:null,gamma:null}),a=l.ref(0),o=l.ref({x:null,y:null,z:null});if(t){const s=$a(n,u=>{i.value=u.acceleration,o.value=u.accelerationIncludingGravity,r.value=u.rotationRate,a.value=u.interval});K(t,"devicemotion",s)}return{acceleration:i,accelerationIncludingGravity:o,rotationRate:r,interval:a}}function Sv(e={}){const{window:t=me}=e,n=Le(()=>t&&"DeviceOrientationEvent"in t),i=l.ref(!1),r=l.ref(null),a=l.ref(null),o=l.ref(null);return t&&n.value&&K(t,"deviceorientation",s=>{i.value=s.absolute,r.value=s.alpha,a.value=s.beta,o.value=s.gamma}),{isSupported:n,isAbsolute:i,alpha:r,beta:a,gamma:o}}function Mke(e={}){const{window:t=me}=e,n=l.ref(1);if(t){let i=function(){n.value=t.devicePixelRatio,r(),a=t.matchMedia(`(resolution: ${n.value}dppx)`),a.addEventListener("change",i,{once:!0})},r=function(){a==null||a.removeEventListener("change",i)},a;i(),Oe(r)}return{pixelRatio:n}}function Cke(e={}){const{navigator:t=kn,requestPermissions:n=!1,constraints:i={audio:!0,video:!0},onUpdated:r}=e,a=l.ref([]),o=l.computed(()=>a.value.filter(y=>y.kind==="videoinput")),s=l.computed(()=>a.value.filter(y=>y.kind==="audioinput")),u=l.computed(()=>a.value.filter(y=>y.kind==="audiooutput")),c=Le(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),f=l.ref(!1);let h;async function g(){c.value&&(a.value=await t.mediaDevices.enumerateDevices(),r==null||r(a.value),h&&(h.getTracks().forEach(y=>y.stop()),h=null))}async function p(){if(!c.value)return!1;if(f.value)return!0;const{state:y,query:v}=Sd("camera",{controls:!0});return await v(),y.value!=="granted"&&(h=await t.mediaDevices.getUserMedia(i),g()),f.value=!0,f.value}return c.value&&(n&&p(),K(t.mediaDevices,"devicechange",g),g()),{devices:a,ensurePermissions:p,permissionGranted:f,videoInputs:o,audioInputs:s,audioOutputs:u,isSupported:c}}function xke(e={}){var t;const n=l.ref((t=e.enabled)!=null?t:!1),i=e.video,r=e.audio,{navigator:a=kn}=e,o=Le(()=>{var p;return(p=a==null?void 0:a.mediaDevices)==null?void 0:p.getDisplayMedia}),s={audio:r,video:i},u=l.shallowRef();async function c(){var p;if(!(!o.value||u.value))return u.value=await a.mediaDevices.getDisplayMedia(s),(p=u.value)==null||p.getTracks().forEach(y=>y.addEventListener("ended",h)),u.value}async function f(){var p;(p=u.value)==null||p.getTracks().forEach(y=>y.stop()),u.value=void 0}function h(){f(),n.value=!1}async function g(){return await c(),u.value&&(n.value=!0),u.value}return l.watch(n,p=>{p?c():f()},{immediate:!0}),{isSupported:o,stream:u,start:g,stop:h,enabled:n}}function _v(e={}){const{document:t=un}=e;if(!t)return l.ref("visible");const n=l.ref(t.visibilityState);return K(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Ske(e,t={}){var n,i;const{pointerTypes:r,preventDefault:a,stopPropagation:o,exact:s,onMove:u,onEnd:c,onStart:f,initialValue:h,axis:g="both",draggingElement:p=me,containerElement:y,handle:v=e,buttons:k=[0]}=t,w=l.ref((n=B(h))!=null?n:{x:0,y:0}),M=l.ref(),x=W=>r?r.includes(W.pointerType):!0,S=W=>{B(a)&&W.preventDefault(),B(o)&&W.stopPropagation()},E=W=>{var $;if(!B(k).includes(W.button)||B(t.disabled)||!x(W)||B(s)&&W.target!==B(e))return;const D=B(y),z=($=D==null?void 0:D.getBoundingClientRect)==null?void 0:$.call(D),H=B(e).getBoundingClientRect(),X={x:W.clientX-(D?H.left-z.left+D.scrollLeft:H.left),y:W.clientY-(D?H.top-z.top+D.scrollTop:H.top)};(f==null?void 0:f(X,W))!==!1&&(M.value=X,S(W))},I=W=>{if(B(t.disabled)||!x(W)||!M.value)return;const $=B(y),D=B(e).getBoundingClientRect();let{x:z,y:H}=w.value;(g==="x"||g==="both")&&(z=W.clientX-M.value.x,$&&(z=Math.min(Math.max(0,z),$.scrollWidth-D.width))),(g==="y"||g==="both")&&(H=W.clientY-M.value.y,$&&(H=Math.min(Math.max(0,H),$.scrollHeight-D.height))),w.value={x:z,y:H},u==null||u(w.value,W),S(W)},A=W=>{B(t.disabled)||!x(W)||M.value&&(M.value=void 0,c==null||c(w.value,W),S(W))};if(Et){const W={capture:(i=t.capture)!=null?i:!0};K(v,"pointerdown",E,W),K(p,"pointermove",I,W),K(p,"pointerup",A,W)}return{...d1(w),position:w,isDragging:l.computed(()=>!!M.value),style:l.computed(()=>`left:${w.value.x}px;top:${w.value.y}px;`)}}function _ke(e,t={}){const n=l.ref(!1),i=l.shallowRef(null);let r=0,a=!0;if(Et){const o=typeof t=="function"?{onDrop:t}:t,s=u=>{var c,f;const h=Array.from((f=(c=u.dataTransfer)==null?void 0:c.files)!=null?f:[]);return i.value=h.length===0?null:h};K(e,"dragenter",u=>{var c,f;const h=Array.from(((c=u==null?void 0:u.dataTransfer)==null?void 0:c.items)||[]).map(p=>p.kind==="file"?p.type:null).filter(wd);if(o.dataTypes&&u.dataTransfer){const p=l.unref(o.dataTypes);if(a=typeof p=="function"?p(h):p?p.some(y=>h.includes(y)):!0,!a)return}u.preventDefault(),r+=1,n.value=!0;const g=s(u);(f=o.onEnter)==null||f.call(o,g,u)}),K(e,"dragover",u=>{var c;if(!a)return;u.preventDefault();const f=s(u);(c=o.onOver)==null||c.call(o,f,u)}),K(e,"dragleave",u=>{var c;if(!a)return;u.preventDefault(),r-=1,r===0&&(n.value=!1);const f=s(u);(c=o.onLeave)==null||c.call(o,f,u)}),K(e,"drop",u=>{var c;u.preventDefault(),r=0,n.value=!1;const f=s(u);(c=o.onDrop)==null||c.call(o,f,u)})}return{files:i,isOverDropZone:n}}function Ad(e,t,n={}){const{window:i=me,...r}=n;let a;const o=Le(()=>i&&"ResizeObserver"in i),s=()=>{a&&(a.disconnect(),a=void 0)},u=l.computed(()=>{const h=B(e);return Array.isArray(h)?h.map(g=>Ie(g)):[Ie(h)]}),c=l.watch(u,h=>{if(s(),o.value&&i){a=new ResizeObserver(t);for(const g of h)g&&a.observe(g,r)}},{immediate:!0,flush:"post"}),f=()=>{s(),c()};return Oe(f),{isSupported:o,stop:f}}function Tke(e,t={}){const{reset:n=!0,windowResize:i=!0,windowScroll:r=!0,immediate:a=!0,updateTiming:o="sync"}=t,s=l.ref(0),u=l.ref(0),c=l.ref(0),f=l.ref(0),h=l.ref(0),g=l.ref(0),p=l.ref(0),y=l.ref(0);function v(){const w=Ie(e);if(!w){n&&(s.value=0,u.value=0,c.value=0,f.value=0,h.value=0,g.value=0,p.value=0,y.value=0);return}const M=w.getBoundingClientRect();s.value=M.height,u.value=M.bottom,c.value=M.left,f.value=M.right,h.value=M.top,g.value=M.width,p.value=M.x,y.value=M.y}function k(){o==="sync"?v():o==="next-frame"&&requestAnimationFrame(()=>v())}return Ad(e,k),l.watch(()=>Ie(e),w=>!w&&k()),Vo(e,k,{attributeFilter:["style","class"]}),r&&K("scroll",k,{capture:!0,passive:!0}),i&&K("resize",k,{passive:!0}),At(()=>{a&&k()}),{height:s,bottom:u,left:c,right:f,top:h,width:g,x:p,y,update:k}}function Pke(e){const{x:t,y:n,document:i=un,multiple:r,interval:a="requestAnimationFrame",immediate:o=!0}=e,s=Le(()=>B(r)?i&&"elementsFromPoint"in i:i&&"elementFromPoint"in i),u=l.ref(null),c=()=>{var h,g;u.value=B(r)?(h=i==null?void 0:i.elementsFromPoint(B(t),B(n)))!=null?h:[]:(g=i==null?void 0:i.elementFromPoint(B(t),B(n)))!=null?g:null},f=a==="requestAnimationFrame"?Ra(c,{immediate:o}):Lr(c,a,{immediate:o});return{isSupported:s,element:u,...f}}function Eke(e,t={}){const{delayEnter:n=0,delayLeave:i=0,window:r=me}=t,a=l.ref(!1);let o;const s=u=>{const c=u?n:i;o&&(clearTimeout(o),o=void 0),c?o=setTimeout(()=>a.value=u,c):a.value=u};return r&&(K(e,"mouseenter",()=>s(!0),{passive:!0}),K(e,"mouseleave",()=>s(!1),{passive:!0})),a}function Tv(e,t={width:0,height:0},n={}){const{window:i=me,box:r="content-box"}=n,a=l.computed(()=>{var h,g;return(g=(h=Ie(e))==null?void 0:h.namespaceURI)==null?void 0:g.includes("svg")}),o=l.ref(t.width),s=l.ref(t.height),{stop:u}=Ad(e,([h])=>{const g=r==="border-box"?h.borderBoxSize:r==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(i&&a.value){const p=Ie(e);if(p){const y=p.getBoundingClientRect();o.value=y.width,s.value=y.height}}else if(g){const p=Array.isArray(g)?g:[g];o.value=p.reduce((y,{inlineSize:v})=>y+v,0),s.value=p.reduce((y,{blockSize:v})=>y+v,0)}else o.value=h.contentRect.width,s.value=h.contentRect.height},n);At(()=>{const h=Ie(e);h&&(o.value="offsetWidth"in h?h.offsetWidth:t.width,s.value="offsetHeight"in h?h.offsetHeight:t.height)});const c=l.watch(()=>Ie(e),h=>{o.value=h?t.width:0,s.value=h?t.height:0});function f(){u(),c()}return{width:o,height:s,stop:f}}function Pv(e,t,n={}){const{root:i,rootMargin:r="0px",threshold:a=0,window:o=me,immediate:s=!0}=n,u=Le(()=>o&&"IntersectionObserver"in o),c=l.computed(()=>{const y=B(e);return(Array.isArray(y)?y:[y]).map(Ie).filter(wd)});let f=Ve;const h=l.ref(s),g=u.value?l.watch(()=>[c.value,Ie(i),h.value],([y,v])=>{if(f(),!h.value||!y.length)return;const k=new IntersectionObserver(t,{root:Ie(v),rootMargin:r,threshold:a});y.forEach(w=>w&&k.observe(w)),f=()=>{k.disconnect(),f=Ve}},{immediate:s,flush:"post"}):Ve,p=()=>{f(),g(),h.value=!1};return Oe(p),{isSupported:u,isActive:h,pause(){f(),h.value=!1},resume(){h.value=!0},stop:p}}function Ev(e,t={}){const{window:n=me,scrollTarget:i,threshold:r=0}=t,a=l.ref(!1);return Pv(e,o=>{let s=a.value,u=0;for(const c of o)c.time>=u&&(u=c.time,s=c.isIntersecting);a.value=s},{root:i,window:n,threshold:r}),a}const pl=new Map;function Ake(e){const t=l.getCurrentScope();function n(s){var u;const c=pl.get(e)||new Set;c.add(s),pl.set(e,c);const f=()=>r(s);return(u=t==null?void 0:t.cleanups)==null||u.push(f),f}function i(s){function u(...c){r(u),s(...c)}return n(u)}function r(s){const u=pl.get(e);u&&(u.delete(s),u.size||a())}function a(){pl.delete(e)}function o(s,u){var c;(c=pl.get(e))==null||c.forEach(f=>f(s,u))}return{on:n,once:i,off:r,emit:o,reset:a}}function Dke(e){return e===!0?{}:e}function Nke(e,t=[],n={}){const i=l.ref(null),r=l.ref(null),a=l.ref("CONNECTING"),o=l.ref(null),s=l.shallowRef(null),u=wt(e),c=l.shallowRef(null);let f=!1,h=0;const{withCredentials:g=!1,immediate:p=!0}=n,y=()=>{Et&&o.value&&(o.value.close(),o.value=null,a.value="CLOSED",f=!0)},v=()=>{if(f||typeof u.value>"u")return;const w=new EventSource(u.value,{withCredentials:g});a.value="CONNECTING",o.value=w,w.onopen=()=>{a.value="OPEN",s.value=null},w.onerror=M=>{if(a.value="CLOSED",s.value=M,w.readyState===2&&!f&&n.autoReconnect){w.close();const{retries:x=-1,delay:S=1e3,onFailed:E}=Dke(n.autoReconnect);h+=1,typeof x=="number"&&(x<0||h<x)||typeof x=="function"&&x()?setTimeout(v,S):E==null||E()}},w.onmessage=M=>{i.value=null,r.value=M.data,c.value=M.lastEventId};for(const M of t)K(w,M,x=>{i.value=M,r.value=x.data||null})},k=()=>{Et&&(y(),f=!1,h=0,v())};return p&&l.watch(u,k,{immediate:!0}),Oe(y),{eventSource:o,event:i,data:r,status:a,error:s,open:k,close:y,lastEventId:c}}function jke(e={}){const{initialValue:t=""}=e,n=Le(()=>typeof window<"u"&&"EyeDropper"in window),i=l.ref(t);async function r(a){if(!n.value)return;const s=await new window.EyeDropper().open(a);return i.value=s.sRGBHex,s}return{isSupported:n,sRGBHex:i,open:r}}function Ike(e=null,t={}){const{baseUrl:n="",rel:i="icon",document:r=un}=t,a=wt(e),o=s=>{const u=r==null?void 0:r.head.querySelectorAll(`link[rel*="${i}"]`);if(!u||u.length===0){const c=r==null?void 0:r.createElement("link");c&&(c.rel=i,c.href=`${n}${s}`,c.type=`image/${s.split(".").pop()}`,r==null||r.head.append(c));return}u==null||u.forEach(c=>c.href=`${n}${s}`)};return l.watch(a,(s,u)=>{typeof s=="string"&&s!==u&&o(s)},{immediate:!0}),a}const Wke={json:"application/json",text:"text/plain"};function Dd(e){return e&&a1(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const Oke=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function zke(e){return Oke.test(e)}function gl(e){return typeof Headers<"u"&&e instanceof Headers?Object.fromEntries(e.entries()):e}function Fo(e,...t){return e==="overwrite"?async n=>{const i=t[t.length-1];return i?{...n,...await i(n)}:n}:async n=>{for(const i of t)i&&(n={...n,...await i(n)});return n}}function Lke(e={}){const t=e.combination||"chain",n=e.options||{},i=e.fetchOptions||{};function r(a,...o){const s=l.computed(()=>{const f=B(e.baseUrl),h=B(a);return f&&!zke(h)?$ke(f,h):h});let u=n,c=i;return o.length>0&&(Dd(o[0])?u={...u,...o[0],beforeFetch:Fo(t,n.beforeFetch,o[0].beforeFetch),afterFetch:Fo(t,n.afterFetch,o[0].afterFetch),onFetchError:Fo(t,n.onFetchError,o[0].onFetchError)}:c={...c,...o[0],headers:{...gl(c.headers)||{},...gl(o[0].headers)||{}}}),o.length>1&&Dd(o[1])&&(u={...u,...o[1],beforeFetch:Fo(t,n.beforeFetch,o[1].beforeFetch),afterFetch:Fo(t,n.afterFetch,o[1].afterFetch),onFetchError:Fo(t,n.onFetchError,o[1].onFetchError)}),Av(s,c,u)}return r}function Av(e,...t){var n;const i=typeof AbortController=="function";let r={},a={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const o={method:"GET",type:"text",payload:void 0};t.length>0&&(Dd(t[0])?a={...a,...t[0]}:r=t[0]),t.length>1&&Dd(t[1])&&(a={...a,...t[1]});const{fetch:s=(n=me)==null?void 0:n.fetch,initialData:u,timeout:c}=a,f=ln(),h=ln(),g=ln(),p=l.ref(!1),y=l.ref(!1),v=l.ref(!1),k=l.ref(null),w=l.shallowRef(null),M=l.shallowRef(null),x=l.shallowRef(u||null),S=l.computed(()=>i&&y.value);let E,I;const A=()=>{i&&(E==null||E.abort(),E=new AbortController,E.signal.onabort=()=>v.value=!0,r={...r,signal:E.signal})},W=q=>{y.value=q,p.value=!q};c&&(I=Ro(A,c,{immediate:!1}));let $=0;const D=async(q=!1)=>{var Z,ue;A(),W(!0),M.value=null,k.value=null,v.value=!1,$+=1;const Ne=$,it={method:o.method,headers:{}};if(o.payload){const qe=gl(it.headers),rt=B(o.payload);!o.payloadType&&rt&&Object.getPrototypeOf(rt)===Object.prototype&&!(rt instanceof FormData)&&(o.payloadType="json"),o.payloadType&&(qe["Content-Type"]=(Z=Wke[o.payloadType])!=null?Z:o.payloadType),it.body=o.payloadType==="json"?JSON.stringify(rt):rt}let xt=!1;const Kt={url:B(e),options:{...it,...r},cancel:()=>{xt=!0}};if(a.beforeFetch&&Object.assign(Kt,await a.beforeFetch(Kt)),xt||!s)return W(!1),Promise.resolve(null);let Ht=null;return I&&I.start(),s(Kt.url,{...it,...Kt.options,headers:{...gl(it.headers),...gl((ue=Kt.options)==null?void 0:ue.headers)}}).then(async qe=>{if(w.value=qe,k.value=qe.status,Ht=await qe.clone()[o.type](),!qe.ok)throw x.value=u||null,new Error(qe.statusText);return a.afterFetch&&({data:Ht}=await a.afterFetch({data:Ht,response:qe})),x.value=Ht,f.trigger(qe),qe}).catch(async qe=>{let rt=qe.message||qe.name;if(a.onFetchError&&({error:rt,data:Ht}=await a.onFetchError({data:Ht,error:qe,response:w.value})),M.value=rt,a.updateDataOnError&&(x.value=Ht),h.trigger(qe),q)throw qe;return null}).finally(()=>{Ne===$&&W(!1),I&&I.stop(),g.trigger(null)})},z=wt(a.refetch);l.watch([z,wt(e)],([q])=>q&&D(),{deep:!0});const H={isFinished:l.readonly(p),isFetching:l.readonly(y),statusCode:k,response:w,error:M,data:x,canAbort:S,aborted:v,abort:A,execute:D,onFetchResponse:f.on,onFetchError:h.on,onFetchFinally:g.on,get:X("GET"),put:X("PUT"),post:X("POST"),delete:X("DELETE"),patch:X("PATCH"),head:X("HEAD"),options:X("OPTIONS"),json:ne("json"),text:ne("text"),blob:ne("blob"),arrayBuffer:ne("arrayBuffer"),formData:ne("formData")};function X(q){return(Z,ue)=>{if(!y.value)return o.method=q,o.payload=Z,o.payloadType=ue,l.isRef(o.payload)&&l.watch([z,wt(o.payload)],([Ne])=>Ne&&D(),{deep:!0}),{...H,then(Ne,it){return re().then(Ne,it)}}}}function re(){return new Promise((q,Z)=>{cl(p).toBe(!0).then(()=>q(H)).catch(ue=>Z(ue))})}function ne(q){return()=>{if(!y.value)return o.type=q,{...H,then(Z,ue){return re().then(Z,ue)}}}}return a.immediate&&Promise.resolve().then(()=>D()),{...H,then(q,Z){return re().then(q,Z)}}}function $ke(e,t){return!e.endsWith("/")&&!t.startsWith("/")?`${e}/${t}`:`${e}${t}`}const Hke={multiple:!0,accept:"*",reset:!1,directory:!1};function Rke(e={}){const{document:t=un}=e,n=l.ref(null),{on:i,trigger:r}=ln();let a;t&&(a=t.createElement("input"),a.type="file",a.onchange=u=>{const c=u.target;n.value=c.files,r(n.value)});const o=()=>{n.value=null,a&&a.value&&(a.value="",r(null))},s=u=>{if(!a)return;const c={...Hke,...e,...u};a.multiple=c.multiple,a.accept=c.accept,a.webkitdirectory=c.directory,Gw(c,"capture")&&(a.capture=c.capture),c.reset&&o(),a.click()};return{files:l.readonly(n),open:s,reset:o,onChange:i}}function Bke(e={}){const{window:t=me,dataType:n="Text"}=e,i=t,r=Le(()=>i&&"showSaveFilePicker"in i&&"showOpenFilePicker"in i),a=l.ref(),o=l.ref(),s=l.ref(),u=l.computed(()=>{var M,x;return(x=(M=s.value)==null?void 0:M.name)!=null?x:""}),c=l.computed(()=>{var M,x;return(x=(M=s.value)==null?void 0:M.type)!=null?x:""}),f=l.computed(()=>{var M,x;return(x=(M=s.value)==null?void 0:M.size)!=null?x:0}),h=l.computed(()=>{var M,x;return(x=(M=s.value)==null?void 0:M.lastModified)!=null?x:0});async function g(M={}){if(!r.value)return;const[x]=await i.showOpenFilePicker({...B(e),...M});a.value=x,await w()}async function p(M={}){r.value&&(a.value=await i.showSaveFilePicker({...e,...M}),o.value=void 0,await w())}async function y(M={}){if(r.value){if(!a.value)return v(M);if(o.value){const x=await a.value.createWritable();await x.write(o.value),await x.close()}await k()}}async function v(M={}){if(r.value){if(a.value=await i.showSaveFilePicker({...e,...M}),o.value){const x=await a.value.createWritable();await x.write(o.value),await x.close()}await k()}}async function k(){var M;s.value=await((M=a.value)==null?void 0:M.getFile())}async function w(){var M,x;await k();const S=B(n);S==="Text"?o.value=await((M=s.value)==null?void 0:M.text()):S==="ArrayBuffer"?o.value=await((x=s.value)==null?void 0:x.arrayBuffer()):S==="Blob"&&(o.value=s.value)}return l.watch(()=>B(n),w),{isSupported:r,data:o,file:s,fileName:u,fileMIME:c,fileSize:f,fileLastModified:h,open:g,create:p,save:y,saveAs:v,updateData:w}}function Vke(e,t={}){const{initialValue:n=!1,focusVisible:i=!1,preventScroll:r=!1}=t,a=l.ref(!1),o=l.computed(()=>Ie(e));K(o,"focus",u=>{var c,f;(!i||(f=(c=u.target).matches)!=null&&f.call(c,":focus-visible"))&&(a.value=!0)}),K(o,"blur",()=>a.value=!1);const s=l.computed({get:()=>a.value,set(u){var c,f;!u&&a.value?(c=o.value)==null||c.blur():u&&!a.value&&((f=o.value)==null||f.focus({preventScroll:r}))}});return l.watch(o,()=>{s.value=n},{immediate:!0,flush:"post"}),{focused:s}}function Fke(e,t={}){const n=pv(t),i=l.computed(()=>Ie(e));return{focused:l.computed(()=>i.value&&n.value?i.value.contains(n.value):!1)}}function Uke(e){var t;const n=l.ref(0);if(typeof performance>"u")return n;const i=(t=e==null?void 0:e.every)!=null?t:10;let r=performance.now(),a=0;return Ra(()=>{if(a+=1,a>=i){const o=performance.now(),s=o-r;n.value=Math.round(1e3/(s/a)),r=o,a=0}}),n}const Dv=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Yke(e,t={}){const{document:n=un,autoExit:i=!1}=t,r=l.computed(()=>{var w;return(w=Ie(e))!=null?w:n==null?void 0:n.querySelector("html")}),a=l.ref(!1),o=l.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(w=>n&&w in n||r.value&&w in r.value)),s=l.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(w=>n&&w in n||r.value&&w in r.value)),u=l.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(w=>n&&w in n||r.value&&w in r.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(w=>n&&w in n),f=Le(()=>r.value&&n&&o.value!==void 0&&s.value!==void 0&&u.value!==void 0),h=()=>c?(n==null?void 0:n[c])===r.value:!1,g=()=>{if(u.value){if(n&&n[u.value]!=null)return n[u.value];{const w=r.value;if((w==null?void 0:w[u.value])!=null)return!!w[u.value]}}return!1};async function p(){if(!(!f.value||!a.value)){if(s.value)if((n==null?void 0:n[s.value])!=null)await n[s.value]();else{const w=r.value;(w==null?void 0:w[s.value])!=null&&await w[s.value]()}a.value=!1}}async function y(){if(!f.value||a.value)return;g()&&await p();const w=r.value;o.value&&(w==null?void 0:w[o.value])!=null&&(await w[o.value](),a.value=!0)}async function v(){await(a.value?p():y())}const k=()=>{const w=g();(!w||w&&h())&&(a.value=w)};return K(n,Dv,k,!1),K(()=>Ie(r),Dv,k,!1),i&&Oe(p),{isSupported:f,isFullscreen:a,enter:y,exit:p,toggle:v}}function Xke(e){return l.computed(()=>e.value?{buttons:{a:e.value.buttons[0],b:e.value.buttons[1],x:e.value.buttons[2],y:e.value.buttons[3]},bumper:{left:e.value.buttons[4],right:e.value.buttons[5]},triggers:{left:e.value.buttons[6],right:e.value.buttons[7]},stick:{left:{horizontal:e.value.axes[0],vertical:e.value.axes[1],button:e.value.buttons[10]},right:{horizontal:e.value.axes[2],vertical:e.value.axes[3],button:e.value.buttons[11]}},dpad:{up:e.value.buttons[12],down:e.value.buttons[13],left:e.value.buttons[14],right:e.value.buttons[15]},back:e.value.buttons[8],start:e.value.buttons[9]}:null)}function qke(e={}){const{navigator:t=kn}=e,n=Le(()=>t&&"getGamepads"in t),i=l.ref([]),r=ln(),a=ln(),o=p=>{const y=[],v="vibrationActuator"in p?p.vibrationActuator:null;return v&&y.push(v),p.hapticActuators&&y.push(...p.hapticActuators),{id:p.id,index:p.index,connected:p.connected,mapping:p.mapping,timestamp:p.timestamp,vibrationActuator:p.vibrationActuator,hapticActuators:y,axes:p.axes.map(k=>k),buttons:p.buttons.map(k=>({pressed:k.pressed,touched:k.touched,value:k.value}))}},s=()=>{const p=(t==null?void 0:t.getGamepads())||[];for(const y of p)y&&i.value[y.index]&&(i.value[y.index]=o(y))},{isActive:u,pause:c,resume:f}=Ra(s),h=p=>{i.value.some(({index:y})=>y===p.index)||(i.value.push(o(p)),r.trigger(p.index)),f()},g=p=>{i.value=i.value.filter(y=>y.index!==p.index),a.trigger(p.index)};return K("gamepadconnected",p=>h(p.gamepad)),K("gamepaddisconnected",p=>g(p.gamepad)),At(()=>{const p=(t==null?void 0:t.getGamepads())||[];for(const y of p)y&&i.value[y.index]&&h(y)}),c(),{isSupported:n,onConnected:r.on,onDisconnected:a.on,gamepads:i,pause:c,resume:f,isActive:u}}function Gke(e={}){const{enableHighAccuracy:t=!0,maximumAge:n=3e4,timeout:i=27e3,navigator:r=kn,immediate:a=!0}=e,o=Le(()=>r&&"geolocation"in r),s=l.ref(null),u=l.shallowRef(null),c=l.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function f(y){s.value=y.timestamp,c.value=y.coords,u.value=null}let h;function g(){o.value&&(h=r.geolocation.watchPosition(f,y=>u.value=y,{enableHighAccuracy:t,maximumAge:n,timeout:i}))}a&&g();function p(){h&&r&&r.geolocation.clearWatch(h)}return Oe(()=>{p()}),{isSupported:o,coords:c,locatedAt:s,error:u,resume:g,pause:p}}const Kke=["mousemove","mousedown","resize","keydown","touchstart","wheel"],Qke=6e4;function Jke(e=Qke,t={}){const{initialState:n=!1,listenForVisibilityChange:i=!0,events:r=Kke,window:a=me,eventFilter:o=ll(50)}=t,s=l.ref(n),u=l.ref(La());let c;const f=()=>{s.value=!1,clearTimeout(c),c=setTimeout(()=>s.value=!0,e)},h=$a(o,()=>{u.value=La(),f()});if(a){const g=a.document;for(const p of r)K(a,p,h,{passive:!0});i&&K(g,"visibilitychange",()=>{g.hidden||h()}),f()}return{idle:s,lastActive:u,reset:f}}async function Zke(e){return new Promise((t,n)=>{const i=new Image,{src:r,srcset:a,sizes:o,class:s,loading:u,crossorigin:c,referrerPolicy:f}=e;i.src=r,a&&(i.srcset=a),o&&(i.sizes=o),s&&(i.className=s),u&&(i.loading=u),c&&(i.crossOrigin=c),f&&(i.referrerPolicy=f),i.onload=()=>t(i),i.onerror=n})}function e5e(e,t={}){const n=gv(()=>Zke(B(e)),void 0,{resetOnExecute:!0,...t});return l.watch(()=>B(e),()=>n.execute(t.delay),{deep:!0}),n}const Nv=1;function jv(e,t={}){const{throttle:n=0,idle:i=200,onStop:r=Ve,onScroll:a=Ve,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:u="auto",window:c=me,onError:f=A=>{console.error(A)}}=t,h=l.ref(0),g=l.ref(0),p=l.computed({get(){return h.value},set(A){v(A,void 0)}}),y=l.computed({get(){return g.value},set(A){v(void 0,A)}});function v(A,W){var $,D,z,H;if(!c)return;const X=B(e);if(!X)return;(z=X instanceof Document?c.document.body:X)==null||z.scrollTo({top:($=B(W))!=null?$:y.value,left:(D=B(A))!=null?D:p.value,behavior:B(u)});const re=((H=X==null?void 0:X.document)==null?void 0:H.documentElement)||(X==null?void 0:X.documentElement)||X;p!=null&&(h.value=re.scrollLeft),y!=null&&(g.value=re.scrollTop)}const k=l.ref(!1),w=l.reactive({left:!0,right:!1,top:!0,bottom:!1}),M=l.reactive({left:!1,right:!1,top:!1,bottom:!1}),x=A=>{k.value&&(k.value=!1,M.left=!1,M.right=!1,M.top=!1,M.bottom=!1,r(A))},S=Cd(x,n+i),E=A=>{var W;if(!c)return;const $=((W=A==null?void 0:A.document)==null?void 0:W.documentElement)||(A==null?void 0:A.documentElement)||Ie(A),{display:D,flexDirection:z}=getComputedStyle($),H=$.scrollLeft;M.left=H<h.value,M.right=H>h.value;const X=Math.abs(H)<=(o.left||0),re=Math.abs(H)+$.clientWidth>=$.scrollWidth-(o.right||0)-Nv;D==="flex"&&z==="row-reverse"?(w.left=re,w.right=X):(w.left=X,w.right=re),h.value=H;let ne=$.scrollTop;A===c.document&&!ne&&(ne=c.document.body.scrollTop),M.top=ne<g.value,M.bottom=ne>g.value;const q=Math.abs(ne)<=(o.top||0),Z=Math.abs(ne)+$.clientHeight>=$.scrollHeight-(o.bottom||0)-Nv;D==="flex"&&z==="column-reverse"?(w.top=Z,w.bottom=q):(w.top=q,w.bottom=Z),g.value=ne},I=A=>{var W;if(!c)return;const $=(W=A.target.documentElement)!=null?W:A.target;E($),k.value=!0,S(A),a(A)};return K(e,"scroll",n?s1(I,n,!0,!1):I,s),At(()=>{try{const A=B(e);if(!A)return;E(A)}catch(A){f(A)}}),K(e,"scrollend",x,s),{x:p,y,isScrolling:k,arrivedState:w,directions:M,measure(){const A=B(e);c&&A&&E(A)}}}function Nd(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function t5e(e,t,n={}){var i;const{direction:r="bottom",interval:a=100,canLoadMore:o=()=>!0}=n,s=l.reactive(jv(e,{...n,offset:{[r]:(i=n.distance)!=null?i:0,...n.offset}})),u=l.ref(),c=l.computed(()=>!!u.value),f=l.computed(()=>Nd(B(e))),h=Ev(f);function g(){if(s.measure(),!f.value||!h.value||!o(f.value))return;const{scrollHeight:p,clientHeight:y,scrollWidth:v,clientWidth:k}=f.value,w=r==="bottom"||r==="top"?p<=y:v<=k;(s.arrivedState[r]||w)&&(u.value||(u.value=Promise.all([t(s),new Promise(M=>setTimeout(M,a))]).finally(()=>{u.value=null,l.nextTick(()=>g())})))}return l.watch(()=>[s.arrivedState[r],h.value],g,{immediate:!0}),{isLoading:c,reset(){l.nextTick(()=>g())}}}const n5e=["mousedown","mouseup","keydown","keyup"];function i5e(e,t={}){const{events:n=n5e,document:i=un,initial:r=null}=t,a=l.ref(r);return i&&n.forEach(o=>{K(i,o,s=>{typeof s.getModifierState=="function"&&(a.value=s.getModifierState(e))})}),a}function r5e(e,t,n={}){const{window:i=me}=n;return Ed(e,t,i==null?void 0:i.localStorage,n)}const Iv={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function a5e(e={}){const{reactive:t=!1,target:n=me,aliasMap:i=Iv,passive:r=!0,onEventFired:a=Ve}=e,o=l.reactive(new Set),s={toJSON(){return{}},current:o},u=t?l.reactive(s):s,c=new Set,f=new Set;function h(v,k){v in u&&(t?u[v]=k:u[v].value=k)}function g(){o.clear();for(const v of f)h(v,!1)}function p(v,k){var w,M;const x=(w=v.key)==null?void 0:w.toLowerCase(),E=[(M=v.code)==null?void 0:M.toLowerCase(),x].filter(Boolean);x&&(k?o.add(x):o.delete(x));for(const I of E)f.add(I),h(I,k);x==="meta"&&!k?(c.forEach(I=>{o.delete(I),h(I,!1)}),c.clear()):typeof v.getModifierState=="function"&&v.getModifierState("Meta")&&k&&[...o,...E].forEach(I=>c.add(I))}K(n,"keydown",v=>(p(v,!0),a(v)),{passive:r}),K(n,"keyup",v=>(p(v,!1),a(v)),{passive:r}),K("blur",g,{passive:!0}),K("focus",g,{passive:!0});const y=new Proxy(u,{get(v,k,w){if(typeof k!="string")return Reflect.get(v,k,w);if(k=k.toLowerCase(),k in i&&(k=i[k]),!(k in u))if(/[+_-]/.test(k)){const x=k.split(/[+_-]/g).map(S=>S.trim());u[k]=l.computed(()=>x.every(S=>B(y[S])))}else u[k]=l.ref(!1);const M=Reflect.get(v,k,w);return t?B(M):M}});return y}function y1(e,t){B(e)&&t(B(e))}function o5e(e){let t=[];for(let n=0;n<e.length;++n)t=[...t,[e.start(n),e.end(n)]];return t}function b1(e){return Array.from(e).map(({label:t,kind:n,language:i,mode:r,activeCues:a,cues:o,inBandMetadataTrackDispatchType:s},u)=>({id:u,label:t,kind:n,language:i,mode:r,activeCues:a,cues:o,inBandMetadataTrackDispatchType:s}))}const s5e={src:"",tracks:[]};function l5e(e,t={}){e=wt(e),t={...s5e,...t};const{document:n=un}=t,i=l.ref(0),r=l.ref(0),a=l.ref(!1),o=l.ref(1),s=l.ref(!1),u=l.ref(!1),c=l.ref(!1),f=l.ref(1),h=l.ref(!1),g=l.ref([]),p=l.ref([]),y=l.ref(-1),v=l.ref(!1),k=l.ref(!1),w=n&&"pictureInPictureEnabled"in n,M=ln(),x=D=>{y1(e,z=>{if(D){const H=typeof D=="number"?D:D.id;z.textTracks[H].mode="disabled"}else for(let H=0;H<z.textTracks.length;++H)z.textTracks[H].mode="disabled";y.value=-1})},S=(D,z=!0)=>{y1(e,H=>{const X=typeof D=="number"?D:D.id;z&&x(),H.textTracks[X].mode="showing",y.value=X})},E=()=>new Promise((D,z)=>{y1(e,async H=>{w&&(v.value?n.exitPictureInPicture().then(D).catch(z):H.requestPictureInPicture().then(D).catch(z))})});l.watchEffect(()=>{if(!n)return;const D=B(e);if(!D)return;const z=B(t.src);let H=[];z&&(typeof z=="string"?H=[{src:z}]:Array.isArray(z)?H=z:ol(z)&&(H=[z]),D.querySelectorAll("source").forEach(X=>{X.removeEventListener("error",M.trigger),X.remove()}),H.forEach(({src:X,type:re})=>{const ne=n.createElement("source");ne.setAttribute("src",X),ne.setAttribute("type",re||""),ne.addEventListener("error",M.trigger),D.appendChild(ne)}),D.load())}),Oe(()=>{const D=B(e);D&&D.querySelectorAll("source").forEach(z=>z.removeEventListener("error",M.trigger))}),l.watch([e,o],()=>{const D=B(e);D&&(D.volume=o.value)}),l.watch([e,k],()=>{const D=B(e);D&&(D.muted=k.value)}),l.watch([e,f],()=>{const D=B(e);D&&(D.playbackRate=f.value)}),l.watchEffect(()=>{if(!n)return;const D=B(t.tracks),z=B(e);!D||!D.length||!z||(z.querySelectorAll("track").forEach(H=>H.remove()),D.forEach(({default:H,kind:X,label:re,src:ne,srcLang:q},Z)=>{const ue=n.createElement("track");ue.default=H||!1,ue.kind=X,ue.label=re,ue.src=ne,ue.srclang=q,ue.default&&(y.value=Z),z.appendChild(ue)}))});const{ignoreUpdates:I}=Bo(i,D=>{const z=B(e);z&&(z.currentTime=D)}),{ignoreUpdates:A}=Bo(c,D=>{const z=B(e);z&&(D?z.play():z.pause())});K(e,"timeupdate",()=>I(()=>i.value=B(e).currentTime)),K(e,"durationchange",()=>r.value=B(e).duration),K(e,"progress",()=>g.value=o5e(B(e).buffered)),K(e,"seeking",()=>a.value=!0),K(e,"seeked",()=>a.value=!1),K(e,["waiting","loadstart"],()=>{s.value=!0,A(()=>c.value=!1)}),K(e,"loadeddata",()=>s.value=!1),K(e,"playing",()=>{s.value=!1,u.value=!1,A(()=>c.value=!0)}),K(e,"ratechange",()=>f.value=B(e).playbackRate),K(e,"stalled",()=>h.value=!0),K(e,"ended",()=>u.value=!0),K(e,"pause",()=>A(()=>c.value=!1)),K(e,"play",()=>A(()=>c.value=!0)),K(e,"enterpictureinpicture",()=>v.value=!0),K(e,"leavepictureinpicture",()=>v.value=!1),K(e,"volumechange",()=>{const D=B(e);D&&(o.value=D.volume,k.value=D.muted)});const W=[],$=l.watch([e],()=>{const D=B(e);D&&($(),W[0]=K(D.textTracks,"addtrack",()=>p.value=b1(D.textTracks)),W[1]=K(D.textTracks,"removetrack",()=>p.value=b1(D.textTracks)),W[2]=K(D.textTracks,"change",()=>p.value=b1(D.textTracks)))});return Oe(()=>W.forEach(D=>D())),{currentTime:i,duration:r,waiting:s,seeking:a,ended:u,stalled:h,buffered:g,playing:c,rate:f,volume:o,muted:k,tracks:p,selectedTrack:y,enableTrack:S,disableTrack:x,supportsPictureInPicture:w,togglePictureInPicture:E,isPictureInPicture:v,onSourceError:M.on}}function u5e(e,t){const i=t!=null&&t.cache?l.shallowReactive(t.cache):l.shallowReactive(new Map),r=(...f)=>t!=null&&t.getKey?t.getKey(...f):JSON.stringify(f),a=(f,...h)=>(i.set(f,e(...h)),i.get(f)),o=(...f)=>a(r(...f),...f),s=(...f)=>{i.delete(r(...f))},u=()=>{i.clear()},c=(...f)=>{const h=r(...f);return i.has(h)?i.get(h):a(h,...f)};return c.load=o,c.delete=s,c.clear=u,c.generateKey=r,c.cache=i,c}function d5e(e={}){const t=l.ref(),n=Le(()=>typeof performance<"u"&&"memory"in performance);if(n.value){const{interval:i=1e3}=e;Lr(()=>{t.value=performance.memory},i,{immediate:e.immediate,immediateCallback:e.immediateCallback})}return{isSupported:n,memory:t}}const c5e={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function Wv(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:i=!1,initialValue:r={x:0,y:0},window:a=me,target:o=a,scroll:s=!0,eventFilter:u}=e;let c=null;const f=l.ref(r.x),h=l.ref(r.y),g=l.ref(null),p=typeof t=="function"?t:c5e[t],y=E=>{const I=p(E);c=E,I&&([f.value,h.value]=I,g.value="mouse")},v=E=>{if(E.touches.length>0){const I=p(E.touches[0]);I&&([f.value,h.value]=I,g.value="touch")}},k=()=>{if(!c||!a)return;const E=p(c);c instanceof MouseEvent&&E&&(f.value=E[0]+a.scrollX,h.value=E[1]+a.scrollY)},w=()=>{f.value=r.x,h.value=r.y},M=u?E=>u(()=>y(E),{}):E=>y(E),x=u?E=>u(()=>v(E),{}):E=>v(E),S=u?()=>u(()=>k(),{}):()=>k();if(o){const E={passive:!0};K(o,["mousemove","dragover"],M,E),n&&t!=="movement"&&(K(o,["touchstart","touchmove"],x,E),i&&K(o,"touchend",w,E)),s&&t==="page"&&K(a,"scroll",S,{passive:!0})}return{x:f,y:h,sourceType:g}}function Ov(e,t={}){const{handleOutside:n=!0,window:i=me}=t,r=t.type||"page",{x:a,y:o,sourceType:s}=Wv(t),u=l.ref(e??(i==null?void 0:i.document.body)),c=l.ref(0),f=l.ref(0),h=l.ref(0),g=l.ref(0),p=l.ref(0),y=l.ref(0),v=l.ref(!0);let k=()=>{};return i&&(k=l.watch([u,a,o],()=>{const w=Ie(u);if(!w||!(w instanceof HTMLElement))return;const{left:M,top:x,width:S,height:E}=w.getBoundingClientRect();h.value=M+(r==="page"?i.pageXOffset:0),g.value=x+(r==="page"?i.pageYOffset:0),p.value=E,y.value=S;const I=a.value-h.value,A=o.value-g.value;v.value=S===0||E===0||I<0||A<0||I>S||A>E,(n||!v.value)&&(c.value=I,f.value=A)},{immediate:!0}),K(document,"mouseleave",()=>{v.value=!0})),{x:a,y:o,sourceType:s,elementX:c,elementY:f,elementPositionX:h,elementPositionY:g,elementHeight:p,elementWidth:y,isOutside:v,stop:k}}function f5e(e={}){const{touch:t=!0,drag:n=!0,capture:i=!1,initialValue:r=!1,window:a=me}=e,o=l.ref(r),s=l.ref(null);if(!a)return{pressed:o,sourceType:s};const u=h=>()=>{o.value=!0,s.value=h},c=()=>{o.value=!1,s.value=null},f=l.computed(()=>Ie(e.target)||a);return K(f,"mousedown",u("mouse"),{passive:!0,capture:i}),K(a,"mouseleave",c,{passive:!0,capture:i}),K(a,"mouseup",c,{passive:!0,capture:i}),n&&(K(f,"dragstart",u("mouse"),{passive:!0,capture:i}),K(a,"drop",c,{passive:!0,capture:i}),K(a,"dragend",c,{passive:!0,capture:i})),t&&(K(f,"touchstart",u("touch"),{passive:!0,capture:i}),K(a,"touchend",c,{passive:!0,capture:i}),K(a,"touchcancel",c,{passive:!0,capture:i})),{pressed:o,sourceType:s}}function h5e(e={}){const{window:t=me}=e,n=t==null?void 0:t.navigator,i=Le(()=>n&&"language"in n),r=l.ref(n==null?void 0:n.language);return K(t,"languagechange",()=>{n&&(r.value=n.language)}),{isSupported:i,language:r}}function zv(e={}){const{window:t=me}=e,n=t==null?void 0:t.navigator,i=Le(()=>n&&"connection"in n),r=l.ref(!0),a=l.ref(!1),o=l.ref(void 0),s=l.ref(void 0),u=l.ref(void 0),c=l.ref(void 0),f=l.ref(void 0),h=l.ref(void 0),g=l.ref("unknown"),p=i.value&&n.connection;function y(){n&&(r.value=n.onLine,o.value=r.value?void 0:Date.now(),s.value=r.value?Date.now():void 0,p&&(u.value=p.downlink,c.value=p.downlinkMax,h.value=p.effectiveType,f.value=p.rtt,a.value=p.saveData,g.value=p.type))}return t&&(K(t,"offline",()=>{r.value=!1,o.value=Date.now()}),K(t,"online",()=>{r.value=!0,s.value=Date.now()})),p&&K(p,"change",y,!1),y(),{isSupported:i,isOnline:r,saveData:a,offlineAt:o,onlineAt:s,downlink:u,downlinkMax:c,effectiveType:h,rtt:f,type:g}}function Lv(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,i=l.ref(new Date),r=()=>i.value=new Date,a=n==="requestAnimationFrame"?Ra(r,{immediate:!0}):Lr(r,n,{immediate:!0});return t?{now:i,...a}:i}function m5e(e){const t=l.ref(),n=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return l.watch(()=>B(e),i=>{n(),i&&(t.value=URL.createObjectURL(i))},{immediate:!0}),Oe(n),l.readonly(t)}function $v(e,t,n){if(typeof e=="function"||l.isReadonly(e))return l.computed(()=>vd(B(e),B(t),B(n)));const i=l.ref(e);return l.computed({get(){return i.value=vd(i.value,B(t),B(n))},set(r){i.value=vd(r,B(t),B(n))}})}function p5e(e){const{total:t=Number.POSITIVE_INFINITY,pageSize:n=10,page:i=1,onPageChange:r=Ve,onPageSizeChange:a=Ve,onPageCountChange:o=Ve}=e,s=$v(n,1,Number.POSITIVE_INFINITY),u=l.computed(()=>Math.max(1,Math.ceil(B(t)/B(s)))),c=$v(i,1,u),f=l.computed(()=>c.value===1),h=l.computed(()=>c.value===u.value);l.isRef(i)&&u1(i,c,{direction:l.isReadonly(i)?"ltr":"both"}),l.isRef(n)&&u1(n,s,{direction:l.isReadonly(n)?"ltr":"both"});function g(){c.value--}function p(){c.value++}const y={currentPage:c,currentPageSize:s,pageCount:u,isFirstPage:f,isLastPage:h,prev:g,next:p};return l.watch(c,()=>{r(l.reactive(y))}),l.watch(s,()=>{a(l.reactive(y))}),l.watch(u,()=>{o(l.reactive(y))}),y}function g5e(e={}){const{isOnline:t}=zv(e);return t}function y5e(e={}){const{window:t=me}=e,n=l.ref(!1),i=r=>{if(!t)return;r=r||t.event;const a=r.relatedTarget||r.toElement;n.value=!a};return t&&(K(t,"mouseout",i,{passive:!0}),K(t.document,"mouseleave",i,{passive:!0}),K(t.document,"mouseenter",i,{passive:!0})),n}function Hv(e={}){const{window:t=me}=e,n=Le(()=>t&&"screen"in t&&"orientation"in t.screen),i=n.value?t.screen.orientation:{},r=l.ref(i.type),a=l.ref(i.angle||0);return n.value&&K(t,"orientationchange",()=>{r.value=i.type,a.value=i.angle}),{isSupported:n,orientation:r,angle:a,lockOrientation:u=>n.value&&typeof i.lock=="function"?i.lock(u):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{n.value&&typeof i.unlock=="function"&&i.unlock()}}}function b5e(e,t={}){const{deviceOrientationTiltAdjust:n=k=>k,deviceOrientationRollAdjust:i=k=>k,mouseTiltAdjust:r=k=>k,mouseRollAdjust:a=k=>k,window:o=me}=t,s=l.reactive(Sv({window:o})),u=l.reactive(Hv({window:o})),{elementX:c,elementY:f,elementWidth:h,elementHeight:g}=Ov(e,{handleOutside:!1,window:o}),p=l.computed(()=>s.isSupported&&(s.alpha!=null&&s.alpha!==0||s.gamma!=null&&s.gamma!==0)?"deviceOrientation":"mouse"),y=l.computed(()=>{if(p.value==="deviceOrientation"){let k;switch(u.orientation){case"landscape-primary":k=s.gamma/90;break;case"landscape-secondary":k=-s.gamma/90;break;case"portrait-primary":k=-s.beta/90;break;case"portrait-secondary":k=s.beta/90;break;default:k=-s.beta/90}return i(k)}else{const k=-(f.value-g.value/2)/g.value;return a(k)}}),v=l.computed(()=>{if(p.value==="deviceOrientation"){let k;switch(u.orientation){case"landscape-primary":k=s.beta/90;break;case"landscape-secondary":k=-s.beta/90;break;case"portrait-primary":k=s.gamma/90;break;case"portrait-secondary":k=-s.gamma/90;break;default:k=s.gamma/90}return n(k)}else{const k=(c.value-h.value/2)/h.value;return r(k)}});return{roll:y,tilt:v,source:p}}function w5e(e=Mv()){const t=l.shallowRef(),n=()=>{const i=Ie(e);i&&(t.value=i.parentElement)};return At(n),l.watch(()=>B(e),n),t}function v5e(e,t){const{window:n=me,immediate:i=!0,...r}=e,a=Le(()=>n&&"PerformanceObserver"in n);let o;const s=()=>{o==null||o.disconnect()},u=()=>{a.value&&(s(),o=new PerformanceObserver(t),o.observe(r))};return Oe(s),i&&u(),{isSupported:a,start:u,stop:s}}const Rv={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},k5e=Object.keys(Rv);function M5e(e={}){const{target:t=me}=e,n=l.ref(!1),i=l.ref(e.initialValue||{});Object.assign(i.value,Rv,i.value);const r=a=>{n.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(a.pointerType))&&(i.value=ev(a,k5e,!1))};if(t){const a={passive:!0};K(t,["pointerdown","pointermove","pointerup"],r,a),K(t,"pointerleave",()=>n.value=!1,a)}return{...d1(i),isInside:n}}function C5e(e,t={}){const{document:n=un}=t,i=Le(()=>n&&"pointerLockElement"in n),r=l.ref(),a=l.ref();let o;i.value&&(K(n,"pointerlockchange",()=>{var c;const f=(c=n.pointerLockElement)!=null?c:r.value;o&&f===o&&(r.value=n.pointerLockElement,r.value||(o=a.value=null))}),K(n,"pointerlockerror",()=>{var c;const f=(c=n.pointerLockElement)!=null?c:r.value;if(o&&f===o){const h=n.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${h} pointer lock.`)}}));async function s(c){var f;if(!i.value)throw new Error("Pointer Lock API is not supported by your browser.");if(a.value=c instanceof Event?c.currentTarget:null,o=c instanceof Event?(f=Ie(e))!=null?f:a.value:Ie(c),!o)throw new Error("Target element undefined.");return o.requestPointerLock(),await cl(r).toBe(o)}async function u(){return r.value?(n.exitPointerLock(),await cl(r).toBeNull(),!0):!1}return{isSupported:i,element:r,triggerElement:a,lock:s,unlock:u}}function x5e(e,t={}){const n=wt(e),{threshold:i=50,onSwipe:r,onSwipeEnd:a,onSwipeStart:o,disableTextSelect:s=!1}=t,u=l.reactive({x:0,y:0}),c=(A,W)=>{u.x=A,u.y=W},f=l.reactive({x:0,y:0}),h=(A,W)=>{f.x=A,f.y=W},g=l.computed(()=>u.x-f.x),p=l.computed(()=>u.y-f.y),{max:y,abs:v}=Math,k=l.computed(()=>y(v(g.value),v(p.value))>=i),w=l.ref(!1),M=l.ref(!1),x=l.computed(()=>k.value?v(g.value)>v(p.value)?g.value>0?"left":"right":p.value>0?"up":"down":"none"),S=A=>{var W,$,D;const z=A.buttons===0,H=A.buttons===1;return(D=($=(W=t.pointerTypes)==null?void 0:W.includes(A.pointerType))!=null?$:z||H)!=null?D:!0},E=[K(e,"pointerdown",A=>{if(!S(A))return;M.value=!0;const W=A.target;W==null||W.setPointerCapture(A.pointerId);const{clientX:$,clientY:D}=A;c($,D),h($,D),o==null||o(A)}),K(e,"pointermove",A=>{if(!S(A)||!M.value)return;const{clientX:W,clientY:$}=A;h(W,$),!w.value&&k.value&&(w.value=!0),w.value&&(r==null||r(A))}),K(e,"pointerup",A=>{S(A)&&(w.value&&(a==null||a(A,x.value)),M.value=!1,w.value=!1)})];At(()=>{var A,W,$,D,z,H,X,re;(W=(A=n.value)==null?void 0:A.style)==null||W.setProperty("touch-action","none"),s&&((D=($=n.value)==null?void 0:$.style)==null||D.setProperty("-webkit-user-select","none"),(H=(z=n.value)==null?void 0:z.style)==null||H.setProperty("-ms-user-select","none"),(re=(X=n.value)==null?void 0:X.style)==null||re.setProperty("user-select","none"))});const I=()=>E.forEach(A=>A());return{isSwiping:l.readonly(w),direction:l.readonly(x),posStart:l.readonly(u),posEnd:l.readonly(f),distanceX:g,distanceY:p,stop:I}}function S5e(e){const t=Mn("(prefers-color-scheme: light)",e),n=Mn("(prefers-color-scheme: dark)",e);return l.computed(()=>n.value?"dark":t.value?"light":"no-preference")}function _5e(e){const t=Mn("(prefers-contrast: more)",e),n=Mn("(prefers-contrast: less)",e),i=Mn("(prefers-contrast: custom)",e);return l.computed(()=>t.value?"more":n.value?"less":i.value?"custom":"no-preference")}function T5e(e={}){const{window:t=me}=e;if(!t)return l.ref(["en"]);const n=t.navigator,i=l.ref(n.languages);return K(t,"languagechange",()=>{i.value=n.languages}),i}function P5e(e){const t=Mn("(prefers-reduced-motion: reduce)",e);return l.computed(()=>t.value?"reduce":"no-preference")}function E5e(e,t){const n=l.shallowRef(t);return l.watch(wt(e),(i,r)=>{n.value=r},{flush:"sync"}),l.readonly(n)}const Bv="--vueuse-safe-area-top",Vv="--vueuse-safe-area-right",Fv="--vueuse-safe-area-bottom",Uv="--vueuse-safe-area-left";function A5e(){const e=l.ref(""),t=l.ref(""),n=l.ref(""),i=l.ref("");if(Et){const a=ml(Bv),o=ml(Vv),s=ml(Fv),u=ml(Uv);a.value="env(safe-area-inset-top, 0px)",o.value="env(safe-area-inset-right, 0px)",s.value="env(safe-area-inset-bottom, 0px)",u.value="env(safe-area-inset-left, 0px)",r(),K("resize",Cd(r))}function r(){e.value=jd(Bv),t.value=jd(Vv),n.value=jd(Fv),i.value=jd(Uv)}return{top:e,right:t,bottom:n,left:i,update:r}}function jd(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function D5e(e,t=Ve,n={}){const{immediate:i=!0,manual:r=!1,type:a="text/javascript",async:o=!0,crossOrigin:s,referrerPolicy:u,noModule:c,defer:f,document:h=un,attrs:g={}}=n,p=l.ref(null);let y=null;const v=M=>new Promise((x,S)=>{const E=W=>(p.value=W,x(W),W);if(!h){x(!1);return}let I=!1,A=h.querySelector(`script[src="${B(e)}"]`);A?A.hasAttribute("data-loaded")&&E(A):(A=h.createElement("script"),A.type=a,A.async=o,A.src=B(e),f&&(A.defer=f),s&&(A.crossOrigin=s),c&&(A.noModule=c),u&&(A.referrerPolicy=u),Object.entries(g).forEach(([W,$])=>A==null?void 0:A.setAttribute(W,$)),I=!0),A.addEventListener("error",W=>S(W)),A.addEventListener("abort",W=>S(W)),A.addEventListener("load",()=>{A.setAttribute("data-loaded","true"),t(A),E(A)}),I&&(A=h.head.appendChild(A)),M||E(A)}),k=(M=!0)=>(y||(y=v(M)),y),w=()=>{if(!h)return;y=null,p.value&&(p.value=null);const M=h.querySelector(`script[src="${B(e)}"]`);M&&h.head.removeChild(M)};return i&&!r&&At(k),r||ov(w),{scriptTag:p,load:k,unload:w}}function Yv(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:Yv(n)}}function N5e(e){const t=e||window.event,n=t.target;return Yv(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const w1=new WeakMap;function j5e(e,t=!1){const n=l.ref(t);let i=null,r="";l.watch(wt(e),s=>{const u=Nd(B(s));if(u){const c=u;if(w1.get(c)||w1.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(r=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const a=()=>{const s=Nd(B(e));!s||n.value||(kd&&(i=K(s,"touchmove",u=>{N5e(u)},{passive:!1})),s.style.overflow="hidden",n.value=!0)},o=()=>{const s=Nd(B(e));!s||!n.value||(kd&&(i==null||i()),s.style.overflow=r,w1.delete(s),n.value=!1)};return Oe(o),l.computed({get(){return n.value},set(s){s?a():o()}})}function I5e(e,t,n={}){const{window:i=me}=n;return Ed(e,t,i==null?void 0:i.sessionStorage,n)}function W5e(e={},t={}){const{navigator:n=kn}=t,i=n,r=Le(()=>i&&"canShare"in i);return{isSupported:r,share:async(o={})=>{if(r.value){const s={...B(e),...B(o)};let u=!0;if(s.files&&i.canShare&&(u=i.canShare({files:s.files})),u)return i.share(s)}}}}const O5e=(e,t)=>e.sort(t),Id=(e,t)=>e-t;function z5e(...e){var t,n,i,r;const[a]=e;let o=Id,s={};e.length===2?typeof e[1]=="object"?(s=e[1],o=(t=s.compareFn)!=null?t:Id):o=(n=e[1])!=null?n:Id:e.length>2&&(o=(i=e[1])!=null?i:Id,s=(r=e[2])!=null?r:{});const{dirty:u=!1,sortFn:c=O5e}=s;return u?(l.watchEffect(()=>{const f=c(B(a),o);l.isRef(a)?a.value=f:a.splice(0,a.length,...f)}),a):l.computed(()=>c([...B(a)],o))}function L5e(e={}){const{interimResults:t=!0,continuous:n=!0,maxAlternatives:i=1,window:r=me}=e,a=wt(e.lang||"en-US"),o=l.ref(!1),s=l.ref(!1),u=l.ref(""),c=l.shallowRef(void 0),f=(k=!o.value)=>{o.value=k},h=()=>{o.value=!0},g=()=>{o.value=!1},p=r&&(r.SpeechRecognition||r.webkitSpeechRecognition),y=Le(()=>p);let v;return y.value&&(v=new p,v.continuous=n,v.interimResults=t,v.lang=B(a),v.maxAlternatives=i,v.onstart=()=>{s.value=!1},l.watch(a,k=>{v&&!o.value&&(v.lang=k)}),v.onresult=k=>{const w=k.results[k.resultIndex],{transcript:M}=w[0];s.value=w.isFinal,u.value=M,c.value=void 0},v.onerror=k=>{c.value=k},v.onend=()=>{o.value=!1,v.lang=B(a)},l.watch(o,()=>{o.value?v.start():v.stop()})),Oe(()=>{o.value=!1}),{isSupported:y,isListening:o,isFinal:s,recognition:v,result:u,error:c,toggle:f,start:h,stop:g}}function $5e(e,t={}){const{pitch:n=1,rate:i=1,volume:r=1,window:a=me}=t,o=a&&a.speechSynthesis,s=Le(()=>o),u=l.ref(!1),c=l.ref("init"),f=wt(e||""),h=wt(t.lang||"en-US"),g=l.shallowRef(void 0),p=(M=!u.value)=>{u.value=M},y=M=>{M.lang=B(h),M.voice=B(t.voice)||null,M.pitch=B(n),M.rate=B(i),M.volume=r,M.onstart=()=>{u.value=!0,c.value="play"},M.onpause=()=>{u.value=!1,c.value="pause"},M.onresume=()=>{u.value=!0,c.value="play"},M.onend=()=>{u.value=!1,c.value="end"},M.onerror=x=>{g.value=x}},v=l.computed(()=>{u.value=!1,c.value="init";const M=new SpeechSynthesisUtterance(f.value);return y(M),M}),k=()=>{o.cancel(),v&&o.speak(v.value)},w=()=>{o.cancel(),u.value=!1};return s.value&&(y(v.value),l.watch(h,M=>{v.value&&!u.value&&(v.value.lang=M)}),t.voice&&l.watch(t.voice,()=>{o.cancel()}),l.watch(u,()=>{u.value?o.resume():o.pause()})),Oe(()=>{u.value=!1}),{isSupported:s,isPlaying:u,status:c,utterance:v,error:g,stop:w,toggle:p,speak:k}}function H5e(e,t){const n=l.ref(e),i=l.computed(()=>Array.isArray(n.value)?n.value:Object.keys(n.value)),r=l.ref(i.value.indexOf(t??i.value[0])),a=l.computed(()=>f(r.value)),o=l.computed(()=>r.value===0),s=l.computed(()=>r.value===i.value.length-1),u=l.computed(()=>i.value[r.value+1]),c=l.computed(()=>i.value[r.value-1]);function f(E){return Array.isArray(n.value)?n.value[E]:n.value[i.value[E]]}function h(E){if(i.value.includes(E))return f(i.value.indexOf(E))}function g(E){i.value.includes(E)&&(r.value=i.value.indexOf(E))}function p(){s.value||r.value++}function y(){o.value||r.value--}function v(E){S(E)&&g(E)}function k(E){return i.value.indexOf(E)===r.value+1}function w(E){return i.value.indexOf(E)===r.value-1}function M(E){return i.value.indexOf(E)===r.value}function x(E){return r.value<i.value.indexOf(E)}function S(E){return r.value>i.value.indexOf(E)}return{steps:n,stepNames:i,index:r,current:a,next:u,previous:c,isFirst:o,isLast:s,at:f,get:h,goTo:g,goToNext:p,goToPrevious:y,goBackTo:v,isNext:k,isPrevious:w,isCurrent:M,isBefore:x,isAfter:S}}function R5e(e,t,n,i={}){var r;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:f,window:h=me,eventFilter:g,onError:p=x=>{console.error(x)}}=i,y=B(t),v=vv(y),k=(f?l.shallowRef:l.ref)(t),w=(r=i.serializer)!=null?r:h1[v];if(!n)try{n=Pd("getDefaultStorageAsync",()=>{var x;return(x=me)==null?void 0:x.localStorage})()}catch(x){p(x)}async function M(x){if(!(!n||x&&x.key!==e))try{const S=x?x.newValue:await n.getItem(e);if(S==null)k.value=y,u&&y!==null&&await n.setItem(e,await w.write(y));else if(c){const E=await w.read(S);typeof c=="function"?k.value=c(E,y):v==="object"&&!Array.isArray(E)?k.value={...y,...E}:k.value=E}else k.value=await w.read(S)}catch(S){p(S)}}return M(),h&&s&&K(h,"storage",x=>Promise.resolve().then(()=>M(x))),n&&$o(k,async()=>{try{k.value==null?await n.removeItem(e):await n.setItem(e,await w.write(k.value))}catch(x){p(x)}},{flush:a,deep:o,eventFilter:g}),k}let B5e=0;function V5e(e,t={}){const n=l.ref(!1),{document:i=un,immediate:r=!0,manual:a=!1,id:o=`vueuse_styletag_${++B5e}`}=t,s=l.ref(e);let u=()=>{};const c=()=>{if(!i)return;const h=i.getElementById(o)||i.createElement("style");h.isConnected||(h.id=o,t.media&&(h.media=t.media),i.head.appendChild(h)),!n.value&&(u=l.watch(s,g=>{h.textContent=g},{immediate:!0}),n.value=!0)},f=()=>{!i||!n.value||(u(),i.head.removeChild(i.getElementById(o)),n.value=!1)};return r&&!a&&At(c),a||Oe(f),{id:o,css:s,unload:f,load:c,isLoaded:l.readonly(n)}}function F5e(e,t={}){const{threshold:n=50,onSwipe:i,onSwipeEnd:r,onSwipeStart:a,passive:o=!0,window:s=me}=t,u=l.reactive({x:0,y:0}),c=l.reactive({x:0,y:0}),f=l.computed(()=>u.x-c.x),h=l.computed(()=>u.y-c.y),{max:g,abs:p}=Math,y=l.computed(()=>g(p(f.value),p(h.value))>=n),v=l.ref(!1),k=l.computed(()=>y.value?p(f.value)>p(h.value)?f.value>0?"left":"right":h.value>0?"up":"down":"none"),w=$=>[$.touches[0].clientX,$.touches[0].clientY],M=($,D)=>{u.x=$,u.y=D},x=($,D)=>{c.x=$,c.y=D};let S;const E=U5e(s==null?void 0:s.document);o?S=E?{passive:!0}:{capture:!1}:S=E?{passive:!1,capture:!0}:{capture:!0};const I=$=>{v.value&&(r==null||r($,k.value)),v.value=!1},A=[K(e,"touchstart",$=>{if($.touches.length!==1)return;S.capture&&!S.passive&&$.preventDefault();const[D,z]=w($);M(D,z),x(D,z),a==null||a($)},S),K(e,"touchmove",$=>{if($.touches.length!==1)return;const[D,z]=w($);x(D,z),!v.value&&y.value&&(v.value=!0),v.value&&(i==null||i($))},S),K(e,["touchend","touchcancel"],I,S)];return{isPassiveEventSupported:E,isSwiping:v,direction:k,coordsStart:u,coordsEnd:c,lengthX:f,lengthY:h,stop:()=>A.forEach($=>$())}}function U5e(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",Ve,n),e.removeEventListener("x",Ve),t}function Y5e(){const e=l.ref([]);return e.value.set=t=>{t&&e.value.push(t)},l.onBeforeUpdate(()=>{e.value.length=0}),e}function X5e(e={}){const{document:t=un,selector:n="html",observe:i=!1,initialValue:r="ltr"}=e;function a(){var s,u;return(u=(s=t==null?void 0:t.querySelector(n))==null?void 0:s.getAttribute("dir"))!=null?u:r}const o=l.ref(a());return At(()=>o.value=a()),i&&t&&Vo(t.querySelector(n),()=>o.value=a(),{attributes:!0}),l.computed({get(){return o.value},set(s){var u,c;o.value=s,t&&(o.value?(u=t.querySelector(n))==null||u.setAttribute("dir",o.value):(c=t.querySelector(n))==null||c.removeAttribute("dir"))}})}function q5e(e){var t;const n=(t=e.rangeCount)!=null?t:0;return Array.from({length:n},(i,r)=>e.getRangeAt(r))}function G5e(e={}){const{window:t=me}=e,n=l.ref(null),i=l.computed(()=>{var s,u;return(u=(s=n.value)==null?void 0:s.toString())!=null?u:""}),r=l.computed(()=>n.value?q5e(n.value):[]),a=l.computed(()=>r.value.map(s=>s.getBoundingClientRect()));function o(){n.value=null,t&&(n.value=t.getSelection())}return t&&K(t.document,"selectionchange",o),{text:i,rects:a,ranges:r,selection:n}}function K5e(e){var t;const n=l.ref(e==null?void 0:e.element),i=l.ref(e==null?void 0:e.input),r=(t=e==null?void 0:e.styleProp)!=null?t:"height",a=l.ref(1),o=l.ref(0);function s(){var u;if(!n.value)return;let c="";n.value.style[r]="1px",a.value=(u=n.value)==null?void 0:u.scrollHeight;const f=B(e==null?void 0:e.styleTarget);f?f.style[r]=`${a.value}px`:c=`${a.value}px`,n.value.style[r]=c}return l.watch([i,n],()=>l.nextTick(s),{immediate:!0}),l.watch(a,()=>{var u;return(u=e==null?void 0:e.onResize)==null?void 0:u.call(e)}),Ad(n,([{contentRect:u}])=>{o.value!==u.width&&(o.value=u.width,s())}),e!=null&&e.watch&&l.watch(e.watch,s,{immediate:!0,deep:!0}),{textarea:n,input:i,triggerResize:s}}function Q5e(e,t={}){const{throttle:n=200,trailing:i=!0}=t,r=ll(n,i);return{...g1(e,{...t,eventFilter:r})}}const J5e=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],Z5e={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>e===1?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>e===1?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>e===1?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""};function eMe(e){return e.toISOString().slice(0,10)}function tMe(e,t={}){const{controls:n=!1,updateInterval:i=3e4}=t,{now:r,...a}=Lv({interval:i,controls:!0}),o=l.computed(()=>Xv(new Date(B(e)),t,B(r)));return n?{timeAgo:o,...a}:o}function Xv(e,t={},n=Date.now()){var i;const{max:r,messages:a=Z5e,fullDateFormatter:o=eMe,units:s=J5e,showSecond:u=!1,rounding:c="round"}=t,f=typeof c=="number"?k=>+k.toFixed(c):Math[c],h=+n-+e,g=Math.abs(h);function p(k,w){return f(Math.abs(k)/w.value)}function y(k,w){const M=p(k,w),x=k>0,S=v(w.name,M,x);return v(x?"past":"future",S,x)}function v(k,w,M){const x=a[k];return typeof x=="function"?x(w,M):x.replace("{0}",w.toString())}if(g<6e4&&!u)return a.justNow;if(typeof r=="number"&&g>r)return o(new Date(e));if(typeof r=="string"){const k=(i=s.find(w=>w.name===r))==null?void 0:i.max;if(k&&g>k)return o(new Date(e))}for(const[k,w]of s.entries()){if(p(h,w)<=0&&s[k-1])return y(h,s[k-1]);if(g<w.max)return y(h,w)}return a.invalid}function nMe(e,t,n){const{start:i}=Ro(a,t,{immediate:!1}),r=l.ref(!1);async function a(){r.value&&(await e(),i())}function o(){r.value||(r.value=!0,a())}function s(){r.value=!1}return n!=null&&n.immediate&&o(),Oe(s),{isActive:r,pause:s,resume:o}}function iMe(e={}){const{controls:t=!1,offset:n=0,immediate:i=!0,interval:r="requestAnimationFrame",callback:a}=e,o=l.ref(La()+n),s=()=>o.value=La()+n,u=a?()=>{s(),a(o.value)}:s,c=r==="requestAnimationFrame"?Ra(u,{immediate:i}):Lr(u,r,{immediate:i});return t?{timestamp:o,...c}:o}function rMe(e=null,t={}){var n,i,r;const{document:a=un,restoreOnUnmount:o=h=>h}=t,s=(n=a==null?void 0:a.title)!=null?n:"",u=wt((i=e??(a==null?void 0:a.title))!=null?i:null),c=e&&typeof e=="function";function f(h){if(!("titleTemplate"in t))return h;const g=t.titleTemplate||"%s";return typeof g=="function"?g(h):B(g).replace(/%s/g,h)}return l.watch(u,(h,g)=>{h!==g&&a&&(a.title=f(typeof h=="string"?h:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&a&&!c&&Vo((r=a.head)==null?void 0:r.querySelector("title"),()=>{a&&a.title!==u.value&&(u.value=f(a.title))},{childList:!0}),av(()=>{if(o){const h=o(s,u.value||"");h!=null&&a&&(a.title=h)}}),u}const aMe=Object.assign({},{linear:r1},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function oMe([e,t,n,i]){const r=(f,h)=>1-3*h+3*f,a=(f,h)=>3*h-6*f,o=f=>3*f,s=(f,h,g)=>((r(h,g)*f+a(h,g))*f+o(h))*f,u=(f,h,g)=>3*r(h,g)*f*f+2*a(h,g)*f+o(h),c=f=>{let h=f;for(let g=0;g<4;++g){const p=u(h,e,n);if(p===0)return h;const y=s(h,e,n)-f;h-=y/p}return h};return f=>e===t&&n===i?f:s(c(f),t,i)}function qv(e,t,n){return e+n*(t-e)}function v1(e){return(typeof e=="number"?[e]:e)||[]}function Gv(e,t,n,i={}){var r,a;const o=B(t),s=B(n),u=v1(o),c=v1(s),f=(r=B(i.duration))!=null?r:1e3,h=Date.now(),g=Date.now()+f,p=typeof i.transition=="function"?i.transition:(a=B(i.transition))!=null?a:r1,y=typeof p=="function"?p:oMe(p);return new Promise(v=>{e.value=o;const k=()=>{var w;if((w=i.abort)!=null&&w.call(i)){v();return}const M=Date.now(),x=y((M-h)/f),S=v1(e.value).map((E,I)=>qv(u[I],c[I],x));Array.isArray(e.value)?e.value=S.map((E,I)=>{var A,W;return qv((A=u[I])!=null?A:0,(W=c[I])!=null?W:0,x)}):typeof e.value=="number"&&(e.value=S[0]),M<g?requestAnimationFrame(k):(e.value=s,v())};k()})}function sMe(e,t={}){let n=0;const i=()=>{const a=B(e);return typeof a=="number"?a:a.map(B)},r=l.ref(i());return l.watch(i,async a=>{var o,s;if(B(t.disabled))return;const u=++n;if(t.delay&&await ul(B(t.delay)),u!==n)return;const c=Array.isArray(a)?a.map(B):B(a);(o=t.onStarted)==null||o.call(t),await Gv(r,r.value,c,{...t,abort:()=>{var f;return u!==n||((f=t.abort)==null?void 0:f.call(t))}}),(s=t.onFinished)==null||s.call(t)},{deep:!0}),l.watch(()=>B(t.disabled),a=>{a&&(n++,r.value=i())}),Oe(()=>{n++}),l.computed(()=>B(t.disabled)?i():r.value)}function lMe(e="history",t={}){const{initialValue:n={},removeNullishValues:i=!0,removeFalsyValues:r=!1,write:a=!0,window:o=me}=t;if(!o)return l.reactive(n);const s=l.reactive({});function u(){if(e==="history")return o.location.search||"";if(e==="hash"){const w=o.location.hash||"",M=w.indexOf("?");return M>0?w.slice(M):""}else return(o.location.hash||"").replace(/^#/,"")}function c(w){const M=w.toString();if(e==="history")return`${M?`?${M}`:""}${o.location.hash||""}`;if(e==="hash-params")return`${o.location.search||""}${M?`#${M}`:""}`;const x=o.location.hash||"#",S=x.indexOf("?");return S>0?`${x.slice(0,S)}${M?`?${M}`:""}`:`${x}${M?`?${M}`:""}`}function f(){return new URLSearchParams(u())}function h(w){const M=new Set(Object.keys(s));for(const x of w.keys()){const S=w.getAll(x);s[x]=S.length>1?S:w.get(x)||"",M.delete(x)}Array.from(M).forEach(x=>delete s[x])}const{pause:g,resume:p}=Ho(s,()=>{const w=new URLSearchParams("");Object.keys(s).forEach(M=>{const x=s[M];Array.isArray(x)?x.forEach(S=>w.append(M,S)):i&&x==null||r&&!x?w.delete(M):w.set(M,x)}),y(w)},{deep:!0});function y(w,M){g(),M&&h(w),o.history.replaceState(o.history.state,o.document.title,o.location.pathname+c(w)),p()}function v(){a&&y(f(),!0)}K(o,"popstate",v,!1),e!=="history"&&K(o,"hashchange",v,!1);const k=f();return k.keys().next().value?h(k):Object.assign(s,n),s}function uMe(e={}){var t,n;const i=l.ref((t=e.enabled)!=null?t:!1),r=l.ref((n=e.autoSwitch)!=null?n:!0),a=l.ref(e.constraints),{navigator:o=kn}=e,s=Le(()=>{var v;return(v=o==null?void 0:o.mediaDevices)==null?void 0:v.getUserMedia}),u=l.shallowRef();function c(v){switch(v){case"video":{if(a.value)return a.value.video||!1;break}case"audio":{if(a.value)return a.value.audio||!1;break}}}async function f(){if(!(!s.value||u.value))return u.value=await o.mediaDevices.getUserMedia({video:c("video"),audio:c("audio")}),u.value}function h(){var v;(v=u.value)==null||v.getTracks().forEach(k=>k.stop()),u.value=void 0}function g(){h(),i.value=!1}async function p(){return await f(),u.value&&(i.value=!0),u.value}async function y(){return h(),await p()}return l.watch(i,v=>{v?f():h()},{immediate:!0}),l.watch(a,()=>{r.value&&u.value&&y()},{immediate:!0}),Oe(()=>{g()}),{isSupported:s,stream:u,start:p,stop:g,restart:y,constraints:a,enabled:i,autoSwitch:r}}function Kv(e,t,n,i={}){var r,a,o;const{clone:s=!1,passive:u=!1,eventName:c,deep:f=!1,defaultValue:h,shouldEmit:g}=i,p=l.getCurrentInstance(),y=n||(p==null?void 0:p.emit)||((r=p==null?void 0:p.$emit)==null?void 0:r.bind(p))||((o=(a=p==null?void 0:p.proxy)==null?void 0:a.$emit)==null?void 0:o.bind(p==null?void 0:p.proxy));let v=c;t||(t="modelValue"),v=v||`update:${t.toString()}`;const k=x=>s?typeof s=="function"?s(x):hl(x):x,w=()=>qw(e[t])?k(e[t]):h,M=x=>{g?g(x)&&y(v,x):y(v,x)};if(u){const x=w(),S=l.ref(x);let E=!1;return l.watch(()=>e[t],I=>{E||(E=!0,S.value=k(I),l.nextTick(()=>E=!1))}),l.watch(S,I=>{!E&&(I!==e[t]||f)&&M(I)},{deep:f}),S}else return l.computed({get(){return w()},set(x){M(x)}})}function dMe(e,t,n={}){const i={};for(const r in e)i[r]=Kv(e,r,t,n);return i}function cMe(e){const{pattern:t=[],interval:n=0,navigator:i=kn}=e||{},r=Le(()=>typeof i<"u"&&"vibrate"in i),a=wt(t);let o;const s=(c=a.value)=>{r.value&&i.vibrate(c)},u=()=>{r.value&&i.vibrate(0),o==null||o.pause()};return n>0&&(o=Lr(s,n,{immediate:!1,immediateCallback:!1})),{isSupported:r,pattern:t,intervalControls:o,vibrate:s,stop:u}}function fMe(e,t){const{containerStyle:n,wrapperProps:i,scrollTo:r,calculateRange:a,currentList:o,containerRef:s}="itemHeight"in t?pMe(t,e):mMe(t,e);return{list:o,scrollTo:r,containerProps:{ref:s,onScroll:()=>{a()},style:n},wrapperProps:i}}function Qv(e){const t=l.ref(null),n=Tv(t),i=l.ref([]),r=l.shallowRef(e);return{state:l.ref({start:0,end:10}),source:r,currentList:i,size:n,containerRef:t}}function Jv(e,t,n){return i=>{if(typeof n=="number")return Math.ceil(i/n);const{start:r=0}=e.value;let a=0,o=0;for(let s=r;s<t.value.length;s++){const u=n(s);if(a+=u,o=s,a>i)break}return o-r}}function Zv(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let i=0,r=0;for(let a=0;a<e.value.length;a++){const o=t(a);if(i+=o,i>=n){r=a;break}}return r+1}}function e3(e,t,n,i,{containerRef:r,state:a,currentList:o,source:s}){return()=>{const u=r.value;if(u){const c=n(e==="vertical"?u.scrollTop:u.scrollLeft),f=i(e==="vertical"?u.clientHeight:u.clientWidth),h=c-t,g=c+f+t;a.value={start:h<0?0:h,end:g>s.value.length?s.value.length:g},o.value=s.value.slice(a.value.start,a.value.end).map((p,y)=>({data:p,index:y+a.value.start}))}}}function t3(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((r,a,o)=>r+e(o),0)}function n3(e,t,n,i){l.watch([e.width,e.height,t,n],()=>{i()})}function i3(e,t){return l.computed(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,i,r)=>n+e(r),0))}const hMe={horizontal:"scrollLeft",vertical:"scrollTop"};function r3(e,t,n,i){return r=>{i.value&&(i.value[hMe[e]]=n(r),t())}}function mMe(e,t){const n=Qv(t),{state:i,source:r,currentList:a,size:o,containerRef:s}=n,u={overflowX:"auto"},{itemWidth:c,overscan:f=5}=e,h=Jv(i,r,c),g=Zv(r,c),p=e3("horizontal",f,g,h,n),y=t3(c,r),v=l.computed(()=>y(i.value.start)),k=i3(c,r);n3(o,t,s,p);const w=r3("horizontal",p,y,s),M=l.computed(()=>({style:{height:"100%",width:`${k.value-v.value}px`,marginLeft:`${v.value}px`,display:"flex"}}));return{scrollTo:w,calculateRange:p,wrapperProps:M,containerStyle:u,currentList:a,containerRef:s}}function pMe(e,t){const n=Qv(t),{state:i,source:r,currentList:a,size:o,containerRef:s}=n,u={overflowY:"auto"},{itemHeight:c,overscan:f=5}=e,h=Jv(i,r,c),g=Zv(r,c),p=e3("vertical",f,g,h,n),y=t3(c,r),v=l.computed(()=>y(i.value.start)),k=i3(c,r);n3(o,t,s,p);const w=r3("vertical",p,y,s),M=l.computed(()=>({style:{width:"100%",height:`${k.value-v.value}px`,marginTop:`${v.value}px`}}));return{calculateRange:p,scrollTo:w,containerStyle:u,wrapperProps:M,currentList:a,containerRef:s}}function gMe(e={}){const{navigator:t=kn,document:n=un}=e,i=l.ref(!1),r=l.shallowRef(null),a=_v({document:n}),o=Le(()=>t&&"wakeLock"in t),s=l.computed(()=>!!r.value&&a.value==="visible");o.value&&(K(r,"release",()=>{var h,g;i.value=(g=(h=r.value)==null?void 0:h.type)!=null?g:!1}),cv(()=>a.value==="visible"&&(n==null?void 0:n.visibilityState)==="visible"&&i.value,h=>{i.value=!1,u(h)}));async function u(h){var g;await((g=r.value)==null?void 0:g.release()),r.value=o.value?await t.wakeLock.request(h):null}async function c(h){a.value==="visible"?await u(h):i.value=h}async function f(){i.value=!1;const h=r.value;r.value=null,await(h==null?void 0:h.release())}return{sentinel:r,isSupported:o,isActive:s,request:c,forceRequest:u,release:f}}function yMe(e={}){const{window:t=me,requestPermissions:n=!0}=e,i=e,r=Le(()=>{if(!t||!("Notification"in t))return!1;try{new Notification("")}catch{return!1}return!0}),a=l.ref(r.value&&"permission"in Notification&&Notification.permission==="granted"),o=l.ref(null),s=async()=>{if(r.value)return!a.value&&Notification.permission!=="denied"&&await Notification.requestPermission()==="granted"&&(a.value=!0),a.value},{on:u,trigger:c}=ln(),{on:f,trigger:h}=ln(),{on:g,trigger:p}=ln(),{on:y,trigger:v}=ln(),k=async M=>{if(!r.value||!a.value)return;const x=Object.assign({},i,M);return o.value=new Notification(x.title||"",x),o.value.onclick=c,o.value.onshow=h,o.value.onerror=p,o.value.onclose=v,o.value},w=()=>{o.value&&o.value.close(),o.value=null};if(n&&At(s),Oe(w),r.value&&t){const M=t.document;K(M,"visibilitychange",x=>{x.preventDefault(),M.visibilityState==="visible"&&w()})}return{isSupported:r,notification:o,ensurePermissions:s,permissionGranted:a,show:k,close:w,onClick:u,onShow:f,onError:g,onClose:y}}const a3="ping";function k1(e){return e===!0?{}:e}function bMe(e,t={}){const{onConnected:n,onDisconnected:i,onError:r,onMessage:a,immediate:o=!0,autoClose:s=!0,protocols:u=[]}=t,c=l.ref(null),f=l.ref("CLOSED"),h=l.ref(),g=wt(e);let p,y,v=!1,k=0,w=[],M;const x=()=>{if(w.length&&h.value&&f.value==="OPEN"){for(const $ of w)h.value.send($);w=[]}},S=()=>{clearTimeout(M),M=void 0},E=($=1e3,D)=>{!Et||!h.value||(v=!0,S(),p==null||p(),h.value.close($,D),h.value=void 0)},I=($,D=!0)=>!h.value||f.value!=="OPEN"?(D&&w.push($),!1):(x(),h.value.send($),!0),A=()=>{if(v||typeof g.value>"u")return;const $=new WebSocket(g.value,u);h.value=$,f.value="CONNECTING",$.onopen=()=>{f.value="OPEN",k=0,n==null||n($),y==null||y(),x()},$.onclose=D=>{if(f.value="CLOSED",i==null||i($,D),!v&&t.autoReconnect&&$===h.value){const{retries:z=-1,delay:H=1e3,onFailed:X}=k1(t.autoReconnect);typeof z=="number"&&(z<0||k<z)?(k+=1,setTimeout(A,H)):typeof z=="function"&&z()?setTimeout(A,H):X==null||X()}},$.onerror=D=>{r==null||r($,D)},$.onmessage=D=>{if(t.heartbeat){S();const{message:z=a3,responseMessage:H=z}=k1(t.heartbeat);if(D.data===H)return}c.value=D.data,a==null||a($,D)}};if(t.heartbeat){const{message:$=a3,interval:D=1e3,pongTimeout:z=1e3}=k1(t.heartbeat),{pause:H,resume:X}=Lr(()=>{I($,!1),M==null&&(M=setTimeout(()=>{E(),v=!1},z))},D,{immediate:!1});p=H,y=X}s&&(Et&&K("beforeunload",()=>E()),Oe(E));const W=()=>{!Et&&!Xw||(E(),v=!1,k=0,A())};return o&&W(),l.watch(g,W),{data:c,status:f,close:E,send:I,open:W,ws:h}}function wMe(e,t,n){const{window:i=me}=n??{},r=l.ref(null),a=l.shallowRef(),o=(...u)=>{a.value&&a.value.postMessage(...u)},s=function(){a.value&&a.value.terminate()};return i&&(typeof e=="string"?a.value=new Worker(e,t):typeof e=="function"?a.value=e():a.value=e,a.value.onmessage=u=>{r.value=u.data},Oe(()=>{a.value&&a.value.terminate()})),{data:r,post:o,terminate:s,worker:a}}function vMe(e){return t=>{const n=t.data[0];return Promise.resolve(e.apply(void 0,n)).then(i=>{postMessage(["SUCCESS",i])}).catch(i=>{postMessage(["ERROR",i])})}}function kMe(e,t){if(e.length===0&&t.length===0)return"";const n=e.map(a=>`'${a}'`).toString(),i=t.filter(a=>typeof a=="function").map(a=>{const o=a.toString();return o.trim().startsWith("function")?o:`const ${a.name} = ${o}`}).join(";"),r=`importScripts(${n});`;return`${n.trim()===""?"":r} ${i}`}function MMe(e,t,n){const i=`${kMe(t,n)}; onmessage=(${vMe})(${e})`,r=new Blob([i],{type:"text/javascript"});return URL.createObjectURL(r)}function CMe(e,t={}){const{dependencies:n=[],localDependencies:i=[],timeout:r,window:a=me}=t,o=l.ref(),s=l.ref("PENDING"),u=l.ref({}),c=l.ref(),f=(y="PENDING")=>{o.value&&o.value._url&&a&&(o.value.terminate(),URL.revokeObjectURL(o.value._url),u.value={},o.value=void 0,a.clearTimeout(c.value),s.value=y)};f(),Oe(f);const h=()=>{const y=MMe(e,n,i),v=new Worker(y);return v._url=y,v.onmessage=k=>{const{resolve:w=()=>{},reject:M=()=>{}}=u.value,[x,S]=k.data;switch(x){case"SUCCESS":w(S),f(x);break;default:M(S),f("ERROR");break}},v.onerror=k=>{const{reject:w=()=>{}}=u.value;k.preventDefault(),w(k),f("ERROR")},r&&(c.value=setTimeout(()=>f("TIMEOUT_EXPIRED"),r)),v},g=(...y)=>new Promise((v,k)=>{var w;u.value={resolve:v,reject:k},(w=o.value)==null||w.postMessage([[...y]]),s.value="RUNNING"});return{workerFn:(...y)=>s.value==="RUNNING"?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(o.value=h(),g(...y)),workerStatus:s,workerTerminate:f}}function xMe(e={}){const{window:t=me}=e;if(!t)return l.ref(!1);const n=l.ref(t.document.hasFocus());return K(t,"blur",()=>{n.value=!1}),K(t,"focus",()=>{n.value=!0}),n}function SMe(e={}){const{window:t=me,behavior:n="auto"}=e;if(!t)return{x:l.ref(0),y:l.ref(0)};const i=l.ref(t.scrollX),r=l.ref(t.scrollY),a=l.computed({get(){return i.value},set(s){scrollTo({left:s,behavior:n})}}),o=l.computed({get(){return r.value},set(s){scrollTo({top:s,behavior:n})}});return K(t,"scroll",()=>{i.value=t.scrollX,r.value=t.scrollY},{capture:!1,passive:!0}),{x:a,y:o}}function _Me(e={}){const{window:t=me,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:a=!0,type:o="inner"}=e,s=l.ref(n),u=l.ref(i),c=()=>{t&&(o==="outer"?(s.value=t.outerWidth,u.value=t.outerHeight):a?(s.value=t.innerWidth,u.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight))};if(c(),At(c),K("resize",c,{passive:!0}),r){const f=Mn("(orientation: portrait)");l.watch(f,()=>c())}return{width:s,height:u}}const TMe=Object.freeze(Object.defineProperty({__proto__:null,DefaultMagicKeysAliasMap:Iv,StorageSerializers:h1,TransitionPresets:aMe,assert:x4e,asyncComputed:fv,autoResetRef:iv,breakpointsAntDesign:Z6e,breakpointsBootstrapV5:K6e,breakpointsMasterCss:nke,breakpointsPrimeFlex:ike,breakpointsQuasar:eke,breakpointsSematic:tke,breakpointsTailwind:G6e,breakpointsVuetify:J6e,breakpointsVuetifyV2:yv,breakpointsVuetifyV3:Q6e,bypassFilter:sl,camelize:Qw,clamp:vd,cloneFnJSON:hl,computedAsync:fv,computedEager:Rw,computedInject:C6e,computedWithControl:e1,containsProp:a1,controlledComputed:e1,controlledRef:z4e,createEventHook:ln,createFetch:Lke,createFilterWrapper:$a,createGlobalState:g4e,createInjectionState:y4e,createReactiveFn:t1,createReusableTemplate:x6e,createSharedComposable:b4e,createSingletonPromise:Jw,createTemplatePromise:_6e,createUnrefFn:T6e,customStorageEventName:m1,debounceFilter:Md,debouncedRef:o1,debouncedWatch:uv,defaultDocument:un,defaultLocation:P6e,defaultNavigator:kn,defaultWindow:me,directiveHooks:E4e,eagerComputed:Rw,executeTransition:Gv,extendRef:Fw,formatDate:sv,formatTimeAgo:Xv,get:w4e,getLifeCycleTarget:dl,getSSRHandler:Pd,hasOwn:Gw,hyphenate:D4e,identity:r1,ignorableWatch:Bo,increaseWithUnit:Zw,injectLocal:Vw,invoke:j4e,isClient:Et,isDef:qw,isDefined:v4e,isIOS:kd,isObject:ol,isWorker:Xw,makeDestructurable:Uw,mapGamepadToXbox360Controller:Xke,noop:Ve,normalizeDate:lv,notNullish:wd,now:_4e,objectEntries:nv,objectOmit:tv,objectPick:ev,onClickOutside:E6e,onKeyDown:D6e,onKeyPressed:N6e,onKeyStroke:xd,onKeyUp:j6e,onLongPress:O6e,onStartTyping:$6e,pausableFilter:i1,pausableWatch:Ho,promiseTimeout:ul,provideLocal:Bw,rand:T4e,reactify:t1,reactifyObject:M4e,reactiveComputed:n1,reactiveOmit:C4e,reactivePick:W4e,refAutoReset:iv,refDebounced:o1,refDefault:O4e,refThrottled:l1,refWithControl:rv,resolveRef:I4e,resolveUnref:k4e,set:L4e,setSSRHandler:fke,syncRef:u1,syncRefs:$4e,templateRef:H6e,throttleFilter:ll,throttledRef:l1,throttledWatch:dv,timestamp:La,toReactive:Yw,toRef:wt,toRefs:d1,toValue:B,tryOnBeforeMount:H4e,tryOnBeforeUnmount:av,tryOnMounted:At,tryOnScopeDispose:Oe,tryOnUnmounted:ov,unrefElement:Ie,until:cl,useActiveElement:pv,useAnimate:R6e,useArrayDifference:B4e,useArrayEvery:V4e,useArrayFilter:F4e,useArrayFind:U4e,useArrayFindIndex:Y4e,useArrayFindLast:q4e,useArrayIncludes:K4e,useArrayJoin:Q4e,useArrayMap:J4e,useArrayReduce:Z4e,useArraySome:e6e,useArrayUnique:i6e,useAsyncQueue:B6e,useAsyncState:gv,useBase64:U6e,useBattery:X6e,useBluetooth:q6e,useBreakpoints:rke,useBroadcastChannel:ake,useBrowserLocation:oke,useCached:ske,useClipboard:lke,useClipboardItems:uke,useCloned:dke,useColorMode:kv,useConfirmDialog:mke,useCounter:r6e,useCssVar:ml,useCurrentElement:Mv,useCycleList:pke,useDark:gke,useDateFormat:l6e,useDebounce:o1,useDebounceFn:Cd,useDebouncedRefHistory:vke,useDeviceMotion:kke,useDeviceOrientation:Sv,useDevicePixelRatio:Mke,useDevicesList:Cke,useDisplayMedia:xke,useDocumentVisibility:_v,useDraggable:Ske,useDropZone:_ke,useElementBounding:Tke,useElementByPoint:Pke,useElementHover:Eke,useElementSize:Tv,useElementVisibility:Ev,useEventBus:Ake,useEventListener:K,useEventSource:Nke,useEyeDropper:jke,useFavicon:Ike,useFetch:Av,useFileDialog:Rke,useFileSystemAccess:Bke,useFocus:Vke,useFocusWithin:Fke,useFps:Uke,useFullscreen:Yke,useGamepad:qke,useGeolocation:Gke,useIdle:Jke,useImage:e5e,useInfiniteScroll:t5e,useIntersectionObserver:Pv,useInterval:u6e,useIntervalFn:Lr,useKeyModifier:i5e,useLastChanged:d6e,useLocalStorage:r5e,useMagicKeys:a5e,useManualRefHistory:xv,useMediaControls:l5e,useMediaQuery:Mn,useMemoize:u5e,useMemory:d5e,useMounted:mv,useMouse:Wv,useMouseInElement:Ov,useMousePressed:f5e,useMutationObserver:Vo,useNavigatorLanguage:h5e,useNetwork:zv,useNow:Lv,useObjectUrl:m5e,useOffsetPagination:p5e,useOnline:g5e,usePageLeave:y5e,useParallax:b5e,useParentElement:w5e,usePerformanceObserver:v5e,usePermission:Sd,usePointer:M5e,usePointerLock:C5e,usePointerSwipe:x5e,usePreferredColorScheme:S5e,usePreferredContrast:_5e,usePreferredDark:p1,usePreferredLanguages:T5e,usePreferredReducedMotion:P5e,usePrevious:E5e,useRafFn:Ra,useRefHistory:g1,useResizeObserver:Ad,useScreenOrientation:Hv,useScreenSafeArea:A5e,useScriptTag:D5e,useScroll:jv,useScrollLock:j5e,useSessionStorage:I5e,useShare:W5e,useSorted:z5e,useSpeechRecognition:L5e,useSpeechSynthesis:$5e,useStepper:H5e,useStorage:Ed,useStorageAsync:R5e,useStyleTag:V5e,useSupported:Le,useSwipe:F5e,useTemplateRefsList:Y5e,useTextDirection:X5e,useTextSelection:G5e,useTextareaAutosize:K5e,useThrottle:l1,useThrottleFn:s1,useThrottledRefHistory:Q5e,useTimeAgo:tMe,useTimeout:c6e,useTimeoutFn:Ro,useTimeoutPoll:nMe,useTimestamp:iMe,useTitle:rMe,useToNumber:f6e,useToString:h6e,useToggle:m6e,useTransition:sMe,useUrlSearchParams:lMe,useUserMedia:uMe,useVModel:Kv,useVModels:dMe,useVibrate:cMe,useVirtualList:fMe,useWakeLock:gMe,useWebNotification:yMe,useWebSocket:bMe,useWebWorker:wMe,useWebWorkerFn:CMe,useWindowFocus:xMe,useWindowScroll:SMe,useWindowSize:_Me,watchArray:p6e,watchAtMost:g6e,watchDebounced:uv,watchDeep:y6e,watchIgnorable:Bo,watchImmediate:b6e,watchOnce:w6e,watchPausable:Ho,watchThrottled:dv,watchTriggerable:v6e,watchWithFilter:$o,whenever:cv},Symbol.toStringTag,{value:"Module"})),PMe=["data-testid"],EMe=["data-testid"],M1=pe(l.defineComponent({__name:"Dialog",props:{open:{type:Boolean},width:{},height:{},noClose:{type:Boolean},dataTestid:{default:"Dialog"}},emits:["close"],setup(e,{emit:t}){const n=e,i=l.ref(null),r=l.useAttrs(),a=l.ref(!1),o=l.computed(()=>({width:n.width,height:n.height})),s=t,u=()=>{var f;(f=i.value)==null||f.close(),s("close")},c=()=>{var f;return n.open?(f=i.value)==null?void 0:f.showModal():u()};return K(i,"mousedown",f=>{!n.noClose&&f.target===i.value&&u()}),K(i,"keydown",f=>{(f.key==="Escape"||f.key==="Esc")&&(n.noClose||u())}),l.onMounted(()=>{l.watchEffect(()=>{n.open!==a.value&&(c(),a.value=n.open)})}),(f,h)=>(l.openBlock(),l.createElementBlock("dialog",l.mergeProps({ref_key:"dialog",ref:i},l.unref(r),{class:"dialog-yui-kit","data-testid":n.dataTestid}),[l.createElementVNode("div",{"data-testid":`${n.dataTestid}-Content`,class:"dialog-yui-kit__dialog-content",style:l.normalizeStyle(o.value)},[l.renderSlot(f.$slots,"default",{},void 0,!0)],12,EMe)],16,PMe))}}),[["__scopeId","data-v-626a3449"]]),AMe=["data-testid"],DMe=["data-testid"],C1=pe(l.defineComponent({__name:"Accordion",props:{dataTestid:{default:"Accordion"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("details",{class:"accordion-yui-kit","data-testid":t.dataTestid},[l.createElementVNode("summary",{class:"accordion-yui-kit__summary","data-testid":`${t.dataTestid}-Summary`},[l.renderSlot(n.$slots,"summary",{},void 0,!0),l.createVNode(ve,{name:l.unref(ce).chevronUp,class:"chevron-up","stroke-width":"2","data-testid":`${t.dataTestid}-ChevronUp`},null,8,["name","data-testid"]),l.createVNode(ve,{name:l.unref(ce).chevronDown,class:"chevron-down","stroke-width":"2","data-testid":`${t.dataTestid}-ChevronDown`},null,8,["name","data-testid"])],8,DMe),l.renderSlot(n.$slots,"default",{},void 0,!0)],8,AMe))}}),[["__scopeId","data-v-0e900f78"]]),NMe=["data-testid"],jMe=["data-testid"],IMe=["data-testid"],WMe=["data-testid","multiple"],x1=pe(l.defineComponent({__name:"DragAndDrop",props:{singleFileMode:{type:Boolean,default:!1},title:{default:"Кликните или перенесите файлы"},dataTestid:{default:"DragAndDrop"}},emits:["fileDropped"],setup(e,{emit:t}){const n=e,i=t,r=l.reactive({isPressed:!1}),a=l.ref(null),o=p=>{const y=p.target;g(y.files)},s=()=>{a.value&&(a.value.value="")},u=p=>{var v;p.preventDefault();const y=(v=p.currentTarget)==null?void 0:v.children[0];y.classList.contains("active")||y.classList.add("active")},c=p=>{p.currentTarget.children[0].classList.remove("active")},f=p=>{var v;p.preventDefault(),g(((v=p.dataTransfer)==null?void 0:v.files)||null),p.currentTarget.children[0].classList.remove("active")},h=()=>{r.isPressed=!r.isPressed},g=p=>{r.isPressed=!1,i("fileDropped",p)};return l.onMounted(()=>{var p;(p=a.value)==null||p.addEventListener("cancel",()=>{r.isPressed=!1})}),(p,y)=>(l.openBlock(),l.createElementBlock("div",{onDragover:u,onDragleave:c,onDrop:f,class:"dnd-yui-kit","data-testid":n.dataTestid},[l.createElementVNode("label",{for:"docsFileSelected",class:l.normalizeClass(["dnd-yui-kit__label",{"is-pressed":r.isPressed}]),onClick:h,"data-testid":`${n.dataTestid}-Label`},[l.createVNode(ve,{name:l.unref(ce).paperClip,"stroke-width":"2","data-testid":`${n.dataTestid}-Icon`},null,8,["name","data-testid"]),l.createElementVNode("span",{class:"dnd-yui-kit__span","data-testid":`${n.dataTestid}-Title`},l.toDisplayString(n.title),9,IMe)],10,jMe),l.createElementVNode("input",{id:"docsFileSelected",onChange:o,onClick:s,type:"file",style:{display:"none"},"data-testid":`${n.dataTestid}-Input`,required:"",multiple:!n.singleFileMode,ref_key:"fileInputRef",ref:a},null,40,WMe)],40,NMe))}}),[["__scopeId","data-v-acbc6bd8"]]),OMe=["data-testid"],zMe=["data-testid"],S1=pe(l.defineComponent({__name:"Card",props:{dataTestid:{default:"Card"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("div",{class:"card-yui-kit","data-testid":t.dataTestid},[n.$slots.left?(l.openBlock(),l.createElementBlock("div",{key:0,class:"card-yui-kit__left","data-testid":`${t.dataTestid}-Left`},[l.renderSlot(n.$slots,"left",{},void 0,!0)],8,zMe)):l.createCommentVNode("",!0),l.renderSlot(n.$slots,"default",{},void 0,!0)],8,OMe))}}),[["__scopeId","data-v-3b3e60e3"]]),LMe=(e,t=33)=>e.length>t?e.slice(0,t-3)+"...":e,$Me=["data-testid"],HMe=["data-testid"],RMe=["data-testid"],BMe=["data-testid"],VMe=["onClick","data-testid"],FMe=["data-testid"],UMe=pe(l.defineComponent({__name:"History",props:{modelValue:{},defaultValue:{},placeholder:{},showHistory:{type:Boolean},global:{type:Boolean},options:{},globalResultsFunction:{},isShowList:{type:Boolean},isShowButtonHistory:{type:Boolean},searchValue:{},width:{},height:{},dataTestid:{default:"History"}},emits:["choosePost","unmount-remove"],setup(e,{emit:t}){const n=e,i=l.reactive({isShowList:n.isShowList,isShowButtonHistory:n.isShowButtonHistory}),r=t,a=l.computed(()=>({"history-yui-kit__list":!0,"history-yui-kit__list--opened":i.isShowList,"history-yui-kit__list--scroll":n.modelValue&&n.modelValue.length>=5&&i.isShowList})),o=()=>{i.isShowList=!0,i.isShowButtonHistory=!1},s=c=>{r("unmount-remove",c)},u=c=>{r("choosePost",c)};return(c,f)=>{var h;return n.showHistory?(l.openBlock(),l.createElementBlock("div",{key:0,class:"search-yui-kit__history history-yui-kit","data-testid":n.dataTestid},[i.isShowButtonHistory?(l.openBlock(),l.createBlock(Ot,{key:0,type:l.unref(ut).outline,onClick:o,class:l.normalizeClass("history-yui-kit__button-text show-result"),"data-testid":`${n.dataTestid}-ShowResult`},{default:l.withCtx(()=>[l.createElementVNode("span",{"data-testid":`${n.dataTestid}-ShowResult-Title`}," Просмотреть историю запросов ",8,HMe)]),_:1},8,["type","data-testid"])):l.createCommentVNode("",!0),(h=n.modelValue)!=null&&h.length?(l.openBlock(),l.createElementBlock("ul",{key:1,class:l.normalizeClass(a.value),"data-testid":`${n.dataTestid}-ShowResult-List`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.modelValue,(g,p)=>(l.openBlock(),l.createElementBlock("li",{class:"history-yui-kit__item",key:g,"data-testid":`${n.dataTestid}-ShowResult-Title${p}`},[l.createElementVNode("span",{onClick:y=>u(g),"data-testid":`${n.dataTestid}-HandleChoosePost-Title${p}`},l.toDisplayString(l.unref(LMe)(g)),9,VMe),l.createVNode(Ot,{type:l.unref(ut).ghost,onClick:y=>s(g),"data-testid":`${n.dataTestid}-ButtonItem-Remove${p}`},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).exitSmall,width:16,"data-testid":`${n.dataTestid}-ButtonItem-RemoveIcon${p}`},null,8,["name","data-testid"])]),_:2},1032,["type","onClick","data-testid"])],8,BMe))),128))],10,RMe)):i.isShowButtonHistory?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(Ot,{key:2,type:l.unref(ut).outline,class:l.normalizeClass("history-yui-kit__button-text"),"data-testid":`${n.dataTestid}-ButtonTypeEnum-RemoveButton`},{default:l.withCtx(()=>[l.createElementVNode("span",{"data-testid":`${n.dataTestid}-ButtonTypeEnum-EmptyContent`,class:"empty-content"},"По вашему запросу ничего не найдено",8,FMe)]),_:1},8,["type","data-testid"]))],8,$Me)):l.createCommentVNode("",!0)}}}),[["__scopeId","data-v-f1c6a579"]]),YMe=["data-testid"],XMe=["data-testid"],qMe=["data-testid","onClick"],GMe=["data-testid"],KMe=["data-testid"],QMe=["data-testid"],JMe=["data-testid"],ZMe=["data-testid"],e9e=["data-testid"],t9e=pe(l.defineComponent({__name:"SearchResult",props:{defaultValue:{},placeholder:{},showHistory:{type:Boolean},global:{type:Boolean},options:{},globalResultsFunction:{default:()=>[]},isShowList:{type:Boolean},isShowButtonHistory:{type:Boolean},searchValue:{default:""},width:{},height:{},modelValue:{},dataTestid:{default:"SearchResult"}},emits:["choose-result","scroll-paginate"],setup(e,{emit:t}){const n=e,i=t,r=l.ref(null),a=s=>{i("choose-result",s)},o=s=>{const u=s.target,{scrollTop:c,scrollHeight:f,clientHeight:h}=u;f-c-h<5&&i("scroll-paginate")};return l.watch(()=>n.searchValue,()=>{r.value&&(r.value.scrollTop=0)}),(s,u)=>(l.openBlock(),l.createElementBlock("div",{class:"search-yui-kit__result result-yui-kit","data-testid":n.dataTestid},[n.globalResultsFunction.length>0?(l.openBlock(),l.createElementBlock("ul",{key:0,class:"result-yui-kit__list","data-testid":`${n.dataTestid}-List`,onScroll:o,ref_key:"resultContentRef",ref:r},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.globalResultsFunction,(c,f)=>(l.openBlock(),l.createElementBlock("li",{class:"result-yui-kit__list__item",key:f,"data-testid":`${n.dataTestid}-List-Items${f}`,onClick:h=>a(c)},[l.createVNode(ve,{name:c.icon||l.unref(ce).document,"data-testid":`${n.dataTestid}-Items-Icon${f}`,width:16,height:16,class:"result-yui-kit__list__item__icon"},null,8,["name","data-testid"]),l.createElementVNode("span",{"data-testid":`${n.dataTestid}-Result-NameArea${f}`},l.toDisplayString(c.nameArea),9,GMe),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${n.dataTestid}-Result-Slash${f}`},"/",8,KMe),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${n.dataTestid}-Result-SearchResult${f}`},l.toDisplayString(c.searchResult),9,QMe)],8,qMe))),128))],40,XMe)):n.searchValue?(l.openBlock(),l.createElementBlock("ul",{key:1,class:"result-yui-kit__list result-yui-kit__empty","data-testid":`${n.dataTestid}-Nothing-List`},[l.createElementVNode("li",{class:"result-yui-kit__empty__item","data-testid":`${n.dataTestid}-Nothing-Items`},[l.createElementVNode("p",{"data-testid":`${n.dataTestid}-Nothing-Text`}," По вашему запросу ничего не найдено ",8,e9e)],8,ZMe)],8,JMe)):l.createCommentVNode("",!0)],8,YMe))}}),[["__scopeId","data-v-0bd12f80"]]),o3=()=>{const e=l.ref(localStorage.getItem("historySearch")?JSON.parse(localStorage.getItem("historySearch")):[]);return{getHistorySearch:e,addHistorySearch:i=>{i&&(e.value=e.value.filter(r=>r!==i),e.value.unshift(i),e.value.length>10&&e.value.pop(),localStorage.setItem("historySearch",JSON.stringify(e.value)))},removeHistorySearch:i=>{e.value=e.value.filter(r=>r!==i),localStorage.setItem("historySearch",JSON.stringify(e.value))}}},n9e=["data-testid"],i9e=["data-testid"],r9e=["data-testid"],a9e=["placeholder","data-testid"],yl=pe(l.defineComponent({__name:"Search",props:{defaultValue:{},placeholder:{default:"Поиск"},showHistory:{type:Boolean},global:{type:Boolean,default:!1},options:{},globalResultsFunction:{default:()=>[]},isShowList:{type:Boolean},isShowButtonHistory:{type:Boolean},searchValue:{},width:{},height:{default:"42px"},modelValue:{default:""},dataTestid:{default:"Search"}},emits:["enter","input","update:modelValue","choose-result","scroll-paginate","choosed"],setup(e,{emit:t}){const n=e,i=t,{getHistorySearch:r,removeHistorySearch:a,addHistorySearch:o}=o3(),s=l.reactive({isShowList:!1,isShowButtonHistory:n.showHistory??!1,searchValue:n.modelValue,placeholder:n.placeholder??"",focused:!1}),u={position:"relative",width:"100%",height:n.height},c=S=>{s.searchValue=S.trim(),s.isShowList=!1,i("input",S),i("update:modelValue",s.searchValue),i("choosed",s.searchValue),i("enter",s.searchValue)},f=S=>{s.isShowList=!1,i("choose-result",S)},h=()=>{i("scroll-paginate")},g=l.computed(()=>({"search-yui-kit__icon-wrapper":!0})),p=()=>{s.focused=!0},y=()=>{setTimeout(()=>{s.focused=!1},500)},v=()=>{s.isShowList=!1,s.isShowButtonHistory=!1},k=()=>{s.isShowButtonHistory=!0,s.isShowButtonHistory||(s.isShowList=!0)},w=()=>{i("enter",s.searchValue.trim()),n.showHistory&&s.searchValue&&o(s.searchValue.trim())},M=()=>{const S=s.searchValue.trim();i("input",S),i("update:modelValue",S)},x=()=>{s.searchValue&&(s.searchValue="",M(),w())};return l.onMounted(()=>{n.defaultValue&&(s.searchValue=n.defaultValue)}),l.watch(()=>n.modelValue,S=>{s.searchValue=S}),(S,E)=>(l.openBlock(),l.createElementBlock("div",{class:"search-yui-kit",style:u,onMousemove:k,onMouseleave:v,"data-testid":n.dataTestid},[l.createElementVNode("div",{class:l.normalizeClass(g.value),"data-testid":`${n.dataTestid}-Dropdown-Wrapper`},[l.createElementVNode("div",{class:"search-yui-kit__dropdown","data-testid":`${n.dataTestid}-Dropdown`},[l.withDirectives(l.createElementVNode("input",{type:"text",class:"search-yui-kit__input","onUpdate:modelValue":E[0]||(E[0]=I=>s.searchValue=I),placeholder:n.placeholder,onKeydown:l.withKeys(w,["enter"]),onInput:M,onFocus:p,onBlur:y,"data-testid":`${n.dataTestid}-Dropdown-Input`},null,40,a9e),[[l.vModelText,s.searchValue]]),l.createVNode(ve,{class:"search-icon",name:l.unref(ce).searchNormal},null,8,["name"]),s.searchValue?(l.openBlock(),l.createBlock(Ot,{key:0,class:"clear-button",type:l.unref(ut).ghost,onClick:x,"data-testid":`${n.dataTestid}-Clear-Button`},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).exitSmall,color:"var(--grey4)","data-testid":`${n.dataTestid}-Clear-Button-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","data-testid"])):l.createCommentVNode("",!0)],8,r9e)],10,i9e),!n.global&&n.showHistory?(l.openBlock(),l.createBlock(UMe,{key:0,"show-history":n.showHistory,"is-show-button-history":s.isShowButtonHistory,"is-show-list":s.isShowList,"model-value":l.unref(r),onUnmountRemove:l.unref(a),onChoosePost:c,"data-testid":`${n.dataTestid}-Dropdown-History`},null,8,["show-history","is-show-button-history","is-show-list","model-value","onUnmountRemove","data-testid"])):l.createCommentVNode("",!0),n.global&&s.focused?(l.openBlock(),l.createBlock(t9e,{key:1,"global-results-function":n.globalResultsFunction,"search-value":s.searchValue,"data-testid":`${n.dataTestid}-Dropdown-SearchResult`,onChooseResult:f,onScrollPaginate:h},null,8,["global-results-function","search-value","data-testid"])):l.createCommentVNode("",!0)],40,n9e))}}),[["__scopeId","data-v-8a012073"]]);var bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wd={exports:{}};/**
|
|
1265
|
+
`}};ir([fe({type:Object})],Oi.prototype,"date",2),ir([fe({type:Object})],Oi.prototype,"minDate",2),ir([fe({type:Object})],Oi.prototype,"maxDate",2),ir([fe({type:String})],Oi.prototype,"locale",2),ir([fe({type:Number})],Oi.prototype,"firstDayOfWeek",2),ir([fe({type:Array})],Oi.prototype,"disabledDates",2),ir([fe({type:Array})],Oi.prototype,"events",2),ir([Yu()],Oi.prototype,"_date",2),Oi=ir([Sa("col-cal")],Oi);const i4e=["data-testid"],r4e=["data-testid"],a4e=["data-testid"],o4e=pe(l.defineComponent({__name:"DataPickerChoose",props:{value:{},isActive:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePickerChoose"}},emits:["clear","click"],setup(e,{emit:t}){const n=e,i=l.reactive({defaultValue:"-- -- ----",value:"",isActive:!1}),r=t;l.watchEffect(()=>i.isActive=n.isActive),l.watchEffect(()=>i.value=n.value);const a=()=>{r("clear")},o=()=>{r("click")},s=u=>{if(!u)return null;const c=u.indexOf(" "),f=c===-1?3:Math.min(c,3);return`${u.charAt(0).toUpperCase()}${u.slice(1,f)}${u.slice(c)}`};return(u,c)=>(l.openBlock(),l.createElementBlock("button",{onClick:o,class:l.normalizeClass(["date-picker-yui-kit__header-btn",{"date-picker-yui-kit__header-btn_table-view":n.isSmall},{"date-picker-yui-kit__header-btn_range-view":n.isRange},{"date-disable-yui-kit":n.disabled},{"date-active-yui-kit":i.isActive}]),"data-testid":`${n.dataTestid}-HeaderBtn-Trigger`},[l.createVNode(ve,{name:l.unref(ce).calendar,"data-testid":`${n.dataTestid}-Icon`},null,8,["name","data-testid"]),i.value?(l.openBlock(),l.createElementBlock("span",{key:0,"data-testid":`${n.dataTestid}-Value-Display`},l.toDisplayString(s(i.value)),9,r4e)):(l.openBlock(),l.createElementBlock("span",{key:1,class:"date-picker-yui-kit__header-btn__dash","data-testid":`${n.dataTestid}-HeaderBtnDash-Placeholder`},l.toDisplayString(i.defaultValue),9,a4e)),i.value?(l.openBlock(),l.createBlock(Ot,{key:2,size:l.unref(Ai).small,type:l.unref(ut).ghost,disabled:n.disabled,onClick:l.withModifiers(a,["stop"]),class:"date-picker-close-yui-kit","data-testid":`${n.dataTestid}-Button-Clear`},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).crossSmall,"data-testid":`${n.dataTestid}-ButtonClose-Icon`},null,8,["name","data-testid"])]),_:1},8,["size","type","disabled","data-testid"])):l.createCommentVNode("",!0)],10,i4e))}}),[["__scopeId","data-v-cd09084a"]]),mw=["top","right","bottom","left"],pw=["start","end"],gw=mw.reduce((e,t)=>e.concat(t,t+"-"+pw[0],t+"-"+pw[1]),[]),yi=Math.min,Yt=Math.max,cd=Math.round,fd=Math.floor,zi=e=>({x:e,y:e}),s4e={left:"right",right:"left",bottom:"top",top:"bottom"},l4e={start:"end",end:"start"};function Wm(e,t,n){return Yt(e,yi(t,n))}function bi(e,t){return typeof e=="function"?e(t):e}function In(e){return e.split("-")[0]}function wi(e){return e.split("-")[1]}function Om(e){return e==="x"?"y":"x"}function zm(e){return e==="y"?"height":"width"}const u4e=new Set(["top","bottom"]);function vi(e){return u4e.has(In(e))?"y":"x"}function Lm(e){return Om(vi(e))}function yw(e,t,n){n===void 0&&(n=!1);const i=wi(e),r=Lm(e),a=zm(r);let o=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=md(o)),[o,md(o)]}function d4e(e){const t=md(e);return[hd(e),t,hd(t)]}function hd(e){return e.replace(/start|end/g,t=>l4e[t])}const bw=["left","right"],ww=["right","left"],c4e=["top","bottom"],f4e=["bottom","top"];function h4e(e,t,n){switch(e){case"top":case"bottom":return n?t?ww:bw:t?bw:ww;case"left":case"right":return t?c4e:f4e;default:return[]}}function m4e(e,t,n,i){const r=wi(e);let a=h4e(In(e),n==="start",i);return r&&(a=a.map(o=>o+"-"+r),t&&(a=a.concat(a.map(hd)))),a}function md(e){return e.replace(/left|right|bottom|top/g,t=>s4e[t])}function p4e(e){return{top:0,right:0,bottom:0,left:0,...e}}function $m(e){return typeof e!="number"?p4e(e):{top:e,right:e,bottom:e,left:e}}function jo(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function vw(e,t,n){let{reference:i,floating:r}=e;const a=vi(t),o=Lm(t),s=zm(o),u=In(t),c=a==="y",f=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,g=i[s]/2-r[s]/2;let p;switch(u){case"top":p={x:f,y:i.y-r.height};break;case"bottom":p={x:f,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:h};break;case"left":p={x:i.x-r.width,y:h};break;default:p={x:i.x,y:i.y}}switch(wi(t)){case"start":p[o]-=g*(n&&c?-1:1);break;case"end":p[o]+=g*(n&&c?-1:1);break}return p}const g4e=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:h}=vw(c,i,u),g=i,p={},y=0;for(let v=0;v<s.length;v++){const{name:k,fn:w}=s[v],{x:M,y:x,data:S,reset:E}=await w({x:f,y:h,initialPlacement:i,placement:g,strategy:r,middlewareData:p,rects:c,platform:o,elements:{reference:e,floating:t}});f=M??f,h=x??h,p={...p,[k]:{...p[k],...S}},E&&y<=50&&(y++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(c=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:f,y:h}=vw(c,g,u)),v=-1)}return{x:f,y:h,placement:g,strategy:r,middlewareData:p}};async function Ia(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:a,rects:o,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:g=!1,padding:p=0}=bi(t,e),y=$m(p),k=s[g?h==="floating"?"reference":"floating":h],w=jo(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(k)))==null||n?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:u})),M=h==="floating"?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},E=jo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:M,offsetParent:x,strategy:u}):M);return{top:(w.top-E.top+y.top)/S.y,bottom:(E.bottom-w.bottom+y.bottom)/S.y,left:(w.left-E.left+y.left)/S.x,right:(E.right-w.right+y.right)/S.x}}const y4e=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:a,platform:o,elements:s,middlewareData:u}=t,{element:c,padding:f=0}=bi(e,t)||{};if(c==null)return{};const h=$m(f),g={x:n,y:i},p=Lm(r),y=zm(p),v=await o.getDimensions(c),k=p==="y",w=k?"top":"left",M=k?"bottom":"right",x=k?"clientHeight":"clientWidth",S=a.reference[y]+a.reference[p]-g[p]-a.floating[y],E=g[p]-a.reference[p],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let A=I?I[x]:0;(!A||!await(o.isElement==null?void 0:o.isElement(I)))&&(A=s.floating[x]||a.floating[y]);const W=S/2-E/2,$=A/2-v[y]/2-1,D=yi(h[w],$),z=yi(h[M],$),H=D,X=A-v[y]-z,re=A/2-v[y]/2+W,ne=Wm(H,re,X),q=!u.arrow&&wi(r)!=null&&re!==ne&&a.reference[y]/2-(re<H?D:z)-v[y]/2<0,Z=q?re<H?re-H:re-X:0;return{[p]:g[p]+Z,data:{[p]:ne,centerOffset:re-ne-Z,...q&&{alignmentOffset:Z}},reset:q}}});function b4e(e,t,n){return(e?[...n.filter(r=>wi(r)===e),...n.filter(r=>wi(r)!==e)]:n.filter(r=>In(r)===r)).filter(r=>e?wi(r)===e||(t?hd(r)!==r:!1):!0)}const w4e=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,r;const{rects:a,middlewareData:o,placement:s,platform:u,elements:c}=t,{crossAxis:f=!1,alignment:h,allowedPlacements:g=gw,autoAlignment:p=!0,...y}=bi(e,t),v=h!==void 0||g===gw?b4e(h||null,p,g):g,k=await Ia(t,y),w=((n=o.autoPlacement)==null?void 0:n.index)||0,M=v[w];if(M==null)return{};const x=yw(M,a,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(s!==M)return{reset:{placement:v[0]}};const S=[k[In(M)],k[x[0]],k[x[1]]],E=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:M,overflows:S}],I=v[w+1];if(I)return{data:{index:w+1,overflows:E},reset:{placement:I}};const A=E.map(D=>{const z=wi(D.placement);return[D.placement,z&&f?D.overflows.slice(0,2).reduce((H,X)=>H+X,0):D.overflows[0],D.overflows]}).sort((D,z)=>D[1]-z[1]),$=((r=A.filter(D=>D[2].slice(0,wi(D[0])?2:3).every(z=>z<=0))[0])==null?void 0:r[0])||A[0][0];return $!==s?{data:{index:w+1,overflows:E},reset:{placement:$}}:{}}}},v4e=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:a,rects:o,initialPlacement:s,platform:u,elements:c}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...k}=bi(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=In(r),M=vi(s),x=In(s)===s,S=await(u.isRTL==null?void 0:u.isRTL(c.floating)),E=g||(x||!v?[md(s)]:d4e(s)),I=y!=="none";!g&&I&&E.push(...m4e(s,v,y,S));const A=[s,...E],W=await Ia(t,k),$=[];let D=((i=a.flip)==null?void 0:i.overflows)||[];if(f&&$.push(W[w]),h){const re=yw(r,o,S);$.push(W[re[0]],W[re[1]])}if(D=[...D,{placement:r,overflows:$}],!$.every(re=>re<=0)){var z,H;const re=(((z=a.flip)==null?void 0:z.index)||0)+1,ne=A[re];if(ne&&(!(h==="alignment"?M!==vi(ne):!1)||D.every(ue=>vi(ue.placement)===M?ue.overflows[0]>0:!0)))return{data:{index:re,overflows:D},reset:{placement:ne}};let q=(H=D.filter(Z=>Z.overflows[0]<=0).sort((Z,ue)=>Z.overflows[1]-ue.overflows[1])[0])==null?void 0:H.placement;if(!q)switch(p){case"bestFit":{var X;const Z=(X=D.filter(ue=>{if(I){const Ne=vi(ue.placement);return Ne===M||Ne==="y"}return!0}).map(ue=>[ue.placement,ue.overflows.filter(Ne=>Ne>0).reduce((Ne,it)=>Ne+it,0)]).sort((ue,Ne)=>ue[1]-Ne[1])[0])==null?void 0:X[0];Z&&(q=Z);break}case"initialPlacement":q=s;break}if(r!==q)return{reset:{placement:q}}}return{}}}};function kw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Mw(e){return mw.some(t=>e[t]>=0)}const k4e=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=bi(e,t);switch(i){case"referenceHidden":{const a=await Ia(t,{...r,elementContext:"reference"}),o=kw(a,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Mw(o)}}}case"escaped":{const a=await Ia(t,{...r,altBoundary:!0}),o=kw(a,n.floating);return{data:{escapedOffsets:o,escaped:Mw(o)}}}default:return{}}}}};function Cw(e){const t=yi(...e.map(a=>a.left)),n=yi(...e.map(a=>a.top)),i=Yt(...e.map(a=>a.right)),r=Yt(...e.map(a=>a.bottom));return{x:t,y:n,width:i-t,height:r-n}}function M4e(e){const t=e.slice().sort((r,a)=>r.y-a.y),n=[];let i=null;for(let r=0;r<t.length;r++){const a=t[r];!i||a.y-i.y>i.height/2?n.push([a]):n[n.length-1].push(a),i=a}return n.map(r=>jo(Cw(r)))}const C4e=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:i,rects:r,platform:a,strategy:o}=t,{padding:s=2,x:u,y:c}=bi(e,t),f=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(i.reference))||[]),h=M4e(f),g=jo(Cw(f)),p=$m(s);function y(){if(h.length===2&&h[0].left>h[1].right&&u!=null&&c!=null)return h.find(k=>u>k.left-p.left&&u<k.right+p.right&&c>k.top-p.top&&c<k.bottom+p.bottom)||g;if(h.length>=2){if(vi(n)==="y"){const D=h[0],z=h[h.length-1],H=In(n)==="top",X=D.top,re=z.bottom,ne=H?D.left:z.left,q=H?D.right:z.right,Z=q-ne,ue=re-X;return{top:X,bottom:re,left:ne,right:q,width:Z,height:ue,x:ne,y:X}}const k=In(n)==="left",w=Yt(...h.map(D=>D.right)),M=yi(...h.map(D=>D.left)),x=h.filter(D=>k?D.left===M:D.right===w),S=x[0].top,E=x[x.length-1].bottom,I=M,A=w,W=A-I,$=E-S;return{top:S,bottom:E,left:I,right:A,width:W,height:$,x:I,y:S}}return g}const v=await a.getElementRects({reference:{getBoundingClientRect:y},floating:i.floating,strategy:o});return r.reference.x!==v.reference.x||r.reference.y!==v.reference.y||r.reference.width!==v.reference.width||r.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}},xw=new Set(["left","top"]);async function x4e(e,t){const{placement:n,platform:i,elements:r}=e,a=await(i.isRTL==null?void 0:i.isRTL(r.floating)),o=In(n),s=wi(n),u=vi(n)==="y",c=xw.has(o)?-1:1,f=a&&u?-1:1,h=bi(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof y=="number"&&(p=s==="end"?y*-1:y),u?{x:p*f,y:g*c}:{x:g*c,y:p*f}}const S4e=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:a,placement:o,middlewareData:s}=t,u=await x4e(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(i=s.arrow)!=null&&i.alignmentOffset?{}:{x:r+u.x,y:a+u.y,data:{...u,placement:o}}}}},_4e=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:k=>{let{x:w,y:M}=k;return{x:w,y:M}}},...u}=bi(e,t),c={x:n,y:i},f=await Ia(t,u),h=vi(In(r)),g=Om(h);let p=c[g],y=c[h];if(a){const k=g==="y"?"top":"left",w=g==="y"?"bottom":"right",M=p+f[k],x=p-f[w];p=Wm(M,p,x)}if(o){const k=h==="y"?"top":"left",w=h==="y"?"bottom":"right",M=y+f[k],x=y-f[w];y=Wm(M,y,x)}const v=s.fn({...t,[g]:p,[h]:y});return{...v,data:{x:v.x-n,y:v.y-i,enabled:{[g]:a,[h]:o}}}}}},T4e=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:r,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:u=!0,crossAxis:c=!0}=bi(e,t),f={x:n,y:i},h=vi(r),g=Om(h);let p=f[g],y=f[h];const v=bi(s,t),k=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const x=g==="y"?"height":"width",S=a.reference[g]-a.floating[x]+k.mainAxis,E=a.reference[g]+a.reference[x]-k.mainAxis;p<S?p=S:p>E&&(p=E)}if(c){var w,M;const x=g==="y"?"width":"height",S=xw.has(In(r)),E=a.reference[h]-a.floating[x]+(S&&((w=o.offset)==null?void 0:w[h])||0)+(S?0:k.crossAxis),I=a.reference[h]+a.reference[x]+(S?0:((M=o.offset)==null?void 0:M[h])||0)-(S?k.crossAxis:0);y<E?y=E:y>I&&(y=I)}return{[g]:p,[h]:y}}}},P4e=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:a,platform:o,elements:s}=t,{apply:u=()=>{},...c}=bi(e,t),f=await Ia(t,c),h=In(r),g=wi(r),p=vi(r)==="y",{width:y,height:v}=a.floating;let k,w;h==="top"||h==="bottom"?(k=h,w=g===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(w=h,k=g==="end"?"top":"bottom");const M=v-f.top-f.bottom,x=y-f.left-f.right,S=yi(v-f[k],M),E=yi(y-f[w],x),I=!t.middlewareData.shift;let A=S,W=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(W=x),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(A=M),I&&!g){const D=Yt(f.left,0),z=Yt(f.right,0),H=Yt(f.top,0),X=Yt(f.bottom,0);p?W=y-2*(D!==0||z!==0?D+z:Yt(f.left,f.right)):A=v-2*(H!==0||X!==0?H+X:Yt(f.top,f.bottom))}await u({...t,availableWidth:W,availableHeight:A});const $=await o.getDimensions(s.floating);return y!==$.width||v!==$.height?{reset:{rects:!0}}:{}}}};function pd(){return typeof window<"u"}function Wa(e){return Hm(e)?(e.nodeName||"").toLowerCase():"#document"}function Wn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Li(e){var t;return(t=(Hm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hm(e){return pd()?e instanceof Node||e instanceof Wn(e).Node:!1}function ki(e){return pd()?e instanceof Element||e instanceof Wn(e).Element:!1}function $i(e){return pd()?e instanceof HTMLElement||e instanceof Wn(e).HTMLElement:!1}function Sw(e){return!pd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wn(e).ShadowRoot}const E4e=new Set(["inline","contents"]);function al(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Mi(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!E4e.has(r)}const A4e=new Set(["table","td","th"]);function D4e(e){return A4e.has(Wa(e))}const N4e=[":popover-open",":modal"];function gd(e){return N4e.some(t=>{try{return e.matches(t)}catch{return!1}})}const j4e=["transform","translate","scale","rotate","perspective"],I4e=["transform","translate","scale","rotate","perspective","filter"],W4e=["paint","layout","strict","content"];function Rm(e){const t=Bm(),n=ki(e)?Mi(e):e;return j4e.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||I4e.some(i=>(n.willChange||"").includes(i))||W4e.some(i=>(n.contain||"").includes(i))}function O4e(e){let t=zr(e);for(;$i(t)&&!Io(t);){if(Rm(t))return t;if(gd(t))return null;t=zr(t)}return null}function Bm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const z4e=new Set(["html","body","#document"]);function Io(e){return z4e.has(Wa(e))}function Mi(e){return Wn(e).getComputedStyle(e)}function yd(e){return ki(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zr(e){if(Wa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sw(e)&&e.host||Li(e);return Sw(t)?t.host:t}function _w(e){const t=zr(e);return Io(t)?e.ownerDocument?e.ownerDocument.body:e.body:$i(t)&&al(t)?t:_w(t)}function Wo(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=_w(e),a=r===((i=e.ownerDocument)==null?void 0:i.body),o=Wn(r);if(a){const s=Vm(o);return t.concat(o,o.visualViewport||[],al(r)?r:[],s&&n?Wo(s):[])}return t.concat(r,Wo(r,[],n))}function Vm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tw(e){const t=Mi(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=$i(e),a=r?e.offsetWidth:n,o=r?e.offsetHeight:i,s=cd(n)!==a||cd(i)!==o;return s&&(n=a,i=o),{width:n,height:i,$:s}}function Fm(e){return ki(e)?e:e.contextElement}function Oo(e){const t=Fm(e);if(!$i(t))return zi(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:a}=Tw(t);let o=(a?cd(n.width):n.width)/i,s=(a?cd(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const L4e=zi(0);function Pw(e){const t=Wn(e);return!Bm()||!t.visualViewport?L4e:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $4e(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wn(e)?!1:t}function Oa(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=Fm(e);let o=zi(1);t&&(i?ki(i)&&(o=Oo(i)):o=Oo(e));const s=$4e(a,n,i)?Pw(a):zi(0);let u=(r.left+s.x)/o.x,c=(r.top+s.y)/o.y,f=r.width/o.x,h=r.height/o.y;if(a){const g=Wn(a),p=i&&ki(i)?Wn(i):i;let y=g,v=Vm(y);for(;v&&i&&p!==y;){const k=Oo(v),w=v.getBoundingClientRect(),M=Mi(v),x=w.left+(v.clientLeft+parseFloat(M.paddingLeft))*k.x,S=w.top+(v.clientTop+parseFloat(M.paddingTop))*k.y;u*=k.x,c*=k.y,f*=k.x,h*=k.y,u+=x,c+=S,y=Wn(v),v=Vm(y)}}return jo({width:f,height:h,x:u,y:c})}function Um(e,t){const n=yd(e).scrollLeft;return t?t.left+n:Oa(Li(e)).left+n}function Ew(e,t,n){n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=i.left+t.scrollLeft-(n?0:Um(e,i)),a=i.top+t.scrollTop;return{x:r,y:a}}function H4e(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const a=r==="fixed",o=Li(i),s=t?gd(t.floating):!1;if(i===o||s&&a)return n;let u={scrollLeft:0,scrollTop:0},c=zi(1);const f=zi(0),h=$i(i);if((h||!h&&!a)&&((Wa(i)!=="body"||al(o))&&(u=yd(i)),$i(i))){const p=Oa(i);c=Oo(i),f.x=p.x+i.clientLeft,f.y=p.y+i.clientTop}const g=o&&!h&&!a?Ew(o,u,!0):zi(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+g.x,y:n.y*c.y-u.scrollTop*c.y+f.y+g.y}}function R4e(e){return Array.from(e.getClientRects())}function B4e(e){const t=Li(e),n=yd(e),i=e.ownerDocument.body,r=Yt(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Yt(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+Um(e);const s=-n.scrollTop;return Mi(i).direction==="rtl"&&(o+=Yt(t.clientWidth,i.clientWidth)-r),{width:r,height:a,x:o,y:s}}function V4e(e,t){const n=Wn(e),i=Li(e),r=n.visualViewport;let a=i.clientWidth,o=i.clientHeight,s=0,u=0;if(r){a=r.width,o=r.height;const c=Bm();(!c||c&&t==="fixed")&&(s=r.offsetLeft,u=r.offsetTop)}return{width:a,height:o,x:s,y:u}}const F4e=new Set(["absolute","fixed"]);function U4e(e,t){const n=Oa(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,a=$i(e)?Oo(e):zi(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=r*a.x,c=i*a.y;return{width:o,height:s,x:u,y:c}}function Aw(e,t,n){let i;if(t==="viewport")i=V4e(e,n);else if(t==="document")i=B4e(Li(e));else if(ki(t))i=U4e(t,n);else{const r=Pw(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return jo(i)}function Dw(e,t){const n=zr(e);return n===t||!ki(n)||Io(n)?!1:Mi(n).position==="fixed"||Dw(n,t)}function Y4e(e,t){const n=t.get(e);if(n)return n;let i=Wo(e,[],!1).filter(s=>ki(s)&&Wa(s)!=="body"),r=null;const a=Mi(e).position==="fixed";let o=a?zr(e):e;for(;ki(o)&&!Io(o);){const s=Mi(o),u=Rm(o);!u&&s.position==="fixed"&&(r=null),(a?!u&&!r:!u&&s.position==="static"&&!!r&&F4e.has(r.position)||al(o)&&!u&&Dw(e,o))?i=i.filter(f=>f!==o):r=s,o=zr(o)}return t.set(e,i),i}function X4e(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const o=[...n==="clippingAncestors"?gd(t)?[]:Y4e(t,this._c):[].concat(n),i],s=o[0],u=o.reduce((c,f)=>{const h=Aw(t,f,r);return c.top=Yt(h.top,c.top),c.right=yi(h.right,c.right),c.bottom=yi(h.bottom,c.bottom),c.left=Yt(h.left,c.left),c},Aw(t,s,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function q4e(e){const{width:t,height:n}=Tw(e);return{width:t,height:n}}function G4e(e,t,n){const i=$i(t),r=Li(t),a=n==="fixed",o=Oa(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=zi(0);function c(){u.x=Um(r)}if(i||!i&&!a)if((Wa(t)!=="body"||al(r))&&(s=yd(t)),i){const p=Oa(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else r&&c();a&&!i&&r&&c();const f=r&&!i&&!a?Ew(r,s):zi(0),h=o.left+s.scrollLeft-u.x-f.x,g=o.top+s.scrollTop-u.y-f.y;return{x:h,y:g,width:o.width,height:o.height}}function Ym(e){return Mi(e).position==="static"}function Nw(e,t){if(!$i(e)||Mi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Li(e)===n&&(n=n.ownerDocument.body),n}function jw(e,t){const n=Wn(e);if(gd(e))return n;if(!$i(e)){let r=zr(e);for(;r&&!Io(r);){if(ki(r)&&!Ym(r))return r;r=zr(r)}return n}let i=Nw(e,t);for(;i&&D4e(i)&&Ym(i);)i=Nw(i,t);return i&&Io(i)&&Ym(i)&&!Rm(i)?n:i||O4e(e)||n}const K4e=async function(e){const t=this.getOffsetParent||jw,n=this.getDimensions,i=await n(e.floating);return{reference:G4e(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Q4e(e){return Mi(e).direction==="rtl"}const Iw={convertOffsetParentRelativeRectToViewportRelativeRect:H4e,getDocumentElement:Li,getClippingRect:X4e,getOffsetParent:jw,getElementRects:K4e,getClientRects:R4e,getDimensions:q4e,getScale:Oo,isElement:ki,isRTL:Q4e};function Ww(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function J4e(e,t){let n=null,i;const r=Li(e);function a(){var s;clearTimeout(i),(s=n)==null||s.disconnect(),n=null}function o(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const c=e.getBoundingClientRect(),{left:f,top:h,width:g,height:p}=c;if(s||t(),!g||!p)return;const y=fd(h),v=fd(r.clientWidth-(f+g)),k=fd(r.clientHeight-(h+p)),w=fd(f),x={rootMargin:-y+"px "+-v+"px "+-k+"px "+-w+"px",threshold:Yt(0,yi(1,u))||1};let S=!0;function E(I){const A=I[0].intersectionRatio;if(A!==u){if(!S)return o();A?o(!1,A):i=setTimeout(()=>{o(!1,1e-7)},1e3)}A===1&&!Ww(c,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(E,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return o(!0),a}function Xm(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,c=Fm(e),f=r||a?[...c?Wo(c):[],...Wo(t)]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const h=c&&s?J4e(c,n):null;let g=-1,p=null;o&&(p=new ResizeObserver(w=>{let[M]=w;M&&M.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!u&&p.observe(c),p.observe(t));let y,v=u?Oa(e):null;u&&k();function k(){const w=Oa(e);v&&!Ww(v,w)&&n(),v=w,y=requestAnimationFrame(k)}return n(),()=>{var w;f.forEach(M=>{r&&M.removeEventListener("scroll",n),a&&M.removeEventListener("resize",n)}),h==null||h(),(w=p)==null||w.disconnect(),p=null,u&&cancelAnimationFrame(y)}}const Z4e=Ia,qm=S4e,Gm=w4e,e3e=_4e,t3e=v4e,n3e=P4e,i3e=k4e,r3e=y4e,a3e=C4e,o3e=T4e,Ow=(e,t,n)=>{const i=new Map,r={platform:Iw,...n},a={...r.platform,_c:i};return g4e(e,t,{...r,platform:a})};function s3e(e){return e!=null&&typeof e=="object"&&"$el"in e}function Km(e){if(s3e(e)){const t=e.$el;return Hm(t)&&Wa(t)==="#comment"?null:t}return e}function zo(e){return typeof e=="function"?e():l.unref(e)}function l3e(e){return{name:"arrow",options:e,fn(t){const n=Km(zo(e.element));return n==null?{}:r3e({element:n,padding:e.padding}).fn(t)}}}function zw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lw(e,t){const n=zw(e);return Math.round(t*n)/n}function Qm(e,t,n){n===void 0&&(n={});const i=n.whileElementsMounted,r=l.computed(()=>{var A;return(A=zo(n.open))!=null?A:!0}),a=l.computed(()=>zo(n.middleware)),o=l.computed(()=>{var A;return(A=zo(n.placement))!=null?A:"bottom"}),s=l.computed(()=>{var A;return(A=zo(n.strategy))!=null?A:"absolute"}),u=l.computed(()=>{var A;return(A=zo(n.transform))!=null?A:!0}),c=l.computed(()=>Km(e.value)),f=l.computed(()=>Km(t.value)),h=l.ref(0),g=l.ref(0),p=l.ref(s.value),y=l.ref(o.value),v=l.shallowRef({}),k=l.ref(!1),w=l.computed(()=>{const A={position:p.value,left:"0",top:"0"};if(!f.value)return A;const W=Lw(f.value,h.value),$=Lw(f.value,g.value);return u.value?{...A,transform:"translate("+W+"px, "+$+"px)",...zw(f.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:W+"px",top:$+"px"}});let M;function x(){if(c.value==null||f.value==null)return;const A=r.value;Ow(c.value,f.value,{middleware:a.value,placement:o.value,strategy:s.value}).then(W=>{h.value=W.x,g.value=W.y,p.value=W.strategy,y.value=W.placement,v.value=W.middlewareData,k.value=A!==!1})}function S(){typeof M=="function"&&(M(),M=void 0)}function E(){if(S(),i===void 0){x();return}if(c.value!=null&&f.value!=null){M=i(c.value,f.value,x);return}}function I(){r.value||(k.value=!1)}return l.watch([a,o,s,r],x,{flush:"sync"}),l.watch([c,f],E,{flush:"sync"}),l.watch(r,I,{flush:"sync"}),l.getCurrentScope()&&l.onScopeDispose(S),{x:l.shallowReadonly(h),y:l.shallowReadonly(g),strategy:l.shallowReadonly(p),placement:l.shallowReadonly(y),middlewareData:l.shallowReadonly(v),isPositioned:l.shallowReadonly(k),floatingStyles:w,update:x}}const u3e=pe(l.defineComponent({__name:"PopoverWrapper",props:{placement:{default:"bottom-start"},open:{type:Boolean,default:!1}},emits:["unmount-close"],setup(e,{emit:t}){const n=e,i=t,r=l.ref(null),a=l.ref(null),o=l.ref(null),{floatingStyles:s}=Qm(a,o,{middleware:[qm(10),Gm({crossAxis:!0,allowedPlacements:["top-start","bottom-start"]})],placement:n.placement,whileElementsMounted:Xm}),u=()=>{i("unmount-close")},c=f=>{r.value&&!r.value.contains(f.target)&&u()};return l.onBeforeUnmount(()=>{document.removeEventListener("click",c)}),l.onMounted(()=>{document.addEventListener("click",c)}),(f,h)=>(l.openBlock(),l.createElementBlock("div",{class:"popover-wrapper",ref_key:"popoverWrapper",ref:r},[l.createElementVNode("div",{class:"popover-trigger",ref_key:"popoverTrigger",ref:a},[l.renderSlot(f.$slots,"trigger",{},void 0,!0)],512),n.open?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"popoverContent",ref:o,class:l.normalizeClass(["popover-content",[`popover-${e.placement}`,{"popover-show":n.open}]]),style:l.normalizeStyle(l.unref(s))},[l.renderSlot(f.$slots,"default",{},void 0,!0)],6)):l.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-de3b58b0"]]),$w=e=>e instanceof Date&&!isNaN(e.getTime()),bd=e=>{const t=$w(e)&&e!==null?e:new Date;return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59,999))},Hw=e=>{const t=$w(e)&&e!==null?e:new Date,n={year:t.getFullYear(),month:t.getMonth(),day:t.getDate()};return new Date(Date.UTC(n.year,n.month,n.day))},d3e=(e,t)=>{if(!e)return"";t!=="ru-RU"&&(t="en-US");const n=new Date(e),i=ud(t),r=n.getDate().toString().padStart(2,"0"),a=n.getFullYear().toString();return`${i[n.getMonth()]} ${r}, ${a}`},c3e=["data-testid"],f3e=[".date",".minDate",".maxDate","locale","data-testid"],Jm=l.defineComponent({__name:"DatePicker",props:l.mergeModels({range:{},locale:{default:"ru-RU"},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePicker"}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["clear","change"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const i=e,r=l.reactive({isActive:!1,isOpen:{months:!1,years:!1},isNotClear:!0,startDate:null,endDate:null}),a=n,o=l.useModel(e,"modelValue"),s=()=>{r.isNotClear=!1,o.value=null,a("clear"),setTimeout(()=>r.isNotClear=!0,1),u({detail:{date:null}})},u=({detail:w})=>{w&&(o.value=w.date,r.isActive=!1,a("change",w.date))},c=()=>{r.isOpen.months=!0},f=()=>{r.isOpen.years=!0},h=()=>{r.isOpen.months=!1},g=()=>{r.isOpen.years=!1},p=()=>{r.isActive=!1,h(),g()};l.watchEffect(()=>r.startDate=i.startDate??null),l.watchEffect(()=>r.endDate=i.endDate??null);const y=()=>{const w=r.startDate??new Date;if(i.startDate){const M=o.value??new Date;if(w.valueOf()<=M.valueOf())return w;if(w!=null)return w}return null},v=()=>{const w=r.endDate??new Date;if(i.endDate){const M=o.value??new Date;if(w.valueOf()>=M.valueOf())return w;if(w!=null)return w}return null},k=()=>{r.isActive=!0};return l.watch(()=>o.value,()=>{o.value||(r.isNotClear=!1,o.value=null,setTimeout(()=>r.isNotClear=!0,1))}),t({clearChoose:s}),(w,M)=>(l.openBlock(),l.createElementBlock("div",{class:"date-picker-yui-kit__wrapper","data-testid":`${i.dataTestid}-Wrapper`},[l.createVNode(u3e,{open:!i.disabled&&r.isActive,onUnmountClose:p},{trigger:l.withCtx(()=>[l.createVNode(o4e,{onClick:k,onClear:s,"is-active":r.isActive,"is-small":i.isSmall,"is-range":i.isRange,disabled:i.disabled,"data-testid":`${i.dataTestid}-Choose`,value:l.unref(d3e)(o.value||null,i.locale)},null,8,["is-active","is-small","is-range","disabled","data-testid","value"])]),default:l.withCtx(()=>[l.createElementVNode("col-cal",{".date":o.value,".minDate":y(),".maxDate":v(),locale:i.locale??"ru-RU","data-testid":`${i.dataTestid}-Component`,onShowMonths:c,onShowYears:f,onHideMonths:h,onHideYears:g,onChangeDate:u,class:"date-picker-yui-kit"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Object.keys(r.isOpen),x=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:x},[r.isOpen[x]?(l.openBlock(),l.createBlock(ve,{key:0,name:l.unref(ce).chevronUp,width:16,height:16,class:"open-popup",slot:`${x}-popup-icon`},null,8,["name","slot"])):(l.openBlock(),l.createBlock(ve,{key:1,name:l.unref(ce).chevronDown,width:16,height:16,slot:`${x}-popup-icon`},null,8,["name","slot"]))],64))),128)),l.createVNode(ve,{slot:"icon-left-button",name:l.unref(ce).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(ve,{slot:"icon-right-button",name:l.unref(ce).chevronRight,width:16,height:16},null,8,["name"]),l.createVNode(ve,{slot:"years-icon-left",name:l.unref(ce).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(ve,{slot:"years-icon-right",name:l.unref(ce).chevronRight,width:16,height:16},null,8,["name"])],40,f3e)]),_:1},8,["open"])],8,c3e))}});var za=(e=>(e.start="start",e.end="end",e))(za||{});const h3e=["data-testid"],m3e=["data-testid"],p3e=pe(l.defineComponent({__name:"DatePickerRange",props:l.mergeModels({range:{},locale:{default:"ru-RU"},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePickerRange"}},{startDate:{},startDateModifiers:{},endDate:{},endDateModifiers:{}}),emits:l.mergeModels(["change"],["update:startDate","update:endDate"]),setup(e,{expose:t,emit:n}){const i=e,r=n,a=l.reactive({date:{start:null,end:null},isActive:!1}),o=l.useModel(e,"startDate"),s=l.useModel(e,"endDate"),u=(g,p)=>{p===za.start&&(a.date[p]=g),p===za.end&&(a.date[p]=i.toLastTime&&g!==null?bd(g):g),r("change",a.date)},c=g=>{a.date[g]=null},f=()=>{Object.keys(a.date).forEach(g=>{a.date[g]=null})},h=()=>{(o.value||s.value)&&(a.date={start:o.value,end:i.toLastTime?bd(s.value):s.value})};return l.watch([()=>o.value,()=>s.value],()=>{h()}),l.onMounted(()=>{h()}),t({clear:f}),(g,p)=>{var y,v;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["date-picker-yui-kit__header",{"date-disable-yui-kit":i.disabled},{"date-active-yui-kit":a.isActive}]),"data-testid":`${i.dataTestid}-Header`},[l.createVNode(Jm,{modelValue:a.date.start,"onUpdate:modelValue":p[0]||(p[0]=k=>a.date.start=k),locale:i.locale,"is-range":"",disabled:i.disabled,"end-date":(y=a.date)==null?void 0:y.end,onChange:p[1]||(p[1]=k=>u(k,l.unref(za).start)),onClear:p[2]||(p[2]=k=>c(l.unref(za).start)),"data-testid":`${i.dataTestid}-Component-Start`},null,8,["modelValue","locale","disabled","end-date","data-testid"]),l.createElementVNode("div",{class:"date-picker-yui-kit__header__dash","data-testid":`${i.dataTestid}-Header-Dash`},null,8,m3e),l.createVNode(Jm,{modelValue:a.date.end,"onUpdate:modelValue":p[3]||(p[3]=k=>a.date.end=k),locale:i.locale,"is-range":"",disabled:i.disabled,"start-date":(v=a.date)==null?void 0:v.start,onChange:p[4]||(p[4]=k=>u(k,l.unref(za).end)),onClear:p[5]||(p[5]=k=>c(l.unref(za).end)),"data-testid":`${i.dataTestid}-Component-End`},null,8,["modelValue","locale","disabled","start-date","data-testid"])],10,h3e)}}}),[["__scopeId","data-v-485a8486"]]),Zm=l.defineComponent({__name:"Calendar",props:{range:{},locale:{},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"Calendar"}},emits:["change","click"],setup(e,{emit:t}){const n=e,i=l.reactive({date:null,dateObject:{start:null,end:null}}),r=t,a=l.ref(),o=u=>{r("change",u)};l.watchEffect(()=>i.date=n.setDate||null);const s=()=>{var u,c;return{start:n.fromTodayTime?new Date(Date.now()):((u=n.range)==null?void 0:u.start)??null,end:((c=n.range)==null?void 0:c.end)??null}};return l.watch([()=>{var u;return(u=n.range)==null?void 0:u.start},()=>{var u;return(u=n.range)==null?void 0:u.end}],()=>{var u,c,f;i.dateObject=s(),((u=n.range)==null?void 0:u.start)===null&&((c=n.range)==null?void 0:c.end)===null&&((f=a.value)==null||f.clear())}),l.onMounted(()=>{if(n.isRange){i.dateObject=s();return}n.setDate&&(i.date=n.setDate??null)}),(u,c)=>n.isRange?(l.openBlock(),l.createBlock(p3e,{key:0,ref_key:"datePickerRangeRef",ref:a,"to-last-time":n.toLastTime,"start-date":i.dateObject.start,"onUpdate:startDate":c[0]||(c[0]=f=>i.dateObject.start=f),"end-date":i.dateObject.end,"onUpdate:endDate":c[1]||(c[1]=f=>i.dateObject.end=f),disabled:n.disabled,locale:n.locale,onClick:c[2]||(c[2]=f=>r("click")),onChange:o,"data-testid":`${n.dataTestid}-DataPickerRange`},null,8,["to-last-time","start-date","end-date","disabled","locale","data-testid"])):(l.openBlock(),l.createBlock(Jm,{key:1,modelValue:i.date,"onUpdate:modelValue":c[3]||(c[3]=f=>i.date=f),disabled:n.disabled,locale:n.locale,"is-small":n.isSmall,"data-testid":`${n.dataTestid}-DataPicker`,onClick:c[4]||(c[4]=f=>r("click")),onChange:o},null,8,["modelValue","disabled","locale","is-small","data-testid"]))}});function Rw(e,t){var n;const i=l.shallowRef();return l.watchEffect(()=>{i.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!=null?n:"sync"}),l.readonly(i)}function e1(e,t){let n,i,r;const a=l.ref(!0),o=()=>{a.value=!0,r()};l.watch(e,o,{flush:"sync"});const s=typeof t=="function"?t:t.get,u=typeof t=="function"?void 0:t.set,c=l.customRef((f,h)=>(i=f,r=h,{get(){return a.value&&(n=s(n),a.value=!1),i(),n},set(g){u==null||u(g)}}));return Object.isExtensible(c)&&(c.trigger=o),c}function Oe(e){return l.getCurrentScope()?(l.onScopeDispose(e),!0):!1}function ln(){const e=new Set,t=r=>{e.delete(r)};return{on:r=>{e.add(r);const a=()=>t(r);return Oe(a),{off:a}},off:t,trigger:(...r)=>Promise.all(Array.from(e).map(a=>a(...r)))}}function g3e(e){let t=!1,n;const i=l.effectScope(!0);return(...r)=>(t||(n=i.run(()=>e(...r)),t=!0),n)}const Lo=new WeakMap,Bw=(e,t)=>{var n;const i=(n=l.getCurrentInstance())==null?void 0:n.proxy;if(i==null)throw new Error("provideLocal must be called in setup");Lo.has(i)||Lo.set(i,Object.create(null));const r=Lo.get(i);r[e]=t,l.provide(e,t)},Vw=(...e)=>{var t;const n=e[0],i=(t=l.getCurrentInstance())==null?void 0:t.proxy;if(i==null)throw new Error("injectLocal must be called in setup");return Lo.has(i)&&n in Lo.get(i)?Lo.get(i)[n]:l.inject(...e)};function y3e(e,t){const n=(t==null?void 0:t.injectionKey)||Symbol(e.name||"InjectionState"),i=t==null?void 0:t.defaultValue;return[(...o)=>{const s=e(...o);return Bw(n,s),s},()=>Vw(n,i)]}function b3e(e){let t=0,n,i;const r=()=>{t-=1,i&&t<=0&&(i.stop(),n=void 0,i=void 0)};return(...a)=>(t+=1,i||(i=l.effectScope(!0),n=i.run(()=>e(...a))),Oe(r),n)}function Fw(e,t,{enumerable:n=!1,unwrap:i=!0}={}){for(const[r,a]of Object.entries(t))r!=="value"&&(l.isRef(a)&&i?Object.defineProperty(e,r,{get(){return a.value},set(o){a.value=o},enumerable:n}):Object.defineProperty(e,r,{value:a,enumerable:n}));return e}function w3e(e,t){return t==null?l.unref(e):l.unref(e)[t]}function v3e(e){return l.unref(e)!=null}function Uw(e,t){if(typeof Symbol<"u"){const n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let i=0;return{next:()=>({value:t[i++],done:i>t.length})}}}),n}else return Object.assign([...t],e)}function B(e){return typeof e=="function"?e():l.unref(e)}const k3e=B;function t1(e,t){const n=(t==null?void 0:t.computedGetter)===!1?l.unref:B;return function(...i){return l.computed(()=>e.apply(this,i.map(r=>n(r))))}}function M3e(e,t={}){let n=[],i;if(Array.isArray(t))n=t;else{i=t;const{includeOwnProperties:r=!0}=t;n.push(...Object.keys(e)),r&&n.push(...Object.getOwnPropertyNames(e))}return Object.fromEntries(n.map(r=>{const a=e[r];return[r,typeof a=="function"?t1(a.bind(e),i):a]}))}function Yw(e){if(!l.isRef(e))return l.reactive(e);const t=new Proxy({},{get(n,i,r){return l.unref(Reflect.get(e.value,i,r))},set(n,i,r){return l.isRef(e.value[i])&&!l.isRef(r)?e.value[i].value=r:e.value[i]=r,!0},deleteProperty(n,i){return Reflect.deleteProperty(e.value,i)},has(n,i){return Reflect.has(e.value,i)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return l.reactive(t)}function n1(e){return Yw(l.computed(e))}function C3e(e,...t){const n=t.flat(),i=n[0];return n1(()=>Object.fromEntries(typeof i=="function"?Object.entries(l.toRefs(e)).filter(([r,a])=>!i(B(a),r)):Object.entries(l.toRefs(e)).filter(r=>!n.includes(r[0]))))}const Et=typeof window<"u"&&typeof document<"u",Xw=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,qw=e=>typeof e<"u",wd=e=>e!=null,x3e=(e,...t)=>{e||console.warn(...t)},S3e=Object.prototype.toString,ol=e=>S3e.call(e)==="[object Object]",_3e=()=>Date.now(),La=()=>+Date.now(),vd=(e,t,n)=>Math.min(n,Math.max(t,e)),Ve=()=>{},T3e=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e),Gw=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),kd=P3e();function P3e(){var e,t;return Et&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function $a(e,t){function n(...i){return new Promise((r,a)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(r).catch(a)})}return n}const sl=e=>e();function Md(e,t={}){let n,i,r=Ve;const a=s=>{clearTimeout(s),r(),r=Ve};return s=>{const u=B(e),c=B(t.maxWait);return n&&a(n),u<=0||c!==void 0&&c<=0?(i&&(a(i),i=null),Promise.resolve(s())):new Promise((f,h)=>{r=t.rejectOnCancel?h:f,c&&!i&&(i=setTimeout(()=>{n&&a(n),i=null,f(s())},c)),n=setTimeout(()=>{i&&a(i),i=null,f(s())},u)})}}function ll(...e){let t=0,n,i=!0,r=Ve,a,o,s,u,c;!l.isRef(e[0])&&typeof e[0]=="object"?{delay:o,trailing:s=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[o,s=!0,u=!0,c=!1]=e;const f=()=>{n&&(clearTimeout(n),n=void 0,r(),r=Ve)};return g=>{const p=B(o),y=Date.now()-t,v=()=>a=g();return f(),p<=0?(t=Date.now(),v()):(y>p&&(u||!i)?(t=Date.now(),v()):s&&(a=new Promise((k,w)=>{r=c?w:k,n=setTimeout(()=>{t=Date.now(),i=!0,k(v()),f()},Math.max(0,p-y))})),!u&&!n&&(n=setTimeout(()=>i=!0,p)),i=!1,a)}}function i1(e=sl){const t=l.ref(!0);function n(){t.value=!1}function i(){t.value=!0}const r=(...a)=>{t.value&&e(...a)};return{isActive:l.readonly(t),pause:n,resume:i,eventFilter:r}}const E3e={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Kw(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}const A3e=/\B([A-Z])/g,D3e=Kw(e=>e.replace(A3e,"-$1").toLowerCase()),N3e=/-(\w)/g,Qw=Kw(e=>e.replace(N3e,(t,n)=>n?n.toUpperCase():""));function ul(e,t=!1,n="Timeout"){return new Promise((i,r)=>{setTimeout(t?()=>r(n):i,e)})}function r1(e){return e}function Jw(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const i=t;t=void 0,i&&await i},n}function j3e(e){return e()}function a1(e,...t){return t.some(n=>n in e)}function Zw(e,t){var n;if(typeof e=="number")return e+t;const i=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",r=e.slice(i.length),a=Number.parseFloat(i)+t;return Number.isNaN(a)?e:a+r}function ev(e,t,n=!1){return t.reduce((i,r)=>(r in e&&(!n||e[r]!==void 0)&&(i[r]=e[r]),i),{})}function tv(e,t,n=!1){return Object.fromEntries(Object.entries(e).filter(([i,r])=>(!n||r!==void 0)&&!t.includes(i)))}function nv(e){return Object.entries(e)}function dl(e){return e||l.getCurrentInstance()}function wt(...e){if(e.length!==1)return l.toRef(...e);const t=e[0];return typeof t=="function"?l.readonly(l.customRef(()=>({get:t,set:Ve}))):l.ref(t)}const I3e=wt;function W3e(e,...t){const n=t.flat(),i=n[0];return n1(()=>Object.fromEntries(typeof i=="function"?Object.entries(l.toRefs(e)).filter(([r,a])=>i(B(a),r)):n.map(r=>[r,wt(e,r)])))}function iv(e,t=1e4){return l.customRef((n,i)=>{let r=B(e),a;const o=()=>setTimeout(()=>{r=B(e),i()},B(t));return Oe(()=>{clearTimeout(a)}),{get(){return n(),r},set(s){r=s,i(),clearTimeout(a),a=o()}}})}function Cd(e,t=200,n={}){return $a(Md(t,n),e)}function o1(e,t=200,n={}){const i=l.ref(e.value),r=Cd(()=>{i.value=e.value},t,n);return l.watch(e,()=>r()),i}function O3e(e,t){return l.computed({get(){var n;return(n=e.value)!=null?n:t},set(n){e.value=n}})}function s1(e,t=200,n=!1,i=!0,r=!1){return $a(ll(t,n,i,r),e)}function l1(e,t=200,n=!0,i=!0){if(t<=0)return e;const r=l.ref(e.value),a=s1(()=>{r.value=e.value},t,n,i);return l.watch(e,()=>a()),r}function rv(e,t={}){let n=e,i,r;const a=l.customRef((g,p)=>(i=g,r=p,{get(){return o()},set(y){s(y)}}));function o(g=!0){return g&&i(),n}function s(g,p=!0){var y,v;if(g===n)return;const k=n;((y=t.onBeforeChange)==null?void 0:y.call(t,g,k))!==!1&&(n=g,(v=t.onChanged)==null||v.call(t,g,k),p&&r())}return Fw(a,{get:o,set:s,untrackedGet:()=>o(!1),silentSet:g=>s(g,!1),peek:()=>o(!1),lay:g=>s(g,!1)},{enumerable:!0})}const z3e=rv;function L3e(...e){if(e.length===2){const[t,n]=e;t.value=n}if(e.length===3){const[t,n,i]=e;t[n]=i}}function $o(e,t,n={}){const{eventFilter:i=sl,...r}=n;return l.watch(e,$a(i,t),r)}function Ho(e,t,n={}){const{eventFilter:i,...r}=n,{eventFilter:a,pause:o,resume:s,isActive:u}=i1(i);return{stop:$o(e,t,{...r,eventFilter:a}),pause:o,resume:s,isActive:u}}function u1(e,t,...[n]){const{flush:i="sync",deep:r=!1,immediate:a=!0,direction:o="both",transform:s={}}=n||{},u=[],c="ltr"in s&&s.ltr||(g=>g),f="rtl"in s&&s.rtl||(g=>g);return(o==="both"||o==="ltr")&&u.push(Ho(e,g=>{u.forEach(p=>p.pause()),t.value=c(g),u.forEach(p=>p.resume())},{flush:i,deep:r,immediate:a})),(o==="both"||o==="rtl")&&u.push(Ho(t,g=>{u.forEach(p=>p.pause()),e.value=f(g),u.forEach(p=>p.resume())},{flush:i,deep:r,immediate:a})),()=>{u.forEach(g=>g.stop())}}function $3e(e,t,n={}){const{flush:i="sync",deep:r=!1,immediate:a=!0}=n;return Array.isArray(t)||(t=[t]),l.watch(e,o=>t.forEach(s=>s.value=o),{flush:i,deep:r,immediate:a})}function d1(e,t={}){if(!l.isRef(e))return l.toRefs(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const i in e.value)n[i]=l.customRef(()=>({get(){return e.value[i]},set(r){var a;if((a=B(t.replaceRef))!=null?a:!0)if(Array.isArray(e.value)){const s=[...e.value];s[i]=r,e.value=s}else{const s={...e.value,[i]:r};Object.setPrototypeOf(s,Object.getPrototypeOf(e.value)),e.value=s}else e.value[i]=r}}));return n}function H3e(e,t=!0,n){dl(n)?l.onBeforeMount(e,n):t?e():l.nextTick(e)}function av(e,t){dl(t)&&l.onBeforeUnmount(e,t)}function At(e,t=!0,n){dl()?l.onMounted(e,n):t?e():l.nextTick(e)}function ov(e,t){dl(t)&&l.onUnmounted(e,t)}function c1(e,t=!1){function n(h,{flush:g="sync",deep:p=!1,timeout:y,throwOnTimeout:v}={}){let k=null;const M=[new Promise(x=>{k=l.watch(e,S=>{h(S)!==t&&(k?k():l.nextTick(()=>k==null?void 0:k()),x(S))},{flush:g,deep:p,immediate:!0})})];return y!=null&&M.push(ul(y,v).then(()=>B(e)).finally(()=>k==null?void 0:k())),Promise.race(M)}function i(h,g){if(!l.isRef(h))return n(S=>S===h,g);const{flush:p="sync",deep:y=!1,timeout:v,throwOnTimeout:k}=g??{};let w=null;const x=[new Promise(S=>{w=l.watch([e,h],([E,I])=>{t!==(E===I)&&(w?w():l.nextTick(()=>w==null?void 0:w()),S(E))},{flush:p,deep:y,immediate:!0})})];return v!=null&&x.push(ul(v,k).then(()=>B(e)).finally(()=>(w==null||w(),B(e)))),Promise.race(x)}function r(h){return n(g=>!!g,h)}function a(h){return i(null,h)}function o(h){return i(void 0,h)}function s(h){return n(Number.isNaN,h)}function u(h,g){return n(p=>{const y=Array.from(p);return y.includes(h)||y.includes(B(h))},g)}function c(h){return f(1,h)}function f(h=1,g){let p=-1;return n(()=>(p+=1,p>=h),g)}return Array.isArray(B(e))?{toMatch:n,toContains:u,changed:c,changedTimes:f,get not(){return c1(e,!t)}}:{toMatch:n,toBe:i,toBeTruthy:r,toBeNull:a,toBeNaN:s,toBeUndefined:o,changed:c,changedTimes:f,get not(){return c1(e,!t)}}}function cl(e){return c1(e)}function R3e(e,t){return e===t}function B3e(...e){var t;const n=e[0],i=e[1];let r=(t=e[2])!=null?t:R3e;if(typeof r=="string"){const a=r;r=(o,s)=>o[a]===s[a]}return l.computed(()=>B(n).filter(a=>B(i).findIndex(o=>r(a,o))===-1))}function V3e(e,t){return l.computed(()=>B(e).every((n,i,r)=>t(B(n),i,r)))}function F3e(e,t){return l.computed(()=>B(e).map(n=>B(n)).filter(t))}function U3e(e,t){return l.computed(()=>B(B(e).find((n,i,r)=>t(B(n),i,r))))}function Y3e(e,t){return l.computed(()=>B(e).findIndex((n,i,r)=>t(B(n),i,r)))}function X3e(e,t){let n=e.length;for(;n-- >0;)if(t(e[n],n,e))return e[n]}function q3e(e,t){return l.computed(()=>B(Array.prototype.findLast?B(e).findLast((n,i,r)=>t(B(n),i,r)):X3e(B(e),(n,i,r)=>t(B(n),i,r))))}function G3e(e){return ol(e)&&a1(e,"formIndex","comparator")}function K3e(...e){var t;const n=e[0],i=e[1];let r=e[2],a=0;if(G3e(r)&&(a=(t=r.fromIndex)!=null?t:0,r=r.comparator),typeof r=="string"){const o=r;r=(s,u)=>s[o]===B(u)}return r=r??((o,s)=>o===B(s)),l.computed(()=>B(n).slice(a).some((o,s,u)=>r(B(o),B(i),s,B(u))))}function Q3e(e,t){return l.computed(()=>B(e).map(n=>B(n)).join(B(t)))}function J3e(e,t){return l.computed(()=>B(e).map(n=>B(n)).map(t))}function Z3e(e,t,...n){const i=(r,a,o)=>t(B(r),B(a),o);return l.computed(()=>{const r=B(e);return n.length?r.reduce(i,B(n[0])):r.reduce(i)})}function e6e(e,t){return l.computed(()=>B(e).some((n,i,r)=>t(B(n),i,r)))}function t6e(e){return Array.from(new Set(e))}function n6e(e,t){return e.reduce((n,i)=>(n.some(r=>t(i,r,e))||n.push(i),n),[])}function i6e(e,t){return l.computed(()=>{const n=B(e).map(i=>B(i));return t?n6e(n,t):t6e(n)})}function r6e(e=0,t={}){let n=l.unref(e);const i=l.ref(e),{max:r=Number.POSITIVE_INFINITY,min:a=Number.NEGATIVE_INFINITY}=t,o=(h=1)=>i.value=Math.max(Math.min(r,i.value+h),a),s=(h=1)=>i.value=Math.min(Math.max(a,i.value-h),r),u=()=>i.value,c=h=>i.value=Math.max(a,Math.min(r,h));return{count:i,inc:o,dec:s,get:u,set:c,reset:(h=n)=>(n=h,c(h))}}const a6e=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,o6e=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function s6e(e,t,n,i){let r=e<12?"AM":"PM";return i&&(r=r.split("").reduce((a,o)=>a+=`${o}.`,"")),n?r.toLowerCase():r}function Ha(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function sv(e,t,n={}){var i;const r=e.getFullYear(),a=e.getMonth(),o=e.getDate(),s=e.getHours(),u=e.getMinutes(),c=e.getSeconds(),f=e.getMilliseconds(),h=e.getDay(),g=(i=n.customMeridiem)!=null?i:s6e,p={Yo:()=>Ha(r),YY:()=>String(r).slice(-2),YYYY:()=>r,M:()=>a+1,Mo:()=>Ha(a+1),MM:()=>`${a+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(B(n.locales),{month:"short"}),MMMM:()=>e.toLocaleDateString(B(n.locales),{month:"long"}),D:()=>String(o),Do:()=>Ha(o),DD:()=>`${o}`.padStart(2,"0"),H:()=>String(s),Ho:()=>Ha(s),HH:()=>`${s}`.padStart(2,"0"),h:()=>`${s%12||12}`.padStart(1,"0"),ho:()=>Ha(s%12||12),hh:()=>`${s%12||12}`.padStart(2,"0"),m:()=>String(u),mo:()=>Ha(u),mm:()=>`${u}`.padStart(2,"0"),s:()=>String(c),so:()=>Ha(c),ss:()=>`${c}`.padStart(2,"0"),SSS:()=>`${f}`.padStart(3,"0"),d:()=>h,dd:()=>e.toLocaleDateString(B(n.locales),{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(B(n.locales),{weekday:"short"}),dddd:()=>e.toLocaleDateString(B(n.locales),{weekday:"long"}),A:()=>g(s,u),AA:()=>g(s,u,!1,!0),a:()=>g(s,u,!0),aa:()=>g(s,u,!0,!0)};return t.replace(o6e,(y,v)=>{var k,w;return(w=v??((k=p[y])==null?void 0:k.call(p)))!=null?w:y})}function lv(e){if(e===null)return new Date(Number.NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){const t=e.match(a6e);if(t){const n=t[2]-1||0,i=(t[7]||"0").substring(0,3);return new Date(t[1],n,t[3]||1,t[4]||0,t[5]||0,t[6]||0,i)}}return new Date(e)}function l6e(e,t="HH:mm:ss",n={}){return l.computed(()=>sv(lv(B(e)),B(t),n))}function Lr(e,t=1e3,n={}){const{immediate:i=!0,immediateCallback:r=!1}=n;let a=null;const o=l.ref(!1);function s(){a&&(clearInterval(a),a=null)}function u(){o.value=!1,s()}function c(){const f=B(t);f<=0||(o.value=!0,r&&e(),s(),a=setInterval(e,f))}if(i&&Et&&c(),l.isRef(t)||typeof t=="function"){const f=l.watch(t,()=>{o.value&&Et&&c()});Oe(f)}return Oe(u),{isActive:o,pause:u,resume:c}}function u6e(e=1e3,t={}){const{controls:n=!1,immediate:i=!0,callback:r}=t,a=l.ref(0),o=()=>a.value+=1,s=()=>{a.value=0},u=Lr(r?()=>{o(),r(a.value)}:o,e,{immediate:i});return n?{counter:a,reset:s,...u}:a}function d6e(e,t={}){var n;const i=l.ref((n=t.initialValue)!=null?n:null);return l.watch(e,()=>i.value=La(),t),i}function Ro(e,t,n={}){const{immediate:i=!0}=n,r=l.ref(!1);let a=null;function o(){a&&(clearTimeout(a),a=null)}function s(){r.value=!1,o()}function u(...c){o(),r.value=!0,a=setTimeout(()=>{r.value=!1,a=null,e(...c)},B(t))}return i&&(r.value=!0,Et&&u()),Oe(s),{isPending:l.readonly(r),start:u,stop:s}}function c6e(e=1e3,t={}){const{controls:n=!1,callback:i}=t,r=Ro(i??Ve,e,t),a=l.computed(()=>!r.isPending.value);return n?{ready:a,...r}:a}function f6e(e,t={}){const{method:n="parseFloat",radix:i,nanToZero:r}=t;return l.computed(()=>{let a=B(e);return typeof a=="string"&&(a=Number[n](a,i)),r&&Number.isNaN(a)&&(a=0),a})}function h6e(e){return l.computed(()=>`${B(e)}`)}function m6e(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,r=l.isRef(e),a=l.ref(e);function o(s){if(arguments.length)return a.value=s,a.value;{const u=B(n);return a.value=a.value===u?B(i):u,a.value}}return r?o:[a,o]}function p6e(e,t,n){let i=n!=null&&n.immediate?[]:[...e instanceof Function?e():Array.isArray(e)?e:B(e)];return l.watch(e,(r,a,o)=>{const s=Array.from({length:i.length}),u=[];for(const f of r){let h=!1;for(let g=0;g<i.length;g++)if(!s[g]&&f===i[g]){s[g]=!0,h=!0;break}h||u.push(f)}const c=i.filter((f,h)=>!s[h]);t(r,i,u,c,o),i=[...r]},n)}function g6e(e,t,n){const{count:i,...r}=n,a=l.ref(0),o=$o(e,(...s)=>{a.value+=1,a.value>=B(i)&&l.nextTick(()=>o()),t(...s)},r);return{count:a,stop:o}}function uv(e,t,n={}){const{debounce:i=0,maxWait:r=void 0,...a}=n;return $o(e,t,{...a,eventFilter:Md(i,{maxWait:r})})}function y6e(e,t,n){return l.watch(e,t,{...n,deep:!0})}function Bo(e,t,n={}){const{eventFilter:i=sl,...r}=n,a=$a(i,t);let o,s,u;if(r.flush==="sync"){const c=l.ref(!1);s=()=>{},o=f=>{c.value=!0,f(),c.value=!1},u=l.watch(e,(...f)=>{c.value||a(...f)},r)}else{const c=[],f=l.ref(0),h=l.ref(0);s=()=>{f.value=h.value},c.push(l.watch(e,()=>{h.value++},{...r,flush:"sync"})),o=g=>{const p=h.value;g(),f.value+=h.value-p},c.push(l.watch(e,(...g)=>{const p=f.value>0&&f.value===h.value;f.value=0,h.value=0,!p&&a(...g)},r)),u=()=>{c.forEach(g=>g())}}return{stop:u,ignoreUpdates:o,ignorePrevAsyncUpdates:s}}function b6e(e,t,n){return l.watch(e,t,{...n,immediate:!0})}function w6e(e,t,n){const i=l.watch(e,(...r)=>(l.nextTick(()=>i()),t(...r)),n);return i}function dv(e,t,n={}){const{throttle:i=0,trailing:r=!0,leading:a=!0,...o}=n;return $o(e,t,{...o,eventFilter:ll(i,r,a)})}function v6e(e,t,n={}){let i;function r(){if(!i)return;const f=i;i=void 0,f()}function a(f){i=f}const o=(f,h)=>(r(),t(f,h,a)),s=Bo(e,o,n),{ignoreUpdates:u}=s;return{...s,trigger:()=>{let f;return u(()=>{f=o(k6e(e),M6e(e))}),f}}}function k6e(e){return l.isReactive(e)?e:Array.isArray(e)?e.map(t=>B(t)):B(e)}function M6e(e){return Array.isArray(e)?e.map(()=>{}):void 0}function cv(e,t,n){const i=l.watch(e,(r,a,o)=>{r&&(n!=null&&n.once&&l.nextTick(()=>i()),t(r,a,o))},{...n,once:!1});return i}function fv(e,t,n){let i;l.isRef(n)?i={evaluating:n}:i=n||{};const{lazy:r=!1,evaluating:a=void 0,shallow:o=!0,onError:s=Ve}=i,u=l.ref(!r),c=o?l.shallowRef(t):l.ref(t);let f=0;return l.watchEffect(async h=>{if(!u.value)return;f++;const g=f;let p=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{const y=await e(v=>{h(()=>{a&&(a.value=!1),p||v()})});g===f&&(c.value=y)}catch(y){s(y)}finally{a&&g===f&&(a.value=!1),p=!0}}),r?l.computed(()=>(u.value=!0,c.value)):c}function C6e(e,t,n,i){let r=l.inject(e);return n&&(r=l.inject(e,n)),i&&(r=l.inject(e,n,i)),typeof t=="function"?l.computed(a=>t(r,a)):l.computed({get:a=>t.get(r,a),set:t.set})}function x6e(e={}){const{inheritAttrs:t=!0}=e,n=l.shallowRef(),i=l.defineComponent({setup(a,{slots:o}){return()=>{n.value=o.default}}}),r=l.defineComponent({inheritAttrs:t,setup(a,{attrs:o,slots:s}){return()=>{var u;if(!n.value&&process.env.NODE_ENV!=="production")throw new Error("[VueUse] Failed to find the definition of reusable template");const c=(u=n.value)==null?void 0:u.call(n,{...S6e(o),$slots:s});return t&&(c==null?void 0:c.length)===1?c[0]:c}}});return Uw({define:i,reuse:r},[i,r])}function S6e(e){const t={};for(const n in e)t[Qw(n)]=e[n];return t}function _6e(e={}){let t=0;const n=l.ref([]);function i(...o){const s=l.shallowReactive({key:t++,args:o,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(s),s.promise=new Promise((u,c)=>{s.resolve=f=>(s.isResolving=!0,u(f)),s.reject=c}).finally(()=>{s.promise=void 0;const u=n.value.indexOf(s);u!==-1&&n.value.splice(u,1)}),s.promise}function r(...o){return e.singleton&&n.value.length>0?n.value[0].promise:i(...o)}const a=l.defineComponent((o,{slots:s})=>{const u=()=>n.value.map(c=>{var f;return l.h(l.Fragment,{key:c.key},(f=s.default)==null?void 0:f.call(s,c))});return e.transition?()=>l.h(l.TransitionGroup,e.transition,u):u});return a.start=r,a}function T6e(e){return function(...t){return e.apply(this,t.map(n=>B(n)))}}function Ie(e){var t;const n=B(e);return(t=n==null?void 0:n.$el)!=null?t:n}const me=Et?window:void 0,un=Et?window.document:void 0,kn=Et?window.navigator:void 0,P6e=Et?window.location:void 0;function K(...e){let t,n,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,r]=e,t=me):[t,n,i,r]=e,!t)return Ve;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],o=()=>{a.forEach(f=>f()),a.length=0},s=(f,h,g,p)=>(f.addEventListener(h,g,p),()=>f.removeEventListener(h,g,p)),u=l.watch(()=>[Ie(t),B(r)],([f,h])=>{if(o(),!f)return;const g=ol(h)?{...h}:h;a.push(...n.flatMap(p=>i.map(y=>s(f,p,y,g))))},{immediate:!0,flush:"post"}),c=()=>{u(),o()};return Oe(c),c}let hv=!1;function E6e(e,t,n={}){const{window:i=me,ignore:r=[],capture:a=!0,detectIframe:o=!1}=n;if(!i)return Ve;kd&&!hv&&(hv=!0,Array.from(i.document.body.children).forEach(g=>g.addEventListener("click",Ve)),i.document.documentElement.addEventListener("click",Ve));let s=!0;const u=g=>r.some(p=>{if(typeof p=="string")return Array.from(i.document.querySelectorAll(p)).some(y=>y===g.target||g.composedPath().includes(y));{const y=Ie(p);return y&&(g.target===y||g.composedPath().includes(y))}}),f=[K(i,"click",g=>{const p=Ie(e);if(!(!p||p===g.target||g.composedPath().includes(p))){if(g.detail===0&&(s=!u(g)),!s){s=!0;return}t(g)}},{passive:!0,capture:a}),K(i,"pointerdown",g=>{const p=Ie(e);s=!u(g)&&!!(p&&!g.composedPath().includes(p))},{passive:!0}),o&&K(i,"blur",g=>{setTimeout(()=>{var p;const y=Ie(e);((p=i.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(y!=null&&y.contains(i.document.activeElement))&&t(g)},0)})].filter(Boolean);return()=>f.forEach(g=>g())}function A6e(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function xd(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=me,eventName:a="keydown",passive:o=!1,dedupe:s=!1}=i,u=A6e(t);return K(r,a,f=>{f.repeat&&B(s)||u(f)&&n(f)},o)}function D6e(e,t,n={}){return xd(e,t,{...n,eventName:"keydown"})}function N6e(e,t,n={}){return xd(e,t,{...n,eventName:"keypress"})}function j6e(e,t,n={}){return xd(e,t,{...n,eventName:"keyup"})}const I6e=500,W6e=10;function O6e(e,t,n){var i,r;const a=l.computed(()=>Ie(e));let o,s,u,c=!1;function f(){o&&(clearTimeout(o),o=void 0),s=void 0,u=void 0,c=!1}function h(w){var M,x,S;const[E,I,A]=[u,s,c];if(f(),!(n!=null&&n.onMouseUp)||!I||!E||(M=n==null?void 0:n.modifiers)!=null&&M.self&&w.target!==a.value)return;(x=n==null?void 0:n.modifiers)!=null&&x.prevent&&w.preventDefault(),(S=n==null?void 0:n.modifiers)!=null&&S.stop&&w.stopPropagation();const W=w.x-I.x,$=w.y-I.y,D=Math.sqrt(W*W+$*$);n.onMouseUp(w.timeStamp-E,D,A)}function g(w){var M,x,S,E;(M=n==null?void 0:n.modifiers)!=null&&M.self&&w.target!==a.value||(f(),(x=n==null?void 0:n.modifiers)!=null&&x.prevent&&w.preventDefault(),(S=n==null?void 0:n.modifiers)!=null&&S.stop&&w.stopPropagation(),s={x:w.x,y:w.y},u=w.timeStamp,o=setTimeout(()=>{c=!0,t(w)},(E=n==null?void 0:n.delay)!=null?E:I6e))}function p(w){var M,x,S,E;if((M=n==null?void 0:n.modifiers)!=null&&M.self&&w.target!==a.value||!s||(n==null?void 0:n.distanceThreshold)===!1)return;(x=n==null?void 0:n.modifiers)!=null&&x.prevent&&w.preventDefault(),(S=n==null?void 0:n.modifiers)!=null&&S.stop&&w.stopPropagation();const I=w.x-s.x,A=w.y-s.y;Math.sqrt(I*I+A*A)>=((E=n==null?void 0:n.distanceThreshold)!=null?E:W6e)&&f()}const y={capture:(i=n==null?void 0:n.modifiers)==null?void 0:i.capture,once:(r=n==null?void 0:n.modifiers)==null?void 0:r.once},v=[K(a,"pointerdown",g,y),K(a,"pointermove",p,y),K(a,["pointerup","pointerleave"],h,y)];return()=>v.forEach(w=>w())}function z6e(){const{activeElement:e,body:t}=document;if(!e||e===t)return!1;switch(e.tagName){case"INPUT":case"TEXTAREA":return!0}return e.hasAttribute("contenteditable")}function L6e({keyCode:e,metaKey:t,ctrlKey:n,altKey:i}){return t||n||i?!1:e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function $6e(e,t={}){const{document:n=un}=t;n&&K(n,"keydown",r=>{!z6e()&&L6e(r)&&e(r)},{passive:!0})}function H6e(e,t=null){const n=l.getCurrentInstance();let i=()=>{};const r=l.customRef((a,o)=>(i=o,{get(){var s,u;return a(),(u=(s=n==null?void 0:n.proxy)==null?void 0:s.$refs[e])!=null?u:t},set(){}}));return At(i),l.onUpdated(i),r}function mv(){const e=l.ref(!1),t=l.getCurrentInstance();return t&&l.onMounted(()=>{e.value=!0},t),e}function Le(e){const t=mv();return l.computed(()=>(t.value,!!e()))}function Vo(e,t,n={}){const{window:i=me,...r}=n;let a;const o=Le(()=>i&&"MutationObserver"in i),s=()=>{a&&(a.disconnect(),a=void 0)},u=l.computed(()=>{const g=B(e),p=(Array.isArray(g)?g:[g]).map(Ie).filter(wd);return new Set(p)}),c=l.watch(()=>u.value,g=>{s(),o.value&&g.size&&(a=new MutationObserver(t),g.forEach(p=>a.observe(p,r)))},{immediate:!0,flush:"post"}),f=()=>a==null?void 0:a.takeRecords(),h=()=>{c(),s()};return Oe(h),{isSupported:o,stop:h,takeRecords:f}}function pv(e={}){var t;const{window:n=me,deep:i=!0,triggerOnRemoval:r=!1}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,o=()=>{var c;let f=a==null?void 0:a.activeElement;if(i)for(;f!=null&&f.shadowRoot;)f=(c=f==null?void 0:f.shadowRoot)==null?void 0:c.activeElement;return f},s=l.ref(),u=()=>{s.value=o()};return n&&(K(n,"blur",c=>{c.relatedTarget===null&&u()},!0),K(n,"focus",u,!0)),r&&Vo(a,c=>{c.filter(f=>f.removedNodes.length).map(f=>Array.from(f.removedNodes)).flat().forEach(f=>{f===s.value&&u()})},{childList:!0,subtree:!0}),u(),s}function Ra(e,t={}){const{immediate:n=!0,fpsLimit:i=void 0,window:r=me}=t,a=l.ref(!1),o=i?1e3/i:null;let s=0,u=null;function c(g){if(!a.value||!r)return;s||(s=g);const p=g-s;if(o&&p<o){u=r.requestAnimationFrame(c);return}s=g,e({delta:p,timestamp:g}),u=r.requestAnimationFrame(c)}function f(){!a.value&&r&&(a.value=!0,s=0,u=r.requestAnimationFrame(c))}function h(){a.value=!1,u!=null&&r&&(r.cancelAnimationFrame(u),u=null)}return n&&f(),Oe(h),{isActive:l.readonly(a),pause:h,resume:f}}function R6e(e,t,n){let i,r;ol(n)?(i=n,r=tv(n,["window","immediate","commitStyles","persist","onReady","onError"])):(i={duration:n},r=n);const{window:a=me,immediate:o=!0,commitStyles:s,persist:u,playbackRate:c=1,onReady:f,onError:h=q=>{console.error(q)}}=i,g=Le(()=>a&&HTMLElement&&"animate"in HTMLElement.prototype),p=l.shallowRef(void 0),y=l.shallowReactive({startTime:null,currentTime:null,timeline:null,playbackRate:c,pending:!1,playState:o?"idle":"paused",replaceState:"active"}),v=l.computed(()=>y.pending),k=l.computed(()=>y.playState),w=l.computed(()=>y.replaceState),M=l.computed({get(){return y.startTime},set(q){y.startTime=q,p.value&&(p.value.startTime=q)}}),x=l.computed({get(){return y.currentTime},set(q){y.currentTime=q,p.value&&(p.value.currentTime=q,re())}}),S=l.computed({get(){return y.timeline},set(q){y.timeline=q,p.value&&(p.value.timeline=q)}}),E=l.computed({get(){return y.playbackRate},set(q){y.playbackRate=q,p.value&&(p.value.playbackRate=q)}}),I=()=>{if(p.value)try{p.value.play(),re()}catch(q){ne(),h(q)}else z()},A=()=>{var q;try{(q=p.value)==null||q.pause(),ne()}catch(Z){h(Z)}},W=()=>{var q;p.value||z();try{(q=p.value)==null||q.reverse(),re()}catch(Z){ne(),h(Z)}},$=()=>{var q;try{(q=p.value)==null||q.finish(),ne()}catch(Z){h(Z)}},D=()=>{var q;try{(q=p.value)==null||q.cancel(),ne()}catch(Z){h(Z)}};l.watch(()=>Ie(e),q=>{q&&z()}),l.watch(()=>t,q=>{p.value&&z(),!Ie(e)&&p.value&&(p.value.effect=new KeyframeEffect(Ie(e),B(q),r))},{deep:!0}),At(()=>z(!0),!1),Oe(D);function z(q){const Z=Ie(e);!g.value||!Z||(p.value||(p.value=Z.animate(B(t),r)),u&&p.value.persist(),c!==1&&(p.value.playbackRate=c),q&&!o?p.value.pause():re(),f==null||f(p.value))}K(p,["cancel","finish","remove"],ne),K(p,"finish",()=>{var q;s&&((q=p.value)==null||q.commitStyles())});const{resume:H,pause:X}=Ra(()=>{p.value&&(y.pending=p.value.pending,y.playState=p.value.playState,y.replaceState=p.value.replaceState,y.startTime=p.value.startTime,y.currentTime=p.value.currentTime,y.timeline=p.value.timeline,y.playbackRate=p.value.playbackRate)},{immediate:!1});function re(){g.value&&H()}function ne(){g.value&&a&&a.requestAnimationFrame(X)}return{isSupported:g,animate:p,play:I,pause:A,reverse:W,finish:$,cancel:D,pending:v,playState:k,replaceState:w,startTime:M,currentTime:x,timeline:S,playbackRate:E}}function B6e(e,t){const{interrupt:n=!0,onError:i=Ve,onFinished:r=Ve,signal:a}=t||{},o={aborted:"aborted",fulfilled:"fulfilled",pending:"pending",rejected:"rejected"},s=Array.from(Array.from({length:e.length}),()=>({state:o.pending,data:null})),u=l.reactive(s),c=l.ref(-1);if(!e||e.length===0)return r(),{activeIndex:c,result:u};function f(h,g){c.value++,u[c.value].data=g,u[c.value].state=h}return e.reduce((h,g)=>h.then(p=>{var y;if(a!=null&&a.aborted){f(o.aborted,new Error("aborted"));return}if(((y=u[c.value])==null?void 0:y.state)===o.rejected&&n){r();return}const v=g(p).then(k=>(f(o.fulfilled,k),c.value===e.length-1&&r(),k));return a?Promise.race([v,V6e(a)]):v}).catch(p=>a!=null&&a.aborted?(f(o.aborted,p),p):(f(o.rejected,p),i(),p)),Promise.resolve()),{activeIndex:c,result:u}}function V6e(e){return new Promise((t,n)=>{const i=new Error("aborted");e.aborted?n(i):e.addEventListener("abort",()=>n(i),{once:!0})})}function gv(e,t,n){const{immediate:i=!0,delay:r=0,onError:a=Ve,onSuccess:o=Ve,resetOnExecute:s=!0,shallow:u=!0,throwError:c}=n??{},f=u?l.shallowRef(t):l.ref(t),h=l.ref(!1),g=l.ref(!1),p=l.shallowRef(void 0);async function y(w=0,...M){s&&(f.value=t),p.value=void 0,h.value=!1,g.value=!0,w>0&&await ul(w);const x=typeof e=="function"?e(...M):e;try{const S=await x;f.value=S,h.value=!0,o(S)}catch(S){if(p.value=S,a(S),c)throw S}finally{g.value=!1}return f.value}i&&y(r);const v={state:f,isReady:h,isLoading:g,error:p,execute:y};function k(){return new Promise((w,M)=>{cl(g).toBe(!1).then(()=>w(v)).catch(M)})}return{...v,then(w,M){return k().then(w,M)}}}const fl={array:e=>JSON.stringify(e),object:e=>JSON.stringify(e),set:e=>JSON.stringify(Array.from(e)),map:e=>JSON.stringify(Object.fromEntries(e)),null:()=>""};function F6e(e){return e?e instanceof Map?fl.map:e instanceof Set?fl.set:Array.isArray(e)?fl.array:fl.object:fl.null}function U6e(e,t){const n=l.ref(""),i=l.ref();function r(){if(Et)return i.value=new Promise((a,o)=>{try{const s=B(e);if(s==null)a("");else if(typeof s=="string")a(f1(new Blob([s],{type:"text/plain"})));else if(s instanceof Blob)a(f1(s));else if(s instanceof ArrayBuffer)a(window.btoa(String.fromCharCode(...new Uint8Array(s))));else if(s instanceof HTMLCanvasElement)a(s.toDataURL(t==null?void 0:t.type,t==null?void 0:t.quality));else if(s instanceof HTMLImageElement){const u=s.cloneNode(!1);u.crossOrigin="Anonymous",Y6e(u).then(()=>{const c=document.createElement("canvas"),f=c.getContext("2d");c.width=u.width,c.height=u.height,f.drawImage(u,0,0,c.width,c.height),a(c.toDataURL(t==null?void 0:t.type,t==null?void 0:t.quality))}).catch(o)}else if(typeof s=="object"){const c=((t==null?void 0:t.serializer)||F6e(s))(s);return a(f1(new Blob([c],{type:"application/json"})))}else o(new Error("target is unsupported types"))}catch(s){o(s)}}),i.value.then(a=>n.value=a),i.value}return l.isRef(e)||typeof e=="function"?l.watch(e,r,{immediate:!0}):r(),{base64:n,promise:i,execute:r}}function Y6e(e){return new Promise((t,n)=>{e.complete?t():(e.onload=()=>{t()},e.onerror=n)})}function f1(e){return new Promise((t,n)=>{const i=new FileReader;i.onload=r=>{t(r.target.result)},i.onerror=n,i.readAsDataURL(e)})}function X6e(e={}){const{navigator:t=kn}=e,n=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],i=Le(()=>t&&"getBattery"in t&&typeof t.getBattery=="function"),r=l.ref(!1),a=l.ref(0),o=l.ref(0),s=l.ref(1);let u;function c(){r.value=this.charging,a.value=this.chargingTime||0,o.value=this.dischargingTime||0,s.value=this.level}return i.value&&t.getBattery().then(f=>{u=f,c.call(u),K(u,n,c,{passive:!0})}),{isSupported:i,charging:r,chargingTime:a,dischargingTime:o,level:s}}function q6e(e){let{acceptAllDevices:t=!1}=e||{};const{filters:n=void 0,optionalServices:i=void 0,navigator:r=kn}=e||{},a=Le(()=>r&&"bluetooth"in r),o=l.shallowRef(void 0),s=l.shallowRef(null);l.watch(o,()=>{h()});async function u(){if(a.value){s.value=null,n&&n.length>0&&(t=!1);try{o.value=await(r==null?void 0:r.bluetooth.requestDevice({acceptAllDevices:t,filters:n,optionalServices:i}))}catch(g){s.value=g}}}const c=l.ref(),f=l.computed(()=>{var g;return((g=c.value)==null?void 0:g.connected)||!1});async function h(){if(s.value=null,o.value&&o.value.gatt){o.value.addEventListener("gattserverdisconnected",()=>{});try{c.value=await o.value.gatt.connect()}catch(g){s.value=g}}}return At(()=>{var g;o.value&&((g=o.value.gatt)==null||g.connect())}),Oe(()=>{var g;o.value&&((g=o.value.gatt)==null||g.disconnect())}),{isSupported:a,isConnected:f,device:o,requestDevice:u,server:c,error:s}}function Mn(e,t={}){const{window:n=me}=t,i=Le(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const a=l.ref(!1),o=c=>{a.value=c.matches},s=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",o):r.removeListener(o))},u=l.watchEffect(()=>{i.value&&(s(),r=n.matchMedia(B(e)),"addEventListener"in r?r.addEventListener("change",o):r.addListener(o),a.value=r.matches)});return Oe(()=>{u(),s(),r=void 0}),a}const G6e={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},K6e={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},yv={xs:0,sm:600,md:960,lg:1264,xl:1904},Q6e={xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560},J6e=yv,Z6e={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},eke={xs:0,sm:600,md:1024,lg:1440,xl:1920},tke={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},nke={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},ike={sm:576,md:768,lg:992,xl:1200};function rke(e,t={}){function n(f,h){let g=B(e[B(f)]);return h!=null&&(g=Zw(g,h)),typeof g=="number"&&(g=`${g}px`),g}const{window:i=me,strategy:r="min-width"}=t;function a(f){return i?i.matchMedia(f).matches:!1}const o=f=>Mn(()=>`(min-width: ${n(f)})`,t),s=f=>Mn(()=>`(max-width: ${n(f)})`,t),u=Object.keys(e).reduce((f,h)=>(Object.defineProperty(f,h,{get:()=>r==="min-width"?o(h):s(h),enumerable:!0,configurable:!0}),f),{});function c(){const f=Object.keys(e).map(h=>[h,o(h)]);return l.computed(()=>f.filter(([,h])=>h.value).map(([h])=>h))}return Object.assign(u,{greaterOrEqual:o,smallerOrEqual:s,greater(f){return Mn(()=>`(min-width: ${n(f,.1)})`,t)},smaller(f){return Mn(()=>`(max-width: ${n(f,-.1)})`,t)},between(f,h){return Mn(()=>`(min-width: ${n(f)}) and (max-width: ${n(h,-.1)})`,t)},isGreater(f){return a(`(min-width: ${n(f,.1)})`)},isGreaterOrEqual(f){return a(`(min-width: ${n(f)})`)},isSmaller(f){return a(`(max-width: ${n(f,-.1)})`)},isSmallerOrEqual(f){return a(`(max-width: ${n(f)})`)},isInBetween(f,h){return a(`(min-width: ${n(f)}) and (max-width: ${n(h,-.1)})`)},current:c,active(){const f=c();return l.computed(()=>f.value.length===0?"":f.value.at(-1))}})}function ake(e){const{name:t,window:n=me}=e,i=Le(()=>n&&"BroadcastChannel"in n),r=l.ref(!1),a=l.ref(),o=l.ref(),s=l.shallowRef(null),u=f=>{a.value&&a.value.postMessage(f)},c=()=>{a.value&&a.value.close(),r.value=!0};return i.value&&At(()=>{s.value=null,a.value=new BroadcastChannel(t),a.value.addEventListener("message",f=>{o.value=f.data},{passive:!0}),a.value.addEventListener("messageerror",f=>{s.value=f},{passive:!0}),a.value.addEventListener("close",()=>{r.value=!0})}),Oe(()=>{c()}),{isSupported:i,channel:a,data:o,post:u,close:c,error:s,isClosed:r}}const bv=["hash","host","hostname","href","pathname","port","protocol","search"];function oke(e={}){const{window:t=me}=e,n=Object.fromEntries(bv.map(a=>[a,l.ref()]));for(const[a,o]of nv(n))l.watch(o,s=>{!(t!=null&&t.location)||t.location[a]===s||(t.location[a]=s)});const i=a=>{var o;const{state:s,length:u}=(t==null?void 0:t.history)||{},{origin:c}=(t==null?void 0:t.location)||{};for(const f of bv)n[f].value=(o=t==null?void 0:t.location)==null?void 0:o[f];return l.reactive({trigger:a,state:s,length:u,origin:c,...n})},r=l.ref(i("load"));return t&&(K(t,"popstate",()=>r.value=i("popstate"),{passive:!0}),K(t,"hashchange",()=>r.value=i("hashchange"),{passive:!0})),r}function ske(e,t=(i,r)=>i===r,n){const i=l.ref(e.value);return l.watch(()=>e.value,r=>{t(r,i.value)||(i.value=r)},n),i}function Sd(e,t={}){const{controls:n=!1,navigator:i=kn}=t,r=Le(()=>i&&"permissions"in i),a=l.shallowRef(),o=typeof e=="string"?{name:e}:e,s=l.shallowRef(),u=()=>{var f,h;s.value=(h=(f=a.value)==null?void 0:f.state)!=null?h:"prompt"};K(a,"change",u);const c=Jw(async()=>{if(r.value){if(!a.value)try{a.value=await i.permissions.query(o)}catch{a.value=void 0}finally{u()}if(n)return l.toRaw(a.value)}});return c(),n?{state:s,isSupported:r,query:c}:s}function lke(e={}){const{navigator:t=kn,read:n=!1,source:i,copiedDuring:r=1500,legacy:a=!1}=e,o=Le(()=>t&&"clipboard"in t),s=Sd("clipboard-read"),u=Sd("clipboard-write"),c=l.computed(()=>o.value||a),f=l.ref(""),h=l.ref(!1),g=Ro(()=>h.value=!1,r);function p(){o.value&&w(s.value)?t.clipboard.readText().then(M=>{f.value=M}):f.value=k()}c.value&&n&&K(["copy","cut"],p);async function y(M=B(i)){c.value&&M!=null&&(o.value&&w(u.value)?await t.clipboard.writeText(M):v(M),f.value=M,h.value=!0,g.start())}function v(M){const x=document.createElement("textarea");x.value=M??"",x.style.position="absolute",x.style.opacity="0",document.body.appendChild(x),x.select(),document.execCommand("copy"),x.remove()}function k(){var M,x,S;return(S=(x=(M=document==null?void 0:document.getSelection)==null?void 0:M.call(document))==null?void 0:x.toString())!=null?S:""}function w(M){return M==="granted"||M==="prompt"}return{isSupported:c,text:f,copied:h,copy:y}}function uke(e={}){const{navigator:t=kn,read:n=!1,source:i,copiedDuring:r=1500}=e,a=Le(()=>t&&"clipboard"in t),o=l.ref([]),s=l.ref(!1),u=Ro(()=>s.value=!1,r);function c(){a.value&&t.clipboard.read().then(h=>{o.value=h})}a.value&&n&&K(["copy","cut"],c);async function f(h=B(i)){a.value&&h!=null&&(await t.clipboard.write(h),o.value=h,s.value=!0,u.start())}return{isSupported:a,content:o,copied:s,copy:f}}function hl(e){return JSON.parse(JSON.stringify(e))}function dke(e,t={}){const n=l.ref({}),{manual:i,clone:r=hl,deep:a=!0,immediate:o=!0}=t;function s(){n.value=r(B(e))}return!i&&(l.isRef(e)||typeof e=="function")?l.watch(e,s,{...t,deep:a,immediate:o}):s(),{cloned:n,sync:s}}const _d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Td="__vueuse_ssr_handlers__",wv=cke();function cke(){return Td in _d||(_d[Td]=_d[Td]||{}),_d[Td]}function Pd(e,t){return wv[e]||t}function fke(e,t){wv[e]=t}function vv(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const h1={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},m1="vueuse-storage";function Ed(e,t,n,i={}){var r;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:f,window:h=me,eventFilter:g,onError:p=D=>{console.error(D)},initOnMounted:y}=i,v=(f?l.shallowRef:l.ref)(typeof t=="function"?t():t);if(!n)try{n=Pd("getDefaultStorage",()=>{var D;return(D=me)==null?void 0:D.localStorage})()}catch(D){p(D)}if(!n)return v;const k=B(t),w=vv(k),M=(r=i.serializer)!=null?r:h1[w],{pause:x,resume:S}=Ho(v,()=>I(v.value),{flush:a,deep:o,eventFilter:g});h&&s&&At(()=>{n instanceof Storage?K(h,"storage",W):K(h,m1,$),y&&W()}),y||W();function E(D,z){if(h){const H={key:e,oldValue:D,newValue:z,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(m1,{detail:H}))}}function I(D){try{const z=n.getItem(e);if(D==null)E(z,null),n.removeItem(e);else{const H=M.write(D);z!==H&&(n.setItem(e,H),E(z,H))}}catch(z){p(z)}}function A(D){const z=D?D.newValue:n.getItem(e);if(z==null)return u&&k!=null&&n.setItem(e,M.write(k)),k;if(!D&&c){const H=M.read(z);return typeof c=="function"?c(H,k):w==="object"&&!Array.isArray(H)?{...k,...H}:H}else return typeof z!="string"?z:M.read(z)}function W(D){if(!(D&&D.storageArea!==n)){if(D&&D.key==null){v.value=k;return}if(!(D&&D.key!==e)){x();try{(D==null?void 0:D.newValue)!==M.write(v.value)&&(v.value=A(D))}catch(z){p(z)}finally{D?l.nextTick(S):S()}}}}function $(D){W(D.detail)}return v}function p1(e){return Mn("(prefers-color-scheme: dark)",e)}const hke="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function kv(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:r=me,storage:a,storageKey:o="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:u,emitAuto:c,disableTransition:f=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},g=p1({window:r}),p=l.computed(()=>g.value?"dark":"light"),y=u||(o==null?wt(i):Ed(o,i,a,{window:r,listenToStorageChanges:s})),v=l.computed(()=>y.value==="auto"?p.value:y.value),k=Pd("updateHTMLAttrs",(S,E,I)=>{const A=typeof S=="string"?r==null?void 0:r.document.querySelector(S):Ie(S);if(!A)return;const W=new Set,$=new Set;let D=null;if(E==="class"){const H=I.split(/\s/g);Object.values(h).flatMap(X=>(X||"").split(/\s/g)).filter(Boolean).forEach(X=>{H.includes(X)?W.add(X):$.add(X)})}else D={key:E,value:I};if(W.size===0&&$.size===0&&D===null)return;let z;f&&(z=r.document.createElement("style"),z.appendChild(document.createTextNode(hke)),r.document.head.appendChild(z));for(const H of W)A.classList.add(H);for(const H of $)A.classList.remove(H);D&&A.setAttribute(D.key,D.value),f&&(r.getComputedStyle(z).opacity,document.head.removeChild(z))});function w(S){var E;k(t,n,(E=h[S])!=null?E:S)}function M(S){e.onChanged?e.onChanged(S,w):w(S)}l.watch(v,M,{flush:"post",immediate:!0}),At(()=>M(v.value));const x=l.computed({get(){return c?y.value:v.value},set(S){y.value=S}});try{return Object.assign(x,{store:y,system:p,state:v})}catch{return x}}function mke(e=l.ref(!1)){const t=ln(),n=ln(),i=ln();let r=Ve;const a=u=>(i.trigger(u),e.value=!0,new Promise(c=>{r=c})),o=u=>{e.value=!1,t.trigger(u),r({data:u,isCanceled:!1})},s=u=>{e.value=!1,n.trigger(u),r({data:u,isCanceled:!0})};return{isRevealed:l.computed(()=>e.value),reveal:a,confirm:o,cancel:s,onReveal:i.on,onConfirm:t.on,onCancel:n.on}}function ml(e,t,n={}){const{window:i=me,initialValue:r,observe:a=!1}=n,o=l.ref(r),s=l.computed(()=>{var c;return Ie(t)||((c=i==null?void 0:i.document)==null?void 0:c.documentElement)});function u(){var c;const f=B(e),h=B(s);if(h&&i&&f){const g=(c=i.getComputedStyle(h).getPropertyValue(f))==null?void 0:c.trim();o.value=g||r}}return a&&Vo(s,u,{attributeFilter:["style","class"],window:i}),l.watch([s,()=>B(e)],(c,f)=>{f[0]&&f[1]&&f[0].style.removeProperty(f[1]),u()},{immediate:!0}),l.watch(o,c=>{var f;const h=B(e);(f=s.value)!=null&&f.style&&h&&(c==null?s.value.style.removeProperty(h):s.value.style.setProperty(h,c))}),o}function Mv(e){const t=l.getCurrentInstance(),n=e1(()=>null,()=>e?Ie(e):t.proxy.$el);return l.onUpdated(n.trigger),l.onMounted(n.trigger),n}function pke(e,t){const n=l.shallowRef(c()),i=wt(e),r=l.computed({get(){var f;const h=i.value;let g=t!=null&&t.getIndexOf?t.getIndexOf(n.value,h):h.indexOf(n.value);return g<0&&(g=(f=t==null?void 0:t.fallbackIndex)!=null?f:0),g},set(f){a(f)}});function a(f){const h=i.value,g=h.length,p=(f%g+g)%g,y=h[p];return n.value=y,y}function o(f=1){return a(r.value+f)}function s(f=1){return o(f)}function u(f=1){return o(-f)}function c(){var f,h;return(h=B((f=t==null?void 0:t.initialValue)!=null?f:B(e)[0]))!=null?h:void 0}return l.watch(i,()=>a(r.value)),{state:n,index:r,next:s,prev:u,go:a}}function gke(e={}){const{valueDark:t="dark",valueLight:n="",window:i=me}=e,r=kv({...e,onChanged:(s,u)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,s==="dark",u,s):u(s)},modes:{dark:t,light:n}}),a=l.computed(()=>r.system?r.system.value:p1({window:i}).value?"dark":"light");return l.computed({get(){return r.value==="dark"},set(s){const u=s?"dark":"light";a.value===u?r.value="auto":r.value=u}})}function Cv(e){return e}function yke(e,t){return e.value=t}function bke(e){return e?typeof e=="function"?e:hl:Cv}function wke(e){return e?typeof e=="function"?e:hl:Cv}function xv(e,t={}){const{clone:n=!1,dump:i=bke(n),parse:r=wke(n),setSource:a=yke}=t;function o(){return l.markRaw({snapshot:i(e.value),timestamp:La()})}const s=l.ref(o()),u=l.ref([]),c=l.ref([]),f=x=>{a(e,r(x.snapshot)),s.value=x},h=()=>{u.value.unshift(s.value),s.value=o(),t.capacity&&u.value.length>t.capacity&&u.value.splice(t.capacity,Number.POSITIVE_INFINITY),c.value.length&&c.value.splice(0,c.value.length)},g=()=>{u.value.splice(0,u.value.length),c.value.splice(0,c.value.length)},p=()=>{const x=u.value.shift();x&&(c.value.unshift(s.value),f(x))},y=()=>{const x=c.value.shift();x&&(u.value.unshift(s.value),f(x))},v=()=>{f(s.value)},k=l.computed(()=>[s.value,...u.value]),w=l.computed(()=>u.value.length>0),M=l.computed(()=>c.value.length>0);return{source:e,undoStack:u,redoStack:c,last:s,history:k,canUndo:w,canRedo:M,clear:g,commit:h,reset:v,undo:p,redo:y}}function g1(e,t={}){const{deep:n=!1,flush:i="pre",eventFilter:r}=t,{eventFilter:a,pause:o,resume:s,isActive:u}=i1(r),{ignoreUpdates:c,ignorePrevAsyncUpdates:f,stop:h}=Bo(e,k,{deep:n,flush:i,eventFilter:a});function g(S,E){f(),c(()=>{S.value=E})}const p=xv(e,{...t,clone:t.clone||n,setSource:g}),{clear:y,commit:v}=p;function k(){f(),v()}function w(S){s(),S&&k()}function M(S){let E=!1;const I=()=>E=!0;c(()=>{S(I)}),E||k()}function x(){h(),y()}return{...p,isTracking:u,pause:o,resume:w,commit:k,batch:M,dispose:x}}function vke(e,t={}){const n=t.debounce?Md(t.debounce):void 0;return{...g1(e,{...t,eventFilter:n})}}function kke(e={}){const{window:t=me,eventFilter:n=sl}=e,i=l.ref({x:null,y:null,z:null}),r=l.ref({alpha:null,beta:null,gamma:null}),a=l.ref(0),o=l.ref({x:null,y:null,z:null});if(t){const s=$a(n,u=>{i.value=u.acceleration,o.value=u.accelerationIncludingGravity,r.value=u.rotationRate,a.value=u.interval});K(t,"devicemotion",s)}return{acceleration:i,accelerationIncludingGravity:o,rotationRate:r,interval:a}}function Sv(e={}){const{window:t=me}=e,n=Le(()=>t&&"DeviceOrientationEvent"in t),i=l.ref(!1),r=l.ref(null),a=l.ref(null),o=l.ref(null);return t&&n.value&&K(t,"deviceorientation",s=>{i.value=s.absolute,r.value=s.alpha,a.value=s.beta,o.value=s.gamma}),{isSupported:n,isAbsolute:i,alpha:r,beta:a,gamma:o}}function Mke(e={}){const{window:t=me}=e,n=l.ref(1);if(t){let i=function(){n.value=t.devicePixelRatio,r(),a=t.matchMedia(`(resolution: ${n.value}dppx)`),a.addEventListener("change",i,{once:!0})},r=function(){a==null||a.removeEventListener("change",i)},a;i(),Oe(r)}return{pixelRatio:n}}function Cke(e={}){const{navigator:t=kn,requestPermissions:n=!1,constraints:i={audio:!0,video:!0},onUpdated:r}=e,a=l.ref([]),o=l.computed(()=>a.value.filter(y=>y.kind==="videoinput")),s=l.computed(()=>a.value.filter(y=>y.kind==="audioinput")),u=l.computed(()=>a.value.filter(y=>y.kind==="audiooutput")),c=Le(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),f=l.ref(!1);let h;async function g(){c.value&&(a.value=await t.mediaDevices.enumerateDevices(),r==null||r(a.value),h&&(h.getTracks().forEach(y=>y.stop()),h=null))}async function p(){if(!c.value)return!1;if(f.value)return!0;const{state:y,query:v}=Sd("camera",{controls:!0});return await v(),y.value!=="granted"&&(h=await t.mediaDevices.getUserMedia(i),g()),f.value=!0,f.value}return c.value&&(n&&p(),K(t.mediaDevices,"devicechange",g),g()),{devices:a,ensurePermissions:p,permissionGranted:f,videoInputs:o,audioInputs:s,audioOutputs:u,isSupported:c}}function xke(e={}){var t;const n=l.ref((t=e.enabled)!=null?t:!1),i=e.video,r=e.audio,{navigator:a=kn}=e,o=Le(()=>{var p;return(p=a==null?void 0:a.mediaDevices)==null?void 0:p.getDisplayMedia}),s={audio:r,video:i},u=l.shallowRef();async function c(){var p;if(!(!o.value||u.value))return u.value=await a.mediaDevices.getDisplayMedia(s),(p=u.value)==null||p.getTracks().forEach(y=>y.addEventListener("ended",h)),u.value}async function f(){var p;(p=u.value)==null||p.getTracks().forEach(y=>y.stop()),u.value=void 0}function h(){f(),n.value=!1}async function g(){return await c(),u.value&&(n.value=!0),u.value}return l.watch(n,p=>{p?c():f()},{immediate:!0}),{isSupported:o,stream:u,start:g,stop:h,enabled:n}}function _v(e={}){const{document:t=un}=e;if(!t)return l.ref("visible");const n=l.ref(t.visibilityState);return K(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Ske(e,t={}){var n,i;const{pointerTypes:r,preventDefault:a,stopPropagation:o,exact:s,onMove:u,onEnd:c,onStart:f,initialValue:h,axis:g="both",draggingElement:p=me,containerElement:y,handle:v=e,buttons:k=[0]}=t,w=l.ref((n=B(h))!=null?n:{x:0,y:0}),M=l.ref(),x=W=>r?r.includes(W.pointerType):!0,S=W=>{B(a)&&W.preventDefault(),B(o)&&W.stopPropagation()},E=W=>{var $;if(!B(k).includes(W.button)||B(t.disabled)||!x(W)||B(s)&&W.target!==B(e))return;const D=B(y),z=($=D==null?void 0:D.getBoundingClientRect)==null?void 0:$.call(D),H=B(e).getBoundingClientRect(),X={x:W.clientX-(D?H.left-z.left+D.scrollLeft:H.left),y:W.clientY-(D?H.top-z.top+D.scrollTop:H.top)};(f==null?void 0:f(X,W))!==!1&&(M.value=X,S(W))},I=W=>{if(B(t.disabled)||!x(W)||!M.value)return;const $=B(y),D=B(e).getBoundingClientRect();let{x:z,y:H}=w.value;(g==="x"||g==="both")&&(z=W.clientX-M.value.x,$&&(z=Math.min(Math.max(0,z),$.scrollWidth-D.width))),(g==="y"||g==="both")&&(H=W.clientY-M.value.y,$&&(H=Math.min(Math.max(0,H),$.scrollHeight-D.height))),w.value={x:z,y:H},u==null||u(w.value,W),S(W)},A=W=>{B(t.disabled)||!x(W)||M.value&&(M.value=void 0,c==null||c(w.value,W),S(W))};if(Et){const W={capture:(i=t.capture)!=null?i:!0};K(v,"pointerdown",E,W),K(p,"pointermove",I,W),K(p,"pointerup",A,W)}return{...d1(w),position:w,isDragging:l.computed(()=>!!M.value),style:l.computed(()=>`left:${w.value.x}px;top:${w.value.y}px;`)}}function _ke(e,t={}){const n=l.ref(!1),i=l.shallowRef(null);let r=0,a=!0;if(Et){const o=typeof t=="function"?{onDrop:t}:t,s=u=>{var c,f;const h=Array.from((f=(c=u.dataTransfer)==null?void 0:c.files)!=null?f:[]);return i.value=h.length===0?null:h};K(e,"dragenter",u=>{var c,f;const h=Array.from(((c=u==null?void 0:u.dataTransfer)==null?void 0:c.items)||[]).map(p=>p.kind==="file"?p.type:null).filter(wd);if(o.dataTypes&&u.dataTransfer){const p=l.unref(o.dataTypes);if(a=typeof p=="function"?p(h):p?p.some(y=>h.includes(y)):!0,!a)return}u.preventDefault(),r+=1,n.value=!0;const g=s(u);(f=o.onEnter)==null||f.call(o,g,u)}),K(e,"dragover",u=>{var c;if(!a)return;u.preventDefault();const f=s(u);(c=o.onOver)==null||c.call(o,f,u)}),K(e,"dragleave",u=>{var c;if(!a)return;u.preventDefault(),r-=1,r===0&&(n.value=!1);const f=s(u);(c=o.onLeave)==null||c.call(o,f,u)}),K(e,"drop",u=>{var c;u.preventDefault(),r=0,n.value=!1;const f=s(u);(c=o.onDrop)==null||c.call(o,f,u)})}return{files:i,isOverDropZone:n}}function Ad(e,t,n={}){const{window:i=me,...r}=n;let a;const o=Le(()=>i&&"ResizeObserver"in i),s=()=>{a&&(a.disconnect(),a=void 0)},u=l.computed(()=>{const h=B(e);return Array.isArray(h)?h.map(g=>Ie(g)):[Ie(h)]}),c=l.watch(u,h=>{if(s(),o.value&&i){a=new ResizeObserver(t);for(const g of h)g&&a.observe(g,r)}},{immediate:!0,flush:"post"}),f=()=>{s(),c()};return Oe(f),{isSupported:o,stop:f}}function Tke(e,t={}){const{reset:n=!0,windowResize:i=!0,windowScroll:r=!0,immediate:a=!0,updateTiming:o="sync"}=t,s=l.ref(0),u=l.ref(0),c=l.ref(0),f=l.ref(0),h=l.ref(0),g=l.ref(0),p=l.ref(0),y=l.ref(0);function v(){const w=Ie(e);if(!w){n&&(s.value=0,u.value=0,c.value=0,f.value=0,h.value=0,g.value=0,p.value=0,y.value=0);return}const M=w.getBoundingClientRect();s.value=M.height,u.value=M.bottom,c.value=M.left,f.value=M.right,h.value=M.top,g.value=M.width,p.value=M.x,y.value=M.y}function k(){o==="sync"?v():o==="next-frame"&&requestAnimationFrame(()=>v())}return Ad(e,k),l.watch(()=>Ie(e),w=>!w&&k()),Vo(e,k,{attributeFilter:["style","class"]}),r&&K("scroll",k,{capture:!0,passive:!0}),i&&K("resize",k,{passive:!0}),At(()=>{a&&k()}),{height:s,bottom:u,left:c,right:f,top:h,width:g,x:p,y,update:k}}function Pke(e){const{x:t,y:n,document:i=un,multiple:r,interval:a="requestAnimationFrame",immediate:o=!0}=e,s=Le(()=>B(r)?i&&"elementsFromPoint"in i:i&&"elementFromPoint"in i),u=l.ref(null),c=()=>{var h,g;u.value=B(r)?(h=i==null?void 0:i.elementsFromPoint(B(t),B(n)))!=null?h:[]:(g=i==null?void 0:i.elementFromPoint(B(t),B(n)))!=null?g:null},f=a==="requestAnimationFrame"?Ra(c,{immediate:o}):Lr(c,a,{immediate:o});return{isSupported:s,element:u,...f}}function Eke(e,t={}){const{delayEnter:n=0,delayLeave:i=0,window:r=me}=t,a=l.ref(!1);let o;const s=u=>{const c=u?n:i;o&&(clearTimeout(o),o=void 0),c?o=setTimeout(()=>a.value=u,c):a.value=u};return r&&(K(e,"mouseenter",()=>s(!0),{passive:!0}),K(e,"mouseleave",()=>s(!1),{passive:!0})),a}function Tv(e,t={width:0,height:0},n={}){const{window:i=me,box:r="content-box"}=n,a=l.computed(()=>{var h,g;return(g=(h=Ie(e))==null?void 0:h.namespaceURI)==null?void 0:g.includes("svg")}),o=l.ref(t.width),s=l.ref(t.height),{stop:u}=Ad(e,([h])=>{const g=r==="border-box"?h.borderBoxSize:r==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(i&&a.value){const p=Ie(e);if(p){const y=p.getBoundingClientRect();o.value=y.width,s.value=y.height}}else if(g){const p=Array.isArray(g)?g:[g];o.value=p.reduce((y,{inlineSize:v})=>y+v,0),s.value=p.reduce((y,{blockSize:v})=>y+v,0)}else o.value=h.contentRect.width,s.value=h.contentRect.height},n);At(()=>{const h=Ie(e);h&&(o.value="offsetWidth"in h?h.offsetWidth:t.width,s.value="offsetHeight"in h?h.offsetHeight:t.height)});const c=l.watch(()=>Ie(e),h=>{o.value=h?t.width:0,s.value=h?t.height:0});function f(){u(),c()}return{width:o,height:s,stop:f}}function Pv(e,t,n={}){const{root:i,rootMargin:r="0px",threshold:a=0,window:o=me,immediate:s=!0}=n,u=Le(()=>o&&"IntersectionObserver"in o),c=l.computed(()=>{const y=B(e);return(Array.isArray(y)?y:[y]).map(Ie).filter(wd)});let f=Ve;const h=l.ref(s),g=u.value?l.watch(()=>[c.value,Ie(i),h.value],([y,v])=>{if(f(),!h.value||!y.length)return;const k=new IntersectionObserver(t,{root:Ie(v),rootMargin:r,threshold:a});y.forEach(w=>w&&k.observe(w)),f=()=>{k.disconnect(),f=Ve}},{immediate:s,flush:"post"}):Ve,p=()=>{f(),g(),h.value=!1};return Oe(p),{isSupported:u,isActive:h,pause(){f(),h.value=!1},resume(){h.value=!0},stop:p}}function Ev(e,t={}){const{window:n=me,scrollTarget:i,threshold:r=0}=t,a=l.ref(!1);return Pv(e,o=>{let s=a.value,u=0;for(const c of o)c.time>=u&&(u=c.time,s=c.isIntersecting);a.value=s},{root:i,window:n,threshold:r}),a}const pl=new Map;function Ake(e){const t=l.getCurrentScope();function n(s){var u;const c=pl.get(e)||new Set;c.add(s),pl.set(e,c);const f=()=>r(s);return(u=t==null?void 0:t.cleanups)==null||u.push(f),f}function i(s){function u(...c){r(u),s(...c)}return n(u)}function r(s){const u=pl.get(e);u&&(u.delete(s),u.size||a())}function a(){pl.delete(e)}function o(s,u){var c;(c=pl.get(e))==null||c.forEach(f=>f(s,u))}return{on:n,once:i,off:r,emit:o,reset:a}}function Dke(e){return e===!0?{}:e}function Nke(e,t=[],n={}){const i=l.ref(null),r=l.ref(null),a=l.ref("CONNECTING"),o=l.ref(null),s=l.shallowRef(null),u=wt(e),c=l.shallowRef(null);let f=!1,h=0;const{withCredentials:g=!1,immediate:p=!0}=n,y=()=>{Et&&o.value&&(o.value.close(),o.value=null,a.value="CLOSED",f=!0)},v=()=>{if(f||typeof u.value>"u")return;const w=new EventSource(u.value,{withCredentials:g});a.value="CONNECTING",o.value=w,w.onopen=()=>{a.value="OPEN",s.value=null},w.onerror=M=>{if(a.value="CLOSED",s.value=M,w.readyState===2&&!f&&n.autoReconnect){w.close();const{retries:x=-1,delay:S=1e3,onFailed:E}=Dke(n.autoReconnect);h+=1,typeof x=="number"&&(x<0||h<x)||typeof x=="function"&&x()?setTimeout(v,S):E==null||E()}},w.onmessage=M=>{i.value=null,r.value=M.data,c.value=M.lastEventId};for(const M of t)K(w,M,x=>{i.value=M,r.value=x.data||null})},k=()=>{Et&&(y(),f=!1,h=0,v())};return p&&l.watch(u,k,{immediate:!0}),Oe(y),{eventSource:o,event:i,data:r,status:a,error:s,open:k,close:y,lastEventId:c}}function jke(e={}){const{initialValue:t=""}=e,n=Le(()=>typeof window<"u"&&"EyeDropper"in window),i=l.ref(t);async function r(a){if(!n.value)return;const s=await new window.EyeDropper().open(a);return i.value=s.sRGBHex,s}return{isSupported:n,sRGBHex:i,open:r}}function Ike(e=null,t={}){const{baseUrl:n="",rel:i="icon",document:r=un}=t,a=wt(e),o=s=>{const u=r==null?void 0:r.head.querySelectorAll(`link[rel*="${i}"]`);if(!u||u.length===0){const c=r==null?void 0:r.createElement("link");c&&(c.rel=i,c.href=`${n}${s}`,c.type=`image/${s.split(".").pop()}`,r==null||r.head.append(c));return}u==null||u.forEach(c=>c.href=`${n}${s}`)};return l.watch(a,(s,u)=>{typeof s=="string"&&s!==u&&o(s)},{immediate:!0}),a}const Wke={json:"application/json",text:"text/plain"};function Dd(e){return e&&a1(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const Oke=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function zke(e){return Oke.test(e)}function gl(e){return typeof Headers<"u"&&e instanceof Headers?Object.fromEntries(e.entries()):e}function Fo(e,...t){return e==="overwrite"?async n=>{const i=t[t.length-1];return i?{...n,...await i(n)}:n}:async n=>{for(const i of t)i&&(n={...n,...await i(n)});return n}}function Lke(e={}){const t=e.combination||"chain",n=e.options||{},i=e.fetchOptions||{};function r(a,...o){const s=l.computed(()=>{const f=B(e.baseUrl),h=B(a);return f&&!zke(h)?$ke(f,h):h});let u=n,c=i;return o.length>0&&(Dd(o[0])?u={...u,...o[0],beforeFetch:Fo(t,n.beforeFetch,o[0].beforeFetch),afterFetch:Fo(t,n.afterFetch,o[0].afterFetch),onFetchError:Fo(t,n.onFetchError,o[0].onFetchError)}:c={...c,...o[0],headers:{...gl(c.headers)||{},...gl(o[0].headers)||{}}}),o.length>1&&Dd(o[1])&&(u={...u,...o[1],beforeFetch:Fo(t,n.beforeFetch,o[1].beforeFetch),afterFetch:Fo(t,n.afterFetch,o[1].afterFetch),onFetchError:Fo(t,n.onFetchError,o[1].onFetchError)}),Av(s,c,u)}return r}function Av(e,...t){var n;const i=typeof AbortController=="function";let r={},a={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const o={method:"GET",type:"text",payload:void 0};t.length>0&&(Dd(t[0])?a={...a,...t[0]}:r=t[0]),t.length>1&&Dd(t[1])&&(a={...a,...t[1]});const{fetch:s=(n=me)==null?void 0:n.fetch,initialData:u,timeout:c}=a,f=ln(),h=ln(),g=ln(),p=l.ref(!1),y=l.ref(!1),v=l.ref(!1),k=l.ref(null),w=l.shallowRef(null),M=l.shallowRef(null),x=l.shallowRef(u||null),S=l.computed(()=>i&&y.value);let E,I;const A=()=>{i&&(E==null||E.abort(),E=new AbortController,E.signal.onabort=()=>v.value=!0,r={...r,signal:E.signal})},W=q=>{y.value=q,p.value=!q};c&&(I=Ro(A,c,{immediate:!1}));let $=0;const D=async(q=!1)=>{var Z,ue;A(),W(!0),M.value=null,k.value=null,v.value=!1,$+=1;const Ne=$,it={method:o.method,headers:{}};if(o.payload){const qe=gl(it.headers),rt=B(o.payload);!o.payloadType&&rt&&Object.getPrototypeOf(rt)===Object.prototype&&!(rt instanceof FormData)&&(o.payloadType="json"),o.payloadType&&(qe["Content-Type"]=(Z=Wke[o.payloadType])!=null?Z:o.payloadType),it.body=o.payloadType==="json"?JSON.stringify(rt):rt}let xt=!1;const Kt={url:B(e),options:{...it,...r},cancel:()=>{xt=!0}};if(a.beforeFetch&&Object.assign(Kt,await a.beforeFetch(Kt)),xt||!s)return W(!1),Promise.resolve(null);let Ht=null;return I&&I.start(),s(Kt.url,{...it,...Kt.options,headers:{...gl(it.headers),...gl((ue=Kt.options)==null?void 0:ue.headers)}}).then(async qe=>{if(w.value=qe,k.value=qe.status,Ht=await qe.clone()[o.type](),!qe.ok)throw x.value=u||null,new Error(qe.statusText);return a.afterFetch&&({data:Ht}=await a.afterFetch({data:Ht,response:qe})),x.value=Ht,f.trigger(qe),qe}).catch(async qe=>{let rt=qe.message||qe.name;if(a.onFetchError&&({error:rt,data:Ht}=await a.onFetchError({data:Ht,error:qe,response:w.value})),M.value=rt,a.updateDataOnError&&(x.value=Ht),h.trigger(qe),q)throw qe;return null}).finally(()=>{Ne===$&&W(!1),I&&I.stop(),g.trigger(null)})},z=wt(a.refetch);l.watch([z,wt(e)],([q])=>q&&D(),{deep:!0});const H={isFinished:l.readonly(p),isFetching:l.readonly(y),statusCode:k,response:w,error:M,data:x,canAbort:S,aborted:v,abort:A,execute:D,onFetchResponse:f.on,onFetchError:h.on,onFetchFinally:g.on,get:X("GET"),put:X("PUT"),post:X("POST"),delete:X("DELETE"),patch:X("PATCH"),head:X("HEAD"),options:X("OPTIONS"),json:ne("json"),text:ne("text"),blob:ne("blob"),arrayBuffer:ne("arrayBuffer"),formData:ne("formData")};function X(q){return(Z,ue)=>{if(!y.value)return o.method=q,o.payload=Z,o.payloadType=ue,l.isRef(o.payload)&&l.watch([z,wt(o.payload)],([Ne])=>Ne&&D(),{deep:!0}),{...H,then(Ne,it){return re().then(Ne,it)}}}}function re(){return new Promise((q,Z)=>{cl(p).toBe(!0).then(()=>q(H)).catch(ue=>Z(ue))})}function ne(q){return()=>{if(!y.value)return o.type=q,{...H,then(Z,ue){return re().then(Z,ue)}}}}return a.immediate&&Promise.resolve().then(()=>D()),{...H,then(q,Z){return re().then(q,Z)}}}function $ke(e,t){return!e.endsWith("/")&&!t.startsWith("/")?`${e}/${t}`:`${e}${t}`}const Hke={multiple:!0,accept:"*",reset:!1,directory:!1};function Rke(e={}){const{document:t=un}=e,n=l.ref(null),{on:i,trigger:r}=ln();let a;t&&(a=t.createElement("input"),a.type="file",a.onchange=u=>{const c=u.target;n.value=c.files,r(n.value)});const o=()=>{n.value=null,a&&a.value&&(a.value="",r(null))},s=u=>{if(!a)return;const c={...Hke,...e,...u};a.multiple=c.multiple,a.accept=c.accept,a.webkitdirectory=c.directory,Gw(c,"capture")&&(a.capture=c.capture),c.reset&&o(),a.click()};return{files:l.readonly(n),open:s,reset:o,onChange:i}}function Bke(e={}){const{window:t=me,dataType:n="Text"}=e,i=t,r=Le(()=>i&&"showSaveFilePicker"in i&&"showOpenFilePicker"in i),a=l.ref(),o=l.ref(),s=l.ref(),u=l.computed(()=>{var M,x;return(x=(M=s.value)==null?void 0:M.name)!=null?x:""}),c=l.computed(()=>{var M,x;return(x=(M=s.value)==null?void 0:M.type)!=null?x:""}),f=l.computed(()=>{var M,x;return(x=(M=s.value)==null?void 0:M.size)!=null?x:0}),h=l.computed(()=>{var M,x;return(x=(M=s.value)==null?void 0:M.lastModified)!=null?x:0});async function g(M={}){if(!r.value)return;const[x]=await i.showOpenFilePicker({...B(e),...M});a.value=x,await w()}async function p(M={}){r.value&&(a.value=await i.showSaveFilePicker({...e,...M}),o.value=void 0,await w())}async function y(M={}){if(r.value){if(!a.value)return v(M);if(o.value){const x=await a.value.createWritable();await x.write(o.value),await x.close()}await k()}}async function v(M={}){if(r.value){if(a.value=await i.showSaveFilePicker({...e,...M}),o.value){const x=await a.value.createWritable();await x.write(o.value),await x.close()}await k()}}async function k(){var M;s.value=await((M=a.value)==null?void 0:M.getFile())}async function w(){var M,x;await k();const S=B(n);S==="Text"?o.value=await((M=s.value)==null?void 0:M.text()):S==="ArrayBuffer"?o.value=await((x=s.value)==null?void 0:x.arrayBuffer()):S==="Blob"&&(o.value=s.value)}return l.watch(()=>B(n),w),{isSupported:r,data:o,file:s,fileName:u,fileMIME:c,fileSize:f,fileLastModified:h,open:g,create:p,save:y,saveAs:v,updateData:w}}function Vke(e,t={}){const{initialValue:n=!1,focusVisible:i=!1,preventScroll:r=!1}=t,a=l.ref(!1),o=l.computed(()=>Ie(e));K(o,"focus",u=>{var c,f;(!i||(f=(c=u.target).matches)!=null&&f.call(c,":focus-visible"))&&(a.value=!0)}),K(o,"blur",()=>a.value=!1);const s=l.computed({get:()=>a.value,set(u){var c,f;!u&&a.value?(c=o.value)==null||c.blur():u&&!a.value&&((f=o.value)==null||f.focus({preventScroll:r}))}});return l.watch(o,()=>{s.value=n},{immediate:!0,flush:"post"}),{focused:s}}function Fke(e,t={}){const n=pv(t),i=l.computed(()=>Ie(e));return{focused:l.computed(()=>i.value&&n.value?i.value.contains(n.value):!1)}}function Uke(e){var t;const n=l.ref(0);if(typeof performance>"u")return n;const i=(t=e==null?void 0:e.every)!=null?t:10;let r=performance.now(),a=0;return Ra(()=>{if(a+=1,a>=i){const o=performance.now(),s=o-r;n.value=Math.round(1e3/(s/a)),r=o,a=0}}),n}const Dv=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Yke(e,t={}){const{document:n=un,autoExit:i=!1}=t,r=l.computed(()=>{var w;return(w=Ie(e))!=null?w:n==null?void 0:n.querySelector("html")}),a=l.ref(!1),o=l.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(w=>n&&w in n||r.value&&w in r.value)),s=l.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(w=>n&&w in n||r.value&&w in r.value)),u=l.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(w=>n&&w in n||r.value&&w in r.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(w=>n&&w in n),f=Le(()=>r.value&&n&&o.value!==void 0&&s.value!==void 0&&u.value!==void 0),h=()=>c?(n==null?void 0:n[c])===r.value:!1,g=()=>{if(u.value){if(n&&n[u.value]!=null)return n[u.value];{const w=r.value;if((w==null?void 0:w[u.value])!=null)return!!w[u.value]}}return!1};async function p(){if(!(!f.value||!a.value)){if(s.value)if((n==null?void 0:n[s.value])!=null)await n[s.value]();else{const w=r.value;(w==null?void 0:w[s.value])!=null&&await w[s.value]()}a.value=!1}}async function y(){if(!f.value||a.value)return;g()&&await p();const w=r.value;o.value&&(w==null?void 0:w[o.value])!=null&&(await w[o.value](),a.value=!0)}async function v(){await(a.value?p():y())}const k=()=>{const w=g();(!w||w&&h())&&(a.value=w)};return K(n,Dv,k,!1),K(()=>Ie(r),Dv,k,!1),i&&Oe(p),{isSupported:f,isFullscreen:a,enter:y,exit:p,toggle:v}}function Xke(e){return l.computed(()=>e.value?{buttons:{a:e.value.buttons[0],b:e.value.buttons[1],x:e.value.buttons[2],y:e.value.buttons[3]},bumper:{left:e.value.buttons[4],right:e.value.buttons[5]},triggers:{left:e.value.buttons[6],right:e.value.buttons[7]},stick:{left:{horizontal:e.value.axes[0],vertical:e.value.axes[1],button:e.value.buttons[10]},right:{horizontal:e.value.axes[2],vertical:e.value.axes[3],button:e.value.buttons[11]}},dpad:{up:e.value.buttons[12],down:e.value.buttons[13],left:e.value.buttons[14],right:e.value.buttons[15]},back:e.value.buttons[8],start:e.value.buttons[9]}:null)}function qke(e={}){const{navigator:t=kn}=e,n=Le(()=>t&&"getGamepads"in t),i=l.ref([]),r=ln(),a=ln(),o=p=>{const y=[],v="vibrationActuator"in p?p.vibrationActuator:null;return v&&y.push(v),p.hapticActuators&&y.push(...p.hapticActuators),{id:p.id,index:p.index,connected:p.connected,mapping:p.mapping,timestamp:p.timestamp,vibrationActuator:p.vibrationActuator,hapticActuators:y,axes:p.axes.map(k=>k),buttons:p.buttons.map(k=>({pressed:k.pressed,touched:k.touched,value:k.value}))}},s=()=>{const p=(t==null?void 0:t.getGamepads())||[];for(const y of p)y&&i.value[y.index]&&(i.value[y.index]=o(y))},{isActive:u,pause:c,resume:f}=Ra(s),h=p=>{i.value.some(({index:y})=>y===p.index)||(i.value.push(o(p)),r.trigger(p.index)),f()},g=p=>{i.value=i.value.filter(y=>y.index!==p.index),a.trigger(p.index)};return K("gamepadconnected",p=>h(p.gamepad)),K("gamepaddisconnected",p=>g(p.gamepad)),At(()=>{const p=(t==null?void 0:t.getGamepads())||[];for(const y of p)y&&i.value[y.index]&&h(y)}),c(),{isSupported:n,onConnected:r.on,onDisconnected:a.on,gamepads:i,pause:c,resume:f,isActive:u}}function Gke(e={}){const{enableHighAccuracy:t=!0,maximumAge:n=3e4,timeout:i=27e3,navigator:r=kn,immediate:a=!0}=e,o=Le(()=>r&&"geolocation"in r),s=l.ref(null),u=l.shallowRef(null),c=l.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function f(y){s.value=y.timestamp,c.value=y.coords,u.value=null}let h;function g(){o.value&&(h=r.geolocation.watchPosition(f,y=>u.value=y,{enableHighAccuracy:t,maximumAge:n,timeout:i}))}a&&g();function p(){h&&r&&r.geolocation.clearWatch(h)}return Oe(()=>{p()}),{isSupported:o,coords:c,locatedAt:s,error:u,resume:g,pause:p}}const Kke=["mousemove","mousedown","resize","keydown","touchstart","wheel"],Qke=6e4;function Jke(e=Qke,t={}){const{initialState:n=!1,listenForVisibilityChange:i=!0,events:r=Kke,window:a=me,eventFilter:o=ll(50)}=t,s=l.ref(n),u=l.ref(La());let c;const f=()=>{s.value=!1,clearTimeout(c),c=setTimeout(()=>s.value=!0,e)},h=$a(o,()=>{u.value=La(),f()});if(a){const g=a.document;for(const p of r)K(a,p,h,{passive:!0});i&&K(g,"visibilitychange",()=>{g.hidden||h()}),f()}return{idle:s,lastActive:u,reset:f}}async function Zke(e){return new Promise((t,n)=>{const i=new Image,{src:r,srcset:a,sizes:o,class:s,loading:u,crossorigin:c,referrerPolicy:f}=e;i.src=r,a&&(i.srcset=a),o&&(i.sizes=o),s&&(i.className=s),u&&(i.loading=u),c&&(i.crossOrigin=c),f&&(i.referrerPolicy=f),i.onload=()=>t(i),i.onerror=n})}function e5e(e,t={}){const n=gv(()=>Zke(B(e)),void 0,{resetOnExecute:!0,...t});return l.watch(()=>B(e),()=>n.execute(t.delay),{deep:!0}),n}const Nv=1;function jv(e,t={}){const{throttle:n=0,idle:i=200,onStop:r=Ve,onScroll:a=Ve,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:u="auto",window:c=me,onError:f=A=>{console.error(A)}}=t,h=l.ref(0),g=l.ref(0),p=l.computed({get(){return h.value},set(A){v(A,void 0)}}),y=l.computed({get(){return g.value},set(A){v(void 0,A)}});function v(A,W){var $,D,z,H;if(!c)return;const X=B(e);if(!X)return;(z=X instanceof Document?c.document.body:X)==null||z.scrollTo({top:($=B(W))!=null?$:y.value,left:(D=B(A))!=null?D:p.value,behavior:B(u)});const re=((H=X==null?void 0:X.document)==null?void 0:H.documentElement)||(X==null?void 0:X.documentElement)||X;p!=null&&(h.value=re.scrollLeft),y!=null&&(g.value=re.scrollTop)}const k=l.ref(!1),w=l.reactive({left:!0,right:!1,top:!0,bottom:!1}),M=l.reactive({left:!1,right:!1,top:!1,bottom:!1}),x=A=>{k.value&&(k.value=!1,M.left=!1,M.right=!1,M.top=!1,M.bottom=!1,r(A))},S=Cd(x,n+i),E=A=>{var W;if(!c)return;const $=((W=A==null?void 0:A.document)==null?void 0:W.documentElement)||(A==null?void 0:A.documentElement)||Ie(A),{display:D,flexDirection:z}=getComputedStyle($),H=$.scrollLeft;M.left=H<h.value,M.right=H>h.value;const X=Math.abs(H)<=(o.left||0),re=Math.abs(H)+$.clientWidth>=$.scrollWidth-(o.right||0)-Nv;D==="flex"&&z==="row-reverse"?(w.left=re,w.right=X):(w.left=X,w.right=re),h.value=H;let ne=$.scrollTop;A===c.document&&!ne&&(ne=c.document.body.scrollTop),M.top=ne<g.value,M.bottom=ne>g.value;const q=Math.abs(ne)<=(o.top||0),Z=Math.abs(ne)+$.clientHeight>=$.scrollHeight-(o.bottom||0)-Nv;D==="flex"&&z==="column-reverse"?(w.top=Z,w.bottom=q):(w.top=q,w.bottom=Z),g.value=ne},I=A=>{var W;if(!c)return;const $=(W=A.target.documentElement)!=null?W:A.target;E($),k.value=!0,S(A),a(A)};return K(e,"scroll",n?s1(I,n,!0,!1):I,s),At(()=>{try{const A=B(e);if(!A)return;E(A)}catch(A){f(A)}}),K(e,"scrollend",x,s),{x:p,y,isScrolling:k,arrivedState:w,directions:M,measure(){const A=B(e);c&&A&&E(A)}}}function Nd(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function t5e(e,t,n={}){var i;const{direction:r="bottom",interval:a=100,canLoadMore:o=()=>!0}=n,s=l.reactive(jv(e,{...n,offset:{[r]:(i=n.distance)!=null?i:0,...n.offset}})),u=l.ref(),c=l.computed(()=>!!u.value),f=l.computed(()=>Nd(B(e))),h=Ev(f);function g(){if(s.measure(),!f.value||!h.value||!o(f.value))return;const{scrollHeight:p,clientHeight:y,scrollWidth:v,clientWidth:k}=f.value,w=r==="bottom"||r==="top"?p<=y:v<=k;(s.arrivedState[r]||w)&&(u.value||(u.value=Promise.all([t(s),new Promise(M=>setTimeout(M,a))]).finally(()=>{u.value=null,l.nextTick(()=>g())})))}return l.watch(()=>[s.arrivedState[r],h.value],g,{immediate:!0}),{isLoading:c,reset(){l.nextTick(()=>g())}}}const n5e=["mousedown","mouseup","keydown","keyup"];function i5e(e,t={}){const{events:n=n5e,document:i=un,initial:r=null}=t,a=l.ref(r);return i&&n.forEach(o=>{K(i,o,s=>{typeof s.getModifierState=="function"&&(a.value=s.getModifierState(e))})}),a}function r5e(e,t,n={}){const{window:i=me}=n;return Ed(e,t,i==null?void 0:i.localStorage,n)}const Iv={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function a5e(e={}){const{reactive:t=!1,target:n=me,aliasMap:i=Iv,passive:r=!0,onEventFired:a=Ve}=e,o=l.reactive(new Set),s={toJSON(){return{}},current:o},u=t?l.reactive(s):s,c=new Set,f=new Set;function h(v,k){v in u&&(t?u[v]=k:u[v].value=k)}function g(){o.clear();for(const v of f)h(v,!1)}function p(v,k){var w,M;const x=(w=v.key)==null?void 0:w.toLowerCase(),E=[(M=v.code)==null?void 0:M.toLowerCase(),x].filter(Boolean);x&&(k?o.add(x):o.delete(x));for(const I of E)f.add(I),h(I,k);x==="meta"&&!k?(c.forEach(I=>{o.delete(I),h(I,!1)}),c.clear()):typeof v.getModifierState=="function"&&v.getModifierState("Meta")&&k&&[...o,...E].forEach(I=>c.add(I))}K(n,"keydown",v=>(p(v,!0),a(v)),{passive:r}),K(n,"keyup",v=>(p(v,!1),a(v)),{passive:r}),K("blur",g,{passive:!0}),K("focus",g,{passive:!0});const y=new Proxy(u,{get(v,k,w){if(typeof k!="string")return Reflect.get(v,k,w);if(k=k.toLowerCase(),k in i&&(k=i[k]),!(k in u))if(/[+_-]/.test(k)){const x=k.split(/[+_-]/g).map(S=>S.trim());u[k]=l.computed(()=>x.every(S=>B(y[S])))}else u[k]=l.ref(!1);const M=Reflect.get(v,k,w);return t?B(M):M}});return y}function y1(e,t){B(e)&&t(B(e))}function o5e(e){let t=[];for(let n=0;n<e.length;++n)t=[...t,[e.start(n),e.end(n)]];return t}function b1(e){return Array.from(e).map(({label:t,kind:n,language:i,mode:r,activeCues:a,cues:o,inBandMetadataTrackDispatchType:s},u)=>({id:u,label:t,kind:n,language:i,mode:r,activeCues:a,cues:o,inBandMetadataTrackDispatchType:s}))}const s5e={src:"",tracks:[]};function l5e(e,t={}){e=wt(e),t={...s5e,...t};const{document:n=un}=t,i=l.ref(0),r=l.ref(0),a=l.ref(!1),o=l.ref(1),s=l.ref(!1),u=l.ref(!1),c=l.ref(!1),f=l.ref(1),h=l.ref(!1),g=l.ref([]),p=l.ref([]),y=l.ref(-1),v=l.ref(!1),k=l.ref(!1),w=n&&"pictureInPictureEnabled"in n,M=ln(),x=D=>{y1(e,z=>{if(D){const H=typeof D=="number"?D:D.id;z.textTracks[H].mode="disabled"}else for(let H=0;H<z.textTracks.length;++H)z.textTracks[H].mode="disabled";y.value=-1})},S=(D,z=!0)=>{y1(e,H=>{const X=typeof D=="number"?D:D.id;z&&x(),H.textTracks[X].mode="showing",y.value=X})},E=()=>new Promise((D,z)=>{y1(e,async H=>{w&&(v.value?n.exitPictureInPicture().then(D).catch(z):H.requestPictureInPicture().then(D).catch(z))})});l.watchEffect(()=>{if(!n)return;const D=B(e);if(!D)return;const z=B(t.src);let H=[];z&&(typeof z=="string"?H=[{src:z}]:Array.isArray(z)?H=z:ol(z)&&(H=[z]),D.querySelectorAll("source").forEach(X=>{X.removeEventListener("error",M.trigger),X.remove()}),H.forEach(({src:X,type:re})=>{const ne=n.createElement("source");ne.setAttribute("src",X),ne.setAttribute("type",re||""),ne.addEventListener("error",M.trigger),D.appendChild(ne)}),D.load())}),Oe(()=>{const D=B(e);D&&D.querySelectorAll("source").forEach(z=>z.removeEventListener("error",M.trigger))}),l.watch([e,o],()=>{const D=B(e);D&&(D.volume=o.value)}),l.watch([e,k],()=>{const D=B(e);D&&(D.muted=k.value)}),l.watch([e,f],()=>{const D=B(e);D&&(D.playbackRate=f.value)}),l.watchEffect(()=>{if(!n)return;const D=B(t.tracks),z=B(e);!D||!D.length||!z||(z.querySelectorAll("track").forEach(H=>H.remove()),D.forEach(({default:H,kind:X,label:re,src:ne,srcLang:q},Z)=>{const ue=n.createElement("track");ue.default=H||!1,ue.kind=X,ue.label=re,ue.src=ne,ue.srclang=q,ue.default&&(y.value=Z),z.appendChild(ue)}))});const{ignoreUpdates:I}=Bo(i,D=>{const z=B(e);z&&(z.currentTime=D)}),{ignoreUpdates:A}=Bo(c,D=>{const z=B(e);z&&(D?z.play():z.pause())});K(e,"timeupdate",()=>I(()=>i.value=B(e).currentTime)),K(e,"durationchange",()=>r.value=B(e).duration),K(e,"progress",()=>g.value=o5e(B(e).buffered)),K(e,"seeking",()=>a.value=!0),K(e,"seeked",()=>a.value=!1),K(e,["waiting","loadstart"],()=>{s.value=!0,A(()=>c.value=!1)}),K(e,"loadeddata",()=>s.value=!1),K(e,"playing",()=>{s.value=!1,u.value=!1,A(()=>c.value=!0)}),K(e,"ratechange",()=>f.value=B(e).playbackRate),K(e,"stalled",()=>h.value=!0),K(e,"ended",()=>u.value=!0),K(e,"pause",()=>A(()=>c.value=!1)),K(e,"play",()=>A(()=>c.value=!0)),K(e,"enterpictureinpicture",()=>v.value=!0),K(e,"leavepictureinpicture",()=>v.value=!1),K(e,"volumechange",()=>{const D=B(e);D&&(o.value=D.volume,k.value=D.muted)});const W=[],$=l.watch([e],()=>{const D=B(e);D&&($(),W[0]=K(D.textTracks,"addtrack",()=>p.value=b1(D.textTracks)),W[1]=K(D.textTracks,"removetrack",()=>p.value=b1(D.textTracks)),W[2]=K(D.textTracks,"change",()=>p.value=b1(D.textTracks)))});return Oe(()=>W.forEach(D=>D())),{currentTime:i,duration:r,waiting:s,seeking:a,ended:u,stalled:h,buffered:g,playing:c,rate:f,volume:o,muted:k,tracks:p,selectedTrack:y,enableTrack:S,disableTrack:x,supportsPictureInPicture:w,togglePictureInPicture:E,isPictureInPicture:v,onSourceError:M.on}}function u5e(e,t){const i=t!=null&&t.cache?l.shallowReactive(t.cache):l.shallowReactive(new Map),r=(...f)=>t!=null&&t.getKey?t.getKey(...f):JSON.stringify(f),a=(f,...h)=>(i.set(f,e(...h)),i.get(f)),o=(...f)=>a(r(...f),...f),s=(...f)=>{i.delete(r(...f))},u=()=>{i.clear()},c=(...f)=>{const h=r(...f);return i.has(h)?i.get(h):a(h,...f)};return c.load=o,c.delete=s,c.clear=u,c.generateKey=r,c.cache=i,c}function d5e(e={}){const t=l.ref(),n=Le(()=>typeof performance<"u"&&"memory"in performance);if(n.value){const{interval:i=1e3}=e;Lr(()=>{t.value=performance.memory},i,{immediate:e.immediate,immediateCallback:e.immediateCallback})}return{isSupported:n,memory:t}}const c5e={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function Wv(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:i=!1,initialValue:r={x:0,y:0},window:a=me,target:o=a,scroll:s=!0,eventFilter:u}=e;let c=null;const f=l.ref(r.x),h=l.ref(r.y),g=l.ref(null),p=typeof t=="function"?t:c5e[t],y=E=>{const I=p(E);c=E,I&&([f.value,h.value]=I,g.value="mouse")},v=E=>{if(E.touches.length>0){const I=p(E.touches[0]);I&&([f.value,h.value]=I,g.value="touch")}},k=()=>{if(!c||!a)return;const E=p(c);c instanceof MouseEvent&&E&&(f.value=E[0]+a.scrollX,h.value=E[1]+a.scrollY)},w=()=>{f.value=r.x,h.value=r.y},M=u?E=>u(()=>y(E),{}):E=>y(E),x=u?E=>u(()=>v(E),{}):E=>v(E),S=u?()=>u(()=>k(),{}):()=>k();if(o){const E={passive:!0};K(o,["mousemove","dragover"],M,E),n&&t!=="movement"&&(K(o,["touchstart","touchmove"],x,E),i&&K(o,"touchend",w,E)),s&&t==="page"&&K(a,"scroll",S,{passive:!0})}return{x:f,y:h,sourceType:g}}function Ov(e,t={}){const{handleOutside:n=!0,window:i=me}=t,r=t.type||"page",{x:a,y:o,sourceType:s}=Wv(t),u=l.ref(e??(i==null?void 0:i.document.body)),c=l.ref(0),f=l.ref(0),h=l.ref(0),g=l.ref(0),p=l.ref(0),y=l.ref(0),v=l.ref(!0);let k=()=>{};return i&&(k=l.watch([u,a,o],()=>{const w=Ie(u);if(!w||!(w instanceof HTMLElement))return;const{left:M,top:x,width:S,height:E}=w.getBoundingClientRect();h.value=M+(r==="page"?i.pageXOffset:0),g.value=x+(r==="page"?i.pageYOffset:0),p.value=E,y.value=S;const I=a.value-h.value,A=o.value-g.value;v.value=S===0||E===0||I<0||A<0||I>S||A>E,(n||!v.value)&&(c.value=I,f.value=A)},{immediate:!0}),K(document,"mouseleave",()=>{v.value=!0})),{x:a,y:o,sourceType:s,elementX:c,elementY:f,elementPositionX:h,elementPositionY:g,elementHeight:p,elementWidth:y,isOutside:v,stop:k}}function f5e(e={}){const{touch:t=!0,drag:n=!0,capture:i=!1,initialValue:r=!1,window:a=me}=e,o=l.ref(r),s=l.ref(null);if(!a)return{pressed:o,sourceType:s};const u=h=>()=>{o.value=!0,s.value=h},c=()=>{o.value=!1,s.value=null},f=l.computed(()=>Ie(e.target)||a);return K(f,"mousedown",u("mouse"),{passive:!0,capture:i}),K(a,"mouseleave",c,{passive:!0,capture:i}),K(a,"mouseup",c,{passive:!0,capture:i}),n&&(K(f,"dragstart",u("mouse"),{passive:!0,capture:i}),K(a,"drop",c,{passive:!0,capture:i}),K(a,"dragend",c,{passive:!0,capture:i})),t&&(K(f,"touchstart",u("touch"),{passive:!0,capture:i}),K(a,"touchend",c,{passive:!0,capture:i}),K(a,"touchcancel",c,{passive:!0,capture:i})),{pressed:o,sourceType:s}}function h5e(e={}){const{window:t=me}=e,n=t==null?void 0:t.navigator,i=Le(()=>n&&"language"in n),r=l.ref(n==null?void 0:n.language);return K(t,"languagechange",()=>{n&&(r.value=n.language)}),{isSupported:i,language:r}}function zv(e={}){const{window:t=me}=e,n=t==null?void 0:t.navigator,i=Le(()=>n&&"connection"in n),r=l.ref(!0),a=l.ref(!1),o=l.ref(void 0),s=l.ref(void 0),u=l.ref(void 0),c=l.ref(void 0),f=l.ref(void 0),h=l.ref(void 0),g=l.ref("unknown"),p=i.value&&n.connection;function y(){n&&(r.value=n.onLine,o.value=r.value?void 0:Date.now(),s.value=r.value?Date.now():void 0,p&&(u.value=p.downlink,c.value=p.downlinkMax,h.value=p.effectiveType,f.value=p.rtt,a.value=p.saveData,g.value=p.type))}return t&&(K(t,"offline",()=>{r.value=!1,o.value=Date.now()}),K(t,"online",()=>{r.value=!0,s.value=Date.now()})),p&&K(p,"change",y,!1),y(),{isSupported:i,isOnline:r,saveData:a,offlineAt:o,onlineAt:s,downlink:u,downlinkMax:c,effectiveType:h,rtt:f,type:g}}function Lv(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,i=l.ref(new Date),r=()=>i.value=new Date,a=n==="requestAnimationFrame"?Ra(r,{immediate:!0}):Lr(r,n,{immediate:!0});return t?{now:i,...a}:i}function m5e(e){const t=l.ref(),n=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return l.watch(()=>B(e),i=>{n(),i&&(t.value=URL.createObjectURL(i))},{immediate:!0}),Oe(n),l.readonly(t)}function $v(e,t,n){if(typeof e=="function"||l.isReadonly(e))return l.computed(()=>vd(B(e),B(t),B(n)));const i=l.ref(e);return l.computed({get(){return i.value=vd(i.value,B(t),B(n))},set(r){i.value=vd(r,B(t),B(n))}})}function p5e(e){const{total:t=Number.POSITIVE_INFINITY,pageSize:n=10,page:i=1,onPageChange:r=Ve,onPageSizeChange:a=Ve,onPageCountChange:o=Ve}=e,s=$v(n,1,Number.POSITIVE_INFINITY),u=l.computed(()=>Math.max(1,Math.ceil(B(t)/B(s)))),c=$v(i,1,u),f=l.computed(()=>c.value===1),h=l.computed(()=>c.value===u.value);l.isRef(i)&&u1(i,c,{direction:l.isReadonly(i)?"ltr":"both"}),l.isRef(n)&&u1(n,s,{direction:l.isReadonly(n)?"ltr":"both"});function g(){c.value--}function p(){c.value++}const y={currentPage:c,currentPageSize:s,pageCount:u,isFirstPage:f,isLastPage:h,prev:g,next:p};return l.watch(c,()=>{r(l.reactive(y))}),l.watch(s,()=>{a(l.reactive(y))}),l.watch(u,()=>{o(l.reactive(y))}),y}function g5e(e={}){const{isOnline:t}=zv(e);return t}function y5e(e={}){const{window:t=me}=e,n=l.ref(!1),i=r=>{if(!t)return;r=r||t.event;const a=r.relatedTarget||r.toElement;n.value=!a};return t&&(K(t,"mouseout",i,{passive:!0}),K(t.document,"mouseleave",i,{passive:!0}),K(t.document,"mouseenter",i,{passive:!0})),n}function Hv(e={}){const{window:t=me}=e,n=Le(()=>t&&"screen"in t&&"orientation"in t.screen),i=n.value?t.screen.orientation:{},r=l.ref(i.type),a=l.ref(i.angle||0);return n.value&&K(t,"orientationchange",()=>{r.value=i.type,a.value=i.angle}),{isSupported:n,orientation:r,angle:a,lockOrientation:u=>n.value&&typeof i.lock=="function"?i.lock(u):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{n.value&&typeof i.unlock=="function"&&i.unlock()}}}function b5e(e,t={}){const{deviceOrientationTiltAdjust:n=k=>k,deviceOrientationRollAdjust:i=k=>k,mouseTiltAdjust:r=k=>k,mouseRollAdjust:a=k=>k,window:o=me}=t,s=l.reactive(Sv({window:o})),u=l.reactive(Hv({window:o})),{elementX:c,elementY:f,elementWidth:h,elementHeight:g}=Ov(e,{handleOutside:!1,window:o}),p=l.computed(()=>s.isSupported&&(s.alpha!=null&&s.alpha!==0||s.gamma!=null&&s.gamma!==0)?"deviceOrientation":"mouse"),y=l.computed(()=>{if(p.value==="deviceOrientation"){let k;switch(u.orientation){case"landscape-primary":k=s.gamma/90;break;case"landscape-secondary":k=-s.gamma/90;break;case"portrait-primary":k=-s.beta/90;break;case"portrait-secondary":k=s.beta/90;break;default:k=-s.beta/90}return i(k)}else{const k=-(f.value-g.value/2)/g.value;return a(k)}}),v=l.computed(()=>{if(p.value==="deviceOrientation"){let k;switch(u.orientation){case"landscape-primary":k=s.beta/90;break;case"landscape-secondary":k=-s.beta/90;break;case"portrait-primary":k=s.gamma/90;break;case"portrait-secondary":k=-s.gamma/90;break;default:k=s.gamma/90}return n(k)}else{const k=(c.value-h.value/2)/h.value;return r(k)}});return{roll:y,tilt:v,source:p}}function w5e(e=Mv()){const t=l.shallowRef(),n=()=>{const i=Ie(e);i&&(t.value=i.parentElement)};return At(n),l.watch(()=>B(e),n),t}function v5e(e,t){const{window:n=me,immediate:i=!0,...r}=e,a=Le(()=>n&&"PerformanceObserver"in n);let o;const s=()=>{o==null||o.disconnect()},u=()=>{a.value&&(s(),o=new PerformanceObserver(t),o.observe(r))};return Oe(s),i&&u(),{isSupported:a,start:u,stop:s}}const Rv={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},k5e=Object.keys(Rv);function M5e(e={}){const{target:t=me}=e,n=l.ref(!1),i=l.ref(e.initialValue||{});Object.assign(i.value,Rv,i.value);const r=a=>{n.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(a.pointerType))&&(i.value=ev(a,k5e,!1))};if(t){const a={passive:!0};K(t,["pointerdown","pointermove","pointerup"],r,a),K(t,"pointerleave",()=>n.value=!1,a)}return{...d1(i),isInside:n}}function C5e(e,t={}){const{document:n=un}=t,i=Le(()=>n&&"pointerLockElement"in n),r=l.ref(),a=l.ref();let o;i.value&&(K(n,"pointerlockchange",()=>{var c;const f=(c=n.pointerLockElement)!=null?c:r.value;o&&f===o&&(r.value=n.pointerLockElement,r.value||(o=a.value=null))}),K(n,"pointerlockerror",()=>{var c;const f=(c=n.pointerLockElement)!=null?c:r.value;if(o&&f===o){const h=n.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${h} pointer lock.`)}}));async function s(c){var f;if(!i.value)throw new Error("Pointer Lock API is not supported by your browser.");if(a.value=c instanceof Event?c.currentTarget:null,o=c instanceof Event?(f=Ie(e))!=null?f:a.value:Ie(c),!o)throw new Error("Target element undefined.");return o.requestPointerLock(),await cl(r).toBe(o)}async function u(){return r.value?(n.exitPointerLock(),await cl(r).toBeNull(),!0):!1}return{isSupported:i,element:r,triggerElement:a,lock:s,unlock:u}}function x5e(e,t={}){const n=wt(e),{threshold:i=50,onSwipe:r,onSwipeEnd:a,onSwipeStart:o,disableTextSelect:s=!1}=t,u=l.reactive({x:0,y:0}),c=(A,W)=>{u.x=A,u.y=W},f=l.reactive({x:0,y:0}),h=(A,W)=>{f.x=A,f.y=W},g=l.computed(()=>u.x-f.x),p=l.computed(()=>u.y-f.y),{max:y,abs:v}=Math,k=l.computed(()=>y(v(g.value),v(p.value))>=i),w=l.ref(!1),M=l.ref(!1),x=l.computed(()=>k.value?v(g.value)>v(p.value)?g.value>0?"left":"right":p.value>0?"up":"down":"none"),S=A=>{var W,$,D;const z=A.buttons===0,H=A.buttons===1;return(D=($=(W=t.pointerTypes)==null?void 0:W.includes(A.pointerType))!=null?$:z||H)!=null?D:!0},E=[K(e,"pointerdown",A=>{if(!S(A))return;M.value=!0;const W=A.target;W==null||W.setPointerCapture(A.pointerId);const{clientX:$,clientY:D}=A;c($,D),h($,D),o==null||o(A)}),K(e,"pointermove",A=>{if(!S(A)||!M.value)return;const{clientX:W,clientY:$}=A;h(W,$),!w.value&&k.value&&(w.value=!0),w.value&&(r==null||r(A))}),K(e,"pointerup",A=>{S(A)&&(w.value&&(a==null||a(A,x.value)),M.value=!1,w.value=!1)})];At(()=>{var A,W,$,D,z,H,X,re;(W=(A=n.value)==null?void 0:A.style)==null||W.setProperty("touch-action","none"),s&&((D=($=n.value)==null?void 0:$.style)==null||D.setProperty("-webkit-user-select","none"),(H=(z=n.value)==null?void 0:z.style)==null||H.setProperty("-ms-user-select","none"),(re=(X=n.value)==null?void 0:X.style)==null||re.setProperty("user-select","none"))});const I=()=>E.forEach(A=>A());return{isSwiping:l.readonly(w),direction:l.readonly(x),posStart:l.readonly(u),posEnd:l.readonly(f),distanceX:g,distanceY:p,stop:I}}function S5e(e){const t=Mn("(prefers-color-scheme: light)",e),n=Mn("(prefers-color-scheme: dark)",e);return l.computed(()=>n.value?"dark":t.value?"light":"no-preference")}function _5e(e){const t=Mn("(prefers-contrast: more)",e),n=Mn("(prefers-contrast: less)",e),i=Mn("(prefers-contrast: custom)",e);return l.computed(()=>t.value?"more":n.value?"less":i.value?"custom":"no-preference")}function T5e(e={}){const{window:t=me}=e;if(!t)return l.ref(["en"]);const n=t.navigator,i=l.ref(n.languages);return K(t,"languagechange",()=>{i.value=n.languages}),i}function P5e(e){const t=Mn("(prefers-reduced-motion: reduce)",e);return l.computed(()=>t.value?"reduce":"no-preference")}function E5e(e,t){const n=l.shallowRef(t);return l.watch(wt(e),(i,r)=>{n.value=r},{flush:"sync"}),l.readonly(n)}const Bv="--vueuse-safe-area-top",Vv="--vueuse-safe-area-right",Fv="--vueuse-safe-area-bottom",Uv="--vueuse-safe-area-left";function A5e(){const e=l.ref(""),t=l.ref(""),n=l.ref(""),i=l.ref("");if(Et){const a=ml(Bv),o=ml(Vv),s=ml(Fv),u=ml(Uv);a.value="env(safe-area-inset-top, 0px)",o.value="env(safe-area-inset-right, 0px)",s.value="env(safe-area-inset-bottom, 0px)",u.value="env(safe-area-inset-left, 0px)",r(),K("resize",Cd(r))}function r(){e.value=jd(Bv),t.value=jd(Vv),n.value=jd(Fv),i.value=jd(Uv)}return{top:e,right:t,bottom:n,left:i,update:r}}function jd(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function D5e(e,t=Ve,n={}){const{immediate:i=!0,manual:r=!1,type:a="text/javascript",async:o=!0,crossOrigin:s,referrerPolicy:u,noModule:c,defer:f,document:h=un,attrs:g={}}=n,p=l.ref(null);let y=null;const v=M=>new Promise((x,S)=>{const E=W=>(p.value=W,x(W),W);if(!h){x(!1);return}let I=!1,A=h.querySelector(`script[src="${B(e)}"]`);A?A.hasAttribute("data-loaded")&&E(A):(A=h.createElement("script"),A.type=a,A.async=o,A.src=B(e),f&&(A.defer=f),s&&(A.crossOrigin=s),c&&(A.noModule=c),u&&(A.referrerPolicy=u),Object.entries(g).forEach(([W,$])=>A==null?void 0:A.setAttribute(W,$)),I=!0),A.addEventListener("error",W=>S(W)),A.addEventListener("abort",W=>S(W)),A.addEventListener("load",()=>{A.setAttribute("data-loaded","true"),t(A),E(A)}),I&&(A=h.head.appendChild(A)),M||E(A)}),k=(M=!0)=>(y||(y=v(M)),y),w=()=>{if(!h)return;y=null,p.value&&(p.value=null);const M=h.querySelector(`script[src="${B(e)}"]`);M&&h.head.removeChild(M)};return i&&!r&&At(k),r||ov(w),{scriptTag:p,load:k,unload:w}}function Yv(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:Yv(n)}}function N5e(e){const t=e||window.event,n=t.target;return Yv(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const w1=new WeakMap;function j5e(e,t=!1){const n=l.ref(t);let i=null,r="";l.watch(wt(e),s=>{const u=Nd(B(s));if(u){const c=u;if(w1.get(c)||w1.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(r=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const a=()=>{const s=Nd(B(e));!s||n.value||(kd&&(i=K(s,"touchmove",u=>{N5e(u)},{passive:!1})),s.style.overflow="hidden",n.value=!0)},o=()=>{const s=Nd(B(e));!s||!n.value||(kd&&(i==null||i()),s.style.overflow=r,w1.delete(s),n.value=!1)};return Oe(o),l.computed({get(){return n.value},set(s){s?a():o()}})}function I5e(e,t,n={}){const{window:i=me}=n;return Ed(e,t,i==null?void 0:i.sessionStorage,n)}function W5e(e={},t={}){const{navigator:n=kn}=t,i=n,r=Le(()=>i&&"canShare"in i);return{isSupported:r,share:async(o={})=>{if(r.value){const s={...B(e),...B(o)};let u=!0;if(s.files&&i.canShare&&(u=i.canShare({files:s.files})),u)return i.share(s)}}}}const O5e=(e,t)=>e.sort(t),Id=(e,t)=>e-t;function z5e(...e){var t,n,i,r;const[a]=e;let o=Id,s={};e.length===2?typeof e[1]=="object"?(s=e[1],o=(t=s.compareFn)!=null?t:Id):o=(n=e[1])!=null?n:Id:e.length>2&&(o=(i=e[1])!=null?i:Id,s=(r=e[2])!=null?r:{});const{dirty:u=!1,sortFn:c=O5e}=s;return u?(l.watchEffect(()=>{const f=c(B(a),o);l.isRef(a)?a.value=f:a.splice(0,a.length,...f)}),a):l.computed(()=>c([...B(a)],o))}function L5e(e={}){const{interimResults:t=!0,continuous:n=!0,maxAlternatives:i=1,window:r=me}=e,a=wt(e.lang||"en-US"),o=l.ref(!1),s=l.ref(!1),u=l.ref(""),c=l.shallowRef(void 0),f=(k=!o.value)=>{o.value=k},h=()=>{o.value=!0},g=()=>{o.value=!1},p=r&&(r.SpeechRecognition||r.webkitSpeechRecognition),y=Le(()=>p);let v;return y.value&&(v=new p,v.continuous=n,v.interimResults=t,v.lang=B(a),v.maxAlternatives=i,v.onstart=()=>{s.value=!1},l.watch(a,k=>{v&&!o.value&&(v.lang=k)}),v.onresult=k=>{const w=k.results[k.resultIndex],{transcript:M}=w[0];s.value=w.isFinal,u.value=M,c.value=void 0},v.onerror=k=>{c.value=k},v.onend=()=>{o.value=!1,v.lang=B(a)},l.watch(o,()=>{o.value?v.start():v.stop()})),Oe(()=>{o.value=!1}),{isSupported:y,isListening:o,isFinal:s,recognition:v,result:u,error:c,toggle:f,start:h,stop:g}}function $5e(e,t={}){const{pitch:n=1,rate:i=1,volume:r=1,window:a=me}=t,o=a&&a.speechSynthesis,s=Le(()=>o),u=l.ref(!1),c=l.ref("init"),f=wt(e||""),h=wt(t.lang||"en-US"),g=l.shallowRef(void 0),p=(M=!u.value)=>{u.value=M},y=M=>{M.lang=B(h),M.voice=B(t.voice)||null,M.pitch=B(n),M.rate=B(i),M.volume=r,M.onstart=()=>{u.value=!0,c.value="play"},M.onpause=()=>{u.value=!1,c.value="pause"},M.onresume=()=>{u.value=!0,c.value="play"},M.onend=()=>{u.value=!1,c.value="end"},M.onerror=x=>{g.value=x}},v=l.computed(()=>{u.value=!1,c.value="init";const M=new SpeechSynthesisUtterance(f.value);return y(M),M}),k=()=>{o.cancel(),v&&o.speak(v.value)},w=()=>{o.cancel(),u.value=!1};return s.value&&(y(v.value),l.watch(h,M=>{v.value&&!u.value&&(v.value.lang=M)}),t.voice&&l.watch(t.voice,()=>{o.cancel()}),l.watch(u,()=>{u.value?o.resume():o.pause()})),Oe(()=>{u.value=!1}),{isSupported:s,isPlaying:u,status:c,utterance:v,error:g,stop:w,toggle:p,speak:k}}function H5e(e,t){const n=l.ref(e),i=l.computed(()=>Array.isArray(n.value)?n.value:Object.keys(n.value)),r=l.ref(i.value.indexOf(t??i.value[0])),a=l.computed(()=>f(r.value)),o=l.computed(()=>r.value===0),s=l.computed(()=>r.value===i.value.length-1),u=l.computed(()=>i.value[r.value+1]),c=l.computed(()=>i.value[r.value-1]);function f(E){return Array.isArray(n.value)?n.value[E]:n.value[i.value[E]]}function h(E){if(i.value.includes(E))return f(i.value.indexOf(E))}function g(E){i.value.includes(E)&&(r.value=i.value.indexOf(E))}function p(){s.value||r.value++}function y(){o.value||r.value--}function v(E){S(E)&&g(E)}function k(E){return i.value.indexOf(E)===r.value+1}function w(E){return i.value.indexOf(E)===r.value-1}function M(E){return i.value.indexOf(E)===r.value}function x(E){return r.value<i.value.indexOf(E)}function S(E){return r.value>i.value.indexOf(E)}return{steps:n,stepNames:i,index:r,current:a,next:u,previous:c,isFirst:o,isLast:s,at:f,get:h,goTo:g,goToNext:p,goToPrevious:y,goBackTo:v,isNext:k,isPrevious:w,isCurrent:M,isBefore:x,isAfter:S}}function R5e(e,t,n,i={}){var r;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:f,window:h=me,eventFilter:g,onError:p=x=>{console.error(x)}}=i,y=B(t),v=vv(y),k=(f?l.shallowRef:l.ref)(t),w=(r=i.serializer)!=null?r:h1[v];if(!n)try{n=Pd("getDefaultStorageAsync",()=>{var x;return(x=me)==null?void 0:x.localStorage})()}catch(x){p(x)}async function M(x){if(!(!n||x&&x.key!==e))try{const S=x?x.newValue:await n.getItem(e);if(S==null)k.value=y,u&&y!==null&&await n.setItem(e,await w.write(y));else if(c){const E=await w.read(S);typeof c=="function"?k.value=c(E,y):v==="object"&&!Array.isArray(E)?k.value={...y,...E}:k.value=E}else k.value=await w.read(S)}catch(S){p(S)}}return M(),h&&s&&K(h,"storage",x=>Promise.resolve().then(()=>M(x))),n&&$o(k,async()=>{try{k.value==null?await n.removeItem(e):await n.setItem(e,await w.write(k.value))}catch(x){p(x)}},{flush:a,deep:o,eventFilter:g}),k}let B5e=0;function V5e(e,t={}){const n=l.ref(!1),{document:i=un,immediate:r=!0,manual:a=!1,id:o=`vueuse_styletag_${++B5e}`}=t,s=l.ref(e);let u=()=>{};const c=()=>{if(!i)return;const h=i.getElementById(o)||i.createElement("style");h.isConnected||(h.id=o,t.media&&(h.media=t.media),i.head.appendChild(h)),!n.value&&(u=l.watch(s,g=>{h.textContent=g},{immediate:!0}),n.value=!0)},f=()=>{!i||!n.value||(u(),i.head.removeChild(i.getElementById(o)),n.value=!1)};return r&&!a&&At(c),a||Oe(f),{id:o,css:s,unload:f,load:c,isLoaded:l.readonly(n)}}function F5e(e,t={}){const{threshold:n=50,onSwipe:i,onSwipeEnd:r,onSwipeStart:a,passive:o=!0,window:s=me}=t,u=l.reactive({x:0,y:0}),c=l.reactive({x:0,y:0}),f=l.computed(()=>u.x-c.x),h=l.computed(()=>u.y-c.y),{max:g,abs:p}=Math,y=l.computed(()=>g(p(f.value),p(h.value))>=n),v=l.ref(!1),k=l.computed(()=>y.value?p(f.value)>p(h.value)?f.value>0?"left":"right":h.value>0?"up":"down":"none"),w=$=>[$.touches[0].clientX,$.touches[0].clientY],M=($,D)=>{u.x=$,u.y=D},x=($,D)=>{c.x=$,c.y=D};let S;const E=U5e(s==null?void 0:s.document);o?S=E?{passive:!0}:{capture:!1}:S=E?{passive:!1,capture:!0}:{capture:!0};const I=$=>{v.value&&(r==null||r($,k.value)),v.value=!1},A=[K(e,"touchstart",$=>{if($.touches.length!==1)return;S.capture&&!S.passive&&$.preventDefault();const[D,z]=w($);M(D,z),x(D,z),a==null||a($)},S),K(e,"touchmove",$=>{if($.touches.length!==1)return;const[D,z]=w($);x(D,z),!v.value&&y.value&&(v.value=!0),v.value&&(i==null||i($))},S),K(e,["touchend","touchcancel"],I,S)];return{isPassiveEventSupported:E,isSwiping:v,direction:k,coordsStart:u,coordsEnd:c,lengthX:f,lengthY:h,stop:()=>A.forEach($=>$())}}function U5e(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",Ve,n),e.removeEventListener("x",Ve),t}function Y5e(){const e=l.ref([]);return e.value.set=t=>{t&&e.value.push(t)},l.onBeforeUpdate(()=>{e.value.length=0}),e}function X5e(e={}){const{document:t=un,selector:n="html",observe:i=!1,initialValue:r="ltr"}=e;function a(){var s,u;return(u=(s=t==null?void 0:t.querySelector(n))==null?void 0:s.getAttribute("dir"))!=null?u:r}const o=l.ref(a());return At(()=>o.value=a()),i&&t&&Vo(t.querySelector(n),()=>o.value=a(),{attributes:!0}),l.computed({get(){return o.value},set(s){var u,c;o.value=s,t&&(o.value?(u=t.querySelector(n))==null||u.setAttribute("dir",o.value):(c=t.querySelector(n))==null||c.removeAttribute("dir"))}})}function q5e(e){var t;const n=(t=e.rangeCount)!=null?t:0;return Array.from({length:n},(i,r)=>e.getRangeAt(r))}function G5e(e={}){const{window:t=me}=e,n=l.ref(null),i=l.computed(()=>{var s,u;return(u=(s=n.value)==null?void 0:s.toString())!=null?u:""}),r=l.computed(()=>n.value?q5e(n.value):[]),a=l.computed(()=>r.value.map(s=>s.getBoundingClientRect()));function o(){n.value=null,t&&(n.value=t.getSelection())}return t&&K(t.document,"selectionchange",o),{text:i,rects:a,ranges:r,selection:n}}function K5e(e){var t;const n=l.ref(e==null?void 0:e.element),i=l.ref(e==null?void 0:e.input),r=(t=e==null?void 0:e.styleProp)!=null?t:"height",a=l.ref(1),o=l.ref(0);function s(){var u;if(!n.value)return;let c="";n.value.style[r]="1px",a.value=(u=n.value)==null?void 0:u.scrollHeight;const f=B(e==null?void 0:e.styleTarget);f?f.style[r]=`${a.value}px`:c=`${a.value}px`,n.value.style[r]=c}return l.watch([i,n],()=>l.nextTick(s),{immediate:!0}),l.watch(a,()=>{var u;return(u=e==null?void 0:e.onResize)==null?void 0:u.call(e)}),Ad(n,([{contentRect:u}])=>{o.value!==u.width&&(o.value=u.width,s())}),e!=null&&e.watch&&l.watch(e.watch,s,{immediate:!0,deep:!0}),{textarea:n,input:i,triggerResize:s}}function Q5e(e,t={}){const{throttle:n=200,trailing:i=!0}=t,r=ll(n,i);return{...g1(e,{...t,eventFilter:r})}}const J5e=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],Z5e={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>e===1?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>e===1?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>e===1?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""};function eMe(e){return e.toISOString().slice(0,10)}function tMe(e,t={}){const{controls:n=!1,updateInterval:i=3e4}=t,{now:r,...a}=Lv({interval:i,controls:!0}),o=l.computed(()=>Xv(new Date(B(e)),t,B(r)));return n?{timeAgo:o,...a}:o}function Xv(e,t={},n=Date.now()){var i;const{max:r,messages:a=Z5e,fullDateFormatter:o=eMe,units:s=J5e,showSecond:u=!1,rounding:c="round"}=t,f=typeof c=="number"?k=>+k.toFixed(c):Math[c],h=+n-+e,g=Math.abs(h);function p(k,w){return f(Math.abs(k)/w.value)}function y(k,w){const M=p(k,w),x=k>0,S=v(w.name,M,x);return v(x?"past":"future",S,x)}function v(k,w,M){const x=a[k];return typeof x=="function"?x(w,M):x.replace("{0}",w.toString())}if(g<6e4&&!u)return a.justNow;if(typeof r=="number"&&g>r)return o(new Date(e));if(typeof r=="string"){const k=(i=s.find(w=>w.name===r))==null?void 0:i.max;if(k&&g>k)return o(new Date(e))}for(const[k,w]of s.entries()){if(p(h,w)<=0&&s[k-1])return y(h,s[k-1]);if(g<w.max)return y(h,w)}return a.invalid}function nMe(e,t,n){const{start:i}=Ro(a,t,{immediate:!1}),r=l.ref(!1);async function a(){r.value&&(await e(),i())}function o(){r.value||(r.value=!0,a())}function s(){r.value=!1}return n!=null&&n.immediate&&o(),Oe(s),{isActive:r,pause:s,resume:o}}function iMe(e={}){const{controls:t=!1,offset:n=0,immediate:i=!0,interval:r="requestAnimationFrame",callback:a}=e,o=l.ref(La()+n),s=()=>o.value=La()+n,u=a?()=>{s(),a(o.value)}:s,c=r==="requestAnimationFrame"?Ra(u,{immediate:i}):Lr(u,r,{immediate:i});return t?{timestamp:o,...c}:o}function rMe(e=null,t={}){var n,i,r;const{document:a=un,restoreOnUnmount:o=h=>h}=t,s=(n=a==null?void 0:a.title)!=null?n:"",u=wt((i=e??(a==null?void 0:a.title))!=null?i:null),c=e&&typeof e=="function";function f(h){if(!("titleTemplate"in t))return h;const g=t.titleTemplate||"%s";return typeof g=="function"?g(h):B(g).replace(/%s/g,h)}return l.watch(u,(h,g)=>{h!==g&&a&&(a.title=f(typeof h=="string"?h:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&a&&!c&&Vo((r=a.head)==null?void 0:r.querySelector("title"),()=>{a&&a.title!==u.value&&(u.value=f(a.title))},{childList:!0}),av(()=>{if(o){const h=o(s,u.value||"");h!=null&&a&&(a.title=h)}}),u}const aMe=Object.assign({},{linear:r1},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function oMe([e,t,n,i]){const r=(f,h)=>1-3*h+3*f,a=(f,h)=>3*h-6*f,o=f=>3*f,s=(f,h,g)=>((r(h,g)*f+a(h,g))*f+o(h))*f,u=(f,h,g)=>3*r(h,g)*f*f+2*a(h,g)*f+o(h),c=f=>{let h=f;for(let g=0;g<4;++g){const p=u(h,e,n);if(p===0)return h;const y=s(h,e,n)-f;h-=y/p}return h};return f=>e===t&&n===i?f:s(c(f),t,i)}function qv(e,t,n){return e+n*(t-e)}function v1(e){return(typeof e=="number"?[e]:e)||[]}function Gv(e,t,n,i={}){var r,a;const o=B(t),s=B(n),u=v1(o),c=v1(s),f=(r=B(i.duration))!=null?r:1e3,h=Date.now(),g=Date.now()+f,p=typeof i.transition=="function"?i.transition:(a=B(i.transition))!=null?a:r1,y=typeof p=="function"?p:oMe(p);return new Promise(v=>{e.value=o;const k=()=>{var w;if((w=i.abort)!=null&&w.call(i)){v();return}const M=Date.now(),x=y((M-h)/f),S=v1(e.value).map((E,I)=>qv(u[I],c[I],x));Array.isArray(e.value)?e.value=S.map((E,I)=>{var A,W;return qv((A=u[I])!=null?A:0,(W=c[I])!=null?W:0,x)}):typeof e.value=="number"&&(e.value=S[0]),M<g?requestAnimationFrame(k):(e.value=s,v())};k()})}function sMe(e,t={}){let n=0;const i=()=>{const a=B(e);return typeof a=="number"?a:a.map(B)},r=l.ref(i());return l.watch(i,async a=>{var o,s;if(B(t.disabled))return;const u=++n;if(t.delay&&await ul(B(t.delay)),u!==n)return;const c=Array.isArray(a)?a.map(B):B(a);(o=t.onStarted)==null||o.call(t),await Gv(r,r.value,c,{...t,abort:()=>{var f;return u!==n||((f=t.abort)==null?void 0:f.call(t))}}),(s=t.onFinished)==null||s.call(t)},{deep:!0}),l.watch(()=>B(t.disabled),a=>{a&&(n++,r.value=i())}),Oe(()=>{n++}),l.computed(()=>B(t.disabled)?i():r.value)}function lMe(e="history",t={}){const{initialValue:n={},removeNullishValues:i=!0,removeFalsyValues:r=!1,write:a=!0,window:o=me}=t;if(!o)return l.reactive(n);const s=l.reactive({});function u(){if(e==="history")return o.location.search||"";if(e==="hash"){const w=o.location.hash||"",M=w.indexOf("?");return M>0?w.slice(M):""}else return(o.location.hash||"").replace(/^#/,"")}function c(w){const M=w.toString();if(e==="history")return`${M?`?${M}`:""}${o.location.hash||""}`;if(e==="hash-params")return`${o.location.search||""}${M?`#${M}`:""}`;const x=o.location.hash||"#",S=x.indexOf("?");return S>0?`${x.slice(0,S)}${M?`?${M}`:""}`:`${x}${M?`?${M}`:""}`}function f(){return new URLSearchParams(u())}function h(w){const M=new Set(Object.keys(s));for(const x of w.keys()){const S=w.getAll(x);s[x]=S.length>1?S:w.get(x)||"",M.delete(x)}Array.from(M).forEach(x=>delete s[x])}const{pause:g,resume:p}=Ho(s,()=>{const w=new URLSearchParams("");Object.keys(s).forEach(M=>{const x=s[M];Array.isArray(x)?x.forEach(S=>w.append(M,S)):i&&x==null||r&&!x?w.delete(M):w.set(M,x)}),y(w)},{deep:!0});function y(w,M){g(),M&&h(w),o.history.replaceState(o.history.state,o.document.title,o.location.pathname+c(w)),p()}function v(){a&&y(f(),!0)}K(o,"popstate",v,!1),e!=="history"&&K(o,"hashchange",v,!1);const k=f();return k.keys().next().value?h(k):Object.assign(s,n),s}function uMe(e={}){var t,n;const i=l.ref((t=e.enabled)!=null?t:!1),r=l.ref((n=e.autoSwitch)!=null?n:!0),a=l.ref(e.constraints),{navigator:o=kn}=e,s=Le(()=>{var v;return(v=o==null?void 0:o.mediaDevices)==null?void 0:v.getUserMedia}),u=l.shallowRef();function c(v){switch(v){case"video":{if(a.value)return a.value.video||!1;break}case"audio":{if(a.value)return a.value.audio||!1;break}}}async function f(){if(!(!s.value||u.value))return u.value=await o.mediaDevices.getUserMedia({video:c("video"),audio:c("audio")}),u.value}function h(){var v;(v=u.value)==null||v.getTracks().forEach(k=>k.stop()),u.value=void 0}function g(){h(),i.value=!1}async function p(){return await f(),u.value&&(i.value=!0),u.value}async function y(){return h(),await p()}return l.watch(i,v=>{v?f():h()},{immediate:!0}),l.watch(a,()=>{r.value&&u.value&&y()},{immediate:!0}),Oe(()=>{g()}),{isSupported:s,stream:u,start:p,stop:g,restart:y,constraints:a,enabled:i,autoSwitch:r}}function Kv(e,t,n,i={}){var r,a,o;const{clone:s=!1,passive:u=!1,eventName:c,deep:f=!1,defaultValue:h,shouldEmit:g}=i,p=l.getCurrentInstance(),y=n||(p==null?void 0:p.emit)||((r=p==null?void 0:p.$emit)==null?void 0:r.bind(p))||((o=(a=p==null?void 0:p.proxy)==null?void 0:a.$emit)==null?void 0:o.bind(p==null?void 0:p.proxy));let v=c;t||(t="modelValue"),v=v||`update:${t.toString()}`;const k=x=>s?typeof s=="function"?s(x):hl(x):x,w=()=>qw(e[t])?k(e[t]):h,M=x=>{g?g(x)&&y(v,x):y(v,x)};if(u){const x=w(),S=l.ref(x);let E=!1;return l.watch(()=>e[t],I=>{E||(E=!0,S.value=k(I),l.nextTick(()=>E=!1))}),l.watch(S,I=>{!E&&(I!==e[t]||f)&&M(I)},{deep:f}),S}else return l.computed({get(){return w()},set(x){M(x)}})}function dMe(e,t,n={}){const i={};for(const r in e)i[r]=Kv(e,r,t,n);return i}function cMe(e){const{pattern:t=[],interval:n=0,navigator:i=kn}=e||{},r=Le(()=>typeof i<"u"&&"vibrate"in i),a=wt(t);let o;const s=(c=a.value)=>{r.value&&i.vibrate(c)},u=()=>{r.value&&i.vibrate(0),o==null||o.pause()};return n>0&&(o=Lr(s,n,{immediate:!1,immediateCallback:!1})),{isSupported:r,pattern:t,intervalControls:o,vibrate:s,stop:u}}function fMe(e,t){const{containerStyle:n,wrapperProps:i,scrollTo:r,calculateRange:a,currentList:o,containerRef:s}="itemHeight"in t?pMe(t,e):mMe(t,e);return{list:o,scrollTo:r,containerProps:{ref:s,onScroll:()=>{a()},style:n},wrapperProps:i}}function Qv(e){const t=l.ref(null),n=Tv(t),i=l.ref([]),r=l.shallowRef(e);return{state:l.ref({start:0,end:10}),source:r,currentList:i,size:n,containerRef:t}}function Jv(e,t,n){return i=>{if(typeof n=="number")return Math.ceil(i/n);const{start:r=0}=e.value;let a=0,o=0;for(let s=r;s<t.value.length;s++){const u=n(s);if(a+=u,o=s,a>i)break}return o-r}}function Zv(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let i=0,r=0;for(let a=0;a<e.value.length;a++){const o=t(a);if(i+=o,i>=n){r=a;break}}return r+1}}function e4(e,t,n,i,{containerRef:r,state:a,currentList:o,source:s}){return()=>{const u=r.value;if(u){const c=n(e==="vertical"?u.scrollTop:u.scrollLeft),f=i(e==="vertical"?u.clientHeight:u.clientWidth),h=c-t,g=c+f+t;a.value={start:h<0?0:h,end:g>s.value.length?s.value.length:g},o.value=s.value.slice(a.value.start,a.value.end).map((p,y)=>({data:p,index:y+a.value.start}))}}}function t4(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((r,a,o)=>r+e(o),0)}function n4(e,t,n,i){l.watch([e.width,e.height,t,n],()=>{i()})}function i4(e,t){return l.computed(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,i,r)=>n+e(r),0))}const hMe={horizontal:"scrollLeft",vertical:"scrollTop"};function r4(e,t,n,i){return r=>{i.value&&(i.value[hMe[e]]=n(r),t())}}function mMe(e,t){const n=Qv(t),{state:i,source:r,currentList:a,size:o,containerRef:s}=n,u={overflowX:"auto"},{itemWidth:c,overscan:f=5}=e,h=Jv(i,r,c),g=Zv(r,c),p=e4("horizontal",f,g,h,n),y=t4(c,r),v=l.computed(()=>y(i.value.start)),k=i4(c,r);n4(o,t,s,p);const w=r4("horizontal",p,y,s),M=l.computed(()=>({style:{height:"100%",width:`${k.value-v.value}px`,marginLeft:`${v.value}px`,display:"flex"}}));return{scrollTo:w,calculateRange:p,wrapperProps:M,containerStyle:u,currentList:a,containerRef:s}}function pMe(e,t){const n=Qv(t),{state:i,source:r,currentList:a,size:o,containerRef:s}=n,u={overflowY:"auto"},{itemHeight:c,overscan:f=5}=e,h=Jv(i,r,c),g=Zv(r,c),p=e4("vertical",f,g,h,n),y=t4(c,r),v=l.computed(()=>y(i.value.start)),k=i4(c,r);n4(o,t,s,p);const w=r4("vertical",p,y,s),M=l.computed(()=>({style:{width:"100%",height:`${k.value-v.value}px`,marginTop:`${v.value}px`}}));return{calculateRange:p,scrollTo:w,containerStyle:u,wrapperProps:M,currentList:a,containerRef:s}}function gMe(e={}){const{navigator:t=kn,document:n=un}=e,i=l.ref(!1),r=l.shallowRef(null),a=_v({document:n}),o=Le(()=>t&&"wakeLock"in t),s=l.computed(()=>!!r.value&&a.value==="visible");o.value&&(K(r,"release",()=>{var h,g;i.value=(g=(h=r.value)==null?void 0:h.type)!=null?g:!1}),cv(()=>a.value==="visible"&&(n==null?void 0:n.visibilityState)==="visible"&&i.value,h=>{i.value=!1,u(h)}));async function u(h){var g;await((g=r.value)==null?void 0:g.release()),r.value=o.value?await t.wakeLock.request(h):null}async function c(h){a.value==="visible"?await u(h):i.value=h}async function f(){i.value=!1;const h=r.value;r.value=null,await(h==null?void 0:h.release())}return{sentinel:r,isSupported:o,isActive:s,request:c,forceRequest:u,release:f}}function yMe(e={}){const{window:t=me,requestPermissions:n=!0}=e,i=e,r=Le(()=>{if(!t||!("Notification"in t))return!1;try{new Notification("")}catch{return!1}return!0}),a=l.ref(r.value&&"permission"in Notification&&Notification.permission==="granted"),o=l.ref(null),s=async()=>{if(r.value)return!a.value&&Notification.permission!=="denied"&&await Notification.requestPermission()==="granted"&&(a.value=!0),a.value},{on:u,trigger:c}=ln(),{on:f,trigger:h}=ln(),{on:g,trigger:p}=ln(),{on:y,trigger:v}=ln(),k=async M=>{if(!r.value||!a.value)return;const x=Object.assign({},i,M);return o.value=new Notification(x.title||"",x),o.value.onclick=c,o.value.onshow=h,o.value.onerror=p,o.value.onclose=v,o.value},w=()=>{o.value&&o.value.close(),o.value=null};if(n&&At(s),Oe(w),r.value&&t){const M=t.document;K(M,"visibilitychange",x=>{x.preventDefault(),M.visibilityState==="visible"&&w()})}return{isSupported:r,notification:o,ensurePermissions:s,permissionGranted:a,show:k,close:w,onClick:u,onShow:f,onError:g,onClose:y}}const a4="ping";function k1(e){return e===!0?{}:e}function bMe(e,t={}){const{onConnected:n,onDisconnected:i,onError:r,onMessage:a,immediate:o=!0,autoClose:s=!0,protocols:u=[]}=t,c=l.ref(null),f=l.ref("CLOSED"),h=l.ref(),g=wt(e);let p,y,v=!1,k=0,w=[],M;const x=()=>{if(w.length&&h.value&&f.value==="OPEN"){for(const $ of w)h.value.send($);w=[]}},S=()=>{clearTimeout(M),M=void 0},E=($=1e3,D)=>{!Et||!h.value||(v=!0,S(),p==null||p(),h.value.close($,D),h.value=void 0)},I=($,D=!0)=>!h.value||f.value!=="OPEN"?(D&&w.push($),!1):(x(),h.value.send($),!0),A=()=>{if(v||typeof g.value>"u")return;const $=new WebSocket(g.value,u);h.value=$,f.value="CONNECTING",$.onopen=()=>{f.value="OPEN",k=0,n==null||n($),y==null||y(),x()},$.onclose=D=>{if(f.value="CLOSED",i==null||i($,D),!v&&t.autoReconnect&&$===h.value){const{retries:z=-1,delay:H=1e3,onFailed:X}=k1(t.autoReconnect);typeof z=="number"&&(z<0||k<z)?(k+=1,setTimeout(A,H)):typeof z=="function"&&z()?setTimeout(A,H):X==null||X()}},$.onerror=D=>{r==null||r($,D)},$.onmessage=D=>{if(t.heartbeat){S();const{message:z=a4,responseMessage:H=z}=k1(t.heartbeat);if(D.data===H)return}c.value=D.data,a==null||a($,D)}};if(t.heartbeat){const{message:$=a4,interval:D=1e3,pongTimeout:z=1e3}=k1(t.heartbeat),{pause:H,resume:X}=Lr(()=>{I($,!1),M==null&&(M=setTimeout(()=>{E(),v=!1},z))},D,{immediate:!1});p=H,y=X}s&&(Et&&K("beforeunload",()=>E()),Oe(E));const W=()=>{!Et&&!Xw||(E(),v=!1,k=0,A())};return o&&W(),l.watch(g,W),{data:c,status:f,close:E,send:I,open:W,ws:h}}function wMe(e,t,n){const{window:i=me}=n??{},r=l.ref(null),a=l.shallowRef(),o=(...u)=>{a.value&&a.value.postMessage(...u)},s=function(){a.value&&a.value.terminate()};return i&&(typeof e=="string"?a.value=new Worker(e,t):typeof e=="function"?a.value=e():a.value=e,a.value.onmessage=u=>{r.value=u.data},Oe(()=>{a.value&&a.value.terminate()})),{data:r,post:o,terminate:s,worker:a}}function vMe(e){return t=>{const n=t.data[0];return Promise.resolve(e.apply(void 0,n)).then(i=>{postMessage(["SUCCESS",i])}).catch(i=>{postMessage(["ERROR",i])})}}function kMe(e,t){if(e.length===0&&t.length===0)return"";const n=e.map(a=>`'${a}'`).toString(),i=t.filter(a=>typeof a=="function").map(a=>{const o=a.toString();return o.trim().startsWith("function")?o:`const ${a.name} = ${o}`}).join(";"),r=`importScripts(${n});`;return`${n.trim()===""?"":r} ${i}`}function MMe(e,t,n){const i=`${kMe(t,n)}; onmessage=(${vMe})(${e})`,r=new Blob([i],{type:"text/javascript"});return URL.createObjectURL(r)}function CMe(e,t={}){const{dependencies:n=[],localDependencies:i=[],timeout:r,window:a=me}=t,o=l.ref(),s=l.ref("PENDING"),u=l.ref({}),c=l.ref(),f=(y="PENDING")=>{o.value&&o.value._url&&a&&(o.value.terminate(),URL.revokeObjectURL(o.value._url),u.value={},o.value=void 0,a.clearTimeout(c.value),s.value=y)};f(),Oe(f);const h=()=>{const y=MMe(e,n,i),v=new Worker(y);return v._url=y,v.onmessage=k=>{const{resolve:w=()=>{},reject:M=()=>{}}=u.value,[x,S]=k.data;switch(x){case"SUCCESS":w(S),f(x);break;default:M(S),f("ERROR");break}},v.onerror=k=>{const{reject:w=()=>{}}=u.value;k.preventDefault(),w(k),f("ERROR")},r&&(c.value=setTimeout(()=>f("TIMEOUT_EXPIRED"),r)),v},g=(...y)=>new Promise((v,k)=>{var w;u.value={resolve:v,reject:k},(w=o.value)==null||w.postMessage([[...y]]),s.value="RUNNING"});return{workerFn:(...y)=>s.value==="RUNNING"?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(o.value=h(),g(...y)),workerStatus:s,workerTerminate:f}}function xMe(e={}){const{window:t=me}=e;if(!t)return l.ref(!1);const n=l.ref(t.document.hasFocus());return K(t,"blur",()=>{n.value=!1}),K(t,"focus",()=>{n.value=!0}),n}function SMe(e={}){const{window:t=me,behavior:n="auto"}=e;if(!t)return{x:l.ref(0),y:l.ref(0)};const i=l.ref(t.scrollX),r=l.ref(t.scrollY),a=l.computed({get(){return i.value},set(s){scrollTo({left:s,behavior:n})}}),o=l.computed({get(){return r.value},set(s){scrollTo({top:s,behavior:n})}});return K(t,"scroll",()=>{i.value=t.scrollX,r.value=t.scrollY},{capture:!1,passive:!0}),{x:a,y:o}}function _Me(e={}){const{window:t=me,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:a=!0,type:o="inner"}=e,s=l.ref(n),u=l.ref(i),c=()=>{t&&(o==="outer"?(s.value=t.outerWidth,u.value=t.outerHeight):a?(s.value=t.innerWidth,u.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight))};if(c(),At(c),K("resize",c,{passive:!0}),r){const f=Mn("(orientation: portrait)");l.watch(f,()=>c())}return{width:s,height:u}}const TMe=Object.freeze(Object.defineProperty({__proto__:null,DefaultMagicKeysAliasMap:Iv,StorageSerializers:h1,TransitionPresets:aMe,assert:x3e,asyncComputed:fv,autoResetRef:iv,breakpointsAntDesign:Z6e,breakpointsBootstrapV5:K6e,breakpointsMasterCss:nke,breakpointsPrimeFlex:ike,breakpointsQuasar:eke,breakpointsSematic:tke,breakpointsTailwind:G6e,breakpointsVuetify:J6e,breakpointsVuetifyV2:yv,breakpointsVuetifyV3:Q6e,bypassFilter:sl,camelize:Qw,clamp:vd,cloneFnJSON:hl,computedAsync:fv,computedEager:Rw,computedInject:C6e,computedWithControl:e1,containsProp:a1,controlledComputed:e1,controlledRef:z3e,createEventHook:ln,createFetch:Lke,createFilterWrapper:$a,createGlobalState:g3e,createInjectionState:y3e,createReactiveFn:t1,createReusableTemplate:x6e,createSharedComposable:b3e,createSingletonPromise:Jw,createTemplatePromise:_6e,createUnrefFn:T6e,customStorageEventName:m1,debounceFilter:Md,debouncedRef:o1,debouncedWatch:uv,defaultDocument:un,defaultLocation:P6e,defaultNavigator:kn,defaultWindow:me,directiveHooks:E3e,eagerComputed:Rw,executeTransition:Gv,extendRef:Fw,formatDate:sv,formatTimeAgo:Xv,get:w3e,getLifeCycleTarget:dl,getSSRHandler:Pd,hasOwn:Gw,hyphenate:D3e,identity:r1,ignorableWatch:Bo,increaseWithUnit:Zw,injectLocal:Vw,invoke:j3e,isClient:Et,isDef:qw,isDefined:v3e,isIOS:kd,isObject:ol,isWorker:Xw,makeDestructurable:Uw,mapGamepadToXbox360Controller:Xke,noop:Ve,normalizeDate:lv,notNullish:wd,now:_3e,objectEntries:nv,objectOmit:tv,objectPick:ev,onClickOutside:E6e,onKeyDown:D6e,onKeyPressed:N6e,onKeyStroke:xd,onKeyUp:j6e,onLongPress:O6e,onStartTyping:$6e,pausableFilter:i1,pausableWatch:Ho,promiseTimeout:ul,provideLocal:Bw,rand:T3e,reactify:t1,reactifyObject:M3e,reactiveComputed:n1,reactiveOmit:C3e,reactivePick:W3e,refAutoReset:iv,refDebounced:o1,refDefault:O3e,refThrottled:l1,refWithControl:rv,resolveRef:I3e,resolveUnref:k3e,set:L3e,setSSRHandler:fke,syncRef:u1,syncRefs:$3e,templateRef:H6e,throttleFilter:ll,throttledRef:l1,throttledWatch:dv,timestamp:La,toReactive:Yw,toRef:wt,toRefs:d1,toValue:B,tryOnBeforeMount:H3e,tryOnBeforeUnmount:av,tryOnMounted:At,tryOnScopeDispose:Oe,tryOnUnmounted:ov,unrefElement:Ie,until:cl,useActiveElement:pv,useAnimate:R6e,useArrayDifference:B3e,useArrayEvery:V3e,useArrayFilter:F3e,useArrayFind:U3e,useArrayFindIndex:Y3e,useArrayFindLast:q3e,useArrayIncludes:K3e,useArrayJoin:Q3e,useArrayMap:J3e,useArrayReduce:Z3e,useArraySome:e6e,useArrayUnique:i6e,useAsyncQueue:B6e,useAsyncState:gv,useBase64:U6e,useBattery:X6e,useBluetooth:q6e,useBreakpoints:rke,useBroadcastChannel:ake,useBrowserLocation:oke,useCached:ske,useClipboard:lke,useClipboardItems:uke,useCloned:dke,useColorMode:kv,useConfirmDialog:mke,useCounter:r6e,useCssVar:ml,useCurrentElement:Mv,useCycleList:pke,useDark:gke,useDateFormat:l6e,useDebounce:o1,useDebounceFn:Cd,useDebouncedRefHistory:vke,useDeviceMotion:kke,useDeviceOrientation:Sv,useDevicePixelRatio:Mke,useDevicesList:Cke,useDisplayMedia:xke,useDocumentVisibility:_v,useDraggable:Ske,useDropZone:_ke,useElementBounding:Tke,useElementByPoint:Pke,useElementHover:Eke,useElementSize:Tv,useElementVisibility:Ev,useEventBus:Ake,useEventListener:K,useEventSource:Nke,useEyeDropper:jke,useFavicon:Ike,useFetch:Av,useFileDialog:Rke,useFileSystemAccess:Bke,useFocus:Vke,useFocusWithin:Fke,useFps:Uke,useFullscreen:Yke,useGamepad:qke,useGeolocation:Gke,useIdle:Jke,useImage:e5e,useInfiniteScroll:t5e,useIntersectionObserver:Pv,useInterval:u6e,useIntervalFn:Lr,useKeyModifier:i5e,useLastChanged:d6e,useLocalStorage:r5e,useMagicKeys:a5e,useManualRefHistory:xv,useMediaControls:l5e,useMediaQuery:Mn,useMemoize:u5e,useMemory:d5e,useMounted:mv,useMouse:Wv,useMouseInElement:Ov,useMousePressed:f5e,useMutationObserver:Vo,useNavigatorLanguage:h5e,useNetwork:zv,useNow:Lv,useObjectUrl:m5e,useOffsetPagination:p5e,useOnline:g5e,usePageLeave:y5e,useParallax:b5e,useParentElement:w5e,usePerformanceObserver:v5e,usePermission:Sd,usePointer:M5e,usePointerLock:C5e,usePointerSwipe:x5e,usePreferredColorScheme:S5e,usePreferredContrast:_5e,usePreferredDark:p1,usePreferredLanguages:T5e,usePreferredReducedMotion:P5e,usePrevious:E5e,useRafFn:Ra,useRefHistory:g1,useResizeObserver:Ad,useScreenOrientation:Hv,useScreenSafeArea:A5e,useScriptTag:D5e,useScroll:jv,useScrollLock:j5e,useSessionStorage:I5e,useShare:W5e,useSorted:z5e,useSpeechRecognition:L5e,useSpeechSynthesis:$5e,useStepper:H5e,useStorage:Ed,useStorageAsync:R5e,useStyleTag:V5e,useSupported:Le,useSwipe:F5e,useTemplateRefsList:Y5e,useTextDirection:X5e,useTextSelection:G5e,useTextareaAutosize:K5e,useThrottle:l1,useThrottleFn:s1,useThrottledRefHistory:Q5e,useTimeAgo:tMe,useTimeout:c6e,useTimeoutFn:Ro,useTimeoutPoll:nMe,useTimestamp:iMe,useTitle:rMe,useToNumber:f6e,useToString:h6e,useToggle:m6e,useTransition:sMe,useUrlSearchParams:lMe,useUserMedia:uMe,useVModel:Kv,useVModels:dMe,useVibrate:cMe,useVirtualList:fMe,useWakeLock:gMe,useWebNotification:yMe,useWebSocket:bMe,useWebWorker:wMe,useWebWorkerFn:CMe,useWindowFocus:xMe,useWindowScroll:SMe,useWindowSize:_Me,watchArray:p6e,watchAtMost:g6e,watchDebounced:uv,watchDeep:y6e,watchIgnorable:Bo,watchImmediate:b6e,watchOnce:w6e,watchPausable:Ho,watchThrottled:dv,watchTriggerable:v6e,watchWithFilter:$o,whenever:cv},Symbol.toStringTag,{value:"Module"})),PMe=["data-testid"],EMe=["data-testid"],M1=pe(l.defineComponent({__name:"Dialog",props:{open:{type:Boolean},width:{},height:{},noClose:{type:Boolean},dataTestid:{default:"Dialog"}},emits:["close"],setup(e,{emit:t}){const n=e,i=l.ref(null),r=l.useAttrs(),a=l.ref(!1),o=l.computed(()=>({width:n.width,height:n.height})),s=t,u=()=>{var f;(f=i.value)==null||f.close(),s("close")},c=()=>{var f;return n.open?(f=i.value)==null?void 0:f.showModal():u()};return K(i,"mousedown",f=>{!n.noClose&&f.target===i.value&&u()}),K(i,"keydown",f=>{(f.key==="Escape"||f.key==="Esc")&&(n.noClose||u())}),l.onMounted(()=>{l.watchEffect(()=>{n.open!==a.value&&(c(),a.value=n.open)})}),(f,h)=>(l.openBlock(),l.createElementBlock("dialog",l.mergeProps({ref_key:"dialog",ref:i},l.unref(r),{class:"dialog-yui-kit","data-testid":n.dataTestid}),[l.createElementVNode("div",{"data-testid":`${n.dataTestid}-Content`,class:"dialog-yui-kit__dialog-content",style:l.normalizeStyle(o.value)},[l.renderSlot(f.$slots,"default",{},void 0,!0)],12,EMe)],16,PMe))}}),[["__scopeId","data-v-77d9e64d"]]),AMe=["data-testid"],DMe=["data-testid"],C1=pe(l.defineComponent({__name:"Accordion",props:{dataTestid:{default:"Accordion"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("details",{class:"accordion-yui-kit","data-testid":t.dataTestid},[l.createElementVNode("summary",{class:"accordion-yui-kit__summary","data-testid":`${t.dataTestid}-Summary`},[l.renderSlot(n.$slots,"summary",{},void 0,!0),l.createVNode(ve,{name:l.unref(ce).chevronUp,class:"chevron-up","stroke-width":"2","data-testid":`${t.dataTestid}-ChevronUp`},null,8,["name","data-testid"]),l.createVNode(ve,{name:l.unref(ce).chevronDown,class:"chevron-down","stroke-width":"2","data-testid":`${t.dataTestid}-ChevronDown`},null,8,["name","data-testid"])],8,DMe),l.renderSlot(n.$slots,"default",{},void 0,!0)],8,AMe))}}),[["__scopeId","data-v-28a7d53c"]]),NMe=["data-testid"],jMe=["data-testid"],IMe=["data-testid"],WMe=["data-testid","multiple"],x1=pe(l.defineComponent({__name:"DragAndDrop",props:{singleFileMode:{type:Boolean,default:!1},title:{default:"Кликните или перенесите файлы"},dataTestid:{default:"DragAndDrop"}},emits:["fileDropped"],setup(e,{emit:t}){const n=e,i=t,r=l.reactive({isPressed:!1}),a=l.ref(null),o=p=>{const y=p.target;g(y.files)},s=()=>{a.value&&(a.value.value="")},u=p=>{var v;p.preventDefault();const y=(v=p.currentTarget)==null?void 0:v.children[0];y.classList.contains("active")||y.classList.add("active")},c=p=>{p.currentTarget.children[0].classList.remove("active")},f=p=>{var v;p.preventDefault(),g(((v=p.dataTransfer)==null?void 0:v.files)||null),p.currentTarget.children[0].classList.remove("active")},h=()=>{r.isPressed=!r.isPressed},g=p=>{r.isPressed=!1,i("fileDropped",p)};return l.onMounted(()=>{var p;(p=a.value)==null||p.addEventListener("cancel",()=>{r.isPressed=!1})}),(p,y)=>(l.openBlock(),l.createElementBlock("div",{onDragover:u,onDragleave:c,onDrop:f,class:"dnd-yui-kit","data-testid":n.dataTestid},[l.createElementVNode("label",{for:"docsFileSelected",class:l.normalizeClass(["dnd-yui-kit__label",{"is-pressed":r.isPressed}]),onClick:h,"data-testid":`${n.dataTestid}-Label`},[l.createVNode(ve,{name:l.unref(ce).paperClip,"stroke-width":"2","data-testid":`${n.dataTestid}-Icon`},null,8,["name","data-testid"]),l.createElementVNode("span",{class:"dnd-yui-kit__span","data-testid":`${n.dataTestid}-Title`},l.toDisplayString(n.title),9,IMe)],10,jMe),l.createElementVNode("input",{id:"docsFileSelected",onChange:o,onClick:s,type:"file",style:{display:"none"},"data-testid":`${n.dataTestid}-Input`,required:"",multiple:!n.singleFileMode,ref_key:"fileInputRef",ref:a},null,40,WMe)],40,NMe))}}),[["__scopeId","data-v-22312163"]]),OMe=["data-testid"],zMe=["data-testid"],S1=pe(l.defineComponent({__name:"Card",props:{dataTestid:{default:"Card"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("div",{class:"card-yui-kit","data-testid":t.dataTestid},[n.$slots.left?(l.openBlock(),l.createElementBlock("div",{key:0,class:"card-yui-kit__left","data-testid":`${t.dataTestid}-Left`},[l.renderSlot(n.$slots,"left",{},void 0,!0)],8,zMe)):l.createCommentVNode("",!0),l.renderSlot(n.$slots,"default",{},void 0,!0)],8,OMe))}}),[["__scopeId","data-v-00820de1"]]),LMe=(e,t=33)=>e.length>t?e.slice(0,t-3)+"...":e,$Me=["data-testid"],HMe=["data-testid"],RMe=["data-testid"],BMe=["data-testid"],VMe=["onClick","data-testid"],FMe=["data-testid"],UMe=pe(l.defineComponent({__name:"History",props:{modelValue:{},defaultValue:{},placeholder:{},showHistory:{type:Boolean},global:{type:Boolean},options:{},globalResultsFunction:{},isShowList:{type:Boolean},isShowButtonHistory:{type:Boolean},searchValue:{},width:{},height:{},dataTestid:{default:"History"}},emits:["choosePost","unmount-remove"],setup(e,{emit:t}){const n=e,i=l.reactive({isShowList:n.isShowList,isShowButtonHistory:n.isShowButtonHistory}),r=t,a=l.computed(()=>({"history-yui-kit__list":!0,"history-yui-kit__list--opened":i.isShowList,"history-yui-kit__list--scroll":n.modelValue&&n.modelValue.length>=5&&i.isShowList})),o=()=>{i.isShowList=!0,i.isShowButtonHistory=!1},s=c=>{r("unmount-remove",c)},u=c=>{r("choosePost",c)};return(c,f)=>{var h;return n.showHistory?(l.openBlock(),l.createElementBlock("div",{key:0,class:"search-yui-kit__history history-yui-kit","data-testid":n.dataTestid},[i.isShowButtonHistory?(l.openBlock(),l.createBlock(Ot,{key:0,type:l.unref(ut).outline,onClick:o,class:l.normalizeClass("history-yui-kit__button-text show-result"),"data-testid":`${n.dataTestid}-ShowResult`},{default:l.withCtx(()=>[l.createElementVNode("span",{"data-testid":`${n.dataTestid}-ShowResult-Title`}," Просмотреть историю запросов ",8,HMe)]),_:1},8,["type","data-testid"])):l.createCommentVNode("",!0),(h=n.modelValue)!=null&&h.length?(l.openBlock(),l.createElementBlock("ul",{key:1,class:l.normalizeClass(a.value),"data-testid":`${n.dataTestid}-ShowResult-List`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.modelValue,(g,p)=>(l.openBlock(),l.createElementBlock("li",{class:"history-yui-kit__item",key:g,"data-testid":`${n.dataTestid}-ShowResult-Title${p}`},[l.createElementVNode("span",{onClick:y=>u(g),"data-testid":`${n.dataTestid}-HandleChoosePost-Title${p}`},l.toDisplayString(l.unref(LMe)(g)),9,VMe),l.createVNode(Ot,{type:l.unref(ut).ghost,onClick:y=>s(g),"data-testid":`${n.dataTestid}-ButtonItem-Remove${p}`},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).exitSmall,width:16,"data-testid":`${n.dataTestid}-ButtonItem-RemoveIcon${p}`},null,8,["name","data-testid"])]),_:2},1032,["type","onClick","data-testid"])],8,BMe))),128))],10,RMe)):i.isShowButtonHistory?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(Ot,{key:2,type:l.unref(ut).outline,class:l.normalizeClass("history-yui-kit__button-text"),"data-testid":`${n.dataTestid}-ButtonTypeEnum-RemoveButton`},{default:l.withCtx(()=>[l.createElementVNode("span",{"data-testid":`${n.dataTestid}-ButtonTypeEnum-EmptyContent`,class:"empty-content"},"По вашему запросу ничего не найдено",8,FMe)]),_:1},8,["type","data-testid"]))],8,$Me)):l.createCommentVNode("",!0)}}}),[["__scopeId","data-v-fe2f97fd"]]),YMe=["data-testid"],XMe=["data-testid"],qMe=["data-testid","onClick"],GMe=["data-testid"],KMe=["data-testid"],QMe=["data-testid"],JMe=["data-testid"],ZMe=["data-testid"],e9e=["data-testid"],t9e=pe(l.defineComponent({__name:"SearchResult",props:{defaultValue:{},placeholder:{},showHistory:{type:Boolean},global:{type:Boolean},options:{},globalResultsFunction:{default:()=>[]},isShowList:{type:Boolean},isShowButtonHistory:{type:Boolean},searchValue:{default:""},width:{},height:{},modelValue:{},dataTestid:{default:"SearchResult"}},emits:["choose-result","scroll-paginate"],setup(e,{emit:t}){const n=e,i=t,r=l.ref(null),a=s=>{i("choose-result",s)},o=s=>{const u=s.target,{scrollTop:c,scrollHeight:f,clientHeight:h}=u;f-c-h<5&&i("scroll-paginate")};return l.watch(()=>n.searchValue,()=>{r.value&&(r.value.scrollTop=0)}),(s,u)=>(l.openBlock(),l.createElementBlock("div",{class:"search-yui-kit__result result-yui-kit","data-testid":n.dataTestid},[n.globalResultsFunction.length>0?(l.openBlock(),l.createElementBlock("ul",{key:0,class:"result-yui-kit__list","data-testid":`${n.dataTestid}-List`,onScroll:o,ref_key:"resultContentRef",ref:r},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.globalResultsFunction,(c,f)=>(l.openBlock(),l.createElementBlock("li",{class:"result-yui-kit__list__item",key:f,"data-testid":`${n.dataTestid}-List-Items${f}`,onClick:h=>a(c)},[l.createVNode(ve,{name:c.icon||l.unref(ce).document,"data-testid":`${n.dataTestid}-Items-Icon${f}`,width:16,height:16,class:"result-yui-kit__list__item__icon"},null,8,["name","data-testid"]),l.createElementVNode("span",{"data-testid":`${n.dataTestid}-Result-NameArea${f}`},l.toDisplayString(c.nameArea),9,GMe),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${n.dataTestid}-Result-Slash${f}`},"/",8,KMe),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${n.dataTestid}-Result-SearchResult${f}`},l.toDisplayString(c.searchResult),9,QMe)],8,qMe))),128))],40,XMe)):n.searchValue?(l.openBlock(),l.createElementBlock("ul",{key:1,class:"result-yui-kit__list result-yui-kit__empty","data-testid":`${n.dataTestid}-Nothing-List`},[l.createElementVNode("li",{class:"result-yui-kit__empty__item","data-testid":`${n.dataTestid}-Nothing-Items`},[l.createElementVNode("p",{"data-testid":`${n.dataTestid}-Nothing-Text`}," По вашему запросу ничего не найдено ",8,e9e)],8,ZMe)],8,JMe)):l.createCommentVNode("",!0)],8,YMe))}}),[["__scopeId","data-v-a8d9b3ed"]]),o4=()=>{const e=l.ref(localStorage.getItem("historySearch")?JSON.parse(localStorage.getItem("historySearch")):[]);return{getHistorySearch:e,addHistorySearch:i=>{i&&(e.value=e.value.filter(r=>r!==i),e.value.unshift(i),e.value.length>10&&e.value.pop(),localStorage.setItem("historySearch",JSON.stringify(e.value)))},removeHistorySearch:i=>{e.value=e.value.filter(r=>r!==i),localStorage.setItem("historySearch",JSON.stringify(e.value))}}},n9e=["data-testid"],i9e=["data-testid"],r9e=["data-testid"],a9e=["placeholder","data-testid"],yl=pe(l.defineComponent({__name:"Search",props:{defaultValue:{},placeholder:{default:"Поиск"},showHistory:{type:Boolean},global:{type:Boolean,default:!1},options:{},globalResultsFunction:{default:()=>[]},isShowList:{type:Boolean},isShowButtonHistory:{type:Boolean},searchValue:{},width:{},height:{default:"42px"},modelValue:{default:""},dataTestid:{default:"Search"}},emits:["enter","input","update:modelValue","choose-result","scroll-paginate","choosed"],setup(e,{emit:t}){const n=e,i=t,{getHistorySearch:r,removeHistorySearch:a,addHistorySearch:o}=o4(),s=l.reactive({isShowList:!1,isShowButtonHistory:n.showHistory??!1,searchValue:n.modelValue,placeholder:n.placeholder??"",focused:!1}),u={position:"relative",width:"100%",height:n.height},c=S=>{s.searchValue=S.trim(),s.isShowList=!1,i("input",S),i("update:modelValue",s.searchValue),i("choosed",s.searchValue),i("enter",s.searchValue)},f=S=>{s.isShowList=!1,i("choose-result",S)},h=()=>{i("scroll-paginate")},g=l.computed(()=>({"search-yui-kit__icon-wrapper":!0})),p=()=>{s.focused=!0},y=()=>{setTimeout(()=>{s.focused=!1},500)},v=()=>{s.isShowList=!1,s.isShowButtonHistory=!1},k=()=>{s.isShowButtonHistory=!0,s.isShowButtonHistory||(s.isShowList=!0)},w=()=>{i("enter",s.searchValue.trim()),n.showHistory&&s.searchValue&&o(s.searchValue.trim())},M=()=>{const S=s.searchValue.trim();i("input",S),i("update:modelValue",S)},x=()=>{s.searchValue&&(s.searchValue="",M(),w())};return l.onMounted(()=>{n.defaultValue&&(s.searchValue=n.defaultValue)}),l.watch(()=>n.modelValue,S=>{s.searchValue=S}),(S,E)=>(l.openBlock(),l.createElementBlock("div",{class:"search-yui-kit",style:u,onMousemove:k,onMouseleave:v,"data-testid":n.dataTestid},[l.createElementVNode("div",{class:l.normalizeClass(g.value),"data-testid":`${n.dataTestid}-Dropdown-Wrapper`},[l.createElementVNode("div",{class:"search-yui-kit__dropdown","data-testid":`${n.dataTestid}-Dropdown`},[l.withDirectives(l.createElementVNode("input",{type:"text",class:"search-yui-kit__input","onUpdate:modelValue":E[0]||(E[0]=I=>s.searchValue=I),placeholder:n.placeholder,onKeydown:l.withKeys(w,["enter"]),onInput:M,onFocus:p,onBlur:y,"data-testid":`${n.dataTestid}-Dropdown-Input`},null,40,a9e),[[l.vModelText,s.searchValue]]),l.createVNode(ve,{class:"search-icon",name:l.unref(ce).searchNormal},null,8,["name"]),s.searchValue?(l.openBlock(),l.createBlock(Ot,{key:0,class:"clear-button",type:l.unref(ut).ghost,onClick:x,"data-testid":`${n.dataTestid}-Clear-Button`},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).exitSmall,color:"var(--grey4)","data-testid":`${n.dataTestid}-Clear-Button-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","data-testid"])):l.createCommentVNode("",!0)],8,r9e)],10,i9e),!n.global&&n.showHistory?(l.openBlock(),l.createBlock(UMe,{key:0,"show-history":n.showHistory,"is-show-button-history":s.isShowButtonHistory,"is-show-list":s.isShowList,"model-value":l.unref(r),onUnmountRemove:l.unref(a),onChoosePost:c,"data-testid":`${n.dataTestid}-Dropdown-History`},null,8,["show-history","is-show-button-history","is-show-list","model-value","onUnmountRemove","data-testid"])):l.createCommentVNode("",!0),n.global&&s.focused?(l.openBlock(),l.createBlock(t9e,{key:1,"global-results-function":n.globalResultsFunction,"search-value":s.searchValue,"data-testid":`${n.dataTestid}-Dropdown-SearchResult`,onChooseResult:f,onScrollPaginate:h},null,8,["global-results-function","search-value","data-testid"])):l.createCommentVNode("",!0)],40,n9e))}}),[["__scopeId","data-v-4313b2b7"]]);var bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wd={exports:{}};/**
|
|
1266
1266
|
* @license
|
|
1267
1267
|
* Lodash <https://lodash.com/>
|
|
1268
1268
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -1288,21 +1288,21 @@ __p += '`),ze&&(ee+=`' +
|
|
|
1288
1288
|
function print() { __p += __j.call(arguments, '') }
|
|
1289
1289
|
`:`;
|
|
1290
1290
|
`)+ee+`return __p
|
|
1291
|
-
}`;var Ae=b8(function(){return $e(j,he+"return "+ee).apply(n,L)});if(Ae.source=ee,uy(Ae))throw Ae;return Ae}function M$e(d){return He(d).toLowerCase()}function C$e(d){return He(d).toUpperCase()}function x$e(d,m,b){if(d=He(d),d&&(b||m===n))return TM(d);if(!d||!(m=Bn(m)))return d;var C=_i(d),P=_i(m),j=PM(C,P),L=EM(C,P)+1;return ba(C,j,L).join("")}function S$e(d,m,b){if(d=He(d),d&&(b||m===n))return d.slice(0,DM(d)+1);if(!d||!(m=Bn(m)))return d;var C=_i(d),P=EM(C,_i(m))+1;return ba(C,0,P).join("")}function _$e(d,m,b){if(d=He(d),d&&(b||m===n))return d.replace(u0,"");if(!d||!(m=Bn(m)))return d;var C=_i(d),P=PM(C,_i(m));return ba(C,P).join("")}function T$e(d,m){var b=D,C=z;if(lt(m)){var P="separator"in m?m.separator:P;b="length"in m?Te(m.length):b,C="omission"in m?Bn(m.omission):C}d=He(d);var j=d.length;if(Cs(d)){var L=_i(d);j=L.length}if(b>=j)return d;var R=b-xs(C);if(R<1)return C;var F=L?ba(L,0,R).join(""):d.slice(0,R);if(P===n)return F+C;if(L&&(R+=F.length-R),dy(P)){if(d.slice(R).search(P)){var Q,J=F;for(P.global||(P=_0(P.source,He(G5.exec(P))+"g")),P.lastIndex=0;Q=P.exec(J);)var ee=Q.index;F=F.slice(0,ee===n?R:ee)}}else if(d.indexOf(Bn(P),R)!=R){var oe=F.lastIndexOf(P);oe>-1&&(F=F.slice(0,oe))}return F+C}function P$e(d){return d=He(d),d&&$Ne.test(d)?d.replace(Y5,iIe):d}var E$e=Ds(function(d,m,b){return d+(b?" ":"")+m.toUpperCase()}),hy=w9("toUpperCase");function y8(d,m,b){return d=He(d),m=b?n:m,m===n?Jje(d)?oIe(d):Vje(d):d.match(m)||[]}var b8=De(function(d,m){try{return Hn(d,n,m)}catch(b){return uy(b)?b:new xe(b)}}),A$e=wr(function(d,m){return oi(m,function(b){b=Zi(b),yr(d,b,sy(d[b],d))}),d});function D$e(d){var m=d==null?0:d.length,b=we();return d=m?at(d,function(C){if(typeof C[1]!="function")throw new si(o);return[b(C[0]),C[1]]}):[],De(function(C){for(var P=-1;++P<m;){var j=d[P];if(Hn(j[0],this,C))return Hn(j[1],this,C)}})}function N$e(d){return iWe(ui(d,h))}function my(d){return function(){return d}}function j$e(d,m){return d==null||d!==d?m:d}var I$e=k9(),W$e=k9(!0);function Dn(d){return d}function py(d){return QM(typeof d=="function"?d:ui(d,h))}function O$e(d){return ZM(ui(d,h))}function z$e(d,m){return e9(d,ui(m,h))}var L$e=De(function(d,m){return function(b){return vu(b,d,m)}}),$$e=De(function(d,m){return function(b){return vu(d,b,m)}});function gy(d,m,b){var C=Wt(m),P=Qf(m,C);b==null&&!(lt(m)&&(P.length||!C.length))&&(b=m,m=d,d=this,P=Qf(m,Wt(m)));var j=!(lt(b)&&"chain"in b)||!!b.chain,L=kr(d);return oi(P,function(R){var F=m[R];d[R]=F,L&&(d.prototype[R]=function(){var Q=this.__chain__;if(j||Q){var J=d(this.__wrapped__),ee=J.__actions__=Pn(this.__actions__);return ee.push({func:F,args:arguments,thisArg:d}),J.__chain__=Q,J}return F.apply(d,fa([this.value()],arguments))})}),d}function H$e(){return Rt._===this&&(Rt._=fIe),this}function yy(){}function R$e(d){return d=Te(d),De(function(m){return t9(m,d)})}var B$e=q0(at),V$e=q0(MM),F$e=q0(w0);function w8(d){return ty(d)?v0(Zi(d)):vWe(d)}function U$e(d){return function(m){return d==null?n:go(d,m)}}var Y$e=C9(),X$e=C9(!0);function by(){return[]}function wy(){return!1}function q$e(){return{}}function G$e(){return""}function K$e(){return!0}function Q$e(d,m){if(d=Te(d),d<1||d>ue)return[];var b=xt,C=Jt(d,xt);m=we(m),d-=xt;for(var P=C0(C,m);++b<d;)m(b);return P}function J$e(d){return Se(d)?at(d,Zi):Vn(d)?[d]:Pn($9(He(d)))}function Z$e(d){var m=++dIe;return He(d)+m}var eHe=ih(function(d,m){return d+m},0),tHe=G0("ceil"),nHe=ih(function(d,m){return d/m},1),iHe=G0("floor");function rHe(d){return d&&d.length?Kf(d,Dn,I0):n}function aHe(d,m){return d&&d.length?Kf(d,we(m,2),I0):n}function oHe(d){return SM(d,Dn)}function sHe(d,m){return SM(d,we(m,2))}function lHe(d){return d&&d.length?Kf(d,Dn,L0):n}function uHe(d,m){return d&&d.length?Kf(d,we(m,2),L0):n}var dHe=ih(function(d,m){return d*m},1),cHe=G0("round"),fHe=ih(function(d,m){return d-m},0);function hHe(d){return d&&d.length?M0(d,Dn):0}function mHe(d,m){return d&&d.length?M0(d,we(m,2)):0}return N.after=Oze,N.ary=K9,N.assign=CLe,N.assignIn=d8,N.assignInWith=gh,N.assignWith=xLe,N.at=SLe,N.before=Q9,N.bind=sy,N.bindAll=A$e,N.bindKey=J9,N.castArray=qze,N.chain=X9,N.chunk=iOe,N.compact=rOe,N.concat=aOe,N.cond=D$e,N.conforms=N$e,N.constant=my,N.countBy=hze,N.create=_Le,N.curry=Z9,N.curryRight=e8,N.debounce=t8,N.defaults=TLe,N.defaultsDeep=PLe,N.defer=zze,N.delay=Lze,N.difference=oOe,N.differenceBy=sOe,N.differenceWith=lOe,N.drop=uOe,N.dropRight=dOe,N.dropRightWhile=cOe,N.dropWhile=fOe,N.fill=hOe,N.filter=pze,N.flatMap=bze,N.flatMapDeep=wze,N.flatMapDepth=vze,N.flatten=V9,N.flattenDeep=mOe,N.flattenDepth=pOe,N.flip=$ze,N.flow=I$e,N.flowRight=W$e,N.fromPairs=gOe,N.functions=WLe,N.functionsIn=OLe,N.groupBy=kze,N.initial=bOe,N.intersection=wOe,N.intersectionBy=vOe,N.intersectionWith=kOe,N.invert=LLe,N.invertBy=$Le,N.invokeMap=Cze,N.iteratee=py,N.keyBy=xze,N.keys=Wt,N.keysIn=An,N.map=dh,N.mapKeys=RLe,N.mapValues=BLe,N.matches=O$e,N.matchesProperty=z$e,N.memoize=fh,N.merge=VLe,N.mergeWith=c8,N.method=L$e,N.methodOf=$$e,N.mixin=gy,N.negate=hh,N.nthArg=R$e,N.omit=FLe,N.omitBy=ULe,N.once=Hze,N.orderBy=Sze,N.over=B$e,N.overArgs=Rze,N.overEvery=V$e,N.overSome=F$e,N.partial=ly,N.partialRight=n8,N.partition=_ze,N.pick=YLe,N.pickBy=f8,N.property=w8,N.propertyOf=U$e,N.pull=SOe,N.pullAll=U9,N.pullAllBy=_Oe,N.pullAllWith=TOe,N.pullAt=POe,N.range=Y$e,N.rangeRight=X$e,N.rearg=Bze,N.reject=Eze,N.remove=EOe,N.rest=Vze,N.reverse=ay,N.sampleSize=Dze,N.set=qLe,N.setWith=GLe,N.shuffle=Nze,N.slice=AOe,N.sortBy=Wze,N.sortedUniq=zOe,N.sortedUniqBy=LOe,N.split=b$e,N.spread=Fze,N.tail=$Oe,N.take=HOe,N.takeRight=ROe,N.takeRightWhile=BOe,N.takeWhile=VOe,N.tap=rze,N.throttle=Uze,N.thru=uh,N.toArray=s8,N.toPairs=h8,N.toPairsIn=m8,N.toPath=J$e,N.toPlainObject=u8,N.transform=KLe,N.unary=Yze,N.union=FOe,N.unionBy=UOe,N.unionWith=YOe,N.uniq=XOe,N.uniqBy=qOe,N.uniqWith=GOe,N.unset=QLe,N.unzip=oy,N.unzipWith=Y9,N.update=JLe,N.updateWith=ZLe,N.values=Is,N.valuesIn=e$e,N.without=KOe,N.words=y8,N.wrap=Xze,N.xor=QOe,N.xorBy=JOe,N.xorWith=ZOe,N.zip=eze,N.zipObject=tze,N.zipObjectDeep=nze,N.zipWith=ize,N.entries=h8,N.entriesIn=m8,N.extend=d8,N.extendWith=gh,gy(N,N),N.add=eHe,N.attempt=b8,N.camelCase=r$e,N.capitalize=p8,N.ceil=tHe,N.clamp=t$e,N.clone=Gze,N.cloneDeep=Qze,N.cloneDeepWith=Jze,N.cloneWith=Kze,N.conformsTo=Zze,N.deburr=g8,N.defaultTo=j$e,N.divide=nHe,N.endsWith=a$e,N.eq=Pi,N.escape=o$e,N.escapeRegExp=s$e,N.every=mze,N.find=gze,N.findIndex=R9,N.findKey=ELe,N.findLast=yze,N.findLastIndex=B9,N.findLastKey=ALe,N.floor=iHe,N.forEach=q9,N.forEachRight=G9,N.forIn=DLe,N.forInRight=NLe,N.forOwn=jLe,N.forOwnRight=ILe,N.get=cy,N.gt=eLe,N.gte=tLe,N.has=zLe,N.hasIn=fy,N.head=F9,N.identity=Dn,N.includes=Mze,N.indexOf=yOe,N.inRange=n$e,N.invoke=HLe,N.isArguments=wo,N.isArray=Se,N.isArrayBuffer=nLe,N.isArrayLike=En,N.isArrayLikeObject=gt,N.isBoolean=iLe,N.isBuffer=wa,N.isDate=rLe,N.isElement=aLe,N.isEmpty=oLe,N.isEqual=sLe,N.isEqualWith=lLe,N.isError=uy,N.isFinite=uLe,N.isFunction=kr,N.isInteger=i8,N.isLength=mh,N.isMap=r8,N.isMatch=dLe,N.isMatchWith=cLe,N.isNaN=fLe,N.isNative=hLe,N.isNil=pLe,N.isNull=mLe,N.isNumber=a8,N.isObject=lt,N.isObjectLike=pt,N.isPlainObject=_u,N.isRegExp=dy,N.isSafeInteger=gLe,N.isSet=o8,N.isString=ph,N.isSymbol=Vn,N.isTypedArray=js,N.isUndefined=yLe,N.isWeakMap=bLe,N.isWeakSet=wLe,N.join=MOe,N.kebabCase=l$e,N.last=ci,N.lastIndexOf=COe,N.lowerCase=u$e,N.lowerFirst=d$e,N.lt=vLe,N.lte=kLe,N.max=rHe,N.maxBy=aHe,N.mean=oHe,N.meanBy=sHe,N.min=lHe,N.minBy=uHe,N.stubArray=by,N.stubFalse=wy,N.stubObject=q$e,N.stubString=G$e,N.stubTrue=K$e,N.multiply=dHe,N.nth=xOe,N.noConflict=H$e,N.noop=yy,N.now=ch,N.pad=c$e,N.padEnd=f$e,N.padStart=h$e,N.parseInt=m$e,N.random=i$e,N.reduce=Tze,N.reduceRight=Pze,N.repeat=p$e,N.replace=g$e,N.result=XLe,N.round=cHe,N.runInContext=V,N.sample=Aze,N.size=jze,N.snakeCase=y$e,N.some=Ize,N.sortedIndex=DOe,N.sortedIndexBy=NOe,N.sortedIndexOf=jOe,N.sortedLastIndex=IOe,N.sortedLastIndexBy=WOe,N.sortedLastIndexOf=OOe,N.startCase=w$e,N.startsWith=v$e,N.subtract=fHe,N.sum=hHe,N.sumBy=mHe,N.template=k$e,N.times=Q$e,N.toFinite=Mr,N.toInteger=Te,N.toLength=l8,N.toLower=M$e,N.toNumber=fi,N.toSafeInteger=MLe,N.toString=He,N.toUpper=C$e,N.trim=x$e,N.trimEnd=S$e,N.trimStart=_$e,N.truncate=T$e,N.unescape=P$e,N.uniqueId=Z$e,N.upperCase=E$e,N.upperFirst=hy,N.each=q9,N.eachRight=G9,N.first=F9,gy(N,function(){var d={};return Qi(N,function(m,b){Ue.call(N.prototype,b)||(d[b]=m)}),d}(),{chain:!1}),N.VERSION=i,oi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){N[d].placeholder=N}),oi(["drop","take"],function(d,m){We.prototype[d]=function(b){b=b===n?1:Pt(Te(b),0);var C=this.__filtered__&&!m?new We(this):this.clone();return C.__filtered__?C.__takeCount__=Jt(b,C.__takeCount__):C.__views__.push({size:Jt(b,xt),type:d+(C.__dir__<0?"Right":"")}),C},We.prototype[d+"Right"]=function(b){return this.reverse()[d](b).reverse()}}),oi(["filter","map","takeWhile"],function(d,m){var b=m+1,C=b==re||b==q;We.prototype[d]=function(P){var j=this.clone();return j.__iteratees__.push({iteratee:we(P,3),type:b}),j.__filtered__=j.__filtered__||C,j}}),oi(["head","last"],function(d,m){var b="take"+(m?"Right":"");We.prototype[d]=function(){return this[b](1).value()[0]}}),oi(["initial","tail"],function(d,m){var b="drop"+(m?"":"Right");We.prototype[d]=function(){return this.__filtered__?new We(this):this[b](1)}}),We.prototype.compact=function(){return this.filter(Dn)},We.prototype.find=function(d){return this.filter(d).head()},We.prototype.findLast=function(d){return this.reverse().find(d)},We.prototype.invokeMap=De(function(d,m){return typeof d=="function"?new We(this):this.map(function(b){return vu(b,d,m)})}),We.prototype.reject=function(d){return this.filter(hh(we(d)))},We.prototype.slice=function(d,m){d=Te(d);var b=this;return b.__filtered__&&(d>0||m<0)?new We(b):(d<0?b=b.takeRight(-d):d&&(b=b.drop(d)),m!==n&&(m=Te(m),b=m<0?b.dropRight(-m):b.take(m-d)),b)},We.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},We.prototype.toArray=function(){return this.take(xt)},Qi(We.prototype,function(d,m){var b=/^(?:filter|find|map|reject)|While$/.test(m),C=/^(?:head|last)$/.test(m),P=N[C?"take"+(m=="last"?"Right":""):m],j=C||/^find/.test(m);P&&(N.prototype[m]=function(){var L=this.__wrapped__,R=C?[1]:arguments,F=L instanceof We,Q=R[0],J=F||Se(L),ee=function(je){var ze=P.apply(N,fa([je],R));return C&&oe?ze[0]:ze};J&&b&&typeof Q=="function"&&Q.length!=1&&(F=J=!1);var oe=this.__chain__,he=!!this.__actions__.length,ke=j&&!oe,Ae=F&&!he;if(!j&&J){L=Ae?L:new We(this);var Me=d.apply(L,R);return Me.__actions__.push({func:uh,args:[ee],thisArg:n}),new li(Me,oe)}return ke&&Ae?d.apply(this,R):(Me=this.thru(ee),ke?C?Me.value()[0]:Me.value():Me)})}),oi(["pop","push","shift","sort","splice","unshift"],function(d){var m=Wf[d],b=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",C=/^(?:pop|shift)$/.test(d);N.prototype[d]=function(){var P=arguments;if(C&&!this.__chain__){var j=this.value();return m.apply(Se(j)?j:[],P)}return this[b](function(L){return m.apply(Se(L)?L:[],P)})}}),Qi(We.prototype,function(d,m){var b=N[m];if(b){var C=b.name+"";Ue.call(Ps,C)||(Ps[C]=[]),Ps[C].push({name:m,func:b})}}),Ps[nh(n,w).name]=[{name:"wrapper",func:n}],We.prototype.clone=PIe,We.prototype.reverse=EIe,We.prototype.value=AIe,N.prototype.at=aze,N.prototype.chain=oze,N.prototype.commit=sze,N.prototype.next=lze,N.prototype.plant=dze,N.prototype.reverse=cze,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=fze,N.prototype.first=N.prototype.head,hu&&(N.prototype[hu]=uze),N},Ss=sIe();co?((co.exports=Ss)._=Ss,p0._=Ss):Rt._=Ss}).call(bl)}(Wd,Wd.exports);var Hi=Wd.exports;const o9e=["data-testid"],s9e=["data-testid"],l9e=["data-testid"],u9e=["data-testid"],d9e=["data-testid"],c9e=["data-testid"],f9e=["data-testid"],h9e=["data-testid"],m9e=["data-testid"],p9e=["data-testid"],g9e=["data-testid"],y9e=["data-testid"],b9e=["data-testid"],w9e=["data-testid"],v9e=["data-testid"],k9e=["data-testid"],M9e=["onClick","data-testid"],C9e=l.defineComponent({__name:"Filter",props:{title:{},iconName:{default:ce.filter},multiselect:{type:Boolean,default:!1},options:{},defaultValue:{},closeOnSelect:{type:Boolean},searchable:{type:Boolean},dataTestid:{default:"Filter"}},emits:["scroll"],setup(e,{emit:t}){const n=e,i=l.reactive({options:[],isShow:!1,searchString:"",choosenStatus:!1,searchItems:[]}),r=t,a=l.computed(()=>({"filter-yui-kit__counter":!0,"counter-yui-kit":!0,"counter-yui-kit--search":n.searchable})),o=l.computed(()=>({"filter-yui-kit__select-list":!0,"selected-yui-kit":!0,"selected-yui-kit--search":n.searchable,"border-none-yui-kit":n.searchable&&y.value.length<2})),s=l.computed(()=>({"filter-yui-kit__wrapper":!0,"active-yui-kit":i.isShow,"filter-yui-kit--search":n.searchable})),u=l.computed(()=>{var E,I;return y.value.length>1&&n.searchable?(E=y.value[1])==null?void 0:E.value:(I=y.value[0])==null?void 0:I.value}),c=Object.values(tt),f=E=>{i.searchString=E.trim()},h=E=>{setTimeout(()=>{i.searchString=E},1e3)},g=()=>i.isShow=!i.isShow,p=E=>{E.stopPropagation(),i.options.forEach((I,A)=>w(I,A)),i.isShow=!1},y=l.computed(()=>{let E=i.options.filter(I=>I.choose);return n.searchable&&E.length>1&&(E=E.filter(I=>I.type!==tt.default)),E}),v=l.computed(()=>i.options.filter(E=>{let I=!0;return i.searchString&&(I=E.value.toLowerCase().includes(i.searchString.toLowerCase()),I)?E:!E.choose&&I})),k=E=>{n.multiselect||i.options.forEach(I=>I!==E&&(I.choose=!1)),E.choose=!E.choose,y.value.length||i.options.forEach((I,A)=>{w(I,A)})},w=(E,I)=>{typeof n.defaultValue=="string"&&E.value===n.defaultValue?E.choose=!0:Hi.isArray(n.defaultValue)?n.defaultValue.forEach(W=>W===E.value&&(E.choose=!0)):E.choose=I===0},M=()=>{i.isShow=!1,i.searchString&&(i.searchString="")},x=E=>{const I=E.target;I.scrollHeight-I.scrollTop===I.clientHeight&&r("scroll",!0)},S=l.computed(()=>{var E,I,A;return y.value.length<=1&&n.searchable?((E=y.value[0])==null?void 0:E.type)===tt.default||(I=y.value[0])==null?void 0:I.type:(A=y.value[0])==null?void 0:A.type});return l.onMounted(()=>{i.options=n.options.map((E,I)=>{const A={value:typeof E=="string"?E:E.value,type:typeof E=="string"?"blue":E.type,choose:!1};return w(A,I),n.searchable&&A.type===tt.default&&(A.value="Не выбрано"),A})}),(E,I)=>(l.openBlock(),l.createElementBlock("div",{class:"filter-yui-kit","data-testid":n.dataTestid},[l.createElementVNode("div",{class:l.normalizeClass(s.value),onClick:g,"data-testid":`${n.dataTestid}-Wrapper`},[l.createVNode(ve,{name:n.iconName,"data-testid":`${n.dataTestid}-Icon`},null,8,["name","data-testid"]),l.createElementVNode("span",{"data-testid":`${n.dataTestid}-Title`},l.toDisplayString(n.title),9,l9e),l.createVNode(Vt,{disabled:!0,type:S.value??l.unref(tt).default,text:u.value,style:"margin:0 3px;","data-testid":`${n.dataTestid}-Badges`},null,8,["type","text","data-testid"]),l.createElementVNode("div",{class:l.normalizeClass(a.value),"data-testid":`${n.dataTestid}-Counter`},[y.value.length>1?(l.openBlock(),l.createElementBlock("span",{key:0,class:"counter-yui-kit__value","data-testid":`${n.dataTestid}-Counter-Value`},l.toDisplayString("+"+y.value.length),9,d9e)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"counter-yui-kit__list","data-testid":`${n.dataTestid}-Counter-List`},[l.createElementVNode("div",{class:"counter-yui-kit__list-wrapper","data-testid":`${n.dataTestid}-CounterList-Wrapper`},[l.createElementVNode("ul",{class:"filter-yui-kit__select-list select-yui-kit-counter",style:"padding: 2px; gap: 2px","data-testid":`${n.dataTestid}-SelectListCounter-Counter`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(y.value,(A,W)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:A.value,"data-testid":`${n.dataTestid}-SelectList-SelectItem${W}`},[l.createVNode(Vt,{type:n.searchable?l.unref(tt).blue:l.unref(c)[W],disabled:!0,text:A.value,"data-testid":`${n.dataTestid}-SelectList-BadgesTypeEnum${W}`},null,8,["type","text","data-testid"])],8,m9e))),128))],8,h9e)],8,f9e)],8,c9e)],10,u9e),l.createElementVNode("button",{type:"button",class:"filter-yui-kit__close",onClick:l.withModifiers(p,["stop"]),"data-testid":`${n.dataTestid}-SelectList-ClearFilter`},[l.createVNode(ve,{name:l.unref(ce).exitBig},null,8,["name"])],8,p9e)],10,s9e),i.isShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter-yui-kit__select-wrapper",onMouseleave:M,"data-testid":`${n.dataTestid}-SelectList-SelectWrapper`},[l.createElementVNode("ul",{class:l.normalizeClass(o.value),"data-testid":`${n.dataTestid}-Select-List`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(y.value,(A,W)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:A.value,"data-testid":`${n.dataTestid}-Select-ListItem${W}`},[l.createVNode(Vt,{disabled:!0,choosed:A.choose,type:n.searchable?l.unref(tt).blue:l.unref(c)[W],onClick:$=>k(A),text:A.value,"data-testid":`${n.dataTestid}-Select-Badges${W}`},null,8,["choosed","type","onClick","text","data-testid"])],8,b9e))),128))],10,y9e),n.searchable?(l.openBlock(),l.createBlock(yl,{key:0,modelValue:i.searchString,"onUpdate:modelValue":I[0]||(I[0]=A=>i.searchString=A),onEnter:f,onInput:h,style:{margin:"5px 0"},"data-testid":`${n.dataTestid}-Search`},null,8,["modelValue","data-testid"])):l.createCommentVNode("",!0),i.isShow&&!n.searchable?(l.openBlock(),l.createElementBlock("ul",{key:1,class:"filter-yui-kit__select-list","data-testid":`${n.dataTestid}-SelectList-NoSearch`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(v.value,(A,W)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:A.value,style:l.normalizeStyle(W===0?{paddingTop:"10px"}:""),"data-testid":`${n.dataTestid}-SelectList-Item`},[A.choose?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(Vt,{key:0,disabled:!0,choosed:A.choose,type:l.unref(c)[W],text:A.value,onClick:$=>k(A),"data-testid":`${n.dataTestid}-SelectList-Badges`},null,8,["choosed","type","text","onClick","data-testid"]))],12,v9e))),128))],8,w9e)):l.createCommentVNode("",!0),i.isShow&&n.searchable?(l.openBlock(),l.createElementBlock("ul",{key:2,class:"filter-yui-kit__select-list filter-yui-kit__select-list--search",onScroll:x,"data-testid":`${n.dataTestid}-SelectList-Search`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(v.value,(A,W)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:A.value,onClick:$=>k(A),"data-testid":`${n.dataTestid}-SelectList-Items${W}`},l.toDisplayString(A.value),9,M9e))),128))],40,k9e)):l.createCommentVNode("",!0)],40,g9e)):l.createCommentVNode("",!0)],8,o9e))}}),_1=pe(C9e,[["__scopeId","data-v-9ecc65fb"]]),x9e=["placeholder","data-testid"],T1=pe(l.defineComponent({__name:"Combobox",props:{options:{},placeholder:{},disableOpen:{type:Boolean},defaultOption:{},class:{},disabled:{type:Boolean,default:!1},dataTestid:{default:"Combobox"}},emits:["change","error","focusout-option"],setup(e,{emit:t}){const n=t,i=e,r=l.reactive({isOpened:!1,placeholder:i.placeholder,values:i.options,searchValue:""}),a=()=>{n("focusout-option")},o=c=>{var f;(((f=r.values)==null?void 0:f.length)!=0||!i.disableOpen)&&(r.isOpened=c,!r.isOpened&&r.searchValue!=""&&n("error"))};l.watchEffect(()=>r.values=i.options),l.watchEffect(()=>r.searchValue=i.defaultOption||""),l.watch(()=>r.searchValue,()=>{r.searchValue==""&&(r.values=i.options)});const s=()=>{var c;r.isOpened=!0,r.values=i.options.filter(f=>r.searchValue.toLowerCase().split(" ").every(h=>f.toLowerCase().includes(h))),n("change",r.searchValue),((c=r.values)==null?void 0:c.length)==0&&(r.isOpened=!1)},u=c=>{r.searchValue=c,r.isOpened=!1,n("change",c)};return(c,f)=>{var h;return l.openBlock(),l.createBlock(vo,{onChange:o,"is-opened":r.isOpened,"disable-open":((h=r.values)==null?void 0:h.length)==0,class:l.normalizeClass(i.class),disabled:i.disabled,onFocusoutOptions:a,"header-classes":"filter__header","options-classes":"filter__options","data-testid":i.dataTestid},{header:l.withCtx(()=>[l.withDirectives(l.createElementVNode("input",{type:"search",class:"combobox__input","onUpdate:modelValue":f[0]||(f[0]=g=>r.searchValue=g),placeholder:r.placeholder,onKeydown:l.withKeys(s,["enter"]),onInput:s,"data-testid":`${i.dataTestid}-Input`},null,40,x9e),[[l.vModelText,r.searchValue]])]),options:l.withCtx(()=>[l.createVNode(Wh,{"default-option":r.searchValue,options:r.values,onChange:u,"data-testid":`${i.dataTestid}-Options`},null,8,["default-option","options","data-testid"])]),_:1},8,["is-opened","disable-open","class","disabled","data-testid"])}}}),[["__scopeId","data-v-3d8641f6"]]);var P1=(e=>(e.initial="initial",e.error="error",e.warning="warning",e.success="success",e.disabled="disabled",e.ordinary="ordinary",e.minor="minor",e))(P1||{}),s3=(e=>(e.text="text",e.email="email",e.password="password",e.tel="tel",e.url="url",e.week="week",e))(s3||{});const S9e=["data-testid"],_9e=["data-testid"],T9e=["data-testid"],P9e=["type","autocomplete","placeholder","required","data-testid"],E9e=l.defineComponent({__name:"Input",props:{placeholder:{},inputMessage:{default:""},type:{default:s3.text},required:{type:Boolean,default:!1},modelValue:{default:""},hideClearButton:{type:Boolean,default:!1},autocomplete:{},modelModifiers:{default:()=>({})},dataTestid:{default:"Input"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,i=e,r=l.reactive({isPressed:!1,inputElement:i.modelValue}),a=l.ref(null),o=()=>{var f;r.inputElement="",(f=a.value)==null||f.focus(),n("update:modelValue","")},s=()=>{n("update:modelValue",r.inputElement)},u=()=>{r.isPressed=!0},c=()=>{r.isPressed=!1};return l.watch(()=>i.modelValue,f=>{r.inputElement=f}),l.watch(()=>r.inputElement,f=>{i.modelValue!=f&&(r.isPressed=(f==null?void 0:f.length)>0,r.inputElement=f)}),(f,h)=>(l.openBlock(),l.createElementBlock("fieldset",{class:l.normalizeClass(["input-yui-kit",{pressed:r.isPressed}]),onFocusout:c,"data-testid":i.dataTestid},[i.inputMessage?(l.openBlock(),l.createElementBlock("legend",{key:0,class:"input-yui-kit__legend","data-testid":`${i.dataTestid}-Legend`},[l.createTextVNode(l.toDisplayString(i.inputMessage),1),i.required?(l.openBlock(),l.createElementBlock("sup",{key:0,"data-testid":`${i.dataTestid}-Star`,class:"input-yui-kit__star"},"*",8,T9e)):l.createCommentVNode("",!0)],8,_9e)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("input",{ref_key:"inputRef",ref:a,"onUpdate:modelValue":h[0]||(h[0]=g=>r.inputElement=g),onFocus:u,onInput:s,type:i.type,autocomplete:i.autocomplete,class:"input-yui-kit__input",placeholder:i.placeholder,required:i.required,"data-testid":`${i.dataTestid}-Input`},null,40,P9e),[[l.vModelDynamic,r.inputElement]]),!i.hideClearButton&&r.isPressed&&r.inputElement?(l.openBlock(),l.createBlock(Ot,{key:1,type:l.unref(ut).ghost,class:"input-yui-kit__close","data-testid":`${i.dataTestid}-Button`,onMousedown:l.withModifiers(o,["prevent"]),tabindex:"-1"},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).exitSmall,color:"currentColor","data-testid":`${i.dataTestid}-Button-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","data-testid"])):l.createCommentVNode("",!0)],42,S9e))}}),E1=pe(E9e,[["__scopeId","data-v-ccb65917"]]),A9e=["data-testid"],D9e=["data-testid"],N9e=["data-testid"],j9e=["required","data-testid"],I9e=["data-testid"],W9e=["data-testid","disabled"],O9e=["data-testid","disabled"],z9e=l.defineComponent({__name:"InputNumber",props:{inputMessage:{},modelValue:{default:0},required:{type:Boolean},isInteger:{type:Boolean,default:!1},min:{default:0},max:{default:1/0},size:{default:Ai.medium},modelModifiers:{default:()=>({})},dataTestid:{default:"InputNumber"}},emits:["update:modelValue","focused"],setup(e,{emit:t}){const n=t,i=e,r=l.reactive({isPressed:!1,inputElement:i.modelValue||(i.min>0?i.min:0),prevValue:""});l.watch(()=>i.isInteger,()=>{i.isInteger&&(r.inputElement=u(r.inputElement.toString()),c(r.inputElement))}),l.watch([()=>i.min,()=>i.max],()=>{h(),f()}),l.watch(()=>i.modelValue,w=>{r.inputElement=w});const a=/^-?\d{0,10}(\.\d{0,7})?$/,o=l.ref(null),s=w=>{const M=w.target.value,x=u(M);c(x),!isNaN(+r.inputElement)&&Number(r.inputElement)<=i.max&&Number(r.inputElement)>=i.min&&n("update:modelValue",r.inputElement)},u=w=>{let M=w.replace(",",".");return i.isInteger&&M.includes(".")&&(M=M.replace(".","")),M==="."?M="0"+M:M==="-."&&(M="-0."+M.slice(2)),/[^\d.]/.test(M)&&(M=M.replace(i.min>=0?/[^0-9.]/g:/[^0-9.-]/g,"")),M.includes("-")&&(M=(M.startsWith("-")?"-":"")+M.replace(/-/g,"")),M.startsWith("0")&&M.length>1&&!M.startsWith("0.")&&(M=M.replace(/^0+/,"")),M.startsWith("-0")&&M.length>2&&!M.startsWith("-0.")&&(M="-"+M.slice(2).replace(/^0+/,"")),(M.match(/\./g)||[]).length>1&&(M=M.slice(0,M.lastIndexOf("."))+M.slice(M.lastIndexOf(".")+1)),M},c=w=>{Number(w)>i.max?r.inputElement=i.max:r.inputElement=w,r.inputElement!==""&&!a.test(`${r.inputElement}`)&&(r.inputElement=r.prevValue)},f=()=>{Number(r.inputElement)<i.min&&(r.inputElement=i.min,n("update:modelValue",+r.inputElement))},h=()=>{Number(r.inputElement)>i.max&&(r.inputElement=i.max,n("update:modelValue",+r.inputElement))},g=w=>{r.prevValue=r.inputElement,w.key==="ArrowUp"&&v(),w.key==="ArrowDown"&&k()},p=w=>{r.isPressed=!0,n("focused",w)},y=()=>{(r.inputElement===""||r.inputElement===null||isNaN(+r.inputElement))&&(r.inputElement=i.min>0?i.min:0),isNaN(+r.inputElement)&&(r.inputElement=Math.max(i.min,0)),Number(r.inputElement)>i.max?r.inputElement=i.max:Number(r.inputElement)<i.min&&(r.inputElement=i.min),r.inputElement=`${r.inputElement}`.replace(/(\.\d*?[1-9])0+$/,"$1").replace(/\.0+$/,""),n("update:modelValue",r.inputElement),r.isPressed=!1},v=()=>{var w;+r.inputElement+1<i.max?r.inputElement=+r.inputElement+1:i.max!==1/0?r.inputElement=i.max:r.inputElement=0,a.test(`${r.inputElement}`)?n("update:modelValue",r.inputElement):r.inputElement=r.prevValue,(w=o.value)==null||w.focus()},k=()=>{var w;+r.inputElement-1>i.min?r.inputElement=+r.inputElement-1:i.min!==-1/0?r.inputElement=i.min:r.inputElement=0,n("update:modelValue",+r.inputElement),(w=o.value)==null||w.focus()};return l.onMounted(()=>{h(),f()}),(w,M)=>(l.openBlock(),l.createElementBlock("fieldset",{class:l.normalizeClass(["input-yui-kit input-yui-kit_number initial",{pressed:r.isPressed,[i.size]:!0}]),"data-testid":i.dataTestid,onFocusout:y},[i.inputMessage?(l.openBlock(),l.createElementBlock("legend",{key:0,class:"input-yui-kit__legend","data-testid":`${i.dataTestid}-Legend`},[l.createTextVNode(l.toDisplayString(i.inputMessage),1),i.required?(l.openBlock(),l.createElementBlock("sup",{key:0,class:"input-yui-kit__star","data-testid":`${i.dataTestid}-Star`},"*",8,N9e)):l.createCommentVNode("",!0)],8,D9e)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("input",{ref_key:"inputNumberRef",ref:o,"onUpdate:modelValue":M[0]||(M[0]=x=>r.inputElement=x),onFocus:p,onInput:s,onKeydown:g,class:"input-yui-kit__input",required:i.required,"data-testid":`${i.dataTestid}-Input`,type:"text"},null,40,j9e),[[l.vModelText,r.inputElement]]),l.createElementVNode("div",{class:"input-yui-kit__buttons","data-testid":`${i.dataTestid}-Buttons`},[l.createElementVNode("button",{class:"input-yui-kit__button-up","data-testid":`${i.dataTestid}-UpButton`,onMousedown:l.withModifiers(v,["prevent"]),disabled:+r.inputElement>=i.max},[l.createVNode(ve,{name:l.unref(ce).chevronUp,"data-testid":`${i.dataTestid}-Icon`},null,8,["name","data-testid"])],40,W9e),l.createElementVNode("button",{class:"input-yui-kit__button-down","data-testid":`${i.dataTestid}-DownButton`,onMousedown:l.withModifiers(k,["prevent"]),disabled:+r.inputElement<=i.min},[l.createVNode(ve,{name:l.unref(ce).chevronDown,"data-testid":`${i.dataTestid}-Icon`},null,8,["name","data-testid"])],40,O9e)],8,I9e)],42,A9e))}}),A1=pe(z9e,[["__scopeId","data-v-a9beef6e"]]),l3="data:image/svg+xml,%3csvg%20width='147'%20height='111'%20viewBox='0%200%20147%20111'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M132.938%2087.875C132.938%2090.3283%20131.871%2092.681%20129.973%2094.4157C128.074%2096.1504%20125.499%2097.125%20122.814%2097.125H31.6978C29.0128%2097.125%2026.4377%2096.1504%2024.5391%2094.4157C22.6405%2092.681%2021.5738%2090.3283%2021.5738%2087.875V37C21.5738%2034.5467%2022.6405%2032.194%2024.5391%2030.4593C26.4377%2028.7246%2029.0128%2027.75%2031.6978%2027.75H51.9459L62.0699%2013.875H92.4419L102.566%2027.75H122.814C125.499%2027.75%20128.074%2028.7246%20129.973%2030.4593C131.871%2032.194%20132.938%2034.5467%20132.938%2037V87.875Z'%20stroke='%23A6A3AD'%20stroke-width='9.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M77.2559%2078.625C88.4386%2078.625%2097.5039%2070.3423%2097.5039%2060.125C97.5039%2049.9077%2088.4386%2041.625%2077.2559%2041.625C66.0732%2041.625%2057.0079%2049.9077%2057.0079%2060.125C57.0079%2070.3423%2066.0732%2078.625%2077.2559%2078.625Z'%20stroke='%23A6A3AD'%20stroke-width='9.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15%2026L138.699%2097.4178'%20stroke='%23A6A3AD'%20stroke-width='10'%20stroke-linecap='round'/%3e%3c/svg%3e";var Od=(e=>(e.jpg="jpg",e.png="png",e.jpeg="jpeg",e.webp="webp",e.svg="svg",e.pdf="pdf",e))(Od||{}),zd=(e=>(e.mp4="mp4",e.mp3="mp3",e.avif="avif",e))(zd||{});const L9e=["data-testid"],$9e=["data-testid"],H9e=["disabled","data-testid"],R9e=["data-testid"],B9e=["data-testid"],V9e=["data-testid"],F9e=["data-testid"],U9e=["data-testid"],Y9e=["src","data-testid"],X9e=["data-testid"],q9e=["src"],G9e=["disabled","data-testid"],Ld="slider-yui-kit__full-size",D1=pe(l.defineComponent({__name:"Slider",props:{items:{},defaultIndex:{},dataTestid:{default:"Slider"}},setup(e,{expose:t}){const n=e,i=l.reactive({files:n.items.length?n.items:[],file:null,currentIndex:n.defaultIndex||0,extension:null}),r=l.ref(null),a=l.ref(null),o=()=>{var w;return(w=n.items)!=null&&w.length?i.currentIndex===n.items.length-1:!0},s=w=>{if(!w)return null;const M=w.split("?")[0],x=/\.\w+$/,S=M.match(x);return i.extension=S?S[0].replace(".",""):null,i.extension},u=w=>{const M=s(w);return M?Object.values(Od).includes(M.toLowerCase()):!1},c=w=>{const M=s(w);return M?Object.values(zd).includes(M):!1},f=w=>{w instanceof KeyboardEvent&&w.key==="Escape"&&a.value&&a.value.classList.contains(Ld)&&(a.value.classList.remove(Ld),document.body.style.overflow="auto")},h=w=>{if(w.type==="click"){const M=w.target;M.classList.toggle(Ld),M.classList.contains(Ld)?(window.addEventListener("keydown",f),r.value&&(r.value.style.cursor="zoom-out")):(window.removeEventListener("keydown",f),r.value&&(r.value.style.cursor="zoom-in"))}},g=()=>{i.currentIndex--,i.file=i.files[i.currentIndex]},p=()=>{i.currentIndex++,i.file=i.files[i.currentIndex]},y=()=>i.files.length===0,v=()=>{var w,M;return u(((w=i.file)==null?void 0:w.path)??null)==!1&&c(((M=i.file)==null?void 0:M.path)??null)==!1&&i.files.length>0};l.onMounted(()=>{if(!n.items)return 0;i.files=n.items,n.defaultIndex&&(i.file=i.files[i.currentIndex]),i.file=i.files[i.currentIndex]});const k=w=>{w>=0&&w<i.files.length&&(i.currentIndex=w,i.file=i.files[i.currentIndex])};return l.watch(()=>n.items,()=>{i.files=n.items},{deep:!0}),t({setSlide:k}),(w,M)=>{var x,S,E,I;return l.openBlock(),l.createElementBlock("div",{class:"slider-yui-kit","data-testid":n.dataTestid},[l.createElementVNode("div",{class:"slider-yui-kit__wrapper",ref:"slider-yui-kitWrapperRef","data-testid":`${n.dataTestid}-Wrapper`},[l.createElementVNode("button",{class:"slider-yui-kit__button slider-yui-kit__button--prev",onClick:g,disabled:i.currentIndex===0,"data-testid":`${n.dataTestid}-Prev-Button`},[l.createVNode(ve,{name:l.unref(ce).leftBig,"data-testid":`${n.dataTestid}-Prev-Icon`},null,8,["name","data-testid"])],8,H9e),l.createElementVNode("div",{class:"slider-yui-kit__slides","data-testid":`${n.dataTestid}-Slides-Container`},[y()?(l.openBlock(),l.createElementBlock("div",{key:0,class:"placeholder-yui-kit no-content","data-testid":`${n.dataTestid}-NoContent-Placeholder`},[l.createElementVNode("img",{src:l3,alt:"",width:"111px",height:"111px","data-testid":`${n.dataTestid}-NoContent-Image`},null,8,V9e),l.createElementVNode("p",{"data-testid":`${n.dataTestid}-NoContent-Paragrpah`}," Контент отсутствует ",8,F9e)],8,B9e)):v()?(l.openBlock(),l.createElementBlock("div",{key:1,class:"placeholder-yui-kit","data-testid":`${n.dataTestid}-Invalid-Extension-Placeholder`},[M[2]||(M[2]=l.createElementVNode("img",{src:l3,alt:"",width:"111px",height:"111px"},null,-1)),l.createElementVNode("p",null,"."+l.toDisplayString(i.extension),1)],8,U9e)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[u(((x=i.file)==null?void 0:x.path)??"")?(l.openBlock(),l.createElementBlock("img",{key:0,onClick:M[0]||(M[0]=A=>h(A)),src:((S=i.file)==null?void 0:S.path)??"",ref_key:"fullsizeImageRef",ref:a,"data-testid":`${n.dataTestid}-Image`},null,8,Y9e)):l.createCommentVNode("",!0),c(((E=i.file)==null?void 0:E.path)??"")?(l.openBlock(),l.createElementBlock("video",{key:1,onClick:M[1]||(M[1]=A=>h(A)),controls:"","data-testid":`${n.dataTestid}-Video`},[l.createElementVNode("source",{src:((I=i.file)==null?void 0:I.path)??""},null,8,q9e)],8,X9e)):l.createCommentVNode("",!0)],64))],8,R9e),l.createElementVNode("button",{class:"slider-yui-kit__button slider-yui-kit__button--next",onClick:p,disabled:o(),"data-testid":`${n.dataTestid}-Next-Button`},[l.createVNode(ve,{name:l.unref(ce).rightBig,"data-testid":`${n.dataTestid}-Next-Icon`},null,8,["name","data-testid"])],8,G9e)],8,$9e)],8,L9e)}}}),[["__scopeId","data-v-6cd087a4"]]),K9e=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function Q9e(e){return K9e.test(e)}function u3(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.split(/[:\/]/g).pop().toLowerCase()}u3.valid=Q9e;const J9e=(e="")=>e+u3();var Uo=(e=>(e.small="small",e.medium="medium",e.big="big",e.large="large",e))(Uo||{});const Z9e=["disabled","data-testid"],e8e=["id","disabled","data-testid"],t8e=["for","data-testid"],n8e=l.defineComponent({__name:"Toggle",props:l.mergeModels({disabled:{type:Boolean,default:!1},backgroundColor:{},type:{default:Uo.small},dataTestid:{default:"Toggle"}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:l.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const n=e,i=t,r=l.useModel(e,"modelValue"),a=J9e(),o=l.computed(()=>({"toggle-yui-kit":!0,"toggle-yui-kit_small":n.type===Uo.small,"toggle-yui-kit_medium":n.type===Uo.medium,"toggle-yui-kit_large":n.type===Uo.large})),s=l.computed(()=>({backgroundColor:n.backgroundColor})),u=()=>i("change",!!r.value);return(c,f)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(o.value),disabled:n.disabled,style:l.normalizeStyle(s.value),"data-testid":`${n.dataTestid}-Toggle`},[l.withDirectives(l.createElementVNode("input",{class:"toggle-yui-kit-input",id:l.unref(a),type:"checkbox",disabled:e.disabled,"onUpdate:modelValue":f[0]||(f[0]=h=>r.value=h),onChange:u,"data-testid":`${n.dataTestid}-Input`},null,40,e8e),[[l.vModelCheckbox,r.value]]),l.createElementVNode("label",{class:"toggle-yui-kit-label",for:l.unref(a),"data-testid":`${n.dataTestid}-Label`},null,8,t8e)],14,Z9e))}}),$d=pe(n8e,[["__scopeId","data-v-80a4bd95"]]);/*!
|
|
1291
|
+
}`;var Ae=b8(function(){return $e(j,he+"return "+ee).apply(n,L)});if(Ae.source=ee,uy(Ae))throw Ae;return Ae}function M$e(d){return He(d).toLowerCase()}function C$e(d){return He(d).toUpperCase()}function x$e(d,m,b){if(d=He(d),d&&(b||m===n))return TM(d);if(!d||!(m=Bn(m)))return d;var C=_i(d),P=_i(m),j=PM(C,P),L=EM(C,P)+1;return ba(C,j,L).join("")}function S$e(d,m,b){if(d=He(d),d&&(b||m===n))return d.slice(0,DM(d)+1);if(!d||!(m=Bn(m)))return d;var C=_i(d),P=EM(C,_i(m))+1;return ba(C,0,P).join("")}function _$e(d,m,b){if(d=He(d),d&&(b||m===n))return d.replace(u0,"");if(!d||!(m=Bn(m)))return d;var C=_i(d),P=PM(C,_i(m));return ba(C,P).join("")}function T$e(d,m){var b=D,C=z;if(lt(m)){var P="separator"in m?m.separator:P;b="length"in m?Te(m.length):b,C="omission"in m?Bn(m.omission):C}d=He(d);var j=d.length;if(Cs(d)){var L=_i(d);j=L.length}if(b>=j)return d;var R=b-xs(C);if(R<1)return C;var F=L?ba(L,0,R).join(""):d.slice(0,R);if(P===n)return F+C;if(L&&(R+=F.length-R),dy(P)){if(d.slice(R).search(P)){var Q,J=F;for(P.global||(P=_0(P.source,He(G5.exec(P))+"g")),P.lastIndex=0;Q=P.exec(J);)var ee=Q.index;F=F.slice(0,ee===n?R:ee)}}else if(d.indexOf(Bn(P),R)!=R){var oe=F.lastIndexOf(P);oe>-1&&(F=F.slice(0,oe))}return F+C}function P$e(d){return d=He(d),d&&$Ne.test(d)?d.replace(Y5,iIe):d}var E$e=Ds(function(d,m,b){return d+(b?" ":"")+m.toUpperCase()}),hy=w9("toUpperCase");function y8(d,m,b){return d=He(d),m=b?n:m,m===n?Jje(d)?oIe(d):Vje(d):d.match(m)||[]}var b8=De(function(d,m){try{return Hn(d,n,m)}catch(b){return uy(b)?b:new xe(b)}}),A$e=wr(function(d,m){return oi(m,function(b){b=Zi(b),yr(d,b,sy(d[b],d))}),d});function D$e(d){var m=d==null?0:d.length,b=we();return d=m?at(d,function(C){if(typeof C[1]!="function")throw new si(o);return[b(C[0]),C[1]]}):[],De(function(C){for(var P=-1;++P<m;){var j=d[P];if(Hn(j[0],this,C))return Hn(j[1],this,C)}})}function N$e(d){return iWe(ui(d,h))}function my(d){return function(){return d}}function j$e(d,m){return d==null||d!==d?m:d}var I$e=k9(),W$e=k9(!0);function Dn(d){return d}function py(d){return QM(typeof d=="function"?d:ui(d,h))}function O$e(d){return ZM(ui(d,h))}function z$e(d,m){return e9(d,ui(m,h))}var L$e=De(function(d,m){return function(b){return vu(b,d,m)}}),$$e=De(function(d,m){return function(b){return vu(d,b,m)}});function gy(d,m,b){var C=Wt(m),P=Qf(m,C);b==null&&!(lt(m)&&(P.length||!C.length))&&(b=m,m=d,d=this,P=Qf(m,Wt(m)));var j=!(lt(b)&&"chain"in b)||!!b.chain,L=kr(d);return oi(P,function(R){var F=m[R];d[R]=F,L&&(d.prototype[R]=function(){var Q=this.__chain__;if(j||Q){var J=d(this.__wrapped__),ee=J.__actions__=Pn(this.__actions__);return ee.push({func:F,args:arguments,thisArg:d}),J.__chain__=Q,J}return F.apply(d,fa([this.value()],arguments))})}),d}function H$e(){return Rt._===this&&(Rt._=fIe),this}function yy(){}function R$e(d){return d=Te(d),De(function(m){return t9(m,d)})}var B$e=q0(at),V$e=q0(MM),F$e=q0(w0);function w8(d){return ty(d)?v0(Zi(d)):vWe(d)}function U$e(d){return function(m){return d==null?n:go(d,m)}}var Y$e=C9(),X$e=C9(!0);function by(){return[]}function wy(){return!1}function q$e(){return{}}function G$e(){return""}function K$e(){return!0}function Q$e(d,m){if(d=Te(d),d<1||d>ue)return[];var b=xt,C=Jt(d,xt);m=we(m),d-=xt;for(var P=C0(C,m);++b<d;)m(b);return P}function J$e(d){return Se(d)?at(d,Zi):Vn(d)?[d]:Pn($9(He(d)))}function Z$e(d){var m=++dIe;return He(d)+m}var eHe=ih(function(d,m){return d+m},0),tHe=G0("ceil"),nHe=ih(function(d,m){return d/m},1),iHe=G0("floor");function rHe(d){return d&&d.length?Kf(d,Dn,I0):n}function aHe(d,m){return d&&d.length?Kf(d,we(m,2),I0):n}function oHe(d){return SM(d,Dn)}function sHe(d,m){return SM(d,we(m,2))}function lHe(d){return d&&d.length?Kf(d,Dn,L0):n}function uHe(d,m){return d&&d.length?Kf(d,we(m,2),L0):n}var dHe=ih(function(d,m){return d*m},1),cHe=G0("round"),fHe=ih(function(d,m){return d-m},0);function hHe(d){return d&&d.length?M0(d,Dn):0}function mHe(d,m){return d&&d.length?M0(d,we(m,2)):0}return N.after=Oze,N.ary=K9,N.assign=CLe,N.assignIn=d8,N.assignInWith=gh,N.assignWith=xLe,N.at=SLe,N.before=Q9,N.bind=sy,N.bindAll=A$e,N.bindKey=J9,N.castArray=qze,N.chain=X9,N.chunk=iOe,N.compact=rOe,N.concat=aOe,N.cond=D$e,N.conforms=N$e,N.constant=my,N.countBy=hze,N.create=_Le,N.curry=Z9,N.curryRight=e8,N.debounce=t8,N.defaults=TLe,N.defaultsDeep=PLe,N.defer=zze,N.delay=Lze,N.difference=oOe,N.differenceBy=sOe,N.differenceWith=lOe,N.drop=uOe,N.dropRight=dOe,N.dropRightWhile=cOe,N.dropWhile=fOe,N.fill=hOe,N.filter=pze,N.flatMap=bze,N.flatMapDeep=wze,N.flatMapDepth=vze,N.flatten=V9,N.flattenDeep=mOe,N.flattenDepth=pOe,N.flip=$ze,N.flow=I$e,N.flowRight=W$e,N.fromPairs=gOe,N.functions=WLe,N.functionsIn=OLe,N.groupBy=kze,N.initial=bOe,N.intersection=wOe,N.intersectionBy=vOe,N.intersectionWith=kOe,N.invert=LLe,N.invertBy=$Le,N.invokeMap=Cze,N.iteratee=py,N.keyBy=xze,N.keys=Wt,N.keysIn=An,N.map=dh,N.mapKeys=RLe,N.mapValues=BLe,N.matches=O$e,N.matchesProperty=z$e,N.memoize=fh,N.merge=VLe,N.mergeWith=c8,N.method=L$e,N.methodOf=$$e,N.mixin=gy,N.negate=hh,N.nthArg=R$e,N.omit=FLe,N.omitBy=ULe,N.once=Hze,N.orderBy=Sze,N.over=B$e,N.overArgs=Rze,N.overEvery=V$e,N.overSome=F$e,N.partial=ly,N.partialRight=n8,N.partition=_ze,N.pick=YLe,N.pickBy=f8,N.property=w8,N.propertyOf=U$e,N.pull=SOe,N.pullAll=U9,N.pullAllBy=_Oe,N.pullAllWith=TOe,N.pullAt=POe,N.range=Y$e,N.rangeRight=X$e,N.rearg=Bze,N.reject=Eze,N.remove=EOe,N.rest=Vze,N.reverse=ay,N.sampleSize=Dze,N.set=qLe,N.setWith=GLe,N.shuffle=Nze,N.slice=AOe,N.sortBy=Wze,N.sortedUniq=zOe,N.sortedUniqBy=LOe,N.split=b$e,N.spread=Fze,N.tail=$Oe,N.take=HOe,N.takeRight=ROe,N.takeRightWhile=BOe,N.takeWhile=VOe,N.tap=rze,N.throttle=Uze,N.thru=uh,N.toArray=s8,N.toPairs=h8,N.toPairsIn=m8,N.toPath=J$e,N.toPlainObject=u8,N.transform=KLe,N.unary=Yze,N.union=FOe,N.unionBy=UOe,N.unionWith=YOe,N.uniq=XOe,N.uniqBy=qOe,N.uniqWith=GOe,N.unset=QLe,N.unzip=oy,N.unzipWith=Y9,N.update=JLe,N.updateWith=ZLe,N.values=Is,N.valuesIn=e$e,N.without=KOe,N.words=y8,N.wrap=Xze,N.xor=QOe,N.xorBy=JOe,N.xorWith=ZOe,N.zip=eze,N.zipObject=tze,N.zipObjectDeep=nze,N.zipWith=ize,N.entries=h8,N.entriesIn=m8,N.extend=d8,N.extendWith=gh,gy(N,N),N.add=eHe,N.attempt=b8,N.camelCase=r$e,N.capitalize=p8,N.ceil=tHe,N.clamp=t$e,N.clone=Gze,N.cloneDeep=Qze,N.cloneDeepWith=Jze,N.cloneWith=Kze,N.conformsTo=Zze,N.deburr=g8,N.defaultTo=j$e,N.divide=nHe,N.endsWith=a$e,N.eq=Pi,N.escape=o$e,N.escapeRegExp=s$e,N.every=mze,N.find=gze,N.findIndex=R9,N.findKey=ELe,N.findLast=yze,N.findLastIndex=B9,N.findLastKey=ALe,N.floor=iHe,N.forEach=q9,N.forEachRight=G9,N.forIn=DLe,N.forInRight=NLe,N.forOwn=jLe,N.forOwnRight=ILe,N.get=cy,N.gt=eLe,N.gte=tLe,N.has=zLe,N.hasIn=fy,N.head=F9,N.identity=Dn,N.includes=Mze,N.indexOf=yOe,N.inRange=n$e,N.invoke=HLe,N.isArguments=wo,N.isArray=Se,N.isArrayBuffer=nLe,N.isArrayLike=En,N.isArrayLikeObject=gt,N.isBoolean=iLe,N.isBuffer=wa,N.isDate=rLe,N.isElement=aLe,N.isEmpty=oLe,N.isEqual=sLe,N.isEqualWith=lLe,N.isError=uy,N.isFinite=uLe,N.isFunction=kr,N.isInteger=i8,N.isLength=mh,N.isMap=r8,N.isMatch=dLe,N.isMatchWith=cLe,N.isNaN=fLe,N.isNative=hLe,N.isNil=pLe,N.isNull=mLe,N.isNumber=a8,N.isObject=lt,N.isObjectLike=pt,N.isPlainObject=_u,N.isRegExp=dy,N.isSafeInteger=gLe,N.isSet=o8,N.isString=ph,N.isSymbol=Vn,N.isTypedArray=js,N.isUndefined=yLe,N.isWeakMap=bLe,N.isWeakSet=wLe,N.join=MOe,N.kebabCase=l$e,N.last=ci,N.lastIndexOf=COe,N.lowerCase=u$e,N.lowerFirst=d$e,N.lt=vLe,N.lte=kLe,N.max=rHe,N.maxBy=aHe,N.mean=oHe,N.meanBy=sHe,N.min=lHe,N.minBy=uHe,N.stubArray=by,N.stubFalse=wy,N.stubObject=q$e,N.stubString=G$e,N.stubTrue=K$e,N.multiply=dHe,N.nth=xOe,N.noConflict=H$e,N.noop=yy,N.now=ch,N.pad=c$e,N.padEnd=f$e,N.padStart=h$e,N.parseInt=m$e,N.random=i$e,N.reduce=Tze,N.reduceRight=Pze,N.repeat=p$e,N.replace=g$e,N.result=XLe,N.round=cHe,N.runInContext=V,N.sample=Aze,N.size=jze,N.snakeCase=y$e,N.some=Ize,N.sortedIndex=DOe,N.sortedIndexBy=NOe,N.sortedIndexOf=jOe,N.sortedLastIndex=IOe,N.sortedLastIndexBy=WOe,N.sortedLastIndexOf=OOe,N.startCase=w$e,N.startsWith=v$e,N.subtract=fHe,N.sum=hHe,N.sumBy=mHe,N.template=k$e,N.times=Q$e,N.toFinite=Mr,N.toInteger=Te,N.toLength=l8,N.toLower=M$e,N.toNumber=fi,N.toSafeInteger=MLe,N.toString=He,N.toUpper=C$e,N.trim=x$e,N.trimEnd=S$e,N.trimStart=_$e,N.truncate=T$e,N.unescape=P$e,N.uniqueId=Z$e,N.upperCase=E$e,N.upperFirst=hy,N.each=q9,N.eachRight=G9,N.first=F9,gy(N,function(){var d={};return Qi(N,function(m,b){Ue.call(N.prototype,b)||(d[b]=m)}),d}(),{chain:!1}),N.VERSION=i,oi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){N[d].placeholder=N}),oi(["drop","take"],function(d,m){We.prototype[d]=function(b){b=b===n?1:Pt(Te(b),0);var C=this.__filtered__&&!m?new We(this):this.clone();return C.__filtered__?C.__takeCount__=Jt(b,C.__takeCount__):C.__views__.push({size:Jt(b,xt),type:d+(C.__dir__<0?"Right":"")}),C},We.prototype[d+"Right"]=function(b){return this.reverse()[d](b).reverse()}}),oi(["filter","map","takeWhile"],function(d,m){var b=m+1,C=b==re||b==q;We.prototype[d]=function(P){var j=this.clone();return j.__iteratees__.push({iteratee:we(P,3),type:b}),j.__filtered__=j.__filtered__||C,j}}),oi(["head","last"],function(d,m){var b="take"+(m?"Right":"");We.prototype[d]=function(){return this[b](1).value()[0]}}),oi(["initial","tail"],function(d,m){var b="drop"+(m?"":"Right");We.prototype[d]=function(){return this.__filtered__?new We(this):this[b](1)}}),We.prototype.compact=function(){return this.filter(Dn)},We.prototype.find=function(d){return this.filter(d).head()},We.prototype.findLast=function(d){return this.reverse().find(d)},We.prototype.invokeMap=De(function(d,m){return typeof d=="function"?new We(this):this.map(function(b){return vu(b,d,m)})}),We.prototype.reject=function(d){return this.filter(hh(we(d)))},We.prototype.slice=function(d,m){d=Te(d);var b=this;return b.__filtered__&&(d>0||m<0)?new We(b):(d<0?b=b.takeRight(-d):d&&(b=b.drop(d)),m!==n&&(m=Te(m),b=m<0?b.dropRight(-m):b.take(m-d)),b)},We.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},We.prototype.toArray=function(){return this.take(xt)},Qi(We.prototype,function(d,m){var b=/^(?:filter|find|map|reject)|While$/.test(m),C=/^(?:head|last)$/.test(m),P=N[C?"take"+(m=="last"?"Right":""):m],j=C||/^find/.test(m);P&&(N.prototype[m]=function(){var L=this.__wrapped__,R=C?[1]:arguments,F=L instanceof We,Q=R[0],J=F||Se(L),ee=function(je){var ze=P.apply(N,fa([je],R));return C&&oe?ze[0]:ze};J&&b&&typeof Q=="function"&&Q.length!=1&&(F=J=!1);var oe=this.__chain__,he=!!this.__actions__.length,ke=j&&!oe,Ae=F&&!he;if(!j&&J){L=Ae?L:new We(this);var Me=d.apply(L,R);return Me.__actions__.push({func:uh,args:[ee],thisArg:n}),new li(Me,oe)}return ke&&Ae?d.apply(this,R):(Me=this.thru(ee),ke?C?Me.value()[0]:Me.value():Me)})}),oi(["pop","push","shift","sort","splice","unshift"],function(d){var m=Wf[d],b=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",C=/^(?:pop|shift)$/.test(d);N.prototype[d]=function(){var P=arguments;if(C&&!this.__chain__){var j=this.value();return m.apply(Se(j)?j:[],P)}return this[b](function(L){return m.apply(Se(L)?L:[],P)})}}),Qi(We.prototype,function(d,m){var b=N[m];if(b){var C=b.name+"";Ue.call(Ps,C)||(Ps[C]=[]),Ps[C].push({name:m,func:b})}}),Ps[nh(n,w).name]=[{name:"wrapper",func:n}],We.prototype.clone=PIe,We.prototype.reverse=EIe,We.prototype.value=AIe,N.prototype.at=aze,N.prototype.chain=oze,N.prototype.commit=sze,N.prototype.next=lze,N.prototype.plant=dze,N.prototype.reverse=cze,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=fze,N.prototype.first=N.prototype.head,hu&&(N.prototype[hu]=uze),N},Ss=sIe();co?((co.exports=Ss)._=Ss,p0._=Ss):Rt._=Ss}).call(bl)}(Wd,Wd.exports);var Hi=Wd.exports;const o9e=["data-testid"],s9e=["data-testid"],l9e=["data-testid"],u9e=["data-testid"],d9e=["data-testid"],c9e=["data-testid"],f9e=["data-testid"],h9e=["data-testid"],m9e=["data-testid"],p9e=["data-testid"],g9e=["data-testid"],y9e=["data-testid"],b9e=["data-testid"],w9e=["data-testid"],v9e=["data-testid"],k9e=["data-testid"],M9e=["onClick","data-testid"],C9e=l.defineComponent({__name:"Filter",props:{title:{},iconName:{default:ce.filter},multiselect:{type:Boolean,default:!1},options:{},defaultValue:{},closeOnSelect:{type:Boolean},searchable:{type:Boolean},dataTestid:{default:"Filter"}},emits:["scroll"],setup(e,{emit:t}){const n=e,i=l.reactive({options:[],isShow:!1,searchString:"",choosenStatus:!1,searchItems:[]}),r=t,a=l.computed(()=>({"filter-yui-kit__counter":!0,"counter-yui-kit":!0,"counter-yui-kit--search":n.searchable})),o=l.computed(()=>({"filter-yui-kit__select-list":!0,"selected-yui-kit":!0,"selected-yui-kit--search":n.searchable,"border-none-yui-kit":n.searchable&&y.value.length<2})),s=l.computed(()=>({"filter-yui-kit__wrapper":!0,"active-yui-kit":i.isShow,"filter-yui-kit--search":n.searchable})),u=l.computed(()=>{var E,I;return y.value.length>1&&n.searchable?(E=y.value[1])==null?void 0:E.value:(I=y.value[0])==null?void 0:I.value}),c=Object.values(tt),f=E=>{i.searchString=E.trim()},h=E=>{setTimeout(()=>{i.searchString=E},1e3)},g=()=>i.isShow=!i.isShow,p=E=>{E.stopPropagation(),i.options.forEach((I,A)=>w(I,A)),i.isShow=!1},y=l.computed(()=>{let E=i.options.filter(I=>I.choose);return n.searchable&&E.length>1&&(E=E.filter(I=>I.type!==tt.default)),E}),v=l.computed(()=>i.options.filter(E=>{let I=!0;return i.searchString&&(I=E.value.toLowerCase().includes(i.searchString.toLowerCase()),I)?E:!E.choose&&I})),k=E=>{n.multiselect||i.options.forEach(I=>I!==E&&(I.choose=!1)),E.choose=!E.choose,y.value.length||i.options.forEach((I,A)=>{w(I,A)})},w=(E,I)=>{typeof n.defaultValue=="string"&&E.value===n.defaultValue?E.choose=!0:Hi.isArray(n.defaultValue)?n.defaultValue.forEach(W=>W===E.value&&(E.choose=!0)):E.choose=I===0},M=()=>{i.isShow=!1,i.searchString&&(i.searchString="")},x=E=>{const I=E.target;I.scrollHeight-I.scrollTop===I.clientHeight&&r("scroll",!0)},S=l.computed(()=>{var E,I,A;return y.value.length<=1&&n.searchable?((E=y.value[0])==null?void 0:E.type)===tt.default||(I=y.value[0])==null?void 0:I.type:(A=y.value[0])==null?void 0:A.type});return l.onMounted(()=>{i.options=n.options.map((E,I)=>{const A={value:typeof E=="string"?E:E.value,type:typeof E=="string"?"blue":E.type,choose:!1};return w(A,I),n.searchable&&A.type===tt.default&&(A.value="Не выбрано"),A})}),(E,I)=>(l.openBlock(),l.createElementBlock("div",{class:"filter-yui-kit","data-testid":n.dataTestid},[l.createElementVNode("div",{class:l.normalizeClass(s.value),onClick:g,"data-testid":`${n.dataTestid}-Wrapper`},[l.createVNode(ve,{name:n.iconName,"data-testid":`${n.dataTestid}-Icon`},null,8,["name","data-testid"]),l.createElementVNode("span",{"data-testid":`${n.dataTestid}-Title`},l.toDisplayString(n.title),9,l9e),l.createVNode(Vt,{disabled:!0,type:S.value??l.unref(tt).default,text:u.value,style:"margin:0 3px;","data-testid":`${n.dataTestid}-Badges`},null,8,["type","text","data-testid"]),l.createElementVNode("div",{class:l.normalizeClass(a.value),"data-testid":`${n.dataTestid}-Counter`},[y.value.length>1?(l.openBlock(),l.createElementBlock("span",{key:0,class:"counter-yui-kit__value","data-testid":`${n.dataTestid}-Counter-Value`},l.toDisplayString("+"+y.value.length),9,d9e)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"counter-yui-kit__list","data-testid":`${n.dataTestid}-Counter-List`},[l.createElementVNode("div",{class:"counter-yui-kit__list-wrapper","data-testid":`${n.dataTestid}-CounterList-Wrapper`},[l.createElementVNode("ul",{class:"filter-yui-kit__select-list select-yui-kit-counter",style:"padding: 2px; gap: 2px","data-testid":`${n.dataTestid}-SelectListCounter-Counter`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(y.value,(A,W)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:A.value,"data-testid":`${n.dataTestid}-SelectList-SelectItem${W}`},[l.createVNode(Vt,{type:n.searchable?l.unref(tt).blue:l.unref(c)[W],disabled:!0,text:A.value,"data-testid":`${n.dataTestid}-SelectList-BadgesTypeEnum${W}`},null,8,["type","text","data-testid"])],8,m9e))),128))],8,h9e)],8,f9e)],8,c9e)],10,u9e),l.createElementVNode("button",{type:"button",class:"filter-yui-kit__close",onClick:l.withModifiers(p,["stop"]),"data-testid":`${n.dataTestid}-SelectList-ClearFilter`},[l.createVNode(ve,{name:l.unref(ce).exitBig},null,8,["name"])],8,p9e)],10,s9e),i.isShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter-yui-kit__select-wrapper",onMouseleave:M,"data-testid":`${n.dataTestid}-SelectList-SelectWrapper`},[l.createElementVNode("ul",{class:l.normalizeClass(o.value),"data-testid":`${n.dataTestid}-Select-List`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(y.value,(A,W)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:A.value,"data-testid":`${n.dataTestid}-Select-ListItem${W}`},[l.createVNode(Vt,{disabled:!0,choosed:A.choose,type:n.searchable?l.unref(tt).blue:l.unref(c)[W],onClick:$=>k(A),text:A.value,"data-testid":`${n.dataTestid}-Select-Badges${W}`},null,8,["choosed","type","onClick","text","data-testid"])],8,b9e))),128))],10,y9e),n.searchable?(l.openBlock(),l.createBlock(yl,{key:0,modelValue:i.searchString,"onUpdate:modelValue":I[0]||(I[0]=A=>i.searchString=A),onEnter:f,onInput:h,style:{margin:"5px 0"},"data-testid":`${n.dataTestid}-Search`},null,8,["modelValue","data-testid"])):l.createCommentVNode("",!0),i.isShow&&!n.searchable?(l.openBlock(),l.createElementBlock("ul",{key:1,class:"filter-yui-kit__select-list","data-testid":`${n.dataTestid}-SelectList-NoSearch`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(v.value,(A,W)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:A.value,style:l.normalizeStyle(W===0?{paddingTop:"10px"}:""),"data-testid":`${n.dataTestid}-SelectList-Item`},[A.choose?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(Vt,{key:0,disabled:!0,choosed:A.choose,type:l.unref(c)[W],text:A.value,onClick:$=>k(A),"data-testid":`${n.dataTestid}-SelectList-Badges`},null,8,["choosed","type","text","onClick","data-testid"]))],12,v9e))),128))],8,w9e)):l.createCommentVNode("",!0),i.isShow&&n.searchable?(l.openBlock(),l.createElementBlock("ul",{key:2,class:"filter-yui-kit__select-list filter-yui-kit__select-list--search",onScroll:x,"data-testid":`${n.dataTestid}-SelectList-Search`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(v.value,(A,W)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:A.value,onClick:$=>k(A),"data-testid":`${n.dataTestid}-SelectList-Items${W}`},l.toDisplayString(A.value),9,M9e))),128))],40,k9e)):l.createCommentVNode("",!0)],40,g9e)):l.createCommentVNode("",!0)],8,o9e))}}),_1=pe(C9e,[["__scopeId","data-v-73a715d8"]]),x9e=["placeholder","data-testid"],T1=pe(l.defineComponent({__name:"Combobox",props:{options:{},placeholder:{},disableOpen:{type:Boolean},defaultOption:{},class:{},disabled:{type:Boolean,default:!1},dataTestid:{default:"Combobox"}},emits:["change","error","focusout-option"],setup(e,{emit:t}){const n=t,i=e,r=l.reactive({isOpened:!1,placeholder:i.placeholder,values:i.options,searchValue:""}),a=()=>{n("focusout-option")},o=c=>{var f;(((f=r.values)==null?void 0:f.length)!=0||!i.disableOpen)&&(r.isOpened=c,!r.isOpened&&r.searchValue!=""&&n("error"))};l.watchEffect(()=>r.values=i.options),l.watchEffect(()=>r.searchValue=i.defaultOption||""),l.watch(()=>r.searchValue,()=>{r.searchValue==""&&(r.values=i.options)});const s=()=>{var c;r.isOpened=!0,r.values=i.options.filter(f=>r.searchValue.toLowerCase().split(" ").every(h=>f.toLowerCase().includes(h))),n("change",r.searchValue),((c=r.values)==null?void 0:c.length)==0&&(r.isOpened=!1)},u=c=>{r.searchValue=c,r.isOpened=!1,n("change",c)};return(c,f)=>{var h;return l.openBlock(),l.createBlock(vo,{onChange:o,"is-opened":r.isOpened,"disable-open":((h=r.values)==null?void 0:h.length)==0,class:l.normalizeClass(i.class),disabled:i.disabled,onFocusoutOptions:a,"header-classes":"filter__header","options-classes":"filter__options","data-testid":i.dataTestid},{header:l.withCtx(()=>[l.withDirectives(l.createElementVNode("input",{type:"search",class:"combobox__input","onUpdate:modelValue":f[0]||(f[0]=g=>r.searchValue=g),placeholder:r.placeholder,onKeydown:l.withKeys(s,["enter"]),onInput:s,"data-testid":`${i.dataTestid}-Input`},null,40,x9e),[[l.vModelText,r.searchValue]])]),options:l.withCtx(()=>[l.createVNode(Wh,{"default-option":r.searchValue,options:r.values,onChange:u,"data-testid":`${i.dataTestid}-Options`},null,8,["default-option","options","data-testid"])]),_:1},8,["is-opened","disable-open","class","disabled","data-testid"])}}}),[["__scopeId","data-v-d129da4f"]]);var P1=(e=>(e.initial="initial",e.error="error",e.warning="warning",e.success="success",e.disabled="disabled",e.ordinary="ordinary",e.minor="minor",e))(P1||{}),s4=(e=>(e.text="text",e.email="email",e.password="password",e.tel="tel",e.url="url",e.week="week",e))(s4||{});const S9e=["data-testid"],_9e=["data-testid"],T9e=["data-testid"],P9e=["type","autocomplete","placeholder","required","data-testid"],E9e=l.defineComponent({__name:"Input",props:{placeholder:{},inputMessage:{default:""},type:{default:s4.text},required:{type:Boolean,default:!1},modelValue:{default:""},hideClearButton:{type:Boolean,default:!1},autocomplete:{},modelModifiers:{default:()=>({})},dataTestid:{default:"Input"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,i=e,r=l.reactive({isPressed:!1,inputElement:i.modelValue}),a=l.ref(null),o=()=>{var f;r.inputElement="",(f=a.value)==null||f.focus(),n("update:modelValue","")},s=()=>{n("update:modelValue",r.inputElement)},u=()=>{r.isPressed=!0},c=()=>{r.isPressed=!1};return l.watch(()=>i.modelValue,f=>{r.inputElement=f}),l.watch(()=>r.inputElement,f=>{i.modelValue!=f&&(r.isPressed=(f==null?void 0:f.length)>0,r.inputElement=f)}),(f,h)=>(l.openBlock(),l.createElementBlock("fieldset",{class:l.normalizeClass(["input-yui-kit",{pressed:r.isPressed}]),onFocusout:c,"data-testid":i.dataTestid},[i.inputMessage?(l.openBlock(),l.createElementBlock("legend",{key:0,class:"input-yui-kit__legend","data-testid":`${i.dataTestid}-Legend`},[l.createTextVNode(l.toDisplayString(i.inputMessage),1),i.required?(l.openBlock(),l.createElementBlock("sup",{key:0,"data-testid":`${i.dataTestid}-Star`,class:"input-yui-kit__star"},"*",8,T9e)):l.createCommentVNode("",!0)],8,_9e)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("input",{ref_key:"inputRef",ref:a,"onUpdate:modelValue":h[0]||(h[0]=g=>r.inputElement=g),onFocus:u,onInput:s,type:i.type,autocomplete:i.autocomplete,class:"input-yui-kit__input",placeholder:i.placeholder,required:i.required,"data-testid":`${i.dataTestid}-Input`},null,40,P9e),[[l.vModelDynamic,r.inputElement]]),!i.hideClearButton&&r.isPressed&&r.inputElement?(l.openBlock(),l.createBlock(Ot,{key:1,type:l.unref(ut).ghost,class:"input-yui-kit__close","data-testid":`${i.dataTestid}-Button`,onMousedown:l.withModifiers(o,["prevent"]),tabindex:"-1"},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).exitSmall,color:"currentColor","data-testid":`${i.dataTestid}-Button-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","data-testid"])):l.createCommentVNode("",!0)],42,S9e))}}),E1=pe(E9e,[["__scopeId","data-v-5b05a751"]]),A9e=["data-testid"],D9e=["data-testid"],N9e=["data-testid"],j9e=["required","data-testid"],I9e=["data-testid"],W9e=["data-testid","disabled"],O9e=["data-testid","disabled"],z9e=l.defineComponent({__name:"InputNumber",props:{inputMessage:{},modelValue:{default:0},required:{type:Boolean},isInteger:{type:Boolean,default:!1},min:{default:0},max:{default:1/0},size:{default:Ai.medium},modelModifiers:{default:()=>({})},dataTestid:{default:"InputNumber"}},emits:["update:modelValue","focused"],setup(e,{emit:t}){const n=t,i=e,r=l.reactive({isPressed:!1,inputElement:i.modelValue||(i.min>0?i.min:0),prevValue:""});l.watch(()=>i.isInteger,()=>{i.isInteger&&(r.inputElement=u(r.inputElement.toString()),c(r.inputElement))}),l.watch([()=>i.min,()=>i.max],()=>{h(),f()}),l.watch(()=>i.modelValue,w=>{r.inputElement=w});const a=/^-?\d{0,10}(\.\d{0,7})?$/,o=l.ref(null),s=w=>{const M=w.target.value,x=u(M);c(x),!isNaN(+r.inputElement)&&Number(r.inputElement)<=i.max&&Number(r.inputElement)>=i.min&&n("update:modelValue",r.inputElement)},u=w=>{let M=w.replace(",",".");return i.isInteger&&M.includes(".")&&(M=M.replace(".","")),M==="."?M="0"+M:M==="-."&&(M="-0."+M.slice(2)),/[^\d.]/.test(M)&&(M=M.replace(i.min>=0?/[^0-9.]/g:/[^0-9.-]/g,"")),M.includes("-")&&(M=(M.startsWith("-")?"-":"")+M.replace(/-/g,"")),M.startsWith("0")&&M.length>1&&!M.startsWith("0.")&&(M=M.replace(/^0+/,"")),M.startsWith("-0")&&M.length>2&&!M.startsWith("-0.")&&(M="-"+M.slice(2).replace(/^0+/,"")),(M.match(/\./g)||[]).length>1&&(M=M.slice(0,M.lastIndexOf("."))+M.slice(M.lastIndexOf(".")+1)),M},c=w=>{Number(w)>i.max?r.inputElement=i.max:r.inputElement=w,r.inputElement!==""&&!a.test(`${r.inputElement}`)&&(r.inputElement=r.prevValue)},f=()=>{Number(r.inputElement)<i.min&&(r.inputElement=i.min,n("update:modelValue",+r.inputElement))},h=()=>{Number(r.inputElement)>i.max&&(r.inputElement=i.max,n("update:modelValue",+r.inputElement))},g=w=>{r.prevValue=r.inputElement,w.key==="ArrowUp"&&v(),w.key==="ArrowDown"&&k()},p=w=>{r.isPressed=!0,n("focused",w)},y=()=>{(r.inputElement===""||r.inputElement===null||isNaN(+r.inputElement))&&(r.inputElement=i.min>0?i.min:0),isNaN(+r.inputElement)&&(r.inputElement=Math.max(i.min,0)),Number(r.inputElement)>i.max?r.inputElement=i.max:Number(r.inputElement)<i.min&&(r.inputElement=i.min),r.inputElement=`${r.inputElement}`.replace(/(\.\d*?[1-9])0+$/,"$1").replace(/\.0+$/,""),n("update:modelValue",r.inputElement),r.isPressed=!1},v=()=>{var w;+r.inputElement+1<i.max?r.inputElement=+r.inputElement+1:i.max!==1/0?r.inputElement=i.max:r.inputElement=0,a.test(`${r.inputElement}`)?n("update:modelValue",r.inputElement):r.inputElement=r.prevValue,(w=o.value)==null||w.focus()},k=()=>{var w;+r.inputElement-1>i.min?r.inputElement=+r.inputElement-1:i.min!==-1/0?r.inputElement=i.min:r.inputElement=0,n("update:modelValue",+r.inputElement),(w=o.value)==null||w.focus()};return l.onMounted(()=>{h(),f()}),(w,M)=>(l.openBlock(),l.createElementBlock("fieldset",{class:l.normalizeClass(["input-yui-kit input-yui-kit_number initial",{pressed:r.isPressed,[i.size]:!0}]),"data-testid":i.dataTestid,onFocusout:y},[i.inputMessage?(l.openBlock(),l.createElementBlock("legend",{key:0,class:"input-yui-kit__legend","data-testid":`${i.dataTestid}-Legend`},[l.createTextVNode(l.toDisplayString(i.inputMessage),1),i.required?(l.openBlock(),l.createElementBlock("sup",{key:0,class:"input-yui-kit__star","data-testid":`${i.dataTestid}-Star`},"*",8,N9e)):l.createCommentVNode("",!0)],8,D9e)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("input",{ref_key:"inputNumberRef",ref:o,"onUpdate:modelValue":M[0]||(M[0]=x=>r.inputElement=x),onFocus:p,onInput:s,onKeydown:g,class:"input-yui-kit__input",required:i.required,"data-testid":`${i.dataTestid}-Input`,type:"text"},null,40,j9e),[[l.vModelText,r.inputElement]]),l.createElementVNode("div",{class:"input-yui-kit__buttons","data-testid":`${i.dataTestid}-Buttons`},[l.createElementVNode("button",{class:"input-yui-kit__button-up","data-testid":`${i.dataTestid}-UpButton`,onMousedown:l.withModifiers(v,["prevent"]),disabled:+r.inputElement>=i.max},[l.createVNode(ve,{name:l.unref(ce).chevronUp,"data-testid":`${i.dataTestid}-Icon`},null,8,["name","data-testid"])],40,W9e),l.createElementVNode("button",{class:"input-yui-kit__button-down","data-testid":`${i.dataTestid}-DownButton`,onMousedown:l.withModifiers(k,["prevent"]),disabled:+r.inputElement<=i.min},[l.createVNode(ve,{name:l.unref(ce).chevronDown,"data-testid":`${i.dataTestid}-Icon`},null,8,["name","data-testid"])],40,O9e)],8,I9e)],42,A9e))}}),A1=pe(z9e,[["__scopeId","data-v-6ad81bef"]]),l4="data:image/svg+xml,%3csvg%20width='147'%20height='111'%20viewBox='0%200%20147%20111'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M132.938%2087.875C132.938%2090.3283%20131.871%2092.681%20129.973%2094.4157C128.074%2096.1504%20125.499%2097.125%20122.814%2097.125H31.6978C29.0128%2097.125%2026.4377%2096.1504%2024.5391%2094.4157C22.6405%2092.681%2021.5738%2090.3283%2021.5738%2087.875V37C21.5738%2034.5467%2022.6405%2032.194%2024.5391%2030.4593C26.4377%2028.7246%2029.0128%2027.75%2031.6978%2027.75H51.9459L62.0699%2013.875H92.4419L102.566%2027.75H122.814C125.499%2027.75%20128.074%2028.7246%20129.973%2030.4593C131.871%2032.194%20132.938%2034.5467%20132.938%2037V87.875Z'%20stroke='%23A6A3AD'%20stroke-width='9.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M77.2559%2078.625C88.4386%2078.625%2097.5039%2070.3423%2097.5039%2060.125C97.5039%2049.9077%2088.4386%2041.625%2077.2559%2041.625C66.0732%2041.625%2057.0079%2049.9077%2057.0079%2060.125C57.0079%2070.3423%2066.0732%2078.625%2077.2559%2078.625Z'%20stroke='%23A6A3AD'%20stroke-width='9.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15%2026L138.699%2097.4178'%20stroke='%23A6A3AD'%20stroke-width='10'%20stroke-linecap='round'/%3e%3c/svg%3e";var Od=(e=>(e.jpg="jpg",e.png="png",e.jpeg="jpeg",e.webp="webp",e.svg="svg",e.pdf="pdf",e))(Od||{}),zd=(e=>(e.mp4="mp4",e.mp3="mp3",e.avif="avif",e))(zd||{});const L9e=["data-testid"],$9e=["data-testid"],H9e=["disabled","data-testid"],R9e=["data-testid"],B9e=["data-testid"],V9e=["data-testid"],F9e=["data-testid"],U9e=["data-testid"],Y9e=["src","data-testid"],X9e=["data-testid"],q9e=["src"],G9e=["disabled","data-testid"],Ld="slider-yui-kit__full-size",D1=pe(l.defineComponent({__name:"Slider",props:{items:{},defaultIndex:{},dataTestid:{default:"Slider"}},setup(e,{expose:t}){const n=e,i=l.reactive({files:n.items.length?n.items:[],file:null,currentIndex:n.defaultIndex||0,extension:null}),r=l.ref(null),a=l.ref(null),o=()=>{var w;return(w=n.items)!=null&&w.length?i.currentIndex===n.items.length-1:!0},s=w=>{if(!w)return null;const M=w.split("?")[0],x=/\.\w+$/,S=M.match(x);return i.extension=S?S[0].replace(".",""):null,i.extension},u=w=>{const M=s(w);return M?Object.values(Od).includes(M.toLowerCase()):!1},c=w=>{const M=s(w);return M?Object.values(zd).includes(M):!1},f=w=>{w instanceof KeyboardEvent&&w.key==="Escape"&&a.value&&a.value.classList.contains(Ld)&&(a.value.classList.remove(Ld),document.body.style.overflow="auto")},h=w=>{if(w.type==="click"){const M=w.target;M.classList.toggle(Ld),M.classList.contains(Ld)?(window.addEventListener("keydown",f),r.value&&(r.value.style.cursor="zoom-out")):(window.removeEventListener("keydown",f),r.value&&(r.value.style.cursor="zoom-in"))}},g=()=>{i.currentIndex--,i.file=i.files[i.currentIndex]},p=()=>{i.currentIndex++,i.file=i.files[i.currentIndex]},y=()=>i.files.length===0,v=()=>{var w,M;return u(((w=i.file)==null?void 0:w.path)??null)==!1&&c(((M=i.file)==null?void 0:M.path)??null)==!1&&i.files.length>0};l.onMounted(()=>{if(!n.items)return 0;i.files=n.items,n.defaultIndex&&(i.file=i.files[i.currentIndex]),i.file=i.files[i.currentIndex]});const k=w=>{w>=0&&w<i.files.length&&(i.currentIndex=w,i.file=i.files[i.currentIndex])};return l.watch(()=>n.items,()=>{i.files=n.items},{deep:!0}),t({setSlide:k}),(w,M)=>{var x,S,E,I;return l.openBlock(),l.createElementBlock("div",{class:"slider-yui-kit","data-testid":n.dataTestid},[l.createElementVNode("div",{class:"slider-yui-kit__wrapper",ref:"slider-yui-kitWrapperRef","data-testid":`${n.dataTestid}-Wrapper`},[l.createElementVNode("button",{class:"slider-yui-kit__button slider-yui-kit__button--prev",onClick:g,disabled:i.currentIndex===0,"data-testid":`${n.dataTestid}-Prev-Button`},[l.createVNode(ve,{name:l.unref(ce).leftBig,"data-testid":`${n.dataTestid}-Prev-Icon`},null,8,["name","data-testid"])],8,H9e),l.createElementVNode("div",{class:"slider-yui-kit__slides","data-testid":`${n.dataTestid}-Slides-Container`},[y()?(l.openBlock(),l.createElementBlock("div",{key:0,class:"placeholder-yui-kit no-content","data-testid":`${n.dataTestid}-NoContent-Placeholder`},[l.createElementVNode("img",{src:l4,alt:"",width:"111px",height:"111px","data-testid":`${n.dataTestid}-NoContent-Image`},null,8,V9e),l.createElementVNode("p",{"data-testid":`${n.dataTestid}-NoContent-Paragrpah`}," Контент отсутствует ",8,F9e)],8,B9e)):v()?(l.openBlock(),l.createElementBlock("div",{key:1,class:"placeholder-yui-kit","data-testid":`${n.dataTestid}-Invalid-Extension-Placeholder`},[M[2]||(M[2]=l.createElementVNode("img",{src:l4,alt:"",width:"111px",height:"111px"},null,-1)),l.createElementVNode("p",null,"."+l.toDisplayString(i.extension),1)],8,U9e)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[u(((x=i.file)==null?void 0:x.path)??"")?(l.openBlock(),l.createElementBlock("img",{key:0,onClick:M[0]||(M[0]=A=>h(A)),src:((S=i.file)==null?void 0:S.path)??"",ref_key:"fullsizeImageRef",ref:a,"data-testid":`${n.dataTestid}-Image`},null,8,Y9e)):l.createCommentVNode("",!0),c(((E=i.file)==null?void 0:E.path)??"")?(l.openBlock(),l.createElementBlock("video",{key:1,onClick:M[1]||(M[1]=A=>h(A)),controls:"","data-testid":`${n.dataTestid}-Video`},[l.createElementVNode("source",{src:((I=i.file)==null?void 0:I.path)??""},null,8,q9e)],8,X9e)):l.createCommentVNode("",!0)],64))],8,R9e),l.createElementVNode("button",{class:"slider-yui-kit__button slider-yui-kit__button--next",onClick:p,disabled:o(),"data-testid":`${n.dataTestid}-Next-Button`},[l.createVNode(ve,{name:l.unref(ce).rightBig,"data-testid":`${n.dataTestid}-Next-Icon`},null,8,["name","data-testid"])],8,G9e)],8,$9e)],8,L9e)}}}),[["__scopeId","data-v-053ccf63"]]),K9e=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function Q9e(e){return K9e.test(e)}function u4(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.split(/[:\/]/g).pop().toLowerCase()}u4.valid=Q9e;const J9e=(e="")=>e+u4();var Uo=(e=>(e.small="small",e.medium="medium",e.big="big",e.large="large",e))(Uo||{});const Z9e=["disabled","data-testid"],e8e=["id","disabled","data-testid"],t8e=["for","data-testid"],n8e=l.defineComponent({__name:"Toggle",props:l.mergeModels({disabled:{type:Boolean,default:!1},backgroundColor:{},type:{default:Uo.small},dataTestid:{default:"Toggle"}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:l.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const n=e,i=t,r=l.useModel(e,"modelValue"),a=J9e(),o=l.computed(()=>({"toggle-yui-kit":!0,"toggle-yui-kit_small":n.type===Uo.small,"toggle-yui-kit_medium":n.type===Uo.medium,"toggle-yui-kit_large":n.type===Uo.large})),s=l.computed(()=>({backgroundColor:n.backgroundColor})),u=()=>i("change",!!r.value);return(c,f)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(o.value),disabled:n.disabled,style:l.normalizeStyle(s.value),"data-testid":`${n.dataTestid}-Toggle`},[l.withDirectives(l.createElementVNode("input",{class:"toggle-yui-kit-input",id:l.unref(a),type:"checkbox",disabled:e.disabled,"onUpdate:modelValue":f[0]||(f[0]=h=>r.value=h),onChange:u,"data-testid":`${n.dataTestid}-Input`},null,40,e8e),[[l.vModelCheckbox,r.value]]),l.createElementVNode("label",{class:"toggle-yui-kit-label",for:l.unref(a),"data-testid":`${n.dataTestid}-Label`},null,8,t8e)],14,Z9e))}}),$d=pe(n8e,[["__scopeId","data-v-2898cbfe"]]);/*!
|
|
1292
1292
|
* perfect-scrollbar v1.5.3
|
|
1293
1293
|
* Copyright 2021 Hyunje Jun, MDBootstrap and Contributors
|
|
1294
1294
|
* Licensed under MIT
|
|
1295
|
-
*/function Ri(e){return getComputedStyle(e)}function Cn(e,t){for(var n in t){var i=t[n];typeof i=="number"&&(i=i+"px"),e.style[n]=i}return e}function Hd(e){var t=document.createElement("div");return t.className=e,t}var d3=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function $r(e,t){if(!d3)throw new Error("No element matching method supported");return d3.call(e,t)}function Yo(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function c3(e,t){return Array.prototype.filter.call(e.children,function(n){return $r(n,t)})}var vt={main:"ps",rtl:"ps__rtl",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},f3={x:null,y:null};function h3(e,t){var n=e.element.classList,i=vt.state.scrolling(t);n.contains(i)?clearTimeout(f3[t]):n.add(i)}function m3(e,t){f3[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(vt.state.scrolling(t))},e.settings.scrollingThreshold)}function i8e(e,t){h3(e,t),m3(e,t)}var wl=function(t){this.element=t,this.handlers={}},p3={isEmpty:{configurable:!0}};wl.prototype.bind=function(t,n){typeof this.handlers[t]>"u"&&(this.handlers[t]=[]),this.handlers[t].push(n),this.element.addEventListener(t,n,!1)},wl.prototype.unbind=function(t,n){var i=this;this.handlers[t]=this.handlers[t].filter(function(r){return n&&r!==n?!0:(i.element.removeEventListener(t,r,!1),!1)})},wl.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},p3.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return e.handlers[t].length===0})},Object.defineProperties(wl.prototype,p3);var Xo=function(){this.eventElements=[]};Xo.prototype.eventElement=function(t){var n=this.eventElements.filter(function(i){return i.element===t})[0];return n||(n=new wl(t),this.eventElements.push(n)),n},Xo.prototype.bind=function(t,n,i){this.eventElement(t).bind(n,i)},Xo.prototype.unbind=function(t,n,i){var r=this.eventElement(t);r.unbind(n,i),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},Xo.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},Xo.prototype.once=function(t,n,i){var r=this.eventElement(t),a=function(o){r.unbind(n,a),i(o)};r.bind(n,a)};function Rd(e){if(typeof window.CustomEvent=="function")return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function Bd(e,t,n,i,r){i===void 0&&(i=!0),r===void 0&&(r=!1);var a;if(t==="top")a=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(t==="left")a=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");r8e(e,n,a,i,r)}function r8e(e,t,n,i,r){var a=n[0],o=n[1],s=n[2],u=n[3],c=n[4],f=n[5];i===void 0&&(i=!0),r===void 0&&(r=!1);var h=e.element;e.reach[u]=null,h[s]<1&&(e.reach[u]="start"),h[s]>e[a]-e[o]-1&&(e.reach[u]="end"),t&&(h.dispatchEvent(Rd("ps-scroll-"+u)),t<0?h.dispatchEvent(Rd("ps-scroll-"+c)):t>0&&h.dispatchEvent(Rd("ps-scroll-"+f)),i&&i8e(e,u)),e.reach[u]&&(t||r)&&h.dispatchEvent(Rd("ps-"+u+"-reach-"+e.reach[u]))}function ot(e){return parseInt(e,10)||0}function a8e(e){return $r(e,"input,[contenteditable]")||$r(e,"select,[contenteditable]")||$r(e,"textarea,[contenteditable]")||$r(e,"button,[contenteditable]")}function o8e(e){var t=Ri(e);return ot(t.width)+ot(t.paddingLeft)+ot(t.paddingRight)+ot(t.borderLeftWidth)+ot(t.borderRightWidth)}var qo={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function rr(e){var t=e.element,n=Math.floor(t.scrollTop),i=t.getBoundingClientRect();e.containerWidth=Math.round(i.width),e.containerHeight=Math.round(i.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(c3(t,vt.element.rail("x")).forEach(function(r){return Yo(r)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(c3(t,vt.element.rail("y")).forEach(function(r){return Yo(r)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=g3(e,ot(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=ot((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=g3(e,ot(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=ot(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),s8e(t,e),e.scrollbarXActive?t.classList.add(vt.state.active("x")):(t.classList.remove(vt.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=e.isRtl===!0?e.contentWidth:0),e.scrollbarYActive?t.classList.add(vt.state.active("y")):(t.classList.remove(vt.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function g3(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function s8e(e,t){var n={width:t.railXWidth},i=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-i:n.top=t.scrollbarXTop+i,Cn(t.scrollbarXRail,n);var r={top:i,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?r.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:r.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?r.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth*2-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:r.left=t.scrollbarYLeft+e.scrollLeft,Cn(t.scrollbarYRail,r),Cn(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),Cn(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}function l8e(e){e.element,e.event.bind(e.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top,i=n>e.scrollbarYTop?1:-1;e.element.scrollTop+=i*e.containerHeight,rr(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left,i=n>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=i*e.containerWidth,rr(e),t.stopPropagation()})}function u8e(e){y3(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),y3(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function y3(e,t){var n=t[0],i=t[1],r=t[2],a=t[3],o=t[4],s=t[5],u=t[6],c=t[7],f=t[8],h=e.element,g=null,p=null,y=null;function v(M){M.touches&&M.touches[0]&&(M[r]=M.touches[0].pageY),h[u]=g+y*(M[r]-p),h3(e,c),rr(e),M.stopPropagation(),M.type.startsWith("touch")&&M.changedTouches.length>1&&M.preventDefault()}function k(){m3(e,c),e[f].classList.remove(vt.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",v)}function w(M,x){g=h[u],x&&M.touches&&(M[r]=M.touches[0].pageY),p=M[r],y=(e[i]-e[n])/(e[a]-e[s]),x?e.event.bind(e.ownerDocument,"touchmove",v):(e.event.bind(e.ownerDocument,"mousemove",v),e.event.once(e.ownerDocument,"mouseup",k),M.preventDefault()),e[f].classList.add(vt.state.clicking),M.stopPropagation()}e.event.bind(e[o],"mousedown",function(M){w(M)}),e.event.bind(e[o],"touchstart",function(M){w(M,!0)})}function d8e(e){var t=e.element,n=function(){return $r(t,":hover")},i=function(){return $r(e.scrollbarX,":focus")||$r(e.scrollbarY,":focus")};function r(a,o){var s=Math.floor(t.scrollTop);if(a===0){if(!e.scrollbarYActive)return!1;if(s===0&&o>0||s>=e.contentHeight-e.containerHeight&&o<0)return!e.settings.wheelPropagation}var u=t.scrollLeft;if(o===0){if(!e.scrollbarXActive)return!1;if(u===0&&a<0||u>=e.contentWidth-e.containerWidth&&a>0)return!e.settings.wheelPropagation}return!0}e.event.bind(e.ownerDocument,"keydown",function(a){if(!(a.isDefaultPrevented&&a.isDefaultPrevented()||a.defaultPrevented)&&!(!n()&&!i())){var o=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(o){if(o.tagName==="IFRAME")o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(a8e(o))return}var s=0,u=0;switch(a.which){case 37:a.metaKey?s=-e.contentWidth:a.altKey?s=-e.containerWidth:s=-30;break;case 38:a.metaKey?u=e.contentHeight:a.altKey?u=e.containerHeight:u=30;break;case 39:a.metaKey?s=e.contentWidth:a.altKey?s=e.containerWidth:s=30;break;case 40:a.metaKey?u=-e.contentHeight:a.altKey?u=-e.containerHeight:u=-30;break;case 32:a.shiftKey?u=e.containerHeight:u=-e.containerHeight;break;case 33:u=e.containerHeight;break;case 34:u=-e.containerHeight;break;case 36:u=e.contentHeight;break;case 35:u=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&s!==0||e.settings.suppressScrollY&&u!==0||(t.scrollTop-=u,t.scrollLeft+=s,rr(e),r(s,u)&&a.preventDefault())}})}function c8e(e){var t=e.element;function n(o,s){var u=Math.floor(t.scrollTop),c=t.scrollTop===0,f=u+t.offsetHeight===t.scrollHeight,h=t.scrollLeft===0,g=t.scrollLeft+t.offsetWidth===t.scrollWidth,p;return Math.abs(s)>Math.abs(o)?p=c||f:p=h||g,p?!e.settings.wheelPropagation:!0}function i(o){var s=o.deltaX,u=-1*o.deltaY;return(typeof s>"u"||typeof u>"u")&&(s=-1*o.wheelDeltaX/6,u=o.wheelDeltaY/6),o.deltaMode&&o.deltaMode===1&&(s*=10,u*=10),s!==s&&u!==u&&(s=0,u=o.wheelDelta),o.shiftKey?[-u,-s]:[s,u]}function r(o,s,u){if(!qo.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(o))return!1;for(var c=o;c&&c!==t;){if(c.classList.contains(vt.element.consuming))return!0;var f=Ri(c);if(u&&f.overflowY.match(/(scroll|auto)/)){var h=c.scrollHeight-c.clientHeight;if(h>0&&(c.scrollTop>0&&u<0||c.scrollTop<h&&u>0))return!0}if(s&&f.overflowX.match(/(scroll|auto)/)){var g=c.scrollWidth-c.clientWidth;if(g>0&&(c.scrollLeft>0&&s<0||c.scrollLeft<g&&s>0))return!0}c=c.parentNode}return!1}function a(o){var s=i(o),u=s[0],c=s[1];if(!r(o.target,u,c)){var f=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(c?t.scrollTop-=c*e.settings.wheelSpeed:t.scrollTop+=u*e.settings.wheelSpeed,f=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(u?t.scrollLeft+=u*e.settings.wheelSpeed:t.scrollLeft-=c*e.settings.wheelSpeed,f=!0):(t.scrollTop-=c*e.settings.wheelSpeed,t.scrollLeft+=u*e.settings.wheelSpeed),rr(e),f=f||n(u,c),f&&!o.ctrlKey&&(o.stopPropagation(),o.preventDefault())}}typeof window.onwheel<"u"?e.event.bind(t,"wheel",a):typeof window.onmousewheel<"u"&&e.event.bind(t,"mousewheel",a)}function f8e(e){if(!qo.supportsTouch&&!qo.supportsIePointer)return;var t=e.element;function n(y,v){var k=Math.floor(t.scrollTop),w=t.scrollLeft,M=Math.abs(y),x=Math.abs(v);if(x>M){if(v<0&&k===e.contentHeight-e.containerHeight||v>0&&k===0)return window.scrollY===0&&v>0&&qo.isChrome}else if(M>x&&(y<0&&w===e.contentWidth-e.containerWidth||y>0&&w===0))return!0;return!0}function i(y,v){t.scrollTop-=v,t.scrollLeft-=y,rr(e)}var r={},a=0,o={},s=null;function u(y){return y.targetTouches?y.targetTouches[0]:y}function c(y){return y.pointerType&&y.pointerType==="pen"&&y.buttons===0?!1:!!(y.targetTouches&&y.targetTouches.length===1||y.pointerType&&y.pointerType!=="mouse"&&y.pointerType!==y.MSPOINTER_TYPE_MOUSE)}function f(y){if(c(y)){var v=u(y);r.pageX=v.pageX,r.pageY=v.pageY,a=new Date().getTime(),s!==null&&clearInterval(s)}}function h(y,v,k){if(!t.contains(y))return!1;for(var w=y;w&&w!==t;){if(w.classList.contains(vt.element.consuming))return!0;var M=Ri(w);if(k&&M.overflowY.match(/(scroll|auto)/)){var x=w.scrollHeight-w.clientHeight;if(x>0&&(w.scrollTop>0&&k<0||w.scrollTop<x&&k>0))return!0}if(v&&M.overflowX.match(/(scroll|auto)/)){var S=w.scrollWidth-w.clientWidth;if(S>0&&(w.scrollLeft>0&&v<0||w.scrollLeft<S&&v>0))return!0}w=w.parentNode}return!1}function g(y){if(c(y)){var v=u(y),k={pageX:v.pageX,pageY:v.pageY},w=k.pageX-r.pageX,M=k.pageY-r.pageY;if(h(y.target,w,M))return;i(w,M),r=k;var x=new Date().getTime(),S=x-a;S>0&&(o.x=w/S,o.y=M/S,a=x),n(w,M)&&y.preventDefault()}}function p(){e.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){if(e.isInitialized){clearInterval(s);return}if(!o.x&&!o.y){clearInterval(s);return}if(Math.abs(o.x)<.01&&Math.abs(o.y)<.01){clearInterval(s);return}if(!e.element){clearInterval(s);return}i(o.x*30,o.y*30),o.x*=.8,o.y*=.8},10))}qo.supportsTouch?(e.event.bind(t,"touchstart",f),e.event.bind(t,"touchmove",g),e.event.bind(t,"touchend",p)):qo.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",f),e.event.bind(t,"pointermove",g),e.event.bind(t,"pointerup",p)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",f),e.event.bind(t,"MSPointerMove",g),e.event.bind(t,"MSPointerUp",p)))}var h8e=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},m8e={"click-rail":l8e,"drag-thumb":u8e,keyboard:d8e,wheel:c8e,touch:f8e},vl=function(t,n){var i=this;if(n===void 0&&(n={}),typeof t=="string"&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=t,t.classList.add(vt.main),this.settings=h8e();for(var r in n)this.settings[r]=n[r];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var a=function(){return t.classList.add(vt.state.focus)},o=function(){return t.classList.remove(vt.state.focus)};this.isRtl=Ri(t).direction==="rtl",this.isRtl===!0&&t.classList.add(vt.rtl),this.isNegativeScroll=function(){var c=t.scrollLeft,f=null;return t.scrollLeft=-1,f=t.scrollLeft<0,t.scrollLeft=c,f}(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new Xo,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=Hd(vt.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=Hd(vt.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",o),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var s=Ri(this.scrollbarXRail);this.scrollbarXBottom=parseInt(s.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=ot(s.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=ot(s.borderLeftWidth)+ot(s.borderRightWidth),Cn(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ot(s.marginLeft)+ot(s.marginRight),Cn(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=Hd(vt.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=Hd(vt.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",o),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=Ri(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=ot(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?o8e(this.scrollbarY):null,this.railBorderYWidth=ot(u.borderTopWidth)+ot(u.borderBottomWidth),Cn(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ot(u.marginTop)+ot(u.marginBottom),Cn(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(c){return m8e[c](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(c){return i.onScroll(c)}),rr(this)};vl.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Cn(this.scrollbarXRail,{display:"block"}),Cn(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=ot(Ri(this.scrollbarXRail).marginLeft)+ot(Ri(this.scrollbarXRail).marginRight),this.railYMarginHeight=ot(Ri(this.scrollbarYRail).marginTop)+ot(Ri(this.scrollbarYRail).marginBottom),Cn(this.scrollbarXRail,{display:"none"}),Cn(this.scrollbarYRail,{display:"none"}),rr(this),Bd(this,"top",0,!1,!0),Bd(this,"left",0,!1,!0),Cn(this.scrollbarXRail,{display:""}),Cn(this.scrollbarYRail,{display:""}))},vl.prototype.onScroll=function(t){this.isAlive&&(rr(this),Bd(this,"top",this.element.scrollTop-this.lastScrollTop),Bd(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},vl.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Yo(this.scrollbarX),Yo(this.scrollbarY),Yo(this.scrollbarXRail),Yo(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},vl.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};const p8e=l.defineComponent({__name:"PerfectScrollbar",props:{tag:{default:"div"},options:{default:()=>({})}},emits:["scroll","ps-scroll-y","ps-scroll-x","ps-scroll-up","ps-scroll-down","ps-scroll-left","ps-scroll-right","ps-y-reach-start","ps-y-reach-end","ps-x-reach-start","ps-x-reach-end"],setup(e,{expose:t,emit:n}){const i=e,r=n,a=l.ref(null),o=l.ref(null);l.watch(()=>i.options,()=>{u(),s()},{deep:!0}),l.onMounted(()=>{a.value&&s()}),l.onBeforeUnmount(()=>{u()});function s(){a.value&&(o.value=new vl(a.value,i.options),h())}function u(){o.value&&(h(!1),o.value.destroy(),o.value=null)}const c={scroll:f("scroll"),"ps-scroll-y":f("ps-scroll-y"),"ps-scroll-x":f("ps-scroll-x"),"ps-scroll-up":f("ps-scroll-up"),"ps-scroll-down":f("ps-scroll-down"),"ps-scroll-left":f("ps-scroll-left"),"ps-scroll-right":f("ps-scroll-right"),"ps-y-reach-start":f("ps-y-reach-start"),"ps-y-reach-end":f("ps-y-reach-end"),"ps-x-reach-start":f("ps-x-reach-start"),"ps-x-reach-end":f("ps-x-reach-end")};function f(g){return function(p){r(g,p)}}function h(g=!0){var p;(p=o.value)!=null&&p.element&&Object.entries(c).forEach(([y,v])=>{var k,w;g?(k=o.value)==null||k.element.addEventListener(y,v):(w=o.value)==null||w.element.removeEventListener(y,v)})}return t({ps:o}),(g,p)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(g.tag),{ref_key:"scrollbar",ref:a,class:"ps"},{default:l.withCtx(()=>[l.renderSlot(g.$slots,"default")]),_:3},512))}}),g8e=["data-testid"],N1=l.defineComponent({__name:"Scrollbar",props:{options:{},tag:{},class:{},style:{},thrumbStyle:{},railStyle:{},dataTestid:{default:"ScrollBar"}},emits:["scroll","ps-scroll-y","ps-scroll-x","ps-scroll-up","ps-scroll-down","ps-scroll-left","ps-scroll-right","ps-y-reach-start","ps-y-reach-end","ps-x-reach-start","ps-x-reach-end"],setup(e,{expose:t,emit:n}){const i=e,r=l.ref(null),a=n,o=h=>{a("scroll",h)},s={attributes:!0,attributeFilter:["style"]},u=(h,g)=>p=>{for(const y of p)y.type==="attributes"&&y.attributeName==="style"&&h.style.right!==g&&(h.style.right=g)},c=()=>{var w,M,x,S,E,I,A,W,$,D,z,H,X,re,ne,q,Z,ue,Ne,it,xt,Kt,Ht,qe;if(!r.value)return;const h=r.value.querySelector(".ps__thumb-y"),g=r.value.querySelector(".ps__thumb-x"),p=r.value.querySelector(".ps__rail-y"),y=r.value.querySelector(".ps__rail-x");h.style.background=((M=(w=i.thrumbStyle)==null?void 0:w.y)==null?void 0:M.background)||"#77a6ff",h.style.width=((S=(x=i.thrumbStyle)==null?void 0:x.y)==null?void 0:S.width)||"6px",h.style.right="0px",g.style.background=((I=(E=i.thrumbStyle)==null?void 0:E.x)==null?void 0:I.background)||"#77a6ff",g.style.width=((W=(A=i.thrumbStyle)==null?void 0:A.x)==null?void 0:W.width)||"6px",g.style.right="0px",p.style.background=((D=($=i.railStyle)==null?void 0:$.y)==null?void 0:D.background)||"#F5F5F5",p.style.width=((H=(z=i.thrumbStyle)==null?void 0:z.y)==null?void 0:H.width)||"6px",p.style.right=((re=(X=i.railStyle)==null?void 0:X.y)==null?void 0:re.right)||"0px",y.style.background=((q=(ne=i.railStyle)==null?void 0:ne.x)==null?void 0:q.background)||"#F5F5F5",y.style.width=((ue=(Z=i.thrumbStyle)==null?void 0:Z.x)==null?void 0:ue.width)||"6px",y.style.right=((it=(Ne=i.railStyle)==null?void 0:Ne.x)==null?void 0:it.right)||"0px";const v=new MutationObserver(u(p,((Kt=(xt=i.railStyle)==null?void 0:xt.y)==null?void 0:Kt.right)||"0px")),k=new MutationObserver(u(y,((qe=(Ht=i.railStyle)==null?void 0:Ht.x)==null?void 0:qe.right)||"0px"));v.observe(p,s),k.observe(y,s)};return l.watch(()=>i,()=>{c()},{immediate:!0}),t({scrollToTop:()=>{r.value&&(r.value.children[0].scrollTop=0)}}),l.onMounted(()=>{c()}),(h,g)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"scrollbar",ref:r,"data-testid":i.dataTestid},[l.createVNode(l.unref(p8e),{onScroll:o,options:i.options,tag:i.tag,class:l.normalizeClass(i.class),style:l.normalizeStyle(i.style),"data-testid":`${i.dataTestid}-Scroll`,ref_key:"scrollbar",ref:r},{default:l.withCtx(()=>[l.renderSlot(h.$slots,"default")]),_:3},8,["options","tag","class","style","data-testid"])],8,g8e))}});function dn(e,t=document.documentElement){for(const[n,i]of Object.entries(e))t.style.setProperty(n,String(i))}const y8e=()=>{const e=l.ref(0),t=l.ref([]),n=l.ref(null),i=u=>{t.value.push(u),a(u),o()},r=()=>{t.value.pop(),s(),t.value.length?a(t.value[t.value.length-1]):n.value=null},a=u=>{n.value=u},o=()=>{e.value+=1},s=()=>{e.value>0&&(e.value-=1)};return{countOpenedModal:e,openedModals:t,lastOpenedModal:n,addOpenedModal:i,reduceOpenedModal:r,setLastOpenedModal:a,incrementCountModal:o,decrementCountModal:s}},b8e=["data-testid"],w8e=["data-testid"],v8e=pe(l.defineComponent({__name:"Modal",props:{open:{type:Boolean},position:{default:"right"},width:{},height:{},dataTestid:{default:"Modal"}},emits:["close","unmounted"],setup(e,{expose:t,emit:n}){const{lastOpenedModal:i,addOpenedModal:r,reduceOpenedModal:a}=y8e(),o=e,s=l.ref(null),u=l.useAttrs(),c=l.ref(!1),f=l.computed(()=>({width:o.width,height:o.height})),h=n;let g=0;const p=()=>{g=Date.now(),s.value&&(o.open?(s.value.showModal(),r(s.value)):y())},y=()=>{Date.now()-g<300||(a(),h("close"))},v=()=>{var S;(S=s.value)==null||S.close(),document.documentElement.focus(),M()},k=S=>{S.key==="Escape"&&i.value===s.value&&y()},w=()=>{if(document.querySelectorAll(".modal-yui-kit").length===1)return window.innerWidth-document.documentElement.clientWidth;{const E=document.body.style.paddingRight;return Number(E.replace(/\D/g,""))||0}},M=()=>{document.querySelectorAll(".modal-yui-kit").length===0&&dn({overflow:"","padding-right":""},document.body)},x=S=>{S.target===s.value&&y()};return t({closeDialog:v}),l.onMounted(()=>{l.watchEffect(()=>{o.open!==c.value&&(p(),c.value=o.open)}),s.value&&s.value.addEventListener("cancel",E=>{E.preventDefault()});const S=w();dn({overflow:"hidden","padding-right":`${S}px`},document.body),document.addEventListener("keydown",k)}),l.onUnmounted(()=>{M(),document.removeEventListener("keydown",k),h("unmounted")}),(S,E)=>(l.openBlock(),l.createElementBlock("dialog",l.mergeProps({ref_key:"dialog",ref:s},l.unref(u),{class:["modal-yui-kit",`modal-yui-kit_${o.position}`],"data-testid":o.dataTestid,onClick:l.withModifiers(x,["self","left"])}),[l.createElementVNode("div",{class:"modal-yui-kit__modal-content",style:l.normalizeStyle(f.value),"data-testid":`${o.dataTestid}-ModalContent`},[l.renderSlot(S.$slots,"default",{},void 0,!0)],12,w8e)],16,b8e))}}),[["__scopeId","data-v-a609e064"]]);var Vd=(e=>(e.right="right",e.fade="fade",e))(Vd||{});const k8e=l.defineComponent({__name:"ModalAnimated",props:{animateType:{default:Vd.right},open:{type:Boolean},position:{default:"right"},width:{},height:{},dataTestid:{default:"Modal"}},emits:["close","unmounted","end-animation"],setup(e,{emit:t}){const n=e,i=t,r=l.computed(()=>{switch(n.animateType){case Vd.fade:return"fade";case Vd.right:return"modal";default:return"modal"}}),a=l.ref(null),o=l.reactive({function:()=>{}}),s=()=>{var f;a.value&&(o.function=(f=a.value)==null?void 0:f.closeDialog),i("close")},u=()=>{i("unmounted")},c=()=>{o.function(),i("end-animation")};return(f,h)=>(l.openBlock(),l.createBlock(l.Transition,{name:r.value,onAfterLeave:c},{default:l.withCtx(()=>[n.open?(l.openBlock(),l.createBlock(v8e,{key:0,ref_key:"modalRef",ref:a,open:n.open,position:n.position,width:n.width,height:n.height,"data-testid":n.dataTestid,onClose:s,onUnmounted:u},{default:l.withCtx(()=>[l.renderSlot(f.$slots,"default",{},void 0,!0)]),_:3},8,["open","position","width","height","data-testid"])):l.createCommentVNode("",!0)]),_:3},8,["name"]))}}),Fd=pe(k8e,[["__scopeId","data-v-911f7fad"]]);var b3=(e=>(e.small="small",e.medium="medium",e.big="big",e))(b3||{}),w3=(e=>(e.circled="circled",e.rounded="rounded",e))(w3||{});const M8e=["data-testid","checked","disabled"],C8e=l.defineComponent({__name:"Checkbox",props:{size:{default:b3.medium},circular:{default:w3.rounded},checked:{type:Boolean},modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestid:{default:"Checkbox"}},emits:["change","update:modelValue"],setup(e,{emit:t}){const n=e,i=t,r=l.reactive({isChecked:n.modelValue});l.watchEffect(()=>{r.isChecked=n.modelValue});const a=()=>{r.isChecked=!r.isChecked,i("change",r.isChecked),i("update:modelValue",r.isChecked)};return(o,s)=>(l.openBlock(),l.createElementBlock("input",{type:"checkbox",class:l.normalizeClass(`checkbox-yui-kit checkbox-yui-kit_${n.size} checkbox-yui-kit_${n.circular}`),"data-testid":`${n.dataTestid}`,tabindex:"0",onChange:a,checked:r.isChecked,disabled:n.disabled,onKeyup:l.withKeys(a,["enter"])},null,42,M8e))}}),j1=pe(C8e,[["__scopeId","data-v-4f211665"]]);var Ba=(e=>(e.profile="profile",e.theme="theme",e.options="options",e.exit="exit",e.help="help",e))(Ba||{});const x8e=["data-testid"],S8e=["src","alt"],_8e=["src"],T8e={key:2,class:"avatar-yui-kit__text"},Ud=pe(l.defineComponent({__name:"Avatar",props:{initials:{},url:{},isIcon:{type:Boolean},alt:{},defaultImage:{},dataTestid:{}},setup(e){const t=e,n=l.ref(!1);l.watch(()=>t.url,()=>{n.value=!1});const i=()=>t.initials?t.initials.charAt(0):"";return(r,a)=>(l.openBlock(),l.createElementBlock("div",{"data-testid":t.dataTestid,class:"avatar-yui-kit"},[t.url&&!n.value?(l.openBlock(),l.createElementBlock("img",{key:0,src:t.url,alt:t.alt,class:"avatar-yui-kit__image",onError:a[0]||(a[0]=o=>n.value=!0)},null,40,S8e)):t.defaultImage?(l.openBlock(),l.createElementBlock("img",{key:1,src:t.defaultImage,class:"avatar-yui-kit__image"},null,8,_8e)):(l.openBlock(),l.createElementBlock("div",T8e,l.toDisplayString(i()),1))],8,x8e))}}),[["__scopeId","data-v-4c893684"]]),P8e=["data-testid"],E8e={class:"menu-yui-kit__wrapper"},A8e={class:"menu-yui-kit__names"},D8e={class:"menu-yui-kit__name"},N8e={class:"menu-yui-kit__role"},j8e={key:0,class:"menu-yui-kit__list"},I8e={class:"list-yui-kit"},W8e=["data-testid"],O8e=["data-testid"],z8e=["data-testid"],L8e=["data-testid"],$8e=["data-testid"],H8e=["data-type"],I1=pe(l.defineComponent({__name:"UserMenu",props:{closeAfterClick:{type:Boolean},user:{},languages:{},isBlackTheme:{type:Boolean},dataTestid:{default:"UserMenu"}},emits:["click","themeChange","languageSwitch"],setup(e,{emit:t}){const n=e,i=l.reactive({isShow:!1,option:"",isBlackTheme:n.isBlackTheme??!1}),r=t,a=l.computed(()=>({"menu-yui-kit__heading":!0,"active-yui-kit":i.isShow})),o=l.computed(()=>i.isBlackTheme?ce.dark:ce.light),s=l.ref(null),u=y=>{s.value&&!s.value.contains(y.target)&&(i.isShow=!1)};l.onMounted(()=>{document.addEventListener("click",u)}),l.onBeforeUnmount(()=>{document.removeEventListener("click",u)});const c=y=>{y!==void 0?(i.option=y,r("click",y),n.closeAfterClick&&(i.isShow=!1)):console.error("Option type is undefined")},f=l.computed(()=>i.isShow?ce.chevronUp:ce.chevronDown),h=()=>{i.isShow=!i.isShow},g=y=>{n.closeAfterClick&&(i.isShow=!1),r("themeChange",y),i.isBlackTheme=y},p=y=>{n.closeAfterClick&&(i.isShow=!1),r("languageSwitch",y)};return(y,v)=>{var k,w,M;return l.openBlock(),l.createElementBlock("div",{class:"menu-yui-kit",ref_key:"menuRef",ref:s,"data-testid":n.dataTestid},[l.createElementVNode("div",E8e,[l.createVNode(Ud,{class:"menu-yui-kit__avatar",url:n.user.avatar,alt:"user-avatar","data-testid":`${n.dataTestid}-Avatar`},null,8,["url","data-testid"]),l.createElementVNode("div",{class:l.normalizeClass(a.value),onClick:h},[l.createElementVNode("div",A8e,[l.createElementVNode("p",D8e,l.toDisplayString(n.user.name),1),l.createElementVNode("p",N8e,l.toDisplayString(n.user.role),1)]),l.createVNode(Ot,{type:l.unref(ut).ghost,class:"menu-yui-kit__button","data-testid":`${n.dataTestid}-Toggle`},{default:l.withCtx(()=>[l.createVNode(ve,{class:"menu-yui-kit__button-icon",name:f.value},null,8,["name"])]),_:1},8,["type","data-testid"])],2)]),i.isShow?(l.openBlock(),l.createElementBlock("div",j8e,[l.createElementVNode("ul",I8e,[l.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[0]||(v[0]=x=>c(l.unref(Ba).profile)),"data-testid":`${n.dataTestid}-Profile-Item`},[l.createVNode(ve,{name:l.unref(ce).profile},null,8,["name"]),v[5]||(v[5]=l.createElementVNode("span",{class:"list-yui-kit__item-text"},"Профиль",-1))],8,W8e),l.createElementVNode("li",{class:"list-yui-kit__item","data-testid":`${n.dataTestid}-Theme-Item`},[l.createVNode(ve,{name:o.value},null,8,["name"]),l.createElementVNode("span",{class:"list-yui-kit__item-text",onClick:v[1]||(v[1]=x=>c(l.unref(Ba).theme))},"Темная тема"),l.createVNode($d,{type:l.unref(Uo).small,onChange:g,checked:i.isBlackTheme,"data-testid":`${n.dataTestid}-Theme-Toggle`},null,8,["type","checked","data-testid"])],8,O8e),l.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[2]||(v[2]=x=>c(l.unref(Ba).options)),"data-testid":`${n.dataTestid}-Settings-Item`},[l.createVNode(ve,{name:l.unref(ce).settings},null,8,["name"]),v[6]||(v[6]=l.createElementVNode("span",{class:"list-yui-kit__item-text"},"Настройки",-1))],8,z8e),l.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[3]||(v[3]=x=>c(l.unref(Ba).exit)),"data-testid":`${n.dataTestid}-Exit-Item`},[l.createVNode(ve,{name:l.unref(ce).exit},null,8,["name"]),v[7]||(v[7]=l.createElementVNode("span",{class:"list-yui-kit__item-text"},"Выход",-1))],8,L8e),l.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[4]||(v[4]=x=>c(l.unref(Ba).help)),"data-testid":`${n.dataTestid}-Help-Item`},[l.createVNode(ve,{name:l.unref(ce).help},null,8,["name"]),l.createElementVNode("span",{class:"list-yui-kit__item-text","data-type":l.unref(Ba).help},"Помощь",8,H8e)],8,$8e)]),(k=n.languages)!=null&&k.items?(l.openBlock(),l.createBlock(Tu,{key:0,items:(w=n.languages)==null?void 0:w.items,defaultValue:(M=n.languages)==null?void 0:M.defaultValue,onChange:p,"data-testid":`${n.dataTestid}-Language-Switch`},null,8,["items","defaultValue","data-testid"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)],8,P8e)}}}),[["__scopeId","data-v-82d45bca"]]);var Yd=(e=>(e.default="default",e.minor="minor",e))(Yd||{});const R8e=["data-testid"],B8e=["data-testid"],V8e=["data-testid"],F8e=["data-testid","placeholder","required","maxlength","readonly"],U8e=l.defineComponent({__name:"Textarea",props:{placeholder:{},inputMessage:{},required:{type:Boolean,default:!1},maxlength:{},modelValue:{default:""},readonly:{type:Boolean,default:!1},type:{default:Yd.default},modelModifiers:{default:()=>({})},dataTestid:{default:"Textarea"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,r=l.reactive({isPressed:!1,inputElement:n.modelValue}),a=l.computed(()=>[{pressed:r.isPressed,readonly:n.readonly,[n.type]:!0}]),o=()=>{i("update:modelValue",r.inputElement)},s=()=>{n.readonly||(r.isPressed=!0)},u=()=>{r.isPressed=!1};return l.watch(()=>n.modelValue,c=>{r.inputElement=c}),(c,f)=>(l.openBlock(),l.createElementBlock("fieldset",{class:l.normalizeClass(["input-yui-kit",a.value]),onFocusout:u,"data-testid":n.dataTestid},[n.inputMessage?(l.openBlock(),l.createElementBlock("legend",{key:0,class:"input-yui-kit__legend","data-testid":`${n.dataTestid}-Legend`},[l.createTextVNode(l.toDisplayString(n.inputMessage)+" ",1),n.required?(l.openBlock(),l.createElementBlock("sup",{key:0,class:"input-yui-kit__star","data-testid":`${n.dataTestid}-Legend-Star`},"*",8,V8e)):l.createCommentVNode("",!0)],8,B8e)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("textarea",{"onUpdate:modelValue":f[0]||(f[0]=h=>r.inputElement=h),onFocus:s,onInput:o,"data-testid":`${n.dataTestid}-Textarea`,class:"input-yui-kit__input",placeholder:n.placeholder,required:n.required,maxlength:n.maxlength,readonly:n.readonly},null,40,F8e),[[l.vModelText,r.inputElement]])],42,R8e))}}),W1=pe(U8e,[["__scopeId","data-v-d71a57d3"]]);var v3=(e=>(e.img="img",e.pdf="pdf",e.docx="docx",e))(v3||{});const Y8e=["data-testid"],X8e=["data-testid"],q8e=["src","alt","data-testid"],G8e=["data-testid"],K8e=["data-testid"],Q8e=["data-testid"],O1=pe(l.defineComponent({__name:"Picture",props:{type:{},alt:{},url:{},caption:{},dataTestid:{default:"Picture"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("figure",{class:"picture-yui-kit","data-testid":t.dataTestid},[t.type==l.unref(v3).img?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("picture",{class:"picture-yui-kit__picture","data-testid":`${t.dataTestid}-Picture`},[l.createElementVNode("img",{class:"picture-yui-kit__picture__image",src:t.url,alt:t.alt,"data-testid":`${t.dataTestid}-Picture-Img`},null,8,q8e)],8,X8e),l.createElementVNode("figcaption",{class:"picture-yui-kit__picture__caption","data-testid":`${t.dataTestid}-Caption`},l.toDisplayString(t.caption),9,G8e)],64)):(l.openBlock(),l.createElementBlock("div",{key:1,class:"picture-yui-kit__caption","data-testid":`${t.dataTestid}-Caption-Box`},[l.createElementVNode("h4",{class:"picture-yui-kit__caption__title","data-testid":`${t.dataTestid}-Caption-Title`},l.toDisplayString(t.caption),9,Q8e)],8,K8e))],8,Y8e))}}),[["__scopeId","data-v-b6eba94c"]]);var k3=(e=>(e.success="success",e.warning="warning",e.error="error",e.info="info",e))(k3||{}),M3=(e=>(e.success="Успешно",e.warning="Предупреждение",e.error="Ошибка",e.info="Уведомление",e))(M3||{}),C3=(e=>(e[e.success=ce.checkbox]="success",e[e.warning=ce.alertTriangle]="warning",e[e.error=ce.exitCircle]="error",e[e.info=ce.info]="info",e))(C3||{});const J8e=["id","data-testid"],Z8e=["data-testid"],e7e=["data-testid"],t7e=["data-testid"],n7e=["data-testid"],i7e=l.defineComponent({__name:"Notification",props:{type:{default:k3.info},title:{},pushKey:{},description:{default:""},timeout:{default:3},showPopover:{type:Boolean,default:!0},dataTestid:{default:"Notification"}},emits:["close"],setup(e,{expose:t,emit:n}){const i=e,r=n,a=l.ref(null);K(a,"toggle",()=>{i.timeout>0&&setTimeout(()=>{var c;return(c=a.value)==null?void 0:c.hidePopover()},i.timeout*1e3)});const o=()=>(r("close"),"hide"),s=()=>{var c;(c=a.value)==null||c.showPopover()},u=l.reactive({message:{icon:C3[i.type],title:i.title||M3[i.type],description:i.description}});return l.onMounted(()=>{var c;i.showPopover&&((c=a.value)==null||c.showPopover())}),t({showPopover:s}),(c,f)=>(l.openBlock(),l.createElementBlock("div",{popover:"manual",id:i.pushKey.toString(),class:l.normalizeClass(`push-notification-yui-kit push-notification-yui-kit_${i.type}`),"data-testid":i.dataTestid,ref_key:"popover",ref:a},[l.createElementVNode("div",{class:"notification-yui-kit","data-testid":`${i.dataTestid}-Notification`},[l.createElementVNode("div",{class:"notification-yui-kit__block","data-testid":`${i.dataTestid}-Notification-Block`},[l.createVNode(ve,{name:u.message.icon,class:"notification-yui-kit__block-icon","data-testid":`${i.dataTestid}-Notification-Icon`},null,8,["name","data-testid"]),l.createElementVNode("h4",{class:"notification-yui-kit__block-title","data-testid":`${i.dataTestid}-Notification-Title`},l.toDisplayString(u.message.title),9,t7e),l.createElementVNode("span",{class:"notification-yui-kit__block-text","data-testid":`${i.dataTestid}-Notification-Description`},l.toDisplayString(u.message.description),9,n7e)],8,e7e),l.createVNode(Ot,{class:"notification-yui-kit__exit",type:l.unref(ut).ghost,popovertarget:i.pushKey.toString(),popovertargetaction:o,"data-testid":`${i.dataTestid}-Notification-Button`},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).crossSmall,"data-testid":`${i.dataTestid}-Notification-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","popovertarget","data-testid"])],8,Z8e)],10,J8e))}}),z1=pe(i7e,[["__scopeId","data-v-51a00a13"]]),L1=l.defineComponent({__name:"CopyIcon",props:{content:{default:""},dataTestid:{default:"CopyIcon"}},setup(e){const t=e,n=()=>{const i=t.content,r=document.createElement("textarea");r.value=i;const a=document.querySelectorAll("dialog[open]"),o=a.length?a[a.length-1]:null;o?o.append(r):document.body.append(r),r.select(),r.setSelectionRange(0,99999),document.execCommand("copy"),r.remove()};return(i,r)=>(l.openBlock(),l.createBlock(ve,{class:"copy-icon-yui-kit",name:l.unref(ce).copy,"data-testid":t.dataTestid,onClick:n},null,8,["name","data-testid"]))}}),r7e=["data-testid"],a7e=["data-testid"],o7e=["data-testid"],s7e=["data-testid"],l7e=["data-testid"],$1=pe(l.defineComponent({__name:"Loader",props:{title:{default:"Загрузка..."},dataTestid:{default:"Loader"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("div",{class:"loader","data-testid":t.dataTestid},[l.createElementVNode("div",{class:"loader__area","data-testid":`${t.dataTestid}-Area`},[l.createElementVNode("div",{class:"loader__circle loader__circle--light-blue","data-testid":`${t.dataTestid}-Loader-LightBlue1`},null,8,o7e),l.createElementVNode("div",{class:"loader__circle loader__circle--blue","data-testid":`${t.dataTestid}-Loader-LightBlue2`},null,8,s7e)],8,a7e),t.title?(l.openBlock(),l.createElementBlock("span",{key:0,class:"loader__span","data-testid":`${t.dataTestid}-Loader-Title`},l.toDisplayString(t.title),9,l7e)):l.createCommentVNode("",!0)],8,r7e))}}),[["__scopeId","data-v-12d4e463"]]),u7e=["data-testid"],d7e=["data-testid"],c7e=["data-testid"],f7e=["data-testid"],h7e=["data-testid"],m7e=["data-testid"],p7e=["data-testid"],g7e=["data-testid"],y7e=["data-testid"],b7e=["data-testid"],w7e=["data-testid"],v7e=["data-testid"],k7e=["data-testid"],M7e=["data-testid"],C7e=l.defineComponent({__name:"FilterTag",props:{title:{},iconName:{default:ce.filter},options:{default:()=>[]},selectedValues:{default:()=>[]},multiply:{type:Boolean,default:!0},maxShowCount:{default:5},showClearButton:{type:Boolean,default:!1},disallowNull:{type:Boolean,default:!1},dataTestid:{default:"FilterTag"}},emits:["change"],setup(e,{emit:t}){const n=e,i=l.reactive({isShow:!1,options:[]}),r=t,a=l.computed(()=>({"filter-yui-kit__wrapper":!0,"active-yui-kit":i.isShow})),o=()=>i.isShow=!i.isShow,s=()=>{i.isShow=!1},u=l.computed(()=>i.options.filter(p=>p.chose)),c=l.computed(()=>i.options.filter(p=>!p.chose)),f=p=>{n.disallowNull&&p.chose||(p.chose=!p.chose,n.multiply||(i.options=i.options.map(y=>({...y,chose:p.value===y.value&&p.chose}))),i.options.every(y=>y.chose)&&(i.options=i.options.map(y=>({...y,chose:!1}))),r("change",u.value.map(y=>y.value)),i.isShow=!1)},h=()=>{i.options=i.options.map(p=>({...p,chose:!1})),i.isShow=!1,r("change",[])},g=()=>{i.options=n.options.map(p=>({...p,chose:n.selectedValues.includes(p.value)})),i.options.every(p=>p.chose)&&(i.options=i.options.map(p=>({...p,chose:!1})))};return l.watch(()=>[n.options,n.selectedValues],g),l.watch(()=>n.selectedValues,g),l.onMounted(g),(p,y)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{class:"filter-yui-kit","data-testid":n.dataTestid},[l.createElementVNode("div",{class:l.normalizeClass(a.value),onClick:o,"data-testid":`${n.dataTestid}-Wrapper`},[n.iconName?(l.openBlock(),l.createBlock(ve,{key:0,name:n.iconName,"data-testid":`${n.dataTestid}-Icon`},null,8,["name","data-testid"])):l.createCommentVNode("",!0),n.title?(l.openBlock(),l.createElementBlock("span",{key:1,"data-testid":`${n.dataTestid}-Title`},l.toDisplayString(n.title),9,c7e)):l.createCommentVNode("",!0),!u.value.length&&!n.disallowNull?(l.openBlock(),l.createBlock(Vt,{key:2,disabled:"",text:"Все","data-testid":`${n.dataTestid}-Badges-All`},null,8,["data-testid"])):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:3},l.renderList(u.value.filter((v,k)=>k<n.maxShowCount),(v,k)=>(l.openBlock(),l.createBlock(Vt,{key:v.value,type:v.type,disabled:"","data-testid":`${n.dataTestid}-Badges${k}`,text:v.label},null,8,["type","data-testid","text"]))),128)),n.maxShowCount<u.value.length?(l.openBlock(),l.createElementBlock("div",{key:4,class:"filter-yui-kit__counter","data-testid":`${n.dataTestid}-MaxShowCount-Counter`},[l.createTextVNode(" +"+l.toDisplayString(u.value.length-n.maxShowCount)+" ",1),l.createElementVNode("div",{class:"filter-yui-kit__counter-content","data-testid":`${n.dataTestid}-MaxShowCount-Content`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(u.value.filter((v,k)=>k>=n.maxShowCount),(v,k)=>(l.openBlock(),l.createBlock(Vt,{key:v.value,type:v.type,disabled:"",text:v.label,"data-testid":`${n.dataTestid}-MaxShow-Badges${k}`},null,8,["type","text","data-testid"]))),128))],8,h7e)],8,f7e)):l.createCommentVNode("",!0),n.showClearButton&&u.value.length>0?(l.openBlock(),l.createElementBlock("button",{key:5,type:"button",class:"filter-yui-kit__close",onClick:l.withModifiers(h,["stop"]),"data-testid":`${n.dataTestid}-Filter-CloseButton`},[l.createVNode(ve,{name:l.unref(ce).crossSmall,"data-testid":`${n.dataTestid}-CloseButton-Icon`},null,8,["name","data-testid"])],8,m7e)):l.createCommentVNode("",!0)],10,d7e),i.isShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter-yui-kit__select-wrapper","data-testid":`${n.dataTestid}-Select-Wrapper`},[l.createElementVNode("ul",{class:"filter-yui-kit__select-list selected-yui-kit","data-testid":`${n.dataTestid}-Select-List`},[u.value.length?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("li",{key:0,class:"filter-yui-kit__select-item","data-testid":`${n.dataTestid}-Select-Item`},[l.createVNode(Vt,{disabled:"",text:"Все","data-testid":`${n.dataTestid}-Select-Badges`},null,8,["data-testid"])],8,y7e)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(u.value,(v,k)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:v.value,"data-testid":`${n.dataTestid}-Select-Item${k}`},[l.createVNode(Vt,{disabled:!0,choosed:!n.disallowNull&&v.chose,type:v.type,onClick:w=>f(v),text:v.label,"data-testid":`${n.dataTestid}-Select-Badges${k}`},null,8,["choosed","type","onClick","text","data-testid"])],8,b7e))),128))],8,g7e),l.createElementVNode("div",{class:"filter-yui-kit__select__divider","data-testid":`${n.dataTestid}-Select-Divider`},null,8,w7e),i.isShow?(l.openBlock(),l.createElementBlock("ul",{key:0,class:"filter-yui-kit__select-list","data-testid":`${n.dataTestid}-Select-List`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.value,(v,k)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:v.value,"data-testid":`${n.dataTestid}-Select-List${k}`},[l.createVNode(Vt,{disabled:!0,choosed:!1,type:v.type,text:v.label,"data-testid":`${n.dataTestid}-Select-Badges${k}`,onClick:w=>f(v)},null,8,["type","text","data-testid","onClick"])],8,k7e))),128)),e.disallowNull?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("li",{key:0,class:"filter-yui-kit__select-item","data-testid":`${n.dataTestid}-Select-Item`},[u.value.length?(l.openBlock(),l.createBlock(Vt,{key:0,disabled:"","data-testid":`${n.dataTestid}-Select-Badges`,text:"Все",onClick:h},null,8,["data-testid"])):l.createCommentVNode("",!0)],8,M7e))],8,v7e)):l.createCommentVNode("",!0)],8,p7e)):l.createCommentVNode("",!0)],8,u7e)),[[l.unref(Ls),s,void 0,{bubble:!0}]])}}),H1=pe(C7e,[["__scopeId","data-v-41d2f43b"]]),x7e=["data-testid"],S7e=["data-testid"],_7e=["data-testid"],T7e=["data-testid"],R1=pe(l.defineComponent({__name:"CircularProgress",props:{percent:{},dataTestid:{default:"CircularProgress"}},setup(e){const t=e,n=()=>{const i=Math.min(Math.max(t.percent,0),100),r=i/100*360;if(i<=25)return`polygon(50% 50%, 50% 0%, calc(50% + 50% * cos(${r-90}deg)) 0,calc(50% + 50% * cos(${r-90}deg)) calc(50% + 50% * sin(${r-90}deg)), 50% 50%)`;if(i<=50)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% calc(50% + 50% * sin(${r-90}deg)), calc(50% + 50% * cos(${r-90}deg)) calc(50% + 50% * sin(${r-90}deg)), 50% 50%)`;if(i<=75)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%,
|
|
1296
|
-
calc(50% + 50% * cos(${r-90}deg)) 100%, calc(50% + 50% * cos(${r-90}deg)) calc(50% + 50% * sin(${r-90}deg)), 50% 50%)`;if(i<=100)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%,0% 100%, 0% calc(50% + 50% * sin(${r-90}deg)), 50% 50%)`};return(i,r)=>t.percent<100?(l.openBlock(),l.createElementBlock("div",{key:0,class:"pie-chart","data-testid":`${t.dataTestid}-PieChart`},[l.createElementVNode("div",{class:"pie-chart-border",style:l.normalizeStyle({"border-color":t.percent<50?"#ef9b8f":"#ffcc00"}),"data-testid":`${t.dataTestid}-PieChart-Border`},[l.createElementVNode("div",{class:"sector",style:l.normalizeStyle({clipPath:n(),"background-color":t.percent<50?"#ef9b8f":"#ffcc00"}),"data-testid":`${t.dataTestid}-PieChart-Sector`},null,12,_7e)],12,S7e)],8,x7e)):(l.openBlock(),l.createElementBlock("svg",{key:1,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","data-testid":`${t.dataTestid}-Icon`,xmlns:"http://www.w3.org/2000/svg"},[...r[0]||(r[0]=[l.createElementVNode("path",{d:"M8 1C4.136 1 1 4.136 1 8C1 11.864 4.136 15 8 15C11.864 15 15 11.864 15 8C15 4.136 11.864 1 8 1ZM8 13.6C4.906 13.6 2.4 11.094 2.4 8C2.4 4.906 4.906 2.4 8 2.4C11.094 2.4 13.6 4.906 13.6 8C13.6 11.094 11.094 13.6 8 13.6Z",fill:"#3BC648"},null,-1),l.createElementVNode("circle",{cx:"8",cy:"8",r:"4",transform:"rotate(-180 8 8)",fill:"#3BC648"},null,-1),l.createElementVNode("path",{d:"M10 6L7.5 9.83935L6 8.5",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])],8,T7e))}}),[["__scopeId","data-v-03d46e7b"]]),P7e=["data-testid","aria-label"],E7e=["data-testid"],kl=pe(l.defineComponent({name:"Tooltip",__name:"Tooltip",props:{hint:{},isShow:{type:Boolean,default:!1},isCanShow:{type:Boolean,default:!0},position:{default:"bottom-center"},size:{default:"small"},type:{default:"black"},hintGap:{},hintClass:{default:""},dataTestid:{default:"Tooltip"}},setup(e){const t=e,n=l.ref(null),i=l.ref(null),r=l.computed(()=>[{"tooltip-yui-kit__hint_show":t.isShow||o.isShow,"tooltip-yui-kit__hint_bottom-center":t.position==="bottom-center","tooltip-yui-kit__hint_bottom-left":t.position==="bottom-left","tooltip-yui-kit__hint_bottom-right":t.position==="bottom-right","tooltip-yui-kit__hint_top-center":t.position==="top-center","tooltip-yui-kit__hint_top-left":t.position==="top-left","tooltip-yui-kit__hint_top-right":t.position==="top-right","tooltip-yui-kit__hint_left-top":t.position==="left-top","tooltip-yui-kit__hint_left-center":t.position==="left-center","tooltip-yui-kit__hint_left-bottom":t.position==="left-bottom","tooltip-yui-kit__hint_right-top":t.position==="right-top","tooltip-yui-kit__hint_right-center":t.position==="right-center","tooltip-yui-kit__hint_right-bottom":t.position==="right-bottom","tooltip-yui-kit__hint_small":t.size==="small","tooltip-yui-kit__hint_medium":t.size==="medium","tooltip-yui-kit__hint_large":t.size==="large","tooltip-yui-kit__hint_black":t.type==="black","tooltip-yui-kit__hint_blue":t.type==="blue","tooltip-yui-kit__hint_white":t.type==="white",[t.hintClass]:!0}]),a=l.computed(()=>{var M;const w=(M=n.value)==null?void 0:M.closest("dialog");return w||"body"}),o=l.reactive({isShow:!1}),s=()=>{g()},u=()=>{p()},c=()=>{f()},f=()=>{requestAnimationFrame(()=>{if(!n.value||!i.value||!o.isShow&&!t.isShow)return;const w={"--hint-top":"0","--hint-left":"0","--hint-width":"0","--hint-height":"0","--tooltip-width":"0","--tooltip-height":"0","--hint-visibility":"visible"},M=n.value.getBoundingClientRect(),x=i.value.getBoundingClientRect(),S=window.pageYOffset||document.documentElement.scrollTop,E=window.pageXOffset||document.documentElement.scrollLeft;let I=M.top+S,A=M.left+E;const W=n.value.closest("dialog");if(W){const X=W.getBoundingClientRect();I=M.top-X.top,A=M.left-X.left;const re=W.scrollTop,ne=W.scrollLeft;I+=re,A+=ne}const $=M.width,D=M.height,z=x.width,H=x.height;w["--hint-top"]=`${I}px`,w["--hint-left"]=`${A}px`,w["--tooltip-width"]=`${$}px`,w["--tooltip-height"]=`${D}px`,w["--hint-width"]=`${z}px`,w["--hint-height"]=`${H}px`,i.value&&dn(w,i.value)})},h=()=>{requestAnimationFrame(()=>{!i.value||t.hintGap===void 0||dn({"--tooltip-hint-gap":t.hintGap},i.value)})};l.watch(()=>t.hintGap,h,{immediate:!0});const g=()=>{o.isShow=!0},p=()=>{o.isShow=!1},y=new MutationObserver(()=>{f()}),v=new ResizeObserver(()=>{var w;(o.isShow||t.isShow)&&!((w=n.value)!=null&&w.matches(":hover"))?p():f()}),k=w=>{y.observe(w,{childList:!0,attributes:!0,characterData:!0}),v.observe(w)};return l.onMounted(()=>{f(),i.value&&k(i.value),n.value&&k(n.value),window.addEventListener("scroll",f,!0),window.addEventListener("resize",f)}),l.onUnmounted(()=>{v.disconnect(),y.disconnect(),window.removeEventListener("scroll",f,!0),window.removeEventListener("resize",f)}),(w,M)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"tooltipRef",ref:n,class:"tooltip-yui-kit","data-testid":t.dataTestid,"aria-label":e.hint,onMouseenter:s,onMouseleave:u},[l.renderSlot(w.$slots,"default",{},void 0,!0),e.isCanShow?(l.openBlock(),l.createBlock(l.Teleport,{key:0,to:a.value},[l.createVNode(l.Transition,{name:"hint-animate",onEnter:c},{default:l.withCtx(()=>[e.isShow||o.isShow?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"hintRef",ref:i,"data-testid":t.dataTestid,class:l.normalizeClass(["tooltip-yui-kit__hint",r.value])},l.toDisplayString(e.hint),11,E7e)):l.createCommentVNode("",!0)]),_:1})],8,["to"])):l.createCommentVNode("",!0)],40,P7e))}}),[["__scopeId","data-v-d682d9da"]]),A7e=["data-testid"],D7e=["data-testid"],N7e=["data-testid"],j7e=["onClick","data-testid"],I7e=l.defineComponent({__name:"Popover",props:{isShow:{type:Boolean},iconName:{default:ce.moreVertical},options:{default:()=>[]},tooltip:{default:""},tooltipPosition:{default:"top-left"},dataTestid:{default:"Popover"}},emits:["close"],setup(e,{emit:t}){const n=e,i=t,r=l.reactive({isShow:!1}),a=l.ref(null),o=l.ref(null),{floatingStyles:s}=Qm(a,o,{middleware:[qm(10),Gm({crossAxis:!0,allowedPlacements:["bottom-end","bottom-start"]})],strategy:"fixed",placement:"bottom-start",whileElementsMounted:Xm}),u=l.computed(()=>({"popover-yui-kit__wrapper":!0,"active-yui-kit":r.isShow,"empty-yui-kit":n.options.length===0})),c=()=>r.isShow=!r.isShow,f=()=>{r.isShow=!1,i("close")},h=g=>{g.function(),f()};return l.watch(()=>n.isShow,()=>r.isShow=n.isShow),(g,p)=>(l.openBlock(),l.createBlock(kl,{hint:n.tooltip,size:"small",type:"black",position:n.tooltipPosition,"data-testid":n.dataTestid,"is-can-show":!!n.tooltip&&!r.isShow&&n.options.length>0},{default:l.withCtx(()=>{var y;return[l.withDirectives((l.openBlock(),l.createElementBlock("div",{class:"popover-yui-kit","data-testid":`${n.dataTestid}-Popover`},[l.createElementVNode("div",{class:l.normalizeClass(u.value),onClick:c,ref_key:"reference",ref:a,"data-testid":`${n.dataTestid}-PopoverShow`},[l.createVNode(ve,{class:"popover-yui-kit__icon",name:n.iconName,width:16,height:16,"data-testid":`${n.dataTestid}-PopoverShow-Icon`},null,8,["name","data-testid"])],10,D7e),(y=n.options)!=null&&y.length?l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:0,class:"popover-yui-kit__options",ref_key:"floating",ref:o,style:l.normalizeStyle(l.unref(s)),"data-testid":`${n.dataTestid}-PopoverShow-Options`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.options,(v,k)=>(l.openBlock(),l.createElementBlock("div",{class:"popover-yui-kit__options__item",style:l.normalizeStyle(v.style),key:k,onClick:l.withModifiers(w=>h(v),["stop"]),"data-testid":`${n.dataTestid}-Item${k}`},l.toDisplayString(v.value),13,j7e))),128))],12,N7e)),[[l.vShow,r.isShow]]):l.createCommentVNode("",!0)],8,A7e)),[[l.unref(Ls),f,void 0,{bubble:!0}]])]}),_:1},8,["hint","position","data-testid","is-can-show"]))}}),B1=pe(I7e,[["__scopeId","data-v-52539b17"]]),W7e=["colspan","rowspan","data-testid"],Go=pe(l.defineComponent({name:"TableTh",__name:"TableTh",props:{colspan:{default:1},rowspan:{default:1},dataTestid:{default:"DataHeader"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("th",{colspan:e.colspan,rowspan:e.rowspan,"data-testid":t.dataTestid,class:"table-th"},[l.renderSlot(n.$slots,"default",{},void 0,!0)],8,W7e))}}),[["__scopeId","data-v-273b8b5e"]]),O7e=["data-testid"],Ml=pe(l.defineComponent({name:"HeadTableRow",__name:"HeadTableRow",props:{dataTestid:{default:"TableRow"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("tr",{class:"head-table-row","data-testid":t.dataTestid},[l.renderSlot(n.$slots,"default",{},void 0,!0)],8,O7e))}}),[["__scopeId","data-v-e226d64f"]]),x3=(e,t,n,i)=>{const r=l.ref(!1),a=l.ref(100);let o=0,s=0;const u=l.computed(()=>[{"scroll-wrapper__track_hide":a.value===100,"scroll-wrapper__track_drag":r.value}]),c=l.computed(()=>a.value<100),f=()=>{if(e.value){const w=e.value.clientWidth,M=e.value.scrollWidth;return w>=M?100:w/M*100}return 100},h=()=>{if(!e.value||!t.value||!n.value||!i.value)return;const{scrollLeft:w,scrollWidth:M,clientWidth:x}=e.value,S=M-x;if(S<=0)return;const E=w/S,I=i.value.clientWidth,A=n.value.clientWidth,W=I-A,$=E*W;requestAnimationFrame(()=>{t.value&&dn({"--scroll-bar-left-position":`${$}px`},t.value)})},g=w=>{!e.value||!t.value||(r.value=!0,o=w.clientX,s=e.value.scrollLeft,document.addEventListener("pointermove",p),document.addEventListener("pointerup",y,!0))},p=w=>{if(r.value&&e.value&&n.value){const M=w.clientX-o,x=(e.value.scrollWidth-e.value.clientWidth)/(e.value.clientWidth-n.value.clientWidth);e.value.scrollLeft=s+M*x,h()}},y=()=>{r.value=!1,document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",y,!0)};return{onDrag:p,onTrackClick:w=>{if(e.value&&n.value){const M=w.currentTarget.getBoundingClientRect(),x=w.clientX-M.left,S=n.value.clientWidth,E=M.width;let I=(x-S/2)*((e.value.scrollWidth-e.value.clientWidth)/(E-S));I=Math.max(0,Math.min(I,e.value.scrollWidth-e.value.clientWidth)),e.value.scrollLeft=I,h()}},startDrag:g,getPercentHorizontalView:f,changeBarPosition:h,isDragging:r,scrollHorizontalWidthPercent:a,setHorizontalBarWidth:()=>{if(!e.value||!t.value)return;const w=f();a.value=w,dn({"--scroll-horizontal-bar-width":`${w}%`},t.value)},horizontalTrackClass:u,isExistHorizontalTrack:c}},S3=(e,t,n,i)=>{const r=l.ref(!1),a=l.ref(100);let o=0,s=0;const u=l.computed(()=>[{"scroll-wrapper__track_hide":a.value===100,"scroll-wrapper__track_drag":r.value}]),c=l.computed(()=>a.value<100),f=()=>{if(e.value){const w=e.value.clientHeight,M=e.value.scrollHeight;if(w>=M)return 100;if(w<M)return w/M*100}return 100},h=()=>{if(!e.value||!t.value||!n.value||!i.value)return;const{scrollTop:w,scrollHeight:M,clientHeight:x}=e.value,S=M-x;if(S<=0)return;const E=w/S,I=i.value.clientHeight,A=n.value.clientHeight,W=I-A,$=E*W;requestAnimationFrame(()=>{t.value&&dn({"--scroll-bar-top-postion":`${$}px`},t.value)})},g=w=>{!e.value||!t.value||(r.value=!0,o=w.clientY,s=e.value.scrollTop,document.addEventListener("pointermove",p),document.addEventListener("pointerup",y))},p=w=>{if(r.value&&e.value&&n.value){const M=w.clientY-o,x=(e.value.scrollHeight-e.value.clientHeight)/(e.value.clientHeight-n.value.clientHeight);e.value.scrollTop=s+M*x,h()}},y=()=>{r.value=!1,document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",y)};return{onDrag:p,onTrackClick:w=>{if(e.value&&n.value){const M=w.currentTarget.getBoundingClientRect(),x=w.clientY-M.top,S=n.value.clientHeight,E=M.height;let I=(x-S/2)*((e.value.scrollHeight-e.value.clientHeight)/(E-S));I=Math.max(0,Math.min(I,e.value.scrollHeight-e.value.clientHeight)),e.value.scrollTop=I,h()}},startDrag:g,getProcentVerticalView:f,changeBarPosition:h,isDragging:r,scrollVerticalHeightProcent:a,setVerticalBarHeight:()=>{if(!e.value||!t.value)return;const w=f();a.value=w,dn({"--scroll-vertical-bar-height":`${w}%`},t.value)},verticalTrackClass:u,isExistVerticalTrack:c}},z7e={class:"scroll-wrapper__vertical-wrapper"},L7e={class:"scroll-wrapper__horizont-wrapper"},Cl=pe(l.defineComponent({name:"ScrollWrapper",__name:"ScrollWrapper",props:{isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate","on-mounted"],setup(e,{expose:t,emit:n}){const i=n,r=l.ref(null),a=l.ref(null),o=l.ref(null),s=l.ref(null),u=l.ref(null),c=l.ref(null),{onTrackClick:f,startDrag:h,changeBarPosition:g,setVerticalBarHeight:p,verticalTrackClass:y,isExistVerticalTrack:v}=S3(r,a,s,o),{changeBarPosition:k,startDrag:w,onTrackClick:M,setHorizontalBarWidth:x,horizontalTrackClass:S,isExistHorizontalTrack:E}=x3(r,a,c,u),I=q=>{g(),k(),i("unmount-scroll",q)},A=()=>{requestAnimationFrame(()=>{W(),$()})},W=()=>{if(!r.value||!a.value)return;const q=getComputedStyle(a.value),Z=a.value.style.minHeight||q.minHeight,ue=a.value.style.maxHeight||q.maxHeight,Ne=a.value.style.height;dn({"--scroll-wrapper-height":`${Ne}`,"--scroll-wrapper-max-height":`${ue}`,"--scroll-wrapper-min-height":`${Z}`},a.value)},$=()=>{p(),x(),g(),k()},D=()=>{r.value&&r.value.addEventListener("scroll",I)},z=()=>{r.value&&(r.value.scrollTop=0)},H=()=>{r.value&&(r.value.scrollHeight<=r.value.clientHeight?i("unmount-paginate",!0):i("unmount-paginate",!1))},X=new MutationObserver(()=>{A(),H()}),re=new ResizeObserver(()=>{A(),H()}),ne=q=>{X.observe(q,{childList:!0,subtree:!0,attributes:!0}),re.observe(q)};return t({scrollToTop:z,setHeightSlot:W}),l.onMounted(()=>{A(),D(),a.value&&ne(a.value),o.value&&ne(o.value),window.addEventListener("resize",A),i("on-mounted")}),l.onUnmounted(()=>{window.removeEventListener("resize",A)}),(q,Z)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"scrollWrapperRef",ref:a,class:"scroll-wrapper"},[l.createElementVNode("div",z7e,[l.createElementVNode("div",L7e,[l.createElementVNode("div",{ref_key:"slotRef",ref:r,class:"scroll-wrapper__slot"},[l.renderSlot(q.$slots,"default",{},void 0,!0)],512),l.unref(E)||e.isShowHorizontalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"horizontTrackRef",ref:u,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_horizont",l.unref(S)]),onClick:Z[1]||(Z[1]=l.withModifiers((...ue)=>l.unref(M)&&l.unref(M)(...ue),["self","prevent","left"]))},[l.createElementVNode("div",{ref_key:"horizontBarRef",ref:c,class:"scroll-wrapper__bar",onPointerdown:Z[0]||(Z[0]=l.withModifiers((...ue)=>l.unref(w)&&l.unref(w)(...ue),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)]),l.unref(v)||e.isShowVerticalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"verticalTrackRef",ref:o,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_vertical",l.unref(y)]),onClick:Z[3]||(Z[3]=l.withModifiers((...ue)=>l.unref(f)&&l.unref(f)(...ue),["self","prevent","left"]))},[l.createElementVNode("div",{ref_key:"verticalBarRef",ref:s,class:"scroll-wrapper__bar",onPointerdown:Z[2]||(Z[2]=l.withModifiers((...ue)=>l.unref(h)&&l.unref(h)(...ue),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-a4798f10"]]),$7e=["id","data-testid"],H7e=["id","data-testid"],R7e=["id","data-testid"],V1=pe(l.defineComponent({name:"TableNew",__name:"Table",props:{tableId:{},search:{},tbodyId:{},theadId:{},columnCount:{},dataTestid:{default:"Table"},isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate"],setup(e,{expose:t,emit:n}){var x;const i=e,r=n,a=l.reactive({headHeight:0,maxColumnCount:0}),o=l.ref(null),s=l.ref(null),u=l.ref(null),c=l.ref(null),f=l.ref(null),h=S=>{r("unmount-scroll",S)},g=S=>r("unmount-paginate",S),p=()=>{if(!o.value||!f.value)return;const S=o.value.querySelector("thead");if(!S)return;const E=S.getBoundingClientRect().height;a.headHeight=E,dn({"--scroll-track-margin-top":`${E}px`},f.value.$el)},y=()=>{f.value&&f.value.scrollToTop()},v=()=>{if(f.value&&c.value){const S=getComputedStyle(f.value.$el),E=Number(S.minHeight.replace(/\D/g,""));if(E&&E>0)return;dn({"min-height":`${a.headHeight+108}px`},f.value.$el)}},k=()=>{let S=1;if(s.value){for(let E=0;E<s.value.children.length;E++)S=Math.max(s.value.children[E].children.length,S);a.maxColumnCount=S}},w=new MutationObserver(()=>{k()}),M=new ResizeObserver(()=>{p()});return t({scrollToTop:y,setHeightSlot:(x=f.value)==null?void 0:x.setHeightSlot,tbodyRef:u,tableRef:o,theadRef:s}),l.onMounted(()=>{p(),k(),window.addEventListener("resize",p),o.value&&M.observe(o.value),s.value&&w.observe(s.value,{childList:!0,subtree:!0}),v()}),(S,E)=>(l.openBlock(),l.createBlock(Cl,{ref_key:"scrollWrapperRef",ref:f,class:"table",onUnmountScroll:h,onUnmountPaginate:g,"is-show-vertical-scroll":i.isShowVerticalScroll,"is-show-horizontal-scroll":i.isShowHorizontalScroll,"data-testid":`${i.dataTestid}-ScrollWrapper`},{default:l.withCtx(()=>[l.createElementVNode("table",{ref_key:"tableRef",ref:o,id:i.tableId,class:"table__table","data-testid":`${i.dataTestid}`},[l.renderSlot(S.$slots,"default",{},()=>{var I;return[l.createElementVNode("colgroup",null,[l.renderSlot(S.$slots,"colspan",{},void 0,!0)]),S.$slots.head?(l.openBlock(),l.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:s,id:i.theadId,class:"table__head","data-testid":`${i.dataTestid}-Thead`},[l.renderSlot(S.$slots,"head",{},void 0,!0),S.$slots.search?(l.openBlock(),l.createBlock(Ml,{key:0,class:"table__search-tr",id:(I=i.search)==null?void 0:I.rowId,ref_key:"searchRowRef",ref:c,"data-testid":`${i.dataTestid}-Search-Row`},{default:l.withCtx(()=>{var A;return[l.createVNode(Go,{colspan:i.columnCount||a.maxColumnCount,class:"table__search-th",id:(A=i.search)==null?void 0:A.headId,"data-testid":`${i.dataTestid}-SearchRow-Search`},{default:l.withCtx(()=>[l.renderSlot(S.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","id","data-testid"])]}),_:3},8,["id","data-testid"])):l.createCommentVNode("",!0)],8,H7e)):l.createCommentVNode("",!0),l.renderSlot(S.$slots,"body-group",{},()=>[S.$slots.body?(l.openBlock(),l.createElementBlock("tbody",{key:0,id:i.tbodyId,ref_key:"tbodyRef",ref:u,class:"table__body","data-testid":`${i.dataTestid}-Tbody`},[l.renderSlot(S.$slots,"body",{},void 0,!0)],8,R7e)):l.createCommentVNode("",!0)],!0)]},!0)],8,$7e)]),_:3},8,["is-show-vertical-scroll","is-show-horizontal-scroll","data-testid"]))}}),[["__scopeId","data-v-58c866b5"]]),B7e=["data-testid"],Xd=pe(l.defineComponent({name:"TableRow",__name:"TableRow",props:{type:{default:"default"},dataTestid:{}},setup(e){const t=e,n=l.computed(()=>[{"table-row_active":t.type==="selected"}]);return(i,r)=>(l.openBlock(),l.createElementBlock("tr",{class:l.normalizeClass(["table-row",n.value]),"data-testid":t.dataTestid},[l.renderSlot(i.$slots,"default",{},void 0,!0)],10,B7e))}}),[["__scopeId","data-v-a57d78ee"]]),V7e=["rowspan","colspan","data-testid"],qd=l.defineComponent({name:"TableTd",__name:"TableTd",props:{colspan:{default:1},rowspan:{default:1},dataTestid:{default:"DataCell"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("td",{rowspan:e.rowspan,colspan:e.colspan,class:"table-td","data-testid":t.dataTestid},[l.renderSlot(n.$slots,"default")],8,V7e))}}),F1=pe(l.defineComponent({name:"SectionTableRow",__name:"SectionTableRow",props:{colspan:{},dataTestid:{default:"SectionTableRow"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createBlock(Xd,{class:"section-table-row","data-testid":t.dataTestid},{default:l.withCtx(()=>[l.createVNode(qd,{colspan:e.colspan,class:"section-table-row__td","data-testid":`${t.dataTestid}-DataCell`},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"]))}}),[["__scopeId","data-v-e4d9fcd4"]]);var U1=(e=>(e.top="top",e.bottom="bottom",e))(U1||{});const F7e=["data-testid"],U7e=l.defineComponent({__name:"PopoverHover",props:{position:{default:U1.bottom},dataTestid:{default:"PopoverHover"}},setup(e){const t=e,n=l.computed(()=>({"popover-hover-yui-kit":!0,"popover_hover-yui-kit_top":t.position==U1.top}));return(i,r)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n.value),"data-testid":t.dataTestid},[l.renderSlot(i.$slots,"default",{},void 0,!0)],10,F7e))}}),Y1=pe(U7e,[["__scopeId","data-v-75c74982"]]),Y7e=["disabled","name","value","data-testid"],X1=pe(l.defineComponent({name:"Radio",__name:"Radio",props:l.mergeModels({name:{},value:{},disabled:{type:Boolean,default:!1},dataTestid:{default:"Radio"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=l.useModel(e,"modelValue");return(i,r)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",{"onUpdate:modelValue":r[0]||(r[0]=a=>n.value=a),type:"radio",disabled:e.disabled,name:e.name,value:e.value,class:"radio","data-testid":t.dataTestid},null,8,Y7e)),[[l.vModelRadio,n.value]])}}),[["__scopeId","data-v-5fca4dd8"]]),X7e=["data-testid"],q7e=["data-testid"],_3=pe(l.defineComponent({name:"ChoosenMiniOptions",__name:"ChoosenMiniOptions",props:{options:{},dataTestid:{default:"ChoosenMiniOptions"}},emits:["remove"],setup(e,{emit:t}){const n=e,i=t,r=a=>{i("remove",a)};return(a,o)=>(l.openBlock(),l.createElementBlock("div",{class:"choosen-mini-options","data-testid":n.dataTestid},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,(s,u)=>(l.openBlock(),l.createElementBlock("div",{key:s.key,class:"choosen-mini-options__option","data-testid":`${n.dataTestid}-Option-Item${u}`},[l.createVNode(Vt,{"data-testid":`${n.dataTestid}-Badge${u}`,type:l.unref(tt).blue,text:l.unref(Ih)(s)?s.hint:s.value,class:"choosen-mini-options__badges",disabled:""},null,8,["data-testid","type","text"]),l.createVNode(ve,{"data-testid":`${n.dataTestid}-Icon${u}`,name:l.unref(ce).crossLarge,width:10,height:10,class:"choosen-mini-options__cross",onClick:c=>r(s.key)},null,8,["data-testid","name","onClick"])],8,q7e))),128))],8,X7e))}}),[["__scopeId","data-v-b99473c0"]]),G7e=["data-testid"],K7e=["data-testid"],Q7e=["data-testid"],J7e=["data-testid"],Z7e=["data-testid"],eCe=["data-testid"],q1=pe(l.defineComponent({name:"BaseFilter",__name:"BaseFilter",props:l.mergeModels({options:{},title:{},isSearch:{type:Boolean,default:!1},isPosibleToClear:{type:Boolean,default:!1},isShowMiniOptions:{type:Boolean,default:!1},isOpened:{type:Boolean,default:!1},tooltipPosition:{default:"top-center"},onUnmountPagination:{},defaultOption:{default:"Выберите значение"},class:{},disabled:{type:Boolean},dataTestid:{default:"BaseFilter"}},{modelValue:{default:[]},modelModifiers:{}}),emits:l.mergeModels(["change","unmount-open","unmount-search","unmount-search-enter","unmount-pagination"],["update:modelValue"]),setup(e,{emit:t}){const n=e,i=l.reactive({isHovered:!1}),r=t,a=l.ref(null),o=l.ref(null),s=l.useModel(e,"modelValue"),u=l.ref(n.isOpened);l.watch(u,()=>r("unmount-open",u.value)),l.watch(()=>n.isOpened,()=>{u.value=n.isOpened}),l.watch(()=>n.onUnmountPagination,()=>{$()});const c=l.ref(""),f=l.computed(()=>{let D=[];return c.value?(Hs(n.options)?D=n.options.filter(z=>{var H;return z.value.toLowerCase().includes(c.value.toLowerCase())||((H=z==null?void 0:z.hint)==null?void 0:H.toLowerCase().includes(c.value.toLowerCase()))}):D=n.options.filter(z=>z.value.toLowerCase().includes(c.value.toLowerCase())),D):(Hs(n.options),D=n.options,D)}),h=l.computed(()=>{var z;return((z=n.options.find(H=>Hi.isArray(s.value)?s.value.includes(H.key):H.key===String(s.value)))==null?void 0:z.value)||n.defaultOption}),g=l.computed(()=>n.options.filter(D=>Hi.isArray(s.value)?s.value.includes(D.key)&&D.value!==h.value:D.key===String(s.value))),p=l.computed(()=>n.options.filter(D=>Hi.isArray(s.value)?s.value.includes(D.key)&&D.value===h.value:D.key===String(s.value))),y=l.computed(()=>{var H,X,re;const D=n.options;let z;return Hi.isArray(s.value)?Hs(D)?z=(H=D.find(ne=>ne.value===h.value))==null?void 0:H.hint:z=(X=D.find(ne=>ne.value===h.value))==null?void 0:X.value:z=(re=D.find(ne=>ne.key===String(s.value)))==null?void 0:re.value,z||""}),v=()=>{i.isHovered=!0},k=()=>{i.isHovered=!1},w=l.computed(()=>{var D;return Hs(n.options)?i.isHovered&&!!y.value:((D=a.value)==null?void 0:D.isSpanOverflow)||!1}),M=l.computed(()=>Hi.isArray(s.value)?n.isPosibleToClear&&s.value.length>0:n.isPosibleToClear&&s.value),x=l.computed(()=>Hi.isArray(s.value)&&s.value.length>1),S=l.computed(()=>Hi.isArray(s.value)?s.value.length:null),E=async D=>{if(Hi.isArray(s.value))s.value.includes(D)?s.value=s.value.filter(z=>z!==D):s.value=[...s.value,D];else{let z=n.options.find(H=>H.key===D);!z&&Hs(n.options)&&(z=n.options.find(H=>H.hint===D)),s.value=(z==null?void 0:z.key)||"",u.value=!1}await l.nextTick(),r("change",String(s.value))},I=D=>{u.value=D},A=async()=>{Hi.isArray(s.value)?s.value=[]:s.value="",await l.nextTick(),r("change",s.value)},W=new IntersectionObserver(D=>{D.forEach(z=>{z.isIntersecting&&r("unmount-pagination")})}),$=()=>{o.value&&n.onUnmountPagination&&(W.unobserve(o.value),W.observe(o.value))};return l.onMounted(()=>{$()}),l.onUnmounted(()=>{W.disconnect()}),(D,z)=>(l.openBlock(),l.createBlock(vo,{onChange:I,"is-opened":u.value,class:l.normalizeClass(n.class),"header-classes":"filter__header","options-classes":"filter__options","data-testid":n.dataTestid},{header:l.withCtx(()=>[l.createElementVNode("span",{class:l.normalizeClass(["filter__header-title",{"filter__header-title__active":u.value}]),"data-testid":`${n.dataTestid}-Title`},l.toDisplayString(e.title),11,G7e),l.createVNode(kl,{position:e.tooltipPosition,type:"blue","is-can-show":w.value&&!(x.value&&e.isShowMiniOptions),hint:y.value,"hint-gap":28,class:"filter__header-tooltip","data-testid":`${n.dataTestid}-Tooltip`},{default:l.withCtx(()=>[l.createVNode(Vt,{ref_key:"badgesRef",ref:a,type:h.value===n.defaultOption?l.unref(tt).default:l.unref(tt).blue,class:"filter__options-badge","data-testid":`${n.dataTestid}-Badge`,text:h.value,onMouseenter:v,onMouseleave:k,disabled:""},null,8,["type","data-testid","text"]),x.value&&e.isShowMiniOptions?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter__values","data-testid":`${n.dataTestid}-Filter-Value`},[l.createVNode(_3,{"data-testid":`${n.dataTestid}-Filter-Value-MiniOptions`,onClick:z[0]||(z[0]=l.withModifiers(()=>{},["stop"])),options:p.value,onRemove:E},null,8,["data-testid","options"])],8,K7e)):l.createCommentVNode("",!0)]),_:1},8,["position","is-can-show","hint","data-testid"]),S.value&&S.value>1?(l.openBlock(),l.createElementBlock("span",{key:0,class:"filter__count","data-testid":`${n.dataTestid}-Filter-Count`},[l.createTextVNode(" +"+l.toDisplayString(S.value-1)+" ",1),x.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter__values","data-testid":`${n.dataTestid}-Filter-Values`},[l.createVNode(_3,{onClick:z[1]||(z[1]=l.withModifiers(()=>{},["stop"])),options:g.value,onRemove:E,"data-testid":`${n.dataTestid}-MiniOptions`},null,8,["options","data-testid"])],8,J7e)):l.createCommentVNode("",!0)],8,Q7e)):l.createCommentVNode("",!0),M.value?(l.openBlock(),l.createElementBlock("span",{key:1,class:"filter__cross",onClick:l.withModifiers(A,["stop"]),"data-testid":`${n.dataTestid}-Filter-Cross`},[l.createVNode(ve,{name:l.unref(ce).crossLarge,width:16,height:16},null,8,["name"])],8,Z7e)):l.createCommentVNode("",!0)]),options:l.withCtx(()=>[e.isSearch?(l.openBlock(),l.createBlock(yl,{key:0,modelValue:c.value,"onUpdate:modelValue":z[2]||(z[2]=H=>c.value=H),"show-history":!1,"data-testid":`${n.dataTestid}-Search`,onInput:z[3]||(z[3]=H=>D.$emit("unmount-search",H)),onEnter:z[4]||(z[4]=H=>D.$emit("unmount-search-enter",H))},null,8,["modelValue","data-testid"])):l.createCommentVNode("",!0),l.createVNode(Wh,{"data-testid":`${n.dataTestid}-Options`,class:"filter__options-option",options:f.value,"default-option":h.value,onChange:E},{default:l.withCtx(()=>[l.createElementVNode("li",{class:"filter__options-underline","data-testid":`${n.dataTestid}-Underline`},[...z[5]||(z[5]=[l.createElementVNode("hr",{class:"filter__options-underline-hr"},null,-1)])],8,eCe)]),_:1},8,["data-testid","options","default-option"]),l.withDirectives(l.createElementVNode("div",{ref_key:"lastOptionRef",ref:o,class:"filter__last-option"},null,512),[[l.vShow,e.onUnmountPagination]])]),_:1},8,["is-opened","class","data-testid"]))}}),[["__scopeId","data-v-87927884"]]),tCe=["data-testid"],Gd=pe(l.defineComponent({name:"Range",__name:"Range",props:l.mergeModels({min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1},dataTestid:{default:"Range"}},{modelValue:{default:0},modelModifiers:{}}),emits:l.mergeModels(["unmount-change","unmount-input"],["update:modelValue"]),setup(e,{emit:t}){const n=e,i=t,r=l.useModel(e,"modelValue"),a=l.ref(null);l.watch(r,()=>{s()});const o=()=>(r.value-n.min)/(n.max-n.min)*100,s=()=>{requestAnimationFrame(()=>{a.value&&dn({"--progress":o()+"%"},a.value)})},u=f=>{const h=f.target;h&&i("unmount-change",Number(h.value))},c=f=>{const h=f.target;h&&i("unmount-change",Number(h.value))};return l.onMounted(()=>{s()}),(f,h)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",l.mergeProps({ref_key:"input",ref:a,type:"range"},n,{class:"range","onUpdate:modelValue":h[0]||(h[0]=g=>r.value=g),onChange:u,onInput:c,"data-testid":n.dataTestid}),null,16,tCe)),[[l.vModelText,r.value]])}}),[["__scopeId","data-v-4c8abd39"]]),nCe=["id","data-testid"],iCe=["data-testid"],rCe=["data-testid"],G1=pe(l.defineComponent({name:"TableNew",__name:"TableNew",props:{tableId:{},search:{},tbodyId:{},theadId:{},columnCount:{},dataTestid:{default:"Table"},isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate"],setup(e,{expose:t,emit:n}){var M;const i=e,r=n,a=l.reactive({headHeight:0,maxColumnCount:0}),o=l.ref(null),s=l.ref(null),u=l.ref(null),c=l.ref(null),f=l.ref(null),h=x=>{r("unmount-scroll",x)},g=()=>{if(!o.value||!f.value)return;const x=o.value.querySelector("thead");if(!x)return;const S=x.getBoundingClientRect().height;a.headHeight=S,dn({"--scroll-track-margin-top":`${S}px`},f.value.$el)},p=()=>{f.value&&f.value.scrollToTop()},y=()=>{if(f.value&&c.value){const x=getComputedStyle(f.value.$el),S=Number(x.minHeight.replace(/\D/g,""));if(S&&S>0)return;dn({"min-height":`${a.headHeight+108}px`},f.value.$el)}},v=()=>{let x=1;if(s.value){for(let S=0;S<s.value.children.length;S++)x=Math.max(s.value.children[S].children.length,x);a.maxColumnCount=x}},k=new MutationObserver(()=>{v()}),w=new ResizeObserver(()=>{g()});return t({scrollToTop:p,setHeightSlot:(M=f.value)==null?void 0:M.setHeightSlot,tbodyRef:u,tableRef:o,theadRef:s}),l.onMounted(()=>{g(),v(),window.addEventListener("resize",g),o.value&&w.observe(o.value),s.value&&k.observe(s.value,{childList:!0,subtree:!0}),y()}),(x,S)=>(l.openBlock(),l.createBlock(Cl,{ref_key:"scrollWrapperRef",ref:f,class:"table",onUnmountScroll:h,"is-show-vertical-scroll":i.isShowVerticalScroll,"is-show-horizontal-scroll":i.isShowHorizontalScroll,"data-testid":`${i.dataTestid}-ScrollWrapper`},{default:l.withCtx(()=>[l.createElementVNode("table",{ref_key:"tableRef",ref:o,id:i.tableId,class:"table__table","data-testid":`${i.dataTestid}`},[l.renderSlot(x.$slots,"default",{},()=>[l.createElementVNode("colgroup",null,[l.renderSlot(x.$slots,"colspan",{},void 0,!0)]),x.$slots.head?(l.openBlock(),l.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:s,class:"table__head","data-testid":`${i.dataTestid}-Thead`},[l.renderSlot(x.$slots,"head",{},void 0,!0),x.$slots.search?(l.openBlock(),l.createBlock(Ml,{key:0,class:"table__search-tr",ref_key:"searchRowRef",ref:c,"data-testid":`${i.dataTestid}-Search-Row`},{default:l.withCtx(()=>[l.createVNode(Go,{colspan:a.maxColumnCount,class:"table__search-th","data-testid":`${i.dataTestid}-SearchRow-Search`},{default:l.withCtx(()=>[l.renderSlot(x.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"])):l.createCommentVNode("",!0)],8,iCe)):l.createCommentVNode("",!0),l.renderSlot(x.$slots,"body-group",{},()=>[x.$slots.body?(l.openBlock(),l.createElementBlock("tbody",{key:0,ref_key:"tbodyRef",ref:u,class:"table__body","data-testid":`${i.dataTestid}-Tbody`},[l.renderSlot(x.$slots,"body",{},void 0,!0)],8,rCe)):l.createCommentVNode("",!0)],!0)],!0)],8,nCe)]),_:3},8,["is-show-vertical-scroll","is-show-horizontal-scroll","data-testid"]))}}),[["__scopeId","data-v-7bc532c5"]]),aCe=["data-testid"],K1=pe(l.defineComponent({name:"TableRow",__name:"TableRowNew",props:{type:{default:"default"},dataTestid:{}},setup(e){const t=e,n=l.computed(()=>[{"table-row_active":t.type==="selected"}]);return(i,r)=>(l.openBlock(),l.createElementBlock("tr",{class:l.normalizeClass(["table-row",n.value]),"data-testid":t.dataTestid},[l.renderSlot(i.$slots,"default",{},void 0,!0)],10,aCe))}}),[["__scopeId","data-v-a1577458"]]),oCe=["data-testid"],Kd=pe(l.defineComponent({name:"HeadTableRow",__name:"HeadTableRowNew",props:{dataTestid:{default:"TableRow"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("tr",{class:"head-table-row","data-testid":t.dataTestid},[l.renderSlot(n.$slots,"default",{},void 0,!0)],8,oCe))}}),[["__scopeId","data-v-9e5765d8"]]),sCe={class:"scroll-wrapper__vertical-wrapper"},lCe={class:"scroll-wrapper__horizont-wrapper"},uCe=pe(l.defineComponent({name:"ScrollWrapper",__name:"ScrollWrapperNew",props:{isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate","on-mounted"],setup(e,{expose:t,emit:n}){const i=n,r=l.ref(null),a=l.ref(null),o=l.ref(null),s=l.ref(null),u=l.ref(null),c=l.ref(null),{onTrackClick:f,startDrag:h,changeBarPosition:g,setVerticalBarHeight:p,verticalTrackClass:y,isExistVerticalTrack:v}=S3(r,a,s,o),{changeBarPosition:k,startDrag:w,onTrackClick:M,setHorizontalBarWidth:x,horizontalTrackClass:S,isExistHorizontalTrack:E}=x3(r,a,c,u),I=ne=>{g(),k(),i("unmount-scroll",ne)},A=()=>{requestAnimationFrame(()=>{W(),$()})},W=()=>{if(!r.value||!a.value)return;const ne=getComputedStyle(a.value),q=a.value.style.minHeight||ne.minHeight,Z=a.value.style.maxHeight||ne.maxHeight,ue=a.value.style.height;dn({"--scroll-wrapper-height":`${ue}`,"--scroll-wrapper-max-height":`${Z}`,"--scroll-wrapper-min-height":`${q}`},a.value)},$=()=>{p(),x(),g(),k()},D=()=>{r.value&&r.value.addEventListener("scroll",I)},z=()=>{r.value&&(r.value.scrollTop=0)},H=new MutationObserver(()=>{A()}),X=new ResizeObserver(()=>{A()}),re=ne=>{H.observe(ne,{childList:!0,subtree:!0,attributes:!0}),X.observe(ne)};return t({scrollToTop:z,setHeightSlot:W}),l.onMounted(()=>{A(),D(),a.value&&re(a.value),o.value&&re(o.value),window.addEventListener("resize",A),i("on-mounted")}),l.onUnmounted(()=>{window.removeEventListener("resize",A)}),(ne,q)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"scrollWrapperRef",ref:a,class:"scroll-wrapper"},[l.createElementVNode("div",sCe,[l.createElementVNode("div",lCe,[l.createElementVNode("div",{ref_key:"slotRef",ref:r,class:"scroll-wrapper__slot"},[l.renderSlot(ne.$slots,"default",{},void 0,!0)],512),l.unref(E)||e.isShowHorizontalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"horizontTrackRef",ref:u,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_horizont",l.unref(S)]),onClick:q[1]||(q[1]=l.withModifiers((...Z)=>l.unref(M)&&l.unref(M)(...Z),["prevent","left"]))},[l.createElementVNode("div",{ref_key:"horizontBarRef",ref:c,class:"scroll-wrapper__bar",onMousedown:q[0]||(q[0]=l.withModifiers((...Z)=>l.unref(w)&&l.unref(w)(...Z),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)]),l.unref(v)||e.isShowVerticalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"verticalTrackRef",ref:o,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_vertical",l.unref(y)]),onClick:q[3]||(q[3]=l.withModifiers((...Z)=>l.unref(f)&&l.unref(f)(...Z),["prevent","left"]))},[l.createElementVNode("div",{ref_key:"verticalBarRef",ref:s,class:"scroll-wrapper__bar",onMousedown:q[2]||(q[2]=l.withModifiers((...Z)=>l.unref(h)&&l.unref(h)(...Z),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-acb87209"]]),dCe=["data-testid"],cCe=["data-testid"],fCe=["data-testid"],Q1=pe(l.defineComponent({name:"TableSimple",__name:"TableSimple",props:{dataTestid:{default:"TableSimple"}},setup(e,{expose:t}){const n=e,i=l.ref(null),r=l.ref(null),a=l.ref(null),o=l.ref(null),s=l.computed(()=>{let u=1;if(r.value)for(let c=0;c<r.value.children.length;c++)u=Math.max(r.value.children[c].children.length,u);return u});return t({tbodyRef:a,tableRef:i,theadRef:r}),(u,c)=>(l.openBlock(),l.createElementBlock("table",{ref_key:"tableRef",ref:i,class:"simple-table-yui-kit","data-testid":`${n.dataTestid}`},[l.renderSlot(u.$slots,"default",{},()=>[l.renderSlot(u.$slots,"colspan",{},void 0,!0),u.$slots.head?(l.openBlock(),l.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:r,class:"simple-table-yui-kit__head","data-testid":`${n.dataTestid}-Thead`},[l.renderSlot(u.$slots,"head",{},void 0,!0),u.$slots.search?(l.openBlock(),l.createBlock(Kd,{key:0,class:"table-new-yui-kit__search",ref_key:"searchRowRef",ref:o,"data-testid":`${n.dataTestid}-Search-Row`},{default:l.withCtx(()=>[l.createVNode(Go,{colspan:s.value,class:"table-new-yui-kit__th","data-testid":`${n.dataTestid}-SearchRow-Search`},{default:l.withCtx(()=>[l.renderSlot(u.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"])):l.createCommentVNode("",!0)],8,cCe)):l.createCommentVNode("",!0),l.renderSlot(u.$slots,"body-group",{},()=>[u.$slots.body?(l.openBlock(),l.createElementBlock("tbody",{key:0,ref_key:"tbodyRef",ref:a,class:"simple-table-yui-kit__body","data-testid":`${n.dataTestid}-Tbody`},[l.renderSlot(u.$slots,"body",{},void 0,!0)],8,fCe)):l.createCommentVNode("",!0)],!0)],!0)],8,dCe))}}),[["__scopeId","data-v-532e43bc"]]),hCe=["data-testid"],mCe=["data-testid"],pCe=["onClick","data-testid"],gCe=["data-testid"],J1=pe(l.defineComponent({name:"Tabs",__name:"Tabs",props:{tabCount:{},dataTestid:{default:"Tabs"}},emits:["unmount-tab"],setup(e,{emit:t}){const n=e,i=t,r=l.reactive({activeTab:1}),a=s=>Array.from({length:s},(u,c)=>c+1),o=s=>{r.activeTab=s,i("unmount-tab",s)};return(s,u)=>(l.openBlock(),l.createElementBlock("div",{"data-testid":n.dataTestid,class:"tabs"},[l.createElementVNode("nav",{class:"tabs__navigation","data-testid":`${n.dataTestid}-Navigation`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a(n.tabCount),c=>(l.openBlock(),l.createElementBlock("button",{key:c,onClick:f=>o(c),class:l.normalizeClass(["tabs__navigation-button",{active:r.activeTab===c}]),"data-testid":`${n.dataTestid}-Navigation-Button`},[l.renderSlot(s.$slots,`header${c}`,{},void 0,!0)],10,pCe))),128))],8,mCe),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a(n.tabCount),c=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:c},[r.activeTab===c?(l.openBlock(),l.createElementBlock("article",{key:0,"data-testid":`${n.dataTestid}-Content`,class:"tabs__navigation-content"},[l.renderSlot(s.$slots,`tab${c}`,{},void 0,!0)],8,gCe)):l.createCommentVNode("",!0)],64))),128))],8,hCe))}}),[["__scopeId","data-v-7f7d6755"]]);function zt(e){this.content=e}zt.prototype={constructor:zt,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var i=n&&n!=e?this.remove(n):this,r=i.find(e),a=i.content.slice();return r==-1?a.push(n||e,t):(a[r+1]=t,n&&(a[r]=n)),new zt(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new zt(n)},addToStart:function(e,t){return new zt([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new zt(n)},addBefore:function(e,t,n){var i=this.remove(t),r=i.content.slice(),a=i.find(e);return r.splice(a==-1?r.length:a,0,t,n),new zt(r)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=zt.from(e),e.size?new zt(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=zt.from(e),e.size?new zt(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=zt.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},zt.from=function(e){if(e instanceof zt)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new zt(t)};function T3(e,t,n){for(let i=0;;i++){if(i==e.childCount||i==t.childCount)return e.childCount==t.childCount?null:n;let r=e.child(i),a=t.child(i);if(r==a){n+=r.nodeSize;continue}if(!r.sameMarkup(a))return n;if(r.isText&&r.text!=a.text){for(let o=0;r.text[o]==a.text[o];o++)n++;return n}if(r.content.size||a.content.size){let o=T3(r.content,a.content,n+1);if(o!=null)return o}n+=r.nodeSize}}function P3(e,t,n,i){for(let r=e.childCount,a=t.childCount;;){if(r==0||a==0)return r==a?null:{a:n,b:i};let o=e.child(--r),s=t.child(--a),u=o.nodeSize;if(o==s){n-=u,i-=u;continue}if(!o.sameMarkup(s))return{a:n,b:i};if(o.isText&&o.text!=s.text){let c=0,f=Math.min(o.text.length,s.text.length);for(;c<f&&o.text[o.text.length-c-1]==s.text[s.text.length-c-1];)c++,n--,i--;return{a:n,b:i}}if(o.content.size||s.content.size){let c=P3(o.content,s.content,n-1,i-1);if(c)return c}n-=u,i-=u}}class te{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let i=0;i<t.length;i++)this.size+=t[i].nodeSize}nodesBetween(t,n,i,r=0,a){for(let o=0,s=0;s<n;o++){let u=this.content[o],c=s+u.nodeSize;if(c>t&&i(u,r+s,a||null,o)!==!1&&u.content.size){let f=s+1;u.nodesBetween(Math.max(0,t-f),Math.min(u.content.size,n-f),i,r+f)}s=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,i,r){let a="",o=!0;return this.nodesBetween(t,n,(s,u)=>{let c=s.isText?s.text.slice(Math.max(t,u)-u,n-u):s.isLeaf?r?typeof r=="function"?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&c||s.isTextblock)&&i&&(o?o=!1:a+=i),a+=c},0),a}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,i=t.firstChild,r=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(i)&&(r[r.length-1]=n.withText(n.text+i.text),a=1);a<t.content.length;a++)r.push(t.content[a]);return new te(r,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let i=[],r=0;if(n>t)for(let a=0,o=0;o<n;a++){let s=this.content[a],u=o+s.nodeSize;u>t&&((o<t||u>n)&&(s.isText?s=s.cut(Math.max(0,t-o),Math.min(s.text.length,n-o)):s=s.cut(Math.max(0,t-o-1),Math.min(s.content.size,n-o-1))),i.push(s),r+=s.nodeSize),o=u}return new te(i,r)}cutByIndex(t,n){return t==n?te.empty:t==0&&n==this.content.length?this:new te(this.content.slice(t,n))}replaceChild(t,n){let i=this.content[t];if(i==n)return this;let r=this.content.slice(),a=this.size+n.nodeSize-i.nodeSize;return r[t]=n,new te(r,a)}addToStart(t){return new te([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new te(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(t.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let n=this.content[t];if(!n)throw new RangeError("Index "+t+" out of range for "+this);return n}maybeChild(t){return this.content[t]||null}forEach(t){for(let n=0,i=0;n<this.content.length;n++){let r=this.content[n];t(r,i,n),i+=r.nodeSize}}findDiffStart(t,n=0){return T3(this,t,n)}findDiffEnd(t,n=this.size,i=t.size){return P3(this,t,n,i)}findIndex(t){if(t==0)return Qd(0,t);if(t==this.size)return Qd(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,i=0;;n++){let r=this.child(n),a=i+r.nodeSize;if(a>=t)return a==t?Qd(n+1,a):Qd(n,i);i=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return te.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new te(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return te.empty;let n,i=0;for(let r=0;r<t.length;r++){let a=t[r];i+=a.nodeSize,r&&a.isText&&t[r-1].sameMarkup(a)?(n||(n=t.slice(0,r)),n[n.length-1]=a.withText(n[n.length-1].text+a.text)):n&&n.push(a)}return new te(n||t,i)}static from(t){if(!t)return te.empty;if(t instanceof te)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new te([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}te.empty=new te([],0);const Z1={index:0,offset:0};function Qd(e,t){return Z1.index=e,Z1.offset=t,Z1}function Jd(e,t){if(e===t)return!0;if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++)if(!Jd(e[i],t[i]))return!1}else{for(let i in e)if(!(i in t)||!Jd(e[i],t[i]))return!1;for(let i in t)if(!(i in e))return!1}return!0}let Ge=class vy{constructor(t,n){this.type=t,this.attrs=n}addToSet(t){let n,i=!1;for(let r=0;r<t.length;r++){let a=t[r];if(this.eq(a))return t;if(this.type.excludes(a.type))n||(n=t.slice(0,r));else{if(a.type.excludes(this.type))return t;!i&&a.type.rank>this.type.rank&&(n||(n=t.slice(0,r)),n.push(this),i=!0),n&&n.push(a)}}return n||(n=t.slice()),i||n.push(this),n}removeFromSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return t.slice(0,n).concat(t.slice(n+1));return t}isInSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return!0;return!1}eq(t){return this==t||this.type==t.type&&Jd(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let i=t.marks[n.type];if(!i)throw new RangeError(`There is no mark type ${n.type} in this schema`);let r=i.create(n.attrs);return i.checkAttrs(r.attrs),r}static sameSet(t,n){if(t==n)return!0;if(t.length!=n.length)return!1;for(let i=0;i<t.length;i++)if(!t[i].eq(n[i]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return vy.none;if(t instanceof vy)return[t];let n=t.slice();return n.sort((i,r)=>i.type.rank-r.type.rank),n}};Ge.none=[];class Zd extends Error{}class le{constructor(t,n,i){this.content=t,this.openStart=n,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let i=A3(this.content,t+this.openStart,n);return i&&new le(i,this.openStart,this.openEnd)}removeBetween(t,n){return new le(E3(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return le.empty;let i=n.openStart||0,r=n.openEnd||0;if(typeof i!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new le(te.fromJSON(t,n.content),i,r)}static maxOpen(t,n=!0){let i=0,r=0;for(let a=t.firstChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.firstChild)i++;for(let a=t.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)r++;return new le(t,i,r)}}le.empty=new le(te.empty,0,0);function E3(e,t,n){let{index:i,offset:r}=e.findIndex(t),a=e.maybeChild(i),{index:o,offset:s}=e.findIndex(n);if(r==t||a.isText){if(s!=n&&!e.child(o).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(i!=o)throw new RangeError("Removing non-flat range");return e.replaceChild(i,a.copy(E3(a.content,t-r-1,n-r-1)))}function A3(e,t,n,i){let{index:r,offset:a}=e.findIndex(t),o=e.maybeChild(r);if(a==t||o.isText)return i&&!i.canReplace(r,r,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=A3(o.content,t-a-1,n,o);return s&&e.replaceChild(r,o.copy(s))}function yCe(e,t,n){if(n.openStart>e.depth)throw new Zd("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Zd("Inconsistent open depths");return D3(e,t,n,0)}function D3(e,t,n,i){let r=e.index(i),a=e.node(i);if(r==t.index(i)&&i<e.depth-n.openStart){let o=D3(e,t,n,i+1);return a.copy(a.content.replaceChild(r,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==i&&t.depth==i){let o=e.parent,s=o.content;return Fa(o,s.cut(0,e.parentOffset).append(n.content).append(s.cut(t.parentOffset)))}else{let{start:o,end:s}=bCe(n,e);return Fa(a,j3(e,o,s,t,i))}else return Fa(a,ec(e,t,i))}function N3(e,t){if(!t.type.compatibleContent(e.type))throw new Zd("Cannot join "+t.type.name+" onto "+e.type.name)}function ep(e,t,n){let i=e.node(n);return N3(i,t.node(n)),i}function Va(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function xl(e,t,n,i){let r=(t||e).node(n),a=0,o=t?t.index(n):r.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Va(e.nodeAfter,i),a++));for(let s=a;s<o;s++)Va(r.child(s),i);t&&t.depth==n&&t.textOffset&&Va(t.nodeBefore,i)}function Fa(e,t){return e.type.checkContent(t),e.copy(t)}function j3(e,t,n,i,r){let a=e.depth>r&&ep(e,t,r+1),o=i.depth>r&&ep(n,i,r+1),s=[];return xl(null,e,r,s),a&&o&&t.index(r)==n.index(r)?(N3(a,o),Va(Fa(a,j3(e,t,n,i,r+1)),s)):(a&&Va(Fa(a,ec(e,t,r+1)),s),xl(t,n,r,s),o&&Va(Fa(o,ec(n,i,r+1)),s)),xl(i,null,r,s),new te(s)}function ec(e,t,n){let i=[];if(xl(null,e,n,i),e.depth>n){let r=ep(e,t,n+1);Va(Fa(r,ec(e,t,n+1)),i)}return xl(t,null,n,i),new te(i)}function bCe(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let a=n-1;a>=0;a--)r=t.node(a).copy(te.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}class Sl{constructor(t,n,i){this.pos=t,this.path=n,this.parentOffset=i,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let i=this.pos-this.path[this.path.length-1],r=t.child(n);return i?t.child(n).cut(i):r}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let i=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let a=0;a<t;a++)r+=i.child(a).nodeSize;return r}marks(){let t=this.parent,n=this.index();if(t.content.size==0)return Ge.none;if(this.textOffset)return t.child(n).marks;let i=t.maybeChild(n-1),r=t.maybeChild(n);if(!i){let s=i;i=r,r=s}let a=i.marks;for(var o=0;o<a.length;o++)a[o].type.spec.inclusive===!1&&(!r||!a[o].isInSet(r.marks))&&(a=a[o--].removeFromSet(a));return a}marksAcross(t){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let i=n.marks,r=t.parent.maybeChild(t.index());for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}sharedDepth(t){for(let n=this.depth;n>0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos<this.pos)return t.blockRange(this);for(let i=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);i>=0;i--)if(t.pos<=this.end(i)&&(!n||n(this.node(i))))return new tc(this,t,i);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let n=1;n<=this.depth;n++)t+=(t?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return t+":"+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let i=[],r=0,a=n;for(let o=t;;){let{index:s,offset:u}=o.content.findIndex(a),c=a-u;if(i.push(o,s,r+u),!c||(o=o.child(s),o.isText))break;a=c-1,r+=u+1}return new Sl(n,i,a)}static resolveCached(t,n){let i=I3.get(t);if(i)for(let a=0;a<i.elts.length;a++){let o=i.elts[a];if(o.pos==n)return o}else I3.set(t,i=new wCe);let r=i.elts[i.i]=Sl.resolve(t,n);return i.i=(i.i+1)%vCe,r}}class wCe{constructor(){this.elts=[],this.i=0}}const vCe=12,I3=new WeakMap;class tc{constructor(t,n,i){this.$from=t,this.$to=n,this.depth=i}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const kCe=Object.create(null);let Hr=class ky{constructor(t,n,i,r=Ge.none){this.type=t,this.attrs=n,this.marks=r,this.content=i||te.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,n,i,r=0){this.content.nodesBetween(t,n,i,r,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,n,i,r){return this.content.textBetween(t,n,i,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,n,i){return this.type==t&&Jd(this.attrs,n||t.defaultAttrs||kCe)&&Ge.sameSet(this.marks,i||Ge.none)}copy(t=null){return t==this.content?this:new ky(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new ky(this.type,this.attrs,this.content,t)}cut(t,n=this.content.size){return t==0&&n==this.content.size?this:this.copy(this.content.cut(t,n))}slice(t,n=this.content.size,i=!1){if(t==n)return le.empty;let r=this.resolve(t),a=this.resolve(n),o=i?0:r.sharedDepth(n),s=r.start(o),c=r.node(o).content.cut(r.pos-s,a.pos-s);return new le(c,r.depth-o,a.depth-o)}replace(t,n,i){return yCe(this.resolve(t),this.resolve(n),i)}nodeAt(t){for(let n=this;;){let{index:i,offset:r}=n.content.findIndex(t);if(n=n.maybeChild(i),!n)return null;if(r==t||n.isText)return n;t-=r+1}}childAfter(t){let{index:n,offset:i}=this.content.findIndex(t);return{node:this.content.maybeChild(n),index:n,offset:i}}childBefore(t){if(t==0)return{node:null,index:0,offset:0};let{index:n,offset:i}=this.content.findIndex(t);if(i<t)return{node:this.content.child(n),index:n,offset:i};let r=this.content.child(n-1);return{node:r,index:n-1,offset:i-r.nodeSize}}resolve(t){return Sl.resolveCached(this,t)}resolveNoCache(t){return Sl.resolve(this,t)}rangeHasMark(t,n,i){let r=!1;return n>t&&this.nodesBetween(t,n,a=>(i.isInSet(a.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),W3(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,i=te.empty,r=0,a=i.childCount){let o=this.contentMatchAt(t).matchFragment(i,r,a),s=o&&o.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let u=r;u<a;u++)if(!this.type.allowsMarks(i.child(u).marks))return!1;return!0}canReplaceWith(t,n,i,r){if(r&&!this.type.allowsMarks(r))return!1;let a=this.contentMatchAt(t).matchType(i),o=a&&a.matchFragment(this.content,n);return o?o.validEnd:!1}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=Ge.none;for(let n=0;n<this.marks.length;n++){let i=this.marks[n];i.type.checkAttrs(i.attrs),t=i.addToSet(t)}if(!Ge.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let i;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,i)}let r=te.fromJSON(t,n.content),a=t.nodeType(n.type).create(n.attrs,r,i);return a.type.checkAttrs(a.attrs),a}};Hr.prototype.text=void 0;class nc extends Hr{constructor(t,n,i,r){if(super(t,n,null,r),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):W3(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new nc(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new nc(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function W3(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Ua{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let i=new MCe(t,n);if(i.next==null)return Ua.empty;let r=O3(i);i.next&&i.err("Unexpected trailing text");let a=ECe(PCe(r));return ACe(a,i),a}matchType(t){for(let n=0;n<this.next.length;n++)if(this.next[n].type==t)return this.next[n].next;return null}matchFragment(t,n=0,i=t.childCount){let r=this;for(let a=n;r&&a<i;a++)r=r.matchType(t.child(a).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:n}=this.next[t];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(t){for(let n=0;n<this.next.length;n++)for(let i=0;i<t.next.length;i++)if(this.next[n].type==t.next[i].type)return!0;return!1}fillBefore(t,n=!1,i=0){let r=[this];function a(o,s){let u=o.matchFragment(t,i);if(u&&(!n||u.validEnd))return te.from(s.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:f,next:h}=o.next[c];if(!(f.isText||f.hasRequiredAttrs())&&r.indexOf(h)==-1){r.push(h);let g=a(h,s.concat(f));if(g)return g}}return null}return a(this,[])}findWrapping(t){for(let i=0;i<this.wrapCache.length;i+=2)if(this.wrapCache[i]==t)return this.wrapCache[i+1];let n=this.computeWrapping(t);return this.wrapCache.push(t,n),n}computeWrapping(t){let n=Object.create(null),i=[{match:this,type:null,via:null}];for(;i.length;){let r=i.shift(),a=r.match;if(a.matchType(t)){let o=[];for(let s=r;s.type;s=s.via)o.push(s.type);return o.reverse()}for(let o=0;o<a.next.length;o++){let{type:s,next:u}=a.next[o];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in n)&&(!r.type||u.validEnd)&&(i.push({match:s.contentMatch,type:s,via:r}),n[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(i){t.push(i);for(let r=0;r<i.next.length;r++)t.indexOf(i.next[r].next)==-1&&n(i.next[r].next)}return n(this),t.map((i,r)=>{let a=r+(i.validEnd?"*":" ")+" ";for(let o=0;o<i.next.length;o++)a+=(o?", ":"")+i.next[o].type.name+"->"+t.indexOf(i.next[o].next);return a}).join(`
|
|
1297
|
-
`)}}Ua.empty=new Ua(!0);class MCe{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function O3(e){let t=[];do t.push(CCe(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function CCe(e){let t=[];do t.push(xCe(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function xCe(e){let t=TCe(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=SCe(e,t);else break;return t}function z3(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function SCe(e,t){let n=z3(e),i=n;return e.eat(",")&&(e.next!="}"?i=z3(e):i=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:t}}function _Ce(e,t){let n=e.nodeTypes,i=n[t];if(i)return[i];let r=[];for(let a in n){let o=n[a];o.isInGroup(t)&&r.push(o)}return r.length==0&&e.err("No node type or group '"+t+"' found"),r}function TCe(e){if(e.eat("(")){let t=O3(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=_Ce(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function PCe(e){let t=[[]];return r(a(e,0),n()),t;function n(){return t.push([])-1}function i(o,s,u){let c={term:u,to:s};return t[o].push(c),c}function r(o,s){o.forEach(u=>u.to=s)}function a(o,s){if(o.type=="choice")return o.exprs.reduce((u,c)=>u.concat(a(c,s)),[]);if(o.type=="seq")for(let u=0;;u++){let c=a(o.exprs[u],s);if(u==o.exprs.length-1)return c;r(c,s=n())}else if(o.type=="star"){let u=n();return i(s,u),r(a(o.expr,u),u),[i(u)]}else if(o.type=="plus"){let u=n();return r(a(o.expr,s),u),r(a(o.expr,u),u),[i(u)]}else{if(o.type=="opt")return[i(s)].concat(a(o.expr,s));if(o.type=="range"){let u=s;for(let c=0;c<o.min;c++){let f=n();r(a(o.expr,u),f),u=f}if(o.max==-1)r(a(o.expr,u),u);else for(let c=o.min;c<o.max;c++){let f=n();i(u,f),r(a(o.expr,u),f),u=f}return[i(u)]}else{if(o.type=="name")return[i(s,void 0,o.value)];throw new Error("Unknown expr type")}}}}function L3(e,t){return t-e}function $3(e,t){let n=[];return i(t),n.sort(L3);function i(r){let a=e[r];if(a.length==1&&!a[0].term)return i(a[0].to);n.push(r);for(let o=0;o<a.length;o++){let{term:s,to:u}=a[o];!s&&n.indexOf(u)==-1&&i(u)}}}function ECe(e){let t=Object.create(null);return n($3(e,0));function n(i){let r=[];i.forEach(o=>{e[o].forEach(({term:s,to:u})=>{if(!s)return;let c;for(let f=0;f<r.length;f++)r[f][0]==s&&(c=r[f][1]);$3(e,u).forEach(f=>{c||r.push([s,c=[]]),c.indexOf(f)==-1&&c.push(f)})})});let a=t[i.join(",")]=new Ua(i.indexOf(e.length-1)>-1);for(let o=0;o<r.length;o++){let s=r[o][1].sort(L3);a.next.push({type:r[o][0],next:t[s.join(",")]||n(s)})}return a}}function ACe(e,t){for(let n=0,i=[e];n<i.length;n++){let r=i[n],a=!r.validEnd,o=[];for(let s=0;s<r.next.length;s++){let{type:u,next:c}=r.next[s];o.push(u.name),a&&!(u.isText||u.hasRequiredAttrs())&&(a=!1),i.indexOf(c)==-1&&i.push(c)}a&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function H3(e){let t=Object.create(null);for(let n in e){let i=e[n];if(!i.hasDefault)return null;t[n]=i.default}return t}function R3(e,t){let n=Object.create(null);for(let i in e){let r=t&&t[i];if(r===void 0){let a=e[i];if(a.hasDefault)r=a.default;else throw new RangeError("No value supplied for attribute "+i)}n[i]=r}return n}function B3(e,t,n,i){for(let r in t)if(!(r in e))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let r in e){let a=e[r];a.validate&&a.validate(t[r])}}function V3(e,t){let n=Object.create(null);if(t)for(let i in t)n[i]=new NCe(e,i,t[i]);return n}let F3=class M8{constructor(t,n,i){this.name=t,this.schema=n,this.spec=i,this.markSet=null,this.groups=i.group?i.group.split(" "):[],this.attrs=V3(t,i.attrs),this.defaultAttrs=H3(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(i.inline||t=="text"),this.isText=t=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ua.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:R3(this.attrs,t)}create(t=null,n,i){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Hr(this,this.computeAttrs(t),te.from(n),Ge.setFrom(i))}createChecked(t=null,n,i){return n=te.from(n),this.checkContent(n),new Hr(this,this.computeAttrs(t),n,Ge.setFrom(i))}createAndFill(t=null,n,i){if(t=this.computeAttrs(t),n=te.from(n),n.size){let o=this.contentMatch.fillBefore(n);if(!o)return null;n=o.append(n)}let r=this.contentMatch.matchFragment(n),a=r&&r.fillBefore(te.empty,!0);return a?new Hr(this,t,n.append(a),Ge.setFrom(i)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let i=0;i<t.childCount;i++)if(!this.allowsMarks(t.child(i).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){B3(this.attrs,t,"node",this.name)}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;n<t.length;n++)if(!this.allowsMarkType(t[n].type))return!1;return!0}allowedMarks(t){if(this.markSet==null)return t;let n;for(let i=0;i<t.length;i++)this.allowsMarkType(t[i].type)?n&&n.push(t[i]):n||(n=t.slice(0,i));return n?n.length?n:Ge.none:t}static compile(t,n){let i=Object.create(null);t.forEach((a,o)=>i[a]=new M8(a,n,o));let r=n.spec.topNode||"doc";if(!i[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let a in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}};function DCe(e,t,n){let i=n.split("|");return r=>{let a=r===null?"null":typeof r;if(i.indexOf(a)<0)throw new RangeError(`Expected value of type ${i} for attribute ${t} on type ${e}, got ${a}`)}}class NCe{constructor(t,n,i){this.hasDefault=Object.prototype.hasOwnProperty.call(i,"default"),this.default=i.default,this.validate=typeof i.validate=="string"?DCe(t,n,i.validate):i.validate}get isRequired(){return!this.hasDefault}}class ic{constructor(t,n,i,r){this.name=t,this.rank=n,this.schema=i,this.spec=r,this.attrs=V3(t,r.attrs),this.excluded=null;let a=H3(this.attrs);this.instance=a?new Ge(this,a):null}create(t=null){return!t&&this.instance?this.instance:new Ge(this,R3(this.attrs,t))}static compile(t,n){let i=Object.create(null),r=0;return t.forEach((a,o)=>i[a]=new ic(a,r++,n,o)),i}removeFromSet(t){for(var n=0;n<t.length;n++)t[n].type==this&&(t=t.slice(0,n).concat(t.slice(n+1)),n--);return t}isInSet(t){for(let n=0;n<t.length;n++)if(t[n].type==this)return t[n]}checkAttrs(t){B3(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class U3{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in t)n[r]=t[r];n.nodes=zt.from(t.nodes),n.marks=zt.from(t.marks||{}),this.nodes=F3.compile(this.spec.nodes,this),this.marks=ic.compile(this.spec.marks,this);let i=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let a=this.nodes[r],o=a.spec.content||"",s=a.spec.marks;if(a.contentMatch=i[o]||(i[o]=Ua.parse(o,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet=s=="_"?null:s?Y3(this,s.split(" ")):s==""||!a.inlineContent?[]:null}for(let r in this.marks){let a=this.marks[r],o=a.spec.excludes;a.excluded=o==null?[a]:o==""?[]:Y3(this,o.split(" "))}this.nodeFromJSON=r=>Hr.fromJSON(this,r),this.markFromJSON=r=>Ge.fromJSON(this,r),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,i,r){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof F3){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,i,r)}text(t,n){let i=this.nodes.text;return new nc(i,i.defaultAttrs,t,Ge.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function Y3(e,t){let n=[];for(let i=0;i<t.length;i++){let r=t[i],a=e.marks[r],o=a;if(a)n.push(a);else for(let s in e.marks){let u=e.marks[s];(r=="_"||u.spec.group&&u.spec.group.split(" ").indexOf(r)>-1)&&n.push(o=u)}if(!o)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return n}function jCe(e){return e.tag!=null}function ICe(e){return e.style!=null}class Rr{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let i=this.matchedStyles=[];n.forEach(r=>{if(jCe(r))this.tags.push(r);else if(ICe(r)){let a=/[^=]*/.exec(r.style)[0];i.indexOf(a)<0&&i.push(a),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let a=t.nodes[r.node];return a.contentMatch.matchType(a)})}parse(t,n={}){let i=new K3(this,n,!1);return i.addAll(t,Ge.none,n.from,n.to),i.finish()}parseSlice(t,n={}){let i=new K3(this,n,!0);return i.addAll(t,Ge.none,n.from,n.to),le.maxOpen(i.finish())}matchTag(t,n,i){for(let r=i?this.tags.indexOf(i)+1:0;r<this.tags.length;r++){let a=this.tags[r];if(zCe(t,a.tag)&&(a.namespace===void 0||t.namespaceURI==a.namespace)&&(!a.context||n.matchesContext(a.context))){if(a.getAttrs){let o=a.getAttrs(t);if(o===!1)continue;a.attrs=o||void 0}return a}}}matchStyle(t,n,i,r){for(let a=r?this.styles.indexOf(r)+1:0;a<this.styles.length;a++){let o=this.styles[a],s=o.style;if(!(s.indexOf(t)!=0||o.context&&!i.matchesContext(o.context)||s.length>t.length&&(s.charCodeAt(t.length)!=61||s.slice(t.length+1)!=n))){if(o.getAttrs){let u=o.getAttrs(n);if(u===!1)continue;o.attrs=u||void 0}return o}}}static schemaRules(t){let n=[];function i(r){let a=r.priority==null?50:r.priority,o=0;for(;o<n.length;o++){let s=n[o];if((s.priority==null?50:s.priority)<a)break}n.splice(o,0,r)}for(let r in t.marks){let a=t.marks[r].spec.parseDOM;a&&a.forEach(o=>{i(o=Q3(o)),o.mark||o.ignore||o.clearMark||(o.mark=r)})}for(let r in t.nodes){let a=t.nodes[r].spec.parseDOM;a&&a.forEach(o=>{i(o=Q3(o)),o.node||o.ignore||o.mark||(o.node=r)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new Rr(t,Rr.schemaRules(t)))}}const X3={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},WCe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},q3={ol:!0,ul:!0},_l=1,tp=2,Tl=4;function G3(e,t,n){return t!=null?(t?_l:0)|(t==="full"?tp:0):e&&e.whitespace=="pre"?_l|tp:n&~Tl}class rc{constructor(t,n,i,r,a,o){this.type=t,this.attrs=n,this.marks=i,this.solid=r,this.options=o,this.content=[],this.activeMarks=Ge.none,this.match=a||(o&Tl?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(te.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let i=this.type.contentMatch,r;return(r=i.findWrapping(t.type))?(this.match=i,r):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&_l)){let i=this.content[this.content.length-1],r;if(i&&i.isText&&(r=/[ \t\r\n\u000c]+$/.exec(i.text))){let a=i;i.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-r[0].length))}}let n=te.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(te.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!X3.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class K3{constructor(t,n,i){this.parser=t,this.options=n,this.isOpen=i,this.open=0,this.localPreserveWS=!1;let r=n.topNode,a,o=G3(null,n.preserveWhitespace,0)|(i?Tl:0);r?a=new rc(r.type,r.attrs,Ge.none,!0,n.topMatch||r.type.contentMatch,o):i?a=new rc(null,null,Ge.none,!0,null,o):a=new rc(t.schema.topNodeType,null,Ge.none,!0,null,o),this.nodes=[a],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let i=t.nodeValue,r=this.top,a=r.options&tp?"full":this.localPreserveWS||(r.options&_l)>0;if(a==="full"||r.inlineContext(t)||/[^ \t\r\n\u000c]/.test(i)){if(a)a!=="full"?i=i.replace(/\r?\n|\r/g," "):i=i.replace(/\r\n?/g,`
|
|
1298
|
-
`);else if(i=i.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(i)&&this.open==this.nodes.length-1){let o=r.content[r.content.length-1],s=t.previousSibling;(!o||s&&s.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(i=i.slice(1))}i&&this.insertNode(this.parser.schema.text(i),n,!/\S/.test(i)),this.findInText(t)}else this.findInside(t)}addElement(t,n,i){let r=this.localPreserveWS,a=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let o=t.nodeName.toLowerCase(),s;
|
|
1299
|
-
`),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(t,n){let i=t.style;if(i&&i.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let a=this.parser.matchedStyles[r],o=i.getPropertyValue(a);if(o)for(let s=void 0;;){let u=this.parser.matchStyle(a,o,this,s);if(!u)break;if(u.ignore)return null;if(u.clearMark?n=n.filter(c=>!u.clearMark(c)):n=n.concat(this.parser.schema.marks[u.mark].create(u.attrs)),u.consuming===!1)s=u;else break}}return n}addElementByRule(t,n,i,r){let a,o;if(n.node)if(o=this.parser.schema.nodes[n.node],o.isLeaf)this.insertNode(o.create(n.attrs),i,t.nodeName=="BR")||this.leafFallback(t,i);else{let u=this.enter(o,n.attrs||null,i,n.preserveWhitespace);u&&(a=!0,i=u)}else{let u=this.parser.schema.marks[n.mark];i=i.concat(u.create(n.attrs))}let s=this.top;if(o&&o.isLeaf)this.findInside(t);else if(r)this.addElement(t,i,r);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(u=>this.insertNode(u,i,!1));else{let u=t;typeof n.contentElement=="string"?u=t.querySelector(n.contentElement):typeof n.contentElement=="function"?u=n.contentElement(t):n.contentElement&&(u=n.contentElement),this.findAround(t,u,!0),this.addAll(u,i),this.findAround(t,u,!1)}a&&this.sync(s)&&this.open--}addAll(t,n,i,r){let a=i||0;for(let o=i?t.childNodes[i]:t.firstChild,s=r==null?null:t.childNodes[r];o!=s;o=o.nextSibling,++a)this.findAtPoint(t,a),this.addDOM(o,n);this.findAtPoint(t,a)}findPlace(t,n,i){let r,a;for(let o=this.open,s=0;o>=0;o--){let u=this.nodes[o],c=u.findWrapping(t);if(c&&(!r||r.length>c.length+s)&&(r=c,a=u,!c.length))break;if(u.solid){if(i)break;s+=2}}if(!r)return null;this.sync(a);for(let o=0;o<r.length;o++)n=this.enterInner(r[o],null,n,!1);return n}insertNode(t,n,i){if(t.isInline&&this.needsBlock&&!this.top.type){let a=this.textblockFromContext();a&&(n=this.enterInner(a,null,n))}let r=this.findPlace(t,n,i);if(r){this.closeExtra();let a=this.top;a.match&&(a.match=a.match.matchType(t.type));let o=Ge.none;for(let s of r.concat(t.marks))(a.type?a.type.allowsMarkType(s.type):J3(s.type,t.type))&&(o=s.addToSet(o));return a.content.push(t.mark(o)),!0}return!1}enter(t,n,i,r){let a=this.findPlace(t.create(n),i,!1);return a&&(a=this.enterInner(t,n,i,!0,r)),a}enterInner(t,n,i,r=!1,a){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(t);let s=G3(t,a,o.options);o.options&Tl&&o.content.length==0&&(s|=Tl);let u=Ge.none;return i=i.filter(c=>(o.type?o.type.allowsMarkType(c.type):J3(c.type,t))?(u=c.addToSet(u),!1):!0),this.nodes.push(new rc(t,n,u,r,null,s)),this.open++,i}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=_l)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let i=this.nodes[n].content;for(let r=i.length-1;r>=0;r--)t+=i[r].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let i=0;i<this.find.length;i++)this.find[i].node==t&&this.find[i].offset==n&&(this.find[i].pos=this.currentPos)}findInside(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&t.nodeType==1&&t.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(t,n,i){if(t!=n&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&t.nodeType==1&&t.contains(this.find[r].node)&&n.compareDocumentPosition(this.find[r].node)&(i?2:4)&&(this.find[r].pos=this.currentPos)}findInText(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&(this.find[n].pos=this.currentPos-(t.nodeValue.length-this.find[n].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),i=this.options.context,r=!this.isOpen&&(!i||i.parent.type==this.nodes[0].type),a=-(i?i.depth+1:0)+(r?0:1),o=(s,u)=>{for(;s>=0;s--){let c=n[s];if(c==""){if(s==n.length-1||s==0)continue;for(;u>=a;u--)if(o(s-1,u))return!0;return!1}else{let f=u>0||u==0&&r?this.nodes[u].type:i&&u>=a?i.node(u-a).type:null;if(!f||f.name!=c&&!f.isInGroup(c))return!1;u--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let n in this.parser.schema.nodes){let i=this.parser.schema.nodes[n];if(i.isTextblock&&i.defaultAttrs)return i}}}function OCe(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let i=t.nodeType==1?t.nodeName.toLowerCase():null;i&&q3.hasOwnProperty(i)&&n?(n.appendChild(t),t=n):i=="li"?n=t:i&&(n=null)}}function zCe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Q3(e){let t={};for(let n in e)t[n]=e[n];return t}function J3(e,t){let n=t.schema.nodes;for(let i in n){let r=n[i];if(!r.allowsMarkType(e))continue;let a=[],o=s=>{a.push(s);for(let u=0;u<s.edgeCount;u++){let{type:c,next:f}=s.edge(u);if(c==t||a.indexOf(f)<0&&o(f))return!0}};if(o(r.contentMatch))return!0}}class Ya{constructor(t,n){this.nodes=t,this.marks=n}serializeFragment(t,n={},i){i||(i=np(n).createDocumentFragment());let r=i,a=[];return t.forEach(o=>{if(a.length||o.marks.length){let s=0,u=0;for(;s<a.length&&u<o.marks.length;){let c=o.marks[u];if(!this.marks[c.type.name]){u++;continue}if(!c.eq(a[s][0])||c.type.spec.spanning===!1)break;s++,u++}for(;s<a.length;)r=a.pop()[1];for(;u<o.marks.length;){let c=o.marks[u++],f=this.serializeMark(c,o.isInline,n);f&&(a.push([c,r]),r.appendChild(f.dom),r=f.contentDOM||f.dom)}}r.appendChild(this.serializeNodeInner(o,n))}),i}serializeNodeInner(t,n){let{dom:i,contentDOM:r}=ac(np(n),this.nodes[t.type.name](t),null,t.attrs);if(r){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,n,r)}return i}serializeNode(t,n={}){let i=this.serializeNodeInner(t,n);for(let r=t.marks.length-1;r>=0;r--){let a=this.serializeMark(t.marks[r],t.isInline,n);a&&((a.contentDOM||a.dom).appendChild(i),i=a.dom)}return i}serializeMark(t,n,i={}){let r=this.marks[t.type.name];return r&&ac(np(i),r(t,n),null,t.attrs)}static renderSpec(t,n,i=null,r){return ac(t,n,i,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Ya(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=Z3(t.nodes);return n.text||(n.text=i=>i.text),n}static marksFromSchema(t){return Z3(t.marks)}}function Z3(e){let t={};for(let n in e){let i=e[n].spec.toDOM;i&&(t[n]=i)}return t}function np(e){return e.document||window.document}const e4=new WeakMap;function LCe(e){let t=e4.get(e);return t===void 0&&e4.set(e,t=$Ce(e)),t}function $Ce(e){let t=null;function n(i){if(i&&typeof i=="object")if(Array.isArray(i))if(typeof i[0]=="string")t||(t=[]),t.push(i);else for(let r=0;r<i.length;r++)n(i[r]);else for(let r in i)n(i[r])}return n(e),t}function ac(e,t,n,i){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let r=t[0],a;if(typeof r!="string")throw new RangeError("Invalid array passed to renderSpec");if(i&&(a=LCe(i))&&a.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=r.indexOf(" ");o>0&&(n=r.slice(0,o),r=r.slice(o+1));let s,u=n?e.createElementNS(n,r):e.createElement(r),c=t[1],f=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){f=2;for(let h in c)if(c[h]!=null){let g=h.indexOf(" ");g>0?u.setAttributeNS(h.slice(0,g),h.slice(g+1),c[h]):h=="style"&&u.style?u.style.cssText=c[h]:u.setAttribute(h,c[h])}}for(let h=f;h<t.length;h++){let g=t[h];if(g===0){if(h<t.length-1||h>f)throw new RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}else{let{dom:p,contentDOM:y}=ac(e,g,n,i);if(u.appendChild(p),y){if(s)throw new RangeError("Multiple content holes");s=y}}}return{dom:u,contentDOM:s}}const t4=65535,n4=Math.pow(2,16);function HCe(e,t){return e+t*n4}function i4(e){return e&t4}function RCe(e){return(e-(e&t4))/n4}const r4=1,a4=2,oc=4,o4=8;class ip{constructor(t,n,i){this.pos=t,this.delInfo=n,this.recover=i}get deleted(){return(this.delInfo&o4)>0}get deletedBefore(){return(this.delInfo&(r4|oc))>0}get deletedAfter(){return(this.delInfo&(a4|oc))>0}get deletedAcross(){return(this.delInfo&oc)>0}}class On{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&On.empty)return On.empty}recover(t){let n=0,i=i4(t);if(!this.inverted)for(let r=0;r<i;r++)n+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[i*3]+n+RCe(t)}mapResult(t,n=1){return this._map(t,n,!1)}map(t,n=1){return this._map(t,n,!0)}_map(t,n,i){let r=0,a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let u=this.ranges[s]-(this.inverted?r:0);if(u>t)break;let c=this.ranges[s+a],f=this.ranges[s+o],h=u+c;if(t<=h){let g=c?t==u?-1:t==h?1:n:n,p=u+r+(g<0?0:f);if(i)return p;let y=t==(n<0?u:h)?null:HCe(s/3,t-u),v=t==u?a4:t==h?r4:oc;return(n<0?t!=u:t!=h)&&(v|=o4),new ip(p,v,y)}r+=f-c}return i?t+r:new ip(t+r,0,null)}touches(t,n){let i=0,r=i4(n),a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let u=this.ranges[s]-(this.inverted?i:0);if(u>t)break;let c=this.ranges[s+a],f=u+c;if(t<=f&&s==r*3)return!0;i+=this.ranges[s+o]-c}return!1}forEach(t){let n=this.inverted?2:1,i=this.inverted?1:2;for(let r=0,a=0;r<this.ranges.length;r+=3){let o=this.ranges[r],s=o-(this.inverted?a:0),u=o+(this.inverted?0:a),c=this.ranges[r+n],f=this.ranges[r+i];t(s,s+c,u,u+f),a+=f-c}}invert(){return new On(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?On.empty:new On(t<0?[0,-t,0]:[0,0,t])}}On.empty=new On([]);class Pl{constructor(t,n,i=0,r=t?t.length:0){this.mirror=n,this.from=i,this.to=r,this._maps=t||[],this.ownData=!(t||n)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new Pl(this._maps,this.mirror,t,n)}appendMap(t,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(t){for(let n=0,i=this._maps.length;n<t._maps.length;n++){let r=t.getMirror(n);this.appendMap(t._maps[n],r!=null&&r<n?i+r:void 0)}}getMirror(t){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==t)return this.mirror[n+(n%2?-1:1)]}}setMirror(t,n){this.mirror||(this.mirror=[]),this.mirror.push(t,n)}appendMappingInverted(t){for(let n=t.maps.length-1,i=this._maps.length+t._maps.length;n>=0;n--){let r=t.getMirror(n);this.appendMap(t._maps[n].invert(),r!=null&&r>n?i-r-1:void 0)}}invert(){let t=new Pl;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let i=this.from;i<this.to;i++)t=this._maps[i].map(t,n);return t}mapResult(t,n=1){return this._map(t,n,!1)}_map(t,n,i){let r=0;for(let a=this.from;a<this.to;a++){let o=this._maps[a],s=o.mapResult(t,n);if(s.recover!=null){let u=this.getMirror(a);if(u!=null&&u>a&&u<this.to){a=u,t=this._maps[u].recover(s.recover);continue}}r|=s.delInfo,t=s.pos}return i?t:new ip(t,r,null)}}const rp=Object.create(null);class Xt{getMap(){return On.empty}merge(t){return null}static fromJSON(t,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let i=rp[n.stepType];if(!i)throw new RangeError(`No step type ${n.stepType} defined`);return i.fromJSON(t,n)}static jsonID(t,n){if(t in rp)throw new RangeError("Duplicate use of step JSON ID "+t);return rp[t]=n,n.prototype.jsonID=t,n}}class kt{constructor(t,n){this.doc=t,this.failed=n}static ok(t){return new kt(t,null)}static fail(t){return new kt(null,t)}static fromReplace(t,n,i,r){try{return kt.ok(t.replace(n,i,r))}catch(a){if(a instanceof Zd)return kt.fail(a.message);throw a}}}function ap(e,t,n){let i=[];for(let r=0;r<e.childCount;r++){let a=e.child(r);a.content.size&&(a=a.copy(ap(a.content,t,a))),a.isInline&&(a=t(a,n,r)),i.push(a)}return te.fromArray(i)}class Br extends Xt{constructor(t,n,i){super(),this.from=t,this.to=n,this.mark=i}apply(t){let n=t.slice(this.from,this.to),i=t.resolve(this.from),r=i.node(i.sharedDepth(this.to)),a=new le(ap(n.content,(o,s)=>!o.isAtom||!s.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),r),n.openStart,n.openEnd);return kt.fromReplace(t,this.from,this.to,a)}invert(){return new Ci(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new Br(n.pos,i.pos,this.mark)}merge(t){return t instanceof Br&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Br(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Br(n.from,n.to,t.markFromJSON(n.mark))}}Xt.jsonID("addMark",Br);class Ci extends Xt{constructor(t,n,i){super(),this.from=t,this.to=n,this.mark=i}apply(t){let n=t.slice(this.from,this.to),i=new le(ap(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),t),n.openStart,n.openEnd);return kt.fromReplace(t,this.from,this.to,i)}invert(){return new Br(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new Ci(n.pos,i.pos,this.mark)}merge(t){return t instanceof Ci&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Ci(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Ci(n.from,n.to,t.markFromJSON(n.mark))}}Xt.jsonID("removeMark",Ci);class Vr extends Xt{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return kt.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return kt.fromReplace(t,this.pos,this.pos+1,new le(te.from(i),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let i=this.mark.addToSet(n.marks);if(i.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(i))return new Vr(this.pos,n.marks[r]);return new Vr(this.pos,this.mark)}}return new Xa(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Vr(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Vr(n.pos,t.markFromJSON(n.mark))}}Xt.jsonID("addNodeMark",Vr);class Xa extends Xt{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return kt.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return kt.fromReplace(t,this.pos,this.pos+1,new le(te.from(i),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Vr(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Xa(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Xa(n.pos,t.markFromJSON(n.mark))}}Xt.jsonID("removeNodeMark",Xa);class Dt extends Xt{constructor(t,n,i,r=!1){super(),this.from=t,this.to=n,this.slice=i,this.structure=r}apply(t){return this.structure&&op(t,this.from,this.to)?kt.fail("Structure replace would overwrite content"):kt.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new On([this.from,this.to-this.from,this.slice.size])}invert(t){return new Dt(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deletedAcross&&i.deletedAcross?null:new Dt(n.pos,Math.max(n.pos,i.pos),this.slice,this.structure)}merge(t){if(!(t instanceof Dt)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?le.empty:new le(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new Dt(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?le.empty:new le(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new Dt(t.from,this.to,n,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Dt(n.from,n.to,le.fromJSON(t,n.slice),!!n.structure)}}Xt.jsonID("replace",Dt);class Nt extends Xt{constructor(t,n,i,r,a,o,s=!1){super(),this.from=t,this.to=n,this.gapFrom=i,this.gapTo=r,this.slice=a,this.insert=o,this.structure=s}apply(t){if(this.structure&&(op(t,this.from,this.gapFrom)||op(t,this.gapTo,this.to)))return kt.fail("Structure gap-replace would overwrite content");let n=t.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return kt.fail("Gap is not a flat range");let i=this.slice.insertAt(this.insert,n.content);return i?kt.fromReplace(t,this.from,this.to,i):kt.fail("Content does not fit in gap")}getMap(){return new On([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new Nt(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1),r=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?i.pos:t.map(this.gapTo,1);return n.deletedAcross&&i.deletedAcross||r<n.pos||a>i.pos?null:new Nt(n.pos,i.pos,r,a,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Nt(n.from,n.to,n.gapFrom,n.gapTo,le.fromJSON(t,n.slice),n.insert,!!n.structure)}}Xt.jsonID("replaceAround",Nt);function op(e,t,n){let i=e.resolve(t),r=n-t,a=i.depth;for(;r>0&&a>0&&i.indexAfter(a)==i.node(a).childCount;)a--,r--;if(r>0){let o=i.node(a).maybeChild(i.indexAfter(a));for(;r>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,r--}}return!1}function BCe(e,t,n,i){let r=[],a=[],o,s;e.doc.nodesBetween(t,n,(u,c,f)=>{if(!u.isInline)return;let h=u.marks;if(!i.isInSet(h)&&f.type.allowsMarkType(i.type)){let g=Math.max(c,t),p=Math.min(c+u.nodeSize,n),y=i.addToSet(h);for(let v=0;v<h.length;v++)h[v].isInSet(y)||(o&&o.to==g&&o.mark.eq(h[v])?o.to=p:r.push(o=new Ci(g,p,h[v])));s&&s.to==g?s.to=p:a.push(s=new Br(g,p,i))}}),r.forEach(u=>e.step(u)),a.forEach(u=>e.step(u))}function VCe(e,t,n,i){let r=[],a=0;e.doc.nodesBetween(t,n,(o,s)=>{if(!o.isInline)return;a++;let u=null;if(i instanceof ic){let c=o.marks,f;for(;f=i.isInSet(c);)(u||(u=[])).push(f),c=f.removeFromSet(c)}else i?i.isInSet(o.marks)&&(u=[i]):u=o.marks;if(u&&u.length){let c=Math.min(s+o.nodeSize,n);for(let f=0;f<u.length;f++){let h=u[f],g;for(let p=0;p<r.length;p++){let y=r[p];y.step==a-1&&h.eq(r[p].style)&&(g=y)}g?(g.to=c,g.step=a):r.push({style:h,from:Math.max(s,t),to:c,step:a})}}}),r.forEach(o=>e.step(new Ci(o.from,o.to,o.style)))}function sp(e,t,n,i=n.contentMatch,r=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let u=0;u<a.childCount;u++){let c=a.child(u),f=s+c.nodeSize,h=i.matchType(c.type);if(!h)o.push(new Dt(s,f,le.empty));else{i=h;for(let g=0;g<c.marks.length;g++)n.allowsMarkType(c.marks[g].type)||e.step(new Ci(s,f,c.marks[g]));if(r&&c.isText&&n.whitespace!="pre"){let g,p=/\r?\n|\r/g,y;for(;g=p.exec(c.text);)y||(y=new le(te.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),o.push(new Dt(s+g.index,s+g.index+g[0].length,y))}}s=f}if(!i.validEnd){let u=i.fillBefore(te.empty,!0);e.replace(s,s,new le(u,0,0))}for(let u=o.length-1;u>=0;u--)e.step(o[u])}function FCe(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Ko(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let i=e.depth;;--i){let r=e.$from.node(i),a=e.$from.index(i),o=e.$to.indexAfter(i);if(i<e.depth&&r.canReplace(a,o,n))return i;if(i==0||r.type.spec.isolating||!FCe(r,a,o))break}return null}function UCe(e,t,n){let{$from:i,$to:r,depth:a}=t,o=i.before(a+1),s=r.after(a+1),u=o,c=s,f=te.empty,h=0;for(let y=a,v=!1;y>n;y--)v||i.index(y)>0?(v=!0,f=te.from(i.node(y).copy(f)),h++):u--;let g=te.empty,p=0;for(let y=a,v=!1;y>n;y--)v||r.after(y+1)<r.end(y)?(v=!0,g=te.from(r.node(y).copy(g)),p++):c++;e.step(new Nt(u,c,o,s,new le(f.append(g),h,p),f.size-h,!0))}function lp(e,t,n=null,i=e){let r=YCe(e,t),a=r&&XCe(i,t);return a?r.map(s4).concat({type:t,attrs:n}).concat(a.map(s4)):null}function s4(e){return{type:e,attrs:null}}function YCe(e,t){let{parent:n,startIndex:i,endIndex:r}=e,a=n.contentMatchAt(i).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(i,r,o)?a:null}function XCe(e,t){let{parent:n,startIndex:i,endIndex:r}=e,a=n.child(i),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let u=(o.length?o[o.length-1]:t).contentMatch;for(let c=i;u&&c<r;c++)u=u.matchType(n.child(c).type);return!u||!u.validEnd?null:o}function qCe(e,t,n){let i=te.empty;for(let o=n.length-1;o>=0;o--){if(i.size){let s=n[o].type.contentMatch.matchFragment(i);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=te.from(n[o].type.create(n[o].attrs,i))}let r=t.start,a=t.end;e.step(new Nt(r,a,r,a,new le(i,0,0),n.length,!0))}function GCe(e,t,n,i,r){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,n,(o,s)=>{let u=typeof r=="function"?r(o):r;if(o.isTextblock&&!o.hasMarkup(i,u)&&KCe(e.doc,e.mapping.slice(a).map(s),i)){let c=null;if(i.schema.linebreakReplacement){let p=i.whitespace=="pre",y=!!i.contentMatch.matchType(i.schema.linebreakReplacement);p&&!y?c=!1:!p&&y&&(c=!0)}c===!1&&u4(e,o,s,a),sp(e,e.mapping.slice(a).map(s,1),i,void 0,c===null);let f=e.mapping.slice(a),h=f.map(s,1),g=f.map(s+o.nodeSize,1);return e.step(new Nt(h,g,h+1,g-1,new le(te.from(i.create(u,null,o.marks)),0,0),1,!0)),c===!0&&l4(e,o,s,a),!1}})}function l4(e,t,n,i){t.forEach((r,a)=>{if(r.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(r.text);){let u=e.mapping.slice(i).map(n+1+a+o.index);e.replaceWith(u,u+1,t.type.schema.linebreakReplacement.create())}}})}function u4(e,t,n,i){t.forEach((r,a)=>{if(r.type==r.type.schema.linebreakReplacement){let o=e.mapping.slice(i).map(n+1+a);e.replaceWith(o,o+1,t.type.schema.text(`
|
|
1300
|
-
`))}})}function KCe(e,t,n){let i=e.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,n)}function QCe(e,t,n,i,r){let a=e.doc.nodeAt(t);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let o=n.create(i,null,r||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new Nt(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new le(te.from(o),0,0),1,!0))}function Qo(e,t,n=1,i){let r=e.resolve(t),a=r.depth-n,o=i&&i[i.length-1]||r.parent;if(a<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!o.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let c=r.depth-1,f=n-2;c>a;c--,f--){let h=r.node(c),g=r.index(c);if(h.type.spec.isolating)return!1;let p=h.content.cutByIndex(g,h.childCount),y=i&&i[f+1];y&&(p=p.replaceChild(0,y.type.create(y.attrs)));let v=i&&i[f]||h;if(!h.canReplace(g+1,h.childCount)||!v.type.validContent(p))return!1}let s=r.indexAfter(a),u=i&&i[0];return r.node(a).canReplaceWith(s,s,u?u.type:r.node(a+1).type)}function JCe(e,t,n=1,i){let r=e.doc.resolve(t),a=te.empty,o=te.empty;for(let s=r.depth,u=r.depth-n,c=n-1;s>u;s--,c--){a=te.from(r.node(s).copy(a));let f=i&&i[c];o=te.from(f?f.type.create(f.attrs,o):r.node(s).copy(o))}e.step(new Dt(t,t,new le(a.append(o),n,n),!0))}function Fr(e,t){let n=e.resolve(t),i=n.index();return d4(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function ZCe(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:i}=e.type.schema;for(let r=0;r<t.childCount;r++){let a=t.child(r),o=a.type==i?e.type.schema.nodes.text:a.type;if(n=n.matchType(o),!n||!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function d4(e,t){return!!(e&&t&&!e.isLeaf&&ZCe(e,t))}function sc(e,t,n=-1){let i=e.resolve(t);for(let r=i.depth;;r--){let a,o,s=i.index(r);if(r==i.depth?(a=i.nodeBefore,o=i.nodeAfter):n>0?(a=i.node(r+1),s++,o=i.node(r).maybeChild(s)):(a=i.node(r).maybeChild(s-1),o=i.node(r+1)),a&&!a.isTextblock&&d4(a,o)&&i.node(r).canReplace(s,s+1))return t;if(r==0)break;t=n<0?i.before(r):i.after(r)}}function exe(e,t,n){let i=null,{linebreakReplacement:r}=e.doc.type.schema,a=e.doc.resolve(t-n),o=a.node().type;if(r&&o.inlineContent){let f=o.whitespace=="pre",h=!!o.contentMatch.matchType(r);f&&!h?i=!1:!f&&h&&(i=!0)}let s=e.steps.length;if(i===!1){let f=e.doc.resolve(t+n);u4(e,f.node(),f.before(),s)}o.inlineContent&&sp(e,t+n-1,o,a.node().contentMatchAt(a.index()),i==null);let u=e.mapping.slice(s),c=u.map(t-n);if(e.step(new Dt(c,u.map(t+n,-1),le.empty,!0)),i===!0){let f=e.doc.resolve(c);l4(e,f.node(),f.before(),e.steps.length)}return e}function txe(e,t,n){let i=e.resolve(t);if(i.parent.canReplaceWith(i.index(),i.index(),n))return t;if(i.parentOffset==0)for(let r=i.depth-1;r>=0;r--){let a=i.index(r);if(i.node(r).canReplaceWith(a,a,n))return i.before(r+1);if(a>0)return null}if(i.parentOffset==i.parent.content.size)for(let r=i.depth-1;r>=0;r--){let a=i.indexAfter(r);if(i.node(r).canReplaceWith(a,a,n))return i.after(r+1);if(a<i.node(r).childCount)return null}return null}function c4(e,t,n){let i=e.resolve(t);if(!n.content.size)return t;let r=n.content;for(let a=0;a<n.openStart;a++)r=r.firstChild.content;for(let a=1;a<=(n.openStart==0&&n.size?2:1);a++)for(let o=i.depth;o>=0;o--){let s=o==i.depth?0:i.pos<=(i.start(o+1)+i.end(o+1))/2?-1:1,u=i.index(o)+(s>0?1:0),c=i.node(o),f=!1;if(a==1)f=c.canReplace(u,u,r);else{let h=c.contentMatchAt(u).findWrapping(r.firstChild.type);f=h&&c.canReplaceWith(u,u,h[0])}if(f)return s==0?i.pos:s<0?i.before(o+1):i.after(o+1)}return null}function lc(e,t,n=t,i=le.empty){if(t==n&&!i.size)return null;let r=e.resolve(t),a=e.resolve(n);return f4(r,a,i)?new Dt(t,n,i):new nxe(r,a,i).fit()}function f4(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class nxe{constructor(t,n,i){this.$from=t,this.$to=n,this.unplaced=i,this.frontier=[],this.placed=te.empty;for(let r=0;r<=t.depth;r++){let a=t.node(r);this.frontier.push({type:a.type,match:a.contentMatchAt(t.indexAfter(r))})}for(let r=t.depth;r>0;r--)this.placed=te.from(t.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,r=this.close(t<0?this.$to:i.doc.resolve(t));if(!r)return null;let a=this.placed,o=i.depth,s=r.depth;for(;o&&s&&a.childCount==1;)a=a.firstChild.content,o--,s--;let u=new le(a,o,s);return t>-1?new Nt(i.pos,t,this.$to.pos,this.$to.end(),u,n):u.size||i.pos!=this.$to.pos?new Dt(i.pos,r.pos,u):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,i=0,r=this.unplaced.openEnd;i<t;i++){let a=n.firstChild;if(n.childCount>1&&(r=0),a.type.spec.isolating&&r<=i){t=i;break}n=a.content}for(let n=1;n<=2;n++)for(let i=n==1?t:this.unplaced.openStart;i>=0;i--){let r,a=null;i?(a=up(this.unplaced.content,i-1).firstChild,r=a.content):r=this.unplaced.content;let o=r.firstChild;for(let s=this.depth;s>=0;s--){let{type:u,match:c}=this.frontier[s],f,h=null;if(n==1&&(o?c.matchType(o.type)||(h=c.fillBefore(te.from(o),!1)):a&&u.compatibleContent(a.type)))return{sliceDepth:i,frontierDepth:s,parent:a,inject:h};if(n==2&&o&&(f=c.findWrapping(o.type)))return{sliceDepth:i,frontierDepth:s,parent:a,wrap:f};if(a&&c.matchType(a.type))break}}}openMore(){let{content:t,openStart:n,openEnd:i}=this.unplaced,r=up(t,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new le(t,n+1,Math.max(i,r.size+n>=t.size-i?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:i}=this.unplaced,r=up(t,n);if(r.childCount<=1&&n>0){let a=t.size-n<=n+r.size;this.unplaced=new le(El(t,n-1,1),n-1,a?n-1:i)}else this.unplaced=new le(El(t,n,1),n,i)}placeNodes({sliceDepth:t,frontierDepth:n,parent:i,inject:r,wrap:a}){for(;this.depth>n;)this.closeFrontierNode();if(a)for(let v=0;v<a.length;v++)this.openFrontierNode(a[v]);let o=this.unplaced,s=i?i.content:o.content,u=o.openStart-t,c=0,f=[],{match:h,type:g}=this.frontier[n];if(r){for(let v=0;v<r.childCount;v++)f.push(r.child(v));h=h.matchFragment(r)}let p=s.size+t-(o.content.size-o.openEnd);for(;c<s.childCount;){let v=s.child(c),k=h.matchType(v.type);if(!k)break;c++,(c>1||u==0||v.content.size)&&(h=k,f.push(h4(v.mark(g.allowedMarks(v.marks)),c==1?u:0,c==s.childCount?p:-1)))}let y=c==s.childCount;y||(p=-1),this.placed=Al(this.placed,n,te.from(f)),this.frontier[n].match=h,y&&p<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let v=0,k=s;v<p;v++){let w=k.lastChild;this.frontier.push({type:w.type,match:w.contentMatchAt(w.childCount)}),k=w.content}this.unplaced=y?t==0?le.empty:new le(El(o.content,t-1,1),t-1,p<0?o.openEnd:t-1):new le(El(o.content,t,c),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t=this.frontier[this.depth],n;if(!t.type.isTextblock||!dp(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:i}=this.$to,r=this.$to.after(i);for(;i>1&&r==this.$to.end(--i);)++r;return r}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:i,type:r}=this.frontier[n],a=n<t.depth&&t.end(n+1)==t.pos+(t.depth-(n+1)),o=dp(t,n,r,i,a);if(o){for(let s=n-1;s>=0;s--){let{match:u,type:c}=this.frontier[s],f=dp(t,s,c,u,!0);if(!f||f.childCount)continue e}return{depth:n,fit:o,move:a?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Al(this.placed,n.depth,n.fit)),t=n.move;for(let i=n.depth+1;i<=t.depth;i++){let r=t.node(i),a=r.type.contentMatch.fillBefore(r.content,!0,t.index(i));this.openFrontierNode(r.type,r.attrs,a)}return t}openFrontierNode(t,n=null,i){let r=this.frontier[this.depth];r.match=r.match.matchType(t),this.placed=Al(this.placed,this.depth,te.from(t.create(n,i))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(te.empty,!0);n.childCount&&(this.placed=Al(this.placed,this.frontier.length,n))}}function El(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(El(e.firstChild.content,t-1,n)))}function Al(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Al(e.lastChild.content,t-1,n)))}function up(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function h4(e,t,n){if(t<=0)return e;let i=e.content;return t>1&&(i=i.replaceChild(0,h4(i.firstChild,t-1,i.childCount==1?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(te.empty,!0)))),e.copy(i)}function dp(e,t,n,i,r){let a=e.node(t),o=r?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=i.fillBefore(a.content,!0,o);return s&&!ixe(n,a.content,o)?s:null}function ixe(e,t,n){for(let i=n;i<t.childCount;i++)if(!e.allowsMarks(t.child(i).marks))return!0;return!1}function rxe(e){return e.spec.defining||e.spec.definingForContent}function axe(e,t,n,i){if(!i.size)return e.deleteRange(t,n);let r=e.doc.resolve(t),a=e.doc.resolve(n);if(f4(r,a,i))return e.step(new Dt(t,n,i));let o=p4(r,e.doc.resolve(n));o[o.length-1]==0&&o.pop();let s=-(r.depth+1);o.unshift(s);for(let g=r.depth,p=r.pos-1;g>0;g--,p--){let y=r.node(g).type.spec;if(y.defining||y.definingAsContext||y.isolating)break;o.indexOf(g)>-1?s=g:r.before(g)==p&&o.splice(1,0,-g)}let u=o.indexOf(s),c=[],f=i.openStart;for(let g=i.content,p=0;;p++){let y=g.firstChild;if(c.push(y),p==i.openStart)break;g=y.content}for(let g=f-1;g>=0;g--){let p=c[g],y=rxe(p.type);if(y&&!p.sameMarkup(r.node(Math.abs(s)-1)))f=g;else if(y||!p.type.isTextblock)break}for(let g=i.openStart;g>=0;g--){let p=(g+f+1)%(i.openStart+1),y=c[p];if(y)for(let v=0;v<o.length;v++){let k=o[(v+u)%o.length],w=!0;k<0&&(w=!1,k=-k);let M=r.node(k-1),x=r.index(k-1);if(M.canReplaceWith(x,x,y.type,y.marks))return e.replace(r.before(k),w?a.after(k):n,new le(m4(i.content,0,i.openStart,p),p,i.openEnd))}}let h=e.steps.length;for(let g=o.length-1;g>=0&&(e.replace(t,n,i),!(e.steps.length>h));g--){let p=o[g];p<0||(t=r.before(p),n=a.after(p))}}function m4(e,t,n,i,r){if(t<n){let a=e.firstChild;e=e.replaceChild(0,a.copy(m4(a.content,t+1,n,i,a)))}if(t>i){let a=r.contentMatchAt(0),o=a.fillBefore(e).append(e);e=o.append(a.matchFragment(o).fillBefore(te.empty,!0))}return e}function oxe(e,t,n,i){if(!i.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=txe(e.doc,t,i.type);r!=null&&(t=n=r)}e.replaceRange(t,n,new le(te.from(i),0,0))}function sxe(e,t,n){let i=e.doc.resolve(t),r=e.doc.resolve(n),a=p4(i,r);for(let o=0;o<a.length;o++){let s=a[o],u=o==a.length-1;if(u&&s==0||i.node(s).type.contentMatch.validEnd)return e.delete(i.start(s),r.end(s));if(s>0&&(u||i.node(s-1).canReplace(i.index(s-1),r.indexAfter(s-1))))return e.delete(i.before(s),r.after(s))}for(let o=1;o<=i.depth&&o<=r.depth;o++)if(t-i.start(o)==i.depth-o&&n>i.end(o)&&r.end(o)-n!=r.depth-o&&i.start(o-1)==r.start(o-1)&&i.node(o-1).canReplace(i.index(o-1),r.index(o-1)))return e.delete(i.before(o),n);e.delete(t,n)}function p4(e,t){let n=[],i=Math.min(e.depth,t.depth);for(let r=i;r>=0;r--){let a=e.start(r);if(a<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(a==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==a-1)&&n.push(r)}return n}class Jo extends Xt{constructor(t,n,i){super(),this.pos=t,this.attr=n,this.value=i}apply(t){let n=t.nodeAt(this.pos);if(!n)return kt.fail("No node at attribute step's position");let i=Object.create(null);for(let a in n.attrs)i[a]=n.attrs[a];i[this.attr]=this.value;let r=n.type.create(i,null,n.marks);return kt.fromReplace(t,this.pos,this.pos+1,new le(te.from(r),0,n.isLeaf?0:1))}getMap(){return On.empty}invert(t){return new Jo(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Jo(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Jo(n.pos,n.attr,n.value)}}Xt.jsonID("attr",Jo);class Dl extends Xt{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;let i=t.type.create(n,t.content,t.marks);return kt.ok(i)}getMap(){return On.empty}invert(t){return new Dl(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Dl(n.attr,n.value)}}Xt.jsonID("docAttr",Dl);let Zo=class extends Error{};Zo=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},Zo.prototype=Object.create(Error.prototype),Zo.prototype.constructor=Zo,Zo.prototype.name="TransformError";class g4{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Pl}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new Zo(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,i=le.empty){let r=lc(this.doc,t,n,i);return r&&this.step(r),this}replaceWith(t,n,i){return this.replace(t,n,new le(te.from(i),0,0))}delete(t,n){return this.replace(t,n,le.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,i){return axe(this,t,n,i),this}replaceRangeWith(t,n,i){return oxe(this,t,n,i),this}deleteRange(t,n){return sxe(this,t,n),this}lift(t,n){return UCe(this,t,n),this}join(t,n=1){return exe(this,t,n),this}wrap(t,n){return qCe(this,t,n),this}setBlockType(t,n=t,i,r=null){return GCe(this,t,n,i,r),this}setNodeMarkup(t,n,i=null,r){return QCe(this,t,n,i,r),this}setNodeAttribute(t,n,i){return this.step(new Jo(t,n,i)),this}setDocAttribute(t,n){return this.step(new Dl(t,n)),this}addNodeMark(t,n){return this.step(new Vr(t,n)),this}removeNodeMark(t,n){let i=this.doc.nodeAt(t);if(!i)throw new RangeError("No node at position "+t);if(n instanceof Ge)n.isInSet(i.marks)&&this.step(new Xa(t,n));else{let r=i.marks,a,o=[];for(;a=n.isInSet(r);)o.push(new Xa(t,a)),r=a.removeFromSet(r);for(let s=o.length-1;s>=0;s--)this.step(o[s])}return this}split(t,n=1,i){return JCe(this,t,n,i),this}addMark(t,n,i){return BCe(this,t,n,i),this}removeMark(t,n,i){return VCe(this,t,n,i),this}clearIncompatible(t,n,i){return sp(this,t,n,i),this}}const cp=Object.create(null);class Pe{constructor(t,n,i){this.$anchor=t,this.$head=n,this.ranges=i||[new lxe(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n<t.length;n++)if(t[n].$from.pos!=t[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,n=le.empty){let i=n.content.lastChild,r=null;for(let s=0;s<n.openEnd;s++)r=i,i=i.lastChild;let a=t.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:u,$to:c}=o[s],f=t.mapping.slice(a);t.replaceRange(f.map(u.pos),f.map(c.pos),s?le.empty:n),s==0&&w4(t,a,(i?i.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(t,n){let i=t.steps.length,r=this.ranges;for(let a=0;a<r.length;a++){let{$from:o,$to:s}=r[a],u=t.mapping.slice(i),c=u.map(o.pos),f=u.map(s.pos);a?t.deleteRange(c,f):(t.replaceRangeWith(c,f,n),w4(t,i,n.isInline?-1:1))}}static findFrom(t,n,i=!1){let r=t.parent.inlineContent?new Ce(t):es(t.node(0),t.parent,t.pos,t.index(),n,i);if(r)return r;for(let a=t.depth-1;a>=0;a--){let o=n<0?es(t.node(0),t.node(a),t.before(a+1),t.index(a),n,i):es(t.node(0),t.node(a),t.after(a+1),t.index(a)+1,n,i);if(o)return o}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new qn(t.node(0))}static atStart(t){return es(t,t,0,0,1)||new qn(t)}static atEnd(t){return es(t,t,t.content.size,t.childCount,-1)||new qn(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=cp[n.type];if(!i)throw new RangeError(`No selection type ${n.type} defined`);return i.fromJSON(t,n)}static jsonID(t,n){if(t in cp)throw new RangeError("Duplicate use of selection JSON ID "+t);return cp[t]=n,n.prototype.jsonID=t,n}getBookmark(){return Ce.between(this.$anchor,this.$head).getBookmark()}}Pe.prototype.visible=!0;class lxe{constructor(t,n){this.$from=t,this.$to=n}}let y4=!1;function b4(e){!y4&&!e.parent.inlineContent&&(y4=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Ce extends Pe{constructor(t,n=t){b4(t),b4(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let i=t.resolve(n.map(this.head));if(!i.parent.inlineContent)return Pe.near(i);let r=t.resolve(n.map(this.anchor));return new Ce(r.parent.inlineContent?r:i,i)}replace(t,n=le.empty){if(super.replace(t,n),n==le.empty){let i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}}eq(t){return t instanceof Ce&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new uc(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ce(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,i=n){let r=t.resolve(n);return new this(r,i==n?r:t.resolve(i))}static between(t,n,i){let r=t.pos-n.pos;if((!i||r)&&(i=r>=0?1:-1),!n.parent.inlineContent){let a=Pe.findFrom(n,i,!0)||Pe.findFrom(n,-i,!0);if(a)n=a.$head;else return Pe.near(n,i)}return t.parent.inlineContent||(r==0?t=n:(t=(Pe.findFrom(t,-i,!0)||Pe.findFrom(t,i,!0)).$anchor,t.pos<n.pos!=r<0&&(t=n))),new Ce(t,n)}}Pe.jsonID("text",Ce);class uc{constructor(t,n){this.anchor=t,this.head=n}map(t){return new uc(t.map(this.anchor),t.map(this.head))}resolve(t){return Ce.between(t.resolve(this.anchor),t.resolve(this.head))}}class be extends Pe{constructor(t){let n=t.nodeAfter,i=t.node(0).resolve(t.pos+n.nodeSize);super(t,i),this.node=n}map(t,n){let{deleted:i,pos:r}=n.mapResult(this.anchor),a=t.resolve(r);return i?Pe.near(a):new be(a)}content(){return new le(te.from(this.node),0,0)}eq(t){return t instanceof be&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new fp(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new be(t.resolve(n.anchor))}static create(t,n){return new be(t.resolve(n))}static isSelectable(t){return!t.isText&&t.type.spec.selectable!==!1}}be.prototype.visible=!1,Pe.jsonID("node",be);class fp{constructor(t){this.anchor=t}map(t){let{deleted:n,pos:i}=t.mapResult(this.anchor);return n?new uc(i,i):new fp(i)}resolve(t){let n=t.resolve(this.anchor),i=n.nodeAfter;return i&&be.isSelectable(i)?new be(n):Pe.near(n)}}class qn extends Pe{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,n=le.empty){if(n==le.empty){t.delete(0,t.doc.content.size);let i=Pe.atStart(t.doc);i.eq(t.selection)||t.setSelection(i)}else super.replace(t,n)}toJSON(){return{type:"all"}}static fromJSON(t){return new qn(t)}map(t){return new qn(t)}eq(t){return t instanceof qn}getBookmark(){return uxe}}Pe.jsonID("all",qn);const uxe={map(){return this},resolve(e){return new qn(e)}};function es(e,t,n,i,r,a=!1){if(t.inlineContent)return Ce.create(e,n);for(let o=i-(r>0?0:1);r>0?o<t.childCount:o>=0;o+=r){let s=t.child(o);if(s.isAtom){if(!a&&be.isSelectable(s))return be.create(e,n-(r<0?s.nodeSize:0))}else{let u=es(e,s,n+r,r<0?s.childCount:0,r,a);if(u)return u}n+=s.nodeSize*r}return null}function w4(e,t,n){let i=e.steps.length-1;if(i<t)return;let r=e.steps[i];if(!(r instanceof Dt||r instanceof Nt))return;let a=e.mapping.maps[i],o;a.forEach((s,u,c,f)=>{o==null&&(o=f)}),e.setSelection(Pe.near(e.doc.resolve(o),n))}const v4=1,dc=2,k4=4;class dxe extends g4{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(this.updated|v4)&~dc,this.storedMarks=null,this}get selectionSet(){return(this.updated&v4)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=dc,this}ensureMarks(t){return Ge.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&dc)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~dc,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let i=this.selection;return n&&(t=t.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||Ge.none))),i.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,i){let r=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(r.text(t),!0):this.deleteSelection();{if(i==null&&(i=n),i=i??n,!t)return this.deleteRange(n,i);let a=this.storedMarks;if(!a){let o=this.doc.resolve(n);a=i==n?o.marks():o.marksAcross(this.doc.resolve(i))}return this.replaceRangeWith(n,i,r.text(t,a)),this.selection.empty||this.setSelection(Pe.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=k4,this}get scrolledIntoView(){return(this.updated&k4)>0}}function M4(e,t){return!t||!e?e:e.bind(t)}class Nl{constructor(t,n,i){this.name=t,this.init=M4(n.init,i),this.apply=M4(n.apply,i)}}const cxe=[new Nl("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new Nl("selection",{init(e,t){return e.selection||Pe.atStart(t.doc)},apply(e){return e.selection}}),new Nl("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,i){return i.selection.$cursor?e.storedMarks:null}}),new Nl("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class hp{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=cxe.slice(),n&&n.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new Nl(i.key,i.spec.state,i))})}}class ts{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let i=0;i<this.config.plugins.length;i++)if(i!=n){let r=this.config.plugins[i];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let n=[t],i=this.applyInner(t),r=null;for(;;){let a=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let u=r?r[o].n:0,c=r?r[o].state:this,f=u<n.length&&s.spec.appendTransaction.call(s,u?n.slice(u):n,c,i);if(f&&i.filterTransaction(f,o)){if(f.setMeta("appendedTransaction",t),!r){r=[];for(let h=0;h<this.config.plugins.length;h++)r.push(h<o?{state:i,n:n.length}:{state:this,n:0})}n.push(f),i=i.applyInner(f),a=!0}r&&(r[o]={state:i,n:n.length})}}if(!a)return{state:i,transactions:n}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new ts(this.config),i=this.config.fields;for(let r=0;r<i.length;r++){let a=i[r];n[a.name]=a.apply(t,this[a.name],this,n)}return n}get tr(){return new dxe(this)}static create(t){let n=new hp(t.doc?t.doc.type.schema:t.schema,t.plugins),i=new ts(n);for(let r=0;r<n.fields.length;r++)i[n.fields[r].name]=n.fields[r].init(t,i);return i}reconfigure(t){let n=new hp(this.schema,t.plugins),i=n.fields,r=new ts(n);for(let a=0;a<i.length;a++){let o=i[a].name;r[o]=this.hasOwnProperty(o)?this[o]:i[a].init(t,r)}return r}toJSON(t){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(i=>i.toJSON())),t&&typeof t=="object")for(let i in t){if(i=="doc"||i=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=t[i],a=r.spec.state;a&&a.toJSON&&(n[i]=a.toJSON.call(r,this[r.key]))}return n}static fromJSON(t,n,i){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let r=new hp(t.schema,t.plugins),a=new ts(r);return r.fields.forEach(o=>{if(o.name=="doc")a.doc=Hr.fromJSON(t.schema,n.doc);else if(o.name=="selection")a.selection=Pe.fromJSON(a.doc,n.selection);else if(o.name=="storedMarks")n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(i)for(let s in i){let u=i[s],c=u.spec.state;if(u.key==o.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){a[o.name]=c.fromJSON.call(u,t,n[s],a);return}}a[o.name]=o.init(t,a)}}),a}}function C4(e,t,n){for(let i in e){let r=e[i];r instanceof Function?r=r.bind(t):i=="handleDOMEvents"&&(r=C4(r,t,{})),n[i]=r}return n}class ct{constructor(t){this.spec=t,this.props={},t.props&&C4(t.props,this,this.props),this.key=t.key?t.key.key:x4("plugin")}getState(t){return t[this.key]}}const mp=Object.create(null);function x4(e){return e in mp?e+"$"+ ++mp[e]:(mp[e]=0,e+"$")}class jt{constructor(t="key"){this.key=x4(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const Lt=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},ns=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let pp=null;const ar=function(e,t,n){let i=pp||(pp=document.createRange());return i.setEnd(e,n??e.nodeValue.length),i.setStart(e,t||0),i},fxe=function(){pp=null},qa=function(e,t,n,i){return n&&(S4(e,t,n,i,-1)||S4(e,t,n,i,1))},hxe=/^(img|br|input|textarea|hr)$/i;function S4(e,t,n,i,r){for(var a;;){if(e==n&&t==i)return!0;if(t==(r<0?0:Gn(e))){let o=e.parentNode;if(!o||o.nodeType!=1||jl(e)||hxe.test(e.nodeName)||e.contentEditable=="false")return!1;t=Lt(e)+(r<0?0:1),e=o}else if(e.nodeType==1){let o=e.childNodes[t+(r<0?-1:0)];if(o.nodeType==1&&o.contentEditable=="false")if(!((a=o.pmViewDesc)===null||a===void 0)&&a.ignoreForSelection)t+=r;else return!1;else e=o,t=r<0?Gn(e):0}else return!1}}function Gn(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function mxe(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=Gn(e)}else if(e.parentNode&&!jl(e))t=Lt(e),e=e.parentNode;else return null}}function pxe(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!jl(e))t=Lt(e)+1,e=e.parentNode;else return null}}function gxe(e,t,n){for(let i=t==0,r=t==Gn(e);i||r;){if(e==n)return!0;let a=Lt(e);if(e=e.parentNode,!e)return!1;i=i&&a==0,r=r&&a==Gn(e)}}function jl(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const cc=function(e){return e.focusNode&&qa(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function Ga(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function yxe(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function bxe(e,t,n){if(e.caretPositionFromPoint)try{let i=e.caretPositionFromPoint(t,n);if(i)return{node:i.offsetNode,offset:Math.min(Gn(i.offsetNode),i.offset)}}catch{}if(e.caretRangeFromPoint){let i=e.caretRangeFromPoint(t,n);if(i)return{node:i.startContainer,offset:Math.min(Gn(i.startContainer),i.startOffset)}}}const Bi=typeof navigator<"u"?navigator:null,_4=typeof document<"u"?document:null,Ur=Bi&&Bi.userAgent||"",gp=/Edge\/(\d+)/.exec(Ur),T4=/MSIE \d/.exec(Ur),yp=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ur),xn=!!(T4||yp||gp),Yr=T4?document.documentMode:yp?+yp[1]:gp?+gp[1]:0,Kn=!xn&&/gecko\/(\d+)/i.test(Ur);Kn&&+(/Firefox\/(\d+)/.exec(Ur)||[0,0])[1];const bp=!xn&&/Chrome\/(\d+)/.exec(Ur),qt=!!bp,P4=bp?+bp[1]:0,cn=!xn&&!!Bi&&/Apple Computer/.test(Bi.vendor),is=cn&&(/Mobile\/\w+/.test(Ur)||!!Bi&&Bi.maxTouchPoints>2),Qn=is||(Bi?/Mac/.test(Bi.platform):!1),wxe=Bi?/Win/.test(Bi.platform):!1,or=/Android \d/.test(Ur),Il=!!_4&&"webkitFontSmoothing"in _4.documentElement.style,vxe=Il?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function kxe(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function sr(e,t){return typeof e=="number"?e:e[t]}function Mxe(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,i=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*i}}function E4(e,t,n){let i=e.someProp("scrollThreshold")||0,r=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;){if(o.nodeType!=1){o=ns(o);continue}let s=o,u=s==a.body,c=u?kxe(a):Mxe(s),f=0,h=0;if(t.top<c.top+sr(i,"top")?h=-(c.top-t.top+sr(r,"top")):t.bottom>c.bottom-sr(i,"bottom")&&(h=t.bottom-t.top>c.bottom-c.top?t.top+sr(r,"top")-c.top:t.bottom-c.bottom+sr(r,"bottom")),t.left<c.left+sr(i,"left")?f=-(c.left-t.left+sr(r,"left")):t.right>c.right-sr(i,"right")&&(f=t.right-c.right+sr(r,"right")),f||h)if(u)a.defaultView.scrollBy(f,h);else{let p=s.scrollLeft,y=s.scrollTop;h&&(s.scrollTop+=h),f&&(s.scrollLeft+=f);let v=s.scrollLeft-p,k=s.scrollTop-y;t={left:t.left-v,top:t.top-k,right:t.right-v,bottom:t.bottom-k}}let g=u?"fixed":getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(g))break;o=g=="absolute"?o.offsetParent:ns(o)}}function Cxe(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),i,r;for(let a=(t.left+t.right)/2,o=n+1;o<Math.min(innerHeight,t.bottom);o+=5){let s=e.root.elementFromPoint(a,o);if(!s||s==e.dom||!e.dom.contains(s))continue;let u=s.getBoundingClientRect();if(u.top>=n-20){i=s,r=u.top;break}}return{refDOM:i,refTop:r,stack:A4(e.dom)}}function A4(e){let t=[],n=e.ownerDocument;for(let i=e;i&&(t.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),e!=n);i=ns(i));return t}function xxe({refDOM:e,refTop:t,stack:n}){let i=e?e.getBoundingClientRect().top:0;D4(n,i==0?0:i-t)}function D4(e,t){for(let n=0;n<e.length;n++){let{dom:i,top:r,left:a}=e[n];i.scrollTop!=r+t&&(i.scrollTop=r+t),i.scrollLeft!=a&&(i.scrollLeft=a)}}let rs=null;function Sxe(e){if(e.setActive)return e.setActive();if(rs)return e.focus(rs);let t=A4(e);e.focus(rs==null?{get preventScroll(){return rs={preventScroll:!0},!0}}:void 0),rs||(rs=!1,D4(t,0))}function N4(e,t){let n,i=2e8,r,a=0,o=t.top,s=t.top,u,c;for(let f=e.firstChild,h=0;f;f=f.nextSibling,h++){let g;if(f.nodeType==1)g=f.getClientRects();else if(f.nodeType==3)g=ar(f).getClientRects();else continue;for(let p=0;p<g.length;p++){let y=g[p];if(y.top<=o&&y.bottom>=s){o=Math.max(y.bottom,o),s=Math.min(y.top,s);let v=y.left>t.left?y.left-t.left:y.right<t.left?t.left-y.right:0;if(v<i){n=f,i=v,r=v&&n.nodeType==3?{left:y.right<t.left?y.right:y.left,top:t.top}:t,f.nodeType==1&&v&&(a=h+(t.left>=(y.left+y.right)/2?1:0));continue}}else y.top>t.top&&!u&&y.left<=t.left&&y.right>=t.left&&(u=f,c={left:Math.max(y.left,Math.min(y.right,t.left)),top:y.top});!n&&(t.left>=y.right&&t.top>=y.top||t.left>=y.left&&t.top>=y.bottom)&&(a=h+1)}}return!n&&u&&(n=u,r=c,i=0),n&&n.nodeType==3?_xe(n,r):!n||i&&n.nodeType==1?{node:e,offset:a}:N4(n,r)}function _xe(e,t){let n=e.nodeValue.length,i=document.createRange();for(let r=0;r<n;r++){i.setEnd(e,r+1),i.setStart(e,r);let a=Xr(i,1);if(a.top!=a.bottom&&wp(t,a))return{node:e,offset:r+(t.left>=(a.left+a.right)/2?1:0)}}return{node:e,offset:0}}function wp(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function Txe(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function Pxe(e,t,n){let{node:i,offset:r}=N4(t,n),a=-1;if(i.nodeType==1&&!i.firstChild){let o=i.getBoundingClientRect();a=o.left!=o.right&&n.left>(o.left+o.right)/2?1:-1}return e.docView.posFromDOM(i,r,a)}function Exe(e,t,n,i){let r=-1;for(let a=t,o=!1;a!=e.dom;){let s=e.docView.nearestDesc(a,!0),u;if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)&&((u=s.dom.getBoundingClientRect()).width||u.height)&&(s.node.isBlock&&s.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(s.dom.nodeName)&&(!o&&u.left>i.left||u.top>i.top?r=s.posBefore:(!o&&u.right<i.left||u.bottom<i.top)&&(r=s.posAfter),o=!0),!s.contentDOM&&r<0&&!s.node.isText))return(s.node.isBlock?i.top<(u.top+u.bottom)/2:i.left<(u.left+u.right)/2)?s.posBefore:s.posAfter;a=s.dom.parentNode}return r>-1?r:e.docView.posFromDOM(t,n,-1)}function j4(e,t,n){let i=e.childNodes.length;if(i&&n.top<n.bottom)for(let r=Math.max(0,Math.min(i-1,Math.floor(i*(t.top-n.top)/(n.bottom-n.top))-2)),a=r;;){let o=e.childNodes[a];if(o.nodeType==1){let s=o.getClientRects();for(let u=0;u<s.length;u++){let c=s[u];if(wp(t,c))return j4(o,t,c)}}if((a=(a+1)%i)==r)break}return e}function Axe(e,t){let n=e.dom.ownerDocument,i,r=0,a=bxe(n,t.left,t.top);a&&({node:i,offset:r}=a);let o=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),s;if(!o||!e.dom.contains(o.nodeType!=1?o.parentNode:o)){let c=e.dom.getBoundingClientRect();if(!wp(t,c)||(o=j4(e.dom,t,c),!o))return null}if(cn)for(let c=o;i&&c;c=ns(c))c.draggable&&(i=void 0);if(o=Txe(o,t),i){if(Kn&&i.nodeType==1&&(r=Math.min(r,i.childNodes.length),r<i.childNodes.length)){let f=i.childNodes[r],h;f.nodeName=="IMG"&&(h=f.getBoundingClientRect()).right<=t.left&&h.bottom>t.top&&r++}let c;Il&&r&&i.nodeType==1&&(c=i.childNodes[r-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=t.top&&r--,i==e.dom&&r==i.childNodes.length-1&&i.lastChild.nodeType==1&&t.top>i.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(r==0||i.nodeType!=1||i.childNodes[r-1].nodeName!="BR")&&(s=Exe(e,i,r,t))}s==null&&(s=Pxe(e,o,t));let u=e.docView.nearestDesc(o,!0);return{pos:s,inside:u?u.posAtStart-u.border:-1}}function I4(e){return e.top<e.bottom||e.left<e.right}function Xr(e,t){let n=e.getClientRects();if(n.length){let i=n[t<0?0:n.length-1];if(I4(i))return i}return Array.prototype.find.call(n,I4)||e.getBoundingClientRect()}const Dxe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function W4(e,t,n){let{node:i,offset:r,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=Il||Kn;if(i.nodeType==3)if(o&&(Dxe.test(i.nodeValue)||(n<0?!r:r==i.nodeValue.length))){let u=Xr(ar(i,r,r),n);if(Kn&&r&&/\s/.test(i.nodeValue[r-1])&&r<i.nodeValue.length){let c=Xr(ar(i,r-1,r-1),-1);if(c.top==u.top){let f=Xr(ar(i,r,r+1),-1);if(f.top!=u.top)return Wl(f,f.left<c.left)}}return u}else{let u=r,c=r,f=n<0?1:-1;return n<0&&!r?(c++,f=-1):n>=0&&r==i.nodeValue.length?(u--,f=1):n<0?u--:c++,Wl(Xr(ar(i,u,c),f),f<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&r&&(n<0||r==Gn(i))){let u=i.childNodes[r-1];if(u.nodeType==1)return vp(u.getBoundingClientRect(),!1)}if(a==null&&r<Gn(i)){let u=i.childNodes[r];if(u.nodeType==1)return vp(u.getBoundingClientRect(),!0)}return vp(i.getBoundingClientRect(),n>=0)}if(a==null&&r&&(n<0||r==Gn(i))){let u=i.childNodes[r-1],c=u.nodeType==3?ar(u,Gn(u)-(o?0:1)):u.nodeType==1&&(u.nodeName!="BR"||!u.nextSibling)?u:null;if(c)return Wl(Xr(c,1),!1)}if(a==null&&r<Gn(i)){let u=i.childNodes[r];for(;u.pmViewDesc&&u.pmViewDesc.ignoreForCoords;)u=u.nextSibling;let c=u?u.nodeType==3?ar(u,0,o?0:1):u.nodeType==1?u:null:null;if(c)return Wl(Xr(c,-1),!0)}return Wl(Xr(i.nodeType==3?ar(i):i,-n),n>=0)}function Wl(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function vp(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function O4(e,t,n){let i=e.state,r=e.root.activeElement;i!=t&&e.updateState(t),r!=e.dom&&e.focus();try{return n()}finally{i!=t&&e.updateState(i),r!=e.dom&&r&&r.focus()}}function Nxe(e,t,n){let i=t.selection,r=n=="up"?i.$from:i.$to;return O4(e,t,()=>{let{node:a}=e.docView.domFromPos(r.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(a,!0);if(!s)break;if(s.node.isBlock){a=s.contentDOM||s.dom;break}a=s.dom.parentNode}let o=W4(e,r.pos,1);for(let s=a.firstChild;s;s=s.nextSibling){let u;if(s.nodeType==1)u=s.getClientRects();else if(s.nodeType==3)u=ar(s,0,s.nodeValue.length).getClientRects();else continue;for(let c=0;c<u.length;c++){let f=u[c];if(f.bottom>f.top+1&&(n=="up"?o.top-f.top>(f.bottom-o.top)*2:f.bottom-o.bottom>(o.bottom-f.top)*2))return!1}}return!0})}const jxe=/[\u0590-\u08ac]/;function Ixe(e,t,n){let{$head:i}=t.selection;if(!i.parent.isTextblock)return!1;let r=i.parentOffset,a=!r,o=r==i.parent.content.size,s=e.domSelection();return s?!jxe.test(i.parent.textContent)||!s.modify?n=="left"||n=="backward"?a:o:O4(e,t,()=>{let{focusNode:u,focusOffset:c,anchorNode:f,anchorOffset:h}=e.domSelectionRange(),g=s.caretBidiLevel;s.modify("move",n,"character");let p=i.depth?e.docView.domAfterPos(i.before()):e.dom,{focusNode:y,focusOffset:v}=e.domSelectionRange(),k=y&&!p.contains(y.nodeType==1?y:y.parentNode)||u==y&&c==v;try{s.collapse(f,h),u&&(u!=f||c!=h)&&s.extend&&s.extend(u,c)}catch{}return g!=null&&(s.caretBidiLevel=g),k}):i.pos==i.start()||i.pos==i.end()}let z4=null,L4=null,$4=!1;function Wxe(e,t,n){return z4==t&&L4==n?$4:(z4=t,L4=n,$4=n=="up"||n=="down"?Nxe(e,t,n):Ixe(e,t,n))}const Jn=0,H4=1,Ka=2,Vi=3;class Ol{constructor(t,n,i,r){this.parent=t,this.children=n,this.dom=i,this.contentDOM=r,this.dirty=Jn,i.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,i){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;n<this.children.length;n++)t+=this.children[n].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let n=0,i=this.posAtStart;;n++){let r=this.children[n];if(r==t)return i;i+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,n,i){if(this.contentDOM&&this.contentDOM.contains(t.nodeType==1?t:t.parentNode))if(i<0){let a,o;if(t==this.contentDOM)a=t.childNodes[n-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;a=t.previousSibling}for(;a&&!((o=a.pmViewDesc)&&o.parent==this);)a=a.previousSibling;return a?this.posBeforeChild(o)+o.size:this.posAtStart}else{let a,o;if(t==this.contentDOM)a=t.childNodes[n];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;a=t.nextSibling}for(;a&&!((o=a.pmViewDesc)&&o.parent==this);)a=a.nextSibling;return a?this.posBeforeChild(o):this.posAtEnd}let r;if(t==this.dom&&this.contentDOM)r=n>Lt(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let a=t;;a=a.parentNode){if(a==this.dom){r=!1;break}if(a.previousSibling)break}if(r==null&&n==t.childNodes.length)for(let a=t;;a=a.parentNode){if(a==this.dom){r=!0;break}if(a.nextSibling)break}}return r??i>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let i=!0,r=t;r;r=r.parentNode){let a=this.getDesc(r),o;if(a&&(!n||a.node))if(i&&(o=a.nodeDOM)&&!(o.nodeType==1?o.contains(t.nodeType==1?t:t.parentNode):o==t))i=!1;else return a}}getDesc(t){let n=t.pmViewDesc;for(let i=n;i;i=i.parent)if(i==this)return n}posFromDOM(t,n,i){for(let r=t;r;r=r.parentNode){let a=this.getDesc(r);if(a)return a.localPosFromDOM(t,n,i)}return-1}descAt(t){for(let n=0,i=0;n<this.children.length;n++){let r=this.children[n],a=i+r.size;if(i==t&&a!=i){for(;!r.border&&r.children.length;)for(let o=0;o<r.children.length;o++){let s=r.children[o];if(s.size){r=s;break}}return r}if(t<a)return r.descAt(t-i-r.border);i=a}}domFromPos(t,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let i=0,r=0;for(let a=0;i<this.children.length;i++){let o=this.children[i],s=a+o.size;if(s>t||o instanceof V4){r=t-a;break}a=s}if(r)return this.children[i].domFromPos(r-this.children[i].border,n);for(let a;i&&!(a=this.children[i-1]).size&&a instanceof R4&&a.side>=0;i--);if(n<=0){let a,o=!0;for(;a=i?this.children[i-1]:null,!(!a||a.dom.parentNode==this.contentDOM);i--,o=!1);return a&&n&&o&&!a.border&&!a.domAtom?a.domFromPos(a.size,n):{node:this.contentDOM,offset:a?Lt(a.dom)+1:0}}else{let a,o=!0;for(;a=i<this.children.length?this.children[i]:null,!(!a||a.dom.parentNode==this.contentDOM);i++,o=!1);return a&&o&&!a.border&&!a.domAtom?a.domFromPos(0,n):{node:this.contentDOM,offset:a?Lt(a.dom):this.contentDOM.childNodes.length}}}parseRange(t,n,i=0){if(this.children.length==0)return{node:this.contentDOM,from:t,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,a=-1;for(let o=i,s=0;;s++){let u=this.children[s],c=o+u.size;if(r==-1&&t<=c){let f=o+u.border;if(t>=f&&n<=c-u.border&&u.node&&u.contentDOM&&this.contentDOM.contains(u.contentDOM))return u.parseRange(t,n,f);t=o;for(let h=s;h>0;h--){let g=this.children[h-1];if(g.size&&g.dom.parentNode==this.contentDOM&&!g.emptyChildAt(1)){r=Lt(g.dom)+1;break}t-=g.size}r==-1&&(r=0)}if(r>-1&&(c>n||s==this.children.length-1)){n=c;for(let f=s+1;f<this.children.length;f++){let h=this.children[f];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){a=Lt(h.dom);break}n+=h.size}a==-1&&(a=this.contentDOM.childNodes.length);break}o=c}return{node:this.contentDOM,from:t,to:n,fromOffset:r,toOffset:a}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[t<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(t)}domAfterPos(t){let{node:n,offset:i}=this.domFromPos(t,0);if(n.nodeType!=1||i==n.childNodes.length)throw new RangeError("No node after pos "+t);return n.childNodes[i]}setSelection(t,n,i,r=!1){let a=Math.min(t,n),o=Math.max(t,n);for(let p=0,y=0;p<this.children.length;p++){let v=this.children[p],k=y+v.size;if(a>y&&o<k)return v.setSelection(t-y-v.border,n-y-v.border,i,r);y=k}let s=this.domFromPos(t,t?-1:1),u=n==t?s:this.domFromPos(n,n?-1:1),c=i.root.getSelection(),f=i.domSelectionRange(),h=!1;if((Kn||cn)&&t==n){let{node:p,offset:y}=s;if(p.nodeType==3){if(h=!!(y&&p.nodeValue[y-1]==`
|
|
1301
|
-
`),h&&y==p.nodeValue.length)for(let v=p,k;v;v=v.parentNode){if(k=v.nextSibling){k.nodeName=="BR"&&(s=u={node:k.parentNode,offset:Lt(k)+1});break}let w=v.pmViewDesc;if(w&&w.node&&w.node.isBlock)break}}else{let v=p.childNodes[y-1];h=v&&(v.nodeName=="BR"||v.contentEditable=="false")}}if(Kn&&f.focusNode&&f.focusNode!=u.node&&f.focusNode.nodeType==1){let p=f.focusNode.childNodes[f.focusOffset];p&&p.contentEditable=="false"&&(r=!0)}if(!(r||h&&cn)&&qa(s.node,s.offset,f.anchorNode,f.anchorOffset)&&qa(u.node,u.offset,f.focusNode,f.focusOffset))return;let g=!1;if((c.extend||t==n)&&!(h&&Kn)){c.collapse(s.node,s.offset);try{t!=n&&c.extend(u.node,u.offset),g=!0}catch{}}if(!g){if(t>n){let y=s;s=u,u=y}let p=document.createRange();p.setEnd(u.node,u.offset),p.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(p)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let i=0,r=0;r<this.children.length;r++){let a=this.children[r],o=i+a.size;if(i==o?t<=o&&n>=i:t<o&&n>i){let s=i+a.border,u=o-a.border;if(t>=s&&n<=u){this.dirty=t==i||n==o?Ka:H4,t==s&&n==u&&(a.contentLost||a.dom.parentNode!=this.contentDOM)?a.dirty=Vi:a.markDirty(t-s,n-s);return}else a.dirty=a.dom==a.contentDOM&&a.dom.parentNode==this.contentDOM&&!a.children.length?Ka:Vi}i=o}this.dirty=Ka}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let i=t==1?Ka:H4;n.dirty<i&&(n.dirty=i)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(t){return!1}}class R4 extends Ol{constructor(t,n,i,r){let a,o=n.type.toDOM;if(typeof o=="function"&&(o=o(i,()=>{if(!a)return r;if(a.parent)return a.parent.posBeforeChild(a)})),!n.type.spec.raw){if(o.nodeType!=1){let s=document.createElement("span");s.appendChild(o),o=s}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(t,[],o,null),this.widget=n,this.widget=n,a=this}matchesWidget(t){return this.dirty==Jn&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class Oxe extends Ol{constructor(t,n,i,r){super(t,[],n,null),this.textDOM=i,this.text=r}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class Qa extends Ol{constructor(t,n,i,r,a){super(t,[],i,r),this.mark=n,this.spec=a}static create(t,n,i,r){let a=r.nodeViews[n.type.name],o=a&&a(n,r,i);return(!o||!o.dom)&&(o=Ya.renderSpec(document,n.type.spec.toDOM(n,i),null,n.attrs)),new Qa(t,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&Vi||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=Vi&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=Jn){let i=this.parent;for(;!i.node;)i=i.parent;i.dirty<this.dirty&&(i.dirty=this.dirty),this.dirty=Jn}}slice(t,n,i){let r=Qa.create(this.parent,this.mark,!0,i),a=this.children,o=this.size;n<o&&(a=Mp(a,n,o,i)),t>0&&(a=Mp(a,0,t,i));for(let s=0;s<a.length;s++)a[s].parent=r;return r.children=a,r}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class qr extends Ol{constructor(t,n,i,r,a,o,s,u,c){super(t,[],a,o),this.node=n,this.outerDeco=i,this.innerDeco=r,this.nodeDOM=s}static create(t,n,i,r,a,o){let s=a.nodeViews[n.type.name],u,c=s&&s(n,a,()=>{if(!u)return o;if(u.parent)return u.parent.posBeforeChild(u)},i,r),f=c&&c.dom,h=c&&c.contentDOM;if(n.isText){if(!f)f=document.createTextNode(n.text);else if(f.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else f||({dom:f,contentDOM:h}=Ya.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!h&&!n.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),n.type.spec.draggable&&(f.draggable=!0));let g=f;return f=Y4(f,i,n),c?u=new zxe(t,n,i,r,f,h||null,g,c,a,o+1):n.isText?new fc(t,n,i,r,f,g,a):new qr(t,n,i,r,f,h||null,g,a,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let i=this.children[n];if(this.dom.contains(i.dom.parentNode)){t.contentElement=i.dom.parentNode;break}}t.contentElement||(t.getContent=()=>te.empty)}return t}matchesNode(t,n,i){return this.dirty==Jn&&t.eq(this.node)&&hc(n,this.outerDeco)&&i.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let i=this.node.inlineContent,r=n,a=t.composing?this.localCompositionInfo(t,n):null,o=a&&a.pos>-1?a:null,s=a&&a.pos<0,u=new $xe(this,o&&o.node,t);Bxe(this.node,this.innerDeco,(c,f,h)=>{c.spec.marks?u.syncToMarks(c.spec.marks,i,t):c.type.side>=0&&!h&&u.syncToMarks(f==this.node.childCount?Ge.none:this.node.child(f).marks,i,t),u.placeWidget(c,t,r)},(c,f,h,g)=>{u.syncToMarks(c.marks,i,t);let p;u.findNodeMatch(c,f,h,g)||s&&t.state.selection.from>r&&t.state.selection.to<r+c.nodeSize&&(p=u.findIndexWithChild(a.node))>-1&&u.updateNodeAt(c,f,h,p,t)||u.updateNextNode(c,f,h,t,g,r)||u.addNode(c,f,h,t,r),r+=c.nodeSize}),u.syncToMarks([],i,t),this.node.isTextblock&&u.addTextblockHacks(),u.destroyRest(),(u.changed||this.dirty==Ka)&&(o&&this.protectLocalComposition(t,o),F4(this.contentDOM,this.children,t),is&&Vxe(this.dom))}localCompositionInfo(t,n){let{from:i,to:r}=t.state.selection;if(!(t.state.selection instanceof Ce)||i<n||r>n+this.node.content.size)return null;let a=t.input.compositionNode;if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let o=a.nodeValue,s=Fxe(this.node.content,o,i-n,r-n);return s<0?null:{node:a,pos:s,text:o}}else return{node:a,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:i,text:r}){if(this.getDesc(n))return;let a=n;for(;a.parentNode!=this.contentDOM;a=a.parentNode){for(;a.previousSibling;)a.parentNode.removeChild(a.previousSibling);for(;a.nextSibling;)a.parentNode.removeChild(a.nextSibling);a.pmViewDesc&&(a.pmViewDesc=void 0)}let o=new Oxe(this,a,n,r);t.input.compositionNodes.push(o),this.children=Mp(this.children,i,i+r.length,t,o)}update(t,n,i,r){return this.dirty==Vi||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,i,r),!0)}updateInner(t,n,i,r){this.updateOuterDeco(n),this.node=t,this.innerDeco=i,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Jn}updateOuterDeco(t){if(hc(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,i=this.dom;this.dom=U4(this.dom,this.nodeDOM,kp(this.outerDeco,this.node,n),kp(t,this.node,n)),this.dom!=i&&(i.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function B4(e,t,n,i,r){Y4(i,t,e);let a=new qr(void 0,e,t,n,i,i,i,r,0);return a.contentDOM&&a.updateChildren(r,0),a}class fc extends qr{constructor(t,n,i,r,a,o,s){super(t,n,i,r,a,null,o,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,i,r){return this.dirty==Vi||this.dirty!=Jn&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Jn||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=t,this.dirty=Jn,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,i){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,i)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,i){let r=this.node.cut(t,n),a=document.createTextNode(r.text);return new fc(this.parent,r,this.outerDeco,this.innerDeco,a,a,i)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Vi)}get domAtom(){return!1}isText(t){return this.node.text==t}}class V4 extends Ol{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==Jn&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class zxe extends qr{constructor(t,n,i,r,a,o,s,u,c,f){super(t,n,i,r,a,o,s,c,f),this.spec=u}update(t,n,i,r){if(this.dirty==Vi)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let a=this.spec.update(t,n,i);return a&&this.updateInner(t,n,i,r),a}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,i,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,i,r){this.spec.setSelection?this.spec.setSelection(t,n,i.root):super.setSelection(t,n,i,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function F4(e,t,n){let i=e.firstChild,r=!1;for(let a=0;a<t.length;a++){let o=t[a],s=o.dom;if(s.parentNode==e){for(;s!=i;)i=X4(i),r=!0;i=i.nextSibling}else r=!0,e.insertBefore(s,i);if(o instanceof Qa){let u=i?i.previousSibling:e.lastChild;F4(o.contentDOM,o.children,n),i=u?u.nextSibling:e.firstChild}}for(;i;)i=X4(i),r=!0;r&&n.trackWrites==e&&(n.trackWrites=null)}const zl=function(e){e&&(this.nodeName=e)};zl.prototype=Object.create(null);const Ja=[new zl];function kp(e,t,n){if(e.length==0)return Ja;let i=n?Ja[0]:new zl,r=[i];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&r.push(i=new zl(o.nodeName));for(let s in o){let u=o[s];u!=null&&(n&&r.length==1&&r.push(i=new zl(t.isInline?"span":"div")),s=="class"?i.class=(i.class?i.class+" ":"")+u:s=="style"?i.style=(i.style?i.style+";":"")+u:s!="nodeName"&&(i[s]=u))}}}return r}function U4(e,t,n,i){if(n==Ja&&i==Ja)return t;let r=t;for(let a=0;a<i.length;a++){let o=i[a],s=n[a];if(a){let u;s&&s.nodeName==o.nodeName&&r!=e&&(u=r.parentNode)&&u.nodeName.toLowerCase()==o.nodeName||(u=document.createElement(o.nodeName),u.pmIsDeco=!0,u.appendChild(r),s=Ja[0]),r=u}Lxe(r,s||Ja[0],o)}return r}function Lxe(e,t,n){for(let i in t)i!="class"&&i!="style"&&i!="nodeName"&&!(i in n)&&e.removeAttribute(i);for(let i in n)i!="class"&&i!="style"&&i!="nodeName"&&n[i]!=t[i]&&e.setAttribute(i,n[i]);if(t.class!=n.class){let i=t.class?t.class.split(" ").filter(Boolean):[],r=n.class?n.class.split(" ").filter(Boolean):[];for(let a=0;a<i.length;a++)r.indexOf(i[a])==-1&&e.classList.remove(i[a]);for(let a=0;a<r.length;a++)i.indexOf(r[a])==-1&&e.classList.add(r[a]);e.classList.length==0&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let i=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=i.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}function Y4(e,t,n){return U4(e,e,Ja,kp(t,n,e.nodeType!=1))}function hc(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function X4(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class $xe{constructor(t,n,i){this.lock=n,this.view=i,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=Hxe(t.node.content,t)}destroyBetween(t,n){if(t!=n){for(let i=t;i<n;i++)this.top.children[i].destroy();this.top.children.splice(t,n-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,n,i){let r=0,a=this.stack.length>>1,o=Math.min(a,t.length);for(;r<o&&(r==a-1?this.top:this.stack[r+1<<1]).matchesMark(t[r])&&t[r].type.spec.spanning!==!1;)r++;for(;r<a;)this.destroyRest(),this.top.dirty=Jn,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<t.length;){this.stack.push(this.top,this.index+1);let s=-1;for(let u=this.index;u<Math.min(this.index+3,this.top.children.length);u++){let c=this.top.children[u];if(c.matchesMark(t[a])&&!this.isLocked(c.dom)){s=u;break}}if(s>-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let u=Qa.create(this.top,t[a],n,i);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,a++}}findNodeMatch(t,n,i,r){let a=-1,o;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(t,n,i))a=this.top.children.indexOf(o,this.index);else for(let s=this.index,u=Math.min(this.top.children.length,s+5);s<u;s++){let c=this.top.children[s];if(c.matchesNode(t,n,i)&&!this.preMatch.matched.has(c)){a=s;break}}return a<0?!1:(this.destroyBetween(this.index,a),this.index++,!0)}updateNodeAt(t,n,i,r,a){let o=this.top.children[r];return o.dirty==Vi&&o.dom==o.contentDOM&&(o.dirty=Ka),o.update(t,n,i,a)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(t){for(;;){let n=t.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let i=t.pmViewDesc;if(i){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==i)return r}return-1}t=n}}updateNextNode(t,n,i,r,a,o){for(let s=this.index;s<this.top.children.length;s++){let u=this.top.children[s];if(u instanceof qr){let c=this.preMatch.matched.get(u);if(c!=null&&c!=a)return!1;let f=u.dom,h,g=this.isLocked(f)&&!(t.isText&&u.node&&u.node.isText&&u.nodeDOM.nodeValue==t.text&&u.dirty!=Vi&&hc(n,u.outerDeco));if(!g&&u.update(t,n,i,r))return this.destroyBetween(this.index,s),u.dom!=f&&(this.changed=!0),this.index++,!0;if(!g&&(h=this.recreateWrapper(u,t,n,i,r,o)))return this.destroyBetween(this.index,s),this.top.children[this.index]=h,h.contentDOM&&(h.dirty=Ka,h.updateChildren(r,o+1),h.dirty=Jn),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,n,i,r,a,o){if(t.dirty||n.isAtom||!t.children.length||!t.node.content.eq(n.content)||!hc(i,t.outerDeco)||!r.eq(t.innerDeco))return null;let s=qr.create(this.top,n,i,r,a,o);if(s.contentDOM){s.children=t.children,t.children=[];for(let u of s.children)u.parent=s}return t.destroy(),s}addNode(t,n,i,r,a){let o=qr.create(this.top,t,n,i,r,a);o.contentDOM&&o.updateChildren(r,a+1),this.top.children.splice(this.index++,0,o),this.changed=!0}placeWidget(t,n,i){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(t)&&(t==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let a=new R4(this.top,t,n,i);this.top.children.splice(this.index++,0,a),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],n=this.top;for(;t instanceof Qa;)n=t,t=n.children[n.children.length-1];(!t||!(t instanceof fc)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((cn||qt)&&t&&t.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(t,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(t))this.index++;else{let i=document.createElement(t);t=="IMG"&&(i.className="ProseMirror-separator",i.alt=""),t=="BR"&&(i.className="ProseMirror-trailingBreak");let r=new V4(this.top,[],i,null);n!=this.top?n.children.push(r):n.children.splice(this.index++,0,r),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||t.nodeType==1&&t.contains(this.lock.parentNode))}}function Hxe(e,t){let n=t,i=n.children.length,r=e.childCount,a=new Map,o=[];e:for(;r>0;){let s;for(;;)if(i){let c=n.children[i-1];if(c instanceof Qa)n=c,i=c.children.length;else{s=c,i--;break}}else{if(n==t)break e;i=n.parent.children.indexOf(n),n=n.parent}let u=s.node;if(u){if(u!=e.child(r-1))break;--r,a.set(s,r),o.push(s)}}return{index:r,matched:a,matches:o.reverse()}}function Rxe(e,t){return e.type.side-t.type.side}function Bxe(e,t,n,i){let r=t.locals(e),a=0;if(r.length==0){for(let c=0;c<e.childCount;c++){let f=e.child(c);i(f,r,t.forChild(a,f),c),a+=f.nodeSize}return}let o=0,s=[],u=null;for(let c=0;;){let f,h;for(;o<r.length&&r[o].to==a;){let k=r[o++];k.widget&&(f?(h||(h=[f])).push(k):f=k)}if(f)if(h){h.sort(Rxe);for(let k=0;k<h.length;k++)n(h[k],c,!!u)}else n(f,c,!!u);let g,p;if(u)p=-1,g=u,u=null;else if(c<e.childCount)p=c,g=e.child(c++);else break;for(let k=0;k<s.length;k++)s[k].to<=a&&s.splice(k--,1);for(;o<r.length&&r[o].from<=a&&r[o].to>a;)s.push(r[o++]);let y=a+g.nodeSize;if(g.isText){let k=y;o<r.length&&r[o].from<k&&(k=r[o].from);for(let w=0;w<s.length;w++)s[w].to<k&&(k=s[w].to);k<y&&(u=g.cut(k-a),g=g.cut(0,k-a),y=k,p=-1)}else for(;o<r.length&&r[o].to<y;)o++;let v=g.isInline&&!g.isLeaf?s.filter(k=>!k.inline):s.slice();i(g,v,t.forChild(a,g),p),a=y}}function Vxe(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function Fxe(e,t,n,i){for(let r=0,a=0;r<e.childCount&&a<=i;){let o=e.child(r++),s=a;if(a+=o.nodeSize,!o.isText)continue;let u=o.text;for(;r<e.childCount;){let c=e.child(r++);if(a+=c.nodeSize,!c.isText)break;u+=c.text}if(a>=n){if(a>=i&&u.slice(i-t.length-s,i-s)==t)return i-t.length;let c=s<i?u.lastIndexOf(t,i-s-1):-1;if(c>=0&&c+t.length+s>=n)return s+c;if(n==i&&u.length>=i+t.length-s&&u.slice(i-s,i-s+t.length)==t)return i}}return-1}function Mp(e,t,n,i,r){let a=[];for(let o=0,s=0;o<e.length;o++){let u=e[o],c=s,f=s+=u.size;c>=n||f<=t?a.push(u):(c<t&&a.push(u.slice(0,t-c,i)),r&&(a.push(r),r=void 0),f>n&&a.push(u.slice(n-c,u.size,i)))}return a}function Cp(e,t=null){let n=e.domSelectionRange(),i=e.state.doc;if(!n.focusNode)return null;let r=e.docView.nearestDesc(n.focusNode),a=r&&r.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=i.resolve(o),u,c;if(cc(n)){for(u=o;r&&!r.node;)r=r.parent;let h=r.node;if(r&&h.isAtom&&be.isSelectable(h)&&r.parent&&!(h.isInline&&gxe(n.focusNode,n.focusOffset,r.dom))){let g=r.posBefore;c=new be(o==g?s:i.resolve(g))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let h=o,g=o;for(let p=0;p<n.rangeCount;p++){let y=n.getRangeAt(p);h=Math.min(h,e.docView.posFromDOM(y.startContainer,y.startOffset,1)),g=Math.max(g,e.docView.posFromDOM(y.endContainer,y.endOffset,-1))}if(h<0)return null;[u,o]=g==e.state.selection.anchor?[g,h]:[h,g],s=i.resolve(o)}else u=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null}let f=i.resolve(u);if(!c){let h=t=="pointer"||e.state.selection.head<s.pos&&!a?1:-1;c=Sp(e,f,s,h)}return c}function q4(e){return e.editable?e.hasFocus():t6(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function lr(e,t=!1){let n=e.state.selection;if(J4(e,n),!!q4(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&qt){let i=e.domSelectionRange(),r=e.domObserver.currentSelection;if(i.anchorNode&&r.anchorNode&&qa(i.anchorNode,i.anchorOffset,r.anchorNode,r.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)Yxe(e);else{let{anchor:i,head:r}=n,a,o;G4&&!(n instanceof Ce)&&(n.$from.parent.inlineContent||(a=K4(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=K4(e,n.to))),e.docView.setSelection(i,r,e,t),G4&&(a&&Q4(a),o&&Q4(o)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Uxe(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const G4=cn||qt&&P4<63;function K4(e,t){let{node:n,offset:i}=e.docView.domFromPos(t,0),r=i<n.childNodes.length?n.childNodes[i]:null,a=i?n.childNodes[i-1]:null;if(cn&&r&&r.contentEditable=="false")return xp(r);if((!r||r.contentEditable=="false")&&(!a||a.contentEditable=="false")){if(r)return xp(r);if(a)return xp(a)}}function xp(e){return e.contentEditable="true",cn&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Q4(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Uxe(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),i=n.anchorNode,r=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(n.anchorNode!=i||n.anchorOffset!=r)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!q4(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function Yxe(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,i=n.nodeName=="IMG";i?t.collapse(n.parentNode,Lt(n)+1):t.collapse(n,0),!i&&!e.state.selection.visible&&xn&&Yr<=11&&(n.disabled=!0,n.disabled=!1)}function J4(e,t){if(t instanceof be){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Z4(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Z4(e)}function Z4(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Sp(e,t,n,i){return e.someProp("createSelectionBetween",r=>r(e,t,n))||Ce.between(t,n,i)}function e6(e){return e.editable&&!e.hasFocus()?!1:t6(e)}function t6(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function Xxe(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return qa(t.node,t.offset,n.anchorNode,n.anchorOffset)}function _p(e,t){let{$anchor:n,$head:i}=e.selection,r=t>0?n.max(i):n.min(i),a=r.parent.inlineContent?r.depth?e.doc.resolve(t>0?r.after():r.before()):null:r;return a&&Pe.findFrom(a,t)}function Gr(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function n6(e,t,n){let i=e.state.selection;if(i instanceof Ce)if(n.indexOf("s")>-1){let{$head:r}=i,a=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;let o=e.state.doc.resolve(r.pos+a.nodeSize*(t<0?-1:1));return Gr(e,new Ce(i.$anchor,o))}else if(i.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let r=_p(e.state,t);return r&&r instanceof be?Gr(e,r):!1}else if(!(Qn&&n.indexOf("m")>-1)){let r=i.$head,a=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter,o;if(!a||a.isText)return!1;let s=t<0?r.pos-a.nodeSize:r.pos;return a.isAtom||(o=e.docView.descAt(s))&&!o.contentDOM?be.isSelectable(a)?Gr(e,new be(t<0?e.state.doc.resolve(r.pos-a.nodeSize):r)):Il?Gr(e,new Ce(e.state.doc.resolve(t<0?s:s+a.nodeSize))):!1:!1}}else return!1;else{if(i instanceof be&&i.node.isInline)return Gr(e,new Ce(t>0?i.$to:i.$from));{let r=_p(e.state,t);return r?Gr(e,r):!1}}}function mc(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Ll(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function as(e,t){return t<0?qxe(e):Gxe(e)}function qxe(e){let t=e.domSelectionRange(),n=t.focusNode,i=t.focusOffset;if(!n)return;let r,a,o=!1;for(Kn&&n.nodeType==1&&i<mc(n)&&Ll(n.childNodes[i],-1)&&(o=!0);;)if(i>0){if(n.nodeType!=1)break;{let s=n.childNodes[i-1];if(Ll(s,-1))r=n,a=--i;else if(s.nodeType==3)n=s,i=n.nodeValue.length;else break}}else{if(i6(n))break;{let s=n.previousSibling;for(;s&&Ll(s,-1);)r=n.parentNode,a=Lt(s),s=s.previousSibling;if(s)n=s,i=mc(n);else{if(n=n.parentNode,n==e.dom)break;i=0}}}o?Tp(e,n,i):r&&Tp(e,r,a)}function Gxe(e){let t=e.domSelectionRange(),n=t.focusNode,i=t.focusOffset;if(!n)return;let r=mc(n),a,o;for(;;)if(i<r){if(n.nodeType!=1)break;let s=n.childNodes[i];if(Ll(s,1))a=n,o=++i;else break}else{if(i6(n))break;{let s=n.nextSibling;for(;s&&Ll(s,1);)a=s.parentNode,o=Lt(s)+1,s=s.nextSibling;if(s)n=s,i=0,r=mc(n);else{if(n=n.parentNode,n==e.dom)break;i=r=0}}}a&&Tp(e,a,o)}function i6(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Kxe(e,t){for(;e&&t==e.childNodes.length&&!jl(e);)t=Lt(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=0}}function Qxe(e,t){for(;e&&!t&&!jl(e);)t=Lt(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=e.childNodes.length}}function Tp(e,t,n){if(t.nodeType!=3){let a,o;(o=Kxe(t,n))?(t=o,n=0):(a=Qxe(t,n))&&(t=a,n=a.nodeValue.length)}let i=e.domSelection();if(!i)return;if(cc(i)){let a=document.createRange();a.setEnd(t,n),a.setStart(t,n),i.removeAllRanges(),i.addRange(a)}else i.extend&&i.extend(t,n);e.domObserver.setCurSelection();let{state:r}=e;setTimeout(()=>{e.state==r&&lr(e)},50)}function r6(e,t){let n=e.state.doc.resolve(t);if(!(qt||wxe)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let a=e.coordsAtPos(t-1),o=(a.top+a.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(a.left-r.left)>1)return a.left<r.left?"ltr":"rtl"}if(t<n.end()){let a=e.coordsAtPos(t+1),o=(a.top+a.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(a.left-r.left)>1)return a.left>r.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function a6(e,t,n){let i=e.state.selection;if(i instanceof Ce&&!i.empty||n.indexOf("s")>-1||Qn&&n.indexOf("m")>-1)return!1;let{$from:r,$to:a}=i;if(!r.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let o=_p(e.state,t);if(o&&o instanceof be)return Gr(e,o)}if(!r.parent.inlineContent){let o=t<0?r:a,s=i instanceof qn?Pe.near(o,t):Pe.findFrom(o,t);return s?Gr(e,s):!1}return!1}function o6(e,t){if(!(e.state.selection instanceof Ce))return!0;let{$head:n,$anchor:i,empty:r}=e.state.selection;if(!n.sameParent(i))return!0;if(!r)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let o=e.state.tr;return t<0?o.delete(n.pos-a.nodeSize,n.pos):o.delete(n.pos,n.pos+a.nodeSize),e.dispatch(o),!0}return!1}function s6(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Jxe(e){if(!cn||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let i=t.firstChild;s6(e,i,"true"),setTimeout(()=>s6(e,i,"false"),20)}return!1}function Zxe(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function eSe(e,t){let n=t.keyCode,i=Zxe(t);if(n==8||Qn&&n==72&&i=="c")return o6(e,-1)||as(e,-1);if(n==46&&!t.shiftKey||Qn&&n==68&&i=="c")return o6(e,1)||as(e,1);if(n==13||n==27)return!0;if(n==37||Qn&&n==66&&i=="c"){let r=n==37?r6(e,e.state.selection.from)=="ltr"?-1:1:-1;return n6(e,r,i)||as(e,r)}else if(n==39||Qn&&n==70&&i=="c"){let r=n==39?r6(e,e.state.selection.from)=="ltr"?1:-1:1;return n6(e,r,i)||as(e,r)}else{if(n==38||Qn&&n==80&&i=="c")return a6(e,-1,i)||as(e,-1);if(n==40||Qn&&n==78&&i=="c")return Jxe(e)||a6(e,1,i)||as(e,1);if(i==(Qn?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Pp(e,t){e.someProp("transformCopied",p=>{t=p(t,e)});let n=[],{content:i,openStart:r,openEnd:a}=t;for(;r>1&&a>1&&i.childCount==1&&i.firstChild.childCount==1;){r--,a--;let p=i.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),i=p.content}let o=e.someProp("clipboardSerializer")||Ya.fromSchema(e.state.schema),s=p6(),u=s.createElement("div");u.appendChild(o.serializeFragment(i,{document:s}));let c=u.firstChild,f,h=0;for(;c&&c.nodeType==1&&(f=h6[c.nodeName.toLowerCase()]);){for(let p=f.length-1;p>=0;p--){let y=s.createElement(f[p]);for(;u.firstChild;)y.appendChild(u.firstChild);u.appendChild(y),h++}c=u.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${r} ${a}${h?` -${h}`:""} ${JSON.stringify(n)}`);let g=e.someProp("clipboardTextSerializer",p=>p(t,e))||t.content.textBetween(0,t.content.size,`
|
|
1295
|
+
*/function Ri(e){return getComputedStyle(e)}function Cn(e,t){for(var n in t){var i=t[n];typeof i=="number"&&(i=i+"px"),e.style[n]=i}return e}function Hd(e){var t=document.createElement("div");return t.className=e,t}var d4=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function $r(e,t){if(!d4)throw new Error("No element matching method supported");return d4.call(e,t)}function Yo(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function c4(e,t){return Array.prototype.filter.call(e.children,function(n){return $r(n,t)})}var vt={main:"ps",rtl:"ps__rtl",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},f4={x:null,y:null};function h4(e,t){var n=e.element.classList,i=vt.state.scrolling(t);n.contains(i)?clearTimeout(f4[t]):n.add(i)}function m4(e,t){f4[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(vt.state.scrolling(t))},e.settings.scrollingThreshold)}function i8e(e,t){h4(e,t),m4(e,t)}var wl=function(t){this.element=t,this.handlers={}},p4={isEmpty:{configurable:!0}};wl.prototype.bind=function(t,n){typeof this.handlers[t]>"u"&&(this.handlers[t]=[]),this.handlers[t].push(n),this.element.addEventListener(t,n,!1)},wl.prototype.unbind=function(t,n){var i=this;this.handlers[t]=this.handlers[t].filter(function(r){return n&&r!==n?!0:(i.element.removeEventListener(t,r,!1),!1)})},wl.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},p4.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return e.handlers[t].length===0})},Object.defineProperties(wl.prototype,p4);var Xo=function(){this.eventElements=[]};Xo.prototype.eventElement=function(t){var n=this.eventElements.filter(function(i){return i.element===t})[0];return n||(n=new wl(t),this.eventElements.push(n)),n},Xo.prototype.bind=function(t,n,i){this.eventElement(t).bind(n,i)},Xo.prototype.unbind=function(t,n,i){var r=this.eventElement(t);r.unbind(n,i),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},Xo.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},Xo.prototype.once=function(t,n,i){var r=this.eventElement(t),a=function(o){r.unbind(n,a),i(o)};r.bind(n,a)};function Rd(e){if(typeof window.CustomEvent=="function")return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function Bd(e,t,n,i,r){i===void 0&&(i=!0),r===void 0&&(r=!1);var a;if(t==="top")a=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(t==="left")a=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");r8e(e,n,a,i,r)}function r8e(e,t,n,i,r){var a=n[0],o=n[1],s=n[2],u=n[3],c=n[4],f=n[5];i===void 0&&(i=!0),r===void 0&&(r=!1);var h=e.element;e.reach[u]=null,h[s]<1&&(e.reach[u]="start"),h[s]>e[a]-e[o]-1&&(e.reach[u]="end"),t&&(h.dispatchEvent(Rd("ps-scroll-"+u)),t<0?h.dispatchEvent(Rd("ps-scroll-"+c)):t>0&&h.dispatchEvent(Rd("ps-scroll-"+f)),i&&i8e(e,u)),e.reach[u]&&(t||r)&&h.dispatchEvent(Rd("ps-"+u+"-reach-"+e.reach[u]))}function ot(e){return parseInt(e,10)||0}function a8e(e){return $r(e,"input,[contenteditable]")||$r(e,"select,[contenteditable]")||$r(e,"textarea,[contenteditable]")||$r(e,"button,[contenteditable]")}function o8e(e){var t=Ri(e);return ot(t.width)+ot(t.paddingLeft)+ot(t.paddingRight)+ot(t.borderLeftWidth)+ot(t.borderRightWidth)}var qo={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function rr(e){var t=e.element,n=Math.floor(t.scrollTop),i=t.getBoundingClientRect();e.containerWidth=Math.round(i.width),e.containerHeight=Math.round(i.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(c4(t,vt.element.rail("x")).forEach(function(r){return Yo(r)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(c4(t,vt.element.rail("y")).forEach(function(r){return Yo(r)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=g4(e,ot(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=ot((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=g4(e,ot(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=ot(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),s8e(t,e),e.scrollbarXActive?t.classList.add(vt.state.active("x")):(t.classList.remove(vt.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=e.isRtl===!0?e.contentWidth:0),e.scrollbarYActive?t.classList.add(vt.state.active("y")):(t.classList.remove(vt.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function g4(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function s8e(e,t){var n={width:t.railXWidth},i=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-i:n.top=t.scrollbarXTop+i,Cn(t.scrollbarXRail,n);var r={top:i,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?r.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:r.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?r.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth*2-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:r.left=t.scrollbarYLeft+e.scrollLeft,Cn(t.scrollbarYRail,r),Cn(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),Cn(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}function l8e(e){e.element,e.event.bind(e.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top,i=n>e.scrollbarYTop?1:-1;e.element.scrollTop+=i*e.containerHeight,rr(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left,i=n>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=i*e.containerWidth,rr(e),t.stopPropagation()})}function u8e(e){y4(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),y4(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function y4(e,t){var n=t[0],i=t[1],r=t[2],a=t[3],o=t[4],s=t[5],u=t[6],c=t[7],f=t[8],h=e.element,g=null,p=null,y=null;function v(M){M.touches&&M.touches[0]&&(M[r]=M.touches[0].pageY),h[u]=g+y*(M[r]-p),h4(e,c),rr(e),M.stopPropagation(),M.type.startsWith("touch")&&M.changedTouches.length>1&&M.preventDefault()}function k(){m4(e,c),e[f].classList.remove(vt.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",v)}function w(M,x){g=h[u],x&&M.touches&&(M[r]=M.touches[0].pageY),p=M[r],y=(e[i]-e[n])/(e[a]-e[s]),x?e.event.bind(e.ownerDocument,"touchmove",v):(e.event.bind(e.ownerDocument,"mousemove",v),e.event.once(e.ownerDocument,"mouseup",k),M.preventDefault()),e[f].classList.add(vt.state.clicking),M.stopPropagation()}e.event.bind(e[o],"mousedown",function(M){w(M)}),e.event.bind(e[o],"touchstart",function(M){w(M,!0)})}function d8e(e){var t=e.element,n=function(){return $r(t,":hover")},i=function(){return $r(e.scrollbarX,":focus")||$r(e.scrollbarY,":focus")};function r(a,o){var s=Math.floor(t.scrollTop);if(a===0){if(!e.scrollbarYActive)return!1;if(s===0&&o>0||s>=e.contentHeight-e.containerHeight&&o<0)return!e.settings.wheelPropagation}var u=t.scrollLeft;if(o===0){if(!e.scrollbarXActive)return!1;if(u===0&&a<0||u>=e.contentWidth-e.containerWidth&&a>0)return!e.settings.wheelPropagation}return!0}e.event.bind(e.ownerDocument,"keydown",function(a){if(!(a.isDefaultPrevented&&a.isDefaultPrevented()||a.defaultPrevented)&&!(!n()&&!i())){var o=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(o){if(o.tagName==="IFRAME")o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(a8e(o))return}var s=0,u=0;switch(a.which){case 37:a.metaKey?s=-e.contentWidth:a.altKey?s=-e.containerWidth:s=-30;break;case 38:a.metaKey?u=e.contentHeight:a.altKey?u=e.containerHeight:u=30;break;case 39:a.metaKey?s=e.contentWidth:a.altKey?s=e.containerWidth:s=30;break;case 40:a.metaKey?u=-e.contentHeight:a.altKey?u=-e.containerHeight:u=-30;break;case 32:a.shiftKey?u=e.containerHeight:u=-e.containerHeight;break;case 33:u=e.containerHeight;break;case 34:u=-e.containerHeight;break;case 36:u=e.contentHeight;break;case 35:u=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&s!==0||e.settings.suppressScrollY&&u!==0||(t.scrollTop-=u,t.scrollLeft+=s,rr(e),r(s,u)&&a.preventDefault())}})}function c8e(e){var t=e.element;function n(o,s){var u=Math.floor(t.scrollTop),c=t.scrollTop===0,f=u+t.offsetHeight===t.scrollHeight,h=t.scrollLeft===0,g=t.scrollLeft+t.offsetWidth===t.scrollWidth,p;return Math.abs(s)>Math.abs(o)?p=c||f:p=h||g,p?!e.settings.wheelPropagation:!0}function i(o){var s=o.deltaX,u=-1*o.deltaY;return(typeof s>"u"||typeof u>"u")&&(s=-1*o.wheelDeltaX/6,u=o.wheelDeltaY/6),o.deltaMode&&o.deltaMode===1&&(s*=10,u*=10),s!==s&&u!==u&&(s=0,u=o.wheelDelta),o.shiftKey?[-u,-s]:[s,u]}function r(o,s,u){if(!qo.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(o))return!1;for(var c=o;c&&c!==t;){if(c.classList.contains(vt.element.consuming))return!0;var f=Ri(c);if(u&&f.overflowY.match(/(scroll|auto)/)){var h=c.scrollHeight-c.clientHeight;if(h>0&&(c.scrollTop>0&&u<0||c.scrollTop<h&&u>0))return!0}if(s&&f.overflowX.match(/(scroll|auto)/)){var g=c.scrollWidth-c.clientWidth;if(g>0&&(c.scrollLeft>0&&s<0||c.scrollLeft<g&&s>0))return!0}c=c.parentNode}return!1}function a(o){var s=i(o),u=s[0],c=s[1];if(!r(o.target,u,c)){var f=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(c?t.scrollTop-=c*e.settings.wheelSpeed:t.scrollTop+=u*e.settings.wheelSpeed,f=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(u?t.scrollLeft+=u*e.settings.wheelSpeed:t.scrollLeft-=c*e.settings.wheelSpeed,f=!0):(t.scrollTop-=c*e.settings.wheelSpeed,t.scrollLeft+=u*e.settings.wheelSpeed),rr(e),f=f||n(u,c),f&&!o.ctrlKey&&(o.stopPropagation(),o.preventDefault())}}typeof window.onwheel<"u"?e.event.bind(t,"wheel",a):typeof window.onmousewheel<"u"&&e.event.bind(t,"mousewheel",a)}function f8e(e){if(!qo.supportsTouch&&!qo.supportsIePointer)return;var t=e.element;function n(y,v){var k=Math.floor(t.scrollTop),w=t.scrollLeft,M=Math.abs(y),x=Math.abs(v);if(x>M){if(v<0&&k===e.contentHeight-e.containerHeight||v>0&&k===0)return window.scrollY===0&&v>0&&qo.isChrome}else if(M>x&&(y<0&&w===e.contentWidth-e.containerWidth||y>0&&w===0))return!0;return!0}function i(y,v){t.scrollTop-=v,t.scrollLeft-=y,rr(e)}var r={},a=0,o={},s=null;function u(y){return y.targetTouches?y.targetTouches[0]:y}function c(y){return y.pointerType&&y.pointerType==="pen"&&y.buttons===0?!1:!!(y.targetTouches&&y.targetTouches.length===1||y.pointerType&&y.pointerType!=="mouse"&&y.pointerType!==y.MSPOINTER_TYPE_MOUSE)}function f(y){if(c(y)){var v=u(y);r.pageX=v.pageX,r.pageY=v.pageY,a=new Date().getTime(),s!==null&&clearInterval(s)}}function h(y,v,k){if(!t.contains(y))return!1;for(var w=y;w&&w!==t;){if(w.classList.contains(vt.element.consuming))return!0;var M=Ri(w);if(k&&M.overflowY.match(/(scroll|auto)/)){var x=w.scrollHeight-w.clientHeight;if(x>0&&(w.scrollTop>0&&k<0||w.scrollTop<x&&k>0))return!0}if(v&&M.overflowX.match(/(scroll|auto)/)){var S=w.scrollWidth-w.clientWidth;if(S>0&&(w.scrollLeft>0&&v<0||w.scrollLeft<S&&v>0))return!0}w=w.parentNode}return!1}function g(y){if(c(y)){var v=u(y),k={pageX:v.pageX,pageY:v.pageY},w=k.pageX-r.pageX,M=k.pageY-r.pageY;if(h(y.target,w,M))return;i(w,M),r=k;var x=new Date().getTime(),S=x-a;S>0&&(o.x=w/S,o.y=M/S,a=x),n(w,M)&&y.preventDefault()}}function p(){e.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){if(e.isInitialized){clearInterval(s);return}if(!o.x&&!o.y){clearInterval(s);return}if(Math.abs(o.x)<.01&&Math.abs(o.y)<.01){clearInterval(s);return}if(!e.element){clearInterval(s);return}i(o.x*30,o.y*30),o.x*=.8,o.y*=.8},10))}qo.supportsTouch?(e.event.bind(t,"touchstart",f),e.event.bind(t,"touchmove",g),e.event.bind(t,"touchend",p)):qo.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",f),e.event.bind(t,"pointermove",g),e.event.bind(t,"pointerup",p)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",f),e.event.bind(t,"MSPointerMove",g),e.event.bind(t,"MSPointerUp",p)))}var h8e=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},m8e={"click-rail":l8e,"drag-thumb":u8e,keyboard:d8e,wheel:c8e,touch:f8e},vl=function(t,n){var i=this;if(n===void 0&&(n={}),typeof t=="string"&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=t,t.classList.add(vt.main),this.settings=h8e();for(var r in n)this.settings[r]=n[r];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var a=function(){return t.classList.add(vt.state.focus)},o=function(){return t.classList.remove(vt.state.focus)};this.isRtl=Ri(t).direction==="rtl",this.isRtl===!0&&t.classList.add(vt.rtl),this.isNegativeScroll=function(){var c=t.scrollLeft,f=null;return t.scrollLeft=-1,f=t.scrollLeft<0,t.scrollLeft=c,f}(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new Xo,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=Hd(vt.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=Hd(vt.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",o),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var s=Ri(this.scrollbarXRail);this.scrollbarXBottom=parseInt(s.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=ot(s.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=ot(s.borderLeftWidth)+ot(s.borderRightWidth),Cn(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ot(s.marginLeft)+ot(s.marginRight),Cn(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=Hd(vt.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=Hd(vt.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",o),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=Ri(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=ot(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?o8e(this.scrollbarY):null,this.railBorderYWidth=ot(u.borderTopWidth)+ot(u.borderBottomWidth),Cn(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ot(u.marginTop)+ot(u.marginBottom),Cn(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(c){return m8e[c](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(c){return i.onScroll(c)}),rr(this)};vl.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Cn(this.scrollbarXRail,{display:"block"}),Cn(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=ot(Ri(this.scrollbarXRail).marginLeft)+ot(Ri(this.scrollbarXRail).marginRight),this.railYMarginHeight=ot(Ri(this.scrollbarYRail).marginTop)+ot(Ri(this.scrollbarYRail).marginBottom),Cn(this.scrollbarXRail,{display:"none"}),Cn(this.scrollbarYRail,{display:"none"}),rr(this),Bd(this,"top",0,!1,!0),Bd(this,"left",0,!1,!0),Cn(this.scrollbarXRail,{display:""}),Cn(this.scrollbarYRail,{display:""}))},vl.prototype.onScroll=function(t){this.isAlive&&(rr(this),Bd(this,"top",this.element.scrollTop-this.lastScrollTop),Bd(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},vl.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Yo(this.scrollbarX),Yo(this.scrollbarY),Yo(this.scrollbarXRail),Yo(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},vl.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};const p8e=l.defineComponent({__name:"PerfectScrollbar",props:{tag:{default:"div"},options:{default:()=>({})}},emits:["scroll","ps-scroll-y","ps-scroll-x","ps-scroll-up","ps-scroll-down","ps-scroll-left","ps-scroll-right","ps-y-reach-start","ps-y-reach-end","ps-x-reach-start","ps-x-reach-end"],setup(e,{expose:t,emit:n}){const i=e,r=n,a=l.ref(null),o=l.ref(null);l.watch(()=>i.options,()=>{u(),s()},{deep:!0}),l.onMounted(()=>{a.value&&s()}),l.onBeforeUnmount(()=>{u()});function s(){a.value&&(o.value=new vl(a.value,i.options),h())}function u(){o.value&&(h(!1),o.value.destroy(),o.value=null)}const c={scroll:f("scroll"),"ps-scroll-y":f("ps-scroll-y"),"ps-scroll-x":f("ps-scroll-x"),"ps-scroll-up":f("ps-scroll-up"),"ps-scroll-down":f("ps-scroll-down"),"ps-scroll-left":f("ps-scroll-left"),"ps-scroll-right":f("ps-scroll-right"),"ps-y-reach-start":f("ps-y-reach-start"),"ps-y-reach-end":f("ps-y-reach-end"),"ps-x-reach-start":f("ps-x-reach-start"),"ps-x-reach-end":f("ps-x-reach-end")};function f(g){return function(p){r(g,p)}}function h(g=!0){var p;(p=o.value)!=null&&p.element&&Object.entries(c).forEach(([y,v])=>{var k,w;g?(k=o.value)==null||k.element.addEventListener(y,v):(w=o.value)==null||w.element.removeEventListener(y,v)})}return t({ps:o}),(g,p)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(g.tag),{ref_key:"scrollbar",ref:a,class:"ps"},{default:l.withCtx(()=>[l.renderSlot(g.$slots,"default")]),_:3},512))}}),g8e=["data-testid"],N1=l.defineComponent({__name:"Scrollbar",props:{options:{},tag:{},class:{},style:{},thrumbStyle:{},railStyle:{},dataTestid:{default:"ScrollBar"}},emits:["scroll","ps-scroll-y","ps-scroll-x","ps-scroll-up","ps-scroll-down","ps-scroll-left","ps-scroll-right","ps-y-reach-start","ps-y-reach-end","ps-x-reach-start","ps-x-reach-end"],setup(e,{expose:t,emit:n}){const i=e,r=l.ref(null),a=n,o=h=>{a("scroll",h)},s={attributes:!0,attributeFilter:["style"]},u=(h,g)=>p=>{for(const y of p)y.type==="attributes"&&y.attributeName==="style"&&h.style.right!==g&&(h.style.right=g)},c=()=>{var w,M,x,S,E,I,A,W,$,D,z,H,X,re,ne,q,Z,ue,Ne,it,xt,Kt,Ht,qe;if(!r.value)return;const h=r.value.querySelector(".ps__thumb-y"),g=r.value.querySelector(".ps__thumb-x"),p=r.value.querySelector(".ps__rail-y"),y=r.value.querySelector(".ps__rail-x");h.style.background=((M=(w=i.thrumbStyle)==null?void 0:w.y)==null?void 0:M.background)||"#77a6ff",h.style.width=((S=(x=i.thrumbStyle)==null?void 0:x.y)==null?void 0:S.width)||"6px",h.style.right="0px",g.style.background=((I=(E=i.thrumbStyle)==null?void 0:E.x)==null?void 0:I.background)||"#77a6ff",g.style.width=((W=(A=i.thrumbStyle)==null?void 0:A.x)==null?void 0:W.width)||"6px",g.style.right="0px",p.style.background=((D=($=i.railStyle)==null?void 0:$.y)==null?void 0:D.background)||"#F5F5F5",p.style.width=((H=(z=i.thrumbStyle)==null?void 0:z.y)==null?void 0:H.width)||"6px",p.style.right=((re=(X=i.railStyle)==null?void 0:X.y)==null?void 0:re.right)||"0px",y.style.background=((q=(ne=i.railStyle)==null?void 0:ne.x)==null?void 0:q.background)||"#F5F5F5",y.style.width=((ue=(Z=i.thrumbStyle)==null?void 0:Z.x)==null?void 0:ue.width)||"6px",y.style.right=((it=(Ne=i.railStyle)==null?void 0:Ne.x)==null?void 0:it.right)||"0px";const v=new MutationObserver(u(p,((Kt=(xt=i.railStyle)==null?void 0:xt.y)==null?void 0:Kt.right)||"0px")),k=new MutationObserver(u(y,((qe=(Ht=i.railStyle)==null?void 0:Ht.x)==null?void 0:qe.right)||"0px"));v.observe(p,s),k.observe(y,s)};return l.watch(()=>i,()=>{c()},{immediate:!0}),t({scrollToTop:()=>{r.value&&(r.value.children[0].scrollTop=0)}}),l.onMounted(()=>{c()}),(h,g)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"scrollbar",ref:r,"data-testid":i.dataTestid},[l.createVNode(l.unref(p8e),{onScroll:o,options:i.options,tag:i.tag,class:l.normalizeClass(i.class),style:l.normalizeStyle(i.style),"data-testid":`${i.dataTestid}-Scroll`,ref_key:"scrollbar",ref:r},{default:l.withCtx(()=>[l.renderSlot(h.$slots,"default")]),_:3},8,["options","tag","class","style","data-testid"])],8,g8e))}});function dn(e,t=document.documentElement){for(const[n,i]of Object.entries(e))t.style.setProperty(n,String(i))}const y8e=()=>{const e=l.ref(0),t=l.ref([]),n=l.ref(null),i=u=>{t.value.push(u),a(u),o()},r=()=>{t.value.pop(),s(),t.value.length?a(t.value[t.value.length-1]):n.value=null},a=u=>{n.value=u},o=()=>{e.value+=1},s=()=>{e.value>0&&(e.value-=1)};return{countOpenedModal:e,openedModals:t,lastOpenedModal:n,addOpenedModal:i,reduceOpenedModal:r,setLastOpenedModal:a,incrementCountModal:o,decrementCountModal:s}},b8e=["data-testid"],w8e=["data-testid"],v8e=pe(l.defineComponent({__name:"Modal",props:{open:{type:Boolean},position:{default:"right"},width:{},height:{},dataTestid:{default:"Modal"}},emits:["close","unmounted"],setup(e,{expose:t,emit:n}){const{lastOpenedModal:i,addOpenedModal:r,reduceOpenedModal:a}=y8e(),o=e,s=l.ref(null),u=l.useAttrs(),c=l.ref(!1),f=l.computed(()=>({width:o.width,height:o.height})),h=n;let g=0;const p=()=>{g=Date.now(),s.value&&(o.open?(s.value.showModal(),r(s.value)):y())},y=()=>{Date.now()-g<300||(a(),h("close"))},v=()=>{var S;(S=s.value)==null||S.close(),document.documentElement.focus(),M()},k=S=>{S.key==="Escape"&&i.value===s.value&&y()},w=()=>{if(document.querySelectorAll(".modal-yui-kit").length===1)return window.innerWidth-document.documentElement.clientWidth;{const E=document.body.style.paddingRight;return Number(E.replace(/\D/g,""))||0}},M=()=>{document.querySelectorAll(".modal-yui-kit").length===0&&dn({overflow:"","padding-right":""},document.body)},x=S=>{S.target===s.value&&y()};return t({closeDialog:v}),l.onMounted(()=>{l.watchEffect(()=>{o.open!==c.value&&(p(),c.value=o.open)}),s.value&&s.value.addEventListener("cancel",E=>{E.preventDefault()});const S=w();dn({overflow:"hidden","padding-right":`${S}px`},document.body),document.addEventListener("keydown",k)}),l.onUnmounted(()=>{M(),document.removeEventListener("keydown",k),h("unmounted")}),(S,E)=>(l.openBlock(),l.createElementBlock("dialog",l.mergeProps({ref_key:"dialog",ref:s},l.unref(u),{class:["modal-yui-kit",`modal-yui-kit_${o.position}`],"data-testid":o.dataTestid,onClick:l.withModifiers(x,["self","left"])}),[l.createElementVNode("div",{class:"modal-yui-kit__modal-content",style:l.normalizeStyle(f.value),"data-testid":`${o.dataTestid}-ModalContent`},[l.renderSlot(S.$slots,"default",{},void 0,!0)],12,w8e)],16,b8e))}}),[["__scopeId","data-v-14e41eb3"]]);var Vd=(e=>(e.right="right",e.fade="fade",e))(Vd||{});const k8e=l.defineComponent({__name:"ModalAnimated",props:{animateType:{default:Vd.right},open:{type:Boolean},position:{default:"right"},width:{},height:{},dataTestid:{default:"Modal"}},emits:["close","unmounted","end-animation"],setup(e,{emit:t}){const n=e,i=t,r=l.computed(()=>{switch(n.animateType){case Vd.fade:return"fade";case Vd.right:return"modal";default:return"modal"}}),a=l.ref(null),o=l.reactive({function:()=>{}}),s=()=>{h()},u=()=>{i("unmounted")},c=()=>{h()},f=()=>{o.function(),i("end-animation")},h=()=>{var p;a.value&&(o.function=(p=a.value)==null?void 0:p.closeDialog)},g=()=>{h(),i("close")};return(p,y)=>(l.openBlock(),l.createBlock(l.Transition,{name:r.value,onAfterLeave:f,onBeforeLeave:c,onAfterEnter:s},{default:l.withCtx(()=>[n.open?(l.openBlock(),l.createBlock(v8e,{key:0,ref_key:"modalRef",ref:a,open:n.open,position:n.position,width:n.width,height:n.height,"data-testid":n.dataTestid,onClose:g,onUnmounted:u},{default:l.withCtx(()=>[l.renderSlot(p.$slots,"default",{},void 0,!0)]),_:3},8,["open","position","width","height","data-testid"])):l.createCommentVNode("",!0)]),_:3},8,["name"]))}}),Fd=pe(k8e,[["__scopeId","data-v-b1e40efb"]]);var b4=(e=>(e.small="small",e.medium="medium",e.big="big",e))(b4||{}),w4=(e=>(e.circled="circled",e.rounded="rounded",e))(w4||{});const M8e=["data-testid","checked","disabled"],C8e=l.defineComponent({__name:"Checkbox",props:{size:{default:b4.medium},circular:{default:w4.rounded},checked:{type:Boolean},modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestid:{default:"Checkbox"}},emits:["change","update:modelValue"],setup(e,{emit:t}){const n=e,i=t,r=l.reactive({isChecked:n.modelValue});l.watchEffect(()=>{r.isChecked=n.modelValue});const a=()=>{r.isChecked=!r.isChecked,i("change",r.isChecked),i("update:modelValue",r.isChecked)};return(o,s)=>(l.openBlock(),l.createElementBlock("input",{type:"checkbox",class:l.normalizeClass(`checkbox-yui-kit checkbox-yui-kit_${n.size} checkbox-yui-kit_${n.circular}`),"data-testid":`${n.dataTestid}`,tabindex:"0",onChange:a,checked:r.isChecked,disabled:n.disabled,onKeyup:l.withKeys(a,["enter"])},null,42,M8e))}}),j1=pe(C8e,[["__scopeId","data-v-5b8c9f76"]]);var Ba=(e=>(e.profile="profile",e.theme="theme",e.options="options",e.exit="exit",e.help="help",e))(Ba||{});const x8e=["data-testid"],S8e=["src","alt"],_8e=["src"],T8e={key:2,class:"avatar-yui-kit__text"},Ud=pe(l.defineComponent({__name:"Avatar",props:{initials:{},url:{},isIcon:{type:Boolean},alt:{},defaultImage:{},dataTestid:{}},setup(e){const t=e,n=l.ref(!1);l.watch(()=>t.url,()=>{n.value=!1});const i=()=>t.initials?t.initials.charAt(0):"";return(r,a)=>(l.openBlock(),l.createElementBlock("div",{"data-testid":t.dataTestid,class:"avatar-yui-kit"},[t.url&&!n.value?(l.openBlock(),l.createElementBlock("img",{key:0,src:t.url,alt:t.alt,class:"avatar-yui-kit__image",onError:a[0]||(a[0]=o=>n.value=!0)},null,40,S8e)):t.defaultImage?(l.openBlock(),l.createElementBlock("img",{key:1,src:t.defaultImage,class:"avatar-yui-kit__image"},null,8,_8e)):(l.openBlock(),l.createElementBlock("div",T8e,l.toDisplayString(i()),1))],8,x8e))}}),[["__scopeId","data-v-15c61fb6"]]),P8e=["data-testid"],E8e={class:"menu-yui-kit__wrapper"},A8e={class:"menu-yui-kit__names"},D8e={class:"menu-yui-kit__name"},N8e={class:"menu-yui-kit__role"},j8e={key:0,class:"menu-yui-kit__list"},I8e={class:"list-yui-kit"},W8e=["data-testid"],O8e=["data-testid"],z8e=["data-testid"],L8e=["data-testid"],$8e=["data-testid"],H8e=["data-type"],I1=pe(l.defineComponent({__name:"UserMenu",props:{closeAfterClick:{type:Boolean},user:{},languages:{},isBlackTheme:{type:Boolean},dataTestid:{default:"UserMenu"}},emits:["click","themeChange","languageSwitch"],setup(e,{emit:t}){const n=e,i=l.reactive({isShow:!1,option:"",isBlackTheme:n.isBlackTheme??!1}),r=t,a=l.computed(()=>({"menu-yui-kit__heading":!0,"active-yui-kit":i.isShow})),o=l.computed(()=>i.isBlackTheme?ce.dark:ce.light),s=l.ref(null),u=y=>{s.value&&!s.value.contains(y.target)&&(i.isShow=!1)};l.onMounted(()=>{document.addEventListener("click",u)}),l.onBeforeUnmount(()=>{document.removeEventListener("click",u)});const c=y=>{y!==void 0?(i.option=y,r("click",y),n.closeAfterClick&&(i.isShow=!1)):console.error("Option type is undefined")},f=l.computed(()=>i.isShow?ce.chevronUp:ce.chevronDown),h=()=>{i.isShow=!i.isShow},g=y=>{n.closeAfterClick&&(i.isShow=!1),r("themeChange",y),i.isBlackTheme=y},p=y=>{n.closeAfterClick&&(i.isShow=!1),r("languageSwitch",y)};return(y,v)=>{var k,w,M;return l.openBlock(),l.createElementBlock("div",{class:"menu-yui-kit",ref_key:"menuRef",ref:s,"data-testid":n.dataTestid},[l.createElementVNode("div",E8e,[l.createVNode(Ud,{class:"menu-yui-kit__avatar",url:n.user.avatar,alt:"user-avatar","data-testid":`${n.dataTestid}-Avatar`},null,8,["url","data-testid"]),l.createElementVNode("div",{class:l.normalizeClass(a.value),onClick:h},[l.createElementVNode("div",A8e,[l.createElementVNode("p",D8e,l.toDisplayString(n.user.name),1),l.createElementVNode("p",N8e,l.toDisplayString(n.user.role),1)]),l.createVNode(Ot,{type:l.unref(ut).ghost,class:"menu-yui-kit__button","data-testid":`${n.dataTestid}-Toggle`},{default:l.withCtx(()=>[l.createVNode(ve,{class:"menu-yui-kit__button-icon",name:f.value},null,8,["name"])]),_:1},8,["type","data-testid"])],2)]),i.isShow?(l.openBlock(),l.createElementBlock("div",j8e,[l.createElementVNode("ul",I8e,[l.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[0]||(v[0]=x=>c(l.unref(Ba).profile)),"data-testid":`${n.dataTestid}-Profile-Item`},[l.createVNode(ve,{name:l.unref(ce).profile},null,8,["name"]),v[5]||(v[5]=l.createElementVNode("span",{class:"list-yui-kit__item-text"},"Профиль",-1))],8,W8e),l.createElementVNode("li",{class:"list-yui-kit__item","data-testid":`${n.dataTestid}-Theme-Item`},[l.createVNode(ve,{name:o.value},null,8,["name"]),l.createElementVNode("span",{class:"list-yui-kit__item-text",onClick:v[1]||(v[1]=x=>c(l.unref(Ba).theme))},"Темная тема"),l.createVNode($d,{type:l.unref(Uo).small,onChange:g,checked:i.isBlackTheme,"data-testid":`${n.dataTestid}-Theme-Toggle`},null,8,["type","checked","data-testid"])],8,O8e),l.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[2]||(v[2]=x=>c(l.unref(Ba).options)),"data-testid":`${n.dataTestid}-Settings-Item`},[l.createVNode(ve,{name:l.unref(ce).settings},null,8,["name"]),v[6]||(v[6]=l.createElementVNode("span",{class:"list-yui-kit__item-text"},"Настройки",-1))],8,z8e),l.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[3]||(v[3]=x=>c(l.unref(Ba).exit)),"data-testid":`${n.dataTestid}-Exit-Item`},[l.createVNode(ve,{name:l.unref(ce).exit},null,8,["name"]),v[7]||(v[7]=l.createElementVNode("span",{class:"list-yui-kit__item-text"},"Выход",-1))],8,L8e),l.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[4]||(v[4]=x=>c(l.unref(Ba).help)),"data-testid":`${n.dataTestid}-Help-Item`},[l.createVNode(ve,{name:l.unref(ce).help},null,8,["name"]),l.createElementVNode("span",{class:"list-yui-kit__item-text","data-type":l.unref(Ba).help},"Помощь",8,H8e)],8,$8e)]),(k=n.languages)!=null&&k.items?(l.openBlock(),l.createBlock(Tu,{key:0,items:(w=n.languages)==null?void 0:w.items,defaultValue:(M=n.languages)==null?void 0:M.defaultValue,onChange:p,"data-testid":`${n.dataTestid}-Language-Switch`},null,8,["items","defaultValue","data-testid"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)],8,P8e)}}}),[["__scopeId","data-v-92ca4d70"]]);var Yd=(e=>(e.default="default",e.minor="minor",e))(Yd||{});const R8e=["data-testid"],B8e=["data-testid"],V8e=["data-testid"],F8e=["data-testid","placeholder","required","maxlength","readonly"],U8e=l.defineComponent({__name:"Textarea",props:{placeholder:{},inputMessage:{},required:{type:Boolean,default:!1},maxlength:{},modelValue:{default:""},readonly:{type:Boolean,default:!1},type:{default:Yd.default},modelModifiers:{default:()=>({})},dataTestid:{default:"Textarea"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,r=l.reactive({isPressed:!1,inputElement:n.modelValue}),a=l.computed(()=>[{pressed:r.isPressed,readonly:n.readonly,[n.type]:!0}]),o=()=>{i("update:modelValue",r.inputElement)},s=()=>{n.readonly||(r.isPressed=!0)},u=()=>{r.isPressed=!1};return l.watch(()=>n.modelValue,c=>{r.inputElement=c}),(c,f)=>(l.openBlock(),l.createElementBlock("fieldset",{class:l.normalizeClass(["input-yui-kit",a.value]),onFocusout:u,"data-testid":n.dataTestid},[n.inputMessage?(l.openBlock(),l.createElementBlock("legend",{key:0,class:"input-yui-kit__legend","data-testid":`${n.dataTestid}-Legend`},[l.createTextVNode(l.toDisplayString(n.inputMessage)+" ",1),n.required?(l.openBlock(),l.createElementBlock("sup",{key:0,class:"input-yui-kit__star","data-testid":`${n.dataTestid}-Legend-Star`},"*",8,V8e)):l.createCommentVNode("",!0)],8,B8e)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("textarea",{"onUpdate:modelValue":f[0]||(f[0]=h=>r.inputElement=h),onFocus:s,onInput:o,"data-testid":`${n.dataTestid}-Textarea`,class:"input-yui-kit__input",placeholder:n.placeholder,required:n.required,maxlength:n.maxlength,readonly:n.readonly},null,40,F8e),[[l.vModelText,r.inputElement]])],42,R8e))}}),W1=pe(U8e,[["__scopeId","data-v-ac7acfbd"]]);var v4=(e=>(e.img="img",e.pdf="pdf",e.docx="docx",e))(v4||{});const Y8e=["data-testid"],X8e=["data-testid"],q8e=["src","alt","data-testid"],G8e=["data-testid"],K8e=["data-testid"],Q8e=["data-testid"],O1=pe(l.defineComponent({__name:"Picture",props:{type:{},alt:{},url:{},caption:{},dataTestid:{default:"Picture"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("figure",{class:"picture-yui-kit","data-testid":t.dataTestid},[t.type==l.unref(v4).img?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("picture",{class:"picture-yui-kit__picture","data-testid":`${t.dataTestid}-Picture`},[l.createElementVNode("img",{class:"picture-yui-kit__picture__image",src:t.url,alt:t.alt,"data-testid":`${t.dataTestid}-Picture-Img`},null,8,q8e)],8,X8e),l.createElementVNode("figcaption",{class:"picture-yui-kit__picture__caption","data-testid":`${t.dataTestid}-Caption`},l.toDisplayString(t.caption),9,G8e)],64)):(l.openBlock(),l.createElementBlock("div",{key:1,class:"picture-yui-kit__caption","data-testid":`${t.dataTestid}-Caption-Box`},[l.createElementVNode("h4",{class:"picture-yui-kit__caption__title","data-testid":`${t.dataTestid}-Caption-Title`},l.toDisplayString(t.caption),9,Q8e)],8,K8e))],8,Y8e))}}),[["__scopeId","data-v-6a079c40"]]);var k4=(e=>(e.success="success",e.warning="warning",e.error="error",e.info="info",e))(k4||{}),M4=(e=>(e.success="Успешно",e.warning="Предупреждение",e.error="Ошибка",e.info="Уведомление",e))(M4||{}),C4=(e=>(e[e.success=ce.checkbox]="success",e[e.warning=ce.alertTriangle]="warning",e[e.error=ce.exitCircle]="error",e[e.info=ce.info]="info",e))(C4||{});const J8e=["id","data-testid"],Z8e=["data-testid"],e7e=["data-testid"],t7e=["data-testid"],n7e=["data-testid"],i7e=l.defineComponent({__name:"Notification",props:{type:{default:k4.info},title:{},pushKey:{},description:{default:""},timeout:{default:3},showPopover:{type:Boolean,default:!0},dataTestid:{default:"Notification"}},emits:["close"],setup(e,{expose:t,emit:n}){const i=e,r=n,a=l.ref(null);K(a,"toggle",()=>{i.timeout>0&&setTimeout(()=>{var c;return(c=a.value)==null?void 0:c.hidePopover()},i.timeout*1e3)});const o=()=>(r("close"),"hide"),s=()=>{var c;(c=a.value)==null||c.showPopover()},u=l.reactive({message:{icon:C4[i.type],title:i.title||M4[i.type],description:i.description}});return l.onMounted(()=>{var c;i.showPopover&&((c=a.value)==null||c.showPopover())}),t({showPopover:s}),(c,f)=>(l.openBlock(),l.createElementBlock("div",{popover:"manual",id:i.pushKey.toString(),class:l.normalizeClass(`push-notification-yui-kit push-notification-yui-kit_${i.type}`),"data-testid":i.dataTestid,ref_key:"popover",ref:a},[l.createElementVNode("div",{class:"notification-yui-kit","data-testid":`${i.dataTestid}-Notification`},[l.createElementVNode("div",{class:"notification-yui-kit__block","data-testid":`${i.dataTestid}-Notification-Block`},[l.createVNode(ve,{name:u.message.icon,class:"notification-yui-kit__block-icon","data-testid":`${i.dataTestid}-Notification-Icon`},null,8,["name","data-testid"]),l.createElementVNode("h4",{class:"notification-yui-kit__block-title","data-testid":`${i.dataTestid}-Notification-Title`},l.toDisplayString(u.message.title),9,t7e),l.createElementVNode("span",{class:"notification-yui-kit__block-text","data-testid":`${i.dataTestid}-Notification-Description`},l.toDisplayString(u.message.description),9,n7e)],8,e7e),l.createVNode(Ot,{class:"notification-yui-kit__exit",type:l.unref(ut).ghost,popovertarget:i.pushKey.toString(),popovertargetaction:o,"data-testid":`${i.dataTestid}-Notification-Button`},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).crossSmall,"data-testid":`${i.dataTestid}-Notification-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","popovertarget","data-testid"])],8,Z8e)],10,J8e))}}),z1=pe(i7e,[["__scopeId","data-v-42a4a42d"]]),L1=l.defineComponent({__name:"CopyIcon",props:{content:{default:""},dataTestid:{default:"CopyIcon"}},setup(e){const t=e,n=()=>{const i=t.content,r=document.createElement("textarea");r.value=i;const a=document.querySelectorAll("dialog[open]"),o=a.length?a[a.length-1]:null;o?o.append(r):document.body.append(r),r.select(),r.setSelectionRange(0,99999),document.execCommand("copy"),r.remove()};return(i,r)=>(l.openBlock(),l.createBlock(ve,{class:"copy-icon-yui-kit",name:l.unref(ce).copy,"data-testid":t.dataTestid,onClick:n},null,8,["name","data-testid"]))}}),r7e=["data-testid"],a7e=["data-testid"],o7e=["data-testid"],s7e=["data-testid"],l7e=["data-testid"],$1=pe(l.defineComponent({__name:"Loader",props:{title:{default:"Загрузка..."},dataTestid:{default:"Loader"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("div",{class:"loader","data-testid":t.dataTestid},[l.createElementVNode("div",{class:"loader__area","data-testid":`${t.dataTestid}-Area`},[l.createElementVNode("div",{class:"loader__circle loader__circle--light-blue","data-testid":`${t.dataTestid}-Loader-LightBlue1`},null,8,o7e),l.createElementVNode("div",{class:"loader__circle loader__circle--blue","data-testid":`${t.dataTestid}-Loader-LightBlue2`},null,8,s7e)],8,a7e),t.title?(l.openBlock(),l.createElementBlock("span",{key:0,class:"loader__span","data-testid":`${t.dataTestid}-Loader-Title`},l.toDisplayString(t.title),9,l7e)):l.createCommentVNode("",!0)],8,r7e))}}),[["__scopeId","data-v-f57f6084"]]),u7e=["data-testid"],d7e=["data-testid"],c7e=["data-testid"],f7e=["data-testid"],h7e=["data-testid"],m7e=["data-testid"],p7e=["data-testid"],g7e=["data-testid"],y7e=["data-testid"],b7e=["data-testid"],w7e=["data-testid"],v7e=["data-testid"],k7e=["data-testid"],M7e=["data-testid"],C7e=l.defineComponent({__name:"FilterTag",props:{title:{},iconName:{default:ce.filter},options:{default:()=>[]},selectedValues:{default:()=>[]},multiply:{type:Boolean,default:!0},maxShowCount:{default:5},showClearButton:{type:Boolean,default:!1},disallowNull:{type:Boolean,default:!1},dataTestid:{default:"FilterTag"}},emits:["change"],setup(e,{emit:t}){const n=e,i=l.reactive({isShow:!1,options:[]}),r=t,a=l.computed(()=>({"filter-yui-kit__wrapper":!0,"active-yui-kit":i.isShow})),o=()=>i.isShow=!i.isShow,s=()=>{i.isShow=!1},u=l.computed(()=>i.options.filter(p=>p.chose)),c=l.computed(()=>i.options.filter(p=>!p.chose)),f=p=>{n.disallowNull&&p.chose||(p.chose=!p.chose,n.multiply||(i.options=i.options.map(y=>({...y,chose:p.value===y.value&&p.chose}))),i.options.every(y=>y.chose)&&(i.options=i.options.map(y=>({...y,chose:!1}))),r("change",u.value.map(y=>y.value)),i.isShow=!1)},h=()=>{i.options=i.options.map(p=>({...p,chose:!1})),i.isShow=!1,r("change",[])},g=()=>{i.options=n.options.map(p=>({...p,chose:n.selectedValues.includes(p.value)})),i.options.every(p=>p.chose)&&(i.options=i.options.map(p=>({...p,chose:!1})))};return l.watch(()=>[n.options,n.selectedValues],g),l.watch(()=>n.selectedValues,g),l.onMounted(g),(p,y)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{class:"filter-yui-kit","data-testid":n.dataTestid},[l.createElementVNode("div",{class:l.normalizeClass(a.value),onClick:o,"data-testid":`${n.dataTestid}-Wrapper`},[n.iconName?(l.openBlock(),l.createBlock(ve,{key:0,name:n.iconName,"data-testid":`${n.dataTestid}-Icon`},null,8,["name","data-testid"])):l.createCommentVNode("",!0),n.title?(l.openBlock(),l.createElementBlock("span",{key:1,"data-testid":`${n.dataTestid}-Title`},l.toDisplayString(n.title),9,c7e)):l.createCommentVNode("",!0),!u.value.length&&!n.disallowNull?(l.openBlock(),l.createBlock(Vt,{key:2,disabled:"",text:"Все","data-testid":`${n.dataTestid}-Badges-All`},null,8,["data-testid"])):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:3},l.renderList(u.value.filter((v,k)=>k<n.maxShowCount),(v,k)=>(l.openBlock(),l.createBlock(Vt,{key:v.value,type:v.type,disabled:"","data-testid":`${n.dataTestid}-Badges${k}`,text:v.label},null,8,["type","data-testid","text"]))),128)),n.maxShowCount<u.value.length?(l.openBlock(),l.createElementBlock("div",{key:4,class:"filter-yui-kit__counter","data-testid":`${n.dataTestid}-MaxShowCount-Counter`},[l.createTextVNode(" +"+l.toDisplayString(u.value.length-n.maxShowCount)+" ",1),l.createElementVNode("div",{class:"filter-yui-kit__counter-content","data-testid":`${n.dataTestid}-MaxShowCount-Content`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(u.value.filter((v,k)=>k>=n.maxShowCount),(v,k)=>(l.openBlock(),l.createBlock(Vt,{key:v.value,type:v.type,disabled:"",text:v.label,"data-testid":`${n.dataTestid}-MaxShow-Badges${k}`},null,8,["type","text","data-testid"]))),128))],8,h7e)],8,f7e)):l.createCommentVNode("",!0),n.showClearButton&&u.value.length>0?(l.openBlock(),l.createElementBlock("button",{key:5,type:"button",class:"filter-yui-kit__close",onClick:l.withModifiers(h,["stop"]),"data-testid":`${n.dataTestid}-Filter-CloseButton`},[l.createVNode(ve,{name:l.unref(ce).crossSmall,"data-testid":`${n.dataTestid}-CloseButton-Icon`},null,8,["name","data-testid"])],8,m7e)):l.createCommentVNode("",!0)],10,d7e),i.isShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter-yui-kit__select-wrapper","data-testid":`${n.dataTestid}-Select-Wrapper`},[l.createElementVNode("ul",{class:"filter-yui-kit__select-list selected-yui-kit","data-testid":`${n.dataTestid}-Select-List`},[u.value.length?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("li",{key:0,class:"filter-yui-kit__select-item","data-testid":`${n.dataTestid}-Select-Item`},[l.createVNode(Vt,{disabled:"",text:"Все","data-testid":`${n.dataTestid}-Select-Badges`},null,8,["data-testid"])],8,y7e)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(u.value,(v,k)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:v.value,"data-testid":`${n.dataTestid}-Select-Item${k}`},[l.createVNode(Vt,{disabled:!0,choosed:!n.disallowNull&&v.chose,type:v.type,onClick:w=>f(v),text:v.label,"data-testid":`${n.dataTestid}-Select-Badges${k}`},null,8,["choosed","type","onClick","text","data-testid"])],8,b7e))),128))],8,g7e),l.createElementVNode("div",{class:"filter-yui-kit__select__divider","data-testid":`${n.dataTestid}-Select-Divider`},null,8,w7e),i.isShow?(l.openBlock(),l.createElementBlock("ul",{key:0,class:"filter-yui-kit__select-list","data-testid":`${n.dataTestid}-Select-List`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.value,(v,k)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:v.value,"data-testid":`${n.dataTestid}-Select-List${k}`},[l.createVNode(Vt,{disabled:!0,choosed:!1,type:v.type,text:v.label,"data-testid":`${n.dataTestid}-Select-Badges${k}`,onClick:w=>f(v)},null,8,["type","text","data-testid","onClick"])],8,k7e))),128)),e.disallowNull?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("li",{key:0,class:"filter-yui-kit__select-item","data-testid":`${n.dataTestid}-Select-Item`},[u.value.length?(l.openBlock(),l.createBlock(Vt,{key:0,disabled:"","data-testid":`${n.dataTestid}-Select-Badges`,text:"Все",onClick:h},null,8,["data-testid"])):l.createCommentVNode("",!0)],8,M7e))],8,v7e)):l.createCommentVNode("",!0)],8,p7e)):l.createCommentVNode("",!0)],8,u7e)),[[l.unref(Ls),s,void 0,{bubble:!0}]])}}),H1=pe(C7e,[["__scopeId","data-v-9a93bcc4"]]),x7e=["data-testid"],S7e=["data-testid"],_7e=["data-testid"],T7e=["data-testid"],R1=pe(l.defineComponent({__name:"CircularProgress",props:{percent:{},dataTestid:{default:"CircularProgress"}},setup(e){const t=e,n=()=>{const i=Math.min(Math.max(t.percent,0),100),r=i/100*360;if(i<=25)return`polygon(50% 50%, 50% 0%, calc(50% + 50% * cos(${r-90}deg)) 0,calc(50% + 50% * cos(${r-90}deg)) calc(50% + 50% * sin(${r-90}deg)), 50% 50%)`;if(i<=50)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% calc(50% + 50% * sin(${r-90}deg)), calc(50% + 50% * cos(${r-90}deg)) calc(50% + 50% * sin(${r-90}deg)), 50% 50%)`;if(i<=75)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%,
|
|
1296
|
+
calc(50% + 50% * cos(${r-90}deg)) 100%, calc(50% + 50% * cos(${r-90}deg)) calc(50% + 50% * sin(${r-90}deg)), 50% 50%)`;if(i<=100)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%,0% 100%, 0% calc(50% + 50% * sin(${r-90}deg)), 50% 50%)`};return(i,r)=>t.percent<100?(l.openBlock(),l.createElementBlock("div",{key:0,class:"pie-chart","data-testid":`${t.dataTestid}-PieChart`},[l.createElementVNode("div",{class:"pie-chart-border",style:l.normalizeStyle({"border-color":t.percent<50?"#ef9b8f":"#ffcc00"}),"data-testid":`${t.dataTestid}-PieChart-Border`},[l.createElementVNode("div",{class:"sector",style:l.normalizeStyle({clipPath:n(),"background-color":t.percent<50?"#ef9b8f":"#ffcc00"}),"data-testid":`${t.dataTestid}-PieChart-Sector`},null,12,_7e)],12,S7e)],8,x7e)):(l.openBlock(),l.createElementBlock("svg",{key:1,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","data-testid":`${t.dataTestid}-Icon`,xmlns:"http://www.w3.org/2000/svg"},[...r[0]||(r[0]=[l.createElementVNode("path",{d:"M8 1C4.136 1 1 4.136 1 8C1 11.864 4.136 15 8 15C11.864 15 15 11.864 15 8C15 4.136 11.864 1 8 1ZM8 13.6C4.906 13.6 2.4 11.094 2.4 8C2.4 4.906 4.906 2.4 8 2.4C11.094 2.4 13.6 4.906 13.6 8C13.6 11.094 11.094 13.6 8 13.6Z",fill:"#3BC648"},null,-1),l.createElementVNode("circle",{cx:"8",cy:"8",r:"4",transform:"rotate(-180 8 8)",fill:"#3BC648"},null,-1),l.createElementVNode("path",{d:"M10 6L7.5 9.83935L6 8.5",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])],8,T7e))}}),[["__scopeId","data-v-e50e4774"]]),P7e=["data-testid","aria-label"],E7e=["data-testid"],kl=pe(l.defineComponent({name:"Tooltip",__name:"Tooltip",props:{hint:{},isShow:{type:Boolean,default:!1},isCanShow:{type:Boolean,default:!0},position:{default:"bottom-center"},size:{default:"small"},type:{default:"black"},hintGap:{},hintClass:{default:""},dataTestid:{default:"Tooltip"}},setup(e){const t=e,n=l.ref(null),i=l.ref(null),r=l.computed(()=>[{"tooltip-yui-kit__hint_show":t.isShow||o.isShow,"tooltip-yui-kit__hint_bottom-center":t.position==="bottom-center","tooltip-yui-kit__hint_bottom-left":t.position==="bottom-left","tooltip-yui-kit__hint_bottom-right":t.position==="bottom-right","tooltip-yui-kit__hint_top-center":t.position==="top-center","tooltip-yui-kit__hint_top-left":t.position==="top-left","tooltip-yui-kit__hint_top-right":t.position==="top-right","tooltip-yui-kit__hint_left-top":t.position==="left-top","tooltip-yui-kit__hint_left-center":t.position==="left-center","tooltip-yui-kit__hint_left-bottom":t.position==="left-bottom","tooltip-yui-kit__hint_right-top":t.position==="right-top","tooltip-yui-kit__hint_right-center":t.position==="right-center","tooltip-yui-kit__hint_right-bottom":t.position==="right-bottom","tooltip-yui-kit__hint_small":t.size==="small","tooltip-yui-kit__hint_medium":t.size==="medium","tooltip-yui-kit__hint_large":t.size==="large","tooltip-yui-kit__hint_black":t.type==="black","tooltip-yui-kit__hint_blue":t.type==="blue","tooltip-yui-kit__hint_white":t.type==="white",[t.hintClass]:!0}]),a=l.computed(()=>{var M;const w=(M=n.value)==null?void 0:M.closest("dialog");return w||"body"}),o=l.reactive({isShow:!1}),s=()=>{g()},u=()=>{p()},c=()=>{f()},f=()=>{requestAnimationFrame(()=>{if(!n.value||!i.value||!o.isShow&&!t.isShow)return;const w={"--hint-top":"0","--hint-left":"0","--hint-width":"0","--hint-height":"0","--tooltip-width":"0","--tooltip-height":"0","--hint-visibility":"visible"},M=n.value.getBoundingClientRect(),x=i.value.getBoundingClientRect(),S=window.pageYOffset||document.documentElement.scrollTop,E=window.pageXOffset||document.documentElement.scrollLeft;let I=M.top+S,A=M.left+E;const W=n.value.closest("dialog");if(W){const X=W.getBoundingClientRect();I=M.top-X.top,A=M.left-X.left;const re=W.scrollTop,ne=W.scrollLeft;I+=re,A+=ne}const $=M.width,D=M.height,z=x.width,H=x.height;w["--hint-top"]=`${I}px`,w["--hint-left"]=`${A}px`,w["--tooltip-width"]=`${$}px`,w["--tooltip-height"]=`${D}px`,w["--hint-width"]=`${z}px`,w["--hint-height"]=`${H}px`,i.value&&dn(w,i.value)})},h=()=>{requestAnimationFrame(()=>{!i.value||t.hintGap===void 0||dn({"--tooltip-hint-gap":t.hintGap},i.value)})};l.watch(()=>t.hintGap,h,{immediate:!0});const g=()=>{o.isShow=!0},p=()=>{o.isShow=!1},y=new MutationObserver(()=>{f()}),v=new ResizeObserver(()=>{var w;(o.isShow||t.isShow)&&!((w=n.value)!=null&&w.matches(":hover"))?p():f()}),k=w=>{y.observe(w,{childList:!0,attributes:!0,characterData:!0}),v.observe(w)};return l.onMounted(()=>{f(),i.value&&k(i.value),n.value&&k(n.value),window.addEventListener("scroll",f,!0),window.addEventListener("resize",f)}),l.onUnmounted(()=>{v.disconnect(),y.disconnect(),window.removeEventListener("scroll",f,!0),window.removeEventListener("resize",f)}),(w,M)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"tooltipRef",ref:n,class:"tooltip-yui-kit","data-testid":t.dataTestid,"aria-label":e.hint,onMouseenter:s,onMouseleave:u},[l.renderSlot(w.$slots,"default",{},void 0,!0),e.isCanShow?(l.openBlock(),l.createBlock(l.Teleport,{key:0,to:a.value},[l.createVNode(l.Transition,{name:"hint-animate",onEnter:c},{default:l.withCtx(()=>[e.isShow||o.isShow?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"hintRef",ref:i,"data-testid":t.dataTestid,class:l.normalizeClass(["tooltip-yui-kit__hint",r.value])},l.toDisplayString(e.hint),11,E7e)):l.createCommentVNode("",!0)]),_:1})],8,["to"])):l.createCommentVNode("",!0)],40,P7e))}}),[["__scopeId","data-v-2f1a6d22"]]),A7e=["data-testid"],D7e=["data-testid"],N7e=["data-testid"],j7e=["onClick","data-testid"],I7e=l.defineComponent({__name:"Popover",props:{isShow:{type:Boolean},iconName:{default:ce.moreVertical},options:{default:()=>[]},tooltip:{default:""},tooltipPosition:{default:"top-left"},dataTestid:{default:"Popover"}},emits:["close"],setup(e,{emit:t}){const n=e,i=t,r=l.reactive({isShow:!1}),a=l.ref(null),o=l.ref(null),{floatingStyles:s}=Qm(a,o,{middleware:[qm(10),Gm({crossAxis:!0,allowedPlacements:["bottom-end","bottom-start"]})],strategy:"fixed",placement:"bottom-start",whileElementsMounted:Xm}),u=l.computed(()=>({"popover-yui-kit__wrapper":!0,"active-yui-kit":r.isShow,"empty-yui-kit":n.options.length===0})),c=()=>r.isShow=!r.isShow,f=()=>{r.isShow=!1,i("close")},h=g=>{g.function(),f()};return l.watch(()=>n.isShow,()=>r.isShow=n.isShow),(g,p)=>(l.openBlock(),l.createBlock(kl,{hint:n.tooltip,size:"small",type:"black",position:n.tooltipPosition,"data-testid":n.dataTestid,"is-can-show":!!n.tooltip&&!r.isShow&&n.options.length>0},{default:l.withCtx(()=>{var y;return[l.withDirectives((l.openBlock(),l.createElementBlock("div",{class:"popover-yui-kit","data-testid":`${n.dataTestid}-Popover`},[l.createElementVNode("div",{class:l.normalizeClass(u.value),onClick:c,ref_key:"reference",ref:a,"data-testid":`${n.dataTestid}-PopoverShow`},[l.createVNode(ve,{class:"popover-yui-kit__icon",name:n.iconName,width:16,height:16,"data-testid":`${n.dataTestid}-PopoverShow-Icon`},null,8,["name","data-testid"])],10,D7e),(y=n.options)!=null&&y.length?l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:0,class:"popover-yui-kit__options",ref_key:"floating",ref:o,style:l.normalizeStyle(l.unref(s)),"data-testid":`${n.dataTestid}-PopoverShow-Options`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.options,(v,k)=>(l.openBlock(),l.createElementBlock("div",{class:"popover-yui-kit__options__item",style:l.normalizeStyle(v.style),key:k,onClick:l.withModifiers(w=>h(v),["stop"]),"data-testid":`${n.dataTestid}-Item${k}`},l.toDisplayString(v.value),13,j7e))),128))],12,N7e)),[[l.vShow,r.isShow]]):l.createCommentVNode("",!0)],8,A7e)),[[l.unref(Ls),f,void 0,{bubble:!0}]])]}),_:1},8,["hint","position","data-testid","is-can-show"]))}}),B1=pe(I7e,[["__scopeId","data-v-4846f564"]]),W7e=["colspan","rowspan","data-testid"],Go=pe(l.defineComponent({name:"TableTh",__name:"TableTh",props:{colspan:{default:1},rowspan:{default:1},dataTestid:{default:"DataHeader"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("th",{colspan:e.colspan,rowspan:e.rowspan,"data-testid":t.dataTestid,class:"table-th"},[l.renderSlot(n.$slots,"default",{},void 0,!0)],8,W7e))}}),[["__scopeId","data-v-39ad1e7b"]]),O7e=["data-testid"],Ml=pe(l.defineComponent({name:"HeadTableRow",__name:"HeadTableRow",props:{dataTestid:{default:"TableRow"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("tr",{class:"head-table-row","data-testid":t.dataTestid},[l.renderSlot(n.$slots,"default",{},void 0,!0)],8,O7e))}}),[["__scopeId","data-v-b2f1516a"]]),x4=(e,t,n,i)=>{const r=l.ref(!1),a=l.ref(100);let o=0,s=0;const u=l.computed(()=>[{"scroll-wrapper__track_hide":a.value===100,"scroll-wrapper__track_drag":r.value}]),c=l.computed(()=>a.value<100),f=()=>{if(e.value){const w=e.value.clientWidth,M=e.value.scrollWidth;return w>=M?100:w/M*100}return 100},h=()=>{if(!e.value||!t.value||!n.value||!i.value)return;const{scrollLeft:w,scrollWidth:M,clientWidth:x}=e.value,S=M-x;if(S<=0)return;const E=w/S,I=i.value.clientWidth,A=n.value.clientWidth,W=I-A,$=E*W;requestAnimationFrame(()=>{t.value&&dn({"--scroll-bar-left-position":`${$}px`},t.value)})},g=w=>{!e.value||!t.value||(r.value=!0,o=w.clientX,s=e.value.scrollLeft,document.addEventListener("pointermove",p),document.addEventListener("pointerup",y,!0))},p=w=>{if(r.value&&e.value&&n.value){const M=w.clientX-o,x=(e.value.scrollWidth-e.value.clientWidth)/(e.value.clientWidth-n.value.clientWidth);e.value.scrollLeft=s+M*x,h()}},y=()=>{r.value=!1,document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",y,!0)};return{onDrag:p,onTrackClick:w=>{if(e.value&&n.value){const M=w.currentTarget.getBoundingClientRect(),x=w.clientX-M.left,S=n.value.clientWidth,E=M.width;let I=(x-S/2)*((e.value.scrollWidth-e.value.clientWidth)/(E-S));I=Math.max(0,Math.min(I,e.value.scrollWidth-e.value.clientWidth)),e.value.scrollLeft=I,h()}},startDrag:g,getPercentHorizontalView:f,changeBarPosition:h,isDragging:r,scrollHorizontalWidthPercent:a,setHorizontalBarWidth:()=>{if(!e.value||!t.value)return;const w=f();a.value=w,dn({"--scroll-horizontal-bar-width":`${w}%`},t.value)},horizontalTrackClass:u,isExistHorizontalTrack:c}},S4=(e,t,n,i)=>{const r=l.ref(!1),a=l.ref(100);let o=0,s=0;const u=l.computed(()=>[{"scroll-wrapper__track_hide":a.value===100,"scroll-wrapper__track_drag":r.value}]),c=l.computed(()=>a.value<100),f=()=>{if(e.value){const w=e.value.clientHeight,M=e.value.scrollHeight;if(w>=M)return 100;if(w<M)return w/M*100}return 100},h=()=>{if(!e.value||!t.value||!n.value||!i.value)return;const{scrollTop:w,scrollHeight:M,clientHeight:x}=e.value,S=M-x;if(S<=0)return;const E=w/S,I=i.value.clientHeight,A=n.value.clientHeight,W=I-A,$=E*W;requestAnimationFrame(()=>{t.value&&dn({"--scroll-bar-top-postion":`${$}px`},t.value)})},g=w=>{!e.value||!t.value||(r.value=!0,o=w.clientY,s=e.value.scrollTop,document.addEventListener("pointermove",p),document.addEventListener("pointerup",y))},p=w=>{if(r.value&&e.value&&n.value){const M=w.clientY-o,x=(e.value.scrollHeight-e.value.clientHeight)/(e.value.clientHeight-n.value.clientHeight);e.value.scrollTop=s+M*x,h()}},y=()=>{r.value=!1,document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",y)};return{onDrag:p,onTrackClick:w=>{if(e.value&&n.value){const M=w.currentTarget.getBoundingClientRect(),x=w.clientY-M.top,S=n.value.clientHeight,E=M.height;let I=(x-S/2)*((e.value.scrollHeight-e.value.clientHeight)/(E-S));I=Math.max(0,Math.min(I,e.value.scrollHeight-e.value.clientHeight)),e.value.scrollTop=I,h()}},startDrag:g,getProcentVerticalView:f,changeBarPosition:h,isDragging:r,scrollVerticalHeightProcent:a,setVerticalBarHeight:()=>{if(!e.value||!t.value)return;const w=f();a.value=w,dn({"--scroll-vertical-bar-height":`${w}%`},t.value)},verticalTrackClass:u,isExistVerticalTrack:c}},z7e={class:"scroll-wrapper__vertical-wrapper"},L7e={class:"scroll-wrapper__horizont-wrapper"},Cl=pe(l.defineComponent({name:"ScrollWrapper",__name:"ScrollWrapper",props:{isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate","on-mounted"],setup(e,{expose:t,emit:n}){const i=n,r=l.ref(null),a=l.ref(null),o=l.ref(null),s=l.ref(null),u=l.ref(null),c=l.ref(null),{onTrackClick:f,startDrag:h,changeBarPosition:g,setVerticalBarHeight:p,verticalTrackClass:y,isExistVerticalTrack:v}=S4(r,a,s,o),{changeBarPosition:k,startDrag:w,onTrackClick:M,setHorizontalBarWidth:x,horizontalTrackClass:S,isExistHorizontalTrack:E}=x4(r,a,c,u),I=q=>{g(),k(),i("unmount-scroll",q)},A=()=>{requestAnimationFrame(()=>{W(),$()})},W=()=>{if(!r.value||!a.value)return;const q=getComputedStyle(a.value),Z=a.value.style.minHeight||q.minHeight,ue=a.value.style.maxHeight||q.maxHeight,Ne=a.value.style.height;dn({"--scroll-wrapper-height":`${Ne}`,"--scroll-wrapper-max-height":`${ue}`,"--scroll-wrapper-min-height":`${Z}`},a.value)},$=()=>{p(),x(),g(),k()},D=()=>{r.value&&r.value.addEventListener("scroll",I)},z=()=>{r.value&&(r.value.scrollTop=0)},H=()=>{r.value&&(r.value.scrollHeight<=r.value.clientHeight?i("unmount-paginate",!0):i("unmount-paginate",!1))},X=new MutationObserver(()=>{A(),H()}),re=new ResizeObserver(()=>{A(),H()}),ne=q=>{X.observe(q,{childList:!0,subtree:!0,attributes:!0}),re.observe(q)};return t({scrollToTop:z,setHeightSlot:W}),l.onMounted(()=>{A(),D(),a.value&&ne(a.value),o.value&&ne(o.value),window.addEventListener("resize",A),i("on-mounted")}),l.onUnmounted(()=>{window.removeEventListener("resize",A)}),(q,Z)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"scrollWrapperRef",ref:a,class:"scroll-wrapper"},[l.createElementVNode("div",z7e,[l.createElementVNode("div",L7e,[l.createElementVNode("div",{ref_key:"slotRef",ref:r,class:"scroll-wrapper__slot"},[l.renderSlot(q.$slots,"default",{},void 0,!0)],512),l.unref(E)||e.isShowHorizontalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"horizontTrackRef",ref:u,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_horizont",l.unref(S)]),onClick:Z[1]||(Z[1]=l.withModifiers((...ue)=>l.unref(M)&&l.unref(M)(...ue),["self","prevent","left"]))},[l.createElementVNode("div",{ref_key:"horizontBarRef",ref:c,class:"scroll-wrapper__bar",onPointerdown:Z[0]||(Z[0]=l.withModifiers((...ue)=>l.unref(w)&&l.unref(w)(...ue),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)]),l.unref(v)||e.isShowVerticalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"verticalTrackRef",ref:o,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_vertical",l.unref(y)]),onClick:Z[3]||(Z[3]=l.withModifiers((...ue)=>l.unref(f)&&l.unref(f)(...ue),["self","prevent","left"]))},[l.createElementVNode("div",{ref_key:"verticalBarRef",ref:s,class:"scroll-wrapper__bar",onPointerdown:Z[2]||(Z[2]=l.withModifiers((...ue)=>l.unref(h)&&l.unref(h)(...ue),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-b5d4825a"]]),$7e=["id","data-testid"],H7e=["id","data-testid"],R7e=["id","data-testid"],V1=pe(l.defineComponent({name:"TableNew",__name:"Table",props:{tableId:{},search:{},tbodyId:{},theadId:{},columnCount:{},dataTestid:{default:"Table"},isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate"],setup(e,{expose:t,emit:n}){var x;const i=e,r=n,a=l.reactive({headHeight:0,maxColumnCount:0}),o=l.ref(null),s=l.ref(null),u=l.ref(null),c=l.ref(null),f=l.ref(null),h=S=>{r("unmount-scroll",S)},g=S=>r("unmount-paginate",S),p=()=>{if(!o.value||!f.value)return;const S=o.value.querySelector("thead");if(!S)return;const E=S.getBoundingClientRect().height;a.headHeight=E,dn({"--scroll-track-margin-top":`${E}px`},f.value.$el)},y=()=>{f.value&&f.value.scrollToTop()},v=()=>{if(f.value&&c.value){const S=getComputedStyle(f.value.$el),E=Number(S.minHeight.replace(/\D/g,""));if(E&&E>0)return;dn({"min-height":`${a.headHeight+108}px`},f.value.$el)}},k=()=>{let S=1;if(s.value){for(let E=0;E<s.value.children.length;E++)S=Math.max(s.value.children[E].children.length,S);a.maxColumnCount=S}},w=new MutationObserver(()=>{k()}),M=new ResizeObserver(()=>{p()});return t({scrollToTop:y,setHeightSlot:(x=f.value)==null?void 0:x.setHeightSlot,tbodyRef:u,tableRef:o,theadRef:s}),l.onMounted(()=>{p(),k(),window.addEventListener("resize",p),o.value&&M.observe(o.value),s.value&&w.observe(s.value,{childList:!0,subtree:!0}),v()}),(S,E)=>(l.openBlock(),l.createBlock(Cl,{ref_key:"scrollWrapperRef",ref:f,class:"table",onUnmountScroll:h,onUnmountPaginate:g,"is-show-vertical-scroll":i.isShowVerticalScroll,"is-show-horizontal-scroll":i.isShowHorizontalScroll,"data-testid":`${i.dataTestid}-ScrollWrapper`},{default:l.withCtx(()=>[l.createElementVNode("table",{ref_key:"tableRef",ref:o,id:i.tableId,class:"table__table","data-testid":`${i.dataTestid}`},[l.renderSlot(S.$slots,"default",{},()=>{var I;return[l.createElementVNode("colgroup",null,[l.renderSlot(S.$slots,"colspan",{},void 0,!0)]),S.$slots.head?(l.openBlock(),l.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:s,id:i.theadId,class:"table__head","data-testid":`${i.dataTestid}-Thead`},[l.renderSlot(S.$slots,"head",{},void 0,!0),S.$slots.search?(l.openBlock(),l.createBlock(Ml,{key:0,class:"table__search-tr",id:(I=i.search)==null?void 0:I.rowId,ref_key:"searchRowRef",ref:c,"data-testid":`${i.dataTestid}-Search-Row`},{default:l.withCtx(()=>{var A;return[l.createVNode(Go,{colspan:i.columnCount||a.maxColumnCount,class:"table__search-th",id:(A=i.search)==null?void 0:A.headId,"data-testid":`${i.dataTestid}-SearchRow-Search`},{default:l.withCtx(()=>[l.renderSlot(S.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","id","data-testid"])]}),_:3},8,["id","data-testid"])):l.createCommentVNode("",!0)],8,H7e)):l.createCommentVNode("",!0),l.renderSlot(S.$slots,"body-group",{},()=>[S.$slots.body?(l.openBlock(),l.createElementBlock("tbody",{key:0,id:i.tbodyId,ref_key:"tbodyRef",ref:u,class:"table__body","data-testid":`${i.dataTestid}-Tbody`},[l.renderSlot(S.$slots,"body",{},void 0,!0)],8,R7e)):l.createCommentVNode("",!0)],!0)]},!0)],8,$7e)]),_:3},8,["is-show-vertical-scroll","is-show-horizontal-scroll","data-testid"]))}}),[["__scopeId","data-v-d2ee85b8"]]),B7e=["data-testid"],Xd=pe(l.defineComponent({name:"TableRow",__name:"TableRow",props:{type:{default:"default"},dataTestid:{}},setup(e){const t=e,n=l.computed(()=>[{"table-row_active":t.type==="selected"}]);return(i,r)=>(l.openBlock(),l.createElementBlock("tr",{class:l.normalizeClass(["table-row",n.value]),"data-testid":t.dataTestid},[l.renderSlot(i.$slots,"default",{},void 0,!0)],10,B7e))}}),[["__scopeId","data-v-2bcd1a53"]]),V7e=["rowspan","colspan","data-testid"],qd=l.defineComponent({name:"TableTd",__name:"TableTd",props:{colspan:{default:1},rowspan:{default:1},dataTestid:{default:"DataCell"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("td",{rowspan:e.rowspan,colspan:e.colspan,class:"table-td","data-testid":t.dataTestid},[l.renderSlot(n.$slots,"default")],8,V7e))}}),F1=pe(l.defineComponent({name:"SectionTableRow",__name:"SectionTableRow",props:{colspan:{},dataTestid:{default:"SectionTableRow"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createBlock(Xd,{class:"section-table-row","data-testid":t.dataTestid},{default:l.withCtx(()=>[l.createVNode(qd,{colspan:e.colspan,class:"section-table-row__td","data-testid":`${t.dataTestid}-DataCell`},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"]))}}),[["__scopeId","data-v-43e9ed3e"]]);var U1=(e=>(e.top="top",e.bottom="bottom",e))(U1||{});const F7e=["data-testid"],U7e=l.defineComponent({__name:"PopoverHover",props:{position:{default:U1.bottom},dataTestid:{default:"PopoverHover"}},setup(e){const t=e,n=l.computed(()=>({"popover-hover-yui-kit":!0,"popover_hover-yui-kit_top":t.position==U1.top}));return(i,r)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n.value),"data-testid":t.dataTestid},[l.renderSlot(i.$slots,"default",{},void 0,!0)],10,F7e))}}),Y1=pe(U7e,[["__scopeId","data-v-e6548269"]]),Y7e=["disabled","name","value","data-testid"],X1=pe(l.defineComponent({name:"Radio",__name:"Radio",props:l.mergeModels({name:{},value:{},disabled:{type:Boolean,default:!1},dataTestid:{default:"Radio"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=l.useModel(e,"modelValue");return(i,r)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",{"onUpdate:modelValue":r[0]||(r[0]=a=>n.value=a),type:"radio",disabled:e.disabled,name:e.name,value:e.value,class:"radio","data-testid":t.dataTestid},null,8,Y7e)),[[l.vModelRadio,n.value]])}}),[["__scopeId","data-v-d73c922e"]]),X7e=["data-testid"],q7e=["data-testid"],_4=pe(l.defineComponent({name:"ChoosenMiniOptions",__name:"ChoosenMiniOptions",props:{options:{},dataTestid:{default:"ChoosenMiniOptions"}},emits:["remove"],setup(e,{emit:t}){const n=e,i=t,r=a=>{i("remove",a)};return(a,o)=>(l.openBlock(),l.createElementBlock("div",{class:"choosen-mini-options","data-testid":n.dataTestid},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,(s,u)=>(l.openBlock(),l.createElementBlock("div",{key:s.key,class:"choosen-mini-options__option","data-testid":`${n.dataTestid}-Option-Item${u}`},[l.createVNode(Vt,{"data-testid":`${n.dataTestid}-Badge${u}`,type:l.unref(tt).blue,text:l.unref(Ih)(s)?s.hint:s.value,class:"choosen-mini-options__badges",disabled:""},null,8,["data-testid","type","text"]),l.createVNode(ve,{"data-testid":`${n.dataTestid}-Icon${u}`,name:l.unref(ce).crossLarge,width:10,height:10,class:"choosen-mini-options__cross",onClick:c=>r(s.key)},null,8,["data-testid","name","onClick"])],8,q7e))),128))],8,X7e))}}),[["__scopeId","data-v-65ba1506"]]),G7e=["data-testid"],K7e=["data-testid"],Q7e=["data-testid"],J7e=["data-testid"],Z7e=["data-testid"],eCe=["data-testid"],q1=pe(l.defineComponent({name:"BaseFilter",__name:"BaseFilter",props:l.mergeModels({options:{},title:{},isSearch:{type:Boolean,default:!1},isPosibleToClear:{type:Boolean,default:!1},isShowMiniOptions:{type:Boolean,default:!1},isOpened:{type:Boolean,default:!1},tooltipPosition:{default:"top-center"},onUnmountPagination:{},defaultOption:{default:"Выберите значение"},class:{},disabled:{type:Boolean},dataTestid:{default:"BaseFilter"}},{modelValue:{default:[]},modelModifiers:{}}),emits:l.mergeModels(["change","unmount-open","unmount-search","unmount-search-enter","unmount-pagination"],["update:modelValue"]),setup(e,{emit:t}){const n=e,i=l.reactive({isHovered:!1}),r=t,a=l.ref(null),o=l.ref(null),s=l.useModel(e,"modelValue"),u=l.ref(n.isOpened);l.watch(u,()=>r("unmount-open",u.value)),l.watch(()=>n.isOpened,()=>{u.value=n.isOpened}),l.watch(()=>n.onUnmountPagination,()=>{$()});const c=l.ref(""),f=l.computed(()=>{let D=[];return c.value?(Hs(n.options)?D=n.options.filter(z=>{var H;return z.value.toLowerCase().includes(c.value.toLowerCase())||((H=z==null?void 0:z.hint)==null?void 0:H.toLowerCase().includes(c.value.toLowerCase()))}):D=n.options.filter(z=>z.value.toLowerCase().includes(c.value.toLowerCase())),D):(Hs(n.options),D=n.options,D)}),h=l.computed(()=>{var z;return((z=n.options.find(H=>Hi.isArray(s.value)?s.value.includes(H.key):H.key===String(s.value)))==null?void 0:z.value)||n.defaultOption}),g=l.computed(()=>n.options.filter(D=>Hi.isArray(s.value)?s.value.includes(D.key)&&D.value!==h.value:D.key===String(s.value))),p=l.computed(()=>n.options.filter(D=>Hi.isArray(s.value)?s.value.includes(D.key)&&D.value===h.value:D.key===String(s.value))),y=l.computed(()=>{var H,X,re;const D=n.options;let z;return Hi.isArray(s.value)?Hs(D)?z=(H=D.find(ne=>ne.value===h.value))==null?void 0:H.hint:z=(X=D.find(ne=>ne.value===h.value))==null?void 0:X.value:z=(re=D.find(ne=>ne.key===String(s.value)))==null?void 0:re.value,z||""}),v=()=>{i.isHovered=!0},k=()=>{i.isHovered=!1},w=l.computed(()=>{var D;return Hs(n.options)?i.isHovered&&!!y.value:((D=a.value)==null?void 0:D.isSpanOverflow)||!1}),M=l.computed(()=>Hi.isArray(s.value)?n.isPosibleToClear&&s.value.length>0:n.isPosibleToClear&&s.value),x=l.computed(()=>Hi.isArray(s.value)&&s.value.length>1),S=l.computed(()=>Hi.isArray(s.value)?s.value.length:null),E=async D=>{if(Hi.isArray(s.value))s.value.includes(D)?s.value=s.value.filter(z=>z!==D):s.value=[...s.value,D];else{let z=n.options.find(H=>H.key===D);!z&&Hs(n.options)&&(z=n.options.find(H=>H.hint===D)),s.value=(z==null?void 0:z.key)||"",u.value=!1}await l.nextTick(),r("change",String(s.value))},I=D=>{u.value=D},A=async()=>{Hi.isArray(s.value)?s.value=[]:s.value="",await l.nextTick(),r("change",s.value)},W=new IntersectionObserver(D=>{D.forEach(z=>{z.isIntersecting&&r("unmount-pagination")})}),$=()=>{o.value&&n.onUnmountPagination&&(W.unobserve(o.value),W.observe(o.value))};return l.onMounted(()=>{$()}),l.onUnmounted(()=>{W.disconnect()}),(D,z)=>(l.openBlock(),l.createBlock(vo,{onChange:I,"is-opened":u.value,class:l.normalizeClass(n.class),"header-classes":"filter__header","options-classes":"filter__options","data-testid":n.dataTestid},{header:l.withCtx(()=>[l.createElementVNode("span",{class:l.normalizeClass(["filter__header-title",{"filter__header-title__active":u.value}]),"data-testid":`${n.dataTestid}-Title`},l.toDisplayString(e.title),11,G7e),l.createVNode(kl,{position:e.tooltipPosition,type:"blue","is-can-show":w.value&&!(x.value&&e.isShowMiniOptions),hint:y.value,"hint-gap":28,class:"filter__header-tooltip","data-testid":`${n.dataTestid}-Tooltip`},{default:l.withCtx(()=>[l.createVNode(Vt,{ref_key:"badgesRef",ref:a,type:h.value===n.defaultOption?l.unref(tt).default:l.unref(tt).blue,class:"filter__options-badge","data-testid":`${n.dataTestid}-Badge`,text:h.value,onMouseenter:v,onMouseleave:k,disabled:""},null,8,["type","data-testid","text"]),x.value&&e.isShowMiniOptions?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter__values","data-testid":`${n.dataTestid}-Filter-Value`},[l.createVNode(_4,{"data-testid":`${n.dataTestid}-Filter-Value-MiniOptions`,onClick:z[0]||(z[0]=l.withModifiers(()=>{},["stop"])),options:p.value,onRemove:E},null,8,["data-testid","options"])],8,K7e)):l.createCommentVNode("",!0)]),_:1},8,["position","is-can-show","hint","data-testid"]),S.value&&S.value>1?(l.openBlock(),l.createElementBlock("span",{key:0,class:"filter__count","data-testid":`${n.dataTestid}-Filter-Count`},[l.createTextVNode(" +"+l.toDisplayString(S.value-1)+" ",1),x.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter__values","data-testid":`${n.dataTestid}-Filter-Values`},[l.createVNode(_4,{onClick:z[1]||(z[1]=l.withModifiers(()=>{},["stop"])),options:g.value,onRemove:E,"data-testid":`${n.dataTestid}-MiniOptions`},null,8,["options","data-testid"])],8,J7e)):l.createCommentVNode("",!0)],8,Q7e)):l.createCommentVNode("",!0),M.value?(l.openBlock(),l.createElementBlock("span",{key:1,class:"filter__cross",onClick:l.withModifiers(A,["stop"]),"data-testid":`${n.dataTestid}-Filter-Cross`},[l.createVNode(ve,{name:l.unref(ce).crossLarge,width:16,height:16},null,8,["name"])],8,Z7e)):l.createCommentVNode("",!0)]),options:l.withCtx(()=>[e.isSearch?(l.openBlock(),l.createBlock(yl,{key:0,modelValue:c.value,"onUpdate:modelValue":z[2]||(z[2]=H=>c.value=H),"show-history":!1,"data-testid":`${n.dataTestid}-Search`,onInput:z[3]||(z[3]=H=>D.$emit("unmount-search",H)),onEnter:z[4]||(z[4]=H=>D.$emit("unmount-search-enter",H))},null,8,["modelValue","data-testid"])):l.createCommentVNode("",!0),l.createVNode(Wh,{"data-testid":`${n.dataTestid}-Options`,class:"filter__options-option",options:f.value,"default-option":h.value,onChange:E},{default:l.withCtx(()=>[l.createElementVNode("li",{class:"filter__options-underline","data-testid":`${n.dataTestid}-Underline`},[...z[5]||(z[5]=[l.createElementVNode("hr",{class:"filter__options-underline-hr"},null,-1)])],8,eCe)]),_:1},8,["data-testid","options","default-option"]),l.withDirectives(l.createElementVNode("div",{ref_key:"lastOptionRef",ref:o,class:"filter__last-option"},null,512),[[l.vShow,e.onUnmountPagination]])]),_:1},8,["is-opened","class","data-testid"]))}}),[["__scopeId","data-v-a3d3018c"]]),tCe=["data-testid"],Gd=pe(l.defineComponent({name:"Range",__name:"Range",props:l.mergeModels({min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1},dataTestid:{default:"Range"}},{modelValue:{default:0},modelModifiers:{}}),emits:l.mergeModels(["unmount-change","unmount-input"],["update:modelValue"]),setup(e,{emit:t}){const n=e,i=t,r=l.useModel(e,"modelValue"),a=l.ref(null);l.watch(r,()=>{s()});const o=()=>(r.value-n.min)/(n.max-n.min)*100,s=()=>{requestAnimationFrame(()=>{a.value&&dn({"--progress":o()+"%"},a.value)})},u=f=>{const h=f.target;h&&i("unmount-change",Number(h.value))},c=f=>{const h=f.target;h&&i("unmount-change",Number(h.value))};return l.onMounted(()=>{s()}),(f,h)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",l.mergeProps({ref_key:"input",ref:a,type:"range"},n,{class:"range","onUpdate:modelValue":h[0]||(h[0]=g=>r.value=g),onChange:u,onInput:c,"data-testid":n.dataTestid}),null,16,tCe)),[[l.vModelText,r.value]])}}),[["__scopeId","data-v-765973ae"]]),nCe=["id","data-testid"],iCe=["data-testid"],rCe=["data-testid"],G1=pe(l.defineComponent({name:"TableNew",__name:"TableNew",props:{tableId:{},search:{},tbodyId:{},theadId:{},columnCount:{},dataTestid:{default:"Table"},isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate"],setup(e,{expose:t,emit:n}){var M;const i=e,r=n,a=l.reactive({headHeight:0,maxColumnCount:0}),o=l.ref(null),s=l.ref(null),u=l.ref(null),c=l.ref(null),f=l.ref(null),h=x=>{r("unmount-scroll",x)},g=()=>{if(!o.value||!f.value)return;const x=o.value.querySelector("thead");if(!x)return;const S=x.getBoundingClientRect().height;a.headHeight=S,dn({"--scroll-track-margin-top":`${S}px`},f.value.$el)},p=()=>{f.value&&f.value.scrollToTop()},y=()=>{if(f.value&&c.value){const x=getComputedStyle(f.value.$el),S=Number(x.minHeight.replace(/\D/g,""));if(S&&S>0)return;dn({"min-height":`${a.headHeight+108}px`},f.value.$el)}},v=()=>{let x=1;if(s.value){for(let S=0;S<s.value.children.length;S++)x=Math.max(s.value.children[S].children.length,x);a.maxColumnCount=x}},k=new MutationObserver(()=>{v()}),w=new ResizeObserver(()=>{g()});return t({scrollToTop:p,setHeightSlot:(M=f.value)==null?void 0:M.setHeightSlot,tbodyRef:u,tableRef:o,theadRef:s}),l.onMounted(()=>{g(),v(),window.addEventListener("resize",g),o.value&&w.observe(o.value),s.value&&k.observe(s.value,{childList:!0,subtree:!0}),y()}),(x,S)=>(l.openBlock(),l.createBlock(Cl,{ref_key:"scrollWrapperRef",ref:f,class:"table",onUnmountScroll:h,"is-show-vertical-scroll":i.isShowVerticalScroll,"is-show-horizontal-scroll":i.isShowHorizontalScroll,"data-testid":`${i.dataTestid}-ScrollWrapper`},{default:l.withCtx(()=>[l.createElementVNode("table",{ref_key:"tableRef",ref:o,id:i.tableId,class:"table__table","data-testid":`${i.dataTestid}`},[l.renderSlot(x.$slots,"default",{},()=>[l.createElementVNode("colgroup",null,[l.renderSlot(x.$slots,"colspan",{},void 0,!0)]),x.$slots.head?(l.openBlock(),l.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:s,class:"table__head","data-testid":`${i.dataTestid}-Thead`},[l.renderSlot(x.$slots,"head",{},void 0,!0),x.$slots.search?(l.openBlock(),l.createBlock(Ml,{key:0,class:"table__search-tr",ref_key:"searchRowRef",ref:c,"data-testid":`${i.dataTestid}-Search-Row`},{default:l.withCtx(()=>[l.createVNode(Go,{colspan:a.maxColumnCount,class:"table__search-th","data-testid":`${i.dataTestid}-SearchRow-Search`},{default:l.withCtx(()=>[l.renderSlot(x.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"])):l.createCommentVNode("",!0)],8,iCe)):l.createCommentVNode("",!0),l.renderSlot(x.$slots,"body-group",{},()=>[x.$slots.body?(l.openBlock(),l.createElementBlock("tbody",{key:0,ref_key:"tbodyRef",ref:u,class:"table__body","data-testid":`${i.dataTestid}-Tbody`},[l.renderSlot(x.$slots,"body",{},void 0,!0)],8,rCe)):l.createCommentVNode("",!0)],!0)],!0)],8,nCe)]),_:3},8,["is-show-vertical-scroll","is-show-horizontal-scroll","data-testid"]))}}),[["__scopeId","data-v-4951b36e"]]),aCe=["data-testid"],K1=pe(l.defineComponent({name:"TableRow",__name:"TableRowNew",props:{type:{default:"default"},dataTestid:{}},setup(e){const t=e,n=l.computed(()=>[{"table-row_active":t.type==="selected"}]);return(i,r)=>(l.openBlock(),l.createElementBlock("tr",{class:l.normalizeClass(["table-row",n.value]),"data-testid":t.dataTestid},[l.renderSlot(i.$slots,"default",{},void 0,!0)],10,aCe))}}),[["__scopeId","data-v-b142a9a4"]]),oCe=["data-testid"],Kd=pe(l.defineComponent({name:"HeadTableRow",__name:"HeadTableRowNew",props:{dataTestid:{default:"TableRow"}},setup(e){const t=e;return(n,i)=>(l.openBlock(),l.createElementBlock("tr",{class:"head-table-row","data-testid":t.dataTestid},[l.renderSlot(n.$slots,"default",{},void 0,!0)],8,oCe))}}),[["__scopeId","data-v-1cac20aa"]]),sCe={class:"scroll-wrapper__vertical-wrapper"},lCe={class:"scroll-wrapper__horizont-wrapper"},uCe=pe(l.defineComponent({name:"ScrollWrapper",__name:"ScrollWrapperNew",props:{isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate","on-mounted"],setup(e,{expose:t,emit:n}){const i=n,r=l.ref(null),a=l.ref(null),o=l.ref(null),s=l.ref(null),u=l.ref(null),c=l.ref(null),{onTrackClick:f,startDrag:h,changeBarPosition:g,setVerticalBarHeight:p,verticalTrackClass:y,isExistVerticalTrack:v}=S4(r,a,s,o),{changeBarPosition:k,startDrag:w,onTrackClick:M,setHorizontalBarWidth:x,horizontalTrackClass:S,isExistHorizontalTrack:E}=x4(r,a,c,u),I=ne=>{g(),k(),i("unmount-scroll",ne)},A=()=>{requestAnimationFrame(()=>{W(),$()})},W=()=>{if(!r.value||!a.value)return;const ne=getComputedStyle(a.value),q=a.value.style.minHeight||ne.minHeight,Z=a.value.style.maxHeight||ne.maxHeight,ue=a.value.style.height;dn({"--scroll-wrapper-height":`${ue}`,"--scroll-wrapper-max-height":`${Z}`,"--scroll-wrapper-min-height":`${q}`},a.value)},$=()=>{p(),x(),g(),k()},D=()=>{r.value&&r.value.addEventListener("scroll",I)},z=()=>{r.value&&(r.value.scrollTop=0)},H=new MutationObserver(()=>{A()}),X=new ResizeObserver(()=>{A()}),re=ne=>{H.observe(ne,{childList:!0,subtree:!0,attributes:!0}),X.observe(ne)};return t({scrollToTop:z,setHeightSlot:W}),l.onMounted(()=>{A(),D(),a.value&&re(a.value),o.value&&re(o.value),window.addEventListener("resize",A),i("on-mounted")}),l.onUnmounted(()=>{window.removeEventListener("resize",A)}),(ne,q)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"scrollWrapperRef",ref:a,class:"scroll-wrapper"},[l.createElementVNode("div",sCe,[l.createElementVNode("div",lCe,[l.createElementVNode("div",{ref_key:"slotRef",ref:r,class:"scroll-wrapper__slot"},[l.renderSlot(ne.$slots,"default",{},void 0,!0)],512),l.unref(E)||e.isShowHorizontalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"horizontTrackRef",ref:u,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_horizont",l.unref(S)]),onClick:q[1]||(q[1]=l.withModifiers((...Z)=>l.unref(M)&&l.unref(M)(...Z),["prevent","left"]))},[l.createElementVNode("div",{ref_key:"horizontBarRef",ref:c,class:"scroll-wrapper__bar",onMousedown:q[0]||(q[0]=l.withModifiers((...Z)=>l.unref(w)&&l.unref(w)(...Z),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)]),l.unref(v)||e.isShowVerticalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"verticalTrackRef",ref:o,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_vertical",l.unref(y)]),onClick:q[3]||(q[3]=l.withModifiers((...Z)=>l.unref(f)&&l.unref(f)(...Z),["prevent","left"]))},[l.createElementVNode("div",{ref_key:"verticalBarRef",ref:s,class:"scroll-wrapper__bar",onMousedown:q[2]||(q[2]=l.withModifiers((...Z)=>l.unref(h)&&l.unref(h)(...Z),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-b541879b"]]),dCe=["data-testid"],cCe=["data-testid"],fCe=["data-testid"],Q1=pe(l.defineComponent({name:"TableSimple",__name:"TableSimple",props:{dataTestid:{default:"TableSimple"}},setup(e,{expose:t}){const n=e,i=l.ref(null),r=l.ref(null),a=l.ref(null),o=l.ref(null),s=l.computed(()=>{let u=1;if(r.value)for(let c=0;c<r.value.children.length;c++)u=Math.max(r.value.children[c].children.length,u);return u});return t({tbodyRef:a,tableRef:i,theadRef:r}),(u,c)=>(l.openBlock(),l.createElementBlock("table",{ref_key:"tableRef",ref:i,class:"simple-table-yui-kit","data-testid":`${n.dataTestid}`},[l.renderSlot(u.$slots,"default",{},()=>[l.renderSlot(u.$slots,"colspan",{},void 0,!0),u.$slots.head?(l.openBlock(),l.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:r,class:"simple-table-yui-kit__head","data-testid":`${n.dataTestid}-Thead`},[l.renderSlot(u.$slots,"head",{},void 0,!0),u.$slots.search?(l.openBlock(),l.createBlock(Kd,{key:0,class:"table-new-yui-kit__search",ref_key:"searchRowRef",ref:o,"data-testid":`${n.dataTestid}-Search-Row`},{default:l.withCtx(()=>[l.createVNode(Go,{colspan:s.value,class:"table-new-yui-kit__th","data-testid":`${n.dataTestid}-SearchRow-Search`},{default:l.withCtx(()=>[l.renderSlot(u.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"])):l.createCommentVNode("",!0)],8,cCe)):l.createCommentVNode("",!0),l.renderSlot(u.$slots,"body-group",{},()=>[u.$slots.body?(l.openBlock(),l.createElementBlock("tbody",{key:0,ref_key:"tbodyRef",ref:a,class:"simple-table-yui-kit__body","data-testid":`${n.dataTestid}-Tbody`},[l.renderSlot(u.$slots,"body",{},void 0,!0)],8,fCe)):l.createCommentVNode("",!0)],!0)],!0)],8,dCe))}}),[["__scopeId","data-v-834ebe10"]]),hCe=["data-testid"],mCe=["data-testid"],pCe=["onClick","data-testid"],gCe=["data-testid"],J1=pe(l.defineComponent({name:"Tabs",__name:"Tabs",props:{tabCount:{},dataTestid:{default:"Tabs"}},emits:["unmount-tab"],setup(e,{emit:t}){const n=e,i=t,r=l.reactive({activeTab:1}),a=s=>Array.from({length:s},(u,c)=>c+1),o=s=>{r.activeTab=s,i("unmount-tab",s)};return(s,u)=>(l.openBlock(),l.createElementBlock("div",{"data-testid":n.dataTestid,class:"tabs"},[l.createElementVNode("nav",{class:"tabs__navigation","data-testid":`${n.dataTestid}-Navigation`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a(n.tabCount),c=>(l.openBlock(),l.createElementBlock("button",{key:c,onClick:f=>o(c),class:l.normalizeClass(["tabs__navigation-button",{active:r.activeTab===c}]),"data-testid":`${n.dataTestid}-Navigation-Button`},[l.renderSlot(s.$slots,`header${c}`,{},void 0,!0)],10,pCe))),128))],8,mCe),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a(n.tabCount),c=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:c},[r.activeTab===c?(l.openBlock(),l.createElementBlock("article",{key:0,"data-testid":`${n.dataTestid}-Content`,class:"tabs__navigation-content"},[l.renderSlot(s.$slots,`tab${c}`,{},void 0,!0)],8,gCe)):l.createCommentVNode("",!0)],64))),128))],8,hCe))}}),[["__scopeId","data-v-eb8ab4da"]]);function zt(e){this.content=e}zt.prototype={constructor:zt,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var i=n&&n!=e?this.remove(n):this,r=i.find(e),a=i.content.slice();return r==-1?a.push(n||e,t):(a[r+1]=t,n&&(a[r]=n)),new zt(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new zt(n)},addToStart:function(e,t){return new zt([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new zt(n)},addBefore:function(e,t,n){var i=this.remove(t),r=i.content.slice(),a=i.find(e);return r.splice(a==-1?r.length:a,0,t,n),new zt(r)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=zt.from(e),e.size?new zt(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=zt.from(e),e.size?new zt(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=zt.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},zt.from=function(e){if(e instanceof zt)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new zt(t)};function T4(e,t,n){for(let i=0;;i++){if(i==e.childCount||i==t.childCount)return e.childCount==t.childCount?null:n;let r=e.child(i),a=t.child(i);if(r==a){n+=r.nodeSize;continue}if(!r.sameMarkup(a))return n;if(r.isText&&r.text!=a.text){for(let o=0;r.text[o]==a.text[o];o++)n++;return n}if(r.content.size||a.content.size){let o=T4(r.content,a.content,n+1);if(o!=null)return o}n+=r.nodeSize}}function P4(e,t,n,i){for(let r=e.childCount,a=t.childCount;;){if(r==0||a==0)return r==a?null:{a:n,b:i};let o=e.child(--r),s=t.child(--a),u=o.nodeSize;if(o==s){n-=u,i-=u;continue}if(!o.sameMarkup(s))return{a:n,b:i};if(o.isText&&o.text!=s.text){let c=0,f=Math.min(o.text.length,s.text.length);for(;c<f&&o.text[o.text.length-c-1]==s.text[s.text.length-c-1];)c++,n--,i--;return{a:n,b:i}}if(o.content.size||s.content.size){let c=P4(o.content,s.content,n-1,i-1);if(c)return c}n-=u,i-=u}}class te{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let i=0;i<t.length;i++)this.size+=t[i].nodeSize}nodesBetween(t,n,i,r=0,a){for(let o=0,s=0;s<n;o++){let u=this.content[o],c=s+u.nodeSize;if(c>t&&i(u,r+s,a||null,o)!==!1&&u.content.size){let f=s+1;u.nodesBetween(Math.max(0,t-f),Math.min(u.content.size,n-f),i,r+f)}s=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,i,r){let a="",o=!0;return this.nodesBetween(t,n,(s,u)=>{let c=s.isText?s.text.slice(Math.max(t,u)-u,n-u):s.isLeaf?r?typeof r=="function"?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&c||s.isTextblock)&&i&&(o?o=!1:a+=i),a+=c},0),a}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,i=t.firstChild,r=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(i)&&(r[r.length-1]=n.withText(n.text+i.text),a=1);a<t.content.length;a++)r.push(t.content[a]);return new te(r,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let i=[],r=0;if(n>t)for(let a=0,o=0;o<n;a++){let s=this.content[a],u=o+s.nodeSize;u>t&&((o<t||u>n)&&(s.isText?s=s.cut(Math.max(0,t-o),Math.min(s.text.length,n-o)):s=s.cut(Math.max(0,t-o-1),Math.min(s.content.size,n-o-1))),i.push(s),r+=s.nodeSize),o=u}return new te(i,r)}cutByIndex(t,n){return t==n?te.empty:t==0&&n==this.content.length?this:new te(this.content.slice(t,n))}replaceChild(t,n){let i=this.content[t];if(i==n)return this;let r=this.content.slice(),a=this.size+n.nodeSize-i.nodeSize;return r[t]=n,new te(r,a)}addToStart(t){return new te([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new te(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(t.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let n=this.content[t];if(!n)throw new RangeError("Index "+t+" out of range for "+this);return n}maybeChild(t){return this.content[t]||null}forEach(t){for(let n=0,i=0;n<this.content.length;n++){let r=this.content[n];t(r,i,n),i+=r.nodeSize}}findDiffStart(t,n=0){return T4(this,t,n)}findDiffEnd(t,n=this.size,i=t.size){return P4(this,t,n,i)}findIndex(t){if(t==0)return Qd(0,t);if(t==this.size)return Qd(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,i=0;;n++){let r=this.child(n),a=i+r.nodeSize;if(a>=t)return a==t?Qd(n+1,a):Qd(n,i);i=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return te.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new te(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return te.empty;let n,i=0;for(let r=0;r<t.length;r++){let a=t[r];i+=a.nodeSize,r&&a.isText&&t[r-1].sameMarkup(a)?(n||(n=t.slice(0,r)),n[n.length-1]=a.withText(n[n.length-1].text+a.text)):n&&n.push(a)}return new te(n||t,i)}static from(t){if(!t)return te.empty;if(t instanceof te)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new te([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}te.empty=new te([],0);const Z1={index:0,offset:0};function Qd(e,t){return Z1.index=e,Z1.offset=t,Z1}function Jd(e,t){if(e===t)return!0;if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++)if(!Jd(e[i],t[i]))return!1}else{for(let i in e)if(!(i in t)||!Jd(e[i],t[i]))return!1;for(let i in t)if(!(i in e))return!1}return!0}let Ge=class vy{constructor(t,n){this.type=t,this.attrs=n}addToSet(t){let n,i=!1;for(let r=0;r<t.length;r++){let a=t[r];if(this.eq(a))return t;if(this.type.excludes(a.type))n||(n=t.slice(0,r));else{if(a.type.excludes(this.type))return t;!i&&a.type.rank>this.type.rank&&(n||(n=t.slice(0,r)),n.push(this),i=!0),n&&n.push(a)}}return n||(n=t.slice()),i||n.push(this),n}removeFromSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return t.slice(0,n).concat(t.slice(n+1));return t}isInSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return!0;return!1}eq(t){return this==t||this.type==t.type&&Jd(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let i=t.marks[n.type];if(!i)throw new RangeError(`There is no mark type ${n.type} in this schema`);let r=i.create(n.attrs);return i.checkAttrs(r.attrs),r}static sameSet(t,n){if(t==n)return!0;if(t.length!=n.length)return!1;for(let i=0;i<t.length;i++)if(!t[i].eq(n[i]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return vy.none;if(t instanceof vy)return[t];let n=t.slice();return n.sort((i,r)=>i.type.rank-r.type.rank),n}};Ge.none=[];class Zd extends Error{}class le{constructor(t,n,i){this.content=t,this.openStart=n,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let i=A4(this.content,t+this.openStart,n);return i&&new le(i,this.openStart,this.openEnd)}removeBetween(t,n){return new le(E4(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return le.empty;let i=n.openStart||0,r=n.openEnd||0;if(typeof i!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new le(te.fromJSON(t,n.content),i,r)}static maxOpen(t,n=!0){let i=0,r=0;for(let a=t.firstChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.firstChild)i++;for(let a=t.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)r++;return new le(t,i,r)}}le.empty=new le(te.empty,0,0);function E4(e,t,n){let{index:i,offset:r}=e.findIndex(t),a=e.maybeChild(i),{index:o,offset:s}=e.findIndex(n);if(r==t||a.isText){if(s!=n&&!e.child(o).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(i!=o)throw new RangeError("Removing non-flat range");return e.replaceChild(i,a.copy(E4(a.content,t-r-1,n-r-1)))}function A4(e,t,n,i){let{index:r,offset:a}=e.findIndex(t),o=e.maybeChild(r);if(a==t||o.isText)return i&&!i.canReplace(r,r,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=A4(o.content,t-a-1,n,o);return s&&e.replaceChild(r,o.copy(s))}function yCe(e,t,n){if(n.openStart>e.depth)throw new Zd("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Zd("Inconsistent open depths");return D4(e,t,n,0)}function D4(e,t,n,i){let r=e.index(i),a=e.node(i);if(r==t.index(i)&&i<e.depth-n.openStart){let o=D4(e,t,n,i+1);return a.copy(a.content.replaceChild(r,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==i&&t.depth==i){let o=e.parent,s=o.content;return Fa(o,s.cut(0,e.parentOffset).append(n.content).append(s.cut(t.parentOffset)))}else{let{start:o,end:s}=bCe(n,e);return Fa(a,j4(e,o,s,t,i))}else return Fa(a,ec(e,t,i))}function N4(e,t){if(!t.type.compatibleContent(e.type))throw new Zd("Cannot join "+t.type.name+" onto "+e.type.name)}function ep(e,t,n){let i=e.node(n);return N4(i,t.node(n)),i}function Va(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function xl(e,t,n,i){let r=(t||e).node(n),a=0,o=t?t.index(n):r.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Va(e.nodeAfter,i),a++));for(let s=a;s<o;s++)Va(r.child(s),i);t&&t.depth==n&&t.textOffset&&Va(t.nodeBefore,i)}function Fa(e,t){return e.type.checkContent(t),e.copy(t)}function j4(e,t,n,i,r){let a=e.depth>r&&ep(e,t,r+1),o=i.depth>r&&ep(n,i,r+1),s=[];return xl(null,e,r,s),a&&o&&t.index(r)==n.index(r)?(N4(a,o),Va(Fa(a,j4(e,t,n,i,r+1)),s)):(a&&Va(Fa(a,ec(e,t,r+1)),s),xl(t,n,r,s),o&&Va(Fa(o,ec(n,i,r+1)),s)),xl(i,null,r,s),new te(s)}function ec(e,t,n){let i=[];if(xl(null,e,n,i),e.depth>n){let r=ep(e,t,n+1);Va(Fa(r,ec(e,t,n+1)),i)}return xl(t,null,n,i),new te(i)}function bCe(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let a=n-1;a>=0;a--)r=t.node(a).copy(te.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}class Sl{constructor(t,n,i){this.pos=t,this.path=n,this.parentOffset=i,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let i=this.pos-this.path[this.path.length-1],r=t.child(n);return i?t.child(n).cut(i):r}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let i=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let a=0;a<t;a++)r+=i.child(a).nodeSize;return r}marks(){let t=this.parent,n=this.index();if(t.content.size==0)return Ge.none;if(this.textOffset)return t.child(n).marks;let i=t.maybeChild(n-1),r=t.maybeChild(n);if(!i){let s=i;i=r,r=s}let a=i.marks;for(var o=0;o<a.length;o++)a[o].type.spec.inclusive===!1&&(!r||!a[o].isInSet(r.marks))&&(a=a[o--].removeFromSet(a));return a}marksAcross(t){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let i=n.marks,r=t.parent.maybeChild(t.index());for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}sharedDepth(t){for(let n=this.depth;n>0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos<this.pos)return t.blockRange(this);for(let i=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);i>=0;i--)if(t.pos<=this.end(i)&&(!n||n(this.node(i))))return new tc(this,t,i);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let n=1;n<=this.depth;n++)t+=(t?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return t+":"+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let i=[],r=0,a=n;for(let o=t;;){let{index:s,offset:u}=o.content.findIndex(a),c=a-u;if(i.push(o,s,r+u),!c||(o=o.child(s),o.isText))break;a=c-1,r+=u+1}return new Sl(n,i,a)}static resolveCached(t,n){let i=I4.get(t);if(i)for(let a=0;a<i.elts.length;a++){let o=i.elts[a];if(o.pos==n)return o}else I4.set(t,i=new wCe);let r=i.elts[i.i]=Sl.resolve(t,n);return i.i=(i.i+1)%vCe,r}}class wCe{constructor(){this.elts=[],this.i=0}}const vCe=12,I4=new WeakMap;class tc{constructor(t,n,i){this.$from=t,this.$to=n,this.depth=i}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const kCe=Object.create(null);let Hr=class ky{constructor(t,n,i,r=Ge.none){this.type=t,this.attrs=n,this.marks=r,this.content=i||te.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,n,i,r=0){this.content.nodesBetween(t,n,i,r,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,n,i,r){return this.content.textBetween(t,n,i,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,n,i){return this.type==t&&Jd(this.attrs,n||t.defaultAttrs||kCe)&&Ge.sameSet(this.marks,i||Ge.none)}copy(t=null){return t==this.content?this:new ky(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new ky(this.type,this.attrs,this.content,t)}cut(t,n=this.content.size){return t==0&&n==this.content.size?this:this.copy(this.content.cut(t,n))}slice(t,n=this.content.size,i=!1){if(t==n)return le.empty;let r=this.resolve(t),a=this.resolve(n),o=i?0:r.sharedDepth(n),s=r.start(o),c=r.node(o).content.cut(r.pos-s,a.pos-s);return new le(c,r.depth-o,a.depth-o)}replace(t,n,i){return yCe(this.resolve(t),this.resolve(n),i)}nodeAt(t){for(let n=this;;){let{index:i,offset:r}=n.content.findIndex(t);if(n=n.maybeChild(i),!n)return null;if(r==t||n.isText)return n;t-=r+1}}childAfter(t){let{index:n,offset:i}=this.content.findIndex(t);return{node:this.content.maybeChild(n),index:n,offset:i}}childBefore(t){if(t==0)return{node:null,index:0,offset:0};let{index:n,offset:i}=this.content.findIndex(t);if(i<t)return{node:this.content.child(n),index:n,offset:i};let r=this.content.child(n-1);return{node:r,index:n-1,offset:i-r.nodeSize}}resolve(t){return Sl.resolveCached(this,t)}resolveNoCache(t){return Sl.resolve(this,t)}rangeHasMark(t,n,i){let r=!1;return n>t&&this.nodesBetween(t,n,a=>(i.isInSet(a.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),W4(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,i=te.empty,r=0,a=i.childCount){let o=this.contentMatchAt(t).matchFragment(i,r,a),s=o&&o.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let u=r;u<a;u++)if(!this.type.allowsMarks(i.child(u).marks))return!1;return!0}canReplaceWith(t,n,i,r){if(r&&!this.type.allowsMarks(r))return!1;let a=this.contentMatchAt(t).matchType(i),o=a&&a.matchFragment(this.content,n);return o?o.validEnd:!1}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=Ge.none;for(let n=0;n<this.marks.length;n++){let i=this.marks[n];i.type.checkAttrs(i.attrs),t=i.addToSet(t)}if(!Ge.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let i;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,i)}let r=te.fromJSON(t,n.content),a=t.nodeType(n.type).create(n.attrs,r,i);return a.type.checkAttrs(a.attrs),a}};Hr.prototype.text=void 0;class nc extends Hr{constructor(t,n,i,r){if(super(t,n,null,r),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):W4(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new nc(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new nc(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function W4(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Ua{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let i=new MCe(t,n);if(i.next==null)return Ua.empty;let r=O4(i);i.next&&i.err("Unexpected trailing text");let a=ECe(PCe(r));return ACe(a,i),a}matchType(t){for(let n=0;n<this.next.length;n++)if(this.next[n].type==t)return this.next[n].next;return null}matchFragment(t,n=0,i=t.childCount){let r=this;for(let a=n;r&&a<i;a++)r=r.matchType(t.child(a).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:n}=this.next[t];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(t){for(let n=0;n<this.next.length;n++)for(let i=0;i<t.next.length;i++)if(this.next[n].type==t.next[i].type)return!0;return!1}fillBefore(t,n=!1,i=0){let r=[this];function a(o,s){let u=o.matchFragment(t,i);if(u&&(!n||u.validEnd))return te.from(s.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:f,next:h}=o.next[c];if(!(f.isText||f.hasRequiredAttrs())&&r.indexOf(h)==-1){r.push(h);let g=a(h,s.concat(f));if(g)return g}}return null}return a(this,[])}findWrapping(t){for(let i=0;i<this.wrapCache.length;i+=2)if(this.wrapCache[i]==t)return this.wrapCache[i+1];let n=this.computeWrapping(t);return this.wrapCache.push(t,n),n}computeWrapping(t){let n=Object.create(null),i=[{match:this,type:null,via:null}];for(;i.length;){let r=i.shift(),a=r.match;if(a.matchType(t)){let o=[];for(let s=r;s.type;s=s.via)o.push(s.type);return o.reverse()}for(let o=0;o<a.next.length;o++){let{type:s,next:u}=a.next[o];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in n)&&(!r.type||u.validEnd)&&(i.push({match:s.contentMatch,type:s,via:r}),n[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(i){t.push(i);for(let r=0;r<i.next.length;r++)t.indexOf(i.next[r].next)==-1&&n(i.next[r].next)}return n(this),t.map((i,r)=>{let a=r+(i.validEnd?"*":" ")+" ";for(let o=0;o<i.next.length;o++)a+=(o?", ":"")+i.next[o].type.name+"->"+t.indexOf(i.next[o].next);return a}).join(`
|
|
1297
|
+
`)}}Ua.empty=new Ua(!0);class MCe{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function O4(e){let t=[];do t.push(CCe(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function CCe(e){let t=[];do t.push(xCe(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function xCe(e){let t=TCe(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=SCe(e,t);else break;return t}function z4(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function SCe(e,t){let n=z4(e),i=n;return e.eat(",")&&(e.next!="}"?i=z4(e):i=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:t}}function _Ce(e,t){let n=e.nodeTypes,i=n[t];if(i)return[i];let r=[];for(let a in n){let o=n[a];o.isInGroup(t)&&r.push(o)}return r.length==0&&e.err("No node type or group '"+t+"' found"),r}function TCe(e){if(e.eat("(")){let t=O4(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=_Ce(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function PCe(e){let t=[[]];return r(a(e,0),n()),t;function n(){return t.push([])-1}function i(o,s,u){let c={term:u,to:s};return t[o].push(c),c}function r(o,s){o.forEach(u=>u.to=s)}function a(o,s){if(o.type=="choice")return o.exprs.reduce((u,c)=>u.concat(a(c,s)),[]);if(o.type=="seq")for(let u=0;;u++){let c=a(o.exprs[u],s);if(u==o.exprs.length-1)return c;r(c,s=n())}else if(o.type=="star"){let u=n();return i(s,u),r(a(o.expr,u),u),[i(u)]}else if(o.type=="plus"){let u=n();return r(a(o.expr,s),u),r(a(o.expr,u),u),[i(u)]}else{if(o.type=="opt")return[i(s)].concat(a(o.expr,s));if(o.type=="range"){let u=s;for(let c=0;c<o.min;c++){let f=n();r(a(o.expr,u),f),u=f}if(o.max==-1)r(a(o.expr,u),u);else for(let c=o.min;c<o.max;c++){let f=n();i(u,f),r(a(o.expr,u),f),u=f}return[i(u)]}else{if(o.type=="name")return[i(s,void 0,o.value)];throw new Error("Unknown expr type")}}}}function L4(e,t){return t-e}function $4(e,t){let n=[];return i(t),n.sort(L4);function i(r){let a=e[r];if(a.length==1&&!a[0].term)return i(a[0].to);n.push(r);for(let o=0;o<a.length;o++){let{term:s,to:u}=a[o];!s&&n.indexOf(u)==-1&&i(u)}}}function ECe(e){let t=Object.create(null);return n($4(e,0));function n(i){let r=[];i.forEach(o=>{e[o].forEach(({term:s,to:u})=>{if(!s)return;let c;for(let f=0;f<r.length;f++)r[f][0]==s&&(c=r[f][1]);$4(e,u).forEach(f=>{c||r.push([s,c=[]]),c.indexOf(f)==-1&&c.push(f)})})});let a=t[i.join(",")]=new Ua(i.indexOf(e.length-1)>-1);for(let o=0;o<r.length;o++){let s=r[o][1].sort(L4);a.next.push({type:r[o][0],next:t[s.join(",")]||n(s)})}return a}}function ACe(e,t){for(let n=0,i=[e];n<i.length;n++){let r=i[n],a=!r.validEnd,o=[];for(let s=0;s<r.next.length;s++){let{type:u,next:c}=r.next[s];o.push(u.name),a&&!(u.isText||u.hasRequiredAttrs())&&(a=!1),i.indexOf(c)==-1&&i.push(c)}a&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function H4(e){let t=Object.create(null);for(let n in e){let i=e[n];if(!i.hasDefault)return null;t[n]=i.default}return t}function R4(e,t){let n=Object.create(null);for(let i in e){let r=t&&t[i];if(r===void 0){let a=e[i];if(a.hasDefault)r=a.default;else throw new RangeError("No value supplied for attribute "+i)}n[i]=r}return n}function B4(e,t,n,i){for(let r in t)if(!(r in e))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let r in e){let a=e[r];a.validate&&a.validate(t[r])}}function V4(e,t){let n=Object.create(null);if(t)for(let i in t)n[i]=new NCe(e,i,t[i]);return n}let F4=class M8{constructor(t,n,i){this.name=t,this.schema=n,this.spec=i,this.markSet=null,this.groups=i.group?i.group.split(" "):[],this.attrs=V4(t,i.attrs),this.defaultAttrs=H4(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(i.inline||t=="text"),this.isText=t=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ua.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:R4(this.attrs,t)}create(t=null,n,i){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Hr(this,this.computeAttrs(t),te.from(n),Ge.setFrom(i))}createChecked(t=null,n,i){return n=te.from(n),this.checkContent(n),new Hr(this,this.computeAttrs(t),n,Ge.setFrom(i))}createAndFill(t=null,n,i){if(t=this.computeAttrs(t),n=te.from(n),n.size){let o=this.contentMatch.fillBefore(n);if(!o)return null;n=o.append(n)}let r=this.contentMatch.matchFragment(n),a=r&&r.fillBefore(te.empty,!0);return a?new Hr(this,t,n.append(a),Ge.setFrom(i)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let i=0;i<t.childCount;i++)if(!this.allowsMarks(t.child(i).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){B4(this.attrs,t,"node",this.name)}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;n<t.length;n++)if(!this.allowsMarkType(t[n].type))return!1;return!0}allowedMarks(t){if(this.markSet==null)return t;let n;for(let i=0;i<t.length;i++)this.allowsMarkType(t[i].type)?n&&n.push(t[i]):n||(n=t.slice(0,i));return n?n.length?n:Ge.none:t}static compile(t,n){let i=Object.create(null);t.forEach((a,o)=>i[a]=new M8(a,n,o));let r=n.spec.topNode||"doc";if(!i[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let a in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}};function DCe(e,t,n){let i=n.split("|");return r=>{let a=r===null?"null":typeof r;if(i.indexOf(a)<0)throw new RangeError(`Expected value of type ${i} for attribute ${t} on type ${e}, got ${a}`)}}class NCe{constructor(t,n,i){this.hasDefault=Object.prototype.hasOwnProperty.call(i,"default"),this.default=i.default,this.validate=typeof i.validate=="string"?DCe(t,n,i.validate):i.validate}get isRequired(){return!this.hasDefault}}class ic{constructor(t,n,i,r){this.name=t,this.rank=n,this.schema=i,this.spec=r,this.attrs=V4(t,r.attrs),this.excluded=null;let a=H4(this.attrs);this.instance=a?new Ge(this,a):null}create(t=null){return!t&&this.instance?this.instance:new Ge(this,R4(this.attrs,t))}static compile(t,n){let i=Object.create(null),r=0;return t.forEach((a,o)=>i[a]=new ic(a,r++,n,o)),i}removeFromSet(t){for(var n=0;n<t.length;n++)t[n].type==this&&(t=t.slice(0,n).concat(t.slice(n+1)),n--);return t}isInSet(t){for(let n=0;n<t.length;n++)if(t[n].type==this)return t[n]}checkAttrs(t){B4(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class U4{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in t)n[r]=t[r];n.nodes=zt.from(t.nodes),n.marks=zt.from(t.marks||{}),this.nodes=F4.compile(this.spec.nodes,this),this.marks=ic.compile(this.spec.marks,this);let i=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let a=this.nodes[r],o=a.spec.content||"",s=a.spec.marks;if(a.contentMatch=i[o]||(i[o]=Ua.parse(o,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet=s=="_"?null:s?Y4(this,s.split(" ")):s==""||!a.inlineContent?[]:null}for(let r in this.marks){let a=this.marks[r],o=a.spec.excludes;a.excluded=o==null?[a]:o==""?[]:Y4(this,o.split(" "))}this.nodeFromJSON=r=>Hr.fromJSON(this,r),this.markFromJSON=r=>Ge.fromJSON(this,r),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,i,r){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof F4){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,i,r)}text(t,n){let i=this.nodes.text;return new nc(i,i.defaultAttrs,t,Ge.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function Y4(e,t){let n=[];for(let i=0;i<t.length;i++){let r=t[i],a=e.marks[r],o=a;if(a)n.push(a);else for(let s in e.marks){let u=e.marks[s];(r=="_"||u.spec.group&&u.spec.group.split(" ").indexOf(r)>-1)&&n.push(o=u)}if(!o)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return n}function jCe(e){return e.tag!=null}function ICe(e){return e.style!=null}class Rr{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let i=this.matchedStyles=[];n.forEach(r=>{if(jCe(r))this.tags.push(r);else if(ICe(r)){let a=/[^=]*/.exec(r.style)[0];i.indexOf(a)<0&&i.push(a),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let a=t.nodes[r.node];return a.contentMatch.matchType(a)})}parse(t,n={}){let i=new K4(this,n,!1);return i.addAll(t,Ge.none,n.from,n.to),i.finish()}parseSlice(t,n={}){let i=new K4(this,n,!0);return i.addAll(t,Ge.none,n.from,n.to),le.maxOpen(i.finish())}matchTag(t,n,i){for(let r=i?this.tags.indexOf(i)+1:0;r<this.tags.length;r++){let a=this.tags[r];if(zCe(t,a.tag)&&(a.namespace===void 0||t.namespaceURI==a.namespace)&&(!a.context||n.matchesContext(a.context))){if(a.getAttrs){let o=a.getAttrs(t);if(o===!1)continue;a.attrs=o||void 0}return a}}}matchStyle(t,n,i,r){for(let a=r?this.styles.indexOf(r)+1:0;a<this.styles.length;a++){let o=this.styles[a],s=o.style;if(!(s.indexOf(t)!=0||o.context&&!i.matchesContext(o.context)||s.length>t.length&&(s.charCodeAt(t.length)!=61||s.slice(t.length+1)!=n))){if(o.getAttrs){let u=o.getAttrs(n);if(u===!1)continue;o.attrs=u||void 0}return o}}}static schemaRules(t){let n=[];function i(r){let a=r.priority==null?50:r.priority,o=0;for(;o<n.length;o++){let s=n[o];if((s.priority==null?50:s.priority)<a)break}n.splice(o,0,r)}for(let r in t.marks){let a=t.marks[r].spec.parseDOM;a&&a.forEach(o=>{i(o=Q4(o)),o.mark||o.ignore||o.clearMark||(o.mark=r)})}for(let r in t.nodes){let a=t.nodes[r].spec.parseDOM;a&&a.forEach(o=>{i(o=Q4(o)),o.node||o.ignore||o.mark||(o.node=r)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new Rr(t,Rr.schemaRules(t)))}}const X4={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},WCe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},q4={ol:!0,ul:!0},_l=1,tp=2,Tl=4;function G4(e,t,n){return t!=null?(t?_l:0)|(t==="full"?tp:0):e&&e.whitespace=="pre"?_l|tp:n&~Tl}class rc{constructor(t,n,i,r,a,o){this.type=t,this.attrs=n,this.marks=i,this.solid=r,this.options=o,this.content=[],this.activeMarks=Ge.none,this.match=a||(o&Tl?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(te.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let i=this.type.contentMatch,r;return(r=i.findWrapping(t.type))?(this.match=i,r):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&_l)){let i=this.content[this.content.length-1],r;if(i&&i.isText&&(r=/[ \t\r\n\u000c]+$/.exec(i.text))){let a=i;i.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-r[0].length))}}let n=te.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(te.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!X4.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class K4{constructor(t,n,i){this.parser=t,this.options=n,this.isOpen=i,this.open=0,this.localPreserveWS=!1;let r=n.topNode,a,o=G4(null,n.preserveWhitespace,0)|(i?Tl:0);r?a=new rc(r.type,r.attrs,Ge.none,!0,n.topMatch||r.type.contentMatch,o):i?a=new rc(null,null,Ge.none,!0,null,o):a=new rc(t.schema.topNodeType,null,Ge.none,!0,null,o),this.nodes=[a],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let i=t.nodeValue,r=this.top,a=r.options&tp?"full":this.localPreserveWS||(r.options&_l)>0;if(a==="full"||r.inlineContext(t)||/[^ \t\r\n\u000c]/.test(i)){if(a)a!=="full"?i=i.replace(/\r?\n|\r/g," "):i=i.replace(/\r\n?/g,`
|
|
1298
|
+
`);else if(i=i.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(i)&&this.open==this.nodes.length-1){let o=r.content[r.content.length-1],s=t.previousSibling;(!o||s&&s.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(i=i.slice(1))}i&&this.insertNode(this.parser.schema.text(i),n,!/\S/.test(i)),this.findInText(t)}else this.findInside(t)}addElement(t,n,i){let r=this.localPreserveWS,a=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let o=t.nodeName.toLowerCase(),s;q4.hasOwnProperty(o)&&this.parser.normalizeLists&&OCe(t);let u=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(s=this.parser.matchTag(t,this,i));e:if(u?u.ignore:WCe.hasOwnProperty(o))this.findInside(t),this.ignoreFallback(t,n);else if(!u||u.skip||u.closeParent){u&&u.closeParent?this.open=Math.max(0,this.open-1):u&&u.skip.nodeType&&(t=u.skip);let c,f=this.needsBlock;if(X4.hasOwnProperty(o))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),c=!0,a.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);break e}let h=u&&u.skip?n:this.readStyles(t,n);h&&this.addAll(t,h),c&&this.sync(a),this.needsBlock=f}else{let c=this.readStyles(t,n);c&&this.addElementByRule(t,u,c,u.consuming===!1?s:void 0)}this.localPreserveWS=r}leafFallback(t,n){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(`
|
|
1299
|
+
`),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(t,n){let i=t.style;if(i&&i.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let a=this.parser.matchedStyles[r],o=i.getPropertyValue(a);if(o)for(let s=void 0;;){let u=this.parser.matchStyle(a,o,this,s);if(!u)break;if(u.ignore)return null;if(u.clearMark?n=n.filter(c=>!u.clearMark(c)):n=n.concat(this.parser.schema.marks[u.mark].create(u.attrs)),u.consuming===!1)s=u;else break}}return n}addElementByRule(t,n,i,r){let a,o;if(n.node)if(o=this.parser.schema.nodes[n.node],o.isLeaf)this.insertNode(o.create(n.attrs),i,t.nodeName=="BR")||this.leafFallback(t,i);else{let u=this.enter(o,n.attrs||null,i,n.preserveWhitespace);u&&(a=!0,i=u)}else{let u=this.parser.schema.marks[n.mark];i=i.concat(u.create(n.attrs))}let s=this.top;if(o&&o.isLeaf)this.findInside(t);else if(r)this.addElement(t,i,r);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(u=>this.insertNode(u,i,!1));else{let u=t;typeof n.contentElement=="string"?u=t.querySelector(n.contentElement):typeof n.contentElement=="function"?u=n.contentElement(t):n.contentElement&&(u=n.contentElement),this.findAround(t,u,!0),this.addAll(u,i),this.findAround(t,u,!1)}a&&this.sync(s)&&this.open--}addAll(t,n,i,r){let a=i||0;for(let o=i?t.childNodes[i]:t.firstChild,s=r==null?null:t.childNodes[r];o!=s;o=o.nextSibling,++a)this.findAtPoint(t,a),this.addDOM(o,n);this.findAtPoint(t,a)}findPlace(t,n,i){let r,a;for(let o=this.open,s=0;o>=0;o--){let u=this.nodes[o],c=u.findWrapping(t);if(c&&(!r||r.length>c.length+s)&&(r=c,a=u,!c.length))break;if(u.solid){if(i)break;s+=2}}if(!r)return null;this.sync(a);for(let o=0;o<r.length;o++)n=this.enterInner(r[o],null,n,!1);return n}insertNode(t,n,i){if(t.isInline&&this.needsBlock&&!this.top.type){let a=this.textblockFromContext();a&&(n=this.enterInner(a,null,n))}let r=this.findPlace(t,n,i);if(r){this.closeExtra();let a=this.top;a.match&&(a.match=a.match.matchType(t.type));let o=Ge.none;for(let s of r.concat(t.marks))(a.type?a.type.allowsMarkType(s.type):J4(s.type,t.type))&&(o=s.addToSet(o));return a.content.push(t.mark(o)),!0}return!1}enter(t,n,i,r){let a=this.findPlace(t.create(n),i,!1);return a&&(a=this.enterInner(t,n,i,!0,r)),a}enterInner(t,n,i,r=!1,a){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(t);let s=G4(t,a,o.options);o.options&Tl&&o.content.length==0&&(s|=Tl);let u=Ge.none;return i=i.filter(c=>(o.type?o.type.allowsMarkType(c.type):J4(c.type,t))?(u=c.addToSet(u),!1):!0),this.nodes.push(new rc(t,n,u,r,null,s)),this.open++,i}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=_l)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let i=this.nodes[n].content;for(let r=i.length-1;r>=0;r--)t+=i[r].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let i=0;i<this.find.length;i++)this.find[i].node==t&&this.find[i].offset==n&&(this.find[i].pos=this.currentPos)}findInside(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&t.nodeType==1&&t.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(t,n,i){if(t!=n&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&t.nodeType==1&&t.contains(this.find[r].node)&&n.compareDocumentPosition(this.find[r].node)&(i?2:4)&&(this.find[r].pos=this.currentPos)}findInText(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&(this.find[n].pos=this.currentPos-(t.nodeValue.length-this.find[n].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),i=this.options.context,r=!this.isOpen&&(!i||i.parent.type==this.nodes[0].type),a=-(i?i.depth+1:0)+(r?0:1),o=(s,u)=>{for(;s>=0;s--){let c=n[s];if(c==""){if(s==n.length-1||s==0)continue;for(;u>=a;u--)if(o(s-1,u))return!0;return!1}else{let f=u>0||u==0&&r?this.nodes[u].type:i&&u>=a?i.node(u-a).type:null;if(!f||f.name!=c&&!f.isInGroup(c))return!1;u--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let n in this.parser.schema.nodes){let i=this.parser.schema.nodes[n];if(i.isTextblock&&i.defaultAttrs)return i}}}function OCe(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let i=t.nodeType==1?t.nodeName.toLowerCase():null;i&&q4.hasOwnProperty(i)&&n?(n.appendChild(t),t=n):i=="li"?n=t:i&&(n=null)}}function zCe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Q4(e){let t={};for(let n in e)t[n]=e[n];return t}function J4(e,t){let n=t.schema.nodes;for(let i in n){let r=n[i];if(!r.allowsMarkType(e))continue;let a=[],o=s=>{a.push(s);for(let u=0;u<s.edgeCount;u++){let{type:c,next:f}=s.edge(u);if(c==t||a.indexOf(f)<0&&o(f))return!0}};if(o(r.contentMatch))return!0}}class Ya{constructor(t,n){this.nodes=t,this.marks=n}serializeFragment(t,n={},i){i||(i=np(n).createDocumentFragment());let r=i,a=[];return t.forEach(o=>{if(a.length||o.marks.length){let s=0,u=0;for(;s<a.length&&u<o.marks.length;){let c=o.marks[u];if(!this.marks[c.type.name]){u++;continue}if(!c.eq(a[s][0])||c.type.spec.spanning===!1)break;s++,u++}for(;s<a.length;)r=a.pop()[1];for(;u<o.marks.length;){let c=o.marks[u++],f=this.serializeMark(c,o.isInline,n);f&&(a.push([c,r]),r.appendChild(f.dom),r=f.contentDOM||f.dom)}}r.appendChild(this.serializeNodeInner(o,n))}),i}serializeNodeInner(t,n){let{dom:i,contentDOM:r}=ac(np(n),this.nodes[t.type.name](t),null,t.attrs);if(r){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,n,r)}return i}serializeNode(t,n={}){let i=this.serializeNodeInner(t,n);for(let r=t.marks.length-1;r>=0;r--){let a=this.serializeMark(t.marks[r],t.isInline,n);a&&((a.contentDOM||a.dom).appendChild(i),i=a.dom)}return i}serializeMark(t,n,i={}){let r=this.marks[t.type.name];return r&&ac(np(i),r(t,n),null,t.attrs)}static renderSpec(t,n,i=null,r){return ac(t,n,i,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Ya(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=Z4(t.nodes);return n.text||(n.text=i=>i.text),n}static marksFromSchema(t){return Z4(t.marks)}}function Z4(e){let t={};for(let n in e){let i=e[n].spec.toDOM;i&&(t[n]=i)}return t}function np(e){return e.document||window.document}const e3=new WeakMap;function LCe(e){let t=e3.get(e);return t===void 0&&e3.set(e,t=$Ce(e)),t}function $Ce(e){let t=null;function n(i){if(i&&typeof i=="object")if(Array.isArray(i))if(typeof i[0]=="string")t||(t=[]),t.push(i);else for(let r=0;r<i.length;r++)n(i[r]);else for(let r in i)n(i[r])}return n(e),t}function ac(e,t,n,i){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let r=t[0],a;if(typeof r!="string")throw new RangeError("Invalid array passed to renderSpec");if(i&&(a=LCe(i))&&a.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=r.indexOf(" ");o>0&&(n=r.slice(0,o),r=r.slice(o+1));let s,u=n?e.createElementNS(n,r):e.createElement(r),c=t[1],f=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){f=2;for(let h in c)if(c[h]!=null){let g=h.indexOf(" ");g>0?u.setAttributeNS(h.slice(0,g),h.slice(g+1),c[h]):h=="style"&&u.style?u.style.cssText=c[h]:u.setAttribute(h,c[h])}}for(let h=f;h<t.length;h++){let g=t[h];if(g===0){if(h<t.length-1||h>f)throw new RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}else{let{dom:p,contentDOM:y}=ac(e,g,n,i);if(u.appendChild(p),y){if(s)throw new RangeError("Multiple content holes");s=y}}}return{dom:u,contentDOM:s}}const t3=65535,n3=Math.pow(2,16);function HCe(e,t){return e+t*n3}function i3(e){return e&t3}function RCe(e){return(e-(e&t3))/n3}const r3=1,a3=2,oc=4,o3=8;class ip{constructor(t,n,i){this.pos=t,this.delInfo=n,this.recover=i}get deleted(){return(this.delInfo&o3)>0}get deletedBefore(){return(this.delInfo&(r3|oc))>0}get deletedAfter(){return(this.delInfo&(a3|oc))>0}get deletedAcross(){return(this.delInfo&oc)>0}}class On{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&On.empty)return On.empty}recover(t){let n=0,i=i3(t);if(!this.inverted)for(let r=0;r<i;r++)n+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[i*3]+n+RCe(t)}mapResult(t,n=1){return this._map(t,n,!1)}map(t,n=1){return this._map(t,n,!0)}_map(t,n,i){let r=0,a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let u=this.ranges[s]-(this.inverted?r:0);if(u>t)break;let c=this.ranges[s+a],f=this.ranges[s+o],h=u+c;if(t<=h){let g=c?t==u?-1:t==h?1:n:n,p=u+r+(g<0?0:f);if(i)return p;let y=t==(n<0?u:h)?null:HCe(s/3,t-u),v=t==u?a3:t==h?r3:oc;return(n<0?t!=u:t!=h)&&(v|=o3),new ip(p,v,y)}r+=f-c}return i?t+r:new ip(t+r,0,null)}touches(t,n){let i=0,r=i3(n),a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let u=this.ranges[s]-(this.inverted?i:0);if(u>t)break;let c=this.ranges[s+a],f=u+c;if(t<=f&&s==r*3)return!0;i+=this.ranges[s+o]-c}return!1}forEach(t){let n=this.inverted?2:1,i=this.inverted?1:2;for(let r=0,a=0;r<this.ranges.length;r+=3){let o=this.ranges[r],s=o-(this.inverted?a:0),u=o+(this.inverted?0:a),c=this.ranges[r+n],f=this.ranges[r+i];t(s,s+c,u,u+f),a+=f-c}}invert(){return new On(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?On.empty:new On(t<0?[0,-t,0]:[0,0,t])}}On.empty=new On([]);class Pl{constructor(t,n,i=0,r=t?t.length:0){this.mirror=n,this.from=i,this.to=r,this._maps=t||[],this.ownData=!(t||n)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new Pl(this._maps,this.mirror,t,n)}appendMap(t,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(t){for(let n=0,i=this._maps.length;n<t._maps.length;n++){let r=t.getMirror(n);this.appendMap(t._maps[n],r!=null&&r<n?i+r:void 0)}}getMirror(t){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==t)return this.mirror[n+(n%2?-1:1)]}}setMirror(t,n){this.mirror||(this.mirror=[]),this.mirror.push(t,n)}appendMappingInverted(t){for(let n=t.maps.length-1,i=this._maps.length+t._maps.length;n>=0;n--){let r=t.getMirror(n);this.appendMap(t._maps[n].invert(),r!=null&&r>n?i-r-1:void 0)}}invert(){let t=new Pl;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let i=this.from;i<this.to;i++)t=this._maps[i].map(t,n);return t}mapResult(t,n=1){return this._map(t,n,!1)}_map(t,n,i){let r=0;for(let a=this.from;a<this.to;a++){let o=this._maps[a],s=o.mapResult(t,n);if(s.recover!=null){let u=this.getMirror(a);if(u!=null&&u>a&&u<this.to){a=u,t=this._maps[u].recover(s.recover);continue}}r|=s.delInfo,t=s.pos}return i?t:new ip(t,r,null)}}const rp=Object.create(null);class Xt{getMap(){return On.empty}merge(t){return null}static fromJSON(t,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let i=rp[n.stepType];if(!i)throw new RangeError(`No step type ${n.stepType} defined`);return i.fromJSON(t,n)}static jsonID(t,n){if(t in rp)throw new RangeError("Duplicate use of step JSON ID "+t);return rp[t]=n,n.prototype.jsonID=t,n}}class kt{constructor(t,n){this.doc=t,this.failed=n}static ok(t){return new kt(t,null)}static fail(t){return new kt(null,t)}static fromReplace(t,n,i,r){try{return kt.ok(t.replace(n,i,r))}catch(a){if(a instanceof Zd)return kt.fail(a.message);throw a}}}function ap(e,t,n){let i=[];for(let r=0;r<e.childCount;r++){let a=e.child(r);a.content.size&&(a=a.copy(ap(a.content,t,a))),a.isInline&&(a=t(a,n,r)),i.push(a)}return te.fromArray(i)}class Br extends Xt{constructor(t,n,i){super(),this.from=t,this.to=n,this.mark=i}apply(t){let n=t.slice(this.from,this.to),i=t.resolve(this.from),r=i.node(i.sharedDepth(this.to)),a=new le(ap(n.content,(o,s)=>!o.isAtom||!s.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),r),n.openStart,n.openEnd);return kt.fromReplace(t,this.from,this.to,a)}invert(){return new Ci(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new Br(n.pos,i.pos,this.mark)}merge(t){return t instanceof Br&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Br(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Br(n.from,n.to,t.markFromJSON(n.mark))}}Xt.jsonID("addMark",Br);class Ci extends Xt{constructor(t,n,i){super(),this.from=t,this.to=n,this.mark=i}apply(t){let n=t.slice(this.from,this.to),i=new le(ap(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),t),n.openStart,n.openEnd);return kt.fromReplace(t,this.from,this.to,i)}invert(){return new Br(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new Ci(n.pos,i.pos,this.mark)}merge(t){return t instanceof Ci&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Ci(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Ci(n.from,n.to,t.markFromJSON(n.mark))}}Xt.jsonID("removeMark",Ci);class Vr extends Xt{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return kt.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return kt.fromReplace(t,this.pos,this.pos+1,new le(te.from(i),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let i=this.mark.addToSet(n.marks);if(i.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(i))return new Vr(this.pos,n.marks[r]);return new Vr(this.pos,this.mark)}}return new Xa(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Vr(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Vr(n.pos,t.markFromJSON(n.mark))}}Xt.jsonID("addNodeMark",Vr);class Xa extends Xt{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return kt.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return kt.fromReplace(t,this.pos,this.pos+1,new le(te.from(i),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Vr(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Xa(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Xa(n.pos,t.markFromJSON(n.mark))}}Xt.jsonID("removeNodeMark",Xa);class Dt extends Xt{constructor(t,n,i,r=!1){super(),this.from=t,this.to=n,this.slice=i,this.structure=r}apply(t){return this.structure&&op(t,this.from,this.to)?kt.fail("Structure replace would overwrite content"):kt.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new On([this.from,this.to-this.from,this.slice.size])}invert(t){return new Dt(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return n.deletedAcross&&i.deletedAcross?null:new Dt(n.pos,Math.max(n.pos,i.pos),this.slice,this.structure)}merge(t){if(!(t instanceof Dt)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?le.empty:new le(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new Dt(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?le.empty:new le(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new Dt(t.from,this.to,n,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Dt(n.from,n.to,le.fromJSON(t,n.slice),!!n.structure)}}Xt.jsonID("replace",Dt);class Nt extends Xt{constructor(t,n,i,r,a,o,s=!1){super(),this.from=t,this.to=n,this.gapFrom=i,this.gapTo=r,this.slice=a,this.insert=o,this.structure=s}apply(t){if(this.structure&&(op(t,this.from,this.gapFrom)||op(t,this.gapTo,this.to)))return kt.fail("Structure gap-replace would overwrite content");let n=t.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return kt.fail("Gap is not a flat range");let i=this.slice.insertAt(this.insert,n.content);return i?kt.fromReplace(t,this.from,this.to,i):kt.fail("Content does not fit in gap")}getMap(){return new On([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new Nt(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),i=t.mapResult(this.to,-1),r=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?i.pos:t.map(this.gapTo,1);return n.deletedAcross&&i.deletedAcross||r<n.pos||a>i.pos?null:new Nt(n.pos,i.pos,r,a,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Nt(n.from,n.to,n.gapFrom,n.gapTo,le.fromJSON(t,n.slice),n.insert,!!n.structure)}}Xt.jsonID("replaceAround",Nt);function op(e,t,n){let i=e.resolve(t),r=n-t,a=i.depth;for(;r>0&&a>0&&i.indexAfter(a)==i.node(a).childCount;)a--,r--;if(r>0){let o=i.node(a).maybeChild(i.indexAfter(a));for(;r>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,r--}}return!1}function BCe(e,t,n,i){let r=[],a=[],o,s;e.doc.nodesBetween(t,n,(u,c,f)=>{if(!u.isInline)return;let h=u.marks;if(!i.isInSet(h)&&f.type.allowsMarkType(i.type)){let g=Math.max(c,t),p=Math.min(c+u.nodeSize,n),y=i.addToSet(h);for(let v=0;v<h.length;v++)h[v].isInSet(y)||(o&&o.to==g&&o.mark.eq(h[v])?o.to=p:r.push(o=new Ci(g,p,h[v])));s&&s.to==g?s.to=p:a.push(s=new Br(g,p,i))}}),r.forEach(u=>e.step(u)),a.forEach(u=>e.step(u))}function VCe(e,t,n,i){let r=[],a=0;e.doc.nodesBetween(t,n,(o,s)=>{if(!o.isInline)return;a++;let u=null;if(i instanceof ic){let c=o.marks,f;for(;f=i.isInSet(c);)(u||(u=[])).push(f),c=f.removeFromSet(c)}else i?i.isInSet(o.marks)&&(u=[i]):u=o.marks;if(u&&u.length){let c=Math.min(s+o.nodeSize,n);for(let f=0;f<u.length;f++){let h=u[f],g;for(let p=0;p<r.length;p++){let y=r[p];y.step==a-1&&h.eq(r[p].style)&&(g=y)}g?(g.to=c,g.step=a):r.push({style:h,from:Math.max(s,t),to:c,step:a})}}}),r.forEach(o=>e.step(new Ci(o.from,o.to,o.style)))}function sp(e,t,n,i=n.contentMatch,r=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let u=0;u<a.childCount;u++){let c=a.child(u),f=s+c.nodeSize,h=i.matchType(c.type);if(!h)o.push(new Dt(s,f,le.empty));else{i=h;for(let g=0;g<c.marks.length;g++)n.allowsMarkType(c.marks[g].type)||e.step(new Ci(s,f,c.marks[g]));if(r&&c.isText&&n.whitespace!="pre"){let g,p=/\r?\n|\r/g,y;for(;g=p.exec(c.text);)y||(y=new le(te.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),o.push(new Dt(s+g.index,s+g.index+g[0].length,y))}}s=f}if(!i.validEnd){let u=i.fillBefore(te.empty,!0);e.replace(s,s,new le(u,0,0))}for(let u=o.length-1;u>=0;u--)e.step(o[u])}function FCe(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Ko(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let i=e.depth;;--i){let r=e.$from.node(i),a=e.$from.index(i),o=e.$to.indexAfter(i);if(i<e.depth&&r.canReplace(a,o,n))return i;if(i==0||r.type.spec.isolating||!FCe(r,a,o))break}return null}function UCe(e,t,n){let{$from:i,$to:r,depth:a}=t,o=i.before(a+1),s=r.after(a+1),u=o,c=s,f=te.empty,h=0;for(let y=a,v=!1;y>n;y--)v||i.index(y)>0?(v=!0,f=te.from(i.node(y).copy(f)),h++):u--;let g=te.empty,p=0;for(let y=a,v=!1;y>n;y--)v||r.after(y+1)<r.end(y)?(v=!0,g=te.from(r.node(y).copy(g)),p++):c++;e.step(new Nt(u,c,o,s,new le(f.append(g),h,p),f.size-h,!0))}function lp(e,t,n=null,i=e){let r=YCe(e,t),a=r&&XCe(i,t);return a?r.map(s3).concat({type:t,attrs:n}).concat(a.map(s3)):null}function s3(e){return{type:e,attrs:null}}function YCe(e,t){let{parent:n,startIndex:i,endIndex:r}=e,a=n.contentMatchAt(i).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(i,r,o)?a:null}function XCe(e,t){let{parent:n,startIndex:i,endIndex:r}=e,a=n.child(i),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let u=(o.length?o[o.length-1]:t).contentMatch;for(let c=i;u&&c<r;c++)u=u.matchType(n.child(c).type);return!u||!u.validEnd?null:o}function qCe(e,t,n){let i=te.empty;for(let o=n.length-1;o>=0;o--){if(i.size){let s=n[o].type.contentMatch.matchFragment(i);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=te.from(n[o].type.create(n[o].attrs,i))}let r=t.start,a=t.end;e.step(new Nt(r,a,r,a,new le(i,0,0),n.length,!0))}function GCe(e,t,n,i,r){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,n,(o,s)=>{let u=typeof r=="function"?r(o):r;if(o.isTextblock&&!o.hasMarkup(i,u)&&KCe(e.doc,e.mapping.slice(a).map(s),i)){let c=null;if(i.schema.linebreakReplacement){let p=i.whitespace=="pre",y=!!i.contentMatch.matchType(i.schema.linebreakReplacement);p&&!y?c=!1:!p&&y&&(c=!0)}c===!1&&u3(e,o,s,a),sp(e,e.mapping.slice(a).map(s,1),i,void 0,c===null);let f=e.mapping.slice(a),h=f.map(s,1),g=f.map(s+o.nodeSize,1);return e.step(new Nt(h,g,h+1,g-1,new le(te.from(i.create(u,null,o.marks)),0,0),1,!0)),c===!0&&l3(e,o,s,a),!1}})}function l3(e,t,n,i){t.forEach((r,a)=>{if(r.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(r.text);){let u=e.mapping.slice(i).map(n+1+a+o.index);e.replaceWith(u,u+1,t.type.schema.linebreakReplacement.create())}}})}function u3(e,t,n,i){t.forEach((r,a)=>{if(r.type==r.type.schema.linebreakReplacement){let o=e.mapping.slice(i).map(n+1+a);e.replaceWith(o,o+1,t.type.schema.text(`
|
|
1300
|
+
`))}})}function KCe(e,t,n){let i=e.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,n)}function QCe(e,t,n,i,r){let a=e.doc.nodeAt(t);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let o=n.create(i,null,r||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new Nt(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new le(te.from(o),0,0),1,!0))}function Qo(e,t,n=1,i){let r=e.resolve(t),a=r.depth-n,o=i&&i[i.length-1]||r.parent;if(a<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!o.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let c=r.depth-1,f=n-2;c>a;c--,f--){let h=r.node(c),g=r.index(c);if(h.type.spec.isolating)return!1;let p=h.content.cutByIndex(g,h.childCount),y=i&&i[f+1];y&&(p=p.replaceChild(0,y.type.create(y.attrs)));let v=i&&i[f]||h;if(!h.canReplace(g+1,h.childCount)||!v.type.validContent(p))return!1}let s=r.indexAfter(a),u=i&&i[0];return r.node(a).canReplaceWith(s,s,u?u.type:r.node(a+1).type)}function JCe(e,t,n=1,i){let r=e.doc.resolve(t),a=te.empty,o=te.empty;for(let s=r.depth,u=r.depth-n,c=n-1;s>u;s--,c--){a=te.from(r.node(s).copy(a));let f=i&&i[c];o=te.from(f?f.type.create(f.attrs,o):r.node(s).copy(o))}e.step(new Dt(t,t,new le(a.append(o),n,n),!0))}function Fr(e,t){let n=e.resolve(t),i=n.index();return d3(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function ZCe(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:i}=e.type.schema;for(let r=0;r<t.childCount;r++){let a=t.child(r),o=a.type==i?e.type.schema.nodes.text:a.type;if(n=n.matchType(o),!n||!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function d3(e,t){return!!(e&&t&&!e.isLeaf&&ZCe(e,t))}function sc(e,t,n=-1){let i=e.resolve(t);for(let r=i.depth;;r--){let a,o,s=i.index(r);if(r==i.depth?(a=i.nodeBefore,o=i.nodeAfter):n>0?(a=i.node(r+1),s++,o=i.node(r).maybeChild(s)):(a=i.node(r).maybeChild(s-1),o=i.node(r+1)),a&&!a.isTextblock&&d3(a,o)&&i.node(r).canReplace(s,s+1))return t;if(r==0)break;t=n<0?i.before(r):i.after(r)}}function exe(e,t,n){let i=null,{linebreakReplacement:r}=e.doc.type.schema,a=e.doc.resolve(t-n),o=a.node().type;if(r&&o.inlineContent){let f=o.whitespace=="pre",h=!!o.contentMatch.matchType(r);f&&!h?i=!1:!f&&h&&(i=!0)}let s=e.steps.length;if(i===!1){let f=e.doc.resolve(t+n);u3(e,f.node(),f.before(),s)}o.inlineContent&&sp(e,t+n-1,o,a.node().contentMatchAt(a.index()),i==null);let u=e.mapping.slice(s),c=u.map(t-n);if(e.step(new Dt(c,u.map(t+n,-1),le.empty,!0)),i===!0){let f=e.doc.resolve(c);l3(e,f.node(),f.before(),e.steps.length)}return e}function txe(e,t,n){let i=e.resolve(t);if(i.parent.canReplaceWith(i.index(),i.index(),n))return t;if(i.parentOffset==0)for(let r=i.depth-1;r>=0;r--){let a=i.index(r);if(i.node(r).canReplaceWith(a,a,n))return i.before(r+1);if(a>0)return null}if(i.parentOffset==i.parent.content.size)for(let r=i.depth-1;r>=0;r--){let a=i.indexAfter(r);if(i.node(r).canReplaceWith(a,a,n))return i.after(r+1);if(a<i.node(r).childCount)return null}return null}function c3(e,t,n){let i=e.resolve(t);if(!n.content.size)return t;let r=n.content;for(let a=0;a<n.openStart;a++)r=r.firstChild.content;for(let a=1;a<=(n.openStart==0&&n.size?2:1);a++)for(let o=i.depth;o>=0;o--){let s=o==i.depth?0:i.pos<=(i.start(o+1)+i.end(o+1))/2?-1:1,u=i.index(o)+(s>0?1:0),c=i.node(o),f=!1;if(a==1)f=c.canReplace(u,u,r);else{let h=c.contentMatchAt(u).findWrapping(r.firstChild.type);f=h&&c.canReplaceWith(u,u,h[0])}if(f)return s==0?i.pos:s<0?i.before(o+1):i.after(o+1)}return null}function lc(e,t,n=t,i=le.empty){if(t==n&&!i.size)return null;let r=e.resolve(t),a=e.resolve(n);return f3(r,a,i)?new Dt(t,n,i):new nxe(r,a,i).fit()}function f3(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class nxe{constructor(t,n,i){this.$from=t,this.$to=n,this.unplaced=i,this.frontier=[],this.placed=te.empty;for(let r=0;r<=t.depth;r++){let a=t.node(r);this.frontier.push({type:a.type,match:a.contentMatchAt(t.indexAfter(r))})}for(let r=t.depth;r>0;r--)this.placed=te.from(t.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,r=this.close(t<0?this.$to:i.doc.resolve(t));if(!r)return null;let a=this.placed,o=i.depth,s=r.depth;for(;o&&s&&a.childCount==1;)a=a.firstChild.content,o--,s--;let u=new le(a,o,s);return t>-1?new Nt(i.pos,t,this.$to.pos,this.$to.end(),u,n):u.size||i.pos!=this.$to.pos?new Dt(i.pos,r.pos,u):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,i=0,r=this.unplaced.openEnd;i<t;i++){let a=n.firstChild;if(n.childCount>1&&(r=0),a.type.spec.isolating&&r<=i){t=i;break}n=a.content}for(let n=1;n<=2;n++)for(let i=n==1?t:this.unplaced.openStart;i>=0;i--){let r,a=null;i?(a=up(this.unplaced.content,i-1).firstChild,r=a.content):r=this.unplaced.content;let o=r.firstChild;for(let s=this.depth;s>=0;s--){let{type:u,match:c}=this.frontier[s],f,h=null;if(n==1&&(o?c.matchType(o.type)||(h=c.fillBefore(te.from(o),!1)):a&&u.compatibleContent(a.type)))return{sliceDepth:i,frontierDepth:s,parent:a,inject:h};if(n==2&&o&&(f=c.findWrapping(o.type)))return{sliceDepth:i,frontierDepth:s,parent:a,wrap:f};if(a&&c.matchType(a.type))break}}}openMore(){let{content:t,openStart:n,openEnd:i}=this.unplaced,r=up(t,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new le(t,n+1,Math.max(i,r.size+n>=t.size-i?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:i}=this.unplaced,r=up(t,n);if(r.childCount<=1&&n>0){let a=t.size-n<=n+r.size;this.unplaced=new le(El(t,n-1,1),n-1,a?n-1:i)}else this.unplaced=new le(El(t,n,1),n,i)}placeNodes({sliceDepth:t,frontierDepth:n,parent:i,inject:r,wrap:a}){for(;this.depth>n;)this.closeFrontierNode();if(a)for(let v=0;v<a.length;v++)this.openFrontierNode(a[v]);let o=this.unplaced,s=i?i.content:o.content,u=o.openStart-t,c=0,f=[],{match:h,type:g}=this.frontier[n];if(r){for(let v=0;v<r.childCount;v++)f.push(r.child(v));h=h.matchFragment(r)}let p=s.size+t-(o.content.size-o.openEnd);for(;c<s.childCount;){let v=s.child(c),k=h.matchType(v.type);if(!k)break;c++,(c>1||u==0||v.content.size)&&(h=k,f.push(h3(v.mark(g.allowedMarks(v.marks)),c==1?u:0,c==s.childCount?p:-1)))}let y=c==s.childCount;y||(p=-1),this.placed=Al(this.placed,n,te.from(f)),this.frontier[n].match=h,y&&p<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let v=0,k=s;v<p;v++){let w=k.lastChild;this.frontier.push({type:w.type,match:w.contentMatchAt(w.childCount)}),k=w.content}this.unplaced=y?t==0?le.empty:new le(El(o.content,t-1,1),t-1,p<0?o.openEnd:t-1):new le(El(o.content,t,c),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t=this.frontier[this.depth],n;if(!t.type.isTextblock||!dp(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:i}=this.$to,r=this.$to.after(i);for(;i>1&&r==this.$to.end(--i);)++r;return r}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:i,type:r}=this.frontier[n],a=n<t.depth&&t.end(n+1)==t.pos+(t.depth-(n+1)),o=dp(t,n,r,i,a);if(o){for(let s=n-1;s>=0;s--){let{match:u,type:c}=this.frontier[s],f=dp(t,s,c,u,!0);if(!f||f.childCount)continue e}return{depth:n,fit:o,move:a?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Al(this.placed,n.depth,n.fit)),t=n.move;for(let i=n.depth+1;i<=t.depth;i++){let r=t.node(i),a=r.type.contentMatch.fillBefore(r.content,!0,t.index(i));this.openFrontierNode(r.type,r.attrs,a)}return t}openFrontierNode(t,n=null,i){let r=this.frontier[this.depth];r.match=r.match.matchType(t),this.placed=Al(this.placed,this.depth,te.from(t.create(n,i))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(te.empty,!0);n.childCount&&(this.placed=Al(this.placed,this.frontier.length,n))}}function El(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(El(e.firstChild.content,t-1,n)))}function Al(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Al(e.lastChild.content,t-1,n)))}function up(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function h3(e,t,n){if(t<=0)return e;let i=e.content;return t>1&&(i=i.replaceChild(0,h3(i.firstChild,t-1,i.childCount==1?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(te.empty,!0)))),e.copy(i)}function dp(e,t,n,i,r){let a=e.node(t),o=r?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=i.fillBefore(a.content,!0,o);return s&&!ixe(n,a.content,o)?s:null}function ixe(e,t,n){for(let i=n;i<t.childCount;i++)if(!e.allowsMarks(t.child(i).marks))return!0;return!1}function rxe(e){return e.spec.defining||e.spec.definingForContent}function axe(e,t,n,i){if(!i.size)return e.deleteRange(t,n);let r=e.doc.resolve(t),a=e.doc.resolve(n);if(f3(r,a,i))return e.step(new Dt(t,n,i));let o=p3(r,e.doc.resolve(n));o[o.length-1]==0&&o.pop();let s=-(r.depth+1);o.unshift(s);for(let g=r.depth,p=r.pos-1;g>0;g--,p--){let y=r.node(g).type.spec;if(y.defining||y.definingAsContext||y.isolating)break;o.indexOf(g)>-1?s=g:r.before(g)==p&&o.splice(1,0,-g)}let u=o.indexOf(s),c=[],f=i.openStart;for(let g=i.content,p=0;;p++){let y=g.firstChild;if(c.push(y),p==i.openStart)break;g=y.content}for(let g=f-1;g>=0;g--){let p=c[g],y=rxe(p.type);if(y&&!p.sameMarkup(r.node(Math.abs(s)-1)))f=g;else if(y||!p.type.isTextblock)break}for(let g=i.openStart;g>=0;g--){let p=(g+f+1)%(i.openStart+1),y=c[p];if(y)for(let v=0;v<o.length;v++){let k=o[(v+u)%o.length],w=!0;k<0&&(w=!1,k=-k);let M=r.node(k-1),x=r.index(k-1);if(M.canReplaceWith(x,x,y.type,y.marks))return e.replace(r.before(k),w?a.after(k):n,new le(m3(i.content,0,i.openStart,p),p,i.openEnd))}}let h=e.steps.length;for(let g=o.length-1;g>=0&&(e.replace(t,n,i),!(e.steps.length>h));g--){let p=o[g];p<0||(t=r.before(p),n=a.after(p))}}function m3(e,t,n,i,r){if(t<n){let a=e.firstChild;e=e.replaceChild(0,a.copy(m3(a.content,t+1,n,i,a)))}if(t>i){let a=r.contentMatchAt(0),o=a.fillBefore(e).append(e);e=o.append(a.matchFragment(o).fillBefore(te.empty,!0))}return e}function oxe(e,t,n,i){if(!i.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=txe(e.doc,t,i.type);r!=null&&(t=n=r)}e.replaceRange(t,n,new le(te.from(i),0,0))}function sxe(e,t,n){let i=e.doc.resolve(t),r=e.doc.resolve(n),a=p3(i,r);for(let o=0;o<a.length;o++){let s=a[o],u=o==a.length-1;if(u&&s==0||i.node(s).type.contentMatch.validEnd)return e.delete(i.start(s),r.end(s));if(s>0&&(u||i.node(s-1).canReplace(i.index(s-1),r.indexAfter(s-1))))return e.delete(i.before(s),r.after(s))}for(let o=1;o<=i.depth&&o<=r.depth;o++)if(t-i.start(o)==i.depth-o&&n>i.end(o)&&r.end(o)-n!=r.depth-o&&i.start(o-1)==r.start(o-1)&&i.node(o-1).canReplace(i.index(o-1),r.index(o-1)))return e.delete(i.before(o),n);e.delete(t,n)}function p3(e,t){let n=[],i=Math.min(e.depth,t.depth);for(let r=i;r>=0;r--){let a=e.start(r);if(a<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(a==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==a-1)&&n.push(r)}return n}class Jo extends Xt{constructor(t,n,i){super(),this.pos=t,this.attr=n,this.value=i}apply(t){let n=t.nodeAt(this.pos);if(!n)return kt.fail("No node at attribute step's position");let i=Object.create(null);for(let a in n.attrs)i[a]=n.attrs[a];i[this.attr]=this.value;let r=n.type.create(i,null,n.marks);return kt.fromReplace(t,this.pos,this.pos+1,new le(te.from(r),0,n.isLeaf?0:1))}getMap(){return On.empty}invert(t){return new Jo(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Jo(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Jo(n.pos,n.attr,n.value)}}Xt.jsonID("attr",Jo);class Dl extends Xt{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;let i=t.type.create(n,t.content,t.marks);return kt.ok(i)}getMap(){return On.empty}invert(t){return new Dl(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Dl(n.attr,n.value)}}Xt.jsonID("docAttr",Dl);let Zo=class extends Error{};Zo=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},Zo.prototype=Object.create(Error.prototype),Zo.prototype.constructor=Zo,Zo.prototype.name="TransformError";class g3{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Pl}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new Zo(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,i=le.empty){let r=lc(this.doc,t,n,i);return r&&this.step(r),this}replaceWith(t,n,i){return this.replace(t,n,new le(te.from(i),0,0))}delete(t,n){return this.replace(t,n,le.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,i){return axe(this,t,n,i),this}replaceRangeWith(t,n,i){return oxe(this,t,n,i),this}deleteRange(t,n){return sxe(this,t,n),this}lift(t,n){return UCe(this,t,n),this}join(t,n=1){return exe(this,t,n),this}wrap(t,n){return qCe(this,t,n),this}setBlockType(t,n=t,i,r=null){return GCe(this,t,n,i,r),this}setNodeMarkup(t,n,i=null,r){return QCe(this,t,n,i,r),this}setNodeAttribute(t,n,i){return this.step(new Jo(t,n,i)),this}setDocAttribute(t,n){return this.step(new Dl(t,n)),this}addNodeMark(t,n){return this.step(new Vr(t,n)),this}removeNodeMark(t,n){let i=this.doc.nodeAt(t);if(!i)throw new RangeError("No node at position "+t);if(n instanceof Ge)n.isInSet(i.marks)&&this.step(new Xa(t,n));else{let r=i.marks,a,o=[];for(;a=n.isInSet(r);)o.push(new Xa(t,a)),r=a.removeFromSet(r);for(let s=o.length-1;s>=0;s--)this.step(o[s])}return this}split(t,n=1,i){return JCe(this,t,n,i),this}addMark(t,n,i){return BCe(this,t,n,i),this}removeMark(t,n,i){return VCe(this,t,n,i),this}clearIncompatible(t,n,i){return sp(this,t,n,i),this}}const cp=Object.create(null);class Pe{constructor(t,n,i){this.$anchor=t,this.$head=n,this.ranges=i||[new lxe(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n<t.length;n++)if(t[n].$from.pos!=t[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,n=le.empty){let i=n.content.lastChild,r=null;for(let s=0;s<n.openEnd;s++)r=i,i=i.lastChild;let a=t.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:u,$to:c}=o[s],f=t.mapping.slice(a);t.replaceRange(f.map(u.pos),f.map(c.pos),s?le.empty:n),s==0&&w3(t,a,(i?i.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(t,n){let i=t.steps.length,r=this.ranges;for(let a=0;a<r.length;a++){let{$from:o,$to:s}=r[a],u=t.mapping.slice(i),c=u.map(o.pos),f=u.map(s.pos);a?t.deleteRange(c,f):(t.replaceRangeWith(c,f,n),w3(t,i,n.isInline?-1:1))}}static findFrom(t,n,i=!1){let r=t.parent.inlineContent?new Ce(t):es(t.node(0),t.parent,t.pos,t.index(),n,i);if(r)return r;for(let a=t.depth-1;a>=0;a--){let o=n<0?es(t.node(0),t.node(a),t.before(a+1),t.index(a),n,i):es(t.node(0),t.node(a),t.after(a+1),t.index(a)+1,n,i);if(o)return o}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new qn(t.node(0))}static atStart(t){return es(t,t,0,0,1)||new qn(t)}static atEnd(t){return es(t,t,t.content.size,t.childCount,-1)||new qn(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=cp[n.type];if(!i)throw new RangeError(`No selection type ${n.type} defined`);return i.fromJSON(t,n)}static jsonID(t,n){if(t in cp)throw new RangeError("Duplicate use of selection JSON ID "+t);return cp[t]=n,n.prototype.jsonID=t,n}getBookmark(){return Ce.between(this.$anchor,this.$head).getBookmark()}}Pe.prototype.visible=!0;class lxe{constructor(t,n){this.$from=t,this.$to=n}}let y3=!1;function b3(e){!y3&&!e.parent.inlineContent&&(y3=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Ce extends Pe{constructor(t,n=t){b3(t),b3(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let i=t.resolve(n.map(this.head));if(!i.parent.inlineContent)return Pe.near(i);let r=t.resolve(n.map(this.anchor));return new Ce(r.parent.inlineContent?r:i,i)}replace(t,n=le.empty){if(super.replace(t,n),n==le.empty){let i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}}eq(t){return t instanceof Ce&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new uc(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ce(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,i=n){let r=t.resolve(n);return new this(r,i==n?r:t.resolve(i))}static between(t,n,i){let r=t.pos-n.pos;if((!i||r)&&(i=r>=0?1:-1),!n.parent.inlineContent){let a=Pe.findFrom(n,i,!0)||Pe.findFrom(n,-i,!0);if(a)n=a.$head;else return Pe.near(n,i)}return t.parent.inlineContent||(r==0?t=n:(t=(Pe.findFrom(t,-i,!0)||Pe.findFrom(t,i,!0)).$anchor,t.pos<n.pos!=r<0&&(t=n))),new Ce(t,n)}}Pe.jsonID("text",Ce);class uc{constructor(t,n){this.anchor=t,this.head=n}map(t){return new uc(t.map(this.anchor),t.map(this.head))}resolve(t){return Ce.between(t.resolve(this.anchor),t.resolve(this.head))}}class be extends Pe{constructor(t){let n=t.nodeAfter,i=t.node(0).resolve(t.pos+n.nodeSize);super(t,i),this.node=n}map(t,n){let{deleted:i,pos:r}=n.mapResult(this.anchor),a=t.resolve(r);return i?Pe.near(a):new be(a)}content(){return new le(te.from(this.node),0,0)}eq(t){return t instanceof be&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new fp(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new be(t.resolve(n.anchor))}static create(t,n){return new be(t.resolve(n))}static isSelectable(t){return!t.isText&&t.type.spec.selectable!==!1}}be.prototype.visible=!1,Pe.jsonID("node",be);class fp{constructor(t){this.anchor=t}map(t){let{deleted:n,pos:i}=t.mapResult(this.anchor);return n?new uc(i,i):new fp(i)}resolve(t){let n=t.resolve(this.anchor),i=n.nodeAfter;return i&&be.isSelectable(i)?new be(n):Pe.near(n)}}class qn extends Pe{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,n=le.empty){if(n==le.empty){t.delete(0,t.doc.content.size);let i=Pe.atStart(t.doc);i.eq(t.selection)||t.setSelection(i)}else super.replace(t,n)}toJSON(){return{type:"all"}}static fromJSON(t){return new qn(t)}map(t){return new qn(t)}eq(t){return t instanceof qn}getBookmark(){return uxe}}Pe.jsonID("all",qn);const uxe={map(){return this},resolve(e){return new qn(e)}};function es(e,t,n,i,r,a=!1){if(t.inlineContent)return Ce.create(e,n);for(let o=i-(r>0?0:1);r>0?o<t.childCount:o>=0;o+=r){let s=t.child(o);if(s.isAtom){if(!a&&be.isSelectable(s))return be.create(e,n-(r<0?s.nodeSize:0))}else{let u=es(e,s,n+r,r<0?s.childCount:0,r,a);if(u)return u}n+=s.nodeSize*r}return null}function w3(e,t,n){let i=e.steps.length-1;if(i<t)return;let r=e.steps[i];if(!(r instanceof Dt||r instanceof Nt))return;let a=e.mapping.maps[i],o;a.forEach((s,u,c,f)=>{o==null&&(o=f)}),e.setSelection(Pe.near(e.doc.resolve(o),n))}const v3=1,dc=2,k3=4;class dxe extends g3{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(this.updated|v3)&~dc,this.storedMarks=null,this}get selectionSet(){return(this.updated&v3)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=dc,this}ensureMarks(t){return Ge.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&dc)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~dc,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let i=this.selection;return n&&(t=t.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||Ge.none))),i.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,i){let r=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(r.text(t),!0):this.deleteSelection();{if(i==null&&(i=n),i=i??n,!t)return this.deleteRange(n,i);let a=this.storedMarks;if(!a){let o=this.doc.resolve(n);a=i==n?o.marks():o.marksAcross(this.doc.resolve(i))}return this.replaceRangeWith(n,i,r.text(t,a)),this.selection.empty||this.setSelection(Pe.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=k3,this}get scrolledIntoView(){return(this.updated&k3)>0}}function M3(e,t){return!t||!e?e:e.bind(t)}class Nl{constructor(t,n,i){this.name=t,this.init=M3(n.init,i),this.apply=M3(n.apply,i)}}const cxe=[new Nl("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new Nl("selection",{init(e,t){return e.selection||Pe.atStart(t.doc)},apply(e){return e.selection}}),new Nl("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,i){return i.selection.$cursor?e.storedMarks:null}}),new Nl("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class hp{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=cxe.slice(),n&&n.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new Nl(i.key,i.spec.state,i))})}}class ts{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let i=0;i<this.config.plugins.length;i++)if(i!=n){let r=this.config.plugins[i];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let n=[t],i=this.applyInner(t),r=null;for(;;){let a=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let u=r?r[o].n:0,c=r?r[o].state:this,f=u<n.length&&s.spec.appendTransaction.call(s,u?n.slice(u):n,c,i);if(f&&i.filterTransaction(f,o)){if(f.setMeta("appendedTransaction",t),!r){r=[];for(let h=0;h<this.config.plugins.length;h++)r.push(h<o?{state:i,n:n.length}:{state:this,n:0})}n.push(f),i=i.applyInner(f),a=!0}r&&(r[o]={state:i,n:n.length})}}if(!a)return{state:i,transactions:n}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new ts(this.config),i=this.config.fields;for(let r=0;r<i.length;r++){let a=i[r];n[a.name]=a.apply(t,this[a.name],this,n)}return n}get tr(){return new dxe(this)}static create(t){let n=new hp(t.doc?t.doc.type.schema:t.schema,t.plugins),i=new ts(n);for(let r=0;r<n.fields.length;r++)i[n.fields[r].name]=n.fields[r].init(t,i);return i}reconfigure(t){let n=new hp(this.schema,t.plugins),i=n.fields,r=new ts(n);for(let a=0;a<i.length;a++){let o=i[a].name;r[o]=this.hasOwnProperty(o)?this[o]:i[a].init(t,r)}return r}toJSON(t){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(i=>i.toJSON())),t&&typeof t=="object")for(let i in t){if(i=="doc"||i=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=t[i],a=r.spec.state;a&&a.toJSON&&(n[i]=a.toJSON.call(r,this[r.key]))}return n}static fromJSON(t,n,i){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let r=new hp(t.schema,t.plugins),a=new ts(r);return r.fields.forEach(o=>{if(o.name=="doc")a.doc=Hr.fromJSON(t.schema,n.doc);else if(o.name=="selection")a.selection=Pe.fromJSON(a.doc,n.selection);else if(o.name=="storedMarks")n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(i)for(let s in i){let u=i[s],c=u.spec.state;if(u.key==o.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){a[o.name]=c.fromJSON.call(u,t,n[s],a);return}}a[o.name]=o.init(t,a)}}),a}}function C3(e,t,n){for(let i in e){let r=e[i];r instanceof Function?r=r.bind(t):i=="handleDOMEvents"&&(r=C3(r,t,{})),n[i]=r}return n}class ct{constructor(t){this.spec=t,this.props={},t.props&&C3(t.props,this,this.props),this.key=t.key?t.key.key:x3("plugin")}getState(t){return t[this.key]}}const mp=Object.create(null);function x3(e){return e in mp?e+"$"+ ++mp[e]:(mp[e]=0,e+"$")}class jt{constructor(t="key"){this.key=x3(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const Lt=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},ns=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let pp=null;const ar=function(e,t,n){let i=pp||(pp=document.createRange());return i.setEnd(e,n??e.nodeValue.length),i.setStart(e,t||0),i},fxe=function(){pp=null},qa=function(e,t,n,i){return n&&(S3(e,t,n,i,-1)||S3(e,t,n,i,1))},hxe=/^(img|br|input|textarea|hr)$/i;function S3(e,t,n,i,r){for(var a;;){if(e==n&&t==i)return!0;if(t==(r<0?0:Gn(e))){let o=e.parentNode;if(!o||o.nodeType!=1||jl(e)||hxe.test(e.nodeName)||e.contentEditable=="false")return!1;t=Lt(e)+(r<0?0:1),e=o}else if(e.nodeType==1){let o=e.childNodes[t+(r<0?-1:0)];if(o.nodeType==1&&o.contentEditable=="false")if(!((a=o.pmViewDesc)===null||a===void 0)&&a.ignoreForSelection)t+=r;else return!1;else e=o,t=r<0?Gn(e):0}else return!1}}function Gn(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function mxe(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=Gn(e)}else if(e.parentNode&&!jl(e))t=Lt(e),e=e.parentNode;else return null}}function pxe(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!jl(e))t=Lt(e)+1,e=e.parentNode;else return null}}function gxe(e,t,n){for(let i=t==0,r=t==Gn(e);i||r;){if(e==n)return!0;let a=Lt(e);if(e=e.parentNode,!e)return!1;i=i&&a==0,r=r&&a==Gn(e)}}function jl(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const cc=function(e){return e.focusNode&&qa(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function Ga(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function yxe(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function bxe(e,t,n){if(e.caretPositionFromPoint)try{let i=e.caretPositionFromPoint(t,n);if(i)return{node:i.offsetNode,offset:Math.min(Gn(i.offsetNode),i.offset)}}catch{}if(e.caretRangeFromPoint){let i=e.caretRangeFromPoint(t,n);if(i)return{node:i.startContainer,offset:Math.min(Gn(i.startContainer),i.startOffset)}}}const Bi=typeof navigator<"u"?navigator:null,_3=typeof document<"u"?document:null,Ur=Bi&&Bi.userAgent||"",gp=/Edge\/(\d+)/.exec(Ur),T3=/MSIE \d/.exec(Ur),yp=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ur),xn=!!(T3||yp||gp),Yr=T3?document.documentMode:yp?+yp[1]:gp?+gp[1]:0,Kn=!xn&&/gecko\/(\d+)/i.test(Ur);Kn&&+(/Firefox\/(\d+)/.exec(Ur)||[0,0])[1];const bp=!xn&&/Chrome\/(\d+)/.exec(Ur),qt=!!bp,P3=bp?+bp[1]:0,cn=!xn&&!!Bi&&/Apple Computer/.test(Bi.vendor),is=cn&&(/Mobile\/\w+/.test(Ur)||!!Bi&&Bi.maxTouchPoints>2),Qn=is||(Bi?/Mac/.test(Bi.platform):!1),wxe=Bi?/Win/.test(Bi.platform):!1,or=/Android \d/.test(Ur),Il=!!_3&&"webkitFontSmoothing"in _3.documentElement.style,vxe=Il?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function kxe(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function sr(e,t){return typeof e=="number"?e:e[t]}function Mxe(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,i=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*i}}function E3(e,t,n){let i=e.someProp("scrollThreshold")||0,r=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;){if(o.nodeType!=1){o=ns(o);continue}let s=o,u=s==a.body,c=u?kxe(a):Mxe(s),f=0,h=0;if(t.top<c.top+sr(i,"top")?h=-(c.top-t.top+sr(r,"top")):t.bottom>c.bottom-sr(i,"bottom")&&(h=t.bottom-t.top>c.bottom-c.top?t.top+sr(r,"top")-c.top:t.bottom-c.bottom+sr(r,"bottom")),t.left<c.left+sr(i,"left")?f=-(c.left-t.left+sr(r,"left")):t.right>c.right-sr(i,"right")&&(f=t.right-c.right+sr(r,"right")),f||h)if(u)a.defaultView.scrollBy(f,h);else{let p=s.scrollLeft,y=s.scrollTop;h&&(s.scrollTop+=h),f&&(s.scrollLeft+=f);let v=s.scrollLeft-p,k=s.scrollTop-y;t={left:t.left-v,top:t.top-k,right:t.right-v,bottom:t.bottom-k}}let g=u?"fixed":getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(g))break;o=g=="absolute"?o.offsetParent:ns(o)}}function Cxe(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),i,r;for(let a=(t.left+t.right)/2,o=n+1;o<Math.min(innerHeight,t.bottom);o+=5){let s=e.root.elementFromPoint(a,o);if(!s||s==e.dom||!e.dom.contains(s))continue;let u=s.getBoundingClientRect();if(u.top>=n-20){i=s,r=u.top;break}}return{refDOM:i,refTop:r,stack:A3(e.dom)}}function A3(e){let t=[],n=e.ownerDocument;for(let i=e;i&&(t.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),e!=n);i=ns(i));return t}function xxe({refDOM:e,refTop:t,stack:n}){let i=e?e.getBoundingClientRect().top:0;D3(n,i==0?0:i-t)}function D3(e,t){for(let n=0;n<e.length;n++){let{dom:i,top:r,left:a}=e[n];i.scrollTop!=r+t&&(i.scrollTop=r+t),i.scrollLeft!=a&&(i.scrollLeft=a)}}let rs=null;function Sxe(e){if(e.setActive)return e.setActive();if(rs)return e.focus(rs);let t=A3(e);e.focus(rs==null?{get preventScroll(){return rs={preventScroll:!0},!0}}:void 0),rs||(rs=!1,D3(t,0))}function N3(e,t){let n,i=2e8,r,a=0,o=t.top,s=t.top,u,c;for(let f=e.firstChild,h=0;f;f=f.nextSibling,h++){let g;if(f.nodeType==1)g=f.getClientRects();else if(f.nodeType==3)g=ar(f).getClientRects();else continue;for(let p=0;p<g.length;p++){let y=g[p];if(y.top<=o&&y.bottom>=s){o=Math.max(y.bottom,o),s=Math.min(y.top,s);let v=y.left>t.left?y.left-t.left:y.right<t.left?t.left-y.right:0;if(v<i){n=f,i=v,r=v&&n.nodeType==3?{left:y.right<t.left?y.right:y.left,top:t.top}:t,f.nodeType==1&&v&&(a=h+(t.left>=(y.left+y.right)/2?1:0));continue}}else y.top>t.top&&!u&&y.left<=t.left&&y.right>=t.left&&(u=f,c={left:Math.max(y.left,Math.min(y.right,t.left)),top:y.top});!n&&(t.left>=y.right&&t.top>=y.top||t.left>=y.left&&t.top>=y.bottom)&&(a=h+1)}}return!n&&u&&(n=u,r=c,i=0),n&&n.nodeType==3?_xe(n,r):!n||i&&n.nodeType==1?{node:e,offset:a}:N3(n,r)}function _xe(e,t){let n=e.nodeValue.length,i=document.createRange();for(let r=0;r<n;r++){i.setEnd(e,r+1),i.setStart(e,r);let a=Xr(i,1);if(a.top!=a.bottom&&wp(t,a))return{node:e,offset:r+(t.left>=(a.left+a.right)/2?1:0)}}return{node:e,offset:0}}function wp(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function Txe(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function Pxe(e,t,n){let{node:i,offset:r}=N3(t,n),a=-1;if(i.nodeType==1&&!i.firstChild){let o=i.getBoundingClientRect();a=o.left!=o.right&&n.left>(o.left+o.right)/2?1:-1}return e.docView.posFromDOM(i,r,a)}function Exe(e,t,n,i){let r=-1;for(let a=t,o=!1;a!=e.dom;){let s=e.docView.nearestDesc(a,!0),u;if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)&&((u=s.dom.getBoundingClientRect()).width||u.height)&&(s.node.isBlock&&s.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(s.dom.nodeName)&&(!o&&u.left>i.left||u.top>i.top?r=s.posBefore:(!o&&u.right<i.left||u.bottom<i.top)&&(r=s.posAfter),o=!0),!s.contentDOM&&r<0&&!s.node.isText))return(s.node.isBlock?i.top<(u.top+u.bottom)/2:i.left<(u.left+u.right)/2)?s.posBefore:s.posAfter;a=s.dom.parentNode}return r>-1?r:e.docView.posFromDOM(t,n,-1)}function j3(e,t,n){let i=e.childNodes.length;if(i&&n.top<n.bottom)for(let r=Math.max(0,Math.min(i-1,Math.floor(i*(t.top-n.top)/(n.bottom-n.top))-2)),a=r;;){let o=e.childNodes[a];if(o.nodeType==1){let s=o.getClientRects();for(let u=0;u<s.length;u++){let c=s[u];if(wp(t,c))return j3(o,t,c)}}if((a=(a+1)%i)==r)break}return e}function Axe(e,t){let n=e.dom.ownerDocument,i,r=0,a=bxe(n,t.left,t.top);a&&({node:i,offset:r}=a);let o=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),s;if(!o||!e.dom.contains(o.nodeType!=1?o.parentNode:o)){let c=e.dom.getBoundingClientRect();if(!wp(t,c)||(o=j3(e.dom,t,c),!o))return null}if(cn)for(let c=o;i&&c;c=ns(c))c.draggable&&(i=void 0);if(o=Txe(o,t),i){if(Kn&&i.nodeType==1&&(r=Math.min(r,i.childNodes.length),r<i.childNodes.length)){let f=i.childNodes[r],h;f.nodeName=="IMG"&&(h=f.getBoundingClientRect()).right<=t.left&&h.bottom>t.top&&r++}let c;Il&&r&&i.nodeType==1&&(c=i.childNodes[r-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=t.top&&r--,i==e.dom&&r==i.childNodes.length-1&&i.lastChild.nodeType==1&&t.top>i.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(r==0||i.nodeType!=1||i.childNodes[r-1].nodeName!="BR")&&(s=Exe(e,i,r,t))}s==null&&(s=Pxe(e,o,t));let u=e.docView.nearestDesc(o,!0);return{pos:s,inside:u?u.posAtStart-u.border:-1}}function I3(e){return e.top<e.bottom||e.left<e.right}function Xr(e,t){let n=e.getClientRects();if(n.length){let i=n[t<0?0:n.length-1];if(I3(i))return i}return Array.prototype.find.call(n,I3)||e.getBoundingClientRect()}const Dxe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function W3(e,t,n){let{node:i,offset:r,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=Il||Kn;if(i.nodeType==3)if(o&&(Dxe.test(i.nodeValue)||(n<0?!r:r==i.nodeValue.length))){let u=Xr(ar(i,r,r),n);if(Kn&&r&&/\s/.test(i.nodeValue[r-1])&&r<i.nodeValue.length){let c=Xr(ar(i,r-1,r-1),-1);if(c.top==u.top){let f=Xr(ar(i,r,r+1),-1);if(f.top!=u.top)return Wl(f,f.left<c.left)}}return u}else{let u=r,c=r,f=n<0?1:-1;return n<0&&!r?(c++,f=-1):n>=0&&r==i.nodeValue.length?(u--,f=1):n<0?u--:c++,Wl(Xr(ar(i,u,c),f),f<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&r&&(n<0||r==Gn(i))){let u=i.childNodes[r-1];if(u.nodeType==1)return vp(u.getBoundingClientRect(),!1)}if(a==null&&r<Gn(i)){let u=i.childNodes[r];if(u.nodeType==1)return vp(u.getBoundingClientRect(),!0)}return vp(i.getBoundingClientRect(),n>=0)}if(a==null&&r&&(n<0||r==Gn(i))){let u=i.childNodes[r-1],c=u.nodeType==3?ar(u,Gn(u)-(o?0:1)):u.nodeType==1&&(u.nodeName!="BR"||!u.nextSibling)?u:null;if(c)return Wl(Xr(c,1),!1)}if(a==null&&r<Gn(i)){let u=i.childNodes[r];for(;u.pmViewDesc&&u.pmViewDesc.ignoreForCoords;)u=u.nextSibling;let c=u?u.nodeType==3?ar(u,0,o?0:1):u.nodeType==1?u:null:null;if(c)return Wl(Xr(c,-1),!0)}return Wl(Xr(i.nodeType==3?ar(i):i,-n),n>=0)}function Wl(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function vp(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function O3(e,t,n){let i=e.state,r=e.root.activeElement;i!=t&&e.updateState(t),r!=e.dom&&e.focus();try{return n()}finally{i!=t&&e.updateState(i),r!=e.dom&&r&&r.focus()}}function Nxe(e,t,n){let i=t.selection,r=n=="up"?i.$from:i.$to;return O3(e,t,()=>{let{node:a}=e.docView.domFromPos(r.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(a,!0);if(!s)break;if(s.node.isBlock){a=s.contentDOM||s.dom;break}a=s.dom.parentNode}let o=W3(e,r.pos,1);for(let s=a.firstChild;s;s=s.nextSibling){let u;if(s.nodeType==1)u=s.getClientRects();else if(s.nodeType==3)u=ar(s,0,s.nodeValue.length).getClientRects();else continue;for(let c=0;c<u.length;c++){let f=u[c];if(f.bottom>f.top+1&&(n=="up"?o.top-f.top>(f.bottom-o.top)*2:f.bottom-o.bottom>(o.bottom-f.top)*2))return!1}}return!0})}const jxe=/[\u0590-\u08ac]/;function Ixe(e,t,n){let{$head:i}=t.selection;if(!i.parent.isTextblock)return!1;let r=i.parentOffset,a=!r,o=r==i.parent.content.size,s=e.domSelection();return s?!jxe.test(i.parent.textContent)||!s.modify?n=="left"||n=="backward"?a:o:O3(e,t,()=>{let{focusNode:u,focusOffset:c,anchorNode:f,anchorOffset:h}=e.domSelectionRange(),g=s.caretBidiLevel;s.modify("move",n,"character");let p=i.depth?e.docView.domAfterPos(i.before()):e.dom,{focusNode:y,focusOffset:v}=e.domSelectionRange(),k=y&&!p.contains(y.nodeType==1?y:y.parentNode)||u==y&&c==v;try{s.collapse(f,h),u&&(u!=f||c!=h)&&s.extend&&s.extend(u,c)}catch{}return g!=null&&(s.caretBidiLevel=g),k}):i.pos==i.start()||i.pos==i.end()}let z3=null,L3=null,$3=!1;function Wxe(e,t,n){return z3==t&&L3==n?$3:(z3=t,L3=n,$3=n=="up"||n=="down"?Nxe(e,t,n):Ixe(e,t,n))}const Jn=0,H3=1,Ka=2,Vi=3;class Ol{constructor(t,n,i,r){this.parent=t,this.children=n,this.dom=i,this.contentDOM=r,this.dirty=Jn,i.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,i){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;n<this.children.length;n++)t+=this.children[n].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let n=0,i=this.posAtStart;;n++){let r=this.children[n];if(r==t)return i;i+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,n,i){if(this.contentDOM&&this.contentDOM.contains(t.nodeType==1?t:t.parentNode))if(i<0){let a,o;if(t==this.contentDOM)a=t.childNodes[n-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;a=t.previousSibling}for(;a&&!((o=a.pmViewDesc)&&o.parent==this);)a=a.previousSibling;return a?this.posBeforeChild(o)+o.size:this.posAtStart}else{let a,o;if(t==this.contentDOM)a=t.childNodes[n];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;a=t.nextSibling}for(;a&&!((o=a.pmViewDesc)&&o.parent==this);)a=a.nextSibling;return a?this.posBeforeChild(o):this.posAtEnd}let r;if(t==this.dom&&this.contentDOM)r=n>Lt(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let a=t;;a=a.parentNode){if(a==this.dom){r=!1;break}if(a.previousSibling)break}if(r==null&&n==t.childNodes.length)for(let a=t;;a=a.parentNode){if(a==this.dom){r=!0;break}if(a.nextSibling)break}}return r??i>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let i=!0,r=t;r;r=r.parentNode){let a=this.getDesc(r),o;if(a&&(!n||a.node))if(i&&(o=a.nodeDOM)&&!(o.nodeType==1?o.contains(t.nodeType==1?t:t.parentNode):o==t))i=!1;else return a}}getDesc(t){let n=t.pmViewDesc;for(let i=n;i;i=i.parent)if(i==this)return n}posFromDOM(t,n,i){for(let r=t;r;r=r.parentNode){let a=this.getDesc(r);if(a)return a.localPosFromDOM(t,n,i)}return-1}descAt(t){for(let n=0,i=0;n<this.children.length;n++){let r=this.children[n],a=i+r.size;if(i==t&&a!=i){for(;!r.border&&r.children.length;)for(let o=0;o<r.children.length;o++){let s=r.children[o];if(s.size){r=s;break}}return r}if(t<a)return r.descAt(t-i-r.border);i=a}}domFromPos(t,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let i=0,r=0;for(let a=0;i<this.children.length;i++){let o=this.children[i],s=a+o.size;if(s>t||o instanceof V3){r=t-a;break}a=s}if(r)return this.children[i].domFromPos(r-this.children[i].border,n);for(let a;i&&!(a=this.children[i-1]).size&&a instanceof R3&&a.side>=0;i--);if(n<=0){let a,o=!0;for(;a=i?this.children[i-1]:null,!(!a||a.dom.parentNode==this.contentDOM);i--,o=!1);return a&&n&&o&&!a.border&&!a.domAtom?a.domFromPos(a.size,n):{node:this.contentDOM,offset:a?Lt(a.dom)+1:0}}else{let a,o=!0;for(;a=i<this.children.length?this.children[i]:null,!(!a||a.dom.parentNode==this.contentDOM);i++,o=!1);return a&&o&&!a.border&&!a.domAtom?a.domFromPos(0,n):{node:this.contentDOM,offset:a?Lt(a.dom):this.contentDOM.childNodes.length}}}parseRange(t,n,i=0){if(this.children.length==0)return{node:this.contentDOM,from:t,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,a=-1;for(let o=i,s=0;;s++){let u=this.children[s],c=o+u.size;if(r==-1&&t<=c){let f=o+u.border;if(t>=f&&n<=c-u.border&&u.node&&u.contentDOM&&this.contentDOM.contains(u.contentDOM))return u.parseRange(t,n,f);t=o;for(let h=s;h>0;h--){let g=this.children[h-1];if(g.size&&g.dom.parentNode==this.contentDOM&&!g.emptyChildAt(1)){r=Lt(g.dom)+1;break}t-=g.size}r==-1&&(r=0)}if(r>-1&&(c>n||s==this.children.length-1)){n=c;for(let f=s+1;f<this.children.length;f++){let h=this.children[f];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){a=Lt(h.dom);break}n+=h.size}a==-1&&(a=this.contentDOM.childNodes.length);break}o=c}return{node:this.contentDOM,from:t,to:n,fromOffset:r,toOffset:a}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[t<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(t)}domAfterPos(t){let{node:n,offset:i}=this.domFromPos(t,0);if(n.nodeType!=1||i==n.childNodes.length)throw new RangeError("No node after pos "+t);return n.childNodes[i]}setSelection(t,n,i,r=!1){let a=Math.min(t,n),o=Math.max(t,n);for(let p=0,y=0;p<this.children.length;p++){let v=this.children[p],k=y+v.size;if(a>y&&o<k)return v.setSelection(t-y-v.border,n-y-v.border,i,r);y=k}let s=this.domFromPos(t,t?-1:1),u=n==t?s:this.domFromPos(n,n?-1:1),c=i.root.getSelection(),f=i.domSelectionRange(),h=!1;if((Kn||cn)&&t==n){let{node:p,offset:y}=s;if(p.nodeType==3){if(h=!!(y&&p.nodeValue[y-1]==`
|
|
1301
|
+
`),h&&y==p.nodeValue.length)for(let v=p,k;v;v=v.parentNode){if(k=v.nextSibling){k.nodeName=="BR"&&(s=u={node:k.parentNode,offset:Lt(k)+1});break}let w=v.pmViewDesc;if(w&&w.node&&w.node.isBlock)break}}else{let v=p.childNodes[y-1];h=v&&(v.nodeName=="BR"||v.contentEditable=="false")}}if(Kn&&f.focusNode&&f.focusNode!=u.node&&f.focusNode.nodeType==1){let p=f.focusNode.childNodes[f.focusOffset];p&&p.contentEditable=="false"&&(r=!0)}if(!(r||h&&cn)&&qa(s.node,s.offset,f.anchorNode,f.anchorOffset)&&qa(u.node,u.offset,f.focusNode,f.focusOffset))return;let g=!1;if((c.extend||t==n)&&!(h&&Kn)){c.collapse(s.node,s.offset);try{t!=n&&c.extend(u.node,u.offset),g=!0}catch{}}if(!g){if(t>n){let y=s;s=u,u=y}let p=document.createRange();p.setEnd(u.node,u.offset),p.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(p)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let i=0,r=0;r<this.children.length;r++){let a=this.children[r],o=i+a.size;if(i==o?t<=o&&n>=i:t<o&&n>i){let s=i+a.border,u=o-a.border;if(t>=s&&n<=u){this.dirty=t==i||n==o?Ka:H3,t==s&&n==u&&(a.contentLost||a.dom.parentNode!=this.contentDOM)?a.dirty=Vi:a.markDirty(t-s,n-s);return}else a.dirty=a.dom==a.contentDOM&&a.dom.parentNode==this.contentDOM&&!a.children.length?Ka:Vi}i=o}this.dirty=Ka}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let i=t==1?Ka:H3;n.dirty<i&&(n.dirty=i)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(t){return!1}}class R3 extends Ol{constructor(t,n,i,r){let a,o=n.type.toDOM;if(typeof o=="function"&&(o=o(i,()=>{if(!a)return r;if(a.parent)return a.parent.posBeforeChild(a)})),!n.type.spec.raw){if(o.nodeType!=1){let s=document.createElement("span");s.appendChild(o),o=s}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(t,[],o,null),this.widget=n,this.widget=n,a=this}matchesWidget(t){return this.dirty==Jn&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class Oxe extends Ol{constructor(t,n,i,r){super(t,[],n,null),this.textDOM=i,this.text=r}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class Qa extends Ol{constructor(t,n,i,r,a){super(t,[],i,r),this.mark=n,this.spec=a}static create(t,n,i,r){let a=r.nodeViews[n.type.name],o=a&&a(n,r,i);return(!o||!o.dom)&&(o=Ya.renderSpec(document,n.type.spec.toDOM(n,i),null,n.attrs)),new Qa(t,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&Vi||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=Vi&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=Jn){let i=this.parent;for(;!i.node;)i=i.parent;i.dirty<this.dirty&&(i.dirty=this.dirty),this.dirty=Jn}}slice(t,n,i){let r=Qa.create(this.parent,this.mark,!0,i),a=this.children,o=this.size;n<o&&(a=Mp(a,n,o,i)),t>0&&(a=Mp(a,0,t,i));for(let s=0;s<a.length;s++)a[s].parent=r;return r.children=a,r}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class qr extends Ol{constructor(t,n,i,r,a,o,s,u,c){super(t,[],a,o),this.node=n,this.outerDeco=i,this.innerDeco=r,this.nodeDOM=s}static create(t,n,i,r,a,o){let s=a.nodeViews[n.type.name],u,c=s&&s(n,a,()=>{if(!u)return o;if(u.parent)return u.parent.posBeforeChild(u)},i,r),f=c&&c.dom,h=c&&c.contentDOM;if(n.isText){if(!f)f=document.createTextNode(n.text);else if(f.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else f||({dom:f,contentDOM:h}=Ya.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!h&&!n.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),n.type.spec.draggable&&(f.draggable=!0));let g=f;return f=Y3(f,i,n),c?u=new zxe(t,n,i,r,f,h||null,g,c,a,o+1):n.isText?new fc(t,n,i,r,f,g,a):new qr(t,n,i,r,f,h||null,g,a,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let i=this.children[n];if(this.dom.contains(i.dom.parentNode)){t.contentElement=i.dom.parentNode;break}}t.contentElement||(t.getContent=()=>te.empty)}return t}matchesNode(t,n,i){return this.dirty==Jn&&t.eq(this.node)&&hc(n,this.outerDeco)&&i.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let i=this.node.inlineContent,r=n,a=t.composing?this.localCompositionInfo(t,n):null,o=a&&a.pos>-1?a:null,s=a&&a.pos<0,u=new $xe(this,o&&o.node,t);Bxe(this.node,this.innerDeco,(c,f,h)=>{c.spec.marks?u.syncToMarks(c.spec.marks,i,t):c.type.side>=0&&!h&&u.syncToMarks(f==this.node.childCount?Ge.none:this.node.child(f).marks,i,t),u.placeWidget(c,t,r)},(c,f,h,g)=>{u.syncToMarks(c.marks,i,t);let p;u.findNodeMatch(c,f,h,g)||s&&t.state.selection.from>r&&t.state.selection.to<r+c.nodeSize&&(p=u.findIndexWithChild(a.node))>-1&&u.updateNodeAt(c,f,h,p,t)||u.updateNextNode(c,f,h,t,g,r)||u.addNode(c,f,h,t,r),r+=c.nodeSize}),u.syncToMarks([],i,t),this.node.isTextblock&&u.addTextblockHacks(),u.destroyRest(),(u.changed||this.dirty==Ka)&&(o&&this.protectLocalComposition(t,o),F3(this.contentDOM,this.children,t),is&&Vxe(this.dom))}localCompositionInfo(t,n){let{from:i,to:r}=t.state.selection;if(!(t.state.selection instanceof Ce)||i<n||r>n+this.node.content.size)return null;let a=t.input.compositionNode;if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let o=a.nodeValue,s=Fxe(this.node.content,o,i-n,r-n);return s<0?null:{node:a,pos:s,text:o}}else return{node:a,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:i,text:r}){if(this.getDesc(n))return;let a=n;for(;a.parentNode!=this.contentDOM;a=a.parentNode){for(;a.previousSibling;)a.parentNode.removeChild(a.previousSibling);for(;a.nextSibling;)a.parentNode.removeChild(a.nextSibling);a.pmViewDesc&&(a.pmViewDesc=void 0)}let o=new Oxe(this,a,n,r);t.input.compositionNodes.push(o),this.children=Mp(this.children,i,i+r.length,t,o)}update(t,n,i,r){return this.dirty==Vi||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,i,r),!0)}updateInner(t,n,i,r){this.updateOuterDeco(n),this.node=t,this.innerDeco=i,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Jn}updateOuterDeco(t){if(hc(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,i=this.dom;this.dom=U3(this.dom,this.nodeDOM,kp(this.outerDeco,this.node,n),kp(t,this.node,n)),this.dom!=i&&(i.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function B3(e,t,n,i,r){Y3(i,t,e);let a=new qr(void 0,e,t,n,i,i,i,r,0);return a.contentDOM&&a.updateChildren(r,0),a}class fc extends qr{constructor(t,n,i,r,a,o,s){super(t,n,i,r,a,null,o,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,i,r){return this.dirty==Vi||this.dirty!=Jn&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Jn||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=t,this.dirty=Jn,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,i){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,i)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,i){let r=this.node.cut(t,n),a=document.createTextNode(r.text);return new fc(this.parent,r,this.outerDeco,this.innerDeco,a,a,i)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Vi)}get domAtom(){return!1}isText(t){return this.node.text==t}}class V3 extends Ol{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==Jn&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class zxe extends qr{constructor(t,n,i,r,a,o,s,u,c,f){super(t,n,i,r,a,o,s,c,f),this.spec=u}update(t,n,i,r){if(this.dirty==Vi)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let a=this.spec.update(t,n,i);return a&&this.updateInner(t,n,i,r),a}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,i,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,i,r){this.spec.setSelection?this.spec.setSelection(t,n,i.root):super.setSelection(t,n,i,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function F3(e,t,n){let i=e.firstChild,r=!1;for(let a=0;a<t.length;a++){let o=t[a],s=o.dom;if(s.parentNode==e){for(;s!=i;)i=X3(i),r=!0;i=i.nextSibling}else r=!0,e.insertBefore(s,i);if(o instanceof Qa){let u=i?i.previousSibling:e.lastChild;F3(o.contentDOM,o.children,n),i=u?u.nextSibling:e.firstChild}}for(;i;)i=X3(i),r=!0;r&&n.trackWrites==e&&(n.trackWrites=null)}const zl=function(e){e&&(this.nodeName=e)};zl.prototype=Object.create(null);const Ja=[new zl];function kp(e,t,n){if(e.length==0)return Ja;let i=n?Ja[0]:new zl,r=[i];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&r.push(i=new zl(o.nodeName));for(let s in o){let u=o[s];u!=null&&(n&&r.length==1&&r.push(i=new zl(t.isInline?"span":"div")),s=="class"?i.class=(i.class?i.class+" ":"")+u:s=="style"?i.style=(i.style?i.style+";":"")+u:s!="nodeName"&&(i[s]=u))}}}return r}function U3(e,t,n,i){if(n==Ja&&i==Ja)return t;let r=t;for(let a=0;a<i.length;a++){let o=i[a],s=n[a];if(a){let u;s&&s.nodeName==o.nodeName&&r!=e&&(u=r.parentNode)&&u.nodeName.toLowerCase()==o.nodeName||(u=document.createElement(o.nodeName),u.pmIsDeco=!0,u.appendChild(r),s=Ja[0]),r=u}Lxe(r,s||Ja[0],o)}return r}function Lxe(e,t,n){for(let i in t)i!="class"&&i!="style"&&i!="nodeName"&&!(i in n)&&e.removeAttribute(i);for(let i in n)i!="class"&&i!="style"&&i!="nodeName"&&n[i]!=t[i]&&e.setAttribute(i,n[i]);if(t.class!=n.class){let i=t.class?t.class.split(" ").filter(Boolean):[],r=n.class?n.class.split(" ").filter(Boolean):[];for(let a=0;a<i.length;a++)r.indexOf(i[a])==-1&&e.classList.remove(i[a]);for(let a=0;a<r.length;a++)i.indexOf(r[a])==-1&&e.classList.add(r[a]);e.classList.length==0&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let i=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=i.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}function Y3(e,t,n){return U3(e,e,Ja,kp(t,n,e.nodeType!=1))}function hc(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function X3(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class $xe{constructor(t,n,i){this.lock=n,this.view=i,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=Hxe(t.node.content,t)}destroyBetween(t,n){if(t!=n){for(let i=t;i<n;i++)this.top.children[i].destroy();this.top.children.splice(t,n-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,n,i){let r=0,a=this.stack.length>>1,o=Math.min(a,t.length);for(;r<o&&(r==a-1?this.top:this.stack[r+1<<1]).matchesMark(t[r])&&t[r].type.spec.spanning!==!1;)r++;for(;r<a;)this.destroyRest(),this.top.dirty=Jn,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<t.length;){this.stack.push(this.top,this.index+1);let s=-1;for(let u=this.index;u<Math.min(this.index+3,this.top.children.length);u++){let c=this.top.children[u];if(c.matchesMark(t[a])&&!this.isLocked(c.dom)){s=u;break}}if(s>-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let u=Qa.create(this.top,t[a],n,i);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,a++}}findNodeMatch(t,n,i,r){let a=-1,o;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(t,n,i))a=this.top.children.indexOf(o,this.index);else for(let s=this.index,u=Math.min(this.top.children.length,s+5);s<u;s++){let c=this.top.children[s];if(c.matchesNode(t,n,i)&&!this.preMatch.matched.has(c)){a=s;break}}return a<0?!1:(this.destroyBetween(this.index,a),this.index++,!0)}updateNodeAt(t,n,i,r,a){let o=this.top.children[r];return o.dirty==Vi&&o.dom==o.contentDOM&&(o.dirty=Ka),o.update(t,n,i,a)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(t){for(;;){let n=t.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let i=t.pmViewDesc;if(i){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==i)return r}return-1}t=n}}updateNextNode(t,n,i,r,a,o){for(let s=this.index;s<this.top.children.length;s++){let u=this.top.children[s];if(u instanceof qr){let c=this.preMatch.matched.get(u);if(c!=null&&c!=a)return!1;let f=u.dom,h,g=this.isLocked(f)&&!(t.isText&&u.node&&u.node.isText&&u.nodeDOM.nodeValue==t.text&&u.dirty!=Vi&&hc(n,u.outerDeco));if(!g&&u.update(t,n,i,r))return this.destroyBetween(this.index,s),u.dom!=f&&(this.changed=!0),this.index++,!0;if(!g&&(h=this.recreateWrapper(u,t,n,i,r,o)))return this.destroyBetween(this.index,s),this.top.children[this.index]=h,h.contentDOM&&(h.dirty=Ka,h.updateChildren(r,o+1),h.dirty=Jn),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,n,i,r,a,o){if(t.dirty||n.isAtom||!t.children.length||!t.node.content.eq(n.content)||!hc(i,t.outerDeco)||!r.eq(t.innerDeco))return null;let s=qr.create(this.top,n,i,r,a,o);if(s.contentDOM){s.children=t.children,t.children=[];for(let u of s.children)u.parent=s}return t.destroy(),s}addNode(t,n,i,r,a){let o=qr.create(this.top,t,n,i,r,a);o.contentDOM&&o.updateChildren(r,a+1),this.top.children.splice(this.index++,0,o),this.changed=!0}placeWidget(t,n,i){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(t)&&(t==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let a=new R3(this.top,t,n,i);this.top.children.splice(this.index++,0,a),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],n=this.top;for(;t instanceof Qa;)n=t,t=n.children[n.children.length-1];(!t||!(t instanceof fc)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((cn||qt)&&t&&t.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(t,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(t))this.index++;else{let i=document.createElement(t);t=="IMG"&&(i.className="ProseMirror-separator",i.alt=""),t=="BR"&&(i.className="ProseMirror-trailingBreak");let r=new V3(this.top,[],i,null);n!=this.top?n.children.push(r):n.children.splice(this.index++,0,r),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||t.nodeType==1&&t.contains(this.lock.parentNode))}}function Hxe(e,t){let n=t,i=n.children.length,r=e.childCount,a=new Map,o=[];e:for(;r>0;){let s;for(;;)if(i){let c=n.children[i-1];if(c instanceof Qa)n=c,i=c.children.length;else{s=c,i--;break}}else{if(n==t)break e;i=n.parent.children.indexOf(n),n=n.parent}let u=s.node;if(u){if(u!=e.child(r-1))break;--r,a.set(s,r),o.push(s)}}return{index:r,matched:a,matches:o.reverse()}}function Rxe(e,t){return e.type.side-t.type.side}function Bxe(e,t,n,i){let r=t.locals(e),a=0;if(r.length==0){for(let c=0;c<e.childCount;c++){let f=e.child(c);i(f,r,t.forChild(a,f),c),a+=f.nodeSize}return}let o=0,s=[],u=null;for(let c=0;;){let f,h;for(;o<r.length&&r[o].to==a;){let k=r[o++];k.widget&&(f?(h||(h=[f])).push(k):f=k)}if(f)if(h){h.sort(Rxe);for(let k=0;k<h.length;k++)n(h[k],c,!!u)}else n(f,c,!!u);let g,p;if(u)p=-1,g=u,u=null;else if(c<e.childCount)p=c,g=e.child(c++);else break;for(let k=0;k<s.length;k++)s[k].to<=a&&s.splice(k--,1);for(;o<r.length&&r[o].from<=a&&r[o].to>a;)s.push(r[o++]);let y=a+g.nodeSize;if(g.isText){let k=y;o<r.length&&r[o].from<k&&(k=r[o].from);for(let w=0;w<s.length;w++)s[w].to<k&&(k=s[w].to);k<y&&(u=g.cut(k-a),g=g.cut(0,k-a),y=k,p=-1)}else for(;o<r.length&&r[o].to<y;)o++;let v=g.isInline&&!g.isLeaf?s.filter(k=>!k.inline):s.slice();i(g,v,t.forChild(a,g),p),a=y}}function Vxe(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function Fxe(e,t,n,i){for(let r=0,a=0;r<e.childCount&&a<=i;){let o=e.child(r++),s=a;if(a+=o.nodeSize,!o.isText)continue;let u=o.text;for(;r<e.childCount;){let c=e.child(r++);if(a+=c.nodeSize,!c.isText)break;u+=c.text}if(a>=n){if(a>=i&&u.slice(i-t.length-s,i-s)==t)return i-t.length;let c=s<i?u.lastIndexOf(t,i-s-1):-1;if(c>=0&&c+t.length+s>=n)return s+c;if(n==i&&u.length>=i+t.length-s&&u.slice(i-s,i-s+t.length)==t)return i}}return-1}function Mp(e,t,n,i,r){let a=[];for(let o=0,s=0;o<e.length;o++){let u=e[o],c=s,f=s+=u.size;c>=n||f<=t?a.push(u):(c<t&&a.push(u.slice(0,t-c,i)),r&&(a.push(r),r=void 0),f>n&&a.push(u.slice(n-c,u.size,i)))}return a}function Cp(e,t=null){let n=e.domSelectionRange(),i=e.state.doc;if(!n.focusNode)return null;let r=e.docView.nearestDesc(n.focusNode),a=r&&r.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=i.resolve(o),u,c;if(cc(n)){for(u=o;r&&!r.node;)r=r.parent;let h=r.node;if(r&&h.isAtom&&be.isSelectable(h)&&r.parent&&!(h.isInline&&gxe(n.focusNode,n.focusOffset,r.dom))){let g=r.posBefore;c=new be(o==g?s:i.resolve(g))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let h=o,g=o;for(let p=0;p<n.rangeCount;p++){let y=n.getRangeAt(p);h=Math.min(h,e.docView.posFromDOM(y.startContainer,y.startOffset,1)),g=Math.max(g,e.docView.posFromDOM(y.endContainer,y.endOffset,-1))}if(h<0)return null;[u,o]=g==e.state.selection.anchor?[g,h]:[h,g],s=i.resolve(o)}else u=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null}let f=i.resolve(u);if(!c){let h=t=="pointer"||e.state.selection.head<s.pos&&!a?1:-1;c=Sp(e,f,s,h)}return c}function q3(e){return e.editable?e.hasFocus():t6(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function lr(e,t=!1){let n=e.state.selection;if(J3(e,n),!!q3(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&qt){let i=e.domSelectionRange(),r=e.domObserver.currentSelection;if(i.anchorNode&&r.anchorNode&&qa(i.anchorNode,i.anchorOffset,r.anchorNode,r.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)Yxe(e);else{let{anchor:i,head:r}=n,a,o;G3&&!(n instanceof Ce)&&(n.$from.parent.inlineContent||(a=K3(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=K3(e,n.to))),e.docView.setSelection(i,r,e,t),G3&&(a&&Q3(a),o&&Q3(o)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Uxe(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const G3=cn||qt&&P3<63;function K3(e,t){let{node:n,offset:i}=e.docView.domFromPos(t,0),r=i<n.childNodes.length?n.childNodes[i]:null,a=i?n.childNodes[i-1]:null;if(cn&&r&&r.contentEditable=="false")return xp(r);if((!r||r.contentEditable=="false")&&(!a||a.contentEditable=="false")){if(r)return xp(r);if(a)return xp(a)}}function xp(e){return e.contentEditable="true",cn&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Q3(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Uxe(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),i=n.anchorNode,r=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(n.anchorNode!=i||n.anchorOffset!=r)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!q3(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function Yxe(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,i=n.nodeName=="IMG";i?t.collapse(n.parentNode,Lt(n)+1):t.collapse(n,0),!i&&!e.state.selection.visible&&xn&&Yr<=11&&(n.disabled=!0,n.disabled=!1)}function J3(e,t){if(t instanceof be){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Z3(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Z3(e)}function Z3(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Sp(e,t,n,i){return e.someProp("createSelectionBetween",r=>r(e,t,n))||Ce.between(t,n,i)}function e6(e){return e.editable&&!e.hasFocus()?!1:t6(e)}function t6(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function Xxe(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return qa(t.node,t.offset,n.anchorNode,n.anchorOffset)}function _p(e,t){let{$anchor:n,$head:i}=e.selection,r=t>0?n.max(i):n.min(i),a=r.parent.inlineContent?r.depth?e.doc.resolve(t>0?r.after():r.before()):null:r;return a&&Pe.findFrom(a,t)}function Gr(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function n6(e,t,n){let i=e.state.selection;if(i instanceof Ce)if(n.indexOf("s")>-1){let{$head:r}=i,a=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;let o=e.state.doc.resolve(r.pos+a.nodeSize*(t<0?-1:1));return Gr(e,new Ce(i.$anchor,o))}else if(i.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let r=_p(e.state,t);return r&&r instanceof be?Gr(e,r):!1}else if(!(Qn&&n.indexOf("m")>-1)){let r=i.$head,a=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter,o;if(!a||a.isText)return!1;let s=t<0?r.pos-a.nodeSize:r.pos;return a.isAtom||(o=e.docView.descAt(s))&&!o.contentDOM?be.isSelectable(a)?Gr(e,new be(t<0?e.state.doc.resolve(r.pos-a.nodeSize):r)):Il?Gr(e,new Ce(e.state.doc.resolve(t<0?s:s+a.nodeSize))):!1:!1}}else return!1;else{if(i instanceof be&&i.node.isInline)return Gr(e,new Ce(t>0?i.$to:i.$from));{let r=_p(e.state,t);return r?Gr(e,r):!1}}}function mc(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Ll(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function as(e,t){return t<0?qxe(e):Gxe(e)}function qxe(e){let t=e.domSelectionRange(),n=t.focusNode,i=t.focusOffset;if(!n)return;let r,a,o=!1;for(Kn&&n.nodeType==1&&i<mc(n)&&Ll(n.childNodes[i],-1)&&(o=!0);;)if(i>0){if(n.nodeType!=1)break;{let s=n.childNodes[i-1];if(Ll(s,-1))r=n,a=--i;else if(s.nodeType==3)n=s,i=n.nodeValue.length;else break}}else{if(i6(n))break;{let s=n.previousSibling;for(;s&&Ll(s,-1);)r=n.parentNode,a=Lt(s),s=s.previousSibling;if(s)n=s,i=mc(n);else{if(n=n.parentNode,n==e.dom)break;i=0}}}o?Tp(e,n,i):r&&Tp(e,r,a)}function Gxe(e){let t=e.domSelectionRange(),n=t.focusNode,i=t.focusOffset;if(!n)return;let r=mc(n),a,o;for(;;)if(i<r){if(n.nodeType!=1)break;let s=n.childNodes[i];if(Ll(s,1))a=n,o=++i;else break}else{if(i6(n))break;{let s=n.nextSibling;for(;s&&Ll(s,1);)a=s.parentNode,o=Lt(s)+1,s=s.nextSibling;if(s)n=s,i=0,r=mc(n);else{if(n=n.parentNode,n==e.dom)break;i=r=0}}}a&&Tp(e,a,o)}function i6(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Kxe(e,t){for(;e&&t==e.childNodes.length&&!jl(e);)t=Lt(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=0}}function Qxe(e,t){for(;e&&!t&&!jl(e);)t=Lt(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=e.childNodes.length}}function Tp(e,t,n){if(t.nodeType!=3){let a,o;(o=Kxe(t,n))?(t=o,n=0):(a=Qxe(t,n))&&(t=a,n=a.nodeValue.length)}let i=e.domSelection();if(!i)return;if(cc(i)){let a=document.createRange();a.setEnd(t,n),a.setStart(t,n),i.removeAllRanges(),i.addRange(a)}else i.extend&&i.extend(t,n);e.domObserver.setCurSelection();let{state:r}=e;setTimeout(()=>{e.state==r&&lr(e)},50)}function r6(e,t){let n=e.state.doc.resolve(t);if(!(qt||wxe)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let a=e.coordsAtPos(t-1),o=(a.top+a.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(a.left-r.left)>1)return a.left<r.left?"ltr":"rtl"}if(t<n.end()){let a=e.coordsAtPos(t+1),o=(a.top+a.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(a.left-r.left)>1)return a.left>r.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function a6(e,t,n){let i=e.state.selection;if(i instanceof Ce&&!i.empty||n.indexOf("s")>-1||Qn&&n.indexOf("m")>-1)return!1;let{$from:r,$to:a}=i;if(!r.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let o=_p(e.state,t);if(o&&o instanceof be)return Gr(e,o)}if(!r.parent.inlineContent){let o=t<0?r:a,s=i instanceof qn?Pe.near(o,t):Pe.findFrom(o,t);return s?Gr(e,s):!1}return!1}function o6(e,t){if(!(e.state.selection instanceof Ce))return!0;let{$head:n,$anchor:i,empty:r}=e.state.selection;if(!n.sameParent(i))return!0;if(!r)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let o=e.state.tr;return t<0?o.delete(n.pos-a.nodeSize,n.pos):o.delete(n.pos,n.pos+a.nodeSize),e.dispatch(o),!0}return!1}function s6(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Jxe(e){if(!cn||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let i=t.firstChild;s6(e,i,"true"),setTimeout(()=>s6(e,i,"false"),20)}return!1}function Zxe(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function eSe(e,t){let n=t.keyCode,i=Zxe(t);if(n==8||Qn&&n==72&&i=="c")return o6(e,-1)||as(e,-1);if(n==46&&!t.shiftKey||Qn&&n==68&&i=="c")return o6(e,1)||as(e,1);if(n==13||n==27)return!0;if(n==37||Qn&&n==66&&i=="c"){let r=n==37?r6(e,e.state.selection.from)=="ltr"?-1:1:-1;return n6(e,r,i)||as(e,r)}else if(n==39||Qn&&n==70&&i=="c"){let r=n==39?r6(e,e.state.selection.from)=="ltr"?1:-1:1;return n6(e,r,i)||as(e,r)}else{if(n==38||Qn&&n==80&&i=="c")return a6(e,-1,i)||as(e,-1);if(n==40||Qn&&n==78&&i=="c")return Jxe(e)||a6(e,1,i)||as(e,1);if(i==(Qn?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Pp(e,t){e.someProp("transformCopied",p=>{t=p(t,e)});let n=[],{content:i,openStart:r,openEnd:a}=t;for(;r>1&&a>1&&i.childCount==1&&i.firstChild.childCount==1;){r--,a--;let p=i.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),i=p.content}let o=e.someProp("clipboardSerializer")||Ya.fromSchema(e.state.schema),s=p6(),u=s.createElement("div");u.appendChild(o.serializeFragment(i,{document:s}));let c=u.firstChild,f,h=0;for(;c&&c.nodeType==1&&(f=h6[c.nodeName.toLowerCase()]);){for(let p=f.length-1;p>=0;p--){let y=s.createElement(f[p]);for(;u.firstChild;)y.appendChild(u.firstChild);u.appendChild(y),h++}c=u.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${r} ${a}${h?` -${h}`:""} ${JSON.stringify(n)}`);let g=e.someProp("clipboardTextSerializer",p=>p(t,e))||t.content.textBetween(0,t.content.size,`
|
|
1302
1302
|
|
|
1303
1303
|
`);return{dom:u,text:g,slice:t}}function l6(e,t,n,i,r){let a=r.parent.type.spec.code,o,s;if(!n&&!t)return null;let u=!!t&&(i||a||!n);if(u){if(e.someProp("transformPastedText",g=>{t=g(t,a||i,e)}),a)return s=new le(te.from(e.state.schema.text(t.replace(/\r\n?/g,`
|
|
1304
|
-
`))),0,0),e.someProp("transformPasted",g=>{s=g(s,e,!0)}),s;let h=e.someProp("clipboardTextParser",g=>g(t,r,i,e));if(h)s=h;else{let g=r.marks(),{schema:p}=e.state,y=Ya.fromSchema(p);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(v=>{let k=o.appendChild(document.createElement("p"));v&&k.appendChild(y.serializeNode(p.text(v,g)))})}}else e.someProp("transformPastedHTML",h=>{n=h(n,e)}),o=rSe(n),Il&&aSe(o);let c=o&&o.querySelector("[data-pm-slice]"),f=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(f&&f[3])for(let h=+f[3];h>0;h--){let g=o.firstChild;for(;g&&g.nodeType!=1;)g=g.nextSibling;if(!g)break;o=g}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||Rr.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(u||f),context:r,ruleFromNode(g){return g.nodeName=="BR"&&!g.nextSibling&&g.parentNode&&!tSe.test(g.parentNode.nodeName)?{ignore:!0}:null}})),f)s=oSe(f6(s,+f[1],+f[2]),f[4]);else if(s=le.maxOpen(nSe(s.content,r),!0),s.openStart||s.openEnd){let h=0,g=0;for(let p=s.content.firstChild;h<s.openStart&&!p.type.spec.isolating;h++,p=p.firstChild);for(let p=s.content.lastChild;g<s.openEnd&&!p.type.spec.isolating;g++,p=p.lastChild);s=f6(s,h,g)}return e.someProp("transformPasted",h=>{s=h(s,e,u)}),s}const tSe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function nSe(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),a,o=[];if(e.forEach(s=>{if(!o)return;let u=r.findWrapping(s.type),c;if(!u)return o=null;if(c=o.length&&a.length&&d6(u,a,s,o[o.length-1],0))o[o.length-1]=c;else{o.length&&(o[o.length-1]=c6(o[o.length-1],a.length));let f=u6(s,u);o.push(f),r=r.matchType(f.type),a=u}}),o)return te.from(o)}return e}function u6(e,t,n=0){for(let i=t.length-1;i>=n;i--)e=t[i].create(null,te.from(e));return e}function d6(e,t,n,i,r){if(r<e.length&&r<t.length&&e[r]==t[r]){let a=d6(e,t,n,i.lastChild,r+1);if(a)return i.copy(i.content.replaceChild(i.childCount-1,a));if(i.contentMatchAt(i.childCount).matchType(r==e.length-1?n.type:e[r+1]))return i.copy(i.content.append(te.from(u6(n,e,r+1))))}}function c6(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,c6(e.lastChild,t-1)),i=e.contentMatchAt(e.childCount).fillBefore(te.empty,!0);return e.copy(n.append(i))}function Ep(e,t,n,i,r,a){let o=t<0?e.firstChild:e.lastChild,s=o.content;return e.childCount>1&&(a=0),r<i-1&&(s=Ep(s,t,n,i,r+1,a)),r>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,a<=r).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(te.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function f6(e,t,n){return t<e.openStart&&(e=new le(Ep(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new le(Ep(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const h6={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let m6=null;function p6(){return m6||(m6=document.implementation.createHTMLDocument("title"))}let Ap=null;function iSe(e){let t=window.trustedTypes;return t?(Ap||(Ap=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Ap.createHTML(e)):e}function rSe(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=p6().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e),r;if((r=i&&h6[i[1].toLowerCase()])&&(e=r.map(a=>"<"+a+">").join("")+e+r.map(a=>"</"+a+">").reverse().join("")),n.innerHTML=iSe(e),r)for(let a=0;a<r.length;a++)n=n.querySelector(r[a])||n;return n}function aSe(e){let t=e.querySelectorAll(qt?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let i=t[n];i.childNodes.length==1&&i.textContent==" "&&i.parentNode&&i.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),i)}}function oSe(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,i;try{i=JSON.parse(t)}catch{return e}let{content:r,openStart:a,openEnd:o}=e;for(let s=i.length-2;s>=0;s-=2){let u=n.nodes[i[s]];if(!u||u.hasRequiredAttrs())break;r=te.from(u.create(i[s+1],r)),a++,o++}return new le(r,a,o)}const fn={},hn={},sSe={touchstart:!0,touchmove:!0};class lSe{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function uSe(e){for(let t in fn){let n=fn[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=i=>{cSe(e,i)&&!Np(e,i)&&(e.editable||!(i.type in hn))&&n(e,i)},sSe[t]?{passive:!0}:void 0)}cn&&e.dom.addEventListener("input",()=>null),Dp(e)}function Kr(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function dSe(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function Dp(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=i=>Np(e,i))})}function Np(e,t){return e.someProp("handleDOMEvents",n=>{let i=n[t.type];return i?i(e,t)||t.defaultPrevented:!1})}function cSe(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function fSe(e,t){!Np(e,t)&&fn[t.type]&&(e.editable||!(t.type in hn))&&fn[t.type](e,t)}hn.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!y6(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(or&&qt&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),is&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let i=Date.now();e.input.lastIOSEnter=i,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==i&&(e.someProp("handleKeyDown",r=>r(e,Ga(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",i=>i(e,n))||eSe(e,n)?n.preventDefault():Kr(e,"key")},hn.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},hn.keypress=(e,t)=>{let n=t;if(y6(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Qn&&n.metaKey)return;if(e.someProp("handleKeyPress",r=>r(e,n))){n.preventDefault();return}let i=e.state.selection;if(!(i instanceof Ce)||!i.$from.sameParent(i.$to)){let r=String.fromCharCode(n.charCode),a=()=>e.state.tr.insertText(r).scrollIntoView();!/[\r\n]/.test(r)&&!e.someProp("handleTextInput",o=>o(e,i.$from.pos,i.$to.pos,r,a))&&e.dispatch(a()),n.preventDefault()}};function pc(e){return{left:e.clientX,top:e.clientY}}function hSe(e,t){let n=t.x-e.clientX,i=t.y-e.clientY;return n*n+i*i<100}function jp(e,t,n,i,r){if(i==-1)return!1;let a=e.state.doc.resolve(i);for(let o=a.depth+1;o>0;o--)if(e.someProp(t,s=>o>a.depth?s(e,n,a.nodeAfter,a.before(o),r,!0):s(e,n,a.node(o),a.before(o),r,!1)))return!0;return!1}function ss(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let i=e.state.tr.setSelection(t);i.setMeta("pointer",!0),e.dispatch(i)}function mSe(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),i=n.nodeAfter;return i&&i.isAtom&&be.isSelectable(i)?(ss(e,new be(n)),!0):!1}function pSe(e,t){if(t==-1)return!1;let n=e.state.selection,i,r;n instanceof be&&(i=n.node);let a=e.state.doc.resolve(t);for(let o=a.depth+1;o>0;o--){let s=o>a.depth?a.nodeAfter:a.node(o);if(be.isSelectable(s)){i&&n.$from.depth>0&&o>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?r=a.before(n.$from.depth):r=a.before(o);break}}return r!=null?(ss(e,be.create(e.state.doc,r)),!0):!1}function gSe(e,t,n,i,r){return jp(e,"handleClickOn",t,n,i)||e.someProp("handleClick",a=>a(e,t,i))||(r?pSe(e,n):mSe(e,n))}function ySe(e,t,n,i){return jp(e,"handleDoubleClickOn",t,n,i)||e.someProp("handleDoubleClick",r=>r(e,t,i))}function bSe(e,t,n,i){return jp(e,"handleTripleClickOn",t,n,i)||e.someProp("handleTripleClick",r=>r(e,t,i))||wSe(e,n,i)}function wSe(e,t,n){if(n.button!=0)return!1;let i=e.state.doc;if(t==-1)return i.inlineContent?(ss(e,Ce.create(i,0,i.content.size)),!0):!1;let r=i.resolve(t);for(let a=r.depth+1;a>0;a--){let o=a>r.depth?r.nodeAfter:r.node(a),s=r.before(a);if(o.inlineContent)ss(e,Ce.create(i,s+1,s+1+o.content.size));else if(be.isSelectable(o))ss(e,be.create(i,s));else continue;return!0}}function Ip(e){return gc(e)}const g6=Qn?"metaKey":"ctrlKey";fn.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let i=Ip(e),r=Date.now(),a="singleClick";r-e.input.lastClick.time<500&&hSe(n,e.input.lastClick)&&!n[g6]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?a="doubleClick":e.input.lastClick.type=="doubleClick"&&(a="tripleClick")),e.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:a,button:n.button};let o=e.posAtCoords(pc(n));o&&(a=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new vSe(e,o,n,!!i)):(a=="doubleClick"?ySe:bSe)(e,o.pos,o.inside,n)?n.preventDefault():Kr(e,"pointer"))};class vSe{constructor(t,n,i,r){this.view=t,this.pos=n,this.event=i,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!i[g6],this.allowDefault=i.shiftKey;let a,o;if(n.inside>-1)a=t.state.doc.nodeAt(n.inside),o=n.inside;else{let f=t.state.doc.resolve(n.pos);a=f.parent,o=f.depth?f.before():0}const s=r?null:i.target,u=s?t.docView.nearestDesc(s,!0):null;this.target=u&&u.nodeDOM.nodeType==1?u.nodeDOM:null;let{selection:c}=t.state;(i.button==0&&a.type.spec.draggable&&a.type.spec.selectable!==!1||c instanceof be&&c.from<=o&&c.to>o)&&(this.mightDrag={node:a,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Kn&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),Kr(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>lr(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(pc(t))),this.updateAllowDefault(t),this.allowDefault||!n?Kr(this.view,"pointer"):gSe(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||cn&&this.mightDrag&&!this.mightDrag.node.isAtom||qt&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(ss(this.view,Pe.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):Kr(this.view,"pointer")}move(t){this.updateAllowDefault(t),Kr(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}fn.touchstart=e=>{e.input.lastTouch=Date.now(),Ip(e),Kr(e,"pointer")},fn.touchmove=e=>{e.input.lastTouch=Date.now(),Kr(e,"pointer")},fn.contextmenu=e=>Ip(e);function y6(e,t){return e.composing?!0:cn&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const kSe=or?5e3:-1;hn.compositionstart=hn.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Ce&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(i=>i.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),gc(e,!0),e.markCursor=null;else if(gc(e,!t.selection.empty),Kn&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let i=e.domSelectionRange();for(let r=i.focusNode,a=i.focusOffset;r&&r.nodeType==1&&a!=0;){let o=a<0?r.lastChild:r.childNodes[a-1];if(!o)break;if(o.nodeType==3){let s=e.domSelection();s&&s.collapse(o,o.nodeValue.length);break}else r=o,a=-1}}e.input.composing=!0}b6(e,kSe)},hn.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,b6(e,20))};function b6(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>gc(e),t))}function w6(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=CSe());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function MSe(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=mxe(t.focusNode,t.focusOffset),i=pxe(t.focusNode,t.focusOffset);if(n&&i&&n!=i){let r=i.pmViewDesc,a=e.domObserver.lastChangedTextNode;if(n==a||i==a)return a;if(!r||!r.isText(i.nodeValue))return i;if(e.input.compositionNode==i){let o=n.pmViewDesc;if(!(!o||!o.isText(n.nodeValue)))return i}}return n||i}function CSe(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function gc(e,t=!1){if(!(or&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),w6(e),t||e.docView&&e.docView.dirty){let n=Cp(e),i=e.state.selection;return n&&!n.eq(i)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!i.$from.node(i.$from.sharedDepth(i.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function xSe(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),r=document.createRange();r.selectNodeContents(t),e.dom.blur(),i.removeAllRanges(),i.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const $l=xn&&Yr<15||is&&vxe<604;fn.copy=hn.cut=(e,t)=>{let n=t,i=e.state.selection,r=n.type=="cut";if(i.empty)return;let a=$l?null:n.clipboardData,o=i.content(),{dom:s,text:u}=Pp(e,o);a?(n.preventDefault(),a.clearData(),a.setData("text/html",s.innerHTML),a.setData("text/plain",u)):xSe(e,s),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function SSe(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function _Se(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,i=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus();let r=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),i.parentNode&&i.parentNode.removeChild(i),n?Hl(e,i.value,null,r,t):Hl(e,i.textContent,i.innerHTML,r,t)},50)}function Hl(e,t,n,i,r){let a=l6(e,t,n,i,e.state.selection.$from);if(e.someProp("handlePaste",u=>u(e,r,a||le.empty)))return!0;if(!a)return!1;let o=SSe(a),s=o?e.state.tr.replaceSelectionWith(o,i):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function v6(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}hn.paste=(e,t)=>{let n=t;if(e.composing&&!or)return;let i=$l?null:n.clipboardData,r=e.input.shiftKey&&e.input.lastKeyCode!=45;i&&Hl(e,v6(i),i.getData("text/html"),r,n)?n.preventDefault():_Se(e,n)};class k6{constructor(t,n,i){this.slice=t,this.move=n,this.node=i}}const TSe=Qn?"altKey":"ctrlKey";function M6(e,t){let n=e.someProp("dragCopies",i=>!i(t));return n??!t[TSe]}fn.dragstart=(e,t)=>{let n=t,i=e.input.mouseDown;if(i&&i.done(),!n.dataTransfer)return;let r=e.state.selection,a=r.empty?null:e.posAtCoords(pc(n)),o;if(!(a&&a.pos>=r.from&&a.pos<=(r instanceof be?r.to-1:r.to))){if(i&&i.mightDrag)o=be.create(e.state.doc,i.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let h=e.docView.nearestDesc(n.target,!0);h&&h.node.type.spec.draggable&&h!=e.docView&&(o=be.create(e.state.doc,h.posBefore))}}let s=(o||e.state.selection).content(),{dom:u,text:c,slice:f}=Pp(e,s);(!n.dataTransfer.files.length||!qt||P4>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData($l?"Text":"text/html",u.innerHTML),n.dataTransfer.effectAllowed="copyMove",$l||n.dataTransfer.setData("text/plain",c),e.dragging=new k6(f,M6(e,n),o)},fn.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},hn.dragover=hn.dragenter=(e,t)=>t.preventDefault(),hn.drop=(e,t)=>{let n=t,i=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let r=e.posAtCoords(pc(n));if(!r)return;let a=e.state.doc.resolve(r.pos),o=i&&i.slice;o?e.someProp("transformPasted",y=>{o=y(o,e,!1)}):o=l6(e,v6(n.dataTransfer),$l?null:n.dataTransfer.getData("text/html"),!1,a);let s=!!(i&&M6(e,n));if(e.someProp("handleDrop",y=>y(e,n,o||le.empty,s))){n.preventDefault();return}if(!o)return;n.preventDefault();let u=o?c4(e.state.doc,a.pos,o):a.pos;u==null&&(u=a.pos);let c=e.state.tr;if(s){let{node:y}=i;y?y.replace(c):c.deleteSelection()}let f=c.mapping.map(u),h=o.openStart==0&&o.openEnd==0&&o.content.childCount==1,g=c.doc;if(h?c.replaceRangeWith(f,f,o.content.firstChild):c.replaceRange(f,f,o),c.doc.eq(g))return;let p=c.doc.resolve(f);if(h&&be.isSelectable(o.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(o.content.firstChild))c.setSelection(new be(p));else{let y=c.mapping.map(u);c.mapping.maps[c.mapping.maps.length-1].forEach((v,k,w,M)=>y=M),c.setSelection(Sp(e,p,c.doc.resolve(y)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))},fn.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&lr(e)},20))},fn.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},fn.beforeinput=(e,t)=>{if(qt&&or&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:i}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=i||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",a=>a(e,Ga(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let e in hn)fn[e]=hn[e];function Rl(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class yc{constructor(t,n){this.toDOM=t,this.spec=n||Za,this.side=this.spec.side||0}map(t,n,i,r){let{pos:a,deleted:o}=t.mapResult(n.from+r,this.side<0?-1:1);return o?null:new mn(a-i,a-i,this)}valid(){return!0}eq(t){return this==t||t instanceof yc&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Rl(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Qr{constructor(t,n){this.attrs=t,this.spec=n||Za}map(t,n,i,r){let a=t.map(n.from+r,this.spec.inclusiveStart?-1:1)-i,o=t.map(n.to+r,this.spec.inclusiveEnd?1:-1)-i;return a>=o?null:new mn(a,o,this)}valid(t,n){return n.from<n.to}eq(t){return this==t||t instanceof Qr&&Rl(this.attrs,t.attrs)&&Rl(this.spec,t.spec)}static is(t){return t.type instanceof Qr}destroy(){}}class Wp{constructor(t,n){this.attrs=t,this.spec=n||Za}map(t,n,i,r){let a=t.mapResult(n.from+r,1);if(a.deleted)return null;let o=t.mapResult(n.to+r,-1);return o.deleted||o.pos<=a.pos?null:new mn(a.pos-i,o.pos-i,this)}valid(t,n){let{index:i,offset:r}=t.content.findIndex(n.from),a;return r==n.from&&!(a=t.child(i)).isText&&r+a.nodeSize==n.to}eq(t){return this==t||t instanceof Wp&&Rl(this.attrs,t.attrs)&&Rl(this.spec,t.spec)}destroy(){}}class mn{constructor(t,n,i){this.from=t,this.to=n,this.type=i}copy(t,n){return new mn(t,n,this.type)}eq(t,n=0){return this.type.eq(t.type)&&this.from+n==t.from&&this.to+n==t.to}map(t,n,i){return this.type.map(t,this,n,i)}static widget(t,n,i){return new mn(t,t,new yc(n,i))}static inline(t,n,i,r){return new mn(t,n,new Qr(i,r))}static node(t,n,i,r){return new mn(t,n,new Wp(i,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof Qr}get widget(){return this.type instanceof yc}}const ls=[],Za={};class st{constructor(t,n){this.local=t.length?t:ls,this.children=n.length?n:ls}static create(t,n){return n.length?bc(n,t,0,Za):Gt}find(t,n,i){let r=[];return this.findInner(t??0,n??1e9,r,0,i),r}findInner(t,n,i,r,a){for(let o=0;o<this.local.length;o++){let s=this.local[o];s.from<=n&&s.to>=t&&(!a||a(s.spec))&&i.push(s.copy(s.from+r,s.to+r))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<n&&this.children[o+1]>t){let s=this.children[o]+1;this.children[o+2].findInner(t-s,n-s,i,r+s,a)}}map(t,n,i){return this==Gt||t.maps.length==0?this:this.mapInner(t,n,0,0,i||Za)}mapInner(t,n,i,r,a){let o;for(let s=0;s<this.local.length;s++){let u=this.local[s].map(t,i,r);u&&u.type.valid(n,u)?(o||(o=[])).push(u):a.onRemove&&a.onRemove(this.local[s].spec)}return this.children.length?PSe(this.children,o||[],t,n,i,r,a):o?new st(o.sort(eo),ls):Gt}add(t,n){return n.length?this==Gt?st.create(t,n):this.addInner(t,n,0):this}addInner(t,n,i){let r,a=0;t.forEach((s,u)=>{let c=u+i,f;if(f=x6(n,s,c)){for(r||(r=this.children.slice());a<r.length&&r[a]<u;)a+=3;r[a]==u?r[a+2]=r[a+2].addInner(s,f,c+1):r.splice(a,0,u,u+s.nodeSize,bc(f,s,c+1,Za)),a+=3}});let o=C6(a?S6(n):n,-i);for(let s=0;s<o.length;s++)o[s].type.valid(t,o[s])||o.splice(s--,1);return new st(o.length?this.local.concat(o).sort(eo):this.local,r||this.children)}remove(t){return t.length==0||this==Gt?this:this.removeInner(t,0)}removeInner(t,n){let i=this.children,r=this.local;for(let a=0;a<i.length;a+=3){let o,s=i[a]+n,u=i[a+1]+n;for(let f=0,h;f<t.length;f++)(h=t[f])&&h.from>s&&h.to<u&&(t[f]=null,(o||(o=[])).push(h));if(!o)continue;i==this.children&&(i=this.children.slice());let c=i[a+2].removeInner(o,s+1);c!=Gt?i[a+2]=c:(i.splice(a,3),a-=3)}if(r.length){for(let a=0,o;a<t.length;a++)if(o=t[a])for(let s=0;s<r.length;s++)r[s].eq(o,n)&&(r==this.local&&(r=this.local.slice()),r.splice(s--,1))}return i==this.children&&r==this.local?this:r.length||i.length?new st(r,i):Gt}forChild(t,n){if(this==Gt)return this;if(n.isLeaf)return st.empty;let i,r;for(let s=0;s<this.children.length;s+=3)if(this.children[s]>=t){this.children[s]==t&&(i=this.children[s+2]);break}let a=t+1,o=a+n.content.size;for(let s=0;s<this.local.length;s++){let u=this.local[s];if(u.from<o&&u.to>a&&u.type instanceof Qr){let c=Math.max(a,u.from)-a,f=Math.min(o,u.to)-a;c<f&&(r||(r=[])).push(u.copy(c,f))}}if(r){let s=new st(r.sort(eo),ls);return i?new Jr([s,i]):s}return i||Gt}eq(t){if(this==t)return!0;if(!(t instanceof st)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=t.children[n]||this.children[n+1]!=t.children[n+1]||!this.children[n+2].eq(t.children[n+2]))return!1;return!0}locals(t){return Op(this.localsInner(t))}localsInner(t){if(this==Gt)return ls;if(t.inlineContent||!this.local.some(Qr.is))return this.local;let n=[];for(let i=0;i<this.local.length;i++)this.local[i].type instanceof Qr||n.push(this.local[i]);return n}forEachSet(t){t(this)}}st.empty=new st([],[]),st.removeOverlap=Op;const Gt=st.empty;class Jr{constructor(t){this.members=t}map(t,n){const i=this.members.map(r=>r.map(t,n,Za));return Jr.from(i)}forChild(t,n){if(n.isLeaf)return st.empty;let i=[];for(let r=0;r<this.members.length;r++){let a=this.members[r].forChild(t,n);a!=Gt&&(a instanceof Jr?i=i.concat(a.members):i.push(a))}return Jr.from(i)}eq(t){if(!(t instanceof Jr)||t.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}locals(t){let n,i=!0;for(let r=0;r<this.members.length;r++){let a=this.members[r].localsInner(t);if(a.length)if(!n)n=a;else{i&&(n=n.slice(),i=!1);for(let o=0;o<a.length;o++)n.push(a[o])}}return n?Op(i?n:n.sort(eo)):ls}static from(t){switch(t.length){case 0:return Gt;case 1:return t[0];default:return new Jr(t.every(n=>n instanceof st)?t:t.reduce((n,i)=>n.concat(i instanceof st?i:i.members),[]))}}forEachSet(t){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(t)}}function PSe(e,t,n,i,r,a,o){let s=e.slice();for(let c=0,f=a;c<n.maps.length;c++){let h=0;n.maps[c].forEach((g,p,y,v)=>{let k=v-y-(p-g);for(let w=0;w<s.length;w+=3){let M=s[w+1];if(M<0||g>M+f-h)continue;let x=s[w]+f-h;p>=x?s[w+1]=g<=x?-2:-1:g>=f&&k&&(s[w]+=k,s[w+1]+=k)}h+=k}),f=n.maps[c].map(f,-1)}let u=!1;for(let c=0;c<s.length;c+=3)if(s[c+1]<0){if(s[c+1]==-2){u=!0,s[c+1]=-1;continue}let f=n.map(e[c]+a),h=f-r;if(h<0||h>=i.content.size){u=!0;continue}let g=n.map(e[c+1]+a,-1),p=g-r,{index:y,offset:v}=i.content.findIndex(h),k=i.maybeChild(y);if(k&&v==h&&v+k.nodeSize==p){let w=s[c+2].mapInner(n,k,f+1,e[c]+a+1,o);w!=Gt?(s[c]=h,s[c+1]=p,s[c+2]=w):(s[c+1]=-2,u=!0)}else u=!0}if(u){let c=ESe(s,e,t,n,r,a,o),f=bc(c,i,0,o);t=f.local;for(let h=0;h<s.length;h+=3)s[h+1]<0&&(s.splice(h,3),h-=3);for(let h=0,g=0;h<f.children.length;h+=3){let p=f.children[h];for(;g<s.length&&s[g]<p;)g+=3;s.splice(g,0,f.children[h],f.children[h+1],f.children[h+2])}}return new st(t.sort(eo),s)}function C6(e,t){if(!t||!e.length)return e;let n=[];for(let i=0;i<e.length;i++){let r=e[i];n.push(new mn(r.from+t,r.to+t,r.type))}return n}function ESe(e,t,n,i,r,a,o){function s(u,c){for(let f=0;f<u.local.length;f++){let h=u.local[f].map(i,r,c);h?n.push(h):o.onRemove&&o.onRemove(u.local[f].spec)}for(let f=0;f<u.children.length;f+=3)s(u.children[f+2],u.children[f]+c+1)}for(let u=0;u<e.length;u+=3)e[u+1]==-1&&s(e[u+2],t[u]+a+1);return n}function x6(e,t,n){if(t.isLeaf)return null;let i=n+t.nodeSize,r=null;for(let a=0,o;a<e.length;a++)(o=e[a])&&o.from>n&&o.to<i&&((r||(r=[])).push(o),e[a]=null);return r}function S6(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function bc(e,t,n,i){let r=[],a=!1;t.forEach((s,u)=>{let c=x6(e,s,u+n);if(c){a=!0;let f=bc(c,s,n+u+1,i);f!=Gt&&r.push(u,u+s.nodeSize,f)}});let o=C6(a?S6(e):e,-n).sort(eo);for(let s=0;s<o.length;s++)o[s].type.valid(t,o[s])||(i.onRemove&&i.onRemove(o[s].spec),o.splice(s--,1));return o.length||r.length?new st(o,r):Gt}function eo(e,t){return e.from-t.from||e.to-t.to}function Op(e){let t=e;for(let n=0;n<t.length-1;n++){let i=t[n];if(i.from!=i.to)for(let r=n+1;r<t.length;r++){let a=t[r];if(a.from==i.from){a.to!=i.to&&(t==e&&(t=e.slice()),t[r]=a.copy(a.from,i.to),_6(t,r+1,a.copy(i.to,a.to)));continue}else{a.from<i.to&&(t==e&&(t=e.slice()),t[n]=i.copy(i.from,a.from),_6(t,r,i.copy(a.from,i.to)));break}}}return t}function _6(e,t,n){for(;t<e.length&&eo(n,e[t])>0;)t++;e.splice(t,0,n)}function zp(e){let t=[];return e.someProp("decorations",n=>{let i=n(e.state);i&&i!=Gt&&t.push(i)}),e.cursorWrapper&&t.push(st.create(e.state.doc,[e.cursorWrapper.deco])),Jr.from(t)}const ASe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},DSe=xn&&Yr<=11;class NSe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class jSe{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new NSe,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(i=>{for(let r=0;r<i.length;r++)this.queue.push(i[r]);xn&&Yr<=11&&i.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),DSe&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,ASe)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(e6(this.view)){if(this.suppressingSelectionUpdates)return lr(this.view);if(xn&&Yr<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&qa(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,i;for(let a=t.focusNode;a;a=ns(a))n.add(a);for(let a=t.anchorNode;a;a=ns(a))if(n.has(a)){i=a;break}let r=i&&this.view.docView.nearestDesc(i);if(r&&r.ignoreMutation({type:"selection",target:i.nodeType==3?i.parentNode:i}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let i=t.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&e6(t)&&!this.ignoreSelectionChange(i),a=-1,o=-1,s=!1,u=[];if(t.editable)for(let f=0;f<n.length;f++){let h=this.registerMutation(n[f],u);h&&(a=a<0?h.from:Math.min(h.from,a),o=o<0?h.to:Math.max(h.to,o),h.typeOver&&(s=!0))}if(Kn&&u.length){let f=u.filter(h=>h.nodeName=="BR");if(f.length==2){let[h,g]=f;h.parentNode&&h.parentNode.parentNode==g.parentNode?g.remove():h.remove()}else{let{focusNode:h}=this.currentSelection;for(let g of f){let p=g.parentNode;p&&p.nodeName=="LI"&&(!h||OSe(t,h)!=p)&&g.remove()}}}let c=null;a<0&&r&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&cc(i)&&(c=Cp(t))&&c.eq(Pe.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,lr(t),this.currentSelection.set(i),t.scrollToSelection()):(a>-1||r)&&(a>-1&&(t.docView.markDirty(a,o),ISe(t)),this.handleDOMChange(a,o,s,u),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(i)||lr(t),this.currentSelection.set(i))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let i=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(i==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!i||i.ignoreMutation(t))return null;if(t.type=="childList"){for(let f=0;f<t.addedNodes.length;f++){let h=t.addedNodes[f];n.push(h),h.nodeType==3&&(this.lastChangedTextNode=h)}if(i.contentDOM&&i.contentDOM!=i.dom&&!i.contentDOM.contains(t.target))return{from:i.posBefore,to:i.posAfter};let r=t.previousSibling,a=t.nextSibling;if(xn&&Yr<=11&&t.addedNodes.length)for(let f=0;f<t.addedNodes.length;f++){let{previousSibling:h,nextSibling:g}=t.addedNodes[f];(!h||Array.prototype.indexOf.call(t.addedNodes,h)<0)&&(r=h),(!g||Array.prototype.indexOf.call(t.addedNodes,g)<0)&&(a=g)}let o=r&&r.parentNode==t.target?Lt(r)+1:0,s=i.localPosFromDOM(t.target,o,-1),u=a&&a.parentNode==t.target?Lt(a):t.target.childNodes.length,c=i.localPosFromDOM(t.target,u,1);return{from:s,to:c}}else return t.type=="attributes"?{from:i.posAtStart-i.border,to:i.posAtEnd+i.border}:(this.lastChangedTextNode=t.target,{from:i.posAtStart,to:i.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let T6=new WeakMap,P6=!1;function ISe(e){if(!T6.has(e)&&(T6.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=Kn,P6)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),P6=!0}}function E6(e,t){let n=t.startContainer,i=t.startOffset,r=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return qa(o.node,o.offset,r,a)&&([n,i,r,a]=[r,a,n,i]),{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:a}}function WSe(e,t){if(t.getComposedRanges){let r=t.getComposedRanges(e.root)[0];if(r)return E6(e,r)}let n;function i(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",i,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",i,!0),n?E6(e,n):null}function OSe(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let i=e.docView.nearestDesc(n,!0);if(i&&i.node.isBlock)return n}return null}function zSe(e,t,n){let{node:i,fromOffset:r,toOffset:a,from:o,to:s}=e.docView.parseRange(t,n),u=e.domSelectionRange(),c,f=u.anchorNode;if(f&&e.dom.contains(f.nodeType==1?f:f.parentNode)&&(c=[{node:f,offset:u.anchorOffset}],cc(u)||c.push({node:u.focusNode,offset:u.focusOffset})),qt&&e.input.lastKeyCode===8)for(let k=a;k>r;k--){let w=i.childNodes[k-1],M=w.pmViewDesc;if(w.nodeName=="BR"&&!M){a=k;break}if(!M||M.size)break}let h=e.state.doc,g=e.someProp("domParser")||Rr.fromSchema(e.state.schema),p=h.resolve(o),y=null,v=g.parse(i,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:r,to:a,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:LSe,context:p});if(c&&c[0].pos!=null){let k=c[0].pos,w=c[1]&&c[1].pos;w==null&&(w=k),y={anchor:k+o,head:w+o}}return{doc:v,sel:y,from:o,to:s}}function LSe(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(cn&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||cn&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const $Se=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function HSe(e,t,n,i,r){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let A=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,W=Cp(e,A);if(W&&!e.state.selection.eq(W)){if(qt&&or&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",D=>D(e,Ga(13,"Enter"))))return;let $=e.state.tr.setSelection(W);A=="pointer"?$.setMeta("pointer",!0):A=="key"&&$.scrollIntoView(),a&&$.setMeta("composition",a),e.dispatch($)}return}let o=e.state.doc.resolve(t),s=o.sharedDepth(n);t=o.before(s+1),n=e.state.doc.resolve(n).after(s+1);let u=e.state.selection,c=zSe(e,t,n),f=e.state.doc,h=f.slice(c.from,c.to),g,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(g=e.state.selection.to,p="end"):(g=e.state.selection.from,p="start"),e.input.lastKeyCode=null;let y=VSe(h.content,c.doc.content,c.from,g,p);if(y&&e.input.domChangeCount++,(is&&e.input.lastIOSEnter>Date.now()-225||or)&&r.some(A=>A.nodeType==1&&!$Se.test(A.nodeName))&&(!y||y.endA>=y.endB)&&e.someProp("handleKeyDown",A=>A(e,Ga(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!y)if(i&&u instanceof Ce&&!u.empty&&u.$head.sameParent(u.$anchor)&&!e.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))y={start:u.from,endA:u.to,endB:u.to};else{if(c.sel){let A=A6(e,e.state.doc,c.sel);if(A&&!A.eq(e.state.selection)){let W=e.state.tr.setSelection(A);a&&W.setMeta("composition",a),e.dispatch(W)}}return}e.state.selection.from<e.state.selection.to&&y.start==y.endB&&e.state.selection instanceof Ce&&(y.start>e.state.selection.from&&y.start<=e.state.selection.from+2&&e.state.selection.from>=c.from?y.start=e.state.selection.from:y.endA<e.state.selection.to&&y.endA>=e.state.selection.to-2&&e.state.selection.to<=c.to&&(y.endB+=e.state.selection.to-y.endA,y.endA=e.state.selection.to)),xn&&Yr<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>c.from&&c.doc.textBetween(y.start-c.from-1,y.start-c.from+1)==" "&&(y.start--,y.endA--,y.endB--);let v=c.doc.resolveNoCache(y.start-c.from),k=c.doc.resolveNoCache(y.endB-c.from),w=f.resolve(y.start),M=v.sameParent(k)&&v.parent.inlineContent&&w.end()>=y.endA;if((is&&e.input.lastIOSEnter>Date.now()-225&&(!M||r.some(A=>A.nodeName=="DIV"||A.nodeName=="P"))||!M&&v.pos<c.doc.content.size&&(!v.sameParent(k)||!v.parent.inlineContent)&&v.pos<k.pos&&!/\S/.test(c.doc.textBetween(v.pos,k.pos,"","")))&&e.someProp("handleKeyDown",A=>A(e,Ga(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>y.start&&BSe(f,y.start,y.endA,v,k)&&e.someProp("handleKeyDown",A=>A(e,Ga(8,"Backspace")))){or&&qt&&e.domObserver.suppressSelectionUpdates();return}qt&&y.endB==y.start&&(e.input.lastChromeDelete=Date.now()),or&&!M&&v.start()!=k.start()&&k.parentOffset==0&&v.depth==k.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==y.endA&&(y.endB-=2,k=c.doc.resolveNoCache(y.endB-c.from),setTimeout(()=>{e.someProp("handleKeyDown",function(A){return A(e,Ga(13,"Enter"))})},20));let x=y.start,S=y.endA,E=A=>{let W=A||e.state.tr.replace(x,S,c.doc.slice(y.start-c.from,y.endB-c.from));if(c.sel){let $=A6(e,W.doc,c.sel);$&&!(qt&&e.composing&&$.empty&&(y.start!=y.endB||e.input.lastChromeDelete<Date.now()-100)&&($.head==x||$.head==W.mapping.map(S)-1)||xn&&$.empty&&$.head==x)&&W.setSelection($)}return a&&W.setMeta("composition",a),W.scrollIntoView()},I;if(M){if(v.pos==k.pos){xn&&Yr<=11&&v.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>lr(e),20));let A=E(e.state.tr.delete(x,S)),W=f.resolve(y.start).marksAcross(f.resolve(y.endA));W&&A.ensureMarks(W),e.dispatch(A)}else if(y.endA==y.endB&&(I=RSe(v.parent.content.cut(v.parentOffset,k.parentOffset),w.parent.content.cut(w.parentOffset,y.endA-w.start())))){let A=E(e.state.tr);I.type=="add"?A.addMark(x,S,I.mark):A.removeMark(x,S,I.mark),e.dispatch(A)}else if(v.parent.child(v.index()).isText&&v.index()==k.index()-(k.textOffset?0:1)){let A=v.parent.textBetween(v.parentOffset,k.parentOffset),W=()=>E(e.state.tr.insertText(A,x,S));e.someProp("handleTextInput",$=>$(e,x,S,A,W))||e.dispatch(W())}}else e.dispatch(E())}function A6(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Sp(e,t.resolve(n.anchor),t.resolve(n.head))}function RSe(e,t){let n=e.firstChild.marks,i=t.firstChild.marks,r=n,a=i,o,s,u;for(let f=0;f<i.length;f++)r=i[f].removeFromSet(r);for(let f=0;f<n.length;f++)a=n[f].removeFromSet(a);if(r.length==1&&a.length==0)s=r[0],o="add",u=f=>f.mark(s.addToSet(f.marks));else if(r.length==0&&a.length==1)s=a[0],o="remove",u=f=>f.mark(s.removeFromSet(f.marks));else return null;let c=[];for(let f=0;f<t.childCount;f++)c.push(u(t.child(f)));if(te.from(c).eq(e))return{mark:s,type:o}}function BSe(e,t,n,i,r){if(n-t<=r.pos-i.pos||Lp(i,!0,!1)<r.pos)return!1;let a=e.resolve(t);if(!i.parent.isTextblock){let s=a.nodeAfter;return s!=null&&n==t+s.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=e.resolve(Lp(a,!0,!0));return!o.parent.isTextblock||o.pos>n||Lp(o,!0,!1)<n?!1:i.parent.content.cut(i.parentOffset).eq(o.parent.content)}function Lp(e,t,n){let i=e.depth,r=t?e.end():e.pos;for(;i>0&&(t||e.indexAfter(i)==e.node(i).childCount);)i--,r++,t=!1;if(n){let a=e.node(i).maybeChild(e.indexAfter(i));for(;a&&!a.isLeaf;)a=a.firstChild,r++}return r}function VSe(e,t,n,i,r){let a=e.findDiffStart(t,n);if(a==null)return null;let{a:o,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(r=="end"){let u=Math.max(0,a-Math.min(o,s));i-=o+u-a}if(o<a&&e.size<t.size){let u=i<=a&&i>=o?a-i:0;a-=u,a&&a<t.size&&D6(t.textBetween(a-1,a+1))&&(a+=u?1:-1),s=a+(s-o),o=a}else if(s<a){let u=i<=a&&i>=s?a-i:0;a-=u,a&&a<e.size&&D6(e.textBetween(a-1,a+1))&&(a+=u?1:-1),o=a+(o-s),s=a}return{start:a,endA:o,endB:s}}function D6(e){if(e.length!=2)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class N6{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new lSe,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(z6),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=W6(this),I6(this),this.nodeViews=O6(this),this.docView=B4(this.state.doc,j6(this),zp(this),this.dom,this),this.domObserver=new jSe(this,(i,r,a,o)=>HSe(this,i,r,a,o)),this.domObserver.start(),uSe(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&Dp(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(z6),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let i in this._props)n[i]=this._props[i];n.state=this.state;for(let i in t)n[i]=t[i];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var i;let r=this.state,a=!1,o=!1;t.storedMarks&&this.composing&&(w6(this),o=!0),this.state=t;let s=r.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=O6(this);USe(p,this.nodeViews)&&(this.nodeViews=p,a=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&Dp(this),this.editable=W6(this),I6(this);let u=zp(this),c=j6(this),f=r.plugins!=t.plugins&&!r.doc.eq(t.doc)?"reset":t.scrollToSelection>r.scrollToSelection?"to selection":"preserve",h=a||!this.docView.matchesNode(t.doc,c,u);(h||!t.selection.eq(r.selection))&&(o=!0);let g=f=="preserve"&&o&&this.dom.style.overflowAnchor==null&&Cxe(this);if(o){this.domObserver.stop();let p=h&&(xn||qt)&&!this.composing&&!r.selection.empty&&!t.selection.empty&&FSe(r.selection,t.selection);if(h){let y=qt?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=MSe(this)),(a||!this.docView.update(t.doc,c,u,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=B4(t.doc,c,u,this.dom,this)),y&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Xxe(this))?lr(this,p):(J4(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((i=this.dragging)===null||i===void 0)&&i.node&&!r.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,r),f=="reset"?this.dom.scrollTop=0:f=="to selection"?this.scrollToSelection():g&&xxe(g)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!(!t||!this.dom.contains(t.nodeType==1?t:t.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof be){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&E4(this,n.getBoundingClientRect(),t)}else E4(this,this.coordsAtPos(this.state.selection.head,1),t)}}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n];i.spec.view&&this.pluginViews.push(i.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let i=this.state.plugins[n];i.spec.view&&this.pluginViews.push(i.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let i=this.pluginViews[n];i.update&&i.update(this,t)}}updateDraggedNode(t,n){let i=t.node,r=-1;if(this.state.doc.nodeAt(i.from)==i.node)r=i.from;else{let a=i.from+(this.state.doc.content.size-n.doc.content.size);(a>0&&this.state.doc.nodeAt(a))==i.node&&(r=a)}this.dragging=new k6(t.slice,t.move,r<0?void 0:be.create(this.state.doc,r))}someProp(t,n){let i=this._props&&this._props[t],r;if(i!=null&&(r=n?n(i):i))return r;for(let o=0;o<this.directPlugins.length;o++){let s=this.directPlugins[o].props[t];if(s!=null&&(r=n?n(s):s))return r}let a=this.state.plugins;if(a)for(let o=0;o<a.length;o++){let s=a[o].props[t];if(s!=null&&(r=n?n(s):s))return r}}hasFocus(){if(xn){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if(t.contentEditable=="false")return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&Sxe(this.dom),lr(this),this.domObserver.start()}get root(){let t=this._root;if(t==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return Axe(this,t)}coordsAtPos(t,n=1){return W4(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,i=-1){let r=this.docView.posFromDOM(t,n,i);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(t,n){return Wxe(this,n||this.state,t)}pasteHTML(t,n){return Hl(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return Hl(this,t,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(t){return Pp(this,t)}destroy(){this.docView&&(dSe(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],zp(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,fxe())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return fSe(this,t)}domSelectionRange(){let t=this.domSelection();return t?cn&&this.root.nodeType===11&&yxe(this.dom.ownerDocument)==this.dom&&WSe(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}N6.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function j6(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let i in n)i=="class"?t.class+=" "+n[i]:i=="style"?t.style=(t.style?t.style+";":"")+n[i]:!t[i]&&i!="contenteditable"&&i!="nodeName"&&(t[i]=String(n[i]))}),t.translate||(t.translate="no"),[mn.node(0,e.state.doc.content.size,t)]}function I6(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:mn.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function W6(e){return!e.someProp("editable",t=>t(e.state)===!1)}function FSe(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function O6(e){let t=Object.create(null);function n(i){for(let r in i)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=i[r])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function USe(e,t){let n=0,i=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let r in t)i++;return n!=i}function z6(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Zr={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},wc={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},YSe=typeof navigator<"u"&&/Mac/.test(navigator.platform),XSe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),$t=0;$t<10;$t++)Zr[48+$t]=Zr[96+$t]=String($t);for(var $t=1;$t<=24;$t++)Zr[$t+111]="F"+$t;for(var $t=65;$t<=90;$t++)Zr[$t]=String.fromCharCode($t+32),wc[$t]=String.fromCharCode($t);for(var $p in Zr)wc.hasOwnProperty($p)||(wc[$p]=Zr[$p]);function qSe(e){var t=YSe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||XSe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?wc:Zr)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const GSe=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),KSe=typeof navigator<"u"&&/Win/.test(navigator.platform);function QSe(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let i,r,a,o;for(let s=0;s<t.length-1;s++){let u=t[s];if(/^(cmd|meta|m)$/i.test(u))o=!0;else if(/^a(lt)?$/i.test(u))i=!0;else if(/^(c|ctrl|control)$/i.test(u))r=!0;else if(/^s(hift)?$/i.test(u))a=!0;else if(/^mod$/i.test(u))GSe?o=!0:r=!0;else throw new Error("Unrecognized modifier name: "+u)}return i&&(n="Alt-"+n),r&&(n="Ctrl-"+n),o&&(n="Meta-"+n),a&&(n="Shift-"+n),n}function JSe(e){let t=Object.create(null);for(let n in e)t[QSe(n)]=e[n];return t}function Hp(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function ZSe(e){return new ct({props:{handleKeyDown:L6(e)}})}function L6(e){let t=JSe(e);return function(n,i){let r=qSe(i),a,o=t[Hp(r,i)];if(o&&o(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(i.shiftKey){let s=t[Hp(r,i,!1)];if(s&&s(n.state,n.dispatch,n))return!0}if((i.altKey||i.metaKey||i.ctrlKey)&&!(KSe&&i.ctrlKey&&i.altKey)&&(a=Zr[i.keyCode])&&a!=r){let s=t[Hp(a,i)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}const e_e=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function $6(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const t_e=(e,t,n)=>{let i=$6(e,n);if(!i)return!1;let r=Rp(i);if(!r){let o=i.blockRange(),s=o&&Ko(o);return s==null?!1:(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}let a=r.nodeBefore;if(V6(e,r,t,-1))return!0;if(i.parent.content.size==0&&(us(a,"end")||be.isSelectable(a)))for(let o=i.depth;;o--){let s=lc(e.doc,i.before(o),i.after(o),le.empty);if(s&&s.slice.size<s.to-s.from){if(t){let u=e.tr.step(s);u.setSelection(us(a,"end")?Pe.findFrom(u.doc.resolve(u.mapping.map(r.pos,-1)),-1):be.create(u.doc,r.pos-a.nodeSize)),t(u.scrollIntoView())}return!0}if(o==1||i.node(o-1).childCount>1)break}return a.isAtom&&r.depth==i.depth-1?(t&&t(e.tr.delete(r.pos-a.nodeSize,r.pos).scrollIntoView()),!0):!1},n_e=(e,t,n)=>{let i=$6(e,n);if(!i)return!1;let r=Rp(i);return r?H6(e,r,t):!1},i_e=(e,t,n)=>{let i=R6(e,n);if(!i)return!1;let r=Bp(i);return r?H6(e,r,t):!1};function H6(e,t,n){let i=t.nodeBefore,r=i,a=t.pos-1;for(;!r.isTextblock;a--){if(r.type.spec.isolating)return!1;let f=r.lastChild;if(!f)return!1;r=f}let o=t.nodeAfter,s=o,u=t.pos+1;for(;!s.isTextblock;u++){if(s.type.spec.isolating)return!1;let f=s.firstChild;if(!f)return!1;s=f}let c=lc(e.doc,a,u,le.empty);if(!c||c.from!=a||c instanceof Dt&&c.slice.size>=u-a)return!1;if(n){let f=e.tr.step(c);f.setSelection(Ce.create(f.doc,a)),n(f.scrollIntoView())}return!0}function us(e,t,n=!1){for(let i=e;i;i=t=="start"?i.firstChild:i.lastChild){if(i.isTextblock)return!0;if(n&&i.childCount!=1)return!1}return!1}const r_e=(e,t,n)=>{let{$head:i,empty:r}=e.selection,a=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):i.parentOffset>0)return!1;a=Rp(i)}let o=a&&a.nodeBefore;return!o||!be.isSelectable(o)?!1:(t&&t(e.tr.setSelection(be.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function Rp(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function R6(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const a_e=(e,t,n)=>{let i=R6(e,n);if(!i)return!1;let r=Bp(i);if(!r)return!1;let a=r.nodeAfter;if(V6(e,r,t,1))return!0;if(i.parent.content.size==0&&(us(a,"start")||be.isSelectable(a))){let o=lc(e.doc,i.before(),i.after(),le.empty);if(o&&o.slice.size<o.to-o.from){if(t){let s=e.tr.step(o);s.setSelection(us(a,"start")?Pe.findFrom(s.doc.resolve(s.mapping.map(r.pos)),1):be.create(s.doc,s.mapping.map(r.pos))),t(s.scrollIntoView())}return!0}}return a.isAtom&&r.depth==i.depth-1?(t&&t(e.tr.delete(r.pos,r.pos+a.nodeSize).scrollIntoView()),!0):!1},o_e=(e,t,n)=>{let{$head:i,empty:r}=e.selection,a=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size)return!1;a=Bp(i)}let o=a&&a.nodeAfter;return!o||!be.isSelectable(o)?!1:(t&&t(e.tr.setSelection(be.create(e.doc,a.pos)).scrollIntoView()),!0)};function Bp(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const s_e=(e,t)=>{let n=e.selection,i=n instanceof be,r;if(i){if(n.node.isTextblock||!Fr(e.doc,n.from))return!1;r=n.from}else if(r=sc(e.doc,n.from,-1),r==null)return!1;if(t){let a=e.tr.join(r);i&&a.setSelection(be.create(a.doc,r-e.doc.resolve(r).nodeBefore.nodeSize)),t(a.scrollIntoView())}return!0},l_e=(e,t)=>{let n=e.selection,i;if(n instanceof be){if(n.node.isTextblock||!Fr(e.doc,n.to))return!1;i=n.to}else if(i=sc(e.doc,n.to,1),i==null)return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},u_e=(e,t)=>{let{$from:n,$to:i}=e.selection,r=n.blockRange(i),a=r&&Ko(r);return a==null?!1:(t&&t(e.tr.lift(r,a).scrollIntoView()),!0)},d_e=(e,t)=>{let{$head:n,$anchor:i}=e.selection;return!n.parent.type.spec.code||!n.sameParent(i)?!1:(t&&t(e.tr.insertText(`
|
|
1305
|
-
`).scrollIntoView()),!0)};function B6(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const c_e=(e,t)=>{let{$head:n,$anchor:i}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(i))return!1;let r=n.node(-1),a=n.indexAfter(-1),o=B6(r.contentMatchAt(a));if(!o||!r.canReplaceWith(a,a,o))return!1;if(t){let s=n.after(),u=e.tr.replaceWith(s,s,o.createAndFill());u.setSelection(Pe.near(u.doc.resolve(s),1)),t(u.scrollIntoView())}return!0},f_e=(e,t)=>{let n=e.selection,{$from:i,$to:r}=n;if(n instanceof qn||i.parent.inlineContent||r.parent.inlineContent)return!1;let a=B6(r.parent.contentMatchAt(r.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let o=(!i.parentOffset&&r.index()<r.parent.childCount?i:r).pos,s=e.tr.insert(o,a.createAndFill());s.setSelection(Ce.create(s.doc,o+1)),t(s.scrollIntoView())}return!0},h_e=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let a=n.before();if(Qo(e.doc,a))return t&&t(e.tr.split(a).scrollIntoView()),!0}let i=n.blockRange(),r=i&&Ko(i);return r==null?!1:(t&&t(e.tr.lift(i,r).scrollIntoView()),!0)},m_e=(e,t)=>{let{$from:n,to:i}=e.selection,r,a=n.sharedDepth(i);return a==0?!1:(r=n.before(a),t&&t(e.tr.setSelection(be.create(e.doc,r))),!0)};function p_e(e,t,n){let i=t.nodeBefore,r=t.nodeAfter,a=t.index();return!i||!r||!i.type.compatibleContent(r.type)?!1:!i.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(r.isTextblock||Fr(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function V6(e,t,n,i){let r=t.nodeBefore,a=t.nodeAfter,o,s,u=r.type.spec.isolating||a.type.spec.isolating;if(!u&&p_e(e,t,n))return!0;let c=!u&&t.parent.canReplace(t.index(),t.index()+1);if(c&&(o=(s=r.contentMatchAt(r.childCount)).findWrapping(a.type))&&s.matchType(o[0]||a.type).validEnd){if(n){let p=t.pos+a.nodeSize,y=te.empty;for(let w=o.length-1;w>=0;w--)y=te.from(o[w].create(null,y));y=te.from(r.copy(y));let v=e.tr.step(new Nt(t.pos-1,p,t.pos,p,new le(y,1,0),o.length,!0)),k=v.doc.resolve(p+2*o.length);k.nodeAfter&&k.nodeAfter.type==r.type&&Fr(v.doc,k.pos)&&v.join(k.pos),n(v.scrollIntoView())}return!0}let f=a.type.spec.isolating||i>0&&u?null:Pe.findFrom(t,1),h=f&&f.$from.blockRange(f.$to),g=h&&Ko(h);if(g!=null&&g>=t.depth)return n&&n(e.tr.lift(h,g).scrollIntoView()),!0;if(c&&us(a,"start",!0)&&us(r,"end")){let p=r,y=[];for(;y.push(p),!p.isTextblock;)p=p.lastChild;let v=a,k=1;for(;!v.isTextblock;v=v.firstChild)k++;if(p.canReplace(p.childCount,p.childCount,v.content)){if(n){let w=te.empty;for(let x=y.length-1;x>=0;x--)w=te.from(y[x].copy(w));let M=e.tr.step(new Nt(t.pos-y.length,t.pos+a.nodeSize,t.pos+k,t.pos+a.nodeSize-k,new le(w,y.length,0),0,!0));n(M.scrollIntoView())}return!0}}return!1}function F6(e){return function(t,n){let i=t.selection,r=e<0?i.$from:i.$to,a=r.depth;for(;r.node(a).isInline;){if(!a)return!1;a--}return r.node(a).isTextblock?(n&&n(t.tr.setSelection(Ce.create(t.doc,e<0?r.start(a):r.end(a)))),!0):!1}}const g_e=F6(-1),y_e=F6(1);function b_e(e,t=null){return function(n,i){let{$from:r,$to:a}=n.selection,o=r.blockRange(a),s=o&&lp(o,e,t);return s?(i&&i(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function U6(e,t=null){return function(n,i){let r=!1;for(let a=0;a<n.selection.ranges.length&&!r;a++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[a];n.doc.nodesBetween(o,s,(u,c)=>{if(r)return!1;if(!(!u.isTextblock||u.hasMarkup(e,t)))if(u.type==e)r=!0;else{let f=n.doc.resolve(c),h=f.index();r=f.parent.canReplaceWith(h,h+1,e)}})}if(!r)return!1;if(i){let a=n.tr;for(let o=0;o<n.selection.ranges.length;o++){let{$from:{pos:s},$to:{pos:u}}=n.selection.ranges[o];a.setBlockType(s,u,e,t)}i(a.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function w_e(e,t=null){return function(n,i){let{$from:r,$to:a}=n.selection,o=r.blockRange(a);if(!o)return!1;let s=i?n.tr:null;return v_e(s,o,e,t)?(i&&i(s.scrollIntoView()),!0):!1}}function v_e(e,t,n,i=null){let r=!1,a=t,o=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let u=o.resolve(t.start-2);a=new tc(u,u,t.depth),t.endIndex<t.parent.childCount&&(t=new tc(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),r=!0}let s=lp(a,n,i,t);return s?(e&&k_e(e,t,s,r,n),!0):!1}function k_e(e,t,n,i,r){let a=te.empty;for(let f=n.length-1;f>=0;f--)a=te.from(n[f].type.create(n[f].attrs,a));e.step(new Nt(t.start-(i?2:0),t.end,t.start,t.end,new le(a,0,0),n.length,!0));let o=0;for(let f=0;f<n.length;f++)n[f].type==r&&(o=f+1);let s=n.length-o,u=t.start+n.length-(i?2:0),c=t.parent;for(let f=t.startIndex,h=t.endIndex,g=!0;f<h;f++,g=!1)!g&&Qo(e.doc,u,s)&&(e.split(u,s),u+=2*s),u+=c.child(f).nodeSize;return e}function M_e(e){return function(t,n){let{$from:i,$to:r}=t.selection,a=i.blockRange(r,o=>o.childCount>0&&o.firstChild.type==e);return a?n?i.node(a.depth-1).type==e?C_e(t,n,e,a):x_e(t,n,a):!0:!1}}function C_e(e,t,n,i){let r=e.tr,a=i.end,o=i.$to.end(i.depth);a<o&&(r.step(new Nt(a-1,o,a,o,new le(te.from(n.create(null,i.parent.copy())),1,0),1,!0)),i=new tc(r.doc.resolve(i.$from.pos),r.doc.resolve(o),i.depth));const s=Ko(i);if(s==null)return!1;r.lift(i,s);let u=r.doc.resolve(r.mapping.map(a,-1)-1);return Fr(r.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&r.join(u.pos),t(r.scrollIntoView()),!0}function x_e(e,t,n){let i=e.tr,r=n.parent;for(let p=n.end,y=n.endIndex-1,v=n.startIndex;y>v;y--)p-=r.child(y).nodeSize,i.delete(p-1,p+1);let a=i.doc.resolve(n.start),o=a.nodeAfter;if(i.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,u=n.endIndex==r.childCount,c=a.node(-1),f=a.index(-1);if(!c.canReplace(f+(s?0:1),f+1,o.content.append(u?te.empty:te.from(r))))return!1;let h=a.pos,g=h+o.nodeSize;return i.step(new Nt(h-(s?1:0),g+(u?1:0),h+1,g-1,new le((s?te.empty:te.from(r.copy(te.empty))).append(u?te.empty:te.from(r.copy(te.empty))),s?0:1,u?0:1),s?0:1)),t(i.scrollIntoView()),!0}function S_e(e){return function(t,n){let{$from:i,$to:r}=t.selection,a=i.blockRange(r,c=>c.childCount>0&&c.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,u=s.child(o-1);if(u.type!=e)return!1;if(n){let c=u.lastChild&&u.lastChild.type==s.type,f=te.from(c?e.create():null),h=new le(te.from(e.create(null,te.from(s.type.create(null,f)))),c?3:1,0),g=a.start,p=a.end;n(t.tr.step(new Nt(g-(c?3:1),p,g,p,h,1,!0)).scrollIntoView())}return!0}}var __e=Object.defineProperty,Y6=(e,t)=>{for(var n in t)__e(e,n,{get:t[n],enumerable:!0})};function vc(e){const{state:t,transaction:n}=e;let{selection:i}=n,{doc:r}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return i},get doc(){return r},get tr(){return i=n.selection,r=n.doc,a=n.storedMarks,n}}}var kc=class{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:n}=this,{view:i}=t,{tr:r}=n,a=this.buildProps(r);return Object.fromEntries(Object.entries(e).map(([o,s])=>[o,(...c)=>{const f=s(...c)(a);return!r.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(r),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:n,editor:i,state:r}=this,{view:a}=i,o=[],s=!!e,u=e||r.tr,c=()=>(!s&&t&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(u),o.every(h=>h===!0)),f={...Object.fromEntries(Object.entries(n).map(([h,g])=>[h,(...y)=>{const v=this.buildProps(u,t),k=g(...y)(v);return o.push(k),f}])),run:c};return f}createCan(e){const{rawCommands:t,state:n}=this,i=!1,r=e||n.tr,a=this.buildProps(r,i);return{...Object.fromEntries(Object.entries(t).map(([s,u])=>[s,(...c)=>u(...c)({...a,dispatch:void 0})])),chain:()=>this.createChain(r,i)}}buildProps(e,t=!0){const{rawCommands:n,editor:i,state:r}=this,{view:a}=i,o={tr:e,editor:i,view:a,state:vc({state:r,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([s,u])=>[s,(...c)=>u(...c)(o)]))}};return o}},T_e=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach(i=>i.apply(this,t)),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(i=>i!==t):delete this.callbacks[e]),this}once(e,t){const n=(...i)=>{this.off(e,n),t.apply(this,i)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}};function X6(e,t){const n=new g4(e);return t.forEach(i=>{i.steps.forEach(r=>{n.step(r)})}),n}var q6=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const i=t[n];i.nodeType===3&&i.nodeValue&&/^(\n\s\s|\n)$/.test(i.nodeValue)?e.removeChild(i):i.nodeType===1&&q6(i)}return e};function Mc(e){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,"text/html").body;return q6(n)}function Bl(e,t,n){if(e instanceof Hr||e instanceof te)return e;n={slice:!0,parseOptions:{},...n};const i=typeof e=="object"&&e!==null,r=typeof e=="string";if(i)try{if(Array.isArray(e)&&e.length>0)return te.fromArray(e.map(s=>t.nodeFromJSON(s)));const o=t.nodeFromJSON(e);return n.errorOnInvalidContent&&o.check(),o}catch(a){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:a});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",a),Bl("",t,n)}if(r){if(n.errorOnInvalidContent){let o=!1,s="";const u=new U3({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(o=!0,s=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?Rr.fromSchema(u).parseSlice(Mc(e),n.parseOptions):Rr.fromSchema(u).parse(Mc(e),n.parseOptions),n.errorOnInvalidContent&&o)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${s}`)})}const a=Rr.fromSchema(t);return n.slice?a.parseSlice(Mc(e),n.parseOptions).content:a.parse(Mc(e),n.parseOptions)}return Bl("",t,n)}function Vp(e,t,n={},i={}){return Bl(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:i.errorOnInvalidContent})}function P_e(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function E_e(e,t,n){const i=[];return e.nodesBetween(t.from,t.to,(r,a)=>{n(r)&&i.push({node:r,pos:a})}),i}function A_e(e,t){for(let n=e.depth;n>0;n-=1){const i=e.node(n);if(t(i))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:i}}}function Cc(e){return t=>A_e(t.$from,e)}function ge(e,t,n){return e.config[t]===void 0&&e.parent?ge(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?ge(e.parent,t,n):null}):e.config[t]}function Fp(e){return e.map(t=>{const n={name:t.name,options:t.options,storage:t.storage},i=ge(t,"addExtensions",n);return i?[t,...Fp(i())]:t}).flat(10)}function Up(e,t){const n=Ya.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function G6(e){return typeof e=="function"}function Fe(e,t=void 0,...n){return G6(e)?t?e.bind(t)(...n):e(...n):e}function D_e(e={}){return Object.keys(e).length===0&&e.constructor===Object}function Vl(e){const t=e.filter(r=>r.type==="extension"),n=e.filter(r=>r.type==="node"),i=e.filter(r=>r.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:i}}function K6(e){const t=[],{nodeExtensions:n,markExtensions:i}=Vl(e),r=[...n,...i],a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(o=>{const s={name:o.name,options:o.options,storage:o.storage,extensions:r},u=ge(o,"addGlobalAttributes",s);if(!u)return;u().forEach(f=>{f.types.forEach(h=>{Object.entries(f.attributes).forEach(([g,p])=>{t.push({type:h,name:g,attribute:{...a,...p}})})})})}),r.forEach(o=>{const s={name:o.name,options:o.options,storage:o.storage},u=ge(o,"addAttributes",s);if(!u)return;const c=u();Object.entries(c).forEach(([f,h])=>{const g={...a,...h};typeof(g==null?void 0:g.default)=="function"&&(g.default=g.default()),g!=null&&g.isRequired&&(g==null?void 0:g.default)===void 0&&delete g.default,t.push({type:o.name,name:f,attribute:g})})}),t}function ft(...e){return e.filter(t=>!!t).reduce((t,n)=>{const i={...t};return Object.entries(n).forEach(([r,a])=>{if(!i[r]){i[r]=a;return}if(r==="class"){const s=a?String(a).split(" "):[],u=i[r]?i[r].split(" "):[],c=s.filter(f=>!u.includes(f));i[r]=[...u,...c].join(" ")}else if(r==="style"){const s=a?a.split(";").map(f=>f.trim()).filter(Boolean):[],u=i[r]?i[r].split(";").map(f=>f.trim()).filter(Boolean):[],c=new Map;u.forEach(f=>{const[h,g]=f.split(":").map(p=>p.trim());c.set(h,g)}),s.forEach(f=>{const[h,g]=f.split(":").map(p=>p.trim());c.set(h,g)}),i[r]=Array.from(c.entries()).map(([f,h])=>`${f}: ${h}`).join("; ")}else i[r]=a}),i},{})}function xc(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,i)=>ft(n,i),{})}function N_e(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function Q6(e,t){return"style"in e?e:{...e,getAttrs:n=>{const i=e.getAttrs?e.getAttrs(n):e.attrs;if(i===!1)return!1;const r=t.reduce((a,o)=>{const s=o.attribute.parseHTML?o.attribute.parseHTML(n):N_e(n.getAttribute(o.name));return s==null?a:{...a,[o.name]:s}},{});return{...i,...r}}}}function J6(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&D_e(n)?!1:n!=null))}function j_e(e,t){var n;const i=K6(e),{nodeExtensions:r,markExtensions:a}=Vl(e),o=(n=r.find(c=>ge(c,"topNode")))==null?void 0:n.name,s=Object.fromEntries(r.map(c=>{const f=i.filter(w=>w.type===c.name),h={name:c.name,options:c.options,storage:c.storage,editor:t},g=e.reduce((w,M)=>{const x=ge(M,"extendNodeSchema",h);return{...w,...x?x(c):{}}},{}),p=J6({...g,content:Fe(ge(c,"content",h)),marks:Fe(ge(c,"marks",h)),group:Fe(ge(c,"group",h)),inline:Fe(ge(c,"inline",h)),atom:Fe(ge(c,"atom",h)),selectable:Fe(ge(c,"selectable",h)),draggable:Fe(ge(c,"draggable",h)),code:Fe(ge(c,"code",h)),whitespace:Fe(ge(c,"whitespace",h)),linebreakReplacement:Fe(ge(c,"linebreakReplacement",h)),defining:Fe(ge(c,"defining",h)),isolating:Fe(ge(c,"isolating",h)),attrs:Object.fromEntries(f.map(w=>{var M,x;return[w.name,{default:(M=w==null?void 0:w.attribute)==null?void 0:M.default,validate:(x=w==null?void 0:w.attribute)==null?void 0:x.validate}]}))}),y=Fe(ge(c,"parseHTML",h));y&&(p.parseDOM=y.map(w=>Q6(w,f)));const v=ge(c,"renderHTML",h);v&&(p.toDOM=w=>v({node:w,HTMLAttributes:xc(w,f)}));const k=ge(c,"renderText",h);return k&&(p.toText=k),[c.name,p]})),u=Object.fromEntries(a.map(c=>{const f=i.filter(k=>k.type===c.name),h={name:c.name,options:c.options,storage:c.storage,editor:t},g=e.reduce((k,w)=>{const M=ge(w,"extendMarkSchema",h);return{...k,...M?M(c):{}}},{}),p=J6({...g,inclusive:Fe(ge(c,"inclusive",h)),excludes:Fe(ge(c,"excludes",h)),group:Fe(ge(c,"group",h)),spanning:Fe(ge(c,"spanning",h)),code:Fe(ge(c,"code",h)),attrs:Object.fromEntries(f.map(k=>{var w,M;return[k.name,{default:(w=k==null?void 0:k.attribute)==null?void 0:w.default,validate:(M=k==null?void 0:k.attribute)==null?void 0:M.validate}]}))}),y=Fe(ge(c,"parseHTML",h));y&&(p.parseDOM=y.map(k=>Q6(k,f)));const v=ge(c,"renderHTML",h);return v&&(p.toDOM=k=>v({mark:k,HTMLAttributes:xc(k,f)})),[c.name,p]}));return new U3({topNode:o,nodes:s,marks:u})}function I_e(e){const t=e.filter((n,i)=>e.indexOf(n)!==i);return Array.from(new Set(t))}function Yp(e){return e.sort((n,i)=>{const r=ge(n,"priority")||100,a=ge(i,"priority")||100;return r>a?-1:r<a?1:0})}function Z6(e){const t=Yp(Fp(e)),n=I_e(t.map(i=>i.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),t}function ek(e,t,n){const{from:i,to:r}=t,{blockSeparator:a=`
|
|
1304
|
+
`))),0,0),e.someProp("transformPasted",g=>{s=g(s,e,!0)}),s;let h=e.someProp("clipboardTextParser",g=>g(t,r,i,e));if(h)s=h;else{let g=r.marks(),{schema:p}=e.state,y=Ya.fromSchema(p);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(v=>{let k=o.appendChild(document.createElement("p"));v&&k.appendChild(y.serializeNode(p.text(v,g)))})}}else e.someProp("transformPastedHTML",h=>{n=h(n,e)}),o=rSe(n),Il&&aSe(o);let c=o&&o.querySelector("[data-pm-slice]"),f=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(f&&f[3])for(let h=+f[3];h>0;h--){let g=o.firstChild;for(;g&&g.nodeType!=1;)g=g.nextSibling;if(!g)break;o=g}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||Rr.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(u||f),context:r,ruleFromNode(g){return g.nodeName=="BR"&&!g.nextSibling&&g.parentNode&&!tSe.test(g.parentNode.nodeName)?{ignore:!0}:null}})),f)s=oSe(f6(s,+f[1],+f[2]),f[4]);else if(s=le.maxOpen(nSe(s.content,r),!0),s.openStart||s.openEnd){let h=0,g=0;for(let p=s.content.firstChild;h<s.openStart&&!p.type.spec.isolating;h++,p=p.firstChild);for(let p=s.content.lastChild;g<s.openEnd&&!p.type.spec.isolating;g++,p=p.lastChild);s=f6(s,h,g)}return e.someProp("transformPasted",h=>{s=h(s,e,u)}),s}const tSe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function nSe(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),a,o=[];if(e.forEach(s=>{if(!o)return;let u=r.findWrapping(s.type),c;if(!u)return o=null;if(c=o.length&&a.length&&d6(u,a,s,o[o.length-1],0))o[o.length-1]=c;else{o.length&&(o[o.length-1]=c6(o[o.length-1],a.length));let f=u6(s,u);o.push(f),r=r.matchType(f.type),a=u}}),o)return te.from(o)}return e}function u6(e,t,n=0){for(let i=t.length-1;i>=n;i--)e=t[i].create(null,te.from(e));return e}function d6(e,t,n,i,r){if(r<e.length&&r<t.length&&e[r]==t[r]){let a=d6(e,t,n,i.lastChild,r+1);if(a)return i.copy(i.content.replaceChild(i.childCount-1,a));if(i.contentMatchAt(i.childCount).matchType(r==e.length-1?n.type:e[r+1]))return i.copy(i.content.append(te.from(u6(n,e,r+1))))}}function c6(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,c6(e.lastChild,t-1)),i=e.contentMatchAt(e.childCount).fillBefore(te.empty,!0);return e.copy(n.append(i))}function Ep(e,t,n,i,r,a){let o=t<0?e.firstChild:e.lastChild,s=o.content;return e.childCount>1&&(a=0),r<i-1&&(s=Ep(s,t,n,i,r+1,a)),r>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,a<=r).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(te.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function f6(e,t,n){return t<e.openStart&&(e=new le(Ep(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new le(Ep(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const h6={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let m6=null;function p6(){return m6||(m6=document.implementation.createHTMLDocument("title"))}let Ap=null;function iSe(e){let t=window.trustedTypes;return t?(Ap||(Ap=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Ap.createHTML(e)):e}function rSe(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=p6().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e),r;if((r=i&&h6[i[1].toLowerCase()])&&(e=r.map(a=>"<"+a+">").join("")+e+r.map(a=>"</"+a+">").reverse().join("")),n.innerHTML=iSe(e),r)for(let a=0;a<r.length;a++)n=n.querySelector(r[a])||n;return n}function aSe(e){let t=e.querySelectorAll(qt?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let i=t[n];i.childNodes.length==1&&i.textContent==" "&&i.parentNode&&i.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),i)}}function oSe(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,i;try{i=JSON.parse(t)}catch{return e}let{content:r,openStart:a,openEnd:o}=e;for(let s=i.length-2;s>=0;s-=2){let u=n.nodes[i[s]];if(!u||u.hasRequiredAttrs())break;r=te.from(u.create(i[s+1],r)),a++,o++}return new le(r,a,o)}const fn={},hn={},sSe={touchstart:!0,touchmove:!0};class lSe{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function uSe(e){for(let t in fn){let n=fn[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=i=>{cSe(e,i)&&!Np(e,i)&&(e.editable||!(i.type in hn))&&n(e,i)},sSe[t]?{passive:!0}:void 0)}cn&&e.dom.addEventListener("input",()=>null),Dp(e)}function Kr(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function dSe(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function Dp(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=i=>Np(e,i))})}function Np(e,t){return e.someProp("handleDOMEvents",n=>{let i=n[t.type];return i?i(e,t)||t.defaultPrevented:!1})}function cSe(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function fSe(e,t){!Np(e,t)&&fn[t.type]&&(e.editable||!(t.type in hn))&&fn[t.type](e,t)}hn.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!y6(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(or&&qt&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),is&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let i=Date.now();e.input.lastIOSEnter=i,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==i&&(e.someProp("handleKeyDown",r=>r(e,Ga(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",i=>i(e,n))||eSe(e,n)?n.preventDefault():Kr(e,"key")},hn.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},hn.keypress=(e,t)=>{let n=t;if(y6(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Qn&&n.metaKey)return;if(e.someProp("handleKeyPress",r=>r(e,n))){n.preventDefault();return}let i=e.state.selection;if(!(i instanceof Ce)||!i.$from.sameParent(i.$to)){let r=String.fromCharCode(n.charCode),a=()=>e.state.tr.insertText(r).scrollIntoView();!/[\r\n]/.test(r)&&!e.someProp("handleTextInput",o=>o(e,i.$from.pos,i.$to.pos,r,a))&&e.dispatch(a()),n.preventDefault()}};function pc(e){return{left:e.clientX,top:e.clientY}}function hSe(e,t){let n=t.x-e.clientX,i=t.y-e.clientY;return n*n+i*i<100}function jp(e,t,n,i,r){if(i==-1)return!1;let a=e.state.doc.resolve(i);for(let o=a.depth+1;o>0;o--)if(e.someProp(t,s=>o>a.depth?s(e,n,a.nodeAfter,a.before(o),r,!0):s(e,n,a.node(o),a.before(o),r,!1)))return!0;return!1}function ss(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let i=e.state.tr.setSelection(t);i.setMeta("pointer",!0),e.dispatch(i)}function mSe(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),i=n.nodeAfter;return i&&i.isAtom&&be.isSelectable(i)?(ss(e,new be(n)),!0):!1}function pSe(e,t){if(t==-1)return!1;let n=e.state.selection,i,r;n instanceof be&&(i=n.node);let a=e.state.doc.resolve(t);for(let o=a.depth+1;o>0;o--){let s=o>a.depth?a.nodeAfter:a.node(o);if(be.isSelectable(s)){i&&n.$from.depth>0&&o>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?r=a.before(n.$from.depth):r=a.before(o);break}}return r!=null?(ss(e,be.create(e.state.doc,r)),!0):!1}function gSe(e,t,n,i,r){return jp(e,"handleClickOn",t,n,i)||e.someProp("handleClick",a=>a(e,t,i))||(r?pSe(e,n):mSe(e,n))}function ySe(e,t,n,i){return jp(e,"handleDoubleClickOn",t,n,i)||e.someProp("handleDoubleClick",r=>r(e,t,i))}function bSe(e,t,n,i){return jp(e,"handleTripleClickOn",t,n,i)||e.someProp("handleTripleClick",r=>r(e,t,i))||wSe(e,n,i)}function wSe(e,t,n){if(n.button!=0)return!1;let i=e.state.doc;if(t==-1)return i.inlineContent?(ss(e,Ce.create(i,0,i.content.size)),!0):!1;let r=i.resolve(t);for(let a=r.depth+1;a>0;a--){let o=a>r.depth?r.nodeAfter:r.node(a),s=r.before(a);if(o.inlineContent)ss(e,Ce.create(i,s+1,s+1+o.content.size));else if(be.isSelectable(o))ss(e,be.create(i,s));else continue;return!0}}function Ip(e){return gc(e)}const g6=Qn?"metaKey":"ctrlKey";fn.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let i=Ip(e),r=Date.now(),a="singleClick";r-e.input.lastClick.time<500&&hSe(n,e.input.lastClick)&&!n[g6]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?a="doubleClick":e.input.lastClick.type=="doubleClick"&&(a="tripleClick")),e.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:a,button:n.button};let o=e.posAtCoords(pc(n));o&&(a=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new vSe(e,o,n,!!i)):(a=="doubleClick"?ySe:bSe)(e,o.pos,o.inside,n)?n.preventDefault():Kr(e,"pointer"))};class vSe{constructor(t,n,i,r){this.view=t,this.pos=n,this.event=i,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!i[g6],this.allowDefault=i.shiftKey;let a,o;if(n.inside>-1)a=t.state.doc.nodeAt(n.inside),o=n.inside;else{let f=t.state.doc.resolve(n.pos);a=f.parent,o=f.depth?f.before():0}const s=r?null:i.target,u=s?t.docView.nearestDesc(s,!0):null;this.target=u&&u.nodeDOM.nodeType==1?u.nodeDOM:null;let{selection:c}=t.state;(i.button==0&&a.type.spec.draggable&&a.type.spec.selectable!==!1||c instanceof be&&c.from<=o&&c.to>o)&&(this.mightDrag={node:a,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Kn&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),Kr(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>lr(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(pc(t))),this.updateAllowDefault(t),this.allowDefault||!n?Kr(this.view,"pointer"):gSe(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||cn&&this.mightDrag&&!this.mightDrag.node.isAtom||qt&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(ss(this.view,Pe.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):Kr(this.view,"pointer")}move(t){this.updateAllowDefault(t),Kr(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}fn.touchstart=e=>{e.input.lastTouch=Date.now(),Ip(e),Kr(e,"pointer")},fn.touchmove=e=>{e.input.lastTouch=Date.now(),Kr(e,"pointer")},fn.contextmenu=e=>Ip(e);function y6(e,t){return e.composing?!0:cn&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const kSe=or?5e3:-1;hn.compositionstart=hn.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Ce&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(i=>i.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),gc(e,!0),e.markCursor=null;else if(gc(e,!t.selection.empty),Kn&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let i=e.domSelectionRange();for(let r=i.focusNode,a=i.focusOffset;r&&r.nodeType==1&&a!=0;){let o=a<0?r.lastChild:r.childNodes[a-1];if(!o)break;if(o.nodeType==3){let s=e.domSelection();s&&s.collapse(o,o.nodeValue.length);break}else r=o,a=-1}}e.input.composing=!0}b6(e,kSe)},hn.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,b6(e,20))};function b6(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>gc(e),t))}function w6(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=CSe());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function MSe(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=mxe(t.focusNode,t.focusOffset),i=pxe(t.focusNode,t.focusOffset);if(n&&i&&n!=i){let r=i.pmViewDesc,a=e.domObserver.lastChangedTextNode;if(n==a||i==a)return a;if(!r||!r.isText(i.nodeValue))return i;if(e.input.compositionNode==i){let o=n.pmViewDesc;if(!(!o||!o.isText(n.nodeValue)))return i}}return n||i}function CSe(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function gc(e,t=!1){if(!(or&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),w6(e),t||e.docView&&e.docView.dirty){let n=Cp(e),i=e.state.selection;return n&&!n.eq(i)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!i.$from.node(i.$from.sharedDepth(i.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function xSe(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),r=document.createRange();r.selectNodeContents(t),e.dom.blur(),i.removeAllRanges(),i.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const $l=xn&&Yr<15||is&&vxe<604;fn.copy=hn.cut=(e,t)=>{let n=t,i=e.state.selection,r=n.type=="cut";if(i.empty)return;let a=$l?null:n.clipboardData,o=i.content(),{dom:s,text:u}=Pp(e,o);a?(n.preventDefault(),a.clearData(),a.setData("text/html",s.innerHTML),a.setData("text/plain",u)):xSe(e,s),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function SSe(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function _Se(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,i=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus();let r=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),i.parentNode&&i.parentNode.removeChild(i),n?Hl(e,i.value,null,r,t):Hl(e,i.textContent,i.innerHTML,r,t)},50)}function Hl(e,t,n,i,r){let a=l6(e,t,n,i,e.state.selection.$from);if(e.someProp("handlePaste",u=>u(e,r,a||le.empty)))return!0;if(!a)return!1;let o=SSe(a),s=o?e.state.tr.replaceSelectionWith(o,i):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function v6(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}hn.paste=(e,t)=>{let n=t;if(e.composing&&!or)return;let i=$l?null:n.clipboardData,r=e.input.shiftKey&&e.input.lastKeyCode!=45;i&&Hl(e,v6(i),i.getData("text/html"),r,n)?n.preventDefault():_Se(e,n)};class k6{constructor(t,n,i){this.slice=t,this.move=n,this.node=i}}const TSe=Qn?"altKey":"ctrlKey";function M6(e,t){let n=e.someProp("dragCopies",i=>!i(t));return n??!t[TSe]}fn.dragstart=(e,t)=>{let n=t,i=e.input.mouseDown;if(i&&i.done(),!n.dataTransfer)return;let r=e.state.selection,a=r.empty?null:e.posAtCoords(pc(n)),o;if(!(a&&a.pos>=r.from&&a.pos<=(r instanceof be?r.to-1:r.to))){if(i&&i.mightDrag)o=be.create(e.state.doc,i.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let h=e.docView.nearestDesc(n.target,!0);h&&h.node.type.spec.draggable&&h!=e.docView&&(o=be.create(e.state.doc,h.posBefore))}}let s=(o||e.state.selection).content(),{dom:u,text:c,slice:f}=Pp(e,s);(!n.dataTransfer.files.length||!qt||P3>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData($l?"Text":"text/html",u.innerHTML),n.dataTransfer.effectAllowed="copyMove",$l||n.dataTransfer.setData("text/plain",c),e.dragging=new k6(f,M6(e,n),o)},fn.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},hn.dragover=hn.dragenter=(e,t)=>t.preventDefault(),hn.drop=(e,t)=>{let n=t,i=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let r=e.posAtCoords(pc(n));if(!r)return;let a=e.state.doc.resolve(r.pos),o=i&&i.slice;o?e.someProp("transformPasted",y=>{o=y(o,e,!1)}):o=l6(e,v6(n.dataTransfer),$l?null:n.dataTransfer.getData("text/html"),!1,a);let s=!!(i&&M6(e,n));if(e.someProp("handleDrop",y=>y(e,n,o||le.empty,s))){n.preventDefault();return}if(!o)return;n.preventDefault();let u=o?c3(e.state.doc,a.pos,o):a.pos;u==null&&(u=a.pos);let c=e.state.tr;if(s){let{node:y}=i;y?y.replace(c):c.deleteSelection()}let f=c.mapping.map(u),h=o.openStart==0&&o.openEnd==0&&o.content.childCount==1,g=c.doc;if(h?c.replaceRangeWith(f,f,o.content.firstChild):c.replaceRange(f,f,o),c.doc.eq(g))return;let p=c.doc.resolve(f);if(h&&be.isSelectable(o.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(o.content.firstChild))c.setSelection(new be(p));else{let y=c.mapping.map(u);c.mapping.maps[c.mapping.maps.length-1].forEach((v,k,w,M)=>y=M),c.setSelection(Sp(e,p,c.doc.resolve(y)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))},fn.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&lr(e)},20))},fn.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},fn.beforeinput=(e,t)=>{if(qt&&or&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:i}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=i||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",a=>a(e,Ga(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let e in hn)fn[e]=hn[e];function Rl(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class yc{constructor(t,n){this.toDOM=t,this.spec=n||Za,this.side=this.spec.side||0}map(t,n,i,r){let{pos:a,deleted:o}=t.mapResult(n.from+r,this.side<0?-1:1);return o?null:new mn(a-i,a-i,this)}valid(){return!0}eq(t){return this==t||t instanceof yc&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Rl(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Qr{constructor(t,n){this.attrs=t,this.spec=n||Za}map(t,n,i,r){let a=t.map(n.from+r,this.spec.inclusiveStart?-1:1)-i,o=t.map(n.to+r,this.spec.inclusiveEnd?1:-1)-i;return a>=o?null:new mn(a,o,this)}valid(t,n){return n.from<n.to}eq(t){return this==t||t instanceof Qr&&Rl(this.attrs,t.attrs)&&Rl(this.spec,t.spec)}static is(t){return t.type instanceof Qr}destroy(){}}class Wp{constructor(t,n){this.attrs=t,this.spec=n||Za}map(t,n,i,r){let a=t.mapResult(n.from+r,1);if(a.deleted)return null;let o=t.mapResult(n.to+r,-1);return o.deleted||o.pos<=a.pos?null:new mn(a.pos-i,o.pos-i,this)}valid(t,n){let{index:i,offset:r}=t.content.findIndex(n.from),a;return r==n.from&&!(a=t.child(i)).isText&&r+a.nodeSize==n.to}eq(t){return this==t||t instanceof Wp&&Rl(this.attrs,t.attrs)&&Rl(this.spec,t.spec)}destroy(){}}class mn{constructor(t,n,i){this.from=t,this.to=n,this.type=i}copy(t,n){return new mn(t,n,this.type)}eq(t,n=0){return this.type.eq(t.type)&&this.from+n==t.from&&this.to+n==t.to}map(t,n,i){return this.type.map(t,this,n,i)}static widget(t,n,i){return new mn(t,t,new yc(n,i))}static inline(t,n,i,r){return new mn(t,n,new Qr(i,r))}static node(t,n,i,r){return new mn(t,n,new Wp(i,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof Qr}get widget(){return this.type instanceof yc}}const ls=[],Za={};class st{constructor(t,n){this.local=t.length?t:ls,this.children=n.length?n:ls}static create(t,n){return n.length?bc(n,t,0,Za):Gt}find(t,n,i){let r=[];return this.findInner(t??0,n??1e9,r,0,i),r}findInner(t,n,i,r,a){for(let o=0;o<this.local.length;o++){let s=this.local[o];s.from<=n&&s.to>=t&&(!a||a(s.spec))&&i.push(s.copy(s.from+r,s.to+r))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<n&&this.children[o+1]>t){let s=this.children[o]+1;this.children[o+2].findInner(t-s,n-s,i,r+s,a)}}map(t,n,i){return this==Gt||t.maps.length==0?this:this.mapInner(t,n,0,0,i||Za)}mapInner(t,n,i,r,a){let o;for(let s=0;s<this.local.length;s++){let u=this.local[s].map(t,i,r);u&&u.type.valid(n,u)?(o||(o=[])).push(u):a.onRemove&&a.onRemove(this.local[s].spec)}return this.children.length?PSe(this.children,o||[],t,n,i,r,a):o?new st(o.sort(eo),ls):Gt}add(t,n){return n.length?this==Gt?st.create(t,n):this.addInner(t,n,0):this}addInner(t,n,i){let r,a=0;t.forEach((s,u)=>{let c=u+i,f;if(f=x6(n,s,c)){for(r||(r=this.children.slice());a<r.length&&r[a]<u;)a+=3;r[a]==u?r[a+2]=r[a+2].addInner(s,f,c+1):r.splice(a,0,u,u+s.nodeSize,bc(f,s,c+1,Za)),a+=3}});let o=C6(a?S6(n):n,-i);for(let s=0;s<o.length;s++)o[s].type.valid(t,o[s])||o.splice(s--,1);return new st(o.length?this.local.concat(o).sort(eo):this.local,r||this.children)}remove(t){return t.length==0||this==Gt?this:this.removeInner(t,0)}removeInner(t,n){let i=this.children,r=this.local;for(let a=0;a<i.length;a+=3){let o,s=i[a]+n,u=i[a+1]+n;for(let f=0,h;f<t.length;f++)(h=t[f])&&h.from>s&&h.to<u&&(t[f]=null,(o||(o=[])).push(h));if(!o)continue;i==this.children&&(i=this.children.slice());let c=i[a+2].removeInner(o,s+1);c!=Gt?i[a+2]=c:(i.splice(a,3),a-=3)}if(r.length){for(let a=0,o;a<t.length;a++)if(o=t[a])for(let s=0;s<r.length;s++)r[s].eq(o,n)&&(r==this.local&&(r=this.local.slice()),r.splice(s--,1))}return i==this.children&&r==this.local?this:r.length||i.length?new st(r,i):Gt}forChild(t,n){if(this==Gt)return this;if(n.isLeaf)return st.empty;let i,r;for(let s=0;s<this.children.length;s+=3)if(this.children[s]>=t){this.children[s]==t&&(i=this.children[s+2]);break}let a=t+1,o=a+n.content.size;for(let s=0;s<this.local.length;s++){let u=this.local[s];if(u.from<o&&u.to>a&&u.type instanceof Qr){let c=Math.max(a,u.from)-a,f=Math.min(o,u.to)-a;c<f&&(r||(r=[])).push(u.copy(c,f))}}if(r){let s=new st(r.sort(eo),ls);return i?new Jr([s,i]):s}return i||Gt}eq(t){if(this==t)return!0;if(!(t instanceof st)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=t.children[n]||this.children[n+1]!=t.children[n+1]||!this.children[n+2].eq(t.children[n+2]))return!1;return!0}locals(t){return Op(this.localsInner(t))}localsInner(t){if(this==Gt)return ls;if(t.inlineContent||!this.local.some(Qr.is))return this.local;let n=[];for(let i=0;i<this.local.length;i++)this.local[i].type instanceof Qr||n.push(this.local[i]);return n}forEachSet(t){t(this)}}st.empty=new st([],[]),st.removeOverlap=Op;const Gt=st.empty;class Jr{constructor(t){this.members=t}map(t,n){const i=this.members.map(r=>r.map(t,n,Za));return Jr.from(i)}forChild(t,n){if(n.isLeaf)return st.empty;let i=[];for(let r=0;r<this.members.length;r++){let a=this.members[r].forChild(t,n);a!=Gt&&(a instanceof Jr?i=i.concat(a.members):i.push(a))}return Jr.from(i)}eq(t){if(!(t instanceof Jr)||t.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}locals(t){let n,i=!0;for(let r=0;r<this.members.length;r++){let a=this.members[r].localsInner(t);if(a.length)if(!n)n=a;else{i&&(n=n.slice(),i=!1);for(let o=0;o<a.length;o++)n.push(a[o])}}return n?Op(i?n:n.sort(eo)):ls}static from(t){switch(t.length){case 0:return Gt;case 1:return t[0];default:return new Jr(t.every(n=>n instanceof st)?t:t.reduce((n,i)=>n.concat(i instanceof st?i:i.members),[]))}}forEachSet(t){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(t)}}function PSe(e,t,n,i,r,a,o){let s=e.slice();for(let c=0,f=a;c<n.maps.length;c++){let h=0;n.maps[c].forEach((g,p,y,v)=>{let k=v-y-(p-g);for(let w=0;w<s.length;w+=3){let M=s[w+1];if(M<0||g>M+f-h)continue;let x=s[w]+f-h;p>=x?s[w+1]=g<=x?-2:-1:g>=f&&k&&(s[w]+=k,s[w+1]+=k)}h+=k}),f=n.maps[c].map(f,-1)}let u=!1;for(let c=0;c<s.length;c+=3)if(s[c+1]<0){if(s[c+1]==-2){u=!0,s[c+1]=-1;continue}let f=n.map(e[c]+a),h=f-r;if(h<0||h>=i.content.size){u=!0;continue}let g=n.map(e[c+1]+a,-1),p=g-r,{index:y,offset:v}=i.content.findIndex(h),k=i.maybeChild(y);if(k&&v==h&&v+k.nodeSize==p){let w=s[c+2].mapInner(n,k,f+1,e[c]+a+1,o);w!=Gt?(s[c]=h,s[c+1]=p,s[c+2]=w):(s[c+1]=-2,u=!0)}else u=!0}if(u){let c=ESe(s,e,t,n,r,a,o),f=bc(c,i,0,o);t=f.local;for(let h=0;h<s.length;h+=3)s[h+1]<0&&(s.splice(h,3),h-=3);for(let h=0,g=0;h<f.children.length;h+=3){let p=f.children[h];for(;g<s.length&&s[g]<p;)g+=3;s.splice(g,0,f.children[h],f.children[h+1],f.children[h+2])}}return new st(t.sort(eo),s)}function C6(e,t){if(!t||!e.length)return e;let n=[];for(let i=0;i<e.length;i++){let r=e[i];n.push(new mn(r.from+t,r.to+t,r.type))}return n}function ESe(e,t,n,i,r,a,o){function s(u,c){for(let f=0;f<u.local.length;f++){let h=u.local[f].map(i,r,c);h?n.push(h):o.onRemove&&o.onRemove(u.local[f].spec)}for(let f=0;f<u.children.length;f+=3)s(u.children[f+2],u.children[f]+c+1)}for(let u=0;u<e.length;u+=3)e[u+1]==-1&&s(e[u+2],t[u]+a+1);return n}function x6(e,t,n){if(t.isLeaf)return null;let i=n+t.nodeSize,r=null;for(let a=0,o;a<e.length;a++)(o=e[a])&&o.from>n&&o.to<i&&((r||(r=[])).push(o),e[a]=null);return r}function S6(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function bc(e,t,n,i){let r=[],a=!1;t.forEach((s,u)=>{let c=x6(e,s,u+n);if(c){a=!0;let f=bc(c,s,n+u+1,i);f!=Gt&&r.push(u,u+s.nodeSize,f)}});let o=C6(a?S6(e):e,-n).sort(eo);for(let s=0;s<o.length;s++)o[s].type.valid(t,o[s])||(i.onRemove&&i.onRemove(o[s].spec),o.splice(s--,1));return o.length||r.length?new st(o,r):Gt}function eo(e,t){return e.from-t.from||e.to-t.to}function Op(e){let t=e;for(let n=0;n<t.length-1;n++){let i=t[n];if(i.from!=i.to)for(let r=n+1;r<t.length;r++){let a=t[r];if(a.from==i.from){a.to!=i.to&&(t==e&&(t=e.slice()),t[r]=a.copy(a.from,i.to),_6(t,r+1,a.copy(i.to,a.to)));continue}else{a.from<i.to&&(t==e&&(t=e.slice()),t[n]=i.copy(i.from,a.from),_6(t,r,i.copy(a.from,i.to)));break}}}return t}function _6(e,t,n){for(;t<e.length&&eo(n,e[t])>0;)t++;e.splice(t,0,n)}function zp(e){let t=[];return e.someProp("decorations",n=>{let i=n(e.state);i&&i!=Gt&&t.push(i)}),e.cursorWrapper&&t.push(st.create(e.state.doc,[e.cursorWrapper.deco])),Jr.from(t)}const ASe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},DSe=xn&&Yr<=11;class NSe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class jSe{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new NSe,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(i=>{for(let r=0;r<i.length;r++)this.queue.push(i[r]);xn&&Yr<=11&&i.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),DSe&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,ASe)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(e6(this.view)){if(this.suppressingSelectionUpdates)return lr(this.view);if(xn&&Yr<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&qa(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,i;for(let a=t.focusNode;a;a=ns(a))n.add(a);for(let a=t.anchorNode;a;a=ns(a))if(n.has(a)){i=a;break}let r=i&&this.view.docView.nearestDesc(i);if(r&&r.ignoreMutation({type:"selection",target:i.nodeType==3?i.parentNode:i}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let i=t.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&e6(t)&&!this.ignoreSelectionChange(i),a=-1,o=-1,s=!1,u=[];if(t.editable)for(let f=0;f<n.length;f++){let h=this.registerMutation(n[f],u);h&&(a=a<0?h.from:Math.min(h.from,a),o=o<0?h.to:Math.max(h.to,o),h.typeOver&&(s=!0))}if(Kn&&u.length){let f=u.filter(h=>h.nodeName=="BR");if(f.length==2){let[h,g]=f;h.parentNode&&h.parentNode.parentNode==g.parentNode?g.remove():h.remove()}else{let{focusNode:h}=this.currentSelection;for(let g of f){let p=g.parentNode;p&&p.nodeName=="LI"&&(!h||OSe(t,h)!=p)&&g.remove()}}}let c=null;a<0&&r&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&cc(i)&&(c=Cp(t))&&c.eq(Pe.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,lr(t),this.currentSelection.set(i),t.scrollToSelection()):(a>-1||r)&&(a>-1&&(t.docView.markDirty(a,o),ISe(t)),this.handleDOMChange(a,o,s,u),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(i)||lr(t),this.currentSelection.set(i))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let i=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(i==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!i||i.ignoreMutation(t))return null;if(t.type=="childList"){for(let f=0;f<t.addedNodes.length;f++){let h=t.addedNodes[f];n.push(h),h.nodeType==3&&(this.lastChangedTextNode=h)}if(i.contentDOM&&i.contentDOM!=i.dom&&!i.contentDOM.contains(t.target))return{from:i.posBefore,to:i.posAfter};let r=t.previousSibling,a=t.nextSibling;if(xn&&Yr<=11&&t.addedNodes.length)for(let f=0;f<t.addedNodes.length;f++){let{previousSibling:h,nextSibling:g}=t.addedNodes[f];(!h||Array.prototype.indexOf.call(t.addedNodes,h)<0)&&(r=h),(!g||Array.prototype.indexOf.call(t.addedNodes,g)<0)&&(a=g)}let o=r&&r.parentNode==t.target?Lt(r)+1:0,s=i.localPosFromDOM(t.target,o,-1),u=a&&a.parentNode==t.target?Lt(a):t.target.childNodes.length,c=i.localPosFromDOM(t.target,u,1);return{from:s,to:c}}else return t.type=="attributes"?{from:i.posAtStart-i.border,to:i.posAtEnd+i.border}:(this.lastChangedTextNode=t.target,{from:i.posAtStart,to:i.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let T6=new WeakMap,P6=!1;function ISe(e){if(!T6.has(e)&&(T6.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=Kn,P6)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),P6=!0}}function E6(e,t){let n=t.startContainer,i=t.startOffset,r=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return qa(o.node,o.offset,r,a)&&([n,i,r,a]=[r,a,n,i]),{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:a}}function WSe(e,t){if(t.getComposedRanges){let r=t.getComposedRanges(e.root)[0];if(r)return E6(e,r)}let n;function i(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",i,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",i,!0),n?E6(e,n):null}function OSe(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let i=e.docView.nearestDesc(n,!0);if(i&&i.node.isBlock)return n}return null}function zSe(e,t,n){let{node:i,fromOffset:r,toOffset:a,from:o,to:s}=e.docView.parseRange(t,n),u=e.domSelectionRange(),c,f=u.anchorNode;if(f&&e.dom.contains(f.nodeType==1?f:f.parentNode)&&(c=[{node:f,offset:u.anchorOffset}],cc(u)||c.push({node:u.focusNode,offset:u.focusOffset})),qt&&e.input.lastKeyCode===8)for(let k=a;k>r;k--){let w=i.childNodes[k-1],M=w.pmViewDesc;if(w.nodeName=="BR"&&!M){a=k;break}if(!M||M.size)break}let h=e.state.doc,g=e.someProp("domParser")||Rr.fromSchema(e.state.schema),p=h.resolve(o),y=null,v=g.parse(i,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:r,to:a,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:LSe,context:p});if(c&&c[0].pos!=null){let k=c[0].pos,w=c[1]&&c[1].pos;w==null&&(w=k),y={anchor:k+o,head:w+o}}return{doc:v,sel:y,from:o,to:s}}function LSe(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(cn&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||cn&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const $Se=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function HSe(e,t,n,i,r){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let A=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,W=Cp(e,A);if(W&&!e.state.selection.eq(W)){if(qt&&or&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",D=>D(e,Ga(13,"Enter"))))return;let $=e.state.tr.setSelection(W);A=="pointer"?$.setMeta("pointer",!0):A=="key"&&$.scrollIntoView(),a&&$.setMeta("composition",a),e.dispatch($)}return}let o=e.state.doc.resolve(t),s=o.sharedDepth(n);t=o.before(s+1),n=e.state.doc.resolve(n).after(s+1);let u=e.state.selection,c=zSe(e,t,n),f=e.state.doc,h=f.slice(c.from,c.to),g,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(g=e.state.selection.to,p="end"):(g=e.state.selection.from,p="start"),e.input.lastKeyCode=null;let y=VSe(h.content,c.doc.content,c.from,g,p);if(y&&e.input.domChangeCount++,(is&&e.input.lastIOSEnter>Date.now()-225||or)&&r.some(A=>A.nodeType==1&&!$Se.test(A.nodeName))&&(!y||y.endA>=y.endB)&&e.someProp("handleKeyDown",A=>A(e,Ga(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!y)if(i&&u instanceof Ce&&!u.empty&&u.$head.sameParent(u.$anchor)&&!e.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))y={start:u.from,endA:u.to,endB:u.to};else{if(c.sel){let A=A6(e,e.state.doc,c.sel);if(A&&!A.eq(e.state.selection)){let W=e.state.tr.setSelection(A);a&&W.setMeta("composition",a),e.dispatch(W)}}return}e.state.selection.from<e.state.selection.to&&y.start==y.endB&&e.state.selection instanceof Ce&&(y.start>e.state.selection.from&&y.start<=e.state.selection.from+2&&e.state.selection.from>=c.from?y.start=e.state.selection.from:y.endA<e.state.selection.to&&y.endA>=e.state.selection.to-2&&e.state.selection.to<=c.to&&(y.endB+=e.state.selection.to-y.endA,y.endA=e.state.selection.to)),xn&&Yr<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>c.from&&c.doc.textBetween(y.start-c.from-1,y.start-c.from+1)==" "&&(y.start--,y.endA--,y.endB--);let v=c.doc.resolveNoCache(y.start-c.from),k=c.doc.resolveNoCache(y.endB-c.from),w=f.resolve(y.start),M=v.sameParent(k)&&v.parent.inlineContent&&w.end()>=y.endA;if((is&&e.input.lastIOSEnter>Date.now()-225&&(!M||r.some(A=>A.nodeName=="DIV"||A.nodeName=="P"))||!M&&v.pos<c.doc.content.size&&(!v.sameParent(k)||!v.parent.inlineContent)&&v.pos<k.pos&&!/\S/.test(c.doc.textBetween(v.pos,k.pos,"","")))&&e.someProp("handleKeyDown",A=>A(e,Ga(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>y.start&&BSe(f,y.start,y.endA,v,k)&&e.someProp("handleKeyDown",A=>A(e,Ga(8,"Backspace")))){or&&qt&&e.domObserver.suppressSelectionUpdates();return}qt&&y.endB==y.start&&(e.input.lastChromeDelete=Date.now()),or&&!M&&v.start()!=k.start()&&k.parentOffset==0&&v.depth==k.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==y.endA&&(y.endB-=2,k=c.doc.resolveNoCache(y.endB-c.from),setTimeout(()=>{e.someProp("handleKeyDown",function(A){return A(e,Ga(13,"Enter"))})},20));let x=y.start,S=y.endA,E=A=>{let W=A||e.state.tr.replace(x,S,c.doc.slice(y.start-c.from,y.endB-c.from));if(c.sel){let $=A6(e,W.doc,c.sel);$&&!(qt&&e.composing&&$.empty&&(y.start!=y.endB||e.input.lastChromeDelete<Date.now()-100)&&($.head==x||$.head==W.mapping.map(S)-1)||xn&&$.empty&&$.head==x)&&W.setSelection($)}return a&&W.setMeta("composition",a),W.scrollIntoView()},I;if(M){if(v.pos==k.pos){xn&&Yr<=11&&v.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>lr(e),20));let A=E(e.state.tr.delete(x,S)),W=f.resolve(y.start).marksAcross(f.resolve(y.endA));W&&A.ensureMarks(W),e.dispatch(A)}else if(y.endA==y.endB&&(I=RSe(v.parent.content.cut(v.parentOffset,k.parentOffset),w.parent.content.cut(w.parentOffset,y.endA-w.start())))){let A=E(e.state.tr);I.type=="add"?A.addMark(x,S,I.mark):A.removeMark(x,S,I.mark),e.dispatch(A)}else if(v.parent.child(v.index()).isText&&v.index()==k.index()-(k.textOffset?0:1)){let A=v.parent.textBetween(v.parentOffset,k.parentOffset),W=()=>E(e.state.tr.insertText(A,x,S));e.someProp("handleTextInput",$=>$(e,x,S,A,W))||e.dispatch(W())}}else e.dispatch(E())}function A6(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Sp(e,t.resolve(n.anchor),t.resolve(n.head))}function RSe(e,t){let n=e.firstChild.marks,i=t.firstChild.marks,r=n,a=i,o,s,u;for(let f=0;f<i.length;f++)r=i[f].removeFromSet(r);for(let f=0;f<n.length;f++)a=n[f].removeFromSet(a);if(r.length==1&&a.length==0)s=r[0],o="add",u=f=>f.mark(s.addToSet(f.marks));else if(r.length==0&&a.length==1)s=a[0],o="remove",u=f=>f.mark(s.removeFromSet(f.marks));else return null;let c=[];for(let f=0;f<t.childCount;f++)c.push(u(t.child(f)));if(te.from(c).eq(e))return{mark:s,type:o}}function BSe(e,t,n,i,r){if(n-t<=r.pos-i.pos||Lp(i,!0,!1)<r.pos)return!1;let a=e.resolve(t);if(!i.parent.isTextblock){let s=a.nodeAfter;return s!=null&&n==t+s.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=e.resolve(Lp(a,!0,!0));return!o.parent.isTextblock||o.pos>n||Lp(o,!0,!1)<n?!1:i.parent.content.cut(i.parentOffset).eq(o.parent.content)}function Lp(e,t,n){let i=e.depth,r=t?e.end():e.pos;for(;i>0&&(t||e.indexAfter(i)==e.node(i).childCount);)i--,r++,t=!1;if(n){let a=e.node(i).maybeChild(e.indexAfter(i));for(;a&&!a.isLeaf;)a=a.firstChild,r++}return r}function VSe(e,t,n,i,r){let a=e.findDiffStart(t,n);if(a==null)return null;let{a:o,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(r=="end"){let u=Math.max(0,a-Math.min(o,s));i-=o+u-a}if(o<a&&e.size<t.size){let u=i<=a&&i>=o?a-i:0;a-=u,a&&a<t.size&&D6(t.textBetween(a-1,a+1))&&(a+=u?1:-1),s=a+(s-o),o=a}else if(s<a){let u=i<=a&&i>=s?a-i:0;a-=u,a&&a<e.size&&D6(e.textBetween(a-1,a+1))&&(a+=u?1:-1),o=a+(o-s),s=a}return{start:a,endA:o,endB:s}}function D6(e){if(e.length!=2)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class N6{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new lSe,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(z6),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=W6(this),I6(this),this.nodeViews=O6(this),this.docView=B3(this.state.doc,j6(this),zp(this),this.dom,this),this.domObserver=new jSe(this,(i,r,a,o)=>HSe(this,i,r,a,o)),this.domObserver.start(),uSe(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&Dp(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(z6),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let i in this._props)n[i]=this._props[i];n.state=this.state;for(let i in t)n[i]=t[i];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var i;let r=this.state,a=!1,o=!1;t.storedMarks&&this.composing&&(w6(this),o=!0),this.state=t;let s=r.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=O6(this);USe(p,this.nodeViews)&&(this.nodeViews=p,a=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&Dp(this),this.editable=W6(this),I6(this);let u=zp(this),c=j6(this),f=r.plugins!=t.plugins&&!r.doc.eq(t.doc)?"reset":t.scrollToSelection>r.scrollToSelection?"to selection":"preserve",h=a||!this.docView.matchesNode(t.doc,c,u);(h||!t.selection.eq(r.selection))&&(o=!0);let g=f=="preserve"&&o&&this.dom.style.overflowAnchor==null&&Cxe(this);if(o){this.domObserver.stop();let p=h&&(xn||qt)&&!this.composing&&!r.selection.empty&&!t.selection.empty&&FSe(r.selection,t.selection);if(h){let y=qt?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=MSe(this)),(a||!this.docView.update(t.doc,c,u,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=B3(t.doc,c,u,this.dom,this)),y&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Xxe(this))?lr(this,p):(J3(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((i=this.dragging)===null||i===void 0)&&i.node&&!r.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,r),f=="reset"?this.dom.scrollTop=0:f=="to selection"?this.scrollToSelection():g&&xxe(g)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!(!t||!this.dom.contains(t.nodeType==1?t:t.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof be){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&E3(this,n.getBoundingClientRect(),t)}else E3(this,this.coordsAtPos(this.state.selection.head,1),t)}}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n];i.spec.view&&this.pluginViews.push(i.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let i=this.state.plugins[n];i.spec.view&&this.pluginViews.push(i.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let i=this.pluginViews[n];i.update&&i.update(this,t)}}updateDraggedNode(t,n){let i=t.node,r=-1;if(this.state.doc.nodeAt(i.from)==i.node)r=i.from;else{let a=i.from+(this.state.doc.content.size-n.doc.content.size);(a>0&&this.state.doc.nodeAt(a))==i.node&&(r=a)}this.dragging=new k6(t.slice,t.move,r<0?void 0:be.create(this.state.doc,r))}someProp(t,n){let i=this._props&&this._props[t],r;if(i!=null&&(r=n?n(i):i))return r;for(let o=0;o<this.directPlugins.length;o++){let s=this.directPlugins[o].props[t];if(s!=null&&(r=n?n(s):s))return r}let a=this.state.plugins;if(a)for(let o=0;o<a.length;o++){let s=a[o].props[t];if(s!=null&&(r=n?n(s):s))return r}}hasFocus(){if(xn){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if(t.contentEditable=="false")return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&Sxe(this.dom),lr(this),this.domObserver.start()}get root(){let t=this._root;if(t==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return Axe(this,t)}coordsAtPos(t,n=1){return W3(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,i=-1){let r=this.docView.posFromDOM(t,n,i);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(t,n){return Wxe(this,n||this.state,t)}pasteHTML(t,n){return Hl(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return Hl(this,t,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(t){return Pp(this,t)}destroy(){this.docView&&(dSe(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],zp(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,fxe())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return fSe(this,t)}domSelectionRange(){let t=this.domSelection();return t?cn&&this.root.nodeType===11&&yxe(this.dom.ownerDocument)==this.dom&&WSe(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}N6.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function j6(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let i in n)i=="class"?t.class+=" "+n[i]:i=="style"?t.style=(t.style?t.style+";":"")+n[i]:!t[i]&&i!="contenteditable"&&i!="nodeName"&&(t[i]=String(n[i]))}),t.translate||(t.translate="no"),[mn.node(0,e.state.doc.content.size,t)]}function I6(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:mn.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function W6(e){return!e.someProp("editable",t=>t(e.state)===!1)}function FSe(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function O6(e){let t=Object.create(null);function n(i){for(let r in i)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=i[r])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function USe(e,t){let n=0,i=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let r in t)i++;return n!=i}function z6(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Zr={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},wc={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},YSe=typeof navigator<"u"&&/Mac/.test(navigator.platform),XSe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),$t=0;$t<10;$t++)Zr[48+$t]=Zr[96+$t]=String($t);for(var $t=1;$t<=24;$t++)Zr[$t+111]="F"+$t;for(var $t=65;$t<=90;$t++)Zr[$t]=String.fromCharCode($t+32),wc[$t]=String.fromCharCode($t);for(var $p in Zr)wc.hasOwnProperty($p)||(wc[$p]=Zr[$p]);function qSe(e){var t=YSe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||XSe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?wc:Zr)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const GSe=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),KSe=typeof navigator<"u"&&/Win/.test(navigator.platform);function QSe(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let i,r,a,o;for(let s=0;s<t.length-1;s++){let u=t[s];if(/^(cmd|meta|m)$/i.test(u))o=!0;else if(/^a(lt)?$/i.test(u))i=!0;else if(/^(c|ctrl|control)$/i.test(u))r=!0;else if(/^s(hift)?$/i.test(u))a=!0;else if(/^mod$/i.test(u))GSe?o=!0:r=!0;else throw new Error("Unrecognized modifier name: "+u)}return i&&(n="Alt-"+n),r&&(n="Ctrl-"+n),o&&(n="Meta-"+n),a&&(n="Shift-"+n),n}function JSe(e){let t=Object.create(null);for(let n in e)t[QSe(n)]=e[n];return t}function Hp(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function ZSe(e){return new ct({props:{handleKeyDown:L6(e)}})}function L6(e){let t=JSe(e);return function(n,i){let r=qSe(i),a,o=t[Hp(r,i)];if(o&&o(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(i.shiftKey){let s=t[Hp(r,i,!1)];if(s&&s(n.state,n.dispatch,n))return!0}if((i.altKey||i.metaKey||i.ctrlKey)&&!(KSe&&i.ctrlKey&&i.altKey)&&(a=Zr[i.keyCode])&&a!=r){let s=t[Hp(a,i)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}const e_e=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function $6(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const t_e=(e,t,n)=>{let i=$6(e,n);if(!i)return!1;let r=Rp(i);if(!r){let o=i.blockRange(),s=o&&Ko(o);return s==null?!1:(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}let a=r.nodeBefore;if(V6(e,r,t,-1))return!0;if(i.parent.content.size==0&&(us(a,"end")||be.isSelectable(a)))for(let o=i.depth;;o--){let s=lc(e.doc,i.before(o),i.after(o),le.empty);if(s&&s.slice.size<s.to-s.from){if(t){let u=e.tr.step(s);u.setSelection(us(a,"end")?Pe.findFrom(u.doc.resolve(u.mapping.map(r.pos,-1)),-1):be.create(u.doc,r.pos-a.nodeSize)),t(u.scrollIntoView())}return!0}if(o==1||i.node(o-1).childCount>1)break}return a.isAtom&&r.depth==i.depth-1?(t&&t(e.tr.delete(r.pos-a.nodeSize,r.pos).scrollIntoView()),!0):!1},n_e=(e,t,n)=>{let i=$6(e,n);if(!i)return!1;let r=Rp(i);return r?H6(e,r,t):!1},i_e=(e,t,n)=>{let i=R6(e,n);if(!i)return!1;let r=Bp(i);return r?H6(e,r,t):!1};function H6(e,t,n){let i=t.nodeBefore,r=i,a=t.pos-1;for(;!r.isTextblock;a--){if(r.type.spec.isolating)return!1;let f=r.lastChild;if(!f)return!1;r=f}let o=t.nodeAfter,s=o,u=t.pos+1;for(;!s.isTextblock;u++){if(s.type.spec.isolating)return!1;let f=s.firstChild;if(!f)return!1;s=f}let c=lc(e.doc,a,u,le.empty);if(!c||c.from!=a||c instanceof Dt&&c.slice.size>=u-a)return!1;if(n){let f=e.tr.step(c);f.setSelection(Ce.create(f.doc,a)),n(f.scrollIntoView())}return!0}function us(e,t,n=!1){for(let i=e;i;i=t=="start"?i.firstChild:i.lastChild){if(i.isTextblock)return!0;if(n&&i.childCount!=1)return!1}return!1}const r_e=(e,t,n)=>{let{$head:i,empty:r}=e.selection,a=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):i.parentOffset>0)return!1;a=Rp(i)}let o=a&&a.nodeBefore;return!o||!be.isSelectable(o)?!1:(t&&t(e.tr.setSelection(be.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function Rp(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function R6(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const a_e=(e,t,n)=>{let i=R6(e,n);if(!i)return!1;let r=Bp(i);if(!r)return!1;let a=r.nodeAfter;if(V6(e,r,t,1))return!0;if(i.parent.content.size==0&&(us(a,"start")||be.isSelectable(a))){let o=lc(e.doc,i.before(),i.after(),le.empty);if(o&&o.slice.size<o.to-o.from){if(t){let s=e.tr.step(o);s.setSelection(us(a,"start")?Pe.findFrom(s.doc.resolve(s.mapping.map(r.pos)),1):be.create(s.doc,s.mapping.map(r.pos))),t(s.scrollIntoView())}return!0}}return a.isAtom&&r.depth==i.depth-1?(t&&t(e.tr.delete(r.pos,r.pos+a.nodeSize).scrollIntoView()),!0):!1},o_e=(e,t,n)=>{let{$head:i,empty:r}=e.selection,a=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size)return!1;a=Bp(i)}let o=a&&a.nodeAfter;return!o||!be.isSelectable(o)?!1:(t&&t(e.tr.setSelection(be.create(e.doc,a.pos)).scrollIntoView()),!0)};function Bp(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const s_e=(e,t)=>{let n=e.selection,i=n instanceof be,r;if(i){if(n.node.isTextblock||!Fr(e.doc,n.from))return!1;r=n.from}else if(r=sc(e.doc,n.from,-1),r==null)return!1;if(t){let a=e.tr.join(r);i&&a.setSelection(be.create(a.doc,r-e.doc.resolve(r).nodeBefore.nodeSize)),t(a.scrollIntoView())}return!0},l_e=(e,t)=>{let n=e.selection,i;if(n instanceof be){if(n.node.isTextblock||!Fr(e.doc,n.to))return!1;i=n.to}else if(i=sc(e.doc,n.to,1),i==null)return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},u_e=(e,t)=>{let{$from:n,$to:i}=e.selection,r=n.blockRange(i),a=r&&Ko(r);return a==null?!1:(t&&t(e.tr.lift(r,a).scrollIntoView()),!0)},d_e=(e,t)=>{let{$head:n,$anchor:i}=e.selection;return!n.parent.type.spec.code||!n.sameParent(i)?!1:(t&&t(e.tr.insertText(`
|
|
1305
|
+
`).scrollIntoView()),!0)};function B6(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const c_e=(e,t)=>{let{$head:n,$anchor:i}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(i))return!1;let r=n.node(-1),a=n.indexAfter(-1),o=B6(r.contentMatchAt(a));if(!o||!r.canReplaceWith(a,a,o))return!1;if(t){let s=n.after(),u=e.tr.replaceWith(s,s,o.createAndFill());u.setSelection(Pe.near(u.doc.resolve(s),1)),t(u.scrollIntoView())}return!0},f_e=(e,t)=>{let n=e.selection,{$from:i,$to:r}=n;if(n instanceof qn||i.parent.inlineContent||r.parent.inlineContent)return!1;let a=B6(r.parent.contentMatchAt(r.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let o=(!i.parentOffset&&r.index()<r.parent.childCount?i:r).pos,s=e.tr.insert(o,a.createAndFill());s.setSelection(Ce.create(s.doc,o+1)),t(s.scrollIntoView())}return!0},h_e=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let a=n.before();if(Qo(e.doc,a))return t&&t(e.tr.split(a).scrollIntoView()),!0}let i=n.blockRange(),r=i&&Ko(i);return r==null?!1:(t&&t(e.tr.lift(i,r).scrollIntoView()),!0)},m_e=(e,t)=>{let{$from:n,to:i}=e.selection,r,a=n.sharedDepth(i);return a==0?!1:(r=n.before(a),t&&t(e.tr.setSelection(be.create(e.doc,r))),!0)};function p_e(e,t,n){let i=t.nodeBefore,r=t.nodeAfter,a=t.index();return!i||!r||!i.type.compatibleContent(r.type)?!1:!i.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(r.isTextblock||Fr(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function V6(e,t,n,i){let r=t.nodeBefore,a=t.nodeAfter,o,s,u=r.type.spec.isolating||a.type.spec.isolating;if(!u&&p_e(e,t,n))return!0;let c=!u&&t.parent.canReplace(t.index(),t.index()+1);if(c&&(o=(s=r.contentMatchAt(r.childCount)).findWrapping(a.type))&&s.matchType(o[0]||a.type).validEnd){if(n){let p=t.pos+a.nodeSize,y=te.empty;for(let w=o.length-1;w>=0;w--)y=te.from(o[w].create(null,y));y=te.from(r.copy(y));let v=e.tr.step(new Nt(t.pos-1,p,t.pos,p,new le(y,1,0),o.length,!0)),k=v.doc.resolve(p+2*o.length);k.nodeAfter&&k.nodeAfter.type==r.type&&Fr(v.doc,k.pos)&&v.join(k.pos),n(v.scrollIntoView())}return!0}let f=a.type.spec.isolating||i>0&&u?null:Pe.findFrom(t,1),h=f&&f.$from.blockRange(f.$to),g=h&&Ko(h);if(g!=null&&g>=t.depth)return n&&n(e.tr.lift(h,g).scrollIntoView()),!0;if(c&&us(a,"start",!0)&&us(r,"end")){let p=r,y=[];for(;y.push(p),!p.isTextblock;)p=p.lastChild;let v=a,k=1;for(;!v.isTextblock;v=v.firstChild)k++;if(p.canReplace(p.childCount,p.childCount,v.content)){if(n){let w=te.empty;for(let x=y.length-1;x>=0;x--)w=te.from(y[x].copy(w));let M=e.tr.step(new Nt(t.pos-y.length,t.pos+a.nodeSize,t.pos+k,t.pos+a.nodeSize-k,new le(w,y.length,0),0,!0));n(M.scrollIntoView())}return!0}}return!1}function F6(e){return function(t,n){let i=t.selection,r=e<0?i.$from:i.$to,a=r.depth;for(;r.node(a).isInline;){if(!a)return!1;a--}return r.node(a).isTextblock?(n&&n(t.tr.setSelection(Ce.create(t.doc,e<0?r.start(a):r.end(a)))),!0):!1}}const g_e=F6(-1),y_e=F6(1);function b_e(e,t=null){return function(n,i){let{$from:r,$to:a}=n.selection,o=r.blockRange(a),s=o&&lp(o,e,t);return s?(i&&i(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function U6(e,t=null){return function(n,i){let r=!1;for(let a=0;a<n.selection.ranges.length&&!r;a++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[a];n.doc.nodesBetween(o,s,(u,c)=>{if(r)return!1;if(!(!u.isTextblock||u.hasMarkup(e,t)))if(u.type==e)r=!0;else{let f=n.doc.resolve(c),h=f.index();r=f.parent.canReplaceWith(h,h+1,e)}})}if(!r)return!1;if(i){let a=n.tr;for(let o=0;o<n.selection.ranges.length;o++){let{$from:{pos:s},$to:{pos:u}}=n.selection.ranges[o];a.setBlockType(s,u,e,t)}i(a.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function w_e(e,t=null){return function(n,i){let{$from:r,$to:a}=n.selection,o=r.blockRange(a);if(!o)return!1;let s=i?n.tr:null;return v_e(s,o,e,t)?(i&&i(s.scrollIntoView()),!0):!1}}function v_e(e,t,n,i=null){let r=!1,a=t,o=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let u=o.resolve(t.start-2);a=new tc(u,u,t.depth),t.endIndex<t.parent.childCount&&(t=new tc(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),r=!0}let s=lp(a,n,i,t);return s?(e&&k_e(e,t,s,r,n),!0):!1}function k_e(e,t,n,i,r){let a=te.empty;for(let f=n.length-1;f>=0;f--)a=te.from(n[f].type.create(n[f].attrs,a));e.step(new Nt(t.start-(i?2:0),t.end,t.start,t.end,new le(a,0,0),n.length,!0));let o=0;for(let f=0;f<n.length;f++)n[f].type==r&&(o=f+1);let s=n.length-o,u=t.start+n.length-(i?2:0),c=t.parent;for(let f=t.startIndex,h=t.endIndex,g=!0;f<h;f++,g=!1)!g&&Qo(e.doc,u,s)&&(e.split(u,s),u+=2*s),u+=c.child(f).nodeSize;return e}function M_e(e){return function(t,n){let{$from:i,$to:r}=t.selection,a=i.blockRange(r,o=>o.childCount>0&&o.firstChild.type==e);return a?n?i.node(a.depth-1).type==e?C_e(t,n,e,a):x_e(t,n,a):!0:!1}}function C_e(e,t,n,i){let r=e.tr,a=i.end,o=i.$to.end(i.depth);a<o&&(r.step(new Nt(a-1,o,a,o,new le(te.from(n.create(null,i.parent.copy())),1,0),1,!0)),i=new tc(r.doc.resolve(i.$from.pos),r.doc.resolve(o),i.depth));const s=Ko(i);if(s==null)return!1;r.lift(i,s);let u=r.doc.resolve(r.mapping.map(a,-1)-1);return Fr(r.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&r.join(u.pos),t(r.scrollIntoView()),!0}function x_e(e,t,n){let i=e.tr,r=n.parent;for(let p=n.end,y=n.endIndex-1,v=n.startIndex;y>v;y--)p-=r.child(y).nodeSize,i.delete(p-1,p+1);let a=i.doc.resolve(n.start),o=a.nodeAfter;if(i.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,u=n.endIndex==r.childCount,c=a.node(-1),f=a.index(-1);if(!c.canReplace(f+(s?0:1),f+1,o.content.append(u?te.empty:te.from(r))))return!1;let h=a.pos,g=h+o.nodeSize;return i.step(new Nt(h-(s?1:0),g+(u?1:0),h+1,g-1,new le((s?te.empty:te.from(r.copy(te.empty))).append(u?te.empty:te.from(r.copy(te.empty))),s?0:1,u?0:1),s?0:1)),t(i.scrollIntoView()),!0}function S_e(e){return function(t,n){let{$from:i,$to:r}=t.selection,a=i.blockRange(r,c=>c.childCount>0&&c.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,u=s.child(o-1);if(u.type!=e)return!1;if(n){let c=u.lastChild&&u.lastChild.type==s.type,f=te.from(c?e.create():null),h=new le(te.from(e.create(null,te.from(s.type.create(null,f)))),c?3:1,0),g=a.start,p=a.end;n(t.tr.step(new Nt(g-(c?3:1),p,g,p,h,1,!0)).scrollIntoView())}return!0}}var __e=Object.defineProperty,Y6=(e,t)=>{for(var n in t)__e(e,n,{get:t[n],enumerable:!0})};function vc(e){const{state:t,transaction:n}=e;let{selection:i}=n,{doc:r}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return i},get doc(){return r},get tr(){return i=n.selection,r=n.doc,a=n.storedMarks,n}}}var kc=class{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:n}=this,{view:i}=t,{tr:r}=n,a=this.buildProps(r);return Object.fromEntries(Object.entries(e).map(([o,s])=>[o,(...c)=>{const f=s(...c)(a);return!r.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(r),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:n,editor:i,state:r}=this,{view:a}=i,o=[],s=!!e,u=e||r.tr,c=()=>(!s&&t&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(u),o.every(h=>h===!0)),f={...Object.fromEntries(Object.entries(n).map(([h,g])=>[h,(...y)=>{const v=this.buildProps(u,t),k=g(...y)(v);return o.push(k),f}])),run:c};return f}createCan(e){const{rawCommands:t,state:n}=this,i=!1,r=e||n.tr,a=this.buildProps(r,i);return{...Object.fromEntries(Object.entries(t).map(([s,u])=>[s,(...c)=>u(...c)({...a,dispatch:void 0})])),chain:()=>this.createChain(r,i)}}buildProps(e,t=!0){const{rawCommands:n,editor:i,state:r}=this,{view:a}=i,o={tr:e,editor:i,view:a,state:vc({state:r,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([s,u])=>[s,(...c)=>u(...c)(o)]))}};return o}},T_e=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach(i=>i.apply(this,t)),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(i=>i!==t):delete this.callbacks[e]),this}once(e,t){const n=(...i)=>{this.off(e,n),t.apply(this,i)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}};function X6(e,t){const n=new g3(e);return t.forEach(i=>{i.steps.forEach(r=>{n.step(r)})}),n}var q6=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const i=t[n];i.nodeType===3&&i.nodeValue&&/^(\n\s\s|\n)$/.test(i.nodeValue)?e.removeChild(i):i.nodeType===1&&q6(i)}return e};function Mc(e){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,"text/html").body;return q6(n)}function Bl(e,t,n){if(e instanceof Hr||e instanceof te)return e;n={slice:!0,parseOptions:{},...n};const i=typeof e=="object"&&e!==null,r=typeof e=="string";if(i)try{if(Array.isArray(e)&&e.length>0)return te.fromArray(e.map(s=>t.nodeFromJSON(s)));const o=t.nodeFromJSON(e);return n.errorOnInvalidContent&&o.check(),o}catch(a){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:a});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",a),Bl("",t,n)}if(r){if(n.errorOnInvalidContent){let o=!1,s="";const u=new U4({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(o=!0,s=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?Rr.fromSchema(u).parseSlice(Mc(e),n.parseOptions):Rr.fromSchema(u).parse(Mc(e),n.parseOptions),n.errorOnInvalidContent&&o)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${s}`)})}const a=Rr.fromSchema(t);return n.slice?a.parseSlice(Mc(e),n.parseOptions).content:a.parse(Mc(e),n.parseOptions)}return Bl("",t,n)}function Vp(e,t,n={},i={}){return Bl(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:i.errorOnInvalidContent})}function P_e(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function E_e(e,t,n){const i=[];return e.nodesBetween(t.from,t.to,(r,a)=>{n(r)&&i.push({node:r,pos:a})}),i}function A_e(e,t){for(let n=e.depth;n>0;n-=1){const i=e.node(n);if(t(i))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:i}}}function Cc(e){return t=>A_e(t.$from,e)}function ge(e,t,n){return e.config[t]===void 0&&e.parent?ge(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?ge(e.parent,t,n):null}):e.config[t]}function Fp(e){return e.map(t=>{const n={name:t.name,options:t.options,storage:t.storage},i=ge(t,"addExtensions",n);return i?[t,...Fp(i())]:t}).flat(10)}function Up(e,t){const n=Ya.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function G6(e){return typeof e=="function"}function Fe(e,t=void 0,...n){return G6(e)?t?e.bind(t)(...n):e(...n):e}function D_e(e={}){return Object.keys(e).length===0&&e.constructor===Object}function Vl(e){const t=e.filter(r=>r.type==="extension"),n=e.filter(r=>r.type==="node"),i=e.filter(r=>r.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:i}}function K6(e){const t=[],{nodeExtensions:n,markExtensions:i}=Vl(e),r=[...n,...i],a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(o=>{const s={name:o.name,options:o.options,storage:o.storage,extensions:r},u=ge(o,"addGlobalAttributes",s);if(!u)return;u().forEach(f=>{f.types.forEach(h=>{Object.entries(f.attributes).forEach(([g,p])=>{t.push({type:h,name:g,attribute:{...a,...p}})})})})}),r.forEach(o=>{const s={name:o.name,options:o.options,storage:o.storage},u=ge(o,"addAttributes",s);if(!u)return;const c=u();Object.entries(c).forEach(([f,h])=>{const g={...a,...h};typeof(g==null?void 0:g.default)=="function"&&(g.default=g.default()),g!=null&&g.isRequired&&(g==null?void 0:g.default)===void 0&&delete g.default,t.push({type:o.name,name:f,attribute:g})})}),t}function ft(...e){return e.filter(t=>!!t).reduce((t,n)=>{const i={...t};return Object.entries(n).forEach(([r,a])=>{if(!i[r]){i[r]=a;return}if(r==="class"){const s=a?String(a).split(" "):[],u=i[r]?i[r].split(" "):[],c=s.filter(f=>!u.includes(f));i[r]=[...u,...c].join(" ")}else if(r==="style"){const s=a?a.split(";").map(f=>f.trim()).filter(Boolean):[],u=i[r]?i[r].split(";").map(f=>f.trim()).filter(Boolean):[],c=new Map;u.forEach(f=>{const[h,g]=f.split(":").map(p=>p.trim());c.set(h,g)}),s.forEach(f=>{const[h,g]=f.split(":").map(p=>p.trim());c.set(h,g)}),i[r]=Array.from(c.entries()).map(([f,h])=>`${f}: ${h}`).join("; ")}else i[r]=a}),i},{})}function xc(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,i)=>ft(n,i),{})}function N_e(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function Q6(e,t){return"style"in e?e:{...e,getAttrs:n=>{const i=e.getAttrs?e.getAttrs(n):e.attrs;if(i===!1)return!1;const r=t.reduce((a,o)=>{const s=o.attribute.parseHTML?o.attribute.parseHTML(n):N_e(n.getAttribute(o.name));return s==null?a:{...a,[o.name]:s}},{});return{...i,...r}}}}function J6(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&D_e(n)?!1:n!=null))}function j_e(e,t){var n;const i=K6(e),{nodeExtensions:r,markExtensions:a}=Vl(e),o=(n=r.find(c=>ge(c,"topNode")))==null?void 0:n.name,s=Object.fromEntries(r.map(c=>{const f=i.filter(w=>w.type===c.name),h={name:c.name,options:c.options,storage:c.storage,editor:t},g=e.reduce((w,M)=>{const x=ge(M,"extendNodeSchema",h);return{...w,...x?x(c):{}}},{}),p=J6({...g,content:Fe(ge(c,"content",h)),marks:Fe(ge(c,"marks",h)),group:Fe(ge(c,"group",h)),inline:Fe(ge(c,"inline",h)),atom:Fe(ge(c,"atom",h)),selectable:Fe(ge(c,"selectable",h)),draggable:Fe(ge(c,"draggable",h)),code:Fe(ge(c,"code",h)),whitespace:Fe(ge(c,"whitespace",h)),linebreakReplacement:Fe(ge(c,"linebreakReplacement",h)),defining:Fe(ge(c,"defining",h)),isolating:Fe(ge(c,"isolating",h)),attrs:Object.fromEntries(f.map(w=>{var M,x;return[w.name,{default:(M=w==null?void 0:w.attribute)==null?void 0:M.default,validate:(x=w==null?void 0:w.attribute)==null?void 0:x.validate}]}))}),y=Fe(ge(c,"parseHTML",h));y&&(p.parseDOM=y.map(w=>Q6(w,f)));const v=ge(c,"renderHTML",h);v&&(p.toDOM=w=>v({node:w,HTMLAttributes:xc(w,f)}));const k=ge(c,"renderText",h);return k&&(p.toText=k),[c.name,p]})),u=Object.fromEntries(a.map(c=>{const f=i.filter(k=>k.type===c.name),h={name:c.name,options:c.options,storage:c.storage,editor:t},g=e.reduce((k,w)=>{const M=ge(w,"extendMarkSchema",h);return{...k,...M?M(c):{}}},{}),p=J6({...g,inclusive:Fe(ge(c,"inclusive",h)),excludes:Fe(ge(c,"excludes",h)),group:Fe(ge(c,"group",h)),spanning:Fe(ge(c,"spanning",h)),code:Fe(ge(c,"code",h)),attrs:Object.fromEntries(f.map(k=>{var w,M;return[k.name,{default:(w=k==null?void 0:k.attribute)==null?void 0:w.default,validate:(M=k==null?void 0:k.attribute)==null?void 0:M.validate}]}))}),y=Fe(ge(c,"parseHTML",h));y&&(p.parseDOM=y.map(k=>Q6(k,f)));const v=ge(c,"renderHTML",h);return v&&(p.toDOM=k=>v({mark:k,HTMLAttributes:xc(k,f)})),[c.name,p]}));return new U4({topNode:o,nodes:s,marks:u})}function I_e(e){const t=e.filter((n,i)=>e.indexOf(n)!==i);return Array.from(new Set(t))}function Yp(e){return e.sort((n,i)=>{const r=ge(n,"priority")||100,a=ge(i,"priority")||100;return r>a?-1:r<a?1:0})}function Z6(e){const t=Yp(Fp(e)),n=I_e(t.map(i=>i.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),t}function ek(e,t,n){const{from:i,to:r}=t,{blockSeparator:a=`
|
|
1306
1306
|
|
|
1307
1307
|
`,textSerializers:o={}}=n||{};let s="";return e.nodesBetween(i,r,(u,c,f,h)=>{var g;u.isBlock&&c>i&&(s+=a);const p=o==null?void 0:o[u.type.name];if(p)return f&&(s+=p({node:u,pos:c,parent:f,index:h,range:t})),!1;u.isText&&(s+=(g=u==null?void 0:u.text)==null?void 0:g.slice(Math.max(i,c)-c,r-c))}),s}function W_e(e,t){const n={from:0,to:e.content.size};return ek(e,n,t)}function tk(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}function ur(e,t){if(typeof e=="string"){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}function nk(e,t){const n=ur(t,e.schema),{from:i,to:r,empty:a}=e.selection,o=[];a?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(i,r,u=>{o.push(...u.marks)});const s=o.find(u=>u.type.name===n.name);return s?{...s.attrs}:{}}function Mt(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function O_e(e,t){const n=Mt(t,e.schema),{from:i,to:r}=e.selection,a=[];e.doc.nodesBetween(i,r,s=>{a.push(s)});const o=a.reverse().find(s=>s.type.name===n.name);return o?{...o.attrs}:{}}function Sc(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function ik(e,t){const n=Sc(typeof t=="string"?t:t.name,e.schema);return n==="node"?O_e(e,t):n==="mark"?nk(e,t):{}}function z_e(e,t=JSON.stringify){const n={};return e.filter(i=>{const r=t(i);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function L_e(e){const t=z_e(e);return t.length===1?t:t.filter((n,i)=>!t.filter((a,o)=>o!==i).some(a=>n.oldRange.from>=a.oldRange.from&&n.oldRange.to<=a.oldRange.to&&n.newRange.from>=a.newRange.from&&n.newRange.to<=a.newRange.to))}function rk(e){const{mapping:t,steps:n}=e,i=[];return t.maps.forEach((r,a)=>{const o=[];if(r.ranges.length)r.forEach((s,u)=>{o.push({from:s,to:u})});else{const{from:s,to:u}=n[a];if(s===void 0||u===void 0)return;o.push({from:s,to:u})}o.forEach(({from:s,to:u})=>{const c=t.slice(a).map(s,-1),f=t.slice(a).map(u),h=t.invert().map(c,-1),g=t.invert().map(f);i.push({oldRange:{from:h,to:g},newRange:{from:c,to:f}})})}),L_e(i)}function Xp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function _c(e,t,n={strict:!0}){const i=Object.keys(t);return i.length?i.every(r=>n.strict?t[r]===e[r]:Xp(t[r])?t[r].test(e[r]):t[r]===e[r]):!0}function ak(e,t,n={}){return e.find(i=>i.type===t&&_c(Object.fromEntries(Object.keys(n).map(r=>[r,i.attrs[r]])),n))}function ok(e,t,n={}){return!!ak(e,t,n)}function qp(e,t,n){var i;if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if((!r.node||!r.node.marks.some(f=>f.type===t))&&(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(f=>f.type===t)||(n=n||((i=r.node.marks[0])==null?void 0:i.attrs),!ak([...r.node.marks],t,n)))return;let o=r.index,s=e.start()+r.offset,u=o+1,c=s+r.node.nodeSize;for(;o>0&&ok([...e.parent.child(o-1).marks],t,n);)o-=1,s-=e.parent.child(o).nodeSize;for(;u<e.parent.childCount&&ok([...e.parent.child(u).marks],t,n);)c+=e.parent.child(u).nodeSize,u+=1;return{from:s,to:c}}function Gp(e,t,n){const i=[];return e===t?n.resolve(e).marks().forEach(r=>{const a=n.resolve(e),o=qp(a,r.type);o&&i.push({mark:r,...o})}):n.nodesBetween(e,t,(r,a)=>{!r||(r==null?void 0:r.nodeSize)===void 0||i.push(...r.marks.map(o=>({from:a,to:a+r.nodeSize,mark:o})))}),i}var $_e=(e,t,n,i=20)=>{const r=e.doc.resolve(n);let a=i,o=null;for(;a>0&&o===null;){const s=r.node(a);(s==null?void 0:s.type.name)===t?o=s:a-=1}return[o,a]};function Kp(e,t){return t.nodes[e]||t.marks[e]||null}function Tc(e,t,n){return Object.fromEntries(Object.entries(n).filter(([i])=>{const r=e.find(a=>a.type===t&&a.name===i);return r?r.attribute.keepOnSplit:!1}))}var H_e=(e,t=500)=>{let n="";const i=e.parentOffset;return e.parent.nodesBetween(Math.max(0,i-t),i,(r,a,o,s)=>{var u,c;const f=((c=(u=r.type.spec).toText)==null?void 0:c.call(u,{node:r,pos:a,parent:o,index:s}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?f:f.slice(0,Math.max(0,i-a))}),n};function Qp(e,t,n={}){const{empty:i,ranges:r}=e.selection,a=t?ur(t,e.schema):null;if(i)return!!(e.storedMarks||e.selection.$from.marks()).filter(h=>a?a.name===h.type.name:!0).find(h=>_c(h.attrs,n,{strict:!1}));let o=0;const s=[];if(r.forEach(({$from:h,$to:g})=>{const p=h.pos,y=g.pos;e.doc.nodesBetween(p,y,(v,k)=>{if(!v.isText&&!v.marks.length)return;const w=Math.max(p,k),M=Math.min(y,k+v.nodeSize),x=M-w;o+=x,s.push(...v.marks.map(S=>({mark:S,from:w,to:M})))})}),o===0)return!1;const u=s.filter(h=>a?a.name===h.mark.type.name:!0).filter(h=>_c(h.mark.attrs,n,{strict:!1})).reduce((h,g)=>h+g.to-g.from,0),c=s.filter(h=>a?h.mark.type!==a&&h.mark.type.excludes(a):!0).reduce((h,g)=>h+g.to-g.from,0);return(u>0?u+c:u)>=o}function ea(e,t,n={}){const{from:i,to:r,empty:a}=e.selection,o=t?Mt(t,e.schema):null,s=[];e.doc.nodesBetween(i,r,(h,g)=>{if(h.isText)return;const p=Math.max(i,g),y=Math.min(r,g+h.nodeSize);s.push({node:h,from:p,to:y})});const u=r-i,c=s.filter(h=>o?o.name===h.node.type.name:!0).filter(h=>_c(h.node.attrs,n,{strict:!1}));return a?!!c.length:c.reduce((h,g)=>h+g.to-g.from,0)>=u}function R_e(e,t,n={}){if(!t)return ea(e,null,n)||Qp(e,null,n);const i=Sc(t,e.schema);return i==="node"?ea(e,t,n):i==="mark"?Qp(e,t,n):!1}var B_e=(e,t)=>{const{$from:n,$to:i,$anchor:r}=e.selection;if(t){const a=Cc(s=>s.type.name===t)(e.selection);if(!a)return!1;const o=e.doc.resolve(a.pos+1);return r.pos+1===o.end()}return!(i.parentOffset<i.parent.nodeSize-2||n.pos!==i.pos)},V_e=e=>{const{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function sk(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}function lk(e,t){const{nodeExtensions:n}=Vl(t),i=n.find(o=>o.name===e);if(!i)return!1;const r={name:i.name,options:i.options,storage:i.storage},a=Fe(ge(i,"group",r));return typeof a!="string"?!1:a.split(" ").includes("list")}function Pc(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var i;if(n){if(e.type.name==="hardBreak")return!0;if(e.isText)return/^\s*$/m.test((i=e.text)!=null?i:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let r=!0;return e.content.forEach(a=>{r!==!1&&(Pc(a,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function uk(e){return e instanceof be}function dk(e){return e instanceof Ce}function to(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function ck(e,t=null){if(!t)return null;const n=Pe.atStart(e),i=Pe.atEnd(e);if(t==="start"||t===!0)return n;if(t==="end")return i;const r=n.from,a=i.to;return t==="all"?Ce.create(e,to(0,r,a),to(e.content.size,r,a)):Ce.create(e,to(t,r,a),to(t,r,a))}function F_e(e,t,n){const i=e.steps.length-1;if(i<t)return;const r=e.steps[i];if(!(r instanceof Dt||r instanceof Nt))return;const a=e.mapping.maps[i];let o=0;a.forEach((s,u,c,f)=>{o===0&&(o=f)}),e.setSelection(Pe.near(e.doc.resolve(o),n))}var Ec=class{constructor(e){var t;this.find=e.find,this.handler=e.handler,this.undoable=(t=e.undoable)!=null?t:!0}},U_e=(e,t)=>{if(Xp(t))return t.exec(e);const n=t(e);if(!n)return null;const i=[n.text];return i.index=n.index,i.input=e,i.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),i.push(n.replaceWith)),i};function Ac(e){var t;const{editor:n,from:i,to:r,text:a,rules:o,plugin:s}=e,{view:u}=n;if(u.composing)return!1;const c=u.state.doc.resolve(i);if(c.parent.type.spec.code||(t=c.nodeBefore||c.nodeAfter)!=null&&t.marks.find(g=>g.type.spec.code))return!1;let f=!1;const h=H_e(c)+a;return o.forEach(g=>{if(f)return;const p=U_e(h,g.find);if(!p)return;const y=u.state.tr,v=vc({state:u.state,transaction:y}),k={from:i-(p[0].length-a.length),to:r},{commands:w,chain:M,can:x}=new kc({editor:n,state:v});g.handler({state:v,range:k,match:p,commands:w,chain:M,can:x})===null||!y.steps.length||(g.undoable&&y.setMeta(s,{transform:y,from:i,to:r,text:a}),u.dispatch(y),f=!0)}),f}function Y_e(e){const{editor:t,rules:n}=e,i=new ct({state:{init(){return null},apply(r,a,o){const s=r.getMeta(i);if(s)return s;const u=r.getMeta("applyInputRules");return!!u&&setTimeout(()=>{let{text:f}=u;typeof f=="string"?f=f:f=Up(te.from(f),o.schema);const{from:h}=u,g=h+f.length;Ac({editor:t,from:h,to:g,text:f,rules:n,plugin:i})}),r.selectionSet||r.docChanged?null:a}},props:{handleTextInput(r,a,o,s){return Ac({editor:t,from:a,to:o,text:s,rules:n,plugin:i})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:a}=r.state.selection;a&&Ac({editor:t,from:a.pos,to:a.pos,text:"",rules:n,plugin:i})}),!1)},handleKeyDown(r,a){if(a.key!=="Enter")return!1;const{$cursor:o}=r.state.selection;return o?Ac({editor:t,from:o.pos,to:o.pos,text:`
|
|
1308
1308
|
`,rules:n,plugin:i}):!1}},isInputRules:!0});return i}function X_e(e){return Object.prototype.toString.call(e).slice(8,-1)}function Dc(e){return X_e(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function fk(e,t){const n={...e};return Dc(e)&&Dc(t)&&Object.keys(t).forEach(i=>{Dc(t[i])&&Dc(e[i])?n[i]=fk(e[i],t[i]):n[i]=t[i]}),n}var Jp=class{constructor(e={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...Fe(ge(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...Fe(ge(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(e={}){const t=this.extend({...this.config,addOptions:()=>fk(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name="name"in e?e.name:t.parent.name,t}},no=class C8 extends Jp{constructor(){super(...arguments),this.type="mark"}static create(t={}){const n=typeof t=="function"?t():t;return new C8(n)}static handleExit({editor:t,mark:n}){const{tr:i}=t.state,r=t.state.selection.$from;if(r.pos===r.end()){const o=r.marks();if(!!!o.find(c=>(c==null?void 0:c.type.name)===n.name))return!1;const u=o.find(c=>(c==null?void 0:c.type.name)===n.name);return u&&i.removeStoredMark(u),i.insertText(" ",r.pos),t.view.dispatch(i),!0}return!1}configure(t){return super.configure(t)}extend(t){const n=typeof t=="function"?t():t;return super.extend(n)}};function q_e(e){return typeof e=="number"}var G_e=class{constructor(e){this.find=e.find,this.handler=e.handler}},K_e=(e,t,n)=>{if(Xp(t))return[...e.matchAll(t)];const i=t(e,n);return i?i.map(r=>{const a=[r.text];return a.index=r.index,a.input=e,a.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),a.push(r.replaceWith)),a}):[]};function Q_e(e){const{editor:t,state:n,from:i,to:r,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:u,chain:c,can:f}=new kc({editor:t,state:n}),h=[];return n.doc.nodesBetween(i,r,(p,y)=>{var v,k,w,M,x;if((k=(v=p.type)==null?void 0:v.spec)!=null&&k.code||!(p.isText||p.isTextblock||p.isInline))return;const S=(x=(M=(w=p.content)==null?void 0:w.size)!=null?M:p.nodeSize)!=null?x:0,E=Math.max(i,y),I=Math.min(r,y+S);if(E>=I)return;const A=p.isText?p.text||"":p.textBetween(E-y,I-y,void 0,"");K_e(A,a.find,o).forEach($=>{if($.index===void 0)return;const D=E+$.index+1,z=D+$[0].length,H={from:n.tr.mapping.map(D),to:n.tr.mapping.map(z)},X=a.handler({state:n,range:H,match:$,commands:u,chain:c,can:f,pasteEvent:o,dropEvent:s});h.push(X)})}),h.every(p=>p!==null)}var Nc=null,J_e=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData("text/html",e),n};function Z_e(e){const{editor:t,rules:n}=e;let i=null,r=!1,a=!1,o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,s;try{s=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{s=null}const u=({state:f,from:h,to:g,rule:p,pasteEvt:y})=>{const v=f.tr,k=vc({state:f,transaction:v});if(!(!Q_e({editor:t,state:k,from:Math.max(h-1,0),to:g.b-1,rule:p,pasteEvent:y,dropEvent:s})||!v.steps.length)){try{s=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{s=null}return o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,v}};return n.map(f=>new ct({view(h){const g=y=>{var v;i=(v=h.dom.parentElement)!=null&&v.contains(y.target)?h.dom.parentElement:null,i&&(Nc=t)},p=()=>{Nc&&(Nc=null)};return window.addEventListener("dragstart",g),window.addEventListener("dragend",p),{destroy(){window.removeEventListener("dragstart",g),window.removeEventListener("dragend",p)}}},props:{handleDOMEvents:{drop:(h,g)=>{if(a=i===h.dom.parentElement,s=g,!a){const p=Nc;p!=null&&p.isEditable&&setTimeout(()=>{const y=p.state.selection;y&&p.commands.deleteRange({from:y.from,to:y.to})},10)}return!1},paste:(h,g)=>{var p;const y=(p=g.clipboardData)==null?void 0:p.getData("text/html");return o=g,r=!!(y!=null&&y.includes("data-pm-slice")),!1}}},appendTransaction:(h,g,p)=>{const y=h[0],v=y.getMeta("uiEvent")==="paste"&&!r,k=y.getMeta("uiEvent")==="drop"&&!a,w=y.getMeta("applyPasteRules"),M=!!w;if(!v&&!k&&!M)return;if(M){let{text:E}=w;typeof E=="string"?E=E:E=Up(te.from(E),p.schema);const{from:I}=w,A=I+E.length,W=J_e(E);return u({rule:f,state:p,from:I,to:{b:A},pasteEvt:W})}const x=g.doc.content.findDiffStart(p.doc.content),S=g.doc.content.findDiffEnd(p.doc.content);if(!(!q_e(x)||!S||x===S.b))return u({rule:f,state:p,from:x,to:S,pasteEvt:o})}}))}var jc=class{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=Z6(e),this.schema=j_e(this.extensions,t),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{const n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:Kp(t.name,this.schema)},i=ge(t,"addCommands",n);return i?{...e,...i()}:e},{})}get plugins(){const{editor:e}=this;return Yp([...this.extensions].reverse()).flatMap(i=>{const r={name:i.name,options:i.options,storage:this.editor.extensionStorage[i.name],editor:e,type:Kp(i.name,this.schema)},a=[],o=ge(i,"addKeyboardShortcuts",r);let s={};if(i.type==="mark"&&ge(i,"exitable",r)&&(s.ArrowRight=()=>no.handleExit({editor:e,mark:i})),o){const g=Object.fromEntries(Object.entries(o()).map(([p,y])=>[p,()=>y({editor:e})]));s={...s,...g}}const u=ZSe(s);a.push(u);const c=ge(i,"addInputRules",r);if(sk(i,e.options.enableInputRules)&&c){const g=c();if(g&&g.length){const p=Y_e({editor:e,rules:g}),y=Array.isArray(p)?p:[p];a.push(...y)}}const f=ge(i,"addPasteRules",r);if(sk(i,e.options.enablePasteRules)&&f){const g=f();if(g&&g.length){const p=Z_e({editor:e,rules:g});a.push(...p)}}const h=ge(i,"addProseMirrorPlugins",r);if(h){const g=h();a.push(...g)}return a})}get attributes(){return K6(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=Vl(this.extensions);return Object.fromEntries(t.filter(n=>!!ge(n,"addNodeView")).map(n=>{const i=this.attributes.filter(s=>s.type===n.name),r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:Mt(n.name,this.schema)},a=ge(n,"addNodeView",r);if(!a)return[];const o=(s,u,c,f,h)=>{const g=xc(s,i);return a()({node:s,view:u,getPos:c,decorations:f,innerDecorations:h,editor:e,extension:n,HTMLAttributes:g})};return[n.name,o]}))}get markViews(){const{editor:e}=this,{markExtensions:t}=Vl(this.extensions);return Object.fromEntries(t.filter(n=>!!ge(n,"addMarkView")).map(n=>{const i=this.attributes.filter(s=>s.type===n.name),r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:ur(n.name,this.schema)},a=ge(n,"addMarkView",r);if(!a)return[];const o=(s,u,c)=>{const f=xc(s,i);return a()({mark:s,view:u,inline:c,editor:e,extension:n,HTMLAttributes:f,updateAttributes:h=>{mPe(s,e,h)}})};return[n.name,o]}))}setupExtensions(){const e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(t=>[t.name,t.storage])),e.forEach(t=>{var n;const i={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:Kp(t.name,this.schema)};t.type==="mark"&&((n=Fe(ge(t,"keepOnSplit",i)))==null||n)&&this.splittableMarks.push(t.name);const r=ge(t,"onBeforeCreate",i),a=ge(t,"onCreate",i),o=ge(t,"onUpdate",i),s=ge(t,"onSelectionUpdate",i),u=ge(t,"onTransaction",i),c=ge(t,"onFocus",i),f=ge(t,"onBlur",i),h=ge(t,"onDestroy",i);r&&this.editor.on("beforeCreate",r),a&&this.editor.on("create",a),o&&this.editor.on("update",o),s&&this.editor.on("selectionUpdate",s),u&&this.editor.on("transaction",u),c&&this.editor.on("focus",c),f&&this.editor.on("blur",f),h&&this.editor.on("destroy",h)})}};jc.resolve=Z6,jc.sort=Yp,jc.flatten=Fp;var eTe={};Y6(eTe,{ClipboardTextSerializer:()=>hk,Commands:()=>bk,Delete:()=>wk,Drop:()=>vk,Editable:()=>kk,FocusEvents:()=>Ck,Keymap:()=>xk,Paste:()=>Sk,Tabindex:()=>_k,focusEventsPluginKey:()=>Mk});var Ct=class x8 extends Jp{constructor(){super(...arguments),this.type="extension"}static create(t={}){const n=typeof t=="function"?t():t;return new x8(n)}configure(t){return super.configure(t)}extend(t){const n=typeof t=="function"?t():t;return super.extend(n)}},hk=Ct.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new ct({key:new jt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:i,selection:r}=t,{ranges:a}=r,o=Math.min(...a.map(f=>f.$from.pos)),s=Math.max(...a.map(f=>f.$to.pos)),u=tk(n);return ek(i,{from:o,to:s},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:u})}}})]}}),mk={};Y6(mk,{blur:()=>tTe,clearContent:()=>nTe,clearNodes:()=>iTe,command:()=>rTe,createParagraphNear:()=>aTe,cut:()=>oTe,deleteCurrentNode:()=>sTe,deleteNode:()=>lTe,deleteRange:()=>uTe,deleteSelection:()=>dTe,enter:()=>cTe,exitCode:()=>fTe,extendMarkRange:()=>hTe,first:()=>mTe,focus:()=>gTe,forEach:()=>yTe,insertContent:()=>bTe,insertContentAt:()=>vTe,joinBackward:()=>CTe,joinDown:()=>MTe,joinForward:()=>xTe,joinItemBackward:()=>STe,joinItemForward:()=>_Te,joinTextblockBackward:()=>TTe,joinTextblockForward:()=>PTe,joinUp:()=>kTe,keyboardShortcut:()=>ATe,lift:()=>DTe,liftEmptyBlock:()=>NTe,liftListItem:()=>jTe,newlineInCode:()=>ITe,resetAttributes:()=>WTe,scrollIntoView:()=>OTe,selectAll:()=>zTe,selectNodeBackward:()=>LTe,selectNodeForward:()=>$Te,selectParentNode:()=>HTe,selectTextblockEnd:()=>RTe,selectTextblockStart:()=>BTe,setContent:()=>VTe,setMark:()=>UTe,setMeta:()=>YTe,setNode:()=>XTe,setNodeSelection:()=>qTe,setTextSelection:()=>GTe,sinkListItem:()=>KTe,splitBlock:()=>QTe,splitListItem:()=>JTe,toggleList:()=>ZTe,toggleMark:()=>ePe,toggleNode:()=>tPe,toggleWrap:()=>nPe,undoInputRule:()=>iPe,unsetAllMarks:()=>rPe,unsetMark:()=>aPe,updateAttributes:()=>oPe,wrapIn:()=>sPe,wrapInList:()=>lPe});var tTe=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window==null?void 0:window.getSelection())==null||n.removeAllRanges())}),!0),nTe=(e=!0)=>({commands:t})=>t.setContent("",{emitUpdate:e}),iTe=()=>({state:e,tr:t,dispatch:n})=>{const{selection:i}=t,{ranges:r}=i;return n&&r.forEach(({$from:a,$to:o})=>{e.doc.nodesBetween(a.pos,o.pos,(s,u)=>{if(s.type.isText)return;const{doc:c,mapping:f}=t,h=c.resolve(f.map(u)),g=c.resolve(f.map(u+s.nodeSize)),p=h.blockRange(g);if(!p)return;const y=Ko(p);if(s.type.isTextblock){const{defaultType:v}=h.parent.contentMatchAt(h.index());t.setNodeMarkup(p.start,v)}(y||y===0)&&t.lift(p,y)})}),!0},rTe=e=>t=>e(t),aTe=()=>({state:e,dispatch:t})=>f_e(e,t),oTe=(e,t)=>({editor:n,tr:i})=>{const{state:r}=n,a=r.doc.slice(e.from,e.to);i.deleteRange(e.from,e.to);const o=i.mapping.map(t);return i.insert(o,a.content),i.setSelection(new Ce(i.doc.resolve(Math.max(o-1,0)))),!0},sTe=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,i=n.$anchor.node();if(i.content.size>0)return!1;const r=e.selection.$anchor;for(let a=r.depth;a>0;a-=1)if(r.node(a).type===i.type){if(t){const s=r.before(a),u=r.after(a);e.delete(s,u).scrollIntoView()}return!0}return!1},lTe=e=>({tr:t,state:n,dispatch:i})=>{const r=Mt(e,n.schema),a=t.selection.$anchor;for(let o=a.depth;o>0;o-=1)if(a.node(o).type===r){if(i){const u=a.before(o),c=a.after(o);t.delete(u,c).scrollIntoView()}return!0}return!1},uTe=e=>({tr:t,dispatch:n})=>{const{from:i,to:r}=e;return n&&t.delete(i,r),!0},dTe=()=>({state:e,dispatch:t})=>e_e(e,t),cTe=()=>({commands:e})=>e.keyboardShortcut("Enter"),fTe=()=>({state:e,dispatch:t})=>c_e(e,t),hTe=(e,t={})=>({tr:n,state:i,dispatch:r})=>{const a=ur(e,i.schema),{doc:o,selection:s}=n,{$from:u,from:c,to:f}=s;if(r){const h=qp(u,a,t);if(h&&h.from<=c&&h.to>=f){const g=Ce.create(o,h.from,h.to);n.setSelection(g)}}return!0},mTe=e=>t=>{const n=typeof e=="function"?e(t):e;for(let i=0;i<n.length;i+=1)if(n[i](t))return!0;return!1};function pTe(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function Zp(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}var gTe=(e=null,t={})=>({editor:n,view:i,tr:r,dispatch:a})=>{t={scrollIntoView:!0,...t};const o=()=>{(Zp()||pTe())&&i.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(i.focus(),t!=null&&t.scrollIntoView&&n.commands.scrollIntoView())})};if(i.hasFocus()&&e===null||e===!1)return!0;if(a&&e===null&&!dk(n.state.selection))return o(),!0;const s=ck(r.doc,e)||n.state.selection,u=n.state.selection.eq(s);return a&&(u||r.setSelection(s),u&&r.storedMarks&&r.setStoredMarks(r.storedMarks),o()),!0},yTe=(e,t)=>n=>e.every((i,r)=>t(i,{...n,index:r})),bTe=(e,t)=>({tr:n,commands:i})=>i.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),wTe=e=>!("type"in e),vTe=(e,t,n)=>({tr:i,dispatch:r,editor:a})=>{var o;if(r){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let s;const u=k=>{a.emit("contentError",{editor:a,error:k,disableCollaboration:()=>{"collaboration"in a.storage&&typeof a.storage.collaboration=="object"&&a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{Bl(t,a.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(k){u(k)}try{s=Bl(t,a.schema,{parseOptions:c,errorOnInvalidContent:(o=n.errorOnInvalidContent)!=null?o:a.options.enableContentCheck})}catch(k){return u(k),!1}let{from:f,to:h}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},g=!0,p=!0;if((wTe(s)?s:[s]).forEach(k=>{k.check(),g=g?k.isText&&k.marks.length===0:!1,p=p?k.isBlock:!1}),f===h&&p){const{parent:k}=i.doc.resolve(f);k.isTextblock&&!k.type.spec.code&&!k.childCount&&(f-=1,h+=1)}let v;if(g){if(Array.isArray(t))v=t.map(k=>k.text||"").join("");else if(t instanceof te){let k="";t.forEach(w=>{w.text&&(k+=w.text)}),v=k}else typeof t=="object"&&t&&t.text?v=t.text:v=t;i.insertText(v,f,h)}else{v=s;const k=i.doc.resolve(f),w=k.node(),M=k.parentOffset===0,x=w.isText||w.isTextblock,S=w.content.size>0;M&&x&&S&&(f=Math.max(0,f-1)),i.replaceWith(f,h,v)}n.updateSelection&&F_e(i,i.steps.length-1,-1),n.applyInputRules&&i.setMeta("applyInputRules",{from:f,text:v}),n.applyPasteRules&&i.setMeta("applyPasteRules",{from:f,text:v})}return!0},kTe=()=>({state:e,dispatch:t})=>s_e(e,t),MTe=()=>({state:e,dispatch:t})=>l_e(e,t),CTe=()=>({state:e,dispatch:t})=>t_e(e,t),xTe=()=>({state:e,dispatch:t})=>a_e(e,t),STe=()=>({state:e,dispatch:t,tr:n})=>{try{const i=sc(e.doc,e.selection.$from.pos,-1);return i==null?!1:(n.join(i,2),t&&t(n),!0)}catch{return!1}},_Te=()=>({state:e,dispatch:t,tr:n})=>{try{const i=sc(e.doc,e.selection.$from.pos,1);return i==null?!1:(n.join(i,2),t&&t(n),!0)}catch{return!1}},TTe=()=>({state:e,dispatch:t})=>n_e(e,t),PTe=()=>({state:e,dispatch:t})=>i_e(e,t);function pk(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function ETe(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let i,r,a,o;for(let s=0;s<t.length-1;s+=1){const u=t[s];if(/^(cmd|meta|m)$/i.test(u))o=!0;else if(/^a(lt)?$/i.test(u))i=!0;else if(/^(c|ctrl|control)$/i.test(u))r=!0;else if(/^s(hift)?$/i.test(u))a=!0;else if(/^mod$/i.test(u))Zp()||pk()?o=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${u}`)}return i&&(n=`Alt-${n}`),r&&(n=`Ctrl-${n}`),o&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}var ATe=e=>({editor:t,view:n,tr:i,dispatch:r})=>{const a=ETe(e).split(/-(?!$)/),o=a.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),s=new KeyboardEvent("keydown",{key:o==="Space"?" ":o,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),u=t.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,s))});return u==null||u.steps.forEach(c=>{const f=c.map(i.mapping);f&&r&&i.maybeStep(f)}),!0},DTe=(e,t={})=>({state:n,dispatch:i})=>{const r=Mt(e,n.schema);return ea(n,r,t)?u_e(n,i):!1},NTe=()=>({state:e,dispatch:t})=>h_e(e,t),jTe=e=>({state:t,dispatch:n})=>{const i=Mt(e,t.schema);return M_e(i)(t,n)},ITe=()=>({state:e,dispatch:t})=>d_e(e,t);function gk(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((i,r)=>(n.includes(r)||(i[r]=e[r]),i),{})}var WTe=(e,t)=>({tr:n,state:i,dispatch:r})=>{let a=null,o=null;const s=Sc(typeof e=="string"?e:e.name,i.schema);return s?(s==="node"&&(a=Mt(e,i.schema)),s==="mark"&&(o=ur(e,i.schema)),r&&n.selection.ranges.forEach(u=>{i.doc.nodesBetween(u.$from.pos,u.$to.pos,(c,f)=>{a&&a===c.type&&n.setNodeMarkup(f,void 0,gk(c.attrs,t)),o&&c.marks.length&&c.marks.forEach(h=>{o===h.type&&n.addMark(f,f+c.nodeSize,o.create(gk(h.attrs,t)))})})}),!0):!1},OTe=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),zTe=()=>({tr:e,dispatch:t})=>{if(t){const n=new qn(e.doc);e.setSelection(n)}return!0},LTe=()=>({state:e,dispatch:t})=>r_e(e,t),$Te=()=>({state:e,dispatch:t})=>o_e(e,t),HTe=()=>({state:e,dispatch:t})=>m_e(e,t),RTe=()=>({state:e,dispatch:t})=>y_e(e,t),BTe=()=>({state:e,dispatch:t})=>g_e(e,t),VTe=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:i={}}={})=>({editor:r,tr:a,dispatch:o,commands:s})=>{const{doc:u}=a;if(i.preserveWhitespace!=="full"){const c=Vp(e,r.schema,i,{errorOnInvalidContent:t??r.options.enableContentCheck});return o&&a.replaceWith(0,u.content.size,c).setMeta("preventUpdate",!n),!0}return o&&a.setMeta("preventUpdate",!n),s.insertContentAt({from:0,to:u.content.size},e,{parseOptions:i,errorOnInvalidContent:t??r.options.enableContentCheck})};function FTe(e,t,n){var i;const{selection:r}=t;let a=null;if(dk(r)&&(a=r.$cursor),a){const s=(i=e.storedMarks)!=null?i:a.marks();return a.parent.type.allowsMarkType(n)&&(!!n.isInSet(s)||!s.some(c=>c.type.excludes(n)))}const{ranges:o}=r;return o.some(({$from:s,$to:u})=>{let c=s.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(s.pos,u.pos,(f,h,g)=>{if(c)return!1;if(f.isInline){const p=!g||g.type.allowsMarkType(n),y=!!n.isInSet(f.marks)||!f.marks.some(v=>v.type.excludes(n));c=p&&y}return!c}),c})}var UTe=(e,t={})=>({tr:n,state:i,dispatch:r})=>{const{selection:a}=n,{empty:o,ranges:s}=a,u=ur(e,i.schema);if(r)if(o){const c=nk(i,u);n.addStoredMark(u.create({...c,...t}))}else s.forEach(c=>{const f=c.$from.pos,h=c.$to.pos;i.doc.nodesBetween(f,h,(g,p)=>{const y=Math.max(p,f),v=Math.min(p+g.nodeSize,h);g.marks.find(w=>w.type===u)?g.marks.forEach(w=>{u===w.type&&n.addMark(y,v,u.create({...w.attrs,...t}))}):n.addMark(y,v,u.create(t))})});return FTe(i,n,u)},YTe=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),XTe=(e,t={})=>({state:n,dispatch:i,chain:r})=>{const a=Mt(e,n.schema);let o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?r().command(({commands:s})=>U6(a,{...o,...t})(n)?!0:s.clearNodes()).command(({state:s})=>U6(a,{...o,...t})(s,i)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},qTe=e=>({tr:t,dispatch:n})=>{if(n){const{doc:i}=t,r=to(e,0,i.content.size),a=be.create(i,r);t.setSelection(a)}return!0},GTe=e=>({tr:t,dispatch:n})=>{if(n){const{doc:i}=t,{from:r,to:a}=typeof e=="number"?{from:e,to:e}:e,o=Ce.atStart(i).from,s=Ce.atEnd(i).to,u=to(r,o,s),c=to(a,o,s),f=Ce.create(i,u,c);t.setSelection(f)}return!0},KTe=e=>({state:t,dispatch:n})=>{const i=Mt(e,t.schema);return S_e(i)(t,n)};function yk(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const i=n.filter(r=>t==null?void 0:t.includes(r.type.name));e.tr.ensureMarks(i)}}var QTe=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:i,editor:r})=>{const{selection:a,doc:o}=t,{$from:s,$to:u}=a,c=r.extensionManager.attributes,f=Tc(c,s.node().type.name,s.node().attrs);if(a instanceof be&&a.node.isBlock)return!s.parentOffset||!Qo(o,s.pos)?!1:(i&&(e&&yk(n,r.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;const h=u.parentOffset===u.parent.content.size,g=s.depth===0?void 0:P_e(s.node(-1).contentMatchAt(s.indexAfter(-1)));let p=h&&g?[{type:g,attrs:f}]:void 0,y=Qo(t.doc,t.mapping.map(s.pos),1,p);if(!p&&!y&&Qo(t.doc,t.mapping.map(s.pos),1,g?[{type:g}]:void 0)&&(y=!0,p=g?[{type:g,attrs:f}]:void 0),i){if(y&&(a instanceof Ce&&t.deleteSelection(),t.split(t.mapping.map(s.pos),1,p),g&&!h&&!s.parentOffset&&s.parent.type!==g)){const v=t.mapping.map(s.before()),k=t.doc.resolve(v);s.node(-1).canReplaceWith(k.index(),k.index()+1,g)&&t.setNodeMarkup(t.mapping.map(s.before()),g)}e&&yk(n,r.extensionManager.splittableMarks),t.scrollIntoView()}return y},JTe=(e,t={})=>({tr:n,state:i,dispatch:r,editor:a})=>{var o;const s=Mt(e,i.schema),{$from:u,$to:c}=i.selection,f=i.selection.node;if(f&&f.isBlock||u.depth<2||!u.sameParent(c))return!1;const h=u.node(-1);if(h.type!==s)return!1;const g=a.extensionManager.attributes;if(u.parent.content.size===0&&u.node(-1).childCount===u.indexAfter(-1)){if(u.depth===2||u.node(-3).type!==s||u.index(-2)!==u.node(-2).childCount-1)return!1;if(r){let w=te.empty;const M=u.index(-1)?1:u.index(-2)?2:3;for(let W=u.depth-M;W>=u.depth-3;W-=1)w=te.from(u.node(W).copy(w));const x=u.indexAfter(-1)<u.node(-2).childCount?1:u.indexAfter(-2)<u.node(-3).childCount?2:3,S={...Tc(g,u.node().type.name,u.node().attrs),...t},E=((o=s.contentMatch.defaultType)==null?void 0:o.createAndFill(S))||void 0;w=w.append(te.from(s.createAndFill(null,E)||void 0));const I=u.before(u.depth-(M-1));n.replace(I,u.after(-x),new le(w,4-M,0));let A=-1;n.doc.nodesBetween(I,n.doc.content.size,(W,$)=>{if(A>-1)return!1;W.isTextblock&&W.content.size===0&&(A=$+1)}),A>-1&&n.setSelection(Ce.near(n.doc.resolve(A))),n.scrollIntoView()}return!0}const p=c.pos===u.end()?h.contentMatchAt(0).defaultType:null,y={...Tc(g,h.type.name,h.attrs),...t},v={...Tc(g,u.node().type.name,u.node().attrs),...t};n.delete(u.pos,c.pos);const k=p?[{type:s,attrs:y},{type:p,attrs:v}]:[{type:s,attrs:y}];if(!Qo(n.doc,u.pos,2))return!1;if(r){const{selection:w,storedMarks:M}=i,{splittableMarks:x}=a.extensionManager,S=M||w.$to.parentOffset&&w.$from.marks();if(n.split(u.pos,2,k).scrollIntoView(),!S||!r)return!0;const E=S.filter(I=>x.includes(I.type.name));n.ensureMarks(E)}return!0},eg=(e,t)=>{const n=Cc(o=>o.type===t)(e.selection);if(!n)return!0;const i=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(i===void 0)return!0;const r=e.doc.nodeAt(i);return n.node.type===(r==null?void 0:r.type)&&Fr(e.doc,n.pos)&&e.join(n.pos),!0},tg=(e,t)=>{const n=Cc(o=>o.type===t)(e.selection);if(!n)return!0;const i=e.doc.resolve(n.start).after(n.depth);if(i===void 0)return!0;const r=e.doc.nodeAt(i);return n.node.type===(r==null?void 0:r.type)&&Fr(e.doc,i)&&e.join(i),!0},ZTe=(e,t,n,i={})=>({editor:r,tr:a,state:o,dispatch:s,chain:u,commands:c,can:f})=>{const{extensions:h,splittableMarks:g}=r.extensionManager,p=Mt(e,o.schema),y=Mt(t,o.schema),{selection:v,storedMarks:k}=o,{$from:w,$to:M}=v,x=w.blockRange(M),S=k||v.$to.parentOffset&&v.$from.marks();if(!x)return!1;const E=Cc(I=>lk(I.type.name,h))(v);if(x.depth>=1&&E&&x.depth-E.depth<=1){if(E.node.type===p)return c.liftListItem(y);if(lk(E.node.type.name,h)&&p.validContent(E.node.content)&&s)return u().command(()=>(a.setNodeMarkup(E.pos,p),!0)).command(()=>eg(a,p)).command(()=>tg(a,p)).run()}return!n||!S||!s?u().command(()=>f().wrapInList(p,i)?!0:c.clearNodes()).wrapInList(p,i).command(()=>eg(a,p)).command(()=>tg(a,p)).run():u().command(()=>{const I=f().wrapInList(p,i),A=S.filter(W=>g.includes(W.type.name));return a.ensureMarks(A),I?!0:c.clearNodes()}).wrapInList(p,i).command(()=>eg(a,p)).command(()=>tg(a,p)).run()},ePe=(e,t={},n={})=>({state:i,commands:r})=>{const{extendEmptyMarkRange:a=!1}=n,o=ur(e,i.schema);return Qp(i,o,t)?r.unsetMark(o,{extendEmptyMarkRange:a}):r.setMark(o,t)},tPe=(e,t,n={})=>({state:i,commands:r})=>{const a=Mt(e,i.schema),o=Mt(t,i.schema),s=ea(i,a,n);let u;return i.selection.$anchor.sameParent(i.selection.$head)&&(u=i.selection.$anchor.parent.attrs),s?r.setNode(o,u):r.setNode(a,{...u,...n})},nPe=(e,t={})=>({state:n,commands:i})=>{const r=Mt(e,n.schema);return ea(n,r,t)?i.lift(r):i.wrapIn(r,t)},iPe=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let i=0;i<n.length;i+=1){const r=n[i];let a;if(r.spec.isInputRules&&(a=r.getState(e))){if(t){const o=e.tr,s=a.transform;for(let u=s.steps.length-1;u>=0;u-=1)o.step(s.steps[u].invert(s.docs[u]));if(a.text){const u=o.doc.resolve(a.from).marks();o.replaceWith(a.from,a.to,e.schema.text(a.text,u))}else o.delete(a.from,a.to)}return!0}}return!1},rPe=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:i,ranges:r}=n;return i||t&&r.forEach(a=>{e.removeMark(a.$from.pos,a.$to.pos)}),!0},aPe=(e,t={})=>({tr:n,state:i,dispatch:r})=>{var a;const{extendEmptyMarkRange:o=!1}=t,{selection:s}=n,u=ur(e,i.schema),{$from:c,empty:f,ranges:h}=s;if(!r)return!0;if(f&&o){let{from:g,to:p}=s;const y=(a=c.marks().find(k=>k.type===u))==null?void 0:a.attrs,v=qp(c,u,y);v&&(g=v.from,p=v.to),n.removeMark(g,p,u)}else h.forEach(g=>{n.removeMark(g.$from.pos,g.$to.pos,u)});return n.removeStoredMark(u),!0},oPe=(e,t={})=>({tr:n,state:i,dispatch:r})=>{let a=null,o=null;const s=Sc(typeof e=="string"?e:e.name,i.schema);return s?(s==="node"&&(a=Mt(e,i.schema)),s==="mark"&&(o=ur(e,i.schema)),r&&n.selection.ranges.forEach(u=>{const c=u.$from.pos,f=u.$to.pos;let h,g,p,y;n.selection.empty?i.doc.nodesBetween(c,f,(v,k)=>{a&&a===v.type&&(p=Math.max(k,c),y=Math.min(k+v.nodeSize,f),h=k,g=v)}):i.doc.nodesBetween(c,f,(v,k)=>{k<c&&a&&a===v.type&&(p=Math.max(k,c),y=Math.min(k+v.nodeSize,f),h=k,g=v),k>=c&&k<=f&&(a&&a===v.type&&n.setNodeMarkup(k,void 0,{...v.attrs,...t}),o&&v.marks.length&&v.marks.forEach(w=>{if(o===w.type){const M=Math.max(k,c),x=Math.min(k+v.nodeSize,f);n.addMark(M,x,o.create({...w.attrs,...t}))}}))}),g&&(h!==void 0&&n.setNodeMarkup(h,void 0,{...g.attrs,...t}),o&&g.marks.length&&g.marks.forEach(v=>{o===v.type&&n.addMark(p,y,o.create({...v.attrs,...t}))}))}),!0):!1},sPe=(e,t={})=>({state:n,dispatch:i})=>{const r=Mt(e,n.schema);return b_e(r,t)(n,i)},lPe=(e,t={})=>({state:n,dispatch:i})=>{const r=Mt(e,n.schema);return w_e(r,t)(n,i)},bk=Ct.create({name:"commands",addCommands(){return{...mk}}}),wk=Ct.create({name:"delete",onUpdate({transaction:e,appendedTransactions:t}){var n,i,r;const a=()=>{var o,s,u,c;if((c=(u=(s=(o=this.editor.options.coreExtensionOptions)==null?void 0:o.delete)==null?void 0:s.filterTransaction)==null?void 0:u.call(s,e))!=null?c:e.getMeta("y-sync$"))return;const f=X6(e.before,[e,...t]);rk(f).forEach(p=>{f.mapping.mapResult(p.oldRange.from).deletedAfter&&f.mapping.mapResult(p.oldRange.to).deletedBefore&&f.before.nodesBetween(p.oldRange.from,p.oldRange.to,(y,v)=>{const k=v+y.nodeSize-2,w=p.oldRange.from<=v&&k<=p.oldRange.to;this.editor.emit("delete",{type:"node",node:y,from:v,to:k,newFrom:f.mapping.map(v),newTo:f.mapping.map(k),deletedRange:p.oldRange,newRange:p.newRange,partial:!w,editor:this.editor,transaction:e,combinedTransform:f})})});const g=f.mapping;f.steps.forEach((p,y)=>{var v,k;if(p instanceof Ci){const w=g.slice(y).map(p.from,-1),M=g.slice(y).map(p.to),x=g.invert().map(w,-1),S=g.invert().map(M),E=(v=f.doc.nodeAt(w-1))==null?void 0:v.marks.some(A=>A.eq(p.mark)),I=(k=f.doc.nodeAt(M))==null?void 0:k.marks.some(A=>A.eq(p.mark));this.editor.emit("delete",{type:"mark",mark:p.mark,from:p.from,to:p.to,deletedRange:{from:x,to:S},newRange:{from:w,to:M},partial:!!(I||E),editor:this.editor,transaction:e,combinedTransform:f})}})};(r=(i=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:i.async)==null||r?setTimeout(a,0):a()}}),vk=Ct.create({name:"drop",addProseMirrorPlugins(){return[new ct({key:new jt("tiptapDrop"),props:{handleDrop:(e,t,n,i)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:i})}}})]}}),kk=Ct.create({name:"editable",addProseMirrorPlugins(){return[new ct({key:new jt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Mk=new jt("focusEvents"),Ck=Ct.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new ct({key:Mk,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const i=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(i),!1},blur:(t,n)=>{e.isFocused=!1;const i=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(i),!1}}}})]}}),xk=Ct.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:s})=>{const{selection:u,doc:c}=s,{empty:f,$anchor:h}=u,{pos:g,parent:p}=h,y=h.parent.isTextblock&&g>0?s.doc.resolve(g-1):h,v=y.parent.type.spec.isolating,k=h.pos-h.parentOffset,w=v&&y.parent.childCount===1?k===h.pos:Pe.atStart(c).from===g;return!f||!p.type.isTextblock||p.textContent.length||!w||w&&h.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),i={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...i},a={...i,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Zp()||pk()?a:r},addProseMirrorPlugins(){return[new ct({key:new jt("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(v=>v.getMeta("composition")))return;const i=e.some(v=>v.docChanged)&&!t.doc.eq(n.doc),r=e.some(v=>v.getMeta("preventClearDocument"));if(!i||r)return;const{empty:a,from:o,to:s}=t.selection,u=Pe.atStart(t.doc).from,c=Pe.atEnd(t.doc).to;if(a||!(o===u&&s===c)||!Pc(n.doc))return;const g=n.tr,p=vc({state:n,transaction:g}),{commands:y}=new kc({editor:this.editor,state:p});if(y.clearNodes(),!!g.steps.length)return g}})]}}),Sk=Ct.create({name:"paste",addProseMirrorPlugins(){return[new ct({key:new jt("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),_k=Ct.create({name:"tabindex",addProseMirrorPlugins(){return[new ct({key:new jt("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),uPe=class Ws{constructor(t,n,i=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=i,this.resolvedPos=t,this.editor=n,this.currentNode=r}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!=null?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let n=this.from,i=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,i=this.to-1}this.editor.commands.insertContentAt({from:n,to:i},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new Ws(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new Ws(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new Ws(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,i)=>{const r=n.isBlock&&!n.isTextblock,a=n.isAtom&&!n.isText,o=this.pos+i+(a?0:1);if(o<0||o>this.resolvedPos.doc.nodeSize-2)return;const s=this.resolvedPos.doc.resolve(o);if(!r&&s.depth<=this.depth)return;const u=new Ws(s,this.editor,r,r?n:null);r&&(u.actualDepth=this.depth+1),t.push(new Ws(s,this.editor,r,r?n:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,n={}){let i=null,r=this.parent;for(;r&&!i;){if(r.node.type.name===t)if(Object.keys(n).length>0){const a=r.node.attrs,o=Object.keys(n);for(let s=0;s<o.length;s+=1){const u=o[s];if(a[u]!==n[u])break}}else i=r;r=r.parent}return i}querySelector(t,n={}){return this.querySelectorAll(t,n,!0)[0]||null}querySelectorAll(t,n={},i=!1){let r=[];if(!this.children||this.children.length===0)return r;const a=Object.keys(n);return this.children.forEach(o=>{i&&r.length>0||(o.node.type.name===t&&a.every(u=>n[u]===o.node.attrs[u])&&r.push(o),!(i&&r.length>0)&&(r=r.concat(o.querySelectorAll(t,n,i))))}),r}setAttribute(t){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(n)}},dPe=`.ProseMirror {
|
|
@@ -1396,4 +1396,4 @@ img.ProseMirror-separator {
|
|
|
1396
1396
|
`,YPe="️",XPe="",kg="";let df=null,cf=null;function qPe(e=[]){const t={};Sn.groups=t;const n=new Sn;df==null&&(df=Lk(HPe)),cf==null&&(cf=Lk(RPe)),ie(n,"'",Qc),ie(n,"{",Xl),ie(n,"}",ql),ie(n,"[",Oc),ie(n,"]",zc),ie(n,"(",Lc),ie(n,")",$c),ie(n,"<",Hc),ie(n,">",Rc),ie(n,"(",Bc),ie(n,")",Vc),ie(n,"「",Fc),ie(n,"」",Uc),ie(n,"『",Yc),ie(n,"』",Xc),ie(n,"<",qc),ie(n,">",Gc),ie(n,"&",Kc),ie(n,"*",Jc),ie(n,"@",ta),ie(n,"`",ef),ie(n,"^",tf),ie(n,":",na),ie(n,",",mg),ie(n,"$",nf),ie(n,".",Fi),ie(n,"=",rf),ie(n,"!",pg),ie(n,"-",Zn),ie(n,"%",Gl),ie(n,"|",af),ie(n,"+",of),ie(n,"#",sf),ie(n,"?",Kl),ie(n,'"',gg),ie(n,"/",Ui),ie(n,";",yg),ie(n,"~",Ql),ie(n,"_",lf),ie(n,"\\",Zc),ie(n,"・",jk);const i=ht(n,fr,cg,{[ig]:!0});ht(i,fr,i);const r=ht(i,cr,Dk,{[Fl]:!0}),a=ht(i,Jl,Nk,{[Ul]:!0}),o=ht(n,cr,dr,{[rg]:!0});ht(o,fr,r),ht(o,cr,o),ht(r,fr,r),ht(r,cr,r);const s=ht(n,Jl,lg,{[ag]:!0});ht(s,cr),ht(s,fr,a),ht(s,Jl,s),ht(a,fr,a),ht(a,cr),ht(a,Jl,a);const u=ie(n,vg,hg,{[sg]:!0}),c=ie(n,Ok,fg,{[sg]:!0}),f=ht(n,wg,fg,{[sg]:!0});ie(n,kg,f),ie(c,vg,u),ie(c,kg,f),ht(c,wg,f),ie(f,Ok),ie(f,vg),ht(f,wg,f),ie(f,kg,f);const h=ht(n,bg,Ik,{[Ek]:!0});ie(h,"#"),ht(h,bg,h),ie(h,YPe,h);const g=ie(h,XPe);ie(g,"#"),ht(g,bg,h);const p=[[cr,o],[fr,r]],y=[[cr,null],[Jl,s],[fr,a]];for(let v=0;v<df.length;v++)ia(n,df[v],ug,dr,p);for(let v=0;v<cf.length;v++)ia(n,cf[v],dg,lg,y);ro(ug,{tld:!0,ascii:!0},t),ro(dg,{utld:!0,alpha:!0},t),ia(n,"file",Wc,dr,p),ia(n,"mailto",Wc,dr,p),ia(n,"http",fs,dr,p),ia(n,"https",fs,dr,p),ia(n,"ftp",fs,dr,p),ia(n,"ftps",fs,dr,p),ro(Wc,{scheme:!0,ascii:!0},t),ro(fs,{slashscheme:!0,ascii:!0},t),e=e.sort((v,k)=>v[0]>k[0]?1:-1);for(let v=0;v<e.length;v++){const k=e[v][0],M=e[v][1]?{[BPe]:!0}:{[VPe]:!0};k.indexOf("-")>=0?M[og]=!0:cr.test(k)?fr.test(k)?M[Fl]=!0:M[rg]=!0:M[ig]=!0,Ak(n,k,k,M)}return Ak(n,"localhost",Yl,{ascii:!0}),n.jd=new Sn(uf),{start:n,tokens:Object.assign({groups:t},Wk)}}function zk(e,t){const n=GPe(t.replace(/[A-Z]/g,s=>s.toLowerCase())),i=n.length,r=[];let a=0,o=0;for(;o<i;){let s=e,u=null,c=0,f=null,h=-1,g=-1;for(;o<i&&(u=s.go(n[o]));)s=u,s.accepts()?(h=0,g=0,f=s):h>=0&&(h+=n[o].length,g++),c+=n[o].length,a+=n[o].length,o++;a-=h,o-=g,c-=h,r.push({t:f.t,v:t.slice(a-c,a),s:a-c,e:a})}return r}function GPe(e){const t=[],n=e.length;let i=0;for(;i<n;){let r=e.charCodeAt(i),a,o=r<55296||r>56319||i+1===n||(a=e.charCodeAt(i+1))<56320||a>57343?e[i]:e.slice(i,i+2);t.push(o),i+=o.length}return t}function ia(e,t,n,i,r){let a;const o=t.length;for(let s=0;s<o-1;s++){const u=t[s];e.j[u]?a=e.j[u]:(a=new Sn(i),a.jr=r.slice(),e.j[u]=a),e=a}return a=new Sn(n),a.jr=r.slice(),e.j[t[o-1]]=a,a}function Lk(e){const t=[],n=[];let i=0,r="0123456789";for(;i<e.length;){let a=0;for(;r.indexOf(e[i+a])>=0;)a++;if(a>0){t.push(n.join(""));for(let o=parseInt(e.substring(i,i+a),10);o>0;o--)n.pop();i+=a}else n.push(e[i]),i++}return t}const Zl={defaultProtocol:"http",events:null,format:$k,formatHref:$k,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Mg(e,t=null){let n=Object.assign({},Zl);e&&(n=Object.assign(n,e instanceof Mg?e.o:e));const i=n.ignoreTags,r=[];for(let a=0;a<i.length;a++)r.push(i[a].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=r}Mg.prototype={o:Zl,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const i=t!=null;let r=this.o[e];return r&&(typeof r=="object"?(r=n.t in r?r[n.t]:Zl[e],typeof r=="function"&&i&&(r=r(t,n))):typeof r=="function"&&i&&(r=r(t,n.t,n)),r)},getObj(e,t,n){let i=this.o[e];return typeof i=="function"&&t!=null&&(i=i(t,n.t,n)),i},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function $k(e){return e}function Hk(e,t){this.t="token",this.v=e,this.tk=t}Hk.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),i=e.get("format",t,this);return n&&i.length>n?i.substring(0,n)+"…":i},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=Zl.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),i=e.get("formatHref",n,this),r=e.get("tagName",n,t),a=this.toFormattedString(e),o={},s=e.get("className",n,t),u=e.get("target",n,t),c=e.get("rel",n,t),f=e.getObj("attributes",n,t),h=e.getObj("events",n,t);return o.href=i,s&&(o.class=s),u&&(o.target=u),c&&(o.rel=c),f&&Object.assign(o,f),{tagName:r,attributes:o,content:a,eventListeners:h}}};function ff(e,t){class n extends Hk{constructor(r,a){super(r,a),this.t=e}}for(const i in t)n.prototype[i]=t[i];return n.t=e,n}const Rk=ff("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Bk=ff("text"),KPe=ff("nl"),hf=ff("url",{isLink:!0,toHref(e=Zl.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==Yl&&e[1].t===na}}),ei=e=>new Sn(e);function QPe({groups:e}){const t=e.domain.concat([Kc,Jc,ta,Zc,ef,tf,nf,rf,Zn,cg,Gl,af,of,sf,Ui,uf,Ql,lf]),n=[Qc,na,mg,Fi,pg,Gl,Kl,gg,yg,Hc,Rc,Xl,ql,zc,Oc,Lc,$c,Bc,Vc,Fc,Uc,Yc,Xc,qc,Gc],i=[Kc,Qc,Jc,Zc,ef,tf,nf,rf,Zn,Xl,ql,Gl,af,of,sf,Kl,Ui,uf,Ql,lf],r=ei(),a=ie(r,Ql);Ee(a,i,a),Ee(a,e.domain,a);const o=ei(),s=ei(),u=ei();Ee(r,e.domain,o),Ee(r,e.scheme,s),Ee(r,e.slashscheme,u),Ee(o,i,a),Ee(o,e.domain,o);const c=ie(o,ta);ie(a,ta,c),ie(s,ta,c),ie(u,ta,c);const f=ie(a,Fi);Ee(f,i,a),Ee(f,e.domain,a);const h=ei();Ee(c,e.domain,h),Ee(h,e.domain,h);const g=ie(h,Fi);Ee(g,e.domain,h);const p=ei(Rk);Ee(g,e.tld,p),Ee(g,e.utld,p),ie(c,Yl,p);const y=ie(h,Zn);ie(y,Zn,y),Ee(y,e.domain,h),Ee(p,e.domain,h),ie(p,Fi,g),ie(p,Zn,y);const v=ie(p,na);Ee(v,e.numeric,Rk);const k=ie(o,Zn),w=ie(o,Fi);ie(k,Zn,k),Ee(k,e.domain,o),Ee(w,i,a),Ee(w,e.domain,o);const M=ei(hf);Ee(w,e.tld,M),Ee(w,e.utld,M),Ee(M,e.domain,o),Ee(M,i,a),ie(M,Fi,w),ie(M,Zn,k),ie(M,ta,c);const x=ie(M,na),S=ei(hf);Ee(x,e.numeric,S);const E=ei(hf),I=ei();Ee(E,t,E),Ee(E,n,I),Ee(I,t,E),Ee(I,n,I),ie(M,Ui,E),ie(S,Ui,E);const A=ie(s,na),W=ie(u,na),$=ie(W,Ui),D=ie($,Ui);Ee(s,e.domain,o),ie(s,Fi,w),ie(s,Zn,k),Ee(u,e.domain,o),ie(u,Fi,w),ie(u,Zn,k),Ee(A,e.domain,E),ie(A,Ui,E),ie(A,Kl,E),Ee(D,e.domain,E),Ee(D,t,E),ie(D,Ui,E);const z=[[Xl,ql],[Oc,zc],[Lc,$c],[Hc,Rc],[Bc,Vc],[Fc,Uc],[Yc,Xc],[qc,Gc]];for(let H=0;H<z.length;H++){const[X,re]=z[H],ne=ie(E,X);ie(I,X,ne),ie(ne,re,E);const q=ei(hf);Ee(ne,t,q);const Z=ei();Ee(ne,n),Ee(q,t,q),Ee(q,n,Z),Ee(Z,t,q),Ee(Z,n,Z),ie(q,re,E),ie(Z,re,E)}return ie(r,Yl,M),ie(r,hg,KPe),{start:r,tokens:Wk}}function JPe(e,t,n){let i=n.length,r=0,a=[],o=[];for(;r<i;){let s=e,u=null,c=null,f=0,h=null,g=-1;for(;r<i&&!(u=s.go(n[r].t));)o.push(n[r++]);for(;r<i&&(c=u||s.go(n[r].t));)u=null,s=c,s.accepts()?(g=0,h=s):g>=0&&g++,r++,f++;if(g<0)r-=f,r<i&&(o.push(n[r]),r++);else{o.length>0&&(a.push(Cg(Bk,t,o)),o=[]),r-=g,f-=g;const p=h.t,y=n.slice(r-f,r);a.push(Cg(p,t,y))}}return o.length>0&&a.push(Cg(Bk,t,o)),a}function Cg(e,t,n){const i=n[0].s,r=n[n.length-1].e,a=t.slice(i,r);return new e(a,n)}const ZPe=typeof console<"u"&&console&&console.warn||(()=>{}),eEe="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Ze={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function tEe(){return Sn.groups={},Ze.scanner=null,Ze.parser=null,Ze.tokenQueue=[],Ze.pluginQueue=[],Ze.customSchemes=[],Ze.initialized=!1,Ze}function Vk(e,t=!1){if(Ze.initialized&&ZPe(`linkifyjs: already initialized - will not register custom scheme "${e}" ${eEe}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format.
|
|
1397
1397
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
1398
1398
|
2. Cannot start or end with "-"
|
|
1399
|
-
3. "-" cannot repeat`);Ze.customSchemes.push([e,t])}function nEe(){Ze.scanner=qPe(Ze.customSchemes);for(let e=0;e<Ze.tokenQueue.length;e++)Ze.tokenQueue[e][1]({scanner:Ze.scanner});Ze.parser=QPe(Ze.scanner.tokens);for(let e=0;e<Ze.pluginQueue.length;e++)Ze.pluginQueue[e][1]({scanner:Ze.scanner,parser:Ze.parser});return Ze.initialized=!0,Ze}function xg(e){return Ze.initialized||nEe(),JPe(Ze.parser.start,e,zk(Ze.scanner.start,e))}xg.scan=zk;function Fk(e,t=null,n=null){if(t&&typeof t=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}const i=new Mg(n),r=xg(e),a=[];for(let o=0;o<r.length;o++){const s=r[o];s.isLink&&(!t||s.t===t)&&i.check(s)&&a.push(s.toFormattedObject(i))}return a}var Sg="[\0- -\u2029 ]",iEe=new RegExp(Sg),rEe=new RegExp(`${Sg}$`),aEe=new RegExp(Sg,"g");function oEe(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?["()","[]"].includes(e[0].value+e[2].value):!1}function sEe(e){return new ct({key:new jt("autolink"),appendTransaction:(t,n,i)=>{const r=t.some(c=>c.docChanged)&&!n.doc.eq(i.doc),a=t.some(c=>c.getMeta("preventAutolink"));if(!r||a)return;const{tr:o}=i,s=X6(n.doc,[...t]);if(rk(s).forEach(({newRange:c})=>{const f=E_e(i.doc,c,p=>p.isTextblock);let h,g;if(f.length>1)h=f[0],g=i.doc.textBetween(h.pos,h.pos+h.node.nodeSize,void 0," ");else if(f.length){const p=i.doc.textBetween(c.from,c.to," "," ");if(!rEe.test(p))return;h=f[0],g=i.doc.textBetween(h.pos,c.to,void 0," ")}if(h&&g){const p=g.split(iEe).filter(Boolean);if(p.length<=0)return!1;const y=p[p.length-1],v=h.pos+g.lastIndexOf(y);if(!y)return!1;const k=xg(y).map(w=>w.toObject(e.defaultProtocol));if(!oEe(k))return!1;k.filter(w=>w.isLink).map(w=>({...w,from:v+w.start+1,to:v+w.end+1})).filter(w=>i.schema.marks.code?!i.doc.rangeHasMark(w.from,w.to,i.schema.marks.code):!0).filter(w=>e.validate(w.value)).filter(w=>e.shouldAutoLink(w.value)).forEach(w=>{Gp(w.from,w.to,i.doc).some(M=>M.mark.type===e.type)||o.addMark(w.from,w.to,e.type.create({href:w.href}))})}}),!!o.steps.length)return o}})}function lEe(e){return new ct({key:new jt("handleClickLink"),props:{handleClick:(t,n,i)=>{var r,a;if(i.button!==0||!t.editable)return!1;let o=null;if(i.target instanceof HTMLAnchorElement)o=i.target;else{let f=i.target;const h=[];for(;f.nodeName!=="DIV";)h.push(f),f=f.parentNode;o=h.find(g=>g.nodeName==="A")}if(!o)return!1;const s=ik(t.state,e.type.name),u=(r=o==null?void 0:o.href)!=null?r:s.href,c=(a=o==null?void 0:o.target)!=null?a:s.target;return e.enableClickSelection&&e.editor.commands.extendMarkRange(e.type.name),o&&u?(window.open(u,c),!0):!1}}})}function uEe(e){return new ct({key:new jt("handlePasteLink"),props:{handlePaste:(t,n,i)=>{const{state:r}=t,{selection:a}=r,{empty:o}=a;if(o)return!1;let s="";i.content.forEach(c=>{s+=c.textContent});const u=Fk(s,{defaultProtocol:e.defaultProtocol}).find(c=>c.isLink&&c.value===s);return!s||!u?!1:e.editor.commands.setMark(e.type,{href:u.href})}}})}function ao(e,t){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(i=>{const r=typeof i=="string"?i:i.scheme;r&&n.push(r)}),!e||e.replace(aEe,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var Uk=no.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if(typeof e=="string"){Vk(e);return}Vk(e.scheme,e.optionalSlashes)})},onDestroy(){tEe()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!ao(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>!!e}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!t||!this.options.isAllowedUri(t,{defaultValidate:n=>!!ao(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:t=>!!ao(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",ft(this.options.HTMLAttributes,e),0]:["a",ft(this.options.HTMLAttributes,{...e,href:""}),0]},addCommands(){return{setLink:e=>({chain:t})=>{const{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:i=>!!ao(i,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta("preventAutolink",!0).run():!1},toggleLink:e=>({chain:t})=>{const{href:n}=e||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:i=>!!ao(i,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[io({find:e=>{const t=[];if(e){const{protocols:n,defaultProtocol:i}=this.options,r=Fk(e).filter(a=>a.isLink&&this.options.isAllowedUri(a.value,{defaultValidate:o=>!!ao(o,n),protocols:n,defaultProtocol:i}));r.length&&r.forEach(a=>t.push({text:a.value,data:{href:a.href},index:a.start}))}return t},type:this.type,getAttributes:e=>{var t;return{href:(t=e.data)==null?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(sEe({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:i=>this.options.isAllowedUri(i,{defaultValidate:r=>!!ao(r,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&e.push(lEe({type:this.type,editor:this.editor,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(uEe({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),e}}),dEe=Uk,cEe=Object.defineProperty,fEe=(e,t)=>{for(var n in t)cEe(e,n,{get:t[n],enumerable:!0})},hEe="listItem",Yk="textStyle",Xk=/^\s*([-+*])\s$/,qk=pn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",ft(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(hEe,this.editor.getAttributes(Yk)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=cs({find:Xk,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=cs({find:Xk,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Yk),editor:this.editor})),[e]}}),Gk=pn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",ft(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),mEe={};fEe(mEe,{findListItemPos:()=>eu,getNextListDepth:()=>_g,handleBackspace:()=>Tg,handleDelete:()=>Pg,hasListBefore:()=>Kk,hasListItemAfter:()=>pEe,hasListItemBefore:()=>Qk,listItemHasSubList:()=>Jk,nextListIsDeeper:()=>Zk,nextListIsHigher:()=>e5});var eu=(e,t)=>{const{$from:n}=t.selection,i=Mt(e,t.schema);let r=null,a=n.depth,o=n.pos,s=null;for(;a>0&&s===null;)r=n.node(a),r.type===i?s=a:(a-=1,o-=1);return s===null?null:{$pos:t.doc.resolve(o),depth:s}},_g=(e,t)=>{const n=eu(e,t);if(!n)return!1;const[,i]=$_e(t,e,n.$pos.pos+4);return i},Kk=(e,t,n)=>{const{$anchor:i}=e.selection,r=Math.max(0,i.pos-2),a=e.doc.resolve(r).node();return!(!a||!n.includes(a.type.name))},Qk=(e,t)=>{var n;const{$anchor:i}=t.selection,r=t.doc.resolve(i.pos-2);return!(r.index()===0||((n=r.nodeBefore)==null?void 0:n.type.name)!==e)},Jk=(e,t,n)=>{if(!n)return!1;const i=Mt(e,t.schema);let r=!1;return n.descendants(a=>{a.type===i&&(r=!0)}),r},Tg=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!ea(e.state,t)&&Kk(e.state,t,n)){const{$anchor:s}=e.state.selection,u=e.state.doc.resolve(s.before()-1),c=[];u.node().descendants((g,p)=>{g.type.name===t&&c.push({node:g,pos:p})});const f=c.at(-1);if(!f)return!1;const h=e.state.doc.resolve(u.start()+f.pos+1);return e.chain().cut({from:s.start()-1,to:s.end()+1},h.end()).joinForward().run()}if(!ea(e.state,t)||!V_e(e.state))return!1;const i=eu(t,e.state);if(!i)return!1;const a=e.state.doc.resolve(i.$pos.pos-2).node(i.depth),o=Jk(t,e.state,a);return Qk(t,e.state)&&!o?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},Zk=(e,t)=>{const n=_g(e,t),i=eu(e,t);return!i||!n?!1:n>i.depth},e5=(e,t)=>{const n=_g(e,t),i=eu(e,t);return!i||!n?!1:n<i.depth},Pg=(e,t)=>{if(!ea(e.state,t)||!B_e(e.state,t))return!1;const{selection:n}=e.state,{$from:i,$to:r}=n;return!n.empty&&i.sameParent(r)?!1:Zk(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():e5(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},pEe=(e,t)=>{var n;const{$anchor:i}=t.selection,r=t.doc.resolve(i.pos-i.parentOffset-2);return!(r.index()===r.parent.childCount-1||((n=r.nodeAfter)==null?void 0:n.type.name)!==e)},t5=Ct.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&Pg(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&Pg(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:i})=>{e.state.schema.nodes[n]!==void 0&&Tg(e,n,i)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:i})=>{e.state.schema.nodes[n]!==void 0&&Tg(e,n,i)&&(t=!0)}),t}}}}),gEe="listItem",n5="textStyle",i5=/^(\d+)\.\s$/,r5=pn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return t===1?["ol",ft(this.options.HTMLAttributes,n),0]:["ol",ft(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(gEe,this.editor.getAttributes(n5)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=cs({find:i5,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=cs({find:i5,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(n5)}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1],editor:this.editor})),[e]}}),yEe=/^\s*(\[([( |x])?\])\s$/,bEe=pn.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{const t=e.getAttribute("data-checked");return t===""||t==="true"},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",ft(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:i})=>{const r=document.createElement("li"),a=document.createElement("label"),o=document.createElement("span"),s=document.createElement("input"),u=document.createElement("div"),c=f=>{var h,g;s.ariaLabel=((g=(h=this.options.a11y)==null?void 0:h.checkboxLabel)==null?void 0:g.call(h,f,s.checked))||`Task item checkbox for ${f.textContent||"empty task item"}`};return c(e),a.contentEditable="false",s.type="checkbox",s.addEventListener("mousedown",f=>f.preventDefault()),s.addEventListener("change",f=>{if(!i.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}const{checked:h}=f.target;i.isEditable&&typeof n=="function"&&i.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:g})=>{const p=n();if(typeof p!="number")return!1;const y=g.doc.nodeAt(p);return g.setNodeMarkup(p,void 0,{...y==null?void 0:y.attrs,checked:h}),!0}).run(),!i.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,h)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([f,h])=>{r.setAttribute(f,h)}),r.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,o),r.append(a,u),Object.entries(t).forEach(([f,h])=>{r.setAttribute(f,h)}),{dom:r,contentDOM:u,update:f=>f.type!==this.type?!1:(r.dataset.checked=f.attrs.checked,s.checked=f.attrs.checked,c(f),!0)}}},addInputRules(){return[cs({find:yEe,type:this.type,getAttributes:e=>({checked:e[e.length-1]==="x"})})]}}),wEe=pn.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",ft(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});Ct.create({name:"listKit",addExtensions(){const e=[];return this.options.bulletList!==!1&&e.push(qk.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(Gk.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(t5.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(r5.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(bEe.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(wEe.configure(this.options.taskList)),e}});var vEe=pn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",ft(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),kEe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,MEe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,CEe=no.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["s",ft(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[ds({find:kEe,type:this.type})]},addPasteRules(){return[io({find:MEe,type:this.type})]}}),xEe=pn.create({name:"text",group:"inline"}),SEe=no.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",ft(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function _Ee(e={}){return new ct({view(t){return new TEe(t,e)}})}class TEe{constructor(t,n){var i;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(i=n.width)!==null&&i!==void 0?i:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let a=o=>{this[r](o)};return t.dom.addEventListener(r,a),{name:r,handler:a}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,i,r=this.editorView.dom,a=r.getBoundingClientRect(),o=a.width/r.offsetWidth,s=a.height/r.offsetHeight;if(n){let h=t.nodeBefore,g=t.nodeAfter;if(h||g){let p=this.editorView.nodeDOM(this.cursorPos-(h?h.nodeSize:0));if(p){let y=p.getBoundingClientRect(),v=h?y.bottom:y.top;h&&g&&(v=(v+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let k=this.width/2*s;i={left:y.left,right:y.right,top:v-k,bottom:v+k}}}}if(!i){let h=this.editorView.coordsAtPos(this.cursorPos),g=this.width/2*o;i={left:h.left-g,right:h.left+g,top:h.top,bottom:h.bottom}}let u=this.editorView.dom.offsetParent;this.element||(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let c,f;if(!u||u==document.body&&getComputedStyle(u).position=="static")c=-pageXOffset,f=-pageYOffset;else{let h=u.getBoundingClientRect(),g=h.width/u.offsetWidth,p=h.height/u.offsetHeight;c=h.left-u.scrollLeft*g,f=h.top-u.scrollTop*p}this.element.style.left=(i.left-c)/o+"px",this.element.style.top=(i.top-f)/s+"px",this.element.style.width=(i.right-i.left)/o+"px",this.element.style.height=(i.bottom-i.top)/s+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),i=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),r=i&&i.type.spec.disableDropCursor,a=typeof r=="function"?r(this.editorView,n,t):r;if(n&&!a){let o=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=c4(this.editorView.state.doc,o,this.editorView.dragging.slice);s!=null&&(o=s)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}class mt extends Pe{constructor(t){super(t,t)}map(t,n){let i=t.resolve(n.map(this.head));return mt.valid(i)?new mt(i):Pe.near(i)}content(){return le.empty}eq(t){return t instanceof mt&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new mt(t.resolve(n.pos))}getBookmark(){return new Eg(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!PEe(t)||!EEe(t))return!1;let i=n.type.spec.allowGapCursor;if(i!=null)return i;let r=n.contentMatchAt(t.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,n,i=!1){e:for(;;){if(!i&&mt.valid(t))return t;let r=t.pos,a=null;for(let o=t.depth;;o--){let s=t.node(o);if(n>0?t.indexAfter(o)<s.childCount:t.index(o)>0){a=s.child(n>0?t.indexAfter(o):t.index(o)-1);break}else if(o==0)return null;r+=n;let u=t.doc.resolve(r);if(mt.valid(u))return u}for(;;){let o=n>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!be.isSelectable(a)){t=t.doc.resolve(r+a.nodeSize*n),i=!1;continue e}break}a=o,r+=n;let s=t.doc.resolve(r);if(mt.valid(s))return s}return null}}}mt.prototype.visible=!1,mt.findFrom=mt.findGapCursorFrom,Pe.jsonID("gapcursor",mt);class Eg{constructor(t){this.pos=t}map(t){return new Eg(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return mt.valid(n)?new mt(n):Pe.near(n)}}function PEe(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),i=e.node(t);if(n==0){if(i.type.spec.isolating)return!0;continue}for(let r=i.child(n-1);;r=r.lastChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function EEe(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),i=e.node(t);if(n==i.childCount){if(i.type.spec.isolating)return!0;continue}for(let r=i.child(n);;r=r.firstChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function AEe(){return new ct({props:{decorations:IEe,createSelectionBetween(e,t,n){return t.pos==n.pos&&mt.valid(n)?new mt(n):null},handleClick:NEe,handleKeyDown:DEe,handleDOMEvents:{beforeinput:jEe}}})}const DEe=L6({ArrowLeft:mf("horiz",-1),ArrowRight:mf("horiz",1),ArrowUp:mf("vert",-1),ArrowDown:mf("vert",1)});function mf(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(i,r,a){let o=i.selection,s=t>0?o.$to:o.$from,u=o.empty;if(o instanceof Ce){if(!a.endOfTextblock(n)||s.depth==0)return!1;u=!1,s=i.doc.resolve(t>0?s.after():s.before())}let c=mt.findGapCursorFrom(s,t,u);return c?(r&&r(i.tr.setSelection(new mt(c))),!0):!1}}function NEe(e,t,n){if(!e||!e.editable)return!1;let i=e.state.doc.resolve(t);if(!mt.valid(i))return!1;let r=e.posAtCoords({left:n.clientX,top:n.clientY});return r&&r.inside>-1&&be.isSelectable(e.state.doc.nodeAt(r.inside))?!1:(e.dispatch(e.state.tr.setSelection(new mt(i))),!0)}function jEe(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof mt))return!1;let{$from:n}=e.state.selection,i=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!i)return!1;let r=te.empty;for(let o=i.length-1;o>=0;o--)r=te.from(i[o].createAndFill(null,r));let a=e.state.tr.replace(n.pos,n.pos,new le(r,0,0));return a.setSelection(Ce.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function IEe(e){if(!(e.selection instanceof mt))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",st.create(e.doc,[mn.widget(e.selection.head,t,{key:"gapcursor"})])}var pf=200,It=function(){};It.prototype.append=function(t){return t.length?(t=It.from(t),!this.length&&t||t.length<pf&&this.leafAppend(t)||this.length<pf&&t.leafPrepend(this)||this.appendInner(t)):this},It.prototype.prepend=function(t){return t.length?It.from(t).append(this):this},It.prototype.appendInner=function(t){return new WEe(this,t)},It.prototype.slice=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=this.length),t>=n?It.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))},It.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},It.prototype.forEach=function(t,n,i){n===void 0&&(n=0),i===void 0&&(i=this.length),n<=i?this.forEachInner(t,n,i,0):this.forEachInvertedInner(t,n,i,0)},It.prototype.map=function(t,n,i){n===void 0&&(n=0),i===void 0&&(i=this.length);var r=[];return this.forEach(function(a,o){return r.push(t(a,o))},n,i),r},It.from=function(t){return t instanceof It?t:t&&t.length?new a5(t):It.empty};var a5=function(e){function t(i){e.call(this),this.values=i}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(r,a){return r==0&&a==this.length?this:new t(this.values.slice(r,a))},t.prototype.getInner=function(r){return this.values[r]},t.prototype.forEachInner=function(r,a,o,s){for(var u=a;u<o;u++)if(r(this.values[u],s+u)===!1)return!1},t.prototype.forEachInvertedInner=function(r,a,o,s){for(var u=a-1;u>=o;u--)if(r(this.values[u],s+u)===!1)return!1},t.prototype.leafAppend=function(r){if(this.length+r.length<=pf)return new t(this.values.concat(r.flatten()))},t.prototype.leafPrepend=function(r){if(this.length+r.length<=pf)return new t(r.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(It);It.empty=new a5([]);var WEe=function(e){function t(n,i){e.call(this),this.left=n,this.right=i,this.length=n.length+i.length,this.depth=Math.max(n.depth,i.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(i){return i<this.left.length?this.left.get(i):this.right.get(i-this.left.length)},t.prototype.forEachInner=function(i,r,a,o){var s=this.left.length;if(r<s&&this.left.forEachInner(i,r,Math.min(a,s),o)===!1||a>s&&this.right.forEachInner(i,Math.max(r-s,0),Math.min(this.length,a)-s,o+s)===!1)return!1},t.prototype.forEachInvertedInner=function(i,r,a,o){var s=this.left.length;if(r>s&&this.right.forEachInvertedInner(i,r-s,Math.max(a,s)-s,o+s)===!1||a<s&&this.left.forEachInvertedInner(i,Math.min(r,s),a,o)===!1)return!1},t.prototype.sliceInner=function(i,r){if(i==0&&r==this.length)return this;var a=this.left.length;return r<=a?this.left.slice(i,r):i>=a?this.right.slice(i-a,r-a):this.left.slice(i,a).append(this.right.slice(0,r-a))},t.prototype.leafAppend=function(i){var r=this.right.leafAppend(i);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(i){var r=this.left.leafPrepend(i);if(r)return new t(r,this.right)},t.prototype.appendInner=function(i){return this.left.depth>=Math.max(this.right.depth,i.depth)+1?new t(this.left,new t(this.right,i)):new t(this,i)},t}(It);const OEe=500;class xi{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}let r,a;n&&(r=this.remapping(i,this.items.length),a=r.maps.length);let o=t.tr,s,u,c=[],f=[];return this.items.forEach((h,g)=>{if(!h.step){r||(r=this.remapping(i,g+1),a=r.maps.length),a--,f.push(h);return}if(r){f.push(new Yi(h.map));let p=h.step.map(r.slice(a)),y;p&&o.maybeStep(p).doc&&(y=o.mapping.maps[o.mapping.maps.length-1],c.push(new Yi(y,void 0,void 0,c.length+f.length))),a--,y&&r.appendMap(y,a)}else o.maybeStep(h.step);if(h.selection)return s=r?h.selection.map(r.slice(a)):h.selection,u=new xi(this.items.slice(0,i).append(f.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:u,transform:o,selection:s}}addTransform(t,n,i,r){let a=[],o=this.eventCount,s=this.items,u=!r&&s.length?s.get(s.length-1):null;for(let f=0;f<t.steps.length;f++){let h=t.steps[f].invert(t.docs[f]),g=new Yi(t.mapping.maps[f],h,n),p;(p=u&&u.merge(g))&&(g=p,f?a.pop():s=s.slice(0,s.length-1)),a.push(g),n&&(o++,n=void 0),r||(u=g)}let c=o-i.depth;return c>LEe&&(s=zEe(s,c),o-=c),new xi(s.append(a),o)}remapping(t,n){let i=new Pl;return this.items.forEach((r,a)=>{let o=r.mirrorOffset!=null&&a-r.mirrorOffset>=t?i.maps.length-r.mirrorOffset:void 0;i.appendMap(r.map,o)},t,n),i}addMaps(t){return this.eventCount==0?this:new xi(this.items.append(t.map(n=>new Yi(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let i=[],r=Math.max(0,this.items.length-n),a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(g=>{g.selection&&s--},r);let u=n;this.items.forEach(g=>{let p=a.getMirror(--u);if(p==null)return;o=Math.min(o,p);let y=a.maps[p];if(g.step){let v=t.steps[p].invert(t.docs[p]),k=g.selection&&g.selection.map(a.slice(u+1,p));k&&s++,i.push(new Yi(y,v,k))}else i.push(new Yi(y))},r);let c=[];for(let g=n;g<o;g++)c.push(new Yi(a.maps[g]));let f=this.items.slice(0,r).append(c).append(i),h=new xi(f,s);return h.emptyItemCount()>OEe&&(h=h.compress(this.items.length-i.length)),h}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),i=n.maps.length,r=[],a=0;return this.items.forEach((o,s)=>{if(s>=t)r.push(o),o.selection&&a++;else if(o.step){let u=o.step.map(n.slice(i)),c=u&&u.getMap();if(i--,c&&n.appendMap(c,i),u){let f=o.selection&&o.selection.map(n.slice(i));f&&a++;let h=new Yi(c.invert(),u,f),g,p=r.length-1;(g=r.length&&r[p].merge(h))?r[p]=g:r.push(h)}}else o.map&&i--},this.items.length,0),new xi(It.from(r.reverse()),a)}}xi.empty=new xi(It.empty,0);function zEe(e,t){let n;return e.forEach((i,r)=>{if(i.selection&&t--==0)return n=r,!1}),e.slice(n)}class Yi{constructor(t,n,i,r){this.map=t,this.step=n,this.selection=i,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Yi(n.getMap().invert(),n,this.selection)}}}class ra{constructor(t,n,i,r,a){this.done=t,this.undone=n,this.prevRanges=i,this.prevTime=r,this.prevComposition=a}}const LEe=20;function $Ee(e,t,n,i){let r=n.getMeta(oo),a;if(r)return r.historyState;n.getMeta(BEe)&&(e=new ra(e.done,e.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(o&&o.getMeta(oo))return o.getMeta(oo).redo?new ra(e.done.addTransform(n,void 0,i,gf(t)),e.undone,o5(n.mapping.maps),e.prevTime,e.prevComposition):new ra(e.done,e.undone.addTransform(n,void 0,i,gf(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),u=e.prevTime==0||!o&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-i.newGroupDelay||!HEe(n,e.prevRanges)),c=o?Ag(e.prevRanges,n.mapping):o5(n.mapping.maps);return new ra(e.done.addTransform(n,u?t.selection.getBookmark():void 0,i,gf(t)),xi.empty,c,n.time,s??e.prevComposition)}else return(a=n.getMeta("rebased"))?new ra(e.done.rebased(n,a),e.undone.rebased(n,a),Ag(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new ra(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),Ag(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function HEe(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((i,r)=>{for(let a=0;a<t.length;a+=2)i<=t[a+1]&&r>=t[a]&&(n=!0)}),n}function o5(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((i,r,a,o)=>t.push(a,o));return t}function Ag(e,t){if(!e)return null;let n=[];for(let i=0;i<e.length;i+=2){let r=t.map(e[i],1),a=t.map(e[i+1],-1);r<=a&&n.push(r,a)}return n}function REe(e,t,n){let i=gf(t),r=oo.get(t).spec.config,a=(n?e.undone:e.done).popEvent(t,i);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(n?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),r,i),u=new ra(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(oo,{redo:n,historyState:u})}let Dg=!1,s5=null;function gf(e){let t=e.plugins;if(s5!=t){Dg=!1,s5=t;for(let n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){Dg=!0;break}}return Dg}const oo=new jt("history"),BEe=new jt("closeHistory");function VEe(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new ct({key:oo,state:{init(){return new ra(xi.empty,xi.empty,null,0,-1)},apply(t,n,i){return $Ee(n,i,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(t,n){let i=n.inputType,r=i=="historyUndo"?u5:i=="historyRedo"?d5:null;return r?(n.preventDefault(),r(t.state,t.dispatch)):!1}}}})}function l5(e,t){return(n,i)=>{let r=oo.getState(n);if(!r||(e?r.undone:r.done).eventCount==0)return!1;if(i){let a=REe(r,n,e);a&&i(t?a.scrollIntoView():a)}return!0}}const u5=l5(!1,!0),d5=l5(!0,!0);Ct.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(t=>t!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=(e==null?void 0:e.node)||this.editor.state.doc;if(((e==null?void 0:e.mode)||this.options.mode)==="textSize"){const i=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(i)}return t.nodeSize},this.storage.words=e=>{const t=(e==null?void 0:e.node)||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new ct({key:new jt("characterCount"),appendTransaction:(t,n,i)=>{if(e)return;const r=this.options.limit;if(r==null||r===0){e=!0;return}const a=this.storage.characters({node:i.doc});if(a>r){const o=a-r,s=0,u=o;console.warn(`[CharacterCount] Initial content exceeded limit of ${r} characters. Content was automatically trimmed.`);const c=i.tr.deleteRange(s,u);return e=!0,c}e=!0},filterTransaction:(t,n)=>{const i=this.options.limit;if(!t.docChanged||i===0||i===null||i===void 0)return!0;const r=this.storage.characters({node:n.doc}),a=this.storage.characters({node:t.doc});if(a<=i||r>i&&a>i&&a<=r)return!0;if(r>i&&a>i&&a>r||!t.getMeta("paste"))return!1;const s=t.selection.$head.pos,u=a-i,c=s-u,f=s;return t.deleteRange(c,f),!(this.storage.characters({node:t.doc})>i)}})]}});var FEe=Ct.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[_Ee(this.options)]}});Ct.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new ct({key:new jt("focus"),props:{decorations:({doc:e,selection:t})=>{const{isEditable:n,isFocused:i}=this.editor,{anchor:r}=t,a=[];if(!n||!i)return st.create(e,[]);let o=0;this.options.mode==="deepest"&&e.descendants((u,c)=>{if(u.isText)return;if(!(r>=c&&r<=c+u.nodeSize-1))return!1;o+=1});let s=0;return e.descendants((u,c)=>{if(u.isText||!(r>=c&&r<=c+u.nodeSize-1))return!1;if(s+=1,this.options.mode==="deepest"&&o-s>0||this.options.mode==="shallowest"&&s>1)return this.options.mode==="deepest";a.push(mn.node(c,c+u.nodeSize,{class:this.options.className}))}),st.create(e,a)}}})]}});var UEe=Ct.create({name:"gapCursor",addProseMirrorPlugins(){return[AEe()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=Fe(ge(e,"allowGapCursor",n)))!=null?t:null}}}),YEe=Ct.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new ct({key:new jt("placeholder"),props:{decorations:({doc:e,selection:t})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=t,r=[];if(!n)return null;const a=this.editor.isEmpty;return e.descendants((o,s)=>{const u=i>=s&&i<=s+o.nodeSize,c=!o.isLeaf&&Pc(o);if((u||!this.options.showOnlyCurrent)&&c){const f=[this.options.emptyNodeClass];a&&f.push(this.options.emptyEditorClass);const h=mn.node(s,s+o.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:o,pos:s,hasAnchor:u}):this.options.placeholder});r.push(h)}return this.options.includeChildren}),st.create(e,r)}}})]}});Ct.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:e,options:t}=this;return[new ct({key:new jt("selection"),props:{decorations(n){return n.selection.empty||e.isFocused||!e.isEditable||uk(n.selection)||e.view.dragging?null:st.create(n.doc,[mn.inline(n.selection.from,n.selection.to,{class:t.className})])}}})]}});function c5({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(t==null?void 0:t.type)===e}var XEe=Ct.create({name:"trailingNode",addOptions(){return{node:"paragraph",notAfter:[]}},addProseMirrorPlugins(){const e=new jt(this.name),t=Object.entries(this.editor.schema.nodes).map(([,n])=>n).filter(n=>(this.options.notAfter||[]).concat(this.options.node).includes(n.name));return[new ct({key:e,appendTransaction:(n,i,r)=>{const{doc:a,tr:o,schema:s}=r,u=e.getState(r),c=a.content.size,f=s.nodes[this.options.node];if(u)return o.insert(c,f.create())},state:{init:(n,i)=>{const r=i.tr.doc.lastChild;return!c5({node:r,types:t})},apply:(n,i)=>{if(!n.docChanged)return i;const r=n.doc.lastChild;return!c5({node:r,types:t})}}})]}}),qEe=Ct.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>u5(e,t),redo:()=>({state:e,dispatch:t})=>d5(e,t)}},addProseMirrorPlugins(){return[VEe(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),GEe=Ct.create({name:"starterKit",addExtensions(){var e,t,n,i;const r=[];return this.options.bold!==!1&&r.push(xPe.configure(this.options.bold)),this.options.blockquote!==!1&&r.push(wPe.configure(this.options.blockquote)),this.options.bulletList!==!1&&r.push(qk.configure(this.options.bulletList)),this.options.code!==!1&&r.push(TPe.configure(this.options.code)),this.options.codeBlock!==!1&&r.push(APe.configure(this.options.codeBlock)),this.options.document!==!1&&r.push(DPe.configure(this.options.document)),this.options.dropcursor!==!1&&r.push(FEe.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&r.push(UEe.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&r.push(NPe.configure(this.options.hardBreak)),this.options.heading!==!1&&r.push(jPe.configure(this.options.heading)),this.options.undoRedo!==!1&&r.push(qEe.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&r.push(IPe.configure(this.options.horizontalRule)),this.options.italic!==!1&&r.push($Pe.configure(this.options.italic)),this.options.listItem!==!1&&r.push(Gk.configure(this.options.listItem)),this.options.listKeymap!==!1&&r.push(t5.configure((e=this.options)==null?void 0:e.listKeymap)),this.options.link!==!1&&r.push(Uk.configure((t=this.options)==null?void 0:t.link)),this.options.orderedList!==!1&&r.push(r5.configure(this.options.orderedList)),this.options.paragraph!==!1&&r.push(vEe.configure(this.options.paragraph)),this.options.strike!==!1&&r.push(CEe.configure(this.options.strike)),this.options.text!==!1&&r.push(xEe.configure(this.options.text)),this.options.underline!==!1&&r.push(SEe.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&r.push(XEe.configure((i=this.options)==null?void 0:i.trailingNode)),r}}),KEe=GEe,QEe=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,JEe=pn.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",ft(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[Tk({find:QEe,type:this.type,getAttributes:e=>{const[,,t,n,i]=e;return{src:n,alt:t,title:i}}})]}}),ZEe=JEe,eAe=YEe;const f5="https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64",h5={recent:"Recently used",smileys_people:"Smiles & People",animals_nature:"Animals & Nature",food_drink:"Food & Drink",activities:"Activities",travel_places:"Travel places",objects:"Objects",symbols:"Symbols",flags:"Flags"},m5="u",yf="n",bf="v",tu="r",tAe={[yf]:["grinning face","grinning"],[m5]:"1f600",[tu]:"1f600"},wf="neutral",nAe=[wf,"1f3fb","1f3fc","1f3fd","1f3fe","1f3ff"],iAe={placeholder:"Search emoji",skinTone:"Skin tone"},rAe=["light","dark","auto"];var aAe={smileys_people:[{n:["grinning face","grinning"],u:"1f600"},{n:["grinning face with smiling eyes","grin"],u:"1f601"},{n:["face with tears of joy","joy"],u:"1f602"},{n:["rolling on the floor laughing","rolling_on_the_floor_laughing"],u:"1f923"},{n:["smiling face with open mouth","smiley"],u:"1f603"},{n:["smiling face with open mouth and smiling eyes","smile"],u:"1f604"},{n:["smiling face with open mouth and cold sweat","sweat_smile"],u:"1f605"},{n:["smiling face with open mouth and tightly-closed eyes","laughing","satisfied"],u:"1f606"},{n:["winking face","wink"],u:"1f609"},{n:["smiling face with smiling eyes","blush"],u:"1f60a"},{n:["face savouring delicious food","yum"],u:"1f60b"},{n:["smiling face with sunglasses","sunglasses"],u:"1f60e"},{n:["smiling face with heart-shaped eyes","heart_eyes"],u:"1f60d"},{n:["face throwing a kiss","kissing_heart"],u:"1f618"},{n:["kissing face","kissing"],u:"1f617"},{n:["kissing face with smiling eyes","kissing_smiling_eyes"],u:"1f619"},{n:["kissing face with closed eyes","kissing_closed_eyes"],u:"1f61a"},{n:["white smiling face","relaxed"],u:"263a-fe0f"},{n:["slightly smiling face","slightly_smiling_face"],u:"1f642"},{n:["hugging face","hugging_face"],u:"1f917"},{n:["grinning face with star eyes","star-struck","grinning_face_with_star_eyes"],u:"1f929"},{n:["thinking face","thinking_face"],u:"1f914"},{n:["face with one eyebrow raised","face_with_raised_eyebrow","face_with_one_eyebrow_raised"],u:"1f928"},{n:["neutral face","neutral_face"],u:"1f610"},{n:["expressionless face","expressionless"],u:"1f611"},{n:["face without mouth","no_mouth"],u:"1f636"},{n:["face with rolling eyes","face_with_rolling_eyes"],u:"1f644"},{n:["smirking face","smirk"],u:"1f60f"},{n:["persevering face","persevere"],u:"1f623"},{n:["disappointed but relieved face","disappointed_relieved"],u:"1f625"},{n:["face with open mouth","open_mouth"],u:"1f62e"},{n:["zipper-mouth face","zipper_mouth_face"],u:"1f910"},{n:["hushed face","hushed"],u:"1f62f"},{n:["sleepy face","sleepy"],u:"1f62a"},{n:["tired face","tired_face"],u:"1f62b"},{n:["sleeping face","sleeping"],u:"1f634"},{n:["relieved face","relieved"],u:"1f60c"},{n:["face with stuck-out tongue","stuck_out_tongue"],u:"1f61b"},{n:["face with stuck-out tongue and winking eye","stuck_out_tongue_winking_eye"],u:"1f61c"},{n:["face with stuck-out tongue and tightly-closed eyes","stuck_out_tongue_closed_eyes"],u:"1f61d"},{n:["drooling face","drooling_face"],u:"1f924"},{n:["unamused face","unamused"],u:"1f612"},{n:["face with cold sweat","sweat"],u:"1f613"},{n:["pensive face","pensive"],u:"1f614"},{n:["confused face","confused"],u:"1f615"},{n:["upside-down face","upside_down_face"],u:"1f643"},{n:["money-mouth face","money_mouth_face"],u:"1f911"},{n:["astonished face","astonished"],u:"1f632"},{n:["white_frowning_face"],u:"2639-fe0f"},{n:["slightly frowning face","slightly_frowning_face"],u:"1f641"},{n:["confounded face","confounded"],u:"1f616"},{n:["disappointed face","disappointed"],u:"1f61e"},{n:["worried face","worried"],u:"1f61f"},{n:["face with look of triumph","triumph"],u:"1f624"},{n:["crying face","cry"],u:"1f622"},{n:["loudly crying face","sob"],u:"1f62d"},{n:["frowning face with open mouth","frowning"],u:"1f626"},{n:["anguished face","anguished"],u:"1f627"},{n:["fearful face","fearful"],u:"1f628"},{n:["weary face","weary"],u:"1f629"},{n:["shocked face with exploding head","exploding_head","shocked_face_with_exploding_head"],u:"1f92f"},{n:["grimacing face","grimacing"],u:"1f62c"},{n:["face with open mouth and cold sweat","cold_sweat"],u:"1f630"},{n:["face screaming in fear","scream"],u:"1f631"},{n:["flushed face","flushed"],u:"1f633"},{n:["grinning face with one large and one small eye","zany_face","grinning_face_with_one_large_and_one_small_eye"],u:"1f92a"},{n:["dizzy face","dizzy_face"],u:"1f635"},{n:["pouting face","rage"],u:"1f621"},{n:["angry face","angry"],u:"1f620"},{n:["serious face with symbols covering mouth","face_with_symbols_on_mouth","serious_face_with_symbols_covering_mouth"],u:"1f92c"},{n:["face with medical mask","mask"],u:"1f637"},{n:["face with thermometer","face_with_thermometer"],u:"1f912"},{n:["face with head-bandage","face_with_head_bandage"],u:"1f915"},{n:["nauseated face","nauseated_face"],u:"1f922"},{n:["face with open mouth vomiting","face_vomiting","face_with_open_mouth_vomiting"],u:"1f92e"},{n:["sneezing face","sneezing_face"],u:"1f927"},{n:["smiling face with halo","innocent"],u:"1f607"},{n:["face with cowboy hat","face_with_cowboy_hat"],u:"1f920"},{n:["clown face","clown_face"],u:"1f921"},{n:["lying face","lying_face"],u:"1f925"},{n:["face with finger covering closed lips","shushing_face","face_with_finger_covering_closed_lips"],u:"1f92b"},{n:["smiling face with smiling eyes and hand covering mouth","face_with_hand_over_mouth","smiling_face_with_smiling_eyes_and_hand_covering_mouth"],u:"1f92d"},{n:["face with monocle","face_with_monocle"],u:"1f9d0"},{n:["nerd face","nerd_face"],u:"1f913"},{n:["smiling face with horns","smiling_imp"],u:"1f608"},{n:["imp"],u:"1f47f"},{n:["japanese ogre","japanese_ogre"],u:"1f479"},{n:["japanese goblin","japanese_goblin"],u:"1f47a"},{n:["skull"],u:"1f480"},{n:["skull_and_crossbones"],u:"2620-fe0f"},{n:["ghost"],u:"1f47b"},{n:["extraterrestrial alien","alien"],u:"1f47d"},{n:["alien monster","space_invader"],u:"1f47e"},{n:["robot face","robot_face"],u:"1f916"},{n:["pile of poo","hankey","poop","shit"],u:"1f4a9"},{n:["smiling cat face with open mouth","smiley_cat"],u:"1f63a"},{n:["grinning cat face with smiling eyes","smile_cat"],u:"1f638"},{n:["cat face with tears of joy","joy_cat"],u:"1f639"},{n:["smiling cat face with heart-shaped eyes","heart_eyes_cat"],u:"1f63b"},{n:["cat face with wry smile","smirk_cat"],u:"1f63c"},{n:["kissing cat face with closed eyes","kissing_cat"],u:"1f63d"},{n:["weary cat face","scream_cat"],u:"1f640"},{n:["crying cat face","crying_cat_face"],u:"1f63f"},{n:["pouting cat face","pouting_cat"],u:"1f63e"},{n:["see-no-evil monkey","see_no_evil"],u:"1f648"},{n:["hear-no-evil monkey","hear_no_evil"],u:"1f649"},{n:["speak-no-evil monkey","speak_no_evil"],u:"1f64a"},{n:["baby"],u:"1f476",v:["1f476-1f3fb","1f476-1f3fc","1f476-1f3fd","1f476-1f3fe","1f476-1f3ff"]},{n:["child"],u:"1f9d2",v:["1f9d2-1f3fb","1f9d2-1f3fc","1f9d2-1f3fd","1f9d2-1f3fe","1f9d2-1f3ff"]},{n:["boy"],u:"1f466",v:["1f466-1f3fb","1f466-1f3fc","1f466-1f3fd","1f466-1f3fe","1f466-1f3ff"]},{n:["girl"],u:"1f467",v:["1f467-1f3fb","1f467-1f3fc","1f467-1f3fd","1f467-1f3fe","1f467-1f3ff"]},{n:["adult"],u:"1f9d1",v:["1f9d1-1f3fb","1f9d1-1f3fc","1f9d1-1f3fd","1f9d1-1f3fe","1f9d1-1f3ff"]},{n:["man"],u:"1f468",v:["1f468-1f3fb","1f468-1f3fc","1f468-1f3fd","1f468-1f3fe","1f468-1f3ff"]},{n:["woman"],u:"1f469",v:["1f469-1f3fb","1f469-1f3fc","1f469-1f3fd","1f469-1f3fe","1f469-1f3ff"]},{n:["older adult","older_adult"],u:"1f9d3",v:["1f9d3-1f3fb","1f9d3-1f3fc","1f9d3-1f3fd","1f9d3-1f3fe","1f9d3-1f3ff"]},{n:["older man","older_man"],u:"1f474",v:["1f474-1f3fb","1f474-1f3fc","1f474-1f3fd","1f474-1f3fe","1f474-1f3ff"]},{n:["older woman","older_woman"],u:"1f475",v:["1f475-1f3fb","1f475-1f3fc","1f475-1f3fd","1f475-1f3fe","1f475-1f3ff"]},{n:["male-doctor"],u:"1f468-200d-2695-fe0f",v:["1f468-1f3fb-200d-2695-fe0f","1f468-1f3fc-200d-2695-fe0f","1f468-1f3fd-200d-2695-fe0f","1f468-1f3fe-200d-2695-fe0f","1f468-1f3ff-200d-2695-fe0f"]},{n:["female-doctor"],u:"1f469-200d-2695-fe0f",v:["1f469-1f3fb-200d-2695-fe0f","1f469-1f3fc-200d-2695-fe0f","1f469-1f3fd-200d-2695-fe0f","1f469-1f3fe-200d-2695-fe0f","1f469-1f3ff-200d-2695-fe0f"]},{n:["male-student"],u:"1f468-200d-1f393",v:["1f468-1f3fb-200d-1f393","1f468-1f3fc-200d-1f393","1f468-1f3fd-200d-1f393","1f468-1f3fe-200d-1f393","1f468-1f3ff-200d-1f393"]},{n:["female-student"],u:"1f469-200d-1f393",v:["1f469-1f3fb-200d-1f393","1f469-1f3fc-200d-1f393","1f469-1f3fd-200d-1f393","1f469-1f3fe-200d-1f393","1f469-1f3ff-200d-1f393"]},{n:["male-teacher"],u:"1f468-200d-1f3eb",v:["1f468-1f3fb-200d-1f3eb","1f468-1f3fc-200d-1f3eb","1f468-1f3fd-200d-1f3eb","1f468-1f3fe-200d-1f3eb","1f468-1f3ff-200d-1f3eb"]},{n:["female-teacher"],u:"1f469-200d-1f3eb",v:["1f469-1f3fb-200d-1f3eb","1f469-1f3fc-200d-1f3eb","1f469-1f3fd-200d-1f3eb","1f469-1f3fe-200d-1f3eb","1f469-1f3ff-200d-1f3eb"]},{n:["male-judge"],u:"1f468-200d-2696-fe0f",v:["1f468-1f3fb-200d-2696-fe0f","1f468-1f3fc-200d-2696-fe0f","1f468-1f3fd-200d-2696-fe0f","1f468-1f3fe-200d-2696-fe0f","1f468-1f3ff-200d-2696-fe0f"]},{n:["female-judge"],u:"1f469-200d-2696-fe0f",v:["1f469-1f3fb-200d-2696-fe0f","1f469-1f3fc-200d-2696-fe0f","1f469-1f3fd-200d-2696-fe0f","1f469-1f3fe-200d-2696-fe0f","1f469-1f3ff-200d-2696-fe0f"]},{n:["male-farmer"],u:"1f468-200d-1f33e",v:["1f468-1f3fb-200d-1f33e","1f468-1f3fc-200d-1f33e","1f468-1f3fd-200d-1f33e","1f468-1f3fe-200d-1f33e","1f468-1f3ff-200d-1f33e"]},{n:["female-farmer"],u:"1f469-200d-1f33e",v:["1f469-1f3fb-200d-1f33e","1f469-1f3fc-200d-1f33e","1f469-1f3fd-200d-1f33e","1f469-1f3fe-200d-1f33e","1f469-1f3ff-200d-1f33e"]},{n:["male-cook"],u:"1f468-200d-1f373",v:["1f468-1f3fb-200d-1f373","1f468-1f3fc-200d-1f373","1f468-1f3fd-200d-1f373","1f468-1f3fe-200d-1f373","1f468-1f3ff-200d-1f373"]},{n:["female-cook"],u:"1f469-200d-1f373",v:["1f469-1f3fb-200d-1f373","1f469-1f3fc-200d-1f373","1f469-1f3fd-200d-1f373","1f469-1f3fe-200d-1f373","1f469-1f3ff-200d-1f373"]},{n:["male-mechanic"],u:"1f468-200d-1f527",v:["1f468-1f3fb-200d-1f527","1f468-1f3fc-200d-1f527","1f468-1f3fd-200d-1f527","1f468-1f3fe-200d-1f527","1f468-1f3ff-200d-1f527"]},{n:["female-mechanic"],u:"1f469-200d-1f527",v:["1f469-1f3fb-200d-1f527","1f469-1f3fc-200d-1f527","1f469-1f3fd-200d-1f527","1f469-1f3fe-200d-1f527","1f469-1f3ff-200d-1f527"]},{n:["male-factory-worker"],u:"1f468-200d-1f3ed",v:["1f468-1f3fb-200d-1f3ed","1f468-1f3fc-200d-1f3ed","1f468-1f3fd-200d-1f3ed","1f468-1f3fe-200d-1f3ed","1f468-1f3ff-200d-1f3ed"]},{n:["female-factory-worker"],u:"1f469-200d-1f3ed",v:["1f469-1f3fb-200d-1f3ed","1f469-1f3fc-200d-1f3ed","1f469-1f3fd-200d-1f3ed","1f469-1f3fe-200d-1f3ed","1f469-1f3ff-200d-1f3ed"]},{n:["male-office-worker"],u:"1f468-200d-1f4bc",v:["1f468-1f3fb-200d-1f4bc","1f468-1f3fc-200d-1f4bc","1f468-1f3fd-200d-1f4bc","1f468-1f3fe-200d-1f4bc","1f468-1f3ff-200d-1f4bc"]},{n:["female-office-worker"],u:"1f469-200d-1f4bc",v:["1f469-1f3fb-200d-1f4bc","1f469-1f3fc-200d-1f4bc","1f469-1f3fd-200d-1f4bc","1f469-1f3fe-200d-1f4bc","1f469-1f3ff-200d-1f4bc"]},{n:["male-scientist"],u:"1f468-200d-1f52c",v:["1f468-1f3fb-200d-1f52c","1f468-1f3fc-200d-1f52c","1f468-1f3fd-200d-1f52c","1f468-1f3fe-200d-1f52c","1f468-1f3ff-200d-1f52c"]},{n:["female-scientist"],u:"1f469-200d-1f52c",v:["1f469-1f3fb-200d-1f52c","1f469-1f3fc-200d-1f52c","1f469-1f3fd-200d-1f52c","1f469-1f3fe-200d-1f52c","1f469-1f3ff-200d-1f52c"]},{n:["male-technologist"],u:"1f468-200d-1f4bb",v:["1f468-1f3fb-200d-1f4bb","1f468-1f3fc-200d-1f4bb","1f468-1f3fd-200d-1f4bb","1f468-1f3fe-200d-1f4bb","1f468-1f3ff-200d-1f4bb"]},{n:["female-technologist"],u:"1f469-200d-1f4bb",v:["1f469-1f3fb-200d-1f4bb","1f469-1f3fc-200d-1f4bb","1f469-1f3fd-200d-1f4bb","1f469-1f3fe-200d-1f4bb","1f469-1f3ff-200d-1f4bb"]},{n:["male-singer"],u:"1f468-200d-1f3a4",v:["1f468-1f3fb-200d-1f3a4","1f468-1f3fc-200d-1f3a4","1f468-1f3fd-200d-1f3a4","1f468-1f3fe-200d-1f3a4","1f468-1f3ff-200d-1f3a4"]},{n:["female-singer"],u:"1f469-200d-1f3a4",v:["1f469-1f3fb-200d-1f3a4","1f469-1f3fc-200d-1f3a4","1f469-1f3fd-200d-1f3a4","1f469-1f3fe-200d-1f3a4","1f469-1f3ff-200d-1f3a4"]},{n:["male-artist"],u:"1f468-200d-1f3a8",v:["1f468-1f3fb-200d-1f3a8","1f468-1f3fc-200d-1f3a8","1f468-1f3fd-200d-1f3a8","1f468-1f3fe-200d-1f3a8","1f468-1f3ff-200d-1f3a8"]},{n:["female-artist"],u:"1f469-200d-1f3a8",v:["1f469-1f3fb-200d-1f3a8","1f469-1f3fc-200d-1f3a8","1f469-1f3fd-200d-1f3a8","1f469-1f3fe-200d-1f3a8","1f469-1f3ff-200d-1f3a8"]},{n:["male-pilot"],u:"1f468-200d-2708-fe0f",v:["1f468-1f3fb-200d-2708-fe0f","1f468-1f3fc-200d-2708-fe0f","1f468-1f3fd-200d-2708-fe0f","1f468-1f3fe-200d-2708-fe0f","1f468-1f3ff-200d-2708-fe0f"]},{n:["female-pilot"],u:"1f469-200d-2708-fe0f",v:["1f469-1f3fb-200d-2708-fe0f","1f469-1f3fc-200d-2708-fe0f","1f469-1f3fd-200d-2708-fe0f","1f469-1f3fe-200d-2708-fe0f","1f469-1f3ff-200d-2708-fe0f"]},{n:["male-astronaut"],u:"1f468-200d-1f680",v:["1f468-1f3fb-200d-1f680","1f468-1f3fc-200d-1f680","1f468-1f3fd-200d-1f680","1f468-1f3fe-200d-1f680","1f468-1f3ff-200d-1f680"]},{n:["female-astronaut"],u:"1f469-200d-1f680",v:["1f469-1f3fb-200d-1f680","1f469-1f3fc-200d-1f680","1f469-1f3fd-200d-1f680","1f469-1f3fe-200d-1f680","1f469-1f3ff-200d-1f680"]},{n:["male-firefighter"],u:"1f468-200d-1f692",v:["1f468-1f3fb-200d-1f692","1f468-1f3fc-200d-1f692","1f468-1f3fd-200d-1f692","1f468-1f3fe-200d-1f692","1f468-1f3ff-200d-1f692"]},{n:["female-firefighter"],u:"1f469-200d-1f692",v:["1f469-1f3fb-200d-1f692","1f469-1f3fc-200d-1f692","1f469-1f3fd-200d-1f692","1f469-1f3fe-200d-1f692","1f469-1f3ff-200d-1f692"]},{n:["police officer","cop"],u:"1f46e",v:["1f46e-1f3fb","1f46e-1f3fc","1f46e-1f3fd","1f46e-1f3fe","1f46e-1f3ff"]},{n:["male-police-officer"],u:"1f46e-200d-2642-fe0f",v:["1f46e-1f3fb-200d-2642-fe0f","1f46e-1f3fc-200d-2642-fe0f","1f46e-1f3fd-200d-2642-fe0f","1f46e-1f3fe-200d-2642-fe0f","1f46e-1f3ff-200d-2642-fe0f"]},{n:["female-police-officer"],u:"1f46e-200d-2640-fe0f",v:["1f46e-1f3fb-200d-2640-fe0f","1f46e-1f3fc-200d-2640-fe0f","1f46e-1f3fd-200d-2640-fe0f","1f46e-1f3fe-200d-2640-fe0f","1f46e-1f3ff-200d-2640-fe0f"]},{n:["sleuth_or_spy"],u:"1f575-fe0f",v:["1f575-1f3fb","1f575-1f3fc","1f575-1f3fd","1f575-1f3fe","1f575-1f3ff"]},{n:["male-detective"],u:"1f575-fe0f-200d-2642-fe0f",v:["1f575-1f3fb-200d-2642-fe0f","1f575-1f3fc-200d-2642-fe0f","1f575-1f3fd-200d-2642-fe0f","1f575-1f3fe-200d-2642-fe0f","1f575-1f3ff-200d-2642-fe0f"]},{n:["female-detective"],u:"1f575-fe0f-200d-2640-fe0f",v:["1f575-1f3fb-200d-2640-fe0f","1f575-1f3fc-200d-2640-fe0f","1f575-1f3fd-200d-2640-fe0f","1f575-1f3fe-200d-2640-fe0f","1f575-1f3ff-200d-2640-fe0f"]},{n:["guardsman"],u:"1f482",v:["1f482-1f3fb","1f482-1f3fc","1f482-1f3fd","1f482-1f3fe","1f482-1f3ff"]},{n:["male-guard"],u:"1f482-200d-2642-fe0f",v:["1f482-1f3fb-200d-2642-fe0f","1f482-1f3fc-200d-2642-fe0f","1f482-1f3fd-200d-2642-fe0f","1f482-1f3fe-200d-2642-fe0f","1f482-1f3ff-200d-2642-fe0f"]},{n:["female-guard"],u:"1f482-200d-2640-fe0f",v:["1f482-1f3fb-200d-2640-fe0f","1f482-1f3fc-200d-2640-fe0f","1f482-1f3fd-200d-2640-fe0f","1f482-1f3fe-200d-2640-fe0f","1f482-1f3ff-200d-2640-fe0f"]},{n:["construction worker","construction_worker"],u:"1f477",v:["1f477-1f3fb","1f477-1f3fc","1f477-1f3fd","1f477-1f3fe","1f477-1f3ff"]},{n:["male-construction-worker"],u:"1f477-200d-2642-fe0f",v:["1f477-1f3fb-200d-2642-fe0f","1f477-1f3fc-200d-2642-fe0f","1f477-1f3fd-200d-2642-fe0f","1f477-1f3fe-200d-2642-fe0f","1f477-1f3ff-200d-2642-fe0f"]},{n:["female-construction-worker"],u:"1f477-200d-2640-fe0f",v:["1f477-1f3fb-200d-2640-fe0f","1f477-1f3fc-200d-2640-fe0f","1f477-1f3fd-200d-2640-fe0f","1f477-1f3fe-200d-2640-fe0f","1f477-1f3ff-200d-2640-fe0f"]},{n:["prince"],u:"1f934",v:["1f934-1f3fb","1f934-1f3fc","1f934-1f3fd","1f934-1f3fe","1f934-1f3ff"]},{n:["princess"],u:"1f478",v:["1f478-1f3fb","1f478-1f3fc","1f478-1f3fd","1f478-1f3fe","1f478-1f3ff"]},{n:["man with turban","man_with_turban"],u:"1f473",v:["1f473-1f3fb","1f473-1f3fc","1f473-1f3fd","1f473-1f3fe","1f473-1f3ff"]},{n:["man-wearing-turban"],u:"1f473-200d-2642-fe0f",v:["1f473-1f3fb-200d-2642-fe0f","1f473-1f3fc-200d-2642-fe0f","1f473-1f3fd-200d-2642-fe0f","1f473-1f3fe-200d-2642-fe0f","1f473-1f3ff-200d-2642-fe0f"]},{n:["woman-wearing-turban"],u:"1f473-200d-2640-fe0f",v:["1f473-1f3fb-200d-2640-fe0f","1f473-1f3fc-200d-2640-fe0f","1f473-1f3fd-200d-2640-fe0f","1f473-1f3fe-200d-2640-fe0f","1f473-1f3ff-200d-2640-fe0f"]},{n:["man with gua pi mao","man_with_gua_pi_mao"],u:"1f472",v:["1f472-1f3fb","1f472-1f3fc","1f472-1f3fd","1f472-1f3fe","1f472-1f3ff"]},{n:["person with headscarf","person_with_headscarf"],u:"1f9d5",v:["1f9d5-1f3fb","1f9d5-1f3fc","1f9d5-1f3fd","1f9d5-1f3fe","1f9d5-1f3ff"]},{n:["bearded person","bearded_person"],u:"1f9d4",v:["1f9d4-1f3fb","1f9d4-1f3fc","1f9d4-1f3fd","1f9d4-1f3fe","1f9d4-1f3ff"]},{n:["person with blond hair","person_with_blond_hair"],u:"1f471",v:["1f471-1f3fb","1f471-1f3fc","1f471-1f3fd","1f471-1f3fe","1f471-1f3ff"]},{n:["blond-haired-man"],u:"1f471-200d-2642-fe0f",v:["1f471-1f3fb-200d-2642-fe0f","1f471-1f3fc-200d-2642-fe0f","1f471-1f3fd-200d-2642-fe0f","1f471-1f3fe-200d-2642-fe0f","1f471-1f3ff-200d-2642-fe0f"]},{n:["blond-haired-woman"],u:"1f471-200d-2640-fe0f",v:["1f471-1f3fb-200d-2640-fe0f","1f471-1f3fc-200d-2640-fe0f","1f471-1f3fd-200d-2640-fe0f","1f471-1f3fe-200d-2640-fe0f","1f471-1f3ff-200d-2640-fe0f"]},{n:["man in tuxedo","man_in_tuxedo"],u:"1f935",v:["1f935-1f3fb","1f935-1f3fc","1f935-1f3fd","1f935-1f3fe","1f935-1f3ff"]},{n:["bride with veil","bride_with_veil"],u:"1f470",v:["1f470-1f3fb","1f470-1f3fc","1f470-1f3fd","1f470-1f3fe","1f470-1f3ff"]},{n:["pregnant woman","pregnant_woman"],u:"1f930",v:["1f930-1f3fb","1f930-1f3fc","1f930-1f3fd","1f930-1f3fe","1f930-1f3ff"]},{n:["breast-feeding"],u:"1f931",v:["1f931-1f3fb","1f931-1f3fc","1f931-1f3fd","1f931-1f3fe","1f931-1f3ff"]},{n:["baby angel","angel"],u:"1f47c",v:["1f47c-1f3fb","1f47c-1f3fc","1f47c-1f3fd","1f47c-1f3fe","1f47c-1f3ff"]},{n:["father christmas","santa"],u:"1f385",v:["1f385-1f3fb","1f385-1f3fc","1f385-1f3fd","1f385-1f3fe","1f385-1f3ff"]},{n:["mother christmas","mrs_claus","mother_christmas"],u:"1f936",v:["1f936-1f3fb","1f936-1f3fc","1f936-1f3fd","1f936-1f3fe","1f936-1f3ff"]},{n:["mage"],u:"1f9d9",v:["1f9d9-1f3fb","1f9d9-1f3fc","1f9d9-1f3fd","1f9d9-1f3fe","1f9d9-1f3ff"]},{n:["female_mage"],u:"1f9d9-200d-2640-fe0f",v:["1f9d9-1f3fb-200d-2640-fe0f","1f9d9-1f3fc-200d-2640-fe0f","1f9d9-1f3fd-200d-2640-fe0f","1f9d9-1f3fe-200d-2640-fe0f","1f9d9-1f3ff-200d-2640-fe0f"]},{n:["male_mage"],u:"1f9d9-200d-2642-fe0f",v:["1f9d9-1f3fb-200d-2642-fe0f","1f9d9-1f3fc-200d-2642-fe0f","1f9d9-1f3fd-200d-2642-fe0f","1f9d9-1f3fe-200d-2642-fe0f","1f9d9-1f3ff-200d-2642-fe0f"]},{n:["fairy"],u:"1f9da",v:["1f9da-1f3fb","1f9da-1f3fc","1f9da-1f3fd","1f9da-1f3fe","1f9da-1f3ff"]},{n:["female_fairy"],u:"1f9da-200d-2640-fe0f",v:["1f9da-1f3fb-200d-2640-fe0f","1f9da-1f3fc-200d-2640-fe0f","1f9da-1f3fd-200d-2640-fe0f","1f9da-1f3fe-200d-2640-fe0f","1f9da-1f3ff-200d-2640-fe0f"]},{n:["male_fairy"],u:"1f9da-200d-2642-fe0f",v:["1f9da-1f3fb-200d-2642-fe0f","1f9da-1f3fc-200d-2642-fe0f","1f9da-1f3fd-200d-2642-fe0f","1f9da-1f3fe-200d-2642-fe0f","1f9da-1f3ff-200d-2642-fe0f"]},{n:["vampire"],u:"1f9db",v:["1f9db-1f3fb","1f9db-1f3fc","1f9db-1f3fd","1f9db-1f3fe","1f9db-1f3ff"]},{n:["female_vampire"],u:"1f9db-200d-2640-fe0f",v:["1f9db-1f3fb-200d-2640-fe0f","1f9db-1f3fc-200d-2640-fe0f","1f9db-1f3fd-200d-2640-fe0f","1f9db-1f3fe-200d-2640-fe0f","1f9db-1f3ff-200d-2640-fe0f"]},{n:["male_vampire"],u:"1f9db-200d-2642-fe0f",v:["1f9db-1f3fb-200d-2642-fe0f","1f9db-1f3fc-200d-2642-fe0f","1f9db-1f3fd-200d-2642-fe0f","1f9db-1f3fe-200d-2642-fe0f","1f9db-1f3ff-200d-2642-fe0f"]},{n:["merperson"],u:"1f9dc",v:["1f9dc-1f3fb","1f9dc-1f3fc","1f9dc-1f3fd","1f9dc-1f3fe","1f9dc-1f3ff"]},{n:["mermaid"],u:"1f9dc-200d-2640-fe0f",v:["1f9dc-1f3fb-200d-2640-fe0f","1f9dc-1f3fc-200d-2640-fe0f","1f9dc-1f3fd-200d-2640-fe0f","1f9dc-1f3fe-200d-2640-fe0f","1f9dc-1f3ff-200d-2640-fe0f"]},{n:["merman"],u:"1f9dc-200d-2642-fe0f",v:["1f9dc-1f3fb-200d-2642-fe0f","1f9dc-1f3fc-200d-2642-fe0f","1f9dc-1f3fd-200d-2642-fe0f","1f9dc-1f3fe-200d-2642-fe0f","1f9dc-1f3ff-200d-2642-fe0f"]},{n:["elf"],u:"1f9dd",v:["1f9dd-1f3fb","1f9dd-1f3fc","1f9dd-1f3fd","1f9dd-1f3fe","1f9dd-1f3ff"]},{n:["female_elf"],u:"1f9dd-200d-2640-fe0f",v:["1f9dd-1f3fb-200d-2640-fe0f","1f9dd-1f3fc-200d-2640-fe0f","1f9dd-1f3fd-200d-2640-fe0f","1f9dd-1f3fe-200d-2640-fe0f","1f9dd-1f3ff-200d-2640-fe0f"]},{n:["male_elf"],u:"1f9dd-200d-2642-fe0f",v:["1f9dd-1f3fb-200d-2642-fe0f","1f9dd-1f3fc-200d-2642-fe0f","1f9dd-1f3fd-200d-2642-fe0f","1f9dd-1f3fe-200d-2642-fe0f","1f9dd-1f3ff-200d-2642-fe0f"]},{n:["genie"],u:"1f9de"},{n:["female_genie"],u:"1f9de-200d-2640-fe0f"},{n:["male_genie"],u:"1f9de-200d-2642-fe0f"},{n:["zombie"],u:"1f9df"},{n:["female_zombie"],u:"1f9df-200d-2640-fe0f"},{n:["male_zombie"],u:"1f9df-200d-2642-fe0f"},{n:["person frowning","person_frowning"],u:"1f64d",v:["1f64d-1f3fb","1f64d-1f3fc","1f64d-1f3fd","1f64d-1f3fe","1f64d-1f3ff"]},{n:["man-frowning"],u:"1f64d-200d-2642-fe0f",v:["1f64d-1f3fb-200d-2642-fe0f","1f64d-1f3fc-200d-2642-fe0f","1f64d-1f3fd-200d-2642-fe0f","1f64d-1f3fe-200d-2642-fe0f","1f64d-1f3ff-200d-2642-fe0f"]},{n:["woman-frowning"],u:"1f64d-200d-2640-fe0f",v:["1f64d-1f3fb-200d-2640-fe0f","1f64d-1f3fc-200d-2640-fe0f","1f64d-1f3fd-200d-2640-fe0f","1f64d-1f3fe-200d-2640-fe0f","1f64d-1f3ff-200d-2640-fe0f"]},{n:["person with pouting face","person_with_pouting_face"],u:"1f64e",v:["1f64e-1f3fb","1f64e-1f3fc","1f64e-1f3fd","1f64e-1f3fe","1f64e-1f3ff"]},{n:["man-pouting"],u:"1f64e-200d-2642-fe0f",v:["1f64e-1f3fb-200d-2642-fe0f","1f64e-1f3fc-200d-2642-fe0f","1f64e-1f3fd-200d-2642-fe0f","1f64e-1f3fe-200d-2642-fe0f","1f64e-1f3ff-200d-2642-fe0f"]},{n:["woman-pouting"],u:"1f64e-200d-2640-fe0f",v:["1f64e-1f3fb-200d-2640-fe0f","1f64e-1f3fc-200d-2640-fe0f","1f64e-1f3fd-200d-2640-fe0f","1f64e-1f3fe-200d-2640-fe0f","1f64e-1f3ff-200d-2640-fe0f"]},{n:["face with no good gesture","no_good"],u:"1f645",v:["1f645-1f3fb","1f645-1f3fc","1f645-1f3fd","1f645-1f3fe","1f645-1f3ff"]},{n:["man-gesturing-no"],u:"1f645-200d-2642-fe0f",v:["1f645-1f3fb-200d-2642-fe0f","1f645-1f3fc-200d-2642-fe0f","1f645-1f3fd-200d-2642-fe0f","1f645-1f3fe-200d-2642-fe0f","1f645-1f3ff-200d-2642-fe0f"]},{n:["woman-gesturing-no"],u:"1f645-200d-2640-fe0f",v:["1f645-1f3fb-200d-2640-fe0f","1f645-1f3fc-200d-2640-fe0f","1f645-1f3fd-200d-2640-fe0f","1f645-1f3fe-200d-2640-fe0f","1f645-1f3ff-200d-2640-fe0f"]},{n:["face with ok gesture","ok_woman"],u:"1f646",v:["1f646-1f3fb","1f646-1f3fc","1f646-1f3fd","1f646-1f3fe","1f646-1f3ff"]},{n:["man-gesturing-ok"],u:"1f646-200d-2642-fe0f",v:["1f646-1f3fb-200d-2642-fe0f","1f646-1f3fc-200d-2642-fe0f","1f646-1f3fd-200d-2642-fe0f","1f646-1f3fe-200d-2642-fe0f","1f646-1f3ff-200d-2642-fe0f"]},{n:["woman-gesturing-ok"],u:"1f646-200d-2640-fe0f",v:["1f646-1f3fb-200d-2640-fe0f","1f646-1f3fc-200d-2640-fe0f","1f646-1f3fd-200d-2640-fe0f","1f646-1f3fe-200d-2640-fe0f","1f646-1f3ff-200d-2640-fe0f"]},{n:["information desk person","information_desk_person"],u:"1f481",v:["1f481-1f3fb","1f481-1f3fc","1f481-1f3fd","1f481-1f3fe","1f481-1f3ff"]},{n:["man-tipping-hand"],u:"1f481-200d-2642-fe0f",v:["1f481-1f3fb-200d-2642-fe0f","1f481-1f3fc-200d-2642-fe0f","1f481-1f3fd-200d-2642-fe0f","1f481-1f3fe-200d-2642-fe0f","1f481-1f3ff-200d-2642-fe0f"]},{n:["woman-tipping-hand"],u:"1f481-200d-2640-fe0f",v:["1f481-1f3fb-200d-2640-fe0f","1f481-1f3fc-200d-2640-fe0f","1f481-1f3fd-200d-2640-fe0f","1f481-1f3fe-200d-2640-fe0f","1f481-1f3ff-200d-2640-fe0f"]},{n:["happy person raising one hand","raising_hand"],u:"1f64b",v:["1f64b-1f3fb","1f64b-1f3fc","1f64b-1f3fd","1f64b-1f3fe","1f64b-1f3ff"]},{n:["man-raising-hand"],u:"1f64b-200d-2642-fe0f",v:["1f64b-1f3fb-200d-2642-fe0f","1f64b-1f3fc-200d-2642-fe0f","1f64b-1f3fd-200d-2642-fe0f","1f64b-1f3fe-200d-2642-fe0f","1f64b-1f3ff-200d-2642-fe0f"]},{n:["woman-raising-hand"],u:"1f64b-200d-2640-fe0f",v:["1f64b-1f3fb-200d-2640-fe0f","1f64b-1f3fc-200d-2640-fe0f","1f64b-1f3fd-200d-2640-fe0f","1f64b-1f3fe-200d-2640-fe0f","1f64b-1f3ff-200d-2640-fe0f"]},{n:["person bowing deeply","bow"],u:"1f647",v:["1f647-1f3fb","1f647-1f3fc","1f647-1f3fd","1f647-1f3fe","1f647-1f3ff"]},{n:["man-bowing"],u:"1f647-200d-2642-fe0f",v:["1f647-1f3fb-200d-2642-fe0f","1f647-1f3fc-200d-2642-fe0f","1f647-1f3fd-200d-2642-fe0f","1f647-1f3fe-200d-2642-fe0f","1f647-1f3ff-200d-2642-fe0f"]},{n:["woman-bowing"],u:"1f647-200d-2640-fe0f",v:["1f647-1f3fb-200d-2640-fe0f","1f647-1f3fc-200d-2640-fe0f","1f647-1f3fd-200d-2640-fe0f","1f647-1f3fe-200d-2640-fe0f","1f647-1f3ff-200d-2640-fe0f"]},{n:["face palm","face_palm"],u:"1f926",v:["1f926-1f3fb","1f926-1f3fc","1f926-1f3fd","1f926-1f3fe","1f926-1f3ff"]},{n:["man-facepalming"],u:"1f926-200d-2642-fe0f",v:["1f926-1f3fb-200d-2642-fe0f","1f926-1f3fc-200d-2642-fe0f","1f926-1f3fd-200d-2642-fe0f","1f926-1f3fe-200d-2642-fe0f","1f926-1f3ff-200d-2642-fe0f"]},{n:["woman-facepalming"],u:"1f926-200d-2640-fe0f",v:["1f926-1f3fb-200d-2640-fe0f","1f926-1f3fc-200d-2640-fe0f","1f926-1f3fd-200d-2640-fe0f","1f926-1f3fe-200d-2640-fe0f","1f926-1f3ff-200d-2640-fe0f"]},{n:["shrug"],u:"1f937",v:["1f937-1f3fb","1f937-1f3fc","1f937-1f3fd","1f937-1f3fe","1f937-1f3ff"]},{n:["man-shrugging"],u:"1f937-200d-2642-fe0f",v:["1f937-1f3fb-200d-2642-fe0f","1f937-1f3fc-200d-2642-fe0f","1f937-1f3fd-200d-2642-fe0f","1f937-1f3fe-200d-2642-fe0f","1f937-1f3ff-200d-2642-fe0f"]},{n:["woman-shrugging"],u:"1f937-200d-2640-fe0f",v:["1f937-1f3fb-200d-2640-fe0f","1f937-1f3fc-200d-2640-fe0f","1f937-1f3fd-200d-2640-fe0f","1f937-1f3fe-200d-2640-fe0f","1f937-1f3ff-200d-2640-fe0f"]},{n:["face massage","massage"],u:"1f486",v:["1f486-1f3fb","1f486-1f3fc","1f486-1f3fd","1f486-1f3fe","1f486-1f3ff"]},{n:["man-getting-massage"],u:"1f486-200d-2642-fe0f",v:["1f486-1f3fb-200d-2642-fe0f","1f486-1f3fc-200d-2642-fe0f","1f486-1f3fd-200d-2642-fe0f","1f486-1f3fe-200d-2642-fe0f","1f486-1f3ff-200d-2642-fe0f"]},{n:["woman-getting-massage"],u:"1f486-200d-2640-fe0f",v:["1f486-1f3fb-200d-2640-fe0f","1f486-1f3fc-200d-2640-fe0f","1f486-1f3fd-200d-2640-fe0f","1f486-1f3fe-200d-2640-fe0f","1f486-1f3ff-200d-2640-fe0f"]},{n:["haircut"],u:"1f487",v:["1f487-1f3fb","1f487-1f3fc","1f487-1f3fd","1f487-1f3fe","1f487-1f3ff"]},{n:["man-getting-haircut"],u:"1f487-200d-2642-fe0f",v:["1f487-1f3fb-200d-2642-fe0f","1f487-1f3fc-200d-2642-fe0f","1f487-1f3fd-200d-2642-fe0f","1f487-1f3fe-200d-2642-fe0f","1f487-1f3ff-200d-2642-fe0f"]},{n:["woman-getting-haircut"],u:"1f487-200d-2640-fe0f",v:["1f487-1f3fb-200d-2640-fe0f","1f487-1f3fc-200d-2640-fe0f","1f487-1f3fd-200d-2640-fe0f","1f487-1f3fe-200d-2640-fe0f","1f487-1f3ff-200d-2640-fe0f"]},{n:["pedestrian","walking"],u:"1f6b6",v:["1f6b6-1f3fb","1f6b6-1f3fc","1f6b6-1f3fd","1f6b6-1f3fe","1f6b6-1f3ff"]},{n:["man-walking"],u:"1f6b6-200d-2642-fe0f",v:["1f6b6-1f3fb-200d-2642-fe0f","1f6b6-1f3fc-200d-2642-fe0f","1f6b6-1f3fd-200d-2642-fe0f","1f6b6-1f3fe-200d-2642-fe0f","1f6b6-1f3ff-200d-2642-fe0f"]},{n:["woman-walking"],u:"1f6b6-200d-2640-fe0f",v:["1f6b6-1f3fb-200d-2640-fe0f","1f6b6-1f3fc-200d-2640-fe0f","1f6b6-1f3fd-200d-2640-fe0f","1f6b6-1f3fe-200d-2640-fe0f","1f6b6-1f3ff-200d-2640-fe0f"]},{n:["runner","running"],u:"1f3c3",v:["1f3c3-1f3fb","1f3c3-1f3fc","1f3c3-1f3fd","1f3c3-1f3fe","1f3c3-1f3ff"]},{n:["man-running"],u:"1f3c3-200d-2642-fe0f",v:["1f3c3-1f3fb-200d-2642-fe0f","1f3c3-1f3fc-200d-2642-fe0f","1f3c3-1f3fd-200d-2642-fe0f","1f3c3-1f3fe-200d-2642-fe0f","1f3c3-1f3ff-200d-2642-fe0f"]},{n:["woman-running"],u:"1f3c3-200d-2640-fe0f",v:["1f3c3-1f3fb-200d-2640-fe0f","1f3c3-1f3fc-200d-2640-fe0f","1f3c3-1f3fd-200d-2640-fe0f","1f3c3-1f3fe-200d-2640-fe0f","1f3c3-1f3ff-200d-2640-fe0f"]},{n:["dancer"],u:"1f483",v:["1f483-1f3fb","1f483-1f3fc","1f483-1f3fd","1f483-1f3fe","1f483-1f3ff"]},{n:["man dancing","man_dancing"],u:"1f57a",v:["1f57a-1f3fb","1f57a-1f3fc","1f57a-1f3fd","1f57a-1f3fe","1f57a-1f3ff"]},{n:["woman with bunny ears","dancers"],u:"1f46f"},{n:["man-with-bunny-ears-partying"],u:"1f46f-200d-2642-fe0f"},{n:["woman-with-bunny-ears-partying"],u:"1f46f-200d-2640-fe0f"},{n:["person in steamy room","person_in_steamy_room"],u:"1f9d6",v:["1f9d6-1f3fb","1f9d6-1f3fc","1f9d6-1f3fd","1f9d6-1f3fe","1f9d6-1f3ff"]},{n:["woman_in_steamy_room"],u:"1f9d6-200d-2640-fe0f",v:["1f9d6-1f3fb-200d-2640-fe0f","1f9d6-1f3fc-200d-2640-fe0f","1f9d6-1f3fd-200d-2640-fe0f","1f9d6-1f3fe-200d-2640-fe0f","1f9d6-1f3ff-200d-2640-fe0f"]},{n:["man_in_steamy_room"],u:"1f9d6-200d-2642-fe0f",v:["1f9d6-1f3fb-200d-2642-fe0f","1f9d6-1f3fc-200d-2642-fe0f","1f9d6-1f3fd-200d-2642-fe0f","1f9d6-1f3fe-200d-2642-fe0f","1f9d6-1f3ff-200d-2642-fe0f"]},{n:["person climbing","person_climbing"],u:"1f9d7",v:["1f9d7-1f3fb","1f9d7-1f3fc","1f9d7-1f3fd","1f9d7-1f3fe","1f9d7-1f3ff"]},{n:["woman_climbing"],u:"1f9d7-200d-2640-fe0f",v:["1f9d7-1f3fb-200d-2640-fe0f","1f9d7-1f3fc-200d-2640-fe0f","1f9d7-1f3fd-200d-2640-fe0f","1f9d7-1f3fe-200d-2640-fe0f","1f9d7-1f3ff-200d-2640-fe0f"]},{n:["man_climbing"],u:"1f9d7-200d-2642-fe0f",v:["1f9d7-1f3fb-200d-2642-fe0f","1f9d7-1f3fc-200d-2642-fe0f","1f9d7-1f3fd-200d-2642-fe0f","1f9d7-1f3fe-200d-2642-fe0f","1f9d7-1f3ff-200d-2642-fe0f"]},{n:["person in lotus position","person_in_lotus_position"],u:"1f9d8",v:["1f9d8-1f3fb","1f9d8-1f3fc","1f9d8-1f3fd","1f9d8-1f3fe","1f9d8-1f3ff"]},{n:["woman_in_lotus_position"],u:"1f9d8-200d-2640-fe0f",v:["1f9d8-1f3fb-200d-2640-fe0f","1f9d8-1f3fc-200d-2640-fe0f","1f9d8-1f3fd-200d-2640-fe0f","1f9d8-1f3fe-200d-2640-fe0f","1f9d8-1f3ff-200d-2640-fe0f"]},{n:["man_in_lotus_position"],u:"1f9d8-200d-2642-fe0f",v:["1f9d8-1f3fb-200d-2642-fe0f","1f9d8-1f3fc-200d-2642-fe0f","1f9d8-1f3fd-200d-2642-fe0f","1f9d8-1f3fe-200d-2642-fe0f","1f9d8-1f3ff-200d-2642-fe0f"]},{n:["bath"],u:"1f6c0",v:["1f6c0-1f3fb","1f6c0-1f3fc","1f6c0-1f3fd","1f6c0-1f3fe","1f6c0-1f3ff"]},{n:["sleeping accommodation","sleeping_accommodation"],u:"1f6cc",v:["1f6cc-1f3fb","1f6cc-1f3fc","1f6cc-1f3fd","1f6cc-1f3fe","1f6cc-1f3ff"]},{n:["man_in_business_suit_levitating"],u:"1f574-fe0f",v:["1f574-1f3fb","1f574-1f3fc","1f574-1f3fd","1f574-1f3fe","1f574-1f3ff"]},{n:["speaking_head_in_silhouette"],u:"1f5e3-fe0f"},{n:["bust in silhouette","bust_in_silhouette"],u:"1f464"},{n:["busts in silhouette","busts_in_silhouette"],u:"1f465"},{n:["fencer"],u:"1f93a"},{n:["horse racing","horse_racing"],u:"1f3c7",v:["1f3c7-1f3fb","1f3c7-1f3fc","1f3c7-1f3fd","1f3c7-1f3fe","1f3c7-1f3ff"]},{n:["skier"],u:"26f7-fe0f"},{n:["snowboarder"],u:"1f3c2",v:["1f3c2-1f3fb","1f3c2-1f3fc","1f3c2-1f3fd","1f3c2-1f3fe","1f3c2-1f3ff"]},{n:["golfer"],u:"1f3cc-fe0f",v:["1f3cc-1f3fb","1f3cc-1f3fc","1f3cc-1f3fd","1f3cc-1f3fe","1f3cc-1f3ff"]},{n:["man-golfing"],u:"1f3cc-fe0f-200d-2642-fe0f",v:["1f3cc-1f3fb-200d-2642-fe0f","1f3cc-1f3fc-200d-2642-fe0f","1f3cc-1f3fd-200d-2642-fe0f","1f3cc-1f3fe-200d-2642-fe0f","1f3cc-1f3ff-200d-2642-fe0f"]},{n:["woman-golfing"],u:"1f3cc-fe0f-200d-2640-fe0f",v:["1f3cc-1f3fb-200d-2640-fe0f","1f3cc-1f3fc-200d-2640-fe0f","1f3cc-1f3fd-200d-2640-fe0f","1f3cc-1f3fe-200d-2640-fe0f","1f3cc-1f3ff-200d-2640-fe0f"]},{n:["surfer"],u:"1f3c4",v:["1f3c4-1f3fb","1f3c4-1f3fc","1f3c4-1f3fd","1f3c4-1f3fe","1f3c4-1f3ff"]},{n:["man-surfing"],u:"1f3c4-200d-2642-fe0f",v:["1f3c4-1f3fb-200d-2642-fe0f","1f3c4-1f3fc-200d-2642-fe0f","1f3c4-1f3fd-200d-2642-fe0f","1f3c4-1f3fe-200d-2642-fe0f","1f3c4-1f3ff-200d-2642-fe0f"]},{n:["woman-surfing"],u:"1f3c4-200d-2640-fe0f",v:["1f3c4-1f3fb-200d-2640-fe0f","1f3c4-1f3fc-200d-2640-fe0f","1f3c4-1f3fd-200d-2640-fe0f","1f3c4-1f3fe-200d-2640-fe0f","1f3c4-1f3ff-200d-2640-fe0f"]},{n:["rowboat"],u:"1f6a3",v:["1f6a3-1f3fb","1f6a3-1f3fc","1f6a3-1f3fd","1f6a3-1f3fe","1f6a3-1f3ff"]},{n:["man-rowing-boat"],u:"1f6a3-200d-2642-fe0f",v:["1f6a3-1f3fb-200d-2642-fe0f","1f6a3-1f3fc-200d-2642-fe0f","1f6a3-1f3fd-200d-2642-fe0f","1f6a3-1f3fe-200d-2642-fe0f","1f6a3-1f3ff-200d-2642-fe0f"]},{n:["woman-rowing-boat"],u:"1f6a3-200d-2640-fe0f",v:["1f6a3-1f3fb-200d-2640-fe0f","1f6a3-1f3fc-200d-2640-fe0f","1f6a3-1f3fd-200d-2640-fe0f","1f6a3-1f3fe-200d-2640-fe0f","1f6a3-1f3ff-200d-2640-fe0f"]},{n:["swimmer"],u:"1f3ca",v:["1f3ca-1f3fb","1f3ca-1f3fc","1f3ca-1f3fd","1f3ca-1f3fe","1f3ca-1f3ff"]},{n:["man-swimming"],u:"1f3ca-200d-2642-fe0f",v:["1f3ca-1f3fb-200d-2642-fe0f","1f3ca-1f3fc-200d-2642-fe0f","1f3ca-1f3fd-200d-2642-fe0f","1f3ca-1f3fe-200d-2642-fe0f","1f3ca-1f3ff-200d-2642-fe0f"]},{n:["woman-swimming"],u:"1f3ca-200d-2640-fe0f",v:["1f3ca-1f3fb-200d-2640-fe0f","1f3ca-1f3fc-200d-2640-fe0f","1f3ca-1f3fd-200d-2640-fe0f","1f3ca-1f3fe-200d-2640-fe0f","1f3ca-1f3ff-200d-2640-fe0f"]},{n:["person_with_ball"],u:"26f9-fe0f",v:["26f9-1f3fb","26f9-1f3fc","26f9-1f3fd","26f9-1f3fe","26f9-1f3ff"]},{n:["man-bouncing-ball"],u:"26f9-fe0f-200d-2642-fe0f",v:["26f9-1f3fb-200d-2642-fe0f","26f9-1f3fc-200d-2642-fe0f","26f9-1f3fd-200d-2642-fe0f","26f9-1f3fe-200d-2642-fe0f","26f9-1f3ff-200d-2642-fe0f"]},{n:["woman-bouncing-ball"],u:"26f9-fe0f-200d-2640-fe0f",v:["26f9-1f3fb-200d-2640-fe0f","26f9-1f3fc-200d-2640-fe0f","26f9-1f3fd-200d-2640-fe0f","26f9-1f3fe-200d-2640-fe0f","26f9-1f3ff-200d-2640-fe0f"]},{n:["weight_lifter"],u:"1f3cb-fe0f",v:["1f3cb-1f3fb","1f3cb-1f3fc","1f3cb-1f3fd","1f3cb-1f3fe","1f3cb-1f3ff"]},{n:["man-lifting-weights"],u:"1f3cb-fe0f-200d-2642-fe0f",v:["1f3cb-1f3fb-200d-2642-fe0f","1f3cb-1f3fc-200d-2642-fe0f","1f3cb-1f3fd-200d-2642-fe0f","1f3cb-1f3fe-200d-2642-fe0f","1f3cb-1f3ff-200d-2642-fe0f"]},{n:["woman-lifting-weights"],u:"1f3cb-fe0f-200d-2640-fe0f",v:["1f3cb-1f3fb-200d-2640-fe0f","1f3cb-1f3fc-200d-2640-fe0f","1f3cb-1f3fd-200d-2640-fe0f","1f3cb-1f3fe-200d-2640-fe0f","1f3cb-1f3ff-200d-2640-fe0f"]},{n:["bicyclist"],u:"1f6b4",v:["1f6b4-1f3fb","1f6b4-1f3fc","1f6b4-1f3fd","1f6b4-1f3fe","1f6b4-1f3ff"]},{n:["man-biking"],u:"1f6b4-200d-2642-fe0f",v:["1f6b4-1f3fb-200d-2642-fe0f","1f6b4-1f3fc-200d-2642-fe0f","1f6b4-1f3fd-200d-2642-fe0f","1f6b4-1f3fe-200d-2642-fe0f","1f6b4-1f3ff-200d-2642-fe0f"]},{n:["woman-biking"],u:"1f6b4-200d-2640-fe0f",v:["1f6b4-1f3fb-200d-2640-fe0f","1f6b4-1f3fc-200d-2640-fe0f","1f6b4-1f3fd-200d-2640-fe0f","1f6b4-1f3fe-200d-2640-fe0f","1f6b4-1f3ff-200d-2640-fe0f"]},{n:["mountain bicyclist","mountain_bicyclist"],u:"1f6b5",v:["1f6b5-1f3fb","1f6b5-1f3fc","1f6b5-1f3fd","1f6b5-1f3fe","1f6b5-1f3ff"]},{n:["man-mountain-biking"],u:"1f6b5-200d-2642-fe0f",v:["1f6b5-1f3fb-200d-2642-fe0f","1f6b5-1f3fc-200d-2642-fe0f","1f6b5-1f3fd-200d-2642-fe0f","1f6b5-1f3fe-200d-2642-fe0f","1f6b5-1f3ff-200d-2642-fe0f"]},{n:["woman-mountain-biking"],u:"1f6b5-200d-2640-fe0f",v:["1f6b5-1f3fb-200d-2640-fe0f","1f6b5-1f3fc-200d-2640-fe0f","1f6b5-1f3fd-200d-2640-fe0f","1f6b5-1f3fe-200d-2640-fe0f","1f6b5-1f3ff-200d-2640-fe0f"]},{n:["racing_car"],u:"1f3ce-fe0f"},{n:["racing_motorcycle"],u:"1f3cd-fe0f"},{n:["person doing cartwheel","person_doing_cartwheel"],u:"1f938",v:["1f938-1f3fb","1f938-1f3fc","1f938-1f3fd","1f938-1f3fe","1f938-1f3ff"]},{n:["man-cartwheeling"],u:"1f938-200d-2642-fe0f",v:["1f938-1f3fb-200d-2642-fe0f","1f938-1f3fc-200d-2642-fe0f","1f938-1f3fd-200d-2642-fe0f","1f938-1f3fe-200d-2642-fe0f","1f938-1f3ff-200d-2642-fe0f"]},{n:["woman-cartwheeling"],u:"1f938-200d-2640-fe0f",v:["1f938-1f3fb-200d-2640-fe0f","1f938-1f3fc-200d-2640-fe0f","1f938-1f3fd-200d-2640-fe0f","1f938-1f3fe-200d-2640-fe0f","1f938-1f3ff-200d-2640-fe0f"]},{n:["wrestlers"],u:"1f93c"},{n:["man-wrestling"],u:"1f93c-200d-2642-fe0f"},{n:["woman-wrestling"],u:"1f93c-200d-2640-fe0f"},{n:["water polo","water_polo"],u:"1f93d",v:["1f93d-1f3fb","1f93d-1f3fc","1f93d-1f3fd","1f93d-1f3fe","1f93d-1f3ff"]},{n:["man-playing-water-polo"],u:"1f93d-200d-2642-fe0f",v:["1f93d-1f3fb-200d-2642-fe0f","1f93d-1f3fc-200d-2642-fe0f","1f93d-1f3fd-200d-2642-fe0f","1f93d-1f3fe-200d-2642-fe0f","1f93d-1f3ff-200d-2642-fe0f"]},{n:["woman-playing-water-polo"],u:"1f93d-200d-2640-fe0f",v:["1f93d-1f3fb-200d-2640-fe0f","1f93d-1f3fc-200d-2640-fe0f","1f93d-1f3fd-200d-2640-fe0f","1f93d-1f3fe-200d-2640-fe0f","1f93d-1f3ff-200d-2640-fe0f"]},{n:["handball"],u:"1f93e",v:["1f93e-1f3fb","1f93e-1f3fc","1f93e-1f3fd","1f93e-1f3fe","1f93e-1f3ff"]},{n:["man-playing-handball"],u:"1f93e-200d-2642-fe0f",v:["1f93e-1f3fb-200d-2642-fe0f","1f93e-1f3fc-200d-2642-fe0f","1f93e-1f3fd-200d-2642-fe0f","1f93e-1f3fe-200d-2642-fe0f","1f93e-1f3ff-200d-2642-fe0f"]},{n:["woman-playing-handball"],u:"1f93e-200d-2640-fe0f",v:["1f93e-1f3fb-200d-2640-fe0f","1f93e-1f3fc-200d-2640-fe0f","1f93e-1f3fd-200d-2640-fe0f","1f93e-1f3fe-200d-2640-fe0f","1f93e-1f3ff-200d-2640-fe0f"]},{n:["juggling"],u:"1f939",v:["1f939-1f3fb","1f939-1f3fc","1f939-1f3fd","1f939-1f3fe","1f939-1f3ff"]},{n:["man-juggling"],u:"1f939-200d-2642-fe0f",v:["1f939-1f3fb-200d-2642-fe0f","1f939-1f3fc-200d-2642-fe0f","1f939-1f3fd-200d-2642-fe0f","1f939-1f3fe-200d-2642-fe0f","1f939-1f3ff-200d-2642-fe0f"]},{n:["woman-juggling"],u:"1f939-200d-2640-fe0f",v:["1f939-1f3fb-200d-2640-fe0f","1f939-1f3fc-200d-2640-fe0f","1f939-1f3fd-200d-2640-fe0f","1f939-1f3fe-200d-2640-fe0f","1f939-1f3ff-200d-2640-fe0f"]},{n:["man and woman holding hands","couple","man_and_woman_holding_hands"],u:"1f46b"},{n:["two men holding hands","two_men_holding_hands"],u:"1f46c"},{n:["two women holding hands","two_women_holding_hands"],u:"1f46d"},{n:["kiss","couplekiss"],u:"1f48f"},{n:["woman-kiss-man"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468"},{n:["man-kiss-man"],u:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468"},{n:["woman-kiss-woman"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469"},{n:["couple with heart","couple_with_heart"],u:"1f491"},{n:["woman-heart-man"],u:"1f469-200d-2764-fe0f-200d-1f468"},{n:["man-heart-man"],u:"1f468-200d-2764-fe0f-200d-1f468"},{n:["woman-heart-woman"],u:"1f469-200d-2764-fe0f-200d-1f469"},{n:["family","man-woman-boy"],u:"1f46a"},{n:["man-woman-boy","family"],u:"1f468-200d-1f469-200d-1f466"},{n:["man-woman-girl"],u:"1f468-200d-1f469-200d-1f467"},{n:["man-woman-girl-boy"],u:"1f468-200d-1f469-200d-1f467-200d-1f466"},{n:["man-woman-boy-boy"],u:"1f468-200d-1f469-200d-1f466-200d-1f466"},{n:["man-woman-girl-girl"],u:"1f468-200d-1f469-200d-1f467-200d-1f467"},{n:["man-man-boy"],u:"1f468-200d-1f468-200d-1f466"},{n:["man-man-girl"],u:"1f468-200d-1f468-200d-1f467"},{n:["man-man-girl-boy"],u:"1f468-200d-1f468-200d-1f467-200d-1f466"},{n:["man-man-boy-boy"],u:"1f468-200d-1f468-200d-1f466-200d-1f466"},{n:["man-man-girl-girl"],u:"1f468-200d-1f468-200d-1f467-200d-1f467"},{n:["woman-woman-boy"],u:"1f469-200d-1f469-200d-1f466"},{n:["woman-woman-girl"],u:"1f469-200d-1f469-200d-1f467"},{n:["woman-woman-girl-boy"],u:"1f469-200d-1f469-200d-1f467-200d-1f466"},{n:["woman-woman-boy-boy"],u:"1f469-200d-1f469-200d-1f466-200d-1f466"},{n:["woman-woman-girl-girl"],u:"1f469-200d-1f469-200d-1f467-200d-1f467"},{n:["man-boy"],u:"1f468-200d-1f466"},{n:["man-boy-boy"],u:"1f468-200d-1f466-200d-1f466"},{n:["man-girl"],u:"1f468-200d-1f467"},{n:["man-girl-boy"],u:"1f468-200d-1f467-200d-1f466"},{n:["man-girl-girl"],u:"1f468-200d-1f467-200d-1f467"},{n:["woman-boy"],u:"1f469-200d-1f466"},{n:["woman-boy-boy"],u:"1f469-200d-1f466-200d-1f466"},{n:["woman-girl"],u:"1f469-200d-1f467"},{n:["woman-girl-boy"],u:"1f469-200d-1f467-200d-1f466"},{n:["woman-girl-girl"],u:"1f469-200d-1f467-200d-1f467"},{n:["selfie"],u:"1f933",v:["1f933-1f3fb","1f933-1f3fc","1f933-1f3fd","1f933-1f3fe","1f933-1f3ff"]},{n:["flexed biceps","muscle"],u:"1f4aa",v:["1f4aa-1f3fb","1f4aa-1f3fc","1f4aa-1f3fd","1f4aa-1f3fe","1f4aa-1f3ff"]},{n:["white left pointing backhand index","point_left"],u:"1f448",v:["1f448-1f3fb","1f448-1f3fc","1f448-1f3fd","1f448-1f3fe","1f448-1f3ff"]},{n:["white right pointing backhand index","point_right"],u:"1f449",v:["1f449-1f3fb","1f449-1f3fc","1f449-1f3fd","1f449-1f3fe","1f449-1f3ff"]},{n:["white up pointing index","point_up"],u:"261d-fe0f",v:["261d-1f3fb","261d-1f3fc","261d-1f3fd","261d-1f3fe","261d-1f3ff"]},{n:["white up pointing backhand index","point_up_2"],u:"1f446",v:["1f446-1f3fb","1f446-1f3fc","1f446-1f3fd","1f446-1f3fe","1f446-1f3ff"]},{n:["reversed hand with middle finger extended","middle_finger","reversed_hand_with_middle_finger_extended"],u:"1f595",v:["1f595-1f3fb","1f595-1f3fc","1f595-1f3fd","1f595-1f3fe","1f595-1f3ff"]},{n:["white down pointing backhand index","point_down"],u:"1f447",v:["1f447-1f3fb","1f447-1f3fc","1f447-1f3fd","1f447-1f3fe","1f447-1f3ff"]},{n:["victory hand","v"],u:"270c-fe0f",v:["270c-1f3fb","270c-1f3fc","270c-1f3fd","270c-1f3fe","270c-1f3ff"]},{n:["hand with index and middle fingers crossed","crossed_fingers","hand_with_index_and_middle_fingers_crossed"],u:"1f91e",v:["1f91e-1f3fb","1f91e-1f3fc","1f91e-1f3fd","1f91e-1f3fe","1f91e-1f3ff"]},{n:["raised hand with part between middle and ring fingers","spock-hand"],u:"1f596",v:["1f596-1f3fb","1f596-1f3fc","1f596-1f3fd","1f596-1f3fe","1f596-1f3ff"]},{n:["sign of the horns","the_horns","sign_of_the_horns"],u:"1f918",v:["1f918-1f3fb","1f918-1f3fc","1f918-1f3fd","1f918-1f3fe","1f918-1f3ff"]},{n:["call me hand","call_me_hand"],u:"1f919",v:["1f919-1f3fb","1f919-1f3fc","1f919-1f3fd","1f919-1f3fe","1f919-1f3ff"]},{n:["raised_hand_with_fingers_splayed"],u:"1f590-fe0f",v:["1f590-1f3fb","1f590-1f3fc","1f590-1f3fd","1f590-1f3fe","1f590-1f3ff"]},{n:["raised hand","hand","raised_hand"],u:"270b",v:["270b-1f3fb","270b-1f3fc","270b-1f3fd","270b-1f3fe","270b-1f3ff"]},{n:["ok hand sign","ok_hand"],u:"1f44c",v:["1f44c-1f3fb","1f44c-1f3fc","1f44c-1f3fd","1f44c-1f3fe","1f44c-1f3ff"]},{n:["thumbs up sign","+1","thumbsup"],u:"1f44d",v:["1f44d-1f3fb","1f44d-1f3fc","1f44d-1f3fd","1f44d-1f3fe","1f44d-1f3ff"]},{n:["thumbs down sign","-1","thumbsdown"],u:"1f44e",v:["1f44e-1f3fb","1f44e-1f3fc","1f44e-1f3fd","1f44e-1f3fe","1f44e-1f3ff"]},{n:["raised fist","fist"],u:"270a",v:["270a-1f3fb","270a-1f3fc","270a-1f3fd","270a-1f3fe","270a-1f3ff"]},{n:["fisted hand sign","facepunch","punch"],u:"1f44a",v:["1f44a-1f3fb","1f44a-1f3fc","1f44a-1f3fd","1f44a-1f3fe","1f44a-1f3ff"]},{n:["left-facing fist","left-facing_fist"],u:"1f91b",v:["1f91b-1f3fb","1f91b-1f3fc","1f91b-1f3fd","1f91b-1f3fe","1f91b-1f3ff"]},{n:["right-facing fist","right-facing_fist"],u:"1f91c",v:["1f91c-1f3fb","1f91c-1f3fc","1f91c-1f3fd","1f91c-1f3fe","1f91c-1f3ff"]},{n:["raised back of hand","raised_back_of_hand"],u:"1f91a",v:["1f91a-1f3fb","1f91a-1f3fc","1f91a-1f3fd","1f91a-1f3fe","1f91a-1f3ff"]},{n:["waving hand sign","wave"],u:"1f44b",v:["1f44b-1f3fb","1f44b-1f3fc","1f44b-1f3fd","1f44b-1f3fe","1f44b-1f3ff"]},{n:["i love you hand sign","i_love_you_hand_sign"],u:"1f91f",v:["1f91f-1f3fb","1f91f-1f3fc","1f91f-1f3fd","1f91f-1f3fe","1f91f-1f3ff"]},{n:["writing_hand"],u:"270d-fe0f",v:["270d-1f3fb","270d-1f3fc","270d-1f3fd","270d-1f3fe","270d-1f3ff"]},{n:["clapping hands sign","clap"],u:"1f44f",v:["1f44f-1f3fb","1f44f-1f3fc","1f44f-1f3fd","1f44f-1f3fe","1f44f-1f3ff"]},{n:["open hands sign","open_hands"],u:"1f450",v:["1f450-1f3fb","1f450-1f3fc","1f450-1f3fd","1f450-1f3fe","1f450-1f3ff"]},{n:["person raising both hands in celebration","raised_hands"],u:"1f64c",v:["1f64c-1f3fb","1f64c-1f3fc","1f64c-1f3fd","1f64c-1f3fe","1f64c-1f3ff"]},{n:["palms up together","palms_up_together"],u:"1f932",v:["1f932-1f3fb","1f932-1f3fc","1f932-1f3fd","1f932-1f3fe","1f932-1f3ff"]},{n:["person with folded hands","pray"],u:"1f64f",v:["1f64f-1f3fb","1f64f-1f3fc","1f64f-1f3fd","1f64f-1f3fe","1f64f-1f3ff"]},{n:["handshake"],u:"1f91d"},{n:["nail polish","nail_care"],u:"1f485",v:["1f485-1f3fb","1f485-1f3fc","1f485-1f3fd","1f485-1f3fe","1f485-1f3ff"]},{n:["ear"],u:"1f442",v:["1f442-1f3fb","1f442-1f3fc","1f442-1f3fd","1f442-1f3fe","1f442-1f3ff"]},{n:["nose"],u:"1f443",v:["1f443-1f3fb","1f443-1f3fc","1f443-1f3fd","1f443-1f3fe","1f443-1f3ff"]},{n:["footprints"],u:"1f463"},{n:["eyes"],u:"1f440"},{n:["eye"],u:"1f441-fe0f"},{n:["eye-in-speech-bubble"],u:"1f441-fe0f-200d-1f5e8-fe0f"},{n:["brain"],u:"1f9e0"},{n:["tongue"],u:"1f445"},{n:["mouth","lips"],u:"1f444"},{n:["kiss mark","kiss"],u:"1f48b"},{n:["heart with arrow","cupid"],u:"1f498"},{n:["heavy black heart","heart"],u:"2764-fe0f"},{n:["beating heart","heartbeat"],u:"1f493"},{n:["broken heart","broken_heart"],u:"1f494"},{n:["two hearts","two_hearts"],u:"1f495"},{n:["sparkling heart","sparkling_heart"],u:"1f496"},{n:["growing heart","heartpulse"],u:"1f497"},{n:["blue heart","blue_heart"],u:"1f499"},{n:["green heart","green_heart"],u:"1f49a"},{n:["yellow heart","yellow_heart"],u:"1f49b"},{n:["orange heart","orange_heart"],u:"1f9e1"},{n:["purple heart","purple_heart"],u:"1f49c"},{n:["black heart","black_heart"],u:"1f5a4"},{n:["heart with ribbon","gift_heart"],u:"1f49d"},{n:["revolving hearts","revolving_hearts"],u:"1f49e"},{n:["heart decoration","heart_decoration"],u:"1f49f"},{n:["heavy_heart_exclamation_mark_ornament"],u:"2763-fe0f"},{n:["love letter","love_letter"],u:"1f48c"},{n:["sleeping symbol","zzz"],u:"1f4a4"},{n:["anger symbol","anger"],u:"1f4a2"},{n:["bomb"],u:"1f4a3"},{n:["collision symbol","boom","collision"],u:"1f4a5"},{n:["splashing sweat symbol","sweat_drops"],u:"1f4a6"},{n:["dash symbol","dash"],u:"1f4a8"},{n:["dizzy symbol","dizzy"],u:"1f4ab"},{n:["speech balloon","speech_balloon"],u:"1f4ac"},{n:["left_speech_bubble"],u:"1f5e8-fe0f"},{n:["right_anger_bubble"],u:"1f5ef-fe0f"},{n:["thought balloon","thought_balloon"],u:"1f4ad"},{n:["hole"],u:"1f573-fe0f"},{n:["eyeglasses"],u:"1f453"},{n:["dark_sunglasses"],u:"1f576-fe0f"},{n:["necktie"],u:"1f454"},{n:["t-shirt","shirt","tshirt"],u:"1f455"},{n:["jeans"],u:"1f456"},{n:["scarf"],u:"1f9e3"},{n:["gloves"],u:"1f9e4"},{n:["coat"],u:"1f9e5"},{n:["socks"],u:"1f9e6"},{n:["dress"],u:"1f457"},{n:["kimono"],u:"1f458"},{n:["bikini"],u:"1f459"},{n:["womans clothes","womans_clothes"],u:"1f45a"},{n:["purse"],u:"1f45b"},{n:["handbag"],u:"1f45c"},{n:["pouch"],u:"1f45d"},{n:["shopping_bags"],u:"1f6cd-fe0f"},{n:["school satchel","school_satchel"],u:"1f392"},{n:["mans shoe","mans_shoe","shoe"],u:"1f45e"},{n:["athletic shoe","athletic_shoe"],u:"1f45f"},{n:["high-heeled shoe","high_heel"],u:"1f460"},{n:["womans sandal","sandal"],u:"1f461"},{n:["womans boots","boot"],u:"1f462"},{n:["crown"],u:"1f451"},{n:["womans hat","womans_hat"],u:"1f452"},{n:["top hat","tophat"],u:"1f3a9"},{n:["graduation cap","mortar_board"],u:"1f393"},{n:["billed cap","billed_cap"],u:"1f9e2"},{n:["helmet_with_white_cross"],u:"26d1-fe0f"},{n:["prayer beads","prayer_beads"],u:"1f4ff"},{n:["lipstick"],u:"1f484"},{n:["ring"],u:"1f48d"},{n:["gem stone","gem"],u:"1f48e"}],animals_nature:[{n:["monkey face","monkey_face"],u:"1f435"},{n:["monkey"],u:"1f412"},{n:["gorilla"],u:"1f98d"},{n:["dog face","dog"],u:"1f436"},{n:["dog","dog2"],u:"1f415"},{n:["poodle"],u:"1f429"},{n:["wolf face","wolf"],u:"1f43a"},{n:["fox face","fox_face"],u:"1f98a"},{n:["cat face","cat"],u:"1f431"},{n:["cat","cat2"],u:"1f408"},{n:["lion face","lion_face"],u:"1f981"},{n:["tiger face","tiger"],u:"1f42f"},{n:["tiger","tiger2"],u:"1f405"},{n:["leopard"],u:"1f406"},{n:["horse face","horse"],u:"1f434"},{n:["horse","racehorse"],u:"1f40e"},{n:["unicorn face","unicorn_face"],u:"1f984"},{n:["zebra face","zebra_face"],u:"1f993"},{n:["deer"],u:"1f98c"},{n:["cow face","cow"],u:"1f42e"},{n:["ox"],u:"1f402"},{n:["water buffalo","water_buffalo"],u:"1f403"},{n:["cow","cow2"],u:"1f404"},{n:["pig face","pig"],u:"1f437"},{n:["pig","pig2"],u:"1f416"},{n:["boar"],u:"1f417"},{n:["pig nose","pig_nose"],u:"1f43d"},{n:["ram"],u:"1f40f"},{n:["sheep"],u:"1f411"},{n:["goat"],u:"1f410"},{n:["dromedary camel","dromedary_camel"],u:"1f42a"},{n:["bactrian camel","camel"],u:"1f42b"},{n:["giraffe face","giraffe_face"],u:"1f992"},{n:["elephant"],u:"1f418"},{n:["rhinoceros"],u:"1f98f"},{n:["mouse face","mouse"],u:"1f42d"},{n:["mouse","mouse2"],u:"1f401"},{n:["rat"],u:"1f400"},{n:["hamster face","hamster"],u:"1f439"},{n:["rabbit face","rabbit"],u:"1f430"},{n:["rabbit","rabbit2"],u:"1f407"},{n:["chipmunk"],u:"1f43f-fe0f"},{n:["hedgehog"],u:"1f994"},{n:["bat"],u:"1f987"},{n:["bear face","bear"],u:"1f43b"},{n:["koala"],u:"1f428"},{n:["panda face","panda_face"],u:"1f43c"},{n:["paw prints","feet","paw_prints"],u:"1f43e"},{n:["turkey"],u:"1f983"},{n:["chicken"],u:"1f414"},{n:["rooster"],u:"1f413"},{n:["hatching chick","hatching_chick"],u:"1f423"},{n:["baby chick","baby_chick"],u:"1f424"},{n:["front-facing baby chick","hatched_chick"],u:"1f425"},{n:["bird"],u:"1f426"},{n:["penguin"],u:"1f427"},{n:["dove_of_peace"],u:"1f54a-fe0f"},{n:["eagle"],u:"1f985"},{n:["duck"],u:"1f986"},{n:["owl"],u:"1f989"},{n:["frog face","frog"],u:"1f438"},{n:["crocodile"],u:"1f40a"},{n:["turtle"],u:"1f422"},{n:["lizard"],u:"1f98e"},{n:["snake"],u:"1f40d"},{n:["dragon face","dragon_face"],u:"1f432"},{n:["dragon"],u:"1f409"},{n:["sauropod"],u:"1f995"},{n:["t-rex"],u:"1f996"},{n:["spouting whale","whale"],u:"1f433"},{n:["whale","whale2"],u:"1f40b"},{n:["dolphin","flipper"],u:"1f42c"},{n:["fish"],u:"1f41f"},{n:["tropical fish","tropical_fish"],u:"1f420"},{n:["blowfish"],u:"1f421"},{n:["shark"],u:"1f988"},{n:["octopus"],u:"1f419"},{n:["spiral shell","shell"],u:"1f41a"},{n:["crab"],u:"1f980"},{n:["shrimp"],u:"1f990"},{n:["squid"],u:"1f991"},{n:["snail"],u:"1f40c"},{n:["butterfly"],u:"1f98b"},{n:["bug"],u:"1f41b"},{n:["ant"],u:"1f41c"},{n:["honeybee","bee"],u:"1f41d"},{n:["lady beetle","beetle"],u:"1f41e"},{n:["cricket"],u:"1f997"},{n:["spider"],u:"1f577-fe0f"},{n:["spider_web"],u:"1f578-fe0f"},{n:["scorpion"],u:"1f982"},{n:["bouquet"],u:"1f490"},{n:["cherry blossom","cherry_blossom"],u:"1f338"},{n:["white flower","white_flower"],u:"1f4ae"},{n:["rosette"],u:"1f3f5-fe0f"},{n:["rose"],u:"1f339"},{n:["wilted flower","wilted_flower"],u:"1f940"},{n:["hibiscus"],u:"1f33a"},{n:["sunflower"],u:"1f33b"},{n:["blossom"],u:"1f33c"},{n:["tulip"],u:"1f337"},{n:["seedling"],u:"1f331"},{n:["evergreen tree","evergreen_tree"],u:"1f332"},{n:["deciduous tree","deciduous_tree"],u:"1f333"},{n:["palm tree","palm_tree"],u:"1f334"},{n:["cactus"],u:"1f335"},{n:["ear of rice","ear_of_rice"],u:"1f33e"},{n:["herb"],u:"1f33f"},{n:["shamrock"],u:"2618-fe0f"},{n:["four leaf clover","four_leaf_clover"],u:"1f340"},{n:["maple leaf","maple_leaf"],u:"1f341"},{n:["fallen leaf","fallen_leaf"],u:"1f342"},{n:["leaf fluttering in wind","leaves"],u:"1f343"}],food_drink:[{n:["grapes"],u:"1f347"},{n:["melon"],u:"1f348"},{n:["watermelon"],u:"1f349"},{n:["tangerine"],u:"1f34a"},{n:["lemon"],u:"1f34b"},{n:["banana"],u:"1f34c"},{n:["pineapple"],u:"1f34d"},{n:["red apple","apple"],u:"1f34e"},{n:["green apple","green_apple"],u:"1f34f"},{n:["pear"],u:"1f350"},{n:["peach"],u:"1f351"},{n:["cherries"],u:"1f352"},{n:["strawberry"],u:"1f353"},{n:["kiwifruit"],u:"1f95d"},{n:["tomato"],u:"1f345"},{n:["coconut"],u:"1f965"},{n:["avocado"],u:"1f951"},{n:["aubergine","eggplant"],u:"1f346"},{n:["potato"],u:"1f954"},{n:["carrot"],u:"1f955"},{n:["ear of maize","corn"],u:"1f33d"},{n:["hot_pepper"],u:"1f336-fe0f"},{n:["cucumber"],u:"1f952"},{n:["broccoli"],u:"1f966"},{n:["mushroom"],u:"1f344"},{n:["peanuts"],u:"1f95c"},{n:["chestnut"],u:"1f330"},{n:["bread"],u:"1f35e"},{n:["croissant"],u:"1f950"},{n:["baguette bread","baguette_bread"],u:"1f956"},{n:["pretzel"],u:"1f968"},{n:["pancakes"],u:"1f95e"},{n:["cheese wedge","cheese_wedge"],u:"1f9c0"},{n:["meat on bone","meat_on_bone"],u:"1f356"},{n:["poultry leg","poultry_leg"],u:"1f357"},{n:["cut of meat","cut_of_meat"],u:"1f969"},{n:["bacon"],u:"1f953"},{n:["hamburger"],u:"1f354"},{n:["french fries","fries"],u:"1f35f"},{n:["slice of pizza","pizza"],u:"1f355"},{n:["hot dog","hotdog"],u:"1f32d"},{n:["sandwich"],u:"1f96a"},{n:["taco"],u:"1f32e"},{n:["burrito"],u:"1f32f"},{n:["stuffed flatbread","stuffed_flatbread"],u:"1f959"},{n:["egg"],u:"1f95a"},{n:["cooking","fried_egg"],u:"1f373"},{n:["shallow pan of food","shallow_pan_of_food"],u:"1f958"},{n:["pot of food","stew"],u:"1f372"},{n:["bowl with spoon","bowl_with_spoon"],u:"1f963"},{n:["green salad","green_salad"],u:"1f957"},{n:["popcorn"],u:"1f37f"},{n:["canned food","canned_food"],u:"1f96b"},{n:["bento box","bento"],u:"1f371"},{n:["rice cracker","rice_cracker"],u:"1f358"},{n:["rice ball","rice_ball"],u:"1f359"},{n:["cooked rice","rice"],u:"1f35a"},{n:["curry and rice","curry"],u:"1f35b"},{n:["steaming bowl","ramen"],u:"1f35c"},{n:["spaghetti"],u:"1f35d"},{n:["roasted sweet potato","sweet_potato"],u:"1f360"},{n:["oden"],u:"1f362"},{n:["sushi"],u:"1f363"},{n:["fried shrimp","fried_shrimp"],u:"1f364"},{n:["fish cake with swirl design","fish_cake"],u:"1f365"},{n:["dango"],u:"1f361"},{n:["dumpling"],u:"1f95f"},{n:["fortune cookie","fortune_cookie"],u:"1f960"},{n:["takeout box","takeout_box"],u:"1f961"},{n:["soft ice cream","icecream"],u:"1f366"},{n:["shaved ice","shaved_ice"],u:"1f367"},{n:["ice cream","ice_cream"],u:"1f368"},{n:["doughnut"],u:"1f369"},{n:["cookie"],u:"1f36a"},{n:["birthday cake","birthday"],u:"1f382"},{n:["shortcake","cake"],u:"1f370"},{n:["pie"],u:"1f967"},{n:["chocolate bar","chocolate_bar"],u:"1f36b"},{n:["candy"],u:"1f36c"},{n:["lollipop"],u:"1f36d"},{n:["custard"],u:"1f36e"},{n:["honey pot","honey_pot"],u:"1f36f"},{n:["baby bottle","baby_bottle"],u:"1f37c"},{n:["glass of milk","glass_of_milk"],u:"1f95b"},{n:["hot beverage","coffee"],u:"2615"},{n:["teacup without handle","tea"],u:"1f375"},{n:["sake bottle and cup","sake"],u:"1f376"},{n:["bottle with popping cork","champagne"],u:"1f37e"},{n:["wine glass","wine_glass"],u:"1f377"},{n:["cocktail glass","cocktail"],u:"1f378"},{n:["tropical drink","tropical_drink"],u:"1f379"},{n:["beer mug","beer"],u:"1f37a"},{n:["clinking beer mugs","beers"],u:"1f37b"},{n:["clinking glasses","clinking_glasses"],u:"1f942"},{n:["tumbler glass","tumbler_glass"],u:"1f943"},{n:["cup with straw","cup_with_straw"],u:"1f964"},{n:["chopsticks"],u:"1f962"},{n:["knife_fork_plate"],u:"1f37d-fe0f"},{n:["fork and knife","fork_and_knife"],u:"1f374"},{n:["spoon"],u:"1f944"},{n:["hocho","knife"],u:"1f52a"},{n:["amphora"],u:"1f3fa"}],activities:[{n:["jack-o-lantern","jack_o_lantern"],u:"1f383"},{n:["christmas tree","christmas_tree"],u:"1f384"},{n:["fireworks"],u:"1f386"},{n:["firework sparkler","sparkler"],u:"1f387"},{n:["sparkles"],u:"2728"},{n:["balloon"],u:"1f388"},{n:["party popper","tada"],u:"1f389"},{n:["confetti ball","confetti_ball"],u:"1f38a"},{n:["tanabata tree","tanabata_tree"],u:"1f38b"},{n:["pine decoration","bamboo"],u:"1f38d"},{n:["japanese dolls","dolls"],u:"1f38e"},{n:["carp streamer","flags"],u:"1f38f"},{n:["wind chime","wind_chime"],u:"1f390"},{n:["moon viewing ceremony","rice_scene"],u:"1f391"},{n:["ribbon"],u:"1f380"},{n:["wrapped present","gift"],u:"1f381"},{n:["reminder_ribbon"],u:"1f397-fe0f"},{n:["admission_tickets"],u:"1f39f-fe0f"},{n:["ticket"],u:"1f3ab"},{n:["medal"],u:"1f396-fe0f"},{n:["trophy"],u:"1f3c6"},{n:["sports medal","sports_medal"],u:"1f3c5"},{n:["first place medal","first_place_medal"],u:"1f947"},{n:["second place medal","second_place_medal"],u:"1f948"},{n:["third place medal","third_place_medal"],u:"1f949"},{n:["soccer ball","soccer"],u:"26bd"},{n:["baseball"],u:"26be"},{n:["basketball and hoop","basketball"],u:"1f3c0"},{n:["volleyball"],u:"1f3d0"},{n:["american football","football"],u:"1f3c8"},{n:["rugby football","rugby_football"],u:"1f3c9"},{n:["tennis racquet and ball","tennis"],u:"1f3be"},{n:["billiards","8ball"],u:"1f3b1"},{n:["bowling"],u:"1f3b3"},{n:["cricket bat and ball","cricket_bat_and_ball"],u:"1f3cf"},{n:["field hockey stick and ball","field_hockey_stick_and_ball"],u:"1f3d1"},{n:["ice hockey stick and puck","ice_hockey_stick_and_puck"],u:"1f3d2"},{n:["table tennis paddle and ball","table_tennis_paddle_and_ball"],u:"1f3d3"},{n:["badminton racquet and shuttlecock","badminton_racquet_and_shuttlecock"],u:"1f3f8"},{n:["boxing glove","boxing_glove"],u:"1f94a"},{n:["martial arts uniform","martial_arts_uniform"],u:"1f94b"},{n:["goal net","goal_net"],u:"1f945"},{n:["direct hit","dart"],u:"1f3af"},{n:["flag in hole","golf"],u:"26f3"},{n:["ice_skate"],u:"26f8-fe0f"},{n:["fishing pole and fish","fishing_pole_and_fish"],u:"1f3a3"},{n:["running shirt with sash","running_shirt_with_sash"],u:"1f3bd"},{n:["ski and ski boot","ski"],u:"1f3bf"},{n:["sled"],u:"1f6f7"},{n:["curling stone","curling_stone"],u:"1f94c"},{n:["video game","video_game"],u:"1f3ae"},{n:["joystick"],u:"1f579-fe0f"},{n:["game die","game_die"],u:"1f3b2"},{n:["black spade suit","spades"],u:"2660-fe0f"},{n:["black heart suit","hearts"],u:"2665-fe0f"},{n:["black diamond suit","diamonds"],u:"2666-fe0f"},{n:["black club suit","clubs"],u:"2663-fe0f"},{n:["playing card black joker","black_joker"],u:"1f0cf"},{n:["mahjong tile red dragon","mahjong"],u:"1f004"},{n:["flower playing cards","flower_playing_cards"],u:"1f3b4"}],travel_places:[{n:["earth globe europe-africa","earth_africa"],u:"1f30d"},{n:["earth globe americas","earth_americas"],u:"1f30e"},{n:["earth globe asia-australia","earth_asia"],u:"1f30f"},{n:["globe with meridians","globe_with_meridians"],u:"1f310"},{n:["world_map"],u:"1f5fa-fe0f"},{n:["silhouette of japan","japan"],u:"1f5fe"},{n:["snow_capped_mountain"],u:"1f3d4-fe0f"},{n:["mountain"],u:"26f0-fe0f"},{n:["volcano"],u:"1f30b"},{n:["mount fuji","mount_fuji"],u:"1f5fb"},{n:["camping"],u:"1f3d5-fe0f"},{n:["beach_with_umbrella"],u:"1f3d6-fe0f"},{n:["desert"],u:"1f3dc-fe0f"},{n:["desert_island"],u:"1f3dd-fe0f"},{n:["national_park"],u:"1f3de-fe0f"},{n:["stadium"],u:"1f3df-fe0f"},{n:["classical_building"],u:"1f3db-fe0f"},{n:["building_construction"],u:"1f3d7-fe0f"},{n:["house_buildings"],u:"1f3d8-fe0f"},{n:["cityscape"],u:"1f3d9-fe0f"},{n:["derelict_house_building"],u:"1f3da-fe0f"},{n:["house building","house"],u:"1f3e0"},{n:["house with garden","house_with_garden"],u:"1f3e1"},{n:["office building","office"],u:"1f3e2"},{n:["japanese post office","post_office"],u:"1f3e3"},{n:["european post office","european_post_office"],u:"1f3e4"},{n:["hospital"],u:"1f3e5"},{n:["bank"],u:"1f3e6"},{n:["hotel"],u:"1f3e8"},{n:["love hotel","love_hotel"],u:"1f3e9"},{n:["convenience store","convenience_store"],u:"1f3ea"},{n:["school"],u:"1f3eb"},{n:["department store","department_store"],u:"1f3ec"},{n:["factory"],u:"1f3ed"},{n:["japanese castle","japanese_castle"],u:"1f3ef"},{n:["european castle","european_castle"],u:"1f3f0"},{n:["wedding"],u:"1f492"},{n:["tokyo tower","tokyo_tower"],u:"1f5fc"},{n:["statue of liberty","statue_of_liberty"],u:"1f5fd"},{n:["church"],u:"26ea"},{n:["mosque"],u:"1f54c"},{n:["synagogue"],u:"1f54d"},{n:["shinto_shrine"],u:"26e9-fe0f"},{n:["kaaba"],u:"1f54b"},{n:["fountain"],u:"26f2"},{n:["tent"],u:"26fa"},{n:["foggy"],u:"1f301"},{n:["night with stars","night_with_stars"],u:"1f303"},{n:["sunrise over mountains","sunrise_over_mountains"],u:"1f304"},{n:["sunrise"],u:"1f305"},{n:["cityscape at dusk","city_sunset"],u:"1f306"},{n:["sunset over buildings","city_sunrise"],u:"1f307"},{n:["bridge at night","bridge_at_night"],u:"1f309"},{n:["hot springs","hotsprings"],u:"2668-fe0f"},{n:["milky way","milky_way"],u:"1f30c"},{n:["carousel horse","carousel_horse"],u:"1f3a0"},{n:["ferris wheel","ferris_wheel"],u:"1f3a1"},{n:["roller coaster","roller_coaster"],u:"1f3a2"},{n:["barber pole","barber"],u:"1f488"},{n:["circus tent","circus_tent"],u:"1f3aa"},{n:["performing arts","performing_arts"],u:"1f3ad"},{n:["frame_with_picture"],u:"1f5bc-fe0f"},{n:["artist palette","art"],u:"1f3a8"},{n:["slot machine","slot_machine"],u:"1f3b0"},{n:["steam locomotive","steam_locomotive"],u:"1f682"},{n:["railway car","railway_car"],u:"1f683"},{n:["high-speed train","bullettrain_side"],u:"1f684"},{n:["high-speed train with bullet nose","bullettrain_front"],u:"1f685"},{n:["train","train2"],u:"1f686"},{n:["metro"],u:"1f687"},{n:["light rail","light_rail"],u:"1f688"},{n:["station"],u:"1f689"},{n:["tram"],u:"1f68a"},{n:["monorail"],u:"1f69d"},{n:["mountain railway","mountain_railway"],u:"1f69e"},{n:["tram car","train"],u:"1f68b"},{n:["bus"],u:"1f68c"},{n:["oncoming bus","oncoming_bus"],u:"1f68d"},{n:["trolleybus"],u:"1f68e"},{n:["minibus"],u:"1f690"},{n:["ambulance"],u:"1f691"},{n:["fire engine","fire_engine"],u:"1f692"},{n:["police car","police_car"],u:"1f693"},{n:["oncoming police car","oncoming_police_car"],u:"1f694"},{n:["taxi"],u:"1f695"},{n:["oncoming taxi","oncoming_taxi"],u:"1f696"},{n:["automobile","car","red_car"],u:"1f697"},{n:["oncoming automobile","oncoming_automobile"],u:"1f698"},{n:["recreational vehicle","blue_car"],u:"1f699"},{n:["delivery truck","truck"],u:"1f69a"},{n:["articulated lorry","articulated_lorry"],u:"1f69b"},{n:["tractor"],u:"1f69c"},{n:["bicycle","bike"],u:"1f6b2"},{n:["scooter"],u:"1f6f4"},{n:["motor scooter","motor_scooter"],u:"1f6f5"},{n:["bus stop","busstop"],u:"1f68f"},{n:["motorway"],u:"1f6e3-fe0f"},{n:["railway_track"],u:"1f6e4-fe0f"},{n:["fuel pump","fuelpump"],u:"26fd"},{n:["police cars revolving light","rotating_light"],u:"1f6a8"},{n:["horizontal traffic light","traffic_light"],u:"1f6a5"},{n:["vertical traffic light","vertical_traffic_light"],u:"1f6a6"},{n:["construction sign","construction"],u:"1f6a7"},{n:["octagonal sign","octagonal_sign"],u:"1f6d1"},{n:["anchor"],u:"2693"},{n:["sailboat","boat"],u:"26f5"},{n:["canoe"],u:"1f6f6"},{n:["speedboat"],u:"1f6a4"},{n:["passenger_ship"],u:"1f6f3-fe0f"},{n:["ferry"],u:"26f4-fe0f"},{n:["motor_boat"],u:"1f6e5-fe0f"},{n:["ship"],u:"1f6a2"},{n:["airplane"],u:"2708-fe0f"},{n:["small_airplane"],u:"1f6e9-fe0f"},{n:["airplane departure","airplane_departure"],u:"1f6eb"},{n:["airplane arriving","airplane_arriving"],u:"1f6ec"},{n:["seat"],u:"1f4ba"},{n:["helicopter"],u:"1f681"},{n:["suspension railway","suspension_railway"],u:"1f69f"},{n:["mountain cableway","mountain_cableway"],u:"1f6a0"},{n:["aerial tramway","aerial_tramway"],u:"1f6a1"},{n:["satellite"],u:"1f6f0-fe0f"},{n:["rocket"],u:"1f680"},{n:["flying saucer","flying_saucer"],u:"1f6f8"},{n:["bellhop_bell"],u:"1f6ce-fe0f"},{n:["door"],u:"1f6aa"},{n:["bed"],u:"1f6cf-fe0f"},{n:["couch_and_lamp"],u:"1f6cb-fe0f"},{n:["toilet"],u:"1f6bd"},{n:["shower"],u:"1f6bf"},{n:["bathtub"],u:"1f6c1"},{n:["hourglass"],u:"231b"},{n:["hourglass with flowing sand","hourglass_flowing_sand"],u:"23f3"},{n:["watch"],u:"231a"},{n:["alarm clock","alarm_clock"],u:"23f0"},{n:["stopwatch"],u:"23f1-fe0f"},{n:["timer_clock"],u:"23f2-fe0f"},{n:["mantelpiece_clock"],u:"1f570-fe0f"},{n:["clock face twelve oclock","clock12"],u:"1f55b"},{n:["clock face twelve-thirty","clock1230"],u:"1f567"},{n:["clock face one oclock","clock1"],u:"1f550"},{n:["clock face one-thirty","clock130"],u:"1f55c"},{n:["clock face two oclock","clock2"],u:"1f551"},{n:["clock face two-thirty","clock230"],u:"1f55d"},{n:["clock face three oclock","clock3"],u:"1f552"},{n:["clock face three-thirty","clock330"],u:"1f55e"},{n:["clock face four oclock","clock4"],u:"1f553"},{n:["clock face four-thirty","clock430"],u:"1f55f"},{n:["clock face five oclock","clock5"],u:"1f554"},{n:["clock face five-thirty","clock530"],u:"1f560"},{n:["clock face six oclock","clock6"],u:"1f555"},{n:["clock face six-thirty","clock630"],u:"1f561"},{n:["clock face seven oclock","clock7"],u:"1f556"},{n:["clock face seven-thirty","clock730"],u:"1f562"},{n:["clock face eight oclock","clock8"],u:"1f557"},{n:["clock face eight-thirty","clock830"],u:"1f563"},{n:["clock face nine oclock","clock9"],u:"1f558"},{n:["clock face nine-thirty","clock930"],u:"1f564"},{n:["clock face ten oclock","clock10"],u:"1f559"},{n:["clock face ten-thirty","clock1030"],u:"1f565"},{n:["clock face eleven oclock","clock11"],u:"1f55a"},{n:["clock face eleven-thirty","clock1130"],u:"1f566"},{n:["new moon symbol","new_moon"],u:"1f311"},{n:["waxing crescent moon symbol","waxing_crescent_moon"],u:"1f312"},{n:["first quarter moon symbol","first_quarter_moon"],u:"1f313"},{n:["waxing gibbous moon symbol","moon","waxing_gibbous_moon"],u:"1f314"},{n:["full moon symbol","full_moon"],u:"1f315"},{n:["waning gibbous moon symbol","waning_gibbous_moon"],u:"1f316"},{n:["last quarter moon symbol","last_quarter_moon"],u:"1f317"},{n:["waning crescent moon symbol","waning_crescent_moon"],u:"1f318"},{n:["crescent moon","crescent_moon"],u:"1f319"},{n:["new moon with face","new_moon_with_face"],u:"1f31a"},{n:["first quarter moon with face","first_quarter_moon_with_face"],u:"1f31b"},{n:["last quarter moon with face","last_quarter_moon_with_face"],u:"1f31c"},{n:["thermometer"],u:"1f321-fe0f"},{n:["black sun with rays","sunny"],u:"2600-fe0f"},{n:["full moon with face","full_moon_with_face"],u:"1f31d"},{n:["sun with face","sun_with_face"],u:"1f31e"},{n:["white medium star","star"],u:"2b50"},{n:["glowing star","star2"],u:"1f31f"},{n:["shooting star","stars"],u:"1f320"},{n:["cloud"],u:"2601-fe0f"},{n:["sun behind cloud","partly_sunny"],u:"26c5"},{n:["thunder_cloud_and_rain"],u:"26c8-fe0f"},{n:["mostly_sunny","sun_small_cloud"],u:"1f324-fe0f"},{n:["barely_sunny","sun_behind_cloud"],u:"1f325-fe0f"},{n:["partly_sunny_rain","sun_behind_rain_cloud"],u:"1f326-fe0f"},{n:["rain_cloud"],u:"1f327-fe0f"},{n:["snow_cloud"],u:"1f328-fe0f"},{n:["lightning","lightning_cloud"],u:"1f329-fe0f"},{n:["tornado","tornado_cloud"],u:"1f32a-fe0f"},{n:["fog"],u:"1f32b-fe0f"},{n:["wind_blowing_face"],u:"1f32c-fe0f"},{n:["cyclone"],u:"1f300"},{n:["rainbow"],u:"1f308"},{n:["closed umbrella","closed_umbrella"],u:"1f302"},{n:["umbrella"],u:"2602-fe0f"},{n:["umbrella with rain drops","umbrella_with_rain_drops"],u:"2614"},{n:["umbrella_on_ground"],u:"26f1-fe0f"},{n:["high voltage sign","zap"],u:"26a1"},{n:["snowflake"],u:"2744-fe0f"},{n:["snowman"],u:"2603-fe0f"},{n:["snowman without snow","snowman_without_snow"],u:"26c4"},{n:["comet"],u:"2604-fe0f"},{n:["fire"],u:"1f525"},{n:["droplet"],u:"1f4a7"},{n:["water wave","ocean"],u:"1f30a"}],objects:[{n:["speaker with cancellation stroke","mute"],u:"1f507"},{n:["speaker"],u:"1f508"},{n:["speaker with one sound wave","sound"],u:"1f509"},{n:["speaker with three sound waves","loud_sound"],u:"1f50a"},{n:["public address loudspeaker","loudspeaker"],u:"1f4e2"},{n:["cheering megaphone","mega"],u:"1f4e3"},{n:["postal horn","postal_horn"],u:"1f4ef"},{n:["bell"],u:"1f514"},{n:["bell with cancellation stroke","no_bell"],u:"1f515"},{n:["musical score","musical_score"],u:"1f3bc"},{n:["musical note","musical_note"],u:"1f3b5"},{n:["multiple musical notes","notes"],u:"1f3b6"},{n:["studio_microphone"],u:"1f399-fe0f"},{n:["level_slider"],u:"1f39a-fe0f"},{n:["control_knobs"],u:"1f39b-fe0f"},{n:["microphone"],u:"1f3a4"},{n:["headphone","headphones"],u:"1f3a7"},{n:["radio"],u:"1f4fb"},{n:["saxophone"],u:"1f3b7"},{n:["guitar"],u:"1f3b8"},{n:["musical keyboard","musical_keyboard"],u:"1f3b9"},{n:["trumpet"],u:"1f3ba"},{n:["violin"],u:"1f3bb"},{n:["drum with drumsticks","drum_with_drumsticks"],u:"1f941"},{n:["mobile phone","iphone"],u:"1f4f1"},{n:["mobile phone with rightwards arrow at left","calling"],u:"1f4f2"},{n:["black telephone","phone","telephone"],u:"260e-fe0f"},{n:["telephone receiver","telephone_receiver"],u:"1f4de"},{n:["pager"],u:"1f4df"},{n:["fax machine","fax"],u:"1f4e0"},{n:["battery"],u:"1f50b"},{n:["electric plug","electric_plug"],u:"1f50c"},{n:["personal computer","computer"],u:"1f4bb"},{n:["desktop_computer"],u:"1f5a5-fe0f"},{n:["printer"],u:"1f5a8-fe0f"},{n:["keyboard"],u:"2328-fe0f"},{n:["three_button_mouse"],u:"1f5b1-fe0f"},{n:["trackball"],u:"1f5b2-fe0f"},{n:["minidisc"],u:"1f4bd"},{n:["floppy disk","floppy_disk"],u:"1f4be"},{n:["optical disc","cd"],u:"1f4bf"},{n:["dvd"],u:"1f4c0"},{n:["movie camera","movie_camera"],u:"1f3a5"},{n:["film_frames"],u:"1f39e-fe0f"},{n:["film_projector"],u:"1f4fd-fe0f"},{n:["clapper board","clapper"],u:"1f3ac"},{n:["television","tv"],u:"1f4fa"},{n:["camera"],u:"1f4f7"},{n:["camera with flash","camera_with_flash"],u:"1f4f8"},{n:["video camera","video_camera"],u:"1f4f9"},{n:["videocassette","vhs"],u:"1f4fc"},{n:["left-pointing magnifying glass","mag"],u:"1f50d"},{n:["right-pointing magnifying glass","mag_right"],u:"1f50e"},{n:["microscope"],u:"1f52c"},{n:["telescope"],u:"1f52d"},{n:["satellite antenna","satellite_antenna"],u:"1f4e1"},{n:["candle"],u:"1f56f-fe0f"},{n:["electric light bulb","bulb"],u:"1f4a1"},{n:["electric torch","flashlight"],u:"1f526"},{n:["izakaya lantern","izakaya_lantern","lantern"],u:"1f3ee"},{n:["notebook with decorative cover","notebook_with_decorative_cover"],u:"1f4d4"},{n:["closed book","closed_book"],u:"1f4d5"},{n:["open book","book","open_book"],u:"1f4d6"},{n:["green book","green_book"],u:"1f4d7"},{n:["blue book","blue_book"],u:"1f4d8"},{n:["orange book","orange_book"],u:"1f4d9"},{n:["books"],u:"1f4da"},{n:["notebook"],u:"1f4d3"},{n:["ledger"],u:"1f4d2"},{n:["page with curl","page_with_curl"],u:"1f4c3"},{n:["scroll"],u:"1f4dc"},{n:["page facing up","page_facing_up"],u:"1f4c4"},{n:["newspaper"],u:"1f4f0"},{n:["rolled_up_newspaper"],u:"1f5de-fe0f"},{n:["bookmark tabs","bookmark_tabs"],u:"1f4d1"},{n:["bookmark"],u:"1f516"},{n:["label"],u:"1f3f7-fe0f"},{n:["money bag","moneybag"],u:"1f4b0"},{n:["banknote with yen sign","yen"],u:"1f4b4"},{n:["banknote with dollar sign","dollar"],u:"1f4b5"},{n:["banknote with euro sign","euro"],u:"1f4b6"},{n:["banknote with pound sign","pound"],u:"1f4b7"},{n:["money with wings","money_with_wings"],u:"1f4b8"},{n:["credit card","credit_card"],u:"1f4b3"},{n:["chart with upwards trend and yen sign","chart"],u:"1f4b9"},{n:["currency exchange","currency_exchange"],u:"1f4b1"},{n:["heavy dollar sign","heavy_dollar_sign"],u:"1f4b2"},{n:["envelope","email"],u:"2709-fe0f"},{n:["e-mail symbol","e-mail"],u:"1f4e7"},{n:["incoming envelope","incoming_envelope"],u:"1f4e8"},{n:["envelope with downwards arrow above","envelope_with_arrow"],u:"1f4e9"},{n:["outbox tray","outbox_tray"],u:"1f4e4"},{n:["inbox tray","inbox_tray"],u:"1f4e5"},{n:["package"],u:"1f4e6"},{n:["closed mailbox with raised flag","mailbox"],u:"1f4eb"},{n:["closed mailbox with lowered flag","mailbox_closed"],u:"1f4ea"},{n:["open mailbox with raised flag","mailbox_with_mail"],u:"1f4ec"},{n:["open mailbox with lowered flag","mailbox_with_no_mail"],u:"1f4ed"},{n:["postbox"],u:"1f4ee"},{n:["ballot_box_with_ballot"],u:"1f5f3-fe0f"},{n:["pencil","pencil2"],u:"270f-fe0f"},{n:["black nib","black_nib"],u:"2712-fe0f"},{n:["lower_left_fountain_pen"],u:"1f58b-fe0f"},{n:["lower_left_ballpoint_pen"],u:"1f58a-fe0f"},{n:["lower_left_paintbrush"],u:"1f58c-fe0f"},{n:["lower_left_crayon"],u:"1f58d-fe0f"},{n:["memo","pencil"],u:"1f4dd"},{n:["briefcase"],u:"1f4bc"},{n:["file folder","file_folder"],u:"1f4c1"},{n:["open file folder","open_file_folder"],u:"1f4c2"},{n:["card_index_dividers"],u:"1f5c2-fe0f"},{n:["calendar","date"],u:"1f4c5"},{n:["tear-off calendar","calendar"],u:"1f4c6"},{n:["spiral_note_pad"],u:"1f5d2-fe0f"},{n:["spiral_calendar_pad"],u:"1f5d3-fe0f"},{n:["card index","card_index"],u:"1f4c7"},{n:["chart with upwards trend","chart_with_upwards_trend"],u:"1f4c8"},{n:["chart with downwards trend","chart_with_downwards_trend"],u:"1f4c9"},{n:["bar chart","bar_chart"],u:"1f4ca"},{n:["clipboard"],u:"1f4cb"},{n:["pushpin"],u:"1f4cc"},{n:["round pushpin","round_pushpin"],u:"1f4cd"},{n:["paperclip"],u:"1f4ce"},{n:["linked_paperclips"],u:"1f587-fe0f"},{n:["straight ruler","straight_ruler"],u:"1f4cf"},{n:["triangular ruler","triangular_ruler"],u:"1f4d0"},{n:["black scissors","scissors"],u:"2702-fe0f"},{n:["card_file_box"],u:"1f5c3-fe0f"},{n:["file_cabinet"],u:"1f5c4-fe0f"},{n:["wastebasket"],u:"1f5d1-fe0f"},{n:["lock"],u:"1f512"},{n:["open lock","unlock"],u:"1f513"},{n:["lock with ink pen","lock_with_ink_pen"],u:"1f50f"},{n:["closed lock with key","closed_lock_with_key"],u:"1f510"},{n:["key"],u:"1f511"},{n:["old_key"],u:"1f5dd-fe0f"},{n:["hammer"],u:"1f528"},{n:["pick"],u:"26cf-fe0f"},{n:["hammer_and_pick"],u:"2692-fe0f"},{n:["hammer_and_wrench"],u:"1f6e0-fe0f"},{n:["dagger_knife"],u:"1f5e1-fe0f"},{n:["crossed_swords"],u:"2694-fe0f"},{n:["pistol","gun"],u:"1f52b"},{n:["bow and arrow","bow_and_arrow"],u:"1f3f9"},{n:["shield"],u:"1f6e1-fe0f"},{n:["wrench"],u:"1f527"},{n:["nut and bolt","nut_and_bolt"],u:"1f529"},{n:["gear"],u:"2699-fe0f"},{n:["compression"],u:"1f5dc-fe0f"},{n:["alembic"],u:"2697-fe0f"},{n:["scales"],u:"2696-fe0f"},{n:["link symbol","link"],u:"1f517"},{n:["chains"],u:"26d3-fe0f"},{n:["syringe"],u:"1f489"},{n:["pill"],u:"1f48a"},{n:["smoking symbol","smoking"],u:"1f6ac"},{n:["coffin"],u:"26b0-fe0f"},{n:["funeral_urn"],u:"26b1-fe0f"},{n:["moyai"],u:"1f5ff"},{n:["oil_drum"],u:"1f6e2-fe0f"},{n:["crystal ball","crystal_ball"],u:"1f52e"},{n:["shopping trolley","shopping_trolley"],u:"1f6d2"}],symbols:[{n:["automated teller machine","atm"],u:"1f3e7"},{n:["put litter in its place symbol","put_litter_in_its_place"],u:"1f6ae"},{n:["potable water symbol","potable_water"],u:"1f6b0"},{n:["wheelchair symbol","wheelchair"],u:"267f"},{n:["mens symbol","mens"],u:"1f6b9"},{n:["womens symbol","womens"],u:"1f6ba"},{n:["restroom"],u:"1f6bb"},{n:["baby symbol","baby_symbol"],u:"1f6bc"},{n:["water closet","wc"],u:"1f6be"},{n:["passport control","passport_control"],u:"1f6c2"},{n:["customs"],u:"1f6c3"},{n:["baggage claim","baggage_claim"],u:"1f6c4"},{n:["left luggage","left_luggage"],u:"1f6c5"},{n:["warning sign","warning"],u:"26a0-fe0f"},{n:["children crossing","children_crossing"],u:"1f6b8"},{n:["no entry","no_entry"],u:"26d4"},{n:["no entry sign","no_entry_sign"],u:"1f6ab"},{n:["no bicycles","no_bicycles"],u:"1f6b3"},{n:["no smoking symbol","no_smoking"],u:"1f6ad"},{n:["do not litter symbol","do_not_litter"],u:"1f6af"},{n:["non-potable water symbol","non-potable_water"],u:"1f6b1"},{n:["no pedestrians","no_pedestrians"],u:"1f6b7"},{n:["no mobile phones","no_mobile_phones"],u:"1f4f5"},{n:["no one under eighteen symbol","underage"],u:"1f51e"},{n:["radioactive_sign"],u:"2622-fe0f"},{n:["biohazard_sign"],u:"2623-fe0f"},{n:["upwards black arrow","arrow_up"],u:"2b06-fe0f"},{n:["north east arrow","arrow_upper_right"],u:"2197-fe0f"},{n:["black rightwards arrow","arrow_right"],u:"27a1-fe0f"},{n:["south east arrow","arrow_lower_right"],u:"2198-fe0f"},{n:["downwards black arrow","arrow_down"],u:"2b07-fe0f"},{n:["south west arrow","arrow_lower_left"],u:"2199-fe0f"},{n:["leftwards black arrow","arrow_left"],u:"2b05-fe0f"},{n:["north west arrow","arrow_upper_left"],u:"2196-fe0f"},{n:["up down arrow","arrow_up_down"],u:"2195-fe0f"},{n:["left right arrow","left_right_arrow"],u:"2194-fe0f"},{n:["leftwards arrow with hook","leftwards_arrow_with_hook"],u:"21a9-fe0f"},{n:["rightwards arrow with hook","arrow_right_hook"],u:"21aa-fe0f"},{n:["arrow pointing rightwards then curving upwards","arrow_heading_up"],u:"2934-fe0f"},{n:["arrow pointing rightwards then curving downwards","arrow_heading_down"],u:"2935-fe0f"},{n:["clockwise downwards and upwards open circle arrows","arrows_clockwise"],u:"1f503"},{n:["anticlockwise downwards and upwards open circle arrows","arrows_counterclockwise"],u:"1f504"},{n:["back with leftwards arrow above","back"],u:"1f519"},{n:["end with leftwards arrow above","end"],u:"1f51a"},{n:["on with exclamation mark with left right arrow above","on"],u:"1f51b"},{n:["soon with rightwards arrow above","soon"],u:"1f51c"},{n:["top with upwards arrow above","top"],u:"1f51d"},{n:["place of worship","place_of_worship"],u:"1f6d0"},{n:["atom_symbol"],u:"269b-fe0f"},{n:["om_symbol"],u:"1f549-fe0f"},{n:["star_of_david"],u:"2721-fe0f"},{n:["wheel_of_dharma"],u:"2638-fe0f"},{n:["yin_yang"],u:"262f-fe0f"},{n:["latin_cross"],u:"271d-fe0f"},{n:["orthodox_cross"],u:"2626-fe0f"},{n:["star_and_crescent"],u:"262a-fe0f"},{n:["peace_symbol"],u:"262e-fe0f"},{n:["menorah with nine branches","menorah_with_nine_branches"],u:"1f54e"},{n:["six pointed star with middle dot","six_pointed_star"],u:"1f52f"},{n:["aries"],u:"2648"},{n:["taurus"],u:"2649"},{n:["gemini"],u:"264a"},{n:["cancer"],u:"264b"},{n:["leo"],u:"264c"},{n:["virgo"],u:"264d"},{n:["libra"],u:"264e"},{n:["scorpius"],u:"264f"},{n:["sagittarius"],u:"2650"},{n:["capricorn"],u:"2651"},{n:["aquarius"],u:"2652"},{n:["pisces"],u:"2653"},{n:["ophiuchus"],u:"26ce"},{n:["twisted rightwards arrows","twisted_rightwards_arrows"],u:"1f500"},{n:["clockwise rightwards and leftwards open circle arrows","repeat"],u:"1f501"},{n:["clockwise rightwards and leftwards open circle arrows with circled one overlay","repeat_one"],u:"1f502"},{n:["black right-pointing triangle","arrow_forward"],u:"25b6-fe0f"},{n:["black right-pointing double triangle","fast_forward"],u:"23e9"},{n:["black_right_pointing_double_triangle_with_vertical_bar"],u:"23ed-fe0f"},{n:["black_right_pointing_triangle_with_double_vertical_bar"],u:"23ef-fe0f"},{n:["black left-pointing triangle","arrow_backward"],u:"25c0-fe0f"},{n:["black left-pointing double triangle","rewind"],u:"23ea"},{n:["black_left_pointing_double_triangle_with_vertical_bar"],u:"23ee-fe0f"},{n:["up-pointing small red triangle","arrow_up_small"],u:"1f53c"},{n:["black up-pointing double triangle","arrow_double_up"],u:"23eb"},{n:["down-pointing small red triangle","arrow_down_small"],u:"1f53d"},{n:["black down-pointing double triangle","arrow_double_down"],u:"23ec"},{n:["double_vertical_bar"],u:"23f8-fe0f"},{n:["black_square_for_stop"],u:"23f9-fe0f"},{n:["black_circle_for_record"],u:"23fa-fe0f"},{n:["eject"],u:"23cf-fe0f"},{n:["cinema"],u:"1f3a6"},{n:["low brightness symbol","low_brightness"],u:"1f505"},{n:["high brightness symbol","high_brightness"],u:"1f506"},{n:["antenna with bars","signal_strength"],u:"1f4f6"},{n:["vibration mode","vibration_mode"],u:"1f4f3"},{n:["mobile phone off","mobile_phone_off"],u:"1f4f4"},{n:["female_sign"],u:"2640-fe0f"},{n:["male_sign"],u:"2642-fe0f"},{n:["medical_symbol","staff_of_aesculapius"],u:"2695-fe0f"},{n:["black universal recycling symbol","recycle"],u:"267b-fe0f"},{n:["fleur_de_lis"],u:"269c-fe0f"},{n:["trident emblem","trident"],u:"1f531"},{n:["name badge","name_badge"],u:"1f4db"},{n:["japanese symbol for beginner","beginner"],u:"1f530"},{n:["heavy large circle","o"],u:"2b55"},{n:["white heavy check mark","white_check_mark"],u:"2705"},{n:["ballot box with check","ballot_box_with_check"],u:"2611-fe0f"},{n:["heavy check mark","heavy_check_mark"],u:"2714-fe0f"},{n:["heavy multiplication x","heavy_multiplication_x"],u:"2716-fe0f"},{n:["cross mark","x"],u:"274c"},{n:["negative squared cross mark","negative_squared_cross_mark"],u:"274e"},{n:["heavy plus sign","heavy_plus_sign"],u:"2795"},{n:["heavy minus sign","heavy_minus_sign"],u:"2796"},{n:["heavy division sign","heavy_division_sign"],u:"2797"},{n:["curly loop","curly_loop"],u:"27b0"},{n:["double curly loop","loop"],u:"27bf"},{n:["part alternation mark","part_alternation_mark"],u:"303d-fe0f"},{n:["eight spoked asterisk","eight_spoked_asterisk"],u:"2733-fe0f"},{n:["eight pointed black star","eight_pointed_black_star"],u:"2734-fe0f"},{n:["sparkle"],u:"2747-fe0f"},{n:["double exclamation mark","bangbang"],u:"203c-fe0f"},{n:["exclamation question mark","interrobang"],u:"2049-fe0f"},{n:["black question mark ornament","question"],u:"2753"},{n:["white question mark ornament","grey_question"],u:"2754"},{n:["white exclamation mark ornament","grey_exclamation"],u:"2755"},{n:["heavy exclamation mark symbol","exclamation","heavy_exclamation_mark"],u:"2757"},{n:["wavy dash","wavy_dash"],u:"3030-fe0f"},{n:["copyright sign","copyright"],u:"00a9-fe0f"},{n:["registered sign","registered"],u:"00ae-fe0f"},{n:["trade mark sign","tm"],u:"2122-fe0f"},{n:["hash key","hash"],u:"0023-fe0f-20e3"},{n:["keycap_star"],u:"002a-fe0f-20e3"},{n:["keycap 0","zero"],u:"0030-fe0f-20e3"},{n:["keycap 1","one"],u:"0031-fe0f-20e3"},{n:["keycap 2","two"],u:"0032-fe0f-20e3"},{n:["keycap 3","three"],u:"0033-fe0f-20e3"},{n:["keycap 4","four"],u:"0034-fe0f-20e3"},{n:["keycap 5","five"],u:"0035-fe0f-20e3"},{n:["keycap 6","six"],u:"0036-fe0f-20e3"},{n:["keycap 7","seven"],u:"0037-fe0f-20e3"},{n:["keycap 8","eight"],u:"0038-fe0f-20e3"},{n:["keycap 9","nine"],u:"0039-fe0f-20e3"},{n:["keycap ten","keycap_ten"],u:"1f51f"},{n:["hundred points symbol","100"],u:"1f4af"},{n:["input symbol for latin capital letters","capital_abcd"],u:"1f520"},{n:["input symbol for latin small letters","abcd"],u:"1f521"},{n:["input symbol for numbers","1234"],u:"1f522"},{n:["input symbol for symbols","symbols"],u:"1f523"},{n:["input symbol for latin letters","abc"],u:"1f524"},{n:["negative squared latin capital letter a","a"],u:"1f170-fe0f"},{n:["negative squared ab","ab"],u:"1f18e"},{n:["negative squared latin capital letter b","b"],u:"1f171-fe0f"},{n:["squared cl","cl"],u:"1f191"},{n:["squared cool","cool"],u:"1f192"},{n:["squared free","free"],u:"1f193"},{n:["information source","information_source"],u:"2139-fe0f"},{n:["squared id","id"],u:"1f194"},{n:["circled latin capital letter m","m"],u:"24c2-fe0f"},{n:["squared new","new"],u:"1f195"},{n:["squared ng","ng"],u:"1f196"},{n:["negative squared latin capital letter o","o2"],u:"1f17e-fe0f"},{n:["squared ok","ok"],u:"1f197"},{n:["negative squared latin capital letter p","parking"],u:"1f17f-fe0f"},{n:["squared sos","sos"],u:"1f198"},{n:["squared up with exclamation mark","up"],u:"1f199"},{n:["squared vs","vs"],u:"1f19a"},{n:["squared katakana koko","koko"],u:"1f201"},{n:["squared katakana sa","sa"],u:"1f202-fe0f"},{n:["squared cjk unified ideograph-6708","u6708"],u:"1f237-fe0f"},{n:["squared cjk unified ideograph-6709","u6709"],u:"1f236"},{n:["squared cjk unified ideograph-6307","u6307"],u:"1f22f"},{n:["circled ideograph advantage","ideograph_advantage"],u:"1f250"},{n:["squared cjk unified ideograph-5272","u5272"],u:"1f239"},{n:["squared cjk unified ideograph-7121","u7121"],u:"1f21a"},{n:["squared cjk unified ideograph-7981","u7981"],u:"1f232"},{n:["circled ideograph accept","accept"],u:"1f251"},{n:["squared cjk unified ideograph-7533","u7533"],u:"1f238"},{n:["squared cjk unified ideograph-5408","u5408"],u:"1f234"},{n:["squared cjk unified ideograph-7a7a","u7a7a"],u:"1f233"},{n:["circled ideograph congratulation","congratulations"],u:"3297-fe0f"},{n:["circled ideograph secret","secret"],u:"3299-fe0f"},{n:["squared cjk unified ideograph-55b6","u55b6"],u:"1f23a"},{n:["squared cjk unified ideograph-6e80","u6e80"],u:"1f235"},{n:["black small square","black_small_square"],u:"25aa-fe0f"},{n:["white small square","white_small_square"],u:"25ab-fe0f"},{n:["white medium square","white_medium_square"],u:"25fb-fe0f"},{n:["black medium square","black_medium_square"],u:"25fc-fe0f"},{n:["white medium small square","white_medium_small_square"],u:"25fd"},{n:["black medium small square","black_medium_small_square"],u:"25fe"},{n:["black large square","black_large_square"],u:"2b1b"},{n:["white large square","white_large_square"],u:"2b1c"},{n:["large orange diamond","large_orange_diamond"],u:"1f536"},{n:["large blue diamond","large_blue_diamond"],u:"1f537"},{n:["small orange diamond","small_orange_diamond"],u:"1f538"},{n:["small blue diamond","small_blue_diamond"],u:"1f539"},{n:["up-pointing red triangle","small_red_triangle"],u:"1f53a"},{n:["down-pointing red triangle","small_red_triangle_down"],u:"1f53b"},{n:["diamond shape with a dot inside","diamond_shape_with_a_dot_inside"],u:"1f4a0"},{n:["radio button","radio_button"],u:"1f518"},{n:["black square button","black_square_button"],u:"1f532"},{n:["white square button","white_square_button"],u:"1f533"},{n:["medium white circle","white_circle"],u:"26aa"},{n:["medium black circle","black_circle"],u:"26ab"},{n:["large red circle","red_circle"],u:"1f534"},{n:["large blue circle","large_blue_circle"],u:"1f535"}],flags:[{n:["chequered flag","checkered_flag"],u:"1f3c1"},{n:["triangular flag on post","triangular_flag_on_post"],u:"1f6a9"},{n:["crossed flags","crossed_flags"],u:"1f38c"},{n:["waving black flag","waving_black_flag"],u:"1f3f4"},{n:["waving_white_flag"],u:"1f3f3-fe0f"},{n:["rainbow-flag"],u:"1f3f3-fe0f-200d-1f308"},{n:["ascension island flag","flag-ac"],u:"1f1e6-1f1e8"},{n:["andorra flag","flag-ad"],u:"1f1e6-1f1e9"},{n:["united arab emirates flag","flag-ae"],u:"1f1e6-1f1ea"},{n:["afghanistan flag","flag-af"],u:"1f1e6-1f1eb"},{n:["antigua & barbuda flag","flag-ag"],u:"1f1e6-1f1ec"},{n:["anguilla flag","flag-ai"],u:"1f1e6-1f1ee"},{n:["albania flag","flag-al"],u:"1f1e6-1f1f1"},{n:["armenia flag","flag-am"],u:"1f1e6-1f1f2"},{n:["angola flag","flag-ao"],u:"1f1e6-1f1f4"},{n:["antarctica flag","flag-aq"],u:"1f1e6-1f1f6"},{n:["argentina flag","flag-ar"],u:"1f1e6-1f1f7"},{n:["american samoa flag","flag-as"],u:"1f1e6-1f1f8"},{n:["austria flag","flag-at"],u:"1f1e6-1f1f9"},{n:["australia flag","flag-au"],u:"1f1e6-1f1fa"},{n:["aruba flag","flag-aw"],u:"1f1e6-1f1fc"},{n:["åland islands flag","flag-ax"],u:"1f1e6-1f1fd"},{n:["azerbaijan flag","flag-az"],u:"1f1e6-1f1ff"},{n:["bosnia & herzegovina flag","flag-ba"],u:"1f1e7-1f1e6"},{n:["barbados flag","flag-bb"],u:"1f1e7-1f1e7"},{n:["bangladesh flag","flag-bd"],u:"1f1e7-1f1e9"},{n:["belgium flag","flag-be"],u:"1f1e7-1f1ea"},{n:["burkina faso flag","flag-bf"],u:"1f1e7-1f1eb"},{n:["bulgaria flag","flag-bg"],u:"1f1e7-1f1ec"},{n:["bahrain flag","flag-bh"],u:"1f1e7-1f1ed"},{n:["burundi flag","flag-bi"],u:"1f1e7-1f1ee"},{n:["benin flag","flag-bj"],u:"1f1e7-1f1ef"},{n:["st. barthélemy flag","flag-bl"],u:"1f1e7-1f1f1"},{n:["bermuda flag","flag-bm"],u:"1f1e7-1f1f2"},{n:["brunei flag","flag-bn"],u:"1f1e7-1f1f3"},{n:["bolivia flag","flag-bo"],u:"1f1e7-1f1f4"},{n:["caribbean netherlands flag","flag-bq"],u:"1f1e7-1f1f6"},{n:["brazil flag","flag-br"],u:"1f1e7-1f1f7"},{n:["bahamas flag","flag-bs"],u:"1f1e7-1f1f8"},{n:["bhutan flag","flag-bt"],u:"1f1e7-1f1f9"},{n:["bouvet island flag","flag-bv"],u:"1f1e7-1f1fb"},{n:["botswana flag","flag-bw"],u:"1f1e7-1f1fc"},{n:["belarus flag","flag-by"],u:"1f1e7-1f1fe"},{n:["belize flag","flag-bz"],u:"1f1e7-1f1ff"},{n:["canada flag","flag-ca"],u:"1f1e8-1f1e6"},{n:["cocos (keeling) islands flag","flag-cc"],u:"1f1e8-1f1e8"},{n:["congo - kinshasa flag","flag-cd"],u:"1f1e8-1f1e9"},{n:["central african republic flag","flag-cf"],u:"1f1e8-1f1eb"},{n:["congo - brazzaville flag","flag-cg"],u:"1f1e8-1f1ec"},{n:["switzerland flag","flag-ch"],u:"1f1e8-1f1ed"},{n:["côte d’ivoire flag","flag-ci"],u:"1f1e8-1f1ee"},{n:["cook islands flag","flag-ck"],u:"1f1e8-1f1f0"},{n:["chile flag","flag-cl"],u:"1f1e8-1f1f1"},{n:["cameroon flag","flag-cm"],u:"1f1e8-1f1f2"},{n:["china flag","cn","flag-cn"],u:"1f1e8-1f1f3"},{n:["colombia flag","flag-co"],u:"1f1e8-1f1f4"},{n:["clipperton island flag","flag-cp"],u:"1f1e8-1f1f5"},{n:["costa rica flag","flag-cr"],u:"1f1e8-1f1f7"},{n:["cuba flag","flag-cu"],u:"1f1e8-1f1fa"},{n:["cape verde flag","flag-cv"],u:"1f1e8-1f1fb"},{n:["curaçao flag","flag-cw"],u:"1f1e8-1f1fc"},{n:["christmas island flag","flag-cx"],u:"1f1e8-1f1fd"},{n:["cyprus flag","flag-cy"],u:"1f1e8-1f1fe"},{n:["czechia flag","flag-cz"],u:"1f1e8-1f1ff"},{n:["germany flag","de","flag-de"],u:"1f1e9-1f1ea"},{n:["diego garcia flag","flag-dg"],u:"1f1e9-1f1ec"},{n:["djibouti flag","flag-dj"],u:"1f1e9-1f1ef"},{n:["denmark flag","flag-dk"],u:"1f1e9-1f1f0"},{n:["dominica flag","flag-dm"],u:"1f1e9-1f1f2"},{n:["dominican republic flag","flag-do"],u:"1f1e9-1f1f4"},{n:["algeria flag","flag-dz"],u:"1f1e9-1f1ff"},{n:["ceuta & melilla flag","flag-ea"],u:"1f1ea-1f1e6"},{n:["ecuador flag","flag-ec"],u:"1f1ea-1f1e8"},{n:["estonia flag","flag-ee"],u:"1f1ea-1f1ea"},{n:["egypt flag","flag-eg"],u:"1f1ea-1f1ec"},{n:["western sahara flag","flag-eh"],u:"1f1ea-1f1ed"},{n:["eritrea flag","flag-er"],u:"1f1ea-1f1f7"},{n:["spain flag","es","flag-es"],u:"1f1ea-1f1f8"},{n:["ethiopia flag","flag-et"],u:"1f1ea-1f1f9"},{n:["european union flag","flag-eu"],u:"1f1ea-1f1fa"},{n:["finland flag","flag-fi"],u:"1f1eb-1f1ee"},{n:["fiji flag","flag-fj"],u:"1f1eb-1f1ef"},{n:["falkland islands flag","flag-fk"],u:"1f1eb-1f1f0"},{n:["micronesia flag","flag-fm"],u:"1f1eb-1f1f2"},{n:["faroe islands flag","flag-fo"],u:"1f1eb-1f1f4"},{n:["france flag","fr","flag-fr"],u:"1f1eb-1f1f7"},{n:["gabon flag","flag-ga"],u:"1f1ec-1f1e6"},{n:["united kingdom flag","gb","uk","flag-gb"],u:"1f1ec-1f1e7"},{n:["grenada flag","flag-gd"],u:"1f1ec-1f1e9"},{n:["georgia flag","flag-ge"],u:"1f1ec-1f1ea"},{n:["french guiana flag","flag-gf"],u:"1f1ec-1f1eb"},{n:["guernsey flag","flag-gg"],u:"1f1ec-1f1ec"},{n:["ghana flag","flag-gh"],u:"1f1ec-1f1ed"},{n:["gibraltar flag","flag-gi"],u:"1f1ec-1f1ee"},{n:["greenland flag","flag-gl"],u:"1f1ec-1f1f1"},{n:["gambia flag","flag-gm"],u:"1f1ec-1f1f2"},{n:["guinea flag","flag-gn"],u:"1f1ec-1f1f3"},{n:["guadeloupe flag","flag-gp"],u:"1f1ec-1f1f5"},{n:["equatorial guinea flag","flag-gq"],u:"1f1ec-1f1f6"},{n:["greece flag","flag-gr"],u:"1f1ec-1f1f7"},{n:["south georgia & south sandwich islands flag","flag-gs"],u:"1f1ec-1f1f8"},{n:["guatemala flag","flag-gt"],u:"1f1ec-1f1f9"},{n:["guam flag","flag-gu"],u:"1f1ec-1f1fa"},{n:["guinea-bissau flag","flag-gw"],u:"1f1ec-1f1fc"},{n:["guyana flag","flag-gy"],u:"1f1ec-1f1fe"},{n:["hong kong sar china flag","flag-hk"],u:"1f1ed-1f1f0"},{n:["heard & mcdonald islands flag","flag-hm"],u:"1f1ed-1f1f2"},{n:["honduras flag","flag-hn"],u:"1f1ed-1f1f3"},{n:["croatia flag","flag-hr"],u:"1f1ed-1f1f7"},{n:["haiti flag","flag-ht"],u:"1f1ed-1f1f9"},{n:["hungary flag","flag-hu"],u:"1f1ed-1f1fa"},{n:["canary islands flag","flag-ic"],u:"1f1ee-1f1e8"},{n:["indonesia flag","flag-id"],u:"1f1ee-1f1e9"},{n:["ireland flag","flag-ie"],u:"1f1ee-1f1ea"},{n:["israel flag","flag-il"],u:"1f1ee-1f1f1"},{n:["isle of man flag","flag-im"],u:"1f1ee-1f1f2"},{n:["india flag","flag-in"],u:"1f1ee-1f1f3"},{n:["british indian ocean territory flag","flag-io"],u:"1f1ee-1f1f4"},{n:["iraq flag","flag-iq"],u:"1f1ee-1f1f6"},{n:["iran flag","flag-ir"],u:"1f1ee-1f1f7"},{n:["iceland flag","flag-is"],u:"1f1ee-1f1f8"},{n:["italy flag","it","flag-it"],u:"1f1ee-1f1f9"},{n:["jersey flag","flag-je"],u:"1f1ef-1f1ea"},{n:["jamaica flag","flag-jm"],u:"1f1ef-1f1f2"},{n:["jordan flag","flag-jo"],u:"1f1ef-1f1f4"},{n:["japan flag","jp","flag-jp"],u:"1f1ef-1f1f5"},{n:["kenya flag","flag-ke"],u:"1f1f0-1f1ea"},{n:["kyrgyzstan flag","flag-kg"],u:"1f1f0-1f1ec"},{n:["cambodia flag","flag-kh"],u:"1f1f0-1f1ed"},{n:["kiribati flag","flag-ki"],u:"1f1f0-1f1ee"},{n:["comoros flag","flag-km"],u:"1f1f0-1f1f2"},{n:["st. kitts & nevis flag","flag-kn"],u:"1f1f0-1f1f3"},{n:["north korea flag","flag-kp"],u:"1f1f0-1f1f5"},{n:["south korea flag","kr","flag-kr"],u:"1f1f0-1f1f7"},{n:["kuwait flag","flag-kw"],u:"1f1f0-1f1fc"},{n:["cayman islands flag","flag-ky"],u:"1f1f0-1f1fe"},{n:["kazakhstan flag","flag-kz"],u:"1f1f0-1f1ff"},{n:["laos flag","flag-la"],u:"1f1f1-1f1e6"},{n:["lebanon flag","flag-lb"],u:"1f1f1-1f1e7"},{n:["st. lucia flag","flag-lc"],u:"1f1f1-1f1e8"},{n:["liechtenstein flag","flag-li"],u:"1f1f1-1f1ee"},{n:["sri lanka flag","flag-lk"],u:"1f1f1-1f1f0"},{n:["liberia flag","flag-lr"],u:"1f1f1-1f1f7"},{n:["lesotho flag","flag-ls"],u:"1f1f1-1f1f8"},{n:["lithuania flag","flag-lt"],u:"1f1f1-1f1f9"},{n:["luxembourg flag","flag-lu"],u:"1f1f1-1f1fa"},{n:["latvia flag","flag-lv"],u:"1f1f1-1f1fb"},{n:["libya flag","flag-ly"],u:"1f1f1-1f1fe"},{n:["morocco flag","flag-ma"],u:"1f1f2-1f1e6"},{n:["monaco flag","flag-mc"],u:"1f1f2-1f1e8"},{n:["moldova flag","flag-md"],u:"1f1f2-1f1e9"},{n:["montenegro flag","flag-me"],u:"1f1f2-1f1ea"},{n:["st. martin flag","flag-mf"],u:"1f1f2-1f1eb"},{n:["madagascar flag","flag-mg"],u:"1f1f2-1f1ec"},{n:["marshall islands flag","flag-mh"],u:"1f1f2-1f1ed"},{n:["macedonia flag","flag-mk"],u:"1f1f2-1f1f0"},{n:["mali flag","flag-ml"],u:"1f1f2-1f1f1"},{n:["myanmar (burma) flag","flag-mm"],u:"1f1f2-1f1f2"},{n:["mongolia flag","flag-mn"],u:"1f1f2-1f1f3"},{n:["macau sar china flag","flag-mo"],u:"1f1f2-1f1f4"},{n:["northern mariana islands flag","flag-mp"],u:"1f1f2-1f1f5"},{n:["martinique flag","flag-mq"],u:"1f1f2-1f1f6"},{n:["mauritania flag","flag-mr"],u:"1f1f2-1f1f7"},{n:["montserrat flag","flag-ms"],u:"1f1f2-1f1f8"},{n:["malta flag","flag-mt"],u:"1f1f2-1f1f9"},{n:["mauritius flag","flag-mu"],u:"1f1f2-1f1fa"},{n:["maldives flag","flag-mv"],u:"1f1f2-1f1fb"},{n:["malawi flag","flag-mw"],u:"1f1f2-1f1fc"},{n:["mexico flag","flag-mx"],u:"1f1f2-1f1fd"},{n:["malaysia flag","flag-my"],u:"1f1f2-1f1fe"},{n:["mozambique flag","flag-mz"],u:"1f1f2-1f1ff"},{n:["namibia flag","flag-na"],u:"1f1f3-1f1e6"},{n:["new caledonia flag","flag-nc"],u:"1f1f3-1f1e8"},{n:["niger flag","flag-ne"],u:"1f1f3-1f1ea"},{n:["norfolk island flag","flag-nf"],u:"1f1f3-1f1eb"},{n:["nigeria flag","flag-ng"],u:"1f1f3-1f1ec"},{n:["nicaragua flag","flag-ni"],u:"1f1f3-1f1ee"},{n:["netherlands flag","flag-nl"],u:"1f1f3-1f1f1"},{n:["norway flag","flag-no"],u:"1f1f3-1f1f4"},{n:["nepal flag","flag-np"],u:"1f1f3-1f1f5"},{n:["nauru flag","flag-nr"],u:"1f1f3-1f1f7"},{n:["niue flag","flag-nu"],u:"1f1f3-1f1fa"},{n:["new zealand flag","flag-nz"],u:"1f1f3-1f1ff"},{n:["oman flag","flag-om"],u:"1f1f4-1f1f2"},{n:["panama flag","flag-pa"],u:"1f1f5-1f1e6"},{n:["peru flag","flag-pe"],u:"1f1f5-1f1ea"},{n:["french polynesia flag","flag-pf"],u:"1f1f5-1f1eb"},{n:["papua new guinea flag","flag-pg"],u:"1f1f5-1f1ec"},{n:["philippines flag","flag-ph"],u:"1f1f5-1f1ed"},{n:["pakistan flag","flag-pk"],u:"1f1f5-1f1f0"},{n:["poland flag","flag-pl"],u:"1f1f5-1f1f1"},{n:["st. pierre & miquelon flag","flag-pm"],u:"1f1f5-1f1f2"},{n:["pitcairn islands flag","flag-pn"],u:"1f1f5-1f1f3"},{n:["puerto rico flag","flag-pr"],u:"1f1f5-1f1f7"},{n:["palestinian territories flag","flag-ps"],u:"1f1f5-1f1f8"},{n:["portugal flag","flag-pt"],u:"1f1f5-1f1f9"},{n:["palau flag","flag-pw"],u:"1f1f5-1f1fc"},{n:["paraguay flag","flag-py"],u:"1f1f5-1f1fe"},{n:["qatar flag","flag-qa"],u:"1f1f6-1f1e6"},{n:["réunion flag","flag-re"],u:"1f1f7-1f1ea"},{n:["romania flag","flag-ro"],u:"1f1f7-1f1f4"},{n:["serbia flag","flag-rs"],u:"1f1f7-1f1f8"},{n:["russia flag","ru","flag-ru"],u:"1f1f7-1f1fa"},{n:["rwanda flag","flag-rw"],u:"1f1f7-1f1fc"},{n:["saudi arabia flag","flag-sa"],u:"1f1f8-1f1e6"},{n:["solomon islands flag","flag-sb"],u:"1f1f8-1f1e7"},{n:["seychelles flag","flag-sc"],u:"1f1f8-1f1e8"},{n:["sudan flag","flag-sd"],u:"1f1f8-1f1e9"},{n:["sweden flag","flag-se"],u:"1f1f8-1f1ea"},{n:["singapore flag","flag-sg"],u:"1f1f8-1f1ec"},{n:["st. helena flag","flag-sh"],u:"1f1f8-1f1ed"},{n:["slovenia flag","flag-si"],u:"1f1f8-1f1ee"},{n:["svalbard & jan mayen flag","flag-sj"],u:"1f1f8-1f1ef"},{n:["slovakia flag","flag-sk"],u:"1f1f8-1f1f0"},{n:["sierra leone flag","flag-sl"],u:"1f1f8-1f1f1"},{n:["san marino flag","flag-sm"],u:"1f1f8-1f1f2"},{n:["senegal flag","flag-sn"],u:"1f1f8-1f1f3"},{n:["somalia flag","flag-so"],u:"1f1f8-1f1f4"},{n:["suriname flag","flag-sr"],u:"1f1f8-1f1f7"},{n:["south sudan flag","flag-ss"],u:"1f1f8-1f1f8"},{n:["são tomé & príncipe flag","flag-st"],u:"1f1f8-1f1f9"},{n:["el salvador flag","flag-sv"],u:"1f1f8-1f1fb"},{n:["sint maarten flag","flag-sx"],u:"1f1f8-1f1fd"},{n:["syria flag","flag-sy"],u:"1f1f8-1f1fe"},{n:["swaziland flag","flag-sz"],u:"1f1f8-1f1ff"},{n:["tristan da cunha flag","flag-ta"],u:"1f1f9-1f1e6"},{n:["turks & caicos islands flag","flag-tc"],u:"1f1f9-1f1e8"},{n:["chad flag","flag-td"],u:"1f1f9-1f1e9"},{n:["french southern territories flag","flag-tf"],u:"1f1f9-1f1eb"},{n:["togo flag","flag-tg"],u:"1f1f9-1f1ec"},{n:["thailand flag","flag-th"],u:"1f1f9-1f1ed"},{n:["tajikistan flag","flag-tj"],u:"1f1f9-1f1ef"},{n:["tokelau flag","flag-tk"],u:"1f1f9-1f1f0"},{n:["timor-leste flag","flag-tl"],u:"1f1f9-1f1f1"},{n:["turkmenistan flag","flag-tm"],u:"1f1f9-1f1f2"},{n:["tunisia flag","flag-tn"],u:"1f1f9-1f1f3"},{n:["tonga flag","flag-to"],u:"1f1f9-1f1f4"},{n:["turkey flag","flag-tr"],u:"1f1f9-1f1f7"},{n:["trinidad & tobago flag","flag-tt"],u:"1f1f9-1f1f9"},{n:["tuvalu flag","flag-tv"],u:"1f1f9-1f1fb"},{n:["taiwan flag","flag-tw"],u:"1f1f9-1f1fc"},{n:["tanzania flag","flag-tz"],u:"1f1f9-1f1ff"},{n:["ukraine flag","flag-ua"],u:"1f1fa-1f1e6"},{n:["uganda flag","flag-ug"],u:"1f1fa-1f1ec"},{n:["u.s. outlying islands flag","flag-um"],u:"1f1fa-1f1f2"},{n:["united nations flag","flag-un"],u:"1f1fa-1f1f3"},{n:["united states flag","us","flag-us"],u:"1f1fa-1f1f8"},{n:["uruguay flag","flag-uy"],u:"1f1fa-1f1fe"},{n:["uzbekistan flag","flag-uz"],u:"1f1fa-1f1ff"},{n:["vatican city flag","flag-va"],u:"1f1fb-1f1e6"},{n:["st. vincent & grenadines flag","flag-vc"],u:"1f1fb-1f1e8"},{n:["venezuela flag","flag-ve"],u:"1f1fb-1f1ea"},{n:["british virgin islands flag","flag-vg"],u:"1f1fb-1f1ec"},{n:["u.s. virgin islands flag","flag-vi"],u:"1f1fb-1f1ee"},{n:["vietnam flag","flag-vn"],u:"1f1fb-1f1f3"},{n:["vanuatu flag","flag-vu"],u:"1f1fb-1f1fa"},{n:["wallis & futuna flag","flag-wf"],u:"1f1fc-1f1eb"},{n:["samoa flag","flag-ws"],u:"1f1fc-1f1f8"},{n:["kosovo flag","flag-xk"],u:"1f1fd-1f1f0"},{n:["yemen flag","flag-ye"],u:"1f1fe-1f1ea"},{n:["mayotte flag","flag-yt"],u:"1f1fe-1f1f9"},{n:["south africa flag","flag-za"],u:"1f1ff-1f1e6"},{n:["zambia flag","flag-zm"],u:"1f1ff-1f1f2"},{n:["zimbabwe flag","flag-zw"],u:"1f1ff-1f1fc"},{n:["england flag","flag-england"],u:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f"},{n:["scotland flag","flag-scotland"],u:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f"},{n:["wales flag","flag-wales"],u:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f"}]},p5=[{key:"recent",title:"Recently Used",u:"1f551"},{key:"smileys_people",title:"Smiles & People",u:"1f600"},{key:"animals_nature",title:"Animals & Nature",u:"1F431"},{key:"food_drink",title:"Food & Drink",u:"2615"},{key:"activities",title:"Activities",u:"26BD"},{key:"travel_places",title:"Travel & Places",u:"1F697"},{key:"objects",title:"Objects",u:"1F4A1"},{key:"symbols",title:"Symbols",u:"1f4af"},{key:"flags",title:"Flags",u:"1f3f3-fe0f"}];const oAe=(e,t)=>t.some(n=>e instanceof n);let g5,y5;function sAe(){return g5||(g5=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function lAe(){return y5||(y5=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const b5=new WeakMap,Ng=new WeakMap,w5=new WeakMap,jg=new WeakMap,Ig=new WeakMap;function uAe(e){const t=new Promise((n,i)=>{const r=()=>{e.removeEventListener("success",a),e.removeEventListener("error",o)},a=()=>{n(aa(e.result)),r()},o=()=>{i(e.error),r()};e.addEventListener("success",a),e.addEventListener("error",o)});return t.then(n=>{n instanceof IDBCursor&&b5.set(n,e)}).catch(()=>{}),Ig.set(t,e),t}function dAe(e){if(Ng.has(e))return;const t=new Promise((n,i)=>{const r=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",o),e.removeEventListener("abort",o)},a=()=>{n(),r()},o=()=>{i(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",a),e.addEventListener("error",o),e.addEventListener("abort",o)});Ng.set(e,t)}let Wg={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Ng.get(e);if(t==="objectStoreNames")return e.objectStoreNames||w5.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return aa(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function cAe(e){Wg=e(Wg)}function fAe(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const i=e.call(Og(this),t,...n);return w5.set(i,t.sort?t.sort():[t]),aa(i)}:lAe().includes(e)?function(...t){return e.apply(Og(this),t),aa(b5.get(this))}:function(...t){return aa(e.apply(Og(this),t))}}function hAe(e){return typeof e=="function"?fAe(e):(e instanceof IDBTransaction&&dAe(e),oAe(e,sAe())?new Proxy(e,Wg):e)}function aa(e){if(e instanceof IDBRequest)return uAe(e);if(jg.has(e))return jg.get(e);const t=hAe(e);return t!==e&&(jg.set(e,t),Ig.set(t,e)),t}const Og=e=>Ig.get(e);function zg(e,t,{blocked:n,upgrade:i,blocking:r,terminated:a}={}){const o=indexedDB.open(e,t),s=aa(o);return i&&o.addEventListener("upgradeneeded",u=>{i(aa(o.result),u.oldVersion,u.newVersion,aa(o.transaction),u)}),n&&o.addEventListener("blocked",u=>n(u.oldVersion,u.newVersion,u)),s.then(u=>{a&&u.addEventListener("close",()=>a()),r&&u.addEventListener("versionchange",c=>r(c.oldVersion,c.newVersion,c))}).catch(()=>{}),s}const mAe=["get","getKey","getAll","getAllKeys","count"],pAe=["put","add","delete","clear"],Lg=new Map;function v5(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Lg.get(t))return Lg.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,r=pAe.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(r||mAe.includes(n)))return;const a=async function(o,...s){const u=this.transaction(o,r?"readwrite":"readonly");let c=u.store;return i&&(c=c.index(s.shift())),(await Promise.all([c[n](...s),r&&u.done]))[0]};return Lg.set(t,a),a}cAe(e=>({...e,get:(t,n,i)=>v5(t,n)||e.get(t,n,i),has:(t,n)=>!!v5(t,n)||e.has(t,n)}));const $g="EMJ",hs="emojis",Hg=3;async function gAe(){(await zg($g,Hg,{upgrade(t,n){t.objectStoreNames.contains(hs)||t.createObjectStore(hs,{keyPath:"id",autoIncrement:!0}).createIndex("id","id",{unique:!0})}})).close()}gAe();const yAe={native:!1,hideSearch:!0,hideGroupIcons:!1,hideGroupNames:!1,staticTexts:{},disabledGroups:[],groupNames:{},displayRecent:!1,additionalGroups:{},groupOrder:[],groupIcons:{}};async function bAe(){return await(await zg($g,Hg)).transaction(hs,"readonly").objectStore(hs).getAll()}function wAe(){const e=l.reactive({search:"",emoji:tAe,activeGroup:"",skinTone:wf,options:yAe,additionalGroups:{},recent:[],get emojis(){return{recent:this.recent,...this.options.additionalGroups,...aAe}},get disabled(){let h=Array.isArray(this.options.disabledGroups)?this.options.disabledGroups:[];return this.options.displayRecent||(h=["recent",...h]),h},get groups(){return p5.filter(h=>!this.disabled.includes(h.key))},get orderedGroupKeys(){const h=[...this.options.groupOrder,...Object.keys(this.options.additionalGroups),...p5.map(g=>g.key)];return[...new Set(h)].filter(g=>!this.disabled.includes(g))}});function t(){e.options.displayRecent&&i()}async function n(){var h;let g=await bAe();return Array.isArray(g)&&g.length?g=JSON.parse(((h=g[0])==null?void 0:h.value)||""):g=[],g}function i(){n().then(h=>{e.recent=h,c()})}const r=h=>{e.search=h},a=h=>{e.emoji=h},o=h=>{e.activeGroup=h},s=(h=wf)=>{e.skinTone=h},u=h=>{e.options=Object.assign({},e.options,h),t()};async function c(){(await zg($g,Hg)).transaction(hs,"readwrite").objectStore(hs).put({id:0,value:JSON.stringify(e.recent)})}const f=h=>{if(e.options.displayRecent!==!0)return;const g=e.recent.findIndex(y=>y.u===h.u);if(g>0&&e.recent.splice(g,1),g===0)return;const p={u:h.u,n:l.toRaw(h.n)};e.recent=[p,...e.recent],e.recent.length>24&&(e.recent.length=24),c()};return{state:l.readonly(e),updateSearch:r,updateEmoji:a,updateActiveGroup:o,updateSkinTone:s,updateOptions:u,updateSelect:f}}var _n="top",ti="bottom",ni="right",Tn="left",Rg="auto",nu=[_n,ti,ni,Tn],ms="start",iu="end",vAe="clippingParents",k5="viewport",ru="popper",kAe="reference",M5=nu.reduce(function(e,t){return e.concat([t+"-"+ms,t+"-"+iu])},[]),C5=[].concat(nu,[Rg]).reduce(function(e,t){return e.concat([t,t+"-"+ms,t+"-"+iu])},[]),MAe="beforeRead",CAe="read",xAe="afterRead",SAe="beforeMain",_Ae="main",TAe="afterMain",PAe="beforeWrite",EAe="write",AAe="afterWrite",DAe=[MAe,CAe,xAe,SAe,_Ae,TAe,PAe,EAe,AAe];function Xi(e){return e?(e.nodeName||"").toLowerCase():null}function Si(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ps(e){var t=Si(e).Element;return e instanceof t||e instanceof Element}function ii(e){var t=Si(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function x5(e){if(typeof ShadowRoot>"u")return!1;var t=Si(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function NAe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},r=t.attributes[n]||{},a=t.elements[n];!ii(a)||!Xi(a)||(Object.assign(a.style,i),Object.keys(r).forEach(function(o){var s=r[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function jAe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],a=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),s=o.reduce(function(u,c){return u[c]="",u},{});!ii(r)||!Xi(r)||(Object.assign(r.style,s),Object.keys(a).forEach(function(u){r.removeAttribute(u)}))})}}var IAe={name:"applyStyles",enabled:!0,phase:"write",fn:NAe,effect:jAe,requires:["computeStyles"]};function qi(e){return e.split("-")[0]}var so=Math.max,vf=Math.min,gs=Math.round;function ys(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),i=1,r=1;if(ii(e)&&t){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(i=gs(n.width)/o||1),a>0&&(r=gs(n.height)/a||1)}return{width:n.width/i,height:n.height/r,top:n.top/r,right:n.right/i,bottom:n.bottom/r,left:n.left/i,x:n.left/i,y:n.top/r}}function Bg(e){var t=ys(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function S5(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&x5(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Gi(e){return Si(e).getComputedStyle(e)}function WAe(e){return["table","td","th"].indexOf(Xi(e))>=0}function oa(e){return((ps(e)?e.ownerDocument:e.document)||window.document).documentElement}function kf(e){return Xi(e)==="html"?e:e.assignedSlot||e.parentNode||(x5(e)?e.host:null)||oa(e)}function _5(e){return!ii(e)||Gi(e).position==="fixed"?null:e.offsetParent}function OAe(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&ii(e)){var i=Gi(e);if(i.position==="fixed")return null}for(var r=kf(e);ii(r)&&["html","body"].indexOf(Xi(r))<0;){var a=Gi(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function au(e){for(var t=Si(e),n=_5(e);n&&WAe(n)&&Gi(n).position==="static";)n=_5(n);return n&&(Xi(n)==="html"||Xi(n)==="body"&&Gi(n).position==="static")?t:n||OAe(e)||t}function Vg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ou(e,t,n){return so(e,vf(t,n))}function zAe(e,t,n){var i=ou(e,t,n);return i>n?n:i}function T5(){return{top:0,right:0,bottom:0,left:0}}function P5(e){return Object.assign({},T5(),e)}function E5(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var LAe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,P5(typeof t!="number"?t:E5(t,nu))};function $Ae(e){var t,n=e.state,i=e.name,r=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=qi(n.placement),u=Vg(s),c=[Tn,ni].indexOf(s)>=0,f=c?"height":"width";if(!(!a||!o)){var h=LAe(r.padding,n),g=Bg(a),p=u==="y"?_n:Tn,y=u==="y"?ti:ni,v=n.rects.reference[f]+n.rects.reference[u]-o[u]-n.rects.popper[f],k=o[u]-n.rects.reference[u],w=au(a),M=w?u==="y"?w.clientHeight||0:w.clientWidth||0:0,x=v/2-k/2,S=h[p],E=M-g[f]-h[y],I=M/2-g[f]/2+x,A=ou(S,I,E),W=u;n.modifiersData[i]=(t={},t[W]=A,t.centerOffset=A-I,t)}}function HAe(e){var t=e.state,n=e.options,i=n.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||S5(t.elements.popper,r)&&(t.elements.arrow=r))}var RAe={name:"arrow",enabled:!0,phase:"main",fn:$Ae,effect:HAe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bs(e){return e.split("-")[1]}var BAe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VAe(e){var t=e.x,n=e.y,i=window,r=i.devicePixelRatio||1;return{x:gs(t*r)/r||0,y:gs(n*r)/r||0}}function A5(e){var t,n=e.popper,i=e.popperRect,r=e.placement,a=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,g=f===!0?VAe(o):typeof f=="function"?f(o):o,p=g.x,y=p===void 0?0:p,v=g.y,k=v===void 0?0:v,w=o.hasOwnProperty("x"),M=o.hasOwnProperty("y"),x=Tn,S=_n,E=window;if(c){var I=au(n),A="clientHeight",W="clientWidth";if(I===Si(n)&&(I=oa(n),Gi(I).position!=="static"&&s==="absolute"&&(A="scrollHeight",W="scrollWidth")),I=I,r===_n||(r===Tn||r===ni)&&a===iu){S=ti;var $=h&&E.visualViewport?E.visualViewport.height:I[A];k-=$-i.height,k*=u?1:-1}if(r===Tn||(r===_n||r===ti)&&a===iu){x=ni;var D=h&&E.visualViewport?E.visualViewport.width:I[W];y-=D-i.width,y*=u?1:-1}}var z=Object.assign({position:s},c&&BAe);if(u){var H;return Object.assign({},z,(H={},H[S]=M?"0":"",H[x]=w?"0":"",H.transform=(E.devicePixelRatio||1)<=1?"translate("+y+"px, "+k+"px)":"translate3d("+y+"px, "+k+"px, 0)",H))}return Object.assign({},z,(t={},t[S]=M?k+"px":"",t[x]=w?y+"px":"",t.transform="",t))}function FAe(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=i===void 0?!0:i,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,u=s===void 0?!0:s,c={placement:qi(t.placement),variation:bs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,A5(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,A5(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var UAe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:FAe,data:{}},Mf={passive:!0};function YAe(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,a=r===void 0?!0:r,o=i.resize,s=o===void 0?!0:o,u=Si(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(f){f.addEventListener("scroll",n.update,Mf)}),s&&u.addEventListener("resize",n.update,Mf),function(){a&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Mf)}),s&&u.removeEventListener("resize",n.update,Mf)}}var XAe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:YAe,data:{}},qAe={left:"right",right:"left",bottom:"top",top:"bottom"};function Cf(e){return e.replace(/left|right|bottom|top/g,function(t){return qAe[t]})}var GAe={start:"end",end:"start"};function D5(e){return e.replace(/start|end/g,function(t){return GAe[t]})}function Fg(e){var t=Si(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function Ug(e){return ys(oa(e)).left+Fg(e).scrollLeft}function KAe(e){var t=Si(e),n=oa(e),i=t.visualViewport,r=n.clientWidth,a=n.clientHeight,o=0,s=0;return i&&(r=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,s=i.offsetTop)),{width:r,height:a,x:o+Ug(e),y:s}}function QAe(e){var t,n=oa(e),i=Fg(e),r=(t=e.ownerDocument)==null?void 0:t.body,a=so(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=so(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+Ug(e),u=-i.scrollTop;return Gi(r||n).direction==="rtl"&&(s+=so(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}function Yg(e){var t=Gi(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function N5(e){return["html","body","#document"].indexOf(Xi(e))>=0?e.ownerDocument.body:ii(e)&&Yg(e)?e:N5(kf(e))}function su(e,t){var n;t===void 0&&(t=[]);var i=N5(e),r=i===((n=e.ownerDocument)==null?void 0:n.body),a=Si(i),o=r?[a].concat(a.visualViewport||[],Yg(i)?i:[]):i,s=t.concat(o);return r?s:s.concat(su(kf(o)))}function Xg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function JAe(e){var t=ys(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function j5(e,t){return t===k5?Xg(KAe(e)):ps(t)?JAe(t):Xg(QAe(oa(e)))}function ZAe(e){var t=su(kf(e)),n=["absolute","fixed"].indexOf(Gi(e).position)>=0,i=n&&ii(e)?au(e):e;return ps(i)?t.filter(function(r){return ps(r)&&S5(r,i)&&Xi(r)!=="body"&&(n?Gi(r).position!=="static":!0)}):[]}function eDe(e,t,n){var i=t==="clippingParents"?ZAe(e):[].concat(t),r=[].concat(i,[n]),a=r[0],o=r.reduce(function(s,u){var c=j5(e,u);return s.top=so(c.top,s.top),s.right=vf(c.right,s.right),s.bottom=vf(c.bottom,s.bottom),s.left=so(c.left,s.left),s},j5(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function I5(e){var t=e.reference,n=e.element,i=e.placement,r=i?qi(i):null,a=i?bs(i):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(r){case _n:u={x:o,y:t.y-n.height};break;case ti:u={x:o,y:t.y+t.height};break;case ni:u={x:t.x+t.width,y:s};break;case Tn:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var c=r?Vg(r):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case ms:u[c]=u[c]-(t[f]/2-n[f]/2);break;case iu:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function lu(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=i===void 0?e.placement:i,a=n.boundary,o=a===void 0?vAe:a,s=n.rootBoundary,u=s===void 0?k5:s,c=n.elementContext,f=c===void 0?ru:c,h=n.altBoundary,g=h===void 0?!1:h,p=n.padding,y=p===void 0?0:p,v=P5(typeof y!="number"?y:E5(y,nu)),k=f===ru?kAe:ru,w=e.rects.popper,M=e.elements[g?k:f],x=eDe(ps(M)?M:M.contextElement||oa(e.elements.popper),o,u),S=ys(e.elements.reference),E=I5({reference:S,element:w,strategy:"absolute",placement:r}),I=Xg(Object.assign({},w,E)),A=f===ru?I:S,W={top:x.top-A.top+v.top,bottom:A.bottom-x.bottom+v.bottom,left:x.left-A.left+v.left,right:A.right-x.right+v.right},$=e.modifiersData.offset;if(f===ru&&$){var D=$[r];Object.keys(W).forEach(function(z){var H=[ni,ti].indexOf(z)>=0?1:-1,X=[_n,ti].indexOf(z)>=0?"y":"x";W[z]+=D[X]*H})}return W}function tDe(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?C5:u,f=bs(i),h=f?s?M5:M5.filter(function(y){return bs(y)===f}):nu,g=h.filter(function(y){return c.indexOf(y)>=0});g.length===0&&(g=h);var p=g.reduce(function(y,v){return y[v]=lu(e,{placement:v,boundary:r,rootBoundary:a,padding:o})[qi(v)],y},{});return Object.keys(p).sort(function(y,v){return p[y]-p[v]})}function nDe(e){if(qi(e)===Rg)return[];var t=Cf(e);return[D5(e),t,D5(t)]}function iDe(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,a=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!0:o,u=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,g=n.altBoundary,p=n.flipVariations,y=p===void 0?!0:p,v=n.allowedAutoPlacements,k=t.options.placement,w=qi(k),M=w===k,x=u||(M||!y?[Cf(k)]:nDe(k)),S=[k].concat(x).reduce(function(qe,rt){return qe.concat(qi(rt)===Rg?tDe(t,{placement:rt,boundary:f,rootBoundary:h,padding:c,flipVariations:y,allowedAutoPlacements:v}):rt)},[]),E=t.rects.reference,I=t.rects.popper,A=new Map,W=!0,$=S[0],D=0;D<S.length;D++){var z=S[D],H=qi(z),X=bs(z)===ms,re=[_n,ti].indexOf(H)>=0,ne=re?"width":"height",q=lu(t,{placement:z,boundary:f,rootBoundary:h,altBoundary:g,padding:c}),Z=re?X?ni:Tn:X?ti:_n;E[ne]>I[ne]&&(Z=Cf(Z));var ue=Cf(Z),Ne=[];if(a&&Ne.push(q[H]<=0),s&&Ne.push(q[Z]<=0,q[ue]<=0),Ne.every(function(qe){return qe})){$=z,W=!1;break}A.set(z,Ne)}if(W)for(var it=y?3:1,xt=function(rt){var Ki=S.find(function(ws){var zn=A.get(ws);if(zn)return zn.slice(0,rt).every(function(hr){return hr})});if(Ki)return $=Ki,"break"},Kt=it;Kt>0;Kt--){var Ht=xt(Kt);if(Ht==="break")break}t.placement!==$&&(t.modifiersData[i]._skip=!0,t.placement=$,t.reset=!0)}}var rDe={name:"flip",enabled:!0,phase:"main",fn:iDe,requiresIfExists:["offset"],data:{_skip:!1}};function W5(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function O5(e){return[_n,ni,ti,Tn].some(function(t){return e[t]>=0})}function aDe(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,o=lu(t,{elementContext:"reference"}),s=lu(t,{altBoundary:!0}),u=W5(o,i),c=W5(s,r,a),f=O5(u),h=O5(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}var oDe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:aDe};function sDe(e,t,n){var i=qi(e),r=[Tn,_n].indexOf(i)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*r,[Tn,ni].indexOf(i)>=0?{x:s,y:o}:{x:o,y:s}}function lDe(e){var t=e.state,n=e.options,i=e.name,r=n.offset,a=r===void 0?[0,0]:r,o=C5.reduce(function(f,h){return f[h]=sDe(h,t.rects,a),f},{}),s=o[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}var uDe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lDe};function dDe(e){var t=e.state,n=e.name;t.modifiersData[n]=I5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var cDe={name:"popperOffsets",enabled:!0,phase:"read",fn:dDe,data:{}};function fDe(e){return e==="x"?"y":"x"}function hDe(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,a=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!1:o,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,g=n.tether,p=g===void 0?!0:g,y=n.tetherOffset,v=y===void 0?0:y,k=lu(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:f}),w=qi(t.placement),M=bs(t.placement),x=!M,S=Vg(w),E=fDe(S),I=t.modifiersData.popperOffsets,A=t.rects.reference,W=t.rects.popper,$=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,D=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(I){if(a){var X,re=S==="y"?_n:Tn,ne=S==="y"?ti:ni,q=S==="y"?"height":"width",Z=I[S],ue=Z+k[re],Ne=Z-k[ne],it=p?-W[q]/2:0,xt=M===ms?A[q]:W[q],Kt=M===ms?-W[q]:-A[q],Ht=t.elements.arrow,qe=p&&Ht?Bg(Ht):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:T5(),Ki=rt[re],ws=rt[ne],zn=ou(0,A[q],qe[q]),hr=x?A[q]/2-it-zn-Ki-D.mainAxis:xt-zn-Ki-D.mainAxis,Qg=x?-A[q]/2+it+zn+ws+D.mainAxis:Kt+zn+ws+D.mainAxis,sa=t.elements.arrow&&au(t.elements.arrow),vs=sa?S==="y"?sa.clientTop||0:sa.clientLeft||0:0,du=(X=z==null?void 0:z[S])!=null?X:0,Ln=Z+hr-du-vs,lo=Z+Qg-du,_f=ou(p?vf(ue,Ln):ue,Z,p?so(Ne,lo):Ne);I[S]=_f,H[S]=_f-Z}if(s){var ri,Tf=S==="x"?_n:Tn,Jg=S==="x"?ti:ni,$n=I[E],Qt=E==="y"?"height":"width",la=$n+k[Tf],uo=$n-k[Jg],cu=[_n,Tn].indexOf(w)!==-1,ua=(ri=z==null?void 0:z[E])!=null?ri:0,Pf=cu?la:$n-A[Qt]-W[Qt]-ua+D.altAxis,da=cu?$n+A[Qt]+W[Qt]-ua-D.altAxis:uo,mr=p&&cu?zAe(Pf,$n,da):ou(p?Pf:la,$n,p?da:uo);I[E]=mr,H[E]=mr-$n}t.modifiersData[i]=H}}var mDe={name:"preventOverflow",enabled:!0,phase:"main",fn:hDe,requiresIfExists:["offset"]};function pDe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gDe(e){return e===Si(e)||!ii(e)?Fg(e):pDe(e)}function yDe(e){var t=e.getBoundingClientRect(),n=gs(t.width)/e.offsetWidth||1,i=gs(t.height)/e.offsetHeight||1;return n!==1||i!==1}function bDe(e,t,n){n===void 0&&(n=!1);var i=ii(t),r=ii(t)&&yDe(t),a=oa(t),o=ys(e,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&((Xi(t)!=="body"||Yg(a))&&(s=gDe(t)),ii(t)?(u=ys(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Ug(a))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function wDe(e){var t=new Map,n=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function r(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&r(u)}}),i.push(a)}return e.forEach(function(a){n.has(a.name)||r(a)}),i}function vDe(e){var t=wDe(e);return DAe.reduce(function(n,i){return n.concat(t.filter(function(r){return r.phase===i}))},[])}function kDe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function MDe(e){var t=e.reduce(function(n,i){var r=n[i.name];return n[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var z5={placement:"bottom",modifiers:[],strategy:"absolute"};function L5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function CDe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,r=t.defaultOptions,a=r===void 0?z5:r;return function(s,u,c){c===void 0&&(c=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},z5,a),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},h=[],g=!1,p={state:f,setOptions:function(w){var M=typeof w=="function"?w(f.options):w;v(),f.options=Object.assign({},a,f.options,M),f.scrollParents={reference:ps(s)?su(s):s.contextElement?su(s.contextElement):[],popper:su(u)};var x=vDe(MDe([].concat(i,f.options.modifiers)));return f.orderedModifiers=x.filter(function(S){return S.enabled}),y(),p.update()},forceUpdate:function(){if(!g){var w=f.elements,M=w.reference,x=w.popper;if(L5(M,x)){f.rects={reference:bDe(M,au(x),f.options.strategy==="fixed"),popper:Bg(x)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(D){return f.modifiersData[D.name]=Object.assign({},D.data)});for(var S=0;S<f.orderedModifiers.length;S++){if(f.reset===!0){f.reset=!1,S=-1;continue}var E=f.orderedModifiers[S],I=E.fn,A=E.options,W=A===void 0?{}:A,$=E.name;typeof I=="function"&&(f=I({state:f,options:W,name:$,instance:p})||f)}}}},update:kDe(function(){return new Promise(function(k){p.forceUpdate(),k(f)})}),destroy:function(){v(),g=!0}};if(!L5(s,u))return p;p.setOptions(c).then(function(k){!g&&c.onFirstUpdate&&c.onFirstUpdate(k)});function y(){f.orderedModifiers.forEach(function(k){var w=k.name,M=k.options,x=M===void 0?{}:M,S=k.effect;if(typeof S=="function"){var E=S({state:f,name:w,instance:p,options:x}),I=function(){};h.push(E||I)}})}function v(){h.forEach(function(k){return k()}),h=[]}return p}}var xDe=[XAe,cDe,UAe,IAe,uDe,rDe,mDe,RAe,oDe],SDe=CDe({defaultModifiers:xDe}),$5="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";function xf(e){return e.split("-").map(t=>parseInt(t,16)).map(t=>String.fromCodePoint(t)).join("")}function _De(e,t,n,i=[]){const r={};return Object.keys(e).forEach(a=>{if(i.includes(a))return;const o=[];e[a].forEach(s=>{var u;if(s[yf][0].includes(t.toLocaleLowerCase())){let c=s[m5];if(n!==wf&&Array.isArray(s[bf])){const f=((u=s[bf])==null?void 0:u.findIndex(h=>h.includes(n)))||-1;f!==-1&&s[bf]&&(c=s[bf][f])}return o.push({...s,[tu]:c})}}),o.length&&(r[a]=o)}),r}function H5(){var e;return(((e=navigator==null?void 0:navigator.userAgentData)==null?void 0:e.platform)||(navigator==null?void 0:navigator.platform)||"unknown").toUpperCase().indexOf("MAC")!==-1}function R5(e){return e.replace(/^_*(.)|_+(.)/g,(t,n,i)=>n?n.toUpperCase():" "+i.toUpperCase())}var uu=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n};const TDe=l.defineComponent({name:"Body",emits:{select:e=>!0},setup(){const{state:e,updateEmoji:t,updateSelect:n}=l.inject("store"),i=l.ref(null),r=l.computed(()=>_De(e.emojis,e.search,e.skinTone,e.options.disabledGroups)),a=l.getCurrentInstance(),o=l.computed(()=>!e.options.hideGroupNames),s=l.computed(()=>!e.options.disableStickyGroupNames),u=l.toRaw(e.options.groupNames),c=e.orderedGroupKeys;e.options.additionalGroups&&Object.keys(e.options.additionalGroups).map(y=>{e.options.groupNames[y]?u[y]=e.options.groupNames[y]:u[y]=R5(y)});const f=H5()?"is-mac":"";function h(y){t(y)}function g(y){n(y),a==null||a.emit("select",{...y,t:e.skinTone,i:xf(y.r)})}function p(y,v){var k;const w=(k=y==null?void 0:y.target)==null?void 0:k.closest("button");w&&(w.innerHTML=`<span>${xf(v)}</span>`)}return l.watch(()=>e.activeGroup,()=>{var y;const v=(y=i.value)==null?void 0:y.querySelector("#"+e.activeGroup);v&&(v.parentNode.scrollTop=v.offsetTop-v.parentNode.offsetTop)}),{emojis:r,bodyInner:i,EMOJI_REMOTE_SRC:f5,GROUP_NAMES:h5,handleClick:g,handleError:p,handleMouseEnter:h,native:e.options.native,unicodeToEmoji:xf,EMOJI_RESULT_KEY:tu,EMOJI_NAME_KEY:yf,hasGroupNames:o,isSticky:s,platform:f,groupNames:u,orderedKeys:c}}}),PDe={class:"v3-body"},EDe=["id"],ADe={class:"v3-emojis"},DDe=["onMouseenter","onClick"],NDe={key:0},jDe=["src","alt","onError"],IDe={key:1,class:"v3-no-result"};function WDe(e,t,n,i,r,a){return l.openBlock(),l.createElementBlock("div",PDe,[l.createElementVNode("div",{ref:"bodyInner",class:l.normalizeClass([e.platform,"v3-body-inner"])},[e.orderedKeys.length?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(e.orderedKeys,o=>(l.openBlock(),l.createElementBlock("div",{id:o,key:o,class:"v3-group"},[e.hasGroupNames?l.withDirectives((l.openBlock(),l.createElementBlock("h5",{key:0,class:l.normalizeClass(e.isSticky?"v3-sticky":"")},l.toDisplayString(e.groupNames[o]),3)),[[l.vShow,e.emojis[o]]]):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",ADe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.emojis[o],s=>(l.openBlock(),l.createElementBlock("button",{key:s.r,type:"button",onMouseenter:u=>e.handleMouseEnter(s),onClick:u=>e.handleClick(s)},[e.native?(l.openBlock(),l.createElementBlock("span",NDe,l.toDisplayString(e.unicodeToEmoji(s.r)),1)):(l.openBlock(),l.createElementBlock("img",{key:1,src:e.EMOJI_REMOTE_SRC+`/${s.r}.png`,alt:s.n[0],onError:u=>e.handleError(u,s.r)},null,40,jDe))],40,DDe))),128))],512),[[l.vShow,e.emojis[o]]])],8,EDe))),128)):(l.openBlock(),l.createElementBlock("span",IDe," No emoji has been found! "))],2)])}var ODe=uu(TDe,[["render",WDe]]),zDe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41IEMgMTYgOC4zMzk4NDQgMTUuNjg3NSA3LjI2NTYyNSAxNS4wOTM3NSA2LjQzNzUgQyAxNC41IDUuNjA5Mzc1IDEzLjU3MDMxMyA1IDEyLjUgNSBaIE0gMTYgOS41IEMgMTYgMTAuNjYwMTU2IDE2LjMxMjUgMTEuNzM0Mzc1IDE2LjkwNjI1IDEyLjU2MjUgQyAxNy41IDEzLjM5MDYyNSAxOC40Mjk2ODggMTQgMTkuNSAxNCBDIDIwLjU3MDMxMyAxNCAyMS41IDEzLjM5MDYyNSAyMi4wOTM3NSAxMi41NjI1IEMgMjIuNjg3NSAxMS43MzQzNzUgMjMgMTAuNjYwMTU2IDIzIDkuNSBDIDIzIDguMzM5ODQ0IDIyLjY4NzUgNy4yNjU2MjUgMjIuMDkzNzUgNi40Mzc1IEMgMjEuNSA1LjYwOTM3NSAyMC41NzAzMTMgNSAxOS41IDUgQyAxOC40Mjk2ODggNSAxNy41IDUuNjA5Mzc1IDE2LjkwNjI1IDYuNDM3NSBDIDE2LjMxMjUgNy4yNjU2MjUgMTYgOC4zMzk4NDQgMTYgOS41IFogTSAxMi41IDcgQyAxMi44MTI1IDcgMTMuMTU2MjUgNy4xNTYyNSAxMy40Njg3NSA3LjU5Mzc1IEMgMTMuNzgxMjUgOC4wMzEyNSAxNCA4LjcyNjU2MyAxNCA5LjUgQyAxNCAxMC4yNzM0MzggMTMuNzgxMjUgMTAuOTY4NzUgMTMuNDY4NzUgMTEuNDA2MjUgQyAxMy4xNTYyNSAxMS44NDM3NSAxMi44MTI1IDEyIDEyLjUgMTIgQyAxMi4xODc1IDEyIDExLjg0Mzc1IDExLjg0Mzc1IDExLjUzMTI1IDExLjQwNjI1IEMgMTEuMjE4NzUgMTAuOTY4NzUgMTEgMTAuMjczNDM4IDExIDkuNSBDIDExIDguNzI2NTYzIDExLjIxODc1IDguMDMxMjUgMTEuNTMxMjUgNy41OTM3NSBDIDExLjg0Mzc1IDcuMTU2MjUgMTIuMTg3NSA3IDEyLjUgNyBaIE0gMTkuNSA3IEMgMTkuODEyNSA3IDIwLjE1NjI1IDcuMTU2MjUgMjAuNDY4NzUgNy41OTM3NSBDIDIwLjc4MTI1IDguMDMxMjUgMjEgOC43MjY1NjMgMjEgOS41IEMgMjEgMTAuMjczNDM4IDIwLjc4MTI1IDEwLjk2ODc1IDIwLjQ2ODc1IDExLjQwNjI1IEMgMjAuMTU2MjUgMTEuODQzNzUgMTkuODEyNSAxMiAxOS41IDEyIEMgMTkuMTg3NSAxMiAxOC44NDM3NSAxMS44NDM3NSAxOC41MzEyNSAxMS40MDYyNSBDIDE4LjIxODc1IDEwLjk2ODc1IDE4IDEwLjI3MzQzOCAxOCA5LjUgQyAxOCA4LjcyNjU2MyAxOC4yMTg3NSA4LjAzMTI1IDE4LjUzMTI1IDcuNTkzNzUgQyAxOC44NDM3NSA3LjE1NjI1IDE5LjE4NzUgNyAxOS41IDcgWiBNIDcuNSAxMiBDIDYuNDI5Njg4IDEyIDUuNSAxMi42MDkzNzUgNC45MDYyNSAxMy40Mzc1IEMgNC4zMTI1IDE0LjI2NTYyNSA0IDE1LjMzOTg0NCA0IDE2LjUgQyA0IDE3LjY2MDE1NiA0LjMxMjUgMTguNzM0Mzc1IDQuOTA2MjUgMTkuNTYyNSBDIDUuNSAyMC4zOTA2MjUgNi40Mjk2ODggMjEgNy41IDIxIEMgOC41NzAzMTMgMjEgOS41IDIwLjM5MDYyNSAxMC4wOTM3NSAxOS41NjI1IEMgMTAuNjg3NSAxOC43MzQzNzUgMTEgMTcuNjYwMTU2IDExIDE2LjUgQyAxMSAxNS4zMzk4NDQgMTAuNjg3NSAxNC4yNjU2MjUgMTAuMDkzNzUgMTMuNDM3NSBDIDkuNSAxMi42MDkzNzUgOC41NzAzMTMgMTIgNy41IDEyIFogTSAyNC41IDEyIEMgMjMuNDI5Njg4IDEyIDIyLjUgMTIuNjA5Mzc1IDIxLjkwNjI1IDEzLjQzNzUgQyAyMS4zMTI1IDE0LjI2NTYyNSAyMSAxNS4zMzk4NDQgMjEgMTYuNSBDIDIxIDE3LjY2MDE1NiAyMS4zMTI1IDE4LjczNDM3NSAyMS45MDYyNSAxOS41NjI1IEMgMjIuNSAyMC4zOTA2MjUgMjMuNDI5Njg4IDIxIDI0LjUgMjEgQyAyNS41NzAzMTMgMjEgMjYuNSAyMC4zOTA2MjUgMjcuMDkzNzUgMTkuNTYyNSBDIDI3LjY4NzUgMTguNzM0Mzc1IDI4IDE3LjY2MDE1NiAyOCAxNi41IEMgMjggMTUuMzM5ODQ0IDI3LjY4NzUgMTQuMjY1NjI1IDI3LjA5Mzc1IDEzLjQzNzUgQyAyNi41IDEyLjYwOTM3NSAyNS41NzAzMTMgMTIgMjQuNSAxMiBaIE0gNy41IDE0IEMgNy44MTI1IDE0IDguMTU2MjUgMTQuMTU2MjUgOC40Njg3NSAxNC41OTM3NSBDIDguNzgxMjUgMTUuMDMxMjUgOSAxNS43MjY1NjMgOSAxNi41IEMgOSAxNy4yNzM0MzggOC43ODEyNSAxNy45Njg3NSA4LjQ2ODc1IDE4LjQwNjI1IEMgOC4xNTYyNSAxOC44NDM3NSA3LjgxMjUgMTkgNy41IDE5IEMgNy4xODc1IDE5IDYuODQzNzUgMTguODQzNzUgNi41MzEyNSAxOC40MDYyNSBDIDYuMjE4NzUgMTcuOTY4NzUgNiAxNy4yNzM0MzggNiAxNi41IEMgNiAxNS43MjY1NjMgNi4yMTg3NSAxNS4wMzEyNSA2LjUzMTI1IDE0LjU5Mzc1IEMgNi44NDM3NSAxNC4xNTYyNSA3LjE4NzUgMTQgNy41IDE0IFogTSAyNC41IDE0IEMgMjQuODEyNSAxNCAyNS4xNTYyNSAxNC4xNTYyNSAyNS40Njg3NSAxNC41OTM3NSBDIDI1Ljc4MTI1IDE1LjAzMTI1IDI2IDE1LjcyNjU2MyAyNiAxNi41IEMgMjYgMTcuMjczNDM4IDI1Ljc4MTI1IDE3Ljk2ODc1IDI1LjQ2ODc1IDE4LjQwNjI1IEMgMjUuMTU2MjUgMTguODQzNzUgMjQuODEyNSAxOSAyNC41IDE5IEMgMjQuMTg3NSAxOSAyMy44NDM3NSAxOC44NDM3NSAyMy41MzEyNSAxOC40MDYyNSBDIDIzLjIxODc1IDE3Ljk2ODc1IDIzIDE3LjI3MzQzOCAyMyAxNi41IEMgMjMgMTUuNzI2NTYzIDIzLjIxODc1IDE1LjAzMTI1IDIzLjUzMTI1IDE0LjU5Mzc1IEMgMjMuODQzNzUgMTQuMTU2MjUgMjQuMTg3NSAxNCAyNC41IDE0IFogTSAxNiAxNiBDIDE0LjY2Nzk2OSAxNiAxMy43MzgyODEgMTYuODY3MTg4IDEzLjI4MTI1IDE3LjYyNSBDIDEyLjgyNDIxOSAxOC4zODI4MTMgMTIuNTQ2ODc1IDE5LjAxNTYyNSAxMi4yODEyNSAxOS4yODEyNSBDIDEyLjEyNSAxOS40Mzc1IDExLjE2MDE1NiAxOS44MDA3ODEgMTAuMTU2MjUgMjAuMzEyNSBDIDkuNjUyMzQ0IDIwLjU3MDMxMyA5LjE0NDUzMSAyMC45MTQwNjMgOC43MTg3NSAyMS40Mzc1IEMgOC4yOTI5NjkgMjEuOTYwOTM4IDggMjIuNjg3NSA4IDIzLjUgQyA4IDI1LjQyMTg3NSA5LjU3ODEyNSAyNyAxMS41IDI3IEMgMTIuMzY3MTg4IDI3IDEzLjI2OTUzMSAyNi43MjI2NTYgMTQuMTU2MjUgMjYuNDY4NzUgQyAxNS4wNDI5NjkgMjYuMjE0ODQ0IDE2IDI2IDE2IDI2IEMgMTYgMjYgMTYuOTU3MDMxIDI2LjIxNDg0NCAxNy44NDM3NSAyNi40Njg3NSBDIDE4LjczMDQ2OSAyNi43MjI2NTYgMTkuNjMyODEzIDI3IDIwLjUgMjcgQyAyMi40MjE4NzUgMjcgMjQgMjUuNDIxODc1IDI0IDIzLjUgQyAyNCAyMi43MDcwMzEgMjMuNzA3MDMxIDIxLjk4MDQ2OSAyMy4yODEyNSAyMS40Njg3NSBDIDIyLjg1NTQ2OSAyMC45NTcwMzEgMjIuMzQzNzUgMjAuNjQwNjI1IDIxLjg0Mzc1IDIwLjM3NSBDIDIwLjg0Mzc1IDE5Ljg0Mzc1IDE5Ljg1OTM3NSAxOS40MjE4NzUgMTkuNzE4NzUgMTkuMjgxMjUgQyAxOS40ODA0NjkgMTkuMDQyOTY5IDE5LjIxMDkzOCAxOC4zOTA2MjUgMTguNzUgMTcuNjI1IEMgMTguMjg5MDYzIDE2Ljg1OTM3NSAxNy4zMzk4NDQgMTYgMTYgMTYgWiBNIDE2IDE4IEMgMTYuNjYwMTU2IDE4IDE2LjczNDM3NSAxOC4xNjAxNTYgMTcuMDMxMjUgMTguNjU2MjUgQyAxNy4zMjgxMjUgMTkuMTUyMzQ0IDE3LjU1NDY4OCAxOS45OTIxODggMTguMjgxMjUgMjAuNzE4NzUgQyAxOS4xMDU0NjkgMjEuNTQyOTY5IDIwLjE0ODQzOCAyMS43MjI2NTYgMjAuOTA2MjUgMjIuMTI1IEMgMjEuMjg1MTU2IDIyLjMyODEyNSAyMS41NzgxMjUgMjIuNTQyOTY5IDIxLjc1IDIyLjc1IEMgMjEuOTIxODc1IDIyLjk1NzAzMSAyMiAyMy4xNDg0MzggMjIgMjMuNSBDIDIyIDI0LjMzOTg0NCAyMS4zMzk4NDQgMjUgMjAuNSAyNSBDIDIwLjIxMDkzOCAyNSAxOS4yNzczNDQgMjQuNzc3MzQ0IDE4LjQwNjI1IDI0LjUzMTI1IEMgMTcuNTM1MTU2IDI0LjI4NTE1NiAxNi44MTY0MDYgMjQgMTYgMjQgQyAxNS4xODM1OTQgMjQgMTQuNDY0ODQ0IDI0LjI4NTE1NiAxMy41OTM3NSAyNC41MzEyNSBDIDEyLjcyMjY1NiAyNC43NzczNDQgMTEuNzg5MDYzIDI1IDExLjUgMjUgQyAxMC42NjAxNTYgMjUgMTAgMjQuMzM5ODQ0IDEwIDIzLjUgQyAxMCAyMy4wOTc2NTYgMTAuMDgyMDMxIDIyLjg5MDYyNSAxMC4yNSAyMi42ODc1IEMgMTAuNDE3OTY5IDIyLjQ4NDM3NSAxMC43MjI2NTYgMjIuMjg1MTU2IDExLjA5Mzc1IDIyLjA5Mzc1IEMgMTEuODM5ODQ0IDIxLjcxNDg0NCAxMi44NzUgMjEuNTYyNSAxMy43MTg3NSAyMC43MTg3NSBDIDE0LjQ1MzEyNSAxOS45ODQzNzUgMTQuNjc1NzgxIDE5LjExNzE4OCAxNC45Njg3NSAxOC42MjUgQyAxNS4yNjE3MTkgMTguMTMyODEzIDE1LjMzMjAzMSAxOCAxNiAxOCBaIi8+PC9zdmc+",LDe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSAzIEwgMTEgNyBMIDEzIDcgTCAxMyAzIFogTSAxNSA0IEwgMTUgNyBMIDE3IDcgTCAxNyA0IFogTSA0Ljg3NSA4IEwgNSA5LjA5Mzc1IEwgNi44MTI1IDI2LjMxMjUgQyA2Ljk3MjY1NiAyNy44MzIwMzEgOC4yODUxNTYgMjkgOS44MTI1IDI5IEwgMTkuMTg3NSAyOSBDIDIwLjcxNDg0NCAyOSAyMi4wMjczNDQgMjcuODMyMDMxIDIyLjE4NzUgMjYuMzEyNSBMIDIyLjY1NjI1IDIyIEwgMjUgMjIgQyAyNi42NDQ1MzEgMjIgMjggMjAuNjQ0NTMxIDI4IDE5IEwgMjggMTYgQyAyOCAxNC4zNTU0NjkgMjYuNjQ0NTMxIDEzIDI1IDEzIEwgMjMuNTkzNzUgMTMgTCAyNCA5LjA5Mzc1IEwgMjQuMTI1IDggWiBNIDcuMTI1IDEwIEwgMjEuODc1IDEwIEwgMjAuMTg3NSAyNi4wOTM3NSBDIDIwLjEzMjgxMyAyNi42MTMyODEgMTkuNzA3MDMxIDI3IDE5LjE4NzUgMjcgTCA5LjgxMjUgMjcgQyA5LjI5Mjk2OSAyNyA4Ljg2NzE4OCAyNi42MTMyODEgOC44MTI1IDI2LjA5Mzc1IFogTSAyMy4zNzUgMTUgTCAyNSAxNSBDIDI1LjU2NjQwNiAxNSAyNiAxNS40MzM1OTQgMjYgMTYgTCAyNiAxOSBDIDI2IDE5LjU2NjQwNiAyNS41NjY0MDYgMjAgMjUgMjAgTCAyMi44NDM3NSAyMCBaIi8+PC9zdmc+",$De="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiAzIEMgOC44MzIwMzEgMyAzIDguODMyMDMxIDMgMTYgQyAzIDIzLjE2Nzk2OSA4LjgzMjAzMSAyOSAxNiAyOSBDIDIzLjE2Nzk2OSAyOSAyOSAyMy4xNjc5NjkgMjkgMTYgQyAyOSA4LjgzMjAzMSAyMy4xNjc5NjkgMyAxNiAzIFogTSAxNiA1IEMgMTYuNjAxNTYzIDUgMTcuMTc1NzgxIDUuMDYyNSAxNy43NSA1LjE1NjI1IEwgMTYgNi40MDYyNSBMIDE0LjI1IDUuMTU2MjUgQyAxNC44MjAzMTMgNS4wNjY0MDYgMTUuNDAyMzQ0IDUgMTYgNSBaIE0gMTEuODEyNSA1Ljg0Mzc1IEwgMTUuNDA2MjUgOC40Njg3NSBMIDE2IDguOTA2MjUgTCAxNi41OTM3NSA4LjQ2ODc1IEwgMjAuMTg3NSA1Ljg0Mzc1IEMgMjEuNzg1MTU2IDYuNTA3ODEzIDIzLjE5NTMxMyA3LjUyMzQzOCAyNC4zMTI1IDguODEyNSBMIDIyLjkzNzUgMTMuMDkzNzUgTCAyMi43MTg3NSAxMy43ODEyNSBMIDIzLjMxMjUgMTQuMTg3NSBMIDI2LjkzNzUgMTYuODQzNzUgQyAyNi44MDQ2ODggMTguNjA1NDY5IDI2LjI2NTYyNSAyMC4yNTc4MTMgMjUuNDA2MjUgMjEuNjg3NSBMIDIwLjEyNSAyMS42ODc1IEwgMTkuOTA2MjUgMjIuMzc1IEwgMTguNSAyNi43MTg3NSBDIDE3LjY5OTIxOSAyNi45MDYyNSAxNi44NTkzNzUgMjcgMTYgMjcgQyAxNS4xMDU0NjkgMjcgMTQuMjM4MjgxIDI2Ljg4NjcxOSAxMy40MDYyNSAyNi42ODc1IEwgMTIuMDMxMjUgMjIuNDA2MjUgTCAxMS44MTI1IDIxLjcxODc1IEwgNi41OTM3NSAyMS43MTg3NSBDIDUuNzE4NzUgMjAuMjgxMjUgNS4xOTkyMTkgMTguNjIxMDk0IDUuMDYyNSAxNi44NDM3NSBMIDguNjU2MjUgMTQuMjE4NzUgTCA5LjI1IDEzLjgxMjUgTCA5LjAzMTI1IDEzLjEyNSBMIDcuNjI1IDguODc1IEMgOC43NSA3LjU1NDY4OCAxMC4xODM1OTQgNi41MTU2MjUgMTEuODEyNSA1Ljg0Mzc1IFogTSAxNiAxMC4wOTM3NSBMIDE1LjQwNjI1IDEwLjUzMTI1IEwgMTAuODQzNzUgMTMuODQzNzUgTCAxMC4yODEyNSAxNC4yODEyNSBMIDEwLjUgMTQuOTY4NzUgTCAxMi4yNSAyMC4zMTI1IEwgMTIuNDY4NzUgMjEgTCAxOS41MzEyNSAyMSBMIDE5Ljc1IDIwLjMxMjUgTCAyMS41IDE0Ljk2ODc1IEwgMjEuNzE4NzUgMTQuMjgxMjUgTCAyMS4xNTYyNSAxMy44NDM3NSBMIDE2LjU5Mzc1IDEwLjUzMTI1IFogTSAyNS43NSAxMC45MDYyNSBDIDI2LjI5Njg3NSAxMS45NTMxMjUgMjYuNjU2MjUgMTMuMTAxNTYzIDI2Ljg0Mzc1IDE0LjMxMjUgTCAyNS4wNjI1IDEzLjAzMTI1IFogTSA2LjIxODc1IDEwLjk2ODc1IEwgNi45MDYyNSAxMy4wMzEyNSBMIDUuMTU2MjUgMTQuMzEyNSBDIDUuMzM5ODQ0IDEzLjEyNSA1LjY4NzUgMTIgNi4yMTg3NSAxMC45Njg3NSBaIE0gMTYgMTIuNTkzNzUgTCAxOS4zNzUgMTUuMDMxMjUgTCAxOC4wOTM3NSAxOSBMIDEzLjkwNjI1IDE5IEwgMTIuNjI1IDE1LjAzMTI1IFogTSAyMS41OTM3NSAyMy42ODc1IEwgMjMuODQzNzUgMjMuNjg3NSBDIDIyLjk5MjE4OCAyNC41NjY0MDYgMjIuMDExNzE5IDI1LjI5Mjk2OSAyMC45MDYyNSAyNS44NDM3NSBaIE0gOC4xNTYyNSAyMy43MTg3NSBMIDEwLjM0Mzc1IDIzLjcxODc1IEwgMTEuMDMxMjUgMjUuODEyNSBDIDkuOTYwOTM4IDI1LjI2OTUzMSA4Ljk4ODI4MSAyNC41NjI1IDguMTU2MjUgMjMuNzE4NzUgWiIvPjwvc3ZnPg==",HDe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5LjUgNiBDIDguMTc5Njg4IDYgNy4wMDM5MDYgNi44NTkzNzUgNi42MjUgOC4xMjUgTCA1LjI1IDEyLjcxODc1IEwgMy4zMTI1IDEyLjA2MjUgTCAyLjY4NzUgMTMuOTM3NSBMIDQuNjU2MjUgMTQuNTkzNzUgTCA0LjAzMTI1IDE2LjcxODc1IEMgNC4wMDc4MTMgMTYuODA4NTk0IDMuOTk2MDk0IDE2LjkwNjI1IDQgMTcgTCA0IDI0IEMgNCAyNC4wMzEyNSA0IDI0LjA2MjUgNCAyNC4wOTM3NSBMIDQgMjUgQyA0IDI1LjU1MDc4MSA0LjQ0OTIxOSAyNiA1IDI2IEwgOCAyNiBMIDguMzQzNzUgMjUgTCAyMy42NTYyNSAyNSBMIDI0IDI2IEwgMjcgMjYgQyAyNy41NTA3ODEgMjYgMjggMjUuNTUwNzgxIDI4IDI1IEwgMjggMjQuMTU2MjUgQyAyOC4wMDM5MDYgMjQuMTA1NDY5IDI4LjAwMzkwNiAyNC4wNTA3ODEgMjggMjQgTCAyOCAxNyBDIDI4LjAwMzkwNiAxNi45MDYyNSAyNy45OTIxODggMTYuODA4NTk0IDI3Ljk2ODc1IDE2LjcxODc1IEwgMjcuMzQzNzUgMTQuNTkzNzUgTCAyOS4zMTI1IDEzLjkzNzUgTCAyOC42ODc1IDEyLjA2MjUgTCAyNi43NSAxMi43MTg3NSBMIDI1LjM3NSA4LjEyNSBDIDI0Ljk5NjA5NCA2Ljg1OTM3NSAyMy44MjAzMTMgNiAyMi41IDYgWiBNIDkuNSA4IEwgMjIuNSA4IEMgMjIuOTQ1MzEzIDggMjMuMzM5ODQ0IDguMjkyOTY5IDIzLjQ2ODc1IDguNzE4NzUgTCAyNC43NSAxMyBMIDcuMjUgMTMgTCA4LjUzMTI1IDguNzE4NzUgQyA4LjY2MDE1NiA4LjI4OTA2MyA5LjA1NDY4OCA4IDkuNSA4IFogTSA2LjY1NjI1IDE1IEwgMjUuMzQzNzUgMTUgTCAyNiAxNy4xODc1IEwgMjYgMjMgTCA2IDIzIEwgNiAxNy4xODc1IFogTSA4LjUgMTYgQyA3LjY3MTg3NSAxNiA3IDE2LjY3MTg3NSA3IDE3LjUgQyA3IDE4LjMyODEyNSA3LjY3MTg3NSAxOSA4LjUgMTkgQyA5LjMyODEyNSAxOSAxMCAxOC4zMjgxMjUgMTAgMTcuNSBDIDEwIDE2LjY3MTg3NSA5LjMyODEyNSAxNiA4LjUgMTYgWiBNIDIzLjUgMTYgQyAyMi42NzE4NzUgMTYgMjIgMTYuNjcxODc1IDIyIDE3LjUgQyAyMiAxOC4zMjgxMjUgMjIuNjcxODc1IDE5IDIzLjUgMTkgQyAyNC4zMjgxMjUgMTkgMjUgMTguMzI4MTI1IDI1IDE3LjUgQyAyNSAxNi42NzE4NzUgMjQuMzI4MTI1IDE2IDIzLjUgMTYgWiBNIDEyIDE5IEwgMTAuNzUgMjIgTCAxMi45MDYyNSAyMiBMIDEzLjM0Mzc1IDIxIEwgMTguNjU2MjUgMjEgTCAxOS4wOTM3NSAyMiBMIDIxLjI1IDIyIEwgMjAgMTkgWiIvPjwvc3ZnPg==",RDe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuMDQyOTY5IDQgNyA4LjA0Mjk2OSA3IDEzIEMgNyAxNC45MTc5NjkgNy44NDM3NSAxNi45MDYyNSA5IDE4LjY4NzUgQyA5Ljg1OTM3NSAyMC4wMTE3MTkgMTAuODg2NzE5IDIxLjIzMDQ2OSAxMiAyMi4xNTYyNSBMIDEyIDI1IEMgMTIgMjYuMDkzNzUgMTIuOTA2MjUgMjcgMTQgMjcgTCAxNSAyOCBMIDE3IDI4IEwgMTggMjcgQyAxOS4wOTM3NSAyNyAyMCAyNi4wOTM3NSAyMCAyNSBMIDIwIDIyLjE1NjI1IEMgMjEuMTEzMjgxIDIxLjIzMDQ2OSAyMi4xNDA2MjUgMjAuMDExNzE5IDIzIDE4LjY4NzUgQyAyNC4xNTYyNSAxNi45MDYyNSAyNSAxNC45MTc5NjkgMjUgMTMgQyAyNSA4LjA0Mjk2OSAyMC45NTcwMzEgNCAxNiA0IFogTSAxNiA2IEMgMTkuODc4OTA2IDYgMjMgOS4xMjEwOTQgMjMgMTMgQyAyMyAxNC4zMDg1OTQgMjIuMzU1NDY5IDE2LjAzNTE1NiAyMS4zNDM3NSAxNy41OTM3NSBDIDIwLjQ0MTQwNiAxOC45ODQzNzUgMTkuMjUzOTA2IDIwLjIyMjY1NiAxOC4xNTYyNSAyMSBMIDEzLjg0Mzc1IDIxIEMgMTIuNzQ2MDk0IDIwLjIyMjY1NiAxMS41NTg1OTQgMTguOTg0Mzc1IDEwLjY1NjI1IDE3LjU5Mzc1IEMgOS42NDQ1MzEgMTYuMDM1MTU2IDkgMTQuMzA4NTk0IDkgMTMgQyA5IDkuMTIxMDk0IDEyLjEyMTA5NCA2IDE2IDYgWiBNIDE0LjI1IDIzIEwgMTcuNzUgMjMgQyAxNy44MjgxMjUgMjMuMDU0Njg4IDE3LjkxMDE1NiAyMy4wOTM3NSAxOCAyMy4xMjUgTCAxOCAyNSBMIDE0IDI1IEwgMTQgMjMuMTI1IEMgMTQuMDg5ODQ0IDIzLjA5Mzc1IDE0LjE3MTg3NSAyMy4wNTQ2ODggMTQuMjUgMjMgWiIvPjwvc3ZnPg==",BDe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSA1IEwgMTEgMTEgTCA1IDExIEwgNSAxMyBMIDExIDEzIEwgMTEgMTkgTCA1IDE5IEwgNSAyMSBMIDExIDIxIEwgMTEgMjcgTCAxMyAyNyBMIDEzIDIxIEwgMTkgMjEgTCAxOSAyNyBMIDIxIDI3IEwgMjEgMjEgTCAyNyAyMSBMIDI3IDE5IEwgMjEgMTkgTCAyMSAxMyBMIDI3IDEzIEwgMjcgMTEgTCAyMSAxMSBMIDIxIDUgTCAxOSA1IEwgMTkgMTEgTCAxMyAxMSBMIDEzIDUgWiBNIDEzIDEzIEwgMTkgMTMgTCAxOSAxOSBMIDEzIDE5IFoiLz48L3N2Zz4=",VDe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5IDQgQyA3LjM0NiA0IDYgNS4zNDYgNiA3IEMgNiA4LjMwMTYwOTQgNi44Mzg3NDg2IDkuNDAyMTM5MSA4IDkuODE2NDA2MiBMIDggMTEuMzA0Njg4IEwgOCAyMy4yMDcwMzEgTCA4IDI3LjAyMzQzOCBDIDggMjcuNTYzNDM4IDguNDM2NTYyNSAyOCA4Ljk3NjU2MjUgMjggTCA5LjAyMzQzNzUgMjggQyA5LjU2MzQzNzUgMjggMTAgMjcuNTYzNDM3IDEwIDI3LjAyMzQzOCBMIDEwIDIyLjIyODUxNiBDIDEwLjMzNDcwNyAyMS44Mzk3NTYgMTEuMTM4NDIzIDIxLjA0Njg3NSAxMy40NDUzMTIgMjEuMDQ2ODc1IEMgMTQuNjY5MzEzIDIxLjA0Njg3NSAxNS42NzA0MjIgMjEuNDczNzgxIDE2LjczMjQyMiAyMS45MjU3ODEgQyAxNy43Njk0MjIgMjIuMzY3NzgxIDE4Ljg0MTg5MSAyMi44MjQyMTkgMjAuMDg3ODkxIDIyLjgyNDIxOSBDIDIyLjQ0Njg5MSAyMi44MjQyMTkgMjQuMDQ5Mzc1IDIxLjU4NDY4OCAyNC43MzQzNzUgMjEuMDU0Njg4IEwgMjQuODg2NzE5IDIwLjkzOTQ1MyBDIDI1LjQzNzcxOSAyMC41NDA0NTMgMjYgMTkuOTk2IDI2IDE5IEwgMjYgMTAuNjc1NzgxIEMgMjYgOS43Njc3ODEyIDI1LjIyMTgyOCA5IDI0LjI5ODgyOCA5IEMgMjMuODAzODI4IDkgMjMuNDQwNDA2IDkuMjg2NTkzNyAyMi45NDE0MDYgOS42ODM1OTM4IEMgMjIuMjc5NDA2IDEwLjIwNzU5NCAyMS4yODA4OTEgMTEgMjAuMDg3ODkxIDExIEMgMTkuMjcyODkxIDExIDE4LjQ3NzY4OCAxMC42MTk3MzQgMTcuNTU0Njg4IDEwLjE3NzczNCBDIDE2LjQwMzY4NyA5LjYyNTczNDQgMTUuMDk4MzU5IDkgMTMuNDQzMzU5IDkgQyAxMi4zMDgyNTcgOSAxMS40MjE2ODcgOS4xODgzMzkzIDEwLjcxMjg5MSA5LjQ1NzAzMTIgQyAxMS40ODkwNzEgOC45MTQxODI0IDEyIDguMDE2NzgwMiAxMiA3IEMgMTIgNS4zNDYgMTAuNjU0IDQgOSA0IHogTSA5IDYgQyA5LjU1MiA2IDEwIDYuNDQ5IDEwIDcgQyAxMCA3LjU1MSA5LjU1MiA4IDkgOCBDIDguNDQ4IDggOCA3LjU1MSA4IDcgQyA4IDYuNDQ5IDguNDQ4IDYgOSA2IHogTSAxMy40NDMzNTkgMTEgQyAxNC42NDUzNTkgMTEgMTUuNjM4NDA2IDExLjQ3NjQ2OSAxNi42OTE0MDYgMTEuOTgwNDY5IEMgMTcuNzM2NDA2IDEyLjQ4MjQ2OSAxOC44MTc4OTEgMTMgMjAuMDg3ODkxIDEzIEMgMjEuODQyODkxIDEzIDIzLjE1ODA0NyAxMi4wNTQ0ODQgMjMuOTk4MDQ3IDExLjM5NjQ4NCBMIDIzLjk5ODA0NyAxOS4wNjY0MDYgQyAyMy45OTcwNDcgMTkuMDcwNDA2IDIzLjk1Mjk4NCAxOS4xNDUyNjYgMjMuNzA4OTg0IDE5LjMyMjI2NiBMIDIzLjUwOTc2NiAxOS40NzQ2MDkgQyAyMi45NDI3NjYgMTkuOTEyNjA5IDIxLjc2Mjg5MSAyMC44MjQyMTkgMjAuMDg3ODkxIDIwLjgyNDIxOSBDIDE5LjI0OTg5MSAyMC44MjQyMTkgMTguNDQ2NjI1IDIwLjQ4MjkzNyAxNy41MTU2MjUgMjAuMDg1OTM4IEMgMTYuMzcyNjI1IDE5LjU5NzkzOCAxNS4wNzYzNTkgMTkuMDQ0OTIyIDEzLjQ0MzM1OSAxOS4wNDQ5MjIgQyAxMS44OTEzNTkgMTkuMDQ0OTIyIDEwLjc4NiAxOS4zNTggMTAgMTkuNzUgTCAxMCAxMi4zNjEzMjggQyAxMC4zNDUgMTEuOTA1MzI4IDExLjEzMjM1OSAxMSAxMy40NDMzNTkgMTEgeiIvPjwvc3ZnPg==",FDe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuODMyMDMxIDQgOC4xNTIzNDQgNi4xMTMyODEgNiA5LjM0Mzc1IEwgNiA2IEwgNCA2IEwgNCAxMyBMIDExIDEzIEwgMTEgMTEgTCA3LjM3NSAxMSBDIDkuMTAxNTYzIDguMDE5NTMxIDEyLjI5Njg3NSA2IDE2IDYgQyAyMS41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";const UDe=l.defineComponent({name:"Header",setup(e){const{state:t,updateSearch:n,updateActiveGroup:i}=l.inject("store"),r=l.computed(()=>!t.options.hideSearch),a=l.computed(()=>!t.options.hideGroupIcons),o=JSON.parse(JSON.stringify(t.orderedGroupKeys)),s=l.computed(()=>t.options.staticTexts.placeholder||""),u=l.computed({get:()=>t.search,set:h=>n(h)}),c=[...t.groups,...Object.keys(t.options.additionalGroups).map(h=>({key:h,title:t.options.groupNames[h]?t.options.groupNames[h]:R5(h)}))],f=[];return o.forEach(h=>{const g=c.findIndex(p=>p.key===h);g!==-1&&(f.push(c[g]),c.splice(g,1))}),{orderedGroups:f,orderedKeys:o,searchValue:u,updateActiveGroup:i,hasSearch:r,hasGroupIcons:a,placeholder:s,icons:{smileys_people:$5,animals_nature:zDe,food_drink:LDe,activities:$De,travel_places:HDe,objects:RDe,symbols:BDe,flags:VDe,...t.options.groupIcons,recent:FDe}}}}),YDe={key:0,class:"v3-header"},XDe={key:0,class:"v3-groups"},qDe=["onClick"],GDe=["title"],KDe=["src"],QDe={key:1,class:"v3-spacing"},JDe={key:2,class:"v3-search"},ZDe=["placeholder"];function eNe(e,t,n,i,r,a){return e.hasGroupIcons||e.hasSearch?(l.openBlock(),l.createElementBlock("div",YDe,[e.hasGroupIcons?(l.openBlock(),l.createElementBlock("div",XDe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.orderedGroups,o=>(l.openBlock(),l.createElementBlock("button",{key:o.key,type:"button",class:l.normalizeClass(["v3-group",{"v3-is-hidden":!e.icons[o.key]}]),onClick:s=>e.updateActiveGroup(o.key)},[l.createElementVNode("span",{title:o.title,class:"v3-icon"},[l.createElementVNode("img",{src:e.icons[o.key],alt:""},null,8,KDe)],8,GDe)],10,qDe))),128))])):l.createCommentVNode("",!0),e.hasGroupIcons&&e.hasSearch?(l.openBlock(),l.createElementBlock("div",QDe)):l.createCommentVNode("",!0),e.hasSearch?(l.openBlock(),l.createElementBlock("div",JDe,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>e.searchValue=o),type:"text",placeholder:e.placeholder},null,8,ZDe),[[l.vModelText,e.searchValue]])])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)}var tNe=uu(UDe,[["render",eNe]]);const nNe=l.defineComponent({name:"Header",setup(){const{state:e,updateSkinTone:t}=l.inject("store"),n=l.ref(!1),i=l.ref(!1),r=l.computed(()=>e.skinTone),a=l.computed(()=>e.options.staticTexts.skinTone||"Skin tone"),o=l.computed(()=>!e.options.disableSkinTones),s=H5()?"is-mac":"",u=l.computed(()=>({...e.emoji,src:f5+"/"+e.emoji[tu]+".png"}));function c(g=!0){n.value=g}function f(){n.value=!n.value}function h(g){t(g),c(!1)}return l.watch(()=>e.emoji,()=>{i.value=!1}),{emoji:u,SKIN_TONES:nAe,updateSkinToneState:c,skinTone:n,stateSkinTone:r,selectSkinTone:h,toggleSkinToneState:f,EMOJI_RESULT_KEY:tu,EMOJI_NAME_KEY:yf,skinToneText:a,hasSkinTones:o,native:e.options.native,unicodeToEmoji:xf,platform:s,hasError:i}}}),iNe={class:"v3-foot-left"},rNe={key:0},aNe=["alt","src"],oNe={class:"v3-text"},sNe={class:"v3-text"},lNe=["onClick"];function uNe(e,t,n,i,r,a){return l.openBlock(),l.createElementBlock("div",{class:"v3-footer",onMouseleave:t[2]||(t[2]=o=>e.updateSkinToneState(!1))},[l.createElementVNode("div",iNe,[l.createElementVNode("span",{class:l.normalizeClass([e.platform,"v3-icon"])},[e.native||e.hasError?(l.openBlock(),l.createElementBlock("span",rNe,l.toDisplayString(e.unicodeToEmoji(e.emoji.r)),1)):(l.openBlock(),l.createElementBlock("img",{key:1,alt:e.unicodeToEmoji(e.emoji.r),src:e.emoji.src,onError:t[0]||(t[0]=o=>e.hasError=!0)},null,40,aNe))],2),l.createElementVNode("span",oNe," :"+l.toDisplayString(e.emoji[e.EMOJI_NAME_KEY][1]||e.emoji[e.EMOJI_NAME_KEY][0])+": ",1)]),e.hasSkinTones?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{type:"button",class:"v3-tone",onClick:t[1]||(t[1]=(...o)=>e.toggleSkinToneState&&e.toggleSkinToneState(...o))},[l.createElementVNode("span",sNe,l.toDisplayString(e.skinToneText),1),l.createElementVNode("span",{class:l.normalizeClass(`v3-icon v3-tone-${e.stateSkinTone}`)},null,2)]),l.createElementVNode("div",{class:l.normalizeClass([e.skinTone?"v3-is-open":"","v3-skin-tones"])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.SKIN_TONES,o=>(l.openBlock(),l.createElementBlock("button",{key:o,type:"button",class:l.normalizeClass(["v3-skin-tone-"+o,"v3-skin-tone"]),onClick:s=>e.selectSkinTone(o)},null,10,lNe))),128))],2)],64)):l.createCommentVNode("",!0)],32)}var dNe=uu(nNe,[["render",uNe]]);const cNe=l.defineComponent({name:"PickerRoot",components:{Header:tNe,Body:ODe,Footer:dNe},props:{type:{type:String,default:""},text:{type:String,default:""},additionalGroups:{type:Object,default:()=>({})},groupOrder:{type:Array,default:()=>[]},groupIcons:{type:Object,default:()=>({})},groupNames:{type:Object,default:()=>({})}},emits:{select:e=>!0,"update:text":e=>!0},setup(e,{emit:t}){const n=l.ref(),i=l.ref(),r=l.ref(),a=l.ref(!1),o=l.ref(e.text),s=e.type==="input"||e.type==="textarea";let u=-1;const{state:c}=l.inject("store"),f=l.computed(()=>c.options.colorTheme);function h(k){if(s){const w=c.options.mode;w==="prepend"?o.value=k.i+o.value:w==="insert"&&u!==-1?(o.value=`${o.value.slice(0,u)}${k.i}${o.value.slice(u)}`,u+=k.i.length):o.value+=k.i,t("update:text",o.value)}t("select",k)}function g(){var k;n.value&&(u=((k=n.value)==null?void 0:k.selectionEnd)||-1)}function p(k){var w;!((w=k.target)!=null&&w.closest(".v3-input-picker-wrap"))&&a.value&&(a.value=!1)}function y(){if(i.value&&r.value&&s){let k=c.options.offset;typeof k!="number"&&(k=6),SDe(i.value,r.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,k]}}]}),document.body.addEventListener("click",p)}}function v(k){o.value=k.target.value||"",t("update:text",o.value)}return l.onMounted(()=>{y()}),l.onBeforeUnmount(()=>{document.body.removeEventListener("click",p)}),{face:$5,open:a,onSelect:h,input:o,elem:n,updateCursor:g,button:i,picker:r,isInputType:s,onChangeText:v,colorTheme:f}}}),fNe={key:0,class:"v3-input-emoji-picker"},hNe={class:"v3-input-picker-root"},mNe=["value"],pNe=["value"],gNe=["src"];function yNe(e,t,n,i,r,a){const o=l.resolveComponent("Header"),s=l.resolveComponent("Body"),u=l.resolveComponent("Footer");return e.isInputType?(l.openBlock(),l.createElementBlock("div",fNe,[l.createElementVNode("div",hNe,[e.type==="input"?(l.openBlock(),l.createElementBlock("input",{key:0,ref:"elem",value:e.input,type:"text",class:"v3-emoji-picker-input",onInput:t[0]||(t[0]=(...c)=>e.onChangeText&&e.onChangeText(...c)),onBlur:t[1]||(t[1]=(...c)=>e.updateCursor&&e.updateCursor(...c))},null,40,mNe)):(l.openBlock(),l.createElementBlock("textarea",{key:1,ref:"elem",value:e.input,class:"v3-emoji-picker-textarea",onInput:t[2]||(t[2]=(...c)=>e.onChangeText&&e.onChangeText(...c)),onBlur:t[3]||(t[3]=(...c)=>e.updateCursor&&e.updateCursor(...c))},null,40,pNe)),l.createElementVNode("div",{class:l.normalizeClass(["v3-input-picker-wrap",e.open?"v3-picker-is-open":""])},[l.createElementVNode("button",{ref:"button",type:"button",class:"v3-input-picker-icon",onClick:t[4]||(t[4]=c=>e.open=!e.open)},[l.createElementVNode("img",{src:e.face,alt:""},null,8,gNe)],512),l.createElementVNode("div",{ref:"picker",class:l.normalizeClass(["v3-emoji-picker","v3-color-theme-"+e.colorTheme])},[l.createVNode(o),l.createVNode(s,{onSelect:e.onSelect},null,8,["onSelect"]),l.createVNode(u)],2)],2)])])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["v3-emoji-picker","v3-color-theme-"+e.colorTheme])},[l.createVNode(o),l.createVNode(s,{onSelect:e.onSelect},null,8,["onSelect"]),l.createVNode(u)],2))}var bNe=uu(cNe,[["render",yNe]]);const wNe=l.defineComponent({name:"Picker",components:{PickerRoot:bNe},props:{native:{type:Boolean,default:!1},hideSearch:{type:Boolean,default:!1},hideGroupIcons:{type:Boolean,default:!1},hideGroupNames:{type:Boolean,default:!1},staticTexts:{type:Object,default:()=>({})},disableStickyGroupNames:{type:Boolean,default:!1},disabledGroups:{type:Array,default:()=>[]},groupNames:{type:Object,default:()=>({})},disableSkinTones:{type:Boolean,default:!1},text:{type:String,default:""},mode:{type:String,default:"insert"},offset:{type:Number,default:6},additionalGroups:{type:Object,default:()=>({})},groupOrder:{type:Array,default:()=>[]},groupIcons:{type:Object,default:()=>({})},pickerType:{type:String,default:""},displayRecent:{type:Boolean,default:!1},theme:{type:String,default:"light"}},emits:{"update:text":e=>!0,select:e=>!0},setup(e,{emit:t}){const n=l.ref(e.text);function i(a){n.value=a||"",t("update:text",n.value)}const r=wAe();return r.updateOptions({native:e.native,hideSearch:e.hideSearch,hideGroupIcons:e.hideGroupIcons,hideGroupNames:e.hideGroupNames,staticTexts:{...iAe,...e.staticTexts},disableStickyGroupNames:e.disableStickyGroupNames,disabledGroups:e.disabledGroups,groupNames:{...h5,...e.groupNames},disableSkinTones:e.disableSkinTones,displayRecent:e.displayRecent,additionalGroups:e.additionalGroups,mode:e.mode,offset:e.offset,groupOrder:e.groupOrder,groupIcons:e.groupIcons,colorTheme:rAe.includes(e.theme)?e.theme:"light"}),l.provide("store",r),{type:e.pickerType,input:n,onChangeText:i}}});function vNe(e,t,n,i,r,a){const o=l.resolveComponent("picker-root");return l.openBlock(),l.createBlock(o,{type:e.type,text:e.input,onSelect:t[0]||(t[0]=s=>e.$emit("select",s)),"onUpdate:text":e.onChangeText},null,8,["type","text","onUpdate:text"])}var kNe=uu(wNe,[["render",vNe]]),Sf=(e=>(e.primary="primary",e.secondary="secondary",e.red="red",e.green="green",e.yellow="yellow",e.blue="blue",e.white="white",e.black="black",e))(Sf||{});const MNe={class:"editor-component"},CNe={class:"toolbar"},qg=l.defineComponent({__name:"ContentEditor",props:{modelValue:{},modelModifiers:{}},emits:l.mergeModels(["unmount-send"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const i=l.useModel(e,"modelValue"),r=l.ref(!1),a=n,o=pn.create({name:"spanNode",inline:!0,group:"inline",atom:!0,selectable:!1,addAttributes(){return{class:{default:"link"},content:{default:""}}},parseHTML(){return[{tag:"span[data-span]"}]},renderHTML({node:y,HTMLAttributes:v}){return["span",ft(v,{"data-span":"",contenteditable:"false",class:y==null?void 0:y.attrs.class}),y==null?void 0:y.attrs.content]}}),s=yPe({extensions:[KEe,dEe.configure({openOnClick:!1,HTMLAttributes:{class:"link"}}),ZEe,eAe.configure({placeholder:"Начните печатать...",emptyEditorClass:"is-editor-empty"}),o],content:i.value,onUpdate:({editor:y})=>{i.value=y.getHTML()},parseOptions:{preserveWhitespace:!0}});l.watch(i,y=>{var v;s.value&&y!==s.value.getHTML()&&((v=s.value)==null||v.commands.setContent(y??"",{parseOptions:{preserveWhitespace:!0}}))});function u(){if(!s.value)return;const y=prompt("Enter URL:");y&&s.value.chain().focus().extendMarkRange("link").setLink({href:y}).run()}function c(y){s.value&&(s.value.chain().focus().insertContent(y.i).run(),r.value=!1)}function f(){if(!s.value)return;const y=document.createElement("input");y.type="file",y.accept="image/*",y.onchange=()=>{if(!(y!=null&&y.files))return;const v=y.files[0];if(v){const k=new FileReader;k.onload=w=>{var x,S;const M=(x=w.target)==null?void 0:x.result;M&&typeof M=="string"&&((S=s.value)==null||S.chain().focus().setImage({src:M}).run())},k.readAsDataURL(v)}},y.click()}function h(){s.value&&a("unmount-send",{content:s.value.getHTML()})}function g(y){s.value&&s.value.chain().focus().insertContent({type:"spanNode",attrs:{content:y+",",class:"link"}}).run()}function p(y){(y.ctrlKey||y.metaKey)&&y.key==="Enter"&&(y.preventDefault(),h())}return l.watch(s,y=>{y&&y.view.dom.addEventListener("keydown",p)}),l.onBeforeUnmount(()=>{s.value&&(s.value.view.dom.removeEventListener("keydown",p),s.value.destroy())}),t({addSpanLink:g}),(y,v)=>{var k;return l.openBlock(),l.createElementBlock("div",MNe,[l.createVNode(l.unref(gPe),{class:"editor-content",editor:l.unref(s)},null,8,["editor"]),l.createElementVNode("div",CNe,[l.createVNode(Ot,{type:l.unref(ut).ghost,size:l.unref(Ai).small,class:"toolbar-button attach-file-button",onClick:u,disabled:""},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).paperClip,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"]),l.createVNode(Ot,{type:l.unref(ut).ghost,class:"toolbar-button",size:l.unref(Ai).small,onClick:f,disabled:""},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).atSign},null,8,["name"])]),_:1},8,["type","size"]),l.createVNode(Ot,{type:l.unref(ut).ghost,size:l.unref(Ai).small,class:"toolbar-button",onClick:v[1]||(v[1]=w=>r.value=!r.value),disabled:""},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).smile,width:16,height:16},null,8,["name"]),r.value?(l.openBlock(),l.createElementBlock("div",{key:0,onClick:v[0]||(v[0]=l.withModifiers(()=>{},["stop"])),class:"emoji-picker"},[l.createVNode(l.unref(kNe),{native:!0,onSelect:c})])):l.createCommentVNode("",!0)]),_:1},8,["type","size"]),l.createVNode(Ot,{disabled:(k=l.unref(s))==null?void 0:k.isEmpty,class:"toolbar-button right",size:l.unref(Ai).small,onClick:h},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).planeRight,color:l.unref(Sf).white,width:16,height:16},null,8,["name","color"])]),_:1},8,["disabled","size"])])])}}}),xNe=["data-testid"],SNe=["data-testid"],_Ne=pe(l.defineComponent({name:"BaseCropper",__name:"BaseCropper",props:{image:{},max:{default:3},min:{default:1},step:{default:.5}},emits:["unmount-scale"],setup(e,{expose:t,emit:n}){const i=e,r=n,a=l.useTemplateRef("canvas"),o=l.useTemplateRef("container"),s=l.reactive({ctx:null,image:null,id:l.useId(),scale:1,position:{x:0,y:0},isDragging:!1,startX:0,startY:0,minScale:i.min,maxScale:i.max,stepScale:i.step});l.watch(()=>i.image,()=>{i.image&&h(i.image)});const u=()=>{a.value&&(s.ctx=a.value.getContext("2d")),c(),window.addEventListener("resize",c)},c=()=>{if(o.value){const{width:I,height:A}=o.value.getBoundingClientRect();a.value&&(a.value.width=I,a.value.height=A),s.image&&f()}},f=()=>{if(s.image){const I=s.ctx,A=a.value;I&&A&&(I.clearRect(0,0,A.width,A.height),I.drawImage(s.image,s.position.x,s.position.y,s.image.width*s.scale,s.image.height*s.scale))}},h=I=>{const A=new FileReader;A.onload=async W=>{var $;typeof(($=W.target)==null?void 0:$.result)=="string"&&(s.image=new Image,s.image.src=W.target.result,s.image.onload=async()=>{if(await l.nextTick(),a.value&&s.image){const D=a.value.width,z=a.value.height,H=s.image.width/s.image.height,X=D/z;H>X?(s.image.width=D,s.image.height=D/H):(s.image.height=z,s.image.width=z*H),c(),s.position.x=(a.value.width-s.image.width)/2,s.position.y=(a.value.height-s.image.height)/2,f()}})},A.readAsDataURL(I)},g=I=>{s.isDragging=!0,s.startX=I.clientX-s.position.x,s.startY=I.clientY-s.position.y,window.addEventListener("mousemove",p),window.addEventListener("mouseup",y)},p=I=>{if(!s.isDragging&&!a.value)return;let A=I.clientX-s.startX,W=I.clientY-s.startY;if(a.value&&s.image){const $=a.value.width-s.image.width*s.scale;s.image.width*s.scale<a.value.width?A=Math.min(Math.max(A,0),a.value.width-s.image.width*s.scale):(A>0&&(A=0),A<$&&(A=$));const D=a.value.height-s.image.height*s.scale;s.image.height*s.scale<a.value.height?W=Math.min(Math.max(W,0),a.value.height-s.image.height*s.scale):(W>0&&(W=0),W<D&&(W=D)),s.position.x=A,s.position.y=W}f()},y=()=>{s.isDragging=!1,window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",y)},v=I=>Math.max(s.minScale,Math.min(I,s.maxScale)),k=I=>{if(a.value){const A=a.value.width/2,W=a.value.height/2;s.position.x=A-(A-s.position.x)*I,s.position.y=W-(W-s.position.y)*I}},w=I=>{const A=s.scale,W=s.scale+I.deltaY*-.001;if(A===v(W))return;s.scale=v(W);const $=W/A;k($),r("unmount-scale",s.scale),f()};return t({cropImage:()=>{if(o.value){const{width:I,height:A}=o.value.getBoundingClientRect(),W=document.createElement("canvas");W.width=I,W.height=A;const $=W.getContext("2d");$&&s.image&&$.drawImage(s.image,s.position.x,s.position.y,s.image.width*s.scale,s.image.height*s.scale);const D=W.toDataURL("image/png"),z=atob(D.split(",")[1]),H=new ArrayBuffer(z.length),X=new Uint8Array(H);for(let ne=0;ne<z.length;ne++)X[ne]=z.charCodeAt(ne);const re=new Blob([X],{type:"image/png"});return i.image?new File([re],i.image.name,{type:"image/png"}):null}return null},scalePlus:()=>{const I=s.scale+s.stepScale;s.scale=v(I),f()},scaleMinus:()=>{const I=s.scale-s.stepScale;s.scale=v(I),f()},setScale:I=>{const A=s.scale,$=I/A;s.scale=v(I),k($),f()},startMove:g,scaleImage:w}),l.onMounted(()=>{u(),i.image&&h(i.image)}),(I,A)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"container",ref:o,class:"base-cropper","data-testid":`BaseCropper-${s.id}`},[l.createElementVNode("canvas",{ref_key:"canvas",ref:a,class:"base-cropper__canvas","data-testid":`BaseCropper-${s.id}-canvas`,onMousedown:g,onWheel:l.withModifiers(w,["prevent"])},null,40,SNe)],8,xNe))}}),[["__scopeId","data-v-96931847"]]),TNe=e=>{const t=l.ref(e==null?void 0:e.defaultValue),n=e==null?void 0:e.min,i=e==null?void 0:e.max,r=e==null?void 0:e.step;l.watch(t,o=>{t.value=a(o)});const a=o=>Math.max(n,Math.min(o,i));return{value:t,min:n,max:i,step:r,getCorrectValue:a}},PNe=(e,t)=>new File([e],t,{type:e.type}),ENe=["data-testid"],ANe=["data-testid"],DNe=["data-testid"],NNe=["data-testid"],jNe=["data-testid"],INe=["data-testid"],Gg=pe(l.defineComponent({name:"ModalCroppedAvatar",__name:"ModalCroppedAvatar",props:{image:{},open:{type:Boolean},position:{default:"center"},width:{default:"650px"},height:{default:"auto"},dataTestid:{}},emits:["unmount-close","unmount-save"],setup(e,{emit:t}){const n=e,i=t,{max:r,min:a,step:o,value:s}=TNe({defaultValue:1,max:3,min:1,step:.1}),u=l.useId(),c=l.useTemplateRef("cropper"),f=l.reactive({openModal:!1});l.watch(s,()=>{c.value&&c.value.setScale(s.value)});const h=()=>{f.openModal=!1,i("unmount-close")},g=k=>{s.value=k},p=()=>{s.value=s.value-o},y=()=>{s.value=s.value+o},v=()=>{if(c.value){const k=c.value.cropImage();if(k){const w=k.name,M=PNe(k,w);i("unmount-save",M),h()}}};return l.onUnmounted(()=>{h()}),l.onMounted(()=>{n.open===void 0&&(f.openModal=n.open)}),(k,w)=>(l.openBlock(),l.createBlock(Fd,l.mergeProps(n,{class:"modal-cropped-avatar","data-testid":`ModalCroppedAvatar-${l.unref(u)}`,onClose:h}),{default:l.withCtx(()=>[l.createElementVNode("div",{class:"modal-cropped-avatar__content","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content`},[l.createElementVNode("div",{class:"modal-cropped-avatar__title","data-testid":`ModalCroppedAvatar-${l.unref(u)}-title`}," Изменение фото профиля ",8,ANe),l.createElementVNode("div",{class:"modal-cropped-avatar__main","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-main`},[l.createElementVNode("div",{class:"modal-cropped-avatar__cropped","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-main-cropped`},[l.createVNode(_Ne,{ref_key:"cropper",ref:c,image:e.image,max:l.unref(r),min:l.unref(a),step:l.unref(o),class:"modal-cropped-avatar__cropper",onUnmountScale:g},null,8,["image","max","min","step"]),l.createElementVNode("div",{class:"modal-cropped-avatar__tools","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-tools`},[l.createVNode(ve,{name:l.unref(ce).minus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-iconMinus`,onClick:p},null,8,["name","data-testid"]),l.createVNode(Gd,{max:l.unref(r),min:l.unref(a),step:l.unref(o),modelValue:l.unref(s),"onUpdate:modelValue":w[0]||(w[0]=M=>l.isRef(s)?s.value=M:null),"data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-Range`},null,8,["max","min","step","modelValue","data-testid"]),l.createVNode(ve,{name:l.unref(ce).plus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-IconPlus`,onClick:y},null,8,["name","data-testid"])],8,jNe)],8,NNe),l.createElementVNode("div",{class:"modal-cropped-avatar__buttons","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-buttons`},[l.createVNode(Ot,{type:l.unref(ut).outline,class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-ButtonCancel`,onClick:h},{default:l.withCtx(()=>[...w[1]||(w[1]=[l.createTextVNode(" Отменить ",-1)])]),_:1},8,["type","data-testid"]),l.createVNode(Ot,{class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-buttonSave`,onClick:v},{default:l.withCtx(()=>[...w[2]||(w[2]=[l.createTextVNode(" Сохранить ",-1)])]),_:1},8,["data-testid"])],8,INe)],8,DNe)],8,ENe)]),_:1},16,["data-testid"]))}}),[["__scopeId","data-v-8913c4c8"]]),Kg={install(e,t={enabled:!0}){if(!(t.enabled??!1)){console.info("[removeDataTestidPlugin] Plugin is disabled.");return}const i=r=>{r.removeAttribute("data-testid"),Array.from(r.children).forEach(i)};e.mixin({mounted(){i(this.$el)}})}},B5={Accordion:C1,Badges:Vt,BreadCrumbs:wh,Dialog:M1,DragAndDrop:x1,Card:S1,Combobox:T1,Calendar:Zm,Button:Ot,Switch:Tu,SelectList:vo,Dropdown:Oh,Textarea:W1,Filter:_1,Icon:ve,Input:E1,InputNumber:A1,Picture:O1,PopoverHover:Y1,PushNotification:z1,Scroll:N1,Search:yl,Modal:Fd,Slider:D1,Checkbox:j1,Toggle:$d,UserMenu:I1,CopyIcon:L1,Loader:$1,FilterTag:H1,CircularProgress:R1,Popover:B1,Table:V1,TableNew:G1,TableSimple:Q1,TableRow:Xd,TableRowNew:K1,TableTd:qd,TableTh:Go,SectionTableRow:F1,HeadTableRow:Ml,HeadTableRowNew:Kd,ScrollWrapper:Cl,ScrollWrapperNew:uCe,Radio:X1,Tooltip:kl,BaseFilter:q1,Range:Gd,Tabs:J1,ContentEditor:qg,ModalCroppedAvatar:Gg,Avatar:Ud},V5=Object.freeze(Object.defineProperty({__proto__:null,Accordion:C1,Avatar:Ud,Badges:Vt,BadgesTypeEnum:tt,BaseFilter:q1,BreadCrumbs:wh,Button:Ot,ButtonTypeEnum:ut,Calendar:Zm,Card:S1,Checkbox:j1,CircularProgress:R1,ColorsEnum:Sf,Combobox:T1,ContentEditor:qg,CopyIcon:L1,Dialog:M1,DragAndDrop:x1,Dropdown:Oh,Filter:_1,FilterTag:H1,HeadTableRow:Ml,HeadTableRowNew:Kd,Icon:ve,IconNameEnum:ce,ImageExtensionsEnum:Od,Input:E1,InputNumber:A1,InputTypeEnum:P1,Loader:$1,Modal:Fd,ModalCroppedAvatar:Gg,Picture:O1,Popover:B1,PopoverHover:Y1,PushNotification:z1,Radio:X1,Range:Gd,Scroll:N1,ScrollWrapper:Cl,Search:yl,SectionTableRow:F1,SelectList:vo,SizesEnum:Ai,Slider:D1,Switch:Tu,Table:V1,TableNew:G1,TableRow:Xd,TableRowNew:K1,TableSimple:Q1,TableTd:qd,TableTh:Go,Tabs:J1,Textarea:W1,TextareaTypeEnum:Yd,Toggle:$d,Tooltip:kl,UserMenu:I1,VideoExtensionsEnum:zd,default:{install:e=>{Object.keys(B5).forEach(t=>{e.component("Y"+t,B5[t])})}},getFirstTime:Hw,getLastTime:bd,vuePluginRemoveTestid:Kg},Symbol.toStringTag,{value:"Module"})),WNe={install(e){for(const t in V5){const n=V5[t];e.use(n).use(Kg,{enabled:!1})}}};U.Accordion=C1,U.Avatar=Ud,U.Badges=Vt,U.BadgesTypeEnum=tt,U.BaseFilter=q1,U.BreadCrumbs=wh,U.Button=Ot,U.ButtonTypeEnum=ut,U.Calendar=Zm,U.Card=S1,U.Checkbox=j1,U.CircularProgress=R1,U.ColorsEnum=Sf,U.Combobox=T1,U.ContentEditor=qg,U.CopyIcon=L1,U.Dialog=M1,U.DragAndDrop=x1,U.Dropdown=Oh,U.Filter=_1,U.FilterTag=H1,U.HeadTableRow=Ml,U.HeadTableRowNew=Kd,U.Icon=ve,U.IconNameEnum=ce,U.ImageExtensionsEnum=Od,U.Input=E1,U.InputNumber=A1,U.InputTypeEnum=P1,U.Loader=$1,U.Modal=Fd,U.ModalCroppedAvatar=Gg,U.OnClickOutside=cS,U.OnLongPress=gS,U.Picture=O1,U.Popover=B1,U.PopoverHover=Y1,U.PushNotification=z1,U.Radio=X1,U.Range=Gd,U.Scroll=N1,U.ScrollWrapper=Cl,U.Search=yl,U.SectionTableRow=F1,U.SelectList=vo,U.SizesEnum=Ai,U.Slider=D1,U.Switch=Tu,U.Table=V1,U.TableNew=G1,U.TableRow=Xd,U.TableRowNew=K1,U.TableSimple=Q1,U.TableTd=qd,U.TableTh=Go,U.Tabs=J1,U.Textarea=W1,U.TextareaTypeEnum=Yd,U.Toggle=$d,U.Tooltip=kl,U.UseActiveElement=yS,U.UseBattery=bS,U.UseBrowserLocation=wS,U.UseClipboard=vS,U.UseColorMode=DS,U.UseDark=NS,U.UseDeviceMotion=jS,U.UseDeviceOrientation=IS,U.UseDevicePixelRatio=WS,U.UseDevicesList=OS,U.UseDocumentVisibility=zS,U.UseDraggable=LS,U.UseElementBounding=$S,U.UseElementSize=RS,U.UseElementVisibility=FS,U.UseEyeDropper=YS,U.UseFullscreen=XS,U.UseGeolocation=qS,U.UseIdle=GS,U.UseImage=ZS,U.UseMouse=n_,U.UseMouseInElement=i_,U.UseMousePressed=r_,U.UseNetwork=a_,U.UseNow=o_,U.UseObjectUrl=s_,U.UseOffsetPagination=l_,U.UseOnline=u_,U.UsePageLeave=d_,U.UsePointer=c_,U.UsePointerLock=f_,U.UsePreferredColorScheme=h_,U.UsePreferredContrast=m_,U.UsePreferredDark=p_,U.UsePreferredLanguages=g_,U.UsePreferredReducedMotion=y_,U.UseScreenSafeArea=k_,U.UseTimeAgo=T_,U.UseTimestamp=P_,U.UseVirtualList=E_,U.UseWindowFocus=A_,U.UseWindowSize=D_,U.UserMenu=I1,U.VOnClickOutside=Ls,U.VOnLongPress=t2,U.VideoExtensionsEnum=zd,U.VueToolsCore=TMe,U.arrow=l4e,U.autoPlacement=Gm,U.autoUpdate=Xm,U.computePosition=Ow,U.default=WNe,U.detectOverflow=Z3e,U.flip=t4e,U.getFirstTime=Hw,U.getLastTime=bd,U.getOverflowAncestors=Wo,U.hide=i4e,U.inline=a4e,U.limitShift=o4e,U.offset=qm,U.platform=Iw,U.shift=e4e,U.size=n4e,U.useFloating=Qm,U.useSearch=o3,U.vElementHover=HS,U.vElementSize=VS,U.vElementVisibility=US,U.vInfiniteScroll=e_,U.vIntersectionObserver=t_,U.vOnClickOutside=Ls,U.vOnKeyStroke=hS,U.vOnLongPress=t2,U.vResizeObserver=b_,U.vScroll=M_,U.vScrollLock=__,U.vuePluginRemoveTestid=Kg,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1399
|
+
3. "-" cannot repeat`);Ze.customSchemes.push([e,t])}function nEe(){Ze.scanner=qPe(Ze.customSchemes);for(let e=0;e<Ze.tokenQueue.length;e++)Ze.tokenQueue[e][1]({scanner:Ze.scanner});Ze.parser=QPe(Ze.scanner.tokens);for(let e=0;e<Ze.pluginQueue.length;e++)Ze.pluginQueue[e][1]({scanner:Ze.scanner,parser:Ze.parser});return Ze.initialized=!0,Ze}function xg(e){return Ze.initialized||nEe(),JPe(Ze.parser.start,e,zk(Ze.scanner.start,e))}xg.scan=zk;function Fk(e,t=null,n=null){if(t&&typeof t=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}const i=new Mg(n),r=xg(e),a=[];for(let o=0;o<r.length;o++){const s=r[o];s.isLink&&(!t||s.t===t)&&i.check(s)&&a.push(s.toFormattedObject(i))}return a}var Sg="[\0- -\u2029 ]",iEe=new RegExp(Sg),rEe=new RegExp(`${Sg}$`),aEe=new RegExp(Sg,"g");function oEe(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?["()","[]"].includes(e[0].value+e[2].value):!1}function sEe(e){return new ct({key:new jt("autolink"),appendTransaction:(t,n,i)=>{const r=t.some(c=>c.docChanged)&&!n.doc.eq(i.doc),a=t.some(c=>c.getMeta("preventAutolink"));if(!r||a)return;const{tr:o}=i,s=X6(n.doc,[...t]);if(rk(s).forEach(({newRange:c})=>{const f=E_e(i.doc,c,p=>p.isTextblock);let h,g;if(f.length>1)h=f[0],g=i.doc.textBetween(h.pos,h.pos+h.node.nodeSize,void 0," ");else if(f.length){const p=i.doc.textBetween(c.from,c.to," "," ");if(!rEe.test(p))return;h=f[0],g=i.doc.textBetween(h.pos,c.to,void 0," ")}if(h&&g){const p=g.split(iEe).filter(Boolean);if(p.length<=0)return!1;const y=p[p.length-1],v=h.pos+g.lastIndexOf(y);if(!y)return!1;const k=xg(y).map(w=>w.toObject(e.defaultProtocol));if(!oEe(k))return!1;k.filter(w=>w.isLink).map(w=>({...w,from:v+w.start+1,to:v+w.end+1})).filter(w=>i.schema.marks.code?!i.doc.rangeHasMark(w.from,w.to,i.schema.marks.code):!0).filter(w=>e.validate(w.value)).filter(w=>e.shouldAutoLink(w.value)).forEach(w=>{Gp(w.from,w.to,i.doc).some(M=>M.mark.type===e.type)||o.addMark(w.from,w.to,e.type.create({href:w.href}))})}}),!!o.steps.length)return o}})}function lEe(e){return new ct({key:new jt("handleClickLink"),props:{handleClick:(t,n,i)=>{var r,a;if(i.button!==0||!t.editable)return!1;let o=null;if(i.target instanceof HTMLAnchorElement)o=i.target;else{let f=i.target;const h=[];for(;f.nodeName!=="DIV";)h.push(f),f=f.parentNode;o=h.find(g=>g.nodeName==="A")}if(!o)return!1;const s=ik(t.state,e.type.name),u=(r=o==null?void 0:o.href)!=null?r:s.href,c=(a=o==null?void 0:o.target)!=null?a:s.target;return e.enableClickSelection&&e.editor.commands.extendMarkRange(e.type.name),o&&u?(window.open(u,c),!0):!1}}})}function uEe(e){return new ct({key:new jt("handlePasteLink"),props:{handlePaste:(t,n,i)=>{const{state:r}=t,{selection:a}=r,{empty:o}=a;if(o)return!1;let s="";i.content.forEach(c=>{s+=c.textContent});const u=Fk(s,{defaultProtocol:e.defaultProtocol}).find(c=>c.isLink&&c.value===s);return!s||!u?!1:e.editor.commands.setMark(e.type,{href:u.href})}}})}function ao(e,t){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(i=>{const r=typeof i=="string"?i:i.scheme;r&&n.push(r)}),!e||e.replace(aEe,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var Uk=no.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if(typeof e=="string"){Vk(e);return}Vk(e.scheme,e.optionalSlashes)})},onDestroy(){tEe()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!ao(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>!!e}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!t||!this.options.isAllowedUri(t,{defaultValidate:n=>!!ao(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:t=>!!ao(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",ft(this.options.HTMLAttributes,e),0]:["a",ft(this.options.HTMLAttributes,{...e,href:""}),0]},addCommands(){return{setLink:e=>({chain:t})=>{const{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:i=>!!ao(i,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta("preventAutolink",!0).run():!1},toggleLink:e=>({chain:t})=>{const{href:n}=e||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:i=>!!ao(i,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[io({find:e=>{const t=[];if(e){const{protocols:n,defaultProtocol:i}=this.options,r=Fk(e).filter(a=>a.isLink&&this.options.isAllowedUri(a.value,{defaultValidate:o=>!!ao(o,n),protocols:n,defaultProtocol:i}));r.length&&r.forEach(a=>t.push({text:a.value,data:{href:a.href},index:a.start}))}return t},type:this.type,getAttributes:e=>{var t;return{href:(t=e.data)==null?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(sEe({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:i=>this.options.isAllowedUri(i,{defaultValidate:r=>!!ao(r,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&e.push(lEe({type:this.type,editor:this.editor,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(uEe({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),e}}),dEe=Uk,cEe=Object.defineProperty,fEe=(e,t)=>{for(var n in t)cEe(e,n,{get:t[n],enumerable:!0})},hEe="listItem",Yk="textStyle",Xk=/^\s*([-+*])\s$/,qk=pn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",ft(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(hEe,this.editor.getAttributes(Yk)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=cs({find:Xk,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=cs({find:Xk,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Yk),editor:this.editor})),[e]}}),Gk=pn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",ft(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),mEe={};fEe(mEe,{findListItemPos:()=>eu,getNextListDepth:()=>_g,handleBackspace:()=>Tg,handleDelete:()=>Pg,hasListBefore:()=>Kk,hasListItemAfter:()=>pEe,hasListItemBefore:()=>Qk,listItemHasSubList:()=>Jk,nextListIsDeeper:()=>Zk,nextListIsHigher:()=>e5});var eu=(e,t)=>{const{$from:n}=t.selection,i=Mt(e,t.schema);let r=null,a=n.depth,o=n.pos,s=null;for(;a>0&&s===null;)r=n.node(a),r.type===i?s=a:(a-=1,o-=1);return s===null?null:{$pos:t.doc.resolve(o),depth:s}},_g=(e,t)=>{const n=eu(e,t);if(!n)return!1;const[,i]=$_e(t,e,n.$pos.pos+4);return i},Kk=(e,t,n)=>{const{$anchor:i}=e.selection,r=Math.max(0,i.pos-2),a=e.doc.resolve(r).node();return!(!a||!n.includes(a.type.name))},Qk=(e,t)=>{var n;const{$anchor:i}=t.selection,r=t.doc.resolve(i.pos-2);return!(r.index()===0||((n=r.nodeBefore)==null?void 0:n.type.name)!==e)},Jk=(e,t,n)=>{if(!n)return!1;const i=Mt(e,t.schema);let r=!1;return n.descendants(a=>{a.type===i&&(r=!0)}),r},Tg=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!ea(e.state,t)&&Kk(e.state,t,n)){const{$anchor:s}=e.state.selection,u=e.state.doc.resolve(s.before()-1),c=[];u.node().descendants((g,p)=>{g.type.name===t&&c.push({node:g,pos:p})});const f=c.at(-1);if(!f)return!1;const h=e.state.doc.resolve(u.start()+f.pos+1);return e.chain().cut({from:s.start()-1,to:s.end()+1},h.end()).joinForward().run()}if(!ea(e.state,t)||!V_e(e.state))return!1;const i=eu(t,e.state);if(!i)return!1;const a=e.state.doc.resolve(i.$pos.pos-2).node(i.depth),o=Jk(t,e.state,a);return Qk(t,e.state)&&!o?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},Zk=(e,t)=>{const n=_g(e,t),i=eu(e,t);return!i||!n?!1:n>i.depth},e5=(e,t)=>{const n=_g(e,t),i=eu(e,t);return!i||!n?!1:n<i.depth},Pg=(e,t)=>{if(!ea(e.state,t)||!B_e(e.state,t))return!1;const{selection:n}=e.state,{$from:i,$to:r}=n;return!n.empty&&i.sameParent(r)?!1:Zk(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():e5(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},pEe=(e,t)=>{var n;const{$anchor:i}=t.selection,r=t.doc.resolve(i.pos-i.parentOffset-2);return!(r.index()===r.parent.childCount-1||((n=r.nodeAfter)==null?void 0:n.type.name)!==e)},t5=Ct.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&Pg(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&Pg(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:i})=>{e.state.schema.nodes[n]!==void 0&&Tg(e,n,i)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:i})=>{e.state.schema.nodes[n]!==void 0&&Tg(e,n,i)&&(t=!0)}),t}}}}),gEe="listItem",n5="textStyle",i5=/^(\d+)\.\s$/,r5=pn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return t===1?["ol",ft(this.options.HTMLAttributes,n),0]:["ol",ft(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(gEe,this.editor.getAttributes(n5)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=cs({find:i5,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=cs({find:i5,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(n5)}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1],editor:this.editor})),[e]}}),yEe=/^\s*(\[([( |x])?\])\s$/,bEe=pn.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{const t=e.getAttribute("data-checked");return t===""||t==="true"},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",ft(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:i})=>{const r=document.createElement("li"),a=document.createElement("label"),o=document.createElement("span"),s=document.createElement("input"),u=document.createElement("div"),c=f=>{var h,g;s.ariaLabel=((g=(h=this.options.a11y)==null?void 0:h.checkboxLabel)==null?void 0:g.call(h,f,s.checked))||`Task item checkbox for ${f.textContent||"empty task item"}`};return c(e),a.contentEditable="false",s.type="checkbox",s.addEventListener("mousedown",f=>f.preventDefault()),s.addEventListener("change",f=>{if(!i.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}const{checked:h}=f.target;i.isEditable&&typeof n=="function"&&i.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:g})=>{const p=n();if(typeof p!="number")return!1;const y=g.doc.nodeAt(p);return g.setNodeMarkup(p,void 0,{...y==null?void 0:y.attrs,checked:h}),!0}).run(),!i.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,h)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([f,h])=>{r.setAttribute(f,h)}),r.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,o),r.append(a,u),Object.entries(t).forEach(([f,h])=>{r.setAttribute(f,h)}),{dom:r,contentDOM:u,update:f=>f.type!==this.type?!1:(r.dataset.checked=f.attrs.checked,s.checked=f.attrs.checked,c(f),!0)}}},addInputRules(){return[cs({find:yEe,type:this.type,getAttributes:e=>({checked:e[e.length-1]==="x"})})]}}),wEe=pn.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",ft(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});Ct.create({name:"listKit",addExtensions(){const e=[];return this.options.bulletList!==!1&&e.push(qk.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(Gk.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(t5.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(r5.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(bEe.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(wEe.configure(this.options.taskList)),e}});var vEe=pn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",ft(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),kEe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,MEe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,CEe=no.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["s",ft(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[ds({find:kEe,type:this.type})]},addPasteRules(){return[io({find:MEe,type:this.type})]}}),xEe=pn.create({name:"text",group:"inline"}),SEe=no.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",ft(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function _Ee(e={}){return new ct({view(t){return new TEe(t,e)}})}class TEe{constructor(t,n){var i;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(i=n.width)!==null&&i!==void 0?i:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let a=o=>{this[r](o)};return t.dom.addEventListener(r,a),{name:r,handler:a}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,i,r=this.editorView.dom,a=r.getBoundingClientRect(),o=a.width/r.offsetWidth,s=a.height/r.offsetHeight;if(n){let h=t.nodeBefore,g=t.nodeAfter;if(h||g){let p=this.editorView.nodeDOM(this.cursorPos-(h?h.nodeSize:0));if(p){let y=p.getBoundingClientRect(),v=h?y.bottom:y.top;h&&g&&(v=(v+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let k=this.width/2*s;i={left:y.left,right:y.right,top:v-k,bottom:v+k}}}}if(!i){let h=this.editorView.coordsAtPos(this.cursorPos),g=this.width/2*o;i={left:h.left-g,right:h.left+g,top:h.top,bottom:h.bottom}}let u=this.editorView.dom.offsetParent;this.element||(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let c,f;if(!u||u==document.body&&getComputedStyle(u).position=="static")c=-pageXOffset,f=-pageYOffset;else{let h=u.getBoundingClientRect(),g=h.width/u.offsetWidth,p=h.height/u.offsetHeight;c=h.left-u.scrollLeft*g,f=h.top-u.scrollTop*p}this.element.style.left=(i.left-c)/o+"px",this.element.style.top=(i.top-f)/s+"px",this.element.style.width=(i.right-i.left)/o+"px",this.element.style.height=(i.bottom-i.top)/s+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),i=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),r=i&&i.type.spec.disableDropCursor,a=typeof r=="function"?r(this.editorView,n,t):r;if(n&&!a){let o=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=c3(this.editorView.state.doc,o,this.editorView.dragging.slice);s!=null&&(o=s)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}class mt extends Pe{constructor(t){super(t,t)}map(t,n){let i=t.resolve(n.map(this.head));return mt.valid(i)?new mt(i):Pe.near(i)}content(){return le.empty}eq(t){return t instanceof mt&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new mt(t.resolve(n.pos))}getBookmark(){return new Eg(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!PEe(t)||!EEe(t))return!1;let i=n.type.spec.allowGapCursor;if(i!=null)return i;let r=n.contentMatchAt(t.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,n,i=!1){e:for(;;){if(!i&&mt.valid(t))return t;let r=t.pos,a=null;for(let o=t.depth;;o--){let s=t.node(o);if(n>0?t.indexAfter(o)<s.childCount:t.index(o)>0){a=s.child(n>0?t.indexAfter(o):t.index(o)-1);break}else if(o==0)return null;r+=n;let u=t.doc.resolve(r);if(mt.valid(u))return u}for(;;){let o=n>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!be.isSelectable(a)){t=t.doc.resolve(r+a.nodeSize*n),i=!1;continue e}break}a=o,r+=n;let s=t.doc.resolve(r);if(mt.valid(s))return s}return null}}}mt.prototype.visible=!1,mt.findFrom=mt.findGapCursorFrom,Pe.jsonID("gapcursor",mt);class Eg{constructor(t){this.pos=t}map(t){return new Eg(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return mt.valid(n)?new mt(n):Pe.near(n)}}function PEe(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),i=e.node(t);if(n==0){if(i.type.spec.isolating)return!0;continue}for(let r=i.child(n-1);;r=r.lastChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function EEe(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),i=e.node(t);if(n==i.childCount){if(i.type.spec.isolating)return!0;continue}for(let r=i.child(n);;r=r.firstChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function AEe(){return new ct({props:{decorations:IEe,createSelectionBetween(e,t,n){return t.pos==n.pos&&mt.valid(n)?new mt(n):null},handleClick:NEe,handleKeyDown:DEe,handleDOMEvents:{beforeinput:jEe}}})}const DEe=L6({ArrowLeft:mf("horiz",-1),ArrowRight:mf("horiz",1),ArrowUp:mf("vert",-1),ArrowDown:mf("vert",1)});function mf(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(i,r,a){let o=i.selection,s=t>0?o.$to:o.$from,u=o.empty;if(o instanceof Ce){if(!a.endOfTextblock(n)||s.depth==0)return!1;u=!1,s=i.doc.resolve(t>0?s.after():s.before())}let c=mt.findGapCursorFrom(s,t,u);return c?(r&&r(i.tr.setSelection(new mt(c))),!0):!1}}function NEe(e,t,n){if(!e||!e.editable)return!1;let i=e.state.doc.resolve(t);if(!mt.valid(i))return!1;let r=e.posAtCoords({left:n.clientX,top:n.clientY});return r&&r.inside>-1&&be.isSelectable(e.state.doc.nodeAt(r.inside))?!1:(e.dispatch(e.state.tr.setSelection(new mt(i))),!0)}function jEe(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof mt))return!1;let{$from:n}=e.state.selection,i=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!i)return!1;let r=te.empty;for(let o=i.length-1;o>=0;o--)r=te.from(i[o].createAndFill(null,r));let a=e.state.tr.replace(n.pos,n.pos,new le(r,0,0));return a.setSelection(Ce.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function IEe(e){if(!(e.selection instanceof mt))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",st.create(e.doc,[mn.widget(e.selection.head,t,{key:"gapcursor"})])}var pf=200,It=function(){};It.prototype.append=function(t){return t.length?(t=It.from(t),!this.length&&t||t.length<pf&&this.leafAppend(t)||this.length<pf&&t.leafPrepend(this)||this.appendInner(t)):this},It.prototype.prepend=function(t){return t.length?It.from(t).append(this):this},It.prototype.appendInner=function(t){return new WEe(this,t)},It.prototype.slice=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=this.length),t>=n?It.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))},It.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},It.prototype.forEach=function(t,n,i){n===void 0&&(n=0),i===void 0&&(i=this.length),n<=i?this.forEachInner(t,n,i,0):this.forEachInvertedInner(t,n,i,0)},It.prototype.map=function(t,n,i){n===void 0&&(n=0),i===void 0&&(i=this.length);var r=[];return this.forEach(function(a,o){return r.push(t(a,o))},n,i),r},It.from=function(t){return t instanceof It?t:t&&t.length?new a5(t):It.empty};var a5=function(e){function t(i){e.call(this),this.values=i}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(r,a){return r==0&&a==this.length?this:new t(this.values.slice(r,a))},t.prototype.getInner=function(r){return this.values[r]},t.prototype.forEachInner=function(r,a,o,s){for(var u=a;u<o;u++)if(r(this.values[u],s+u)===!1)return!1},t.prototype.forEachInvertedInner=function(r,a,o,s){for(var u=a-1;u>=o;u--)if(r(this.values[u],s+u)===!1)return!1},t.prototype.leafAppend=function(r){if(this.length+r.length<=pf)return new t(this.values.concat(r.flatten()))},t.prototype.leafPrepend=function(r){if(this.length+r.length<=pf)return new t(r.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(It);It.empty=new a5([]);var WEe=function(e){function t(n,i){e.call(this),this.left=n,this.right=i,this.length=n.length+i.length,this.depth=Math.max(n.depth,i.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(i){return i<this.left.length?this.left.get(i):this.right.get(i-this.left.length)},t.prototype.forEachInner=function(i,r,a,o){var s=this.left.length;if(r<s&&this.left.forEachInner(i,r,Math.min(a,s),o)===!1||a>s&&this.right.forEachInner(i,Math.max(r-s,0),Math.min(this.length,a)-s,o+s)===!1)return!1},t.prototype.forEachInvertedInner=function(i,r,a,o){var s=this.left.length;if(r>s&&this.right.forEachInvertedInner(i,r-s,Math.max(a,s)-s,o+s)===!1||a<s&&this.left.forEachInvertedInner(i,Math.min(r,s),a,o)===!1)return!1},t.prototype.sliceInner=function(i,r){if(i==0&&r==this.length)return this;var a=this.left.length;return r<=a?this.left.slice(i,r):i>=a?this.right.slice(i-a,r-a):this.left.slice(i,a).append(this.right.slice(0,r-a))},t.prototype.leafAppend=function(i){var r=this.right.leafAppend(i);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(i){var r=this.left.leafPrepend(i);if(r)return new t(r,this.right)},t.prototype.appendInner=function(i){return this.left.depth>=Math.max(this.right.depth,i.depth)+1?new t(this.left,new t(this.right,i)):new t(this,i)},t}(It);const OEe=500;class xi{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}let r,a;n&&(r=this.remapping(i,this.items.length),a=r.maps.length);let o=t.tr,s,u,c=[],f=[];return this.items.forEach((h,g)=>{if(!h.step){r||(r=this.remapping(i,g+1),a=r.maps.length),a--,f.push(h);return}if(r){f.push(new Yi(h.map));let p=h.step.map(r.slice(a)),y;p&&o.maybeStep(p).doc&&(y=o.mapping.maps[o.mapping.maps.length-1],c.push(new Yi(y,void 0,void 0,c.length+f.length))),a--,y&&r.appendMap(y,a)}else o.maybeStep(h.step);if(h.selection)return s=r?h.selection.map(r.slice(a)):h.selection,u=new xi(this.items.slice(0,i).append(f.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:u,transform:o,selection:s}}addTransform(t,n,i,r){let a=[],o=this.eventCount,s=this.items,u=!r&&s.length?s.get(s.length-1):null;for(let f=0;f<t.steps.length;f++){let h=t.steps[f].invert(t.docs[f]),g=new Yi(t.mapping.maps[f],h,n),p;(p=u&&u.merge(g))&&(g=p,f?a.pop():s=s.slice(0,s.length-1)),a.push(g),n&&(o++,n=void 0),r||(u=g)}let c=o-i.depth;return c>LEe&&(s=zEe(s,c),o-=c),new xi(s.append(a),o)}remapping(t,n){let i=new Pl;return this.items.forEach((r,a)=>{let o=r.mirrorOffset!=null&&a-r.mirrorOffset>=t?i.maps.length-r.mirrorOffset:void 0;i.appendMap(r.map,o)},t,n),i}addMaps(t){return this.eventCount==0?this:new xi(this.items.append(t.map(n=>new Yi(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let i=[],r=Math.max(0,this.items.length-n),a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(g=>{g.selection&&s--},r);let u=n;this.items.forEach(g=>{let p=a.getMirror(--u);if(p==null)return;o=Math.min(o,p);let y=a.maps[p];if(g.step){let v=t.steps[p].invert(t.docs[p]),k=g.selection&&g.selection.map(a.slice(u+1,p));k&&s++,i.push(new Yi(y,v,k))}else i.push(new Yi(y))},r);let c=[];for(let g=n;g<o;g++)c.push(new Yi(a.maps[g]));let f=this.items.slice(0,r).append(c).append(i),h=new xi(f,s);return h.emptyItemCount()>OEe&&(h=h.compress(this.items.length-i.length)),h}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),i=n.maps.length,r=[],a=0;return this.items.forEach((o,s)=>{if(s>=t)r.push(o),o.selection&&a++;else if(o.step){let u=o.step.map(n.slice(i)),c=u&&u.getMap();if(i--,c&&n.appendMap(c,i),u){let f=o.selection&&o.selection.map(n.slice(i));f&&a++;let h=new Yi(c.invert(),u,f),g,p=r.length-1;(g=r.length&&r[p].merge(h))?r[p]=g:r.push(h)}}else o.map&&i--},this.items.length,0),new xi(It.from(r.reverse()),a)}}xi.empty=new xi(It.empty,0);function zEe(e,t){let n;return e.forEach((i,r)=>{if(i.selection&&t--==0)return n=r,!1}),e.slice(n)}class Yi{constructor(t,n,i,r){this.map=t,this.step=n,this.selection=i,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Yi(n.getMap().invert(),n,this.selection)}}}class ra{constructor(t,n,i,r,a){this.done=t,this.undone=n,this.prevRanges=i,this.prevTime=r,this.prevComposition=a}}const LEe=20;function $Ee(e,t,n,i){let r=n.getMeta(oo),a;if(r)return r.historyState;n.getMeta(BEe)&&(e=new ra(e.done,e.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(o&&o.getMeta(oo))return o.getMeta(oo).redo?new ra(e.done.addTransform(n,void 0,i,gf(t)),e.undone,o5(n.mapping.maps),e.prevTime,e.prevComposition):new ra(e.done,e.undone.addTransform(n,void 0,i,gf(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),u=e.prevTime==0||!o&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-i.newGroupDelay||!HEe(n,e.prevRanges)),c=o?Ag(e.prevRanges,n.mapping):o5(n.mapping.maps);return new ra(e.done.addTransform(n,u?t.selection.getBookmark():void 0,i,gf(t)),xi.empty,c,n.time,s??e.prevComposition)}else return(a=n.getMeta("rebased"))?new ra(e.done.rebased(n,a),e.undone.rebased(n,a),Ag(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new ra(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),Ag(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function HEe(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((i,r)=>{for(let a=0;a<t.length;a+=2)i<=t[a+1]&&r>=t[a]&&(n=!0)}),n}function o5(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((i,r,a,o)=>t.push(a,o));return t}function Ag(e,t){if(!e)return null;let n=[];for(let i=0;i<e.length;i+=2){let r=t.map(e[i],1),a=t.map(e[i+1],-1);r<=a&&n.push(r,a)}return n}function REe(e,t,n){let i=gf(t),r=oo.get(t).spec.config,a=(n?e.undone:e.done).popEvent(t,i);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(n?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),r,i),u=new ra(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(oo,{redo:n,historyState:u})}let Dg=!1,s5=null;function gf(e){let t=e.plugins;if(s5!=t){Dg=!1,s5=t;for(let n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){Dg=!0;break}}return Dg}const oo=new jt("history"),BEe=new jt("closeHistory");function VEe(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new ct({key:oo,state:{init(){return new ra(xi.empty,xi.empty,null,0,-1)},apply(t,n,i){return $Ee(n,i,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(t,n){let i=n.inputType,r=i=="historyUndo"?u5:i=="historyRedo"?d5:null;return r?(n.preventDefault(),r(t.state,t.dispatch)):!1}}}})}function l5(e,t){return(n,i)=>{let r=oo.getState(n);if(!r||(e?r.undone:r.done).eventCount==0)return!1;if(i){let a=REe(r,n,e);a&&i(t?a.scrollIntoView():a)}return!0}}const u5=l5(!1,!0),d5=l5(!0,!0);Ct.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(t=>t!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=(e==null?void 0:e.node)||this.editor.state.doc;if(((e==null?void 0:e.mode)||this.options.mode)==="textSize"){const i=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(i)}return t.nodeSize},this.storage.words=e=>{const t=(e==null?void 0:e.node)||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new ct({key:new jt("characterCount"),appendTransaction:(t,n,i)=>{if(e)return;const r=this.options.limit;if(r==null||r===0){e=!0;return}const a=this.storage.characters({node:i.doc});if(a>r){const o=a-r,s=0,u=o;console.warn(`[CharacterCount] Initial content exceeded limit of ${r} characters. Content was automatically trimmed.`);const c=i.tr.deleteRange(s,u);return e=!0,c}e=!0},filterTransaction:(t,n)=>{const i=this.options.limit;if(!t.docChanged||i===0||i===null||i===void 0)return!0;const r=this.storage.characters({node:n.doc}),a=this.storage.characters({node:t.doc});if(a<=i||r>i&&a>i&&a<=r)return!0;if(r>i&&a>i&&a>r||!t.getMeta("paste"))return!1;const s=t.selection.$head.pos,u=a-i,c=s-u,f=s;return t.deleteRange(c,f),!(this.storage.characters({node:t.doc})>i)}})]}});var FEe=Ct.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[_Ee(this.options)]}});Ct.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new ct({key:new jt("focus"),props:{decorations:({doc:e,selection:t})=>{const{isEditable:n,isFocused:i}=this.editor,{anchor:r}=t,a=[];if(!n||!i)return st.create(e,[]);let o=0;this.options.mode==="deepest"&&e.descendants((u,c)=>{if(u.isText)return;if(!(r>=c&&r<=c+u.nodeSize-1))return!1;o+=1});let s=0;return e.descendants((u,c)=>{if(u.isText||!(r>=c&&r<=c+u.nodeSize-1))return!1;if(s+=1,this.options.mode==="deepest"&&o-s>0||this.options.mode==="shallowest"&&s>1)return this.options.mode==="deepest";a.push(mn.node(c,c+u.nodeSize,{class:this.options.className}))}),st.create(e,a)}}})]}});var UEe=Ct.create({name:"gapCursor",addProseMirrorPlugins(){return[AEe()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=Fe(ge(e,"allowGapCursor",n)))!=null?t:null}}}),YEe=Ct.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new ct({key:new jt("placeholder"),props:{decorations:({doc:e,selection:t})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=t,r=[];if(!n)return null;const a=this.editor.isEmpty;return e.descendants((o,s)=>{const u=i>=s&&i<=s+o.nodeSize,c=!o.isLeaf&&Pc(o);if((u||!this.options.showOnlyCurrent)&&c){const f=[this.options.emptyNodeClass];a&&f.push(this.options.emptyEditorClass);const h=mn.node(s,s+o.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:o,pos:s,hasAnchor:u}):this.options.placeholder});r.push(h)}return this.options.includeChildren}),st.create(e,r)}}})]}});Ct.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:e,options:t}=this;return[new ct({key:new jt("selection"),props:{decorations(n){return n.selection.empty||e.isFocused||!e.isEditable||uk(n.selection)||e.view.dragging?null:st.create(n.doc,[mn.inline(n.selection.from,n.selection.to,{class:t.className})])}}})]}});function c5({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(t==null?void 0:t.type)===e}var XEe=Ct.create({name:"trailingNode",addOptions(){return{node:"paragraph",notAfter:[]}},addProseMirrorPlugins(){const e=new jt(this.name),t=Object.entries(this.editor.schema.nodes).map(([,n])=>n).filter(n=>(this.options.notAfter||[]).concat(this.options.node).includes(n.name));return[new ct({key:e,appendTransaction:(n,i,r)=>{const{doc:a,tr:o,schema:s}=r,u=e.getState(r),c=a.content.size,f=s.nodes[this.options.node];if(u)return o.insert(c,f.create())},state:{init:(n,i)=>{const r=i.tr.doc.lastChild;return!c5({node:r,types:t})},apply:(n,i)=>{if(!n.docChanged)return i;const r=n.doc.lastChild;return!c5({node:r,types:t})}}})]}}),qEe=Ct.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>u5(e,t),redo:()=>({state:e,dispatch:t})=>d5(e,t)}},addProseMirrorPlugins(){return[VEe(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),GEe=Ct.create({name:"starterKit",addExtensions(){var e,t,n,i;const r=[];return this.options.bold!==!1&&r.push(xPe.configure(this.options.bold)),this.options.blockquote!==!1&&r.push(wPe.configure(this.options.blockquote)),this.options.bulletList!==!1&&r.push(qk.configure(this.options.bulletList)),this.options.code!==!1&&r.push(TPe.configure(this.options.code)),this.options.codeBlock!==!1&&r.push(APe.configure(this.options.codeBlock)),this.options.document!==!1&&r.push(DPe.configure(this.options.document)),this.options.dropcursor!==!1&&r.push(FEe.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&r.push(UEe.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&r.push(NPe.configure(this.options.hardBreak)),this.options.heading!==!1&&r.push(jPe.configure(this.options.heading)),this.options.undoRedo!==!1&&r.push(qEe.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&r.push(IPe.configure(this.options.horizontalRule)),this.options.italic!==!1&&r.push($Pe.configure(this.options.italic)),this.options.listItem!==!1&&r.push(Gk.configure(this.options.listItem)),this.options.listKeymap!==!1&&r.push(t5.configure((e=this.options)==null?void 0:e.listKeymap)),this.options.link!==!1&&r.push(Uk.configure((t=this.options)==null?void 0:t.link)),this.options.orderedList!==!1&&r.push(r5.configure(this.options.orderedList)),this.options.paragraph!==!1&&r.push(vEe.configure(this.options.paragraph)),this.options.strike!==!1&&r.push(CEe.configure(this.options.strike)),this.options.text!==!1&&r.push(xEe.configure(this.options.text)),this.options.underline!==!1&&r.push(SEe.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&r.push(XEe.configure((i=this.options)==null?void 0:i.trailingNode)),r}}),KEe=GEe,QEe=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,JEe=pn.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",ft(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[Tk({find:QEe,type:this.type,getAttributes:e=>{const[,,t,n,i]=e;return{src:n,alt:t,title:i}}})]}}),ZEe=JEe,eAe=YEe;const f5="https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64",h5={recent:"Recently used",smileys_people:"Smiles & People",animals_nature:"Animals & Nature",food_drink:"Food & Drink",activities:"Activities",travel_places:"Travel places",objects:"Objects",symbols:"Symbols",flags:"Flags"},m5="u",yf="n",bf="v",tu="r",tAe={[yf]:["grinning face","grinning"],[m5]:"1f600",[tu]:"1f600"},wf="neutral",nAe=[wf,"1f3fb","1f3fc","1f3fd","1f3fe","1f3ff"],iAe={placeholder:"Search emoji",skinTone:"Skin tone"},rAe=["light","dark","auto"];var aAe={smileys_people:[{n:["grinning face","grinning"],u:"1f600"},{n:["grinning face with smiling eyes","grin"],u:"1f601"},{n:["face with tears of joy","joy"],u:"1f602"},{n:["rolling on the floor laughing","rolling_on_the_floor_laughing"],u:"1f923"},{n:["smiling face with open mouth","smiley"],u:"1f603"},{n:["smiling face with open mouth and smiling eyes","smile"],u:"1f604"},{n:["smiling face with open mouth and cold sweat","sweat_smile"],u:"1f605"},{n:["smiling face with open mouth and tightly-closed eyes","laughing","satisfied"],u:"1f606"},{n:["winking face","wink"],u:"1f609"},{n:["smiling face with smiling eyes","blush"],u:"1f60a"},{n:["face savouring delicious food","yum"],u:"1f60b"},{n:["smiling face with sunglasses","sunglasses"],u:"1f60e"},{n:["smiling face with heart-shaped eyes","heart_eyes"],u:"1f60d"},{n:["face throwing a kiss","kissing_heart"],u:"1f618"},{n:["kissing face","kissing"],u:"1f617"},{n:["kissing face with smiling eyes","kissing_smiling_eyes"],u:"1f619"},{n:["kissing face with closed eyes","kissing_closed_eyes"],u:"1f61a"},{n:["white smiling face","relaxed"],u:"263a-fe0f"},{n:["slightly smiling face","slightly_smiling_face"],u:"1f642"},{n:["hugging face","hugging_face"],u:"1f917"},{n:["grinning face with star eyes","star-struck","grinning_face_with_star_eyes"],u:"1f929"},{n:["thinking face","thinking_face"],u:"1f914"},{n:["face with one eyebrow raised","face_with_raised_eyebrow","face_with_one_eyebrow_raised"],u:"1f928"},{n:["neutral face","neutral_face"],u:"1f610"},{n:["expressionless face","expressionless"],u:"1f611"},{n:["face without mouth","no_mouth"],u:"1f636"},{n:["face with rolling eyes","face_with_rolling_eyes"],u:"1f644"},{n:["smirking face","smirk"],u:"1f60f"},{n:["persevering face","persevere"],u:"1f623"},{n:["disappointed but relieved face","disappointed_relieved"],u:"1f625"},{n:["face with open mouth","open_mouth"],u:"1f62e"},{n:["zipper-mouth face","zipper_mouth_face"],u:"1f910"},{n:["hushed face","hushed"],u:"1f62f"},{n:["sleepy face","sleepy"],u:"1f62a"},{n:["tired face","tired_face"],u:"1f62b"},{n:["sleeping face","sleeping"],u:"1f634"},{n:["relieved face","relieved"],u:"1f60c"},{n:["face with stuck-out tongue","stuck_out_tongue"],u:"1f61b"},{n:["face with stuck-out tongue and winking eye","stuck_out_tongue_winking_eye"],u:"1f61c"},{n:["face with stuck-out tongue and tightly-closed eyes","stuck_out_tongue_closed_eyes"],u:"1f61d"},{n:["drooling face","drooling_face"],u:"1f924"},{n:["unamused face","unamused"],u:"1f612"},{n:["face with cold sweat","sweat"],u:"1f613"},{n:["pensive face","pensive"],u:"1f614"},{n:["confused face","confused"],u:"1f615"},{n:["upside-down face","upside_down_face"],u:"1f643"},{n:["money-mouth face","money_mouth_face"],u:"1f911"},{n:["astonished face","astonished"],u:"1f632"},{n:["white_frowning_face"],u:"2639-fe0f"},{n:["slightly frowning face","slightly_frowning_face"],u:"1f641"},{n:["confounded face","confounded"],u:"1f616"},{n:["disappointed face","disappointed"],u:"1f61e"},{n:["worried face","worried"],u:"1f61f"},{n:["face with look of triumph","triumph"],u:"1f624"},{n:["crying face","cry"],u:"1f622"},{n:["loudly crying face","sob"],u:"1f62d"},{n:["frowning face with open mouth","frowning"],u:"1f626"},{n:["anguished face","anguished"],u:"1f627"},{n:["fearful face","fearful"],u:"1f628"},{n:["weary face","weary"],u:"1f629"},{n:["shocked face with exploding head","exploding_head","shocked_face_with_exploding_head"],u:"1f92f"},{n:["grimacing face","grimacing"],u:"1f62c"},{n:["face with open mouth and cold sweat","cold_sweat"],u:"1f630"},{n:["face screaming in fear","scream"],u:"1f631"},{n:["flushed face","flushed"],u:"1f633"},{n:["grinning face with one large and one small eye","zany_face","grinning_face_with_one_large_and_one_small_eye"],u:"1f92a"},{n:["dizzy face","dizzy_face"],u:"1f635"},{n:["pouting face","rage"],u:"1f621"},{n:["angry face","angry"],u:"1f620"},{n:["serious face with symbols covering mouth","face_with_symbols_on_mouth","serious_face_with_symbols_covering_mouth"],u:"1f92c"},{n:["face with medical mask","mask"],u:"1f637"},{n:["face with thermometer","face_with_thermometer"],u:"1f912"},{n:["face with head-bandage","face_with_head_bandage"],u:"1f915"},{n:["nauseated face","nauseated_face"],u:"1f922"},{n:["face with open mouth vomiting","face_vomiting","face_with_open_mouth_vomiting"],u:"1f92e"},{n:["sneezing face","sneezing_face"],u:"1f927"},{n:["smiling face with halo","innocent"],u:"1f607"},{n:["face with cowboy hat","face_with_cowboy_hat"],u:"1f920"},{n:["clown face","clown_face"],u:"1f921"},{n:["lying face","lying_face"],u:"1f925"},{n:["face with finger covering closed lips","shushing_face","face_with_finger_covering_closed_lips"],u:"1f92b"},{n:["smiling face with smiling eyes and hand covering mouth","face_with_hand_over_mouth","smiling_face_with_smiling_eyes_and_hand_covering_mouth"],u:"1f92d"},{n:["face with monocle","face_with_monocle"],u:"1f9d0"},{n:["nerd face","nerd_face"],u:"1f913"},{n:["smiling face with horns","smiling_imp"],u:"1f608"},{n:["imp"],u:"1f47f"},{n:["japanese ogre","japanese_ogre"],u:"1f479"},{n:["japanese goblin","japanese_goblin"],u:"1f47a"},{n:["skull"],u:"1f480"},{n:["skull_and_crossbones"],u:"2620-fe0f"},{n:["ghost"],u:"1f47b"},{n:["extraterrestrial alien","alien"],u:"1f47d"},{n:["alien monster","space_invader"],u:"1f47e"},{n:["robot face","robot_face"],u:"1f916"},{n:["pile of poo","hankey","poop","shit"],u:"1f4a9"},{n:["smiling cat face with open mouth","smiley_cat"],u:"1f63a"},{n:["grinning cat face with smiling eyes","smile_cat"],u:"1f638"},{n:["cat face with tears of joy","joy_cat"],u:"1f639"},{n:["smiling cat face with heart-shaped eyes","heart_eyes_cat"],u:"1f63b"},{n:["cat face with wry smile","smirk_cat"],u:"1f63c"},{n:["kissing cat face with closed eyes","kissing_cat"],u:"1f63d"},{n:["weary cat face","scream_cat"],u:"1f640"},{n:["crying cat face","crying_cat_face"],u:"1f63f"},{n:["pouting cat face","pouting_cat"],u:"1f63e"},{n:["see-no-evil monkey","see_no_evil"],u:"1f648"},{n:["hear-no-evil monkey","hear_no_evil"],u:"1f649"},{n:["speak-no-evil monkey","speak_no_evil"],u:"1f64a"},{n:["baby"],u:"1f476",v:["1f476-1f3fb","1f476-1f3fc","1f476-1f3fd","1f476-1f3fe","1f476-1f3ff"]},{n:["child"],u:"1f9d2",v:["1f9d2-1f3fb","1f9d2-1f3fc","1f9d2-1f3fd","1f9d2-1f3fe","1f9d2-1f3ff"]},{n:["boy"],u:"1f466",v:["1f466-1f3fb","1f466-1f3fc","1f466-1f3fd","1f466-1f3fe","1f466-1f3ff"]},{n:["girl"],u:"1f467",v:["1f467-1f3fb","1f467-1f3fc","1f467-1f3fd","1f467-1f3fe","1f467-1f3ff"]},{n:["adult"],u:"1f9d1",v:["1f9d1-1f3fb","1f9d1-1f3fc","1f9d1-1f3fd","1f9d1-1f3fe","1f9d1-1f3ff"]},{n:["man"],u:"1f468",v:["1f468-1f3fb","1f468-1f3fc","1f468-1f3fd","1f468-1f3fe","1f468-1f3ff"]},{n:["woman"],u:"1f469",v:["1f469-1f3fb","1f469-1f3fc","1f469-1f3fd","1f469-1f3fe","1f469-1f3ff"]},{n:["older adult","older_adult"],u:"1f9d3",v:["1f9d3-1f3fb","1f9d3-1f3fc","1f9d3-1f3fd","1f9d3-1f3fe","1f9d3-1f3ff"]},{n:["older man","older_man"],u:"1f474",v:["1f474-1f3fb","1f474-1f3fc","1f474-1f3fd","1f474-1f3fe","1f474-1f3ff"]},{n:["older woman","older_woman"],u:"1f475",v:["1f475-1f3fb","1f475-1f3fc","1f475-1f3fd","1f475-1f3fe","1f475-1f3ff"]},{n:["male-doctor"],u:"1f468-200d-2695-fe0f",v:["1f468-1f3fb-200d-2695-fe0f","1f468-1f3fc-200d-2695-fe0f","1f468-1f3fd-200d-2695-fe0f","1f468-1f3fe-200d-2695-fe0f","1f468-1f3ff-200d-2695-fe0f"]},{n:["female-doctor"],u:"1f469-200d-2695-fe0f",v:["1f469-1f3fb-200d-2695-fe0f","1f469-1f3fc-200d-2695-fe0f","1f469-1f3fd-200d-2695-fe0f","1f469-1f3fe-200d-2695-fe0f","1f469-1f3ff-200d-2695-fe0f"]},{n:["male-student"],u:"1f468-200d-1f393",v:["1f468-1f3fb-200d-1f393","1f468-1f3fc-200d-1f393","1f468-1f3fd-200d-1f393","1f468-1f3fe-200d-1f393","1f468-1f3ff-200d-1f393"]},{n:["female-student"],u:"1f469-200d-1f393",v:["1f469-1f3fb-200d-1f393","1f469-1f3fc-200d-1f393","1f469-1f3fd-200d-1f393","1f469-1f3fe-200d-1f393","1f469-1f3ff-200d-1f393"]},{n:["male-teacher"],u:"1f468-200d-1f3eb",v:["1f468-1f3fb-200d-1f3eb","1f468-1f3fc-200d-1f3eb","1f468-1f3fd-200d-1f3eb","1f468-1f3fe-200d-1f3eb","1f468-1f3ff-200d-1f3eb"]},{n:["female-teacher"],u:"1f469-200d-1f3eb",v:["1f469-1f3fb-200d-1f3eb","1f469-1f3fc-200d-1f3eb","1f469-1f3fd-200d-1f3eb","1f469-1f3fe-200d-1f3eb","1f469-1f3ff-200d-1f3eb"]},{n:["male-judge"],u:"1f468-200d-2696-fe0f",v:["1f468-1f3fb-200d-2696-fe0f","1f468-1f3fc-200d-2696-fe0f","1f468-1f3fd-200d-2696-fe0f","1f468-1f3fe-200d-2696-fe0f","1f468-1f3ff-200d-2696-fe0f"]},{n:["female-judge"],u:"1f469-200d-2696-fe0f",v:["1f469-1f3fb-200d-2696-fe0f","1f469-1f3fc-200d-2696-fe0f","1f469-1f3fd-200d-2696-fe0f","1f469-1f3fe-200d-2696-fe0f","1f469-1f3ff-200d-2696-fe0f"]},{n:["male-farmer"],u:"1f468-200d-1f33e",v:["1f468-1f3fb-200d-1f33e","1f468-1f3fc-200d-1f33e","1f468-1f3fd-200d-1f33e","1f468-1f3fe-200d-1f33e","1f468-1f3ff-200d-1f33e"]},{n:["female-farmer"],u:"1f469-200d-1f33e",v:["1f469-1f3fb-200d-1f33e","1f469-1f3fc-200d-1f33e","1f469-1f3fd-200d-1f33e","1f469-1f3fe-200d-1f33e","1f469-1f3ff-200d-1f33e"]},{n:["male-cook"],u:"1f468-200d-1f373",v:["1f468-1f3fb-200d-1f373","1f468-1f3fc-200d-1f373","1f468-1f3fd-200d-1f373","1f468-1f3fe-200d-1f373","1f468-1f3ff-200d-1f373"]},{n:["female-cook"],u:"1f469-200d-1f373",v:["1f469-1f3fb-200d-1f373","1f469-1f3fc-200d-1f373","1f469-1f3fd-200d-1f373","1f469-1f3fe-200d-1f373","1f469-1f3ff-200d-1f373"]},{n:["male-mechanic"],u:"1f468-200d-1f527",v:["1f468-1f3fb-200d-1f527","1f468-1f3fc-200d-1f527","1f468-1f3fd-200d-1f527","1f468-1f3fe-200d-1f527","1f468-1f3ff-200d-1f527"]},{n:["female-mechanic"],u:"1f469-200d-1f527",v:["1f469-1f3fb-200d-1f527","1f469-1f3fc-200d-1f527","1f469-1f3fd-200d-1f527","1f469-1f3fe-200d-1f527","1f469-1f3ff-200d-1f527"]},{n:["male-factory-worker"],u:"1f468-200d-1f3ed",v:["1f468-1f3fb-200d-1f3ed","1f468-1f3fc-200d-1f3ed","1f468-1f3fd-200d-1f3ed","1f468-1f3fe-200d-1f3ed","1f468-1f3ff-200d-1f3ed"]},{n:["female-factory-worker"],u:"1f469-200d-1f3ed",v:["1f469-1f3fb-200d-1f3ed","1f469-1f3fc-200d-1f3ed","1f469-1f3fd-200d-1f3ed","1f469-1f3fe-200d-1f3ed","1f469-1f3ff-200d-1f3ed"]},{n:["male-office-worker"],u:"1f468-200d-1f4bc",v:["1f468-1f3fb-200d-1f4bc","1f468-1f3fc-200d-1f4bc","1f468-1f3fd-200d-1f4bc","1f468-1f3fe-200d-1f4bc","1f468-1f3ff-200d-1f4bc"]},{n:["female-office-worker"],u:"1f469-200d-1f4bc",v:["1f469-1f3fb-200d-1f4bc","1f469-1f3fc-200d-1f4bc","1f469-1f3fd-200d-1f4bc","1f469-1f3fe-200d-1f4bc","1f469-1f3ff-200d-1f4bc"]},{n:["male-scientist"],u:"1f468-200d-1f52c",v:["1f468-1f3fb-200d-1f52c","1f468-1f3fc-200d-1f52c","1f468-1f3fd-200d-1f52c","1f468-1f3fe-200d-1f52c","1f468-1f3ff-200d-1f52c"]},{n:["female-scientist"],u:"1f469-200d-1f52c",v:["1f469-1f3fb-200d-1f52c","1f469-1f3fc-200d-1f52c","1f469-1f3fd-200d-1f52c","1f469-1f3fe-200d-1f52c","1f469-1f3ff-200d-1f52c"]},{n:["male-technologist"],u:"1f468-200d-1f4bb",v:["1f468-1f3fb-200d-1f4bb","1f468-1f3fc-200d-1f4bb","1f468-1f3fd-200d-1f4bb","1f468-1f3fe-200d-1f4bb","1f468-1f3ff-200d-1f4bb"]},{n:["female-technologist"],u:"1f469-200d-1f4bb",v:["1f469-1f3fb-200d-1f4bb","1f469-1f3fc-200d-1f4bb","1f469-1f3fd-200d-1f4bb","1f469-1f3fe-200d-1f4bb","1f469-1f3ff-200d-1f4bb"]},{n:["male-singer"],u:"1f468-200d-1f3a4",v:["1f468-1f3fb-200d-1f3a4","1f468-1f3fc-200d-1f3a4","1f468-1f3fd-200d-1f3a4","1f468-1f3fe-200d-1f3a4","1f468-1f3ff-200d-1f3a4"]},{n:["female-singer"],u:"1f469-200d-1f3a4",v:["1f469-1f3fb-200d-1f3a4","1f469-1f3fc-200d-1f3a4","1f469-1f3fd-200d-1f3a4","1f469-1f3fe-200d-1f3a4","1f469-1f3ff-200d-1f3a4"]},{n:["male-artist"],u:"1f468-200d-1f3a8",v:["1f468-1f3fb-200d-1f3a8","1f468-1f3fc-200d-1f3a8","1f468-1f3fd-200d-1f3a8","1f468-1f3fe-200d-1f3a8","1f468-1f3ff-200d-1f3a8"]},{n:["female-artist"],u:"1f469-200d-1f3a8",v:["1f469-1f3fb-200d-1f3a8","1f469-1f3fc-200d-1f3a8","1f469-1f3fd-200d-1f3a8","1f469-1f3fe-200d-1f3a8","1f469-1f3ff-200d-1f3a8"]},{n:["male-pilot"],u:"1f468-200d-2708-fe0f",v:["1f468-1f3fb-200d-2708-fe0f","1f468-1f3fc-200d-2708-fe0f","1f468-1f3fd-200d-2708-fe0f","1f468-1f3fe-200d-2708-fe0f","1f468-1f3ff-200d-2708-fe0f"]},{n:["female-pilot"],u:"1f469-200d-2708-fe0f",v:["1f469-1f3fb-200d-2708-fe0f","1f469-1f3fc-200d-2708-fe0f","1f469-1f3fd-200d-2708-fe0f","1f469-1f3fe-200d-2708-fe0f","1f469-1f3ff-200d-2708-fe0f"]},{n:["male-astronaut"],u:"1f468-200d-1f680",v:["1f468-1f3fb-200d-1f680","1f468-1f3fc-200d-1f680","1f468-1f3fd-200d-1f680","1f468-1f3fe-200d-1f680","1f468-1f3ff-200d-1f680"]},{n:["female-astronaut"],u:"1f469-200d-1f680",v:["1f469-1f3fb-200d-1f680","1f469-1f3fc-200d-1f680","1f469-1f3fd-200d-1f680","1f469-1f3fe-200d-1f680","1f469-1f3ff-200d-1f680"]},{n:["male-firefighter"],u:"1f468-200d-1f692",v:["1f468-1f3fb-200d-1f692","1f468-1f3fc-200d-1f692","1f468-1f3fd-200d-1f692","1f468-1f3fe-200d-1f692","1f468-1f3ff-200d-1f692"]},{n:["female-firefighter"],u:"1f469-200d-1f692",v:["1f469-1f3fb-200d-1f692","1f469-1f3fc-200d-1f692","1f469-1f3fd-200d-1f692","1f469-1f3fe-200d-1f692","1f469-1f3ff-200d-1f692"]},{n:["police officer","cop"],u:"1f46e",v:["1f46e-1f3fb","1f46e-1f3fc","1f46e-1f3fd","1f46e-1f3fe","1f46e-1f3ff"]},{n:["male-police-officer"],u:"1f46e-200d-2642-fe0f",v:["1f46e-1f3fb-200d-2642-fe0f","1f46e-1f3fc-200d-2642-fe0f","1f46e-1f3fd-200d-2642-fe0f","1f46e-1f3fe-200d-2642-fe0f","1f46e-1f3ff-200d-2642-fe0f"]},{n:["female-police-officer"],u:"1f46e-200d-2640-fe0f",v:["1f46e-1f3fb-200d-2640-fe0f","1f46e-1f3fc-200d-2640-fe0f","1f46e-1f3fd-200d-2640-fe0f","1f46e-1f3fe-200d-2640-fe0f","1f46e-1f3ff-200d-2640-fe0f"]},{n:["sleuth_or_spy"],u:"1f575-fe0f",v:["1f575-1f3fb","1f575-1f3fc","1f575-1f3fd","1f575-1f3fe","1f575-1f3ff"]},{n:["male-detective"],u:"1f575-fe0f-200d-2642-fe0f",v:["1f575-1f3fb-200d-2642-fe0f","1f575-1f3fc-200d-2642-fe0f","1f575-1f3fd-200d-2642-fe0f","1f575-1f3fe-200d-2642-fe0f","1f575-1f3ff-200d-2642-fe0f"]},{n:["female-detective"],u:"1f575-fe0f-200d-2640-fe0f",v:["1f575-1f3fb-200d-2640-fe0f","1f575-1f3fc-200d-2640-fe0f","1f575-1f3fd-200d-2640-fe0f","1f575-1f3fe-200d-2640-fe0f","1f575-1f3ff-200d-2640-fe0f"]},{n:["guardsman"],u:"1f482",v:["1f482-1f3fb","1f482-1f3fc","1f482-1f3fd","1f482-1f3fe","1f482-1f3ff"]},{n:["male-guard"],u:"1f482-200d-2642-fe0f",v:["1f482-1f3fb-200d-2642-fe0f","1f482-1f3fc-200d-2642-fe0f","1f482-1f3fd-200d-2642-fe0f","1f482-1f3fe-200d-2642-fe0f","1f482-1f3ff-200d-2642-fe0f"]},{n:["female-guard"],u:"1f482-200d-2640-fe0f",v:["1f482-1f3fb-200d-2640-fe0f","1f482-1f3fc-200d-2640-fe0f","1f482-1f3fd-200d-2640-fe0f","1f482-1f3fe-200d-2640-fe0f","1f482-1f3ff-200d-2640-fe0f"]},{n:["construction worker","construction_worker"],u:"1f477",v:["1f477-1f3fb","1f477-1f3fc","1f477-1f3fd","1f477-1f3fe","1f477-1f3ff"]},{n:["male-construction-worker"],u:"1f477-200d-2642-fe0f",v:["1f477-1f3fb-200d-2642-fe0f","1f477-1f3fc-200d-2642-fe0f","1f477-1f3fd-200d-2642-fe0f","1f477-1f3fe-200d-2642-fe0f","1f477-1f3ff-200d-2642-fe0f"]},{n:["female-construction-worker"],u:"1f477-200d-2640-fe0f",v:["1f477-1f3fb-200d-2640-fe0f","1f477-1f3fc-200d-2640-fe0f","1f477-1f3fd-200d-2640-fe0f","1f477-1f3fe-200d-2640-fe0f","1f477-1f3ff-200d-2640-fe0f"]},{n:["prince"],u:"1f934",v:["1f934-1f3fb","1f934-1f3fc","1f934-1f3fd","1f934-1f3fe","1f934-1f3ff"]},{n:["princess"],u:"1f478",v:["1f478-1f3fb","1f478-1f3fc","1f478-1f3fd","1f478-1f3fe","1f478-1f3ff"]},{n:["man with turban","man_with_turban"],u:"1f473",v:["1f473-1f3fb","1f473-1f3fc","1f473-1f3fd","1f473-1f3fe","1f473-1f3ff"]},{n:["man-wearing-turban"],u:"1f473-200d-2642-fe0f",v:["1f473-1f3fb-200d-2642-fe0f","1f473-1f3fc-200d-2642-fe0f","1f473-1f3fd-200d-2642-fe0f","1f473-1f3fe-200d-2642-fe0f","1f473-1f3ff-200d-2642-fe0f"]},{n:["woman-wearing-turban"],u:"1f473-200d-2640-fe0f",v:["1f473-1f3fb-200d-2640-fe0f","1f473-1f3fc-200d-2640-fe0f","1f473-1f3fd-200d-2640-fe0f","1f473-1f3fe-200d-2640-fe0f","1f473-1f3ff-200d-2640-fe0f"]},{n:["man with gua pi mao","man_with_gua_pi_mao"],u:"1f472",v:["1f472-1f3fb","1f472-1f3fc","1f472-1f3fd","1f472-1f3fe","1f472-1f3ff"]},{n:["person with headscarf","person_with_headscarf"],u:"1f9d5",v:["1f9d5-1f3fb","1f9d5-1f3fc","1f9d5-1f3fd","1f9d5-1f3fe","1f9d5-1f3ff"]},{n:["bearded person","bearded_person"],u:"1f9d4",v:["1f9d4-1f3fb","1f9d4-1f3fc","1f9d4-1f3fd","1f9d4-1f3fe","1f9d4-1f3ff"]},{n:["person with blond hair","person_with_blond_hair"],u:"1f471",v:["1f471-1f3fb","1f471-1f3fc","1f471-1f3fd","1f471-1f3fe","1f471-1f3ff"]},{n:["blond-haired-man"],u:"1f471-200d-2642-fe0f",v:["1f471-1f3fb-200d-2642-fe0f","1f471-1f3fc-200d-2642-fe0f","1f471-1f3fd-200d-2642-fe0f","1f471-1f3fe-200d-2642-fe0f","1f471-1f3ff-200d-2642-fe0f"]},{n:["blond-haired-woman"],u:"1f471-200d-2640-fe0f",v:["1f471-1f3fb-200d-2640-fe0f","1f471-1f3fc-200d-2640-fe0f","1f471-1f3fd-200d-2640-fe0f","1f471-1f3fe-200d-2640-fe0f","1f471-1f3ff-200d-2640-fe0f"]},{n:["man in tuxedo","man_in_tuxedo"],u:"1f935",v:["1f935-1f3fb","1f935-1f3fc","1f935-1f3fd","1f935-1f3fe","1f935-1f3ff"]},{n:["bride with veil","bride_with_veil"],u:"1f470",v:["1f470-1f3fb","1f470-1f3fc","1f470-1f3fd","1f470-1f3fe","1f470-1f3ff"]},{n:["pregnant woman","pregnant_woman"],u:"1f930",v:["1f930-1f3fb","1f930-1f3fc","1f930-1f3fd","1f930-1f3fe","1f930-1f3ff"]},{n:["breast-feeding"],u:"1f931",v:["1f931-1f3fb","1f931-1f3fc","1f931-1f3fd","1f931-1f3fe","1f931-1f3ff"]},{n:["baby angel","angel"],u:"1f47c",v:["1f47c-1f3fb","1f47c-1f3fc","1f47c-1f3fd","1f47c-1f3fe","1f47c-1f3ff"]},{n:["father christmas","santa"],u:"1f385",v:["1f385-1f3fb","1f385-1f3fc","1f385-1f3fd","1f385-1f3fe","1f385-1f3ff"]},{n:["mother christmas","mrs_claus","mother_christmas"],u:"1f936",v:["1f936-1f3fb","1f936-1f3fc","1f936-1f3fd","1f936-1f3fe","1f936-1f3ff"]},{n:["mage"],u:"1f9d9",v:["1f9d9-1f3fb","1f9d9-1f3fc","1f9d9-1f3fd","1f9d9-1f3fe","1f9d9-1f3ff"]},{n:["female_mage"],u:"1f9d9-200d-2640-fe0f",v:["1f9d9-1f3fb-200d-2640-fe0f","1f9d9-1f3fc-200d-2640-fe0f","1f9d9-1f3fd-200d-2640-fe0f","1f9d9-1f3fe-200d-2640-fe0f","1f9d9-1f3ff-200d-2640-fe0f"]},{n:["male_mage"],u:"1f9d9-200d-2642-fe0f",v:["1f9d9-1f3fb-200d-2642-fe0f","1f9d9-1f3fc-200d-2642-fe0f","1f9d9-1f3fd-200d-2642-fe0f","1f9d9-1f3fe-200d-2642-fe0f","1f9d9-1f3ff-200d-2642-fe0f"]},{n:["fairy"],u:"1f9da",v:["1f9da-1f3fb","1f9da-1f3fc","1f9da-1f3fd","1f9da-1f3fe","1f9da-1f3ff"]},{n:["female_fairy"],u:"1f9da-200d-2640-fe0f",v:["1f9da-1f3fb-200d-2640-fe0f","1f9da-1f3fc-200d-2640-fe0f","1f9da-1f3fd-200d-2640-fe0f","1f9da-1f3fe-200d-2640-fe0f","1f9da-1f3ff-200d-2640-fe0f"]},{n:["male_fairy"],u:"1f9da-200d-2642-fe0f",v:["1f9da-1f3fb-200d-2642-fe0f","1f9da-1f3fc-200d-2642-fe0f","1f9da-1f3fd-200d-2642-fe0f","1f9da-1f3fe-200d-2642-fe0f","1f9da-1f3ff-200d-2642-fe0f"]},{n:["vampire"],u:"1f9db",v:["1f9db-1f3fb","1f9db-1f3fc","1f9db-1f3fd","1f9db-1f3fe","1f9db-1f3ff"]},{n:["female_vampire"],u:"1f9db-200d-2640-fe0f",v:["1f9db-1f3fb-200d-2640-fe0f","1f9db-1f3fc-200d-2640-fe0f","1f9db-1f3fd-200d-2640-fe0f","1f9db-1f3fe-200d-2640-fe0f","1f9db-1f3ff-200d-2640-fe0f"]},{n:["male_vampire"],u:"1f9db-200d-2642-fe0f",v:["1f9db-1f3fb-200d-2642-fe0f","1f9db-1f3fc-200d-2642-fe0f","1f9db-1f3fd-200d-2642-fe0f","1f9db-1f3fe-200d-2642-fe0f","1f9db-1f3ff-200d-2642-fe0f"]},{n:["merperson"],u:"1f9dc",v:["1f9dc-1f3fb","1f9dc-1f3fc","1f9dc-1f3fd","1f9dc-1f3fe","1f9dc-1f3ff"]},{n:["mermaid"],u:"1f9dc-200d-2640-fe0f",v:["1f9dc-1f3fb-200d-2640-fe0f","1f9dc-1f3fc-200d-2640-fe0f","1f9dc-1f3fd-200d-2640-fe0f","1f9dc-1f3fe-200d-2640-fe0f","1f9dc-1f3ff-200d-2640-fe0f"]},{n:["merman"],u:"1f9dc-200d-2642-fe0f",v:["1f9dc-1f3fb-200d-2642-fe0f","1f9dc-1f3fc-200d-2642-fe0f","1f9dc-1f3fd-200d-2642-fe0f","1f9dc-1f3fe-200d-2642-fe0f","1f9dc-1f3ff-200d-2642-fe0f"]},{n:["elf"],u:"1f9dd",v:["1f9dd-1f3fb","1f9dd-1f3fc","1f9dd-1f3fd","1f9dd-1f3fe","1f9dd-1f3ff"]},{n:["female_elf"],u:"1f9dd-200d-2640-fe0f",v:["1f9dd-1f3fb-200d-2640-fe0f","1f9dd-1f3fc-200d-2640-fe0f","1f9dd-1f3fd-200d-2640-fe0f","1f9dd-1f3fe-200d-2640-fe0f","1f9dd-1f3ff-200d-2640-fe0f"]},{n:["male_elf"],u:"1f9dd-200d-2642-fe0f",v:["1f9dd-1f3fb-200d-2642-fe0f","1f9dd-1f3fc-200d-2642-fe0f","1f9dd-1f3fd-200d-2642-fe0f","1f9dd-1f3fe-200d-2642-fe0f","1f9dd-1f3ff-200d-2642-fe0f"]},{n:["genie"],u:"1f9de"},{n:["female_genie"],u:"1f9de-200d-2640-fe0f"},{n:["male_genie"],u:"1f9de-200d-2642-fe0f"},{n:["zombie"],u:"1f9df"},{n:["female_zombie"],u:"1f9df-200d-2640-fe0f"},{n:["male_zombie"],u:"1f9df-200d-2642-fe0f"},{n:["person frowning","person_frowning"],u:"1f64d",v:["1f64d-1f3fb","1f64d-1f3fc","1f64d-1f3fd","1f64d-1f3fe","1f64d-1f3ff"]},{n:["man-frowning"],u:"1f64d-200d-2642-fe0f",v:["1f64d-1f3fb-200d-2642-fe0f","1f64d-1f3fc-200d-2642-fe0f","1f64d-1f3fd-200d-2642-fe0f","1f64d-1f3fe-200d-2642-fe0f","1f64d-1f3ff-200d-2642-fe0f"]},{n:["woman-frowning"],u:"1f64d-200d-2640-fe0f",v:["1f64d-1f3fb-200d-2640-fe0f","1f64d-1f3fc-200d-2640-fe0f","1f64d-1f3fd-200d-2640-fe0f","1f64d-1f3fe-200d-2640-fe0f","1f64d-1f3ff-200d-2640-fe0f"]},{n:["person with pouting face","person_with_pouting_face"],u:"1f64e",v:["1f64e-1f3fb","1f64e-1f3fc","1f64e-1f3fd","1f64e-1f3fe","1f64e-1f3ff"]},{n:["man-pouting"],u:"1f64e-200d-2642-fe0f",v:["1f64e-1f3fb-200d-2642-fe0f","1f64e-1f3fc-200d-2642-fe0f","1f64e-1f3fd-200d-2642-fe0f","1f64e-1f3fe-200d-2642-fe0f","1f64e-1f3ff-200d-2642-fe0f"]},{n:["woman-pouting"],u:"1f64e-200d-2640-fe0f",v:["1f64e-1f3fb-200d-2640-fe0f","1f64e-1f3fc-200d-2640-fe0f","1f64e-1f3fd-200d-2640-fe0f","1f64e-1f3fe-200d-2640-fe0f","1f64e-1f3ff-200d-2640-fe0f"]},{n:["face with no good gesture","no_good"],u:"1f645",v:["1f645-1f3fb","1f645-1f3fc","1f645-1f3fd","1f645-1f3fe","1f645-1f3ff"]},{n:["man-gesturing-no"],u:"1f645-200d-2642-fe0f",v:["1f645-1f3fb-200d-2642-fe0f","1f645-1f3fc-200d-2642-fe0f","1f645-1f3fd-200d-2642-fe0f","1f645-1f3fe-200d-2642-fe0f","1f645-1f3ff-200d-2642-fe0f"]},{n:["woman-gesturing-no"],u:"1f645-200d-2640-fe0f",v:["1f645-1f3fb-200d-2640-fe0f","1f645-1f3fc-200d-2640-fe0f","1f645-1f3fd-200d-2640-fe0f","1f645-1f3fe-200d-2640-fe0f","1f645-1f3ff-200d-2640-fe0f"]},{n:["face with ok gesture","ok_woman"],u:"1f646",v:["1f646-1f3fb","1f646-1f3fc","1f646-1f3fd","1f646-1f3fe","1f646-1f3ff"]},{n:["man-gesturing-ok"],u:"1f646-200d-2642-fe0f",v:["1f646-1f3fb-200d-2642-fe0f","1f646-1f3fc-200d-2642-fe0f","1f646-1f3fd-200d-2642-fe0f","1f646-1f3fe-200d-2642-fe0f","1f646-1f3ff-200d-2642-fe0f"]},{n:["woman-gesturing-ok"],u:"1f646-200d-2640-fe0f",v:["1f646-1f3fb-200d-2640-fe0f","1f646-1f3fc-200d-2640-fe0f","1f646-1f3fd-200d-2640-fe0f","1f646-1f3fe-200d-2640-fe0f","1f646-1f3ff-200d-2640-fe0f"]},{n:["information desk person","information_desk_person"],u:"1f481",v:["1f481-1f3fb","1f481-1f3fc","1f481-1f3fd","1f481-1f3fe","1f481-1f3ff"]},{n:["man-tipping-hand"],u:"1f481-200d-2642-fe0f",v:["1f481-1f3fb-200d-2642-fe0f","1f481-1f3fc-200d-2642-fe0f","1f481-1f3fd-200d-2642-fe0f","1f481-1f3fe-200d-2642-fe0f","1f481-1f3ff-200d-2642-fe0f"]},{n:["woman-tipping-hand"],u:"1f481-200d-2640-fe0f",v:["1f481-1f3fb-200d-2640-fe0f","1f481-1f3fc-200d-2640-fe0f","1f481-1f3fd-200d-2640-fe0f","1f481-1f3fe-200d-2640-fe0f","1f481-1f3ff-200d-2640-fe0f"]},{n:["happy person raising one hand","raising_hand"],u:"1f64b",v:["1f64b-1f3fb","1f64b-1f3fc","1f64b-1f3fd","1f64b-1f3fe","1f64b-1f3ff"]},{n:["man-raising-hand"],u:"1f64b-200d-2642-fe0f",v:["1f64b-1f3fb-200d-2642-fe0f","1f64b-1f3fc-200d-2642-fe0f","1f64b-1f3fd-200d-2642-fe0f","1f64b-1f3fe-200d-2642-fe0f","1f64b-1f3ff-200d-2642-fe0f"]},{n:["woman-raising-hand"],u:"1f64b-200d-2640-fe0f",v:["1f64b-1f3fb-200d-2640-fe0f","1f64b-1f3fc-200d-2640-fe0f","1f64b-1f3fd-200d-2640-fe0f","1f64b-1f3fe-200d-2640-fe0f","1f64b-1f3ff-200d-2640-fe0f"]},{n:["person bowing deeply","bow"],u:"1f647",v:["1f647-1f3fb","1f647-1f3fc","1f647-1f3fd","1f647-1f3fe","1f647-1f3ff"]},{n:["man-bowing"],u:"1f647-200d-2642-fe0f",v:["1f647-1f3fb-200d-2642-fe0f","1f647-1f3fc-200d-2642-fe0f","1f647-1f3fd-200d-2642-fe0f","1f647-1f3fe-200d-2642-fe0f","1f647-1f3ff-200d-2642-fe0f"]},{n:["woman-bowing"],u:"1f647-200d-2640-fe0f",v:["1f647-1f3fb-200d-2640-fe0f","1f647-1f3fc-200d-2640-fe0f","1f647-1f3fd-200d-2640-fe0f","1f647-1f3fe-200d-2640-fe0f","1f647-1f3ff-200d-2640-fe0f"]},{n:["face palm","face_palm"],u:"1f926",v:["1f926-1f3fb","1f926-1f3fc","1f926-1f3fd","1f926-1f3fe","1f926-1f3ff"]},{n:["man-facepalming"],u:"1f926-200d-2642-fe0f",v:["1f926-1f3fb-200d-2642-fe0f","1f926-1f3fc-200d-2642-fe0f","1f926-1f3fd-200d-2642-fe0f","1f926-1f3fe-200d-2642-fe0f","1f926-1f3ff-200d-2642-fe0f"]},{n:["woman-facepalming"],u:"1f926-200d-2640-fe0f",v:["1f926-1f3fb-200d-2640-fe0f","1f926-1f3fc-200d-2640-fe0f","1f926-1f3fd-200d-2640-fe0f","1f926-1f3fe-200d-2640-fe0f","1f926-1f3ff-200d-2640-fe0f"]},{n:["shrug"],u:"1f937",v:["1f937-1f3fb","1f937-1f3fc","1f937-1f3fd","1f937-1f3fe","1f937-1f3ff"]},{n:["man-shrugging"],u:"1f937-200d-2642-fe0f",v:["1f937-1f3fb-200d-2642-fe0f","1f937-1f3fc-200d-2642-fe0f","1f937-1f3fd-200d-2642-fe0f","1f937-1f3fe-200d-2642-fe0f","1f937-1f3ff-200d-2642-fe0f"]},{n:["woman-shrugging"],u:"1f937-200d-2640-fe0f",v:["1f937-1f3fb-200d-2640-fe0f","1f937-1f3fc-200d-2640-fe0f","1f937-1f3fd-200d-2640-fe0f","1f937-1f3fe-200d-2640-fe0f","1f937-1f3ff-200d-2640-fe0f"]},{n:["face massage","massage"],u:"1f486",v:["1f486-1f3fb","1f486-1f3fc","1f486-1f3fd","1f486-1f3fe","1f486-1f3ff"]},{n:["man-getting-massage"],u:"1f486-200d-2642-fe0f",v:["1f486-1f3fb-200d-2642-fe0f","1f486-1f3fc-200d-2642-fe0f","1f486-1f3fd-200d-2642-fe0f","1f486-1f3fe-200d-2642-fe0f","1f486-1f3ff-200d-2642-fe0f"]},{n:["woman-getting-massage"],u:"1f486-200d-2640-fe0f",v:["1f486-1f3fb-200d-2640-fe0f","1f486-1f3fc-200d-2640-fe0f","1f486-1f3fd-200d-2640-fe0f","1f486-1f3fe-200d-2640-fe0f","1f486-1f3ff-200d-2640-fe0f"]},{n:["haircut"],u:"1f487",v:["1f487-1f3fb","1f487-1f3fc","1f487-1f3fd","1f487-1f3fe","1f487-1f3ff"]},{n:["man-getting-haircut"],u:"1f487-200d-2642-fe0f",v:["1f487-1f3fb-200d-2642-fe0f","1f487-1f3fc-200d-2642-fe0f","1f487-1f3fd-200d-2642-fe0f","1f487-1f3fe-200d-2642-fe0f","1f487-1f3ff-200d-2642-fe0f"]},{n:["woman-getting-haircut"],u:"1f487-200d-2640-fe0f",v:["1f487-1f3fb-200d-2640-fe0f","1f487-1f3fc-200d-2640-fe0f","1f487-1f3fd-200d-2640-fe0f","1f487-1f3fe-200d-2640-fe0f","1f487-1f3ff-200d-2640-fe0f"]},{n:["pedestrian","walking"],u:"1f6b6",v:["1f6b6-1f3fb","1f6b6-1f3fc","1f6b6-1f3fd","1f6b6-1f3fe","1f6b6-1f3ff"]},{n:["man-walking"],u:"1f6b6-200d-2642-fe0f",v:["1f6b6-1f3fb-200d-2642-fe0f","1f6b6-1f3fc-200d-2642-fe0f","1f6b6-1f3fd-200d-2642-fe0f","1f6b6-1f3fe-200d-2642-fe0f","1f6b6-1f3ff-200d-2642-fe0f"]},{n:["woman-walking"],u:"1f6b6-200d-2640-fe0f",v:["1f6b6-1f3fb-200d-2640-fe0f","1f6b6-1f3fc-200d-2640-fe0f","1f6b6-1f3fd-200d-2640-fe0f","1f6b6-1f3fe-200d-2640-fe0f","1f6b6-1f3ff-200d-2640-fe0f"]},{n:["runner","running"],u:"1f3c3",v:["1f3c3-1f3fb","1f3c3-1f3fc","1f3c3-1f3fd","1f3c3-1f3fe","1f3c3-1f3ff"]},{n:["man-running"],u:"1f3c3-200d-2642-fe0f",v:["1f3c3-1f3fb-200d-2642-fe0f","1f3c3-1f3fc-200d-2642-fe0f","1f3c3-1f3fd-200d-2642-fe0f","1f3c3-1f3fe-200d-2642-fe0f","1f3c3-1f3ff-200d-2642-fe0f"]},{n:["woman-running"],u:"1f3c3-200d-2640-fe0f",v:["1f3c3-1f3fb-200d-2640-fe0f","1f3c3-1f3fc-200d-2640-fe0f","1f3c3-1f3fd-200d-2640-fe0f","1f3c3-1f3fe-200d-2640-fe0f","1f3c3-1f3ff-200d-2640-fe0f"]},{n:["dancer"],u:"1f483",v:["1f483-1f3fb","1f483-1f3fc","1f483-1f3fd","1f483-1f3fe","1f483-1f3ff"]},{n:["man dancing","man_dancing"],u:"1f57a",v:["1f57a-1f3fb","1f57a-1f3fc","1f57a-1f3fd","1f57a-1f3fe","1f57a-1f3ff"]},{n:["woman with bunny ears","dancers"],u:"1f46f"},{n:["man-with-bunny-ears-partying"],u:"1f46f-200d-2642-fe0f"},{n:["woman-with-bunny-ears-partying"],u:"1f46f-200d-2640-fe0f"},{n:["person in steamy room","person_in_steamy_room"],u:"1f9d6",v:["1f9d6-1f3fb","1f9d6-1f3fc","1f9d6-1f3fd","1f9d6-1f3fe","1f9d6-1f3ff"]},{n:["woman_in_steamy_room"],u:"1f9d6-200d-2640-fe0f",v:["1f9d6-1f3fb-200d-2640-fe0f","1f9d6-1f3fc-200d-2640-fe0f","1f9d6-1f3fd-200d-2640-fe0f","1f9d6-1f3fe-200d-2640-fe0f","1f9d6-1f3ff-200d-2640-fe0f"]},{n:["man_in_steamy_room"],u:"1f9d6-200d-2642-fe0f",v:["1f9d6-1f3fb-200d-2642-fe0f","1f9d6-1f3fc-200d-2642-fe0f","1f9d6-1f3fd-200d-2642-fe0f","1f9d6-1f3fe-200d-2642-fe0f","1f9d6-1f3ff-200d-2642-fe0f"]},{n:["person climbing","person_climbing"],u:"1f9d7",v:["1f9d7-1f3fb","1f9d7-1f3fc","1f9d7-1f3fd","1f9d7-1f3fe","1f9d7-1f3ff"]},{n:["woman_climbing"],u:"1f9d7-200d-2640-fe0f",v:["1f9d7-1f3fb-200d-2640-fe0f","1f9d7-1f3fc-200d-2640-fe0f","1f9d7-1f3fd-200d-2640-fe0f","1f9d7-1f3fe-200d-2640-fe0f","1f9d7-1f3ff-200d-2640-fe0f"]},{n:["man_climbing"],u:"1f9d7-200d-2642-fe0f",v:["1f9d7-1f3fb-200d-2642-fe0f","1f9d7-1f3fc-200d-2642-fe0f","1f9d7-1f3fd-200d-2642-fe0f","1f9d7-1f3fe-200d-2642-fe0f","1f9d7-1f3ff-200d-2642-fe0f"]},{n:["person in lotus position","person_in_lotus_position"],u:"1f9d8",v:["1f9d8-1f3fb","1f9d8-1f3fc","1f9d8-1f3fd","1f9d8-1f3fe","1f9d8-1f3ff"]},{n:["woman_in_lotus_position"],u:"1f9d8-200d-2640-fe0f",v:["1f9d8-1f3fb-200d-2640-fe0f","1f9d8-1f3fc-200d-2640-fe0f","1f9d8-1f3fd-200d-2640-fe0f","1f9d8-1f3fe-200d-2640-fe0f","1f9d8-1f3ff-200d-2640-fe0f"]},{n:["man_in_lotus_position"],u:"1f9d8-200d-2642-fe0f",v:["1f9d8-1f3fb-200d-2642-fe0f","1f9d8-1f3fc-200d-2642-fe0f","1f9d8-1f3fd-200d-2642-fe0f","1f9d8-1f3fe-200d-2642-fe0f","1f9d8-1f3ff-200d-2642-fe0f"]},{n:["bath"],u:"1f6c0",v:["1f6c0-1f3fb","1f6c0-1f3fc","1f6c0-1f3fd","1f6c0-1f3fe","1f6c0-1f3ff"]},{n:["sleeping accommodation","sleeping_accommodation"],u:"1f6cc",v:["1f6cc-1f3fb","1f6cc-1f3fc","1f6cc-1f3fd","1f6cc-1f3fe","1f6cc-1f3ff"]},{n:["man_in_business_suit_levitating"],u:"1f574-fe0f",v:["1f574-1f3fb","1f574-1f3fc","1f574-1f3fd","1f574-1f3fe","1f574-1f3ff"]},{n:["speaking_head_in_silhouette"],u:"1f5e3-fe0f"},{n:["bust in silhouette","bust_in_silhouette"],u:"1f464"},{n:["busts in silhouette","busts_in_silhouette"],u:"1f465"},{n:["fencer"],u:"1f93a"},{n:["horse racing","horse_racing"],u:"1f3c7",v:["1f3c7-1f3fb","1f3c7-1f3fc","1f3c7-1f3fd","1f3c7-1f3fe","1f3c7-1f3ff"]},{n:["skier"],u:"26f7-fe0f"},{n:["snowboarder"],u:"1f3c2",v:["1f3c2-1f3fb","1f3c2-1f3fc","1f3c2-1f3fd","1f3c2-1f3fe","1f3c2-1f3ff"]},{n:["golfer"],u:"1f3cc-fe0f",v:["1f3cc-1f3fb","1f3cc-1f3fc","1f3cc-1f3fd","1f3cc-1f3fe","1f3cc-1f3ff"]},{n:["man-golfing"],u:"1f3cc-fe0f-200d-2642-fe0f",v:["1f3cc-1f3fb-200d-2642-fe0f","1f3cc-1f3fc-200d-2642-fe0f","1f3cc-1f3fd-200d-2642-fe0f","1f3cc-1f3fe-200d-2642-fe0f","1f3cc-1f3ff-200d-2642-fe0f"]},{n:["woman-golfing"],u:"1f3cc-fe0f-200d-2640-fe0f",v:["1f3cc-1f3fb-200d-2640-fe0f","1f3cc-1f3fc-200d-2640-fe0f","1f3cc-1f3fd-200d-2640-fe0f","1f3cc-1f3fe-200d-2640-fe0f","1f3cc-1f3ff-200d-2640-fe0f"]},{n:["surfer"],u:"1f3c4",v:["1f3c4-1f3fb","1f3c4-1f3fc","1f3c4-1f3fd","1f3c4-1f3fe","1f3c4-1f3ff"]},{n:["man-surfing"],u:"1f3c4-200d-2642-fe0f",v:["1f3c4-1f3fb-200d-2642-fe0f","1f3c4-1f3fc-200d-2642-fe0f","1f3c4-1f3fd-200d-2642-fe0f","1f3c4-1f3fe-200d-2642-fe0f","1f3c4-1f3ff-200d-2642-fe0f"]},{n:["woman-surfing"],u:"1f3c4-200d-2640-fe0f",v:["1f3c4-1f3fb-200d-2640-fe0f","1f3c4-1f3fc-200d-2640-fe0f","1f3c4-1f3fd-200d-2640-fe0f","1f3c4-1f3fe-200d-2640-fe0f","1f3c4-1f3ff-200d-2640-fe0f"]},{n:["rowboat"],u:"1f6a3",v:["1f6a3-1f3fb","1f6a3-1f3fc","1f6a3-1f3fd","1f6a3-1f3fe","1f6a3-1f3ff"]},{n:["man-rowing-boat"],u:"1f6a3-200d-2642-fe0f",v:["1f6a3-1f3fb-200d-2642-fe0f","1f6a3-1f3fc-200d-2642-fe0f","1f6a3-1f3fd-200d-2642-fe0f","1f6a3-1f3fe-200d-2642-fe0f","1f6a3-1f3ff-200d-2642-fe0f"]},{n:["woman-rowing-boat"],u:"1f6a3-200d-2640-fe0f",v:["1f6a3-1f3fb-200d-2640-fe0f","1f6a3-1f3fc-200d-2640-fe0f","1f6a3-1f3fd-200d-2640-fe0f","1f6a3-1f3fe-200d-2640-fe0f","1f6a3-1f3ff-200d-2640-fe0f"]},{n:["swimmer"],u:"1f3ca",v:["1f3ca-1f3fb","1f3ca-1f3fc","1f3ca-1f3fd","1f3ca-1f3fe","1f3ca-1f3ff"]},{n:["man-swimming"],u:"1f3ca-200d-2642-fe0f",v:["1f3ca-1f3fb-200d-2642-fe0f","1f3ca-1f3fc-200d-2642-fe0f","1f3ca-1f3fd-200d-2642-fe0f","1f3ca-1f3fe-200d-2642-fe0f","1f3ca-1f3ff-200d-2642-fe0f"]},{n:["woman-swimming"],u:"1f3ca-200d-2640-fe0f",v:["1f3ca-1f3fb-200d-2640-fe0f","1f3ca-1f3fc-200d-2640-fe0f","1f3ca-1f3fd-200d-2640-fe0f","1f3ca-1f3fe-200d-2640-fe0f","1f3ca-1f3ff-200d-2640-fe0f"]},{n:["person_with_ball"],u:"26f9-fe0f",v:["26f9-1f3fb","26f9-1f3fc","26f9-1f3fd","26f9-1f3fe","26f9-1f3ff"]},{n:["man-bouncing-ball"],u:"26f9-fe0f-200d-2642-fe0f",v:["26f9-1f3fb-200d-2642-fe0f","26f9-1f3fc-200d-2642-fe0f","26f9-1f3fd-200d-2642-fe0f","26f9-1f3fe-200d-2642-fe0f","26f9-1f3ff-200d-2642-fe0f"]},{n:["woman-bouncing-ball"],u:"26f9-fe0f-200d-2640-fe0f",v:["26f9-1f3fb-200d-2640-fe0f","26f9-1f3fc-200d-2640-fe0f","26f9-1f3fd-200d-2640-fe0f","26f9-1f3fe-200d-2640-fe0f","26f9-1f3ff-200d-2640-fe0f"]},{n:["weight_lifter"],u:"1f3cb-fe0f",v:["1f3cb-1f3fb","1f3cb-1f3fc","1f3cb-1f3fd","1f3cb-1f3fe","1f3cb-1f3ff"]},{n:["man-lifting-weights"],u:"1f3cb-fe0f-200d-2642-fe0f",v:["1f3cb-1f3fb-200d-2642-fe0f","1f3cb-1f3fc-200d-2642-fe0f","1f3cb-1f3fd-200d-2642-fe0f","1f3cb-1f3fe-200d-2642-fe0f","1f3cb-1f3ff-200d-2642-fe0f"]},{n:["woman-lifting-weights"],u:"1f3cb-fe0f-200d-2640-fe0f",v:["1f3cb-1f3fb-200d-2640-fe0f","1f3cb-1f3fc-200d-2640-fe0f","1f3cb-1f3fd-200d-2640-fe0f","1f3cb-1f3fe-200d-2640-fe0f","1f3cb-1f3ff-200d-2640-fe0f"]},{n:["bicyclist"],u:"1f6b4",v:["1f6b4-1f3fb","1f6b4-1f3fc","1f6b4-1f3fd","1f6b4-1f3fe","1f6b4-1f3ff"]},{n:["man-biking"],u:"1f6b4-200d-2642-fe0f",v:["1f6b4-1f3fb-200d-2642-fe0f","1f6b4-1f3fc-200d-2642-fe0f","1f6b4-1f3fd-200d-2642-fe0f","1f6b4-1f3fe-200d-2642-fe0f","1f6b4-1f3ff-200d-2642-fe0f"]},{n:["woman-biking"],u:"1f6b4-200d-2640-fe0f",v:["1f6b4-1f3fb-200d-2640-fe0f","1f6b4-1f3fc-200d-2640-fe0f","1f6b4-1f3fd-200d-2640-fe0f","1f6b4-1f3fe-200d-2640-fe0f","1f6b4-1f3ff-200d-2640-fe0f"]},{n:["mountain bicyclist","mountain_bicyclist"],u:"1f6b5",v:["1f6b5-1f3fb","1f6b5-1f3fc","1f6b5-1f3fd","1f6b5-1f3fe","1f6b5-1f3ff"]},{n:["man-mountain-biking"],u:"1f6b5-200d-2642-fe0f",v:["1f6b5-1f3fb-200d-2642-fe0f","1f6b5-1f3fc-200d-2642-fe0f","1f6b5-1f3fd-200d-2642-fe0f","1f6b5-1f3fe-200d-2642-fe0f","1f6b5-1f3ff-200d-2642-fe0f"]},{n:["woman-mountain-biking"],u:"1f6b5-200d-2640-fe0f",v:["1f6b5-1f3fb-200d-2640-fe0f","1f6b5-1f3fc-200d-2640-fe0f","1f6b5-1f3fd-200d-2640-fe0f","1f6b5-1f3fe-200d-2640-fe0f","1f6b5-1f3ff-200d-2640-fe0f"]},{n:["racing_car"],u:"1f3ce-fe0f"},{n:["racing_motorcycle"],u:"1f3cd-fe0f"},{n:["person doing cartwheel","person_doing_cartwheel"],u:"1f938",v:["1f938-1f3fb","1f938-1f3fc","1f938-1f3fd","1f938-1f3fe","1f938-1f3ff"]},{n:["man-cartwheeling"],u:"1f938-200d-2642-fe0f",v:["1f938-1f3fb-200d-2642-fe0f","1f938-1f3fc-200d-2642-fe0f","1f938-1f3fd-200d-2642-fe0f","1f938-1f3fe-200d-2642-fe0f","1f938-1f3ff-200d-2642-fe0f"]},{n:["woman-cartwheeling"],u:"1f938-200d-2640-fe0f",v:["1f938-1f3fb-200d-2640-fe0f","1f938-1f3fc-200d-2640-fe0f","1f938-1f3fd-200d-2640-fe0f","1f938-1f3fe-200d-2640-fe0f","1f938-1f3ff-200d-2640-fe0f"]},{n:["wrestlers"],u:"1f93c"},{n:["man-wrestling"],u:"1f93c-200d-2642-fe0f"},{n:["woman-wrestling"],u:"1f93c-200d-2640-fe0f"},{n:["water polo","water_polo"],u:"1f93d",v:["1f93d-1f3fb","1f93d-1f3fc","1f93d-1f3fd","1f93d-1f3fe","1f93d-1f3ff"]},{n:["man-playing-water-polo"],u:"1f93d-200d-2642-fe0f",v:["1f93d-1f3fb-200d-2642-fe0f","1f93d-1f3fc-200d-2642-fe0f","1f93d-1f3fd-200d-2642-fe0f","1f93d-1f3fe-200d-2642-fe0f","1f93d-1f3ff-200d-2642-fe0f"]},{n:["woman-playing-water-polo"],u:"1f93d-200d-2640-fe0f",v:["1f93d-1f3fb-200d-2640-fe0f","1f93d-1f3fc-200d-2640-fe0f","1f93d-1f3fd-200d-2640-fe0f","1f93d-1f3fe-200d-2640-fe0f","1f93d-1f3ff-200d-2640-fe0f"]},{n:["handball"],u:"1f93e",v:["1f93e-1f3fb","1f93e-1f3fc","1f93e-1f3fd","1f93e-1f3fe","1f93e-1f3ff"]},{n:["man-playing-handball"],u:"1f93e-200d-2642-fe0f",v:["1f93e-1f3fb-200d-2642-fe0f","1f93e-1f3fc-200d-2642-fe0f","1f93e-1f3fd-200d-2642-fe0f","1f93e-1f3fe-200d-2642-fe0f","1f93e-1f3ff-200d-2642-fe0f"]},{n:["woman-playing-handball"],u:"1f93e-200d-2640-fe0f",v:["1f93e-1f3fb-200d-2640-fe0f","1f93e-1f3fc-200d-2640-fe0f","1f93e-1f3fd-200d-2640-fe0f","1f93e-1f3fe-200d-2640-fe0f","1f93e-1f3ff-200d-2640-fe0f"]},{n:["juggling"],u:"1f939",v:["1f939-1f3fb","1f939-1f3fc","1f939-1f3fd","1f939-1f3fe","1f939-1f3ff"]},{n:["man-juggling"],u:"1f939-200d-2642-fe0f",v:["1f939-1f3fb-200d-2642-fe0f","1f939-1f3fc-200d-2642-fe0f","1f939-1f3fd-200d-2642-fe0f","1f939-1f3fe-200d-2642-fe0f","1f939-1f3ff-200d-2642-fe0f"]},{n:["woman-juggling"],u:"1f939-200d-2640-fe0f",v:["1f939-1f3fb-200d-2640-fe0f","1f939-1f3fc-200d-2640-fe0f","1f939-1f3fd-200d-2640-fe0f","1f939-1f3fe-200d-2640-fe0f","1f939-1f3ff-200d-2640-fe0f"]},{n:["man and woman holding hands","couple","man_and_woman_holding_hands"],u:"1f46b"},{n:["two men holding hands","two_men_holding_hands"],u:"1f46c"},{n:["two women holding hands","two_women_holding_hands"],u:"1f46d"},{n:["kiss","couplekiss"],u:"1f48f"},{n:["woman-kiss-man"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468"},{n:["man-kiss-man"],u:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468"},{n:["woman-kiss-woman"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469"},{n:["couple with heart","couple_with_heart"],u:"1f491"},{n:["woman-heart-man"],u:"1f469-200d-2764-fe0f-200d-1f468"},{n:["man-heart-man"],u:"1f468-200d-2764-fe0f-200d-1f468"},{n:["woman-heart-woman"],u:"1f469-200d-2764-fe0f-200d-1f469"},{n:["family","man-woman-boy"],u:"1f46a"},{n:["man-woman-boy","family"],u:"1f468-200d-1f469-200d-1f466"},{n:["man-woman-girl"],u:"1f468-200d-1f469-200d-1f467"},{n:["man-woman-girl-boy"],u:"1f468-200d-1f469-200d-1f467-200d-1f466"},{n:["man-woman-boy-boy"],u:"1f468-200d-1f469-200d-1f466-200d-1f466"},{n:["man-woman-girl-girl"],u:"1f468-200d-1f469-200d-1f467-200d-1f467"},{n:["man-man-boy"],u:"1f468-200d-1f468-200d-1f466"},{n:["man-man-girl"],u:"1f468-200d-1f468-200d-1f467"},{n:["man-man-girl-boy"],u:"1f468-200d-1f468-200d-1f467-200d-1f466"},{n:["man-man-boy-boy"],u:"1f468-200d-1f468-200d-1f466-200d-1f466"},{n:["man-man-girl-girl"],u:"1f468-200d-1f468-200d-1f467-200d-1f467"},{n:["woman-woman-boy"],u:"1f469-200d-1f469-200d-1f466"},{n:["woman-woman-girl"],u:"1f469-200d-1f469-200d-1f467"},{n:["woman-woman-girl-boy"],u:"1f469-200d-1f469-200d-1f467-200d-1f466"},{n:["woman-woman-boy-boy"],u:"1f469-200d-1f469-200d-1f466-200d-1f466"},{n:["woman-woman-girl-girl"],u:"1f469-200d-1f469-200d-1f467-200d-1f467"},{n:["man-boy"],u:"1f468-200d-1f466"},{n:["man-boy-boy"],u:"1f468-200d-1f466-200d-1f466"},{n:["man-girl"],u:"1f468-200d-1f467"},{n:["man-girl-boy"],u:"1f468-200d-1f467-200d-1f466"},{n:["man-girl-girl"],u:"1f468-200d-1f467-200d-1f467"},{n:["woman-boy"],u:"1f469-200d-1f466"},{n:["woman-boy-boy"],u:"1f469-200d-1f466-200d-1f466"},{n:["woman-girl"],u:"1f469-200d-1f467"},{n:["woman-girl-boy"],u:"1f469-200d-1f467-200d-1f466"},{n:["woman-girl-girl"],u:"1f469-200d-1f467-200d-1f467"},{n:["selfie"],u:"1f933",v:["1f933-1f3fb","1f933-1f3fc","1f933-1f3fd","1f933-1f3fe","1f933-1f3ff"]},{n:["flexed biceps","muscle"],u:"1f4aa",v:["1f4aa-1f3fb","1f4aa-1f3fc","1f4aa-1f3fd","1f4aa-1f3fe","1f4aa-1f3ff"]},{n:["white left pointing backhand index","point_left"],u:"1f448",v:["1f448-1f3fb","1f448-1f3fc","1f448-1f3fd","1f448-1f3fe","1f448-1f3ff"]},{n:["white right pointing backhand index","point_right"],u:"1f449",v:["1f449-1f3fb","1f449-1f3fc","1f449-1f3fd","1f449-1f3fe","1f449-1f3ff"]},{n:["white up pointing index","point_up"],u:"261d-fe0f",v:["261d-1f3fb","261d-1f3fc","261d-1f3fd","261d-1f3fe","261d-1f3ff"]},{n:["white up pointing backhand index","point_up_2"],u:"1f446",v:["1f446-1f3fb","1f446-1f3fc","1f446-1f3fd","1f446-1f3fe","1f446-1f3ff"]},{n:["reversed hand with middle finger extended","middle_finger","reversed_hand_with_middle_finger_extended"],u:"1f595",v:["1f595-1f3fb","1f595-1f3fc","1f595-1f3fd","1f595-1f3fe","1f595-1f3ff"]},{n:["white down pointing backhand index","point_down"],u:"1f447",v:["1f447-1f3fb","1f447-1f3fc","1f447-1f3fd","1f447-1f3fe","1f447-1f3ff"]},{n:["victory hand","v"],u:"270c-fe0f",v:["270c-1f3fb","270c-1f3fc","270c-1f3fd","270c-1f3fe","270c-1f3ff"]},{n:["hand with index and middle fingers crossed","crossed_fingers","hand_with_index_and_middle_fingers_crossed"],u:"1f91e",v:["1f91e-1f3fb","1f91e-1f3fc","1f91e-1f3fd","1f91e-1f3fe","1f91e-1f3ff"]},{n:["raised hand with part between middle and ring fingers","spock-hand"],u:"1f596",v:["1f596-1f3fb","1f596-1f3fc","1f596-1f3fd","1f596-1f3fe","1f596-1f3ff"]},{n:["sign of the horns","the_horns","sign_of_the_horns"],u:"1f918",v:["1f918-1f3fb","1f918-1f3fc","1f918-1f3fd","1f918-1f3fe","1f918-1f3ff"]},{n:["call me hand","call_me_hand"],u:"1f919",v:["1f919-1f3fb","1f919-1f3fc","1f919-1f3fd","1f919-1f3fe","1f919-1f3ff"]},{n:["raised_hand_with_fingers_splayed"],u:"1f590-fe0f",v:["1f590-1f3fb","1f590-1f3fc","1f590-1f3fd","1f590-1f3fe","1f590-1f3ff"]},{n:["raised hand","hand","raised_hand"],u:"270b",v:["270b-1f3fb","270b-1f3fc","270b-1f3fd","270b-1f3fe","270b-1f3ff"]},{n:["ok hand sign","ok_hand"],u:"1f44c",v:["1f44c-1f3fb","1f44c-1f3fc","1f44c-1f3fd","1f44c-1f3fe","1f44c-1f3ff"]},{n:["thumbs up sign","+1","thumbsup"],u:"1f44d",v:["1f44d-1f3fb","1f44d-1f3fc","1f44d-1f3fd","1f44d-1f3fe","1f44d-1f3ff"]},{n:["thumbs down sign","-1","thumbsdown"],u:"1f44e",v:["1f44e-1f3fb","1f44e-1f3fc","1f44e-1f3fd","1f44e-1f3fe","1f44e-1f3ff"]},{n:["raised fist","fist"],u:"270a",v:["270a-1f3fb","270a-1f3fc","270a-1f3fd","270a-1f3fe","270a-1f3ff"]},{n:["fisted hand sign","facepunch","punch"],u:"1f44a",v:["1f44a-1f3fb","1f44a-1f3fc","1f44a-1f3fd","1f44a-1f3fe","1f44a-1f3ff"]},{n:["left-facing fist","left-facing_fist"],u:"1f91b",v:["1f91b-1f3fb","1f91b-1f3fc","1f91b-1f3fd","1f91b-1f3fe","1f91b-1f3ff"]},{n:["right-facing fist","right-facing_fist"],u:"1f91c",v:["1f91c-1f3fb","1f91c-1f3fc","1f91c-1f3fd","1f91c-1f3fe","1f91c-1f3ff"]},{n:["raised back of hand","raised_back_of_hand"],u:"1f91a",v:["1f91a-1f3fb","1f91a-1f3fc","1f91a-1f3fd","1f91a-1f3fe","1f91a-1f3ff"]},{n:["waving hand sign","wave"],u:"1f44b",v:["1f44b-1f3fb","1f44b-1f3fc","1f44b-1f3fd","1f44b-1f3fe","1f44b-1f3ff"]},{n:["i love you hand sign","i_love_you_hand_sign"],u:"1f91f",v:["1f91f-1f3fb","1f91f-1f3fc","1f91f-1f3fd","1f91f-1f3fe","1f91f-1f3ff"]},{n:["writing_hand"],u:"270d-fe0f",v:["270d-1f3fb","270d-1f3fc","270d-1f3fd","270d-1f3fe","270d-1f3ff"]},{n:["clapping hands sign","clap"],u:"1f44f",v:["1f44f-1f3fb","1f44f-1f3fc","1f44f-1f3fd","1f44f-1f3fe","1f44f-1f3ff"]},{n:["open hands sign","open_hands"],u:"1f450",v:["1f450-1f3fb","1f450-1f3fc","1f450-1f3fd","1f450-1f3fe","1f450-1f3ff"]},{n:["person raising both hands in celebration","raised_hands"],u:"1f64c",v:["1f64c-1f3fb","1f64c-1f3fc","1f64c-1f3fd","1f64c-1f3fe","1f64c-1f3ff"]},{n:["palms up together","palms_up_together"],u:"1f932",v:["1f932-1f3fb","1f932-1f3fc","1f932-1f3fd","1f932-1f3fe","1f932-1f3ff"]},{n:["person with folded hands","pray"],u:"1f64f",v:["1f64f-1f3fb","1f64f-1f3fc","1f64f-1f3fd","1f64f-1f3fe","1f64f-1f3ff"]},{n:["handshake"],u:"1f91d"},{n:["nail polish","nail_care"],u:"1f485",v:["1f485-1f3fb","1f485-1f3fc","1f485-1f3fd","1f485-1f3fe","1f485-1f3ff"]},{n:["ear"],u:"1f442",v:["1f442-1f3fb","1f442-1f3fc","1f442-1f3fd","1f442-1f3fe","1f442-1f3ff"]},{n:["nose"],u:"1f443",v:["1f443-1f3fb","1f443-1f3fc","1f443-1f3fd","1f443-1f3fe","1f443-1f3ff"]},{n:["footprints"],u:"1f463"},{n:["eyes"],u:"1f440"},{n:["eye"],u:"1f441-fe0f"},{n:["eye-in-speech-bubble"],u:"1f441-fe0f-200d-1f5e8-fe0f"},{n:["brain"],u:"1f9e0"},{n:["tongue"],u:"1f445"},{n:["mouth","lips"],u:"1f444"},{n:["kiss mark","kiss"],u:"1f48b"},{n:["heart with arrow","cupid"],u:"1f498"},{n:["heavy black heart","heart"],u:"2764-fe0f"},{n:["beating heart","heartbeat"],u:"1f493"},{n:["broken heart","broken_heart"],u:"1f494"},{n:["two hearts","two_hearts"],u:"1f495"},{n:["sparkling heart","sparkling_heart"],u:"1f496"},{n:["growing heart","heartpulse"],u:"1f497"},{n:["blue heart","blue_heart"],u:"1f499"},{n:["green heart","green_heart"],u:"1f49a"},{n:["yellow heart","yellow_heart"],u:"1f49b"},{n:["orange heart","orange_heart"],u:"1f9e1"},{n:["purple heart","purple_heart"],u:"1f49c"},{n:["black heart","black_heart"],u:"1f5a4"},{n:["heart with ribbon","gift_heart"],u:"1f49d"},{n:["revolving hearts","revolving_hearts"],u:"1f49e"},{n:["heart decoration","heart_decoration"],u:"1f49f"},{n:["heavy_heart_exclamation_mark_ornament"],u:"2763-fe0f"},{n:["love letter","love_letter"],u:"1f48c"},{n:["sleeping symbol","zzz"],u:"1f4a4"},{n:["anger symbol","anger"],u:"1f4a2"},{n:["bomb"],u:"1f4a3"},{n:["collision symbol","boom","collision"],u:"1f4a5"},{n:["splashing sweat symbol","sweat_drops"],u:"1f4a6"},{n:["dash symbol","dash"],u:"1f4a8"},{n:["dizzy symbol","dizzy"],u:"1f4ab"},{n:["speech balloon","speech_balloon"],u:"1f4ac"},{n:["left_speech_bubble"],u:"1f5e8-fe0f"},{n:["right_anger_bubble"],u:"1f5ef-fe0f"},{n:["thought balloon","thought_balloon"],u:"1f4ad"},{n:["hole"],u:"1f573-fe0f"},{n:["eyeglasses"],u:"1f453"},{n:["dark_sunglasses"],u:"1f576-fe0f"},{n:["necktie"],u:"1f454"},{n:["t-shirt","shirt","tshirt"],u:"1f455"},{n:["jeans"],u:"1f456"},{n:["scarf"],u:"1f9e3"},{n:["gloves"],u:"1f9e4"},{n:["coat"],u:"1f9e5"},{n:["socks"],u:"1f9e6"},{n:["dress"],u:"1f457"},{n:["kimono"],u:"1f458"},{n:["bikini"],u:"1f459"},{n:["womans clothes","womans_clothes"],u:"1f45a"},{n:["purse"],u:"1f45b"},{n:["handbag"],u:"1f45c"},{n:["pouch"],u:"1f45d"},{n:["shopping_bags"],u:"1f6cd-fe0f"},{n:["school satchel","school_satchel"],u:"1f392"},{n:["mans shoe","mans_shoe","shoe"],u:"1f45e"},{n:["athletic shoe","athletic_shoe"],u:"1f45f"},{n:["high-heeled shoe","high_heel"],u:"1f460"},{n:["womans sandal","sandal"],u:"1f461"},{n:["womans boots","boot"],u:"1f462"},{n:["crown"],u:"1f451"},{n:["womans hat","womans_hat"],u:"1f452"},{n:["top hat","tophat"],u:"1f3a9"},{n:["graduation cap","mortar_board"],u:"1f393"},{n:["billed cap","billed_cap"],u:"1f9e2"},{n:["helmet_with_white_cross"],u:"26d1-fe0f"},{n:["prayer beads","prayer_beads"],u:"1f4ff"},{n:["lipstick"],u:"1f484"},{n:["ring"],u:"1f48d"},{n:["gem stone","gem"],u:"1f48e"}],animals_nature:[{n:["monkey face","monkey_face"],u:"1f435"},{n:["monkey"],u:"1f412"},{n:["gorilla"],u:"1f98d"},{n:["dog face","dog"],u:"1f436"},{n:["dog","dog2"],u:"1f415"},{n:["poodle"],u:"1f429"},{n:["wolf face","wolf"],u:"1f43a"},{n:["fox face","fox_face"],u:"1f98a"},{n:["cat face","cat"],u:"1f431"},{n:["cat","cat2"],u:"1f408"},{n:["lion face","lion_face"],u:"1f981"},{n:["tiger face","tiger"],u:"1f42f"},{n:["tiger","tiger2"],u:"1f405"},{n:["leopard"],u:"1f406"},{n:["horse face","horse"],u:"1f434"},{n:["horse","racehorse"],u:"1f40e"},{n:["unicorn face","unicorn_face"],u:"1f984"},{n:["zebra face","zebra_face"],u:"1f993"},{n:["deer"],u:"1f98c"},{n:["cow face","cow"],u:"1f42e"},{n:["ox"],u:"1f402"},{n:["water buffalo","water_buffalo"],u:"1f403"},{n:["cow","cow2"],u:"1f404"},{n:["pig face","pig"],u:"1f437"},{n:["pig","pig2"],u:"1f416"},{n:["boar"],u:"1f417"},{n:["pig nose","pig_nose"],u:"1f43d"},{n:["ram"],u:"1f40f"},{n:["sheep"],u:"1f411"},{n:["goat"],u:"1f410"},{n:["dromedary camel","dromedary_camel"],u:"1f42a"},{n:["bactrian camel","camel"],u:"1f42b"},{n:["giraffe face","giraffe_face"],u:"1f992"},{n:["elephant"],u:"1f418"},{n:["rhinoceros"],u:"1f98f"},{n:["mouse face","mouse"],u:"1f42d"},{n:["mouse","mouse2"],u:"1f401"},{n:["rat"],u:"1f400"},{n:["hamster face","hamster"],u:"1f439"},{n:["rabbit face","rabbit"],u:"1f430"},{n:["rabbit","rabbit2"],u:"1f407"},{n:["chipmunk"],u:"1f43f-fe0f"},{n:["hedgehog"],u:"1f994"},{n:["bat"],u:"1f987"},{n:["bear face","bear"],u:"1f43b"},{n:["koala"],u:"1f428"},{n:["panda face","panda_face"],u:"1f43c"},{n:["paw prints","feet","paw_prints"],u:"1f43e"},{n:["turkey"],u:"1f983"},{n:["chicken"],u:"1f414"},{n:["rooster"],u:"1f413"},{n:["hatching chick","hatching_chick"],u:"1f423"},{n:["baby chick","baby_chick"],u:"1f424"},{n:["front-facing baby chick","hatched_chick"],u:"1f425"},{n:["bird"],u:"1f426"},{n:["penguin"],u:"1f427"},{n:["dove_of_peace"],u:"1f54a-fe0f"},{n:["eagle"],u:"1f985"},{n:["duck"],u:"1f986"},{n:["owl"],u:"1f989"},{n:["frog face","frog"],u:"1f438"},{n:["crocodile"],u:"1f40a"},{n:["turtle"],u:"1f422"},{n:["lizard"],u:"1f98e"},{n:["snake"],u:"1f40d"},{n:["dragon face","dragon_face"],u:"1f432"},{n:["dragon"],u:"1f409"},{n:["sauropod"],u:"1f995"},{n:["t-rex"],u:"1f996"},{n:["spouting whale","whale"],u:"1f433"},{n:["whale","whale2"],u:"1f40b"},{n:["dolphin","flipper"],u:"1f42c"},{n:["fish"],u:"1f41f"},{n:["tropical fish","tropical_fish"],u:"1f420"},{n:["blowfish"],u:"1f421"},{n:["shark"],u:"1f988"},{n:["octopus"],u:"1f419"},{n:["spiral shell","shell"],u:"1f41a"},{n:["crab"],u:"1f980"},{n:["shrimp"],u:"1f990"},{n:["squid"],u:"1f991"},{n:["snail"],u:"1f40c"},{n:["butterfly"],u:"1f98b"},{n:["bug"],u:"1f41b"},{n:["ant"],u:"1f41c"},{n:["honeybee","bee"],u:"1f41d"},{n:["lady beetle","beetle"],u:"1f41e"},{n:["cricket"],u:"1f997"},{n:["spider"],u:"1f577-fe0f"},{n:["spider_web"],u:"1f578-fe0f"},{n:["scorpion"],u:"1f982"},{n:["bouquet"],u:"1f490"},{n:["cherry blossom","cherry_blossom"],u:"1f338"},{n:["white flower","white_flower"],u:"1f4ae"},{n:["rosette"],u:"1f3f5-fe0f"},{n:["rose"],u:"1f339"},{n:["wilted flower","wilted_flower"],u:"1f940"},{n:["hibiscus"],u:"1f33a"},{n:["sunflower"],u:"1f33b"},{n:["blossom"],u:"1f33c"},{n:["tulip"],u:"1f337"},{n:["seedling"],u:"1f331"},{n:["evergreen tree","evergreen_tree"],u:"1f332"},{n:["deciduous tree","deciduous_tree"],u:"1f333"},{n:["palm tree","palm_tree"],u:"1f334"},{n:["cactus"],u:"1f335"},{n:["ear of rice","ear_of_rice"],u:"1f33e"},{n:["herb"],u:"1f33f"},{n:["shamrock"],u:"2618-fe0f"},{n:["four leaf clover","four_leaf_clover"],u:"1f340"},{n:["maple leaf","maple_leaf"],u:"1f341"},{n:["fallen leaf","fallen_leaf"],u:"1f342"},{n:["leaf fluttering in wind","leaves"],u:"1f343"}],food_drink:[{n:["grapes"],u:"1f347"},{n:["melon"],u:"1f348"},{n:["watermelon"],u:"1f349"},{n:["tangerine"],u:"1f34a"},{n:["lemon"],u:"1f34b"},{n:["banana"],u:"1f34c"},{n:["pineapple"],u:"1f34d"},{n:["red apple","apple"],u:"1f34e"},{n:["green apple","green_apple"],u:"1f34f"},{n:["pear"],u:"1f350"},{n:["peach"],u:"1f351"},{n:["cherries"],u:"1f352"},{n:["strawberry"],u:"1f353"},{n:["kiwifruit"],u:"1f95d"},{n:["tomato"],u:"1f345"},{n:["coconut"],u:"1f965"},{n:["avocado"],u:"1f951"},{n:["aubergine","eggplant"],u:"1f346"},{n:["potato"],u:"1f954"},{n:["carrot"],u:"1f955"},{n:["ear of maize","corn"],u:"1f33d"},{n:["hot_pepper"],u:"1f336-fe0f"},{n:["cucumber"],u:"1f952"},{n:["broccoli"],u:"1f966"},{n:["mushroom"],u:"1f344"},{n:["peanuts"],u:"1f95c"},{n:["chestnut"],u:"1f330"},{n:["bread"],u:"1f35e"},{n:["croissant"],u:"1f950"},{n:["baguette bread","baguette_bread"],u:"1f956"},{n:["pretzel"],u:"1f968"},{n:["pancakes"],u:"1f95e"},{n:["cheese wedge","cheese_wedge"],u:"1f9c0"},{n:["meat on bone","meat_on_bone"],u:"1f356"},{n:["poultry leg","poultry_leg"],u:"1f357"},{n:["cut of meat","cut_of_meat"],u:"1f969"},{n:["bacon"],u:"1f953"},{n:["hamburger"],u:"1f354"},{n:["french fries","fries"],u:"1f35f"},{n:["slice of pizza","pizza"],u:"1f355"},{n:["hot dog","hotdog"],u:"1f32d"},{n:["sandwich"],u:"1f96a"},{n:["taco"],u:"1f32e"},{n:["burrito"],u:"1f32f"},{n:["stuffed flatbread","stuffed_flatbread"],u:"1f959"},{n:["egg"],u:"1f95a"},{n:["cooking","fried_egg"],u:"1f373"},{n:["shallow pan of food","shallow_pan_of_food"],u:"1f958"},{n:["pot of food","stew"],u:"1f372"},{n:["bowl with spoon","bowl_with_spoon"],u:"1f963"},{n:["green salad","green_salad"],u:"1f957"},{n:["popcorn"],u:"1f37f"},{n:["canned food","canned_food"],u:"1f96b"},{n:["bento box","bento"],u:"1f371"},{n:["rice cracker","rice_cracker"],u:"1f358"},{n:["rice ball","rice_ball"],u:"1f359"},{n:["cooked rice","rice"],u:"1f35a"},{n:["curry and rice","curry"],u:"1f35b"},{n:["steaming bowl","ramen"],u:"1f35c"},{n:["spaghetti"],u:"1f35d"},{n:["roasted sweet potato","sweet_potato"],u:"1f360"},{n:["oden"],u:"1f362"},{n:["sushi"],u:"1f363"},{n:["fried shrimp","fried_shrimp"],u:"1f364"},{n:["fish cake with swirl design","fish_cake"],u:"1f365"},{n:["dango"],u:"1f361"},{n:["dumpling"],u:"1f95f"},{n:["fortune cookie","fortune_cookie"],u:"1f960"},{n:["takeout box","takeout_box"],u:"1f961"},{n:["soft ice cream","icecream"],u:"1f366"},{n:["shaved ice","shaved_ice"],u:"1f367"},{n:["ice cream","ice_cream"],u:"1f368"},{n:["doughnut"],u:"1f369"},{n:["cookie"],u:"1f36a"},{n:["birthday cake","birthday"],u:"1f382"},{n:["shortcake","cake"],u:"1f370"},{n:["pie"],u:"1f967"},{n:["chocolate bar","chocolate_bar"],u:"1f36b"},{n:["candy"],u:"1f36c"},{n:["lollipop"],u:"1f36d"},{n:["custard"],u:"1f36e"},{n:["honey pot","honey_pot"],u:"1f36f"},{n:["baby bottle","baby_bottle"],u:"1f37c"},{n:["glass of milk","glass_of_milk"],u:"1f95b"},{n:["hot beverage","coffee"],u:"2615"},{n:["teacup without handle","tea"],u:"1f375"},{n:["sake bottle and cup","sake"],u:"1f376"},{n:["bottle with popping cork","champagne"],u:"1f37e"},{n:["wine glass","wine_glass"],u:"1f377"},{n:["cocktail glass","cocktail"],u:"1f378"},{n:["tropical drink","tropical_drink"],u:"1f379"},{n:["beer mug","beer"],u:"1f37a"},{n:["clinking beer mugs","beers"],u:"1f37b"},{n:["clinking glasses","clinking_glasses"],u:"1f942"},{n:["tumbler glass","tumbler_glass"],u:"1f943"},{n:["cup with straw","cup_with_straw"],u:"1f964"},{n:["chopsticks"],u:"1f962"},{n:["knife_fork_plate"],u:"1f37d-fe0f"},{n:["fork and knife","fork_and_knife"],u:"1f374"},{n:["spoon"],u:"1f944"},{n:["hocho","knife"],u:"1f52a"},{n:["amphora"],u:"1f3fa"}],activities:[{n:["jack-o-lantern","jack_o_lantern"],u:"1f383"},{n:["christmas tree","christmas_tree"],u:"1f384"},{n:["fireworks"],u:"1f386"},{n:["firework sparkler","sparkler"],u:"1f387"},{n:["sparkles"],u:"2728"},{n:["balloon"],u:"1f388"},{n:["party popper","tada"],u:"1f389"},{n:["confetti ball","confetti_ball"],u:"1f38a"},{n:["tanabata tree","tanabata_tree"],u:"1f38b"},{n:["pine decoration","bamboo"],u:"1f38d"},{n:["japanese dolls","dolls"],u:"1f38e"},{n:["carp streamer","flags"],u:"1f38f"},{n:["wind chime","wind_chime"],u:"1f390"},{n:["moon viewing ceremony","rice_scene"],u:"1f391"},{n:["ribbon"],u:"1f380"},{n:["wrapped present","gift"],u:"1f381"},{n:["reminder_ribbon"],u:"1f397-fe0f"},{n:["admission_tickets"],u:"1f39f-fe0f"},{n:["ticket"],u:"1f3ab"},{n:["medal"],u:"1f396-fe0f"},{n:["trophy"],u:"1f3c6"},{n:["sports medal","sports_medal"],u:"1f3c5"},{n:["first place medal","first_place_medal"],u:"1f947"},{n:["second place medal","second_place_medal"],u:"1f948"},{n:["third place medal","third_place_medal"],u:"1f949"},{n:["soccer ball","soccer"],u:"26bd"},{n:["baseball"],u:"26be"},{n:["basketball and hoop","basketball"],u:"1f3c0"},{n:["volleyball"],u:"1f3d0"},{n:["american football","football"],u:"1f3c8"},{n:["rugby football","rugby_football"],u:"1f3c9"},{n:["tennis racquet and ball","tennis"],u:"1f3be"},{n:["billiards","8ball"],u:"1f3b1"},{n:["bowling"],u:"1f3b3"},{n:["cricket bat and ball","cricket_bat_and_ball"],u:"1f3cf"},{n:["field hockey stick and ball","field_hockey_stick_and_ball"],u:"1f3d1"},{n:["ice hockey stick and puck","ice_hockey_stick_and_puck"],u:"1f3d2"},{n:["table tennis paddle and ball","table_tennis_paddle_and_ball"],u:"1f3d3"},{n:["badminton racquet and shuttlecock","badminton_racquet_and_shuttlecock"],u:"1f3f8"},{n:["boxing glove","boxing_glove"],u:"1f94a"},{n:["martial arts uniform","martial_arts_uniform"],u:"1f94b"},{n:["goal net","goal_net"],u:"1f945"},{n:["direct hit","dart"],u:"1f3af"},{n:["flag in hole","golf"],u:"26f3"},{n:["ice_skate"],u:"26f8-fe0f"},{n:["fishing pole and fish","fishing_pole_and_fish"],u:"1f3a3"},{n:["running shirt with sash","running_shirt_with_sash"],u:"1f3bd"},{n:["ski and ski boot","ski"],u:"1f3bf"},{n:["sled"],u:"1f6f7"},{n:["curling stone","curling_stone"],u:"1f94c"},{n:["video game","video_game"],u:"1f3ae"},{n:["joystick"],u:"1f579-fe0f"},{n:["game die","game_die"],u:"1f3b2"},{n:["black spade suit","spades"],u:"2660-fe0f"},{n:["black heart suit","hearts"],u:"2665-fe0f"},{n:["black diamond suit","diamonds"],u:"2666-fe0f"},{n:["black club suit","clubs"],u:"2663-fe0f"},{n:["playing card black joker","black_joker"],u:"1f0cf"},{n:["mahjong tile red dragon","mahjong"],u:"1f004"},{n:["flower playing cards","flower_playing_cards"],u:"1f3b4"}],travel_places:[{n:["earth globe europe-africa","earth_africa"],u:"1f30d"},{n:["earth globe americas","earth_americas"],u:"1f30e"},{n:["earth globe asia-australia","earth_asia"],u:"1f30f"},{n:["globe with meridians","globe_with_meridians"],u:"1f310"},{n:["world_map"],u:"1f5fa-fe0f"},{n:["silhouette of japan","japan"],u:"1f5fe"},{n:["snow_capped_mountain"],u:"1f3d4-fe0f"},{n:["mountain"],u:"26f0-fe0f"},{n:["volcano"],u:"1f30b"},{n:["mount fuji","mount_fuji"],u:"1f5fb"},{n:["camping"],u:"1f3d5-fe0f"},{n:["beach_with_umbrella"],u:"1f3d6-fe0f"},{n:["desert"],u:"1f3dc-fe0f"},{n:["desert_island"],u:"1f3dd-fe0f"},{n:["national_park"],u:"1f3de-fe0f"},{n:["stadium"],u:"1f3df-fe0f"},{n:["classical_building"],u:"1f3db-fe0f"},{n:["building_construction"],u:"1f3d7-fe0f"},{n:["house_buildings"],u:"1f3d8-fe0f"},{n:["cityscape"],u:"1f3d9-fe0f"},{n:["derelict_house_building"],u:"1f3da-fe0f"},{n:["house building","house"],u:"1f3e0"},{n:["house with garden","house_with_garden"],u:"1f3e1"},{n:["office building","office"],u:"1f3e2"},{n:["japanese post office","post_office"],u:"1f3e3"},{n:["european post office","european_post_office"],u:"1f3e4"},{n:["hospital"],u:"1f3e5"},{n:["bank"],u:"1f3e6"},{n:["hotel"],u:"1f3e8"},{n:["love hotel","love_hotel"],u:"1f3e9"},{n:["convenience store","convenience_store"],u:"1f3ea"},{n:["school"],u:"1f3eb"},{n:["department store","department_store"],u:"1f3ec"},{n:["factory"],u:"1f3ed"},{n:["japanese castle","japanese_castle"],u:"1f3ef"},{n:["european castle","european_castle"],u:"1f3f0"},{n:["wedding"],u:"1f492"},{n:["tokyo tower","tokyo_tower"],u:"1f5fc"},{n:["statue of liberty","statue_of_liberty"],u:"1f5fd"},{n:["church"],u:"26ea"},{n:["mosque"],u:"1f54c"},{n:["synagogue"],u:"1f54d"},{n:["shinto_shrine"],u:"26e9-fe0f"},{n:["kaaba"],u:"1f54b"},{n:["fountain"],u:"26f2"},{n:["tent"],u:"26fa"},{n:["foggy"],u:"1f301"},{n:["night with stars","night_with_stars"],u:"1f303"},{n:["sunrise over mountains","sunrise_over_mountains"],u:"1f304"},{n:["sunrise"],u:"1f305"},{n:["cityscape at dusk","city_sunset"],u:"1f306"},{n:["sunset over buildings","city_sunrise"],u:"1f307"},{n:["bridge at night","bridge_at_night"],u:"1f309"},{n:["hot springs","hotsprings"],u:"2668-fe0f"},{n:["milky way","milky_way"],u:"1f30c"},{n:["carousel horse","carousel_horse"],u:"1f3a0"},{n:["ferris wheel","ferris_wheel"],u:"1f3a1"},{n:["roller coaster","roller_coaster"],u:"1f3a2"},{n:["barber pole","barber"],u:"1f488"},{n:["circus tent","circus_tent"],u:"1f3aa"},{n:["performing arts","performing_arts"],u:"1f3ad"},{n:["frame_with_picture"],u:"1f5bc-fe0f"},{n:["artist palette","art"],u:"1f3a8"},{n:["slot machine","slot_machine"],u:"1f3b0"},{n:["steam locomotive","steam_locomotive"],u:"1f682"},{n:["railway car","railway_car"],u:"1f683"},{n:["high-speed train","bullettrain_side"],u:"1f684"},{n:["high-speed train with bullet nose","bullettrain_front"],u:"1f685"},{n:["train","train2"],u:"1f686"},{n:["metro"],u:"1f687"},{n:["light rail","light_rail"],u:"1f688"},{n:["station"],u:"1f689"},{n:["tram"],u:"1f68a"},{n:["monorail"],u:"1f69d"},{n:["mountain railway","mountain_railway"],u:"1f69e"},{n:["tram car","train"],u:"1f68b"},{n:["bus"],u:"1f68c"},{n:["oncoming bus","oncoming_bus"],u:"1f68d"},{n:["trolleybus"],u:"1f68e"},{n:["minibus"],u:"1f690"},{n:["ambulance"],u:"1f691"},{n:["fire engine","fire_engine"],u:"1f692"},{n:["police car","police_car"],u:"1f693"},{n:["oncoming police car","oncoming_police_car"],u:"1f694"},{n:["taxi"],u:"1f695"},{n:["oncoming taxi","oncoming_taxi"],u:"1f696"},{n:["automobile","car","red_car"],u:"1f697"},{n:["oncoming automobile","oncoming_automobile"],u:"1f698"},{n:["recreational vehicle","blue_car"],u:"1f699"},{n:["delivery truck","truck"],u:"1f69a"},{n:["articulated lorry","articulated_lorry"],u:"1f69b"},{n:["tractor"],u:"1f69c"},{n:["bicycle","bike"],u:"1f6b2"},{n:["scooter"],u:"1f6f4"},{n:["motor scooter","motor_scooter"],u:"1f6f5"},{n:["bus stop","busstop"],u:"1f68f"},{n:["motorway"],u:"1f6e3-fe0f"},{n:["railway_track"],u:"1f6e4-fe0f"},{n:["fuel pump","fuelpump"],u:"26fd"},{n:["police cars revolving light","rotating_light"],u:"1f6a8"},{n:["horizontal traffic light","traffic_light"],u:"1f6a5"},{n:["vertical traffic light","vertical_traffic_light"],u:"1f6a6"},{n:["construction sign","construction"],u:"1f6a7"},{n:["octagonal sign","octagonal_sign"],u:"1f6d1"},{n:["anchor"],u:"2693"},{n:["sailboat","boat"],u:"26f5"},{n:["canoe"],u:"1f6f6"},{n:["speedboat"],u:"1f6a4"},{n:["passenger_ship"],u:"1f6f3-fe0f"},{n:["ferry"],u:"26f4-fe0f"},{n:["motor_boat"],u:"1f6e5-fe0f"},{n:["ship"],u:"1f6a2"},{n:["airplane"],u:"2708-fe0f"},{n:["small_airplane"],u:"1f6e9-fe0f"},{n:["airplane departure","airplane_departure"],u:"1f6eb"},{n:["airplane arriving","airplane_arriving"],u:"1f6ec"},{n:["seat"],u:"1f4ba"},{n:["helicopter"],u:"1f681"},{n:["suspension railway","suspension_railway"],u:"1f69f"},{n:["mountain cableway","mountain_cableway"],u:"1f6a0"},{n:["aerial tramway","aerial_tramway"],u:"1f6a1"},{n:["satellite"],u:"1f6f0-fe0f"},{n:["rocket"],u:"1f680"},{n:["flying saucer","flying_saucer"],u:"1f6f8"},{n:["bellhop_bell"],u:"1f6ce-fe0f"},{n:["door"],u:"1f6aa"},{n:["bed"],u:"1f6cf-fe0f"},{n:["couch_and_lamp"],u:"1f6cb-fe0f"},{n:["toilet"],u:"1f6bd"},{n:["shower"],u:"1f6bf"},{n:["bathtub"],u:"1f6c1"},{n:["hourglass"],u:"231b"},{n:["hourglass with flowing sand","hourglass_flowing_sand"],u:"23f3"},{n:["watch"],u:"231a"},{n:["alarm clock","alarm_clock"],u:"23f0"},{n:["stopwatch"],u:"23f1-fe0f"},{n:["timer_clock"],u:"23f2-fe0f"},{n:["mantelpiece_clock"],u:"1f570-fe0f"},{n:["clock face twelve oclock","clock12"],u:"1f55b"},{n:["clock face twelve-thirty","clock1230"],u:"1f567"},{n:["clock face one oclock","clock1"],u:"1f550"},{n:["clock face one-thirty","clock130"],u:"1f55c"},{n:["clock face two oclock","clock2"],u:"1f551"},{n:["clock face two-thirty","clock230"],u:"1f55d"},{n:["clock face three oclock","clock3"],u:"1f552"},{n:["clock face three-thirty","clock330"],u:"1f55e"},{n:["clock face four oclock","clock4"],u:"1f553"},{n:["clock face four-thirty","clock430"],u:"1f55f"},{n:["clock face five oclock","clock5"],u:"1f554"},{n:["clock face five-thirty","clock530"],u:"1f560"},{n:["clock face six oclock","clock6"],u:"1f555"},{n:["clock face six-thirty","clock630"],u:"1f561"},{n:["clock face seven oclock","clock7"],u:"1f556"},{n:["clock face seven-thirty","clock730"],u:"1f562"},{n:["clock face eight oclock","clock8"],u:"1f557"},{n:["clock face eight-thirty","clock830"],u:"1f563"},{n:["clock face nine oclock","clock9"],u:"1f558"},{n:["clock face nine-thirty","clock930"],u:"1f564"},{n:["clock face ten oclock","clock10"],u:"1f559"},{n:["clock face ten-thirty","clock1030"],u:"1f565"},{n:["clock face eleven oclock","clock11"],u:"1f55a"},{n:["clock face eleven-thirty","clock1130"],u:"1f566"},{n:["new moon symbol","new_moon"],u:"1f311"},{n:["waxing crescent moon symbol","waxing_crescent_moon"],u:"1f312"},{n:["first quarter moon symbol","first_quarter_moon"],u:"1f313"},{n:["waxing gibbous moon symbol","moon","waxing_gibbous_moon"],u:"1f314"},{n:["full moon symbol","full_moon"],u:"1f315"},{n:["waning gibbous moon symbol","waning_gibbous_moon"],u:"1f316"},{n:["last quarter moon symbol","last_quarter_moon"],u:"1f317"},{n:["waning crescent moon symbol","waning_crescent_moon"],u:"1f318"},{n:["crescent moon","crescent_moon"],u:"1f319"},{n:["new moon with face","new_moon_with_face"],u:"1f31a"},{n:["first quarter moon with face","first_quarter_moon_with_face"],u:"1f31b"},{n:["last quarter moon with face","last_quarter_moon_with_face"],u:"1f31c"},{n:["thermometer"],u:"1f321-fe0f"},{n:["black sun with rays","sunny"],u:"2600-fe0f"},{n:["full moon with face","full_moon_with_face"],u:"1f31d"},{n:["sun with face","sun_with_face"],u:"1f31e"},{n:["white medium star","star"],u:"2b50"},{n:["glowing star","star2"],u:"1f31f"},{n:["shooting star","stars"],u:"1f320"},{n:["cloud"],u:"2601-fe0f"},{n:["sun behind cloud","partly_sunny"],u:"26c5"},{n:["thunder_cloud_and_rain"],u:"26c8-fe0f"},{n:["mostly_sunny","sun_small_cloud"],u:"1f324-fe0f"},{n:["barely_sunny","sun_behind_cloud"],u:"1f325-fe0f"},{n:["partly_sunny_rain","sun_behind_rain_cloud"],u:"1f326-fe0f"},{n:["rain_cloud"],u:"1f327-fe0f"},{n:["snow_cloud"],u:"1f328-fe0f"},{n:["lightning","lightning_cloud"],u:"1f329-fe0f"},{n:["tornado","tornado_cloud"],u:"1f32a-fe0f"},{n:["fog"],u:"1f32b-fe0f"},{n:["wind_blowing_face"],u:"1f32c-fe0f"},{n:["cyclone"],u:"1f300"},{n:["rainbow"],u:"1f308"},{n:["closed umbrella","closed_umbrella"],u:"1f302"},{n:["umbrella"],u:"2602-fe0f"},{n:["umbrella with rain drops","umbrella_with_rain_drops"],u:"2614"},{n:["umbrella_on_ground"],u:"26f1-fe0f"},{n:["high voltage sign","zap"],u:"26a1"},{n:["snowflake"],u:"2744-fe0f"},{n:["snowman"],u:"2603-fe0f"},{n:["snowman without snow","snowman_without_snow"],u:"26c4"},{n:["comet"],u:"2604-fe0f"},{n:["fire"],u:"1f525"},{n:["droplet"],u:"1f4a7"},{n:["water wave","ocean"],u:"1f30a"}],objects:[{n:["speaker with cancellation stroke","mute"],u:"1f507"},{n:["speaker"],u:"1f508"},{n:["speaker with one sound wave","sound"],u:"1f509"},{n:["speaker with three sound waves","loud_sound"],u:"1f50a"},{n:["public address loudspeaker","loudspeaker"],u:"1f4e2"},{n:["cheering megaphone","mega"],u:"1f4e3"},{n:["postal horn","postal_horn"],u:"1f4ef"},{n:["bell"],u:"1f514"},{n:["bell with cancellation stroke","no_bell"],u:"1f515"},{n:["musical score","musical_score"],u:"1f3bc"},{n:["musical note","musical_note"],u:"1f3b5"},{n:["multiple musical notes","notes"],u:"1f3b6"},{n:["studio_microphone"],u:"1f399-fe0f"},{n:["level_slider"],u:"1f39a-fe0f"},{n:["control_knobs"],u:"1f39b-fe0f"},{n:["microphone"],u:"1f3a4"},{n:["headphone","headphones"],u:"1f3a7"},{n:["radio"],u:"1f4fb"},{n:["saxophone"],u:"1f3b7"},{n:["guitar"],u:"1f3b8"},{n:["musical keyboard","musical_keyboard"],u:"1f3b9"},{n:["trumpet"],u:"1f3ba"},{n:["violin"],u:"1f3bb"},{n:["drum with drumsticks","drum_with_drumsticks"],u:"1f941"},{n:["mobile phone","iphone"],u:"1f4f1"},{n:["mobile phone with rightwards arrow at left","calling"],u:"1f4f2"},{n:["black telephone","phone","telephone"],u:"260e-fe0f"},{n:["telephone receiver","telephone_receiver"],u:"1f4de"},{n:["pager"],u:"1f4df"},{n:["fax machine","fax"],u:"1f4e0"},{n:["battery"],u:"1f50b"},{n:["electric plug","electric_plug"],u:"1f50c"},{n:["personal computer","computer"],u:"1f4bb"},{n:["desktop_computer"],u:"1f5a5-fe0f"},{n:["printer"],u:"1f5a8-fe0f"},{n:["keyboard"],u:"2328-fe0f"},{n:["three_button_mouse"],u:"1f5b1-fe0f"},{n:["trackball"],u:"1f5b2-fe0f"},{n:["minidisc"],u:"1f4bd"},{n:["floppy disk","floppy_disk"],u:"1f4be"},{n:["optical disc","cd"],u:"1f4bf"},{n:["dvd"],u:"1f4c0"},{n:["movie camera","movie_camera"],u:"1f3a5"},{n:["film_frames"],u:"1f39e-fe0f"},{n:["film_projector"],u:"1f4fd-fe0f"},{n:["clapper board","clapper"],u:"1f3ac"},{n:["television","tv"],u:"1f4fa"},{n:["camera"],u:"1f4f7"},{n:["camera with flash","camera_with_flash"],u:"1f4f8"},{n:["video camera","video_camera"],u:"1f4f9"},{n:["videocassette","vhs"],u:"1f4fc"},{n:["left-pointing magnifying glass","mag"],u:"1f50d"},{n:["right-pointing magnifying glass","mag_right"],u:"1f50e"},{n:["microscope"],u:"1f52c"},{n:["telescope"],u:"1f52d"},{n:["satellite antenna","satellite_antenna"],u:"1f4e1"},{n:["candle"],u:"1f56f-fe0f"},{n:["electric light bulb","bulb"],u:"1f4a1"},{n:["electric torch","flashlight"],u:"1f526"},{n:["izakaya lantern","izakaya_lantern","lantern"],u:"1f3ee"},{n:["notebook with decorative cover","notebook_with_decorative_cover"],u:"1f4d4"},{n:["closed book","closed_book"],u:"1f4d5"},{n:["open book","book","open_book"],u:"1f4d6"},{n:["green book","green_book"],u:"1f4d7"},{n:["blue book","blue_book"],u:"1f4d8"},{n:["orange book","orange_book"],u:"1f4d9"},{n:["books"],u:"1f4da"},{n:["notebook"],u:"1f4d3"},{n:["ledger"],u:"1f4d2"},{n:["page with curl","page_with_curl"],u:"1f4c3"},{n:["scroll"],u:"1f4dc"},{n:["page facing up","page_facing_up"],u:"1f4c4"},{n:["newspaper"],u:"1f4f0"},{n:["rolled_up_newspaper"],u:"1f5de-fe0f"},{n:["bookmark tabs","bookmark_tabs"],u:"1f4d1"},{n:["bookmark"],u:"1f516"},{n:["label"],u:"1f3f7-fe0f"},{n:["money bag","moneybag"],u:"1f4b0"},{n:["banknote with yen sign","yen"],u:"1f4b4"},{n:["banknote with dollar sign","dollar"],u:"1f4b5"},{n:["banknote with euro sign","euro"],u:"1f4b6"},{n:["banknote with pound sign","pound"],u:"1f4b7"},{n:["money with wings","money_with_wings"],u:"1f4b8"},{n:["credit card","credit_card"],u:"1f4b3"},{n:["chart with upwards trend and yen sign","chart"],u:"1f4b9"},{n:["currency exchange","currency_exchange"],u:"1f4b1"},{n:["heavy dollar sign","heavy_dollar_sign"],u:"1f4b2"},{n:["envelope","email"],u:"2709-fe0f"},{n:["e-mail symbol","e-mail"],u:"1f4e7"},{n:["incoming envelope","incoming_envelope"],u:"1f4e8"},{n:["envelope with downwards arrow above","envelope_with_arrow"],u:"1f4e9"},{n:["outbox tray","outbox_tray"],u:"1f4e4"},{n:["inbox tray","inbox_tray"],u:"1f4e5"},{n:["package"],u:"1f4e6"},{n:["closed mailbox with raised flag","mailbox"],u:"1f4eb"},{n:["closed mailbox with lowered flag","mailbox_closed"],u:"1f4ea"},{n:["open mailbox with raised flag","mailbox_with_mail"],u:"1f4ec"},{n:["open mailbox with lowered flag","mailbox_with_no_mail"],u:"1f4ed"},{n:["postbox"],u:"1f4ee"},{n:["ballot_box_with_ballot"],u:"1f5f3-fe0f"},{n:["pencil","pencil2"],u:"270f-fe0f"},{n:["black nib","black_nib"],u:"2712-fe0f"},{n:["lower_left_fountain_pen"],u:"1f58b-fe0f"},{n:["lower_left_ballpoint_pen"],u:"1f58a-fe0f"},{n:["lower_left_paintbrush"],u:"1f58c-fe0f"},{n:["lower_left_crayon"],u:"1f58d-fe0f"},{n:["memo","pencil"],u:"1f4dd"},{n:["briefcase"],u:"1f4bc"},{n:["file folder","file_folder"],u:"1f4c1"},{n:["open file folder","open_file_folder"],u:"1f4c2"},{n:["card_index_dividers"],u:"1f5c2-fe0f"},{n:["calendar","date"],u:"1f4c5"},{n:["tear-off calendar","calendar"],u:"1f4c6"},{n:["spiral_note_pad"],u:"1f5d2-fe0f"},{n:["spiral_calendar_pad"],u:"1f5d3-fe0f"},{n:["card index","card_index"],u:"1f4c7"},{n:["chart with upwards trend","chart_with_upwards_trend"],u:"1f4c8"},{n:["chart with downwards trend","chart_with_downwards_trend"],u:"1f4c9"},{n:["bar chart","bar_chart"],u:"1f4ca"},{n:["clipboard"],u:"1f4cb"},{n:["pushpin"],u:"1f4cc"},{n:["round pushpin","round_pushpin"],u:"1f4cd"},{n:["paperclip"],u:"1f4ce"},{n:["linked_paperclips"],u:"1f587-fe0f"},{n:["straight ruler","straight_ruler"],u:"1f4cf"},{n:["triangular ruler","triangular_ruler"],u:"1f4d0"},{n:["black scissors","scissors"],u:"2702-fe0f"},{n:["card_file_box"],u:"1f5c3-fe0f"},{n:["file_cabinet"],u:"1f5c4-fe0f"},{n:["wastebasket"],u:"1f5d1-fe0f"},{n:["lock"],u:"1f512"},{n:["open lock","unlock"],u:"1f513"},{n:["lock with ink pen","lock_with_ink_pen"],u:"1f50f"},{n:["closed lock with key","closed_lock_with_key"],u:"1f510"},{n:["key"],u:"1f511"},{n:["old_key"],u:"1f5dd-fe0f"},{n:["hammer"],u:"1f528"},{n:["pick"],u:"26cf-fe0f"},{n:["hammer_and_pick"],u:"2692-fe0f"},{n:["hammer_and_wrench"],u:"1f6e0-fe0f"},{n:["dagger_knife"],u:"1f5e1-fe0f"},{n:["crossed_swords"],u:"2694-fe0f"},{n:["pistol","gun"],u:"1f52b"},{n:["bow and arrow","bow_and_arrow"],u:"1f3f9"},{n:["shield"],u:"1f6e1-fe0f"},{n:["wrench"],u:"1f527"},{n:["nut and bolt","nut_and_bolt"],u:"1f529"},{n:["gear"],u:"2699-fe0f"},{n:["compression"],u:"1f5dc-fe0f"},{n:["alembic"],u:"2697-fe0f"},{n:["scales"],u:"2696-fe0f"},{n:["link symbol","link"],u:"1f517"},{n:["chains"],u:"26d3-fe0f"},{n:["syringe"],u:"1f489"},{n:["pill"],u:"1f48a"},{n:["smoking symbol","smoking"],u:"1f6ac"},{n:["coffin"],u:"26b0-fe0f"},{n:["funeral_urn"],u:"26b1-fe0f"},{n:["moyai"],u:"1f5ff"},{n:["oil_drum"],u:"1f6e2-fe0f"},{n:["crystal ball","crystal_ball"],u:"1f52e"},{n:["shopping trolley","shopping_trolley"],u:"1f6d2"}],symbols:[{n:["automated teller machine","atm"],u:"1f3e7"},{n:["put litter in its place symbol","put_litter_in_its_place"],u:"1f6ae"},{n:["potable water symbol","potable_water"],u:"1f6b0"},{n:["wheelchair symbol","wheelchair"],u:"267f"},{n:["mens symbol","mens"],u:"1f6b9"},{n:["womens symbol","womens"],u:"1f6ba"},{n:["restroom"],u:"1f6bb"},{n:["baby symbol","baby_symbol"],u:"1f6bc"},{n:["water closet","wc"],u:"1f6be"},{n:["passport control","passport_control"],u:"1f6c2"},{n:["customs"],u:"1f6c3"},{n:["baggage claim","baggage_claim"],u:"1f6c4"},{n:["left luggage","left_luggage"],u:"1f6c5"},{n:["warning sign","warning"],u:"26a0-fe0f"},{n:["children crossing","children_crossing"],u:"1f6b8"},{n:["no entry","no_entry"],u:"26d4"},{n:["no entry sign","no_entry_sign"],u:"1f6ab"},{n:["no bicycles","no_bicycles"],u:"1f6b3"},{n:["no smoking symbol","no_smoking"],u:"1f6ad"},{n:["do not litter symbol","do_not_litter"],u:"1f6af"},{n:["non-potable water symbol","non-potable_water"],u:"1f6b1"},{n:["no pedestrians","no_pedestrians"],u:"1f6b7"},{n:["no mobile phones","no_mobile_phones"],u:"1f4f5"},{n:["no one under eighteen symbol","underage"],u:"1f51e"},{n:["radioactive_sign"],u:"2622-fe0f"},{n:["biohazard_sign"],u:"2623-fe0f"},{n:["upwards black arrow","arrow_up"],u:"2b06-fe0f"},{n:["north east arrow","arrow_upper_right"],u:"2197-fe0f"},{n:["black rightwards arrow","arrow_right"],u:"27a1-fe0f"},{n:["south east arrow","arrow_lower_right"],u:"2198-fe0f"},{n:["downwards black arrow","arrow_down"],u:"2b07-fe0f"},{n:["south west arrow","arrow_lower_left"],u:"2199-fe0f"},{n:["leftwards black arrow","arrow_left"],u:"2b05-fe0f"},{n:["north west arrow","arrow_upper_left"],u:"2196-fe0f"},{n:["up down arrow","arrow_up_down"],u:"2195-fe0f"},{n:["left right arrow","left_right_arrow"],u:"2194-fe0f"},{n:["leftwards arrow with hook","leftwards_arrow_with_hook"],u:"21a9-fe0f"},{n:["rightwards arrow with hook","arrow_right_hook"],u:"21aa-fe0f"},{n:["arrow pointing rightwards then curving upwards","arrow_heading_up"],u:"2934-fe0f"},{n:["arrow pointing rightwards then curving downwards","arrow_heading_down"],u:"2935-fe0f"},{n:["clockwise downwards and upwards open circle arrows","arrows_clockwise"],u:"1f503"},{n:["anticlockwise downwards and upwards open circle arrows","arrows_counterclockwise"],u:"1f504"},{n:["back with leftwards arrow above","back"],u:"1f519"},{n:["end with leftwards arrow above","end"],u:"1f51a"},{n:["on with exclamation mark with left right arrow above","on"],u:"1f51b"},{n:["soon with rightwards arrow above","soon"],u:"1f51c"},{n:["top with upwards arrow above","top"],u:"1f51d"},{n:["place of worship","place_of_worship"],u:"1f6d0"},{n:["atom_symbol"],u:"269b-fe0f"},{n:["om_symbol"],u:"1f549-fe0f"},{n:["star_of_david"],u:"2721-fe0f"},{n:["wheel_of_dharma"],u:"2638-fe0f"},{n:["yin_yang"],u:"262f-fe0f"},{n:["latin_cross"],u:"271d-fe0f"},{n:["orthodox_cross"],u:"2626-fe0f"},{n:["star_and_crescent"],u:"262a-fe0f"},{n:["peace_symbol"],u:"262e-fe0f"},{n:["menorah with nine branches","menorah_with_nine_branches"],u:"1f54e"},{n:["six pointed star with middle dot","six_pointed_star"],u:"1f52f"},{n:["aries"],u:"2648"},{n:["taurus"],u:"2649"},{n:["gemini"],u:"264a"},{n:["cancer"],u:"264b"},{n:["leo"],u:"264c"},{n:["virgo"],u:"264d"},{n:["libra"],u:"264e"},{n:["scorpius"],u:"264f"},{n:["sagittarius"],u:"2650"},{n:["capricorn"],u:"2651"},{n:["aquarius"],u:"2652"},{n:["pisces"],u:"2653"},{n:["ophiuchus"],u:"26ce"},{n:["twisted rightwards arrows","twisted_rightwards_arrows"],u:"1f500"},{n:["clockwise rightwards and leftwards open circle arrows","repeat"],u:"1f501"},{n:["clockwise rightwards and leftwards open circle arrows with circled one overlay","repeat_one"],u:"1f502"},{n:["black right-pointing triangle","arrow_forward"],u:"25b6-fe0f"},{n:["black right-pointing double triangle","fast_forward"],u:"23e9"},{n:["black_right_pointing_double_triangle_with_vertical_bar"],u:"23ed-fe0f"},{n:["black_right_pointing_triangle_with_double_vertical_bar"],u:"23ef-fe0f"},{n:["black left-pointing triangle","arrow_backward"],u:"25c0-fe0f"},{n:["black left-pointing double triangle","rewind"],u:"23ea"},{n:["black_left_pointing_double_triangle_with_vertical_bar"],u:"23ee-fe0f"},{n:["up-pointing small red triangle","arrow_up_small"],u:"1f53c"},{n:["black up-pointing double triangle","arrow_double_up"],u:"23eb"},{n:["down-pointing small red triangle","arrow_down_small"],u:"1f53d"},{n:["black down-pointing double triangle","arrow_double_down"],u:"23ec"},{n:["double_vertical_bar"],u:"23f8-fe0f"},{n:["black_square_for_stop"],u:"23f9-fe0f"},{n:["black_circle_for_record"],u:"23fa-fe0f"},{n:["eject"],u:"23cf-fe0f"},{n:["cinema"],u:"1f3a6"},{n:["low brightness symbol","low_brightness"],u:"1f505"},{n:["high brightness symbol","high_brightness"],u:"1f506"},{n:["antenna with bars","signal_strength"],u:"1f4f6"},{n:["vibration mode","vibration_mode"],u:"1f4f3"},{n:["mobile phone off","mobile_phone_off"],u:"1f4f4"},{n:["female_sign"],u:"2640-fe0f"},{n:["male_sign"],u:"2642-fe0f"},{n:["medical_symbol","staff_of_aesculapius"],u:"2695-fe0f"},{n:["black universal recycling symbol","recycle"],u:"267b-fe0f"},{n:["fleur_de_lis"],u:"269c-fe0f"},{n:["trident emblem","trident"],u:"1f531"},{n:["name badge","name_badge"],u:"1f4db"},{n:["japanese symbol for beginner","beginner"],u:"1f530"},{n:["heavy large circle","o"],u:"2b55"},{n:["white heavy check mark","white_check_mark"],u:"2705"},{n:["ballot box with check","ballot_box_with_check"],u:"2611-fe0f"},{n:["heavy check mark","heavy_check_mark"],u:"2714-fe0f"},{n:["heavy multiplication x","heavy_multiplication_x"],u:"2716-fe0f"},{n:["cross mark","x"],u:"274c"},{n:["negative squared cross mark","negative_squared_cross_mark"],u:"274e"},{n:["heavy plus sign","heavy_plus_sign"],u:"2795"},{n:["heavy minus sign","heavy_minus_sign"],u:"2796"},{n:["heavy division sign","heavy_division_sign"],u:"2797"},{n:["curly loop","curly_loop"],u:"27b0"},{n:["double curly loop","loop"],u:"27bf"},{n:["part alternation mark","part_alternation_mark"],u:"303d-fe0f"},{n:["eight spoked asterisk","eight_spoked_asterisk"],u:"2733-fe0f"},{n:["eight pointed black star","eight_pointed_black_star"],u:"2734-fe0f"},{n:["sparkle"],u:"2747-fe0f"},{n:["double exclamation mark","bangbang"],u:"203c-fe0f"},{n:["exclamation question mark","interrobang"],u:"2049-fe0f"},{n:["black question mark ornament","question"],u:"2753"},{n:["white question mark ornament","grey_question"],u:"2754"},{n:["white exclamation mark ornament","grey_exclamation"],u:"2755"},{n:["heavy exclamation mark symbol","exclamation","heavy_exclamation_mark"],u:"2757"},{n:["wavy dash","wavy_dash"],u:"3030-fe0f"},{n:["copyright sign","copyright"],u:"00a9-fe0f"},{n:["registered sign","registered"],u:"00ae-fe0f"},{n:["trade mark sign","tm"],u:"2122-fe0f"},{n:["hash key","hash"],u:"0023-fe0f-20e3"},{n:["keycap_star"],u:"002a-fe0f-20e3"},{n:["keycap 0","zero"],u:"0030-fe0f-20e3"},{n:["keycap 1","one"],u:"0031-fe0f-20e3"},{n:["keycap 2","two"],u:"0032-fe0f-20e3"},{n:["keycap 3","three"],u:"0033-fe0f-20e3"},{n:["keycap 4","four"],u:"0034-fe0f-20e3"},{n:["keycap 5","five"],u:"0035-fe0f-20e3"},{n:["keycap 6","six"],u:"0036-fe0f-20e3"},{n:["keycap 7","seven"],u:"0037-fe0f-20e3"},{n:["keycap 8","eight"],u:"0038-fe0f-20e3"},{n:["keycap 9","nine"],u:"0039-fe0f-20e3"},{n:["keycap ten","keycap_ten"],u:"1f51f"},{n:["hundred points symbol","100"],u:"1f4af"},{n:["input symbol for latin capital letters","capital_abcd"],u:"1f520"},{n:["input symbol for latin small letters","abcd"],u:"1f521"},{n:["input symbol for numbers","1234"],u:"1f522"},{n:["input symbol for symbols","symbols"],u:"1f523"},{n:["input symbol for latin letters","abc"],u:"1f524"},{n:["negative squared latin capital letter a","a"],u:"1f170-fe0f"},{n:["negative squared ab","ab"],u:"1f18e"},{n:["negative squared latin capital letter b","b"],u:"1f171-fe0f"},{n:["squared cl","cl"],u:"1f191"},{n:["squared cool","cool"],u:"1f192"},{n:["squared free","free"],u:"1f193"},{n:["information source","information_source"],u:"2139-fe0f"},{n:["squared id","id"],u:"1f194"},{n:["circled latin capital letter m","m"],u:"24c2-fe0f"},{n:["squared new","new"],u:"1f195"},{n:["squared ng","ng"],u:"1f196"},{n:["negative squared latin capital letter o","o2"],u:"1f17e-fe0f"},{n:["squared ok","ok"],u:"1f197"},{n:["negative squared latin capital letter p","parking"],u:"1f17f-fe0f"},{n:["squared sos","sos"],u:"1f198"},{n:["squared up with exclamation mark","up"],u:"1f199"},{n:["squared vs","vs"],u:"1f19a"},{n:["squared katakana koko","koko"],u:"1f201"},{n:["squared katakana sa","sa"],u:"1f202-fe0f"},{n:["squared cjk unified ideograph-6708","u6708"],u:"1f237-fe0f"},{n:["squared cjk unified ideograph-6709","u6709"],u:"1f236"},{n:["squared cjk unified ideograph-6307","u6307"],u:"1f22f"},{n:["circled ideograph advantage","ideograph_advantage"],u:"1f250"},{n:["squared cjk unified ideograph-5272","u5272"],u:"1f239"},{n:["squared cjk unified ideograph-7121","u7121"],u:"1f21a"},{n:["squared cjk unified ideograph-7981","u7981"],u:"1f232"},{n:["circled ideograph accept","accept"],u:"1f251"},{n:["squared cjk unified ideograph-7533","u7533"],u:"1f238"},{n:["squared cjk unified ideograph-5408","u5408"],u:"1f234"},{n:["squared cjk unified ideograph-7a7a","u7a7a"],u:"1f233"},{n:["circled ideograph congratulation","congratulations"],u:"3297-fe0f"},{n:["circled ideograph secret","secret"],u:"3299-fe0f"},{n:["squared cjk unified ideograph-55b6","u55b6"],u:"1f23a"},{n:["squared cjk unified ideograph-6e80","u6e80"],u:"1f235"},{n:["black small square","black_small_square"],u:"25aa-fe0f"},{n:["white small square","white_small_square"],u:"25ab-fe0f"},{n:["white medium square","white_medium_square"],u:"25fb-fe0f"},{n:["black medium square","black_medium_square"],u:"25fc-fe0f"},{n:["white medium small square","white_medium_small_square"],u:"25fd"},{n:["black medium small square","black_medium_small_square"],u:"25fe"},{n:["black large square","black_large_square"],u:"2b1b"},{n:["white large square","white_large_square"],u:"2b1c"},{n:["large orange diamond","large_orange_diamond"],u:"1f536"},{n:["large blue diamond","large_blue_diamond"],u:"1f537"},{n:["small orange diamond","small_orange_diamond"],u:"1f538"},{n:["small blue diamond","small_blue_diamond"],u:"1f539"},{n:["up-pointing red triangle","small_red_triangle"],u:"1f53a"},{n:["down-pointing red triangle","small_red_triangle_down"],u:"1f53b"},{n:["diamond shape with a dot inside","diamond_shape_with_a_dot_inside"],u:"1f4a0"},{n:["radio button","radio_button"],u:"1f518"},{n:["black square button","black_square_button"],u:"1f532"},{n:["white square button","white_square_button"],u:"1f533"},{n:["medium white circle","white_circle"],u:"26aa"},{n:["medium black circle","black_circle"],u:"26ab"},{n:["large red circle","red_circle"],u:"1f534"},{n:["large blue circle","large_blue_circle"],u:"1f535"}],flags:[{n:["chequered flag","checkered_flag"],u:"1f3c1"},{n:["triangular flag on post","triangular_flag_on_post"],u:"1f6a9"},{n:["crossed flags","crossed_flags"],u:"1f38c"},{n:["waving black flag","waving_black_flag"],u:"1f3f4"},{n:["waving_white_flag"],u:"1f3f3-fe0f"},{n:["rainbow-flag"],u:"1f3f3-fe0f-200d-1f308"},{n:["ascension island flag","flag-ac"],u:"1f1e6-1f1e8"},{n:["andorra flag","flag-ad"],u:"1f1e6-1f1e9"},{n:["united arab emirates flag","flag-ae"],u:"1f1e6-1f1ea"},{n:["afghanistan flag","flag-af"],u:"1f1e6-1f1eb"},{n:["antigua & barbuda flag","flag-ag"],u:"1f1e6-1f1ec"},{n:["anguilla flag","flag-ai"],u:"1f1e6-1f1ee"},{n:["albania flag","flag-al"],u:"1f1e6-1f1f1"},{n:["armenia flag","flag-am"],u:"1f1e6-1f1f2"},{n:["angola flag","flag-ao"],u:"1f1e6-1f1f4"},{n:["antarctica flag","flag-aq"],u:"1f1e6-1f1f6"},{n:["argentina flag","flag-ar"],u:"1f1e6-1f1f7"},{n:["american samoa flag","flag-as"],u:"1f1e6-1f1f8"},{n:["austria flag","flag-at"],u:"1f1e6-1f1f9"},{n:["australia flag","flag-au"],u:"1f1e6-1f1fa"},{n:["aruba flag","flag-aw"],u:"1f1e6-1f1fc"},{n:["åland islands flag","flag-ax"],u:"1f1e6-1f1fd"},{n:["azerbaijan flag","flag-az"],u:"1f1e6-1f1ff"},{n:["bosnia & herzegovina flag","flag-ba"],u:"1f1e7-1f1e6"},{n:["barbados flag","flag-bb"],u:"1f1e7-1f1e7"},{n:["bangladesh flag","flag-bd"],u:"1f1e7-1f1e9"},{n:["belgium flag","flag-be"],u:"1f1e7-1f1ea"},{n:["burkina faso flag","flag-bf"],u:"1f1e7-1f1eb"},{n:["bulgaria flag","flag-bg"],u:"1f1e7-1f1ec"},{n:["bahrain flag","flag-bh"],u:"1f1e7-1f1ed"},{n:["burundi flag","flag-bi"],u:"1f1e7-1f1ee"},{n:["benin flag","flag-bj"],u:"1f1e7-1f1ef"},{n:["st. barthélemy flag","flag-bl"],u:"1f1e7-1f1f1"},{n:["bermuda flag","flag-bm"],u:"1f1e7-1f1f2"},{n:["brunei flag","flag-bn"],u:"1f1e7-1f1f3"},{n:["bolivia flag","flag-bo"],u:"1f1e7-1f1f4"},{n:["caribbean netherlands flag","flag-bq"],u:"1f1e7-1f1f6"},{n:["brazil flag","flag-br"],u:"1f1e7-1f1f7"},{n:["bahamas flag","flag-bs"],u:"1f1e7-1f1f8"},{n:["bhutan flag","flag-bt"],u:"1f1e7-1f1f9"},{n:["bouvet island flag","flag-bv"],u:"1f1e7-1f1fb"},{n:["botswana flag","flag-bw"],u:"1f1e7-1f1fc"},{n:["belarus flag","flag-by"],u:"1f1e7-1f1fe"},{n:["belize flag","flag-bz"],u:"1f1e7-1f1ff"},{n:["canada flag","flag-ca"],u:"1f1e8-1f1e6"},{n:["cocos (keeling) islands flag","flag-cc"],u:"1f1e8-1f1e8"},{n:["congo - kinshasa flag","flag-cd"],u:"1f1e8-1f1e9"},{n:["central african republic flag","flag-cf"],u:"1f1e8-1f1eb"},{n:["congo - brazzaville flag","flag-cg"],u:"1f1e8-1f1ec"},{n:["switzerland flag","flag-ch"],u:"1f1e8-1f1ed"},{n:["côte d’ivoire flag","flag-ci"],u:"1f1e8-1f1ee"},{n:["cook islands flag","flag-ck"],u:"1f1e8-1f1f0"},{n:["chile flag","flag-cl"],u:"1f1e8-1f1f1"},{n:["cameroon flag","flag-cm"],u:"1f1e8-1f1f2"},{n:["china flag","cn","flag-cn"],u:"1f1e8-1f1f3"},{n:["colombia flag","flag-co"],u:"1f1e8-1f1f4"},{n:["clipperton island flag","flag-cp"],u:"1f1e8-1f1f5"},{n:["costa rica flag","flag-cr"],u:"1f1e8-1f1f7"},{n:["cuba flag","flag-cu"],u:"1f1e8-1f1fa"},{n:["cape verde flag","flag-cv"],u:"1f1e8-1f1fb"},{n:["curaçao flag","flag-cw"],u:"1f1e8-1f1fc"},{n:["christmas island flag","flag-cx"],u:"1f1e8-1f1fd"},{n:["cyprus flag","flag-cy"],u:"1f1e8-1f1fe"},{n:["czechia flag","flag-cz"],u:"1f1e8-1f1ff"},{n:["germany flag","de","flag-de"],u:"1f1e9-1f1ea"},{n:["diego garcia flag","flag-dg"],u:"1f1e9-1f1ec"},{n:["djibouti flag","flag-dj"],u:"1f1e9-1f1ef"},{n:["denmark flag","flag-dk"],u:"1f1e9-1f1f0"},{n:["dominica flag","flag-dm"],u:"1f1e9-1f1f2"},{n:["dominican republic flag","flag-do"],u:"1f1e9-1f1f4"},{n:["algeria flag","flag-dz"],u:"1f1e9-1f1ff"},{n:["ceuta & melilla flag","flag-ea"],u:"1f1ea-1f1e6"},{n:["ecuador flag","flag-ec"],u:"1f1ea-1f1e8"},{n:["estonia flag","flag-ee"],u:"1f1ea-1f1ea"},{n:["egypt flag","flag-eg"],u:"1f1ea-1f1ec"},{n:["western sahara flag","flag-eh"],u:"1f1ea-1f1ed"},{n:["eritrea flag","flag-er"],u:"1f1ea-1f1f7"},{n:["spain flag","es","flag-es"],u:"1f1ea-1f1f8"},{n:["ethiopia flag","flag-et"],u:"1f1ea-1f1f9"},{n:["european union flag","flag-eu"],u:"1f1ea-1f1fa"},{n:["finland flag","flag-fi"],u:"1f1eb-1f1ee"},{n:["fiji flag","flag-fj"],u:"1f1eb-1f1ef"},{n:["falkland islands flag","flag-fk"],u:"1f1eb-1f1f0"},{n:["micronesia flag","flag-fm"],u:"1f1eb-1f1f2"},{n:["faroe islands flag","flag-fo"],u:"1f1eb-1f1f4"},{n:["france flag","fr","flag-fr"],u:"1f1eb-1f1f7"},{n:["gabon flag","flag-ga"],u:"1f1ec-1f1e6"},{n:["united kingdom flag","gb","uk","flag-gb"],u:"1f1ec-1f1e7"},{n:["grenada flag","flag-gd"],u:"1f1ec-1f1e9"},{n:["georgia flag","flag-ge"],u:"1f1ec-1f1ea"},{n:["french guiana flag","flag-gf"],u:"1f1ec-1f1eb"},{n:["guernsey flag","flag-gg"],u:"1f1ec-1f1ec"},{n:["ghana flag","flag-gh"],u:"1f1ec-1f1ed"},{n:["gibraltar flag","flag-gi"],u:"1f1ec-1f1ee"},{n:["greenland flag","flag-gl"],u:"1f1ec-1f1f1"},{n:["gambia flag","flag-gm"],u:"1f1ec-1f1f2"},{n:["guinea flag","flag-gn"],u:"1f1ec-1f1f3"},{n:["guadeloupe flag","flag-gp"],u:"1f1ec-1f1f5"},{n:["equatorial guinea flag","flag-gq"],u:"1f1ec-1f1f6"},{n:["greece flag","flag-gr"],u:"1f1ec-1f1f7"},{n:["south georgia & south sandwich islands flag","flag-gs"],u:"1f1ec-1f1f8"},{n:["guatemala flag","flag-gt"],u:"1f1ec-1f1f9"},{n:["guam flag","flag-gu"],u:"1f1ec-1f1fa"},{n:["guinea-bissau flag","flag-gw"],u:"1f1ec-1f1fc"},{n:["guyana flag","flag-gy"],u:"1f1ec-1f1fe"},{n:["hong kong sar china flag","flag-hk"],u:"1f1ed-1f1f0"},{n:["heard & mcdonald islands flag","flag-hm"],u:"1f1ed-1f1f2"},{n:["honduras flag","flag-hn"],u:"1f1ed-1f1f3"},{n:["croatia flag","flag-hr"],u:"1f1ed-1f1f7"},{n:["haiti flag","flag-ht"],u:"1f1ed-1f1f9"},{n:["hungary flag","flag-hu"],u:"1f1ed-1f1fa"},{n:["canary islands flag","flag-ic"],u:"1f1ee-1f1e8"},{n:["indonesia flag","flag-id"],u:"1f1ee-1f1e9"},{n:["ireland flag","flag-ie"],u:"1f1ee-1f1ea"},{n:["israel flag","flag-il"],u:"1f1ee-1f1f1"},{n:["isle of man flag","flag-im"],u:"1f1ee-1f1f2"},{n:["india flag","flag-in"],u:"1f1ee-1f1f3"},{n:["british indian ocean territory flag","flag-io"],u:"1f1ee-1f1f4"},{n:["iraq flag","flag-iq"],u:"1f1ee-1f1f6"},{n:["iran flag","flag-ir"],u:"1f1ee-1f1f7"},{n:["iceland flag","flag-is"],u:"1f1ee-1f1f8"},{n:["italy flag","it","flag-it"],u:"1f1ee-1f1f9"},{n:["jersey flag","flag-je"],u:"1f1ef-1f1ea"},{n:["jamaica flag","flag-jm"],u:"1f1ef-1f1f2"},{n:["jordan flag","flag-jo"],u:"1f1ef-1f1f4"},{n:["japan flag","jp","flag-jp"],u:"1f1ef-1f1f5"},{n:["kenya flag","flag-ke"],u:"1f1f0-1f1ea"},{n:["kyrgyzstan flag","flag-kg"],u:"1f1f0-1f1ec"},{n:["cambodia flag","flag-kh"],u:"1f1f0-1f1ed"},{n:["kiribati flag","flag-ki"],u:"1f1f0-1f1ee"},{n:["comoros flag","flag-km"],u:"1f1f0-1f1f2"},{n:["st. kitts & nevis flag","flag-kn"],u:"1f1f0-1f1f3"},{n:["north korea flag","flag-kp"],u:"1f1f0-1f1f5"},{n:["south korea flag","kr","flag-kr"],u:"1f1f0-1f1f7"},{n:["kuwait flag","flag-kw"],u:"1f1f0-1f1fc"},{n:["cayman islands flag","flag-ky"],u:"1f1f0-1f1fe"},{n:["kazakhstan flag","flag-kz"],u:"1f1f0-1f1ff"},{n:["laos flag","flag-la"],u:"1f1f1-1f1e6"},{n:["lebanon flag","flag-lb"],u:"1f1f1-1f1e7"},{n:["st. lucia flag","flag-lc"],u:"1f1f1-1f1e8"},{n:["liechtenstein flag","flag-li"],u:"1f1f1-1f1ee"},{n:["sri lanka flag","flag-lk"],u:"1f1f1-1f1f0"},{n:["liberia flag","flag-lr"],u:"1f1f1-1f1f7"},{n:["lesotho flag","flag-ls"],u:"1f1f1-1f1f8"},{n:["lithuania flag","flag-lt"],u:"1f1f1-1f1f9"},{n:["luxembourg flag","flag-lu"],u:"1f1f1-1f1fa"},{n:["latvia flag","flag-lv"],u:"1f1f1-1f1fb"},{n:["libya flag","flag-ly"],u:"1f1f1-1f1fe"},{n:["morocco flag","flag-ma"],u:"1f1f2-1f1e6"},{n:["monaco flag","flag-mc"],u:"1f1f2-1f1e8"},{n:["moldova flag","flag-md"],u:"1f1f2-1f1e9"},{n:["montenegro flag","flag-me"],u:"1f1f2-1f1ea"},{n:["st. martin flag","flag-mf"],u:"1f1f2-1f1eb"},{n:["madagascar flag","flag-mg"],u:"1f1f2-1f1ec"},{n:["marshall islands flag","flag-mh"],u:"1f1f2-1f1ed"},{n:["macedonia flag","flag-mk"],u:"1f1f2-1f1f0"},{n:["mali flag","flag-ml"],u:"1f1f2-1f1f1"},{n:["myanmar (burma) flag","flag-mm"],u:"1f1f2-1f1f2"},{n:["mongolia flag","flag-mn"],u:"1f1f2-1f1f3"},{n:["macau sar china flag","flag-mo"],u:"1f1f2-1f1f4"},{n:["northern mariana islands flag","flag-mp"],u:"1f1f2-1f1f5"},{n:["martinique flag","flag-mq"],u:"1f1f2-1f1f6"},{n:["mauritania flag","flag-mr"],u:"1f1f2-1f1f7"},{n:["montserrat flag","flag-ms"],u:"1f1f2-1f1f8"},{n:["malta flag","flag-mt"],u:"1f1f2-1f1f9"},{n:["mauritius flag","flag-mu"],u:"1f1f2-1f1fa"},{n:["maldives flag","flag-mv"],u:"1f1f2-1f1fb"},{n:["malawi flag","flag-mw"],u:"1f1f2-1f1fc"},{n:["mexico flag","flag-mx"],u:"1f1f2-1f1fd"},{n:["malaysia flag","flag-my"],u:"1f1f2-1f1fe"},{n:["mozambique flag","flag-mz"],u:"1f1f2-1f1ff"},{n:["namibia flag","flag-na"],u:"1f1f3-1f1e6"},{n:["new caledonia flag","flag-nc"],u:"1f1f3-1f1e8"},{n:["niger flag","flag-ne"],u:"1f1f3-1f1ea"},{n:["norfolk island flag","flag-nf"],u:"1f1f3-1f1eb"},{n:["nigeria flag","flag-ng"],u:"1f1f3-1f1ec"},{n:["nicaragua flag","flag-ni"],u:"1f1f3-1f1ee"},{n:["netherlands flag","flag-nl"],u:"1f1f3-1f1f1"},{n:["norway flag","flag-no"],u:"1f1f3-1f1f4"},{n:["nepal flag","flag-np"],u:"1f1f3-1f1f5"},{n:["nauru flag","flag-nr"],u:"1f1f3-1f1f7"},{n:["niue flag","flag-nu"],u:"1f1f3-1f1fa"},{n:["new zealand flag","flag-nz"],u:"1f1f3-1f1ff"},{n:["oman flag","flag-om"],u:"1f1f4-1f1f2"},{n:["panama flag","flag-pa"],u:"1f1f5-1f1e6"},{n:["peru flag","flag-pe"],u:"1f1f5-1f1ea"},{n:["french polynesia flag","flag-pf"],u:"1f1f5-1f1eb"},{n:["papua new guinea flag","flag-pg"],u:"1f1f5-1f1ec"},{n:["philippines flag","flag-ph"],u:"1f1f5-1f1ed"},{n:["pakistan flag","flag-pk"],u:"1f1f5-1f1f0"},{n:["poland flag","flag-pl"],u:"1f1f5-1f1f1"},{n:["st. pierre & miquelon flag","flag-pm"],u:"1f1f5-1f1f2"},{n:["pitcairn islands flag","flag-pn"],u:"1f1f5-1f1f3"},{n:["puerto rico flag","flag-pr"],u:"1f1f5-1f1f7"},{n:["palestinian territories flag","flag-ps"],u:"1f1f5-1f1f8"},{n:["portugal flag","flag-pt"],u:"1f1f5-1f1f9"},{n:["palau flag","flag-pw"],u:"1f1f5-1f1fc"},{n:["paraguay flag","flag-py"],u:"1f1f5-1f1fe"},{n:["qatar flag","flag-qa"],u:"1f1f6-1f1e6"},{n:["réunion flag","flag-re"],u:"1f1f7-1f1ea"},{n:["romania flag","flag-ro"],u:"1f1f7-1f1f4"},{n:["serbia flag","flag-rs"],u:"1f1f7-1f1f8"},{n:["russia flag","ru","flag-ru"],u:"1f1f7-1f1fa"},{n:["rwanda flag","flag-rw"],u:"1f1f7-1f1fc"},{n:["saudi arabia flag","flag-sa"],u:"1f1f8-1f1e6"},{n:["solomon islands flag","flag-sb"],u:"1f1f8-1f1e7"},{n:["seychelles flag","flag-sc"],u:"1f1f8-1f1e8"},{n:["sudan flag","flag-sd"],u:"1f1f8-1f1e9"},{n:["sweden flag","flag-se"],u:"1f1f8-1f1ea"},{n:["singapore flag","flag-sg"],u:"1f1f8-1f1ec"},{n:["st. helena flag","flag-sh"],u:"1f1f8-1f1ed"},{n:["slovenia flag","flag-si"],u:"1f1f8-1f1ee"},{n:["svalbard & jan mayen flag","flag-sj"],u:"1f1f8-1f1ef"},{n:["slovakia flag","flag-sk"],u:"1f1f8-1f1f0"},{n:["sierra leone flag","flag-sl"],u:"1f1f8-1f1f1"},{n:["san marino flag","flag-sm"],u:"1f1f8-1f1f2"},{n:["senegal flag","flag-sn"],u:"1f1f8-1f1f3"},{n:["somalia flag","flag-so"],u:"1f1f8-1f1f4"},{n:["suriname flag","flag-sr"],u:"1f1f8-1f1f7"},{n:["south sudan flag","flag-ss"],u:"1f1f8-1f1f8"},{n:["são tomé & príncipe flag","flag-st"],u:"1f1f8-1f1f9"},{n:["el salvador flag","flag-sv"],u:"1f1f8-1f1fb"},{n:["sint maarten flag","flag-sx"],u:"1f1f8-1f1fd"},{n:["syria flag","flag-sy"],u:"1f1f8-1f1fe"},{n:["swaziland flag","flag-sz"],u:"1f1f8-1f1ff"},{n:["tristan da cunha flag","flag-ta"],u:"1f1f9-1f1e6"},{n:["turks & caicos islands flag","flag-tc"],u:"1f1f9-1f1e8"},{n:["chad flag","flag-td"],u:"1f1f9-1f1e9"},{n:["french southern territories flag","flag-tf"],u:"1f1f9-1f1eb"},{n:["togo flag","flag-tg"],u:"1f1f9-1f1ec"},{n:["thailand flag","flag-th"],u:"1f1f9-1f1ed"},{n:["tajikistan flag","flag-tj"],u:"1f1f9-1f1ef"},{n:["tokelau flag","flag-tk"],u:"1f1f9-1f1f0"},{n:["timor-leste flag","flag-tl"],u:"1f1f9-1f1f1"},{n:["turkmenistan flag","flag-tm"],u:"1f1f9-1f1f2"},{n:["tunisia flag","flag-tn"],u:"1f1f9-1f1f3"},{n:["tonga flag","flag-to"],u:"1f1f9-1f1f4"},{n:["turkey flag","flag-tr"],u:"1f1f9-1f1f7"},{n:["trinidad & tobago flag","flag-tt"],u:"1f1f9-1f1f9"},{n:["tuvalu flag","flag-tv"],u:"1f1f9-1f1fb"},{n:["taiwan flag","flag-tw"],u:"1f1f9-1f1fc"},{n:["tanzania flag","flag-tz"],u:"1f1f9-1f1ff"},{n:["ukraine flag","flag-ua"],u:"1f1fa-1f1e6"},{n:["uganda flag","flag-ug"],u:"1f1fa-1f1ec"},{n:["u.s. outlying islands flag","flag-um"],u:"1f1fa-1f1f2"},{n:["united nations flag","flag-un"],u:"1f1fa-1f1f3"},{n:["united states flag","us","flag-us"],u:"1f1fa-1f1f8"},{n:["uruguay flag","flag-uy"],u:"1f1fa-1f1fe"},{n:["uzbekistan flag","flag-uz"],u:"1f1fa-1f1ff"},{n:["vatican city flag","flag-va"],u:"1f1fb-1f1e6"},{n:["st. vincent & grenadines flag","flag-vc"],u:"1f1fb-1f1e8"},{n:["venezuela flag","flag-ve"],u:"1f1fb-1f1ea"},{n:["british virgin islands flag","flag-vg"],u:"1f1fb-1f1ec"},{n:["u.s. virgin islands flag","flag-vi"],u:"1f1fb-1f1ee"},{n:["vietnam flag","flag-vn"],u:"1f1fb-1f1f3"},{n:["vanuatu flag","flag-vu"],u:"1f1fb-1f1fa"},{n:["wallis & futuna flag","flag-wf"],u:"1f1fc-1f1eb"},{n:["samoa flag","flag-ws"],u:"1f1fc-1f1f8"},{n:["kosovo flag","flag-xk"],u:"1f1fd-1f1f0"},{n:["yemen flag","flag-ye"],u:"1f1fe-1f1ea"},{n:["mayotte flag","flag-yt"],u:"1f1fe-1f1f9"},{n:["south africa flag","flag-za"],u:"1f1ff-1f1e6"},{n:["zambia flag","flag-zm"],u:"1f1ff-1f1f2"},{n:["zimbabwe flag","flag-zw"],u:"1f1ff-1f1fc"},{n:["england flag","flag-england"],u:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f"},{n:["scotland flag","flag-scotland"],u:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f"},{n:["wales flag","flag-wales"],u:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f"}]},p5=[{key:"recent",title:"Recently Used",u:"1f551"},{key:"smileys_people",title:"Smiles & People",u:"1f600"},{key:"animals_nature",title:"Animals & Nature",u:"1F431"},{key:"food_drink",title:"Food & Drink",u:"2615"},{key:"activities",title:"Activities",u:"26BD"},{key:"travel_places",title:"Travel & Places",u:"1F697"},{key:"objects",title:"Objects",u:"1F4A1"},{key:"symbols",title:"Symbols",u:"1f4af"},{key:"flags",title:"Flags",u:"1f3f3-fe0f"}];const oAe=(e,t)=>t.some(n=>e instanceof n);let g5,y5;function sAe(){return g5||(g5=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function lAe(){return y5||(y5=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const b5=new WeakMap,Ng=new WeakMap,w5=new WeakMap,jg=new WeakMap,Ig=new WeakMap;function uAe(e){const t=new Promise((n,i)=>{const r=()=>{e.removeEventListener("success",a),e.removeEventListener("error",o)},a=()=>{n(aa(e.result)),r()},o=()=>{i(e.error),r()};e.addEventListener("success",a),e.addEventListener("error",o)});return t.then(n=>{n instanceof IDBCursor&&b5.set(n,e)}).catch(()=>{}),Ig.set(t,e),t}function dAe(e){if(Ng.has(e))return;const t=new Promise((n,i)=>{const r=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",o),e.removeEventListener("abort",o)},a=()=>{n(),r()},o=()=>{i(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",a),e.addEventListener("error",o),e.addEventListener("abort",o)});Ng.set(e,t)}let Wg={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Ng.get(e);if(t==="objectStoreNames")return e.objectStoreNames||w5.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return aa(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function cAe(e){Wg=e(Wg)}function fAe(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const i=e.call(Og(this),t,...n);return w5.set(i,t.sort?t.sort():[t]),aa(i)}:lAe().includes(e)?function(...t){return e.apply(Og(this),t),aa(b5.get(this))}:function(...t){return aa(e.apply(Og(this),t))}}function hAe(e){return typeof e=="function"?fAe(e):(e instanceof IDBTransaction&&dAe(e),oAe(e,sAe())?new Proxy(e,Wg):e)}function aa(e){if(e instanceof IDBRequest)return uAe(e);if(jg.has(e))return jg.get(e);const t=hAe(e);return t!==e&&(jg.set(e,t),Ig.set(t,e)),t}const Og=e=>Ig.get(e);function zg(e,t,{blocked:n,upgrade:i,blocking:r,terminated:a}={}){const o=indexedDB.open(e,t),s=aa(o);return i&&o.addEventListener("upgradeneeded",u=>{i(aa(o.result),u.oldVersion,u.newVersion,aa(o.transaction),u)}),n&&o.addEventListener("blocked",u=>n(u.oldVersion,u.newVersion,u)),s.then(u=>{a&&u.addEventListener("close",()=>a()),r&&u.addEventListener("versionchange",c=>r(c.oldVersion,c.newVersion,c))}).catch(()=>{}),s}const mAe=["get","getKey","getAll","getAllKeys","count"],pAe=["put","add","delete","clear"],Lg=new Map;function v5(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Lg.get(t))return Lg.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,r=pAe.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(r||mAe.includes(n)))return;const a=async function(o,...s){const u=this.transaction(o,r?"readwrite":"readonly");let c=u.store;return i&&(c=c.index(s.shift())),(await Promise.all([c[n](...s),r&&u.done]))[0]};return Lg.set(t,a),a}cAe(e=>({...e,get:(t,n,i)=>v5(t,n)||e.get(t,n,i),has:(t,n)=>!!v5(t,n)||e.has(t,n)}));const $g="EMJ",hs="emojis",Hg=3;async function gAe(){(await zg($g,Hg,{upgrade(t,n){t.objectStoreNames.contains(hs)||t.createObjectStore(hs,{keyPath:"id",autoIncrement:!0}).createIndex("id","id",{unique:!0})}})).close()}gAe();const yAe={native:!1,hideSearch:!0,hideGroupIcons:!1,hideGroupNames:!1,staticTexts:{},disabledGroups:[],groupNames:{},displayRecent:!1,additionalGroups:{},groupOrder:[],groupIcons:{}};async function bAe(){return await(await zg($g,Hg)).transaction(hs,"readonly").objectStore(hs).getAll()}function wAe(){const e=l.reactive({search:"",emoji:tAe,activeGroup:"",skinTone:wf,options:yAe,additionalGroups:{},recent:[],get emojis(){return{recent:this.recent,...this.options.additionalGroups,...aAe}},get disabled(){let h=Array.isArray(this.options.disabledGroups)?this.options.disabledGroups:[];return this.options.displayRecent||(h=["recent",...h]),h},get groups(){return p5.filter(h=>!this.disabled.includes(h.key))},get orderedGroupKeys(){const h=[...this.options.groupOrder,...Object.keys(this.options.additionalGroups),...p5.map(g=>g.key)];return[...new Set(h)].filter(g=>!this.disabled.includes(g))}});function t(){e.options.displayRecent&&i()}async function n(){var h;let g=await bAe();return Array.isArray(g)&&g.length?g=JSON.parse(((h=g[0])==null?void 0:h.value)||""):g=[],g}function i(){n().then(h=>{e.recent=h,c()})}const r=h=>{e.search=h},a=h=>{e.emoji=h},o=h=>{e.activeGroup=h},s=(h=wf)=>{e.skinTone=h},u=h=>{e.options=Object.assign({},e.options,h),t()};async function c(){(await zg($g,Hg)).transaction(hs,"readwrite").objectStore(hs).put({id:0,value:JSON.stringify(e.recent)})}const f=h=>{if(e.options.displayRecent!==!0)return;const g=e.recent.findIndex(y=>y.u===h.u);if(g>0&&e.recent.splice(g,1),g===0)return;const p={u:h.u,n:l.toRaw(h.n)};e.recent=[p,...e.recent],e.recent.length>24&&(e.recent.length=24),c()};return{state:l.readonly(e),updateSearch:r,updateEmoji:a,updateActiveGroup:o,updateSkinTone:s,updateOptions:u,updateSelect:f}}var _n="top",ti="bottom",ni="right",Tn="left",Rg="auto",nu=[_n,ti,ni,Tn],ms="start",iu="end",vAe="clippingParents",k5="viewport",ru="popper",kAe="reference",M5=nu.reduce(function(e,t){return e.concat([t+"-"+ms,t+"-"+iu])},[]),C5=[].concat(nu,[Rg]).reduce(function(e,t){return e.concat([t,t+"-"+ms,t+"-"+iu])},[]),MAe="beforeRead",CAe="read",xAe="afterRead",SAe="beforeMain",_Ae="main",TAe="afterMain",PAe="beforeWrite",EAe="write",AAe="afterWrite",DAe=[MAe,CAe,xAe,SAe,_Ae,TAe,PAe,EAe,AAe];function Xi(e){return e?(e.nodeName||"").toLowerCase():null}function Si(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ps(e){var t=Si(e).Element;return e instanceof t||e instanceof Element}function ii(e){var t=Si(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function x5(e){if(typeof ShadowRoot>"u")return!1;var t=Si(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function NAe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},r=t.attributes[n]||{},a=t.elements[n];!ii(a)||!Xi(a)||(Object.assign(a.style,i),Object.keys(r).forEach(function(o){var s=r[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function jAe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],a=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),s=o.reduce(function(u,c){return u[c]="",u},{});!ii(r)||!Xi(r)||(Object.assign(r.style,s),Object.keys(a).forEach(function(u){r.removeAttribute(u)}))})}}var IAe={name:"applyStyles",enabled:!0,phase:"write",fn:NAe,effect:jAe,requires:["computeStyles"]};function qi(e){return e.split("-")[0]}var so=Math.max,vf=Math.min,gs=Math.round;function ys(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),i=1,r=1;if(ii(e)&&t){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(i=gs(n.width)/o||1),a>0&&(r=gs(n.height)/a||1)}return{width:n.width/i,height:n.height/r,top:n.top/r,right:n.right/i,bottom:n.bottom/r,left:n.left/i,x:n.left/i,y:n.top/r}}function Bg(e){var t=ys(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function S5(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&x5(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Gi(e){return Si(e).getComputedStyle(e)}function WAe(e){return["table","td","th"].indexOf(Xi(e))>=0}function oa(e){return((ps(e)?e.ownerDocument:e.document)||window.document).documentElement}function kf(e){return Xi(e)==="html"?e:e.assignedSlot||e.parentNode||(x5(e)?e.host:null)||oa(e)}function _5(e){return!ii(e)||Gi(e).position==="fixed"?null:e.offsetParent}function OAe(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&ii(e)){var i=Gi(e);if(i.position==="fixed")return null}for(var r=kf(e);ii(r)&&["html","body"].indexOf(Xi(r))<0;){var a=Gi(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function au(e){for(var t=Si(e),n=_5(e);n&&WAe(n)&&Gi(n).position==="static";)n=_5(n);return n&&(Xi(n)==="html"||Xi(n)==="body"&&Gi(n).position==="static")?t:n||OAe(e)||t}function Vg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ou(e,t,n){return so(e,vf(t,n))}function zAe(e,t,n){var i=ou(e,t,n);return i>n?n:i}function T5(){return{top:0,right:0,bottom:0,left:0}}function P5(e){return Object.assign({},T5(),e)}function E5(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var LAe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,P5(typeof t!="number"?t:E5(t,nu))};function $Ae(e){var t,n=e.state,i=e.name,r=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=qi(n.placement),u=Vg(s),c=[Tn,ni].indexOf(s)>=0,f=c?"height":"width";if(!(!a||!o)){var h=LAe(r.padding,n),g=Bg(a),p=u==="y"?_n:Tn,y=u==="y"?ti:ni,v=n.rects.reference[f]+n.rects.reference[u]-o[u]-n.rects.popper[f],k=o[u]-n.rects.reference[u],w=au(a),M=w?u==="y"?w.clientHeight||0:w.clientWidth||0:0,x=v/2-k/2,S=h[p],E=M-g[f]-h[y],I=M/2-g[f]/2+x,A=ou(S,I,E),W=u;n.modifiersData[i]=(t={},t[W]=A,t.centerOffset=A-I,t)}}function HAe(e){var t=e.state,n=e.options,i=n.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||S5(t.elements.popper,r)&&(t.elements.arrow=r))}var RAe={name:"arrow",enabled:!0,phase:"main",fn:$Ae,effect:HAe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bs(e){return e.split("-")[1]}var BAe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VAe(e){var t=e.x,n=e.y,i=window,r=i.devicePixelRatio||1;return{x:gs(t*r)/r||0,y:gs(n*r)/r||0}}function A5(e){var t,n=e.popper,i=e.popperRect,r=e.placement,a=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,g=f===!0?VAe(o):typeof f=="function"?f(o):o,p=g.x,y=p===void 0?0:p,v=g.y,k=v===void 0?0:v,w=o.hasOwnProperty("x"),M=o.hasOwnProperty("y"),x=Tn,S=_n,E=window;if(c){var I=au(n),A="clientHeight",W="clientWidth";if(I===Si(n)&&(I=oa(n),Gi(I).position!=="static"&&s==="absolute"&&(A="scrollHeight",W="scrollWidth")),I=I,r===_n||(r===Tn||r===ni)&&a===iu){S=ti;var $=h&&E.visualViewport?E.visualViewport.height:I[A];k-=$-i.height,k*=u?1:-1}if(r===Tn||(r===_n||r===ti)&&a===iu){x=ni;var D=h&&E.visualViewport?E.visualViewport.width:I[W];y-=D-i.width,y*=u?1:-1}}var z=Object.assign({position:s},c&&BAe);if(u){var H;return Object.assign({},z,(H={},H[S]=M?"0":"",H[x]=w?"0":"",H.transform=(E.devicePixelRatio||1)<=1?"translate("+y+"px, "+k+"px)":"translate3d("+y+"px, "+k+"px, 0)",H))}return Object.assign({},z,(t={},t[S]=M?k+"px":"",t[x]=w?y+"px":"",t.transform="",t))}function FAe(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=i===void 0?!0:i,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,u=s===void 0?!0:s,c={placement:qi(t.placement),variation:bs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,A5(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,A5(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var UAe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:FAe,data:{}},Mf={passive:!0};function YAe(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,a=r===void 0?!0:r,o=i.resize,s=o===void 0?!0:o,u=Si(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(f){f.addEventListener("scroll",n.update,Mf)}),s&&u.addEventListener("resize",n.update,Mf),function(){a&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Mf)}),s&&u.removeEventListener("resize",n.update,Mf)}}var XAe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:YAe,data:{}},qAe={left:"right",right:"left",bottom:"top",top:"bottom"};function Cf(e){return e.replace(/left|right|bottom|top/g,function(t){return qAe[t]})}var GAe={start:"end",end:"start"};function D5(e){return e.replace(/start|end/g,function(t){return GAe[t]})}function Fg(e){var t=Si(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function Ug(e){return ys(oa(e)).left+Fg(e).scrollLeft}function KAe(e){var t=Si(e),n=oa(e),i=t.visualViewport,r=n.clientWidth,a=n.clientHeight,o=0,s=0;return i&&(r=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,s=i.offsetTop)),{width:r,height:a,x:o+Ug(e),y:s}}function QAe(e){var t,n=oa(e),i=Fg(e),r=(t=e.ownerDocument)==null?void 0:t.body,a=so(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=so(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+Ug(e),u=-i.scrollTop;return Gi(r||n).direction==="rtl"&&(s+=so(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}function Yg(e){var t=Gi(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function N5(e){return["html","body","#document"].indexOf(Xi(e))>=0?e.ownerDocument.body:ii(e)&&Yg(e)?e:N5(kf(e))}function su(e,t){var n;t===void 0&&(t=[]);var i=N5(e),r=i===((n=e.ownerDocument)==null?void 0:n.body),a=Si(i),o=r?[a].concat(a.visualViewport||[],Yg(i)?i:[]):i,s=t.concat(o);return r?s:s.concat(su(kf(o)))}function Xg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function JAe(e){var t=ys(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function j5(e,t){return t===k5?Xg(KAe(e)):ps(t)?JAe(t):Xg(QAe(oa(e)))}function ZAe(e){var t=su(kf(e)),n=["absolute","fixed"].indexOf(Gi(e).position)>=0,i=n&&ii(e)?au(e):e;return ps(i)?t.filter(function(r){return ps(r)&&S5(r,i)&&Xi(r)!=="body"&&(n?Gi(r).position!=="static":!0)}):[]}function eDe(e,t,n){var i=t==="clippingParents"?ZAe(e):[].concat(t),r=[].concat(i,[n]),a=r[0],o=r.reduce(function(s,u){var c=j5(e,u);return s.top=so(c.top,s.top),s.right=vf(c.right,s.right),s.bottom=vf(c.bottom,s.bottom),s.left=so(c.left,s.left),s},j5(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function I5(e){var t=e.reference,n=e.element,i=e.placement,r=i?qi(i):null,a=i?bs(i):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(r){case _n:u={x:o,y:t.y-n.height};break;case ti:u={x:o,y:t.y+t.height};break;case ni:u={x:t.x+t.width,y:s};break;case Tn:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var c=r?Vg(r):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case ms:u[c]=u[c]-(t[f]/2-n[f]/2);break;case iu:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function lu(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=i===void 0?e.placement:i,a=n.boundary,o=a===void 0?vAe:a,s=n.rootBoundary,u=s===void 0?k5:s,c=n.elementContext,f=c===void 0?ru:c,h=n.altBoundary,g=h===void 0?!1:h,p=n.padding,y=p===void 0?0:p,v=P5(typeof y!="number"?y:E5(y,nu)),k=f===ru?kAe:ru,w=e.rects.popper,M=e.elements[g?k:f],x=eDe(ps(M)?M:M.contextElement||oa(e.elements.popper),o,u),S=ys(e.elements.reference),E=I5({reference:S,element:w,strategy:"absolute",placement:r}),I=Xg(Object.assign({},w,E)),A=f===ru?I:S,W={top:x.top-A.top+v.top,bottom:A.bottom-x.bottom+v.bottom,left:x.left-A.left+v.left,right:A.right-x.right+v.right},$=e.modifiersData.offset;if(f===ru&&$){var D=$[r];Object.keys(W).forEach(function(z){var H=[ni,ti].indexOf(z)>=0?1:-1,X=[_n,ti].indexOf(z)>=0?"y":"x";W[z]+=D[X]*H})}return W}function tDe(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?C5:u,f=bs(i),h=f?s?M5:M5.filter(function(y){return bs(y)===f}):nu,g=h.filter(function(y){return c.indexOf(y)>=0});g.length===0&&(g=h);var p=g.reduce(function(y,v){return y[v]=lu(e,{placement:v,boundary:r,rootBoundary:a,padding:o})[qi(v)],y},{});return Object.keys(p).sort(function(y,v){return p[y]-p[v]})}function nDe(e){if(qi(e)===Rg)return[];var t=Cf(e);return[D5(e),t,D5(t)]}function iDe(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,a=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!0:o,u=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,g=n.altBoundary,p=n.flipVariations,y=p===void 0?!0:p,v=n.allowedAutoPlacements,k=t.options.placement,w=qi(k),M=w===k,x=u||(M||!y?[Cf(k)]:nDe(k)),S=[k].concat(x).reduce(function(qe,rt){return qe.concat(qi(rt)===Rg?tDe(t,{placement:rt,boundary:f,rootBoundary:h,padding:c,flipVariations:y,allowedAutoPlacements:v}):rt)},[]),E=t.rects.reference,I=t.rects.popper,A=new Map,W=!0,$=S[0],D=0;D<S.length;D++){var z=S[D],H=qi(z),X=bs(z)===ms,re=[_n,ti].indexOf(H)>=0,ne=re?"width":"height",q=lu(t,{placement:z,boundary:f,rootBoundary:h,altBoundary:g,padding:c}),Z=re?X?ni:Tn:X?ti:_n;E[ne]>I[ne]&&(Z=Cf(Z));var ue=Cf(Z),Ne=[];if(a&&Ne.push(q[H]<=0),s&&Ne.push(q[Z]<=0,q[ue]<=0),Ne.every(function(qe){return qe})){$=z,W=!1;break}A.set(z,Ne)}if(W)for(var it=y?3:1,xt=function(rt){var Ki=S.find(function(ws){var zn=A.get(ws);if(zn)return zn.slice(0,rt).every(function(hr){return hr})});if(Ki)return $=Ki,"break"},Kt=it;Kt>0;Kt--){var Ht=xt(Kt);if(Ht==="break")break}t.placement!==$&&(t.modifiersData[i]._skip=!0,t.placement=$,t.reset=!0)}}var rDe={name:"flip",enabled:!0,phase:"main",fn:iDe,requiresIfExists:["offset"],data:{_skip:!1}};function W5(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function O5(e){return[_n,ni,ti,Tn].some(function(t){return e[t]>=0})}function aDe(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,o=lu(t,{elementContext:"reference"}),s=lu(t,{altBoundary:!0}),u=W5(o,i),c=W5(s,r,a),f=O5(u),h=O5(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}var oDe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:aDe};function sDe(e,t,n){var i=qi(e),r=[Tn,_n].indexOf(i)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*r,[Tn,ni].indexOf(i)>=0?{x:s,y:o}:{x:o,y:s}}function lDe(e){var t=e.state,n=e.options,i=e.name,r=n.offset,a=r===void 0?[0,0]:r,o=C5.reduce(function(f,h){return f[h]=sDe(h,t.rects,a),f},{}),s=o[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}var uDe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lDe};function dDe(e){var t=e.state,n=e.name;t.modifiersData[n]=I5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var cDe={name:"popperOffsets",enabled:!0,phase:"read",fn:dDe,data:{}};function fDe(e){return e==="x"?"y":"x"}function hDe(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,a=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!1:o,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,g=n.tether,p=g===void 0?!0:g,y=n.tetherOffset,v=y===void 0?0:y,k=lu(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:f}),w=qi(t.placement),M=bs(t.placement),x=!M,S=Vg(w),E=fDe(S),I=t.modifiersData.popperOffsets,A=t.rects.reference,W=t.rects.popper,$=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,D=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(I){if(a){var X,re=S==="y"?_n:Tn,ne=S==="y"?ti:ni,q=S==="y"?"height":"width",Z=I[S],ue=Z+k[re],Ne=Z-k[ne],it=p?-W[q]/2:0,xt=M===ms?A[q]:W[q],Kt=M===ms?-W[q]:-A[q],Ht=t.elements.arrow,qe=p&&Ht?Bg(Ht):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:T5(),Ki=rt[re],ws=rt[ne],zn=ou(0,A[q],qe[q]),hr=x?A[q]/2-it-zn-Ki-D.mainAxis:xt-zn-Ki-D.mainAxis,Qg=x?-A[q]/2+it+zn+ws+D.mainAxis:Kt+zn+ws+D.mainAxis,sa=t.elements.arrow&&au(t.elements.arrow),vs=sa?S==="y"?sa.clientTop||0:sa.clientLeft||0:0,du=(X=z==null?void 0:z[S])!=null?X:0,Ln=Z+hr-du-vs,lo=Z+Qg-du,_f=ou(p?vf(ue,Ln):ue,Z,p?so(Ne,lo):Ne);I[S]=_f,H[S]=_f-Z}if(s){var ri,Tf=S==="x"?_n:Tn,Jg=S==="x"?ti:ni,$n=I[E],Qt=E==="y"?"height":"width",la=$n+k[Tf],uo=$n-k[Jg],cu=[_n,Tn].indexOf(w)!==-1,ua=(ri=z==null?void 0:z[E])!=null?ri:0,Pf=cu?la:$n-A[Qt]-W[Qt]-ua+D.altAxis,da=cu?$n+A[Qt]+W[Qt]-ua-D.altAxis:uo,mr=p&&cu?zAe(Pf,$n,da):ou(p?Pf:la,$n,p?da:uo);I[E]=mr,H[E]=mr-$n}t.modifiersData[i]=H}}var mDe={name:"preventOverflow",enabled:!0,phase:"main",fn:hDe,requiresIfExists:["offset"]};function pDe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gDe(e){return e===Si(e)||!ii(e)?Fg(e):pDe(e)}function yDe(e){var t=e.getBoundingClientRect(),n=gs(t.width)/e.offsetWidth||1,i=gs(t.height)/e.offsetHeight||1;return n!==1||i!==1}function bDe(e,t,n){n===void 0&&(n=!1);var i=ii(t),r=ii(t)&&yDe(t),a=oa(t),o=ys(e,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&((Xi(t)!=="body"||Yg(a))&&(s=gDe(t)),ii(t)?(u=ys(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Ug(a))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function wDe(e){var t=new Map,n=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function r(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&r(u)}}),i.push(a)}return e.forEach(function(a){n.has(a.name)||r(a)}),i}function vDe(e){var t=wDe(e);return DAe.reduce(function(n,i){return n.concat(t.filter(function(r){return r.phase===i}))},[])}function kDe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function MDe(e){var t=e.reduce(function(n,i){var r=n[i.name];return n[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var z5={placement:"bottom",modifiers:[],strategy:"absolute"};function L5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function CDe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,r=t.defaultOptions,a=r===void 0?z5:r;return function(s,u,c){c===void 0&&(c=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},z5,a),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},h=[],g=!1,p={state:f,setOptions:function(w){var M=typeof w=="function"?w(f.options):w;v(),f.options=Object.assign({},a,f.options,M),f.scrollParents={reference:ps(s)?su(s):s.contextElement?su(s.contextElement):[],popper:su(u)};var x=vDe(MDe([].concat(i,f.options.modifiers)));return f.orderedModifiers=x.filter(function(S){return S.enabled}),y(),p.update()},forceUpdate:function(){if(!g){var w=f.elements,M=w.reference,x=w.popper;if(L5(M,x)){f.rects={reference:bDe(M,au(x),f.options.strategy==="fixed"),popper:Bg(x)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(D){return f.modifiersData[D.name]=Object.assign({},D.data)});for(var S=0;S<f.orderedModifiers.length;S++){if(f.reset===!0){f.reset=!1,S=-1;continue}var E=f.orderedModifiers[S],I=E.fn,A=E.options,W=A===void 0?{}:A,$=E.name;typeof I=="function"&&(f=I({state:f,options:W,name:$,instance:p})||f)}}}},update:kDe(function(){return new Promise(function(k){p.forceUpdate(),k(f)})}),destroy:function(){v(),g=!0}};if(!L5(s,u))return p;p.setOptions(c).then(function(k){!g&&c.onFirstUpdate&&c.onFirstUpdate(k)});function y(){f.orderedModifiers.forEach(function(k){var w=k.name,M=k.options,x=M===void 0?{}:M,S=k.effect;if(typeof S=="function"){var E=S({state:f,name:w,instance:p,options:x}),I=function(){};h.push(E||I)}})}function v(){h.forEach(function(k){return k()}),h=[]}return p}}var xDe=[XAe,cDe,UAe,IAe,uDe,rDe,mDe,RAe,oDe],SDe=CDe({defaultModifiers:xDe}),$5="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";function xf(e){return e.split("-").map(t=>parseInt(t,16)).map(t=>String.fromCodePoint(t)).join("")}function _De(e,t,n,i=[]){const r={};return Object.keys(e).forEach(a=>{if(i.includes(a))return;const o=[];e[a].forEach(s=>{var u;if(s[yf][0].includes(t.toLocaleLowerCase())){let c=s[m5];if(n!==wf&&Array.isArray(s[bf])){const f=((u=s[bf])==null?void 0:u.findIndex(h=>h.includes(n)))||-1;f!==-1&&s[bf]&&(c=s[bf][f])}return o.push({...s,[tu]:c})}}),o.length&&(r[a]=o)}),r}function H5(){var e;return(((e=navigator==null?void 0:navigator.userAgentData)==null?void 0:e.platform)||(navigator==null?void 0:navigator.platform)||"unknown").toUpperCase().indexOf("MAC")!==-1}function R5(e){return e.replace(/^_*(.)|_+(.)/g,(t,n,i)=>n?n.toUpperCase():" "+i.toUpperCase())}var uu=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n};const TDe=l.defineComponent({name:"Body",emits:{select:e=>!0},setup(){const{state:e,updateEmoji:t,updateSelect:n}=l.inject("store"),i=l.ref(null),r=l.computed(()=>_De(e.emojis,e.search,e.skinTone,e.options.disabledGroups)),a=l.getCurrentInstance(),o=l.computed(()=>!e.options.hideGroupNames),s=l.computed(()=>!e.options.disableStickyGroupNames),u=l.toRaw(e.options.groupNames),c=e.orderedGroupKeys;e.options.additionalGroups&&Object.keys(e.options.additionalGroups).map(y=>{e.options.groupNames[y]?u[y]=e.options.groupNames[y]:u[y]=R5(y)});const f=H5()?"is-mac":"";function h(y){t(y)}function g(y){n(y),a==null||a.emit("select",{...y,t:e.skinTone,i:xf(y.r)})}function p(y,v){var k;const w=(k=y==null?void 0:y.target)==null?void 0:k.closest("button");w&&(w.innerHTML=`<span>${xf(v)}</span>`)}return l.watch(()=>e.activeGroup,()=>{var y;const v=(y=i.value)==null?void 0:y.querySelector("#"+e.activeGroup);v&&(v.parentNode.scrollTop=v.offsetTop-v.parentNode.offsetTop)}),{emojis:r,bodyInner:i,EMOJI_REMOTE_SRC:f5,GROUP_NAMES:h5,handleClick:g,handleError:p,handleMouseEnter:h,native:e.options.native,unicodeToEmoji:xf,EMOJI_RESULT_KEY:tu,EMOJI_NAME_KEY:yf,hasGroupNames:o,isSticky:s,platform:f,groupNames:u,orderedKeys:c}}}),PDe={class:"v3-body"},EDe=["id"],ADe={class:"v3-emojis"},DDe=["onMouseenter","onClick"],NDe={key:0},jDe=["src","alt","onError"],IDe={key:1,class:"v3-no-result"};function WDe(e,t,n,i,r,a){return l.openBlock(),l.createElementBlock("div",PDe,[l.createElementVNode("div",{ref:"bodyInner",class:l.normalizeClass([e.platform,"v3-body-inner"])},[e.orderedKeys.length?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(e.orderedKeys,o=>(l.openBlock(),l.createElementBlock("div",{id:o,key:o,class:"v3-group"},[e.hasGroupNames?l.withDirectives((l.openBlock(),l.createElementBlock("h5",{key:0,class:l.normalizeClass(e.isSticky?"v3-sticky":"")},l.toDisplayString(e.groupNames[o]),3)),[[l.vShow,e.emojis[o]]]):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",ADe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.emojis[o],s=>(l.openBlock(),l.createElementBlock("button",{key:s.r,type:"button",onMouseenter:u=>e.handleMouseEnter(s),onClick:u=>e.handleClick(s)},[e.native?(l.openBlock(),l.createElementBlock("span",NDe,l.toDisplayString(e.unicodeToEmoji(s.r)),1)):(l.openBlock(),l.createElementBlock("img",{key:1,src:e.EMOJI_REMOTE_SRC+`/${s.r}.png`,alt:s.n[0],onError:u=>e.handleError(u,s.r)},null,40,jDe))],40,DDe))),128))],512),[[l.vShow,e.emojis[o]]])],8,EDe))),128)):(l.openBlock(),l.createElementBlock("span",IDe," No emoji has been found! "))],2)])}var ODe=uu(TDe,[["render",WDe]]),zDe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41IEMgMTYgOC4zMzk4NDQgMTUuNjg3NSA3LjI2NTYyNSAxNS4wOTM3NSA2LjQzNzUgQyAxNC41IDUuNjA5Mzc1IDEzLjU3MDMxMyA1IDEyLjUgNSBaIE0gMTYgOS41IEMgMTYgMTAuNjYwMTU2IDE2LjMxMjUgMTEuNzM0Mzc1IDE2LjkwNjI1IDEyLjU2MjUgQyAxNy41IDEzLjM5MDYyNSAxOC40Mjk2ODggMTQgMTkuNSAxNCBDIDIwLjU3MDMxMyAxNCAyMS41IDEzLjM5MDYyNSAyMi4wOTM3NSAxMi41NjI1IEMgMjIuNjg3NSAxMS43MzQzNzUgMjMgMTAuNjYwMTU2IDIzIDkuNSBDIDIzIDguMzM5ODQ0IDIyLjY4NzUgNy4yNjU2MjUgMjIuMDkzNzUgNi40Mzc1IEMgMjEuNSA1LjYwOTM3NSAyMC41NzAzMTMgNSAxOS41IDUgQyAxOC40Mjk2ODggNSAxNy41IDUuNjA5Mzc1IDE2LjkwNjI1IDYuNDM3NSBDIDE2LjMxMjUgNy4yNjU2MjUgMTYgOC4zMzk4NDQgMTYgOS41IFogTSAxMi41IDcgQyAxMi44MTI1IDcgMTMuMTU2MjUgNy4xNTYyNSAxMy40Njg3NSA3LjU5Mzc1IEMgMTMuNzgxMjUgOC4wMzEyNSAxNCA4LjcyNjU2MyAxNCA5LjUgQyAxNCAxMC4yNzM0MzggMTMuNzgxMjUgMTAuOTY4NzUgMTMuNDY4NzUgMTEuNDA2MjUgQyAxMy4xNTYyNSAxMS44NDM3NSAxMi44MTI1IDEyIDEyLjUgMTIgQyAxMi4xODc1IDEyIDExLjg0Mzc1IDExLjg0Mzc1IDExLjUzMTI1IDExLjQwNjI1IEMgMTEuMjE4NzUgMTAuOTY4NzUgMTEgMTAuMjczNDM4IDExIDkuNSBDIDExIDguNzI2NTYzIDExLjIxODc1IDguMDMxMjUgMTEuNTMxMjUgNy41OTM3NSBDIDExLjg0Mzc1IDcuMTU2MjUgMTIuMTg3NSA3IDEyLjUgNyBaIE0gMTkuNSA3IEMgMTkuODEyNSA3IDIwLjE1NjI1IDcuMTU2MjUgMjAuNDY4NzUgNy41OTM3NSBDIDIwLjc4MTI1IDguMDMxMjUgMjEgOC43MjY1NjMgMjEgOS41IEMgMjEgMTAuMjczNDM4IDIwLjc4MTI1IDEwLjk2ODc1IDIwLjQ2ODc1IDExLjQwNjI1IEMgMjAuMTU2MjUgMTEuODQzNzUgMTkuODEyNSAxMiAxOS41IDEyIEMgMTkuMTg3NSAxMiAxOC44NDM3NSAxMS44NDM3NSAxOC41MzEyNSAxMS40MDYyNSBDIDE4LjIxODc1IDEwLjk2ODc1IDE4IDEwLjI3MzQzOCAxOCA5LjUgQyAxOCA4LjcyNjU2MyAxOC4yMTg3NSA4LjAzMTI1IDE4LjUzMTI1IDcuNTkzNzUgQyAxOC44NDM3NSA3LjE1NjI1IDE5LjE4NzUgNyAxOS41IDcgWiBNIDcuNSAxMiBDIDYuNDI5Njg4IDEyIDUuNSAxMi42MDkzNzUgNC45MDYyNSAxMy40Mzc1IEMgNC4zMTI1IDE0LjI2NTYyNSA0IDE1LjMzOTg0NCA0IDE2LjUgQyA0IDE3LjY2MDE1NiA0LjMxMjUgMTguNzM0Mzc1IDQuOTA2MjUgMTkuNTYyNSBDIDUuNSAyMC4zOTA2MjUgNi40Mjk2ODggMjEgNy41IDIxIEMgOC41NzAzMTMgMjEgOS41IDIwLjM5MDYyNSAxMC4wOTM3NSAxOS41NjI1IEMgMTAuNjg3NSAxOC43MzQzNzUgMTEgMTcuNjYwMTU2IDExIDE2LjUgQyAxMSAxNS4zMzk4NDQgMTAuNjg3NSAxNC4yNjU2MjUgMTAuMDkzNzUgMTMuNDM3NSBDIDkuNSAxMi42MDkzNzUgOC41NzAzMTMgMTIgNy41IDEyIFogTSAyNC41IDEyIEMgMjMuNDI5Njg4IDEyIDIyLjUgMTIuNjA5Mzc1IDIxLjkwNjI1IDEzLjQzNzUgQyAyMS4zMTI1IDE0LjI2NTYyNSAyMSAxNS4zMzk4NDQgMjEgMTYuNSBDIDIxIDE3LjY2MDE1NiAyMS4zMTI1IDE4LjczNDM3NSAyMS45MDYyNSAxOS41NjI1IEMgMjIuNSAyMC4zOTA2MjUgMjMuNDI5Njg4IDIxIDI0LjUgMjEgQyAyNS41NzAzMTMgMjEgMjYuNSAyMC4zOTA2MjUgMjcuMDkzNzUgMTkuNTYyNSBDIDI3LjY4NzUgMTguNzM0Mzc1IDI4IDE3LjY2MDE1NiAyOCAxNi41IEMgMjggMTUuMzM5ODQ0IDI3LjY4NzUgMTQuMjY1NjI1IDI3LjA5Mzc1IDEzLjQzNzUgQyAyNi41IDEyLjYwOTM3NSAyNS41NzAzMTMgMTIgMjQuNSAxMiBaIE0gNy41IDE0IEMgNy44MTI1IDE0IDguMTU2MjUgMTQuMTU2MjUgOC40Njg3NSAxNC41OTM3NSBDIDguNzgxMjUgMTUuMDMxMjUgOSAxNS43MjY1NjMgOSAxNi41IEMgOSAxNy4yNzM0MzggOC43ODEyNSAxNy45Njg3NSA4LjQ2ODc1IDE4LjQwNjI1IEMgOC4xNTYyNSAxOC44NDM3NSA3LjgxMjUgMTkgNy41IDE5IEMgNy4xODc1IDE5IDYuODQzNzUgMTguODQzNzUgNi41MzEyNSAxOC40MDYyNSBDIDYuMjE4NzUgMTcuOTY4NzUgNiAxNy4yNzM0MzggNiAxNi41IEMgNiAxNS43MjY1NjMgNi4yMTg3NSAxNS4wMzEyNSA2LjUzMTI1IDE0LjU5Mzc1IEMgNi44NDM3NSAxNC4xNTYyNSA3LjE4NzUgMTQgNy41IDE0IFogTSAyNC41IDE0IEMgMjQuODEyNSAxNCAyNS4xNTYyNSAxNC4xNTYyNSAyNS40Njg3NSAxNC41OTM3NSBDIDI1Ljc4MTI1IDE1LjAzMTI1IDI2IDE1LjcyNjU2MyAyNiAxNi41IEMgMjYgMTcuMjczNDM4IDI1Ljc4MTI1IDE3Ljk2ODc1IDI1LjQ2ODc1IDE4LjQwNjI1IEMgMjUuMTU2MjUgMTguODQzNzUgMjQuODEyNSAxOSAyNC41IDE5IEMgMjQuMTg3NSAxOSAyMy44NDM3NSAxOC44NDM3NSAyMy41MzEyNSAxOC40MDYyNSBDIDIzLjIxODc1IDE3Ljk2ODc1IDIzIDE3LjI3MzQzOCAyMyAxNi41IEMgMjMgMTUuNzI2NTYzIDIzLjIxODc1IDE1LjAzMTI1IDIzLjUzMTI1IDE0LjU5Mzc1IEMgMjMuODQzNzUgMTQuMTU2MjUgMjQuMTg3NSAxNCAyNC41IDE0IFogTSAxNiAxNiBDIDE0LjY2Nzk2OSAxNiAxMy43MzgyODEgMTYuODY3MTg4IDEzLjI4MTI1IDE3LjYyNSBDIDEyLjgyNDIxOSAxOC4zODI4MTMgMTIuNTQ2ODc1IDE5LjAxNTYyNSAxMi4yODEyNSAxOS4yODEyNSBDIDEyLjEyNSAxOS40Mzc1IDExLjE2MDE1NiAxOS44MDA3ODEgMTAuMTU2MjUgMjAuMzEyNSBDIDkuNjUyMzQ0IDIwLjU3MDMxMyA5LjE0NDUzMSAyMC45MTQwNjMgOC43MTg3NSAyMS40Mzc1IEMgOC4yOTI5NjkgMjEuOTYwOTM4IDggMjIuNjg3NSA4IDIzLjUgQyA4IDI1LjQyMTg3NSA5LjU3ODEyNSAyNyAxMS41IDI3IEMgMTIuMzY3MTg4IDI3IDEzLjI2OTUzMSAyNi43MjI2NTYgMTQuMTU2MjUgMjYuNDY4NzUgQyAxNS4wNDI5NjkgMjYuMjE0ODQ0IDE2IDI2IDE2IDI2IEMgMTYgMjYgMTYuOTU3MDMxIDI2LjIxNDg0NCAxNy44NDM3NSAyNi40Njg3NSBDIDE4LjczMDQ2OSAyNi43MjI2NTYgMTkuNjMyODEzIDI3IDIwLjUgMjcgQyAyMi40MjE4NzUgMjcgMjQgMjUuNDIxODc1IDI0IDIzLjUgQyAyNCAyMi43MDcwMzEgMjMuNzA3MDMxIDIxLjk4MDQ2OSAyMy4yODEyNSAyMS40Njg3NSBDIDIyLjg1NTQ2OSAyMC45NTcwMzEgMjIuMzQzNzUgMjAuNjQwNjI1IDIxLjg0Mzc1IDIwLjM3NSBDIDIwLjg0Mzc1IDE5Ljg0Mzc1IDE5Ljg1OTM3NSAxOS40MjE4NzUgMTkuNzE4NzUgMTkuMjgxMjUgQyAxOS40ODA0NjkgMTkuMDQyOTY5IDE5LjIxMDkzOCAxOC4zOTA2MjUgMTguNzUgMTcuNjI1IEMgMTguMjg5MDYzIDE2Ljg1OTM3NSAxNy4zMzk4NDQgMTYgMTYgMTYgWiBNIDE2IDE4IEMgMTYuNjYwMTU2IDE4IDE2LjczNDM3NSAxOC4xNjAxNTYgMTcuMDMxMjUgMTguNjU2MjUgQyAxNy4zMjgxMjUgMTkuMTUyMzQ0IDE3LjU1NDY4OCAxOS45OTIxODggMTguMjgxMjUgMjAuNzE4NzUgQyAxOS4xMDU0NjkgMjEuNTQyOTY5IDIwLjE0ODQzOCAyMS43MjI2NTYgMjAuOTA2MjUgMjIuMTI1IEMgMjEuMjg1MTU2IDIyLjMyODEyNSAyMS41NzgxMjUgMjIuNTQyOTY5IDIxLjc1IDIyLjc1IEMgMjEuOTIxODc1IDIyLjk1NzAzMSAyMiAyMy4xNDg0MzggMjIgMjMuNSBDIDIyIDI0LjMzOTg0NCAyMS4zMzk4NDQgMjUgMjAuNSAyNSBDIDIwLjIxMDkzOCAyNSAxOS4yNzczNDQgMjQuNzc3MzQ0IDE4LjQwNjI1IDI0LjUzMTI1IEMgMTcuNTM1MTU2IDI0LjI4NTE1NiAxNi44MTY0MDYgMjQgMTYgMjQgQyAxNS4xODM1OTQgMjQgMTQuNDY0ODQ0IDI0LjI4NTE1NiAxMy41OTM3NSAyNC41MzEyNSBDIDEyLjcyMjY1NiAyNC43NzczNDQgMTEuNzg5MDYzIDI1IDExLjUgMjUgQyAxMC42NjAxNTYgMjUgMTAgMjQuMzM5ODQ0IDEwIDIzLjUgQyAxMCAyMy4wOTc2NTYgMTAuMDgyMDMxIDIyLjg5MDYyNSAxMC4yNSAyMi42ODc1IEMgMTAuNDE3OTY5IDIyLjQ4NDM3NSAxMC43MjI2NTYgMjIuMjg1MTU2IDExLjA5Mzc1IDIyLjA5Mzc1IEMgMTEuODM5ODQ0IDIxLjcxNDg0NCAxMi44NzUgMjEuNTYyNSAxMy43MTg3NSAyMC43MTg3NSBDIDE0LjQ1MzEyNSAxOS45ODQzNzUgMTQuNjc1NzgxIDE5LjExNzE4OCAxNC45Njg3NSAxOC42MjUgQyAxNS4yNjE3MTkgMTguMTMyODEzIDE1LjMzMjAzMSAxOCAxNiAxOCBaIi8+PC9zdmc+",LDe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSAzIEwgMTEgNyBMIDEzIDcgTCAxMyAzIFogTSAxNSA0IEwgMTUgNyBMIDE3IDcgTCAxNyA0IFogTSA0Ljg3NSA4IEwgNSA5LjA5Mzc1IEwgNi44MTI1IDI2LjMxMjUgQyA2Ljk3MjY1NiAyNy44MzIwMzEgOC4yODUxNTYgMjkgOS44MTI1IDI5IEwgMTkuMTg3NSAyOSBDIDIwLjcxNDg0NCAyOSAyMi4wMjczNDQgMjcuODMyMDMxIDIyLjE4NzUgMjYuMzEyNSBMIDIyLjY1NjI1IDIyIEwgMjUgMjIgQyAyNi42NDQ1MzEgMjIgMjggMjAuNjQ0NTMxIDI4IDE5IEwgMjggMTYgQyAyOCAxNC4zNTU0NjkgMjYuNjQ0NTMxIDEzIDI1IDEzIEwgMjMuNTkzNzUgMTMgTCAyNCA5LjA5Mzc1IEwgMjQuMTI1IDggWiBNIDcuMTI1IDEwIEwgMjEuODc1IDEwIEwgMjAuMTg3NSAyNi4wOTM3NSBDIDIwLjEzMjgxMyAyNi42MTMyODEgMTkuNzA3MDMxIDI3IDE5LjE4NzUgMjcgTCA5LjgxMjUgMjcgQyA5LjI5Mjk2OSAyNyA4Ljg2NzE4OCAyNi42MTMyODEgOC44MTI1IDI2LjA5Mzc1IFogTSAyMy4zNzUgMTUgTCAyNSAxNSBDIDI1LjU2NjQwNiAxNSAyNiAxNS40MzM1OTQgMjYgMTYgTCAyNiAxOSBDIDI2IDE5LjU2NjQwNiAyNS41NjY0MDYgMjAgMjUgMjAgTCAyMi44NDM3NSAyMCBaIi8+PC9zdmc+",$De="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiAzIEMgOC44MzIwMzEgMyAzIDguODMyMDMxIDMgMTYgQyAzIDIzLjE2Nzk2OSA4LjgzMjAzMSAyOSAxNiAyOSBDIDIzLjE2Nzk2OSAyOSAyOSAyMy4xNjc5NjkgMjkgMTYgQyAyOSA4LjgzMjAzMSAyMy4xNjc5NjkgMyAxNiAzIFogTSAxNiA1IEMgMTYuNjAxNTYzIDUgMTcuMTc1NzgxIDUuMDYyNSAxNy43NSA1LjE1NjI1IEwgMTYgNi40MDYyNSBMIDE0LjI1IDUuMTU2MjUgQyAxNC44MjAzMTMgNS4wNjY0MDYgMTUuNDAyMzQ0IDUgMTYgNSBaIE0gMTEuODEyNSA1Ljg0Mzc1IEwgMTUuNDA2MjUgOC40Njg3NSBMIDE2IDguOTA2MjUgTCAxNi41OTM3NSA4LjQ2ODc1IEwgMjAuMTg3NSA1Ljg0Mzc1IEMgMjEuNzg1MTU2IDYuNTA3ODEzIDIzLjE5NTMxMyA3LjUyMzQzOCAyNC4zMTI1IDguODEyNSBMIDIyLjkzNzUgMTMuMDkzNzUgTCAyMi43MTg3NSAxMy43ODEyNSBMIDIzLjMxMjUgMTQuMTg3NSBMIDI2LjkzNzUgMTYuODQzNzUgQyAyNi44MDQ2ODggMTguNjA1NDY5IDI2LjI2NTYyNSAyMC4yNTc4MTMgMjUuNDA2MjUgMjEuNjg3NSBMIDIwLjEyNSAyMS42ODc1IEwgMTkuOTA2MjUgMjIuMzc1IEwgMTguNSAyNi43MTg3NSBDIDE3LjY5OTIxOSAyNi45MDYyNSAxNi44NTkzNzUgMjcgMTYgMjcgQyAxNS4xMDU0NjkgMjcgMTQuMjM4MjgxIDI2Ljg4NjcxOSAxMy40MDYyNSAyNi42ODc1IEwgMTIuMDMxMjUgMjIuNDA2MjUgTCAxMS44MTI1IDIxLjcxODc1IEwgNi41OTM3NSAyMS43MTg3NSBDIDUuNzE4NzUgMjAuMjgxMjUgNS4xOTkyMTkgMTguNjIxMDk0IDUuMDYyNSAxNi44NDM3NSBMIDguNjU2MjUgMTQuMjE4NzUgTCA5LjI1IDEzLjgxMjUgTCA5LjAzMTI1IDEzLjEyNSBMIDcuNjI1IDguODc1IEMgOC43NSA3LjU1NDY4OCAxMC4xODM1OTQgNi41MTU2MjUgMTEuODEyNSA1Ljg0Mzc1IFogTSAxNiAxMC4wOTM3NSBMIDE1LjQwNjI1IDEwLjUzMTI1IEwgMTAuODQzNzUgMTMuODQzNzUgTCAxMC4yODEyNSAxNC4yODEyNSBMIDEwLjUgMTQuOTY4NzUgTCAxMi4yNSAyMC4zMTI1IEwgMTIuNDY4NzUgMjEgTCAxOS41MzEyNSAyMSBMIDE5Ljc1IDIwLjMxMjUgTCAyMS41IDE0Ljk2ODc1IEwgMjEuNzE4NzUgMTQuMjgxMjUgTCAyMS4xNTYyNSAxMy44NDM3NSBMIDE2LjU5Mzc1IDEwLjUzMTI1IFogTSAyNS43NSAxMC45MDYyNSBDIDI2LjI5Njg3NSAxMS45NTMxMjUgMjYuNjU2MjUgMTMuMTAxNTYzIDI2Ljg0Mzc1IDE0LjMxMjUgTCAyNS4wNjI1IDEzLjAzMTI1IFogTSA2LjIxODc1IDEwLjk2ODc1IEwgNi45MDYyNSAxMy4wMzEyNSBMIDUuMTU2MjUgMTQuMzEyNSBDIDUuMzM5ODQ0IDEzLjEyNSA1LjY4NzUgMTIgNi4yMTg3NSAxMC45Njg3NSBaIE0gMTYgMTIuNTkzNzUgTCAxOS4zNzUgMTUuMDMxMjUgTCAxOC4wOTM3NSAxOSBMIDEzLjkwNjI1IDE5IEwgMTIuNjI1IDE1LjAzMTI1IFogTSAyMS41OTM3NSAyMy42ODc1IEwgMjMuODQzNzUgMjMuNjg3NSBDIDIyLjk5MjE4OCAyNC41NjY0MDYgMjIuMDExNzE5IDI1LjI5Mjk2OSAyMC45MDYyNSAyNS44NDM3NSBaIE0gOC4xNTYyNSAyMy43MTg3NSBMIDEwLjM0Mzc1IDIzLjcxODc1IEwgMTEuMDMxMjUgMjUuODEyNSBDIDkuOTYwOTM4IDI1LjI2OTUzMSA4Ljk4ODI4MSAyNC41NjI1IDguMTU2MjUgMjMuNzE4NzUgWiIvPjwvc3ZnPg==",HDe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5LjUgNiBDIDguMTc5Njg4IDYgNy4wMDM5MDYgNi44NTkzNzUgNi42MjUgOC4xMjUgTCA1LjI1IDEyLjcxODc1IEwgMy4zMTI1IDEyLjA2MjUgTCAyLjY4NzUgMTMuOTM3NSBMIDQuNjU2MjUgMTQuNTkzNzUgTCA0LjAzMTI1IDE2LjcxODc1IEMgNC4wMDc4MTMgMTYuODA4NTk0IDMuOTk2MDk0IDE2LjkwNjI1IDQgMTcgTCA0IDI0IEMgNCAyNC4wMzEyNSA0IDI0LjA2MjUgNCAyNC4wOTM3NSBMIDQgMjUgQyA0IDI1LjU1MDc4MSA0LjQ0OTIxOSAyNiA1IDI2IEwgOCAyNiBMIDguMzQzNzUgMjUgTCAyMy42NTYyNSAyNSBMIDI0IDI2IEwgMjcgMjYgQyAyNy41NTA3ODEgMjYgMjggMjUuNTUwNzgxIDI4IDI1IEwgMjggMjQuMTU2MjUgQyAyOC4wMDM5MDYgMjQuMTA1NDY5IDI4LjAwMzkwNiAyNC4wNTA3ODEgMjggMjQgTCAyOCAxNyBDIDI4LjAwMzkwNiAxNi45MDYyNSAyNy45OTIxODggMTYuODA4NTk0IDI3Ljk2ODc1IDE2LjcxODc1IEwgMjcuMzQzNzUgMTQuNTkzNzUgTCAyOS4zMTI1IDEzLjkzNzUgTCAyOC42ODc1IDEyLjA2MjUgTCAyNi43NSAxMi43MTg3NSBMIDI1LjM3NSA4LjEyNSBDIDI0Ljk5NjA5NCA2Ljg1OTM3NSAyMy44MjAzMTMgNiAyMi41IDYgWiBNIDkuNSA4IEwgMjIuNSA4IEMgMjIuOTQ1MzEzIDggMjMuMzM5ODQ0IDguMjkyOTY5IDIzLjQ2ODc1IDguNzE4NzUgTCAyNC43NSAxMyBMIDcuMjUgMTMgTCA4LjUzMTI1IDguNzE4NzUgQyA4LjY2MDE1NiA4LjI4OTA2MyA5LjA1NDY4OCA4IDkuNSA4IFogTSA2LjY1NjI1IDE1IEwgMjUuMzQzNzUgMTUgTCAyNiAxNy4xODc1IEwgMjYgMjMgTCA2IDIzIEwgNiAxNy4xODc1IFogTSA4LjUgMTYgQyA3LjY3MTg3NSAxNiA3IDE2LjY3MTg3NSA3IDE3LjUgQyA3IDE4LjMyODEyNSA3LjY3MTg3NSAxOSA4LjUgMTkgQyA5LjMyODEyNSAxOSAxMCAxOC4zMjgxMjUgMTAgMTcuNSBDIDEwIDE2LjY3MTg3NSA5LjMyODEyNSAxNiA4LjUgMTYgWiBNIDIzLjUgMTYgQyAyMi42NzE4NzUgMTYgMjIgMTYuNjcxODc1IDIyIDE3LjUgQyAyMiAxOC4zMjgxMjUgMjIuNjcxODc1IDE5IDIzLjUgMTkgQyAyNC4zMjgxMjUgMTkgMjUgMTguMzI4MTI1IDI1IDE3LjUgQyAyNSAxNi42NzE4NzUgMjQuMzI4MTI1IDE2IDIzLjUgMTYgWiBNIDEyIDE5IEwgMTAuNzUgMjIgTCAxMi45MDYyNSAyMiBMIDEzLjM0Mzc1IDIxIEwgMTguNjU2MjUgMjEgTCAxOS4wOTM3NSAyMiBMIDIxLjI1IDIyIEwgMjAgMTkgWiIvPjwvc3ZnPg==",RDe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuMDQyOTY5IDQgNyA4LjA0Mjk2OSA3IDEzIEMgNyAxNC45MTc5NjkgNy44NDM3NSAxNi45MDYyNSA5IDE4LjY4NzUgQyA5Ljg1OTM3NSAyMC4wMTE3MTkgMTAuODg2NzE5IDIxLjIzMDQ2OSAxMiAyMi4xNTYyNSBMIDEyIDI1IEMgMTIgMjYuMDkzNzUgMTIuOTA2MjUgMjcgMTQgMjcgTCAxNSAyOCBMIDE3IDI4IEwgMTggMjcgQyAxOS4wOTM3NSAyNyAyMCAyNi4wOTM3NSAyMCAyNSBMIDIwIDIyLjE1NjI1IEMgMjEuMTEzMjgxIDIxLjIzMDQ2OSAyMi4xNDA2MjUgMjAuMDExNzE5IDIzIDE4LjY4NzUgQyAyNC4xNTYyNSAxNi45MDYyNSAyNSAxNC45MTc5NjkgMjUgMTMgQyAyNSA4LjA0Mjk2OSAyMC45NTcwMzEgNCAxNiA0IFogTSAxNiA2IEMgMTkuODc4OTA2IDYgMjMgOS4xMjEwOTQgMjMgMTMgQyAyMyAxNC4zMDg1OTQgMjIuMzU1NDY5IDE2LjAzNTE1NiAyMS4zNDM3NSAxNy41OTM3NSBDIDIwLjQ0MTQwNiAxOC45ODQzNzUgMTkuMjUzOTA2IDIwLjIyMjY1NiAxOC4xNTYyNSAyMSBMIDEzLjg0Mzc1IDIxIEMgMTIuNzQ2MDk0IDIwLjIyMjY1NiAxMS41NTg1OTQgMTguOTg0Mzc1IDEwLjY1NjI1IDE3LjU5Mzc1IEMgOS42NDQ1MzEgMTYuMDM1MTU2IDkgMTQuMzA4NTk0IDkgMTMgQyA5IDkuMTIxMDk0IDEyLjEyMTA5NCA2IDE2IDYgWiBNIDE0LjI1IDIzIEwgMTcuNzUgMjMgQyAxNy44MjgxMjUgMjMuMDU0Njg4IDE3LjkxMDE1NiAyMy4wOTM3NSAxOCAyMy4xMjUgTCAxOCAyNSBMIDE0IDI1IEwgMTQgMjMuMTI1IEMgMTQuMDg5ODQ0IDIzLjA5Mzc1IDE0LjE3MTg3NSAyMy4wNTQ2ODggMTQuMjUgMjMgWiIvPjwvc3ZnPg==",BDe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSA1IEwgMTEgMTEgTCA1IDExIEwgNSAxMyBMIDExIDEzIEwgMTEgMTkgTCA1IDE5IEwgNSAyMSBMIDExIDIxIEwgMTEgMjcgTCAxMyAyNyBMIDEzIDIxIEwgMTkgMjEgTCAxOSAyNyBMIDIxIDI3IEwgMjEgMjEgTCAyNyAyMSBMIDI3IDE5IEwgMjEgMTkgTCAyMSAxMyBMIDI3IDEzIEwgMjcgMTEgTCAyMSAxMSBMIDIxIDUgTCAxOSA1IEwgMTkgMTEgTCAxMyAxMSBMIDEzIDUgWiBNIDEzIDEzIEwgMTkgMTMgTCAxOSAxOSBMIDEzIDE5IFoiLz48L3N2Zz4=",VDe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5IDQgQyA3LjM0NiA0IDYgNS4zNDYgNiA3IEMgNiA4LjMwMTYwOTQgNi44Mzg3NDg2IDkuNDAyMTM5MSA4IDkuODE2NDA2MiBMIDggMTEuMzA0Njg4IEwgOCAyMy4yMDcwMzEgTCA4IDI3LjAyMzQzOCBDIDggMjcuNTYzNDM4IDguNDM2NTYyNSAyOCA4Ljk3NjU2MjUgMjggTCA5LjAyMzQzNzUgMjggQyA5LjU2MzQzNzUgMjggMTAgMjcuNTYzNDM3IDEwIDI3LjAyMzQzOCBMIDEwIDIyLjIyODUxNiBDIDEwLjMzNDcwNyAyMS44Mzk3NTYgMTEuMTM4NDIzIDIxLjA0Njg3NSAxMy40NDUzMTIgMjEuMDQ2ODc1IEMgMTQuNjY5MzEzIDIxLjA0Njg3NSAxNS42NzA0MjIgMjEuNDczNzgxIDE2LjczMjQyMiAyMS45MjU3ODEgQyAxNy43Njk0MjIgMjIuMzY3NzgxIDE4Ljg0MTg5MSAyMi44MjQyMTkgMjAuMDg3ODkxIDIyLjgyNDIxOSBDIDIyLjQ0Njg5MSAyMi44MjQyMTkgMjQuMDQ5Mzc1IDIxLjU4NDY4OCAyNC43MzQzNzUgMjEuMDU0Njg4IEwgMjQuODg2NzE5IDIwLjkzOTQ1MyBDIDI1LjQzNzcxOSAyMC41NDA0NTMgMjYgMTkuOTk2IDI2IDE5IEwgMjYgMTAuNjc1NzgxIEMgMjYgOS43Njc3ODEyIDI1LjIyMTgyOCA5IDI0LjI5ODgyOCA5IEMgMjMuODAzODI4IDkgMjMuNDQwNDA2IDkuMjg2NTkzNyAyMi45NDE0MDYgOS42ODM1OTM4IEMgMjIuMjc5NDA2IDEwLjIwNzU5NCAyMS4yODA4OTEgMTEgMjAuMDg3ODkxIDExIEMgMTkuMjcyODkxIDExIDE4LjQ3NzY4OCAxMC42MTk3MzQgMTcuNTU0Njg4IDEwLjE3NzczNCBDIDE2LjQwMzY4NyA5LjYyNTczNDQgMTUuMDk4MzU5IDkgMTMuNDQzMzU5IDkgQyAxMi4zMDgyNTcgOSAxMS40MjE2ODcgOS4xODgzMzkzIDEwLjcxMjg5MSA5LjQ1NzAzMTIgQyAxMS40ODkwNzEgOC45MTQxODI0IDEyIDguMDE2NzgwMiAxMiA3IEMgMTIgNS4zNDYgMTAuNjU0IDQgOSA0IHogTSA5IDYgQyA5LjU1MiA2IDEwIDYuNDQ5IDEwIDcgQyAxMCA3LjU1MSA5LjU1MiA4IDkgOCBDIDguNDQ4IDggOCA3LjU1MSA4IDcgQyA4IDYuNDQ5IDguNDQ4IDYgOSA2IHogTSAxMy40NDMzNTkgMTEgQyAxNC42NDUzNTkgMTEgMTUuNjM4NDA2IDExLjQ3NjQ2OSAxNi42OTE0MDYgMTEuOTgwNDY5IEMgMTcuNzM2NDA2IDEyLjQ4MjQ2OSAxOC44MTc4OTEgMTMgMjAuMDg3ODkxIDEzIEMgMjEuODQyODkxIDEzIDIzLjE1ODA0NyAxMi4wNTQ0ODQgMjMuOTk4MDQ3IDExLjM5NjQ4NCBMIDIzLjk5ODA0NyAxOS4wNjY0MDYgQyAyMy45OTcwNDcgMTkuMDcwNDA2IDIzLjk1Mjk4NCAxOS4xNDUyNjYgMjMuNzA4OTg0IDE5LjMyMjI2NiBMIDIzLjUwOTc2NiAxOS40NzQ2MDkgQyAyMi45NDI3NjYgMTkuOTEyNjA5IDIxLjc2Mjg5MSAyMC44MjQyMTkgMjAuMDg3ODkxIDIwLjgyNDIxOSBDIDE5LjI0OTg5MSAyMC44MjQyMTkgMTguNDQ2NjI1IDIwLjQ4MjkzNyAxNy41MTU2MjUgMjAuMDg1OTM4IEMgMTYuMzcyNjI1IDE5LjU5NzkzOCAxNS4wNzYzNTkgMTkuMDQ0OTIyIDEzLjQ0MzM1OSAxOS4wNDQ5MjIgQyAxMS44OTEzNTkgMTkuMDQ0OTIyIDEwLjc4NiAxOS4zNTggMTAgMTkuNzUgTCAxMCAxMi4zNjEzMjggQyAxMC4zNDUgMTEuOTA1MzI4IDExLjEzMjM1OSAxMSAxMy40NDMzNTkgMTEgeiIvPjwvc3ZnPg==",FDe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuODMyMDMxIDQgOC4xNTIzNDQgNi4xMTMyODEgNiA5LjM0Mzc1IEwgNiA2IEwgNCA2IEwgNCAxMyBMIDExIDEzIEwgMTEgMTEgTCA3LjM3NSAxMSBDIDkuMTAxNTYzIDguMDE5NTMxIDEyLjI5Njg3NSA2IDE2IDYgQyAyMS41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";const UDe=l.defineComponent({name:"Header",setup(e){const{state:t,updateSearch:n,updateActiveGroup:i}=l.inject("store"),r=l.computed(()=>!t.options.hideSearch),a=l.computed(()=>!t.options.hideGroupIcons),o=JSON.parse(JSON.stringify(t.orderedGroupKeys)),s=l.computed(()=>t.options.staticTexts.placeholder||""),u=l.computed({get:()=>t.search,set:h=>n(h)}),c=[...t.groups,...Object.keys(t.options.additionalGroups).map(h=>({key:h,title:t.options.groupNames[h]?t.options.groupNames[h]:R5(h)}))],f=[];return o.forEach(h=>{const g=c.findIndex(p=>p.key===h);g!==-1&&(f.push(c[g]),c.splice(g,1))}),{orderedGroups:f,orderedKeys:o,searchValue:u,updateActiveGroup:i,hasSearch:r,hasGroupIcons:a,placeholder:s,icons:{smileys_people:$5,animals_nature:zDe,food_drink:LDe,activities:$De,travel_places:HDe,objects:RDe,symbols:BDe,flags:VDe,...t.options.groupIcons,recent:FDe}}}}),YDe={key:0,class:"v3-header"},XDe={key:0,class:"v3-groups"},qDe=["onClick"],GDe=["title"],KDe=["src"],QDe={key:1,class:"v3-spacing"},JDe={key:2,class:"v3-search"},ZDe=["placeholder"];function eNe(e,t,n,i,r,a){return e.hasGroupIcons||e.hasSearch?(l.openBlock(),l.createElementBlock("div",YDe,[e.hasGroupIcons?(l.openBlock(),l.createElementBlock("div",XDe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.orderedGroups,o=>(l.openBlock(),l.createElementBlock("button",{key:o.key,type:"button",class:l.normalizeClass(["v3-group",{"v3-is-hidden":!e.icons[o.key]}]),onClick:s=>e.updateActiveGroup(o.key)},[l.createElementVNode("span",{title:o.title,class:"v3-icon"},[l.createElementVNode("img",{src:e.icons[o.key],alt:""},null,8,KDe)],8,GDe)],10,qDe))),128))])):l.createCommentVNode("",!0),e.hasGroupIcons&&e.hasSearch?(l.openBlock(),l.createElementBlock("div",QDe)):l.createCommentVNode("",!0),e.hasSearch?(l.openBlock(),l.createElementBlock("div",JDe,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>e.searchValue=o),type:"text",placeholder:e.placeholder},null,8,ZDe),[[l.vModelText,e.searchValue]])])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)}var tNe=uu(UDe,[["render",eNe]]);const nNe=l.defineComponent({name:"Header",setup(){const{state:e,updateSkinTone:t}=l.inject("store"),n=l.ref(!1),i=l.ref(!1),r=l.computed(()=>e.skinTone),a=l.computed(()=>e.options.staticTexts.skinTone||"Skin tone"),o=l.computed(()=>!e.options.disableSkinTones),s=H5()?"is-mac":"",u=l.computed(()=>({...e.emoji,src:f5+"/"+e.emoji[tu]+".png"}));function c(g=!0){n.value=g}function f(){n.value=!n.value}function h(g){t(g),c(!1)}return l.watch(()=>e.emoji,()=>{i.value=!1}),{emoji:u,SKIN_TONES:nAe,updateSkinToneState:c,skinTone:n,stateSkinTone:r,selectSkinTone:h,toggleSkinToneState:f,EMOJI_RESULT_KEY:tu,EMOJI_NAME_KEY:yf,skinToneText:a,hasSkinTones:o,native:e.options.native,unicodeToEmoji:xf,platform:s,hasError:i}}}),iNe={class:"v3-foot-left"},rNe={key:0},aNe=["alt","src"],oNe={class:"v3-text"},sNe={class:"v3-text"},lNe=["onClick"];function uNe(e,t,n,i,r,a){return l.openBlock(),l.createElementBlock("div",{class:"v3-footer",onMouseleave:t[2]||(t[2]=o=>e.updateSkinToneState(!1))},[l.createElementVNode("div",iNe,[l.createElementVNode("span",{class:l.normalizeClass([e.platform,"v3-icon"])},[e.native||e.hasError?(l.openBlock(),l.createElementBlock("span",rNe,l.toDisplayString(e.unicodeToEmoji(e.emoji.r)),1)):(l.openBlock(),l.createElementBlock("img",{key:1,alt:e.unicodeToEmoji(e.emoji.r),src:e.emoji.src,onError:t[0]||(t[0]=o=>e.hasError=!0)},null,40,aNe))],2),l.createElementVNode("span",oNe," :"+l.toDisplayString(e.emoji[e.EMOJI_NAME_KEY][1]||e.emoji[e.EMOJI_NAME_KEY][0])+": ",1)]),e.hasSkinTones?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{type:"button",class:"v3-tone",onClick:t[1]||(t[1]=(...o)=>e.toggleSkinToneState&&e.toggleSkinToneState(...o))},[l.createElementVNode("span",sNe,l.toDisplayString(e.skinToneText),1),l.createElementVNode("span",{class:l.normalizeClass(`v3-icon v3-tone-${e.stateSkinTone}`)},null,2)]),l.createElementVNode("div",{class:l.normalizeClass([e.skinTone?"v3-is-open":"","v3-skin-tones"])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.SKIN_TONES,o=>(l.openBlock(),l.createElementBlock("button",{key:o,type:"button",class:l.normalizeClass(["v3-skin-tone-"+o,"v3-skin-tone"]),onClick:s=>e.selectSkinTone(o)},null,10,lNe))),128))],2)],64)):l.createCommentVNode("",!0)],32)}var dNe=uu(nNe,[["render",uNe]]);const cNe=l.defineComponent({name:"PickerRoot",components:{Header:tNe,Body:ODe,Footer:dNe},props:{type:{type:String,default:""},text:{type:String,default:""},additionalGroups:{type:Object,default:()=>({})},groupOrder:{type:Array,default:()=>[]},groupIcons:{type:Object,default:()=>({})},groupNames:{type:Object,default:()=>({})}},emits:{select:e=>!0,"update:text":e=>!0},setup(e,{emit:t}){const n=l.ref(),i=l.ref(),r=l.ref(),a=l.ref(!1),o=l.ref(e.text),s=e.type==="input"||e.type==="textarea";let u=-1;const{state:c}=l.inject("store"),f=l.computed(()=>c.options.colorTheme);function h(k){if(s){const w=c.options.mode;w==="prepend"?o.value=k.i+o.value:w==="insert"&&u!==-1?(o.value=`${o.value.slice(0,u)}${k.i}${o.value.slice(u)}`,u+=k.i.length):o.value+=k.i,t("update:text",o.value)}t("select",k)}function g(){var k;n.value&&(u=((k=n.value)==null?void 0:k.selectionEnd)||-1)}function p(k){var w;!((w=k.target)!=null&&w.closest(".v3-input-picker-wrap"))&&a.value&&(a.value=!1)}function y(){if(i.value&&r.value&&s){let k=c.options.offset;typeof k!="number"&&(k=6),SDe(i.value,r.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,k]}}]}),document.body.addEventListener("click",p)}}function v(k){o.value=k.target.value||"",t("update:text",o.value)}return l.onMounted(()=>{y()}),l.onBeforeUnmount(()=>{document.body.removeEventListener("click",p)}),{face:$5,open:a,onSelect:h,input:o,elem:n,updateCursor:g,button:i,picker:r,isInputType:s,onChangeText:v,colorTheme:f}}}),fNe={key:0,class:"v3-input-emoji-picker"},hNe={class:"v3-input-picker-root"},mNe=["value"],pNe=["value"],gNe=["src"];function yNe(e,t,n,i,r,a){const o=l.resolveComponent("Header"),s=l.resolveComponent("Body"),u=l.resolveComponent("Footer");return e.isInputType?(l.openBlock(),l.createElementBlock("div",fNe,[l.createElementVNode("div",hNe,[e.type==="input"?(l.openBlock(),l.createElementBlock("input",{key:0,ref:"elem",value:e.input,type:"text",class:"v3-emoji-picker-input",onInput:t[0]||(t[0]=(...c)=>e.onChangeText&&e.onChangeText(...c)),onBlur:t[1]||(t[1]=(...c)=>e.updateCursor&&e.updateCursor(...c))},null,40,mNe)):(l.openBlock(),l.createElementBlock("textarea",{key:1,ref:"elem",value:e.input,class:"v3-emoji-picker-textarea",onInput:t[2]||(t[2]=(...c)=>e.onChangeText&&e.onChangeText(...c)),onBlur:t[3]||(t[3]=(...c)=>e.updateCursor&&e.updateCursor(...c))},null,40,pNe)),l.createElementVNode("div",{class:l.normalizeClass(["v3-input-picker-wrap",e.open?"v3-picker-is-open":""])},[l.createElementVNode("button",{ref:"button",type:"button",class:"v3-input-picker-icon",onClick:t[4]||(t[4]=c=>e.open=!e.open)},[l.createElementVNode("img",{src:e.face,alt:""},null,8,gNe)],512),l.createElementVNode("div",{ref:"picker",class:l.normalizeClass(["v3-emoji-picker","v3-color-theme-"+e.colorTheme])},[l.createVNode(o),l.createVNode(s,{onSelect:e.onSelect},null,8,["onSelect"]),l.createVNode(u)],2)],2)])])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["v3-emoji-picker","v3-color-theme-"+e.colorTheme])},[l.createVNode(o),l.createVNode(s,{onSelect:e.onSelect},null,8,["onSelect"]),l.createVNode(u)],2))}var bNe=uu(cNe,[["render",yNe]]);const wNe=l.defineComponent({name:"Picker",components:{PickerRoot:bNe},props:{native:{type:Boolean,default:!1},hideSearch:{type:Boolean,default:!1},hideGroupIcons:{type:Boolean,default:!1},hideGroupNames:{type:Boolean,default:!1},staticTexts:{type:Object,default:()=>({})},disableStickyGroupNames:{type:Boolean,default:!1},disabledGroups:{type:Array,default:()=>[]},groupNames:{type:Object,default:()=>({})},disableSkinTones:{type:Boolean,default:!1},text:{type:String,default:""},mode:{type:String,default:"insert"},offset:{type:Number,default:6},additionalGroups:{type:Object,default:()=>({})},groupOrder:{type:Array,default:()=>[]},groupIcons:{type:Object,default:()=>({})},pickerType:{type:String,default:""},displayRecent:{type:Boolean,default:!1},theme:{type:String,default:"light"}},emits:{"update:text":e=>!0,select:e=>!0},setup(e,{emit:t}){const n=l.ref(e.text);function i(a){n.value=a||"",t("update:text",n.value)}const r=wAe();return r.updateOptions({native:e.native,hideSearch:e.hideSearch,hideGroupIcons:e.hideGroupIcons,hideGroupNames:e.hideGroupNames,staticTexts:{...iAe,...e.staticTexts},disableStickyGroupNames:e.disableStickyGroupNames,disabledGroups:e.disabledGroups,groupNames:{...h5,...e.groupNames},disableSkinTones:e.disableSkinTones,displayRecent:e.displayRecent,additionalGroups:e.additionalGroups,mode:e.mode,offset:e.offset,groupOrder:e.groupOrder,groupIcons:e.groupIcons,colorTheme:rAe.includes(e.theme)?e.theme:"light"}),l.provide("store",r),{type:e.pickerType,input:n,onChangeText:i}}});function vNe(e,t,n,i,r,a){const o=l.resolveComponent("picker-root");return l.openBlock(),l.createBlock(o,{type:e.type,text:e.input,onSelect:t[0]||(t[0]=s=>e.$emit("select",s)),"onUpdate:text":e.onChangeText},null,8,["type","text","onUpdate:text"])}var kNe=uu(wNe,[["render",vNe]]),Sf=(e=>(e.primary="primary",e.secondary="secondary",e.red="red",e.green="green",e.yellow="yellow",e.blue="blue",e.white="white",e.black="black",e))(Sf||{});const MNe={class:"editor-component"},CNe={class:"toolbar"},qg=l.defineComponent({__name:"ContentEditor",props:{modelValue:{},modelModifiers:{}},emits:l.mergeModels(["unmount-send"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const i=l.useModel(e,"modelValue"),r=l.ref(!1),a=n,o=pn.create({name:"spanNode",inline:!0,group:"inline",atom:!0,selectable:!1,addAttributes(){return{class:{default:"link"},content:{default:""}}},parseHTML(){return[{tag:"span[data-span]"}]},renderHTML({node:y,HTMLAttributes:v}){return["span",ft(v,{"data-span":"",contenteditable:"false",class:y==null?void 0:y.attrs.class}),y==null?void 0:y.attrs.content]}}),s=yPe({extensions:[KEe,dEe.configure({openOnClick:!1,HTMLAttributes:{class:"link"}}),ZEe,eAe.configure({placeholder:"Начните печатать...",emptyEditorClass:"is-editor-empty"}),o],content:i.value,onUpdate:({editor:y})=>{i.value=y.getHTML()},parseOptions:{preserveWhitespace:!0}});l.watch(i,y=>{var v;s.value&&y!==s.value.getHTML()&&((v=s.value)==null||v.commands.setContent(y??"",{parseOptions:{preserveWhitespace:!0}}))});function u(){if(!s.value)return;const y=prompt("Enter URL:");y&&s.value.chain().focus().extendMarkRange("link").setLink({href:y}).run()}function c(y){s.value&&(s.value.chain().focus().insertContent(y.i).run(),r.value=!1)}function f(){if(!s.value)return;const y=document.createElement("input");y.type="file",y.accept="image/*",y.onchange=()=>{if(!(y!=null&&y.files))return;const v=y.files[0];if(v){const k=new FileReader;k.onload=w=>{var x,S;const M=(x=w.target)==null?void 0:x.result;M&&typeof M=="string"&&((S=s.value)==null||S.chain().focus().setImage({src:M}).run())},k.readAsDataURL(v)}},y.click()}function h(){s.value&&a("unmount-send",{content:s.value.getHTML()})}function g(y){s.value&&s.value.chain().focus().insertContent({type:"spanNode",attrs:{content:y+",",class:"link"}}).run()}function p(y){(y.ctrlKey||y.metaKey)&&y.key==="Enter"&&(y.preventDefault(),h())}return l.watch(s,y=>{y&&y.view.dom.addEventListener("keydown",p)}),l.onBeforeUnmount(()=>{s.value&&(s.value.view.dom.removeEventListener("keydown",p),s.value.destroy())}),t({addSpanLink:g}),(y,v)=>{var k;return l.openBlock(),l.createElementBlock("div",MNe,[l.createVNode(l.unref(gPe),{class:"editor-content",editor:l.unref(s)},null,8,["editor"]),l.createElementVNode("div",CNe,[l.createVNode(Ot,{type:l.unref(ut).ghost,size:l.unref(Ai).small,class:"toolbar-button attach-file-button",onClick:u,disabled:""},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).paperClip,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"]),l.createVNode(Ot,{type:l.unref(ut).ghost,class:"toolbar-button",size:l.unref(Ai).small,onClick:f,disabled:""},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).atSign},null,8,["name"])]),_:1},8,["type","size"]),l.createVNode(Ot,{type:l.unref(ut).ghost,size:l.unref(Ai).small,class:"toolbar-button",onClick:v[1]||(v[1]=w=>r.value=!r.value),disabled:""},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).smile,width:16,height:16},null,8,["name"]),r.value?(l.openBlock(),l.createElementBlock("div",{key:0,onClick:v[0]||(v[0]=l.withModifiers(()=>{},["stop"])),class:"emoji-picker"},[l.createVNode(l.unref(kNe),{native:!0,onSelect:c})])):l.createCommentVNode("",!0)]),_:1},8,["type","size"]),l.createVNode(Ot,{disabled:(k=l.unref(s))==null?void 0:k.isEmpty,class:"toolbar-button right",size:l.unref(Ai).small,onClick:h},{default:l.withCtx(()=>[l.createVNode(ve,{name:l.unref(ce).planeRight,color:l.unref(Sf).white,width:16,height:16},null,8,["name","color"])]),_:1},8,["disabled","size"])])])}}}),xNe=["data-testid"],SNe=["data-testid"],_Ne=pe(l.defineComponent({name:"BaseCropper",__name:"BaseCropper",props:{image:{},max:{default:3},min:{default:1},step:{default:.5}},emits:["unmount-scale"],setup(e,{expose:t,emit:n}){const i=e,r=n,a=l.useTemplateRef("canvas"),o=l.useTemplateRef("container"),s=l.reactive({ctx:null,image:null,id:l.useId(),scale:1,position:{x:0,y:0},isDragging:!1,startX:0,startY:0,minScale:i.min,maxScale:i.max,stepScale:i.step});l.watch(()=>i.image,()=>{i.image&&h(i.image)});const u=()=>{a.value&&(s.ctx=a.value.getContext("2d")),c(),window.addEventListener("resize",c)},c=()=>{if(o.value){const{width:I,height:A}=o.value.getBoundingClientRect();a.value&&(a.value.width=I,a.value.height=A),s.image&&f()}},f=()=>{if(s.image){const I=s.ctx,A=a.value;I&&A&&(I.clearRect(0,0,A.width,A.height),I.drawImage(s.image,s.position.x,s.position.y,s.image.width*s.scale,s.image.height*s.scale))}},h=I=>{const A=new FileReader;A.onload=async W=>{var $;typeof(($=W.target)==null?void 0:$.result)=="string"&&(s.image=new Image,s.image.src=W.target.result,s.image.onload=async()=>{if(await l.nextTick(),a.value&&s.image){const D=a.value.width,z=a.value.height,H=s.image.width/s.image.height,X=D/z;H>X?(s.image.width=D,s.image.height=D/H):(s.image.height=z,s.image.width=z*H),c(),s.position.x=(a.value.width-s.image.width)/2,s.position.y=(a.value.height-s.image.height)/2,f()}})},A.readAsDataURL(I)},g=I=>{s.isDragging=!0,s.startX=I.clientX-s.position.x,s.startY=I.clientY-s.position.y,window.addEventListener("mousemove",p),window.addEventListener("mouseup",y)},p=I=>{if(!s.isDragging&&!a.value)return;let A=I.clientX-s.startX,W=I.clientY-s.startY;if(a.value&&s.image){const $=a.value.width-s.image.width*s.scale;s.image.width*s.scale<a.value.width?A=Math.min(Math.max(A,0),a.value.width-s.image.width*s.scale):(A>0&&(A=0),A<$&&(A=$));const D=a.value.height-s.image.height*s.scale;s.image.height*s.scale<a.value.height?W=Math.min(Math.max(W,0),a.value.height-s.image.height*s.scale):(W>0&&(W=0),W<D&&(W=D)),s.position.x=A,s.position.y=W}f()},y=()=>{s.isDragging=!1,window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",y)},v=I=>Math.max(s.minScale,Math.min(I,s.maxScale)),k=I=>{if(a.value){const A=a.value.width/2,W=a.value.height/2;s.position.x=A-(A-s.position.x)*I,s.position.y=W-(W-s.position.y)*I}},w=I=>{const A=s.scale,W=s.scale+I.deltaY*-.001;if(A===v(W))return;s.scale=v(W);const $=W/A;k($),r("unmount-scale",s.scale),f()};return t({cropImage:()=>{if(o.value){const{width:I,height:A}=o.value.getBoundingClientRect(),W=document.createElement("canvas");W.width=I,W.height=A;const $=W.getContext("2d");$&&s.image&&$.drawImage(s.image,s.position.x,s.position.y,s.image.width*s.scale,s.image.height*s.scale);const D=W.toDataURL("image/png"),z=atob(D.split(",")[1]),H=new ArrayBuffer(z.length),X=new Uint8Array(H);for(let ne=0;ne<z.length;ne++)X[ne]=z.charCodeAt(ne);const re=new Blob([X],{type:"image/png"});return i.image?new File([re],i.image.name,{type:"image/png"}):null}return null},scalePlus:()=>{const I=s.scale+s.stepScale;s.scale=v(I),f()},scaleMinus:()=>{const I=s.scale-s.stepScale;s.scale=v(I),f()},setScale:I=>{const A=s.scale,$=I/A;s.scale=v(I),k($),f()},startMove:g,scaleImage:w}),l.onMounted(()=>{u(),i.image&&h(i.image)}),(I,A)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"container",ref:o,class:"base-cropper","data-testid":`BaseCropper-${s.id}`},[l.createElementVNode("canvas",{ref_key:"canvas",ref:a,class:"base-cropper__canvas","data-testid":`BaseCropper-${s.id}-canvas`,onMousedown:g,onWheel:l.withModifiers(w,["prevent"])},null,40,SNe)],8,xNe))}}),[["__scopeId","data-v-df483607"]]),TNe=e=>{const t=l.ref(e==null?void 0:e.defaultValue),n=e==null?void 0:e.min,i=e==null?void 0:e.max,r=e==null?void 0:e.step;l.watch(t,o=>{t.value=a(o)});const a=o=>Math.max(n,Math.min(o,i));return{value:t,min:n,max:i,step:r,getCorrectValue:a}},PNe=(e,t)=>new File([e],t,{type:e.type}),ENe=["data-testid"],ANe=["data-testid"],DNe=["data-testid"],NNe=["data-testid"],jNe=["data-testid"],INe=["data-testid"],Gg=pe(l.defineComponent({name:"ModalCroppedAvatar",__name:"ModalCroppedAvatar",props:{image:{},open:{type:Boolean},position:{default:"center"},width:{default:"650px"},height:{default:"auto"},dataTestid:{}},emits:["unmount-close","unmount-save"],setup(e,{emit:t}){const n=e,i=t,{max:r,min:a,step:o,value:s}=TNe({defaultValue:1,max:3,min:1,step:.1}),u=l.useId(),c=l.useTemplateRef("cropper"),f=l.reactive({openModal:!1});l.watch(s,()=>{c.value&&c.value.setScale(s.value)});const h=()=>{f.openModal=!1,i("unmount-close")},g=k=>{s.value=k},p=()=>{s.value=s.value-o},y=()=>{s.value=s.value+o},v=()=>{if(c.value){const k=c.value.cropImage();if(k){const w=k.name,M=PNe(k,w);i("unmount-save",M),h()}}};return l.onUnmounted(()=>{h()}),l.onMounted(()=>{n.open===void 0&&(f.openModal=n.open)}),(k,w)=>(l.openBlock(),l.createBlock(Fd,l.mergeProps(n,{class:"modal-cropped-avatar","data-testid":`ModalCroppedAvatar-${l.unref(u)}`,onClose:h}),{default:l.withCtx(()=>[l.createElementVNode("div",{class:"modal-cropped-avatar__content","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content`},[l.createElementVNode("div",{class:"modal-cropped-avatar__title","data-testid":`ModalCroppedAvatar-${l.unref(u)}-title`}," Изменение фото профиля ",8,ANe),l.createElementVNode("div",{class:"modal-cropped-avatar__main","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-main`},[l.createElementVNode("div",{class:"modal-cropped-avatar__cropped","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-main-cropped`},[l.createVNode(_Ne,{ref_key:"cropper",ref:c,image:e.image,max:l.unref(r),min:l.unref(a),step:l.unref(o),class:"modal-cropped-avatar__cropper",onUnmountScale:g},null,8,["image","max","min","step"]),l.createElementVNode("div",{class:"modal-cropped-avatar__tools","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-tools`},[l.createVNode(ve,{name:l.unref(ce).minus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-iconMinus`,onClick:p},null,8,["name","data-testid"]),l.createVNode(Gd,{max:l.unref(r),min:l.unref(a),step:l.unref(o),modelValue:l.unref(s),"onUpdate:modelValue":w[0]||(w[0]=M=>l.isRef(s)?s.value=M:null),"data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-Range`},null,8,["max","min","step","modelValue","data-testid"]),l.createVNode(ve,{name:l.unref(ce).plus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-IconPlus`,onClick:y},null,8,["name","data-testid"])],8,jNe)],8,NNe),l.createElementVNode("div",{class:"modal-cropped-avatar__buttons","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-buttons`},[l.createVNode(Ot,{type:l.unref(ut).outline,class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-ButtonCancel`,onClick:h},{default:l.withCtx(()=>[...w[1]||(w[1]=[l.createTextVNode(" Отменить ",-1)])]),_:1},8,["type","data-testid"]),l.createVNode(Ot,{class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${l.unref(u)}-content-buttonSave`,onClick:v},{default:l.withCtx(()=>[...w[2]||(w[2]=[l.createTextVNode(" Сохранить ",-1)])]),_:1},8,["data-testid"])],8,INe)],8,DNe)],8,ENe)]),_:1},16,["data-testid"]))}}),[["__scopeId","data-v-974cb4d1"]]),Kg={install(e,t={enabled:!0}){if(!(t.enabled??!1)){console.info("[removeDataTestidPlugin] Plugin is disabled.");return}const i=r=>{r.removeAttribute("data-testid"),Array.from(r.children).forEach(i)};e.mixin({mounted(){i(this.$el)}})}},B5={Accordion:C1,Badges:Vt,BreadCrumbs:wh,Dialog:M1,DragAndDrop:x1,Card:S1,Combobox:T1,Calendar:Zm,Button:Ot,Switch:Tu,SelectList:vo,Dropdown:Oh,Textarea:W1,Filter:_1,Icon:ve,Input:E1,InputNumber:A1,Picture:O1,PopoverHover:Y1,PushNotification:z1,Scroll:N1,Search:yl,Modal:Fd,Slider:D1,Checkbox:j1,Toggle:$d,UserMenu:I1,CopyIcon:L1,Loader:$1,FilterTag:H1,CircularProgress:R1,Popover:B1,Table:V1,TableNew:G1,TableSimple:Q1,TableRow:Xd,TableRowNew:K1,TableTd:qd,TableTh:Go,SectionTableRow:F1,HeadTableRow:Ml,HeadTableRowNew:Kd,ScrollWrapper:Cl,ScrollWrapperNew:uCe,Radio:X1,Tooltip:kl,BaseFilter:q1,Range:Gd,Tabs:J1,ContentEditor:qg,ModalCroppedAvatar:Gg,Avatar:Ud},V5=Object.freeze(Object.defineProperty({__proto__:null,Accordion:C1,Avatar:Ud,Badges:Vt,BadgesTypeEnum:tt,BaseFilter:q1,BreadCrumbs:wh,Button:Ot,ButtonTypeEnum:ut,Calendar:Zm,Card:S1,Checkbox:j1,CircularProgress:R1,ColorsEnum:Sf,Combobox:T1,ContentEditor:qg,CopyIcon:L1,Dialog:M1,DragAndDrop:x1,Dropdown:Oh,Filter:_1,FilterTag:H1,HeadTableRow:Ml,HeadTableRowNew:Kd,Icon:ve,IconNameEnum:ce,ImageExtensionsEnum:Od,Input:E1,InputNumber:A1,InputTypeEnum:P1,Loader:$1,Modal:Fd,ModalCroppedAvatar:Gg,Picture:O1,Popover:B1,PopoverHover:Y1,PushNotification:z1,Radio:X1,Range:Gd,Scroll:N1,ScrollWrapper:Cl,Search:yl,SectionTableRow:F1,SelectList:vo,SizesEnum:Ai,Slider:D1,Switch:Tu,Table:V1,TableNew:G1,TableRow:Xd,TableRowNew:K1,TableSimple:Q1,TableTd:qd,TableTh:Go,Tabs:J1,Textarea:W1,TextareaTypeEnum:Yd,Toggle:$d,Tooltip:kl,UserMenu:I1,VideoExtensionsEnum:zd,default:{install:e=>{Object.keys(B5).forEach(t=>{e.component("Y"+t,B5[t])})}},getFirstTime:Hw,getLastTime:bd,vuePluginRemoveTestid:Kg},Symbol.toStringTag,{value:"Module"})),WNe={install(e){for(const t in V5){const n=V5[t];e.use(n).use(Kg,{enabled:!1})}}};U.Accordion=C1,U.Avatar=Ud,U.Badges=Vt,U.BadgesTypeEnum=tt,U.BaseFilter=q1,U.BreadCrumbs=wh,U.Button=Ot,U.ButtonTypeEnum=ut,U.Calendar=Zm,U.Card=S1,U.Checkbox=j1,U.CircularProgress=R1,U.ColorsEnum=Sf,U.Combobox=T1,U.ContentEditor=qg,U.CopyIcon=L1,U.Dialog=M1,U.DragAndDrop=x1,U.Dropdown=Oh,U.Filter=_1,U.FilterTag=H1,U.HeadTableRow=Ml,U.HeadTableRowNew=Kd,U.Icon=ve,U.IconNameEnum=ce,U.ImageExtensionsEnum=Od,U.Input=E1,U.InputNumber=A1,U.InputTypeEnum=P1,U.Loader=$1,U.Modal=Fd,U.ModalCroppedAvatar=Gg,U.OnClickOutside=cS,U.OnLongPress=gS,U.Picture=O1,U.Popover=B1,U.PopoverHover=Y1,U.PushNotification=z1,U.Radio=X1,U.Range=Gd,U.Scroll=N1,U.ScrollWrapper=Cl,U.Search=yl,U.SectionTableRow=F1,U.SelectList=vo,U.SizesEnum=Ai,U.Slider=D1,U.Switch=Tu,U.Table=V1,U.TableNew=G1,U.TableRow=Xd,U.TableRowNew=K1,U.TableSimple=Q1,U.TableTd=qd,U.TableTh=Go,U.Tabs=J1,U.Textarea=W1,U.TextareaTypeEnum=Yd,U.Toggle=$d,U.Tooltip=kl,U.UseActiveElement=yS,U.UseBattery=bS,U.UseBrowserLocation=wS,U.UseClipboard=vS,U.UseColorMode=DS,U.UseDark=NS,U.UseDeviceMotion=jS,U.UseDeviceOrientation=IS,U.UseDevicePixelRatio=WS,U.UseDevicesList=OS,U.UseDocumentVisibility=zS,U.UseDraggable=LS,U.UseElementBounding=$S,U.UseElementSize=RS,U.UseElementVisibility=FS,U.UseEyeDropper=YS,U.UseFullscreen=XS,U.UseGeolocation=qS,U.UseIdle=GS,U.UseImage=ZS,U.UseMouse=n_,U.UseMouseInElement=i_,U.UseMousePressed=r_,U.UseNetwork=a_,U.UseNow=o_,U.UseObjectUrl=s_,U.UseOffsetPagination=l_,U.UseOnline=u_,U.UsePageLeave=d_,U.UsePointer=c_,U.UsePointerLock=f_,U.UsePreferredColorScheme=h_,U.UsePreferredContrast=m_,U.UsePreferredDark=p_,U.UsePreferredLanguages=g_,U.UsePreferredReducedMotion=y_,U.UseScreenSafeArea=k_,U.UseTimeAgo=T_,U.UseTimestamp=P_,U.UseVirtualList=E_,U.UseWindowFocus=A_,U.UseWindowSize=D_,U.UserMenu=I1,U.VOnClickOutside=Ls,U.VOnLongPress=t2,U.VideoExtensionsEnum=zd,U.VueToolsCore=TMe,U.arrow=l3e,U.autoPlacement=Gm,U.autoUpdate=Xm,U.computePosition=Ow,U.default=WNe,U.detectOverflow=Z4e,U.flip=t3e,U.getFirstTime=Hw,U.getLastTime=bd,U.getOverflowAncestors=Wo,U.hide=i3e,U.inline=a3e,U.limitShift=o3e,U.offset=qm,U.platform=Iw,U.shift=e3e,U.size=n3e,U.useFloating=Qm,U.useSearch=o4,U.vElementHover=HS,U.vElementSize=VS,U.vElementVisibility=US,U.vInfiniteScroll=e_,U.vIntersectionObserver=t_,U.vOnClickOutside=Ls,U.vOnKeyStroke=hS,U.vOnLongPress=t2,U.vResizeObserver=b_,U.vScroll=M_,U.vScrollLock=__,U.vuePluginRemoveTestid=Kg,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|