@pksep/yui 0.1.286 → 0.1.287

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.
@@ -718,7 +718,7 @@
718
718
  `},undo:{name:"undo",style:"solid",path:`
719
719
  <path d="M4.5 8H15C15 8 20 8 20 12.706C20 18 15 18 15 18H6.286" stroke="currentColor" stroke-width="2.29565" stroke-linecap="round" stroke-linejoin="round"/>
720
720
  <path d="M7.5 11.5L4 8L7.5 4.5" stroke="currentColor" stroke-width="2.29565" stroke-linecap="round" stroke-linejoin="round"/>
721
- `,fill:"none",viewbox:"0 0 24 24"},uploadCloud:ZO,usersGroup:xO,warehouse:fO,warning:{name:"warning",style:"solid",fill:"none",viewbox:"0 0 17 17",path:'<path d="M8.125 0C6.51803 0 4.94714 0.476523 3.611 1.36931C2.27485 2.2621 1.23344 3.53105 0.618482 5.0157C0.00352044 6.50035 -0.157382 8.13401 0.156123 9.71011C0.469628 11.2862 1.24346 12.7339 2.37976 13.8702C3.51606 15.0065 4.9638 15.7804 6.53989 16.0939C8.11599 16.4074 9.74966 16.2465 11.2343 15.6315C12.719 15.0166 13.9879 13.9752 14.8807 12.639C15.7735 11.3029 16.25 9.73197 16.25 8.125C16.2477 5.97081 15.391 3.90551 13.8677 2.38227C12.3445 0.85903 10.2792 0.00227486 8.125 0ZM8.125 15C6.76526 15 5.43605 14.5968 4.30546 13.8414C3.17487 13.0859 2.29368 12.0122 1.77333 10.7559C1.25298 9.49971 1.11683 8.11737 1.3821 6.78375C1.64738 5.45013 2.30216 4.22513 3.26364 3.26364C4.22513 2.30215 5.45014 1.64737 6.78376 1.3821C8.11738 1.11683 9.49971 1.25298 10.756 1.77333C12.0122 2.29368 13.0859 3.17487 13.8414 4.30545C14.5968 5.43604 15 6.76525 15 8.125C14.9979 9.94773 14.2729 11.6952 12.9841 12.9841C11.6952 14.2729 9.94773 14.9979 8.125 15ZM7.5 8.75V4.375C7.5 4.20924 7.56585 4.05027 7.68306 3.93306C7.80027 3.81585 7.95924 3.75 8.125 3.75C8.29076 3.75 8.44973 3.81585 8.56695 3.93306C8.68416 4.05027 8.75 4.20924 8.75 4.375V8.75C8.75 8.91576 8.68416 9.07473 8.56695 9.19194C8.44973 9.30915 8.29076 9.375 8.125 9.375C7.95924 9.375 7.80027 9.30915 7.68306 9.19194C7.56585 9.07473 7.5 8.91576 7.5 8.75ZM9.0625 11.5625C9.0625 11.7479 9.00752 11.9292 8.9045 12.0833C8.80149 12.2375 8.65507 12.3577 8.48377 12.4286C8.31246 12.4996 8.12396 12.5182 7.94211 12.482C7.76025 12.4458 7.5932 12.3565 7.46209 12.2254C7.33098 12.0943 7.24169 11.9273 7.20552 11.7454C7.16934 11.5635 7.18791 11.375 7.25887 11.2037C7.32982 11.0324 7.44999 10.886 7.60416 10.783C7.75833 10.68 7.93958 10.625 8.125 10.625C8.37364 10.625 8.6121 10.7238 8.78792 10.8996C8.96373 11.0754 9.0625 11.3139 9.0625 11.5625Z" fill="currentColor"/>'},wastes:FO,writeDowns:KO,zoomMinus:kU,zoomPlus:FU},Symbol.toStringTag,{value:"Module"})),KU=["data-testid","fill","viewBox"],zU=["innerHTML"],JU=l.defineComponent({__name:"Icon",props:{height:{},width:{},name:{},color:{},dataTestid:{default:"Icon"}},setup(C){const g=C,I=l.computed(()=>({color:g.color,width:`${g.width}px`,height:`${g.height}px`})),e=i=>i.replace(/-./g,A=>A[1].toUpperCase()),t=l.computed(()=>hy[e(g.name)]);return(i,A)=>{var n,s,o;return l.openBlock(),l.createElementBlock("svg",{class:"icon-yui-kit","data-testid":g.dataTestid,style:l.normalizeStyle(I.value),fill:(n=l.unref(hy)[e(g.name)])==null?void 0:n.fill,viewBox:((s=l.unref(hy)[e(g.name)])==null?void 0:s.viewbox)||"0 0 24 24"},[l.createElementVNode("g",{innerHTML:(o=t.value)==null?void 0:o.path},null,8,zU)],12,KU)}}}),Qg=(C,g)=>{const I=C.__vccOpts||C;for(const[e,t]of g)I[e]=t;return I},Yg=Qg(JU,[["__scopeId","data-v-938d45fe"]]),xU=["data-testid"],TU=["data-testid"],LU=l.defineComponent({__name:"Badges",props:{text:{},type:{default:UI.default},choosed:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestid:{default:"Badges"}},emits:["choose","remove"],setup(C,{expose:g,emit:I}){const e=C,t=I,i=l.reactive({choosed:e.choosed}),A=l.ref(null),n=()=>!!(A.value&&A.value.scrollWidth>A.value.clientWidth),s=l.ref(n()),o=l.computed(()=>({"base-yui-kit":!0,"default-yui-kit":e.type===UI.default,"blue-yui-kit":e.type===UI.blue,"light-blue-yui-kit":e.type===UI.lightBlue,"contrast-blue-yui-kit":e.type===UI.contrastBlue,"green-yui-kit":e.type===UI.green,"orange-yui-kit":e.type===UI.orange,"red-yui-kit":e.type===UI.red,"pink-yui-kit":e.type===UI.pink,"violet-yui-kit":e.type===UI.violet,"yellow-yui-kit":e.type===UI.yellow,"choosed-yui-kit":e.choosed||i.choosed,"disabled-yui-kit":e.type===UI.disabled})),a=()=>{t("choose",i.choosed,e.text),e.disabled||(i.choosed=!i.choosed)},d=()=>{t("remove",e.text)},m=new ResizeObserver(()=>{s.value=n()});return g({isSpanOverflow:s}),l.onMounted(()=>{A.value&&m.observe(A.value)}),(Z,u)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(o.value),onClick:a,"data-testid":e.dataTestid},[l.createElementVNode("span",{ref_key:"spanRef",ref:A,class:"badges-text","data-testid":`${e.dataTestid}-BadgesText`},l.toDisplayString(e.text),9,TU),l.createVNode(Yg,{class:"close-icon",width:10,height:10,"data-testid":`${e.dataTestid}-Icon`,name:l.unref(rg).closeTag,onClick:d},null,8,["data-testid","name"])],10,xU))}}),Mt=Qg(LU,[["__scopeId","data-v-85bcc1bf"]]),vU=["data-testid"],jU=["data-testid"],QU=["data-testid"],OU=["data-testid"],UU=["data-testid"],EU=["data-testid"],PU=["title","onClick","data-testid"],_U=["data-testid"],qU=["onClick","data-testid"],$U=["data-testid"],Gy=25,wy=Qg(l.defineComponent({__name:"BreadCrumbs",props:{items:{},dataTestid:{default:"BreadCrumbs"}},emits:["click"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({items:[],crumbs:l.computed(()=>{const d=I.items.length<4?I.items.length-1:3;let m=[I.items[0],...I.items.slice(-d)];return I.items.length===1&&(m=[I.items[0]]),m.map(Z=>(Z.isSub=!1,Z))}),subCrumbs:l.computed(()=>I.items.slice(1,-3).map(d=>(d.isSub=!0,d))),getClassesLink:l.computed(()=>(d,m=!1)=>({"bread-crumbs-yui-kit__link":!0,"disabled-yui-kit":!d.path,active:m})),getClassesSpan:l.computed(()=>d=>({"checked-yui-kit":d===t.crumbs.length-1})),fullTitle:l.computed(()=>d=>d.title.length>Gy),isShowList:!1}),i=l.computed(()=>({crumbs:{"bread-crumbs-yui-kit__item":!0},subcrumbs:{"bread-subcrumbs-yui-kit__item":!0}})),A=l.computed(()=>({crumbs:{"bread-subcrumbs-yui-kit":!0,"scroll-yui-kit":!0,"active-yui-kit":t.isShowList}})),n=(d,m)=>{m!==t.items.length-1&&(d.isSub&&s(),I.items.forEach(({path:Z},u)=>{Z===d.path&&e("click",{title:d.title,path:d.path,inx:u+1})}))},s=()=>t.isShowList=!t.isShowList,o=d=>d.title.length>Gy?d.title.slice(0,Gy).trim()+"...":d.title,a=d=>t.items.length>=5&&d===1;return l.onMounted(()=>t.items=t.crumbs.concat(t.subCrumbs)),(d,m)=>(l.openBlock(),l.createElementBlock("ul",{class:"bread-crumbs-yui-kit","data-testid":I.dataTestid},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.items,(Z,u)=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(i.value.crumbs),key:Z.path,"data-testid":`${I.dataTestid}-Crumbs${u}`},[a(u)?(l.openBlock(),l.createElementBlock("div",{key:0,"data-testid":`${I.dataTestid}-ShowSubList${u}`},[l.createElementVNode("span",{class:"bread-crumbs-yui-kit--closed",onClick:s,"data-testid":`${I.dataTestid}-Closed${u}`},"...",8,OU),l.createElementVNode("ul",{class:l.normalizeClass(A.value.crumbs),"data-testid":`${I.dataTestid}-Crumbs${u}`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.subCrumbs,(h,G)=>(l.openBlock(),l.createElementBlock("li",{key:h.path,class:l.normalizeClass(i.value.subcrumbs),"data-testid":`${I.dataTestid}-SubCrumbs${G}`},[l.createElementVNode("span",{title:h.title,onClick:w=>n(h,G),class:l.normalizeClass({"disabled-yui-kit":!h.path}),"data-testid":`${I.dataTestid}-SubCrumbs-Title${G}`},l.toDisplayString(o(h)),11,PU)],10,EU))),128))],10,UU)],8,QU)):l.createCommentVNode("",!0),Z.isSub?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(t.getClassesLink(Z,u===t.crumbs.length-1)),"data-testid":`${I.dataTestid}-Classes${u}`},[l.createElementVNode("span",{class:l.normalizeClass(t.getClassesSpan(u)),onClick:h=>n(Z,u),"data-testid":`${I.dataTestid}-Checked${u}`},[l.createTextVNode(l.toDisplayString(u!==t.crumbs.length-1?o(Z):Z.title),1),t.fullTitle(Z)&&u!==t.crumbs.length-1?(l.openBlock(),l.createElementBlock("span",{key:0,"data-testid":`${I.dataTestid}-FullName`,class:"fullName-yui-kit"},l.toDisplayString(Z.title),9,$U)):l.createCommentVNode("",!0)],10,qU),u!==t.crumbs.length-1?(l.openBlock(),l.createBlock(Yg,{key:0,name:l.unref(rg).rightSmall,"data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"])):l.createCommentVNode("",!0)],10,_U))],10,jU))),128))],8,vU))}}),[["__scopeId","data-v-4ae0dc04"]]);var yI=(C=>(C.small="small",C.medium="medium",C.large="large",C.little="little",C))(yI||{}),II=(C=>(C.primary="primary",C.outline="outline",C.ghost="ghost",C.secondary="secondary",C.reject="reject",C.minor="minor",C))(II||{});const g7=["disabled","data-testid"],I7=["data-testid"],C7=["data-testid"],e7=l.defineComponent({__name:"Button",props:{disabled:{type:Boolean,default:!1},size:{default:yI.medium},type:{default:II.primary},pill:{type:Boolean,default:!1},backgroundColor:{},color:{default:""},dataTestid:{default:"Button"}},emits:["click"],setup(C,{emit:g}){const I=C,e=g,t=l.computed(()=>({"button-yui-kit":!0,[I.size]:!0,"disabled-yui-kit":I.disabled,"pill-yui-kit":I.pill,"primary-yui-kit":I.type===II.primary,"secondary-yui-kit":I.type===II.secondary,"outline-yui-kit":I.type===II.outline,"reject-yui-kit":I.type===II.reject,"ghost-yui-kit":I.type===II.ghost,"minor-yui-kit":I.type===II.minor})),i=l.computed(()=>({backgroundColor:I.backgroundColor})),A=l.computed(()=>({color:I.color==="primary"||I.color==="secondary"?"black":I.color})),n=s=>e("click",s);return(s,o)=>(l.openBlock(),l.createElementBlock("button",{class:l.normalizeClass(t.value),disabled:I.disabled,tabindex:"0",style:l.normalizeStyle(i.value),"data-testid":I.dataTestid,onClick:n,onKeyup:l.withKeys(n,["enter"])},[s.$slots["left-icon"]?(l.openBlock(),l.createElementBlock("span",{key:0,style:l.normalizeStyle(A.value),"data-testid":`${I.dataTestid}-LeftIcon`},[l.renderSlot(s.$slots,"left-icon",{},void 0,!0)],12,I7)):l.createCommentVNode("",!0),l.renderSlot(s.$slots,"default",{},void 0,!0),s.$slots["right-icon"]?(l.openBlock(),l.createElementBlock("span",{key:1,style:l.normalizeStyle(A.value),"data-testid":`${I.dataTestid}-RightIcon`},[l.renderSlot(s.$slots,"right-icon",{},void 0,!0)],12,C7)):l.createCommentVNode("",!0)],46,g7))}}),nI=Qg(e7,[["__scopeId","data-v-9c743d5f"]]),t7=["data-testid"],i7=["data-testid","onClick"],Nw=Qg(l.defineComponent({__name:"Switch",props:{items:{},defaultValue:{},isIcons:{type:Boolean},disabled:{type:Boolean},theme:{default:"default"},dataTestid:{default:"Switch"}},emits:["change"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({activeIndex:0}),i=l.computed(()=>[{"switch-yui-kit-list_default":I.theme==="default","switch-yui-kit-list_contrast":I.theme==="contrast","switch-yui-kit-list_disabled":I.disabled}]),A=a=>({"switch-yui-kit-item":!0,"switch-yui-kit-active":t.activeIndex===a,"switch-yui-kit-active_disabled":t.activeIndex===a&&I.disabled,"switch-yui-kit-item_disabled":I.disabled}),n=a=>typeof a=="string"?a:a.label,s=a=>typeof a=="string"?a:a.value,o=a=>{t.activeIndex!==a&&(t.activeIndex=a,e("change",{index:a,value:s(I.items[a])}))};return l.watch(()=>I.defaultValue,()=>{t.activeIndex=I.defaultValue?I.items.findIndex(a=>s(a)===I.defaultValue)??0:0}),l.onMounted(()=>{if(I.defaultValue){const a=I.items.findIndex(d=>s(d)===I.defaultValue);a!==-1&&(t.activeIndex=a)}}),(a,d)=>(l.openBlock(),l.createElementBlock("ul",{class:l.normalizeClass(["switch-yui-kit-list",i.value]),"data-testid":I.dataTestid},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.items,(m,Z)=>(l.openBlock(),l.createElementBlock("li",{key:Z,class:l.normalizeClass(A(Z)),"data-testid":`${I.dataTestid}-Item${Z}`,onClick:u=>o(Z)},[I.isIcons?(l.openBlock(),l.createBlock(Yg,{key:0,name:m,"data-testid":`${I.dataTestid}-Item-Icon${Z}`},null,8,["name","data-testid"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[m.icon?(l.openBlock(),l.createBlock(Yg,{key:0,class:"switch-yui-kit-item-icon",name:m.icon,"data-testid":`${I.dataTestid}-Item-Icon${Z}`},null,8,["name","data-testid"])):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(n(m)),1)],64))],10,i7))),128))],10,t7))}}),[["__scopeId","data-v-7ae7113b"]]);function DH(C,g){var I;const e=l.shallowRef();return l.watchEffect(()=>{e.value=C()},{...g,flush:(I=g==null?void 0:g.flush)!=null?I:"sync"}),l.readonly(e)}function Wy(C,g){let I,e,t;const i=l.ref(!0),A=()=>{i.value=!0,t()};l.watch(C,A,{flush:"sync"});const n=typeof g=="function"?g:g.get,s=typeof g=="function"?void 0:g.set,o=l.customRef((a,d)=>(e=a,t=d,{get(){return i.value&&(I=n(I),i.value=!1),e(),I},set(m){s==null||s(m)}}));return Object.isExtensible(o)&&(o.trigger=A),o}function GI(C){return l.getCurrentScope()?(l.onScopeDispose(C),!0):!1}function ct(){const C=new Set,g=t=>{C.delete(t)};return{on:t=>{C.add(t);const i=()=>g(t);return GI(i),{off:i}},off:g,trigger:(...t)=>Promise.all(Array.from(C).map(i=>i(...t)))}}function A7(C){let g=!1,I;const e=l.effectScope(!0);return(...t)=>(g||(I=e.run(()=>C(...t)),g=!0),I)}const wr=new WeakMap,kH=(...C)=>{var g;const I=C[0],e=(g=l.getCurrentInstance())==null?void 0:g.proxy;if(e==null)throw new Error("injectLocal must be called in setup");return wr.has(e)&&I in wr.get(e)?wr.get(e)[I]:l.inject(...C)},FH=(C,g)=>{var I;const e=(I=l.getCurrentInstance())==null?void 0:I.proxy;if(e==null)throw new Error("provideLocal must be called in setup");wr.has(e)||wr.set(e,Object.create(null));const t=wr.get(e);t[C]=g,l.provide(C,g)};function n7(C,g){const I=(g==null?void 0:g.injectionKey)||Symbol(C.name||"InjectionState"),e=g==null?void 0:g.defaultValue;return[(...A)=>{const n=C(...A);return FH(I,n),n},()=>kH(I,e)]}function l7(C){let g=0,I,e;const t=()=>{g-=1,e&&g<=0&&(e.stop(),I=void 0,e=void 0)};return(...i)=>(g+=1,e||(e=l.effectScope(!0),I=e.run(()=>C(...i))),GI(t),I)}function KH(C,g,{enumerable:I=!1,unwrap:e=!0}={}){for(const[t,i]of Object.entries(g))t!=="value"&&(l.isRef(i)&&e?Object.defineProperty(C,t,{get(){return i.value},set(A){i.value=A},enumerable:I}):Object.defineProperty(C,t,{value:i,enumerable:I}));return C}function s7(C,g){return g==null?l.unref(C):l.unref(C)[g]}function o7(C){return l.unref(C)!=null}function zH(C,g){if(typeof Symbol<"u"){const I={...C};return Object.defineProperty(I,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:g[e++],done:e>g.length})}}}),I}else return Object.assign([...g],C)}function _(C){return typeof C=="function"?C():l.unref(C)}const a7=_;function By(C,g){const I=(g==null?void 0:g.computedGetter)===!1?l.unref:_;return function(...e){return l.computed(()=>C.apply(this,e.map(t=>I(t))))}}function d7(C,g={}){let I=[],e;if(Array.isArray(g))I=g;else{e=g;const{includeOwnProperties:t=!0}=g;I.push(...Object.keys(C)),t&&I.push(...Object.getOwnPropertyNames(C))}return Object.fromEntries(I.map(t=>{const i=C[t];return[t,typeof i=="function"?By(i.bind(C),e):i]}))}function JH(C){if(!l.isRef(C))return l.reactive(C);const g=new Proxy({},{get(I,e,t){return l.unref(Reflect.get(C.value,e,t))},set(I,e,t){return l.isRef(C.value[e])&&!l.isRef(t)?C.value[e].value=t:C.value[e]=t,!0},deleteProperty(I,e){return Reflect.deleteProperty(C.value,e)},has(I,e){return Reflect.has(C.value,e)},ownKeys(){return Object.keys(C.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return l.reactive(g)}function py(C){return JH(l.computed(C))}function c7(C,...g){const I=g.flat(),e=I[0];return py(()=>Object.fromEntries(typeof e=="function"?Object.entries(l.toRefs(C)).filter(([t,i])=>!e(_(i),t)):Object.entries(l.toRefs(C)).filter(t=>!I.includes(t[0]))))}const KA={mounted:"mounted",updated:"updated",unmounted:"unmounted"},ue=typeof window<"u"&&typeof document<"u",xH=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,TH=C=>typeof C<"u",Db=C=>C!=null,m7=(C,...g)=>{C||console.warn(...g)},r7=Object.prototype.toString,Wr=C=>r7.call(C)==="[object Object]",Z7=()=>Date.now(),Kd=()=>+Date.now(),Vw=(C,g,I)=>Math.min(I,Math.max(g,C)),NI=()=>{},b7=(C,g)=>(C=Math.ceil(C),g=Math.floor(g),Math.floor(Math.random()*(g-C+1))+C),LH=(C,g)=>Object.prototype.hasOwnProperty.call(C,g),zd=u7();function u7(){var C,g;return ue&&((C=window==null?void 0:window.navigator)==null?void 0:C.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((g=window==null?void 0:window.navigator)==null?void 0:g.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Jd(C,g){function I(...e){return new Promise((t,i)=>{Promise.resolve(C(()=>g.apply(this,e),{fn:g,thisArg:this,args:e})).then(t).catch(i)})}return I}const kb=C=>C();function Xw(C,g={}){let I,e,t=NI;const i=n=>{clearTimeout(n),t(),t=NI};return n=>{const s=_(C),o=_(g.maxWait);return I&&i(I),s<=0||o!==void 0&&o<=0?(e&&(i(e),e=null),Promise.resolve(n())):new Promise((a,d)=>{t=g.rejectOnCancel?d:a,o&&!e&&(e=setTimeout(()=>{I&&i(I),e=null,a(n())},o)),I=setTimeout(()=>{e&&i(e),e=null,a(n())},s)})}}function Fb(...C){let g=0,I,e=!0,t=NI,i,A,n,s,o;!l.isRef(C[0])&&typeof C[0]=="object"?{delay:A,trailing:n=!0,leading:s=!0,rejectOnCancel:o=!1}=C[0]:[A,n=!0,s=!0,o=!1]=C;const a=()=>{I&&(clearTimeout(I),I=void 0,t(),t=NI)};return m=>{const Z=_(A),u=Date.now()-g,h=()=>i=m();return a(),Z<=0?(g=Date.now(),h()):(u>Z&&(s||!e)?(g=Date.now(),h()):n&&(i=new Promise((G,w)=>{t=o?w:G,I=setTimeout(()=>{g=Date.now(),e=!0,G(h()),a()},Math.max(0,Z-u))})),!s&&!I&&(I=setTimeout(()=>e=!0,Z)),e=!1,i)}}function Yy(C=kb){const g=l.ref(!0);function I(){g.value=!1}function e(){g.value=!0}const t=(...i)=>{g.value&&C(...i)};return{isActive:l.readonly(g),pause:I,resume:e,eventFilter:t}}function vH(C){const g=Object.create(null);return I=>g[I]||(g[I]=C(I))}const h7=/\B([A-Z])/g,G7=vH(C=>C.replace(h7,"-$1").toLowerCase()),w7=/-(\w)/g,jH=vH(C=>C.replace(w7,(g,I)=>I?I.toUpperCase():""));function Br(C,g=!1,I="Timeout"){return new Promise((e,t)=>{setTimeout(g?()=>t(I):e,C)})}function yy(C){return C}function QH(C){let g;function I(){return g||(g=C()),g}return I.reset=async()=>{const e=g;g=void 0,e&&await e},I}function W7(C){return C()}function Ny(C,...g){return g.some(I=>I in C)}function OH(C,g){var I;if(typeof C=="number")return C+g;const e=((I=C.match(/^-?\d+\.?\d*/))==null?void 0:I[0])||"",t=C.slice(e.length),i=Number.parseFloat(e)+g;return Number.isNaN(i)?C:i+t}function UH(C,g,I=!1){return g.reduce((e,t)=>(t in C&&(!I||C[t]!==void 0)&&(e[t]=C[t]),e),{})}function EH(C,g,I=!1){return Object.fromEntries(Object.entries(C).filter(([e,t])=>(!I||t!==void 0)&&!g.includes(e)))}function PH(C){return Object.entries(C)}function Kb(C){return C||l.getCurrentInstance()}function PC(...C){if(C.length!==1)return l.toRef(...C);const g=C[0];return typeof g=="function"?l.readonly(l.customRef(()=>({get:g,set:NI}))):l.ref(g)}const B7=PC;function p7(C,...g){const I=g.flat(),e=I[0];return py(()=>Object.fromEntries(typeof e=="function"?Object.entries(l.toRefs(C)).filter(([t,i])=>e(_(i),t)):I.map(t=>[t,PC(C,t)])))}function _H(C,g=1e4){return l.customRef((I,e)=>{let t=_(C),i;const A=()=>setTimeout(()=>{t=_(C),e()},_(g));return GI(()=>{clearTimeout(i)}),{get(){return I(),t},set(n){t=n,e(),clearTimeout(i),i=A()}}})}function pr(C,g=200,I={}){return Jd(Xw(g,I),C)}function Vy(C,g=200,I={}){const e=l.ref(C.value),t=pr(()=>{e.value=C.value},g,I);return l.watch(C,()=>t()),e}function Y7(C,g){return l.computed({get(){var I;return(I=C.value)!=null?I:g},set(I){C.value=I}})}function Rw(C,g=200,I=!1,e=!0,t=!1){return Jd(Fb(g,I,e,t),C)}function Xy(C,g=200,I=!0,e=!0){if(g<=0)return C;const t=l.ref(C.value),i=Rw(()=>{t.value=C.value},g,I,e);return l.watch(C,()=>i()),t}function qH(C,g={}){let I=C,e,t;const i=l.customRef((m,Z)=>(e=m,t=Z,{get(){return A()},set(u){n(u)}}));function A(m=!0){return m&&e(),I}function n(m,Z=!0){var u,h;if(m===I)return;const G=I;((u=g.onBeforeChange)==null?void 0:u.call(g,m,G))!==!1&&(I=m,(h=g.onChanged)==null||h.call(g,m,G),Z&&t())}return KH(i,{get:A,set:n,untrackedGet:()=>A(!1),silentSet:m=>n(m,!1),peek:()=>A(!1),lay:m=>n(m,!1)},{enumerable:!0})}const y7=qH;function N7(...C){if(C.length===2){const[g,I]=C;g.value=I}if(C.length===3){const[g,I,e]=C;g[I]=e}}function Yr(C,g,I={}){const{eventFilter:e=kb,...t}=I;return l.watch(C,Jd(e,g),t)}function xd(C,g,I={}){const{eventFilter:e,...t}=I,{eventFilter:i,pause:A,resume:n,isActive:s}=Yy(e);return{stop:Yr(C,g,{...t,eventFilter:i}),pause:A,resume:n,isActive:s}}function Ry(C,g,...[I]){const{flush:e="sync",deep:t=!1,immediate:i=!0,direction:A="both",transform:n={}}=I||{},s=[],o="ltr"in n&&n.ltr||(m=>m),a="rtl"in n&&n.rtl||(m=>m);return(A==="both"||A==="ltr")&&s.push(xd(C,m=>{s.forEach(Z=>Z.pause()),g.value=o(m),s.forEach(Z=>Z.resume())},{flush:e,deep:t,immediate:i})),(A==="both"||A==="rtl")&&s.push(xd(g,m=>{s.forEach(Z=>Z.pause()),C.value=a(m),s.forEach(Z=>Z.resume())},{flush:e,deep:t,immediate:i})),()=>{s.forEach(m=>m.stop())}}function V7(C,g,I={}){const{flush:e="sync",deep:t=!1,immediate:i=!0}=I;return Array.isArray(g)||(g=[g]),l.watch(C,A=>g.forEach(n=>n.value=A),{flush:e,deep:t,immediate:i})}function My(C,g={}){if(!l.isRef(C))return l.toRefs(C);const I=Array.isArray(C.value)?Array.from({length:C.value.length}):{};for(const e in C.value)I[e]=l.customRef(()=>({get(){return C.value[e]},set(t){var i;if((i=_(g.replaceRef))!=null?i:!0)if(Array.isArray(C.value)){const n=[...C.value];n[e]=t,C.value=n}else{const n={...C.value,[e]:t};Object.setPrototypeOf(n,Object.getPrototypeOf(C.value)),C.value=n}else C.value[e]=t}}));return I}function X7(C,g=!0,I){Kb(I)?l.onBeforeMount(C,I):g?C():l.nextTick(C)}function $H(C,g){Kb(g)&&l.onBeforeUnmount(C,g)}function ne(C,g=!0,I){Kb()?l.onMounted(C,I):g?C():l.nextTick(C)}function Mw(C,g){Kb(g)&&l.onUnmounted(C,g)}function Hy(C,g=!1){function I(d,{flush:m="sync",deep:Z=!1,timeout:u,throwOnTimeout:h}={}){let G=null;const B=[new Promise(p=>{G=l.watch(C,Y=>{d(Y)!==g&&(G?G():l.nextTick(()=>G==null?void 0:G()),p(Y))},{flush:m,deep:Z,immediate:!0})})];return u!=null&&B.push(Br(u,h).then(()=>_(C)).finally(()=>G==null?void 0:G())),Promise.race(B)}function e(d,m){if(!l.isRef(d))return I(Y=>Y===d,m);const{flush:Z="sync",deep:u=!1,timeout:h,throwOnTimeout:G}=m??{};let w=null;const p=[new Promise(Y=>{w=l.watch([C,d],([N,R])=>{g!==(N===R)&&(w?w():l.nextTick(()=>w==null?void 0:w()),Y(N))},{flush:Z,deep:u,immediate:!0})})];return h!=null&&p.push(Br(h,G).then(()=>_(C)).finally(()=>(w==null||w(),_(C)))),Promise.race(p)}function t(d){return I(m=>!!m,d)}function i(d){return e(null,d)}function A(d){return e(void 0,d)}function n(d){return I(Number.isNaN,d)}function s(d,m){return I(Z=>{const u=Array.from(Z);return u.includes(d)||u.includes(_(d))},m)}function o(d){return a(1,d)}function a(d=1,m){let Z=-1;return I(()=>(Z+=1,Z>=d),m)}return Array.isArray(_(C))?{toMatch:I,toContains:s,changed:o,changedTimes:a,get not(){return Hy(C,!g)}}:{toMatch:I,toBe:e,toBeTruthy:t,toBeNull:i,toBeNaN:n,toBeUndefined:A,changed:o,changedTimes:a,get not(){return Hy(C,!g)}}}function yr(C){return Hy(C)}function R7(C,g){return C===g}function M7(...C){var g;const I=C[0],e=C[1];let t=(g=C[2])!=null?g:R7;if(typeof t=="string"){const i=t;t=(A,n)=>A[i]===n[i]}return l.computed(()=>_(I).filter(i=>_(e).findIndex(A=>t(i,A))===-1))}function H7(C,g){return l.computed(()=>_(C).every((I,e,t)=>g(_(I),e,t)))}function f7(C,g){return l.computed(()=>_(C).map(I=>_(I)).filter(g))}function S7(C,g){return l.computed(()=>_(_(C).find((I,e,t)=>g(_(I),e,t))))}function D7(C,g){return l.computed(()=>_(C).findIndex((I,e,t)=>g(_(I),e,t)))}function k7(C,g){let I=C.length;for(;I-- >0;)if(g(C[I],I,C))return C[I]}function F7(C,g){return l.computed(()=>_(Array.prototype.findLast?_(C).findLast((I,e,t)=>g(_(I),e,t)):k7(_(C),(I,e,t)=>g(_(I),e,t))))}function K7(C){return Wr(C)&&Ny(C,"formIndex","comparator")}function z7(...C){var g;const I=C[0],e=C[1];let t=C[2],i=0;if(K7(t)&&(i=(g=t.fromIndex)!=null?g:0,t=t.comparator),typeof t=="string"){const A=t;t=(n,s)=>n[A]===_(s)}return t=t??((A,n)=>A===_(n)),l.computed(()=>_(I).slice(i).some((A,n,s)=>t(_(A),_(e),n,_(s))))}function J7(C,g){return l.computed(()=>_(C).map(I=>_(I)).join(_(g)))}function x7(C,g){return l.computed(()=>_(C).map(I=>_(I)).map(g))}function T7(C,g,...I){const e=(t,i,A)=>g(_(t),_(i),A);return l.computed(()=>{const t=_(C);return I.length?t.reduce(e,typeof I[0]=="function"?_(I[0]()):_(I[0])):t.reduce(e)})}function L7(C,g){return l.computed(()=>_(C).some((I,e,t)=>g(_(I),e,t)))}function v7(C){return Array.from(new Set(C))}function j7(C,g){return C.reduce((I,e)=>(I.some(t=>g(e,t,C))||I.push(e),I),[])}function Q7(C,g){return l.computed(()=>{const I=_(C).map(e=>_(e));return g?j7(I,g):v7(I)})}function O7(C=0,g={}){let I=l.unref(C);const e=l.ref(C),{max:t=Number.POSITIVE_INFINITY,min:i=Number.NEGATIVE_INFINITY}=g,A=(d=1)=>e.value=Math.max(Math.min(t,e.value+d),i),n=(d=1)=>e.value=Math.min(Math.max(i,e.value-d),t),s=()=>e.value,o=d=>e.value=Math.max(i,Math.min(t,d));return{count:e,inc:A,dec:n,get:s,set:o,reset:(d=I)=>(I=d,o(d))}}const U7=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,E7=/[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 P7(C,g,I,e){let t=C<12?"AM":"PM";return e&&(t=t.split("").reduce((i,A)=>i+=`${A}.`,"")),I?t.toLowerCase():t}function Td(C){const g=["th","st","nd","rd"],I=C%100;return C+(g[(I-20)%10]||g[I]||g[0])}function gf(C,g,I={}){var e;const t=C.getFullYear(),i=C.getMonth(),A=C.getDate(),n=C.getHours(),s=C.getMinutes(),o=C.getSeconds(),a=C.getMilliseconds(),d=C.getDay(),m=(e=I.customMeridiem)!=null?e:P7,Z={Yo:()=>Td(t),YY:()=>String(t).slice(-2),YYYY:()=>t,M:()=>i+1,Mo:()=>Td(i+1),MM:()=>`${i+1}`.padStart(2,"0"),MMM:()=>C.toLocaleDateString(_(I.locales),{month:"short"}),MMMM:()=>C.toLocaleDateString(_(I.locales),{month:"long"}),D:()=>String(A),Do:()=>Td(A),DD:()=>`${A}`.padStart(2,"0"),H:()=>String(n),Ho:()=>Td(n),HH:()=>`${n}`.padStart(2,"0"),h:()=>`${n%12||12}`.padStart(1,"0"),ho:()=>Td(n%12||12),hh:()=>`${n%12||12}`.padStart(2,"0"),m:()=>String(s),mo:()=>Td(s),mm:()=>`${s}`.padStart(2,"0"),s:()=>String(o),so:()=>Td(o),ss:()=>`${o}`.padStart(2,"0"),SSS:()=>`${a}`.padStart(3,"0"),d:()=>d,dd:()=>C.toLocaleDateString(_(I.locales),{weekday:"narrow"}),ddd:()=>C.toLocaleDateString(_(I.locales),{weekday:"short"}),dddd:()=>C.toLocaleDateString(_(I.locales),{weekday:"long"}),A:()=>m(n,s),AA:()=>m(n,s,!1,!0),a:()=>m(n,s,!0),aa:()=>m(n,s,!0,!0)};return g.replace(E7,(u,h)=>{var G,w;return(w=h??((G=Z[u])==null?void 0:G.call(Z)))!=null?w:u})}function If(C){if(C===null)return new Date(Number.NaN);if(C===void 0)return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){const g=C.match(U7);if(g){const I=g[2]-1||0,e=(g[7]||"0").substring(0,3);return new Date(g[1],I,g[3]||1,g[4]||0,g[5]||0,g[6]||0,e)}}return new Date(C)}function _7(C,g="HH:mm:ss",I={}){return l.computed(()=>gf(If(_(C)),_(g),I))}function xo(C,g=1e3,I={}){const{immediate:e=!0,immediateCallback:t=!1}=I;let i=null;const A=l.ref(!1);function n(){i&&(clearInterval(i),i=null)}function s(){A.value=!1,n()}function o(){const a=_(g);a<=0||(A.value=!0,t&&C(),n(),A.value&&(i=setInterval(C,a)))}if(e&&ue&&o(),l.isRef(g)||typeof g=="function"){const a=l.watch(g,()=>{A.value&&ue&&o()});GI(a)}return GI(s),{isActive:A,pause:s,resume:o}}function q7(C=1e3,g={}){const{controls:I=!1,immediate:e=!0,callback:t}=g,i=l.ref(0),A=()=>i.value+=1,n=()=>{i.value=0},s=xo(t?()=>{A(),t(i.value)}:A,C,{immediate:e});return I?{counter:i,reset:n,...s}:i}function $7(C,g={}){var I;const e=l.ref((I=g.initialValue)!=null?I:null);return l.watch(C,()=>e.value=Kd(),g),e}function Nr(C,g,I={}){const{immediate:e=!0}=I,t=l.ref(!1);let i=null;function A(){i&&(clearTimeout(i),i=null)}function n(){t.value=!1,A()}function s(...o){A(),t.value=!0,i=setTimeout(()=>{t.value=!1,i=null,C(...o)},_(g))}return e&&(t.value=!0,ue&&s()),GI(n),{isPending:l.readonly(t),start:s,stop:n}}function gE(C=1e3,g={}){const{controls:I=!1,callback:e}=g,t=Nr(e??NI,C,g),i=l.computed(()=>!t.isPending.value);return I?{ready:i,...t}:i}function IE(C,g={}){const{method:I="parseFloat",radix:e,nanToZero:t}=g;return l.computed(()=>{let i=_(C);return typeof i=="string"&&(i=Number[I](i,e)),t&&Number.isNaN(i)&&(i=0),i})}function CE(C){return l.computed(()=>`${_(C)}`)}function Cf(C=!1,g={}){const{truthyValue:I=!0,falsyValue:e=!1}=g,t=l.isRef(C),i=l.ref(C);function A(n){if(arguments.length)return i.value=n,i.value;{const s=_(I);return i.value=i.value===s?_(e):s,i.value}}return t?A:[i,A]}function eE(C,g,I){let e=I!=null&&I.immediate?[]:[...C instanceof Function?C():Array.isArray(C)?C:_(C)];return l.watch(C,(t,i,A)=>{const n=Array.from({length:e.length}),s=[];for(const a of t){let d=!1;for(let m=0;m<e.length;m++)if(!n[m]&&a===e[m]){n[m]=!0,d=!0;break}d||s.push(a)}const o=e.filter((a,d)=>!n[d]);g(t,e,s,o,A),e=[...t]},I)}function tE(C,g,I){const{count:e,...t}=I,i=l.ref(0),A=Yr(C,(...n)=>{i.value+=1,i.value>=_(e)&&l.nextTick(()=>A()),g(...n)},t);return{count:i,stop:A}}function ef(C,g,I={}){const{debounce:e=0,maxWait:t=void 0,...i}=I;return Yr(C,g,{...i,eventFilter:Xw(e,{maxWait:t})})}function iE(C,g,I){return l.watch(C,g,{...I,deep:!0})}function Vr(C,g,I={}){const{eventFilter:e=kb,...t}=I,i=Jd(e,g);let A,n,s;if(t.flush==="sync"){const o=l.ref(!1);n=()=>{},A=a=>{o.value=!0,a(),o.value=!1},s=l.watch(C,(...a)=>{o.value||i(...a)},t)}else{const o=[],a=l.ref(0),d=l.ref(0);n=()=>{a.value=d.value},o.push(l.watch(C,()=>{d.value++},{...t,flush:"sync"})),A=m=>{const Z=d.value;m(),a.value+=d.value-Z},o.push(l.watch(C,(...m)=>{const Z=a.value>0&&a.value===d.value;a.value=0,d.value=0,!Z&&i(...m)},t)),s=()=>{o.forEach(m=>m())}}return{stop:s,ignoreUpdates:A,ignorePrevAsyncUpdates:n}}function AE(C,g,I){return l.watch(C,g,{...I,immediate:!0})}function nE(C,g,I){const e=l.watch(C,(...t)=>(l.nextTick(()=>e()),g(...t)),I);return e}function tf(C,g,I={}){const{throttle:e=0,trailing:t=!0,leading:i=!0,...A}=I;return Yr(C,g,{...A,eventFilter:Fb(e,t,i)})}function lE(C,g,I={}){let e;function t(){if(!e)return;const a=e;e=void 0,a()}function i(a){e=a}const A=(a,d)=>(t(),g(a,d,i)),n=Vr(C,A,I),{ignoreUpdates:s}=n;return{...n,trigger:()=>{let a;return s(()=>{a=A(sE(C),oE(C))}),a}}}function sE(C){return l.isReactive(C)?C:Array.isArray(C)?C.map(g=>_(g)):_(C)}function oE(C){return Array.isArray(C)?C.map(()=>{}):void 0}function Af(C,g,I){const e=l.watch(C,(t,i,A)=>{t&&(I!=null&&I.once&&l.nextTick(()=>e()),g(t,i,A))},{...I,once:!1});return e}function nf(C,g,I){let e;l.isRef(I)?e={evaluating:I}:e=I||{};const{lazy:t=!1,evaluating:i=void 0,shallow:A=!0,onError:n=NI}=e,s=l.ref(!t),o=A?l.shallowRef(g):l.ref(g);let a=0;return l.watchEffect(async d=>{if(!s.value)return;a++;const m=a;let Z=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const u=await C(h=>{d(()=>{i&&(i.value=!1),Z||h()})});m===a&&(o.value=u)}catch(u){n(u)}finally{i&&m===a&&(i.value=!1),Z=!0}}),t?l.computed(()=>(s.value=!0,o.value)):o}function aE(C,g,I,e){let t=l.inject(C);return I&&(t=l.inject(C,I)),e&&(t=l.inject(C,I,e)),typeof g=="function"?l.computed(i=>g(t,i)):l.computed({get:i=>g.get(t,i),set:g.set})}function dE(C={}){const{inheritAttrs:g=!0}=C,I=l.shallowRef(),e=l.defineComponent({setup(i,{slots:A}){return()=>{I.value=A.default}}}),t=l.defineComponent({inheritAttrs:g,setup(i,{attrs:A,slots:n}){return()=>{var s;if(!I.value&&process.env.NODE_ENV!=="production")throw new Error("[VueUse] Failed to find the definition of reusable template");const o=(s=I.value)==null?void 0:s.call(I,{...cE(A),$slots:n});return g&&(o==null?void 0:o.length)===1?o[0]:o}}});return zH({define:e,reuse:t},[e,t])}function cE(C){const g={};for(const I in C)g[jH(I)]=C[I];return g}function mE(C={}){let g=0;const I=l.ref([]);function e(...A){const n=l.shallowReactive({key:g++,args:A,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:C});return I.value.push(n),n.promise=new Promise((s,o)=>{n.resolve=a=>(n.isResolving=!0,s(a)),n.reject=o}).finally(()=>{n.promise=void 0;const s=I.value.indexOf(n);s!==-1&&I.value.splice(s,1)}),n.promise}function t(...A){return C.singleton&&I.value.length>0?I.value[0].promise:e(...A)}const i=l.defineComponent((A,{slots:n})=>{const s=()=>I.value.map(o=>{var a;return l.h(l.Fragment,{key:o.key},(a=n.default)==null?void 0:a.call(n,o))});return C.transition?()=>l.h(l.TransitionGroup,C.transition,s):s});return i.start=t,i}function rE(C){return function(...g){return C.apply(this,g.map(I=>_(I)))}}const Pg=ue?window:void 0,Pt=ue?window.document:void 0,yi=ue?window.navigator:void 0,ZE=ue?window.location:void 0;function KI(C){var g;const I=_(C);return(g=I==null?void 0:I.$el)!=null?g:I}function hg(...C){let g,I,e,t;if(typeof C[0]=="string"||Array.isArray(C[0])?([I,e,t]=C,g=Pg):[g,I,e,t]=C,!g)return NI;Array.isArray(I)||(I=[I]),Array.isArray(e)||(e=[e]);const i=[],A=()=>{i.forEach(a=>a()),i.length=0},n=(a,d,m,Z)=>(a.addEventListener(d,m,Z),()=>a.removeEventListener(d,m,Z)),s=l.watch(()=>[KI(g),_(t)],([a,d])=>{if(A(),!a)return;const m=Wr(d)?{...d}:d;i.push(...I.flatMap(Z=>e.map(u=>n(a,Z,u,m))))},{immediate:!0,flush:"post"}),o=()=>{s(),A()};return GI(o),o}let lf=!1;function sf(C,g,I={}){const{window:e=Pg,ignore:t=[],capture:i=!0,detectIframe:A=!1}=I;if(!e)return NI;zd&&!lf&&(lf=!0,Array.from(e.document.body.children).forEach(h=>h.addEventListener("click",NI)),e.document.documentElement.addEventListener("click",NI));let n=!0;const s=h=>_(t).some(G=>{if(typeof G=="string")return Array.from(e.document.querySelectorAll(G)).some(w=>w===h.target||h.composedPath().includes(w));{const w=KI(G);return w&&(h.target===w||h.composedPath().includes(w))}});function o(h){const G=_(h);return G&&G.$.subTree.shapeFlag===16}function a(h,G){const w=_(h),B=w.$.subTree&&w.$.subTree.children;return B==null||!Array.isArray(B)?!1:B.some(p=>p.el===G.target||G.composedPath().includes(p.el))}const d=h=>{const G=KI(C);if(h.target!=null&&!(!(G instanceof Element)&&o(C)&&a(C,h))&&!(!G||G===h.target||h.composedPath().includes(G))){if(h.detail===0&&(n=!s(h)),!n){n=!0;return}g(h)}};let m=!1;const Z=[hg(e,"click",h=>{m||(m=!0,setTimeout(()=>{m=!1},0),d(h))},{passive:!0,capture:i}),hg(e,"pointerdown",h=>{const G=KI(C);n=!s(h)&&!!(G&&!h.composedPath().includes(G))},{passive:!0}),A&&hg(e,"blur",h=>{setTimeout(()=>{var G;const w=KI(C);((G=e.document.activeElement)==null?void 0:G.tagName)==="IFRAME"&&!(w!=null&&w.contains(e.document.activeElement))&&g(h)},0)})].filter(Boolean);return()=>Z.forEach(h=>h())}function bE(C){return typeof C=="function"?C:typeof C=="string"?g=>g.key===C:Array.isArray(C)?g=>C.includes(g.key):()=>!0}function Hw(...C){let g,I,e={};C.length===3?(g=C[0],I=C[1],e=C[2]):C.length===2?typeof C[1]=="object"?(g=!0,I=C[0],e=C[1]):(g=C[0],I=C[1]):(g=!0,I=C[0]);const{target:t=Pg,eventName:i="keydown",passive:A=!1,dedupe:n=!1}=e,s=bE(g);return hg(t,i,a=>{a.repeat&&_(n)||s(a)&&I(a)},A)}function uE(C,g,I={}){return Hw(C,g,{...I,eventName:"keydown"})}function hE(C,g,I={}){return Hw(C,g,{...I,eventName:"keypress"})}function GE(C,g,I={}){return Hw(C,g,{...I,eventName:"keyup"})}const wE=500,WE=10;function BE(C,g,I){var e,t;const i=l.computed(()=>KI(C));let A,n,s,o=!1;function a(){A&&(clearTimeout(A),A=void 0),n=void 0,s=void 0,o=!1}function d(w){var B,p,Y;const[N,R,X]=[s,n,o];if(a(),!(I!=null&&I.onMouseUp)||!R||!N||(B=I==null?void 0:I.modifiers)!=null&&B.self&&w.target!==i.value)return;(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&w.preventDefault(),(Y=I==null?void 0:I.modifiers)!=null&&Y.stop&&w.stopPropagation();const K=w.x-R.x,D=w.y-R.y,k=Math.sqrt(K*K+D*D);I.onMouseUp(w.timeStamp-N,k,X)}function m(w){var B,p,Y,N;(B=I==null?void 0:I.modifiers)!=null&&B.self&&w.target!==i.value||(a(),(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&w.preventDefault(),(Y=I==null?void 0:I.modifiers)!=null&&Y.stop&&w.stopPropagation(),n={x:w.x,y:w.y},s=w.timeStamp,A=setTimeout(()=>{o=!0,g(w)},(N=I==null?void 0:I.delay)!=null?N:wE))}function Z(w){var B,p,Y,N;if((B=I==null?void 0:I.modifiers)!=null&&B.self&&w.target!==i.value||!n||(I==null?void 0:I.distanceThreshold)===!1)return;(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&w.preventDefault(),(Y=I==null?void 0:I.modifiers)!=null&&Y.stop&&w.stopPropagation();const R=w.x-n.x,X=w.y-n.y;Math.sqrt(R*R+X*X)>=((N=I==null?void 0:I.distanceThreshold)!=null?N:WE)&&a()}const u={capture:(e=I==null?void 0:I.modifiers)==null?void 0:e.capture,once:(t=I==null?void 0:I.modifiers)==null?void 0:t.once},h=[hg(i,"pointerdown",m,u),hg(i,"pointermove",Z,u),hg(i,["pointerup","pointerleave"],d,u)];return()=>h.forEach(w=>w())}function pE(){const{activeElement:C,body:g}=document;if(!C||C===g)return!1;switch(C.tagName){case"INPUT":case"TEXTAREA":return!0}return C.hasAttribute("contenteditable")}function YE({keyCode:C,metaKey:g,ctrlKey:I,altKey:e}){return g||I||e?!1:C>=48&&C<=57||C>=65&&C<=90||C>=97&&C<=122}function yE(C,g={}){const{document:I=Pt}=g;I&&hg(I,"keydown",t=>{!pE()&&YE(t)&&C(t)},{passive:!0})}function NE(C,g=null){const I=l.getCurrentInstance();let e=()=>{};const t=l.customRef((i,A)=>(e=A,{get(){var n,s;return i(),(s=(n=I==null?void 0:I.proxy)==null?void 0:n.$refs[C])!=null?s:g},set(){}}));return ne(e),l.onUpdated(e),t}function of(){const C=l.ref(!1),g=l.getCurrentInstance();return g&&l.onMounted(()=>{C.value=!0},g),C}function TI(C){const g=of();return l.computed(()=>(g.value,!!C()))}function Xr(C,g,I={}){const{window:e=Pg,...t}=I;let i;const A=TI(()=>e&&"MutationObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},s=l.computed(()=>{const m=_(C),Z=(Array.isArray(m)?m:[m]).map(KI).filter(Db);return new Set(Z)}),o=l.watch(()=>s.value,m=>{n(),A.value&&m.size&&(i=new MutationObserver(g),m.forEach(Z=>i.observe(Z,t)))},{immediate:!0,flush:"post"}),a=()=>i==null?void 0:i.takeRecords(),d=()=>{o(),n()};return GI(d),{isSupported:A,stop:d,takeRecords:a}}function fy(C={}){var g;const{window:I=Pg,deep:e=!0,triggerOnRemoval:t=!1}=C,i=(g=C.document)!=null?g:I==null?void 0:I.document,A=()=>{var o;let a=i==null?void 0:i.activeElement;if(e)for(;a!=null&&a.shadowRoot;)a=(o=a==null?void 0:a.shadowRoot)==null?void 0:o.activeElement;return a},n=l.ref(),s=()=>{n.value=A()};return I&&(hg(I,"blur",o=>{o.relatedTarget===null&&s()},!0),hg(I,"focus",s,!0)),t&&Xr(i,o=>{o.filter(a=>a.removedNodes.length).map(a=>Array.from(a.removedNodes)).flat().forEach(a=>{a===n.value&&s()})},{childList:!0,subtree:!0}),s(),n}function Ld(C,g={}){const{immediate:I=!0,fpsLimit:e=void 0,window:t=Pg}=g,i=l.ref(!1),A=e?1e3/e:null;let n=0,s=null;function o(m){if(!i.value||!t)return;n||(n=m);const Z=m-n;if(A&&Z<A){s=t.requestAnimationFrame(o);return}n=m,C({delta:Z,timestamp:m}),s=t.requestAnimationFrame(o)}function a(){!i.value&&t&&(i.value=!0,n=0,s=t.requestAnimationFrame(o))}function d(){i.value=!1,s!=null&&t&&(t.cancelAnimationFrame(s),s=null)}return I&&a(),GI(d),{isActive:l.readonly(i),pause:d,resume:a}}function VE(C,g,I){let e,t;Wr(I)?(e=I,t=EH(I,["window","immediate","commitStyles","persist","onReady","onError"])):(e={duration:I},t=I);const{window:i=Pg,immediate:A=!0,commitStyles:n,persist:s,playbackRate:o=1,onReady:a,onError:d=T=>{console.error(T)}}=e,m=TI(()=>i&&HTMLElement&&"animate"in HTMLElement.prototype),Z=l.shallowRef(void 0),u=l.shallowReactive({startTime:null,currentTime:null,timeline:null,playbackRate:o,pending:!1,playState:A?"idle":"paused",replaceState:"active"}),h=l.computed(()=>u.pending),G=l.computed(()=>u.playState),w=l.computed(()=>u.replaceState),B=l.computed({get(){return u.startTime},set(T){u.startTime=T,Z.value&&(Z.value.startTime=T)}}),p=l.computed({get(){return u.currentTime},set(T){u.currentTime=T,Z.value&&(Z.value.currentTime=T,Cg())}}),Y=l.computed({get(){return u.timeline},set(T){u.timeline=T,Z.value&&(Z.value.timeline=T)}}),N=l.computed({get(){return u.playbackRate},set(T){u.playbackRate=T,Z.value&&(Z.value.playbackRate=T)}}),R=()=>{if(Z.value)try{Z.value.play(),Cg()}catch(T){U(),d(T)}else z()},X=()=>{var T;try{(T=Z.value)==null||T.pause(),U()}catch(q){d(q)}},K=()=>{var T;Z.value||z();try{(T=Z.value)==null||T.reverse(),Cg()}catch(q){U(),d(q)}},D=()=>{var T;try{(T=Z.value)==null||T.finish(),U()}catch(q){d(q)}},k=()=>{var T;try{(T=Z.value)==null||T.cancel(),U()}catch(q){d(q)}};l.watch(()=>KI(C),T=>{T&&z()}),l.watch(()=>g,T=>{Z.value&&z(),!KI(C)&&Z.value&&(Z.value.effect=new KeyframeEffect(KI(C),_(T),t))},{deep:!0}),ne(()=>z(!0),!1),GI(k);function z(T){const q=KI(C);!m.value||!q||(Z.value||(Z.value=q.animate(_(g),t)),s&&Z.value.persist(),o!==1&&(Z.value.playbackRate=o),T&&!A?Z.value.pause():Cg(),a==null||a(Z.value))}hg(Z,["cancel","finish","remove"],U),hg(Z,"finish",()=>{var T;n&&((T=Z.value)==null||T.commitStyles())});const{resume:v,pause:O}=Ld(()=>{Z.value&&(u.pending=Z.value.pending,u.playState=Z.value.playState,u.replaceState=Z.value.replaceState,u.startTime=Z.value.startTime,u.currentTime=Z.value.currentTime,u.timeline=Z.value.timeline,u.playbackRate=Z.value.playbackRate)},{immediate:!1});function Cg(){m.value&&v()}function U(){m.value&&i&&i.requestAnimationFrame(O)}return{isSupported:m,animate:Z,play:R,pause:X,reverse:K,finish:D,cancel:k,pending:h,playState:G,replaceState:w,startTime:B,currentTime:p,timeline:Y,playbackRate:N}}function XE(C,g){const{interrupt:I=!0,onError:e=NI,onFinished:t=NI,signal:i}=g||{},A={aborted:"aborted",fulfilled:"fulfilled",pending:"pending",rejected:"rejected"},n=Array.from(Array.from({length:C.length}),()=>({state:A.pending,data:null})),s=l.reactive(n),o=l.ref(-1);if(!C||C.length===0)return t(),{activeIndex:o,result:s};function a(d,m){o.value++,s[o.value].data=m,s[o.value].state=d}return C.reduce((d,m)=>d.then(Z=>{var u;if(i!=null&&i.aborted){a(A.aborted,new Error("aborted"));return}if(((u=s[o.value])==null?void 0:u.state)===A.rejected&&I){t();return}const h=m(Z).then(G=>(a(A.fulfilled,G),o.value===C.length-1&&t(),G));return i?Promise.race([h,RE(i)]):h}).catch(Z=>i!=null&&i.aborted?(a(A.aborted,Z),Z):(a(A.rejected,Z),e(),Z)),Promise.resolve()),{activeIndex:o,result:s}}function RE(C){return new Promise((g,I)=>{const e=new Error("aborted");C.aborted?I(e):C.addEventListener("abort",()=>I(e),{once:!0})})}function af(C,g,I){const{immediate:e=!0,delay:t=0,onError:i=NI,onSuccess:A=NI,resetOnExecute:n=!0,shallow:s=!0,throwError:o}=I??{},a=s?l.shallowRef(g):l.ref(g),d=l.ref(!1),m=l.ref(!1),Z=l.shallowRef(void 0);async function u(w=0,...B){n&&(a.value=g),Z.value=void 0,d.value=!1,m.value=!0,w>0&&await Br(w);const p=typeof C=="function"?C(...B):C;try{const Y=await p;a.value=Y,d.value=!0,A(Y)}catch(Y){if(Z.value=Y,i(Y),o)throw Y}finally{m.value=!1}return a.value}e&&u(t);const h={state:a,isReady:d,isLoading:m,error:Z,execute:u};function G(){return new Promise((w,B)=>{yr(m).toBe(!1).then(()=>w(h)).catch(B)})}return{...h,then(w,B){return G().then(w,B)}}}const zb={array:C=>JSON.stringify(C),object:C=>JSON.stringify(C),set:C=>JSON.stringify(Array.from(C)),map:C=>JSON.stringify(Object.fromEntries(C)),null:()=>""};function ME(C){return C?C instanceof Map?zb.map:C instanceof Set?zb.set:Array.isArray(C)?zb.array:zb.object:zb.null}function HE(C,g){const I=l.ref(""),e=l.ref();function t(){if(ue)return e.value=new Promise((i,A)=>{try{const n=_(C);if(n==null)i("");else if(typeof n=="string")i(Sy(new Blob([n],{type:"text/plain"})));else if(n instanceof Blob)i(Sy(n));else if(n instanceof ArrayBuffer)i(window.btoa(String.fromCharCode(...new Uint8Array(n))));else if(n instanceof HTMLCanvasElement)i(n.toDataURL(g==null?void 0:g.type,g==null?void 0:g.quality));else if(n instanceof HTMLImageElement){const s=n.cloneNode(!1);s.crossOrigin="Anonymous",fE(s).then(()=>{const o=document.createElement("canvas"),a=o.getContext("2d");o.width=s.width,o.height=s.height,a.drawImage(s,0,0,o.width,o.height),i(o.toDataURL(g==null?void 0:g.type,g==null?void 0:g.quality))}).catch(A)}else if(typeof n=="object"){const o=((g==null?void 0:g.serializer)||ME(n))(n);return i(Sy(new Blob([o],{type:"application/json"})))}else A(new Error("target is unsupported types"))}catch(n){A(n)}}),e.value.then(i=>I.value=i),e.value}return l.isRef(C)||typeof C=="function"?l.watch(C,t,{immediate:!0}):t(),{base64:I,promise:e,execute:t}}function fE(C){return new Promise((g,I)=>{C.complete?g():(C.onload=()=>{g()},C.onerror=I)})}function Sy(C){return new Promise((g,I)=>{const e=new FileReader;e.onload=t=>{g(t.target.result)},e.onerror=I,e.readAsDataURL(C)})}function df(C={}){const{navigator:g=yi}=C,I=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],e=TI(()=>g&&"getBattery"in g&&typeof g.getBattery=="function"),t=l.ref(!1),i=l.ref(0),A=l.ref(0),n=l.ref(1);let s;function o(){t.value=this.charging,i.value=this.chargingTime||0,A.value=this.dischargingTime||0,n.value=this.level}return e.value&&g.getBattery().then(a=>{s=a,o.call(s),hg(s,I,o,{passive:!0})}),{isSupported:e,charging:t,chargingTime:i,dischargingTime:A,level:n}}function SE(C){let{acceptAllDevices:g=!1}=C||{};const{filters:I=void 0,optionalServices:e=void 0,navigator:t=yi}=C||{},i=TI(()=>t&&"bluetooth"in t),A=l.shallowRef(void 0),n=l.shallowRef(null);l.watch(A,()=>{d()});async function s(){if(i.value){n.value=null,I&&I.length>0&&(g=!1);try{A.value=await(t==null?void 0:t.bluetooth.requestDevice({acceptAllDevices:g,filters:I,optionalServices:e}))}catch(m){n.value=m}}}const o=l.ref(),a=l.computed(()=>{var m;return((m=o.value)==null?void 0:m.connected)||!1});async function d(){if(n.value=null,A.value&&A.value.gatt){A.value.addEventListener("gattserverdisconnected",()=>{});try{o.value=await A.value.gatt.connect()}catch(m){n.value=m}}}return ne(()=>{var m;A.value&&((m=A.value.gatt)==null||m.connect())}),GI(()=>{var m;A.value&&((m=A.value.gatt)==null||m.disconnect())}),{isSupported:i,isConnected:a,device:A,requestDevice:s,server:o,error:n}}function Ni(C,g={}){const{window:I=Pg}=g,e=TI(()=>I&&"matchMedia"in I&&typeof I.matchMedia=="function");let t;const i=l.ref(!1),A=o=>{i.value=o.matches},n=()=>{t&&("removeEventListener"in t?t.removeEventListener("change",A):t.removeListener(A))},s=l.watchEffect(()=>{e.value&&(n(),t=I.matchMedia(_(C)),"addEventListener"in t?t.addEventListener("change",A):t.addListener(A),i.value=t.matches)});return GI(()=>{s(),n(),t=void 0}),i}const DE={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},kE={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},cf={xs:0,sm:600,md:960,lg:1264,xl:1904},FE={xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560},KE=cf,zE={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},JE={xs:0,sm:600,md:1024,lg:1440,xl:1920},xE={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},TE={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},LE={sm:576,md:768,lg:992,xl:1200},vE={xs:0,sm:768,md:992,lg:1200,xl:1920};function jE(C,g={}){function I(a,d){let m=_(C[_(a)]);return d!=null&&(m=OH(m,d)),typeof m=="number"&&(m=`${m}px`),m}const{window:e=Pg,strategy:t="min-width"}=g;function i(a){return e?e.matchMedia(a).matches:!1}const A=a=>Ni(()=>`(min-width: ${I(a)})`,g),n=a=>Ni(()=>`(max-width: ${I(a)})`,g),s=Object.keys(C).reduce((a,d)=>(Object.defineProperty(a,d,{get:()=>t==="min-width"?A(d):n(d),enumerable:!0,configurable:!0}),a),{});function o(){const a=Object.keys(C).map(d=>[d,A(d)]);return l.computed(()=>a.filter(([,d])=>d.value).map(([d])=>d))}return Object.assign(s,{greaterOrEqual:A,smallerOrEqual:n,greater(a){return Ni(()=>`(min-width: ${I(a,.1)})`,g)},smaller(a){return Ni(()=>`(max-width: ${I(a,-.1)})`,g)},between(a,d){return Ni(()=>`(min-width: ${I(a)}) and (max-width: ${I(d,-.1)})`,g)},isGreater(a){return i(`(min-width: ${I(a,.1)})`)},isGreaterOrEqual(a){return i(`(min-width: ${I(a)})`)},isSmaller(a){return i(`(max-width: ${I(a,-.1)})`)},isSmallerOrEqual(a){return i(`(max-width: ${I(a)})`)},isInBetween(a,d){return i(`(min-width: ${I(a)}) and (max-width: ${I(d,-.1)})`)},current:o,active(){const a=o();return l.computed(()=>a.value.length===0?"":a.value.at(-1))}})}function QE(C){const{name:g,window:I=Pg}=C,e=TI(()=>I&&"BroadcastChannel"in I),t=l.ref(!1),i=l.ref(),A=l.ref(),n=l.shallowRef(null),s=a=>{i.value&&i.value.postMessage(a)},o=()=>{i.value&&i.value.close(),t.value=!0};return e.value&&ne(()=>{n.value=null,i.value=new BroadcastChannel(g),i.value.addEventListener("message",a=>{A.value=a.data},{passive:!0}),i.value.addEventListener("messageerror",a=>{n.value=a},{passive:!0}),i.value.addEventListener("close",()=>{t.value=!0})}),GI(()=>{o()}),{isSupported:e,channel:i,data:A,post:s,close:o,error:n,isClosed:t}}const mf=["hash","host","hostname","href","pathname","port","protocol","search"];function rf(C={}){const{window:g=Pg}=C,I=Object.fromEntries(mf.map(i=>[i,l.ref()]));for(const[i,A]of PH(I))l.watch(A,n=>{!(g!=null&&g.location)||g.location[i]===n||(g.location[i]=n)});const e=i=>{var A;const{state:n,length:s}=(g==null?void 0:g.history)||{},{origin:o}=(g==null?void 0:g.location)||{};for(const a of mf)I[a].value=(A=g==null?void 0:g.location)==null?void 0:A[a];return l.reactive({trigger:i,state:n,length:s,origin:o,...I})},t=l.ref(e("load"));return g&&(hg(g,"popstate",()=>t.value=e("popstate"),{passive:!0}),hg(g,"hashchange",()=>t.value=e("hashchange"),{passive:!0})),t}function OE(C,g=(e,t)=>e===t,I){const e=l.ref(C.value);return l.watch(()=>C.value,t=>{g(t,e.value)||(e.value=t)},I),e}function fw(C,g={}){const{controls:I=!1,navigator:e=yi}=g,t=TI(()=>e&&"permissions"in e),i=l.shallowRef(),A=typeof C=="string"?{name:C}:C,n=l.shallowRef(),s=()=>{var a,d;n.value=(d=(a=i.value)==null?void 0:a.state)!=null?d:"prompt"};hg(i,"change",s);const o=QH(async()=>{if(t.value){if(!i.value)try{i.value=await e.permissions.query(A)}catch{i.value=void 0}finally{s()}if(I)return l.toRaw(i.value)}});return o(),I?{state:n,isSupported:t,query:o}:n}function Zf(C={}){const{navigator:g=yi,read:I=!1,source:e,copiedDuring:t=1500,legacy:i=!1}=C,A=TI(()=>g&&"clipboard"in g),n=fw("clipboard-read"),s=fw("clipboard-write"),o=l.computed(()=>A.value||i),a=l.ref(""),d=l.ref(!1),m=Nr(()=>d.value=!1,t);function Z(){A.value&&w(n.value)?g.clipboard.readText().then(B=>{a.value=B}):a.value=G()}o.value&&I&&hg(["copy","cut"],Z);async function u(B=_(e)){o.value&&B!=null&&(A.value&&w(s.value)?await g.clipboard.writeText(B):h(B),a.value=B,d.value=!0,m.start())}function h(B){const p=document.createElement("textarea");p.value=B??"",p.style.position="absolute",p.style.opacity="0",document.body.appendChild(p),p.select(),document.execCommand("copy"),p.remove()}function G(){var B,p,Y;return(Y=(p=(B=document==null?void 0:document.getSelection)==null?void 0:B.call(document))==null?void 0:p.toString())!=null?Y:""}function w(B){return B==="granted"||B==="prompt"}return{isSupported:o,text:a,copied:d,copy:u}}function UE(C={}){const{navigator:g=yi,read:I=!1,source:e,copiedDuring:t=1500}=C,i=TI(()=>g&&"clipboard"in g),A=l.ref([]),n=l.ref(!1),s=Nr(()=>n.value=!1,t);function o(){i.value&&g.clipboard.read().then(d=>{A.value=d})}i.value&&I&&hg(["copy","cut"],o);async function a(d=_(e)){i.value&&d!=null&&(await g.clipboard.write(d),A.value=d,n.value=!0,s.start())}return{isSupported:i,content:A,copied:n,copy:a}}function Jb(C){return JSON.parse(JSON.stringify(C))}function EE(C,g={}){const I=l.ref({}),{manual:e,clone:t=Jb,deep:i=!0,immediate:A=!0}=g;function n(){I.value=t(_(C))}return!e&&(l.isRef(C)||typeof C=="function")?l.watch(C,n,{...g,deep:i,immediate:A}):n(),{cloned:I,sync:n}}const Sw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Dw="__vueuse_ssr_handlers__",bf=PE();function PE(){return Dw in Sw||(Sw[Dw]=Sw[Dw]||{}),Sw[Dw]}function kw(C,g){return bf[C]||g}function _E(C,g){bf[C]=g}function Fw(C){return Ni("(prefers-color-scheme: dark)",C)}function uf(C){return C==null?"any":C instanceof Set?"set":C instanceof Map?"map":C instanceof Date?"date":typeof C=="boolean"?"boolean":typeof C=="string"?"string":typeof C=="object"?"object":Number.isNaN(C)?"any":"number"}const Dy={boolean:{read:C=>C==="true",write:C=>String(C)},object:{read:C=>JSON.parse(C),write:C=>JSON.stringify(C)},number:{read:C=>Number.parseFloat(C),write:C=>String(C)},any:{read:C=>C,write:C=>String(C)},string:{read:C=>C,write:C=>String(C)},map:{read:C=>new Map(JSON.parse(C)),write:C=>JSON.stringify(Array.from(C.entries()))},set:{read:C=>new Set(JSON.parse(C)),write:C=>JSON.stringify(Array.from(C))},date:{read:C=>new Date(C),write:C=>C.toISOString()}},ky="vueuse-storage";function xb(C,g,I,e={}){var t;const{flush:i="pre",deep:A=!0,listenToStorageChanges:n=!0,writeDefaults:s=!0,mergeDefaults:o=!1,shallow:a,window:d=Pg,eventFilter:m,onError:Z=k=>{console.error(k)},initOnMounted:u}=e,h=(a?l.shallowRef:l.ref)(typeof g=="function"?g():g);if(!I)try{I=kw("getDefaultStorage",()=>{var k;return(k=Pg)==null?void 0:k.localStorage})()}catch(k){Z(k)}if(!I)return h;const G=_(g),w=uf(G),B=(t=e.serializer)!=null?t:Dy[w],{pause:p,resume:Y}=xd(h,()=>R(h.value),{flush:i,deep:A,eventFilter:m});d&&n&&ne(()=>{I instanceof Storage?hg(d,"storage",K):hg(d,ky,D),u&&K()}),u||K();function N(k,z){if(d){const v={key:C,oldValue:k,newValue:z,storageArea:I};d.dispatchEvent(I instanceof Storage?new StorageEvent("storage",v):new CustomEvent(ky,{detail:v}))}}function R(k){try{const z=I.getItem(C);if(k==null)N(z,null),I.removeItem(C);else{const v=B.write(k);z!==v&&(I.setItem(C,v),N(z,v))}}catch(z){Z(z)}}function X(k){const z=k?k.newValue:I.getItem(C);if(z==null)return s&&G!=null&&I.setItem(C,B.write(G)),G;if(!k&&o){const v=B.read(z);return typeof o=="function"?o(v,G):w==="object"&&!Array.isArray(v)?{...G,...v}:v}else return typeof z!="string"?z:B.read(z)}function K(k){if(!(k&&k.storageArea!==I)){if(k&&k.key==null){h.value=G;return}if(!(k&&k.key!==C)){p();try{(k==null?void 0:k.newValue)!==B.write(h.value)&&(h.value=X(k))}catch(z){Z(z)}finally{k?l.nextTick(Y):Y()}}}}function D(k){K(k.detail)}return h}const qE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function hf(C={}){const{selector:g="html",attribute:I="class",initialValue:e="auto",window:t=Pg,storage:i,storageKey:A="vueuse-color-scheme",listenToStorageChanges:n=!0,storageRef:s,emitAuto:o,disableTransition:a=!0}=C,d={auto:"",light:"light",dark:"dark",...C.modes||{}},m=Fw({window:t}),Z=l.computed(()=>m.value?"dark":"light"),u=s||(A==null?PC(e):xb(A,e,i,{window:t,listenToStorageChanges:n})),h=l.computed(()=>u.value==="auto"?Z.value:u.value),G=kw("updateHTMLAttrs",(Y,N,R)=>{const X=typeof Y=="string"?t==null?void 0:t.document.querySelector(Y):KI(Y);if(!X)return;const K=new Set,D=new Set;let k=null;if(N==="class"){const v=R.split(/\s/g);Object.values(d).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{v.includes(O)?K.add(O):D.add(O)})}else k={key:N,value:R};if(K.size===0&&D.size===0&&k===null)return;let z;a&&(z=t.document.createElement("style"),z.appendChild(document.createTextNode(qE)),t.document.head.appendChild(z));for(const v of K)X.classList.add(v);for(const v of D)X.classList.remove(v);k&&X.setAttribute(k.key,k.value),a&&(t.getComputedStyle(z).opacity,document.head.removeChild(z))});function w(Y){var N;G(g,I,(N=d[Y])!=null?N:Y)}function B(Y){C.onChanged?C.onChanged(Y,w):w(Y)}l.watch(h,B,{flush:"post",immediate:!0}),ne(()=>B(h.value));const p=l.computed({get(){return o?u.value:h.value},set(Y){u.value=Y}});try{return Object.assign(p,{store:u,system:Z,state:h})}catch{return p}}function $E(C=l.ref(!1)){const g=ct(),I=ct(),e=ct();let t=NI;const i=s=>(e.trigger(s),C.value=!0,new Promise(o=>{t=o})),A=s=>{C.value=!1,g.trigger(s),t({data:s,isCanceled:!1})},n=s=>{C.value=!1,I.trigger(s),t({data:s,isCanceled:!0})};return{isRevealed:l.computed(()=>C.value),reveal:i,confirm:A,cancel:n,onReveal:e.on,onConfirm:g.on,onCancel:I.on}}function Tb(C,g,I={}){const{window:e=Pg,initialValue:t,observe:i=!1}=I,A=l.ref(t),n=l.computed(()=>{var o;return KI(g)||((o=e==null?void 0:e.document)==null?void 0:o.documentElement)});function s(){var o;const a=_(C),d=_(n);if(d&&e&&a){const m=(o=e.getComputedStyle(d).getPropertyValue(a))==null?void 0:o.trim();A.value=m||t}}return i&&Xr(n,s,{attributeFilter:["style","class"],window:e}),l.watch([n,()=>_(C)],(o,a)=>{a[0]&&a[1]&&a[0].style.removeProperty(a[1]),s()},{immediate:!0}),l.watch(A,o=>{var a;const d=_(C);(a=n.value)!=null&&a.style&&d&&(o==null?n.value.style.removeProperty(d):n.value.style.setProperty(d,o))}),A}function Gf(C){const g=l.getCurrentInstance(),I=Wy(()=>null,()=>C?KI(C):g.proxy.$el);return l.onUpdated(I.trigger),l.onMounted(I.trigger),I}function gP(C,g){const I=l.shallowRef(o()),e=PC(C),t=l.computed({get(){var a;const d=e.value;let m=g!=null&&g.getIndexOf?g.getIndexOf(I.value,d):d.indexOf(I.value);return m<0&&(m=(a=g==null?void 0:g.fallbackIndex)!=null?a:0),m},set(a){i(a)}});function i(a){const d=e.value,m=d.length,Z=(a%m+m)%m,u=d[Z];return I.value=u,u}function A(a=1){return i(t.value+a)}function n(a=1){return A(a)}function s(a=1){return A(-a)}function o(){var a,d;return(d=_((a=g==null?void 0:g.initialValue)!=null?a:_(C)[0]))!=null?d:void 0}return l.watch(e,()=>i(t.value)),{state:I,index:t,next:n,prev:s,go:i}}function wf(C={}){const{valueDark:g="dark",valueLight:I="",window:e=Pg}=C,t=hf({...C,onChanged:(n,s)=>{var o;C.onChanged?(o=C.onChanged)==null||o.call(C,n==="dark",s,n):s(n)},modes:{dark:g,light:I}}),i=l.computed(()=>t.system?t.system.value:Fw({window:e}).value?"dark":"light");return l.computed({get(){return t.value==="dark"},set(n){const s=n?"dark":"light";i.value===s?t.value="auto":t.value=s}})}function Wf(C){return C}function IP(C,g){return C.value=g}function CP(C){return C?typeof C=="function"?C:Jb:Wf}function eP(C){return C?typeof C=="function"?C:Jb:Wf}function Bf(C,g={}){const{clone:I=!1,dump:e=CP(I),parse:t=eP(I),setSource:i=IP}=g;function A(){return l.markRaw({snapshot:e(C.value),timestamp:Kd()})}const n=l.ref(A()),s=l.ref([]),o=l.ref([]),a=p=>{i(C,t(p.snapshot)),n.value=p},d=()=>{s.value.unshift(n.value),n.value=A(),g.capacity&&s.value.length>g.capacity&&s.value.splice(g.capacity,Number.POSITIVE_INFINITY),o.value.length&&o.value.splice(0,o.value.length)},m=()=>{s.value.splice(0,s.value.length),o.value.splice(0,o.value.length)},Z=()=>{const p=s.value.shift();p&&(o.value.unshift(n.value),a(p))},u=()=>{const p=o.value.shift();p&&(s.value.unshift(n.value),a(p))},h=()=>{a(n.value)},G=l.computed(()=>[n.value,...s.value]),w=l.computed(()=>s.value.length>0),B=l.computed(()=>o.value.length>0);return{source:C,undoStack:s,redoStack:o,last:n,history:G,canUndo:w,canRedo:B,clear:m,commit:d,reset:h,undo:Z,redo:u}}function Fy(C,g={}){const{deep:I=!1,flush:e="pre",eventFilter:t}=g,{eventFilter:i,pause:A,resume:n,isActive:s}=Yy(t),{ignoreUpdates:o,ignorePrevAsyncUpdates:a,stop:d}=Vr(C,G,{deep:I,flush:e,eventFilter:i});function m(Y,N){a(),o(()=>{Y.value=N})}const Z=Bf(C,{...g,clone:g.clone||I,setSource:m}),{clear:u,commit:h}=Z;function G(){a(),h()}function w(Y){n(),Y&&G()}function B(Y){let N=!1;const R=()=>N=!0;o(()=>{Y(R)}),N||G()}function p(){d(),u()}return{...Z,isTracking:s,pause:A,resume:w,commit:G,batch:B,dispose:p}}function tP(C,g={}){const I=g.debounce?Xw(g.debounce):void 0;return{...Fy(C,{...g,eventFilter:I})}}function pf(C={}){const{window:g=Pg,eventFilter:I=kb}=C,e=l.ref({x:null,y:null,z:null}),t=l.ref({alpha:null,beta:null,gamma:null}),i=l.ref(0),A=l.ref({x:null,y:null,z:null});if(g){const n=Jd(I,s=>{e.value=s.acceleration,A.value=s.accelerationIncludingGravity,t.value=s.rotationRate,i.value=s.interval});hg(g,"devicemotion",n)}return{acceleration:e,accelerationIncludingGravity:A,rotationRate:t,interval:i}}function Ky(C={}){const{window:g=Pg}=C,I=TI(()=>g&&"DeviceOrientationEvent"in g),e=l.ref(!1),t=l.ref(null),i=l.ref(null),A=l.ref(null);return g&&I.value&&hg(g,"deviceorientation",n=>{e.value=n.absolute,t.value=n.alpha,i.value=n.beta,A.value=n.gamma}),{isSupported:I,isAbsolute:e,alpha:t,beta:i,gamma:A}}function Yf(C={}){const{window:g=Pg}=C,I=l.ref(1);if(g){let e=function(){I.value=g.devicePixelRatio,t(),i=g.matchMedia(`(resolution: ${I.value}dppx)`),i.addEventListener("change",e,{once:!0})},t=function(){i==null||i.removeEventListener("change",e)},i;e(),GI(t)}return{pixelRatio:I}}function yf(C={}){const{navigator:g=yi,requestPermissions:I=!1,constraints:e={audio:!0,video:!0},onUpdated:t}=C,i=l.ref([]),A=l.computed(()=>i.value.filter(u=>u.kind==="videoinput")),n=l.computed(()=>i.value.filter(u=>u.kind==="audioinput")),s=l.computed(()=>i.value.filter(u=>u.kind==="audiooutput")),o=TI(()=>g&&g.mediaDevices&&g.mediaDevices.enumerateDevices),a=l.ref(!1);let d;async function m(){o.value&&(i.value=await g.mediaDevices.enumerateDevices(),t==null||t(i.value),d&&(d.getTracks().forEach(u=>u.stop()),d=null))}async function Z(){if(!o.value)return!1;if(a.value)return!0;const{state:u,query:h}=fw("camera",{controls:!0});if(await h(),u.value!=="granted"){let G=!0;try{d=await g.mediaDevices.getUserMedia(e)}catch{d=null,G=!1}m(),a.value=G}else a.value=!0;return a.value}return o.value&&(I&&Z(),hg(g.mediaDevices,"devicechange",m),m()),{devices:i,ensurePermissions:Z,permissionGranted:a,videoInputs:A,audioInputs:n,audioOutputs:s,isSupported:o}}function iP(C={}){var g;const I=l.ref((g=C.enabled)!=null?g:!1),e=C.video,t=C.audio,{navigator:i=yi}=C,A=TI(()=>{var Z;return(Z=i==null?void 0:i.mediaDevices)==null?void 0:Z.getDisplayMedia}),n={audio:t,video:e},s=l.shallowRef();async function o(){var Z;if(!(!A.value||s.value))return s.value=await i.mediaDevices.getDisplayMedia(n),(Z=s.value)==null||Z.getTracks().forEach(u=>u.addEventListener("ended",d)),s.value}async function a(){var Z;(Z=s.value)==null||Z.getTracks().forEach(u=>u.stop()),s.value=void 0}function d(){a(),I.value=!1}async function m(){return await o(),s.value&&(I.value=!0),s.value}return l.watch(I,Z=>{Z?o():a()},{immediate:!0}),{isSupported:A,stream:s,start:m,stop:d,enabled:I}}function zy(C={}){const{document:g=Pt}=C;if(!g)return l.ref("visible");const I=l.ref(g.visibilityState);return hg(g,"visibilitychange",()=>{I.value=g.visibilityState}),I}function Nf(C,g={}){var I,e;const{pointerTypes:t,preventDefault:i,stopPropagation:A,exact:n,onMove:s,onEnd:o,onStart:a,initialValue:d,axis:m="both",draggingElement:Z=Pg,containerElement:u,handle:h=C,buttons:G=[0]}=g,w=l.ref((I=_(d))!=null?I:{x:0,y:0}),B=l.ref(),p=K=>t?t.includes(K.pointerType):!0,Y=K=>{_(i)&&K.preventDefault(),_(A)&&K.stopPropagation()},N=K=>{var D;if(!_(G).includes(K.button)||_(g.disabled)||!p(K)||_(n)&&K.target!==_(C))return;const k=_(u),z=(D=k==null?void 0:k.getBoundingClientRect)==null?void 0:D.call(k),v=_(C).getBoundingClientRect(),O={x:K.clientX-(k?v.left-z.left+k.scrollLeft:v.left),y:K.clientY-(k?v.top-z.top+k.scrollTop:v.top)};(a==null?void 0:a(O,K))!==!1&&(B.value=O,Y(K))},R=K=>{if(_(g.disabled)||!p(K)||!B.value)return;const D=_(u),k=_(C).getBoundingClientRect();let{x:z,y:v}=w.value;(m==="x"||m==="both")&&(z=K.clientX-B.value.x,D&&(z=Math.min(Math.max(0,z),D.scrollWidth-k.width))),(m==="y"||m==="both")&&(v=K.clientY-B.value.y,D&&(v=Math.min(Math.max(0,v),D.scrollHeight-k.height))),w.value={x:z,y:v},s==null||s(w.value,K),Y(K)},X=K=>{_(g.disabled)||!p(K)||B.value&&(B.value=void 0,o==null||o(w.value,K),Y(K))};if(ue){const K={capture:(e=g.capture)!=null?e:!0};hg(h,"pointerdown",N,K),hg(Z,"pointermove",R,K),hg(Z,"pointerup",X,K)}return{...My(w),position:w,isDragging:l.computed(()=>!!B.value),style:l.computed(()=>`left:${w.value.x}px;top:${w.value.y}px;`)}}function AP(C,g={}){var I,e;const t=l.ref(!1),i=l.shallowRef(null);let A=0,n=!0;if(ue){const s=typeof g=="function"?{onDrop:g}:g,o=(I=s.multiple)!=null?I:!0,a=(e=s.preventDefaultForUnhandled)!=null?e:!1,d=h=>{var G,w;const B=Array.from((w=(G=h.dataTransfer)==null?void 0:G.files)!=null?w:[]);return B.length===0?null:o?B:[B[0]]},m=h=>{if(s.dataTypes){const G=l.unref(s.dataTypes);return typeof G=="function"?G(h):G?G.some(w=>h.includes(w)):!0}return!0},Z=h=>{var G,w;const B=Array.from((w=(G=h.dataTransfer)==null?void 0:G.items)!=null?w:[]),p=B.map(R=>R.type),Y=m(p),N=o||B.length<=1;return Y&&N},u=(h,G)=>{var w,B,p,Y;if(n=Z(h),!n){a&&h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="none");return}h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="copy");const N=d(h);switch(G){case"enter":A+=1,t.value=!0,(w=s.onEnter)==null||w.call(s,null,h);break;case"over":(B=s.onOver)==null||B.call(s,null,h);break;case"leave":A-=1,A===0&&(t.value=!1),(p=s.onLeave)==null||p.call(s,null,h);break;case"drop":A=0,t.value=!1,n&&(i.value=N,(Y=s.onDrop)==null||Y.call(s,N,h));break}};hg(C,"dragenter",h=>u(h,"enter")),hg(C,"dragover",h=>u(h,"over")),hg(C,"dragleave",h=>u(h,"leave")),hg(C,"drop",h=>u(h,"drop"))}return{files:i,isOverDropZone:t}}function Kw(C,g,I={}){const{window:e=Pg,...t}=I;let i;const A=TI(()=>e&&"ResizeObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},s=l.computed(()=>{const d=_(C);return Array.isArray(d)?d.map(m=>KI(m)):[KI(d)]}),o=l.watch(s,d=>{if(n(),A.value&&e){i=new ResizeObserver(g);for(const m of d)m&&i.observe(m,t)}},{immediate:!0,flush:"post"}),a=()=>{n(),o()};return GI(a),{isSupported:A,stop:a}}function Vf(C,g={}){const{reset:I=!0,windowResize:e=!0,windowScroll:t=!0,immediate:i=!0,updateTiming:A="sync"}=g,n=l.ref(0),s=l.ref(0),o=l.ref(0),a=l.ref(0),d=l.ref(0),m=l.ref(0),Z=l.ref(0),u=l.ref(0);function h(){const w=KI(C);if(!w){I&&(n.value=0,s.value=0,o.value=0,a.value=0,d.value=0,m.value=0,Z.value=0,u.value=0);return}const B=w.getBoundingClientRect();n.value=B.height,s.value=B.bottom,o.value=B.left,a.value=B.right,d.value=B.top,m.value=B.width,Z.value=B.x,u.value=B.y}function G(){A==="sync"?h():A==="next-frame"&&requestAnimationFrame(()=>h())}return Kw(C,G),l.watch(()=>KI(C),w=>!w&&G()),Xr(C,G,{attributeFilter:["style","class"]}),t&&hg("scroll",G,{capture:!0,passive:!0}),e&&hg("resize",G,{passive:!0}),ne(()=>{i&&G()}),{height:n,bottom:s,left:o,right:a,top:d,width:m,x:Z,y:u,update:G}}function nP(C){const{x:g,y:I,document:e=Pt,multiple:t,interval:i="requestAnimationFrame",immediate:A=!0}=C,n=TI(()=>_(t)?e&&"elementsFromPoint"in e:e&&"elementFromPoint"in e),s=l.ref(null),o=()=>{var d,m;s.value=_(t)?(d=e==null?void 0:e.elementsFromPoint(_(g),_(I)))!=null?d:[]:(m=e==null?void 0:e.elementFromPoint(_(g),_(I)))!=null?m:null},a=i==="requestAnimationFrame"?Ld(o,{immediate:A}):xo(o,i,{immediate:A});return{isSupported:n,element:s,...a}}function lP(C,g={}){const{delayEnter:I=0,delayLeave:e=0,window:t=Pg}=g,i=l.ref(!1);let A;const n=s=>{const o=s?I:e;A&&(clearTimeout(A),A=void 0),o?A=setTimeout(()=>i.value=s,o):i.value=s};return t&&(hg(C,"mouseenter",()=>n(!0),{passive:!0}),hg(C,"mouseleave",()=>n(!1),{passive:!0})),i}function Jy(C,g={width:0,height:0},I={}){const{window:e=Pg,box:t="content-box"}=I,i=l.computed(()=>{var d,m;return(m=(d=KI(C))==null?void 0:d.namespaceURI)==null?void 0:m.includes("svg")}),A=l.ref(g.width),n=l.ref(g.height),{stop:s}=Kw(C,([d])=>{const m=t==="border-box"?d.borderBoxSize:t==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(e&&i.value){const Z=KI(C);if(Z){const u=Z.getBoundingClientRect();A.value=u.width,n.value=u.height}}else if(m){const Z=Array.isArray(m)?m:[m];A.value=Z.reduce((u,{inlineSize:h})=>u+h,0),n.value=Z.reduce((u,{blockSize:h})=>u+h,0)}else A.value=d.contentRect.width,n.value=d.contentRect.height},I);ne(()=>{const d=KI(C);d&&(A.value="offsetWidth"in d?d.offsetWidth:g.width,n.value="offsetHeight"in d?d.offsetHeight:g.height)});const o=l.watch(()=>KI(C),d=>{A.value=d?g.width:0,n.value=d?g.height:0});function a(){s(),o()}return{width:A,height:n,stop:a}}function Xf(C,g,I={}){const{root:e,rootMargin:t="0px",threshold:i=0,window:A=Pg,immediate:n=!0}=I,s=TI(()=>A&&"IntersectionObserver"in A),o=l.computed(()=>{const u=_(C);return(Array.isArray(u)?u:[u]).map(KI).filter(Db)});let a=NI;const d=l.ref(n),m=s.value?l.watch(()=>[o.value,KI(e),d.value],([u,h])=>{if(a(),!d.value||!u.length)return;const G=new IntersectionObserver(g,{root:KI(h),rootMargin:t,threshold:i});u.forEach(w=>w&&G.observe(w)),a=()=>{G.disconnect(),a=NI}},{immediate:n,flush:"post"}):NI,Z=()=>{a(),m(),d.value=!1};return GI(Z),{isSupported:s,isActive:d,pause(){a(),d.value=!1},resume(){d.value=!0},stop:Z}}function xy(C,g={}){const{window:I=Pg,scrollTarget:e,threshold:t=0}=g,i=l.ref(!1);return Xf(C,A=>{let n=i.value,s=0;for(const o of A)o.time>=s&&(s=o.time,n=o.isIntersecting);i.value=n},{root:e,window:I,threshold:t}),i}const Lb=new Map;function sP(C){const g=l.getCurrentScope();function I(n){var s;const o=Lb.get(C)||new Set;o.add(n),Lb.set(C,o);const a=()=>t(n);return(s=g==null?void 0:g.cleanups)==null||s.push(a),a}function e(n){function s(...o){t(s),n(...o)}return I(s)}function t(n){const s=Lb.get(C);s&&(s.delete(n),s.size||i())}function i(){Lb.delete(C)}function A(n,s){var o;(o=Lb.get(C))==null||o.forEach(a=>a(n,s))}return{on:I,once:e,off:t,emit:A,reset:i}}function oP(C){return C===!0?{}:C}function aP(C,g=[],I={}){const e=l.ref(null),t=l.ref(null),i=l.ref("CONNECTING"),A=l.ref(null),n=l.shallowRef(null),s=PC(C),o=l.shallowRef(null);let a=!1,d=0;const{withCredentials:m=!1,immediate:Z=!0}=I,u=()=>{ue&&A.value&&(A.value.close(),A.value=null,i.value="CLOSED",a=!0)},h=()=>{if(a||typeof s.value>"u")return;const w=new EventSource(s.value,{withCredentials:m});i.value="CONNECTING",A.value=w,w.onopen=()=>{i.value="OPEN",n.value=null},w.onerror=B=>{if(i.value="CLOSED",n.value=B,w.readyState===2&&!a&&I.autoReconnect){w.close();const{retries:p=-1,delay:Y=1e3,onFailed:N}=oP(I.autoReconnect);d+=1,typeof p=="number"&&(p<0||d<p)||typeof p=="function"&&p()?setTimeout(h,Y):N==null||N()}},w.onmessage=B=>{e.value=null,t.value=B.data,o.value=B.lastEventId};for(const B of g)hg(w,B,p=>{e.value=B,t.value=p.data||null})},G=()=>{ue&&(u(),a=!1,d=0,h())};return Z&&l.watch(s,G,{immediate:!0}),GI(u),{eventSource:A,event:e,data:t,status:i,error:n,open:G,close:u,lastEventId:o}}function Rf(C={}){const{initialValue:g=""}=C,I=TI(()=>typeof window<"u"&&"EyeDropper"in window),e=l.ref(g);async function t(i){if(!I.value)return;const n=await new window.EyeDropper().open(i);return e.value=n.sRGBHex,n}return{isSupported:I,sRGBHex:e,open:t}}function dP(C=null,g={}){const{baseUrl:I="",rel:e="icon",document:t=Pt}=g,i=PC(C),A=n=>{const s=t==null?void 0:t.head.querySelectorAll(`link[rel*="${e}"]`);if(!s||s.length===0){const o=t==null?void 0:t.createElement("link");o&&(o.rel=e,o.href=`${I}${n}`,o.type=`image/${n.split(".").pop()}`,t==null||t.head.append(o));return}s==null||s.forEach(o=>o.href=`${I}${n}`)};return l.watch(i,(n,s)=>{typeof n=="string"&&n!==s&&A(n)},{immediate:!0}),i}const cP={json:"application/json",text:"text/plain"};function zw(C){return C&&Ny(C,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const mP=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function rP(C){return mP.test(C)}function vb(C){return typeof Headers<"u"&&C instanceof Headers?Object.fromEntries(C.entries()):C}function Rr(C,...g){return C==="overwrite"?async I=>{const e=g[g.length-1];return e?{...I,...await e(I)}:I}:async I=>{for(const e of g)e&&(I={...I,...await e(I)});return I}}function ZP(C={}){const g=C.combination||"chain",I=C.options||{},e=C.fetchOptions||{};function t(i,...A){const n=l.computed(()=>{const a=_(C.baseUrl),d=_(i);return a&&!rP(d)?bP(a,d):d});let s=I,o=e;return A.length>0&&(zw(A[0])?s={...s,...A[0],beforeFetch:Rr(g,I.beforeFetch,A[0].beforeFetch),afterFetch:Rr(g,I.afterFetch,A[0].afterFetch),onFetchError:Rr(g,I.onFetchError,A[0].onFetchError)}:o={...o,...A[0],headers:{...vb(o.headers)||{},...vb(A[0].headers)||{}}}),A.length>1&&zw(A[1])&&(s={...s,...A[1],beforeFetch:Rr(g,I.beforeFetch,A[1].beforeFetch),afterFetch:Rr(g,I.afterFetch,A[1].afterFetch),onFetchError:Rr(g,I.onFetchError,A[1].onFetchError)}),Mf(n,o,s)}return t}function Mf(C,...g){var I;const e=typeof AbortController=="function";let t={},i={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const A={method:"GET",type:"text",payload:void 0};g.length>0&&(zw(g[0])?i={...i,...g[0]}:t=g[0]),g.length>1&&zw(g[1])&&(i={...i,...g[1]});const{fetch:n=(I=Pg)==null?void 0:I.fetch,initialData:s,timeout:o}=i,a=ct(),d=ct(),m=ct(),Z=l.ref(!1),u=l.ref(!1),h=l.ref(!1),G=l.ref(null),w=l.shallowRef(null),B=l.shallowRef(null),p=l.shallowRef(s||null),Y=l.computed(()=>e&&u.value);let N,R;const X=()=>{e&&(N==null||N.abort(),N=new AbortController,N.signal.onabort=()=>h.value=!0,t={...t,signal:N.signal})},K=T=>{u.value=T,Z.value=!T};o&&(R=Nr(X,o,{immediate:!1}));let D=0;const k=async(T=!1)=>{var q,cg;X(),K(!0),B.value=null,G.value=null,h.value=!1,D+=1;const og=D,Wg={method:A.method,headers:{}};if(A.payload){const kg=vb(Wg.headers),Vg=_(A.payload),gI=Object.getPrototypeOf(Vg);!A.payloadType&&Vg&&(gI===Object.prototype||Array.isArray(gI))&&!(Vg instanceof FormData)&&(A.payloadType="json"),A.payloadType&&(kg["Content-Type"]=(q=cP[A.payloadType])!=null?q:A.payloadType),Wg.body=A.payloadType==="json"?JSON.stringify(Vg):Vg}let fg=!1;const Rg={url:_(C),options:{...Wg,...t},cancel:()=>{fg=!0}};if(i.beforeFetch&&Object.assign(Rg,await i.beforeFetch(Rg)),fg||!n)return K(!1),Promise.resolve(null);let Bg=null;return R&&R.start(),n(Rg.url,{...Wg,...Rg.options,headers:{...vb(Wg.headers),...vb((cg=Rg.options)==null?void 0:cg.headers)}}).then(async kg=>{if(w.value=kg,G.value=kg.status,Bg=await kg.clone()[A.type](),!kg.ok)throw p.value=s||null,new Error(kg.statusText);return i.afterFetch&&({data:Bg}=await i.afterFetch({data:Bg,response:kg})),p.value=Bg,a.trigger(kg),kg}).catch(async kg=>{let Vg=kg.message||kg.name;if(i.onFetchError&&({error:Vg,data:Bg}=await i.onFetchError({data:Bg,error:kg,response:w.value})),B.value=Vg,i.updateDataOnError&&(p.value=Bg),d.trigger(kg),T)throw kg;return null}).finally(()=>{og===D&&K(!1),R&&R.stop(),m.trigger(null)})},z=PC(i.refetch);l.watch([z,PC(C)],([T])=>T&&k(),{deep:!0});const v={isFinished:l.readonly(Z),isFetching:l.readonly(u),statusCode:G,response:w,error:B,data:p,canAbort:Y,aborted:h,abort:X,execute:k,onFetchResponse:a.on,onFetchError:d.on,onFetchFinally:m.on,get:O("GET"),put:O("PUT"),post:O("POST"),delete:O("DELETE"),patch:O("PATCH"),head:O("HEAD"),options:O("OPTIONS"),json:U("json"),text:U("text"),blob:U("blob"),arrayBuffer:U("arrayBuffer"),formData:U("formData")};function O(T){return(q,cg)=>{if(!u.value)return A.method=T,A.payload=q,A.payloadType=cg,l.isRef(A.payload)&&l.watch([z,PC(A.payload)],([og])=>og&&k(),{deep:!0}),{...v,then(og,Wg){return Cg().then(og,Wg)}}}}function Cg(){return new Promise((T,q)=>{yr(Z).toBe(!0).then(()=>T(v)).catch(q)})}function U(T){return()=>{if(!u.value)return A.type=T,{...v,then(q,cg){return Cg().then(q,cg)}}}}return i.immediate&&Promise.resolve().then(()=>k()),{...v,then(T,q){return Cg().then(T,q)}}}function bP(C,g){return!C.endsWith("/")&&!g.startsWith("/")?`${C}/${g}`:C.endsWith("/")&&g.startsWith("/")?`${C.slice(0,-1)}${g}`:`${C}${g}`}const uP={multiple:!0,accept:"*",reset:!1,directory:!1};function hP(C={}){const{document:g=Pt}=C,I=l.ref(null),{on:e,trigger:t}=ct(),{on:i,trigger:A}=ct();let n;g&&(n=g.createElement("input"),n.type="file",n.onchange=a=>{const d=a.target;I.value=d.files,t(I.value)},n.oncancel=()=>{A()});const s=()=>{I.value=null,n&&n.value&&(n.value="",t(null))},o=a=>{if(!n)return;const d={...uP,...C,...a};n.multiple=d.multiple,n.accept=d.accept,n.webkitdirectory=d.directory,LH(d,"capture")&&(n.capture=d.capture),d.reset&&s(),n.click()};return{files:l.readonly(I),open:o,reset:s,onCancel:i,onChange:e}}function GP(C={}){const{window:g=Pg,dataType:I="Text"}=C,e=g,t=TI(()=>e&&"showSaveFilePicker"in e&&"showOpenFilePicker"in e),i=l.ref(),A=l.ref(),n=l.ref(),s=l.computed(()=>{var B,p;return(p=(B=n.value)==null?void 0:B.name)!=null?p:""}),o=l.computed(()=>{var B,p;return(p=(B=n.value)==null?void 0:B.type)!=null?p:""}),a=l.computed(()=>{var B,p;return(p=(B=n.value)==null?void 0:B.size)!=null?p:0}),d=l.computed(()=>{var B,p;return(p=(B=n.value)==null?void 0:B.lastModified)!=null?p:0});async function m(B={}){if(!t.value)return;const[p]=await e.showOpenFilePicker({..._(C),...B});i.value=p,await w()}async function Z(B={}){t.value&&(i.value=await e.showSaveFilePicker({...C,...B}),A.value=void 0,await w())}async function u(B={}){if(t.value){if(!i.value)return h(B);if(A.value){const p=await i.value.createWritable();await p.write(A.value),await p.close()}await G()}}async function h(B={}){if(t.value){if(i.value=await e.showSaveFilePicker({...C,...B}),A.value){const p=await i.value.createWritable();await p.write(A.value),await p.close()}await G()}}async function G(){var B;n.value=await((B=i.value)==null?void 0:B.getFile())}async function w(){var B,p;await G();const Y=_(I);Y==="Text"?A.value=await((B=n.value)==null?void 0:B.text()):Y==="ArrayBuffer"?A.value=await((p=n.value)==null?void 0:p.arrayBuffer()):Y==="Blob"&&(A.value=n.value)}return l.watch(()=>_(I),w),{isSupported:t,data:A,file:n,fileName:s,fileMIME:o,fileSize:a,fileLastModified:d,open:m,create:Z,save:u,saveAs:h,updateData:w}}function wP(C,g={}){const{initialValue:I=!1,focusVisible:e=!1,preventScroll:t=!1}=g,i=l.ref(!1),A=l.computed(()=>KI(C));hg(A,"focus",s=>{var o,a;(!e||(a=(o=s.target).matches)!=null&&a.call(o,":focus-visible"))&&(i.value=!0)}),hg(A,"blur",()=>i.value=!1);const n=l.computed({get:()=>i.value,set(s){var o,a;!s&&i.value?(o=A.value)==null||o.blur():s&&!i.value&&((a=A.value)==null||a.focus({preventScroll:t}))}});return l.watch(A,()=>{n.value=I},{immediate:!0,flush:"post"}),{focused:n}}const WP="focusin",BP="focusout";function pP(C,g={}){const{window:I=Pg}=g,e=l.computed(()=>KI(C)),t=l.ref(!1),i=l.computed(()=>t.value),A=fy(g);return!I||!A.value?{focused:i}:(hg(e,WP,()=>t.value=!0),hg(e,BP,()=>t.value=!1),{focused:i})}function YP(C){var g;const I=l.ref(0);if(typeof performance>"u")return I;const e=(g=C==null?void 0:C.every)!=null?g:10;let t=performance.now(),i=0;return Ld(()=>{if(i+=1,i>=e){const A=performance.now(),n=A-t;I.value=Math.round(1e3/(n/i)),t=A,i=0}}),I}const Hf=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function ff(C,g={}){const{document:I=Pt,autoExit:e=!1}=g,t=l.computed(()=>{var w;return(w=KI(C))!=null?w:I==null?void 0:I.querySelector("html")}),i=l.ref(!1),A=l.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(w=>I&&w in I||t.value&&w in t.value)),n=l.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(w=>I&&w in I||t.value&&w in t.value)),s=l.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(w=>I&&w in I||t.value&&w in t.value)),o=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(w=>I&&w in I),a=TI(()=>t.value&&I&&A.value!==void 0&&n.value!==void 0&&s.value!==void 0),d=()=>o?(I==null?void 0:I[o])===t.value:!1,m=()=>{if(s.value){if(I&&I[s.value]!=null)return I[s.value];{const w=t.value;if((w==null?void 0:w[s.value])!=null)return!!w[s.value]}}return!1};async function Z(){if(!(!a.value||!i.value)){if(n.value)if((I==null?void 0:I[n.value])!=null)await I[n.value]();else{const w=t.value;(w==null?void 0:w[n.value])!=null&&await w[n.value]()}i.value=!1}}async function u(){if(!a.value||i.value)return;m()&&await Z();const w=t.value;A.value&&(w==null?void 0:w[A.value])!=null&&(await w[A.value](),i.value=!0)}async function h(){await(i.value?Z():u())}const G=()=>{const w=m();(!w||w&&d())&&(i.value=w)};return hg(I,Hf,G,!1),hg(()=>KI(t),Hf,G,!1),e&&GI(Z),{isSupported:a,isFullscreen:i,enter:u,exit:Z,toggle:h}}function yP(C){return l.computed(()=>C.value?{buttons:{a:C.value.buttons[0],b:C.value.buttons[1],x:C.value.buttons[2],y:C.value.buttons[3]},bumper:{left:C.value.buttons[4],right:C.value.buttons[5]},triggers:{left:C.value.buttons[6],right:C.value.buttons[7]},stick:{left:{horizontal:C.value.axes[0],vertical:C.value.axes[1],button:C.value.buttons[10]},right:{horizontal:C.value.axes[2],vertical:C.value.axes[3],button:C.value.buttons[11]}},dpad:{up:C.value.buttons[12],down:C.value.buttons[13],left:C.value.buttons[14],right:C.value.buttons[15]},back:C.value.buttons[8],start:C.value.buttons[9]}:null)}function NP(C={}){const{navigator:g=yi}=C,I=TI(()=>g&&"getGamepads"in g),e=l.ref([]),t=ct(),i=ct(),A=Z=>{const u=[],h="vibrationActuator"in Z?Z.vibrationActuator:null;return h&&u.push(h),Z.hapticActuators&&u.push(...Z.hapticActuators),{id:Z.id,index:Z.index,connected:Z.connected,mapping:Z.mapping,timestamp:Z.timestamp,vibrationActuator:Z.vibrationActuator,hapticActuators:u,axes:Z.axes.map(G=>G),buttons:Z.buttons.map(G=>({pressed:G.pressed,touched:G.touched,value:G.value}))}},n=()=>{const Z=(g==null?void 0:g.getGamepads())||[];for(const u of Z)u&&e.value[u.index]&&(e.value[u.index]=A(u))},{isActive:s,pause:o,resume:a}=Ld(n),d=Z=>{e.value.some(({index:u})=>u===Z.index)||(e.value.push(A(Z)),t.trigger(Z.index)),a()},m=Z=>{e.value=e.value.filter(u=>u.index!==Z.index),i.trigger(Z.index)};return hg("gamepadconnected",Z=>d(Z.gamepad)),hg("gamepaddisconnected",Z=>m(Z.gamepad)),ne(()=>{const Z=(g==null?void 0:g.getGamepads())||[];for(const u of Z)u&&e.value[u.index]&&d(u)}),o(),{isSupported:I,onConnected:t.on,onDisconnected:i.on,gamepads:e,pause:o,resume:a,isActive:s}}function Sf(C={}){const{enableHighAccuracy:g=!0,maximumAge:I=3e4,timeout:e=27e3,navigator:t=yi,immediate:i=!0}=C,A=TI(()=>t&&"geolocation"in t),n=l.ref(null),s=l.shallowRef(null),o=l.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function a(u){n.value=u.timestamp,o.value=u.coords,s.value=null}let d;function m(){A.value&&(d=t.geolocation.watchPosition(a,u=>s.value=u,{enableHighAccuracy:g,maximumAge:I,timeout:e}))}i&&m();function Z(){d&&t&&t.geolocation.clearWatch(d)}return GI(()=>{Z()}),{isSupported:A,coords:o,locatedAt:n,error:s,resume:m,pause:Z}}const VP=["mousemove","mousedown","resize","keydown","touchstart","wheel"],XP=6e4;function Df(C=XP,g={}){const{initialState:I=!1,listenForVisibilityChange:e=!0,events:t=VP,window:i=Pg,eventFilter:A=Fb(50)}=g,n=l.ref(I),s=l.ref(Kd());let o;const a=()=>{n.value=!1,clearTimeout(o),o=setTimeout(()=>n.value=!0,C)},d=Jd(A,()=>{s.value=Kd(),a()});if(i){const m=i.document;for(const Z of t)hg(i,Z,d,{passive:!0});e&&hg(m,"visibilitychange",()=>{m.hidden||d()}),a()}return{idle:n,lastActive:s,reset:a}}async function RP(C){return new Promise((g,I)=>{const e=new Image,{src:t,srcset:i,sizes:A,class:n,loading:s,crossorigin:o,referrerPolicy:a}=C;e.src=t,i&&(e.srcset=i),A&&(e.sizes=A),n&&(e.className=n),s&&(e.loading=s),o&&(e.crossOrigin=o),a&&(e.referrerPolicy=a),e.onload=()=>g(e),e.onerror=I})}function MP(C,g={}){const I=af(()=>RP(_(C)),void 0,{resetOnExecute:!0,...g});return l.watch(()=>_(C),()=>I.execute(g.delay),{deep:!0}),I}function Jw(C){return typeof Window<"u"&&C instanceof Window?C.document.documentElement:typeof Document<"u"&&C instanceof Document?C.documentElement:C}const kf=1;function Ff(C,g={}){const{throttle:I=0,idle:e=200,onStop:t=NI,onScroll:i=NI,offset:A={left:0,right:0,top:0,bottom:0},eventListenerOptions:n={capture:!1,passive:!0},behavior:s="auto",window:o=Pg,onError:a=X=>{console.error(X)}}=g,d=l.ref(0),m=l.ref(0),Z=l.computed({get(){return d.value},set(X){h(X,void 0)}}),u=l.computed({get(){return m.value},set(X){h(void 0,X)}});function h(X,K){var D,k,z,v;if(!o)return;const O=_(C);if(!O)return;(z=O instanceof Document?o.document.body:O)==null||z.scrollTo({top:(D=_(K))!=null?D:u.value,left:(k=_(X))!=null?k:Z.value,behavior:_(s)});const Cg=((v=O==null?void 0:O.document)==null?void 0:v.documentElement)||(O==null?void 0:O.documentElement)||O;Z!=null&&(d.value=Cg.scrollLeft),u!=null&&(m.value=Cg.scrollTop)}const G=l.ref(!1),w=l.reactive({left:!0,right:!1,top:!0,bottom:!1}),B=l.reactive({left:!1,right:!1,top:!1,bottom:!1}),p=X=>{G.value&&(G.value=!1,B.left=!1,B.right=!1,B.top=!1,B.bottom=!1,t(X))},Y=pr(p,I+e),N=X=>{var K;if(!o)return;const D=((K=X==null?void 0:X.document)==null?void 0:K.documentElement)||(X==null?void 0:X.documentElement)||KI(X),{display:k,flexDirection:z}=getComputedStyle(D),v=D.scrollLeft;B.left=v<d.value,B.right=v>d.value;const O=Math.abs(v)<=(A.left||0),Cg=Math.abs(v)+D.clientWidth>=D.scrollWidth-(A.right||0)-kf;k==="flex"&&z==="row-reverse"?(w.left=Cg,w.right=O):(w.left=O,w.right=Cg),d.value=v;let U=D.scrollTop;X===o.document&&!U&&(U=o.document.body.scrollTop),B.top=U<m.value,B.bottom=U>m.value;const T=Math.abs(U)<=(A.top||0),q=Math.abs(U)+D.clientHeight>=D.scrollHeight-(A.bottom||0)-kf;k==="flex"&&z==="column-reverse"?(w.top=q,w.bottom=T):(w.top=T,w.bottom=q),m.value=U},R=X=>{var K;if(!o)return;const D=(K=X.target.documentElement)!=null?K:X.target;N(D),G.value=!0,Y(X),i(X)};return hg(C,"scroll",I?Rw(R,I,!0,!1):R,n),ne(()=>{try{const X=_(C);if(!X)return;N(X)}catch(X){a(X)}}),hg(C,"scrollend",p,n),{x:Z,y:u,isScrolling:G,arrivedState:w,directions:B,measure(){const X=_(C);o&&X&&N(X)}}}function HP(C,g,I={}){var e;const{direction:t="bottom",interval:i=100,canLoadMore:A=()=>!0}=I,n=l.reactive(Ff(C,{...I,offset:{[t]:(e=I.distance)!=null?e:0,...I.offset}})),s=l.ref(),o=l.computed(()=>!!s.value),a=l.computed(()=>Jw(_(C))),d=xy(a);function m(){if(n.measure(),!a.value||!d.value||!A(a.value))return;const{scrollHeight:u,clientHeight:h,scrollWidth:G,clientWidth:w}=a.value,B=t==="bottom"||t==="top"?u<=h:G<=w;(n.arrivedState[t]||B)&&(s.value||(s.value=Promise.all([g(n),new Promise(p=>setTimeout(p,i))]).finally(()=>{s.value=null,l.nextTick(()=>m())})))}const Z=l.watch(()=>[n.arrivedState[t],d.value],m,{immediate:!0});return Mw(Z),{isLoading:o,reset(){l.nextTick(()=>m())}}}const fP=["mousedown","mouseup","keydown","keyup"];function SP(C,g={}){const{events:I=fP,document:e=Pt,initial:t=null}=g,i=l.ref(t);return e&&I.forEach(A=>{hg(e,A,n=>{typeof n.getModifierState=="function"&&(i.value=n.getModifierState(C))})}),i}function DP(C,g,I={}){const{window:e=Pg}=I;return xb(C,g,e==null?void 0:e.localStorage,I)}const Kf={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function kP(C={}){const{reactive:g=!1,target:I=Pg,aliasMap:e=Kf,passive:t=!0,onEventFired:i=NI}=C,A=l.reactive(new Set),n={toJSON(){return{}},current:A},s=g?l.reactive(n):n,o=new Set,a=new Set;function d(h,G){h in s&&(g?s[h]=G:s[h].value=G)}function m(){A.clear();for(const h of a)d(h,!1)}function Z(h,G){var w,B;const p=(w=h.key)==null?void 0:w.toLowerCase(),N=[(B=h.code)==null?void 0:B.toLowerCase(),p].filter(Boolean);p&&(G?A.add(p):A.delete(p));for(const R of N)a.add(R),d(R,G);p==="meta"&&!G?(o.forEach(R=>{A.delete(R),d(R,!1)}),o.clear()):typeof h.getModifierState=="function"&&h.getModifierState("Meta")&&G&&[...A,...N].forEach(R=>o.add(R))}hg(I,"keydown",h=>(Z(h,!0),i(h)),{passive:t}),hg(I,"keyup",h=>(Z(h,!1),i(h)),{passive:t}),hg("blur",m,{passive:!0}),hg("focus",m,{passive:!0});const u=new Proxy(s,{get(h,G,w){if(typeof G!="string")return Reflect.get(h,G,w);if(G=G.toLowerCase(),G in e&&(G=e[G]),!(G in s))if(/[+_-]/.test(G)){const p=G.split(/[+_-]/g).map(Y=>Y.trim());s[G]=l.computed(()=>p.every(Y=>_(u[Y])))}else s[G]=l.ref(!1);const B=Reflect.get(h,G,w);return g?_(B):B}});return u}function Ty(C,g){_(C)&&g(_(C))}function FP(C){let g=[];for(let I=0;I<C.length;++I)g=[...g,[C.start(I),C.end(I)]];return g}function Ly(C){return Array.from(C).map(({label:g,kind:I,language:e,mode:t,activeCues:i,cues:A,inBandMetadataTrackDispatchType:n},s)=>({id:s,label:g,kind:I,language:e,mode:t,activeCues:i,cues:A,inBandMetadataTrackDispatchType:n}))}const KP={src:"",tracks:[]};function zP(C,g={}){C=PC(C),g={...KP,...g};const{document:I=Pt}=g,e=l.ref(0),t=l.ref(0),i=l.ref(!1),A=l.ref(1),n=l.ref(!1),s=l.ref(!1),o=l.ref(!1),a=l.ref(1),d=l.ref(!1),m=l.ref([]),Z=l.ref([]),u=l.ref(-1),h=l.ref(!1),G=l.ref(!1),w=I&&"pictureInPictureEnabled"in I,B=ct(),p=ct(),Y=z=>{Ty(C,v=>{if(z){const O=typeof z=="number"?z:z.id;v.textTracks[O].mode="disabled"}else for(let O=0;O<v.textTracks.length;++O)v.textTracks[O].mode="disabled";u.value=-1})},N=(z,v=!0)=>{Ty(C,O=>{const Cg=typeof z=="number"?z:z.id;v&&Y(),O.textTracks[Cg].mode="showing",u.value=Cg})},R=()=>new Promise((z,v)=>{Ty(C,async O=>{w&&(h.value?I.exitPictureInPicture().then(z).catch(v):O.requestPictureInPicture().then(z).catch(v))})});l.watchEffect(()=>{if(!I)return;const z=_(C);if(!z)return;const v=_(g.src);let O=[];v&&(typeof v=="string"?O=[{src:v}]:Array.isArray(v)?O=v:Wr(v)&&(O=[v]),z.querySelectorAll("source").forEach(Cg=>{Cg.removeEventListener("error",B.trigger),Cg.remove()}),O.forEach(({src:Cg,type:U})=>{const T=I.createElement("source");T.setAttribute("src",Cg),T.setAttribute("type",U||""),T.addEventListener("error",B.trigger),z.appendChild(T)}),z.load())}),GI(()=>{const z=_(C);z&&z.querySelectorAll("source").forEach(v=>v.removeEventListener("error",B.trigger))}),l.watch([C,A],()=>{const z=_(C);z&&(z.volume=A.value)}),l.watch([C,G],()=>{const z=_(C);z&&(z.muted=G.value)}),l.watch([C,a],()=>{const z=_(C);z&&(z.playbackRate=a.value)}),l.watchEffect(()=>{if(!I)return;const z=_(g.tracks),v=_(C);!z||!z.length||!v||(v.querySelectorAll("track").forEach(O=>O.remove()),z.forEach(({default:O,kind:Cg,label:U,src:T,srcLang:q},cg)=>{const og=I.createElement("track");og.default=O||!1,og.kind=Cg,og.label=U,og.src=T,og.srclang=q,og.default&&(u.value=cg),v.appendChild(og)}))});const{ignoreUpdates:X}=Vr(e,z=>{const v=_(C);v&&(v.currentTime=z)}),{ignoreUpdates:K}=Vr(o,z=>{const v=_(C);v&&(z?v.play().catch(O=>{throw p.trigger(O),O}):v.pause())});hg(C,"timeupdate",()=>X(()=>e.value=_(C).currentTime)),hg(C,"durationchange",()=>t.value=_(C).duration),hg(C,"progress",()=>m.value=FP(_(C).buffered)),hg(C,"seeking",()=>i.value=!0),hg(C,"seeked",()=>i.value=!1),hg(C,["waiting","loadstart"],()=>{n.value=!0,K(()=>o.value=!1)}),hg(C,"loadeddata",()=>n.value=!1),hg(C,"playing",()=>{n.value=!1,s.value=!1,K(()=>o.value=!0)}),hg(C,"ratechange",()=>a.value=_(C).playbackRate),hg(C,"stalled",()=>d.value=!0),hg(C,"ended",()=>s.value=!0),hg(C,"pause",()=>K(()=>o.value=!1)),hg(C,"play",()=>K(()=>o.value=!0)),hg(C,"enterpictureinpicture",()=>h.value=!0),hg(C,"leavepictureinpicture",()=>h.value=!1),hg(C,"volumechange",()=>{const z=_(C);z&&(A.value=z.volume,G.value=z.muted)});const D=[],k=l.watch([C],()=>{const z=_(C);z&&(k(),D[0]=hg(z.textTracks,"addtrack",()=>Z.value=Ly(z.textTracks)),D[1]=hg(z.textTracks,"removetrack",()=>Z.value=Ly(z.textTracks)),D[2]=hg(z.textTracks,"change",()=>Z.value=Ly(z.textTracks)))});return GI(()=>D.forEach(z=>z())),{currentTime:e,duration:t,waiting:n,seeking:i,ended:s,stalled:d,buffered:m,playing:o,rate:a,volume:A,muted:G,tracks:Z,selectedTrack:u,enableTrack:N,disableTrack:Y,supportsPictureInPicture:w,togglePictureInPicture:R,isPictureInPicture:h,onSourceError:B.on,onPlaybackError:p.on}}function JP(C,g){const e=g!=null&&g.cache?l.shallowReactive(g.cache):l.shallowReactive(new Map),t=(...a)=>g!=null&&g.getKey?g.getKey(...a):JSON.stringify(a),i=(a,...d)=>(e.set(a,C(...d)),e.get(a)),A=(...a)=>i(t(...a),...a),n=(...a)=>{e.delete(t(...a))},s=()=>{e.clear()},o=(...a)=>{const d=t(...a);return e.has(d)?e.get(d):i(d,...a)};return o.load=A,o.delete=n,o.clear=s,o.generateKey=t,o.cache=e,o}function xP(C={}){const g=l.ref(),I=TI(()=>typeof performance<"u"&&"memory"in performance);if(I.value){const{interval:e=1e3}=C;xo(()=>{g.value=performance.memory},e,{immediate:C.immediate,immediateCallback:C.immediateCallback})}return{isSupported:I,memory:g}}const TP={page:C=>[C.pageX,C.pageY],client:C=>[C.clientX,C.clientY],screen:C=>[C.screenX,C.screenY],movement:C=>C instanceof Touch?null:[C.movementX,C.movementY]};function vy(C={}){const{type:g="page",touch:I=!0,resetOnTouchEnds:e=!1,initialValue:t={x:0,y:0},window:i=Pg,target:A=i,scroll:n=!0,eventFilter:s}=C;let o=null,a=0,d=0;const m=l.ref(t.x),Z=l.ref(t.y),u=l.ref(null),h=typeof g=="function"?g:TP[g],G=X=>{const K=h(X);o=X,K&&([m.value,Z.value]=K,u.value="mouse"),i&&(a=i.scrollX,d=i.scrollY)},w=X=>{if(X.touches.length>0){const K=h(X.touches[0]);K&&([m.value,Z.value]=K,u.value="touch")}},B=()=>{if(!o||!i)return;const X=h(o);o instanceof MouseEvent&&X&&(m.value=X[0]+i.scrollX-a,Z.value=X[1]+i.scrollY-d)},p=()=>{m.value=t.x,Z.value=t.y},Y=s?X=>s(()=>G(X),{}):X=>G(X),N=s?X=>s(()=>w(X),{}):X=>w(X),R=s?()=>s(()=>B(),{}):()=>B();if(A){const X={passive:!0};hg(A,["mousemove","dragover"],Y,X),I&&g!=="movement"&&(hg(A,["touchstart","touchmove"],N,X),e&&hg(A,"touchend",p,X)),n&&g==="page"&&hg(i,"scroll",R,{passive:!0})}return{x:m,y:Z,sourceType:u}}function jy(C,g={}){const{handleOutside:I=!0,window:e=Pg}=g,t=g.type||"page",{x:i,y:A,sourceType:n}=vy(g),s=l.ref(C??(e==null?void 0:e.document.body)),o=l.ref(0),a=l.ref(0),d=l.ref(0),m=l.ref(0),Z=l.ref(0),u=l.ref(0),h=l.ref(!0);let G=()=>{};return e&&(G=l.watch([s,i,A],()=>{const w=KI(s);if(!w||!(w instanceof Element))return;const{left:B,top:p,width:Y,height:N}=w.getBoundingClientRect();d.value=B+(t==="page"?e.pageXOffset:0),m.value=p+(t==="page"?e.pageYOffset:0),Z.value=N,u.value=Y;const R=i.value-d.value,X=A.value-m.value;h.value=Y===0||N===0||R<0||X<0||R>Y||X>N,(I||!h.value)&&(o.value=R,a.value=X)},{immediate:!0}),hg(document,"mouseleave",()=>{h.value=!0})),{x:i,y:A,sourceType:n,elementX:o,elementY:a,elementPositionX:d,elementPositionY:m,elementHeight:Z,elementWidth:u,isOutside:h,stop:G}}function zf(C={}){const{touch:g=!0,drag:I=!0,capture:e=!1,initialValue:t=!1,window:i=Pg}=C,A=l.ref(t),n=l.ref(null);if(!i)return{pressed:A,sourceType:n};const s=d=>()=>{A.value=!0,n.value=d},o=()=>{A.value=!1,n.value=null},a=l.computed(()=>KI(C.target)||i);return hg(a,"mousedown",s("mouse"),{passive:!0,capture:e}),hg(i,"mouseleave",o,{passive:!0,capture:e}),hg(i,"mouseup",o,{passive:!0,capture:e}),I&&(hg(a,"dragstart",s("mouse"),{passive:!0,capture:e}),hg(i,"drop",o,{passive:!0,capture:e}),hg(i,"dragend",o,{passive:!0,capture:e})),g&&(hg(a,"touchstart",s("touch"),{passive:!0,capture:e}),hg(i,"touchend",o,{passive:!0,capture:e}),hg(i,"touchcancel",o,{passive:!0,capture:e})),{pressed:A,sourceType:n}}function LP(C={}){const{window:g=Pg}=C,I=g==null?void 0:g.navigator,e=TI(()=>I&&"language"in I),t=l.ref(I==null?void 0:I.language);return hg(g,"languagechange",()=>{I&&(t.value=I.language)}),{isSupported:e,language:t}}function Qy(C={}){const{window:g=Pg}=C,I=g==null?void 0:g.navigator,e=TI(()=>I&&"connection"in I),t=l.ref(!0),i=l.ref(!1),A=l.ref(void 0),n=l.ref(void 0),s=l.ref(void 0),o=l.ref(void 0),a=l.ref(void 0),d=l.ref(void 0),m=l.ref("unknown"),Z=e.value&&I.connection;function u(){I&&(t.value=I.onLine,A.value=t.value?void 0:Date.now(),n.value=t.value?Date.now():void 0,Z&&(s.value=Z.downlink,o.value=Z.downlinkMax,d.value=Z.effectiveType,a.value=Z.rtt,i.value=Z.saveData,m.value=Z.type))}return g&&(hg(g,"offline",()=>{t.value=!1,A.value=Date.now()}),hg(g,"online",()=>{t.value=!0,n.value=Date.now()})),Z&&hg(Z,"change",u,!1),u(),{isSupported:l.readonly(e),isOnline:l.readonly(t),saveData:l.readonly(i),offlineAt:l.readonly(A),onlineAt:l.readonly(n),downlink:l.readonly(s),downlinkMax:l.readonly(o),effectiveType:l.readonly(d),rtt:l.readonly(a),type:l.readonly(m)}}function Oy(C={}){const{controls:g=!1,interval:I="requestAnimationFrame"}=C,e=l.ref(new Date),t=()=>e.value=new Date,i=I==="requestAnimationFrame"?Ld(t,{immediate:!0}):xo(t,I,{immediate:!0});return g?{now:e,...i}:e}function Jf(C){const g=l.ref(),I=()=>{g.value&&URL.revokeObjectURL(g.value),g.value=void 0};return l.watch(()=>_(C),e=>{I(),e&&(g.value=URL.createObjectURL(e))},{immediate:!0}),GI(I),l.readonly(g)}function xf(C,g,I){if(typeof C=="function"||l.isReadonly(C))return l.computed(()=>Vw(_(C),_(g),_(I)));const e=l.ref(C);return l.computed({get(){return e.value=Vw(e.value,_(g),_(I))},set(t){e.value=Vw(t,_(g),_(I))}})}function Tf(C){const{total:g=Number.POSITIVE_INFINITY,pageSize:I=10,page:e=1,onPageChange:t=NI,onPageSizeChange:i=NI,onPageCountChange:A=NI}=C,n=xf(I,1,Number.POSITIVE_INFINITY),s=l.computed(()=>Math.max(1,Math.ceil(_(g)/_(n)))),o=xf(e,1,s),a=l.computed(()=>o.value===1),d=l.computed(()=>o.value===s.value);l.isRef(e)&&Ry(e,o,{direction:l.isReadonly(e)?"ltr":"both"}),l.isRef(I)&&Ry(I,n,{direction:l.isReadonly(I)?"ltr":"both"});function m(){o.value--}function Z(){o.value++}const u={currentPage:o,currentPageSize:n,pageCount:s,isFirstPage:a,isLastPage:d,prev:m,next:Z};return l.watch(o,()=>{t(l.reactive(u))}),l.watch(n,()=>{i(l.reactive(u))}),l.watch(s,()=>{A(l.reactive(u))}),u}function Lf(C={}){const{isOnline:g}=Qy(C);return g}function vf(C={}){const{window:g=Pg}=C,I=l.ref(!1),e=t=>{if(!g)return;t=t||g.event;const i=t.relatedTarget||t.toElement;I.value=!i};return g&&(hg(g,"mouseout",e,{passive:!0}),hg(g.document,"mouseleave",e,{passive:!0}),hg(g.document,"mouseenter",e,{passive:!0})),I}function jf(C={}){const{window:g=Pg}=C,I=TI(()=>g&&"screen"in g&&"orientation"in g.screen),e=I.value?g.screen.orientation:{},t=l.ref(e.type),i=l.ref(e.angle||0);return I.value&&hg(g,"orientationchange",()=>{t.value=e.type,i.value=e.angle}),{isSupported:I,orientation:t,angle:i,lockOrientation:s=>I.value&&typeof e.lock=="function"?e.lock(s):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{I.value&&typeof e.unlock=="function"&&e.unlock()}}}function vP(C,g={}){const{deviceOrientationTiltAdjust:I=G=>G,deviceOrientationRollAdjust:e=G=>G,mouseTiltAdjust:t=G=>G,mouseRollAdjust:i=G=>G,window:A=Pg}=g,n=l.reactive(Ky({window:A})),s=l.reactive(jf({window:A})),{elementX:o,elementY:a,elementWidth:d,elementHeight:m}=jy(C,{handleOutside:!1,window:A}),Z=l.computed(()=>n.isSupported&&(n.alpha!=null&&n.alpha!==0||n.gamma!=null&&n.gamma!==0)?"deviceOrientation":"mouse"),u=l.computed(()=>{if(Z.value==="deviceOrientation"){let G;switch(s.orientation){case"landscape-primary":G=n.gamma/90;break;case"landscape-secondary":G=-n.gamma/90;break;case"portrait-primary":G=-n.beta/90;break;case"portrait-secondary":G=n.beta/90;break;default:G=-n.beta/90}return e(G)}else{const G=-(a.value-m.value/2)/m.value;return i(G)}}),h=l.computed(()=>{if(Z.value==="deviceOrientation"){let G;switch(s.orientation){case"landscape-primary":G=n.beta/90;break;case"landscape-secondary":G=-n.beta/90;break;case"portrait-primary":G=n.gamma/90;break;case"portrait-secondary":G=-n.gamma/90;break;default:G=n.gamma/90}return I(G)}else{const G=(o.value-d.value/2)/d.value;return t(G)}});return{roll:u,tilt:h,source:Z}}function jP(C=Gf()){const g=l.shallowRef(),I=()=>{const e=KI(C);e&&(g.value=e.parentElement)};return ne(I),l.watch(()=>_(C),I),g}function QP(C,g){const{window:I=Pg,immediate:e=!0,...t}=C,i=TI(()=>I&&"PerformanceObserver"in I);let A;const n=()=>{A==null||A.disconnect()},s=()=>{i.value&&(n(),A=new PerformanceObserver(g),A.observe(t))};return GI(n),e&&s(),{isSupported:i,start:s,stop:n}}const Qf={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},OP=Object.keys(Qf);function Of(C={}){const{target:g=Pg}=C,I=l.ref(!1),e=l.ref(C.initialValue||{});Object.assign(e.value,Qf,e.value);const t=i=>{I.value=!0,!(C.pointerTypes&&!C.pointerTypes.includes(i.pointerType))&&(e.value=UH(i,OP,!1))};if(g){const i={passive:!0};hg(g,["pointerdown","pointermove","pointerup"],t,i),hg(g,"pointerleave",()=>I.value=!1,i)}return{...My(e),isInside:I}}function Uf(C,g={}){const{document:I=Pt}=g,e=TI(()=>I&&"pointerLockElement"in I),t=l.ref(),i=l.ref();let A;e.value&&(hg(I,"pointerlockchange",()=>{var o;const a=(o=I.pointerLockElement)!=null?o:t.value;A&&a===A&&(t.value=I.pointerLockElement,t.value||(A=i.value=null))}),hg(I,"pointerlockerror",()=>{var o;const a=(o=I.pointerLockElement)!=null?o:t.value;if(A&&a===A){const d=I.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${d} pointer lock.`)}}));async function n(o){var a;if(!e.value)throw new Error("Pointer Lock API is not supported by your browser.");if(i.value=o instanceof Event?o.currentTarget:null,A=o instanceof Event?(a=KI(C))!=null?a:i.value:KI(o),!A)throw new Error("Target element undefined.");return A.requestPointerLock(),await yr(t).toBe(A)}async function s(){return t.value?(I.exitPointerLock(),await yr(t).toBeNull(),!0):!1}return{isSupported:e,element:t,triggerElement:i,lock:n,unlock:s}}function UP(C,g={}){const I=PC(C),{threshold:e=50,onSwipe:t,onSwipeEnd:i,onSwipeStart:A,disableTextSelect:n=!1}=g,s=l.reactive({x:0,y:0}),o=(X,K)=>{s.x=X,s.y=K},a=l.reactive({x:0,y:0}),d=(X,K)=>{a.x=X,a.y=K},m=l.computed(()=>s.x-a.x),Z=l.computed(()=>s.y-a.y),{max:u,abs:h}=Math,G=l.computed(()=>u(h(m.value),h(Z.value))>=e),w=l.ref(!1),B=l.ref(!1),p=l.computed(()=>G.value?h(m.value)>h(Z.value)?m.value>0?"left":"right":Z.value>0?"up":"down":"none"),Y=X=>{var K,D,k;const z=X.buttons===0,v=X.buttons===1;return(k=(D=(K=g.pointerTypes)==null?void 0:K.includes(X.pointerType))!=null?D:z||v)!=null?k:!0},N=[hg(C,"pointerdown",X=>{if(!Y(X))return;B.value=!0;const K=X.target;K==null||K.setPointerCapture(X.pointerId);const{clientX:D,clientY:k}=X;o(D,k),d(D,k),A==null||A(X)}),hg(C,"pointermove",X=>{if(!Y(X)||!B.value)return;const{clientX:K,clientY:D}=X;d(K,D),!w.value&&G.value&&(w.value=!0),w.value&&(t==null||t(X))}),hg(C,"pointerup",X=>{Y(X)&&(w.value&&(i==null||i(X,p.value)),B.value=!1,w.value=!1)})];ne(()=>{var X,K,D,k,z,v,O,Cg;(K=(X=I.value)==null?void 0:X.style)==null||K.setProperty("touch-action","none"),n&&((k=(D=I.value)==null?void 0:D.style)==null||k.setProperty("-webkit-user-select","none"),(v=(z=I.value)==null?void 0:z.style)==null||v.setProperty("-ms-user-select","none"),(Cg=(O=I.value)==null?void 0:O.style)==null||Cg.setProperty("user-select","none"))});const R=()=>N.forEach(X=>X());return{isSwiping:l.readonly(w),direction:l.readonly(p),posStart:l.readonly(s),posEnd:l.readonly(a),distanceX:m,distanceY:Z,stop:R}}function Ef(C){const g=Ni("(prefers-color-scheme: light)",C),I=Ni("(prefers-color-scheme: dark)",C);return l.computed(()=>I.value?"dark":g.value?"light":"no-preference")}function Pf(C){const g=Ni("(prefers-contrast: more)",C),I=Ni("(prefers-contrast: less)",C),e=Ni("(prefers-contrast: custom)",C);return l.computed(()=>g.value?"more":I.value?"less":e.value?"custom":"no-preference")}function _f(C={}){const{window:g=Pg}=C;if(!g)return l.ref(["en"]);const I=g.navigator,e=l.ref(I.languages);return hg(g,"languagechange",()=>{e.value=I.languages}),e}function qf(C){const g=Ni("(prefers-reduced-motion: reduce)",C);return l.computed(()=>g.value?"reduce":"no-preference")}function EP(C,g){const I=l.shallowRef(g);return l.watch(PC(C),(e,t)=>{I.value=t},{flush:"sync"}),l.readonly(I)}const $f="--vueuse-safe-area-top",g3="--vueuse-safe-area-right",I3="--vueuse-safe-area-bottom",C3="--vueuse-safe-area-left";function PP(){const C=l.ref(""),g=l.ref(""),I=l.ref(""),e=l.ref("");if(ue){const i=Tb($f),A=Tb(g3),n=Tb(I3),s=Tb(C3);i.value="env(safe-area-inset-top, 0px)",A.value="env(safe-area-inset-right, 0px)",n.value="env(safe-area-inset-bottom, 0px)",s.value="env(safe-area-inset-left, 0px)",t(),hg("resize",pr(t))}function t(){C.value=xw($f),g.value=xw(g3),I.value=xw(I3),e.value=xw(C3)}return{top:C,right:g,bottom:I,left:e,update:t}}function xw(C){return getComputedStyle(document.documentElement).getPropertyValue(C)}function _P(C,g=NI,I={}){const{immediate:e=!0,manual:t=!1,type:i="text/javascript",async:A=!0,crossOrigin:n,referrerPolicy:s,noModule:o,defer:a,document:d=Pt,attrs:m={}}=I,Z=l.ref(null);let u=null;const h=B=>new Promise((p,Y)=>{const N=K=>(Z.value=K,p(K),K);if(!d){p(!1);return}let R=!1,X=d.querySelector(`script[src="${_(C)}"]`);X?X.hasAttribute("data-loaded")&&N(X):(X=d.createElement("script"),X.type=i,X.async=A,X.src=_(C),a&&(X.defer=a),n&&(X.crossOrigin=n),o&&(X.noModule=o),s&&(X.referrerPolicy=s),Object.entries(m).forEach(([K,D])=>X==null?void 0:X.setAttribute(K,D)),R=!0),X.addEventListener("error",K=>Y(K)),X.addEventListener("abort",K=>Y(K)),X.addEventListener("load",()=>{X.setAttribute("data-loaded","true"),g(X),N(X)}),R&&(X=d.head.appendChild(X)),B||N(X)}),G=(B=!0)=>(u||(u=h(B)),u),w=()=>{if(!d)return;u=null,Z.value&&(Z.value=null);const B=d.querySelector(`script[src="${_(C)}"]`);B&&d.head.removeChild(B)};return e&&!t&&ne(G),t||Mw(w),{scriptTag:Z,load:G,unload:w}}function e3(C){const g=window.getComputedStyle(C);if(g.overflowX==="scroll"||g.overflowY==="scroll"||g.overflowX==="auto"&&C.clientWidth<C.scrollWidth||g.overflowY==="auto"&&C.clientHeight<C.scrollHeight)return!0;{const I=C.parentNode;return!I||I.tagName==="BODY"?!1:e3(I)}}function qP(C){const g=C||window.event,I=g.target;return e3(I)?!1:g.touches.length>1?!0:(g.preventDefault&&g.preventDefault(),!1)}const Uy=new WeakMap;function $P(C,g=!1){const I=l.ref(g);let e=null,t="";l.watch(PC(C),n=>{const s=Jw(_(n));if(s){const o=s;if(Uy.get(o)||Uy.set(o,o.style.overflow),o.style.overflow!=="hidden"&&(t=o.style.overflow),o.style.overflow==="hidden")return I.value=!0;if(I.value)return o.style.overflow="hidden"}},{immediate:!0});const i=()=>{const n=Jw(_(C));!n||I.value||(zd&&(e=hg(n,"touchmove",s=>{qP(s)},{passive:!1})),n.style.overflow="hidden",I.value=!0)},A=()=>{const n=Jw(_(C));!n||!I.value||(zd&&(e==null||e()),n.style.overflow=t,Uy.delete(n),I.value=!1)};return GI(A),l.computed({get(){return I.value},set(n){n?i():A()}})}function g6(C,g,I={}){const{window:e=Pg}=I;return xb(C,g,e==null?void 0:e.sessionStorage,I)}function I6(C={},g={}){const{navigator:I=yi}=g,e=I,t=TI(()=>e&&"canShare"in e);return{isSupported:t,share:async(A={})=>{if(t.value){const n={..._(C),..._(A)};let s=!0;if(n.files&&e.canShare&&(s=e.canShare({files:n.files})),s)return e.share(n)}}}}const C6=(C,g)=>C.sort(g),Tw=(C,g)=>C-g;function e6(...C){var g,I,e,t;const[i]=C;let A=Tw,n={};C.length===2?typeof C[1]=="object"?(n=C[1],A=(g=n.compareFn)!=null?g:Tw):A=(I=C[1])!=null?I:Tw:C.length>2&&(A=(e=C[1])!=null?e:Tw,n=(t=C[2])!=null?t:{});const{dirty:s=!1,sortFn:o=C6}=n;return s?(l.watchEffect(()=>{const a=o(_(i),A);l.isRef(i)?i.value=a:i.splice(0,i.length,...a)}),i):l.computed(()=>o([..._(i)],A))}function t6(C={}){const{interimResults:g=!0,continuous:I=!0,maxAlternatives:e=1,window:t=Pg}=C,i=PC(C.lang||"en-US"),A=l.ref(!1),n=l.ref(!1),s=l.ref(""),o=l.shallowRef(void 0),a=(G=!A.value)=>{A.value=G},d=()=>{A.value=!0},m=()=>{A.value=!1},Z=t&&(t.SpeechRecognition||t.webkitSpeechRecognition),u=TI(()=>Z);let h;return u.value&&(h=new Z,h.continuous=I,h.interimResults=g,h.lang=_(i),h.maxAlternatives=e,h.onstart=()=>{n.value=!1},l.watch(i,G=>{h&&!A.value&&(h.lang=G)}),h.onresult=G=>{const w=G.results[G.resultIndex],{transcript:B}=w[0];n.value=w.isFinal,s.value=B,o.value=void 0},h.onerror=G=>{o.value=G},h.onend=()=>{A.value=!1,h.lang=_(i)},l.watch(A,()=>{A.value?h.start():h.stop()})),GI(()=>{A.value=!1}),{isSupported:u,isListening:A,isFinal:n,recognition:h,result:s,error:o,toggle:a,start:d,stop:m}}function i6(C,g={}){const{pitch:I=1,rate:e=1,volume:t=1,window:i=Pg}=g,A=i&&i.speechSynthesis,n=TI(()=>A),s=l.ref(!1),o=l.ref("init"),a=PC(C||""),d=PC(g.lang||"en-US"),m=l.shallowRef(void 0),Z=(B=!s.value)=>{s.value=B},u=B=>{B.lang=_(d),B.voice=_(g.voice)||null,B.pitch=_(I),B.rate=_(e),B.volume=t,B.onstart=()=>{s.value=!0,o.value="play"},B.onpause=()=>{s.value=!1,o.value="pause"},B.onresume=()=>{s.value=!0,o.value="play"},B.onend=()=>{s.value=!1,o.value="end"},B.onerror=p=>{m.value=p}},h=l.computed(()=>{s.value=!1,o.value="init";const B=new SpeechSynthesisUtterance(a.value);return u(B),B}),G=()=>{A.cancel(),h&&A.speak(h.value)},w=()=>{A.cancel(),s.value=!1};return n.value&&(u(h.value),l.watch(d,B=>{h.value&&!s.value&&(h.value.lang=B)}),g.voice&&l.watch(g.voice,()=>{A.cancel()}),l.watch(s,()=>{s.value?A.resume():A.pause()})),GI(()=>{s.value=!1}),{isSupported:n,isPlaying:s,status:o,utterance:h,error:m,stop:w,toggle:Z,speak:G}}function A6(C,g){const I=l.ref(C),e=l.computed(()=>Array.isArray(I.value)?I.value:Object.keys(I.value)),t=l.ref(e.value.indexOf(g??e.value[0])),i=l.computed(()=>a(t.value)),A=l.computed(()=>t.value===0),n=l.computed(()=>t.value===e.value.length-1),s=l.computed(()=>e.value[t.value+1]),o=l.computed(()=>e.value[t.value-1]);function a(N){return Array.isArray(I.value)?I.value[N]:I.value[e.value[N]]}function d(N){if(e.value.includes(N))return a(e.value.indexOf(N))}function m(N){e.value.includes(N)&&(t.value=e.value.indexOf(N))}function Z(){n.value||t.value++}function u(){A.value||t.value--}function h(N){Y(N)&&m(N)}function G(N){return e.value.indexOf(N)===t.value+1}function w(N){return e.value.indexOf(N)===t.value-1}function B(N){return e.value.indexOf(N)===t.value}function p(N){return t.value<e.value.indexOf(N)}function Y(N){return t.value>e.value.indexOf(N)}return{steps:I,stepNames:e,index:t,current:i,next:s,previous:o,isFirst:A,isLast:n,at:a,get:d,goTo:m,goToNext:Z,goToPrevious:u,goBackTo:h,isNext:G,isPrevious:w,isCurrent:B,isBefore:p,isAfter:Y}}function n6(C,g,I,e={}){var t;const{flush:i="pre",deep:A=!0,listenToStorageChanges:n=!0,writeDefaults:s=!0,mergeDefaults:o=!1,shallow:a,window:d=Pg,eventFilter:m,onError:Z=p=>{console.error(p)}}=e,u=_(g),h=uf(u),G=(a?l.shallowRef:l.ref)(g),w=(t=e.serializer)!=null?t:Dy[h];if(!I)try{I=kw("getDefaultStorageAsync",()=>{var p;return(p=Pg)==null?void 0:p.localStorage})()}catch(p){Z(p)}async function B(p){if(!(!I||p&&p.key!==C))try{const Y=p?p.newValue:await I.getItem(C);if(Y==null)G.value=u,s&&u!==null&&await I.setItem(C,await w.write(u));else if(o){const N=await w.read(Y);typeof o=="function"?G.value=o(N,u):h==="object"&&!Array.isArray(N)?G.value={...u,...N}:G.value=N}else G.value=await w.read(Y)}catch(Y){Z(Y)}}return B(),d&&n&&hg(d,"storage",p=>Promise.resolve().then(()=>B(p))),I&&Yr(G,async()=>{try{G.value==null?await I.removeItem(C):await I.setItem(C,await w.write(G.value))}catch(p){Z(p)}},{flush:i,deep:A,eventFilter:m}),G}let l6=0;function s6(C,g={}){const I=l.ref(!1),{document:e=Pt,immediate:t=!0,manual:i=!1,id:A=`vueuse_styletag_${++l6}`}=g,n=l.ref(C);let s=()=>{};const o=()=>{if(!e)return;const d=e.getElementById(A)||e.createElement("style");d.isConnected||(d.id=A,g.media&&(d.media=g.media),e.head.appendChild(d)),!I.value&&(s=l.watch(n,m=>{d.textContent=m},{immediate:!0}),I.value=!0)},a=()=>{!e||!I.value||(s(),e.head.removeChild(e.getElementById(A)),I.value=!1)};return t&&!i&&ne(o),i||GI(a),{id:A,css:n,unload:a,load:o,isLoaded:l.readonly(I)}}function o6(C,g={}){const{threshold:I=50,onSwipe:e,onSwipeEnd:t,onSwipeStart:i,passive:A=!0,window:n=Pg}=g,s=l.reactive({x:0,y:0}),o=l.reactive({x:0,y:0}),a=l.computed(()=>s.x-o.x),d=l.computed(()=>s.y-o.y),{max:m,abs:Z}=Math,u=l.computed(()=>m(Z(a.value),Z(d.value))>=I),h=l.ref(!1),G=l.computed(()=>u.value?Z(a.value)>Z(d.value)?a.value>0?"left":"right":d.value>0?"up":"down":"none"),w=D=>[D.touches[0].clientX,D.touches[0].clientY],B=(D,k)=>{s.x=D,s.y=k},p=(D,k)=>{o.x=D,o.y=k};let Y;const N=a6(n==null?void 0:n.document);A?Y=N?{passive:!0}:{capture:!1}:Y=N?{passive:!1,capture:!0}:{capture:!0};const R=D=>{h.value&&(t==null||t(D,G.value)),h.value=!1},X=[hg(C,"touchstart",D=>{if(D.touches.length!==1)return;const[k,z]=w(D);B(k,z),p(k,z),i==null||i(D)},Y),hg(C,"touchmove",D=>{if(D.touches.length!==1)return;const[k,z]=w(D);p(k,z),Y.capture&&!Y.passive&&Math.abs(a.value)>Math.abs(d.value)&&D.preventDefault(),!h.value&&u.value&&(h.value=!0),h.value&&(e==null||e(D))},Y),hg(C,["touchend","touchcancel"],R,Y)];return{isPassiveEventSupported:N,isSwiping:h,direction:G,coordsStart:s,coordsEnd:o,lengthX:a,lengthY:d,stop:()=>X.forEach(D=>D())}}function a6(C){if(!C)return!1;let g=!1;const I={get passive(){return g=!0,!1}};return C.addEventListener("x",NI,I),C.removeEventListener("x",NI),g}function d6(){const C=l.ref([]);return C.value.set=g=>{g&&C.value.push(g)},l.onBeforeUpdate(()=>{C.value.length=0}),C}function c6(C={}){const{document:g=Pt,selector:I="html",observe:e=!1,initialValue:t="ltr"}=C;function i(){var n,s;return(s=(n=g==null?void 0:g.querySelector(I))==null?void 0:n.getAttribute("dir"))!=null?s:t}const A=l.ref(i());return ne(()=>A.value=i()),e&&g&&Xr(g.querySelector(I),()=>A.value=i(),{attributes:!0}),l.computed({get(){return A.value},set(n){var s,o;A.value=n,g&&(A.value?(s=g.querySelector(I))==null||s.setAttribute("dir",A.value):(o=g.querySelector(I))==null||o.removeAttribute("dir"))}})}function m6(C){var g;const I=(g=C.rangeCount)!=null?g:0;return Array.from({length:I},(e,t)=>C.getRangeAt(t))}function r6(C={}){const{window:g=Pg}=C,I=l.ref(null),e=l.computed(()=>{var n,s;return(s=(n=I.value)==null?void 0:n.toString())!=null?s:""}),t=l.computed(()=>I.value?m6(I.value):[]),i=l.computed(()=>t.value.map(n=>n.getBoundingClientRect()));function A(){I.value=null,g&&(I.value=g.getSelection())}return g&&hg(g.document,"selectionchange",A),{text:e,rects:i,ranges:t,selection:I}}function Z6(C){var g;const I=l.ref(C==null?void 0:C.element),e=l.ref(C==null?void 0:C.input),t=(g=C==null?void 0:C.styleProp)!=null?g:"height",i=l.ref(1),A=l.ref(0);function n(){var s;if(!I.value)return;let o="";I.value.style[t]="1px",i.value=(s=I.value)==null?void 0:s.scrollHeight;const a=_(C==null?void 0:C.styleTarget);a?a.style[t]=`${i.value}px`:o=`${i.value}px`,I.value.style[t]=o}return l.watch([e,I],()=>l.nextTick(n),{immediate:!0}),l.watch(i,()=>{var s;return(s=C==null?void 0:C.onResize)==null?void 0:s.call(C)}),Kw(I,([{contentRect:s}])=>{A.value!==s.width&&(A.value=s.width,n())}),C!=null&&C.watch&&l.watch(C.watch,n,{immediate:!0,deep:!0}),{textarea:I,input:e,triggerResize:n}}function b6(C,g={}){const{throttle:I=200,trailing:e=!0}=g,t=Fb(I,e);return{...Fy(C,{...g,eventFilter:t})}}const u6=[{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"}],h6={justNow:"just now",past:C=>C.match(/\d/)?`${C} ago`:C,future:C=>C.match(/\d/)?`in ${C}`:C,month:(C,g)=>C===1?g?"last month":"next month":`${C} month${C>1?"s":""}`,year:(C,g)=>C===1?g?"last year":"next year":`${C} year${C>1?"s":""}`,day:(C,g)=>C===1?g?"yesterday":"tomorrow":`${C} day${C>1?"s":""}`,week:(C,g)=>C===1?g?"last week":"next week":`${C} week${C>1?"s":""}`,hour:C=>`${C} hour${C>1?"s":""}`,minute:C=>`${C} minute${C>1?"s":""}`,second:C=>`${C} second${C>1?"s":""}`,invalid:""};function G6(C){return C.toISOString().slice(0,10)}function t3(C,g={}){const{controls:I=!1,updateInterval:e=3e4}=g,{now:t,...i}=Oy({interval:e,controls:!0}),A=l.computed(()=>i3(new Date(_(C)),g,_(t)));return I?{timeAgo:A,...i}:A}function i3(C,g={},I=Date.now()){var e;const{max:t,messages:i=h6,fullDateFormatter:A=G6,units:n=u6,showSecond:s=!1,rounding:o="round"}=g,a=typeof o=="number"?G=>+G.toFixed(o):Math[o],d=+I-+C,m=Math.abs(d);function Z(G,w){return a(Math.abs(G)/w.value)}function u(G,w){const B=Z(G,w),p=G>0,Y=h(w.name,B,p);return h(p?"past":"future",Y,p)}function h(G,w,B){const p=i[G];return typeof p=="function"?p(w,B):p.replace("{0}",w.toString())}if(m<6e4&&!s)return i.justNow;if(typeof t=="number"&&m>t)return A(new Date(C));if(typeof t=="string"){const G=(e=n.find(w=>w.name===t))==null?void 0:e.max;if(G&&m>G)return A(new Date(C))}for(const[G,w]of n.entries()){if(Z(d,w)<=0&&n[G-1])return u(d,n[G-1]);if(m<w.max)return u(d,w)}return i.invalid}function w6(C,g,I){const{start:e}=Nr(i,g,{immediate:!1}),t=l.ref(!1);async function i(){t.value&&(await C(),e())}function A(){t.value||(t.value=!0,i())}function n(){t.value=!1}return I!=null&&I.immediate&&A(),GI(n),{isActive:t,pause:n,resume:A}}function A3(C={}){const{controls:g=!1,offset:I=0,immediate:e=!0,interval:t="requestAnimationFrame",callback:i}=C,A=l.ref(Kd()+I),n=()=>A.value=Kd()+I,s=i?()=>{n(),i(A.value)}:n,o=t==="requestAnimationFrame"?Ld(s,{immediate:e}):xo(s,t,{immediate:e});return g?{timestamp:A,...o}:A}function W6(C=null,g={}){var I,e,t;const{document:i=Pt,restoreOnUnmount:A=d=>d}=g,n=(I=i==null?void 0:i.title)!=null?I:"",s=PC((e=C??(i==null?void 0:i.title))!=null?e:null),o=C&&typeof C=="function";function a(d){if(!("titleTemplate"in g))return d;const m=g.titleTemplate||"%s";return typeof m=="function"?m(d):_(m).replace(/%s/g,d)}return l.watch(s,(d,m)=>{d!==m&&i&&(i.title=a(typeof d=="string"?d:""))},{immediate:!0}),g.observe&&!g.titleTemplate&&i&&!o&&Xr((t=i.head)==null?void 0:t.querySelector("title"),()=>{i&&i.title!==s.value&&(s.value=a(i.title))},{childList:!0}),$H(()=>{if(A){const d=A(n,s.value||"");d!=null&&i&&(i.title=d)}}),s}const B6=Object.assign({},{linear:yy},{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 p6([C,g,I,e]){const t=(a,d)=>1-3*d+3*a,i=(a,d)=>3*d-6*a,A=a=>3*a,n=(a,d,m)=>((t(d,m)*a+i(d,m))*a+A(d))*a,s=(a,d,m)=>3*t(d,m)*a*a+2*i(d,m)*a+A(d),o=a=>{let d=a;for(let m=0;m<4;++m){const Z=s(d,C,I);if(Z===0)return d;const u=n(d,C,I)-a;d-=u/Z}return d};return a=>C===g&&I===e?a:n(o(a),g,e)}function n3(C,g,I){return C+I*(g-C)}function Ey(C){return(typeof C=="number"?[C]:C)||[]}function l3(C,g,I,e={}){var t,i;const A=_(g),n=_(I),s=Ey(A),o=Ey(n),a=(t=_(e.duration))!=null?t:1e3,d=Date.now(),m=Date.now()+a,Z=typeof e.transition=="function"?e.transition:(i=_(e.transition))!=null?i:yy,u=typeof Z=="function"?Z:p6(Z);return new Promise(h=>{C.value=A;const G=()=>{var w;if((w=e.abort)!=null&&w.call(e)){h();return}const B=Date.now(),p=u((B-d)/a),Y=Ey(C.value).map((N,R)=>n3(s[R],o[R],p));Array.isArray(C.value)?C.value=Y.map((N,R)=>{var X,K;return n3((X=s[R])!=null?X:0,(K=o[R])!=null?K:0,p)}):typeof C.value=="number"&&(C.value=Y[0]),B<m?requestAnimationFrame(G):(C.value=n,h())};G()})}function Y6(C,g={}){let I=0;const e=()=>{const i=_(C);return typeof i=="number"?i:i.map(_)},t=l.ref(e());return l.watch(e,async i=>{var A,n;if(_(g.disabled))return;const s=++I;if(g.delay&&await Br(_(g.delay)),s!==I)return;const o=Array.isArray(i)?i.map(_):_(i);(A=g.onStarted)==null||A.call(g),await l3(t,t.value,o,{...g,abort:()=>{var a;return s!==I||((a=g.abort)==null?void 0:a.call(g))}}),(n=g.onFinished)==null||n.call(g)},{deep:!0}),l.watch(()=>_(g.disabled),i=>{i&&(I++,t.value=e())}),GI(()=>{I++}),l.computed(()=>_(g.disabled)?e():t.value)}function y6(C="history",g={}){const{initialValue:I={},removeNullishValues:e=!0,removeFalsyValues:t=!1,write:i=!0,window:A=Pg}=g;if(!A)return l.reactive(I);const n=l.reactive({});function s(){if(C==="history")return A.location.search||"";if(C==="hash"){const w=A.location.hash||"",B=w.indexOf("?");return B>0?w.slice(B):""}else return(A.location.hash||"").replace(/^#/,"")}function o(w){const B=w.toString();if(C==="history")return`${B?`?${B}`:""}${A.location.hash||""}`;if(C==="hash-params")return`${A.location.search||""}${B?`#${B}`:""}`;const p=A.location.hash||"#",Y=p.indexOf("?");return Y>0?`${A.location.search||""}${p.slice(0,Y)}${B?`?${B}`:""}`:`${A.location.search||""}${p}${B?`?${B}`:""}`}function a(){return new URLSearchParams(s())}function d(w){const B=new Set(Object.keys(n));for(const p of w.keys()){const Y=w.getAll(p);n[p]=Y.length>1?Y:w.get(p)||"",B.delete(p)}Array.from(B).forEach(p=>delete n[p])}const{pause:m,resume:Z}=xd(n,()=>{const w=new URLSearchParams("");Object.keys(n).forEach(B=>{const p=n[B];Array.isArray(p)?p.forEach(Y=>w.append(B,Y)):e&&p==null||t&&!p?w.delete(B):w.set(B,p)}),u(w)},{deep:!0});function u(w,B){m(),B&&d(w),A.history.replaceState(A.history.state,A.document.title,A.location.pathname+o(w)),Z()}function h(){i&&u(a(),!0)}hg(A,"popstate",h,!1),C!=="history"&&hg(A,"hashchange",h,!1);const G=a();return G.keys().next().value?d(G):Object.assign(n,I),n}function N6(C={}){var g,I;const e=l.ref((g=C.enabled)!=null?g:!1),t=l.ref((I=C.autoSwitch)!=null?I:!0),i=l.ref(C.constraints),{navigator:A=yi}=C,n=TI(()=>{var h;return(h=A==null?void 0:A.mediaDevices)==null?void 0:h.getUserMedia}),s=l.shallowRef();function o(h){switch(h){case"video":{if(i.value)return i.value.video||!1;break}case"audio":{if(i.value)return i.value.audio||!1;break}}}async function a(){if(!(!n.value||s.value))return s.value=await A.mediaDevices.getUserMedia({video:o("video"),audio:o("audio")}),s.value}function d(){var h;(h=s.value)==null||h.getTracks().forEach(G=>G.stop()),s.value=void 0}function m(){d(),e.value=!1}async function Z(){return await a(),s.value&&(e.value=!0),s.value}async function u(){return d(),await Z()}return l.watch(e,h=>{h?a():d()},{immediate:!0}),l.watch(i,()=>{t.value&&s.value&&u()},{immediate:!0}),GI(()=>{m()}),{isSupported:n,stream:s,start:Z,stop:m,restart:u,constraints:i,enabled:e,autoSwitch:t}}function s3(C,g,I,e={}){var t,i,A;const{clone:n=!1,passive:s=!1,eventName:o,deep:a=!1,defaultValue:d,shouldEmit:m}=e,Z=l.getCurrentInstance(),u=I||(Z==null?void 0:Z.emit)||((t=Z==null?void 0:Z.$emit)==null?void 0:t.bind(Z))||((A=(i=Z==null?void 0:Z.proxy)==null?void 0:i.$emit)==null?void 0:A.bind(Z==null?void 0:Z.proxy));let h=o;g||(g="modelValue"),h=h||`update:${g.toString()}`;const G=p=>n?typeof n=="function"?n(p):Jb(p):p,w=()=>TH(C[g])?G(C[g]):d,B=p=>{m?m(p)&&u(h,p):u(h,p)};if(s){const p=w(),Y=l.ref(p);let N=!1;return l.watch(()=>C[g],R=>{N||(N=!0,Y.value=G(R),l.nextTick(()=>N=!1))}),l.watch(Y,R=>{!N&&(R!==C[g]||a)&&B(R)},{deep:a}),Y}else return l.computed({get(){return w()},set(p){B(p)}})}function V6(C,g,I={}){const e={};for(const t in C)e[t]=s3(C,t,g,I);return e}function X6(C){const{pattern:g=[],interval:I=0,navigator:e=yi}=C||{},t=TI(()=>typeof e<"u"&&"vibrate"in e),i=PC(g);let A;const n=(o=i.value)=>{t.value&&e.vibrate(o)},s=()=>{t.value&&e.vibrate(0),A==null||A.pause()};return I>0&&(A=xo(n,I,{immediate:!1,immediateCallback:!1})),{isSupported:t,pattern:g,intervalControls:A,vibrate:n,stop:s}}function o3(C,g){const{containerStyle:I,wrapperProps:e,scrollTo:t,calculateRange:i,currentList:A,containerRef:n}="itemHeight"in g?H6(g,C):M6(g,C);return{list:A,scrollTo:t,containerProps:{ref:n,onScroll:()=>{i()},style:I},wrapperProps:e}}function a3(C){const g=l.ref(null),I=Jy(g),e=l.ref([]),t=l.shallowRef(C);return{state:l.ref({start:0,end:10}),source:t,currentList:e,size:I,containerRef:g}}function d3(C,g,I){return e=>{if(typeof I=="number")return Math.ceil(e/I);const{start:t=0}=C.value;let i=0,A=0;for(let n=t;n<g.value.length;n++){const s=I(n);if(i+=s,A=n,i>e)break}return A-t}}function c3(C,g){return I=>{if(typeof g=="number")return Math.floor(I/g)+1;let e=0,t=0;for(let i=0;i<C.value.length;i++){const A=g(i);if(e+=A,e>=I){t=i;break}}return t+1}}function m3(C,g,I,e,{containerRef:t,state:i,currentList:A,source:n}){return()=>{const s=t.value;if(s){const o=I(C==="vertical"?s.scrollTop:s.scrollLeft),a=e(C==="vertical"?s.clientHeight:s.clientWidth),d=o-g,m=o+a+g;i.value={start:d<0?0:d,end:m>n.value.length?n.value.length:m},A.value=n.value.slice(i.value.start,i.value.end).map((Z,u)=>({data:Z,index:u+i.value.start}))}}}function r3(C,g){return I=>typeof C=="number"?I*C:g.value.slice(0,I).reduce((t,i,A)=>t+C(A),0)}function Z3(C,g,I,e){l.watch([C.width,C.height,g,I],()=>{e()})}function b3(C,g){return l.computed(()=>typeof C=="number"?g.value.length*C:g.value.reduce((I,e,t)=>I+C(t),0))}const R6={horizontal:"scrollLeft",vertical:"scrollTop"};function u3(C,g,I,e){return t=>{e.value&&(e.value[R6[C]]=I(t),g())}}function M6(C,g){const I=a3(g),{state:e,source:t,currentList:i,size:A,containerRef:n}=I,s={overflowX:"auto"},{itemWidth:o,overscan:a=5}=C,d=d3(e,t,o),m=c3(t,o),Z=m3("horizontal",a,m,d,I),u=r3(o,t),h=l.computed(()=>u(e.value.start)),G=b3(o,t);Z3(A,g,n,Z);const w=u3("horizontal",Z,u,n),B=l.computed(()=>({style:{height:"100%",width:`${G.value-h.value}px`,marginLeft:`${h.value}px`,display:"flex"}}));return{scrollTo:w,calculateRange:Z,wrapperProps:B,containerStyle:s,currentList:i,containerRef:n}}function H6(C,g){const I=a3(g),{state:e,source:t,currentList:i,size:A,containerRef:n}=I,s={overflowY:"auto"},{itemHeight:o,overscan:a=5}=C,d=d3(e,t,o),m=c3(t,o),Z=m3("vertical",a,m,d,I),u=r3(o,t),h=l.computed(()=>u(e.value.start)),G=b3(o,t);Z3(A,g,n,Z);const w=u3("vertical",Z,u,n),B=l.computed(()=>({style:{width:"100%",height:`${G.value-h.value}px`,marginTop:`${h.value}px`}}));return{calculateRange:Z,scrollTo:w,containerStyle:s,wrapperProps:B,currentList:i,containerRef:n}}function f6(C={}){const{navigator:g=yi,document:I=Pt}=C,e=l.ref(!1),t=l.shallowRef(null),i=zy({document:I}),A=TI(()=>g&&"wakeLock"in g),n=l.computed(()=>!!t.value&&i.value==="visible");A.value&&(hg(t,"release",()=>{var d,m;e.value=(m=(d=t.value)==null?void 0:d.type)!=null?m:!1}),Af(()=>i.value==="visible"&&(I==null?void 0:I.visibilityState)==="visible"&&e.value,d=>{e.value=!1,s(d)}));async function s(d){var m;await((m=t.value)==null?void 0:m.release()),t.value=A.value?await g.wakeLock.request(d):null}async function o(d){i.value==="visible"?await s(d):e.value=d}async function a(){e.value=!1;const d=t.value;t.value=null,await(d==null?void 0:d.release())}return{sentinel:t,isSupported:A,isActive:n,request:o,forceRequest:s,release:a}}function S6(C={}){const{window:g=Pg,requestPermissions:I=!0}=C,e=C,t=TI(()=>{if(!g||!("Notification"in g))return!1;try{new Notification("")}catch{return!1}return!0}),i=l.ref(t.value&&"permission"in Notification&&Notification.permission==="granted"),A=l.ref(null),n=async()=>{if(t.value)return!i.value&&Notification.permission!=="denied"&&await Notification.requestPermission()==="granted"&&(i.value=!0),i.value},{on:s,trigger:o}=ct(),{on:a,trigger:d}=ct(),{on:m,trigger:Z}=ct(),{on:u,trigger:h}=ct(),G=async B=>{if(!t.value||!i.value)return;const p=Object.assign({},e,B);return A.value=new Notification(p.title||"",p),A.value.onclick=o,A.value.onshow=d,A.value.onerror=Z,A.value.onclose=h,A.value},w=()=>{A.value&&A.value.close(),A.value=null};if(I&&ne(n),GI(w),t.value&&g){const B=g.document;hg(B,"visibilitychange",p=>{p.preventDefault(),B.visibilityState==="visible"&&w()})}return{isSupported:t,notification:A,ensurePermissions:n,permissionGranted:i,show:G,close:w,onClick:s,onShow:a,onError:m,onClose:u}}const h3="ping";function Py(C){return C===!0?{}:C}function D6(C,g={}){const{onConnected:I,onDisconnected:e,onError:t,onMessage:i,immediate:A=!0,autoClose:n=!0,protocols:s=[]}=g,o=l.ref(null),a=l.ref("CLOSED"),d=l.ref(),m=PC(C);let Z,u,h=!1,G=0,w=[],B;const p=()=>{if(w.length&&d.value&&a.value==="OPEN"){for(const D of w)d.value.send(D);w=[]}},Y=()=>{clearTimeout(B),B=void 0},N=(D=1e3,k)=>{!ue||!d.value||(h=!0,Y(),Z==null||Z(),d.value.close(D,k),d.value=void 0)},R=(D,k=!0)=>!d.value||a.value!=="OPEN"?(k&&w.push(D),!1):(p(),d.value.send(D),!0),X=()=>{if(h||typeof m.value>"u")return;const D=new WebSocket(m.value,s);d.value=D,a.value="CONNECTING",D.onopen=()=>{a.value="OPEN",G=0,I==null||I(D),u==null||u(),p()},D.onclose=k=>{if(a.value="CLOSED",e==null||e(D,k),!h&&g.autoReconnect&&(d.value==null||D===d.value)){const{retries:z=-1,delay:v=1e3,onFailed:O}=Py(g.autoReconnect);typeof z=="number"&&(z<0||G<z)?(G+=1,setTimeout(X,v)):typeof z=="function"&&z()?setTimeout(X,v):O==null||O()}},D.onerror=k=>{t==null||t(D,k)},D.onmessage=k=>{if(g.heartbeat){Y();const{message:z=h3,responseMessage:v=z}=Py(g.heartbeat);if(k.data===v)return}o.value=k.data,i==null||i(D,k)}};if(g.heartbeat){const{message:D=h3,interval:k=1e3,pongTimeout:z=1e3}=Py(g.heartbeat),{pause:v,resume:O}=xo(()=>{R(D,!1),B==null&&(B=setTimeout(()=>{N(),h=!1},z))},k,{immediate:!1});Z=v,u=O}n&&(ue&&hg("beforeunload",()=>N()),GI(N));const K=()=>{!ue&&!xH||(N(),h=!1,G=0,X())};return A&&K(),l.watch(m,K),{data:o,status:a,close:N,send:R,open:K,ws:d}}function k6(C,g,I){const{window:e=Pg}=I??{},t=l.ref(null),i=l.shallowRef(),A=(...s)=>{i.value&&i.value.postMessage(...s)},n=function(){i.value&&i.value.terminate()};return e&&(typeof C=="string"?i.value=new Worker(C,g):typeof C=="function"?i.value=C():i.value=C,i.value.onmessage=s=>{t.value=s.data},GI(()=>{i.value&&i.value.terminate()})),{data:t,post:A,terminate:n,worker:i}}function F6(C,g){if(C.length===0&&g.length===0)return"";const I=C.map(i=>`'${i}'`).toString(),e=g.filter(i=>typeof i=="function").map(i=>{const A=i.toString();return A.trim().startsWith("function")?A:`const ${i.name} = ${A}`}).join(";"),t=`importScripts(${I});`;return`${I.trim()===""?"":t} ${e}`}function K6(C){return g=>{const I=g.data[0];return Promise.resolve(C.apply(void 0,I)).then(e=>{postMessage(["SUCCESS",e])}).catch(e=>{postMessage(["ERROR",e])})}}function z6(C,g,I){const e=`${F6(g,I)}; onmessage=(${K6})(${C})`,t=new Blob([e],{type:"text/javascript"});return URL.createObjectURL(t)}function J6(C,g={}){const{dependencies:I=[],localDependencies:e=[],timeout:t,window:i=Pg}=g,A=l.ref(),n=l.ref("PENDING"),s=l.ref({}),o=l.ref(),a=(u="PENDING")=>{A.value&&A.value._url&&i&&(A.value.terminate(),URL.revokeObjectURL(A.value._url),s.value={},A.value=void 0,i.clearTimeout(o.value),n.value=u)};a(),GI(a);const d=()=>{const u=z6(C,I,e),h=new Worker(u);return h._url=u,h.onmessage=G=>{const{resolve:w=()=>{},reject:B=()=>{}}=s.value,[p,Y]=G.data;switch(p){case"SUCCESS":w(Y),a(p);break;default:B(Y),a("ERROR");break}},h.onerror=G=>{const{reject:w=()=>{}}=s.value;G.preventDefault(),w(G),a("ERROR")},t&&(o.value=setTimeout(()=>a("TIMEOUT_EXPIRED"),t)),h},m=(...u)=>new Promise((h,G)=>{var w;s.value={resolve:h,reject:G},(w=A.value)==null||w.postMessage([[...u]]),n.value="RUNNING"});return{workerFn:(...u)=>n.value==="RUNNING"?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(A.value=d(),m(...u)),workerStatus:n,workerTerminate:a}}function G3(C={}){const{window:g=Pg}=C;if(!g)return l.ref(!1);const I=l.ref(g.document.hasFocus());return hg(g,"blur",()=>{I.value=!1}),hg(g,"focus",()=>{I.value=!0}),I}function x6(C={}){const{window:g=Pg,behavior:I="auto"}=C;if(!g)return{x:l.ref(0),y:l.ref(0)};const e=l.ref(g.scrollX),t=l.ref(g.scrollY),i=l.computed({get(){return e.value},set(n){scrollTo({left:n,behavior:I})}}),A=l.computed({get(){return t.value},set(n){scrollTo({top:n,behavior:I})}});return hg(g,"scroll",()=>{e.value=g.scrollX,t.value=g.scrollY},{capture:!1,passive:!0}),{x:i,y:A}}function w3(C={}){const{window:g=Pg,initialWidth:I=Number.POSITIVE_INFINITY,initialHeight:e=Number.POSITIVE_INFINITY,listenOrientation:t=!0,includeScrollbar:i=!0,type:A="inner"}=C,n=l.ref(I),s=l.ref(e),o=()=>{g&&(A==="outer"?(n.value=g.outerWidth,s.value=g.outerHeight):i?(n.value=g.innerWidth,s.value=g.innerHeight):(n.value=g.document.documentElement.clientWidth,s.value=g.document.documentElement.clientHeight))};if(o(),ne(o),hg("resize",o,{passive:!0}),t){const a=Ni("(orientation: portrait)");l.watch(a,()=>o())}return{width:n,height:s}}const T6=Object.freeze(Object.defineProperty({__proto__:null,DefaultMagicKeysAliasMap:Kf,StorageSerializers:Dy,TransitionPresets:B6,assert:m7,asyncComputed:nf,autoResetRef:_H,breakpointsAntDesign:zE,breakpointsBootstrapV5:kE,breakpointsElement:vE,breakpointsMasterCss:TE,breakpointsPrimeFlex:LE,breakpointsQuasar:JE,breakpointsSematic:xE,breakpointsTailwind:DE,breakpointsVuetify:KE,breakpointsVuetifyV2:cf,breakpointsVuetifyV3:FE,bypassFilter:kb,camelize:jH,clamp:Vw,cloneFnJSON:Jb,computedAsync:nf,computedEager:DH,computedInject:aE,computedWithControl:Wy,containsProp:Ny,controlledComputed:Wy,controlledRef:y7,createEventHook:ct,createFetch:ZP,createFilterWrapper:Jd,createGlobalState:A7,createInjectionState:n7,createReactiveFn:By,createReusableTemplate:dE,createSharedComposable:l7,createSingletonPromise:QH,createTemplatePromise:mE,createUnrefFn:rE,customStorageEventName:ky,debounceFilter:Xw,debouncedRef:Vy,debouncedWatch:ef,defaultDocument:Pt,defaultLocation:ZE,defaultNavigator:yi,defaultWindow:Pg,directiveHooks:KA,eagerComputed:DH,executeTransition:l3,extendRef:KH,formatDate:gf,formatTimeAgo:i3,get:s7,getLifeCycleTarget:Kb,getSSRHandler:kw,hasOwn:LH,hyphenate:G7,identity:yy,ignorableWatch:Vr,increaseWithUnit:OH,injectLocal:kH,invoke:W7,isClient:ue,isDef:TH,isDefined:o7,isIOS:zd,isObject:Wr,isWorker:xH,makeDestructurable:zH,mapGamepadToXbox360Controller:yP,noop:NI,normalizeDate:If,notNullish:Db,now:Z7,objectEntries:PH,objectOmit:EH,objectPick:UH,onClickOutside:sf,onKeyDown:uE,onKeyPressed:hE,onKeyStroke:Hw,onKeyUp:GE,onLongPress:BE,onStartTyping:yE,pausableFilter:Yy,pausableWatch:xd,promiseTimeout:Br,provideLocal:FH,rand:b7,reactify:By,reactifyObject:d7,reactiveComputed:py,reactiveOmit:c7,reactivePick:p7,refAutoReset:_H,refDebounced:Vy,refDefault:Y7,refThrottled:Xy,refWithControl:qH,resolveRef:B7,resolveUnref:a7,set:N7,setSSRHandler:_E,syncRef:Ry,syncRefs:V7,templateRef:NE,throttleFilter:Fb,throttledRef:Xy,throttledWatch:tf,timestamp:Kd,toReactive:JH,toRef:PC,toRefs:My,toValue:_,tryOnBeforeMount:X7,tryOnBeforeUnmount:$H,tryOnMounted:ne,tryOnScopeDispose:GI,tryOnUnmounted:Mw,unrefElement:KI,until:yr,useActiveElement:fy,useAnimate:VE,useArrayDifference:M7,useArrayEvery:H7,useArrayFilter:f7,useArrayFind:S7,useArrayFindIndex:D7,useArrayFindLast:F7,useArrayIncludes:z7,useArrayJoin:J7,useArrayMap:x7,useArrayReduce:T7,useArraySome:L7,useArrayUnique:Q7,useAsyncQueue:XE,useAsyncState:af,useBase64:HE,useBattery:df,useBluetooth:SE,useBreakpoints:jE,useBroadcastChannel:QE,useBrowserLocation:rf,useCached:OE,useClipboard:Zf,useClipboardItems:UE,useCloned:EE,useColorMode:hf,useConfirmDialog:$E,useCounter:O7,useCssVar:Tb,useCurrentElement:Gf,useCycleList:gP,useDark:wf,useDateFormat:_7,useDebounce:Vy,useDebounceFn:pr,useDebouncedRefHistory:tP,useDeviceMotion:pf,useDeviceOrientation:Ky,useDevicePixelRatio:Yf,useDevicesList:yf,useDisplayMedia:iP,useDocumentVisibility:zy,useDraggable:Nf,useDropZone:AP,useElementBounding:Vf,useElementByPoint:nP,useElementHover:lP,useElementSize:Jy,useElementVisibility:xy,useEventBus:sP,useEventListener:hg,useEventSource:aP,useEyeDropper:Rf,useFavicon:dP,useFetch:Mf,useFileDialog:hP,useFileSystemAccess:GP,useFocus:wP,useFocusWithin:pP,useFps:YP,useFullscreen:ff,useGamepad:NP,useGeolocation:Sf,useIdle:Df,useImage:MP,useInfiniteScroll:HP,useIntersectionObserver:Xf,useInterval:q7,useIntervalFn:xo,useKeyModifier:SP,useLastChanged:$7,useLocalStorage:DP,useMagicKeys:kP,useManualRefHistory:Bf,useMediaControls:zP,useMediaQuery:Ni,useMemoize:JP,useMemory:xP,useMounted:of,useMouse:vy,useMouseInElement:jy,useMousePressed:zf,useMutationObserver:Xr,useNavigatorLanguage:LP,useNetwork:Qy,useNow:Oy,useObjectUrl:Jf,useOffsetPagination:Tf,useOnline:Lf,usePageLeave:vf,useParallax:vP,useParentElement:jP,usePerformanceObserver:QP,usePermission:fw,usePointer:Of,usePointerLock:Uf,usePointerSwipe:UP,usePreferredColorScheme:Ef,usePreferredContrast:Pf,usePreferredDark:Fw,usePreferredLanguages:_f,usePreferredReducedMotion:qf,usePrevious:EP,useRafFn:Ld,useRefHistory:Fy,useResizeObserver:Kw,useScreenOrientation:jf,useScreenSafeArea:PP,useScriptTag:_P,useScroll:Ff,useScrollLock:$P,useSessionStorage:g6,useShare:I6,useSorted:e6,useSpeechRecognition:t6,useSpeechSynthesis:i6,useStepper:A6,useStorage:xb,useStorageAsync:n6,useStyleTag:s6,useSupported:TI,useSwipe:o6,useTemplateRefsList:d6,useTextDirection:c6,useTextSelection:r6,useTextareaAutosize:Z6,useThrottle:Xy,useThrottleFn:Rw,useThrottledRefHistory:b6,useTimeAgo:t3,useTimeout:gE,useTimeoutFn:Nr,useTimeoutPoll:w6,useTimestamp:A3,useTitle:W6,useToNumber:IE,useToString:CE,useToggle:Cf,useTransition:Y6,useUrlSearchParams:y6,useUserMedia:N6,useVModel:s3,useVModels:V6,useVibrate:X6,useVirtualList:o3,useWakeLock:f6,useWebNotification:S6,useWebSocket:D6,useWebWorker:k6,useWebWorkerFn:J6,useWindowFocus:G3,useWindowScroll:x6,useWindowSize:w3,watchArray:eE,watchAtMost:tE,watchDebounced:ef,watchDeep:iE,watchIgnorable:Vr,watchImmediate:AE,watchOnce:nE,watchPausable:xd,watchThrottled:tf,watchTriggerable:lE,watchWithFilter:Yr,whenever:Af},Symbol.toStringTag,{value:"Module"})),L6=l.defineComponent({name:"OnClickOutside",props:["as","options"],emits:["trigger"],setup(C,{slots:g,emit:I}){const e=l.ref();return sf(e,t=>{I("trigger",t)},C.options),()=>{if(g.default)return l.h(C.as||"div",{ref:e},g.default())}}}),Ht=ue?window:void 0;function xe(C){var g;const I=_(C);return(g=I==null?void 0:I.$el)!=null?g:I}function _t(...C){let g,I,e,t;if(typeof C[0]=="string"||Array.isArray(C[0])?([I,e,t]=C,g=Ht):[g,I,e,t]=C,!g)return NI;Array.isArray(I)||(I=[I]),Array.isArray(e)||(e=[e]);const i=[],A=()=>{i.forEach(a=>a()),i.length=0},n=(a,d,m,Z)=>(a.addEventListener(d,m,Z),()=>a.removeEventListener(d,m,Z)),s=l.watch(()=>[xe(g),_(t)],([a,d])=>{if(A(),!a)return;const m=Wr(d)?{...d}:d;i.push(...I.flatMap(Z=>e.map(u=>n(a,Z,u,m))))},{immediate:!0,flush:"post"}),o=()=>{s(),A()};return GI(o),o}let W3=!1;function B3(C,g,I={}){const{window:e=Ht,ignore:t=[],capture:i=!0,detectIframe:A=!1}=I;if(!e)return NI;zd&&!W3&&(W3=!0,Array.from(e.document.body.children).forEach(h=>h.addEventListener("click",NI)),e.document.documentElement.addEventListener("click",NI));let n=!0;const s=h=>_(t).some(G=>{if(typeof G=="string")return Array.from(e.document.querySelectorAll(G)).some(w=>w===h.target||h.composedPath().includes(w));{const w=xe(G);return w&&(h.target===w||h.composedPath().includes(w))}});function o(h){const G=_(h);return G&&G.$.subTree.shapeFlag===16}function a(h,G){const w=_(h),B=w.$.subTree&&w.$.subTree.children;return B==null||!Array.isArray(B)?!1:B.some(p=>p.el===G.target||G.composedPath().includes(p.el))}const d=h=>{const G=xe(C);if(h.target!=null&&!(!(G instanceof Element)&&o(C)&&a(C,h))&&!(!G||G===h.target||h.composedPath().includes(G))){if(h.detail===0&&(n=!s(h)),!n){n=!0;return}g(h)}};let m=!1;const Z=[_t(e,"click",h=>{m||(m=!0,setTimeout(()=>{m=!1},0),d(h))},{passive:!0,capture:i}),_t(e,"pointerdown",h=>{const G=xe(C);n=!s(h)&&!!(G&&!h.composedPath().includes(G))},{passive:!0}),A&&_t(e,"blur",h=>{setTimeout(()=>{var G;const w=xe(C);((G=e.document.activeElement)==null?void 0:G.tagName)==="IFRAME"&&!(w!=null&&w.contains(e.document.activeElement))&&g(h)},0)})].filter(Boolean);return()=>Z.forEach(h=>h())}const To={[KA.mounted](C,g){const I=!g.modifiers.bubble;if(typeof g.value=="function")C.__onClickOutside_stop=B3(C,g.value,{capture:I});else{const[e,t]=g.value;C.__onClickOutside_stop=B3(C,e,Object.assign({capture:I},t))}},[KA.unmounted](C){C.__onClickOutside_stop()}};function v6(C){return typeof C=="function"?C:typeof C=="string"?g=>g.key===C:Array.isArray(C)?g=>C.includes(g.key):()=>!0}function p3(...C){let g,I,e={};C.length===3?(g=C[0],I=C[1],e=C[2]):C.length===2?typeof C[1]=="object"?(g=!0,I=C[0],e=C[1]):(g=C[0],I=C[1]):(g=!0,I=C[0]);const{target:t=Ht,eventName:i="keydown",passive:A=!1,dedupe:n=!1}=e,s=v6(g);return _t(t,i,a=>{a.repeat&&_(n)||s(a)&&I(a)},A)}const j6={[KA.mounted](C,g){var I,e;const t=(e=(I=g.arg)==null?void 0:I.split(","))!=null?e:!0;if(typeof g.value=="function")p3(t,g.value,{target:C});else{const[i,A]=g.value;p3(t,i,{target:C,...A})}}},Q6=500,O6=10;function _y(C,g,I){var e,t;const i=l.computed(()=>xe(C));let A,n,s,o=!1;function a(){A&&(clearTimeout(A),A=void 0),n=void 0,s=void 0,o=!1}function d(w){var B,p,Y;const[N,R,X]=[s,n,o];if(a(),!(I!=null&&I.onMouseUp)||!R||!N||(B=I==null?void 0:I.modifiers)!=null&&B.self&&w.target!==i.value)return;(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&w.preventDefault(),(Y=I==null?void 0:I.modifiers)!=null&&Y.stop&&w.stopPropagation();const K=w.x-R.x,D=w.y-R.y,k=Math.sqrt(K*K+D*D);I.onMouseUp(w.timeStamp-N,k,X)}function m(w){var B,p,Y,N;(B=I==null?void 0:I.modifiers)!=null&&B.self&&w.target!==i.value||(a(),(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&w.preventDefault(),(Y=I==null?void 0:I.modifiers)!=null&&Y.stop&&w.stopPropagation(),n={x:w.x,y:w.y},s=w.timeStamp,A=setTimeout(()=>{o=!0,g(w)},(N=I==null?void 0:I.delay)!=null?N:Q6))}function Z(w){var B,p,Y,N;if((B=I==null?void 0:I.modifiers)!=null&&B.self&&w.target!==i.value||!n||(I==null?void 0:I.distanceThreshold)===!1)return;(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&w.preventDefault(),(Y=I==null?void 0:I.modifiers)!=null&&Y.stop&&w.stopPropagation();const R=w.x-n.x,X=w.y-n.y;Math.sqrt(R*R+X*X)>=((N=I==null?void 0:I.distanceThreshold)!=null?N:O6)&&a()}const u={capture:(e=I==null?void 0:I.modifiers)==null?void 0:e.capture,once:(t=I==null?void 0:I.modifiers)==null?void 0:t.once},h=[_t(i,"pointerdown",m,u),_t(i,"pointermove",Z,u),_t(i,["pointerup","pointerleave"],d,u)];return()=>h.forEach(w=>w())}const U6=l.defineComponent({name:"OnLongPress",props:["as","options"],emits:["trigger"],setup(C,{slots:g,emit:I}){const e=l.ref();return _y(e,t=>{I("trigger",t)},C.options),()=>{if(g.default)return l.h(C.as||"div",{ref:e},g.default())}}}),Y3={[KA.mounted](C,g){typeof g.value=="function"?_y(C,g.value,{modifiers:g.modifiers}):_y(C,...g.value)}},E6=l.defineComponent({name:"UseActiveElement",setup(C,{slots:g}){const I=l.reactive({element:fy()});return()=>{if(g.default)return g.default(I)}}}),P6=l.defineComponent({name:"UseBattery",setup(C,{slots:g}){const I=l.reactive(df(C));return()=>{if(g.default)return g.default(I)}}}),_6=l.defineComponent({name:"UseBrowserLocation",setup(C,{slots:g}){const I=l.reactive(rf());return()=>{if(g.default)return g.default(I)}}}),q6=l.defineComponent({name:"UseClipboard",props:["source","read","navigator","copiedDuring","legacy"],setup(C,{slots:g}){const I=l.reactive(Zf(C));return()=>{var e;return(e=g.default)==null?void 0:e.call(g,I)}}}),Lw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vw="__vueuse_ssr_handlers__",$6=g8();function g8(){return vw in Lw||(Lw[vw]=Lw[vw]||{}),Lw[vw]}function y3(C,g){return $6[C]||g}function I8(){const C=l.ref(!1),g=l.getCurrentInstance();return g&&l.onMounted(()=>{C.value=!0},g),C}function jw(C){const g=I8();return l.computed(()=>(g.value,!!C()))}function C8(C,g={}){const{window:I=Ht}=g,e=jw(()=>I&&"matchMedia"in I&&typeof I.matchMedia=="function");let t;const i=l.ref(!1),A=o=>{i.value=o.matches},n=()=>{t&&("removeEventListener"in t?t.removeEventListener("change",A):t.removeListener(A))},s=l.watchEffect(()=>{e.value&&(n(),t=I.matchMedia(_(C)),"addEventListener"in t?t.addEventListener("change",A):t.addListener(A),i.value=t.matches)});return GI(()=>{s(),n(),t=void 0}),i}function e8(C){return C8("(prefers-color-scheme: dark)",C)}function t8(C){return C==null?"any":C instanceof Set?"set":C instanceof Map?"map":C instanceof Date?"date":typeof C=="boolean"?"boolean":typeof C=="string"?"string":typeof C=="object"?"object":Number.isNaN(C)?"any":"number"}const i8={boolean:{read:C=>C==="true",write:C=>String(C)},object:{read:C=>JSON.parse(C),write:C=>JSON.stringify(C)},number:{read:C=>Number.parseFloat(C),write:C=>String(C)},any:{read:C=>C,write:C=>String(C)},string:{read:C=>C,write:C=>String(C)},map:{read:C=>new Map(JSON.parse(C)),write:C=>JSON.stringify(Array.from(C.entries()))},set:{read:C=>new Set(JSON.parse(C)),write:C=>JSON.stringify(Array.from(C))},date:{read:C=>new Date(C),write:C=>C.toISOString()}},N3="vueuse-storage";function A8(C,g,I,e={}){var t;const{flush:i="pre",deep:A=!0,listenToStorageChanges:n=!0,writeDefaults:s=!0,mergeDefaults:o=!1,shallow:a,window:d=Ht,eventFilter:m,onError:Z=k=>{console.error(k)},initOnMounted:u}=e,h=(a?l.shallowRef:l.ref)(typeof g=="function"?g():g);if(!I)try{I=y3("getDefaultStorage",()=>{var k;return(k=Ht)==null?void 0:k.localStorage})()}catch(k){Z(k)}if(!I)return h;const G=_(g),w=t8(G),B=(t=e.serializer)!=null?t:i8[w],{pause:p,resume:Y}=xd(h,()=>R(h.value),{flush:i,deep:A,eventFilter:m});d&&n&&ne(()=>{I instanceof Storage?_t(d,"storage",K):_t(d,N3,D),u&&K()}),u||K();function N(k,z){if(d){const v={key:C,oldValue:k,newValue:z,storageArea:I};d.dispatchEvent(I instanceof Storage?new StorageEvent("storage",v):new CustomEvent(N3,{detail:v}))}}function R(k){try{const z=I.getItem(C);if(k==null)N(z,null),I.removeItem(C);else{const v=B.write(k);z!==v&&(I.setItem(C,v),N(z,v))}}catch(z){Z(z)}}function X(k){const z=k?k.newValue:I.getItem(C);if(z==null)return s&&G!=null&&I.setItem(C,B.write(G)),G;if(!k&&o){const v=B.read(z);return typeof o=="function"?o(v,G):w==="object"&&!Array.isArray(v)?{...G,...v}:v}else return typeof z!="string"?z:B.read(z)}function K(k){if(!(k&&k.storageArea!==I)){if(k&&k.key==null){h.value=G;return}if(!(k&&k.key!==C)){p();try{(k==null?void 0:k.newValue)!==B.write(h.value)&&(h.value=X(k))}catch(z){Z(z)}finally{k?l.nextTick(Y):Y()}}}}function D(k){K(k.detail)}return h}const n8="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function l8(C={}){const{selector:g="html",attribute:I="class",initialValue:e="auto",window:t=Ht,storage:i,storageKey:A="vueuse-color-scheme",listenToStorageChanges:n=!0,storageRef:s,emitAuto:o,disableTransition:a=!0}=C,d={auto:"",light:"light",dark:"dark",...C.modes||{}},m=e8({window:t}),Z=l.computed(()=>m.value?"dark":"light"),u=s||(A==null?PC(e):A8(A,e,i,{window:t,listenToStorageChanges:n})),h=l.computed(()=>u.value==="auto"?Z.value:u.value),G=y3("updateHTMLAttrs",(Y,N,R)=>{const X=typeof Y=="string"?t==null?void 0:t.document.querySelector(Y):xe(Y);if(!X)return;const K=new Set,D=new Set;let k=null;if(N==="class"){const v=R.split(/\s/g);Object.values(d).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{v.includes(O)?K.add(O):D.add(O)})}else k={key:N,value:R};if(K.size===0&&D.size===0&&k===null)return;let z;a&&(z=t.document.createElement("style"),z.appendChild(document.createTextNode(n8)),t.document.head.appendChild(z));for(const v of K)X.classList.add(v);for(const v of D)X.classList.remove(v);k&&X.setAttribute(k.key,k.value),a&&(t.getComputedStyle(z).opacity,document.head.removeChild(z))});function w(Y){var N;G(g,I,(N=d[Y])!=null?N:Y)}function B(Y){C.onChanged?C.onChanged(Y,w):w(Y)}l.watch(h,B,{flush:"post",immediate:!0}),ne(()=>B(h.value));const p=l.computed({get(){return o?u.value:h.value},set(Y){u.value=Y}});try{return Object.assign(p,{store:u,system:Z,state:h})}catch{return p}}const s8=l.defineComponent({name:"UseColorMode",props:["selector","attribute","modes","onChanged","storageKey","storage","emitAuto"],setup(C,{slots:g}){const I=l8(C),e=l.reactive({mode:I,system:I.system,store:I.store});return()=>{if(g.default)return g.default(e)}}}),o8=l.defineComponent({name:"UseDark",props:["selector","attribute","valueDark","valueLight","onChanged","storageKey","storage"],setup(C,{slots:g}){const I=wf(C),e=l.reactive({isDark:I,toggleDark:Cf(I)});return()=>{if(g.default)return g.default(e)}}}),a8=l.defineComponent({name:"UseDeviceMotion",setup(C,{slots:g}){const I=l.reactive(pf());return()=>{if(g.default)return g.default(I)}}}),d8=l.defineComponent({name:"UseDeviceOrientation",setup(C,{slots:g}){const I=l.reactive(Ky());return()=>{if(g.default)return g.default(I)}}}),c8=l.defineComponent({name:"UseDevicePixelRatio",setup(C,{slots:g}){const I=l.reactive({pixelRatio:Yf()});return()=>{if(g.default)return g.default(I)}}}),m8=l.defineComponent({name:"UseDevicesList",props:["onUpdated","requestPermissions","constraints"],setup(C,{slots:g}){const I=l.reactive(yf(C));return()=>{if(g.default)return g.default(I)}}}),r8=l.defineComponent({name:"UseDocumentVisibility",setup(C,{slots:g}){const I=l.reactive({visibility:zy()});return()=>{if(g.default)return g.default(I)}}}),Z8=l.defineComponent({name:"UseDraggable",props:["storageKey","storageType","initialValue","exact","preventDefault","stopPropagation","pointerTypes","as","handle","axis","onStart","onMove","onEnd","disabled","buttons","containerElement"],setup(C,{slots:g}){const I=l.ref(),e=l.computed(()=>{var a;return(a=C.handle)!=null?a:I.value}),t=l.computed(()=>{var a;return(a=C.containerElement)!=null?a:void 0}),i=l.computed(()=>!!C.disabled),A=C.storageKey&&xb(C.storageKey,_(C.initialValue)||{x:0,y:0},ue?C.storageType==="session"?sessionStorage:localStorage:void 0),n=A||C.initialValue||{x:0,y:0},s=(a,d)=>{var m;(m=C.onEnd)==null||m.call(C,a,d),A&&(A.value.x=a.x,A.value.y=a.y)},o=l.reactive(Nf(I,{...C,handle:e,initialValue:n,onEnd:s,disabled:i,containerElement:t}));return()=>{if(g.default)return l.h(C.as||"div",{ref:I,style:`touch-action:none;${o.style}`},g.default(o))}}}),b8=l.defineComponent({name:"UseElementBounding",props:["box","as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(Vf(I));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}});function V3(C,g={}){const{delayEnter:I=0,delayLeave:e=0,window:t=Ht}=g,i=l.ref(!1);let A;const n=s=>{const o=s?I:e;A&&(clearTimeout(A),A=void 0),o?A=setTimeout(()=>i.value=s,o):i.value=s};return t&&(_t(C,"mouseenter",()=>n(!0),{passive:!0}),_t(C,"mouseleave",()=>n(!1),{passive:!0})),i}const u8={[KA.mounted](C,g){const I=g.value;if(typeof I=="function"){const e=V3(C);l.watch(e,t=>I(t))}else{const[e,t]=I,i=V3(C,t);l.watch(i,A=>e(A))}}},h8=l.defineComponent({name:"UseElementSize",props:["width","height","box","as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(Jy(I,{width:C.width,height:C.height},{box:C.box}));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}});function qy(C,g,I={}){const{window:e=Ht,...t}=I;let i;const A=jw(()=>e&&"ResizeObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},s=l.computed(()=>{const d=_(C);return Array.isArray(d)?d.map(m=>xe(m)):[xe(d)]}),o=l.watch(s,d=>{if(n(),A.value&&e){i=new ResizeObserver(g);for(const m of d)m&&i.observe(m,t)}},{immediate:!0,flush:"post"}),a=()=>{n(),o()};return GI(a),{isSupported:A,stop:a}}function G8(C,g={width:0,height:0},I={}){const{window:e=Ht,box:t="content-box"}=I,i=l.computed(()=>{var d,m;return(m=(d=xe(C))==null?void 0:d.namespaceURI)==null?void 0:m.includes("svg")}),A=l.ref(g.width),n=l.ref(g.height),{stop:s}=qy(C,([d])=>{const m=t==="border-box"?d.borderBoxSize:t==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(e&&i.value){const Z=xe(C);if(Z){const u=Z.getBoundingClientRect();A.value=u.width,n.value=u.height}}else if(m){const Z=Array.isArray(m)?m:[m];A.value=Z.reduce((u,{inlineSize:h})=>u+h,0),n.value=Z.reduce((u,{blockSize:h})=>u+h,0)}else A.value=d.contentRect.width,n.value=d.contentRect.height},I);ne(()=>{const d=xe(C);d&&(A.value="offsetWidth"in d?d.offsetWidth:g.width,n.value="offsetHeight"in d?d.offsetHeight:g.height)});const o=l.watch(()=>xe(C),d=>{A.value=d?g.width:0,n.value=d?g.height:0});function a(){s(),o()}return{width:A,height:n,stop:a}}const w8={[KA.mounted](C,g){var I;const e=typeof g.value=="function"?g.value:(I=g.value)==null?void 0:I[0],t=typeof g.value=="function"?[]:g.value.slice(1),{width:i,height:A}=G8(C,...t);l.watch([i,A],([n,s])=>e({width:n,height:s}))}},W8=l.defineComponent({name:"UseElementVisibility",props:["as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive({isVisible:xy(I)});return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}});function $y(C,g,I={}){const{root:e,rootMargin:t="0px",threshold:i=0,window:A=Ht,immediate:n=!0}=I,s=jw(()=>A&&"IntersectionObserver"in A),o=l.computed(()=>{const u=_(C);return(Array.isArray(u)?u:[u]).map(xe).filter(Db)});let a=NI;const d=l.ref(n),m=s.value?l.watch(()=>[o.value,xe(e),d.value],([u,h])=>{if(a(),!d.value||!u.length)return;const G=new IntersectionObserver(g,{root:xe(h),rootMargin:t,threshold:i});u.forEach(w=>w&&G.observe(w)),a=()=>{G.disconnect(),a=NI}},{immediate:n,flush:"post"}):NI,Z=()=>{a(),m(),d.value=!1};return GI(Z),{isSupported:s,isActive:d,pause(){a(),d.value=!1},resume(){d.value=!0},stop:Z}}function gN(C,g={}){const{window:I=Ht,scrollTarget:e,threshold:t=0}=g,i=l.ref(!1);return $y(C,A=>{let n=i.value,s=0;for(const o of A)o.time>=s&&(s=o.time,n=o.isIntersecting);i.value=n},{root:e,window:I,threshold:t}),i}const B8={[KA.mounted](C,g){if(typeof g.value=="function"){const I=g.value,e=gN(C);l.watch(e,t=>I(t),{immediate:!0})}else{const[I,e]=g.value,t=gN(C,e);l.watch(t,i=>I(i),{immediate:!0})}}},p8=l.defineComponent({name:"UseEyeDropper",props:{sRGBHex:String},setup(C,{slots:g}){const I=l.reactive(Rf());return()=>{if(g.default)return g.default(I)}}}),Y8=l.defineComponent({name:"UseFullscreen",props:["as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(ff(I));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}}),y8=l.defineComponent({name:"UseGeolocation",props:["enableHighAccuracy","maximumAge","timeout","navigator"],setup(C,{slots:g}){const I=l.reactive(Sf(C));return()=>{if(g.default)return g.default(I)}}}),N8=l.defineComponent({name:"UseIdle",props:["timeout","events","listenForVisibilityChange","initialState"],setup(C,{slots:g}){const I=l.reactive(Df(C.timeout,C));return()=>{if(g.default)return g.default(I)}}});function V8(C,g,I){const{immediate:e=!0,delay:t=0,onError:i=NI,onSuccess:A=NI,resetOnExecute:n=!0,shallow:s=!0,throwError:o}=I??{},a=s?l.shallowRef(g):l.ref(g),d=l.ref(!1),m=l.ref(!1),Z=l.shallowRef(void 0);async function u(w=0,...B){n&&(a.value=g),Z.value=void 0,d.value=!1,m.value=!0,w>0&&await Br(w);const p=typeof C=="function"?C(...B):C;try{const Y=await p;a.value=Y,d.value=!0,A(Y)}catch(Y){if(Z.value=Y,i(Y),o)throw Y}finally{m.value=!1}return a.value}e&&u(t);const h={state:a,isReady:d,isLoading:m,error:Z,execute:u};function G(){return new Promise((w,B)=>{yr(m).toBe(!1).then(()=>w(h)).catch(B)})}return{...h,then(w,B){return G().then(w,B)}}}async function X8(C){return new Promise((g,I)=>{const e=new Image,{src:t,srcset:i,sizes:A,class:n,loading:s,crossorigin:o,referrerPolicy:a}=C;e.src=t,i&&(e.srcset=i),A&&(e.sizes=A),n&&(e.className=n),s&&(e.loading=s),o&&(e.crossOrigin=o),a&&(e.referrerPolicy=a),e.onload=()=>g(e),e.onerror=I})}function R8(C,g={}){const I=V8(()=>X8(_(C)),void 0,{resetOnExecute:!0,...g});return l.watch(()=>_(C),()=>I.execute(g.delay),{deep:!0}),I}const M8=l.defineComponent({name:"UseImage",props:["src","srcset","sizes","as","alt","class","loading","crossorigin","referrerPolicy"],setup(C,{slots:g}){const I=l.reactive(R8(C));return()=>I.isLoading&&g.loading?g.loading(I):I.error&&g.error?g.error(I.error):g.default?g.default(I):l.h(C.as||"img",C)}});function Qw(C){return typeof Window<"u"&&C instanceof Window?C.document.documentElement:typeof Document<"u"&&C instanceof Document?C.documentElement:C}const X3=1;function IN(C,g={}){const{throttle:I=0,idle:e=200,onStop:t=NI,onScroll:i=NI,offset:A={left:0,right:0,top:0,bottom:0},eventListenerOptions:n={capture:!1,passive:!0},behavior:s="auto",window:o=Ht,onError:a=X=>{console.error(X)}}=g,d=l.ref(0),m=l.ref(0),Z=l.computed({get(){return d.value},set(X){h(X,void 0)}}),u=l.computed({get(){return m.value},set(X){h(void 0,X)}});function h(X,K){var D,k,z,v;if(!o)return;const O=_(C);if(!O)return;(z=O instanceof Document?o.document.body:O)==null||z.scrollTo({top:(D=_(K))!=null?D:u.value,left:(k=_(X))!=null?k:Z.value,behavior:_(s)});const Cg=((v=O==null?void 0:O.document)==null?void 0:v.documentElement)||(O==null?void 0:O.documentElement)||O;Z!=null&&(d.value=Cg.scrollLeft),u!=null&&(m.value=Cg.scrollTop)}const G=l.ref(!1),w=l.reactive({left:!0,right:!1,top:!0,bottom:!1}),B=l.reactive({left:!1,right:!1,top:!1,bottom:!1}),p=X=>{G.value&&(G.value=!1,B.left=!1,B.right=!1,B.top=!1,B.bottom=!1,t(X))},Y=pr(p,I+e),N=X=>{var K;if(!o)return;const D=((K=X==null?void 0:X.document)==null?void 0:K.documentElement)||(X==null?void 0:X.documentElement)||xe(X),{display:k,flexDirection:z}=getComputedStyle(D),v=D.scrollLeft;B.left=v<d.value,B.right=v>d.value;const O=Math.abs(v)<=(A.left||0),Cg=Math.abs(v)+D.clientWidth>=D.scrollWidth-(A.right||0)-X3;k==="flex"&&z==="row-reverse"?(w.left=Cg,w.right=O):(w.left=O,w.right=Cg),d.value=v;let U=D.scrollTop;X===o.document&&!U&&(U=o.document.body.scrollTop),B.top=U<m.value,B.bottom=U>m.value;const T=Math.abs(U)<=(A.top||0),q=Math.abs(U)+D.clientHeight>=D.scrollHeight-(A.bottom||0)-X3;k==="flex"&&z==="column-reverse"?(w.top=q,w.bottom=T):(w.top=T,w.bottom=q),m.value=U},R=X=>{var K;if(!o)return;const D=(K=X.target.documentElement)!=null?K:X.target;N(D),G.value=!0,Y(X),i(X)};return _t(C,"scroll",I?Rw(R,I,!0,!1):R,n),ne(()=>{try{const X=_(C);if(!X)return;N(X)}catch(X){a(X)}}),_t(C,"scrollend",p,n),{x:Z,y:u,isScrolling:G,arrivedState:w,directions:B,measure(){const X=_(C);o&&X&&N(X)}}}function R3(C,g,I={}){var e;const{direction:t="bottom",interval:i=100,canLoadMore:A=()=>!0}=I,n=l.reactive(IN(C,{...I,offset:{[t]:(e=I.distance)!=null?e:0,...I.offset}})),s=l.ref(),o=l.computed(()=>!!s.value),a=l.computed(()=>Qw(_(C))),d=gN(a);function m(){if(n.measure(),!a.value||!d.value||!A(a.value))return;const{scrollHeight:u,clientHeight:h,scrollWidth:G,clientWidth:w}=a.value,B=t==="bottom"||t==="top"?u<=h:G<=w;(n.arrivedState[t]||B)&&(s.value||(s.value=Promise.all([g(n),new Promise(p=>setTimeout(p,i))]).finally(()=>{s.value=null,l.nextTick(()=>m())})))}const Z=l.watch(()=>[n.arrivedState[t],d.value],m,{immediate:!0});return Mw(Z),{isLoading:o,reset(){l.nextTick(()=>m())}}}const H8={[KA.mounted](C,g){typeof g.value=="function"?R3(C,g.value):R3(C,...g.value)}},f8={[KA.mounted](C,g){typeof g.value=="function"?$y(C,g.value):$y(C,...g.value)}},S8=l.defineComponent({name:"UseMouse",props:["touch","resetOnTouchEnds","initialValue"],setup(C,{slots:g}){const I=l.reactive(vy(C));return()=>{if(g.default)return g.default(I)}}}),D8=l.defineComponent({name:"UseMouseElement",props:["handleOutside","as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(jy(I,C));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}}),k8=l.defineComponent({name:"UseMousePressed",props:["touch","initialValue","as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(zf({...C,target:I}));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}}),F8=l.defineComponent({name:"UseNetwork",setup(C,{slots:g}){const I=l.reactive(Qy());return()=>{if(g.default)return g.default(I)}}}),K8=l.defineComponent({name:"UseNow",props:["interval"],setup(C,{slots:g}){const I=l.reactive(Oy({...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),z8=l.defineComponent({name:"UseObjectUrl",props:["object"],setup(C,{slots:g}){const I=PC(C,"object"),e=Jf(I);return()=>{if(g.default&&e.value)return g.default(e)}}}),J8=l.defineComponent({name:"UseOffsetPagination",props:["total","page","pageSize","onPageChange","onPageSizeChange","onPageCountChange"],emits:["page-change","page-size-change","page-count-change"],setup(C,{slots:g,emit:I}){const e=l.reactive(Tf({...C,onPageChange(...t){var i;(i=C.onPageChange)==null||i.call(C,...t),I("page-change",...t)},onPageSizeChange(...t){var i;(i=C.onPageSizeChange)==null||i.call(C,...t),I("page-size-change",...t)},onPageCountChange(...t){var i;(i=C.onPageCountChange)==null||i.call(C,...t),I("page-count-change",...t)}}));return()=>{if(g.default)return g.default(e)}}}),x8=l.defineComponent({name:"UseOnline",setup(C,{slots:g}){const I=l.reactive({isOnline:Lf()});return()=>{if(g.default)return g.default(I)}}}),T8=l.defineComponent({name:"UsePageLeave",setup(C,{slots:g}){const I=l.reactive({isLeft:vf()});return()=>{if(g.default)return g.default(I)}}}),L8=l.defineComponent({name:"UsePointer",props:["pointerTypes","initialValue","target"],setup(C,{slots:g}){const I=l.ref(null),e=l.reactive(Of({...C,target:C.target==="self"?I:Ht}));return()=>{if(g.default)return g.default(e,{ref:I})}}}),v8=l.defineComponent({name:"UsePointerLock",props:["as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(Uf(I));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}}),j8=l.defineComponent({name:"UsePreferredColorScheme",setup(C,{slots:g}){const I=l.reactive({colorScheme:Ef()});return()=>{if(g.default)return g.default(I)}}}),Q8=l.defineComponent({name:"UsePreferredContrast",setup(C,{slots:g}){const I=l.reactive({contrast:Pf()});return()=>{if(g.default)return g.default(I)}}}),O8=l.defineComponent({name:"UsePreferredDark",setup(C,{slots:g}){const I=l.reactive({prefersDark:Fw()});return()=>{if(g.default)return g.default(I)}}}),U8=l.defineComponent({name:"UsePreferredLanguages",setup(C,{slots:g}){const I=l.reactive({languages:_f()});return()=>{if(g.default)return g.default(I)}}}),E8=l.defineComponent({name:"UsePreferredReducedMotion",setup(C,{slots:g}){const I=l.reactive({motion:qf()});return()=>{if(g.default)return g.default(I)}}}),P8={[KA.mounted](C,g){typeof g.value=="function"?qy(C,g.value):qy(C,...g.value)}};function _8(C,g,I={}){const{window:e=Ht,...t}=I;let i;const A=jw(()=>e&&"MutationObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},s=l.computed(()=>{const m=_(C),Z=(Array.isArray(m)?m:[m]).map(xe).filter(Db);return new Set(Z)}),o=l.watch(()=>s.value,m=>{n(),A.value&&m.size&&(i=new MutationObserver(g),m.forEach(Z=>i.observe(Z,t)))},{immediate:!0,flush:"post"}),a=()=>i==null?void 0:i.takeRecords(),d=()=>{o(),n()};return GI(d),{isSupported:A,stop:d,takeRecords:a}}function Ow(C,g,I={}){const{window:e=Ht,initialValue:t,observe:i=!1}=I,A=l.ref(t),n=l.computed(()=>{var o;return xe(g)||((o=e==null?void 0:e.document)==null?void 0:o.documentElement)});function s(){var o;const a=_(C),d=_(n);if(d&&e&&a){const m=(o=e.getComputedStyle(d).getPropertyValue(a))==null?void 0:o.trim();A.value=m||t}}return i&&_8(n,s,{attributeFilter:["style","class"],window:e}),l.watch([n,()=>_(C)],(o,a)=>{a[0]&&a[1]&&a[0].style.removeProperty(a[1]),s()},{immediate:!0}),l.watch(A,o=>{var a;const d=_(C);(a=n.value)!=null&&a.style&&d&&(o==null?n.value.style.removeProperty(d):n.value.style.setProperty(d,o))}),A}const M3="--vueuse-safe-area-top",H3="--vueuse-safe-area-right",f3="--vueuse-safe-area-bottom",S3="--vueuse-safe-area-left";function q8(){const C=l.ref(""),g=l.ref(""),I=l.ref(""),e=l.ref("");if(ue){const i=Ow(M3),A=Ow(H3),n=Ow(f3),s=Ow(S3);i.value="env(safe-area-inset-top, 0px)",A.value="env(safe-area-inset-right, 0px)",n.value="env(safe-area-inset-bottom, 0px)",s.value="env(safe-area-inset-left, 0px)",t(),_t("resize",pr(t))}function t(){C.value=Uw(M3),g.value=Uw(H3),I.value=Uw(f3),e.value=Uw(S3)}return{top:C,right:g,bottom:I,left:e,update:t}}function Uw(C){return getComputedStyle(document.documentElement).getPropertyValue(C)}const $8=l.defineComponent({name:"UseScreenSafeArea",props:{top:Boolean,right:Boolean,bottom:Boolean,left:Boolean},setup(C,{slots:g}){const{top:I,right:e,bottom:t,left:i}=q8();return()=>{if(g.default)return l.h("div",{style:{paddingTop:C.top?I.value:"",paddingRight:C.right?e.value:"",paddingBottom:C.bottom?t.value:"",paddingLeft:C.left?i.value:"",boxSizing:"border-box",maxHeight:"100vh",maxWidth:"100vw",overflow:"auto"}},g.default())}}}),g_={[KA.mounted](C,g){if(typeof g.value=="function"){const I=g.value,e=IN(C,{onScroll(){I(e)},onStop(){I(e)}})}else{const[I,e]=g.value,t=IN(C,{...e,onScroll(i){var A;(A=e.onScroll)==null||A.call(e,i),I(t)},onStop(i){var A;(A=e.onStop)==null||A.call(e,i),I(t)}})}}};function D3(C){const g=window.getComputedStyle(C);if(g.overflowX==="scroll"||g.overflowY==="scroll"||g.overflowX==="auto"&&C.clientWidth<C.scrollWidth||g.overflowY==="auto"&&C.clientHeight<C.scrollHeight)return!0;{const I=C.parentNode;return!I||I.tagName==="BODY"?!1:D3(I)}}function I_(C){const g=C||window.event,I=g.target;return D3(I)?!1:g.touches.length>1?!0:(g.preventDefault&&g.preventDefault(),!1)}const CN=new WeakMap;function C_(C,g=!1){const I=l.ref(g);let e=null,t="";l.watch(PC(C),n=>{const s=Qw(_(n));if(s){const o=s;if(CN.get(o)||CN.set(o,o.style.overflow),o.style.overflow!=="hidden"&&(t=o.style.overflow),o.style.overflow==="hidden")return I.value=!0;if(I.value)return o.style.overflow="hidden"}},{immediate:!0});const i=()=>{const n=Qw(_(C));!n||I.value||(zd&&(e=_t(n,"touchmove",s=>{I_(s)},{passive:!1})),n.style.overflow="hidden",I.value=!0)},A=()=>{const n=Qw(_(C));!n||!I.value||(zd&&(e==null||e()),n.style.overflow=t,CN.delete(n),I.value=!1)};return GI(A),l.computed({get(){return I.value},set(n){n?i():A()}})}function e_(){let C=!1;const g=l.ref(!1);return(I,e)=>{if(g.value=e.value,C)return;C=!0;const t=C_(I,e.value);l.watch(g,i=>t.value=i)}}const t_=e_(),i_=l.defineComponent({name:"UseTimeAgo",props:["time","updateInterval","max","fullDateFormatter","messages","showSecond"],setup(C,{slots:g}){const I=l.reactive(t3(()=>C.time,{...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),A_=l.defineComponent({name:"UseTimestamp",props:["immediate","interval","offset"],setup(C,{slots:g}){const I=l.reactive(A3({...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),n_=l.defineComponent({name:"UseVirtualList",props:["list","options","height"],setup(C,{slots:g,expose:I}){const{list:e}=l.toRefs(C),{list:t,containerProps:i,wrapperProps:A,scrollTo:n}=o3(e,C.options);return I({scrollTo:n}),i.style&&typeof i.style=="object"&&!Array.isArray(i.style)&&(i.style.height=C.height||"300px"),()=>l.h("div",{...i},[l.h("div",{...A.value},t.value.map(s=>l.h("div",{style:{overflow:"hidden",height:s.height}},g.default?g.default(s):"Please set content!")))])}}),l_=l.defineComponent({name:"UseWindowFocus",setup(C,{slots:g}){const I=l.reactive({focused:G3()});return()=>{if(g.default)return g.default(I)}}}),s_=l.defineComponent({name:"UseWindowSize",props:["initialWidth","initialHeight"],setup(C,{slots:g}){const I=l.reactive(w3(C));return()=>{if(g.default)return g.default(I)}}});function OI(C,g=document.documentElement){for(const[I,e]of Object.entries(C))g.style.setProperty(I,String(e))}const o_=["data-testid"],a_=["data-testid"],d_=["open","data-testid"],Mr=Qg(l.defineComponent({__name:"SelectList",props:{isOpened:{type:Boolean,default:!1},isUseAnchor:{type:Boolean,default:!1},disableOpen:{type:Boolean},headerClasses:{},optionsClasses:{},disabled:{type:Boolean},dataTestid:{default:"SelectList"}},emits:["change","focusout-options"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isOpened:!1}),i=l.useId(),A=l.ref(null),n=l.ref(null),s=l.ref(null),o=l.computed(()=>`--anchor-select-${i}`);l.watchEffect(()=>t.isOpened=I.isOpened);const a=()=>{I.disabled||I.disableOpen||(t.isOpened=!t.isOpened,e("change",t.isOpened))},d=()=>{t.isOpened=!1,e("focusout-options"),e("change",t.isOpened)},m=()=>{requestAnimationFrame(()=>{if(!n.value||!A.value||!t.isOpened)return;const u=n.value.getBoundingClientRect();if(!I.isUseAnchor)A.value.style.top=`${u.top+u.height}px`;else{OI({transform:"translateX(0) translateY(0)"},A.value);const h=A.value.getBoundingClientRect();let G=0,w=0;h.bottom>document.documentElement.scrollHeight&&(G=-h.bottom+document.documentElement.scrollHeight-10,OI({transform:`translateY(${G}px)`},A.value)),h.right>window.innerWidth&&(w=-h.right+window.innerWidth-10,OI({transform:`translateX(${w}px) translateY(${G}px)`},A.value))}})};l.watch(()=>I.isOpened,()=>{t.isOpened=I.isOpened}),l.watch(()=>t.isOpened,m);const Z=()=>{s.value&&OI({"anchor-name":`${o.value}`},s.value),A.value&&OI({"position-anchor":`${o.value}`},A.value)};return l.onMounted(()=>{I.isUseAnchor?Z():window.addEventListener("scroll",m,!0),window.addEventListener("resize",m)}),l.onUnmounted(()=>{window.removeEventListener("scroll",m,!1),window.removeEventListener("resize",m)}),(u,h)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{ref_key:"selectRef",ref:s,class:"select-list-yui-kit","data-testid":I.dataTestid},[l.renderSlot(u.$slots,"body",{closeOpenList:a},()=>[l.createElementVNode("div",{ref_key:"currentRef",ref:n,class:l.normalizeClass(["select-list-yui-kit__current",{"active-yui-kit":t.isOpened},{"disabled-yui-kit":I.disabled},I==null?void 0:I.headerClasses]),tabindex:"0",onKeyup:l.withKeys(a,["enter"]),onClick:a,"data-testid":`${I.dataTestid}-Current`},[l.renderSlot(u.$slots,"header",{},void 0,!0)],42,a_)],!0),l.withDirectives(l.createElementVNode("ul",{ref_key:"dropdownRef",ref:A,class:l.normalizeClass(["select-list-yui-kit__list",I==null?void 0:I.optionsClasses]),open:t.isOpened,"data-testid":`${I.dataTestid}-OptionsList`},[l.renderSlot(u.$slots,"options",{},void 0,!0)],10,d_),[[l.vShow,t.isOpened]])],8,o_)),[[l.unref(To),d,void 0,{bubble:!0}]])}}),[["__scopeId","data-v-5fb13e3d"]]);function Lo(C){return C!==null&&typeof C=="object"&&"key"in C}function k3(C){return C!==null&&Array.isArray(C)&&typeof C[0]=="object"&&"key"in C[0]}const eN=C=>C!==null&&typeof C=="object"&&"hint"in C,jb=C=>C!==null&&Array.isArray(C)&&eN(C[0]),c_=["onClick","data-testid"],m_={class:"options__value truncate-yui-kit"},r_={key:0,class:"options__used"},tN=Qg(l.defineComponent({__name:"Options",props:{options:{},defaultOption:{},class:{},disabled:{type:Boolean},dataTestid:{default:"Options"}},emits:["change","disabled-click"],setup(C,{emit:g}){const I=C,e=l.reactive({choosedOption:I.defaultOption??(I.options[0]||""),lengthOption:0});l.watch(()=>I.defaultOption,()=>{I.defaultOption?e.choosedOption=I.defaultOption:e.choosedOption=""},{immediate:!0});const t=g,i=l.computed(()=>({"select-list-yui-kit__item":!0,"truncate-yui-kit":!0})),A=o=>{if(Lo(o)&&o.disabled){t("disabled-click",o.key);return}e.choosedOption=o,Lo(e.choosedOption)?t("change",e.choosedOption.key):t("change",e.choosedOption)},n=o=>{let a=!1;return Lo(o)?Lo(e.choosedOption)?o.value===e.choosedOption.value&&(a=!0):((o.key==="null"||o.key===null)&&e.choosedOption===""&&(a=!0),o.value===e.choosedOption&&(a=!0)):Lo(e.choosedOption)?o===e.choosedOption.value&&(a=!0):o===e.choosedOption&&(a=!0),{active:a}},s=o=>eN(o)?o.hint:Lo(o)?o.value:o;return(o,a)=>(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.options,(d,m)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:m},[l.createElementVNode("li",{class:l.normalizeClass([i.value,n(d),{"select-list-yui-kit__item_disabled":l.unref(Lo)(d)?d.disabled:!1},I.class]),onClick:()=>A(d),"data-testid":`${I.dataTestid}-${m}`},[l.createElementVNode("div",{class:l.normalizeClass(["options__item",{options__item_disabled:l.unref(Lo)(d)?d.disabled:!1}])},[l.createElementVNode("div",m_,l.toDisplayString(s(d)),1),typeof d=="object"&&(d!=null&&d.used)?(l.openBlock(),l.createElementBlock("div",r_)):l.createCommentVNode("",!0)],2),l.renderSlot(o.$slots,"option",{inx:m},void 0,!0)],10,c_),l.renderSlot(o.$slots,"default",{},void 0,!0)],64))),128))}}),[["__scopeId","data-v-af6d9933"]]),Z_=["data-testid"],iN=Qg(l.defineComponent({__name:"Dropdown",props:{options:{},defaultOption:{},class:{},disabled:{type:Boolean,default:!1},dataTestid:{default:"Dropdown"}},emits:["change"],setup(C,{emit:g}){const I=C,e=l.reactive({choosedOption:I.defaultOption||I.options[0]||"",isOpened:!1}),t=g,i=n=>{e.isOpened=n},A=n=>{let s;if(k3(I.options)){const o=I.options.find(a=>a.key===n);e.choosedOption=(o==null?void 0:o.value)||n,s=o==null?void 0:o.key}else e.choosedOption=n;e.isOpened=!1,t("change",s||n)};return l.watch(()=>I.defaultOption,()=>{I.defaultOption&&(e.choosedOption=I.defaultOption)}),l.onMounted(()=>{k3(I.options)&&(e.choosedOption=I.defaultOption||I.options[0].value)}),(n,s)=>(l.openBlock(),l.createBlock(Mr,{onChange:i,"is-opened":e.isOpened,class:l.normalizeClass([I.class,"dropdown-yui-kit"]),disabled:I.disabled,"data-testid":I.dataTestid},{header:l.withCtx(()=>[l.createElementVNode("span",{class:"truncate-yui-kit dropdown-yui-kit__text","data-testid":`${I.dataTestid}-SelectedText`},l.toDisplayString(e.choosedOption),9,Z_),e.isOpened?(l.openBlock(),l.createBlock(Yg,{key:0,name:l.unref(rg).chevronUp,"data-testid":`${I.dataTestid}-ArrowUp`},null,8,["name","data-testid"])):l.createCommentVNode("",!0),e.isOpened?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(Yg,{key:1,name:l.unref(rg).chevronDown,"data-testid":`${I.dataTestid}-ArrowDown`},null,8,["name","data-testid"]))]),options:l.withCtx(()=>[l.createVNode(tN,{options:I.options,"default-option":I.defaultOption,onChange:A,"data-testid":`${I.dataTestid}-Options`},null,8,["options","default-option","data-testid"])]),_:1},8,["is-opened","class","disabled","data-testid"]))}}),[["__scopeId","data-v-08af0925"]]);/**
721
+ `,fill:"none",viewbox:"0 0 24 24"},uploadCloud:ZO,usersGroup:xO,warehouse:fO,warning:{name:"warning",style:"solid",fill:"none",viewbox:"0 0 17 17",path:'<path d="M8.125 0C6.51803 0 4.94714 0.476523 3.611 1.36931C2.27485 2.2621 1.23344 3.53105 0.618482 5.0157C0.00352044 6.50035 -0.157382 8.13401 0.156123 9.71011C0.469628 11.2862 1.24346 12.7339 2.37976 13.8702C3.51606 15.0065 4.9638 15.7804 6.53989 16.0939C8.11599 16.4074 9.74966 16.2465 11.2343 15.6315C12.719 15.0166 13.9879 13.9752 14.8807 12.639C15.7735 11.3029 16.25 9.73197 16.25 8.125C16.2477 5.97081 15.391 3.90551 13.8677 2.38227C12.3445 0.85903 10.2792 0.00227486 8.125 0ZM8.125 15C6.76526 15 5.43605 14.5968 4.30546 13.8414C3.17487 13.0859 2.29368 12.0122 1.77333 10.7559C1.25298 9.49971 1.11683 8.11737 1.3821 6.78375C1.64738 5.45013 2.30216 4.22513 3.26364 3.26364C4.22513 2.30215 5.45014 1.64737 6.78376 1.3821C8.11738 1.11683 9.49971 1.25298 10.756 1.77333C12.0122 2.29368 13.0859 3.17487 13.8414 4.30545C14.5968 5.43604 15 6.76525 15 8.125C14.9979 9.94773 14.2729 11.6952 12.9841 12.9841C11.6952 14.2729 9.94773 14.9979 8.125 15ZM7.5 8.75V4.375C7.5 4.20924 7.56585 4.05027 7.68306 3.93306C7.80027 3.81585 7.95924 3.75 8.125 3.75C8.29076 3.75 8.44973 3.81585 8.56695 3.93306C8.68416 4.05027 8.75 4.20924 8.75 4.375V8.75C8.75 8.91576 8.68416 9.07473 8.56695 9.19194C8.44973 9.30915 8.29076 9.375 8.125 9.375C7.95924 9.375 7.80027 9.30915 7.68306 9.19194C7.56585 9.07473 7.5 8.91576 7.5 8.75ZM9.0625 11.5625C9.0625 11.7479 9.00752 11.9292 8.9045 12.0833C8.80149 12.2375 8.65507 12.3577 8.48377 12.4286C8.31246 12.4996 8.12396 12.5182 7.94211 12.482C7.76025 12.4458 7.5932 12.3565 7.46209 12.2254C7.33098 12.0943 7.24169 11.9273 7.20552 11.7454C7.16934 11.5635 7.18791 11.375 7.25887 11.2037C7.32982 11.0324 7.44999 10.886 7.60416 10.783C7.75833 10.68 7.93958 10.625 8.125 10.625C8.37364 10.625 8.6121 10.7238 8.78792 10.8996C8.96373 11.0754 9.0625 11.3139 9.0625 11.5625Z" fill="currentColor"/>'},wastes:FO,writeDowns:KO,zoomMinus:kU,zoomPlus:FU},Symbol.toStringTag,{value:"Module"})),KU=["data-testid","fill","viewBox"],zU=["innerHTML"],JU=l.defineComponent({__name:"Icon",props:{height:{},width:{},name:{},color:{},dataTestid:{default:"Icon"}},setup(C){const g=C,I=l.computed(()=>({color:g.color,width:`${g.width}px`,height:`${g.height}px`})),e=i=>i.replace(/-./g,A=>A[1].toUpperCase()),t=l.computed(()=>hy[e(g.name)]);return(i,A)=>{var n,s,o;return l.openBlock(),l.createElementBlock("svg",{class:"icon-yui-kit","data-testid":g.dataTestid,style:l.normalizeStyle(I.value),fill:(n=l.unref(hy)[e(g.name)])==null?void 0:n.fill,viewBox:((s=l.unref(hy)[e(g.name)])==null?void 0:s.viewbox)||"0 0 24 24"},[l.createElementVNode("g",{innerHTML:(o=t.value)==null?void 0:o.path},null,8,zU)],12,KU)}}}),Qg=(C,g)=>{const I=C.__vccOpts||C;for(const[e,t]of g)I[e]=t;return I},Yg=Qg(JU,[["__scopeId","data-v-938d45fe"]]),xU=["data-testid"],TU=["data-testid"],LU=l.defineComponent({__name:"Badges",props:{text:{},type:{default:UI.default},choosed:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestid:{default:"Badges"}},emits:["choose","remove"],setup(C,{expose:g,emit:I}){const e=C,t=I,i=l.reactive({choosed:e.choosed}),A=l.ref(null),n=()=>!!(A.value&&A.value.scrollWidth>A.value.clientWidth),s=l.ref(n()),o=l.computed(()=>({"base-yui-kit":!0,"default-yui-kit":e.type===UI.default,"blue-yui-kit":e.type===UI.blue,"light-blue-yui-kit":e.type===UI.lightBlue,"contrast-blue-yui-kit":e.type===UI.contrastBlue,"green-yui-kit":e.type===UI.green,"orange-yui-kit":e.type===UI.orange,"red-yui-kit":e.type===UI.red,"pink-yui-kit":e.type===UI.pink,"violet-yui-kit":e.type===UI.violet,"yellow-yui-kit":e.type===UI.yellow,"choosed-yui-kit":e.choosed||i.choosed,"disabled-yui-kit":e.type===UI.disabled})),a=()=>{t("choose",i.choosed,e.text),e.disabled||(i.choosed=!i.choosed)},d=()=>{t("remove",e.text)},m=new ResizeObserver(()=>{s.value=n()});return g({isSpanOverflow:s}),l.onMounted(()=>{A.value&&m.observe(A.value)}),(Z,u)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(o.value),onClick:a,"data-testid":e.dataTestid},[l.createElementVNode("span",{ref_key:"spanRef",ref:A,class:"badges-text","data-testid":`${e.dataTestid}-BadgesText`},l.toDisplayString(e.text),9,TU),l.createVNode(Yg,{class:"close-icon",width:10,height:10,"data-testid":`${e.dataTestid}-Icon`,name:l.unref(rg).closeTag,onClick:d},null,8,["data-testid","name"])],10,xU))}}),Mt=Qg(LU,[["__scopeId","data-v-85bcc1bf"]]),vU=["data-testid"],jU=["data-testid"],QU=["data-testid"],OU=["data-testid"],UU=["data-testid"],EU=["data-testid"],PU=["title","onClick","data-testid"],_U=["data-testid"],qU=["onClick","data-testid"],$U=["data-testid"],Gy=25,wy=Qg(l.defineComponent({__name:"BreadCrumbs",props:{items:{},dataTestid:{default:"BreadCrumbs"}},emits:["click"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({items:[],crumbs:l.computed(()=>{const d=I.items.length<4?I.items.length-1:3;let m=[I.items[0],...I.items.slice(-d)];return I.items.length===1&&(m=[I.items[0]]),m.map(Z=>(Z.isSub=!1,Z))}),subCrumbs:l.computed(()=>I.items.slice(1,-3).map(d=>(d.isSub=!0,d))),getClassesLink:l.computed(()=>(d,m=!1)=>({"bread-crumbs-yui-kit__link":!0,"disabled-yui-kit":!d.path,active:m})),getClassesSpan:l.computed(()=>d=>({"checked-yui-kit":d===t.crumbs.length-1})),fullTitle:l.computed(()=>d=>d.title.length>Gy),isShowList:!1}),i=l.computed(()=>({crumbs:{"bread-crumbs-yui-kit__item":!0},subcrumbs:{"bread-subcrumbs-yui-kit__item":!0}})),A=l.computed(()=>({crumbs:{"bread-subcrumbs-yui-kit":!0,"scroll-yui-kit":!0,"active-yui-kit":t.isShowList}})),n=(d,m)=>{m!==t.items.length-1&&(d.isSub&&s(),I.items.forEach(({path:Z},u)=>{Z===d.path&&e("click",{title:d.title,path:d.path,inx:u+1})}))},s=()=>t.isShowList=!t.isShowList,o=d=>d.title.length>Gy?d.title.slice(0,Gy).trim()+"...":d.title,a=d=>t.items.length>=5&&d===1;return l.onMounted(()=>t.items=t.crumbs.concat(t.subCrumbs)),(d,m)=>(l.openBlock(),l.createElementBlock("ul",{class:"bread-crumbs-yui-kit","data-testid":I.dataTestid},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.items,(Z,u)=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(i.value.crumbs),key:Z.path,"data-testid":`${I.dataTestid}-Crumbs${u}`},[a(u)?(l.openBlock(),l.createElementBlock("div",{key:0,"data-testid":`${I.dataTestid}-ShowSubList${u}`},[l.createElementVNode("span",{class:"bread-crumbs-yui-kit--closed",onClick:s,"data-testid":`${I.dataTestid}-Closed${u}`},"...",8,OU),l.createElementVNode("ul",{class:l.normalizeClass(A.value.crumbs),"data-testid":`${I.dataTestid}-Crumbs${u}`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.subCrumbs,(h,G)=>(l.openBlock(),l.createElementBlock("li",{key:h.path,class:l.normalizeClass(i.value.subcrumbs),"data-testid":`${I.dataTestid}-SubCrumbs${G}`},[l.createElementVNode("span",{title:h.title,onClick:w=>n(h,G),class:l.normalizeClass({"disabled-yui-kit":!h.path}),"data-testid":`${I.dataTestid}-SubCrumbs-Title${G}`},l.toDisplayString(o(h)),11,PU)],10,EU))),128))],10,UU)],8,QU)):l.createCommentVNode("",!0),Z.isSub?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(t.getClassesLink(Z,u===t.crumbs.length-1)),"data-testid":`${I.dataTestid}-Classes${u}`},[l.createElementVNode("span",{class:l.normalizeClass(t.getClassesSpan(u)),onClick:h=>n(Z,u),"data-testid":`${I.dataTestid}-Checked${u}`},[l.createTextVNode(l.toDisplayString(u!==t.crumbs.length-1?o(Z):Z.title),1),t.fullTitle(Z)&&u!==t.crumbs.length-1?(l.openBlock(),l.createElementBlock("span",{key:0,"data-testid":`${I.dataTestid}-FullName`,class:"fullName-yui-kit"},l.toDisplayString(Z.title),9,$U)):l.createCommentVNode("",!0)],10,qU),u!==t.crumbs.length-1?(l.openBlock(),l.createBlock(Yg,{key:0,name:l.unref(rg).rightSmall,"data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"])):l.createCommentVNode("",!0)],10,_U))],10,jU))),128))],8,vU))}}),[["__scopeId","data-v-4ae0dc04"]]);var yI=(C=>(C.small="small",C.medium="medium",C.large="large",C.little="little",C))(yI||{}),II=(C=>(C.primary="primary",C.outline="outline",C.ghost="ghost",C.secondary="secondary",C.reject="reject",C.minor="minor",C))(II||{});const g7=["disabled","data-testid"],I7=["data-testid"],C7=["data-testid"],e7=l.defineComponent({__name:"Button",props:{disabled:{type:Boolean,default:!1},size:{default:yI.medium},type:{default:II.primary},pill:{type:Boolean,default:!1},backgroundColor:{},color:{default:""},dataTestid:{default:"Button"}},emits:["click"],setup(C,{emit:g}){const I=C,e=g,t=l.computed(()=>({"button-yui-kit":!0,[I.size]:!0,"disabled-yui-kit":I.disabled,"pill-yui-kit":I.pill,"primary-yui-kit":I.type===II.primary,"secondary-yui-kit":I.type===II.secondary,"outline-yui-kit":I.type===II.outline,"reject-yui-kit":I.type===II.reject,"ghost-yui-kit":I.type===II.ghost,"minor-yui-kit":I.type===II.minor})),i=l.computed(()=>({backgroundColor:I.backgroundColor})),A=l.computed(()=>({color:I.color==="primary"||I.color==="secondary"?"black":I.color})),n=s=>e("click",s);return(s,o)=>(l.openBlock(),l.createElementBlock("button",{class:l.normalizeClass(t.value),disabled:I.disabled,tabindex:"0",style:l.normalizeStyle(i.value),"data-testid":I.dataTestid,onClick:n,onKeyup:l.withKeys(n,["enter"])},[s.$slots["left-icon"]?(l.openBlock(),l.createElementBlock("span",{key:0,style:l.normalizeStyle(A.value),"data-testid":`${I.dataTestid}-LeftIcon`},[l.renderSlot(s.$slots,"left-icon",{},void 0,!0)],12,I7)):l.createCommentVNode("",!0),l.renderSlot(s.$slots,"default",{},void 0,!0),s.$slots["right-icon"]?(l.openBlock(),l.createElementBlock("span",{key:1,style:l.normalizeStyle(A.value),"data-testid":`${I.dataTestid}-RightIcon`},[l.renderSlot(s.$slots,"right-icon",{},void 0,!0)],12,C7)):l.createCommentVNode("",!0)],46,g7))}}),nI=Qg(e7,[["__scopeId","data-v-4d218813"]]),t7=["data-testid"],i7=["data-testid","onClick"],Nw=Qg(l.defineComponent({__name:"Switch",props:{items:{},defaultValue:{},isIcons:{type:Boolean},disabled:{type:Boolean},theme:{default:"default"},dataTestid:{default:"Switch"}},emits:["change"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({activeIndex:0}),i=l.computed(()=>[{"switch-yui-kit-list_default":I.theme==="default","switch-yui-kit-list_contrast":I.theme==="contrast","switch-yui-kit-list_disabled":I.disabled}]),A=a=>({"switch-yui-kit-item":!0,"switch-yui-kit-active":t.activeIndex===a,"switch-yui-kit-active_disabled":t.activeIndex===a&&I.disabled,"switch-yui-kit-item_disabled":I.disabled}),n=a=>typeof a=="string"?a:a.label,s=a=>typeof a=="string"?a:a.value,o=a=>{t.activeIndex!==a&&(t.activeIndex=a,e("change",{index:a,value:s(I.items[a])}))};return l.watch(()=>I.defaultValue,()=>{t.activeIndex=I.defaultValue?I.items.findIndex(a=>s(a)===I.defaultValue)??0:0}),l.onMounted(()=>{if(I.defaultValue){const a=I.items.findIndex(d=>s(d)===I.defaultValue);a!==-1&&(t.activeIndex=a)}}),(a,d)=>(l.openBlock(),l.createElementBlock("ul",{class:l.normalizeClass(["switch-yui-kit-list",i.value]),"data-testid":I.dataTestid},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.items,(m,Z)=>(l.openBlock(),l.createElementBlock("li",{key:Z,class:l.normalizeClass(A(Z)),"data-testid":`${I.dataTestid}-Item${Z}`,onClick:u=>o(Z)},[I.isIcons?(l.openBlock(),l.createBlock(Yg,{key:0,name:m,"data-testid":`${I.dataTestid}-Item-Icon${Z}`},null,8,["name","data-testid"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[m.icon?(l.openBlock(),l.createBlock(Yg,{key:0,class:"switch-yui-kit-item-icon",name:m.icon,"data-testid":`${I.dataTestid}-Item-Icon${Z}`},null,8,["name","data-testid"])):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(n(m)),1)],64))],10,i7))),128))],10,t7))}}),[["__scopeId","data-v-7ae7113b"]]);function DH(C,g){var I;const e=l.shallowRef();return l.watchEffect(()=>{e.value=C()},{...g,flush:(I=g==null?void 0:g.flush)!=null?I:"sync"}),l.readonly(e)}function Wy(C,g){let I,e,t;const i=l.ref(!0),A=()=>{i.value=!0,t()};l.watch(C,A,{flush:"sync"});const n=typeof g=="function"?g:g.get,s=typeof g=="function"?void 0:g.set,o=l.customRef((a,d)=>(e=a,t=d,{get(){return i.value&&(I=n(I),i.value=!1),e(),I},set(m){s==null||s(m)}}));return Object.isExtensible(o)&&(o.trigger=A),o}function GI(C){return l.getCurrentScope()?(l.onScopeDispose(C),!0):!1}function ct(){const C=new Set,g=t=>{C.delete(t)};return{on:t=>{C.add(t);const i=()=>g(t);return GI(i),{off:i}},off:g,trigger:(...t)=>Promise.all(Array.from(C).map(i=>i(...t)))}}function A7(C){let g=!1,I;const e=l.effectScope(!0);return(...t)=>(g||(I=e.run(()=>C(...t)),g=!0),I)}const wr=new WeakMap,kH=(...C)=>{var g;const I=C[0],e=(g=l.getCurrentInstance())==null?void 0:g.proxy;if(e==null)throw new Error("injectLocal must be called in setup");return wr.has(e)&&I in wr.get(e)?wr.get(e)[I]:l.inject(...C)},FH=(C,g)=>{var I;const e=(I=l.getCurrentInstance())==null?void 0:I.proxy;if(e==null)throw new Error("provideLocal must be called in setup");wr.has(e)||wr.set(e,Object.create(null));const t=wr.get(e);t[C]=g,l.provide(C,g)};function n7(C,g){const I=(g==null?void 0:g.injectionKey)||Symbol(C.name||"InjectionState"),e=g==null?void 0:g.defaultValue;return[(...A)=>{const n=C(...A);return FH(I,n),n},()=>kH(I,e)]}function l7(C){let g=0,I,e;const t=()=>{g-=1,e&&g<=0&&(e.stop(),I=void 0,e=void 0)};return(...i)=>(g+=1,e||(e=l.effectScope(!0),I=e.run(()=>C(...i))),GI(t),I)}function KH(C,g,{enumerable:I=!1,unwrap:e=!0}={}){for(const[t,i]of Object.entries(g))t!=="value"&&(l.isRef(i)&&e?Object.defineProperty(C,t,{get(){return i.value},set(A){i.value=A},enumerable:I}):Object.defineProperty(C,t,{value:i,enumerable:I}));return C}function s7(C,g){return g==null?l.unref(C):l.unref(C)[g]}function o7(C){return l.unref(C)!=null}function zH(C,g){if(typeof Symbol<"u"){const I={...C};return Object.defineProperty(I,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:g[e++],done:e>g.length})}}}),I}else return Object.assign([...g],C)}function _(C){return typeof C=="function"?C():l.unref(C)}const a7=_;function By(C,g){const I=(g==null?void 0:g.computedGetter)===!1?l.unref:_;return function(...e){return l.computed(()=>C.apply(this,e.map(t=>I(t))))}}function d7(C,g={}){let I=[],e;if(Array.isArray(g))I=g;else{e=g;const{includeOwnProperties:t=!0}=g;I.push(...Object.keys(C)),t&&I.push(...Object.getOwnPropertyNames(C))}return Object.fromEntries(I.map(t=>{const i=C[t];return[t,typeof i=="function"?By(i.bind(C),e):i]}))}function JH(C){if(!l.isRef(C))return l.reactive(C);const g=new Proxy({},{get(I,e,t){return l.unref(Reflect.get(C.value,e,t))},set(I,e,t){return l.isRef(C.value[e])&&!l.isRef(t)?C.value[e].value=t:C.value[e]=t,!0},deleteProperty(I,e){return Reflect.deleteProperty(C.value,e)},has(I,e){return Reflect.has(C.value,e)},ownKeys(){return Object.keys(C.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return l.reactive(g)}function py(C){return JH(l.computed(C))}function c7(C,...g){const I=g.flat(),e=I[0];return py(()=>Object.fromEntries(typeof e=="function"?Object.entries(l.toRefs(C)).filter(([t,i])=>!e(_(i),t)):Object.entries(l.toRefs(C)).filter(t=>!I.includes(t[0]))))}const KA={mounted:"mounted",updated:"updated",unmounted:"unmounted"},ue=typeof window<"u"&&typeof document<"u",xH=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,TH=C=>typeof C<"u",Db=C=>C!=null,m7=(C,...g)=>{C||console.warn(...g)},r7=Object.prototype.toString,Wr=C=>r7.call(C)==="[object Object]",Z7=()=>Date.now(),Kd=()=>+Date.now(),Vw=(C,g,I)=>Math.min(I,Math.max(g,C)),NI=()=>{},b7=(C,g)=>(C=Math.ceil(C),g=Math.floor(g),Math.floor(Math.random()*(g-C+1))+C),LH=(C,g)=>Object.prototype.hasOwnProperty.call(C,g),zd=u7();function u7(){var C,g;return ue&&((C=window==null?void 0:window.navigator)==null?void 0:C.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((g=window==null?void 0:window.navigator)==null?void 0:g.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Jd(C,g){function I(...e){return new Promise((t,i)=>{Promise.resolve(C(()=>g.apply(this,e),{fn:g,thisArg:this,args:e})).then(t).catch(i)})}return I}const kb=C=>C();function Xw(C,g={}){let I,e,t=NI;const i=n=>{clearTimeout(n),t(),t=NI};return n=>{const s=_(C),o=_(g.maxWait);return I&&i(I),s<=0||o!==void 0&&o<=0?(e&&(i(e),e=null),Promise.resolve(n())):new Promise((a,d)=>{t=g.rejectOnCancel?d:a,o&&!e&&(e=setTimeout(()=>{I&&i(I),e=null,a(n())},o)),I=setTimeout(()=>{e&&i(e),e=null,a(n())},s)})}}function Fb(...C){let g=0,I,e=!0,t=NI,i,A,n,s,o;!l.isRef(C[0])&&typeof C[0]=="object"?{delay:A,trailing:n=!0,leading:s=!0,rejectOnCancel:o=!1}=C[0]:[A,n=!0,s=!0,o=!1]=C;const a=()=>{I&&(clearTimeout(I),I=void 0,t(),t=NI)};return m=>{const Z=_(A),u=Date.now()-g,h=()=>i=m();return a(),Z<=0?(g=Date.now(),h()):(u>Z&&(s||!e)?(g=Date.now(),h()):n&&(i=new Promise((G,w)=>{t=o?w:G,I=setTimeout(()=>{g=Date.now(),e=!0,G(h()),a()},Math.max(0,Z-u))})),!s&&!I&&(I=setTimeout(()=>e=!0,Z)),e=!1,i)}}function Yy(C=kb){const g=l.ref(!0);function I(){g.value=!1}function e(){g.value=!0}const t=(...i)=>{g.value&&C(...i)};return{isActive:l.readonly(g),pause:I,resume:e,eventFilter:t}}function vH(C){const g=Object.create(null);return I=>g[I]||(g[I]=C(I))}const h7=/\B([A-Z])/g,G7=vH(C=>C.replace(h7,"-$1").toLowerCase()),w7=/-(\w)/g,jH=vH(C=>C.replace(w7,(g,I)=>I?I.toUpperCase():""));function Br(C,g=!1,I="Timeout"){return new Promise((e,t)=>{setTimeout(g?()=>t(I):e,C)})}function yy(C){return C}function QH(C){let g;function I(){return g||(g=C()),g}return I.reset=async()=>{const e=g;g=void 0,e&&await e},I}function W7(C){return C()}function Ny(C,...g){return g.some(I=>I in C)}function OH(C,g){var I;if(typeof C=="number")return C+g;const e=((I=C.match(/^-?\d+\.?\d*/))==null?void 0:I[0])||"",t=C.slice(e.length),i=Number.parseFloat(e)+g;return Number.isNaN(i)?C:i+t}function UH(C,g,I=!1){return g.reduce((e,t)=>(t in C&&(!I||C[t]!==void 0)&&(e[t]=C[t]),e),{})}function EH(C,g,I=!1){return Object.fromEntries(Object.entries(C).filter(([e,t])=>(!I||t!==void 0)&&!g.includes(e)))}function PH(C){return Object.entries(C)}function Kb(C){return C||l.getCurrentInstance()}function PC(...C){if(C.length!==1)return l.toRef(...C);const g=C[0];return typeof g=="function"?l.readonly(l.customRef(()=>({get:g,set:NI}))):l.ref(g)}const B7=PC;function p7(C,...g){const I=g.flat(),e=I[0];return py(()=>Object.fromEntries(typeof e=="function"?Object.entries(l.toRefs(C)).filter(([t,i])=>e(_(i),t)):I.map(t=>[t,PC(C,t)])))}function _H(C,g=1e4){return l.customRef((I,e)=>{let t=_(C),i;const A=()=>setTimeout(()=>{t=_(C),e()},_(g));return GI(()=>{clearTimeout(i)}),{get(){return I(),t},set(n){t=n,e(),clearTimeout(i),i=A()}}})}function pr(C,g=200,I={}){return Jd(Xw(g,I),C)}function Vy(C,g=200,I={}){const e=l.ref(C.value),t=pr(()=>{e.value=C.value},g,I);return l.watch(C,()=>t()),e}function Y7(C,g){return l.computed({get(){var I;return(I=C.value)!=null?I:g},set(I){C.value=I}})}function Rw(C,g=200,I=!1,e=!0,t=!1){return Jd(Fb(g,I,e,t),C)}function Xy(C,g=200,I=!0,e=!0){if(g<=0)return C;const t=l.ref(C.value),i=Rw(()=>{t.value=C.value},g,I,e);return l.watch(C,()=>i()),t}function qH(C,g={}){let I=C,e,t;const i=l.customRef((m,Z)=>(e=m,t=Z,{get(){return A()},set(u){n(u)}}));function A(m=!0){return m&&e(),I}function n(m,Z=!0){var u,h;if(m===I)return;const G=I;((u=g.onBeforeChange)==null?void 0:u.call(g,m,G))!==!1&&(I=m,(h=g.onChanged)==null||h.call(g,m,G),Z&&t())}return KH(i,{get:A,set:n,untrackedGet:()=>A(!1),silentSet:m=>n(m,!1),peek:()=>A(!1),lay:m=>n(m,!1)},{enumerable:!0})}const y7=qH;function N7(...C){if(C.length===2){const[g,I]=C;g.value=I}if(C.length===3){const[g,I,e]=C;g[I]=e}}function Yr(C,g,I={}){const{eventFilter:e=kb,...t}=I;return l.watch(C,Jd(e,g),t)}function xd(C,g,I={}){const{eventFilter:e,...t}=I,{eventFilter:i,pause:A,resume:n,isActive:s}=Yy(e);return{stop:Yr(C,g,{...t,eventFilter:i}),pause:A,resume:n,isActive:s}}function Ry(C,g,...[I]){const{flush:e="sync",deep:t=!1,immediate:i=!0,direction:A="both",transform:n={}}=I||{},s=[],o="ltr"in n&&n.ltr||(m=>m),a="rtl"in n&&n.rtl||(m=>m);return(A==="both"||A==="ltr")&&s.push(xd(C,m=>{s.forEach(Z=>Z.pause()),g.value=o(m),s.forEach(Z=>Z.resume())},{flush:e,deep:t,immediate:i})),(A==="both"||A==="rtl")&&s.push(xd(g,m=>{s.forEach(Z=>Z.pause()),C.value=a(m),s.forEach(Z=>Z.resume())},{flush:e,deep:t,immediate:i})),()=>{s.forEach(m=>m.stop())}}function V7(C,g,I={}){const{flush:e="sync",deep:t=!1,immediate:i=!0}=I;return Array.isArray(g)||(g=[g]),l.watch(C,A=>g.forEach(n=>n.value=A),{flush:e,deep:t,immediate:i})}function My(C,g={}){if(!l.isRef(C))return l.toRefs(C);const I=Array.isArray(C.value)?Array.from({length:C.value.length}):{};for(const e in C.value)I[e]=l.customRef(()=>({get(){return C.value[e]},set(t){var i;if((i=_(g.replaceRef))!=null?i:!0)if(Array.isArray(C.value)){const n=[...C.value];n[e]=t,C.value=n}else{const n={...C.value,[e]:t};Object.setPrototypeOf(n,Object.getPrototypeOf(C.value)),C.value=n}else C.value[e]=t}}));return I}function X7(C,g=!0,I){Kb(I)?l.onBeforeMount(C,I):g?C():l.nextTick(C)}function $H(C,g){Kb(g)&&l.onBeforeUnmount(C,g)}function ne(C,g=!0,I){Kb()?l.onMounted(C,I):g?C():l.nextTick(C)}function Mw(C,g){Kb(g)&&l.onUnmounted(C,g)}function Hy(C,g=!1){function I(d,{flush:m="sync",deep:Z=!1,timeout:u,throwOnTimeout:h}={}){let G=null;const B=[new Promise(p=>{G=l.watch(C,Y=>{d(Y)!==g&&(G?G():l.nextTick(()=>G==null?void 0:G()),p(Y))},{flush:m,deep:Z,immediate:!0})})];return u!=null&&B.push(Br(u,h).then(()=>_(C)).finally(()=>G==null?void 0:G())),Promise.race(B)}function e(d,m){if(!l.isRef(d))return I(Y=>Y===d,m);const{flush:Z="sync",deep:u=!1,timeout:h,throwOnTimeout:G}=m??{};let w=null;const p=[new Promise(Y=>{w=l.watch([C,d],([N,R])=>{g!==(N===R)&&(w?w():l.nextTick(()=>w==null?void 0:w()),Y(N))},{flush:Z,deep:u,immediate:!0})})];return h!=null&&p.push(Br(h,G).then(()=>_(C)).finally(()=>(w==null||w(),_(C)))),Promise.race(p)}function t(d){return I(m=>!!m,d)}function i(d){return e(null,d)}function A(d){return e(void 0,d)}function n(d){return I(Number.isNaN,d)}function s(d,m){return I(Z=>{const u=Array.from(Z);return u.includes(d)||u.includes(_(d))},m)}function o(d){return a(1,d)}function a(d=1,m){let Z=-1;return I(()=>(Z+=1,Z>=d),m)}return Array.isArray(_(C))?{toMatch:I,toContains:s,changed:o,changedTimes:a,get not(){return Hy(C,!g)}}:{toMatch:I,toBe:e,toBeTruthy:t,toBeNull:i,toBeNaN:n,toBeUndefined:A,changed:o,changedTimes:a,get not(){return Hy(C,!g)}}}function yr(C){return Hy(C)}function R7(C,g){return C===g}function M7(...C){var g;const I=C[0],e=C[1];let t=(g=C[2])!=null?g:R7;if(typeof t=="string"){const i=t;t=(A,n)=>A[i]===n[i]}return l.computed(()=>_(I).filter(i=>_(e).findIndex(A=>t(i,A))===-1))}function H7(C,g){return l.computed(()=>_(C).every((I,e,t)=>g(_(I),e,t)))}function f7(C,g){return l.computed(()=>_(C).map(I=>_(I)).filter(g))}function S7(C,g){return l.computed(()=>_(_(C).find((I,e,t)=>g(_(I),e,t))))}function D7(C,g){return l.computed(()=>_(C).findIndex((I,e,t)=>g(_(I),e,t)))}function k7(C,g){let I=C.length;for(;I-- >0;)if(g(C[I],I,C))return C[I]}function F7(C,g){return l.computed(()=>_(Array.prototype.findLast?_(C).findLast((I,e,t)=>g(_(I),e,t)):k7(_(C),(I,e,t)=>g(_(I),e,t))))}function K7(C){return Wr(C)&&Ny(C,"formIndex","comparator")}function z7(...C){var g;const I=C[0],e=C[1];let t=C[2],i=0;if(K7(t)&&(i=(g=t.fromIndex)!=null?g:0,t=t.comparator),typeof t=="string"){const A=t;t=(n,s)=>n[A]===_(s)}return t=t??((A,n)=>A===_(n)),l.computed(()=>_(I).slice(i).some((A,n,s)=>t(_(A),_(e),n,_(s))))}function J7(C,g){return l.computed(()=>_(C).map(I=>_(I)).join(_(g)))}function x7(C,g){return l.computed(()=>_(C).map(I=>_(I)).map(g))}function T7(C,g,...I){const e=(t,i,A)=>g(_(t),_(i),A);return l.computed(()=>{const t=_(C);return I.length?t.reduce(e,typeof I[0]=="function"?_(I[0]()):_(I[0])):t.reduce(e)})}function L7(C,g){return l.computed(()=>_(C).some((I,e,t)=>g(_(I),e,t)))}function v7(C){return Array.from(new Set(C))}function j7(C,g){return C.reduce((I,e)=>(I.some(t=>g(e,t,C))||I.push(e),I),[])}function Q7(C,g){return l.computed(()=>{const I=_(C).map(e=>_(e));return g?j7(I,g):v7(I)})}function O7(C=0,g={}){let I=l.unref(C);const e=l.ref(C),{max:t=Number.POSITIVE_INFINITY,min:i=Number.NEGATIVE_INFINITY}=g,A=(d=1)=>e.value=Math.max(Math.min(t,e.value+d),i),n=(d=1)=>e.value=Math.min(Math.max(i,e.value-d),t),s=()=>e.value,o=d=>e.value=Math.max(i,Math.min(t,d));return{count:e,inc:A,dec:n,get:s,set:o,reset:(d=I)=>(I=d,o(d))}}const U7=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,E7=/[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 P7(C,g,I,e){let t=C<12?"AM":"PM";return e&&(t=t.split("").reduce((i,A)=>i+=`${A}.`,"")),I?t.toLowerCase():t}function Td(C){const g=["th","st","nd","rd"],I=C%100;return C+(g[(I-20)%10]||g[I]||g[0])}function gf(C,g,I={}){var e;const t=C.getFullYear(),i=C.getMonth(),A=C.getDate(),n=C.getHours(),s=C.getMinutes(),o=C.getSeconds(),a=C.getMilliseconds(),d=C.getDay(),m=(e=I.customMeridiem)!=null?e:P7,Z={Yo:()=>Td(t),YY:()=>String(t).slice(-2),YYYY:()=>t,M:()=>i+1,Mo:()=>Td(i+1),MM:()=>`${i+1}`.padStart(2,"0"),MMM:()=>C.toLocaleDateString(_(I.locales),{month:"short"}),MMMM:()=>C.toLocaleDateString(_(I.locales),{month:"long"}),D:()=>String(A),Do:()=>Td(A),DD:()=>`${A}`.padStart(2,"0"),H:()=>String(n),Ho:()=>Td(n),HH:()=>`${n}`.padStart(2,"0"),h:()=>`${n%12||12}`.padStart(1,"0"),ho:()=>Td(n%12||12),hh:()=>`${n%12||12}`.padStart(2,"0"),m:()=>String(s),mo:()=>Td(s),mm:()=>`${s}`.padStart(2,"0"),s:()=>String(o),so:()=>Td(o),ss:()=>`${o}`.padStart(2,"0"),SSS:()=>`${a}`.padStart(3,"0"),d:()=>d,dd:()=>C.toLocaleDateString(_(I.locales),{weekday:"narrow"}),ddd:()=>C.toLocaleDateString(_(I.locales),{weekday:"short"}),dddd:()=>C.toLocaleDateString(_(I.locales),{weekday:"long"}),A:()=>m(n,s),AA:()=>m(n,s,!1,!0),a:()=>m(n,s,!0),aa:()=>m(n,s,!0,!0)};return g.replace(E7,(u,h)=>{var G,w;return(w=h??((G=Z[u])==null?void 0:G.call(Z)))!=null?w:u})}function If(C){if(C===null)return new Date(Number.NaN);if(C===void 0)return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){const g=C.match(U7);if(g){const I=g[2]-1||0,e=(g[7]||"0").substring(0,3);return new Date(g[1],I,g[3]||1,g[4]||0,g[5]||0,g[6]||0,e)}}return new Date(C)}function _7(C,g="HH:mm:ss",I={}){return l.computed(()=>gf(If(_(C)),_(g),I))}function xo(C,g=1e3,I={}){const{immediate:e=!0,immediateCallback:t=!1}=I;let i=null;const A=l.ref(!1);function n(){i&&(clearInterval(i),i=null)}function s(){A.value=!1,n()}function o(){const a=_(g);a<=0||(A.value=!0,t&&C(),n(),A.value&&(i=setInterval(C,a)))}if(e&&ue&&o(),l.isRef(g)||typeof g=="function"){const a=l.watch(g,()=>{A.value&&ue&&o()});GI(a)}return GI(s),{isActive:A,pause:s,resume:o}}function q7(C=1e3,g={}){const{controls:I=!1,immediate:e=!0,callback:t}=g,i=l.ref(0),A=()=>i.value+=1,n=()=>{i.value=0},s=xo(t?()=>{A(),t(i.value)}:A,C,{immediate:e});return I?{counter:i,reset:n,...s}:i}function $7(C,g={}){var I;const e=l.ref((I=g.initialValue)!=null?I:null);return l.watch(C,()=>e.value=Kd(),g),e}function Nr(C,g,I={}){const{immediate:e=!0}=I,t=l.ref(!1);let i=null;function A(){i&&(clearTimeout(i),i=null)}function n(){t.value=!1,A()}function s(...o){A(),t.value=!0,i=setTimeout(()=>{t.value=!1,i=null,C(...o)},_(g))}return e&&(t.value=!0,ue&&s()),GI(n),{isPending:l.readonly(t),start:s,stop:n}}function gE(C=1e3,g={}){const{controls:I=!1,callback:e}=g,t=Nr(e??NI,C,g),i=l.computed(()=>!t.isPending.value);return I?{ready:i,...t}:i}function IE(C,g={}){const{method:I="parseFloat",radix:e,nanToZero:t}=g;return l.computed(()=>{let i=_(C);return typeof i=="string"&&(i=Number[I](i,e)),t&&Number.isNaN(i)&&(i=0),i})}function CE(C){return l.computed(()=>`${_(C)}`)}function Cf(C=!1,g={}){const{truthyValue:I=!0,falsyValue:e=!1}=g,t=l.isRef(C),i=l.ref(C);function A(n){if(arguments.length)return i.value=n,i.value;{const s=_(I);return i.value=i.value===s?_(e):s,i.value}}return t?A:[i,A]}function eE(C,g,I){let e=I!=null&&I.immediate?[]:[...C instanceof Function?C():Array.isArray(C)?C:_(C)];return l.watch(C,(t,i,A)=>{const n=Array.from({length:e.length}),s=[];for(const a of t){let d=!1;for(let m=0;m<e.length;m++)if(!n[m]&&a===e[m]){n[m]=!0,d=!0;break}d||s.push(a)}const o=e.filter((a,d)=>!n[d]);g(t,e,s,o,A),e=[...t]},I)}function tE(C,g,I){const{count:e,...t}=I,i=l.ref(0),A=Yr(C,(...n)=>{i.value+=1,i.value>=_(e)&&l.nextTick(()=>A()),g(...n)},t);return{count:i,stop:A}}function ef(C,g,I={}){const{debounce:e=0,maxWait:t=void 0,...i}=I;return Yr(C,g,{...i,eventFilter:Xw(e,{maxWait:t})})}function iE(C,g,I){return l.watch(C,g,{...I,deep:!0})}function Vr(C,g,I={}){const{eventFilter:e=kb,...t}=I,i=Jd(e,g);let A,n,s;if(t.flush==="sync"){const o=l.ref(!1);n=()=>{},A=a=>{o.value=!0,a(),o.value=!1},s=l.watch(C,(...a)=>{o.value||i(...a)},t)}else{const o=[],a=l.ref(0),d=l.ref(0);n=()=>{a.value=d.value},o.push(l.watch(C,()=>{d.value++},{...t,flush:"sync"})),A=m=>{const Z=d.value;m(),a.value+=d.value-Z},o.push(l.watch(C,(...m)=>{const Z=a.value>0&&a.value===d.value;a.value=0,d.value=0,!Z&&i(...m)},t)),s=()=>{o.forEach(m=>m())}}return{stop:s,ignoreUpdates:A,ignorePrevAsyncUpdates:n}}function AE(C,g,I){return l.watch(C,g,{...I,immediate:!0})}function nE(C,g,I){const e=l.watch(C,(...t)=>(l.nextTick(()=>e()),g(...t)),I);return e}function tf(C,g,I={}){const{throttle:e=0,trailing:t=!0,leading:i=!0,...A}=I;return Yr(C,g,{...A,eventFilter:Fb(e,t,i)})}function lE(C,g,I={}){let e;function t(){if(!e)return;const a=e;e=void 0,a()}function i(a){e=a}const A=(a,d)=>(t(),g(a,d,i)),n=Vr(C,A,I),{ignoreUpdates:s}=n;return{...n,trigger:()=>{let a;return s(()=>{a=A(sE(C),oE(C))}),a}}}function sE(C){return l.isReactive(C)?C:Array.isArray(C)?C.map(g=>_(g)):_(C)}function oE(C){return Array.isArray(C)?C.map(()=>{}):void 0}function Af(C,g,I){const e=l.watch(C,(t,i,A)=>{t&&(I!=null&&I.once&&l.nextTick(()=>e()),g(t,i,A))},{...I,once:!1});return e}function nf(C,g,I){let e;l.isRef(I)?e={evaluating:I}:e=I||{};const{lazy:t=!1,evaluating:i=void 0,shallow:A=!0,onError:n=NI}=e,s=l.ref(!t),o=A?l.shallowRef(g):l.ref(g);let a=0;return l.watchEffect(async d=>{if(!s.value)return;a++;const m=a;let Z=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const u=await C(h=>{d(()=>{i&&(i.value=!1),Z||h()})});m===a&&(o.value=u)}catch(u){n(u)}finally{i&&m===a&&(i.value=!1),Z=!0}}),t?l.computed(()=>(s.value=!0,o.value)):o}function aE(C,g,I,e){let t=l.inject(C);return I&&(t=l.inject(C,I)),e&&(t=l.inject(C,I,e)),typeof g=="function"?l.computed(i=>g(t,i)):l.computed({get:i=>g.get(t,i),set:g.set})}function dE(C={}){const{inheritAttrs:g=!0}=C,I=l.shallowRef(),e=l.defineComponent({setup(i,{slots:A}){return()=>{I.value=A.default}}}),t=l.defineComponent({inheritAttrs:g,setup(i,{attrs:A,slots:n}){return()=>{var s;if(!I.value&&process.env.NODE_ENV!=="production")throw new Error("[VueUse] Failed to find the definition of reusable template");const o=(s=I.value)==null?void 0:s.call(I,{...cE(A),$slots:n});return g&&(o==null?void 0:o.length)===1?o[0]:o}}});return zH({define:e,reuse:t},[e,t])}function cE(C){const g={};for(const I in C)g[jH(I)]=C[I];return g}function mE(C={}){let g=0;const I=l.ref([]);function e(...A){const n=l.shallowReactive({key:g++,args:A,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:C});return I.value.push(n),n.promise=new Promise((s,o)=>{n.resolve=a=>(n.isResolving=!0,s(a)),n.reject=o}).finally(()=>{n.promise=void 0;const s=I.value.indexOf(n);s!==-1&&I.value.splice(s,1)}),n.promise}function t(...A){return C.singleton&&I.value.length>0?I.value[0].promise:e(...A)}const i=l.defineComponent((A,{slots:n})=>{const s=()=>I.value.map(o=>{var a;return l.h(l.Fragment,{key:o.key},(a=n.default)==null?void 0:a.call(n,o))});return C.transition?()=>l.h(l.TransitionGroup,C.transition,s):s});return i.start=t,i}function rE(C){return function(...g){return C.apply(this,g.map(I=>_(I)))}}const Pg=ue?window:void 0,Pt=ue?window.document:void 0,yi=ue?window.navigator:void 0,ZE=ue?window.location:void 0;function KI(C){var g;const I=_(C);return(g=I==null?void 0:I.$el)!=null?g:I}function hg(...C){let g,I,e,t;if(typeof C[0]=="string"||Array.isArray(C[0])?([I,e,t]=C,g=Pg):[g,I,e,t]=C,!g)return NI;Array.isArray(I)||(I=[I]),Array.isArray(e)||(e=[e]);const i=[],A=()=>{i.forEach(a=>a()),i.length=0},n=(a,d,m,Z)=>(a.addEventListener(d,m,Z),()=>a.removeEventListener(d,m,Z)),s=l.watch(()=>[KI(g),_(t)],([a,d])=>{if(A(),!a)return;const m=Wr(d)?{...d}:d;i.push(...I.flatMap(Z=>e.map(u=>n(a,Z,u,m))))},{immediate:!0,flush:"post"}),o=()=>{s(),A()};return GI(o),o}let lf=!1;function sf(C,g,I={}){const{window:e=Pg,ignore:t=[],capture:i=!0,detectIframe:A=!1}=I;if(!e)return NI;zd&&!lf&&(lf=!0,Array.from(e.document.body.children).forEach(h=>h.addEventListener("click",NI)),e.document.documentElement.addEventListener("click",NI));let n=!0;const s=h=>_(t).some(G=>{if(typeof G=="string")return Array.from(e.document.querySelectorAll(G)).some(w=>w===h.target||h.composedPath().includes(w));{const w=KI(G);return w&&(h.target===w||h.composedPath().includes(w))}});function o(h){const G=_(h);return G&&G.$.subTree.shapeFlag===16}function a(h,G){const w=_(h),B=w.$.subTree&&w.$.subTree.children;return B==null||!Array.isArray(B)?!1:B.some(p=>p.el===G.target||G.composedPath().includes(p.el))}const d=h=>{const G=KI(C);if(h.target!=null&&!(!(G instanceof Element)&&o(C)&&a(C,h))&&!(!G||G===h.target||h.composedPath().includes(G))){if(h.detail===0&&(n=!s(h)),!n){n=!0;return}g(h)}};let m=!1;const Z=[hg(e,"click",h=>{m||(m=!0,setTimeout(()=>{m=!1},0),d(h))},{passive:!0,capture:i}),hg(e,"pointerdown",h=>{const G=KI(C);n=!s(h)&&!!(G&&!h.composedPath().includes(G))},{passive:!0}),A&&hg(e,"blur",h=>{setTimeout(()=>{var G;const w=KI(C);((G=e.document.activeElement)==null?void 0:G.tagName)==="IFRAME"&&!(w!=null&&w.contains(e.document.activeElement))&&g(h)},0)})].filter(Boolean);return()=>Z.forEach(h=>h())}function bE(C){return typeof C=="function"?C:typeof C=="string"?g=>g.key===C:Array.isArray(C)?g=>C.includes(g.key):()=>!0}function Hw(...C){let g,I,e={};C.length===3?(g=C[0],I=C[1],e=C[2]):C.length===2?typeof C[1]=="object"?(g=!0,I=C[0],e=C[1]):(g=C[0],I=C[1]):(g=!0,I=C[0]);const{target:t=Pg,eventName:i="keydown",passive:A=!1,dedupe:n=!1}=e,s=bE(g);return hg(t,i,a=>{a.repeat&&_(n)||s(a)&&I(a)},A)}function uE(C,g,I={}){return Hw(C,g,{...I,eventName:"keydown"})}function hE(C,g,I={}){return Hw(C,g,{...I,eventName:"keypress"})}function GE(C,g,I={}){return Hw(C,g,{...I,eventName:"keyup"})}const wE=500,WE=10;function BE(C,g,I){var e,t;const i=l.computed(()=>KI(C));let A,n,s,o=!1;function a(){A&&(clearTimeout(A),A=void 0),n=void 0,s=void 0,o=!1}function d(w){var B,p,Y;const[N,R,X]=[s,n,o];if(a(),!(I!=null&&I.onMouseUp)||!R||!N||(B=I==null?void 0:I.modifiers)!=null&&B.self&&w.target!==i.value)return;(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&w.preventDefault(),(Y=I==null?void 0:I.modifiers)!=null&&Y.stop&&w.stopPropagation();const K=w.x-R.x,D=w.y-R.y,k=Math.sqrt(K*K+D*D);I.onMouseUp(w.timeStamp-N,k,X)}function m(w){var B,p,Y,N;(B=I==null?void 0:I.modifiers)!=null&&B.self&&w.target!==i.value||(a(),(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&w.preventDefault(),(Y=I==null?void 0:I.modifiers)!=null&&Y.stop&&w.stopPropagation(),n={x:w.x,y:w.y},s=w.timeStamp,A=setTimeout(()=>{o=!0,g(w)},(N=I==null?void 0:I.delay)!=null?N:wE))}function Z(w){var B,p,Y,N;if((B=I==null?void 0:I.modifiers)!=null&&B.self&&w.target!==i.value||!n||(I==null?void 0:I.distanceThreshold)===!1)return;(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&w.preventDefault(),(Y=I==null?void 0:I.modifiers)!=null&&Y.stop&&w.stopPropagation();const R=w.x-n.x,X=w.y-n.y;Math.sqrt(R*R+X*X)>=((N=I==null?void 0:I.distanceThreshold)!=null?N:WE)&&a()}const u={capture:(e=I==null?void 0:I.modifiers)==null?void 0:e.capture,once:(t=I==null?void 0:I.modifiers)==null?void 0:t.once},h=[hg(i,"pointerdown",m,u),hg(i,"pointermove",Z,u),hg(i,["pointerup","pointerleave"],d,u)];return()=>h.forEach(w=>w())}function pE(){const{activeElement:C,body:g}=document;if(!C||C===g)return!1;switch(C.tagName){case"INPUT":case"TEXTAREA":return!0}return C.hasAttribute("contenteditable")}function YE({keyCode:C,metaKey:g,ctrlKey:I,altKey:e}){return g||I||e?!1:C>=48&&C<=57||C>=65&&C<=90||C>=97&&C<=122}function yE(C,g={}){const{document:I=Pt}=g;I&&hg(I,"keydown",t=>{!pE()&&YE(t)&&C(t)},{passive:!0})}function NE(C,g=null){const I=l.getCurrentInstance();let e=()=>{};const t=l.customRef((i,A)=>(e=A,{get(){var n,s;return i(),(s=(n=I==null?void 0:I.proxy)==null?void 0:n.$refs[C])!=null?s:g},set(){}}));return ne(e),l.onUpdated(e),t}function of(){const C=l.ref(!1),g=l.getCurrentInstance();return g&&l.onMounted(()=>{C.value=!0},g),C}function TI(C){const g=of();return l.computed(()=>(g.value,!!C()))}function Xr(C,g,I={}){const{window:e=Pg,...t}=I;let i;const A=TI(()=>e&&"MutationObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},s=l.computed(()=>{const m=_(C),Z=(Array.isArray(m)?m:[m]).map(KI).filter(Db);return new Set(Z)}),o=l.watch(()=>s.value,m=>{n(),A.value&&m.size&&(i=new MutationObserver(g),m.forEach(Z=>i.observe(Z,t)))},{immediate:!0,flush:"post"}),a=()=>i==null?void 0:i.takeRecords(),d=()=>{o(),n()};return GI(d),{isSupported:A,stop:d,takeRecords:a}}function fy(C={}){var g;const{window:I=Pg,deep:e=!0,triggerOnRemoval:t=!1}=C,i=(g=C.document)!=null?g:I==null?void 0:I.document,A=()=>{var o;let a=i==null?void 0:i.activeElement;if(e)for(;a!=null&&a.shadowRoot;)a=(o=a==null?void 0:a.shadowRoot)==null?void 0:o.activeElement;return a},n=l.ref(),s=()=>{n.value=A()};return I&&(hg(I,"blur",o=>{o.relatedTarget===null&&s()},!0),hg(I,"focus",s,!0)),t&&Xr(i,o=>{o.filter(a=>a.removedNodes.length).map(a=>Array.from(a.removedNodes)).flat().forEach(a=>{a===n.value&&s()})},{childList:!0,subtree:!0}),s(),n}function Ld(C,g={}){const{immediate:I=!0,fpsLimit:e=void 0,window:t=Pg}=g,i=l.ref(!1),A=e?1e3/e:null;let n=0,s=null;function o(m){if(!i.value||!t)return;n||(n=m);const Z=m-n;if(A&&Z<A){s=t.requestAnimationFrame(o);return}n=m,C({delta:Z,timestamp:m}),s=t.requestAnimationFrame(o)}function a(){!i.value&&t&&(i.value=!0,n=0,s=t.requestAnimationFrame(o))}function d(){i.value=!1,s!=null&&t&&(t.cancelAnimationFrame(s),s=null)}return I&&a(),GI(d),{isActive:l.readonly(i),pause:d,resume:a}}function VE(C,g,I){let e,t;Wr(I)?(e=I,t=EH(I,["window","immediate","commitStyles","persist","onReady","onError"])):(e={duration:I},t=I);const{window:i=Pg,immediate:A=!0,commitStyles:n,persist:s,playbackRate:o=1,onReady:a,onError:d=T=>{console.error(T)}}=e,m=TI(()=>i&&HTMLElement&&"animate"in HTMLElement.prototype),Z=l.shallowRef(void 0),u=l.shallowReactive({startTime:null,currentTime:null,timeline:null,playbackRate:o,pending:!1,playState:A?"idle":"paused",replaceState:"active"}),h=l.computed(()=>u.pending),G=l.computed(()=>u.playState),w=l.computed(()=>u.replaceState),B=l.computed({get(){return u.startTime},set(T){u.startTime=T,Z.value&&(Z.value.startTime=T)}}),p=l.computed({get(){return u.currentTime},set(T){u.currentTime=T,Z.value&&(Z.value.currentTime=T,Cg())}}),Y=l.computed({get(){return u.timeline},set(T){u.timeline=T,Z.value&&(Z.value.timeline=T)}}),N=l.computed({get(){return u.playbackRate},set(T){u.playbackRate=T,Z.value&&(Z.value.playbackRate=T)}}),R=()=>{if(Z.value)try{Z.value.play(),Cg()}catch(T){U(),d(T)}else z()},X=()=>{var T;try{(T=Z.value)==null||T.pause(),U()}catch(q){d(q)}},K=()=>{var T;Z.value||z();try{(T=Z.value)==null||T.reverse(),Cg()}catch(q){U(),d(q)}},D=()=>{var T;try{(T=Z.value)==null||T.finish(),U()}catch(q){d(q)}},k=()=>{var T;try{(T=Z.value)==null||T.cancel(),U()}catch(q){d(q)}};l.watch(()=>KI(C),T=>{T&&z()}),l.watch(()=>g,T=>{Z.value&&z(),!KI(C)&&Z.value&&(Z.value.effect=new KeyframeEffect(KI(C),_(T),t))},{deep:!0}),ne(()=>z(!0),!1),GI(k);function z(T){const q=KI(C);!m.value||!q||(Z.value||(Z.value=q.animate(_(g),t)),s&&Z.value.persist(),o!==1&&(Z.value.playbackRate=o),T&&!A?Z.value.pause():Cg(),a==null||a(Z.value))}hg(Z,["cancel","finish","remove"],U),hg(Z,"finish",()=>{var T;n&&((T=Z.value)==null||T.commitStyles())});const{resume:v,pause:O}=Ld(()=>{Z.value&&(u.pending=Z.value.pending,u.playState=Z.value.playState,u.replaceState=Z.value.replaceState,u.startTime=Z.value.startTime,u.currentTime=Z.value.currentTime,u.timeline=Z.value.timeline,u.playbackRate=Z.value.playbackRate)},{immediate:!1});function Cg(){m.value&&v()}function U(){m.value&&i&&i.requestAnimationFrame(O)}return{isSupported:m,animate:Z,play:R,pause:X,reverse:K,finish:D,cancel:k,pending:h,playState:G,replaceState:w,startTime:B,currentTime:p,timeline:Y,playbackRate:N}}function XE(C,g){const{interrupt:I=!0,onError:e=NI,onFinished:t=NI,signal:i}=g||{},A={aborted:"aborted",fulfilled:"fulfilled",pending:"pending",rejected:"rejected"},n=Array.from(Array.from({length:C.length}),()=>({state:A.pending,data:null})),s=l.reactive(n),o=l.ref(-1);if(!C||C.length===0)return t(),{activeIndex:o,result:s};function a(d,m){o.value++,s[o.value].data=m,s[o.value].state=d}return C.reduce((d,m)=>d.then(Z=>{var u;if(i!=null&&i.aborted){a(A.aborted,new Error("aborted"));return}if(((u=s[o.value])==null?void 0:u.state)===A.rejected&&I){t();return}const h=m(Z).then(G=>(a(A.fulfilled,G),o.value===C.length-1&&t(),G));return i?Promise.race([h,RE(i)]):h}).catch(Z=>i!=null&&i.aborted?(a(A.aborted,Z),Z):(a(A.rejected,Z),e(),Z)),Promise.resolve()),{activeIndex:o,result:s}}function RE(C){return new Promise((g,I)=>{const e=new Error("aborted");C.aborted?I(e):C.addEventListener("abort",()=>I(e),{once:!0})})}function af(C,g,I){const{immediate:e=!0,delay:t=0,onError:i=NI,onSuccess:A=NI,resetOnExecute:n=!0,shallow:s=!0,throwError:o}=I??{},a=s?l.shallowRef(g):l.ref(g),d=l.ref(!1),m=l.ref(!1),Z=l.shallowRef(void 0);async function u(w=0,...B){n&&(a.value=g),Z.value=void 0,d.value=!1,m.value=!0,w>0&&await Br(w);const p=typeof C=="function"?C(...B):C;try{const Y=await p;a.value=Y,d.value=!0,A(Y)}catch(Y){if(Z.value=Y,i(Y),o)throw Y}finally{m.value=!1}return a.value}e&&u(t);const h={state:a,isReady:d,isLoading:m,error:Z,execute:u};function G(){return new Promise((w,B)=>{yr(m).toBe(!1).then(()=>w(h)).catch(B)})}return{...h,then(w,B){return G().then(w,B)}}}const zb={array:C=>JSON.stringify(C),object:C=>JSON.stringify(C),set:C=>JSON.stringify(Array.from(C)),map:C=>JSON.stringify(Object.fromEntries(C)),null:()=>""};function ME(C){return C?C instanceof Map?zb.map:C instanceof Set?zb.set:Array.isArray(C)?zb.array:zb.object:zb.null}function HE(C,g){const I=l.ref(""),e=l.ref();function t(){if(ue)return e.value=new Promise((i,A)=>{try{const n=_(C);if(n==null)i("");else if(typeof n=="string")i(Sy(new Blob([n],{type:"text/plain"})));else if(n instanceof Blob)i(Sy(n));else if(n instanceof ArrayBuffer)i(window.btoa(String.fromCharCode(...new Uint8Array(n))));else if(n instanceof HTMLCanvasElement)i(n.toDataURL(g==null?void 0:g.type,g==null?void 0:g.quality));else if(n instanceof HTMLImageElement){const s=n.cloneNode(!1);s.crossOrigin="Anonymous",fE(s).then(()=>{const o=document.createElement("canvas"),a=o.getContext("2d");o.width=s.width,o.height=s.height,a.drawImage(s,0,0,o.width,o.height),i(o.toDataURL(g==null?void 0:g.type,g==null?void 0:g.quality))}).catch(A)}else if(typeof n=="object"){const o=((g==null?void 0:g.serializer)||ME(n))(n);return i(Sy(new Blob([o],{type:"application/json"})))}else A(new Error("target is unsupported types"))}catch(n){A(n)}}),e.value.then(i=>I.value=i),e.value}return l.isRef(C)||typeof C=="function"?l.watch(C,t,{immediate:!0}):t(),{base64:I,promise:e,execute:t}}function fE(C){return new Promise((g,I)=>{C.complete?g():(C.onload=()=>{g()},C.onerror=I)})}function Sy(C){return new Promise((g,I)=>{const e=new FileReader;e.onload=t=>{g(t.target.result)},e.onerror=I,e.readAsDataURL(C)})}function df(C={}){const{navigator:g=yi}=C,I=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],e=TI(()=>g&&"getBattery"in g&&typeof g.getBattery=="function"),t=l.ref(!1),i=l.ref(0),A=l.ref(0),n=l.ref(1);let s;function o(){t.value=this.charging,i.value=this.chargingTime||0,A.value=this.dischargingTime||0,n.value=this.level}return e.value&&g.getBattery().then(a=>{s=a,o.call(s),hg(s,I,o,{passive:!0})}),{isSupported:e,charging:t,chargingTime:i,dischargingTime:A,level:n}}function SE(C){let{acceptAllDevices:g=!1}=C||{};const{filters:I=void 0,optionalServices:e=void 0,navigator:t=yi}=C||{},i=TI(()=>t&&"bluetooth"in t),A=l.shallowRef(void 0),n=l.shallowRef(null);l.watch(A,()=>{d()});async function s(){if(i.value){n.value=null,I&&I.length>0&&(g=!1);try{A.value=await(t==null?void 0:t.bluetooth.requestDevice({acceptAllDevices:g,filters:I,optionalServices:e}))}catch(m){n.value=m}}}const o=l.ref(),a=l.computed(()=>{var m;return((m=o.value)==null?void 0:m.connected)||!1});async function d(){if(n.value=null,A.value&&A.value.gatt){A.value.addEventListener("gattserverdisconnected",()=>{});try{o.value=await A.value.gatt.connect()}catch(m){n.value=m}}}return ne(()=>{var m;A.value&&((m=A.value.gatt)==null||m.connect())}),GI(()=>{var m;A.value&&((m=A.value.gatt)==null||m.disconnect())}),{isSupported:i,isConnected:a,device:A,requestDevice:s,server:o,error:n}}function Ni(C,g={}){const{window:I=Pg}=g,e=TI(()=>I&&"matchMedia"in I&&typeof I.matchMedia=="function");let t;const i=l.ref(!1),A=o=>{i.value=o.matches},n=()=>{t&&("removeEventListener"in t?t.removeEventListener("change",A):t.removeListener(A))},s=l.watchEffect(()=>{e.value&&(n(),t=I.matchMedia(_(C)),"addEventListener"in t?t.addEventListener("change",A):t.addListener(A),i.value=t.matches)});return GI(()=>{s(),n(),t=void 0}),i}const DE={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},kE={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},cf={xs:0,sm:600,md:960,lg:1264,xl:1904},FE={xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560},KE=cf,zE={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},JE={xs:0,sm:600,md:1024,lg:1440,xl:1920},xE={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},TE={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},LE={sm:576,md:768,lg:992,xl:1200},vE={xs:0,sm:768,md:992,lg:1200,xl:1920};function jE(C,g={}){function I(a,d){let m=_(C[_(a)]);return d!=null&&(m=OH(m,d)),typeof m=="number"&&(m=`${m}px`),m}const{window:e=Pg,strategy:t="min-width"}=g;function i(a){return e?e.matchMedia(a).matches:!1}const A=a=>Ni(()=>`(min-width: ${I(a)})`,g),n=a=>Ni(()=>`(max-width: ${I(a)})`,g),s=Object.keys(C).reduce((a,d)=>(Object.defineProperty(a,d,{get:()=>t==="min-width"?A(d):n(d),enumerable:!0,configurable:!0}),a),{});function o(){const a=Object.keys(C).map(d=>[d,A(d)]);return l.computed(()=>a.filter(([,d])=>d.value).map(([d])=>d))}return Object.assign(s,{greaterOrEqual:A,smallerOrEqual:n,greater(a){return Ni(()=>`(min-width: ${I(a,.1)})`,g)},smaller(a){return Ni(()=>`(max-width: ${I(a,-.1)})`,g)},between(a,d){return Ni(()=>`(min-width: ${I(a)}) and (max-width: ${I(d,-.1)})`,g)},isGreater(a){return i(`(min-width: ${I(a,.1)})`)},isGreaterOrEqual(a){return i(`(min-width: ${I(a)})`)},isSmaller(a){return i(`(max-width: ${I(a,-.1)})`)},isSmallerOrEqual(a){return i(`(max-width: ${I(a)})`)},isInBetween(a,d){return i(`(min-width: ${I(a)}) and (max-width: ${I(d,-.1)})`)},current:o,active(){const a=o();return l.computed(()=>a.value.length===0?"":a.value.at(-1))}})}function QE(C){const{name:g,window:I=Pg}=C,e=TI(()=>I&&"BroadcastChannel"in I),t=l.ref(!1),i=l.ref(),A=l.ref(),n=l.shallowRef(null),s=a=>{i.value&&i.value.postMessage(a)},o=()=>{i.value&&i.value.close(),t.value=!0};return e.value&&ne(()=>{n.value=null,i.value=new BroadcastChannel(g),i.value.addEventListener("message",a=>{A.value=a.data},{passive:!0}),i.value.addEventListener("messageerror",a=>{n.value=a},{passive:!0}),i.value.addEventListener("close",()=>{t.value=!0})}),GI(()=>{o()}),{isSupported:e,channel:i,data:A,post:s,close:o,error:n,isClosed:t}}const mf=["hash","host","hostname","href","pathname","port","protocol","search"];function rf(C={}){const{window:g=Pg}=C,I=Object.fromEntries(mf.map(i=>[i,l.ref()]));for(const[i,A]of PH(I))l.watch(A,n=>{!(g!=null&&g.location)||g.location[i]===n||(g.location[i]=n)});const e=i=>{var A;const{state:n,length:s}=(g==null?void 0:g.history)||{},{origin:o}=(g==null?void 0:g.location)||{};for(const a of mf)I[a].value=(A=g==null?void 0:g.location)==null?void 0:A[a];return l.reactive({trigger:i,state:n,length:s,origin:o,...I})},t=l.ref(e("load"));return g&&(hg(g,"popstate",()=>t.value=e("popstate"),{passive:!0}),hg(g,"hashchange",()=>t.value=e("hashchange"),{passive:!0})),t}function OE(C,g=(e,t)=>e===t,I){const e=l.ref(C.value);return l.watch(()=>C.value,t=>{g(t,e.value)||(e.value=t)},I),e}function fw(C,g={}){const{controls:I=!1,navigator:e=yi}=g,t=TI(()=>e&&"permissions"in e),i=l.shallowRef(),A=typeof C=="string"?{name:C}:C,n=l.shallowRef(),s=()=>{var a,d;n.value=(d=(a=i.value)==null?void 0:a.state)!=null?d:"prompt"};hg(i,"change",s);const o=QH(async()=>{if(t.value){if(!i.value)try{i.value=await e.permissions.query(A)}catch{i.value=void 0}finally{s()}if(I)return l.toRaw(i.value)}});return o(),I?{state:n,isSupported:t,query:o}:n}function Zf(C={}){const{navigator:g=yi,read:I=!1,source:e,copiedDuring:t=1500,legacy:i=!1}=C,A=TI(()=>g&&"clipboard"in g),n=fw("clipboard-read"),s=fw("clipboard-write"),o=l.computed(()=>A.value||i),a=l.ref(""),d=l.ref(!1),m=Nr(()=>d.value=!1,t);function Z(){A.value&&w(n.value)?g.clipboard.readText().then(B=>{a.value=B}):a.value=G()}o.value&&I&&hg(["copy","cut"],Z);async function u(B=_(e)){o.value&&B!=null&&(A.value&&w(s.value)?await g.clipboard.writeText(B):h(B),a.value=B,d.value=!0,m.start())}function h(B){const p=document.createElement("textarea");p.value=B??"",p.style.position="absolute",p.style.opacity="0",document.body.appendChild(p),p.select(),document.execCommand("copy"),p.remove()}function G(){var B,p,Y;return(Y=(p=(B=document==null?void 0:document.getSelection)==null?void 0:B.call(document))==null?void 0:p.toString())!=null?Y:""}function w(B){return B==="granted"||B==="prompt"}return{isSupported:o,text:a,copied:d,copy:u}}function UE(C={}){const{navigator:g=yi,read:I=!1,source:e,copiedDuring:t=1500}=C,i=TI(()=>g&&"clipboard"in g),A=l.ref([]),n=l.ref(!1),s=Nr(()=>n.value=!1,t);function o(){i.value&&g.clipboard.read().then(d=>{A.value=d})}i.value&&I&&hg(["copy","cut"],o);async function a(d=_(e)){i.value&&d!=null&&(await g.clipboard.write(d),A.value=d,n.value=!0,s.start())}return{isSupported:i,content:A,copied:n,copy:a}}function Jb(C){return JSON.parse(JSON.stringify(C))}function EE(C,g={}){const I=l.ref({}),{manual:e,clone:t=Jb,deep:i=!0,immediate:A=!0}=g;function n(){I.value=t(_(C))}return!e&&(l.isRef(C)||typeof C=="function")?l.watch(C,n,{...g,deep:i,immediate:A}):n(),{cloned:I,sync:n}}const Sw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Dw="__vueuse_ssr_handlers__",bf=PE();function PE(){return Dw in Sw||(Sw[Dw]=Sw[Dw]||{}),Sw[Dw]}function kw(C,g){return bf[C]||g}function _E(C,g){bf[C]=g}function Fw(C){return Ni("(prefers-color-scheme: dark)",C)}function uf(C){return C==null?"any":C instanceof Set?"set":C instanceof Map?"map":C instanceof Date?"date":typeof C=="boolean"?"boolean":typeof C=="string"?"string":typeof C=="object"?"object":Number.isNaN(C)?"any":"number"}const Dy={boolean:{read:C=>C==="true",write:C=>String(C)},object:{read:C=>JSON.parse(C),write:C=>JSON.stringify(C)},number:{read:C=>Number.parseFloat(C),write:C=>String(C)},any:{read:C=>C,write:C=>String(C)},string:{read:C=>C,write:C=>String(C)},map:{read:C=>new Map(JSON.parse(C)),write:C=>JSON.stringify(Array.from(C.entries()))},set:{read:C=>new Set(JSON.parse(C)),write:C=>JSON.stringify(Array.from(C))},date:{read:C=>new Date(C),write:C=>C.toISOString()}},ky="vueuse-storage";function xb(C,g,I,e={}){var t;const{flush:i="pre",deep:A=!0,listenToStorageChanges:n=!0,writeDefaults:s=!0,mergeDefaults:o=!1,shallow:a,window:d=Pg,eventFilter:m,onError:Z=k=>{console.error(k)},initOnMounted:u}=e,h=(a?l.shallowRef:l.ref)(typeof g=="function"?g():g);if(!I)try{I=kw("getDefaultStorage",()=>{var k;return(k=Pg)==null?void 0:k.localStorage})()}catch(k){Z(k)}if(!I)return h;const G=_(g),w=uf(G),B=(t=e.serializer)!=null?t:Dy[w],{pause:p,resume:Y}=xd(h,()=>R(h.value),{flush:i,deep:A,eventFilter:m});d&&n&&ne(()=>{I instanceof Storage?hg(d,"storage",K):hg(d,ky,D),u&&K()}),u||K();function N(k,z){if(d){const v={key:C,oldValue:k,newValue:z,storageArea:I};d.dispatchEvent(I instanceof Storage?new StorageEvent("storage",v):new CustomEvent(ky,{detail:v}))}}function R(k){try{const z=I.getItem(C);if(k==null)N(z,null),I.removeItem(C);else{const v=B.write(k);z!==v&&(I.setItem(C,v),N(z,v))}}catch(z){Z(z)}}function X(k){const z=k?k.newValue:I.getItem(C);if(z==null)return s&&G!=null&&I.setItem(C,B.write(G)),G;if(!k&&o){const v=B.read(z);return typeof o=="function"?o(v,G):w==="object"&&!Array.isArray(v)?{...G,...v}:v}else return typeof z!="string"?z:B.read(z)}function K(k){if(!(k&&k.storageArea!==I)){if(k&&k.key==null){h.value=G;return}if(!(k&&k.key!==C)){p();try{(k==null?void 0:k.newValue)!==B.write(h.value)&&(h.value=X(k))}catch(z){Z(z)}finally{k?l.nextTick(Y):Y()}}}}function D(k){K(k.detail)}return h}const qE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function hf(C={}){const{selector:g="html",attribute:I="class",initialValue:e="auto",window:t=Pg,storage:i,storageKey:A="vueuse-color-scheme",listenToStorageChanges:n=!0,storageRef:s,emitAuto:o,disableTransition:a=!0}=C,d={auto:"",light:"light",dark:"dark",...C.modes||{}},m=Fw({window:t}),Z=l.computed(()=>m.value?"dark":"light"),u=s||(A==null?PC(e):xb(A,e,i,{window:t,listenToStorageChanges:n})),h=l.computed(()=>u.value==="auto"?Z.value:u.value),G=kw("updateHTMLAttrs",(Y,N,R)=>{const X=typeof Y=="string"?t==null?void 0:t.document.querySelector(Y):KI(Y);if(!X)return;const K=new Set,D=new Set;let k=null;if(N==="class"){const v=R.split(/\s/g);Object.values(d).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{v.includes(O)?K.add(O):D.add(O)})}else k={key:N,value:R};if(K.size===0&&D.size===0&&k===null)return;let z;a&&(z=t.document.createElement("style"),z.appendChild(document.createTextNode(qE)),t.document.head.appendChild(z));for(const v of K)X.classList.add(v);for(const v of D)X.classList.remove(v);k&&X.setAttribute(k.key,k.value),a&&(t.getComputedStyle(z).opacity,document.head.removeChild(z))});function w(Y){var N;G(g,I,(N=d[Y])!=null?N:Y)}function B(Y){C.onChanged?C.onChanged(Y,w):w(Y)}l.watch(h,B,{flush:"post",immediate:!0}),ne(()=>B(h.value));const p=l.computed({get(){return o?u.value:h.value},set(Y){u.value=Y}});try{return Object.assign(p,{store:u,system:Z,state:h})}catch{return p}}function $E(C=l.ref(!1)){const g=ct(),I=ct(),e=ct();let t=NI;const i=s=>(e.trigger(s),C.value=!0,new Promise(o=>{t=o})),A=s=>{C.value=!1,g.trigger(s),t({data:s,isCanceled:!1})},n=s=>{C.value=!1,I.trigger(s),t({data:s,isCanceled:!0})};return{isRevealed:l.computed(()=>C.value),reveal:i,confirm:A,cancel:n,onReveal:e.on,onConfirm:g.on,onCancel:I.on}}function Tb(C,g,I={}){const{window:e=Pg,initialValue:t,observe:i=!1}=I,A=l.ref(t),n=l.computed(()=>{var o;return KI(g)||((o=e==null?void 0:e.document)==null?void 0:o.documentElement)});function s(){var o;const a=_(C),d=_(n);if(d&&e&&a){const m=(o=e.getComputedStyle(d).getPropertyValue(a))==null?void 0:o.trim();A.value=m||t}}return i&&Xr(n,s,{attributeFilter:["style","class"],window:e}),l.watch([n,()=>_(C)],(o,a)=>{a[0]&&a[1]&&a[0].style.removeProperty(a[1]),s()},{immediate:!0}),l.watch(A,o=>{var a;const d=_(C);(a=n.value)!=null&&a.style&&d&&(o==null?n.value.style.removeProperty(d):n.value.style.setProperty(d,o))}),A}function Gf(C){const g=l.getCurrentInstance(),I=Wy(()=>null,()=>C?KI(C):g.proxy.$el);return l.onUpdated(I.trigger),l.onMounted(I.trigger),I}function gP(C,g){const I=l.shallowRef(o()),e=PC(C),t=l.computed({get(){var a;const d=e.value;let m=g!=null&&g.getIndexOf?g.getIndexOf(I.value,d):d.indexOf(I.value);return m<0&&(m=(a=g==null?void 0:g.fallbackIndex)!=null?a:0),m},set(a){i(a)}});function i(a){const d=e.value,m=d.length,Z=(a%m+m)%m,u=d[Z];return I.value=u,u}function A(a=1){return i(t.value+a)}function n(a=1){return A(a)}function s(a=1){return A(-a)}function o(){var a,d;return(d=_((a=g==null?void 0:g.initialValue)!=null?a:_(C)[0]))!=null?d:void 0}return l.watch(e,()=>i(t.value)),{state:I,index:t,next:n,prev:s,go:i}}function wf(C={}){const{valueDark:g="dark",valueLight:I="",window:e=Pg}=C,t=hf({...C,onChanged:(n,s)=>{var o;C.onChanged?(o=C.onChanged)==null||o.call(C,n==="dark",s,n):s(n)},modes:{dark:g,light:I}}),i=l.computed(()=>t.system?t.system.value:Fw({window:e}).value?"dark":"light");return l.computed({get(){return t.value==="dark"},set(n){const s=n?"dark":"light";i.value===s?t.value="auto":t.value=s}})}function Wf(C){return C}function IP(C,g){return C.value=g}function CP(C){return C?typeof C=="function"?C:Jb:Wf}function eP(C){return C?typeof C=="function"?C:Jb:Wf}function Bf(C,g={}){const{clone:I=!1,dump:e=CP(I),parse:t=eP(I),setSource:i=IP}=g;function A(){return l.markRaw({snapshot:e(C.value),timestamp:Kd()})}const n=l.ref(A()),s=l.ref([]),o=l.ref([]),a=p=>{i(C,t(p.snapshot)),n.value=p},d=()=>{s.value.unshift(n.value),n.value=A(),g.capacity&&s.value.length>g.capacity&&s.value.splice(g.capacity,Number.POSITIVE_INFINITY),o.value.length&&o.value.splice(0,o.value.length)},m=()=>{s.value.splice(0,s.value.length),o.value.splice(0,o.value.length)},Z=()=>{const p=s.value.shift();p&&(o.value.unshift(n.value),a(p))},u=()=>{const p=o.value.shift();p&&(s.value.unshift(n.value),a(p))},h=()=>{a(n.value)},G=l.computed(()=>[n.value,...s.value]),w=l.computed(()=>s.value.length>0),B=l.computed(()=>o.value.length>0);return{source:C,undoStack:s,redoStack:o,last:n,history:G,canUndo:w,canRedo:B,clear:m,commit:d,reset:h,undo:Z,redo:u}}function Fy(C,g={}){const{deep:I=!1,flush:e="pre",eventFilter:t}=g,{eventFilter:i,pause:A,resume:n,isActive:s}=Yy(t),{ignoreUpdates:o,ignorePrevAsyncUpdates:a,stop:d}=Vr(C,G,{deep:I,flush:e,eventFilter:i});function m(Y,N){a(),o(()=>{Y.value=N})}const Z=Bf(C,{...g,clone:g.clone||I,setSource:m}),{clear:u,commit:h}=Z;function G(){a(),h()}function w(Y){n(),Y&&G()}function B(Y){let N=!1;const R=()=>N=!0;o(()=>{Y(R)}),N||G()}function p(){d(),u()}return{...Z,isTracking:s,pause:A,resume:w,commit:G,batch:B,dispose:p}}function tP(C,g={}){const I=g.debounce?Xw(g.debounce):void 0;return{...Fy(C,{...g,eventFilter:I})}}function pf(C={}){const{window:g=Pg,eventFilter:I=kb}=C,e=l.ref({x:null,y:null,z:null}),t=l.ref({alpha:null,beta:null,gamma:null}),i=l.ref(0),A=l.ref({x:null,y:null,z:null});if(g){const n=Jd(I,s=>{e.value=s.acceleration,A.value=s.accelerationIncludingGravity,t.value=s.rotationRate,i.value=s.interval});hg(g,"devicemotion",n)}return{acceleration:e,accelerationIncludingGravity:A,rotationRate:t,interval:i}}function Ky(C={}){const{window:g=Pg}=C,I=TI(()=>g&&"DeviceOrientationEvent"in g),e=l.ref(!1),t=l.ref(null),i=l.ref(null),A=l.ref(null);return g&&I.value&&hg(g,"deviceorientation",n=>{e.value=n.absolute,t.value=n.alpha,i.value=n.beta,A.value=n.gamma}),{isSupported:I,isAbsolute:e,alpha:t,beta:i,gamma:A}}function Yf(C={}){const{window:g=Pg}=C,I=l.ref(1);if(g){let e=function(){I.value=g.devicePixelRatio,t(),i=g.matchMedia(`(resolution: ${I.value}dppx)`),i.addEventListener("change",e,{once:!0})},t=function(){i==null||i.removeEventListener("change",e)},i;e(),GI(t)}return{pixelRatio:I}}function yf(C={}){const{navigator:g=yi,requestPermissions:I=!1,constraints:e={audio:!0,video:!0},onUpdated:t}=C,i=l.ref([]),A=l.computed(()=>i.value.filter(u=>u.kind==="videoinput")),n=l.computed(()=>i.value.filter(u=>u.kind==="audioinput")),s=l.computed(()=>i.value.filter(u=>u.kind==="audiooutput")),o=TI(()=>g&&g.mediaDevices&&g.mediaDevices.enumerateDevices),a=l.ref(!1);let d;async function m(){o.value&&(i.value=await g.mediaDevices.enumerateDevices(),t==null||t(i.value),d&&(d.getTracks().forEach(u=>u.stop()),d=null))}async function Z(){if(!o.value)return!1;if(a.value)return!0;const{state:u,query:h}=fw("camera",{controls:!0});if(await h(),u.value!=="granted"){let G=!0;try{d=await g.mediaDevices.getUserMedia(e)}catch{d=null,G=!1}m(),a.value=G}else a.value=!0;return a.value}return o.value&&(I&&Z(),hg(g.mediaDevices,"devicechange",m),m()),{devices:i,ensurePermissions:Z,permissionGranted:a,videoInputs:A,audioInputs:n,audioOutputs:s,isSupported:o}}function iP(C={}){var g;const I=l.ref((g=C.enabled)!=null?g:!1),e=C.video,t=C.audio,{navigator:i=yi}=C,A=TI(()=>{var Z;return(Z=i==null?void 0:i.mediaDevices)==null?void 0:Z.getDisplayMedia}),n={audio:t,video:e},s=l.shallowRef();async function o(){var Z;if(!(!A.value||s.value))return s.value=await i.mediaDevices.getDisplayMedia(n),(Z=s.value)==null||Z.getTracks().forEach(u=>u.addEventListener("ended",d)),s.value}async function a(){var Z;(Z=s.value)==null||Z.getTracks().forEach(u=>u.stop()),s.value=void 0}function d(){a(),I.value=!1}async function m(){return await o(),s.value&&(I.value=!0),s.value}return l.watch(I,Z=>{Z?o():a()},{immediate:!0}),{isSupported:A,stream:s,start:m,stop:d,enabled:I}}function zy(C={}){const{document:g=Pt}=C;if(!g)return l.ref("visible");const I=l.ref(g.visibilityState);return hg(g,"visibilitychange",()=>{I.value=g.visibilityState}),I}function Nf(C,g={}){var I,e;const{pointerTypes:t,preventDefault:i,stopPropagation:A,exact:n,onMove:s,onEnd:o,onStart:a,initialValue:d,axis:m="both",draggingElement:Z=Pg,containerElement:u,handle:h=C,buttons:G=[0]}=g,w=l.ref((I=_(d))!=null?I:{x:0,y:0}),B=l.ref(),p=K=>t?t.includes(K.pointerType):!0,Y=K=>{_(i)&&K.preventDefault(),_(A)&&K.stopPropagation()},N=K=>{var D;if(!_(G).includes(K.button)||_(g.disabled)||!p(K)||_(n)&&K.target!==_(C))return;const k=_(u),z=(D=k==null?void 0:k.getBoundingClientRect)==null?void 0:D.call(k),v=_(C).getBoundingClientRect(),O={x:K.clientX-(k?v.left-z.left+k.scrollLeft:v.left),y:K.clientY-(k?v.top-z.top+k.scrollTop:v.top)};(a==null?void 0:a(O,K))!==!1&&(B.value=O,Y(K))},R=K=>{if(_(g.disabled)||!p(K)||!B.value)return;const D=_(u),k=_(C).getBoundingClientRect();let{x:z,y:v}=w.value;(m==="x"||m==="both")&&(z=K.clientX-B.value.x,D&&(z=Math.min(Math.max(0,z),D.scrollWidth-k.width))),(m==="y"||m==="both")&&(v=K.clientY-B.value.y,D&&(v=Math.min(Math.max(0,v),D.scrollHeight-k.height))),w.value={x:z,y:v},s==null||s(w.value,K),Y(K)},X=K=>{_(g.disabled)||!p(K)||B.value&&(B.value=void 0,o==null||o(w.value,K),Y(K))};if(ue){const K={capture:(e=g.capture)!=null?e:!0};hg(h,"pointerdown",N,K),hg(Z,"pointermove",R,K),hg(Z,"pointerup",X,K)}return{...My(w),position:w,isDragging:l.computed(()=>!!B.value),style:l.computed(()=>`left:${w.value.x}px;top:${w.value.y}px;`)}}function AP(C,g={}){var I,e;const t=l.ref(!1),i=l.shallowRef(null);let A=0,n=!0;if(ue){const s=typeof g=="function"?{onDrop:g}:g,o=(I=s.multiple)!=null?I:!0,a=(e=s.preventDefaultForUnhandled)!=null?e:!1,d=h=>{var G,w;const B=Array.from((w=(G=h.dataTransfer)==null?void 0:G.files)!=null?w:[]);return B.length===0?null:o?B:[B[0]]},m=h=>{if(s.dataTypes){const G=l.unref(s.dataTypes);return typeof G=="function"?G(h):G?G.some(w=>h.includes(w)):!0}return!0},Z=h=>{var G,w;const B=Array.from((w=(G=h.dataTransfer)==null?void 0:G.items)!=null?w:[]),p=B.map(R=>R.type),Y=m(p),N=o||B.length<=1;return Y&&N},u=(h,G)=>{var w,B,p,Y;if(n=Z(h),!n){a&&h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="none");return}h.preventDefault(),h.dataTransfer&&(h.dataTransfer.dropEffect="copy");const N=d(h);switch(G){case"enter":A+=1,t.value=!0,(w=s.onEnter)==null||w.call(s,null,h);break;case"over":(B=s.onOver)==null||B.call(s,null,h);break;case"leave":A-=1,A===0&&(t.value=!1),(p=s.onLeave)==null||p.call(s,null,h);break;case"drop":A=0,t.value=!1,n&&(i.value=N,(Y=s.onDrop)==null||Y.call(s,N,h));break}};hg(C,"dragenter",h=>u(h,"enter")),hg(C,"dragover",h=>u(h,"over")),hg(C,"dragleave",h=>u(h,"leave")),hg(C,"drop",h=>u(h,"drop"))}return{files:i,isOverDropZone:t}}function Kw(C,g,I={}){const{window:e=Pg,...t}=I;let i;const A=TI(()=>e&&"ResizeObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},s=l.computed(()=>{const d=_(C);return Array.isArray(d)?d.map(m=>KI(m)):[KI(d)]}),o=l.watch(s,d=>{if(n(),A.value&&e){i=new ResizeObserver(g);for(const m of d)m&&i.observe(m,t)}},{immediate:!0,flush:"post"}),a=()=>{n(),o()};return GI(a),{isSupported:A,stop:a}}function Vf(C,g={}){const{reset:I=!0,windowResize:e=!0,windowScroll:t=!0,immediate:i=!0,updateTiming:A="sync"}=g,n=l.ref(0),s=l.ref(0),o=l.ref(0),a=l.ref(0),d=l.ref(0),m=l.ref(0),Z=l.ref(0),u=l.ref(0);function h(){const w=KI(C);if(!w){I&&(n.value=0,s.value=0,o.value=0,a.value=0,d.value=0,m.value=0,Z.value=0,u.value=0);return}const B=w.getBoundingClientRect();n.value=B.height,s.value=B.bottom,o.value=B.left,a.value=B.right,d.value=B.top,m.value=B.width,Z.value=B.x,u.value=B.y}function G(){A==="sync"?h():A==="next-frame"&&requestAnimationFrame(()=>h())}return Kw(C,G),l.watch(()=>KI(C),w=>!w&&G()),Xr(C,G,{attributeFilter:["style","class"]}),t&&hg("scroll",G,{capture:!0,passive:!0}),e&&hg("resize",G,{passive:!0}),ne(()=>{i&&G()}),{height:n,bottom:s,left:o,right:a,top:d,width:m,x:Z,y:u,update:G}}function nP(C){const{x:g,y:I,document:e=Pt,multiple:t,interval:i="requestAnimationFrame",immediate:A=!0}=C,n=TI(()=>_(t)?e&&"elementsFromPoint"in e:e&&"elementFromPoint"in e),s=l.ref(null),o=()=>{var d,m;s.value=_(t)?(d=e==null?void 0:e.elementsFromPoint(_(g),_(I)))!=null?d:[]:(m=e==null?void 0:e.elementFromPoint(_(g),_(I)))!=null?m:null},a=i==="requestAnimationFrame"?Ld(o,{immediate:A}):xo(o,i,{immediate:A});return{isSupported:n,element:s,...a}}function lP(C,g={}){const{delayEnter:I=0,delayLeave:e=0,window:t=Pg}=g,i=l.ref(!1);let A;const n=s=>{const o=s?I:e;A&&(clearTimeout(A),A=void 0),o?A=setTimeout(()=>i.value=s,o):i.value=s};return t&&(hg(C,"mouseenter",()=>n(!0),{passive:!0}),hg(C,"mouseleave",()=>n(!1),{passive:!0})),i}function Jy(C,g={width:0,height:0},I={}){const{window:e=Pg,box:t="content-box"}=I,i=l.computed(()=>{var d,m;return(m=(d=KI(C))==null?void 0:d.namespaceURI)==null?void 0:m.includes("svg")}),A=l.ref(g.width),n=l.ref(g.height),{stop:s}=Kw(C,([d])=>{const m=t==="border-box"?d.borderBoxSize:t==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(e&&i.value){const Z=KI(C);if(Z){const u=Z.getBoundingClientRect();A.value=u.width,n.value=u.height}}else if(m){const Z=Array.isArray(m)?m:[m];A.value=Z.reduce((u,{inlineSize:h})=>u+h,0),n.value=Z.reduce((u,{blockSize:h})=>u+h,0)}else A.value=d.contentRect.width,n.value=d.contentRect.height},I);ne(()=>{const d=KI(C);d&&(A.value="offsetWidth"in d?d.offsetWidth:g.width,n.value="offsetHeight"in d?d.offsetHeight:g.height)});const o=l.watch(()=>KI(C),d=>{A.value=d?g.width:0,n.value=d?g.height:0});function a(){s(),o()}return{width:A,height:n,stop:a}}function Xf(C,g,I={}){const{root:e,rootMargin:t="0px",threshold:i=0,window:A=Pg,immediate:n=!0}=I,s=TI(()=>A&&"IntersectionObserver"in A),o=l.computed(()=>{const u=_(C);return(Array.isArray(u)?u:[u]).map(KI).filter(Db)});let a=NI;const d=l.ref(n),m=s.value?l.watch(()=>[o.value,KI(e),d.value],([u,h])=>{if(a(),!d.value||!u.length)return;const G=new IntersectionObserver(g,{root:KI(h),rootMargin:t,threshold:i});u.forEach(w=>w&&G.observe(w)),a=()=>{G.disconnect(),a=NI}},{immediate:n,flush:"post"}):NI,Z=()=>{a(),m(),d.value=!1};return GI(Z),{isSupported:s,isActive:d,pause(){a(),d.value=!1},resume(){d.value=!0},stop:Z}}function xy(C,g={}){const{window:I=Pg,scrollTarget:e,threshold:t=0}=g,i=l.ref(!1);return Xf(C,A=>{let n=i.value,s=0;for(const o of A)o.time>=s&&(s=o.time,n=o.isIntersecting);i.value=n},{root:e,window:I,threshold:t}),i}const Lb=new Map;function sP(C){const g=l.getCurrentScope();function I(n){var s;const o=Lb.get(C)||new Set;o.add(n),Lb.set(C,o);const a=()=>t(n);return(s=g==null?void 0:g.cleanups)==null||s.push(a),a}function e(n){function s(...o){t(s),n(...o)}return I(s)}function t(n){const s=Lb.get(C);s&&(s.delete(n),s.size||i())}function i(){Lb.delete(C)}function A(n,s){var o;(o=Lb.get(C))==null||o.forEach(a=>a(n,s))}return{on:I,once:e,off:t,emit:A,reset:i}}function oP(C){return C===!0?{}:C}function aP(C,g=[],I={}){const e=l.ref(null),t=l.ref(null),i=l.ref("CONNECTING"),A=l.ref(null),n=l.shallowRef(null),s=PC(C),o=l.shallowRef(null);let a=!1,d=0;const{withCredentials:m=!1,immediate:Z=!0}=I,u=()=>{ue&&A.value&&(A.value.close(),A.value=null,i.value="CLOSED",a=!0)},h=()=>{if(a||typeof s.value>"u")return;const w=new EventSource(s.value,{withCredentials:m});i.value="CONNECTING",A.value=w,w.onopen=()=>{i.value="OPEN",n.value=null},w.onerror=B=>{if(i.value="CLOSED",n.value=B,w.readyState===2&&!a&&I.autoReconnect){w.close();const{retries:p=-1,delay:Y=1e3,onFailed:N}=oP(I.autoReconnect);d+=1,typeof p=="number"&&(p<0||d<p)||typeof p=="function"&&p()?setTimeout(h,Y):N==null||N()}},w.onmessage=B=>{e.value=null,t.value=B.data,o.value=B.lastEventId};for(const B of g)hg(w,B,p=>{e.value=B,t.value=p.data||null})},G=()=>{ue&&(u(),a=!1,d=0,h())};return Z&&l.watch(s,G,{immediate:!0}),GI(u),{eventSource:A,event:e,data:t,status:i,error:n,open:G,close:u,lastEventId:o}}function Rf(C={}){const{initialValue:g=""}=C,I=TI(()=>typeof window<"u"&&"EyeDropper"in window),e=l.ref(g);async function t(i){if(!I.value)return;const n=await new window.EyeDropper().open(i);return e.value=n.sRGBHex,n}return{isSupported:I,sRGBHex:e,open:t}}function dP(C=null,g={}){const{baseUrl:I="",rel:e="icon",document:t=Pt}=g,i=PC(C),A=n=>{const s=t==null?void 0:t.head.querySelectorAll(`link[rel*="${e}"]`);if(!s||s.length===0){const o=t==null?void 0:t.createElement("link");o&&(o.rel=e,o.href=`${I}${n}`,o.type=`image/${n.split(".").pop()}`,t==null||t.head.append(o));return}s==null||s.forEach(o=>o.href=`${I}${n}`)};return l.watch(i,(n,s)=>{typeof n=="string"&&n!==s&&A(n)},{immediate:!0}),i}const cP={json:"application/json",text:"text/plain"};function zw(C){return C&&Ny(C,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const mP=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function rP(C){return mP.test(C)}function vb(C){return typeof Headers<"u"&&C instanceof Headers?Object.fromEntries(C.entries()):C}function Rr(C,...g){return C==="overwrite"?async I=>{const e=g[g.length-1];return e?{...I,...await e(I)}:I}:async I=>{for(const e of g)e&&(I={...I,...await e(I)});return I}}function ZP(C={}){const g=C.combination||"chain",I=C.options||{},e=C.fetchOptions||{};function t(i,...A){const n=l.computed(()=>{const a=_(C.baseUrl),d=_(i);return a&&!rP(d)?bP(a,d):d});let s=I,o=e;return A.length>0&&(zw(A[0])?s={...s,...A[0],beforeFetch:Rr(g,I.beforeFetch,A[0].beforeFetch),afterFetch:Rr(g,I.afterFetch,A[0].afterFetch),onFetchError:Rr(g,I.onFetchError,A[0].onFetchError)}:o={...o,...A[0],headers:{...vb(o.headers)||{},...vb(A[0].headers)||{}}}),A.length>1&&zw(A[1])&&(s={...s,...A[1],beforeFetch:Rr(g,I.beforeFetch,A[1].beforeFetch),afterFetch:Rr(g,I.afterFetch,A[1].afterFetch),onFetchError:Rr(g,I.onFetchError,A[1].onFetchError)}),Mf(n,o,s)}return t}function Mf(C,...g){var I;const e=typeof AbortController=="function";let t={},i={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const A={method:"GET",type:"text",payload:void 0};g.length>0&&(zw(g[0])?i={...i,...g[0]}:t=g[0]),g.length>1&&zw(g[1])&&(i={...i,...g[1]});const{fetch:n=(I=Pg)==null?void 0:I.fetch,initialData:s,timeout:o}=i,a=ct(),d=ct(),m=ct(),Z=l.ref(!1),u=l.ref(!1),h=l.ref(!1),G=l.ref(null),w=l.shallowRef(null),B=l.shallowRef(null),p=l.shallowRef(s||null),Y=l.computed(()=>e&&u.value);let N,R;const X=()=>{e&&(N==null||N.abort(),N=new AbortController,N.signal.onabort=()=>h.value=!0,t={...t,signal:N.signal})},K=T=>{u.value=T,Z.value=!T};o&&(R=Nr(X,o,{immediate:!1}));let D=0;const k=async(T=!1)=>{var q,cg;X(),K(!0),B.value=null,G.value=null,h.value=!1,D+=1;const og=D,Wg={method:A.method,headers:{}};if(A.payload){const kg=vb(Wg.headers),Vg=_(A.payload),gI=Object.getPrototypeOf(Vg);!A.payloadType&&Vg&&(gI===Object.prototype||Array.isArray(gI))&&!(Vg instanceof FormData)&&(A.payloadType="json"),A.payloadType&&(kg["Content-Type"]=(q=cP[A.payloadType])!=null?q:A.payloadType),Wg.body=A.payloadType==="json"?JSON.stringify(Vg):Vg}let fg=!1;const Rg={url:_(C),options:{...Wg,...t},cancel:()=>{fg=!0}};if(i.beforeFetch&&Object.assign(Rg,await i.beforeFetch(Rg)),fg||!n)return K(!1),Promise.resolve(null);let Bg=null;return R&&R.start(),n(Rg.url,{...Wg,...Rg.options,headers:{...vb(Wg.headers),...vb((cg=Rg.options)==null?void 0:cg.headers)}}).then(async kg=>{if(w.value=kg,G.value=kg.status,Bg=await kg.clone()[A.type](),!kg.ok)throw p.value=s||null,new Error(kg.statusText);return i.afterFetch&&({data:Bg}=await i.afterFetch({data:Bg,response:kg})),p.value=Bg,a.trigger(kg),kg}).catch(async kg=>{let Vg=kg.message||kg.name;if(i.onFetchError&&({error:Vg,data:Bg}=await i.onFetchError({data:Bg,error:kg,response:w.value})),B.value=Vg,i.updateDataOnError&&(p.value=Bg),d.trigger(kg),T)throw kg;return null}).finally(()=>{og===D&&K(!1),R&&R.stop(),m.trigger(null)})},z=PC(i.refetch);l.watch([z,PC(C)],([T])=>T&&k(),{deep:!0});const v={isFinished:l.readonly(Z),isFetching:l.readonly(u),statusCode:G,response:w,error:B,data:p,canAbort:Y,aborted:h,abort:X,execute:k,onFetchResponse:a.on,onFetchError:d.on,onFetchFinally:m.on,get:O("GET"),put:O("PUT"),post:O("POST"),delete:O("DELETE"),patch:O("PATCH"),head:O("HEAD"),options:O("OPTIONS"),json:U("json"),text:U("text"),blob:U("blob"),arrayBuffer:U("arrayBuffer"),formData:U("formData")};function O(T){return(q,cg)=>{if(!u.value)return A.method=T,A.payload=q,A.payloadType=cg,l.isRef(A.payload)&&l.watch([z,PC(A.payload)],([og])=>og&&k(),{deep:!0}),{...v,then(og,Wg){return Cg().then(og,Wg)}}}}function Cg(){return new Promise((T,q)=>{yr(Z).toBe(!0).then(()=>T(v)).catch(q)})}function U(T){return()=>{if(!u.value)return A.type=T,{...v,then(q,cg){return Cg().then(q,cg)}}}}return i.immediate&&Promise.resolve().then(()=>k()),{...v,then(T,q){return Cg().then(T,q)}}}function bP(C,g){return!C.endsWith("/")&&!g.startsWith("/")?`${C}/${g}`:C.endsWith("/")&&g.startsWith("/")?`${C.slice(0,-1)}${g}`:`${C}${g}`}const uP={multiple:!0,accept:"*",reset:!1,directory:!1};function hP(C={}){const{document:g=Pt}=C,I=l.ref(null),{on:e,trigger:t}=ct(),{on:i,trigger:A}=ct();let n;g&&(n=g.createElement("input"),n.type="file",n.onchange=a=>{const d=a.target;I.value=d.files,t(I.value)},n.oncancel=()=>{A()});const s=()=>{I.value=null,n&&n.value&&(n.value="",t(null))},o=a=>{if(!n)return;const d={...uP,...C,...a};n.multiple=d.multiple,n.accept=d.accept,n.webkitdirectory=d.directory,LH(d,"capture")&&(n.capture=d.capture),d.reset&&s(),n.click()};return{files:l.readonly(I),open:o,reset:s,onCancel:i,onChange:e}}function GP(C={}){const{window:g=Pg,dataType:I="Text"}=C,e=g,t=TI(()=>e&&"showSaveFilePicker"in e&&"showOpenFilePicker"in e),i=l.ref(),A=l.ref(),n=l.ref(),s=l.computed(()=>{var B,p;return(p=(B=n.value)==null?void 0:B.name)!=null?p:""}),o=l.computed(()=>{var B,p;return(p=(B=n.value)==null?void 0:B.type)!=null?p:""}),a=l.computed(()=>{var B,p;return(p=(B=n.value)==null?void 0:B.size)!=null?p:0}),d=l.computed(()=>{var B,p;return(p=(B=n.value)==null?void 0:B.lastModified)!=null?p:0});async function m(B={}){if(!t.value)return;const[p]=await e.showOpenFilePicker({..._(C),...B});i.value=p,await w()}async function Z(B={}){t.value&&(i.value=await e.showSaveFilePicker({...C,...B}),A.value=void 0,await w())}async function u(B={}){if(t.value){if(!i.value)return h(B);if(A.value){const p=await i.value.createWritable();await p.write(A.value),await p.close()}await G()}}async function h(B={}){if(t.value){if(i.value=await e.showSaveFilePicker({...C,...B}),A.value){const p=await i.value.createWritable();await p.write(A.value),await p.close()}await G()}}async function G(){var B;n.value=await((B=i.value)==null?void 0:B.getFile())}async function w(){var B,p;await G();const Y=_(I);Y==="Text"?A.value=await((B=n.value)==null?void 0:B.text()):Y==="ArrayBuffer"?A.value=await((p=n.value)==null?void 0:p.arrayBuffer()):Y==="Blob"&&(A.value=n.value)}return l.watch(()=>_(I),w),{isSupported:t,data:A,file:n,fileName:s,fileMIME:o,fileSize:a,fileLastModified:d,open:m,create:Z,save:u,saveAs:h,updateData:w}}function wP(C,g={}){const{initialValue:I=!1,focusVisible:e=!1,preventScroll:t=!1}=g,i=l.ref(!1),A=l.computed(()=>KI(C));hg(A,"focus",s=>{var o,a;(!e||(a=(o=s.target).matches)!=null&&a.call(o,":focus-visible"))&&(i.value=!0)}),hg(A,"blur",()=>i.value=!1);const n=l.computed({get:()=>i.value,set(s){var o,a;!s&&i.value?(o=A.value)==null||o.blur():s&&!i.value&&((a=A.value)==null||a.focus({preventScroll:t}))}});return l.watch(A,()=>{n.value=I},{immediate:!0,flush:"post"}),{focused:n}}const WP="focusin",BP="focusout";function pP(C,g={}){const{window:I=Pg}=g,e=l.computed(()=>KI(C)),t=l.ref(!1),i=l.computed(()=>t.value),A=fy(g);return!I||!A.value?{focused:i}:(hg(e,WP,()=>t.value=!0),hg(e,BP,()=>t.value=!1),{focused:i})}function YP(C){var g;const I=l.ref(0);if(typeof performance>"u")return I;const e=(g=C==null?void 0:C.every)!=null?g:10;let t=performance.now(),i=0;return Ld(()=>{if(i+=1,i>=e){const A=performance.now(),n=A-t;I.value=Math.round(1e3/(n/i)),t=A,i=0}}),I}const Hf=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function ff(C,g={}){const{document:I=Pt,autoExit:e=!1}=g,t=l.computed(()=>{var w;return(w=KI(C))!=null?w:I==null?void 0:I.querySelector("html")}),i=l.ref(!1),A=l.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(w=>I&&w in I||t.value&&w in t.value)),n=l.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(w=>I&&w in I||t.value&&w in t.value)),s=l.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(w=>I&&w in I||t.value&&w in t.value)),o=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(w=>I&&w in I),a=TI(()=>t.value&&I&&A.value!==void 0&&n.value!==void 0&&s.value!==void 0),d=()=>o?(I==null?void 0:I[o])===t.value:!1,m=()=>{if(s.value){if(I&&I[s.value]!=null)return I[s.value];{const w=t.value;if((w==null?void 0:w[s.value])!=null)return!!w[s.value]}}return!1};async function Z(){if(!(!a.value||!i.value)){if(n.value)if((I==null?void 0:I[n.value])!=null)await I[n.value]();else{const w=t.value;(w==null?void 0:w[n.value])!=null&&await w[n.value]()}i.value=!1}}async function u(){if(!a.value||i.value)return;m()&&await Z();const w=t.value;A.value&&(w==null?void 0:w[A.value])!=null&&(await w[A.value](),i.value=!0)}async function h(){await(i.value?Z():u())}const G=()=>{const w=m();(!w||w&&d())&&(i.value=w)};return hg(I,Hf,G,!1),hg(()=>KI(t),Hf,G,!1),e&&GI(Z),{isSupported:a,isFullscreen:i,enter:u,exit:Z,toggle:h}}function yP(C){return l.computed(()=>C.value?{buttons:{a:C.value.buttons[0],b:C.value.buttons[1],x:C.value.buttons[2],y:C.value.buttons[3]},bumper:{left:C.value.buttons[4],right:C.value.buttons[5]},triggers:{left:C.value.buttons[6],right:C.value.buttons[7]},stick:{left:{horizontal:C.value.axes[0],vertical:C.value.axes[1],button:C.value.buttons[10]},right:{horizontal:C.value.axes[2],vertical:C.value.axes[3],button:C.value.buttons[11]}},dpad:{up:C.value.buttons[12],down:C.value.buttons[13],left:C.value.buttons[14],right:C.value.buttons[15]},back:C.value.buttons[8],start:C.value.buttons[9]}:null)}function NP(C={}){const{navigator:g=yi}=C,I=TI(()=>g&&"getGamepads"in g),e=l.ref([]),t=ct(),i=ct(),A=Z=>{const u=[],h="vibrationActuator"in Z?Z.vibrationActuator:null;return h&&u.push(h),Z.hapticActuators&&u.push(...Z.hapticActuators),{id:Z.id,index:Z.index,connected:Z.connected,mapping:Z.mapping,timestamp:Z.timestamp,vibrationActuator:Z.vibrationActuator,hapticActuators:u,axes:Z.axes.map(G=>G),buttons:Z.buttons.map(G=>({pressed:G.pressed,touched:G.touched,value:G.value}))}},n=()=>{const Z=(g==null?void 0:g.getGamepads())||[];for(const u of Z)u&&e.value[u.index]&&(e.value[u.index]=A(u))},{isActive:s,pause:o,resume:a}=Ld(n),d=Z=>{e.value.some(({index:u})=>u===Z.index)||(e.value.push(A(Z)),t.trigger(Z.index)),a()},m=Z=>{e.value=e.value.filter(u=>u.index!==Z.index),i.trigger(Z.index)};return hg("gamepadconnected",Z=>d(Z.gamepad)),hg("gamepaddisconnected",Z=>m(Z.gamepad)),ne(()=>{const Z=(g==null?void 0:g.getGamepads())||[];for(const u of Z)u&&e.value[u.index]&&d(u)}),o(),{isSupported:I,onConnected:t.on,onDisconnected:i.on,gamepads:e,pause:o,resume:a,isActive:s}}function Sf(C={}){const{enableHighAccuracy:g=!0,maximumAge:I=3e4,timeout:e=27e3,navigator:t=yi,immediate:i=!0}=C,A=TI(()=>t&&"geolocation"in t),n=l.ref(null),s=l.shallowRef(null),o=l.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function a(u){n.value=u.timestamp,o.value=u.coords,s.value=null}let d;function m(){A.value&&(d=t.geolocation.watchPosition(a,u=>s.value=u,{enableHighAccuracy:g,maximumAge:I,timeout:e}))}i&&m();function Z(){d&&t&&t.geolocation.clearWatch(d)}return GI(()=>{Z()}),{isSupported:A,coords:o,locatedAt:n,error:s,resume:m,pause:Z}}const VP=["mousemove","mousedown","resize","keydown","touchstart","wheel"],XP=6e4;function Df(C=XP,g={}){const{initialState:I=!1,listenForVisibilityChange:e=!0,events:t=VP,window:i=Pg,eventFilter:A=Fb(50)}=g,n=l.ref(I),s=l.ref(Kd());let o;const a=()=>{n.value=!1,clearTimeout(o),o=setTimeout(()=>n.value=!0,C)},d=Jd(A,()=>{s.value=Kd(),a()});if(i){const m=i.document;for(const Z of t)hg(i,Z,d,{passive:!0});e&&hg(m,"visibilitychange",()=>{m.hidden||d()}),a()}return{idle:n,lastActive:s,reset:a}}async function RP(C){return new Promise((g,I)=>{const e=new Image,{src:t,srcset:i,sizes:A,class:n,loading:s,crossorigin:o,referrerPolicy:a}=C;e.src=t,i&&(e.srcset=i),A&&(e.sizes=A),n&&(e.className=n),s&&(e.loading=s),o&&(e.crossOrigin=o),a&&(e.referrerPolicy=a),e.onload=()=>g(e),e.onerror=I})}function MP(C,g={}){const I=af(()=>RP(_(C)),void 0,{resetOnExecute:!0,...g});return l.watch(()=>_(C),()=>I.execute(g.delay),{deep:!0}),I}function Jw(C){return typeof Window<"u"&&C instanceof Window?C.document.documentElement:typeof Document<"u"&&C instanceof Document?C.documentElement:C}const kf=1;function Ff(C,g={}){const{throttle:I=0,idle:e=200,onStop:t=NI,onScroll:i=NI,offset:A={left:0,right:0,top:0,bottom:0},eventListenerOptions:n={capture:!1,passive:!0},behavior:s="auto",window:o=Pg,onError:a=X=>{console.error(X)}}=g,d=l.ref(0),m=l.ref(0),Z=l.computed({get(){return d.value},set(X){h(X,void 0)}}),u=l.computed({get(){return m.value},set(X){h(void 0,X)}});function h(X,K){var D,k,z,v;if(!o)return;const O=_(C);if(!O)return;(z=O instanceof Document?o.document.body:O)==null||z.scrollTo({top:(D=_(K))!=null?D:u.value,left:(k=_(X))!=null?k:Z.value,behavior:_(s)});const Cg=((v=O==null?void 0:O.document)==null?void 0:v.documentElement)||(O==null?void 0:O.documentElement)||O;Z!=null&&(d.value=Cg.scrollLeft),u!=null&&(m.value=Cg.scrollTop)}const G=l.ref(!1),w=l.reactive({left:!0,right:!1,top:!0,bottom:!1}),B=l.reactive({left:!1,right:!1,top:!1,bottom:!1}),p=X=>{G.value&&(G.value=!1,B.left=!1,B.right=!1,B.top=!1,B.bottom=!1,t(X))},Y=pr(p,I+e),N=X=>{var K;if(!o)return;const D=((K=X==null?void 0:X.document)==null?void 0:K.documentElement)||(X==null?void 0:X.documentElement)||KI(X),{display:k,flexDirection:z}=getComputedStyle(D),v=D.scrollLeft;B.left=v<d.value,B.right=v>d.value;const O=Math.abs(v)<=(A.left||0),Cg=Math.abs(v)+D.clientWidth>=D.scrollWidth-(A.right||0)-kf;k==="flex"&&z==="row-reverse"?(w.left=Cg,w.right=O):(w.left=O,w.right=Cg),d.value=v;let U=D.scrollTop;X===o.document&&!U&&(U=o.document.body.scrollTop),B.top=U<m.value,B.bottom=U>m.value;const T=Math.abs(U)<=(A.top||0),q=Math.abs(U)+D.clientHeight>=D.scrollHeight-(A.bottom||0)-kf;k==="flex"&&z==="column-reverse"?(w.top=q,w.bottom=T):(w.top=T,w.bottom=q),m.value=U},R=X=>{var K;if(!o)return;const D=(K=X.target.documentElement)!=null?K:X.target;N(D),G.value=!0,Y(X),i(X)};return hg(C,"scroll",I?Rw(R,I,!0,!1):R,n),ne(()=>{try{const X=_(C);if(!X)return;N(X)}catch(X){a(X)}}),hg(C,"scrollend",p,n),{x:Z,y:u,isScrolling:G,arrivedState:w,directions:B,measure(){const X=_(C);o&&X&&N(X)}}}function HP(C,g,I={}){var e;const{direction:t="bottom",interval:i=100,canLoadMore:A=()=>!0}=I,n=l.reactive(Ff(C,{...I,offset:{[t]:(e=I.distance)!=null?e:0,...I.offset}})),s=l.ref(),o=l.computed(()=>!!s.value),a=l.computed(()=>Jw(_(C))),d=xy(a);function m(){if(n.measure(),!a.value||!d.value||!A(a.value))return;const{scrollHeight:u,clientHeight:h,scrollWidth:G,clientWidth:w}=a.value,B=t==="bottom"||t==="top"?u<=h:G<=w;(n.arrivedState[t]||B)&&(s.value||(s.value=Promise.all([g(n),new Promise(p=>setTimeout(p,i))]).finally(()=>{s.value=null,l.nextTick(()=>m())})))}const Z=l.watch(()=>[n.arrivedState[t],d.value],m,{immediate:!0});return Mw(Z),{isLoading:o,reset(){l.nextTick(()=>m())}}}const fP=["mousedown","mouseup","keydown","keyup"];function SP(C,g={}){const{events:I=fP,document:e=Pt,initial:t=null}=g,i=l.ref(t);return e&&I.forEach(A=>{hg(e,A,n=>{typeof n.getModifierState=="function"&&(i.value=n.getModifierState(C))})}),i}function DP(C,g,I={}){const{window:e=Pg}=I;return xb(C,g,e==null?void 0:e.localStorage,I)}const Kf={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function kP(C={}){const{reactive:g=!1,target:I=Pg,aliasMap:e=Kf,passive:t=!0,onEventFired:i=NI}=C,A=l.reactive(new Set),n={toJSON(){return{}},current:A},s=g?l.reactive(n):n,o=new Set,a=new Set;function d(h,G){h in s&&(g?s[h]=G:s[h].value=G)}function m(){A.clear();for(const h of a)d(h,!1)}function Z(h,G){var w,B;const p=(w=h.key)==null?void 0:w.toLowerCase(),N=[(B=h.code)==null?void 0:B.toLowerCase(),p].filter(Boolean);p&&(G?A.add(p):A.delete(p));for(const R of N)a.add(R),d(R,G);p==="meta"&&!G?(o.forEach(R=>{A.delete(R),d(R,!1)}),o.clear()):typeof h.getModifierState=="function"&&h.getModifierState("Meta")&&G&&[...A,...N].forEach(R=>o.add(R))}hg(I,"keydown",h=>(Z(h,!0),i(h)),{passive:t}),hg(I,"keyup",h=>(Z(h,!1),i(h)),{passive:t}),hg("blur",m,{passive:!0}),hg("focus",m,{passive:!0});const u=new Proxy(s,{get(h,G,w){if(typeof G!="string")return Reflect.get(h,G,w);if(G=G.toLowerCase(),G in e&&(G=e[G]),!(G in s))if(/[+_-]/.test(G)){const p=G.split(/[+_-]/g).map(Y=>Y.trim());s[G]=l.computed(()=>p.every(Y=>_(u[Y])))}else s[G]=l.ref(!1);const B=Reflect.get(h,G,w);return g?_(B):B}});return u}function Ty(C,g){_(C)&&g(_(C))}function FP(C){let g=[];for(let I=0;I<C.length;++I)g=[...g,[C.start(I),C.end(I)]];return g}function Ly(C){return Array.from(C).map(({label:g,kind:I,language:e,mode:t,activeCues:i,cues:A,inBandMetadataTrackDispatchType:n},s)=>({id:s,label:g,kind:I,language:e,mode:t,activeCues:i,cues:A,inBandMetadataTrackDispatchType:n}))}const KP={src:"",tracks:[]};function zP(C,g={}){C=PC(C),g={...KP,...g};const{document:I=Pt}=g,e=l.ref(0),t=l.ref(0),i=l.ref(!1),A=l.ref(1),n=l.ref(!1),s=l.ref(!1),o=l.ref(!1),a=l.ref(1),d=l.ref(!1),m=l.ref([]),Z=l.ref([]),u=l.ref(-1),h=l.ref(!1),G=l.ref(!1),w=I&&"pictureInPictureEnabled"in I,B=ct(),p=ct(),Y=z=>{Ty(C,v=>{if(z){const O=typeof z=="number"?z:z.id;v.textTracks[O].mode="disabled"}else for(let O=0;O<v.textTracks.length;++O)v.textTracks[O].mode="disabled";u.value=-1})},N=(z,v=!0)=>{Ty(C,O=>{const Cg=typeof z=="number"?z:z.id;v&&Y(),O.textTracks[Cg].mode="showing",u.value=Cg})},R=()=>new Promise((z,v)=>{Ty(C,async O=>{w&&(h.value?I.exitPictureInPicture().then(z).catch(v):O.requestPictureInPicture().then(z).catch(v))})});l.watchEffect(()=>{if(!I)return;const z=_(C);if(!z)return;const v=_(g.src);let O=[];v&&(typeof v=="string"?O=[{src:v}]:Array.isArray(v)?O=v:Wr(v)&&(O=[v]),z.querySelectorAll("source").forEach(Cg=>{Cg.removeEventListener("error",B.trigger),Cg.remove()}),O.forEach(({src:Cg,type:U})=>{const T=I.createElement("source");T.setAttribute("src",Cg),T.setAttribute("type",U||""),T.addEventListener("error",B.trigger),z.appendChild(T)}),z.load())}),GI(()=>{const z=_(C);z&&z.querySelectorAll("source").forEach(v=>v.removeEventListener("error",B.trigger))}),l.watch([C,A],()=>{const z=_(C);z&&(z.volume=A.value)}),l.watch([C,G],()=>{const z=_(C);z&&(z.muted=G.value)}),l.watch([C,a],()=>{const z=_(C);z&&(z.playbackRate=a.value)}),l.watchEffect(()=>{if(!I)return;const z=_(g.tracks),v=_(C);!z||!z.length||!v||(v.querySelectorAll("track").forEach(O=>O.remove()),z.forEach(({default:O,kind:Cg,label:U,src:T,srcLang:q},cg)=>{const og=I.createElement("track");og.default=O||!1,og.kind=Cg,og.label=U,og.src=T,og.srclang=q,og.default&&(u.value=cg),v.appendChild(og)}))});const{ignoreUpdates:X}=Vr(e,z=>{const v=_(C);v&&(v.currentTime=z)}),{ignoreUpdates:K}=Vr(o,z=>{const v=_(C);v&&(z?v.play().catch(O=>{throw p.trigger(O),O}):v.pause())});hg(C,"timeupdate",()=>X(()=>e.value=_(C).currentTime)),hg(C,"durationchange",()=>t.value=_(C).duration),hg(C,"progress",()=>m.value=FP(_(C).buffered)),hg(C,"seeking",()=>i.value=!0),hg(C,"seeked",()=>i.value=!1),hg(C,["waiting","loadstart"],()=>{n.value=!0,K(()=>o.value=!1)}),hg(C,"loadeddata",()=>n.value=!1),hg(C,"playing",()=>{n.value=!1,s.value=!1,K(()=>o.value=!0)}),hg(C,"ratechange",()=>a.value=_(C).playbackRate),hg(C,"stalled",()=>d.value=!0),hg(C,"ended",()=>s.value=!0),hg(C,"pause",()=>K(()=>o.value=!1)),hg(C,"play",()=>K(()=>o.value=!0)),hg(C,"enterpictureinpicture",()=>h.value=!0),hg(C,"leavepictureinpicture",()=>h.value=!1),hg(C,"volumechange",()=>{const z=_(C);z&&(A.value=z.volume,G.value=z.muted)});const D=[],k=l.watch([C],()=>{const z=_(C);z&&(k(),D[0]=hg(z.textTracks,"addtrack",()=>Z.value=Ly(z.textTracks)),D[1]=hg(z.textTracks,"removetrack",()=>Z.value=Ly(z.textTracks)),D[2]=hg(z.textTracks,"change",()=>Z.value=Ly(z.textTracks)))});return GI(()=>D.forEach(z=>z())),{currentTime:e,duration:t,waiting:n,seeking:i,ended:s,stalled:d,buffered:m,playing:o,rate:a,volume:A,muted:G,tracks:Z,selectedTrack:u,enableTrack:N,disableTrack:Y,supportsPictureInPicture:w,togglePictureInPicture:R,isPictureInPicture:h,onSourceError:B.on,onPlaybackError:p.on}}function JP(C,g){const e=g!=null&&g.cache?l.shallowReactive(g.cache):l.shallowReactive(new Map),t=(...a)=>g!=null&&g.getKey?g.getKey(...a):JSON.stringify(a),i=(a,...d)=>(e.set(a,C(...d)),e.get(a)),A=(...a)=>i(t(...a),...a),n=(...a)=>{e.delete(t(...a))},s=()=>{e.clear()},o=(...a)=>{const d=t(...a);return e.has(d)?e.get(d):i(d,...a)};return o.load=A,o.delete=n,o.clear=s,o.generateKey=t,o.cache=e,o}function xP(C={}){const g=l.ref(),I=TI(()=>typeof performance<"u"&&"memory"in performance);if(I.value){const{interval:e=1e3}=C;xo(()=>{g.value=performance.memory},e,{immediate:C.immediate,immediateCallback:C.immediateCallback})}return{isSupported:I,memory:g}}const TP={page:C=>[C.pageX,C.pageY],client:C=>[C.clientX,C.clientY],screen:C=>[C.screenX,C.screenY],movement:C=>C instanceof Touch?null:[C.movementX,C.movementY]};function vy(C={}){const{type:g="page",touch:I=!0,resetOnTouchEnds:e=!1,initialValue:t={x:0,y:0},window:i=Pg,target:A=i,scroll:n=!0,eventFilter:s}=C;let o=null,a=0,d=0;const m=l.ref(t.x),Z=l.ref(t.y),u=l.ref(null),h=typeof g=="function"?g:TP[g],G=X=>{const K=h(X);o=X,K&&([m.value,Z.value]=K,u.value="mouse"),i&&(a=i.scrollX,d=i.scrollY)},w=X=>{if(X.touches.length>0){const K=h(X.touches[0]);K&&([m.value,Z.value]=K,u.value="touch")}},B=()=>{if(!o||!i)return;const X=h(o);o instanceof MouseEvent&&X&&(m.value=X[0]+i.scrollX-a,Z.value=X[1]+i.scrollY-d)},p=()=>{m.value=t.x,Z.value=t.y},Y=s?X=>s(()=>G(X),{}):X=>G(X),N=s?X=>s(()=>w(X),{}):X=>w(X),R=s?()=>s(()=>B(),{}):()=>B();if(A){const X={passive:!0};hg(A,["mousemove","dragover"],Y,X),I&&g!=="movement"&&(hg(A,["touchstart","touchmove"],N,X),e&&hg(A,"touchend",p,X)),n&&g==="page"&&hg(i,"scroll",R,{passive:!0})}return{x:m,y:Z,sourceType:u}}function jy(C,g={}){const{handleOutside:I=!0,window:e=Pg}=g,t=g.type||"page",{x:i,y:A,sourceType:n}=vy(g),s=l.ref(C??(e==null?void 0:e.document.body)),o=l.ref(0),a=l.ref(0),d=l.ref(0),m=l.ref(0),Z=l.ref(0),u=l.ref(0),h=l.ref(!0);let G=()=>{};return e&&(G=l.watch([s,i,A],()=>{const w=KI(s);if(!w||!(w instanceof Element))return;const{left:B,top:p,width:Y,height:N}=w.getBoundingClientRect();d.value=B+(t==="page"?e.pageXOffset:0),m.value=p+(t==="page"?e.pageYOffset:0),Z.value=N,u.value=Y;const R=i.value-d.value,X=A.value-m.value;h.value=Y===0||N===0||R<0||X<0||R>Y||X>N,(I||!h.value)&&(o.value=R,a.value=X)},{immediate:!0}),hg(document,"mouseleave",()=>{h.value=!0})),{x:i,y:A,sourceType:n,elementX:o,elementY:a,elementPositionX:d,elementPositionY:m,elementHeight:Z,elementWidth:u,isOutside:h,stop:G}}function zf(C={}){const{touch:g=!0,drag:I=!0,capture:e=!1,initialValue:t=!1,window:i=Pg}=C,A=l.ref(t),n=l.ref(null);if(!i)return{pressed:A,sourceType:n};const s=d=>()=>{A.value=!0,n.value=d},o=()=>{A.value=!1,n.value=null},a=l.computed(()=>KI(C.target)||i);return hg(a,"mousedown",s("mouse"),{passive:!0,capture:e}),hg(i,"mouseleave",o,{passive:!0,capture:e}),hg(i,"mouseup",o,{passive:!0,capture:e}),I&&(hg(a,"dragstart",s("mouse"),{passive:!0,capture:e}),hg(i,"drop",o,{passive:!0,capture:e}),hg(i,"dragend",o,{passive:!0,capture:e})),g&&(hg(a,"touchstart",s("touch"),{passive:!0,capture:e}),hg(i,"touchend",o,{passive:!0,capture:e}),hg(i,"touchcancel",o,{passive:!0,capture:e})),{pressed:A,sourceType:n}}function LP(C={}){const{window:g=Pg}=C,I=g==null?void 0:g.navigator,e=TI(()=>I&&"language"in I),t=l.ref(I==null?void 0:I.language);return hg(g,"languagechange",()=>{I&&(t.value=I.language)}),{isSupported:e,language:t}}function Qy(C={}){const{window:g=Pg}=C,I=g==null?void 0:g.navigator,e=TI(()=>I&&"connection"in I),t=l.ref(!0),i=l.ref(!1),A=l.ref(void 0),n=l.ref(void 0),s=l.ref(void 0),o=l.ref(void 0),a=l.ref(void 0),d=l.ref(void 0),m=l.ref("unknown"),Z=e.value&&I.connection;function u(){I&&(t.value=I.onLine,A.value=t.value?void 0:Date.now(),n.value=t.value?Date.now():void 0,Z&&(s.value=Z.downlink,o.value=Z.downlinkMax,d.value=Z.effectiveType,a.value=Z.rtt,i.value=Z.saveData,m.value=Z.type))}return g&&(hg(g,"offline",()=>{t.value=!1,A.value=Date.now()}),hg(g,"online",()=>{t.value=!0,n.value=Date.now()})),Z&&hg(Z,"change",u,!1),u(),{isSupported:l.readonly(e),isOnline:l.readonly(t),saveData:l.readonly(i),offlineAt:l.readonly(A),onlineAt:l.readonly(n),downlink:l.readonly(s),downlinkMax:l.readonly(o),effectiveType:l.readonly(d),rtt:l.readonly(a),type:l.readonly(m)}}function Oy(C={}){const{controls:g=!1,interval:I="requestAnimationFrame"}=C,e=l.ref(new Date),t=()=>e.value=new Date,i=I==="requestAnimationFrame"?Ld(t,{immediate:!0}):xo(t,I,{immediate:!0});return g?{now:e,...i}:e}function Jf(C){const g=l.ref(),I=()=>{g.value&&URL.revokeObjectURL(g.value),g.value=void 0};return l.watch(()=>_(C),e=>{I(),e&&(g.value=URL.createObjectURL(e))},{immediate:!0}),GI(I),l.readonly(g)}function xf(C,g,I){if(typeof C=="function"||l.isReadonly(C))return l.computed(()=>Vw(_(C),_(g),_(I)));const e=l.ref(C);return l.computed({get(){return e.value=Vw(e.value,_(g),_(I))},set(t){e.value=Vw(t,_(g),_(I))}})}function Tf(C){const{total:g=Number.POSITIVE_INFINITY,pageSize:I=10,page:e=1,onPageChange:t=NI,onPageSizeChange:i=NI,onPageCountChange:A=NI}=C,n=xf(I,1,Number.POSITIVE_INFINITY),s=l.computed(()=>Math.max(1,Math.ceil(_(g)/_(n)))),o=xf(e,1,s),a=l.computed(()=>o.value===1),d=l.computed(()=>o.value===s.value);l.isRef(e)&&Ry(e,o,{direction:l.isReadonly(e)?"ltr":"both"}),l.isRef(I)&&Ry(I,n,{direction:l.isReadonly(I)?"ltr":"both"});function m(){o.value--}function Z(){o.value++}const u={currentPage:o,currentPageSize:n,pageCount:s,isFirstPage:a,isLastPage:d,prev:m,next:Z};return l.watch(o,()=>{t(l.reactive(u))}),l.watch(n,()=>{i(l.reactive(u))}),l.watch(s,()=>{A(l.reactive(u))}),u}function Lf(C={}){const{isOnline:g}=Qy(C);return g}function vf(C={}){const{window:g=Pg}=C,I=l.ref(!1),e=t=>{if(!g)return;t=t||g.event;const i=t.relatedTarget||t.toElement;I.value=!i};return g&&(hg(g,"mouseout",e,{passive:!0}),hg(g.document,"mouseleave",e,{passive:!0}),hg(g.document,"mouseenter",e,{passive:!0})),I}function jf(C={}){const{window:g=Pg}=C,I=TI(()=>g&&"screen"in g&&"orientation"in g.screen),e=I.value?g.screen.orientation:{},t=l.ref(e.type),i=l.ref(e.angle||0);return I.value&&hg(g,"orientationchange",()=>{t.value=e.type,i.value=e.angle}),{isSupported:I,orientation:t,angle:i,lockOrientation:s=>I.value&&typeof e.lock=="function"?e.lock(s):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{I.value&&typeof e.unlock=="function"&&e.unlock()}}}function vP(C,g={}){const{deviceOrientationTiltAdjust:I=G=>G,deviceOrientationRollAdjust:e=G=>G,mouseTiltAdjust:t=G=>G,mouseRollAdjust:i=G=>G,window:A=Pg}=g,n=l.reactive(Ky({window:A})),s=l.reactive(jf({window:A})),{elementX:o,elementY:a,elementWidth:d,elementHeight:m}=jy(C,{handleOutside:!1,window:A}),Z=l.computed(()=>n.isSupported&&(n.alpha!=null&&n.alpha!==0||n.gamma!=null&&n.gamma!==0)?"deviceOrientation":"mouse"),u=l.computed(()=>{if(Z.value==="deviceOrientation"){let G;switch(s.orientation){case"landscape-primary":G=n.gamma/90;break;case"landscape-secondary":G=-n.gamma/90;break;case"portrait-primary":G=-n.beta/90;break;case"portrait-secondary":G=n.beta/90;break;default:G=-n.beta/90}return e(G)}else{const G=-(a.value-m.value/2)/m.value;return i(G)}}),h=l.computed(()=>{if(Z.value==="deviceOrientation"){let G;switch(s.orientation){case"landscape-primary":G=n.beta/90;break;case"landscape-secondary":G=-n.beta/90;break;case"portrait-primary":G=n.gamma/90;break;case"portrait-secondary":G=-n.gamma/90;break;default:G=n.gamma/90}return I(G)}else{const G=(o.value-d.value/2)/d.value;return t(G)}});return{roll:u,tilt:h,source:Z}}function jP(C=Gf()){const g=l.shallowRef(),I=()=>{const e=KI(C);e&&(g.value=e.parentElement)};return ne(I),l.watch(()=>_(C),I),g}function QP(C,g){const{window:I=Pg,immediate:e=!0,...t}=C,i=TI(()=>I&&"PerformanceObserver"in I);let A;const n=()=>{A==null||A.disconnect()},s=()=>{i.value&&(n(),A=new PerformanceObserver(g),A.observe(t))};return GI(n),e&&s(),{isSupported:i,start:s,stop:n}}const Qf={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},OP=Object.keys(Qf);function Of(C={}){const{target:g=Pg}=C,I=l.ref(!1),e=l.ref(C.initialValue||{});Object.assign(e.value,Qf,e.value);const t=i=>{I.value=!0,!(C.pointerTypes&&!C.pointerTypes.includes(i.pointerType))&&(e.value=UH(i,OP,!1))};if(g){const i={passive:!0};hg(g,["pointerdown","pointermove","pointerup"],t,i),hg(g,"pointerleave",()=>I.value=!1,i)}return{...My(e),isInside:I}}function Uf(C,g={}){const{document:I=Pt}=g,e=TI(()=>I&&"pointerLockElement"in I),t=l.ref(),i=l.ref();let A;e.value&&(hg(I,"pointerlockchange",()=>{var o;const a=(o=I.pointerLockElement)!=null?o:t.value;A&&a===A&&(t.value=I.pointerLockElement,t.value||(A=i.value=null))}),hg(I,"pointerlockerror",()=>{var o;const a=(o=I.pointerLockElement)!=null?o:t.value;if(A&&a===A){const d=I.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${d} pointer lock.`)}}));async function n(o){var a;if(!e.value)throw new Error("Pointer Lock API is not supported by your browser.");if(i.value=o instanceof Event?o.currentTarget:null,A=o instanceof Event?(a=KI(C))!=null?a:i.value:KI(o),!A)throw new Error("Target element undefined.");return A.requestPointerLock(),await yr(t).toBe(A)}async function s(){return t.value?(I.exitPointerLock(),await yr(t).toBeNull(),!0):!1}return{isSupported:e,element:t,triggerElement:i,lock:n,unlock:s}}function UP(C,g={}){const I=PC(C),{threshold:e=50,onSwipe:t,onSwipeEnd:i,onSwipeStart:A,disableTextSelect:n=!1}=g,s=l.reactive({x:0,y:0}),o=(X,K)=>{s.x=X,s.y=K},a=l.reactive({x:0,y:0}),d=(X,K)=>{a.x=X,a.y=K},m=l.computed(()=>s.x-a.x),Z=l.computed(()=>s.y-a.y),{max:u,abs:h}=Math,G=l.computed(()=>u(h(m.value),h(Z.value))>=e),w=l.ref(!1),B=l.ref(!1),p=l.computed(()=>G.value?h(m.value)>h(Z.value)?m.value>0?"left":"right":Z.value>0?"up":"down":"none"),Y=X=>{var K,D,k;const z=X.buttons===0,v=X.buttons===1;return(k=(D=(K=g.pointerTypes)==null?void 0:K.includes(X.pointerType))!=null?D:z||v)!=null?k:!0},N=[hg(C,"pointerdown",X=>{if(!Y(X))return;B.value=!0;const K=X.target;K==null||K.setPointerCapture(X.pointerId);const{clientX:D,clientY:k}=X;o(D,k),d(D,k),A==null||A(X)}),hg(C,"pointermove",X=>{if(!Y(X)||!B.value)return;const{clientX:K,clientY:D}=X;d(K,D),!w.value&&G.value&&(w.value=!0),w.value&&(t==null||t(X))}),hg(C,"pointerup",X=>{Y(X)&&(w.value&&(i==null||i(X,p.value)),B.value=!1,w.value=!1)})];ne(()=>{var X,K,D,k,z,v,O,Cg;(K=(X=I.value)==null?void 0:X.style)==null||K.setProperty("touch-action","none"),n&&((k=(D=I.value)==null?void 0:D.style)==null||k.setProperty("-webkit-user-select","none"),(v=(z=I.value)==null?void 0:z.style)==null||v.setProperty("-ms-user-select","none"),(Cg=(O=I.value)==null?void 0:O.style)==null||Cg.setProperty("user-select","none"))});const R=()=>N.forEach(X=>X());return{isSwiping:l.readonly(w),direction:l.readonly(p),posStart:l.readonly(s),posEnd:l.readonly(a),distanceX:m,distanceY:Z,stop:R}}function Ef(C){const g=Ni("(prefers-color-scheme: light)",C),I=Ni("(prefers-color-scheme: dark)",C);return l.computed(()=>I.value?"dark":g.value?"light":"no-preference")}function Pf(C){const g=Ni("(prefers-contrast: more)",C),I=Ni("(prefers-contrast: less)",C),e=Ni("(prefers-contrast: custom)",C);return l.computed(()=>g.value?"more":I.value?"less":e.value?"custom":"no-preference")}function _f(C={}){const{window:g=Pg}=C;if(!g)return l.ref(["en"]);const I=g.navigator,e=l.ref(I.languages);return hg(g,"languagechange",()=>{e.value=I.languages}),e}function qf(C){const g=Ni("(prefers-reduced-motion: reduce)",C);return l.computed(()=>g.value?"reduce":"no-preference")}function EP(C,g){const I=l.shallowRef(g);return l.watch(PC(C),(e,t)=>{I.value=t},{flush:"sync"}),l.readonly(I)}const $f="--vueuse-safe-area-top",g3="--vueuse-safe-area-right",I3="--vueuse-safe-area-bottom",C3="--vueuse-safe-area-left";function PP(){const C=l.ref(""),g=l.ref(""),I=l.ref(""),e=l.ref("");if(ue){const i=Tb($f),A=Tb(g3),n=Tb(I3),s=Tb(C3);i.value="env(safe-area-inset-top, 0px)",A.value="env(safe-area-inset-right, 0px)",n.value="env(safe-area-inset-bottom, 0px)",s.value="env(safe-area-inset-left, 0px)",t(),hg("resize",pr(t))}function t(){C.value=xw($f),g.value=xw(g3),I.value=xw(I3),e.value=xw(C3)}return{top:C,right:g,bottom:I,left:e,update:t}}function xw(C){return getComputedStyle(document.documentElement).getPropertyValue(C)}function _P(C,g=NI,I={}){const{immediate:e=!0,manual:t=!1,type:i="text/javascript",async:A=!0,crossOrigin:n,referrerPolicy:s,noModule:o,defer:a,document:d=Pt,attrs:m={}}=I,Z=l.ref(null);let u=null;const h=B=>new Promise((p,Y)=>{const N=K=>(Z.value=K,p(K),K);if(!d){p(!1);return}let R=!1,X=d.querySelector(`script[src="${_(C)}"]`);X?X.hasAttribute("data-loaded")&&N(X):(X=d.createElement("script"),X.type=i,X.async=A,X.src=_(C),a&&(X.defer=a),n&&(X.crossOrigin=n),o&&(X.noModule=o),s&&(X.referrerPolicy=s),Object.entries(m).forEach(([K,D])=>X==null?void 0:X.setAttribute(K,D)),R=!0),X.addEventListener("error",K=>Y(K)),X.addEventListener("abort",K=>Y(K)),X.addEventListener("load",()=>{X.setAttribute("data-loaded","true"),g(X),N(X)}),R&&(X=d.head.appendChild(X)),B||N(X)}),G=(B=!0)=>(u||(u=h(B)),u),w=()=>{if(!d)return;u=null,Z.value&&(Z.value=null);const B=d.querySelector(`script[src="${_(C)}"]`);B&&d.head.removeChild(B)};return e&&!t&&ne(G),t||Mw(w),{scriptTag:Z,load:G,unload:w}}function e3(C){const g=window.getComputedStyle(C);if(g.overflowX==="scroll"||g.overflowY==="scroll"||g.overflowX==="auto"&&C.clientWidth<C.scrollWidth||g.overflowY==="auto"&&C.clientHeight<C.scrollHeight)return!0;{const I=C.parentNode;return!I||I.tagName==="BODY"?!1:e3(I)}}function qP(C){const g=C||window.event,I=g.target;return e3(I)?!1:g.touches.length>1?!0:(g.preventDefault&&g.preventDefault(),!1)}const Uy=new WeakMap;function $P(C,g=!1){const I=l.ref(g);let e=null,t="";l.watch(PC(C),n=>{const s=Jw(_(n));if(s){const o=s;if(Uy.get(o)||Uy.set(o,o.style.overflow),o.style.overflow!=="hidden"&&(t=o.style.overflow),o.style.overflow==="hidden")return I.value=!0;if(I.value)return o.style.overflow="hidden"}},{immediate:!0});const i=()=>{const n=Jw(_(C));!n||I.value||(zd&&(e=hg(n,"touchmove",s=>{qP(s)},{passive:!1})),n.style.overflow="hidden",I.value=!0)},A=()=>{const n=Jw(_(C));!n||!I.value||(zd&&(e==null||e()),n.style.overflow=t,Uy.delete(n),I.value=!1)};return GI(A),l.computed({get(){return I.value},set(n){n?i():A()}})}function g6(C,g,I={}){const{window:e=Pg}=I;return xb(C,g,e==null?void 0:e.sessionStorage,I)}function I6(C={},g={}){const{navigator:I=yi}=g,e=I,t=TI(()=>e&&"canShare"in e);return{isSupported:t,share:async(A={})=>{if(t.value){const n={..._(C),..._(A)};let s=!0;if(n.files&&e.canShare&&(s=e.canShare({files:n.files})),s)return e.share(n)}}}}const C6=(C,g)=>C.sort(g),Tw=(C,g)=>C-g;function e6(...C){var g,I,e,t;const[i]=C;let A=Tw,n={};C.length===2?typeof C[1]=="object"?(n=C[1],A=(g=n.compareFn)!=null?g:Tw):A=(I=C[1])!=null?I:Tw:C.length>2&&(A=(e=C[1])!=null?e:Tw,n=(t=C[2])!=null?t:{});const{dirty:s=!1,sortFn:o=C6}=n;return s?(l.watchEffect(()=>{const a=o(_(i),A);l.isRef(i)?i.value=a:i.splice(0,i.length,...a)}),i):l.computed(()=>o([..._(i)],A))}function t6(C={}){const{interimResults:g=!0,continuous:I=!0,maxAlternatives:e=1,window:t=Pg}=C,i=PC(C.lang||"en-US"),A=l.ref(!1),n=l.ref(!1),s=l.ref(""),o=l.shallowRef(void 0),a=(G=!A.value)=>{A.value=G},d=()=>{A.value=!0},m=()=>{A.value=!1},Z=t&&(t.SpeechRecognition||t.webkitSpeechRecognition),u=TI(()=>Z);let h;return u.value&&(h=new Z,h.continuous=I,h.interimResults=g,h.lang=_(i),h.maxAlternatives=e,h.onstart=()=>{n.value=!1},l.watch(i,G=>{h&&!A.value&&(h.lang=G)}),h.onresult=G=>{const w=G.results[G.resultIndex],{transcript:B}=w[0];n.value=w.isFinal,s.value=B,o.value=void 0},h.onerror=G=>{o.value=G},h.onend=()=>{A.value=!1,h.lang=_(i)},l.watch(A,()=>{A.value?h.start():h.stop()})),GI(()=>{A.value=!1}),{isSupported:u,isListening:A,isFinal:n,recognition:h,result:s,error:o,toggle:a,start:d,stop:m}}function i6(C,g={}){const{pitch:I=1,rate:e=1,volume:t=1,window:i=Pg}=g,A=i&&i.speechSynthesis,n=TI(()=>A),s=l.ref(!1),o=l.ref("init"),a=PC(C||""),d=PC(g.lang||"en-US"),m=l.shallowRef(void 0),Z=(B=!s.value)=>{s.value=B},u=B=>{B.lang=_(d),B.voice=_(g.voice)||null,B.pitch=_(I),B.rate=_(e),B.volume=t,B.onstart=()=>{s.value=!0,o.value="play"},B.onpause=()=>{s.value=!1,o.value="pause"},B.onresume=()=>{s.value=!0,o.value="play"},B.onend=()=>{s.value=!1,o.value="end"},B.onerror=p=>{m.value=p}},h=l.computed(()=>{s.value=!1,o.value="init";const B=new SpeechSynthesisUtterance(a.value);return u(B),B}),G=()=>{A.cancel(),h&&A.speak(h.value)},w=()=>{A.cancel(),s.value=!1};return n.value&&(u(h.value),l.watch(d,B=>{h.value&&!s.value&&(h.value.lang=B)}),g.voice&&l.watch(g.voice,()=>{A.cancel()}),l.watch(s,()=>{s.value?A.resume():A.pause()})),GI(()=>{s.value=!1}),{isSupported:n,isPlaying:s,status:o,utterance:h,error:m,stop:w,toggle:Z,speak:G}}function A6(C,g){const I=l.ref(C),e=l.computed(()=>Array.isArray(I.value)?I.value:Object.keys(I.value)),t=l.ref(e.value.indexOf(g??e.value[0])),i=l.computed(()=>a(t.value)),A=l.computed(()=>t.value===0),n=l.computed(()=>t.value===e.value.length-1),s=l.computed(()=>e.value[t.value+1]),o=l.computed(()=>e.value[t.value-1]);function a(N){return Array.isArray(I.value)?I.value[N]:I.value[e.value[N]]}function d(N){if(e.value.includes(N))return a(e.value.indexOf(N))}function m(N){e.value.includes(N)&&(t.value=e.value.indexOf(N))}function Z(){n.value||t.value++}function u(){A.value||t.value--}function h(N){Y(N)&&m(N)}function G(N){return e.value.indexOf(N)===t.value+1}function w(N){return e.value.indexOf(N)===t.value-1}function B(N){return e.value.indexOf(N)===t.value}function p(N){return t.value<e.value.indexOf(N)}function Y(N){return t.value>e.value.indexOf(N)}return{steps:I,stepNames:e,index:t,current:i,next:s,previous:o,isFirst:A,isLast:n,at:a,get:d,goTo:m,goToNext:Z,goToPrevious:u,goBackTo:h,isNext:G,isPrevious:w,isCurrent:B,isBefore:p,isAfter:Y}}function n6(C,g,I,e={}){var t;const{flush:i="pre",deep:A=!0,listenToStorageChanges:n=!0,writeDefaults:s=!0,mergeDefaults:o=!1,shallow:a,window:d=Pg,eventFilter:m,onError:Z=p=>{console.error(p)}}=e,u=_(g),h=uf(u),G=(a?l.shallowRef:l.ref)(g),w=(t=e.serializer)!=null?t:Dy[h];if(!I)try{I=kw("getDefaultStorageAsync",()=>{var p;return(p=Pg)==null?void 0:p.localStorage})()}catch(p){Z(p)}async function B(p){if(!(!I||p&&p.key!==C))try{const Y=p?p.newValue:await I.getItem(C);if(Y==null)G.value=u,s&&u!==null&&await I.setItem(C,await w.write(u));else if(o){const N=await w.read(Y);typeof o=="function"?G.value=o(N,u):h==="object"&&!Array.isArray(N)?G.value={...u,...N}:G.value=N}else G.value=await w.read(Y)}catch(Y){Z(Y)}}return B(),d&&n&&hg(d,"storage",p=>Promise.resolve().then(()=>B(p))),I&&Yr(G,async()=>{try{G.value==null?await I.removeItem(C):await I.setItem(C,await w.write(G.value))}catch(p){Z(p)}},{flush:i,deep:A,eventFilter:m}),G}let l6=0;function s6(C,g={}){const I=l.ref(!1),{document:e=Pt,immediate:t=!0,manual:i=!1,id:A=`vueuse_styletag_${++l6}`}=g,n=l.ref(C);let s=()=>{};const o=()=>{if(!e)return;const d=e.getElementById(A)||e.createElement("style");d.isConnected||(d.id=A,g.media&&(d.media=g.media),e.head.appendChild(d)),!I.value&&(s=l.watch(n,m=>{d.textContent=m},{immediate:!0}),I.value=!0)},a=()=>{!e||!I.value||(s(),e.head.removeChild(e.getElementById(A)),I.value=!1)};return t&&!i&&ne(o),i||GI(a),{id:A,css:n,unload:a,load:o,isLoaded:l.readonly(I)}}function o6(C,g={}){const{threshold:I=50,onSwipe:e,onSwipeEnd:t,onSwipeStart:i,passive:A=!0,window:n=Pg}=g,s=l.reactive({x:0,y:0}),o=l.reactive({x:0,y:0}),a=l.computed(()=>s.x-o.x),d=l.computed(()=>s.y-o.y),{max:m,abs:Z}=Math,u=l.computed(()=>m(Z(a.value),Z(d.value))>=I),h=l.ref(!1),G=l.computed(()=>u.value?Z(a.value)>Z(d.value)?a.value>0?"left":"right":d.value>0?"up":"down":"none"),w=D=>[D.touches[0].clientX,D.touches[0].clientY],B=(D,k)=>{s.x=D,s.y=k},p=(D,k)=>{o.x=D,o.y=k};let Y;const N=a6(n==null?void 0:n.document);A?Y=N?{passive:!0}:{capture:!1}:Y=N?{passive:!1,capture:!0}:{capture:!0};const R=D=>{h.value&&(t==null||t(D,G.value)),h.value=!1},X=[hg(C,"touchstart",D=>{if(D.touches.length!==1)return;const[k,z]=w(D);B(k,z),p(k,z),i==null||i(D)},Y),hg(C,"touchmove",D=>{if(D.touches.length!==1)return;const[k,z]=w(D);p(k,z),Y.capture&&!Y.passive&&Math.abs(a.value)>Math.abs(d.value)&&D.preventDefault(),!h.value&&u.value&&(h.value=!0),h.value&&(e==null||e(D))},Y),hg(C,["touchend","touchcancel"],R,Y)];return{isPassiveEventSupported:N,isSwiping:h,direction:G,coordsStart:s,coordsEnd:o,lengthX:a,lengthY:d,stop:()=>X.forEach(D=>D())}}function a6(C){if(!C)return!1;let g=!1;const I={get passive(){return g=!0,!1}};return C.addEventListener("x",NI,I),C.removeEventListener("x",NI),g}function d6(){const C=l.ref([]);return C.value.set=g=>{g&&C.value.push(g)},l.onBeforeUpdate(()=>{C.value.length=0}),C}function c6(C={}){const{document:g=Pt,selector:I="html",observe:e=!1,initialValue:t="ltr"}=C;function i(){var n,s;return(s=(n=g==null?void 0:g.querySelector(I))==null?void 0:n.getAttribute("dir"))!=null?s:t}const A=l.ref(i());return ne(()=>A.value=i()),e&&g&&Xr(g.querySelector(I),()=>A.value=i(),{attributes:!0}),l.computed({get(){return A.value},set(n){var s,o;A.value=n,g&&(A.value?(s=g.querySelector(I))==null||s.setAttribute("dir",A.value):(o=g.querySelector(I))==null||o.removeAttribute("dir"))}})}function m6(C){var g;const I=(g=C.rangeCount)!=null?g:0;return Array.from({length:I},(e,t)=>C.getRangeAt(t))}function r6(C={}){const{window:g=Pg}=C,I=l.ref(null),e=l.computed(()=>{var n,s;return(s=(n=I.value)==null?void 0:n.toString())!=null?s:""}),t=l.computed(()=>I.value?m6(I.value):[]),i=l.computed(()=>t.value.map(n=>n.getBoundingClientRect()));function A(){I.value=null,g&&(I.value=g.getSelection())}return g&&hg(g.document,"selectionchange",A),{text:e,rects:i,ranges:t,selection:I}}function Z6(C){var g;const I=l.ref(C==null?void 0:C.element),e=l.ref(C==null?void 0:C.input),t=(g=C==null?void 0:C.styleProp)!=null?g:"height",i=l.ref(1),A=l.ref(0);function n(){var s;if(!I.value)return;let o="";I.value.style[t]="1px",i.value=(s=I.value)==null?void 0:s.scrollHeight;const a=_(C==null?void 0:C.styleTarget);a?a.style[t]=`${i.value}px`:o=`${i.value}px`,I.value.style[t]=o}return l.watch([e,I],()=>l.nextTick(n),{immediate:!0}),l.watch(i,()=>{var s;return(s=C==null?void 0:C.onResize)==null?void 0:s.call(C)}),Kw(I,([{contentRect:s}])=>{A.value!==s.width&&(A.value=s.width,n())}),C!=null&&C.watch&&l.watch(C.watch,n,{immediate:!0,deep:!0}),{textarea:I,input:e,triggerResize:n}}function b6(C,g={}){const{throttle:I=200,trailing:e=!0}=g,t=Fb(I,e);return{...Fy(C,{...g,eventFilter:t})}}const u6=[{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"}],h6={justNow:"just now",past:C=>C.match(/\d/)?`${C} ago`:C,future:C=>C.match(/\d/)?`in ${C}`:C,month:(C,g)=>C===1?g?"last month":"next month":`${C} month${C>1?"s":""}`,year:(C,g)=>C===1?g?"last year":"next year":`${C} year${C>1?"s":""}`,day:(C,g)=>C===1?g?"yesterday":"tomorrow":`${C} day${C>1?"s":""}`,week:(C,g)=>C===1?g?"last week":"next week":`${C} week${C>1?"s":""}`,hour:C=>`${C} hour${C>1?"s":""}`,minute:C=>`${C} minute${C>1?"s":""}`,second:C=>`${C} second${C>1?"s":""}`,invalid:""};function G6(C){return C.toISOString().slice(0,10)}function t3(C,g={}){const{controls:I=!1,updateInterval:e=3e4}=g,{now:t,...i}=Oy({interval:e,controls:!0}),A=l.computed(()=>i3(new Date(_(C)),g,_(t)));return I?{timeAgo:A,...i}:A}function i3(C,g={},I=Date.now()){var e;const{max:t,messages:i=h6,fullDateFormatter:A=G6,units:n=u6,showSecond:s=!1,rounding:o="round"}=g,a=typeof o=="number"?G=>+G.toFixed(o):Math[o],d=+I-+C,m=Math.abs(d);function Z(G,w){return a(Math.abs(G)/w.value)}function u(G,w){const B=Z(G,w),p=G>0,Y=h(w.name,B,p);return h(p?"past":"future",Y,p)}function h(G,w,B){const p=i[G];return typeof p=="function"?p(w,B):p.replace("{0}",w.toString())}if(m<6e4&&!s)return i.justNow;if(typeof t=="number"&&m>t)return A(new Date(C));if(typeof t=="string"){const G=(e=n.find(w=>w.name===t))==null?void 0:e.max;if(G&&m>G)return A(new Date(C))}for(const[G,w]of n.entries()){if(Z(d,w)<=0&&n[G-1])return u(d,n[G-1]);if(m<w.max)return u(d,w)}return i.invalid}function w6(C,g,I){const{start:e}=Nr(i,g,{immediate:!1}),t=l.ref(!1);async function i(){t.value&&(await C(),e())}function A(){t.value||(t.value=!0,i())}function n(){t.value=!1}return I!=null&&I.immediate&&A(),GI(n),{isActive:t,pause:n,resume:A}}function A3(C={}){const{controls:g=!1,offset:I=0,immediate:e=!0,interval:t="requestAnimationFrame",callback:i}=C,A=l.ref(Kd()+I),n=()=>A.value=Kd()+I,s=i?()=>{n(),i(A.value)}:n,o=t==="requestAnimationFrame"?Ld(s,{immediate:e}):xo(s,t,{immediate:e});return g?{timestamp:A,...o}:A}function W6(C=null,g={}){var I,e,t;const{document:i=Pt,restoreOnUnmount:A=d=>d}=g,n=(I=i==null?void 0:i.title)!=null?I:"",s=PC((e=C??(i==null?void 0:i.title))!=null?e:null),o=C&&typeof C=="function";function a(d){if(!("titleTemplate"in g))return d;const m=g.titleTemplate||"%s";return typeof m=="function"?m(d):_(m).replace(/%s/g,d)}return l.watch(s,(d,m)=>{d!==m&&i&&(i.title=a(typeof d=="string"?d:""))},{immediate:!0}),g.observe&&!g.titleTemplate&&i&&!o&&Xr((t=i.head)==null?void 0:t.querySelector("title"),()=>{i&&i.title!==s.value&&(s.value=a(i.title))},{childList:!0}),$H(()=>{if(A){const d=A(n,s.value||"");d!=null&&i&&(i.title=d)}}),s}const B6=Object.assign({},{linear:yy},{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 p6([C,g,I,e]){const t=(a,d)=>1-3*d+3*a,i=(a,d)=>3*d-6*a,A=a=>3*a,n=(a,d,m)=>((t(d,m)*a+i(d,m))*a+A(d))*a,s=(a,d,m)=>3*t(d,m)*a*a+2*i(d,m)*a+A(d),o=a=>{let d=a;for(let m=0;m<4;++m){const Z=s(d,C,I);if(Z===0)return d;const u=n(d,C,I)-a;d-=u/Z}return d};return a=>C===g&&I===e?a:n(o(a),g,e)}function n3(C,g,I){return C+I*(g-C)}function Ey(C){return(typeof C=="number"?[C]:C)||[]}function l3(C,g,I,e={}){var t,i;const A=_(g),n=_(I),s=Ey(A),o=Ey(n),a=(t=_(e.duration))!=null?t:1e3,d=Date.now(),m=Date.now()+a,Z=typeof e.transition=="function"?e.transition:(i=_(e.transition))!=null?i:yy,u=typeof Z=="function"?Z:p6(Z);return new Promise(h=>{C.value=A;const G=()=>{var w;if((w=e.abort)!=null&&w.call(e)){h();return}const B=Date.now(),p=u((B-d)/a),Y=Ey(C.value).map((N,R)=>n3(s[R],o[R],p));Array.isArray(C.value)?C.value=Y.map((N,R)=>{var X,K;return n3((X=s[R])!=null?X:0,(K=o[R])!=null?K:0,p)}):typeof C.value=="number"&&(C.value=Y[0]),B<m?requestAnimationFrame(G):(C.value=n,h())};G()})}function Y6(C,g={}){let I=0;const e=()=>{const i=_(C);return typeof i=="number"?i:i.map(_)},t=l.ref(e());return l.watch(e,async i=>{var A,n;if(_(g.disabled))return;const s=++I;if(g.delay&&await Br(_(g.delay)),s!==I)return;const o=Array.isArray(i)?i.map(_):_(i);(A=g.onStarted)==null||A.call(g),await l3(t,t.value,o,{...g,abort:()=>{var a;return s!==I||((a=g.abort)==null?void 0:a.call(g))}}),(n=g.onFinished)==null||n.call(g)},{deep:!0}),l.watch(()=>_(g.disabled),i=>{i&&(I++,t.value=e())}),GI(()=>{I++}),l.computed(()=>_(g.disabled)?e():t.value)}function y6(C="history",g={}){const{initialValue:I={},removeNullishValues:e=!0,removeFalsyValues:t=!1,write:i=!0,window:A=Pg}=g;if(!A)return l.reactive(I);const n=l.reactive({});function s(){if(C==="history")return A.location.search||"";if(C==="hash"){const w=A.location.hash||"",B=w.indexOf("?");return B>0?w.slice(B):""}else return(A.location.hash||"").replace(/^#/,"")}function o(w){const B=w.toString();if(C==="history")return`${B?`?${B}`:""}${A.location.hash||""}`;if(C==="hash-params")return`${A.location.search||""}${B?`#${B}`:""}`;const p=A.location.hash||"#",Y=p.indexOf("?");return Y>0?`${A.location.search||""}${p.slice(0,Y)}${B?`?${B}`:""}`:`${A.location.search||""}${p}${B?`?${B}`:""}`}function a(){return new URLSearchParams(s())}function d(w){const B=new Set(Object.keys(n));for(const p of w.keys()){const Y=w.getAll(p);n[p]=Y.length>1?Y:w.get(p)||"",B.delete(p)}Array.from(B).forEach(p=>delete n[p])}const{pause:m,resume:Z}=xd(n,()=>{const w=new URLSearchParams("");Object.keys(n).forEach(B=>{const p=n[B];Array.isArray(p)?p.forEach(Y=>w.append(B,Y)):e&&p==null||t&&!p?w.delete(B):w.set(B,p)}),u(w)},{deep:!0});function u(w,B){m(),B&&d(w),A.history.replaceState(A.history.state,A.document.title,A.location.pathname+o(w)),Z()}function h(){i&&u(a(),!0)}hg(A,"popstate",h,!1),C!=="history"&&hg(A,"hashchange",h,!1);const G=a();return G.keys().next().value?d(G):Object.assign(n,I),n}function N6(C={}){var g,I;const e=l.ref((g=C.enabled)!=null?g:!1),t=l.ref((I=C.autoSwitch)!=null?I:!0),i=l.ref(C.constraints),{navigator:A=yi}=C,n=TI(()=>{var h;return(h=A==null?void 0:A.mediaDevices)==null?void 0:h.getUserMedia}),s=l.shallowRef();function o(h){switch(h){case"video":{if(i.value)return i.value.video||!1;break}case"audio":{if(i.value)return i.value.audio||!1;break}}}async function a(){if(!(!n.value||s.value))return s.value=await A.mediaDevices.getUserMedia({video:o("video"),audio:o("audio")}),s.value}function d(){var h;(h=s.value)==null||h.getTracks().forEach(G=>G.stop()),s.value=void 0}function m(){d(),e.value=!1}async function Z(){return await a(),s.value&&(e.value=!0),s.value}async function u(){return d(),await Z()}return l.watch(e,h=>{h?a():d()},{immediate:!0}),l.watch(i,()=>{t.value&&s.value&&u()},{immediate:!0}),GI(()=>{m()}),{isSupported:n,stream:s,start:Z,stop:m,restart:u,constraints:i,enabled:e,autoSwitch:t}}function s3(C,g,I,e={}){var t,i,A;const{clone:n=!1,passive:s=!1,eventName:o,deep:a=!1,defaultValue:d,shouldEmit:m}=e,Z=l.getCurrentInstance(),u=I||(Z==null?void 0:Z.emit)||((t=Z==null?void 0:Z.$emit)==null?void 0:t.bind(Z))||((A=(i=Z==null?void 0:Z.proxy)==null?void 0:i.$emit)==null?void 0:A.bind(Z==null?void 0:Z.proxy));let h=o;g||(g="modelValue"),h=h||`update:${g.toString()}`;const G=p=>n?typeof n=="function"?n(p):Jb(p):p,w=()=>TH(C[g])?G(C[g]):d,B=p=>{m?m(p)&&u(h,p):u(h,p)};if(s){const p=w(),Y=l.ref(p);let N=!1;return l.watch(()=>C[g],R=>{N||(N=!0,Y.value=G(R),l.nextTick(()=>N=!1))}),l.watch(Y,R=>{!N&&(R!==C[g]||a)&&B(R)},{deep:a}),Y}else return l.computed({get(){return w()},set(p){B(p)}})}function V6(C,g,I={}){const e={};for(const t in C)e[t]=s3(C,t,g,I);return e}function X6(C){const{pattern:g=[],interval:I=0,navigator:e=yi}=C||{},t=TI(()=>typeof e<"u"&&"vibrate"in e),i=PC(g);let A;const n=(o=i.value)=>{t.value&&e.vibrate(o)},s=()=>{t.value&&e.vibrate(0),A==null||A.pause()};return I>0&&(A=xo(n,I,{immediate:!1,immediateCallback:!1})),{isSupported:t,pattern:g,intervalControls:A,vibrate:n,stop:s}}function o3(C,g){const{containerStyle:I,wrapperProps:e,scrollTo:t,calculateRange:i,currentList:A,containerRef:n}="itemHeight"in g?H6(g,C):M6(g,C);return{list:A,scrollTo:t,containerProps:{ref:n,onScroll:()=>{i()},style:I},wrapperProps:e}}function a3(C){const g=l.ref(null),I=Jy(g),e=l.ref([]),t=l.shallowRef(C);return{state:l.ref({start:0,end:10}),source:t,currentList:e,size:I,containerRef:g}}function d3(C,g,I){return e=>{if(typeof I=="number")return Math.ceil(e/I);const{start:t=0}=C.value;let i=0,A=0;for(let n=t;n<g.value.length;n++){const s=I(n);if(i+=s,A=n,i>e)break}return A-t}}function c3(C,g){return I=>{if(typeof g=="number")return Math.floor(I/g)+1;let e=0,t=0;for(let i=0;i<C.value.length;i++){const A=g(i);if(e+=A,e>=I){t=i;break}}return t+1}}function m3(C,g,I,e,{containerRef:t,state:i,currentList:A,source:n}){return()=>{const s=t.value;if(s){const o=I(C==="vertical"?s.scrollTop:s.scrollLeft),a=e(C==="vertical"?s.clientHeight:s.clientWidth),d=o-g,m=o+a+g;i.value={start:d<0?0:d,end:m>n.value.length?n.value.length:m},A.value=n.value.slice(i.value.start,i.value.end).map((Z,u)=>({data:Z,index:u+i.value.start}))}}}function r3(C,g){return I=>typeof C=="number"?I*C:g.value.slice(0,I).reduce((t,i,A)=>t+C(A),0)}function Z3(C,g,I,e){l.watch([C.width,C.height,g,I],()=>{e()})}function b3(C,g){return l.computed(()=>typeof C=="number"?g.value.length*C:g.value.reduce((I,e,t)=>I+C(t),0))}const R6={horizontal:"scrollLeft",vertical:"scrollTop"};function u3(C,g,I,e){return t=>{e.value&&(e.value[R6[C]]=I(t),g())}}function M6(C,g){const I=a3(g),{state:e,source:t,currentList:i,size:A,containerRef:n}=I,s={overflowX:"auto"},{itemWidth:o,overscan:a=5}=C,d=d3(e,t,o),m=c3(t,o),Z=m3("horizontal",a,m,d,I),u=r3(o,t),h=l.computed(()=>u(e.value.start)),G=b3(o,t);Z3(A,g,n,Z);const w=u3("horizontal",Z,u,n),B=l.computed(()=>({style:{height:"100%",width:`${G.value-h.value}px`,marginLeft:`${h.value}px`,display:"flex"}}));return{scrollTo:w,calculateRange:Z,wrapperProps:B,containerStyle:s,currentList:i,containerRef:n}}function H6(C,g){const I=a3(g),{state:e,source:t,currentList:i,size:A,containerRef:n}=I,s={overflowY:"auto"},{itemHeight:o,overscan:a=5}=C,d=d3(e,t,o),m=c3(t,o),Z=m3("vertical",a,m,d,I),u=r3(o,t),h=l.computed(()=>u(e.value.start)),G=b3(o,t);Z3(A,g,n,Z);const w=u3("vertical",Z,u,n),B=l.computed(()=>({style:{width:"100%",height:`${G.value-h.value}px`,marginTop:`${h.value}px`}}));return{calculateRange:Z,scrollTo:w,containerStyle:s,wrapperProps:B,currentList:i,containerRef:n}}function f6(C={}){const{navigator:g=yi,document:I=Pt}=C,e=l.ref(!1),t=l.shallowRef(null),i=zy({document:I}),A=TI(()=>g&&"wakeLock"in g),n=l.computed(()=>!!t.value&&i.value==="visible");A.value&&(hg(t,"release",()=>{var d,m;e.value=(m=(d=t.value)==null?void 0:d.type)!=null?m:!1}),Af(()=>i.value==="visible"&&(I==null?void 0:I.visibilityState)==="visible"&&e.value,d=>{e.value=!1,s(d)}));async function s(d){var m;await((m=t.value)==null?void 0:m.release()),t.value=A.value?await g.wakeLock.request(d):null}async function o(d){i.value==="visible"?await s(d):e.value=d}async function a(){e.value=!1;const d=t.value;t.value=null,await(d==null?void 0:d.release())}return{sentinel:t,isSupported:A,isActive:n,request:o,forceRequest:s,release:a}}function S6(C={}){const{window:g=Pg,requestPermissions:I=!0}=C,e=C,t=TI(()=>{if(!g||!("Notification"in g))return!1;try{new Notification("")}catch{return!1}return!0}),i=l.ref(t.value&&"permission"in Notification&&Notification.permission==="granted"),A=l.ref(null),n=async()=>{if(t.value)return!i.value&&Notification.permission!=="denied"&&await Notification.requestPermission()==="granted"&&(i.value=!0),i.value},{on:s,trigger:o}=ct(),{on:a,trigger:d}=ct(),{on:m,trigger:Z}=ct(),{on:u,trigger:h}=ct(),G=async B=>{if(!t.value||!i.value)return;const p=Object.assign({},e,B);return A.value=new Notification(p.title||"",p),A.value.onclick=o,A.value.onshow=d,A.value.onerror=Z,A.value.onclose=h,A.value},w=()=>{A.value&&A.value.close(),A.value=null};if(I&&ne(n),GI(w),t.value&&g){const B=g.document;hg(B,"visibilitychange",p=>{p.preventDefault(),B.visibilityState==="visible"&&w()})}return{isSupported:t,notification:A,ensurePermissions:n,permissionGranted:i,show:G,close:w,onClick:s,onShow:a,onError:m,onClose:u}}const h3="ping";function Py(C){return C===!0?{}:C}function D6(C,g={}){const{onConnected:I,onDisconnected:e,onError:t,onMessage:i,immediate:A=!0,autoClose:n=!0,protocols:s=[]}=g,o=l.ref(null),a=l.ref("CLOSED"),d=l.ref(),m=PC(C);let Z,u,h=!1,G=0,w=[],B;const p=()=>{if(w.length&&d.value&&a.value==="OPEN"){for(const D of w)d.value.send(D);w=[]}},Y=()=>{clearTimeout(B),B=void 0},N=(D=1e3,k)=>{!ue||!d.value||(h=!0,Y(),Z==null||Z(),d.value.close(D,k),d.value=void 0)},R=(D,k=!0)=>!d.value||a.value!=="OPEN"?(k&&w.push(D),!1):(p(),d.value.send(D),!0),X=()=>{if(h||typeof m.value>"u")return;const D=new WebSocket(m.value,s);d.value=D,a.value="CONNECTING",D.onopen=()=>{a.value="OPEN",G=0,I==null||I(D),u==null||u(),p()},D.onclose=k=>{if(a.value="CLOSED",e==null||e(D,k),!h&&g.autoReconnect&&(d.value==null||D===d.value)){const{retries:z=-1,delay:v=1e3,onFailed:O}=Py(g.autoReconnect);typeof z=="number"&&(z<0||G<z)?(G+=1,setTimeout(X,v)):typeof z=="function"&&z()?setTimeout(X,v):O==null||O()}},D.onerror=k=>{t==null||t(D,k)},D.onmessage=k=>{if(g.heartbeat){Y();const{message:z=h3,responseMessage:v=z}=Py(g.heartbeat);if(k.data===v)return}o.value=k.data,i==null||i(D,k)}};if(g.heartbeat){const{message:D=h3,interval:k=1e3,pongTimeout:z=1e3}=Py(g.heartbeat),{pause:v,resume:O}=xo(()=>{R(D,!1),B==null&&(B=setTimeout(()=>{N(),h=!1},z))},k,{immediate:!1});Z=v,u=O}n&&(ue&&hg("beforeunload",()=>N()),GI(N));const K=()=>{!ue&&!xH||(N(),h=!1,G=0,X())};return A&&K(),l.watch(m,K),{data:o,status:a,close:N,send:R,open:K,ws:d}}function k6(C,g,I){const{window:e=Pg}=I??{},t=l.ref(null),i=l.shallowRef(),A=(...s)=>{i.value&&i.value.postMessage(...s)},n=function(){i.value&&i.value.terminate()};return e&&(typeof C=="string"?i.value=new Worker(C,g):typeof C=="function"?i.value=C():i.value=C,i.value.onmessage=s=>{t.value=s.data},GI(()=>{i.value&&i.value.terminate()})),{data:t,post:A,terminate:n,worker:i}}function F6(C,g){if(C.length===0&&g.length===0)return"";const I=C.map(i=>`'${i}'`).toString(),e=g.filter(i=>typeof i=="function").map(i=>{const A=i.toString();return A.trim().startsWith("function")?A:`const ${i.name} = ${A}`}).join(";"),t=`importScripts(${I});`;return`${I.trim()===""?"":t} ${e}`}function K6(C){return g=>{const I=g.data[0];return Promise.resolve(C.apply(void 0,I)).then(e=>{postMessage(["SUCCESS",e])}).catch(e=>{postMessage(["ERROR",e])})}}function z6(C,g,I){const e=`${F6(g,I)}; onmessage=(${K6})(${C})`,t=new Blob([e],{type:"text/javascript"});return URL.createObjectURL(t)}function J6(C,g={}){const{dependencies:I=[],localDependencies:e=[],timeout:t,window:i=Pg}=g,A=l.ref(),n=l.ref("PENDING"),s=l.ref({}),o=l.ref(),a=(u="PENDING")=>{A.value&&A.value._url&&i&&(A.value.terminate(),URL.revokeObjectURL(A.value._url),s.value={},A.value=void 0,i.clearTimeout(o.value),n.value=u)};a(),GI(a);const d=()=>{const u=z6(C,I,e),h=new Worker(u);return h._url=u,h.onmessage=G=>{const{resolve:w=()=>{},reject:B=()=>{}}=s.value,[p,Y]=G.data;switch(p){case"SUCCESS":w(Y),a(p);break;default:B(Y),a("ERROR");break}},h.onerror=G=>{const{reject:w=()=>{}}=s.value;G.preventDefault(),w(G),a("ERROR")},t&&(o.value=setTimeout(()=>a("TIMEOUT_EXPIRED"),t)),h},m=(...u)=>new Promise((h,G)=>{var w;s.value={resolve:h,reject:G},(w=A.value)==null||w.postMessage([[...u]]),n.value="RUNNING"});return{workerFn:(...u)=>n.value==="RUNNING"?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(A.value=d(),m(...u)),workerStatus:n,workerTerminate:a}}function G3(C={}){const{window:g=Pg}=C;if(!g)return l.ref(!1);const I=l.ref(g.document.hasFocus());return hg(g,"blur",()=>{I.value=!1}),hg(g,"focus",()=>{I.value=!0}),I}function x6(C={}){const{window:g=Pg,behavior:I="auto"}=C;if(!g)return{x:l.ref(0),y:l.ref(0)};const e=l.ref(g.scrollX),t=l.ref(g.scrollY),i=l.computed({get(){return e.value},set(n){scrollTo({left:n,behavior:I})}}),A=l.computed({get(){return t.value},set(n){scrollTo({top:n,behavior:I})}});return hg(g,"scroll",()=>{e.value=g.scrollX,t.value=g.scrollY},{capture:!1,passive:!0}),{x:i,y:A}}function w3(C={}){const{window:g=Pg,initialWidth:I=Number.POSITIVE_INFINITY,initialHeight:e=Number.POSITIVE_INFINITY,listenOrientation:t=!0,includeScrollbar:i=!0,type:A="inner"}=C,n=l.ref(I),s=l.ref(e),o=()=>{g&&(A==="outer"?(n.value=g.outerWidth,s.value=g.outerHeight):i?(n.value=g.innerWidth,s.value=g.innerHeight):(n.value=g.document.documentElement.clientWidth,s.value=g.document.documentElement.clientHeight))};if(o(),ne(o),hg("resize",o,{passive:!0}),t){const a=Ni("(orientation: portrait)");l.watch(a,()=>o())}return{width:n,height:s}}const T6=Object.freeze(Object.defineProperty({__proto__:null,DefaultMagicKeysAliasMap:Kf,StorageSerializers:Dy,TransitionPresets:B6,assert:m7,asyncComputed:nf,autoResetRef:_H,breakpointsAntDesign:zE,breakpointsBootstrapV5:kE,breakpointsElement:vE,breakpointsMasterCss:TE,breakpointsPrimeFlex:LE,breakpointsQuasar:JE,breakpointsSematic:xE,breakpointsTailwind:DE,breakpointsVuetify:KE,breakpointsVuetifyV2:cf,breakpointsVuetifyV3:FE,bypassFilter:kb,camelize:jH,clamp:Vw,cloneFnJSON:Jb,computedAsync:nf,computedEager:DH,computedInject:aE,computedWithControl:Wy,containsProp:Ny,controlledComputed:Wy,controlledRef:y7,createEventHook:ct,createFetch:ZP,createFilterWrapper:Jd,createGlobalState:A7,createInjectionState:n7,createReactiveFn:By,createReusableTemplate:dE,createSharedComposable:l7,createSingletonPromise:QH,createTemplatePromise:mE,createUnrefFn:rE,customStorageEventName:ky,debounceFilter:Xw,debouncedRef:Vy,debouncedWatch:ef,defaultDocument:Pt,defaultLocation:ZE,defaultNavigator:yi,defaultWindow:Pg,directiveHooks:KA,eagerComputed:DH,executeTransition:l3,extendRef:KH,formatDate:gf,formatTimeAgo:i3,get:s7,getLifeCycleTarget:Kb,getSSRHandler:kw,hasOwn:LH,hyphenate:G7,identity:yy,ignorableWatch:Vr,increaseWithUnit:OH,injectLocal:kH,invoke:W7,isClient:ue,isDef:TH,isDefined:o7,isIOS:zd,isObject:Wr,isWorker:xH,makeDestructurable:zH,mapGamepadToXbox360Controller:yP,noop:NI,normalizeDate:If,notNullish:Db,now:Z7,objectEntries:PH,objectOmit:EH,objectPick:UH,onClickOutside:sf,onKeyDown:uE,onKeyPressed:hE,onKeyStroke:Hw,onKeyUp:GE,onLongPress:BE,onStartTyping:yE,pausableFilter:Yy,pausableWatch:xd,promiseTimeout:Br,provideLocal:FH,rand:b7,reactify:By,reactifyObject:d7,reactiveComputed:py,reactiveOmit:c7,reactivePick:p7,refAutoReset:_H,refDebounced:Vy,refDefault:Y7,refThrottled:Xy,refWithControl:qH,resolveRef:B7,resolveUnref:a7,set:N7,setSSRHandler:_E,syncRef:Ry,syncRefs:V7,templateRef:NE,throttleFilter:Fb,throttledRef:Xy,throttledWatch:tf,timestamp:Kd,toReactive:JH,toRef:PC,toRefs:My,toValue:_,tryOnBeforeMount:X7,tryOnBeforeUnmount:$H,tryOnMounted:ne,tryOnScopeDispose:GI,tryOnUnmounted:Mw,unrefElement:KI,until:yr,useActiveElement:fy,useAnimate:VE,useArrayDifference:M7,useArrayEvery:H7,useArrayFilter:f7,useArrayFind:S7,useArrayFindIndex:D7,useArrayFindLast:F7,useArrayIncludes:z7,useArrayJoin:J7,useArrayMap:x7,useArrayReduce:T7,useArraySome:L7,useArrayUnique:Q7,useAsyncQueue:XE,useAsyncState:af,useBase64:HE,useBattery:df,useBluetooth:SE,useBreakpoints:jE,useBroadcastChannel:QE,useBrowserLocation:rf,useCached:OE,useClipboard:Zf,useClipboardItems:UE,useCloned:EE,useColorMode:hf,useConfirmDialog:$E,useCounter:O7,useCssVar:Tb,useCurrentElement:Gf,useCycleList:gP,useDark:wf,useDateFormat:_7,useDebounce:Vy,useDebounceFn:pr,useDebouncedRefHistory:tP,useDeviceMotion:pf,useDeviceOrientation:Ky,useDevicePixelRatio:Yf,useDevicesList:yf,useDisplayMedia:iP,useDocumentVisibility:zy,useDraggable:Nf,useDropZone:AP,useElementBounding:Vf,useElementByPoint:nP,useElementHover:lP,useElementSize:Jy,useElementVisibility:xy,useEventBus:sP,useEventListener:hg,useEventSource:aP,useEyeDropper:Rf,useFavicon:dP,useFetch:Mf,useFileDialog:hP,useFileSystemAccess:GP,useFocus:wP,useFocusWithin:pP,useFps:YP,useFullscreen:ff,useGamepad:NP,useGeolocation:Sf,useIdle:Df,useImage:MP,useInfiniteScroll:HP,useIntersectionObserver:Xf,useInterval:q7,useIntervalFn:xo,useKeyModifier:SP,useLastChanged:$7,useLocalStorage:DP,useMagicKeys:kP,useManualRefHistory:Bf,useMediaControls:zP,useMediaQuery:Ni,useMemoize:JP,useMemory:xP,useMounted:of,useMouse:vy,useMouseInElement:jy,useMousePressed:zf,useMutationObserver:Xr,useNavigatorLanguage:LP,useNetwork:Qy,useNow:Oy,useObjectUrl:Jf,useOffsetPagination:Tf,useOnline:Lf,usePageLeave:vf,useParallax:vP,useParentElement:jP,usePerformanceObserver:QP,usePermission:fw,usePointer:Of,usePointerLock:Uf,usePointerSwipe:UP,usePreferredColorScheme:Ef,usePreferredContrast:Pf,usePreferredDark:Fw,usePreferredLanguages:_f,usePreferredReducedMotion:qf,usePrevious:EP,useRafFn:Ld,useRefHistory:Fy,useResizeObserver:Kw,useScreenOrientation:jf,useScreenSafeArea:PP,useScriptTag:_P,useScroll:Ff,useScrollLock:$P,useSessionStorage:g6,useShare:I6,useSorted:e6,useSpeechRecognition:t6,useSpeechSynthesis:i6,useStepper:A6,useStorage:xb,useStorageAsync:n6,useStyleTag:s6,useSupported:TI,useSwipe:o6,useTemplateRefsList:d6,useTextDirection:c6,useTextSelection:r6,useTextareaAutosize:Z6,useThrottle:Xy,useThrottleFn:Rw,useThrottledRefHistory:b6,useTimeAgo:t3,useTimeout:gE,useTimeoutFn:Nr,useTimeoutPoll:w6,useTimestamp:A3,useTitle:W6,useToNumber:IE,useToString:CE,useToggle:Cf,useTransition:Y6,useUrlSearchParams:y6,useUserMedia:N6,useVModel:s3,useVModels:V6,useVibrate:X6,useVirtualList:o3,useWakeLock:f6,useWebNotification:S6,useWebSocket:D6,useWebWorker:k6,useWebWorkerFn:J6,useWindowFocus:G3,useWindowScroll:x6,useWindowSize:w3,watchArray:eE,watchAtMost:tE,watchDebounced:ef,watchDeep:iE,watchIgnorable:Vr,watchImmediate:AE,watchOnce:nE,watchPausable:xd,watchThrottled:tf,watchTriggerable:lE,watchWithFilter:Yr,whenever:Af},Symbol.toStringTag,{value:"Module"})),L6=l.defineComponent({name:"OnClickOutside",props:["as","options"],emits:["trigger"],setup(C,{slots:g,emit:I}){const e=l.ref();return sf(e,t=>{I("trigger",t)},C.options),()=>{if(g.default)return l.h(C.as||"div",{ref:e},g.default())}}}),Ht=ue?window:void 0;function xe(C){var g;const I=_(C);return(g=I==null?void 0:I.$el)!=null?g:I}function _t(...C){let g,I,e,t;if(typeof C[0]=="string"||Array.isArray(C[0])?([I,e,t]=C,g=Ht):[g,I,e,t]=C,!g)return NI;Array.isArray(I)||(I=[I]),Array.isArray(e)||(e=[e]);const i=[],A=()=>{i.forEach(a=>a()),i.length=0},n=(a,d,m,Z)=>(a.addEventListener(d,m,Z),()=>a.removeEventListener(d,m,Z)),s=l.watch(()=>[xe(g),_(t)],([a,d])=>{if(A(),!a)return;const m=Wr(d)?{...d}:d;i.push(...I.flatMap(Z=>e.map(u=>n(a,Z,u,m))))},{immediate:!0,flush:"post"}),o=()=>{s(),A()};return GI(o),o}let W3=!1;function B3(C,g,I={}){const{window:e=Ht,ignore:t=[],capture:i=!0,detectIframe:A=!1}=I;if(!e)return NI;zd&&!W3&&(W3=!0,Array.from(e.document.body.children).forEach(h=>h.addEventListener("click",NI)),e.document.documentElement.addEventListener("click",NI));let n=!0;const s=h=>_(t).some(G=>{if(typeof G=="string")return Array.from(e.document.querySelectorAll(G)).some(w=>w===h.target||h.composedPath().includes(w));{const w=xe(G);return w&&(h.target===w||h.composedPath().includes(w))}});function o(h){const G=_(h);return G&&G.$.subTree.shapeFlag===16}function a(h,G){const w=_(h),B=w.$.subTree&&w.$.subTree.children;return B==null||!Array.isArray(B)?!1:B.some(p=>p.el===G.target||G.composedPath().includes(p.el))}const d=h=>{const G=xe(C);if(h.target!=null&&!(!(G instanceof Element)&&o(C)&&a(C,h))&&!(!G||G===h.target||h.composedPath().includes(G))){if(h.detail===0&&(n=!s(h)),!n){n=!0;return}g(h)}};let m=!1;const Z=[_t(e,"click",h=>{m||(m=!0,setTimeout(()=>{m=!1},0),d(h))},{passive:!0,capture:i}),_t(e,"pointerdown",h=>{const G=xe(C);n=!s(h)&&!!(G&&!h.composedPath().includes(G))},{passive:!0}),A&&_t(e,"blur",h=>{setTimeout(()=>{var G;const w=xe(C);((G=e.document.activeElement)==null?void 0:G.tagName)==="IFRAME"&&!(w!=null&&w.contains(e.document.activeElement))&&g(h)},0)})].filter(Boolean);return()=>Z.forEach(h=>h())}const To={[KA.mounted](C,g){const I=!g.modifiers.bubble;if(typeof g.value=="function")C.__onClickOutside_stop=B3(C,g.value,{capture:I});else{const[e,t]=g.value;C.__onClickOutside_stop=B3(C,e,Object.assign({capture:I},t))}},[KA.unmounted](C){C.__onClickOutside_stop()}};function v6(C){return typeof C=="function"?C:typeof C=="string"?g=>g.key===C:Array.isArray(C)?g=>C.includes(g.key):()=>!0}function p3(...C){let g,I,e={};C.length===3?(g=C[0],I=C[1],e=C[2]):C.length===2?typeof C[1]=="object"?(g=!0,I=C[0],e=C[1]):(g=C[0],I=C[1]):(g=!0,I=C[0]);const{target:t=Ht,eventName:i="keydown",passive:A=!1,dedupe:n=!1}=e,s=v6(g);return _t(t,i,a=>{a.repeat&&_(n)||s(a)&&I(a)},A)}const j6={[KA.mounted](C,g){var I,e;const t=(e=(I=g.arg)==null?void 0:I.split(","))!=null?e:!0;if(typeof g.value=="function")p3(t,g.value,{target:C});else{const[i,A]=g.value;p3(t,i,{target:C,...A})}}},Q6=500,O6=10;function _y(C,g,I){var e,t;const i=l.computed(()=>xe(C));let A,n,s,o=!1;function a(){A&&(clearTimeout(A),A=void 0),n=void 0,s=void 0,o=!1}function d(w){var B,p,Y;const[N,R,X]=[s,n,o];if(a(),!(I!=null&&I.onMouseUp)||!R||!N||(B=I==null?void 0:I.modifiers)!=null&&B.self&&w.target!==i.value)return;(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&w.preventDefault(),(Y=I==null?void 0:I.modifiers)!=null&&Y.stop&&w.stopPropagation();const K=w.x-R.x,D=w.y-R.y,k=Math.sqrt(K*K+D*D);I.onMouseUp(w.timeStamp-N,k,X)}function m(w){var B,p,Y,N;(B=I==null?void 0:I.modifiers)!=null&&B.self&&w.target!==i.value||(a(),(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&w.preventDefault(),(Y=I==null?void 0:I.modifiers)!=null&&Y.stop&&w.stopPropagation(),n={x:w.x,y:w.y},s=w.timeStamp,A=setTimeout(()=>{o=!0,g(w)},(N=I==null?void 0:I.delay)!=null?N:Q6))}function Z(w){var B,p,Y,N;if((B=I==null?void 0:I.modifiers)!=null&&B.self&&w.target!==i.value||!n||(I==null?void 0:I.distanceThreshold)===!1)return;(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&w.preventDefault(),(Y=I==null?void 0:I.modifiers)!=null&&Y.stop&&w.stopPropagation();const R=w.x-n.x,X=w.y-n.y;Math.sqrt(R*R+X*X)>=((N=I==null?void 0:I.distanceThreshold)!=null?N:O6)&&a()}const u={capture:(e=I==null?void 0:I.modifiers)==null?void 0:e.capture,once:(t=I==null?void 0:I.modifiers)==null?void 0:t.once},h=[_t(i,"pointerdown",m,u),_t(i,"pointermove",Z,u),_t(i,["pointerup","pointerleave"],d,u)];return()=>h.forEach(w=>w())}const U6=l.defineComponent({name:"OnLongPress",props:["as","options"],emits:["trigger"],setup(C,{slots:g,emit:I}){const e=l.ref();return _y(e,t=>{I("trigger",t)},C.options),()=>{if(g.default)return l.h(C.as||"div",{ref:e},g.default())}}}),Y3={[KA.mounted](C,g){typeof g.value=="function"?_y(C,g.value,{modifiers:g.modifiers}):_y(C,...g.value)}},E6=l.defineComponent({name:"UseActiveElement",setup(C,{slots:g}){const I=l.reactive({element:fy()});return()=>{if(g.default)return g.default(I)}}}),P6=l.defineComponent({name:"UseBattery",setup(C,{slots:g}){const I=l.reactive(df(C));return()=>{if(g.default)return g.default(I)}}}),_6=l.defineComponent({name:"UseBrowserLocation",setup(C,{slots:g}){const I=l.reactive(rf());return()=>{if(g.default)return g.default(I)}}}),q6=l.defineComponent({name:"UseClipboard",props:["source","read","navigator","copiedDuring","legacy"],setup(C,{slots:g}){const I=l.reactive(Zf(C));return()=>{var e;return(e=g.default)==null?void 0:e.call(g,I)}}}),Lw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vw="__vueuse_ssr_handlers__",$6=g8();function g8(){return vw in Lw||(Lw[vw]=Lw[vw]||{}),Lw[vw]}function y3(C,g){return $6[C]||g}function I8(){const C=l.ref(!1),g=l.getCurrentInstance();return g&&l.onMounted(()=>{C.value=!0},g),C}function jw(C){const g=I8();return l.computed(()=>(g.value,!!C()))}function C8(C,g={}){const{window:I=Ht}=g,e=jw(()=>I&&"matchMedia"in I&&typeof I.matchMedia=="function");let t;const i=l.ref(!1),A=o=>{i.value=o.matches},n=()=>{t&&("removeEventListener"in t?t.removeEventListener("change",A):t.removeListener(A))},s=l.watchEffect(()=>{e.value&&(n(),t=I.matchMedia(_(C)),"addEventListener"in t?t.addEventListener("change",A):t.addListener(A),i.value=t.matches)});return GI(()=>{s(),n(),t=void 0}),i}function e8(C){return C8("(prefers-color-scheme: dark)",C)}function t8(C){return C==null?"any":C instanceof Set?"set":C instanceof Map?"map":C instanceof Date?"date":typeof C=="boolean"?"boolean":typeof C=="string"?"string":typeof C=="object"?"object":Number.isNaN(C)?"any":"number"}const i8={boolean:{read:C=>C==="true",write:C=>String(C)},object:{read:C=>JSON.parse(C),write:C=>JSON.stringify(C)},number:{read:C=>Number.parseFloat(C),write:C=>String(C)},any:{read:C=>C,write:C=>String(C)},string:{read:C=>C,write:C=>String(C)},map:{read:C=>new Map(JSON.parse(C)),write:C=>JSON.stringify(Array.from(C.entries()))},set:{read:C=>new Set(JSON.parse(C)),write:C=>JSON.stringify(Array.from(C))},date:{read:C=>new Date(C),write:C=>C.toISOString()}},N3="vueuse-storage";function A8(C,g,I,e={}){var t;const{flush:i="pre",deep:A=!0,listenToStorageChanges:n=!0,writeDefaults:s=!0,mergeDefaults:o=!1,shallow:a,window:d=Ht,eventFilter:m,onError:Z=k=>{console.error(k)},initOnMounted:u}=e,h=(a?l.shallowRef:l.ref)(typeof g=="function"?g():g);if(!I)try{I=y3("getDefaultStorage",()=>{var k;return(k=Ht)==null?void 0:k.localStorage})()}catch(k){Z(k)}if(!I)return h;const G=_(g),w=t8(G),B=(t=e.serializer)!=null?t:i8[w],{pause:p,resume:Y}=xd(h,()=>R(h.value),{flush:i,deep:A,eventFilter:m});d&&n&&ne(()=>{I instanceof Storage?_t(d,"storage",K):_t(d,N3,D),u&&K()}),u||K();function N(k,z){if(d){const v={key:C,oldValue:k,newValue:z,storageArea:I};d.dispatchEvent(I instanceof Storage?new StorageEvent("storage",v):new CustomEvent(N3,{detail:v}))}}function R(k){try{const z=I.getItem(C);if(k==null)N(z,null),I.removeItem(C);else{const v=B.write(k);z!==v&&(I.setItem(C,v),N(z,v))}}catch(z){Z(z)}}function X(k){const z=k?k.newValue:I.getItem(C);if(z==null)return s&&G!=null&&I.setItem(C,B.write(G)),G;if(!k&&o){const v=B.read(z);return typeof o=="function"?o(v,G):w==="object"&&!Array.isArray(v)?{...G,...v}:v}else return typeof z!="string"?z:B.read(z)}function K(k){if(!(k&&k.storageArea!==I)){if(k&&k.key==null){h.value=G;return}if(!(k&&k.key!==C)){p();try{(k==null?void 0:k.newValue)!==B.write(h.value)&&(h.value=X(k))}catch(z){Z(z)}finally{k?l.nextTick(Y):Y()}}}}function D(k){K(k.detail)}return h}const n8="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function l8(C={}){const{selector:g="html",attribute:I="class",initialValue:e="auto",window:t=Ht,storage:i,storageKey:A="vueuse-color-scheme",listenToStorageChanges:n=!0,storageRef:s,emitAuto:o,disableTransition:a=!0}=C,d={auto:"",light:"light",dark:"dark",...C.modes||{}},m=e8({window:t}),Z=l.computed(()=>m.value?"dark":"light"),u=s||(A==null?PC(e):A8(A,e,i,{window:t,listenToStorageChanges:n})),h=l.computed(()=>u.value==="auto"?Z.value:u.value),G=y3("updateHTMLAttrs",(Y,N,R)=>{const X=typeof Y=="string"?t==null?void 0:t.document.querySelector(Y):xe(Y);if(!X)return;const K=new Set,D=new Set;let k=null;if(N==="class"){const v=R.split(/\s/g);Object.values(d).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{v.includes(O)?K.add(O):D.add(O)})}else k={key:N,value:R};if(K.size===0&&D.size===0&&k===null)return;let z;a&&(z=t.document.createElement("style"),z.appendChild(document.createTextNode(n8)),t.document.head.appendChild(z));for(const v of K)X.classList.add(v);for(const v of D)X.classList.remove(v);k&&X.setAttribute(k.key,k.value),a&&(t.getComputedStyle(z).opacity,document.head.removeChild(z))});function w(Y){var N;G(g,I,(N=d[Y])!=null?N:Y)}function B(Y){C.onChanged?C.onChanged(Y,w):w(Y)}l.watch(h,B,{flush:"post",immediate:!0}),ne(()=>B(h.value));const p=l.computed({get(){return o?u.value:h.value},set(Y){u.value=Y}});try{return Object.assign(p,{store:u,system:Z,state:h})}catch{return p}}const s8=l.defineComponent({name:"UseColorMode",props:["selector","attribute","modes","onChanged","storageKey","storage","emitAuto"],setup(C,{slots:g}){const I=l8(C),e=l.reactive({mode:I,system:I.system,store:I.store});return()=>{if(g.default)return g.default(e)}}}),o8=l.defineComponent({name:"UseDark",props:["selector","attribute","valueDark","valueLight","onChanged","storageKey","storage"],setup(C,{slots:g}){const I=wf(C),e=l.reactive({isDark:I,toggleDark:Cf(I)});return()=>{if(g.default)return g.default(e)}}}),a8=l.defineComponent({name:"UseDeviceMotion",setup(C,{slots:g}){const I=l.reactive(pf());return()=>{if(g.default)return g.default(I)}}}),d8=l.defineComponent({name:"UseDeviceOrientation",setup(C,{slots:g}){const I=l.reactive(Ky());return()=>{if(g.default)return g.default(I)}}}),c8=l.defineComponent({name:"UseDevicePixelRatio",setup(C,{slots:g}){const I=l.reactive({pixelRatio:Yf()});return()=>{if(g.default)return g.default(I)}}}),m8=l.defineComponent({name:"UseDevicesList",props:["onUpdated","requestPermissions","constraints"],setup(C,{slots:g}){const I=l.reactive(yf(C));return()=>{if(g.default)return g.default(I)}}}),r8=l.defineComponent({name:"UseDocumentVisibility",setup(C,{slots:g}){const I=l.reactive({visibility:zy()});return()=>{if(g.default)return g.default(I)}}}),Z8=l.defineComponent({name:"UseDraggable",props:["storageKey","storageType","initialValue","exact","preventDefault","stopPropagation","pointerTypes","as","handle","axis","onStart","onMove","onEnd","disabled","buttons","containerElement"],setup(C,{slots:g}){const I=l.ref(),e=l.computed(()=>{var a;return(a=C.handle)!=null?a:I.value}),t=l.computed(()=>{var a;return(a=C.containerElement)!=null?a:void 0}),i=l.computed(()=>!!C.disabled),A=C.storageKey&&xb(C.storageKey,_(C.initialValue)||{x:0,y:0},ue?C.storageType==="session"?sessionStorage:localStorage:void 0),n=A||C.initialValue||{x:0,y:0},s=(a,d)=>{var m;(m=C.onEnd)==null||m.call(C,a,d),A&&(A.value.x=a.x,A.value.y=a.y)},o=l.reactive(Nf(I,{...C,handle:e,initialValue:n,onEnd:s,disabled:i,containerElement:t}));return()=>{if(g.default)return l.h(C.as||"div",{ref:I,style:`touch-action:none;${o.style}`},g.default(o))}}}),b8=l.defineComponent({name:"UseElementBounding",props:["box","as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(Vf(I));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}});function V3(C,g={}){const{delayEnter:I=0,delayLeave:e=0,window:t=Ht}=g,i=l.ref(!1);let A;const n=s=>{const o=s?I:e;A&&(clearTimeout(A),A=void 0),o?A=setTimeout(()=>i.value=s,o):i.value=s};return t&&(_t(C,"mouseenter",()=>n(!0),{passive:!0}),_t(C,"mouseleave",()=>n(!1),{passive:!0})),i}const u8={[KA.mounted](C,g){const I=g.value;if(typeof I=="function"){const e=V3(C);l.watch(e,t=>I(t))}else{const[e,t]=I,i=V3(C,t);l.watch(i,A=>e(A))}}},h8=l.defineComponent({name:"UseElementSize",props:["width","height","box","as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(Jy(I,{width:C.width,height:C.height},{box:C.box}));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}});function qy(C,g,I={}){const{window:e=Ht,...t}=I;let i;const A=jw(()=>e&&"ResizeObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},s=l.computed(()=>{const d=_(C);return Array.isArray(d)?d.map(m=>xe(m)):[xe(d)]}),o=l.watch(s,d=>{if(n(),A.value&&e){i=new ResizeObserver(g);for(const m of d)m&&i.observe(m,t)}},{immediate:!0,flush:"post"}),a=()=>{n(),o()};return GI(a),{isSupported:A,stop:a}}function G8(C,g={width:0,height:0},I={}){const{window:e=Ht,box:t="content-box"}=I,i=l.computed(()=>{var d,m;return(m=(d=xe(C))==null?void 0:d.namespaceURI)==null?void 0:m.includes("svg")}),A=l.ref(g.width),n=l.ref(g.height),{stop:s}=qy(C,([d])=>{const m=t==="border-box"?d.borderBoxSize:t==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(e&&i.value){const Z=xe(C);if(Z){const u=Z.getBoundingClientRect();A.value=u.width,n.value=u.height}}else if(m){const Z=Array.isArray(m)?m:[m];A.value=Z.reduce((u,{inlineSize:h})=>u+h,0),n.value=Z.reduce((u,{blockSize:h})=>u+h,0)}else A.value=d.contentRect.width,n.value=d.contentRect.height},I);ne(()=>{const d=xe(C);d&&(A.value="offsetWidth"in d?d.offsetWidth:g.width,n.value="offsetHeight"in d?d.offsetHeight:g.height)});const o=l.watch(()=>xe(C),d=>{A.value=d?g.width:0,n.value=d?g.height:0});function a(){s(),o()}return{width:A,height:n,stop:a}}const w8={[KA.mounted](C,g){var I;const e=typeof g.value=="function"?g.value:(I=g.value)==null?void 0:I[0],t=typeof g.value=="function"?[]:g.value.slice(1),{width:i,height:A}=G8(C,...t);l.watch([i,A],([n,s])=>e({width:n,height:s}))}},W8=l.defineComponent({name:"UseElementVisibility",props:["as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive({isVisible:xy(I)});return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}});function $y(C,g,I={}){const{root:e,rootMargin:t="0px",threshold:i=0,window:A=Ht,immediate:n=!0}=I,s=jw(()=>A&&"IntersectionObserver"in A),o=l.computed(()=>{const u=_(C);return(Array.isArray(u)?u:[u]).map(xe).filter(Db)});let a=NI;const d=l.ref(n),m=s.value?l.watch(()=>[o.value,xe(e),d.value],([u,h])=>{if(a(),!d.value||!u.length)return;const G=new IntersectionObserver(g,{root:xe(h),rootMargin:t,threshold:i});u.forEach(w=>w&&G.observe(w)),a=()=>{G.disconnect(),a=NI}},{immediate:n,flush:"post"}):NI,Z=()=>{a(),m(),d.value=!1};return GI(Z),{isSupported:s,isActive:d,pause(){a(),d.value=!1},resume(){d.value=!0},stop:Z}}function gN(C,g={}){const{window:I=Ht,scrollTarget:e,threshold:t=0}=g,i=l.ref(!1);return $y(C,A=>{let n=i.value,s=0;for(const o of A)o.time>=s&&(s=o.time,n=o.isIntersecting);i.value=n},{root:e,window:I,threshold:t}),i}const B8={[KA.mounted](C,g){if(typeof g.value=="function"){const I=g.value,e=gN(C);l.watch(e,t=>I(t),{immediate:!0})}else{const[I,e]=g.value,t=gN(C,e);l.watch(t,i=>I(i),{immediate:!0})}}},p8=l.defineComponent({name:"UseEyeDropper",props:{sRGBHex:String},setup(C,{slots:g}){const I=l.reactive(Rf());return()=>{if(g.default)return g.default(I)}}}),Y8=l.defineComponent({name:"UseFullscreen",props:["as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(ff(I));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}}),y8=l.defineComponent({name:"UseGeolocation",props:["enableHighAccuracy","maximumAge","timeout","navigator"],setup(C,{slots:g}){const I=l.reactive(Sf(C));return()=>{if(g.default)return g.default(I)}}}),N8=l.defineComponent({name:"UseIdle",props:["timeout","events","listenForVisibilityChange","initialState"],setup(C,{slots:g}){const I=l.reactive(Df(C.timeout,C));return()=>{if(g.default)return g.default(I)}}});function V8(C,g,I){const{immediate:e=!0,delay:t=0,onError:i=NI,onSuccess:A=NI,resetOnExecute:n=!0,shallow:s=!0,throwError:o}=I??{},a=s?l.shallowRef(g):l.ref(g),d=l.ref(!1),m=l.ref(!1),Z=l.shallowRef(void 0);async function u(w=0,...B){n&&(a.value=g),Z.value=void 0,d.value=!1,m.value=!0,w>0&&await Br(w);const p=typeof C=="function"?C(...B):C;try{const Y=await p;a.value=Y,d.value=!0,A(Y)}catch(Y){if(Z.value=Y,i(Y),o)throw Y}finally{m.value=!1}return a.value}e&&u(t);const h={state:a,isReady:d,isLoading:m,error:Z,execute:u};function G(){return new Promise((w,B)=>{yr(m).toBe(!1).then(()=>w(h)).catch(B)})}return{...h,then(w,B){return G().then(w,B)}}}async function X8(C){return new Promise((g,I)=>{const e=new Image,{src:t,srcset:i,sizes:A,class:n,loading:s,crossorigin:o,referrerPolicy:a}=C;e.src=t,i&&(e.srcset=i),A&&(e.sizes=A),n&&(e.className=n),s&&(e.loading=s),o&&(e.crossOrigin=o),a&&(e.referrerPolicy=a),e.onload=()=>g(e),e.onerror=I})}function R8(C,g={}){const I=V8(()=>X8(_(C)),void 0,{resetOnExecute:!0,...g});return l.watch(()=>_(C),()=>I.execute(g.delay),{deep:!0}),I}const M8=l.defineComponent({name:"UseImage",props:["src","srcset","sizes","as","alt","class","loading","crossorigin","referrerPolicy"],setup(C,{slots:g}){const I=l.reactive(R8(C));return()=>I.isLoading&&g.loading?g.loading(I):I.error&&g.error?g.error(I.error):g.default?g.default(I):l.h(C.as||"img",C)}});function Qw(C){return typeof Window<"u"&&C instanceof Window?C.document.documentElement:typeof Document<"u"&&C instanceof Document?C.documentElement:C}const X3=1;function IN(C,g={}){const{throttle:I=0,idle:e=200,onStop:t=NI,onScroll:i=NI,offset:A={left:0,right:0,top:0,bottom:0},eventListenerOptions:n={capture:!1,passive:!0},behavior:s="auto",window:o=Ht,onError:a=X=>{console.error(X)}}=g,d=l.ref(0),m=l.ref(0),Z=l.computed({get(){return d.value},set(X){h(X,void 0)}}),u=l.computed({get(){return m.value},set(X){h(void 0,X)}});function h(X,K){var D,k,z,v;if(!o)return;const O=_(C);if(!O)return;(z=O instanceof Document?o.document.body:O)==null||z.scrollTo({top:(D=_(K))!=null?D:u.value,left:(k=_(X))!=null?k:Z.value,behavior:_(s)});const Cg=((v=O==null?void 0:O.document)==null?void 0:v.documentElement)||(O==null?void 0:O.documentElement)||O;Z!=null&&(d.value=Cg.scrollLeft),u!=null&&(m.value=Cg.scrollTop)}const G=l.ref(!1),w=l.reactive({left:!0,right:!1,top:!0,bottom:!1}),B=l.reactive({left:!1,right:!1,top:!1,bottom:!1}),p=X=>{G.value&&(G.value=!1,B.left=!1,B.right=!1,B.top=!1,B.bottom=!1,t(X))},Y=pr(p,I+e),N=X=>{var K;if(!o)return;const D=((K=X==null?void 0:X.document)==null?void 0:K.documentElement)||(X==null?void 0:X.documentElement)||xe(X),{display:k,flexDirection:z}=getComputedStyle(D),v=D.scrollLeft;B.left=v<d.value,B.right=v>d.value;const O=Math.abs(v)<=(A.left||0),Cg=Math.abs(v)+D.clientWidth>=D.scrollWidth-(A.right||0)-X3;k==="flex"&&z==="row-reverse"?(w.left=Cg,w.right=O):(w.left=O,w.right=Cg),d.value=v;let U=D.scrollTop;X===o.document&&!U&&(U=o.document.body.scrollTop),B.top=U<m.value,B.bottom=U>m.value;const T=Math.abs(U)<=(A.top||0),q=Math.abs(U)+D.clientHeight>=D.scrollHeight-(A.bottom||0)-X3;k==="flex"&&z==="column-reverse"?(w.top=q,w.bottom=T):(w.top=T,w.bottom=q),m.value=U},R=X=>{var K;if(!o)return;const D=(K=X.target.documentElement)!=null?K:X.target;N(D),G.value=!0,Y(X),i(X)};return _t(C,"scroll",I?Rw(R,I,!0,!1):R,n),ne(()=>{try{const X=_(C);if(!X)return;N(X)}catch(X){a(X)}}),_t(C,"scrollend",p,n),{x:Z,y:u,isScrolling:G,arrivedState:w,directions:B,measure(){const X=_(C);o&&X&&N(X)}}}function R3(C,g,I={}){var e;const{direction:t="bottom",interval:i=100,canLoadMore:A=()=>!0}=I,n=l.reactive(IN(C,{...I,offset:{[t]:(e=I.distance)!=null?e:0,...I.offset}})),s=l.ref(),o=l.computed(()=>!!s.value),a=l.computed(()=>Qw(_(C))),d=gN(a);function m(){if(n.measure(),!a.value||!d.value||!A(a.value))return;const{scrollHeight:u,clientHeight:h,scrollWidth:G,clientWidth:w}=a.value,B=t==="bottom"||t==="top"?u<=h:G<=w;(n.arrivedState[t]||B)&&(s.value||(s.value=Promise.all([g(n),new Promise(p=>setTimeout(p,i))]).finally(()=>{s.value=null,l.nextTick(()=>m())})))}const Z=l.watch(()=>[n.arrivedState[t],d.value],m,{immediate:!0});return Mw(Z),{isLoading:o,reset(){l.nextTick(()=>m())}}}const H8={[KA.mounted](C,g){typeof g.value=="function"?R3(C,g.value):R3(C,...g.value)}},f8={[KA.mounted](C,g){typeof g.value=="function"?$y(C,g.value):$y(C,...g.value)}},S8=l.defineComponent({name:"UseMouse",props:["touch","resetOnTouchEnds","initialValue"],setup(C,{slots:g}){const I=l.reactive(vy(C));return()=>{if(g.default)return g.default(I)}}}),D8=l.defineComponent({name:"UseMouseElement",props:["handleOutside","as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(jy(I,C));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}}),k8=l.defineComponent({name:"UseMousePressed",props:["touch","initialValue","as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(zf({...C,target:I}));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}}),F8=l.defineComponent({name:"UseNetwork",setup(C,{slots:g}){const I=l.reactive(Qy());return()=>{if(g.default)return g.default(I)}}}),K8=l.defineComponent({name:"UseNow",props:["interval"],setup(C,{slots:g}){const I=l.reactive(Oy({...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),z8=l.defineComponent({name:"UseObjectUrl",props:["object"],setup(C,{slots:g}){const I=PC(C,"object"),e=Jf(I);return()=>{if(g.default&&e.value)return g.default(e)}}}),J8=l.defineComponent({name:"UseOffsetPagination",props:["total","page","pageSize","onPageChange","onPageSizeChange","onPageCountChange"],emits:["page-change","page-size-change","page-count-change"],setup(C,{slots:g,emit:I}){const e=l.reactive(Tf({...C,onPageChange(...t){var i;(i=C.onPageChange)==null||i.call(C,...t),I("page-change",...t)},onPageSizeChange(...t){var i;(i=C.onPageSizeChange)==null||i.call(C,...t),I("page-size-change",...t)},onPageCountChange(...t){var i;(i=C.onPageCountChange)==null||i.call(C,...t),I("page-count-change",...t)}}));return()=>{if(g.default)return g.default(e)}}}),x8=l.defineComponent({name:"UseOnline",setup(C,{slots:g}){const I=l.reactive({isOnline:Lf()});return()=>{if(g.default)return g.default(I)}}}),T8=l.defineComponent({name:"UsePageLeave",setup(C,{slots:g}){const I=l.reactive({isLeft:vf()});return()=>{if(g.default)return g.default(I)}}}),L8=l.defineComponent({name:"UsePointer",props:["pointerTypes","initialValue","target"],setup(C,{slots:g}){const I=l.ref(null),e=l.reactive(Of({...C,target:C.target==="self"?I:Ht}));return()=>{if(g.default)return g.default(e,{ref:I})}}}),v8=l.defineComponent({name:"UsePointerLock",props:["as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(Uf(I));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}}),j8=l.defineComponent({name:"UsePreferredColorScheme",setup(C,{slots:g}){const I=l.reactive({colorScheme:Ef()});return()=>{if(g.default)return g.default(I)}}}),Q8=l.defineComponent({name:"UsePreferredContrast",setup(C,{slots:g}){const I=l.reactive({contrast:Pf()});return()=>{if(g.default)return g.default(I)}}}),O8=l.defineComponent({name:"UsePreferredDark",setup(C,{slots:g}){const I=l.reactive({prefersDark:Fw()});return()=>{if(g.default)return g.default(I)}}}),U8=l.defineComponent({name:"UsePreferredLanguages",setup(C,{slots:g}){const I=l.reactive({languages:_f()});return()=>{if(g.default)return g.default(I)}}}),E8=l.defineComponent({name:"UsePreferredReducedMotion",setup(C,{slots:g}){const I=l.reactive({motion:qf()});return()=>{if(g.default)return g.default(I)}}}),P8={[KA.mounted](C,g){typeof g.value=="function"?qy(C,g.value):qy(C,...g.value)}};function _8(C,g,I={}){const{window:e=Ht,...t}=I;let i;const A=jw(()=>e&&"MutationObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},s=l.computed(()=>{const m=_(C),Z=(Array.isArray(m)?m:[m]).map(xe).filter(Db);return new Set(Z)}),o=l.watch(()=>s.value,m=>{n(),A.value&&m.size&&(i=new MutationObserver(g),m.forEach(Z=>i.observe(Z,t)))},{immediate:!0,flush:"post"}),a=()=>i==null?void 0:i.takeRecords(),d=()=>{o(),n()};return GI(d),{isSupported:A,stop:d,takeRecords:a}}function Ow(C,g,I={}){const{window:e=Ht,initialValue:t,observe:i=!1}=I,A=l.ref(t),n=l.computed(()=>{var o;return xe(g)||((o=e==null?void 0:e.document)==null?void 0:o.documentElement)});function s(){var o;const a=_(C),d=_(n);if(d&&e&&a){const m=(o=e.getComputedStyle(d).getPropertyValue(a))==null?void 0:o.trim();A.value=m||t}}return i&&_8(n,s,{attributeFilter:["style","class"],window:e}),l.watch([n,()=>_(C)],(o,a)=>{a[0]&&a[1]&&a[0].style.removeProperty(a[1]),s()},{immediate:!0}),l.watch(A,o=>{var a;const d=_(C);(a=n.value)!=null&&a.style&&d&&(o==null?n.value.style.removeProperty(d):n.value.style.setProperty(d,o))}),A}const M3="--vueuse-safe-area-top",H3="--vueuse-safe-area-right",f3="--vueuse-safe-area-bottom",S3="--vueuse-safe-area-left";function q8(){const C=l.ref(""),g=l.ref(""),I=l.ref(""),e=l.ref("");if(ue){const i=Ow(M3),A=Ow(H3),n=Ow(f3),s=Ow(S3);i.value="env(safe-area-inset-top, 0px)",A.value="env(safe-area-inset-right, 0px)",n.value="env(safe-area-inset-bottom, 0px)",s.value="env(safe-area-inset-left, 0px)",t(),_t("resize",pr(t))}function t(){C.value=Uw(M3),g.value=Uw(H3),I.value=Uw(f3),e.value=Uw(S3)}return{top:C,right:g,bottom:I,left:e,update:t}}function Uw(C){return getComputedStyle(document.documentElement).getPropertyValue(C)}const $8=l.defineComponent({name:"UseScreenSafeArea",props:{top:Boolean,right:Boolean,bottom:Boolean,left:Boolean},setup(C,{slots:g}){const{top:I,right:e,bottom:t,left:i}=q8();return()=>{if(g.default)return l.h("div",{style:{paddingTop:C.top?I.value:"",paddingRight:C.right?e.value:"",paddingBottom:C.bottom?t.value:"",paddingLeft:C.left?i.value:"",boxSizing:"border-box",maxHeight:"100vh",maxWidth:"100vw",overflow:"auto"}},g.default())}}}),g_={[KA.mounted](C,g){if(typeof g.value=="function"){const I=g.value,e=IN(C,{onScroll(){I(e)},onStop(){I(e)}})}else{const[I,e]=g.value,t=IN(C,{...e,onScroll(i){var A;(A=e.onScroll)==null||A.call(e,i),I(t)},onStop(i){var A;(A=e.onStop)==null||A.call(e,i),I(t)}})}}};function D3(C){const g=window.getComputedStyle(C);if(g.overflowX==="scroll"||g.overflowY==="scroll"||g.overflowX==="auto"&&C.clientWidth<C.scrollWidth||g.overflowY==="auto"&&C.clientHeight<C.scrollHeight)return!0;{const I=C.parentNode;return!I||I.tagName==="BODY"?!1:D3(I)}}function I_(C){const g=C||window.event,I=g.target;return D3(I)?!1:g.touches.length>1?!0:(g.preventDefault&&g.preventDefault(),!1)}const CN=new WeakMap;function C_(C,g=!1){const I=l.ref(g);let e=null,t="";l.watch(PC(C),n=>{const s=Qw(_(n));if(s){const o=s;if(CN.get(o)||CN.set(o,o.style.overflow),o.style.overflow!=="hidden"&&(t=o.style.overflow),o.style.overflow==="hidden")return I.value=!0;if(I.value)return o.style.overflow="hidden"}},{immediate:!0});const i=()=>{const n=Qw(_(C));!n||I.value||(zd&&(e=_t(n,"touchmove",s=>{I_(s)},{passive:!1})),n.style.overflow="hidden",I.value=!0)},A=()=>{const n=Qw(_(C));!n||!I.value||(zd&&(e==null||e()),n.style.overflow=t,CN.delete(n),I.value=!1)};return GI(A),l.computed({get(){return I.value},set(n){n?i():A()}})}function e_(){let C=!1;const g=l.ref(!1);return(I,e)=>{if(g.value=e.value,C)return;C=!0;const t=C_(I,e.value);l.watch(g,i=>t.value=i)}}const t_=e_(),i_=l.defineComponent({name:"UseTimeAgo",props:["time","updateInterval","max","fullDateFormatter","messages","showSecond"],setup(C,{slots:g}){const I=l.reactive(t3(()=>C.time,{...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),A_=l.defineComponent({name:"UseTimestamp",props:["immediate","interval","offset"],setup(C,{slots:g}){const I=l.reactive(A3({...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),n_=l.defineComponent({name:"UseVirtualList",props:["list","options","height"],setup(C,{slots:g,expose:I}){const{list:e}=l.toRefs(C),{list:t,containerProps:i,wrapperProps:A,scrollTo:n}=o3(e,C.options);return I({scrollTo:n}),i.style&&typeof i.style=="object"&&!Array.isArray(i.style)&&(i.style.height=C.height||"300px"),()=>l.h("div",{...i},[l.h("div",{...A.value},t.value.map(s=>l.h("div",{style:{overflow:"hidden",height:s.height}},g.default?g.default(s):"Please set content!")))])}}),l_=l.defineComponent({name:"UseWindowFocus",setup(C,{slots:g}){const I=l.reactive({focused:G3()});return()=>{if(g.default)return g.default(I)}}}),s_=l.defineComponent({name:"UseWindowSize",props:["initialWidth","initialHeight"],setup(C,{slots:g}){const I=l.reactive(w3(C));return()=>{if(g.default)return g.default(I)}}});function OI(C,g=document.documentElement){for(const[I,e]of Object.entries(C))g.style.setProperty(I,String(e))}const o_=["data-testid"],a_=["data-testid"],d_=["open","data-testid"],Mr=Qg(l.defineComponent({__name:"SelectList",props:{isOpened:{type:Boolean,default:!1},isUseAnchor:{type:Boolean,default:!1},disableOpen:{type:Boolean},headerClasses:{},optionsClasses:{},disabled:{type:Boolean},dataTestid:{default:"SelectList"}},emits:["change","focusout-options"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isOpened:!1}),i=l.useId(),A=l.ref(null),n=l.ref(null),s=l.ref(null),o=l.computed(()=>`--anchor-select-${i}`);l.watchEffect(()=>t.isOpened=I.isOpened);const a=()=>{I.disabled||I.disableOpen||(t.isOpened=!t.isOpened,e("change",t.isOpened))},d=()=>{t.isOpened=!1,e("focusout-options"),e("change",t.isOpened)},m=()=>{requestAnimationFrame(()=>{if(!n.value||!A.value||!t.isOpened)return;const u=n.value.getBoundingClientRect();if(!I.isUseAnchor)A.value.style.top=`${u.top+u.height}px`;else{OI({transform:"translateX(0) translateY(0)"},A.value);const h=A.value.getBoundingClientRect();let G=0,w=0;h.bottom>document.documentElement.scrollHeight&&(G=-h.bottom+document.documentElement.scrollHeight-10,OI({transform:`translateY(${G}px)`},A.value)),h.right>window.innerWidth&&(w=-h.right+window.innerWidth-10,OI({transform:`translateX(${w}px) translateY(${G}px)`},A.value))}})};l.watch(()=>I.isOpened,()=>{t.isOpened=I.isOpened}),l.watch(()=>t.isOpened,m);const Z=()=>{s.value&&OI({"anchor-name":`${o.value}`},s.value),A.value&&OI({"position-anchor":`${o.value}`},A.value)};return l.onMounted(()=>{I.isUseAnchor?Z():window.addEventListener("scroll",m,!0),window.addEventListener("resize",m)}),l.onUnmounted(()=>{window.removeEventListener("scroll",m,!1),window.removeEventListener("resize",m)}),(u,h)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{ref_key:"selectRef",ref:s,class:"select-list-yui-kit","data-testid":I.dataTestid},[l.renderSlot(u.$slots,"body",{closeOpenList:a},()=>[l.createElementVNode("div",{ref_key:"currentRef",ref:n,class:l.normalizeClass(["select-list-yui-kit__current",{"active-yui-kit":t.isOpened},{"disabled-yui-kit":I.disabled},I==null?void 0:I.headerClasses]),tabindex:"0",onKeyup:l.withKeys(a,["enter"]),onClick:a,"data-testid":`${I.dataTestid}-Current`},[l.renderSlot(u.$slots,"header",{},void 0,!0)],42,a_)],!0),l.withDirectives(l.createElementVNode("ul",{ref_key:"dropdownRef",ref:A,class:l.normalizeClass(["select-list-yui-kit__list",I==null?void 0:I.optionsClasses]),open:t.isOpened,"data-testid":`${I.dataTestid}-OptionsList`},[l.renderSlot(u.$slots,"options",{},void 0,!0)],10,d_),[[l.vShow,t.isOpened]])],8,o_)),[[l.unref(To),d,void 0,{bubble:!0}]])}}),[["__scopeId","data-v-5fb13e3d"]]);function Lo(C){return C!==null&&typeof C=="object"&&"key"in C}function k3(C){return C!==null&&Array.isArray(C)&&typeof C[0]=="object"&&"key"in C[0]}const eN=C=>C!==null&&typeof C=="object"&&"hint"in C,jb=C=>C!==null&&Array.isArray(C)&&eN(C[0]),c_=["onClick","data-testid"],m_={class:"options__value truncate-yui-kit"},r_={key:0,class:"options__used"},tN=Qg(l.defineComponent({__name:"Options",props:{options:{},defaultOption:{},class:{},disabled:{type:Boolean},dataTestid:{default:"Options"}},emits:["change","disabled-click"],setup(C,{emit:g}){const I=C,e=l.reactive({choosedOption:I.defaultOption??(I.options[0]||""),lengthOption:0});l.watch(()=>I.defaultOption,()=>{I.defaultOption?e.choosedOption=I.defaultOption:e.choosedOption=""},{immediate:!0});const t=g,i=l.computed(()=>({"select-list-yui-kit__item":!0,"truncate-yui-kit":!0})),A=o=>{if(Lo(o)&&o.disabled){t("disabled-click",o.key);return}e.choosedOption=o,Lo(e.choosedOption)?t("change",e.choosedOption.key):t("change",e.choosedOption)},n=o=>{let a=!1;return Lo(o)?Lo(e.choosedOption)?o.value===e.choosedOption.value&&(a=!0):((o.key==="null"||o.key===null)&&e.choosedOption===""&&(a=!0),o.value===e.choosedOption&&(a=!0)):Lo(e.choosedOption)?o===e.choosedOption.value&&(a=!0):o===e.choosedOption&&(a=!0),{active:a}},s=o=>eN(o)?o.hint:Lo(o)?o.value:o;return(o,a)=>(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.options,(d,m)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:m},[l.createElementVNode("li",{class:l.normalizeClass([i.value,n(d),{"select-list-yui-kit__item_disabled":l.unref(Lo)(d)?d.disabled:!1},I.class]),onClick:()=>A(d),"data-testid":`${I.dataTestid}-${m}`},[l.createElementVNode("div",{class:l.normalizeClass(["options__item",{options__item_disabled:l.unref(Lo)(d)?d.disabled:!1}])},[l.createElementVNode("div",m_,l.toDisplayString(s(d)),1),typeof d=="object"&&(d!=null&&d.used)?(l.openBlock(),l.createElementBlock("div",r_)):l.createCommentVNode("",!0)],2),l.renderSlot(o.$slots,"option",{inx:m},void 0,!0)],10,c_),l.renderSlot(o.$slots,"default",{},void 0,!0)],64))),128))}}),[["__scopeId","data-v-af6d9933"]]),Z_=["data-testid"],iN=Qg(l.defineComponent({__name:"Dropdown",props:{options:{},defaultOption:{},class:{},disabled:{type:Boolean,default:!1},dataTestid:{default:"Dropdown"}},emits:["change"],setup(C,{emit:g}){const I=C,e=l.reactive({choosedOption:I.defaultOption||I.options[0]||"",isOpened:!1}),t=g,i=n=>{e.isOpened=n},A=n=>{let s;if(k3(I.options)){const o=I.options.find(a=>a.key===n);e.choosedOption=(o==null?void 0:o.value)||n,s=o==null?void 0:o.key}else e.choosedOption=n;e.isOpened=!1,t("change",s||n)};return l.watch(()=>I.defaultOption,()=>{I.defaultOption&&(e.choosedOption=I.defaultOption)}),l.onMounted(()=>{k3(I.options)&&(e.choosedOption=I.defaultOption||I.options[0].value)}),(n,s)=>(l.openBlock(),l.createBlock(Mr,{onChange:i,"is-opened":e.isOpened,class:l.normalizeClass([I.class,"dropdown-yui-kit"]),disabled:I.disabled,"data-testid":I.dataTestid},{header:l.withCtx(()=>[l.createElementVNode("span",{class:"truncate-yui-kit dropdown-yui-kit__text","data-testid":`${I.dataTestid}-SelectedText`},l.toDisplayString(e.choosedOption),9,Z_),e.isOpened?(l.openBlock(),l.createBlock(Yg,{key:0,name:l.unref(rg).chevronUp,"data-testid":`${I.dataTestid}-ArrowUp`},null,8,["name","data-testid"])):l.createCommentVNode("",!0),e.isOpened?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(Yg,{key:1,name:l.unref(rg).chevronDown,"data-testid":`${I.dataTestid}-ArrowDown`},null,8,["name","data-testid"]))]),options:l.withCtx(()=>[l.createVNode(tN,{options:I.options,"default-option":I.defaultOption,onChange:A,"data-testid":`${I.dataTestid}-Options`},null,8,["options","default-option","data-testid"])]),_:1},8,["is-opened","class","disabled","data-testid"]))}}),[["__scopeId","data-v-08af0925"]]);/**
722
722
  * @license
723
723
  * Copyright 2019 Google LLC
724
724
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1523,7 +1523,7 @@
1523
1523
  @change-date=${this.handleDateSelected}
1524
1524
  ></col-cal-dates>
1525
1525
  </div>
1526
- `}};bl([Lg({type:Object})],Hn.prototype,"date",2),bl([Lg({type:Object})],Hn.prototype,"minDate",2),bl([Lg({type:Object})],Hn.prototype,"maxDate",2),bl([Lg({type:String})],Hn.prototype,"locale",2),bl([Lg({type:String})],Hn.prototype,"dataTestid",2),bl([Lg({type:Number})],Hn.prototype,"firstDayOfWeek",2),bl([Lg({type:Array})],Hn.prototype,"disabledDates",2),bl([Lg({type:Array})],Hn.prototype,"events",2),bl([gW()],Hn.prototype,"_date",2),Hn=bl([Ed("col-cal")],Hn);const STg=["data-testid"],DTg=["data-testid"],kTg=["data-testid"],FTg=["required","data-testid"],KTg=["data-testid"],zTg=["data-testid","disabled"],JTg=["data-testid","disabled"],xTg=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:yI.medium},zeroPad:{type:Boolean,default:!1},modelModifiers:{default:()=>({})},dataTestid:{default:"InputNumber"}},emits:["update:modelValue","focused"],setup(C,{emit:g}){const I=g,e=C,t=l.reactive({isPressed:!1,inputElement:e.modelValue||(e.min>0?e.min:0),prevValue:""}),i=/^-?\d{0,10}(\.\d{0,7})?$/,A=l.ref(null);function n(B,p=2){return e.zeroPad&&!isNaN(+B)?String(B).padStart(p,"0"):String(B)}l.watch(()=>e.isInteger,()=>{e.isInteger&&(t.inputElement=o(t.inputElement.toString()),a(t.inputElement))}),l.watch([()=>e.min,()=>e.max],()=>{m(),d()}),l.watch(()=>e.modelValue,(B,p)=>{t.inputElement=e.zeroPad&&(!t.isPressed||Number(p)===0)?n(B):B});const s=B=>{let p=B.target.value;e.zeroPad&&p==="00"||(p=o(p)),a(p),!isNaN(+t.inputElement)&&Number(t.inputElement)<=e.max&&Number(t.inputElement)>=e.min&&I("update:modelValue",t.inputElement)},o=B=>{let p=B.replace(",",".");return e.isInteger&&p.includes(".")&&(p=p.replace(".","")),p==="."?p="0"+p:p==="-."&&(p="-0."+p.slice(2)),/[^\d.]/.test(p)&&(p=p.replace(e.min>=0?/[^0-9.]/g:/[^0-9.-]/g,"")),p.includes("-")&&(p=(p.startsWith("-")?"-":"")+p.replace(/-/g,"")),p.startsWith("0")&&p.length>1&&!p.startsWith("0.")&&(p=p.replace(/^0+/,"")),p.startsWith("-0")&&p.length>2&&!p.startsWith("-0.")&&(p="-"+p.slice(2).replace(/^0+/,"")),(p.match(/\./g)||[]).length>1&&(p=p.slice(0,p.lastIndexOf("."))+p.slice(p.lastIndexOf(".")+1)),p},a=B=>{Number(B)>e.max?t.inputElement=e.max:t.inputElement=B,t.inputElement!==""&&!i.test(`${t.inputElement}`)&&(t.inputElement=t.prevValue)},d=()=>{Number(t.inputElement)<e.min&&(t.inputElement=e.min,I("update:modelValue",+t.inputElement))},m=()=>{Number(t.inputElement)>e.max&&(t.inputElement=e.max,I("update:modelValue",+t.inputElement))},Z=B=>{t.prevValue=t.inputElement,B.key==="ArrowUp"&&G(),B.key==="ArrowDown"&&w()},u=B=>{t.isPressed=!0,I("focused",B)},h=()=>{(t.inputElement===""||t.inputElement===null||isNaN(+t.inputElement))&&(t.inputElement=e.min>0?e.min:0),isNaN(+t.inputElement)&&(t.inputElement=Math.max(e.min,0)),Number(t.inputElement)>e.max?t.inputElement=e.max:Number(t.inputElement)<e.min&&(t.inputElement=e.min),t.inputElement=`${t.inputElement}`.replace(/(\.\d*?[1-9])0+$/,"$1").replace(/\.0+$/,""),t.inputElement=n(t.inputElement),I("update:modelValue",t.inputElement),t.isPressed=!1},G=()=>{var B;+t.inputElement+1<e.max?t.inputElement=+t.inputElement+1:e.max!==1/0?t.inputElement=e.max:t.inputElement=0,i.test(`${t.inputElement}`)?(t.inputElement=n(t.inputElement),I("update:modelValue",t.inputElement)):t.inputElement=t.prevValue,(B=A.value)==null||B.focus()},w=()=>{var B;+t.inputElement-1>e.min?t.inputElement=+t.inputElement-1:e.min!==-1/0?t.inputElement=e.min:t.inputElement=0,t.inputElement=n(t.inputElement),I("update:modelValue",+t.inputElement),(B=A.value)==null||B.focus()};return l.onMounted(()=>{m(),d()}),(B,p)=>(l.openBlock(),l.createElementBlock("fieldset",{class:l.normalizeClass(["input-yui-kit input-yui-kit_number initial",{pressed:t.isPressed,[e.size]:!0}]),"data-testid":e.dataTestid,onFocusout:h},[e.inputMessage?(l.openBlock(),l.createElementBlock("legend",{key:0,class:"input-yui-kit__legend","data-testid":`${e.dataTestid}-Legend`},[l.createTextVNode(l.toDisplayString(e.inputMessage),1),e.required?(l.openBlock(),l.createElementBlock("sup",{key:0,class:"input-yui-kit__star","data-testid":`${e.dataTestid}-Star`},"*",8,kTg)):l.createCommentVNode("",!0)],8,DTg)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("input",{ref_key:"inputNumberRef",ref:A,"onUpdate:modelValue":p[0]||(p[0]=Y=>t.inputElement=Y),onFocus:u,onInput:s,onKeydown:Z,class:"input-yui-kit__input",required:e.required,"data-testid":`${e.dataTestid}-Input`,type:"text"},null,40,FTg),[[l.vModelText,t.inputElement]]),l.createElementVNode("div",{class:"input-yui-kit__buttons","data-testid":`${e.dataTestid}-Buttons`},[l.createElementVNode("button",{class:"input-yui-kit__button-up","data-testid":`${e.dataTestid}-UpButton`,onMousedown:l.withModifiers(G,["prevent"]),disabled:+t.inputElement>=e.max},[l.createVNode(Yg,{name:l.unref(rg).chevronUp,"data-testid":`${e.dataTestid}-Icon`},null,8,["name","data-testid"])],40,zTg),l.createElementVNode("button",{class:"input-yui-kit__button-down","data-testid":`${e.dataTestid}-DownButton`,onMousedown:l.withModifiers(w,["prevent"]),disabled:+t.inputElement<=e.min},[l.createVNode(Yg,{name:l.unref(rg).chevronDown,"data-testid":`${e.dataTestid}-Icon`},null,8,["name","data-testid"])],40,JTg)],8,KTg)],42,STg))}}),ou=Qg(xTg,[["__scopeId","data-v-96201829"]]),TTg=["data-testid"],LTg=["data-testid"],hW=Qg(l.defineComponent({__name:"Dialog",props:{open:{type:Boolean},width:{},height:{},noClose:{type:Boolean},dataTestid:{default:"Dialog"}},emits:["close"],setup(C,{emit:g}){const I=C,e=l.ref(null),t=l.useAttrs(),i=l.ref(!1),A=l.computed(()=>({width:I.width,height:I.height})),n=g,s=()=>{var a;(a=e.value)==null||a.close(),n("close")},o=()=>{var a;return I.open?(a=e.value)==null?void 0:a.showModal():s()};return hg(e,"mousedown",a=>{!I.noClose&&a.target===e.value&&s()}),hg(e,"keydown",a=>{(a.key==="Escape"||a.key==="Esc")&&(I.noClose||s())}),l.onMounted(()=>{l.watchEffect(()=>{I.open!==i.value&&(o(),i.value=I.open)})}),(a,d)=>(l.openBlock(),l.createElementBlock("dialog",l.mergeProps({ref_key:"dialog",ref:e},l.unref(t),{class:"dialog-yui-kit","data-testid":I.dataTestid}),[l.createElementVNode("div",{"data-testid":`${I.dataTestid}-Content`,class:"dialog-yui-kit__dialog-content",style:l.normalizeStyle(A.value)},[l.renderSlot(a.$slots,"default",{},void 0,!0)],12,LTg)],16,TTg))}}),[["__scopeId","data-v-406eddb7"]]),vTg={class:"time-picker-dialog-content"},jTg={class:"time-picker-header"},QTg={key:0,class:"clock-face"},OTg={key:1,class:"clock-face"},UTg={key:0,class:"clock-number__dot"},ETg={class:"time-picker-actions"},GW=Qg(l.defineComponent({__name:"TimePicker",props:{modelValue:{},disabled:{type:Boolean},hideClearButton:{type:Boolean}},emits:["update:modelValue"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({openModal:!1,hours:void 0,minutes:void 0,editingValue:"hour",openClock:!1,localHours:void 0,localMinutes:void 0}),i=l.ref(null);l.watch(()=>I.modelValue,Y=>{if(Y){const N=new Date(Y);t.localHours=N.getHours(),t.localMinutes=N.getMinutes()}else t.localHours=void 0,t.localMinutes=void 0},{immediate:!0}),l.watch(()=>t.openModal,Y=>{Y&&(t.hours=Number(t.localHours)||0,t.minutes=Number(t.localMinutes)||0)});const A=l.computed(()=>t.localHours!==void 0&&t.localMinutes!==void 0?`${String(t.localHours).padStart(2,"0")}:${String(t.localMinutes).padStart(2,"0")}`:"-- --"),n=l.computed(()=>({transform:`rotate(${(t.hours??0)%12*30}deg)`})),s=l.computed(()=>({transform:`rotate(${(t.minutes??0)*6}deg)`}));function o(Y,N=100){const R=Y%12/12*360,X=N*Math.sin(R*Math.PI/180),K=-N*Math.cos(R*Math.PI/180);return{left:`calc(50% + ${X}px - 24.5px)`,top:`calc(50% + ${K}px - 23.5px)`}}function a(Y){var D;const N=(D=i.value)==null?void 0:D.getBoundingClientRect();if(!N)return 0;const R=Y.clientX-(N.left+N.width/2),X=Y.clientY-(N.top+N.height/2);return(Math.atan2(X,R)*(180/Math.PI)+90+360)%360}function d(Y){const N=a(Y);if(t.editingValue==="hour"){const X=Math.hypot(Y.clientX-(i.value.getBoundingClientRect().left+128),Y.clientY-(i.value.getBoundingClientRect().top+128))<90,K=Math.round(N/30)%12||12;t.hours=(X?K+12:K)%24}else t.minutes=Math.round(N/6)%60}function m(Y){d(Y)}function Z(Y){d(Y),document.addEventListener("mousemove",u),document.addEventListener("mouseup",h)}function u(Y){d(Y)}function h(){document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",h)}l.onBeforeUnmount(()=>h());function G(){t.openModal=!1}function w(){t.editingValue="hour",t.openModal=!0}function B(){if(t.hours===void 0||t.minutes===void 0)return;const Y=I.modelValue?new Date(I.modelValue):new Date,N=new Date(Y.getFullYear(),Y.getMonth(),Y.getDate(),+t.hours,+t.minutes,0,0),R=new Date(N.getTime()).toISOString();e("update:modelValue",R),t.localHours=t.hours,t.localMinutes=t.minutes,G()}function p(){t.hours=void 0,t.minutes=void 0,t.localHours=void 0,t.localMinutes=void 0,e("update:modelValue",null)}return(Y,N)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass({"time-picker-select":!0,disabled:I.disabled})},[l.createElementVNode("div",{class:"time-picker-select-content",onClick:w},[l.createVNode(Yg,{name:l.unref(rg).time},null,8,["name"]),l.createElementVNode("span",null,l.toDisplayString(A.value),1),!I.hideClearButton&&(t.localHours!==void 0||t.localMinutes!==void 0)?(l.openBlock(),l.createElementBlock("div",{key:0,class:"time-picker-select-clear",onClick:l.withModifiers(p,["stop"])},[l.createVNode(Yg,{name:l.unref(rg).closeTag,width:16,height:16},null,8,["name"])])):l.createCommentVNode("",!0)]),l.createVNode(hW,{open:t.openModal,onClose:G,class:"time-picker-dialog",width:"328px"},{default:l.withCtx(()=>[l.createElementVNode("div",vTg,[N[11]||(N[11]=l.createElementVNode("h3",null,"Установка времени",-1)),l.createElementVNode("div",jTg,[l.createElementVNode("div",null,[l.createVNode(ou,{"model-value":t.hours,"onUpdate:modelValue":N[0]||(N[0]=R=>t.hours=+R),min:0,max:23,class:l.normalizeClass({"time-picker-input":!0,pressed:t.editingValue==="hour"}),"input-message":"","is-integer":"","zero-pad":"",onClick:N[1]||(N[1]=R=>t.editingValue="hour")},null,8,["model-value","class"]),N[5]||(N[5]=l.createElementVNode("span",null,"Часы",-1))]),N[7]||(N[7]=l.createElementVNode("span",{class:"time-picker-separator"},":",-1)),l.createElementVNode("div",null,[l.createVNode(ou,{"model-value":t.minutes,"onUpdate:modelValue":N[2]||(N[2]=R=>t.minutes=+R),min:0,max:59,class:l.normalizeClass({"time-picker-input":!0,pressed:t.editingValue==="minute"}),"input-message":"","is-integer":"","zero-pad":"",onClick:N[3]||(N[3]=R=>t.editingValue="minute")},null,8,["model-value","class"]),N[6]||(N[6]=l.createElementVNode("span",null,"Минуты",-1))])]),t.openClock?(l.openBlock(),l.createElementBlock("div",{key:0,class:"time-picker-clock",ref_key:"clockRef",ref:i,onMousedown:Z,onClick:m},[t.editingValue==="hour"?(l.openBlock(),l.createElementBlock("div",QTg,[l.createElementVNode("div",{class:"clock-hand",style:l.normalizeStyle(n.value)},null,4),(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(12,R=>l.createElementVNode("div",{key:"outer-"+R,class:l.normalizeClass({"clock-number":!0,active:R===Number(t.hours)}),style:l.normalizeStyle(o(R,100))},l.toDisplayString(R),7)),64)),(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(12,R=>l.createElementVNode("div",{key:"inner-"+R,class:l.normalizeClass({"clock-number":!0,active:R+12===(Number(t.hours)||24)}),style:l.normalizeStyle(o(R+12,70))},l.toDisplayString(R+12),7)),64))])):(l.openBlock(),l.createElementBlock("div",OTg,[l.createElementVNode("div",{class:"clock-hand",style:l.normalizeStyle(s.value)},null,4),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Array.from({length:60},(R,X)=>X),R=>(l.openBlock(),l.createElementBlock("div",{key:R,class:l.normalizeClass({"clock-number":!0,active:R===Number(t.minutes||0)}),style:l.normalizeStyle(o(R/5,100))},[R===Number(t.minutes)&&R%5?(l.openBlock(),l.createElementBlock("div",UTg)):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(R%5?"":R%60),1)],6))),128))])),N[8]||(N[8]=l.createElementVNode("div",{class:"clock-hand-center"},null,-1))],544)):l.createCommentVNode("",!0),l.createElementVNode("div",ETg,[l.createElementVNode("div",{class:"time-picker-actions__switch",onClick:N[4]||(N[4]=R=>t.openClock=!t.openClock)},[l.createVNode(Yg,{name:t.openClock?l.unref(rg).keyboard:l.unref(rg).time},null,8,["name"])]),l.createVNode(nI,{size:l.unref(yI).little,type:l.unref(II).ghost,onClick:G},{default:l.withCtx(()=>[...N[9]||(N[9]=[l.createTextVNode("Отменить ",-1)])]),_:1},8,["size","type"]),l.createVNode(nI,{size:l.unref(yI).little,type:l.unref(II).primary,onClick:B},{default:l.withCtx(()=>[...N[10]||(N[10]=[l.createTextVNode("Сохранить ",-1)])]),_:1},8,["size","type"])])])]),_:1},8,["open"])],2))}}),[["__scopeId","data-v-09319a61"]]),PTg=["data-testid"],_Tg=["data-testid"],qTg=["data-testid"],$Tg=Qg(l.defineComponent({__name:"DataPickerChoose",props:l.mergeModels({value:{},isActive:{type:Boolean},isTimeSelect:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePickerChoose"}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["clear","click","change"],["update:modelValue"]),setup(C,{emit:g}){const I=C,e=l.reactive({defaultValue:"-- -- ----",value:"",isActive:!1}),t=g,i=l.useModel(C,"modelValue");l.watchEffect(()=>e.isActive=I.isActive),l.watchEffect(()=>e.value=I.value);const A=a=>{t("change",a)},n=()=>{t("clear")},s=()=>{t("click")},o=a=>{if(!a)return null;const d=a.indexOf(" "),m=d===-1?3:Math.min(d,3);return`${a.charAt(0).toUpperCase()}${a.slice(1,m)}${a.slice(d)}`};return(a,d)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["data-picker-choose",{"data-picker-choose_time":I.isTimeSelect}])},[l.createElementVNode("button",{onClick:s,class:l.normalizeClass(["date-picker-yui-kit__header-btn",{"date-picker-yui-kit__header-btn_table-view":I.isSmall},{"date-picker-yui-kit__header-btn_range-view":I.isRange},{"date-disable-yui-kit":I.disabled},{"date-active-yui-kit":e.isActive}]),"data-testid":`${I.dataTestid}-HeaderBtn-Trigger`},[l.createVNode(Yg,{name:l.unref(rg).calendar,"data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"]),e.value?(l.openBlock(),l.createElementBlock("span",{key:0,"data-testid":`${I.dataTestid}-Value-Display`},l.toDisplayString(o(e.value)),9,_Tg)):(l.openBlock(),l.createElementBlock("span",{key:1,class:"date-picker-yui-kit__header-btn__dash","data-testid":`${I.dataTestid}-HeaderBtnDash-Placeholder`},l.toDisplayString(e.defaultValue),9,qTg)),e.value&&!I.isTimeSelect?(l.openBlock(),l.createBlock(nI,{key:2,size:l.unref(yI).small,type:l.unref(II).ghost,disabled:I.disabled,onClick:l.withModifiers(n,["stop"]),class:"date-picker-close-yui-kit","data-testid":`${I.dataTestid}-Button-Clear`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).crossSmall,"data-testid":`${I.dataTestid}-ButtonClose-Icon`},null,8,["name","data-testid"])]),_:1},8,["size","type","disabled","data-testid"])):l.createCommentVNode("",!0)],10,PTg),I.isTimeSelect?(l.openBlock(),l.createBlock(GW,{key:0,disabled:I.disabled,class:"data-picker-choose__time-picker",modelValue:i.value,"onUpdate:modelValue":[d[0]||(d[0]=m=>i.value=m),A]},null,8,["disabled","modelValue"])):l.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-1cd82f07"]]),FD=["top","right","bottom","left"],KD=["start","end"],zD=FD.reduce((C,g)=>C.concat(g,g+"-"+KD[0],g+"-"+KD[1]),[]),fn=Math.min,St=Math.max,wW=Math.round,WW=Math.floor,ul=C=>({x:C,y:C}),gLg={left:"right",right:"left",bottom:"top",top:"bottom"};function iV(C,g,I){return St(C,fn(g,I))}function Sn(C,g){return typeof C=="function"?C(g):C}function gA(C){return C.split("-")[0]}function Dn(C){return C.split("-")[1]}function AV(C){return C==="x"?"y":"x"}function nV(C){return C==="y"?"height":"width"}function kn(C){const g=C[0];return g==="t"||g==="b"?"y":"x"}function lV(C){return AV(kn(C))}function JD(C,g,I){I===void 0&&(I=!1);const e=Dn(C),t=lV(C),i=nV(t);let A=t==="x"?e===(I?"end":"start")?"right":"left":e==="start"?"bottom":"top";return g.reference[i]>g.floating[i]&&(A=pW(A)),[A,pW(A)]}function ILg(C){const g=pW(C);return[BW(C),g,BW(g)]}function BW(C){return C.includes("start")?C.replace("start","end"):C.replace("end","start")}const xD=["left","right"],TD=["right","left"],CLg=["top","bottom"],eLg=["bottom","top"];function tLg(C,g,I){switch(C){case"top":case"bottom":return I?g?TD:xD:g?xD:TD;case"left":case"right":return g?CLg:eLg;default:return[]}}function iLg(C,g,I,e){const t=Dn(C);let i=tLg(gA(C),I==="start",e);return t&&(i=i.map(A=>A+"-"+t),g&&(i=i.concat(i.map(BW)))),i}function pW(C){const g=gA(C);return gLg[g]+C.slice(g.length)}function ALg(C){return{top:0,right:0,bottom:0,left:0,...C}}function sV(C){return typeof C!="number"?ALg(C):{top:C,right:C,bottom:C,left:C}}function Tr(C){const{x:g,y:I,width:e,height:t}=C;return{width:e,height:t,top:I,left:g,right:g+e,bottom:I+t,x:g,y:I}}function LD(C,g,I){let{reference:e,floating:t}=C;const i=kn(g),A=lV(g),n=nV(A),s=gA(g),o=i==="y",a=e.x+e.width/2-t.width/2,d=e.y+e.height/2-t.height/2,m=e[n]/2-t[n]/2;let Z;switch(s){case"top":Z={x:a,y:e.y-t.height};break;case"bottom":Z={x:a,y:e.y+e.height};break;case"right":Z={x:e.x+e.width,y:d};break;case"left":Z={x:e.x-t.width,y:d};break;default:Z={x:e.x,y:e.y}}switch(Dn(g)){case"start":Z[A]-=m*(I&&o?-1:1);break;case"end":Z[A]+=m*(I&&o?-1:1);break}return Z}async function vD(C,g){var I;g===void 0&&(g={});const{x:e,y:t,platform:i,rects:A,elements:n,strategy:s}=C,{boundary:o="clippingAncestors",rootBoundary:a="viewport",elementContext:d="floating",altBoundary:m=!1,padding:Z=0}=Sn(g,C),u=sV(Z),G=n[m?d==="floating"?"reference":"floating":d],w=Tr(await i.getClippingRect({element:(I=await(i.isElement==null?void 0:i.isElement(G)))==null||I?G:G.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(n.floating)),boundary:o,rootBoundary:a,strategy:s})),B=d==="floating"?{x:e,y:t,width:A.floating.width,height:A.floating.height}:A.reference,p=await(i.getOffsetParent==null?void 0:i.getOffsetParent(n.floating)),Y=await(i.isElement==null?void 0:i.isElement(p))?await(i.getScale==null?void 0:i.getScale(p))||{x:1,y:1}:{x:1,y:1},N=Tr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:B,offsetParent:p,strategy:s}):B);return{top:(w.top-N.top+u.top)/Y.y,bottom:(N.bottom-w.bottom+u.bottom)/Y.y,left:(w.left-N.left+u.left)/Y.x,right:(N.right-w.right+u.right)/Y.x}}const nLg=50,lLg=async(C,g,I)=>{const{placement:e="bottom",strategy:t="absolute",middleware:i=[],platform:A}=I,n=A.detectOverflow?A:{...A,detectOverflow:vD},s=await(A.isRTL==null?void 0:A.isRTL(g));let o=await A.getElementRects({reference:C,floating:g,strategy:t}),{x:a,y:d}=LD(o,e,s),m=e,Z=0;const u={};for(let h=0;h<i.length;h++){const G=i[h];if(!G)continue;const{name:w,fn:B}=G,{x:p,y:Y,data:N,reset:R}=await B({x:a,y:d,initialPlacement:e,placement:m,strategy:t,middlewareData:u,rects:o,platform:n,elements:{reference:C,floating:g}});a=p??a,d=Y??d,u[w]={...u[w],...N},R&&Z<nLg&&(Z++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(o=R.rects===!0?await A.getElementRects({reference:C,floating:g,strategy:t}):R.rects),{x:a,y:d}=LD(o,m,s)),h=-1)}return{x:a,y:d,placement:m,strategy:t,middlewareData:u}},sLg=C=>({name:"arrow",options:C,async fn(g){const{x:I,y:e,placement:t,rects:i,platform:A,elements:n,middlewareData:s}=g,{element:o,padding:a=0}=Sn(C,g)||{};if(o==null)return{};const d=sV(a),m={x:I,y:e},Z=lV(t),u=nV(Z),h=await A.getDimensions(o),G=Z==="y",w=G?"top":"left",B=G?"bottom":"right",p=G?"clientHeight":"clientWidth",Y=i.reference[u]+i.reference[Z]-m[Z]-i.floating[u],N=m[Z]-i.reference[Z],R=await(A.getOffsetParent==null?void 0:A.getOffsetParent(o));let X=R?R[p]:0;(!X||!await(A.isElement==null?void 0:A.isElement(R)))&&(X=n.floating[p]||i.floating[u]);const K=Y/2-N/2,D=X/2-h[u]/2-1,k=fn(d[w],D),z=fn(d[B],D),v=k,O=X-h[u]-z,Cg=X/2-h[u]/2+K,U=iV(v,Cg,O),T=!s.arrow&&Dn(t)!=null&&Cg!==U&&i.reference[u]/2-(Cg<v?k:z)-h[u]/2<0,q=T?Cg<v?Cg-v:Cg-O:0;return{[Z]:m[Z]+q,data:{[Z]:U,centerOffset:Cg-U-q,...T&&{alignmentOffset:q}},reset:T}}});function oLg(C,g,I){return(C?[...I.filter(t=>Dn(t)===C),...I.filter(t=>Dn(t)!==C)]:I.filter(t=>gA(t)===t)).filter(t=>C?Dn(t)===C||(g?BW(t)!==t:!1):!0)}const aLg=function(C){return C===void 0&&(C={}),{name:"autoPlacement",options:C,async fn(g){var I,e,t;const{rects:i,middlewareData:A,placement:n,platform:s,elements:o}=g,{crossAxis:a=!1,alignment:d,allowedPlacements:m=zD,autoAlignment:Z=!0,...u}=Sn(C,g),h=d!==void 0||m===zD?oLg(d||null,Z,m):m,G=await s.detectOverflow(g,u),w=((I=A.autoPlacement)==null?void 0:I.index)||0,B=h[w];if(B==null)return{};const p=JD(B,i,await(s.isRTL==null?void 0:s.isRTL(o.floating)));if(n!==B)return{reset:{placement:h[0]}};const Y=[G[gA(B)],G[p[0]],G[p[1]]],N=[...((e=A.autoPlacement)==null?void 0:e.overflows)||[],{placement:B,overflows:Y}],R=h[w+1];if(R)return{data:{index:w+1,overflows:N},reset:{placement:R}};const X=N.map(k=>{const z=Dn(k.placement);return[k.placement,z&&a?k.overflows.slice(0,2).reduce((v,O)=>v+O,0):k.overflows[0],k.overflows]}).sort((k,z)=>k[1]-z[1]),D=((t=X.filter(k=>k[2].slice(0,Dn(k[0])?2:3).every(z=>z<=0))[0])==null?void 0:t[0])||X[0][0];return D!==n?{data:{index:w+1,overflows:N},reset:{placement:D}}:{}}}},dLg=function(C){return C===void 0&&(C={}),{name:"flip",options:C,async fn(g){var I,e;const{placement:t,middlewareData:i,rects:A,initialPlacement:n,platform:s,elements:o}=g,{mainAxis:a=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:h=!0,...G}=Sn(C,g);if((I=i.arrow)!=null&&I.alignmentOffset)return{};const w=gA(t),B=kn(n),p=gA(n)===n,Y=await(s.isRTL==null?void 0:s.isRTL(o.floating)),N=m||(p||!h?[pW(n)]:ILg(n)),R=u!=="none";!m&&R&&N.push(...iLg(n,h,u,Y));const X=[n,...N],K=await s.detectOverflow(g,G),D=[];let k=((e=i.flip)==null?void 0:e.overflows)||[];if(a&&D.push(K[w]),d){const Cg=JD(t,A,Y);D.push(K[Cg[0]],K[Cg[1]])}if(k=[...k,{placement:t,overflows:D}],!D.every(Cg=>Cg<=0)){var z,v;const Cg=(((z=i.flip)==null?void 0:z.index)||0)+1,U=X[Cg];if(U&&(!(d==="alignment"?B!==kn(U):!1)||k.every(cg=>kn(cg.placement)===B?cg.overflows[0]>0:!0)))return{data:{index:Cg,overflows:k},reset:{placement:U}};let T=(v=k.filter(q=>q.overflows[0]<=0).sort((q,cg)=>q.overflows[1]-cg.overflows[1])[0])==null?void 0:v.placement;if(!T)switch(Z){case"bestFit":{var O;const q=(O=k.filter(cg=>{if(R){const og=kn(cg.placement);return og===B||og==="y"}return!0}).map(cg=>[cg.placement,cg.overflows.filter(og=>og>0).reduce((og,Wg)=>og+Wg,0)]).sort((cg,og)=>cg[1]-og[1])[0])==null?void 0:O[0];q&&(T=q);break}case"initialPlacement":T=n;break}if(t!==T)return{reset:{placement:T}}}return{}}}};function jD(C,g){return{top:C.top-g.height,right:C.right-g.width,bottom:C.bottom-g.height,left:C.left-g.width}}function QD(C){return FD.some(g=>C[g]>=0)}const cLg=function(C){return C===void 0&&(C={}),{name:"hide",options:C,async fn(g){const{rects:I,platform:e}=g,{strategy:t="referenceHidden",...i}=Sn(C,g);switch(t){case"referenceHidden":{const A=await e.detectOverflow(g,{...i,elementContext:"reference"}),n=jD(A,I.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:QD(n)}}}case"escaped":{const A=await e.detectOverflow(g,{...i,altBoundary:!0}),n=jD(A,I.floating);return{data:{escapedOffsets:n,escaped:QD(n)}}}default:return{}}}}};function OD(C){const g=fn(...C.map(i=>i.left)),I=fn(...C.map(i=>i.top)),e=St(...C.map(i=>i.right)),t=St(...C.map(i=>i.bottom));return{x:g,y:I,width:e-g,height:t-I}}function mLg(C){const g=C.slice().sort((t,i)=>t.y-i.y),I=[];let e=null;for(let t=0;t<g.length;t++){const i=g[t];!e||i.y-e.y>e.height/2?I.push([i]):I[I.length-1].push(i),e=i}return I.map(t=>Tr(OD(t)))}const rLg=function(C){return C===void 0&&(C={}),{name:"inline",options:C,async fn(g){const{placement:I,elements:e,rects:t,platform:i,strategy:A}=g,{padding:n=2,x:s,y:o}=Sn(C,g),a=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(e.reference))||[]),d=mLg(a),m=Tr(OD(a)),Z=sV(n);function u(){if(d.length===2&&d[0].left>d[1].right&&s!=null&&o!=null)return d.find(G=>s>G.left-Z.left&&s<G.right+Z.right&&o>G.top-Z.top&&o<G.bottom+Z.bottom)||m;if(d.length>=2){if(kn(I)==="y"){const k=d[0],z=d[d.length-1],v=gA(I)==="top",O=k.top,Cg=z.bottom,U=v?k.left:z.left,T=v?k.right:z.right,q=T-U,cg=Cg-O;return{top:O,bottom:Cg,left:U,right:T,width:q,height:cg,x:U,y:O}}const G=gA(I)==="left",w=St(...d.map(k=>k.right)),B=fn(...d.map(k=>k.left)),p=d.filter(k=>G?k.left===B:k.right===w),Y=p[0].top,N=p[p.length-1].bottom,R=B,X=w,K=X-R,D=N-Y;return{top:Y,bottom:N,left:R,right:X,width:K,height:D,x:R,y:Y}}return m}const h=await i.getElementRects({reference:{getBoundingClientRect:u},floating:e.floating,strategy:A});return t.reference.x!==h.reference.x||t.reference.y!==h.reference.y||t.reference.width!==h.reference.width||t.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},UD=new Set(["left","top"]);async function ZLg(C,g){const{placement:I,platform:e,elements:t}=C,i=await(e.isRTL==null?void 0:e.isRTL(t.floating)),A=gA(I),n=Dn(I),s=kn(I)==="y",o=UD.has(A)?-1:1,a=i&&s?-1:1,d=Sn(g,C);let{mainAxis:m,crossAxis:Z,alignmentAxis:u}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return n&&typeof u=="number"&&(Z=n==="end"?u*-1:u),s?{x:Z*a,y:m*o}:{x:m*o,y:Z*a}}const bLg=function(C){return C===void 0&&(C=0),{name:"offset",options:C,async fn(g){var I,e;const{x:t,y:i,placement:A,middlewareData:n}=g,s=await ZLg(g,C);return A===((I=n.offset)==null?void 0:I.placement)&&(e=n.arrow)!=null&&e.alignmentOffset?{}:{x:t+s.x,y:i+s.y,data:{...s,placement:A}}}}},uLg=function(C){return C===void 0&&(C={}),{name:"shift",options:C,async fn(g){const{x:I,y:e,placement:t,platform:i}=g,{mainAxis:A=!0,crossAxis:n=!1,limiter:s={fn:w=>{let{x:B,y:p}=w;return{x:B,y:p}}},...o}=Sn(C,g),a={x:I,y:e},d=await i.detectOverflow(g,o),m=kn(gA(t)),Z=AV(m);let u=a[Z],h=a[m];if(A){const w=Z==="y"?"top":"left",B=Z==="y"?"bottom":"right",p=u+d[w],Y=u-d[B];u=iV(p,u,Y)}if(n){const w=m==="y"?"top":"left",B=m==="y"?"bottom":"right",p=h+d[w],Y=h-d[B];h=iV(p,h,Y)}const G=s.fn({...g,[Z]:u,[m]:h});return{...G,data:{x:G.x-I,y:G.y-e,enabled:{[Z]:A,[m]:n}}}}}},hLg=function(C){return C===void 0&&(C={}),{options:C,fn(g){const{x:I,y:e,placement:t,rects:i,middlewareData:A}=g,{offset:n=0,mainAxis:s=!0,crossAxis:o=!0}=Sn(C,g),a={x:I,y:e},d=kn(t),m=AV(d);let Z=a[m],u=a[d];const h=Sn(n,g),G=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const p=m==="y"?"height":"width",Y=i.reference[m]-i.floating[p]+G.mainAxis,N=i.reference[m]+i.reference[p]-G.mainAxis;Z<Y?Z=Y:Z>N&&(Z=N)}if(o){var w,B;const p=m==="y"?"width":"height",Y=UD.has(gA(t)),N=i.reference[d]-i.floating[p]+(Y&&((w=A.offset)==null?void 0:w[d])||0)+(Y?0:G.crossAxis),R=i.reference[d]+i.reference[p]+(Y?0:((B=A.offset)==null?void 0:B[d])||0)-(Y?G.crossAxis:0);u<N?u=N:u>R&&(u=R)}return{[m]:Z,[d]:u}}}},GLg=function(C){return C===void 0&&(C={}),{name:"size",options:C,async fn(g){var I,e;const{placement:t,rects:i,platform:A,elements:n}=g,{apply:s=()=>{},...o}=Sn(C,g),a=await A.detectOverflow(g,o),d=gA(t),m=Dn(t),Z=kn(t)==="y",{width:u,height:h}=i.floating;let G,w;d==="top"||d==="bottom"?(G=d,w=m===(await(A.isRTL==null?void 0:A.isRTL(n.floating))?"start":"end")?"left":"right"):(w=d,G=m==="end"?"top":"bottom");const B=h-a.top-a.bottom,p=u-a.left-a.right,Y=fn(h-a[G],B),N=fn(u-a[w],p),R=!g.middlewareData.shift;let X=Y,K=N;if((I=g.middlewareData.shift)!=null&&I.enabled.x&&(K=p),(e=g.middlewareData.shift)!=null&&e.enabled.y&&(X=B),R&&!m){const k=St(a.left,0),z=St(a.right,0),v=St(a.top,0),O=St(a.bottom,0);Z?K=u-2*(k!==0||z!==0?k+z:St(a.left,a.right)):X=h-2*(v!==0||O!==0?v+O:St(a.top,a.bottom))}await s({...g,availableWidth:K,availableHeight:X});const D=await A.getDimensions(n.floating);return u!==D.width||h!==D.height?{reset:{rects:!0}}:{}}}};function YW(){return typeof window<"u"}function tc(C){return oV(C)?(C.nodeName||"").toLowerCase():"#document"}function IA(C){var g;return(C==null||(g=C.ownerDocument)==null?void 0:g.defaultView)||window}function hl(C){var g;return(g=(oV(C)?C.ownerDocument:C.document)||window.document)==null?void 0:g.documentElement}function oV(C){return YW()?C instanceof Node||C instanceof IA(C).Node:!1}function Fn(C){return YW()?C instanceof Element||C instanceof IA(C).Element:!1}function ms(C){return YW()?C instanceof HTMLElement||C instanceof IA(C).HTMLElement:!1}function ED(C){return!YW()||typeof ShadowRoot>"u"?!1:C instanceof ShadowRoot||C instanceof IA(C).ShadowRoot}function au(C){const{overflow:g,overflowX:I,overflowY:e,display:t}=Kn(C);return/auto|scroll|overlay|hidden|clip/.test(g+e+I)&&t!=="inline"&&t!=="contents"}function wLg(C){return/^(table|td|th)$/.test(tc(C))}function yW(C){try{if(C.matches(":popover-open"))return!0}catch{}try{return C.matches(":modal")}catch{return!1}}const WLg=/transform|translate|scale|rotate|perspective|filter/,BLg=/paint|layout|strict|content/,ic=C=>!!C&&C!=="none";let aV;function dV(C){const g=Fn(C)?Kn(C):C;return ic(g.transform)||ic(g.translate)||ic(g.scale)||ic(g.rotate)||ic(g.perspective)||!cV()&&(ic(g.backdropFilter)||ic(g.filter))||WLg.test(g.willChange||"")||BLg.test(g.contain||"")}function pLg(C){let g=Ca(C);for(;ms(g)&&!Lr(g);){if(dV(g))return g;if(yW(g))return null;g=Ca(g)}return null}function cV(){return aV==null&&(aV=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),aV}function Lr(C){return/^(html|body|#document)$/.test(tc(C))}function Kn(C){return IA(C).getComputedStyle(C)}function NW(C){return Fn(C)?{scrollLeft:C.scrollLeft,scrollTop:C.scrollTop}:{scrollLeft:C.scrollX,scrollTop:C.scrollY}}function Ca(C){if(tc(C)==="html")return C;const g=C.assignedSlot||C.parentNode||ED(C)&&C.host||hl(C);return ED(g)?g.host:g}function PD(C){const g=Ca(C);return Lr(g)?C.ownerDocument?C.ownerDocument.body:C.body:ms(g)&&au(g)?g:PD(g)}function vr(C,g,I){var e;g===void 0&&(g=[]),I===void 0&&(I=!0);const t=PD(C),i=t===((e=C.ownerDocument)==null?void 0:e.body),A=IA(t);if(i){const n=mV(A);return g.concat(A,A.visualViewport||[],au(t)?t:[],n&&I?vr(n):[])}else return g.concat(t,vr(t,[],I))}function mV(C){return C.parent&&Object.getPrototypeOf(C.parent)?C.frameElement:null}function _D(C){const g=Kn(C);let I=parseFloat(g.width)||0,e=parseFloat(g.height)||0;const t=ms(C),i=t?C.offsetWidth:I,A=t?C.offsetHeight:e,n=wW(I)!==i||wW(e)!==A;return n&&(I=i,e=A),{width:I,height:e,$:n}}function rV(C){return Fn(C)?C:C.contextElement}function jr(C){const g=rV(C);if(!ms(g))return ul(1);const I=g.getBoundingClientRect(),{width:e,height:t,$:i}=_D(g);let A=(i?wW(I.width):I.width)/e,n=(i?wW(I.height):I.height)/t;return(!A||!Number.isFinite(A))&&(A=1),(!n||!Number.isFinite(n))&&(n=1),{x:A,y:n}}const YLg=ul(0);function qD(C){const g=IA(C);return!cV()||!g.visualViewport?YLg:{x:g.visualViewport.offsetLeft,y:g.visualViewport.offsetTop}}function yLg(C,g,I){return g===void 0&&(g=!1),!I||g&&I!==IA(C)?!1:g}function Ac(C,g,I,e){g===void 0&&(g=!1),I===void 0&&(I=!1);const t=C.getBoundingClientRect(),i=rV(C);let A=ul(1);g&&(e?Fn(e)&&(A=jr(e)):A=jr(C));const n=yLg(i,I,e)?qD(i):ul(0);let s=(t.left+n.x)/A.x,o=(t.top+n.y)/A.y,a=t.width/A.x,d=t.height/A.y;if(i){const m=IA(i),Z=e&&Fn(e)?IA(e):e;let u=m,h=mV(u);for(;h&&e&&Z!==u;){const G=jr(h),w=h.getBoundingClientRect(),B=Kn(h),p=w.left+(h.clientLeft+parseFloat(B.paddingLeft))*G.x,Y=w.top+(h.clientTop+parseFloat(B.paddingTop))*G.y;s*=G.x,o*=G.y,a*=G.x,d*=G.y,s+=p,o+=Y,u=IA(h),h=mV(u)}}return Tr({width:a,height:d,x:s,y:o})}function VW(C,g){const I=NW(C).scrollLeft;return g?g.left+I:Ac(hl(C)).left+I}function $D(C,g){const I=C.getBoundingClientRect(),e=I.left+g.scrollLeft-VW(C,I),t=I.top+g.scrollTop;return{x:e,y:t}}function NLg(C){let{elements:g,rect:I,offsetParent:e,strategy:t}=C;const i=t==="fixed",A=hl(e),n=g?yW(g.floating):!1;if(e===A||n&&i)return I;let s={scrollLeft:0,scrollTop:0},o=ul(1);const a=ul(0),d=ms(e);if((d||!d&&!i)&&((tc(e)!=="body"||au(A))&&(s=NW(e)),d)){const Z=Ac(e);o=jr(e),a.x=Z.x+e.clientLeft,a.y=Z.y+e.clientTop}const m=A&&!d&&!i?$D(A,s):ul(0);return{width:I.width*o.x,height:I.height*o.y,x:I.x*o.x-s.scrollLeft*o.x+a.x+m.x,y:I.y*o.y-s.scrollTop*o.y+a.y+m.y}}function VLg(C){return Array.from(C.getClientRects())}function XLg(C){const g=hl(C),I=NW(C),e=C.ownerDocument.body,t=St(g.scrollWidth,g.clientWidth,e.scrollWidth,e.clientWidth),i=St(g.scrollHeight,g.clientHeight,e.scrollHeight,e.clientHeight);let A=-I.scrollLeft+VW(C);const n=-I.scrollTop;return Kn(e).direction==="rtl"&&(A+=St(g.clientWidth,e.clientWidth)-t),{width:t,height:i,x:A,y:n}}const gk=25;function RLg(C,g){const I=IA(C),e=hl(C),t=I.visualViewport;let i=e.clientWidth,A=e.clientHeight,n=0,s=0;if(t){i=t.width,A=t.height;const a=cV();(!a||a&&g==="fixed")&&(n=t.offsetLeft,s=t.offsetTop)}const o=VW(e);if(o<=0){const a=e.ownerDocument,d=a.body,m=getComputedStyle(d),Z=a.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,u=Math.abs(e.clientWidth-d.clientWidth-Z);u<=gk&&(i-=u)}else o<=gk&&(i+=o);return{width:i,height:A,x:n,y:s}}function MLg(C,g){const I=Ac(C,!0,g==="fixed"),e=I.top+C.clientTop,t=I.left+C.clientLeft,i=ms(C)?jr(C):ul(1),A=C.clientWidth*i.x,n=C.clientHeight*i.y,s=t*i.x,o=e*i.y;return{width:A,height:n,x:s,y:o}}function Ik(C,g,I){let e;if(g==="viewport")e=RLg(C,I);else if(g==="document")e=XLg(hl(C));else if(Fn(g))e=MLg(g,I);else{const t=qD(C);e={x:g.x-t.x,y:g.y-t.y,width:g.width,height:g.height}}return Tr(e)}function Ck(C,g){const I=Ca(C);return I===g||!Fn(I)||Lr(I)?!1:Kn(I).position==="fixed"||Ck(I,g)}function HLg(C,g){const I=g.get(C);if(I)return I;let e=vr(C,[],!1).filter(n=>Fn(n)&&tc(n)!=="body"),t=null;const i=Kn(C).position==="fixed";let A=i?Ca(C):C;for(;Fn(A)&&!Lr(A);){const n=Kn(A),s=dV(A);!s&&n.position==="fixed"&&(t=null),(i?!s&&!t:!s&&n.position==="static"&&!!t&&(t.position==="absolute"||t.position==="fixed")||au(A)&&!s&&Ck(C,A))?e=e.filter(a=>a!==A):t=n,A=Ca(A)}return g.set(C,e),e}function fLg(C){let{element:g,boundary:I,rootBoundary:e,strategy:t}=C;const A=[...I==="clippingAncestors"?yW(g)?[]:HLg(g,this._c):[].concat(I),e],n=Ik(g,A[0],t);let s=n.top,o=n.right,a=n.bottom,d=n.left;for(let m=1;m<A.length;m++){const Z=Ik(g,A[m],t);s=St(Z.top,s),o=fn(Z.right,o),a=fn(Z.bottom,a),d=St(Z.left,d)}return{width:o-d,height:a-s,x:d,y:s}}function SLg(C){const{width:g,height:I}=_D(C);return{width:g,height:I}}function DLg(C,g,I){const e=ms(g),t=hl(g),i=I==="fixed",A=Ac(C,!0,i,g);let n={scrollLeft:0,scrollTop:0};const s=ul(0);function o(){s.x=VW(t)}if(e||!e&&!i)if((tc(g)!=="body"||au(t))&&(n=NW(g)),e){const Z=Ac(g,!0,i,g);s.x=Z.x+g.clientLeft,s.y=Z.y+g.clientTop}else t&&o();i&&!e&&t&&o();const a=t&&!e&&!i?$D(t,n):ul(0),d=A.left+n.scrollLeft-s.x-a.x,m=A.top+n.scrollTop-s.y-a.y;return{x:d,y:m,width:A.width,height:A.height}}function ZV(C){return Kn(C).position==="static"}function ek(C,g){if(!ms(C)||Kn(C).position==="fixed")return null;if(g)return g(C);let I=C.offsetParent;return hl(C)===I&&(I=I.ownerDocument.body),I}function tk(C,g){const I=IA(C);if(yW(C))return I;if(!ms(C)){let t=Ca(C);for(;t&&!Lr(t);){if(Fn(t)&&!ZV(t))return t;t=Ca(t)}return I}let e=ek(C,g);for(;e&&wLg(e)&&ZV(e);)e=ek(e,g);return e&&Lr(e)&&ZV(e)&&!dV(e)?I:e||pLg(C)||I}const kLg=async function(C){const g=this.getOffsetParent||tk,I=this.getDimensions,e=await I(C.floating);return{reference:DLg(C.reference,await g(C.floating),C.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function FLg(C){return Kn(C).direction==="rtl"}const ik={convertOffsetParentRelativeRectToViewportRelativeRect:NLg,getDocumentElement:hl,getClippingRect:fLg,getOffsetParent:tk,getElementRects:kLg,getClientRects:VLg,getDimensions:SLg,getScale:jr,isElement:Fn,isRTL:FLg};function Ak(C,g){return C.x===g.x&&C.y===g.y&&C.width===g.width&&C.height===g.height}function KLg(C,g){let I=null,e;const t=hl(C);function i(){var n;clearTimeout(e),(n=I)==null||n.disconnect(),I=null}function A(n,s){n===void 0&&(n=!1),s===void 0&&(s=1),i();const o=C.getBoundingClientRect(),{left:a,top:d,width:m,height:Z}=o;if(n||g(),!m||!Z)return;const u=WW(d),h=WW(t.clientWidth-(a+m)),G=WW(t.clientHeight-(d+Z)),w=WW(a),p={rootMargin:-u+"px "+-h+"px "+-G+"px "+-w+"px",threshold:St(0,fn(1,s))||1};let Y=!0;function N(R){const X=R[0].intersectionRatio;if(X!==s){if(!Y)return A();X?A(!1,X):e=setTimeout(()=>{A(!1,1e-7)},1e3)}X===1&&!Ak(o,C.getBoundingClientRect())&&A(),Y=!1}try{I=new IntersectionObserver(N,{...p,root:t.ownerDocument})}catch{I=new IntersectionObserver(N,p)}I.observe(C)}return A(!0),i}function nk(C,g,I,e){e===void 0&&(e={});const{ancestorScroll:t=!0,ancestorResize:i=!0,elementResize:A=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:s=!1}=e,o=rV(C),a=t||i?[...o?vr(o):[],...g?vr(g):[]]:[];a.forEach(w=>{t&&w.addEventListener("scroll",I,{passive:!0}),i&&w.addEventListener("resize",I)});const d=o&&n?KLg(o,I):null;let m=-1,Z=null;A&&(Z=new ResizeObserver(w=>{let[B]=w;B&&B.target===o&&Z&&g&&(Z.unobserve(g),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var p;(p=Z)==null||p.observe(g)})),I()}),o&&!s&&Z.observe(o),g&&Z.observe(g));let u,h=s?Ac(C):null;s&&G();function G(){const w=Ac(C);h&&!Ak(h,w)&&I(),h=w,u=requestAnimationFrame(G)}return I(),()=>{var w;a.forEach(B=>{t&&B.removeEventListener("scroll",I),i&&B.removeEventListener("resize",I)}),d==null||d(),(w=Z)==null||w.disconnect(),Z=null,s&&cancelAnimationFrame(u)}}const zLg=vD,lk=bLg,sk=aLg,JLg=uLg,xLg=dLg,TLg=GLg,LLg=cLg,vLg=sLg,jLg=rLg,QLg=hLg,ok=(C,g,I)=>{const e=new Map,t={platform:ik,...I},i={...t.platform,_c:e};return lLg(C,g,{...t,platform:i})};function OLg(C){return C!=null&&typeof C=="object"&&"$el"in C}function bV(C){if(OLg(C)){const g=C.$el;return oV(g)&&tc(g)==="#comment"?null:g}return C}function Qr(C){return typeof C=="function"?C():l.unref(C)}function ULg(C){return{name:"arrow",options:C,fn(g){const I=bV(Qr(C.element));return I==null?{}:vLg({element:I,padding:C.padding}).fn(g)}}}function ak(C){return typeof window>"u"?1:(C.ownerDocument.defaultView||window).devicePixelRatio||1}function dk(C,g){const I=ak(C);return Math.round(g*I)/I}function ck(C,g,I){I===void 0&&(I={});const e=I.whileElementsMounted,t=l.computed(()=>{var X;return(X=Qr(I.open))!=null?X:!0}),i=l.computed(()=>Qr(I.middleware)),A=l.computed(()=>{var X;return(X=Qr(I.placement))!=null?X:"bottom"}),n=l.computed(()=>{var X;return(X=Qr(I.strategy))!=null?X:"absolute"}),s=l.computed(()=>{var X;return(X=Qr(I.transform))!=null?X:!0}),o=l.computed(()=>bV(C.value)),a=l.computed(()=>bV(g.value)),d=l.ref(0),m=l.ref(0),Z=l.ref(n.value),u=l.ref(A.value),h=l.shallowRef({}),G=l.ref(!1),w=l.computed(()=>{const X={position:Z.value,left:"0",top:"0"};if(!a.value)return X;const K=dk(a.value,d.value),D=dk(a.value,m.value);return s.value?{...X,transform:"translate("+K+"px, "+D+"px)",...ak(a.value)>=1.5&&{willChange:"transform"}}:{position:Z.value,left:K+"px",top:D+"px"}});let B;function p(){if(o.value==null||a.value==null)return;const X=t.value;ok(o.value,a.value,{middleware:i.value,placement:A.value,strategy:n.value}).then(K=>{d.value=K.x,m.value=K.y,Z.value=K.strategy,u.value=K.placement,h.value=K.middlewareData,G.value=X!==!1})}function Y(){typeof B=="function"&&(B(),B=void 0)}function N(){if(Y(),e===void 0){p();return}if(o.value!=null&&a.value!=null){B=e(o.value,a.value,p);return}}function R(){t.value||(G.value=!1)}return l.watch([i,A,n,t],p,{flush:"sync"}),l.watch([o,a],N,{flush:"sync"}),l.watch(t,R,{flush:"sync"}),l.getCurrentScope()&&l.onScopeDispose(Y),{x:l.shallowReadonly(d),y:l.shallowReadonly(m),strategy:l.shallowReadonly(Z),placement:l.shallowReadonly(u),middlewareData:l.shallowReadonly(h),isPositioned:l.shallowReadonly(G),floatingStyles:w,update:p}}const ELg=Qg(l.defineComponent({__name:"PopoverWrapper",props:{placement:{default:"bottom-start"},open:{type:Boolean,default:!1}},emits:["unmount-close"],setup(C,{emit:g}){const I=C,e=g,t=l.ref(null),i=l.ref(null),A=l.ref(null),n=l.ref(null),{floatingStyles:s}=ck(i,A,{middleware:[lk(10),sk({crossAxis:!0,allowedPlacements:["top-start","bottom-start"]})],strategy:n.value?"fixed":"absolute",placement:I.placement,whileElementsMounted:nk}),o=()=>{e("unmount-close")},a=d=>{t.value&&!t.value.contains(d.target)&&A.value&&!A.value.contains(d.target)&&o()};return l.onBeforeUnmount(()=>{document.removeEventListener("click",a)}),l.onMounted(()=>{if(document.addEventListener("click",a),t.value){const d=t.value.closest("dialog");d?n.value=d:n.value=document.body}}),(d,m)=>(l.openBlock(),l.createElementBlock("div",{class:"popover-wrapper",ref_key:"popoverWrapper",ref:t},[l.createElementVNode("div",{class:"popover-trigger",ref_key:"popoverTrigger",ref:i},[l.renderSlot(d.$slots,"trigger",{},void 0,!0)],512),(l.openBlock(),l.createBlock(l.Teleport,{to:n.value,disabled:!n.value},[I.open?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"popoverContent",ref:A,class:l.normalizeClass(["popover-content",[`popover-${C.placement}`,{"popover-show":I.open}]]),style:l.normalizeStyle(l.unref(s))},[l.renderSlot(d.$slots,"default",{},void 0,!0)],6)):l.createCommentVNode("",!0)],8,["to","disabled"]))],512))}}),[["__scopeId","data-v-50c6e512"]]),mk=C=>C instanceof Date&&!isNaN(C.getTime()),XW=C=>{const g=mk(C)&&C!==null?C:new Date;return new Date(Date.UTC(g.getFullYear(),g.getMonth(),g.getDate(),23,59,59,999))},rk=C=>{const g=mk(C)&&C!==null?C:new Date,I={year:g.getFullYear(),month:g.getMonth(),day:g.getDate()};return new Date(Date.UTC(I.year,I.month,I.day))},PLg=(C,g)=>{if(!C)return"";g!=="ru-RU"&&(g="en-US");const I=new Date(C),e=rW(g),t=I.getDate().toString().padStart(2,"0"),i=I.getFullYear().toString();return`${e[I.getMonth()]} ${t}, ${i}`},_Lg=["data-testid"],qLg=[".date",".minDate",".maxDate","locale","data-testid"],uV=l.defineComponent({__name:"DatePicker",props:l.mergeModels({range:{},locale:{default:"ru-RU"},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isSelectTime:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePicker"}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["clear","change"],["update:modelValue"]),setup(C,{expose:g,emit:I}){const e=C,t=l.reactive({isActive:!1,isOpen:{months:!1,years:!1},isNotClear:!0,startDate:null,endDate:null}),i=I,A=l.useModel(C,"modelValue"),n=l.computed(()=>{if(!A.value)return null;const k=new Date(A.value);return isNaN(k.getTime())?null:k}),s=()=>{t.isNotClear=!1,A.value=null,i("clear"),setTimeout(()=>t.isNotClear=!0,1),a({detail:{date:null}})},o=k=>{i("change",k?new Date(k):null)},a=({detail:k})=>{if(!k)return;let z=k.date;n.value&&z&&(z=new Date(z.getFullYear(),z.getMonth(),z.getDate(),n.value.getHours(),n.value.getMinutes())),A.value=z,t.isActive=!1,i("change",z)},d=()=>{t.isOpen.months=!0,t.isOpen.years=!1},m=()=>{t.isOpen.years=!0,t.isOpen.months=!1},Z=()=>{t.isOpen.months=!1},u=()=>{t.isOpen.years=!1},h=()=>{t.isActive=!1,Z(),u()};l.watchEffect(()=>t.startDate=e.startDate??null),l.watchEffect(()=>t.endDate=e.endDate??null);const G=k=>new Date(k.getFullYear(),k.getMonth(),1),w=k=>new Date(k.getFullYear(),k.getMonth()+1,0,23,59,59,999),B=k=>new Date(k.getFullYear(),0,1),p=k=>new Date(k.getFullYear(),11,31,23,59,59,999),Y=()=>t.isOpen.months&&!t.isOpen.years?"months":t.isOpen.years&&!t.isOpen.months?"years":null,N=k=>{switch(Y()){case"months":return G(k);case"years":return B(k);default:return k}},R=k=>{switch(Y()){case"months":return w(k);case"years":return p(k);default:return k}},X=()=>{const k=t.startDate??new Date;if(e.startDate){const z=n.value??new Date;if(k.valueOf()<=z.valueOf())return N(k);if(k!=null)return N(k)}return null},K=()=>{const k=t.endDate??new Date;if(e.endDate){const z=n.value??new Date;if(k.valueOf()>=z.valueOf())return R(k);if(k!=null)return R(k)}return null},D=()=>{t.isActive=!0};return l.watch(()=>A.value,()=>{A.value||(t.isNotClear=!1,A.value=null,setTimeout(()=>t.isNotClear=!0,1))}),g({clearChoose:s}),(k,z)=>(l.openBlock(),l.createElementBlock("div",{class:"date-picker-yui-kit__wrapper","data-testid":`${e.dataTestid}-Wrapper`},[l.createVNode(ELg,{open:!e.disabled&&t.isActive,onUnmountClose:h},{trigger:l.withCtx(()=>[l.createVNode($Tg,{onClick:D,onClear:s,modelValue:A.value,"onUpdate:modelValue":z[0]||(z[0]=v=>A.value=v),"is-time-select":e.isSelectTime,"is-active":t.isActive,"is-small":e.isSmall,"is-range":e.isRange,disabled:e.disabled,"data-testid":`${e.dataTestid}-Choose`,value:l.unref(PLg)(A.value||null,e.locale),onChange:o},null,8,["modelValue","is-time-select","is-active","is-small","is-range","disabled","data-testid","value"])]),default:l.withCtx(()=>[l.createElementVNode("col-cal",{".date":n.value,".minDate":X(),".maxDate":K(),locale:e.locale??"ru-RU","data-testid":`${e.dataTestid}-Component`,onShowMonths:d,onShowYears:m,onHideMonths:Z,onHideYears:u,onChangeDate:a,class:"date-picker-yui-kit",onClick:z[1]||(z[1]=l.withModifiers(()=>{},["stop"]))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Object.keys(t.isOpen),v=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:v},[t.isOpen[v]?(l.openBlock(),l.createBlock(Yg,{key:0,class:"open-popup",name:l.unref(rg).chevronUp,width:16,height:16,slot:`${v}-popup-icon`},null,8,["name","slot"])):(l.openBlock(),l.createBlock(Yg,{key:1,class:"date-picker__icon date-picker__icon_area",name:l.unref(rg).chevronDown,width:16,height:16,slot:`${v}-popup-icon`},null,8,["name","slot"]))],64))),128)),l.createVNode(Yg,{class:"date-picker__icon",slot:"icon-left-button",name:l.unref(rg).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"icon-right-button",name:l.unref(rg).chevronRight,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"years-icon-left",name:l.unref(rg).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"years-icon-right",name:l.unref(rg).chevronRight,width:16,height:16},null,8,["name"])],40,qLg)]),_:1},8,["open"])],8,_Lg))}});var nc=(C=>(C.start="start",C.end="end",C))(nc||{});const $Lg=["data-testid"],gvg=["data-testid"],Ivg=Qg(l.defineComponent({__name:"DatePickerRange",props:l.mergeModels({range:{},locale:{default:"ru-RU"},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isSelectTime:{type:Boolean},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(C,{expose:g,emit:I}){const e=C,t=I,i=l.reactive({date:{start:null,end:null},isActive:!1}),A=l.useModel(C,"startDate"),n=l.useModel(C,"endDate"),s=(m,Z)=>{Z===nc.start&&(i.date[Z]=m),Z===nc.end&&(i.date[Z]=e.toLastTime&&m!==null?XW(m):m),t("change",i.date)},o=m=>{i.date[m]=null},a=()=>{Object.keys(i.date).forEach(m=>{i.date[m]=null})},d=()=>{(A.value||n.value)&&(i.date={start:A.value,end:e.toLastTime?XW(n.value):n.value})};return l.watch([()=>A.value,()=>n.value],()=>{d()}),l.onMounted(()=>{d()}),g({clear:a}),(m,Z)=>{var u,h;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["date-picker-yui-kit__header",{"date-disable-yui-kit":e.disabled},{"date-active-yui-kit":i.isActive}]),"data-testid":`${e.dataTestid}-Header`},[l.createVNode(uV,{modelValue:i.date.start,"onUpdate:modelValue":Z[0]||(Z[0]=G=>i.date.start=G),locale:e.locale,"is-range":"",disabled:e.disabled,"end-date":(u=i.date)==null?void 0:u.end,onChange:Z[1]||(Z[1]=G=>s(G,l.unref(nc).start)),onClear:Z[2]||(Z[2]=G=>o(l.unref(nc).start)),"data-testid":`${e.dataTestid}-Component-Start`},null,8,["modelValue","locale","disabled","end-date","data-testid"]),l.createElementVNode("div",{class:"date-picker-yui-kit__header__dash","data-testid":`${e.dataTestid}-Header-Dash`},null,8,gvg),l.createVNode(uV,{modelValue:i.date.end,"onUpdate:modelValue":Z[3]||(Z[3]=G=>i.date.end=G),locale:e.locale,"is-range":"",disabled:e.disabled,"start-date":(h=i.date)==null?void 0:h.start,onChange:Z[4]||(Z[4]=G=>s(G,l.unref(nc).end)),onClear:Z[5]||(Z[5]=G=>o(l.unref(nc).end)),"data-testid":`${e.dataTestid}-Component-End`},null,8,["modelValue","locale","disabled","start-date","data-testid"])],10,$Lg)}}}),[["__scopeId","data-v-0d725894"]]),hV=l.defineComponent({__name:"Calendar",props:{range:{},locale:{},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isSelectTime:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"Calendar"}},emits:["change","click"],setup(C,{emit:g}){const I=C,e=l.reactive({date:null,dateObject:{start:null,end:null}}),t=g,i=l.ref(),A=s=>{t("change",s)};l.watchEffect(()=>e.date=I.setDate||null);const n=()=>{var s,o;return{start:I.fromTodayTime?new Date(Date.now()):((s=I.range)==null?void 0:s.start)??null,end:((o=I.range)==null?void 0:o.end)??null}};return l.watch([()=>{var s;return(s=I.range)==null?void 0:s.start},()=>{var s;return(s=I.range)==null?void 0:s.end}],()=>{var s,o,a;e.dateObject=n(),((s=I.range)==null?void 0:s.start)===null&&((o=I.range)==null?void 0:o.end)===null&&((a=i.value)==null||a.clear())}),l.onMounted(()=>{if(I.isRange){e.dateObject=n();return}I.setDate&&(e.date=I.setDate??null)}),(s,o)=>I.isRange?(l.openBlock(),l.createBlock(Ivg,{key:0,ref_key:"datePickerRangeRef",ref:i,"to-last-time":I.toLastTime,"start-date":e.dateObject.start,"onUpdate:startDate":o[0]||(o[0]=a=>e.dateObject.start=a),"end-date":e.dateObject.end,"onUpdate:endDate":o[1]||(o[1]=a=>e.dateObject.end=a),disabled:I.disabled,locale:I.locale,onClick:o[2]||(o[2]=a=>t("click")),onChange:A,"data-testid":`${I.dataTestid}-DataPickerRange`},null,8,["to-last-time","start-date","end-date","disabled","locale","data-testid"])):(l.openBlock(),l.createBlock(uV,{key:1,modelValue:e.date,"onUpdate:modelValue":o[3]||(o[3]=a=>e.date=a),disabled:I.disabled,locale:I.locale,"is-small":I.isSmall,"is-select-time":I.isSelectTime,"data-testid":`${I.dataTestid}-DataPicker`,onClick:o[4]||(o[4]=a=>t("click")),onChange:A},null,8,["modelValue","disabled","locale","is-small","is-select-time","data-testid"]))}}),Cvg=["data-testid"],evg=["data-testid"],GV=Qg(l.defineComponent({__name:"Accordion",props:{dataTestid:{default:"Accordion"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("details",{class:"accordion-yui-kit","data-testid":g.dataTestid},[l.createElementVNode("summary",{class:"accordion-yui-kit__summary","data-testid":`${g.dataTestid}-Summary`},[l.renderSlot(I.$slots,"summary",{},void 0,!0),l.createVNode(Yg,{name:l.unref(rg).chevronUp,class:"chevron-up","stroke-width":"2","data-testid":`${g.dataTestid}-ChevronUp`},null,8,["name","data-testid"]),l.createVNode(Yg,{name:l.unref(rg).chevronDown,class:"chevron-down","stroke-width":"2","data-testid":`${g.dataTestid}-ChevronDown`},null,8,["name","data-testid"])],8,evg),l.renderSlot(I.$slots,"default",{},void 0,!0)],8,Cvg))}}),[["__scopeId","data-v-54d2ddb3"]]),tvg=["data-testid"],ivg=["data-testid"],Avg=["data-testid"],nvg=["data-testid","multiple"],wV=Qg(l.defineComponent({__name:"DragAndDrop",props:{singleFileMode:{type:Boolean,default:!1},title:{default:"Кликните или перенесите файлы"},dataTestid:{default:"DragAndDrop"}},emits:["fileDropped"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isPressed:!1}),i=l.ref(null),A=Z=>{const u=Z.target;m(u.files)},n=()=>{i.value&&(i.value.value="")},s=Z=>{var h;Z.preventDefault();const u=(h=Z.currentTarget)==null?void 0:h.children[0];u.classList.contains("active")||u.classList.add("active")},o=Z=>{Z.currentTarget.children[0].classList.remove("active")},a=Z=>{var h;Z.preventDefault(),m(((h=Z.dataTransfer)==null?void 0:h.files)||null),Z.currentTarget.children[0].classList.remove("active")},d=()=>{t.isPressed=!t.isPressed},m=Z=>{t.isPressed=!1,e("fileDropped",Z)};return l.onMounted(()=>{var Z;(Z=i.value)==null||Z.addEventListener("cancel",()=>{t.isPressed=!1})}),(Z,u)=>(l.openBlock(),l.createElementBlock("div",{onDragover:s,onDragleave:o,onDrop:a,class:"dnd-yui-kit","data-testid":I.dataTestid},[l.createElementVNode("label",{for:"docsFileSelected",class:l.normalizeClass(["dnd-yui-kit__label",{"is-pressed":t.isPressed}]),onClick:d,"data-testid":`${I.dataTestid}-Label`},[l.createVNode(Yg,{name:l.unref(rg).paperClip,"stroke-width":"2","data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"]),l.createElementVNode("span",{class:"dnd-yui-kit__span","data-testid":`${I.dataTestid}-Title`},l.toDisplayString(I.title),9,Avg)],10,ivg),l.createElementVNode("input",{id:"docsFileSelected",onChange:A,onClick:n,type:"file",style:{display:"none"},"data-testid":`${I.dataTestid}-Input`,required:"",multiple:!I.singleFileMode,ref_key:"fileInputRef",ref:i},null,40,nvg)],40,tvg))}}),[["__scopeId","data-v-fc7d2a54"]]),lvg=["data-testid"],svg=["data-testid"],WV=Qg(l.defineComponent({__name:"Card",props:{dataTestid:{default:"Card"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("div",{class:"card-yui-kit","data-testid":g.dataTestid},[I.$slots.left?(l.openBlock(),l.createElementBlock("div",{key:0,class:"card-yui-kit__left","data-testid":`${g.dataTestid}-Left`},[l.renderSlot(I.$slots,"left",{},void 0,!0)],8,svg)):l.createCommentVNode("",!0),l.renderSlot(I.$slots,"default",{},void 0,!0)],8,lvg))}}),[["__scopeId","data-v-7ffd26ce"]]),ovg=["data-testid"],avg=["data-testid"],dvg=["data-testid"],cvg=["data-testid"],mvg=["onClick","data-testid"],rvg=["data-testid"],Zvg=Qg(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(C,{emit:g}){const I=C,e=l.reactive({isShowList:I.isShowList,isShowButtonHistory:I.isShowButtonHistory}),t=g,i=l.computed(()=>({"history-yui-kit__list":!0,"history-yui-kit__list--opened":e.isShowList,"history-yui-kit__list--scroll":I.modelValue&&I.modelValue.length>=5&&e.isShowList})),A=()=>{e.isShowList=!0,e.isShowButtonHistory=!1},n=o=>{t("unmount-remove",o)},s=o=>{t("choosePost",o)};return(o,a)=>{var d;return I.showHistory?(l.openBlock(),l.createElementBlock("div",{key:0,class:"search-yui-kit__history history-yui-kit","data-testid":I.dataTestid},[e.isShowButtonHistory?(l.openBlock(),l.createBlock(nI,{key:0,type:l.unref(II).outline,onClick:A,class:l.normalizeClass("history-yui-kit__button-text show-result"),"data-testid":`${I.dataTestid}-ShowResult`},{default:l.withCtx(()=>[l.createElementVNode("span",{class:"search-yui-kit__button-label","data-testid":`${I.dataTestid}-ShowResult-Title`}," Просмотреть историю запросов ",8,avg)]),_:1},8,["type","data-testid"])):l.createCommentVNode("",!0),(d=I.modelValue)!=null&&d.length?(l.openBlock(),l.createElementBlock("ul",{key:1,class:l.normalizeClass(i.value),"data-testid":`${I.dataTestid}-ShowResult-List`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.modelValue,(m,Z)=>(l.openBlock(),l.createElementBlock("li",{class:"history-yui-kit__item",key:m,"data-testid":`${I.dataTestid}-ShowResult-Title${Z}`},[l.createElementVNode("span",{onClick:u=>s(m),class:"history-yui-kit__hint","data-testid":`${I.dataTestid}-HandleChoosePost-Title${Z}`},l.toDisplayString(m),9,mvg),l.createVNode(nI,{type:l.unref(II).ghost,onClick:u=>n(m),"data-testid":`${I.dataTestid}-ButtonItem-Remove${Z}`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).exitSmall,width:16,"data-testid":`${I.dataTestid}-ButtonItem-RemoveIcon${Z}`},null,8,["name","data-testid"])]),_:2},1032,["type","onClick","data-testid"])],8,cvg))),128))],10,dvg)):e.isShowButtonHistory?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(nI,{key:2,type:l.unref(II).outline,class:l.normalizeClass("history-yui-kit__button-text"),"data-testid":`${I.dataTestid}-ButtonTypeEnum-RemoveButton`},{default:l.withCtx(()=>[l.createElementVNode("span",{"data-testid":`${I.dataTestid}-ButtonTypeEnum-EmptyContent`,class:"empty-content"},"По вашему запросу ничего не найдено",8,rvg)]),_:1},8,["type","data-testid"]))],8,ovg)):l.createCommentVNode("",!0)}}}),[["__scopeId","data-v-f687dbf4"]]),bvg=["data-testid"],uvg=["data-testid"],hvg=["data-testid","onClick"],Gvg=["data-testid"],wvg=["data-testid"],Wvg=["data-testid"],Bvg=["data-testid"],pvg=["data-testid"],Yvg=["data-testid"],yvg=Qg(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(C,{emit:g}){const I=C,e=g,t=l.ref(null),i=n=>{e("choose-result",n)},A=n=>{const s=n.target,{scrollTop:o,scrollHeight:a,clientHeight:d}=s;a-o-d<5&&e("scroll-paginate")};return l.watch(()=>I.searchValue,()=>{t.value&&(t.value.scrollTop=0)}),(n,s)=>(l.openBlock(),l.createElementBlock("div",{class:"search-yui-kit__result result-yui-kit","data-testid":I.dataTestid},[I.globalResultsFunction.length>0?(l.openBlock(),l.createElementBlock("ul",{key:0,class:"result-yui-kit__list","data-testid":`${I.dataTestid}-List`,onScroll:A,ref_key:"resultContentRef",ref:t},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.globalResultsFunction,(o,a)=>(l.openBlock(),l.createElementBlock("li",{class:"result-yui-kit__list__item",key:a,"data-testid":`${I.dataTestid}-List-Items${a}`,onClick:d=>i(o)},[l.createVNode(Yg,{name:o.icon||l.unref(rg).document,"data-testid":`${I.dataTestid}-Items-Icon${a}`,width:16,height:16,class:"result-yui-kit__list__item__icon"},null,8,["name","data-testid"]),l.createElementVNode("span",{"data-testid":`${I.dataTestid}-Result-NameArea${a}`},l.toDisplayString(o.nameArea),9,Gvg),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${I.dataTestid}-Result-Slash${a}`},"/",8,wvg),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${I.dataTestid}-Result-SearchResult${a}`},l.toDisplayString(o.searchResult),9,Wvg)],8,hvg))),128))],40,uvg)):I.searchValue?(l.openBlock(),l.createElementBlock("ul",{key:1,class:"result-yui-kit__list result-yui-kit__empty","data-testid":`${I.dataTestid}-Nothing-List`},[l.createElementVNode("li",{class:"result-yui-kit__empty__item","data-testid":`${I.dataTestid}-Nothing-Items`},[l.createElementVNode("p",{"data-testid":`${I.dataTestid}-Nothing-Text`}," По вашему запросу ничего не найдено ",8,Yvg)],8,pvg)],8,Bvg)):l.createCommentVNode("",!0)],8,bvg))}}),[["__scopeId","data-v-2eb7100d"]]),Zk=()=>{const C=l.ref(localStorage.getItem("historySearch")?JSON.parse(localStorage.getItem("historySearch")):[]);return{getHistorySearch:C,addHistorySearch:e=>{e&&(C.value=C.value.filter(t=>t!==e),C.value.unshift(e),C.value.length>10&&C.value.pop(),localStorage.setItem("historySearch",JSON.stringify(C.value)))},removeHistorySearch:e=>{C.value=C.value.filter(t=>t!==e),localStorage.setItem("historySearch",JSON.stringify(C.value))}}},Nvg=["data-testid"],Vvg=["data-testid"],Xvg=["data-testid"],Rvg=["placeholder","data-testid"],du=Qg(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(C,{emit:g}){const I=C,e=g,{getHistorySearch:t,removeHistorySearch:i,addHistorySearch:A}=Zk(),n=l.reactive({isShowList:!1,isShowButtonHistory:I.showHistory??!1,searchValue:I.modelValue,placeholder:I.placeholder??"",focused:!1}),s={position:"relative",width:"100%",height:I.height},o=Y=>{n.searchValue=Y.trim(),n.isShowList=!1,e("input",Y),e("update:modelValue",n.searchValue),e("choosed",n.searchValue),e("enter",n.searchValue)},a=Y=>{n.isShowList=!1,e("choose-result",Y)},d=()=>{e("scroll-paginate")},m=l.computed(()=>({"search-yui-kit__icon-wrapper":!0})),Z=()=>{n.focused=!0},u=()=>{setTimeout(()=>{n.focused=!1},500)},h=()=>{n.isShowList=!1,n.isShowButtonHistory=!1},G=()=>{n.isShowButtonHistory=!0,n.isShowButtonHistory||(n.isShowList=!0)},w=()=>{e("enter",n.searchValue.trim()),I.showHistory&&n.searchValue&&A(n.searchValue.trim())},B=()=>{const Y=n.searchValue.trim();e("input",Y),e("update:modelValue",Y)},p=()=>{n.searchValue&&(n.searchValue="",B(),w())};return l.onMounted(()=>{I.defaultValue&&(n.searchValue=I.defaultValue)}),l.watch(()=>I.modelValue,Y=>{n.searchValue=Y}),(Y,N)=>(l.openBlock(),l.createElementBlock("div",{class:"search-yui-kit",style:s,onMousemove:G,onMouseleave:h,"data-testid":I.dataTestid},[l.createElementVNode("div",{class:l.normalizeClass(m.value),"data-testid":`${I.dataTestid}-Dropdown-Wrapper`},[l.createElementVNode("div",{class:"search-yui-kit__dropdown","data-testid":`${I.dataTestid}-Dropdown`},[l.withDirectives(l.createElementVNode("input",{type:"text",class:"search-yui-kit__input","onUpdate:modelValue":N[0]||(N[0]=R=>n.searchValue=R),placeholder:I.placeholder,onKeydown:l.withKeys(w,["enter"]),onInput:B,onFocus:Z,onBlur:u,"data-testid":`${I.dataTestid}-Dropdown-Input`},null,40,Rvg),[[l.vModelText,n.searchValue]]),l.createVNode(Yg,{class:"search-icon",name:l.unref(rg).searchNormal},null,8,["name"]),n.searchValue?(l.openBlock(),l.createBlock(nI,{key:0,class:"clear-button",type:l.unref(II).ghost,onClick:p,"data-testid":`${I.dataTestid}-Clear-Button`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).exitSmall,color:"var(--text-light-color)","data-testid":`${I.dataTestid}-Clear-Button-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","data-testid"])):l.createCommentVNode("",!0)],8,Xvg)],10,Vvg),!I.global&&I.showHistory?(l.openBlock(),l.createBlock(Zvg,{key:0,"show-history":I.showHistory,"is-show-button-history":n.isShowButtonHistory,"is-show-list":n.isShowList,"model-value":l.unref(t),onUnmountRemove:l.unref(i),onChoosePost:o,"data-testid":`${I.dataTestid}-Dropdown-History`},null,8,["show-history","is-show-button-history","is-show-list","model-value","onUnmountRemove","data-testid"])):l.createCommentVNode("",!0),I.global&&n.focused?(l.openBlock(),l.createBlock(yvg,{key:1,"global-results-function":I.globalResultsFunction,"search-value":n.searchValue,"data-testid":`${I.dataTestid}-Dropdown-SearchResult`,onChooseResult:a,onScrollPaginate:d},null,8,["global-results-function","search-value","data-testid"])):l.createCommentVNode("",!0)],40,Nvg))}}),[["__scopeId","data-v-17fe3aad"]]);var cu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mvg(C){return C&&C.__esModule&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C}var RW={exports:{}};/**
1526
+ `}};bl([Lg({type:Object})],Hn.prototype,"date",2),bl([Lg({type:Object})],Hn.prototype,"minDate",2),bl([Lg({type:Object})],Hn.prototype,"maxDate",2),bl([Lg({type:String})],Hn.prototype,"locale",2),bl([Lg({type:String})],Hn.prototype,"dataTestid",2),bl([Lg({type:Number})],Hn.prototype,"firstDayOfWeek",2),bl([Lg({type:Array})],Hn.prototype,"disabledDates",2),bl([Lg({type:Array})],Hn.prototype,"events",2),bl([gW()],Hn.prototype,"_date",2),Hn=bl([Ed("col-cal")],Hn);const STg=["data-testid"],DTg=["data-testid"],kTg=["data-testid"],FTg=["required","data-testid"],KTg=["data-testid"],zTg=["data-testid","disabled"],JTg=["data-testid","disabled"],xTg=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:yI.medium},zeroPad:{type:Boolean,default:!1},modelModifiers:{default:()=>({})},dataTestid:{default:"InputNumber"}},emits:["update:modelValue","focused"],setup(C,{emit:g}){const I=g,e=C,t=l.reactive({isPressed:!1,inputElement:e.modelValue||(e.min>0?e.min:0),prevValue:""}),i=/^-?\d{0,10}(\.\d{0,7})?$/,A=l.ref(null);function n(B,p=2){return e.zeroPad&&!isNaN(+B)?String(B).padStart(p,"0"):String(B)}l.watch(()=>e.isInteger,()=>{e.isInteger&&(t.inputElement=o(t.inputElement.toString()),a(t.inputElement))}),l.watch([()=>e.min,()=>e.max],()=>{m(),d()}),l.watch(()=>e.modelValue,(B,p)=>{t.inputElement=e.zeroPad&&(!t.isPressed||Number(p)===0)?n(B):B});const s=B=>{let p=B.target.value;e.zeroPad&&p==="00"||(p=o(p)),a(p),!isNaN(+t.inputElement)&&Number(t.inputElement)<=e.max&&Number(t.inputElement)>=e.min&&I("update:modelValue",t.inputElement)},o=B=>{let p=B.replace(",",".");return e.isInteger&&p.includes(".")&&(p=p.replace(".","")),p==="."?p="0"+p:p==="-."&&(p="-0."+p.slice(2)),/[^\d.]/.test(p)&&(p=p.replace(e.min>=0?/[^0-9.]/g:/[^0-9.-]/g,"")),p.includes("-")&&(p=(p.startsWith("-")?"-":"")+p.replace(/-/g,"")),p.startsWith("0")&&p.length>1&&!p.startsWith("0.")&&(p=p.replace(/^0+/,"")),p.startsWith("-0")&&p.length>2&&!p.startsWith("-0.")&&(p="-"+p.slice(2).replace(/^0+/,"")),(p.match(/\./g)||[]).length>1&&(p=p.slice(0,p.lastIndexOf("."))+p.slice(p.lastIndexOf(".")+1)),p},a=B=>{Number(B)>e.max?t.inputElement=e.max:t.inputElement=B,t.inputElement!==""&&!i.test(`${t.inputElement}`)&&(t.inputElement=t.prevValue)},d=()=>{Number(t.inputElement)<e.min&&(t.inputElement=e.min,I("update:modelValue",+t.inputElement))},m=()=>{Number(t.inputElement)>e.max&&(t.inputElement=e.max,I("update:modelValue",+t.inputElement))},Z=B=>{t.prevValue=t.inputElement,B.key==="ArrowUp"&&G(),B.key==="ArrowDown"&&w()},u=B=>{t.isPressed=!0,I("focused",B)},h=()=>{(t.inputElement===""||t.inputElement===null||isNaN(+t.inputElement))&&(t.inputElement=e.min>0?e.min:0),isNaN(+t.inputElement)&&(t.inputElement=Math.max(e.min,0)),Number(t.inputElement)>e.max?t.inputElement=e.max:Number(t.inputElement)<e.min&&(t.inputElement=e.min),t.inputElement=`${t.inputElement}`.replace(/(\.\d*?[1-9])0+$/,"$1").replace(/\.0+$/,""),t.inputElement=n(t.inputElement),I("update:modelValue",t.inputElement),t.isPressed=!1},G=()=>{var B;+t.inputElement+1<e.max?t.inputElement=+t.inputElement+1:e.max!==1/0?t.inputElement=e.max:t.inputElement=0,i.test(`${t.inputElement}`)?(t.inputElement=n(t.inputElement),I("update:modelValue",t.inputElement)):t.inputElement=t.prevValue,(B=A.value)==null||B.focus()},w=()=>{var B;+t.inputElement-1>e.min?t.inputElement=+t.inputElement-1:e.min!==-1/0?t.inputElement=e.min:t.inputElement=0,t.inputElement=n(t.inputElement),I("update:modelValue",+t.inputElement),(B=A.value)==null||B.focus()};return l.onMounted(()=>{m(),d()}),(B,p)=>(l.openBlock(),l.createElementBlock("fieldset",{class:l.normalizeClass(["input-yui-kit input-yui-kit_number initial",{pressed:t.isPressed,[e.size]:!0}]),"data-testid":e.dataTestid,onFocusout:h},[e.inputMessage?(l.openBlock(),l.createElementBlock("legend",{key:0,class:"input-yui-kit__legend","data-testid":`${e.dataTestid}-Legend`},[l.createTextVNode(l.toDisplayString(e.inputMessage),1),e.required?(l.openBlock(),l.createElementBlock("sup",{key:0,class:"input-yui-kit__star","data-testid":`${e.dataTestid}-Star`},"*",8,kTg)):l.createCommentVNode("",!0)],8,DTg)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("input",{ref_key:"inputNumberRef",ref:A,"onUpdate:modelValue":p[0]||(p[0]=Y=>t.inputElement=Y),onFocus:u,onInput:s,onKeydown:Z,class:"input-yui-kit__input",required:e.required,"data-testid":`${e.dataTestid}-Input`,type:"text"},null,40,FTg),[[l.vModelText,t.inputElement]]),l.createElementVNode("div",{class:"input-yui-kit__buttons","data-testid":`${e.dataTestid}-Buttons`},[l.createElementVNode("button",{class:"input-yui-kit__button-up","data-testid":`${e.dataTestid}-UpButton`,onMousedown:l.withModifiers(G,["prevent"]),disabled:+t.inputElement>=e.max},[l.createVNode(Yg,{name:l.unref(rg).chevronUp,"data-testid":`${e.dataTestid}-Icon`},null,8,["name","data-testid"])],40,zTg),l.createElementVNode("button",{class:"input-yui-kit__button-down","data-testid":`${e.dataTestid}-DownButton`,onMousedown:l.withModifiers(w,["prevent"]),disabled:+t.inputElement<=e.min},[l.createVNode(Yg,{name:l.unref(rg).chevronDown,"data-testid":`${e.dataTestid}-Icon`},null,8,["name","data-testid"])],40,JTg)],8,KTg)],42,STg))}}),ou=Qg(xTg,[["__scopeId","data-v-0bb60f16"]]),TTg=["data-testid"],LTg=["data-testid"],hW=Qg(l.defineComponent({__name:"Dialog",props:{open:{type:Boolean},width:{},height:{},noClose:{type:Boolean},dataTestid:{default:"Dialog"}},emits:["close"],setup(C,{emit:g}){const I=C,e=l.ref(null),t=l.useAttrs(),i=l.ref(!1),A=l.computed(()=>({width:I.width,height:I.height})),n=g,s=()=>{var a;(a=e.value)==null||a.close(),n("close")},o=()=>{var a;return I.open?(a=e.value)==null?void 0:a.showModal():s()};return hg(e,"mousedown",a=>{!I.noClose&&a.target===e.value&&s()}),hg(e,"keydown",a=>{(a.key==="Escape"||a.key==="Esc")&&(I.noClose||s())}),l.onMounted(()=>{l.watchEffect(()=>{I.open!==i.value&&(o(),i.value=I.open)})}),(a,d)=>(l.openBlock(),l.createElementBlock("dialog",l.mergeProps({ref_key:"dialog",ref:e},l.unref(t),{class:"dialog-yui-kit","data-testid":I.dataTestid}),[l.createElementVNode("div",{"data-testid":`${I.dataTestid}-Content`,class:"dialog-yui-kit__dialog-content",style:l.normalizeStyle(A.value)},[l.renderSlot(a.$slots,"default",{},void 0,!0)],12,LTg)],16,TTg))}}),[["__scopeId","data-v-cb730474"]]),vTg={class:"time-picker-dialog-content"},jTg={class:"time-picker-header"},QTg={key:0,class:"clock-face"},OTg={key:1,class:"clock-face"},UTg={key:0,class:"clock-number__dot"},ETg={class:"time-picker-actions"},GW=Qg(l.defineComponent({__name:"TimePicker",props:{modelValue:{},disabled:{type:Boolean},hideClearButton:{type:Boolean}},emits:["update:modelValue"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({openModal:!1,hours:void 0,minutes:void 0,editingValue:"hour",openClock:!1,localHours:void 0,localMinutes:void 0}),i=l.ref(null);l.watch(()=>I.modelValue,Y=>{if(Y){const N=new Date(Y);t.localHours=N.getHours(),t.localMinutes=N.getMinutes()}else t.localHours=void 0,t.localMinutes=void 0},{immediate:!0}),l.watch(()=>t.openModal,Y=>{Y&&(t.hours=Number(t.localHours)||0,t.minutes=Number(t.localMinutes)||0)});const A=l.computed(()=>t.localHours!==void 0&&t.localMinutes!==void 0?`${String(t.localHours).padStart(2,"0")}:${String(t.localMinutes).padStart(2,"0")}`:"-- --"),n=l.computed(()=>({transform:`rotate(${(t.hours??0)%12*30}deg)`})),s=l.computed(()=>({transform:`rotate(${(t.minutes??0)*6}deg)`}));function o(Y,N=100){const R=Y%12/12*360,X=N*Math.sin(R*Math.PI/180),K=-N*Math.cos(R*Math.PI/180);return{left:`calc(50% + ${X}px - 24.5px)`,top:`calc(50% + ${K}px - 23.5px)`}}function a(Y){var D;const N=(D=i.value)==null?void 0:D.getBoundingClientRect();if(!N)return 0;const R=Y.clientX-(N.left+N.width/2),X=Y.clientY-(N.top+N.height/2);return(Math.atan2(X,R)*(180/Math.PI)+90+360)%360}function d(Y){const N=a(Y);if(t.editingValue==="hour"){const X=Math.hypot(Y.clientX-(i.value.getBoundingClientRect().left+128),Y.clientY-(i.value.getBoundingClientRect().top+128))<90,K=Math.round(N/30)%12||12;t.hours=(X?K+12:K)%24}else t.minutes=Math.round(N/6)%60}function m(Y){d(Y)}function Z(Y){d(Y),document.addEventListener("mousemove",u),document.addEventListener("mouseup",h)}function u(Y){d(Y)}function h(){document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",h)}l.onBeforeUnmount(()=>h());function G(){t.openModal=!1}function w(){t.editingValue="hour",t.openModal=!0}function B(){if(t.hours===void 0||t.minutes===void 0)return;const Y=I.modelValue?new Date(I.modelValue):new Date,N=new Date(Y.getFullYear(),Y.getMonth(),Y.getDate(),+t.hours,+t.minutes,0,0),R=new Date(N.getTime()).toISOString();e("update:modelValue",R),t.localHours=t.hours,t.localMinutes=t.minutes,G()}function p(){t.hours=void 0,t.minutes=void 0,t.localHours=void 0,t.localMinutes=void 0,e("update:modelValue",null)}return(Y,N)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass({"time-picker-select":!0,disabled:I.disabled})},[l.createElementVNode("div",{class:"time-picker-select-content",onClick:w},[l.createVNode(Yg,{name:l.unref(rg).time},null,8,["name"]),l.createElementVNode("span",null,l.toDisplayString(A.value),1),!I.hideClearButton&&(t.localHours!==void 0||t.localMinutes!==void 0)?(l.openBlock(),l.createElementBlock("div",{key:0,class:"time-picker-select-clear",onClick:l.withModifiers(p,["stop"])},[l.createVNode(Yg,{name:l.unref(rg).closeTag,width:16,height:16},null,8,["name"])])):l.createCommentVNode("",!0)]),l.createVNode(hW,{open:t.openModal,onClose:G,class:"time-picker-dialog",width:"328px"},{default:l.withCtx(()=>[l.createElementVNode("div",vTg,[N[11]||(N[11]=l.createElementVNode("h3",null,"Установка времени",-1)),l.createElementVNode("div",jTg,[l.createElementVNode("div",null,[l.createVNode(ou,{"model-value":t.hours,"onUpdate:modelValue":N[0]||(N[0]=R=>t.hours=+R),min:0,max:23,class:l.normalizeClass(["time-picker__input_hour",{"time-picker-input":!0,pressed:t.editingValue==="hour"}]),"input-message":"","is-integer":"","zero-pad":"",onClick:N[1]||(N[1]=R=>t.editingValue="hour")},null,8,["model-value","class"]),N[5]||(N[5]=l.createElementVNode("span",null,"Часы",-1))]),N[7]||(N[7]=l.createElementVNode("span",{class:"time-picker-separator"},":",-1)),l.createElementVNode("div",null,[l.createVNode(ou,{"model-value":t.minutes,"onUpdate:modelValue":N[2]||(N[2]=R=>t.minutes=+R),min:0,max:59,class:l.normalizeClass(["time-picker__input_minute",{"time-picker-input":!0,pressed:t.editingValue==="minute"}]),"input-message":"","is-integer":"","zero-pad":"",onClick:N[3]||(N[3]=R=>t.editingValue="minute")},null,8,["model-value","class"]),N[6]||(N[6]=l.createElementVNode("span",null,"Минуты",-1))])]),t.openClock?(l.openBlock(),l.createElementBlock("div",{key:0,class:"time-picker-clock",ref_key:"clockRef",ref:i,onMousedown:Z,onClick:m},[t.editingValue==="hour"?(l.openBlock(),l.createElementBlock("div",QTg,[l.createElementVNode("div",{class:"clock-hand",style:l.normalizeStyle(n.value)},null,4),(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(12,R=>l.createElementVNode("div",{key:"outer-"+R,class:l.normalizeClass({"clock-number":!0,active:R===Number(t.hours)}),style:l.normalizeStyle(o(R,100))},l.toDisplayString(R),7)),64)),(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(12,R=>l.createElementVNode("div",{key:"inner-"+R,class:l.normalizeClass({"clock-number":!0,active:R+12===(Number(t.hours)||24)}),style:l.normalizeStyle(o(R+12,70))},l.toDisplayString(R+12),7)),64))])):(l.openBlock(),l.createElementBlock("div",OTg,[l.createElementVNode("div",{class:"clock-hand",style:l.normalizeStyle(s.value)},null,4),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Array.from({length:60},(R,X)=>X),R=>(l.openBlock(),l.createElementBlock("div",{key:R,class:l.normalizeClass({"clock-number":!0,active:R===Number(t.minutes||0)}),style:l.normalizeStyle(o(R/5,100))},[R===Number(t.minutes)&&R%5?(l.openBlock(),l.createElementBlock("div",UTg)):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(R%5?"":R%60),1)],6))),128))])),N[8]||(N[8]=l.createElementVNode("div",{class:"clock-hand-center"},null,-1))],544)):l.createCommentVNode("",!0),l.createElementVNode("div",ETg,[l.createElementVNode("div",{class:"time-picker-actions__switch",onClick:N[4]||(N[4]=R=>t.openClock=!t.openClock)},[l.createVNode(Yg,{name:t.openClock?l.unref(rg).keyboard:l.unref(rg).time},null,8,["name"])]),l.createVNode(nI,{size:l.unref(yI).little,type:l.unref(II).ghost,onClick:G},{default:l.withCtx(()=>[...N[9]||(N[9]=[l.createTextVNode("Отменить ",-1)])]),_:1},8,["size","type"]),l.createVNode(nI,{size:l.unref(yI).little,type:l.unref(II).primary,onClick:B},{default:l.withCtx(()=>[...N[10]||(N[10]=[l.createTextVNode("Сохранить ",-1)])]),_:1},8,["size","type"])])])]),_:1},8,["open"])],2))}}),[["__scopeId","data-v-2e041227"]]),PTg=["data-testid"],_Tg=["data-testid"],qTg=["data-testid"],$Tg=Qg(l.defineComponent({__name:"DataPickerChoose",props:l.mergeModels({value:{},isActive:{type:Boolean},isTimeSelect:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePickerChoose"}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["clear","click","change"],["update:modelValue"]),setup(C,{emit:g}){const I=C,e=l.reactive({defaultValue:"-- -- ----",value:"",isActive:!1}),t=g,i=l.useModel(C,"modelValue");l.watchEffect(()=>e.isActive=I.isActive),l.watchEffect(()=>e.value=I.value);const A=a=>{t("change",a)},n=()=>{t("clear")},s=()=>{t("click")},o=a=>{if(!a)return null;const d=a.indexOf(" "),m=d===-1?3:Math.min(d,3);return`${a.charAt(0).toUpperCase()}${a.slice(1,m)}${a.slice(d)}`};return(a,d)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["data-picker-choose",{"data-picker-choose_time":I.isTimeSelect}])},[l.createElementVNode("button",{onClick:s,class:l.normalizeClass(["date-picker-yui-kit__header-btn",{"date-picker-yui-kit__header-btn_table-view":I.isSmall},{"date-picker-yui-kit__header-btn_range-view":I.isRange},{"date-disable-yui-kit":I.disabled},{"date-active-yui-kit":e.isActive}]),"data-testid":`${I.dataTestid}-HeaderBtn-Trigger`},[l.createVNode(Yg,{name:l.unref(rg).calendar,"data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"]),e.value?(l.openBlock(),l.createElementBlock("span",{key:0,"data-testid":`${I.dataTestid}-Value-Display`},l.toDisplayString(o(e.value)),9,_Tg)):(l.openBlock(),l.createElementBlock("span",{key:1,class:"date-picker-yui-kit__header-btn__dash","data-testid":`${I.dataTestid}-HeaderBtnDash-Placeholder`},l.toDisplayString(e.defaultValue),9,qTg)),e.value&&!I.isTimeSelect?(l.openBlock(),l.createBlock(nI,{key:2,size:l.unref(yI).small,type:l.unref(II).ghost,disabled:I.disabled,onClick:l.withModifiers(n,["stop"]),class:"date-picker-close-yui-kit","data-testid":`${I.dataTestid}-Button-Clear`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).crossSmall,"data-testid":`${I.dataTestid}-ButtonClose-Icon`},null,8,["name","data-testid"])]),_:1},8,["size","type","disabled","data-testid"])):l.createCommentVNode("",!0)],10,PTg),I.isTimeSelect?(l.openBlock(),l.createBlock(GW,{key:0,disabled:I.disabled,class:"data-picker-choose__time-picker",modelValue:i.value,"onUpdate:modelValue":[d[0]||(d[0]=m=>i.value=m),A]},null,8,["disabled","modelValue"])):l.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-30d9b7b0"]]),FD=["top","right","bottom","left"],KD=["start","end"],zD=FD.reduce((C,g)=>C.concat(g,g+"-"+KD[0],g+"-"+KD[1]),[]),fn=Math.min,St=Math.max,wW=Math.round,WW=Math.floor,ul=C=>({x:C,y:C}),gLg={left:"right",right:"left",bottom:"top",top:"bottom"};function iV(C,g,I){return St(C,fn(g,I))}function Sn(C,g){return typeof C=="function"?C(g):C}function gA(C){return C.split("-")[0]}function Dn(C){return C.split("-")[1]}function AV(C){return C==="x"?"y":"x"}function nV(C){return C==="y"?"height":"width"}function kn(C){const g=C[0];return g==="t"||g==="b"?"y":"x"}function lV(C){return AV(kn(C))}function JD(C,g,I){I===void 0&&(I=!1);const e=Dn(C),t=lV(C),i=nV(t);let A=t==="x"?e===(I?"end":"start")?"right":"left":e==="start"?"bottom":"top";return g.reference[i]>g.floating[i]&&(A=pW(A)),[A,pW(A)]}function ILg(C){const g=pW(C);return[BW(C),g,BW(g)]}function BW(C){return C.includes("start")?C.replace("start","end"):C.replace("end","start")}const xD=["left","right"],TD=["right","left"],CLg=["top","bottom"],eLg=["bottom","top"];function tLg(C,g,I){switch(C){case"top":case"bottom":return I?g?TD:xD:g?xD:TD;case"left":case"right":return g?CLg:eLg;default:return[]}}function iLg(C,g,I,e){const t=Dn(C);let i=tLg(gA(C),I==="start",e);return t&&(i=i.map(A=>A+"-"+t),g&&(i=i.concat(i.map(BW)))),i}function pW(C){const g=gA(C);return gLg[g]+C.slice(g.length)}function ALg(C){return{top:0,right:0,bottom:0,left:0,...C}}function sV(C){return typeof C!="number"?ALg(C):{top:C,right:C,bottom:C,left:C}}function Tr(C){const{x:g,y:I,width:e,height:t}=C;return{width:e,height:t,top:I,left:g,right:g+e,bottom:I+t,x:g,y:I}}function LD(C,g,I){let{reference:e,floating:t}=C;const i=kn(g),A=lV(g),n=nV(A),s=gA(g),o=i==="y",a=e.x+e.width/2-t.width/2,d=e.y+e.height/2-t.height/2,m=e[n]/2-t[n]/2;let Z;switch(s){case"top":Z={x:a,y:e.y-t.height};break;case"bottom":Z={x:a,y:e.y+e.height};break;case"right":Z={x:e.x+e.width,y:d};break;case"left":Z={x:e.x-t.width,y:d};break;default:Z={x:e.x,y:e.y}}switch(Dn(g)){case"start":Z[A]-=m*(I&&o?-1:1);break;case"end":Z[A]+=m*(I&&o?-1:1);break}return Z}async function vD(C,g){var I;g===void 0&&(g={});const{x:e,y:t,platform:i,rects:A,elements:n,strategy:s}=C,{boundary:o="clippingAncestors",rootBoundary:a="viewport",elementContext:d="floating",altBoundary:m=!1,padding:Z=0}=Sn(g,C),u=sV(Z),G=n[m?d==="floating"?"reference":"floating":d],w=Tr(await i.getClippingRect({element:(I=await(i.isElement==null?void 0:i.isElement(G)))==null||I?G:G.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(n.floating)),boundary:o,rootBoundary:a,strategy:s})),B=d==="floating"?{x:e,y:t,width:A.floating.width,height:A.floating.height}:A.reference,p=await(i.getOffsetParent==null?void 0:i.getOffsetParent(n.floating)),Y=await(i.isElement==null?void 0:i.isElement(p))?await(i.getScale==null?void 0:i.getScale(p))||{x:1,y:1}:{x:1,y:1},N=Tr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:B,offsetParent:p,strategy:s}):B);return{top:(w.top-N.top+u.top)/Y.y,bottom:(N.bottom-w.bottom+u.bottom)/Y.y,left:(w.left-N.left+u.left)/Y.x,right:(N.right-w.right+u.right)/Y.x}}const nLg=50,lLg=async(C,g,I)=>{const{placement:e="bottom",strategy:t="absolute",middleware:i=[],platform:A}=I,n=A.detectOverflow?A:{...A,detectOverflow:vD},s=await(A.isRTL==null?void 0:A.isRTL(g));let o=await A.getElementRects({reference:C,floating:g,strategy:t}),{x:a,y:d}=LD(o,e,s),m=e,Z=0;const u={};for(let h=0;h<i.length;h++){const G=i[h];if(!G)continue;const{name:w,fn:B}=G,{x:p,y:Y,data:N,reset:R}=await B({x:a,y:d,initialPlacement:e,placement:m,strategy:t,middlewareData:u,rects:o,platform:n,elements:{reference:C,floating:g}});a=p??a,d=Y??d,u[w]={...u[w],...N},R&&Z<nLg&&(Z++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(o=R.rects===!0?await A.getElementRects({reference:C,floating:g,strategy:t}):R.rects),{x:a,y:d}=LD(o,m,s)),h=-1)}return{x:a,y:d,placement:m,strategy:t,middlewareData:u}},sLg=C=>({name:"arrow",options:C,async fn(g){const{x:I,y:e,placement:t,rects:i,platform:A,elements:n,middlewareData:s}=g,{element:o,padding:a=0}=Sn(C,g)||{};if(o==null)return{};const d=sV(a),m={x:I,y:e},Z=lV(t),u=nV(Z),h=await A.getDimensions(o),G=Z==="y",w=G?"top":"left",B=G?"bottom":"right",p=G?"clientHeight":"clientWidth",Y=i.reference[u]+i.reference[Z]-m[Z]-i.floating[u],N=m[Z]-i.reference[Z],R=await(A.getOffsetParent==null?void 0:A.getOffsetParent(o));let X=R?R[p]:0;(!X||!await(A.isElement==null?void 0:A.isElement(R)))&&(X=n.floating[p]||i.floating[u]);const K=Y/2-N/2,D=X/2-h[u]/2-1,k=fn(d[w],D),z=fn(d[B],D),v=k,O=X-h[u]-z,Cg=X/2-h[u]/2+K,U=iV(v,Cg,O),T=!s.arrow&&Dn(t)!=null&&Cg!==U&&i.reference[u]/2-(Cg<v?k:z)-h[u]/2<0,q=T?Cg<v?Cg-v:Cg-O:0;return{[Z]:m[Z]+q,data:{[Z]:U,centerOffset:Cg-U-q,...T&&{alignmentOffset:q}},reset:T}}});function oLg(C,g,I){return(C?[...I.filter(t=>Dn(t)===C),...I.filter(t=>Dn(t)!==C)]:I.filter(t=>gA(t)===t)).filter(t=>C?Dn(t)===C||(g?BW(t)!==t:!1):!0)}const aLg=function(C){return C===void 0&&(C={}),{name:"autoPlacement",options:C,async fn(g){var I,e,t;const{rects:i,middlewareData:A,placement:n,platform:s,elements:o}=g,{crossAxis:a=!1,alignment:d,allowedPlacements:m=zD,autoAlignment:Z=!0,...u}=Sn(C,g),h=d!==void 0||m===zD?oLg(d||null,Z,m):m,G=await s.detectOverflow(g,u),w=((I=A.autoPlacement)==null?void 0:I.index)||0,B=h[w];if(B==null)return{};const p=JD(B,i,await(s.isRTL==null?void 0:s.isRTL(o.floating)));if(n!==B)return{reset:{placement:h[0]}};const Y=[G[gA(B)],G[p[0]],G[p[1]]],N=[...((e=A.autoPlacement)==null?void 0:e.overflows)||[],{placement:B,overflows:Y}],R=h[w+1];if(R)return{data:{index:w+1,overflows:N},reset:{placement:R}};const X=N.map(k=>{const z=Dn(k.placement);return[k.placement,z&&a?k.overflows.slice(0,2).reduce((v,O)=>v+O,0):k.overflows[0],k.overflows]}).sort((k,z)=>k[1]-z[1]),D=((t=X.filter(k=>k[2].slice(0,Dn(k[0])?2:3).every(z=>z<=0))[0])==null?void 0:t[0])||X[0][0];return D!==n?{data:{index:w+1,overflows:N},reset:{placement:D}}:{}}}},dLg=function(C){return C===void 0&&(C={}),{name:"flip",options:C,async fn(g){var I,e;const{placement:t,middlewareData:i,rects:A,initialPlacement:n,platform:s,elements:o}=g,{mainAxis:a=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:h=!0,...G}=Sn(C,g);if((I=i.arrow)!=null&&I.alignmentOffset)return{};const w=gA(t),B=kn(n),p=gA(n)===n,Y=await(s.isRTL==null?void 0:s.isRTL(o.floating)),N=m||(p||!h?[pW(n)]:ILg(n)),R=u!=="none";!m&&R&&N.push(...iLg(n,h,u,Y));const X=[n,...N],K=await s.detectOverflow(g,G),D=[];let k=((e=i.flip)==null?void 0:e.overflows)||[];if(a&&D.push(K[w]),d){const Cg=JD(t,A,Y);D.push(K[Cg[0]],K[Cg[1]])}if(k=[...k,{placement:t,overflows:D}],!D.every(Cg=>Cg<=0)){var z,v;const Cg=(((z=i.flip)==null?void 0:z.index)||0)+1,U=X[Cg];if(U&&(!(d==="alignment"?B!==kn(U):!1)||k.every(cg=>kn(cg.placement)===B?cg.overflows[0]>0:!0)))return{data:{index:Cg,overflows:k},reset:{placement:U}};let T=(v=k.filter(q=>q.overflows[0]<=0).sort((q,cg)=>q.overflows[1]-cg.overflows[1])[0])==null?void 0:v.placement;if(!T)switch(Z){case"bestFit":{var O;const q=(O=k.filter(cg=>{if(R){const og=kn(cg.placement);return og===B||og==="y"}return!0}).map(cg=>[cg.placement,cg.overflows.filter(og=>og>0).reduce((og,Wg)=>og+Wg,0)]).sort((cg,og)=>cg[1]-og[1])[0])==null?void 0:O[0];q&&(T=q);break}case"initialPlacement":T=n;break}if(t!==T)return{reset:{placement:T}}}return{}}}};function jD(C,g){return{top:C.top-g.height,right:C.right-g.width,bottom:C.bottom-g.height,left:C.left-g.width}}function QD(C){return FD.some(g=>C[g]>=0)}const cLg=function(C){return C===void 0&&(C={}),{name:"hide",options:C,async fn(g){const{rects:I,platform:e}=g,{strategy:t="referenceHidden",...i}=Sn(C,g);switch(t){case"referenceHidden":{const A=await e.detectOverflow(g,{...i,elementContext:"reference"}),n=jD(A,I.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:QD(n)}}}case"escaped":{const A=await e.detectOverflow(g,{...i,altBoundary:!0}),n=jD(A,I.floating);return{data:{escapedOffsets:n,escaped:QD(n)}}}default:return{}}}}};function OD(C){const g=fn(...C.map(i=>i.left)),I=fn(...C.map(i=>i.top)),e=St(...C.map(i=>i.right)),t=St(...C.map(i=>i.bottom));return{x:g,y:I,width:e-g,height:t-I}}function mLg(C){const g=C.slice().sort((t,i)=>t.y-i.y),I=[];let e=null;for(let t=0;t<g.length;t++){const i=g[t];!e||i.y-e.y>e.height/2?I.push([i]):I[I.length-1].push(i),e=i}return I.map(t=>Tr(OD(t)))}const rLg=function(C){return C===void 0&&(C={}),{name:"inline",options:C,async fn(g){const{placement:I,elements:e,rects:t,platform:i,strategy:A}=g,{padding:n=2,x:s,y:o}=Sn(C,g),a=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(e.reference))||[]),d=mLg(a),m=Tr(OD(a)),Z=sV(n);function u(){if(d.length===2&&d[0].left>d[1].right&&s!=null&&o!=null)return d.find(G=>s>G.left-Z.left&&s<G.right+Z.right&&o>G.top-Z.top&&o<G.bottom+Z.bottom)||m;if(d.length>=2){if(kn(I)==="y"){const k=d[0],z=d[d.length-1],v=gA(I)==="top",O=k.top,Cg=z.bottom,U=v?k.left:z.left,T=v?k.right:z.right,q=T-U,cg=Cg-O;return{top:O,bottom:Cg,left:U,right:T,width:q,height:cg,x:U,y:O}}const G=gA(I)==="left",w=St(...d.map(k=>k.right)),B=fn(...d.map(k=>k.left)),p=d.filter(k=>G?k.left===B:k.right===w),Y=p[0].top,N=p[p.length-1].bottom,R=B,X=w,K=X-R,D=N-Y;return{top:Y,bottom:N,left:R,right:X,width:K,height:D,x:R,y:Y}}return m}const h=await i.getElementRects({reference:{getBoundingClientRect:u},floating:e.floating,strategy:A});return t.reference.x!==h.reference.x||t.reference.y!==h.reference.y||t.reference.width!==h.reference.width||t.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},UD=new Set(["left","top"]);async function ZLg(C,g){const{placement:I,platform:e,elements:t}=C,i=await(e.isRTL==null?void 0:e.isRTL(t.floating)),A=gA(I),n=Dn(I),s=kn(I)==="y",o=UD.has(A)?-1:1,a=i&&s?-1:1,d=Sn(g,C);let{mainAxis:m,crossAxis:Z,alignmentAxis:u}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return n&&typeof u=="number"&&(Z=n==="end"?u*-1:u),s?{x:Z*a,y:m*o}:{x:m*o,y:Z*a}}const bLg=function(C){return C===void 0&&(C=0),{name:"offset",options:C,async fn(g){var I,e;const{x:t,y:i,placement:A,middlewareData:n}=g,s=await ZLg(g,C);return A===((I=n.offset)==null?void 0:I.placement)&&(e=n.arrow)!=null&&e.alignmentOffset?{}:{x:t+s.x,y:i+s.y,data:{...s,placement:A}}}}},uLg=function(C){return C===void 0&&(C={}),{name:"shift",options:C,async fn(g){const{x:I,y:e,placement:t,platform:i}=g,{mainAxis:A=!0,crossAxis:n=!1,limiter:s={fn:w=>{let{x:B,y:p}=w;return{x:B,y:p}}},...o}=Sn(C,g),a={x:I,y:e},d=await i.detectOverflow(g,o),m=kn(gA(t)),Z=AV(m);let u=a[Z],h=a[m];if(A){const w=Z==="y"?"top":"left",B=Z==="y"?"bottom":"right",p=u+d[w],Y=u-d[B];u=iV(p,u,Y)}if(n){const w=m==="y"?"top":"left",B=m==="y"?"bottom":"right",p=h+d[w],Y=h-d[B];h=iV(p,h,Y)}const G=s.fn({...g,[Z]:u,[m]:h});return{...G,data:{x:G.x-I,y:G.y-e,enabled:{[Z]:A,[m]:n}}}}}},hLg=function(C){return C===void 0&&(C={}),{options:C,fn(g){const{x:I,y:e,placement:t,rects:i,middlewareData:A}=g,{offset:n=0,mainAxis:s=!0,crossAxis:o=!0}=Sn(C,g),a={x:I,y:e},d=kn(t),m=AV(d);let Z=a[m],u=a[d];const h=Sn(n,g),G=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const p=m==="y"?"height":"width",Y=i.reference[m]-i.floating[p]+G.mainAxis,N=i.reference[m]+i.reference[p]-G.mainAxis;Z<Y?Z=Y:Z>N&&(Z=N)}if(o){var w,B;const p=m==="y"?"width":"height",Y=UD.has(gA(t)),N=i.reference[d]-i.floating[p]+(Y&&((w=A.offset)==null?void 0:w[d])||0)+(Y?0:G.crossAxis),R=i.reference[d]+i.reference[p]+(Y?0:((B=A.offset)==null?void 0:B[d])||0)-(Y?G.crossAxis:0);u<N?u=N:u>R&&(u=R)}return{[m]:Z,[d]:u}}}},GLg=function(C){return C===void 0&&(C={}),{name:"size",options:C,async fn(g){var I,e;const{placement:t,rects:i,platform:A,elements:n}=g,{apply:s=()=>{},...o}=Sn(C,g),a=await A.detectOverflow(g,o),d=gA(t),m=Dn(t),Z=kn(t)==="y",{width:u,height:h}=i.floating;let G,w;d==="top"||d==="bottom"?(G=d,w=m===(await(A.isRTL==null?void 0:A.isRTL(n.floating))?"start":"end")?"left":"right"):(w=d,G=m==="end"?"top":"bottom");const B=h-a.top-a.bottom,p=u-a.left-a.right,Y=fn(h-a[G],B),N=fn(u-a[w],p),R=!g.middlewareData.shift;let X=Y,K=N;if((I=g.middlewareData.shift)!=null&&I.enabled.x&&(K=p),(e=g.middlewareData.shift)!=null&&e.enabled.y&&(X=B),R&&!m){const k=St(a.left,0),z=St(a.right,0),v=St(a.top,0),O=St(a.bottom,0);Z?K=u-2*(k!==0||z!==0?k+z:St(a.left,a.right)):X=h-2*(v!==0||O!==0?v+O:St(a.top,a.bottom))}await s({...g,availableWidth:K,availableHeight:X});const D=await A.getDimensions(n.floating);return u!==D.width||h!==D.height?{reset:{rects:!0}}:{}}}};function YW(){return typeof window<"u"}function tc(C){return oV(C)?(C.nodeName||"").toLowerCase():"#document"}function IA(C){var g;return(C==null||(g=C.ownerDocument)==null?void 0:g.defaultView)||window}function hl(C){var g;return(g=(oV(C)?C.ownerDocument:C.document)||window.document)==null?void 0:g.documentElement}function oV(C){return YW()?C instanceof Node||C instanceof IA(C).Node:!1}function Fn(C){return YW()?C instanceof Element||C instanceof IA(C).Element:!1}function ms(C){return YW()?C instanceof HTMLElement||C instanceof IA(C).HTMLElement:!1}function ED(C){return!YW()||typeof ShadowRoot>"u"?!1:C instanceof ShadowRoot||C instanceof IA(C).ShadowRoot}function au(C){const{overflow:g,overflowX:I,overflowY:e,display:t}=Kn(C);return/auto|scroll|overlay|hidden|clip/.test(g+e+I)&&t!=="inline"&&t!=="contents"}function wLg(C){return/^(table|td|th)$/.test(tc(C))}function yW(C){try{if(C.matches(":popover-open"))return!0}catch{}try{return C.matches(":modal")}catch{return!1}}const WLg=/transform|translate|scale|rotate|perspective|filter/,BLg=/paint|layout|strict|content/,ic=C=>!!C&&C!=="none";let aV;function dV(C){const g=Fn(C)?Kn(C):C;return ic(g.transform)||ic(g.translate)||ic(g.scale)||ic(g.rotate)||ic(g.perspective)||!cV()&&(ic(g.backdropFilter)||ic(g.filter))||WLg.test(g.willChange||"")||BLg.test(g.contain||"")}function pLg(C){let g=Ca(C);for(;ms(g)&&!Lr(g);){if(dV(g))return g;if(yW(g))return null;g=Ca(g)}return null}function cV(){return aV==null&&(aV=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),aV}function Lr(C){return/^(html|body|#document)$/.test(tc(C))}function Kn(C){return IA(C).getComputedStyle(C)}function NW(C){return Fn(C)?{scrollLeft:C.scrollLeft,scrollTop:C.scrollTop}:{scrollLeft:C.scrollX,scrollTop:C.scrollY}}function Ca(C){if(tc(C)==="html")return C;const g=C.assignedSlot||C.parentNode||ED(C)&&C.host||hl(C);return ED(g)?g.host:g}function PD(C){const g=Ca(C);return Lr(g)?C.ownerDocument?C.ownerDocument.body:C.body:ms(g)&&au(g)?g:PD(g)}function vr(C,g,I){var e;g===void 0&&(g=[]),I===void 0&&(I=!0);const t=PD(C),i=t===((e=C.ownerDocument)==null?void 0:e.body),A=IA(t);if(i){const n=mV(A);return g.concat(A,A.visualViewport||[],au(t)?t:[],n&&I?vr(n):[])}else return g.concat(t,vr(t,[],I))}function mV(C){return C.parent&&Object.getPrototypeOf(C.parent)?C.frameElement:null}function _D(C){const g=Kn(C);let I=parseFloat(g.width)||0,e=parseFloat(g.height)||0;const t=ms(C),i=t?C.offsetWidth:I,A=t?C.offsetHeight:e,n=wW(I)!==i||wW(e)!==A;return n&&(I=i,e=A),{width:I,height:e,$:n}}function rV(C){return Fn(C)?C:C.contextElement}function jr(C){const g=rV(C);if(!ms(g))return ul(1);const I=g.getBoundingClientRect(),{width:e,height:t,$:i}=_D(g);let A=(i?wW(I.width):I.width)/e,n=(i?wW(I.height):I.height)/t;return(!A||!Number.isFinite(A))&&(A=1),(!n||!Number.isFinite(n))&&(n=1),{x:A,y:n}}const YLg=ul(0);function qD(C){const g=IA(C);return!cV()||!g.visualViewport?YLg:{x:g.visualViewport.offsetLeft,y:g.visualViewport.offsetTop}}function yLg(C,g,I){return g===void 0&&(g=!1),!I||g&&I!==IA(C)?!1:g}function Ac(C,g,I,e){g===void 0&&(g=!1),I===void 0&&(I=!1);const t=C.getBoundingClientRect(),i=rV(C);let A=ul(1);g&&(e?Fn(e)&&(A=jr(e)):A=jr(C));const n=yLg(i,I,e)?qD(i):ul(0);let s=(t.left+n.x)/A.x,o=(t.top+n.y)/A.y,a=t.width/A.x,d=t.height/A.y;if(i){const m=IA(i),Z=e&&Fn(e)?IA(e):e;let u=m,h=mV(u);for(;h&&e&&Z!==u;){const G=jr(h),w=h.getBoundingClientRect(),B=Kn(h),p=w.left+(h.clientLeft+parseFloat(B.paddingLeft))*G.x,Y=w.top+(h.clientTop+parseFloat(B.paddingTop))*G.y;s*=G.x,o*=G.y,a*=G.x,d*=G.y,s+=p,o+=Y,u=IA(h),h=mV(u)}}return Tr({width:a,height:d,x:s,y:o})}function VW(C,g){const I=NW(C).scrollLeft;return g?g.left+I:Ac(hl(C)).left+I}function $D(C,g){const I=C.getBoundingClientRect(),e=I.left+g.scrollLeft-VW(C,I),t=I.top+g.scrollTop;return{x:e,y:t}}function NLg(C){let{elements:g,rect:I,offsetParent:e,strategy:t}=C;const i=t==="fixed",A=hl(e),n=g?yW(g.floating):!1;if(e===A||n&&i)return I;let s={scrollLeft:0,scrollTop:0},o=ul(1);const a=ul(0),d=ms(e);if((d||!d&&!i)&&((tc(e)!=="body"||au(A))&&(s=NW(e)),d)){const Z=Ac(e);o=jr(e),a.x=Z.x+e.clientLeft,a.y=Z.y+e.clientTop}const m=A&&!d&&!i?$D(A,s):ul(0);return{width:I.width*o.x,height:I.height*o.y,x:I.x*o.x-s.scrollLeft*o.x+a.x+m.x,y:I.y*o.y-s.scrollTop*o.y+a.y+m.y}}function VLg(C){return Array.from(C.getClientRects())}function XLg(C){const g=hl(C),I=NW(C),e=C.ownerDocument.body,t=St(g.scrollWidth,g.clientWidth,e.scrollWidth,e.clientWidth),i=St(g.scrollHeight,g.clientHeight,e.scrollHeight,e.clientHeight);let A=-I.scrollLeft+VW(C);const n=-I.scrollTop;return Kn(e).direction==="rtl"&&(A+=St(g.clientWidth,e.clientWidth)-t),{width:t,height:i,x:A,y:n}}const gk=25;function RLg(C,g){const I=IA(C),e=hl(C),t=I.visualViewport;let i=e.clientWidth,A=e.clientHeight,n=0,s=0;if(t){i=t.width,A=t.height;const a=cV();(!a||a&&g==="fixed")&&(n=t.offsetLeft,s=t.offsetTop)}const o=VW(e);if(o<=0){const a=e.ownerDocument,d=a.body,m=getComputedStyle(d),Z=a.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,u=Math.abs(e.clientWidth-d.clientWidth-Z);u<=gk&&(i-=u)}else o<=gk&&(i+=o);return{width:i,height:A,x:n,y:s}}function MLg(C,g){const I=Ac(C,!0,g==="fixed"),e=I.top+C.clientTop,t=I.left+C.clientLeft,i=ms(C)?jr(C):ul(1),A=C.clientWidth*i.x,n=C.clientHeight*i.y,s=t*i.x,o=e*i.y;return{width:A,height:n,x:s,y:o}}function Ik(C,g,I){let e;if(g==="viewport")e=RLg(C,I);else if(g==="document")e=XLg(hl(C));else if(Fn(g))e=MLg(g,I);else{const t=qD(C);e={x:g.x-t.x,y:g.y-t.y,width:g.width,height:g.height}}return Tr(e)}function Ck(C,g){const I=Ca(C);return I===g||!Fn(I)||Lr(I)?!1:Kn(I).position==="fixed"||Ck(I,g)}function HLg(C,g){const I=g.get(C);if(I)return I;let e=vr(C,[],!1).filter(n=>Fn(n)&&tc(n)!=="body"),t=null;const i=Kn(C).position==="fixed";let A=i?Ca(C):C;for(;Fn(A)&&!Lr(A);){const n=Kn(A),s=dV(A);!s&&n.position==="fixed"&&(t=null),(i?!s&&!t:!s&&n.position==="static"&&!!t&&(t.position==="absolute"||t.position==="fixed")||au(A)&&!s&&Ck(C,A))?e=e.filter(a=>a!==A):t=n,A=Ca(A)}return g.set(C,e),e}function fLg(C){let{element:g,boundary:I,rootBoundary:e,strategy:t}=C;const A=[...I==="clippingAncestors"?yW(g)?[]:HLg(g,this._c):[].concat(I),e],n=Ik(g,A[0],t);let s=n.top,o=n.right,a=n.bottom,d=n.left;for(let m=1;m<A.length;m++){const Z=Ik(g,A[m],t);s=St(Z.top,s),o=fn(Z.right,o),a=fn(Z.bottom,a),d=St(Z.left,d)}return{width:o-d,height:a-s,x:d,y:s}}function SLg(C){const{width:g,height:I}=_D(C);return{width:g,height:I}}function DLg(C,g,I){const e=ms(g),t=hl(g),i=I==="fixed",A=Ac(C,!0,i,g);let n={scrollLeft:0,scrollTop:0};const s=ul(0);function o(){s.x=VW(t)}if(e||!e&&!i)if((tc(g)!=="body"||au(t))&&(n=NW(g)),e){const Z=Ac(g,!0,i,g);s.x=Z.x+g.clientLeft,s.y=Z.y+g.clientTop}else t&&o();i&&!e&&t&&o();const a=t&&!e&&!i?$D(t,n):ul(0),d=A.left+n.scrollLeft-s.x-a.x,m=A.top+n.scrollTop-s.y-a.y;return{x:d,y:m,width:A.width,height:A.height}}function ZV(C){return Kn(C).position==="static"}function ek(C,g){if(!ms(C)||Kn(C).position==="fixed")return null;if(g)return g(C);let I=C.offsetParent;return hl(C)===I&&(I=I.ownerDocument.body),I}function tk(C,g){const I=IA(C);if(yW(C))return I;if(!ms(C)){let t=Ca(C);for(;t&&!Lr(t);){if(Fn(t)&&!ZV(t))return t;t=Ca(t)}return I}let e=ek(C,g);for(;e&&wLg(e)&&ZV(e);)e=ek(e,g);return e&&Lr(e)&&ZV(e)&&!dV(e)?I:e||pLg(C)||I}const kLg=async function(C){const g=this.getOffsetParent||tk,I=this.getDimensions,e=await I(C.floating);return{reference:DLg(C.reference,await g(C.floating),C.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function FLg(C){return Kn(C).direction==="rtl"}const ik={convertOffsetParentRelativeRectToViewportRelativeRect:NLg,getDocumentElement:hl,getClippingRect:fLg,getOffsetParent:tk,getElementRects:kLg,getClientRects:VLg,getDimensions:SLg,getScale:jr,isElement:Fn,isRTL:FLg};function Ak(C,g){return C.x===g.x&&C.y===g.y&&C.width===g.width&&C.height===g.height}function KLg(C,g){let I=null,e;const t=hl(C);function i(){var n;clearTimeout(e),(n=I)==null||n.disconnect(),I=null}function A(n,s){n===void 0&&(n=!1),s===void 0&&(s=1),i();const o=C.getBoundingClientRect(),{left:a,top:d,width:m,height:Z}=o;if(n||g(),!m||!Z)return;const u=WW(d),h=WW(t.clientWidth-(a+m)),G=WW(t.clientHeight-(d+Z)),w=WW(a),p={rootMargin:-u+"px "+-h+"px "+-G+"px "+-w+"px",threshold:St(0,fn(1,s))||1};let Y=!0;function N(R){const X=R[0].intersectionRatio;if(X!==s){if(!Y)return A();X?A(!1,X):e=setTimeout(()=>{A(!1,1e-7)},1e3)}X===1&&!Ak(o,C.getBoundingClientRect())&&A(),Y=!1}try{I=new IntersectionObserver(N,{...p,root:t.ownerDocument})}catch{I=new IntersectionObserver(N,p)}I.observe(C)}return A(!0),i}function nk(C,g,I,e){e===void 0&&(e={});const{ancestorScroll:t=!0,ancestorResize:i=!0,elementResize:A=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:s=!1}=e,o=rV(C),a=t||i?[...o?vr(o):[],...g?vr(g):[]]:[];a.forEach(w=>{t&&w.addEventListener("scroll",I,{passive:!0}),i&&w.addEventListener("resize",I)});const d=o&&n?KLg(o,I):null;let m=-1,Z=null;A&&(Z=new ResizeObserver(w=>{let[B]=w;B&&B.target===o&&Z&&g&&(Z.unobserve(g),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var p;(p=Z)==null||p.observe(g)})),I()}),o&&!s&&Z.observe(o),g&&Z.observe(g));let u,h=s?Ac(C):null;s&&G();function G(){const w=Ac(C);h&&!Ak(h,w)&&I(),h=w,u=requestAnimationFrame(G)}return I(),()=>{var w;a.forEach(B=>{t&&B.removeEventListener("scroll",I),i&&B.removeEventListener("resize",I)}),d==null||d(),(w=Z)==null||w.disconnect(),Z=null,s&&cancelAnimationFrame(u)}}const zLg=vD,lk=bLg,sk=aLg,JLg=uLg,xLg=dLg,TLg=GLg,LLg=cLg,vLg=sLg,jLg=rLg,QLg=hLg,ok=(C,g,I)=>{const e=new Map,t={platform:ik,...I},i={...t.platform,_c:e};return lLg(C,g,{...t,platform:i})};function OLg(C){return C!=null&&typeof C=="object"&&"$el"in C}function bV(C){if(OLg(C)){const g=C.$el;return oV(g)&&tc(g)==="#comment"?null:g}return C}function Qr(C){return typeof C=="function"?C():l.unref(C)}function ULg(C){return{name:"arrow",options:C,fn(g){const I=bV(Qr(C.element));return I==null?{}:vLg({element:I,padding:C.padding}).fn(g)}}}function ak(C){return typeof window>"u"?1:(C.ownerDocument.defaultView||window).devicePixelRatio||1}function dk(C,g){const I=ak(C);return Math.round(g*I)/I}function ck(C,g,I){I===void 0&&(I={});const e=I.whileElementsMounted,t=l.computed(()=>{var X;return(X=Qr(I.open))!=null?X:!0}),i=l.computed(()=>Qr(I.middleware)),A=l.computed(()=>{var X;return(X=Qr(I.placement))!=null?X:"bottom"}),n=l.computed(()=>{var X;return(X=Qr(I.strategy))!=null?X:"absolute"}),s=l.computed(()=>{var X;return(X=Qr(I.transform))!=null?X:!0}),o=l.computed(()=>bV(C.value)),a=l.computed(()=>bV(g.value)),d=l.ref(0),m=l.ref(0),Z=l.ref(n.value),u=l.ref(A.value),h=l.shallowRef({}),G=l.ref(!1),w=l.computed(()=>{const X={position:Z.value,left:"0",top:"0"};if(!a.value)return X;const K=dk(a.value,d.value),D=dk(a.value,m.value);return s.value?{...X,transform:"translate("+K+"px, "+D+"px)",...ak(a.value)>=1.5&&{willChange:"transform"}}:{position:Z.value,left:K+"px",top:D+"px"}});let B;function p(){if(o.value==null||a.value==null)return;const X=t.value;ok(o.value,a.value,{middleware:i.value,placement:A.value,strategy:n.value}).then(K=>{d.value=K.x,m.value=K.y,Z.value=K.strategy,u.value=K.placement,h.value=K.middlewareData,G.value=X!==!1})}function Y(){typeof B=="function"&&(B(),B=void 0)}function N(){if(Y(),e===void 0){p();return}if(o.value!=null&&a.value!=null){B=e(o.value,a.value,p);return}}function R(){t.value||(G.value=!1)}return l.watch([i,A,n,t],p,{flush:"sync"}),l.watch([o,a],N,{flush:"sync"}),l.watch(t,R,{flush:"sync"}),l.getCurrentScope()&&l.onScopeDispose(Y),{x:l.shallowReadonly(d),y:l.shallowReadonly(m),strategy:l.shallowReadonly(Z),placement:l.shallowReadonly(u),middlewareData:l.shallowReadonly(h),isPositioned:l.shallowReadonly(G),floatingStyles:w,update:p}}const ELg=Qg(l.defineComponent({__name:"PopoverWrapper",props:{placement:{default:"bottom-start"},open:{type:Boolean,default:!1}},emits:["unmount-close"],setup(C,{emit:g}){const I=C,e=g,t=l.ref(null),i=l.ref(null),A=l.ref(null),n=l.ref(null),{floatingStyles:s}=ck(i,A,{middleware:[lk(10),sk({crossAxis:!0,allowedPlacements:["top-start","bottom-start"]})],strategy:n.value?"fixed":"absolute",placement:I.placement,whileElementsMounted:nk}),o=()=>{e("unmount-close")},a=d=>{t.value&&!t.value.contains(d.target)&&A.value&&!A.value.contains(d.target)&&o()};return l.onBeforeUnmount(()=>{document.removeEventListener("click",a)}),l.onMounted(()=>{if(document.addEventListener("click",a),t.value){const d=t.value.closest("dialog");d?n.value=d:n.value=document.body}}),(d,m)=>(l.openBlock(),l.createElementBlock("div",{class:"popover-wrapper",ref_key:"popoverWrapper",ref:t},[l.createElementVNode("div",{class:"popover-trigger",ref_key:"popoverTrigger",ref:i},[l.renderSlot(d.$slots,"trigger",{},void 0,!0)],512),(l.openBlock(),l.createBlock(l.Teleport,{to:n.value,disabled:!n.value},[I.open?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"popoverContent",ref:A,class:l.normalizeClass(["popover-content",[`popover-${C.placement}`,{"popover-show":I.open}]]),style:l.normalizeStyle(l.unref(s))},[l.renderSlot(d.$slots,"default",{},void 0,!0)],6)):l.createCommentVNode("",!0)],8,["to","disabled"]))],512))}}),[["__scopeId","data-v-50c6e512"]]),mk=C=>C instanceof Date&&!isNaN(C.getTime()),XW=C=>{const g=mk(C)&&C!==null?C:new Date;return new Date(Date.UTC(g.getFullYear(),g.getMonth(),g.getDate(),23,59,59,999))},rk=C=>{const g=mk(C)&&C!==null?C:new Date,I={year:g.getFullYear(),month:g.getMonth(),day:g.getDate()};return new Date(Date.UTC(I.year,I.month,I.day))},PLg=(C,g)=>{if(!C)return"";g!=="ru-RU"&&(g="en-US");const I=new Date(C),e=rW(g),t=I.getDate().toString().padStart(2,"0"),i=I.getFullYear().toString();return`${e[I.getMonth()]} ${t}, ${i}`},_Lg=["data-testid"],qLg=[".date",".minDate",".maxDate","locale","data-testid"],uV=l.defineComponent({__name:"DatePicker",props:l.mergeModels({range:{},locale:{default:"ru-RU"},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isSelectTime:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePicker"}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["clear","change"],["update:modelValue"]),setup(C,{expose:g,emit:I}){const e=C,t=l.reactive({isActive:!1,isOpen:{months:!1,years:!1},isNotClear:!0,startDate:null,endDate:null}),i=I,A=l.useModel(C,"modelValue"),n=l.computed(()=>{if(!A.value)return null;const k=new Date(A.value);return isNaN(k.getTime())?null:k}),s=()=>{t.isNotClear=!1,A.value=null,i("clear"),setTimeout(()=>t.isNotClear=!0,1),a({detail:{date:null}})},o=k=>{i("change",k?new Date(k):null)},a=({detail:k})=>{if(!k)return;let z=k.date;n.value&&z&&(z=new Date(z.getFullYear(),z.getMonth(),z.getDate(),n.value.getHours(),n.value.getMinutes())),A.value=z,t.isActive=!1,i("change",z)},d=()=>{t.isOpen.months=!0,t.isOpen.years=!1},m=()=>{t.isOpen.years=!0,t.isOpen.months=!1},Z=()=>{t.isOpen.months=!1},u=()=>{t.isOpen.years=!1},h=()=>{t.isActive=!1,Z(),u()};l.watchEffect(()=>t.startDate=e.startDate??null),l.watchEffect(()=>t.endDate=e.endDate??null);const G=k=>new Date(k.getFullYear(),k.getMonth(),1),w=k=>new Date(k.getFullYear(),k.getMonth()+1,0,23,59,59,999),B=k=>new Date(k.getFullYear(),0,1),p=k=>new Date(k.getFullYear(),11,31,23,59,59,999),Y=()=>t.isOpen.months&&!t.isOpen.years?"months":t.isOpen.years&&!t.isOpen.months?"years":null,N=k=>{switch(Y()){case"months":return G(k);case"years":return B(k);default:return k}},R=k=>{switch(Y()){case"months":return w(k);case"years":return p(k);default:return k}},X=()=>{const k=t.startDate??new Date;if(e.startDate){const z=n.value??new Date;if(k.valueOf()<=z.valueOf())return N(k);if(k!=null)return N(k)}return null},K=()=>{const k=t.endDate??new Date;if(e.endDate){const z=n.value??new Date;if(k.valueOf()>=z.valueOf())return R(k);if(k!=null)return R(k)}return null},D=()=>{t.isActive=!0};return l.watch(()=>A.value,()=>{A.value||(t.isNotClear=!1,A.value=null,setTimeout(()=>t.isNotClear=!0,1))}),g({clearChoose:s}),(k,z)=>(l.openBlock(),l.createElementBlock("div",{class:"date-picker-yui-kit__wrapper","data-testid":`${e.dataTestid}-Wrapper`},[l.createVNode(ELg,{open:!e.disabled&&t.isActive,onUnmountClose:h},{trigger:l.withCtx(()=>[l.createVNode($Tg,{onClick:D,onClear:s,modelValue:A.value,"onUpdate:modelValue":z[0]||(z[0]=v=>A.value=v),"is-time-select":e.isSelectTime,"is-active":t.isActive,"is-small":e.isSmall,"is-range":e.isRange,disabled:e.disabled,"data-testid":`${e.dataTestid}-Choose`,value:l.unref(PLg)(A.value||null,e.locale),onChange:o},null,8,["modelValue","is-time-select","is-active","is-small","is-range","disabled","data-testid","value"])]),default:l.withCtx(()=>[l.createElementVNode("col-cal",{".date":n.value,".minDate":X(),".maxDate":K(),locale:e.locale??"ru-RU","data-testid":`${e.dataTestid}-Component`,onShowMonths:d,onShowYears:m,onHideMonths:Z,onHideYears:u,onChangeDate:a,class:"date-picker-yui-kit",onClick:z[1]||(z[1]=l.withModifiers(()=>{},["stop"]))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Object.keys(t.isOpen),v=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:v},[t.isOpen[v]?(l.openBlock(),l.createBlock(Yg,{key:0,class:"open-popup",name:l.unref(rg).chevronUp,width:16,height:16,slot:`${v}-popup-icon`},null,8,["name","slot"])):(l.openBlock(),l.createBlock(Yg,{key:1,class:"date-picker__icon date-picker__icon_area",name:l.unref(rg).chevronDown,width:16,height:16,slot:`${v}-popup-icon`},null,8,["name","slot"]))],64))),128)),l.createVNode(Yg,{class:"date-picker__icon",slot:"icon-left-button",name:l.unref(rg).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"icon-right-button",name:l.unref(rg).chevronRight,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"years-icon-left",name:l.unref(rg).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"years-icon-right",name:l.unref(rg).chevronRight,width:16,height:16},null,8,["name"])],40,qLg)]),_:1},8,["open"])],8,_Lg))}});var nc=(C=>(C.start="start",C.end="end",C))(nc||{});const $Lg=["data-testid"],gvg=["data-testid"],Ivg=Qg(l.defineComponent({__name:"DatePickerRange",props:l.mergeModels({range:{},locale:{default:"ru-RU"},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isSelectTime:{type:Boolean},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(C,{expose:g,emit:I}){const e=C,t=I,i=l.reactive({date:{start:null,end:null},isActive:!1}),A=l.useModel(C,"startDate"),n=l.useModel(C,"endDate"),s=(m,Z)=>{Z===nc.start&&(i.date[Z]=m),Z===nc.end&&(i.date[Z]=e.toLastTime&&m!==null?XW(m):m),t("change",i.date)},o=m=>{i.date[m]=null},a=()=>{Object.keys(i.date).forEach(m=>{i.date[m]=null})},d=()=>{(A.value||n.value)&&(i.date={start:A.value,end:e.toLastTime?XW(n.value):n.value})};return l.watch([()=>A.value,()=>n.value],()=>{d()}),l.onMounted(()=>{d()}),g({clear:a}),(m,Z)=>{var u,h;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["date-picker-yui-kit__header",{"date-disable-yui-kit":e.disabled},{"date-active-yui-kit":i.isActive}]),"data-testid":`${e.dataTestid}-Header`},[l.createVNode(uV,{modelValue:i.date.start,"onUpdate:modelValue":Z[0]||(Z[0]=G=>i.date.start=G),locale:e.locale,"is-range":"",disabled:e.disabled,"end-date":(u=i.date)==null?void 0:u.end,onChange:Z[1]||(Z[1]=G=>s(G,l.unref(nc).start)),onClear:Z[2]||(Z[2]=G=>o(l.unref(nc).start)),"data-testid":`${e.dataTestid}-Component-Start`},null,8,["modelValue","locale","disabled","end-date","data-testid"]),l.createElementVNode("div",{class:"date-picker-yui-kit__header__dash","data-testid":`${e.dataTestid}-Header-Dash`},null,8,gvg),l.createVNode(uV,{modelValue:i.date.end,"onUpdate:modelValue":Z[3]||(Z[3]=G=>i.date.end=G),locale:e.locale,"is-range":"",disabled:e.disabled,"start-date":(h=i.date)==null?void 0:h.start,onChange:Z[4]||(Z[4]=G=>s(G,l.unref(nc).end)),onClear:Z[5]||(Z[5]=G=>o(l.unref(nc).end)),"data-testid":`${e.dataTestid}-Component-End`},null,8,["modelValue","locale","disabled","start-date","data-testid"])],10,$Lg)}}}),[["__scopeId","data-v-0d725894"]]),hV=l.defineComponent({__name:"Calendar",props:{range:{},locale:{},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isSelectTime:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"Calendar"}},emits:["change","click"],setup(C,{emit:g}){const I=C,e=l.reactive({date:null,dateObject:{start:null,end:null}}),t=g,i=l.ref(),A=s=>{t("change",s)};l.watchEffect(()=>e.date=I.setDate||null);const n=()=>{var s,o;return{start:I.fromTodayTime?new Date(Date.now()):((s=I.range)==null?void 0:s.start)??null,end:((o=I.range)==null?void 0:o.end)??null}};return l.watch([()=>{var s;return(s=I.range)==null?void 0:s.start},()=>{var s;return(s=I.range)==null?void 0:s.end}],()=>{var s,o,a;e.dateObject=n(),((s=I.range)==null?void 0:s.start)===null&&((o=I.range)==null?void 0:o.end)===null&&((a=i.value)==null||a.clear())}),l.onMounted(()=>{if(I.isRange){e.dateObject=n();return}I.setDate&&(e.date=I.setDate??null)}),(s,o)=>I.isRange?(l.openBlock(),l.createBlock(Ivg,{key:0,ref_key:"datePickerRangeRef",ref:i,"to-last-time":I.toLastTime,"start-date":e.dateObject.start,"onUpdate:startDate":o[0]||(o[0]=a=>e.dateObject.start=a),"end-date":e.dateObject.end,"onUpdate:endDate":o[1]||(o[1]=a=>e.dateObject.end=a),disabled:I.disabled,locale:I.locale,onClick:o[2]||(o[2]=a=>t("click")),onChange:A,"data-testid":`${I.dataTestid}-DataPickerRange`},null,8,["to-last-time","start-date","end-date","disabled","locale","data-testid"])):(l.openBlock(),l.createBlock(uV,{key:1,modelValue:e.date,"onUpdate:modelValue":o[3]||(o[3]=a=>e.date=a),disabled:I.disabled,locale:I.locale,"is-small":I.isSmall,"is-select-time":I.isSelectTime,"data-testid":`${I.dataTestid}-DataPicker`,onClick:o[4]||(o[4]=a=>t("click")),onChange:A},null,8,["modelValue","disabled","locale","is-small","is-select-time","data-testid"]))}}),Cvg=["data-testid"],evg=["data-testid"],GV=Qg(l.defineComponent({__name:"Accordion",props:{dataTestid:{default:"Accordion"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("details",{class:"accordion-yui-kit","data-testid":g.dataTestid},[l.createElementVNode("summary",{class:"accordion-yui-kit__summary","data-testid":`${g.dataTestid}-Summary`},[l.renderSlot(I.$slots,"summary",{},void 0,!0),l.createVNode(Yg,{name:l.unref(rg).chevronUp,class:"chevron-up","stroke-width":"2","data-testid":`${g.dataTestid}-ChevronUp`},null,8,["name","data-testid"]),l.createVNode(Yg,{name:l.unref(rg).chevronDown,class:"chevron-down","stroke-width":"2","data-testid":`${g.dataTestid}-ChevronDown`},null,8,["name","data-testid"])],8,evg),l.renderSlot(I.$slots,"default",{},void 0,!0)],8,Cvg))}}),[["__scopeId","data-v-54d2ddb3"]]),tvg=["data-testid"],ivg=["data-testid"],Avg=["data-testid"],nvg=["data-testid","multiple"],wV=Qg(l.defineComponent({__name:"DragAndDrop",props:{singleFileMode:{type:Boolean,default:!1},title:{default:"Кликните или перенесите файлы"},dataTestid:{default:"DragAndDrop"}},emits:["fileDropped"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isPressed:!1}),i=l.ref(null),A=Z=>{const u=Z.target;m(u.files)},n=()=>{i.value&&(i.value.value="")},s=Z=>{var h;Z.preventDefault();const u=(h=Z.currentTarget)==null?void 0:h.children[0];u.classList.contains("active")||u.classList.add("active")},o=Z=>{Z.currentTarget.children[0].classList.remove("active")},a=Z=>{var h;Z.preventDefault(),m(((h=Z.dataTransfer)==null?void 0:h.files)||null),Z.currentTarget.children[0].classList.remove("active")},d=()=>{t.isPressed=!t.isPressed},m=Z=>{t.isPressed=!1,e("fileDropped",Z)};return l.onMounted(()=>{var Z;(Z=i.value)==null||Z.addEventListener("cancel",()=>{t.isPressed=!1})}),(Z,u)=>(l.openBlock(),l.createElementBlock("div",{onDragover:s,onDragleave:o,onDrop:a,class:"dnd-yui-kit","data-testid":I.dataTestid},[l.createElementVNode("label",{for:"docsFileSelected",class:l.normalizeClass(["dnd-yui-kit__label",{"is-pressed":t.isPressed}]),onClick:d,"data-testid":`${I.dataTestid}-Label`},[l.createVNode(Yg,{name:l.unref(rg).paperClip,"stroke-width":"2","data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"]),l.createElementVNode("span",{class:"dnd-yui-kit__span","data-testid":`${I.dataTestid}-Title`},l.toDisplayString(I.title),9,Avg)],10,ivg),l.createElementVNode("input",{id:"docsFileSelected",onChange:A,onClick:n,type:"file",style:{display:"none"},"data-testid":`${I.dataTestid}-Input`,required:"",multiple:!I.singleFileMode,ref_key:"fileInputRef",ref:i},null,40,nvg)],40,tvg))}}),[["__scopeId","data-v-a5038808"]]),lvg=["data-testid"],svg=["data-testid"],WV=Qg(l.defineComponent({__name:"Card",props:{dataTestid:{default:"Card"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("div",{class:"card-yui-kit","data-testid":g.dataTestid},[I.$slots.left?(l.openBlock(),l.createElementBlock("div",{key:0,class:"card-yui-kit__left","data-testid":`${g.dataTestid}-Left`},[l.renderSlot(I.$slots,"left",{},void 0,!0)],8,svg)):l.createCommentVNode("",!0),l.renderSlot(I.$slots,"default",{},void 0,!0)],8,lvg))}}),[["__scopeId","data-v-7ffd26ce"]]),ovg=["data-testid"],avg=["data-testid"],dvg=["data-testid"],cvg=["data-testid"],mvg=["onClick","data-testid"],rvg=["data-testid"],Zvg=Qg(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(C,{emit:g}){const I=C,e=l.reactive({isShowList:I.isShowList,isShowButtonHistory:I.isShowButtonHistory}),t=g,i=l.computed(()=>({"history-yui-kit__list":!0,"history-yui-kit__list--opened":e.isShowList,"history-yui-kit__list--scroll":I.modelValue&&I.modelValue.length>=5&&e.isShowList})),A=()=>{e.isShowList=!0,e.isShowButtonHistory=!1},n=o=>{t("unmount-remove",o)},s=o=>{t("choosePost",o)};return(o,a)=>{var d;return I.showHistory?(l.openBlock(),l.createElementBlock("div",{key:0,class:"search-yui-kit__history history-yui-kit","data-testid":I.dataTestid},[e.isShowButtonHistory?(l.openBlock(),l.createBlock(nI,{key:0,type:l.unref(II).outline,onClick:A,class:l.normalizeClass("history-yui-kit__button-text show-result"),"data-testid":`${I.dataTestid}-ShowResult`},{default:l.withCtx(()=>[l.createElementVNode("span",{class:"search-yui-kit__button-label","data-testid":`${I.dataTestid}-ShowResult-Title`}," Просмотреть историю запросов ",8,avg)]),_:1},8,["type","data-testid"])):l.createCommentVNode("",!0),(d=I.modelValue)!=null&&d.length?(l.openBlock(),l.createElementBlock("ul",{key:1,class:l.normalizeClass(i.value),"data-testid":`${I.dataTestid}-ShowResult-List`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.modelValue,(m,Z)=>(l.openBlock(),l.createElementBlock("li",{class:"history-yui-kit__item",key:m,"data-testid":`${I.dataTestid}-ShowResult-Title${Z}`},[l.createElementVNode("span",{onClick:u=>s(m),class:"history-yui-kit__hint","data-testid":`${I.dataTestid}-HandleChoosePost-Title${Z}`},l.toDisplayString(m),9,mvg),l.createVNode(nI,{type:l.unref(II).ghost,onClick:u=>n(m),"data-testid":`${I.dataTestid}-ButtonItem-Remove${Z}`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).exitSmall,width:16,"data-testid":`${I.dataTestid}-ButtonItem-RemoveIcon${Z}`},null,8,["name","data-testid"])]),_:2},1032,["type","onClick","data-testid"])],8,cvg))),128))],10,dvg)):e.isShowButtonHistory?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(nI,{key:2,type:l.unref(II).outline,class:l.normalizeClass("history-yui-kit__button-text"),"data-testid":`${I.dataTestid}-ButtonTypeEnum-RemoveButton`},{default:l.withCtx(()=>[l.createElementVNode("span",{"data-testid":`${I.dataTestid}-ButtonTypeEnum-EmptyContent`,class:"empty-content"},"По вашему запросу ничего не найдено",8,rvg)]),_:1},8,["type","data-testid"]))],8,ovg)):l.createCommentVNode("",!0)}}}),[["__scopeId","data-v-f687dbf4"]]),bvg=["data-testid"],uvg=["data-testid"],hvg=["data-testid","onClick"],Gvg=["data-testid"],wvg=["data-testid"],Wvg=["data-testid"],Bvg=["data-testid"],pvg=["data-testid"],Yvg=["data-testid"],yvg=Qg(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(C,{emit:g}){const I=C,e=g,t=l.ref(null),i=n=>{e("choose-result",n)},A=n=>{const s=n.target,{scrollTop:o,scrollHeight:a,clientHeight:d}=s;a-o-d<5&&e("scroll-paginate")};return l.watch(()=>I.searchValue,()=>{t.value&&(t.value.scrollTop=0)}),(n,s)=>(l.openBlock(),l.createElementBlock("div",{class:"search-yui-kit__result result-yui-kit","data-testid":I.dataTestid},[I.globalResultsFunction.length>0?(l.openBlock(),l.createElementBlock("ul",{key:0,class:"result-yui-kit__list","data-testid":`${I.dataTestid}-List`,onScroll:A,ref_key:"resultContentRef",ref:t},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.globalResultsFunction,(o,a)=>(l.openBlock(),l.createElementBlock("li",{class:"result-yui-kit__list__item",key:a,"data-testid":`${I.dataTestid}-List-Items${a}`,onClick:d=>i(o)},[l.createVNode(Yg,{name:o.icon||l.unref(rg).document,"data-testid":`${I.dataTestid}-Items-Icon${a}`,width:16,height:16,class:"result-yui-kit__list__item__icon"},null,8,["name","data-testid"]),l.createElementVNode("span",{"data-testid":`${I.dataTestid}-Result-NameArea${a}`},l.toDisplayString(o.nameArea),9,Gvg),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${I.dataTestid}-Result-Slash${a}`},"/",8,wvg),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${I.dataTestid}-Result-SearchResult${a}`},l.toDisplayString(o.searchResult),9,Wvg)],8,hvg))),128))],40,uvg)):I.searchValue?(l.openBlock(),l.createElementBlock("ul",{key:1,class:"result-yui-kit__list result-yui-kit__empty","data-testid":`${I.dataTestid}-Nothing-List`},[l.createElementVNode("li",{class:"result-yui-kit__empty__item","data-testid":`${I.dataTestid}-Nothing-Items`},[l.createElementVNode("p",{"data-testid":`${I.dataTestid}-Nothing-Text`}," По вашему запросу ничего не найдено ",8,Yvg)],8,pvg)],8,Bvg)):l.createCommentVNode("",!0)],8,bvg))}}),[["__scopeId","data-v-680b08c2"]]),Zk=()=>{const C=l.ref(localStorage.getItem("historySearch")?JSON.parse(localStorage.getItem("historySearch")):[]);return{getHistorySearch:C,addHistorySearch:e=>{e&&(C.value=C.value.filter(t=>t!==e),C.value.unshift(e),C.value.length>10&&C.value.pop(),localStorage.setItem("historySearch",JSON.stringify(C.value)))},removeHistorySearch:e=>{C.value=C.value.filter(t=>t!==e),localStorage.setItem("historySearch",JSON.stringify(C.value))}}},Nvg=["data-testid"],Vvg=["data-testid"],Xvg=["data-testid"],Rvg=["placeholder","data-testid"],du=Qg(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(C,{emit:g}){const I=C,e=g,{getHistorySearch:t,removeHistorySearch:i,addHistorySearch:A}=Zk(),n=l.reactive({isShowList:!1,isShowButtonHistory:I.showHistory??!1,searchValue:I.modelValue,placeholder:I.placeholder??"",focused:!1}),s={position:"relative",width:"100%",height:I.height},o=Y=>{n.searchValue=Y.trim(),n.isShowList=!1,e("input",Y),e("update:modelValue",n.searchValue),e("choosed",n.searchValue),e("enter",n.searchValue)},a=Y=>{n.isShowList=!1,e("choose-result",Y)},d=()=>{e("scroll-paginate")},m=l.computed(()=>({"search-yui-kit__icon-wrapper":!0})),Z=()=>{n.focused=!0},u=()=>{setTimeout(()=>{n.focused=!1},500)},h=()=>{n.isShowList=!1,n.isShowButtonHistory=!1},G=()=>{n.isShowButtonHistory=!0,n.isShowButtonHistory||(n.isShowList=!0)},w=()=>{e("enter",n.searchValue.trim()),I.showHistory&&n.searchValue&&A(n.searchValue.trim())},B=()=>{const Y=n.searchValue.trim();e("input",Y),e("update:modelValue",Y)},p=()=>{n.searchValue&&(n.searchValue="",B(),w())};return l.onMounted(()=>{I.defaultValue&&(n.searchValue=I.defaultValue)}),l.watch(()=>I.modelValue,Y=>{n.searchValue=Y}),(Y,N)=>(l.openBlock(),l.createElementBlock("div",{class:"search-yui-kit",style:s,onMousemove:G,onMouseleave:h,"data-testid":I.dataTestid},[l.createElementVNode("div",{class:l.normalizeClass(m.value),"data-testid":`${I.dataTestid}-Dropdown-Wrapper`},[l.createElementVNode("div",{class:"search-yui-kit__dropdown","data-testid":`${I.dataTestid}-Dropdown`},[l.withDirectives(l.createElementVNode("input",{type:"text",class:"search-yui-kit__input","onUpdate:modelValue":N[0]||(N[0]=R=>n.searchValue=R),placeholder:I.placeholder,onKeydown:l.withKeys(w,["enter"]),onInput:B,onFocus:Z,onBlur:u,"data-testid":`${I.dataTestid}-Dropdown-Input`},null,40,Rvg),[[l.vModelText,n.searchValue]]),l.createVNode(Yg,{class:"search-icon",name:l.unref(rg).searchNormal},null,8,["name"]),n.searchValue?(l.openBlock(),l.createBlock(nI,{key:0,class:"clear-button",type:l.unref(II).ghost,onClick:p,"data-testid":`${I.dataTestid}-Clear-Button`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).exitSmall,color:"var(--text-light-color)","data-testid":`${I.dataTestid}-Clear-Button-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","data-testid"])):l.createCommentVNode("",!0)],8,Xvg)],10,Vvg),!I.global&&I.showHistory?(l.openBlock(),l.createBlock(Zvg,{key:0,"show-history":I.showHistory,"is-show-button-history":n.isShowButtonHistory,"is-show-list":n.isShowList,"model-value":l.unref(t),onUnmountRemove:l.unref(i),onChoosePost:o,"data-testid":`${I.dataTestid}-Dropdown-History`},null,8,["show-history","is-show-button-history","is-show-list","model-value","onUnmountRemove","data-testid"])):l.createCommentVNode("",!0),I.global&&n.focused?(l.openBlock(),l.createBlock(yvg,{key:1,"global-results-function":I.globalResultsFunction,"search-value":n.searchValue,"data-testid":`${I.dataTestid}-Dropdown-SearchResult`,onChooseResult:a,onScrollPaginate:d},null,8,["global-results-function","search-value","data-testid"])):l.createCommentVNode("",!0)],40,Nvg))}}),[["__scopeId","data-v-17fe3aad"]]);var cu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mvg(C){return C&&C.__esModule&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C}var RW={exports:{}};/**
1527
1527
  * @license
1528
1528
  * Lodash <https://lodash.com/>
1529
1529
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -1603,19 +1603,19 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
1603
1603
  `),position:p,pageIndex:Y-1,rect:a.slice(0),rotation:d,annotationElementId:m,id:m,deleted:!1,popupRef:Z,comment:(h==null?void 0:h.str)||null,richText:u,creationDate:G,modificationDate:w}}const A=await super.deserialize(I,e,t);return y(A,hA,I.fontSize),A.color=Xg.makeHexColor(...I.color),y(A,uA,H(n=FC,Zo,dH).call(n,I.value)),A._initialData=i,I.comment&&A.setCommentData(I),A}serialize(I=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const e=RC._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.color),t=Object.assign(super.serialize(I),{color:e,fontSize:c(this,hA),value:H(this,ke,X4).call(this)});return this.addComment(t),I?(t.isCopy=!0,t):this.annotationElementId&&!H(this,ke,R4).call(this,t)?null:(t.id=this.annotationElementId,t)}renderAnnotationElement(I){const e=super.renderAnnotationElement(I);if(!e)return null;const{style:t}=e;t.fontSize=`calc(${c(this,hA)}px * var(--total-scale-factor))`,t.color=this.color,e.replaceChildren();for(const i of c(this,uA).split(`
1604
1604
  `)){const A=document.createElement("div");A.append(i?document.createTextNode(i):document.createElement("br")),e.append(A)}return I.updateEdited({rect:this.getPDFRect(),popup:this._uiManager.hasCommentManager()||this.hasEditedComment?this.comment:{text:c(this,uA)}}),e}resetAnnotationElement(I){super.resetAnnotationElement(I),I.resetEdited()}};uA=new WeakMap,i2=new WeakMap,xm=new WeakMap,hA=new WeakMap,ke=new WeakSet,y4=function(I){const e=i=>{this.editorDiv.style.fontSize=`calc(${i}px * var(--total-scale-factor))`,this.translate(0,-(i-c(this,hA))*this.parentScale),y(this,hA,i),H(this,ke,q1).call(this)},t=c(this,hA);this.addCommands({cmd:e.bind(this,I),undo:e.bind(this,t),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:hI.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},N4=function(I){const e=i=>{this.color=i,this.onUpdatedColor()},t=this.color;this.addCommands({cmd:e.bind(this,I),undo:e.bind(this,t),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:hI.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},V4=function(){var t;const I=[];this.editorDiv.normalize();let e=null;for(const i of this.editorDiv.childNodes)(e==null?void 0:e.nodeType)===Node.TEXT_NODE&&i.nodeName==="BR"||(I.push(H(t=FC,Zo,$1).call(t,i)),e=i);return I.join(`
1605
1605
  `)},q1=function(){const[I,e]=this.parentDimensions;let t;if(this.isAttachedToDOM)t=this.div.getBoundingClientRect();else{const{currentLayer:i,div:A}=this,n=A.style.display,s=A.classList.contains("hidden");A.classList.remove("hidden"),A.style.display="hidden",i.div.append(this.div),t=A.getBoundingClientRect(),A.remove(),A.style.display=n,A.classList.toggle("hidden",s)}this.rotation%180===this.parentRotation%180?(this.width=t.width/I,this.height=t.height/e):(this.width=t.height/I,this.height=t.width/e),this.fixAndSetPosition()},Zo=new WeakSet,$1=function(I){return(I.nodeType===Node.TEXT_NODE?I.nodeValue:I.innerText).replaceAll(nB,"")},gy=function(){if(this.editorDiv.replaceChildren(),!!c(this,uA))for(const I of c(this,uA).split(`
1606
- `)){const e=document.createElement("div");e.append(I?document.createTextNode(I):document.createElement("br")),this.editorDiv.append(e)}},X4=function(){return c(this,uA).replaceAll(" "," ")},dH=function(I){return I.replaceAll(" "," ")},R4=function(I){const{value:e,fontSize:t,color:i,pageIndex:A}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||I.value!==e||I.fontSize!==t||I.color.some((n,s)=>n!==i[s])||I.pageIndex!==A},M(FC,Zo),sg(FC,"_freeTextDefaultContent",""),sg(FC,"_internalPadding",0),sg(FC,"_defaultColor",null),sg(FC,"_defaultFontSize",10),sg(FC,"_type","freetext"),sg(FC,"_editorType",oI.FREETEXT);let iX=FC;class xg{toSVGPath(){qI("Abstract method `toSVGPath` must be implemented.")}get box(){qI("Abstract getter `box` must be implemented.")}serialize(g,I){qI("Abstract method `serialize` must be implemented.")}static _rescale(g,I,e,t,i,A){A||(A=new Float32Array(g.length));for(let n=0,s=g.length;n<s;n+=2)A[n]=I+g[n]*t,A[n+1]=e+g[n+1]*i;return A}static _rescaleAndSwap(g,I,e,t,i,A){A||(A=new Float32Array(g.length));for(let n=0,s=g.length;n<s;n+=2)A[n]=I+g[n+1]*t,A[n+1]=e+g[n]*i;return A}static _translate(g,I,e,t){t||(t=new Float32Array(g.length));for(let i=0,A=g.length;i<A;i+=2)t[i]=I+g[i],t[i+1]=e+g[i+1];return t}static svgRound(g){return Math.round(g*1e4)}static _normalizePoint(g,I,e,t,i){switch(i){case 90:return[1-I/e,g/t];case 180:return[1-g/e,1-I/t];case 270:return[I/e,1-g/t];default:return[g/e,I/t]}}static _normalizePagePoint(g,I,e){switch(e){case 90:return[1-I,g];case 180:return[1-g,1-I];case 270:return[I,1-g];default:return[g,I]}}static createBezierPoints(g,I,e,t,i,A){return[(g+5*e)/6,(I+5*t)/6,(5*e+i)/6,(5*t+A)/6,(e+i)/2,(t+A)/2]}}sg(xg,"PRECISION",1e-4);const bo=class bo{constructor({x:g,y:I},e,t,i,A,n=0){M(this,je);M(this,GA);M(this,gl,[]);M(this,D0);M(this,k0);M(this,Pl,[]);M(this,fI,new Float32Array(18));M(this,Tm);M(this,Lm);M(this,A2);M(this,n2);M(this,F0);M(this,K0);M(this,dd,[]);y(this,GA,e),y(this,K0,i*t),y(this,k0,A),c(this,fI).set([NaN,NaN,NaN,NaN,g,I],6),y(this,D0,n),y(this,n2,c(bo,l2)*t),y(this,A2,c(bo,FY)*t),y(this,F0,t),c(this,dd).push(g,I)}isEmpty(){return isNaN(c(this,fI)[8])}add({x:g,y:I}){var D;y(this,Tm,g),y(this,Lm,I);const[e,t,i,A]=c(this,GA);let[n,s,o,a]=c(this,fI).subarray(8,12);const d=g-o,m=I-a,Z=Math.hypot(d,m);if(Z<c(this,A2))return!1;const u=Z-c(this,n2),h=u/Z,G=h*d,w=h*m;let B=n,p=s;n=o,s=a,o+=G,a+=w,(D=c(this,dd))==null||D.push(g,I);const Y=-w/u,N=G/u,R=Y*c(this,K0),X=N*c(this,K0);return c(this,fI).set(c(this,fI).subarray(2,8),0),c(this,fI).set([o+R,a+X],4),c(this,fI).set(c(this,fI).subarray(14,18),12),c(this,fI).set([o-R,a-X],16),isNaN(c(this,fI)[6])?(c(this,Pl).length===0&&(c(this,fI).set([n+R,s+X],2),c(this,Pl).push(NaN,NaN,NaN,NaN,(n+R-e)/i,(s+X-t)/A),c(this,fI).set([n-R,s-X],14),c(this,gl).push(NaN,NaN,NaN,NaN,(n-R-e)/i,(s-X-t)/A)),c(this,fI).set([B,p,n,s,o,a],6),!this.isEmpty()):(c(this,fI).set([B,p,n,s,o,a],6),Math.abs(Math.atan2(p-s,B-n)-Math.atan2(w,G))<Math.PI/2?([n,s,o,a]=c(this,fI).subarray(2,6),c(this,Pl).push(NaN,NaN,NaN,NaN,((n+o)/2-e)/i,((s+a)/2-t)/A),[n,s,B,p]=c(this,fI).subarray(14,18),c(this,gl).push(NaN,NaN,NaN,NaN,((B+n)/2-e)/i,((p+s)/2-t)/A),!0):([B,p,n,s,o,a]=c(this,fI).subarray(0,6),c(this,Pl).push(((B+5*n)/6-e)/i,((p+5*s)/6-t)/A,((5*n+o)/6-e)/i,((5*s+a)/6-t)/A,((n+o)/2-e)/i,((s+a)/2-t)/A),[o,a,n,s,B,p]=c(this,fI).subarray(12,18),c(this,gl).push(((B+5*n)/6-e)/i,((p+5*s)/6-t)/A,((5*n+o)/6-e)/i,((5*s+a)/6-t)/A,((n+o)/2-e)/i,((s+a)/2-t)/A),!0))}toSVGPath(){if(this.isEmpty())return"";const g=c(this,Pl),I=c(this,gl);if(isNaN(c(this,fI)[6])&&!this.isEmpty())return H(this,je,M4).call(this);const e=[];e.push(`M${g[4]} ${g[5]}`);for(let t=6;t<g.length;t+=6)isNaN(g[t])?e.push(`L${g[t+4]} ${g[t+5]}`):e.push(`C${g[t]} ${g[t+1]} ${g[t+2]} ${g[t+3]} ${g[t+4]} ${g[t+5]}`);H(this,je,f4).call(this,e);for(let t=I.length-6;t>=6;t-=6)isNaN(I[t])?e.push(`L${I[t+4]} ${I[t+5]}`):e.push(`C${I[t]} ${I[t+1]} ${I[t+2]} ${I[t+3]} ${I[t+4]} ${I[t+5]}`);return H(this,je,H4).call(this,e),e.join(" ")}newFreeDrawOutline(g,I,e,t,i,A){return new hF(g,I,e,t,i,A)}getOutlines(){var d;const g=c(this,Pl),I=c(this,gl),e=c(this,fI),[t,i,A,n]=c(this,GA),s=new Float32Array((((d=c(this,dd))==null?void 0:d.length)??0)+2);for(let m=0,Z=s.length-2;m<Z;m+=2)s[m]=(c(this,dd)[m]-t)/A,s[m+1]=(c(this,dd)[m+1]-i)/n;if(s[s.length-2]=(c(this,Tm)-t)/A,s[s.length-1]=(c(this,Lm)-i)/n,isNaN(e[6])&&!this.isEmpty())return H(this,je,S4).call(this,s);const o=new Float32Array(c(this,Pl).length+24+c(this,gl).length);let a=g.length;for(let m=0;m<a;m+=2){if(isNaN(g[m])){o[m]=o[m+1]=NaN;continue}o[m]=g[m],o[m+1]=g[m+1]}a=H(this,je,k4).call(this,o,a);for(let m=I.length-6;m>=6;m-=6)for(let Z=0;Z<6;Z+=2){if(isNaN(I[m+Z])){o[a]=o[a+1]=NaN,a+=2;continue}o[a]=I[m+Z],o[a+1]=I[m+Z+1],a+=2}return H(this,je,D4).call(this,o,a),this.newFreeDrawOutline(o,s,c(this,GA),c(this,F0),c(this,D0),c(this,k0))}};GA=new WeakMap,gl=new WeakMap,D0=new WeakMap,k0=new WeakMap,Pl=new WeakMap,fI=new WeakMap,Tm=new WeakMap,Lm=new WeakMap,A2=new WeakMap,n2=new WeakMap,F0=new WeakMap,K0=new WeakMap,dd=new WeakMap,l2=new WeakMap,kY=new WeakMap,FY=new WeakMap,je=new WeakSet,sw=function(){const g=c(this,fI).subarray(4,6),I=c(this,fI).subarray(16,18),[e,t,i,A]=c(this,GA);return[(c(this,Tm)+(g[0]-I[0])/2-e)/i,(c(this,Lm)+(g[1]-I[1])/2-t)/A,(c(this,Tm)+(I[0]-g[0])/2-e)/i,(c(this,Lm)+(I[1]-g[1])/2-t)/A]},M4=function(){const[g,I,e,t]=c(this,GA),[i,A,n,s]=H(this,je,sw).call(this);return`M${(c(this,fI)[2]-g)/e} ${(c(this,fI)[3]-I)/t} L${(c(this,fI)[4]-g)/e} ${(c(this,fI)[5]-I)/t} L${i} ${A} L${n} ${s} L${(c(this,fI)[16]-g)/e} ${(c(this,fI)[17]-I)/t} L${(c(this,fI)[14]-g)/e} ${(c(this,fI)[15]-I)/t} Z`},H4=function(g){const I=c(this,gl);g.push(`L${I[4]} ${I[5]} Z`)},f4=function(g){const[I,e,t,i]=c(this,GA),A=c(this,fI).subarray(4,6),n=c(this,fI).subarray(16,18),[s,o,a,d]=H(this,je,sw).call(this);g.push(`L${(A[0]-I)/t} ${(A[1]-e)/i} L${s} ${o} L${a} ${d} L${(n[0]-I)/t} ${(n[1]-e)/i}`)},S4=function(g){const I=c(this,fI),[e,t,i,A]=c(this,GA),[n,s,o,a]=H(this,je,sw).call(this),d=new Float32Array(36);return d.set([NaN,NaN,NaN,NaN,(I[2]-e)/i,(I[3]-t)/A,NaN,NaN,NaN,NaN,(I[4]-e)/i,(I[5]-t)/A,NaN,NaN,NaN,NaN,n,s,NaN,NaN,NaN,NaN,o,a,NaN,NaN,NaN,NaN,(I[16]-e)/i,(I[17]-t)/A,NaN,NaN,NaN,NaN,(I[14]-e)/i,(I[15]-t)/A],0),this.newFreeDrawOutline(d,g,c(this,GA),c(this,F0),c(this,D0),c(this,k0))},D4=function(g,I){const e=c(this,gl);return g.set([NaN,NaN,NaN,NaN,e[4],e[5]],I),I+=6},k4=function(g,I){const e=c(this,fI).subarray(4,6),t=c(this,fI).subarray(16,18),[i,A,n,s]=c(this,GA),[o,a,d,m]=H(this,je,sw).call(this);return g.set([NaN,NaN,NaN,NaN,(e[0]-i)/n,(e[1]-A)/s,NaN,NaN,NaN,NaN,o,a,NaN,NaN,NaN,NaN,d,m,NaN,NaN,NaN,NaN,(t[0]-i)/n,(t[1]-A)/s],I),I+=24},M(bo,l2,8),M(bo,kY,2),M(bo,FY,c(bo,l2)+c(bo,kY));let lB=bo;class hF extends xg{constructor(I,e,t,i,A,n){super();M(this,KY);M(this,z0);M(this,vm,new Float32Array(4));M(this,uo);M(this,s2);M(this,wA);M(this,o2);M(this,We);y(this,We,I),y(this,wA,e),y(this,z0,t),y(this,o2,i),y(this,uo,A),y(this,s2,n),this.firstPoint=[NaN,NaN],this.lastPoint=[NaN,NaN],H(this,KY,F4).call(this,n);const[s,o,a,d]=c(this,vm);for(let m=0,Z=I.length;m<Z;m+=2)I[m]=(I[m]-s)/a,I[m+1]=(I[m+1]-o)/d;for(let m=0,Z=e.length;m<Z;m+=2)e[m]=(e[m]-s)/a,e[m+1]=(e[m+1]-o)/d}toSVGPath(){const I=[`M${c(this,We)[4]} ${c(this,We)[5]}`];for(let e=6,t=c(this,We).length;e<t;e+=6){if(isNaN(c(this,We)[e])){I.push(`L${c(this,We)[e+4]} ${c(this,We)[e+5]}`);continue}I.push(`C${c(this,We)[e]} ${c(this,We)[e+1]} ${c(this,We)[e+2]} ${c(this,We)[e+3]} ${c(this,We)[e+4]} ${c(this,We)[e+5]}`)}return I.push("Z"),I.join(" ")}serialize([I,e,t,i],A){const n=t-I,s=i-e;let o,a;switch(A){case 0:o=xg._rescale(c(this,We),I,i,n,-s),a=xg._rescale(c(this,wA),I,i,n,-s);break;case 90:o=xg._rescaleAndSwap(c(this,We),I,e,n,s),a=xg._rescaleAndSwap(c(this,wA),I,e,n,s);break;case 180:o=xg._rescale(c(this,We),t,e,-n,s),a=xg._rescale(c(this,wA),t,e,-n,s);break;case 270:o=xg._rescaleAndSwap(c(this,We),t,i,-n,-s),a=xg._rescaleAndSwap(c(this,wA),t,i,-n,-s);break}return{outline:Array.from(o),points:[Array.from(a)]}}get box(){return c(this,vm)}newOutliner(I,e,t,i,A,n=0){return new lB(I,e,t,i,A,n)}getNewOutline(I,e){const[t,i,A,n]=c(this,vm),[s,o,a,d]=c(this,z0),m=A*a,Z=n*d,u=t*a+s,h=i*d+o,G=this.newOutliner({x:c(this,wA)[0]*m+u,y:c(this,wA)[1]*Z+h},c(this,z0),c(this,o2),I,c(this,s2),e??c(this,uo));for(let w=2;w<c(this,wA).length;w+=2)G.add({x:c(this,wA)[w]*m+u,y:c(this,wA)[w+1]*Z+h});return G.getOutlines()}}z0=new WeakMap,vm=new WeakMap,uo=new WeakMap,s2=new WeakMap,wA=new WeakMap,o2=new WeakMap,We=new WeakMap,KY=new WeakSet,F4=function(I){const e=c(this,We);let t=e[4],i=e[5];const A=[t,i,t,i];let n=t,s=i,o=t,a=i;const d=I?Math.max:Math.min,m=new Float32Array(4);for(let u=6,h=e.length;u<h;u+=6){const G=e[u+4],w=e[u+5];isNaN(e[u])?(Xg.pointBoundingBox(G,w,A),s>w?(n=G,s=w):s===w&&(n=d(n,G)),a<w?(o=G,a=w):a===w&&(o=d(o,G))):(m.set(Zs,0),Xg.bezierBoundingBox(t,i,...e.slice(u,u+6),m),Xg.rectBoundingBox(...m,A),s>m[1]?(n=m[0],s=m[1]):s===m[1]&&(n=d(n,m[0])),a<m[3]?(o=m[2],a=m[3]):a===m[3]&&(o=d(o,m[2]))),t=G,i=w}const Z=c(this,vm);Z[0]=A[0]-c(this,uo),Z[1]=A[1]-c(this,uo),Z[2]=A[2]-A[0]+2*c(this,uo),Z[3]=A[3]-A[1]+2*c(this,uo),this.firstPoint=[n,s],this.lastPoint=[o,a]};class AX{constructor(g,I=0,e=0,t=!0){M(this,mi);M(this,a2);M(this,d2);M(this,c2);M(this,cd,[]);M(this,Il,[]);const i=Zs.slice(),A=10**-4;for(const{x:h,y:G,width:w,height:B}of g){const p=Math.floor((h-I)/A)*A,Y=Math.ceil((h+w+I)/A)*A,N=Math.floor((G-I)/A)*A,R=Math.ceil((G+B+I)/A)*A,X=[p,N,R,!0],K=[Y,N,R,!1];c(this,cd).push(X,K),Xg.rectBoundingBox(p,N,Y,R,i)}const n=i[2]-i[0]+2*e,s=i[3]-i[1]+2*e,o=i[0]-e,a=i[1]-e;let d=t?-1/0:1/0,m=1/0;const Z=c(this,cd).at(t?-1:-2),u=[Z[0],Z[2]];for(const h of c(this,cd)){const[G,w,B,p]=h;!p&&t?w<m?(m=w,d=G):w===m&&(d=Math.max(d,G)):p&&!t&&(w<m?(m=w,d=G):w===m&&(d=Math.min(d,G))),h[0]=(G-o)/n,h[1]=(w-a)/s,h[2]=(B-a)/s}y(this,a2,new Float32Array([o,a,n,s])),y(this,d2,[d,m]),y(this,c2,u)}getOutlines(){c(this,cd).sort((I,e)=>I[0]-e[0]||I[1]-e[1]||I[2]-e[2]);const g=[];for(const I of c(this,cd))I[3]?(g.push(...H(this,mi,cH).call(this,I)),H(this,mi,z4).call(this,I)):(H(this,mi,J4).call(this,I),g.push(...H(this,mi,cH).call(this,I)));return H(this,mi,K4).call(this,g)}}a2=new WeakMap,d2=new WeakMap,c2=new WeakMap,cd=new WeakMap,Il=new WeakMap,mi=new WeakSet,K4=function(g){const I=[],e=new Set;for(const A of g){const[n,s,o]=A;I.push([n,s,A],[n,o,A])}I.sort((A,n)=>A[1]-n[1]||A[0]-n[0]);for(let A=0,n=I.length;A<n;A+=2){const s=I[A][2],o=I[A+1][2];s.push(o),o.push(s),e.add(s),e.add(o)}const t=[];let i;for(;e.size>0;){const A=e.values().next().value;let[n,s,o,a,d]=A;e.delete(A);let m=n,Z=s;for(i=[n,o],t.push(i);;){let u;if(e.has(a))u=a;else if(e.has(d))u=d;else break;e.delete(u),[n,s,o,a,d]=u,m!==n&&(i.push(m,Z,n,Z===s?s:o),m=n),Z=Z===s?o:s}i.push(m,Z)}return new CQg(t,c(this,a2),c(this,d2),c(this,c2))},Iy=function(g){const I=c(this,Il);let e=0,t=I.length-1;for(;e<=t;){const i=e+t>>1,A=I[i][0];if(A===g)return i;A<g?e=i+1:t=i-1}return t+1},z4=function([,g,I]){const e=H(this,mi,Iy).call(this,g);c(this,Il).splice(e,0,[g,I])},J4=function([,g,I]){const e=H(this,mi,Iy).call(this,g);for(let t=e;t<c(this,Il).length;t++){const[i,A]=c(this,Il)[t];if(i!==g)break;if(i===g&&A===I){c(this,Il).splice(t,1);return}}for(let t=e-1;t>=0;t--){const[i,A]=c(this,Il)[t];if(i!==g)break;if(i===g&&A===I){c(this,Il).splice(t,1);return}}},cH=function(g){const[I,e,t]=g,i=[[I,e,t]],A=H(this,mi,Iy).call(this,t);for(let n=0;n<A;n++){const[s,o]=c(this,Il)[n];for(let a=0,d=i.length;a<d;a++){const[,m,Z]=i[a];if(!(o<=m||Z<=s)){if(m>=s){if(Z>o)i[a][1]=o;else{if(d===1)return[];i.splice(a,1),a--,d--}continue}i[a][2]=s,Z>o&&i.push([I,o,Z])}}}return i};class CQg extends xg{constructor(I,e,t,i){super();M(this,m2);M(this,J0);y(this,J0,I),y(this,m2,e),this.firstPoint=t,this.lastPoint=i}toSVGPath(){const I=[];for(const e of c(this,J0)){let[t,i]=e;I.push(`M${t} ${i}`);for(let A=2;A<e.length;A+=2){const n=e[A],s=e[A+1];n===t?(I.push(`V${s}`),i=s):s===i&&(I.push(`H${n}`),t=n)}I.push("Z")}return I.join(" ")}serialize([I,e,t,i],A){const n=[],s=t-I,o=i-e;for(const a of c(this,J0)){const d=new Array(a.length);for(let m=0;m<a.length;m+=2)d[m]=I+a[m]*s,d[m+1]=i-a[m+1]*o;n.push(d)}return n}get box(){return c(this,m2)}get classNamesForOutlining(){return["highlightOutline"]}}m2=new WeakMap,J0=new WeakMap;class nX extends lB{newFreeDrawOutline(g,I,e,t,i,A){return new eQg(g,I,e,t,i,A)}}class eQg extends hF{newOutliner(g,I,e,t,i,A=0){return new nX(g,I,e,t,i,A)}}const EI=class EI extends RC{constructor(I){super({...I,name:"highlightEditor"});M(this,BI);M(this,x0,null);M(this,r2,0);M(this,ho);M(this,jm,null);M(this,Z2,null);M(this,Ti,null);M(this,b2,null);M(this,u2,0);M(this,Qm,null);M(this,WA,null);M(this,BA,null);M(this,Yt,!1);M(this,T0,null);M(this,L0,null);M(this,jt,null);M(this,v0,"");M(this,cn);M(this,h2,"");this.color=I.color||EI._defaultColor,y(this,cn,I.thickness||EI._defaultThickness),this.opacity=I.opacity||EI._defaultOpacity,y(this,ho,I.boxes||null),y(this,h2,I.methodOfCreation||""),y(this,v0,I.text||""),this._isDraggable=!1,this.defaultL10nId="pdfjs-editor-highlight-editor",I.highlightId>-1?(y(this,Yt,!0),H(this,BI,Cy).call(this,I),H(this,BI,Gr).call(this)):c(this,ho)&&(y(this,x0,I.anchorNode),y(this,r2,I.anchorOffset),y(this,b2,I.focusNode),y(this,u2,I.focusOffset),H(this,BI,mH).call(this),H(this,BI,Gr).call(this),this.rotate(this.rotation)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-highlight-added-alert")}static get _keyboardManager(){const I=EI.prototype;return dI(this,"_keyboardManager",new Wu([[["ArrowLeft","mac+ArrowLeft"],I._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],I._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],I._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],I._moveCaret,{args:[3]}]]))}get telemetryInitialData(){return{action:"added",type:c(this,Yt)?"free_highlight":"highlight",color:this._uiManager.getNonHCMColorName(this.color),thickness:c(this,cn),methodOfCreation:c(this,h2)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.getNonHCMColorName(this.color)}}static computeTelemetryFinalData(I){return{numberOfColors:I.get("color").size}}static initialize(I,e){var t;RC.initialize(I,e),EI._defaultColor||(EI._defaultColor=((t=e.highlightColors)==null?void 0:t.values().next().value)||"#fff066")}static updateDefaultParams(I,e){switch(I){case hI.HIGHLIGHT_COLOR:EI._defaultColor=e;break;case hI.HIGHLIGHT_THICKNESS:EI._defaultThickness=e;break}}translateInPage(I,e){}get toolbarPosition(){return c(this,L0)}get commentButtonPosition(){return c(this,T0)}updateParams(I,e){switch(I){case hI.HIGHLIGHT_COLOR:H(this,BI,x4).call(this,e);break;case hI.HIGHLIGHT_THICKNESS:H(this,BI,T4).call(this,e);break}}static get defaultPropertiesToUpdate(){return[[hI.HIGHLIGHT_COLOR,EI._defaultColor],[hI.HIGHLIGHT_THICKNESS,EI._defaultThickness]]}get propertiesToUpdate(){return[[hI.HIGHLIGHT_COLOR,this.color||EI._defaultColor],[hI.HIGHLIGHT_THICKNESS,c(this,cn)||EI._defaultThickness],[hI.HIGHLIGHT_FREE,c(this,Yt)]]}onUpdatedColor(){var I,e;(I=this.parent)==null||I.drawLayer.updateProperties(c(this,BA),{root:{fill:this.color,"fill-opacity":this.opacity}}),(e=c(this,Z2))==null||e.updateColor(this.color),super.onUpdatedColor()}get toolbarButtons(){return this._uiManager.highlightColors?[["colorPicker",y(this,Z2,new tB({editor:this}))]]:super.toolbarButtons}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(H(this,BI,ty).call(this))}getBaseTranslation(){return[0,0]}getRect(I,e){return super.getRect(I,e,H(this,BI,ty).call(this))}onceAdded(I){this.annotationElementId||this.parent.addUndoableEditor(this),I&&this.div.focus()}remove(){H(this,BI,rH).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(H(this,BI,Gr).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(I){var t;let e=!1;this.parent&&!I?H(this,BI,rH).call(this):I&&(H(this,BI,Gr).call(this,I),e=!this.parent&&((t=this.div)==null?void 0:t.classList.contains("selectedEditor"))),super.setParent(I),this.show(this._isVisible),e&&this.select()}rotate(I){var i,A,n;const{drawLayer:e}=this.parent;let t;c(this,Yt)?(I=(I-this.rotation+360)%360,t=H(i=EI,mn,Xb).call(i,c(this,WA).box,I)):t=H(A=EI,mn,Xb).call(A,[this.x,this.y,this.width,this.height],I),e.updateProperties(c(this,BA),{bbox:t,root:{"data-main-rotation":I}}),e.updateProperties(c(this,jt),{bbox:H(n=EI,mn,Xb).call(n,c(this,Ti).box,I),root:{"data-main-rotation":I}})}render(){if(this.div)return this.div;const I=super.render();c(this,v0)&&(I.setAttribute("aria-label",c(this,v0)),I.setAttribute("role","mark")),c(this,Yt)?I.classList.add("free"):this.div.addEventListener("keydown",H(this,BI,v4).bind(this),{signal:this._uiManager._signal});const e=y(this,Qm,document.createElement("div"));return I.append(e),e.setAttribute("aria-hidden","true"),e.className="internal",e.style.clipPath=c(this,jm),this.setDims(),Rk(this,c(this,Qm),["pointerover","pointerleave"]),this.enableEditing(),I}pointerover(){var I;this.isSelected||(I=this.parent)==null||I.drawLayer.updateProperties(c(this,jt),{rootClass:{hovered:!0}})}pointerleave(){var I;this.isSelected||(I=this.parent)==null||I.drawLayer.updateProperties(c(this,jt),{rootClass:{hovered:!1}})}_moveCaret(I){switch(this.parent.unselect(this),I){case 0:case 2:H(this,BI,ey).call(this,!0);break;case 1:case 3:H(this,BI,ey).call(this,!1);break}}select(){var I;super.select(),c(this,jt)&&((I=this.parent)==null||I.drawLayer.updateProperties(c(this,jt),{rootClass:{hovered:!1,selected:!0}}))}unselect(){var I;super.unselect(),c(this,jt)&&((I=this.parent)==null||I.drawLayer.updateProperties(c(this,jt),{rootClass:{selected:!1}}),c(this,Yt)||H(this,BI,ey).call(this,!1))}get _mustFixPosition(){return!c(this,Yt)}show(I=this._isVisible){super.show(I),this.parent&&(this.parent.drawLayer.updateProperties(c(this,BA),{rootClass:{hidden:!I}}),this.parent.drawLayer.updateProperties(c(this,jt),{rootClass:{hidden:!I}}))}static startHighlighting(I,e,{target:t,x:i,y:A}){const{x:n,y:s,width:o,height:a}=t.getBoundingClientRect(),d=new AbortController,m=I.combinedSignal(d),Z=u=>{d.abort(),H(this,mn,U4).call(this,I,u)};window.addEventListener("blur",Z,{signal:m}),window.addEventListener("pointerup",Z,{signal:m}),window.addEventListener("pointerdown",qC,{capture:!0,passive:!1,signal:m}),window.addEventListener("contextmenu",xA,{signal:m}),t.addEventListener("pointermove",H(this,mn,O4).bind(this,I),{signal:m}),this._freeHighlight=new nX({x:i,y:A},[n,s,o,a],I.scale,this._defaultThickness/2,e,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=I.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static async deserialize(I,e,t){var G,w,B,p;let i=null;if(I instanceof bF){const{data:{quadPoints:Y,rect:N,rotation:R,id:X,color:K,opacity:D,popupRef:k,richText:z,contentsObj:v,creationDate:O,modificationDate:Cg},parent:{page:{pageNumber:U}}}=I;i=I={annotationType:oI.HIGHLIGHT,color:Array.from(K),opacity:D,quadPoints:Y,boxes:null,pageIndex:U-1,rect:N.slice(0),rotation:R,annotationElementId:X,id:X,deleted:!1,popupRef:k,richText:z,comment:(v==null?void 0:v.str)||null,creationDate:O,modificationDate:Cg}}else if(I instanceof eX){const{data:{inkLists:Y,rect:N,rotation:R,id:X,color:K,borderStyle:{rawWidth:D},popupRef:k,richText:z,contentsObj:v,creationDate:O,modificationDate:Cg},parent:{page:{pageNumber:U}}}=I;i=I={annotationType:oI.HIGHLIGHT,color:Array.from(K),thickness:D,inkLists:Y,boxes:null,pageIndex:U-1,rect:N.slice(0),rotation:R,annotationElementId:X,id:X,deleted:!1,popupRef:k,richText:z,comment:(v==null?void 0:v.str)||null,creationDate:O,modificationDate:Cg}}const{color:A,quadPoints:n,inkLists:s,outlines:o,opacity:a}=I,d=await super.deserialize(I,e,t);d.color=Xg.makeHexColor(...A),d.opacity=a||1,s&&y(d,cn,I.thickness),d._initialData=i,I.comment&&d.setCommentData(I);const[m,Z]=d.pageDimensions,[u,h]=d.pageTranslation;if(n){const Y=y(d,ho,[]);for(let N=0;N<n.length;N+=8)Y.push({x:(n[N]-u)/m,y:1-(n[N+1]-h)/Z,width:(n[N+2]-n[N])/m,height:(n[N+1]-n[N+5])/Z});H(G=d,BI,mH).call(G),H(w=d,BI,Gr).call(w),d.rotate(d.rotation)}else if(s||o){y(d,Yt,!0);const Y=(s||o.points)[0],N={x:Y[0]-u,y:Z-(Y[1]-h)},R=new nX(N,[0,0,m,Z],1,c(d,cn)/2,!0,.001);for(let D=0,k=Y.length;D<k;D+=2)N.x=Y[D]-u,N.y=Z-(Y[D+1]-h),R.add(N);const{id:X,clipPathId:K}=e.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:d.color,"fill-opacity":d._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:R.toSVGPath()}},!0,!0);H(B=d,BI,Cy).call(B,{highlightOutlines:R.getOutlines(),highlightId:X,clipPathId:K}),H(p=d,BI,Gr).call(p),d.rotate(d.parentRotation)}return d}serialize(I=!1){if(this.isEmpty()||I)return null;if(this.deleted)return this.serializeDeleted();const e=RC._colorManager.convert(this._uiManager.getNonHCMColor(this.color)),t=super.serialize(I);return Object.assign(t,{color:e,opacity:this.opacity,thickness:c(this,cn),quadPoints:H(this,BI,j4).call(this),outlines:H(this,BI,Q4).call(this,t.rect)}),this.addComment(t),this.annotationElementId&&!H(this,BI,E4).call(this,t)?null:(t.id=this.annotationElementId,t)}renderAnnotationElement(I){return this.deleted?(I.hide(),null):(I.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}static canCreateNewEmptyEditor(){return!1}};x0=new WeakMap,r2=new WeakMap,ho=new WeakMap,jm=new WeakMap,Z2=new WeakMap,Ti=new WeakMap,b2=new WeakMap,u2=new WeakMap,Qm=new WeakMap,WA=new WeakMap,BA=new WeakMap,Yt=new WeakMap,T0=new WeakMap,L0=new WeakMap,jt=new WeakMap,v0=new WeakMap,cn=new WeakMap,h2=new WeakMap,BI=new WeakSet,mH=function(){const I=new AX(c(this,ho),.001);y(this,WA,I.getOutlines()),[this.x,this.y,this.width,this.height]=c(this,WA).box;const e=new AX(c(this,ho),.0025,.001,this._uiManager.direction==="ltr");y(this,Ti,e.getOutlines());const{firstPoint:t}=c(this,WA);y(this,T0,[(t[0]-this.x)/this.width,(t[1]-this.y)/this.height]);const{lastPoint:i}=c(this,Ti);y(this,L0,[(i[0]-this.x)/this.width,(i[1]-this.y)/this.height])},Cy=function({highlightOutlines:I,highlightId:e,clipPathId:t}){var m,Z;if(y(this,WA,I),y(this,Ti,I.getNewOutline(c(this,cn)/2+1.5,.0025)),e>=0)y(this,BA,e),y(this,jm,t),this.parent.drawLayer.finalizeDraw(e,{bbox:I.box,path:{d:I.toSVGPath()}}),y(this,jt,this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:c(this,Ti).box,path:{d:c(this,Ti).toSVGPath()}},!0));else if(this.parent){const u=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(c(this,BA),{bbox:H(m=EI,mn,Xb).call(m,c(this,WA).box,(u-this.rotation+360)%360),path:{d:I.toSVGPath()}}),this.parent.drawLayer.updateProperties(c(this,jt),{bbox:H(Z=EI,mn,Xb).call(Z,c(this,Ti).box,u),path:{d:c(this,Ti).toSVGPath()}})}const[A,n,s,o]=I.box;switch(this.rotation){case 0:this.x=A,this.y=n,this.width=s,this.height=o;break;case 90:{const[u,h]=this.parentDimensions;this.x=n,this.y=1-A,this.width=s*h/u,this.height=o*u/h;break}case 180:this.x=1-A,this.y=1-n,this.width=s,this.height=o;break;case 270:{const[u,h]=this.parentDimensions;this.x=1-n,this.y=A,this.width=s*h/u,this.height=o*u/h;break}}const{firstPoint:a}=I;y(this,T0,[(a[0]-A)/s,(a[1]-n)/o]);const{lastPoint:d}=c(this,Ti);y(this,L0,[(d[0]-A)/s,(d[1]-n)/o])},x4=function(I){const e=(A,n)=>{this.color=A,this.opacity=n,this.onUpdatedColor()},t=this.color,i=this.opacity;this.addCommands({cmd:e.bind(this,I,EI._defaultOpacity),undo:e.bind(this,t,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:hI.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.getNonHCMColorName(I)},!0)},T4=function(I){const e=c(this,cn),t=i=>{y(this,cn,i),H(this,BI,L4).call(this,i)};this.addCommands({cmd:t.bind(this,I),undo:t.bind(this,e),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:hI.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:I},!0)},L4=function(I){c(this,Yt)&&(H(this,BI,Cy).call(this,{highlightOutlines:c(this,WA).getNewOutline(I/2)}),this.fixAndSetPosition(),this.setDims())},rH=function(){c(this,BA)===null||!this.parent||(this.parent.drawLayer.remove(c(this,BA)),y(this,BA,null),this.parent.drawLayer.remove(c(this,jt)),y(this,jt,null))},Gr=function(I=this.parent){c(this,BA)===null&&({id:Je(this,BA)._,clipPathId:Je(this,jm)._}=I.drawLayer.draw({bbox:c(this,WA).box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":this.opacity},rootClass:{highlight:!0,free:c(this,Yt)},path:{d:c(this,WA).toSVGPath()}},!1,!0),y(this,jt,I.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:c(this,Yt)},bbox:c(this,Ti).box,path:{d:c(this,Ti).toSVGPath()}},c(this,Yt))),c(this,Qm)&&(c(this,Qm).style.clipPath=c(this,jm)))},mn=new WeakSet,Xb=function([I,e,t,i],A){switch(A){case 90:return[1-e-i,I,i,t];case 180:return[1-I-t,1-e-i,t,i];case 270:return[e,1-I-t,i,t]}return[I,e,t,i]},v4=function(I){EI._keyboardManager.exec(this,I)},ey=function(I){if(!c(this,x0))return;const e=window.getSelection();I?e.setPosition(c(this,x0),c(this,r2)):e.setPosition(c(this,b2),c(this,u2))},ty=function(){return c(this,Yt)?this.rotation:0},j4=function(){if(c(this,Yt))return null;const[I,e]=this.pageDimensions,[t,i]=this.pageTranslation,A=c(this,ho),n=new Float32Array(A.length*8);let s=0;for(const{x:o,y:a,width:d,height:m}of A){const Z=o*I+t,u=(1-a)*e+i;n[s]=n[s+4]=Z,n[s+1]=n[s+3]=u,n[s+2]=n[s+6]=Z+d*I,n[s+5]=n[s+7]=u-m*e,s+=8}return n},Q4=function(I){return c(this,WA).serialize(I,H(this,BI,ty).call(this))},O4=function(I,e){this._freeHighlight.add(e)&&I.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})},U4=function(I,e){this._freeHighlight.isEmpty()?I.drawLayer.remove(this._freeHighlightId):I.createAndAddNewEditor(e,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""},E4=function(I){const{color:e}=this._initialData;return this.hasEditedComment||I.color.some((t,i)=>t!==e[i])},M(EI,mn),sg(EI,"_defaultColor",null),sg(EI,"_defaultOpacity",1),sg(EI,"_defaultThickness",12),sg(EI,"_type","highlight"),sg(EI,"_editorType",oI.HIGHLIGHT),sg(EI,"_freeHighlightId",-1),sg(EI,"_freeHighlight",null),sg(EI,"_freeHighlightClipId","");let sB=EI;class GF{constructor(){M(this,Om,Object.create(null))}updateProperty(g,I){this[g]=I,this.updateSVGProperty(g,I)}updateProperties(g){if(g)for(const[I,e]of Object.entries(g))I.startsWith("_")||this.updateProperty(I,e)}updateSVGProperty(g,I){c(this,Om)[g]=I}toSVGProperties(){const g=c(this,Om);return y(this,Om,Object.create(null)),{root:g}}reset(){y(this,Om,Object.create(null))}updateAll(g=this){this.updateProperties(g)}clone(){qI("Not implemented")}}Om=new WeakMap;const zI=class zI extends RC{constructor(I){super(I);M(this,LI);M(this,ri,null);M(this,j0);sg(this,"_colorPicker",null);sg(this,"_drawId",null);y(this,j0,I.mustBeCommitted||!1),this._addOutlines(I)}onUpdatedColor(){var I;(I=this._colorPicker)==null||I.update(this.color),super.onUpdatedColor()}onUpdatedOpacity(){var I,e;(e=(I=this._colorPicker)==null?void 0:I.updateOpacity)==null||e.call(I,this.opacity)}_addOutlines(I){I.drawOutlines&&(H(this,LI,ZH).call(this,I),H(this,LI,ow).call(this))}static _mergeSVGProperties(I,e){const t=new Set(Object.keys(I));for(const[i,A]of Object.entries(e))t.has(i)?Object.assign(I[i],A):I[i]=A;return I}static getDefaultDrawingOptions(I){qI("Not implemented")}static get typesMap(){qI("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(I,e){const t=this.typesMap.get(I);t&&this._defaultDrawingOptions.updateProperty(t,e),this._currentParent&&(c(zI,It).updateProperty(t,e),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(I,e){const t=this.constructor.typesMap.get(I);t&&this._updateProperty(I,t,e)}static get defaultPropertiesToUpdate(){const I=[],e=this._defaultDrawingOptions;for(const[t,i]of this.typesMap)I.push([t,e[i]]);return I}get propertiesToUpdate(){const I=[],{_drawingOptions:e}=this;for(const[t,i]of this.constructor.typesMap)I.push([t,e[i]]);return I}_updateProperty(I,e,t){const i=this._drawingOptions,A=i[e],n=s=>{var a;i.updateProperty(e,s);const o=c(this,ri).updateProperty(e,s);o&&H(this,LI,aw).call(this,o),(a=this.parent)==null||a.drawLayer.updateProperties(this._drawId,i.toSVGProperties()),I===this.colorType?this.onUpdatedColor():I===this.opacityType&&this.onUpdatedOpacity()};this.addCommands({cmd:n.bind(this,t),undo:n.bind(this,A),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:I,overwriteIfSameType:!0,keepUndo:!0})}_updateColorAndOpacity(I,e){const t=this.constructor.typesMap.get(this.colorType),i=this.constructor.typesMap.get(this.opacityType),A=this._drawingOptions,n=A[t],s=A[i],o=(a,d)=>{var m;A.updateProperty(t,a),A.updateProperty(i,d),c(this,ri).updateProperty(t,a),c(this,ri).updateProperty(i,d),(m=this.parent)==null||m.drawLayer.updateProperties(this._drawId,A.toSVGProperties()),this.onUpdatedColor(),this.onUpdatedOpacity()};this.addCommands({cmd:o.bind(this,I,e),undo:o.bind(this,n,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:hI.INK_COLOR_AND_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,zI._mergeSVGProperties(c(this,ri).getPathResizingSVGProperties(H(this,LI,iy).call(this)),{bbox:H(this,LI,Rb).call(this)}))}_onResized(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,zI._mergeSVGProperties(c(this,ri).getPathResizedSVGProperties(H(this,LI,iy).call(this)),{bbox:H(this,LI,Rb).call(this)}))}_onTranslating(I,e){var t;(t=this.parent)==null||t.drawLayer.updateProperties(this._drawId,{bbox:H(this,LI,Rb).call(this)})}_onTranslated(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,zI._mergeSVGProperties(c(this,ri).getPathTranslatedSVGProperties(H(this,LI,iy).call(this),this.parentDimensions),{bbox:H(this,LI,Rb).call(this)}))}_onStartDragging(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(I){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,c(this,j0)&&(y(this,j0,!1),this.commit(),this.parent.setSelected(this),I&&this.isOnScreen&&this.div.focus())}remove(){H(this,LI,uH).call(this),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(H(this,LI,ow).call(this),H(this,LI,aw).call(this,c(this,ri).box),this.isAttachedToDOM||this.parent.add(this)))}setParent(I){var t;let e=!1;this.parent&&!I?(this._uiManager.removeShouldRescale(this),H(this,LI,uH).call(this)):I&&(this._uiManager.addShouldRescale(this),H(this,LI,ow).call(this,I),e=!this.parent&&((t=this.div)==null?void 0:t.classList.contains("selectedEditor"))),super.setParent(I),e&&this.select()}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,zI._mergeSVGProperties({bbox:H(this,LI,Rb).call(this)},c(this,ri).updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&H(this,LI,aw).call(this,c(this,ri).updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let I,e;this._isCopy&&(I=this.x,e=this.y);const t=super.render();t.classList.add("draw");const i=document.createElement("div");return t.append(i),i.setAttribute("aria-hidden","true"),i.className="internal",this.setDims(),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(I,e),t}static createDrawerInstance(I,e,t,i,A){qI("Not implemented")}static startDrawing(I,e,t,i){var G;const{target:A,offsetX:n,offsetY:s,pointerId:o,pointerType:a}=i;if(Dt.isInitializedAndDifferentPointerType(a))return;const{viewport:{rotation:d}}=I,{width:m,height:Z}=A.getBoundingClientRect(),u=y(zI,Um,new AbortController),h=I.combinedSignal(u);if(Dt.setPointer(a,o),window.addEventListener("pointerup",w=>{Dt.isSamePointerIdOrRemove(w.pointerId)&&this._endDraw(w)},{signal:h}),window.addEventListener("pointercancel",w=>{Dt.isSamePointerIdOrRemove(w.pointerId)&&this._currentParent.endDrawingSession()},{signal:h}),window.addEventListener("pointerdown",w=>{Dt.isSamePointerType(w.pointerType)&&(Dt.initializeAndAddPointerId(w.pointerId),c(zI,It).isCancellable()&&(c(zI,It).removeLastElement(),c(zI,It).isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:h}),window.addEventListener("contextmenu",xA,{signal:h}),A.addEventListener("pointermove",this._drawMove.bind(this),{signal:h}),A.addEventListener("touchmove",w=>{Dt.isSameTimeStamp(w.timeStamp)&&qC(w)},{signal:h}),I.toggleDrawing(),(G=e._editorUndoBar)==null||G.hide(),c(zI,It)){I.drawLayer.updateProperties(this._currentDrawId,c(zI,It).startNew(n,s,m,Z,d));return}e.updateUIForDefaultProperties(this),y(zI,It,this.createDrawerInstance(n,s,m,Z,d)),y(zI,Em,this.getDefaultDrawingOptions()),this._currentParent=I,{id:this._currentDrawId}=I.drawLayer.draw(this._mergeSVGProperties(c(zI,Em).toSVGProperties(),c(zI,It).defaultSVGProperties),!0,!1)}static _drawMove(I){if(Dt.isSameTimeStamp(I.timeStamp),!c(zI,It))return;const{offsetX:e,offsetY:t,pointerId:i}=I;if(Dt.isSamePointerId(i)){if(Dt.isUsingMultiplePointers()){this._endDraw(I);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,c(zI,It).add(e,t)),Dt.setTimeStamp(I.timeStamp),qC(I)}}static _cleanup(I){I&&(this._currentDrawId=-1,this._currentParent=null,y(zI,It,null),y(zI,Em,null),Dt.clearTimeStamp()),c(zI,Um)&&(c(zI,Um).abort(),y(zI,Um,null),Dt.clearPointerIds())}static _endDraw(I){const e=this._currentParent;if(e){if(e.toggleDrawing(!0),this._cleanup(!1),(I==null?void 0:I.target)===e.div&&e.drawLayer.updateProperties(this._currentDrawId,c(zI,It).end(I.offsetX,I.offsetY)),this.supportMultipleDrawings){const t=c(zI,It),i=this._currentDrawId,A=t.getLastElement();e.addCommands({cmd:()=>{e.drawLayer.updateProperties(i,t.setLastElement(A))},undo:()=>{e.drawLayer.updateProperties(i,t.removeLastElement())},mustExec:!1,type:hI.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(I){const e=this._currentParent;if(!e)return null;if(e.toggleDrawing(!0),e.cleanUndoStack(hI.DRAW_STEP),!c(zI,It).isEmpty()){const{pageDimensions:[t,i],scale:A}=e,n=e.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:c(zI,It).getOutlines(t*A,i*A,A,this._INNER_MARGIN),drawingOptions:c(zI,Em),mustBeCommitted:!I});return this._cleanup(!0),n}return e.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(I){}static deserializeDraw(I,e,t,i,A,n){qI("Not implemented")}static async deserialize(I,e,t){var d,m;const{rawDims:{pageWidth:i,pageHeight:A,pageX:n,pageY:s}}=e.viewport,o=this.deserializeDraw(n,s,i,A,this._INNER_MARGIN,I),a=await super.deserialize(I,e,t);return a.createDrawingOptions(I),H(d=a,LI,ZH).call(d,{drawOutlines:o}),H(m=a,LI,ow).call(m),a.onScaleChanging(),a.rotate(),a}serializeDraw(I){const[e,t]=this.pageTranslation,[i,A]=this.pageDimensions;return c(this,ri).serialize([e,t,i,A],I)}renderAnnotationElement(I){return I.updateEdited({rect:this.getPDFRect()}),null}static canCreateNewEmptyEditor(){return!1}};ri=new WeakMap,j0=new WeakMap,It=new WeakMap,Um=new WeakMap,Em=new WeakMap,LI=new WeakSet,ZH=function({drawOutlines:I,drawId:e,drawingOptions:t}){y(this,ri,I),this._drawingOptions||(this._drawingOptions=t),this.annotationElementId||this._uiManager.a11yAlert(`pdfjs-editor-${this.editorType}-added-alert`),e>=0?(this._drawId=e,this.parent.drawLayer.finalizeDraw(e,I.defaultProperties)):this._drawId=H(this,LI,bH).call(this,I,this.parent),H(this,LI,aw).call(this,I.box)},bH=function(I,e){const{id:t}=e.drawLayer.draw(zI._mergeSVGProperties(this._drawingOptions.toSVGProperties(),I.defaultSVGProperties),!1,!1);return t},uH=function(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())},ow=function(I=this.parent){if(!(this._drawId!==null&&this.parent===I)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,I.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=H(this,LI,bH).call(this,c(this,ri),I)}},P4=function([I,e,t,i]){const{parentDimensions:[A,n],rotation:s}=this;switch(s){case 90:return[e,1-I,t*(n/A),i*(A/n)];case 180:return[1-I,1-e,t,i];case 270:return[1-e,I,t*(n/A),i*(A/n)];default:return[I,e,t,i]}},iy=function(){const{x:I,y:e,width:t,height:i,parentDimensions:[A,n],rotation:s}=this;switch(s){case 90:return[1-e,I,t*(A/n),i*(n/A)];case 180:return[1-I,1-e,t,i];case 270:return[e,1-I,t*(A/n),i*(n/A)];default:return[I,e,t,i]}},aw=function(I){[this.x,this.y,this.width,this.height]=H(this,LI,P4).call(this,I),this.div&&(this.fixAndSetPosition(),this.setDims()),this._onResized()},Rb=function(){const{x:I,y:e,width:t,height:i,rotation:A,parentRotation:n,parentDimensions:[s,o]}=this;switch((A*4+n)/90){case 1:return[1-e-i,I,i,t];case 2:return[1-I-t,1-e-i,t,i];case 3:return[e,1-I-t,i,t];case 4:return[I,e-t*(s/o),i*(o/s),t*(s/o)];case 5:return[1-e,I,t*(s/o),i*(o/s)];case 6:return[1-I-i*(o/s),1-e,i*(o/s),t*(s/o)];case 7:return[e-t*(s/o),1-I-i*(o/s),t*(s/o),i*(o/s)];case 8:return[I-t,e-i,t,i];case 9:return[1-e,I-t,i,t];case 10:return[1-I,1-e,t,i];case 11:return[e-i,1-I,i,t];case 12:return[I-i*(o/s),e,i*(o/s),t*(s/o)];case 13:return[1-e-t*(s/o),I-i*(o/s),t*(s/o),i*(o/s)];case 14:return[1-I,1-e-t*(s/o),i*(o/s),t*(s/o)];case 15:return[e,1-I,t*(s/o),i*(o/s)];default:return[I,e,t,i]}},sg(zI,"_currentDrawId",-1),sg(zI,"_currentParent",null),M(zI,It,null),M(zI,Um,null),M(zI,Em,null),sg(zI,"_INNER_MARGIN",3);let oB=zI;class tQg{constructor(g,I,e,t,i,A){M(this,O0);M(this,_l,new Float64Array(6));M(this,Ct);M(this,et);M(this,Pm);M(this,Q0);M(this,Zi);M(this,yt,"");M(this,rn,0);M(this,_m,new Mu);M(this,qm);M(this,$m);y(this,qm,e),y(this,$m,t),y(this,Pm,i),y(this,Q0,A),[g,I]=H(this,O0,Ay).call(this,g,I);const n=y(this,Ct,[NaN,NaN,NaN,NaN,g,I]);y(this,Zi,[g,I]),y(this,et,[{line:n,points:c(this,Zi)}]),c(this,_l).set(n,0)}updateProperty(g,I){g==="stroke-width"&&y(this,Q0,I)}isEmpty(){return!c(this,et)||c(this,et).length===0}isCancellable(){return c(this,Zi).length<=10}add(g,I){[g,I]=H(this,O0,Ay).call(this,g,I);const[e,t,i,A]=c(this,_l).subarray(2,6),n=g-i,s=I-A;return Math.hypot(c(this,qm)*n,c(this,$m)*s)<=2?null:(c(this,Zi).push(g,I),isNaN(e)?(c(this,_l).set([i,A,g,I],2),c(this,Ct).push(NaN,NaN,NaN,NaN,g,I),{path:{d:this.toSVGPath()}}):(isNaN(c(this,_l)[0])&&c(this,Ct).splice(6,6),c(this,_l).set([e,t,i,A,g,I],0),c(this,Ct).push(...xg.createBezierPoints(e,t,i,A,g,I)),{path:{d:this.toSVGPath()}}))}end(g,I){const e=this.add(g,I);return e||(c(this,Zi).length===2?{path:{d:this.toSVGPath()}}:null)}startNew(g,I,e,t,i){y(this,qm,e),y(this,$m,t),y(this,Pm,i),[g,I]=H(this,O0,Ay).call(this,g,I);const A=y(this,Ct,[NaN,NaN,NaN,NaN,g,I]);y(this,Zi,[g,I]);const n=c(this,et).at(-1);return n&&(n.line=new Float32Array(n.line),n.points=new Float32Array(n.points)),c(this,et).push({line:A,points:c(this,Zi)}),c(this,_l).set(A,0),y(this,rn,0),this.toSVGPath(),null}getLastElement(){return c(this,et).at(-1)}setLastElement(g){return c(this,et)?(c(this,et).push(g),y(this,Ct,g.line),y(this,Zi,g.points),y(this,rn,0),{path:{d:this.toSVGPath()}}):c(this,_m).setLastElement(g)}removeLastElement(){if(!c(this,et))return c(this,_m).removeLastElement();c(this,et).pop(),y(this,yt,"");for(let g=0,I=c(this,et).length;g<I;g++){const{line:e,points:t}=c(this,et)[g];y(this,Ct,e),y(this,Zi,t),y(this,rn,0),this.toSVGPath()}return{path:{d:c(this,yt)}}}toSVGPath(){const g=xg.svgRound(c(this,Ct)[4]),I=xg.svgRound(c(this,Ct)[5]);if(c(this,Zi).length===2)return y(this,yt,`${c(this,yt)} M ${g} ${I} Z`),c(this,yt);if(c(this,Zi).length<=6){const t=c(this,yt).lastIndexOf("M");y(this,yt,`${c(this,yt).slice(0,t)} M ${g} ${I}`),y(this,rn,6)}if(c(this,Zi).length===4){const t=xg.svgRound(c(this,Ct)[10]),i=xg.svgRound(c(this,Ct)[11]);return y(this,yt,`${c(this,yt)} L ${t} ${i}`),y(this,rn,12),c(this,yt)}const e=[];c(this,rn)===0&&(e.push(`M ${g} ${I}`),y(this,rn,6));for(let t=c(this,rn),i=c(this,Ct).length;t<i;t+=6){const[A,n,s,o,a,d]=c(this,Ct).slice(t,t+6).map(xg.svgRound);e.push(`C${A} ${n} ${s} ${o} ${a} ${d}`)}return y(this,yt,c(this,yt)+e.join(" ")),y(this,rn,c(this,Ct).length),c(this,yt)}getOutlines(g,I,e,t){const i=c(this,et).at(-1);return i.line=new Float32Array(i.line),i.points=new Float32Array(i.points),c(this,_m).build(c(this,et),g,I,e,c(this,Pm),c(this,Q0),t),y(this,_l,null),y(this,Ct,null),y(this,et,null),y(this,yt,null),c(this,_m)}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}_l=new WeakMap,Ct=new WeakMap,et=new WeakMap,Pm=new WeakMap,Q0=new WeakMap,Zi=new WeakMap,yt=new WeakMap,rn=new WeakMap,_m=new WeakMap,qm=new WeakMap,$m=new WeakMap,O0=new WeakSet,Ay=function(g,I){return xg._normalizePoint(g,I,c(this,qm),c(this,$m),c(this,Pm))};class Mu extends xg{constructor(){super(...arguments);M(this,Nt);M(this,bi);M(this,G2,0);M(this,w2);M(this,pA);M(this,ql);M(this,$l);M(this,U0);M(this,E0);M(this,gr)}build(I,e,t,i,A,n,s){y(this,ql,e),y(this,$l,t),y(this,U0,i),y(this,E0,A),y(this,gr,n),y(this,w2,s??0),y(this,pA,I),H(this,Nt,q4).call(this)}get thickness(){return c(this,gr)}setLastElement(I){return c(this,pA).push(I),{path:{d:this.toSVGPath()}}}removeLastElement(){return c(this,pA).pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const I=[];for(const{line:e}of c(this,pA)){if(I.push(`M${xg.svgRound(e[4])} ${xg.svgRound(e[5])}`),e.length===6){I.push("Z");continue}if(e.length===12&&isNaN(e[6])){I.push(`L${xg.svgRound(e[10])} ${xg.svgRound(e[11])}`);continue}for(let t=6,i=e.length;t<i;t+=6){const[A,n,s,o,a,d]=e.subarray(t,t+6).map(xg.svgRound);I.push(`C${A} ${n} ${s} ${o} ${a} ${d}`)}}return I.join("")}serialize([I,e,t,i],A){const n=[],s=[],[o,a,d,m]=H(this,Nt,_4).call(this);let Z,u,h,G,w,B,p,Y,N;switch(c(this,E0)){case 0:N=xg._rescale,Z=I,u=e+i,h=t,G=-i,w=I+o*t,B=e+(1-a-m)*i,p=I+(o+d)*t,Y=e+(1-a)*i;break;case 90:N=xg._rescaleAndSwap,Z=I,u=e,h=t,G=i,w=I+a*t,B=e+o*i,p=I+(a+m)*t,Y=e+(o+d)*i;break;case 180:N=xg._rescale,Z=I+t,u=e,h=-t,G=i,w=I+(1-o-d)*t,B=e+a*i,p=I+(1-o)*t,Y=e+(a+m)*i;break;case 270:N=xg._rescaleAndSwap,Z=I+t,u=e+i,h=-t,G=-i,w=I+(1-a-m)*t,B=e+(1-o-d)*i,p=I+(1-a)*t,Y=e+(1-o)*i;break}for(const{line:R,points:X}of c(this,pA))n.push(N(R,Z,u,h,G,A?new Array(R.length):null)),s.push(N(X,Z,u,h,G,A?new Array(X.length):null));return{lines:n,points:s,rect:[w,B,p,Y]}}static deserialize(I,e,t,i,A,{paths:{lines:n,points:s},rotation:o,thickness:a}){const d=[];let m,Z,u,h,G;switch(o){case 0:G=xg._rescale,m=-I/t,Z=e/i+1,u=1/t,h=-1/i;break;case 90:G=xg._rescaleAndSwap,m=-e/i,Z=-I/t,u=1/i,h=1/t;break;case 180:G=xg._rescale,m=I/t+1,Z=-e/i,u=-1/t,h=1/i;break;case 270:G=xg._rescaleAndSwap,m=e/i+1,Z=I/t+1,u=-1/i,h=-1/t;break}if(!n){n=[];for(const B of s){const p=B.length;if(p===2){n.push(new Float32Array([NaN,NaN,NaN,NaN,B[0],B[1]]));continue}if(p===4){n.push(new Float32Array([NaN,NaN,NaN,NaN,B[0],B[1],NaN,NaN,NaN,NaN,B[2],B[3]]));continue}const Y=new Float32Array(3*(p-2));n.push(Y);let[N,R,X,K]=B.subarray(0,4);Y.set([NaN,NaN,NaN,NaN,N,R],0);for(let D=4;D<p;D+=2){const k=B[D],z=B[D+1];Y.set(xg.createBezierPoints(N,R,X,K,k,z),(D-2)*3),[N,R,X,K]=[X,K,k,z]}}}for(let B=0,p=n.length;B<p;B++)d.push({line:G(n[B].map(Y=>Y??NaN),m,Z,u,h),points:G(s[B].map(Y=>Y??NaN),m,Z,u,h)});const w=new this.prototype.constructor;return w.build(d,t,i,1,o,a,A),w}get box(){return c(this,bi)}updateProperty(I,e){return I==="stroke-width"?H(this,Nt,$4).call(this,e):null}updateParentDimensions([I,e],t){const[i,A]=H(this,Nt,Jo).call(this);y(this,ql,I),y(this,$l,e),y(this,U0,t);const[n,s]=H(this,Nt,Jo).call(this),o=n-i,a=s-A,d=c(this,bi);return d[0]-=o,d[1]-=a,d[2]+=2*o,d[3]+=2*a,d}updateRotation(I){return y(this,G2,I),{path:{transform:this.rotationTransform}}}get viewBox(){return c(this,bi).map(xg.svgRound).join(" ")}get defaultProperties(){const[I,e]=c(this,bi);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${xg.svgRound(I)} ${xg.svgRound(e)}`}}}get rotationTransform(){const[,,I,e]=c(this,bi);let t=0,i=0,A=0,n=0,s=0,o=0;switch(c(this,G2)){case 90:i=e/I,A=-I/e,s=I;break;case 180:t=-1,n=-1,s=I,o=e;break;case 270:i=-e/I,A=I/e,o=e;break;default:return""}return`matrix(${t} ${i} ${A} ${n} ${xg.svgRound(s)} ${xg.svgRound(o)})`}getPathResizingSVGProperties([I,e,t,i]){const[A,n]=H(this,Nt,Jo).call(this),[s,o,a,d]=c(this,bi);if(Math.abs(a-A)<=xg.PRECISION||Math.abs(d-n)<=xg.PRECISION){const G=I+t/2-(s+a/2),w=e+i/2-(o+d/2);return{path:{"transform-origin":`${xg.svgRound(I)} ${xg.svgRound(e)}`,transform:`${this.rotationTransform} translate(${G} ${w})`}}}const m=(t-2*A)/(a-2*A),Z=(i-2*n)/(d-2*n),u=a/t,h=d/i;return{path:{"transform-origin":`${xg.svgRound(s)} ${xg.svgRound(o)}`,transform:`${this.rotationTransform} scale(${u} ${h}) translate(${xg.svgRound(A)} ${xg.svgRound(n)}) scale(${m} ${Z}) translate(${xg.svgRound(-A)} ${xg.svgRound(-n)})`}}}getPathResizedSVGProperties([I,e,t,i]){const[A,n]=H(this,Nt,Jo).call(this),s=c(this,bi),[o,a,d,m]=s;if(s[0]=I,s[1]=e,s[2]=t,s[3]=i,Math.abs(d-A)<=xg.PRECISION||Math.abs(m-n)<=xg.PRECISION){const w=I+t/2-(o+d/2),B=e+i/2-(a+m/2);for(const{line:p,points:Y}of c(this,pA))xg._translate(p,w,B,p),xg._translate(Y,w,B,Y);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${xg.svgRound(I)} ${xg.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}const Z=(t-2*A)/(d-2*A),u=(i-2*n)/(m-2*n),h=-Z*(o+A)+I+A,G=-u*(a+n)+e+n;if(Z!==1||u!==1||h!==0||G!==0)for(const{line:w,points:B}of c(this,pA))xg._rescale(w,h,G,Z,u,w),xg._rescale(B,h,G,Z,u,B);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${xg.svgRound(I)} ${xg.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([I,e],t){const[i,A]=t,n=c(this,bi),s=I-n[0],o=e-n[1];if(c(this,ql)===i&&c(this,$l)===A)for(const{line:a,points:d}of c(this,pA))xg._translate(a,s,o,a),xg._translate(d,s,o,d);else{const a=c(this,ql)/i,d=c(this,$l)/A;y(this,ql,i),y(this,$l,A);for(const{line:m,points:Z}of c(this,pA))xg._rescale(m,s,o,a,d,m),xg._rescale(Z,s,o,a,d,Z);n[2]*=a,n[3]*=d}return n[0]=I,n[1]=e,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${xg.svgRound(I)} ${xg.svgRound(e)}`}}}get defaultSVGProperties(){const I=c(this,bi);return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${xg.svgRound(I[0])} ${xg.svgRound(I[1])}`,transform:this.rotationTransform||null},bbox:I}}}bi=new WeakMap,G2=new WeakMap,w2=new WeakMap,pA=new WeakMap,ql=new WeakMap,$l=new WeakMap,U0=new WeakMap,E0=new WeakMap,gr=new WeakMap,Nt=new WeakSet,Jo=function(I=c(this,gr)){const e=c(this,w2)+I/2*c(this,U0);return c(this,E0)%180===0?[e/c(this,ql),e/c(this,$l)]:[e/c(this,$l),e/c(this,ql)]},_4=function(){const[I,e,t,i]=c(this,bi),[A,n]=H(this,Nt,Jo).call(this,0);return[I+A,e+n,t-2*A,i-2*n]},q4=function(){const I=y(this,bi,lc.slice());for(const{line:i}of c(this,pA)){if(i.length<=12){for(let s=4,o=i.length;s<o;s+=6)Xg.pointBoundingBox(i[s],i[s+1],I);continue}let A=i[4],n=i[5];for(let s=6,o=i.length;s<o;s+=6){const[a,d,m,Z,u,h]=i.subarray(s,s+6);Xg.bezierBoundingBox(A,n,a,d,m,Z,u,h,I),A=u,n=h}}const[e,t]=H(this,Nt,Jo).call(this);I[0]=JC(I[0]-e,0,1),I[1]=JC(I[1]-t,0,1),I[2]=JC(I[2]+e,0,1),I[3]=JC(I[3]+t,0,1),I[2]-=I[0],I[3]-=I[1]},$4=function(I){const[e,t]=H(this,Nt,Jo).call(this);y(this,gr,I);const[i,A]=H(this,Nt,Jo).call(this),[n,s]=[i-e,A-t],o=c(this,bi);return o[0]-=n,o[1]-=s,o[2]+=2*n,o[3]+=2*s,o};class aB extends GF{constructor(g){super(),this._viewParameters=g,super.updateProperties({fill:"none",stroke:RC._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(g,I){g==="stroke-width"&&(I??(I=this["stroke-width"]),I*=this._viewParameters.realScale),super.updateSVGProperty(g,I)}clone(){const g=new aB(this._viewParameters);return g.updateAll(this),g}}const P0=class P0 extends oB{constructor(I){super({...I,name:"inkEditor"});M(this,zY);this._willKeepAspectRatio=!0,this.defaultL10nId="pdfjs-editor-ink-editor"}static initialize(I,e){RC.initialize(I,e),this._defaultDrawingOptions=new aB(e.viewParameters)}static getDefaultDrawingOptions(I){const e=this._defaultDrawingOptions.clone();return e.updateProperties(I),e}static get supportMultipleDrawings(){return!0}static get typesMap(){return dI(this,"typesMap",new Map([[hI.INK_THICKNESS,"stroke-width"],[hI.INK_COLOR,"stroke"],[hI.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(I,e,t,i,A){return new tQg(I,e,t,i,A,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(I,e,t,i,A,n){return Mu.deserialize(I,e,t,i,A,n)}static async deserialize(I,e,t){let i=null;if(I instanceof eX){const{data:{inkLists:n,rect:s,rotation:o,id:a,color:d,opacity:m,borderStyle:{rawWidth:Z},popupRef:u,richText:h,contentsObj:G,creationDate:w,modificationDate:B},parent:{page:{pageNumber:p}}}=I;i=I={annotationType:oI.INK,color:Array.from(d),thickness:Z,opacity:m,paths:{points:n},boxes:null,pageIndex:p-1,rect:s.slice(0),rotation:o,annotationElementId:a,id:a,deleted:!1,popupRef:u,richText:h,comment:(G==null?void 0:G.str)||null,creationDate:w,modificationDate:B}}const A=await super.deserialize(I,e,t);return A._initialData=i,I.comment&&A.setCommentData(I),A}get toolbarButtons(){return this._colorPicker||(this._colorPicker=new iB(this)),[["colorPicker",this._colorPicker]]}get colorType(){return hI.INK_COLOR}get colorAndOpacityType(){return hI.INK_COLOR_AND_OPACITY}get opacityType(){return hI.INK_OPACITY}updateParams(I,e){if(I===hI.INK_COLOR_AND_OPACITY){this._updateColorAndOpacity(e.color,e.opacity);return}super.updateParams(I,e)}static updateDefaultParams(I,e){if(I===hI.INK_COLOR_AND_OPACITY){super.updateDefaultParams(hI.INK_COLOR,e.color),super.updateDefaultParams(hI.INK_OPACITY,e.opacity);return}super.updateDefaultParams(I,e)}get color(){return this._drawingOptions.stroke}get opacity(){return this._drawingOptions["stroke-opacity"]}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();const{_drawId:I,_drawingOptions:e,parent:t}=this;e.updateSVGProperty("stroke-width"),t.drawLayer.updateProperties(I,e.toSVGProperties())}static onScaleChangingWhenDrawing(){const I=this._currentParent;I&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),I.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:I,thickness:e,opacity:t}){this._drawingOptions=P0.getDefaultDrawingOptions({stroke:Xg.makeHexColor(...I),"stroke-width":e,"stroke-opacity":t})}serialize(I=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const{lines:e,points:t}=this.serializeDraw(I),{_drawingOptions:{stroke:i,"stroke-opacity":A,"stroke-width":n}}=this,s=Object.assign(super.serialize(I),{color:RC._colorManager.convert(i),opacity:A,thickness:n,paths:{lines:e,points:t}});return this.addComment(s),I?(s.isCopy=!0,s):this.annotationElementId&&!H(this,zY,gQ).call(this,s)?null:(s.id=this.annotationElementId,s)}renderAnnotationElement(I){if(this.deleted)return I.hide(),null;const{points:e,rect:t}=this.serializeDraw(!1);return I.updateEdited({rect:t,thickness:this._drawingOptions["stroke-width"],points:e,popup:this.comment}),null}};zY=new WeakSet,gQ=function(I){const{color:e,thickness:t,opacity:i,pageIndex:A}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized||I.color.some((n,s)=>n!==e[s])||I.thickness!==t||I.opacity!==i||I.pageIndex!==A},sg(P0,"_type","ink"),sg(P0,"_editorType",oI.INK),sg(P0,"_defaultDrawingOptions",null);let lX=P0;class sX extends Mu{toSVGPath(){let g=super.toSVGPath();return g.endsWith("Z")||(g+="Z"),g}}const dB=8,Hu=3;class hs{static extractContoursFromText(g,{fontFamily:I,fontStyle:e,fontWeight:t},i,A,n,s){let o=new OffscreenCanvas(1,1),a=o.getContext("2d",{alpha:!1});const d=200,m=a.font=`${e} ${t} ${d}px ${I}`,{actualBoundingBoxLeft:Z,actualBoundingBoxRight:u,actualBoundingBoxAscent:h,actualBoundingBoxDescent:G,fontBoundingBoxAscent:w,fontBoundingBoxDescent:B,width:p}=a.measureText(g),Y=1.5,N=Math.ceil(Math.max(Math.abs(Z)+Math.abs(u)||0,p)*Y),R=Math.ceil(Math.max(Math.abs(h)+Math.abs(G)||d,Math.abs(w)+Math.abs(B)||d)*Y);o=new OffscreenCanvas(N,R),a=o.getContext("2d",{alpha:!0,willReadFrequently:!0}),a.font=m,a.filter="grayscale(1)",a.fillStyle="white",a.fillRect(0,0,N,R),a.fillStyle="black",a.fillText(g,N*(Y-1)/2,R*(3-Y)/2);const X=H(this,IC,wH).call(this,a.getImageData(0,0,N,R).data),K=H(this,IC,iQ).call(this,X),D=H(this,IC,WH).call(this,K),k=H(this,IC,GH).call(this,X,N,R,D);return this.processDrawnLines({lines:{curves:k,width:N,height:R},pageWidth:i,pageHeight:A,rotation:n,innerMargin:s,mustSmooth:!0,areContours:!0})}static process(g,I,e,t,i){const[A,n,s]=H(this,IC,AQ).call(this,g),[o,a]=H(this,IC,tQ).call(this,A,n,s,Math.hypot(n,s)*c(this,Ir).sigmaSFactor,c(this,Ir).sigmaR,c(this,Ir).kernelSize),d=H(this,IC,WH).call(this,a),m=H(this,IC,GH).call(this,o,n,s,d);return this.processDrawnLines({lines:{curves:m,width:n,height:s},pageWidth:I,pageHeight:e,rotation:t,innerMargin:i,mustSmooth:!0,areContours:!0})}static processDrawnLines({lines:g,pageWidth:I,pageHeight:e,rotation:t,innerMargin:i,mustSmooth:A,areContours:n}){t%180!==0&&([I,e]=[e,I]);const{curves:s,width:o,height:a}=g,d=g.thickness??0,m=[],Z=Math.min(I/o,e/a),u=Z/I,h=Z/e,G=[];for(const{points:B}of s){const p=A?H(this,IC,eQ).call(this,B):B;if(!p)continue;G.push(p);const Y=p.length,N=new Float32Array(Y),R=new Float32Array(3*(Y===2?2:Y-2));if(m.push({line:R,points:N}),Y===2){N[0]=p[0]*u,N[1]=p[1]*h,R.set([NaN,NaN,NaN,NaN,N[0],N[1]],0);continue}let[X,K,D,k]=p;X*=u,K*=h,D*=u,k*=h,N.set([X,K,D,k],0),R.set([NaN,NaN,NaN,NaN,X,K],0);for(let z=4;z<Y;z+=2){const v=N[z]=p[z]*u,O=N[z+1]=p[z+1]*h;R.set(xg.createBezierPoints(X,K,D,k,v,O),(z-2)*3),[X,K,D,k]=[D,k,v,O]}}if(m.length===0)return null;const w=n?new sX:new Mu;return w.build(m,I,e,1,t,n?0:d,i),{outline:w,newCurves:G,areContours:n,thickness:d,width:o,height:a}}static async compressSignature({outlines:g,areContours:I,thickness:e,width:t,height:i}){let A=1/0,n=-1/0,s=0;for(const B of g){s+=B.length;for(let p=2,Y=B.length;p<Y;p++){const N=B[p]-B[p-2];A=Math.min(A,N),n=Math.max(n,N)}}let o;A>=-128&&n<=127?o=Int8Array:A>=-32768&&n<=32767?o=Int16Array:o=Int32Array;const a=g.length,d=dB+Hu*a,m=new Uint32Array(d);let Z=0;m[Z++]=d*Uint32Array.BYTES_PER_ELEMENT+(s-2*a)*o.BYTES_PER_ELEMENT,m[Z++]=0,m[Z++]=t,m[Z++]=i,m[Z++]=I?0:1,m[Z++]=Math.max(0,Math.floor(e??0)),m[Z++]=a,m[Z++]=o.BYTES_PER_ELEMENT;for(const B of g)m[Z++]=B.length-2,m[Z++]=B[0],m[Z++]=B[1];const u=new CompressionStream("deflate-raw"),h=u.writable.getWriter();await h.ready,h.write(m);const G=o.prototype.constructor;for(const B of g){const p=new G(B.length-2);for(let Y=2,N=B.length;Y<N;Y++)p[Y-2]=B[Y]-B[Y-2];h.write(p)}return h.close(),(await new Response(u.readable).bytes()).toBase64()}static async decompressSignature(g){try{const I=Uint8Array.fromBase64(g),{readable:e,writable:t}=new DecompressionStream("deflate-raw"),i=t.getWriter();await i.ready,i.write(I).then(async()=>{await i.ready,await i.close()}).catch(()=>{});let A=null,n=0;for await(const p of e)A||(A=new Uint8Array(new Uint32Array(p.buffer,0,4)[0])),A.set(p,n),n+=p.length;const s=new Uint32Array(A.buffer,0,A.length>>2),o=s[1];if(o!==0)throw new Error(`Invalid version: ${o}`);const a=s[2],d=s[3],m=s[4]===0,Z=s[5],u=s[6],h=s[7],G=[],w=(dB+Hu*u)*Uint32Array.BYTES_PER_ELEMENT;let B;switch(h){case Int8Array.BYTES_PER_ELEMENT:B=new Int8Array(A.buffer,w);break;case Int16Array.BYTES_PER_ELEMENT:B=new Int16Array(A.buffer,w);break;case Int32Array.BYTES_PER_ELEMENT:B=new Int32Array(A.buffer,w);break}n=0;for(let p=0;p<u;p++){const Y=s[Hu*p+dB],N=new Float32Array(Y+2);G.push(N);for(let R=0;R<Hu-1;R++)N[R]=s[Hu*p+dB+R+1];for(let R=0;R<Y;R++)N[R+2]=N[R]+B[n++]}return{areContours:m,thickness:Z,outlines:G,width:a,height:d}}catch(I){return rI(`decompressSignature: ${I}`),null}}}Ir=new WeakMap,IC=new WeakSet,hH=function(g,I,e,t){return e-=g,t-=I,e===0?t>0?0:4:e===1?t+6:2-t},Cl=new WeakMap,IQ=function(g,I,e,t,i,A,n){const s=H(this,IC,hH).call(this,e,t,i,A);for(let o=0;o<8;o++){const a=(-o+s-n+16)%8,d=c(this,Cl)[2*a],m=c(this,Cl)[2*a+1];if(g[(e+d)*I+(t+m)]!==0)return a}return-1},CQ=function(g,I,e,t,i,A,n){const s=H(this,IC,hH).call(this,e,t,i,A);for(let o=0;o<8;o++){const a=(o+s+n+16)%8,d=c(this,Cl)[2*a],m=c(this,Cl)[2*a+1];if(g[(e+d)*I+(t+m)]!==0)return a}return-1},GH=function(g,I,e,t){const i=g.length,A=new Int32Array(i);for(let a=0;a<i;a++)A[a]=g[a]<=t?1:0;for(let a=1;a<e-1;a++)A[a*I]=A[a*I+I-1]=0;for(let a=0;a<I;a++)A[a]=A[I*e-1-a]=0;let n=1,s;const o=[];for(let a=1;a<e-1;a++){s=1;for(let d=1;d<I-1;d++){const m=a*I+d,Z=A[m];if(Z===0)continue;let u=a,h=d;if(Z===1&&A[m-1]===0)n+=1,h-=1;else if(Z>=1&&A[m+1]===0)n+=1,h+=1,Z>1&&(s=Z);else{Z!==1&&(s=Math.abs(Z));continue}const G=[d,a],w=h===d+1,B={isHole:w,points:G,id:n,parent:0};o.push(B);let p;for(const z of o)if(z.id===s){p=z;break}p?p.isHole?B.parent=w?p.parent:s:B.parent=w?s:p.parent:B.parent=w?s:0;const Y=H(this,IC,IQ).call(this,A,I,a,d,u,h,0);if(Y===-1){A[m]=-n,A[m]!==1&&(s=Math.abs(A[m]));continue}let N=c(this,Cl)[2*Y],R=c(this,Cl)[2*Y+1];const X=a+N,K=d+R;u=X,h=K;let D=a,k=d;for(;;){const z=H(this,IC,CQ).call(this,A,I,D,k,u,h,1);N=c(this,Cl)[2*z],R=c(this,Cl)[2*z+1];const v=D+N,O=k+R;G.push(O,v);const Cg=D*I+k;if(A[Cg+1]===0?A[Cg]=-n:A[Cg]===1&&(A[Cg]=n),v===a&&O===d&&D===X&&k===K){A[m]!==1&&(s=Math.abs(A[m]));break}else u=D,h=k,D=v,k=O}}}return o},ny=function(g,I,e,t){if(e-I<=4){for(let X=I;X<e-2;X+=2)t.push(g[X],g[X+1]);return}const i=g[I],A=g[I+1],n=g[e-4]-i,s=g[e-3]-A,o=Math.hypot(n,s),a=n/o,d=s/o,m=a*A-d*i,Z=s/n,u=1/o,h=Math.atan(Z),G=Math.cos(h),w=Math.sin(h),B=u*(Math.abs(G)+Math.abs(w)),p=u*(1-B+B**2),Y=Math.max(Math.atan(Math.abs(w+G)*p),Math.atan(Math.abs(w-G)*p));let N=0,R=I;for(let X=I+2;X<e-2;X+=2){const K=Math.abs(m-a*g[X+1]+d*g[X]);K>N&&(R=X,N=K)}N>(o*Y)**2?(H(this,IC,ny).call(this,g,I,R+2,t),H(this,IC,ny).call(this,g,R,e,t)):t.push(i,A)},eQ=function(g){const I=[],e=g.length;return H(this,IC,ny).call(this,g,0,e,I),I.push(g[e-2],g[e-1]),I.length<=4?null:I},tQ=function(g,I,e,t,i,A){const n=new Float32Array(A**2),s=-2*t**2,o=A>>1;for(let h=0;h<A;h++){const G=(h-o)**2;for(let w=0;w<A;w++)n[h*A+w]=Math.exp((G+(w-o)**2)/s)}const a=new Float32Array(256),d=-2*i**2;for(let h=0;h<256;h++)a[h]=Math.exp(h**2/d);const m=g.length,Z=new Uint8Array(m),u=new Uint32Array(256);for(let h=0;h<e;h++)for(let G=0;G<I;G++){const w=h*I+G,B=g[w];let p=0,Y=0;for(let R=0;R<A;R++){const X=h+R-o;if(!(X<0||X>=e))for(let K=0;K<A;K++){const D=G+K-o;if(D<0||D>=I)continue;const k=g[X*I+D],z=n[R*A+K]*a[Math.abs(k-B)];p+=k*z,Y+=z}}const N=Z[w]=Math.round(p/Y);u[N]++}return[Z,u]},iQ=function(g){const I=new Uint32Array(256);for(const e of g)I[e]++;return I},wH=function(g){const I=g.length,e=new Uint8ClampedArray(I>>2);let t=-1/0,i=1/0;for(let n=0,s=e.length;n<s;n++){const o=e[n]=g[n<<2];t=Math.max(t,o),i=Math.min(i,o)}const A=255/(t-i);for(let n=0,s=e.length;n<s;n++)e[n]=(e[n]-i)*A;return e},WH=function(g){let I,e=-1/0,t=-1/0;const i=g.findIndex(s=>s!==0);let A=i,n=i;for(I=i;I<256;I++){const s=g[I];s>e&&(I-A>t&&(t=I-A,n=I-1),e=s,A=I)}for(I=n-1;I>=0&&!(g[I]>g[I+1]);I--);return I},AQ=function(g){const I=g,{width:e,height:t}=g,{maxDim:i}=c(this,Ir);let A=e,n=t;if(e>i||t>i){let m=e,Z=t,u=Math.log2(Math.max(e,t)/i);const h=Math.floor(u);u=u===h?h-1:h;for(let w=0;w<u;w++){A=Math.ceil(m/2),n=Math.ceil(Z/2);const B=new OffscreenCanvas(A,n);B.getContext("2d").drawImage(g,0,0,m,Z,0,0,A,n),m=A,Z=n,g!==I&&g.close(),g=B.transferToImageBitmap()}const G=Math.min(i/A,i/n);A=Math.round(A*G),n=Math.round(n*G)}const o=new OffscreenCanvas(A,n).getContext("2d",{willReadFrequently:!0});o.fillStyle="white",o.fillRect(0,0,A,n),o.filter="grayscale(1)",o.drawImage(g,0,0,g.width,g.height,0,0,A,n);const a=o.getImageData(0,0,A,n).data;return[H(this,IC,wH).call(this,a),A,n]},M(hs,IC),M(hs,Ir,{maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16}),M(hs,Cl,new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1]));class oX extends GF{constructor(){super(),super.updateProperties({fill:RC._defaultLineColor,"stroke-width":0})}clone(){const g=new oX;return g.updateAll(this),g}}class aX extends aB{constructor(g){super(g),super.updateProperties({stroke:RC._defaultLineColor,"stroke-width":1})}clone(){const g=new aX(this._viewParameters);return g.updateAll(this),g}}const YA=class YA extends oB{constructor(I){super({...I,mustBeCommitted:!0,name:"signatureEditor"});M(this,md,!1);M(this,gs,null);M(this,rd,null);M(this,Cr,null);this._willKeepAspectRatio=!0,y(this,rd,I.signatureData||null),y(this,gs,null),this.defaultL10nId="pdfjs-editor-signature-editor1"}static initialize(I,e){RC.initialize(I,e),this._defaultDrawingOptions=new oX,this._defaultDrawnSignatureOptions=new aX(e.viewParameters)}static getDefaultDrawingOptions(I){const e=this._defaultDrawingOptions.clone();return e.updateProperties(I),e}static get supportMultipleDrawings(){return!1}static get typesMap(){return dI(this,"typesMap",new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:"signature",hasDescription:!!c(this,gs)}}static computeTelemetryFinalData(I){const e=I.get("hasDescription");return{hasAltText:e.get(!0)??0,hasNoAltText:e.get(!1)??0}}get isResizable(){return!0}onScaleChanging(){this._drawId!==null&&super.onScaleChanging()}render(){if(this.div)return this.div;let I,e;const{_isCopy:t}=this;if(t&&(this._isCopy=!1,I=this.x,e=this.y),super.render(),this._drawId===null)if(c(this,rd)){const{lines:i,mustSmooth:A,areContours:n,description:s,uuid:o,heightInPage:a}=c(this,rd),{rawDims:{pageWidth:d,pageHeight:m},rotation:Z}=this.parent.viewport,u=hs.processDrawnLines({lines:i,pageWidth:d,pageHeight:m,rotation:Z,innerMargin:YA._INNER_MARGIN,mustSmooth:A,areContours:n});this.addSignature(u,a,s,o)}else this.div.setAttribute("data-l10n-args",JSON.stringify({description:""})),this.div.hidden=!0,this._uiManager.getSignature(this);else this.div.setAttribute("data-l10n-args",JSON.stringify({description:c(this,gs)||""}));return t&&(this._isCopy=!0,this._moveAfterPaste(I,e)),this.div}setUuid(I){y(this,Cr,I),this.addEditToolbar()}getUuid(){return c(this,Cr)}get description(){return c(this,gs)}set description(I){y(this,gs,I),this.div&&(this.div.setAttribute("data-l10n-args",JSON.stringify({description:I})),super.addEditToolbar().then(e=>{e==null||e.updateEditSignatureButton(I)}))}getSignaturePreview(){const{newCurves:I,areContours:e,thickness:t,width:i,height:A}=c(this,rd),n=Math.max(i,A),s=hs.processDrawnLines({lines:{curves:I.map(o=>({points:o})),thickness:t,width:i,height:A},pageWidth:n,pageHeight:n,rotation:0,innerMargin:0,mustSmooth:!1,areContours:e});return{areContours:e,outline:s.outline}}get toolbarButtons(){return this._uiManager.signatureManager?[["editSignature",this._uiManager.signatureManager]]:super.toolbarButtons}addSignature(I,e,t,i){const{x:A,y:n}=this,{outline:s}=y(this,rd,I);y(this,md,s instanceof sX),this.description=t;let o;c(this,md)?o=YA.getDefaultDrawingOptions():(o=YA._defaultDrawnSignatureOptions.clone(),o.updateProperties({"stroke-width":s.thickness})),this._addOutlines({drawOutlines:s,drawingOptions:o});const[,a]=this.pageDimensions;let d=e/a;d=d>=1?.5:d,this.width*=d/this.height,this.width>=1&&(d*=.9/this.width,this.width=.9),this.height=d,this.setDims(),this.x=A,this.y=n,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(i),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!i,hasDescription:!!t}}),this.div.hidden=!1}getFromImage(I){const{rawDims:{pageWidth:e,pageHeight:t},rotation:i}=this.parent.viewport;return hs.process(I,e,t,i,YA._INNER_MARGIN)}getFromText(I,e){const{rawDims:{pageWidth:t,pageHeight:i},rotation:A}=this.parent.viewport;return hs.extractContoursFromText(I,e,t,i,A,YA._INNER_MARGIN)}getDrawnSignature(I){const{rawDims:{pageWidth:e,pageHeight:t},rotation:i}=this.parent.viewport;return hs.processDrawnLines({lines:I,pageWidth:e,pageHeight:t,rotation:i,innerMargin:YA._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions({areContours:I,thickness:e}){I?this._drawingOptions=YA.getDefaultDrawingOptions():(this._drawingOptions=YA._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":e}))}serialize(I=!1){if(this.isEmpty())return null;const{lines:e,points:t}=this.serializeDraw(I),{_drawingOptions:{"stroke-width":i}}=this,A=Object.assign(super.serialize(I),{isSignature:!0,areContours:c(this,md),color:[0,0,0],thickness:c(this,md)?0:i});return this.addComment(A),I?(A.paths={lines:e,points:t},A.uuid=c(this,Cr),A.isCopy=!0):A.lines=e,c(this,gs)&&(A.accessibilityData={type:"Figure",alt:c(this,gs)}),A}static deserializeDraw(I,e,t,i,A,n){return n.areContours?sX.deserialize(I,e,t,i,A,n):Mu.deserialize(I,e,t,i,A,n)}static async deserialize(I,e,t){var A;const i=await super.deserialize(I,e,t);return y(i,md,I.areContours),i.description=((A=I.accessibilityData)==null?void 0:A.alt)||"",y(i,Cr,I.uuid),i}};md=new WeakMap,gs=new WeakMap,rd=new WeakMap,Cr=new WeakMap,sg(YA,"_type","signature"),sg(YA,"_editorType",oI.SIGNATURE),sg(YA,"_defaultDrawingOptions",null);let dX=YA;class cX extends RC{constructor(I){super({...I,name:"stampEditor"});M(this,vI);M(this,LC,null);M(this,tt,null);M(this,Zd,null);M(this,Go,null);M(this,bd,null);M(this,_0,"");M(this,wo,null);M(this,er,!1);M(this,Is,null);M(this,yA,!1);M(this,q0,!1);y(this,Go,I.bitmapUrl),y(this,bd,I.bitmapFile),this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(I,e){RC.initialize(I,e)}static isHandlingMimeForPasting(I){return KV.includes(I)}static paste(I,e){e.pasteEditor({mode:oI.STAMP},{bitmapFile:I.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){var I;return{type:"stamp",hasAltText:!!((I=this.altTextData)!=null&&I.altText)}}static computeTelemetryFinalData(I){const e=I.get("hasAltText");return{hasAltText:e.get(!0)??0,hasNoAltText:e.get(!1)??0}}async mlGuessAltText(I=null,e=!0){if(this.hasAltTextData())return null;const{mlManager:t}=this._uiManager;if(!t)throw new Error("No ML.");if(!await t.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:i,width:A,height:n}=I||this.copyCanvas(null,null,!0).imageData,s=await t.guess({name:"altText",request:{data:i,width:A,height:n,channels:i.length/(A*n)}});if(!s)throw new Error("No response from the AI service.");if(s.error)throw new Error("Error from the AI service.");if(s.cancel)return null;if(!s.output)throw new Error("No valid response from the AI service.");const o=s.output;return await this.setGuessedAltText(o),e&&!this.hasAltTextData()&&(this.altTextData={alt:o,decorative:!1}),o}remove(){var I;c(this,tt)&&(y(this,LC,null),this._uiManager.imageManager.deleteId(c(this,tt)),(I=c(this,wo))==null||I.remove(),y(this,wo,null),c(this,Is)&&(clearTimeout(c(this,Is)),y(this,Is,null))),super.remove()}rebuild(){if(!this.parent){c(this,tt)&&H(this,vI,ly).call(this);return}super.rebuild(),this.div!==null&&(c(this,tt)&&c(this,wo)===null&&H(this,vI,ly).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(I){this._isDraggable=!0,I&&this.div.focus()}isEmpty(){return!(c(this,Zd)||c(this,LC)||c(this,Go)||c(this,bd)||c(this,tt)||c(this,er))}get toolbarButtons(){return[["altText",this.createAltText()]]}get isResizable(){return!0}render(){if(this.div)return this.div;let I,e;return this._isCopy&&(I=this.x,e=this.y),super.render(),this.div.hidden=!0,this.createAltText(),c(this,er)||(c(this,LC)?H(this,vI,sy).call(this):H(this,vI,ly).call(this)),this._isCopy&&this._moveAfterPaste(I,e),this._uiManager.addShouldRescale(this),this.div}setCanvas(I,e){const{id:t,bitmap:i}=this._uiManager.imageManager.getFromCanvas(I,e);e.remove(),t&&this._uiManager.imageManager.isValidId(t)&&(y(this,tt,t),i&&y(this,LC,i),y(this,er,!1),H(this,vI,sy).call(this))}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;c(this,Is)!==null&&clearTimeout(c(this,Is)),y(this,Is,setTimeout(()=>{y(this,Is,null),H(this,vI,BH).call(this)},200))}copyCanvas(I,e,t=!1){I||(I=224);const{width:i,height:A}=c(this,LC),n=new Wl;let s=c(this,LC),o=i,a=A,d=null;if(e){if(i>e||A>e){const X=Math.min(e/i,e/A);o=Math.floor(i*X),a=Math.floor(A*X)}d=document.createElement("canvas");const Z=d.width=Math.ceil(o*n.sx),u=d.height=Math.ceil(a*n.sy);c(this,yA)||(s=H(this,vI,oy).call(this,Z,u));const h=d.getContext("2d");h.filter=this._uiManager.hcmFilter;let G="white",w="#cfcfd8";this._uiManager.hcmFilter!=="none"?w="black":ujg.isDarkMode&&(G="#8f8f9d",w="#42414d");const B=15,p=B*n.sx,Y=B*n.sy,N=new OffscreenCanvas(p*2,Y*2),R=N.getContext("2d");R.fillStyle=G,R.fillRect(0,0,p*2,Y*2),R.fillStyle=w,R.fillRect(0,0,p,Y),R.fillRect(p,Y,p,Y),h.fillStyle=h.createPattern(N,"repeat"),h.fillRect(0,0,Z,u),h.drawImage(s,0,0,s.width,s.height,0,0,Z,u)}let m=null;if(t){let Z,u;if(n.symmetric&&s.width<I&&s.height<I)Z=s.width,u=s.height;else if(s=c(this,LC),i>I||A>I){const w=Math.min(I/i,I/A);Z=Math.floor(i*w),u=Math.floor(A*w),c(this,yA)||(s=H(this,vI,oy).call(this,Z,u))}const G=new OffscreenCanvas(Z,u).getContext("2d",{willReadFrequently:!0});G.drawImage(s,0,0,s.width,s.height,0,0,Z,u),m={width:Z,height:u,data:G.getImageData(0,0,Z,u).data}}return{canvas:d,width:o,height:a,imageData:m}}static async deserialize(I,e,t){var G;let i=null,A=!1;if(I instanceof uF){const{data:{rect:w,rotation:B,id:p,structParent:Y,popupRef:N,richText:R,contentsObj:X,creationDate:K,modificationDate:D},container:k,parent:{page:{pageNumber:z}},canvas:v}=I;let O,Cg;v?(delete I.canvas,{id:O,bitmap:Cg}=t.imageManager.getFromCanvas(k.id,v),v.remove()):(A=!0,I._hasNoCanvas=!0);const U=((G=await e._structTree.getAriaAttributes(`${Ur}${p}`))==null?void 0:G.get("aria-label"))||"";i=I={annotationType:oI.STAMP,bitmapId:O,bitmap:Cg,pageIndex:z-1,rect:w.slice(0),rotation:B,annotationElementId:p,id:p,deleted:!1,accessibilityData:{decorative:!1,altText:U},isSvg:!1,structParent:Y,popupRef:N,richText:R,comment:(X==null?void 0:X.str)||null,creationDate:K,modificationDate:D}}const n=await super.deserialize(I,e,t),{rect:s,bitmap:o,bitmapUrl:a,bitmapId:d,isSvg:m,accessibilityData:Z}=I;A?(t.addMissingCanvas(I.id,n),y(n,er,!0)):d&&t.imageManager.isValidId(d)?(y(n,tt,d),o&&y(n,LC,o)):y(n,Go,a),y(n,yA,m);const[u,h]=n.pageDimensions;return n.width=(s[2]-s[0])/u,n.height=(s[3]-s[1])/h,Z&&(n.altTextData=Z),n._initialData=i,I.comment&&n.setCommentData(I),y(n,q0,!!i),n}serialize(I=!1,e=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const t=Object.assign(super.serialize(I),{bitmapId:c(this,tt),isSvg:c(this,yA)});if(this.addComment(t),I)return t.bitmapUrl=H(this,vI,ay).call(this,!0),t.accessibilityData=this.serializeAltText(!0),t.isCopy=!0,t;const{decorative:i,altText:A}=this.serializeAltText(!1);if(!i&&A&&(t.accessibilityData={type:"Figure",alt:A}),this.annotationElementId){const s=H(this,vI,nQ).call(this,t);return s.isSame?null:(s.isSameAltText?delete t.accessibilityData:t.accessibilityData.structParent=this._initialData.structParent??-1,t.id=this.annotationElementId,delete t.bitmapId,t)}if(e===null)return t;e.stamps||(e.stamps=new Map);const n=c(this,yA)?(t.rect[2]-t.rect[0])*(t.rect[3]-t.rect[1]):null;if(!e.stamps.has(c(this,tt)))e.stamps.set(c(this,tt),{area:n,serialized:t}),t.bitmap=H(this,vI,ay).call(this,!1);else if(c(this,yA)){const s=e.stamps.get(c(this,tt));n>s.area&&(s.area=n,s.serialized.bitmap.close(),s.serialized.bitmap=H(this,vI,ay).call(this,!1))}return t}renderAnnotationElement(I){return this.deleted?(I.hide(),null):(I.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}}LC=new WeakMap,tt=new WeakMap,Zd=new WeakMap,Go=new WeakMap,bd=new WeakMap,_0=new WeakMap,wo=new WeakMap,er=new WeakMap,Is=new WeakMap,yA=new WeakMap,q0=new WeakMap,vI=new WeakSet,dw=function(I,e=!1){if(!I){this.remove();return}y(this,LC,I.bitmap),e||(y(this,tt,I.id),y(this,yA,I.isSvg)),I.file&&y(this,_0,I.file.name),H(this,vI,sy).call(this)},cw=function(){if(y(this,Zd,null),this._uiManager.enableWaiting(!1),!!c(this,wo)){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&c(this,LC)){this.addEditToolbar().then(()=>{this._editToolbar.hide(),this._uiManager.editAltText(this,!0)});return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&c(this,LC)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}},ly=function(){if(c(this,tt)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(c(this,tt)).then(t=>H(this,vI,dw).call(this,t,!0)).finally(()=>H(this,vI,cw).call(this));return}if(c(this,Go)){const t=c(this,Go);y(this,Go,null),this._uiManager.enableWaiting(!0),y(this,Zd,this._uiManager.imageManager.getFromUrl(t).then(i=>H(this,vI,dw).call(this,i)).finally(()=>H(this,vI,cw).call(this)));return}if(c(this,bd)){const t=c(this,bd);y(this,bd,null),this._uiManager.enableWaiting(!0),y(this,Zd,this._uiManager.imageManager.getFromFile(t).then(i=>H(this,vI,dw).call(this,i)).finally(()=>H(this,vI,cw).call(this)));return}const I=document.createElement("input");I.type="file",I.accept=KV.join(",");const e=this._uiManager._signal;y(this,Zd,new Promise(t=>{I.addEventListener("change",async()=>{if(!I.files||I.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const i=await this._uiManager.imageManager.getFromFile(I.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),H(this,vI,dw).call(this,i)}t()},{signal:e}),I.addEventListener("cancel",()=>{this.remove(),t()},{signal:e})}).finally(()=>H(this,vI,cw).call(this))),I.click()},sy=function(){var o;const{div:I}=this;let{width:e,height:t}=c(this,LC);const[i,A]=this.pageDimensions,n=.75;if(this.width)e=this.width*i,t=this.height*A;else if(e>n*i||t>n*A){const a=Math.min(n*i/e,n*A/t);e*=a,t*=a}this._uiManager.enableWaiting(!1);const s=y(this,wo,document.createElement("canvas"));s.setAttribute("role","img"),this.addContainer(s),this.width=e/i,this.height=t/A,this.setDims(),(o=this._initialOptions)!=null&&o.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(I.hidden=!1),H(this,vI,BH).call(this),c(this,q0)||(this.parent.addUndoableEditor(this),y(this,q0,!0)),this._reportTelemetry({action:"inserted_image"}),c(this,_0)&&this.div.setAttribute("aria-description",c(this,_0)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-stamp-added-alert")},oy=function(I,e){const{width:t,height:i}=c(this,LC);let A=t,n=i,s=c(this,LC);for(;A>2*I||n>2*e;){const o=A,a=n;A>2*I&&(A=Math.ceil(A/2)),n>2*e&&(n=Math.ceil(n/2));const d=new OffscreenCanvas(A,n);d.getContext("2d").drawImage(s,0,0,o,a,0,0,A,n),s=d.transferToImageBitmap()}return s},BH=function(){const[I,e]=this.parentDimensions,{width:t,height:i}=this,A=new Wl,n=Math.ceil(t*I*A.sx),s=Math.ceil(i*e*A.sy),o=c(this,wo);if(!o||o.width===n&&o.height===s)return;o.width=n,o.height=s;const a=c(this,yA)?c(this,LC):H(this,vI,oy).call(this,n,s),d=o.getContext("2d");d.filter=this._uiManager.hcmFilter,d.drawImage(a,0,0,a.width,a.height,0,0,n,s)},ay=function(I){if(I){if(c(this,yA)){const i=this._uiManager.imageManager.getSvgUrl(c(this,tt));if(i)return i}const e=document.createElement("canvas");return{width:e.width,height:e.height}=c(this,LC),e.getContext("2d").drawImage(c(this,LC),0,0),e.toDataURL()}if(c(this,yA)){const[e,t]=this.pageDimensions,i=Math.round(this.width*e*ia.PDF_TO_CSS_UNITS),A=Math.round(this.height*t*ia.PDF_TO_CSS_UNITS),n=new OffscreenCanvas(i,A);return n.getContext("2d").drawImage(c(this,LC),0,0,c(this,LC).width,c(this,LC).height,0,0,i,A),n.transferToImageBitmap()}return structuredClone(c(this,LC))},nQ=function(I){var n;const{pageIndex:e,accessibilityData:{altText:t}}=this._initialData,i=I.pageIndex===e,A=(((n=I.accessibilityData)==null?void 0:n.alt)||"")===t;return{isSame:!this.hasEditedComment&&!this._hasBeenMoved&&!this._hasBeenResized&&i&&A,isSameAltText:A}},sg(cX,"_type","stamp"),sg(cX,"_editorType",oI.STAMP);const tl=class tl{constructor({uiManager:g,pageIndex:I,div:e,structTreeLayer:t,accessibilityManager:i,annotationLayer:A,drawLayer:n,textLayer:s,viewport:o,l10n:a}){M(this,yC);M(this,tr);M(this,$0,!1);M(this,ud,null);M(this,hd,null);M(this,Wo,null);M(this,Li,new Map);M(this,Gd,!1);M(this,gb,!1);M(this,Ib,!1);M(this,el,null);M(this,Bo,null);M(this,it,null);M(this,po,null);M(this,wd,null);M(this,Cb,-1);M(this,Og);const d=[...c(tl,Wd).values()];if(!tl._initialized){tl._initialized=!0;for(const m of d)m.initialize(a,g)}g.registerEditorTypes(d),y(this,Og,g),this.pageIndex=I,this.div=e,y(this,tr,i),y(this,ud,A),this.viewport=o,y(this,it,s),this.drawLayer=n,this._structTree=t,c(this,Og).addLayer(this)}get isEmpty(){return c(this,Li).size===0}get isInvisible(){return this.isEmpty&&c(this,Og).getMode()===oI.NONE}updateToolbar(g){c(this,Og).updateToolbar(g)}updateMode(g=c(this,Og).getMode()){switch(H(this,yC,dy).call(this),g){case oI.NONE:this.div.classList.toggle("nonEditing",!0),this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case oI.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case oI.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:I}=this.div;if(I.toggle("nonEditing",!1),g===oI.POPUP)I.toggle("commentEditing",!0);else{I.toggle("commentEditing",!1);for(const e of c(tl,Wd).values())I.toggle(`${e._type}Editing`,g===e._editorType)}this.div.hidden=!1}hasTextLayer(g){var I;return g===((I=c(this,it))==null?void 0:I.div)}setEditingState(g){c(this,Og).setEditingState(g)}addCommands(g){c(this,Og).addCommands(g)}cleanUndoStack(g){c(this,Og).cleanUndoStack(g)}toggleDrawing(g=!1){this.div.classList.toggle("drawing",!g)}togglePointerEvents(g=!1){this.div.classList.toggle("disabled",!g)}toggleAnnotationLayerPointerEvents(g=!1){var I;(I=c(this,ud))==null||I.togglePointerEvents(g)}async enable(){var e;y(this,Ib,!0),this.div.tabIndex=0,this.togglePointerEvents(!0),this.div.classList.toggle("nonEditing",!1),(e=c(this,wd))==null||e.abort(),y(this,wd,null);const g=new Set;for(const t of c(this,yC,pH))t.enableEditing(),t.show(!0),t.annotationElementId&&(c(this,Og).removeChangedExistingAnnotation(t),g.add(t.annotationElementId));const I=c(this,ud);if(I)for(const t of I.getEditableAnnotations()){if(t.hide(),c(this,Og).isDeletedAnnotationElement(t.data.id)||g.has(t.data.id))continue;const i=await this.deserialize(t);i&&(this.addOrRebuild(i),i.enableEditing())}y(this,Ib,!1),c(this,Og)._eventBus.dispatch("editorsrendered",{source:this,pageNumber:this.pageIndex+1})}disable(){var t;if(y(this,gb,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1),this.div.classList.toggle("nonEditing",!0),c(this,it)&&!c(this,wd)){y(this,wd,new AbortController);const i=c(this,Og).combinedSignal(c(this,wd));c(this,it).div.addEventListener("pointerdown",A=>{const{clientX:s,clientY:o,timeStamp:a}=A,d=c(this,Cb);if(a-d>500){y(this,Cb,a);return}y(this,Cb,-1);const{classList:m}=this.div;m.toggle("getElements",!0);const Z=document.elementsFromPoint(s,o);if(m.toggle("getElements",!1),!this.div.contains(Z[0]))return;let u;const h=new RegExp(`^${Zu}[0-9]+$`);for(const w of Z)if(h.test(w.id)){u=w.id;break}if(!u)return;const G=c(this,Li).get(u);(G==null?void 0:G.annotationElementId)===null&&(qC(A),G.dblclick(A))},{signal:i,capture:!0})}const g=c(this,ud),I=[];if(g){const i=new Map,A=new Map;for(const n of c(this,yC,pH)){if(n.disableEditing(),!n.annotationElementId){I.push(n);continue}if(n.serialize()!==null){i.set(n.annotationElementId,n);continue}else A.set(n.annotationElementId,n);(t=this.getEditableAnnotation(n.annotationElementId))==null||t.show(),n.remove()}for(const n of g.getEditableAnnotations()){const{id:s}=n.data;if(c(this,Og).isDeletedAnnotationElement(s)){n.updateEdited({deleted:!0});continue}let o=A.get(s);if(o){o.resetAnnotationElement(n),o.show(!1),n.show();continue}o=i.get(s),o&&(c(this,Og).addChangedExistingAnnotation(o),o.renderAnnotationElement(n)&&o.show(!1)),n.show()}}H(this,yC,dy).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:e}=this.div;for(const i of c(tl,Wd).values())e.remove(`${i._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),g==null||g.updateFakeAnnotations(I),y(this,gb,!1)}getEditableAnnotation(g){var I;return((I=c(this,ud))==null?void 0:I.getEditableAnnotation(g))||null}setActiveEditor(g){c(this,Og).getActive()!==g&&c(this,Og).setActiveEditor(g)}enableTextSelection(){var g;if(this.div.tabIndex=-1,(g=c(this,it))!=null&&g.div&&!c(this,po)){y(this,po,new AbortController);const I=c(this,Og).combinedSignal(c(this,po));c(this,it).div.addEventListener("pointerdown",H(this,yC,lQ).bind(this),{signal:I}),c(this,it).div.classList.add("highlighting")}}disableTextSelection(){var g;this.div.tabIndex=0,(g=c(this,it))!=null&&g.div&&c(this,po)&&(c(this,po).abort(),y(this,po,null),c(this,it).div.classList.remove("highlighting"))}enableClick(){if(c(this,hd))return;y(this,hd,new AbortController);const g=c(this,Og).combinedSignal(c(this,hd));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:g});const I=this.pointerup.bind(this);this.div.addEventListener("pointerup",I,{signal:g}),this.div.addEventListener("pointercancel",I,{signal:g})}disableClick(){var g;(g=c(this,hd))==null||g.abort(),y(this,hd,null)}attach(g){c(this,Li).set(g.id,g);const{annotationElementId:I}=g;I&&c(this,Og).isDeletedAnnotationElement(I)&&c(this,Og).removeDeletedAnnotationElement(g)}detach(g){var I;c(this,Li).delete(g.id),(I=c(this,tr))==null||I.removePointerInTextLayer(g.contentDiv),!c(this,gb)&&g.annotationElementId&&c(this,Og).addDeletedAnnotationElement(g)}remove(g){this.detach(g),c(this,Og).removeEditor(g),g.div.remove(),g.isAttachedToDOM=!1}changeParent(g){var I;g.parent!==this&&(g.parent&&g.annotationElementId&&(c(this,Og).addDeletedAnnotationElement(g),RC.deleteAnnotationElement(g),g.annotationElementId=null),this.attach(g),(I=g.parent)==null||I.detach(g),g.setParent(this),g.div&&g.isAttachedToDOM&&(g.div.remove(),this.div.append(g.div)))}add(g){if(!(g.parent===this&&g.isAttachedToDOM)){if(this.changeParent(g),c(this,Og).addEditor(g),this.attach(g),!g.isAttachedToDOM){const I=g.render();this.div.append(I),g.isAttachedToDOM=!0}g.fixAndSetPosition(),g.onceAdded(!c(this,Ib)),c(this,Og).addToAnnotationStorage(g),g._reportTelemetry(g.telemetryInitialData)}}moveEditorInDOM(g){var e;if(!g.isAttachedToDOM)return;const{activeElement:I}=document;g.div.contains(I)&&!c(this,Wo)&&(g._focusEventsAllowed=!1,y(this,Wo,setTimeout(()=>{y(this,Wo,null),g.div.contains(document.activeElement)?g._focusEventsAllowed=!0:(g.div.addEventListener("focusin",()=>{g._focusEventsAllowed=!0},{once:!0,signal:c(this,Og)._signal}),I.focus())},0))),g._structTreeParentId=(e=c(this,tr))==null?void 0:e.moveElementInDOM(this.div,g.div,g.contentDiv,!0)}addOrRebuild(g){g.needsToBeRebuilt()?(g.parent||(g.parent=this),g.rebuild(),g.show()):this.add(g)}addUndoableEditor(g){const I=()=>g._uiManager.rebuild(g),e=()=>{g.remove()};this.addCommands({cmd:I,undo:e,mustExec:!1})}getEditorByUID(g){for(const I of c(this,Li).values())if(I.uid===g)return I;return null}combinedSignal(g){return c(this,Og).combinedSignal(g)}canCreateNewEmptyEditor(){var g;return(g=c(this,yC,ss))==null?void 0:g.canCreateNewEmptyEditor()}async pasteEditor(g,I){this.updateToolbar(g),await c(this,Og).updateMode(g.mode);const{offsetX:e,offsetY:t}=H(this,yC,yH).call(this),i=c(this,Og).getId(),A=H(this,yC,YH).call(this,{parent:this,id:i,x:e,y:t,uiManager:c(this,Og),isCentered:!0,...I});A&&this.add(A)}async deserialize(g){var I;return await((I=c(tl,Wd).get(g.annotationType??g.annotationEditorType))==null?void 0:I.deserialize(g,this,c(this,Og)))||null}createAndAddNewEditor(g,I,e={}){const t=c(this,Og).getId(),i=H(this,yC,YH).call(this,{parent:this,id:t,x:g.offsetX,y:g.offsetY,uiManager:c(this,Og),isCentered:I,...e});return i&&this.add(i),i}get boundingClientRect(){return this.div.getBoundingClientRect()}addNewEditor(g={}){this.createAndAddNewEditor(H(this,yC,yH).call(this),!0,g)}setSelected(g){c(this,Og).setSelected(g)}toggleSelected(g){c(this,Og).toggleSelected(g)}unselect(g){c(this,Og).unselect(g)}pointerup(g){var t;const{isMac:I}=Xe.platform;if(g.button!==0||g.ctrlKey&&I||g.target!==this.div||!c(this,Gd)||(y(this,Gd,!1),(t=c(this,yC,ss))!=null&&t.isDrawer&&c(this,yC,ss).supportMultipleDrawings))return;if(!c(this,$0)){y(this,$0,!0);return}const e=c(this,Og).getMode();if(e===oI.STAMP||e===oI.POPUP||e===oI.SIGNATURE){c(this,Og).unselectAll();return}this.createAndAddNewEditor(g,!1)}pointerdown(g){var t;if(c(this,Og).getMode()===oI.HIGHLIGHT&&this.enableTextSelection(),c(this,Gd)){y(this,Gd,!1);return}const{isMac:I}=Xe.platform;if(g.button!==0||g.ctrlKey&&I||g.target!==this.div)return;if(y(this,Gd,!0),(t=c(this,yC,ss))!=null&&t.isDrawer){this.startDrawingSession(g);return}const e=c(this,Og).getActive();y(this,$0,!e||e.isEmpty())}startDrawingSession(g){if(this.div.focus({preventScroll:!0}),c(this,el)){c(this,yC,ss).startDrawing(this,c(this,Og),!1,g);return}c(this,Og).setCurrentDrawingSession(this),y(this,el,new AbortController);const I=c(this,Og).combinedSignal(c(this,el));this.div.addEventListener("blur",({relatedTarget:e})=>{e&&!this.div.contains(e)&&(y(this,Bo,null),this.commitOrRemove())},{signal:I}),c(this,yC,ss).startDrawing(this,c(this,Og),!1,g)}pause(g){if(g){const{activeElement:I}=document;this.div.contains(I)&&y(this,Bo,I);return}c(this,Bo)&&setTimeout(()=>{var I;(I=c(this,Bo))==null||I.focus(),y(this,Bo,null)},0)}endDrawingSession(g=!1){return c(this,el)?(c(this,Og).setCurrentDrawingSession(null),c(this,el).abort(),y(this,el,null),y(this,Bo,null),c(this,yC,ss).endDrawing(g)):null}findNewParent(g,I,e){const t=c(this,Og).findParent(I,e);return t===null||t===this?!1:(t.changeParent(g),!0)}commitOrRemove(){return c(this,el)?(this.endDrawingSession(),!0):!1}onScaleChanging(){c(this,el)&&c(this,yC,ss).onScaleChangingWhenDrawing(this)}destroy(){var g,I;this.commitOrRemove(),((g=c(this,Og).getActive())==null?void 0:g.parent)===this&&(c(this,Og).commitOrRemove(),c(this,Og).setActiveEditor(null)),c(this,Wo)&&(clearTimeout(c(this,Wo)),y(this,Wo,null));for(const e of c(this,Li).values())(I=c(this,tr))==null||I.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,c(this,Li).clear(),c(this,Og).removeLayer(this)}async render({viewport:g}){this.viewport=g,oc(this.div,g);for(const I of c(this,Og).getEditors(this.pageIndex))this.add(I),I.rebuild();await c(this,Og).findClonesForPage(this),this.div.hidden=this.isEmpty,this.updateMode()}update({viewport:g}){c(this,Og).commitOrRemove(),H(this,yC,dy).call(this);const I=this.viewport.rotation,e=g.rotation;if(this.viewport=g,oc(this.div,{rotation:e}),I!==e)for(const t of c(this,Li).values())t.rotate(e)}get pageDimensions(){const{pageWidth:g,pageHeight:I}=this.viewport.rawDims;return[g,I]}get scale(){return c(this,Og).viewParameters.realScale}};tr=new WeakMap,$0=new WeakMap,ud=new WeakMap,hd=new WeakMap,Wo=new WeakMap,Li=new WeakMap,Gd=new WeakMap,gb=new WeakMap,Ib=new WeakMap,el=new WeakMap,Bo=new WeakMap,it=new WeakMap,po=new WeakMap,wd=new WeakMap,Cb=new WeakMap,Og=new WeakMap,Wd=new WeakMap,yC=new WeakSet,pH=function(){return c(this,Li).size!==0?c(this,Li).values():c(this,Og).getEditors(this.pageIndex)},lQ=function(g){c(this,Og).unselectAll();const{target:I}=g;if(I===c(this,it).div||(I.getAttribute("role")==="img"||I.classList.contains("endOfContent")||I.classList.contains("textLayerImagePlaceholder"))&&c(this,it).div.contains(I)){const{isMac:e}=Xe.platform;if(g.button!==0||g.ctrlKey&&e)return;c(this,Og).showAllEditors("highlight",!0,!0),c(this,it).div.classList.add("free"),this.toggleDrawing(),sB.startHighlighting(this,c(this,Og).direction==="ltr",{target:c(this,it).div,x:g.x,y:g.y}),c(this,it).div.addEventListener("pointerup",()=>{c(this,it).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:c(this,Og)._signal}),g.preventDefault()}},ss=function(){return c(tl,Wd).get(c(this,Og).getMode())},YH=function(g){const I=c(this,yC,ss);return I?new I.prototype.constructor(g):null},yH=function(){const{x:g,y:I,width:e,height:t}=this.boundingClientRect,i=Math.max(0,g),A=Math.max(0,I),n=Math.min(window.innerWidth,g+e),s=Math.min(window.innerHeight,I+t),o=(i+n)/2-g,a=(A+s)/2-I,[d,m]=this.viewport.rotation%180===0?[o,a]:[a,o];return{offsetX:d,offsetY:m}},dy=function(){for(const g of c(this,Li).values())g.isEmpty()&&g.remove()},sg(tl,"_initialized",!1),M(tl,Wd,new Map([iX,lX,cX,sB,dX].map(g=>[g._editorType,g])));let mX=tl;const Qe=class Qe{constructor(){M(this,Cs);M(this,il,null);M(this,ui,new Map);M(this,ir,new Map)}setParent(g){if(!c(this,il)){y(this,il,g);return}if(c(this,il)!==g){if(c(this,ui).size>0)for(const I of c(this,ui).values())I.remove(),g.append(I);y(this,il,g)}}static get _svgFactory(){return dI(this,"_svgFactory",new AB)}draw(g,I=!1,e=!1){const t=Je(Qe,W2)._++,i=H(this,Cs,NH).call(this),A=Qe._svgFactory.createElement("defs");i.append(A);const n=Qe._svgFactory.createElement("path");A.append(n);const s=`path_${t}`;n.setAttribute("id",s),n.setAttribute("vector-effect","non-scaling-stroke"),I&&c(this,ir).set(t,n);const o=e?H(this,Cs,oQ).call(this,A,s):null,a=Qe._svgFactory.createElement("use");return i.append(a),a.setAttribute("href",`#${s}`),this.updateProperties(i,g),c(this,ui).set(t,i),{id:t,clipPathId:`url(#${o})`}}drawOutline(g,I){const e=Je(Qe,W2)._++,t=H(this,Cs,NH).call(this),i=Qe._svgFactory.createElement("defs");t.append(i);const A=Qe._svgFactory.createElement("path");i.append(A);const n=`path_${e}`;A.setAttribute("id",n),A.setAttribute("vector-effect","non-scaling-stroke");let s;if(I){const d=Qe._svgFactory.createElement("mask");i.append(d),s=`mask_${e}`,d.setAttribute("id",s),d.setAttribute("maskUnits","objectBoundingBox");const m=Qe._svgFactory.createElement("rect");d.append(m),m.setAttribute("width","1"),m.setAttribute("height","1"),m.setAttribute("fill","white");const Z=Qe._svgFactory.createElement("use");d.append(Z),Z.setAttribute("href",`#${n}`),Z.setAttribute("stroke","none"),Z.setAttribute("fill","black"),Z.setAttribute("fill-rule","nonzero"),Z.classList.add("mask")}const o=Qe._svgFactory.createElement("use");t.append(o),o.setAttribute("href",`#${n}`),s&&o.setAttribute("mask",`url(#${s})`);const a=o.cloneNode();return t.append(a),o.classList.add("mainOutline"),a.classList.add("secondaryOutline"),this.updateProperties(t,g),c(this,ui).set(e,t),e}finalizeDraw(g,I){c(this,ir).delete(g),this.updateProperties(g,I)}updateProperties(g,I){var s;if(!I)return;const{root:e,bbox:t,rootClass:i,path:A}=I,n=typeof g=="number"?c(this,ui).get(g):g;if(n){if(e&&H(this,Cs,VH).call(this,n,e),t&&H(s=Qe,JY,sQ).call(s,n,t),i){const{classList:o}=n;for(const[a,d]of Object.entries(i))o.toggle(a,d)}if(A){const a=n.firstElementChild.firstElementChild;H(this,Cs,VH).call(this,a,A)}}}updateParent(g,I){if(I===this)return;const e=c(this,ui).get(g);e&&(c(I,il).append(e),c(this,ui).delete(g),c(I,ui).set(g,e))}remove(g){c(this,ir).delete(g),c(this,il)!==null&&(c(this,ui).get(g).remove(),c(this,ui).delete(g))}destroy(){y(this,il,null);for(const g of c(this,ui).values())g.remove();c(this,ui).clear(),c(this,ir).clear()}};il=new WeakMap,ui=new WeakMap,ir=new WeakMap,W2=new WeakMap,JY=new WeakSet,sQ=function(g,[I,e,t,i]){const{style:A}=g;A.top=`${100*e}%`,A.left=`${100*I}%`,A.width=`${100*t}%`,A.height=`${100*i}%`},Cs=new WeakSet,NH=function(){const g=Qe._svgFactory.create(1,1,!0);return c(this,il).append(g),g.setAttribute("aria-hidden",!0),g},oQ=function(g,I){const e=Qe._svgFactory.createElement("clipPath");g.append(e);const t=`clip_${I}`;e.setAttribute("id",t),e.setAttribute("clipPathUnits","objectBoundingBox");const i=Qe._svgFactory.createElement("use");return e.append(i),i.setAttribute("href",`#${I}`),i.classList.add("clip"),t},VH=function(g,I){for(const[e,t]of Object.entries(I))t===null?g.removeAttribute(e):g.setAttribute(e,t)},M(Qe,JY),M(Qe,W2,0);let rX=Qe;function cB(C){return`${(C*100).toFixed(2)}%`}const y2=class y2{constructor(g,I,e,t){M(this,xY);M(this,eb,[]);M(this,B2,new Map);M(this,p2,null);M(this,tb,0);M(this,es,0);M(this,ts,0);y(this,tb,g),y(this,eb,I),y(this,es,e.rawDims.pageWidth),y(this,ts,e.rawDims.pageHeight),y(this,p2,t)}render(){const g=document.createElement("div");g.className="textLayerImages";for(let I=0;I<c(this,eb).length;I+=6){const e=H(this,xY,aQ).call(this,c(this,eb).subarray(I,I+6));e&&g.append(e)}return g.addEventListener("contextmenu",I=>{var w;if(!(I.target instanceof HTMLCanvasElement))return;const e=I.target,t=c(this,B2).get(e);if(!t)return;const i=(w=c(y2,Y2))==null?void 0:w.deref();if(i===e)return;i&&(i.width=0,i.height=0),y(y2,Y2,new WeakRef(e));const{inverseTransform:A,x1:n,y1:s,width:o,height:a}=t,d=c(this,p2).call(this),m=Math.ceil(n*d.width),Z=Math.ceil(s*d.height),u=Math.floor((n+o/c(this,es))*d.width),h=Math.floor((s+a/c(this,ts))*d.height);e.width=u-m,e.height=h-Z;const G=e.getContext("2d");G.setTransform(...A),G.translate(-m,-Z),G.drawImage(d,0,0)}),g}};eb=new WeakMap,B2=new WeakMap,p2=new WeakMap,tb=new WeakMap,es=new WeakMap,ts=new WeakMap,Y2=new WeakMap,xY=new WeakSet,aQ=function([g,I,e,t,i,A]){const n=Math.hypot((i-g)*c(this,es),(A-I)*c(this,ts)),s=Math.hypot((e-g)*c(this,es),(t-I)*c(this,ts));if(n<c(this,tb)||s<c(this,tb))return null;const o=[(i-g)*c(this,es)/n,(A-I)*c(this,ts)/n,(e-g)*c(this,es)/s,(t-I)*c(this,ts)/s,0,0],a=Xg.inverseTransform(o),d=document.createElement("canvas");return d.className="textLayerImagePlaceholder",d.width=0,d.height=0,Object.assign(d.style,{opacity:0,position:"absolute",left:cB(g),top:cB(I),width:cB(n/c(this,es)),height:cB(s/c(this,ts)),transformOrigin:"0% 0%",transform:`matrix(${o.join(",")})`}),c(this,B2).set(d,{inverseTransform:a,width:n,height:s,x1:g,y1:I}),d},M(y2,Y2,null);let ZX=y2;globalThis._pdfjsTestingUtils={HighlightOutliner:AX},globalThis.pdfjsLib={AbortException:ta,AnnotationEditorLayer:mX,AnnotationEditorParamsType:hI,AnnotationEditorType:oI,AnnotationEditorUIManager:ac,AnnotationLayer:tX,AnnotationMode:ea,AnnotationType:Ve,applyOpacity:Gjg,build:D4g,ColorPicker:tB,createValidAbsoluteUrl:bk,CSSConstants:hjg,DOMSVGFactory:AB,DrawLayer:rX,FeatureTest:Xe,fetchData:DV,findContrastColor:wjg,getDocument:eB,getFilenameFromUrl:cjg,getPdfFilenameFromUrl:mjg,getRGB:wu,getRGBA:FV,getUuid:wk,getXfaPageViewport:Zjg,GlobalWorkerOptions:pl,ImageKind:fW,InvalidPDFException:RV,isDataScheme:zW,isPdfFile:Er,isValidExplicitDest:zjg,makeArr:HV,makeMap:fV,makeObj:SV,MathClamp:JC,noContextMenu:xA,normalizeUnicode:ajg,OPS:bs,OutputScale:Wl,PasswordResponses:ejg,PDFDataRangeTransport:aF,PDFDateString:JW,PDFWorker:Xu,PermissionFlag:Cjg,PixelsPerInch:ia,RenderingCancelledException:kV,renderRichText:Vk,ResponseException:FW,setLayerDimensions:oc,shadow:dI,SignatureExtractor:hs,stopEvent:qC,SupportedImageMimeTypes:KV,TextLayer:Vu,TextLayerImages:ZX,TouchManager:LW,updateUrlHash:uk,Util:Xg,VerbosityLevel:SW,version:S4g,XfaLayer:Wk};class iQg{constructor(){sg(this,"cache",{});sg(this,"cachePage",{})}setCache(g,I){this.cache[g]=I}getCache(g){return this.cache[g]}setPageCache(g,I){this.cachePage[g]=I}getPageCache(g){return this.cachePage[g]}}const mc=new iQg,AQg=["src"],Gs=l.defineComponent({name:"PdfPreview",__name:"PdfPreview",props:{src:{},page:{},file:{}},emits:["load","error"],setup(C,{expose:g,emit:I}){pl.workerSrc=Ijg;const e=C,t=I,i=l.reactive({isError:!1,rotate:0}),A=l.ref(null);let n,s=null;const o=async()=>{if(e.file){const u=await e.file.arrayBuffer();return{data:new Uint8Array(u)}}return e.src};l.watch([()=>e.src,()=>e.page],()=>{n==null||n.disconnect(),Z(),i.isError=!1,l.nextTick(()=>{m()})}),l.watch(()=>e.src,()=>{i.rotate=0});const a=async()=>{try{if(!A.value||!e.src)throw new Error("Canvas not found");s&&(s==null||s.cancel(),s=null);let u;const h=mc.getCache(e.src);if(h?u=h:(u=await eB(await o()).promise,mc.setCache(e.src,u)),!u)throw new Error("Pdf not found");const G=e.page??1,w=`${e.src}-${G}`,B=mc.getPageCache(w);let p;if(B?p=B:(p=await u.getPage(G),mc.setPageCache(w,p)),!A.value)return;const Y=A.value.getBoundingClientRect(),N=p.getViewport({scale:1}),R=Y.width/N.width,X=Y.height/N.height,K=Math.min(R,X),D=window.devicePixelRatio||1,k=p.getViewport({scale:K*D,rotation:i.rotate}),z=A.value.getContext("2d");if(z===null)throw new Error("Context not found");A.value.width=k.width,A.value.height=k.height;const v=p.render({canvas:A.value,canvasContext:z,viewport:k});s=v,await v.promise,t("load")}catch(u){if(u&&typeof u=="object"&&"name"in u&&(u==null?void 0:u.name)==="RenderingCancelledException")return;console.error(u),i.isError=!0,t("error",u)}finally{s=null}},d=async u=>{try{if(!A.value)return;const h=mc.getPageCache(`${e.src}-${e.page}`);if(!h)return;const G=A.value.getContext("2d");if(!G)return;const w=Math.round(u/90)*90;i.rotate+=w;const{width:B,height:p}=A.value;G.clearRect(0,0,B,p);const Y=h.getViewport({scale:1,rotation:i.rotate});A.value.width=Y.width,A.value.height=Y.height;const N=h.render({canvas:A.value,canvasContext:G,viewport:Y});s=N,await N.promise,t("load")}catch(h){if(h&&typeof h=="object"&&"name"in h&&(h==null?void 0:h.name)==="RenderingCancelledException")return;console.error(h),i.isError=!0}finally{s=null}},m=()=>{A.value&&(n=new IntersectionObserver((u,h)=>{u.forEach(G=>{G.isIntersecting&&(a(),h.unobserve(G.target))},{rootMargin:"50px"})}),n.observe(A.value))},Z=()=>{if(!A.value)return;const u=A.value.getContext("2d");u&&u.clearRect(0,0,A.value.width,A.value.height)};return g({clearCanvas:Z,rotatePdf:d}),l.onMounted(()=>{m()}),(u,h)=>i.isError?(l.openBlock(),l.createElementBlock("img",{key:1,src:l.unref(rs)},null,8,AQg)):(l.openBlock(),l.createElementBlock("canvas",{key:0,ref_key:"canvas",ref:A},null,512))}});var bX=(C=>(C.slideTop="slide-top",C.slideLeft="slide-left",C.fadeAndScale="fade-and-scale",C.fade="fade",C))(bX||{});const nQg=()=>{const C=l.ref(0),g=l.ref([]),I=l.ref(null),e=s=>{g.value.push(s),i(s),A()},t=()=>{g.value.pop(),n(),g.value.length?i(g.value[g.value.length-1]):I.value=null},i=s=>{I.value=s},A=()=>{C.value+=1},n=()=>{C.value>0&&(C.value-=1)};return{countOpenedModal:C,openedModals:g,lastOpenedModal:I,addOpenedModal:e,reduceOpenedModal:t,setLastOpenedModal:i,incrementCountModal:A,decrementCountModal:n}},lQg=["data-testid"],sQg=["data-testid"],mB=Qg(l.defineComponent({__name:"Modal",props:{open:{type:Boolean},position:{default:"right"},width:{},height:{},disableCloseOnOutsideClick:{type:Boolean,default:!1},isResetFocus:{type:Boolean,default:!0},dataTestid:{default:"Modal"}},emits:["close","unmounted"],setup(C,{expose:g,emit:I}){const{lastOpenedModal:e,addOpenedModal:t,reduceOpenedModal:i}=nQg(),A=C,n=l.ref(null),s=l.useAttrs(),o=l.ref(!1),a=l.computed(()=>({width:A.width,height:A.height})),d=I;let m=0;const Z=()=>{m=Date.now(),n.value&&(A.open?(n.value.showModal(),t(n.value)):u())},u=()=>{Date.now()-m<300||(i(),d("close"))},h=()=>{var R;(R=n.value)==null||R.close(),document.documentElement.focus(),window.removeEventListener("mouseup",Y),B()},G=R=>{R.key==="Escape"&&e.value===n.value&&u()},w=()=>{var D;const R=navigator;if(/mac/i.test(((D=R.userAgentData)==null?void 0:D.platform)||navigator.platform||navigator.userAgent||""))return 0;if(document.querySelectorAll(".modal-yui-kit").length===1)return window.innerWidth-document.documentElement.clientWidth;{const k=document.body.style.paddingRight;return Number(k.replace(/\D/g,""))||0}},B=()=>{document.querySelectorAll(".modal-yui-kit").length===0&&OI({overflow:"","padding-right":""},document.body)},p=R=>{if(!n.value)return!1;const X=n.value.getBoundingClientRect();if(!(R.clientX>=X.left&&R.clientX<=X.right&&R.clientY>=X.top&&R.clientY<=X.bottom))return!1;const D=n.value.scrollHeight>n.value.clientHeight&&R.clientX>=X.left+n.value.clientWidth,k=n.value.scrollWidth>n.value.clientWidth&&R.clientY>=X.top+n.value.clientHeight;return D||k},Y=R=>{if(R.target===n.value){if(A.disableCloseOnOutsideClick||p(R))return;u()}window.removeEventListener("mouseup",Y)},N=R=>{p(R)||(window.removeEventListener("mouseup",Y),window.addEventListener("mouseup",Y))};return g({closeDialog:h}),l.onMounted(()=>{l.watchEffect(()=>{A.open!==o.value&&(Z(),o.value=A.open,n.value&&A.isResetFocus&&n.value.focus())}),n.value&&n.value.addEventListener("cancel",X=>{X.preventDefault()});const R=w();OI({overflow:"hidden","padding-right":`${R}px`},document.body),document.addEventListener("keydown",G)}),l.onUnmounted(()=>{B(),window.removeEventListener("mouseup",Y),document.removeEventListener("keydown",G),d("unmounted")}),(R,X)=>(l.openBlock(),l.createElementBlock("dialog",l.mergeProps({ref_key:"dialog",ref:n},l.unref(s),{class:["modal-yui-kit",`modal-yui-kit_${A.position}`],"data-testid":A.dataTestid,onMousedown:l.withModifiers(N,["self","left"])}),[l.createElementVNode("div",{class:"modal-yui-kit__modal-content",style:l.normalizeStyle(a.value),"data-testid":`${A.dataTestid}-ModalContent`},[l.renderSlot(R.$slots,"default",{},void 0,!0)],12,sQg)],16,lQg))}}),[["__scopeId","data-v-14e05535"]]),fu=Qg(l.defineComponent({__name:"ModalAnimated",props:{animateType:{},open:{type:Boolean},position:{default:"right"},width:{},height:{},disableCloseOnOutsideClick:{type:Boolean,default:!1},isResetFocus:{type:Boolean},dataTestid:{default:"Modal"}},emits:["close","unmounted","end-animation"],setup(C,{emit:g}){const I=C,e=g,t=l.computed(()=>I.animateType===bX.fade?"fade":I.position==="bottom"?"slide-bottom":I.position==="right"?"slide-left":"fade-and-scale"),i=l.ref(null),A=l.reactive({function:()=>{}}),n=()=>{d()},s=()=>{e("unmounted")},o=()=>{d()},a=()=>{A.function(),e("end-animation")},d=()=>{var Z;i.value&&(A.function=(Z=i.value)==null?void 0:Z.closeDialog)},m=()=>{d(),e("close")};return(Z,u)=>(l.openBlock(),l.createBlock(l.Transition,{name:t.value,onAfterLeave:a,onBeforeLeave:o,onAfterEnter:n},{default:l.withCtx(()=>[I.open?(l.openBlock(),l.createBlock(mB,{key:0,ref_key:"modalRef",ref:i,open:I.open,position:I.position,width:I.width,height:I.height,"data-testid":I.dataTestid,"is-reset-focus":I.isResetFocus,onClose:m,onUnmounted:s,"disable-close-on-outside-click":I.disableCloseOnOutsideClick},{default:l.withCtx(()=>[l.renderSlot(Z.$slots,"default",{},void 0,!0)]),_:3},8,["open","position","width","height","data-testid","is-reset-focus","disable-close-on-outside-click"])):l.createCommentVNode("",!0)]),_:3},8,["name"]))}}),[["__scopeId","data-v-728b0160"]]),wF=(C,g=window)=>{const I=C.getBoundingClientRect();if(g instanceof Window){const e=window.innerWidth,t=window.innerHeight;return I.top<t&&I.bottom>0&&I.left<e&&I.right>0}else{const e=g.getBoundingClientRect();return I.top<e.bottom&&I.bottom>e.top&&I.left<e.right&&I.right>e.left}},uX=(C,g=null)=>{if(!C)return;(g?wF(C,g):wF(C))||C.scrollIntoView({behavior:"smooth",block:"nearest"})},oQg=l.defineComponent({name:"BaseSlider",__name:"BaseSlider",props:{activeIndex:{default:0}},setup(C,{expose:g}){const I=C,e=l.reactive({children:null,activeIndex:I.activeIndex}),t=l.ref(null),i=l.ref(null);l.watch(()=>I.activeIndex,()=>{A(I.activeIndex)});const A=a=>{if(!t.value||!i.value)return;const d=[...t.value.children];a>d.length-1||a<0||(uX(d[a],i.value),e.activeIndex=a)},n=()=>{l.nextTick(()=>{!e.children||!i.value||uX(e.children[e.activeIndex],i.value)})},s=()=>(A(e.activeIndex+1),e.activeIndex),o=()=>(A(e.activeIndex-1),e.activeIndex);return l.onMounted(()=>{!t.value||!i.value||(e.children=[...t.value.children])}),g({shiftPosition:A,nextSlide:s,prevSlide:o,initScroll:n}),(a,d)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"sliderRef",ref:i,class:"base-slider"},[l.createElementVNode("div",{ref_key:"contentRef",ref:t,class:"base-slider__content"},[l.renderSlot(a.$slots,"default")],512)],512))}}),aQg={class:"base-slide__content"},dQg=l.defineComponent({name:"BaseSlide",__name:"BaseSlide",props:{isActive:{type:Boolean}},setup(C){const g=C,I=l.computed(()=>[{"base-slide_active":g.isActive}]);return(e,t)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["base-slide",I.value])},[l.createElementVNode("div",aQg,[l.renderSlot(e.$slots,"default")])],2))}}),rB=C=>{if(!C)return null;const g=C.split("?")[0],I=/\.\w+$/,e=g.match(I);return e?e[0].replace(".",""):null},Aa=C=>{if(!C)return!1;if(C.startsWith("data:image/"))return!0;const g=rB(C);return g?Object.values(mu).includes(g.toLowerCase()):!1},cQg=()=>{const C=window.__CHAT_NATIVE_FILE__;return C!=null&&C.isAndroidNativePlatform()?C:null},mQg=()=>{var g,I,e;const C=window.Capacitor;return!((g=C==null?void 0:C.isNativePlatform)!=null&&g.call(C))||((I=C.getPlatform)==null?void 0:I.call(C))!=="android"?null:((e=C.Plugins)==null?void 0:e.NativeFile)||null},WF=C=>new Promise((g,I)=>{const e=new FileReader;e.onload=()=>{if(typeof e.result!="string"){I(new Error("Failed to encode file"));return}const[,t=""]=e.result.split(",");g(t)},e.onerror=()=>{I(e.error||new Error("Failed to read file"))},e.readAsDataURL(C)}),hX=C=>/^(blob:|data:)/i.test(C),rQg=async(C,g="file",I)=>{const e=cQg()||mQg();if(e){if(I&&e.downloadBase64){const s=await WF(I);await e.downloadBase64({base64Data:s,fileName:g,mimeType:I.type||void 0});return}if(hX(C)&&e.downloadBase64){const o=await(await fetch(C)).blob(),a=await WF(o);await e.downloadBase64({base64Data:a,fileName:g,mimeType:o.type||(I==null?void 0:I.type)||void 0});return}if(!hX(C)){await e.downloadFile({url:C,fileName:g,mimeType:(I==null?void 0:I.type)||void 0});return}}const i=await(await fetch(C,{credentials:hX(C)?"same-origin":"include"})).blob(),A=window.URL.createObjectURL(i),n=document.createElement("a");n.href=A,n.download=g,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(A)};var BF={exports:{}};(function(C,g){(function(e,t){C.exports=t()})(window,function(){return function(I){var e={};function t(i){if(e[i])return e[i].exports;var A=e[i]={i,l:!1,exports:{}};return I[i].call(A.exports,A,A.exports,t),A.l=!0,A.exports}return t.m=I,t.c=e,t.d=function(i,A,n){t.o(i,A)||Object.defineProperty(i,A,{enumerable:!0,get:n})},t.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},t.t=function(i,A){if(A&1&&(i=t(i)),A&8||A&4&&typeof i=="object"&&i&&i.__esModule)return i;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:i}),A&2&&typeof i!="string")for(var s in i)t.d(n,s,(function(o){return i[o]}).bind(null,s));return n},t.n=function(i){var A=i&&i.__esModule?function(){return i.default}:function(){return i};return t.d(A,"a",A),A},t.o=function(i,A){return Object.prototype.hasOwnProperty.call(i,A)},t.p="",t(t.s=0)}({"./src/index.js":function(I,e,t){t.r(e),t("./src/sass/index.scss");var i=t("./src/js/init.js"),A=i.default.init;typeof window<"u"&&(window.printJS=A),e.default=A},"./src/js/browser.js":function(I,e,t){t.r(e);var i={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!i.isIE()&&!!window.StyleMedia},isChrome:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!n.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};e.default=i},"./src/js/functions.js":function(I,e,t){t.r(e),t.d(e,"addWrapper",function(){return s}),t.d(e,"capitalizePrint",function(){return o}),t.d(e,"collectStyles",function(){return a}),t.d(e,"addHeader",function(){return m}),t.d(e,"cleanUp",function(){return Z}),t.d(e,"isRawHTML",function(){return u});var i=t("./src/js/modal.js"),A=t("./src/js/browser.js");function n(h){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(w){return typeof w}:n=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},n(h)}function s(h,G){var w="font-family:"+G.font+" !important; font-size: "+G.font_size+" !important; width:100%;";return'<div style="'+w+'">'+h+"</div>"}function o(h){return h.charAt(0).toUpperCase()+h.slice(1)}function a(h,G){for(var w=document.defaultView||window,B="",p=w.getComputedStyle(h,""),Y=0;Y<p.length;Y++)(G.targetStyles.indexOf("*")!==-1||G.targetStyle.indexOf(p[Y])!==-1||d(G.targetStyles,p[Y]))&&p.getPropertyValue(p[Y])&&(B+=p[Y]+":"+p.getPropertyValue(p[Y])+";");return B+="max-width: "+G.maxWidth+"px !important; font-size: "+G.font_size+" !important;",B}function d(h,G){for(var w=0;w<h.length;w++)if(n(G)==="object"&&G.indexOf(h[w])!==-1)return!0;return!1}function m(h,G){var w=document.createElement("div");if(u(G.header))w.innerHTML=G.header;else{var B=document.createElement("h1"),p=document.createTextNode(G.header);B.appendChild(p),B.setAttribute("style",G.headerStyle),w.appendChild(B)}h.insertBefore(w,h.childNodes[0])}function Z(h){h.showModal&&i.default.close(),h.onLoadingEnd&&h.onLoadingEnd(),(h.showModal||h.onLoadingStart)&&window.URL.revokeObjectURL(h.printable);var G="mouseover";(A.default.isChrome()||A.default.isFirefox())&&(G="focus");var w=function B(){window.removeEventListener(G,B),h.onPrintDialogClose();var p=document.getElementById(h.frameId);p&&p.remove()};window.addEventListener(G,w)}function u(h){var G=new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");return G.test(h)}},"./src/js/html.js":function(I,e,t){t.r(e);var i=t("./src/js/functions.js"),A=t("./src/js/print.js");function n(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(m){return typeof m}:n=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},n(a)}e.default={print:function(d,m){var Z=o(d.printable)?d.printable:document.getElementById(d.printable);if(!Z){window.console.error("Invalid HTML element id: "+d.printable);return}d.printableElement=s(Z,d),d.header&&Object(i.addHeader)(d.printableElement,d),A.default.send(d,m)}};function s(a,d){for(var m=a.cloneNode(),Z=Array.prototype.slice.call(a.childNodes),u=0;u<Z.length;u++)if(d.ignoreElements.indexOf(Z[u].id)===-1){var h=s(Z[u],d);m.appendChild(h)}switch(d.scanStyles&&a.nodeType===1&&m.setAttribute("style",Object(i.collectStyles)(a,d)),a.tagName){case"SELECT":m.value=a.value;break;case"CANVAS":m.getContext("2d").drawImage(a,0,0);break}return m}function o(a){return n(a)==="object"&&a&&(a instanceof HTMLElement||a.nodeType===1)}},"./src/js/image.js":function(I,e,t){t.r(e);var i=t("./src/js/functions.js"),A=t("./src/js/print.js"),n=t("./src/js/browser.js");e.default={print:function(o,a){o.printable.constructor!==Array&&(o.printable=[o.printable]),o.printableElement=document.createElement("div"),o.printable.forEach(function(d){var m=document.createElement("img");if(m.setAttribute("style",o.imageStyle),m.src=d,n.default.isFirefox()){var Z=m.src;m.src=Z}var u=document.createElement("div");u.appendChild(m),o.printableElement.appendChild(u)}),o.header&&Object(i.addHeader)(o.printableElement,o),A.default.send(o,a)}}},"./src/js/init.js":function(I,e,t){t.r(e);var i=t("./src/js/browser.js"),A=t("./src/js/modal.js"),n=t("./src/js/pdf.js"),s=t("./src/js/html.js"),o=t("./src/js/raw-html.js"),a=t("./src/js/image.js"),d=t("./src/js/json.js");function m(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(G){return typeof G}:m=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},m(u)}var Z=["pdf","html","image","json","raw-html"];e.default={init:function(){var h={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(R){throw R},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},G=arguments[0];if(G===void 0)throw new Error("printJS expects at least 1 attribute.");switch(m(G)){case"string":h.printable=encodeURI(G),h.fallbackPrintable=h.printable,h.type=arguments[1]||h.type;break;case"object":h.printable=G.printable,h.fallbackPrintable=typeof G.fallbackPrintable<"u"?G.fallbackPrintable:h.printable,h.fallbackPrintable=h.base64?"data:application/pdf;base64,".concat(h.fallbackPrintable):h.fallbackPrintable;for(var w in h)w==="printable"||w==="fallbackPrintable"||(h[w]=typeof G[w]<"u"?G[w]:h[w]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+m(G))}if(!h.printable)throw new Error("Missing printable information.");if(!h.type||typeof h.type!="string"||Z.indexOf(h.type.toLowerCase())===-1)throw new Error("Invalid print type. Available types are: pdf, html, image and json.");h.showModal&&A.default.show(h),h.onLoadingStart&&h.onLoadingStart();var B=document.getElementById(h.frameId);B&&B.parentNode.removeChild(B);var p=document.createElement("iframe");switch(i.default.isFirefox()?p.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):p.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),p.setAttribute("id",h.frameId),h.type!=="pdf"&&(p.srcdoc="<html><head><title>"+h.documentTitle+"</title>",h.css&&(Array.isArray(h.css)||(h.css=[h.css]),h.css.forEach(function(N){p.srcdoc+='<link rel="stylesheet" href="'+N+'">'})),p.srcdoc+="</head><body></body></html>"),h.type){case"pdf":if(i.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var Y=window.open(h.fallbackPrintable,"_blank");Y.focus(),h.onIncompatibleBrowser()}catch(N){h.onError(N)}finally{h.showModal&&A.default.close(),h.onLoadingEnd&&h.onLoadingEnd()}else n.default.print(h,p);break;case"image":a.default.print(h,p);break;case"html":s.default.print(h,p);break;case"raw-html":o.default.print(h,p);break;case"json":d.default.print(h,p);break}}}},"./src/js/json.js":function(I,e,t){t.r(e);var i=t("./src/js/functions.js"),A=t("./src/js/print.js");function n(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(d){return typeof d}:n=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},n(o)}e.default={print:function(a,d){if(n(a.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof a.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!a.properties||!Array.isArray(a.properties))throw new Error("Invalid properties array for your JSON data.");a.properties=a.properties.map(function(m){return{field:n(m)==="object"?m.field:m,displayName:n(m)==="object"?m.displayName:m,columnSize:n(m)==="object"&&m.columnSize?m.columnSize+";":100/a.properties.length+"%;"}}),a.printableElement=document.createElement("div"),a.header&&Object(i.addHeader)(a.printableElement,a),a.printableElement.innerHTML+=s(a),A.default.send(a,d)}};function s(o){var a=o.printable,d=o.properties,m='<table style="border-collapse: collapse; width: 100%;">';o.repeatTableHeader&&(m+="<thead>"),m+="<tr>";for(var Z=0;Z<d.length;Z++)m+='<th style="width:'+d[Z].columnSize+";"+o.gridHeaderStyle+'">'+Object(i.capitalizePrint)(d[Z].displayName)+"</th>";m+="</tr>",o.repeatTableHeader&&(m+="</thead>"),m+="<tbody>";for(var u=0;u<a.length;u++){m+="<tr>";for(var h=0;h<d.length;h++){var G=a[u],w=d[h].field.split(".");if(w.length>1)for(var B=0;B<w.length;B++)G=G[w[B]];else G=G[d[h].field];m+='<td style="width:'+d[h].columnSize+o.gridStyle+'">'+G+"</td>"}m+="</tr>"}return m+="</tbody></table>",m}},"./src/js/modal.js":function(I,e,t){t.r(e);var i={show:function(n){var s="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",o=document.createElement("div");o.setAttribute("style",s),o.setAttribute("id","printJS-Modal");var a=document.createElement("div");a.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var d=document.createElement("div");d.setAttribute("class","printClose"),d.setAttribute("id","printClose"),a.appendChild(d);var m=document.createElement("span");m.setAttribute("class","printSpinner"),a.appendChild(m);var Z=document.createTextNode(n.modalMessage);a.appendChild(Z),o.appendChild(a),document.getElementsByTagName("body")[0].appendChild(o),document.getElementById("printClose").addEventListener("click",function(){i.close()})},close:function(){var n=document.getElementById("printJS-Modal");n&&n.parentNode.removeChild(n)}};e.default=i},"./src/js/pdf.js":function(I,e,t){t.r(e);var i=t("./src/js/print.js"),A=t("./src/js/functions.js");e.default={print:function(o,a){if(o.base64){var d=Uint8Array.from(atob(o.printable),function(Z){return Z.charCodeAt(0)});n(o,a,d);return}o.printable=/^(blob|http|\/\/)/i.test(o.printable)?o.printable:window.location.origin+(o.printable.charAt(0)!=="/"?"/"+o.printable:o.printable);var m=new window.XMLHttpRequest;m.responseType="arraybuffer",m.addEventListener("error",function(){Object(A.cleanUp)(o),o.onError(m.statusText,m)}),m.addEventListener("load",function(){if([200,201].indexOf(m.status)===-1){Object(A.cleanUp)(o),o.onError(m.statusText,m);return}n(o,a,m.response)}),m.open("GET",o.printable,!0),m.send()}};function n(s,o,a){var d=new window.Blob([a],{type:"application/pdf"});d=window.URL.createObjectURL(d),o.setAttribute("src",d),i.default.send(s,o)}},"./src/js/print.js":function(I,e,t){t.r(e);var i=t("./src/js/browser.js"),A=t("./src/js/functions.js"),n={send:function(m,Z){document.getElementsByTagName("body")[0].appendChild(Z);var u=document.getElementById(m.frameId);u.onload=function(){if(m.type==="pdf"){i.default.isFirefox()?setTimeout(function(){return s(u,m)},1e3):s(u,m);return}var h=u.contentWindow||u.contentDocument;if(h.document&&(h=h.document),h.body.appendChild(m.printableElement),m.type!=="pdf"&&m.style){var G=document.createElement("style");G.innerHTML=m.style,h.head.appendChild(G)}var w=h.getElementsByTagName("img");w.length>0?o(Array.from(w)).then(function(){return s(u,m)}):s(u,m)}}};function s(d,m){try{if(d.focus(),i.default.isEdge()||i.default.isIE())try{d.contentWindow.document.execCommand("print",!1,null)}catch{d.contentWindow.print()}else d.contentWindow.print()}catch(Z){m.onError(Z)}finally{i.default.isFirefox()&&(d.style.visibility="hidden",d.style.left="-1px"),Object(A.cleanUp)(m)}}function o(d){var m=d.map(function(Z){if(Z.src&&Z.src!==window.location.href)return a(Z)});return Promise.all(m)}function a(d){return new Promise(function(m){var Z=function u(){!d||typeof d.naturalWidth>"u"||d.naturalWidth===0||!d.complete?setTimeout(u,500):m()};Z()})}e.default=n},"./src/js/raw-html.js":function(I,e,t){t.r(e);var i=t("./src/js/print.js");e.default={print:function(n,s){n.printableElement=document.createElement("div"),n.printableElement.setAttribute("style","width:100%"),n.printableElement.innerHTML=n.printable,i.default.send(n,s)}}},"./src/sass/index.scss":function(I,e,t){},0:function(I,e,t){I.exports=t("./src/index.js")}}).default})})(BF);var ZQg=BF.exports;const bQg=Mvg(ZQg),Yl=C=>{if(!C)return!1;const g=rB(C);return g?Object.values(ru).includes(g):!1},uQg=["src"],Su=l.defineComponent({name:"VideoPreview",__name:"VideoPreview",props:{src:{}},emits:["error","load"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isError:!1});let i=null;const A={mp4:"video/mp4",webm:"video/webm",mkv:"video/x-matroska",avi:"video/x-msvideo",mov:"video/quicktime",qt:"video/quicktime",m4v:"video/x-m4v"};l.watch(()=>I.src,()=>{t.isError=!1,o(),l.nextTick(()=>{a()})});const n=l.ref(null),s=d=>{var Z;const m=(Z=rB(d))==null?void 0:Z.toLowerCase();return m?A[m]??"video/mp4":"video/mp4"},o=()=>{i&&(URL.revokeObjectURL(i),i=null)},a=async()=>{try{if(!n.value||!I.src)return;const d=document.createElement("video");d.muted=!0,d.preload="metadata",d.playsInline=!0;const m=await fetch(I.src);if(!m.ok)throw new Error("Failed to fetch video");const Z=new Blob([await m.arrayBuffer()],{type:s(I.src)});i=URL.createObjectURL(Z),d.src=i;const u=n.value.getContext("2d");if(!u)return;const h=()=>{if(!n.value)return;const G=d.videoWidth||1,w=d.videoHeight||1;n.value.width=G,n.value.height=w,u.clearRect(0,0,G,w),u.drawImage(d,0,0,G,w),e("load")};d.addEventListener("loadedmetadata",()=>{if(!n.value)return;n.value.width=d.videoWidth||1,n.value.height=d.videoHeight||1;const G=Number.isFinite(d.duration)&&d.duration>1?1:0;if(G===0){h();return}d.currentTime=G}),d.addEventListener("seeked",()=>{h()}),d.addEventListener("loadeddata",()=>{var G,w;(!((G=n.value)!=null&&G.width)||!((w=n.value)!=null&&w.height))&&h()}),d.addEventListener("error",G=>{t.isError=!0,e("error",G)})}catch{e("error",new Event("error")),t.isError=!0}};return l.onMounted(()=>{l.nextTick(()=>{a()})}),l.onUnmounted(()=>{o()}),(d,m)=>t.isError?(l.openBlock(),l.createElementBlock("img",{key:1,src:l.unref(rs)},null,8,uQg)):(l.openBlock(),l.createElementBlock("canvas",{key:0,ref_key:"canvasRef",ref:n,class:"video-preview"},null,512))}}),AA=C=>C?C instanceof File?C.type==="application/pdf":Er(C):!1;typeof window<"u"&&(window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),typeof window.CustomEvent!="function"&&(window.CustomEvent=function(g,I){I=I||{bubbles:!1,cancelable:!1,detail:null};var e=document.createEvent("CustomEvent");return e.initCustomEvent(g,I.bubbles,I.cancelable,I.detail),e}));const hQg=typeof document<"u"&&!!document.documentMode;let GX;function GQg(){return GX||(GX=document.createElement("div").style)}const pF=["webkit","moz","ms"],ZB={};function wX(C){if(ZB[C])return ZB[C];const g=GQg();if(C in g)return ZB[C]=C;const I=C[0].toUpperCase()+C.slice(1);let e=pF.length;for(;e--;){const t=`${pF[e]}${I}`;if(t in g)return ZB[C]=t}}function bB(C,g){return parseFloat(g[wX(C)])||0}function uB(C,g,I=window.getComputedStyle(C)){const e=g==="border"?"Width":"";return{left:bB(`${g}Left${e}`,I),right:bB(`${g}Right${e}`,I),top:bB(`${g}Top${e}`,I),bottom:bB(`${g}Bottom${e}`,I)}}function gZ(C,g,I){C.style[wX(g)]=I}function wQg(C,g){const I=wX("transform");gZ(C,"transition",`${I} ${g.duration}ms ${g.easing}`)}function WQg(C,{x:g,y:I,scale:e,isSVG:t},i){if(gZ(C,"transform",`scale(${e}) translate(${g}px, ${I}px)`),t&&hQg){const A=window.getComputedStyle(C).getPropertyValue("transform");C.setAttribute("transform",A)}}function WX(C){let g=C.parentNode;(!g||g.nodeType!==1)&&(g=document.documentElement);const I=window.getComputedStyle(C),e=window.getComputedStyle(g),t=C.getBoundingClientRect(),i=g.getBoundingClientRect();return{elem:{style:I,width:t.width,height:t.height,top:t.top,bottom:t.bottom,left:t.left,right:t.right,margin:uB(C,"margin",I),border:uB(C,"border",I)},parent:{style:e,width:i.width,height:i.height,top:i.top,bottom:i.bottom,left:i.left,right:i.right,padding:uB(g,"padding",e),border:uB(g,"border",e)}}}let Du={down:"mousedown",move:"mousemove",up:"mouseup mouseleave"};typeof window<"u"&&(typeof window.PointerEvent=="function"?Du={down:"pointerdown",move:"pointermove",up:"pointerup pointerleave pointercancel"}:typeof window.TouchEvent=="function"&&(Du={down:"touchstart",move:"touchmove",up:"touchend touchcancel"}));function BX(C,g,I,e){Du[C].split(" ").forEach(t=>{g.addEventListener(t,I,e)})}function pX(C,g,I){Du[C].split(" ").forEach(e=>{g.removeEventListener(e,I)})}function YF(C,g){let I=C.length;for(;I--;)if(C[I].pointerId===g.pointerId)return I;return-1}function YX(C,g){let I;if(g.touches){I=0;for(const e of g.touches)e.pointerId=I++,YX(C,e);return}I=YF(C,g),I>-1&&C.splice(I,1),C.push(g)}function BQg(C,g){if(g.touches){for(;C.length;)C.pop();return}const I=YF(C,g);I>-1&&C.splice(I,1)}function yF(C){C=C.slice(0);let g=C.pop(),I;for(;I=C.pop();)g={clientX:(I.clientX-g.clientX)/2+g.clientX,clientY:(I.clientY-g.clientY)/2+g.clientY};return g}function yX(C){if(C.length<2)return 0;const g=C[0],I=C[1];return Math.sqrt(Math.pow(Math.abs(I.clientX-g.clientX),2)+Math.pow(Math.abs(I.clientY-g.clientY),2))}function pQg(C){let g=C;for(;g&&g.parentNode;){if(g.parentNode===document)return!0;g=g.parentNode instanceof ShadowRoot?g.parentNode.host:g.parentNode}return!1}function YQg(C){return(C.getAttribute("class")||"").trim()}function yQg(C,g){return C.nodeType===1&&` ${YQg(C)} `.indexOf(` ${g} `)>-1}function NQg(C,g){for(let I=C;I!=null;I=I.parentNode)if(yQg(I,g.excludeClass)||g.exclude.indexOf(I)>-1)return!0;return!1}const VQg=/^http:[\w\.\/]+svg$/;function XQg(C){return VQg.test(C.namespaceURI)&&C.nodeName.toLowerCase()!=="svg"}function RQg(C){const g={};for(const I in C)C.hasOwnProperty(I)&&(g[I]=C[I]);return g}const NF={animate:!1,canvas:!1,cursor:"move",disablePan:!1,disableZoom:!1,disableXAxis:!1,disableYAxis:!1,duration:200,easing:"ease-in-out",exclude:[],excludeClass:"panzoom-exclude",handleStartEvent:C=>{C.preventDefault(),C.stopPropagation()},maxScale:4,minScale:.125,overflow:"hidden",panOnlyWhenZoomed:!1,pinchAndPan:!1,relative:!1,setTransform:WQg,startX:0,startY:0,startScale:1,step:.3,touchAction:"none"};function VF(C,g){if(!C)throw new Error("Panzoom requires an element as an argument");if(C.nodeType!==1)throw new Error("Panzoom requires an element with a nodeType of 1");if(!pQg(C))throw new Error("Panzoom should be called on elements that have been attached to the DOM");g={...NF,...g};const I=XQg(C),e=C.parentNode;e.style.overflow=g.overflow,e.style.userSelect="none",e.style.touchAction=g.touchAction,(g.canvas?e:C).style.cursor=g.cursor,C.style.userSelect="none",C.style.touchAction=g.touchAction,gZ(C,"transformOrigin",typeof g.origin=="string"?g.origin:I?"0 0":"50% 50%");function t(){e.style.overflow="",e.style.userSelect="",e.style.touchAction="",e.style.cursor="",C.style.cursor="",C.style.userSelect="",C.style.touchAction="",gZ(C,"transformOrigin","")}function i(og={}){for(const Wg in og)og.hasOwnProperty(Wg)&&(g[Wg]=og[Wg]);(og.hasOwnProperty("cursor")||og.hasOwnProperty("canvas"))&&(e.style.cursor=C.style.cursor="",(g.canvas?e:C).style.cursor=g.cursor),og.hasOwnProperty("overflow")&&(e.style.overflow=og.overflow),og.hasOwnProperty("touchAction")&&(e.style.touchAction=og.touchAction,C.style.touchAction=og.touchAction)}let A=0,n=0,s=1,o=!1;h(g.startScale,{animate:!1,force:!0}),setTimeout(()=>{u(g.startX,g.startY,{animate:!1,force:!0})});function a(og,Wg,fg){if(fg.silent)return;const Rg=new CustomEvent(og,{detail:Wg});C.dispatchEvent(Rg)}function d(og,Wg,fg){const Rg={x:A,y:n,scale:s,isSVG:I,originalEvent:fg};return requestAnimationFrame(()=>{typeof Wg.animate=="boolean"&&(Wg.animate?wQg(C,Wg):gZ(C,"transition","none")),Wg.setTransform(C,Rg,Wg),a(og,Rg,Wg),a("panzoomchange",Rg,Wg)}),Rg}function m(og,Wg,fg,Rg){const Bg={...g,...Rg},kg={x:A,y:n,opts:Bg};if(!(Rg!=null&&Rg.force)&&(Bg.disablePan||Bg.panOnlyWhenZoomed&&s===Bg.startScale))return kg;if(og=parseFloat(og),Wg=parseFloat(Wg),Bg.disableXAxis||(kg.x=(Bg.relative?A:0)+og),Bg.disableYAxis||(kg.y=(Bg.relative?n:0)+Wg),Bg.contain){const Vg=WX(C),gI=Vg.elem.width/s,qg=Vg.elem.height/s,CC=gI*fg,NC=qg*fg,BC=(CC-gI)/2,eC=(NC-qg)/2;if(Bg.contain==="inside"){const te=(-Vg.elem.margin.left-Vg.parent.padding.left+BC)/fg,jI=(Vg.parent.width-CC-Vg.parent.padding.left-Vg.elem.margin.left-Vg.parent.border.left-Vg.parent.border.right+BC)/fg;kg.x=Math.max(Math.min(kg.x,jI),te);const Be=(-Vg.elem.margin.top-Vg.parent.padding.top+eC)/fg,SI=(Vg.parent.height-NC-Vg.parent.padding.top-Vg.elem.margin.top-Vg.parent.border.top-Vg.parent.border.bottom+eC)/fg;kg.y=Math.max(Math.min(kg.y,SI),Be)}else if(Bg.contain==="outside"){const te=(-(CC-Vg.parent.width)-Vg.parent.padding.left-Vg.parent.border.left-Vg.parent.border.right+BC)/fg,jI=(BC-Vg.parent.padding.left)/fg;kg.x=Math.max(Math.min(kg.x,jI),te);const Be=(-(NC-Vg.parent.height)-Vg.parent.padding.top-Vg.parent.border.top-Vg.parent.border.bottom+eC)/fg,SI=(eC-Vg.parent.padding.top)/fg;kg.y=Math.max(Math.min(kg.y,SI),Be)}}return Bg.roundPixels&&(kg.x=Math.round(kg.x),kg.y=Math.round(kg.y)),kg}function Z(og,Wg){const fg={...g,...Wg},Rg={scale:s,opts:fg};if(!(Wg!=null&&Wg.force)&&fg.disableZoom)return Rg;let Bg=g.minScale,kg=g.maxScale;if(fg.contain){const Vg=WX(C),gI=Vg.elem.width/s,qg=Vg.elem.height/s;if(gI>1&&qg>1){const CC=Vg.parent.width-Vg.parent.border.left-Vg.parent.border.right,NC=Vg.parent.height-Vg.parent.border.top-Vg.parent.border.bottom,BC=CC/gI,eC=NC/qg;g.contain==="inside"?kg=Math.min(kg,BC,eC):g.contain==="outside"&&(Bg=Math.max(Bg,BC,eC))}}return Rg.scale=Math.min(Math.max(og,Bg),kg),Rg}function u(og,Wg,fg,Rg){const Bg=m(og,Wg,s,fg);return A!==Bg.x||n!==Bg.y?(A=Bg.x,n=Bg.y,d("panzoompan",Bg.opts,Rg)):{x:A,y:n,scale:s,isSVG:I,originalEvent:Rg}}function h(og,Wg,fg){const Rg=Z(og,Wg),Bg=Rg.opts;if(!(Wg!=null&&Wg.force)&&Bg.disableZoom)return;og=Rg.scale;let kg=A,Vg=n;if(Bg.focal){const qg=Bg.focal;kg=(qg.x/og-qg.x/s+A*og)/og,Vg=(qg.y/og-qg.y/s+n*og)/og}const gI=m(kg,Vg,og,{relative:!1,force:!0});return A=gI.x,n=gI.y,s=og,d("panzoomzoom",Bg,fg)}function G(og,Wg){const fg={...g,animate:!0,...Wg};return h(s*Math.exp((og?1:-1)*fg.step),fg)}function w(og){return G(!0,og)}function B(og){return G(!1,og)}function p(og,Wg,fg,Rg){const Bg=WX(C),kg={width:Bg.parent.width-Bg.parent.padding.left-Bg.parent.padding.right-Bg.parent.border.left-Bg.parent.border.right,height:Bg.parent.height-Bg.parent.padding.top-Bg.parent.padding.bottom-Bg.parent.border.top-Bg.parent.border.bottom};let Vg=Wg.clientX-Bg.parent.left-Bg.parent.padding.left-Bg.parent.border.left-Bg.elem.margin.left,gI=Wg.clientY-Bg.parent.top-Bg.parent.padding.top-Bg.parent.border.top-Bg.elem.margin.top;I||(Vg-=Bg.elem.width/s/2,gI-=Bg.elem.height/s/2);const qg={x:Vg/kg.width*(kg.width*og),y:gI/kg.height*(kg.height*og)};return h(og,{...fg,animate:!1,focal:qg},Rg)}function Y(og,Wg){og.preventDefault();const fg={...g,...Wg,animate:!1},Bg=(og.deltaY===0&&og.deltaX?og.deltaX:og.deltaY)<0?1:-1,kg=Z(s*Math.exp(Bg*fg.step/3),fg).scale;return p(kg,og,fg,og)}function N(og){const Wg={...g,animate:!0,force:!0,...og};s=Z(Wg.startScale,Wg).scale;const fg=m(Wg.startX,Wg.startY,s,Wg);return A=fg.x,n=fg.y,d("panzoomreset",Wg)}let R,X,K,D,k,z;const v=[];function O(og){if(NQg(og.target,g))return;YX(v,og),o=!0,g.handleStartEvent(og),R=A,X=n,a("panzoomstart",{x:A,y:n,scale:s,isSVG:I,originalEvent:og},g);const Wg=yF(v);K=Wg.clientX,D=Wg.clientY,k=s,z=yX(v)}function Cg(og){if(!o||R===void 0||X===void 0||K===void 0||D===void 0)return;YX(v,og);const Wg=yF(v),fg=v.length>1;let Rg=s;if(fg){z===0&&(z=yX(v));const Bg=yX(v)-z;Rg=Z(Bg*g.step/80+k).scale,p(Rg,Wg,{animate:!1},og)}(!fg||g.pinchAndPan)&&u(R+(Wg.clientX-K)/Rg,X+(Wg.clientY-D)/Rg,{animate:!1},og)}function U(og){v.length===1&&a("panzoomend",{x:A,y:n,scale:s,isSVG:I,originalEvent:og},g),BQg(v,og),o&&(o=!1,R=X=K=D=void 0)}let T=!1;function q(){T||(T=!0,BX("down",g.canvas?e:C,O),BX("move",document,Cg,{passive:!0}),BX("up",document,U,{passive:!0}))}function cg(){T=!1,pX("down",g.canvas?e:C,O),pX("move",document,Cg),pX("up",document,U)}return g.noBind||q(),{bind:q,destroy:cg,eventNames:Du,getPan:()=>({x:A,y:n}),getScale:()=>s,getOptions:()=>RQg(g),handleDown:O,handleMove:Cg,handleUp:U,pan:u,reset:N,resetStyle:t,setOptions:i,setStyle:(og,Wg)=>gZ(C,og,Wg),zoom:h,zoomIn:w,zoomOut:B,zoomToPoint:p,zoomWithWheel:Y}}VF.defaultOptions=NF;const MQg={ref:"contentRef",class:"slider-modal__content"},HQg=["onClick"],fQg={class:"slider-modal__side-bar-count"},SQg={key:0,class:"slider-modal__mobile-header"},DQg={class:"slider-modal__mobile-header-block"},kQg={class:"slider-modal__mobile-header-block"},FQg={class:"slider-modal__counter"},KQg={class:"slider-modal__name"},zQg=["src"],JQg=["data-testid"],xQg=["src","type"],TQg={key:0,class:"slider-modal__extension"},LQg=["src"],vQg={class:"slider-modal__bottom"},jQg={class:"slider-modal__nav-block"},QQg=["disabled"],OQg=["src","alt"],UQg={key:3,class:"slider-modal__slide-extension"},EQg=["src"],PQg=["disabled"],_Qg={class:"slider-modal__nav-block"},qQg={class:"slider-modal__sub-nav"},$Qg=["disabled"],gOg=["disabled"],IOg=["disabled"],COg={class:"slider-modal__sub-nav"},eOg=["disabled"],tOg=["disabled"],NX=80,XF=20,iOg=80,AOg=20,nOg=200,hB=Qg(l.defineComponent({name:"SliderModal",__name:"SliderModal",props:{items:{},defaultIndex:{default:0},dataTestid:{default:"SliderModal"},animateType:{},open:{type:Boolean},position:{},width:{},height:{},disableCloseOnOutsideClick:{type:Boolean},isResetFocus:{type:Boolean}},emits:["close","unmounted","end-animation"],setup(C,{emit:g}){const I=C,e=g,t=window.matchMedia("(max-width: 768px)"),i=l.reactive({defaultIndex:I.defaultIndex,file:I.items[I.defaultIndex],sideBarItems:[],sideBarIndex:0,sideBarLength:0,isErrorFile:!1,isClickOnExit:!1,isMobile:!1,isPointerActive:!1,isExistSwipe:!1,isChangeItemSwipe:!1,isSwipeNextSlide:!1,isSwipePrevSlide:!1,isExitScrollActive:!1,isImagePositioned:!1,zoomValue:1,offsetX:0,offsetY:0,startX:0,startY:0,startXForMobile:0,startYForMobile:0,endXForMobile:0,endYForMobile:0,overscrollDelta:0,startScrollTop:0,rotateValue:0}),A=l.ref(null),n=l.ref(null),s=l.ref(null),o=l.ref(null),a=l.ref(null),d=l.ref(null),m=l.ref(null),Z=l.ref(null),u=l.ref(null);let h=null,G=null,w=null;const B=l.computed(()=>i.defaultIndex===0),p=l.computed(()=>i.defaultIndex===I.items.length-1),Y=lg=>rB(lg??null),N=lg=>!!(lg!=null&&lg.path)&&!!Y(lg.path)&&!AA(lg.path)&&!AA(lg.file)&&!Aa(lg.path)&&!Yl(lg.path),R=l.computed(()=>{var lg;return Y((lg=i.file)==null?void 0:lg.path)}),X=l.computed(()=>N(i.file)),K=lg=>N(lg),D=l.computed(()=>{var lg,bg,Sg,Kg;return!(AA((lg=i.file)==null?void 0:lg.path)||AA((bg=i.file)==null?void 0:bg.file)||Aa((Sg=i.file)==null?void 0:Sg.path)||Yl((Kg=i.file)==null?void 0:Kg.path))}),k=l.computed(()=>{var bg,Sg;let lg=!i.file||i.isErrorFile||D.value;return lg=Yl((bg=i.file)==null?void 0:bg.path)||lg,lg=i.isMobile&&AA((Sg=i.file)==null?void 0:Sg.path)||lg,lg}),z=l.computed(()=>{var bg;let lg=!i.file||i.isErrorFile||D.value;return lg=Yl((bg=i.file)==null?void 0:bg.path)||lg,lg}),v=l.computed(()=>!i.file||!i.file.path||i.isErrorFile),O=l.computed(()=>{var bg;let lg=!i.file||i.isErrorFile||D.value;return lg=Yl((bg=i.file)==null?void 0:bg.path)||lg,lg}),Cg=l.computed(()=>({transform:`
1606
+ `)){const e=document.createElement("div");e.append(I?document.createTextNode(I):document.createElement("br")),this.editorDiv.append(e)}},X4=function(){return c(this,uA).replaceAll(" "," ")},dH=function(I){return I.replaceAll(" "," ")},R4=function(I){const{value:e,fontSize:t,color:i,pageIndex:A}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||I.value!==e||I.fontSize!==t||I.color.some((n,s)=>n!==i[s])||I.pageIndex!==A},M(FC,Zo),sg(FC,"_freeTextDefaultContent",""),sg(FC,"_internalPadding",0),sg(FC,"_defaultColor",null),sg(FC,"_defaultFontSize",10),sg(FC,"_type","freetext"),sg(FC,"_editorType",oI.FREETEXT);let iX=FC;class xg{toSVGPath(){qI("Abstract method `toSVGPath` must be implemented.")}get box(){qI("Abstract getter `box` must be implemented.")}serialize(g,I){qI("Abstract method `serialize` must be implemented.")}static _rescale(g,I,e,t,i,A){A||(A=new Float32Array(g.length));for(let n=0,s=g.length;n<s;n+=2)A[n]=I+g[n]*t,A[n+1]=e+g[n+1]*i;return A}static _rescaleAndSwap(g,I,e,t,i,A){A||(A=new Float32Array(g.length));for(let n=0,s=g.length;n<s;n+=2)A[n]=I+g[n+1]*t,A[n+1]=e+g[n]*i;return A}static _translate(g,I,e,t){t||(t=new Float32Array(g.length));for(let i=0,A=g.length;i<A;i+=2)t[i]=I+g[i],t[i+1]=e+g[i+1];return t}static svgRound(g){return Math.round(g*1e4)}static _normalizePoint(g,I,e,t,i){switch(i){case 90:return[1-I/e,g/t];case 180:return[1-g/e,1-I/t];case 270:return[I/e,1-g/t];default:return[g/e,I/t]}}static _normalizePagePoint(g,I,e){switch(e){case 90:return[1-I,g];case 180:return[1-g,1-I];case 270:return[I,1-g];default:return[g,I]}}static createBezierPoints(g,I,e,t,i,A){return[(g+5*e)/6,(I+5*t)/6,(5*e+i)/6,(5*t+A)/6,(e+i)/2,(t+A)/2]}}sg(xg,"PRECISION",1e-4);const bo=class bo{constructor({x:g,y:I},e,t,i,A,n=0){M(this,je);M(this,GA);M(this,gl,[]);M(this,D0);M(this,k0);M(this,Pl,[]);M(this,fI,new Float32Array(18));M(this,Tm);M(this,Lm);M(this,A2);M(this,n2);M(this,F0);M(this,K0);M(this,dd,[]);y(this,GA,e),y(this,K0,i*t),y(this,k0,A),c(this,fI).set([NaN,NaN,NaN,NaN,g,I],6),y(this,D0,n),y(this,n2,c(bo,l2)*t),y(this,A2,c(bo,FY)*t),y(this,F0,t),c(this,dd).push(g,I)}isEmpty(){return isNaN(c(this,fI)[8])}add({x:g,y:I}){var D;y(this,Tm,g),y(this,Lm,I);const[e,t,i,A]=c(this,GA);let[n,s,o,a]=c(this,fI).subarray(8,12);const d=g-o,m=I-a,Z=Math.hypot(d,m);if(Z<c(this,A2))return!1;const u=Z-c(this,n2),h=u/Z,G=h*d,w=h*m;let B=n,p=s;n=o,s=a,o+=G,a+=w,(D=c(this,dd))==null||D.push(g,I);const Y=-w/u,N=G/u,R=Y*c(this,K0),X=N*c(this,K0);return c(this,fI).set(c(this,fI).subarray(2,8),0),c(this,fI).set([o+R,a+X],4),c(this,fI).set(c(this,fI).subarray(14,18),12),c(this,fI).set([o-R,a-X],16),isNaN(c(this,fI)[6])?(c(this,Pl).length===0&&(c(this,fI).set([n+R,s+X],2),c(this,Pl).push(NaN,NaN,NaN,NaN,(n+R-e)/i,(s+X-t)/A),c(this,fI).set([n-R,s-X],14),c(this,gl).push(NaN,NaN,NaN,NaN,(n-R-e)/i,(s-X-t)/A)),c(this,fI).set([B,p,n,s,o,a],6),!this.isEmpty()):(c(this,fI).set([B,p,n,s,o,a],6),Math.abs(Math.atan2(p-s,B-n)-Math.atan2(w,G))<Math.PI/2?([n,s,o,a]=c(this,fI).subarray(2,6),c(this,Pl).push(NaN,NaN,NaN,NaN,((n+o)/2-e)/i,((s+a)/2-t)/A),[n,s,B,p]=c(this,fI).subarray(14,18),c(this,gl).push(NaN,NaN,NaN,NaN,((B+n)/2-e)/i,((p+s)/2-t)/A),!0):([B,p,n,s,o,a]=c(this,fI).subarray(0,6),c(this,Pl).push(((B+5*n)/6-e)/i,((p+5*s)/6-t)/A,((5*n+o)/6-e)/i,((5*s+a)/6-t)/A,((n+o)/2-e)/i,((s+a)/2-t)/A),[o,a,n,s,B,p]=c(this,fI).subarray(12,18),c(this,gl).push(((B+5*n)/6-e)/i,((p+5*s)/6-t)/A,((5*n+o)/6-e)/i,((5*s+a)/6-t)/A,((n+o)/2-e)/i,((s+a)/2-t)/A),!0))}toSVGPath(){if(this.isEmpty())return"";const g=c(this,Pl),I=c(this,gl);if(isNaN(c(this,fI)[6])&&!this.isEmpty())return H(this,je,M4).call(this);const e=[];e.push(`M${g[4]} ${g[5]}`);for(let t=6;t<g.length;t+=6)isNaN(g[t])?e.push(`L${g[t+4]} ${g[t+5]}`):e.push(`C${g[t]} ${g[t+1]} ${g[t+2]} ${g[t+3]} ${g[t+4]} ${g[t+5]}`);H(this,je,f4).call(this,e);for(let t=I.length-6;t>=6;t-=6)isNaN(I[t])?e.push(`L${I[t+4]} ${I[t+5]}`):e.push(`C${I[t]} ${I[t+1]} ${I[t+2]} ${I[t+3]} ${I[t+4]} ${I[t+5]}`);return H(this,je,H4).call(this,e),e.join(" ")}newFreeDrawOutline(g,I,e,t,i,A){return new hF(g,I,e,t,i,A)}getOutlines(){var d;const g=c(this,Pl),I=c(this,gl),e=c(this,fI),[t,i,A,n]=c(this,GA),s=new Float32Array((((d=c(this,dd))==null?void 0:d.length)??0)+2);for(let m=0,Z=s.length-2;m<Z;m+=2)s[m]=(c(this,dd)[m]-t)/A,s[m+1]=(c(this,dd)[m+1]-i)/n;if(s[s.length-2]=(c(this,Tm)-t)/A,s[s.length-1]=(c(this,Lm)-i)/n,isNaN(e[6])&&!this.isEmpty())return H(this,je,S4).call(this,s);const o=new Float32Array(c(this,Pl).length+24+c(this,gl).length);let a=g.length;for(let m=0;m<a;m+=2){if(isNaN(g[m])){o[m]=o[m+1]=NaN;continue}o[m]=g[m],o[m+1]=g[m+1]}a=H(this,je,k4).call(this,o,a);for(let m=I.length-6;m>=6;m-=6)for(let Z=0;Z<6;Z+=2){if(isNaN(I[m+Z])){o[a]=o[a+1]=NaN,a+=2;continue}o[a]=I[m+Z],o[a+1]=I[m+Z+1],a+=2}return H(this,je,D4).call(this,o,a),this.newFreeDrawOutline(o,s,c(this,GA),c(this,F0),c(this,D0),c(this,k0))}};GA=new WeakMap,gl=new WeakMap,D0=new WeakMap,k0=new WeakMap,Pl=new WeakMap,fI=new WeakMap,Tm=new WeakMap,Lm=new WeakMap,A2=new WeakMap,n2=new WeakMap,F0=new WeakMap,K0=new WeakMap,dd=new WeakMap,l2=new WeakMap,kY=new WeakMap,FY=new WeakMap,je=new WeakSet,sw=function(){const g=c(this,fI).subarray(4,6),I=c(this,fI).subarray(16,18),[e,t,i,A]=c(this,GA);return[(c(this,Tm)+(g[0]-I[0])/2-e)/i,(c(this,Lm)+(g[1]-I[1])/2-t)/A,(c(this,Tm)+(I[0]-g[0])/2-e)/i,(c(this,Lm)+(I[1]-g[1])/2-t)/A]},M4=function(){const[g,I,e,t]=c(this,GA),[i,A,n,s]=H(this,je,sw).call(this);return`M${(c(this,fI)[2]-g)/e} ${(c(this,fI)[3]-I)/t} L${(c(this,fI)[4]-g)/e} ${(c(this,fI)[5]-I)/t} L${i} ${A} L${n} ${s} L${(c(this,fI)[16]-g)/e} ${(c(this,fI)[17]-I)/t} L${(c(this,fI)[14]-g)/e} ${(c(this,fI)[15]-I)/t} Z`},H4=function(g){const I=c(this,gl);g.push(`L${I[4]} ${I[5]} Z`)},f4=function(g){const[I,e,t,i]=c(this,GA),A=c(this,fI).subarray(4,6),n=c(this,fI).subarray(16,18),[s,o,a,d]=H(this,je,sw).call(this);g.push(`L${(A[0]-I)/t} ${(A[1]-e)/i} L${s} ${o} L${a} ${d} L${(n[0]-I)/t} ${(n[1]-e)/i}`)},S4=function(g){const I=c(this,fI),[e,t,i,A]=c(this,GA),[n,s,o,a]=H(this,je,sw).call(this),d=new Float32Array(36);return d.set([NaN,NaN,NaN,NaN,(I[2]-e)/i,(I[3]-t)/A,NaN,NaN,NaN,NaN,(I[4]-e)/i,(I[5]-t)/A,NaN,NaN,NaN,NaN,n,s,NaN,NaN,NaN,NaN,o,a,NaN,NaN,NaN,NaN,(I[16]-e)/i,(I[17]-t)/A,NaN,NaN,NaN,NaN,(I[14]-e)/i,(I[15]-t)/A],0),this.newFreeDrawOutline(d,g,c(this,GA),c(this,F0),c(this,D0),c(this,k0))},D4=function(g,I){const e=c(this,gl);return g.set([NaN,NaN,NaN,NaN,e[4],e[5]],I),I+=6},k4=function(g,I){const e=c(this,fI).subarray(4,6),t=c(this,fI).subarray(16,18),[i,A,n,s]=c(this,GA),[o,a,d,m]=H(this,je,sw).call(this);return g.set([NaN,NaN,NaN,NaN,(e[0]-i)/n,(e[1]-A)/s,NaN,NaN,NaN,NaN,o,a,NaN,NaN,NaN,NaN,d,m,NaN,NaN,NaN,NaN,(t[0]-i)/n,(t[1]-A)/s],I),I+=24},M(bo,l2,8),M(bo,kY,2),M(bo,FY,c(bo,l2)+c(bo,kY));let lB=bo;class hF extends xg{constructor(I,e,t,i,A,n){super();M(this,KY);M(this,z0);M(this,vm,new Float32Array(4));M(this,uo);M(this,s2);M(this,wA);M(this,o2);M(this,We);y(this,We,I),y(this,wA,e),y(this,z0,t),y(this,o2,i),y(this,uo,A),y(this,s2,n),this.firstPoint=[NaN,NaN],this.lastPoint=[NaN,NaN],H(this,KY,F4).call(this,n);const[s,o,a,d]=c(this,vm);for(let m=0,Z=I.length;m<Z;m+=2)I[m]=(I[m]-s)/a,I[m+1]=(I[m+1]-o)/d;for(let m=0,Z=e.length;m<Z;m+=2)e[m]=(e[m]-s)/a,e[m+1]=(e[m+1]-o)/d}toSVGPath(){const I=[`M${c(this,We)[4]} ${c(this,We)[5]}`];for(let e=6,t=c(this,We).length;e<t;e+=6){if(isNaN(c(this,We)[e])){I.push(`L${c(this,We)[e+4]} ${c(this,We)[e+5]}`);continue}I.push(`C${c(this,We)[e]} ${c(this,We)[e+1]} ${c(this,We)[e+2]} ${c(this,We)[e+3]} ${c(this,We)[e+4]} ${c(this,We)[e+5]}`)}return I.push("Z"),I.join(" ")}serialize([I,e,t,i],A){const n=t-I,s=i-e;let o,a;switch(A){case 0:o=xg._rescale(c(this,We),I,i,n,-s),a=xg._rescale(c(this,wA),I,i,n,-s);break;case 90:o=xg._rescaleAndSwap(c(this,We),I,e,n,s),a=xg._rescaleAndSwap(c(this,wA),I,e,n,s);break;case 180:o=xg._rescale(c(this,We),t,e,-n,s),a=xg._rescale(c(this,wA),t,e,-n,s);break;case 270:o=xg._rescaleAndSwap(c(this,We),t,i,-n,-s),a=xg._rescaleAndSwap(c(this,wA),t,i,-n,-s);break}return{outline:Array.from(o),points:[Array.from(a)]}}get box(){return c(this,vm)}newOutliner(I,e,t,i,A,n=0){return new lB(I,e,t,i,A,n)}getNewOutline(I,e){const[t,i,A,n]=c(this,vm),[s,o,a,d]=c(this,z0),m=A*a,Z=n*d,u=t*a+s,h=i*d+o,G=this.newOutliner({x:c(this,wA)[0]*m+u,y:c(this,wA)[1]*Z+h},c(this,z0),c(this,o2),I,c(this,s2),e??c(this,uo));for(let w=2;w<c(this,wA).length;w+=2)G.add({x:c(this,wA)[w]*m+u,y:c(this,wA)[w+1]*Z+h});return G.getOutlines()}}z0=new WeakMap,vm=new WeakMap,uo=new WeakMap,s2=new WeakMap,wA=new WeakMap,o2=new WeakMap,We=new WeakMap,KY=new WeakSet,F4=function(I){const e=c(this,We);let t=e[4],i=e[5];const A=[t,i,t,i];let n=t,s=i,o=t,a=i;const d=I?Math.max:Math.min,m=new Float32Array(4);for(let u=6,h=e.length;u<h;u+=6){const G=e[u+4],w=e[u+5];isNaN(e[u])?(Xg.pointBoundingBox(G,w,A),s>w?(n=G,s=w):s===w&&(n=d(n,G)),a<w?(o=G,a=w):a===w&&(o=d(o,G))):(m.set(Zs,0),Xg.bezierBoundingBox(t,i,...e.slice(u,u+6),m),Xg.rectBoundingBox(...m,A),s>m[1]?(n=m[0],s=m[1]):s===m[1]&&(n=d(n,m[0])),a<m[3]?(o=m[2],a=m[3]):a===m[3]&&(o=d(o,m[2]))),t=G,i=w}const Z=c(this,vm);Z[0]=A[0]-c(this,uo),Z[1]=A[1]-c(this,uo),Z[2]=A[2]-A[0]+2*c(this,uo),Z[3]=A[3]-A[1]+2*c(this,uo),this.firstPoint=[n,s],this.lastPoint=[o,a]};class AX{constructor(g,I=0,e=0,t=!0){M(this,mi);M(this,a2);M(this,d2);M(this,c2);M(this,cd,[]);M(this,Il,[]);const i=Zs.slice(),A=10**-4;for(const{x:h,y:G,width:w,height:B}of g){const p=Math.floor((h-I)/A)*A,Y=Math.ceil((h+w+I)/A)*A,N=Math.floor((G-I)/A)*A,R=Math.ceil((G+B+I)/A)*A,X=[p,N,R,!0],K=[Y,N,R,!1];c(this,cd).push(X,K),Xg.rectBoundingBox(p,N,Y,R,i)}const n=i[2]-i[0]+2*e,s=i[3]-i[1]+2*e,o=i[0]-e,a=i[1]-e;let d=t?-1/0:1/0,m=1/0;const Z=c(this,cd).at(t?-1:-2),u=[Z[0],Z[2]];for(const h of c(this,cd)){const[G,w,B,p]=h;!p&&t?w<m?(m=w,d=G):w===m&&(d=Math.max(d,G)):p&&!t&&(w<m?(m=w,d=G):w===m&&(d=Math.min(d,G))),h[0]=(G-o)/n,h[1]=(w-a)/s,h[2]=(B-a)/s}y(this,a2,new Float32Array([o,a,n,s])),y(this,d2,[d,m]),y(this,c2,u)}getOutlines(){c(this,cd).sort((I,e)=>I[0]-e[0]||I[1]-e[1]||I[2]-e[2]);const g=[];for(const I of c(this,cd))I[3]?(g.push(...H(this,mi,cH).call(this,I)),H(this,mi,z4).call(this,I)):(H(this,mi,J4).call(this,I),g.push(...H(this,mi,cH).call(this,I)));return H(this,mi,K4).call(this,g)}}a2=new WeakMap,d2=new WeakMap,c2=new WeakMap,cd=new WeakMap,Il=new WeakMap,mi=new WeakSet,K4=function(g){const I=[],e=new Set;for(const A of g){const[n,s,o]=A;I.push([n,s,A],[n,o,A])}I.sort((A,n)=>A[1]-n[1]||A[0]-n[0]);for(let A=0,n=I.length;A<n;A+=2){const s=I[A][2],o=I[A+1][2];s.push(o),o.push(s),e.add(s),e.add(o)}const t=[];let i;for(;e.size>0;){const A=e.values().next().value;let[n,s,o,a,d]=A;e.delete(A);let m=n,Z=s;for(i=[n,o],t.push(i);;){let u;if(e.has(a))u=a;else if(e.has(d))u=d;else break;e.delete(u),[n,s,o,a,d]=u,m!==n&&(i.push(m,Z,n,Z===s?s:o),m=n),Z=Z===s?o:s}i.push(m,Z)}return new CQg(t,c(this,a2),c(this,d2),c(this,c2))},Iy=function(g){const I=c(this,Il);let e=0,t=I.length-1;for(;e<=t;){const i=e+t>>1,A=I[i][0];if(A===g)return i;A<g?e=i+1:t=i-1}return t+1},z4=function([,g,I]){const e=H(this,mi,Iy).call(this,g);c(this,Il).splice(e,0,[g,I])},J4=function([,g,I]){const e=H(this,mi,Iy).call(this,g);for(let t=e;t<c(this,Il).length;t++){const[i,A]=c(this,Il)[t];if(i!==g)break;if(i===g&&A===I){c(this,Il).splice(t,1);return}}for(let t=e-1;t>=0;t--){const[i,A]=c(this,Il)[t];if(i!==g)break;if(i===g&&A===I){c(this,Il).splice(t,1);return}}},cH=function(g){const[I,e,t]=g,i=[[I,e,t]],A=H(this,mi,Iy).call(this,t);for(let n=0;n<A;n++){const[s,o]=c(this,Il)[n];for(let a=0,d=i.length;a<d;a++){const[,m,Z]=i[a];if(!(o<=m||Z<=s)){if(m>=s){if(Z>o)i[a][1]=o;else{if(d===1)return[];i.splice(a,1),a--,d--}continue}i[a][2]=s,Z>o&&i.push([I,o,Z])}}}return i};class CQg extends xg{constructor(I,e,t,i){super();M(this,m2);M(this,J0);y(this,J0,I),y(this,m2,e),this.firstPoint=t,this.lastPoint=i}toSVGPath(){const I=[];for(const e of c(this,J0)){let[t,i]=e;I.push(`M${t} ${i}`);for(let A=2;A<e.length;A+=2){const n=e[A],s=e[A+1];n===t?(I.push(`V${s}`),i=s):s===i&&(I.push(`H${n}`),t=n)}I.push("Z")}return I.join(" ")}serialize([I,e,t,i],A){const n=[],s=t-I,o=i-e;for(const a of c(this,J0)){const d=new Array(a.length);for(let m=0;m<a.length;m+=2)d[m]=I+a[m]*s,d[m+1]=i-a[m+1]*o;n.push(d)}return n}get box(){return c(this,m2)}get classNamesForOutlining(){return["highlightOutline"]}}m2=new WeakMap,J0=new WeakMap;class nX extends lB{newFreeDrawOutline(g,I,e,t,i,A){return new eQg(g,I,e,t,i,A)}}class eQg extends hF{newOutliner(g,I,e,t,i,A=0){return new nX(g,I,e,t,i,A)}}const EI=class EI extends RC{constructor(I){super({...I,name:"highlightEditor"});M(this,BI);M(this,x0,null);M(this,r2,0);M(this,ho);M(this,jm,null);M(this,Z2,null);M(this,Ti,null);M(this,b2,null);M(this,u2,0);M(this,Qm,null);M(this,WA,null);M(this,BA,null);M(this,Yt,!1);M(this,T0,null);M(this,L0,null);M(this,jt,null);M(this,v0,"");M(this,cn);M(this,h2,"");this.color=I.color||EI._defaultColor,y(this,cn,I.thickness||EI._defaultThickness),this.opacity=I.opacity||EI._defaultOpacity,y(this,ho,I.boxes||null),y(this,h2,I.methodOfCreation||""),y(this,v0,I.text||""),this._isDraggable=!1,this.defaultL10nId="pdfjs-editor-highlight-editor",I.highlightId>-1?(y(this,Yt,!0),H(this,BI,Cy).call(this,I),H(this,BI,Gr).call(this)):c(this,ho)&&(y(this,x0,I.anchorNode),y(this,r2,I.anchorOffset),y(this,b2,I.focusNode),y(this,u2,I.focusOffset),H(this,BI,mH).call(this),H(this,BI,Gr).call(this),this.rotate(this.rotation)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-highlight-added-alert")}static get _keyboardManager(){const I=EI.prototype;return dI(this,"_keyboardManager",new Wu([[["ArrowLeft","mac+ArrowLeft"],I._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],I._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],I._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],I._moveCaret,{args:[3]}]]))}get telemetryInitialData(){return{action:"added",type:c(this,Yt)?"free_highlight":"highlight",color:this._uiManager.getNonHCMColorName(this.color),thickness:c(this,cn),methodOfCreation:c(this,h2)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.getNonHCMColorName(this.color)}}static computeTelemetryFinalData(I){return{numberOfColors:I.get("color").size}}static initialize(I,e){var t;RC.initialize(I,e),EI._defaultColor||(EI._defaultColor=((t=e.highlightColors)==null?void 0:t.values().next().value)||"#fff066")}static updateDefaultParams(I,e){switch(I){case hI.HIGHLIGHT_COLOR:EI._defaultColor=e;break;case hI.HIGHLIGHT_THICKNESS:EI._defaultThickness=e;break}}translateInPage(I,e){}get toolbarPosition(){return c(this,L0)}get commentButtonPosition(){return c(this,T0)}updateParams(I,e){switch(I){case hI.HIGHLIGHT_COLOR:H(this,BI,x4).call(this,e);break;case hI.HIGHLIGHT_THICKNESS:H(this,BI,T4).call(this,e);break}}static get defaultPropertiesToUpdate(){return[[hI.HIGHLIGHT_COLOR,EI._defaultColor],[hI.HIGHLIGHT_THICKNESS,EI._defaultThickness]]}get propertiesToUpdate(){return[[hI.HIGHLIGHT_COLOR,this.color||EI._defaultColor],[hI.HIGHLIGHT_THICKNESS,c(this,cn)||EI._defaultThickness],[hI.HIGHLIGHT_FREE,c(this,Yt)]]}onUpdatedColor(){var I,e;(I=this.parent)==null||I.drawLayer.updateProperties(c(this,BA),{root:{fill:this.color,"fill-opacity":this.opacity}}),(e=c(this,Z2))==null||e.updateColor(this.color),super.onUpdatedColor()}get toolbarButtons(){return this._uiManager.highlightColors?[["colorPicker",y(this,Z2,new tB({editor:this}))]]:super.toolbarButtons}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(H(this,BI,ty).call(this))}getBaseTranslation(){return[0,0]}getRect(I,e){return super.getRect(I,e,H(this,BI,ty).call(this))}onceAdded(I){this.annotationElementId||this.parent.addUndoableEditor(this),I&&this.div.focus()}remove(){H(this,BI,rH).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(H(this,BI,Gr).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(I){var t;let e=!1;this.parent&&!I?H(this,BI,rH).call(this):I&&(H(this,BI,Gr).call(this,I),e=!this.parent&&((t=this.div)==null?void 0:t.classList.contains("selectedEditor"))),super.setParent(I),this.show(this._isVisible),e&&this.select()}rotate(I){var i,A,n;const{drawLayer:e}=this.parent;let t;c(this,Yt)?(I=(I-this.rotation+360)%360,t=H(i=EI,mn,Xb).call(i,c(this,WA).box,I)):t=H(A=EI,mn,Xb).call(A,[this.x,this.y,this.width,this.height],I),e.updateProperties(c(this,BA),{bbox:t,root:{"data-main-rotation":I}}),e.updateProperties(c(this,jt),{bbox:H(n=EI,mn,Xb).call(n,c(this,Ti).box,I),root:{"data-main-rotation":I}})}render(){if(this.div)return this.div;const I=super.render();c(this,v0)&&(I.setAttribute("aria-label",c(this,v0)),I.setAttribute("role","mark")),c(this,Yt)?I.classList.add("free"):this.div.addEventListener("keydown",H(this,BI,v4).bind(this),{signal:this._uiManager._signal});const e=y(this,Qm,document.createElement("div"));return I.append(e),e.setAttribute("aria-hidden","true"),e.className="internal",e.style.clipPath=c(this,jm),this.setDims(),Rk(this,c(this,Qm),["pointerover","pointerleave"]),this.enableEditing(),I}pointerover(){var I;this.isSelected||(I=this.parent)==null||I.drawLayer.updateProperties(c(this,jt),{rootClass:{hovered:!0}})}pointerleave(){var I;this.isSelected||(I=this.parent)==null||I.drawLayer.updateProperties(c(this,jt),{rootClass:{hovered:!1}})}_moveCaret(I){switch(this.parent.unselect(this),I){case 0:case 2:H(this,BI,ey).call(this,!0);break;case 1:case 3:H(this,BI,ey).call(this,!1);break}}select(){var I;super.select(),c(this,jt)&&((I=this.parent)==null||I.drawLayer.updateProperties(c(this,jt),{rootClass:{hovered:!1,selected:!0}}))}unselect(){var I;super.unselect(),c(this,jt)&&((I=this.parent)==null||I.drawLayer.updateProperties(c(this,jt),{rootClass:{selected:!1}}),c(this,Yt)||H(this,BI,ey).call(this,!1))}get _mustFixPosition(){return!c(this,Yt)}show(I=this._isVisible){super.show(I),this.parent&&(this.parent.drawLayer.updateProperties(c(this,BA),{rootClass:{hidden:!I}}),this.parent.drawLayer.updateProperties(c(this,jt),{rootClass:{hidden:!I}}))}static startHighlighting(I,e,{target:t,x:i,y:A}){const{x:n,y:s,width:o,height:a}=t.getBoundingClientRect(),d=new AbortController,m=I.combinedSignal(d),Z=u=>{d.abort(),H(this,mn,U4).call(this,I,u)};window.addEventListener("blur",Z,{signal:m}),window.addEventListener("pointerup",Z,{signal:m}),window.addEventListener("pointerdown",qC,{capture:!0,passive:!1,signal:m}),window.addEventListener("contextmenu",xA,{signal:m}),t.addEventListener("pointermove",H(this,mn,O4).bind(this,I),{signal:m}),this._freeHighlight=new nX({x:i,y:A},[n,s,o,a],I.scale,this._defaultThickness/2,e,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=I.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static async deserialize(I,e,t){var G,w,B,p;let i=null;if(I instanceof bF){const{data:{quadPoints:Y,rect:N,rotation:R,id:X,color:K,opacity:D,popupRef:k,richText:z,contentsObj:v,creationDate:O,modificationDate:Cg},parent:{page:{pageNumber:U}}}=I;i=I={annotationType:oI.HIGHLIGHT,color:Array.from(K),opacity:D,quadPoints:Y,boxes:null,pageIndex:U-1,rect:N.slice(0),rotation:R,annotationElementId:X,id:X,deleted:!1,popupRef:k,richText:z,comment:(v==null?void 0:v.str)||null,creationDate:O,modificationDate:Cg}}else if(I instanceof eX){const{data:{inkLists:Y,rect:N,rotation:R,id:X,color:K,borderStyle:{rawWidth:D},popupRef:k,richText:z,contentsObj:v,creationDate:O,modificationDate:Cg},parent:{page:{pageNumber:U}}}=I;i=I={annotationType:oI.HIGHLIGHT,color:Array.from(K),thickness:D,inkLists:Y,boxes:null,pageIndex:U-1,rect:N.slice(0),rotation:R,annotationElementId:X,id:X,deleted:!1,popupRef:k,richText:z,comment:(v==null?void 0:v.str)||null,creationDate:O,modificationDate:Cg}}const{color:A,quadPoints:n,inkLists:s,outlines:o,opacity:a}=I,d=await super.deserialize(I,e,t);d.color=Xg.makeHexColor(...A),d.opacity=a||1,s&&y(d,cn,I.thickness),d._initialData=i,I.comment&&d.setCommentData(I);const[m,Z]=d.pageDimensions,[u,h]=d.pageTranslation;if(n){const Y=y(d,ho,[]);for(let N=0;N<n.length;N+=8)Y.push({x:(n[N]-u)/m,y:1-(n[N+1]-h)/Z,width:(n[N+2]-n[N])/m,height:(n[N+1]-n[N+5])/Z});H(G=d,BI,mH).call(G),H(w=d,BI,Gr).call(w),d.rotate(d.rotation)}else if(s||o){y(d,Yt,!0);const Y=(s||o.points)[0],N={x:Y[0]-u,y:Z-(Y[1]-h)},R=new nX(N,[0,0,m,Z],1,c(d,cn)/2,!0,.001);for(let D=0,k=Y.length;D<k;D+=2)N.x=Y[D]-u,N.y=Z-(Y[D+1]-h),R.add(N);const{id:X,clipPathId:K}=e.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:d.color,"fill-opacity":d._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:R.toSVGPath()}},!0,!0);H(B=d,BI,Cy).call(B,{highlightOutlines:R.getOutlines(),highlightId:X,clipPathId:K}),H(p=d,BI,Gr).call(p),d.rotate(d.parentRotation)}return d}serialize(I=!1){if(this.isEmpty()||I)return null;if(this.deleted)return this.serializeDeleted();const e=RC._colorManager.convert(this._uiManager.getNonHCMColor(this.color)),t=super.serialize(I);return Object.assign(t,{color:e,opacity:this.opacity,thickness:c(this,cn),quadPoints:H(this,BI,j4).call(this),outlines:H(this,BI,Q4).call(this,t.rect)}),this.addComment(t),this.annotationElementId&&!H(this,BI,E4).call(this,t)?null:(t.id=this.annotationElementId,t)}renderAnnotationElement(I){return this.deleted?(I.hide(),null):(I.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}static canCreateNewEmptyEditor(){return!1}};x0=new WeakMap,r2=new WeakMap,ho=new WeakMap,jm=new WeakMap,Z2=new WeakMap,Ti=new WeakMap,b2=new WeakMap,u2=new WeakMap,Qm=new WeakMap,WA=new WeakMap,BA=new WeakMap,Yt=new WeakMap,T0=new WeakMap,L0=new WeakMap,jt=new WeakMap,v0=new WeakMap,cn=new WeakMap,h2=new WeakMap,BI=new WeakSet,mH=function(){const I=new AX(c(this,ho),.001);y(this,WA,I.getOutlines()),[this.x,this.y,this.width,this.height]=c(this,WA).box;const e=new AX(c(this,ho),.0025,.001,this._uiManager.direction==="ltr");y(this,Ti,e.getOutlines());const{firstPoint:t}=c(this,WA);y(this,T0,[(t[0]-this.x)/this.width,(t[1]-this.y)/this.height]);const{lastPoint:i}=c(this,Ti);y(this,L0,[(i[0]-this.x)/this.width,(i[1]-this.y)/this.height])},Cy=function({highlightOutlines:I,highlightId:e,clipPathId:t}){var m,Z;if(y(this,WA,I),y(this,Ti,I.getNewOutline(c(this,cn)/2+1.5,.0025)),e>=0)y(this,BA,e),y(this,jm,t),this.parent.drawLayer.finalizeDraw(e,{bbox:I.box,path:{d:I.toSVGPath()}}),y(this,jt,this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:c(this,Ti).box,path:{d:c(this,Ti).toSVGPath()}},!0));else if(this.parent){const u=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(c(this,BA),{bbox:H(m=EI,mn,Xb).call(m,c(this,WA).box,(u-this.rotation+360)%360),path:{d:I.toSVGPath()}}),this.parent.drawLayer.updateProperties(c(this,jt),{bbox:H(Z=EI,mn,Xb).call(Z,c(this,Ti).box,u),path:{d:c(this,Ti).toSVGPath()}})}const[A,n,s,o]=I.box;switch(this.rotation){case 0:this.x=A,this.y=n,this.width=s,this.height=o;break;case 90:{const[u,h]=this.parentDimensions;this.x=n,this.y=1-A,this.width=s*h/u,this.height=o*u/h;break}case 180:this.x=1-A,this.y=1-n,this.width=s,this.height=o;break;case 270:{const[u,h]=this.parentDimensions;this.x=1-n,this.y=A,this.width=s*h/u,this.height=o*u/h;break}}const{firstPoint:a}=I;y(this,T0,[(a[0]-A)/s,(a[1]-n)/o]);const{lastPoint:d}=c(this,Ti);y(this,L0,[(d[0]-A)/s,(d[1]-n)/o])},x4=function(I){const e=(A,n)=>{this.color=A,this.opacity=n,this.onUpdatedColor()},t=this.color,i=this.opacity;this.addCommands({cmd:e.bind(this,I,EI._defaultOpacity),undo:e.bind(this,t,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:hI.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.getNonHCMColorName(I)},!0)},T4=function(I){const e=c(this,cn),t=i=>{y(this,cn,i),H(this,BI,L4).call(this,i)};this.addCommands({cmd:t.bind(this,I),undo:t.bind(this,e),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:hI.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:I},!0)},L4=function(I){c(this,Yt)&&(H(this,BI,Cy).call(this,{highlightOutlines:c(this,WA).getNewOutline(I/2)}),this.fixAndSetPosition(),this.setDims())},rH=function(){c(this,BA)===null||!this.parent||(this.parent.drawLayer.remove(c(this,BA)),y(this,BA,null),this.parent.drawLayer.remove(c(this,jt)),y(this,jt,null))},Gr=function(I=this.parent){c(this,BA)===null&&({id:Je(this,BA)._,clipPathId:Je(this,jm)._}=I.drawLayer.draw({bbox:c(this,WA).box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":this.opacity},rootClass:{highlight:!0,free:c(this,Yt)},path:{d:c(this,WA).toSVGPath()}},!1,!0),y(this,jt,I.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:c(this,Yt)},bbox:c(this,Ti).box,path:{d:c(this,Ti).toSVGPath()}},c(this,Yt))),c(this,Qm)&&(c(this,Qm).style.clipPath=c(this,jm)))},mn=new WeakSet,Xb=function([I,e,t,i],A){switch(A){case 90:return[1-e-i,I,i,t];case 180:return[1-I-t,1-e-i,t,i];case 270:return[e,1-I-t,i,t]}return[I,e,t,i]},v4=function(I){EI._keyboardManager.exec(this,I)},ey=function(I){if(!c(this,x0))return;const e=window.getSelection();I?e.setPosition(c(this,x0),c(this,r2)):e.setPosition(c(this,b2),c(this,u2))},ty=function(){return c(this,Yt)?this.rotation:0},j4=function(){if(c(this,Yt))return null;const[I,e]=this.pageDimensions,[t,i]=this.pageTranslation,A=c(this,ho),n=new Float32Array(A.length*8);let s=0;for(const{x:o,y:a,width:d,height:m}of A){const Z=o*I+t,u=(1-a)*e+i;n[s]=n[s+4]=Z,n[s+1]=n[s+3]=u,n[s+2]=n[s+6]=Z+d*I,n[s+5]=n[s+7]=u-m*e,s+=8}return n},Q4=function(I){return c(this,WA).serialize(I,H(this,BI,ty).call(this))},O4=function(I,e){this._freeHighlight.add(e)&&I.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})},U4=function(I,e){this._freeHighlight.isEmpty()?I.drawLayer.remove(this._freeHighlightId):I.createAndAddNewEditor(e,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""},E4=function(I){const{color:e}=this._initialData;return this.hasEditedComment||I.color.some((t,i)=>t!==e[i])},M(EI,mn),sg(EI,"_defaultColor",null),sg(EI,"_defaultOpacity",1),sg(EI,"_defaultThickness",12),sg(EI,"_type","highlight"),sg(EI,"_editorType",oI.HIGHLIGHT),sg(EI,"_freeHighlightId",-1),sg(EI,"_freeHighlight",null),sg(EI,"_freeHighlightClipId","");let sB=EI;class GF{constructor(){M(this,Om,Object.create(null))}updateProperty(g,I){this[g]=I,this.updateSVGProperty(g,I)}updateProperties(g){if(g)for(const[I,e]of Object.entries(g))I.startsWith("_")||this.updateProperty(I,e)}updateSVGProperty(g,I){c(this,Om)[g]=I}toSVGProperties(){const g=c(this,Om);return y(this,Om,Object.create(null)),{root:g}}reset(){y(this,Om,Object.create(null))}updateAll(g=this){this.updateProperties(g)}clone(){qI("Not implemented")}}Om=new WeakMap;const zI=class zI extends RC{constructor(I){super(I);M(this,LI);M(this,ri,null);M(this,j0);sg(this,"_colorPicker",null);sg(this,"_drawId",null);y(this,j0,I.mustBeCommitted||!1),this._addOutlines(I)}onUpdatedColor(){var I;(I=this._colorPicker)==null||I.update(this.color),super.onUpdatedColor()}onUpdatedOpacity(){var I,e;(e=(I=this._colorPicker)==null?void 0:I.updateOpacity)==null||e.call(I,this.opacity)}_addOutlines(I){I.drawOutlines&&(H(this,LI,ZH).call(this,I),H(this,LI,ow).call(this))}static _mergeSVGProperties(I,e){const t=new Set(Object.keys(I));for(const[i,A]of Object.entries(e))t.has(i)?Object.assign(I[i],A):I[i]=A;return I}static getDefaultDrawingOptions(I){qI("Not implemented")}static get typesMap(){qI("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(I,e){const t=this.typesMap.get(I);t&&this._defaultDrawingOptions.updateProperty(t,e),this._currentParent&&(c(zI,It).updateProperty(t,e),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(I,e){const t=this.constructor.typesMap.get(I);t&&this._updateProperty(I,t,e)}static get defaultPropertiesToUpdate(){const I=[],e=this._defaultDrawingOptions;for(const[t,i]of this.typesMap)I.push([t,e[i]]);return I}get propertiesToUpdate(){const I=[],{_drawingOptions:e}=this;for(const[t,i]of this.constructor.typesMap)I.push([t,e[i]]);return I}_updateProperty(I,e,t){const i=this._drawingOptions,A=i[e],n=s=>{var a;i.updateProperty(e,s);const o=c(this,ri).updateProperty(e,s);o&&H(this,LI,aw).call(this,o),(a=this.parent)==null||a.drawLayer.updateProperties(this._drawId,i.toSVGProperties()),I===this.colorType?this.onUpdatedColor():I===this.opacityType&&this.onUpdatedOpacity()};this.addCommands({cmd:n.bind(this,t),undo:n.bind(this,A),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:I,overwriteIfSameType:!0,keepUndo:!0})}_updateColorAndOpacity(I,e){const t=this.constructor.typesMap.get(this.colorType),i=this.constructor.typesMap.get(this.opacityType),A=this._drawingOptions,n=A[t],s=A[i],o=(a,d)=>{var m;A.updateProperty(t,a),A.updateProperty(i,d),c(this,ri).updateProperty(t,a),c(this,ri).updateProperty(i,d),(m=this.parent)==null||m.drawLayer.updateProperties(this._drawId,A.toSVGProperties()),this.onUpdatedColor(),this.onUpdatedOpacity()};this.addCommands({cmd:o.bind(this,I,e),undo:o.bind(this,n,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:hI.INK_COLOR_AND_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,zI._mergeSVGProperties(c(this,ri).getPathResizingSVGProperties(H(this,LI,iy).call(this)),{bbox:H(this,LI,Rb).call(this)}))}_onResized(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,zI._mergeSVGProperties(c(this,ri).getPathResizedSVGProperties(H(this,LI,iy).call(this)),{bbox:H(this,LI,Rb).call(this)}))}_onTranslating(I,e){var t;(t=this.parent)==null||t.drawLayer.updateProperties(this._drawId,{bbox:H(this,LI,Rb).call(this)})}_onTranslated(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,zI._mergeSVGProperties(c(this,ri).getPathTranslatedSVGProperties(H(this,LI,iy).call(this),this.parentDimensions),{bbox:H(this,LI,Rb).call(this)}))}_onStartDragging(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(I){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,c(this,j0)&&(y(this,j0,!1),this.commit(),this.parent.setSelected(this),I&&this.isOnScreen&&this.div.focus())}remove(){H(this,LI,uH).call(this),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(H(this,LI,ow).call(this),H(this,LI,aw).call(this,c(this,ri).box),this.isAttachedToDOM||this.parent.add(this)))}setParent(I){var t;let e=!1;this.parent&&!I?(this._uiManager.removeShouldRescale(this),H(this,LI,uH).call(this)):I&&(this._uiManager.addShouldRescale(this),H(this,LI,ow).call(this,I),e=!this.parent&&((t=this.div)==null?void 0:t.classList.contains("selectedEditor"))),super.setParent(I),e&&this.select()}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,zI._mergeSVGProperties({bbox:H(this,LI,Rb).call(this)},c(this,ri).updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&H(this,LI,aw).call(this,c(this,ri).updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let I,e;this._isCopy&&(I=this.x,e=this.y);const t=super.render();t.classList.add("draw");const i=document.createElement("div");return t.append(i),i.setAttribute("aria-hidden","true"),i.className="internal",this.setDims(),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(I,e),t}static createDrawerInstance(I,e,t,i,A){qI("Not implemented")}static startDrawing(I,e,t,i){var G;const{target:A,offsetX:n,offsetY:s,pointerId:o,pointerType:a}=i;if(Dt.isInitializedAndDifferentPointerType(a))return;const{viewport:{rotation:d}}=I,{width:m,height:Z}=A.getBoundingClientRect(),u=y(zI,Um,new AbortController),h=I.combinedSignal(u);if(Dt.setPointer(a,o),window.addEventListener("pointerup",w=>{Dt.isSamePointerIdOrRemove(w.pointerId)&&this._endDraw(w)},{signal:h}),window.addEventListener("pointercancel",w=>{Dt.isSamePointerIdOrRemove(w.pointerId)&&this._currentParent.endDrawingSession()},{signal:h}),window.addEventListener("pointerdown",w=>{Dt.isSamePointerType(w.pointerType)&&(Dt.initializeAndAddPointerId(w.pointerId),c(zI,It).isCancellable()&&(c(zI,It).removeLastElement(),c(zI,It).isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:h}),window.addEventListener("contextmenu",xA,{signal:h}),A.addEventListener("pointermove",this._drawMove.bind(this),{signal:h}),A.addEventListener("touchmove",w=>{Dt.isSameTimeStamp(w.timeStamp)&&qC(w)},{signal:h}),I.toggleDrawing(),(G=e._editorUndoBar)==null||G.hide(),c(zI,It)){I.drawLayer.updateProperties(this._currentDrawId,c(zI,It).startNew(n,s,m,Z,d));return}e.updateUIForDefaultProperties(this),y(zI,It,this.createDrawerInstance(n,s,m,Z,d)),y(zI,Em,this.getDefaultDrawingOptions()),this._currentParent=I,{id:this._currentDrawId}=I.drawLayer.draw(this._mergeSVGProperties(c(zI,Em).toSVGProperties(),c(zI,It).defaultSVGProperties),!0,!1)}static _drawMove(I){if(Dt.isSameTimeStamp(I.timeStamp),!c(zI,It))return;const{offsetX:e,offsetY:t,pointerId:i}=I;if(Dt.isSamePointerId(i)){if(Dt.isUsingMultiplePointers()){this._endDraw(I);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,c(zI,It).add(e,t)),Dt.setTimeStamp(I.timeStamp),qC(I)}}static _cleanup(I){I&&(this._currentDrawId=-1,this._currentParent=null,y(zI,It,null),y(zI,Em,null),Dt.clearTimeStamp()),c(zI,Um)&&(c(zI,Um).abort(),y(zI,Um,null),Dt.clearPointerIds())}static _endDraw(I){const e=this._currentParent;if(e){if(e.toggleDrawing(!0),this._cleanup(!1),(I==null?void 0:I.target)===e.div&&e.drawLayer.updateProperties(this._currentDrawId,c(zI,It).end(I.offsetX,I.offsetY)),this.supportMultipleDrawings){const t=c(zI,It),i=this._currentDrawId,A=t.getLastElement();e.addCommands({cmd:()=>{e.drawLayer.updateProperties(i,t.setLastElement(A))},undo:()=>{e.drawLayer.updateProperties(i,t.removeLastElement())},mustExec:!1,type:hI.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(I){const e=this._currentParent;if(!e)return null;if(e.toggleDrawing(!0),e.cleanUndoStack(hI.DRAW_STEP),!c(zI,It).isEmpty()){const{pageDimensions:[t,i],scale:A}=e,n=e.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:c(zI,It).getOutlines(t*A,i*A,A,this._INNER_MARGIN),drawingOptions:c(zI,Em),mustBeCommitted:!I});return this._cleanup(!0),n}return e.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(I){}static deserializeDraw(I,e,t,i,A,n){qI("Not implemented")}static async deserialize(I,e,t){var d,m;const{rawDims:{pageWidth:i,pageHeight:A,pageX:n,pageY:s}}=e.viewport,o=this.deserializeDraw(n,s,i,A,this._INNER_MARGIN,I),a=await super.deserialize(I,e,t);return a.createDrawingOptions(I),H(d=a,LI,ZH).call(d,{drawOutlines:o}),H(m=a,LI,ow).call(m),a.onScaleChanging(),a.rotate(),a}serializeDraw(I){const[e,t]=this.pageTranslation,[i,A]=this.pageDimensions;return c(this,ri).serialize([e,t,i,A],I)}renderAnnotationElement(I){return I.updateEdited({rect:this.getPDFRect()}),null}static canCreateNewEmptyEditor(){return!1}};ri=new WeakMap,j0=new WeakMap,It=new WeakMap,Um=new WeakMap,Em=new WeakMap,LI=new WeakSet,ZH=function({drawOutlines:I,drawId:e,drawingOptions:t}){y(this,ri,I),this._drawingOptions||(this._drawingOptions=t),this.annotationElementId||this._uiManager.a11yAlert(`pdfjs-editor-${this.editorType}-added-alert`),e>=0?(this._drawId=e,this.parent.drawLayer.finalizeDraw(e,I.defaultProperties)):this._drawId=H(this,LI,bH).call(this,I,this.parent),H(this,LI,aw).call(this,I.box)},bH=function(I,e){const{id:t}=e.drawLayer.draw(zI._mergeSVGProperties(this._drawingOptions.toSVGProperties(),I.defaultSVGProperties),!1,!1);return t},uH=function(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())},ow=function(I=this.parent){if(!(this._drawId!==null&&this.parent===I)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,I.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=H(this,LI,bH).call(this,c(this,ri),I)}},P4=function([I,e,t,i]){const{parentDimensions:[A,n],rotation:s}=this;switch(s){case 90:return[e,1-I,t*(n/A),i*(A/n)];case 180:return[1-I,1-e,t,i];case 270:return[1-e,I,t*(n/A),i*(A/n)];default:return[I,e,t,i]}},iy=function(){const{x:I,y:e,width:t,height:i,parentDimensions:[A,n],rotation:s}=this;switch(s){case 90:return[1-e,I,t*(A/n),i*(n/A)];case 180:return[1-I,1-e,t,i];case 270:return[e,1-I,t*(A/n),i*(n/A)];default:return[I,e,t,i]}},aw=function(I){[this.x,this.y,this.width,this.height]=H(this,LI,P4).call(this,I),this.div&&(this.fixAndSetPosition(),this.setDims()),this._onResized()},Rb=function(){const{x:I,y:e,width:t,height:i,rotation:A,parentRotation:n,parentDimensions:[s,o]}=this;switch((A*4+n)/90){case 1:return[1-e-i,I,i,t];case 2:return[1-I-t,1-e-i,t,i];case 3:return[e,1-I-t,i,t];case 4:return[I,e-t*(s/o),i*(o/s),t*(s/o)];case 5:return[1-e,I,t*(s/o),i*(o/s)];case 6:return[1-I-i*(o/s),1-e,i*(o/s),t*(s/o)];case 7:return[e-t*(s/o),1-I-i*(o/s),t*(s/o),i*(o/s)];case 8:return[I-t,e-i,t,i];case 9:return[1-e,I-t,i,t];case 10:return[1-I,1-e,t,i];case 11:return[e-i,1-I,i,t];case 12:return[I-i*(o/s),e,i*(o/s),t*(s/o)];case 13:return[1-e-t*(s/o),I-i*(o/s),t*(s/o),i*(o/s)];case 14:return[1-I,1-e-t*(s/o),i*(o/s),t*(s/o)];case 15:return[e,1-I,t*(s/o),i*(o/s)];default:return[I,e,t,i]}},sg(zI,"_currentDrawId",-1),sg(zI,"_currentParent",null),M(zI,It,null),M(zI,Um,null),M(zI,Em,null),sg(zI,"_INNER_MARGIN",3);let oB=zI;class tQg{constructor(g,I,e,t,i,A){M(this,O0);M(this,_l,new Float64Array(6));M(this,Ct);M(this,et);M(this,Pm);M(this,Q0);M(this,Zi);M(this,yt,"");M(this,rn,0);M(this,_m,new Mu);M(this,qm);M(this,$m);y(this,qm,e),y(this,$m,t),y(this,Pm,i),y(this,Q0,A),[g,I]=H(this,O0,Ay).call(this,g,I);const n=y(this,Ct,[NaN,NaN,NaN,NaN,g,I]);y(this,Zi,[g,I]),y(this,et,[{line:n,points:c(this,Zi)}]),c(this,_l).set(n,0)}updateProperty(g,I){g==="stroke-width"&&y(this,Q0,I)}isEmpty(){return!c(this,et)||c(this,et).length===0}isCancellable(){return c(this,Zi).length<=10}add(g,I){[g,I]=H(this,O0,Ay).call(this,g,I);const[e,t,i,A]=c(this,_l).subarray(2,6),n=g-i,s=I-A;return Math.hypot(c(this,qm)*n,c(this,$m)*s)<=2?null:(c(this,Zi).push(g,I),isNaN(e)?(c(this,_l).set([i,A,g,I],2),c(this,Ct).push(NaN,NaN,NaN,NaN,g,I),{path:{d:this.toSVGPath()}}):(isNaN(c(this,_l)[0])&&c(this,Ct).splice(6,6),c(this,_l).set([e,t,i,A,g,I],0),c(this,Ct).push(...xg.createBezierPoints(e,t,i,A,g,I)),{path:{d:this.toSVGPath()}}))}end(g,I){const e=this.add(g,I);return e||(c(this,Zi).length===2?{path:{d:this.toSVGPath()}}:null)}startNew(g,I,e,t,i){y(this,qm,e),y(this,$m,t),y(this,Pm,i),[g,I]=H(this,O0,Ay).call(this,g,I);const A=y(this,Ct,[NaN,NaN,NaN,NaN,g,I]);y(this,Zi,[g,I]);const n=c(this,et).at(-1);return n&&(n.line=new Float32Array(n.line),n.points=new Float32Array(n.points)),c(this,et).push({line:A,points:c(this,Zi)}),c(this,_l).set(A,0),y(this,rn,0),this.toSVGPath(),null}getLastElement(){return c(this,et).at(-1)}setLastElement(g){return c(this,et)?(c(this,et).push(g),y(this,Ct,g.line),y(this,Zi,g.points),y(this,rn,0),{path:{d:this.toSVGPath()}}):c(this,_m).setLastElement(g)}removeLastElement(){if(!c(this,et))return c(this,_m).removeLastElement();c(this,et).pop(),y(this,yt,"");for(let g=0,I=c(this,et).length;g<I;g++){const{line:e,points:t}=c(this,et)[g];y(this,Ct,e),y(this,Zi,t),y(this,rn,0),this.toSVGPath()}return{path:{d:c(this,yt)}}}toSVGPath(){const g=xg.svgRound(c(this,Ct)[4]),I=xg.svgRound(c(this,Ct)[5]);if(c(this,Zi).length===2)return y(this,yt,`${c(this,yt)} M ${g} ${I} Z`),c(this,yt);if(c(this,Zi).length<=6){const t=c(this,yt).lastIndexOf("M");y(this,yt,`${c(this,yt).slice(0,t)} M ${g} ${I}`),y(this,rn,6)}if(c(this,Zi).length===4){const t=xg.svgRound(c(this,Ct)[10]),i=xg.svgRound(c(this,Ct)[11]);return y(this,yt,`${c(this,yt)} L ${t} ${i}`),y(this,rn,12),c(this,yt)}const e=[];c(this,rn)===0&&(e.push(`M ${g} ${I}`),y(this,rn,6));for(let t=c(this,rn),i=c(this,Ct).length;t<i;t+=6){const[A,n,s,o,a,d]=c(this,Ct).slice(t,t+6).map(xg.svgRound);e.push(`C${A} ${n} ${s} ${o} ${a} ${d}`)}return y(this,yt,c(this,yt)+e.join(" ")),y(this,rn,c(this,Ct).length),c(this,yt)}getOutlines(g,I,e,t){const i=c(this,et).at(-1);return i.line=new Float32Array(i.line),i.points=new Float32Array(i.points),c(this,_m).build(c(this,et),g,I,e,c(this,Pm),c(this,Q0),t),y(this,_l,null),y(this,Ct,null),y(this,et,null),y(this,yt,null),c(this,_m)}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}_l=new WeakMap,Ct=new WeakMap,et=new WeakMap,Pm=new WeakMap,Q0=new WeakMap,Zi=new WeakMap,yt=new WeakMap,rn=new WeakMap,_m=new WeakMap,qm=new WeakMap,$m=new WeakMap,O0=new WeakSet,Ay=function(g,I){return xg._normalizePoint(g,I,c(this,qm),c(this,$m),c(this,Pm))};class Mu extends xg{constructor(){super(...arguments);M(this,Nt);M(this,bi);M(this,G2,0);M(this,w2);M(this,pA);M(this,ql);M(this,$l);M(this,U0);M(this,E0);M(this,gr)}build(I,e,t,i,A,n,s){y(this,ql,e),y(this,$l,t),y(this,U0,i),y(this,E0,A),y(this,gr,n),y(this,w2,s??0),y(this,pA,I),H(this,Nt,q4).call(this)}get thickness(){return c(this,gr)}setLastElement(I){return c(this,pA).push(I),{path:{d:this.toSVGPath()}}}removeLastElement(){return c(this,pA).pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const I=[];for(const{line:e}of c(this,pA)){if(I.push(`M${xg.svgRound(e[4])} ${xg.svgRound(e[5])}`),e.length===6){I.push("Z");continue}if(e.length===12&&isNaN(e[6])){I.push(`L${xg.svgRound(e[10])} ${xg.svgRound(e[11])}`);continue}for(let t=6,i=e.length;t<i;t+=6){const[A,n,s,o,a,d]=e.subarray(t,t+6).map(xg.svgRound);I.push(`C${A} ${n} ${s} ${o} ${a} ${d}`)}}return I.join("")}serialize([I,e,t,i],A){const n=[],s=[],[o,a,d,m]=H(this,Nt,_4).call(this);let Z,u,h,G,w,B,p,Y,N;switch(c(this,E0)){case 0:N=xg._rescale,Z=I,u=e+i,h=t,G=-i,w=I+o*t,B=e+(1-a-m)*i,p=I+(o+d)*t,Y=e+(1-a)*i;break;case 90:N=xg._rescaleAndSwap,Z=I,u=e,h=t,G=i,w=I+a*t,B=e+o*i,p=I+(a+m)*t,Y=e+(o+d)*i;break;case 180:N=xg._rescale,Z=I+t,u=e,h=-t,G=i,w=I+(1-o-d)*t,B=e+a*i,p=I+(1-o)*t,Y=e+(a+m)*i;break;case 270:N=xg._rescaleAndSwap,Z=I+t,u=e+i,h=-t,G=-i,w=I+(1-a-m)*t,B=e+(1-o-d)*i,p=I+(1-a)*t,Y=e+(1-o)*i;break}for(const{line:R,points:X}of c(this,pA))n.push(N(R,Z,u,h,G,A?new Array(R.length):null)),s.push(N(X,Z,u,h,G,A?new Array(X.length):null));return{lines:n,points:s,rect:[w,B,p,Y]}}static deserialize(I,e,t,i,A,{paths:{lines:n,points:s},rotation:o,thickness:a}){const d=[];let m,Z,u,h,G;switch(o){case 0:G=xg._rescale,m=-I/t,Z=e/i+1,u=1/t,h=-1/i;break;case 90:G=xg._rescaleAndSwap,m=-e/i,Z=-I/t,u=1/i,h=1/t;break;case 180:G=xg._rescale,m=I/t+1,Z=-e/i,u=-1/t,h=1/i;break;case 270:G=xg._rescaleAndSwap,m=e/i+1,Z=I/t+1,u=-1/i,h=-1/t;break}if(!n){n=[];for(const B of s){const p=B.length;if(p===2){n.push(new Float32Array([NaN,NaN,NaN,NaN,B[0],B[1]]));continue}if(p===4){n.push(new Float32Array([NaN,NaN,NaN,NaN,B[0],B[1],NaN,NaN,NaN,NaN,B[2],B[3]]));continue}const Y=new Float32Array(3*(p-2));n.push(Y);let[N,R,X,K]=B.subarray(0,4);Y.set([NaN,NaN,NaN,NaN,N,R],0);for(let D=4;D<p;D+=2){const k=B[D],z=B[D+1];Y.set(xg.createBezierPoints(N,R,X,K,k,z),(D-2)*3),[N,R,X,K]=[X,K,k,z]}}}for(let B=0,p=n.length;B<p;B++)d.push({line:G(n[B].map(Y=>Y??NaN),m,Z,u,h),points:G(s[B].map(Y=>Y??NaN),m,Z,u,h)});const w=new this.prototype.constructor;return w.build(d,t,i,1,o,a,A),w}get box(){return c(this,bi)}updateProperty(I,e){return I==="stroke-width"?H(this,Nt,$4).call(this,e):null}updateParentDimensions([I,e],t){const[i,A]=H(this,Nt,Jo).call(this);y(this,ql,I),y(this,$l,e),y(this,U0,t);const[n,s]=H(this,Nt,Jo).call(this),o=n-i,a=s-A,d=c(this,bi);return d[0]-=o,d[1]-=a,d[2]+=2*o,d[3]+=2*a,d}updateRotation(I){return y(this,G2,I),{path:{transform:this.rotationTransform}}}get viewBox(){return c(this,bi).map(xg.svgRound).join(" ")}get defaultProperties(){const[I,e]=c(this,bi);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${xg.svgRound(I)} ${xg.svgRound(e)}`}}}get rotationTransform(){const[,,I,e]=c(this,bi);let t=0,i=0,A=0,n=0,s=0,o=0;switch(c(this,G2)){case 90:i=e/I,A=-I/e,s=I;break;case 180:t=-1,n=-1,s=I,o=e;break;case 270:i=-e/I,A=I/e,o=e;break;default:return""}return`matrix(${t} ${i} ${A} ${n} ${xg.svgRound(s)} ${xg.svgRound(o)})`}getPathResizingSVGProperties([I,e,t,i]){const[A,n]=H(this,Nt,Jo).call(this),[s,o,a,d]=c(this,bi);if(Math.abs(a-A)<=xg.PRECISION||Math.abs(d-n)<=xg.PRECISION){const G=I+t/2-(s+a/2),w=e+i/2-(o+d/2);return{path:{"transform-origin":`${xg.svgRound(I)} ${xg.svgRound(e)}`,transform:`${this.rotationTransform} translate(${G} ${w})`}}}const m=(t-2*A)/(a-2*A),Z=(i-2*n)/(d-2*n),u=a/t,h=d/i;return{path:{"transform-origin":`${xg.svgRound(s)} ${xg.svgRound(o)}`,transform:`${this.rotationTransform} scale(${u} ${h}) translate(${xg.svgRound(A)} ${xg.svgRound(n)}) scale(${m} ${Z}) translate(${xg.svgRound(-A)} ${xg.svgRound(-n)})`}}}getPathResizedSVGProperties([I,e,t,i]){const[A,n]=H(this,Nt,Jo).call(this),s=c(this,bi),[o,a,d,m]=s;if(s[0]=I,s[1]=e,s[2]=t,s[3]=i,Math.abs(d-A)<=xg.PRECISION||Math.abs(m-n)<=xg.PRECISION){const w=I+t/2-(o+d/2),B=e+i/2-(a+m/2);for(const{line:p,points:Y}of c(this,pA))xg._translate(p,w,B,p),xg._translate(Y,w,B,Y);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${xg.svgRound(I)} ${xg.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}const Z=(t-2*A)/(d-2*A),u=(i-2*n)/(m-2*n),h=-Z*(o+A)+I+A,G=-u*(a+n)+e+n;if(Z!==1||u!==1||h!==0||G!==0)for(const{line:w,points:B}of c(this,pA))xg._rescale(w,h,G,Z,u,w),xg._rescale(B,h,G,Z,u,B);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${xg.svgRound(I)} ${xg.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([I,e],t){const[i,A]=t,n=c(this,bi),s=I-n[0],o=e-n[1];if(c(this,ql)===i&&c(this,$l)===A)for(const{line:a,points:d}of c(this,pA))xg._translate(a,s,o,a),xg._translate(d,s,o,d);else{const a=c(this,ql)/i,d=c(this,$l)/A;y(this,ql,i),y(this,$l,A);for(const{line:m,points:Z}of c(this,pA))xg._rescale(m,s,o,a,d,m),xg._rescale(Z,s,o,a,d,Z);n[2]*=a,n[3]*=d}return n[0]=I,n[1]=e,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${xg.svgRound(I)} ${xg.svgRound(e)}`}}}get defaultSVGProperties(){const I=c(this,bi);return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${xg.svgRound(I[0])} ${xg.svgRound(I[1])}`,transform:this.rotationTransform||null},bbox:I}}}bi=new WeakMap,G2=new WeakMap,w2=new WeakMap,pA=new WeakMap,ql=new WeakMap,$l=new WeakMap,U0=new WeakMap,E0=new WeakMap,gr=new WeakMap,Nt=new WeakSet,Jo=function(I=c(this,gr)){const e=c(this,w2)+I/2*c(this,U0);return c(this,E0)%180===0?[e/c(this,ql),e/c(this,$l)]:[e/c(this,$l),e/c(this,ql)]},_4=function(){const[I,e,t,i]=c(this,bi),[A,n]=H(this,Nt,Jo).call(this,0);return[I+A,e+n,t-2*A,i-2*n]},q4=function(){const I=y(this,bi,lc.slice());for(const{line:i}of c(this,pA)){if(i.length<=12){for(let s=4,o=i.length;s<o;s+=6)Xg.pointBoundingBox(i[s],i[s+1],I);continue}let A=i[4],n=i[5];for(let s=6,o=i.length;s<o;s+=6){const[a,d,m,Z,u,h]=i.subarray(s,s+6);Xg.bezierBoundingBox(A,n,a,d,m,Z,u,h,I),A=u,n=h}}const[e,t]=H(this,Nt,Jo).call(this);I[0]=JC(I[0]-e,0,1),I[1]=JC(I[1]-t,0,1),I[2]=JC(I[2]+e,0,1),I[3]=JC(I[3]+t,0,1),I[2]-=I[0],I[3]-=I[1]},$4=function(I){const[e,t]=H(this,Nt,Jo).call(this);y(this,gr,I);const[i,A]=H(this,Nt,Jo).call(this),[n,s]=[i-e,A-t],o=c(this,bi);return o[0]-=n,o[1]-=s,o[2]+=2*n,o[3]+=2*s,o};class aB extends GF{constructor(g){super(),this._viewParameters=g,super.updateProperties({fill:"none",stroke:RC._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(g,I){g==="stroke-width"&&(I??(I=this["stroke-width"]),I*=this._viewParameters.realScale),super.updateSVGProperty(g,I)}clone(){const g=new aB(this._viewParameters);return g.updateAll(this),g}}const P0=class P0 extends oB{constructor(I){super({...I,name:"inkEditor"});M(this,zY);this._willKeepAspectRatio=!0,this.defaultL10nId="pdfjs-editor-ink-editor"}static initialize(I,e){RC.initialize(I,e),this._defaultDrawingOptions=new aB(e.viewParameters)}static getDefaultDrawingOptions(I){const e=this._defaultDrawingOptions.clone();return e.updateProperties(I),e}static get supportMultipleDrawings(){return!0}static get typesMap(){return dI(this,"typesMap",new Map([[hI.INK_THICKNESS,"stroke-width"],[hI.INK_COLOR,"stroke"],[hI.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(I,e,t,i,A){return new tQg(I,e,t,i,A,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(I,e,t,i,A,n){return Mu.deserialize(I,e,t,i,A,n)}static async deserialize(I,e,t){let i=null;if(I instanceof eX){const{data:{inkLists:n,rect:s,rotation:o,id:a,color:d,opacity:m,borderStyle:{rawWidth:Z},popupRef:u,richText:h,contentsObj:G,creationDate:w,modificationDate:B},parent:{page:{pageNumber:p}}}=I;i=I={annotationType:oI.INK,color:Array.from(d),thickness:Z,opacity:m,paths:{points:n},boxes:null,pageIndex:p-1,rect:s.slice(0),rotation:o,annotationElementId:a,id:a,deleted:!1,popupRef:u,richText:h,comment:(G==null?void 0:G.str)||null,creationDate:w,modificationDate:B}}const A=await super.deserialize(I,e,t);return A._initialData=i,I.comment&&A.setCommentData(I),A}get toolbarButtons(){return this._colorPicker||(this._colorPicker=new iB(this)),[["colorPicker",this._colorPicker]]}get colorType(){return hI.INK_COLOR}get colorAndOpacityType(){return hI.INK_COLOR_AND_OPACITY}get opacityType(){return hI.INK_OPACITY}updateParams(I,e){if(I===hI.INK_COLOR_AND_OPACITY){this._updateColorAndOpacity(e.color,e.opacity);return}super.updateParams(I,e)}static updateDefaultParams(I,e){if(I===hI.INK_COLOR_AND_OPACITY){super.updateDefaultParams(hI.INK_COLOR,e.color),super.updateDefaultParams(hI.INK_OPACITY,e.opacity);return}super.updateDefaultParams(I,e)}get color(){return this._drawingOptions.stroke}get opacity(){return this._drawingOptions["stroke-opacity"]}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();const{_drawId:I,_drawingOptions:e,parent:t}=this;e.updateSVGProperty("stroke-width"),t.drawLayer.updateProperties(I,e.toSVGProperties())}static onScaleChangingWhenDrawing(){const I=this._currentParent;I&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),I.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:I,thickness:e,opacity:t}){this._drawingOptions=P0.getDefaultDrawingOptions({stroke:Xg.makeHexColor(...I),"stroke-width":e,"stroke-opacity":t})}serialize(I=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const{lines:e,points:t}=this.serializeDraw(I),{_drawingOptions:{stroke:i,"stroke-opacity":A,"stroke-width":n}}=this,s=Object.assign(super.serialize(I),{color:RC._colorManager.convert(i),opacity:A,thickness:n,paths:{lines:e,points:t}});return this.addComment(s),I?(s.isCopy=!0,s):this.annotationElementId&&!H(this,zY,gQ).call(this,s)?null:(s.id=this.annotationElementId,s)}renderAnnotationElement(I){if(this.deleted)return I.hide(),null;const{points:e,rect:t}=this.serializeDraw(!1);return I.updateEdited({rect:t,thickness:this._drawingOptions["stroke-width"],points:e,popup:this.comment}),null}};zY=new WeakSet,gQ=function(I){const{color:e,thickness:t,opacity:i,pageIndex:A}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized||I.color.some((n,s)=>n!==e[s])||I.thickness!==t||I.opacity!==i||I.pageIndex!==A},sg(P0,"_type","ink"),sg(P0,"_editorType",oI.INK),sg(P0,"_defaultDrawingOptions",null);let lX=P0;class sX extends Mu{toSVGPath(){let g=super.toSVGPath();return g.endsWith("Z")||(g+="Z"),g}}const dB=8,Hu=3;class hs{static extractContoursFromText(g,{fontFamily:I,fontStyle:e,fontWeight:t},i,A,n,s){let o=new OffscreenCanvas(1,1),a=o.getContext("2d",{alpha:!1});const d=200,m=a.font=`${e} ${t} ${d}px ${I}`,{actualBoundingBoxLeft:Z,actualBoundingBoxRight:u,actualBoundingBoxAscent:h,actualBoundingBoxDescent:G,fontBoundingBoxAscent:w,fontBoundingBoxDescent:B,width:p}=a.measureText(g),Y=1.5,N=Math.ceil(Math.max(Math.abs(Z)+Math.abs(u)||0,p)*Y),R=Math.ceil(Math.max(Math.abs(h)+Math.abs(G)||d,Math.abs(w)+Math.abs(B)||d)*Y);o=new OffscreenCanvas(N,R),a=o.getContext("2d",{alpha:!0,willReadFrequently:!0}),a.font=m,a.filter="grayscale(1)",a.fillStyle="white",a.fillRect(0,0,N,R),a.fillStyle="black",a.fillText(g,N*(Y-1)/2,R*(3-Y)/2);const X=H(this,IC,wH).call(this,a.getImageData(0,0,N,R).data),K=H(this,IC,iQ).call(this,X),D=H(this,IC,WH).call(this,K),k=H(this,IC,GH).call(this,X,N,R,D);return this.processDrawnLines({lines:{curves:k,width:N,height:R},pageWidth:i,pageHeight:A,rotation:n,innerMargin:s,mustSmooth:!0,areContours:!0})}static process(g,I,e,t,i){const[A,n,s]=H(this,IC,AQ).call(this,g),[o,a]=H(this,IC,tQ).call(this,A,n,s,Math.hypot(n,s)*c(this,Ir).sigmaSFactor,c(this,Ir).sigmaR,c(this,Ir).kernelSize),d=H(this,IC,WH).call(this,a),m=H(this,IC,GH).call(this,o,n,s,d);return this.processDrawnLines({lines:{curves:m,width:n,height:s},pageWidth:I,pageHeight:e,rotation:t,innerMargin:i,mustSmooth:!0,areContours:!0})}static processDrawnLines({lines:g,pageWidth:I,pageHeight:e,rotation:t,innerMargin:i,mustSmooth:A,areContours:n}){t%180!==0&&([I,e]=[e,I]);const{curves:s,width:o,height:a}=g,d=g.thickness??0,m=[],Z=Math.min(I/o,e/a),u=Z/I,h=Z/e,G=[];for(const{points:B}of s){const p=A?H(this,IC,eQ).call(this,B):B;if(!p)continue;G.push(p);const Y=p.length,N=new Float32Array(Y),R=new Float32Array(3*(Y===2?2:Y-2));if(m.push({line:R,points:N}),Y===2){N[0]=p[0]*u,N[1]=p[1]*h,R.set([NaN,NaN,NaN,NaN,N[0],N[1]],0);continue}let[X,K,D,k]=p;X*=u,K*=h,D*=u,k*=h,N.set([X,K,D,k],0),R.set([NaN,NaN,NaN,NaN,X,K],0);for(let z=4;z<Y;z+=2){const v=N[z]=p[z]*u,O=N[z+1]=p[z+1]*h;R.set(xg.createBezierPoints(X,K,D,k,v,O),(z-2)*3),[X,K,D,k]=[D,k,v,O]}}if(m.length===0)return null;const w=n?new sX:new Mu;return w.build(m,I,e,1,t,n?0:d,i),{outline:w,newCurves:G,areContours:n,thickness:d,width:o,height:a}}static async compressSignature({outlines:g,areContours:I,thickness:e,width:t,height:i}){let A=1/0,n=-1/0,s=0;for(const B of g){s+=B.length;for(let p=2,Y=B.length;p<Y;p++){const N=B[p]-B[p-2];A=Math.min(A,N),n=Math.max(n,N)}}let o;A>=-128&&n<=127?o=Int8Array:A>=-32768&&n<=32767?o=Int16Array:o=Int32Array;const a=g.length,d=dB+Hu*a,m=new Uint32Array(d);let Z=0;m[Z++]=d*Uint32Array.BYTES_PER_ELEMENT+(s-2*a)*o.BYTES_PER_ELEMENT,m[Z++]=0,m[Z++]=t,m[Z++]=i,m[Z++]=I?0:1,m[Z++]=Math.max(0,Math.floor(e??0)),m[Z++]=a,m[Z++]=o.BYTES_PER_ELEMENT;for(const B of g)m[Z++]=B.length-2,m[Z++]=B[0],m[Z++]=B[1];const u=new CompressionStream("deflate-raw"),h=u.writable.getWriter();await h.ready,h.write(m);const G=o.prototype.constructor;for(const B of g){const p=new G(B.length-2);for(let Y=2,N=B.length;Y<N;Y++)p[Y-2]=B[Y]-B[Y-2];h.write(p)}return h.close(),(await new Response(u.readable).bytes()).toBase64()}static async decompressSignature(g){try{const I=Uint8Array.fromBase64(g),{readable:e,writable:t}=new DecompressionStream("deflate-raw"),i=t.getWriter();await i.ready,i.write(I).then(async()=>{await i.ready,await i.close()}).catch(()=>{});let A=null,n=0;for await(const p of e)A||(A=new Uint8Array(new Uint32Array(p.buffer,0,4)[0])),A.set(p,n),n+=p.length;const s=new Uint32Array(A.buffer,0,A.length>>2),o=s[1];if(o!==0)throw new Error(`Invalid version: ${o}`);const a=s[2],d=s[3],m=s[4]===0,Z=s[5],u=s[6],h=s[7],G=[],w=(dB+Hu*u)*Uint32Array.BYTES_PER_ELEMENT;let B;switch(h){case Int8Array.BYTES_PER_ELEMENT:B=new Int8Array(A.buffer,w);break;case Int16Array.BYTES_PER_ELEMENT:B=new Int16Array(A.buffer,w);break;case Int32Array.BYTES_PER_ELEMENT:B=new Int32Array(A.buffer,w);break}n=0;for(let p=0;p<u;p++){const Y=s[Hu*p+dB],N=new Float32Array(Y+2);G.push(N);for(let R=0;R<Hu-1;R++)N[R]=s[Hu*p+dB+R+1];for(let R=0;R<Y;R++)N[R+2]=N[R]+B[n++]}return{areContours:m,thickness:Z,outlines:G,width:a,height:d}}catch(I){return rI(`decompressSignature: ${I}`),null}}}Ir=new WeakMap,IC=new WeakSet,hH=function(g,I,e,t){return e-=g,t-=I,e===0?t>0?0:4:e===1?t+6:2-t},Cl=new WeakMap,IQ=function(g,I,e,t,i,A,n){const s=H(this,IC,hH).call(this,e,t,i,A);for(let o=0;o<8;o++){const a=(-o+s-n+16)%8,d=c(this,Cl)[2*a],m=c(this,Cl)[2*a+1];if(g[(e+d)*I+(t+m)]!==0)return a}return-1},CQ=function(g,I,e,t,i,A,n){const s=H(this,IC,hH).call(this,e,t,i,A);for(let o=0;o<8;o++){const a=(o+s+n+16)%8,d=c(this,Cl)[2*a],m=c(this,Cl)[2*a+1];if(g[(e+d)*I+(t+m)]!==0)return a}return-1},GH=function(g,I,e,t){const i=g.length,A=new Int32Array(i);for(let a=0;a<i;a++)A[a]=g[a]<=t?1:0;for(let a=1;a<e-1;a++)A[a*I]=A[a*I+I-1]=0;for(let a=0;a<I;a++)A[a]=A[I*e-1-a]=0;let n=1,s;const o=[];for(let a=1;a<e-1;a++){s=1;for(let d=1;d<I-1;d++){const m=a*I+d,Z=A[m];if(Z===0)continue;let u=a,h=d;if(Z===1&&A[m-1]===0)n+=1,h-=1;else if(Z>=1&&A[m+1]===0)n+=1,h+=1,Z>1&&(s=Z);else{Z!==1&&(s=Math.abs(Z));continue}const G=[d,a],w=h===d+1,B={isHole:w,points:G,id:n,parent:0};o.push(B);let p;for(const z of o)if(z.id===s){p=z;break}p?p.isHole?B.parent=w?p.parent:s:B.parent=w?s:p.parent:B.parent=w?s:0;const Y=H(this,IC,IQ).call(this,A,I,a,d,u,h,0);if(Y===-1){A[m]=-n,A[m]!==1&&(s=Math.abs(A[m]));continue}let N=c(this,Cl)[2*Y],R=c(this,Cl)[2*Y+1];const X=a+N,K=d+R;u=X,h=K;let D=a,k=d;for(;;){const z=H(this,IC,CQ).call(this,A,I,D,k,u,h,1);N=c(this,Cl)[2*z],R=c(this,Cl)[2*z+1];const v=D+N,O=k+R;G.push(O,v);const Cg=D*I+k;if(A[Cg+1]===0?A[Cg]=-n:A[Cg]===1&&(A[Cg]=n),v===a&&O===d&&D===X&&k===K){A[m]!==1&&(s=Math.abs(A[m]));break}else u=D,h=k,D=v,k=O}}}return o},ny=function(g,I,e,t){if(e-I<=4){for(let X=I;X<e-2;X+=2)t.push(g[X],g[X+1]);return}const i=g[I],A=g[I+1],n=g[e-4]-i,s=g[e-3]-A,o=Math.hypot(n,s),a=n/o,d=s/o,m=a*A-d*i,Z=s/n,u=1/o,h=Math.atan(Z),G=Math.cos(h),w=Math.sin(h),B=u*(Math.abs(G)+Math.abs(w)),p=u*(1-B+B**2),Y=Math.max(Math.atan(Math.abs(w+G)*p),Math.atan(Math.abs(w-G)*p));let N=0,R=I;for(let X=I+2;X<e-2;X+=2){const K=Math.abs(m-a*g[X+1]+d*g[X]);K>N&&(R=X,N=K)}N>(o*Y)**2?(H(this,IC,ny).call(this,g,I,R+2,t),H(this,IC,ny).call(this,g,R,e,t)):t.push(i,A)},eQ=function(g){const I=[],e=g.length;return H(this,IC,ny).call(this,g,0,e,I),I.push(g[e-2],g[e-1]),I.length<=4?null:I},tQ=function(g,I,e,t,i,A){const n=new Float32Array(A**2),s=-2*t**2,o=A>>1;for(let h=0;h<A;h++){const G=(h-o)**2;for(let w=0;w<A;w++)n[h*A+w]=Math.exp((G+(w-o)**2)/s)}const a=new Float32Array(256),d=-2*i**2;for(let h=0;h<256;h++)a[h]=Math.exp(h**2/d);const m=g.length,Z=new Uint8Array(m),u=new Uint32Array(256);for(let h=0;h<e;h++)for(let G=0;G<I;G++){const w=h*I+G,B=g[w];let p=0,Y=0;for(let R=0;R<A;R++){const X=h+R-o;if(!(X<0||X>=e))for(let K=0;K<A;K++){const D=G+K-o;if(D<0||D>=I)continue;const k=g[X*I+D],z=n[R*A+K]*a[Math.abs(k-B)];p+=k*z,Y+=z}}const N=Z[w]=Math.round(p/Y);u[N]++}return[Z,u]},iQ=function(g){const I=new Uint32Array(256);for(const e of g)I[e]++;return I},wH=function(g){const I=g.length,e=new Uint8ClampedArray(I>>2);let t=-1/0,i=1/0;for(let n=0,s=e.length;n<s;n++){const o=e[n]=g[n<<2];t=Math.max(t,o),i=Math.min(i,o)}const A=255/(t-i);for(let n=0,s=e.length;n<s;n++)e[n]=(e[n]-i)*A;return e},WH=function(g){let I,e=-1/0,t=-1/0;const i=g.findIndex(s=>s!==0);let A=i,n=i;for(I=i;I<256;I++){const s=g[I];s>e&&(I-A>t&&(t=I-A,n=I-1),e=s,A=I)}for(I=n-1;I>=0&&!(g[I]>g[I+1]);I--);return I},AQ=function(g){const I=g,{width:e,height:t}=g,{maxDim:i}=c(this,Ir);let A=e,n=t;if(e>i||t>i){let m=e,Z=t,u=Math.log2(Math.max(e,t)/i);const h=Math.floor(u);u=u===h?h-1:h;for(let w=0;w<u;w++){A=Math.ceil(m/2),n=Math.ceil(Z/2);const B=new OffscreenCanvas(A,n);B.getContext("2d").drawImage(g,0,0,m,Z,0,0,A,n),m=A,Z=n,g!==I&&g.close(),g=B.transferToImageBitmap()}const G=Math.min(i/A,i/n);A=Math.round(A*G),n=Math.round(n*G)}const o=new OffscreenCanvas(A,n).getContext("2d",{willReadFrequently:!0});o.fillStyle="white",o.fillRect(0,0,A,n),o.filter="grayscale(1)",o.drawImage(g,0,0,g.width,g.height,0,0,A,n);const a=o.getImageData(0,0,A,n).data;return[H(this,IC,wH).call(this,a),A,n]},M(hs,IC),M(hs,Ir,{maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16}),M(hs,Cl,new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1]));class oX extends GF{constructor(){super(),super.updateProperties({fill:RC._defaultLineColor,"stroke-width":0})}clone(){const g=new oX;return g.updateAll(this),g}}class aX extends aB{constructor(g){super(g),super.updateProperties({stroke:RC._defaultLineColor,"stroke-width":1})}clone(){const g=new aX(this._viewParameters);return g.updateAll(this),g}}const YA=class YA extends oB{constructor(I){super({...I,mustBeCommitted:!0,name:"signatureEditor"});M(this,md,!1);M(this,gs,null);M(this,rd,null);M(this,Cr,null);this._willKeepAspectRatio=!0,y(this,rd,I.signatureData||null),y(this,gs,null),this.defaultL10nId="pdfjs-editor-signature-editor1"}static initialize(I,e){RC.initialize(I,e),this._defaultDrawingOptions=new oX,this._defaultDrawnSignatureOptions=new aX(e.viewParameters)}static getDefaultDrawingOptions(I){const e=this._defaultDrawingOptions.clone();return e.updateProperties(I),e}static get supportMultipleDrawings(){return!1}static get typesMap(){return dI(this,"typesMap",new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:"signature",hasDescription:!!c(this,gs)}}static computeTelemetryFinalData(I){const e=I.get("hasDescription");return{hasAltText:e.get(!0)??0,hasNoAltText:e.get(!1)??0}}get isResizable(){return!0}onScaleChanging(){this._drawId!==null&&super.onScaleChanging()}render(){if(this.div)return this.div;let I,e;const{_isCopy:t}=this;if(t&&(this._isCopy=!1,I=this.x,e=this.y),super.render(),this._drawId===null)if(c(this,rd)){const{lines:i,mustSmooth:A,areContours:n,description:s,uuid:o,heightInPage:a}=c(this,rd),{rawDims:{pageWidth:d,pageHeight:m},rotation:Z}=this.parent.viewport,u=hs.processDrawnLines({lines:i,pageWidth:d,pageHeight:m,rotation:Z,innerMargin:YA._INNER_MARGIN,mustSmooth:A,areContours:n});this.addSignature(u,a,s,o)}else this.div.setAttribute("data-l10n-args",JSON.stringify({description:""})),this.div.hidden=!0,this._uiManager.getSignature(this);else this.div.setAttribute("data-l10n-args",JSON.stringify({description:c(this,gs)||""}));return t&&(this._isCopy=!0,this._moveAfterPaste(I,e)),this.div}setUuid(I){y(this,Cr,I),this.addEditToolbar()}getUuid(){return c(this,Cr)}get description(){return c(this,gs)}set description(I){y(this,gs,I),this.div&&(this.div.setAttribute("data-l10n-args",JSON.stringify({description:I})),super.addEditToolbar().then(e=>{e==null||e.updateEditSignatureButton(I)}))}getSignaturePreview(){const{newCurves:I,areContours:e,thickness:t,width:i,height:A}=c(this,rd),n=Math.max(i,A),s=hs.processDrawnLines({lines:{curves:I.map(o=>({points:o})),thickness:t,width:i,height:A},pageWidth:n,pageHeight:n,rotation:0,innerMargin:0,mustSmooth:!1,areContours:e});return{areContours:e,outline:s.outline}}get toolbarButtons(){return this._uiManager.signatureManager?[["editSignature",this._uiManager.signatureManager]]:super.toolbarButtons}addSignature(I,e,t,i){const{x:A,y:n}=this,{outline:s}=y(this,rd,I);y(this,md,s instanceof sX),this.description=t;let o;c(this,md)?o=YA.getDefaultDrawingOptions():(o=YA._defaultDrawnSignatureOptions.clone(),o.updateProperties({"stroke-width":s.thickness})),this._addOutlines({drawOutlines:s,drawingOptions:o});const[,a]=this.pageDimensions;let d=e/a;d=d>=1?.5:d,this.width*=d/this.height,this.width>=1&&(d*=.9/this.width,this.width=.9),this.height=d,this.setDims(),this.x=A,this.y=n,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(i),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!i,hasDescription:!!t}}),this.div.hidden=!1}getFromImage(I){const{rawDims:{pageWidth:e,pageHeight:t},rotation:i}=this.parent.viewport;return hs.process(I,e,t,i,YA._INNER_MARGIN)}getFromText(I,e){const{rawDims:{pageWidth:t,pageHeight:i},rotation:A}=this.parent.viewport;return hs.extractContoursFromText(I,e,t,i,A,YA._INNER_MARGIN)}getDrawnSignature(I){const{rawDims:{pageWidth:e,pageHeight:t},rotation:i}=this.parent.viewport;return hs.processDrawnLines({lines:I,pageWidth:e,pageHeight:t,rotation:i,innerMargin:YA._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions({areContours:I,thickness:e}){I?this._drawingOptions=YA.getDefaultDrawingOptions():(this._drawingOptions=YA._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":e}))}serialize(I=!1){if(this.isEmpty())return null;const{lines:e,points:t}=this.serializeDraw(I),{_drawingOptions:{"stroke-width":i}}=this,A=Object.assign(super.serialize(I),{isSignature:!0,areContours:c(this,md),color:[0,0,0],thickness:c(this,md)?0:i});return this.addComment(A),I?(A.paths={lines:e,points:t},A.uuid=c(this,Cr),A.isCopy=!0):A.lines=e,c(this,gs)&&(A.accessibilityData={type:"Figure",alt:c(this,gs)}),A}static deserializeDraw(I,e,t,i,A,n){return n.areContours?sX.deserialize(I,e,t,i,A,n):Mu.deserialize(I,e,t,i,A,n)}static async deserialize(I,e,t){var A;const i=await super.deserialize(I,e,t);return y(i,md,I.areContours),i.description=((A=I.accessibilityData)==null?void 0:A.alt)||"",y(i,Cr,I.uuid),i}};md=new WeakMap,gs=new WeakMap,rd=new WeakMap,Cr=new WeakMap,sg(YA,"_type","signature"),sg(YA,"_editorType",oI.SIGNATURE),sg(YA,"_defaultDrawingOptions",null);let dX=YA;class cX extends RC{constructor(I){super({...I,name:"stampEditor"});M(this,vI);M(this,LC,null);M(this,tt,null);M(this,Zd,null);M(this,Go,null);M(this,bd,null);M(this,_0,"");M(this,wo,null);M(this,er,!1);M(this,Is,null);M(this,yA,!1);M(this,q0,!1);y(this,Go,I.bitmapUrl),y(this,bd,I.bitmapFile),this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(I,e){RC.initialize(I,e)}static isHandlingMimeForPasting(I){return KV.includes(I)}static paste(I,e){e.pasteEditor({mode:oI.STAMP},{bitmapFile:I.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){var I;return{type:"stamp",hasAltText:!!((I=this.altTextData)!=null&&I.altText)}}static computeTelemetryFinalData(I){const e=I.get("hasAltText");return{hasAltText:e.get(!0)??0,hasNoAltText:e.get(!1)??0}}async mlGuessAltText(I=null,e=!0){if(this.hasAltTextData())return null;const{mlManager:t}=this._uiManager;if(!t)throw new Error("No ML.");if(!await t.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:i,width:A,height:n}=I||this.copyCanvas(null,null,!0).imageData,s=await t.guess({name:"altText",request:{data:i,width:A,height:n,channels:i.length/(A*n)}});if(!s)throw new Error("No response from the AI service.");if(s.error)throw new Error("Error from the AI service.");if(s.cancel)return null;if(!s.output)throw new Error("No valid response from the AI service.");const o=s.output;return await this.setGuessedAltText(o),e&&!this.hasAltTextData()&&(this.altTextData={alt:o,decorative:!1}),o}remove(){var I;c(this,tt)&&(y(this,LC,null),this._uiManager.imageManager.deleteId(c(this,tt)),(I=c(this,wo))==null||I.remove(),y(this,wo,null),c(this,Is)&&(clearTimeout(c(this,Is)),y(this,Is,null))),super.remove()}rebuild(){if(!this.parent){c(this,tt)&&H(this,vI,ly).call(this);return}super.rebuild(),this.div!==null&&(c(this,tt)&&c(this,wo)===null&&H(this,vI,ly).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(I){this._isDraggable=!0,I&&this.div.focus()}isEmpty(){return!(c(this,Zd)||c(this,LC)||c(this,Go)||c(this,bd)||c(this,tt)||c(this,er))}get toolbarButtons(){return[["altText",this.createAltText()]]}get isResizable(){return!0}render(){if(this.div)return this.div;let I,e;return this._isCopy&&(I=this.x,e=this.y),super.render(),this.div.hidden=!0,this.createAltText(),c(this,er)||(c(this,LC)?H(this,vI,sy).call(this):H(this,vI,ly).call(this)),this._isCopy&&this._moveAfterPaste(I,e),this._uiManager.addShouldRescale(this),this.div}setCanvas(I,e){const{id:t,bitmap:i}=this._uiManager.imageManager.getFromCanvas(I,e);e.remove(),t&&this._uiManager.imageManager.isValidId(t)&&(y(this,tt,t),i&&y(this,LC,i),y(this,er,!1),H(this,vI,sy).call(this))}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;c(this,Is)!==null&&clearTimeout(c(this,Is)),y(this,Is,setTimeout(()=>{y(this,Is,null),H(this,vI,BH).call(this)},200))}copyCanvas(I,e,t=!1){I||(I=224);const{width:i,height:A}=c(this,LC),n=new Wl;let s=c(this,LC),o=i,a=A,d=null;if(e){if(i>e||A>e){const X=Math.min(e/i,e/A);o=Math.floor(i*X),a=Math.floor(A*X)}d=document.createElement("canvas");const Z=d.width=Math.ceil(o*n.sx),u=d.height=Math.ceil(a*n.sy);c(this,yA)||(s=H(this,vI,oy).call(this,Z,u));const h=d.getContext("2d");h.filter=this._uiManager.hcmFilter;let G="white",w="#cfcfd8";this._uiManager.hcmFilter!=="none"?w="black":ujg.isDarkMode&&(G="#8f8f9d",w="#42414d");const B=15,p=B*n.sx,Y=B*n.sy,N=new OffscreenCanvas(p*2,Y*2),R=N.getContext("2d");R.fillStyle=G,R.fillRect(0,0,p*2,Y*2),R.fillStyle=w,R.fillRect(0,0,p,Y),R.fillRect(p,Y,p,Y),h.fillStyle=h.createPattern(N,"repeat"),h.fillRect(0,0,Z,u),h.drawImage(s,0,0,s.width,s.height,0,0,Z,u)}let m=null;if(t){let Z,u;if(n.symmetric&&s.width<I&&s.height<I)Z=s.width,u=s.height;else if(s=c(this,LC),i>I||A>I){const w=Math.min(I/i,I/A);Z=Math.floor(i*w),u=Math.floor(A*w),c(this,yA)||(s=H(this,vI,oy).call(this,Z,u))}const G=new OffscreenCanvas(Z,u).getContext("2d",{willReadFrequently:!0});G.drawImage(s,0,0,s.width,s.height,0,0,Z,u),m={width:Z,height:u,data:G.getImageData(0,0,Z,u).data}}return{canvas:d,width:o,height:a,imageData:m}}static async deserialize(I,e,t){var G;let i=null,A=!1;if(I instanceof uF){const{data:{rect:w,rotation:B,id:p,structParent:Y,popupRef:N,richText:R,contentsObj:X,creationDate:K,modificationDate:D},container:k,parent:{page:{pageNumber:z}},canvas:v}=I;let O,Cg;v?(delete I.canvas,{id:O,bitmap:Cg}=t.imageManager.getFromCanvas(k.id,v),v.remove()):(A=!0,I._hasNoCanvas=!0);const U=((G=await e._structTree.getAriaAttributes(`${Ur}${p}`))==null?void 0:G.get("aria-label"))||"";i=I={annotationType:oI.STAMP,bitmapId:O,bitmap:Cg,pageIndex:z-1,rect:w.slice(0),rotation:B,annotationElementId:p,id:p,deleted:!1,accessibilityData:{decorative:!1,altText:U},isSvg:!1,structParent:Y,popupRef:N,richText:R,comment:(X==null?void 0:X.str)||null,creationDate:K,modificationDate:D}}const n=await super.deserialize(I,e,t),{rect:s,bitmap:o,bitmapUrl:a,bitmapId:d,isSvg:m,accessibilityData:Z}=I;A?(t.addMissingCanvas(I.id,n),y(n,er,!0)):d&&t.imageManager.isValidId(d)?(y(n,tt,d),o&&y(n,LC,o)):y(n,Go,a),y(n,yA,m);const[u,h]=n.pageDimensions;return n.width=(s[2]-s[0])/u,n.height=(s[3]-s[1])/h,Z&&(n.altTextData=Z),n._initialData=i,I.comment&&n.setCommentData(I),y(n,q0,!!i),n}serialize(I=!1,e=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const t=Object.assign(super.serialize(I),{bitmapId:c(this,tt),isSvg:c(this,yA)});if(this.addComment(t),I)return t.bitmapUrl=H(this,vI,ay).call(this,!0),t.accessibilityData=this.serializeAltText(!0),t.isCopy=!0,t;const{decorative:i,altText:A}=this.serializeAltText(!1);if(!i&&A&&(t.accessibilityData={type:"Figure",alt:A}),this.annotationElementId){const s=H(this,vI,nQ).call(this,t);return s.isSame?null:(s.isSameAltText?delete t.accessibilityData:t.accessibilityData.structParent=this._initialData.structParent??-1,t.id=this.annotationElementId,delete t.bitmapId,t)}if(e===null)return t;e.stamps||(e.stamps=new Map);const n=c(this,yA)?(t.rect[2]-t.rect[0])*(t.rect[3]-t.rect[1]):null;if(!e.stamps.has(c(this,tt)))e.stamps.set(c(this,tt),{area:n,serialized:t}),t.bitmap=H(this,vI,ay).call(this,!1);else if(c(this,yA)){const s=e.stamps.get(c(this,tt));n>s.area&&(s.area=n,s.serialized.bitmap.close(),s.serialized.bitmap=H(this,vI,ay).call(this,!1))}return t}renderAnnotationElement(I){return this.deleted?(I.hide(),null):(I.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}}LC=new WeakMap,tt=new WeakMap,Zd=new WeakMap,Go=new WeakMap,bd=new WeakMap,_0=new WeakMap,wo=new WeakMap,er=new WeakMap,Is=new WeakMap,yA=new WeakMap,q0=new WeakMap,vI=new WeakSet,dw=function(I,e=!1){if(!I){this.remove();return}y(this,LC,I.bitmap),e||(y(this,tt,I.id),y(this,yA,I.isSvg)),I.file&&y(this,_0,I.file.name),H(this,vI,sy).call(this)},cw=function(){if(y(this,Zd,null),this._uiManager.enableWaiting(!1),!!c(this,wo)){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&c(this,LC)){this.addEditToolbar().then(()=>{this._editToolbar.hide(),this._uiManager.editAltText(this,!0)});return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&c(this,LC)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}},ly=function(){if(c(this,tt)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(c(this,tt)).then(t=>H(this,vI,dw).call(this,t,!0)).finally(()=>H(this,vI,cw).call(this));return}if(c(this,Go)){const t=c(this,Go);y(this,Go,null),this._uiManager.enableWaiting(!0),y(this,Zd,this._uiManager.imageManager.getFromUrl(t).then(i=>H(this,vI,dw).call(this,i)).finally(()=>H(this,vI,cw).call(this)));return}if(c(this,bd)){const t=c(this,bd);y(this,bd,null),this._uiManager.enableWaiting(!0),y(this,Zd,this._uiManager.imageManager.getFromFile(t).then(i=>H(this,vI,dw).call(this,i)).finally(()=>H(this,vI,cw).call(this)));return}const I=document.createElement("input");I.type="file",I.accept=KV.join(",");const e=this._uiManager._signal;y(this,Zd,new Promise(t=>{I.addEventListener("change",async()=>{if(!I.files||I.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const i=await this._uiManager.imageManager.getFromFile(I.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),H(this,vI,dw).call(this,i)}t()},{signal:e}),I.addEventListener("cancel",()=>{this.remove(),t()},{signal:e})}).finally(()=>H(this,vI,cw).call(this))),I.click()},sy=function(){var o;const{div:I}=this;let{width:e,height:t}=c(this,LC);const[i,A]=this.pageDimensions,n=.75;if(this.width)e=this.width*i,t=this.height*A;else if(e>n*i||t>n*A){const a=Math.min(n*i/e,n*A/t);e*=a,t*=a}this._uiManager.enableWaiting(!1);const s=y(this,wo,document.createElement("canvas"));s.setAttribute("role","img"),this.addContainer(s),this.width=e/i,this.height=t/A,this.setDims(),(o=this._initialOptions)!=null&&o.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(I.hidden=!1),H(this,vI,BH).call(this),c(this,q0)||(this.parent.addUndoableEditor(this),y(this,q0,!0)),this._reportTelemetry({action:"inserted_image"}),c(this,_0)&&this.div.setAttribute("aria-description",c(this,_0)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-stamp-added-alert")},oy=function(I,e){const{width:t,height:i}=c(this,LC);let A=t,n=i,s=c(this,LC);for(;A>2*I||n>2*e;){const o=A,a=n;A>2*I&&(A=Math.ceil(A/2)),n>2*e&&(n=Math.ceil(n/2));const d=new OffscreenCanvas(A,n);d.getContext("2d").drawImage(s,0,0,o,a,0,0,A,n),s=d.transferToImageBitmap()}return s},BH=function(){const[I,e]=this.parentDimensions,{width:t,height:i}=this,A=new Wl,n=Math.ceil(t*I*A.sx),s=Math.ceil(i*e*A.sy),o=c(this,wo);if(!o||o.width===n&&o.height===s)return;o.width=n,o.height=s;const a=c(this,yA)?c(this,LC):H(this,vI,oy).call(this,n,s),d=o.getContext("2d");d.filter=this._uiManager.hcmFilter,d.drawImage(a,0,0,a.width,a.height,0,0,n,s)},ay=function(I){if(I){if(c(this,yA)){const i=this._uiManager.imageManager.getSvgUrl(c(this,tt));if(i)return i}const e=document.createElement("canvas");return{width:e.width,height:e.height}=c(this,LC),e.getContext("2d").drawImage(c(this,LC),0,0),e.toDataURL()}if(c(this,yA)){const[e,t]=this.pageDimensions,i=Math.round(this.width*e*ia.PDF_TO_CSS_UNITS),A=Math.round(this.height*t*ia.PDF_TO_CSS_UNITS),n=new OffscreenCanvas(i,A);return n.getContext("2d").drawImage(c(this,LC),0,0,c(this,LC).width,c(this,LC).height,0,0,i,A),n.transferToImageBitmap()}return structuredClone(c(this,LC))},nQ=function(I){var n;const{pageIndex:e,accessibilityData:{altText:t}}=this._initialData,i=I.pageIndex===e,A=(((n=I.accessibilityData)==null?void 0:n.alt)||"")===t;return{isSame:!this.hasEditedComment&&!this._hasBeenMoved&&!this._hasBeenResized&&i&&A,isSameAltText:A}},sg(cX,"_type","stamp"),sg(cX,"_editorType",oI.STAMP);const tl=class tl{constructor({uiManager:g,pageIndex:I,div:e,structTreeLayer:t,accessibilityManager:i,annotationLayer:A,drawLayer:n,textLayer:s,viewport:o,l10n:a}){M(this,yC);M(this,tr);M(this,$0,!1);M(this,ud,null);M(this,hd,null);M(this,Wo,null);M(this,Li,new Map);M(this,Gd,!1);M(this,gb,!1);M(this,Ib,!1);M(this,el,null);M(this,Bo,null);M(this,it,null);M(this,po,null);M(this,wd,null);M(this,Cb,-1);M(this,Og);const d=[...c(tl,Wd).values()];if(!tl._initialized){tl._initialized=!0;for(const m of d)m.initialize(a,g)}g.registerEditorTypes(d),y(this,Og,g),this.pageIndex=I,this.div=e,y(this,tr,i),y(this,ud,A),this.viewport=o,y(this,it,s),this.drawLayer=n,this._structTree=t,c(this,Og).addLayer(this)}get isEmpty(){return c(this,Li).size===0}get isInvisible(){return this.isEmpty&&c(this,Og).getMode()===oI.NONE}updateToolbar(g){c(this,Og).updateToolbar(g)}updateMode(g=c(this,Og).getMode()){switch(H(this,yC,dy).call(this),g){case oI.NONE:this.div.classList.toggle("nonEditing",!0),this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case oI.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case oI.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:I}=this.div;if(I.toggle("nonEditing",!1),g===oI.POPUP)I.toggle("commentEditing",!0);else{I.toggle("commentEditing",!1);for(const e of c(tl,Wd).values())I.toggle(`${e._type}Editing`,g===e._editorType)}this.div.hidden=!1}hasTextLayer(g){var I;return g===((I=c(this,it))==null?void 0:I.div)}setEditingState(g){c(this,Og).setEditingState(g)}addCommands(g){c(this,Og).addCommands(g)}cleanUndoStack(g){c(this,Og).cleanUndoStack(g)}toggleDrawing(g=!1){this.div.classList.toggle("drawing",!g)}togglePointerEvents(g=!1){this.div.classList.toggle("disabled",!g)}toggleAnnotationLayerPointerEvents(g=!1){var I;(I=c(this,ud))==null||I.togglePointerEvents(g)}async enable(){var e;y(this,Ib,!0),this.div.tabIndex=0,this.togglePointerEvents(!0),this.div.classList.toggle("nonEditing",!1),(e=c(this,wd))==null||e.abort(),y(this,wd,null);const g=new Set;for(const t of c(this,yC,pH))t.enableEditing(),t.show(!0),t.annotationElementId&&(c(this,Og).removeChangedExistingAnnotation(t),g.add(t.annotationElementId));const I=c(this,ud);if(I)for(const t of I.getEditableAnnotations()){if(t.hide(),c(this,Og).isDeletedAnnotationElement(t.data.id)||g.has(t.data.id))continue;const i=await this.deserialize(t);i&&(this.addOrRebuild(i),i.enableEditing())}y(this,Ib,!1),c(this,Og)._eventBus.dispatch("editorsrendered",{source:this,pageNumber:this.pageIndex+1})}disable(){var t;if(y(this,gb,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1),this.div.classList.toggle("nonEditing",!0),c(this,it)&&!c(this,wd)){y(this,wd,new AbortController);const i=c(this,Og).combinedSignal(c(this,wd));c(this,it).div.addEventListener("pointerdown",A=>{const{clientX:s,clientY:o,timeStamp:a}=A,d=c(this,Cb);if(a-d>500){y(this,Cb,a);return}y(this,Cb,-1);const{classList:m}=this.div;m.toggle("getElements",!0);const Z=document.elementsFromPoint(s,o);if(m.toggle("getElements",!1),!this.div.contains(Z[0]))return;let u;const h=new RegExp(`^${Zu}[0-9]+$`);for(const w of Z)if(h.test(w.id)){u=w.id;break}if(!u)return;const G=c(this,Li).get(u);(G==null?void 0:G.annotationElementId)===null&&(qC(A),G.dblclick(A))},{signal:i,capture:!0})}const g=c(this,ud),I=[];if(g){const i=new Map,A=new Map;for(const n of c(this,yC,pH)){if(n.disableEditing(),!n.annotationElementId){I.push(n);continue}if(n.serialize()!==null){i.set(n.annotationElementId,n);continue}else A.set(n.annotationElementId,n);(t=this.getEditableAnnotation(n.annotationElementId))==null||t.show(),n.remove()}for(const n of g.getEditableAnnotations()){const{id:s}=n.data;if(c(this,Og).isDeletedAnnotationElement(s)){n.updateEdited({deleted:!0});continue}let o=A.get(s);if(o){o.resetAnnotationElement(n),o.show(!1),n.show();continue}o=i.get(s),o&&(c(this,Og).addChangedExistingAnnotation(o),o.renderAnnotationElement(n)&&o.show(!1)),n.show()}}H(this,yC,dy).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:e}=this.div;for(const i of c(tl,Wd).values())e.remove(`${i._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),g==null||g.updateFakeAnnotations(I),y(this,gb,!1)}getEditableAnnotation(g){var I;return((I=c(this,ud))==null?void 0:I.getEditableAnnotation(g))||null}setActiveEditor(g){c(this,Og).getActive()!==g&&c(this,Og).setActiveEditor(g)}enableTextSelection(){var g;if(this.div.tabIndex=-1,(g=c(this,it))!=null&&g.div&&!c(this,po)){y(this,po,new AbortController);const I=c(this,Og).combinedSignal(c(this,po));c(this,it).div.addEventListener("pointerdown",H(this,yC,lQ).bind(this),{signal:I}),c(this,it).div.classList.add("highlighting")}}disableTextSelection(){var g;this.div.tabIndex=0,(g=c(this,it))!=null&&g.div&&c(this,po)&&(c(this,po).abort(),y(this,po,null),c(this,it).div.classList.remove("highlighting"))}enableClick(){if(c(this,hd))return;y(this,hd,new AbortController);const g=c(this,Og).combinedSignal(c(this,hd));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:g});const I=this.pointerup.bind(this);this.div.addEventListener("pointerup",I,{signal:g}),this.div.addEventListener("pointercancel",I,{signal:g})}disableClick(){var g;(g=c(this,hd))==null||g.abort(),y(this,hd,null)}attach(g){c(this,Li).set(g.id,g);const{annotationElementId:I}=g;I&&c(this,Og).isDeletedAnnotationElement(I)&&c(this,Og).removeDeletedAnnotationElement(g)}detach(g){var I;c(this,Li).delete(g.id),(I=c(this,tr))==null||I.removePointerInTextLayer(g.contentDiv),!c(this,gb)&&g.annotationElementId&&c(this,Og).addDeletedAnnotationElement(g)}remove(g){this.detach(g),c(this,Og).removeEditor(g),g.div.remove(),g.isAttachedToDOM=!1}changeParent(g){var I;g.parent!==this&&(g.parent&&g.annotationElementId&&(c(this,Og).addDeletedAnnotationElement(g),RC.deleteAnnotationElement(g),g.annotationElementId=null),this.attach(g),(I=g.parent)==null||I.detach(g),g.setParent(this),g.div&&g.isAttachedToDOM&&(g.div.remove(),this.div.append(g.div)))}add(g){if(!(g.parent===this&&g.isAttachedToDOM)){if(this.changeParent(g),c(this,Og).addEditor(g),this.attach(g),!g.isAttachedToDOM){const I=g.render();this.div.append(I),g.isAttachedToDOM=!0}g.fixAndSetPosition(),g.onceAdded(!c(this,Ib)),c(this,Og).addToAnnotationStorage(g),g._reportTelemetry(g.telemetryInitialData)}}moveEditorInDOM(g){var e;if(!g.isAttachedToDOM)return;const{activeElement:I}=document;g.div.contains(I)&&!c(this,Wo)&&(g._focusEventsAllowed=!1,y(this,Wo,setTimeout(()=>{y(this,Wo,null),g.div.contains(document.activeElement)?g._focusEventsAllowed=!0:(g.div.addEventListener("focusin",()=>{g._focusEventsAllowed=!0},{once:!0,signal:c(this,Og)._signal}),I.focus())},0))),g._structTreeParentId=(e=c(this,tr))==null?void 0:e.moveElementInDOM(this.div,g.div,g.contentDiv,!0)}addOrRebuild(g){g.needsToBeRebuilt()?(g.parent||(g.parent=this),g.rebuild(),g.show()):this.add(g)}addUndoableEditor(g){const I=()=>g._uiManager.rebuild(g),e=()=>{g.remove()};this.addCommands({cmd:I,undo:e,mustExec:!1})}getEditorByUID(g){for(const I of c(this,Li).values())if(I.uid===g)return I;return null}combinedSignal(g){return c(this,Og).combinedSignal(g)}canCreateNewEmptyEditor(){var g;return(g=c(this,yC,ss))==null?void 0:g.canCreateNewEmptyEditor()}async pasteEditor(g,I){this.updateToolbar(g),await c(this,Og).updateMode(g.mode);const{offsetX:e,offsetY:t}=H(this,yC,yH).call(this),i=c(this,Og).getId(),A=H(this,yC,YH).call(this,{parent:this,id:i,x:e,y:t,uiManager:c(this,Og),isCentered:!0,...I});A&&this.add(A)}async deserialize(g){var I;return await((I=c(tl,Wd).get(g.annotationType??g.annotationEditorType))==null?void 0:I.deserialize(g,this,c(this,Og)))||null}createAndAddNewEditor(g,I,e={}){const t=c(this,Og).getId(),i=H(this,yC,YH).call(this,{parent:this,id:t,x:g.offsetX,y:g.offsetY,uiManager:c(this,Og),isCentered:I,...e});return i&&this.add(i),i}get boundingClientRect(){return this.div.getBoundingClientRect()}addNewEditor(g={}){this.createAndAddNewEditor(H(this,yC,yH).call(this),!0,g)}setSelected(g){c(this,Og).setSelected(g)}toggleSelected(g){c(this,Og).toggleSelected(g)}unselect(g){c(this,Og).unselect(g)}pointerup(g){var t;const{isMac:I}=Xe.platform;if(g.button!==0||g.ctrlKey&&I||g.target!==this.div||!c(this,Gd)||(y(this,Gd,!1),(t=c(this,yC,ss))!=null&&t.isDrawer&&c(this,yC,ss).supportMultipleDrawings))return;if(!c(this,$0)){y(this,$0,!0);return}const e=c(this,Og).getMode();if(e===oI.STAMP||e===oI.POPUP||e===oI.SIGNATURE){c(this,Og).unselectAll();return}this.createAndAddNewEditor(g,!1)}pointerdown(g){var t;if(c(this,Og).getMode()===oI.HIGHLIGHT&&this.enableTextSelection(),c(this,Gd)){y(this,Gd,!1);return}const{isMac:I}=Xe.platform;if(g.button!==0||g.ctrlKey&&I||g.target!==this.div)return;if(y(this,Gd,!0),(t=c(this,yC,ss))!=null&&t.isDrawer){this.startDrawingSession(g);return}const e=c(this,Og).getActive();y(this,$0,!e||e.isEmpty())}startDrawingSession(g){if(this.div.focus({preventScroll:!0}),c(this,el)){c(this,yC,ss).startDrawing(this,c(this,Og),!1,g);return}c(this,Og).setCurrentDrawingSession(this),y(this,el,new AbortController);const I=c(this,Og).combinedSignal(c(this,el));this.div.addEventListener("blur",({relatedTarget:e})=>{e&&!this.div.contains(e)&&(y(this,Bo,null),this.commitOrRemove())},{signal:I}),c(this,yC,ss).startDrawing(this,c(this,Og),!1,g)}pause(g){if(g){const{activeElement:I}=document;this.div.contains(I)&&y(this,Bo,I);return}c(this,Bo)&&setTimeout(()=>{var I;(I=c(this,Bo))==null||I.focus(),y(this,Bo,null)},0)}endDrawingSession(g=!1){return c(this,el)?(c(this,Og).setCurrentDrawingSession(null),c(this,el).abort(),y(this,el,null),y(this,Bo,null),c(this,yC,ss).endDrawing(g)):null}findNewParent(g,I,e){const t=c(this,Og).findParent(I,e);return t===null||t===this?!1:(t.changeParent(g),!0)}commitOrRemove(){return c(this,el)?(this.endDrawingSession(),!0):!1}onScaleChanging(){c(this,el)&&c(this,yC,ss).onScaleChangingWhenDrawing(this)}destroy(){var g,I;this.commitOrRemove(),((g=c(this,Og).getActive())==null?void 0:g.parent)===this&&(c(this,Og).commitOrRemove(),c(this,Og).setActiveEditor(null)),c(this,Wo)&&(clearTimeout(c(this,Wo)),y(this,Wo,null));for(const e of c(this,Li).values())(I=c(this,tr))==null||I.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,c(this,Li).clear(),c(this,Og).removeLayer(this)}async render({viewport:g}){this.viewport=g,oc(this.div,g);for(const I of c(this,Og).getEditors(this.pageIndex))this.add(I),I.rebuild();await c(this,Og).findClonesForPage(this),this.div.hidden=this.isEmpty,this.updateMode()}update({viewport:g}){c(this,Og).commitOrRemove(),H(this,yC,dy).call(this);const I=this.viewport.rotation,e=g.rotation;if(this.viewport=g,oc(this.div,{rotation:e}),I!==e)for(const t of c(this,Li).values())t.rotate(e)}get pageDimensions(){const{pageWidth:g,pageHeight:I}=this.viewport.rawDims;return[g,I]}get scale(){return c(this,Og).viewParameters.realScale}};tr=new WeakMap,$0=new WeakMap,ud=new WeakMap,hd=new WeakMap,Wo=new WeakMap,Li=new WeakMap,Gd=new WeakMap,gb=new WeakMap,Ib=new WeakMap,el=new WeakMap,Bo=new WeakMap,it=new WeakMap,po=new WeakMap,wd=new WeakMap,Cb=new WeakMap,Og=new WeakMap,Wd=new WeakMap,yC=new WeakSet,pH=function(){return c(this,Li).size!==0?c(this,Li).values():c(this,Og).getEditors(this.pageIndex)},lQ=function(g){c(this,Og).unselectAll();const{target:I}=g;if(I===c(this,it).div||(I.getAttribute("role")==="img"||I.classList.contains("endOfContent")||I.classList.contains("textLayerImagePlaceholder"))&&c(this,it).div.contains(I)){const{isMac:e}=Xe.platform;if(g.button!==0||g.ctrlKey&&e)return;c(this,Og).showAllEditors("highlight",!0,!0),c(this,it).div.classList.add("free"),this.toggleDrawing(),sB.startHighlighting(this,c(this,Og).direction==="ltr",{target:c(this,it).div,x:g.x,y:g.y}),c(this,it).div.addEventListener("pointerup",()=>{c(this,it).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:c(this,Og)._signal}),g.preventDefault()}},ss=function(){return c(tl,Wd).get(c(this,Og).getMode())},YH=function(g){const I=c(this,yC,ss);return I?new I.prototype.constructor(g):null},yH=function(){const{x:g,y:I,width:e,height:t}=this.boundingClientRect,i=Math.max(0,g),A=Math.max(0,I),n=Math.min(window.innerWidth,g+e),s=Math.min(window.innerHeight,I+t),o=(i+n)/2-g,a=(A+s)/2-I,[d,m]=this.viewport.rotation%180===0?[o,a]:[a,o];return{offsetX:d,offsetY:m}},dy=function(){for(const g of c(this,Li).values())g.isEmpty()&&g.remove()},sg(tl,"_initialized",!1),M(tl,Wd,new Map([iX,lX,cX,sB,dX].map(g=>[g._editorType,g])));let mX=tl;const Qe=class Qe{constructor(){M(this,Cs);M(this,il,null);M(this,ui,new Map);M(this,ir,new Map)}setParent(g){if(!c(this,il)){y(this,il,g);return}if(c(this,il)!==g){if(c(this,ui).size>0)for(const I of c(this,ui).values())I.remove(),g.append(I);y(this,il,g)}}static get _svgFactory(){return dI(this,"_svgFactory",new AB)}draw(g,I=!1,e=!1){const t=Je(Qe,W2)._++,i=H(this,Cs,NH).call(this),A=Qe._svgFactory.createElement("defs");i.append(A);const n=Qe._svgFactory.createElement("path");A.append(n);const s=`path_${t}`;n.setAttribute("id",s),n.setAttribute("vector-effect","non-scaling-stroke"),I&&c(this,ir).set(t,n);const o=e?H(this,Cs,oQ).call(this,A,s):null,a=Qe._svgFactory.createElement("use");return i.append(a),a.setAttribute("href",`#${s}`),this.updateProperties(i,g),c(this,ui).set(t,i),{id:t,clipPathId:`url(#${o})`}}drawOutline(g,I){const e=Je(Qe,W2)._++,t=H(this,Cs,NH).call(this),i=Qe._svgFactory.createElement("defs");t.append(i);const A=Qe._svgFactory.createElement("path");i.append(A);const n=`path_${e}`;A.setAttribute("id",n),A.setAttribute("vector-effect","non-scaling-stroke");let s;if(I){const d=Qe._svgFactory.createElement("mask");i.append(d),s=`mask_${e}`,d.setAttribute("id",s),d.setAttribute("maskUnits","objectBoundingBox");const m=Qe._svgFactory.createElement("rect");d.append(m),m.setAttribute("width","1"),m.setAttribute("height","1"),m.setAttribute("fill","white");const Z=Qe._svgFactory.createElement("use");d.append(Z),Z.setAttribute("href",`#${n}`),Z.setAttribute("stroke","none"),Z.setAttribute("fill","black"),Z.setAttribute("fill-rule","nonzero"),Z.classList.add("mask")}const o=Qe._svgFactory.createElement("use");t.append(o),o.setAttribute("href",`#${n}`),s&&o.setAttribute("mask",`url(#${s})`);const a=o.cloneNode();return t.append(a),o.classList.add("mainOutline"),a.classList.add("secondaryOutline"),this.updateProperties(t,g),c(this,ui).set(e,t),e}finalizeDraw(g,I){c(this,ir).delete(g),this.updateProperties(g,I)}updateProperties(g,I){var s;if(!I)return;const{root:e,bbox:t,rootClass:i,path:A}=I,n=typeof g=="number"?c(this,ui).get(g):g;if(n){if(e&&H(this,Cs,VH).call(this,n,e),t&&H(s=Qe,JY,sQ).call(s,n,t),i){const{classList:o}=n;for(const[a,d]of Object.entries(i))o.toggle(a,d)}if(A){const a=n.firstElementChild.firstElementChild;H(this,Cs,VH).call(this,a,A)}}}updateParent(g,I){if(I===this)return;const e=c(this,ui).get(g);e&&(c(I,il).append(e),c(this,ui).delete(g),c(I,ui).set(g,e))}remove(g){c(this,ir).delete(g),c(this,il)!==null&&(c(this,ui).get(g).remove(),c(this,ui).delete(g))}destroy(){y(this,il,null);for(const g of c(this,ui).values())g.remove();c(this,ui).clear(),c(this,ir).clear()}};il=new WeakMap,ui=new WeakMap,ir=new WeakMap,W2=new WeakMap,JY=new WeakSet,sQ=function(g,[I,e,t,i]){const{style:A}=g;A.top=`${100*e}%`,A.left=`${100*I}%`,A.width=`${100*t}%`,A.height=`${100*i}%`},Cs=new WeakSet,NH=function(){const g=Qe._svgFactory.create(1,1,!0);return c(this,il).append(g),g.setAttribute("aria-hidden",!0),g},oQ=function(g,I){const e=Qe._svgFactory.createElement("clipPath");g.append(e);const t=`clip_${I}`;e.setAttribute("id",t),e.setAttribute("clipPathUnits","objectBoundingBox");const i=Qe._svgFactory.createElement("use");return e.append(i),i.setAttribute("href",`#${I}`),i.classList.add("clip"),t},VH=function(g,I){for(const[e,t]of Object.entries(I))t===null?g.removeAttribute(e):g.setAttribute(e,t)},M(Qe,JY),M(Qe,W2,0);let rX=Qe;function cB(C){return`${(C*100).toFixed(2)}%`}const y2=class y2{constructor(g,I,e,t){M(this,xY);M(this,eb,[]);M(this,B2,new Map);M(this,p2,null);M(this,tb,0);M(this,es,0);M(this,ts,0);y(this,tb,g),y(this,eb,I),y(this,es,e.rawDims.pageWidth),y(this,ts,e.rawDims.pageHeight),y(this,p2,t)}render(){const g=document.createElement("div");g.className="textLayerImages";for(let I=0;I<c(this,eb).length;I+=6){const e=H(this,xY,aQ).call(this,c(this,eb).subarray(I,I+6));e&&g.append(e)}return g.addEventListener("contextmenu",I=>{var w;if(!(I.target instanceof HTMLCanvasElement))return;const e=I.target,t=c(this,B2).get(e);if(!t)return;const i=(w=c(y2,Y2))==null?void 0:w.deref();if(i===e)return;i&&(i.width=0,i.height=0),y(y2,Y2,new WeakRef(e));const{inverseTransform:A,x1:n,y1:s,width:o,height:a}=t,d=c(this,p2).call(this),m=Math.ceil(n*d.width),Z=Math.ceil(s*d.height),u=Math.floor((n+o/c(this,es))*d.width),h=Math.floor((s+a/c(this,ts))*d.height);e.width=u-m,e.height=h-Z;const G=e.getContext("2d");G.setTransform(...A),G.translate(-m,-Z),G.drawImage(d,0,0)}),g}};eb=new WeakMap,B2=new WeakMap,p2=new WeakMap,tb=new WeakMap,es=new WeakMap,ts=new WeakMap,Y2=new WeakMap,xY=new WeakSet,aQ=function([g,I,e,t,i,A]){const n=Math.hypot((i-g)*c(this,es),(A-I)*c(this,ts)),s=Math.hypot((e-g)*c(this,es),(t-I)*c(this,ts));if(n<c(this,tb)||s<c(this,tb))return null;const o=[(i-g)*c(this,es)/n,(A-I)*c(this,ts)/n,(e-g)*c(this,es)/s,(t-I)*c(this,ts)/s,0,0],a=Xg.inverseTransform(o),d=document.createElement("canvas");return d.className="textLayerImagePlaceholder",d.width=0,d.height=0,Object.assign(d.style,{opacity:0,position:"absolute",left:cB(g),top:cB(I),width:cB(n/c(this,es)),height:cB(s/c(this,ts)),transformOrigin:"0% 0%",transform:`matrix(${o.join(",")})`}),c(this,B2).set(d,{inverseTransform:a,width:n,height:s,x1:g,y1:I}),d},M(y2,Y2,null);let ZX=y2;globalThis._pdfjsTestingUtils={HighlightOutliner:AX},globalThis.pdfjsLib={AbortException:ta,AnnotationEditorLayer:mX,AnnotationEditorParamsType:hI,AnnotationEditorType:oI,AnnotationEditorUIManager:ac,AnnotationLayer:tX,AnnotationMode:ea,AnnotationType:Ve,applyOpacity:Gjg,build:D4g,ColorPicker:tB,createValidAbsoluteUrl:bk,CSSConstants:hjg,DOMSVGFactory:AB,DrawLayer:rX,FeatureTest:Xe,fetchData:DV,findContrastColor:wjg,getDocument:eB,getFilenameFromUrl:cjg,getPdfFilenameFromUrl:mjg,getRGB:wu,getRGBA:FV,getUuid:wk,getXfaPageViewport:Zjg,GlobalWorkerOptions:pl,ImageKind:fW,InvalidPDFException:RV,isDataScheme:zW,isPdfFile:Er,isValidExplicitDest:zjg,makeArr:HV,makeMap:fV,makeObj:SV,MathClamp:JC,noContextMenu:xA,normalizeUnicode:ajg,OPS:bs,OutputScale:Wl,PasswordResponses:ejg,PDFDataRangeTransport:aF,PDFDateString:JW,PDFWorker:Xu,PermissionFlag:Cjg,PixelsPerInch:ia,RenderingCancelledException:kV,renderRichText:Vk,ResponseException:FW,setLayerDimensions:oc,shadow:dI,SignatureExtractor:hs,stopEvent:qC,SupportedImageMimeTypes:KV,TextLayer:Vu,TextLayerImages:ZX,TouchManager:LW,updateUrlHash:uk,Util:Xg,VerbosityLevel:SW,version:S4g,XfaLayer:Wk};class iQg{constructor(){sg(this,"cache",{});sg(this,"cachePage",{})}setCache(g,I){this.cache[g]=I}getCache(g){return this.cache[g]}setPageCache(g,I){this.cachePage[g]=I}getPageCache(g){return this.cachePage[g]}}const mc=new iQg,AQg=["src"],Gs=l.defineComponent({name:"PdfPreview",__name:"PdfPreview",props:{src:{},page:{},file:{}},emits:["load","error"],setup(C,{expose:g,emit:I}){pl.workerSrc=Ijg;const e=C,t=I,i=l.reactive({isError:!1,rotate:0}),A=l.ref(null);let n,s=null;const o=async()=>{if(e.file){const u=await e.file.arrayBuffer();return{data:new Uint8Array(u)}}return e.src};l.watch([()=>e.src,()=>e.page],()=>{n==null||n.disconnect(),Z(),i.isError=!1,l.nextTick(()=>{m()})}),l.watch(()=>e.src,()=>{i.rotate=0});const a=async()=>{try{if(!A.value||!e.src)throw new Error("Canvas not found");s&&(s==null||s.cancel(),s=null);let u;const h=mc.getCache(e.src);if(h?u=h:(u=await eB(await o()).promise,mc.setCache(e.src,u)),!u)throw new Error("Pdf not found");const G=e.page??1,w=`${e.src}-${G}`,B=mc.getPageCache(w);let p;if(B?p=B:(p=await u.getPage(G),mc.setPageCache(w,p)),!A.value)return;const Y=A.value.getBoundingClientRect(),N=p.getViewport({scale:1}),R=Y.width/N.width,X=Y.height/N.height,K=Math.min(R,X),D=window.devicePixelRatio||1,k=p.getViewport({scale:K*D,rotation:i.rotate}),z=A.value.getContext("2d");if(z===null)throw new Error("Context not found");A.value.width=k.width,A.value.height=k.height;const v=p.render({canvas:A.value,canvasContext:z,viewport:k});s=v,await v.promise,t("load")}catch(u){if(u&&typeof u=="object"&&"name"in u&&(u==null?void 0:u.name)==="RenderingCancelledException")return;console.error(u),i.isError=!0,t("error",u)}finally{s=null}},d=async u=>{try{if(!A.value)return;const h=mc.getPageCache(`${e.src}-${e.page}`);if(!h)return;const G=A.value.getContext("2d");if(!G)return;const w=Math.round(u/90)*90;i.rotate+=w;const{width:B,height:p}=A.value;G.clearRect(0,0,B,p);const Y=h.getViewport({scale:1,rotation:i.rotate});A.value.width=Y.width,A.value.height=Y.height;const N=h.render({canvas:A.value,canvasContext:G,viewport:Y});s=N,await N.promise,t("load")}catch(h){if(h&&typeof h=="object"&&"name"in h&&(h==null?void 0:h.name)==="RenderingCancelledException")return;console.error(h),i.isError=!0}finally{s=null}},m=()=>{A.value&&(n=new IntersectionObserver((u,h)=>{u.forEach(G=>{G.isIntersecting&&(a(),h.unobserve(G.target))},{rootMargin:"50px"})}),n.observe(A.value))},Z=()=>{if(!A.value)return;const u=A.value.getContext("2d");u&&u.clearRect(0,0,A.value.width,A.value.height)};return g({clearCanvas:Z,rotatePdf:d}),l.onMounted(()=>{m()}),(u,h)=>i.isError?(l.openBlock(),l.createElementBlock("img",{key:1,src:l.unref(rs)},null,8,AQg)):(l.openBlock(),l.createElementBlock("canvas",{key:0,ref_key:"canvas",ref:A},null,512))}});var bX=(C=>(C.slideTop="slide-top",C.slideLeft="slide-left",C.fadeAndScale="fade-and-scale",C.fade="fade",C))(bX||{});const nQg=()=>{const C=l.ref(0),g=l.ref([]),I=l.ref(null),e=s=>{g.value.push(s),i(s),A()},t=()=>{g.value.pop(),n(),g.value.length?i(g.value[g.value.length-1]):I.value=null},i=s=>{I.value=s},A=()=>{C.value+=1},n=()=>{C.value>0&&(C.value-=1)};return{countOpenedModal:C,openedModals:g,lastOpenedModal:I,addOpenedModal:e,reduceOpenedModal:t,setLastOpenedModal:i,incrementCountModal:A,decrementCountModal:n}},lQg=["data-testid"],sQg=["data-testid"],mB=Qg(l.defineComponent({__name:"Modal",props:{open:{type:Boolean},position:{default:"right"},width:{},height:{},disableCloseOnOutsideClick:{type:Boolean,default:!1},isResetFocus:{type:Boolean,default:!0},dataTestid:{default:"Modal"}},emits:["close","unmounted"],setup(C,{expose:g,emit:I}){const{lastOpenedModal:e,addOpenedModal:t,reduceOpenedModal:i}=nQg(),A=C,n=l.ref(null),s=l.useAttrs(),o=l.ref(!1),a=l.computed(()=>({width:A.width,height:A.height})),d=I;let m=0;const Z=()=>{m=Date.now(),n.value&&(A.open?(n.value.showModal(),t(n.value)):u())},u=()=>{Date.now()-m<300||(i(),d("close"))},h=()=>{var R;(R=n.value)==null||R.close(),document.documentElement.focus(),window.removeEventListener("mouseup",Y),B()},G=R=>{R.key==="Escape"&&e.value===n.value&&u()},w=()=>{var D;const R=navigator;if(/mac/i.test(((D=R.userAgentData)==null?void 0:D.platform)||navigator.platform||navigator.userAgent||""))return 0;if(document.querySelectorAll(".modal-yui-kit").length===1)return window.innerWidth-document.documentElement.clientWidth;{const k=document.body.style.paddingRight;return Number(k.replace(/\D/g,""))||0}},B=()=>{document.querySelectorAll(".modal-yui-kit").length===0&&OI({overflow:"","padding-right":""},document.body)},p=R=>{if(!n.value)return!1;const X=n.value.getBoundingClientRect();if(!(R.clientX>=X.left&&R.clientX<=X.right&&R.clientY>=X.top&&R.clientY<=X.bottom))return!1;const D=n.value.scrollHeight>n.value.clientHeight&&R.clientX>=X.left+n.value.clientWidth,k=n.value.scrollWidth>n.value.clientWidth&&R.clientY>=X.top+n.value.clientHeight;return D||k},Y=R=>{if(R.target===n.value){if(A.disableCloseOnOutsideClick||p(R))return;u()}window.removeEventListener("mouseup",Y)},N=R=>{p(R)||(window.removeEventListener("mouseup",Y),window.addEventListener("mouseup",Y))};return g({closeDialog:h}),l.onMounted(()=>{l.watchEffect(()=>{A.open!==o.value&&(Z(),o.value=A.open,n.value&&A.isResetFocus&&n.value.focus())}),n.value&&n.value.addEventListener("cancel",X=>{X.preventDefault()});const R=w();OI({overflow:"hidden","padding-right":`${R}px`},document.body),document.addEventListener("keydown",G)}),l.onUnmounted(()=>{B(),window.removeEventListener("mouseup",Y),document.removeEventListener("keydown",G),d("unmounted")}),(R,X)=>(l.openBlock(),l.createElementBlock("dialog",l.mergeProps({ref_key:"dialog",ref:n},l.unref(s),{class:["modal-yui-kit",`modal-yui-kit_${A.position}`],"data-testid":A.dataTestid,onMousedown:l.withModifiers(N,["self","left"])}),[l.createElementVNode("div",{class:"modal-yui-kit__modal-content",style:l.normalizeStyle(a.value),"data-testid":`${A.dataTestid}-ModalContent`},[l.renderSlot(R.$slots,"default",{},void 0,!0)],12,sQg)],16,lQg))}}),[["__scopeId","data-v-5ec420fc"]]),fu=Qg(l.defineComponent({__name:"ModalAnimated",props:{animateType:{},open:{type:Boolean},position:{default:"right"},width:{},height:{},disableCloseOnOutsideClick:{type:Boolean,default:!1},isResetFocus:{type:Boolean},dataTestid:{default:"Modal"}},emits:["close","unmounted","end-animation"],setup(C,{emit:g}){const I=C,e=g,t=l.computed(()=>I.animateType===bX.fade?"fade":I.position==="bottom"?"slide-bottom":I.position==="right"?"slide-left":"fade-and-scale"),i=l.ref(null),A=l.reactive({function:()=>{}}),n=()=>{d()},s=()=>{e("unmounted")},o=()=>{d()},a=()=>{A.function(),e("end-animation")},d=()=>{var Z;i.value&&(A.function=(Z=i.value)==null?void 0:Z.closeDialog)},m=()=>{d(),e("close")};return(Z,u)=>(l.openBlock(),l.createBlock(l.Transition,{name:t.value,onAfterLeave:a,onBeforeLeave:o,onAfterEnter:n},{default:l.withCtx(()=>[I.open?(l.openBlock(),l.createBlock(mB,{key:0,ref_key:"modalRef",ref:i,open:I.open,position:I.position,width:I.width,height:I.height,"data-testid":I.dataTestid,"is-reset-focus":I.isResetFocus,onClose:m,onUnmounted:s,"disable-close-on-outside-click":I.disableCloseOnOutsideClick},{default:l.withCtx(()=>[l.renderSlot(Z.$slots,"default",{},void 0,!0)]),_:3},8,["open","position","width","height","data-testid","is-reset-focus","disable-close-on-outside-click"])):l.createCommentVNode("",!0)]),_:3},8,["name"]))}}),[["__scopeId","data-v-728b0160"]]),wF=(C,g=window)=>{const I=C.getBoundingClientRect();if(g instanceof Window){const e=window.innerWidth,t=window.innerHeight;return I.top<t&&I.bottom>0&&I.left<e&&I.right>0}else{const e=g.getBoundingClientRect();return I.top<e.bottom&&I.bottom>e.top&&I.left<e.right&&I.right>e.left}},uX=(C,g=null)=>{if(!C)return;(g?wF(C,g):wF(C))||C.scrollIntoView({behavior:"smooth",block:"nearest"})},oQg=l.defineComponent({name:"BaseSlider",__name:"BaseSlider",props:{activeIndex:{default:0}},setup(C,{expose:g}){const I=C,e=l.reactive({children:null,activeIndex:I.activeIndex}),t=l.ref(null),i=l.ref(null);l.watch(()=>I.activeIndex,()=>{A(I.activeIndex)});const A=a=>{if(!t.value||!i.value)return;const d=[...t.value.children];a>d.length-1||a<0||(uX(d[a],i.value),e.activeIndex=a)},n=()=>{l.nextTick(()=>{!e.children||!i.value||uX(e.children[e.activeIndex],i.value)})},s=()=>(A(e.activeIndex+1),e.activeIndex),o=()=>(A(e.activeIndex-1),e.activeIndex);return l.onMounted(()=>{!t.value||!i.value||(e.children=[...t.value.children])}),g({shiftPosition:A,nextSlide:s,prevSlide:o,initScroll:n}),(a,d)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"sliderRef",ref:i,class:"base-slider"},[l.createElementVNode("div",{ref_key:"contentRef",ref:t,class:"base-slider__content"},[l.renderSlot(a.$slots,"default")],512)],512))}}),aQg={class:"base-slide__content"},dQg=l.defineComponent({name:"BaseSlide",__name:"BaseSlide",props:{isActive:{type:Boolean}},setup(C){const g=C,I=l.computed(()=>[{"base-slide_active":g.isActive}]);return(e,t)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["base-slide",I.value])},[l.createElementVNode("div",aQg,[l.renderSlot(e.$slots,"default")])],2))}}),rB=C=>{if(!C)return null;const g=C.split("?")[0],I=/\.\w+$/,e=g.match(I);return e?e[0].replace(".",""):null},Aa=C=>{if(!C)return!1;if(C.startsWith("data:image/"))return!0;const g=rB(C);return g?Object.values(mu).includes(g.toLowerCase()):!1},cQg=()=>{const C=window.__CHAT_NATIVE_FILE__;return C!=null&&C.isAndroidNativePlatform()?C:null},mQg=()=>{var g,I,e;const C=window.Capacitor;return!((g=C==null?void 0:C.isNativePlatform)!=null&&g.call(C))||((I=C.getPlatform)==null?void 0:I.call(C))!=="android"?null:((e=C.Plugins)==null?void 0:e.NativeFile)||null},WF=C=>new Promise((g,I)=>{const e=new FileReader;e.onload=()=>{if(typeof e.result!="string"){I(new Error("Failed to encode file"));return}const[,t=""]=e.result.split(",");g(t)},e.onerror=()=>{I(e.error||new Error("Failed to read file"))},e.readAsDataURL(C)}),hX=C=>/^(blob:|data:)/i.test(C),rQg=async(C,g="file",I)=>{const e=cQg()||mQg();if(e){if(I&&e.downloadBase64){const s=await WF(I);await e.downloadBase64({base64Data:s,fileName:g,mimeType:I.type||void 0});return}if(hX(C)&&e.downloadBase64){const o=await(await fetch(C)).blob(),a=await WF(o);await e.downloadBase64({base64Data:a,fileName:g,mimeType:o.type||(I==null?void 0:I.type)||void 0});return}if(!hX(C)){await e.downloadFile({url:C,fileName:g,mimeType:(I==null?void 0:I.type)||void 0});return}}const i=await(await fetch(C,{credentials:hX(C)?"same-origin":"include"})).blob(),A=window.URL.createObjectURL(i),n=document.createElement("a");n.href=A,n.download=g,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(A)};var BF={exports:{}};(function(C,g){(function(e,t){C.exports=t()})(window,function(){return function(I){var e={};function t(i){if(e[i])return e[i].exports;var A=e[i]={i,l:!1,exports:{}};return I[i].call(A.exports,A,A.exports,t),A.l=!0,A.exports}return t.m=I,t.c=e,t.d=function(i,A,n){t.o(i,A)||Object.defineProperty(i,A,{enumerable:!0,get:n})},t.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},t.t=function(i,A){if(A&1&&(i=t(i)),A&8||A&4&&typeof i=="object"&&i&&i.__esModule)return i;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:i}),A&2&&typeof i!="string")for(var s in i)t.d(n,s,(function(o){return i[o]}).bind(null,s));return n},t.n=function(i){var A=i&&i.__esModule?function(){return i.default}:function(){return i};return t.d(A,"a",A),A},t.o=function(i,A){return Object.prototype.hasOwnProperty.call(i,A)},t.p="",t(t.s=0)}({"./src/index.js":function(I,e,t){t.r(e),t("./src/sass/index.scss");var i=t("./src/js/init.js"),A=i.default.init;typeof window<"u"&&(window.printJS=A),e.default=A},"./src/js/browser.js":function(I,e,t){t.r(e);var i={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!i.isIE()&&!!window.StyleMedia},isChrome:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!n.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};e.default=i},"./src/js/functions.js":function(I,e,t){t.r(e),t.d(e,"addWrapper",function(){return s}),t.d(e,"capitalizePrint",function(){return o}),t.d(e,"collectStyles",function(){return a}),t.d(e,"addHeader",function(){return m}),t.d(e,"cleanUp",function(){return Z}),t.d(e,"isRawHTML",function(){return u});var i=t("./src/js/modal.js"),A=t("./src/js/browser.js");function n(h){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(w){return typeof w}:n=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},n(h)}function s(h,G){var w="font-family:"+G.font+" !important; font-size: "+G.font_size+" !important; width:100%;";return'<div style="'+w+'">'+h+"</div>"}function o(h){return h.charAt(0).toUpperCase()+h.slice(1)}function a(h,G){for(var w=document.defaultView||window,B="",p=w.getComputedStyle(h,""),Y=0;Y<p.length;Y++)(G.targetStyles.indexOf("*")!==-1||G.targetStyle.indexOf(p[Y])!==-1||d(G.targetStyles,p[Y]))&&p.getPropertyValue(p[Y])&&(B+=p[Y]+":"+p.getPropertyValue(p[Y])+";");return B+="max-width: "+G.maxWidth+"px !important; font-size: "+G.font_size+" !important;",B}function d(h,G){for(var w=0;w<h.length;w++)if(n(G)==="object"&&G.indexOf(h[w])!==-1)return!0;return!1}function m(h,G){var w=document.createElement("div");if(u(G.header))w.innerHTML=G.header;else{var B=document.createElement("h1"),p=document.createTextNode(G.header);B.appendChild(p),B.setAttribute("style",G.headerStyle),w.appendChild(B)}h.insertBefore(w,h.childNodes[0])}function Z(h){h.showModal&&i.default.close(),h.onLoadingEnd&&h.onLoadingEnd(),(h.showModal||h.onLoadingStart)&&window.URL.revokeObjectURL(h.printable);var G="mouseover";(A.default.isChrome()||A.default.isFirefox())&&(G="focus");var w=function B(){window.removeEventListener(G,B),h.onPrintDialogClose();var p=document.getElementById(h.frameId);p&&p.remove()};window.addEventListener(G,w)}function u(h){var G=new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");return G.test(h)}},"./src/js/html.js":function(I,e,t){t.r(e);var i=t("./src/js/functions.js"),A=t("./src/js/print.js");function n(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(m){return typeof m}:n=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},n(a)}e.default={print:function(d,m){var Z=o(d.printable)?d.printable:document.getElementById(d.printable);if(!Z){window.console.error("Invalid HTML element id: "+d.printable);return}d.printableElement=s(Z,d),d.header&&Object(i.addHeader)(d.printableElement,d),A.default.send(d,m)}};function s(a,d){for(var m=a.cloneNode(),Z=Array.prototype.slice.call(a.childNodes),u=0;u<Z.length;u++)if(d.ignoreElements.indexOf(Z[u].id)===-1){var h=s(Z[u],d);m.appendChild(h)}switch(d.scanStyles&&a.nodeType===1&&m.setAttribute("style",Object(i.collectStyles)(a,d)),a.tagName){case"SELECT":m.value=a.value;break;case"CANVAS":m.getContext("2d").drawImage(a,0,0);break}return m}function o(a){return n(a)==="object"&&a&&(a instanceof HTMLElement||a.nodeType===1)}},"./src/js/image.js":function(I,e,t){t.r(e);var i=t("./src/js/functions.js"),A=t("./src/js/print.js"),n=t("./src/js/browser.js");e.default={print:function(o,a){o.printable.constructor!==Array&&(o.printable=[o.printable]),o.printableElement=document.createElement("div"),o.printable.forEach(function(d){var m=document.createElement("img");if(m.setAttribute("style",o.imageStyle),m.src=d,n.default.isFirefox()){var Z=m.src;m.src=Z}var u=document.createElement("div");u.appendChild(m),o.printableElement.appendChild(u)}),o.header&&Object(i.addHeader)(o.printableElement,o),A.default.send(o,a)}}},"./src/js/init.js":function(I,e,t){t.r(e);var i=t("./src/js/browser.js"),A=t("./src/js/modal.js"),n=t("./src/js/pdf.js"),s=t("./src/js/html.js"),o=t("./src/js/raw-html.js"),a=t("./src/js/image.js"),d=t("./src/js/json.js");function m(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(G){return typeof G}:m=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},m(u)}var Z=["pdf","html","image","json","raw-html"];e.default={init:function(){var h={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(R){throw R},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},G=arguments[0];if(G===void 0)throw new Error("printJS expects at least 1 attribute.");switch(m(G)){case"string":h.printable=encodeURI(G),h.fallbackPrintable=h.printable,h.type=arguments[1]||h.type;break;case"object":h.printable=G.printable,h.fallbackPrintable=typeof G.fallbackPrintable<"u"?G.fallbackPrintable:h.printable,h.fallbackPrintable=h.base64?"data:application/pdf;base64,".concat(h.fallbackPrintable):h.fallbackPrintable;for(var w in h)w==="printable"||w==="fallbackPrintable"||(h[w]=typeof G[w]<"u"?G[w]:h[w]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+m(G))}if(!h.printable)throw new Error("Missing printable information.");if(!h.type||typeof h.type!="string"||Z.indexOf(h.type.toLowerCase())===-1)throw new Error("Invalid print type. Available types are: pdf, html, image and json.");h.showModal&&A.default.show(h),h.onLoadingStart&&h.onLoadingStart();var B=document.getElementById(h.frameId);B&&B.parentNode.removeChild(B);var p=document.createElement("iframe");switch(i.default.isFirefox()?p.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):p.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),p.setAttribute("id",h.frameId),h.type!=="pdf"&&(p.srcdoc="<html><head><title>"+h.documentTitle+"</title>",h.css&&(Array.isArray(h.css)||(h.css=[h.css]),h.css.forEach(function(N){p.srcdoc+='<link rel="stylesheet" href="'+N+'">'})),p.srcdoc+="</head><body></body></html>"),h.type){case"pdf":if(i.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var Y=window.open(h.fallbackPrintable,"_blank");Y.focus(),h.onIncompatibleBrowser()}catch(N){h.onError(N)}finally{h.showModal&&A.default.close(),h.onLoadingEnd&&h.onLoadingEnd()}else n.default.print(h,p);break;case"image":a.default.print(h,p);break;case"html":s.default.print(h,p);break;case"raw-html":o.default.print(h,p);break;case"json":d.default.print(h,p);break}}}},"./src/js/json.js":function(I,e,t){t.r(e);var i=t("./src/js/functions.js"),A=t("./src/js/print.js");function n(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(d){return typeof d}:n=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},n(o)}e.default={print:function(a,d){if(n(a.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof a.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!a.properties||!Array.isArray(a.properties))throw new Error("Invalid properties array for your JSON data.");a.properties=a.properties.map(function(m){return{field:n(m)==="object"?m.field:m,displayName:n(m)==="object"?m.displayName:m,columnSize:n(m)==="object"&&m.columnSize?m.columnSize+";":100/a.properties.length+"%;"}}),a.printableElement=document.createElement("div"),a.header&&Object(i.addHeader)(a.printableElement,a),a.printableElement.innerHTML+=s(a),A.default.send(a,d)}};function s(o){var a=o.printable,d=o.properties,m='<table style="border-collapse: collapse; width: 100%;">';o.repeatTableHeader&&(m+="<thead>"),m+="<tr>";for(var Z=0;Z<d.length;Z++)m+='<th style="width:'+d[Z].columnSize+";"+o.gridHeaderStyle+'">'+Object(i.capitalizePrint)(d[Z].displayName)+"</th>";m+="</tr>",o.repeatTableHeader&&(m+="</thead>"),m+="<tbody>";for(var u=0;u<a.length;u++){m+="<tr>";for(var h=0;h<d.length;h++){var G=a[u],w=d[h].field.split(".");if(w.length>1)for(var B=0;B<w.length;B++)G=G[w[B]];else G=G[d[h].field];m+='<td style="width:'+d[h].columnSize+o.gridStyle+'">'+G+"</td>"}m+="</tr>"}return m+="</tbody></table>",m}},"./src/js/modal.js":function(I,e,t){t.r(e);var i={show:function(n){var s="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",o=document.createElement("div");o.setAttribute("style",s),o.setAttribute("id","printJS-Modal");var a=document.createElement("div");a.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var d=document.createElement("div");d.setAttribute("class","printClose"),d.setAttribute("id","printClose"),a.appendChild(d);var m=document.createElement("span");m.setAttribute("class","printSpinner"),a.appendChild(m);var Z=document.createTextNode(n.modalMessage);a.appendChild(Z),o.appendChild(a),document.getElementsByTagName("body")[0].appendChild(o),document.getElementById("printClose").addEventListener("click",function(){i.close()})},close:function(){var n=document.getElementById("printJS-Modal");n&&n.parentNode.removeChild(n)}};e.default=i},"./src/js/pdf.js":function(I,e,t){t.r(e);var i=t("./src/js/print.js"),A=t("./src/js/functions.js");e.default={print:function(o,a){if(o.base64){var d=Uint8Array.from(atob(o.printable),function(Z){return Z.charCodeAt(0)});n(o,a,d);return}o.printable=/^(blob|http|\/\/)/i.test(o.printable)?o.printable:window.location.origin+(o.printable.charAt(0)!=="/"?"/"+o.printable:o.printable);var m=new window.XMLHttpRequest;m.responseType="arraybuffer",m.addEventListener("error",function(){Object(A.cleanUp)(o),o.onError(m.statusText,m)}),m.addEventListener("load",function(){if([200,201].indexOf(m.status)===-1){Object(A.cleanUp)(o),o.onError(m.statusText,m);return}n(o,a,m.response)}),m.open("GET",o.printable,!0),m.send()}};function n(s,o,a){var d=new window.Blob([a],{type:"application/pdf"});d=window.URL.createObjectURL(d),o.setAttribute("src",d),i.default.send(s,o)}},"./src/js/print.js":function(I,e,t){t.r(e);var i=t("./src/js/browser.js"),A=t("./src/js/functions.js"),n={send:function(m,Z){document.getElementsByTagName("body")[0].appendChild(Z);var u=document.getElementById(m.frameId);u.onload=function(){if(m.type==="pdf"){i.default.isFirefox()?setTimeout(function(){return s(u,m)},1e3):s(u,m);return}var h=u.contentWindow||u.contentDocument;if(h.document&&(h=h.document),h.body.appendChild(m.printableElement),m.type!=="pdf"&&m.style){var G=document.createElement("style");G.innerHTML=m.style,h.head.appendChild(G)}var w=h.getElementsByTagName("img");w.length>0?o(Array.from(w)).then(function(){return s(u,m)}):s(u,m)}}};function s(d,m){try{if(d.focus(),i.default.isEdge()||i.default.isIE())try{d.contentWindow.document.execCommand("print",!1,null)}catch{d.contentWindow.print()}else d.contentWindow.print()}catch(Z){m.onError(Z)}finally{i.default.isFirefox()&&(d.style.visibility="hidden",d.style.left="-1px"),Object(A.cleanUp)(m)}}function o(d){var m=d.map(function(Z){if(Z.src&&Z.src!==window.location.href)return a(Z)});return Promise.all(m)}function a(d){return new Promise(function(m){var Z=function u(){!d||typeof d.naturalWidth>"u"||d.naturalWidth===0||!d.complete?setTimeout(u,500):m()};Z()})}e.default=n},"./src/js/raw-html.js":function(I,e,t){t.r(e);var i=t("./src/js/print.js");e.default={print:function(n,s){n.printableElement=document.createElement("div"),n.printableElement.setAttribute("style","width:100%"),n.printableElement.innerHTML=n.printable,i.default.send(n,s)}}},"./src/sass/index.scss":function(I,e,t){},0:function(I,e,t){I.exports=t("./src/index.js")}}).default})})(BF);var ZQg=BF.exports;const bQg=Mvg(ZQg),Yl=C=>{if(!C)return!1;const g=rB(C);return g?Object.values(ru).includes(g):!1},uQg=["src"],Su=l.defineComponent({name:"VideoPreview",__name:"VideoPreview",props:{src:{}},emits:["error","load"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isError:!1});let i=null;const A={mp4:"video/mp4",webm:"video/webm",mkv:"video/x-matroska",avi:"video/x-msvideo",mov:"video/quicktime",qt:"video/quicktime",m4v:"video/x-m4v"};l.watch(()=>I.src,()=>{t.isError=!1,o(),l.nextTick(()=>{a()})});const n=l.ref(null),s=d=>{var Z;const m=(Z=rB(d))==null?void 0:Z.toLowerCase();return m?A[m]??"video/mp4":"video/mp4"},o=()=>{i&&(URL.revokeObjectURL(i),i=null)},a=async()=>{try{if(!n.value||!I.src)return;const d=document.createElement("video");d.muted=!0,d.preload="metadata",d.playsInline=!0;const m=await fetch(I.src);if(!m.ok)throw new Error("Failed to fetch video");const Z=new Blob([await m.arrayBuffer()],{type:s(I.src)});i=URL.createObjectURL(Z),d.src=i;const u=n.value.getContext("2d");if(!u)return;const h=()=>{if(!n.value)return;const G=d.videoWidth||1,w=d.videoHeight||1;n.value.width=G,n.value.height=w,u.clearRect(0,0,G,w),u.drawImage(d,0,0,G,w),e("load")};d.addEventListener("loadedmetadata",()=>{if(!n.value)return;n.value.width=d.videoWidth||1,n.value.height=d.videoHeight||1;const G=Number.isFinite(d.duration)&&d.duration>1?1:0;if(G===0){h();return}d.currentTime=G}),d.addEventListener("seeked",()=>{h()}),d.addEventListener("loadeddata",()=>{var G,w;(!((G=n.value)!=null&&G.width)||!((w=n.value)!=null&&w.height))&&h()}),d.addEventListener("error",G=>{t.isError=!0,e("error",G)})}catch{e("error",new Event("error")),t.isError=!0}};return l.onMounted(()=>{l.nextTick(()=>{a()})}),l.onUnmounted(()=>{o()}),(d,m)=>t.isError?(l.openBlock(),l.createElementBlock("img",{key:1,src:l.unref(rs)},null,8,uQg)):(l.openBlock(),l.createElementBlock("canvas",{key:0,ref_key:"canvasRef",ref:n,class:"video-preview"},null,512))}}),AA=C=>C?C instanceof File?C.type==="application/pdf":Er(C):!1;typeof window<"u"&&(window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),typeof window.CustomEvent!="function"&&(window.CustomEvent=function(g,I){I=I||{bubbles:!1,cancelable:!1,detail:null};var e=document.createEvent("CustomEvent");return e.initCustomEvent(g,I.bubbles,I.cancelable,I.detail),e}));const hQg=typeof document<"u"&&!!document.documentMode;let GX;function GQg(){return GX||(GX=document.createElement("div").style)}const pF=["webkit","moz","ms"],ZB={};function wX(C){if(ZB[C])return ZB[C];const g=GQg();if(C in g)return ZB[C]=C;const I=C[0].toUpperCase()+C.slice(1);let e=pF.length;for(;e--;){const t=`${pF[e]}${I}`;if(t in g)return ZB[C]=t}}function bB(C,g){return parseFloat(g[wX(C)])||0}function uB(C,g,I=window.getComputedStyle(C)){const e=g==="border"?"Width":"";return{left:bB(`${g}Left${e}`,I),right:bB(`${g}Right${e}`,I),top:bB(`${g}Top${e}`,I),bottom:bB(`${g}Bottom${e}`,I)}}function gZ(C,g,I){C.style[wX(g)]=I}function wQg(C,g){const I=wX("transform");gZ(C,"transition",`${I} ${g.duration}ms ${g.easing}`)}function WQg(C,{x:g,y:I,scale:e,isSVG:t},i){if(gZ(C,"transform",`scale(${e}) translate(${g}px, ${I}px)`),t&&hQg){const A=window.getComputedStyle(C).getPropertyValue("transform");C.setAttribute("transform",A)}}function WX(C){let g=C.parentNode;(!g||g.nodeType!==1)&&(g=document.documentElement);const I=window.getComputedStyle(C),e=window.getComputedStyle(g),t=C.getBoundingClientRect(),i=g.getBoundingClientRect();return{elem:{style:I,width:t.width,height:t.height,top:t.top,bottom:t.bottom,left:t.left,right:t.right,margin:uB(C,"margin",I),border:uB(C,"border",I)},parent:{style:e,width:i.width,height:i.height,top:i.top,bottom:i.bottom,left:i.left,right:i.right,padding:uB(g,"padding",e),border:uB(g,"border",e)}}}let Du={down:"mousedown",move:"mousemove",up:"mouseup mouseleave"};typeof window<"u"&&(typeof window.PointerEvent=="function"?Du={down:"pointerdown",move:"pointermove",up:"pointerup pointerleave pointercancel"}:typeof window.TouchEvent=="function"&&(Du={down:"touchstart",move:"touchmove",up:"touchend touchcancel"}));function BX(C,g,I,e){Du[C].split(" ").forEach(t=>{g.addEventListener(t,I,e)})}function pX(C,g,I){Du[C].split(" ").forEach(e=>{g.removeEventListener(e,I)})}function YF(C,g){let I=C.length;for(;I--;)if(C[I].pointerId===g.pointerId)return I;return-1}function YX(C,g){let I;if(g.touches){I=0;for(const e of g.touches)e.pointerId=I++,YX(C,e);return}I=YF(C,g),I>-1&&C.splice(I,1),C.push(g)}function BQg(C,g){if(g.touches){for(;C.length;)C.pop();return}const I=YF(C,g);I>-1&&C.splice(I,1)}function yF(C){C=C.slice(0);let g=C.pop(),I;for(;I=C.pop();)g={clientX:(I.clientX-g.clientX)/2+g.clientX,clientY:(I.clientY-g.clientY)/2+g.clientY};return g}function yX(C){if(C.length<2)return 0;const g=C[0],I=C[1];return Math.sqrt(Math.pow(Math.abs(I.clientX-g.clientX),2)+Math.pow(Math.abs(I.clientY-g.clientY),2))}function pQg(C){let g=C;for(;g&&g.parentNode;){if(g.parentNode===document)return!0;g=g.parentNode instanceof ShadowRoot?g.parentNode.host:g.parentNode}return!1}function YQg(C){return(C.getAttribute("class")||"").trim()}function yQg(C,g){return C.nodeType===1&&` ${YQg(C)} `.indexOf(` ${g} `)>-1}function NQg(C,g){for(let I=C;I!=null;I=I.parentNode)if(yQg(I,g.excludeClass)||g.exclude.indexOf(I)>-1)return!0;return!1}const VQg=/^http:[\w\.\/]+svg$/;function XQg(C){return VQg.test(C.namespaceURI)&&C.nodeName.toLowerCase()!=="svg"}function RQg(C){const g={};for(const I in C)C.hasOwnProperty(I)&&(g[I]=C[I]);return g}const NF={animate:!1,canvas:!1,cursor:"move",disablePan:!1,disableZoom:!1,disableXAxis:!1,disableYAxis:!1,duration:200,easing:"ease-in-out",exclude:[],excludeClass:"panzoom-exclude",handleStartEvent:C=>{C.preventDefault(),C.stopPropagation()},maxScale:4,minScale:.125,overflow:"hidden",panOnlyWhenZoomed:!1,pinchAndPan:!1,relative:!1,setTransform:WQg,startX:0,startY:0,startScale:1,step:.3,touchAction:"none"};function VF(C,g){if(!C)throw new Error("Panzoom requires an element as an argument");if(C.nodeType!==1)throw new Error("Panzoom requires an element with a nodeType of 1");if(!pQg(C))throw new Error("Panzoom should be called on elements that have been attached to the DOM");g={...NF,...g};const I=XQg(C),e=C.parentNode;e.style.overflow=g.overflow,e.style.userSelect="none",e.style.touchAction=g.touchAction,(g.canvas?e:C).style.cursor=g.cursor,C.style.userSelect="none",C.style.touchAction=g.touchAction,gZ(C,"transformOrigin",typeof g.origin=="string"?g.origin:I?"0 0":"50% 50%");function t(){e.style.overflow="",e.style.userSelect="",e.style.touchAction="",e.style.cursor="",C.style.cursor="",C.style.userSelect="",C.style.touchAction="",gZ(C,"transformOrigin","")}function i(og={}){for(const Wg in og)og.hasOwnProperty(Wg)&&(g[Wg]=og[Wg]);(og.hasOwnProperty("cursor")||og.hasOwnProperty("canvas"))&&(e.style.cursor=C.style.cursor="",(g.canvas?e:C).style.cursor=g.cursor),og.hasOwnProperty("overflow")&&(e.style.overflow=og.overflow),og.hasOwnProperty("touchAction")&&(e.style.touchAction=og.touchAction,C.style.touchAction=og.touchAction)}let A=0,n=0,s=1,o=!1;h(g.startScale,{animate:!1,force:!0}),setTimeout(()=>{u(g.startX,g.startY,{animate:!1,force:!0})});function a(og,Wg,fg){if(fg.silent)return;const Rg=new CustomEvent(og,{detail:Wg});C.dispatchEvent(Rg)}function d(og,Wg,fg){const Rg={x:A,y:n,scale:s,isSVG:I,originalEvent:fg};return requestAnimationFrame(()=>{typeof Wg.animate=="boolean"&&(Wg.animate?wQg(C,Wg):gZ(C,"transition","none")),Wg.setTransform(C,Rg,Wg),a(og,Rg,Wg),a("panzoomchange",Rg,Wg)}),Rg}function m(og,Wg,fg,Rg){const Bg={...g,...Rg},kg={x:A,y:n,opts:Bg};if(!(Rg!=null&&Rg.force)&&(Bg.disablePan||Bg.panOnlyWhenZoomed&&s===Bg.startScale))return kg;if(og=parseFloat(og),Wg=parseFloat(Wg),Bg.disableXAxis||(kg.x=(Bg.relative?A:0)+og),Bg.disableYAxis||(kg.y=(Bg.relative?n:0)+Wg),Bg.contain){const Vg=WX(C),gI=Vg.elem.width/s,qg=Vg.elem.height/s,CC=gI*fg,NC=qg*fg,BC=(CC-gI)/2,eC=(NC-qg)/2;if(Bg.contain==="inside"){const te=(-Vg.elem.margin.left-Vg.parent.padding.left+BC)/fg,jI=(Vg.parent.width-CC-Vg.parent.padding.left-Vg.elem.margin.left-Vg.parent.border.left-Vg.parent.border.right+BC)/fg;kg.x=Math.max(Math.min(kg.x,jI),te);const Be=(-Vg.elem.margin.top-Vg.parent.padding.top+eC)/fg,SI=(Vg.parent.height-NC-Vg.parent.padding.top-Vg.elem.margin.top-Vg.parent.border.top-Vg.parent.border.bottom+eC)/fg;kg.y=Math.max(Math.min(kg.y,SI),Be)}else if(Bg.contain==="outside"){const te=(-(CC-Vg.parent.width)-Vg.parent.padding.left-Vg.parent.border.left-Vg.parent.border.right+BC)/fg,jI=(BC-Vg.parent.padding.left)/fg;kg.x=Math.max(Math.min(kg.x,jI),te);const Be=(-(NC-Vg.parent.height)-Vg.parent.padding.top-Vg.parent.border.top-Vg.parent.border.bottom+eC)/fg,SI=(eC-Vg.parent.padding.top)/fg;kg.y=Math.max(Math.min(kg.y,SI),Be)}}return Bg.roundPixels&&(kg.x=Math.round(kg.x),kg.y=Math.round(kg.y)),kg}function Z(og,Wg){const fg={...g,...Wg},Rg={scale:s,opts:fg};if(!(Wg!=null&&Wg.force)&&fg.disableZoom)return Rg;let Bg=g.minScale,kg=g.maxScale;if(fg.contain){const Vg=WX(C),gI=Vg.elem.width/s,qg=Vg.elem.height/s;if(gI>1&&qg>1){const CC=Vg.parent.width-Vg.parent.border.left-Vg.parent.border.right,NC=Vg.parent.height-Vg.parent.border.top-Vg.parent.border.bottom,BC=CC/gI,eC=NC/qg;g.contain==="inside"?kg=Math.min(kg,BC,eC):g.contain==="outside"&&(Bg=Math.max(Bg,BC,eC))}}return Rg.scale=Math.min(Math.max(og,Bg),kg),Rg}function u(og,Wg,fg,Rg){const Bg=m(og,Wg,s,fg);return A!==Bg.x||n!==Bg.y?(A=Bg.x,n=Bg.y,d("panzoompan",Bg.opts,Rg)):{x:A,y:n,scale:s,isSVG:I,originalEvent:Rg}}function h(og,Wg,fg){const Rg=Z(og,Wg),Bg=Rg.opts;if(!(Wg!=null&&Wg.force)&&Bg.disableZoom)return;og=Rg.scale;let kg=A,Vg=n;if(Bg.focal){const qg=Bg.focal;kg=(qg.x/og-qg.x/s+A*og)/og,Vg=(qg.y/og-qg.y/s+n*og)/og}const gI=m(kg,Vg,og,{relative:!1,force:!0});return A=gI.x,n=gI.y,s=og,d("panzoomzoom",Bg,fg)}function G(og,Wg){const fg={...g,animate:!0,...Wg};return h(s*Math.exp((og?1:-1)*fg.step),fg)}function w(og){return G(!0,og)}function B(og){return G(!1,og)}function p(og,Wg,fg,Rg){const Bg=WX(C),kg={width:Bg.parent.width-Bg.parent.padding.left-Bg.parent.padding.right-Bg.parent.border.left-Bg.parent.border.right,height:Bg.parent.height-Bg.parent.padding.top-Bg.parent.padding.bottom-Bg.parent.border.top-Bg.parent.border.bottom};let Vg=Wg.clientX-Bg.parent.left-Bg.parent.padding.left-Bg.parent.border.left-Bg.elem.margin.left,gI=Wg.clientY-Bg.parent.top-Bg.parent.padding.top-Bg.parent.border.top-Bg.elem.margin.top;I||(Vg-=Bg.elem.width/s/2,gI-=Bg.elem.height/s/2);const qg={x:Vg/kg.width*(kg.width*og),y:gI/kg.height*(kg.height*og)};return h(og,{...fg,animate:!1,focal:qg},Rg)}function Y(og,Wg){og.preventDefault();const fg={...g,...Wg,animate:!1},Bg=(og.deltaY===0&&og.deltaX?og.deltaX:og.deltaY)<0?1:-1,kg=Z(s*Math.exp(Bg*fg.step/3),fg).scale;return p(kg,og,fg,og)}function N(og){const Wg={...g,animate:!0,force:!0,...og};s=Z(Wg.startScale,Wg).scale;const fg=m(Wg.startX,Wg.startY,s,Wg);return A=fg.x,n=fg.y,d("panzoomreset",Wg)}let R,X,K,D,k,z;const v=[];function O(og){if(NQg(og.target,g))return;YX(v,og),o=!0,g.handleStartEvent(og),R=A,X=n,a("panzoomstart",{x:A,y:n,scale:s,isSVG:I,originalEvent:og},g);const Wg=yF(v);K=Wg.clientX,D=Wg.clientY,k=s,z=yX(v)}function Cg(og){if(!o||R===void 0||X===void 0||K===void 0||D===void 0)return;YX(v,og);const Wg=yF(v),fg=v.length>1;let Rg=s;if(fg){z===0&&(z=yX(v));const Bg=yX(v)-z;Rg=Z(Bg*g.step/80+k).scale,p(Rg,Wg,{animate:!1},og)}(!fg||g.pinchAndPan)&&u(R+(Wg.clientX-K)/Rg,X+(Wg.clientY-D)/Rg,{animate:!1},og)}function U(og){v.length===1&&a("panzoomend",{x:A,y:n,scale:s,isSVG:I,originalEvent:og},g),BQg(v,og),o&&(o=!1,R=X=K=D=void 0)}let T=!1;function q(){T||(T=!0,BX("down",g.canvas?e:C,O),BX("move",document,Cg,{passive:!0}),BX("up",document,U,{passive:!0}))}function cg(){T=!1,pX("down",g.canvas?e:C,O),pX("move",document,Cg),pX("up",document,U)}return g.noBind||q(),{bind:q,destroy:cg,eventNames:Du,getPan:()=>({x:A,y:n}),getScale:()=>s,getOptions:()=>RQg(g),handleDown:O,handleMove:Cg,handleUp:U,pan:u,reset:N,resetStyle:t,setOptions:i,setStyle:(og,Wg)=>gZ(C,og,Wg),zoom:h,zoomIn:w,zoomOut:B,zoomToPoint:p,zoomWithWheel:Y}}VF.defaultOptions=NF;const MQg={ref:"contentRef",class:"slider-modal__content"},HQg=["onClick"],fQg={class:"slider-modal__side-bar-count"},SQg={key:0,class:"slider-modal__mobile-header"},DQg={class:"slider-modal__mobile-header-block"},kQg={class:"slider-modal__mobile-header-block"},FQg={class:"slider-modal__counter"},KQg={class:"slider-modal__name"},zQg=["src"],JQg=["data-testid"],xQg=["src","type"],TQg={key:0,class:"slider-modal__extension"},LQg=["src"],vQg={class:"slider-modal__bottom"},jQg={class:"slider-modal__nav-block"},QQg=["disabled"],OQg=["src","alt"],UQg={key:3,class:"slider-modal__slide-extension"},EQg=["src"],PQg=["disabled"],_Qg={class:"slider-modal__nav-block"},qQg={class:"slider-modal__sub-nav"},$Qg=["disabled"],gOg=["disabled"],IOg=["disabled"],COg={class:"slider-modal__sub-nav"},eOg=["disabled"],tOg=["disabled"],NX=80,XF=20,iOg=80,AOg=20,nOg=200,hB=Qg(l.defineComponent({name:"SliderModal",__name:"SliderModal",props:{items:{},defaultIndex:{default:0},dataTestid:{default:"SliderModal"},animateType:{},open:{type:Boolean},position:{},width:{},height:{},disableCloseOnOutsideClick:{type:Boolean},isResetFocus:{type:Boolean}},emits:["close","unmounted","end-animation"],setup(C,{emit:g}){const I=C,e=g,t=window.matchMedia("(max-width: 768px)"),i=l.reactive({defaultIndex:I.defaultIndex,file:I.items[I.defaultIndex],sideBarItems:[],sideBarIndex:0,sideBarLength:0,isErrorFile:!1,isClickOnExit:!1,isMobile:!1,isPointerActive:!1,isExistSwipe:!1,isChangeItemSwipe:!1,isSwipeNextSlide:!1,isSwipePrevSlide:!1,isExitScrollActive:!1,isImagePositioned:!1,zoomValue:1,offsetX:0,offsetY:0,startX:0,startY:0,startXForMobile:0,startYForMobile:0,endXForMobile:0,endYForMobile:0,overscrollDelta:0,startScrollTop:0,rotateValue:0}),A=l.ref(null),n=l.ref(null),s=l.ref(null),o=l.ref(null),a=l.ref(null),d=l.ref(null),m=l.ref(null),Z=l.ref(null),u=l.ref(null);let h=null,G=null,w=null;const B=l.computed(()=>i.defaultIndex===0),p=l.computed(()=>i.defaultIndex===I.items.length-1),Y=lg=>rB(lg??null),N=lg=>!!(lg!=null&&lg.path)&&!!Y(lg.path)&&!AA(lg.path)&&!AA(lg.file)&&!Aa(lg.path)&&!Yl(lg.path),R=l.computed(()=>{var lg;return Y((lg=i.file)==null?void 0:lg.path)}),X=l.computed(()=>N(i.file)),K=lg=>N(lg),D=l.computed(()=>{var lg,bg,Sg,Kg;return!(AA((lg=i.file)==null?void 0:lg.path)||AA((bg=i.file)==null?void 0:bg.file)||Aa((Sg=i.file)==null?void 0:Sg.path)||Yl((Kg=i.file)==null?void 0:Kg.path))}),k=l.computed(()=>{var bg,Sg;let lg=!i.file||i.isErrorFile||D.value;return lg=Yl((bg=i.file)==null?void 0:bg.path)||lg,lg=i.isMobile&&AA((Sg=i.file)==null?void 0:Sg.path)||lg,lg}),z=l.computed(()=>{var bg;let lg=!i.file||i.isErrorFile||D.value;return lg=Yl((bg=i.file)==null?void 0:bg.path)||lg,lg}),v=l.computed(()=>!i.file||!i.file.path||i.isErrorFile),O=l.computed(()=>{var bg;let lg=!i.file||i.isErrorFile||D.value;return lg=Yl((bg=i.file)==null?void 0:bg.path)||lg,lg}),Cg=l.computed(()=>({transform:`
1607
1607
  scale(${i.zoomValue})
1608
1608
  `})),U=()=>{w&&(window.clearTimeout(w),w=null)},T=lg=>{U(),w=window.setTimeout(()=>{var bg;w=null,!(lg&&((bg=i.file)==null?void 0:bg.path)!==lg)&&(i.isImagePositioned||!Z.value||(i.isImagePositioned=!0))},nOg)},q=()=>{if(!Z.value)return!1;cg();const lg=Z.value.parentElement;if(!lg)return!1;const bg=lg.getBoundingClientRect(),Sg=Z.value.getBoundingClientRect(),Kg=(bg.width-Sg.width)/2,jg=(bg.height-Sg.height)/2;try{h=VF(Z.value,{maxScale:3,minScale:1,startX:Kg,startY:jg,panOnlyWhenZoomed:!0,startScale:1,animate:!1,cursor:"default",setTransform:(pI,{x:pC,y:Vt,scale:$})=>{const eg=pI.parentElement,mg=pI;eg&&(i.isMobile&&($=Math.max(Math.min($,3),1),i.zoomValue=$),h==null||h.setStyle("transform",`translate(${pC}px, ${Vt}px) scale(${$}) rotate(${i.rotateValue}deg)`))}})}catch(pI){return console.error("Failed to initialize image panzoom",pI),h=null,!1}return requestAnimationFrame(()=>{h==null||h.setOptions({animate:!0})}),i.isImagePositioned=!0,h.handleUp=()=>{if(!h||!Z.value)return;const pI=Z.value;if(h.getScale()<=1){og();return}const{top:Vt,left:$,bottom:eg,right:mg}=lg.getBoundingClientRect(),{x:Jg,y:iI}=h.getPan(),{top:kI,left:tC,right:cI,bottom:dC}=pI.getBoundingClientRect();let OC=Jg,KC=iI;const Vo=tC-$,Xo=mg-cI,Ro=kI-Vt,hn=eg-dC;Vo>0&&Xo<0&&(OC=Jg-Vo),Xo>0&&Vo<0&&(OC=Jg+Xo),Ro>0&&hn<0&&(KC=iI-Ro),hn>0&&Ro<0&&(KC=iI+hn),h.pan(OC,KC,{force:!0})},document.addEventListener("pointerup",h.handleUp),window.addEventListener("resize",og),!0},cg=(lg=!0)=>{h&&(window.removeEventListener("resize",og),document.removeEventListener("pointerup",h.handleUp),h.destroy(),h=null,lg&&Z.value&&OI({transform:"none",transition:"none"},Z.value))},og=()=>{if(!h||!Z.value)return;const lg=Z.value.parentElement;if(!lg)return;const bg=lg.getBoundingClientRect(),Sg=Z.value.offsetWidth,Kg=Z.value.offsetHeight,jg=(bg.width-Sg)/2,pI=(bg.height-Kg)/2;h.pan(jg,pI,{force:!0})};l.watch([()=>I.items,()=>I.defaultIndex],()=>{i.file=I.items[I.defaultIndex??0],i.defaultIndex=I.defaultIndex??0,U(),cg()}),l.watch([()=>i.file,()=>I.open],()=>{I.open&&(i.zoomValue=1,i.isImagePositioned=!1,U(),vi(),i.file||(i.file=I.items[I.defaultIndex??0]),i.isErrorFile=!1,at(),st())}),l.watch(()=>I.open,()=>{if(!I.open){cg(!1),U();return}l.nextTick(()=>{m.value&&m.value.initScroll()}),i.defaultIndex=I.defaultIndex??0}),l.watch(()=>i.sideBarIndex,()=>{QC()});const Wg=()=>{i.isClickOnExit&&e("close")},fg=()=>{I.open||(vi(),Qi(),Qt(),i.file=I.items[I.defaultIndex]),e("end-animation")},Rg=lg=>{pe(lg)},Bg=lg=>{i.sideBarIndex=lg},kg=lg=>{i.isMobile||Zn(lg.deltaY)},Vg=()=>{hi(!0)},gI=()=>{hi(!1)},qg=()=>{if(d.value&&d.value.rotatePdf(-90),Z.value){i.rotateValue+=-90;let lg=0,bg=0;const Sg=lt();lg=(h==null?void 0:h.getPan().x)||0,bg=(h==null?void 0:h.getPan().y)||0;const Kg={transform:`translate(${lg||0}px, ${bg||0}px) rotate(${i.rotateValue}deg) scale(${Sg||1})`};OI(Kg,Z.value)}},CC=()=>{var Kg,jg,pI;if(!((Kg=i.file)!=null&&Kg.path))return;let lg="pdf",bg="",Sg="";Aa((jg=i.file)==null?void 0:jg.path)&&(lg="image",bg=`
1609
1609
  @page {
1610
1610
  size: A4 portrait;
1611
1611
  margin: 10mm;
1612
1612
  }
1613
- `,Sg="max-height: 95vh; margin-bottom: 10px; max-width: 100%"),bQg({printable:(pI=i.file)==null?void 0:pI.path,type:lg,style:bg,imageStyle:Sg})},NC=()=>{var lg,bg,Sg,Kg;(lg=i.file)!=null&&lg.path&&rQg((bg=i.file)==null?void 0:bg.path,(Sg=i.file)==null?void 0:Sg.name,(Kg=i.file)==null?void 0:Kg.file)},BC=(lg,bg=!1)=>{const Sg=lg.target;Sg instanceof HTMLImageElement&&(Sg.src=rs),bg&&(U(),i.isErrorFile=!0)},eC=()=>{var lg;U(),!i.isErrorFile&&!D.value?q()||T((lg=i.file)==null?void 0:lg.path):(cg(),U(),i.isImagePositioned=!0)},te=lg=>{l.nextTick(()=>{var Sg;if(!lg||((Sg=i.file)==null?void 0:Sg.path)!==lg||i.isImagePositioned||i.isErrorFile||D.value)return;const bg=Z.value;!(bg!=null&&bg.complete)||bg.naturalWidth<=0||eC()})},jI=()=>{m.value&&pe(m.value.nextSlide())},Be=()=>{m.value&&pe(m.value.prevSlide())},SI=lg=>{if(i.isMobile)return;const bg=lg.target;(bg===a.value||bg===s.value||bg===o.value)&&(i.isClickOnExit=!0)},DI=lg=>{const bg=lg.target;(bg===a.value||bg===s.value||bg===o.value)&&Wg(),i.isClickOnExit=!1},At=lg=>{i.isMobile&&(i.startXForMobile=lg.clientX,i.startYForMobile=lg.clientY,i.isPointerActive=!0)},vC=lg=>{i.isMobile&&(i.startXForMobile=lg.touches[0].clientX,i.startYForMobile=lg.touches[0].clientY,i.isPointerActive=!0)},NA=()=>{i.isMobile&&(jC(),Ze())},nt=lg=>{var pI,pC;if(!i.isMobile)return;const bg=lg.clientX,Sg=lg.clientY,Kg=Math.abs(bg-i.startXForMobile),jg=Sg-i.startYForMobile;i.isExistSwipe&&jg>NX&&jg>Kg&&e("close"),i.isChangeItemSwipe&&m.value&&(i.isMobile&&i.zoomValue===1||!i.isMobile)&&(i.isSwipeNextSlide&&pe((pI=m.value)==null?void 0:pI.nextSlide()),i.isSwipePrevSlide&&pe((pC=m.value)==null?void 0:pC.prevSlide())),jC(),l.nextTick(()=>{Ze()})},ie=lg=>{var pI,pC;if(!i.isMobile)return;const bg=lg.changedTouches[0].clientX,Sg=lg.changedTouches[0].clientY,Kg=Math.abs(bg-i.startXForMobile),jg=Sg-i.startYForMobile;i.isExistSwipe&&jg>NX&&jg>Kg&&e("close"),i.isChangeItemSwipe&&m.value&&(i.isMobile&&i.zoomValue===1||!i.isMobile)&&(i.isSwipeNextSlide&&pe((pI=m.value)==null?void 0:pI.nextSlide()),i.isSwipePrevSlide&&pe((pC=m.value)==null?void 0:pC.prevSlide())),jC(),l.nextTick(()=>{Ze()})},QI=lg=>{if(!i.isMobile||!i.isPointerActive)return;const bg=lg.clientY-i.startYForMobile,Sg=lg.clientX-i.startXForMobile;aC(Sg,bg)},Fe=lg=>{if(!i.isMobile)return;const bg=lg.touches[0].clientX,Sg=lg.touches[0].clientY,Kg=bg-i.startXForMobile,jg=Sg-i.startYForMobile;aC(Kg,jg)},VC=lg=>{const bg=lg.target;!i.isMobile||!bg||bg.scrollHeight<=bg.clientHeight||!i.isExitScrollActive&&bg.scrollTop===0&&lg.preventDefault()},lt=()=>{if(!s.value||!Z.value)return 1;if(i.zoomValue!==1)return i.zoomValue;const lg=s.value.offsetWidth,bg=s.value.offsetHeight,Sg=Z.value.offsetWidth,Kg=Z.value.offsetHeight;let jg=1;return Math.abs(i.rotateValue)%180===0||(Kg>lg?jg=lg/Kg:Sg>bg&&(jg=bg/Sg)),jg},aC=(lg,bg)=>{const Sg=Math.abs(lg);if(i.zoomValue===1){if(Sg<bg&&bg>XF&&!i.isChangeItemSwipe&&s.value&&s.value.scrollTop===0&&(i.isExistSwipe=!0),Sg>bg&&Sg>AOg&&!i.isExistSwipe&&(i.isChangeItemSwipe=!0),i.isExistSwipe){const Kg=Math.max(0,1-(bg-XF)/NX);requestAnimationFrame(()=>{a.value&&OI({opacity:Kg},a.value)})}if(i.isChangeItemSwipe&&Sg>iOg){const Kg=i.defaultIndex===I.items.length-1,jg=i.defaultIndex===0;if(lg>0){if(jg)return;i.isSwipePrevSlide=!0}if(lg<0){if(Kg)return;i.isSwipeNextSlide=!0}}}},vi=()=>{const lg=i.rotateValue!==0;i.rotateValue=0,lg&&Z.value&&OI({transform:"none"},Z.value)},Ze=()=>{requestAnimationFrame(()=>{a.value&&OI({opacity:1},a.value)})},jC=()=>{i.isPointerActive=!1,i.isExistSwipe=!1,i.isSwipeNextSlide=!1,i.isSwipePrevSlide=!1,i.isChangeItemSwipe=!1},hi=lg=>{const bg=i.zoomValue;i.zoomValue+=lg?1:-1,i.zoomValue=Math.min(Math.max(1,i.zoomValue),3);const Sg=i.zoomValue;bg!==Sg&&o.value&&(d.value&&OI(Cg.value,o.value),Z.value&&(h==null||h.zoom(i.zoomValue,{force:!0}),i.zoomValue===1?(h==null||h.setOptions({cursor:"default"}),l.nextTick(()=>{og()})):h==null||h.setOptions({cursor:"move"})))},pe=lg=>{!I.items[lg]||i.defaultIndex===lg||(i.defaultIndex=lg,Qi(),i.file=I.items[lg])},Zn=lg=>{let bg=i.sideBarIndex;lg>0?(bg=i.sideBarIndex+1,bg=Math.min(i.sideBarLength-1,bg)):(bg=i.sideBarIndex-1,bg=Math.max(0,bg)),i.sideBarIndex=bg},st=()=>{var bg;const lg=(bg=i.file)==null?void 0:bg.path;l.nextTick(()=>{var Sg,Kg,jg;if(i.file){if(AA((Sg=i.file)==null?void 0:Sg.path)||AA((Kg=i.file)==null?void 0:Kg.file)){i.isErrorFile=!0,ji();return}Aa((jg=i.file)==null?void 0:jg.path)&&te(lg)}})},QC=()=>{l.nextTick(()=>{if(!A.value||!n.value)return;const lg=A.value[i.sideBarIndex];uX(lg,n.value)})},ji=async()=>{var lg,bg,Sg;try{if(!i.file)return;const Kg=mc.getCache(i.file.path);let jg;if(Kg)jg=Kg;else if((lg=i.file)!=null&&lg.file){const pI=await i.file.file.arrayBuffer();jg=await eB({data:new Uint8Array(pI)}).promise}else jg=await eB((bg=i.file)==null?void 0:bg.path).promise;if(!jg){i.isErrorFile=!0;return}i.sideBarLength=jg.numPages,i.sideBarItems=new Array(jg.numPages).fill(((Sg=i.file)==null?void 0:Sg.path)??""),mc.setCache(i.file.path,jg),VA(0),i.isErrorFile=!1}catch(Kg){console.error(Kg),i.isErrorFile=!0}},VA=async(lg=0)=>{i.sideBarIndex=lg},Qi=()=>{i.sideBarItems=[],i.sideBarIndex=0,i.sideBarLength=0},ot=()=>{i.isMobile=t.matches},XA={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",svg:"image/svg+xml",mp4:"video/mp4",webm:"video/webm",ogv:"video/ogg",mov:"video/quicktime"},bn=lg=>lg instanceof HTMLElement?!!lg.closest('input, textarea, [contenteditable="true"], [contenteditable=""]'):!1,RA=(lg,bg)=>{var jg;if(bg)return bg;const[Sg]=lg.split("?"),Kg=(jg=Sg.split(".").pop())==null?void 0:jg.toLowerCase();return Kg?XA[Kg]??"application/octet-stream":"application/octet-stream"},Qt=()=>{G&&(URL.revokeObjectURL(G),G=null),u.value=null},at=async()=>{var bg;Qt();const lg=i.file;if(!(!(lg!=null&&lg.path)||!Yl(lg.path))){if(lg.file){G=URL.createObjectURL(lg.file),u.value=G;return}try{const Sg=await fetch(lg.path,{credentials:"include"});if(!Sg.ok)throw new Error(`Failed to fetch video: ${Sg.status}`);const Kg=await Sg.blob(),jg=Kg.type?Kg:new Blob([Kg],{type:RA(lg.path)});if(((bg=i.file)==null?void 0:bg.path)!==lg.path)return;G=URL.createObjectURL(jg),u.value=G}catch(Sg){console.error("Failed to prepare video source",Sg),u.value=lg.path}}},Yo=lg=>new Promise((bg,Sg)=>{const Kg=new Image;Kg.onload=()=>{const jg=document.createElement("canvas");jg.width=Kg.width,jg.height=Kg.height;const pI=jg.getContext("2d");if(!pI)return Sg("No canvas context");pI.drawImage(Kg,0,0),jg.toBlob(pC=>{if(!pC)return Sg("PNG conversion failed");bg(pC)},"image/png")},Kg.onerror=Sg,Kg.src=URL.createObjectURL(lg)}),yo=async()=>{var bg;if(!((bg=i.file)!=null&&bg.path))return null;if(i.file.file)return new Blob([i.file.file],{type:RA(i.file.path,i.file.file.type)});const lg=await fetch(i.file.path,{credentials:"include"});if(!lg.ok)throw new Error(`Failed to fetch media for clipboard: ${lg.status}`);return await lg.blob()},No=async()=>{var Sg,Kg;if(!((Sg=i.file)!=null&&Sg.path)||Yl(i.file.path)||!Aa(i.file.path))return;const lg=navigator;if(!((Kg=lg.clipboard)!=null&&Kg.write)||typeof window.ClipboardItem>"u")return;let bg=await yo();if(bg){bg.type!=="image/png"&&(bg=await Yo(bg));try{await lg.clipboard.write([new ClipboardItem({"image/png":bg})])}catch(jg){console.error("Clipboard write failed",jg)}}},un=lg=>{var Kg,jg;if(!((lg.ctrlKey||lg.metaKey)&&lg.key&&lg.key.toLowerCase()==="c")||bn(lg.target))return;const Sg=(Kg=window.getSelection())==null?void 0:Kg.toString();Sg&&Sg.trim().length>0||!((jg=i.file)!=null&&jg.path)||i.isErrorFile||D.value||!Aa(i.file.path)&&!Yl(i.file.path)||(lg.preventDefault(),lg.stopPropagation(),No().catch(pI=>{console.error("Failed to copy media to clipboard",pI)}))};return l.onMounted(()=>{n.value&&n.value.addEventListener("resize",og),ot(),t.addEventListener("change",ot),document.addEventListener("keydown",un)}),l.onUnmounted(()=>{Qi(),U(),Qt(),n.value&&n.value.removeEventListener("resize",og),t.removeEventListener("change",ot),document.removeEventListener("keydown",un)}),(lg,bg)=>(l.openBlock(),l.createBlock(fu,{position:"center",class:"slider-modal",ref:"modalRef",open:C.open,height:C.height,width:C.width,"animate-type":l.unref(bX).fade,onClose:Wg,onEndAnimation:fg,onUnmounted:bg[3]||(bg[3]=Sg=>lg.$emit("unmounted")),onPointerup:nt,onPointerleave:NA,onTouchend:ie},{default:l.withCtx(()=>{var Sg,Kg,jg,pI,pC,Vt,$,eg,mg,Jg,iI,kI,tC;return[l.createElementVNode("div",MQg,[l.createElementVNode("div",{ref_key:"sideBarRef",ref:n,class:l.normalizeClass(["slider-modal__side-bar",[{"slider-modal__side-bar_active":l.unref(AA)((Sg=i.file)==null?void 0:Sg.path)||l.unref(AA)((Kg=i.file)==null?void 0:Kg.file)}]])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.sideBarItems,(cI,dC)=>{var OC;return l.openBlock(),l.createElementBlock("div",{ref_for:!0,ref_key:"miniItemsRef",ref:A,class:l.normalizeClass(["slider-modal__side-bar-item",{"slider-modal__side-bar-item_active":dC===i.sideBarIndex}]),key:dC},[l.createElementVNode("div",{class:"slider-modal__mini-prewiew-wrapper",onClick:KC=>Bg(dC)},[l.createVNode(Gs,{ref_for:!0,ref:"miniPreviewsRef",class:"slider-modal__mini-preview",src:cI,page:dC+1,file:(OC=i.file)==null?void 0:OC.file},null,8,["src","page","file"])],8,HQg),l.createElementVNode("div",fQg,l.toDisplayString(dC+1),1)],2)}),128))],2),i.isMobile?(l.openBlock(),l.createElementBlock("div",SQg,[l.createElementVNode("div",DQg,[l.createElementVNode("div",{class:"slider-modal__exit-button",onClick:bg[0]||(bg[0]=cI=>lg.$emit("close"))},[l.createVNode(Yg,{class:"slider-modal__exit-icon",name:l.unref(rg).leftBig,width:16,height:16},null,8,["name"]),bg[4]||(bg[4]=l.createElementVNode("div",{class:"slider-modal__exit-text"},"Назад",-1))])]),l.createElementVNode("div",kQg,[l.createElementVNode("div",FQg,l.toDisplayString(i.defaultIndex+1)+" из "+l.toDisplayString(I.items.length),1)]),bg[5]||(bg[5]=l.createElementVNode("div",{class:"slider-modal__mobile-header-block"},null,-1))])):l.createCommentVNode("",!0),l.createElementVNode("div",{ref_key:"mainRef",ref:a,class:"slider-modal__main",onMousedown:l.withModifiers(SI,["self"]),onMouseup:l.withModifiers(DI,["self"])},[l.createElementVNode("div",KQg,l.toDisplayString((jg=i.file)==null?void 0:jg.name),1),l.unref(AA)((pI=i.file)==null?void 0:pI.path)||l.unref(AA)((pC=i.file)==null?void 0:pC.file)?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"itemRef",ref:s,class:"slider-modal__item",onMousedown:l.withModifiers(SI,["self"]),onMouseup:l.withModifiers(DI,["self"]),onWheel:kg,onScroll:VC,onPointerdown:At,onPointermove:QI,onTouchstart:vC,onTouchmove:Fe},[i.isMobile?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(i.sideBarItems,(cI,dC)=>{var OC;return l.openBlock(),l.createElementBlock("div",{key:dC,class:"slider-modal__viewport"},[l.createVNode(Gs,{ref_for:!0,ref:"miniPreviewsRef",class:"slider-modal__pdf slider-modal__pdf_mobile",src:cI,page:dC+1,file:(OC=i.file)==null?void 0:OC.file},null,8,["src","page","file"])])}),128)):(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"viewportRef",ref:o,class:"slider-modal__viewport",onMousedown:l.withModifiers(SI,["self"]),onMouseup:l.withModifiers(DI,["self"])},[l.createVNode(Gs,{class:"slider-modal__pdf",ref_key:"pdfRef",ref:d,src:(Vt=i==null?void 0:i.file)==null?void 0:Vt.path,page:i.sideBarIndex+1,file:($=i.file)==null?void 0:$.file},null,8,["src","page","file"])],544))],544)):l.unref(Aa)((eg=i.file)==null?void 0:eg.path)?(l.openBlock(),l.createElementBlock("div",{key:1,ref_key:"itemRef",ref:s,class:"slider-modal__item",onClick:l.withModifiers(Wg,["self"]),onPointerdown:At,onPointermove:QI,onTouchstart:vC,onTouchmove:Fe,onMousedown:l.withModifiers(SI,["self"]),onMouseup:l.withModifiers(DI,["self"])},[l.createElementVNode("div",{ref_key:"viewportRef",ref:o,class:"slider-modal__viewport",onMousedown:l.withModifiers(SI,["self"]),onMouseup:l.withModifiers(DI,["self"])},[l.createElementVNode("img",{ref_key:"imagePreviewRef",ref:Z,class:l.normalizeClass(["slider-modal__image",{"slider-modal__image_error":i.isErrorFile,"slider-modal__image_positioned":i.isImagePositioned}]),src:(mg=i.file)==null?void 0:mg.path,onError:bg[1]||(bg[1]=cI=>BC(cI,!0)),onLoad:eC},null,42,zQg)],544)],544)):l.unref(Yl)((Jg=i.file)==null?void 0:Jg.path)&&!i.isErrorFile?(l.openBlock(),l.createElementBlock("div",{key:2,ref_key:"itemRef",ref:s,class:"slider-modal__item",onClick:l.withModifiers(Wg,["self"]),onPointerdown:At,onPointermove:QI,onTouchstart:l.withModifiers(vC,["prevent"]),onTouchmove:l.withModifiers(Fe,["prevent"]),onMousedown:l.withModifiers(SI,["self"]),onMouseup:l.withModifiers(DI,["self"])},[(l.openBlock(),l.createElementBlock("video",{controls:"",autoplay:"",name:"media",playsinline:"","webkit-playsinline":"",class:"slider-modal__video",key:(iI=i.file)==null?void 0:iI.path,"data-testid":`${I.dataTestid}-Video`,onError:bg[2]||(bg[2]=cI=>BC(cI,!0))},[l.createElementVNode("source",{src:u.value??((kI=i.file)==null?void 0:kI.path)??"",type:RA(((tC=i.file)==null?void 0:tC.path)??"")},null,8,xQg)],40,JQg))],544)):(l.openBlock(),l.createElementBlock("div",{key:3,ref_key:"itemRef",ref:s,class:"slider-modal__item",onClick:l.withModifiers(Wg,["self"]),onPointerdown:At,onPointermove:QI,onTouchstart:vC,onTouchmove:Fe},[l.createElementVNode("div",{ref_key:"viewportRef",ref:o,class:"slider-modal__viewport",onMousedown:l.withModifiers(SI,["self"]),onMouseup:l.withModifiers(DI,["self"])},[X.value?(l.openBlock(),l.createElementBlock("div",TQg," ."+l.toDisplayString(R.value),1)):(l.openBlock(),l.createElementBlock("img",{key:1,class:"slider-modal__image slider-modal__image_error",src:l.unref(rs)},null,8,LQg))],544)],544)),l.createElementVNode("div",vQg,[bg[6]||(bg[6]=l.createElementVNode("div",{class:"slider-modal__nav-block"},[l.createElementVNode("br")],-1)),l.createElementVNode("div",jQg,[I.items.length>1?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{class:"slider-modal__side-button",disabled:B.value,onClick:Be},[l.createVNode(Yg,{class:"slider-modal__icon",name:l.unref(rg).leftBig,width:24,height:24},null,8,["name"])],8,QQg),l.createVNode(oQg,{ref_key:"sliderRef",ref:m,class:"slider-modal__bottom-slider","active-index":i.defaultIndex},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.items,(cI,dC)=>(l.openBlock(),l.createBlock(dQg,{class:l.normalizeClass(["slider-modal__slide",{"slider-modal__slide_active":dC===i.defaultIndex}]),key:dC,"is-active":dC===i.defaultIndex,onClick:OC=>Rg(dC)},{default:l.withCtx(()=>[l.unref(Aa)(cI.path)?(l.openBlock(),l.createElementBlock("img",{key:0,class:"slider-modal__slide-image",src:cI.path,alt:cI.path,onError:BC},null,40,OQg)):l.unref(AA)(cI.path)||l.unref(AA)(cI.file)?(l.openBlock(),l.createBlock(Gs,{key:1,class:"slider-modal__slide-image",src:cI.path,page:1,file:cI.file},null,8,["src","file"])):l.unref(Yl)(cI.path)?(l.openBlock(),l.createBlock(Su,{key:2,class:"slider-modal__slide-image",src:cI.path},null,8,["src"])):K(cI)?(l.openBlock(),l.createElementBlock("div",UQg," ."+l.toDisplayString(Y(cI.path)),1)):(l.openBlock(),l.createElementBlock("img",{key:4,class:"slider-modal__slide-image",src:l.unref(rs)},null,8,EQg))]),_:2},1032,["class","is-active","onClick"]))),128))]),_:1},8,["active-index"]),l.createElementVNode("button",{class:"slider-modal__side-button",disabled:p.value,onClick:jI},[l.createVNode(Yg,{class:"slider-modal__icon",name:l.unref(rg).rightBig,width:24,height:24},null,8,["name"])],8,PQg)],64)):l.createCommentVNode("",!0)]),l.createElementVNode("div",_Qg,[l.createElementVNode("div",qQg,[l.createElementVNode("button",{class:"slider-modal__side-button slider-modal__side-button_zoom",disabled:O.value,onClick:gI},[l.createVNode(Yg,{class:"slider-modal__icon",name:l.unref(rg).zoomMinus,width:24,height:24},null,8,["name"])],8,$Qg),l.createElementVNode("button",{class:"slider-modal__side-button slider-modal__side-button_zoom",disabled:O.value,onClick:Vg},[l.createVNode(Yg,{class:"slider-modal__icon",name:l.unref(rg).zoomPlus,width:24,height:24},null,8,["name"])],8,gOg),l.createElementVNode("button",{class:"slider-modal__side-button",disabled:k.value,onClick:qg},[l.createVNode(Yg,{class:"slider-modal__icon",name:l.unref(rg).reset,width:24,height:24},null,8,["name"])],8,IOg)]),l.createElementVNode("div",COg,[l.createElementVNode("button",{class:"slider-modal__side-button",disabled:v.value,onClick:NC},[l.createVNode(Yg,{class:"slider-modal__icon",name:l.unref(rg).download,width:24,height:24},null,8,["name"])],8,eOg),l.createElementVNode("button",{class:"slider-modal__side-button slider-modal__side-button_printer",disabled:z.value,onClick:CC},[l.createVNode(Yg,{class:"slider-modal__icon",name:l.unref(rg).printer,width:24,height:24},null,8,["name"])],8,tOg)])])])],544)],512)]}),_:1},8,["open","height","width","animate-type"]))}}),[["__scopeId","data-v-3bdf0223"]]),lOg=["data-testid"],sOg=["data-testid"],oOg=["data-testid"],aOg=["data-testid"],dOg=["data-testid"],ku=Qg(l.defineComponent({__name:"Loader",props:{title:{default:"Загрузка..."},dataTestid:{default:"Loader"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("div",{class:"loader","data-testid":g.dataTestid},[l.createElementVNode("div",{class:"loader__area","data-testid":`${g.dataTestid}-Area`},[l.createElementVNode("div",{class:"loader__circle loader__circle--light-blue","data-testid":`${g.dataTestid}-Loader-LightBlue1`},null,8,oOg),l.createElementVNode("div",{class:"loader__circle loader__circle--blue","data-testid":`${g.dataTestid}-Loader-LightBlue2`},null,8,aOg)],8,sOg),g.title?(l.openBlock(),l.createElementBlock("span",{key:0,class:"loader__span","data-testid":`${g.dataTestid}-Loader-Title`},l.toDisplayString(g.title),9,dOg)):l.createCommentVNode("",!0)],8,lOg))}}),[["__scopeId","data-v-4086dc15"]]),cOg=["data-testid"],mOg=["data-testid"],rOg=["disabled","data-testid"],ZOg=["data-testid"],bOg=["data-testid"],uOg=["src","data-testid"],hOg=["data-testid"],GOg=["data-testid"],wOg=["src"],WOg=["data-testid"],BOg=["data-testid"],pOg=["src","data-testid"],YOg=["data-testid"],yOg=["data-testid"],NOg=["disabled","data-testid"],GB="Ошибка загрузки файла",VOg=500,VX=Qg(l.defineComponent({__name:"Slider",props:{items:{},defaultIndex:{},dataTestid:{default:"Slider"}},setup(C,{expose:g}){const I=C,e=l.reactive({files:I.items.length?I.items:[],file:null,currentIndex:I.defaultIndex||0,extension:null,filePath:null,isShowSliderModal:!1,indexModal:0,isLoad:!1,isError:!1,errorText:null}),t=l.computed(()=>w(e.file)??""),i=l.computed(()=>Y(t.value)),A=l.computed(()=>e.files.reduce((U,T)=>{const q=w(T);return q&&U.push({path:q,name:T.name,file:T.file}),U},[])),n=l.computed(()=>!e.files.length||e.isError?!1:R(t.value)||X(t.value)||K(t.value)),s=()=>{e.isError=!1,e.isLoad=!1,e.errorText=null},o=()=>{e.isLoad=!0},a=async U=>{var cg;const T=t.value;e.isError=!0,e.isLoad=!0,e.errorText=h(U)??G((cg=e.file)==null?void 0:cg.path)??GB;const q=await p(T);T===t.value&&q&&(e.errorText=q)},d=U=>{if(!U)return;const T=w(U);if(!T)return;const q=A.value.findIndex(cg=>T===cg.path);q!==-1&&(e.indexModal=q,e.isShowSliderModal=!0)},m=()=>{e.isShowSliderModal=!1},Z=()=>{var U;return(U=I.items)!=null&&U.length?e.currentIndex===I.items.length-1:!0},u=U=>{if(typeof U!="string")return null;const T=U.trim();return T?T.slice(0,VOg):null},h=U=>{const T=u(U);if(T)return T;if(U instanceof Error)return u(U.message);if(!U||typeof U!="object")return null;const q=U;return u(q.error)??u(q.message)},G=U=>{const T=u(U);return T?T.toLowerCase()==="error"?GB:T.toLowerCase().startsWith("error:")?T.replace(/^error:\s*/i,"")||GB:null:h(U)},w=U=>typeof(U==null?void 0:U.path)!="string"||G(U.path)?null:U.path,B=U=>{const T=u(U);if(!T)return null;try{const q=JSON.parse(T);return h(q)??T}catch{return T}},p=async U=>{if(!U)return null;try{const T=await fetch(U),q=T.headers.get("content-type")??"",cg=q.includes("application/json")||q.startsWith("text/");if(T.ok&&!cg)return null;const og=await T.text();return B(og)??(T.ok?null:`${GB} (${T.status})`)}catch{return null}},Y=U=>{if(!U)return null;const T=U.split("?")[0],q=/\.\w+$/,cg=T.match(q);return cg?cg[0].replace(".",""):null},N=U=>(e.extension=Y(U),e.extension),R=U=>{const T=N(U);return T?Object.values(mu).includes(T.toLowerCase()):!1},X=U=>{const T=N(U);return T?Object.values(ru).includes(T):!1},K=U=>N(U)==="pdf",D=()=>{e.currentIndex--,e.file=e.files[e.currentIndex]},k=()=>{e.currentIndex++,e.file=e.files[e.currentIndex]},z=()=>e.files.length===0,v=()=>e.isError&&!!e.errorText,O=()=>!!t.value&&!!i.value&&R(t.value)==!1&&X(t.value)==!1&&K(t.value)==!1&&e.files.length>0&&!e.isError;return l.watch(()=>I.items,()=>{e.files=I.items,s()},{deep:!0}),l.watch(()=>e.file,()=>{var T;e.filePath=t.value||null,s();const U=G((T=e.file)==null?void 0:T.path);U&&(e.isError=!0,e.isLoad=!0,e.errorText=U)},{immediate:!0}),l.watch(()=>I.items,()=>{e.files=I.items.length?I.items:[]}),l.onMounted(()=>{if(!I.items)return 0;e.files=I.items,I.defaultIndex&&(e.file=e.files[e.currentIndex]),e.file=e.files[e.currentIndex]}),g({setSlide:U=>{U>=0&&U<e.files.length&&(e.currentIndex=U,e.file=e.files[e.currentIndex])}}),(U,T)=>(l.openBlock(),l.createElementBlock("div",{class:"slider-yui-kit","data-testid":I.dataTestid},[l.createElementVNode("div",{class:"slider-yui-kit__wrapper",ref:"slider-yui-kitWrapperRef","data-testid":`${I.dataTestid}-Wrapper`},[l.createElementVNode("button",{class:"slider-yui-kit__button slider-yui-kit__button--prev",onClick:D,disabled:e.currentIndex===0,"data-testid":`${I.dataTestid}-Prev-Button`},[l.createVNode(Yg,{name:l.unref(rg).leftBig,"data-testid":`${I.dataTestid}-Prev-Icon`},null,8,["name","data-testid"])],8,rOg),l.createElementVNode("div",{class:"slider-yui-kit__slides","data-testid":`${I.dataTestid}-Slides-Container`},[z()?(l.openBlock(),l.createElementBlock("div",{key:0,class:"placeholder-yui-kit no-content","data-testid":`${I.dataTestid}-NoContent-Placeholder`},[l.createElementVNode("img",{src:l.unref(rs),alt:"",width:"111px",height:"111px","data-testid":`${I.dataTestid}-NoContent-Image`},null,8,uOg),l.createElementVNode("p",{"data-testid":`${I.dataTestid}-NoContent-Paragrpah`}," Контент отсутствует ",8,hOg)],8,bOg)):v()?(l.openBlock(),l.createElementBlock("div",{key:1,class:"placeholder-yui-kit","data-testid":`${I.dataTestid}-Error-Placeholder`},[l.createElementVNode("img",{src:l.unref(rs),alt:"",width:"111px",height:"111px"},null,8,wOg),l.createElementVNode("p",{class:"slider-yui-kit__error-text","data-testid":`${I.dataTestid}-Error-Paragrpah`},l.toDisplayString(e.errorText),9,WOg)],8,GOg)):O()?(l.openBlock(),l.createElementBlock("div",{key:2,class:"slider-yui-kit__extension","data-testid":`${I.dataTestid}-Invalid-Extension-Placeholder`,onClick:T[0]||(T[0]=q=>d(e.file))},[l.createElementVNode("p",null,"."+l.toDisplayString(i.value),1)],8,BOg)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:3},[R(t.value)?(l.openBlock(),l.createElementBlock("img",{key:0,class:"slider__item",src:t.value,"data-testid":`${I.dataTestid}-Image`,onClick:T[1]||(T[1]=q=>d(e.file)),onError:a,onLoad:o},null,40,pOg)):X(t.value)?(l.openBlock(),l.createBlock(Su,{key:1,class:"slider__item slider__item_video",src:t.value,onClick:T[2]||(T[2]=q=>d(e.file)),onLoad:o,onError:a},null,8,["src"])):K(t.value)?(l.openBlock(),l.createBlock(Gs,{key:2,class:"slider-yui-kit__pdf-preview slider__item",src:t.value,onClick:T[3]||(T[3]=q=>d(e.file)),onLoad:o,onError:a},null,8,["src"])):(l.openBlock(),l.createElementBlock("div",{key:3,class:"placeholder-yui-kit no-content","data-testid":`${I.dataTestid}-NoContent-Placeholder`},[l.createElementVNode("p",{"data-testid":`${I.dataTestid}-NoContent-Paragrpah`}," Ошибка загрузки файла ",8,yOg)],8,YOg))],64)),!e.isLoad&&n.value&&!e.isError?(l.openBlock(),l.createBlock(ku,{key:4,class:"slider-yui-kit__loader"})):l.createCommentVNode("",!0)],8,ZOg),l.createElementVNode("button",{class:"slider-yui-kit__button slider-yui-kit__button--next",onClick:k,disabled:Z(),"data-testid":`${I.dataTestid}-Next-Button`},[l.createVNode(Yg,{name:l.unref(rg).rightBig,"data-testid":`${I.dataTestid}-Next-Icon`},null,8,["name","data-testid"])],8,NOg)],8,mOg),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(hB,{open:e.isShowSliderModal,items:A.value,"default-index":e.indexModal,onClose:m},null,8,["open","items","default-index"])]))],8,cOg))}}),[["__scopeId","data-v-589c935e"]]),XOg=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function ROg(C){return XOg.test(C)}function RF(){var C=URL.createObjectURL(new Blob),g=C.toString();return URL.revokeObjectURL(C),g.split(/[:\/]/g).pop().toLowerCase()}RF.valid=ROg;const MOg=(C="")=>C+RF();var Fu=(C=>(C.small="small",C.medium="medium",C.big="big",C.large="large",C))(Fu||{});const HOg=["disabled","data-testid"],fOg=["id","disabled","data-testid"],SOg=["for","data-testid"],DOg=l.defineComponent({__name:"Toggle",props:l.mergeModels({disabled:{type:Boolean,default:!1},backgroundColor:{},type:{default:Fu.small},dataTestid:{default:"Toggle"}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:l.mergeModels(["change"],["update:modelValue"]),setup(C,{emit:g}){const I=C,e=g,t=l.useModel(C,"modelValue"),i=MOg(),A=l.computed(()=>({"toggle-yui-kit":!0,"toggle-yui-kit_small":I.type===Fu.small,"toggle-yui-kit_medium":I.type===Fu.medium,"toggle-yui-kit_large":I.type===Fu.large})),n=l.computed(()=>({backgroundColor:I.backgroundColor})),s=()=>e("change",!!t.value);return(o,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(A.value),disabled:I.disabled,style:l.normalizeStyle(n.value),"data-testid":`${I.dataTestid}-Toggle`},[l.withDirectives(l.createElementVNode("input",{class:"toggle-yui-kit-input",id:l.unref(i),type:"checkbox",disabled:C.disabled,"onUpdate:modelValue":a[0]||(a[0]=d=>t.value=d),onChange:s,"data-testid":`${I.dataTestid}-Input`},null,40,fOg),[[l.vModelCheckbox,t.value]]),l.createElementVNode("label",{class:"toggle-yui-kit-label",for:l.unref(i),"data-testid":`${I.dataTestid}-Label`},null,8,SOg)],14,HOg))}}),wB=Qg(DOg,[["__scopeId","data-v-f9c2785e"]]);/*!
1613
+ `,Sg="max-height: 95vh; margin-bottom: 10px; max-width: 100%"),bQg({printable:(pI=i.file)==null?void 0:pI.path,type:lg,style:bg,imageStyle:Sg})},NC=()=>{var lg,bg,Sg,Kg;(lg=i.file)!=null&&lg.path&&rQg((bg=i.file)==null?void 0:bg.path,(Sg=i.file)==null?void 0:Sg.name,(Kg=i.file)==null?void 0:Kg.file)},BC=(lg,bg=!1)=>{const Sg=lg.target;Sg instanceof HTMLImageElement&&(Sg.src=rs),bg&&(U(),i.isErrorFile=!0)},eC=()=>{var lg;U(),!i.isErrorFile&&!D.value?q()||T((lg=i.file)==null?void 0:lg.path):(cg(),U(),i.isImagePositioned=!0)},te=lg=>{l.nextTick(()=>{var Sg;if(!lg||((Sg=i.file)==null?void 0:Sg.path)!==lg||i.isImagePositioned||i.isErrorFile||D.value)return;const bg=Z.value;!(bg!=null&&bg.complete)||bg.naturalWidth<=0||eC()})},jI=()=>{m.value&&pe(m.value.nextSlide())},Be=()=>{m.value&&pe(m.value.prevSlide())},SI=lg=>{if(i.isMobile)return;const bg=lg.target;(bg===a.value||bg===s.value||bg===o.value)&&(i.isClickOnExit=!0)},DI=lg=>{const bg=lg.target;(bg===a.value||bg===s.value||bg===o.value)&&Wg(),i.isClickOnExit=!1},At=lg=>{i.isMobile&&(i.startXForMobile=lg.clientX,i.startYForMobile=lg.clientY,i.isPointerActive=!0)},vC=lg=>{i.isMobile&&(i.startXForMobile=lg.touches[0].clientX,i.startYForMobile=lg.touches[0].clientY,i.isPointerActive=!0)},NA=()=>{i.isMobile&&(jC(),Ze())},nt=lg=>{var pI,pC;if(!i.isMobile)return;const bg=lg.clientX,Sg=lg.clientY,Kg=Math.abs(bg-i.startXForMobile),jg=Sg-i.startYForMobile;i.isExistSwipe&&jg>NX&&jg>Kg&&e("close"),i.isChangeItemSwipe&&m.value&&(i.isMobile&&i.zoomValue===1||!i.isMobile)&&(i.isSwipeNextSlide&&pe((pI=m.value)==null?void 0:pI.nextSlide()),i.isSwipePrevSlide&&pe((pC=m.value)==null?void 0:pC.prevSlide())),jC(),l.nextTick(()=>{Ze()})},ie=lg=>{var pI,pC;if(!i.isMobile)return;const bg=lg.changedTouches[0].clientX,Sg=lg.changedTouches[0].clientY,Kg=Math.abs(bg-i.startXForMobile),jg=Sg-i.startYForMobile;i.isExistSwipe&&jg>NX&&jg>Kg&&e("close"),i.isChangeItemSwipe&&m.value&&(i.isMobile&&i.zoomValue===1||!i.isMobile)&&(i.isSwipeNextSlide&&pe((pI=m.value)==null?void 0:pI.nextSlide()),i.isSwipePrevSlide&&pe((pC=m.value)==null?void 0:pC.prevSlide())),jC(),l.nextTick(()=>{Ze()})},QI=lg=>{if(!i.isMobile||!i.isPointerActive)return;const bg=lg.clientY-i.startYForMobile,Sg=lg.clientX-i.startXForMobile;aC(Sg,bg)},Fe=lg=>{if(!i.isMobile)return;const bg=lg.touches[0].clientX,Sg=lg.touches[0].clientY,Kg=bg-i.startXForMobile,jg=Sg-i.startYForMobile;aC(Kg,jg)},VC=lg=>{const bg=lg.target;!i.isMobile||!bg||bg.scrollHeight<=bg.clientHeight||!i.isExitScrollActive&&bg.scrollTop===0&&lg.preventDefault()},lt=()=>{if(!s.value||!Z.value)return 1;if(i.zoomValue!==1)return i.zoomValue;const lg=s.value.offsetWidth,bg=s.value.offsetHeight,Sg=Z.value.offsetWidth,Kg=Z.value.offsetHeight;let jg=1;return Math.abs(i.rotateValue)%180===0||(Kg>lg?jg=lg/Kg:Sg>bg&&(jg=bg/Sg)),jg},aC=(lg,bg)=>{const Sg=Math.abs(lg);if(i.zoomValue===1){if(Sg<bg&&bg>XF&&!i.isChangeItemSwipe&&s.value&&s.value.scrollTop===0&&(i.isExistSwipe=!0),Sg>bg&&Sg>AOg&&!i.isExistSwipe&&(i.isChangeItemSwipe=!0),i.isExistSwipe){const Kg=Math.max(0,1-(bg-XF)/NX);requestAnimationFrame(()=>{a.value&&OI({opacity:Kg},a.value)})}if(i.isChangeItemSwipe&&Sg>iOg){const Kg=i.defaultIndex===I.items.length-1,jg=i.defaultIndex===0;if(lg>0){if(jg)return;i.isSwipePrevSlide=!0}if(lg<0){if(Kg)return;i.isSwipeNextSlide=!0}}}},vi=()=>{const lg=i.rotateValue!==0;i.rotateValue=0,lg&&Z.value&&OI({transform:"none"},Z.value)},Ze=()=>{requestAnimationFrame(()=>{a.value&&OI({opacity:1},a.value)})},jC=()=>{i.isPointerActive=!1,i.isExistSwipe=!1,i.isSwipeNextSlide=!1,i.isSwipePrevSlide=!1,i.isChangeItemSwipe=!1},hi=lg=>{const bg=i.zoomValue;i.zoomValue+=lg?1:-1,i.zoomValue=Math.min(Math.max(1,i.zoomValue),3);const Sg=i.zoomValue;bg!==Sg&&o.value&&(d.value&&OI(Cg.value,o.value),Z.value&&(h==null||h.zoom(i.zoomValue,{force:!0}),i.zoomValue===1?(h==null||h.setOptions({cursor:"default"}),l.nextTick(()=>{og()})):h==null||h.setOptions({cursor:"move"})))},pe=lg=>{!I.items[lg]||i.defaultIndex===lg||(i.defaultIndex=lg,Qi(),i.file=I.items[lg])},Zn=lg=>{let bg=i.sideBarIndex;lg>0?(bg=i.sideBarIndex+1,bg=Math.min(i.sideBarLength-1,bg)):(bg=i.sideBarIndex-1,bg=Math.max(0,bg)),i.sideBarIndex=bg},st=()=>{var bg;const lg=(bg=i.file)==null?void 0:bg.path;l.nextTick(()=>{var Sg,Kg,jg;if(i.file){if(AA((Sg=i.file)==null?void 0:Sg.path)||AA((Kg=i.file)==null?void 0:Kg.file)){i.isErrorFile=!0,ji();return}Aa((jg=i.file)==null?void 0:jg.path)&&te(lg)}})},QC=()=>{l.nextTick(()=>{if(!A.value||!n.value)return;const lg=A.value[i.sideBarIndex];uX(lg,n.value)})},ji=async()=>{var lg,bg,Sg;try{if(!i.file)return;const Kg=mc.getCache(i.file.path);let jg;if(Kg)jg=Kg;else if((lg=i.file)!=null&&lg.file){const pI=await i.file.file.arrayBuffer();jg=await eB({data:new Uint8Array(pI)}).promise}else jg=await eB((bg=i.file)==null?void 0:bg.path).promise;if(!jg){i.isErrorFile=!0;return}i.sideBarLength=jg.numPages,i.sideBarItems=new Array(jg.numPages).fill(((Sg=i.file)==null?void 0:Sg.path)??""),mc.setCache(i.file.path,jg),VA(0),i.isErrorFile=!1}catch(Kg){console.error(Kg),i.isErrorFile=!0}},VA=async(lg=0)=>{i.sideBarIndex=lg},Qi=()=>{i.sideBarItems=[],i.sideBarIndex=0,i.sideBarLength=0},ot=()=>{i.isMobile=t.matches},XA={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",svg:"image/svg+xml",mp4:"video/mp4",webm:"video/webm",ogv:"video/ogg",mov:"video/quicktime"},bn=lg=>lg instanceof HTMLElement?!!lg.closest('input, textarea, [contenteditable="true"], [contenteditable=""]'):!1,RA=(lg,bg)=>{var jg;if(bg)return bg;const[Sg]=lg.split("?"),Kg=(jg=Sg.split(".").pop())==null?void 0:jg.toLowerCase();return Kg?XA[Kg]??"application/octet-stream":"application/octet-stream"},Qt=()=>{G&&(URL.revokeObjectURL(G),G=null),u.value=null},at=async()=>{var bg;Qt();const lg=i.file;if(!(!(lg!=null&&lg.path)||!Yl(lg.path))){if(lg.file){G=URL.createObjectURL(lg.file),u.value=G;return}try{const Sg=await fetch(lg.path,{credentials:"include"});if(!Sg.ok)throw new Error(`Failed to fetch video: ${Sg.status}`);const Kg=await Sg.blob(),jg=Kg.type?Kg:new Blob([Kg],{type:RA(lg.path)});if(((bg=i.file)==null?void 0:bg.path)!==lg.path)return;G=URL.createObjectURL(jg),u.value=G}catch(Sg){console.error("Failed to prepare video source",Sg),u.value=lg.path}}},Yo=lg=>new Promise((bg,Sg)=>{const Kg=new Image;Kg.onload=()=>{const jg=document.createElement("canvas");jg.width=Kg.width,jg.height=Kg.height;const pI=jg.getContext("2d");if(!pI)return Sg("No canvas context");pI.drawImage(Kg,0,0),jg.toBlob(pC=>{if(!pC)return Sg("PNG conversion failed");bg(pC)},"image/png")},Kg.onerror=Sg,Kg.src=URL.createObjectURL(lg)}),yo=async()=>{var bg;if(!((bg=i.file)!=null&&bg.path))return null;if(i.file.file)return new Blob([i.file.file],{type:RA(i.file.path,i.file.file.type)});const lg=await fetch(i.file.path,{credentials:"include"});if(!lg.ok)throw new Error(`Failed to fetch media for clipboard: ${lg.status}`);return await lg.blob()},No=async()=>{var Sg,Kg;if(!((Sg=i.file)!=null&&Sg.path)||Yl(i.file.path)||!Aa(i.file.path))return;const lg=navigator;if(!((Kg=lg.clipboard)!=null&&Kg.write)||typeof window.ClipboardItem>"u")return;let bg=await yo();if(bg){bg.type!=="image/png"&&(bg=await Yo(bg));try{await lg.clipboard.write([new ClipboardItem({"image/png":bg})])}catch(jg){console.error("Clipboard write failed",jg)}}},un=lg=>{var Kg,jg;if(!((lg.ctrlKey||lg.metaKey)&&lg.key&&lg.key.toLowerCase()==="c")||bn(lg.target))return;const Sg=(Kg=window.getSelection())==null?void 0:Kg.toString();Sg&&Sg.trim().length>0||!((jg=i.file)!=null&&jg.path)||i.isErrorFile||D.value||!Aa(i.file.path)&&!Yl(i.file.path)||(lg.preventDefault(),lg.stopPropagation(),No().catch(pI=>{console.error("Failed to copy media to clipboard",pI)}))};return l.onMounted(()=>{n.value&&n.value.addEventListener("resize",og),ot(),t.addEventListener("change",ot),document.addEventListener("keydown",un)}),l.onUnmounted(()=>{Qi(),U(),Qt(),n.value&&n.value.removeEventListener("resize",og),t.removeEventListener("change",ot),document.removeEventListener("keydown",un)}),(lg,bg)=>(l.openBlock(),l.createBlock(fu,{position:"center",class:"slider-modal",ref:"modalRef",open:C.open,height:C.height,width:C.width,"animate-type":l.unref(bX).fade,onClose:Wg,onEndAnimation:fg,onUnmounted:bg[3]||(bg[3]=Sg=>lg.$emit("unmounted")),onPointerup:nt,onPointerleave:NA,onTouchend:ie},{default:l.withCtx(()=>{var Sg,Kg,jg,pI,pC,Vt,$,eg,mg,Jg,iI,kI,tC;return[l.createElementVNode("div",MQg,[l.createElementVNode("div",{ref_key:"sideBarRef",ref:n,class:l.normalizeClass(["slider-modal__side-bar",[{"slider-modal__side-bar_active":l.unref(AA)((Sg=i.file)==null?void 0:Sg.path)||l.unref(AA)((Kg=i.file)==null?void 0:Kg.file)}]])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.sideBarItems,(cI,dC)=>{var OC;return l.openBlock(),l.createElementBlock("div",{ref_for:!0,ref_key:"miniItemsRef",ref:A,class:l.normalizeClass(["slider-modal__side-bar-item",{"slider-modal__side-bar-item_active":dC===i.sideBarIndex}]),key:dC},[l.createElementVNode("div",{class:"slider-modal__mini-prewiew-wrapper",onClick:KC=>Bg(dC)},[l.createVNode(Gs,{ref_for:!0,ref:"miniPreviewsRef",class:"slider-modal__mini-preview",src:cI,page:dC+1,file:(OC=i.file)==null?void 0:OC.file},null,8,["src","page","file"])],8,HQg),l.createElementVNode("div",fQg,l.toDisplayString(dC+1),1)],2)}),128))],2),i.isMobile?(l.openBlock(),l.createElementBlock("div",SQg,[l.createElementVNode("div",DQg,[l.createElementVNode("div",{class:"slider-modal__exit-button",onClick:bg[0]||(bg[0]=cI=>lg.$emit("close"))},[l.createVNode(Yg,{class:"slider-modal__exit-icon",name:l.unref(rg).leftBig,width:16,height:16},null,8,["name"]),bg[4]||(bg[4]=l.createElementVNode("div",{class:"slider-modal__exit-text"},"Назад",-1))])]),l.createElementVNode("div",kQg,[l.createElementVNode("div",FQg,l.toDisplayString(i.defaultIndex+1)+" из "+l.toDisplayString(I.items.length),1)]),bg[5]||(bg[5]=l.createElementVNode("div",{class:"slider-modal__mobile-header-block"},null,-1))])):l.createCommentVNode("",!0),l.createElementVNode("div",{ref_key:"mainRef",ref:a,class:"slider-modal__main",onMousedown:l.withModifiers(SI,["self"]),onMouseup:l.withModifiers(DI,["self"])},[l.createElementVNode("div",KQg,l.toDisplayString((jg=i.file)==null?void 0:jg.name),1),l.unref(AA)((pI=i.file)==null?void 0:pI.path)||l.unref(AA)((pC=i.file)==null?void 0:pC.file)?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"itemRef",ref:s,class:"slider-modal__item",onMousedown:l.withModifiers(SI,["self"]),onMouseup:l.withModifiers(DI,["self"]),onWheel:kg,onScroll:VC,onPointerdown:At,onPointermove:QI,onTouchstart:vC,onTouchmove:Fe},[i.isMobile?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(i.sideBarItems,(cI,dC)=>{var OC;return l.openBlock(),l.createElementBlock("div",{key:dC,class:"slider-modal__viewport"},[l.createVNode(Gs,{ref_for:!0,ref:"miniPreviewsRef",class:"slider-modal__pdf slider-modal__pdf_mobile",src:cI,page:dC+1,file:(OC=i.file)==null?void 0:OC.file},null,8,["src","page","file"])])}),128)):(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"viewportRef",ref:o,class:"slider-modal__viewport",onMousedown:l.withModifiers(SI,["self"]),onMouseup:l.withModifiers(DI,["self"])},[l.createVNode(Gs,{class:"slider-modal__pdf",ref_key:"pdfRef",ref:d,src:(Vt=i==null?void 0:i.file)==null?void 0:Vt.path,page:i.sideBarIndex+1,file:($=i.file)==null?void 0:$.file},null,8,["src","page","file"])],544))],544)):l.unref(Aa)((eg=i.file)==null?void 0:eg.path)?(l.openBlock(),l.createElementBlock("div",{key:1,ref_key:"itemRef",ref:s,class:"slider-modal__item",onClick:l.withModifiers(Wg,["self"]),onPointerdown:At,onPointermove:QI,onTouchstart:vC,onTouchmove:Fe,onMousedown:l.withModifiers(SI,["self"]),onMouseup:l.withModifiers(DI,["self"])},[l.createElementVNode("div",{ref_key:"viewportRef",ref:o,class:"slider-modal__viewport",onMousedown:l.withModifiers(SI,["self"]),onMouseup:l.withModifiers(DI,["self"])},[l.createElementVNode("img",{ref_key:"imagePreviewRef",ref:Z,class:l.normalizeClass(["slider-modal__image",{"slider-modal__image_error":i.isErrorFile,"slider-modal__image_positioned":i.isImagePositioned}]),src:(mg=i.file)==null?void 0:mg.path,onError:bg[1]||(bg[1]=cI=>BC(cI,!0)),onLoad:eC},null,42,zQg)],544)],544)):l.unref(Yl)((Jg=i.file)==null?void 0:Jg.path)&&!i.isErrorFile?(l.openBlock(),l.createElementBlock("div",{key:2,ref_key:"itemRef",ref:s,class:"slider-modal__item",onClick:l.withModifiers(Wg,["self"]),onPointerdown:At,onPointermove:QI,onTouchstart:l.withModifiers(vC,["prevent"]),onTouchmove:l.withModifiers(Fe,["prevent"]),onMousedown:l.withModifiers(SI,["self"]),onMouseup:l.withModifiers(DI,["self"])},[(l.openBlock(),l.createElementBlock("video",{controls:"",autoplay:"",name:"media",playsinline:"","webkit-playsinline":"",class:"slider-modal__video",key:(iI=i.file)==null?void 0:iI.path,"data-testid":`${I.dataTestid}-Video`,onError:bg[2]||(bg[2]=cI=>BC(cI,!0))},[l.createElementVNode("source",{src:u.value??((kI=i.file)==null?void 0:kI.path)??"",type:RA(((tC=i.file)==null?void 0:tC.path)??"")},null,8,xQg)],40,JQg))],544)):(l.openBlock(),l.createElementBlock("div",{key:3,ref_key:"itemRef",ref:s,class:"slider-modal__item",onClick:l.withModifiers(Wg,["self"]),onPointerdown:At,onPointermove:QI,onTouchstart:vC,onTouchmove:Fe},[l.createElementVNode("div",{ref_key:"viewportRef",ref:o,class:"slider-modal__viewport",onMousedown:l.withModifiers(SI,["self"]),onMouseup:l.withModifiers(DI,["self"])},[X.value?(l.openBlock(),l.createElementBlock("div",TQg," ."+l.toDisplayString(R.value),1)):(l.openBlock(),l.createElementBlock("img",{key:1,class:"slider-modal__image slider-modal__image_error",src:l.unref(rs)},null,8,LQg))],544)],544)),l.createElementVNode("div",vQg,[bg[6]||(bg[6]=l.createElementVNode("div",{class:"slider-modal__nav-block"},[l.createElementVNode("br")],-1)),l.createElementVNode("div",jQg,[I.items.length>1?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{class:"slider-modal__side-button",disabled:B.value,onClick:Be},[l.createVNode(Yg,{class:"slider-modal__icon",name:l.unref(rg).leftBig,width:24,height:24},null,8,["name"])],8,QQg),l.createVNode(oQg,{ref_key:"sliderRef",ref:m,class:"slider-modal__bottom-slider","active-index":i.defaultIndex},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.items,(cI,dC)=>(l.openBlock(),l.createBlock(dQg,{class:l.normalizeClass(["slider-modal__slide",{"slider-modal__slide_active":dC===i.defaultIndex}]),key:dC,"is-active":dC===i.defaultIndex,onClick:OC=>Rg(dC)},{default:l.withCtx(()=>[l.unref(Aa)(cI.path)?(l.openBlock(),l.createElementBlock("img",{key:0,class:"slider-modal__slide-image",src:cI.path,alt:cI.path,onError:BC},null,40,OQg)):l.unref(AA)(cI.path)||l.unref(AA)(cI.file)?(l.openBlock(),l.createBlock(Gs,{key:1,class:"slider-modal__slide-image",src:cI.path,page:1,file:cI.file},null,8,["src","file"])):l.unref(Yl)(cI.path)?(l.openBlock(),l.createBlock(Su,{key:2,class:"slider-modal__slide-image",src:cI.path},null,8,["src"])):K(cI)?(l.openBlock(),l.createElementBlock("div",UQg," ."+l.toDisplayString(Y(cI.path)),1)):(l.openBlock(),l.createElementBlock("img",{key:4,class:"slider-modal__slide-image",src:l.unref(rs)},null,8,EQg))]),_:2},1032,["class","is-active","onClick"]))),128))]),_:1},8,["active-index"]),l.createElementVNode("button",{class:"slider-modal__side-button",disabled:p.value,onClick:jI},[l.createVNode(Yg,{class:"slider-modal__icon",name:l.unref(rg).rightBig,width:24,height:24},null,8,["name"])],8,PQg)],64)):l.createCommentVNode("",!0)]),l.createElementVNode("div",_Qg,[l.createElementVNode("div",qQg,[l.createElementVNode("button",{class:"slider-modal__side-button slider-modal__side-button_zoom",disabled:O.value,onClick:gI},[l.createVNode(Yg,{class:"slider-modal__icon",name:l.unref(rg).zoomMinus,width:24,height:24},null,8,["name"])],8,$Qg),l.createElementVNode("button",{class:"slider-modal__side-button slider-modal__side-button_zoom",disabled:O.value,onClick:Vg},[l.createVNode(Yg,{class:"slider-modal__icon",name:l.unref(rg).zoomPlus,width:24,height:24},null,8,["name"])],8,gOg),l.createElementVNode("button",{class:"slider-modal__side-button",disabled:k.value,onClick:qg},[l.createVNode(Yg,{class:"slider-modal__icon",name:l.unref(rg).reset,width:24,height:24},null,8,["name"])],8,IOg)]),l.createElementVNode("div",COg,[l.createElementVNode("button",{class:"slider-modal__side-button",disabled:v.value,onClick:NC},[l.createVNode(Yg,{class:"slider-modal__icon",name:l.unref(rg).download,width:24,height:24},null,8,["name"])],8,eOg),l.createElementVNode("button",{class:"slider-modal__side-button slider-modal__side-button_printer",disabled:z.value,onClick:CC},[l.createVNode(Yg,{class:"slider-modal__icon",name:l.unref(rg).printer,width:24,height:24},null,8,["name"])],8,tOg)])])])],544)],512)]}),_:1},8,["open","height","width","animate-type"]))}}),[["__scopeId","data-v-b4a75386"]]),lOg=["data-testid"],sOg=["data-testid"],oOg=["data-testid"],aOg=["data-testid"],dOg=["data-testid"],ku=Qg(l.defineComponent({__name:"Loader",props:{title:{default:"Загрузка..."},dataTestid:{default:"Loader"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("div",{class:"loader","data-testid":g.dataTestid},[l.createElementVNode("div",{class:"loader__area","data-testid":`${g.dataTestid}-Area`},[l.createElementVNode("div",{class:"loader__circle loader__circle--light-blue","data-testid":`${g.dataTestid}-Loader-LightBlue1`},null,8,oOg),l.createElementVNode("div",{class:"loader__circle loader__circle--blue","data-testid":`${g.dataTestid}-Loader-LightBlue2`},null,8,aOg)],8,sOg),g.title?(l.openBlock(),l.createElementBlock("span",{key:0,class:"loader__span","data-testid":`${g.dataTestid}-Loader-Title`},l.toDisplayString(g.title),9,dOg)):l.createCommentVNode("",!0)],8,lOg))}}),[["__scopeId","data-v-74b091b5"]]),cOg=["data-testid"],mOg=["data-testid"],rOg=["disabled","data-testid"],ZOg=["data-testid"],bOg=["data-testid"],uOg=["src","data-testid"],hOg=["data-testid"],GOg=["data-testid"],wOg=["src"],WOg=["data-testid"],BOg=["data-testid"],pOg=["src","data-testid"],YOg=["data-testid"],yOg=["data-testid"],NOg=["disabled","data-testid"],GB="Ошибка загрузки файла",VOg=500,VX=Qg(l.defineComponent({__name:"Slider",props:{items:{},defaultIndex:{},dataTestid:{default:"Slider"}},setup(C,{expose:g}){const I=C,e=l.reactive({files:I.items.length?I.items:[],file:null,currentIndex:I.defaultIndex||0,extension:null,filePath:null,isShowSliderModal:!1,indexModal:0,isLoad:!1,isError:!1,errorText:null}),t=l.computed(()=>w(e.file)??""),i=l.computed(()=>Y(t.value)),A=l.computed(()=>e.files.reduce((U,T)=>{const q=w(T);return q&&U.push({path:q,name:T.name,file:T.file}),U},[])),n=l.computed(()=>!e.files.length||e.isError?!1:R(t.value)||X(t.value)||K(t.value)),s=()=>{e.isError=!1,e.isLoad=!1,e.errorText=null},o=()=>{e.isLoad=!0},a=async U=>{var cg;const T=t.value;e.isError=!0,e.isLoad=!0,e.errorText=h(U)??G((cg=e.file)==null?void 0:cg.path)??GB;const q=await p(T);T===t.value&&q&&(e.errorText=q)},d=U=>{if(!U)return;const T=w(U);if(!T)return;const q=A.value.findIndex(cg=>T===cg.path);q!==-1&&(e.indexModal=q,e.isShowSliderModal=!0)},m=()=>{e.isShowSliderModal=!1},Z=()=>{var U;return(U=I.items)!=null&&U.length?e.currentIndex===I.items.length-1:!0},u=U=>{if(typeof U!="string")return null;const T=U.trim();return T?T.slice(0,VOg):null},h=U=>{const T=u(U);if(T)return T;if(U instanceof Error)return u(U.message);if(!U||typeof U!="object")return null;const q=U;return u(q.error)??u(q.message)},G=U=>{const T=u(U);return T?T.toLowerCase()==="error"?GB:T.toLowerCase().startsWith("error:")?T.replace(/^error:\s*/i,"")||GB:null:h(U)},w=U=>typeof(U==null?void 0:U.path)!="string"||G(U.path)?null:U.path,B=U=>{const T=u(U);if(!T)return null;try{const q=JSON.parse(T);return h(q)??T}catch{return T}},p=async U=>{if(!U)return null;try{const T=await fetch(U),q=T.headers.get("content-type")??"",cg=q.includes("application/json")||q.startsWith("text/");if(T.ok&&!cg)return null;const og=await T.text();return B(og)??(T.ok?null:`${GB} (${T.status})`)}catch{return null}},Y=U=>{if(!U)return null;const T=U.split("?")[0],q=/\.\w+$/,cg=T.match(q);return cg?cg[0].replace(".",""):null},N=U=>(e.extension=Y(U),e.extension),R=U=>{const T=N(U);return T?Object.values(mu).includes(T.toLowerCase()):!1},X=U=>{const T=N(U);return T?Object.values(ru).includes(T):!1},K=U=>N(U)==="pdf",D=()=>{e.currentIndex--,e.file=e.files[e.currentIndex]},k=()=>{e.currentIndex++,e.file=e.files[e.currentIndex]},z=()=>e.files.length===0,v=()=>e.isError&&!!e.errorText,O=()=>!!t.value&&!!i.value&&R(t.value)==!1&&X(t.value)==!1&&K(t.value)==!1&&e.files.length>0&&!e.isError;return l.watch(()=>I.items,()=>{e.files=I.items,s()},{deep:!0}),l.watch(()=>e.file,()=>{var T;e.filePath=t.value||null,s();const U=G((T=e.file)==null?void 0:T.path);U&&(e.isError=!0,e.isLoad=!0,e.errorText=U)},{immediate:!0}),l.watch(()=>I.items,()=>{e.files=I.items.length?I.items:[]}),l.onMounted(()=>{if(!I.items)return 0;e.files=I.items,I.defaultIndex&&(e.file=e.files[e.currentIndex]),e.file=e.files[e.currentIndex]}),g({setSlide:U=>{U>=0&&U<e.files.length&&(e.currentIndex=U,e.file=e.files[e.currentIndex])}}),(U,T)=>(l.openBlock(),l.createElementBlock("div",{class:"slider-yui-kit","data-testid":I.dataTestid},[l.createElementVNode("div",{class:"slider-yui-kit__wrapper",ref:"slider-yui-kitWrapperRef","data-testid":`${I.dataTestid}-Wrapper`},[l.createElementVNode("button",{class:"slider-yui-kit__button slider-yui-kit__button--prev",onClick:D,disabled:e.currentIndex===0,"data-testid":`${I.dataTestid}-Prev-Button`},[l.createVNode(Yg,{name:l.unref(rg).leftBig,"data-testid":`${I.dataTestid}-Prev-Icon`},null,8,["name","data-testid"])],8,rOg),l.createElementVNode("div",{class:"slider-yui-kit__slides","data-testid":`${I.dataTestid}-Slides-Container`},[z()?(l.openBlock(),l.createElementBlock("div",{key:0,class:"placeholder-yui-kit no-content","data-testid":`${I.dataTestid}-NoContent-Placeholder`},[l.createElementVNode("img",{src:l.unref(rs),alt:"",width:"111px",height:"111px","data-testid":`${I.dataTestid}-NoContent-Image`},null,8,uOg),l.createElementVNode("p",{"data-testid":`${I.dataTestid}-NoContent-Paragrpah`}," Контент отсутствует ",8,hOg)],8,bOg)):v()?(l.openBlock(),l.createElementBlock("div",{key:1,class:"placeholder-yui-kit","data-testid":`${I.dataTestid}-Error-Placeholder`},[l.createElementVNode("img",{src:l.unref(rs),alt:"",width:"111px",height:"111px"},null,8,wOg),l.createElementVNode("p",{class:"slider-yui-kit__error-text","data-testid":`${I.dataTestid}-Error-Paragrpah`},l.toDisplayString(e.errorText),9,WOg)],8,GOg)):O()?(l.openBlock(),l.createElementBlock("div",{key:2,class:"slider-yui-kit__extension","data-testid":`${I.dataTestid}-Invalid-Extension-Placeholder`,onClick:T[0]||(T[0]=q=>d(e.file))},[l.createElementVNode("p",null,"."+l.toDisplayString(i.value),1)],8,BOg)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:3},[R(t.value)?(l.openBlock(),l.createElementBlock("img",{key:0,class:"slider__item",src:t.value,"data-testid":`${I.dataTestid}-Image`,onClick:T[1]||(T[1]=q=>d(e.file)),onError:a,onLoad:o},null,40,pOg)):X(t.value)?(l.openBlock(),l.createBlock(Su,{key:1,class:"slider__item slider__item_video",src:t.value,onClick:T[2]||(T[2]=q=>d(e.file)),onLoad:o,onError:a},null,8,["src"])):K(t.value)?(l.openBlock(),l.createBlock(Gs,{key:2,class:"slider-yui-kit__pdf-preview slider__item",src:t.value,onClick:T[3]||(T[3]=q=>d(e.file)),onLoad:o,onError:a},null,8,["src"])):(l.openBlock(),l.createElementBlock("div",{key:3,class:"placeholder-yui-kit no-content","data-testid":`${I.dataTestid}-NoContent-Placeholder`},[l.createElementVNode("p",{"data-testid":`${I.dataTestid}-NoContent-Paragrpah`}," Ошибка загрузки файла ",8,yOg)],8,YOg))],64)),!e.isLoad&&n.value&&!e.isError?(l.openBlock(),l.createBlock(ku,{key:4,class:"slider-yui-kit__loader"})):l.createCommentVNode("",!0)],8,ZOg),l.createElementVNode("button",{class:"slider-yui-kit__button slider-yui-kit__button--next",onClick:k,disabled:Z(),"data-testid":`${I.dataTestid}-Next-Button`},[l.createVNode(Yg,{name:l.unref(rg).rightBig,"data-testid":`${I.dataTestid}-Next-Icon`},null,8,["name","data-testid"])],8,NOg)],8,mOg),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(hB,{open:e.isShowSliderModal,items:A.value,"default-index":e.indexModal,onClose:m},null,8,["open","items","default-index"])]))],8,cOg))}}),[["__scopeId","data-v-589c935e"]]),XOg=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function ROg(C){return XOg.test(C)}function RF(){var C=URL.createObjectURL(new Blob),g=C.toString();return URL.revokeObjectURL(C),g.split(/[:\/]/g).pop().toLowerCase()}RF.valid=ROg;const MOg=(C="")=>C+RF();var Fu=(C=>(C.small="small",C.medium="medium",C.big="big",C.large="large",C))(Fu||{});const HOg=["disabled","data-testid"],fOg=["id","disabled","data-testid"],SOg=["for","data-testid"],DOg=l.defineComponent({__name:"Toggle",props:l.mergeModels({disabled:{type:Boolean,default:!1},backgroundColor:{},type:{default:Fu.small},dataTestid:{default:"Toggle"}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:l.mergeModels(["change"],["update:modelValue"]),setup(C,{emit:g}){const I=C,e=g,t=l.useModel(C,"modelValue"),i=MOg(),A=l.computed(()=>({"toggle-yui-kit":!0,"toggle-yui-kit_small":I.type===Fu.small,"toggle-yui-kit_medium":I.type===Fu.medium,"toggle-yui-kit_large":I.type===Fu.large})),n=l.computed(()=>({backgroundColor:I.backgroundColor})),s=()=>e("change",!!t.value);return(o,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(A.value),disabled:I.disabled,style:l.normalizeStyle(n.value),"data-testid":`${I.dataTestid}-Toggle`},[l.withDirectives(l.createElementVNode("input",{class:"toggle-yui-kit-input",id:l.unref(i),type:"checkbox",disabled:C.disabled,"onUpdate:modelValue":a[0]||(a[0]=d=>t.value=d),onChange:s,"data-testid":`${I.dataTestid}-Input`},null,40,fOg),[[l.vModelCheckbox,t.value]]),l.createElementVNode("label",{class:"toggle-yui-kit-label",for:l.unref(i),"data-testid":`${I.dataTestid}-Label`},null,8,SOg)],14,HOg))}}),wB=Qg(DOg,[["__scopeId","data-v-f9c2785e"]]);/*!
1614
1614
  * perfect-scrollbar v1.5.6
1615
1615
  * Copyright 2024 Hyunje Jun, MDBootstrap and Contributors
1616
1616
  * Licensed under MIT
1617
- */function yl(C){return getComputedStyle(C)}function Mi(C,g){for(var I in g){var e=g[I];typeof e=="number"&&(e=e+"px"),C.style[I]=e}return C}function WB(C){var g=document.createElement("div");return g.className=C,g}var MF=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function na(C,g){if(!MF)throw new Error("No element matching method supported");return MF.call(C,g)}function IZ(C){C.remove?C.remove():C.parentNode&&C.parentNode.removeChild(C)}function HF(C,g){return Array.prototype.filter.call(C.children,function(I){return na(I,g)})}var Me={main:"ps",rtl:"ps__rtl",element:{thumb:function(C){return"ps__thumb-"+C},rail:function(C){return"ps__rail-"+C},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(C){return"ps--active-"+C},scrolling:function(C){return"ps--scrolling-"+C}}},fF={x:null,y:null};function SF(C,g){var I=C.element.classList,e=Me.state.scrolling(g);I.contains(e)?clearTimeout(fF[g]):I.add(e)}function DF(C,g){fF[g]=setTimeout(function(){return C.isAlive&&C.element.classList.remove(Me.state.scrolling(g))},C.settings.scrollingThreshold)}function kOg(C,g){SF(C,g),DF(C,g)}var Ku=function(g){this.element=g,this.handlers={}},kF={isEmpty:{configurable:!0}};Ku.prototype.bind=function(g,I){typeof this.handlers[g]>"u"&&(this.handlers[g]=[]),this.handlers[g].push(I),this.element.addEventListener(g,I,!1)},Ku.prototype.unbind=function(g,I){var e=this;this.handlers[g]=this.handlers[g].filter(function(t){return I&&t!==I?!0:(e.element.removeEventListener(g,t,!1),!1)})},Ku.prototype.unbindAll=function(){for(var g in this.handlers)this.unbind(g)},kF.isEmpty.get=function(){var C=this;return Object.keys(this.handlers).every(function(g){return C.handlers[g].length===0})},Object.defineProperties(Ku.prototype,kF);var CZ=function(){this.eventElements=[]};CZ.prototype.eventElement=function(g){var I=this.eventElements.filter(function(e){return e.element===g})[0];return I||(I=new Ku(g),this.eventElements.push(I)),I},CZ.prototype.bind=function(g,I,e){this.eventElement(g).bind(I,e)},CZ.prototype.unbind=function(g,I,e){var t=this.eventElement(g);t.unbind(I,e),t.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(t),1)},CZ.prototype.unbindAll=function(){this.eventElements.forEach(function(g){return g.unbindAll()}),this.eventElements=[]},CZ.prototype.once=function(g,I,e){var t=this.eventElement(g),i=function(A){t.unbind(I,i),e(A)};t.bind(I,i)};function BB(C){if(typeof window.CustomEvent=="function")return new CustomEvent(C);var g=document.createEvent("CustomEvent");return g.initCustomEvent(C,!1,!1,void 0),g}function pB(C,g,I,e,t){e===void 0&&(e=!0),t===void 0&&(t=!1);var i;if(g==="top")i=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(g==="left")i=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");FOg(C,I,i,e,t)}function FOg(C,g,I,e,t){var i=I[0],A=I[1],n=I[2],s=I[3],o=I[4],a=I[5];e===void 0&&(e=!0),t===void 0&&(t=!1);var d=C.element;C.reach[s]=null,d[n]<1&&(C.reach[s]="start"),d[n]>C[i]-C[A]-1&&(C.reach[s]="end"),g&&(d.dispatchEvent(BB("ps-scroll-"+s)),g<0?d.dispatchEvent(BB("ps-scroll-"+o)):g>0&&d.dispatchEvent(BB("ps-scroll-"+a)),e&&kOg(C,s)),C.reach[s]&&(g||t)&&d.dispatchEvent(BB("ps-"+s+"-reach-"+C.reach[s]))}function ge(C){return parseInt(C,10)||0}function KOg(C){return na(C,"input,[contenteditable]")||na(C,"select,[contenteditable]")||na(C,"textarea,[contenteditable]")||na(C,"button,[contenteditable]")}function zOg(C){var g=yl(C);return ge(g.width)+ge(g.paddingLeft)+ge(g.paddingRight)+ge(g.borderLeftWidth)+ge(g.borderRightWidth)}var eZ={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 ws(C){var g=C.element,I=Math.floor(g.scrollTop),e=g.getBoundingClientRect();C.containerWidth=Math.floor(e.width),C.containerHeight=Math.floor(e.height),C.contentWidth=g.scrollWidth,C.contentHeight=g.scrollHeight,g.contains(C.scrollbarXRail)||(HF(g,Me.element.rail("x")).forEach(function(t){return IZ(t)}),g.appendChild(C.scrollbarXRail)),g.contains(C.scrollbarYRail)||(HF(g,Me.element.rail("y")).forEach(function(t){return IZ(t)}),g.appendChild(C.scrollbarYRail)),!C.settings.suppressScrollX&&C.containerWidth+C.settings.scrollXMarginOffset<C.contentWidth?(C.scrollbarXActive=!0,C.railXWidth=C.containerWidth-C.railXMarginWidth,C.railXRatio=C.containerWidth/C.railXWidth,C.scrollbarXWidth=FF(C,ge(C.railXWidth*C.containerWidth/C.contentWidth)),C.scrollbarXLeft=ge((C.negativeScrollAdjustment+g.scrollLeft)*(C.railXWidth-C.scrollbarXWidth)/(C.contentWidth-C.containerWidth))):C.scrollbarXActive=!1,!C.settings.suppressScrollY&&C.containerHeight+C.settings.scrollYMarginOffset<C.contentHeight?(C.scrollbarYActive=!0,C.railYHeight=C.containerHeight-C.railYMarginHeight,C.railYRatio=C.containerHeight/C.railYHeight,C.scrollbarYHeight=FF(C,ge(C.railYHeight*C.containerHeight/C.contentHeight)),C.scrollbarYTop=ge(I*(C.railYHeight-C.scrollbarYHeight)/(C.contentHeight-C.containerHeight))):C.scrollbarYActive=!1,C.scrollbarXLeft>=C.railXWidth-C.scrollbarXWidth&&(C.scrollbarXLeft=C.railXWidth-C.scrollbarXWidth),C.scrollbarYTop>=C.railYHeight-C.scrollbarYHeight&&(C.scrollbarYTop=C.railYHeight-C.scrollbarYHeight),JOg(g,C),C.scrollbarXActive?g.classList.add(Me.state.active("x")):(g.classList.remove(Me.state.active("x")),C.scrollbarXWidth=0,C.scrollbarXLeft=0,g.scrollLeft=C.isRtl===!0?C.contentWidth:0),C.scrollbarYActive?g.classList.add(Me.state.active("y")):(g.classList.remove(Me.state.active("y")),C.scrollbarYHeight=0,C.scrollbarYTop=0,g.scrollTop=0)}function FF(C,g){return C.settings.minScrollbarLength&&(g=Math.max(g,C.settings.minScrollbarLength)),C.settings.maxScrollbarLength&&(g=Math.min(g,C.settings.maxScrollbarLength)),g}function JOg(C,g){var I={width:g.railXWidth},e=Math.floor(C.scrollTop);g.isRtl?I.left=g.negativeScrollAdjustment+C.scrollLeft+g.containerWidth-g.contentWidth:I.left=C.scrollLeft,g.isScrollbarXUsingBottom?I.bottom=g.scrollbarXBottom-e:I.top=g.scrollbarXTop+e,Mi(g.scrollbarXRail,I);var t={top:e,height:g.railYHeight};g.isScrollbarYUsingRight?g.isRtl?t.right=g.contentWidth-(g.negativeScrollAdjustment+C.scrollLeft)-g.scrollbarYRight-g.scrollbarYOuterWidth-9:t.right=g.scrollbarYRight-C.scrollLeft:g.isRtl?t.left=g.negativeScrollAdjustment+C.scrollLeft+g.containerWidth*2-g.contentWidth-g.scrollbarYLeft-g.scrollbarYOuterWidth:t.left=g.scrollbarYLeft+C.scrollLeft,Mi(g.scrollbarYRail,t),Mi(g.scrollbarX,{left:g.scrollbarXLeft,width:g.scrollbarXWidth-g.railBorderXWidth}),Mi(g.scrollbarY,{top:g.scrollbarYTop,height:g.scrollbarYHeight-g.railBorderYWidth})}function xOg(C){C.event.bind(C.scrollbarY,"mousedown",function(g){return g.stopPropagation()}),C.event.bind(C.scrollbarYRail,"mousedown",function(g){var I=g.pageY-window.pageYOffset-C.scrollbarYRail.getBoundingClientRect().top,e=I>C.scrollbarYTop?1:-1;C.element.scrollTop+=e*C.containerHeight,ws(C),g.stopPropagation()}),C.event.bind(C.scrollbarX,"mousedown",function(g){return g.stopPropagation()}),C.event.bind(C.scrollbarXRail,"mousedown",function(g){var I=g.pageX-window.pageXOffset-C.scrollbarXRail.getBoundingClientRect().left,e=I>C.scrollbarXLeft?1:-1;C.element.scrollLeft+=e*C.containerWidth,ws(C),g.stopPropagation()})}var YB=null;function TOg(C){KF(C,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),KF(C,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])}function KF(C,g){var I=g[0],e=g[1],t=g[2],i=g[3],A=g[4],n=g[5],s=g[6],o=g[7],a=g[8],d=C.element,m=null,Z=null,u=null;function h(B){B.touches&&B.touches[0]&&(B[t]=B.touches[0]["page"+o.toUpperCase()]),YB===A&&(d[s]=m+u*(B[t]-Z),SF(C,o),ws(C),B.stopPropagation(),B.preventDefault())}function G(){DF(C,o),C[a].classList.remove(Me.state.clicking),document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",G),document.removeEventListener("touchmove",h),document.removeEventListener("touchend",G),YB=null}function w(B){YB===null&&(YB=A,m=d[s],B.touches&&(B[t]=B.touches[0]["page"+o.toUpperCase()]),Z=B[t],u=(C[e]-C[I])/(C[i]-C[n]),B.touches?(document.addEventListener("touchmove",h,{passive:!1}),document.addEventListener("touchend",G)):(document.addEventListener("mousemove",h),document.addEventListener("mouseup",G)),C[a].classList.add(Me.state.clicking)),B.stopPropagation(),B.cancelable&&B.preventDefault()}C[A].addEventListener("mousedown",w),C[A].addEventListener("touchstart",w)}function LOg(C){var g=C.element,I=function(){return na(g,":hover")},e=function(){return na(C.scrollbarX,":focus")||na(C.scrollbarY,":focus")};function t(i,A){var n=Math.floor(g.scrollTop);if(i===0){if(!C.scrollbarYActive)return!1;if(n===0&&A>0||n>=C.contentHeight-C.containerHeight&&A<0)return!C.settings.wheelPropagation}var s=g.scrollLeft;if(A===0){if(!C.scrollbarXActive)return!1;if(s===0&&i<0||s>=C.contentWidth-C.containerWidth&&i>0)return!C.settings.wheelPropagation}return!0}C.event.bind(C.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&!(!I()&&!e())){var A=document.activeElement?document.activeElement:C.ownerDocument.activeElement;if(A){if(A.tagName==="IFRAME")A=A.contentDocument.activeElement;else for(;A.shadowRoot;)A=A.shadowRoot.activeElement;if(KOg(A))return}var n=0,s=0;switch(i.which){case 37:i.metaKey?n=-C.contentWidth:i.altKey?n=-C.containerWidth:n=-30;break;case 38:i.metaKey?s=C.contentHeight:i.altKey?s=C.containerHeight:s=30;break;case 39:i.metaKey?n=C.contentWidth:i.altKey?n=C.containerWidth:n=30;break;case 40:i.metaKey?s=-C.contentHeight:i.altKey?s=-C.containerHeight:s=-30;break;case 32:i.shiftKey?s=C.containerHeight:s=-C.containerHeight;break;case 33:s=C.containerHeight;break;case 34:s=-C.containerHeight;break;case 36:s=C.contentHeight;break;case 35:s=-C.contentHeight;break;default:return}C.settings.suppressScrollX&&n!==0||C.settings.suppressScrollY&&s!==0||(g.scrollTop-=s,g.scrollLeft+=n,ws(C),t(n,s)&&i.preventDefault())}})}function vOg(C){var g=C.element;function I(A,n){var s=Math.floor(g.scrollTop),o=g.scrollTop===0,a=s+g.offsetHeight===g.scrollHeight,d=g.scrollLeft===0,m=g.scrollLeft+g.offsetWidth===g.scrollWidth,Z;return Math.abs(n)>Math.abs(A)?Z=o||a:Z=d||m,Z?!C.settings.wheelPropagation:!0}function e(A){var n=A.deltaX,s=-1*A.deltaY;return(typeof n>"u"||typeof s>"u")&&(n=-1*A.wheelDeltaX/6,s=A.wheelDeltaY/6),A.deltaMode&&A.deltaMode===1&&(n*=10,s*=10),n!==n&&s!==s&&(n=0,s=A.wheelDelta),A.shiftKey?[-s,-n]:[n,s]}function t(A,n,s){if(!eZ.isWebKit&&g.querySelector("select:focus"))return!0;if(!g.contains(A))return!1;for(var o=A;o&&o!==g;){if(o.classList.contains(Me.element.consuming))return!0;var a=yl(o);if(s&&a.overflowY.match(/(scroll|auto)/)){var d=o.scrollHeight-o.clientHeight;if(d>0&&(o.scrollTop>0&&s<0||o.scrollTop<d&&s>0))return!0}if(n&&a.overflowX.match(/(scroll|auto)/)){var m=o.scrollWidth-o.clientWidth;if(m>0&&(o.scrollLeft>0&&n<0||o.scrollLeft<m&&n>0))return!0}o=o.parentNode}return!1}function i(A){var n=e(A),s=n[0],o=n[1];if(!t(A.target,s,o)){var a=!1;C.settings.useBothWheelAxes?C.scrollbarYActive&&!C.scrollbarXActive?(o?g.scrollTop-=o*C.settings.wheelSpeed:g.scrollTop+=s*C.settings.wheelSpeed,a=!0):C.scrollbarXActive&&!C.scrollbarYActive&&(s?g.scrollLeft+=s*C.settings.wheelSpeed:g.scrollLeft-=o*C.settings.wheelSpeed,a=!0):(g.scrollTop-=o*C.settings.wheelSpeed,g.scrollLeft+=s*C.settings.wheelSpeed),ws(C),a=a||I(s,o),a&&!A.ctrlKey&&(A.stopPropagation(),A.preventDefault())}}typeof window.onwheel<"u"?C.event.bind(g,"wheel",i):typeof window.onmousewheel<"u"&&C.event.bind(g,"mousewheel",i)}function jOg(C){if(!eZ.supportsTouch&&!eZ.supportsIePointer)return;var g=C.element,I={startOffset:{},startTime:0,speed:{},easingLoop:null};function e(d,m){var Z=Math.floor(g.scrollTop),u=g.scrollLeft,h=Math.abs(d),G=Math.abs(m);if(G>h){if(m<0&&Z===C.contentHeight-C.containerHeight||m>0&&Z===0)return window.scrollY===0&&m>0&&eZ.isChrome}else if(h>G&&(d<0&&u===C.contentWidth-C.containerWidth||d>0&&u===0))return!0;return!0}function t(d,m){g.scrollTop-=m,g.scrollLeft-=d,ws(C)}function i(d){return d.targetTouches?d.targetTouches[0]:d}function A(d){return d.target===C.scrollbarX||d.target===C.scrollbarY||d.pointerType&&d.pointerType==="pen"&&d.buttons===0?!1:!!(d.targetTouches&&d.targetTouches.length===1||d.pointerType&&d.pointerType!=="mouse"&&d.pointerType!==d.MSPOINTER_TYPE_MOUSE)}function n(d){if(A(d)){var m=i(d);I.startOffset.pageX=m.pageX,I.startOffset.pageY=m.pageY,I.startTime=new Date().getTime(),I.easingLoop!==null&&clearInterval(I.easingLoop)}}function s(d,m,Z){if(!g.contains(d))return!1;for(var u=d;u&&u!==g;){if(u.classList.contains(Me.element.consuming))return!0;var h=yl(u);if(Z&&h.overflowY.match(/(scroll|auto)/)){var G=u.scrollHeight-u.clientHeight;if(G>0&&(u.scrollTop>0&&Z<0||u.scrollTop<G&&Z>0))return!0}if(m&&h.overflowX.match(/(scroll|auto)/)){var w=u.scrollWidth-u.clientWidth;if(w>0&&(u.scrollLeft>0&&m<0||u.scrollLeft<w&&m>0))return!0}u=u.parentNode}return!1}function o(d){if(A(d)){var m=i(d),Z={pageX:m.pageX,pageY:m.pageY},u=Z.pageX-I.startOffset.pageX,h=Z.pageY-I.startOffset.pageY;if(s(d.target,u,h))return;t(u,h),I.startOffset=Z;var G=new Date().getTime(),w=G-I.startTime;w>0&&(I.speed.x=u/w,I.speed.y=h/w,I.startTime=G),e(u,h)&&d.cancelable&&d.preventDefault()}}function a(){C.settings.swipeEasing&&(clearInterval(I.easingLoop),I.easingLoop=setInterval(function(){if(C.isInitialized){clearInterval(I.easingLoop);return}if(!I.speed.x&&!I.speed.y){clearInterval(I.easingLoop);return}if(Math.abs(I.speed.x)<.01&&Math.abs(I.speed.y)<.01){clearInterval(I.easingLoop);return}t(I.speed.x*30,I.speed.y*30),I.speed.x*=.8,I.speed.y*=.8},10))}eZ.supportsTouch?(C.event.bind(g,"touchstart",n),C.event.bind(g,"touchmove",o),C.event.bind(g,"touchend",a)):eZ.supportsIePointer&&(window.PointerEvent?(C.event.bind(g,"pointerdown",n),C.event.bind(g,"pointermove",o),C.event.bind(g,"pointerup",a)):window.MSPointerEvent&&(C.event.bind(g,"MSPointerDown",n),C.event.bind(g,"MSPointerMove",o),C.event.bind(g,"MSPointerUp",a)))}var QOg=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}},OOg={"click-rail":xOg,"drag-thumb":TOg,keyboard:LOg,wheel:vOg,touch:jOg},zu=function(g,I){var e=this;if(I===void 0&&(I={}),typeof g=="string"&&(g=document.querySelector(g)),!g||!g.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=g,g.classList.add(Me.main),this.settings=QOg();for(var t in I)this.settings[t]=I[t];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var i=function(){return g.classList.add(Me.state.focus)},A=function(){return g.classList.remove(Me.state.focus)};this.isRtl=yl(g).direction==="rtl",this.isRtl===!0&&g.classList.add(Me.rtl),this.isNegativeScroll=function(){var o=g.scrollLeft,a=null;return g.scrollLeft=-1,a=g.scrollLeft<0,g.scrollLeft=o,a}(),this.negativeScrollAdjustment=this.isNegativeScroll?g.scrollWidth-g.clientWidth:0,this.event=new CZ,this.ownerDocument=g.ownerDocument||document,this.scrollbarXRail=WB(Me.element.rail("x")),g.appendChild(this.scrollbarXRail),this.scrollbarX=WB(Me.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",i),this.event.bind(this.scrollbarX,"blur",A),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var n=yl(this.scrollbarXRail);this.scrollbarXBottom=parseInt(n.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=ge(n.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=ge(n.borderLeftWidth)+ge(n.borderRightWidth),Mi(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ge(n.marginLeft)+ge(n.marginRight),Mi(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=WB(Me.element.rail("y")),g.appendChild(this.scrollbarYRail),this.scrollbarY=WB(Me.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",i),this.event.bind(this.scrollbarY,"blur",A),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var s=yl(this.scrollbarYRail);this.scrollbarYRight=parseInt(s.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=ge(s.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?zOg(this.scrollbarY):null,this.railBorderYWidth=ge(s.borderTopWidth)+ge(s.borderBottomWidth),Mi(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ge(s.marginTop)+ge(s.marginBottom),Mi(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:g.scrollLeft<=0?"start":g.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:g.scrollTop<=0?"start":g.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(o){return OOg[o](e)}),this.lastScrollTop=Math.floor(g.scrollTop),this.lastScrollLeft=g.scrollLeft,this.event.bind(this.element,"scroll",function(o){return e.onScroll(o)}),ws(this)};zu.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Mi(this.scrollbarXRail,{display:"block"}),Mi(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=ge(yl(this.scrollbarXRail).marginLeft)+ge(yl(this.scrollbarXRail).marginRight),this.railYMarginHeight=ge(yl(this.scrollbarYRail).marginTop)+ge(yl(this.scrollbarYRail).marginBottom),Mi(this.scrollbarXRail,{display:"none"}),Mi(this.scrollbarYRail,{display:"none"}),ws(this),pB(this,"top",0,!1,!0),pB(this,"left",0,!1,!0),Mi(this.scrollbarXRail,{display:""}),Mi(this.scrollbarYRail,{display:""}))},zu.prototype.onScroll=function(g){this.isAlive&&(ws(this),pB(this,"top",this.element.scrollTop-this.lastScrollTop),pB(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},zu.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),IZ(this.scrollbarX),IZ(this.scrollbarY),IZ(this.scrollbarXRail),IZ(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},zu.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(g){return!g.match(/^ps([-_].+|)$/)}).join(" ")};const UOg=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(C,{expose:g,emit:I}){const e=C,t=I,i=l.ref(null),A=l.ref(null);l.watch(()=>e.options,()=>{s(),n()},{deep:!0}),l.onMounted(()=>{i.value&&n()}),l.onBeforeUnmount(()=>{s()});function n(){i.value&&(A.value=new zu(i.value,e.options),d())}function s(){A.value&&(d(!1),A.value.destroy(),A.value=null)}const o={scroll:a("scroll"),"ps-scroll-y":a("ps-scroll-y"),"ps-scroll-x":a("ps-scroll-x"),"ps-scroll-up":a("ps-scroll-up"),"ps-scroll-down":a("ps-scroll-down"),"ps-scroll-left":a("ps-scroll-left"),"ps-scroll-right":a("ps-scroll-right"),"ps-y-reach-start":a("ps-y-reach-start"),"ps-y-reach-end":a("ps-y-reach-end"),"ps-x-reach-start":a("ps-x-reach-start"),"ps-x-reach-end":a("ps-x-reach-end")};function a(m){return function(Z){t(m,Z)}}function d(m=!0){var Z;(Z=A.value)!=null&&Z.element&&Object.entries(o).forEach(([u,h])=>{var G,w;m?(G=A.value)==null||G.element.addEventListener(u,h):(w=A.value)==null||w.element.removeEventListener(u,h)})}return g({ps:A}),(m,Z)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(m.tag),{ref_key:"scrollbar",ref:i,class:"ps"},{default:l.withCtx(()=>[l.renderSlot(m.$slots,"default")]),_:3},512))}}),EOg=["data-testid"],XX=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(C,{expose:g,emit:I}){const e=C,t=l.ref(null),i=I,A=d=>{i("scroll",d)},n={attributes:!0,attributeFilter:["style"]},s=(d,m)=>Z=>{for(const u of Z)u.type==="attributes"&&u.attributeName==="style"&&d.style.right!==m&&(d.style.right=m)},o=()=>{var w,B,p,Y,N,R,X,K,D,k,z,v,O,Cg,U,T,q,cg,og,Wg,fg,Rg,Bg,kg;if(!t.value)return;const d=t.value.querySelector(".ps__thumb-y"),m=t.value.querySelector(".ps__thumb-x"),Z=t.value.querySelector(".ps__rail-y"),u=t.value.querySelector(".ps__rail-x");d.style.background=((B=(w=e.thrumbStyle)==null?void 0:w.y)==null?void 0:B.background)||"var(--primary-color)",d.style.width=((Y=(p=e.thrumbStyle)==null?void 0:p.y)==null?void 0:Y.width)||"6px",d.style.right="0px",m.style.background=((R=(N=e.thrumbStyle)==null?void 0:N.x)==null?void 0:R.background)||"var(--primary-color)",m.style.width=((K=(X=e.thrumbStyle)==null?void 0:X.x)==null?void 0:K.width)||"6px",m.style.right="0px",Z.style.background=((k=(D=e.railStyle)==null?void 0:D.y)==null?void 0:k.background)||"var(--button-neutral-color)",Z.style.width=((v=(z=e.thrumbStyle)==null?void 0:z.y)==null?void 0:v.width)||"6px",Z.style.right=((Cg=(O=e.railStyle)==null?void 0:O.y)==null?void 0:Cg.right)||"0px",u.style.background=((T=(U=e.railStyle)==null?void 0:U.x)==null?void 0:T.background)||"var(--button-neutral-color)",u.style.width=((cg=(q=e.thrumbStyle)==null?void 0:q.x)==null?void 0:cg.width)||"6px",u.style.right=((Wg=(og=e.railStyle)==null?void 0:og.x)==null?void 0:Wg.right)||"0px";const h=new MutationObserver(s(Z,((Rg=(fg=e.railStyle)==null?void 0:fg.y)==null?void 0:Rg.right)||"0px")),G=new MutationObserver(s(u,((kg=(Bg=e.railStyle)==null?void 0:Bg.x)==null?void 0:kg.right)||"0px"));h.observe(Z,n),G.observe(u,n)};return l.watch(()=>e,()=>{o()},{immediate:!0}),g({scrollToTop:()=>{t.value&&(t.value.children[0].scrollTop=0)}}),l.onMounted(()=>{o()}),(d,m)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"scrollbar",ref:t,"data-testid":e.dataTestid},[l.createVNode(l.unref(UOg),{onScroll:A,options:e.options,tag:e.tag,class:l.normalizeClass(e.class),style:l.normalizeStyle(e.style),"data-testid":`${e.dataTestid}-Scroll`,ref_key:"scrollbar",ref:t},{default:l.withCtx(()=>[l.renderSlot(d.$slots,"default")]),_:3},8,["options","tag","class","style","data-testid"])],8,EOg))}});var yB=(C=>(C.small="small",C.medium="medium",C.big="big",C))(yB||{}),NB=(C=>(C.circled="circled",C.rounded="rounded",C))(NB||{}),zF=(C=>(C.blue="blue",C.red="red",C))(zF||{});const POg=["data-testid","checked","disabled"],_Og=l.defineComponent({__name:"Checkbox",props:{size:{default:yB.medium},circular:{default:NB.rounded},color:{default:zF.blue},checked:{type:Boolean},modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestid:{default:"Checkbox"}},emits:["change","update:modelValue"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isChecked:I.modelValue});l.watchEffect(()=>{t.isChecked=I.modelValue});const i=()=>{t.isChecked=!t.isChecked,e("change",t.isChecked),e("update:modelValue",t.isChecked)};return(A,n)=>(l.openBlock(),l.createElementBlock("label",{class:l.normalizeClass(`label-checkbox checkbox-yui-kit_${I.size} checkbox-yui-kit_${I.circular} checkbox-yui-kit_${I.color}`)},[l.createElementVNode("input",{type:"checkbox",class:l.normalizeClass("checkbox-yui-kit "),"data-testid":`${I.dataTestid}`,tabindex:"0",onChange:i,checked:t.isChecked,disabled:I.disabled,onKeyup:l.withKeys(i,["enter"])},null,40,POg),l.createVNode(Yg,{class:"checkbox__icon",name:l.unref(rg).checked},null,8,["name"])],2))}}),RX=Qg(_Og,[["__scopeId","data-v-e79cdfc4"]]);var ZC=(C=>(C.profile="profile",C.theme="theme",C.options="options",C.exit="exit",C.qrAuth="qr-auth",C.downloadChat="download-chat",C.help="help",C))(ZC||{});const qOg=["data-testid"],$Og=["src","alt"],gUg={key:1,class:"avatar-yui-kit__fallback"},IUg=["src"],CUg={key:1,class:"avatar-yui-kit__text"},MX=new Set,HX=new Set,Ju=Qg(l.defineComponent({__name:"Avatar",props:{initials:{},url:{},isIcon:{type:Boolean},alt:{},defaultImage:{},isOnline:{type:Boolean},dataTestid:{}},setup(C){const g=C,I=l.ref(null),e=l.ref(!1),t=l.ref(!1),i=l.computed(()=>g.initials?g.initials.charAt(0).toUpperCase():""),A=["var(--error-color)","var(--orange4)","var(--green2)","var(--blue24)","var(--blue22)","var(--blue4)","var(--violet2)","var(--pink-color)"],n=l.computed(()=>{if(g.defaultImage)return"transparent";if(!i.value)return A[0];const d=i.value.charCodeAt(0);return A[d%A.length]}),s=l.computed(()=>!g.url||!e.value||t.value),o=()=>{g.url&&(MX.add(g.url),HX.delete(g.url)),e.value=!0,t.value=!1},a=()=>{g.url&&(HX.add(g.url),MX.delete(g.url)),t.value=!0,e.value=!1};return l.watch(()=>g.url,async d=>{var m;if(e.value=!1,t.value=!1,!!d){if(MX.has(d)){e.value=!0;return}if(HX.has(d)){t.value=!0;return}await l.nextTick(),(m=I.value)!=null&&m.complete&&I.value.naturalWidth>0&&(e.value=!0)}},{immediate:!0}),(d,m)=>(l.openBlock(),l.createElementBlock("div",{"data-testid":g.dataTestid,class:l.normalizeClass(["avatar-yui-kit",{"is-online":g.isOnline}]),style:l.normalizeStyle({backgroundColor:n.value})},[g.url?(l.openBlock(),l.createElementBlock("img",{key:0,ref_key:"imageRef",ref:I,src:g.url,alt:g.alt,class:l.normalizeClass(["avatar-yui-kit__image",{"is-visible":e.value}]),onLoad:o,onError:a},null,42,$Og)):l.createCommentVNode("",!0),s.value?(l.openBlock(),l.createElementBlock("div",gUg,[g.defaultImage?(l.openBlock(),l.createElementBlock("img",{key:0,src:g.defaultImage,class:"avatar-yui-kit__image avatar-yui-kit__image--default is-visible"},null,8,IUg)):(l.openBlock(),l.createElementBlock("div",CUg,l.toDisplayString(i.value),1))])):l.createCommentVNode("",!0)],14,qOg))}}),[["__scopeId","data-v-fa31dc83"]]),eUg=["data-testid"],tUg={class:"list-yui-kit__item-text"},iUg=Qg(l.defineComponent({__name:"MenuItem",props:{active:{type:Boolean},disabled:{type:Boolean},dataTestid:{},iconName:{},text:{},menuType:{}},emits:["click"],setup(C,{emit:g}){const I=g,e=()=>{C.disabled||I("click",C.menuType)};return(t,i)=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(["list-yui-kit__item",{"list-yui-kit__item--disabled":C.disabled,"list-yui-kit__item--active":C.active}]),onClick:e,"data-testid":C.dataTestid},[l.createVNode(Yg,{name:C.iconName},null,8,["name"]),l.createElementVNode("span",tUg,l.toDisplayString(C.text),1),l.renderSlot(t.$slots,"default",{},void 0,!0)],10,eUg))}}),[["__scopeId","data-v-3da3cf72"]]),AUg={class:"menu-yui-kit__list"},nUg={class:"list-yui-kit"},lUg=Qg(l.defineComponent({__name:"UserMenuList",props:{closeAfterClick:{type:Boolean},menuOpen:{type:Boolean},categories:{},texts:{},user:{},languages:{},isBlackTheme:{type:Boolean,default:!1},dataTestid:{default:"UserMenuList"}},emits:["click","unmount-qr-auth","theme-change","languageSwitch"],setup(C,{emit:g}){const I=C,e=g,t=l.ref(null),i=l.ref(I.isBlackTheme);l.watch(()=>I.menuOpen,m=>{m||(t.value=null)});const A=m=>{if(m===ZC.qrAuth){e("unmount-qr-auth");return}e("click",m),m===ZC.theme&&(i.value=!i.value,e("theme-change"))},n=m=>{e("languageSwitch",m)},s=()=>{e("theme-change")},o=m=>({[ZC.profile]:"Profile",[ZC.qrAuth]:"Auth with QR",[ZC.downloadChat]:"Auth with QR",[ZC.theme]:"Theme",[ZC.options]:"Settings",[ZC.exit]:"Log Out",[ZC.help]:"Help"})[m]??"",a=m=>({[ZC.profile]:rg.profile,[ZC.qrAuth]:rg.qrCode,[ZC.downloadChat]:rg.download,[ZC.theme]:rg.darkThemeSwitcher,[ZC.options]:rg.settings,[ZC.exit]:rg.logout,[ZC.help]:rg.help})[m]??rg.profile,d=m=>({[ZC.profile]:"Profile",[ZC.qrAuth]:"QR",[ZC.downloadChat]:"Chat",[ZC.theme]:"Theme",[ZC.options]:"Settings",[ZC.exit]:"Exit",[ZC.help]:"Help"})[m]??m;return(m,Z)=>{var u,h,G;return l.openBlock(),l.createElementBlock("div",AUg,[l.createElementVNode("ul",nUg,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.categories,w=>{var B;return l.openBlock(),l.createBlock(iUg,{key:w,"data-testid":`${I.dataTestid}-${d(w)}-Item`,iconName:a(w),text:((B=I.texts)==null?void 0:B[w])??o(w),menuType:w,active:t.value===w,onClick:()=>A(w)},{default:l.withCtx(()=>[w===l.unref(ZC).theme?(l.openBlock(),l.createBlock(wB,{key:0,modelValue:i.value,"onUpdate:modelValue":Z[0]||(Z[0]=p=>i.value=p),disabled:"",onChange:s},null,8,["modelValue"])):l.createCommentVNode("",!0)]),_:2},1032,["data-testid","iconName","text","menuType","active","onClick"])}),128))]),(u=I.languages)!=null&&u.items?(l.openBlock(),l.createBlock(Nw,{key:0,items:(h=I.languages)==null?void 0:h.items,theme:"contrast","default-value":(G=I.languages)==null?void 0:G.defaultValue,onChange:n,"data-testid":`${I.dataTestid}-Language-Switch`},null,8,["items","default-value","data-testid"])):l.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-971715e8"]]),sUg=["data-testid"],oUg={class:"menu-yui-kit__wrapper"},aUg={class:"menu-yui-kit__names"},dUg={class:"menu-yui-kit__name"},cUg={class:"menu-yui-kit__role"},mUg={key:0,class:"menu-yui-kit__dropdown"},fX=Qg(l.defineComponent({__name:"UserMenu",props:{closeAfterClick:{type:Boolean},menuOpen:{type:Boolean},categories:{},texts:{},user:{},languages:{},isBlackTheme:{type:Boolean},dataTestid:{default:"UserMenu"}},emits:["click","unmount-qr-auth","theme-change","languageSwitch"],setup(C,{emit:g}){const I=C,e=l.reactive({isShow:!1,isBlackTheme:I.isBlackTheme??!1}),t=g,i=l.computed(()=>({"menu-yui-kit__heading":!0,"active-yui-kit":e.isShow}));function A(Z){t("click",Z),Z!==ZC.theme&&I.closeAfterClick&&(e.isShow=!1)}const n=l.computed(()=>e.isShow?rg.chevronUp:rg.chevronDown),s=()=>{e.isShow=!e.isShow},o=()=>{e.isShow=!1};function a(){e.isBlackTheme=!e.isBlackTheme,t("theme-change",e.isBlackTheme)}const d=Z=>{I.closeAfterClick&&(e.isShow=!1),t("languageSwitch",Z)},m=()=>{I.closeAfterClick&&(e.isShow=!1),t("unmount-qr-auth")};return(Z,u)=>{var h,G,w;return l.openBlock(),l.createElementBlock("div",{class:"menu-yui-kit","data-testid":I.dataTestid},[l.withDirectives((l.openBlock(),l.createElementBlock("div",oUg,[l.createElementVNode("div",{class:l.normalizeClass(i.value),onClick:s},[l.createVNode(Ju,{class:"menu-yui-kit__avatar",url:(h=I.user)==null?void 0:h.avatar,alt:"user-avatar","data-testid":`${I.dataTestid}-Avatar`},null,8,["url","data-testid"]),l.createElementVNode("div",aUg,[l.createElementVNode("p",dUg,l.toDisplayString((G=I.user)==null?void 0:G.name),1),l.createElementVNode("p",cUg,l.toDisplayString((w=I.user)==null?void 0:w.role),1)]),l.createVNode(nI,{type:l.unref(II).ghost,class:"menu-yui-kit__button","data-testid":`${I.dataTestid}-Toggle`},{default:l.withCtx(()=>[l.createVNode(Yg,{class:"menu-yui-kit__button-icon",name:n.value},null,8,["name"])]),_:1},8,["type","data-testid"])],2),e.isShow?(l.openBlock(),l.createElementBlock("div",mUg,[l.createVNode(lUg,{"data-testid":`${I.dataTestid}-List`,"is-black-theme":e.isBlackTheme,"menu-open":e.isShow,languages:I.languages,categories:I.categories,texts:I.texts,onClick:A,onThemeChange:a,onLanguageSwitch:d,onUnmountQrAuth:m},null,8,["data-testid","is-black-theme","menu-open","languages","categories","texts"])])):l.createCommentVNode("",!0)])),[[l.unref(To),o,void 0,{bubble:!0}]])],8,sUg)}}}),[["__scopeId","data-v-07fdbf85"]]);var VB=(C=>(C.default="default",C.minor="minor",C))(VB||{});const rUg=["data-testid"],ZUg=["data-testid"],bUg=["data-testid"],uUg=["data-testid","placeholder","required","maxlength","readonly"],hUg=l.defineComponent({__name:"Textarea",props:{placeholder:{},inputMessage:{},required:{type:Boolean,default:!1},maxlength:{},modelValue:{default:""},readonly:{type:Boolean,default:!1},type:{default:VB.default},modelModifiers:{default:()=>({})},dataTestid:{default:"Textarea"}},emits:["update:modelValue"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isPressed:!1,inputElement:I.modelValue}),i=l.computed(()=>[{pressed:t.isPressed,readonly:I.readonly,[I.type]:!0}]),A=()=>{e("update:modelValue",t.inputElement)},n=()=>{I.readonly||(t.isPressed=!0)},s=()=>{t.isPressed=!1};return l.watch(()=>I.modelValue,o=>{t.inputElement=o}),(o,a)=>(l.openBlock(),l.createElementBlock("fieldset",{class:l.normalizeClass(["input-yui-kit",i.value]),onFocusout:s,"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,class:"input-yui-kit__star","data-testid":`${I.dataTestid}-Legend-Star`},"*",8,bUg)):l.createCommentVNode("",!0)],8,ZUg)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("textarea",{"onUpdate:modelValue":a[0]||(a[0]=d=>t.inputElement=d),onFocus:n,onInput:A,"data-testid":`${I.dataTestid}-Textarea`,class:"input-yui-kit__input",placeholder:I.placeholder,required:I.required,maxlength:I.maxlength,readonly:I.readonly},null,40,uUg),[[l.vModelText,t.inputElement]])],42,rUg))}}),SX=Qg(hUg,[["__scopeId","data-v-31570205"]]);var DX=(C=>(C.img="img",C.pdf="pdf",C.docx="docx",C))(DX||{});const GUg=["data-testid"],wUg=["data-testid"],WUg=["src","alt","data-testid"],BUg=["src","data-testid"],pUg=["data-testid"],YUg=["data-testid"],yUg=["data-testid"],kX=Qg(l.defineComponent({__name:"Picture",props:{type:{},alt:{},url:{},caption:{},dataTestid:{default:"Picture"}},setup(C){const g=C,I=l.reactive({isLoad:!1,isError:!1}),e=l.computed(()=>I.isError?!1:!g.url||!g.type||g.type==DX.img?!0:Er(g.url)),t=()=>{I.isLoad=!0},i=()=>{I.isError=!0},A=()=>{I.isLoad=!1,I.isError=!1};return l.watch(()=>g.url,()=>{A()}),(n,s)=>(l.openBlock(),l.createElementBlock("figure",{class:"picture-yui-kit","data-testid":g.dataTestid},[g.type==l.unref(DX).img?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("picture",{class:"picture-yui-kit__picture","data-testid":`${g.dataTestid}-Picture`},[!I.isError&&g.url?(l.openBlock(),l.createElementBlock("img",{key:0,class:"picture-yui-kit__picture_image",src:g.url,alt:g.alt,"data-testid":`${g.dataTestid}-Picture-Img`,onLoad:t,onError:i},null,40,WUg)):(l.openBlock(),l.createElementBlock("img",{key:1,src:l.unref(rs),alt:"not found",class:"picture-yui-kit__picture_image","data-testid":`${g.dataTestid}-Picture-Img`},null,8,BUg))],8,wUg),l.createElementVNode("figcaption",{class:"picture-yui-kit__picture__caption","data-testid":`${g.dataTestid}-Caption`},l.toDisplayString(g.caption),9,pUg)],64)):l.unref(Er)(g.url)?(l.openBlock(),l.createBlock(Gs,{key:1,class:"picture-yui-kit__picture_image",src:g.url,page:1,dataTestid:`${g.dataTestid}-PdfPreview`,onLoad:t},null,8,["src","dataTestid"])):(l.openBlock(),l.createElementBlock("div",{key:2,class:"picture-yui-kit__caption","data-testid":`${g.dataTestid}-Caption-Box`},[l.createElementVNode("h4",{class:"picture-yui-kit__caption__title","data-testid":`${g.dataTestid}-Caption-Title`},l.toDisplayString(g.caption),9,yUg)],8,YUg)),!I.isLoad&&e.value?(l.openBlock(),l.createBlock(ku,{key:3,class:"picture-yui-kit__loader"})):l.createCommentVNode("",!0)],8,GUg))}}),[["__scopeId","data-v-2d2ca4d2"]]);var XB=(C=>(C.success="success",C.warning="warning",C.error="error",C.info="info",C))(XB||{}),JF=(C=>(C.success="Успешно",C.warning="Предупреждение",C.error="Ошибка",C.info="Уведомление",C))(JF||{}),xF=(C=>(C[C.success=rg.checkbox]="success",C[C.warning=rg.alertTriangle]="warning",C[C.error=rg.exitCircle]="error",C[C.info=rg.info]="info",C))(xF||{});const NUg=["id","data-testid"],VUg=["data-testid"],XUg=["data-testid"],RUg=["data-testid"],MUg=["data-testid"],HUg=l.defineComponent({__name:"Notification",props:{type:{default:XB.info},title:{},pushKey:{},description:{default:""},timeout:{default:3},showPopover:{type:Boolean,default:!0},dataTestid:{default:"Notification"}},emits:["close"],setup(C,{expose:g,emit:I}){const e=C,t=I,i=l.ref(null);hg(i,"toggle",()=>{e.timeout>0&&setTimeout(()=>{var o;return(o=i.value)==null?void 0:o.hidePopover()},e.timeout*1e3)});const A=()=>(t("close"),"hide"),n=()=>{var o;(o=i.value)==null||o.showPopover()},s=l.reactive({message:{icon:xF[e.type],title:e.title||JF[e.type],description:e.description}});return l.onMounted(()=>{var o;e.showPopover&&((o=i.value)==null||o.showPopover())}),g({showPopover:n}),(o,a)=>(l.openBlock(),l.createElementBlock("div",{popover:"manual",id:e.pushKey.toString(),class:l.normalizeClass(`push-notification-yui-kit push-notification-yui-kit_${e.type}`),"data-testid":e.dataTestid,ref_key:"popover",ref:i},[l.createElementVNode("div",{class:"notification-yui-kit","data-testid":`${e.dataTestid}-Notification`},[l.createElementVNode("div",{class:"notification-yui-kit__block","data-testid":`${e.dataTestid}-Notification-Block`},[l.createVNode(Yg,{name:s.message.icon,class:"notification-yui-kit__block-icon","data-testid":`${e.dataTestid}-Notification-Icon`},null,8,["name","data-testid"]),l.createElementVNode("h4",{class:"notification-yui-kit__block-title","data-testid":`${e.dataTestid}-Notification-Title`},l.toDisplayString(s.message.title),9,RUg),l.createElementVNode("span",{class:"notification-yui-kit__block-text","data-testid":`${e.dataTestid}-Notification-Description`},l.toDisplayString(s.message.description),9,MUg)],8,XUg),l.createVNode(nI,{class:"notification-yui-kit__exit",type:l.unref(II).ghost,popovertarget:e.pushKey.toString(),popovertargetaction:A,"data-testid":`${e.dataTestid}-Notification-Button`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).crossSmall,"data-testid":`${e.dataTestid}-Notification-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","popovertarget","data-testid"])],8,VUg)],10,NUg))}}),FX=Qg(HUg,[["__scopeId","data-v-934d2cab"]]),KX=l.defineComponent({__name:"CopyIcon",props:{content:{default:""},dataTestid:{default:"CopyIcon"}},setup(C){const g=C,I=()=>{const e=g.content,t=document.createElement("textarea");t.value=e;const i=document.querySelectorAll("dialog[open]"),A=i.length?i[i.length-1]:null;A?A.append(t):document.body.append(t),t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),t.remove()};return(e,t)=>(l.openBlock(),l.createBlock(Yg,{class:"copy-icon-yui-kit",name:l.unref(rg).copy,"data-testid":g.dataTestid,onClick:I},null,8,["name","data-testid"]))}}),fUg=["data-testid"],SUg=["data-testid"],DUg=["data-testid"],kUg=["data-testid"],FUg=["data-testid"],KUg=["data-testid"],zUg=["data-testid"],JUg=["data-testid"],xUg=["data-testid"],TUg=["data-testid"],LUg=["data-testid"],vUg=["data-testid"],jUg=["data-testid"],QUg=["data-testid"],OUg=l.defineComponent({__name:"FilterTag",props:{title:{},iconName:{default:rg.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(C,{emit:g}){const I=C,e=l.reactive({isShow:!1,options:[]}),t=g,i=l.computed(()=>({"filter-yui-kit__wrapper":!0,"active-yui-kit":e.isShow})),A=()=>e.isShow=!e.isShow,n=()=>{e.isShow=!1},s=l.computed(()=>e.options.filter(Z=>Z.chose)),o=l.computed(()=>e.options.filter(Z=>!Z.chose)),a=Z=>{I.disallowNull&&Z.chose||(Z.chose=!Z.chose,I.multiply||(e.options=e.options.map(u=>({...u,chose:Z.value===u.value&&Z.chose}))),e.options.every(u=>u.chose)&&(e.options=e.options.map(u=>({...u,chose:!1}))),t("change",s.value.map(u=>u.value)),e.isShow=!1)},d=()=>{e.options=e.options.map(Z=>({...Z,chose:!1})),e.isShow=!1,t("change",[])},m=()=>{e.options=I.options.map(Z=>({...Z,chose:I.selectedValues.includes(Z.value)})),e.options.every(Z=>Z.chose)&&(e.options=e.options.map(Z=>({...Z,chose:!1})))};return l.watch(()=>[I.options,I.selectedValues],m),l.watch(()=>I.selectedValues,m),l.onMounted(m),(Z,u)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{class:"filter-yui-kit","data-testid":I.dataTestid},[l.createElementVNode("div",{class:l.normalizeClass(i.value),onClick:A,"data-testid":`${I.dataTestid}-Wrapper`},[I.iconName?(l.openBlock(),l.createBlock(Yg,{key:0,name:I.iconName,"data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"])):l.createCommentVNode("",!0),I.title?(l.openBlock(),l.createElementBlock("span",{key:1,"data-testid":`${I.dataTestid}-Title`},l.toDisplayString(I.title),9,DUg)):l.createCommentVNode("",!0),!s.value.length&&!I.disallowNull?(l.openBlock(),l.createBlock(Mt,{key:2,disabled:"",text:"Все","data-testid":`${I.dataTestid}-Badges-All`},null,8,["data-testid"])):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:3},l.renderList(s.value.filter((h,G)=>G<I.maxShowCount),(h,G)=>(l.openBlock(),l.createBlock(Mt,{key:h.value,type:h.type,disabled:"","data-testid":`${I.dataTestid}-Badges${G}`,text:h.label},null,8,["type","data-testid","text"]))),128)),I.maxShowCount<s.value.length?(l.openBlock(),l.createElementBlock("div",{key:4,class:"filter-yui-kit__counter","data-testid":`${I.dataTestid}-MaxShowCount-Counter`},[l.createTextVNode(" +"+l.toDisplayString(s.value.length-I.maxShowCount)+" ",1),l.createElementVNode("div",{class:"filter-yui-kit__counter-content","data-testid":`${I.dataTestid}-MaxShowCount-Content`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value.filter((h,G)=>G>=I.maxShowCount),(h,G)=>(l.openBlock(),l.createBlock(Mt,{key:h.value,type:h.type,disabled:"",text:h.label,"data-testid":`${I.dataTestid}-MaxShow-Badges${G}`},null,8,["type","text","data-testid"]))),128))],8,FUg)],8,kUg)):l.createCommentVNode("",!0),I.showClearButton&&s.value.length>0?(l.openBlock(),l.createElementBlock("button",{key:5,type:"button",class:"filter-yui-kit__close",onClick:l.withModifiers(d,["stop"]),"data-testid":`${I.dataTestid}-Filter-CloseButton`},[l.createVNode(Yg,{name:l.unref(rg).crossSmall,"data-testid":`${I.dataTestid}-CloseButton-Icon`},null,8,["name","data-testid"])],8,KUg)):l.createCommentVNode("",!0)],10,SUg),e.isShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter-yui-kit__select-wrapper","data-testid":`${I.dataTestid}-Select-Wrapper`},[l.createElementVNode("ul",{class:"filter-yui-kit__select-list selected-yui-kit","data-testid":`${I.dataTestid}-Select-List`},[s.value.length?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("li",{key:0,class:"filter-yui-kit__select-item","data-testid":`${I.dataTestid}-Select-Item`},[l.createVNode(Mt,{disabled:"",text:"Все","data-testid":`${I.dataTestid}-Select-Badges`},null,8,["data-testid"])],8,xUg)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value,(h,G)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:h.value,"data-testid":`${I.dataTestid}-Select-Item${G}`},[l.createVNode(Mt,{disabled:!0,choosed:!I.disallowNull&&h.chose,type:h.type,onClick:w=>a(h),text:h.label,"data-testid":`${I.dataTestid}-Select-Badges${G}`},null,8,["choosed","type","onClick","text","data-testid"])],8,TUg))),128))],8,JUg),l.createElementVNode("div",{class:"filter-yui-kit__select__divider","data-testid":`${I.dataTestid}-Select-Divider`},null,8,LUg),e.isShow?(l.openBlock(),l.createElementBlock("ul",{key:0,class:"filter-yui-kit__select-list","data-testid":`${I.dataTestid}-Select-List`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,(h,G)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:h.value,"data-testid":`${I.dataTestid}-Select-List${G}`},[l.createVNode(Mt,{disabled:!0,choosed:!1,type:h.type,text:h.label,"data-testid":`${I.dataTestid}-Select-Badges${G}`,onClick:w=>a(h)},null,8,["type","text","data-testid","onClick"])],8,jUg))),128)),C.disallowNull?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("li",{key:0,class:"filter-yui-kit__select-item","data-testid":`${I.dataTestid}-Select-Item`},[s.value.length?(l.openBlock(),l.createBlock(Mt,{key:0,disabled:"","data-testid":`${I.dataTestid}-Select-Badges`,text:"Все",onClick:d},null,8,["data-testid"])):l.createCommentVNode("",!0)],8,QUg))],8,vUg)):l.createCommentVNode("",!0)],8,zUg)):l.createCommentVNode("",!0)],8,fUg)),[[l.unref(To),n,void 0,{bubble:!0}]])}}),zX=Qg(OUg,[["__scopeId","data-v-e56b5a22"]]),UUg=["data-testid"],EUg=["data-testid"],PUg=["data-testid"],_Ug=["data-testid"],JX=Qg(l.defineComponent({__name:"CircularProgress",props:{percent:{},dataTestid:{default:"CircularProgress"}},setup(C){const g=C,I=()=>{const e=Math.min(Math.max(g.percent,0),100),t=e/100*360;if(e<=25)return`polygon(50% 50%, 50% 0%, calc(50% + 50% * cos(${t-90}deg)) 0,calc(50% + 50% * cos(${t-90}deg)) calc(50% + 50% * sin(${t-90}deg)), 50% 50%)`;if(e<=50)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% calc(50% + 50% * sin(${t-90}deg)), calc(50% + 50% * cos(${t-90}deg)) calc(50% + 50% * sin(${t-90}deg)), 50% 50%)`;if(e<=75)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%,
1618
- calc(50% + 50% * cos(${t-90}deg)) 100%, calc(50% + 50% * cos(${t-90}deg)) calc(50% + 50% * sin(${t-90}deg)), 50% 50%)`;if(e<=100)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%,0% 100%, 0% calc(50% + 50% * sin(${t-90}deg)), 50% 50%)`};return(e,t)=>g.percent<100?(l.openBlock(),l.createElementBlock("div",{key:0,class:"pie-chart","data-testid":`${g.dataTestid}-PieChart`},[l.createElementVNode("div",{class:"pie-chart-border",style:l.normalizeStyle({"border-color":g.percent<50?"var(--error-light-color)":"var(--orange-color)"}),"data-testid":`${g.dataTestid}-PieChart-Border`},[l.createElementVNode("div",{class:"sector",style:l.normalizeStyle({clipPath:I(),"background-color":g.percent<50?"var(--error-light-color)":"var(--orange-color)"}),"data-testid":`${g.dataTestid}-PieChart-Sector`},null,12,PUg)],12,EUg)],8,UUg)):(l.openBlock(),l.createElementBlock("svg",{key:1,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","data-testid":`${g.dataTestid}-Icon`,xmlns:"http://www.w3.org/2000/svg"},[...t[0]||(t[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,_Ug))}}),[["__scopeId","data-v-393c7314"]]),qUg=["data-testid","aria-label"],$Ug=["data-testid"],rt=Qg(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(C){const g=C,I=CSS.supports("top","anchor(bottom)"),e=l.useId(),t=l.computed(()=>`--anchor-tooltip-${e}`),i=l.ref(null),A=l.ref(null),n=l.reactive({isShow:!1}),s=l.computed(()=>g.isCanShow&&(g.isShow||n.isShow)),o=l.computed(()=>[{"tooltip-yui-kit__hint_show":s.value,"tooltip-yui-kit__hint_bottom-center":g.position==="bottom-center","tooltip-yui-kit__hint_bottom-left":g.position==="bottom-left","tooltip-yui-kit__hint_bottom-right":g.position==="bottom-right","tooltip-yui-kit__hint_top-center":g.position==="top-center","tooltip-yui-kit__hint_top-left":g.position==="top-left","tooltip-yui-kit__hint_top-right":g.position==="top-right","tooltip-yui-kit__hint_left-top":g.position==="left-top","tooltip-yui-kit__hint_left-center":g.position==="left-center","tooltip-yui-kit__hint_left-bottom":g.position==="left-bottom","tooltip-yui-kit__hint_right-top":g.position==="right-top","tooltip-yui-kit__hint_right-center":g.position==="right-center","tooltip-yui-kit__hint_right-bottom":g.position==="right-bottom","tooltip-yui-kit__hint_small":g.size==="small","tooltip-yui-kit__hint_medium":g.size==="medium","tooltip-yui-kit__hint_large":g.size==="large","tooltip-yui-kit__hint_black":g.type==="black","tooltip-yui-kit__hint_blue":g.type==="blue","tooltip-yui-kit__hint_white":g.type==="white",[g.hintClass]:!0}]),a=l.computed(()=>{var q;const T=(q=i.value)==null?void 0:q.closest("dialog");return T||"body"}),d=()=>{p()},m=()=>{Y()},Z=()=>{h()},u=l.computed(()=>g.isCanShow?{mouseenter:d,mouseleave:m}:{}),h=()=>{requestAnimationFrame(()=>{if(!i.value||!A.value||!s.value)return;const T={"--hint-top":"anchor(top)","--hint-left":"anchor(left)","--hint-measured-width":"0","--hint-height":"0","--tooltip-width":"0","--tooltip-height":"0","--hint-visibility":"visible"};I||(T["--hint-top"]="0",T["--hint-left"]="0");const q=i.value.getBoundingClientRect(),cg=A.value.getBoundingClientRect();let og=q.top,Wg=q.left;const fg=i.value.closest("dialog");if(fg){const gI=fg.getBoundingClientRect();og=q.top-gI.top,Wg=q.left-gI.left;const qg=fg.scrollTop,CC=fg.scrollLeft;og+=qg,Wg+=CC}const Rg=q.width,Bg=q.height,kg=cg.width,Vg=cg.height;I||(T["--hint-top"]=`${og}px`,T["--hint-left"]=`${Wg}px`),T["--tooltip-width"]=`${Rg}px`,T["--tooltip-height"]=`${Bg}px`,T["--hint-measured-width"]=`${kg}px`,T["--hint-height"]=`${Vg}px`,A.value&&OI(T,A.value)})},G=()=>{requestAnimationFrame(()=>{!A.value||g.hintGap===void 0||!s.value||OI({"--tooltip-hint-gap":g.hintGap+"px"},A.value)})},w=()=>{g.isCanShow&&s.value&&A.value&&(OI({"position-anchor":`${t.value}`},A.value),h())},B=()=>{!g.isCanShow||!i.value||OI({"anchor-name":`${t.value}`},i.value)};l.watch(()=>g.hintGap,()=>{s.value&&G()}),l.watch(()=>g.isCanShow,T=>{if(!T){Y(),O();return}l.nextTick(()=>{B(),s.value&&Cg()})});const p=()=>{g.isCanShow&&(n.isShow=!0)},Y=()=>{n.isShow=!1};let N=null,R=null,X=!1;const K=new Set,D=()=>(N||(N=new MutationObserver(()=>{s.value&&h()})),N),k=()=>(R||(R=new ResizeObserver(()=>{var T;if(s.value){if(!((T=i.value)!=null&&T.matches(":hover"))){Y();return}h()}})),R),z=()=>{I||X||(window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),X=!0)},v=()=>{X&&(window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h),X=!1)},O=()=>{R==null||R.disconnect(),N==null||N.disconnect(),K.clear(),v()},Cg=()=>{!g.isCanShow||!s.value||l.nextTick(()=>{!g.isCanShow||!s.value||(B(),w(),G(),A.value&&U(A.value),i.value&&U(i.value),z(),h())})},U=T=>{K.has(T)||(D().observe(T,{childList:!0,attributes:!0,characterData:!0}),k().observe(T),K.add(T))};return l.watch(s,T=>{if(T){Cg();return}O()},{flush:"post"}),l.onMounted(()=>{g.isCanShow&&(B(),s.value&&Cg())}),l.onUnmounted(()=>{O()}),(T,q)=>(l.openBlock(),l.createElementBlock("div",l.mergeProps({ref_key:"tooltipRef",ref:i,class:"tooltip-yui-kit","data-testid":g.dataTestid,"aria-label":C.hint},l.toHandlers(u.value,!0)),[l.renderSlot(T.$slots,"default",{},void 0,!0),g.isCanShow?(l.openBlock(),l.createBlock(l.Teleport,{key:0,to:a.value},[l.createVNode(l.Transition,{name:"hint-animate",onEnter:Z},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"hintRef",ref:A,class:l.normalizeClass(["tooltip-yui-kit__hint",o.value]),"data-testid":g.dataTestid},l.toDisplayString(C.hint),11,$Ug)):l.createCommentVNode("",!0)]),_:1})],8,["to"])):l.createCommentVNode("",!0)],16,qUg))}}),[["__scopeId","data-v-ce222868"]]),g7g=["data-testid"],I7g=["data-testid"],C7g=["data-testid"],e7g=["onClick","data-testid"],t7g=l.defineComponent({__name:"Popover",props:{isShow:{type:Boolean},iconName:{default:rg.moreVertical},options:{default:()=>[]},tooltip:{default:""},tooltipPosition:{default:"top-left"},isWCUse:{type:Boolean},translateY:{default:"0"},dataTestid:{default:"Popover"}},emits:["close"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isShow:!1}),i=l.computed(()=>{var K;const X=(K=o.value)==null?void 0:K.closest("dialog");return X||"body"}),A=CSS.supports("top","anchor(bottom)"),n=l.useId(),s=l.computed(()=>`--anchor-popover-${n}`),o=l.ref(null),a=l.ref(null),d=l.ref(null),m=l.computed(()=>({"popover-yui-kit__wrapper":!0,"active-yui-kit":t.isShow,"empty-yui-kit":I.options.length===0})),Z=()=>t.isShow=!t.isShow,u=()=>{t.isShow=!1,e("close")},h=X=>{X.function(),u()},G=()=>{requestAnimationFrame(()=>{if(!o.value||!a.value||!t.isShow)return;const X={},K=o.value.getBoundingClientRect(),D=window.pageYOffset||document.documentElement.scrollTop,k=window.pageXOffset||document.documentElement.scrollLeft;let z=K.bottom+D,v=K.left+k;const O=o.value.closest("dialog");if(O){const U=O.getBoundingClientRect();z=K.top-U.top,v=K.left-U.left;const T=O.scrollTop,q=O.scrollLeft;z+=T,v+=q,z+=10}z+=10,X["--popover-top"]=`${z}px`,A||(X["--popover-left"]=`${v}px`),OI(X,a.value),(()=>{if(!a.value)return;const U=a.value.getBoundingClientRect();U.right>window.innerWidth&&(A?X["--popover-right"]="anchor(right) ":X["--popover-right"]=`${K.right-U.width}px`)})(),X["--popover-right"]&&(X.left="auto",OI(X,a.value))})},w=X=>{const K=X.getBoundingClientRect(),D=document.elementFromPoint(K.left,K.top),k=document.elementFromPoint(K.right,K.bottom);!(D&&X.contains(D))&&!(k&&X.contains(k))&&u()},B=new IntersectionObserver(X=>{X.forEach(K=>{K.isIntersecting||u()})}),p=()=>{o.value&&a.value&&(window.addEventListener("scroll",G,!0),window.addEventListener("resize",G))},Y=()=>{o.value&&a.value&&(window.removeEventListener("scroll",G,!0),window.removeEventListener("resize",G))},N=()=>{o.value&&window.addEventListener("scroll",w.bind(null,o.value),!0)},R=()=>{o.value&&window.removeEventListener("scroll",w.bind(null,o.value),!0)};return l.watch(()=>I.isShow,()=>t.isShow=I.isShow),l.watch(()=>t.isShow,()=>{t.isShow?(G(),N()):R(),!A&&(t.isShow?p():Y())}),l.onMounted(()=>{o.value&&OI({"anchor-name":`${s.value}`},o.value),a.value&&OI({"position-anchor":`${s.value}`},a.value),d.value&&B.observe(d.value),A||G()}),l.onUnmounted(()=>{B.disconnect(),R(),A||Y()}),(X,K)=>(l.openBlock(),l.createBlock(rt,{hint:I.tooltip,size:"small",type:"black",position:I.tooltipPosition,"data-testid":I.dataTestid,"is-can-show":!!I.tooltip&&!t.isShow&&I.options.length>0},{default:l.withCtx(()=>[l.withDirectives((l.openBlock(),l.createElementBlock("div",{class:"popover-yui-kit",ref_key:"popover",ref:d,"data-testid":`${I.dataTestid}-Popover`},[l.createElementVNode("div",{ref_key:"reference",ref:o,class:l.normalizeClass(m.value),"data-testid":`${I.dataTestid}-PopoverShow`,onClick:Z},[l.renderSlot(X.$slots,"trigger",{},()=>[l.createVNode(Yg,{class:"popover-yui-kit__icon",name:I.iconName,"data-testid":`${I.dataTestid}-PopoverShow-Icon`},null,8,["name","data-testid"])],!0)],10,I7g),(l.openBlock(),l.createBlock(l.Teleport,{to:i.value,disabled:I.isWCUse},[l.createVNode(l.Transition,{name:"popover-animate"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{class:"popover-yui-kit__content",style:l.normalizeStyle({transform:`translateY(${I.translateY})`}),ref_key:"floating",ref:a},[l.renderSlot(X.$slots,"default",{},()=>{var D;return[(D=I.options)!=null&&D.length?(l.openBlock(),l.createElementBlock("div",{key:0,class:"popover-yui-kit__options","data-testid":`${I.dataTestid}-PopoverShow-Options`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.options,(k,z)=>(l.openBlock(),l.createElementBlock("div",{class:"popover-yui-kit__options__item",key:z,style:l.normalizeStyle(k.style),onClick:l.withModifiers(v=>h(k),["stop"]),"data-testid":`${I.dataTestid}-Item${z}`},[k.iconName?(l.openBlock(),l.createBlock(Yg,{key:0,name:k.iconName,"data-testid":`${I.dataTestid}-Item${z}-Icon`},null,8,["name","data-testid"])):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(k.value),1)],12,e7g))),128))],8,C7g)):l.createCommentVNode("",!0)]},!0)],4),[[l.vShow,t.isShow]])]),_:3})],8,["to","disabled"]))],8,g7g)),[[l.unref(To),u,void 0,{bubble:!0}]])]),_:3},8,["hint","position","data-testid","is-can-show"]))}}),tZ=Qg(t7g,[["__scopeId","data-v-869ead7f"]]),i7g=["colspan","rowspan","data-testid"],iZ=Qg(l.defineComponent({name:"TableTh",__name:"TableTh",props:{colspan:{default:1},rowspan:{default:1},dataTestid:{default:"DataHeader"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("th",{colspan:C.colspan,rowspan:C.rowspan,"data-testid":g.dataTestid,class:"table-th"},[l.renderSlot(I.$slots,"default",{},void 0,!0)],8,i7g))}}),[["__scopeId","data-v-a6ae3795"]]),A7g=["data-testid"],xu=Qg(l.defineComponent({name:"HeadTableRow",__name:"HeadTableRow",props:{dataTestid:{default:"TableRow"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("tr",{class:"head-table-row","data-testid":g.dataTestid},[l.renderSlot(I.$slots,"default",{},void 0,!0)],8,A7g))}}),[["__scopeId","data-v-b85bc9aa"]]),TF=(C,g,I,e)=>{const t=l.ref(!1),i=l.ref(100);let A=0,n=0;const s=l.computed(()=>[{"scroll-wrapper__track_hide":i.value===100,"scroll-wrapper__track_drag":t.value}]),o=l.computed(()=>i.value<100),a=()=>{if(C.value){const w=C.value.clientWidth,B=C.value.scrollWidth;return w>=B?100:w/B*100}return 100},d=()=>{if(!C.value||!g.value||!I.value||!e.value)return;const{scrollLeft:w,scrollWidth:B,clientWidth:p}=C.value,Y=B-p;if(Y<=0)return;const N=w/Y,R=e.value.clientWidth,X=I.value.clientWidth,K=R-X,D=N*K;requestAnimationFrame(()=>{g.value&&OI({"--scroll-bar-left-position":`${D}px`},g.value)})},m=w=>{!C.value||!g.value||(t.value=!0,A=w.clientX,n=C.value.scrollLeft,document.addEventListener("pointermove",Z),document.addEventListener("pointerup",u,!0))},Z=w=>{if(t.value&&C.value&&I.value){const B=w.clientX-A,p=(C.value.scrollWidth-C.value.clientWidth)/(C.value.clientWidth-I.value.clientWidth);C.value.scrollLeft=n+B*p,d()}},u=()=>{t.value=!1,document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",u,!0)};return{onDrag:Z,onTrackClick:w=>{if(C.value&&I.value){const B=w.currentTarget.getBoundingClientRect(),p=w.clientX-B.left,Y=I.value.clientWidth,N=B.width;let R=(p-Y/2)*((C.value.scrollWidth-C.value.clientWidth)/(N-Y));R=Math.max(0,Math.min(R,C.value.scrollWidth-C.value.clientWidth)),C.value.scrollLeft=R,d()}},startDrag:m,getPercentHorizontalView:a,changeBarPosition:d,isDragging:t,scrollHorizontalWidthPercent:i,setHorizontalBarWidth:()=>{if(!C.value||!g.value)return;const w=a();i.value=w,OI({"--scroll-horizontal-bar-width":`${w}%`},g.value)},horizontalTrackClass:s,isExistHorizontalTrack:o}},LF=(C,g,I,e)=>{const t=l.ref(!1),i=l.ref(100);let A=0,n=0;const s=l.computed(()=>[{"scroll-wrapper__track_hide":i.value===100,"scroll-wrapper__track_drag":t.value}]),o=l.computed(()=>i.value<100),a=()=>{if(C.value){const w=C.value.clientHeight,B=C.value.scrollHeight;if(w>=B)return 100;if(w<B)return w/B*100}return 100},d=()=>{if(!C.value||!g.value||!I.value||!e.value)return;const{scrollTop:w,scrollHeight:B,clientHeight:p}=C.value,Y=B-p;if(Y<=0)return;const N=w/Y,R=e.value.clientHeight,X=I.value.clientHeight,K=R-X,D=N*K;requestAnimationFrame(()=>{g.value&&OI({"--scroll-bar-top-postion":`${D}px`},g.value)})},m=w=>{!C.value||!g.value||(t.value=!0,A=w.clientY,n=C.value.scrollTop,document.addEventListener("pointermove",Z),document.addEventListener("pointerup",u))},Z=w=>{if(t.value&&C.value&&I.value){const B=w.clientY-A,p=(C.value.scrollHeight-C.value.clientHeight)/(C.value.clientHeight-I.value.clientHeight);C.value.scrollTop=n+B*p,d()}},u=()=>{t.value=!1,document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",u)};return{onDrag:Z,onTrackClick:w=>{if(C.value&&I.value){const B=w.currentTarget.getBoundingClientRect(),p=w.clientY-B.top,Y=I.value.clientHeight,N=B.height;let R=(p-Y/2)*((C.value.scrollHeight-C.value.clientHeight)/(N-Y));R=Math.max(0,Math.min(R,C.value.scrollHeight-C.value.clientHeight)),C.value.scrollTop=R,d()}},startDrag:m,getProcentVerticalView:a,changeBarPosition:d,isDragging:t,scrollVerticalHeightProcent:i,setVerticalBarHeight:()=>{if(!C.value||!g.value)return;const w=a();i.value=w,OI({"--scroll-vertical-bar-height":`${w}%`},g.value)},verticalTrackClass:s,isExistVerticalTrack:o}},n7g={class:"scroll-wrapper__vertical-wrapper"},l7g={class:"scroll-wrapper__horizont-wrapper"},Tu=Qg(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(C,{expose:g,emit:I}){const e=I,t=l.ref(null),i=l.ref(null),A=l.ref(null),n=l.ref(null),s=l.ref(null),o=l.ref(null),{onTrackClick:a,startDrag:d,changeBarPosition:m,setVerticalBarHeight:Z,verticalTrackClass:u,isExistVerticalTrack:h}=LF(t,i,n,A),{changeBarPosition:G,startDrag:w,onTrackClick:B,setHorizontalBarWidth:p,horizontalTrackClass:Y,isExistHorizontalTrack:N}=TF(t,i,o,s),R=T=>{m(),G(),e("unmount-scroll",T)},X=()=>{requestAnimationFrame(()=>{K(),D()})},K=()=>{if(!t.value||!i.value)return;const T=getComputedStyle(i.value),q=i.value.style.minHeight||T.minHeight,cg=i.value.style.maxHeight||T.maxHeight,og=i.value.style.height;OI({"--scroll-wrapper-height":`${og}`,"--scroll-wrapper-max-height":`${cg}`,"--scroll-wrapper-min-height":`${q}`},i.value)},D=()=>{Z(),p(),m(),G()},k=()=>{t.value&&t.value.addEventListener("scroll",R)},z=()=>{t.value&&(t.value.scrollTop=0)},v=()=>{t.value&&(t.value.scrollHeight<=t.value.clientHeight?e("unmount-paginate",!0):e("unmount-paginate",!1))},O=new MutationObserver(()=>{X(),v()}),Cg=new ResizeObserver(()=>{X(),v()}),U=T=>{O.observe(T,{childList:!0,subtree:!0,attributes:!0}),Cg.observe(T)};return g({scrollToTop:z,setHeightSlot:K,slotRef:t}),l.onMounted(()=>{X(),k(),i.value&&U(i.value),A.value&&U(A.value),window.addEventListener("resize",X),e("on-mounted")}),l.onUnmounted(()=>{window.removeEventListener("resize",X)}),(T,q)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"scrollWrapperRef",ref:i,class:"scroll-wrapper"},[l.createElementVNode("div",n7g,[l.createElementVNode("div",l7g,[l.createElementVNode("div",{ref_key:"slotRef",ref:t,class:"scroll-wrapper__slot"},[l.renderSlot(T.$slots,"default",{},void 0,!0)],512),l.unref(N)||C.isShowHorizontalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"horizontTrackRef",ref:s,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_horizont",l.unref(Y)]),onClick:q[1]||(q[1]=l.withModifiers((...cg)=>l.unref(B)&&l.unref(B)(...cg),["self","prevent","left"]))},[l.createElementVNode("div",{ref_key:"horizontBarRef",ref:o,class:"scroll-wrapper__bar",onPointerdown:q[0]||(q[0]=l.withModifiers((...cg)=>l.unref(w)&&l.unref(w)(...cg),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)]),l.unref(h)||C.isShowVerticalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"verticalTrackRef",ref:A,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_vertical",l.unref(u)]),onClick:q[3]||(q[3]=l.withModifiers((...cg)=>l.unref(a)&&l.unref(a)(...cg),["self","prevent","left"]))},[l.createElementVNode("div",{ref_key:"verticalBarRef",ref:n,class:"scroll-wrapper__bar",onPointerdown:q[2]||(q[2]=l.withModifiers((...cg)=>l.unref(d)&&l.unref(d)(...cg),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-5a7ca6f4"]]),s7g=["id","data-testid"],o7g=["id","data-testid"],a7g=["id","data-testid"],d7g={key:0,class:"table__error-wrapper"},c7g={class:"table__error-content"},m7g={class:"table__wrapper"},xX=Qg(l.defineComponent({name:"YTable",__name:"Table",props:{tableId:{},search:{},tbodyId:{},theadId:{},columnCount:{},isError:{type:Boolean,default:!1},onErrorHandler:{},errorLabel:{default:"Обновить таблицу"},dataTestid:{default:"Table"},isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate"],setup(C,{expose:g,emit:I}){var p;const e=C,t=I,i=l.reactive({headHeight:0,maxColumnCount:0}),A=l.ref(null),n=l.ref(null),s=l.ref(null),o=l.ref(null),a=l.ref(null),d=Y=>{e.isError||t("unmount-scroll",Y)},m=Y=>{e.isError||t("unmount-paginate",Y)},Z=()=>{if(!A.value||!a.value)return;const Y=A.value.querySelector("thead");if(!Y)return;const N=Y.getBoundingClientRect().height;i.headHeight=N,OI({"--scroll-track-margin-top":`${N}px`},a.value.$el)},u=()=>{a.value&&a.value.scrollToTop()},h=()=>{if(a.value&&o.value){const Y=getComputedStyle(a.value.$el),N=Number(Y.minHeight.replace(/\D/g,""));if(N&&N>0)return;OI({"min-height":`${i.headHeight+108}px`},a.value.$el)}},G=()=>{let Y=1;if(n.value){for(let N=0;N<n.value.children.length;N++)Y=Math.max(n.value.children[N].children.length,Y);i.maxColumnCount=Y}},w=new MutationObserver(()=>{G()}),B=new ResizeObserver(()=>{Z()});return g({scrollToTop:u,setHeightSlot:(p=a.value)==null?void 0:p.setHeightSlot,scrollWrapperRef:a,tbodyRef:s,tableRef:A,theadRef:n}),l.onMounted(()=>{Z(),G(),window.addEventListener("resize",Z),A.value&&B.observe(A.value),n.value&&w.observe(n.value,{childList:!0,subtree:!0}),h()}),(Y,N)=>(l.openBlock(),l.createBlock(Tu,{ref_key:"scrollWrapperRef",ref:a,class:"table",onUnmountScroll:d,onUnmountPaginate:m,"is-show-vertical-scroll":e.isShowVerticalScroll,"is-show-horizontal-scroll":e.isShowHorizontalScroll,"data-testid":`${e.dataTestid}-ScrollWrapper`},{default:l.withCtx(()=>[l.createElementVNode("table",{ref_key:"tableRef",ref:A,id:e.tableId,class:"table__table","data-testid":`${e.dataTestid}`},[l.renderSlot(Y.$slots,"default",{},()=>{var R;return[l.createElementVNode("colgroup",null,[l.renderSlot(Y.$slots,"colspan",{},void 0,!0)]),Y.$slots.head?(l.openBlock(),l.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:n,id:e.theadId,class:"table__head","data-testid":`${e.dataTestid}-Thead`},[l.renderSlot(Y.$slots,"head",{},void 0,!0),Y.$slots.search?(l.openBlock(),l.createBlock(xu,{key:0,class:"table__search-tr",id:(R=e.search)==null?void 0:R.rowId,ref_key:"searchRowRef",ref:o,"data-testid":`${e.dataTestid}-Search-Row`},{default:l.withCtx(()=>{var X;return[l.createVNode(iZ,{colspan:e.columnCount||i.maxColumnCount,class:"table__search-th",id:(X=e.search)==null?void 0:X.headId,"data-testid":`${e.dataTestid}-SearchRow-Search`},{default:l.withCtx(()=>[l.renderSlot(Y.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","id","data-testid"])]}),_:3},8,["id","data-testid"])):l.createCommentVNode("",!0)],8,o7g)):l.createCommentVNode("",!0),C.isError?l.createCommentVNode("",!0):l.renderSlot(Y.$slots,"body-group",{key:1},()=>[Y.$slots.body?(l.openBlock(),l.createElementBlock("tbody",{key:0,id:e.tbodyId,ref_key:"tbodyRef",ref:s,class:"table__body","data-testid":`${e.dataTestid}-Tbody`},[l.renderSlot(Y.$slots,"body",{},void 0,!0)],8,a7g)):l.createCommentVNode("",!0)],!0)]},!0)],8,s7g),e.isError?(l.openBlock(),l.createElementBlock("div",d7g,[l.createElementVNode("div",c7g,[l.createVNode(Yg,{class:"table__error-icon",width:112,height:100,name:l.unref(rg).tableError},null,8,["name"]),N[0]||(N[0]=l.createElementVNode("div",{class:"table__error-header"},"Таблица не загрузилась",-1)),N[1]||(N[1]=l.createElementVNode("div",{class:"table__error-text"}," Не удалось получить данные. Проверьте соединение с интернетом или попробуйте обновить таблицу ",-1))]),l.renderSlot(Y.$slots,"error-button",{},()=>[C.onErrorHandler?(l.openBlock(),l.createBlock(nI,{key:0,class:"table__error-button",size:l.unref(yI).small,onClick:C.onErrorHandler},{"left-icon":l.withCtx(()=>[l.createElementVNode("div",m7g,[l.createVNode(Yg,{name:l.unref(rg).rearrange,width:16,height:16},null,8,["name"])])]),default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(C.errorLabel),1)]),_:1},8,["size","onClick"])):l.createCommentVNode("",!0)],!0)])):l.createCommentVNode("",!0)]),_:3},8,["is-show-vertical-scroll","is-show-horizontal-scroll","data-testid"]))}}),[["__scopeId","data-v-c94c036d"]]),r7g=["rowspan","colspan","data-testid"],Lu=l.defineComponent({name:"TableTd",__name:"TableTd",props:{colspan:{default:1},rowspan:{default:1},dataTestid:{default:"DataCell"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("td",{rowspan:C.rowspan,colspan:C.colspan,class:"table-td","data-testid":g.dataTestid},[l.renderSlot(I.$slots,"default")],8,r7g))}}),Z7g={class:"skeleton"},RB=Qg(l.defineComponent({name:"Skeleton",__name:"Skeleton",setup(C){return(g,I)=>(l.openBlock(),l.createElementBlock("div",Z7g))}}),[["__scopeId","data-v-f0b64f04"]]),b7g=["data-testid"],MB=Qg(l.defineComponent({name:"TableRow",__name:"TableRow",props:{type:{default:"default"},isObserved:{type:Boolean,default:!1},observer:{},scrolledElement:{},dataTestid:{},colspan:{default:1},rowspan:{default:1}},setup(C){const g=C,I=l.reactive({isShow:!g.isObserved,observer:null}),e=l.ref(null),t=l.computed(()=>[{"table-row_active":g.type==="selected","table-row_is-stub":g.isObserved}]),i=()=>{const n=new IntersectionObserver(s=>{s.forEach(o=>{o.isIntersecting&&(I.isShow=!0,n.unobserve(o.target))})},{root:g.scrolledElement,rootMargin:"600px"});return n},A=()=>{g.isObserved&&e.value&&(I.observer=i(),I.observer.observe(e.value))};return l.watch(()=>g.scrolledElement,()=>{var n;(n=I.observer)==null||n.disconnect(),A()}),l.onMounted(()=>{A()}),l.onUnmounted(()=>{var n;(n=I.observer)==null||n.disconnect()}),(n,s)=>(l.openBlock(),l.createElementBlock("tr",{ref_key:"row",ref:e,class:l.normalizeClass(["table-row",t.value]),"data-testid":g.dataTestid},[I.isShow?l.renderSlot(n.$slots,"default",{key:0},void 0,!0):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[n.$slots.skeleton?l.renderSlot(n.$slots,"skeleton",{key:0},void 0,!0):(l.openBlock(),l.createBlock(Lu,{key:1,class:"table-row__td table-row__td_stub",colspan:g.colspan,rowspan:g.rowspan},{default:l.withCtx(()=>[l.createVNode(RB,{class:"table-row__skeleton"})]),_:1},8,["colspan","rowspan"]))],64))],10,b7g))}}),[["__scopeId","data-v-443e2f4b"]]),TX=Qg(l.defineComponent({name:"SectionTableRow",__name:"SectionTableRow",props:{colspan:{},dataTestid:{default:"SectionTableRow"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createBlock(MB,{class:"section-table-row","data-testid":g.dataTestid},{default:l.withCtx(()=>[l.createVNode(Lu,{colspan:C.colspan,class:"section-table-row__td","data-testid":`${g.dataTestid}-DataCell`},{default:l.withCtx(()=>[l.renderSlot(I.$slots,"default",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"]))}}),[["__scopeId","data-v-35b23188"]]),u7g=["disabled","name","value","data-testid"],LX=Qg(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(C){const g=C,I=l.useModel(C,"modelValue");return(e,t)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",{"onUpdate:modelValue":t[0]||(t[0]=i=>I.value=i),type:"radio",disabled:C.disabled,name:C.name,value:C.value,class:"radio","data-testid":g.dataTestid},null,8,u7g)),[[l.vModelRadio,I.value]])}}),[["__scopeId","data-v-43bb3ae4"]]),h7g=["data-testid"],G7g=["data-testid"],vF=Qg(l.defineComponent({name:"ChoosenMiniOptions",__name:"ChoosenMiniOptions",props:{options:{},dataTestid:{default:"ChoosenMiniOptions"}},emits:["remove"],setup(C,{emit:g}){const I=C,e=g,t=i=>{e("remove",i)};return(i,A)=>(l.openBlock(),l.createElementBlock("div",{class:"choosen-mini-options","data-testid":I.dataTestid},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(C.options,(n,s)=>(l.openBlock(),l.createElementBlock("div",{key:n.key,class:"choosen-mini-options__option","data-testid":`${I.dataTestid}-Option-Item${s}`},[l.createVNode(Mt,{"data-testid":`${I.dataTestid}-Badge${s}`,type:l.unref(UI).blue,text:l.unref(eN)(n)?n.hint:n.value,class:"choosen-mini-options__badges",disabled:""},null,8,["data-testid","type","text"]),l.createVNode(Yg,{"data-testid":`${I.dataTestid}-Icon${s}`,name:l.unref(rg).crossLarge,width:10,height:10,class:"choosen-mini-options__cross",onClick:o=>t(n.key)},null,8,["data-testid","name","onClick"])],8,G7g))),128))],8,h7g))}}),[["__scopeId","data-v-03762d05"]]),w7g=["data-testid"],W7g=["data-testid"],B7g=["data-testid"],p7g=["data-testid"],Y7g=["data-testid"],y7g=["data-testid"],vX=Qg(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},isUseAnchor:{type:Boolean,default:!0},isOpened:{type:Boolean,default:!1},tooltipPosition:{default:"top-center"},disabled:{type:Boolean,default:!1},onUnmountPagination:{},defaultOption:{default:"Выберите значение"},class:{},dataTestid:{default:"BaseFilter"}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["change","disabled-click","unmount-open","unmount-search","unmount-search-enter","unmount-pagination"],["update:modelValue"]),setup(C,{emit:g}){const I=C,e=l.reactive({isHovered:!1}),t=g,i=l.ref(null),A=l.ref(null),n=l.useModel(C,"modelValue"),s=l.ref(I.isOpened),o=l.computed(()=>[{filter_disabled:I.disabled},I.class]);l.watch(s,()=>{t("unmount-open",s.value),a.value=""}),l.watch(()=>I.isOpened,()=>{if(I.disabled){s.value=!1;return}s.value=I.isOpened}),l.watch(()=>I.onUnmountPagination,()=>{z()});const a=l.ref(""),d=l.computed(()=>{let v=[];return a.value?(jb(I.options)?v=I.options.filter(O=>{var Cg;return O.value.toLowerCase().includes(a.value.toLowerCase())||((Cg=O==null?void 0:O.hint)==null?void 0:Cg.toLowerCase().includes(a.value.toLowerCase()))}):v=I.options.filter(O=>O.value.toLowerCase().includes(a.value.toLowerCase())),v):(jb(I.options),v=I.options,v)}),m=l.computed(()=>{var O;return((O=I.options.find(Cg=>Gl.isArray(n.value)?n.value.includes(Cg.key):Cg.key===String(n.value)))==null?void 0:O.value)||I.defaultOption}),Z=l.computed(()=>I.options.filter(v=>Gl.isArray(n.value)?n.value.includes(v.key)&&v.value!==m.value:v.key===String(n.value))),u=l.computed(()=>I.options.filter(v=>Gl.isArray(n.value)?n.value.includes(v.key)&&v.value===m.value:v.key===String(n.value))),h=l.computed(()=>{var Cg,U,T;const v=I.options;let O;return Gl.isArray(n.value)?jb(v)?O=(Cg=v.find(q=>q.value===m.value))==null?void 0:Cg.hint:O=(U=v.find(q=>q.value===m.value))==null?void 0:U.value:O=(T=v.find(q=>q.key===String(n.value)))==null?void 0:T.value,O||""}),G=()=>{e.isHovered=!0},w=()=>{e.isHovered=!1},B=l.computed(()=>{var v;return jb(I.options)?e.isHovered&&!!h.value:((v=i.value)==null?void 0:v.isSpanOverflow)||!1}),p=l.computed(()=>Gl.isArray(n.value)?I.isPosibleToClear&&n.value.length>0:I.isPosibleToClear&&n.value),Y=l.computed(()=>Gl.isArray(n.value)&&n.value.length>1),N=l.computed(()=>Gl.isArray(n.value)?n.value.length:null),R=v=>{t("disabled-click",v)},X=async v=>{if(I.disabled){s.value=!1;return}if(Gl.isArray(n.value))n.value.includes(v)?n.value=n.value.filter(O=>O!==v):n.value=[...n.value,v];else{let O=I.options.find(Cg=>Cg.key===v);!O&&jb(I.options)&&(O=I.options.find(Cg=>Cg.hint===v)),n.value=(O==null?void 0:O.key)||"",s.value=!1}await l.nextTick(),t("change",String(n.value))},K=v=>{if(I.disabled){s.value=!1;return}s.value=v},D=async()=>{I.disabled||(Gl.isArray(n.value)?n.value=[]:n.value="",await l.nextTick(),t("change",n.value))},k=new IntersectionObserver(v=>{v.forEach(O=>{O.isIntersecting&&t("unmount-pagination")})}),z=()=>{A.value&&I.onUnmountPagination&&(k.unobserve(A.value),k.observe(A.value))};return l.onMounted(()=>{z()}),l.onUnmounted(()=>{k.disconnect()}),(v,O)=>(l.openBlock(),l.createBlock(Mr,{"header-classes":"filter__header","options-classes":"filter__options","is-opened":s.value,class:l.normalizeClass(["filter",o.value]),"is-use-anchor":C.isUseAnchor,"data-testid":I.dataTestid,disabled:C.disabled,onChange:K},l.createSlots({header:l.withCtx(()=>[l.renderSlot(v.$slots,"header",{},()=>[l.createElementVNode("span",{class:l.normalizeClass(["filter__header-title",{"filter__header-title__active":s.value}]),"data-testid":`${I.dataTestid}-Title`},l.toDisplayString(C.title),11,w7g),l.createVNode(rt,{position:C.tooltipPosition,type:"blue","is-can-show":B.value&&!(Y.value&&C.isShowMiniOptions),hint:h.value,class:"filter__header-tooltip","data-testid":`${I.dataTestid}-Tooltip`},{default:l.withCtx(()=>[l.createVNode(Mt,{ref_key:"badgesRef",ref:i,type:C.disabled?l.unref(UI).disabled:m.value===I.defaultOption?l.unref(UI).default:l.unref(UI).blue,class:"filter__options-badge","data-testid":`${I.dataTestid}-Badge`,text:m.value,onMouseenter:G,onMouseleave:w,disabled:""},null,8,["type","data-testid","text"]),Y.value&&C.isShowMiniOptions?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter__values","data-testid":`${I.dataTestid}-Filter-Value`},[l.createVNode(vF,{"data-testid":`${I.dataTestid}-Filter-Value-MiniOptions`,onClick:O[0]||(O[0]=l.withModifiers(()=>{},["stop"])),options:u.value,onRemove:X},null,8,["data-testid","options"])],8,W7g)):l.createCommentVNode("",!0)]),_:1},8,["position","is-can-show","hint","data-testid"]),N.value&&N.value>1?(l.openBlock(),l.createElementBlock("span",{key:0,class:"filter__count","data-testid":`${I.dataTestid}-Filter-Count`},[l.createTextVNode(" +"+l.toDisplayString(N.value-1)+" ",1),Y.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter__values","data-testid":`${I.dataTestid}-Filter-Values`},[l.createVNode(vF,{onClick:O[1]||(O[1]=l.withModifiers(()=>{},["stop"])),options:Z.value,onRemove:X,"data-testid":`${I.dataTestid}-MiniOptions`},null,8,["options","data-testid"])],8,p7g)):l.createCommentVNode("",!0)],8,B7g)):l.createCommentVNode("",!0),p.value?(l.openBlock(),l.createElementBlock("span",{key:1,class:"filter__cross",onClick:l.withModifiers(D,["stop"]),"data-testid":`${I.dataTestid}-Filter-Cross`},[l.createVNode(Yg,{name:l.unref(rg).crossLarge,width:16,height:16},null,8,["name"])],8,Y7g)):l.createCommentVNode("",!0)],!0)]),options:l.withCtx(()=>[C.isSearch?(l.openBlock(),l.createBlock(du,{key:0,modelValue:a.value,"onUpdate:modelValue":O[2]||(O[2]=Cg=>a.value=Cg),"show-history":!1,"data-testid":`${I.dataTestid}-Search`,onInput:O[3]||(O[3]=Cg=>v.$emit("unmount-search",Cg)),onEnter:O[4]||(O[4]=Cg=>v.$emit("unmount-search-enter",Cg))},null,8,["modelValue","data-testid"])):l.createCommentVNode("",!0),l.createVNode(tN,{"data-testid":`${I.dataTestid}-Options`,class:"filter__options-option",options:d.value,"default-option":m.value,onChange:X,onDisabledClick:R},{default:l.withCtx(()=>[l.createElementVNode("li",{class:"filter__options-underline","data-testid":`${I.dataTestid}-Underline`},[...O[5]||(O[5]=[l.createElementVNode("hr",{class:"filter__options-underline-hr"},null,-1)])],8,y7g)]),_:1},8,["data-testid","options","default-option"]),l.withDirectives(l.createElementVNode("div",{ref_key:"lastOptionRef",ref:A,class:"filter__last-option"},null,512),[[l.vShow,C.onUnmountPagination]])]),_:2},[v.$slots.body?{name:"body",fn:l.withCtx(Cg=>[l.renderSlot(v.$slots,"body",{closeOpenList:Cg.closeOpenList},void 0,!0)]),key:"0"}:void 0]),1032,["is-opened","class","is-use-anchor","data-testid","disabled"]))}}),[["__scopeId","data-v-be083c7b"]]),N7g=["data-testid"],HB=Qg(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(C,{emit:g}){const I=C,e=g,t=l.useModel(C,"modelValue"),i=l.ref(null);l.watch(t,()=>{n()});const A=()=>(t.value-I.min)/(I.max-I.min)*100,n=()=>{requestAnimationFrame(()=>{i.value&&OI({"--progress":A()+"%"},i.value)})},s=a=>{const d=a.target;d&&e("unmount-change",Number(d.value))},o=a=>{const d=a.target;d&&e("unmount-change",Number(d.value))};return l.onMounted(()=>{n()}),(a,d)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",l.mergeProps({ref_key:"input",ref:i,type:"range"},I,{class:"range","onUpdate:modelValue":d[0]||(d[0]=m=>t.value=m),onChange:s,onInput:o,"data-testid":I.dataTestid}),null,16,N7g)),[[l.vModelText,t.value]])}}),[["__scopeId","data-v-50ada1b8"]]),V7g=["id","data-testid"],X7g=["data-testid"],R7g=["data-testid"],jX=Qg(l.defineComponent({name:"TableNew",__name:"TableNew",props:{tableId:{},search:{},tbodyId:{},theadId:{},columnCount:{},isError:{type:Boolean},onErrorHandler:{},errorLabel:{},dataTestid:{default:"Table"},isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate"],setup(C,{expose:g,emit:I}){var B;const e=C,t=I,i=l.reactive({headHeight:0,maxColumnCount:0}),A=l.ref(null),n=l.ref(null),s=l.ref(null),o=l.ref(null),a=l.ref(null),d=p=>{t("unmount-scroll",p)},m=()=>{if(!A.value||!a.value)return;const p=A.value.querySelector("thead");if(!p)return;const Y=p.getBoundingClientRect().height;i.headHeight=Y,OI({"--scroll-track-margin-top":`${Y}px`},a.value.$el)},Z=()=>{a.value&&a.value.scrollToTop()},u=()=>{if(a.value&&o.value){const p=getComputedStyle(a.value.$el),Y=Number(p.minHeight.replace(/\D/g,""));if(Y&&Y>0)return;OI({"min-height":`${i.headHeight+108}px`},a.value.$el)}},h=()=>{let p=1;if(n.value){for(let Y=0;Y<n.value.children.length;Y++)p=Math.max(n.value.children[Y].children.length,p);i.maxColumnCount=p}},G=new MutationObserver(()=>{h()}),w=new ResizeObserver(()=>{m()});return g({scrollToTop:Z,setHeightSlot:(B=a.value)==null?void 0:B.setHeightSlot,tbodyRef:s,tableRef:A,theadRef:n}),l.onMounted(()=>{m(),h(),window.addEventListener("resize",m),A.value&&w.observe(A.value),n.value&&G.observe(n.value,{childList:!0,subtree:!0}),u()}),(p,Y)=>(l.openBlock(),l.createBlock(Tu,{ref_key:"scrollWrapperRef",ref:a,class:"table",onUnmountScroll:d,"is-show-vertical-scroll":e.isShowVerticalScroll,"is-show-horizontal-scroll":e.isShowHorizontalScroll,"data-testid":`${e.dataTestid}-ScrollWrapper`},{default:l.withCtx(()=>[l.createElementVNode("table",{ref_key:"tableRef",ref:A,id:e.tableId,class:"table__table","data-testid":`${e.dataTestid}`},[l.renderSlot(p.$slots,"default",{},()=>[l.createElementVNode("colgroup",null,[l.renderSlot(p.$slots,"colspan",{},void 0,!0)]),p.$slots.head?(l.openBlock(),l.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:n,class:"table__head","data-testid":`${e.dataTestid}-Thead`},[l.renderSlot(p.$slots,"head",{},void 0,!0),p.$slots.search?(l.openBlock(),l.createBlock(xu,{key:0,class:"table__search-tr",ref_key:"searchRowRef",ref:o,"data-testid":`${e.dataTestid}-Search-Row`},{default:l.withCtx(()=>[l.createVNode(iZ,{colspan:i.maxColumnCount,class:"table__search-th","data-testid":`${e.dataTestid}-SearchRow-Search`},{default:l.withCtx(()=>[l.renderSlot(p.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"])):l.createCommentVNode("",!0)],8,X7g)):l.createCommentVNode("",!0),l.renderSlot(p.$slots,"body-group",{},()=>[p.$slots.body?(l.openBlock(),l.createElementBlock("tbody",{key:0,ref_key:"tbodyRef",ref:s,class:"table__body","data-testid":`${e.dataTestid}-Tbody`},[l.renderSlot(p.$slots,"body",{},void 0,!0)],8,R7g)):l.createCommentVNode("",!0)],!0)],!0)],8,V7g)]),_:3},8,["is-show-vertical-scroll","is-show-horizontal-scroll","data-testid"]))}}),[["__scopeId","data-v-114a4670"]]),M7g=["data-testid"],QX=Qg(l.defineComponent({name:"TableRow",__name:"TableRowNew",props:{type:{default:"default"},isObserved:{type:Boolean},observer:{},scrolledElement:{},dataTestid:{},colspan:{default:1},rowspan:{}},setup(C){const g=C,I=l.computed(()=>[{"table-row_active":g.type==="selected"}]);return(e,t)=>(l.openBlock(),l.createElementBlock("tr",{class:l.normalizeClass(["table-row",I.value]),"data-testid":g.dataTestid},[l.renderSlot(e.$slots,"default",{},void 0,!0)],10,M7g))}}),[["__scopeId","data-v-7053fcd3"]]),H7g=["data-testid"],fB=Qg(l.defineComponent({name:"HeadTableRow",__name:"HeadTableRowNew",props:{dataTestid:{default:"TableRow"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("tr",{class:"head-table-row","data-testid":g.dataTestid},[l.renderSlot(I.$slots,"default",{},void 0,!0)],8,H7g))}}),[["__scopeId","data-v-3c1412bd"]]),f7g={class:"scroll-wrapper__vertical-wrapper"},S7g={class:"scroll-wrapper__horizont-wrapper"},D7g=Qg(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(C,{expose:g,emit:I}){const e=I,t=l.ref(null),i=l.ref(null),A=l.ref(null),n=l.ref(null),s=l.ref(null),o=l.ref(null),{onTrackClick:a,startDrag:d,changeBarPosition:m,setVerticalBarHeight:Z,verticalTrackClass:u,isExistVerticalTrack:h}=LF(t,i,n,A),{changeBarPosition:G,startDrag:w,onTrackClick:B,setHorizontalBarWidth:p,horizontalTrackClass:Y,isExistHorizontalTrack:N}=TF(t,i,o,s),R=U=>{m(),G(),e("unmount-scroll",U)},X=()=>{requestAnimationFrame(()=>{K(),D()})},K=()=>{if(!t.value||!i.value)return;const U=getComputedStyle(i.value),T=i.value.style.minHeight||U.minHeight,q=i.value.style.maxHeight||U.maxHeight,cg=i.value.style.height;OI({"--scroll-wrapper-height":`${cg}`,"--scroll-wrapper-max-height":`${q}`,"--scroll-wrapper-min-height":`${T}`},i.value)},D=()=>{Z(),p(),m(),G()},k=()=>{t.value&&t.value.addEventListener("scroll",R)},z=()=>{t.value&&(t.value.scrollTop=0)},v=new MutationObserver(()=>{X()}),O=new ResizeObserver(()=>{X()}),Cg=U=>{v.observe(U,{childList:!0,subtree:!0,attributes:!0}),O.observe(U)};return g({scrollToTop:z,setHeightSlot:K}),l.onMounted(()=>{X(),k(),i.value&&Cg(i.value),A.value&&Cg(A.value),window.addEventListener("resize",X),e("on-mounted")}),l.onUnmounted(()=>{window.removeEventListener("resize",X)}),(U,T)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"scrollWrapperRef",ref:i,class:"scroll-wrapper"},[l.createElementVNode("div",f7g,[l.createElementVNode("div",S7g,[l.createElementVNode("div",{ref_key:"slotRef",ref:t,class:"scroll-wrapper__slot"},[l.renderSlot(U.$slots,"default",{},void 0,!0)],512),l.unref(N)||C.isShowHorizontalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"horizontTrackRef",ref:s,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_horizont",l.unref(Y)]),onClick:T[1]||(T[1]=l.withModifiers((...q)=>l.unref(B)&&l.unref(B)(...q),["prevent","left"]))},[l.createElementVNode("div",{ref_key:"horizontBarRef",ref:o,class:"scroll-wrapper__bar",onMousedown:T[0]||(T[0]=l.withModifiers((...q)=>l.unref(w)&&l.unref(w)(...q),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)]),l.unref(h)||C.isShowVerticalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"verticalTrackRef",ref:A,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_vertical",l.unref(u)]),onClick:T[3]||(T[3]=l.withModifiers((...q)=>l.unref(a)&&l.unref(a)(...q),["prevent","left"]))},[l.createElementVNode("div",{ref_key:"verticalBarRef",ref:n,class:"scroll-wrapper__bar",onMousedown:T[2]||(T[2]=l.withModifiers((...q)=>l.unref(d)&&l.unref(d)(...q),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-47c0a1a0"]]),k7g=["data-testid"],F7g=["data-testid"],K7g=["data-testid"],OX=Qg(l.defineComponent({name:"TableSimple",__name:"TableSimple",props:{dataTestid:{default:"TableSimple"}},setup(C,{expose:g}){const I=C,e=l.ref(null),t=l.ref(null),i=l.ref(null),A=l.ref(null),n=l.computed(()=>{let s=1;if(t.value)for(let o=0;o<t.value.children.length;o++)s=Math.max(t.value.children[o].children.length,s);return s});return g({tbodyRef:i,tableRef:e,theadRef:t}),(s,o)=>(l.openBlock(),l.createElementBlock("table",{ref_key:"tableRef",ref:e,class:"simple-table-yui-kit","data-testid":`${I.dataTestid}`},[l.renderSlot(s.$slots,"default",{},()=>[l.renderSlot(s.$slots,"colspan",{},void 0,!0),s.$slots.head?(l.openBlock(),l.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:t,class:"simple-table-yui-kit__head","data-testid":`${I.dataTestid}-Thead`},[l.renderSlot(s.$slots,"head",{},void 0,!0),s.$slots.search?(l.openBlock(),l.createBlock(fB,{key:0,class:"table-new-yui-kit__search",ref_key:"searchRowRef",ref:A,"data-testid":`${I.dataTestid}-Search-Row`},{default:l.withCtx(()=>[l.createVNode(iZ,{colspan:n.value,class:"table-new-yui-kit__th","data-testid":`${I.dataTestid}-SearchRow-Search`},{default:l.withCtx(()=>[l.renderSlot(s.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"])):l.createCommentVNode("",!0)],8,F7g)):l.createCommentVNode("",!0),l.renderSlot(s.$slots,"body-group",{},()=>[s.$slots.body?(l.openBlock(),l.createElementBlock("tbody",{key:0,ref_key:"tbodyRef",ref:i,class:"simple-table-yui-kit__body","data-testid":`${I.dataTestid}-Tbody`},[l.renderSlot(s.$slots,"body",{},void 0,!0)],8,K7g)):l.createCommentVNode("",!0)],!0)],!0)],8,k7g))}}),[["__scopeId","data-v-f7852aab"]]),z7g=["data-testid"],J7g=["data-testid"],x7g=["onClick","data-testid"],T7g=["data-testid"],UX=Qg(l.defineComponent({name:"Tabs",__name:"Tabs",props:{defaultActiveTabId:{},tabCount:{},dataTestid:{default:"Tabs"}},emits:["unmount-tab"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({activeTab:1}),i=n=>Array.from({length:n},(s,o)=>o+1);l.watch(()=>I.defaultActiveTabId,()=>{I.defaultActiveTabId&&(t.activeTab=I.defaultActiveTabId)},{immediate:!0});const A=n=>{t.activeTab=n,e("unmount-tab",n)};return(n,s)=>(l.openBlock(),l.createElementBlock("div",{"data-testid":I.dataTestid,class:"tabs"},[l.createElementVNode("nav",{class:"tabs__navigation","data-testid":`${I.dataTestid}-Navigation`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i(I.tabCount),o=>(l.openBlock(),l.createElementBlock("button",{key:o,onClick:a=>A(o),class:l.normalizeClass(["tabs__navigation-button",{active:t.activeTab===o}]),"data-testid":`${I.dataTestid}-Navigation-Button`},[l.renderSlot(n.$slots,`header${o}`,{},void 0,!0)],10,x7g))),128))],8,J7g),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i(I.tabCount),o=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:o},[t.activeTab===o?(l.openBlock(),l.createElementBlock("article",{key:0,"data-testid":`${I.dataTestid}-Content`,class:"tabs__navigation-content"},[l.renderSlot(n.$slots,`tab${o}`,{},void 0,!0)],8,T7g)):l.createCommentVNode("",!0)],64))),128))],8,z7g))}}),[["__scopeId","data-v-298e57cf"]]);function Zt(C){this.content=C}Zt.prototype={constructor:Zt,find:function(C){for(var g=0;g<this.content.length;g+=2)if(this.content[g]===C)return g;return-1},get:function(C){var g=this.find(C);return g==-1?void 0:this.content[g+1]},update:function(C,g,I){var e=I&&I!=C?this.remove(I):this,t=e.find(C),i=e.content.slice();return t==-1?i.push(I||C,g):(i[t+1]=g,I&&(i[t]=I)),new Zt(i)},remove:function(C){var g=this.find(C);if(g==-1)return this;var I=this.content.slice();return I.splice(g,2),new Zt(I)},addToStart:function(C,g){return new Zt([C,g].concat(this.remove(C).content))},addToEnd:function(C,g){var I=this.remove(C).content.slice();return I.push(C,g),new Zt(I)},addBefore:function(C,g,I){var e=this.remove(g),t=e.content.slice(),i=e.find(C);return t.splice(i==-1?t.length:i,0,g,I),new Zt(t)},forEach:function(C){for(var g=0;g<this.content.length;g+=2)C(this.content[g],this.content[g+1])},prepend:function(C){return C=Zt.from(C),C.size?new Zt(C.content.concat(this.subtract(C).content)):this},append:function(C){return C=Zt.from(C),C.size?new Zt(this.subtract(C).content.concat(C.content)):this},subtract:function(C){var g=this;C=Zt.from(C);for(var I=0;I<C.content.length;I+=2)g=g.remove(C.content[I]);return g},toObject:function(){var C={};return this.forEach(function(g,I){C[g]=I}),C},get size(){return this.content.length>>1}},Zt.from=function(C){if(C instanceof Zt)return C;var g=[];if(C)for(var I in C)g.push(I,C[I]);return new Zt(g)};function jF(C,g,I){for(let e=0;;e++){if(e==C.childCount||e==g.childCount)return C.childCount==g.childCount?null:I;let t=C.child(e),i=g.child(e);if(t==i){I+=t.nodeSize;continue}if(!t.sameMarkup(i))return I;if(t.isText&&t.text!=i.text){let A=t.text,n=i.text,s=0;for(;A[s]==n[s];s++)I++;return s&&s<A.length&&s<n.length&&UF(A.charCodeAt(s-1))&&OF(A.charCodeAt(s))&&I--,I}if(t.content.size||i.content.size){let A=jF(t.content,i.content,I+1);if(A!=null)return A}I+=t.nodeSize}}function QF(C,g,I,e){for(let t=C.childCount,i=g.childCount;;){if(t==0||i==0)return t==i?null:{a:I,b:e};let A=C.child(--t),n=g.child(--i),s=A.nodeSize;if(A==n){I-=s,e-=s;continue}if(!A.sameMarkup(n))return{a:I,b:e};if(A.isText&&A.text!=n.text){let o=A.text,a=n.text,d=o.length,m=a.length;for(;d>0&&m>0&&o[d-1]==a[m-1];)d--,m--,I--,e--;return d&&m&&d<o.length&&UF(o.charCodeAt(d-1))&&OF(o.charCodeAt(d))&&(I++,e++),{a:I,b:e}}if(A.content.size||n.content.size){let o=QF(A.content,n.content,I-1,e-1);if(o)return o}I-=s,e-=s}}function OF(C){return C>=56320&&C<57344}function UF(C){return C>=55296&&C<56320}let Mg=class pi{constructor(g,I){if(this.content=g,this.size=I||0,I==null)for(let e=0;e<g.length;e++)this.size+=g[e].nodeSize}nodesBetween(g,I,e,t=0,i){for(let A=0,n=0;n<I;A++){let s=this.content[A],o=n+s.nodeSize;if(o>g&&e(s,t+n,i||null,A)!==!1&&s.content.size){let a=n+1;s.nodesBetween(Math.max(0,g-a),Math.min(s.content.size,I-a),e,t+a)}n=o}}descendants(g){this.nodesBetween(0,this.size,g)}textBetween(g,I,e,t){let i="",A=!0;return this.nodesBetween(g,I,(n,s)=>{let o=n.isText?n.text.slice(Math.max(g,s)-s,I-s):n.isLeaf?t?typeof t=="function"?t(n):t:n.type.spec.leafText?n.type.spec.leafText(n):"":"";n.isBlock&&(n.isLeaf&&o||n.isTextblock)&&e&&(A?A=!1:i+=e),i+=o},0),i}append(g){if(!g.size)return this;if(!this.size)return g;let I=this.lastChild,e=g.firstChild,t=this.content.slice(),i=0;for(I.isText&&I.sameMarkup(e)&&(t[t.length-1]=I.withText(I.text+e.text),i=1);i<g.content.length;i++)t.push(g.content[i]);return new pi(t,this.size+g.size)}cut(g,I=this.size){if(g==0&&I==this.size)return this;let e=[],t=0;if(I>g)for(let i=0,A=0;A<I;i++){let n=this.content[i],s=A+n.nodeSize;s>g&&((A<g||s>I)&&(n.isText?n=n.cut(Math.max(0,g-A),Math.min(n.text.length,I-A)):n=n.cut(Math.max(0,g-A-1),Math.min(n.content.size,I-A-1))),e.push(n),t+=n.nodeSize),A=s}return new pi(e,t)}cutByIndex(g,I){return g==I?pi.empty:g==0&&I==this.content.length?this:new pi(this.content.slice(g,I))}replaceChild(g,I){let e=this.content[g];if(e==I)return this;let t=this.content.slice(),i=this.size+I.nodeSize-e.nodeSize;return t[g]=I,new pi(t,i)}addToStart(g){return new pi([g].concat(this.content),this.size+g.nodeSize)}addToEnd(g){return new pi(this.content.concat(g),this.size+g.nodeSize)}eq(g){if(this.content.length!=g.content.length)return!1;for(let I=0;I<this.content.length;I++)if(!this.content[I].eq(g.content[I]))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(g){let I=this.content[g];if(!I)throw new RangeError("Index "+g+" out of range for "+this);return I}maybeChild(g){return this.content[g]||null}forEach(g){for(let I=0,e=0;I<this.content.length;I++){let t=this.content[I];g(t,e,I),e+=t.nodeSize}}findDiffStart(g,I=0){return jF(this,g,I)}findDiffEnd(g,I=this.size,e=g.size){return QF(this,g,I,e)}findIndex(g){if(g==0)return SB(0,g);if(g==this.size)return SB(this.content.length,g);if(g>this.size||g<0)throw new RangeError(`Position ${g} outside of fragment (${this})`);for(let I=0,e=0;;I++){let t=this.child(I),i=e+t.nodeSize;if(i>=g)return i==g?SB(I+1,i):SB(I,e);e=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(g=>g.toJSON()):null}static fromJSON(g,I){if(!I)return pi.empty;if(!Array.isArray(I))throw new RangeError("Invalid input for Fragment.fromJSON");return pi.fromArray(I.map(g.nodeFromJSON))}static fromArray(g){if(!g.length)return pi.empty;let I,e=0;for(let t=0;t<g.length;t++){let i=g[t];e+=i.nodeSize,t&&i.isText&&g[t-1].sameMarkup(i)?(I||(I=g.slice(0,t)),I[I.length-1]=i.withText(I[I.length-1].text+i.text)):I&&I.push(i)}return new pi(I||g,e)}static from(g){if(!g)return pi.empty;if(g instanceof pi)return g;if(Array.isArray(g))return this.fromArray(g);if(g.attrs)return new pi([g],g.nodeSize);throw new RangeError("Can not convert "+g+" to a Fragment"+(g.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};Mg.empty=new Mg([],0);const EX={index:0,offset:0};function SB(C,g){return EX.index=C,EX.offset=g,EX}function DB(C,g){if(C===g)return!0;if(!(C&&typeof C=="object")||!(g&&typeof g=="object"))return!1;let I=Array.isArray(C);if(Array.isArray(g)!=I)return!1;if(I){if(C.length!=g.length)return!1;for(let e=0;e<C.length;e++)if(!DB(C[e],g[e]))return!1}else{for(let e in C)if(!(e in g)||!DB(C[e],g[e]))return!1;for(let e in g)if(!(e in C))return!1}return!0}let YC=class XH{constructor(g,I){this.type=g,this.attrs=I}addToSet(g){let I,e=!1;for(let t=0;t<g.length;t++){let i=g[t];if(this.eq(i))return g;if(this.type.excludes(i.type))I||(I=g.slice(0,t));else{if(i.type.excludes(this.type))return g;!e&&i.type.rank>this.type.rank&&(I||(I=g.slice(0,t)),I.push(this),e=!0),I&&I.push(i)}}return I||(I=g.slice()),e||I.push(this),I}removeFromSet(g){for(let I=0;I<g.length;I++)if(this.eq(g[I]))return g.slice(0,I).concat(g.slice(I+1));return g}isInSet(g){for(let I=0;I<g.length;I++)if(this.eq(g[I]))return!0;return!1}eq(g){return this==g||this.type==g.type&&DB(this.attrs,g.attrs)}toJSON(){let g={type:this.type.name};for(let I in this.attrs){g.attrs=this.attrs;break}return g}static fromJSON(g,I){if(!I)throw new RangeError("Invalid input for Mark.fromJSON");let e=g.marks[I.type];if(!e)throw new RangeError(`There is no mark type ${I.type} in this schema`);let t=e.create(I.attrs);return e.checkAttrs(t.attrs),t}static sameSet(g,I){if(g==I)return!0;if(g.length!=I.length)return!1;for(let e=0;e<g.length;e++)if(!g[e].eq(I[e]))return!1;return!0}static setFrom(g){if(!g||Array.isArray(g)&&g.length==0)return XH.none;if(g instanceof XH)return[g];let I=g.slice();return I.sort((e,t)=>e.type.rank-t.type.rank),I}};YC.none=[];let vu=class extends Error{},vg=class Mb{constructor(g,I,e){this.content=g,this.openStart=I,this.openEnd=e}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(g,I){let e=PF(this.content,g+this.openStart,I,this.openStart+1,this.openEnd+1);return e&&new Mb(e,this.openStart,this.openEnd)}removeBetween(g,I){return new Mb(EF(this.content,g+this.openStart,I+this.openStart),this.openStart,this.openEnd)}eq(g){return this.content.eq(g.content)&&this.openStart==g.openStart&&this.openEnd==g.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let g={content:this.content.toJSON()};return this.openStart>0&&(g.openStart=this.openStart),this.openEnd>0&&(g.openEnd=this.openEnd),g}static fromJSON(g,I){if(!I)return Mb.empty;let e=I.openStart||0,t=I.openEnd||0;if(typeof e!="number"||typeof t!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Mb(Mg.fromJSON(g,I.content),e,t)}static maxOpen(g,I=!0){let e=0,t=0;for(let i=g.firstChild;i&&!i.isLeaf&&(I||!i.type.spec.isolating);i=i.firstChild)e++;for(let i=g.lastChild;i&&!i.isLeaf&&(I||!i.type.spec.isolating);i=i.lastChild)t++;return new Mb(g,e,t)}};vg.empty=new vg(Mg.empty,0,0);function EF(C,g,I){let{index:e,offset:t}=C.findIndex(g),i=C.maybeChild(e),{index:A,offset:n}=C.findIndex(I);if(t==g||i.isText){if(n!=I&&!C.child(A).isText)throw new RangeError("Removing non-flat range");return C.cut(0,g).append(C.cut(I))}if(e!=A)throw new RangeError("Removing non-flat range");return C.replaceChild(e,i.copy(EF(i.content,g-t-1,I-t-1)))}function PF(C,g,I,e,t,i){let{index:A,offset:n}=C.findIndex(g),s=C.maybeChild(A);if(n==g||s.isText)return i&&e<=0&&t<=0&&!i.canReplace(A,A,I)?null:C.cut(0,g).append(I).append(C.cut(g));let o=PF(s.content,g-n-1,I,A==0?e-1:0,A==C.childCount-1?t-1:0,s);return o&&C.replaceChild(A,s.copy(o))}function L7g(C,g,I){if(I.openStart>C.depth)throw new vu("Inserted content deeper than insertion position");if(C.depth-I.openStart!=g.depth-I.openEnd)throw new vu("Inconsistent open depths");return _F(C,g,I,0)}function _F(C,g,I,e){let t=C.index(e),i=C.node(e);if(t==g.index(e)&&e<C.depth-I.openStart){let A=_F(C,g,I,e+1);return i.copy(i.content.replaceChild(t,A))}else if(I.content.size)if(!I.openStart&&!I.openEnd&&C.depth==e&&g.depth==e){let A=C.parent,n=A.content;return Zc(A,n.cut(0,C.parentOffset).append(I.content).append(n.cut(g.parentOffset)))}else{let{start:A,end:n}=v7g(I,C);return Zc(i,$F(C,A,n,g,e))}else return Zc(i,kB(C,g,e))}function qF(C,g){if(!g.type.compatibleContent(C.type))throw new vu("Cannot join "+g.type.name+" onto "+C.type.name)}function PX(C,g,I){let e=C.node(I);return qF(e,g.node(I)),e}function rc(C,g){let I=g.length-1;I>=0&&C.isText&&C.sameMarkup(g[I])?g[I]=C.withText(g[I].text+C.text):g.push(C)}function ju(C,g,I,e){let t=(g||C).node(I),i=0,A=g?g.index(I):t.childCount;C&&(i=C.index(I),C.depth>I?i++:C.textOffset&&(rc(C.nodeAfter,e),i++));for(let n=i;n<A;n++)rc(t.child(n),e);g&&g.depth==I&&g.textOffset&&rc(g.nodeBefore,e)}function Zc(C,g){if(!C.type.validContent(g))throw new vu("Invalid content for node "+C.type.name);return C.copy(g)}function $F(C,g,I,e,t){let i=C.depth>t&&PX(C,g,t+1),A=e.depth>t&&PX(I,e,t+1),n=[];return ju(null,C,t,n),i&&A&&g.index(t)==I.index(t)?(qF(i,A),rc(Zc(i,$F(C,g,I,e,t+1)),n)):(i&&rc(Zc(i,kB(C,g,t+1)),n),ju(g,I,t,n),A&&rc(Zc(A,kB(I,e,t+1)),n)),ju(e,null,t,n),new Mg(n)}function kB(C,g,I){let e=[];if(ju(null,C,I,e),C.depth>I){let t=PX(C,g,I+1);rc(Zc(t,kB(C,g,I+1)),e)}return ju(g,null,I,e),new Mg(e)}function v7g(C,g){let I=g.depth-C.openStart,t=g.node(I).copy(C.content);for(let i=I-1;i>=0;i--)t=g.node(i).copy(Mg.from(t));return{start:t.resolveNoCache(C.openStart+I),end:t.resolveNoCache(t.content.size-C.openEnd-I)}}class Qu{constructor(g,I,e){this.pos=g,this.path=I,this.parentOffset=e,this.depth=I.length/3-1}resolveDepth(g){return g==null?this.depth:g<0?this.depth+g:g}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(g){return this.path[this.resolveDepth(g)*3]}index(g){return this.path[this.resolveDepth(g)*3+1]}indexAfter(g){return g=this.resolveDepth(g),this.index(g)+(g==this.depth&&!this.textOffset?0:1)}start(g){return g=this.resolveDepth(g),g==0?0:this.path[g*3-1]+1}end(g){return g=this.resolveDepth(g),this.start(g)+this.node(g).content.size}before(g){if(g=this.resolveDepth(g),!g)throw new RangeError("There is no position before the top-level node");return g==this.depth+1?this.pos:this.path[g*3-1]}after(g){if(g=this.resolveDepth(g),!g)throw new RangeError("There is no position after the top-level node");return g==this.depth+1?this.pos:this.path[g*3-1]+this.path[g*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let g=this.parent,I=this.index(this.depth);if(I==g.childCount)return null;let e=this.pos-this.path[this.path.length-1],t=g.child(I);return e?g.child(I).cut(e):t}get nodeBefore(){let g=this.index(this.depth),I=this.pos-this.path[this.path.length-1];return I?this.parent.child(g).cut(0,I):g==0?null:this.parent.child(g-1)}posAtIndex(g,I){I=this.resolveDepth(I);let e=this.path[I*3],t=I==0?0:this.path[I*3-1]+1;for(let i=0;i<g;i++)t+=e.child(i).nodeSize;return t}marks(){let g=this.parent,I=this.index();if(g.content.size==0)return YC.none;if(this.textOffset)return g.child(I).marks;let e=g.maybeChild(I-1),t=g.maybeChild(I);if(!e){let n=e;e=t,t=n}let i=e.marks;for(var A=0;A<i.length;A++)i[A].type.spec.inclusive===!1&&(!t||!i[A].isInSet(t.marks))&&(i=i[A--].removeFromSet(i));return i}marksAcross(g){let I=this.parent.maybeChild(this.index());if(!I||!I.isInline)return null;let e=I.marks,t=g.parent.maybeChild(g.index());for(var i=0;i<e.length;i++)e[i].type.spec.inclusive===!1&&(!t||!e[i].isInSet(t.marks))&&(e=e[i--].removeFromSet(e));return e}sharedDepth(g){for(let I=this.depth;I>0;I--)if(this.start(I)<=g&&this.end(I)>=g)return I;return 0}blockRange(g=this,I){if(g.pos<this.pos)return g.blockRange(this);for(let e=this.depth-(this.parent.inlineContent||this.pos==g.pos?1:0);e>=0;e--)if(g.pos<=this.end(e)&&(!I||I(this.node(e))))return new FB(this,g,e);return null}sameParent(g){return this.pos-this.parentOffset==g.pos-g.parentOffset}max(g){return g.pos>this.pos?g:this}min(g){return g.pos<this.pos?g:this}toString(){let g="";for(let I=1;I<=this.depth;I++)g+=(g?"/":"")+this.node(I).type.name+"_"+this.index(I-1);return g+":"+this.parentOffset}static resolve(g,I){if(!(I>=0&&I<=g.content.size))throw new RangeError("Position "+I+" out of range");let e=[],t=0,i=I;for(let A=g;;){let{index:n,offset:s}=A.content.findIndex(i),o=i-s;if(e.push(A,n,t+s),!o||(A=A.child(n),A.isText))break;i=o-1,t+=s+1}return new Qu(I,e,i)}static resolveCached(g,I){let e=gK.get(g);if(e)for(let i=0;i<e.elts.length;i++){let A=e.elts[i];if(A.pos==I)return A}else gK.set(g,e=new j7g);let t=e.elts[e.i]=Qu.resolve(g,I);return e.i=(e.i+1)%Q7g,t}}class j7g{constructor(){this.elts=[],this.i=0}}const Q7g=12,gK=new WeakMap;class FB{constructor(g,I,e){this.$from=g,this.$to=I,this.depth=e}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 O7g=Object.create(null);let la=class RH{constructor(g,I,e,t=YC.none){this.type=g,this.attrs=I,this.marks=t,this.content=e||Mg.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(g){return this.content.child(g)}maybeChild(g){return this.content.maybeChild(g)}forEach(g){this.content.forEach(g)}nodesBetween(g,I,e,t=0){this.content.nodesBetween(g,I,e,t,this)}descendants(g){this.nodesBetween(0,this.content.size,g)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(g,I,e,t){return this.content.textBetween(g,I,e,t)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(g){return this==g||this.sameMarkup(g)&&this.content.eq(g.content)}sameMarkup(g){return this.hasMarkup(g.type,g.attrs,g.marks)}hasMarkup(g,I,e){return this.type==g&&DB(this.attrs,I||g.defaultAttrs||O7g)&&YC.sameSet(this.marks,e||YC.none)}copy(g=null){return g==this.content?this:new RH(this.type,this.attrs,g,this.marks)}mark(g){return g==this.marks?this:new RH(this.type,this.attrs,this.content,g)}cut(g,I=this.content.size){return g==0&&I==this.content.size?this:this.copy(this.content.cut(g,I))}slice(g,I=this.content.size,e=!1){if(g==I)return vg.empty;let t=this.resolve(g),i=this.resolve(I),A=e?0:t.sharedDepth(I),n=t.start(A),o=t.node(A).content.cut(t.pos-n,i.pos-n);return new vg(o,t.depth-A,i.depth-A)}replace(g,I,e){return L7g(this.resolve(g),this.resolve(I),e)}nodeAt(g){for(let I=this;;){let{index:e,offset:t}=I.content.findIndex(g);if(I=I.maybeChild(e),!I)return null;if(t==g||I.isText)return I;g-=t+1}}childAfter(g){let{index:I,offset:e}=this.content.findIndex(g);return{node:this.content.maybeChild(I),index:I,offset:e}}childBefore(g){if(g==0)return{node:null,index:0,offset:0};let{index:I,offset:e}=this.content.findIndex(g);if(e<g)return{node:this.content.child(I),index:I,offset:e};let t=this.content.child(I-1);return{node:t,index:I-1,offset:e-t.nodeSize}}resolve(g){return Qu.resolveCached(this,g)}resolveNoCache(g){return Qu.resolve(this,g)}rangeHasMark(g,I,e){let t=!1;return I>g&&this.nodesBetween(g,I,i=>(e.isInSet(i.marks)&&(t=!0),!t)),t}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 g=this.type.name;return this.content.size&&(g+="("+this.content.toStringInner()+")"),IK(this.marks,g)}contentMatchAt(g){let I=this.type.contentMatch.matchFragment(this.content,0,g);if(!I)throw new Error("Called contentMatchAt on a node with invalid content");return I}canReplace(g,I,e=Mg.empty,t=0,i=e.childCount){let A=this.contentMatchAt(g).matchFragment(e,t,i),n=A&&A.matchFragment(this.content,I);if(!n||!n.validEnd)return!1;for(let s=t;s<i;s++)if(!this.type.allowsMarks(e.child(s).marks))return!1;return!0}canReplaceWith(g,I,e,t){if(t&&!this.type.allowsMarks(t))return!1;let i=this.contentMatchAt(g).matchType(e),A=i&&i.matchFragment(this.content,I);return A?A.validEnd:!1}canAppend(g){return g.content.size?this.canReplace(this.childCount,this.childCount,g.content):this.type.compatibleContent(g.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let g=YC.none;for(let I=0;I<this.marks.length;I++){let e=this.marks[I];e.type.checkAttrs(e.attrs),g=e.addToSet(g)}if(!YC.sameSet(g,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(I=>I.type.name)}`);this.content.forEach(I=>I.check())}toJSON(){let g={type:this.type.name};for(let I in this.attrs){g.attrs=this.attrs;break}return this.content.size&&(g.content=this.content.toJSON()),this.marks.length&&(g.marks=this.marks.map(I=>I.toJSON())),g}static fromJSON(g,I){if(!I)throw new RangeError("Invalid input for Node.fromJSON");let e;if(I.marks){if(!Array.isArray(I.marks))throw new RangeError("Invalid mark data for Node.fromJSON");e=I.marks.map(g.markFromJSON)}if(I.type=="text"){if(typeof I.text!="string")throw new RangeError("Invalid text node in JSON");return g.text(I.text,e)}let t=Mg.fromJSON(g,I.content),i=g.nodeType(I.type).create(I.attrs,t,e);return i.type.checkAttrs(i.attrs),i}};la.prototype.text=void 0;class KB extends la{constructor(g,I,e,t){if(super(g,I,null,t),!e)throw new RangeError("Empty text nodes are not allowed");this.text=e}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):IK(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(g,I){return this.text.slice(g,I)}get nodeSize(){return this.text.length}mark(g){return g==this.marks?this:new KB(this.type,this.attrs,this.text,g)}withText(g){return g==this.text?this:new KB(this.type,this.attrs,g,this.marks)}cut(g=0,I=this.text.length){return g==0&&I==this.text.length?this:this.withText(this.text.slice(g,I))}eq(g){return this.sameMarkup(g)&&this.text==g.text}toJSON(){let g=super.toJSON();return g.text=this.text,g}}function IK(C,g){for(let I=C.length-1;I>=0;I--)g=C[I].type.name+"("+g+")";return g}class bc{constructor(g){this.validEnd=g,this.next=[],this.wrapCache=[]}static parse(g,I){let e=new U7g(g,I);if(e.next==null)return bc.empty;let t=CK(e);e.next&&e.err("Unexpected trailing text");let i=IEg(gEg(t));return CEg(i,e),i}matchType(g){for(let I=0;I<this.next.length;I++)if(this.next[I].type==g)return this.next[I].next;return null}matchFragment(g,I=0,e=g.childCount){let t=this;for(let i=I;t&&i<e;i++)t=t.matchType(g.child(i).type);return t}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let g=0;g<this.next.length;g++){let{type:I}=this.next[g];if(!(I.isText||I.hasRequiredAttrs()))return I}return null}compatible(g){for(let I=0;I<this.next.length;I++)for(let e=0;e<g.next.length;e++)if(this.next[I].type==g.next[e].type)return!0;return!1}fillBefore(g,I=!1,e=0){let t=[this];function i(A,n){let s=A.matchFragment(g,e);if(s&&(!I||s.validEnd))return Mg.from(n.map(o=>o.createAndFill()));for(let o=0;o<A.next.length;o++){let{type:a,next:d}=A.next[o];if(!(a.isText||a.hasRequiredAttrs())&&t.indexOf(d)==-1){t.push(d);let m=i(d,n.concat(a));if(m)return m}}return null}return i(this,[])}findWrapping(g){for(let e=0;e<this.wrapCache.length;e+=2)if(this.wrapCache[e]==g)return this.wrapCache[e+1];let I=this.computeWrapping(g);return this.wrapCache.push(g,I),I}computeWrapping(g){let I=Object.create(null),e=[{match:this,type:null,via:null}];for(;e.length;){let t=e.shift(),i=t.match;if(i.matchType(g)){let A=[];for(let n=t;n.type;n=n.via)A.push(n.type);return A.reverse()}for(let A=0;A<i.next.length;A++){let{type:n,next:s}=i.next[A];!n.isLeaf&&!n.hasRequiredAttrs()&&!(n.name in I)&&(!t.type||s.validEnd)&&(e.push({match:n.contentMatch,type:n,via:t}),I[n.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(g){if(g>=this.next.length)throw new RangeError(`There's no ${g}th edge in this content match`);return this.next[g]}toString(){let g=[];function I(e){g.push(e);for(let t=0;t<e.next.length;t++)g.indexOf(e.next[t].next)==-1&&I(e.next[t].next)}return I(this),g.map((e,t)=>{let i=t+(e.validEnd?"*":" ")+" ";for(let A=0;A<e.next.length;A++)i+=(A?", ":"")+e.next[A].type.name+"->"+g.indexOf(e.next[A].next);return i}).join(`
1617
+ */function yl(C){return getComputedStyle(C)}function Mi(C,g){for(var I in g){var e=g[I];typeof e=="number"&&(e=e+"px"),C.style[I]=e}return C}function WB(C){var g=document.createElement("div");return g.className=C,g}var MF=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function na(C,g){if(!MF)throw new Error("No element matching method supported");return MF.call(C,g)}function IZ(C){C.remove?C.remove():C.parentNode&&C.parentNode.removeChild(C)}function HF(C,g){return Array.prototype.filter.call(C.children,function(I){return na(I,g)})}var Me={main:"ps",rtl:"ps__rtl",element:{thumb:function(C){return"ps__thumb-"+C},rail:function(C){return"ps__rail-"+C},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(C){return"ps--active-"+C},scrolling:function(C){return"ps--scrolling-"+C}}},fF={x:null,y:null};function SF(C,g){var I=C.element.classList,e=Me.state.scrolling(g);I.contains(e)?clearTimeout(fF[g]):I.add(e)}function DF(C,g){fF[g]=setTimeout(function(){return C.isAlive&&C.element.classList.remove(Me.state.scrolling(g))},C.settings.scrollingThreshold)}function kOg(C,g){SF(C,g),DF(C,g)}var Ku=function(g){this.element=g,this.handlers={}},kF={isEmpty:{configurable:!0}};Ku.prototype.bind=function(g,I){typeof this.handlers[g]>"u"&&(this.handlers[g]=[]),this.handlers[g].push(I),this.element.addEventListener(g,I,!1)},Ku.prototype.unbind=function(g,I){var e=this;this.handlers[g]=this.handlers[g].filter(function(t){return I&&t!==I?!0:(e.element.removeEventListener(g,t,!1),!1)})},Ku.prototype.unbindAll=function(){for(var g in this.handlers)this.unbind(g)},kF.isEmpty.get=function(){var C=this;return Object.keys(this.handlers).every(function(g){return C.handlers[g].length===0})},Object.defineProperties(Ku.prototype,kF);var CZ=function(){this.eventElements=[]};CZ.prototype.eventElement=function(g){var I=this.eventElements.filter(function(e){return e.element===g})[0];return I||(I=new Ku(g),this.eventElements.push(I)),I},CZ.prototype.bind=function(g,I,e){this.eventElement(g).bind(I,e)},CZ.prototype.unbind=function(g,I,e){var t=this.eventElement(g);t.unbind(I,e),t.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(t),1)},CZ.prototype.unbindAll=function(){this.eventElements.forEach(function(g){return g.unbindAll()}),this.eventElements=[]},CZ.prototype.once=function(g,I,e){var t=this.eventElement(g),i=function(A){t.unbind(I,i),e(A)};t.bind(I,i)};function BB(C){if(typeof window.CustomEvent=="function")return new CustomEvent(C);var g=document.createEvent("CustomEvent");return g.initCustomEvent(C,!1,!1,void 0),g}function pB(C,g,I,e,t){e===void 0&&(e=!0),t===void 0&&(t=!1);var i;if(g==="top")i=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(g==="left")i=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");FOg(C,I,i,e,t)}function FOg(C,g,I,e,t){var i=I[0],A=I[1],n=I[2],s=I[3],o=I[4],a=I[5];e===void 0&&(e=!0),t===void 0&&(t=!1);var d=C.element;C.reach[s]=null,d[n]<1&&(C.reach[s]="start"),d[n]>C[i]-C[A]-1&&(C.reach[s]="end"),g&&(d.dispatchEvent(BB("ps-scroll-"+s)),g<0?d.dispatchEvent(BB("ps-scroll-"+o)):g>0&&d.dispatchEvent(BB("ps-scroll-"+a)),e&&kOg(C,s)),C.reach[s]&&(g||t)&&d.dispatchEvent(BB("ps-"+s+"-reach-"+C.reach[s]))}function ge(C){return parseInt(C,10)||0}function KOg(C){return na(C,"input,[contenteditable]")||na(C,"select,[contenteditable]")||na(C,"textarea,[contenteditable]")||na(C,"button,[contenteditable]")}function zOg(C){var g=yl(C);return ge(g.width)+ge(g.paddingLeft)+ge(g.paddingRight)+ge(g.borderLeftWidth)+ge(g.borderRightWidth)}var eZ={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 ws(C){var g=C.element,I=Math.floor(g.scrollTop),e=g.getBoundingClientRect();C.containerWidth=Math.floor(e.width),C.containerHeight=Math.floor(e.height),C.contentWidth=g.scrollWidth,C.contentHeight=g.scrollHeight,g.contains(C.scrollbarXRail)||(HF(g,Me.element.rail("x")).forEach(function(t){return IZ(t)}),g.appendChild(C.scrollbarXRail)),g.contains(C.scrollbarYRail)||(HF(g,Me.element.rail("y")).forEach(function(t){return IZ(t)}),g.appendChild(C.scrollbarYRail)),!C.settings.suppressScrollX&&C.containerWidth+C.settings.scrollXMarginOffset<C.contentWidth?(C.scrollbarXActive=!0,C.railXWidth=C.containerWidth-C.railXMarginWidth,C.railXRatio=C.containerWidth/C.railXWidth,C.scrollbarXWidth=FF(C,ge(C.railXWidth*C.containerWidth/C.contentWidth)),C.scrollbarXLeft=ge((C.negativeScrollAdjustment+g.scrollLeft)*(C.railXWidth-C.scrollbarXWidth)/(C.contentWidth-C.containerWidth))):C.scrollbarXActive=!1,!C.settings.suppressScrollY&&C.containerHeight+C.settings.scrollYMarginOffset<C.contentHeight?(C.scrollbarYActive=!0,C.railYHeight=C.containerHeight-C.railYMarginHeight,C.railYRatio=C.containerHeight/C.railYHeight,C.scrollbarYHeight=FF(C,ge(C.railYHeight*C.containerHeight/C.contentHeight)),C.scrollbarYTop=ge(I*(C.railYHeight-C.scrollbarYHeight)/(C.contentHeight-C.containerHeight))):C.scrollbarYActive=!1,C.scrollbarXLeft>=C.railXWidth-C.scrollbarXWidth&&(C.scrollbarXLeft=C.railXWidth-C.scrollbarXWidth),C.scrollbarYTop>=C.railYHeight-C.scrollbarYHeight&&(C.scrollbarYTop=C.railYHeight-C.scrollbarYHeight),JOg(g,C),C.scrollbarXActive?g.classList.add(Me.state.active("x")):(g.classList.remove(Me.state.active("x")),C.scrollbarXWidth=0,C.scrollbarXLeft=0,g.scrollLeft=C.isRtl===!0?C.contentWidth:0),C.scrollbarYActive?g.classList.add(Me.state.active("y")):(g.classList.remove(Me.state.active("y")),C.scrollbarYHeight=0,C.scrollbarYTop=0,g.scrollTop=0)}function FF(C,g){return C.settings.minScrollbarLength&&(g=Math.max(g,C.settings.minScrollbarLength)),C.settings.maxScrollbarLength&&(g=Math.min(g,C.settings.maxScrollbarLength)),g}function JOg(C,g){var I={width:g.railXWidth},e=Math.floor(C.scrollTop);g.isRtl?I.left=g.negativeScrollAdjustment+C.scrollLeft+g.containerWidth-g.contentWidth:I.left=C.scrollLeft,g.isScrollbarXUsingBottom?I.bottom=g.scrollbarXBottom-e:I.top=g.scrollbarXTop+e,Mi(g.scrollbarXRail,I);var t={top:e,height:g.railYHeight};g.isScrollbarYUsingRight?g.isRtl?t.right=g.contentWidth-(g.negativeScrollAdjustment+C.scrollLeft)-g.scrollbarYRight-g.scrollbarYOuterWidth-9:t.right=g.scrollbarYRight-C.scrollLeft:g.isRtl?t.left=g.negativeScrollAdjustment+C.scrollLeft+g.containerWidth*2-g.contentWidth-g.scrollbarYLeft-g.scrollbarYOuterWidth:t.left=g.scrollbarYLeft+C.scrollLeft,Mi(g.scrollbarYRail,t),Mi(g.scrollbarX,{left:g.scrollbarXLeft,width:g.scrollbarXWidth-g.railBorderXWidth}),Mi(g.scrollbarY,{top:g.scrollbarYTop,height:g.scrollbarYHeight-g.railBorderYWidth})}function xOg(C){C.event.bind(C.scrollbarY,"mousedown",function(g){return g.stopPropagation()}),C.event.bind(C.scrollbarYRail,"mousedown",function(g){var I=g.pageY-window.pageYOffset-C.scrollbarYRail.getBoundingClientRect().top,e=I>C.scrollbarYTop?1:-1;C.element.scrollTop+=e*C.containerHeight,ws(C),g.stopPropagation()}),C.event.bind(C.scrollbarX,"mousedown",function(g){return g.stopPropagation()}),C.event.bind(C.scrollbarXRail,"mousedown",function(g){var I=g.pageX-window.pageXOffset-C.scrollbarXRail.getBoundingClientRect().left,e=I>C.scrollbarXLeft?1:-1;C.element.scrollLeft+=e*C.containerWidth,ws(C),g.stopPropagation()})}var YB=null;function TOg(C){KF(C,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),KF(C,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])}function KF(C,g){var I=g[0],e=g[1],t=g[2],i=g[3],A=g[4],n=g[5],s=g[6],o=g[7],a=g[8],d=C.element,m=null,Z=null,u=null;function h(B){B.touches&&B.touches[0]&&(B[t]=B.touches[0]["page"+o.toUpperCase()]),YB===A&&(d[s]=m+u*(B[t]-Z),SF(C,o),ws(C),B.stopPropagation(),B.preventDefault())}function G(){DF(C,o),C[a].classList.remove(Me.state.clicking),document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",G),document.removeEventListener("touchmove",h),document.removeEventListener("touchend",G),YB=null}function w(B){YB===null&&(YB=A,m=d[s],B.touches&&(B[t]=B.touches[0]["page"+o.toUpperCase()]),Z=B[t],u=(C[e]-C[I])/(C[i]-C[n]),B.touches?(document.addEventListener("touchmove",h,{passive:!1}),document.addEventListener("touchend",G)):(document.addEventListener("mousemove",h),document.addEventListener("mouseup",G)),C[a].classList.add(Me.state.clicking)),B.stopPropagation(),B.cancelable&&B.preventDefault()}C[A].addEventListener("mousedown",w),C[A].addEventListener("touchstart",w)}function LOg(C){var g=C.element,I=function(){return na(g,":hover")},e=function(){return na(C.scrollbarX,":focus")||na(C.scrollbarY,":focus")};function t(i,A){var n=Math.floor(g.scrollTop);if(i===0){if(!C.scrollbarYActive)return!1;if(n===0&&A>0||n>=C.contentHeight-C.containerHeight&&A<0)return!C.settings.wheelPropagation}var s=g.scrollLeft;if(A===0){if(!C.scrollbarXActive)return!1;if(s===0&&i<0||s>=C.contentWidth-C.containerWidth&&i>0)return!C.settings.wheelPropagation}return!0}C.event.bind(C.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&!(!I()&&!e())){var A=document.activeElement?document.activeElement:C.ownerDocument.activeElement;if(A){if(A.tagName==="IFRAME")A=A.contentDocument.activeElement;else for(;A.shadowRoot;)A=A.shadowRoot.activeElement;if(KOg(A))return}var n=0,s=0;switch(i.which){case 37:i.metaKey?n=-C.contentWidth:i.altKey?n=-C.containerWidth:n=-30;break;case 38:i.metaKey?s=C.contentHeight:i.altKey?s=C.containerHeight:s=30;break;case 39:i.metaKey?n=C.contentWidth:i.altKey?n=C.containerWidth:n=30;break;case 40:i.metaKey?s=-C.contentHeight:i.altKey?s=-C.containerHeight:s=-30;break;case 32:i.shiftKey?s=C.containerHeight:s=-C.containerHeight;break;case 33:s=C.containerHeight;break;case 34:s=-C.containerHeight;break;case 36:s=C.contentHeight;break;case 35:s=-C.contentHeight;break;default:return}C.settings.suppressScrollX&&n!==0||C.settings.suppressScrollY&&s!==0||(g.scrollTop-=s,g.scrollLeft+=n,ws(C),t(n,s)&&i.preventDefault())}})}function vOg(C){var g=C.element;function I(A,n){var s=Math.floor(g.scrollTop),o=g.scrollTop===0,a=s+g.offsetHeight===g.scrollHeight,d=g.scrollLeft===0,m=g.scrollLeft+g.offsetWidth===g.scrollWidth,Z;return Math.abs(n)>Math.abs(A)?Z=o||a:Z=d||m,Z?!C.settings.wheelPropagation:!0}function e(A){var n=A.deltaX,s=-1*A.deltaY;return(typeof n>"u"||typeof s>"u")&&(n=-1*A.wheelDeltaX/6,s=A.wheelDeltaY/6),A.deltaMode&&A.deltaMode===1&&(n*=10,s*=10),n!==n&&s!==s&&(n=0,s=A.wheelDelta),A.shiftKey?[-s,-n]:[n,s]}function t(A,n,s){if(!eZ.isWebKit&&g.querySelector("select:focus"))return!0;if(!g.contains(A))return!1;for(var o=A;o&&o!==g;){if(o.classList.contains(Me.element.consuming))return!0;var a=yl(o);if(s&&a.overflowY.match(/(scroll|auto)/)){var d=o.scrollHeight-o.clientHeight;if(d>0&&(o.scrollTop>0&&s<0||o.scrollTop<d&&s>0))return!0}if(n&&a.overflowX.match(/(scroll|auto)/)){var m=o.scrollWidth-o.clientWidth;if(m>0&&(o.scrollLeft>0&&n<0||o.scrollLeft<m&&n>0))return!0}o=o.parentNode}return!1}function i(A){var n=e(A),s=n[0],o=n[1];if(!t(A.target,s,o)){var a=!1;C.settings.useBothWheelAxes?C.scrollbarYActive&&!C.scrollbarXActive?(o?g.scrollTop-=o*C.settings.wheelSpeed:g.scrollTop+=s*C.settings.wheelSpeed,a=!0):C.scrollbarXActive&&!C.scrollbarYActive&&(s?g.scrollLeft+=s*C.settings.wheelSpeed:g.scrollLeft-=o*C.settings.wheelSpeed,a=!0):(g.scrollTop-=o*C.settings.wheelSpeed,g.scrollLeft+=s*C.settings.wheelSpeed),ws(C),a=a||I(s,o),a&&!A.ctrlKey&&(A.stopPropagation(),A.preventDefault())}}typeof window.onwheel<"u"?C.event.bind(g,"wheel",i):typeof window.onmousewheel<"u"&&C.event.bind(g,"mousewheel",i)}function jOg(C){if(!eZ.supportsTouch&&!eZ.supportsIePointer)return;var g=C.element,I={startOffset:{},startTime:0,speed:{},easingLoop:null};function e(d,m){var Z=Math.floor(g.scrollTop),u=g.scrollLeft,h=Math.abs(d),G=Math.abs(m);if(G>h){if(m<0&&Z===C.contentHeight-C.containerHeight||m>0&&Z===0)return window.scrollY===0&&m>0&&eZ.isChrome}else if(h>G&&(d<0&&u===C.contentWidth-C.containerWidth||d>0&&u===0))return!0;return!0}function t(d,m){g.scrollTop-=m,g.scrollLeft-=d,ws(C)}function i(d){return d.targetTouches?d.targetTouches[0]:d}function A(d){return d.target===C.scrollbarX||d.target===C.scrollbarY||d.pointerType&&d.pointerType==="pen"&&d.buttons===0?!1:!!(d.targetTouches&&d.targetTouches.length===1||d.pointerType&&d.pointerType!=="mouse"&&d.pointerType!==d.MSPOINTER_TYPE_MOUSE)}function n(d){if(A(d)){var m=i(d);I.startOffset.pageX=m.pageX,I.startOffset.pageY=m.pageY,I.startTime=new Date().getTime(),I.easingLoop!==null&&clearInterval(I.easingLoop)}}function s(d,m,Z){if(!g.contains(d))return!1;for(var u=d;u&&u!==g;){if(u.classList.contains(Me.element.consuming))return!0;var h=yl(u);if(Z&&h.overflowY.match(/(scroll|auto)/)){var G=u.scrollHeight-u.clientHeight;if(G>0&&(u.scrollTop>0&&Z<0||u.scrollTop<G&&Z>0))return!0}if(m&&h.overflowX.match(/(scroll|auto)/)){var w=u.scrollWidth-u.clientWidth;if(w>0&&(u.scrollLeft>0&&m<0||u.scrollLeft<w&&m>0))return!0}u=u.parentNode}return!1}function o(d){if(A(d)){var m=i(d),Z={pageX:m.pageX,pageY:m.pageY},u=Z.pageX-I.startOffset.pageX,h=Z.pageY-I.startOffset.pageY;if(s(d.target,u,h))return;t(u,h),I.startOffset=Z;var G=new Date().getTime(),w=G-I.startTime;w>0&&(I.speed.x=u/w,I.speed.y=h/w,I.startTime=G),e(u,h)&&d.cancelable&&d.preventDefault()}}function a(){C.settings.swipeEasing&&(clearInterval(I.easingLoop),I.easingLoop=setInterval(function(){if(C.isInitialized){clearInterval(I.easingLoop);return}if(!I.speed.x&&!I.speed.y){clearInterval(I.easingLoop);return}if(Math.abs(I.speed.x)<.01&&Math.abs(I.speed.y)<.01){clearInterval(I.easingLoop);return}t(I.speed.x*30,I.speed.y*30),I.speed.x*=.8,I.speed.y*=.8},10))}eZ.supportsTouch?(C.event.bind(g,"touchstart",n),C.event.bind(g,"touchmove",o),C.event.bind(g,"touchend",a)):eZ.supportsIePointer&&(window.PointerEvent?(C.event.bind(g,"pointerdown",n),C.event.bind(g,"pointermove",o),C.event.bind(g,"pointerup",a)):window.MSPointerEvent&&(C.event.bind(g,"MSPointerDown",n),C.event.bind(g,"MSPointerMove",o),C.event.bind(g,"MSPointerUp",a)))}var QOg=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}},OOg={"click-rail":xOg,"drag-thumb":TOg,keyboard:LOg,wheel:vOg,touch:jOg},zu=function(g,I){var e=this;if(I===void 0&&(I={}),typeof g=="string"&&(g=document.querySelector(g)),!g||!g.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=g,g.classList.add(Me.main),this.settings=QOg();for(var t in I)this.settings[t]=I[t];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var i=function(){return g.classList.add(Me.state.focus)},A=function(){return g.classList.remove(Me.state.focus)};this.isRtl=yl(g).direction==="rtl",this.isRtl===!0&&g.classList.add(Me.rtl),this.isNegativeScroll=function(){var o=g.scrollLeft,a=null;return g.scrollLeft=-1,a=g.scrollLeft<0,g.scrollLeft=o,a}(),this.negativeScrollAdjustment=this.isNegativeScroll?g.scrollWidth-g.clientWidth:0,this.event=new CZ,this.ownerDocument=g.ownerDocument||document,this.scrollbarXRail=WB(Me.element.rail("x")),g.appendChild(this.scrollbarXRail),this.scrollbarX=WB(Me.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",i),this.event.bind(this.scrollbarX,"blur",A),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var n=yl(this.scrollbarXRail);this.scrollbarXBottom=parseInt(n.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=ge(n.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=ge(n.borderLeftWidth)+ge(n.borderRightWidth),Mi(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ge(n.marginLeft)+ge(n.marginRight),Mi(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=WB(Me.element.rail("y")),g.appendChild(this.scrollbarYRail),this.scrollbarY=WB(Me.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",i),this.event.bind(this.scrollbarY,"blur",A),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var s=yl(this.scrollbarYRail);this.scrollbarYRight=parseInt(s.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=ge(s.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?zOg(this.scrollbarY):null,this.railBorderYWidth=ge(s.borderTopWidth)+ge(s.borderBottomWidth),Mi(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ge(s.marginTop)+ge(s.marginBottom),Mi(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:g.scrollLeft<=0?"start":g.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:g.scrollTop<=0?"start":g.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(o){return OOg[o](e)}),this.lastScrollTop=Math.floor(g.scrollTop),this.lastScrollLeft=g.scrollLeft,this.event.bind(this.element,"scroll",function(o){return e.onScroll(o)}),ws(this)};zu.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Mi(this.scrollbarXRail,{display:"block"}),Mi(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=ge(yl(this.scrollbarXRail).marginLeft)+ge(yl(this.scrollbarXRail).marginRight),this.railYMarginHeight=ge(yl(this.scrollbarYRail).marginTop)+ge(yl(this.scrollbarYRail).marginBottom),Mi(this.scrollbarXRail,{display:"none"}),Mi(this.scrollbarYRail,{display:"none"}),ws(this),pB(this,"top",0,!1,!0),pB(this,"left",0,!1,!0),Mi(this.scrollbarXRail,{display:""}),Mi(this.scrollbarYRail,{display:""}))},zu.prototype.onScroll=function(g){this.isAlive&&(ws(this),pB(this,"top",this.element.scrollTop-this.lastScrollTop),pB(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},zu.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),IZ(this.scrollbarX),IZ(this.scrollbarY),IZ(this.scrollbarXRail),IZ(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},zu.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(g){return!g.match(/^ps([-_].+|)$/)}).join(" ")};const UOg=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(C,{expose:g,emit:I}){const e=C,t=I,i=l.ref(null),A=l.ref(null);l.watch(()=>e.options,()=>{s(),n()},{deep:!0}),l.onMounted(()=>{i.value&&n()}),l.onBeforeUnmount(()=>{s()});function n(){i.value&&(A.value=new zu(i.value,e.options),d())}function s(){A.value&&(d(!1),A.value.destroy(),A.value=null)}const o={scroll:a("scroll"),"ps-scroll-y":a("ps-scroll-y"),"ps-scroll-x":a("ps-scroll-x"),"ps-scroll-up":a("ps-scroll-up"),"ps-scroll-down":a("ps-scroll-down"),"ps-scroll-left":a("ps-scroll-left"),"ps-scroll-right":a("ps-scroll-right"),"ps-y-reach-start":a("ps-y-reach-start"),"ps-y-reach-end":a("ps-y-reach-end"),"ps-x-reach-start":a("ps-x-reach-start"),"ps-x-reach-end":a("ps-x-reach-end")};function a(m){return function(Z){t(m,Z)}}function d(m=!0){var Z;(Z=A.value)!=null&&Z.element&&Object.entries(o).forEach(([u,h])=>{var G,w;m?(G=A.value)==null||G.element.addEventListener(u,h):(w=A.value)==null||w.element.removeEventListener(u,h)})}return g({ps:A}),(m,Z)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(m.tag),{ref_key:"scrollbar",ref:i,class:"ps"},{default:l.withCtx(()=>[l.renderSlot(m.$slots,"default")]),_:3},512))}}),EOg=["data-testid"],XX=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(C,{expose:g,emit:I}){const e=C,t=l.ref(null),i=I,A=d=>{i("scroll",d)},n={attributes:!0,attributeFilter:["style"]},s=(d,m)=>Z=>{for(const u of Z)u.type==="attributes"&&u.attributeName==="style"&&d.style.right!==m&&(d.style.right=m)},o=()=>{var w,B,p,Y,N,R,X,K,D,k,z,v,O,Cg,U,T,q,cg,og,Wg,fg,Rg,Bg,kg;if(!t.value)return;const d=t.value.querySelector(".ps__thumb-y"),m=t.value.querySelector(".ps__thumb-x"),Z=t.value.querySelector(".ps__rail-y"),u=t.value.querySelector(".ps__rail-x");d.style.background=((B=(w=e.thrumbStyle)==null?void 0:w.y)==null?void 0:B.background)||"var(--text-brand)",d.style.width=((Y=(p=e.thrumbStyle)==null?void 0:p.y)==null?void 0:Y.width)||"6px",d.style.right="0px",m.style.background=((R=(N=e.thrumbStyle)==null?void 0:N.x)==null?void 0:R.background)||"var(--text-brand)",m.style.width=((K=(X=e.thrumbStyle)==null?void 0:X.x)==null?void 0:K.width)||"6px",m.style.right="0px",Z.style.background=((k=(D=e.railStyle)==null?void 0:D.y)==null?void 0:k.background)||"var(--button-neutral-color)",Z.style.width=((v=(z=e.thrumbStyle)==null?void 0:z.y)==null?void 0:v.width)||"6px",Z.style.right=((Cg=(O=e.railStyle)==null?void 0:O.y)==null?void 0:Cg.right)||"0px",u.style.background=((T=(U=e.railStyle)==null?void 0:U.x)==null?void 0:T.background)||"var(--button-neutral-color)",u.style.width=((cg=(q=e.thrumbStyle)==null?void 0:q.x)==null?void 0:cg.width)||"6px",u.style.right=((Wg=(og=e.railStyle)==null?void 0:og.x)==null?void 0:Wg.right)||"0px";const h=new MutationObserver(s(Z,((Rg=(fg=e.railStyle)==null?void 0:fg.y)==null?void 0:Rg.right)||"0px")),G=new MutationObserver(s(u,((kg=(Bg=e.railStyle)==null?void 0:Bg.x)==null?void 0:kg.right)||"0px"));h.observe(Z,n),G.observe(u,n)};return l.watch(()=>e,()=>{o()},{immediate:!0}),g({scrollToTop:()=>{t.value&&(t.value.children[0].scrollTop=0)}}),l.onMounted(()=>{o()}),(d,m)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"scrollbar",ref:t,"data-testid":e.dataTestid},[l.createVNode(l.unref(UOg),{onScroll:A,options:e.options,tag:e.tag,class:l.normalizeClass(e.class),style:l.normalizeStyle(e.style),"data-testid":`${e.dataTestid}-Scroll`,ref_key:"scrollbar",ref:t},{default:l.withCtx(()=>[l.renderSlot(d.$slots,"default")]),_:3},8,["options","tag","class","style","data-testid"])],8,EOg))}});var yB=(C=>(C.small="small",C.medium="medium",C.big="big",C))(yB||{}),NB=(C=>(C.circled="circled",C.rounded="rounded",C))(NB||{}),zF=(C=>(C.blue="blue",C.red="red",C))(zF||{});const POg=["data-testid","checked","disabled"],_Og=l.defineComponent({__name:"Checkbox",props:{size:{default:yB.medium},circular:{default:NB.rounded},color:{default:zF.blue},checked:{type:Boolean},modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestid:{default:"Checkbox"}},emits:["change","update:modelValue"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isChecked:I.modelValue});l.watchEffect(()=>{t.isChecked=I.modelValue});const i=()=>{t.isChecked=!t.isChecked,e("change",t.isChecked),e("update:modelValue",t.isChecked)};return(A,n)=>(l.openBlock(),l.createElementBlock("label",{class:l.normalizeClass(`label-checkbox checkbox-yui-kit_${I.size} checkbox-yui-kit_${I.circular} checkbox-yui-kit_${I.color}`)},[l.createElementVNode("input",{type:"checkbox",class:l.normalizeClass("checkbox-yui-kit "),"data-testid":`${I.dataTestid}`,tabindex:"0",onChange:i,checked:t.isChecked,disabled:I.disabled,onKeyup:l.withKeys(i,["enter"])},null,40,POg),l.createVNode(Yg,{class:"checkbox__icon",name:l.unref(rg).checked},null,8,["name"])],2))}}),RX=Qg(_Og,[["__scopeId","data-v-e79cdfc4"]]);var ZC=(C=>(C.profile="profile",C.theme="theme",C.options="options",C.exit="exit",C.qrAuth="qr-auth",C.downloadChat="download-chat",C.help="help",C))(ZC||{});const qOg=["data-testid"],$Og=["src","alt"],gUg={key:1,class:"avatar-yui-kit__fallback"},IUg=["src"],CUg={key:1,class:"avatar-yui-kit__text"},MX=new Set,HX=new Set,Ju=Qg(l.defineComponent({__name:"Avatar",props:{initials:{},url:{},isIcon:{type:Boolean},alt:{},defaultImage:{},isOnline:{type:Boolean},dataTestid:{}},setup(C){const g=C,I=l.ref(null),e=l.ref(!1),t=l.ref(!1),i=l.computed(()=>g.initials?g.initials.charAt(0).toUpperCase():""),A=["var(--error-color)","var(--orange4)","var(--green2)","var(--blue24)","var(--blue22)","var(--blue4)","var(--violet2)","var(--pink-color)"],n=l.computed(()=>{if(g.defaultImage)return"transparent";if(!i.value)return A[0];const d=i.value.charCodeAt(0);return A[d%A.length]}),s=l.computed(()=>!g.url||!e.value||t.value),o=()=>{g.url&&(MX.add(g.url),HX.delete(g.url)),e.value=!0,t.value=!1},a=()=>{g.url&&(HX.add(g.url),MX.delete(g.url)),t.value=!0,e.value=!1};return l.watch(()=>g.url,async d=>{var m;if(e.value=!1,t.value=!1,!!d){if(MX.has(d)){e.value=!0;return}if(HX.has(d)){t.value=!0;return}await l.nextTick(),(m=I.value)!=null&&m.complete&&I.value.naturalWidth>0&&(e.value=!0)}},{immediate:!0}),(d,m)=>(l.openBlock(),l.createElementBlock("div",{"data-testid":g.dataTestid,class:l.normalizeClass(["avatar-yui-kit",{"is-online":g.isOnline}]),style:l.normalizeStyle({backgroundColor:n.value})},[g.url?(l.openBlock(),l.createElementBlock("img",{key:0,ref_key:"imageRef",ref:I,src:g.url,alt:g.alt,class:l.normalizeClass(["avatar-yui-kit__image",{"is-visible":e.value}]),onLoad:o,onError:a},null,42,$Og)):l.createCommentVNode("",!0),s.value?(l.openBlock(),l.createElementBlock("div",gUg,[g.defaultImage?(l.openBlock(),l.createElementBlock("img",{key:0,src:g.defaultImage,class:"avatar-yui-kit__image avatar-yui-kit__image--default is-visible"},null,8,IUg)):(l.openBlock(),l.createElementBlock("div",CUg,l.toDisplayString(i.value),1))])):l.createCommentVNode("",!0)],14,qOg))}}),[["__scopeId","data-v-fa31dc83"]]),eUg=["data-testid"],tUg={class:"list-yui-kit__item-text"},iUg=Qg(l.defineComponent({__name:"MenuItem",props:{active:{type:Boolean},disabled:{type:Boolean},dataTestid:{},iconName:{},text:{},menuType:{}},emits:["click"],setup(C,{emit:g}){const I=g,e=()=>{C.disabled||I("click",C.menuType)};return(t,i)=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(["list-yui-kit__item",{"list-yui-kit__item--disabled":C.disabled,"list-yui-kit__item--active":C.active}]),onClick:e,"data-testid":C.dataTestid},[l.createVNode(Yg,{name:C.iconName},null,8,["name"]),l.createElementVNode("span",tUg,l.toDisplayString(C.text),1),l.renderSlot(t.$slots,"default",{},void 0,!0)],10,eUg))}}),[["__scopeId","data-v-3da3cf72"]]),AUg={class:"menu-yui-kit__list"},nUg={class:"list-yui-kit"},lUg=Qg(l.defineComponent({__name:"UserMenuList",props:{closeAfterClick:{type:Boolean},menuOpen:{type:Boolean},categories:{},texts:{},user:{},languages:{},isBlackTheme:{type:Boolean,default:!1},dataTestid:{default:"UserMenuList"}},emits:["click","unmount-qr-auth","theme-change","languageSwitch"],setup(C,{emit:g}){const I=C,e=g,t=l.ref(null),i=l.ref(I.isBlackTheme);l.watch(()=>I.menuOpen,m=>{m||(t.value=null)});const A=m=>{if(m===ZC.qrAuth){e("unmount-qr-auth");return}e("click",m),m===ZC.theme&&(i.value=!i.value,e("theme-change"))},n=m=>{e("languageSwitch",m)},s=()=>{e("theme-change")},o=m=>({[ZC.profile]:"Profile",[ZC.qrAuth]:"Auth with QR",[ZC.downloadChat]:"Auth with QR",[ZC.theme]:"Theme",[ZC.options]:"Settings",[ZC.exit]:"Log Out",[ZC.help]:"Help"})[m]??"",a=m=>({[ZC.profile]:rg.profile,[ZC.qrAuth]:rg.qrCode,[ZC.downloadChat]:rg.download,[ZC.theme]:rg.darkThemeSwitcher,[ZC.options]:rg.settings,[ZC.exit]:rg.logout,[ZC.help]:rg.help})[m]??rg.profile,d=m=>({[ZC.profile]:"Profile",[ZC.qrAuth]:"QR",[ZC.downloadChat]:"Chat",[ZC.theme]:"Theme",[ZC.options]:"Settings",[ZC.exit]:"Exit",[ZC.help]:"Help"})[m]??m;return(m,Z)=>{var u,h,G;return l.openBlock(),l.createElementBlock("div",AUg,[l.createElementVNode("ul",nUg,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.categories,w=>{var B;return l.openBlock(),l.createBlock(iUg,{key:w,"data-testid":`${I.dataTestid}-${d(w)}-Item`,iconName:a(w),text:((B=I.texts)==null?void 0:B[w])??o(w),menuType:w,active:t.value===w,onClick:()=>A(w)},{default:l.withCtx(()=>[w===l.unref(ZC).theme?(l.openBlock(),l.createBlock(wB,{key:0,modelValue:i.value,"onUpdate:modelValue":Z[0]||(Z[0]=p=>i.value=p),disabled:"",onChange:s},null,8,["modelValue"])):l.createCommentVNode("",!0)]),_:2},1032,["data-testid","iconName","text","menuType","active","onClick"])}),128))]),(u=I.languages)!=null&&u.items?(l.openBlock(),l.createBlock(Nw,{key:0,items:(h=I.languages)==null?void 0:h.items,theme:"contrast","default-value":(G=I.languages)==null?void 0:G.defaultValue,onChange:n,"data-testid":`${I.dataTestid}-Language-Switch`},null,8,["items","default-value","data-testid"])):l.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-971715e8"]]),sUg=["data-testid"],oUg={class:"menu-yui-kit__wrapper"},aUg={class:"menu-yui-kit__names"},dUg={class:"menu-yui-kit__name"},cUg={class:"menu-yui-kit__role"},mUg={key:0,class:"menu-yui-kit__dropdown"},fX=Qg(l.defineComponent({__name:"UserMenu",props:{closeAfterClick:{type:Boolean},menuOpen:{type:Boolean},categories:{},texts:{},user:{},languages:{},isBlackTheme:{type:Boolean},dataTestid:{default:"UserMenu"}},emits:["click","unmount-qr-auth","theme-change","languageSwitch"],setup(C,{emit:g}){const I=C,e=l.reactive({isShow:!1,isBlackTheme:I.isBlackTheme??!1}),t=g,i=l.computed(()=>({"menu-yui-kit__heading":!0,"active-yui-kit":e.isShow}));function A(Z){t("click",Z),Z!==ZC.theme&&I.closeAfterClick&&(e.isShow=!1)}const n=l.computed(()=>e.isShow?rg.chevronUp:rg.chevronDown),s=()=>{e.isShow=!e.isShow},o=()=>{e.isShow=!1};function a(){e.isBlackTheme=!e.isBlackTheme,t("theme-change",e.isBlackTheme)}const d=Z=>{I.closeAfterClick&&(e.isShow=!1),t("languageSwitch",Z)},m=()=>{I.closeAfterClick&&(e.isShow=!1),t("unmount-qr-auth")};return(Z,u)=>{var h,G,w;return l.openBlock(),l.createElementBlock("div",{class:"menu-yui-kit","data-testid":I.dataTestid},[l.withDirectives((l.openBlock(),l.createElementBlock("div",oUg,[l.createElementVNode("div",{class:l.normalizeClass(i.value),onClick:s},[l.createVNode(Ju,{class:"menu-yui-kit__avatar",url:(h=I.user)==null?void 0:h.avatar,alt:"user-avatar","data-testid":`${I.dataTestid}-Avatar`},null,8,["url","data-testid"]),l.createElementVNode("div",aUg,[l.createElementVNode("p",dUg,l.toDisplayString((G=I.user)==null?void 0:G.name),1),l.createElementVNode("p",cUg,l.toDisplayString((w=I.user)==null?void 0:w.role),1)]),l.createVNode(nI,{type:l.unref(II).ghost,class:"menu-yui-kit__button","data-testid":`${I.dataTestid}-Toggle`},{default:l.withCtx(()=>[l.createVNode(Yg,{class:"menu-yui-kit__button-icon",name:n.value},null,8,["name"])]),_:1},8,["type","data-testid"])],2),e.isShow?(l.openBlock(),l.createElementBlock("div",mUg,[l.createVNode(lUg,{"data-testid":`${I.dataTestid}-List`,"is-black-theme":e.isBlackTheme,"menu-open":e.isShow,languages:I.languages,categories:I.categories,texts:I.texts,onClick:A,onThemeChange:a,onLanguageSwitch:d,onUnmountQrAuth:m},null,8,["data-testid","is-black-theme","menu-open","languages","categories","texts"])])):l.createCommentVNode("",!0)])),[[l.unref(To),o,void 0,{bubble:!0}]])],8,sUg)}}}),[["__scopeId","data-v-07fdbf85"]]);var VB=(C=>(C.default="default",C.minor="minor",C))(VB||{});const rUg=["data-testid"],ZUg=["data-testid"],bUg=["data-testid"],uUg=["data-testid","placeholder","required","maxlength","readonly"],hUg=l.defineComponent({__name:"Textarea",props:{placeholder:{},inputMessage:{},required:{type:Boolean,default:!1},maxlength:{},modelValue:{default:""},readonly:{type:Boolean,default:!1},type:{default:VB.default},modelModifiers:{default:()=>({})},dataTestid:{default:"Textarea"}},emits:["update:modelValue"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isPressed:!1,inputElement:I.modelValue}),i=l.computed(()=>[{pressed:t.isPressed,readonly:I.readonly,[I.type]:!0}]),A=()=>{e("update:modelValue",t.inputElement)},n=()=>{I.readonly||(t.isPressed=!0)},s=()=>{t.isPressed=!1};return l.watch(()=>I.modelValue,o=>{t.inputElement=o}),(o,a)=>(l.openBlock(),l.createElementBlock("fieldset",{class:l.normalizeClass(["input-yui-kit",i.value]),onFocusout:s,"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,class:"input-yui-kit__star","data-testid":`${I.dataTestid}-Legend-Star`},"*",8,bUg)):l.createCommentVNode("",!0)],8,ZUg)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("textarea",{"onUpdate:modelValue":a[0]||(a[0]=d=>t.inputElement=d),onFocus:n,onInput:A,"data-testid":`${I.dataTestid}-Textarea`,class:"input-yui-kit__input",placeholder:I.placeholder,required:I.required,maxlength:I.maxlength,readonly:I.readonly},null,40,uUg),[[l.vModelText,t.inputElement]])],42,rUg))}}),SX=Qg(hUg,[["__scopeId","data-v-fbef4fcf"]]);var DX=(C=>(C.img="img",C.pdf="pdf",C.docx="docx",C))(DX||{});const GUg=["data-testid"],wUg=["data-testid"],WUg=["src","alt","data-testid"],BUg=["src","data-testid"],pUg=["data-testid"],YUg=["data-testid"],yUg=["data-testid"],kX=Qg(l.defineComponent({__name:"Picture",props:{type:{},alt:{},url:{},caption:{},dataTestid:{default:"Picture"}},setup(C){const g=C,I=l.reactive({isLoad:!1,isError:!1}),e=l.computed(()=>I.isError?!1:!g.url||!g.type||g.type==DX.img?!0:Er(g.url)),t=()=>{I.isLoad=!0},i=()=>{I.isError=!0},A=()=>{I.isLoad=!1,I.isError=!1};return l.watch(()=>g.url,()=>{A()}),(n,s)=>(l.openBlock(),l.createElementBlock("figure",{class:"picture-yui-kit","data-testid":g.dataTestid},[g.type==l.unref(DX).img?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("picture",{class:"picture-yui-kit__picture","data-testid":`${g.dataTestid}-Picture`},[!I.isError&&g.url?(l.openBlock(),l.createElementBlock("img",{key:0,class:"picture-yui-kit__picture_image",src:g.url,alt:g.alt,"data-testid":`${g.dataTestid}-Picture-Img`,onLoad:t,onError:i},null,40,WUg)):(l.openBlock(),l.createElementBlock("img",{key:1,src:l.unref(rs),alt:"not found",class:"picture-yui-kit__picture_image","data-testid":`${g.dataTestid}-Picture-Img`},null,8,BUg))],8,wUg),l.createElementVNode("figcaption",{class:"picture-yui-kit__picture__caption","data-testid":`${g.dataTestid}-Caption`},l.toDisplayString(g.caption),9,pUg)],64)):l.unref(Er)(g.url)?(l.openBlock(),l.createBlock(Gs,{key:1,class:"picture-yui-kit__picture_image",src:g.url,page:1,dataTestid:`${g.dataTestid}-PdfPreview`,onLoad:t},null,8,["src","dataTestid"])):(l.openBlock(),l.createElementBlock("div",{key:2,class:"picture-yui-kit__caption","data-testid":`${g.dataTestid}-Caption-Box`},[l.createElementVNode("h4",{class:"picture-yui-kit__caption__title","data-testid":`${g.dataTestid}-Caption-Title`},l.toDisplayString(g.caption),9,yUg)],8,YUg)),!I.isLoad&&e.value?(l.openBlock(),l.createBlock(ku,{key:3,class:"picture-yui-kit__loader"})):l.createCommentVNode("",!0)],8,GUg))}}),[["__scopeId","data-v-2d2ca4d2"]]);var XB=(C=>(C.success="success",C.warning="warning",C.error="error",C.info="info",C))(XB||{}),JF=(C=>(C.success="Успешно",C.warning="Предупреждение",C.error="Ошибка",C.info="Уведомление",C))(JF||{}),xF=(C=>(C[C.success=rg.checkbox]="success",C[C.warning=rg.alertTriangle]="warning",C[C.error=rg.exitCircle]="error",C[C.info=rg.info]="info",C))(xF||{});const NUg=["id","data-testid"],VUg=["data-testid"],XUg=["data-testid"],RUg=["data-testid"],MUg=["data-testid"],HUg=l.defineComponent({__name:"Notification",props:{type:{default:XB.info},title:{},pushKey:{},description:{default:""},timeout:{default:3},showPopover:{type:Boolean,default:!0},dataTestid:{default:"Notification"}},emits:["close"],setup(C,{expose:g,emit:I}){const e=C,t=I,i=l.ref(null);hg(i,"toggle",()=>{e.timeout>0&&setTimeout(()=>{var o;return(o=i.value)==null?void 0:o.hidePopover()},e.timeout*1e3)});const A=()=>(t("close"),"hide"),n=()=>{var o;(o=i.value)==null||o.showPopover()},s=l.reactive({message:{icon:xF[e.type],title:e.title||JF[e.type],description:e.description}});return l.onMounted(()=>{var o;e.showPopover&&((o=i.value)==null||o.showPopover())}),g({showPopover:n}),(o,a)=>(l.openBlock(),l.createElementBlock("div",{popover:"manual",id:e.pushKey.toString(),class:l.normalizeClass(`push-notification-yui-kit push-notification-yui-kit_${e.type}`),"data-testid":e.dataTestid,ref_key:"popover",ref:i},[l.createElementVNode("div",{class:"notification-yui-kit","data-testid":`${e.dataTestid}-Notification`},[l.createElementVNode("div",{class:"notification-yui-kit__block","data-testid":`${e.dataTestid}-Notification-Block`},[l.createVNode(Yg,{name:s.message.icon,class:"notification-yui-kit__block-icon","data-testid":`${e.dataTestid}-Notification-Icon`},null,8,["name","data-testid"]),l.createElementVNode("h4",{class:"notification-yui-kit__block-title","data-testid":`${e.dataTestid}-Notification-Title`},l.toDisplayString(s.message.title),9,RUg),l.createElementVNode("span",{class:"notification-yui-kit__block-text","data-testid":`${e.dataTestid}-Notification-Description`},l.toDisplayString(s.message.description),9,MUg)],8,XUg),l.createVNode(nI,{class:"notification-yui-kit__exit",type:l.unref(II).ghost,popovertarget:e.pushKey.toString(),popovertargetaction:A,"data-testid":`${e.dataTestid}-Notification-Button`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).crossSmall,"data-testid":`${e.dataTestid}-Notification-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","popovertarget","data-testid"])],8,VUg)],10,NUg))}}),FX=Qg(HUg,[["__scopeId","data-v-85eb7f9e"]]),KX=l.defineComponent({__name:"CopyIcon",props:{content:{default:""},dataTestid:{default:"CopyIcon"}},setup(C){const g=C,I=()=>{const e=g.content,t=document.createElement("textarea");t.value=e;const i=document.querySelectorAll("dialog[open]"),A=i.length?i[i.length-1]:null;A?A.append(t):document.body.append(t),t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),t.remove()};return(e,t)=>(l.openBlock(),l.createBlock(Yg,{class:"copy-icon-yui-kit",name:l.unref(rg).copy,"data-testid":g.dataTestid,onClick:I},null,8,["name","data-testid"]))}}),fUg=["data-testid"],SUg=["data-testid"],DUg=["data-testid"],kUg=["data-testid"],FUg=["data-testid"],KUg=["data-testid"],zUg=["data-testid"],JUg=["data-testid"],xUg=["data-testid"],TUg=["data-testid"],LUg=["data-testid"],vUg=["data-testid"],jUg=["data-testid"],QUg=["data-testid"],OUg=l.defineComponent({__name:"FilterTag",props:{title:{},iconName:{default:rg.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(C,{emit:g}){const I=C,e=l.reactive({isShow:!1,options:[]}),t=g,i=l.computed(()=>({"filter-yui-kit__wrapper":!0,"active-yui-kit":e.isShow})),A=()=>e.isShow=!e.isShow,n=()=>{e.isShow=!1},s=l.computed(()=>e.options.filter(Z=>Z.chose)),o=l.computed(()=>e.options.filter(Z=>!Z.chose)),a=Z=>{I.disallowNull&&Z.chose||(Z.chose=!Z.chose,I.multiply||(e.options=e.options.map(u=>({...u,chose:Z.value===u.value&&Z.chose}))),e.options.every(u=>u.chose)&&(e.options=e.options.map(u=>({...u,chose:!1}))),t("change",s.value.map(u=>u.value)),e.isShow=!1)},d=()=>{e.options=e.options.map(Z=>({...Z,chose:!1})),e.isShow=!1,t("change",[])},m=()=>{e.options=I.options.map(Z=>({...Z,chose:I.selectedValues.includes(Z.value)})),e.options.every(Z=>Z.chose)&&(e.options=e.options.map(Z=>({...Z,chose:!1})))};return l.watch(()=>[I.options,I.selectedValues],m),l.watch(()=>I.selectedValues,m),l.onMounted(m),(Z,u)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{class:"filter-yui-kit","data-testid":I.dataTestid},[l.createElementVNode("div",{class:l.normalizeClass(i.value),onClick:A,"data-testid":`${I.dataTestid}-Wrapper`},[I.iconName?(l.openBlock(),l.createBlock(Yg,{key:0,name:I.iconName,"data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"])):l.createCommentVNode("",!0),I.title?(l.openBlock(),l.createElementBlock("span",{key:1,"data-testid":`${I.dataTestid}-Title`},l.toDisplayString(I.title),9,DUg)):l.createCommentVNode("",!0),!s.value.length&&!I.disallowNull?(l.openBlock(),l.createBlock(Mt,{key:2,disabled:"",text:"Все","data-testid":`${I.dataTestid}-Badges-All`},null,8,["data-testid"])):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:3},l.renderList(s.value.filter((h,G)=>G<I.maxShowCount),(h,G)=>(l.openBlock(),l.createBlock(Mt,{key:h.value,type:h.type,disabled:"","data-testid":`${I.dataTestid}-Badges${G}`,text:h.label},null,8,["type","data-testid","text"]))),128)),I.maxShowCount<s.value.length?(l.openBlock(),l.createElementBlock("div",{key:4,class:"filter-yui-kit__counter","data-testid":`${I.dataTestid}-MaxShowCount-Counter`},[l.createTextVNode(" +"+l.toDisplayString(s.value.length-I.maxShowCount)+" ",1),l.createElementVNode("div",{class:"filter-yui-kit__counter-content","data-testid":`${I.dataTestid}-MaxShowCount-Content`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value.filter((h,G)=>G>=I.maxShowCount),(h,G)=>(l.openBlock(),l.createBlock(Mt,{key:h.value,type:h.type,disabled:"",text:h.label,"data-testid":`${I.dataTestid}-MaxShow-Badges${G}`},null,8,["type","text","data-testid"]))),128))],8,FUg)],8,kUg)):l.createCommentVNode("",!0),I.showClearButton&&s.value.length>0?(l.openBlock(),l.createElementBlock("button",{key:5,type:"button",class:"filter-yui-kit__close",onClick:l.withModifiers(d,["stop"]),"data-testid":`${I.dataTestid}-Filter-CloseButton`},[l.createVNode(Yg,{name:l.unref(rg).crossSmall,"data-testid":`${I.dataTestid}-CloseButton-Icon`},null,8,["name","data-testid"])],8,KUg)):l.createCommentVNode("",!0)],10,SUg),e.isShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter-yui-kit__select-wrapper","data-testid":`${I.dataTestid}-Select-Wrapper`},[l.createElementVNode("ul",{class:"filter-yui-kit__select-list selected-yui-kit","data-testid":`${I.dataTestid}-Select-List`},[s.value.length?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("li",{key:0,class:"filter-yui-kit__select-item","data-testid":`${I.dataTestid}-Select-Item`},[l.createVNode(Mt,{disabled:"",text:"Все","data-testid":`${I.dataTestid}-Select-Badges`},null,8,["data-testid"])],8,xUg)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value,(h,G)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:h.value,"data-testid":`${I.dataTestid}-Select-Item${G}`},[l.createVNode(Mt,{disabled:!0,choosed:!I.disallowNull&&h.chose,type:h.type,onClick:w=>a(h),text:h.label,"data-testid":`${I.dataTestid}-Select-Badges${G}`},null,8,["choosed","type","onClick","text","data-testid"])],8,TUg))),128))],8,JUg),l.createElementVNode("div",{class:"filter-yui-kit__select__divider","data-testid":`${I.dataTestid}-Select-Divider`},null,8,LUg),e.isShow?(l.openBlock(),l.createElementBlock("ul",{key:0,class:"filter-yui-kit__select-list","data-testid":`${I.dataTestid}-Select-List`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,(h,G)=>(l.openBlock(),l.createElementBlock("li",{class:"filter-yui-kit__select-item",key:h.value,"data-testid":`${I.dataTestid}-Select-List${G}`},[l.createVNode(Mt,{disabled:!0,choosed:!1,type:h.type,text:h.label,"data-testid":`${I.dataTestid}-Select-Badges${G}`,onClick:w=>a(h)},null,8,["type","text","data-testid","onClick"])],8,jUg))),128)),C.disallowNull?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("li",{key:0,class:"filter-yui-kit__select-item","data-testid":`${I.dataTestid}-Select-Item`},[s.value.length?(l.openBlock(),l.createBlock(Mt,{key:0,disabled:"","data-testid":`${I.dataTestid}-Select-Badges`,text:"Все",onClick:d},null,8,["data-testid"])):l.createCommentVNode("",!0)],8,QUg))],8,vUg)):l.createCommentVNode("",!0)],8,zUg)):l.createCommentVNode("",!0)],8,fUg)),[[l.unref(To),n,void 0,{bubble:!0}]])}}),zX=Qg(OUg,[["__scopeId","data-v-e56b5a22"]]),UUg=["data-testid"],EUg=["data-testid"],PUg=["data-testid"],_Ug=["data-testid"],JX=Qg(l.defineComponent({__name:"CircularProgress",props:{percent:{},dataTestid:{default:"CircularProgress"}},setup(C){const g=C,I=()=>{const e=Math.min(Math.max(g.percent,0),100),t=e/100*360;if(e<=25)return`polygon(50% 50%, 50% 0%, calc(50% + 50% * cos(${t-90}deg)) 0,calc(50% + 50% * cos(${t-90}deg)) calc(50% + 50% * sin(${t-90}deg)), 50% 50%)`;if(e<=50)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% calc(50% + 50% * sin(${t-90}deg)), calc(50% + 50% * cos(${t-90}deg)) calc(50% + 50% * sin(${t-90}deg)), 50% 50%)`;if(e<=75)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%,
1618
+ calc(50% + 50% * cos(${t-90}deg)) 100%, calc(50% + 50% * cos(${t-90}deg)) calc(50% + 50% * sin(${t-90}deg)), 50% 50%)`;if(e<=100)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%,0% 100%, 0% calc(50% + 50% * sin(${t-90}deg)), 50% 50%)`};return(e,t)=>g.percent<100?(l.openBlock(),l.createElementBlock("div",{key:0,class:"pie-chart","data-testid":`${g.dataTestid}-PieChart`},[l.createElementVNode("div",{class:"pie-chart-border",style:l.normalizeStyle({"border-color":g.percent<50?"var(--status-errorLight)":"var(--orange-color)"}),"data-testid":`${g.dataTestid}-PieChart-Border`},[l.createElementVNode("div",{class:"sector",style:l.normalizeStyle({clipPath:I(),"background-color":g.percent<50?"var(--status-errorLight)":"var(--orange-color)"}),"data-testid":`${g.dataTestid}-PieChart-Sector`},null,12,PUg)],12,EUg)],8,UUg)):(l.openBlock(),l.createElementBlock("svg",{key:1,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","data-testid":`${g.dataTestid}-Icon`,xmlns:"http://www.w3.org/2000/svg"},[...t[0]||(t[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,_Ug))}}),[["__scopeId","data-v-3a5767de"]]),qUg=["data-testid","aria-label"],$Ug=["data-testid"],rt=Qg(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(C){const g=C,I=CSS.supports("top","anchor(bottom)"),e=l.useId(),t=l.computed(()=>`--anchor-tooltip-${e}`),i=l.ref(null),A=l.ref(null),n=l.reactive({isShow:!1}),s=l.computed(()=>g.isCanShow&&(g.isShow||n.isShow)),o=l.computed(()=>[{"tooltip-yui-kit__hint_show":s.value,"tooltip-yui-kit__hint_bottom-center":g.position==="bottom-center","tooltip-yui-kit__hint_bottom-left":g.position==="bottom-left","tooltip-yui-kit__hint_bottom-right":g.position==="bottom-right","tooltip-yui-kit__hint_top-center":g.position==="top-center","tooltip-yui-kit__hint_top-left":g.position==="top-left","tooltip-yui-kit__hint_top-right":g.position==="top-right","tooltip-yui-kit__hint_left-top":g.position==="left-top","tooltip-yui-kit__hint_left-center":g.position==="left-center","tooltip-yui-kit__hint_left-bottom":g.position==="left-bottom","tooltip-yui-kit__hint_right-top":g.position==="right-top","tooltip-yui-kit__hint_right-center":g.position==="right-center","tooltip-yui-kit__hint_right-bottom":g.position==="right-bottom","tooltip-yui-kit__hint_small":g.size==="small","tooltip-yui-kit__hint_medium":g.size==="medium","tooltip-yui-kit__hint_large":g.size==="large","tooltip-yui-kit__hint_black":g.type==="black","tooltip-yui-kit__hint_blue":g.type==="blue","tooltip-yui-kit__hint_white":g.type==="white",[g.hintClass]:!0}]),a=l.computed(()=>{var q;const T=(q=i.value)==null?void 0:q.closest("dialog");return T||"body"}),d=()=>{p()},m=()=>{Y()},Z=()=>{h()},u=l.computed(()=>g.isCanShow?{mouseenter:d,mouseleave:m}:{}),h=()=>{requestAnimationFrame(()=>{if(!i.value||!A.value||!s.value)return;const T={"--hint-top":"anchor(top)","--hint-left":"anchor(left)","--hint-measured-width":"0","--hint-height":"0","--tooltip-width":"0","--tooltip-height":"0","--hint-visibility":"visible"};I||(T["--hint-top"]="0",T["--hint-left"]="0");const q=i.value.getBoundingClientRect(),cg=A.value.getBoundingClientRect();let og=q.top,Wg=q.left;const fg=i.value.closest("dialog");if(fg){const gI=fg.getBoundingClientRect();og=q.top-gI.top,Wg=q.left-gI.left;const qg=fg.scrollTop,CC=fg.scrollLeft;og+=qg,Wg+=CC}const Rg=q.width,Bg=q.height,kg=cg.width,Vg=cg.height;I||(T["--hint-top"]=`${og}px`,T["--hint-left"]=`${Wg}px`),T["--tooltip-width"]=`${Rg}px`,T["--tooltip-height"]=`${Bg}px`,T["--hint-measured-width"]=`${kg}px`,T["--hint-height"]=`${Vg}px`,A.value&&OI(T,A.value)})},G=()=>{requestAnimationFrame(()=>{!A.value||g.hintGap===void 0||!s.value||OI({"--tooltip-hint-gap":g.hintGap+"px"},A.value)})},w=()=>{g.isCanShow&&s.value&&A.value&&(OI({"position-anchor":`${t.value}`},A.value),h())},B=()=>{!g.isCanShow||!i.value||OI({"anchor-name":`${t.value}`},i.value)};l.watch(()=>g.hintGap,()=>{s.value&&G()}),l.watch(()=>g.isCanShow,T=>{if(!T){Y(),O();return}l.nextTick(()=>{B(),s.value&&Cg()})});const p=()=>{g.isCanShow&&(n.isShow=!0)},Y=()=>{n.isShow=!1};let N=null,R=null,X=!1;const K=new Set,D=()=>(N||(N=new MutationObserver(()=>{s.value&&h()})),N),k=()=>(R||(R=new ResizeObserver(()=>{var T;if(s.value){if(!((T=i.value)!=null&&T.matches(":hover"))){Y();return}h()}})),R),z=()=>{I||X||(window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),X=!0)},v=()=>{X&&(window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h),X=!1)},O=()=>{R==null||R.disconnect(),N==null||N.disconnect(),K.clear(),v()},Cg=()=>{!g.isCanShow||!s.value||l.nextTick(()=>{!g.isCanShow||!s.value||(B(),w(),G(),A.value&&U(A.value),i.value&&U(i.value),z(),h())})},U=T=>{K.has(T)||(D().observe(T,{childList:!0,attributes:!0,characterData:!0}),k().observe(T),K.add(T))};return l.watch(s,T=>{if(T){Cg();return}O()},{flush:"post"}),l.onMounted(()=>{g.isCanShow&&(B(),s.value&&Cg())}),l.onUnmounted(()=>{O()}),(T,q)=>(l.openBlock(),l.createElementBlock("div",l.mergeProps({ref_key:"tooltipRef",ref:i,class:"tooltip-yui-kit","data-testid":g.dataTestid,"aria-label":C.hint},l.toHandlers(u.value,!0)),[l.renderSlot(T.$slots,"default",{},void 0,!0),g.isCanShow?(l.openBlock(),l.createBlock(l.Teleport,{key:0,to:a.value},[l.createVNode(l.Transition,{name:"hint-animate",onEnter:Z},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"hintRef",ref:A,class:l.normalizeClass(["tooltip-yui-kit__hint",o.value]),"data-testid":g.dataTestid},l.toDisplayString(C.hint),11,$Ug)):l.createCommentVNode("",!0)]),_:1})],8,["to"])):l.createCommentVNode("",!0)],16,qUg))}}),[["__scopeId","data-v-ce222868"]]),g7g=["data-testid"],I7g=["data-testid"],C7g=["data-testid"],e7g=["onClick","data-testid"],t7g=l.defineComponent({__name:"Popover",props:{isShow:{type:Boolean},iconName:{default:rg.moreVertical},options:{default:()=>[]},tooltip:{default:""},tooltipPosition:{default:"top-left"},isWCUse:{type:Boolean},translateY:{default:"0"},dataTestid:{default:"Popover"}},emits:["close"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isShow:!1}),i=l.computed(()=>{var K;const X=(K=o.value)==null?void 0:K.closest("dialog");return X||"body"}),A=CSS.supports("top","anchor(bottom)"),n=l.useId(),s=l.computed(()=>`--anchor-popover-${n}`),o=l.ref(null),a=l.ref(null),d=l.ref(null),m=l.computed(()=>({"popover-yui-kit__wrapper":!0,"active-yui-kit":t.isShow,"empty-yui-kit":I.options.length===0})),Z=()=>t.isShow=!t.isShow,u=()=>{t.isShow=!1,e("close")},h=X=>{X.function(),u()},G=()=>{requestAnimationFrame(()=>{if(!o.value||!a.value||!t.isShow)return;const X={},K=o.value.getBoundingClientRect(),D=window.pageYOffset||document.documentElement.scrollTop,k=window.pageXOffset||document.documentElement.scrollLeft;let z=K.bottom+D,v=K.left+k;const O=o.value.closest("dialog");if(O){const U=O.getBoundingClientRect();z=K.top-U.top,v=K.left-U.left;const T=O.scrollTop,q=O.scrollLeft;z+=T,v+=q,z+=10}z+=10,X["--popover-top"]=`${z}px`,A||(X["--popover-left"]=`${v}px`),OI(X,a.value),(()=>{if(!a.value)return;const U=a.value.getBoundingClientRect();U.right>window.innerWidth&&(A?X["--popover-right"]="anchor(right) ":X["--popover-right"]=`${K.right-U.width}px`)})(),X["--popover-right"]&&(X.left="auto",OI(X,a.value))})},w=X=>{const K=X.getBoundingClientRect(),D=document.elementFromPoint(K.left,K.top),k=document.elementFromPoint(K.right,K.bottom);!(D&&X.contains(D))&&!(k&&X.contains(k))&&u()},B=new IntersectionObserver(X=>{X.forEach(K=>{K.isIntersecting||u()})}),p=()=>{o.value&&a.value&&(window.addEventListener("scroll",G,!0),window.addEventListener("resize",G))},Y=()=>{o.value&&a.value&&(window.removeEventListener("scroll",G,!0),window.removeEventListener("resize",G))},N=()=>{o.value&&window.addEventListener("scroll",w.bind(null,o.value),!0)},R=()=>{o.value&&window.removeEventListener("scroll",w.bind(null,o.value),!0)};return l.watch(()=>I.isShow,()=>t.isShow=I.isShow),l.watch(()=>t.isShow,()=>{t.isShow?(G(),N()):R(),!A&&(t.isShow?p():Y())}),l.onMounted(()=>{o.value&&OI({"anchor-name":`${s.value}`},o.value),a.value&&OI({"position-anchor":`${s.value}`},a.value),d.value&&B.observe(d.value),A||G()}),l.onUnmounted(()=>{B.disconnect(),R(),A||Y()}),(X,K)=>(l.openBlock(),l.createBlock(rt,{hint:I.tooltip,size:"small",type:"black",position:I.tooltipPosition,"data-testid":I.dataTestid,"is-can-show":!!I.tooltip&&!t.isShow&&I.options.length>0},{default:l.withCtx(()=>[l.withDirectives((l.openBlock(),l.createElementBlock("div",{class:"popover-yui-kit",ref_key:"popover",ref:d,"data-testid":`${I.dataTestid}-Popover`},[l.createElementVNode("div",{ref_key:"reference",ref:o,class:l.normalizeClass(m.value),"data-testid":`${I.dataTestid}-PopoverShow`,onClick:Z},[l.renderSlot(X.$slots,"trigger",{},()=>[l.createVNode(Yg,{class:"popover-yui-kit__icon",name:I.iconName,"data-testid":`${I.dataTestid}-PopoverShow-Icon`},null,8,["name","data-testid"])],!0)],10,I7g),(l.openBlock(),l.createBlock(l.Teleport,{to:i.value,disabled:I.isWCUse},[l.createVNode(l.Transition,{name:"popover-animate"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{class:"popover-yui-kit__content",style:l.normalizeStyle({transform:`translateY(${I.translateY})`}),ref_key:"floating",ref:a},[l.renderSlot(X.$slots,"default",{},()=>{var D;return[(D=I.options)!=null&&D.length?(l.openBlock(),l.createElementBlock("div",{key:0,class:"popover-yui-kit__options","data-testid":`${I.dataTestid}-PopoverShow-Options`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.options,(k,z)=>(l.openBlock(),l.createElementBlock("div",{class:"popover-yui-kit__options__item",key:z,style:l.normalizeStyle(k.style),onClick:l.withModifiers(v=>h(k),["stop"]),"data-testid":`${I.dataTestid}-Item${z}`},[k.iconName?(l.openBlock(),l.createBlock(Yg,{key:0,name:k.iconName,"data-testid":`${I.dataTestid}-Item${z}-Icon`},null,8,["name","data-testid"])):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(k.value),1)],12,e7g))),128))],8,C7g)):l.createCommentVNode("",!0)]},!0)],4),[[l.vShow,t.isShow]])]),_:3})],8,["to","disabled"]))],8,g7g)),[[l.unref(To),u,void 0,{bubble:!0}]])]),_:3},8,["hint","position","data-testid","is-can-show"]))}}),tZ=Qg(t7g,[["__scopeId","data-v-869ead7f"]]),i7g=["colspan","rowspan","data-testid"],iZ=Qg(l.defineComponent({name:"TableTh",__name:"TableTh",props:{colspan:{default:1},rowspan:{default:1},dataTestid:{default:"DataHeader"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("th",{colspan:C.colspan,rowspan:C.rowspan,"data-testid":g.dataTestid,class:"table-th"},[l.renderSlot(I.$slots,"default",{},void 0,!0)],8,i7g))}}),[["__scopeId","data-v-a6ae3795"]]),A7g=["data-testid"],xu=Qg(l.defineComponent({name:"HeadTableRow",__name:"HeadTableRow",props:{dataTestid:{default:"TableRow"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("tr",{class:"head-table-row","data-testid":g.dataTestid},[l.renderSlot(I.$slots,"default",{},void 0,!0)],8,A7g))}}),[["__scopeId","data-v-b85bc9aa"]]),TF=(C,g,I,e)=>{const t=l.ref(!1),i=l.ref(100);let A=0,n=0;const s=l.computed(()=>[{"scroll-wrapper__track_hide":i.value===100,"scroll-wrapper__track_drag":t.value}]),o=l.computed(()=>i.value<100),a=()=>{if(C.value){const w=C.value.clientWidth,B=C.value.scrollWidth;return w>=B?100:w/B*100}return 100},d=()=>{if(!C.value||!g.value||!I.value||!e.value)return;const{scrollLeft:w,scrollWidth:B,clientWidth:p}=C.value,Y=B-p;if(Y<=0)return;const N=w/Y,R=e.value.clientWidth,X=I.value.clientWidth,K=R-X,D=N*K;requestAnimationFrame(()=>{g.value&&OI({"--scroll-bar-left-position":`${D}px`},g.value)})},m=w=>{!C.value||!g.value||(t.value=!0,A=w.clientX,n=C.value.scrollLeft,document.addEventListener("pointermove",Z),document.addEventListener("pointerup",u,!0))},Z=w=>{if(t.value&&C.value&&I.value){const B=w.clientX-A,p=(C.value.scrollWidth-C.value.clientWidth)/(C.value.clientWidth-I.value.clientWidth);C.value.scrollLeft=n+B*p,d()}},u=()=>{t.value=!1,document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",u,!0)};return{onDrag:Z,onTrackClick:w=>{if(C.value&&I.value){const B=w.currentTarget.getBoundingClientRect(),p=w.clientX-B.left,Y=I.value.clientWidth,N=B.width;let R=(p-Y/2)*((C.value.scrollWidth-C.value.clientWidth)/(N-Y));R=Math.max(0,Math.min(R,C.value.scrollWidth-C.value.clientWidth)),C.value.scrollLeft=R,d()}},startDrag:m,getPercentHorizontalView:a,changeBarPosition:d,isDragging:t,scrollHorizontalWidthPercent:i,setHorizontalBarWidth:()=>{if(!C.value||!g.value)return;const w=a();i.value=w,OI({"--scroll-horizontal-bar-width":`${w}%`},g.value)},horizontalTrackClass:s,isExistHorizontalTrack:o}},LF=(C,g,I,e)=>{const t=l.ref(!1),i=l.ref(100);let A=0,n=0;const s=l.computed(()=>[{"scroll-wrapper__track_hide":i.value===100,"scroll-wrapper__track_drag":t.value}]),o=l.computed(()=>i.value<100),a=()=>{if(C.value){const w=C.value.clientHeight,B=C.value.scrollHeight;if(w>=B)return 100;if(w<B)return w/B*100}return 100},d=()=>{if(!C.value||!g.value||!I.value||!e.value)return;const{scrollTop:w,scrollHeight:B,clientHeight:p}=C.value,Y=B-p;if(Y<=0)return;const N=w/Y,R=e.value.clientHeight,X=I.value.clientHeight,K=R-X,D=N*K;requestAnimationFrame(()=>{g.value&&OI({"--scroll-bar-top-postion":`${D}px`},g.value)})},m=w=>{!C.value||!g.value||(t.value=!0,A=w.clientY,n=C.value.scrollTop,document.addEventListener("pointermove",Z),document.addEventListener("pointerup",u))},Z=w=>{if(t.value&&C.value&&I.value){const B=w.clientY-A,p=(C.value.scrollHeight-C.value.clientHeight)/(C.value.clientHeight-I.value.clientHeight);C.value.scrollTop=n+B*p,d()}},u=()=>{t.value=!1,document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",u)};return{onDrag:Z,onTrackClick:w=>{if(C.value&&I.value){const B=w.currentTarget.getBoundingClientRect(),p=w.clientY-B.top,Y=I.value.clientHeight,N=B.height;let R=(p-Y/2)*((C.value.scrollHeight-C.value.clientHeight)/(N-Y));R=Math.max(0,Math.min(R,C.value.scrollHeight-C.value.clientHeight)),C.value.scrollTop=R,d()}},startDrag:m,getProcentVerticalView:a,changeBarPosition:d,isDragging:t,scrollVerticalHeightProcent:i,setVerticalBarHeight:()=>{if(!C.value||!g.value)return;const w=a();i.value=w,OI({"--scroll-vertical-bar-height":`${w}%`},g.value)},verticalTrackClass:s,isExistVerticalTrack:o}},n7g={class:"scroll-wrapper__vertical-wrapper"},l7g={class:"scroll-wrapper__horizont-wrapper"},Tu=Qg(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(C,{expose:g,emit:I}){const e=I,t=l.ref(null),i=l.ref(null),A=l.ref(null),n=l.ref(null),s=l.ref(null),o=l.ref(null),{onTrackClick:a,startDrag:d,changeBarPosition:m,setVerticalBarHeight:Z,verticalTrackClass:u,isExistVerticalTrack:h}=LF(t,i,n,A),{changeBarPosition:G,startDrag:w,onTrackClick:B,setHorizontalBarWidth:p,horizontalTrackClass:Y,isExistHorizontalTrack:N}=TF(t,i,o,s),R=T=>{m(),G(),e("unmount-scroll",T)},X=()=>{requestAnimationFrame(()=>{K(),D()})},K=()=>{if(!t.value||!i.value)return;const T=getComputedStyle(i.value),q=i.value.style.minHeight||T.minHeight,cg=i.value.style.maxHeight||T.maxHeight,og=i.value.style.height;OI({"--scroll-wrapper-height":`${og}`,"--scroll-wrapper-max-height":`${cg}`,"--scroll-wrapper-min-height":`${q}`},i.value)},D=()=>{Z(),p(),m(),G()},k=()=>{t.value&&t.value.addEventListener("scroll",R)},z=()=>{t.value&&(t.value.scrollTop=0)},v=()=>{t.value&&(t.value.scrollHeight<=t.value.clientHeight?e("unmount-paginate",!0):e("unmount-paginate",!1))},O=new MutationObserver(()=>{X(),v()}),Cg=new ResizeObserver(()=>{X(),v()}),U=T=>{O.observe(T,{childList:!0,subtree:!0,attributes:!0}),Cg.observe(T)};return g({scrollToTop:z,setHeightSlot:K,slotRef:t}),l.onMounted(()=>{X(),k(),i.value&&U(i.value),A.value&&U(A.value),window.addEventListener("resize",X),e("on-mounted")}),l.onUnmounted(()=>{window.removeEventListener("resize",X)}),(T,q)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"scrollWrapperRef",ref:i,class:"scroll-wrapper"},[l.createElementVNode("div",n7g,[l.createElementVNode("div",l7g,[l.createElementVNode("div",{ref_key:"slotRef",ref:t,class:"scroll-wrapper__slot"},[l.renderSlot(T.$slots,"default",{},void 0,!0)],512),l.unref(N)||C.isShowHorizontalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"horizontTrackRef",ref:s,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_horizont",l.unref(Y)]),onClick:q[1]||(q[1]=l.withModifiers((...cg)=>l.unref(B)&&l.unref(B)(...cg),["self","prevent","left"]))},[l.createElementVNode("div",{ref_key:"horizontBarRef",ref:o,class:"scroll-wrapper__bar",onPointerdown:q[0]||(q[0]=l.withModifiers((...cg)=>l.unref(w)&&l.unref(w)(...cg),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)]),l.unref(h)||C.isShowVerticalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"verticalTrackRef",ref:A,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_vertical",l.unref(u)]),onClick:q[3]||(q[3]=l.withModifiers((...cg)=>l.unref(a)&&l.unref(a)(...cg),["self","prevent","left"]))},[l.createElementVNode("div",{ref_key:"verticalBarRef",ref:n,class:"scroll-wrapper__bar",onPointerdown:q[2]||(q[2]=l.withModifiers((...cg)=>l.unref(d)&&l.unref(d)(...cg),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-5a7ca6f4"]]),s7g=["id","data-testid"],o7g=["id","data-testid"],a7g=["id","data-testid"],d7g={key:0,class:"table__error-wrapper"},c7g={class:"table__error-content"},m7g={class:"table__wrapper"},xX=Qg(l.defineComponent({name:"YTable",__name:"Table",props:{tableId:{},search:{},tbodyId:{},theadId:{},columnCount:{},isError:{type:Boolean,default:!1},onErrorHandler:{},errorLabel:{default:"Обновить таблицу"},dataTestid:{default:"Table"},isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate"],setup(C,{expose:g,emit:I}){var p;const e=C,t=I,i=l.reactive({headHeight:0,maxColumnCount:0}),A=l.ref(null),n=l.ref(null),s=l.ref(null),o=l.ref(null),a=l.ref(null),d=Y=>{e.isError||t("unmount-scroll",Y)},m=Y=>{e.isError||t("unmount-paginate",Y)},Z=()=>{if(!A.value||!a.value)return;const Y=A.value.querySelector("thead");if(!Y)return;const N=Y.getBoundingClientRect().height;i.headHeight=N,OI({"--scroll-track-margin-top":`${N}px`},a.value.$el)},u=()=>{a.value&&a.value.scrollToTop()},h=()=>{if(a.value&&o.value){const Y=getComputedStyle(a.value.$el),N=Number(Y.minHeight.replace(/\D/g,""));if(N&&N>0)return;OI({"min-height":`${i.headHeight+108}px`},a.value.$el)}},G=()=>{let Y=1;if(n.value){for(let N=0;N<n.value.children.length;N++)Y=Math.max(n.value.children[N].children.length,Y);i.maxColumnCount=Y}},w=new MutationObserver(()=>{G()}),B=new ResizeObserver(()=>{Z()});return g({scrollToTop:u,setHeightSlot:(p=a.value)==null?void 0:p.setHeightSlot,scrollWrapperRef:a,tbodyRef:s,tableRef:A,theadRef:n}),l.onMounted(()=>{Z(),G(),window.addEventListener("resize",Z),A.value&&B.observe(A.value),n.value&&w.observe(n.value,{childList:!0,subtree:!0}),h()}),(Y,N)=>(l.openBlock(),l.createBlock(Tu,{ref_key:"scrollWrapperRef",ref:a,class:"table",onUnmountScroll:d,onUnmountPaginate:m,"is-show-vertical-scroll":e.isShowVerticalScroll,"is-show-horizontal-scroll":e.isShowHorizontalScroll,"data-testid":`${e.dataTestid}-ScrollWrapper`},{default:l.withCtx(()=>[l.createElementVNode("table",{ref_key:"tableRef",ref:A,id:e.tableId,class:"table__table","data-testid":`${e.dataTestid}`},[l.renderSlot(Y.$slots,"default",{},()=>{var R;return[l.createElementVNode("colgroup",null,[l.renderSlot(Y.$slots,"colspan",{},void 0,!0)]),Y.$slots.head?(l.openBlock(),l.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:n,id:e.theadId,class:"table__head","data-testid":`${e.dataTestid}-Thead`},[l.renderSlot(Y.$slots,"head",{},void 0,!0),Y.$slots.search?(l.openBlock(),l.createBlock(xu,{key:0,class:"table__search-tr",id:(R=e.search)==null?void 0:R.rowId,ref_key:"searchRowRef",ref:o,"data-testid":`${e.dataTestid}-Search-Row`},{default:l.withCtx(()=>{var X;return[l.createVNode(iZ,{colspan:e.columnCount||i.maxColumnCount,class:"table__search-th",id:(X=e.search)==null?void 0:X.headId,"data-testid":`${e.dataTestid}-SearchRow-Search`},{default:l.withCtx(()=>[l.renderSlot(Y.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","id","data-testid"])]}),_:3},8,["id","data-testid"])):l.createCommentVNode("",!0)],8,o7g)):l.createCommentVNode("",!0),C.isError?l.createCommentVNode("",!0):l.renderSlot(Y.$slots,"body-group",{key:1},()=>[Y.$slots.body?(l.openBlock(),l.createElementBlock("tbody",{key:0,id:e.tbodyId,ref_key:"tbodyRef",ref:s,class:"table__body","data-testid":`${e.dataTestid}-Tbody`},[l.renderSlot(Y.$slots,"body",{},void 0,!0)],8,a7g)):l.createCommentVNode("",!0)],!0)]},!0)],8,s7g),e.isError?(l.openBlock(),l.createElementBlock("div",d7g,[l.createElementVNode("div",c7g,[l.createVNode(Yg,{class:"table__error-icon",width:112,height:100,name:l.unref(rg).tableError},null,8,["name"]),N[0]||(N[0]=l.createElementVNode("div",{class:"table__error-header"},"Таблица не загрузилась",-1)),N[1]||(N[1]=l.createElementVNode("div",{class:"table__error-text"}," Не удалось получить данные. Проверьте соединение с интернетом или попробуйте обновить таблицу ",-1))]),l.renderSlot(Y.$slots,"error-button",{},()=>[C.onErrorHandler?(l.openBlock(),l.createBlock(nI,{key:0,class:"table__error-button",size:l.unref(yI).small,onClick:C.onErrorHandler},{"left-icon":l.withCtx(()=>[l.createElementVNode("div",m7g,[l.createVNode(Yg,{name:l.unref(rg).rearrange,width:16,height:16},null,8,["name"])])]),default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(C.errorLabel),1)]),_:1},8,["size","onClick"])):l.createCommentVNode("",!0)],!0)])):l.createCommentVNode("",!0)]),_:3},8,["is-show-vertical-scroll","is-show-horizontal-scroll","data-testid"]))}}),[["__scopeId","data-v-0593ff94"]]),r7g=["rowspan","colspan","data-testid"],Lu=l.defineComponent({name:"TableTd",__name:"TableTd",props:{colspan:{default:1},rowspan:{default:1},dataTestid:{default:"DataCell"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("td",{rowspan:C.rowspan,colspan:C.colspan,class:"table-td","data-testid":g.dataTestid},[l.renderSlot(I.$slots,"default")],8,r7g))}}),Z7g={class:"skeleton"},RB=Qg(l.defineComponent({name:"Skeleton",__name:"Skeleton",setup(C){return(g,I)=>(l.openBlock(),l.createElementBlock("div",Z7g))}}),[["__scopeId","data-v-f0b64f04"]]),b7g=["data-testid"],MB=Qg(l.defineComponent({name:"TableRow",__name:"TableRow",props:{type:{default:"default"},isObserved:{type:Boolean,default:!1},observer:{},scrolledElement:{},dataTestid:{},colspan:{default:1},rowspan:{default:1}},setup(C){const g=C,I=l.reactive({isShow:!g.isObserved,observer:null}),e=l.ref(null),t=l.computed(()=>[{"table-row_active":g.type==="selected","table-row_is-stub":g.isObserved}]),i=()=>{const n=new IntersectionObserver(s=>{s.forEach(o=>{o.isIntersecting&&(I.isShow=!0,n.unobserve(o.target))})},{root:g.scrolledElement,rootMargin:"600px"});return n},A=()=>{g.isObserved&&e.value&&(I.observer=i(),I.observer.observe(e.value))};return l.watch(()=>g.scrolledElement,()=>{var n;(n=I.observer)==null||n.disconnect(),A()}),l.onMounted(()=>{A()}),l.onUnmounted(()=>{var n;(n=I.observer)==null||n.disconnect()}),(n,s)=>(l.openBlock(),l.createElementBlock("tr",{ref_key:"row",ref:e,class:l.normalizeClass(["table-row",t.value]),"data-testid":g.dataTestid},[I.isShow?l.renderSlot(n.$slots,"default",{key:0},void 0,!0):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[n.$slots.skeleton?l.renderSlot(n.$slots,"skeleton",{key:0},void 0,!0):(l.openBlock(),l.createBlock(Lu,{key:1,class:"table-row__td table-row__td_stub",colspan:g.colspan,rowspan:g.rowspan},{default:l.withCtx(()=>[l.createVNode(RB,{class:"table-row__skeleton"})]),_:1},8,["colspan","rowspan"]))],64))],10,b7g))}}),[["__scopeId","data-v-0250f09b"]]),TX=Qg(l.defineComponent({name:"SectionTableRow",__name:"SectionTableRow",props:{colspan:{},dataTestid:{default:"SectionTableRow"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createBlock(MB,{class:"section-table-row","data-testid":g.dataTestid},{default:l.withCtx(()=>[l.createVNode(Lu,{colspan:C.colspan,class:"section-table-row__td","data-testid":`${g.dataTestid}-DataCell`},{default:l.withCtx(()=>[l.renderSlot(I.$slots,"default",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"]))}}),[["__scopeId","data-v-6434dd04"]]),u7g=["disabled","name","value","data-testid"],LX=Qg(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(C){const g=C,I=l.useModel(C,"modelValue");return(e,t)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",{"onUpdate:modelValue":t[0]||(t[0]=i=>I.value=i),type:"radio",disabled:C.disabled,name:C.name,value:C.value,class:"radio","data-testid":g.dataTestid},null,8,u7g)),[[l.vModelRadio,I.value]])}}),[["__scopeId","data-v-43bb3ae4"]]),h7g=["data-testid"],G7g=["data-testid"],vF=Qg(l.defineComponent({name:"ChoosenMiniOptions",__name:"ChoosenMiniOptions",props:{options:{},dataTestid:{default:"ChoosenMiniOptions"}},emits:["remove"],setup(C,{emit:g}){const I=C,e=g,t=i=>{e("remove",i)};return(i,A)=>(l.openBlock(),l.createElementBlock("div",{class:"choosen-mini-options","data-testid":I.dataTestid},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(C.options,(n,s)=>(l.openBlock(),l.createElementBlock("div",{key:n.key,class:"choosen-mini-options__option","data-testid":`${I.dataTestid}-Option-Item${s}`},[l.createVNode(Mt,{"data-testid":`${I.dataTestid}-Badge${s}`,type:l.unref(UI).blue,text:l.unref(eN)(n)?n.hint:n.value,class:"choosen-mini-options__badges",disabled:""},null,8,["data-testid","type","text"]),l.createVNode(Yg,{"data-testid":`${I.dataTestid}-Icon${s}`,name:l.unref(rg).crossLarge,width:10,height:10,class:"choosen-mini-options__cross",onClick:o=>t(n.key)},null,8,["data-testid","name","onClick"])],8,G7g))),128))],8,h7g))}}),[["__scopeId","data-v-d27a190a"]]),w7g=["data-testid"],W7g=["data-testid"],B7g=["data-testid"],p7g=["data-testid"],Y7g=["data-testid"],y7g=["data-testid"],vX=Qg(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},isUseAnchor:{type:Boolean,default:!0},isOpened:{type:Boolean,default:!1},tooltipPosition:{default:"top-center"},disabled:{type:Boolean,default:!1},onUnmountPagination:{},defaultOption:{default:"Выберите значение"},class:{},dataTestid:{default:"BaseFilter"}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["change","disabled-click","unmount-open","unmount-search","unmount-search-enter","unmount-pagination"],["update:modelValue"]),setup(C,{emit:g}){const I=C,e=l.reactive({isHovered:!1}),t=g,i=l.ref(null),A=l.ref(null),n=l.useModel(C,"modelValue"),s=l.ref(I.isOpened),o=l.computed(()=>[{filter_disabled:I.disabled},I.class]);l.watch(s,()=>{t("unmount-open",s.value),a.value=""}),l.watch(()=>I.isOpened,()=>{if(I.disabled){s.value=!1;return}s.value=I.isOpened}),l.watch(()=>I.onUnmountPagination,()=>{z()});const a=l.ref(""),d=l.computed(()=>{let v=[];return a.value?(jb(I.options)?v=I.options.filter(O=>{var Cg;return O.value.toLowerCase().includes(a.value.toLowerCase())||((Cg=O==null?void 0:O.hint)==null?void 0:Cg.toLowerCase().includes(a.value.toLowerCase()))}):v=I.options.filter(O=>O.value.toLowerCase().includes(a.value.toLowerCase())),v):(jb(I.options),v=I.options,v)}),m=l.computed(()=>{var O;return((O=I.options.find(Cg=>Gl.isArray(n.value)?n.value.includes(Cg.key):Cg.key===String(n.value)))==null?void 0:O.value)||I.defaultOption}),Z=l.computed(()=>I.options.filter(v=>Gl.isArray(n.value)?n.value.includes(v.key)&&v.value!==m.value:v.key===String(n.value))),u=l.computed(()=>I.options.filter(v=>Gl.isArray(n.value)?n.value.includes(v.key)&&v.value===m.value:v.key===String(n.value))),h=l.computed(()=>{var Cg,U,T;const v=I.options;let O;return Gl.isArray(n.value)?jb(v)?O=(Cg=v.find(q=>q.value===m.value))==null?void 0:Cg.hint:O=(U=v.find(q=>q.value===m.value))==null?void 0:U.value:O=(T=v.find(q=>q.key===String(n.value)))==null?void 0:T.value,O||""}),G=()=>{e.isHovered=!0},w=()=>{e.isHovered=!1},B=l.computed(()=>{var v;return jb(I.options)?e.isHovered&&!!h.value:((v=i.value)==null?void 0:v.isSpanOverflow)||!1}),p=l.computed(()=>Gl.isArray(n.value)?I.isPosibleToClear&&n.value.length>0:I.isPosibleToClear&&n.value),Y=l.computed(()=>Gl.isArray(n.value)&&n.value.length>1),N=l.computed(()=>Gl.isArray(n.value)?n.value.length:null),R=v=>{t("disabled-click",v)},X=async v=>{if(I.disabled){s.value=!1;return}if(Gl.isArray(n.value))n.value.includes(v)?n.value=n.value.filter(O=>O!==v):n.value=[...n.value,v];else{let O=I.options.find(Cg=>Cg.key===v);!O&&jb(I.options)&&(O=I.options.find(Cg=>Cg.hint===v)),n.value=(O==null?void 0:O.key)||"",s.value=!1}await l.nextTick(),t("change",String(n.value))},K=v=>{if(I.disabled){s.value=!1;return}s.value=v},D=async()=>{I.disabled||(Gl.isArray(n.value)?n.value=[]:n.value="",await l.nextTick(),t("change",n.value))},k=new IntersectionObserver(v=>{v.forEach(O=>{O.isIntersecting&&t("unmount-pagination")})}),z=()=>{A.value&&I.onUnmountPagination&&(k.unobserve(A.value),k.observe(A.value))};return l.onMounted(()=>{z()}),l.onUnmounted(()=>{k.disconnect()}),(v,O)=>(l.openBlock(),l.createBlock(Mr,{"header-classes":"filter__header","options-classes":"filter__options","is-opened":s.value,class:l.normalizeClass(["filter",o.value]),"is-use-anchor":C.isUseAnchor,"data-testid":I.dataTestid,disabled:C.disabled,onChange:K},l.createSlots({header:l.withCtx(()=>[l.renderSlot(v.$slots,"header",{},()=>[l.createElementVNode("span",{class:l.normalizeClass(["filter__header-title",{"filter__header-title__active":s.value}]),"data-testid":`${I.dataTestid}-Title`},l.toDisplayString(C.title),11,w7g),l.createVNode(rt,{position:C.tooltipPosition,type:"blue","is-can-show":B.value&&!(Y.value&&C.isShowMiniOptions),hint:h.value,class:"filter__header-tooltip","data-testid":`${I.dataTestid}-Tooltip`},{default:l.withCtx(()=>[l.createVNode(Mt,{ref_key:"badgesRef",ref:i,type:C.disabled?l.unref(UI).disabled:m.value===I.defaultOption?l.unref(UI).default:l.unref(UI).blue,class:"filter__options-badge","data-testid":`${I.dataTestid}-Badge`,text:m.value,onMouseenter:G,onMouseleave:w,disabled:""},null,8,["type","data-testid","text"]),Y.value&&C.isShowMiniOptions?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter__values","data-testid":`${I.dataTestid}-Filter-Value`},[l.createVNode(vF,{"data-testid":`${I.dataTestid}-Filter-Value-MiniOptions`,onClick:O[0]||(O[0]=l.withModifiers(()=>{},["stop"])),options:u.value,onRemove:X},null,8,["data-testid","options"])],8,W7g)):l.createCommentVNode("",!0)]),_:1},8,["position","is-can-show","hint","data-testid"]),N.value&&N.value>1?(l.openBlock(),l.createElementBlock("span",{key:0,class:"filter__count","data-testid":`${I.dataTestid}-Filter-Count`},[l.createTextVNode(" +"+l.toDisplayString(N.value-1)+" ",1),Y.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter__values","data-testid":`${I.dataTestid}-Filter-Values`},[l.createVNode(vF,{onClick:O[1]||(O[1]=l.withModifiers(()=>{},["stop"])),options:Z.value,onRemove:X,"data-testid":`${I.dataTestid}-MiniOptions`},null,8,["options","data-testid"])],8,p7g)):l.createCommentVNode("",!0)],8,B7g)):l.createCommentVNode("",!0),p.value?(l.openBlock(),l.createElementBlock("span",{key:1,class:"filter__cross",onClick:l.withModifiers(D,["stop"]),"data-testid":`${I.dataTestid}-Filter-Cross`},[l.createVNode(Yg,{name:l.unref(rg).crossLarge,width:16,height:16},null,8,["name"])],8,Y7g)):l.createCommentVNode("",!0)],!0)]),options:l.withCtx(()=>[C.isSearch?(l.openBlock(),l.createBlock(du,{key:0,modelValue:a.value,"onUpdate:modelValue":O[2]||(O[2]=Cg=>a.value=Cg),"show-history":!1,"data-testid":`${I.dataTestid}-Search`,onInput:O[3]||(O[3]=Cg=>v.$emit("unmount-search",Cg)),onEnter:O[4]||(O[4]=Cg=>v.$emit("unmount-search-enter",Cg))},null,8,["modelValue","data-testid"])):l.createCommentVNode("",!0),l.createVNode(tN,{"data-testid":`${I.dataTestid}-Options`,class:"filter__options-option",options:d.value,"default-option":m.value,onChange:X,onDisabledClick:R},{default:l.withCtx(()=>[l.createElementVNode("li",{class:"filter__options-underline","data-testid":`${I.dataTestid}-Underline`},[...O[5]||(O[5]=[l.createElementVNode("hr",{class:"filter__options-underline-hr"},null,-1)])],8,y7g)]),_:1},8,["data-testid","options","default-option"]),l.withDirectives(l.createElementVNode("div",{ref_key:"lastOptionRef",ref:A,class:"filter__last-option"},null,512),[[l.vShow,C.onUnmountPagination]])]),_:2},[v.$slots.body?{name:"body",fn:l.withCtx(Cg=>[l.renderSlot(v.$slots,"body",{closeOpenList:Cg.closeOpenList},void 0,!0)]),key:"0"}:void 0]),1032,["is-opened","class","is-use-anchor","data-testid","disabled"]))}}),[["__scopeId","data-v-be083c7b"]]),N7g=["data-testid"],HB=Qg(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(C,{emit:g}){const I=C,e=g,t=l.useModel(C,"modelValue"),i=l.ref(null);l.watch(t,()=>{n()});const A=()=>(t.value-I.min)/(I.max-I.min)*100,n=()=>{requestAnimationFrame(()=>{i.value&&OI({"--progress":A()+"%"},i.value)})},s=a=>{const d=a.target;d&&e("unmount-change",Number(d.value))},o=a=>{const d=a.target;d&&e("unmount-change",Number(d.value))};return l.onMounted(()=>{n()}),(a,d)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",l.mergeProps({ref_key:"input",ref:i,type:"range"},I,{class:"range","onUpdate:modelValue":d[0]||(d[0]=m=>t.value=m),onChange:s,onInput:o,"data-testid":I.dataTestid}),null,16,N7g)),[[l.vModelText,t.value]])}}),[["__scopeId","data-v-8a0e1679"]]),V7g=["id","data-testid"],X7g=["data-testid"],R7g=["data-testid"],jX=Qg(l.defineComponent({name:"TableNew",__name:"TableNew",props:{tableId:{},search:{},tbodyId:{},theadId:{},columnCount:{},isError:{type:Boolean},onErrorHandler:{},errorLabel:{},dataTestid:{default:"Table"},isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate"],setup(C,{expose:g,emit:I}){var B;const e=C,t=I,i=l.reactive({headHeight:0,maxColumnCount:0}),A=l.ref(null),n=l.ref(null),s=l.ref(null),o=l.ref(null),a=l.ref(null),d=p=>{t("unmount-scroll",p)},m=()=>{if(!A.value||!a.value)return;const p=A.value.querySelector("thead");if(!p)return;const Y=p.getBoundingClientRect().height;i.headHeight=Y,OI({"--scroll-track-margin-top":`${Y}px`},a.value.$el)},Z=()=>{a.value&&a.value.scrollToTop()},u=()=>{if(a.value&&o.value){const p=getComputedStyle(a.value.$el),Y=Number(p.minHeight.replace(/\D/g,""));if(Y&&Y>0)return;OI({"min-height":`${i.headHeight+108}px`},a.value.$el)}},h=()=>{let p=1;if(n.value){for(let Y=0;Y<n.value.children.length;Y++)p=Math.max(n.value.children[Y].children.length,p);i.maxColumnCount=p}},G=new MutationObserver(()=>{h()}),w=new ResizeObserver(()=>{m()});return g({scrollToTop:Z,setHeightSlot:(B=a.value)==null?void 0:B.setHeightSlot,tbodyRef:s,tableRef:A,theadRef:n}),l.onMounted(()=>{m(),h(),window.addEventListener("resize",m),A.value&&w.observe(A.value),n.value&&G.observe(n.value,{childList:!0,subtree:!0}),u()}),(p,Y)=>(l.openBlock(),l.createBlock(Tu,{ref_key:"scrollWrapperRef",ref:a,class:"table",onUnmountScroll:d,"is-show-vertical-scroll":e.isShowVerticalScroll,"is-show-horizontal-scroll":e.isShowHorizontalScroll,"data-testid":`${e.dataTestid}-ScrollWrapper`},{default:l.withCtx(()=>[l.createElementVNode("table",{ref_key:"tableRef",ref:A,id:e.tableId,class:"table__table","data-testid":`${e.dataTestid}`},[l.renderSlot(p.$slots,"default",{},()=>[l.createElementVNode("colgroup",null,[l.renderSlot(p.$slots,"colspan",{},void 0,!0)]),p.$slots.head?(l.openBlock(),l.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:n,class:"table__head","data-testid":`${e.dataTestid}-Thead`},[l.renderSlot(p.$slots,"head",{},void 0,!0),p.$slots.search?(l.openBlock(),l.createBlock(xu,{key:0,class:"table__search-tr",ref_key:"searchRowRef",ref:o,"data-testid":`${e.dataTestid}-Search-Row`},{default:l.withCtx(()=>[l.createVNode(iZ,{colspan:i.maxColumnCount,class:"table__search-th","data-testid":`${e.dataTestid}-SearchRow-Search`},{default:l.withCtx(()=>[l.renderSlot(p.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"])):l.createCommentVNode("",!0)],8,X7g)):l.createCommentVNode("",!0),l.renderSlot(p.$slots,"body-group",{},()=>[p.$slots.body?(l.openBlock(),l.createElementBlock("tbody",{key:0,ref_key:"tbodyRef",ref:s,class:"table__body","data-testid":`${e.dataTestid}-Tbody`},[l.renderSlot(p.$slots,"body",{},void 0,!0)],8,R7g)):l.createCommentVNode("",!0)],!0)],!0)],8,V7g)]),_:3},8,["is-show-vertical-scroll","is-show-horizontal-scroll","data-testid"]))}}),[["__scopeId","data-v-114a4670"]]),M7g=["data-testid"],QX=Qg(l.defineComponent({name:"TableRow",__name:"TableRowNew",props:{type:{default:"default"},isObserved:{type:Boolean},observer:{},scrolledElement:{},dataTestid:{},colspan:{default:1},rowspan:{}},setup(C){const g=C,I=l.computed(()=>[{"table-row_active":g.type==="selected"}]);return(e,t)=>(l.openBlock(),l.createElementBlock("tr",{class:l.normalizeClass(["table-row",I.value]),"data-testid":g.dataTestid},[l.renderSlot(e.$slots,"default",{},void 0,!0)],10,M7g))}}),[["__scopeId","data-v-c206465d"]]),H7g=["data-testid"],fB=Qg(l.defineComponent({name:"HeadTableRow",__name:"HeadTableRowNew",props:{dataTestid:{default:"TableRow"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("tr",{class:"head-table-row","data-testid":g.dataTestid},[l.renderSlot(I.$slots,"default",{},void 0,!0)],8,H7g))}}),[["__scopeId","data-v-3c1412bd"]]),f7g={class:"scroll-wrapper__vertical-wrapper"},S7g={class:"scroll-wrapper__horizont-wrapper"},D7g=Qg(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(C,{expose:g,emit:I}){const e=I,t=l.ref(null),i=l.ref(null),A=l.ref(null),n=l.ref(null),s=l.ref(null),o=l.ref(null),{onTrackClick:a,startDrag:d,changeBarPosition:m,setVerticalBarHeight:Z,verticalTrackClass:u,isExistVerticalTrack:h}=LF(t,i,n,A),{changeBarPosition:G,startDrag:w,onTrackClick:B,setHorizontalBarWidth:p,horizontalTrackClass:Y,isExistHorizontalTrack:N}=TF(t,i,o,s),R=U=>{m(),G(),e("unmount-scroll",U)},X=()=>{requestAnimationFrame(()=>{K(),D()})},K=()=>{if(!t.value||!i.value)return;const U=getComputedStyle(i.value),T=i.value.style.minHeight||U.minHeight,q=i.value.style.maxHeight||U.maxHeight,cg=i.value.style.height;OI({"--scroll-wrapper-height":`${cg}`,"--scroll-wrapper-max-height":`${q}`,"--scroll-wrapper-min-height":`${T}`},i.value)},D=()=>{Z(),p(),m(),G()},k=()=>{t.value&&t.value.addEventListener("scroll",R)},z=()=>{t.value&&(t.value.scrollTop=0)},v=new MutationObserver(()=>{X()}),O=new ResizeObserver(()=>{X()}),Cg=U=>{v.observe(U,{childList:!0,subtree:!0,attributes:!0}),O.observe(U)};return g({scrollToTop:z,setHeightSlot:K}),l.onMounted(()=>{X(),k(),i.value&&Cg(i.value),A.value&&Cg(A.value),window.addEventListener("resize",X),e("on-mounted")}),l.onUnmounted(()=>{window.removeEventListener("resize",X)}),(U,T)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"scrollWrapperRef",ref:i,class:"scroll-wrapper"},[l.createElementVNode("div",f7g,[l.createElementVNode("div",S7g,[l.createElementVNode("div",{ref_key:"slotRef",ref:t,class:"scroll-wrapper__slot"},[l.renderSlot(U.$slots,"default",{},void 0,!0)],512),l.unref(N)||C.isShowHorizontalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"horizontTrackRef",ref:s,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_horizont",l.unref(Y)]),onClick:T[1]||(T[1]=l.withModifiers((...q)=>l.unref(B)&&l.unref(B)(...q),["prevent","left"]))},[l.createElementVNode("div",{ref_key:"horizontBarRef",ref:o,class:"scroll-wrapper__bar",onMousedown:T[0]||(T[0]=l.withModifiers((...q)=>l.unref(w)&&l.unref(w)(...q),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)]),l.unref(h)||C.isShowVerticalScroll?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"verticalTrackRef",ref:A,class:l.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_vertical",l.unref(u)]),onClick:T[3]||(T[3]=l.withModifiers((...q)=>l.unref(a)&&l.unref(a)(...q),["prevent","left"]))},[l.createElementVNode("div",{ref_key:"verticalBarRef",ref:n,class:"scroll-wrapper__bar",onMousedown:T[2]||(T[2]=l.withModifiers((...q)=>l.unref(d)&&l.unref(d)(...q),["prevent","left"]))},null,544)],2)):l.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-47c0a1a0"]]),k7g=["data-testid"],F7g=["data-testid"],K7g=["data-testid"],OX=Qg(l.defineComponent({name:"TableSimple",__name:"TableSimple",props:{dataTestid:{default:"TableSimple"}},setup(C,{expose:g}){const I=C,e=l.ref(null),t=l.ref(null),i=l.ref(null),A=l.ref(null),n=l.computed(()=>{let s=1;if(t.value)for(let o=0;o<t.value.children.length;o++)s=Math.max(t.value.children[o].children.length,s);return s});return g({tbodyRef:i,tableRef:e,theadRef:t}),(s,o)=>(l.openBlock(),l.createElementBlock("table",{ref_key:"tableRef",ref:e,class:"simple-table-yui-kit","data-testid":`${I.dataTestid}`},[l.renderSlot(s.$slots,"default",{},()=>[l.renderSlot(s.$slots,"colspan",{},void 0,!0),s.$slots.head?(l.openBlock(),l.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:t,class:"simple-table-yui-kit__head","data-testid":`${I.dataTestid}-Thead`},[l.renderSlot(s.$slots,"head",{},void 0,!0),s.$slots.search?(l.openBlock(),l.createBlock(fB,{key:0,class:"table-new-yui-kit__search",ref_key:"searchRowRef",ref:A,"data-testid":`${I.dataTestid}-Search-Row`},{default:l.withCtx(()=>[l.createVNode(iZ,{colspan:n.value,class:"table-new-yui-kit__th","data-testid":`${I.dataTestid}-SearchRow-Search`},{default:l.withCtx(()=>[l.renderSlot(s.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"])):l.createCommentVNode("",!0)],8,F7g)):l.createCommentVNode("",!0),l.renderSlot(s.$slots,"body-group",{},()=>[s.$slots.body?(l.openBlock(),l.createElementBlock("tbody",{key:0,ref_key:"tbodyRef",ref:i,class:"simple-table-yui-kit__body","data-testid":`${I.dataTestid}-Tbody`},[l.renderSlot(s.$slots,"body",{},void 0,!0)],8,K7g)):l.createCommentVNode("",!0)],!0)],!0)],8,k7g))}}),[["__scopeId","data-v-1ea4994c"]]),z7g=["data-testid"],J7g=["data-testid"],x7g=["onClick","data-testid"],T7g=["data-testid"],UX=Qg(l.defineComponent({name:"Tabs",__name:"Tabs",props:{defaultActiveTabId:{},tabCount:{},dataTestid:{default:"Tabs"}},emits:["unmount-tab"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({activeTab:1}),i=n=>Array.from({length:n},(s,o)=>o+1);l.watch(()=>I.defaultActiveTabId,()=>{I.defaultActiveTabId&&(t.activeTab=I.defaultActiveTabId)},{immediate:!0});const A=n=>{t.activeTab=n,e("unmount-tab",n)};return(n,s)=>(l.openBlock(),l.createElementBlock("div",{"data-testid":I.dataTestid,class:"tabs"},[l.createElementVNode("nav",{class:"tabs__navigation","data-testid":`${I.dataTestid}-Navigation`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i(I.tabCount),o=>(l.openBlock(),l.createElementBlock("button",{key:o,onClick:a=>A(o),class:l.normalizeClass(["tabs__navigation-button",{active:t.activeTab===o}]),"data-testid":`${I.dataTestid}-Navigation-Button`},[l.renderSlot(n.$slots,`header${o}`,{},void 0,!0)],10,x7g))),128))],8,J7g),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i(I.tabCount),o=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:o},[t.activeTab===o?(l.openBlock(),l.createElementBlock("article",{key:0,"data-testid":`${I.dataTestid}-Content`,class:"tabs__navigation-content"},[l.renderSlot(n.$slots,`tab${o}`,{},void 0,!0)],8,T7g)):l.createCommentVNode("",!0)],64))),128))],8,z7g))}}),[["__scopeId","data-v-298e57cf"]]);function Zt(C){this.content=C}Zt.prototype={constructor:Zt,find:function(C){for(var g=0;g<this.content.length;g+=2)if(this.content[g]===C)return g;return-1},get:function(C){var g=this.find(C);return g==-1?void 0:this.content[g+1]},update:function(C,g,I){var e=I&&I!=C?this.remove(I):this,t=e.find(C),i=e.content.slice();return t==-1?i.push(I||C,g):(i[t+1]=g,I&&(i[t]=I)),new Zt(i)},remove:function(C){var g=this.find(C);if(g==-1)return this;var I=this.content.slice();return I.splice(g,2),new Zt(I)},addToStart:function(C,g){return new Zt([C,g].concat(this.remove(C).content))},addToEnd:function(C,g){var I=this.remove(C).content.slice();return I.push(C,g),new Zt(I)},addBefore:function(C,g,I){var e=this.remove(g),t=e.content.slice(),i=e.find(C);return t.splice(i==-1?t.length:i,0,g,I),new Zt(t)},forEach:function(C){for(var g=0;g<this.content.length;g+=2)C(this.content[g],this.content[g+1])},prepend:function(C){return C=Zt.from(C),C.size?new Zt(C.content.concat(this.subtract(C).content)):this},append:function(C){return C=Zt.from(C),C.size?new Zt(this.subtract(C).content.concat(C.content)):this},subtract:function(C){var g=this;C=Zt.from(C);for(var I=0;I<C.content.length;I+=2)g=g.remove(C.content[I]);return g},toObject:function(){var C={};return this.forEach(function(g,I){C[g]=I}),C},get size(){return this.content.length>>1}},Zt.from=function(C){if(C instanceof Zt)return C;var g=[];if(C)for(var I in C)g.push(I,C[I]);return new Zt(g)};function jF(C,g,I){for(let e=0;;e++){if(e==C.childCount||e==g.childCount)return C.childCount==g.childCount?null:I;let t=C.child(e),i=g.child(e);if(t==i){I+=t.nodeSize;continue}if(!t.sameMarkup(i))return I;if(t.isText&&t.text!=i.text){let A=t.text,n=i.text,s=0;for(;A[s]==n[s];s++)I++;return s&&s<A.length&&s<n.length&&UF(A.charCodeAt(s-1))&&OF(A.charCodeAt(s))&&I--,I}if(t.content.size||i.content.size){let A=jF(t.content,i.content,I+1);if(A!=null)return A}I+=t.nodeSize}}function QF(C,g,I,e){for(let t=C.childCount,i=g.childCount;;){if(t==0||i==0)return t==i?null:{a:I,b:e};let A=C.child(--t),n=g.child(--i),s=A.nodeSize;if(A==n){I-=s,e-=s;continue}if(!A.sameMarkup(n))return{a:I,b:e};if(A.isText&&A.text!=n.text){let o=A.text,a=n.text,d=o.length,m=a.length;for(;d>0&&m>0&&o[d-1]==a[m-1];)d--,m--,I--,e--;return d&&m&&d<o.length&&UF(o.charCodeAt(d-1))&&OF(o.charCodeAt(d))&&(I++,e++),{a:I,b:e}}if(A.content.size||n.content.size){let o=QF(A.content,n.content,I-1,e-1);if(o)return o}I-=s,e-=s}}function OF(C){return C>=56320&&C<57344}function UF(C){return C>=55296&&C<56320}let Mg=class pi{constructor(g,I){if(this.content=g,this.size=I||0,I==null)for(let e=0;e<g.length;e++)this.size+=g[e].nodeSize}nodesBetween(g,I,e,t=0,i){for(let A=0,n=0;n<I;A++){let s=this.content[A],o=n+s.nodeSize;if(o>g&&e(s,t+n,i||null,A)!==!1&&s.content.size){let a=n+1;s.nodesBetween(Math.max(0,g-a),Math.min(s.content.size,I-a),e,t+a)}n=o}}descendants(g){this.nodesBetween(0,this.size,g)}textBetween(g,I,e,t){let i="",A=!0;return this.nodesBetween(g,I,(n,s)=>{let o=n.isText?n.text.slice(Math.max(g,s)-s,I-s):n.isLeaf?t?typeof t=="function"?t(n):t:n.type.spec.leafText?n.type.spec.leafText(n):"":"";n.isBlock&&(n.isLeaf&&o||n.isTextblock)&&e&&(A?A=!1:i+=e),i+=o},0),i}append(g){if(!g.size)return this;if(!this.size)return g;let I=this.lastChild,e=g.firstChild,t=this.content.slice(),i=0;for(I.isText&&I.sameMarkup(e)&&(t[t.length-1]=I.withText(I.text+e.text),i=1);i<g.content.length;i++)t.push(g.content[i]);return new pi(t,this.size+g.size)}cut(g,I=this.size){if(g==0&&I==this.size)return this;let e=[],t=0;if(I>g)for(let i=0,A=0;A<I;i++){let n=this.content[i],s=A+n.nodeSize;s>g&&((A<g||s>I)&&(n.isText?n=n.cut(Math.max(0,g-A),Math.min(n.text.length,I-A)):n=n.cut(Math.max(0,g-A-1),Math.min(n.content.size,I-A-1))),e.push(n),t+=n.nodeSize),A=s}return new pi(e,t)}cutByIndex(g,I){return g==I?pi.empty:g==0&&I==this.content.length?this:new pi(this.content.slice(g,I))}replaceChild(g,I){let e=this.content[g];if(e==I)return this;let t=this.content.slice(),i=this.size+I.nodeSize-e.nodeSize;return t[g]=I,new pi(t,i)}addToStart(g){return new pi([g].concat(this.content),this.size+g.nodeSize)}addToEnd(g){return new pi(this.content.concat(g),this.size+g.nodeSize)}eq(g){if(this.content.length!=g.content.length)return!1;for(let I=0;I<this.content.length;I++)if(!this.content[I].eq(g.content[I]))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(g){let I=this.content[g];if(!I)throw new RangeError("Index "+g+" out of range for "+this);return I}maybeChild(g){return this.content[g]||null}forEach(g){for(let I=0,e=0;I<this.content.length;I++){let t=this.content[I];g(t,e,I),e+=t.nodeSize}}findDiffStart(g,I=0){return jF(this,g,I)}findDiffEnd(g,I=this.size,e=g.size){return QF(this,g,I,e)}findIndex(g){if(g==0)return SB(0,g);if(g==this.size)return SB(this.content.length,g);if(g>this.size||g<0)throw new RangeError(`Position ${g} outside of fragment (${this})`);for(let I=0,e=0;;I++){let t=this.child(I),i=e+t.nodeSize;if(i>=g)return i==g?SB(I+1,i):SB(I,e);e=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(g=>g.toJSON()):null}static fromJSON(g,I){if(!I)return pi.empty;if(!Array.isArray(I))throw new RangeError("Invalid input for Fragment.fromJSON");return pi.fromArray(I.map(g.nodeFromJSON))}static fromArray(g){if(!g.length)return pi.empty;let I,e=0;for(let t=0;t<g.length;t++){let i=g[t];e+=i.nodeSize,t&&i.isText&&g[t-1].sameMarkup(i)?(I||(I=g.slice(0,t)),I[I.length-1]=i.withText(I[I.length-1].text+i.text)):I&&I.push(i)}return new pi(I||g,e)}static from(g){if(!g)return pi.empty;if(g instanceof pi)return g;if(Array.isArray(g))return this.fromArray(g);if(g.attrs)return new pi([g],g.nodeSize);throw new RangeError("Can not convert "+g+" to a Fragment"+(g.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};Mg.empty=new Mg([],0);const EX={index:0,offset:0};function SB(C,g){return EX.index=C,EX.offset=g,EX}function DB(C,g){if(C===g)return!0;if(!(C&&typeof C=="object")||!(g&&typeof g=="object"))return!1;let I=Array.isArray(C);if(Array.isArray(g)!=I)return!1;if(I){if(C.length!=g.length)return!1;for(let e=0;e<C.length;e++)if(!DB(C[e],g[e]))return!1}else{for(let e in C)if(!(e in g)||!DB(C[e],g[e]))return!1;for(let e in g)if(!(e in C))return!1}return!0}let YC=class XH{constructor(g,I){this.type=g,this.attrs=I}addToSet(g){let I,e=!1;for(let t=0;t<g.length;t++){let i=g[t];if(this.eq(i))return g;if(this.type.excludes(i.type))I||(I=g.slice(0,t));else{if(i.type.excludes(this.type))return g;!e&&i.type.rank>this.type.rank&&(I||(I=g.slice(0,t)),I.push(this),e=!0),I&&I.push(i)}}return I||(I=g.slice()),e||I.push(this),I}removeFromSet(g){for(let I=0;I<g.length;I++)if(this.eq(g[I]))return g.slice(0,I).concat(g.slice(I+1));return g}isInSet(g){for(let I=0;I<g.length;I++)if(this.eq(g[I]))return!0;return!1}eq(g){return this==g||this.type==g.type&&DB(this.attrs,g.attrs)}toJSON(){let g={type:this.type.name};for(let I in this.attrs){g.attrs=this.attrs;break}return g}static fromJSON(g,I){if(!I)throw new RangeError("Invalid input for Mark.fromJSON");let e=g.marks[I.type];if(!e)throw new RangeError(`There is no mark type ${I.type} in this schema`);let t=e.create(I.attrs);return e.checkAttrs(t.attrs),t}static sameSet(g,I){if(g==I)return!0;if(g.length!=I.length)return!1;for(let e=0;e<g.length;e++)if(!g[e].eq(I[e]))return!1;return!0}static setFrom(g){if(!g||Array.isArray(g)&&g.length==0)return XH.none;if(g instanceof XH)return[g];let I=g.slice();return I.sort((e,t)=>e.type.rank-t.type.rank),I}};YC.none=[];let vu=class extends Error{},vg=class Mb{constructor(g,I,e){this.content=g,this.openStart=I,this.openEnd=e}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(g,I){let e=PF(this.content,g+this.openStart,I,this.openStart+1,this.openEnd+1);return e&&new Mb(e,this.openStart,this.openEnd)}removeBetween(g,I){return new Mb(EF(this.content,g+this.openStart,I+this.openStart),this.openStart,this.openEnd)}eq(g){return this.content.eq(g.content)&&this.openStart==g.openStart&&this.openEnd==g.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let g={content:this.content.toJSON()};return this.openStart>0&&(g.openStart=this.openStart),this.openEnd>0&&(g.openEnd=this.openEnd),g}static fromJSON(g,I){if(!I)return Mb.empty;let e=I.openStart||0,t=I.openEnd||0;if(typeof e!="number"||typeof t!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Mb(Mg.fromJSON(g,I.content),e,t)}static maxOpen(g,I=!0){let e=0,t=0;for(let i=g.firstChild;i&&!i.isLeaf&&(I||!i.type.spec.isolating);i=i.firstChild)e++;for(let i=g.lastChild;i&&!i.isLeaf&&(I||!i.type.spec.isolating);i=i.lastChild)t++;return new Mb(g,e,t)}};vg.empty=new vg(Mg.empty,0,0);function EF(C,g,I){let{index:e,offset:t}=C.findIndex(g),i=C.maybeChild(e),{index:A,offset:n}=C.findIndex(I);if(t==g||i.isText){if(n!=I&&!C.child(A).isText)throw new RangeError("Removing non-flat range");return C.cut(0,g).append(C.cut(I))}if(e!=A)throw new RangeError("Removing non-flat range");return C.replaceChild(e,i.copy(EF(i.content,g-t-1,I-t-1)))}function PF(C,g,I,e,t,i){let{index:A,offset:n}=C.findIndex(g),s=C.maybeChild(A);if(n==g||s.isText)return i&&e<=0&&t<=0&&!i.canReplace(A,A,I)?null:C.cut(0,g).append(I).append(C.cut(g));let o=PF(s.content,g-n-1,I,A==0?e-1:0,A==C.childCount-1?t-1:0,s);return o&&C.replaceChild(A,s.copy(o))}function L7g(C,g,I){if(I.openStart>C.depth)throw new vu("Inserted content deeper than insertion position");if(C.depth-I.openStart!=g.depth-I.openEnd)throw new vu("Inconsistent open depths");return _F(C,g,I,0)}function _F(C,g,I,e){let t=C.index(e),i=C.node(e);if(t==g.index(e)&&e<C.depth-I.openStart){let A=_F(C,g,I,e+1);return i.copy(i.content.replaceChild(t,A))}else if(I.content.size)if(!I.openStart&&!I.openEnd&&C.depth==e&&g.depth==e){let A=C.parent,n=A.content;return Zc(A,n.cut(0,C.parentOffset).append(I.content).append(n.cut(g.parentOffset)))}else{let{start:A,end:n}=v7g(I,C);return Zc(i,$F(C,A,n,g,e))}else return Zc(i,kB(C,g,e))}function qF(C,g){if(!g.type.compatibleContent(C.type))throw new vu("Cannot join "+g.type.name+" onto "+C.type.name)}function PX(C,g,I){let e=C.node(I);return qF(e,g.node(I)),e}function rc(C,g){let I=g.length-1;I>=0&&C.isText&&C.sameMarkup(g[I])?g[I]=C.withText(g[I].text+C.text):g.push(C)}function ju(C,g,I,e){let t=(g||C).node(I),i=0,A=g?g.index(I):t.childCount;C&&(i=C.index(I),C.depth>I?i++:C.textOffset&&(rc(C.nodeAfter,e),i++));for(let n=i;n<A;n++)rc(t.child(n),e);g&&g.depth==I&&g.textOffset&&rc(g.nodeBefore,e)}function Zc(C,g){if(!C.type.validContent(g))throw new vu("Invalid content for node "+C.type.name);return C.copy(g)}function $F(C,g,I,e,t){let i=C.depth>t&&PX(C,g,t+1),A=e.depth>t&&PX(I,e,t+1),n=[];return ju(null,C,t,n),i&&A&&g.index(t)==I.index(t)?(qF(i,A),rc(Zc(i,$F(C,g,I,e,t+1)),n)):(i&&rc(Zc(i,kB(C,g,t+1)),n),ju(g,I,t,n),A&&rc(Zc(A,kB(I,e,t+1)),n)),ju(e,null,t,n),new Mg(n)}function kB(C,g,I){let e=[];if(ju(null,C,I,e),C.depth>I){let t=PX(C,g,I+1);rc(Zc(t,kB(C,g,I+1)),e)}return ju(g,null,I,e),new Mg(e)}function v7g(C,g){let I=g.depth-C.openStart,t=g.node(I).copy(C.content);for(let i=I-1;i>=0;i--)t=g.node(i).copy(Mg.from(t));return{start:t.resolveNoCache(C.openStart+I),end:t.resolveNoCache(t.content.size-C.openEnd-I)}}class Qu{constructor(g,I,e){this.pos=g,this.path=I,this.parentOffset=e,this.depth=I.length/3-1}resolveDepth(g){return g==null?this.depth:g<0?this.depth+g:g}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(g){return this.path[this.resolveDepth(g)*3]}index(g){return this.path[this.resolveDepth(g)*3+1]}indexAfter(g){return g=this.resolveDepth(g),this.index(g)+(g==this.depth&&!this.textOffset?0:1)}start(g){return g=this.resolveDepth(g),g==0?0:this.path[g*3-1]+1}end(g){return g=this.resolveDepth(g),this.start(g)+this.node(g).content.size}before(g){if(g=this.resolveDepth(g),!g)throw new RangeError("There is no position before the top-level node");return g==this.depth+1?this.pos:this.path[g*3-1]}after(g){if(g=this.resolveDepth(g),!g)throw new RangeError("There is no position after the top-level node");return g==this.depth+1?this.pos:this.path[g*3-1]+this.path[g*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let g=this.parent,I=this.index(this.depth);if(I==g.childCount)return null;let e=this.pos-this.path[this.path.length-1],t=g.child(I);return e?g.child(I).cut(e):t}get nodeBefore(){let g=this.index(this.depth),I=this.pos-this.path[this.path.length-1];return I?this.parent.child(g).cut(0,I):g==0?null:this.parent.child(g-1)}posAtIndex(g,I){I=this.resolveDepth(I);let e=this.path[I*3],t=I==0?0:this.path[I*3-1]+1;for(let i=0;i<g;i++)t+=e.child(i).nodeSize;return t}marks(){let g=this.parent,I=this.index();if(g.content.size==0)return YC.none;if(this.textOffset)return g.child(I).marks;let e=g.maybeChild(I-1),t=g.maybeChild(I);if(!e){let n=e;e=t,t=n}let i=e.marks;for(var A=0;A<i.length;A++)i[A].type.spec.inclusive===!1&&(!t||!i[A].isInSet(t.marks))&&(i=i[A--].removeFromSet(i));return i}marksAcross(g){let I=this.parent.maybeChild(this.index());if(!I||!I.isInline)return null;let e=I.marks,t=g.parent.maybeChild(g.index());for(var i=0;i<e.length;i++)e[i].type.spec.inclusive===!1&&(!t||!e[i].isInSet(t.marks))&&(e=e[i--].removeFromSet(e));return e}sharedDepth(g){for(let I=this.depth;I>0;I--)if(this.start(I)<=g&&this.end(I)>=g)return I;return 0}blockRange(g=this,I){if(g.pos<this.pos)return g.blockRange(this);for(let e=this.depth-(this.parent.inlineContent||this.pos==g.pos?1:0);e>=0;e--)if(g.pos<=this.end(e)&&(!I||I(this.node(e))))return new FB(this,g,e);return null}sameParent(g){return this.pos-this.parentOffset==g.pos-g.parentOffset}max(g){return g.pos>this.pos?g:this}min(g){return g.pos<this.pos?g:this}toString(){let g="";for(let I=1;I<=this.depth;I++)g+=(g?"/":"")+this.node(I).type.name+"_"+this.index(I-1);return g+":"+this.parentOffset}static resolve(g,I){if(!(I>=0&&I<=g.content.size))throw new RangeError("Position "+I+" out of range");let e=[],t=0,i=I;for(let A=g;;){let{index:n,offset:s}=A.content.findIndex(i),o=i-s;if(e.push(A,n,t+s),!o||(A=A.child(n),A.isText))break;i=o-1,t+=s+1}return new Qu(I,e,i)}static resolveCached(g,I){let e=gK.get(g);if(e)for(let i=0;i<e.elts.length;i++){let A=e.elts[i];if(A.pos==I)return A}else gK.set(g,e=new j7g);let t=e.elts[e.i]=Qu.resolve(g,I);return e.i=(e.i+1)%Q7g,t}}class j7g{constructor(){this.elts=[],this.i=0}}const Q7g=12,gK=new WeakMap;class FB{constructor(g,I,e){this.$from=g,this.$to=I,this.depth=e}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 O7g=Object.create(null);let la=class RH{constructor(g,I,e,t=YC.none){this.type=g,this.attrs=I,this.marks=t,this.content=e||Mg.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(g){return this.content.child(g)}maybeChild(g){return this.content.maybeChild(g)}forEach(g){this.content.forEach(g)}nodesBetween(g,I,e,t=0){this.content.nodesBetween(g,I,e,t,this)}descendants(g){this.nodesBetween(0,this.content.size,g)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(g,I,e,t){return this.content.textBetween(g,I,e,t)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(g){return this==g||this.sameMarkup(g)&&this.content.eq(g.content)}sameMarkup(g){return this.hasMarkup(g.type,g.attrs,g.marks)}hasMarkup(g,I,e){return this.type==g&&DB(this.attrs,I||g.defaultAttrs||O7g)&&YC.sameSet(this.marks,e||YC.none)}copy(g=null){return g==this.content?this:new RH(this.type,this.attrs,g,this.marks)}mark(g){return g==this.marks?this:new RH(this.type,this.attrs,this.content,g)}cut(g,I=this.content.size){return g==0&&I==this.content.size?this:this.copy(this.content.cut(g,I))}slice(g,I=this.content.size,e=!1){if(g==I)return vg.empty;let t=this.resolve(g),i=this.resolve(I),A=e?0:t.sharedDepth(I),n=t.start(A),o=t.node(A).content.cut(t.pos-n,i.pos-n);return new vg(o,t.depth-A,i.depth-A)}replace(g,I,e){return L7g(this.resolve(g),this.resolve(I),e)}nodeAt(g){for(let I=this;;){let{index:e,offset:t}=I.content.findIndex(g);if(I=I.maybeChild(e),!I)return null;if(t==g||I.isText)return I;g-=t+1}}childAfter(g){let{index:I,offset:e}=this.content.findIndex(g);return{node:this.content.maybeChild(I),index:I,offset:e}}childBefore(g){if(g==0)return{node:null,index:0,offset:0};let{index:I,offset:e}=this.content.findIndex(g);if(e<g)return{node:this.content.child(I),index:I,offset:e};let t=this.content.child(I-1);return{node:t,index:I-1,offset:e-t.nodeSize}}resolve(g){return Qu.resolveCached(this,g)}resolveNoCache(g){return Qu.resolve(this,g)}rangeHasMark(g,I,e){let t=!1;return I>g&&this.nodesBetween(g,I,i=>(e.isInSet(i.marks)&&(t=!0),!t)),t}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 g=this.type.name;return this.content.size&&(g+="("+this.content.toStringInner()+")"),IK(this.marks,g)}contentMatchAt(g){let I=this.type.contentMatch.matchFragment(this.content,0,g);if(!I)throw new Error("Called contentMatchAt on a node with invalid content");return I}canReplace(g,I,e=Mg.empty,t=0,i=e.childCount){let A=this.contentMatchAt(g).matchFragment(e,t,i),n=A&&A.matchFragment(this.content,I);if(!n||!n.validEnd)return!1;for(let s=t;s<i;s++)if(!this.type.allowsMarks(e.child(s).marks))return!1;return!0}canReplaceWith(g,I,e,t){if(t&&!this.type.allowsMarks(t))return!1;let i=this.contentMatchAt(g).matchType(e),A=i&&i.matchFragment(this.content,I);return A?A.validEnd:!1}canAppend(g){return g.content.size?this.canReplace(this.childCount,this.childCount,g.content):this.type.compatibleContent(g.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let g=YC.none;for(let I=0;I<this.marks.length;I++){let e=this.marks[I];e.type.checkAttrs(e.attrs),g=e.addToSet(g)}if(!YC.sameSet(g,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(I=>I.type.name)}`);this.content.forEach(I=>I.check())}toJSON(){let g={type:this.type.name};for(let I in this.attrs){g.attrs=this.attrs;break}return this.content.size&&(g.content=this.content.toJSON()),this.marks.length&&(g.marks=this.marks.map(I=>I.toJSON())),g}static fromJSON(g,I){if(!I)throw new RangeError("Invalid input for Node.fromJSON");let e;if(I.marks){if(!Array.isArray(I.marks))throw new RangeError("Invalid mark data for Node.fromJSON");e=I.marks.map(g.markFromJSON)}if(I.type=="text"){if(typeof I.text!="string")throw new RangeError("Invalid text node in JSON");return g.text(I.text,e)}let t=Mg.fromJSON(g,I.content),i=g.nodeType(I.type).create(I.attrs,t,e);return i.type.checkAttrs(i.attrs),i}};la.prototype.text=void 0;class KB extends la{constructor(g,I,e,t){if(super(g,I,null,t),!e)throw new RangeError("Empty text nodes are not allowed");this.text=e}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):IK(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(g,I){return this.text.slice(g,I)}get nodeSize(){return this.text.length}mark(g){return g==this.marks?this:new KB(this.type,this.attrs,this.text,g)}withText(g){return g==this.text?this:new KB(this.type,this.attrs,g,this.marks)}cut(g=0,I=this.text.length){return g==0&&I==this.text.length?this:this.withText(this.text.slice(g,I))}eq(g){return this.sameMarkup(g)&&this.text==g.text}toJSON(){let g=super.toJSON();return g.text=this.text,g}}function IK(C,g){for(let I=C.length-1;I>=0;I--)g=C[I].type.name+"("+g+")";return g}class bc{constructor(g){this.validEnd=g,this.next=[],this.wrapCache=[]}static parse(g,I){let e=new U7g(g,I);if(e.next==null)return bc.empty;let t=CK(e);e.next&&e.err("Unexpected trailing text");let i=IEg(gEg(t));return CEg(i,e),i}matchType(g){for(let I=0;I<this.next.length;I++)if(this.next[I].type==g)return this.next[I].next;return null}matchFragment(g,I=0,e=g.childCount){let t=this;for(let i=I;t&&i<e;i++)t=t.matchType(g.child(i).type);return t}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let g=0;g<this.next.length;g++){let{type:I}=this.next[g];if(!(I.isText||I.hasRequiredAttrs()))return I}return null}compatible(g){for(let I=0;I<this.next.length;I++)for(let e=0;e<g.next.length;e++)if(this.next[I].type==g.next[e].type)return!0;return!1}fillBefore(g,I=!1,e=0){let t=[this];function i(A,n){let s=A.matchFragment(g,e);if(s&&(!I||s.validEnd))return Mg.from(n.map(o=>o.createAndFill()));for(let o=0;o<A.next.length;o++){let{type:a,next:d}=A.next[o];if(!(a.isText||a.hasRequiredAttrs())&&t.indexOf(d)==-1){t.push(d);let m=i(d,n.concat(a));if(m)return m}}return null}return i(this,[])}findWrapping(g){for(let e=0;e<this.wrapCache.length;e+=2)if(this.wrapCache[e]==g)return this.wrapCache[e+1];let I=this.computeWrapping(g);return this.wrapCache.push(g,I),I}computeWrapping(g){let I=Object.create(null),e=[{match:this,type:null,via:null}];for(;e.length;){let t=e.shift(),i=t.match;if(i.matchType(g)){let A=[];for(let n=t;n.type;n=n.via)A.push(n.type);return A.reverse()}for(let A=0;A<i.next.length;A++){let{type:n,next:s}=i.next[A];!n.isLeaf&&!n.hasRequiredAttrs()&&!(n.name in I)&&(!t.type||s.validEnd)&&(e.push({match:n.contentMatch,type:n,via:t}),I[n.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(g){if(g>=this.next.length)throw new RangeError(`There's no ${g}th edge in this content match`);return this.next[g]}toString(){let g=[];function I(e){g.push(e);for(let t=0;t<e.next.length;t++)g.indexOf(e.next[t].next)==-1&&I(e.next[t].next)}return I(this),g.map((e,t)=>{let i=t+(e.validEnd?"*":" ")+" ";for(let A=0;A<e.next.length;A++)i+=(A?", ":"")+e.next[A].type.name+"->"+g.indexOf(e.next[A].next);return i}).join(`
1619
1619
  `)}}bc.empty=new bc(!0);class U7g{constructor(g,I){this.string=g,this.nodeTypes=I,this.inline=null,this.pos=0,this.tokens=g.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(g){return this.next==g&&(this.pos++||!0)}err(g){throw new SyntaxError(g+" (in content expression '"+this.string+"')")}}function CK(C){let g=[];do g.push(E7g(C));while(C.eat("|"));return g.length==1?g[0]:{type:"choice",exprs:g}}function E7g(C){let g=[];do g.push(P7g(C));while(C.next&&C.next!=")"&&C.next!="|");return g.length==1?g[0]:{type:"seq",exprs:g}}function P7g(C){let g=$7g(C);for(;;)if(C.eat("+"))g={type:"plus",expr:g};else if(C.eat("*"))g={type:"star",expr:g};else if(C.eat("?"))g={type:"opt",expr:g};else if(C.eat("{"))g=_7g(C,g);else break;return g}function eK(C){/\D/.test(C.next)&&C.err("Expected number, got '"+C.next+"'");let g=Number(C.next);return C.pos++,g}function _7g(C,g){let I=eK(C),e=I;return C.eat(",")&&(C.next!="}"?e=eK(C):e=-1),C.eat("}")||C.err("Unclosed braced range"),{type:"range",min:I,max:e,expr:g}}function q7g(C,g){let I=C.nodeTypes,e=I[g];if(e)return[e];let t=[];for(let i in I){let A=I[i];A.isInGroup(g)&&t.push(A)}return t.length==0&&C.err("No node type or group '"+g+"' found"),t}function $7g(C){if(C.eat("(")){let g=CK(C);return C.eat(")")||C.err("Missing closing paren"),g}else if(/\W/.test(C.next))C.err("Unexpected token '"+C.next+"'");else{let g=q7g(C,C.next).map(I=>(C.inline==null?C.inline=I.isInline:C.inline!=I.isInline&&C.err("Mixing inline and block content"),{type:"name",value:I}));return C.pos++,g.length==1?g[0]:{type:"choice",exprs:g}}}function gEg(C){let g=[[]];return t(i(C,0),I()),g;function I(){return g.push([])-1}function e(A,n,s){let o={term:s,to:n};return g[A].push(o),o}function t(A,n){A.forEach(s=>s.to=n)}function i(A,n){if(A.type=="choice")return A.exprs.reduce((s,o)=>s.concat(i(o,n)),[]);if(A.type=="seq")for(let s=0;;s++){let o=i(A.exprs[s],n);if(s==A.exprs.length-1)return o;t(o,n=I())}else if(A.type=="star"){let s=I();return e(n,s),t(i(A.expr,s),s),[e(s)]}else if(A.type=="plus"){let s=I();return t(i(A.expr,n),s),t(i(A.expr,s),s),[e(s)]}else{if(A.type=="opt")return[e(n)].concat(i(A.expr,n));if(A.type=="range"){let s=n;for(let o=0;o<A.min;o++){let a=I();t(i(A.expr,s),a),s=a}if(A.max==-1)t(i(A.expr,s),s);else for(let o=A.min;o<A.max;o++){let a=I();e(s,a),t(i(A.expr,s),a),s=a}return[e(s)]}else{if(A.type=="name")return[e(n,void 0,A.value)];throw new Error("Unknown expr type")}}}}function tK(C,g){return g-C}function iK(C,g){let I=[];return e(g),I.sort(tK);function e(t){let i=C[t];if(i.length==1&&!i[0].term)return e(i[0].to);I.push(t);for(let A=0;A<i.length;A++){let{term:n,to:s}=i[A];!n&&I.indexOf(s)==-1&&e(s)}}}function IEg(C){let g=Object.create(null);return I(iK(C,0));function I(e){let t=[];e.forEach(A=>{C[A].forEach(({term:n,to:s})=>{if(!n)return;let o;for(let a=0;a<t.length;a++)t[a][0]==n&&(o=t[a][1]);iK(C,s).forEach(a=>{o||t.push([n,o=[]]),o.indexOf(a)==-1&&o.push(a)})})});let i=g[e.join(",")]=new bc(e.indexOf(C.length-1)>-1);for(let A=0;A<t.length;A++){let n=t[A][1].sort(tK);i.next.push({type:t[A][0],next:g[n.join(",")]||I(n)})}return i}}function CEg(C,g){for(let I=0,e=[C];I<e.length;I++){let t=e[I],i=!t.validEnd,A=[];for(let n=0;n<t.next.length;n++){let{type:s,next:o}=t.next[n];A.push(s.name),i&&!(s.isText||s.hasRequiredAttrs())&&(i=!1),e.indexOf(o)==-1&&e.push(o)}i&&g.err("Only non-generatable nodes ("+A.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function AK(C){let g=Object.create(null);for(let I in C){let e=C[I];if(!e.hasDefault)return null;g[I]=e.default}return g}function nK(C,g){let I=Object.create(null);for(let e in C){let t=g&&g[e];if(t===void 0){let i=C[e];if(i.hasDefault)t=i.default;else throw new RangeError("No value supplied for attribute "+e)}I[e]=t}return I}function lK(C,g,I,e){for(let t in g)if(!(t in C))throw new RangeError(`Unsupported attribute ${t} for ${I} of type ${e}`);for(let t in C)C[t].validate&&C[t].validate(g[t])}function sK(C,g){let I=Object.create(null);if(g)for(let e in g)I[e]=new tEg(C,e,g[e]);return I}let oK=class dQ{constructor(g,I,e){this.name=g,this.schema=I,this.spec=e,this.markSet=null,this.groups=e.group?e.group.split(" "):[],this.attrs=sK(g,e.attrs),this.defaultAttrs=AK(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(e.inline||g=="text"),this.isText=g=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==bc.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(g){return this.groups.indexOf(g)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let g in this.attrs)if(this.attrs[g].isRequired)return!0;return!1}compatibleContent(g){return this==g||this.contentMatch.compatible(g.contentMatch)}computeAttrs(g){return!g&&this.defaultAttrs?this.defaultAttrs:nK(this.attrs,g)}create(g=null,I,e){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new la(this,this.computeAttrs(g),Mg.from(I),YC.setFrom(e))}createChecked(g=null,I,e){return I=Mg.from(I),this.checkContent(I),new la(this,this.computeAttrs(g),I,YC.setFrom(e))}createAndFill(g=null,I,e){if(g=this.computeAttrs(g),I=Mg.from(I),I.size){let A=this.contentMatch.fillBefore(I);if(!A)return null;I=A.append(I)}let t=this.contentMatch.matchFragment(I),i=t&&t.fillBefore(Mg.empty,!0);return i?new la(this,g,I.append(i),YC.setFrom(e)):null}validContent(g){let I=this.contentMatch.matchFragment(g);if(!I||!I.validEnd)return!1;for(let e=0;e<g.childCount;e++)if(!this.allowsMarks(g.child(e).marks))return!1;return!0}checkContent(g){if(!this.validContent(g))throw new RangeError(`Invalid content for node ${this.name}: ${g.toString().slice(0,50)}`)}checkAttrs(g){lK(this.attrs,g,"node",this.name)}allowsMarkType(g){return this.markSet==null||this.markSet.indexOf(g)>-1}allowsMarks(g){if(this.markSet==null)return!0;for(let I=0;I<g.length;I++)if(!this.allowsMarkType(g[I].type))return!1;return!0}allowedMarks(g){if(this.markSet==null)return g;let I;for(let e=0;e<g.length;e++)this.allowsMarkType(g[e].type)?I&&I.push(g[e]):I||(I=g.slice(0,e));return I?I.length?I:YC.none:g}static compile(g,I){let e=Object.create(null);g.forEach((i,A)=>e[i]=new dQ(i,I,A));let t=I.spec.topNode||"doc";if(!e[t])throw new RangeError("Schema is missing its top node type ('"+t+"')");if(!e.text)throw new RangeError("Every schema needs a 'text' type");for(let i in e.text.attrs)throw new RangeError("The text node type should not have attributes");return e}};function eEg(C,g,I){let e=I.split("|");return t=>{let i=t===null?"null":typeof t;if(e.indexOf(i)<0)throw new RangeError(`Expected value of type ${e} for attribute ${g} on type ${C}, got ${i}`)}}class tEg{constructor(g,I,e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default,this.validate=typeof e.validate=="string"?eEg(g,I,e.validate):e.validate}get isRequired(){return!this.hasDefault}}class zB{constructor(g,I,e,t){this.name=g,this.rank=I,this.schema=e,this.spec=t,this.attrs=sK(g,t.attrs),this.excluded=null;let i=AK(this.attrs);this.instance=i?new YC(this,i):null}create(g=null){return!g&&this.instance?this.instance:new YC(this,nK(this.attrs,g))}static compile(g,I){let e=Object.create(null),t=0;return g.forEach((i,A)=>e[i]=new zB(i,t++,I,A)),e}removeFromSet(g){for(var I=0;I<g.length;I++)g[I].type==this&&(g=g.slice(0,I).concat(g.slice(I+1)),I--);return g}isInSet(g){for(let I=0;I<g.length;I++)if(g[I].type==this)return g[I]}checkAttrs(g){lK(this.attrs,g,"mark",this.name)}excludes(g){return this.excluded.indexOf(g)>-1}}class aK{constructor(g){this.linebreakReplacement=null,this.cached=Object.create(null);let I=this.spec={};for(let t in g)I[t]=g[t];I.nodes=Zt.from(g.nodes),I.marks=Zt.from(g.marks||{}),this.nodes=oK.compile(this.spec.nodes,this),this.marks=zB.compile(this.spec.marks,this);let e=Object.create(null);for(let t in this.nodes){if(t in this.marks)throw new RangeError(t+" can not be both a node and a mark");let i=this.nodes[t],A=i.spec.content||"",n=i.spec.marks;if(i.contentMatch=e[A]||(e[A]=bc.parse(A,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=n=="_"?null:n?dK(this,n.split(" ")):n==""||!i.inlineContent?[]:null}for(let t in this.marks){let i=this.marks[t],A=i.spec.excludes;i.excluded=A==null?[i]:A==""?[]:dK(this,A.split(" "))}this.nodeFromJSON=t=>la.fromJSON(this,t),this.markFromJSON=t=>YC.fromJSON(this,t),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(g,I=null,e,t){if(typeof g=="string")g=this.nodeType(g);else if(g instanceof oK){if(g.schema!=this)throw new RangeError("Node type from different schema used ("+g.name+")")}else throw new RangeError("Invalid node type: "+g);return g.createChecked(I,e,t)}text(g,I){let e=this.nodes.text;return new KB(e,e.defaultAttrs,g,YC.setFrom(I))}mark(g,I){return typeof g=="string"&&(g=this.marks[g]),g.create(I)}nodeType(g){let I=this.nodes[g];if(!I)throw new RangeError("Unknown node type: "+g);return I}}function dK(C,g){let I=[];for(let e=0;e<g.length;e++){let t=g[e],i=C.marks[t],A=i;if(i)I.push(i);else for(let n in C.marks){let s=C.marks[n];(t=="_"||s.spec.group&&s.spec.group.split(" ").indexOf(t)>-1)&&I.push(A=s)}if(!A)throw new SyntaxError("Unknown mark type: '"+g[e]+"'")}return I}function iEg(C){return C.tag!=null}function AEg(C){return C.style!=null}class sa{constructor(g,I){this.schema=g,this.rules=I,this.tags=[],this.styles=[];let e=this.matchedStyles=[];I.forEach(t=>{if(iEg(t))this.tags.push(t);else if(AEg(t)){let i=/[^=]*/.exec(t.style)[0];e.indexOf(i)<0&&e.push(i),this.styles.push(t)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let i=g.nodes[t.node];return i.contentMatch.matchType(i)})}parse(g,I={}){let e=new ZK(this,I,!1);return e.addAll(g,YC.none,I.from,I.to),e.finish()}parseSlice(g,I={}){let e=new ZK(this,I,!0);return e.addAll(g,YC.none,I.from,I.to),vg.maxOpen(e.finish())}matchTag(g,I,e){for(let t=e?this.tags.indexOf(e)+1:0;t<this.tags.length;t++){let i=this.tags[t];if(sEg(g,i.tag)&&(i.namespace===void 0||g.namespaceURI==i.namespace)&&(!i.context||I.matchesContext(i.context))){if(i.getAttrs){let A=i.getAttrs(g);if(A===!1)continue;i.attrs=A||void 0}return i}}}matchStyle(g,I,e,t){for(let i=t?this.styles.indexOf(t)+1:0;i<this.styles.length;i++){let A=this.styles[i],n=A.style;if(!(n.indexOf(g)!=0||A.context&&!e.matchesContext(A.context)||n.length>g.length&&(n.charCodeAt(g.length)!=61||n.slice(g.length+1)!=I))){if(A.getAttrs){let s=A.getAttrs(I);if(s===!1)continue;A.attrs=s||void 0}return A}}}static schemaRules(g){let I=[];function e(t){let i=t.priority==null?50:t.priority,A=0;for(;A<I.length;A++){let n=I[A];if((n.priority==null?50:n.priority)<i)break}I.splice(A,0,t)}for(let t in g.marks){let i=g.marks[t].spec.parseDOM;i&&i.forEach(A=>{e(A=bK(A)),A.mark||A.ignore||A.clearMark||(A.mark=t)})}for(let t in g.nodes){let i=g.nodes[t].spec.parseDOM;i&&i.forEach(A=>{e(A=bK(A)),A.node||A.ignore||A.mark||(A.node=t)})}return I}static fromSchema(g){return g.cached.domParser||(g.cached.domParser=new sa(g,sa.schemaRules(g)))}}const cK={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},nEg={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},mK={ol:!0,ul:!0},Ou=1,_X=2,Uu=4;function rK(C,g,I){return g!=null?(g?Ou:0)|(g==="full"?_X:0):C&&C.whitespace=="pre"?Ou|_X:I&~Uu}class JB{constructor(g,I,e,t,i,A){this.type=g,this.attrs=I,this.marks=e,this.solid=t,this.options=A,this.content=[],this.activeMarks=YC.none,this.match=i||(A&Uu?null:g.contentMatch)}findWrapping(g){if(!this.match){if(!this.type)return[];let I=this.type.contentMatch.fillBefore(Mg.from(g));if(I)this.match=this.type.contentMatch.matchFragment(I);else{let e=this.type.contentMatch,t;return(t=e.findWrapping(g.type))?(this.match=e,t):null}}return this.match.findWrapping(g.type)}finish(g){if(!(this.options&Ou)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let i=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-t[0].length))}}let I=Mg.from(this.content);return!g&&this.match&&(I=I.append(this.match.fillBefore(Mg.empty,!0))),this.type?this.type.create(this.attrs,I,this.marks):I}inlineContext(g){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:g.parentNode&&!cK.hasOwnProperty(g.parentNode.nodeName.toLowerCase())}}class ZK{constructor(g,I,e){this.parser=g,this.options=I,this.isOpen=e,this.open=0,this.localPreserveWS=!1;let t=I.topNode,i,A=rK(null,I.preserveWhitespace,0)|(e?Uu:0);t?i=new JB(t.type,t.attrs,YC.none,!0,I.topMatch||t.type.contentMatch,A):e?i=new JB(null,null,YC.none,!0,null,A):i=new JB(g.schema.topNodeType,null,YC.none,!0,null,A),this.nodes=[i],this.find=I.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(g,I){g.nodeType==3?this.addTextNode(g,I):g.nodeType==1&&this.addElement(g,I)}addTextNode(g,I){let e=g.nodeValue,t=this.top,i=t.options&_X?"full":this.localPreserveWS||(t.options&Ou)>0,{schema:A}=this.parser;if(i==="full"||t.inlineContext(g)||/[^ \t\r\n\u000c]/.test(e)){if(i)if(i==="full")e=e.replace(/\r\n?/g,`
1620
1620
  `);else if(A.linebreakReplacement&&/[\r\n]/.test(e)&&this.top.findWrapping(A.linebreakReplacement.create())){let n=e.split(/\r?\n|\r/);for(let s=0;s<n.length;s++)s&&this.insertNode(A.linebreakReplacement.create(),I,!0),n[s]&&this.insertNode(A.text(n[s]),I,!/\S/.test(n[s]));e=""}else e=e.replace(/\r?\n|\r/g," ");else if(e=e.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(e)&&this.open==this.nodes.length-1){let n=t.content[t.content.length-1],s=g.previousSibling;(!n||s&&s.nodeName=="BR"||n.isText&&/[ \t\r\n\u000c]$/.test(n.text))&&(e=e.slice(1))}e&&this.insertNode(A.text(e),I,!/\S/.test(e)),this.findInText(g)}else this.findInside(g)}addElement(g,I,e){let t=this.localPreserveWS,i=this.top;(g.tagName=="PRE"||/pre/.test(g.style&&g.style.whiteSpace))&&(this.localPreserveWS=!0);let A=g.nodeName.toLowerCase(),n;mK.hasOwnProperty(A)&&this.parser.normalizeLists&&lEg(g);let s=this.options.ruleFromNode&&this.options.ruleFromNode(g)||(n=this.parser.matchTag(g,this,e));g:if(s?s.ignore:nEg.hasOwnProperty(A))this.findInside(g),this.ignoreFallback(g,I);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(g=s.skip);let o,a=this.needsBlock;if(cK.hasOwnProperty(A))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),o=!0,i.type||(this.needsBlock=!0);else if(!g.firstChild){this.leafFallback(g,I);break g}let d=s&&s.skip?I:this.readStyles(g,I);d&&this.addAll(g,d),o&&this.sync(i),this.needsBlock=a}else{let o=this.readStyles(g,I);o&&this.addElementByRule(g,s,o,s.consuming===!1?n:void 0)}this.localPreserveWS=t}leafFallback(g,I){g.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(g.ownerDocument.createTextNode(`
1621
1621
  `),I)}ignoreFallback(g,I){g.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),I,!0)}readStyles(g,I){let e=g.style;if(e&&e.length)for(let t=0;t<this.parser.matchedStyles.length;t++){let i=this.parser.matchedStyles[t],A=e.getPropertyValue(i);if(A)for(let n=void 0;;){let s=this.parser.matchStyle(i,A,this,n);if(!s)break;if(s.ignore)return null;if(s.clearMark?I=I.filter(o=>!s.clearMark(o)):I=I.concat(this.parser.schema.marks[s.mark].create(s.attrs)),s.consuming===!1)n=s;else break}}return I}addElementByRule(g,I,e,t){let i,A;if(I.node)if(A=this.parser.schema.nodes[I.node],A.isLeaf)this.insertNode(A.create(I.attrs),e,g.nodeName=="BR")||this.leafFallback(g,e);else{let s=this.enter(A,I.attrs||null,e,I.preserveWhitespace);s&&(i=!0,e=s)}else{let s=this.parser.schema.marks[I.mark];e=e.concat(s.create(I.attrs))}let n=this.top;if(A&&A.isLeaf)this.findInside(g);else if(t)this.addElement(g,e,t);else if(I.getContent)this.findInside(g),I.getContent(g,this.parser.schema).forEach(s=>this.insertNode(s,e,!1));else{let s=g;typeof I.contentElement=="string"?s=g.querySelector(I.contentElement):typeof I.contentElement=="function"?s=I.contentElement(g):I.contentElement&&(s=I.contentElement),this.findAround(g,s,!0),this.addAll(s,e),this.findAround(g,s,!1)}i&&this.sync(n)&&this.open--}addAll(g,I,e,t){let i=e||0;for(let A=e?g.childNodes[e]:g.firstChild,n=t==null?null:g.childNodes[t];A!=n;A=A.nextSibling,++i)this.findAtPoint(g,i),this.addDOM(A,I);this.findAtPoint(g,i)}findPlace(g,I,e){let t,i;for(let A=this.open,n=0;A>=0;A--){let s=this.nodes[A],o=s.findWrapping(g);if(o&&(!t||t.length>o.length+n)&&(t=o,i=s,!o.length))break;if(s.solid){if(e)break;n+=2}}if(!t)return null;this.sync(i);for(let A=0;A<t.length;A++)I=this.enterInner(t[A],null,I,!1);return I}insertNode(g,I,e){if(g.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(I=this.enterInner(i,null,I))}let t=this.findPlace(g,I,e);if(t){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(g.type));let A=YC.none;for(let n of t.concat(g.marks))(i.type?i.type.allowsMarkType(n.type):uK(n.type,g.type))&&(A=n.addToSet(A));return i.content.push(g.mark(A)),!0}return!1}enter(g,I,e,t){let i=this.findPlace(g.create(I),e,!1);return i&&(i=this.enterInner(g,I,e,!0,t)),i}enterInner(g,I,e,t=!1,i){this.closeExtra();let A=this.top;A.match=A.match&&A.match.matchType(g);let n=rK(g,i,A.options);A.options&Uu&&A.content.length==0&&(n|=Uu);let s=YC.none;return e=e.filter(o=>(A.type?A.type.allowsMarkType(o.type):uK(o.type,g))?(s=o.addToSet(s),!1):!0),this.nodes.push(new JB(g,I,s,t,null,n)),this.open++,e}closeExtra(g=!1){let I=this.nodes.length-1;if(I>this.open){for(;I>this.open;I--)this.nodes[I-1].content.push(this.nodes[I].finish(g));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(g){for(let I=this.open;I>=0;I--){if(this.nodes[I]==g)return this.open=I,!0;this.localPreserveWS&&(this.nodes[I].options|=Ou)}return!1}get currentPos(){this.closeExtra();let g=0;for(let I=this.open;I>=0;I--){let e=this.nodes[I].content;for(let t=e.length-1;t>=0;t--)g+=e[t].nodeSize;I&&g++}return g}findAtPoint(g,I){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].node==g&&this.find[e].offset==I&&(this.find[e].pos=this.currentPos)}findInside(g){if(this.find)for(let I=0;I<this.find.length;I++)this.find[I].pos==null&&g.nodeType==1&&g.contains(this.find[I].node)&&(this.find[I].pos=this.currentPos)}findAround(g,I,e){if(g!=I&&this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&g.nodeType==1&&g.contains(this.find[t].node)&&I.compareDocumentPosition(this.find[t].node)&(e?2:4)&&(this.find[t].pos=this.currentPos)}findInText(g){if(this.find)for(let I=0;I<this.find.length;I++)this.find[I].node==g&&(this.find[I].pos=this.currentPos-(g.nodeValue.length-this.find[I].offset))}matchesContext(g){if(g.indexOf("|")>-1)return g.split(/\s*\|\s*/).some(this.matchesContext,this);let I=g.split("/"),e=this.options.context,t=!this.isOpen&&(!e||e.parent.type==this.nodes[0].type),i=-(e?e.depth+1:0)+(t?0:1),A=(n,s)=>{for(;n>=0;n--){let o=I[n];if(o==""){if(n==I.length-1||n==0)continue;for(;s>=i;s--)if(A(n-1,s))return!0;return!1}else{let a=s>0||s==0&&t?this.nodes[s].type:e&&s>=i?e.node(s-i).type:null;if(!a||a.name!=o&&!a.isInGroup(o))return!1;s--}}return!0};return A(I.length-1,this.open)}textblockFromContext(){let g=this.options.context;if(g)for(let I=g.depth;I>=0;I--){let e=g.node(I).contentMatchAt(g.indexAfter(I)).defaultType;if(e&&e.isTextblock&&e.defaultAttrs)return e}for(let I in this.parser.schema.nodes){let e=this.parser.schema.nodes[I];if(e.isTextblock&&e.defaultAttrs)return e}}}function lEg(C){for(let g=C.firstChild,I=null;g;g=g.nextSibling){let e=g.nodeType==1?g.nodeName.toLowerCase():null;e&&mK.hasOwnProperty(e)&&I?(I.appendChild(g),g=I):e=="li"?I=g:e&&(I=null)}}function sEg(C,g){return(C.matches||C.msMatchesSelector||C.webkitMatchesSelector||C.mozMatchesSelector).call(C,g)}function bK(C){let g={};for(let I in C)g[I]=C[I];return g}function uK(C,g){let I=g.schema.nodes;for(let e in I){let t=I[e];if(!t.allowsMarkType(C))continue;let i=[],A=n=>{i.push(n);for(let s=0;s<n.edgeCount;s++){let{type:o,next:a}=n.edge(s);if(o==g||i.indexOf(a)<0&&A(a))return!0}};if(A(t.contentMatch))return!0}}class uc{constructor(g,I){this.nodes=g,this.marks=I}serializeFragment(g,I={},e){e||(e=xB(I).createDocumentFragment());let t=e,i=[];return g.forEach(A=>{if(i.length||A.marks.length){let n=0,s=0;for(;n<i.length&&s<A.marks.length;){let o=A.marks[s];if(!this.marks[o.type.name]){s++;continue}if(!o.eq(i[n][0])||o.type.spec.spanning===!1)break;n++,s++}for(;n<i.length;)t=i.pop()[1];for(;s<A.marks.length;){let o=A.marks[s++],a=this.serializeMark(o,A.isInline,I);a&&(i.push([o,t]),t.appendChild(a.dom),t=a.contentDOM||a.dom)}}t.appendChild(this.serializeNodeInner(A,I))}),e}serializeNodeInner(g,I){if(g.isText)return xB(I).createTextNode(g.text);let{dom:e,contentDOM:t}=TB(xB(I),this.nodes[g.type.name](g),null,g.attrs);if(t){if(g.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(g.content,I,t)}return e}serializeNode(g,I={}){let e=this.serializeNodeInner(g,I);for(let t=g.marks.length-1;t>=0;t--){let i=this.serializeMark(g.marks[t],g.isInline,I);i&&((i.contentDOM||i.dom).appendChild(e),e=i.dom)}return e}serializeMark(g,I,e={}){let t=this.marks[g.type.name];return t&&TB(xB(e),t(g,I),null,g.attrs)}static renderSpec(g,I,e=null,t){return typeof I=="string"?{dom:g.createTextNode(I)}:TB(g,I,e,t)}static fromSchema(g){return g.cached.domSerializer||(g.cached.domSerializer=new uc(this.nodesFromSchema(g),this.marksFromSchema(g)))}static nodesFromSchema(g){let I=hK(g.nodes);return I.text||(I.text=e=>e.text),I}static marksFromSchema(g){return hK(g.marks)}}function hK(C){let g={};for(let I in C){let e=C[I].spec.toDOM;e&&(g[I]=e)}return g}function xB(C){return C.document||window.document}const GK=new WeakMap;function oEg(C){let g=GK.get(C);return g===void 0&&GK.set(C,g=aEg(C)),g}function aEg(C){let g=null;function I(e){if(e&&typeof e=="object")if(Array.isArray(e))if(typeof e[0]=="string")g||(g=[]),g.push(e);else for(let t=0;t<e.length;t++)I(e[t]);else for(let t in e)I(e[t])}return I(C),g}function TB(C,g,I,e){if(g.nodeType==1)return{dom:g};if(g.dom&&g.dom.nodeType==1)return g;let t=g[0],i;if(typeof t!="string")throw new RangeError("Invalid array passed to renderSpec");if(e&&(i=oEg(e))&&i.indexOf(g)>-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 A=t.indexOf(" ");A>0&&(I=t.slice(0,A),t=t.slice(A+1));let n,s=I?C.createElementNS(I,t):C.createElement(t),o=g[1],a=1;if(o&&typeof o=="object"&&o.nodeType==null&&!Array.isArray(o)){a=2;for(let d in o)if(o[d]!=null){let m=d.indexOf(" ");m>0?s.setAttributeNS(d.slice(0,m),d.slice(m+1),o[d]):d=="style"&&s.style?s.style.cssText=o[d]:s.setAttribute(d,o[d])}}for(let d=a;d<g.length;d++){let m=g[d];if(m===0){if(d<g.length-1||d>a)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}else if(typeof m=="string")s.appendChild(C.createTextNode(m));else{let{dom:Z,contentDOM:u}=TB(C,m,I,e);if(s.appendChild(Z),u){if(n)throw new RangeError("Multiple content holes");n=u}}}return{dom:s,contentDOM:n}}const wK=65535,WK=Math.pow(2,16);function dEg(C,g){return C+g*WK}function BK(C){return C&wK}function cEg(C){return(C-(C&wK))/WK}const pK=1,YK=2,LB=4,yK=8;let qX=class{constructor(g,I,e){this.pos=g,this.delInfo=I,this.recover=e}get deleted(){return(this.delInfo&yK)>0}get deletedBefore(){return(this.delInfo&(pK|LB))>0}get deletedAfter(){return(this.delInfo&(YK|LB))>0}get deletedAcross(){return(this.delInfo&LB)>0}},hc=class Hb{constructor(g,I=!1){if(this.ranges=g,this.inverted=I,!g.length&&Hb.empty)return Hb.empty}recover(g){let I=0,e=BK(g);if(!this.inverted)for(let t=0;t<e;t++)I+=this.ranges[t*3+2]-this.ranges[t*3+1];return this.ranges[e*3]+I+cEg(g)}mapResult(g,I=1){return this._map(g,I,!1)}map(g,I=1){return this._map(g,I,!0)}_map(g,I,e){let t=0,i=this.inverted?2:1,A=this.inverted?1:2;for(let n=0;n<this.ranges.length;n+=3){let s=this.ranges[n]-(this.inverted?t:0);if(s>g)break;let o=this.ranges[n+i],a=this.ranges[n+A],d=s+o;if(g<=d){let m=o?g==s?-1:g==d?1:I:I,Z=s+t+(m<0?0:a);if(e)return Z;let u=g==(I<0?s:d)?null:dEg(n/3,g-s),h=g==s?YK:g==d?pK:LB;return(I<0?g!=s:g!=d)&&(h|=yK),new qX(Z,h,u)}t+=a-o}return e?g+t:new qX(g+t,0,null)}touches(g,I){let e=0,t=BK(I),i=this.inverted?2:1,A=this.inverted?1:2;for(let n=0;n<this.ranges.length;n+=3){let s=this.ranges[n]-(this.inverted?e:0);if(s>g)break;let o=this.ranges[n+i],a=s+o;if(g<=a&&n==t*3)return!0;e+=this.ranges[n+A]-o}return!1}forEach(g){let I=this.inverted?2:1,e=this.inverted?1:2;for(let t=0,i=0;t<this.ranges.length;t+=3){let A=this.ranges[t],n=A-(this.inverted?i:0),s=A+(this.inverted?0:i),o=this.ranges[t+I],a=this.ranges[t+e];g(n,n+o,s,s+a),i+=a-o}}invert(){return new Hb(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(g){return g==0?Hb.empty:new Hb(g<0?[0,-g,0]:[0,0,g])}};hc.empty=new hc([]);class Eu{constructor(g,I,e=0,t=g?g.length:0){this.mirror=I,this.from=e,this.to=t,this._maps=g||[],this.ownData=!(g||I)}get maps(){return this._maps}slice(g=0,I=this.maps.length){return new Eu(this._maps,this.mirror,g,I)}appendMap(g,I){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(g),I!=null&&this.setMirror(this._maps.length-1,I)}appendMapping(g){for(let I=0,e=this._maps.length;I<g._maps.length;I++){let t=g.getMirror(I);this.appendMap(g._maps[I],t!=null&&t<I?e+t:void 0)}}getMirror(g){if(this.mirror){for(let I=0;I<this.mirror.length;I++)if(this.mirror[I]==g)return this.mirror[I+(I%2?-1:1)]}}setMirror(g,I){this.mirror||(this.mirror=[]),this.mirror.push(g,I)}appendMappingInverted(g){for(let I=g.maps.length-1,e=this._maps.length+g._maps.length;I>=0;I--){let t=g.getMirror(I);this.appendMap(g._maps[I].invert(),t!=null&&t>I?e-t-1:void 0)}}invert(){let g=new Eu;return g.appendMappingInverted(this),g}map(g,I=1){if(this.mirror)return this._map(g,I,!0);for(let e=this.from;e<this.to;e++)g=this._maps[e].map(g,I);return g}mapResult(g,I=1){return this._map(g,I,!1)}_map(g,I,e){let t=0;for(let i=this.from;i<this.to;i++){let A=this._maps[i],n=A.mapResult(g,I);if(n.recover!=null){let s=this.getMirror(i);if(s!=null&&s>i&&s<this.to){i=s,g=this._maps[s].recover(n.recover);continue}}t|=n.delInfo,g=n.pos}return e?g:new qX(g,t,null)}}const $X=Object.create(null);let kt=class{getMap(){return hc.empty}merge(g){return null}static fromJSON(g,I){if(!I||!I.stepType)throw new RangeError("Invalid input for Step.fromJSON");let e=$X[I.stepType];if(!e)throw new RangeError(`No step type ${I.stepType} defined`);return e.fromJSON(g,I)}static jsonID(g,I){if(g in $X)throw new RangeError("Duplicate use of step JSON ID "+g);return $X[g]=I,I.prototype.jsonID=g,I}},ii=class mw{constructor(g,I){this.doc=g,this.failed=I}static ok(g){return new mw(g,null)}static fail(g){return new mw(null,g)}static fromReplace(g,I,e,t){try{return mw.ok(g.replace(I,e,t))}catch(i){if(i instanceof vu)return mw.fail(i.message);throw i}}};function g5(C,g,I){let e=[];for(let t=0;t<C.childCount;t++){let i=C.child(t);i.content.size&&(i=i.copy(g5(i.content,g,i))),i.isInline&&(i=g(i,I,t)),e.push(i)}return Mg.fromArray(e)}let I5=class rw extends kt{constructor(g,I,e){super(),this.from=g,this.to=I,this.mark=e}apply(g){let I=g.slice(this.from,this.to),e=g.resolve(this.from),t=e.node(e.sharedDepth(this.to)),i=new vg(g5(I.content,(A,n)=>!A.isAtom||!n.type.allowsMarkType(this.mark.type)?A:A.mark(this.mark.addToSet(A.marks)),t),I.openStart,I.openEnd);return ii.fromReplace(g,this.from,this.to,i)}invert(){return new AZ(this.from,this.to,this.mark)}map(g){let I=g.mapResult(this.from,1),e=g.mapResult(this.to,-1);return I.deleted&&e.deleted||I.pos>=e.pos?null:new rw(I.pos,e.pos,this.mark)}merge(g){return g instanceof rw&&g.mark.eq(this.mark)&&this.from<=g.to&&this.to>=g.from?new rw(Math.min(this.from,g.from),Math.max(this.to,g.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(g,I){if(typeof I.from!="number"||typeof I.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new rw(I.from,I.to,g.markFromJSON(I.mark))}};kt.jsonID("addMark",I5);let AZ=class Zw extends kt{constructor(g,I,e){super(),this.from=g,this.to=I,this.mark=e}apply(g){let I=g.slice(this.from,this.to),e=new vg(g5(I.content,t=>t.mark(this.mark.removeFromSet(t.marks)),g),I.openStart,I.openEnd);return ii.fromReplace(g,this.from,this.to,e)}invert(){return new I5(this.from,this.to,this.mark)}map(g){let I=g.mapResult(this.from,1),e=g.mapResult(this.to,-1);return I.deleted&&e.deleted||I.pos>=e.pos?null:new Zw(I.pos,e.pos,this.mark)}merge(g){return g instanceof Zw&&g.mark.eq(this.mark)&&this.from<=g.to&&this.to>=g.from?new Zw(Math.min(this.from,g.from),Math.max(this.to,g.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(g,I){if(typeof I.from!="number"||typeof I.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Zw(I.from,I.to,g.markFromJSON(I.mark))}};kt.jsonID("removeMark",AZ);let C5=class bw extends kt{constructor(g,I){super(),this.pos=g,this.mark=I}apply(g){let I=g.nodeAt(this.pos);if(!I)return ii.fail("No node at mark step's position");let e=I.type.create(I.attrs,null,this.mark.addToSet(I.marks));return ii.fromReplace(g,this.pos,this.pos+1,new vg(Mg.from(e),0,I.isLeaf?0:1))}invert(g){let I=g.nodeAt(this.pos);if(I){let e=this.mark.addToSet(I.marks);if(e.length==I.marks.length){for(let t=0;t<I.marks.length;t++)if(!I.marks[t].isInSet(e))return new bw(this.pos,I.marks[t]);return new bw(this.pos,this.mark)}}return new vB(this.pos,this.mark)}map(g){let I=g.mapResult(this.pos,1);return I.deletedAfter?null:new bw(I.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(g,I){if(typeof I.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new bw(I.pos,g.markFromJSON(I.mark))}};kt.jsonID("addNodeMark",C5);let vB=class MH extends kt{constructor(g,I){super(),this.pos=g,this.mark=I}apply(g){let I=g.nodeAt(this.pos);if(!I)return ii.fail("No node at mark step's position");let e=I.type.create(I.attrs,null,this.mark.removeFromSet(I.marks));return ii.fromReplace(g,this.pos,this.pos+1,new vg(Mg.from(e),0,I.isLeaf?0:1))}invert(g){let I=g.nodeAt(this.pos);return!I||!this.mark.isInSet(I.marks)?this:new C5(this.pos,this.mark)}map(g){let I=g.mapResult(this.pos,1);return I.deletedAfter?null:new MH(I.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(g,I){if(typeof I.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new MH(I.pos,g.markFromJSON(I.mark))}};kt.jsonID("removeNodeMark",vB);let vA=class kd extends kt{constructor(g,I,e,t=!1){super(),this.from=g,this.to=I,this.slice=e,this.structure=t}apply(g){return this.structure&&e5(g,this.from,this.to)?ii.fail("Structure replace would overwrite content"):ii.fromReplace(g,this.from,this.to,this.slice)}getMap(){return new hc([this.from,this.to-this.from,this.slice.size])}invert(g){return new kd(this.from,this.from+this.slice.size,g.slice(this.from,this.to))}map(g){let I=g.mapResult(this.to,-1),e=this.from==this.to&&kd.MAP_BIAS<0?I:g.mapResult(this.from,1);return e.deletedAcross&&I.deletedAcross?null:new kd(e.pos,Math.max(e.pos,I.pos),this.slice,this.structure)}merge(g){if(!(g instanceof kd)||g.structure||this.structure)return null;if(this.from+this.slice.size==g.from&&!this.slice.openEnd&&!g.slice.openStart){let I=this.slice.size+g.slice.size==0?vg.empty:new vg(this.slice.content.append(g.slice.content),this.slice.openStart,g.slice.openEnd);return new kd(this.from,this.to+(g.to-g.from),I,this.structure)}else if(g.to==this.from&&!this.slice.openStart&&!g.slice.openEnd){let I=this.slice.size+g.slice.size==0?vg.empty:new vg(g.slice.content.append(this.slice.content),g.slice.openStart,this.slice.openEnd);return new kd(g.from,this.to,I,this.structure)}else return null}toJSON(){let g={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(g.slice=this.slice.toJSON()),this.structure&&(g.structure=!0),g}static fromJSON(g,I){if(typeof I.from!="number"||typeof I.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new kd(I.from,I.to,vg.fromJSON(g,I.slice),!!I.structure)}};vA.MAP_BIAS=1,kt.jsonID("replace",vA);let Hi=class cy extends kt{constructor(g,I,e,t,i,A,n=!1){super(),this.from=g,this.to=I,this.gapFrom=e,this.gapTo=t,this.slice=i,this.insert=A,this.structure=n}apply(g){if(this.structure&&(e5(g,this.from,this.gapFrom)||e5(g,this.gapTo,this.to)))return ii.fail("Structure gap-replace would overwrite content");let I=g.slice(this.gapFrom,this.gapTo);if(I.openStart||I.openEnd)return ii.fail("Gap is not a flat range");let e=this.slice.insertAt(this.insert,I.content);return e?ii.fromReplace(g,this.from,this.to,e):ii.fail("Content does not fit in gap")}getMap(){return new hc([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(g){let I=this.gapTo-this.gapFrom;return new cy(this.from,this.from+this.slice.size+I,this.from+this.insert,this.from+this.insert+I,g.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(g){let I=g.mapResult(this.from,1),e=g.mapResult(this.to,-1),t=this.from==this.gapFrom?I.pos:g.map(this.gapFrom,-1),i=this.to==this.gapTo?e.pos:g.map(this.gapTo,1);return I.deletedAcross&&e.deletedAcross||t<I.pos||i>e.pos?null:new cy(I.pos,e.pos,t,i,this.slice,this.insert,this.structure)}toJSON(){let g={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(g.slice=this.slice.toJSON()),this.structure&&(g.structure=!0),g}static fromJSON(g,I){if(typeof I.from!="number"||typeof I.to!="number"||typeof I.gapFrom!="number"||typeof I.gapTo!="number"||typeof I.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new cy(I.from,I.to,I.gapFrom,I.gapTo,vg.fromJSON(g,I.slice),I.insert,!!I.structure)}};kt.jsonID("replaceAround",Hi);function e5(C,g,I){let e=C.resolve(g),t=I-g,i=e.depth;for(;t>0&&i>0&&e.indexAfter(i)==e.node(i).childCount;)i--,t--;if(t>0){let A=e.node(i).maybeChild(e.indexAfter(i));for(;t>0;){if(!A||A.isLeaf)return!0;A=A.firstChild,t--}}return!1}function mEg(C,g,I,e){let t=[],i=[],A,n;C.doc.nodesBetween(g,I,(s,o,a)=>{if(!s.isInline)return;let d=s.marks;if(!e.isInSet(d)&&a.type.allowsMarkType(e.type)){let m=Math.max(o,g),Z=Math.min(o+s.nodeSize,I),u=e.addToSet(d);for(let h=0;h<d.length;h++)d[h].isInSet(u)||(A&&A.to==m&&A.mark.eq(d[h])?A.to=Z:t.push(A=new AZ(m,Z,d[h])));n&&n.to==m?n.to=Z:i.push(n=new I5(m,Z,e))}}),t.forEach(s=>C.step(s)),i.forEach(s=>C.step(s))}function rEg(C,g,I,e){let t=[],i=0;C.doc.nodesBetween(g,I,(A,n)=>{if(!A.isInline)return;i++;let s=null;if(e instanceof zB){let o=A.marks,a;for(;a=e.isInSet(o);)(s||(s=[])).push(a),o=a.removeFromSet(o)}else e?e.isInSet(A.marks)&&(s=[e]):s=A.marks;if(s&&s.length){let o=Math.min(n+A.nodeSize,I);for(let a=0;a<s.length;a++){let d=s[a],m;for(let Z=0;Z<t.length;Z++){let u=t[Z];u.step==i-1&&d.eq(t[Z].style)&&(m=u)}m?(m.to=o,m.step=i):t.push({style:d,from:Math.max(n,g),to:o,step:i})}}}),t.forEach(A=>C.step(new AZ(A.from,A.to,A.style)))}function t5(C,g,I,e=I.contentMatch,t=!0){let i=C.doc.nodeAt(g),A=[],n=g+1;for(let s=0;s<i.childCount;s++){let o=i.child(s),a=n+o.nodeSize,d=e.matchType(o.type);if(!d)A.push(new vA(n,a,vg.empty));else{e=d;for(let m=0;m<o.marks.length;m++)I.allowsMarkType(o.marks[m].type)||C.step(new AZ(n,a,o.marks[m]));if(t&&o.isText&&I.whitespace!="pre"){let m,Z=/\r?\n|\r/g,u;for(;m=Z.exec(o.text);)u||(u=new vg(Mg.from(I.schema.text(" ",I.allowedMarks(o.marks))),0,0)),A.push(new vA(n+m.index,n+m.index+m[0].length,u))}}n=a}if(!e.validEnd){let s=e.fillBefore(Mg.empty,!0);C.replace(n,n,new vg(s,0,0))}for(let s=A.length-1;s>=0;s--)C.step(A[s])}function ZEg(C,g,I){return(g==0||C.canReplace(g,C.childCount))&&(I==C.childCount||C.canReplace(0,I))}function nZ(C){let I=C.parent.content.cutByIndex(C.startIndex,C.endIndex);for(let e=C.depth,t=0,i=0;;--e){let A=C.$from.node(e),n=C.$from.index(e)+t,s=C.$to.indexAfter(e)-i;if(e<C.depth&&A.canReplace(n,s,I))return e;if(e==0||A.type.spec.isolating||!ZEg(A,n,s))break;n&&(t=1),s<A.childCount&&(i=1)}return null}function bEg(C,g,I){let{$from:e,$to:t,depth:i}=g,A=e.before(i+1),n=t.after(i+1),s=A,o=n,a=Mg.empty,d=0;for(let u=i,h=!1;u>I;u--)h||e.index(u)>0?(h=!0,a=Mg.from(e.node(u).copy(a)),d++):s--;let m=Mg.empty,Z=0;for(let u=i,h=!1;u>I;u--)h||t.after(u+1)<t.end(u)?(h=!0,m=Mg.from(t.node(u).copy(m)),Z++):o++;C.step(new Hi(s,o,A,n,new vg(a.append(m),d,Z),a.size-d,!0))}function jB(C,g,I=null,e=C){let t=uEg(C,g),i=t&&hEg(e,g);return i?t.map(NK).concat({type:g,attrs:I}).concat(i.map(NK)):null}function NK(C){return{type:C,attrs:null}}function uEg(C,g){let{parent:I,startIndex:e,endIndex:t}=C,i=I.contentMatchAt(e).findWrapping(g);if(!i)return null;let A=i.length?i[0]:g;return I.canReplaceWith(e,t,A)?i:null}function hEg(C,g){let{parent:I,startIndex:e,endIndex:t}=C,i=I.child(e),A=g.contentMatch.findWrapping(i.type);if(!A)return null;let s=(A.length?A[A.length-1]:g).contentMatch;for(let o=e;s&&o<t;o++)s=s.matchType(I.child(o).type);return!s||!s.validEnd?null:A}function GEg(C,g,I){let e=Mg.empty;for(let A=I.length-1;A>=0;A--){if(e.size){let n=I[A].type.contentMatch.matchFragment(e);if(!n||!n.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}e=Mg.from(I[A].type.create(I[A].attrs,e))}let t=g.start,i=g.end;C.step(new Hi(t,i,t,i,new vg(e,0,0),I.length,!0))}function wEg(C,g,I,e,t){if(!e.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=C.steps.length;C.doc.nodesBetween(g,I,(A,n)=>{let s=typeof t=="function"?t(A):t;if(A.isTextblock&&!A.hasMarkup(e,s)&&WEg(C.doc,C.mapping.slice(i).map(n),e)){let o=null;if(e.schema.linebreakReplacement){let Z=e.whitespace=="pre",u=!!e.contentMatch.matchType(e.schema.linebreakReplacement);Z&&!u?o=!1:!Z&&u&&(o=!0)}o===!1&&XK(C,A,n,i),t5(C,C.mapping.slice(i).map(n,1),e,void 0,o===null);let a=C.mapping.slice(i),d=a.map(n,1),m=a.map(n+A.nodeSize,1);return C.step(new Hi(d,m,d+1,m-1,new vg(Mg.from(e.create(s,null,A.marks)),0,0),1,!0)),o===!0&&VK(C,A,n,i),!1}})}function VK(C,g,I,e){g.forEach((t,i)=>{if(t.isText){let A,n=/\r?\n|\r/g;for(;A=n.exec(t.text);){let s=C.mapping.slice(e).map(I+1+i+A.index);C.replaceWith(s,s+1,g.type.schema.linebreakReplacement.create())}}})}function XK(C,g,I,e){g.forEach((t,i)=>{if(t.type==t.type.schema.linebreakReplacement){let A=C.mapping.slice(e).map(I+1+i);C.replaceWith(A,A+1,g.type.schema.text(`
@@ -1764,9 +1764,9 @@ ${I}
1764
1764
 
1765
1765
  .ProseMirror:not(.ProseMirror-focused) *::-moz-selection {
1766
1766
  background: transparent;
1767
- }`;Ie.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:C,options:g}=this;return C.options.injectCSS&&typeof document<"u"&&_J(GgI,C.options.injectNonce,"selection"),[new xC({key:new Le("selection"),props:{decorations(I){return I.selection.empty||C.isFocused||!C.isEditable||QJ(I.selection)||C.view.dragging?null:MC.create(I.doc,[li.inline(I.selection.from,I.selection.to,{class:g.className})])}}})]}});var wgI="skipTrailingNode";function yT({types:C,node:g}){return g&&Array.isArray(C)&&C.includes(g.type)||(g==null?void 0:g.type)===C}var WgI=Ie.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var C;const g=new Le(this.name),I=this.options.node||((C=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:C.name)||"paragraph",e=Object.entries(this.editor.schema.nodes).map(([,t])=>t).filter(t=>(this.options.notAfter||[]).concat(I).includes(t.name));return[new xC({key:g,appendTransaction:(t,i,A)=>{const{doc:n,tr:s,schema:o}=A,a=g.getState(A),d=n.content.size,m=o.nodes[I];if(!t.some(Z=>Z.getMeta(wgI))&&a)return s.insert(d,m.create())},state:{init:(t,i)=>{const A=i.tr.doc.lastChild;return!yT({node:A,types:e})},apply:(t,i)=>{if(!t.docChanged||t.getMeta("__uniqueIDTransaction"))return i;const A=t.doc.lastChild;return!yT({node:A,types:e})}}})]}}),BgI=Ie.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:C,dispatch:g})=>uT(C,g),redo:()=>({state:C,dispatch:g})=>hT(C,g)}},addProseMirrorPlugins(){return[ngI(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()}}}),pgI=Ie.create({name:"starterKit",addExtensions(){var C,g,I,e;const t=[];return this.options.bold!==!1&&t.push(Zqg.configure(this.options.bold)),this.options.blockquote!==!1&&t.push(aqg.configure(this.options.blockquote)),this.options.bulletList!==!1&&t.push($x.configure(this.options.bulletList)),this.options.code!==!1&&t.push(hqg.configure(this.options.code)),this.options.codeBlock!==!1&&t.push(Wqg.configure(this.options.codeBlock)),this.options.document!==!1&&t.push(Bqg.configure(this.options.document)),this.options.dropcursor!==!1&&t.push(lgI.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&t.push(sgI.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&t.push(pqg.configure(this.options.hardBreak)),this.options.heading!==!1&&t.push(Yqg.configure(this.options.heading)),this.options.undoRedo!==!1&&t.push(BgI.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&t.push(yqg.configure(this.options.horizontalRule)),this.options.italic!==!1&&t.push(Mqg.configure(this.options.italic)),this.options.listItem!==!1&&t.push(eT.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(nT.configure((C=this.options)==null?void 0:C.listKeymap)),this.options.link!==!1&&t.push(Px.configure((g=this.options)==null?void 0:g.link)),this.options.orderedList!==!1&&t.push(dT.configure(this.options.orderedList)),this.options.paragraph!==!1&&t.push(K$g.configure(this.options.paragraph)),this.options.strike!==!1&&t.push(x$g.configure(this.options.strike)),this.options.text!==!1&&t.push(T$g.configure(this.options.text)),this.options.underline!==!1&&t.push(L$g.configure((I=this.options)==null?void 0:I.underline)),this.options.trailingNode!==!1&&t.push(WgI.configure((e=this.options)==null?void 0:e.trailingNode)),t}}),YgI=pgI,ygI=hgI;const NT="https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64",VT={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"},XT="u",AY="n",nY="v",Mh="r",NgI={[AY]:["grinning face","grinning"],[XT]:"1f600",[Mh]:"1f600"},lY="neutral",VgI=[lY,"1f3fb","1f3fc","1f3fd","1f3fe","1f3ff"],XgI={placeholder:"Search emoji",skinTone:"Skin tone"},RgI=["light","dark","auto"];var MgI={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"}]},RT=[{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 HgI=(C,g)=>g.some(I=>C instanceof I);let MT,HT;function fgI(){return MT||(MT=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function SgI(){return HT||(HT=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const fT=new WeakMap,jR=new WeakMap,ST=new WeakMap,QR=new WeakMap,OR=new WeakMap;function DgI(C){const g=new Promise((I,e)=>{const t=()=>{C.removeEventListener("success",i),C.removeEventListener("error",A)},i=()=>{I(pa(C.result)),t()},A=()=>{e(C.error),t()};C.addEventListener("success",i),C.addEventListener("error",A)});return g.then(I=>{I instanceof IDBCursor&&fT.set(I,C)}).catch(()=>{}),OR.set(g,C),g}function kgI(C){if(jR.has(C))return;const g=new Promise((I,e)=>{const t=()=>{C.removeEventListener("complete",i),C.removeEventListener("error",A),C.removeEventListener("abort",A)},i=()=>{I(),t()},A=()=>{e(C.error||new DOMException("AbortError","AbortError")),t()};C.addEventListener("complete",i),C.addEventListener("error",A),C.addEventListener("abort",A)});jR.set(C,g)}let UR={get(C,g,I){if(C instanceof IDBTransaction){if(g==="done")return jR.get(C);if(g==="objectStoreNames")return C.objectStoreNames||ST.get(C);if(g==="store")return I.objectStoreNames[1]?void 0:I.objectStore(I.objectStoreNames[0])}return pa(C[g])},set(C,g,I){return C[g]=I,!0},has(C,g){return C instanceof IDBTransaction&&(g==="done"||g==="store")?!0:g in C}};function FgI(C){UR=C(UR)}function KgI(C){return C===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(g,...I){const e=C.call(ER(this),g,...I);return ST.set(e,g.sort?g.sort():[g]),pa(e)}:SgI().includes(C)?function(...g){return C.apply(ER(this),g),pa(fT.get(this))}:function(...g){return pa(C.apply(ER(this),g))}}function zgI(C){return typeof C=="function"?KgI(C):(C instanceof IDBTransaction&&kgI(C),HgI(C,fgI())?new Proxy(C,UR):C)}function pa(C){if(C instanceof IDBRequest)return DgI(C);if(QR.has(C))return QR.get(C);const g=zgI(C);return g!==C&&(QR.set(C,g),OR.set(g,C)),g}const ER=C=>OR.get(C);function PR(C,g,{blocked:I,upgrade:e,blocking:t,terminated:i}={}){const A=indexedDB.open(C,g),n=pa(A);return e&&A.addEventListener("upgradeneeded",s=>{e(pa(A.result),s.oldVersion,s.newVersion,pa(A.transaction),s)}),I&&A.addEventListener("blocked",s=>I(s.oldVersion,s.newVersion,s)),n.then(s=>{i&&s.addEventListener("close",()=>i()),t&&s.addEventListener("versionchange",o=>t(o.oldVersion,o.newVersion,o))}).catch(()=>{}),n}const JgI=["get","getKey","getAll","getAllKeys","count"],xgI=["put","add","delete","clear"],_R=new Map;function DT(C,g){if(!(C instanceof IDBDatabase&&!(g in C)&&typeof g=="string"))return;if(_R.get(g))return _R.get(g);const I=g.replace(/FromIndex$/,""),e=g!==I,t=xgI.includes(I);if(!(I in(e?IDBIndex:IDBObjectStore).prototype)||!(t||JgI.includes(I)))return;const i=async function(A,...n){const s=this.transaction(A,t?"readwrite":"readonly");let o=s.store;return e&&(o=o.index(n.shift())),(await Promise.all([o[I](...n),t&&s.done]))[0]};return _R.set(g,i),i}FgI(C=>({...C,get:(g,I,e)=>DT(g,I)||C.get(g,I,e),has:(g,I)=>!!DT(g,I)||C.has(g,I)}));const qR="EMJ",BZ="emojis",$R=3;async function TgI(){(await PR(qR,$R,{upgrade(g,I){g.objectStoreNames.contains(BZ)||g.createObjectStore(BZ,{keyPath:"id",autoIncrement:!0}).createIndex("id","id",{unique:!0})}})).close()}TgI();const LgI={native:!1,hideSearch:!0,hideGroupIcons:!1,hideGroupNames:!1,staticTexts:{},disabledGroups:[],groupNames:{},displayRecent:!1,additionalGroups:{},groupOrder:[],groupIcons:{}};async function vgI(){return await(await PR(qR,$R)).transaction(BZ,"readonly").objectStore(BZ).getAll()}function jgI(){const C=l.reactive({search:"",emoji:NgI,activeGroup:"",skinTone:lY,options:LgI,additionalGroups:{},recent:[],get emojis(){return{recent:this.recent,...this.options.additionalGroups,...MgI}},get disabled(){let d=Array.isArray(this.options.disabledGroups)?this.options.disabledGroups:[];return this.options.displayRecent||(d=["recent",...d]),d},get groups(){return RT.filter(d=>!this.disabled.includes(d.key))},get orderedGroupKeys(){const d=[...this.options.groupOrder,...Object.keys(this.options.additionalGroups),...RT.map(m=>m.key)];return[...new Set(d)].filter(m=>!this.disabled.includes(m))}});function g(){C.options.displayRecent&&e()}async function I(){var d;let m=await vgI();return Array.isArray(m)&&m.length?m=JSON.parse(((d=m[0])==null?void 0:d.value)||""):m=[],m}function e(){I().then(d=>{C.recent=d,o()})}const t=d=>{C.search=d},i=d=>{C.emoji=d},A=d=>{C.activeGroup=d},n=(d=lY)=>{C.skinTone=d},s=d=>{C.options=Object.assign({},C.options,d),g()};async function o(){(await PR(qR,$R)).transaction(BZ,"readwrite").objectStore(BZ).put({id:0,value:JSON.stringify(C.recent)})}const a=d=>{if(C.options.displayRecent!==!0)return;const m=C.recent.findIndex(u=>u.u===d.u);if(m>0&&C.recent.splice(m,1),m===0)return;const Z={u:d.u,n:l.toRaw(d.n)};C.recent=[Z,...C.recent],C.recent.length>24&&(C.recent.length=24),o()};return{state:l.readonly(C),updateSearch:t,updateEmoji:i,updateActiveGroup:A,updateSkinTone:n,updateOptions:s,updateSelect:a}}var ki="top",_A="bottom",qA="right",Fi="left",g9="auto",Hh=[ki,_A,qA,Fi],pZ="start",fh="end",QgI="clippingParents",kT="viewport",Sh="popper",OgI="reference",FT=Hh.reduce(function(C,g){return C.concat([g+"-"+pZ,g+"-"+fh])},[]),KT=[].concat(Hh,[g9]).reduce(function(C,g){return C.concat([g,g+"-"+pZ,g+"-"+fh])},[]),UgI="beforeRead",EgI="read",PgI="afterRead",_gI="beforeMain",qgI="main",$gI="afterMain",gII="beforeWrite",III="write",CII="afterWrite",eII=[UgI,EgI,PgI,_gI,qgI,$gI,gII,III,CII];function Ml(C){return C?(C.nodeName||"").toLowerCase():null}function xn(C){if(C==null)return window;if(C.toString()!=="[object Window]"){var g=C.ownerDocument;return g&&g.defaultView||window}return C}function YZ(C){var g=xn(C).Element;return C instanceof g||C instanceof Element}function $A(C){var g=xn(C).HTMLElement;return C instanceof g||C instanceof HTMLElement}function zT(C){if(typeof ShadowRoot>"u")return!1;var g=xn(C).ShadowRoot;return C instanceof g||C instanceof ShadowRoot}function tII(C){var g=C.state;Object.keys(g.elements).forEach(function(I){var e=g.styles[I]||{},t=g.attributes[I]||{},i=g.elements[I];!$A(i)||!Ml(i)||(Object.assign(i.style,e),Object.keys(t).forEach(function(A){var n=t[A];n===!1?i.removeAttribute(A):i.setAttribute(A,n===!0?"":n)}))})}function iII(C){var g=C.state,I={popper:{position:g.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(g.elements.popper.style,I.popper),g.styles=I,g.elements.arrow&&Object.assign(g.elements.arrow.style,I.arrow),function(){Object.keys(g.elements).forEach(function(e){var t=g.elements[e],i=g.attributes[e]||{},A=Object.keys(g.styles.hasOwnProperty(e)?g.styles[e]:I[e]),n=A.reduce(function(s,o){return s[o]="",s},{});!$A(t)||!Ml(t)||(Object.assign(t.style,n),Object.keys(i).forEach(function(s){t.removeAttribute(s)}))})}}var AII={name:"applyStyles",enabled:!0,phase:"write",fn:tII,effect:iII,requires:["computeStyles"]};function Hl(C){return C.split("-")[0]}var Sc=Math.max,sY=Math.min,yZ=Math.round;function NZ(C,g){g===void 0&&(g=!1);var I=C.getBoundingClientRect(),e=1,t=1;if($A(C)&&g){var i=C.offsetHeight,A=C.offsetWidth;A>0&&(e=yZ(I.width)/A||1),i>0&&(t=yZ(I.height)/i||1)}return{width:I.width/e,height:I.height/t,top:I.top/t,right:I.right/e,bottom:I.bottom/t,left:I.left/e,x:I.left/e,y:I.top/t}}function I9(C){var g=NZ(C),I=C.offsetWidth,e=C.offsetHeight;return Math.abs(g.width-I)<=1&&(I=g.width),Math.abs(g.height-e)<=1&&(e=g.height),{x:C.offsetLeft,y:C.offsetTop,width:I,height:e}}function JT(C,g){var I=g.getRootNode&&g.getRootNode();if(C.contains(g))return!0;if(I&&zT(I)){var e=g;do{if(e&&C.isSameNode(e))return!0;e=e.parentNode||e.host}while(e)}return!1}function fl(C){return xn(C).getComputedStyle(C)}function nII(C){return["table","td","th"].indexOf(Ml(C))>=0}function Ya(C){return((YZ(C)?C.ownerDocument:C.document)||window.document).documentElement}function oY(C){return Ml(C)==="html"?C:C.assignedSlot||C.parentNode||(zT(C)?C.host:null)||Ya(C)}function xT(C){return!$A(C)||fl(C).position==="fixed"?null:C.offsetParent}function lII(C){var g=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,I=navigator.userAgent.indexOf("Trident")!==-1;if(I&&$A(C)){var e=fl(C);if(e.position==="fixed")return null}for(var t=oY(C);$A(t)&&["html","body"].indexOf(Ml(t))<0;){var i=fl(t);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||g&&i.willChange==="filter"||g&&i.filter&&i.filter!=="none")return t;t=t.parentNode}return null}function Dh(C){for(var g=xn(C),I=xT(C);I&&nII(I)&&fl(I).position==="static";)I=xT(I);return I&&(Ml(I)==="html"||Ml(I)==="body"&&fl(I).position==="static")?g:I||lII(C)||g}function C9(C){return["top","bottom"].indexOf(C)>=0?"x":"y"}function kh(C,g,I){return Sc(C,sY(g,I))}function sII(C,g,I){var e=kh(C,g,I);return e>I?I:e}function TT(){return{top:0,right:0,bottom:0,left:0}}function LT(C){return Object.assign({},TT(),C)}function vT(C,g){return g.reduce(function(I,e){return I[e]=C,I},{})}var oII=function(g,I){return g=typeof g=="function"?g(Object.assign({},I.rects,{placement:I.placement})):g,LT(typeof g!="number"?g:vT(g,Hh))};function aII(C){var g,I=C.state,e=C.name,t=C.options,i=I.elements.arrow,A=I.modifiersData.popperOffsets,n=Hl(I.placement),s=C9(n),o=[Fi,qA].indexOf(n)>=0,a=o?"height":"width";if(!(!i||!A)){var d=oII(t.padding,I),m=I9(i),Z=s==="y"?ki:Fi,u=s==="y"?_A:qA,h=I.rects.reference[a]+I.rects.reference[s]-A[s]-I.rects.popper[a],G=A[s]-I.rects.reference[s],w=Dh(i),B=w?s==="y"?w.clientHeight||0:w.clientWidth||0:0,p=h/2-G/2,Y=d[Z],N=B-m[a]-d[u],R=B/2-m[a]/2+p,X=kh(Y,R,N),K=s;I.modifiersData[e]=(g={},g[K]=X,g.centerOffset=X-R,g)}}function dII(C){var g=C.state,I=C.options,e=I.element,t=e===void 0?"[data-popper-arrow]":e;t!=null&&(typeof t=="string"&&(t=g.elements.popper.querySelector(t),!t)||JT(g.elements.popper,t)&&(g.elements.arrow=t))}var cII={name:"arrow",enabled:!0,phase:"main",fn:aII,effect:dII,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function VZ(C){return C.split("-")[1]}var mII={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rII(C){var g=C.x,I=C.y,e=window,t=e.devicePixelRatio||1;return{x:yZ(g*t)/t||0,y:yZ(I*t)/t||0}}function jT(C){var g,I=C.popper,e=C.popperRect,t=C.placement,i=C.variation,A=C.offsets,n=C.position,s=C.gpuAcceleration,o=C.adaptive,a=C.roundOffsets,d=C.isFixed,m=a===!0?rII(A):typeof a=="function"?a(A):A,Z=m.x,u=Z===void 0?0:Z,h=m.y,G=h===void 0?0:h,w=A.hasOwnProperty("x"),B=A.hasOwnProperty("y"),p=Fi,Y=ki,N=window;if(o){var R=Dh(I),X="clientHeight",K="clientWidth";if(R===xn(I)&&(R=Ya(I),fl(R).position!=="static"&&n==="absolute"&&(X="scrollHeight",K="scrollWidth")),R=R,t===ki||(t===Fi||t===qA)&&i===fh){Y=_A;var D=d&&N.visualViewport?N.visualViewport.height:R[X];G-=D-e.height,G*=s?1:-1}if(t===Fi||(t===ki||t===_A)&&i===fh){p=qA;var k=d&&N.visualViewport?N.visualViewport.width:R[K];u-=k-e.width,u*=s?1:-1}}var z=Object.assign({position:n},o&&mII);if(s){var v;return Object.assign({},z,(v={},v[Y]=B?"0":"",v[p]=w?"0":"",v.transform=(N.devicePixelRatio||1)<=1?"translate("+u+"px, "+G+"px)":"translate3d("+u+"px, "+G+"px, 0)",v))}return Object.assign({},z,(g={},g[Y]=B?G+"px":"",g[p]=w?u+"px":"",g.transform="",g))}function ZII(C){var g=C.state,I=C.options,e=I.gpuAcceleration,t=e===void 0?!0:e,i=I.adaptive,A=i===void 0?!0:i,n=I.roundOffsets,s=n===void 0?!0:n,o={placement:Hl(g.placement),variation:VZ(g.placement),popper:g.elements.popper,popperRect:g.rects.popper,gpuAcceleration:t,isFixed:g.options.strategy==="fixed"};g.modifiersData.popperOffsets!=null&&(g.styles.popper=Object.assign({},g.styles.popper,jT(Object.assign({},o,{offsets:g.modifiersData.popperOffsets,position:g.options.strategy,adaptive:A,roundOffsets:s})))),g.modifiersData.arrow!=null&&(g.styles.arrow=Object.assign({},g.styles.arrow,jT(Object.assign({},o,{offsets:g.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),g.attributes.popper=Object.assign({},g.attributes.popper,{"data-popper-placement":g.placement})}var bII={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ZII,data:{}},aY={passive:!0};function uII(C){var g=C.state,I=C.instance,e=C.options,t=e.scroll,i=t===void 0?!0:t,A=e.resize,n=A===void 0?!0:A,s=xn(g.elements.popper),o=[].concat(g.scrollParents.reference,g.scrollParents.popper);return i&&o.forEach(function(a){a.addEventListener("scroll",I.update,aY)}),n&&s.addEventListener("resize",I.update,aY),function(){i&&o.forEach(function(a){a.removeEventListener("scroll",I.update,aY)}),n&&s.removeEventListener("resize",I.update,aY)}}var hII={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:uII,data:{}},GII={left:"right",right:"left",bottom:"top",top:"bottom"};function dY(C){return C.replace(/left|right|bottom|top/g,function(g){return GII[g]})}var wII={start:"end",end:"start"};function QT(C){return C.replace(/start|end/g,function(g){return wII[g]})}function e9(C){var g=xn(C),I=g.pageXOffset,e=g.pageYOffset;return{scrollLeft:I,scrollTop:e}}function t9(C){return NZ(Ya(C)).left+e9(C).scrollLeft}function WII(C){var g=xn(C),I=Ya(C),e=g.visualViewport,t=I.clientWidth,i=I.clientHeight,A=0,n=0;return e&&(t=e.width,i=e.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(A=e.offsetLeft,n=e.offsetTop)),{width:t,height:i,x:A+t9(C),y:n}}function BII(C){var g,I=Ya(C),e=e9(C),t=(g=C.ownerDocument)==null?void 0:g.body,i=Sc(I.scrollWidth,I.clientWidth,t?t.scrollWidth:0,t?t.clientWidth:0),A=Sc(I.scrollHeight,I.clientHeight,t?t.scrollHeight:0,t?t.clientHeight:0),n=-e.scrollLeft+t9(C),s=-e.scrollTop;return fl(t||I).direction==="rtl"&&(n+=Sc(I.clientWidth,t?t.clientWidth:0)-i),{width:i,height:A,x:n,y:s}}function i9(C){var g=fl(C),I=g.overflow,e=g.overflowX,t=g.overflowY;return/auto|scroll|overlay|hidden/.test(I+t+e)}function OT(C){return["html","body","#document"].indexOf(Ml(C))>=0?C.ownerDocument.body:$A(C)&&i9(C)?C:OT(oY(C))}function Fh(C,g){var I;g===void 0&&(g=[]);var e=OT(C),t=e===((I=C.ownerDocument)==null?void 0:I.body),i=xn(e),A=t?[i].concat(i.visualViewport||[],i9(e)?e:[]):e,n=g.concat(A);return t?n:n.concat(Fh(oY(A)))}function A9(C){return Object.assign({},C,{left:C.x,top:C.y,right:C.x+C.width,bottom:C.y+C.height})}function pII(C){var g=NZ(C);return g.top=g.top+C.clientTop,g.left=g.left+C.clientLeft,g.bottom=g.top+C.clientHeight,g.right=g.left+C.clientWidth,g.width=C.clientWidth,g.height=C.clientHeight,g.x=g.left,g.y=g.top,g}function UT(C,g){return g===kT?A9(WII(C)):YZ(g)?pII(g):A9(BII(Ya(C)))}function YII(C){var g=Fh(oY(C)),I=["absolute","fixed"].indexOf(fl(C).position)>=0,e=I&&$A(C)?Dh(C):C;return YZ(e)?g.filter(function(t){return YZ(t)&&JT(t,e)&&Ml(t)!=="body"&&(I?fl(t).position!=="static":!0)}):[]}function yII(C,g,I){var e=g==="clippingParents"?YII(C):[].concat(g),t=[].concat(e,[I]),i=t[0],A=t.reduce(function(n,s){var o=UT(C,s);return n.top=Sc(o.top,n.top),n.right=sY(o.right,n.right),n.bottom=sY(o.bottom,n.bottom),n.left=Sc(o.left,n.left),n},UT(C,i));return A.width=A.right-A.left,A.height=A.bottom-A.top,A.x=A.left,A.y=A.top,A}function ET(C){var g=C.reference,I=C.element,e=C.placement,t=e?Hl(e):null,i=e?VZ(e):null,A=g.x+g.width/2-I.width/2,n=g.y+g.height/2-I.height/2,s;switch(t){case ki:s={x:A,y:g.y-I.height};break;case _A:s={x:A,y:g.y+g.height};break;case qA:s={x:g.x+g.width,y:n};break;case Fi:s={x:g.x-I.width,y:n};break;default:s={x:g.x,y:g.y}}var o=t?C9(t):null;if(o!=null){var a=o==="y"?"height":"width";switch(i){case pZ:s[o]=s[o]-(g[a]/2-I[a]/2);break;case fh:s[o]=s[o]+(g[a]/2-I[a]/2);break}}return s}function Kh(C,g){g===void 0&&(g={});var I=g,e=I.placement,t=e===void 0?C.placement:e,i=I.boundary,A=i===void 0?QgI:i,n=I.rootBoundary,s=n===void 0?kT:n,o=I.elementContext,a=o===void 0?Sh:o,d=I.altBoundary,m=d===void 0?!1:d,Z=I.padding,u=Z===void 0?0:Z,h=LT(typeof u!="number"?u:vT(u,Hh)),G=a===Sh?OgI:Sh,w=C.rects.popper,B=C.elements[m?G:a],p=yII(YZ(B)?B:B.contextElement||Ya(C.elements.popper),A,s),Y=NZ(C.elements.reference),N=ET({reference:Y,element:w,placement:t}),R=A9(Object.assign({},w,N)),X=a===Sh?R:Y,K={top:p.top-X.top+h.top,bottom:X.bottom-p.bottom+h.bottom,left:p.left-X.left+h.left,right:X.right-p.right+h.right},D=C.modifiersData.offset;if(a===Sh&&D){var k=D[t];Object.keys(K).forEach(function(z){var v=[qA,_A].indexOf(z)>=0?1:-1,O=[ki,_A].indexOf(z)>=0?"y":"x";K[z]+=k[O]*v})}return K}function NII(C,g){g===void 0&&(g={});var I=g,e=I.placement,t=I.boundary,i=I.rootBoundary,A=I.padding,n=I.flipVariations,s=I.allowedAutoPlacements,o=s===void 0?KT:s,a=VZ(e),d=a?n?FT:FT.filter(function(u){return VZ(u)===a}):Hh,m=d.filter(function(u){return o.indexOf(u)>=0});m.length===0&&(m=d);var Z=m.reduce(function(u,h){return u[h]=Kh(C,{placement:h,boundary:t,rootBoundary:i,padding:A})[Hl(h)],u},{});return Object.keys(Z).sort(function(u,h){return Z[u]-Z[h]})}function VII(C){if(Hl(C)===g9)return[];var g=dY(C);return[QT(C),g,QT(g)]}function XII(C){var g=C.state,I=C.options,e=C.name;if(!g.modifiersData[e]._skip){for(var t=I.mainAxis,i=t===void 0?!0:t,A=I.altAxis,n=A===void 0?!0:A,s=I.fallbackPlacements,o=I.padding,a=I.boundary,d=I.rootBoundary,m=I.altBoundary,Z=I.flipVariations,u=Z===void 0?!0:Z,h=I.allowedAutoPlacements,G=g.options.placement,w=Hl(G),B=w===G,p=s||(B||!u?[dY(G)]:VII(G)),Y=[G].concat(p).reduce(function(kg,Vg){return kg.concat(Hl(Vg)===g9?NII(g,{placement:Vg,boundary:a,rootBoundary:d,padding:o,flipVariations:u,allowedAutoPlacements:h}):Vg)},[]),N=g.rects.reference,R=g.rects.popper,X=new Map,K=!0,D=Y[0],k=0;k<Y.length;k++){var z=Y[k],v=Hl(z),O=VZ(z)===pZ,Cg=[ki,_A].indexOf(v)>=0,U=Cg?"width":"height",T=Kh(g,{placement:z,boundary:a,rootBoundary:d,altBoundary:m,padding:o}),q=Cg?O?qA:Fi:O?_A:ki;N[U]>R[U]&&(q=dY(q));var cg=dY(q),og=[];if(i&&og.push(T[v]<=0),n&&og.push(T[q]<=0,T[cg]<=0),og.every(function(kg){return kg})){D=z,K=!1;break}X.set(z,og)}if(K)for(var Wg=u?3:1,fg=function(Vg){var gI=Y.find(function(qg){var CC=X.get(qg);if(CC)return CC.slice(0,Vg).every(function(NC){return NC})});if(gI)return D=gI,"break"},Rg=Wg;Rg>0;Rg--){var Bg=fg(Rg);if(Bg==="break")break}g.placement!==D&&(g.modifiersData[e]._skip=!0,g.placement=D,g.reset=!0)}}var RII={name:"flip",enabled:!0,phase:"main",fn:XII,requiresIfExists:["offset"],data:{_skip:!1}};function PT(C,g,I){return I===void 0&&(I={x:0,y:0}),{top:C.top-g.height-I.y,right:C.right-g.width+I.x,bottom:C.bottom-g.height+I.y,left:C.left-g.width-I.x}}function _T(C){return[ki,qA,_A,Fi].some(function(g){return C[g]>=0})}function MII(C){var g=C.state,I=C.name,e=g.rects.reference,t=g.rects.popper,i=g.modifiersData.preventOverflow,A=Kh(g,{elementContext:"reference"}),n=Kh(g,{altBoundary:!0}),s=PT(A,e),o=PT(n,t,i),a=_T(s),d=_T(o);g.modifiersData[I]={referenceClippingOffsets:s,popperEscapeOffsets:o,isReferenceHidden:a,hasPopperEscaped:d},g.attributes.popper=Object.assign({},g.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":d})}var HII={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MII};function fII(C,g,I){var e=Hl(C),t=[Fi,ki].indexOf(e)>=0?-1:1,i=typeof I=="function"?I(Object.assign({},g,{placement:C})):I,A=i[0],n=i[1];return A=A||0,n=(n||0)*t,[Fi,qA].indexOf(e)>=0?{x:n,y:A}:{x:A,y:n}}function SII(C){var g=C.state,I=C.options,e=C.name,t=I.offset,i=t===void 0?[0,0]:t,A=KT.reduce(function(a,d){return a[d]=fII(d,g.rects,i),a},{}),n=A[g.placement],s=n.x,o=n.y;g.modifiersData.popperOffsets!=null&&(g.modifiersData.popperOffsets.x+=s,g.modifiersData.popperOffsets.y+=o),g.modifiersData[e]=A}var DII={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SII};function kII(C){var g=C.state,I=C.name;g.modifiersData[I]=ET({reference:g.rects.reference,element:g.rects.popper,placement:g.placement})}var FII={name:"popperOffsets",enabled:!0,phase:"read",fn:kII,data:{}};function KII(C){return C==="x"?"y":"x"}function zII(C){var g=C.state,I=C.options,e=C.name,t=I.mainAxis,i=t===void 0?!0:t,A=I.altAxis,n=A===void 0?!1:A,s=I.boundary,o=I.rootBoundary,a=I.altBoundary,d=I.padding,m=I.tether,Z=m===void 0?!0:m,u=I.tetherOffset,h=u===void 0?0:u,G=Kh(g,{boundary:s,rootBoundary:o,padding:d,altBoundary:a}),w=Hl(g.placement),B=VZ(g.placement),p=!B,Y=C9(w),N=KII(Y),R=g.modifiersData.popperOffsets,X=g.rects.reference,K=g.rects.popper,D=typeof h=="function"?h(Object.assign({},g.rects,{placement:g.placement})):h,k=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),z=g.modifiersData.offset?g.modifiersData.offset[g.placement]:null,v={x:0,y:0};if(R){if(i){var O,Cg=Y==="y"?ki:Fi,U=Y==="y"?_A:qA,T=Y==="y"?"height":"width",q=R[Y],cg=q+G[Cg],og=q-G[U],Wg=Z?-K[T]/2:0,fg=B===pZ?X[T]:K[T],Rg=B===pZ?-K[T]:-X[T],Bg=g.elements.arrow,kg=Z&&Bg?I9(Bg):{width:0,height:0},Vg=g.modifiersData["arrow#persistent"]?g.modifiersData["arrow#persistent"].padding:TT(),gI=Vg[Cg],qg=Vg[U],CC=kh(0,X[T],kg[T]),NC=p?X[T]/2-Wg-CC-gI-k.mainAxis:fg-CC-gI-k.mainAxis,BC=p?-X[T]/2+Wg+CC+qg+k.mainAxis:Rg+CC+qg+k.mainAxis,eC=g.elements.arrow&&Dh(g.elements.arrow),te=eC?Y==="y"?eC.clientTop||0:eC.clientLeft||0:0,jI=(O=z==null?void 0:z[Y])!=null?O:0,Be=q+NC-jI-te,SI=q+BC-jI,DI=kh(Z?sY(cg,Be):cg,q,Z?Sc(og,SI):og);R[Y]=DI,v[Y]=DI-q}if(n){var At,vC=Y==="x"?ki:Fi,NA=Y==="x"?_A:qA,nt=R[N],ie=N==="y"?"height":"width",QI=nt+G[vC],Fe=nt-G[NA],VC=[ki,Fi].indexOf(w)!==-1,lt=(At=z==null?void 0:z[N])!=null?At:0,aC=VC?QI:nt-X[ie]-K[ie]-lt+k.altAxis,vi=VC?nt+X[ie]+K[ie]-lt-k.altAxis:Fe,Ze=Z&&VC?sII(aC,nt,vi):kh(Z?aC:QI,nt,Z?vi:Fe);R[N]=Ze,v[N]=Ze-nt}g.modifiersData[e]=v}}var JII={name:"preventOverflow",enabled:!0,phase:"main",fn:zII,requiresIfExists:["offset"]};function xII(C){return{scrollLeft:C.scrollLeft,scrollTop:C.scrollTop}}function TII(C){return C===xn(C)||!$A(C)?e9(C):xII(C)}function LII(C){var g=C.getBoundingClientRect(),I=yZ(g.width)/C.offsetWidth||1,e=yZ(g.height)/C.offsetHeight||1;return I!==1||e!==1}function vII(C,g,I){I===void 0&&(I=!1);var e=$A(g),t=$A(g)&&LII(g),i=Ya(g),A=NZ(C,t),n={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(e||!e&&!I)&&((Ml(g)!=="body"||i9(i))&&(n=TII(g)),$A(g)?(s=NZ(g,!0),s.x+=g.clientLeft,s.y+=g.clientTop):i&&(s.x=t9(i))),{x:A.left+n.scrollLeft-s.x,y:A.top+n.scrollTop-s.y,width:A.width,height:A.height}}function jII(C){var g=new Map,I=new Set,e=[];C.forEach(function(i){g.set(i.name,i)});function t(i){I.add(i.name);var A=[].concat(i.requires||[],i.requiresIfExists||[]);A.forEach(function(n){if(!I.has(n)){var s=g.get(n);s&&t(s)}}),e.push(i)}return C.forEach(function(i){I.has(i.name)||t(i)}),e}function QII(C){var g=jII(C);return eII.reduce(function(I,e){return I.concat(g.filter(function(t){return t.phase===e}))},[])}function OII(C){var g;return function(){return g||(g=new Promise(function(I){Promise.resolve().then(function(){g=void 0,I(C())})})),g}}function UII(C){var g=C.reduce(function(I,e){var t=I[e.name];return I[e.name]=t?Object.assign({},t,e,{options:Object.assign({},t.options,e.options),data:Object.assign({},t.data,e.data)}):e,I},{});return Object.keys(g).map(function(I){return g[I]})}var qT={placement:"bottom",modifiers:[],strategy:"absolute"};function $T(){for(var C=arguments.length,g=new Array(C),I=0;I<C;I++)g[I]=arguments[I];return!g.some(function(e){return!(e&&typeof e.getBoundingClientRect=="function")})}function EII(C){C===void 0&&(C={});var g=C,I=g.defaultModifiers,e=I===void 0?[]:I,t=g.defaultOptions,i=t===void 0?qT:t;return function(n,s,o){o===void 0&&(o=i);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},qT,i),modifiersData:{},elements:{reference:n,popper:s},attributes:{},styles:{}},d=[],m=!1,Z={state:a,setOptions:function(w){var B=typeof w=="function"?w(a.options):w;h(),a.options=Object.assign({},i,a.options,B),a.scrollParents={reference:YZ(n)?Fh(n):n.contextElement?Fh(n.contextElement):[],popper:Fh(s)};var p=QII(UII([].concat(e,a.options.modifiers)));return a.orderedModifiers=p.filter(function(Y){return Y.enabled}),u(),Z.update()},forceUpdate:function(){if(!m){var w=a.elements,B=w.reference,p=w.popper;if($T(B,p)){a.rects={reference:vII(B,Dh(p),a.options.strategy==="fixed"),popper:I9(p)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(k){return a.modifiersData[k.name]=Object.assign({},k.data)});for(var Y=0;Y<a.orderedModifiers.length;Y++){if(a.reset===!0){a.reset=!1,Y=-1;continue}var N=a.orderedModifiers[Y],R=N.fn,X=N.options,K=X===void 0?{}:X,D=N.name;typeof R=="function"&&(a=R({state:a,options:K,name:D,instance:Z})||a)}}}},update:OII(function(){return new Promise(function(G){Z.forceUpdate(),G(a)})}),destroy:function(){h(),m=!0}};if(!$T(n,s))return Z;Z.setOptions(o).then(function(G){!m&&o.onFirstUpdate&&o.onFirstUpdate(G)});function u(){a.orderedModifiers.forEach(function(G){var w=G.name,B=G.options,p=B===void 0?{}:B,Y=G.effect;if(typeof Y=="function"){var N=Y({state:a,name:w,instance:Z,options:p}),R=function(){};d.push(N||R)}})}function h(){d.forEach(function(G){return G()}),d=[]}return Z}}var PII=[hII,FII,bII,AII,DII,RII,JII,cII,HII],_II=EII({defaultModifiers:PII}),gL="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";function cY(C){return C.split("-").map(g=>parseInt(g,16)).map(g=>String.fromCodePoint(g)).join("")}function qII(C,g,I,e=[]){const t={};return Object.keys(C).forEach(i=>{if(e.includes(i))return;const A=[];C[i].forEach(n=>{var s;if(n[AY][0].includes(g.toLocaleLowerCase())){let o=n[XT];if(I!==lY&&Array.isArray(n[nY])){const a=((s=n[nY])==null?void 0:s.findIndex(d=>d.includes(I)))||-1;a!==-1&&n[nY]&&(o=n[nY][a])}return A.push({...n,[Mh]:o})}}),A.length&&(t[i]=A)}),t}function IL(){var C;return(((C=navigator==null?void 0:navigator.userAgentData)==null?void 0:C.platform)||(navigator==null?void 0:navigator.platform)||"unknown").toUpperCase().indexOf("MAC")!==-1}function CL(C){return C.replace(/^_*(.)|_+(.)/g,(g,I,e)=>I?I.toUpperCase():" "+e.toUpperCase())}var zh=(C,g)=>{const I=C.__vccOpts||C;for(const[e,t]of g)I[e]=t;return I};const $II=l.defineComponent({name:"Body",emits:{select:C=>!0},setup(){const{state:C,updateEmoji:g,updateSelect:I}=l.inject("store"),e=l.ref(null),t=l.computed(()=>qII(C.emojis,C.search,C.skinTone,C.options.disabledGroups)),i=l.getCurrentInstance(),A=l.computed(()=>!C.options.hideGroupNames),n=l.computed(()=>!C.options.disableStickyGroupNames),s=l.toRaw(C.options.groupNames),o=C.orderedGroupKeys;C.options.additionalGroups&&Object.keys(C.options.additionalGroups).map(u=>{C.options.groupNames[u]?s[u]=C.options.groupNames[u]:s[u]=CL(u)});const a=IL()?"is-mac":"";function d(u){g(u)}function m(u){I(u),i==null||i.emit("select",{...u,t:C.skinTone,i:cY(u.r)})}function Z(u,h){var G;const w=(G=u==null?void 0:u.target)==null?void 0:G.closest("button");w&&(w.innerHTML=`<span>${cY(h)}</span>`)}return l.watch(()=>C.activeGroup,()=>{var u;const h=(u=e.value)==null?void 0:u.querySelector("#"+C.activeGroup);h&&(h.parentNode.scrollTop=h.offsetTop-h.parentNode.offsetTop)}),{emojis:t,bodyInner:e,EMOJI_REMOTE_SRC:NT,GROUP_NAMES:VT,handleClick:m,handleError:Z,handleMouseEnter:d,native:C.options.native,unicodeToEmoji:cY,EMOJI_RESULT_KEY:Mh,EMOJI_NAME_KEY:AY,hasGroupNames:A,isSticky:n,platform:a,groupNames:s,orderedKeys:o}}}),gCI={class:"v3-body"},ICI=["id"],CCI={class:"v3-emojis"},eCI=["onMouseenter","onClick"],tCI={key:0},iCI=["src","alt","onError"],ACI={key:1,class:"v3-no-result"};function nCI(C,g,I,e,t,i){return l.openBlock(),l.createElementBlock("div",gCI,[l.createElementVNode("div",{ref:"bodyInner",class:l.normalizeClass([C.platform,"v3-body-inner"])},[C.orderedKeys.length?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(C.orderedKeys,A=>(l.openBlock(),l.createElementBlock("div",{id:A,key:A,class:"v3-group"},[C.hasGroupNames?l.withDirectives((l.openBlock(),l.createElementBlock("h5",{key:0,class:l.normalizeClass(C.isSticky?"v3-sticky":"")},l.toDisplayString(C.groupNames[A]),3)),[[l.vShow,C.emojis[A]]]):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",CCI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(C.emojis[A],n=>(l.openBlock(),l.createElementBlock("button",{key:n.r,type:"button",onMouseenter:s=>C.handleMouseEnter(n),onClick:s=>C.handleClick(n)},[C.native?(l.openBlock(),l.createElementBlock("span",tCI,l.toDisplayString(C.unicodeToEmoji(n.r)),1)):(l.openBlock(),l.createElementBlock("img",{key:1,src:C.EMOJI_REMOTE_SRC+`/${n.r}.png`,alt:n.n[0],onError:s=>C.handleError(s,n.r)},null,40,iCI))],40,eCI))),128))],512),[[l.vShow,C.emojis[A]]])],8,ICI))),128)):(l.openBlock(),l.createElementBlock("span",ACI," No emoji has been found! "))],2)])}var lCI=zh($II,[["render",nCI]]),sCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41IEMgMTYgOC4zMzk4NDQgMTUuNjg3NSA3LjI2NTYyNSAxNS4wOTM3NSA2LjQzNzUgQyAxNC41IDUuNjA5Mzc1IDEzLjU3MDMxMyA1IDEyLjUgNSBaIE0gMTYgOS41IEMgMTYgMTAuNjYwMTU2IDE2LjMxMjUgMTEuNzM0Mzc1IDE2LjkwNjI1IDEyLjU2MjUgQyAxNy41IDEzLjM5MDYyNSAxOC40Mjk2ODggMTQgMTkuNSAxNCBDIDIwLjU3MDMxMyAxNCAyMS41IDEzLjM5MDYyNSAyMi4wOTM3NSAxMi41NjI1IEMgMjIuNjg3NSAxMS43MzQzNzUgMjMgMTAuNjYwMTU2IDIzIDkuNSBDIDIzIDguMzM5ODQ0IDIyLjY4NzUgNy4yNjU2MjUgMjIuMDkzNzUgNi40Mzc1IEMgMjEuNSA1LjYwOTM3NSAyMC41NzAzMTMgNSAxOS41IDUgQyAxOC40Mjk2ODggNSAxNy41IDUuNjA5Mzc1IDE2LjkwNjI1IDYuNDM3NSBDIDE2LjMxMjUgNy4yNjU2MjUgMTYgOC4zMzk4NDQgMTYgOS41IFogTSAxMi41IDcgQyAxMi44MTI1IDcgMTMuMTU2MjUgNy4xNTYyNSAxMy40Njg3NSA3LjU5Mzc1IEMgMTMuNzgxMjUgOC4wMzEyNSAxNCA4LjcyNjU2MyAxNCA5LjUgQyAxNCAxMC4yNzM0MzggMTMuNzgxMjUgMTAuOTY4NzUgMTMuNDY4NzUgMTEuNDA2MjUgQyAxMy4xNTYyNSAxMS44NDM3NSAxMi44MTI1IDEyIDEyLjUgMTIgQyAxMi4xODc1IDEyIDExLjg0Mzc1IDExLjg0Mzc1IDExLjUzMTI1IDExLjQwNjI1IEMgMTEuMjE4NzUgMTAuOTY4NzUgMTEgMTAuMjczNDM4IDExIDkuNSBDIDExIDguNzI2NTYzIDExLjIxODc1IDguMDMxMjUgMTEuNTMxMjUgNy41OTM3NSBDIDExLjg0Mzc1IDcuMTU2MjUgMTIuMTg3NSA3IDEyLjUgNyBaIE0gMTkuNSA3IEMgMTkuODEyNSA3IDIwLjE1NjI1IDcuMTU2MjUgMjAuNDY4NzUgNy41OTM3NSBDIDIwLjc4MTI1IDguMDMxMjUgMjEgOC43MjY1NjMgMjEgOS41IEMgMjEgMTAuMjczNDM4IDIwLjc4MTI1IDEwLjk2ODc1IDIwLjQ2ODc1IDExLjQwNjI1IEMgMjAuMTU2MjUgMTEuODQzNzUgMTkuODEyNSAxMiAxOS41IDEyIEMgMTkuMTg3NSAxMiAxOC44NDM3NSAxMS44NDM3NSAxOC41MzEyNSAxMS40MDYyNSBDIDE4LjIxODc1IDEwLjk2ODc1IDE4IDEwLjI3MzQzOCAxOCA5LjUgQyAxOCA4LjcyNjU2MyAxOC4yMTg3NSA4LjAzMTI1IDE4LjUzMTI1IDcuNTkzNzUgQyAxOC44NDM3NSA3LjE1NjI1IDE5LjE4NzUgNyAxOS41IDcgWiBNIDcuNSAxMiBDIDYuNDI5Njg4IDEyIDUuNSAxMi42MDkzNzUgNC45MDYyNSAxMy40Mzc1IEMgNC4zMTI1IDE0LjI2NTYyNSA0IDE1LjMzOTg0NCA0IDE2LjUgQyA0IDE3LjY2MDE1NiA0LjMxMjUgMTguNzM0Mzc1IDQuOTA2MjUgMTkuNTYyNSBDIDUuNSAyMC4zOTA2MjUgNi40Mjk2ODggMjEgNy41IDIxIEMgOC41NzAzMTMgMjEgOS41IDIwLjM5MDYyNSAxMC4wOTM3NSAxOS41NjI1IEMgMTAuNjg3NSAxOC43MzQzNzUgMTEgMTcuNjYwMTU2IDExIDE2LjUgQyAxMSAxNS4zMzk4NDQgMTAuNjg3NSAxNC4yNjU2MjUgMTAuMDkzNzUgMTMuNDM3NSBDIDkuNSAxMi42MDkzNzUgOC41NzAzMTMgMTIgNy41IDEyIFogTSAyNC41IDEyIEMgMjMuNDI5Njg4IDEyIDIyLjUgMTIuNjA5Mzc1IDIxLjkwNjI1IDEzLjQzNzUgQyAyMS4zMTI1IDE0LjI2NTYyNSAyMSAxNS4zMzk4NDQgMjEgMTYuNSBDIDIxIDE3LjY2MDE1NiAyMS4zMTI1IDE4LjczNDM3NSAyMS45MDYyNSAxOS41NjI1IEMgMjIuNSAyMC4zOTA2MjUgMjMuNDI5Njg4IDIxIDI0LjUgMjEgQyAyNS41NzAzMTMgMjEgMjYuNSAyMC4zOTA2MjUgMjcuMDkzNzUgMTkuNTYyNSBDIDI3LjY4NzUgMTguNzM0Mzc1IDI4IDE3LjY2MDE1NiAyOCAxNi41IEMgMjggMTUuMzM5ODQ0IDI3LjY4NzUgMTQuMjY1NjI1IDI3LjA5Mzc1IDEzLjQzNzUgQyAyNi41IDEyLjYwOTM3NSAyNS41NzAzMTMgMTIgMjQuNSAxMiBaIE0gNy41IDE0IEMgNy44MTI1IDE0IDguMTU2MjUgMTQuMTU2MjUgOC40Njg3NSAxNC41OTM3NSBDIDguNzgxMjUgMTUuMDMxMjUgOSAxNS43MjY1NjMgOSAxNi41IEMgOSAxNy4yNzM0MzggOC43ODEyNSAxNy45Njg3NSA4LjQ2ODc1IDE4LjQwNjI1IEMgOC4xNTYyNSAxOC44NDM3NSA3LjgxMjUgMTkgNy41IDE5IEMgNy4xODc1IDE5IDYuODQzNzUgMTguODQzNzUgNi41MzEyNSAxOC40MDYyNSBDIDYuMjE4NzUgMTcuOTY4NzUgNiAxNy4yNzM0MzggNiAxNi41IEMgNiAxNS43MjY1NjMgNi4yMTg3NSAxNS4wMzEyNSA2LjUzMTI1IDE0LjU5Mzc1IEMgNi44NDM3NSAxNC4xNTYyNSA3LjE4NzUgMTQgNy41IDE0IFogTSAyNC41IDE0IEMgMjQuODEyNSAxNCAyNS4xNTYyNSAxNC4xNTYyNSAyNS40Njg3NSAxNC41OTM3NSBDIDI1Ljc4MTI1IDE1LjAzMTI1IDI2IDE1LjcyNjU2MyAyNiAxNi41IEMgMjYgMTcuMjczNDM4IDI1Ljc4MTI1IDE3Ljk2ODc1IDI1LjQ2ODc1IDE4LjQwNjI1IEMgMjUuMTU2MjUgMTguODQzNzUgMjQuODEyNSAxOSAyNC41IDE5IEMgMjQuMTg3NSAxOSAyMy44NDM3NSAxOC44NDM3NSAyMy41MzEyNSAxOC40MDYyNSBDIDIzLjIxODc1IDE3Ljk2ODc1IDIzIDE3LjI3MzQzOCAyMyAxNi41IEMgMjMgMTUuNzI2NTYzIDIzLjIxODc1IDE1LjAzMTI1IDIzLjUzMTI1IDE0LjU5Mzc1IEMgMjMuODQzNzUgMTQuMTU2MjUgMjQuMTg3NSAxNCAyNC41IDE0IFogTSAxNiAxNiBDIDE0LjY2Nzk2OSAxNiAxMy43MzgyODEgMTYuODY3MTg4IDEzLjI4MTI1IDE3LjYyNSBDIDEyLjgyNDIxOSAxOC4zODI4MTMgMTIuNTQ2ODc1IDE5LjAxNTYyNSAxMi4yODEyNSAxOS4yODEyNSBDIDEyLjEyNSAxOS40Mzc1IDExLjE2MDE1NiAxOS44MDA3ODEgMTAuMTU2MjUgMjAuMzEyNSBDIDkuNjUyMzQ0IDIwLjU3MDMxMyA5LjE0NDUzMSAyMC45MTQwNjMgOC43MTg3NSAyMS40Mzc1IEMgOC4yOTI5NjkgMjEuOTYwOTM4IDggMjIuNjg3NSA4IDIzLjUgQyA4IDI1LjQyMTg3NSA5LjU3ODEyNSAyNyAxMS41IDI3IEMgMTIuMzY3MTg4IDI3IDEzLjI2OTUzMSAyNi43MjI2NTYgMTQuMTU2MjUgMjYuNDY4NzUgQyAxNS4wNDI5NjkgMjYuMjE0ODQ0IDE2IDI2IDE2IDI2IEMgMTYgMjYgMTYuOTU3MDMxIDI2LjIxNDg0NCAxNy44NDM3NSAyNi40Njg3NSBDIDE4LjczMDQ2OSAyNi43MjI2NTYgMTkuNjMyODEzIDI3IDIwLjUgMjcgQyAyMi40MjE4NzUgMjcgMjQgMjUuNDIxODc1IDI0IDIzLjUgQyAyNCAyMi43MDcwMzEgMjMuNzA3MDMxIDIxLjk4MDQ2OSAyMy4yODEyNSAyMS40Njg3NSBDIDIyLjg1NTQ2OSAyMC45NTcwMzEgMjIuMzQzNzUgMjAuNjQwNjI1IDIxLjg0Mzc1IDIwLjM3NSBDIDIwLjg0Mzc1IDE5Ljg0Mzc1IDE5Ljg1OTM3NSAxOS40MjE4NzUgMTkuNzE4NzUgMTkuMjgxMjUgQyAxOS40ODA0NjkgMTkuMDQyOTY5IDE5LjIxMDkzOCAxOC4zOTA2MjUgMTguNzUgMTcuNjI1IEMgMTguMjg5MDYzIDE2Ljg1OTM3NSAxNy4zMzk4NDQgMTYgMTYgMTYgWiBNIDE2IDE4IEMgMTYuNjYwMTU2IDE4IDE2LjczNDM3NSAxOC4xNjAxNTYgMTcuMDMxMjUgMTguNjU2MjUgQyAxNy4zMjgxMjUgMTkuMTUyMzQ0IDE3LjU1NDY4OCAxOS45OTIxODggMTguMjgxMjUgMjAuNzE4NzUgQyAxOS4xMDU0NjkgMjEuNTQyOTY5IDIwLjE0ODQzOCAyMS43MjI2NTYgMjAuOTA2MjUgMjIuMTI1IEMgMjEuMjg1MTU2IDIyLjMyODEyNSAyMS41NzgxMjUgMjIuNTQyOTY5IDIxLjc1IDIyLjc1IEMgMjEuOTIxODc1IDIyLjk1NzAzMSAyMiAyMy4xNDg0MzggMjIgMjMuNSBDIDIyIDI0LjMzOTg0NCAyMS4zMzk4NDQgMjUgMjAuNSAyNSBDIDIwLjIxMDkzOCAyNSAxOS4yNzczNDQgMjQuNzc3MzQ0IDE4LjQwNjI1IDI0LjUzMTI1IEMgMTcuNTM1MTU2IDI0LjI4NTE1NiAxNi44MTY0MDYgMjQgMTYgMjQgQyAxNS4xODM1OTQgMjQgMTQuNDY0ODQ0IDI0LjI4NTE1NiAxMy41OTM3NSAyNC41MzEyNSBDIDEyLjcyMjY1NiAyNC43NzczNDQgMTEuNzg5MDYzIDI1IDExLjUgMjUgQyAxMC42NjAxNTYgMjUgMTAgMjQuMzM5ODQ0IDEwIDIzLjUgQyAxMCAyMy4wOTc2NTYgMTAuMDgyMDMxIDIyLjg5MDYyNSAxMC4yNSAyMi42ODc1IEMgMTAuNDE3OTY5IDIyLjQ4NDM3NSAxMC43MjI2NTYgMjIuMjg1MTU2IDExLjA5Mzc1IDIyLjA5Mzc1IEMgMTEuODM5ODQ0IDIxLjcxNDg0NCAxMi44NzUgMjEuNTYyNSAxMy43MTg3NSAyMC43MTg3NSBDIDE0LjQ1MzEyNSAxOS45ODQzNzUgMTQuNjc1NzgxIDE5LjExNzE4OCAxNC45Njg3NSAxOC42MjUgQyAxNS4yNjE3MTkgMTguMTMyODEzIDE1LjMzMjAzMSAxOCAxNiAxOCBaIi8+PC9zdmc+",oCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSAzIEwgMTEgNyBMIDEzIDcgTCAxMyAzIFogTSAxNSA0IEwgMTUgNyBMIDE3IDcgTCAxNyA0IFogTSA0Ljg3NSA4IEwgNSA5LjA5Mzc1IEwgNi44MTI1IDI2LjMxMjUgQyA2Ljk3MjY1NiAyNy44MzIwMzEgOC4yODUxNTYgMjkgOS44MTI1IDI5IEwgMTkuMTg3NSAyOSBDIDIwLjcxNDg0NCAyOSAyMi4wMjczNDQgMjcuODMyMDMxIDIyLjE4NzUgMjYuMzEyNSBMIDIyLjY1NjI1IDIyIEwgMjUgMjIgQyAyNi42NDQ1MzEgMjIgMjggMjAuNjQ0NTMxIDI4IDE5IEwgMjggMTYgQyAyOCAxNC4zNTU0NjkgMjYuNjQ0NTMxIDEzIDI1IDEzIEwgMjMuNTkzNzUgMTMgTCAyNCA5LjA5Mzc1IEwgMjQuMTI1IDggWiBNIDcuMTI1IDEwIEwgMjEuODc1IDEwIEwgMjAuMTg3NSAyNi4wOTM3NSBDIDIwLjEzMjgxMyAyNi42MTMyODEgMTkuNzA3MDMxIDI3IDE5LjE4NzUgMjcgTCA5LjgxMjUgMjcgQyA5LjI5Mjk2OSAyNyA4Ljg2NzE4OCAyNi42MTMyODEgOC44MTI1IDI2LjA5Mzc1IFogTSAyMy4zNzUgMTUgTCAyNSAxNSBDIDI1LjU2NjQwNiAxNSAyNiAxNS40MzM1OTQgMjYgMTYgTCAyNiAxOSBDIDI2IDE5LjU2NjQwNiAyNS41NjY0MDYgMjAgMjUgMjAgTCAyMi44NDM3NSAyMCBaIi8+PC9zdmc+",aCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiAzIEMgOC44MzIwMzEgMyAzIDguODMyMDMxIDMgMTYgQyAzIDIzLjE2Nzk2OSA4LjgzMjAzMSAyOSAxNiAyOSBDIDIzLjE2Nzk2OSAyOSAyOSAyMy4xNjc5NjkgMjkgMTYgQyAyOSA4LjgzMjAzMSAyMy4xNjc5NjkgMyAxNiAzIFogTSAxNiA1IEMgMTYuNjAxNTYzIDUgMTcuMTc1NzgxIDUuMDYyNSAxNy43NSA1LjE1NjI1IEwgMTYgNi40MDYyNSBMIDE0LjI1IDUuMTU2MjUgQyAxNC44MjAzMTMgNS4wNjY0MDYgMTUuNDAyMzQ0IDUgMTYgNSBaIE0gMTEuODEyNSA1Ljg0Mzc1IEwgMTUuNDA2MjUgOC40Njg3NSBMIDE2IDguOTA2MjUgTCAxNi41OTM3NSA4LjQ2ODc1IEwgMjAuMTg3NSA1Ljg0Mzc1IEMgMjEuNzg1MTU2IDYuNTA3ODEzIDIzLjE5NTMxMyA3LjUyMzQzOCAyNC4zMTI1IDguODEyNSBMIDIyLjkzNzUgMTMuMDkzNzUgTCAyMi43MTg3NSAxMy43ODEyNSBMIDIzLjMxMjUgMTQuMTg3NSBMIDI2LjkzNzUgMTYuODQzNzUgQyAyNi44MDQ2ODggMTguNjA1NDY5IDI2LjI2NTYyNSAyMC4yNTc4MTMgMjUuNDA2MjUgMjEuNjg3NSBMIDIwLjEyNSAyMS42ODc1IEwgMTkuOTA2MjUgMjIuMzc1IEwgMTguNSAyNi43MTg3NSBDIDE3LjY5OTIxOSAyNi45MDYyNSAxNi44NTkzNzUgMjcgMTYgMjcgQyAxNS4xMDU0NjkgMjcgMTQuMjM4MjgxIDI2Ljg4NjcxOSAxMy40MDYyNSAyNi42ODc1IEwgMTIuMDMxMjUgMjIuNDA2MjUgTCAxMS44MTI1IDIxLjcxODc1IEwgNi41OTM3NSAyMS43MTg3NSBDIDUuNzE4NzUgMjAuMjgxMjUgNS4xOTkyMTkgMTguNjIxMDk0IDUuMDYyNSAxNi44NDM3NSBMIDguNjU2MjUgMTQuMjE4NzUgTCA5LjI1IDEzLjgxMjUgTCA5LjAzMTI1IDEzLjEyNSBMIDcuNjI1IDguODc1IEMgOC43NSA3LjU1NDY4OCAxMC4xODM1OTQgNi41MTU2MjUgMTEuODEyNSA1Ljg0Mzc1IFogTSAxNiAxMC4wOTM3NSBMIDE1LjQwNjI1IDEwLjUzMTI1IEwgMTAuODQzNzUgMTMuODQzNzUgTCAxMC4yODEyNSAxNC4yODEyNSBMIDEwLjUgMTQuOTY4NzUgTCAxMi4yNSAyMC4zMTI1IEwgMTIuNDY4NzUgMjEgTCAxOS41MzEyNSAyMSBMIDE5Ljc1IDIwLjMxMjUgTCAyMS41IDE0Ljk2ODc1IEwgMjEuNzE4NzUgMTQuMjgxMjUgTCAyMS4xNTYyNSAxMy44NDM3NSBMIDE2LjU5Mzc1IDEwLjUzMTI1IFogTSAyNS43NSAxMC45MDYyNSBDIDI2LjI5Njg3NSAxMS45NTMxMjUgMjYuNjU2MjUgMTMuMTAxNTYzIDI2Ljg0Mzc1IDE0LjMxMjUgTCAyNS4wNjI1IDEzLjAzMTI1IFogTSA2LjIxODc1IDEwLjk2ODc1IEwgNi45MDYyNSAxMy4wMzEyNSBMIDUuMTU2MjUgMTQuMzEyNSBDIDUuMzM5ODQ0IDEzLjEyNSA1LjY4NzUgMTIgNi4yMTg3NSAxMC45Njg3NSBaIE0gMTYgMTIuNTkzNzUgTCAxOS4zNzUgMTUuMDMxMjUgTCAxOC4wOTM3NSAxOSBMIDEzLjkwNjI1IDE5IEwgMTIuNjI1IDE1LjAzMTI1IFogTSAyMS41OTM3NSAyMy42ODc1IEwgMjMuODQzNzUgMjMuNjg3NSBDIDIyLjk5MjE4OCAyNC41NjY0MDYgMjIuMDExNzE5IDI1LjI5Mjk2OSAyMC45MDYyNSAyNS44NDM3NSBaIE0gOC4xNTYyNSAyMy43MTg3NSBMIDEwLjM0Mzc1IDIzLjcxODc1IEwgMTEuMDMxMjUgMjUuODEyNSBDIDkuOTYwOTM4IDI1LjI2OTUzMSA4Ljk4ODI4MSAyNC41NjI1IDguMTU2MjUgMjMuNzE4NzUgWiIvPjwvc3ZnPg==",dCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5LjUgNiBDIDguMTc5Njg4IDYgNy4wMDM5MDYgNi44NTkzNzUgNi42MjUgOC4xMjUgTCA1LjI1IDEyLjcxODc1IEwgMy4zMTI1IDEyLjA2MjUgTCAyLjY4NzUgMTMuOTM3NSBMIDQuNjU2MjUgMTQuNTkzNzUgTCA0LjAzMTI1IDE2LjcxODc1IEMgNC4wMDc4MTMgMTYuODA4NTk0IDMuOTk2MDk0IDE2LjkwNjI1IDQgMTcgTCA0IDI0IEMgNCAyNC4wMzEyNSA0IDI0LjA2MjUgNCAyNC4wOTM3NSBMIDQgMjUgQyA0IDI1LjU1MDc4MSA0LjQ0OTIxOSAyNiA1IDI2IEwgOCAyNiBMIDguMzQzNzUgMjUgTCAyMy42NTYyNSAyNSBMIDI0IDI2IEwgMjcgMjYgQyAyNy41NTA3ODEgMjYgMjggMjUuNTUwNzgxIDI4IDI1IEwgMjggMjQuMTU2MjUgQyAyOC4wMDM5MDYgMjQuMTA1NDY5IDI4LjAwMzkwNiAyNC4wNTA3ODEgMjggMjQgTCAyOCAxNyBDIDI4LjAwMzkwNiAxNi45MDYyNSAyNy45OTIxODggMTYuODA4NTk0IDI3Ljk2ODc1IDE2LjcxODc1IEwgMjcuMzQzNzUgMTQuNTkzNzUgTCAyOS4zMTI1IDEzLjkzNzUgTCAyOC42ODc1IDEyLjA2MjUgTCAyNi43NSAxMi43MTg3NSBMIDI1LjM3NSA4LjEyNSBDIDI0Ljk5NjA5NCA2Ljg1OTM3NSAyMy44MjAzMTMgNiAyMi41IDYgWiBNIDkuNSA4IEwgMjIuNSA4IEMgMjIuOTQ1MzEzIDggMjMuMzM5ODQ0IDguMjkyOTY5IDIzLjQ2ODc1IDguNzE4NzUgTCAyNC43NSAxMyBMIDcuMjUgMTMgTCA4LjUzMTI1IDguNzE4NzUgQyA4LjY2MDE1NiA4LjI4OTA2MyA5LjA1NDY4OCA4IDkuNSA4IFogTSA2LjY1NjI1IDE1IEwgMjUuMzQzNzUgMTUgTCAyNiAxNy4xODc1IEwgMjYgMjMgTCA2IDIzIEwgNiAxNy4xODc1IFogTSA4LjUgMTYgQyA3LjY3MTg3NSAxNiA3IDE2LjY3MTg3NSA3IDE3LjUgQyA3IDE4LjMyODEyNSA3LjY3MTg3NSAxOSA4LjUgMTkgQyA5LjMyODEyNSAxOSAxMCAxOC4zMjgxMjUgMTAgMTcuNSBDIDEwIDE2LjY3MTg3NSA5LjMyODEyNSAxNiA4LjUgMTYgWiBNIDIzLjUgMTYgQyAyMi42NzE4NzUgMTYgMjIgMTYuNjcxODc1IDIyIDE3LjUgQyAyMiAxOC4zMjgxMjUgMjIuNjcxODc1IDE5IDIzLjUgMTkgQyAyNC4zMjgxMjUgMTkgMjUgMTguMzI4MTI1IDI1IDE3LjUgQyAyNSAxNi42NzE4NzUgMjQuMzI4MTI1IDE2IDIzLjUgMTYgWiBNIDEyIDE5IEwgMTAuNzUgMjIgTCAxMi45MDYyNSAyMiBMIDEzLjM0Mzc1IDIxIEwgMTguNjU2MjUgMjEgTCAxOS4wOTM3NSAyMiBMIDIxLjI1IDIyIEwgMjAgMTkgWiIvPjwvc3ZnPg==",cCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuMDQyOTY5IDQgNyA4LjA0Mjk2OSA3IDEzIEMgNyAxNC45MTc5NjkgNy44NDM3NSAxNi45MDYyNSA5IDE4LjY4NzUgQyA5Ljg1OTM3NSAyMC4wMTE3MTkgMTAuODg2NzE5IDIxLjIzMDQ2OSAxMiAyMi4xNTYyNSBMIDEyIDI1IEMgMTIgMjYuMDkzNzUgMTIuOTA2MjUgMjcgMTQgMjcgTCAxNSAyOCBMIDE3IDI4IEwgMTggMjcgQyAxOS4wOTM3NSAyNyAyMCAyNi4wOTM3NSAyMCAyNSBMIDIwIDIyLjE1NjI1IEMgMjEuMTEzMjgxIDIxLjIzMDQ2OSAyMi4xNDA2MjUgMjAuMDExNzE5IDIzIDE4LjY4NzUgQyAyNC4xNTYyNSAxNi45MDYyNSAyNSAxNC45MTc5NjkgMjUgMTMgQyAyNSA4LjA0Mjk2OSAyMC45NTcwMzEgNCAxNiA0IFogTSAxNiA2IEMgMTkuODc4OTA2IDYgMjMgOS4xMjEwOTQgMjMgMTMgQyAyMyAxNC4zMDg1OTQgMjIuMzU1NDY5IDE2LjAzNTE1NiAyMS4zNDM3NSAxNy41OTM3NSBDIDIwLjQ0MTQwNiAxOC45ODQzNzUgMTkuMjUzOTA2IDIwLjIyMjY1NiAxOC4xNTYyNSAyMSBMIDEzLjg0Mzc1IDIxIEMgMTIuNzQ2MDk0IDIwLjIyMjY1NiAxMS41NTg1OTQgMTguOTg0Mzc1IDEwLjY1NjI1IDE3LjU5Mzc1IEMgOS42NDQ1MzEgMTYuMDM1MTU2IDkgMTQuMzA4NTk0IDkgMTMgQyA5IDkuMTIxMDk0IDEyLjEyMTA5NCA2IDE2IDYgWiBNIDE0LjI1IDIzIEwgMTcuNzUgMjMgQyAxNy44MjgxMjUgMjMuMDU0Njg4IDE3LjkxMDE1NiAyMy4wOTM3NSAxOCAyMy4xMjUgTCAxOCAyNSBMIDE0IDI1IEwgMTQgMjMuMTI1IEMgMTQuMDg5ODQ0IDIzLjA5Mzc1IDE0LjE3MTg3NSAyMy4wNTQ2ODggMTQuMjUgMjMgWiIvPjwvc3ZnPg==",mCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSA1IEwgMTEgMTEgTCA1IDExIEwgNSAxMyBMIDExIDEzIEwgMTEgMTkgTCA1IDE5IEwgNSAyMSBMIDExIDIxIEwgMTEgMjcgTCAxMyAyNyBMIDEzIDIxIEwgMTkgMjEgTCAxOSAyNyBMIDIxIDI3IEwgMjEgMjEgTCAyNyAyMSBMIDI3IDE5IEwgMjEgMTkgTCAyMSAxMyBMIDI3IDEzIEwgMjcgMTEgTCAyMSAxMSBMIDIxIDUgTCAxOSA1IEwgMTkgMTEgTCAxMyAxMSBMIDEzIDUgWiBNIDEzIDEzIEwgMTkgMTMgTCAxOSAxOSBMIDEzIDE5IFoiLz48L3N2Zz4=",rCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5IDQgQyA3LjM0NiA0IDYgNS4zNDYgNiA3IEMgNiA4LjMwMTYwOTQgNi44Mzg3NDg2IDkuNDAyMTM5MSA4IDkuODE2NDA2MiBMIDggMTEuMzA0Njg4IEwgOCAyMy4yMDcwMzEgTCA4IDI3LjAyMzQzOCBDIDggMjcuNTYzNDM4IDguNDM2NTYyNSAyOCA4Ljk3NjU2MjUgMjggTCA5LjAyMzQzNzUgMjggQyA5LjU2MzQzNzUgMjggMTAgMjcuNTYzNDM3IDEwIDI3LjAyMzQzOCBMIDEwIDIyLjIyODUxNiBDIDEwLjMzNDcwNyAyMS44Mzk3NTYgMTEuMTM4NDIzIDIxLjA0Njg3NSAxMy40NDUzMTIgMjEuMDQ2ODc1IEMgMTQuNjY5MzEzIDIxLjA0Njg3NSAxNS42NzA0MjIgMjEuNDczNzgxIDE2LjczMjQyMiAyMS45MjU3ODEgQyAxNy43Njk0MjIgMjIuMzY3NzgxIDE4Ljg0MTg5MSAyMi44MjQyMTkgMjAuMDg3ODkxIDIyLjgyNDIxOSBDIDIyLjQ0Njg5MSAyMi44MjQyMTkgMjQuMDQ5Mzc1IDIxLjU4NDY4OCAyNC43MzQzNzUgMjEuMDU0Njg4IEwgMjQuODg2NzE5IDIwLjkzOTQ1MyBDIDI1LjQzNzcxOSAyMC41NDA0NTMgMjYgMTkuOTk2IDI2IDE5IEwgMjYgMTAuNjc1NzgxIEMgMjYgOS43Njc3ODEyIDI1LjIyMTgyOCA5IDI0LjI5ODgyOCA5IEMgMjMuODAzODI4IDkgMjMuNDQwNDA2IDkuMjg2NTkzNyAyMi45NDE0MDYgOS42ODM1OTM4IEMgMjIuMjc5NDA2IDEwLjIwNzU5NCAyMS4yODA4OTEgMTEgMjAuMDg3ODkxIDExIEMgMTkuMjcyODkxIDExIDE4LjQ3NzY4OCAxMC42MTk3MzQgMTcuNTU0Njg4IDEwLjE3NzczNCBDIDE2LjQwMzY4NyA5LjYyNTczNDQgMTUuMDk4MzU5IDkgMTMuNDQzMzU5IDkgQyAxMi4zMDgyNTcgOSAxMS40MjE2ODcgOS4xODgzMzkzIDEwLjcxMjg5MSA5LjQ1NzAzMTIgQyAxMS40ODkwNzEgOC45MTQxODI0IDEyIDguMDE2NzgwMiAxMiA3IEMgMTIgNS4zNDYgMTAuNjU0IDQgOSA0IHogTSA5IDYgQyA5LjU1MiA2IDEwIDYuNDQ5IDEwIDcgQyAxMCA3LjU1MSA5LjU1MiA4IDkgOCBDIDguNDQ4IDggOCA3LjU1MSA4IDcgQyA4IDYuNDQ5IDguNDQ4IDYgOSA2IHogTSAxMy40NDMzNTkgMTEgQyAxNC42NDUzNTkgMTEgMTUuNjM4NDA2IDExLjQ3NjQ2OSAxNi42OTE0MDYgMTEuOTgwNDY5IEMgMTcuNzM2NDA2IDEyLjQ4MjQ2OSAxOC44MTc4OTEgMTMgMjAuMDg3ODkxIDEzIEMgMjEuODQyODkxIDEzIDIzLjE1ODA0NyAxMi4wNTQ0ODQgMjMuOTk4MDQ3IDExLjM5NjQ4NCBMIDIzLjk5ODA0NyAxOS4wNjY0MDYgQyAyMy45OTcwNDcgMTkuMDcwNDA2IDIzLjk1Mjk4NCAxOS4xNDUyNjYgMjMuNzA4OTg0IDE5LjMyMjI2NiBMIDIzLjUwOTc2NiAxOS40NzQ2MDkgQyAyMi45NDI3NjYgMTkuOTEyNjA5IDIxLjc2Mjg5MSAyMC44MjQyMTkgMjAuMDg3ODkxIDIwLjgyNDIxOSBDIDE5LjI0OTg5MSAyMC44MjQyMTkgMTguNDQ2NjI1IDIwLjQ4MjkzNyAxNy41MTU2MjUgMjAuMDg1OTM4IEMgMTYuMzcyNjI1IDE5LjU5NzkzOCAxNS4wNzYzNTkgMTkuMDQ0OTIyIDEzLjQ0MzM1OSAxOS4wNDQ5MjIgQyAxMS44OTEzNTkgMTkuMDQ0OTIyIDEwLjc4NiAxOS4zNTggMTAgMTkuNzUgTCAxMCAxMi4zNjEzMjggQyAxMC4zNDUgMTEuOTA1MzI4IDExLjEzMjM1OSAxMSAxMy40NDMzNTkgMTEgeiIvPjwvc3ZnPg==",ZCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuODMyMDMxIDQgOC4xNTIzNDQgNi4xMTMyODEgNiA5LjM0Mzc1IEwgNiA2IEwgNCA2IEwgNCAxMyBMIDExIDEzIEwgMTEgMTEgTCA3LjM3NSAxMSBDIDkuMTAxNTYzIDguMDE5NTMxIDEyLjI5Njg3NSA2IDE2IDYgQyAyMS41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";const bCI=l.defineComponent({name:"Header",setup(C){const{state:g,updateSearch:I,updateActiveGroup:e}=l.inject("store"),t=l.computed(()=>!g.options.hideSearch),i=l.computed(()=>!g.options.hideGroupIcons),A=JSON.parse(JSON.stringify(g.orderedGroupKeys)),n=l.computed(()=>g.options.staticTexts.placeholder||""),s=l.computed({get:()=>g.search,set:d=>I(d)}),o=[...g.groups,...Object.keys(g.options.additionalGroups).map(d=>({key:d,title:g.options.groupNames[d]?g.options.groupNames[d]:CL(d)}))],a=[];return A.forEach(d=>{const m=o.findIndex(Z=>Z.key===d);m!==-1&&(a.push(o[m]),o.splice(m,1))}),{orderedGroups:a,orderedKeys:A,searchValue:s,updateActiveGroup:e,hasSearch:t,hasGroupIcons:i,placeholder:n,icons:{smileys_people:gL,animals_nature:sCI,food_drink:oCI,activities:aCI,travel_places:dCI,objects:cCI,symbols:mCI,flags:rCI,...g.options.groupIcons,recent:ZCI}}}}),uCI={key:0,class:"v3-header"},hCI={key:0,class:"v3-groups"},GCI=["onClick"],wCI=["title"],WCI=["src"],BCI={key:1,class:"v3-spacing"},pCI={key:2,class:"v3-search"},YCI=["placeholder"];function yCI(C,g,I,e,t,i){return C.hasGroupIcons||C.hasSearch?(l.openBlock(),l.createElementBlock("div",uCI,[C.hasGroupIcons?(l.openBlock(),l.createElementBlock("div",hCI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(C.orderedGroups,A=>(l.openBlock(),l.createElementBlock("button",{key:A.key,type:"button",class:l.normalizeClass(["v3-group",{"v3-is-hidden":!C.icons[A.key]}]),onClick:n=>C.updateActiveGroup(A.key)},[l.createElementVNode("span",{title:A.title,class:"v3-icon"},[l.createElementVNode("img",{src:C.icons[A.key],alt:""},null,8,WCI)],8,wCI)],10,GCI))),128))])):l.createCommentVNode("",!0),C.hasGroupIcons&&C.hasSearch?(l.openBlock(),l.createElementBlock("div",BCI)):l.createCommentVNode("",!0),C.hasSearch?(l.openBlock(),l.createElementBlock("div",pCI,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":g[0]||(g[0]=A=>C.searchValue=A),type:"text",placeholder:C.placeholder},null,8,YCI),[[l.vModelText,C.searchValue]])])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)}var NCI=zh(bCI,[["render",yCI]]);const VCI=l.defineComponent({name:"Header",setup(){const{state:C,updateSkinTone:g}=l.inject("store"),I=l.ref(!1),e=l.ref(!1),t=l.computed(()=>C.skinTone),i=l.computed(()=>C.options.staticTexts.skinTone||"Skin tone"),A=l.computed(()=>!C.options.disableSkinTones),n=IL()?"is-mac":"",s=l.computed(()=>({...C.emoji,src:NT+"/"+C.emoji[Mh]+".png"}));function o(m=!0){I.value=m}function a(){I.value=!I.value}function d(m){g(m),o(!1)}return l.watch(()=>C.emoji,()=>{e.value=!1}),{emoji:s,SKIN_TONES:VgI,updateSkinToneState:o,skinTone:I,stateSkinTone:t,selectSkinTone:d,toggleSkinToneState:a,EMOJI_RESULT_KEY:Mh,EMOJI_NAME_KEY:AY,skinToneText:i,hasSkinTones:A,native:C.options.native,unicodeToEmoji:cY,platform:n,hasError:e}}}),XCI={class:"v3-foot-left"},RCI={key:0},MCI=["alt","src"],HCI={class:"v3-text"},fCI={class:"v3-text"},SCI=["onClick"];function DCI(C,g,I,e,t,i){return l.openBlock(),l.createElementBlock("div",{class:"v3-footer",onMouseleave:g[2]||(g[2]=A=>C.updateSkinToneState(!1))},[l.createElementVNode("div",XCI,[l.createElementVNode("span",{class:l.normalizeClass([C.platform,"v3-icon"])},[C.native||C.hasError?(l.openBlock(),l.createElementBlock("span",RCI,l.toDisplayString(C.unicodeToEmoji(C.emoji.r)),1)):(l.openBlock(),l.createElementBlock("img",{key:1,alt:C.unicodeToEmoji(C.emoji.r),src:C.emoji.src,onError:g[0]||(g[0]=A=>C.hasError=!0)},null,40,MCI))],2),l.createElementVNode("span",HCI," :"+l.toDisplayString(C.emoji[C.EMOJI_NAME_KEY][1]||C.emoji[C.EMOJI_NAME_KEY][0])+": ",1)]),C.hasSkinTones?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{type:"button",class:"v3-tone",onClick:g[1]||(g[1]=(...A)=>C.toggleSkinToneState&&C.toggleSkinToneState(...A))},[l.createElementVNode("span",fCI,l.toDisplayString(C.skinToneText),1),l.createElementVNode("span",{class:l.normalizeClass(`v3-icon v3-tone-${C.stateSkinTone}`)},null,2)]),l.createElementVNode("div",{class:l.normalizeClass([C.skinTone?"v3-is-open":"","v3-skin-tones"])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(C.SKIN_TONES,A=>(l.openBlock(),l.createElementBlock("button",{key:A,type:"button",class:l.normalizeClass(["v3-skin-tone-"+A,"v3-skin-tone"]),onClick:n=>C.selectSkinTone(A)},null,10,SCI))),128))],2)],64)):l.createCommentVNode("",!0)],32)}var kCI=zh(VCI,[["render",DCI]]);const FCI=l.defineComponent({name:"PickerRoot",components:{Header:NCI,Body:lCI,Footer:kCI},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:C=>!0,"update:text":C=>!0},setup(C,{emit:g}){const I=l.ref(),e=l.ref(),t=l.ref(),i=l.ref(!1),A=l.ref(C.text),n=C.type==="input"||C.type==="textarea";let s=-1;const{state:o}=l.inject("store"),a=l.computed(()=>o.options.colorTheme);function d(G){if(n){const w=o.options.mode;w==="prepend"?A.value=G.i+A.value:w==="insert"&&s!==-1?(A.value=`${A.value.slice(0,s)}${G.i}${A.value.slice(s)}`,s+=G.i.length):A.value+=G.i,g("update:text",A.value)}g("select",G)}function m(){var G;I.value&&(s=((G=I.value)==null?void 0:G.selectionEnd)||-1)}function Z(G){var w;!((w=G.target)!=null&&w.closest(".v3-input-picker-wrap"))&&i.value&&(i.value=!1)}function u(){if(e.value&&t.value&&n){let G=o.options.offset;typeof G!="number"&&(G=6),_II(e.value,t.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,G]}}]}),document.body.addEventListener("click",Z)}}function h(G){A.value=G.target.value||"",g("update:text",A.value)}return l.onMounted(()=>{u()}),l.onBeforeUnmount(()=>{document.body.removeEventListener("click",Z)}),{face:gL,open:i,onSelect:d,input:A,elem:I,updateCursor:m,button:e,picker:t,isInputType:n,onChangeText:h,colorTheme:a}}}),KCI={key:0,class:"v3-input-emoji-picker"},zCI={class:"v3-input-picker-root"},JCI=["value"],xCI=["value"],TCI=["src"];function LCI(C,g,I,e,t,i){const A=l.resolveComponent("Header"),n=l.resolveComponent("Body"),s=l.resolveComponent("Footer");return C.isInputType?(l.openBlock(),l.createElementBlock("div",KCI,[l.createElementVNode("div",zCI,[C.type==="input"?(l.openBlock(),l.createElementBlock("input",{key:0,ref:"elem",value:C.input,type:"text",class:"v3-emoji-picker-input",onInput:g[0]||(g[0]=(...o)=>C.onChangeText&&C.onChangeText(...o)),onBlur:g[1]||(g[1]=(...o)=>C.updateCursor&&C.updateCursor(...o))},null,40,JCI)):(l.openBlock(),l.createElementBlock("textarea",{key:1,ref:"elem",value:C.input,class:"v3-emoji-picker-textarea",onInput:g[2]||(g[2]=(...o)=>C.onChangeText&&C.onChangeText(...o)),onBlur:g[3]||(g[3]=(...o)=>C.updateCursor&&C.updateCursor(...o))},null,40,xCI)),l.createElementVNode("div",{class:l.normalizeClass(["v3-input-picker-wrap",C.open?"v3-picker-is-open":""])},[l.createElementVNode("button",{ref:"button",type:"button",class:"v3-input-picker-icon",onClick:g[4]||(g[4]=o=>C.open=!C.open)},[l.createElementVNode("img",{src:C.face,alt:""},null,8,TCI)],512),l.createElementVNode("div",{ref:"picker",class:l.normalizeClass(["v3-emoji-picker","v3-color-theme-"+C.colorTheme])},[l.createVNode(A),l.createVNode(n,{onSelect:C.onSelect},null,8,["onSelect"]),l.createVNode(s)],2)],2)])])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["v3-emoji-picker","v3-color-theme-"+C.colorTheme])},[l.createVNode(A),l.createVNode(n,{onSelect:C.onSelect},null,8,["onSelect"]),l.createVNode(s)],2))}var vCI=zh(FCI,[["render",LCI]]);const jCI=l.defineComponent({name:"Picker",components:{PickerRoot:vCI},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":C=>!0,select:C=>!0},setup(C,{emit:g}){const I=l.ref(C.text);function e(i){I.value=i||"",g("update:text",I.value)}const t=jgI();return t.updateOptions({native:C.native,hideSearch:C.hideSearch,hideGroupIcons:C.hideGroupIcons,hideGroupNames:C.hideGroupNames,staticTexts:{...XgI,...C.staticTexts},disableStickyGroupNames:C.disableStickyGroupNames,disabledGroups:C.disabledGroups,groupNames:{...VT,...C.groupNames},disableSkinTones:C.disableSkinTones,displayRecent:C.displayRecent,additionalGroups:C.additionalGroups,mode:C.mode,offset:C.offset,groupOrder:C.groupOrder,groupIcons:C.groupIcons,colorTheme:RgI.includes(C.theme)?C.theme:"light"}),l.provide("store",t),{type:C.pickerType,input:I,onChangeText:e}}});function QCI(C,g,I,e,t,i){const A=l.resolveComponent("picker-root");return l.openBlock(),l.createBlock(A,{type:C.type,text:C.input,onSelect:g[0]||(g[0]=n=>C.$emit("select",n)),"onUpdate:text":C.onChangeText},null,8,["type","text","onUpdate:text"])}var n9=zh(jCI,[["render",QCI]]),Jh=(C=>(C.primary="primary",C.secondary="secondary",C.red="red",C.green="green",C.yellow="yellow",C.blue="blue",C.white="white",C.black="black",C))(Jh||{});const eL=Qg(l.defineComponent({__name:"DropZone",emits:["files-dropped"],setup(C,{emit:g}){const I=g,e=l.reactive({dragging:!1,hasMedia:!1}),t=G=>new Promise(w=>setTimeout(w,G)),i=G=>G?Array.from(G.items??[]).some(B=>{if(B.kind!=="file")return!1;const p=B.type.toLowerCase();return p.startsWith("image/")||p.startsWith("video/")}):!1,A=G=>{var w;return G?(w=G.types)!=null&&w.includes("Files")?!0:Array.from(G.items??[]).some(B=>B.kind==="file"):!1},n=G=>G.files&&G.files.length>0?Array.from(G.files):Array.from(G.items??[]).filter(w=>w.kind==="file").map(w=>w.getAsFile()).filter(w=>!!w),s=async(G,w=5)=>{for(let B=0;B<=w;B++){const p=n(G);if(p.length||B===w)return p;await t(100)}return[]},o=async(G,w)=>{if(G.preventDefault(),e.dragging=!1,!G.dataTransfer)return;const B=await s(G.dataTransfer);B.length&&I("files-dropped",{files:B,onlyMedia:w})},a=G=>{G.preventDefault(),A(G.dataTransfer)&&(e.dragging=!0,e.hasMedia=i(G.dataTransfer))},d=G=>{G.preventDefault(),e.hasMedia=i(G.dataTransfer)},m=G=>{G.preventDefault(),e.dragging=!1},Z=G=>{G.clientX===0&&G.clientY===0&&(e.dragging=!1)},u=()=>{e.dragging=!1},h=G=>{G.clientX===0&&G.clientY===0&&(e.dragging=!1)};return l.onMounted(()=>{window.addEventListener("dragenter",a),window.addEventListener("dragover",d),window.addEventListener("drop",m),window.addEventListener("dragleave",Z),window.addEventListener("dragend",u)}),l.onUnmounted(()=>{window.removeEventListener("dragenter",a),window.removeEventListener("dragover",d),window.removeEventListener("drop",m),window.removeEventListener("dragleave",Z),window.removeEventListener("dragend",u)}),(G,w)=>(l.openBlock(),l.createBlock(l.Transition,{name:"drag"},{default:l.withCtx(()=>[e.dragging?(l.openBlock(),l.createElementBlock("div",{key:0,class:"drag-overlay",onDragover:w[3]||(w[3]=l.withModifiers(()=>{},["prevent"]))},[e.hasMedia?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("div",{class:"drag-overlay__zone",onDragleave:h,onDrop:w[0]||(w[0]=l.withModifiers(B=>o(B,!1),["prevent"]))},[...w[4]||(w[4]=[l.createElementVNode("div",{class:"drag-overlay__title"},"Загрузить файл",-1)])],32),l.createElementVNode("div",{class:"drag-overlay__zone drag-overlay__zone--media",onDragleave:h,onDrop:w[1]||(w[1]=l.withModifiers(B=>o(B,!0),["prevent"]))},[...w[5]||(w[5]=[l.createElementVNode("div",{class:"drag-overlay__title"},"Загрузить фото/видео",-1)])],32)],64)):(l.openBlock(),l.createElementBlock("div",{key:1,class:"drag-overlay__zone drag-overlay__zone--full",onDragleave:h,onDrop:w[2]||(w[2]=l.withModifiers(B=>o(B,!1),["prevent"]))},[...w[6]||(w[6]=[l.createElementVNode("div",{class:"drag-overlay__title"},"Загрузить файл",-1)])],32))],32)):l.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-7c5caf8b"]]),OCI=["data-mention-active","onClick"],UCI={class:"editor-component__mention-content"},ECI={class:"editor-component__mention-label"},PCI={key:0,class:"editor-component__mention-subtitle"},_CI=Qg(l.defineComponent({__name:"ContentEditorMentionList",props:{items:{},selectedIndex:{},variant:{},isModal:{type:Boolean},isFixed:{type:Boolean},positionStyle:{},getKey:{type:Function},getLabel:{type:Function},getSubtitle:{type:Function},getAvatarUrl:{type:Function},getAvatarDefaultImage:{type:Function},getAvatarInitials:{type:Function},getIsOnline:{type:Function}},emits:["select"],setup(C,{emit:g}){const I=C,e=g;return(t,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["editor-component__mentions",{"editor-component__mentions--slash":I.variant==="slash","editor-component__mentions--modal":I.isModal,"editor-component__mentions--fixed":I.isFixed}]),style:l.normalizeStyle(I.positionStyle)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.items,(A,n)=>(l.openBlock(),l.createElementBlock("button",{key:I.getKey(A,n),type:"button",class:l.normalizeClass(["editor-component__mention-item",{"editor-component__mention-item--active":n===I.selectedIndex}]),"data-mention-active":n===I.selectedIndex,onClick:s=>e("select",A)},[l.createVNode(Ju,{class:"editor-component__mention-avatar",url:I.getAvatarUrl(A),"default-image":I.getAvatarDefaultImage(A),initials:I.getAvatarInitials(A),"is-online":I.getIsOnline(A)},null,8,["url","default-image","initials","is-online"]),l.createElementVNode("span",UCI,[l.createElementVNode("span",ECI,l.toDisplayString(I.getLabel(A)),1),I.getSubtitle(A)?(l.openBlock(),l.createElementBlock("span",PCI,l.toDisplayString(I.getSubtitle(A)),1)):l.createCommentVNode("",!0)])],10,OCI))),128))],6))}}),[["__scopeId","data-v-58f222b4"]]),qCI={key:0,class:"formatting-toolbar__mobile-selection-actions"},$CI={key:0,class:"formatting-toolbar__mobile-selection-divider"},geI=["onClick"],IeI={key:1,class:"formatting-toolbar__mobile-dropdown",role:"menu"},CeI={class:"formatting-toolbar__mobile-group"},eeI=["aria-label","aria-pressed","onClick"],teI={class:"formatting-toolbar__mobile-group"},ieI=["aria-label","aria-pressed","onClick"],AeI={class:"formatting-toolbar__group"},neI=["aria-label","onClick"],leI={class:"formatting-toolbar__group"},seI=["aria-label","onClick"],oeI={class:"formatting-toolbar__link-modal"},aeI={class:"formatting-toolbar__link-modal-header"},deI={class:"formatting-toolbar__field"},ceI=["onKeydown"],meI={class:"formatting-toolbar__field"},reI=["onKeydown"],Sl=16,ZeI=480,beI=Qg(l.defineComponent({__name:"ContentEditorFormattingToolbar",props:{editor:{},readClipboardText:{type:Function}},setup(C){const g=C,I=l.ref(null),e=l.ref(!1),t=l.ref(!1),i=l.ref(!1),A=l.ref(!1),n=l.ref(""),s=l.ref(""),o=l.ref(null),a=l.ref({}),d=l.ref(null),m=l.ref("center"),Z=l.ref(null),u=l.ref(""),h=l.ref(""),G=l.ref(!1),w=l.ref(!1),B=l.ref(!1),p=l.ref(null);let Y=null,N=[],R=0;const X=l.computed(()=>!!Z.value&&Z.value.from!==Z.value.to&&u.value.trim().length>0),K=l.computed(()=>h.value.trim().length>0),D=l.computed(()=>{const $=[];return K.value&&$.push({key:"paste",label:"Вставить"}),X.value&&($.push({key:"copy",label:"Скопировать"}),$.push({key:"cut",label:"Вырезать"})),$}),k=()=>{A.value=!1,n.value="",s.value="",Z.value=null,u.value=""},z=($,eg)=>$.state.doc.textBetween(eg.from,eg.to," "),v=($,eg)=>$.state.doc.textBetween(eg.from,eg.to,`
1767
+ }`;Ie.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:C,options:g}=this;return C.options.injectCSS&&typeof document<"u"&&_J(GgI,C.options.injectNonce,"selection"),[new xC({key:new Le("selection"),props:{decorations(I){return I.selection.empty||C.isFocused||!C.isEditable||QJ(I.selection)||C.view.dragging?null:MC.create(I.doc,[li.inline(I.selection.from,I.selection.to,{class:g.className})])}}})]}});var wgI="skipTrailingNode";function yT({types:C,node:g}){return g&&Array.isArray(C)&&C.includes(g.type)||(g==null?void 0:g.type)===C}var WgI=Ie.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var C;const g=new Le(this.name),I=this.options.node||((C=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:C.name)||"paragraph",e=Object.entries(this.editor.schema.nodes).map(([,t])=>t).filter(t=>(this.options.notAfter||[]).concat(I).includes(t.name));return[new xC({key:g,appendTransaction:(t,i,A)=>{const{doc:n,tr:s,schema:o}=A,a=g.getState(A),d=n.content.size,m=o.nodes[I];if(!t.some(Z=>Z.getMeta(wgI))&&a)return s.insert(d,m.create())},state:{init:(t,i)=>{const A=i.tr.doc.lastChild;return!yT({node:A,types:e})},apply:(t,i)=>{if(!t.docChanged||t.getMeta("__uniqueIDTransaction"))return i;const A=t.doc.lastChild;return!yT({node:A,types:e})}}})]}}),BgI=Ie.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:C,dispatch:g})=>uT(C,g),redo:()=>({state:C,dispatch:g})=>hT(C,g)}},addProseMirrorPlugins(){return[ngI(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()}}}),pgI=Ie.create({name:"starterKit",addExtensions(){var C,g,I,e;const t=[];return this.options.bold!==!1&&t.push(Zqg.configure(this.options.bold)),this.options.blockquote!==!1&&t.push(aqg.configure(this.options.blockquote)),this.options.bulletList!==!1&&t.push($x.configure(this.options.bulletList)),this.options.code!==!1&&t.push(hqg.configure(this.options.code)),this.options.codeBlock!==!1&&t.push(Wqg.configure(this.options.codeBlock)),this.options.document!==!1&&t.push(Bqg.configure(this.options.document)),this.options.dropcursor!==!1&&t.push(lgI.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&t.push(sgI.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&t.push(pqg.configure(this.options.hardBreak)),this.options.heading!==!1&&t.push(Yqg.configure(this.options.heading)),this.options.undoRedo!==!1&&t.push(BgI.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&t.push(yqg.configure(this.options.horizontalRule)),this.options.italic!==!1&&t.push(Mqg.configure(this.options.italic)),this.options.listItem!==!1&&t.push(eT.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(nT.configure((C=this.options)==null?void 0:C.listKeymap)),this.options.link!==!1&&t.push(Px.configure((g=this.options)==null?void 0:g.link)),this.options.orderedList!==!1&&t.push(dT.configure(this.options.orderedList)),this.options.paragraph!==!1&&t.push(K$g.configure(this.options.paragraph)),this.options.strike!==!1&&t.push(x$g.configure(this.options.strike)),this.options.text!==!1&&t.push(T$g.configure(this.options.text)),this.options.underline!==!1&&t.push(L$g.configure((I=this.options)==null?void 0:I.underline)),this.options.trailingNode!==!1&&t.push(WgI.configure((e=this.options)==null?void 0:e.trailingNode)),t}}),YgI=pgI,ygI=hgI;const NT="https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64",VT={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"},XT="u",AY="n",nY="v",Mh="r",NgI={[AY]:["grinning face","grinning"],[XT]:"1f600",[Mh]:"1f600"},lY="neutral",VgI=[lY,"1f3fb","1f3fc","1f3fd","1f3fe","1f3ff"],XgI={placeholder:"Search emoji",skinTone:"Skin tone"},RgI=["light","dark","auto"];var MgI={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"}]},RT=[{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 HgI=(C,g)=>g.some(I=>C instanceof I);let MT,HT;function fgI(){return MT||(MT=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function SgI(){return HT||(HT=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const fT=new WeakMap,jR=new WeakMap,ST=new WeakMap,QR=new WeakMap,OR=new WeakMap;function DgI(C){const g=new Promise((I,e)=>{const t=()=>{C.removeEventListener("success",i),C.removeEventListener("error",A)},i=()=>{I(pa(C.result)),t()},A=()=>{e(C.error),t()};C.addEventListener("success",i),C.addEventListener("error",A)});return g.then(I=>{I instanceof IDBCursor&&fT.set(I,C)}).catch(()=>{}),OR.set(g,C),g}function kgI(C){if(jR.has(C))return;const g=new Promise((I,e)=>{const t=()=>{C.removeEventListener("complete",i),C.removeEventListener("error",A),C.removeEventListener("abort",A)},i=()=>{I(),t()},A=()=>{e(C.error||new DOMException("AbortError","AbortError")),t()};C.addEventListener("complete",i),C.addEventListener("error",A),C.addEventListener("abort",A)});jR.set(C,g)}let UR={get(C,g,I){if(C instanceof IDBTransaction){if(g==="done")return jR.get(C);if(g==="objectStoreNames")return C.objectStoreNames||ST.get(C);if(g==="store")return I.objectStoreNames[1]?void 0:I.objectStore(I.objectStoreNames[0])}return pa(C[g])},set(C,g,I){return C[g]=I,!0},has(C,g){return C instanceof IDBTransaction&&(g==="done"||g==="store")?!0:g in C}};function FgI(C){UR=C(UR)}function KgI(C){return C===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(g,...I){const e=C.call(ER(this),g,...I);return ST.set(e,g.sort?g.sort():[g]),pa(e)}:SgI().includes(C)?function(...g){return C.apply(ER(this),g),pa(fT.get(this))}:function(...g){return pa(C.apply(ER(this),g))}}function zgI(C){return typeof C=="function"?KgI(C):(C instanceof IDBTransaction&&kgI(C),HgI(C,fgI())?new Proxy(C,UR):C)}function pa(C){if(C instanceof IDBRequest)return DgI(C);if(QR.has(C))return QR.get(C);const g=zgI(C);return g!==C&&(QR.set(C,g),OR.set(g,C)),g}const ER=C=>OR.get(C);function PR(C,g,{blocked:I,upgrade:e,blocking:t,terminated:i}={}){const A=indexedDB.open(C,g),n=pa(A);return e&&A.addEventListener("upgradeneeded",s=>{e(pa(A.result),s.oldVersion,s.newVersion,pa(A.transaction),s)}),I&&A.addEventListener("blocked",s=>I(s.oldVersion,s.newVersion,s)),n.then(s=>{i&&s.addEventListener("close",()=>i()),t&&s.addEventListener("versionchange",o=>t(o.oldVersion,o.newVersion,o))}).catch(()=>{}),n}const JgI=["get","getKey","getAll","getAllKeys","count"],xgI=["put","add","delete","clear"],_R=new Map;function DT(C,g){if(!(C instanceof IDBDatabase&&!(g in C)&&typeof g=="string"))return;if(_R.get(g))return _R.get(g);const I=g.replace(/FromIndex$/,""),e=g!==I,t=xgI.includes(I);if(!(I in(e?IDBIndex:IDBObjectStore).prototype)||!(t||JgI.includes(I)))return;const i=async function(A,...n){const s=this.transaction(A,t?"readwrite":"readonly");let o=s.store;return e&&(o=o.index(n.shift())),(await Promise.all([o[I](...n),t&&s.done]))[0]};return _R.set(g,i),i}FgI(C=>({...C,get:(g,I,e)=>DT(g,I)||C.get(g,I,e),has:(g,I)=>!!DT(g,I)||C.has(g,I)}));const qR="EMJ",BZ="emojis",$R=3;async function TgI(){(await PR(qR,$R,{upgrade(g,I){g.objectStoreNames.contains(BZ)||g.createObjectStore(BZ,{keyPath:"id",autoIncrement:!0}).createIndex("id","id",{unique:!0})}})).close()}TgI();const LgI={native:!1,hideSearch:!0,hideGroupIcons:!1,hideGroupNames:!1,staticTexts:{},disabledGroups:[],groupNames:{},displayRecent:!1,additionalGroups:{},groupOrder:[],groupIcons:{}};async function vgI(){return await(await PR(qR,$R)).transaction(BZ,"readonly").objectStore(BZ).getAll()}function jgI(){const C=l.reactive({search:"",emoji:NgI,activeGroup:"",skinTone:lY,options:LgI,additionalGroups:{},recent:[],get emojis(){return{recent:this.recent,...this.options.additionalGroups,...MgI}},get disabled(){let d=Array.isArray(this.options.disabledGroups)?this.options.disabledGroups:[];return this.options.displayRecent||(d=["recent",...d]),d},get groups(){return RT.filter(d=>!this.disabled.includes(d.key))},get orderedGroupKeys(){const d=[...this.options.groupOrder,...Object.keys(this.options.additionalGroups),...RT.map(m=>m.key)];return[...new Set(d)].filter(m=>!this.disabled.includes(m))}});function g(){C.options.displayRecent&&e()}async function I(){var d;let m=await vgI();return Array.isArray(m)&&m.length?m=JSON.parse(((d=m[0])==null?void 0:d.value)||""):m=[],m}function e(){I().then(d=>{C.recent=d,o()})}const t=d=>{C.search=d},i=d=>{C.emoji=d},A=d=>{C.activeGroup=d},n=(d=lY)=>{C.skinTone=d},s=d=>{C.options=Object.assign({},C.options,d),g()};async function o(){(await PR(qR,$R)).transaction(BZ,"readwrite").objectStore(BZ).put({id:0,value:JSON.stringify(C.recent)})}const a=d=>{if(C.options.displayRecent!==!0)return;const m=C.recent.findIndex(u=>u.u===d.u);if(m>0&&C.recent.splice(m,1),m===0)return;const Z={u:d.u,n:l.toRaw(d.n)};C.recent=[Z,...C.recent],C.recent.length>24&&(C.recent.length=24),o()};return{state:l.readonly(C),updateSearch:t,updateEmoji:i,updateActiveGroup:A,updateSkinTone:n,updateOptions:s,updateSelect:a}}var ki="top",_A="bottom",qA="right",Fi="left",g9="auto",Hh=[ki,_A,qA,Fi],pZ="start",fh="end",QgI="clippingParents",kT="viewport",Sh="popper",OgI="reference",FT=Hh.reduce(function(C,g){return C.concat([g+"-"+pZ,g+"-"+fh])},[]),KT=[].concat(Hh,[g9]).reduce(function(C,g){return C.concat([g,g+"-"+pZ,g+"-"+fh])},[]),UgI="beforeRead",EgI="read",PgI="afterRead",_gI="beforeMain",qgI="main",$gI="afterMain",gII="beforeWrite",III="write",CII="afterWrite",eII=[UgI,EgI,PgI,_gI,qgI,$gI,gII,III,CII];function Ml(C){return C?(C.nodeName||"").toLowerCase():null}function xn(C){if(C==null)return window;if(C.toString()!=="[object Window]"){var g=C.ownerDocument;return g&&g.defaultView||window}return C}function YZ(C){var g=xn(C).Element;return C instanceof g||C instanceof Element}function $A(C){var g=xn(C).HTMLElement;return C instanceof g||C instanceof HTMLElement}function zT(C){if(typeof ShadowRoot>"u")return!1;var g=xn(C).ShadowRoot;return C instanceof g||C instanceof ShadowRoot}function tII(C){var g=C.state;Object.keys(g.elements).forEach(function(I){var e=g.styles[I]||{},t=g.attributes[I]||{},i=g.elements[I];!$A(i)||!Ml(i)||(Object.assign(i.style,e),Object.keys(t).forEach(function(A){var n=t[A];n===!1?i.removeAttribute(A):i.setAttribute(A,n===!0?"":n)}))})}function iII(C){var g=C.state,I={popper:{position:g.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(g.elements.popper.style,I.popper),g.styles=I,g.elements.arrow&&Object.assign(g.elements.arrow.style,I.arrow),function(){Object.keys(g.elements).forEach(function(e){var t=g.elements[e],i=g.attributes[e]||{},A=Object.keys(g.styles.hasOwnProperty(e)?g.styles[e]:I[e]),n=A.reduce(function(s,o){return s[o]="",s},{});!$A(t)||!Ml(t)||(Object.assign(t.style,n),Object.keys(i).forEach(function(s){t.removeAttribute(s)}))})}}var AII={name:"applyStyles",enabled:!0,phase:"write",fn:tII,effect:iII,requires:["computeStyles"]};function Hl(C){return C.split("-")[0]}var Sc=Math.max,sY=Math.min,yZ=Math.round;function NZ(C,g){g===void 0&&(g=!1);var I=C.getBoundingClientRect(),e=1,t=1;if($A(C)&&g){var i=C.offsetHeight,A=C.offsetWidth;A>0&&(e=yZ(I.width)/A||1),i>0&&(t=yZ(I.height)/i||1)}return{width:I.width/e,height:I.height/t,top:I.top/t,right:I.right/e,bottom:I.bottom/t,left:I.left/e,x:I.left/e,y:I.top/t}}function I9(C){var g=NZ(C),I=C.offsetWidth,e=C.offsetHeight;return Math.abs(g.width-I)<=1&&(I=g.width),Math.abs(g.height-e)<=1&&(e=g.height),{x:C.offsetLeft,y:C.offsetTop,width:I,height:e}}function JT(C,g){var I=g.getRootNode&&g.getRootNode();if(C.contains(g))return!0;if(I&&zT(I)){var e=g;do{if(e&&C.isSameNode(e))return!0;e=e.parentNode||e.host}while(e)}return!1}function fl(C){return xn(C).getComputedStyle(C)}function nII(C){return["table","td","th"].indexOf(Ml(C))>=0}function Ya(C){return((YZ(C)?C.ownerDocument:C.document)||window.document).documentElement}function oY(C){return Ml(C)==="html"?C:C.assignedSlot||C.parentNode||(zT(C)?C.host:null)||Ya(C)}function xT(C){return!$A(C)||fl(C).position==="fixed"?null:C.offsetParent}function lII(C){var g=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,I=navigator.userAgent.indexOf("Trident")!==-1;if(I&&$A(C)){var e=fl(C);if(e.position==="fixed")return null}for(var t=oY(C);$A(t)&&["html","body"].indexOf(Ml(t))<0;){var i=fl(t);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||g&&i.willChange==="filter"||g&&i.filter&&i.filter!=="none")return t;t=t.parentNode}return null}function Dh(C){for(var g=xn(C),I=xT(C);I&&nII(I)&&fl(I).position==="static";)I=xT(I);return I&&(Ml(I)==="html"||Ml(I)==="body"&&fl(I).position==="static")?g:I||lII(C)||g}function C9(C){return["top","bottom"].indexOf(C)>=0?"x":"y"}function kh(C,g,I){return Sc(C,sY(g,I))}function sII(C,g,I){var e=kh(C,g,I);return e>I?I:e}function TT(){return{top:0,right:0,bottom:0,left:0}}function LT(C){return Object.assign({},TT(),C)}function vT(C,g){return g.reduce(function(I,e){return I[e]=C,I},{})}var oII=function(g,I){return g=typeof g=="function"?g(Object.assign({},I.rects,{placement:I.placement})):g,LT(typeof g!="number"?g:vT(g,Hh))};function aII(C){var g,I=C.state,e=C.name,t=C.options,i=I.elements.arrow,A=I.modifiersData.popperOffsets,n=Hl(I.placement),s=C9(n),o=[Fi,qA].indexOf(n)>=0,a=o?"height":"width";if(!(!i||!A)){var d=oII(t.padding,I),m=I9(i),Z=s==="y"?ki:Fi,u=s==="y"?_A:qA,h=I.rects.reference[a]+I.rects.reference[s]-A[s]-I.rects.popper[a],G=A[s]-I.rects.reference[s],w=Dh(i),B=w?s==="y"?w.clientHeight||0:w.clientWidth||0:0,p=h/2-G/2,Y=d[Z],N=B-m[a]-d[u],R=B/2-m[a]/2+p,X=kh(Y,R,N),K=s;I.modifiersData[e]=(g={},g[K]=X,g.centerOffset=X-R,g)}}function dII(C){var g=C.state,I=C.options,e=I.element,t=e===void 0?"[data-popper-arrow]":e;t!=null&&(typeof t=="string"&&(t=g.elements.popper.querySelector(t),!t)||JT(g.elements.popper,t)&&(g.elements.arrow=t))}var cII={name:"arrow",enabled:!0,phase:"main",fn:aII,effect:dII,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function VZ(C){return C.split("-")[1]}var mII={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rII(C){var g=C.x,I=C.y,e=window,t=e.devicePixelRatio||1;return{x:yZ(g*t)/t||0,y:yZ(I*t)/t||0}}function jT(C){var g,I=C.popper,e=C.popperRect,t=C.placement,i=C.variation,A=C.offsets,n=C.position,s=C.gpuAcceleration,o=C.adaptive,a=C.roundOffsets,d=C.isFixed,m=a===!0?rII(A):typeof a=="function"?a(A):A,Z=m.x,u=Z===void 0?0:Z,h=m.y,G=h===void 0?0:h,w=A.hasOwnProperty("x"),B=A.hasOwnProperty("y"),p=Fi,Y=ki,N=window;if(o){var R=Dh(I),X="clientHeight",K="clientWidth";if(R===xn(I)&&(R=Ya(I),fl(R).position!=="static"&&n==="absolute"&&(X="scrollHeight",K="scrollWidth")),R=R,t===ki||(t===Fi||t===qA)&&i===fh){Y=_A;var D=d&&N.visualViewport?N.visualViewport.height:R[X];G-=D-e.height,G*=s?1:-1}if(t===Fi||(t===ki||t===_A)&&i===fh){p=qA;var k=d&&N.visualViewport?N.visualViewport.width:R[K];u-=k-e.width,u*=s?1:-1}}var z=Object.assign({position:n},o&&mII);if(s){var v;return Object.assign({},z,(v={},v[Y]=B?"0":"",v[p]=w?"0":"",v.transform=(N.devicePixelRatio||1)<=1?"translate("+u+"px, "+G+"px)":"translate3d("+u+"px, "+G+"px, 0)",v))}return Object.assign({},z,(g={},g[Y]=B?G+"px":"",g[p]=w?u+"px":"",g.transform="",g))}function ZII(C){var g=C.state,I=C.options,e=I.gpuAcceleration,t=e===void 0?!0:e,i=I.adaptive,A=i===void 0?!0:i,n=I.roundOffsets,s=n===void 0?!0:n,o={placement:Hl(g.placement),variation:VZ(g.placement),popper:g.elements.popper,popperRect:g.rects.popper,gpuAcceleration:t,isFixed:g.options.strategy==="fixed"};g.modifiersData.popperOffsets!=null&&(g.styles.popper=Object.assign({},g.styles.popper,jT(Object.assign({},o,{offsets:g.modifiersData.popperOffsets,position:g.options.strategy,adaptive:A,roundOffsets:s})))),g.modifiersData.arrow!=null&&(g.styles.arrow=Object.assign({},g.styles.arrow,jT(Object.assign({},o,{offsets:g.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),g.attributes.popper=Object.assign({},g.attributes.popper,{"data-popper-placement":g.placement})}var bII={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ZII,data:{}},aY={passive:!0};function uII(C){var g=C.state,I=C.instance,e=C.options,t=e.scroll,i=t===void 0?!0:t,A=e.resize,n=A===void 0?!0:A,s=xn(g.elements.popper),o=[].concat(g.scrollParents.reference,g.scrollParents.popper);return i&&o.forEach(function(a){a.addEventListener("scroll",I.update,aY)}),n&&s.addEventListener("resize",I.update,aY),function(){i&&o.forEach(function(a){a.removeEventListener("scroll",I.update,aY)}),n&&s.removeEventListener("resize",I.update,aY)}}var hII={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:uII,data:{}},GII={left:"right",right:"left",bottom:"top",top:"bottom"};function dY(C){return C.replace(/left|right|bottom|top/g,function(g){return GII[g]})}var wII={start:"end",end:"start"};function QT(C){return C.replace(/start|end/g,function(g){return wII[g]})}function e9(C){var g=xn(C),I=g.pageXOffset,e=g.pageYOffset;return{scrollLeft:I,scrollTop:e}}function t9(C){return NZ(Ya(C)).left+e9(C).scrollLeft}function WII(C){var g=xn(C),I=Ya(C),e=g.visualViewport,t=I.clientWidth,i=I.clientHeight,A=0,n=0;return e&&(t=e.width,i=e.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(A=e.offsetLeft,n=e.offsetTop)),{width:t,height:i,x:A+t9(C),y:n}}function BII(C){var g,I=Ya(C),e=e9(C),t=(g=C.ownerDocument)==null?void 0:g.body,i=Sc(I.scrollWidth,I.clientWidth,t?t.scrollWidth:0,t?t.clientWidth:0),A=Sc(I.scrollHeight,I.clientHeight,t?t.scrollHeight:0,t?t.clientHeight:0),n=-e.scrollLeft+t9(C),s=-e.scrollTop;return fl(t||I).direction==="rtl"&&(n+=Sc(I.clientWidth,t?t.clientWidth:0)-i),{width:i,height:A,x:n,y:s}}function i9(C){var g=fl(C),I=g.overflow,e=g.overflowX,t=g.overflowY;return/auto|scroll|overlay|hidden/.test(I+t+e)}function OT(C){return["html","body","#document"].indexOf(Ml(C))>=0?C.ownerDocument.body:$A(C)&&i9(C)?C:OT(oY(C))}function Fh(C,g){var I;g===void 0&&(g=[]);var e=OT(C),t=e===((I=C.ownerDocument)==null?void 0:I.body),i=xn(e),A=t?[i].concat(i.visualViewport||[],i9(e)?e:[]):e,n=g.concat(A);return t?n:n.concat(Fh(oY(A)))}function A9(C){return Object.assign({},C,{left:C.x,top:C.y,right:C.x+C.width,bottom:C.y+C.height})}function pII(C){var g=NZ(C);return g.top=g.top+C.clientTop,g.left=g.left+C.clientLeft,g.bottom=g.top+C.clientHeight,g.right=g.left+C.clientWidth,g.width=C.clientWidth,g.height=C.clientHeight,g.x=g.left,g.y=g.top,g}function UT(C,g){return g===kT?A9(WII(C)):YZ(g)?pII(g):A9(BII(Ya(C)))}function YII(C){var g=Fh(oY(C)),I=["absolute","fixed"].indexOf(fl(C).position)>=0,e=I&&$A(C)?Dh(C):C;return YZ(e)?g.filter(function(t){return YZ(t)&&JT(t,e)&&Ml(t)!=="body"&&(I?fl(t).position!=="static":!0)}):[]}function yII(C,g,I){var e=g==="clippingParents"?YII(C):[].concat(g),t=[].concat(e,[I]),i=t[0],A=t.reduce(function(n,s){var o=UT(C,s);return n.top=Sc(o.top,n.top),n.right=sY(o.right,n.right),n.bottom=sY(o.bottom,n.bottom),n.left=Sc(o.left,n.left),n},UT(C,i));return A.width=A.right-A.left,A.height=A.bottom-A.top,A.x=A.left,A.y=A.top,A}function ET(C){var g=C.reference,I=C.element,e=C.placement,t=e?Hl(e):null,i=e?VZ(e):null,A=g.x+g.width/2-I.width/2,n=g.y+g.height/2-I.height/2,s;switch(t){case ki:s={x:A,y:g.y-I.height};break;case _A:s={x:A,y:g.y+g.height};break;case qA:s={x:g.x+g.width,y:n};break;case Fi:s={x:g.x-I.width,y:n};break;default:s={x:g.x,y:g.y}}var o=t?C9(t):null;if(o!=null){var a=o==="y"?"height":"width";switch(i){case pZ:s[o]=s[o]-(g[a]/2-I[a]/2);break;case fh:s[o]=s[o]+(g[a]/2-I[a]/2);break}}return s}function Kh(C,g){g===void 0&&(g={});var I=g,e=I.placement,t=e===void 0?C.placement:e,i=I.boundary,A=i===void 0?QgI:i,n=I.rootBoundary,s=n===void 0?kT:n,o=I.elementContext,a=o===void 0?Sh:o,d=I.altBoundary,m=d===void 0?!1:d,Z=I.padding,u=Z===void 0?0:Z,h=LT(typeof u!="number"?u:vT(u,Hh)),G=a===Sh?OgI:Sh,w=C.rects.popper,B=C.elements[m?G:a],p=yII(YZ(B)?B:B.contextElement||Ya(C.elements.popper),A,s),Y=NZ(C.elements.reference),N=ET({reference:Y,element:w,placement:t}),R=A9(Object.assign({},w,N)),X=a===Sh?R:Y,K={top:p.top-X.top+h.top,bottom:X.bottom-p.bottom+h.bottom,left:p.left-X.left+h.left,right:X.right-p.right+h.right},D=C.modifiersData.offset;if(a===Sh&&D){var k=D[t];Object.keys(K).forEach(function(z){var v=[qA,_A].indexOf(z)>=0?1:-1,O=[ki,_A].indexOf(z)>=0?"y":"x";K[z]+=k[O]*v})}return K}function NII(C,g){g===void 0&&(g={});var I=g,e=I.placement,t=I.boundary,i=I.rootBoundary,A=I.padding,n=I.flipVariations,s=I.allowedAutoPlacements,o=s===void 0?KT:s,a=VZ(e),d=a?n?FT:FT.filter(function(u){return VZ(u)===a}):Hh,m=d.filter(function(u){return o.indexOf(u)>=0});m.length===0&&(m=d);var Z=m.reduce(function(u,h){return u[h]=Kh(C,{placement:h,boundary:t,rootBoundary:i,padding:A})[Hl(h)],u},{});return Object.keys(Z).sort(function(u,h){return Z[u]-Z[h]})}function VII(C){if(Hl(C)===g9)return[];var g=dY(C);return[QT(C),g,QT(g)]}function XII(C){var g=C.state,I=C.options,e=C.name;if(!g.modifiersData[e]._skip){for(var t=I.mainAxis,i=t===void 0?!0:t,A=I.altAxis,n=A===void 0?!0:A,s=I.fallbackPlacements,o=I.padding,a=I.boundary,d=I.rootBoundary,m=I.altBoundary,Z=I.flipVariations,u=Z===void 0?!0:Z,h=I.allowedAutoPlacements,G=g.options.placement,w=Hl(G),B=w===G,p=s||(B||!u?[dY(G)]:VII(G)),Y=[G].concat(p).reduce(function(kg,Vg){return kg.concat(Hl(Vg)===g9?NII(g,{placement:Vg,boundary:a,rootBoundary:d,padding:o,flipVariations:u,allowedAutoPlacements:h}):Vg)},[]),N=g.rects.reference,R=g.rects.popper,X=new Map,K=!0,D=Y[0],k=0;k<Y.length;k++){var z=Y[k],v=Hl(z),O=VZ(z)===pZ,Cg=[ki,_A].indexOf(v)>=0,U=Cg?"width":"height",T=Kh(g,{placement:z,boundary:a,rootBoundary:d,altBoundary:m,padding:o}),q=Cg?O?qA:Fi:O?_A:ki;N[U]>R[U]&&(q=dY(q));var cg=dY(q),og=[];if(i&&og.push(T[v]<=0),n&&og.push(T[q]<=0,T[cg]<=0),og.every(function(kg){return kg})){D=z,K=!1;break}X.set(z,og)}if(K)for(var Wg=u?3:1,fg=function(Vg){var gI=Y.find(function(qg){var CC=X.get(qg);if(CC)return CC.slice(0,Vg).every(function(NC){return NC})});if(gI)return D=gI,"break"},Rg=Wg;Rg>0;Rg--){var Bg=fg(Rg);if(Bg==="break")break}g.placement!==D&&(g.modifiersData[e]._skip=!0,g.placement=D,g.reset=!0)}}var RII={name:"flip",enabled:!0,phase:"main",fn:XII,requiresIfExists:["offset"],data:{_skip:!1}};function PT(C,g,I){return I===void 0&&(I={x:0,y:0}),{top:C.top-g.height-I.y,right:C.right-g.width+I.x,bottom:C.bottom-g.height+I.y,left:C.left-g.width-I.x}}function _T(C){return[ki,qA,_A,Fi].some(function(g){return C[g]>=0})}function MII(C){var g=C.state,I=C.name,e=g.rects.reference,t=g.rects.popper,i=g.modifiersData.preventOverflow,A=Kh(g,{elementContext:"reference"}),n=Kh(g,{altBoundary:!0}),s=PT(A,e),o=PT(n,t,i),a=_T(s),d=_T(o);g.modifiersData[I]={referenceClippingOffsets:s,popperEscapeOffsets:o,isReferenceHidden:a,hasPopperEscaped:d},g.attributes.popper=Object.assign({},g.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":d})}var HII={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MII};function fII(C,g,I){var e=Hl(C),t=[Fi,ki].indexOf(e)>=0?-1:1,i=typeof I=="function"?I(Object.assign({},g,{placement:C})):I,A=i[0],n=i[1];return A=A||0,n=(n||0)*t,[Fi,qA].indexOf(e)>=0?{x:n,y:A}:{x:A,y:n}}function SII(C){var g=C.state,I=C.options,e=C.name,t=I.offset,i=t===void 0?[0,0]:t,A=KT.reduce(function(a,d){return a[d]=fII(d,g.rects,i),a},{}),n=A[g.placement],s=n.x,o=n.y;g.modifiersData.popperOffsets!=null&&(g.modifiersData.popperOffsets.x+=s,g.modifiersData.popperOffsets.y+=o),g.modifiersData[e]=A}var DII={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SII};function kII(C){var g=C.state,I=C.name;g.modifiersData[I]=ET({reference:g.rects.reference,element:g.rects.popper,placement:g.placement})}var FII={name:"popperOffsets",enabled:!0,phase:"read",fn:kII,data:{}};function KII(C){return C==="x"?"y":"x"}function zII(C){var g=C.state,I=C.options,e=C.name,t=I.mainAxis,i=t===void 0?!0:t,A=I.altAxis,n=A===void 0?!1:A,s=I.boundary,o=I.rootBoundary,a=I.altBoundary,d=I.padding,m=I.tether,Z=m===void 0?!0:m,u=I.tetherOffset,h=u===void 0?0:u,G=Kh(g,{boundary:s,rootBoundary:o,padding:d,altBoundary:a}),w=Hl(g.placement),B=VZ(g.placement),p=!B,Y=C9(w),N=KII(Y),R=g.modifiersData.popperOffsets,X=g.rects.reference,K=g.rects.popper,D=typeof h=="function"?h(Object.assign({},g.rects,{placement:g.placement})):h,k=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),z=g.modifiersData.offset?g.modifiersData.offset[g.placement]:null,v={x:0,y:0};if(R){if(i){var O,Cg=Y==="y"?ki:Fi,U=Y==="y"?_A:qA,T=Y==="y"?"height":"width",q=R[Y],cg=q+G[Cg],og=q-G[U],Wg=Z?-K[T]/2:0,fg=B===pZ?X[T]:K[T],Rg=B===pZ?-K[T]:-X[T],Bg=g.elements.arrow,kg=Z&&Bg?I9(Bg):{width:0,height:0},Vg=g.modifiersData["arrow#persistent"]?g.modifiersData["arrow#persistent"].padding:TT(),gI=Vg[Cg],qg=Vg[U],CC=kh(0,X[T],kg[T]),NC=p?X[T]/2-Wg-CC-gI-k.mainAxis:fg-CC-gI-k.mainAxis,BC=p?-X[T]/2+Wg+CC+qg+k.mainAxis:Rg+CC+qg+k.mainAxis,eC=g.elements.arrow&&Dh(g.elements.arrow),te=eC?Y==="y"?eC.clientTop||0:eC.clientLeft||0:0,jI=(O=z==null?void 0:z[Y])!=null?O:0,Be=q+NC-jI-te,SI=q+BC-jI,DI=kh(Z?sY(cg,Be):cg,q,Z?Sc(og,SI):og);R[Y]=DI,v[Y]=DI-q}if(n){var At,vC=Y==="x"?ki:Fi,NA=Y==="x"?_A:qA,nt=R[N],ie=N==="y"?"height":"width",QI=nt+G[vC],Fe=nt-G[NA],VC=[ki,Fi].indexOf(w)!==-1,lt=(At=z==null?void 0:z[N])!=null?At:0,aC=VC?QI:nt-X[ie]-K[ie]-lt+k.altAxis,vi=VC?nt+X[ie]+K[ie]-lt-k.altAxis:Fe,Ze=Z&&VC?sII(aC,nt,vi):kh(Z?aC:QI,nt,Z?vi:Fe);R[N]=Ze,v[N]=Ze-nt}g.modifiersData[e]=v}}var JII={name:"preventOverflow",enabled:!0,phase:"main",fn:zII,requiresIfExists:["offset"]};function xII(C){return{scrollLeft:C.scrollLeft,scrollTop:C.scrollTop}}function TII(C){return C===xn(C)||!$A(C)?e9(C):xII(C)}function LII(C){var g=C.getBoundingClientRect(),I=yZ(g.width)/C.offsetWidth||1,e=yZ(g.height)/C.offsetHeight||1;return I!==1||e!==1}function vII(C,g,I){I===void 0&&(I=!1);var e=$A(g),t=$A(g)&&LII(g),i=Ya(g),A=NZ(C,t),n={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(e||!e&&!I)&&((Ml(g)!=="body"||i9(i))&&(n=TII(g)),$A(g)?(s=NZ(g,!0),s.x+=g.clientLeft,s.y+=g.clientTop):i&&(s.x=t9(i))),{x:A.left+n.scrollLeft-s.x,y:A.top+n.scrollTop-s.y,width:A.width,height:A.height}}function jII(C){var g=new Map,I=new Set,e=[];C.forEach(function(i){g.set(i.name,i)});function t(i){I.add(i.name);var A=[].concat(i.requires||[],i.requiresIfExists||[]);A.forEach(function(n){if(!I.has(n)){var s=g.get(n);s&&t(s)}}),e.push(i)}return C.forEach(function(i){I.has(i.name)||t(i)}),e}function QII(C){var g=jII(C);return eII.reduce(function(I,e){return I.concat(g.filter(function(t){return t.phase===e}))},[])}function OII(C){var g;return function(){return g||(g=new Promise(function(I){Promise.resolve().then(function(){g=void 0,I(C())})})),g}}function UII(C){var g=C.reduce(function(I,e){var t=I[e.name];return I[e.name]=t?Object.assign({},t,e,{options:Object.assign({},t.options,e.options),data:Object.assign({},t.data,e.data)}):e,I},{});return Object.keys(g).map(function(I){return g[I]})}var qT={placement:"bottom",modifiers:[],strategy:"absolute"};function $T(){for(var C=arguments.length,g=new Array(C),I=0;I<C;I++)g[I]=arguments[I];return!g.some(function(e){return!(e&&typeof e.getBoundingClientRect=="function")})}function EII(C){C===void 0&&(C={});var g=C,I=g.defaultModifiers,e=I===void 0?[]:I,t=g.defaultOptions,i=t===void 0?qT:t;return function(n,s,o){o===void 0&&(o=i);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},qT,i),modifiersData:{},elements:{reference:n,popper:s},attributes:{},styles:{}},d=[],m=!1,Z={state:a,setOptions:function(w){var B=typeof w=="function"?w(a.options):w;h(),a.options=Object.assign({},i,a.options,B),a.scrollParents={reference:YZ(n)?Fh(n):n.contextElement?Fh(n.contextElement):[],popper:Fh(s)};var p=QII(UII([].concat(e,a.options.modifiers)));return a.orderedModifiers=p.filter(function(Y){return Y.enabled}),u(),Z.update()},forceUpdate:function(){if(!m){var w=a.elements,B=w.reference,p=w.popper;if($T(B,p)){a.rects={reference:vII(B,Dh(p),a.options.strategy==="fixed"),popper:I9(p)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(k){return a.modifiersData[k.name]=Object.assign({},k.data)});for(var Y=0;Y<a.orderedModifiers.length;Y++){if(a.reset===!0){a.reset=!1,Y=-1;continue}var N=a.orderedModifiers[Y],R=N.fn,X=N.options,K=X===void 0?{}:X,D=N.name;typeof R=="function"&&(a=R({state:a,options:K,name:D,instance:Z})||a)}}}},update:OII(function(){return new Promise(function(G){Z.forceUpdate(),G(a)})}),destroy:function(){h(),m=!0}};if(!$T(n,s))return Z;Z.setOptions(o).then(function(G){!m&&o.onFirstUpdate&&o.onFirstUpdate(G)});function u(){a.orderedModifiers.forEach(function(G){var w=G.name,B=G.options,p=B===void 0?{}:B,Y=G.effect;if(typeof Y=="function"){var N=Y({state:a,name:w,instance:Z,options:p}),R=function(){};d.push(N||R)}})}function h(){d.forEach(function(G){return G()}),d=[]}return Z}}var PII=[hII,FII,bII,AII,DII,RII,JII,cII,HII],_II=EII({defaultModifiers:PII}),gL="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";function cY(C){return C.split("-").map(g=>parseInt(g,16)).map(g=>String.fromCodePoint(g)).join("")}function qII(C,g,I,e=[]){const t={};return Object.keys(C).forEach(i=>{if(e.includes(i))return;const A=[];C[i].forEach(n=>{var s;if(n[AY][0].includes(g.toLocaleLowerCase())){let o=n[XT];if(I!==lY&&Array.isArray(n[nY])){const a=((s=n[nY])==null?void 0:s.findIndex(d=>d.includes(I)))||-1;a!==-1&&n[nY]&&(o=n[nY][a])}return A.push({...n,[Mh]:o})}}),A.length&&(t[i]=A)}),t}function IL(){var C;return(((C=navigator==null?void 0:navigator.userAgentData)==null?void 0:C.platform)||(navigator==null?void 0:navigator.platform)||"unknown").toUpperCase().indexOf("MAC")!==-1}function CL(C){return C.replace(/^_*(.)|_+(.)/g,(g,I,e)=>I?I.toUpperCase():" "+e.toUpperCase())}var zh=(C,g)=>{const I=C.__vccOpts||C;for(const[e,t]of g)I[e]=t;return I};const $II=l.defineComponent({name:"Body",emits:{select:C=>!0},setup(){const{state:C,updateEmoji:g,updateSelect:I}=l.inject("store"),e=l.ref(null),t=l.computed(()=>qII(C.emojis,C.search,C.skinTone,C.options.disabledGroups)),i=l.getCurrentInstance(),A=l.computed(()=>!C.options.hideGroupNames),n=l.computed(()=>!C.options.disableStickyGroupNames),s=l.toRaw(C.options.groupNames),o=C.orderedGroupKeys;C.options.additionalGroups&&Object.keys(C.options.additionalGroups).map(u=>{C.options.groupNames[u]?s[u]=C.options.groupNames[u]:s[u]=CL(u)});const a=IL()?"is-mac":"";function d(u){g(u)}function m(u){I(u),i==null||i.emit("select",{...u,t:C.skinTone,i:cY(u.r)})}function Z(u,h){var G;const w=(G=u==null?void 0:u.target)==null?void 0:G.closest("button");w&&(w.innerHTML=`<span>${cY(h)}</span>`)}return l.watch(()=>C.activeGroup,()=>{var u;const h=(u=e.value)==null?void 0:u.querySelector("#"+C.activeGroup);h&&(h.parentNode.scrollTop=h.offsetTop-h.parentNode.offsetTop)}),{emojis:t,bodyInner:e,EMOJI_REMOTE_SRC:NT,GROUP_NAMES:VT,handleClick:m,handleError:Z,handleMouseEnter:d,native:C.options.native,unicodeToEmoji:cY,EMOJI_RESULT_KEY:Mh,EMOJI_NAME_KEY:AY,hasGroupNames:A,isSticky:n,platform:a,groupNames:s,orderedKeys:o}}}),gCI={class:"v3-body"},ICI=["id"],CCI={class:"v3-emojis"},eCI=["onMouseenter","onClick"],tCI={key:0},iCI=["src","alt","onError"],ACI={key:1,class:"v3-no-result"};function nCI(C,g,I,e,t,i){return l.openBlock(),l.createElementBlock("div",gCI,[l.createElementVNode("div",{ref:"bodyInner",class:l.normalizeClass([C.platform,"v3-body-inner"])},[C.orderedKeys.length?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(C.orderedKeys,A=>(l.openBlock(),l.createElementBlock("div",{id:A,key:A,class:"v3-group"},[C.hasGroupNames?l.withDirectives((l.openBlock(),l.createElementBlock("h5",{key:0,class:l.normalizeClass(C.isSticky?"v3-sticky":"")},l.toDisplayString(C.groupNames[A]),3)),[[l.vShow,C.emojis[A]]]):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",CCI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(C.emojis[A],n=>(l.openBlock(),l.createElementBlock("button",{key:n.r,type:"button",onMouseenter:s=>C.handleMouseEnter(n),onClick:s=>C.handleClick(n)},[C.native?(l.openBlock(),l.createElementBlock("span",tCI,l.toDisplayString(C.unicodeToEmoji(n.r)),1)):(l.openBlock(),l.createElementBlock("img",{key:1,src:C.EMOJI_REMOTE_SRC+`/${n.r}.png`,alt:n.n[0],onError:s=>C.handleError(s,n.r)},null,40,iCI))],40,eCI))),128))],512),[[l.vShow,C.emojis[A]]])],8,ICI))),128)):(l.openBlock(),l.createElementBlock("span",ACI," No emoji has been found! "))],2)])}var lCI=zh($II,[["render",nCI]]),sCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41IEMgMTYgOC4zMzk4NDQgMTUuNjg3NSA3LjI2NTYyNSAxNS4wOTM3NSA2LjQzNzUgQyAxNC41IDUuNjA5Mzc1IDEzLjU3MDMxMyA1IDEyLjUgNSBaIE0gMTYgOS41IEMgMTYgMTAuNjYwMTU2IDE2LjMxMjUgMTEuNzM0Mzc1IDE2LjkwNjI1IDEyLjU2MjUgQyAxNy41IDEzLjM5MDYyNSAxOC40Mjk2ODggMTQgMTkuNSAxNCBDIDIwLjU3MDMxMyAxNCAyMS41IDEzLjM5MDYyNSAyMi4wOTM3NSAxMi41NjI1IEMgMjIuNjg3NSAxMS43MzQzNzUgMjMgMTAuNjYwMTU2IDIzIDkuNSBDIDIzIDguMzM5ODQ0IDIyLjY4NzUgNy4yNjU2MjUgMjIuMDkzNzUgNi40Mzc1IEMgMjEuNSA1LjYwOTM3NSAyMC41NzAzMTMgNSAxOS41IDUgQyAxOC40Mjk2ODggNSAxNy41IDUuNjA5Mzc1IDE2LjkwNjI1IDYuNDM3NSBDIDE2LjMxMjUgNy4yNjU2MjUgMTYgOC4zMzk4NDQgMTYgOS41IFogTSAxMi41IDcgQyAxMi44MTI1IDcgMTMuMTU2MjUgNy4xNTYyNSAxMy40Njg3NSA3LjU5Mzc1IEMgMTMuNzgxMjUgOC4wMzEyNSAxNCA4LjcyNjU2MyAxNCA5LjUgQyAxNCAxMC4yNzM0MzggMTMuNzgxMjUgMTAuOTY4NzUgMTMuNDY4NzUgMTEuNDA2MjUgQyAxMy4xNTYyNSAxMS44NDM3NSAxMi44MTI1IDEyIDEyLjUgMTIgQyAxMi4xODc1IDEyIDExLjg0Mzc1IDExLjg0Mzc1IDExLjUzMTI1IDExLjQwNjI1IEMgMTEuMjE4NzUgMTAuOTY4NzUgMTEgMTAuMjczNDM4IDExIDkuNSBDIDExIDguNzI2NTYzIDExLjIxODc1IDguMDMxMjUgMTEuNTMxMjUgNy41OTM3NSBDIDExLjg0Mzc1IDcuMTU2MjUgMTIuMTg3NSA3IDEyLjUgNyBaIE0gMTkuNSA3IEMgMTkuODEyNSA3IDIwLjE1NjI1IDcuMTU2MjUgMjAuNDY4NzUgNy41OTM3NSBDIDIwLjc4MTI1IDguMDMxMjUgMjEgOC43MjY1NjMgMjEgOS41IEMgMjEgMTAuMjczNDM4IDIwLjc4MTI1IDEwLjk2ODc1IDIwLjQ2ODc1IDExLjQwNjI1IEMgMjAuMTU2MjUgMTEuODQzNzUgMTkuODEyNSAxMiAxOS41IDEyIEMgMTkuMTg3NSAxMiAxOC44NDM3NSAxMS44NDM3NSAxOC41MzEyNSAxMS40MDYyNSBDIDE4LjIxODc1IDEwLjk2ODc1IDE4IDEwLjI3MzQzOCAxOCA5LjUgQyAxOCA4LjcyNjU2MyAxOC4yMTg3NSA4LjAzMTI1IDE4LjUzMTI1IDcuNTkzNzUgQyAxOC44NDM3NSA3LjE1NjI1IDE5LjE4NzUgNyAxOS41IDcgWiBNIDcuNSAxMiBDIDYuNDI5Njg4IDEyIDUuNSAxMi42MDkzNzUgNC45MDYyNSAxMy40Mzc1IEMgNC4zMTI1IDE0LjI2NTYyNSA0IDE1LjMzOTg0NCA0IDE2LjUgQyA0IDE3LjY2MDE1NiA0LjMxMjUgMTguNzM0Mzc1IDQuOTA2MjUgMTkuNTYyNSBDIDUuNSAyMC4zOTA2MjUgNi40Mjk2ODggMjEgNy41IDIxIEMgOC41NzAzMTMgMjEgOS41IDIwLjM5MDYyNSAxMC4wOTM3NSAxOS41NjI1IEMgMTAuNjg3NSAxOC43MzQzNzUgMTEgMTcuNjYwMTU2IDExIDE2LjUgQyAxMSAxNS4zMzk4NDQgMTAuNjg3NSAxNC4yNjU2MjUgMTAuMDkzNzUgMTMuNDM3NSBDIDkuNSAxMi42MDkzNzUgOC41NzAzMTMgMTIgNy41IDEyIFogTSAyNC41IDEyIEMgMjMuNDI5Njg4IDEyIDIyLjUgMTIuNjA5Mzc1IDIxLjkwNjI1IDEzLjQzNzUgQyAyMS4zMTI1IDE0LjI2NTYyNSAyMSAxNS4zMzk4NDQgMjEgMTYuNSBDIDIxIDE3LjY2MDE1NiAyMS4zMTI1IDE4LjczNDM3NSAyMS45MDYyNSAxOS41NjI1IEMgMjIuNSAyMC4zOTA2MjUgMjMuNDI5Njg4IDIxIDI0LjUgMjEgQyAyNS41NzAzMTMgMjEgMjYuNSAyMC4zOTA2MjUgMjcuMDkzNzUgMTkuNTYyNSBDIDI3LjY4NzUgMTguNzM0Mzc1IDI4IDE3LjY2MDE1NiAyOCAxNi41IEMgMjggMTUuMzM5ODQ0IDI3LjY4NzUgMTQuMjY1NjI1IDI3LjA5Mzc1IDEzLjQzNzUgQyAyNi41IDEyLjYwOTM3NSAyNS41NzAzMTMgMTIgMjQuNSAxMiBaIE0gNy41IDE0IEMgNy44MTI1IDE0IDguMTU2MjUgMTQuMTU2MjUgOC40Njg3NSAxNC41OTM3NSBDIDguNzgxMjUgMTUuMDMxMjUgOSAxNS43MjY1NjMgOSAxNi41IEMgOSAxNy4yNzM0MzggOC43ODEyNSAxNy45Njg3NSA4LjQ2ODc1IDE4LjQwNjI1IEMgOC4xNTYyNSAxOC44NDM3NSA3LjgxMjUgMTkgNy41IDE5IEMgNy4xODc1IDE5IDYuODQzNzUgMTguODQzNzUgNi41MzEyNSAxOC40MDYyNSBDIDYuMjE4NzUgMTcuOTY4NzUgNiAxNy4yNzM0MzggNiAxNi41IEMgNiAxNS43MjY1NjMgNi4yMTg3NSAxNS4wMzEyNSA2LjUzMTI1IDE0LjU5Mzc1IEMgNi44NDM3NSAxNC4xNTYyNSA3LjE4NzUgMTQgNy41IDE0IFogTSAyNC41IDE0IEMgMjQuODEyNSAxNCAyNS4xNTYyNSAxNC4xNTYyNSAyNS40Njg3NSAxNC41OTM3NSBDIDI1Ljc4MTI1IDE1LjAzMTI1IDI2IDE1LjcyNjU2MyAyNiAxNi41IEMgMjYgMTcuMjczNDM4IDI1Ljc4MTI1IDE3Ljk2ODc1IDI1LjQ2ODc1IDE4LjQwNjI1IEMgMjUuMTU2MjUgMTguODQzNzUgMjQuODEyNSAxOSAyNC41IDE5IEMgMjQuMTg3NSAxOSAyMy44NDM3NSAxOC44NDM3NSAyMy41MzEyNSAxOC40MDYyNSBDIDIzLjIxODc1IDE3Ljk2ODc1IDIzIDE3LjI3MzQzOCAyMyAxNi41IEMgMjMgMTUuNzI2NTYzIDIzLjIxODc1IDE1LjAzMTI1IDIzLjUzMTI1IDE0LjU5Mzc1IEMgMjMuODQzNzUgMTQuMTU2MjUgMjQuMTg3NSAxNCAyNC41IDE0IFogTSAxNiAxNiBDIDE0LjY2Nzk2OSAxNiAxMy43MzgyODEgMTYuODY3MTg4IDEzLjI4MTI1IDE3LjYyNSBDIDEyLjgyNDIxOSAxOC4zODI4MTMgMTIuNTQ2ODc1IDE5LjAxNTYyNSAxMi4yODEyNSAxOS4yODEyNSBDIDEyLjEyNSAxOS40Mzc1IDExLjE2MDE1NiAxOS44MDA3ODEgMTAuMTU2MjUgMjAuMzEyNSBDIDkuNjUyMzQ0IDIwLjU3MDMxMyA5LjE0NDUzMSAyMC45MTQwNjMgOC43MTg3NSAyMS40Mzc1IEMgOC4yOTI5NjkgMjEuOTYwOTM4IDggMjIuNjg3NSA4IDIzLjUgQyA4IDI1LjQyMTg3NSA5LjU3ODEyNSAyNyAxMS41IDI3IEMgMTIuMzY3MTg4IDI3IDEzLjI2OTUzMSAyNi43MjI2NTYgMTQuMTU2MjUgMjYuNDY4NzUgQyAxNS4wNDI5NjkgMjYuMjE0ODQ0IDE2IDI2IDE2IDI2IEMgMTYgMjYgMTYuOTU3MDMxIDI2LjIxNDg0NCAxNy44NDM3NSAyNi40Njg3NSBDIDE4LjczMDQ2OSAyNi43MjI2NTYgMTkuNjMyODEzIDI3IDIwLjUgMjcgQyAyMi40MjE4NzUgMjcgMjQgMjUuNDIxODc1IDI0IDIzLjUgQyAyNCAyMi43MDcwMzEgMjMuNzA3MDMxIDIxLjk4MDQ2OSAyMy4yODEyNSAyMS40Njg3NSBDIDIyLjg1NTQ2OSAyMC45NTcwMzEgMjIuMzQzNzUgMjAuNjQwNjI1IDIxLjg0Mzc1IDIwLjM3NSBDIDIwLjg0Mzc1IDE5Ljg0Mzc1IDE5Ljg1OTM3NSAxOS40MjE4NzUgMTkuNzE4NzUgMTkuMjgxMjUgQyAxOS40ODA0NjkgMTkuMDQyOTY5IDE5LjIxMDkzOCAxOC4zOTA2MjUgMTguNzUgMTcuNjI1IEMgMTguMjg5MDYzIDE2Ljg1OTM3NSAxNy4zMzk4NDQgMTYgMTYgMTYgWiBNIDE2IDE4IEMgMTYuNjYwMTU2IDE4IDE2LjczNDM3NSAxOC4xNjAxNTYgMTcuMDMxMjUgMTguNjU2MjUgQyAxNy4zMjgxMjUgMTkuMTUyMzQ0IDE3LjU1NDY4OCAxOS45OTIxODggMTguMjgxMjUgMjAuNzE4NzUgQyAxOS4xMDU0NjkgMjEuNTQyOTY5IDIwLjE0ODQzOCAyMS43MjI2NTYgMjAuOTA2MjUgMjIuMTI1IEMgMjEuMjg1MTU2IDIyLjMyODEyNSAyMS41NzgxMjUgMjIuNTQyOTY5IDIxLjc1IDIyLjc1IEMgMjEuOTIxODc1IDIyLjk1NzAzMSAyMiAyMy4xNDg0MzggMjIgMjMuNSBDIDIyIDI0LjMzOTg0NCAyMS4zMzk4NDQgMjUgMjAuNSAyNSBDIDIwLjIxMDkzOCAyNSAxOS4yNzczNDQgMjQuNzc3MzQ0IDE4LjQwNjI1IDI0LjUzMTI1IEMgMTcuNTM1MTU2IDI0LjI4NTE1NiAxNi44MTY0MDYgMjQgMTYgMjQgQyAxNS4xODM1OTQgMjQgMTQuNDY0ODQ0IDI0LjI4NTE1NiAxMy41OTM3NSAyNC41MzEyNSBDIDEyLjcyMjY1NiAyNC43NzczNDQgMTEuNzg5MDYzIDI1IDExLjUgMjUgQyAxMC42NjAxNTYgMjUgMTAgMjQuMzM5ODQ0IDEwIDIzLjUgQyAxMCAyMy4wOTc2NTYgMTAuMDgyMDMxIDIyLjg5MDYyNSAxMC4yNSAyMi42ODc1IEMgMTAuNDE3OTY5IDIyLjQ4NDM3NSAxMC43MjI2NTYgMjIuMjg1MTU2IDExLjA5Mzc1IDIyLjA5Mzc1IEMgMTEuODM5ODQ0IDIxLjcxNDg0NCAxMi44NzUgMjEuNTYyNSAxMy43MTg3NSAyMC43MTg3NSBDIDE0LjQ1MzEyNSAxOS45ODQzNzUgMTQuNjc1NzgxIDE5LjExNzE4OCAxNC45Njg3NSAxOC42MjUgQyAxNS4yNjE3MTkgMTguMTMyODEzIDE1LjMzMjAzMSAxOCAxNiAxOCBaIi8+PC9zdmc+",oCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSAzIEwgMTEgNyBMIDEzIDcgTCAxMyAzIFogTSAxNSA0IEwgMTUgNyBMIDE3IDcgTCAxNyA0IFogTSA0Ljg3NSA4IEwgNSA5LjA5Mzc1IEwgNi44MTI1IDI2LjMxMjUgQyA2Ljk3MjY1NiAyNy44MzIwMzEgOC4yODUxNTYgMjkgOS44MTI1IDI5IEwgMTkuMTg3NSAyOSBDIDIwLjcxNDg0NCAyOSAyMi4wMjczNDQgMjcuODMyMDMxIDIyLjE4NzUgMjYuMzEyNSBMIDIyLjY1NjI1IDIyIEwgMjUgMjIgQyAyNi42NDQ1MzEgMjIgMjggMjAuNjQ0NTMxIDI4IDE5IEwgMjggMTYgQyAyOCAxNC4zNTU0NjkgMjYuNjQ0NTMxIDEzIDI1IDEzIEwgMjMuNTkzNzUgMTMgTCAyNCA5LjA5Mzc1IEwgMjQuMTI1IDggWiBNIDcuMTI1IDEwIEwgMjEuODc1IDEwIEwgMjAuMTg3NSAyNi4wOTM3NSBDIDIwLjEzMjgxMyAyNi42MTMyODEgMTkuNzA3MDMxIDI3IDE5LjE4NzUgMjcgTCA5LjgxMjUgMjcgQyA5LjI5Mjk2OSAyNyA4Ljg2NzE4OCAyNi42MTMyODEgOC44MTI1IDI2LjA5Mzc1IFogTSAyMy4zNzUgMTUgTCAyNSAxNSBDIDI1LjU2NjQwNiAxNSAyNiAxNS40MzM1OTQgMjYgMTYgTCAyNiAxOSBDIDI2IDE5LjU2NjQwNiAyNS41NjY0MDYgMjAgMjUgMjAgTCAyMi44NDM3NSAyMCBaIi8+PC9zdmc+",aCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiAzIEMgOC44MzIwMzEgMyAzIDguODMyMDMxIDMgMTYgQyAzIDIzLjE2Nzk2OSA4LjgzMjAzMSAyOSAxNiAyOSBDIDIzLjE2Nzk2OSAyOSAyOSAyMy4xNjc5NjkgMjkgMTYgQyAyOSA4LjgzMjAzMSAyMy4xNjc5NjkgMyAxNiAzIFogTSAxNiA1IEMgMTYuNjAxNTYzIDUgMTcuMTc1NzgxIDUuMDYyNSAxNy43NSA1LjE1NjI1IEwgMTYgNi40MDYyNSBMIDE0LjI1IDUuMTU2MjUgQyAxNC44MjAzMTMgNS4wNjY0MDYgMTUuNDAyMzQ0IDUgMTYgNSBaIE0gMTEuODEyNSA1Ljg0Mzc1IEwgMTUuNDA2MjUgOC40Njg3NSBMIDE2IDguOTA2MjUgTCAxNi41OTM3NSA4LjQ2ODc1IEwgMjAuMTg3NSA1Ljg0Mzc1IEMgMjEuNzg1MTU2IDYuNTA3ODEzIDIzLjE5NTMxMyA3LjUyMzQzOCAyNC4zMTI1IDguODEyNSBMIDIyLjkzNzUgMTMuMDkzNzUgTCAyMi43MTg3NSAxMy43ODEyNSBMIDIzLjMxMjUgMTQuMTg3NSBMIDI2LjkzNzUgMTYuODQzNzUgQyAyNi44MDQ2ODggMTguNjA1NDY5IDI2LjI2NTYyNSAyMC4yNTc4MTMgMjUuNDA2MjUgMjEuNjg3NSBMIDIwLjEyNSAyMS42ODc1IEwgMTkuOTA2MjUgMjIuMzc1IEwgMTguNSAyNi43MTg3NSBDIDE3LjY5OTIxOSAyNi45MDYyNSAxNi44NTkzNzUgMjcgMTYgMjcgQyAxNS4xMDU0NjkgMjcgMTQuMjM4MjgxIDI2Ljg4NjcxOSAxMy40MDYyNSAyNi42ODc1IEwgMTIuMDMxMjUgMjIuNDA2MjUgTCAxMS44MTI1IDIxLjcxODc1IEwgNi41OTM3NSAyMS43MTg3NSBDIDUuNzE4NzUgMjAuMjgxMjUgNS4xOTkyMTkgMTguNjIxMDk0IDUuMDYyNSAxNi44NDM3NSBMIDguNjU2MjUgMTQuMjE4NzUgTCA5LjI1IDEzLjgxMjUgTCA5LjAzMTI1IDEzLjEyNSBMIDcuNjI1IDguODc1IEMgOC43NSA3LjU1NDY4OCAxMC4xODM1OTQgNi41MTU2MjUgMTEuODEyNSA1Ljg0Mzc1IFogTSAxNiAxMC4wOTM3NSBMIDE1LjQwNjI1IDEwLjUzMTI1IEwgMTAuODQzNzUgMTMuODQzNzUgTCAxMC4yODEyNSAxNC4yODEyNSBMIDEwLjUgMTQuOTY4NzUgTCAxMi4yNSAyMC4zMTI1IEwgMTIuNDY4NzUgMjEgTCAxOS41MzEyNSAyMSBMIDE5Ljc1IDIwLjMxMjUgTCAyMS41IDE0Ljk2ODc1IEwgMjEuNzE4NzUgMTQuMjgxMjUgTCAyMS4xNTYyNSAxMy44NDM3NSBMIDE2LjU5Mzc1IDEwLjUzMTI1IFogTSAyNS43NSAxMC45MDYyNSBDIDI2LjI5Njg3NSAxMS45NTMxMjUgMjYuNjU2MjUgMTMuMTAxNTYzIDI2Ljg0Mzc1IDE0LjMxMjUgTCAyNS4wNjI1IDEzLjAzMTI1IFogTSA2LjIxODc1IDEwLjk2ODc1IEwgNi45MDYyNSAxMy4wMzEyNSBMIDUuMTU2MjUgMTQuMzEyNSBDIDUuMzM5ODQ0IDEzLjEyNSA1LjY4NzUgMTIgNi4yMTg3NSAxMC45Njg3NSBaIE0gMTYgMTIuNTkzNzUgTCAxOS4zNzUgMTUuMDMxMjUgTCAxOC4wOTM3NSAxOSBMIDEzLjkwNjI1IDE5IEwgMTIuNjI1IDE1LjAzMTI1IFogTSAyMS41OTM3NSAyMy42ODc1IEwgMjMuODQzNzUgMjMuNjg3NSBDIDIyLjk5MjE4OCAyNC41NjY0MDYgMjIuMDExNzE5IDI1LjI5Mjk2OSAyMC45MDYyNSAyNS44NDM3NSBaIE0gOC4xNTYyNSAyMy43MTg3NSBMIDEwLjM0Mzc1IDIzLjcxODc1IEwgMTEuMDMxMjUgMjUuODEyNSBDIDkuOTYwOTM4IDI1LjI2OTUzMSA4Ljk4ODI4MSAyNC41NjI1IDguMTU2MjUgMjMuNzE4NzUgWiIvPjwvc3ZnPg==",dCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5LjUgNiBDIDguMTc5Njg4IDYgNy4wMDM5MDYgNi44NTkzNzUgNi42MjUgOC4xMjUgTCA1LjI1IDEyLjcxODc1IEwgMy4zMTI1IDEyLjA2MjUgTCAyLjY4NzUgMTMuOTM3NSBMIDQuNjU2MjUgMTQuNTkzNzUgTCA0LjAzMTI1IDE2LjcxODc1IEMgNC4wMDc4MTMgMTYuODA4NTk0IDMuOTk2MDk0IDE2LjkwNjI1IDQgMTcgTCA0IDI0IEMgNCAyNC4wMzEyNSA0IDI0LjA2MjUgNCAyNC4wOTM3NSBMIDQgMjUgQyA0IDI1LjU1MDc4MSA0LjQ0OTIxOSAyNiA1IDI2IEwgOCAyNiBMIDguMzQzNzUgMjUgTCAyMy42NTYyNSAyNSBMIDI0IDI2IEwgMjcgMjYgQyAyNy41NTA3ODEgMjYgMjggMjUuNTUwNzgxIDI4IDI1IEwgMjggMjQuMTU2MjUgQyAyOC4wMDM5MDYgMjQuMTA1NDY5IDI4LjAwMzkwNiAyNC4wNTA3ODEgMjggMjQgTCAyOCAxNyBDIDI4LjAwMzkwNiAxNi45MDYyNSAyNy45OTIxODggMTYuODA4NTk0IDI3Ljk2ODc1IDE2LjcxODc1IEwgMjcuMzQzNzUgMTQuNTkzNzUgTCAyOS4zMTI1IDEzLjkzNzUgTCAyOC42ODc1IDEyLjA2MjUgTCAyNi43NSAxMi43MTg3NSBMIDI1LjM3NSA4LjEyNSBDIDI0Ljk5NjA5NCA2Ljg1OTM3NSAyMy44MjAzMTMgNiAyMi41IDYgWiBNIDkuNSA4IEwgMjIuNSA4IEMgMjIuOTQ1MzEzIDggMjMuMzM5ODQ0IDguMjkyOTY5IDIzLjQ2ODc1IDguNzE4NzUgTCAyNC43NSAxMyBMIDcuMjUgMTMgTCA4LjUzMTI1IDguNzE4NzUgQyA4LjY2MDE1NiA4LjI4OTA2MyA5LjA1NDY4OCA4IDkuNSA4IFogTSA2LjY1NjI1IDE1IEwgMjUuMzQzNzUgMTUgTCAyNiAxNy4xODc1IEwgMjYgMjMgTCA2IDIzIEwgNiAxNy4xODc1IFogTSA4LjUgMTYgQyA3LjY3MTg3NSAxNiA3IDE2LjY3MTg3NSA3IDE3LjUgQyA3IDE4LjMyODEyNSA3LjY3MTg3NSAxOSA4LjUgMTkgQyA5LjMyODEyNSAxOSAxMCAxOC4zMjgxMjUgMTAgMTcuNSBDIDEwIDE2LjY3MTg3NSA5LjMyODEyNSAxNiA4LjUgMTYgWiBNIDIzLjUgMTYgQyAyMi42NzE4NzUgMTYgMjIgMTYuNjcxODc1IDIyIDE3LjUgQyAyMiAxOC4zMjgxMjUgMjIuNjcxODc1IDE5IDIzLjUgMTkgQyAyNC4zMjgxMjUgMTkgMjUgMTguMzI4MTI1IDI1IDE3LjUgQyAyNSAxNi42NzE4NzUgMjQuMzI4MTI1IDE2IDIzLjUgMTYgWiBNIDEyIDE5IEwgMTAuNzUgMjIgTCAxMi45MDYyNSAyMiBMIDEzLjM0Mzc1IDIxIEwgMTguNjU2MjUgMjEgTCAxOS4wOTM3NSAyMiBMIDIxLjI1IDIyIEwgMjAgMTkgWiIvPjwvc3ZnPg==",cCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuMDQyOTY5IDQgNyA4LjA0Mjk2OSA3IDEzIEMgNyAxNC45MTc5NjkgNy44NDM3NSAxNi45MDYyNSA5IDE4LjY4NzUgQyA5Ljg1OTM3NSAyMC4wMTE3MTkgMTAuODg2NzE5IDIxLjIzMDQ2OSAxMiAyMi4xNTYyNSBMIDEyIDI1IEMgMTIgMjYuMDkzNzUgMTIuOTA2MjUgMjcgMTQgMjcgTCAxNSAyOCBMIDE3IDI4IEwgMTggMjcgQyAxOS4wOTM3NSAyNyAyMCAyNi4wOTM3NSAyMCAyNSBMIDIwIDIyLjE1NjI1IEMgMjEuMTEzMjgxIDIxLjIzMDQ2OSAyMi4xNDA2MjUgMjAuMDExNzE5IDIzIDE4LjY4NzUgQyAyNC4xNTYyNSAxNi45MDYyNSAyNSAxNC45MTc5NjkgMjUgMTMgQyAyNSA4LjA0Mjk2OSAyMC45NTcwMzEgNCAxNiA0IFogTSAxNiA2IEMgMTkuODc4OTA2IDYgMjMgOS4xMjEwOTQgMjMgMTMgQyAyMyAxNC4zMDg1OTQgMjIuMzU1NDY5IDE2LjAzNTE1NiAyMS4zNDM3NSAxNy41OTM3NSBDIDIwLjQ0MTQwNiAxOC45ODQzNzUgMTkuMjUzOTA2IDIwLjIyMjY1NiAxOC4xNTYyNSAyMSBMIDEzLjg0Mzc1IDIxIEMgMTIuNzQ2MDk0IDIwLjIyMjY1NiAxMS41NTg1OTQgMTguOTg0Mzc1IDEwLjY1NjI1IDE3LjU5Mzc1IEMgOS42NDQ1MzEgMTYuMDM1MTU2IDkgMTQuMzA4NTk0IDkgMTMgQyA5IDkuMTIxMDk0IDEyLjEyMTA5NCA2IDE2IDYgWiBNIDE0LjI1IDIzIEwgMTcuNzUgMjMgQyAxNy44MjgxMjUgMjMuMDU0Njg4IDE3LjkxMDE1NiAyMy4wOTM3NSAxOCAyMy4xMjUgTCAxOCAyNSBMIDE0IDI1IEwgMTQgMjMuMTI1IEMgMTQuMDg5ODQ0IDIzLjA5Mzc1IDE0LjE3MTg3NSAyMy4wNTQ2ODggMTQuMjUgMjMgWiIvPjwvc3ZnPg==",mCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSA1IEwgMTEgMTEgTCA1IDExIEwgNSAxMyBMIDExIDEzIEwgMTEgMTkgTCA1IDE5IEwgNSAyMSBMIDExIDIxIEwgMTEgMjcgTCAxMyAyNyBMIDEzIDIxIEwgMTkgMjEgTCAxOSAyNyBMIDIxIDI3IEwgMjEgMjEgTCAyNyAyMSBMIDI3IDE5IEwgMjEgMTkgTCAyMSAxMyBMIDI3IDEzIEwgMjcgMTEgTCAyMSAxMSBMIDIxIDUgTCAxOSA1IEwgMTkgMTEgTCAxMyAxMSBMIDEzIDUgWiBNIDEzIDEzIEwgMTkgMTMgTCAxOSAxOSBMIDEzIDE5IFoiLz48L3N2Zz4=",rCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5IDQgQyA3LjM0NiA0IDYgNS4zNDYgNiA3IEMgNiA4LjMwMTYwOTQgNi44Mzg3NDg2IDkuNDAyMTM5MSA4IDkuODE2NDA2MiBMIDggMTEuMzA0Njg4IEwgOCAyMy4yMDcwMzEgTCA4IDI3LjAyMzQzOCBDIDggMjcuNTYzNDM4IDguNDM2NTYyNSAyOCA4Ljk3NjU2MjUgMjggTCA5LjAyMzQzNzUgMjggQyA5LjU2MzQzNzUgMjggMTAgMjcuNTYzNDM3IDEwIDI3LjAyMzQzOCBMIDEwIDIyLjIyODUxNiBDIDEwLjMzNDcwNyAyMS44Mzk3NTYgMTEuMTM4NDIzIDIxLjA0Njg3NSAxMy40NDUzMTIgMjEuMDQ2ODc1IEMgMTQuNjY5MzEzIDIxLjA0Njg3NSAxNS42NzA0MjIgMjEuNDczNzgxIDE2LjczMjQyMiAyMS45MjU3ODEgQyAxNy43Njk0MjIgMjIuMzY3NzgxIDE4Ljg0MTg5MSAyMi44MjQyMTkgMjAuMDg3ODkxIDIyLjgyNDIxOSBDIDIyLjQ0Njg5MSAyMi44MjQyMTkgMjQuMDQ5Mzc1IDIxLjU4NDY4OCAyNC43MzQzNzUgMjEuMDU0Njg4IEwgMjQuODg2NzE5IDIwLjkzOTQ1MyBDIDI1LjQzNzcxOSAyMC41NDA0NTMgMjYgMTkuOTk2IDI2IDE5IEwgMjYgMTAuNjc1NzgxIEMgMjYgOS43Njc3ODEyIDI1LjIyMTgyOCA5IDI0LjI5ODgyOCA5IEMgMjMuODAzODI4IDkgMjMuNDQwNDA2IDkuMjg2NTkzNyAyMi45NDE0MDYgOS42ODM1OTM4IEMgMjIuMjc5NDA2IDEwLjIwNzU5NCAyMS4yODA4OTEgMTEgMjAuMDg3ODkxIDExIEMgMTkuMjcyODkxIDExIDE4LjQ3NzY4OCAxMC42MTk3MzQgMTcuNTU0Njg4IDEwLjE3NzczNCBDIDE2LjQwMzY4NyA5LjYyNTczNDQgMTUuMDk4MzU5IDkgMTMuNDQzMzU5IDkgQyAxMi4zMDgyNTcgOSAxMS40MjE2ODcgOS4xODgzMzkzIDEwLjcxMjg5MSA5LjQ1NzAzMTIgQyAxMS40ODkwNzEgOC45MTQxODI0IDEyIDguMDE2NzgwMiAxMiA3IEMgMTIgNS4zNDYgMTAuNjU0IDQgOSA0IHogTSA5IDYgQyA5LjU1MiA2IDEwIDYuNDQ5IDEwIDcgQyAxMCA3LjU1MSA5LjU1MiA4IDkgOCBDIDguNDQ4IDggOCA3LjU1MSA4IDcgQyA4IDYuNDQ5IDguNDQ4IDYgOSA2IHogTSAxMy40NDMzNTkgMTEgQyAxNC42NDUzNTkgMTEgMTUuNjM4NDA2IDExLjQ3NjQ2OSAxNi42OTE0MDYgMTEuOTgwNDY5IEMgMTcuNzM2NDA2IDEyLjQ4MjQ2OSAxOC44MTc4OTEgMTMgMjAuMDg3ODkxIDEzIEMgMjEuODQyODkxIDEzIDIzLjE1ODA0NyAxMi4wNTQ0ODQgMjMuOTk4MDQ3IDExLjM5NjQ4NCBMIDIzLjk5ODA0NyAxOS4wNjY0MDYgQyAyMy45OTcwNDcgMTkuMDcwNDA2IDIzLjk1Mjk4NCAxOS4xNDUyNjYgMjMuNzA4OTg0IDE5LjMyMjI2NiBMIDIzLjUwOTc2NiAxOS40NzQ2MDkgQyAyMi45NDI3NjYgMTkuOTEyNjA5IDIxLjc2Mjg5MSAyMC44MjQyMTkgMjAuMDg3ODkxIDIwLjgyNDIxOSBDIDE5LjI0OTg5MSAyMC44MjQyMTkgMTguNDQ2NjI1IDIwLjQ4MjkzNyAxNy41MTU2MjUgMjAuMDg1OTM4IEMgMTYuMzcyNjI1IDE5LjU5NzkzOCAxNS4wNzYzNTkgMTkuMDQ0OTIyIDEzLjQ0MzM1OSAxOS4wNDQ5MjIgQyAxMS44OTEzNTkgMTkuMDQ0OTIyIDEwLjc4NiAxOS4zNTggMTAgMTkuNzUgTCAxMCAxMi4zNjEzMjggQyAxMC4zNDUgMTEuOTA1MzI4IDExLjEzMjM1OSAxMSAxMy40NDMzNTkgMTEgeiIvPjwvc3ZnPg==",ZCI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuODMyMDMxIDQgOC4xNTIzNDQgNi4xMTMyODEgNiA5LjM0Mzc1IEwgNiA2IEwgNCA2IEwgNCAxMyBMIDExIDEzIEwgMTEgMTEgTCA3LjM3NSAxMSBDIDkuMTAxNTYzIDguMDE5NTMxIDEyLjI5Njg3NSA2IDE2IDYgQyAyMS41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";const bCI=l.defineComponent({name:"Header",setup(C){const{state:g,updateSearch:I,updateActiveGroup:e}=l.inject("store"),t=l.computed(()=>!g.options.hideSearch),i=l.computed(()=>!g.options.hideGroupIcons),A=JSON.parse(JSON.stringify(g.orderedGroupKeys)),n=l.computed(()=>g.options.staticTexts.placeholder||""),s=l.computed({get:()=>g.search,set:d=>I(d)}),o=[...g.groups,...Object.keys(g.options.additionalGroups).map(d=>({key:d,title:g.options.groupNames[d]?g.options.groupNames[d]:CL(d)}))],a=[];return A.forEach(d=>{const m=o.findIndex(Z=>Z.key===d);m!==-1&&(a.push(o[m]),o.splice(m,1))}),{orderedGroups:a,orderedKeys:A,searchValue:s,updateActiveGroup:e,hasSearch:t,hasGroupIcons:i,placeholder:n,icons:{smileys_people:gL,animals_nature:sCI,food_drink:oCI,activities:aCI,travel_places:dCI,objects:cCI,symbols:mCI,flags:rCI,...g.options.groupIcons,recent:ZCI}}}}),uCI={key:0,class:"v3-header"},hCI={key:0,class:"v3-groups"},GCI=["onClick"],wCI=["title"],WCI=["src"],BCI={key:1,class:"v3-spacing"},pCI={key:2,class:"v3-search"},YCI=["placeholder"];function yCI(C,g,I,e,t,i){return C.hasGroupIcons||C.hasSearch?(l.openBlock(),l.createElementBlock("div",uCI,[C.hasGroupIcons?(l.openBlock(),l.createElementBlock("div",hCI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(C.orderedGroups,A=>(l.openBlock(),l.createElementBlock("button",{key:A.key,type:"button",class:l.normalizeClass(["v3-group",{"v3-is-hidden":!C.icons[A.key]}]),onClick:n=>C.updateActiveGroup(A.key)},[l.createElementVNode("span",{title:A.title,class:"v3-icon"},[l.createElementVNode("img",{src:C.icons[A.key],alt:""},null,8,WCI)],8,wCI)],10,GCI))),128))])):l.createCommentVNode("",!0),C.hasGroupIcons&&C.hasSearch?(l.openBlock(),l.createElementBlock("div",BCI)):l.createCommentVNode("",!0),C.hasSearch?(l.openBlock(),l.createElementBlock("div",pCI,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":g[0]||(g[0]=A=>C.searchValue=A),type:"text",placeholder:C.placeholder},null,8,YCI),[[l.vModelText,C.searchValue]])])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)}var NCI=zh(bCI,[["render",yCI]]);const VCI=l.defineComponent({name:"Header",setup(){const{state:C,updateSkinTone:g}=l.inject("store"),I=l.ref(!1),e=l.ref(!1),t=l.computed(()=>C.skinTone),i=l.computed(()=>C.options.staticTexts.skinTone||"Skin tone"),A=l.computed(()=>!C.options.disableSkinTones),n=IL()?"is-mac":"",s=l.computed(()=>({...C.emoji,src:NT+"/"+C.emoji[Mh]+".png"}));function o(m=!0){I.value=m}function a(){I.value=!I.value}function d(m){g(m),o(!1)}return l.watch(()=>C.emoji,()=>{e.value=!1}),{emoji:s,SKIN_TONES:VgI,updateSkinToneState:o,skinTone:I,stateSkinTone:t,selectSkinTone:d,toggleSkinToneState:a,EMOJI_RESULT_KEY:Mh,EMOJI_NAME_KEY:AY,skinToneText:i,hasSkinTones:A,native:C.options.native,unicodeToEmoji:cY,platform:n,hasError:e}}}),XCI={class:"v3-foot-left"},RCI={key:0},MCI=["alt","src"],HCI={class:"v3-text"},fCI={class:"v3-text"},SCI=["onClick"];function DCI(C,g,I,e,t,i){return l.openBlock(),l.createElementBlock("div",{class:"v3-footer",onMouseleave:g[2]||(g[2]=A=>C.updateSkinToneState(!1))},[l.createElementVNode("div",XCI,[l.createElementVNode("span",{class:l.normalizeClass([C.platform,"v3-icon"])},[C.native||C.hasError?(l.openBlock(),l.createElementBlock("span",RCI,l.toDisplayString(C.unicodeToEmoji(C.emoji.r)),1)):(l.openBlock(),l.createElementBlock("img",{key:1,alt:C.unicodeToEmoji(C.emoji.r),src:C.emoji.src,onError:g[0]||(g[0]=A=>C.hasError=!0)},null,40,MCI))],2),l.createElementVNode("span",HCI," :"+l.toDisplayString(C.emoji[C.EMOJI_NAME_KEY][1]||C.emoji[C.EMOJI_NAME_KEY][0])+": ",1)]),C.hasSkinTones?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{type:"button",class:"v3-tone",onClick:g[1]||(g[1]=(...A)=>C.toggleSkinToneState&&C.toggleSkinToneState(...A))},[l.createElementVNode("span",fCI,l.toDisplayString(C.skinToneText),1),l.createElementVNode("span",{class:l.normalizeClass(`v3-icon v3-tone-${C.stateSkinTone}`)},null,2)]),l.createElementVNode("div",{class:l.normalizeClass([C.skinTone?"v3-is-open":"","v3-skin-tones"])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(C.SKIN_TONES,A=>(l.openBlock(),l.createElementBlock("button",{key:A,type:"button",class:l.normalizeClass(["v3-skin-tone-"+A,"v3-skin-tone"]),onClick:n=>C.selectSkinTone(A)},null,10,SCI))),128))],2)],64)):l.createCommentVNode("",!0)],32)}var kCI=zh(VCI,[["render",DCI]]);const FCI=l.defineComponent({name:"PickerRoot",components:{Header:NCI,Body:lCI,Footer:kCI},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:C=>!0,"update:text":C=>!0},setup(C,{emit:g}){const I=l.ref(),e=l.ref(),t=l.ref(),i=l.ref(!1),A=l.ref(C.text),n=C.type==="input"||C.type==="textarea";let s=-1;const{state:o}=l.inject("store"),a=l.computed(()=>o.options.colorTheme);function d(G){if(n){const w=o.options.mode;w==="prepend"?A.value=G.i+A.value:w==="insert"&&s!==-1?(A.value=`${A.value.slice(0,s)}${G.i}${A.value.slice(s)}`,s+=G.i.length):A.value+=G.i,g("update:text",A.value)}g("select",G)}function m(){var G;I.value&&(s=((G=I.value)==null?void 0:G.selectionEnd)||-1)}function Z(G){var w;!((w=G.target)!=null&&w.closest(".v3-input-picker-wrap"))&&i.value&&(i.value=!1)}function u(){if(e.value&&t.value&&n){let G=o.options.offset;typeof G!="number"&&(G=6),_II(e.value,t.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,G]}}]}),document.body.addEventListener("click",Z)}}function h(G){A.value=G.target.value||"",g("update:text",A.value)}return l.onMounted(()=>{u()}),l.onBeforeUnmount(()=>{document.body.removeEventListener("click",Z)}),{face:gL,open:i,onSelect:d,input:A,elem:I,updateCursor:m,button:e,picker:t,isInputType:n,onChangeText:h,colorTheme:a}}}),KCI={key:0,class:"v3-input-emoji-picker"},zCI={class:"v3-input-picker-root"},JCI=["value"],xCI=["value"],TCI=["src"];function LCI(C,g,I,e,t,i){const A=l.resolveComponent("Header"),n=l.resolveComponent("Body"),s=l.resolveComponent("Footer");return C.isInputType?(l.openBlock(),l.createElementBlock("div",KCI,[l.createElementVNode("div",zCI,[C.type==="input"?(l.openBlock(),l.createElementBlock("input",{key:0,ref:"elem",value:C.input,type:"text",class:"v3-emoji-picker-input",onInput:g[0]||(g[0]=(...o)=>C.onChangeText&&C.onChangeText(...o)),onBlur:g[1]||(g[1]=(...o)=>C.updateCursor&&C.updateCursor(...o))},null,40,JCI)):(l.openBlock(),l.createElementBlock("textarea",{key:1,ref:"elem",value:C.input,class:"v3-emoji-picker-textarea",onInput:g[2]||(g[2]=(...o)=>C.onChangeText&&C.onChangeText(...o)),onBlur:g[3]||(g[3]=(...o)=>C.updateCursor&&C.updateCursor(...o))},null,40,xCI)),l.createElementVNode("div",{class:l.normalizeClass(["v3-input-picker-wrap",C.open?"v3-picker-is-open":""])},[l.createElementVNode("button",{ref:"button",type:"button",class:"v3-input-picker-icon",onClick:g[4]||(g[4]=o=>C.open=!C.open)},[l.createElementVNode("img",{src:C.face,alt:""},null,8,TCI)],512),l.createElementVNode("div",{ref:"picker",class:l.normalizeClass(["v3-emoji-picker","v3-color-theme-"+C.colorTheme])},[l.createVNode(A),l.createVNode(n,{onSelect:C.onSelect},null,8,["onSelect"]),l.createVNode(s)],2)],2)])])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["v3-emoji-picker","v3-color-theme-"+C.colorTheme])},[l.createVNode(A),l.createVNode(n,{onSelect:C.onSelect},null,8,["onSelect"]),l.createVNode(s)],2))}var vCI=zh(FCI,[["render",LCI]]);const jCI=l.defineComponent({name:"Picker",components:{PickerRoot:vCI},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":C=>!0,select:C=>!0},setup(C,{emit:g}){const I=l.ref(C.text);function e(i){I.value=i||"",g("update:text",I.value)}const t=jgI();return t.updateOptions({native:C.native,hideSearch:C.hideSearch,hideGroupIcons:C.hideGroupIcons,hideGroupNames:C.hideGroupNames,staticTexts:{...XgI,...C.staticTexts},disableStickyGroupNames:C.disableStickyGroupNames,disabledGroups:C.disabledGroups,groupNames:{...VT,...C.groupNames},disableSkinTones:C.disableSkinTones,displayRecent:C.displayRecent,additionalGroups:C.additionalGroups,mode:C.mode,offset:C.offset,groupOrder:C.groupOrder,groupIcons:C.groupIcons,colorTheme:RgI.includes(C.theme)?C.theme:"light"}),l.provide("store",t),{type:C.pickerType,input:I,onChangeText:e}}});function QCI(C,g,I,e,t,i){const A=l.resolveComponent("picker-root");return l.openBlock(),l.createBlock(A,{type:C.type,text:C.input,onSelect:g[0]||(g[0]=n=>C.$emit("select",n)),"onUpdate:text":C.onChangeText},null,8,["type","text","onUpdate:text"])}var n9=zh(jCI,[["render",QCI]]),Jh=(C=>(C.primary="primary",C.secondary="secondary",C.red="red",C.green="green",C.yellow="yellow",C.blue="blue",C.white="white",C.black="black",C))(Jh||{});const eL=Qg(l.defineComponent({__name:"DropZone",emits:["files-dropped"],setup(C,{emit:g}){const I=g,e=l.reactive({dragging:!1,hasMedia:!1}),t=G=>new Promise(w=>setTimeout(w,G)),i=G=>G?Array.from(G.items??[]).some(B=>{if(B.kind!=="file")return!1;const p=B.type.toLowerCase();return p.startsWith("image/")||p.startsWith("video/")}):!1,A=G=>{var w;return G?(w=G.types)!=null&&w.includes("Files")?!0:Array.from(G.items??[]).some(B=>B.kind==="file"):!1},n=G=>G.files&&G.files.length>0?Array.from(G.files):Array.from(G.items??[]).filter(w=>w.kind==="file").map(w=>w.getAsFile()).filter(w=>!!w),s=async(G,w=5)=>{for(let B=0;B<=w;B++){const p=n(G);if(p.length||B===w)return p;await t(100)}return[]},o=async(G,w)=>{if(G.preventDefault(),e.dragging=!1,!G.dataTransfer)return;const B=await s(G.dataTransfer);B.length&&I("files-dropped",{files:B,onlyMedia:w})},a=G=>{G.preventDefault(),A(G.dataTransfer)&&(e.dragging=!0,e.hasMedia=i(G.dataTransfer))},d=G=>{G.preventDefault(),e.hasMedia=i(G.dataTransfer)},m=G=>{G.preventDefault(),e.dragging=!1},Z=G=>{G.clientX===0&&G.clientY===0&&(e.dragging=!1)},u=()=>{e.dragging=!1},h=G=>{G.clientX===0&&G.clientY===0&&(e.dragging=!1)};return l.onMounted(()=>{window.addEventListener("dragenter",a),window.addEventListener("dragover",d),window.addEventListener("drop",m),window.addEventListener("dragleave",Z),window.addEventListener("dragend",u)}),l.onUnmounted(()=>{window.removeEventListener("dragenter",a),window.removeEventListener("dragover",d),window.removeEventListener("drop",m),window.removeEventListener("dragleave",Z),window.removeEventListener("dragend",u)}),(G,w)=>(l.openBlock(),l.createBlock(l.Transition,{name:"drag"},{default:l.withCtx(()=>[e.dragging?(l.openBlock(),l.createElementBlock("div",{key:0,class:"drag-overlay",onDragover:w[3]||(w[3]=l.withModifiers(()=>{},["prevent"]))},[e.hasMedia?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("div",{class:"drag-overlay__zone",onDragleave:h,onDrop:w[0]||(w[0]=l.withModifiers(B=>o(B,!1),["prevent"]))},[...w[4]||(w[4]=[l.createElementVNode("div",{class:"drag-overlay__title"},"Загрузить файл",-1)])],32),l.createElementVNode("div",{class:"drag-overlay__zone drag-overlay__zone--media",onDragleave:h,onDrop:w[1]||(w[1]=l.withModifiers(B=>o(B,!0),["prevent"]))},[...w[5]||(w[5]=[l.createElementVNode("div",{class:"drag-overlay__title"},"Загрузить фото/видео",-1)])],32)],64)):(l.openBlock(),l.createElementBlock("div",{key:1,class:"drag-overlay__zone drag-overlay__zone--full",onDragleave:h,onDrop:w[2]||(w[2]=l.withModifiers(B=>o(B,!1),["prevent"]))},[...w[6]||(w[6]=[l.createElementVNode("div",{class:"drag-overlay__title"},"Загрузить файл",-1)])],32))],32)):l.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-962f9a07"]]),OCI=["data-mention-active","onClick"],UCI={class:"editor-component__mention-content"},ECI={class:"editor-component__mention-label"},PCI={key:0,class:"editor-component__mention-subtitle"},_CI=Qg(l.defineComponent({__name:"ContentEditorMentionList",props:{items:{},selectedIndex:{},variant:{},isModal:{type:Boolean},isFixed:{type:Boolean},positionStyle:{},getKey:{type:Function},getLabel:{type:Function},getSubtitle:{type:Function},getAvatarUrl:{type:Function},getAvatarDefaultImage:{type:Function},getAvatarInitials:{type:Function},getIsOnline:{type:Function}},emits:["select"],setup(C,{emit:g}){const I=C,e=g;return(t,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["editor-component__mentions",{"editor-component__mentions--slash":I.variant==="slash","editor-component__mentions--modal":I.isModal,"editor-component__mentions--fixed":I.isFixed}]),style:l.normalizeStyle(I.positionStyle)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.items,(A,n)=>(l.openBlock(),l.createElementBlock("button",{key:I.getKey(A,n),type:"button",class:l.normalizeClass(["editor-component__mention-item",{"editor-component__mention-item--active":n===I.selectedIndex}]),"data-mention-active":n===I.selectedIndex,onClick:s=>e("select",A)},[l.createVNode(Ju,{class:"editor-component__mention-avatar",url:I.getAvatarUrl(A),"default-image":I.getAvatarDefaultImage(A),initials:I.getAvatarInitials(A),"is-online":I.getIsOnline(A)},null,8,["url","default-image","initials","is-online"]),l.createElementVNode("span",UCI,[l.createElementVNode("span",ECI,l.toDisplayString(I.getLabel(A)),1),I.getSubtitle(A)?(l.openBlock(),l.createElementBlock("span",PCI,l.toDisplayString(I.getSubtitle(A)),1)):l.createCommentVNode("",!0)])],10,OCI))),128))],6))}}),[["__scopeId","data-v-d91c1316"]]),qCI={key:0,class:"formatting-toolbar__mobile-selection-actions"},$CI={key:0,class:"formatting-toolbar__mobile-selection-divider"},geI=["onClick"],IeI={key:1,class:"formatting-toolbar__mobile-dropdown",role:"menu"},CeI={class:"formatting-toolbar__mobile-group"},eeI=["aria-label","aria-pressed","onClick"],teI={class:"formatting-toolbar__mobile-group"},ieI=["aria-label","aria-pressed","onClick"],AeI={class:"formatting-toolbar__group"},neI=["aria-label","onClick"],leI={class:"formatting-toolbar__group"},seI=["aria-label","onClick"],oeI={class:"formatting-toolbar__link-modal"},aeI={class:"formatting-toolbar__link-modal-header"},deI={class:"formatting-toolbar__field"},ceI=["onKeydown"],meI={class:"formatting-toolbar__field"},reI=["onKeydown"],Sl=16,ZeI=480,beI=Qg(l.defineComponent({__name:"ContentEditorFormattingToolbar",props:{editor:{},readClipboardText:{type:Function}},setup(C){const g=C,I=l.ref(null),e=l.ref(!1),t=l.ref(!1),i=l.ref(!1),A=l.ref(!1),n=l.ref(""),s=l.ref(""),o=l.ref(null),a=l.ref({}),d=l.ref(null),m=l.ref("center"),Z=l.ref(null),u=l.ref(""),h=l.ref(""),G=l.ref(!1),w=l.ref(!1),B=l.ref(!1),p=l.ref(null);let Y=null,N=[],R=0;const X=l.computed(()=>!!Z.value&&Z.value.from!==Z.value.to&&u.value.trim().length>0),K=l.computed(()=>h.value.trim().length>0),D=l.computed(()=>{const $=[];return K.value&&$.push({key:"paste",label:"Вставить"}),X.value&&($.push({key:"copy",label:"Скопировать"}),$.push({key:"cut",label:"Вырезать"})),$}),k=()=>{A.value=!1,n.value="",s.value="",Z.value=null,u.value=""},z=($,eg)=>$.state.doc.textBetween(eg.from,eg.to," "),v=($,eg)=>$.state.doc.textBetween(eg.from,eg.to,`
1768
1768
  `,`
1769
1769
  `).split(/\r?\n/).map(mg=>mg.trim()).filter(Boolean),O=()=>{var $;return(($=I.value)==null?void 0:$.offsetWidth)??0},Cg=()=>{var $;return(($=I.value)==null?void 0:$.offsetHeight)??0},U=()=>{t.value=window.innerWidth<=ZeI,t.value||(i.value=!1)},T=()=>({position:"fixed",left:"0px",top:"0px",transform:"none",visibility:"hidden",pointerEvents:"none",zIndex:"1000"}),q=()=>{Z.value=null,u.value="",e.value=!1,i.value=!1,w.value=!1,B.value=!1,p.value=null,a.value=T(),d.value=null,m.value="center"},cg=$=>{var eg;if(!$||$.isDestroyed)return null;try{return((eg=$.view)==null?void 0:eg.dom)??null}catch{return null}},og=($,eg)=>{if(!eg)return!1;const mg=cg($);if(!mg)return!1;const Jg=eg instanceof Element?eg:eg.parentElement;return!!Jg&&mg.contains(Jg)},Wg=$=>{const eg=fg($);return eg?Array.from(eg.getRangeAt(0).getClientRects()).filter(mg=>mg.width>0||mg.height>0):[]},fg=$=>{const eg=cg($),mg=eg==null?void 0:eg.ownerDocument.getSelection();return!mg||mg.rangeCount===0||mg.isCollapsed||!og($,mg.anchorNode)||!og($,mg.focusNode)?null:mg},Rg=$=>{const eg=Wg($);if(eg.length>0){const tC=Math.min(...eg.map(KC=>KC.left)),cI=Math.max(...eg.map(KC=>KC.right)),dC=Math.min(...eg.map(KC=>KC.top)),OC=Math.max(...eg.map(KC=>KC.bottom));return new DOMRect(tC,dC,cI-tC,OC-dC)}const mg=cg($),Jg=mg==null?void 0:mg.ownerDocument.getSelection();if(!Jg||Jg.rangeCount===0)return null;const kI=Jg.getRangeAt(0).getBoundingClientRect();return kI.width>0||kI.height>0?kI:null},Bg=$=>{const{doc:eg,selection:mg}=$.state;return mg.from<=1&&mg.to>=eg.content.size-1},kg=$=>{const[eg]=Wg($).sort((Jg,iI)=>Jg.top-iI.top||Jg.left-iI.left);if(eg)return new DOMRect(eg.left,eg.top,eg.width,eg.height);const{selection:mg}=$.state;try{const Jg=$.view.coordsAtPos(mg.from);return new DOMRect(Jg.left,Jg.top,Math.max(Jg.right-Jg.left,1),Jg.bottom-Jg.top)}catch{return null}},Vg=$=>(Bg($)?kg($):null)??Rg($)??n_g($.view,$.state.selection.from,$.state.selection.to),gI=$=>{const eg=fg($);if(!eg)return!1;try{if(!eg.anchorNode||!eg.focusNode)return!1;const mg=$.view.posAtDOM(eg.anchorNode,eg.anchorOffset),Jg=$.view.posAtDOM(eg.focusNode,eg.focusOffset),iI=Math.min(mg,Jg),kI=Math.max(mg,Jg);return iI===kI?!1:($.state.selection.from===iI&&$.state.selection.to===kI||$.view.dispatch($.state.tr.setSelection(sI.create($.state.doc,iI,kI))),!0)}catch{return!1}},qg=$=>{const eg=O();if(!eg)return $;const mg=window.innerWidth-eg-Sl;return mg<=Sl?Math.max((window.innerWidth-eg)/2,0):Math.min(Math.max($,Sl),mg)},CC=$=>{var kI;const eg=((kI=I.value)==null?void 0:kI.offsetWidth)??0;if(!eg)return $;const mg=eg/2,Jg=Sl+mg,iI=window.innerWidth-Sl-mg;return Jg>iI?window.innerWidth/2:Math.min(Math.max($,Jg),iI)},NC=$=>{const eg=O();if(!eg)return"center";const mg=$.left-Sl,Jg=window.innerWidth-$.right-Sl,iI=eg/2;return Jg<iI&&mg>Jg?"right":mg<iI&&Jg>mg?"left":"center"},BC=($,eg)=>eg==="left"?{left:qg($.left),transform:"none"}:eg==="right"?{left:qg($.right-O()),transform:"none"}:{left:CC($.left+$.width/2),transform:"translateX(-50%)"},eC=($,eg)=>eg==="center"?CC($):qg($),te=$=>{if(!t.value||!i.value)return Math.max($.top-52,12);const eg=Cg(),mg=$.bottom+8,Jg=window.innerHeight-eg-Sl;return!eg||mg<=Jg?Math.max(mg,Sl):Math.max($.top-eg-8,Sl)},jI=()=>{var $;return($=g.editor)==null?void 0:$.chain().focus()},Be=($=Z.value)=>{!g.editor||!$||g.editor.chain().focus().setTextSelection($).run()},SI=($={})=>{const eg=g.editor,mg=cg(eg);if(!eg||!eg.view||!mg){e.value=!1,i.value=!1;return}const{view:Jg,isEditable:iI}=eg,kI=t.value&&!!fg(eg);kI&&gI(eg);const{selection:tC}=eg.state,cI=t.value&&B.value&&tC.empty;if(t.value&&tC.empty&&Z.value&&!cI){q();return}if(!iI||t.value&&!w.value||tC.empty&&!cI||!Jg.hasFocus()&&!kI||G.value){e.value=!1,i.value=!1,a.value=T(),d.value=null,m.value="center";return}tC.empty||bn(eg,{from:tC.from,to:tC.to});const dC=cI&&p.value||Vg(eg);if(!e.value){a.value=T(),e.value=!0,l.nextTick(()=>DI($));return}const OC=$.preserveHorizontal?m.value:NC(dC),KC=$.preserveHorizontal?{left:eC(d.value??BC(dC,OC).left,OC),transform:OC==="center"?"translateX(-50%)":"none"}:BC(dC,OC);m.value=OC,d.value=KC.left,a.value={position:"fixed",left:`${KC.left}px`,top:`${te(dC)}px`,transform:KC.transform,visibility:"visible",pointerEvents:"auto",zIndex:"1000"}},DI=($={})=>{Y!==null&&cancelAnimationFrame(Y),Y=requestAnimationFrame(()=>{Y=null,SI($)})},At=()=>{U(),DI({preserveHorizontal:!0})},vC=()=>{DI()},NA=()=>{DI()},nt=()=>{DI()},ie=new Set(["Alt","AltGraph","CapsLock","Control","Meta","Shift"]),QI=()=>t.value&&!!Z.value,Fe=$=>{!QI()||ie.has($.key)||q()},VC=$=>{!QI()||($.inputType||"").startsWith("format")||q()},lt=()=>{QI()&&q()},aC=()=>{e.value=!1,i.value=!1,w.value=!1,B.value=!1},vi=$=>{t.value&&$.preventDefault()},Ze=$=>{$.button!==0||A.value||(G.value=!0,w.value=!1,B.value=!1,p.value=null,e.value=!1,i.value=!1)},jC=()=>{if(!G.value){pe();return}G.value=!1,DI(),pe()},hi=()=>{N.forEach($=>window.clearTimeout($)),N=[]},pe=()=>{t.value&&(hi(),[50,180,360].forEach($=>{const eg=window.setTimeout(()=>{G.value=!1,DI()},$);N.push(eg)}))},Zn=()=>{pe()},st=()=>{pe()},QC=$=>{if(!t.value||!g.editor)return;$.preventDefault(),G.value=!1,w.value=!0,at().then(()=>{DI({preserveHorizontal:!0})});const{from:eg,to:mg,empty:Jg}=g.editor.state.selection;if(bn(g.editor,{from:eg,to:mg}),Jg){const iI=g.editor.view.coordsAtPos(eg),kI=$.clientX||iI.left,tC=$.clientY||iI.top;B.value=!0,p.value=new DOMRect(kI,tC,1,Math.max(iI.bottom-iI.top,1)),g.editor.chain().focus().run()}else B.value=!1,p.value=null;DI()},ji=()=>{i.value=!0,l.nextTick(()=>{DI({preserveHorizontal:!0})})},VA=()=>{i.value=!1,l.nextTick(()=>{DI({preserveHorizontal:!0})})},Qi=$=>{var eg;$.run(),$.key==="link"&&!((eg=g.editor)!=null&&eg.isActive("link"))&&(i.value=!1),DI({preserveHorizontal:!0})},ot=$=>{const{from:eg,to:mg,empty:Jg}=$.state.selection;return Jg?null:{from:eg,to:mg}},XA=($,eg)=>$.state.doc.textBetween(eg.from,eg.to,`
1770
- `),bn=($,eg)=>{Z.value=eg,u.value=z($,eg)},RA=async $=>{var Jg;if(!$)return!1;try{const iI=(Jg=navigator.clipboard)==null?void 0:Jg.writeText;if(iI)return await iI.call(navigator.clipboard,$),!0}catch{}const eg=document.createElement("textarea");eg.value=$,eg.readOnly=!0,eg.style.position="fixed",eg.style.top="-9999px",eg.style.opacity="0",document.body.appendChild(eg),eg.select(),eg.setSelectionRange(0,eg.value.length);const mg=document.execCommand("copy");return document.body.removeChild(eg),mg},Qt=async()=>{var $;if(g.readClipboardText)try{return await g.readClipboardText()||""}catch{}try{const eg=($=navigator.clipboard)==null?void 0:$.readText;return eg?await eg.call(navigator.clipboard):""}catch{return""}},at=async()=>{if(!t.value)return;const $=++R,eg=await Qt();$===R&&(h.value=eg||"")},Yo=($,eg=Z.value)=>{const mg=document.createElement("textarea");mg.readOnly=!1,mg.style.position="fixed",mg.style.top="-9999px",mg.style.opacity="0",document.body.appendChild(mg),mg.focus(),document.execCommand("paste");const Jg=mg.value;return document.body.removeChild(mg),eg?Be(eg):$.chain().focus().run(),Jg},yo=($,eg)=>{$.chain().focus().setTextSelection(eg.to).run(),q()},No=async $=>{const eg=g.editor;if(!eg)return;if($==="paste"){const kI=ot(eg)||Z.value,tC=await Qt()||Yo(eg,kI);if(tC){const cI=eg.chain().focus();kI?cI.insertContentAt(kI,tC).run():cI.insertContent(tC).run(),q();return}DI({preserveHorizontal:!0});return}const mg=ot(eg);if(!mg)return;bn(eg,mg);const Jg=XA(eg,mg),iI=await RA(Jg);if(iI&&$==="cut"){h.value=Jg,eg.chain().focus().deleteRange(mg).run(),q();return}else iI?(h.value=Jg,yo(eg,mg)):Be(mg);DI({preserveHorizontal:!0})},un=[{key:"bold",icon:rg.bold,hint:"Жирный",isActive:()=>{var $;return(($=g.editor)==null?void 0:$.isActive("bold"))??!1},run:()=>{var $;return($=jI())==null?void 0:$.toggleBold().run()}},{key:"italic",icon:rg.italic,hint:"Курсив",isActive:()=>{var $;return(($=g.editor)==null?void 0:$.isActive("italic"))??!1},run:()=>{var $;return($=jI())==null?void 0:$.toggleItalic().run()}},{key:"underline",icon:rg.underline,hint:"Подчёркнутый",isActive:()=>{var $;return(($=g.editor)==null?void 0:$.isActive("underline"))??!1},run:()=>{var $;return($=jI())==null?void 0:$.toggleUnderline().run()}},{key:"strike",icon:rg.strikethrough,hint:"Зачёркнутый",isActive:()=>{var $;return(($=g.editor)==null?void 0:$.isActive("strike"))??!1},run:()=>{var $;return($=jI())==null?void 0:$.toggleStrike().run()}}],lg=async()=>{var kI,tC,cI;const $=g.editor;if(!$)return;const{from:eg,to:mg,empty:Jg}=$.state.selection;if(Jg)return;Z.value={from:eg,to:mg},u.value=z($,{from:eg,to:mg}),n.value=u.value;const iI=(kI=$.getAttributes("link"))==null?void 0:kI.href;s.value=typeof iI=="string"&&iI.trim().length>0?iI:u.value,A.value=!0,i.value=!1,await l.nextTick(),(tC=o.value)==null||tC.focus(),(cI=o.value)==null||cI.select()},bg=()=>{const $=g.editor;if(!$)return;if($.isActive("orderedList")){$.chain().focus().toggleOrderedList().run();return}const{from:eg,to:mg,empty:Jg}=$.state.selection;if(Jg){$.chain().focus().toggleOrderedList().run();return}const iI=v($,{from:eg,to:mg});iI.length&&$.chain().focus().insertContentAt({from:eg,to:mg},{type:"orderedList",attrs:{start:1},content:iI.map(kI=>({type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:kI}]}]}))}).run()},Sg=[{key:"code",icon:rg.code,hint:"Код",isActive:()=>{var $;return(($=g.editor)==null?void 0:$.isActive("code"))??!1},run:()=>{var $;return($=jI())==null?void 0:$.toggleCode().run()}},{key:"link",icon:rg.link,hint:"Ссылка",isActive:()=>{var $;return(($=g.editor)==null?void 0:$.isActive("link"))??!1},run:()=>{var $;if(($=g.editor)!=null&&$.isActive("link")){g.editor.chain().focus().extendMarkRange("link").unsetLink().run(),SI({preserveHorizontal:!0});return}lg()}},{key:"blockquote",icon:rg.blockquote,hint:"Цитата",isActive:()=>{var $;return(($=g.editor)==null?void 0:$.isActive("orderedList"))??!1},run:bg}],Kg=$=>{const eg=$.trim();return eg?/^(https?:\/\/|mailto:|tel:)/i.test(eg)?eg:`https://${eg}`:""},jg=()=>{const $=g.editor,eg=Z.value;if(!$||!eg)return;const mg=n.value.trim()||u.value.trim(),Jg=Kg(s.value);if(!mg){pI();return}$.chain().focus().insertContentAt(eg,Jg?{type:"text",text:mg,marks:[{type:"link",attrs:{href:Jg,class:"link"}}]}:mg).run();const iI={from:eg.from,to:eg.from+mg.length};k(),Be(iI),SI({preserveHorizontal:!0})},pI=()=>{const $=Z.value;k(),Be($),SI({preserveHorizontal:!0})},pC=$=>{const eg=cg($);!$||!eg||($.on("selectionUpdate",vC),$.on("focus",NA),$.on("blur",aC),$.on("transaction",nt),eg.addEventListener("pointerdown",Ze),eg.addEventListener("touchend",st,!0),eg.addEventListener("contextmenu",QC),eg.addEventListener("keydown",Fe),eg.addEventListener("beforeinput",VC),eg.addEventListener("input",lt),eg.ownerDocument.addEventListener("selectionchange",Zn))},Vt=$=>{var mg;if(!$)return;$.off("selectionUpdate",vC),$.off("focus",NA),$.off("blur",aC),$.off("transaction",nt),(mg=cg($))==null||mg.removeEventListener("pointerdown",Ze);const eg=cg($);eg==null||eg.removeEventListener("touchend",st,!0),eg==null||eg.removeEventListener("contextmenu",QC),eg==null||eg.removeEventListener("keydown",Fe),eg==null||eg.removeEventListener("beforeinput",VC),eg==null||eg.removeEventListener("input",lt),eg==null||eg.ownerDocument.removeEventListener("selectionchange",Zn)};return l.onMounted(()=>{U(),pC(g.editor),window.addEventListener("resize",At),window.addEventListener("scroll",At,!0),window.addEventListener("pointerup",jC,!0)}),l.onBeforeUnmount(()=>{Vt(g.editor),window.removeEventListener("resize",At),window.removeEventListener("scroll",At,!0),window.removeEventListener("pointerup",jC,!0),Y!==null&&cancelAnimationFrame(Y),hi()}),l.watch(()=>g.editor,($,eg)=>{eg!==$&&(Vt(eg),pC($),DI())}),($,eg)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[e.value?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"toolbarRef",ref:I,class:l.normalizeClass(["formatting-toolbar",{"formatting-toolbar--mobile":t.value,"formatting-toolbar--mobile-menu":t.value&&i.value}]),style:l.normalizeStyle(a.value),onPointerdown:vi,onMousedown:eg[0]||(eg[0]=l.withModifiers(()=>{},["prevent"]))},[t.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[i.value?(l.openBlock(),l.createElementBlock("div",IeI,[l.createElementVNode("button",{type:"button",class:"formatting-toolbar__mobile-header",onClick:VA},[l.createVNode(Yg,{name:l.unref(rg).arrowLeft,width:20,height:20},null,8,["name"]),eg[3]||(eg[3]=l.createElementVNode("span",null,"Форматирование",-1))]),l.createElementVNode("div",CeI,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(un,mg=>l.createElementVNode("button",{key:mg.key,type:"button",class:l.normalizeClass(["formatting-toolbar__mobile-action",{"formatting-toolbar__mobile-action--active":mg.isActive()}]),"aria-label":mg.hint,"aria-pressed":mg.isActive(),role:"menuitemcheckbox",onClick:Jg=>Qi(mg)},[l.createVNode(Yg,{class:"formatting-toolbar__mobile-action-icon",name:mg.icon,width:24,height:24},null,8,["name"]),l.createElementVNode("span",null,l.toDisplayString(mg.hint),1)],10,eeI)),64))]),eg[4]||(eg[4]=l.createElementVNode("div",{class:"formatting-toolbar__mobile-divider"},null,-1)),l.createElementVNode("div",teI,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(Sg,mg=>l.createElementVNode("button",{key:mg.key,type:"button",class:l.normalizeClass(["formatting-toolbar__mobile-action",{"formatting-toolbar__mobile-action--active":mg.isActive()}]),"aria-label":mg.hint,"aria-pressed":mg.isActive(),role:"menuitemcheckbox",onClick:Jg=>Qi(mg)},[l.createVNode(Yg,{class:"formatting-toolbar__mobile-action-icon",name:mg.icon,width:24,height:24},null,8,["name"]),l.createElementVNode("span",null,l.toDisplayString(mg.hint),1)],10,ieI)),64))])])):(l.openBlock(),l.createElementBlock("div",qCI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(D.value,(mg,Jg)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:mg.key},[Jg>0?(l.openBlock(),l.createElementBlock("div",$CI)):l.createCommentVNode("",!0),l.createElementVNode("button",{type:"button",class:"formatting-toolbar__mobile-edit-action",onClick:iI=>No(mg.key)},l.toDisplayString(mg.label),9,geI)],64))),128)),l.createElementVNode("button",{type:"button",class:"formatting-toolbar__mobile-trigger","aria-label":"Форматирование",onClick:ji},[l.createVNode(Yg,{name:l.unref(rg).plus,width:18,height:18},null,8,["name"])])]))],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("div",AeI,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(un,mg=>l.createVNode(rt,{key:mg.key,hint:mg.hint,position:"top-center"},{default:l.withCtx(()=>[l.createElementVNode("button",{type:"button",class:l.normalizeClass(["formatting-toolbar__button",{"formatting-toolbar__button--active":mg.isActive()}]),"aria-label":mg.hint,onClick:mg.run},[l.createVNode(Yg,{name:mg.icon},null,8,["name"])],10,neI)]),_:2},1032,["hint"])),64))]),eg[5]||(eg[5]=l.createElementVNode("div",{class:"formatting-toolbar__divider"},null,-1)),l.createElementVNode("div",leI,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(Sg,mg=>l.createVNode(rt,{key:mg.key,hint:mg.hint,position:"top-center"},{default:l.withCtx(()=>[l.createElementVNode("button",{type:"button",class:l.normalizeClass(["formatting-toolbar__button",{"formatting-toolbar__button--active":mg.isActive()}]),"aria-label":mg.hint,onClick:mg.run},[l.createVNode(Yg,{name:mg.icon},null,8,["name"])],10,seI)]),_:2},1032,["hint"])),64))])],64))],38)):l.createCommentVNode("",!0),A.value?(l.openBlock(),l.createBlock(mB,{key:1,open:A.value,position:"center",width:"min(370px, -45px + 100vw)",height:"auto",class:"formatting-toolbar__link-modal-container",onClose:pI},{default:l.withCtx(()=>[l.createElementVNode("div",oeI,[l.createElementVNode("div",aeI,[eg[6]||(eg[6]=l.createElementVNode("div",{class:"formatting-toolbar__link-modal-title"},"Ссылка",-1)),l.createElementVNode("button",{type:"button",class:"formatting-toolbar__link-modal-close","aria-label":"Закрыть",onClick:pI},[l.createVNode(Yg,{name:l.unref(rg).crossLarge},null,8,["name"])])]),l.createElementVNode("label",deI,[eg[7]||(eg[7]=l.createElementVNode("span",{class:"formatting-toolbar__field-label"},"Текст:",-1)),l.withDirectives(l.createElementVNode("input",{ref_key:"linkTextInputRef",ref:o,"onUpdate:modelValue":eg[1]||(eg[1]=mg=>n.value=mg),class:"formatting-toolbar__field-input",type:"text",placeholder:"Важная ссылка",onKeydown:[l.withKeys(l.withModifiers(jg,["prevent"]),["enter"]),l.withKeys(l.withModifiers(pI,["prevent"]),["esc"])]},null,40,ceI),[[l.vModelText,n.value]])]),l.createElementVNode("label",meI,[eg[8]||(eg[8]=l.createElementVNode("span",{class:"formatting-toolbar__field-label"},"Ссылка:",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":eg[2]||(eg[2]=mg=>s.value=mg),class:"formatting-toolbar__field-input",type:"text",placeholder:"https://example.com",onKeydown:[l.withKeys(l.withModifiers(jg,["prevent"]),["enter"]),l.withKeys(l.withModifiers(pI,["prevent"]),["esc"])]},null,40,reI),[[l.vModelText,s.value]])]),l.createElementVNode("div",{class:"formatting-toolbar__link-modal-actions"},[l.createElementVNode("button",{type:"button",class:"formatting-toolbar__link-modal-save",onClick:jg}," Сохранить ")])])]),_:1},8,["open"])):l.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-ce306b57"]]),ueI={class:"image-attachment-editor"},heI={class:"image-attachment-editor__header"},GeI={class:"image-attachment-editor__mode-tabs"},weI={class:"image-attachment-editor__stage-wrap"},WeI={class:"image-attachment-editor__text-layer"},BeI=["onPointerdown","onDblclick"],peI=["data-text-layer-id","value","readonly","onInput","onPointerdown"],YeI=["aria-label","onPointerdown"],yeI=["aria-label","onPointerdown"],NeI={class:"image-attachment-editor__history"},VeI={class:"image-attachment-editor__settings"},XeI={class:"image-attachment-editor__range-label"},ReI={class:"image-attachment-editor__palette"},MeI=["aria-label","onClick"],HeI={key:0,class:"image-attachment-editor__swatch-check"},feI={key:0,class:"image-attachment-editor__swatch-check"},SeI=["value"],DeI={class:"image-attachment-editor__actions"},keI={class:"image-attachment-editor__confirm"},FeI={class:"image-attachment-editor__confirm-actions"},XZ=20,KeI=350,zeI=8,JeI=3,mY=50,rY=24,xeI=l.defineComponent({__name:"ImageAttachmentEditor",props:{file:{}},emits:["apply","close"],setup(C,{emit:g}){const I=l.defineComponent({name:"SwatchCheckboxIcon",setup:()=>()=>l.h("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[l.h("path",{d:"M12.3213 4.2998C12.5972 4.03026 13.04 4.03361 13.3115 4.30762C13.5821 4.58257 13.5789 5.02451 13.3047 5.2959L6.81738 11.6973C6.68656 11.8264 6.51023 11.8998 6.32617 11.9004H6.31836C6.13075 11.8996 5.95062 11.8231 5.81934 11.6895L2.68555 8.44824L2.68164 8.44434C2.41367 8.1653 2.42264 7.72176 2.70215 7.4541C2.98181 7.18627 3.42694 7.19551 3.69531 7.47461V7.47559L6.26562 10.1309L6.33594 10.2041L6.4082 10.1328L12.3213 4.2998Z",fill:"var(--white)",stroke:"var(--text-neutral-color)","stroke-width":"0.8"})])}),e=C,t=g,i=l.ref(null),A=l.ref(null),n=l.ref("crop"),s=l.ref("--text-color"),o=l.ref("#000000"),a=l.ref(null),d=l.ref(8),m=l.ref(34),Z=l.ref([]),u=l.ref(null),h=l.ref(null),G=l.ref(!1),w=l.ref(null),B=l.ref(null),p=l.ref(!1),Y=l.ref([]),N=l.ref(-1),R=l.ref(null),X=l.ref({width:0,height:0}),K=l.ref(1);let D="",k=0,z=null,v=0,O=null,Cg=null,U=null,T=null;const q=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"],cg=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"],og=[{label:"Белый",value:"--white"},{label:"Черный",value:"--text-color"},{label:"Красный",value:"--error-color"},{label:"Зеленый",value:"--success-color"}],Wg=l.computed(()=>og),fg=(gg,j,ag)=>({"--range-progress":`${Math.min(Math.max((Number(gg)-j)/(ag-j)*100,0),100)}%`}),Rg=l.computed(()=>fg(d.value,2,36)),Bg=l.computed(()=>fg(NC.value,18,72)),kg=l.computed(()=>!s.value.startsWith("--")),Vg=l.computed(()=>Z.value.find(gg=>gg.id===u.value)||null),gI=l.computed(()=>N.value>0),qg=l.computed(()=>N.value<Y.value.length-1),CC=l.computed(()=>!!w.value&&Math.abs(w.value.width)>=10&&Math.abs(w.value.height)>=10),NC=l.computed({get:()=>{var gg;return((gg=Vg.value)==null?void 0:gg.fontSize)??m.value},set:gg=>{const j=Number(gg)||m.value,ag=Vg.value;if(!ag){m.value=j;return}ag.fontSize=j}}),BC=l.computed(()=>{const gg=w.value;return gg?{left:`${gg.x*K.value}px`,top:`${gg.y*K.value}px`,width:`${gg.width*K.value}px`,height:`${gg.height*K.value}px`}:{}}),eC=l.computed(()=>["image/jpeg","image/png","image/webp"].includes(e.file.type)?e.file.type:"image/png"),te=gg=>gg.map(j=>({...j})),jI=gg=>gg.startsWith("--"),Be=gg=>jI(gg)?`var(${gg})`:gg,SI=(gg=s.value)=>{if(!jI(gg))return gg;const j=getComputedStyle(document.documentElement).getPropertyValue(gg).trim(),ag=getComputedStyle(document.body).color;return j||ag},DI=()=>{v=Date.now()+450},At=()=>{v=Date.now()+450},vC=gg=>{const j=gg.target.value.toLowerCase();j&&(o.value=j,a.value=j,RA(j))},NA=gg=>{vC(gg),DI()},nt=()=>{const gg=e.file.name.lastIndexOf("."),j=gg>0?e.file.name.slice(0,gg):e.file.name,ag=eC.value==="image/jpeg"?"jpg":eC.value==="image/webp"?"webp":"png";return`${j||"image"}-edited.${ag}`},ie=()=>{const gg=i.value;if(!gg)return;const j=gg.getBoundingClientRect();X.value={width:gg.width,height:gg.height},K.value=gg.width>0?j.width/gg.width:1},QI=gg=>{const j=i.value;if(!j)return null;const ag=j.getBoundingClientRect(),yg=(gg.clientX-ag.left)/ag.width*j.width,$g=(gg.clientY-ag.top)/ag.height*j.height;return{x:Math.min(Math.max(yg,0),j.width),y:Math.min(Math.max($g,0),j.height)}},Fe=gg=>({left:`${gg.x*K.value}px`,top:`${gg.y*K.value}px`,color:gg.color,width:`${gg.width}px`,height:`${gg.height}px`,fontSize:`${gg.fontSize}px`}),VC=gg=>gg/Math.max(K.value,.01),lt=gg=>gg*K.value,aC=(gg,j,ag)=>Math.min(Math.max(gg,j),ag),vi=gg=>{const j=i.value;if(!j)return gg;const ag=aC(gg.width,XZ,j.width),yg=aC(gg.height,XZ,j.height),$g=aC(gg.x,0,j.width-ag),bI=aC(gg.y,0,j.height-yg);return{x:$g,y:bI,width:ag,height:yg}},Ze=gg=>{const j=i.value;if(!j)return gg;const ag=Math.max(mY,lt(j.width-gg.x)),yg=Math.max(rY,lt(j.height-gg.y)),$g=aC(gg.width,mY,ag),bI=aC(gg.height,rY,yg),XI=aC(gg.x,0,j.width-VC($g)),PI=aC(gg.y,0,j.height-VC(bI));return{...gg,x:XI,y:PI,width:$g,height:bI}},jC=(gg,j,ag,yg)=>{const $g=j.x-ag.x,bI=j.y-ag.y,XI=lt($g),PI=lt(bI),cC={...yg};return gg.includes("left")&&(cC.x=yg.x+$g,cC.width=yg.width-XI),gg.includes("right")&&(cC.width=yg.width+XI),gg.includes("top")&&(cC.y=yg.y+bI,cC.height=yg.height-PI),gg.includes("bottom")&&(cC.height=yg.height+PI),cC.width<mY&&gg.includes("left")&&(cC.x=yg.x+VC(yg.width-mY)),cC.height<rY&&gg.includes("top")&&(cC.y=yg.y+VC(yg.height-rY)),Ze(cC)},hi=(gg,j,ag)=>{const yg=i.value;if(!yg)return ag;const $g=ag.x,bI=ag.y,XI=ag.x+ag.width,PI=ag.y+ag.height;let cC=$g,Ke=bI,Ar=XI,nr=PI;return gg.includes("left")&&(cC=aC(j.x,0,XI-XZ)),gg.includes("right")&&(Ar=aC(j.x,$g+XZ,yg.width)),gg.includes("top")&&(Ke=aC(j.y,0,PI-XZ)),gg.includes("bottom")&&(nr=aC(j.y,bI+XZ,yg.height)),vi({x:cC,y:Ke,width:Ar-cC,height:nr-Ke})},pe=async gg=>{const j=i.value;if(!j)return;const ag=new Image;await new Promise(($g,bI)=>{ag.onload=()=>$g(),ag.onerror=()=>bI(new Error("Не удалось открыть изображение")),ag.src=gg});const yg=j.getContext("2d");yg&&(j.width=ag.naturalWidth||ag.width,j.height=ag.naturalHeight||ag.height,yg.clearRect(0,0,j.width,j.height),yg.drawImage(ag,0,0,j.width,j.height),await l.nextTick(),ie())},Zn=()=>{const gg=i.value;return(gg==null?void 0:gg.toDataURL(eC.value,.92))||""},st=()=>{const gg=Zn();return gg?{image:gg,textLayers:te(Z.value)}:null},QC=()=>{const gg=st();if(!gg)return;const j=Y.value[N.value];j&&JSON.stringify(j)===JSON.stringify(gg)||(Y.value=Y.value.slice(0,N.value+1),Y.value.push(gg),N.value=Y.value.length-1)},ji=async gg=>{gg&&(await pe(gg.image),Z.value=te(gg.textLayers),u.value&&!Z.value.some(j=>j.id===u.value)&&(u.value=null))},VA=async()=>{D&&URL.revokeObjectURL(D),D=URL.createObjectURL(e.file),await l.nextTick(),await pe(D),Z.value=[],u.value=null,h.value=null,R.value=st(),Y.value=R.value?[R.value]:[],N.value=Y.value.length?0:-1,w.value=null,B.value=null},Qi=()=>{const gg=document.activeElement;gg instanceof HTMLTextAreaElement&&gg.blur()},ot=gg=>{n.value=gg,B.value=null,p.value=!1,gg!=="text"&&(Qi(),u.value=null,h.value=null,T=null)},XA=gg=>{u.value=gg.id,s.value=gg.colorToken,m.value=gg.fontSize,ot("text")},bn=gg=>{l.nextTick(()=>{var ag;const j=(ag=A.value)==null?void 0:ag.querySelector(`[data-text-layer-id="${gg}"]`);j&&(j.focus(),j.setSelectionRange(j.value.length,j.value.length))})},RA=gg=>{s.value=gg,jI(gg)||(o.value=gg);const j=Vg.value;j&&(j.colorToken=gg,j.color=SI(gg),QC())},Qt=()=>{const gg=Vg.value;if(!gg){h.value=null;return}gg.color=SI(gg.colorToken),h.value=null,QC()},at=(gg,j)=>{gg.preventDefault(),XA(j),h.value=j.id,bn(j.id)},Yo=(gg,j)=>{const ag=T;if(!ag||ag.id!==gg.id)return!1;const yg=Math.hypot(j.x-ag.point.x,j.y-ag.point.y);return Date.now()-ag.time<=KeI&&yg<=VC(zeI)},yo=(gg,j)=>{T={id:gg.id,time:Date.now(),point:j}},No=gg=>{const j={id:`text-${Date.now()}-${k++}`,text:"",x:gg.x,y:gg.y,width:160,height:48,fontSize:m.value,color:SI(),colorToken:s.value};Z.value=[...Z.value,j],XA(j),h.value=j.id,QC(),bn(j.id)},un=(gg,j)=>{const ag=gg.target;j.text=ag.value,u.value=j.id,QC()},lg=(gg,j)=>{gg.stopPropagation(),XA(j)},bg=(gg,j)=>{var yg;const ag=QI(gg);if(ag){if(Yo(j,ag)){T=null,at(gg,j);return}yo(j,ag),gg.preventDefault(),h.value=null,(yg=A.value)==null||yg.setPointerCapture(gg.pointerId),XA(j),U={id:j.id,handle:"move",startPoint:ag,startLayer:{...j},moved:!1}}},Sg=(gg,j,ag)=>{var $g;const yg=QI(gg);yg&&(gg.preventDefault(),h.value=null,($g=A.value)==null||$g.setPointerCapture(gg.pointerId),XA(j),U={id:j.id,handle:ag,startPoint:yg,startLayer:{...j},moved:!1})},Kg=(gg,j)=>{var $g;const ag=QI(gg),yg=w.value;!ag||!yg||(gg.preventDefault(),u.value=null,h.value=null,($g=A.value)==null||$g.setPointerCapture(gg.pointerId),Cg={handle:j,startPoint:ag,startRect:{...yg}})},jg=(gg,j)=>{const ag=gg.getContext("2d");ag&&(p.value=!0,ag.strokeStyle=SI(),ag.lineWidth=VC(d.value),ag.lineCap="round",ag.lineJoin="round",ag.beginPath(),ag.moveTo(j.x,j.y))},pI=gg=>{var yg,$g;const j=QI(gg),ag=i.value;if(!(!j||!ag)){if(gg.preventDefault(),Date.now()<=v){v=0,u.value=null,h.value=null,n.value==="draw"&&((yg=A.value)==null||yg.setPointerCapture(gg.pointerId),O={pointerId:gg.pointerId,point:j});return}if(($g=A.value)==null||$g.setPointerCapture(gg.pointerId),n.value==="crop"){u.value=null,h.value=null,Cg=null,B.value=j,w.value={...j,width:0,height:0};return}if(n.value==="text"){if(u.value){u.value=null,h.value=null,ot("draw"),jg(ag,j);return}No(j);return}u.value=null,h.value=null,n.value==="draw"&&jg(ag,j)}},pC=gg=>{const j=QI(gg),ag=i.value;if(!j||!ag)return;if((O==null?void 0:O.pointerId)===gg.pointerId){if(Math.hypot(j.x-O.point.x,j.y-O.point.y)<VC(JeI))return;jg(ag,O.point),O=null;const bI=ag.getContext("2d");if(!bI)return;bI.lineTo(j.x,j.y),bI.stroke();return}if(Cg){const{handle:$g,startPoint:bI,startRect:XI}=Cg;if($g==="move"){w.value=vi({...XI,x:XI.x+j.x-bI.x,y:XI.y+j.y-bI.y});return}w.value=hi($g,j,XI);return}if(U){const $g=Z.value.find(Ke=>Ke.id===(U==null?void 0:U.id));if(!$g)return;const{handle:bI,startPoint:XI,startLayer:PI}=U,cC=bI==="move"?Ze({...PI,x:PI.x+j.x-XI.x,y:PI.y+j.y-XI.y}):jC(bI,j,XI,PI);Object.assign($g,cC),U.moved=!0,T=null;return}if(n.value==="crop"&&B.value){const $g=Math.min(B.value.x,j.x),bI=Math.min(B.value.y,j.y),XI=Math.abs(j.x-B.value.x),PI=Math.abs(j.y-B.value.y);w.value={x:$g,y:bI,width:XI,height:PI};return}if(!p.value||n.value!=="draw")return;const yg=ag.getContext("2d");yg&&(yg.lineTo(j.x,j.y),yg.stroke())},Vt=gg=>{var j;if((j=A.value)==null||j.releasePointerCapture(gg.pointerId),B.value=null,(O==null?void 0:O.pointerId)===gg.pointerId){O=null;return}if(Cg){Cg=null;return}if(U){U.moved&&QC(),U=null;return}p.value&&(p.value=!1,QC())},$=()=>{var cC;const gg=i.value,j=w.value;if(!gg||!j||!CC.value)return;const ag=document.createElement("canvas");ag.width=gg.width,ag.height=gg.height,(cC=ag.getContext("2d"))==null||cC.drawImage(gg,0,0);const yg=Math.round(j.width),$g=Math.round(j.height),bI=Math.round(j.x),XI=Math.round(j.y),PI=gg.getContext("2d");PI&&(gg.width=yg,gg.height=$g,PI.clearRect(0,0,yg,$g),PI.drawImage(ag,bI,XI,yg,$g,0,0,yg,$g),Z.value=Z.value.map(Ke=>({...Ke,x:Ke.x-bI,y:Ke.y-XI})).filter(Ke=>Ke.x>=0&&Ke.x<=yg&&Ke.y>=0&&Ke.y<=$g),u.value=null,h.value=null,w.value=null,ie(),QC())},eg=()=>{w.value=null,B.value=null,Cg=null},mg=gg=>VC(gg.width),Jg=gg=>VC(gg.height),iI=(gg,j,ag,yg)=>{const $g=mg(gg),bI=Jg(gg);return Ze({...gg,x:j==="right"?yg-gg.y-bI:gg.y,y:j==="right"?gg.x:ag-gg.x-$g,width:gg.height,height:gg.width})},kI=gg=>{var XI;const j=i.value,ag=j==null?void 0:j.getContext("2d");if(!j||!ag)return;const yg=document.createElement("canvas");yg.width=j.width,yg.height=j.height,(XI=yg.getContext("2d"))==null||XI.drawImage(j,0,0);const $g=j.width,bI=j.height;j.width=bI,j.height=$g,ag.clearRect(0,0,j.width,j.height),gg==="right"?(ag.translate(j.width,0),ag.rotate(Math.PI/2)):(ag.translate(0,j.height),ag.rotate(-Math.PI/2)),ag.drawImage(yg,0,0),ag.setTransform(1,0,0,1,0,0),Z.value=Z.value.map(PI=>iI(PI,gg,$g,bI)),u.value=null,h.value=null,w.value=null,ie(),QC()},tC=async()=>{gI.value&&(N.value-=1,w.value=null,h.value=null,await ji(Y.value[N.value]))},cI=async()=>{qg.value&&(N.value+=1,w.value=null,h.value=null,await ji(Y.value[N.value]))},dC=async()=>{R.value&&(await ji(R.value),Y.value=[R.value],N.value=0,w.value=null,u.value=null,h.value=null)},OC=()=>{G.value=!0},KC=()=>{G.value=!1},Vo=async()=>{KC(),await dC()},Xo=()=>{const gg=i.value;if(!gg)return null;const j=document.createElement("canvas"),ag=j.getContext("2d");return ag?(j.width=gg.width,j.height=gg.height,ag.drawImage(gg,0,0),Z.value.forEach(yg=>{const $g=yg.text.trim();if(!$g)return;const bI=VC(yg.fontSize),XI=VC(Math.max(yg.width-8,1)),PI=bI*1.15;ag.fillStyle=yg.color,ag.font=`600 ${bI}px Inter, sans-serif`,ag.textBaseline="top",Ro(ag,$g,XI).forEach((cC,Ke)=>{ag.fillText(cC,yg.x,yg.y+Ke*PI)})}),j):null},Ro=(gg,j,ag)=>{const yg=[];return j.split(`
1770
+ `),bn=($,eg)=>{Z.value=eg,u.value=z($,eg)},RA=async $=>{var Jg;if(!$)return!1;try{const iI=(Jg=navigator.clipboard)==null?void 0:Jg.writeText;if(iI)return await iI.call(navigator.clipboard,$),!0}catch{}const eg=document.createElement("textarea");eg.value=$,eg.readOnly=!0,eg.style.position="fixed",eg.style.top="-9999px",eg.style.opacity="0",document.body.appendChild(eg),eg.select(),eg.setSelectionRange(0,eg.value.length);const mg=document.execCommand("copy");return document.body.removeChild(eg),mg},Qt=async()=>{var $;if(g.readClipboardText)try{return await g.readClipboardText()||""}catch{}try{const eg=($=navigator.clipboard)==null?void 0:$.readText;return eg?await eg.call(navigator.clipboard):""}catch{return""}},at=async()=>{if(!t.value)return;const $=++R,eg=await Qt();$===R&&(h.value=eg||"")},Yo=($,eg=Z.value)=>{const mg=document.createElement("textarea");mg.readOnly=!1,mg.style.position="fixed",mg.style.top="-9999px",mg.style.opacity="0",document.body.appendChild(mg),mg.focus(),document.execCommand("paste");const Jg=mg.value;return document.body.removeChild(mg),eg?Be(eg):$.chain().focus().run(),Jg},yo=($,eg)=>{$.chain().focus().setTextSelection(eg.to).run(),q()},No=async $=>{const eg=g.editor;if(!eg)return;if($==="paste"){const kI=ot(eg)||Z.value,tC=await Qt()||Yo(eg,kI);if(tC){const cI=eg.chain().focus();kI?cI.insertContentAt(kI,tC).run():cI.insertContent(tC).run(),q();return}DI({preserveHorizontal:!0});return}const mg=ot(eg);if(!mg)return;bn(eg,mg);const Jg=XA(eg,mg),iI=await RA(Jg);if(iI&&$==="cut"){h.value=Jg,eg.chain().focus().deleteRange(mg).run(),q();return}else iI?(h.value=Jg,yo(eg,mg)):Be(mg);DI({preserveHorizontal:!0})},un=[{key:"bold",icon:rg.bold,hint:"Жирный",isActive:()=>{var $;return(($=g.editor)==null?void 0:$.isActive("bold"))??!1},run:()=>{var $;return($=jI())==null?void 0:$.toggleBold().run()}},{key:"italic",icon:rg.italic,hint:"Курсив",isActive:()=>{var $;return(($=g.editor)==null?void 0:$.isActive("italic"))??!1},run:()=>{var $;return($=jI())==null?void 0:$.toggleItalic().run()}},{key:"underline",icon:rg.underline,hint:"Подчёркнутый",isActive:()=>{var $;return(($=g.editor)==null?void 0:$.isActive("underline"))??!1},run:()=>{var $;return($=jI())==null?void 0:$.toggleUnderline().run()}},{key:"strike",icon:rg.strikethrough,hint:"Зачёркнутый",isActive:()=>{var $;return(($=g.editor)==null?void 0:$.isActive("strike"))??!1},run:()=>{var $;return($=jI())==null?void 0:$.toggleStrike().run()}}],lg=async()=>{var kI,tC,cI;const $=g.editor;if(!$)return;const{from:eg,to:mg,empty:Jg}=$.state.selection;if(Jg)return;Z.value={from:eg,to:mg},u.value=z($,{from:eg,to:mg}),n.value=u.value;const iI=(kI=$.getAttributes("link"))==null?void 0:kI.href;s.value=typeof iI=="string"&&iI.trim().length>0?iI:u.value,A.value=!0,i.value=!1,await l.nextTick(),(tC=o.value)==null||tC.focus(),(cI=o.value)==null||cI.select()},bg=()=>{const $=g.editor;if(!$)return;if($.isActive("orderedList")){$.chain().focus().toggleOrderedList().run();return}const{from:eg,to:mg,empty:Jg}=$.state.selection;if(Jg){$.chain().focus().toggleOrderedList().run();return}const iI=v($,{from:eg,to:mg});iI.length&&$.chain().focus().insertContentAt({from:eg,to:mg},{type:"orderedList",attrs:{start:1},content:iI.map(kI=>({type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:kI}]}]}))}).run()},Sg=[{key:"code",icon:rg.code,hint:"Код",isActive:()=>{var $;return(($=g.editor)==null?void 0:$.isActive("code"))??!1},run:()=>{var $;return($=jI())==null?void 0:$.toggleCode().run()}},{key:"link",icon:rg.link,hint:"Ссылка",isActive:()=>{var $;return(($=g.editor)==null?void 0:$.isActive("link"))??!1},run:()=>{var $;if(($=g.editor)!=null&&$.isActive("link")){g.editor.chain().focus().extendMarkRange("link").unsetLink().run(),SI({preserveHorizontal:!0});return}lg()}},{key:"blockquote",icon:rg.blockquote,hint:"Цитата",isActive:()=>{var $;return(($=g.editor)==null?void 0:$.isActive("orderedList"))??!1},run:bg}],Kg=$=>{const eg=$.trim();return eg?/^(https?:\/\/|mailto:|tel:)/i.test(eg)?eg:`https://${eg}`:""},jg=()=>{const $=g.editor,eg=Z.value;if(!$||!eg)return;const mg=n.value.trim()||u.value.trim(),Jg=Kg(s.value);if(!mg){pI();return}$.chain().focus().insertContentAt(eg,Jg?{type:"text",text:mg,marks:[{type:"link",attrs:{href:Jg,class:"link"}}]}:mg).run();const iI={from:eg.from,to:eg.from+mg.length};k(),Be(iI),SI({preserveHorizontal:!0})},pI=()=>{const $=Z.value;k(),Be($),SI({preserveHorizontal:!0})},pC=$=>{const eg=cg($);!$||!eg||($.on("selectionUpdate",vC),$.on("focus",NA),$.on("blur",aC),$.on("transaction",nt),eg.addEventListener("pointerdown",Ze),eg.addEventListener("touchend",st,!0),eg.addEventListener("contextmenu",QC),eg.addEventListener("keydown",Fe),eg.addEventListener("beforeinput",VC),eg.addEventListener("input",lt),eg.ownerDocument.addEventListener("selectionchange",Zn))},Vt=$=>{var mg;if(!$)return;$.off("selectionUpdate",vC),$.off("focus",NA),$.off("blur",aC),$.off("transaction",nt),(mg=cg($))==null||mg.removeEventListener("pointerdown",Ze);const eg=cg($);eg==null||eg.removeEventListener("touchend",st,!0),eg==null||eg.removeEventListener("contextmenu",QC),eg==null||eg.removeEventListener("keydown",Fe),eg==null||eg.removeEventListener("beforeinput",VC),eg==null||eg.removeEventListener("input",lt),eg==null||eg.ownerDocument.removeEventListener("selectionchange",Zn)};return l.onMounted(()=>{U(),pC(g.editor),window.addEventListener("resize",At),window.addEventListener("scroll",At,!0),window.addEventListener("pointerup",jC,!0)}),l.onBeforeUnmount(()=>{Vt(g.editor),window.removeEventListener("resize",At),window.removeEventListener("scroll",At,!0),window.removeEventListener("pointerup",jC,!0),Y!==null&&cancelAnimationFrame(Y),hi()}),l.watch(()=>g.editor,($,eg)=>{eg!==$&&(Vt(eg),pC($),DI())}),($,eg)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[e.value?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"toolbarRef",ref:I,class:l.normalizeClass(["formatting-toolbar",{"formatting-toolbar--mobile":t.value,"formatting-toolbar--mobile-menu":t.value&&i.value}]),style:l.normalizeStyle(a.value),onPointerdown:vi,onMousedown:eg[0]||(eg[0]=l.withModifiers(()=>{},["prevent"]))},[t.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[i.value?(l.openBlock(),l.createElementBlock("div",IeI,[l.createElementVNode("button",{type:"button",class:"formatting-toolbar__mobile-header",onClick:VA},[l.createVNode(Yg,{name:l.unref(rg).arrowLeft,width:20,height:20},null,8,["name"]),eg[3]||(eg[3]=l.createElementVNode("span",null,"Форматирование",-1))]),l.createElementVNode("div",CeI,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(un,mg=>l.createElementVNode("button",{key:mg.key,type:"button",class:l.normalizeClass(["formatting-toolbar__mobile-action",{"formatting-toolbar__mobile-action--active":mg.isActive()}]),"aria-label":mg.hint,"aria-pressed":mg.isActive(),role:"menuitemcheckbox",onClick:Jg=>Qi(mg)},[l.createVNode(Yg,{class:"formatting-toolbar__mobile-action-icon",name:mg.icon,width:24,height:24},null,8,["name"]),l.createElementVNode("span",null,l.toDisplayString(mg.hint),1)],10,eeI)),64))]),eg[4]||(eg[4]=l.createElementVNode("div",{class:"formatting-toolbar__mobile-divider"},null,-1)),l.createElementVNode("div",teI,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(Sg,mg=>l.createElementVNode("button",{key:mg.key,type:"button",class:l.normalizeClass(["formatting-toolbar__mobile-action",{"formatting-toolbar__mobile-action--active":mg.isActive()}]),"aria-label":mg.hint,"aria-pressed":mg.isActive(),role:"menuitemcheckbox",onClick:Jg=>Qi(mg)},[l.createVNode(Yg,{class:"formatting-toolbar__mobile-action-icon",name:mg.icon,width:24,height:24},null,8,["name"]),l.createElementVNode("span",null,l.toDisplayString(mg.hint),1)],10,ieI)),64))])])):(l.openBlock(),l.createElementBlock("div",qCI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(D.value,(mg,Jg)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:mg.key},[Jg>0?(l.openBlock(),l.createElementBlock("div",$CI)):l.createCommentVNode("",!0),l.createElementVNode("button",{type:"button",class:"formatting-toolbar__mobile-edit-action",onClick:iI=>No(mg.key)},l.toDisplayString(mg.label),9,geI)],64))),128)),l.createElementVNode("button",{type:"button",class:"formatting-toolbar__mobile-trigger","aria-label":"Форматирование",onClick:ji},[l.createVNode(Yg,{name:l.unref(rg).plus,width:18,height:18},null,8,["name"])])]))],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("div",AeI,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(un,mg=>l.createVNode(rt,{key:mg.key,hint:mg.hint,position:"top-center"},{default:l.withCtx(()=>[l.createElementVNode("button",{type:"button",class:l.normalizeClass(["formatting-toolbar__button",{"formatting-toolbar__button--active":mg.isActive()}]),"aria-label":mg.hint,onClick:mg.run},[l.createVNode(Yg,{name:mg.icon},null,8,["name"])],10,neI)]),_:2},1032,["hint"])),64))]),eg[5]||(eg[5]=l.createElementVNode("div",{class:"formatting-toolbar__divider"},null,-1)),l.createElementVNode("div",leI,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(Sg,mg=>l.createVNode(rt,{key:mg.key,hint:mg.hint,position:"top-center"},{default:l.withCtx(()=>[l.createElementVNode("button",{type:"button",class:l.normalizeClass(["formatting-toolbar__button",{"formatting-toolbar__button--active":mg.isActive()}]),"aria-label":mg.hint,onClick:mg.run},[l.createVNode(Yg,{name:mg.icon},null,8,["name"])],10,seI)]),_:2},1032,["hint"])),64))])],64))],38)):l.createCommentVNode("",!0),A.value?(l.openBlock(),l.createBlock(mB,{key:1,open:A.value,position:"center",width:"min(370px, -45px + 100vw)",height:"auto",class:"formatting-toolbar__link-modal-container",onClose:pI},{default:l.withCtx(()=>[l.createElementVNode("div",oeI,[l.createElementVNode("div",aeI,[eg[6]||(eg[6]=l.createElementVNode("div",{class:"formatting-toolbar__link-modal-title"},"Ссылка",-1)),l.createElementVNode("button",{type:"button",class:"formatting-toolbar__link-modal-close","aria-label":"Закрыть",onClick:pI},[l.createVNode(Yg,{name:l.unref(rg).crossLarge},null,8,["name"])])]),l.createElementVNode("label",deI,[eg[7]||(eg[7]=l.createElementVNode("span",{class:"formatting-toolbar__field-label"},"Текст:",-1)),l.withDirectives(l.createElementVNode("input",{ref_key:"linkTextInputRef",ref:o,"onUpdate:modelValue":eg[1]||(eg[1]=mg=>n.value=mg),class:"formatting-toolbar__field-input",type:"text",placeholder:"Важная ссылка",onKeydown:[l.withKeys(l.withModifiers(jg,["prevent"]),["enter"]),l.withKeys(l.withModifiers(pI,["prevent"]),["esc"])]},null,40,ceI),[[l.vModelText,n.value]])]),l.createElementVNode("label",meI,[eg[8]||(eg[8]=l.createElementVNode("span",{class:"formatting-toolbar__field-label"},"Ссылка:",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":eg[2]||(eg[2]=mg=>s.value=mg),class:"formatting-toolbar__field-input",type:"text",placeholder:"https://example.com",onKeydown:[l.withKeys(l.withModifiers(jg,["prevent"]),["enter"]),l.withKeys(l.withModifiers(pI,["prevent"]),["esc"])]},null,40,reI),[[l.vModelText,s.value]])]),l.createElementVNode("div",{class:"formatting-toolbar__link-modal-actions"},[l.createElementVNode("button",{type:"button",class:"formatting-toolbar__link-modal-save",onClick:jg}," Сохранить ")])])]),_:1},8,["open"])):l.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-be7dc55a"]]),ueI={class:"image-attachment-editor"},heI={class:"image-attachment-editor__header"},GeI={class:"image-attachment-editor__mode-tabs"},weI={class:"image-attachment-editor__stage-wrap"},WeI={class:"image-attachment-editor__text-layer"},BeI=["onPointerdown","onDblclick"],peI=["data-text-layer-id","value","readonly","onInput","onPointerdown"],YeI=["aria-label","onPointerdown"],yeI=["aria-label","onPointerdown"],NeI={class:"image-attachment-editor__history"},VeI={class:"image-attachment-editor__settings"},XeI={class:"image-attachment-editor__range-label"},ReI={class:"image-attachment-editor__palette"},MeI=["aria-label","onClick"],HeI={key:0,class:"image-attachment-editor__swatch-check"},feI={key:0,class:"image-attachment-editor__swatch-check"},SeI=["value"],DeI={class:"image-attachment-editor__actions"},keI={class:"image-attachment-editor__confirm"},FeI={class:"image-attachment-editor__confirm-actions"},XZ=20,KeI=350,zeI=8,JeI=3,mY=50,rY=24,xeI=l.defineComponent({__name:"ImageAttachmentEditor",props:{file:{}},emits:["apply","close"],setup(C,{emit:g}){const I=l.defineComponent({name:"SwatchCheckboxIcon",setup:()=>()=>l.h("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[l.h("path",{d:"M12.3213 4.2998C12.5972 4.03026 13.04 4.03361 13.3115 4.30762C13.5821 4.58257 13.5789 5.02451 13.3047 5.2959L6.81738 11.6973C6.68656 11.8264 6.51023 11.8998 6.32617 11.9004H6.31836C6.13075 11.8996 5.95062 11.8231 5.81934 11.6895L2.68555 8.44824L2.68164 8.44434C2.41367 8.1653 2.42264 7.72176 2.70215 7.4541C2.98181 7.18627 3.42694 7.19551 3.69531 7.47461V7.47559L6.26562 10.1309L6.33594 10.2041L6.4082 10.1328L12.3213 4.2998Z",fill:"var(--white)",stroke:"var(--text-neutral-color)","stroke-width":"0.8"})])}),e=C,t=g,i=l.ref(null),A=l.ref(null),n=l.ref("crop"),s=l.ref("--text-primary"),o=l.ref("#000000"),a=l.ref(null),d=l.ref(8),m=l.ref(34),Z=l.ref([]),u=l.ref(null),h=l.ref(null),G=l.ref(!1),w=l.ref(null),B=l.ref(null),p=l.ref(!1),Y=l.ref([]),N=l.ref(-1),R=l.ref(null),X=l.ref({width:0,height:0}),K=l.ref(1);let D="",k=0,z=null,v=0,O=null,Cg=null,U=null,T=null;const q=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"],cg=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"],og=[{label:"Белый",value:"--white"},{label:"Черный",value:"--text-primary"},{label:"Красный",value:"--error-color"},{label:"Зеленый",value:"--success-color"}],Wg=l.computed(()=>og),fg=(gg,j,ag)=>({"--range-progress":`${Math.min(Math.max((Number(gg)-j)/(ag-j)*100,0),100)}%`}),Rg=l.computed(()=>fg(d.value,2,36)),Bg=l.computed(()=>fg(NC.value,18,72)),kg=l.computed(()=>!s.value.startsWith("--")),Vg=l.computed(()=>Z.value.find(gg=>gg.id===u.value)||null),gI=l.computed(()=>N.value>0),qg=l.computed(()=>N.value<Y.value.length-1),CC=l.computed(()=>!!w.value&&Math.abs(w.value.width)>=10&&Math.abs(w.value.height)>=10),NC=l.computed({get:()=>{var gg;return((gg=Vg.value)==null?void 0:gg.fontSize)??m.value},set:gg=>{const j=Number(gg)||m.value,ag=Vg.value;if(!ag){m.value=j;return}ag.fontSize=j}}),BC=l.computed(()=>{const gg=w.value;return gg?{left:`${gg.x*K.value}px`,top:`${gg.y*K.value}px`,width:`${gg.width*K.value}px`,height:`${gg.height*K.value}px`}:{}}),eC=l.computed(()=>["image/jpeg","image/png","image/webp"].includes(e.file.type)?e.file.type:"image/png"),te=gg=>gg.map(j=>({...j})),jI=gg=>gg.startsWith("--"),Be=gg=>jI(gg)?`var(${gg})`:gg,SI=(gg=s.value)=>{if(!jI(gg))return gg;const j=getComputedStyle(document.documentElement).getPropertyValue(gg).trim(),ag=getComputedStyle(document.body).color;return j||ag},DI=()=>{v=Date.now()+450},At=()=>{v=Date.now()+450},vC=gg=>{const j=gg.target.value.toLowerCase();j&&(o.value=j,a.value=j,RA(j))},NA=gg=>{vC(gg),DI()},nt=()=>{const gg=e.file.name.lastIndexOf("."),j=gg>0?e.file.name.slice(0,gg):e.file.name,ag=eC.value==="image/jpeg"?"jpg":eC.value==="image/webp"?"webp":"png";return`${j||"image"}-edited.${ag}`},ie=()=>{const gg=i.value;if(!gg)return;const j=gg.getBoundingClientRect();X.value={width:gg.width,height:gg.height},K.value=gg.width>0?j.width/gg.width:1},QI=gg=>{const j=i.value;if(!j)return null;const ag=j.getBoundingClientRect(),yg=(gg.clientX-ag.left)/ag.width*j.width,$g=(gg.clientY-ag.top)/ag.height*j.height;return{x:Math.min(Math.max(yg,0),j.width),y:Math.min(Math.max($g,0),j.height)}},Fe=gg=>({left:`${gg.x*K.value}px`,top:`${gg.y*K.value}px`,color:gg.color,width:`${gg.width}px`,height:`${gg.height}px`,fontSize:`${gg.fontSize}px`}),VC=gg=>gg/Math.max(K.value,.01),lt=gg=>gg*K.value,aC=(gg,j,ag)=>Math.min(Math.max(gg,j),ag),vi=gg=>{const j=i.value;if(!j)return gg;const ag=aC(gg.width,XZ,j.width),yg=aC(gg.height,XZ,j.height),$g=aC(gg.x,0,j.width-ag),bI=aC(gg.y,0,j.height-yg);return{x:$g,y:bI,width:ag,height:yg}},Ze=gg=>{const j=i.value;if(!j)return gg;const ag=Math.max(mY,lt(j.width-gg.x)),yg=Math.max(rY,lt(j.height-gg.y)),$g=aC(gg.width,mY,ag),bI=aC(gg.height,rY,yg),XI=aC(gg.x,0,j.width-VC($g)),PI=aC(gg.y,0,j.height-VC(bI));return{...gg,x:XI,y:PI,width:$g,height:bI}},jC=(gg,j,ag,yg)=>{const $g=j.x-ag.x,bI=j.y-ag.y,XI=lt($g),PI=lt(bI),cC={...yg};return gg.includes("left")&&(cC.x=yg.x+$g,cC.width=yg.width-XI),gg.includes("right")&&(cC.width=yg.width+XI),gg.includes("top")&&(cC.y=yg.y+bI,cC.height=yg.height-PI),gg.includes("bottom")&&(cC.height=yg.height+PI),cC.width<mY&&gg.includes("left")&&(cC.x=yg.x+VC(yg.width-mY)),cC.height<rY&&gg.includes("top")&&(cC.y=yg.y+VC(yg.height-rY)),Ze(cC)},hi=(gg,j,ag)=>{const yg=i.value;if(!yg)return ag;const $g=ag.x,bI=ag.y,XI=ag.x+ag.width,PI=ag.y+ag.height;let cC=$g,Ke=bI,Ar=XI,nr=PI;return gg.includes("left")&&(cC=aC(j.x,0,XI-XZ)),gg.includes("right")&&(Ar=aC(j.x,$g+XZ,yg.width)),gg.includes("top")&&(Ke=aC(j.y,0,PI-XZ)),gg.includes("bottom")&&(nr=aC(j.y,bI+XZ,yg.height)),vi({x:cC,y:Ke,width:Ar-cC,height:nr-Ke})},pe=async gg=>{const j=i.value;if(!j)return;const ag=new Image;await new Promise(($g,bI)=>{ag.onload=()=>$g(),ag.onerror=()=>bI(new Error("Не удалось открыть изображение")),ag.src=gg});const yg=j.getContext("2d");yg&&(j.width=ag.naturalWidth||ag.width,j.height=ag.naturalHeight||ag.height,yg.clearRect(0,0,j.width,j.height),yg.drawImage(ag,0,0,j.width,j.height),await l.nextTick(),ie())},Zn=()=>{const gg=i.value;return(gg==null?void 0:gg.toDataURL(eC.value,.92))||""},st=()=>{const gg=Zn();return gg?{image:gg,textLayers:te(Z.value)}:null},QC=()=>{const gg=st();if(!gg)return;const j=Y.value[N.value];j&&JSON.stringify(j)===JSON.stringify(gg)||(Y.value=Y.value.slice(0,N.value+1),Y.value.push(gg),N.value=Y.value.length-1)},ji=async gg=>{gg&&(await pe(gg.image),Z.value=te(gg.textLayers),u.value&&!Z.value.some(j=>j.id===u.value)&&(u.value=null))},VA=async()=>{D&&URL.revokeObjectURL(D),D=URL.createObjectURL(e.file),await l.nextTick(),await pe(D),Z.value=[],u.value=null,h.value=null,R.value=st(),Y.value=R.value?[R.value]:[],N.value=Y.value.length?0:-1,w.value=null,B.value=null},Qi=()=>{const gg=document.activeElement;gg instanceof HTMLTextAreaElement&&gg.blur()},ot=gg=>{n.value=gg,B.value=null,p.value=!1,gg!=="text"&&(Qi(),u.value=null,h.value=null,T=null)},XA=gg=>{u.value=gg.id,s.value=gg.colorToken,m.value=gg.fontSize,ot("text")},bn=gg=>{l.nextTick(()=>{var ag;const j=(ag=A.value)==null?void 0:ag.querySelector(`[data-text-layer-id="${gg}"]`);j&&(j.focus(),j.setSelectionRange(j.value.length,j.value.length))})},RA=gg=>{s.value=gg,jI(gg)||(o.value=gg);const j=Vg.value;j&&(j.colorToken=gg,j.color=SI(gg),QC())},Qt=()=>{const gg=Vg.value;if(!gg){h.value=null;return}gg.color=SI(gg.colorToken),h.value=null,QC()},at=(gg,j)=>{gg.preventDefault(),XA(j),h.value=j.id,bn(j.id)},Yo=(gg,j)=>{const ag=T;if(!ag||ag.id!==gg.id)return!1;const yg=Math.hypot(j.x-ag.point.x,j.y-ag.point.y);return Date.now()-ag.time<=KeI&&yg<=VC(zeI)},yo=(gg,j)=>{T={id:gg.id,time:Date.now(),point:j}},No=gg=>{const j={id:`text-${Date.now()}-${k++}`,text:"",x:gg.x,y:gg.y,width:160,height:48,fontSize:m.value,color:SI(),colorToken:s.value};Z.value=[...Z.value,j],XA(j),h.value=j.id,QC(),bn(j.id)},un=(gg,j)=>{const ag=gg.target;j.text=ag.value,u.value=j.id,QC()},lg=(gg,j)=>{gg.stopPropagation(),XA(j)},bg=(gg,j)=>{var yg;const ag=QI(gg);if(ag){if(Yo(j,ag)){T=null,at(gg,j);return}yo(j,ag),gg.preventDefault(),h.value=null,(yg=A.value)==null||yg.setPointerCapture(gg.pointerId),XA(j),U={id:j.id,handle:"move",startPoint:ag,startLayer:{...j},moved:!1}}},Sg=(gg,j,ag)=>{var $g;const yg=QI(gg);yg&&(gg.preventDefault(),h.value=null,($g=A.value)==null||$g.setPointerCapture(gg.pointerId),XA(j),U={id:j.id,handle:ag,startPoint:yg,startLayer:{...j},moved:!1})},Kg=(gg,j)=>{var $g;const ag=QI(gg),yg=w.value;!ag||!yg||(gg.preventDefault(),u.value=null,h.value=null,($g=A.value)==null||$g.setPointerCapture(gg.pointerId),Cg={handle:j,startPoint:ag,startRect:{...yg}})},jg=(gg,j)=>{const ag=gg.getContext("2d");ag&&(p.value=!0,ag.strokeStyle=SI(),ag.lineWidth=VC(d.value),ag.lineCap="round",ag.lineJoin="round",ag.beginPath(),ag.moveTo(j.x,j.y))},pI=gg=>{var yg,$g;const j=QI(gg),ag=i.value;if(!(!j||!ag)){if(gg.preventDefault(),Date.now()<=v){v=0,u.value=null,h.value=null,n.value==="draw"&&((yg=A.value)==null||yg.setPointerCapture(gg.pointerId),O={pointerId:gg.pointerId,point:j});return}if(($g=A.value)==null||$g.setPointerCapture(gg.pointerId),n.value==="crop"){u.value=null,h.value=null,Cg=null,B.value=j,w.value={...j,width:0,height:0};return}if(n.value==="text"){if(u.value){u.value=null,h.value=null,ot("draw"),jg(ag,j);return}No(j);return}u.value=null,h.value=null,n.value==="draw"&&jg(ag,j)}},pC=gg=>{const j=QI(gg),ag=i.value;if(!j||!ag)return;if((O==null?void 0:O.pointerId)===gg.pointerId){if(Math.hypot(j.x-O.point.x,j.y-O.point.y)<VC(JeI))return;jg(ag,O.point),O=null;const bI=ag.getContext("2d");if(!bI)return;bI.lineTo(j.x,j.y),bI.stroke();return}if(Cg){const{handle:$g,startPoint:bI,startRect:XI}=Cg;if($g==="move"){w.value=vi({...XI,x:XI.x+j.x-bI.x,y:XI.y+j.y-bI.y});return}w.value=hi($g,j,XI);return}if(U){const $g=Z.value.find(Ke=>Ke.id===(U==null?void 0:U.id));if(!$g)return;const{handle:bI,startPoint:XI,startLayer:PI}=U,cC=bI==="move"?Ze({...PI,x:PI.x+j.x-XI.x,y:PI.y+j.y-XI.y}):jC(bI,j,XI,PI);Object.assign($g,cC),U.moved=!0,T=null;return}if(n.value==="crop"&&B.value){const $g=Math.min(B.value.x,j.x),bI=Math.min(B.value.y,j.y),XI=Math.abs(j.x-B.value.x),PI=Math.abs(j.y-B.value.y);w.value={x:$g,y:bI,width:XI,height:PI};return}if(!p.value||n.value!=="draw")return;const yg=ag.getContext("2d");yg&&(yg.lineTo(j.x,j.y),yg.stroke())},Vt=gg=>{var j;if((j=A.value)==null||j.releasePointerCapture(gg.pointerId),B.value=null,(O==null?void 0:O.pointerId)===gg.pointerId){O=null;return}if(Cg){Cg=null;return}if(U){U.moved&&QC(),U=null;return}p.value&&(p.value=!1,QC())},$=()=>{var cC;const gg=i.value,j=w.value;if(!gg||!j||!CC.value)return;const ag=document.createElement("canvas");ag.width=gg.width,ag.height=gg.height,(cC=ag.getContext("2d"))==null||cC.drawImage(gg,0,0);const yg=Math.round(j.width),$g=Math.round(j.height),bI=Math.round(j.x),XI=Math.round(j.y),PI=gg.getContext("2d");PI&&(gg.width=yg,gg.height=$g,PI.clearRect(0,0,yg,$g),PI.drawImage(ag,bI,XI,yg,$g,0,0,yg,$g),Z.value=Z.value.map(Ke=>({...Ke,x:Ke.x-bI,y:Ke.y-XI})).filter(Ke=>Ke.x>=0&&Ke.x<=yg&&Ke.y>=0&&Ke.y<=$g),u.value=null,h.value=null,w.value=null,ie(),QC())},eg=()=>{w.value=null,B.value=null,Cg=null},mg=gg=>VC(gg.width),Jg=gg=>VC(gg.height),iI=(gg,j,ag,yg)=>{const $g=mg(gg),bI=Jg(gg);return Ze({...gg,x:j==="right"?yg-gg.y-bI:gg.y,y:j==="right"?gg.x:ag-gg.x-$g,width:gg.height,height:gg.width})},kI=gg=>{var XI;const j=i.value,ag=j==null?void 0:j.getContext("2d");if(!j||!ag)return;const yg=document.createElement("canvas");yg.width=j.width,yg.height=j.height,(XI=yg.getContext("2d"))==null||XI.drawImage(j,0,0);const $g=j.width,bI=j.height;j.width=bI,j.height=$g,ag.clearRect(0,0,j.width,j.height),gg==="right"?(ag.translate(j.width,0),ag.rotate(Math.PI/2)):(ag.translate(0,j.height),ag.rotate(-Math.PI/2)),ag.drawImage(yg,0,0),ag.setTransform(1,0,0,1,0,0),Z.value=Z.value.map(PI=>iI(PI,gg,$g,bI)),u.value=null,h.value=null,w.value=null,ie(),QC()},tC=async()=>{gI.value&&(N.value-=1,w.value=null,h.value=null,await ji(Y.value[N.value]))},cI=async()=>{qg.value&&(N.value+=1,w.value=null,h.value=null,await ji(Y.value[N.value]))},dC=async()=>{R.value&&(await ji(R.value),Y.value=[R.value],N.value=0,w.value=null,u.value=null,h.value=null)},OC=()=>{G.value=!0},KC=()=>{G.value=!1},Vo=async()=>{KC(),await dC()},Xo=()=>{const gg=i.value;if(!gg)return null;const j=document.createElement("canvas"),ag=j.getContext("2d");return ag?(j.width=gg.width,j.height=gg.height,ag.drawImage(gg,0,0),Z.value.forEach(yg=>{const $g=yg.text.trim();if(!$g)return;const bI=VC(yg.fontSize),XI=VC(Math.max(yg.width-8,1)),PI=bI*1.15;ag.fillStyle=yg.color,ag.font=`600 ${bI}px Inter, sans-serif`,ag.textBaseline="top",Ro(ag,$g,XI).forEach((cC,Ke)=>{ag.fillText(cC,yg.x,yg.y+Ke*PI)})}),j):null},Ro=(gg,j,ag)=>{const yg=[];return j.split(`
1771
1771
  `).forEach($g=>{const bI=$g.split(" ");let XI="";bI.forEach(PI=>{const cC=XI?`${XI} ${PI}`:PI;if(gg.measureText(cC).width<=ag||!XI){XI=cC;return}yg.push(XI),XI=PI}),yg.push(XI)}),yg},hn=()=>{const gg=Xo();gg&&gg.toBlob(j=>{j&&t("apply",new File([j],nt(),{type:eC.value,lastModified:Date.now()}))},eC.value,.92)},ib=()=>{u.value&&(Z.value=Z.value.filter(gg=>gg.id!==u.value),u.value=null,h.value=null,QC())},is=gg=>{const j=gg.ctrlKey||gg.metaKey,ag=!!h.value&&gg.target instanceof HTMLTextAreaElement,yg=gg.code;if(j&&yg==="KeyZ"){gg.preventDefault(),gg.shiftKey?cI():tC();return}if(j&&yg==="KeyY"){gg.preventDefault(),cI();return}u.value&&gg.key==="Delete"&&!ag&&(gg.preventDefault(),ib())};return l.watch(()=>e.file,VA,{immediate:!0}),l.onMounted(()=>{window.addEventListener("keydown",is,!0),"ResizeObserver"in window&&A.value&&(z=new ResizeObserver(ie),z.observe(A.value))}),l.onBeforeUnmount(()=>{window.removeEventListener("keydown",is,!0),z==null||z.disconnect(),D&&URL.revokeObjectURL(D)}),(gg,j)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",ueI,[l.createElementVNode("div",heI,[j[9]||(j[9]=l.createElementVNode("div",{class:"image-attachment-editor__header-spacer"},null,-1)),l.createElementVNode("div",GeI,[l.createVNode(rt,{hint:"Обрезать",position:"top-center",type:"black"},{default:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).outline,size:l.unref(yI).small,class:l.normalizeClass(["image-attachment-editor__icon-button",{"image-attachment-editor__icon-button--active":n.value==="crop"}]),onClick:j[0]||(j[0]=ag=>ot("crop"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).crop,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","class"])]),_:1}),l.createVNode(rt,{hint:"Рисовать",position:"top-center",type:"black"},{default:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).outline,size:l.unref(yI).small,class:l.normalizeClass(["image-attachment-editor__icon-button",{"image-attachment-editor__icon-button--active":n.value==="draw"}]),onClick:j[1]||(j[1]=ag=>ot("draw"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).imagePaint,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","class"])]),_:1}),l.createVNode(rt,{hint:"Текст",position:"top-center",type:"black"},{default:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).outline,size:l.unref(yI).small,class:l.normalizeClass(["image-attachment-editor__icon-button",{"image-attachment-editor__icon-button--active":n.value==="text"}]),onClick:j[2]||(j[2]=ag=>ot("text"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).text,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","class"])]),_:1}),l.createVNode(rt,{hint:"Сброс",position:"top-center",type:"black"},{default:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).outline,size:l.unref(yI).small,class:"image-attachment-editor__icon-button",onClick:OC},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).reset,width:18,height:18},null,8,["name"])]),_:1},8,["type","size"])]),_:1})]),l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"image-attachment-editor__icon-button image-attachment-editor__close-button",onClick:j[3]||(j[3]=ag=>t("close"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).crossLarge,width:18,height:18},null,8,["name"])]),_:1},8,["type","size"])]),l.createElementVNode("div",weI,[l.createElementVNode("div",{ref_key:"stageRef",ref:A,class:l.normalizeClass(["image-attachment-editor__stage",`image-attachment-editor__stage--${n.value}`]),onPointerdown:pI,onPointermove:pC,onPointerup:Vt,onPointerleave:Vt},[l.createElementVNode("canvas",{ref_key:"canvasRef",ref:i,class:"image-attachment-editor__canvas"},null,512),l.createElementVNode("div",WeI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Z.value,ag=>(l.openBlock(),l.createElementBlock("div",{key:ag.id,class:l.normalizeClass(["image-attachment-editor__text-box",{"image-attachment-editor__text-box--selected":ag.id===u.value}]),style:l.normalizeStyle(Fe(ag)),onPointerdown:l.withModifiers(yg=>bg(yg,ag),["stop"]),onDblclick:l.withModifiers(yg=>at(yg,ag),["stop"])},[l.createElementVNode("textarea",{"data-text-layer-id":ag.id,value:ag.text,readonly:ag.id!==h.value,rows:"1",placeholder:"Текст",spellcheck:"false",class:l.normalizeClass(["image-attachment-editor__text-item",{"image-attachment-editor__text-item--editing":ag.id===h.value}]),onInput:yg=>un(yg,ag),onBlur:Qt,onPointerdown:l.withModifiers(yg=>lg(yg,ag),["stop"])},null,42,peI),ag.id===u.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},l.renderList(cg,yg=>l.createElementVNode("button",{key:yg,type:"button",class:l.normalizeClass(["image-attachment-editor__text-handle",`image-attachment-editor__text-handle--${yg}`]),"aria-label":`Изменить текстовое поле: ${yg}`,onPointerdown:l.withModifiers($g=>Sg($g,ag,yg),["stop"])},null,42,YeI)),64)):l.createCommentVNode("",!0)],46,BeI))),128))]),n.value==="crop"&&w.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"image-attachment-editor__crop-box",style:l.normalizeStyle(BC.value),onPointerdown:j[4]||(j[4]=l.withModifiers(ag=>Kg(ag,"move"),["stop"]))},[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(q,ag=>l.createElementVNode("button",{key:ag,type:"button",class:l.normalizeClass(["image-attachment-editor__crop-handle",`image-attachment-editor__crop-handle--${ag}`]),"aria-label":`Изменить область обрезки: ${ag}`,onPointerdown:l.withModifiers(yg=>Kg(yg,ag),["stop"])},null,42,yeI)),64))],36)):l.createCommentVNode("",!0)],34)]),l.createElementVNode("div",{class:l.normalizeClass(["image-attachment-editor__footer",{"image-attachment-editor__footer--crop":n.value==="crop"}])},[l.createElementVNode("div",NeI,[l.createVNode(rt,{hint:"Отменить",position:"top-center",type:"black"},{default:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"image-attachment-editor__icon-button",disabled:!gI.value,onClick:tC},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).undo,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","disabled"])]),_:1}),l.createVNode(rt,{hint:"Вернуть",position:"top-center",type:"black"},{default:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"image-attachment-editor__icon-button",disabled:!qg.value,onClick:cI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).redo,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","disabled"])]),_:1})]),l.createElementVNode("div",VeI,[n.value==="crop"&&!CC.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(rt,{hint:"Повернуть влево",position:"top-center",type:"black"},{default:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).outline,size:l.unref(yI).small,class:"image-attachment-editor__icon-button image-attachment-editor__rotate-button",onClick:j[5]||(j[5]=ag=>kI("left"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).reset,width:18,height:18},null,8,["name"])]),_:1},8,["type","size"])]),_:1}),l.createVNode(rt,{hint:"Повернуть вправо",position:"top-center",type:"black"},{default:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).outline,size:l.unref(yI).small,class:"image-attachment-editor__icon-button image-attachment-editor__rotate-button image-attachment-editor__rotate-button--left",onClick:j[6]||(j[6]=ag=>kI("right"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).reset,width:18,height:18},null,8,["name"])]),_:1},8,["type","size"])]),_:1})],64)):l.createCommentVNode("",!0),n.value==="crop"&&CC.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(rt,{hint:"Сохранить обрезку",position:"top-center",type:"black"},{default:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).outline,size:l.unref(yI).small,class:"image-attachment-editor__icon-button",onClick:$},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).crop,width:18,height:18},null,8,["name"])]),_:1},8,["type","size"])]),_:1}),l.createVNode(rt,{hint:"Отменить обрезку",position:"top-center",type:"black"},{default:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).outline,size:l.unref(yI).small,class:"image-attachment-editor__icon-button",onClick:eg},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).crossLarge,width:18,height:18},null,8,["name"])]),_:1},8,["type","size"])]),_:1})],64)):l.createCommentVNode("",!0),n.value==="draw"||n.value==="text"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[l.createElementVNode("label",XeI,[j[10]||(j[10]=l.createTextVNode(" Размер ",-1)),n.value==="draw"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:0,"onUpdate:modelValue":j[7]||(j[7]=ag=>d.value=ag),type:"range",min:"2",max:"36",style:l.normalizeStyle(Rg.value)},null,4)),[[l.vModelText,d.value,void 0,{number:!0}]]):l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:1,"onUpdate:modelValue":j[8]||(j[8]=ag=>NC.value=ag),type:"range",min:"18",max:"72",style:l.normalizeStyle(Bg.value),onChange:Qt},null,36)),[[l.vModelText,NC.value,void 0,{number:!0}]])]),l.createElementVNode("div",ReI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Wg.value,ag=>(l.openBlock(),l.createElementBlock("button",{key:ag.value,type:"button",class:l.normalizeClass(["image-attachment-editor__swatch",{"image-attachment-editor__swatch--active":s.value===ag.value,"image-attachment-editor__swatch--light":ag.value==="--white"}]),style:l.normalizeStyle({backgroundColor:Be(ag.value)}),"aria-label":ag.label,onClick:yg=>RA(ag.value)},[s.value===ag.value?(l.openBlock(),l.createElementBlock("span",HeI,[l.createVNode(l.unref(I))])):l.createCommentVNode("",!0)],14,MeI))),128)),l.createElementVNode("label",{class:l.normalizeClass(["image-attachment-editor__swatch image-attachment-editor__swatch--add",{"image-attachment-editor__swatch--active":kg.value}]),"aria-label":"Добавить цвет",onPointerdown:At},[kg.value?(l.openBlock(),l.createElementBlock("span",feI,[l.createVNode(l.unref(I))])):l.createCommentVNode("",!0),l.createVNode(Yg,{name:l.unref(rg).colorPicker},null,8,["name"]),l.createElementVNode("input",{type:"color",class:"image-attachment-editor__color-input",value:o.value,"aria-label":"Выбрать цвет",onBlur:DI,onInput:vC,onChange:NA},null,40,SeI)],34)])],64)):l.createCommentVNode("",!0)]),l.createElementVNode("div",DeI,[l.createVNode(nI,{type:l.unref(II).primary,size:l.unref(yI).small,class:"image-attachment-editor__apply-button",onClick:hn},{default:l.withCtx(()=>[...j[11]||(j[11]=[l.createTextVNode(" Применить ",-1)])]),_:1},8,["type","size"])])],2)]),G.value?(l.openBlock(),l.createBlock(mB,{key:0,open:G.value,position:"center",width:"420px","data-testid":"ImageAttachmentEditor-ResetConfirm",class:"image-attachment-editor__confirm-modal",onClose:KC},{default:l.withCtx(()=>[l.createElementVNode("div",keI,[j[14]||(j[14]=l.createElementVNode("h3",{class:"image-attachment-editor__confirm-title"}," Сбросить изменения? ",-1)),j[15]||(j[15]=l.createElementVNode("p",{class:"image-attachment-editor__confirm-text"}," Вы уверены, что хотите сбросить все изменения изображения? ",-1)),l.createElementVNode("div",FeI,[l.createVNode(nI,{type:l.unref(II).outline,size:l.unref(yI).small,class:"image-attachment-editor__confirm-button",onClick:KC},{default:l.withCtx(()=>[...j[12]||(j[12]=[l.createTextVNode(" Отменить ",-1)])]),_:1},8,["type","size"]),l.createVNode(nI,{type:l.unref(II).primary,size:l.unref(yI).small,class:"image-attachment-editor__confirm-button",onClick:Vo},{default:l.withCtx(()=>[...j[13]||(j[13]=[l.createTextVNode(" Сбросить ",-1)])]),_:1},8,["type","size"])])])]),_:1},8,["open"])):l.createCommentVNode("",!0)],64))}}),TeI={key:0,class:"editor-component-slot"},LeI={key:5,class:"right-buttons"},veI={key:6,class:"toolbar"},jeI={class:"attach-modal"},QeI={class:"attach-modal__header"},OeI={key:1,class:"attach-modal__attachments__all"},UeI={class:"attach-modal__media-groups"},EeI=["src"],PeI=["src","alt"],_eI={key:0,class:"attach-modal__attachments"},qeI={class:"attach-modal__attachment-icon"},$eI={class:"attach-modal__attachment-body"},gtI={class:"attach-modal__attachment-name"},ItI={class:"attach-modal__attachment-name-base"},CtI={key:0,class:"attach-modal__attachment-name-ext"},etI={class:"attach-modal__attachment-size"},ttI={key:0,class:"editor-component-slot"},itI={class:"attach-modal__toolbar"},AtI={class:"attach-modal__toolbar-left"},ntI={class:"camera-selection"},ltI={class:"camera-selection-options"},ya="[ContentEditor]",stI="editor-component__mentions-teleport-root",tL="data-editor-mentions-teleport-root",l9=l.defineComponent({__name:"ContentEditor",props:l.mergeModels({activeAttachFile:{type:Boolean},activeSelectUser:{type:Boolean},activeSend:{type:Boolean},disableSendOnEnter:{type:Boolean},readClipboardText:{type:Function},isMentionModalOpen:{type:Boolean},activeSelectSlash:{type:Boolean},mentionItems:{},slashItems:{},mentionConfig:{},slashConfig:{},mentionItemKey:{type:Function},mentionItemLabel:{type:Function},mentionItemSubtitle:{type:Function},mentionItemAvatarUrl:{type:Function},mentionItemAvatarDefaultImage:{type:Function},mentionItemAvatarInitials:{type:Function},mentionItemIsOnline:{type:Function},mentionInsertLabel:{type:Function},mentionInsertAttrs:{type:Function},slashItemKey:{type:Function},slashItemLabel:{type:Function},slashItemSubtitle:{type:Function},slashItemAvatarUrl:{type:Function},slashItemAvatarDefaultImage:{type:Function},slashItemAvatarInitials:{type:Function},slashItemIsOnline:{type:Function},slashInsertLabel:{type:Function}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["unmount-send","unmount-attach-file","mention-change","slash-change"],["update:modelValue"]),setup(C,{expose:g,emit:I}){const e=C,t=l.useModel(C,"modelValue"),i=l.ref(!1),A=l.ref({vertical:"bottom",horizontal:"left"}),n=I,s=l.ref(null),o=l.ref(null),a=l.ref(null),d=l.ref(null),m=l.ref({}),Z=l.ref(!1),u=l.ref(!1),h=l.ref([]),G=l.ref([]),w=l.ref(null),B=l.ref(null),p=l.ref([]),Y=l.ref(null),N=l.ref(null),R=l.ref(0),X=l.ref(null),K=l.ref(null),D=l.ref(0),k=l.computed(()=>h.value.length>0||G.value.length>0),z=l.computed(()=>{var L;return!e.activeSend&&((L=j.value)==null?void 0:L.isEmpty)&&!k.value}),v=l.computed(()=>e.mentionItems??[]),O=l.computed(()=>e.slashItems??[]),Cg=l.computed(()=>!!e.activeSelectUser&&Y.value!==null&&N.value!==Y.value),U=l.computed(()=>!!e.activeSelectSlash&&X.value!==null&&K.value!==X.value),T=l.computed(()=>Cg.value?"mention":U.value?"slash":null),q=l.computed(()=>T.value!==null),cg=l.computed(()=>T.value==="mention"?v.value:T.value==="slash"?O.value:[]),og=(L,P)=>{var tg,ug,Ug;return((ug=(tg=e.mentionConfig)==null?void 0:tg.getKey)==null?void 0:ug.call(tg,L,P))??((Ug=e.mentionItemKey)==null?void 0:Ug.call(e,L,P))??P},Wg=L=>{var P,tg,ug;return((tg=(P=e.mentionConfig)==null?void 0:P.getLabel)==null?void 0:tg.call(P,L))??((ug=e.mentionItemLabel)==null?void 0:ug.call(e,L))??""},fg=L=>{var P,tg,ug;return((tg=(P=e.mentionConfig)==null?void 0:P.getSubtitle)==null?void 0:tg.call(P,L))??((ug=e.mentionItemSubtitle)==null?void 0:ug.call(e,L))??""},Rg=L=>{var P,tg,ug;return((tg=(P=e.mentionConfig)==null?void 0:P.getAvatarUrl)==null?void 0:tg.call(P,L))??((ug=e.mentionItemAvatarUrl)==null?void 0:ug.call(e,L))??""},Bg=L=>{var P,tg,ug;return((tg=(P=e.mentionConfig)==null?void 0:P.getAvatarDefaultImage)==null?void 0:tg.call(P,L))??((ug=e.mentionItemAvatarDefaultImage)==null?void 0:ug.call(e,L))??""},kg=L=>{var P,tg,ug;return((tg=(P=e.mentionConfig)==null?void 0:P.getAvatarInitials)==null?void 0:tg.call(P,L))??((ug=e.mentionItemAvatarInitials)==null?void 0:ug.call(e,L))??Wg(L)},Vg=L=>{var P,tg,ug;return((tg=(P=e.mentionConfig)==null?void 0:P.getIsOnline)==null?void 0:tg.call(P,L))??((ug=e.mentionItemIsOnline)==null?void 0:ug.call(e,L))??!1},gI=(L,P)=>{var tg,ug,Ug;return((ug=(tg=e.slashConfig)==null?void 0:tg.getKey)==null?void 0:ug.call(tg,L,P))??((Ug=e.slashItemKey)==null?void 0:Ug.call(e,L,P))??P},qg=L=>{var P,tg,ug;return((tg=(P=e.slashConfig)==null?void 0:P.getLabel)==null?void 0:tg.call(P,L))??((ug=e.slashItemLabel)==null?void 0:ug.call(e,L))??""},CC=L=>{var P,tg,ug;return((tg=(P=e.slashConfig)==null?void 0:P.getSubtitle)==null?void 0:tg.call(P,L))??((ug=e.slashItemSubtitle)==null?void 0:ug.call(e,L))??""},NC=L=>{var P,tg,ug;return((tg=(P=e.slashConfig)==null?void 0:P.getAvatarUrl)==null?void 0:tg.call(P,L))??((ug=e.slashItemAvatarUrl)==null?void 0:ug.call(e,L))??""},BC=L=>{var P,tg,ug;return((tg=(P=e.slashConfig)==null?void 0:P.getAvatarDefaultImage)==null?void 0:tg.call(P,L))??((ug=e.slashItemAvatarDefaultImage)==null?void 0:ug.call(e,L))??""},eC=L=>{var P,tg,ug;return((tg=(P=e.slashConfig)==null?void 0:P.getAvatarInitials)==null?void 0:tg.call(P,L))??((ug=e.slashItemAvatarInitials)==null?void 0:ug.call(e,L))??qg(L)},te=L=>{var P,tg,ug;return((tg=(P=e.slashConfig)==null?void 0:P.getIsOnline)==null?void 0:tg.call(P,L))??((ug=e.slashItemIsOnline)==null?void 0:ug.call(e,L))??!1},jI=l.computed(()=>T.value==="slash"?D.value:R.value),Be=(L,P)=>T.value==="slash"?gI(L,P):og(L,P),SI=L=>T.value==="slash"?qg(L):Wg(L),DI=L=>T.value==="slash"?CC(L):fg(L),At=L=>T.value==="slash"?NC(L):Rg(L),vC=L=>T.value==="slash"?BC(L):Bg(L),NA=L=>T.value==="slash"?eC(L):kg(L),nt=L=>T.value==="slash"?te(L):Vg(L),ie=l.computed(()=>["emoji-picker",`emoji-picker-${A.value.vertical}`,`emoji-picker-${A.value.horizontal}`,z.value?"":"translateX"]),QI=l.computed(()=>[{value:"Фото или видео",function:()=>yg(!0),iconName:rg.image},{value:"Файл",function:()=>yg(!1),iconName:rg.file}]),Fe=l.computed(()=>[{value:"Камера",function:XA,iconName:rg.camera},...QI.value]),VC=l.computed(()=>[...G.value.map((L,P)=>({id:`media-${L.name}-${L.lastModified}-${P}`,file:L,kind:"media",index:P})),...h.value.map((L,P)=>({id:`file-${L.name}-${L.lastModified}-${P}`,file:L,kind:"file",index:P}))]),lt=l.computed(()=>VC.value.filter(L=>L.kind==="file")),aC=l.computed(()=>G.value.map((L,P)=>({id:`media-preview-${L.name}-${L.lastModified}-${P}`,file:L,index:P,url:p.value[P]||"",isVideo:lg(L).startsWith("video/"),canEdit:jg(L)})).filter(L=>!!L.url)),vi=(L,P)=>{const tg=[];for(let ug=0;ug<L.length;ug+=P)tg.push(L.slice(ug,ug+P));return tg},Ze=l.computed(()=>vi(aC.value,10)),jC=l.computed(()=>{if(w.value===null)return null;const L=G.value[w.value];return!L||!jg(L)?null:{id:`image-editor-${L.name}-${L.lastModified}-${w.value}`,file:L,index:w.value}}),hi=l.computed(()=>(u.value?a.value:o.value)??null),pe=L=>{const P=L.parentElement??L.closest("dialog")??document.body,tg=L.parentElement===P?L:P.firstChild,ug=Array.from(P.children).find(mI=>mI instanceof HTMLElement&&mI.getAttribute(tL)==="true");if(ug)return tg&&ug!==tg&&ug.nextSibling!==tg?P.insertBefore(ug,tg):!tg&&P.firstElementChild!==ug&&P.insertBefore(ug,P.firstChild),ug;const Ug=document.createElement("div");return Ug.className=stI,Ug.setAttribute(tL,"true"),P.insertBefore(Ug,tg),Ug},Zn=l.computed(()=>{const L=hi.value;return L?pe(L):"body"}),st=L=>{if(!j.value)return null;const{$from:P}=j.value.state.selection,tg=Math.max(0,P.parentOffset-50),ug=P.parent.textBetween(tg,P.parentOffset,null,""),Ug=L.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),mI=ug.match(new RegExp(`${Ug}([^\\s]*)$`));return mI?{match:mI,matchStart:P.start()+tg+(mI.index||0),query:(mI[1]||"").toLowerCase()}:null},QC=()=>{if(!q.value||!cg.value.length)return;const L=hi.value;if(!L)return;const P=L.getBoundingClientRect(),tg=12,ug=u.value?10:3,Ug=Math.min(P.width,window.innerWidth-tg*2),mI=window.innerWidth-Ug-tg,Oi=Math.min(Math.max(P.left,tg),mI);m.value={left:`${Oi}px`,bottom:`${window.innerHeight-P.top+ug}px`,width:`${Ug}px`}},ji=L=>{if(T.value==="slash"){D.value=L;return}R.value=L},VA=()=>{l.nextTick(()=>{const L=d.value,P=hi.value;if(!L||!P)return;const tg=L.querySelector('[data-mention-active="true"]');if(!(tg instanceof HTMLElement))return;const ug=L.firstElementChild??L,Ug=ug.getBoundingClientRect(),mI=P.getBoundingClientRect(),Oi=8,Gn=Math.max(Ug.bottom-mI.top,0)+8,Yd=tg.offsetTop,wn=Yd+tg.offsetHeight,ze=ug.scrollTop+Oi,R2=ug.scrollTop+ug.clientHeight-Gn;if(Yd<ze){ug.scrollTop=Math.max(Yd-Oi,0);return}wn>R2&&(ug.scrollTop=wn-ug.clientHeight+Gn)})},Qi=()=>window.innerWidth<=480,ot=()=>window.innerWidth<=480&&window.matchMedia("(hover: none) and (pointer: coarse)").matches,XA=()=>{Z.value=!0},bn=()=>{Z.value=!1},RA=L=>{Z.value=!1,yg(!0,L)};let Qt=!1,at=null;const Yo={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",heic:"image/heic",heif:"image/heif",mov:"video/quicktime",mp4:"video/mp4",m4v:"video/x-m4v",webm:"video/webm"},yo={"image/png":"png","image/x-png":"png","image/jpeg":"jpg","image/jpg":"jpg","image/pjpeg":"jpg","image/gif":"gif","image/webp":"webp","image/bmp":"bmp","image/x-ms-bmp":"bmp","image/heic":"heic","image/heif":"heif","video/quicktime":"mov","video/mp4":"mp4","video/x-m4v":"m4v","video/webm":"webm"},No=new Set(["image/png","image/jpeg","image/jpg","image/webp","image/bmp","image/x-ms-bmp"]),un=L=>{var tg;const P=L.match(/\.([^.]+)$/);return((tg=P==null?void 0:P[1])==null?void 0:tg.toLowerCase())??""},lg=L=>{if(L.type)return L.type.toLowerCase();const P=un(L.name);return Yo[P]??""},bg=(L,P)=>{const tg=L.name.trim(),ug=yo[P],Ug=!!un(tg);if(!tg){const mI=P.startsWith("image/")?"image":P.startsWith("video/")?"video":"file";return ug?`${mI}-${Date.now()}.${ug}`:`${mI}-${Date.now()}`}return Ug||!ug?tg:`${tg}.${ug}`},Sg=(L,P=lg(L))=>({fileName:L.name,fileType:L.type,normalizedMimeType:P,fileSize:L.size,lastModified:L.lastModified}),Kg=L=>L.startsWith("image/")||L.startsWith("video/"),jg=L=>No.has(lg(L)),pI=async L=>{const P=lg(L),tg=bg(L,P);if(console.warn(`${ya} normalize file`,{...Sg(L,P),normalizedFileName:tg,shouldDetach:Kg(P)}),P===L.type&&tg===L.name&&!Kg(P))return console.warn(`${ya} keep original file`,Sg(L,P)),L;try{const ug=await L.arrayBuffer();return console.warn(`${ya} detached file copy created`,{...Sg(L,P),normalizedFileName:tg,bufferSize:ug.byteLength}),new File([ug],tg,{type:P||L.type,lastModified:L.lastModified})}catch(ug){return console.warn(`${ya} failed to detach file, using original`,{...Sg(L,P),normalizedFileName:tg,error:ug}),L}},pC=L=>{const P=new DataTransfer;return L.forEach(tg=>P.items.add(tg)),P.files},Vt=async(L,P)=>{console.warn(`${ya} emitAttachFiles called`,{inputCount:Array.from(L).length,onlyMedia:P});const tg=await Promise.all(Array.from(L,pI));if(!tg.length){console.warn(`${ya} no files after normalization`);return}const ug=P??tg.every(Ug=>{const mI=lg(Ug);return mI.startsWith("image/")||mI.startsWith("video/")});console.warn(`${ya} emit normalized files`,{files:tg.map(Ug=>Sg(Ug)),isOnlyMedia:ug}),n("unmount-attach-file",pC(tg),ug)},$=async(L,P)=>{const tg=await Promise.all(Array.from(L,pI));if(tg.length){if(P){const ug=tg.filter(mI=>Kg(lg(mI))),Ug=tg.filter(mI=>!Kg(lg(mI)));ug.length&&(G.value=[...G.value,...ug]),Ug.length&&(h.value=[...h.value,...Ug])}else h.value=[...h.value,...tg];u.value=!0}},eg=()=>{h.value=[],G.value=[],w.value=null},mg=()=>{Bd(),u.value=!1,eg()},Jg=(L,P)=>{if(L==="media"){const ug=G.value.filter((Ug,mI)=>mI!==P);G.value=ug,w.value=null,!ug.length&&!h.value.length&&mg();return}const tg=h.value.filter((ug,Ug)=>Ug!==P);h.value=tg,!tg.length&&!G.value.length&&mg()},iI=L=>{L.canEdit&&(Bd(),w.value=L.index)},kI=()=>{w.value=null},tC=L=>{if(w.value===null)return;const P=[...G.value];P[w.value]=L,G.value=P,kI()},cI=async(L,P)=>{var ug;const tg=L.target;(ug=tg.files)!=null&&ug.length&&(await $(tg.files,P),tg.value="")},dC=L=>L<1024?`${L} B`:L<1024*1024?`${(L/1024).toFixed(1)} KB`:`${(L/(1024*1024)).toFixed(1)} MB`,OC=L=>{if(!L)return"";const P=L.lastIndexOf(".");return P<=0?L:L.slice(0,P)},KC=L=>{if(!L)return"";const P=L.lastIndexOf(".");return P<=0||P===L.length-1?"":L.slice(P)};l.watch(()=>G.value,L=>{p.value.forEach(P=>URL.revokeObjectURL(P)),p.value=L.map(P=>URL.createObjectURL(P))},{deep:!0}),l.watch(()=>G.value[0],(L,P)=>{B.value&&(URL.revokeObjectURL(B.value),B.value=null),!(!L||L===P)&&(B.value=URL.createObjectURL(L))});const Vo=Si.create({name:"spanNode",inline:!0,group:"inline",atom:!0,selectable:!1,addAttributes(){return{class:{default:"link"},content:{default:""},userId:{default:null,parseHTML:L=>L.getAttribute("data-user-id"),renderHTML:L=>L.userId?{"data-user-id":L.userId}:{}}}},parseHTML(){return[{tag:"span[data-span]"}]},renderHTML({node:L,HTMLAttributes:P}){return["span",fe(P,{"data-span":"",contenteditable:"false",class:L==null?void 0:L.attrs.class}),L==null?void 0:L.attrs.content]}}),Xo=/^\s*([-\u2013\u2014])\s$/,Ro=/^([-\u2013\u2014])\s$/,hn=/^(\d+)\.\s$/,ib=(L,P)=>{const tg=L.lastIndexOf(`
1772
- `);if(tg===-1)return null;const ug=L.slice(tg+1),Ug=ug.match(P);return Ug?{index:tg+1,text:ug,data:{match:Ug}}:null},is=({listTypeName:L,find:P,getAttributes:tg})=>new rh({find:P,handler:({state:ug,range:Ug,match:mI})=>{var ab,QY;const Oi=ug.schema.nodes[L];if(!Oi)return null;const pd=Ug.from,Gn=pd-1;if(((ab=ug.doc.resolve(pd).nodeBefore)==null?void 0:ab.type.name)!=="hardBreak")return null;const wn=(tg==null?void 0:tg((QY=mI.data)==null?void 0:QY.match))??{};let ze=ug.tr.delete(Ug.from,Ug.to);ze=ze.delete(Gn,Gn+1);try{ze=ze.split(Gn)}catch{return null}const R2=Math.min(Gn+2,ze.doc.content.size),M2=ze.doc.resolve(R2).blockRange(),jY=M2&&jB(M2,Oi,wn);if(!jY)return null;ze=ze.wrap(M2,jY);const G9=Math.min(Gn+4,ze.doc.content.size);ze=ze.setSelection(sI.near(ze.doc.resolve(G9)))}}),gg=Ie.create({name:"contentEditorListInputRules",addInputRules(){const L=this.editor.schema.nodes.bulletList;return L?[Nc({find:Xo,type:L}),is({listTypeName:"bulletList",find:P=>ib(P,Ro)}),is({listTypeName:"orderedList",find:P=>ib(P,hn),getAttributes:P=>({start:Number(P[1])})})]:[]}}),j=gqg({extensions:[YgI.configure({link:!1,heading:!1,blockquote:!1,codeBlock:!1}),e$g.configure({openOnClick:!1,HTMLAttributes:{class:"link"}}),ygI.configure({placeholder:"Начните печатать...",emptyEditorClass:"is-editor-empty"}),Vo,gg],content:t.value,editorProps:{handlePaste(L,P){const tg=P.clipboardData;return tg&&tg.files.length>0&&e.activeAttachFile?(P.preventDefault(),P.stopPropagation(),Qt||(Qt=!0,$(tg.files,!0),setTimeout(()=>{Qt=!1},200)),!0):!1}},onUpdate:({editor:L})=>{t.value=L.getHTML();const P=e.activeSelectUser?st("@"):null,tg=e.activeSelectSlash?st("/"):null;P?(Y.value!==P.query&&(R.value=0),Y.value=P.query,n("mention-change",P.query),X.value=null,K.value=null,n("slash-change",null)):tg?(X.value!==tg.query&&(D.value=0),X.value=tg.query,n("slash-change",tg.query),Y.value=null,N.value=null,n("mention-change",null)):(Y.value=null,N.value=null,n("mention-change",null),X.value=null,K.value=null,n("slash-change",null))},parseOptions:{preserveWhitespace:!0}});l.watch(t,L=>{j!=null&&j.value&&L!==j.value.getHTML()&&j.value.commands.setContent(L??"",{parseOptions:{preserveWhitespace:!0}})}),l.watch(cg,L=>{if(!L.length){R.value=0,D.value=0,m.value={};return}jI.value>=L.length&&ji(L.length-1),q.value&&l.nextTick(()=>{QC(),VA()})}),l.watch([R,D],()=>{q.value&&l.nextTick(()=>{QC(),VA()})}),l.watch(q,L=>{if(!L){R.value=0,D.value=0,m.value={};return}T.value==="slash"?K.value=null:N.value=null,l.nextTick(()=>{QC(),VA()})}),l.watch(()=>u.value,()=>{q.value&&l.nextTick(()=>QC())}),l.watch(Z,L=>{document.body.style.overflow=L?"hidden":""});const ag=L=>{j!=null&&j.value&&j.value.chain().focus().insertContent(L.i).run()},yg=async(L=!1,P)=>{if(!(j!=null&&j.value))return;const tg=document.createElement("input");tg.type="file",P?(P==="video"?tg.accept="video/*":P==="image"?tg.accept="image/*":tg.accept="image/*,video/*",tg.capture="environment",tg.multiple=!1):(tg.multiple=!0,L&&(tg.accept="image/*,video/*")),tg.onchange=()=>{if(tg!=null&&tg.files){if(Qi()){Vt(tg.files,L||!!P);return}$(tg.files,L)}},tg.click()},$g=L=>{console.warn(`${ya} fileDropped event received`,L.files.map(P=>Sg(P))),$(L.files,L.onlyMedia)},bI=()=>{j!=null&&j.value&&(n("unmount-send",{content:j.value.getHTML(),files:h.value.length?pC(h.value):void 0,mediaFiles:G.value.length?pC(G.value):void 0}),u.value=!1,eg(),Bd(),j.value.chain().focus())},XI=()=>{if(j!=null&&j.value){if(k.value){bI();return}n("unmount-send",{content:j.value.getHTML()}),j.value.chain().focus()}},PI=(L,P)=>{if(!(j!=null&&j.value))return;const tg=st("@");tg?j.value.chain().focus().insertContentAt({from:tg.matchStart,to:j.value.state.selection.$from.pos},{type:"spanNode",attrs:{content:L,class:"link",...P}}).run():j.value.chain().focus().insertContent({type:"spanNode",attrs:{content:L,class:"link",...P}}).run()},cC=(L,P)=>{if(!(j!=null&&j.value))return;const tg=st(L);if(tg){j.value.chain().focus().insertContentAt({from:tg.matchStart,to:j.value.state.selection.$from.pos},P).run();return}j.value.chain().focus().insertContent(P).run()},Ke=()=>{Y.value=null,N.value=null,R.value=0,n("mention-change",null)},Ar=()=>{X.value=null,K.value=null,D.value=0,n("slash-change",null)},nr=L=>{var ug,Ug,mI;const P=((ug=e.mentionConfig)==null?void 0:ug.getInsertLabel)??e.mentionInsertLabel;if(!P)return;const tg=P(L);tg&&(PI(tg,(mI=((Ug=e.mentionConfig)==null?void 0:Ug.getInsertAttrs)??e.mentionInsertAttrs)==null?void 0:mI(L)),Ke())},TY=L=>{var ug;const P=((ug=e.slashConfig)==null?void 0:ug.getInsertLabel)??e.slashInsertLabel;if(!P)return;const tg=P(L);tg&&(cC("/",tg),Ar())},Ab=L=>{if(T.value==="slash"){TY(L);return}nr(L)},LY=()=>{if(!(j!=null&&j.value))return;const L=st("@");L?j.value.chain().focus().deleteRange({from:L.matchStart,to:j.value.state.selection.$from.pos}).run():j.value.chain().focus().insertContent("@").run()},N2=()=>{if(!(j!=null&&j.value))return;const L=st("/");L?j.value.chain().focus().deleteRange({from:L.matchStart,to:j.value.state.selection.$from.pos}).run():j.value.chain().focus().insertContent("/").run()},nb=()=>{j!=null&&j.value&&j.value.chain().focus()},V2=(L,P=300,tg=260)=>{if(!L)return;const ug=L.getBoundingClientRect(),Ug=window.innerWidth,mI=window.innerHeight;A.value.vertical=ug.bottom+tg>mI?"top":"bottom",A.value.horizontal=ug.left+P>Ug?"right":"left"},X2=L=>{if(i.value=!i.value,i.value){const P=L.currentTarget;l.nextTick(()=>{V2(P)})}},Bd=()=>{i.value=!1},lr=()=>{const L=document.querySelector(".toolbar-button.smile-button");i.value&&L&&V2(L),q.value&&QC()},lb=()=>{if(!j.value)return null;const{selection:L,doc:P}=j.value.state;if(!L.empty)return null;const{$from:tg}=L;let ug=-1,Ug=-1;for(let wn=tg.depth;wn>0;wn-=1){const ze=tg.node(wn);if(ug===-1&&ze.type.name==="listItem"&&(ug=wn),ze.type.name==="orderedList"){Ug=wn;break}}if(ug===-1||Ug===-1)return null;const mI=tg.node(Ug),Oi=tg.node(ug),pd=tg.index(Ug),Gn=tg.after(Ug),Yd=tg.parent.isTextblock&&tg.parentOffset===tg.parent.content.size&&tg.index(ug)===Oi.childCount-1;return{cursorPos:tg.pos,docSize:P.content.size,isLastItem:pd===mI.childCount-1,isAtEndOfItem:Yd,orderedListAfter:Gn}},h9=()=>{if(!j.value)return;const L=lb();if(!L)return;const{state:P,view:tg}=j.value,ug=L.orderedListAfter,Ug=P.doc.resolve(ug).nodeAfter;let mI=P.tr;if(!Ug||Ug.type.name!=="paragraph"){const Oi=P.schema.nodes.paragraph.create();mI=mI.insert(ug,Oi)}mI=mI.setSelection(sI.near(mI.doc.resolve(ug+1))),tg.dispatch(mI.scrollIntoView()),tg.focus()},vY=()=>{var L,P;return!!((L=j.value)!=null&&L.isActive("orderedList")||(P=j.value)!=null&&P.isActive("bulletList"))},sb=L=>{var P;if(!(window.innerWidth<=480)){if(L.key!=="ArrowDown"&&(at=null),q.value){if(L.key==="Escape"){L.preventDefault(),L.stopPropagation(),T.value==="slash"?K.value=X.value:N.value=Y.value;return}if(L.key==="Enter"){L.preventDefault(),L.stopPropagation(),jI.value>=0&&jI.value<cg.value.length&&Ab(cg.value[jI.value]);return}if(cg.value.length&&(L.key==="ArrowDown"||L.key==="ArrowUp")){L.preventDefault(),L.stopPropagation();const tg=L.key==="ArrowDown"?1:-1;ji((jI.value+tg+cg.value.length)%cg.value.length);return}}if(L.key==="Enter"&&L.shiftKey&&!(L.ctrlKey||L.metaKey)&&vY()){L.preventDefault(),L.stopPropagation(),at=null,(P=j.value)==null||P.commands.splitListItem("listItem");return}if(L.key==="ArrowDown"){const tg=lb();if(tg!=null&&tg.isLastItem&&tg.isAtEndOfItem&&tg.orderedListAfter>=tg.docSize){L.preventDefault(),L.stopPropagation();const ug=Date.now();at&&at.pos===tg.cursorPos&&ug-at.timestamp<1200?(at=null,h9()):at={pos:tg.cursorPos,timestamp:ug};return}at=null}!e.disableSendOnEnter&&L.key==="Enter"&&L.code&&!(L.shiftKey||L.ctrlKey||L.metaKey)&&(L.preventDefault(),L.stopPropagation(),XI())}},ob=L=>{ot()&&L.preventDefault()};return l.onMounted(()=>{var L,P;(P=(L=j==null?void 0:j.value)==null?void 0:L.view)!=null&&P.dom&&(s.value=j.value.view.dom,window.addEventListener("resize",lr),window.addEventListener("scroll",lr,!0),s.value.addEventListener("keydown",sb,{capture:!0}),s.value.addEventListener("contextmenu",ob))}),l.onBeforeUnmount(()=>{var L;document.body.style.overflow="",(L=j==null?void 0:j.value)==null||L.destroy(),s.value&&(s.value.removeEventListener("keydown",sb,{capture:!0}),s.value.removeEventListener("contextmenu",ob)),B.value&&URL.revokeObjectURL(B.value),p.value.forEach(P=>URL.revokeObjectURL(P)),window.removeEventListener("resize",lr),window.removeEventListener("scroll",lr,!0)}),g({addSpanLink:PI,focus:nb,editor:j,emitAttachFiles:Vt,queueAttachFiles:$}),(L,P)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{ref_key:"mainMentionAnchorRef",ref:o,class:l.normalizeClass(["editor-component",{"editor-component--mentions-open":q.value}])},[L.$slots.action&&!u.value?(l.openBlock(),l.createElementBlock("div",TeI,[l.renderSlot(L.$slots,"action")])):l.createCommentVNode("",!0),e.activeAttachFile?(l.openBlock(),l.createBlock(tZ,{key:1,isWCUse:"",options:Fe.value,translateY:"calc(-100% - 47px)",class:"mobile-item attach-file-popover"},{trigger:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"toolbar-button attach-file-button mobile-buttons"},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).paperClip},null,8,["name"])]),_:1},8,["type","size"])]),_:1},8,["options"])):l.createCommentVNode("",!0),u.value?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref(ax),{key:2,class:"editor-content",editor:l.unref(j)},null,8,["editor"])),u.value?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(beI,{key:3,editor:l.unref(j)||null,"read-clipboard-text":e.readClipboardText},null,8,["editor","read-clipboard-text"])),e.activeAttachFile&&!u.value?(l.openBlock(),l.createBlock(eL,{key:4,onFilesDropped:$g})):l.createCommentVNode("",!0),u.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",LeI,[l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"toolbar-button mobile-buttons smile-button",onClick:l.withModifiers(X2,["stop"])},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).smile},null,8,["name"]),l.withDirectives(l.createElementVNode("div",{onClick:P[0]||(P[0]=l.withModifiers(()=>{},["stop"])),class:l.normalizeClass(ie.value)},[l.createVNode(l.unref(n9),{native:!0,onSelect:ag})],2),[[l.vShow,i.value]])]),_:1},8,["type","size"]),l.withDirectives(l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"toolbar-button right mobile-buttons",onClick:XI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).planeRightFill,width:22,height:22,class:"content-editor__save"},null,8,["name"])]),_:1},8,["type","size"]),[[l.vShow,!z.value]])])),u.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",veI,[e.activeAttachFile?(l.openBlock(),l.createBlock(tZ,{key:0,isWCUse:"",options:QI.value,translateY:"calc(-100% - 47px)"},{trigger:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"toolbar-button attach-file-button"},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).paperClip,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])]),_:1},8,["options"])):l.createCommentVNode("",!0),l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"toolbar-button smile-button",onClick:l.withModifiers(X2,["stop"])},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).smile,width:16,height:16},null,8,["name"]),l.withDirectives(l.createElementVNode("div",{onClick:P[1]||(P[1]=l.withModifiers(()=>{},["stop"])),class:l.normalizeClass(ie.value)},[l.withDirectives(l.createVNode(l.unref(n9),{native:!0,onSelect:ag},null,512),[[l.unref(To),Bd,void 0,{bubble:!0}]])],2),[[l.vShow,i.value]])]),_:1},8,["type","size"]),e.activeSelectUser?(l.openBlock(),l.createBlock(nI,{key:1,type:l.unref(II).ghost,class:"toolbar-button",size:l.unref(yI).small,onClick:LY},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).atSign,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])):l.createCommentVNode("",!0),e.activeSelectSlash?(l.openBlock(),l.createBlock(nI,{key:2,type:l.unref(II).ghost,class:"toolbar-button",size:l.unref(yI).small,onClick:N2},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).slash,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])):l.createCommentVNode("",!0),l.createCommentVNode("",!0),l.createVNode(nI,{disabled:z.value,class:"toolbar-button right",size:l.unref(yI).small,onClick:XI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).planeRight,color:l.unref(Jh).white,width:16,height:16},null,8,["name","color"])]),_:1},8,["disabled","size"])])),u.value?(l.openBlock(),l.createBlock(mB,{key:7,open:u.value,onClose:mg,"disable-close-on-outside-click":"",position:"center",width:jC.value?"min(920px, calc(100vw - 32px))":"min(430px, calc(100vw - 32px))",height:"auto",class:l.normalizeClass(["attach-modal-container",{"attach-modal-container--image-editor":jC.value}])},{default:l.withCtx(()=>[l.createElementVNode("div",jeI,[l.createVNode(eL,{onFilesDropped:$g}),jC.value?(l.openBlock(),l.createBlock(xeI,{key:jC.value.id,file:jC.value.file,onApply:tC,onClose:kI},null,8,["file"])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",QeI,[l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"attach-modal__close",onClick:mg},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).crossLarge},null,8,["name"])]),_:1},8,["type","size"])],512),[[l.vShow,!jC.value]]),Ze.value.length>0||lt.value.length>0?l.withDirectives((l.openBlock(),l.createElementBlock("div",OeI,[l.createElementVNode("div",UeI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Ze.value,(tg,ug)=>(l.openBlock(),l.createElementBlock("div",{key:`media-chunk-${ug}`,class:l.normalizeClass(["attach-modal__media-grid",`attach-modal__media-grid-${tg.length}-item`])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(tg,Ug=>(l.openBlock(),l.createElementBlock("div",{key:Ug.id,class:l.normalizeClass(["attach-modal__media-tile",{"attach-modal__media-tile--editable":Ug.canEdit}])},[Ug.isVideo?(l.openBlock(),l.createElementBlock("video",{key:0,draggable:"false",src:Ug.url,muted:"",playsinline:""},null,8,EeI)):(l.openBlock(),l.createElementBlock("img",{key:1,draggable:"false",src:Ug.url,alt:Ug.file.name},null,8,PeI)),Ug.canEdit?(l.openBlock(),l.createBlock(nI,{key:2,type:l.unref(II).ghost,size:l.unref(yI).small,class:"attach-modal__media-tile-edit",onClick:l.withModifiers(mI=>iI(Ug),["stop"])},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).paint,width:16,height:16},null,8,["name"])]),_:1},8,["type","size","onClick"])):l.createCommentVNode("",!0),l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"attach-modal__media-tile-remove",onClick:l.withModifiers(mI=>Jg("media",Ug.index),["stop"])},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).trash,width:16,height:16},null,8,["name"])]),_:1},8,["type","size","onClick"])],2))),128))],2))),128)),lt.value.length?(l.openBlock(),l.createElementBlock("div",_eI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(lt.value,tg=>(l.openBlock(),l.createElementBlock("div",{key:tg.id,class:"attach-modal__attachment"},[l.createElementVNode("div",qeI,[l.createVNode(Yg,{name:l.unref(rg).fileItem,width:18,height:18},null,8,["name"])]),l.createElementVNode("div",$eI,[l.createElementVNode("div",gtI,[l.createElementVNode("span",ItI,l.toDisplayString(OC(tg.file.name)),1),KC(tg.file.name)?(l.openBlock(),l.createElementBlock("span",CtI,l.toDisplayString(KC(tg.file.name)),1)):l.createCommentVNode("",!0)]),l.createElementVNode("div",etI,l.toDisplayString(dC(tg.file.size)),1)]),l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"attach-modal__attachment-remove",onClick:ug=>Jg(tg.kind,tg.index)},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).trash,width:24,height:24},null,8,["name"])]),_:1},8,["type","size","onClick"])]))),128))])):l.createCommentVNode("",!0)])],512)),[[l.vShow,!jC.value]]):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref_key:"modalMentionAnchorRef",ref:a,class:"attach-modal__editor"},[L.$slots.action?(l.openBlock(),l.createElementBlock("div",ttI,[l.renderSlot(L.$slots,"action")])):l.createCommentVNode("",!0),l.createVNode(l.unref(ax),{class:"editor-content",editor:l.unref(j)},null,8,["editor"]),l.createElementVNode("div",itI,[l.createElementVNode("div",AtI,[l.createVNode(tZ,{isWCUse:"",disabled:!e.activeAttachFile,options:QI.value,translateY:"calc(-100% - 47px)"},{trigger:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"toolbar-button attach-file-button",disabled:!e.activeAttachFile},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).paperClip,width:16,height:16},null,8,["name"])]),_:1},8,["type","size","disabled"])]),_:1},8,["disabled","options"]),l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"toolbar-button smile-button",onClick:l.withModifiers(X2,["stop"])},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).smile,width:16,height:16},null,8,["name"]),l.withDirectives(l.createElementVNode("div",{onClick:P[2]||(P[2]=l.withModifiers(()=>{},["stop"])),class:l.normalizeClass(ie.value)},[l.withDirectives(l.createVNode(l.unref(n9),{native:!0,onSelect:ag},null,512),[[l.unref(To),Bd,void 0,{bubble:!0}]])],2),[[l.vShow,i.value]])]),_:1},8,["type","size"]),e.activeSelectUser?(l.openBlock(),l.createBlock(nI,{key:0,type:l.unref(II).ghost,class:"toolbar-button",size:l.unref(yI).small,onClick:LY},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).atSign,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])):l.createCommentVNode("",!0),e.activeSelectSlash?(l.openBlock(),l.createBlock(nI,{key:1,type:l.unref(II).ghost,class:"toolbar-button",size:l.unref(yI).small,onClick:N2},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).slash,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])):l.createCommentVNode("",!0)]),l.createVNode(nI,{disabled:z.value,class:"toolbar-button right",size:l.unref(yI).small,onClick:bI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).planeRight,color:l.unref(Jh).white,width:16,height:16},null,8,["name","color"])]),_:1},8,["disabled","size"])])],512),[[l.vShow,!jC.value]])])]),_:3},8,["open","width","class"])):l.createCommentVNode("",!0),l.createElementVNode("input",{ref:"pendingFileInputRef",type:"file",multiple:"",class:"attach-hidden-input",onChange:P[3]||(P[3]=tg=>cI(tg,!1))},null,544),l.createElementVNode("input",{ref:"pendingMediaInputRef",type:"file",accept:"image/*,video/*",multiple:"",class:"attach-hidden-input",onChange:P[4]||(P[4]=tg=>cI(tg,!0))},null,544)],2),(l.openBlock(),l.createBlock(l.Teleport,{to:Zn.value},[q.value&&cg.value.length?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"mentionListRef",ref:d,class:"editor-component__mentions-portal"},[l.createVNode(_CI,{items:cg.value,"selected-index":jI.value,variant:T.value||"mention","is-fixed":"","position-style":m.value,"get-key":Be,"get-label":SI,"get-subtitle":DI,"get-avatar-url":At,"get-avatar-default-image":vC,"get-avatar-initials":NA,"get-is-online":nt,onSelect:Ab},null,8,["items","selected-index","variant","position-style"])],512)):l.createCommentVNode("",!0)],8,["to"])),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(l.Transition,{name:"camera-selection-sheet"},{default:l.withCtx(()=>[Z.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"camera-selection-sheet",onClick:l.withModifiers(bn,["self"])},[l.createElementVNode("div",ntI,[l.createElementVNode("div",ltI,[l.createVNode(nI,{type:l.unref(II).primary,onClick:P[5]||(P[5]=tg=>RA("image")),class:"camera-selection-item"},{default:l.withCtx(()=>[...P[7]||(P[7]=[l.createTextVNode(" Сделать фото ",-1)])]),_:1},8,["type"]),l.createVNode(nI,{type:l.unref(II).secondary,onClick:P[6]||(P[6]=tg=>RA("video")),class:"camera-selection-item"},{default:l.withCtx(()=>[...P[8]||(P[8]=[l.createTextVNode(" Записать видео ",-1)])]),_:1},8,["type"])])])])):l.createCommentVNode("",!0)]),_:1})]))],64))}}),otI=["data-testid"],atI=["data-testid"],Na="[Cropper][BaseCropper]",dtI=Qg(l.defineComponent({name:"BaseCropper",__name:"BaseCropper",props:{image:{},max:{default:3},min:{default:1},step:{default:.5}},emits:["unmount-scale"],setup(C,{expose:g,emit:I}){const e=C,t=I,i=l.useTemplateRef("canvas"),A=l.useTemplateRef("container"),n=l.reactive({ctx:null,image:null,id:l.useId(),scale:1,position:{x:0,y:0},isDragging:!1,startX:0,startY:0,minScale:e.min,maxScale:e.max,stepScale:e.step});l.watch(()=>e.image,()=>{e.image&&u(e.image)});const s=()=>{i.value&&(n.ctx=i.value.getContext("2d")),o(),window.addEventListener("resize",o)},o=()=>{if(A.value){const{width:D,height:k}=A.value.getBoundingClientRect();i.value&&(i.value.width=D,i.value.height=k),n.image&&a()}},a=()=>{if(n.image){const D=n.ctx,k=i.value;D&&k&&(D.clearRect(0,0,k.width,k.height),D.drawImage(n.image,n.position.x,n.position.y,n.image.width*n.scale,n.image.height*n.scale))}},d=D=>new Promise(k=>setTimeout(k,D)),m=D=>["image/png","image/jpeg"].includes(D.type.toLowerCase()),Z=D=>({fileName:D.name,fileType:D.type,fileSize:D.size,lastModified:D.lastModified,isScreenshotLike:m(D)}),u=D=>{const k=m(D)?6:3;let z=0;console.warn(`${Na} loadImage start`,{...Z(D),maxRetries:k});const v=new FileReader;v.onload=async O=>{var Cg;console.warn(`${Na} FileReader load success`,{...Z(D),attempt:z+1}),typeof((Cg=O.target)==null?void 0:Cg.result)=="string"&&(n.image=new Image,n.image.src=O.target.result,n.image.onload=async()=>{if(console.warn(`${Na} image decode success`,Z(D)),await l.nextTick(),i.value&&n.image){const U=i.value.width,T=i.value.height,q=n.image.width/n.image.height,cg=U/T;q>cg?(n.image.width=U,n.image.height=U/q):(n.image.height=T,n.image.width=T*q),o(),n.position.x=(i.value.width-n.image.width)/2,n.position.y=(i.value.height-n.image.height)/2,a()}})},v.onerror=async()=>{if(console.warn(`${Na} FileReader load error`,{...Z(D),attempt:z+1,maxRetries:k,error:v.error}),z>=k){try{console.warn(`${Na} fallback to detached file`,Z(D));const Cg=await D.arrayBuffer(),U=new File([Cg],D.name,{type:D.type||"application/octet-stream",lastModified:D.lastModified});z+=1,console.warn(`${Na} retry readAsDataURL with detached file`,{...Z(U),attempt:z+1}),v.readAsDataURL(U)}catch(Cg){console.error("Failed to load cropper image",{fileName:D.name,error:Cg})}return}z+=1;const O=(m(D)?180:120)*z;console.warn(`${Na} schedule FileReader retry`,{...Z(D),attempt:z+1,retryDelay:O}),await d(O),v.readAsDataURL(D)},console.warn(`${Na} initial readAsDataURL`,Z(D)),v.readAsDataURL(D)},h=D=>{n.isDragging=!0,n.startX=D.clientX-n.position.x,n.startY=D.clientY-n.position.y,window.addEventListener("mousemove",G),window.addEventListener("mouseup",w)},G=D=>{if(!n.isDragging&&!i.value)return;let k=D.clientX-n.startX,z=D.clientY-n.startY;if(i.value&&n.image){const v=i.value.width-n.image.width*n.scale;n.image.width*n.scale<i.value.width?k=Math.min(Math.max(k,0),i.value.width-n.image.width*n.scale):(k>0&&(k=0),k<v&&(k=v));const O=i.value.height-n.image.height*n.scale;n.image.height*n.scale<i.value.height?z=Math.min(Math.max(z,0),i.value.height-n.image.height*n.scale):(z>0&&(z=0),z<O&&(z=O)),n.position.x=k,n.position.y=z}a()},w=()=>{n.isDragging=!1,window.removeEventListener("mousemove",G),window.removeEventListener("mouseup",w)},B=D=>Math.max(n.minScale,Math.min(D,n.maxScale)),p=D=>{if(i.value){const k=i.value.width/2,z=i.value.height/2;n.position.x=k-(k-n.position.x)*D,n.position.y=z-(z-n.position.y)*D}},Y=D=>{const k=n.scale,z=n.scale+D.deltaY*-.001;if(k===B(z))return;n.scale=B(z);const v=z/k;p(v),t("unmount-scale",n.scale),a()};return g({cropImage:()=>{if(A.value){const{width:D,height:k}=A.value.getBoundingClientRect(),z=document.createElement("canvas");z.width=D,z.height=k;const v=z.getContext("2d");v&&n.image&&v.drawImage(n.image,n.position.x,n.position.y,n.image.width*n.scale,n.image.height*n.scale);const O=z.toDataURL("image/png"),Cg=atob(O.split(",")[1]),U=new ArrayBuffer(Cg.length),T=new Uint8Array(U);for(let cg=0;cg<Cg.length;cg++)T[cg]=Cg.charCodeAt(cg);const q=new Blob([T],{type:"image/png"});return e.image?new File([q],e.image.name,{type:"image/png"}):null}return null},scalePlus:()=>{const D=n.scale+n.stepScale;n.scale=B(D),a()},scaleMinus:()=>{const D=n.scale-n.stepScale;n.scale=B(D),a()},setScale:D=>{const k=n.scale,v=D/k;n.scale=B(D),p(v),a()},startMove:h,scaleImage:Y}),l.onMounted(()=>{s(),e.image&&u(e.image)}),(D,k)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"container",ref:A,class:"base-cropper","data-testid":`BaseCropper-${n.id}`},[l.createElementVNode("canvas",{ref_key:"canvas",ref:i,class:"base-cropper__canvas","data-testid":`BaseCropper-${n.id}-canvas`,onMousedown:h,onWheel:l.withModifiers(Y,["prevent"])},null,40,atI)],8,otI))}}),[["__scopeId","data-v-8390bd52"]]),ctI=C=>{const g=l.ref(C==null?void 0:C.defaultValue),I=C==null?void 0:C.min,e=C==null?void 0:C.max,t=C==null?void 0:C.step;l.watch(g,A=>{g.value=i(A)});const i=A=>Math.max(I,Math.min(A,e));return{value:g,min:I,max:e,step:t,getCorrectValue:i}},mtI=(C,g)=>new File([C],g,{type:C.type}),rtI=["data-testid"],ZtI=["data-testid"],btI=["data-testid"],utI=["data-testid"],htI=["data-testid"],GtI=["data-testid"],s9=Qg(l.defineComponent({name:"ModalCroppedAvatar",__name:"ModalCroppedAvatar",props:{image:{},open:{type:Boolean},position:{default:"center"},width:{default:"650px"},height:{default:"auto"},disableCloseOnOutsideClick:{type:Boolean},isResetFocus:{type:Boolean},dataTestid:{}},emits:["unmount-close","unmount-save"],setup(C,{emit:g}){const I=C,e=g,{max:t,min:i,step:A,value:n}=ctI({defaultValue:1,max:3,min:1,step:.1}),s=l.useId(),o=l.useTemplateRef("cropper"),a=l.reactive({openModal:!1});l.watch(n,()=>{o.value&&o.value.setScale(n.value)});const d=()=>{a.openModal=!1,e("unmount-close")},m=G=>{n.value=G},Z=()=>{n.value=n.value-A},u=()=>{n.value=n.value+A},h=()=>{if(o.value){const G=o.value.cropImage();if(G){const w=G.name,B=mtI(G,w);e("unmount-save",B),d()}}};return l.onUnmounted(()=>{d()}),l.onMounted(()=>{I.open===void 0&&(a.openModal=I.open)}),(G,w)=>(l.openBlock(),l.createBlock(fu,l.mergeProps(I,{class:"modal-cropped-avatar","data-testid":`ModalCroppedAvatar-${l.unref(s)}`,onClose:d}),{default:l.withCtx(()=>[l.createElementVNode("div",{class:"modal-cropped-avatar__content","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content`},[l.createElementVNode("div",{class:"modal-cropped-avatar__title","data-testid":`ModalCroppedAvatar-${l.unref(s)}-title`}," Изменение фото профиля ",8,ZtI),l.createElementVNode("div",{class:"modal-cropped-avatar__main","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-main`},[l.createElementVNode("div",{class:"modal-cropped-avatar__cropped","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-main-cropped`},[l.createVNode(dtI,{ref_key:"cropper",ref:o,image:C.image,max:l.unref(t),min:l.unref(i),step:l.unref(A),class:"modal-cropped-avatar__cropper",onUnmountScale:m},null,8,["image","max","min","step"]),l.createElementVNode("div",{class:"modal-cropped-avatar__tools","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-tools`},[l.createVNode(Yg,{name:l.unref(rg).minus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-iconMinus`,onClick:Z},null,8,["name","data-testid"]),l.createVNode(HB,{max:l.unref(t),min:l.unref(i),step:l.unref(A),modelValue:l.unref(n),"onUpdate:modelValue":w[0]||(w[0]=B=>l.isRef(n)?n.value=B:null),"data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-Range`},null,8,["max","min","step","modelValue","data-testid"]),l.createVNode(Yg,{name:l.unref(rg).plus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-IconPlus`,onClick:u},null,8,["name","data-testid"])],8,htI)],8,utI),l.createElementVNode("div",{class:"modal-cropped-avatar__buttons","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-buttons`},[l.createVNode(nI,{type:l.unref(II).outline,class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-ButtonCancel`,onClick:d},{default:l.withCtx(()=>[...w[1]||(w[1]=[l.createTextVNode(" Отменить ",-1)])]),_:1},8,["type","data-testid"]),l.createVNode(nI,{class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-buttonSave`,onClick:h},{default:l.withCtx(()=>[...w[2]||(w[2]=[l.createTextVNode(" Сохранить ",-1)])]),_:1},8,["data-testid"])],8,GtI)],8,btI)],8,rtI)]),_:1},16,["data-testid"]))}}),[["__scopeId","data-v-65b5d91e"]]),o9={install(C,g={enabled:!0}){if(!(g.enabled??!1)){console.info("[removeDataTestidPlugin] Plugin is disabled.");return}const e=t=>{t.removeAttribute("data-testid"),Array.from(t.children).forEach(e)};C.mixin({mounted(){e(this.$el)}})}},wtI=["src"],a9=l.defineComponent({name:"ImagePreview",__name:"ImagePreview",props:{src:{}},emits:["error"],setup(C,{expose:g,emit:I}){const e=C,t=I,i=l.reactive({isError:!1,rotate:0});l.watch(()=>e.src,()=>{i.isError=!1,i.rotate=0,l.nextTick(()=>{n()})});const A=l.ref(null),n=async()=>{try{if(!A.value||!e.src)return;const o=new Image;o.src=e.src,o.addEventListener("load",()=>{var h;if(!A.value)return;const a=(h=A.value)==null?void 0:h.getContext("2d");if(!a)return;const d=o.width,m=o.height;let Z=d,u=m;i.rotate%180!==0&&(Z=m,u=d),A.value.width=Z,A.value.height=u,a.save(),a.clearRect(0,0,Z,u),a.translate(Z/2,u/2),a.rotate(i.rotate*Math.PI/180),a.drawImage(o,-d/2,-m/2,d,m),a.restore()}),o.addEventListener("error",a=>{i.isError=!0,t("error",a)})}catch{t("error",new Event("error")),i.isError=!0}},s=async o=>{const a=Math.round(o/90)*90;i.rotate+=a,l.nextTick(()=>{n()})};return l.onMounted(()=>{l.nextTick(()=>{n()})}),g({rotateImage:s}),(o,a)=>i.isError?(l.openBlock(),l.createElementBlock("img",{key:1,src:l.unref(rs)},null,8,wtI)):(l.openBlock(),l.createElementBlock("canvas",{key:0,ref_key:"canvasRef",ref:A,class:"image-preview"},null,512))}}),iL={Accordion:GV,Badges:Mt,BreadCrumbs:wy,Dialog:hW,DragAndDrop:wV,Card:WV,Combobox:YV,Calendar:hV,Button:nI,Switch:Nw,SelectList:Mr,Dropdown:iN,Textarea:SX,Filter:BV,Icon:Yg,Input:HW,InputNumber:ou,Picture:kX,PushNotification:FX,Scroll:XX,Search:du,Modal:fu,Slider:VX,Checkbox:RX,Toggle:wB,UserMenu:fX,CopyIcon:KX,Loader:ku,FilterTag:zX,CircularProgress:JX,Popover:tZ,Table:xX,TableNew:jX,TableSimple:OX,TableRow:MB,TableRowNew:QX,TableTd:Lu,TableTh:iZ,SectionTableRow:TX,HeadTableRow:xu,HeadTableRowNew:fB,ScrollWrapper:Tu,ScrollWrapperNew:D7g,Radio:LX,Tooltip:rt,BaseFilter:vX,Range:HB,Tabs:UX,ContentEditor:l9,ModalCroppedAvatar:s9,Avatar:Ju,TimePicker:GW,SliderModal:hB,PdfPreview:Gs,ImagePreview:a9,VideoPreview:Su,Skeleton:RB},AL=Object.freeze(Object.defineProperty({__proto__:null,Accordion:GV,Avatar:Ju,Badges:Mt,BadgesTypeEnum:UI,BaseFilter:vX,BreadCrumbs:wy,Button:nI,ButtonTypeEnum:II,Calendar:hV,Card:WV,Checkbox:RX,CheckboxCircularEnum:NB,CheckboxSizeEnum:yB,CircularProgress:JX,ColorsEnum:Jh,Combobox:YV,ContentEditor:l9,CopyIcon:KX,Dialog:hW,DragAndDrop:wV,Dropdown:iN,Filter:BV,FilterTag:zX,HeadTableRow:xu,HeadTableRowNew:fB,Icon:Yg,IconNameEnum:rg,ImageExtensionsEnum:mu,ImagePreview:a9,Input:HW,InputNumber:ou,InputTypeEnum:pV,Loader:ku,MenuTypeEnum:ZC,MessageTypeEnum:XB,Modal:fu,ModalCroppedAvatar:s9,PdfPreview:Gs,Picture:kX,Popover:tZ,PushNotification:FX,Radio:LX,Range:HB,Scroll:XX,ScrollWrapper:Tu,Search:du,SectionTableRow:TX,SelectList:Mr,SizesEnum:yI,Skeleton:RB,Slider:VX,SliderModal:hB,Switch:Nw,Table:xX,TableNew:jX,TableRow:MB,TableRowNew:QX,TableSimple:OX,TableTd:Lu,TableTh:iZ,Tabs:UX,TextFieldEnum:MW,Textarea:SX,TextareaTypeEnum:VB,TimePicker:GW,Toggle:wB,Tooltip:rt,UserMenu:fX,VideoExtensionsEnum:ru,VideoPreview:Su,default:{install:C=>{Object.keys(iL).forEach(g=>{C.component("Y"+g,iL[g])})}},getFirstTime:rk,getLastTime:XW,vuePluginRemoveTestid:o9},Symbol.toStringTag,{value:"Module"})),WtI={install(C){for(const g in AL){const I=AL[g];C.use(I).use(o9,{enabled:!1})}}};Ag.Accordion=GV,Ag.Avatar=Ju,Ag.Badges=Mt,Ag.BadgesTypeEnum=UI,Ag.BaseFilter=vX,Ag.BreadCrumbs=wy,Ag.Button=nI,Ag.ButtonTypeEnum=II,Ag.Calendar=hV,Ag.Card=WV,Ag.Checkbox=RX,Ag.CheckboxCircularEnum=NB,Ag.CheckboxSizeEnum=yB,Ag.CircularProgress=JX,Ag.ColorsEnum=Jh,Ag.Combobox=YV,Ag.ContentEditor=l9,Ag.CopyIcon=KX,Ag.Dialog=hW,Ag.DragAndDrop=wV,Ag.Dropdown=iN,Ag.Filter=BV,Ag.FilterTag=zX,Ag.HeadTableRow=xu,Ag.HeadTableRowNew=fB,Ag.Icon=Yg,Ag.IconNameEnum=rg,Ag.ImageExtensionsEnum=mu,Ag.ImagePreview=a9,Ag.Input=HW,Ag.InputNumber=ou,Ag.InputTypeEnum=pV,Ag.Loader=ku,Ag.MenuTypeEnum=ZC,Ag.MessageTypeEnum=XB,Ag.Modal=fu,Ag.ModalCroppedAvatar=s9,Ag.OnClickOutside=L6,Ag.OnLongPress=U6,Ag.PdfPreview=Gs,Ag.Picture=kX,Ag.Popover=tZ,Ag.PushNotification=FX,Ag.Radio=LX,Ag.Range=HB,Ag.Scroll=XX,Ag.ScrollWrapper=Tu,Ag.Search=du,Ag.SectionTableRow=TX,Ag.SelectList=Mr,Ag.SizesEnum=yI,Ag.Skeleton=RB,Ag.Slider=VX,Ag.SliderModal=hB,Ag.Switch=Nw,Ag.Table=xX,Ag.TableNew=jX,Ag.TableRow=MB,Ag.TableRowNew=QX,Ag.TableSimple=OX,Ag.TableTd=Lu,Ag.TableTh=iZ,Ag.Tabs=UX,Ag.TextFieldEnum=MW,Ag.Textarea=SX,Ag.TextareaTypeEnum=VB,Ag.TimePicker=GW,Ag.Toggle=wB,Ag.Tooltip=rt,Ag.UseActiveElement=E6,Ag.UseBattery=P6,Ag.UseBrowserLocation=_6,Ag.UseClipboard=q6,Ag.UseColorMode=s8,Ag.UseDark=o8,Ag.UseDeviceMotion=a8,Ag.UseDeviceOrientation=d8,Ag.UseDevicePixelRatio=c8,Ag.UseDevicesList=m8,Ag.UseDocumentVisibility=r8,Ag.UseDraggable=Z8,Ag.UseElementBounding=b8,Ag.UseElementSize=h8,Ag.UseElementVisibility=W8,Ag.UseEyeDropper=p8,Ag.UseFullscreen=Y8,Ag.UseGeolocation=y8,Ag.UseIdle=N8,Ag.UseImage=M8,Ag.UseMouse=S8,Ag.UseMouseInElement=D8,Ag.UseMousePressed=k8,Ag.UseNetwork=F8,Ag.UseNow=K8,Ag.UseObjectUrl=z8,Ag.UseOffsetPagination=J8,Ag.UseOnline=x8,Ag.UsePageLeave=T8,Ag.UsePointer=L8,Ag.UsePointerLock=v8,Ag.UsePreferredColorScheme=j8,Ag.UsePreferredContrast=Q8,Ag.UsePreferredDark=O8,Ag.UsePreferredLanguages=U8,Ag.UsePreferredReducedMotion=E8,Ag.UseScreenSafeArea=$8,Ag.UseTimeAgo=i_,Ag.UseTimestamp=A_,Ag.UseVirtualList=n_,Ag.UseWindowFocus=l_,Ag.UseWindowSize=s_,Ag.UserMenu=fX,Ag.VOnClickOutside=To,Ag.VOnLongPress=Y3,Ag.VideoExtensionsEnum=ru,Ag.VideoPreview=Su,Ag.VueToolsCore=T6,Ag.arrow=ULg,Ag.autoPlacement=sk,Ag.autoUpdate=nk,Ag.computePosition=ok,Ag.default=WtI,Ag.detectOverflow=zLg,Ag.flip=xLg,Ag.getFirstTime=rk,Ag.getLastTime=XW,Ag.getOverflowAncestors=vr,Ag.hide=LLg,Ag.inline=jLg,Ag.limitShift=QLg,Ag.offset=lk,Ag.platform=ik,Ag.shift=JLg,Ag.size=TLg,Ag.useFloating=ck,Ag.useSearch=Zk,Ag.vElementHover=u8,Ag.vElementSize=w8,Ag.vElementVisibility=B8,Ag.vInfiniteScroll=H8,Ag.vIntersectionObserver=f8,Ag.vOnClickOutside=To,Ag.vOnKeyStroke=j6,Ag.vOnLongPress=Y3,Ag.vResizeObserver=P8,Ag.vScroll=g_,Ag.vScrollLock=t_,Ag.vuePluginRemoveTestid=o9,Object.defineProperties(Ag,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1772
+ `);if(tg===-1)return null;const ug=L.slice(tg+1),Ug=ug.match(P);return Ug?{index:tg+1,text:ug,data:{match:Ug}}:null},is=({listTypeName:L,find:P,getAttributes:tg})=>new rh({find:P,handler:({state:ug,range:Ug,match:mI})=>{var ab,QY;const Oi=ug.schema.nodes[L];if(!Oi)return null;const pd=Ug.from,Gn=pd-1;if(((ab=ug.doc.resolve(pd).nodeBefore)==null?void 0:ab.type.name)!=="hardBreak")return null;const wn=(tg==null?void 0:tg((QY=mI.data)==null?void 0:QY.match))??{};let ze=ug.tr.delete(Ug.from,Ug.to);ze=ze.delete(Gn,Gn+1);try{ze=ze.split(Gn)}catch{return null}const R2=Math.min(Gn+2,ze.doc.content.size),M2=ze.doc.resolve(R2).blockRange(),jY=M2&&jB(M2,Oi,wn);if(!jY)return null;ze=ze.wrap(M2,jY);const G9=Math.min(Gn+4,ze.doc.content.size);ze=ze.setSelection(sI.near(ze.doc.resolve(G9)))}}),gg=Ie.create({name:"contentEditorListInputRules",addInputRules(){const L=this.editor.schema.nodes.bulletList;return L?[Nc({find:Xo,type:L}),is({listTypeName:"bulletList",find:P=>ib(P,Ro)}),is({listTypeName:"orderedList",find:P=>ib(P,hn),getAttributes:P=>({start:Number(P[1])})})]:[]}}),j=gqg({extensions:[YgI.configure({link:!1,heading:!1,blockquote:!1,codeBlock:!1}),e$g.configure({openOnClick:!1,HTMLAttributes:{class:"link"}}),ygI.configure({placeholder:"Начните печатать...",emptyEditorClass:"is-editor-empty"}),Vo,gg],content:t.value,editorProps:{handlePaste(L,P){const tg=P.clipboardData;return tg&&tg.files.length>0&&e.activeAttachFile?(P.preventDefault(),P.stopPropagation(),Qt||(Qt=!0,$(tg.files,!0),setTimeout(()=>{Qt=!1},200)),!0):!1}},onUpdate:({editor:L})=>{t.value=L.getHTML();const P=e.activeSelectUser?st("@"):null,tg=e.activeSelectSlash?st("/"):null;P?(Y.value!==P.query&&(R.value=0),Y.value=P.query,n("mention-change",P.query),X.value=null,K.value=null,n("slash-change",null)):tg?(X.value!==tg.query&&(D.value=0),X.value=tg.query,n("slash-change",tg.query),Y.value=null,N.value=null,n("mention-change",null)):(Y.value=null,N.value=null,n("mention-change",null),X.value=null,K.value=null,n("slash-change",null))},parseOptions:{preserveWhitespace:!0}});l.watch(t,L=>{j!=null&&j.value&&L!==j.value.getHTML()&&j.value.commands.setContent(L??"",{parseOptions:{preserveWhitespace:!0}})}),l.watch(cg,L=>{if(!L.length){R.value=0,D.value=0,m.value={};return}jI.value>=L.length&&ji(L.length-1),q.value&&l.nextTick(()=>{QC(),VA()})}),l.watch([R,D],()=>{q.value&&l.nextTick(()=>{QC(),VA()})}),l.watch(q,L=>{if(!L){R.value=0,D.value=0,m.value={};return}T.value==="slash"?K.value=null:N.value=null,l.nextTick(()=>{QC(),VA()})}),l.watch(()=>u.value,()=>{q.value&&l.nextTick(()=>QC())}),l.watch(Z,L=>{document.body.style.overflow=L?"hidden":""});const ag=L=>{j!=null&&j.value&&j.value.chain().focus().insertContent(L.i).run()},yg=async(L=!1,P)=>{if(!(j!=null&&j.value))return;const tg=document.createElement("input");tg.type="file",P?(P==="video"?tg.accept="video/*":P==="image"?tg.accept="image/*":tg.accept="image/*,video/*",tg.capture="environment",tg.multiple=!1):(tg.multiple=!0,L&&(tg.accept="image/*,video/*")),tg.onchange=()=>{if(tg!=null&&tg.files){if(Qi()){Vt(tg.files,L||!!P);return}$(tg.files,L)}},tg.click()},$g=L=>{console.warn(`${ya} fileDropped event received`,L.files.map(P=>Sg(P))),$(L.files,L.onlyMedia)},bI=()=>{j!=null&&j.value&&(n("unmount-send",{content:j.value.getHTML(),files:h.value.length?pC(h.value):void 0,mediaFiles:G.value.length?pC(G.value):void 0}),u.value=!1,eg(),Bd(),j.value.chain().focus())},XI=()=>{if(j!=null&&j.value){if(k.value){bI();return}n("unmount-send",{content:j.value.getHTML()}),j.value.chain().focus()}},PI=(L,P)=>{if(!(j!=null&&j.value))return;const tg=st("@");tg?j.value.chain().focus().insertContentAt({from:tg.matchStart,to:j.value.state.selection.$from.pos},{type:"spanNode",attrs:{content:L,class:"link",...P}}).run():j.value.chain().focus().insertContent({type:"spanNode",attrs:{content:L,class:"link",...P}}).run()},cC=(L,P)=>{if(!(j!=null&&j.value))return;const tg=st(L);if(tg){j.value.chain().focus().insertContentAt({from:tg.matchStart,to:j.value.state.selection.$from.pos},P).run();return}j.value.chain().focus().insertContent(P).run()},Ke=()=>{Y.value=null,N.value=null,R.value=0,n("mention-change",null)},Ar=()=>{X.value=null,K.value=null,D.value=0,n("slash-change",null)},nr=L=>{var ug,Ug,mI;const P=((ug=e.mentionConfig)==null?void 0:ug.getInsertLabel)??e.mentionInsertLabel;if(!P)return;const tg=P(L);tg&&(PI(tg,(mI=((Ug=e.mentionConfig)==null?void 0:Ug.getInsertAttrs)??e.mentionInsertAttrs)==null?void 0:mI(L)),Ke())},TY=L=>{var ug;const P=((ug=e.slashConfig)==null?void 0:ug.getInsertLabel)??e.slashInsertLabel;if(!P)return;const tg=P(L);tg&&(cC("/",tg),Ar())},Ab=L=>{if(T.value==="slash"){TY(L);return}nr(L)},LY=()=>{if(!(j!=null&&j.value))return;const L=st("@");L?j.value.chain().focus().deleteRange({from:L.matchStart,to:j.value.state.selection.$from.pos}).run():j.value.chain().focus().insertContent("@").run()},N2=()=>{if(!(j!=null&&j.value))return;const L=st("/");L?j.value.chain().focus().deleteRange({from:L.matchStart,to:j.value.state.selection.$from.pos}).run():j.value.chain().focus().insertContent("/").run()},nb=()=>{j!=null&&j.value&&j.value.chain().focus()},V2=(L,P=300,tg=260)=>{if(!L)return;const ug=L.getBoundingClientRect(),Ug=window.innerWidth,mI=window.innerHeight;A.value.vertical=ug.bottom+tg>mI?"top":"bottom",A.value.horizontal=ug.left+P>Ug?"right":"left"},X2=L=>{if(i.value=!i.value,i.value){const P=L.currentTarget;l.nextTick(()=>{V2(P)})}},Bd=()=>{i.value=!1},lr=()=>{const L=document.querySelector(".toolbar-button.smile-button");i.value&&L&&V2(L),q.value&&QC()},lb=()=>{if(!j.value)return null;const{selection:L,doc:P}=j.value.state;if(!L.empty)return null;const{$from:tg}=L;let ug=-1,Ug=-1;for(let wn=tg.depth;wn>0;wn-=1){const ze=tg.node(wn);if(ug===-1&&ze.type.name==="listItem"&&(ug=wn),ze.type.name==="orderedList"){Ug=wn;break}}if(ug===-1||Ug===-1)return null;const mI=tg.node(Ug),Oi=tg.node(ug),pd=tg.index(Ug),Gn=tg.after(Ug),Yd=tg.parent.isTextblock&&tg.parentOffset===tg.parent.content.size&&tg.index(ug)===Oi.childCount-1;return{cursorPos:tg.pos,docSize:P.content.size,isLastItem:pd===mI.childCount-1,isAtEndOfItem:Yd,orderedListAfter:Gn}},h9=()=>{if(!j.value)return;const L=lb();if(!L)return;const{state:P,view:tg}=j.value,ug=L.orderedListAfter,Ug=P.doc.resolve(ug).nodeAfter;let mI=P.tr;if(!Ug||Ug.type.name!=="paragraph"){const Oi=P.schema.nodes.paragraph.create();mI=mI.insert(ug,Oi)}mI=mI.setSelection(sI.near(mI.doc.resolve(ug+1))),tg.dispatch(mI.scrollIntoView()),tg.focus()},vY=()=>{var L,P;return!!((L=j.value)!=null&&L.isActive("orderedList")||(P=j.value)!=null&&P.isActive("bulletList"))},sb=L=>{var P;if(!(window.innerWidth<=480)){if(L.key!=="ArrowDown"&&(at=null),q.value){if(L.key==="Escape"){L.preventDefault(),L.stopPropagation(),T.value==="slash"?K.value=X.value:N.value=Y.value;return}if(L.key==="Enter"){L.preventDefault(),L.stopPropagation(),jI.value>=0&&jI.value<cg.value.length&&Ab(cg.value[jI.value]);return}if(cg.value.length&&(L.key==="ArrowDown"||L.key==="ArrowUp")){L.preventDefault(),L.stopPropagation();const tg=L.key==="ArrowDown"?1:-1;ji((jI.value+tg+cg.value.length)%cg.value.length);return}}if(L.key==="Enter"&&L.shiftKey&&!(L.ctrlKey||L.metaKey)&&vY()){L.preventDefault(),L.stopPropagation(),at=null,(P=j.value)==null||P.commands.splitListItem("listItem");return}if(L.key==="ArrowDown"){const tg=lb();if(tg!=null&&tg.isLastItem&&tg.isAtEndOfItem&&tg.orderedListAfter>=tg.docSize){L.preventDefault(),L.stopPropagation();const ug=Date.now();at&&at.pos===tg.cursorPos&&ug-at.timestamp<1200?(at=null,h9()):at={pos:tg.cursorPos,timestamp:ug};return}at=null}!e.disableSendOnEnter&&L.key==="Enter"&&L.code&&!(L.shiftKey||L.ctrlKey||L.metaKey)&&(L.preventDefault(),L.stopPropagation(),XI())}},ob=L=>{ot()&&L.preventDefault()};return l.onMounted(()=>{var L,P;(P=(L=j==null?void 0:j.value)==null?void 0:L.view)!=null&&P.dom&&(s.value=j.value.view.dom,window.addEventListener("resize",lr),window.addEventListener("scroll",lr,!0),s.value.addEventListener("keydown",sb,{capture:!0}),s.value.addEventListener("contextmenu",ob))}),l.onBeforeUnmount(()=>{var L;document.body.style.overflow="",(L=j==null?void 0:j.value)==null||L.destroy(),s.value&&(s.value.removeEventListener("keydown",sb,{capture:!0}),s.value.removeEventListener("contextmenu",ob)),B.value&&URL.revokeObjectURL(B.value),p.value.forEach(P=>URL.revokeObjectURL(P)),window.removeEventListener("resize",lr),window.removeEventListener("scroll",lr,!0)}),g({addSpanLink:PI,focus:nb,editor:j,emitAttachFiles:Vt,queueAttachFiles:$}),(L,P)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{ref_key:"mainMentionAnchorRef",ref:o,class:l.normalizeClass(["editor-component",{"editor-component--mentions-open":q.value}])},[L.$slots.action&&!u.value?(l.openBlock(),l.createElementBlock("div",TeI,[l.renderSlot(L.$slots,"action")])):l.createCommentVNode("",!0),e.activeAttachFile?(l.openBlock(),l.createBlock(tZ,{key:1,isWCUse:"",options:Fe.value,translateY:"calc(-100% - 47px)",class:"mobile-item attach-file-popover"},{trigger:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"toolbar-button attach-file-button mobile-buttons"},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).paperClip},null,8,["name"])]),_:1},8,["type","size"])]),_:1},8,["options"])):l.createCommentVNode("",!0),u.value?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref(ax),{key:2,class:"editor-content",editor:l.unref(j)},null,8,["editor"])),u.value?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(beI,{key:3,editor:l.unref(j)||null,"read-clipboard-text":e.readClipboardText},null,8,["editor","read-clipboard-text"])),e.activeAttachFile&&!u.value?(l.openBlock(),l.createBlock(eL,{key:4,onFilesDropped:$g})):l.createCommentVNode("",!0),u.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",LeI,[l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"toolbar-button mobile-buttons smile-button",onClick:l.withModifiers(X2,["stop"])},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).smile},null,8,["name"]),l.withDirectives(l.createElementVNode("div",{onClick:P[0]||(P[0]=l.withModifiers(()=>{},["stop"])),class:l.normalizeClass(ie.value)},[l.createVNode(l.unref(n9),{native:!0,onSelect:ag})],2),[[l.vShow,i.value]])]),_:1},8,["type","size"]),l.withDirectives(l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"toolbar-button right mobile-buttons",onClick:XI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).planeRightFill,width:22,height:22,class:"content-editor__save"},null,8,["name"])]),_:1},8,["type","size"]),[[l.vShow,!z.value]])])),u.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",veI,[e.activeAttachFile?(l.openBlock(),l.createBlock(tZ,{key:0,isWCUse:"",options:QI.value,translateY:"calc(-100% - 47px)"},{trigger:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"toolbar-button attach-file-button"},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).paperClip,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])]),_:1},8,["options"])):l.createCommentVNode("",!0),l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"toolbar-button smile-button",onClick:l.withModifiers(X2,["stop"])},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).smile,width:16,height:16},null,8,["name"]),l.withDirectives(l.createElementVNode("div",{onClick:P[1]||(P[1]=l.withModifiers(()=>{},["stop"])),class:l.normalizeClass(ie.value)},[l.withDirectives(l.createVNode(l.unref(n9),{native:!0,onSelect:ag},null,512),[[l.unref(To),Bd,void 0,{bubble:!0}]])],2),[[l.vShow,i.value]])]),_:1},8,["type","size"]),e.activeSelectUser?(l.openBlock(),l.createBlock(nI,{key:1,type:l.unref(II).ghost,class:"toolbar-button",size:l.unref(yI).small,onClick:LY},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).atSign,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])):l.createCommentVNode("",!0),e.activeSelectSlash?(l.openBlock(),l.createBlock(nI,{key:2,type:l.unref(II).ghost,class:"toolbar-button",size:l.unref(yI).small,onClick:N2},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).slash,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])):l.createCommentVNode("",!0),l.createCommentVNode("",!0),l.createVNode(nI,{disabled:z.value,class:"toolbar-button right",size:l.unref(yI).small,onClick:XI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).planeRight,color:l.unref(Jh).white,width:16,height:16},null,8,["name","color"])]),_:1},8,["disabled","size"])])),u.value?(l.openBlock(),l.createBlock(mB,{key:7,open:u.value,onClose:mg,"disable-close-on-outside-click":"",position:"center",width:jC.value?"min(920px, calc(100vw - 32px))":"min(430px, calc(100vw - 32px))",height:"auto",class:l.normalizeClass(["attach-modal-container",{"attach-modal-container--image-editor":jC.value}])},{default:l.withCtx(()=>[l.createElementVNode("div",jeI,[l.createVNode(eL,{onFilesDropped:$g}),jC.value?(l.openBlock(),l.createBlock(xeI,{key:jC.value.id,file:jC.value.file,onApply:tC,onClose:kI},null,8,["file"])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",QeI,[l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"attach-modal__close",onClick:mg},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).crossLarge},null,8,["name"])]),_:1},8,["type","size"])],512),[[l.vShow,!jC.value]]),Ze.value.length>0||lt.value.length>0?l.withDirectives((l.openBlock(),l.createElementBlock("div",OeI,[l.createElementVNode("div",UeI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Ze.value,(tg,ug)=>(l.openBlock(),l.createElementBlock("div",{key:`media-chunk-${ug}`,class:l.normalizeClass(["attach-modal__media-grid",`attach-modal__media-grid-${tg.length}-item`])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(tg,Ug=>(l.openBlock(),l.createElementBlock("div",{key:Ug.id,class:l.normalizeClass(["attach-modal__media-tile",{"attach-modal__media-tile--editable":Ug.canEdit}])},[Ug.isVideo?(l.openBlock(),l.createElementBlock("video",{key:0,draggable:"false",src:Ug.url,muted:"",playsinline:""},null,8,EeI)):(l.openBlock(),l.createElementBlock("img",{key:1,draggable:"false",src:Ug.url,alt:Ug.file.name},null,8,PeI)),Ug.canEdit?(l.openBlock(),l.createBlock(nI,{key:2,type:l.unref(II).ghost,size:l.unref(yI).small,class:"attach-modal__media-tile-edit",onClick:l.withModifiers(mI=>iI(Ug),["stop"])},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).paint,width:16,height:16},null,8,["name"])]),_:1},8,["type","size","onClick"])):l.createCommentVNode("",!0),l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"attach-modal__media-tile-remove",onClick:l.withModifiers(mI=>Jg("media",Ug.index),["stop"])},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).trash,width:16,height:16},null,8,["name"])]),_:1},8,["type","size","onClick"])],2))),128))],2))),128)),lt.value.length?(l.openBlock(),l.createElementBlock("div",_eI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(lt.value,tg=>(l.openBlock(),l.createElementBlock("div",{key:tg.id,class:"attach-modal__attachment"},[l.createElementVNode("div",qeI,[l.createVNode(Yg,{name:l.unref(rg).fileItem,width:18,height:18},null,8,["name"])]),l.createElementVNode("div",$eI,[l.createElementVNode("div",gtI,[l.createElementVNode("span",ItI,l.toDisplayString(OC(tg.file.name)),1),KC(tg.file.name)?(l.openBlock(),l.createElementBlock("span",CtI,l.toDisplayString(KC(tg.file.name)),1)):l.createCommentVNode("",!0)]),l.createElementVNode("div",etI,l.toDisplayString(dC(tg.file.size)),1)]),l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"attach-modal__attachment-remove",onClick:ug=>Jg(tg.kind,tg.index)},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).trash,width:24,height:24},null,8,["name"])]),_:1},8,["type","size","onClick"])]))),128))])):l.createCommentVNode("",!0)])],512)),[[l.vShow,!jC.value]]):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref_key:"modalMentionAnchorRef",ref:a,class:"attach-modal__editor"},[L.$slots.action?(l.openBlock(),l.createElementBlock("div",ttI,[l.renderSlot(L.$slots,"action")])):l.createCommentVNode("",!0),l.createVNode(l.unref(ax),{class:"editor-content",editor:l.unref(j)},null,8,["editor"]),l.createElementVNode("div",itI,[l.createElementVNode("div",AtI,[l.createVNode(tZ,{isWCUse:"",disabled:!e.activeAttachFile,options:QI.value,translateY:"calc(-100% - 47px)"},{trigger:l.withCtx(()=>[l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"toolbar-button attach-file-button",disabled:!e.activeAttachFile},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).paperClip,width:16,height:16},null,8,["name"])]),_:1},8,["type","size","disabled"])]),_:1},8,["disabled","options"]),l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(yI).small,class:"toolbar-button smile-button",onClick:l.withModifiers(X2,["stop"])},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).smile,width:16,height:16},null,8,["name"]),l.withDirectives(l.createElementVNode("div",{onClick:P[2]||(P[2]=l.withModifiers(()=>{},["stop"])),class:l.normalizeClass(ie.value)},[l.withDirectives(l.createVNode(l.unref(n9),{native:!0,onSelect:ag},null,512),[[l.unref(To),Bd,void 0,{bubble:!0}]])],2),[[l.vShow,i.value]])]),_:1},8,["type","size"]),e.activeSelectUser?(l.openBlock(),l.createBlock(nI,{key:0,type:l.unref(II).ghost,class:"toolbar-button",size:l.unref(yI).small,onClick:LY},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).atSign,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])):l.createCommentVNode("",!0),e.activeSelectSlash?(l.openBlock(),l.createBlock(nI,{key:1,type:l.unref(II).ghost,class:"toolbar-button",size:l.unref(yI).small,onClick:N2},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).slash,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])):l.createCommentVNode("",!0)]),l.createVNode(nI,{disabled:z.value,class:"toolbar-button right",size:l.unref(yI).small,onClick:bI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(rg).planeRight,color:l.unref(Jh).white,width:16,height:16},null,8,["name","color"])]),_:1},8,["disabled","size"])])],512),[[l.vShow,!jC.value]])])]),_:3},8,["open","width","class"])):l.createCommentVNode("",!0),l.createElementVNode("input",{ref:"pendingFileInputRef",type:"file",multiple:"",class:"attach-hidden-input",onChange:P[3]||(P[3]=tg=>cI(tg,!1))},null,544),l.createElementVNode("input",{ref:"pendingMediaInputRef",type:"file",accept:"image/*,video/*",multiple:"",class:"attach-hidden-input",onChange:P[4]||(P[4]=tg=>cI(tg,!0))},null,544)],2),(l.openBlock(),l.createBlock(l.Teleport,{to:Zn.value},[q.value&&cg.value.length?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"mentionListRef",ref:d,class:"editor-component__mentions-portal"},[l.createVNode(_CI,{items:cg.value,"selected-index":jI.value,variant:T.value||"mention","is-fixed":"","position-style":m.value,"get-key":Be,"get-label":SI,"get-subtitle":DI,"get-avatar-url":At,"get-avatar-default-image":vC,"get-avatar-initials":NA,"get-is-online":nt,onSelect:Ab},null,8,["items","selected-index","variant","position-style"])],512)):l.createCommentVNode("",!0)],8,["to"])),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(l.Transition,{name:"camera-selection-sheet"},{default:l.withCtx(()=>[Z.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"camera-selection-sheet",onClick:l.withModifiers(bn,["self"])},[l.createElementVNode("div",ntI,[l.createElementVNode("div",ltI,[l.createVNode(nI,{type:l.unref(II).primary,onClick:P[5]||(P[5]=tg=>RA("image")),class:"camera-selection-item"},{default:l.withCtx(()=>[...P[7]||(P[7]=[l.createTextVNode(" Сделать фото ",-1)])]),_:1},8,["type"]),l.createVNode(nI,{type:l.unref(II).secondary,onClick:P[6]||(P[6]=tg=>RA("video")),class:"camera-selection-item"},{default:l.withCtx(()=>[...P[8]||(P[8]=[l.createTextVNode(" Записать видео ",-1)])]),_:1},8,["type"])])])])):l.createCommentVNode("",!0)]),_:1})]))],64))}}),otI=["data-testid"],atI=["data-testid"],Na="[Cropper][BaseCropper]",dtI=Qg(l.defineComponent({name:"BaseCropper",__name:"BaseCropper",props:{image:{},max:{default:3},min:{default:1},step:{default:.5}},emits:["unmount-scale"],setup(C,{expose:g,emit:I}){const e=C,t=I,i=l.useTemplateRef("canvas"),A=l.useTemplateRef("container"),n=l.reactive({ctx:null,image:null,id:l.useId(),scale:1,position:{x:0,y:0},isDragging:!1,startX:0,startY:0,minScale:e.min,maxScale:e.max,stepScale:e.step});l.watch(()=>e.image,()=>{e.image&&u(e.image)});const s=()=>{i.value&&(n.ctx=i.value.getContext("2d")),o(),window.addEventListener("resize",o)},o=()=>{if(A.value){const{width:D,height:k}=A.value.getBoundingClientRect();i.value&&(i.value.width=D,i.value.height=k),n.image&&a()}},a=()=>{if(n.image){const D=n.ctx,k=i.value;D&&k&&(D.clearRect(0,0,k.width,k.height),D.drawImage(n.image,n.position.x,n.position.y,n.image.width*n.scale,n.image.height*n.scale))}},d=D=>new Promise(k=>setTimeout(k,D)),m=D=>["image/png","image/jpeg"].includes(D.type.toLowerCase()),Z=D=>({fileName:D.name,fileType:D.type,fileSize:D.size,lastModified:D.lastModified,isScreenshotLike:m(D)}),u=D=>{const k=m(D)?6:3;let z=0;console.warn(`${Na} loadImage start`,{...Z(D),maxRetries:k});const v=new FileReader;v.onload=async O=>{var Cg;console.warn(`${Na} FileReader load success`,{...Z(D),attempt:z+1}),typeof((Cg=O.target)==null?void 0:Cg.result)=="string"&&(n.image=new Image,n.image.src=O.target.result,n.image.onload=async()=>{if(console.warn(`${Na} image decode success`,Z(D)),await l.nextTick(),i.value&&n.image){const U=i.value.width,T=i.value.height,q=n.image.width/n.image.height,cg=U/T;q>cg?(n.image.width=U,n.image.height=U/q):(n.image.height=T,n.image.width=T*q),o(),n.position.x=(i.value.width-n.image.width)/2,n.position.y=(i.value.height-n.image.height)/2,a()}})},v.onerror=async()=>{if(console.warn(`${Na} FileReader load error`,{...Z(D),attempt:z+1,maxRetries:k,error:v.error}),z>=k){try{console.warn(`${Na} fallback to detached file`,Z(D));const Cg=await D.arrayBuffer(),U=new File([Cg],D.name,{type:D.type||"application/octet-stream",lastModified:D.lastModified});z+=1,console.warn(`${Na} retry readAsDataURL with detached file`,{...Z(U),attempt:z+1}),v.readAsDataURL(U)}catch(Cg){console.error("Failed to load cropper image",{fileName:D.name,error:Cg})}return}z+=1;const O=(m(D)?180:120)*z;console.warn(`${Na} schedule FileReader retry`,{...Z(D),attempt:z+1,retryDelay:O}),await d(O),v.readAsDataURL(D)},console.warn(`${Na} initial readAsDataURL`,Z(D)),v.readAsDataURL(D)},h=D=>{n.isDragging=!0,n.startX=D.clientX-n.position.x,n.startY=D.clientY-n.position.y,window.addEventListener("mousemove",G),window.addEventListener("mouseup",w)},G=D=>{if(!n.isDragging&&!i.value)return;let k=D.clientX-n.startX,z=D.clientY-n.startY;if(i.value&&n.image){const v=i.value.width-n.image.width*n.scale;n.image.width*n.scale<i.value.width?k=Math.min(Math.max(k,0),i.value.width-n.image.width*n.scale):(k>0&&(k=0),k<v&&(k=v));const O=i.value.height-n.image.height*n.scale;n.image.height*n.scale<i.value.height?z=Math.min(Math.max(z,0),i.value.height-n.image.height*n.scale):(z>0&&(z=0),z<O&&(z=O)),n.position.x=k,n.position.y=z}a()},w=()=>{n.isDragging=!1,window.removeEventListener("mousemove",G),window.removeEventListener("mouseup",w)},B=D=>Math.max(n.minScale,Math.min(D,n.maxScale)),p=D=>{if(i.value){const k=i.value.width/2,z=i.value.height/2;n.position.x=k-(k-n.position.x)*D,n.position.y=z-(z-n.position.y)*D}},Y=D=>{const k=n.scale,z=n.scale+D.deltaY*-.001;if(k===B(z))return;n.scale=B(z);const v=z/k;p(v),t("unmount-scale",n.scale),a()};return g({cropImage:()=>{if(A.value){const{width:D,height:k}=A.value.getBoundingClientRect(),z=document.createElement("canvas");z.width=D,z.height=k;const v=z.getContext("2d");v&&n.image&&v.drawImage(n.image,n.position.x,n.position.y,n.image.width*n.scale,n.image.height*n.scale);const O=z.toDataURL("image/png"),Cg=atob(O.split(",")[1]),U=new ArrayBuffer(Cg.length),T=new Uint8Array(U);for(let cg=0;cg<Cg.length;cg++)T[cg]=Cg.charCodeAt(cg);const q=new Blob([T],{type:"image/png"});return e.image?new File([q],e.image.name,{type:"image/png"}):null}return null},scalePlus:()=>{const D=n.scale+n.stepScale;n.scale=B(D),a()},scaleMinus:()=>{const D=n.scale-n.stepScale;n.scale=B(D),a()},setScale:D=>{const k=n.scale,v=D/k;n.scale=B(D),p(v),a()},startMove:h,scaleImage:Y}),l.onMounted(()=>{s(),e.image&&u(e.image)}),(D,k)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"container",ref:A,class:"base-cropper","data-testid":`BaseCropper-${n.id}`},[l.createElementVNode("canvas",{ref_key:"canvas",ref:i,class:"base-cropper__canvas","data-testid":`BaseCropper-${n.id}-canvas`,onMousedown:h,onWheel:l.withModifiers(Y,["prevent"])},null,40,atI)],8,otI))}}),[["__scopeId","data-v-8390bd52"]]),ctI=C=>{const g=l.ref(C==null?void 0:C.defaultValue),I=C==null?void 0:C.min,e=C==null?void 0:C.max,t=C==null?void 0:C.step;l.watch(g,A=>{g.value=i(A)});const i=A=>Math.max(I,Math.min(A,e));return{value:g,min:I,max:e,step:t,getCorrectValue:i}},mtI=(C,g)=>new File([C],g,{type:C.type}),rtI=["data-testid"],ZtI=["data-testid"],btI=["data-testid"],utI=["data-testid"],htI=["data-testid"],GtI=["data-testid"],s9=Qg(l.defineComponent({name:"ModalCroppedAvatar",__name:"ModalCroppedAvatar",props:{image:{},open:{type:Boolean},position:{default:"center"},width:{default:"650px"},height:{default:"auto"},disableCloseOnOutsideClick:{type:Boolean},isResetFocus:{type:Boolean},dataTestid:{}},emits:["unmount-close","unmount-save"],setup(C,{emit:g}){const I=C,e=g,{max:t,min:i,step:A,value:n}=ctI({defaultValue:1,max:3,min:1,step:.1}),s=l.useId(),o=l.useTemplateRef("cropper"),a=l.reactive({openModal:!1});l.watch(n,()=>{o.value&&o.value.setScale(n.value)});const d=()=>{a.openModal=!1,e("unmount-close")},m=G=>{n.value=G},Z=()=>{n.value=n.value-A},u=()=>{n.value=n.value+A},h=()=>{if(o.value){const G=o.value.cropImage();if(G){const w=G.name,B=mtI(G,w);e("unmount-save",B),d()}}};return l.onUnmounted(()=>{d()}),l.onMounted(()=>{I.open===void 0&&(a.openModal=I.open)}),(G,w)=>(l.openBlock(),l.createBlock(fu,l.mergeProps(I,{class:"modal-cropped-avatar","data-testid":`ModalCroppedAvatar-${l.unref(s)}`,onClose:d}),{default:l.withCtx(()=>[l.createElementVNode("div",{class:"modal-cropped-avatar__content","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content`},[l.createElementVNode("div",{class:"modal-cropped-avatar__title","data-testid":`ModalCroppedAvatar-${l.unref(s)}-title`}," Изменение фото профиля ",8,ZtI),l.createElementVNode("div",{class:"modal-cropped-avatar__main","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-main`},[l.createElementVNode("div",{class:"modal-cropped-avatar__cropped","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-main-cropped`},[l.createVNode(dtI,{ref_key:"cropper",ref:o,image:C.image,max:l.unref(t),min:l.unref(i),step:l.unref(A),class:"modal-cropped-avatar__cropper",onUnmountScale:m},null,8,["image","max","min","step"]),l.createElementVNode("div",{class:"modal-cropped-avatar__tools","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-tools`},[l.createVNode(Yg,{name:l.unref(rg).minus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-iconMinus`,onClick:Z},null,8,["name","data-testid"]),l.createVNode(HB,{max:l.unref(t),min:l.unref(i),step:l.unref(A),modelValue:l.unref(n),"onUpdate:modelValue":w[0]||(w[0]=B=>l.isRef(n)?n.value=B:null),"data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-Range`},null,8,["max","min","step","modelValue","data-testid"]),l.createVNode(Yg,{name:l.unref(rg).plus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-IconPlus`,onClick:u},null,8,["name","data-testid"])],8,htI)],8,utI),l.createElementVNode("div",{class:"modal-cropped-avatar__buttons","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-buttons`},[l.createVNode(nI,{type:l.unref(II).outline,class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-ButtonCancel`,onClick:d},{default:l.withCtx(()=>[...w[1]||(w[1]=[l.createTextVNode(" Отменить ",-1)])]),_:1},8,["type","data-testid"]),l.createVNode(nI,{class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-buttonSave`,onClick:h},{default:l.withCtx(()=>[...w[2]||(w[2]=[l.createTextVNode(" Сохранить ",-1)])]),_:1},8,["data-testid"])],8,GtI)],8,btI)],8,rtI)]),_:1},16,["data-testid"]))}}),[["__scopeId","data-v-c1f106b2"]]),o9={install(C,g={enabled:!0}){if(!(g.enabled??!1)){console.info("[removeDataTestidPlugin] Plugin is disabled.");return}const e=t=>{t.removeAttribute("data-testid"),Array.from(t.children).forEach(e)};C.mixin({mounted(){e(this.$el)}})}},wtI=["src"],a9=l.defineComponent({name:"ImagePreview",__name:"ImagePreview",props:{src:{}},emits:["error"],setup(C,{expose:g,emit:I}){const e=C,t=I,i=l.reactive({isError:!1,rotate:0});l.watch(()=>e.src,()=>{i.isError=!1,i.rotate=0,l.nextTick(()=>{n()})});const A=l.ref(null),n=async()=>{try{if(!A.value||!e.src)return;const o=new Image;o.src=e.src,o.addEventListener("load",()=>{var h;if(!A.value)return;const a=(h=A.value)==null?void 0:h.getContext("2d");if(!a)return;const d=o.width,m=o.height;let Z=d,u=m;i.rotate%180!==0&&(Z=m,u=d),A.value.width=Z,A.value.height=u,a.save(),a.clearRect(0,0,Z,u),a.translate(Z/2,u/2),a.rotate(i.rotate*Math.PI/180),a.drawImage(o,-d/2,-m/2,d,m),a.restore()}),o.addEventListener("error",a=>{i.isError=!0,t("error",a)})}catch{t("error",new Event("error")),i.isError=!0}},s=async o=>{const a=Math.round(o/90)*90;i.rotate+=a,l.nextTick(()=>{n()})};return l.onMounted(()=>{l.nextTick(()=>{n()})}),g({rotateImage:s}),(o,a)=>i.isError?(l.openBlock(),l.createElementBlock("img",{key:1,src:l.unref(rs)},null,8,wtI)):(l.openBlock(),l.createElementBlock("canvas",{key:0,ref_key:"canvasRef",ref:A,class:"image-preview"},null,512))}}),iL={Accordion:GV,Badges:Mt,BreadCrumbs:wy,Dialog:hW,DragAndDrop:wV,Card:WV,Combobox:YV,Calendar:hV,Button:nI,Switch:Nw,SelectList:Mr,Dropdown:iN,Textarea:SX,Filter:BV,Icon:Yg,Input:HW,InputNumber:ou,Picture:kX,PushNotification:FX,Scroll:XX,Search:du,Modal:fu,Slider:VX,Checkbox:RX,Toggle:wB,UserMenu:fX,CopyIcon:KX,Loader:ku,FilterTag:zX,CircularProgress:JX,Popover:tZ,Table:xX,TableNew:jX,TableSimple:OX,TableRow:MB,TableRowNew:QX,TableTd:Lu,TableTh:iZ,SectionTableRow:TX,HeadTableRow:xu,HeadTableRowNew:fB,ScrollWrapper:Tu,ScrollWrapperNew:D7g,Radio:LX,Tooltip:rt,BaseFilter:vX,Range:HB,Tabs:UX,ContentEditor:l9,ModalCroppedAvatar:s9,Avatar:Ju,TimePicker:GW,SliderModal:hB,PdfPreview:Gs,ImagePreview:a9,VideoPreview:Su,Skeleton:RB},AL=Object.freeze(Object.defineProperty({__proto__:null,Accordion:GV,Avatar:Ju,Badges:Mt,BadgesTypeEnum:UI,BaseFilter:vX,BreadCrumbs:wy,Button:nI,ButtonTypeEnum:II,Calendar:hV,Card:WV,Checkbox:RX,CheckboxCircularEnum:NB,CheckboxSizeEnum:yB,CircularProgress:JX,ColorsEnum:Jh,Combobox:YV,ContentEditor:l9,CopyIcon:KX,Dialog:hW,DragAndDrop:wV,Dropdown:iN,Filter:BV,FilterTag:zX,HeadTableRow:xu,HeadTableRowNew:fB,Icon:Yg,IconNameEnum:rg,ImageExtensionsEnum:mu,ImagePreview:a9,Input:HW,InputNumber:ou,InputTypeEnum:pV,Loader:ku,MenuTypeEnum:ZC,MessageTypeEnum:XB,Modal:fu,ModalCroppedAvatar:s9,PdfPreview:Gs,Picture:kX,Popover:tZ,PushNotification:FX,Radio:LX,Range:HB,Scroll:XX,ScrollWrapper:Tu,Search:du,SectionTableRow:TX,SelectList:Mr,SizesEnum:yI,Skeleton:RB,Slider:VX,SliderModal:hB,Switch:Nw,Table:xX,TableNew:jX,TableRow:MB,TableRowNew:QX,TableSimple:OX,TableTd:Lu,TableTh:iZ,Tabs:UX,TextFieldEnum:MW,Textarea:SX,TextareaTypeEnum:VB,TimePicker:GW,Toggle:wB,Tooltip:rt,UserMenu:fX,VideoExtensionsEnum:ru,VideoPreview:Su,default:{install:C=>{Object.keys(iL).forEach(g=>{C.component("Y"+g,iL[g])})}},getFirstTime:rk,getLastTime:XW,vuePluginRemoveTestid:o9},Symbol.toStringTag,{value:"Module"})),WtI={install(C){for(const g in AL){const I=AL[g];C.use(I).use(o9,{enabled:!1})}}};Ag.Accordion=GV,Ag.Avatar=Ju,Ag.Badges=Mt,Ag.BadgesTypeEnum=UI,Ag.BaseFilter=vX,Ag.BreadCrumbs=wy,Ag.Button=nI,Ag.ButtonTypeEnum=II,Ag.Calendar=hV,Ag.Card=WV,Ag.Checkbox=RX,Ag.CheckboxCircularEnum=NB,Ag.CheckboxSizeEnum=yB,Ag.CircularProgress=JX,Ag.ColorsEnum=Jh,Ag.Combobox=YV,Ag.ContentEditor=l9,Ag.CopyIcon=KX,Ag.Dialog=hW,Ag.DragAndDrop=wV,Ag.Dropdown=iN,Ag.Filter=BV,Ag.FilterTag=zX,Ag.HeadTableRow=xu,Ag.HeadTableRowNew=fB,Ag.Icon=Yg,Ag.IconNameEnum=rg,Ag.ImageExtensionsEnum=mu,Ag.ImagePreview=a9,Ag.Input=HW,Ag.InputNumber=ou,Ag.InputTypeEnum=pV,Ag.Loader=ku,Ag.MenuTypeEnum=ZC,Ag.MessageTypeEnum=XB,Ag.Modal=fu,Ag.ModalCroppedAvatar=s9,Ag.OnClickOutside=L6,Ag.OnLongPress=U6,Ag.PdfPreview=Gs,Ag.Picture=kX,Ag.Popover=tZ,Ag.PushNotification=FX,Ag.Radio=LX,Ag.Range=HB,Ag.Scroll=XX,Ag.ScrollWrapper=Tu,Ag.Search=du,Ag.SectionTableRow=TX,Ag.SelectList=Mr,Ag.SizesEnum=yI,Ag.Skeleton=RB,Ag.Slider=VX,Ag.SliderModal=hB,Ag.Switch=Nw,Ag.Table=xX,Ag.TableNew=jX,Ag.TableRow=MB,Ag.TableRowNew=QX,Ag.TableSimple=OX,Ag.TableTd=Lu,Ag.TableTh=iZ,Ag.Tabs=UX,Ag.TextFieldEnum=MW,Ag.Textarea=SX,Ag.TextareaTypeEnum=VB,Ag.TimePicker=GW,Ag.Toggle=wB,Ag.Tooltip=rt,Ag.UseActiveElement=E6,Ag.UseBattery=P6,Ag.UseBrowserLocation=_6,Ag.UseClipboard=q6,Ag.UseColorMode=s8,Ag.UseDark=o8,Ag.UseDeviceMotion=a8,Ag.UseDeviceOrientation=d8,Ag.UseDevicePixelRatio=c8,Ag.UseDevicesList=m8,Ag.UseDocumentVisibility=r8,Ag.UseDraggable=Z8,Ag.UseElementBounding=b8,Ag.UseElementSize=h8,Ag.UseElementVisibility=W8,Ag.UseEyeDropper=p8,Ag.UseFullscreen=Y8,Ag.UseGeolocation=y8,Ag.UseIdle=N8,Ag.UseImage=M8,Ag.UseMouse=S8,Ag.UseMouseInElement=D8,Ag.UseMousePressed=k8,Ag.UseNetwork=F8,Ag.UseNow=K8,Ag.UseObjectUrl=z8,Ag.UseOffsetPagination=J8,Ag.UseOnline=x8,Ag.UsePageLeave=T8,Ag.UsePointer=L8,Ag.UsePointerLock=v8,Ag.UsePreferredColorScheme=j8,Ag.UsePreferredContrast=Q8,Ag.UsePreferredDark=O8,Ag.UsePreferredLanguages=U8,Ag.UsePreferredReducedMotion=E8,Ag.UseScreenSafeArea=$8,Ag.UseTimeAgo=i_,Ag.UseTimestamp=A_,Ag.UseVirtualList=n_,Ag.UseWindowFocus=l_,Ag.UseWindowSize=s_,Ag.UserMenu=fX,Ag.VOnClickOutside=To,Ag.VOnLongPress=Y3,Ag.VideoExtensionsEnum=ru,Ag.VideoPreview=Su,Ag.VueToolsCore=T6,Ag.arrow=ULg,Ag.autoPlacement=sk,Ag.autoUpdate=nk,Ag.computePosition=ok,Ag.default=WtI,Ag.detectOverflow=zLg,Ag.flip=xLg,Ag.getFirstTime=rk,Ag.getLastTime=XW,Ag.getOverflowAncestors=vr,Ag.hide=LLg,Ag.inline=jLg,Ag.limitShift=QLg,Ag.offset=lk,Ag.platform=ik,Ag.shift=JLg,Ag.size=TLg,Ag.useFloating=ck,Ag.useSearch=Zk,Ag.vElementHover=u8,Ag.vElementSize=w8,Ag.vElementVisibility=B8,Ag.vInfiniteScroll=H8,Ag.vIntersectionObserver=f8,Ag.vOnClickOutside=To,Ag.vOnKeyStroke=j6,Ag.vOnLongPress=Y3,Ag.vResizeObserver=P8,Ag.vScroll=g_,Ag.vScrollLock=t_,Ag.vuePluginRemoveTestid=o9,Object.defineProperties(Ag,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});