@pksep/yui 0.1.302 → 0.1.303
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sep-yui.mjs +11 -12
- package/dist/sep-yui.umd.cjs +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/sep-yui.umd.cjs
CHANGED
|
@@ -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:uO,usersGroup:LO,warehouse:DO,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:zO,writeDowns:JO,zoomMinus:KU,zoomPlus:zU},Symbol.toStringTag,{value:"Module"})),JU=["data-testid","fill","viewBox"],xU=["innerHTML"],TU=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,xU)],12,JU)}}}),vg=(C,g)=>{const I=C.__vccOpts||C;for(const[e,t]of g)I[e]=t;return I},Yg=vg(TU,[["__scopeId","data-v-ee4d5302"]]),LU=["data-testid"],vU=["data-testid"],jU=l.defineComponent({__name:"Badges",props:{text:{},type:{default:QI.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===QI.default,"blue-yui-kit":e.type===QI.blue,"light-blue-yui-kit":e.type===QI.lightBlue,"contrast-blue-yui-kit":e.type===QI.contrastBlue,"green-yui-kit":e.type===QI.green,"orange-yui-kit":e.type===QI.orange,"red-yui-kit":e.type===QI.red,"pink-yui-kit":e.type===QI.pink,"violet-yui-kit":e.type===QI.violet,"yellow-yui-kit":e.type===QI.yellow,"choosed-yui-kit":e.choosed||i.choosed,"disabled-yui-kit":e.type===QI.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,b)=>(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,vU),l.createVNode(Yg,{class:"close-icon",width:10,height:10,"data-testid":`${e.dataTestid}-Icon`,name:l.unref(mg).closeTag,onClick:d},null,8,["data-testid","name"])],10,LU))}}),Ht=vg(jU,[["__scopeId","data-v-cac27646"]]),QU=["data-testid"],OU=["data-testid"],UU=["data-testid"],EU=["data-testid"],PU=["data-testid"],_U=["data-testid"],qU=["title","onClick","data-testid"],$U=["data-testid"],g7=["onClick","data-testid"],I7=["data-testid"],Gy=25,wy=vg(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},b)=>{Z===d.path&&e("click",{title:d.title,path:d.path,inx:b+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,b)=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(i.value.crumbs),key:Z.path,"data-testid":`${I.dataTestid}-Crumbs${b}`},[a(b)?(l.openBlock(),l.createElementBlock("div",{key:0,"data-testid":`${I.dataTestid}-ShowSubList${b}`},[l.createElementVNode("span",{class:"bread-crumbs-yui-kit--closed",onClick:s,"data-testid":`${I.dataTestid}-Closed${b}`},"...",8,EU),l.createElementVNode("ul",{class:l.normalizeClass(A.value.crumbs),"data-testid":`${I.dataTestid}-Crumbs${b}`},[(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,qU)],10,_U))),128))],10,PU)],8,UU)):l.createCommentVNode("",!0),Z.isSub?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(t.getClassesLink(Z,b===t.crumbs.length-1)),"data-testid":`${I.dataTestid}-Classes${b}`},[l.createElementVNode("span",{class:l.normalizeClass(t.getClassesSpan(b)),onClick:h=>n(Z,b),"data-testid":`${I.dataTestid}-Checked${b}`},[l.createTextVNode(l.toDisplayString(b!==t.crumbs.length-1?o(Z):Z.title),1),t.fullTitle(Z)&&b!==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,I7)):l.createCommentVNode("",!0)],10,g7),b!==t.crumbs.length-1?(l.openBlock(),l.createBlock(Yg,{key:0,name:l.unref(mg).rightSmall,"data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"])):l.createCommentVNode("",!0)],10,$U))],10,OU))),128))],8,QU))}}),[["__scopeId","data-v-51f9caca"]]);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 C7=["disabled","data-testid"],e7=["data-testid"],t7=["data-testid"],i7=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,e7)):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,t7)):l.createCommentVNode("",!0)],46,C7))}}),nI=vg(i7,[["__scopeId","data-v-51d1e6f6"]]),A7=["data-testid"],n7=["data-testid","onClick"],Nw=vg(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_minor":I.theme==="minor","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:b=>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,n7))),128))],10,A7))}}),[["__scopeId","data-v-0e16a92a"]]);function kH(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 mt(){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 l7(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,FH=(...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)},KH=(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 s7(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 KH(I,n),n},()=>FH(I,e)]}function o7(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 zH(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 a7(C,g){return g==null?l.unref(C):l.unref(C)[g]}function d7(C){return l.unref(C)!=null}function JH(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 c7=_;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 m7(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 xH(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 xH(l.computed(C))}function r7(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 JA={mounted:"mounted",updated:"updated",unmounted:"unmounted"},ue=typeof window<"u"&&typeof document<"u",TH=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,LH=C=>typeof C<"u",Db=C=>C!=null,Z7=(C,...g)=>{C||console.warn(...g)},b7=Object.prototype.toString,Wr=C=>b7.call(C)==="[object Object]",u7=()=>Date.now(),Kd=()=>+Date.now(),Vw=(C,g,I)=>Math.min(I,Math.max(g,C)),yI=()=>{},h7=(C,g)=>(C=Math.ceil(C),g=Math.floor(g),Math.floor(Math.random()*(g-C+1))+C),vH=(C,g)=>Object.prototype.hasOwnProperty.call(C,g),zd=G7();function G7(){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=yI;const i=n=>{clearTimeout(n),t(),t=yI};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=yI,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=yI)};return m=>{const Z=_(A),b=Date.now()-g,h=()=>i=m();return a(),Z<=0?(g=Date.now(),h()):(b>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-b))})),!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 jH(C){const g=Object.create(null);return I=>g[I]||(g[I]=C(I))}const w7=/\B([A-Z])/g,W7=jH(C=>C.replace(w7,"-$1").toLowerCase()),B7=/-(\w)/g,QH=jH(C=>C.replace(B7,(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 OH(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 p7(C){return C()}function Ny(C,...g){return g.some(I=>I in C)}function UH(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 EH(C,g,I=!1){return g.reduce((e,t)=>(t in C&&(!I||C[t]!==void 0)&&(e[t]=C[t]),e),{})}function PH(C,g,I=!1){return Object.fromEntries(Object.entries(C).filter(([e,t])=>(!I||t!==void 0)&&!g.includes(e)))}function _H(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:yI}))):l.ref(g)}const Y7=PC;function y7(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 qH(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 N7(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 $H(C,g={}){let I=C,e,t;const i=l.customRef((m,Z)=>(e=m,t=Z,{get(){return A()},set(b){n(b)}}));function A(m=!0){return m&&e(),I}function n(m,Z=!0){var b,h;if(m===I)return;const G=I;((b=g.onBeforeChange)==null?void 0:b.call(g,m,G))!==!1&&(I=m,(h=g.onChanged)==null||h.call(g,m,G),Z&&t())}return zH(i,{get:A,set:n,untrackedGet:()=>A(!1),silentSet:m=>n(m,!1),peek:()=>A(!1),lay:m=>n(m,!1)},{enumerable:!0})}const V7=$H;function X7(...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 R7(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 M7(C,g=!0,I){Kb(I)?l.onBeforeMount(C,I):g?C():l.nextTick(C)}function gf(C,g){Kb(g)&&l.onBeforeUnmount(C,g)}function Ae(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:b,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 b!=null&&B.push(Br(b,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:b=!1,timeout:h,throwOnTimeout:G}=m??{};let w=null;const p=[new Promise(Y=>{w=l.watch([C,d],([y,R])=>{g!==(y===R)&&(w?w():l.nextTick(()=>w==null?void 0:w()),Y(y))},{flush:Z,deep:b,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 b=Array.from(Z);return b.includes(d)||b.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 H7(C,g){return C===g}function f7(...C){var g;const I=C[0],e=C[1];let t=(g=C[2])!=null?g:H7;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 S7(C,g){return l.computed(()=>_(C).every((I,e,t)=>g(_(I),e,t)))}function D7(C,g){return l.computed(()=>_(C).map(I=>_(I)).filter(g))}function k7(C,g){return l.computed(()=>_(_(C).find((I,e,t)=>g(_(I),e,t))))}function F7(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 z7(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 J7(C){return Wr(C)&&Ny(C,"formIndex","comparator")}function x7(...C){var g;const I=C[0],e=C[1];let t=C[2],i=0;if(J7(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 T7(C,g){return l.computed(()=>_(C).map(I=>_(I)).join(_(g)))}function L7(C,g){return l.computed(()=>_(C).map(I=>_(I)).map(g))}function v7(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 j7(C,g){return l.computed(()=>_(C).some((I,e,t)=>g(_(I),e,t)))}function Q7(C){return Array.from(new Set(C))}function O7(C,g){return C.reduce((I,e)=>(I.some(t=>g(e,t,C))||I.push(e),I),[])}function U7(C,g){return l.computed(()=>{const I=_(C).map(e=>_(e));return g?O7(I,g):Q7(I)})}function E7(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 P7=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,_7=/[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 q7(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 If(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:q7,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(_7,(b,h)=>{var G,w;return(w=h??((G=Z[b])==null?void 0:G.call(Z)))!=null?w:b})}function Cf(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(P7);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(()=>If(Cf(_(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 gE(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 IE(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 CE(C=1e3,g={}){const{controls:I=!1,callback:e}=g,t=Nr(e??yI,C,g),i=l.computed(()=>!t.isPending.value);return I?{ready:i,...t}:i}function eE(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 tE(C){return l.computed(()=>`${_(C)}`)}function ef(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 iE(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 AE(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 tf(C,g,I={}){const{debounce:e=0,maxWait:t=void 0,...i}=I;return Yr(C,g,{...i,eventFilter:Xw(e,{maxWait:t})})}function nE(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 lE(C,g,I){return l.watch(C,g,{...I,immediate:!0})}function sE(C,g,I){const e=l.watch(C,(...t)=>(l.nextTick(()=>e()),g(...t)),I);return e}function Af(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 oE(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(aE(C),dE(C))}),a}}}function aE(C){return l.isReactive(C)?C:Array.isArray(C)?C.map(g=>_(g)):_(C)}function dE(C){return Array.isArray(C)?C.map(()=>{}):void 0}function nf(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 lf(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=yI}=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 b=await C(h=>{d(()=>{i&&(i.value=!1),Z||h()})});m===a&&(o.value=b)}catch(b){n(b)}finally{i&&m===a&&(i.value=!1),Z=!0}}),t?l.computed(()=>(s.value=!0,o.value)):o}function cE(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 mE(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,{...rE(A),$slots:n});return g&&(o==null?void 0:o.length)===1?o[0]:o}}});return JH({define:e,reuse:t},[e,t])}function rE(C){const g={};for(const I in C)g[QH(I)]=C[I];return g}function ZE(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 bE(C){return function(...g){return C.apply(this,g.map(I=>_(I)))}}const Pg=ue?window:void 0,Pt=ue?window.document:void 0,Ri=ue?window.navigator:void 0,uE=ue?window.location:void 0;function FI(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 yI;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(()=>[FI(g),_(t)],([a,d])=>{if(A(),!a)return;const m=Wr(d)?{...d}:d;i.push(...I.flatMap(Z=>e.map(b=>n(a,Z,b,m))))},{immediate:!0,flush:"post"}),o=()=>{s(),A()};return GI(o),o}let sf=!1;function of(C,g,I={}){const{window:e=Pg,ignore:t=[],capture:i=!0,detectIframe:A=!1}=I;if(!e)return yI;zd&&!sf&&(sf=!0,Array.from(e.document.body.children).forEach(h=>h.addEventListener("click",yI)),e.document.documentElement.addEventListener("click",yI));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=FI(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=FI(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=FI(C);n=!s(h)&&!!(G&&!h.composedPath().includes(G))},{passive:!0}),A&&hg(e,"blur",h=>{setTimeout(()=>{var G;const w=FI(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 hE(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=hE(g);return hg(t,i,a=>{a.repeat&&_(n)||s(a)&&I(a)},A)}function GE(C,g,I={}){return Hw(C,g,{...I,eventName:"keydown"})}function wE(C,g,I={}){return Hw(C,g,{...I,eventName:"keypress"})}function WE(C,g,I={}){return Hw(C,g,{...I,eventName:"keyup"})}const BE=500,pE=10;function YE(C,g,I){var e,t;const i=l.computed(()=>FI(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[y,R,X]=[s,n,o];if(a(),!(I!=null&&I.onMouseUp)||!R||!y||(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,F=Math.sqrt(K*K+D*D);I.onMouseUp(w.timeStamp-y,F,X)}function m(w){var B,p,Y,y;(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)},(y=I==null?void 0:I.delay)!=null?y:BE))}function Z(w){var B,p,Y,y;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)>=((y=I==null?void 0:I.distanceThreshold)!=null?y:pE)&&a()}const b={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,b),hg(i,"pointermove",Z,b),hg(i,["pointerup","pointerleave"],d,b)];return()=>h.forEach(w=>w())}function yE(){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 NE({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 VE(C,g={}){const{document:I=Pt}=g;I&&hg(I,"keydown",t=>{!yE()&&NE(t)&&C(t)},{passive:!0})}function XE(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 Ae(e),l.onUpdated(e),t}function af(){const C=l.ref(!1),g=l.getCurrentInstance();return g&&l.onMounted(()=>{C.value=!0},g),C}function TI(C){const g=af();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(FI).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 RE(C,g,I){let e,t;Wr(I)?(e=I,t=PH(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),b=l.shallowReactive({startTime:null,currentTime:null,timeline:null,playbackRate:o,pending:!1,playState:A?"idle":"paused",replaceState:"active"}),h=l.computed(()=>b.pending),G=l.computed(()=>b.playState),w=l.computed(()=>b.replaceState),B=l.computed({get(){return b.startTime},set(T){b.startTime=T,Z.value&&(Z.value.startTime=T)}}),p=l.computed({get(){return b.currentTime},set(T){b.currentTime=T,Z.value&&(Z.value.currentTime=T,eg())}}),Y=l.computed({get(){return b.timeline},set(T){b.timeline=T,Z.value&&(Z.value.timeline=T)}}),y=l.computed({get(){return b.playbackRate},set(T){b.playbackRate=T,Z.value&&(Z.value.playbackRate=T)}}),R=()=>{if(Z.value)try{Z.value.play(),eg()}catch(T){E(),d(T)}else z()},X=()=>{var T;try{(T=Z.value)==null||T.pause(),E()}catch(q){d(q)}},K=()=>{var T;Z.value||z();try{(T=Z.value)==null||T.reverse(),eg()}catch(q){E(),d(q)}},D=()=>{var T;try{(T=Z.value)==null||T.finish(),E()}catch(q){d(q)}},F=()=>{var T;try{(T=Z.value)==null||T.cancel(),E()}catch(q){d(q)}};l.watch(()=>FI(C),T=>{T&&z()}),l.watch(()=>g,T=>{Z.value&&z(),!FI(C)&&Z.value&&(Z.value.effect=new KeyframeEffect(FI(C),_(T),t))},{deep:!0}),Ae(()=>z(!0),!1),GI(F);function z(T){const q=FI(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():eg(),a==null||a(Z.value))}hg(Z,["cancel","finish","remove"],E),hg(Z,"finish",()=>{var T;n&&((T=Z.value)==null||T.commitStyles())});const{resume:v,pause:O}=Ld(()=>{Z.value&&(b.pending=Z.value.pending,b.playState=Z.value.playState,b.replaceState=Z.value.replaceState,b.startTime=Z.value.startTime,b.currentTime=Z.value.currentTime,b.timeline=Z.value.timeline,b.playbackRate=Z.value.playbackRate)},{immediate:!1});function eg(){m.value&&v()}function E(){m.value&&i&&i.requestAnimationFrame(O)}return{isSupported:m,animate:Z,play:R,pause:X,reverse:K,finish:D,cancel:F,pending:h,playState:G,replaceState:w,startTime:B,currentTime:p,timeline:Y,playbackRate:y}}function ME(C,g){const{interrupt:I=!0,onError:e=yI,onFinished:t=yI,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 b;if(i!=null&&i.aborted){a(A.aborted,new Error("aborted"));return}if(((b=s[o.value])==null?void 0:b.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,HE(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 HE(C){return new Promise((g,I)=>{const e=new Error("aborted");C.aborted?I(e):C.addEventListener("abort",()=>I(e),{once:!0})})}function df(C,g,I){const{immediate:e=!0,delay:t=0,onError:i=yI,onSuccess:A=yI,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 b(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&&b(t);const h={state:a,isReady:d,isLoading:m,error:Z,execute:b};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 fE(C){return C?C instanceof Map?zb.map:C instanceof Set?zb.set:Array.isArray(C)?zb.array:zb.object:zb.null}function SE(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",DE(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)||fE(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 DE(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 cf(C={}){const{navigator:g=Ri}=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 kE(C){let{acceptAllDevices:g=!1}=C||{};const{filters:I=void 0,optionalServices:e=void 0,navigator:t=Ri}=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 Ae(()=>{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 Mi(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 FE={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},KE={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},mf={xs:0,sm:600,md:960,lg:1264,xl:1904},zE={xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560},JE=mf,xE={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},TE={xs:0,sm:600,md:1024,lg:1440,xl:1920},LE={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},vE={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},jE={sm:576,md:768,lg:992,xl:1200},QE={xs:0,sm:768,md:992,lg:1200,xl:1920};function OE(C,g={}){function I(a,d){let m=_(C[_(a)]);return d!=null&&(m=UH(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=>Mi(()=>`(min-width: ${I(a)})`,g),n=a=>Mi(()=>`(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 Mi(()=>`(min-width: ${I(a,.1)})`,g)},smaller(a){return Mi(()=>`(max-width: ${I(a,-.1)})`,g)},between(a,d){return Mi(()=>`(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 UE(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&&Ae(()=>{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 rf=["hash","host","hostname","href","pathname","port","protocol","search"];function Zf(C={}){const{window:g=Pg}=C,I=Object.fromEntries(rf.map(i=>[i,l.ref()]));for(const[i,A]of _H(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 rf)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 EE(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=Ri}=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=OH(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 bf(C={}){const{navigator:g=Ri,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 b(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:b}}function PE(C={}){const{navigator:g=Ri,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 _E(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__",uf=qE();function qE(){return Dw in Sw||(Sw[Dw]=Sw[Dw]||{}),Sw[Dw]}function kw(C,g){return uf[C]||g}function $E(C,g){uf[C]=g}function Fw(C){return Mi("(prefers-color-scheme: dark)",C)}function hf(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=F=>{console.error(F)},initOnMounted:b}=e,h=(a?l.shallowRef:l.ref)(typeof g=="function"?g():g);if(!I)try{I=kw("getDefaultStorage",()=>{var F;return(F=Pg)==null?void 0:F.localStorage})()}catch(F){Z(F)}if(!I)return h;const G=_(g),w=hf(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&&Ae(()=>{I instanceof Storage?hg(d,"storage",K):hg(d,ky,D),b&&K()}),b||K();function y(F,z){if(d){const v={key:C,oldValue:F,newValue:z,storageArea:I};d.dispatchEvent(I instanceof Storage?new StorageEvent("storage",v):new CustomEvent(ky,{detail:v}))}}function R(F){try{const z=I.getItem(C);if(F==null)y(z,null),I.removeItem(C);else{const v=B.write(F);z!==v&&(I.setItem(C,v),y(z,v))}}catch(z){Z(z)}}function X(F){const z=F?F.newValue:I.getItem(C);if(z==null)return s&&G!=null&&I.setItem(C,B.write(G)),G;if(!F&&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(F){if(!(F&&F.storageArea!==I)){if(F&&F.key==null){h.value=G;return}if(!(F&&F.key!==C)){p();try{(F==null?void 0:F.newValue)!==B.write(h.value)&&(h.value=X(F))}catch(z){Z(z)}finally{F?l.nextTick(Y):Y()}}}}function D(F){K(F.detail)}return h}const gP="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Gf(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"),b=s||(A==null?PC(e):xb(A,e,i,{window:t,listenToStorageChanges:n})),h=l.computed(()=>b.value==="auto"?Z.value:b.value),G=kw("updateHTMLAttrs",(Y,y,R)=>{const X=typeof Y=="string"?t==null?void 0:t.document.querySelector(Y):FI(Y);if(!X)return;const K=new Set,D=new Set;let F=null;if(y==="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 F={key:y,value:R};if(K.size===0&&D.size===0&&F===null)return;let z;a&&(z=t.document.createElement("style"),z.appendChild(document.createTextNode(gP)),t.document.head.appendChild(z));for(const v of K)X.classList.add(v);for(const v of D)X.classList.remove(v);F&&X.setAttribute(F.key,F.value),a&&(t.getComputedStyle(z).opacity,document.head.removeChild(z))});function w(Y){var y;G(g,I,(y=d[Y])!=null?y:Y)}function B(Y){C.onChanged?C.onChanged(Y,w):w(Y)}l.watch(h,B,{flush:"post",immediate:!0}),Ae(()=>B(h.value));const p=l.computed({get(){return o?b.value:h.value},set(Y){b.value=Y}});try{return Object.assign(p,{store:b,system:Z,state:h})}catch{return p}}function IP(C=l.ref(!1)){const g=mt(),I=mt(),e=mt();let t=yI;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 FI(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 wf(C){const g=l.getCurrentInstance(),I=Wy(()=>null,()=>C?FI(C):g.proxy.$el);return l.onUpdated(I.trigger),l.onMounted(I.trigger),I}function CP(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,b=d[Z];return I.value=b,b}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=Gf({...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 Bf(C){return C}function eP(C,g){return C.value=g}function tP(C){return C?typeof C=="function"?C:Jb:Bf}function iP(C){return C?typeof C=="function"?C:Jb:Bf}function pf(C,g={}){const{clone:I=!1,dump:e=tP(I),parse:t=iP(I),setSource:i=eP}=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))},b=()=>{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:b}}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,y){a(),o(()=>{Y.value=y})}const Z=pf(C,{...g,clone:g.clone||I,setSource:m}),{clear:b,commit:h}=Z;function G(){a(),h()}function w(Y){n(),Y&&G()}function B(Y){let y=!1;const R=()=>y=!0;o(()=>{Y(R)}),y||G()}function p(){d(),b()}return{...Z,isTracking:s,pause:A,resume:w,commit:G,batch:B,dispose:p}}function AP(C,g={}){const I=g.debounce?Xw(g.debounce):void 0;return{...Fy(C,{...g,eventFilter:I})}}function Yf(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 Nf(C={}){const{navigator:g=Ri,requestPermissions:I=!1,constraints:e={audio:!0,video:!0},onUpdated:t}=C,i=l.ref([]),A=l.computed(()=>i.value.filter(b=>b.kind==="videoinput")),n=l.computed(()=>i.value.filter(b=>b.kind==="audioinput")),s=l.computed(()=>i.value.filter(b=>b.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(b=>b.stop()),d=null))}async function Z(){if(!o.value)return!1;if(a.value)return!0;const{state:b,query:h}=fw("camera",{controls:!0});if(await h(),b.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 nP(C={}){var g;const I=l.ref((g=C.enabled)!=null?g:!1),e=C.video,t=C.audio,{navigator:i=Ri}=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(b=>b.addEventListener("ended",d)),s.value}async function a(){var Z;(Z=s.value)==null||Z.getTracks().forEach(b=>b.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 Vf(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:b,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()},y=K=>{var D;if(!_(G).includes(K.button)||_(g.disabled)||!p(K)||_(n)&&K.target!==_(C))return;const F=_(b),z=(D=F==null?void 0:F.getBoundingClientRect)==null?void 0:D.call(F),v=_(C).getBoundingClientRect(),O={x:K.clientX-(F?v.left-z.left+F.scrollLeft:v.left),y:K.clientY-(F?v.top-z.top+F.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=_(b),F=_(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-F.width))),(m==="y"||m==="both")&&(v=K.clientY-B.value.y,D&&(v=Math.min(Math.max(0,v),D.scrollHeight-F.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",y,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 lP(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),y=o||B.length<=1;return Y&&y},b=(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 y=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=y,(Y=s.onDrop)==null||Y.call(s,y,h));break}};hg(C,"dragenter",h=>b(h,"enter")),hg(C,"dragover",h=>b(h,"over")),hg(C,"dragleave",h=>b(h,"leave")),hg(C,"drop",h=>b(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=>FI(m)):[FI(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 Xf(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),b=l.ref(0);function h(){const w=FI(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,b.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,b.value=B.y}function G(){A==="sync"?h():A==="next-frame"&&requestAnimationFrame(()=>h())}return Kw(C,G),l.watch(()=>FI(C),w=>!w&&G()),Xr(C,G,{attributeFilter:["style","class"]}),t&&hg("scroll",G,{capture:!0,passive:!0}),e&&hg("resize",G,{passive:!0}),Ae(()=>{i&&G()}),{height:n,bottom:s,left:o,right:a,top:d,width:m,x:Z,y:b,update:G}}function sP(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 oP(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=FI(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=FI(C);if(Z){const b=Z.getBoundingClientRect();A.value=b.width,n.value=b.height}}else if(m){const Z=Array.isArray(m)?m:[m];A.value=Z.reduce((b,{inlineSize:h})=>b+h,0),n.value=Z.reduce((b,{blockSize:h})=>b+h,0)}else A.value=d.contentRect.width,n.value=d.contentRect.height},I);Ae(()=>{const d=FI(C);d&&(A.value="offsetWidth"in d?d.offsetWidth:g.width,n.value="offsetHeight"in d?d.offsetHeight:g.height)});const o=l.watch(()=>FI(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 Rf(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 b=_(C);return(Array.isArray(b)?b:[b]).map(FI).filter(Db)});let a=yI;const d=l.ref(n),m=s.value?l.watch(()=>[o.value,FI(e),d.value],([b,h])=>{if(a(),!d.value||!b.length)return;const G=new IntersectionObserver(g,{root:FI(h),rootMargin:t,threshold:i});b.forEach(w=>w&&G.observe(w)),a=()=>{G.disconnect(),a=yI}},{immediate:n,flush:"post"}):yI,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 Rf(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 aP(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 dP(C){return C===!0?{}:C}function cP(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,b=()=>{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:y}=dP(I.autoReconnect);d+=1,typeof p=="number"&&(p<0||d<p)||typeof p=="function"&&p()?setTimeout(h,Y):y==null||y()}},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&&(b(),a=!1,d=0,h())};return Z&&l.watch(s,G,{immediate:!0}),GI(b),{eventSource:A,event:e,data:t,status:i,error:n,open:G,close:b,lastEventId:o}}function Mf(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 mP(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 rP={json:"application/json",text:"text/plain"};function zw(C){return C&&Ny(C,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const ZP=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function bP(C){return ZP.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 uP(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&&!bP(d)?hP(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)}),Hf(n,o,s)}return t}function Hf(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=mt(),d=mt(),m=mt(),Z=l.ref(!1),b=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&&b.value);let y,R;const X=()=>{e&&(y==null||y.abort(),y=new AbortController,y.signal.onabort=()=>h.value=!0,t={...t,signal:y.signal})},K=T=>{b.value=T,Z.value=!T};o&&(R=Nr(X,o,{immediate:!1}));let D=0;const F=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),Rg=_(A.payload),gI=Object.getPrototypeOf(Rg);!A.payloadType&&Rg&&(gI===Object.prototype||Array.isArray(gI))&&!(Rg instanceof FormData)&&(A.payloadType="json"),A.payloadType&&(kg["Content-Type"]=(q=rP[A.payloadType])!=null?q:A.payloadType),Wg.body=A.payloadType==="json"?JSON.stringify(Rg):Rg}let fg=!1;const Vg={url:_(C),options:{...Wg,...t},cancel:()=>{fg=!0}};if(i.beforeFetch&&Object.assign(Vg,await i.beforeFetch(Vg)),fg||!n)return K(!1),Promise.resolve(null);let Bg=null;return R&&R.start(),n(Vg.url,{...Wg,...Vg.options,headers:{...vb(Wg.headers),...vb((cg=Vg.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 Rg=kg.message||kg.name;if(i.onFetchError&&({error:Rg,data:Bg}=await i.onFetchError({data:Bg,error:kg,response:w.value})),B.value=Rg,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&&F(),{deep:!0});const v={isFinished:l.readonly(Z),isFetching:l.readonly(b),statusCode:G,response:w,error:B,data:p,canAbort:Y,aborted:h,abort:X,execute:F,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:E("json"),text:E("text"),blob:E("blob"),arrayBuffer:E("arrayBuffer"),formData:E("formData")};function O(T){return(q,cg)=>{if(!b.value)return A.method=T,A.payload=q,A.payloadType=cg,l.isRef(A.payload)&&l.watch([z,PC(A.payload)],([og])=>og&&F(),{deep:!0}),{...v,then(og,Wg){return eg().then(og,Wg)}}}}function eg(){return new Promise((T,q)=>{yr(Z).toBe(!0).then(()=>T(v)).catch(q)})}function E(T){return()=>{if(!b.value)return A.type=T,{...v,then(q,cg){return eg().then(q,cg)}}}}return i.immediate&&Promise.resolve().then(()=>F()),{...v,then(T,q){return eg().then(T,q)}}}function hP(C,g){return!C.endsWith("/")&&!g.startsWith("/")?`${C}/${g}`:C.endsWith("/")&&g.startsWith("/")?`${C.slice(0,-1)}${g}`:`${C}${g}`}const GP={multiple:!0,accept:"*",reset:!1,directory:!1};function wP(C={}){const{document:g=Pt}=C,I=l.ref(null),{on:e,trigger:t}=mt(),{on:i,trigger:A}=mt();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={...GP,...C,...a};n.multiple=d.multiple,n.accept=d.accept,n.webkitdirectory=d.directory,vH(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 WP(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 b(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:b,saveAs:h,updateData:w}}function BP(C,g={}){const{initialValue:I=!1,focusVisible:e=!1,preventScroll:t=!1}=g,i=l.ref(!1),A=l.computed(()=>FI(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 pP="focusin",YP="focusout";function yP(C,g={}){const{window:I=Pg}=g,e=l.computed(()=>FI(C)),t=l.ref(!1),i=l.computed(()=>t.value),A=fy(g);return!I||!A.value?{focused:i}:(hg(e,pP,()=>t.value=!0),hg(e,YP,()=>t.value=!1),{focused:i})}function NP(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 ff=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Sf(C,g={}){const{document:I=Pt,autoExit:e=!1}=g,t=l.computed(()=>{var w;return(w=FI(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 b(){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():b())}const G=()=>{const w=m();(!w||w&&d())&&(i.value=w)};return hg(I,ff,G,!1),hg(()=>FI(t),ff,G,!1),e&&GI(Z),{isSupported:a,isFullscreen:i,enter:b,exit:Z,toggle:h}}function VP(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 XP(C={}){const{navigator:g=Ri}=C,I=TI(()=>g&&"getGamepads"in g),e=l.ref([]),t=mt(),i=mt(),A=Z=>{const b=[],h="vibrationActuator"in Z?Z.vibrationActuator:null;return h&&b.push(h),Z.hapticActuators&&b.push(...Z.hapticActuators),{id:Z.id,index:Z.index,connected:Z.connected,mapping:Z.mapping,timestamp:Z.timestamp,vibrationActuator:Z.vibrationActuator,hapticActuators:b,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 b of Z)b&&e.value[b.index]&&(e.value[b.index]=A(b))},{isActive:s,pause:o,resume:a}=Ld(n),d=Z=>{e.value.some(({index:b})=>b===Z.index)||(e.value.push(A(Z)),t.trigger(Z.index)),a()},m=Z=>{e.value=e.value.filter(b=>b.index!==Z.index),i.trigger(Z.index)};return hg("gamepadconnected",Z=>d(Z.gamepad)),hg("gamepaddisconnected",Z=>m(Z.gamepad)),Ae(()=>{const Z=(g==null?void 0:g.getGamepads())||[];for(const b of Z)b&&e.value[b.index]&&d(b)}),o(),{isSupported:I,onConnected:t.on,onDisconnected:i.on,gamepads:e,pause:o,resume:a,isActive:s}}function Df(C={}){const{enableHighAccuracy:g=!0,maximumAge:I=3e4,timeout:e=27e3,navigator:t=Ri,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(b){n.value=b.timestamp,o.value=b.coords,s.value=null}let d;function m(){A.value&&(d=t.geolocation.watchPosition(a,b=>s.value=b,{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 RP=["mousemove","mousedown","resize","keydown","touchstart","wheel"],MP=6e4;function kf(C=MP,g={}){const{initialState:I=!1,listenForVisibilityChange:e=!0,events:t=RP,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 HP(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 fP(C,g={}){const I=df(()=>HP(_(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 Ff=1;function Kf(C,g={}){const{throttle:I=0,idle:e=200,onStop:t=yI,onScroll:i=yI,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)}}),b=l.computed({get(){return m.value},set(X){h(void 0,X)}});function h(X,K){var D,F,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:b.value,left:(F=_(X))!=null?F:Z.value,behavior:_(s)});const eg=((v=O==null?void 0:O.document)==null?void 0:v.documentElement)||(O==null?void 0:O.documentElement)||O;Z!=null&&(d.value=eg.scrollLeft),b!=null&&(m.value=eg.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),y=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)||FI(X),{display:F,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),eg=Math.abs(v)+D.clientWidth>=D.scrollWidth-(A.right||0)-Ff;F==="flex"&&z==="row-reverse"?(w.left=eg,w.right=O):(w.left=O,w.right=eg),d.value=v;let E=D.scrollTop;X===o.document&&!E&&(E=o.document.body.scrollTop),B.top=E<m.value,B.bottom=E>m.value;const T=Math.abs(E)<=(A.top||0),q=Math.abs(E)+D.clientHeight>=D.scrollHeight-(A.bottom||0)-Ff;F==="flex"&&z==="column-reverse"?(w.top=q,w.bottom=T):(w.top=T,w.bottom=q),m.value=E},R=X=>{var K;if(!o)return;const D=(K=X.target.documentElement)!=null?K:X.target;y(D),G.value=!0,Y(X),i(X)};return hg(C,"scroll",I?Rw(R,I,!0,!1):R,n),Ae(()=>{try{const X=_(C);if(!X)return;y(X)}catch(X){a(X)}}),hg(C,"scrollend",p,n),{x:Z,y:b,isScrolling:G,arrivedState:w,directions:B,measure(){const X=_(C);o&&X&&y(X)}}}function SP(C,g,I={}){var e;const{direction:t="bottom",interval:i=100,canLoadMore:A=()=>!0}=I,n=l.reactive(Kf(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:b,clientHeight:h,scrollWidth:G,clientWidth:w}=a.value,B=t==="bottom"||t==="top"?b<=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 DP=["mousedown","mouseup","keydown","keyup"];function kP(C,g={}){const{events:I=DP,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 FP(C,g,I={}){const{window:e=Pg}=I;return xb(C,g,e==null?void 0:e.localStorage,I)}const zf={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=zf,passive:t=!0,onEventFired:i=yI}=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(),y=[(B=h.code)==null?void 0:B.toLowerCase(),p].filter(Boolean);p&&(G?A.add(p):A.delete(p));for(const R of y)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,...y].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 b=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=>_(b[Y])))}else s[G]=l.ref(!1);const B=Reflect.get(h,G,w);return g?_(B):B}});return b}function Ty(C,g){_(C)&&g(_(C))}function zP(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 JP={src:"",tracks:[]};function xP(C,g={}){C=PC(C),g={...JP,...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([]),b=l.ref(-1),h=l.ref(!1),G=l.ref(!1),w=I&&"pictureInPictureEnabled"in I,B=mt(),p=mt(),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";b.value=-1})},y=(z,v=!0)=>{Ty(C,O=>{const eg=typeof z=="number"?z:z.id;v&&Y(),O.textTracks[eg].mode="showing",b.value=eg})},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(eg=>{eg.removeEventListener("error",B.trigger),eg.remove()}),O.forEach(({src:eg,type:E})=>{const T=I.createElement("source");T.setAttribute("src",eg),T.setAttribute("type",E||""),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:eg,label:E,src:T,srcLang:q},cg)=>{const og=I.createElement("track");og.default=O||!1,og.kind=eg,og.label=E,og.src=T,og.srclang=q,og.default&&(b.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=zP(_(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=[],F=l.watch([C],()=>{const z=_(C);z&&(F(),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:b,enableTrack:y,disableTrack:Y,supportsPictureInPicture:w,togglePictureInPicture:R,isPictureInPicture:h,onSourceError:B.on,onPlaybackError:p.on}}function TP(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 LP(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 vP={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),b=l.ref(null),h=typeof g=="function"?g:vP[g],G=X=>{const K=h(X);o=X,K&&([m.value,Z.value]=K,b.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,b.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),y=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"],y,X),e&&hg(A,"touchend",p,X)),n&&g==="page"&&hg(i,"scroll",R,{passive:!0})}return{x:m,y:Z,sourceType:b}}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),b=l.ref(0),h=l.ref(!0);let G=()=>{};return e&&(G=l.watch([s,i,A],()=>{const w=FI(s);if(!w||!(w instanceof Element))return;const{left:B,top:p,width:Y,height:y}=w.getBoundingClientRect();d.value=B+(t==="page"?e.pageXOffset:0),m.value=p+(t==="page"?e.pageYOffset:0),Z.value=y,b.value=Y;const R=i.value-d.value,X=A.value-m.value;h.value=Y===0||y===0||R<0||X<0||R>Y||X>y,(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:b,isOutside:h,stop:G}}function Jf(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(()=>FI(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 jP(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 b(){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",b,!1),b(),{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 xf(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 Tf(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 Lf(C){const{total:g=Number.POSITIVE_INFINITY,pageSize:I=10,page:e=1,onPageChange:t=yI,onPageSizeChange:i=yI,onPageCountChange:A=yI}=C,n=Tf(I,1,Number.POSITIVE_INFINITY),s=l.computed(()=>Math.max(1,Math.ceil(_(g)/_(n)))),o=Tf(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 b={currentPage:o,currentPageSize:n,pageCount:s,isFirstPage:a,isLastPage:d,prev:m,next:Z};return l.watch(o,()=>{t(l.reactive(b))}),l.watch(n,()=>{i(l.reactive(b))}),l.watch(s,()=>{A(l.reactive(b))}),b}function vf(C={}){const{isOnline:g}=Qy(C);return g}function jf(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 Qf(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 QP(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(Qf({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"),b=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:b,tilt:h,source:Z}}function OP(C=wf()){const g=l.shallowRef(),I=()=>{const e=FI(C);e&&(g.value=e.parentElement)};return Ae(I),l.watch(()=>_(C),I),g}function UP(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 Of={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},EP=Object.keys(Of);function Uf(C={}){const{target:g=Pg}=C,I=l.ref(!1),e=l.ref(C.initialValue||{});Object.assign(e.value,Of,e.value);const t=i=>{I.value=!0,!(C.pointerTypes&&!C.pointerTypes.includes(i.pointerType))&&(e.value=EH(i,EP,!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 Ef(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=FI(C))!=null?a:i.value:FI(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 PP(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:b,abs:h}=Math,G=l.computed(()=>b(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,F;const z=X.buttons===0,v=X.buttons===1;return(F=(D=(K=g.pointerTypes)==null?void 0:K.includes(X.pointerType))!=null?D:z||v)!=null?F:!0},y=[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:F}=X;o(D,F),d(D,F),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)})];Ae(()=>{var X,K,D,F,z,v,O,eg;(K=(X=I.value)==null?void 0:X.style)==null||K.setProperty("touch-action","none"),n&&((F=(D=I.value)==null?void 0:D.style)==null||F.setProperty("-webkit-user-select","none"),(v=(z=I.value)==null?void 0:z.style)==null||v.setProperty("-ms-user-select","none"),(eg=(O=I.value)==null?void 0:O.style)==null||eg.setProperty("user-select","none"))});const R=()=>y.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 Pf(C){const g=Mi("(prefers-color-scheme: light)",C),I=Mi("(prefers-color-scheme: dark)",C);return l.computed(()=>I.value?"dark":g.value?"light":"no-preference")}function _f(C){const g=Mi("(prefers-contrast: more)",C),I=Mi("(prefers-contrast: less)",C),e=Mi("(prefers-contrast: custom)",C);return l.computed(()=>g.value?"more":I.value?"less":e.value?"custom":"no-preference")}function qf(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 $f(C){const g=Mi("(prefers-reduced-motion: reduce)",C);return l.computed(()=>g.value?"reduce":"no-preference")}function _P(C,g){const I=l.shallowRef(g);return l.watch(PC(C),(e,t)=>{I.value=t},{flush:"sync"}),l.readonly(I)}const g3="--vueuse-safe-area-top",I3="--vueuse-safe-area-right",C3="--vueuse-safe-area-bottom",e3="--vueuse-safe-area-left";function qP(){const C=l.ref(""),g=l.ref(""),I=l.ref(""),e=l.ref("");if(ue){const i=Tb(g3),A=Tb(I3),n=Tb(C3),s=Tb(e3);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(g3),g.value=xw(I3),I.value=xw(C3),e.value=xw(e3)}return{top:C,right:g,bottom:I,left:e,update:t}}function xw(C){return getComputedStyle(document.documentElement).getPropertyValue(C)}function $P(C,g=yI,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 b=null;const h=B=>new Promise((p,Y)=>{const y=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")&&y(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),y(X)}),R&&(X=d.head.appendChild(X)),B||y(X)}),G=(B=!0)=>(b||(b=h(B)),b),w=()=>{if(!d)return;b=null,Z.value&&(Z.value=null);const B=d.querySelector(`script[src="${_(C)}"]`);B&&d.head.removeChild(B)};return e&&!t&&Ae(G),t||Mw(w),{scriptTag:Z,load:G,unload:w}}function t3(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:t3(I)}}function g6(C){const g=C||window.event,I=g.target;return t3(I)?!1:g.touches.length>1?!0:(g.preventDefault&&g.preventDefault(),!1)}const Uy=new WeakMap;function I6(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=>{g6(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 C6(C,g,I={}){const{window:e=Pg}=I;return xb(C,g,e==null?void 0:e.sessionStorage,I)}function e6(C={},g={}){const{navigator:I=Ri}=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 t6=(C,g)=>C.sort(g),Tw=(C,g)=>C-g;function i6(...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=t6}=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 A6(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),b=TI(()=>Z);let h;return b.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:b,isListening:A,isFinal:n,recognition:h,result:s,error:o,toggle:a,start:d,stop:m}}function n6(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},b=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 b(B),B}),G=()=>{A.cancel(),h&&A.speak(h.value)},w=()=>{A.cancel(),s.value=!1};return n.value&&(b(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 l6(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(y){return Array.isArray(I.value)?I.value[y]:I.value[e.value[y]]}function d(y){if(e.value.includes(y))return a(e.value.indexOf(y))}function m(y){e.value.includes(y)&&(t.value=e.value.indexOf(y))}function Z(){n.value||t.value++}function b(){A.value||t.value--}function h(y){Y(y)&&m(y)}function G(y){return e.value.indexOf(y)===t.value+1}function w(y){return e.value.indexOf(y)===t.value-1}function B(y){return e.value.indexOf(y)===t.value}function p(y){return t.value<e.value.indexOf(y)}function Y(y){return t.value>e.value.indexOf(y)}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:b,goBackTo:h,isNext:G,isPrevious:w,isCurrent:B,isBefore:p,isAfter:Y}}function s6(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,b=_(g),h=hf(b),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=b,s&&b!==null&&await I.setItem(C,await w.write(b));else if(o){const y=await w.read(Y);typeof o=="function"?G.value=o(y,b):h==="object"&&!Array.isArray(y)?G.value={...b,...y}:G.value=y}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 o6=0;function a6(C,g={}){const I=l.ref(!1),{document:e=Pt,immediate:t=!0,manual:i=!1,id:A=`vueuse_styletag_${++o6}`}=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&&Ae(o),i||GI(a),{id:A,css:n,unload:a,load:o,isLoaded:l.readonly(I)}}function d6(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,b=l.computed(()=>m(Z(a.value),Z(d.value))>=I),h=l.ref(!1),G=l.computed(()=>b.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,F)=>{s.x=D,s.y=F},p=(D,F)=>{o.x=D,o.y=F};let Y;const y=c6(n==null?void 0:n.document);A?Y=y?{passive:!0}:{capture:!1}:Y=y?{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[F,z]=w(D);B(F,z),p(F,z),i==null||i(D)},Y),hg(C,"touchmove",D=>{if(D.touches.length!==1)return;const[F,z]=w(D);p(F,z),Y.capture&&!Y.passive&&Math.abs(a.value)>Math.abs(d.value)&&D.preventDefault(),!h.value&&b.value&&(h.value=!0),h.value&&(e==null||e(D))},Y),hg(C,["touchend","touchcancel"],R,Y)];return{isPassiveEventSupported:y,isSwiping:h,direction:G,coordsStart:s,coordsEnd:o,lengthX:a,lengthY:d,stop:()=>X.forEach(D=>D())}}function c6(C){if(!C)return!1;let g=!1;const I={get passive(){return g=!0,!1}};return C.addEventListener("x",yI,I),C.removeEventListener("x",yI),g}function m6(){const C=l.ref([]);return C.value.set=g=>{g&&C.value.push(g)},l.onBeforeUpdate(()=>{C.value.length=0}),C}function r6(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 Ae(()=>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 Z6(C){var g;const I=(g=C.rangeCount)!=null?g:0;return Array.from({length:I},(e,t)=>C.getRangeAt(t))}function b6(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?Z6(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 u6(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 h6(C,g={}){const{throttle:I=200,trailing:e=!0}=g,t=Fb(I,e);return{...Fy(C,{...g,eventFilter:t})}}const G6=[{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"}],w6={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 W6(C){return C.toISOString().slice(0,10)}function i3(C,g={}){const{controls:I=!1,updateInterval:e=3e4}=g,{now:t,...i}=Oy({interval:e,controls:!0}),A=l.computed(()=>A3(new Date(_(C)),g,_(t)));return I?{timeAgo:A,...i}:A}function A3(C,g={},I=Date.now()){var e;const{max:t,messages:i=w6,fullDateFormatter:A=W6,units:n=G6,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 b(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 b(d,n[G-1]);if(m<w.max)return b(d,w)}return i.invalid}function B6(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 n3(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 p6(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}),gf(()=>{if(A){const d=A(n,s.value||"");d!=null&&i&&(i.title=d)}}),s}const Y6=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 y6([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 b=n(d,C,I)-a;d-=b/Z}return d};return a=>C===g&&I===e?a:n(o(a),g,e)}function l3(C,g,I){return C+I*(g-C)}function Ey(C){return(typeof C=="number"?[C]:C)||[]}function s3(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,b=typeof Z=="function"?Z:y6(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=b((B-d)/a),Y=Ey(C.value).map((y,R)=>l3(s[R],o[R],p));Array.isArray(C.value)?C.value=Y.map((y,R)=>{var X,K;return l3((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 N6(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 s3(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 V6(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)}),b(w)},{deep:!0});function b(w,B){m(),B&&d(w),A.history.replaceState(A.history.state,A.document.title,A.location.pathname+o(w)),Z()}function h(){i&&b(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 X6(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=Ri}=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 b(){return d(),await Z()}return l.watch(e,h=>{h?a():d()},{immediate:!0}),l.watch(i,()=>{t.value&&s.value&&b()},{immediate:!0}),GI(()=>{m()}),{isSupported:n,stream:s,start:Z,stop:m,restart:b,constraints:i,enabled:e,autoSwitch:t}}function o3(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(),b=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=()=>LH(C[g])?G(C[g]):d,B=p=>{m?m(p)&&b(h,p):b(h,p)};if(s){const p=w(),Y=l.ref(p);let y=!1;return l.watch(()=>C[g],R=>{y||(y=!0,Y.value=G(R),l.nextTick(()=>y=!1))}),l.watch(Y,R=>{!y&&(R!==C[g]||a)&&B(R)},{deep:a}),Y}else return l.computed({get(){return w()},set(p){B(p)}})}function R6(C,g,I={}){const e={};for(const t in C)e[t]=o3(C,t,g,I);return e}function M6(C){const{pattern:g=[],interval:I=0,navigator:e=Ri}=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 a3(C,g){const{containerStyle:I,wrapperProps:e,scrollTo:t,calculateRange:i,currentList:A,containerRef:n}="itemHeight"in g?S6(g,C):f6(g,C);return{list:A,scrollTo:t,containerProps:{ref:n,onScroll:()=>{i()},style:I},wrapperProps:e}}function d3(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 c3(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 m3(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 r3(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,b)=>({data:Z,index:b+i.value.start}))}}}function Z3(C,g){return I=>typeof C=="number"?I*C:g.value.slice(0,I).reduce((t,i,A)=>t+C(A),0)}function b3(C,g,I,e){l.watch([C.width,C.height,g,I],()=>{e()})}function u3(C,g){return l.computed(()=>typeof C=="number"?g.value.length*C:g.value.reduce((I,e,t)=>I+C(t),0))}const H6={horizontal:"scrollLeft",vertical:"scrollTop"};function h3(C,g,I,e){return t=>{e.value&&(e.value[H6[C]]=I(t),g())}}function f6(C,g){const I=d3(g),{state:e,source:t,currentList:i,size:A,containerRef:n}=I,s={overflowX:"auto"},{itemWidth:o,overscan:a=5}=C,d=c3(e,t,o),m=m3(t,o),Z=r3("horizontal",a,m,d,I),b=Z3(o,t),h=l.computed(()=>b(e.value.start)),G=u3(o,t);b3(A,g,n,Z);const w=h3("horizontal",Z,b,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 S6(C,g){const I=d3(g),{state:e,source:t,currentList:i,size:A,containerRef:n}=I,s={overflowY:"auto"},{itemHeight:o,overscan:a=5}=C,d=c3(e,t,o),m=m3(t,o),Z=r3("vertical",a,m,d,I),b=Z3(o,t),h=l.computed(()=>b(e.value.start)),G=u3(o,t);b3(A,g,n,Z);const w=h3("vertical",Z,b,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 D6(C={}){const{navigator:g=Ri,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}),nf(()=>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 k6(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}=mt(),{on:a,trigger:d}=mt(),{on:m,trigger:Z}=mt(),{on:b,trigger:h}=mt(),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&&Ae(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:b}}const G3="ping";function Py(C){return C===!0?{}:C}function F6(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,b,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},y=(D=1e3,F)=>{!ue||!d.value||(h=!0,Y(),Z==null||Z(),d.value.close(D,F),d.value=void 0)},R=(D,F=!0)=>!d.value||a.value!=="OPEN"?(F&&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),b==null||b(),p()},D.onclose=F=>{if(a.value="CLOSED",e==null||e(D,F),!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=F=>{t==null||t(D,F)},D.onmessage=F=>{if(g.heartbeat){Y();const{message:z=G3,responseMessage:v=z}=Py(g.heartbeat);if(F.data===v)return}o.value=F.data,i==null||i(D,F)}};if(g.heartbeat){const{message:D=G3,interval:F=1e3,pongTimeout:z=1e3}=Py(g.heartbeat),{pause:v,resume:O}=xo(()=>{R(D,!1),B==null&&(B=setTimeout(()=>{y(),h=!1},z))},F,{immediate:!1});Z=v,b=O}n&&(ue&&hg("beforeunload",()=>y()),GI(y));const K=()=>{!ue&&!TH||(y(),h=!1,G=0,X())};return A&&K(),l.watch(m,K),{data:o,status:a,close:y,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 z6(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 J6(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 x6(C,g,I){const e=`${z6(g,I)}; onmessage=(${J6})(${C})`,t=new Blob([e],{type:"text/javascript"});return URL.createObjectURL(t)}function T6(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=(b="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=b)};a(),GI(a);const d=()=>{const b=x6(C,I,e),h=new Worker(b);return h._url=b,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=(...b)=>new Promise((h,G)=>{var w;s.value={resolve:h,reject:G},(w=A.value)==null||w.postMessage([[...b]]),n.value="RUNNING"});return{workerFn:(...b)=>n.value==="RUNNING"?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(A.value=d(),m(...b)),workerStatus:n,workerTerminate:a}}function w3(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 L6(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(),Ae(o),hg("resize",o,{passive:!0}),t){const a=Mi("(orientation: portrait)");l.watch(a,()=>o())}return{width:n,height:s}}const v6=Object.freeze(Object.defineProperty({__proto__:null,DefaultMagicKeysAliasMap:zf,StorageSerializers:Dy,TransitionPresets:Y6,assert:Z7,asyncComputed:lf,autoResetRef:qH,breakpointsAntDesign:xE,breakpointsBootstrapV5:KE,breakpointsElement:QE,breakpointsMasterCss:vE,breakpointsPrimeFlex:jE,breakpointsQuasar:TE,breakpointsSematic:LE,breakpointsTailwind:FE,breakpointsVuetify:JE,breakpointsVuetifyV2:mf,breakpointsVuetifyV3:zE,bypassFilter:kb,camelize:QH,clamp:Vw,cloneFnJSON:Jb,computedAsync:lf,computedEager:kH,computedInject:cE,computedWithControl:Wy,containsProp:Ny,controlledComputed:Wy,controlledRef:V7,createEventHook:mt,createFetch:uP,createFilterWrapper:Jd,createGlobalState:l7,createInjectionState:s7,createReactiveFn:By,createReusableTemplate:mE,createSharedComposable:o7,createSingletonPromise:OH,createTemplatePromise:ZE,createUnrefFn:bE,customStorageEventName:ky,debounceFilter:Xw,debouncedRef:Vy,debouncedWatch:tf,defaultDocument:Pt,defaultLocation:uE,defaultNavigator:Ri,defaultWindow:Pg,directiveHooks:JA,eagerComputed:kH,executeTransition:s3,extendRef:zH,formatDate:If,formatTimeAgo:A3,get:a7,getLifeCycleTarget:Kb,getSSRHandler:kw,hasOwn:vH,hyphenate:W7,identity:yy,ignorableWatch:Vr,increaseWithUnit:UH,injectLocal:FH,invoke:p7,isClient:ue,isDef:LH,isDefined:d7,isIOS:zd,isObject:Wr,isWorker:TH,makeDestructurable:JH,mapGamepadToXbox360Controller:VP,noop:yI,normalizeDate:Cf,notNullish:Db,now:u7,objectEntries:_H,objectOmit:PH,objectPick:EH,onClickOutside:of,onKeyDown:GE,onKeyPressed:wE,onKeyStroke:Hw,onKeyUp:WE,onLongPress:YE,onStartTyping:VE,pausableFilter:Yy,pausableWatch:xd,promiseTimeout:Br,provideLocal:KH,rand:h7,reactify:By,reactifyObject:m7,reactiveComputed:py,reactiveOmit:r7,reactivePick:y7,refAutoReset:qH,refDebounced:Vy,refDefault:N7,refThrottled:Xy,refWithControl:$H,resolveRef:Y7,resolveUnref:c7,set:X7,setSSRHandler:$E,syncRef:Ry,syncRefs:R7,templateRef:XE,throttleFilter:Fb,throttledRef:Xy,throttledWatch:Af,timestamp:Kd,toReactive:xH,toRef:PC,toRefs:My,toValue:_,tryOnBeforeMount:M7,tryOnBeforeUnmount:gf,tryOnMounted:Ae,tryOnScopeDispose:GI,tryOnUnmounted:Mw,unrefElement:FI,until:yr,useActiveElement:fy,useAnimate:RE,useArrayDifference:f7,useArrayEvery:S7,useArrayFilter:D7,useArrayFind:k7,useArrayFindIndex:F7,useArrayFindLast:z7,useArrayIncludes:x7,useArrayJoin:T7,useArrayMap:L7,useArrayReduce:v7,useArraySome:j7,useArrayUnique:U7,useAsyncQueue:ME,useAsyncState:df,useBase64:SE,useBattery:cf,useBluetooth:kE,useBreakpoints:OE,useBroadcastChannel:UE,useBrowserLocation:Zf,useCached:EE,useClipboard:bf,useClipboardItems:PE,useCloned:_E,useColorMode:Gf,useConfirmDialog:IP,useCounter:E7,useCssVar:Tb,useCurrentElement:wf,useCycleList:CP,useDark:Wf,useDateFormat:$7,useDebounce:Vy,useDebounceFn:pr,useDebouncedRefHistory:AP,useDeviceMotion:Yf,useDeviceOrientation:Ky,useDevicePixelRatio:yf,useDevicesList:Nf,useDisplayMedia:nP,useDocumentVisibility:zy,useDraggable:Vf,useDropZone:lP,useElementBounding:Xf,useElementByPoint:sP,useElementHover:oP,useElementSize:Jy,useElementVisibility:xy,useEventBus:aP,useEventListener:hg,useEventSource:cP,useEyeDropper:Mf,useFavicon:mP,useFetch:Hf,useFileDialog:wP,useFileSystemAccess:WP,useFocus:BP,useFocusWithin:yP,useFps:NP,useFullscreen:Sf,useGamepad:XP,useGeolocation:Df,useIdle:kf,useImage:fP,useInfiniteScroll:SP,useIntersectionObserver:Rf,useInterval:gE,useIntervalFn:xo,useKeyModifier:kP,useLastChanged:IE,useLocalStorage:FP,useMagicKeys:KP,useManualRefHistory:pf,useMediaControls:xP,useMediaQuery:Mi,useMemoize:TP,useMemory:LP,useMounted:af,useMouse:vy,useMouseInElement:jy,useMousePressed:Jf,useMutationObserver:Xr,useNavigatorLanguage:jP,useNetwork:Qy,useNow:Oy,useObjectUrl:xf,useOffsetPagination:Lf,useOnline:vf,usePageLeave:jf,useParallax:QP,useParentElement:OP,usePerformanceObserver:UP,usePermission:fw,usePointer:Uf,usePointerLock:Ef,usePointerSwipe:PP,usePreferredColorScheme:Pf,usePreferredContrast:_f,usePreferredDark:Fw,usePreferredLanguages:qf,usePreferredReducedMotion:$f,usePrevious:_P,useRafFn:Ld,useRefHistory:Fy,useResizeObserver:Kw,useScreenOrientation:Qf,useScreenSafeArea:qP,useScriptTag:$P,useScroll:Kf,useScrollLock:I6,useSessionStorage:C6,useShare:e6,useSorted:i6,useSpeechRecognition:A6,useSpeechSynthesis:n6,useStepper:l6,useStorage:xb,useStorageAsync:s6,useStyleTag:a6,useSupported:TI,useSwipe:d6,useTemplateRefsList:m6,useTextDirection:r6,useTextSelection:b6,useTextareaAutosize:u6,useThrottle:Xy,useThrottleFn:Rw,useThrottledRefHistory:h6,useTimeAgo:i3,useTimeout:CE,useTimeoutFn:Nr,useTimeoutPoll:B6,useTimestamp:n3,useTitle:p6,useToNumber:eE,useToString:tE,useToggle:ef,useTransition:N6,useUrlSearchParams:V6,useUserMedia:X6,useVModel:o3,useVModels:R6,useVibrate:M6,useVirtualList:a3,useWakeLock:D6,useWebNotification:k6,useWebSocket:F6,useWebWorker:K6,useWebWorkerFn:T6,useWindowFocus:w3,useWindowScroll:L6,useWindowSize:W3,watchArray:iE,watchAtMost:AE,watchDebounced:tf,watchDeep:nE,watchIgnorable:Vr,watchImmediate:lE,watchOnce:sE,watchPausable:xd,watchThrottled:Af,watchTriggerable:oE,watchWithFilter:Yr,whenever:nf},Symbol.toStringTag,{value:"Module"})),j6=l.defineComponent({name:"OnClickOutside",props:["as","options"],emits:["trigger"],setup(C,{slots:g,emit:I}){const e=l.ref();return of(e,t=>{I("trigger",t)},C.options),()=>{if(g.default)return l.h(C.as||"div",{ref:e},g.default())}}}),ft=ue?window:void 0;function Te(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=ft):[g,I,e,t]=C,!g)return yI;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(()=>[Te(g),_(t)],([a,d])=>{if(A(),!a)return;const m=Wr(d)?{...d}:d;i.push(...I.flatMap(Z=>e.map(b=>n(a,Z,b,m))))},{immediate:!0,flush:"post"}),o=()=>{s(),A()};return GI(o),o}let B3=!1;function p3(C,g,I={}){const{window:e=ft,ignore:t=[],capture:i=!0,detectIframe:A=!1}=I;if(!e)return yI;zd&&!B3&&(B3=!0,Array.from(e.document.body.children).forEach(h=>h.addEventListener("click",yI)),e.document.documentElement.addEventListener("click",yI));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=Te(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=Te(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=Te(C);n=!s(h)&&!!(G&&!h.composedPath().includes(G))},{passive:!0}),A&&_t(e,"blur",h=>{setTimeout(()=>{var G;const w=Te(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={[JA.mounted](C,g){const I=!g.modifiers.bubble;if(typeof g.value=="function")C.__onClickOutside_stop=p3(C,g.value,{capture:I});else{const[e,t]=g.value;C.__onClickOutside_stop=p3(C,e,Object.assign({capture:I},t))}},[JA.unmounted](C){C.__onClickOutside_stop()}};function Q6(C){return typeof C=="function"?C:typeof C=="string"?g=>g.key===C:Array.isArray(C)?g=>C.includes(g.key):()=>!0}function Y3(...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=ft,eventName:i="keydown",passive:A=!1,dedupe:n=!1}=e,s=Q6(g);return _t(t,i,a=>{a.repeat&&_(n)||s(a)&&I(a)},A)}const O6={[JA.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")Y3(t,g.value,{target:C});else{const[i,A]=g.value;Y3(t,i,{target:C,...A})}}},U6=500,E6=10;function _y(C,g,I){var e,t;const i=l.computed(()=>Te(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[y,R,X]=[s,n,o];if(a(),!(I!=null&&I.onMouseUp)||!R||!y||(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,F=Math.sqrt(K*K+D*D);I.onMouseUp(w.timeStamp-y,F,X)}function m(w){var B,p,Y,y;(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)},(y=I==null?void 0:I.delay)!=null?y:U6))}function Z(w){var B,p,Y,y;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)>=((y=I==null?void 0:I.distanceThreshold)!=null?y:E6)&&a()}const b={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,b),_t(i,"pointermove",Z,b),_t(i,["pointerup","pointerleave"],d,b)];return()=>h.forEach(w=>w())}const P6=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={[JA.mounted](C,g){typeof g.value=="function"?_y(C,g.value,{modifiers:g.modifiers}):_y(C,...g.value)}},_6=l.defineComponent({name:"UseActiveElement",setup(C,{slots:g}){const I=l.reactive({element:fy()});return()=>{if(g.default)return g.default(I)}}}),q6=l.defineComponent({name:"UseBattery",setup(C,{slots:g}){const I=l.reactive(cf(C));return()=>{if(g.default)return g.default(I)}}}),$6=l.defineComponent({name:"UseBrowserLocation",setup(C,{slots:g}){const I=l.reactive(Zf());return()=>{if(g.default)return g.default(I)}}}),g8=l.defineComponent({name:"UseClipboard",props:["source","read","navigator","copiedDuring","legacy"],setup(C,{slots:g}){const I=l.reactive(bf(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__",I8=C8();function C8(){return vw in Lw||(Lw[vw]=Lw[vw]||{}),Lw[vw]}function N3(C,g){return I8[C]||g}function e8(){const C=l.ref(!1),g=l.getCurrentInstance();return g&&l.onMounted(()=>{C.value=!0},g),C}function jw(C){const g=e8();return l.computed(()=>(g.value,!!C()))}function t8(C,g={}){const{window:I=ft}=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 i8(C){return t8("(prefers-color-scheme: dark)",C)}function A8(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 n8={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()}},V3="vueuse-storage";function l8(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=ft,eventFilter:m,onError:Z=F=>{console.error(F)},initOnMounted:b}=e,h=(a?l.shallowRef:l.ref)(typeof g=="function"?g():g);if(!I)try{I=N3("getDefaultStorage",()=>{var F;return(F=ft)==null?void 0:F.localStorage})()}catch(F){Z(F)}if(!I)return h;const G=_(g),w=A8(G),B=(t=e.serializer)!=null?t:n8[w],{pause:p,resume:Y}=xd(h,()=>R(h.value),{flush:i,deep:A,eventFilter:m});d&&n&&Ae(()=>{I instanceof Storage?_t(d,"storage",K):_t(d,V3,D),b&&K()}),b||K();function y(F,z){if(d){const v={key:C,oldValue:F,newValue:z,storageArea:I};d.dispatchEvent(I instanceof Storage?new StorageEvent("storage",v):new CustomEvent(V3,{detail:v}))}}function R(F){try{const z=I.getItem(C);if(F==null)y(z,null),I.removeItem(C);else{const v=B.write(F);z!==v&&(I.setItem(C,v),y(z,v))}}catch(z){Z(z)}}function X(F){const z=F?F.newValue:I.getItem(C);if(z==null)return s&&G!=null&&I.setItem(C,B.write(G)),G;if(!F&&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(F){if(!(F&&F.storageArea!==I)){if(F&&F.key==null){h.value=G;return}if(!(F&&F.key!==C)){p();try{(F==null?void 0:F.newValue)!==B.write(h.value)&&(h.value=X(F))}catch(z){Z(z)}finally{F?l.nextTick(Y):Y()}}}}function D(F){K(F.detail)}return h}const s8="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function o8(C={}){const{selector:g="html",attribute:I="class",initialValue:e="auto",window:t=ft,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=i8({window:t}),Z=l.computed(()=>m.value?"dark":"light"),b=s||(A==null?PC(e):l8(A,e,i,{window:t,listenToStorageChanges:n})),h=l.computed(()=>b.value==="auto"?Z.value:b.value),G=N3("updateHTMLAttrs",(Y,y,R)=>{const X=typeof Y=="string"?t==null?void 0:t.document.querySelector(Y):Te(Y);if(!X)return;const K=new Set,D=new Set;let F=null;if(y==="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 F={key:y,value:R};if(K.size===0&&D.size===0&&F===null)return;let z;a&&(z=t.document.createElement("style"),z.appendChild(document.createTextNode(s8)),t.document.head.appendChild(z));for(const v of K)X.classList.add(v);for(const v of D)X.classList.remove(v);F&&X.setAttribute(F.key,F.value),a&&(t.getComputedStyle(z).opacity,document.head.removeChild(z))});function w(Y){var y;G(g,I,(y=d[Y])!=null?y:Y)}function B(Y){C.onChanged?C.onChanged(Y,w):w(Y)}l.watch(h,B,{flush:"post",immediate:!0}),Ae(()=>B(h.value));const p=l.computed({get(){return o?b.value:h.value},set(Y){b.value=Y}});try{return Object.assign(p,{store:b,system:Z,state:h})}catch{return p}}const a8=l.defineComponent({name:"UseColorMode",props:["selector","attribute","modes","onChanged","storageKey","storage","emitAuto"],setup(C,{slots:g}){const I=o8(C),e=l.reactive({mode:I,system:I.system,store:I.store});return()=>{if(g.default)return g.default(e)}}}),d8=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:ef(I)});return()=>{if(g.default)return g.default(e)}}}),c8=l.defineComponent({name:"UseDeviceMotion",setup(C,{slots:g}){const I=l.reactive(Yf());return()=>{if(g.default)return g.default(I)}}}),m8=l.defineComponent({name:"UseDeviceOrientation",setup(C,{slots:g}){const I=l.reactive(Ky());return()=>{if(g.default)return g.default(I)}}}),r8=l.defineComponent({name:"UseDevicePixelRatio",setup(C,{slots:g}){const I=l.reactive({pixelRatio:yf()});return()=>{if(g.default)return g.default(I)}}}),Z8=l.defineComponent({name:"UseDevicesList",props:["onUpdated","requestPermissions","constraints"],setup(C,{slots:g}){const I=l.reactive(Nf(C));return()=>{if(g.default)return g.default(I)}}}),b8=l.defineComponent({name:"UseDocumentVisibility",setup(C,{slots:g}){const I=l.reactive({visibility:zy()});return()=>{if(g.default)return g.default(I)}}}),u8=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(Vf(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))}}}),h8=l.defineComponent({name:"UseElementBounding",props:["box","as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(Xf(I));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}});function X3(C,g={}){const{delayEnter:I=0,delayLeave:e=0,window:t=ft}=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 G8={[JA.mounted](C,g){const I=g.value;if(typeof I=="function"){const e=X3(C);l.watch(e,t=>I(t))}else{const[e,t]=I,i=X3(C,t);l.watch(i,A=>e(A))}}},w8=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=ft,...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=>Te(m)):[Te(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 W8(C,g={width:0,height:0},I={}){const{window:e=ft,box:t="content-box"}=I,i=l.computed(()=>{var d,m;return(m=(d=Te(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=Te(C);if(Z){const b=Z.getBoundingClientRect();A.value=b.width,n.value=b.height}}else if(m){const Z=Array.isArray(m)?m:[m];A.value=Z.reduce((b,{inlineSize:h})=>b+h,0),n.value=Z.reduce((b,{blockSize:h})=>b+h,0)}else A.value=d.contentRect.width,n.value=d.contentRect.height},I);Ae(()=>{const d=Te(C);d&&(A.value="offsetWidth"in d?d.offsetWidth:g.width,n.value="offsetHeight"in d?d.offsetHeight:g.height)});const o=l.watch(()=>Te(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 B8={[JA.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}=W8(C,...t);l.watch([i,A],([n,s])=>e({width:n,height:s}))}},p8=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=ft,immediate:n=!0}=I,s=jw(()=>A&&"IntersectionObserver"in A),o=l.computed(()=>{const b=_(C);return(Array.isArray(b)?b:[b]).map(Te).filter(Db)});let a=yI;const d=l.ref(n),m=s.value?l.watch(()=>[o.value,Te(e),d.value],([b,h])=>{if(a(),!d.value||!b.length)return;const G=new IntersectionObserver(g,{root:Te(h),rootMargin:t,threshold:i});b.forEach(w=>w&&G.observe(w)),a=()=>{G.disconnect(),a=yI}},{immediate:n,flush:"post"}):yI,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=ft,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 Y8={[JA.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})}}},y8=l.defineComponent({name:"UseEyeDropper",props:{sRGBHex:String},setup(C,{slots:g}){const I=l.reactive(Mf());return()=>{if(g.default)return g.default(I)}}}),N8=l.defineComponent({name:"UseFullscreen",props:["as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(Sf(I));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}}),V8=l.defineComponent({name:"UseGeolocation",props:["enableHighAccuracy","maximumAge","timeout","navigator"],setup(C,{slots:g}){const I=l.reactive(Df(C));return()=>{if(g.default)return g.default(I)}}}),X8=l.defineComponent({name:"UseIdle",props:["timeout","events","listenForVisibilityChange","initialState"],setup(C,{slots:g}){const I=l.reactive(kf(C.timeout,C));return()=>{if(g.default)return g.default(I)}}});function R8(C,g,I){const{immediate:e=!0,delay:t=0,onError:i=yI,onSuccess:A=yI,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 b(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&&b(t);const h={state:a,isReady:d,isLoading:m,error:Z,execute:b};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 M8(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 H8(C,g={}){const I=R8(()=>M8(_(C)),void 0,{resetOnExecute:!0,...g});return l.watch(()=>_(C),()=>I.execute(g.delay),{deep:!0}),I}const f8=l.defineComponent({name:"UseImage",props:["src","srcset","sizes","as","alt","class","loading","crossorigin","referrerPolicy"],setup(C,{slots:g}){const I=l.reactive(H8(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 R3=1;function IN(C,g={}){const{throttle:I=0,idle:e=200,onStop:t=yI,onScroll:i=yI,offset:A={left:0,right:0,top:0,bottom:0},eventListenerOptions:n={capture:!1,passive:!0},behavior:s="auto",window:o=ft,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)}}),b=l.computed({get(){return m.value},set(X){h(void 0,X)}});function h(X,K){var D,F,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:b.value,left:(F=_(X))!=null?F:Z.value,behavior:_(s)});const eg=((v=O==null?void 0:O.document)==null?void 0:v.documentElement)||(O==null?void 0:O.documentElement)||O;Z!=null&&(d.value=eg.scrollLeft),b!=null&&(m.value=eg.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),y=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)||Te(X),{display:F,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),eg=Math.abs(v)+D.clientWidth>=D.scrollWidth-(A.right||0)-R3;F==="flex"&&z==="row-reverse"?(w.left=eg,w.right=O):(w.left=O,w.right=eg),d.value=v;let E=D.scrollTop;X===o.document&&!E&&(E=o.document.body.scrollTop),B.top=E<m.value,B.bottom=E>m.value;const T=Math.abs(E)<=(A.top||0),q=Math.abs(E)+D.clientHeight>=D.scrollHeight-(A.bottom||0)-R3;F==="flex"&&z==="column-reverse"?(w.top=q,w.bottom=T):(w.top=T,w.bottom=q),m.value=E},R=X=>{var K;if(!o)return;const D=(K=X.target.documentElement)!=null?K:X.target;y(D),G.value=!0,Y(X),i(X)};return _t(C,"scroll",I?Rw(R,I,!0,!1):R,n),Ae(()=>{try{const X=_(C);if(!X)return;y(X)}catch(X){a(X)}}),_t(C,"scrollend",p,n),{x:Z,y:b,isScrolling:G,arrivedState:w,directions:B,measure(){const X=_(C);o&&X&&y(X)}}}function M3(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:b,clientHeight:h,scrollWidth:G,clientWidth:w}=a.value,B=t==="bottom"||t==="top"?b<=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 S8={[JA.mounted](C,g){typeof g.value=="function"?M3(C,g.value):M3(C,...g.value)}},D8={[JA.mounted](C,g){typeof g.value=="function"?$y(C,g.value):$y(C,...g.value)}},k8=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)}}}),F8=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(Jf({...C,target:I}));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}}),z8=l.defineComponent({name:"UseNetwork",setup(C,{slots:g}){const I=l.reactive(Qy());return()=>{if(g.default)return g.default(I)}}}),J8=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)}}}),x8=l.defineComponent({name:"UseObjectUrl",props:["object"],setup(C,{slots:g}){const I=PC(C,"object"),e=xf(I);return()=>{if(g.default&&e.value)return g.default(e)}}}),T8=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(Lf({...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)}}}),L8=l.defineComponent({name:"UseOnline",setup(C,{slots:g}){const I=l.reactive({isOnline:vf()});return()=>{if(g.default)return g.default(I)}}}),v8=l.defineComponent({name:"UsePageLeave",setup(C,{slots:g}){const I=l.reactive({isLeft:jf()});return()=>{if(g.default)return g.default(I)}}}),j8=l.defineComponent({name:"UsePointer",props:["pointerTypes","initialValue","target"],setup(C,{slots:g}){const I=l.ref(null),e=l.reactive(Uf({...C,target:C.target==="self"?I:ft}));return()=>{if(g.default)return g.default(e,{ref:I})}}}),Q8=l.defineComponent({name:"UsePointerLock",props:["as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(Ef(I));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}}),O8=l.defineComponent({name:"UsePreferredColorScheme",setup(C,{slots:g}){const I=l.reactive({colorScheme:Pf()});return()=>{if(g.default)return g.default(I)}}}),U8=l.defineComponent({name:"UsePreferredContrast",setup(C,{slots:g}){const I=l.reactive({contrast:_f()});return()=>{if(g.default)return g.default(I)}}}),E8=l.defineComponent({name:"UsePreferredDark",setup(C,{slots:g}){const I=l.reactive({prefersDark:Fw()});return()=>{if(g.default)return g.default(I)}}}),P8=l.defineComponent({name:"UsePreferredLanguages",setup(C,{slots:g}){const I=l.reactive({languages:qf()});return()=>{if(g.default)return g.default(I)}}}),_8=l.defineComponent({name:"UsePreferredReducedMotion",setup(C,{slots:g}){const I=l.reactive({motion:$f()});return()=>{if(g.default)return g.default(I)}}}),q8={[JA.mounted](C,g){typeof g.value=="function"?qy(C,g.value):qy(C,...g.value)}};function $8(C,g,I={}){const{window:e=ft,...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(Te).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=ft,initialValue:t,observe:i=!1}=I,A=l.ref(t),n=l.computed(()=>{var o;return Te(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 H3="--vueuse-safe-area-top",f3="--vueuse-safe-area-right",S3="--vueuse-safe-area-bottom",D3="--vueuse-safe-area-left";function g_(){const C=l.ref(""),g=l.ref(""),I=l.ref(""),e=l.ref("");if(ue){const i=Ow(H3),A=Ow(f3),n=Ow(S3),s=Ow(D3);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(H3),g.value=Uw(f3),I.value=Uw(S3),e.value=Uw(D3)}return{top:C,right:g,bottom:I,left:e,update:t}}function Uw(C){return getComputedStyle(document.documentElement).getPropertyValue(C)}const I_=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}=g_();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())}}}),C_={[JA.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 k3(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:k3(I)}}function e_(C){const g=C||window.event,I=g.target;return k3(I)?!1:g.touches.length>1?!0:(g.preventDefault&&g.preventDefault(),!1)}const CN=new WeakMap;function t_(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=>{e_(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 i_(){let C=!1;const g=l.ref(!1);return(I,e)=>{if(g.value=e.value,C)return;C=!0;const t=t_(I,e.value);l.watch(g,i=>t.value=i)}}const A_=i_(),n_=l.defineComponent({name:"UseTimeAgo",props:["time","updateInterval","max","fullDateFormatter","messages","showSecond"],setup(C,{slots:g}){const I=l.reactive(i3(()=>C.time,{...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),l_=l.defineComponent({name:"UseTimestamp",props:["immediate","interval","offset"],setup(C,{slots:g}){const I=l.reactive(n3({...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),s_=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}=a3(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!")))])}}),o_=l.defineComponent({name:"UseWindowFocus",setup(C,{slots:g}){const I=l.reactive({focused:w3()});return()=>{if(g.default)return g.default(I)}}}),a_=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 jI(C,g=document.documentElement){for(const[I,e]of Object.entries(C))g.style.setProperty(I,String(e))}const d_=["data-testid"],c_=["data-testid"],m_=["open","data-testid"],Mr=vg(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 b=n.value.getBoundingClientRect();if(!I.isUseAnchor)A.value.style.top=`${b.top+b.height}px`;else{jI({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,jI({transform:`translateY(${G}px)`},A.value)),h.right>window.innerWidth&&(w=-h.right+window.innerWidth-10,jI({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&&jI({"anchor-name":`${o.value}`},s.value),A.value&&jI({"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)}),(b,h)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{ref_key:"selectRef",ref:s,class:"select-list-yui-kit","data-testid":I.dataTestid},[l.renderSlot(b.$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(b.$slots,"header",{},void 0,!0)],42,c_)],!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(b.$slots,"options",{},void 0,!0)],10,m_),[[l.vShow,t.isOpened]])],8,d_)),[[l.unref(To),d,void 0,{bubble:!0}]])}}),[["__scopeId","data-v-ce305442"]]);function Lo(C){return C!==null&&typeof C=="object"&&"key"in C}function F3(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]),r_=["onClick","data-testid"],Z_={class:"options__value truncate-yui-kit"},b_={key:0,class:"options__used"},tN=vg(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",Z_,l.toDisplayString(s(d)),1),typeof d=="object"&&(d!=null&&d.used)?(l.openBlock(),l.createElementBlock("div",b_)):l.createCommentVNode("",!0)],2),l.renderSlot(o.$slots,"option",{inx:m},void 0,!0)],10,r_),l.renderSlot(o.$slots,"default",{},void 0,!0)],64))),128))}}),[["__scopeId","data-v-0d9d40e7"]]),u_=["data-testid"],iN=vg(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(F3(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(()=>{F3(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,u_),e.isOpened?(l.openBlock(),l.createBlock(Yg,{key:0,name:l.unref(mg).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(mg).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-446a42d7"]]);/**
|
|
721
|
+
`,fill:"none",viewbox:"0 0 24 24"},uploadCloud:uO,usersGroup:LO,warehouse:DO,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:zO,writeDowns:JO,zoomMinus:KU,zoomPlus:zU},Symbol.toStringTag,{value:"Module"})),JU=["data-testid","fill","viewBox"],xU=["innerHTML"],TU=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,xU)],12,JU)}}}),vg=(C,g)=>{const I=C.__vccOpts||C;for(const[e,t]of g)I[e]=t;return I},Yg=vg(TU,[["__scopeId","data-v-ee4d5302"]]),LU=["data-testid"],vU=["data-testid"],jU=l.defineComponent({__name:"Badges",props:{text:{},type:{default:QI.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===QI.default,"blue-yui-kit":e.type===QI.blue,"light-blue-yui-kit":e.type===QI.lightBlue,"contrast-blue-yui-kit":e.type===QI.contrastBlue,"green-yui-kit":e.type===QI.green,"orange-yui-kit":e.type===QI.orange,"red-yui-kit":e.type===QI.red,"pink-yui-kit":e.type===QI.pink,"violet-yui-kit":e.type===QI.violet,"yellow-yui-kit":e.type===QI.yellow,"choosed-yui-kit":e.choosed||i.choosed,"disabled-yui-kit":e.type===QI.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,b)=>(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,vU),l.createVNode(Yg,{class:"close-icon",width:10,height:10,"data-testid":`${e.dataTestid}-Icon`,name:l.unref(mg).closeTag,onClick:d},null,8,["data-testid","name"])],10,LU))}}),Ht=vg(jU,[["__scopeId","data-v-c4feb762"]]),QU=["data-testid"],OU=["data-testid"],UU=["data-testid"],EU=["data-testid"],PU=["data-testid"],_U=["data-testid"],qU=["title","onClick","data-testid"],$U=["data-testid"],g7=["onClick","data-testid"],I7=["data-testid"],Gy=25,wy=vg(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},b)=>{Z===d.path&&e("click",{title:d.title,path:d.path,inx:b+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,b)=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(i.value.crumbs),key:Z.path,"data-testid":`${I.dataTestid}-Crumbs${b}`},[a(b)?(l.openBlock(),l.createElementBlock("div",{key:0,"data-testid":`${I.dataTestid}-ShowSubList${b}`},[l.createElementVNode("span",{class:"bread-crumbs-yui-kit--closed",onClick:s,"data-testid":`${I.dataTestid}-Closed${b}`},"...",8,EU),l.createElementVNode("ul",{class:l.normalizeClass(A.value.crumbs),"data-testid":`${I.dataTestid}-Crumbs${b}`},[(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,qU)],10,_U))),128))],10,PU)],8,UU)):l.createCommentVNode("",!0),Z.isSub?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(t.getClassesLink(Z,b===t.crumbs.length-1)),"data-testid":`${I.dataTestid}-Classes${b}`},[l.createElementVNode("span",{class:l.normalizeClass(t.getClassesSpan(b)),onClick:h=>n(Z,b),"data-testid":`${I.dataTestid}-Checked${b}`},[l.createTextVNode(l.toDisplayString(b!==t.crumbs.length-1?o(Z):Z.title),1),t.fullTitle(Z)&&b!==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,I7)):l.createCommentVNode("",!0)],10,g7),b!==t.crumbs.length-1?(l.openBlock(),l.createBlock(Yg,{key:0,name:l.unref(mg).rightSmall,"data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"])):l.createCommentVNode("",!0)],10,$U))],10,OU))),128))],8,QU))}}),[["__scopeId","data-v-51f9caca"]]);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 C7=["disabled","data-testid"],e7=["data-testid"],t7=["data-testid"],i7=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,e7)):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,t7)):l.createCommentVNode("",!0)],46,C7))}}),nI=vg(i7,[["__scopeId","data-v-51d1e6f6"]]),A7=["data-testid"],n7=["data-testid","onClick"],Nw=vg(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_minor":I.theme==="minor","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:b=>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,n7))),128))],10,A7))}}),[["__scopeId","data-v-0e16a92a"]]);function kH(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 mt(){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 l7(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,FH=(...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)},KH=(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 s7(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 KH(I,n),n},()=>FH(I,e)]}function o7(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 zH(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 a7(C,g){return g==null?l.unref(C):l.unref(C)[g]}function d7(C){return l.unref(C)!=null}function JH(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 c7=_;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 m7(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 xH(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 xH(l.computed(C))}function r7(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 JA={mounted:"mounted",updated:"updated",unmounted:"unmounted"},ue=typeof window<"u"&&typeof document<"u",TH=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,LH=C=>typeof C<"u",Db=C=>C!=null,Z7=(C,...g)=>{C||console.warn(...g)},b7=Object.prototype.toString,Wr=C=>b7.call(C)==="[object Object]",u7=()=>Date.now(),Kd=()=>+Date.now(),Vw=(C,g,I)=>Math.min(I,Math.max(g,C)),yI=()=>{},h7=(C,g)=>(C=Math.ceil(C),g=Math.floor(g),Math.floor(Math.random()*(g-C+1))+C),vH=(C,g)=>Object.prototype.hasOwnProperty.call(C,g),zd=G7();function G7(){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=yI;const i=n=>{clearTimeout(n),t(),t=yI};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=yI,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=yI)};return m=>{const Z=_(A),b=Date.now()-g,h=()=>i=m();return a(),Z<=0?(g=Date.now(),h()):(b>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-b))})),!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 jH(C){const g=Object.create(null);return I=>g[I]||(g[I]=C(I))}const w7=/\B([A-Z])/g,W7=jH(C=>C.replace(w7,"-$1").toLowerCase()),B7=/-(\w)/g,QH=jH(C=>C.replace(B7,(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 OH(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 p7(C){return C()}function Ny(C,...g){return g.some(I=>I in C)}function UH(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 EH(C,g,I=!1){return g.reduce((e,t)=>(t in C&&(!I||C[t]!==void 0)&&(e[t]=C[t]),e),{})}function PH(C,g,I=!1){return Object.fromEntries(Object.entries(C).filter(([e,t])=>(!I||t!==void 0)&&!g.includes(e)))}function _H(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:yI}))):l.ref(g)}const Y7=PC;function y7(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 qH(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 N7(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 $H(C,g={}){let I=C,e,t;const i=l.customRef((m,Z)=>(e=m,t=Z,{get(){return A()},set(b){n(b)}}));function A(m=!0){return m&&e(),I}function n(m,Z=!0){var b,h;if(m===I)return;const G=I;((b=g.onBeforeChange)==null?void 0:b.call(g,m,G))!==!1&&(I=m,(h=g.onChanged)==null||h.call(g,m,G),Z&&t())}return zH(i,{get:A,set:n,untrackedGet:()=>A(!1),silentSet:m=>n(m,!1),peek:()=>A(!1),lay:m=>n(m,!1)},{enumerable:!0})}const V7=$H;function X7(...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 R7(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 M7(C,g=!0,I){Kb(I)?l.onBeforeMount(C,I):g?C():l.nextTick(C)}function gf(C,g){Kb(g)&&l.onBeforeUnmount(C,g)}function Ae(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:b,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 b!=null&&B.push(Br(b,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:b=!1,timeout:h,throwOnTimeout:G}=m??{};let w=null;const p=[new Promise(Y=>{w=l.watch([C,d],([y,R])=>{g!==(y===R)&&(w?w():l.nextTick(()=>w==null?void 0:w()),Y(y))},{flush:Z,deep:b,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 b=Array.from(Z);return b.includes(d)||b.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 H7(C,g){return C===g}function f7(...C){var g;const I=C[0],e=C[1];let t=(g=C[2])!=null?g:H7;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 S7(C,g){return l.computed(()=>_(C).every((I,e,t)=>g(_(I),e,t)))}function D7(C,g){return l.computed(()=>_(C).map(I=>_(I)).filter(g))}function k7(C,g){return l.computed(()=>_(_(C).find((I,e,t)=>g(_(I),e,t))))}function F7(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 z7(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 J7(C){return Wr(C)&&Ny(C,"formIndex","comparator")}function x7(...C){var g;const I=C[0],e=C[1];let t=C[2],i=0;if(J7(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 T7(C,g){return l.computed(()=>_(C).map(I=>_(I)).join(_(g)))}function L7(C,g){return l.computed(()=>_(C).map(I=>_(I)).map(g))}function v7(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 j7(C,g){return l.computed(()=>_(C).some((I,e,t)=>g(_(I),e,t)))}function Q7(C){return Array.from(new Set(C))}function O7(C,g){return C.reduce((I,e)=>(I.some(t=>g(e,t,C))||I.push(e),I),[])}function U7(C,g){return l.computed(()=>{const I=_(C).map(e=>_(e));return g?O7(I,g):Q7(I)})}function E7(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 P7=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,_7=/[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 q7(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 If(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:q7,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(_7,(b,h)=>{var G,w;return(w=h??((G=Z[b])==null?void 0:G.call(Z)))!=null?w:b})}function Cf(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(P7);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(()=>If(Cf(_(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 gE(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 IE(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 CE(C=1e3,g={}){const{controls:I=!1,callback:e}=g,t=Nr(e??yI,C,g),i=l.computed(()=>!t.isPending.value);return I?{ready:i,...t}:i}function eE(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 tE(C){return l.computed(()=>`${_(C)}`)}function ef(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 iE(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 AE(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 tf(C,g,I={}){const{debounce:e=0,maxWait:t=void 0,...i}=I;return Yr(C,g,{...i,eventFilter:Xw(e,{maxWait:t})})}function nE(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 lE(C,g,I){return l.watch(C,g,{...I,immediate:!0})}function sE(C,g,I){const e=l.watch(C,(...t)=>(l.nextTick(()=>e()),g(...t)),I);return e}function Af(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 oE(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(aE(C),dE(C))}),a}}}function aE(C){return l.isReactive(C)?C:Array.isArray(C)?C.map(g=>_(g)):_(C)}function dE(C){return Array.isArray(C)?C.map(()=>{}):void 0}function nf(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 lf(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=yI}=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 b=await C(h=>{d(()=>{i&&(i.value=!1),Z||h()})});m===a&&(o.value=b)}catch(b){n(b)}finally{i&&m===a&&(i.value=!1),Z=!0}}),t?l.computed(()=>(s.value=!0,o.value)):o}function cE(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 mE(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,{...rE(A),$slots:n});return g&&(o==null?void 0:o.length)===1?o[0]:o}}});return JH({define:e,reuse:t},[e,t])}function rE(C){const g={};for(const I in C)g[QH(I)]=C[I];return g}function ZE(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 bE(C){return function(...g){return C.apply(this,g.map(I=>_(I)))}}const Pg=ue?window:void 0,Pt=ue?window.document:void 0,Ri=ue?window.navigator:void 0,uE=ue?window.location:void 0;function FI(C){var g;const I=_(C);return(g=I==null?void 0:I.$el)!=null?g:I}function ug(...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 yI;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(()=>[FI(g),_(t)],([a,d])=>{if(A(),!a)return;const m=Wr(d)?{...d}:d;i.push(...I.flatMap(Z=>e.map(b=>n(a,Z,b,m))))},{immediate:!0,flush:"post"}),o=()=>{s(),A()};return GI(o),o}let sf=!1;function of(C,g,I={}){const{window:e=Pg,ignore:t=[],capture:i=!0,detectIframe:A=!1}=I;if(!e)return yI;zd&&!sf&&(sf=!0,Array.from(e.document.body.children).forEach(h=>h.addEventListener("click",yI)),e.document.documentElement.addEventListener("click",yI));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=FI(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=FI(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=[ug(e,"click",h=>{m||(m=!0,setTimeout(()=>{m=!1},0),d(h))},{passive:!0,capture:i}),ug(e,"pointerdown",h=>{const G=FI(C);n=!s(h)&&!!(G&&!h.composedPath().includes(G))},{passive:!0}),A&&ug(e,"blur",h=>{setTimeout(()=>{var G;const w=FI(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 hE(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=hE(g);return ug(t,i,a=>{a.repeat&&_(n)||s(a)&&I(a)},A)}function GE(C,g,I={}){return Hw(C,g,{...I,eventName:"keydown"})}function wE(C,g,I={}){return Hw(C,g,{...I,eventName:"keypress"})}function WE(C,g,I={}){return Hw(C,g,{...I,eventName:"keyup"})}const BE=500,pE=10;function YE(C,g,I){var e,t;const i=l.computed(()=>FI(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[y,R,X]=[s,n,o];if(a(),!(I!=null&&I.onMouseUp)||!R||!y||(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,F=Math.sqrt(K*K+D*D);I.onMouseUp(w.timeStamp-y,F,X)}function m(w){var B,p,Y,y;(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)},(y=I==null?void 0:I.delay)!=null?y:BE))}function Z(w){var B,p,Y,y;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)>=((y=I==null?void 0:I.distanceThreshold)!=null?y:pE)&&a()}const b={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=[ug(i,"pointerdown",m,b),ug(i,"pointermove",Z,b),ug(i,["pointerup","pointerleave"],d,b)];return()=>h.forEach(w=>w())}function yE(){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 NE({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 VE(C,g={}){const{document:I=Pt}=g;I&&ug(I,"keydown",t=>{!yE()&&NE(t)&&C(t)},{passive:!0})}function XE(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 Ae(e),l.onUpdated(e),t}function af(){const C=l.ref(!1),g=l.getCurrentInstance();return g&&l.onMounted(()=>{C.value=!0},g),C}function TI(C){const g=af();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(FI).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&&(ug(I,"blur",o=>{o.relatedTarget===null&&s()},!0),ug(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 RE(C,g,I){let e,t;Wr(I)?(e=I,t=PH(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),b=l.shallowReactive({startTime:null,currentTime:null,timeline:null,playbackRate:o,pending:!1,playState:A?"idle":"paused",replaceState:"active"}),h=l.computed(()=>b.pending),G=l.computed(()=>b.playState),w=l.computed(()=>b.replaceState),B=l.computed({get(){return b.startTime},set(T){b.startTime=T,Z.value&&(Z.value.startTime=T)}}),p=l.computed({get(){return b.currentTime},set(T){b.currentTime=T,Z.value&&(Z.value.currentTime=T,eg())}}),Y=l.computed({get(){return b.timeline},set(T){b.timeline=T,Z.value&&(Z.value.timeline=T)}}),y=l.computed({get(){return b.playbackRate},set(T){b.playbackRate=T,Z.value&&(Z.value.playbackRate=T)}}),R=()=>{if(Z.value)try{Z.value.play(),eg()}catch(T){E(),d(T)}else z()},X=()=>{var T;try{(T=Z.value)==null||T.pause(),E()}catch(q){d(q)}},K=()=>{var T;Z.value||z();try{(T=Z.value)==null||T.reverse(),eg()}catch(q){E(),d(q)}},D=()=>{var T;try{(T=Z.value)==null||T.finish(),E()}catch(q){d(q)}},F=()=>{var T;try{(T=Z.value)==null||T.cancel(),E()}catch(q){d(q)}};l.watch(()=>FI(C),T=>{T&&z()}),l.watch(()=>g,T=>{Z.value&&z(),!FI(C)&&Z.value&&(Z.value.effect=new KeyframeEffect(FI(C),_(T),t))},{deep:!0}),Ae(()=>z(!0),!1),GI(F);function z(T){const q=FI(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():eg(),a==null||a(Z.value))}ug(Z,["cancel","finish","remove"],E),ug(Z,"finish",()=>{var T;n&&((T=Z.value)==null||T.commitStyles())});const{resume:v,pause:O}=Ld(()=>{Z.value&&(b.pending=Z.value.pending,b.playState=Z.value.playState,b.replaceState=Z.value.replaceState,b.startTime=Z.value.startTime,b.currentTime=Z.value.currentTime,b.timeline=Z.value.timeline,b.playbackRate=Z.value.playbackRate)},{immediate:!1});function eg(){m.value&&v()}function E(){m.value&&i&&i.requestAnimationFrame(O)}return{isSupported:m,animate:Z,play:R,pause:X,reverse:K,finish:D,cancel:F,pending:h,playState:G,replaceState:w,startTime:B,currentTime:p,timeline:Y,playbackRate:y}}function ME(C,g){const{interrupt:I=!0,onError:e=yI,onFinished:t=yI,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 b;if(i!=null&&i.aborted){a(A.aborted,new Error("aborted"));return}if(((b=s[o.value])==null?void 0:b.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,HE(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 HE(C){return new Promise((g,I)=>{const e=new Error("aborted");C.aborted?I(e):C.addEventListener("abort",()=>I(e),{once:!0})})}function df(C,g,I){const{immediate:e=!0,delay:t=0,onError:i=yI,onSuccess:A=yI,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 b(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&&b(t);const h={state:a,isReady:d,isLoading:m,error:Z,execute:b};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 fE(C){return C?C instanceof Map?zb.map:C instanceof Set?zb.set:Array.isArray(C)?zb.array:zb.object:zb.null}function SE(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",DE(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)||fE(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 DE(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 cf(C={}){const{navigator:g=Ri}=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),ug(s,I,o,{passive:!0})}),{isSupported:e,charging:t,chargingTime:i,dischargingTime:A,level:n}}function kE(C){let{acceptAllDevices:g=!1}=C||{};const{filters:I=void 0,optionalServices:e=void 0,navigator:t=Ri}=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 Ae(()=>{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 Mi(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 FE={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},KE={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},mf={xs:0,sm:600,md:960,lg:1264,xl:1904},zE={xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560},JE=mf,xE={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},TE={xs:0,sm:600,md:1024,lg:1440,xl:1920},LE={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},vE={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},jE={sm:576,md:768,lg:992,xl:1200},QE={xs:0,sm:768,md:992,lg:1200,xl:1920};function OE(C,g={}){function I(a,d){let m=_(C[_(a)]);return d!=null&&(m=UH(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=>Mi(()=>`(min-width: ${I(a)})`,g),n=a=>Mi(()=>`(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 Mi(()=>`(min-width: ${I(a,.1)})`,g)},smaller(a){return Mi(()=>`(max-width: ${I(a,-.1)})`,g)},between(a,d){return Mi(()=>`(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 UE(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&&Ae(()=>{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 rf=["hash","host","hostname","href","pathname","port","protocol","search"];function Zf(C={}){const{window:g=Pg}=C,I=Object.fromEntries(rf.map(i=>[i,l.ref()]));for(const[i,A]of _H(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 rf)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&&(ug(g,"popstate",()=>t.value=e("popstate"),{passive:!0}),ug(g,"hashchange",()=>t.value=e("hashchange"),{passive:!0})),t}function EE(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=Ri}=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"};ug(i,"change",s);const o=OH(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 bf(C={}){const{navigator:g=Ri,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&&ug(["copy","cut"],Z);async function b(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:b}}function PE(C={}){const{navigator:g=Ri,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&&ug(["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 _E(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__",uf=qE();function qE(){return Dw in Sw||(Sw[Dw]=Sw[Dw]||{}),Sw[Dw]}function kw(C,g){return uf[C]||g}function $E(C,g){uf[C]=g}function Fw(C){return Mi("(prefers-color-scheme: dark)",C)}function hf(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=F=>{console.error(F)},initOnMounted:b}=e,h=(a?l.shallowRef:l.ref)(typeof g=="function"?g():g);if(!I)try{I=kw("getDefaultStorage",()=>{var F;return(F=Pg)==null?void 0:F.localStorage})()}catch(F){Z(F)}if(!I)return h;const G=_(g),w=hf(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&&Ae(()=>{I instanceof Storage?ug(d,"storage",K):ug(d,ky,D),b&&K()}),b||K();function y(F,z){if(d){const v={key:C,oldValue:F,newValue:z,storageArea:I};d.dispatchEvent(I instanceof Storage?new StorageEvent("storage",v):new CustomEvent(ky,{detail:v}))}}function R(F){try{const z=I.getItem(C);if(F==null)y(z,null),I.removeItem(C);else{const v=B.write(F);z!==v&&(I.setItem(C,v),y(z,v))}}catch(z){Z(z)}}function X(F){const z=F?F.newValue:I.getItem(C);if(z==null)return s&&G!=null&&I.setItem(C,B.write(G)),G;if(!F&&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(F){if(!(F&&F.storageArea!==I)){if(F&&F.key==null){h.value=G;return}if(!(F&&F.key!==C)){p();try{(F==null?void 0:F.newValue)!==B.write(h.value)&&(h.value=X(F))}catch(z){Z(z)}finally{F?l.nextTick(Y):Y()}}}}function D(F){K(F.detail)}return h}const gP="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Gf(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"),b=s||(A==null?PC(e):xb(A,e,i,{window:t,listenToStorageChanges:n})),h=l.computed(()=>b.value==="auto"?Z.value:b.value),G=kw("updateHTMLAttrs",(Y,y,R)=>{const X=typeof Y=="string"?t==null?void 0:t.document.querySelector(Y):FI(Y);if(!X)return;const K=new Set,D=new Set;let F=null;if(y==="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 F={key:y,value:R};if(K.size===0&&D.size===0&&F===null)return;let z;a&&(z=t.document.createElement("style"),z.appendChild(document.createTextNode(gP)),t.document.head.appendChild(z));for(const v of K)X.classList.add(v);for(const v of D)X.classList.remove(v);F&&X.setAttribute(F.key,F.value),a&&(t.getComputedStyle(z).opacity,document.head.removeChild(z))});function w(Y){var y;G(g,I,(y=d[Y])!=null?y:Y)}function B(Y){C.onChanged?C.onChanged(Y,w):w(Y)}l.watch(h,B,{flush:"post",immediate:!0}),Ae(()=>B(h.value));const p=l.computed({get(){return o?b.value:h.value},set(Y){b.value=Y}});try{return Object.assign(p,{store:b,system:Z,state:h})}catch{return p}}function IP(C=l.ref(!1)){const g=mt(),I=mt(),e=mt();let t=yI;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 FI(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 wf(C){const g=l.getCurrentInstance(),I=Wy(()=>null,()=>C?FI(C):g.proxy.$el);return l.onUpdated(I.trigger),l.onMounted(I.trigger),I}function CP(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,b=d[Z];return I.value=b,b}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=Gf({...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 Bf(C){return C}function eP(C,g){return C.value=g}function tP(C){return C?typeof C=="function"?C:Jb:Bf}function iP(C){return C?typeof C=="function"?C:Jb:Bf}function pf(C,g={}){const{clone:I=!1,dump:e=tP(I),parse:t=iP(I),setSource:i=eP}=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))},b=()=>{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:b}}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,y){a(),o(()=>{Y.value=y})}const Z=pf(C,{...g,clone:g.clone||I,setSource:m}),{clear:b,commit:h}=Z;function G(){a(),h()}function w(Y){n(),Y&&G()}function B(Y){let y=!1;const R=()=>y=!0;o(()=>{Y(R)}),y||G()}function p(){d(),b()}return{...Z,isTracking:s,pause:A,resume:w,commit:G,batch:B,dispose:p}}function AP(C,g={}){const I=g.debounce?Xw(g.debounce):void 0;return{...Fy(C,{...g,eventFilter:I})}}function Yf(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});ug(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&&ug(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 Nf(C={}){const{navigator:g=Ri,requestPermissions:I=!1,constraints:e={audio:!0,video:!0},onUpdated:t}=C,i=l.ref([]),A=l.computed(()=>i.value.filter(b=>b.kind==="videoinput")),n=l.computed(()=>i.value.filter(b=>b.kind==="audioinput")),s=l.computed(()=>i.value.filter(b=>b.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(b=>b.stop()),d=null))}async function Z(){if(!o.value)return!1;if(a.value)return!0;const{state:b,query:h}=fw("camera",{controls:!0});if(await h(),b.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(),ug(g.mediaDevices,"devicechange",m),m()),{devices:i,ensurePermissions:Z,permissionGranted:a,videoInputs:A,audioInputs:n,audioOutputs:s,isSupported:o}}function nP(C={}){var g;const I=l.ref((g=C.enabled)!=null?g:!1),e=C.video,t=C.audio,{navigator:i=Ri}=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(b=>b.addEventListener("ended",d)),s.value}async function a(){var Z;(Z=s.value)==null||Z.getTracks().forEach(b=>b.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 ug(g,"visibilitychange",()=>{I.value=g.visibilityState}),I}function Vf(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:b,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()},y=K=>{var D;if(!_(G).includes(K.button)||_(g.disabled)||!p(K)||_(n)&&K.target!==_(C))return;const F=_(b),z=(D=F==null?void 0:F.getBoundingClientRect)==null?void 0:D.call(F),v=_(C).getBoundingClientRect(),O={x:K.clientX-(F?v.left-z.left+F.scrollLeft:v.left),y:K.clientY-(F?v.top-z.top+F.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=_(b),F=_(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-F.width))),(m==="y"||m==="both")&&(v=K.clientY-B.value.y,D&&(v=Math.min(Math.max(0,v),D.scrollHeight-F.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};ug(h,"pointerdown",y,K),ug(Z,"pointermove",R,K),ug(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 lP(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),y=o||B.length<=1;return Y&&y},b=(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 y=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=y,(Y=s.onDrop)==null||Y.call(s,y,h));break}};ug(C,"dragenter",h=>b(h,"enter")),ug(C,"dragover",h=>b(h,"over")),ug(C,"dragleave",h=>b(h,"leave")),ug(C,"drop",h=>b(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=>FI(m)):[FI(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 Xf(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),b=l.ref(0);function h(){const w=FI(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,b.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,b.value=B.y}function G(){A==="sync"?h():A==="next-frame"&&requestAnimationFrame(()=>h())}return Kw(C,G),l.watch(()=>FI(C),w=>!w&&G()),Xr(C,G,{attributeFilter:["style","class"]}),t&&ug("scroll",G,{capture:!0,passive:!0}),e&&ug("resize",G,{passive:!0}),Ae(()=>{i&&G()}),{height:n,bottom:s,left:o,right:a,top:d,width:m,x:Z,y:b,update:G}}function sP(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 oP(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&&(ug(C,"mouseenter",()=>n(!0),{passive:!0}),ug(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=FI(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=FI(C);if(Z){const b=Z.getBoundingClientRect();A.value=b.width,n.value=b.height}}else if(m){const Z=Array.isArray(m)?m:[m];A.value=Z.reduce((b,{inlineSize:h})=>b+h,0),n.value=Z.reduce((b,{blockSize:h})=>b+h,0)}else A.value=d.contentRect.width,n.value=d.contentRect.height},I);Ae(()=>{const d=FI(C);d&&(A.value="offsetWidth"in d?d.offsetWidth:g.width,n.value="offsetHeight"in d?d.offsetHeight:g.height)});const o=l.watch(()=>FI(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 Rf(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 b=_(C);return(Array.isArray(b)?b:[b]).map(FI).filter(Db)});let a=yI;const d=l.ref(n),m=s.value?l.watch(()=>[o.value,FI(e),d.value],([b,h])=>{if(a(),!d.value||!b.length)return;const G=new IntersectionObserver(g,{root:FI(h),rootMargin:t,threshold:i});b.forEach(w=>w&&G.observe(w)),a=()=>{G.disconnect(),a=yI}},{immediate:n,flush:"post"}):yI,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 Rf(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 aP(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 dP(C){return C===!0?{}:C}function cP(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,b=()=>{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:y}=dP(I.autoReconnect);d+=1,typeof p=="number"&&(p<0||d<p)||typeof p=="function"&&p()?setTimeout(h,Y):y==null||y()}},w.onmessage=B=>{e.value=null,t.value=B.data,o.value=B.lastEventId};for(const B of g)ug(w,B,p=>{e.value=B,t.value=p.data||null})},G=()=>{ue&&(b(),a=!1,d=0,h())};return Z&&l.watch(s,G,{immediate:!0}),GI(b),{eventSource:A,event:e,data:t,status:i,error:n,open:G,close:b,lastEventId:o}}function Mf(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 mP(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 rP={json:"application/json",text:"text/plain"};function zw(C){return C&&Ny(C,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const ZP=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function bP(C){return ZP.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 uP(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&&!bP(d)?hP(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)}),Hf(n,o,s)}return t}function Hf(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=mt(),d=mt(),m=mt(),Z=l.ref(!1),b=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&&b.value);let y,R;const X=()=>{e&&(y==null||y.abort(),y=new AbortController,y.signal.onabort=()=>h.value=!0,t={...t,signal:y.signal})},K=T=>{b.value=T,Z.value=!T};o&&(R=Nr(X,o,{immediate:!1}));let D=0;const F=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),Rg=_(A.payload),gI=Object.getPrototypeOf(Rg);!A.payloadType&&Rg&&(gI===Object.prototype||Array.isArray(gI))&&!(Rg instanceof FormData)&&(A.payloadType="json"),A.payloadType&&(kg["Content-Type"]=(q=rP[A.payloadType])!=null?q:A.payloadType),Wg.body=A.payloadType==="json"?JSON.stringify(Rg):Rg}let fg=!1;const Vg={url:_(C),options:{...Wg,...t},cancel:()=>{fg=!0}};if(i.beforeFetch&&Object.assign(Vg,await i.beforeFetch(Vg)),fg||!n)return K(!1),Promise.resolve(null);let Bg=null;return R&&R.start(),n(Vg.url,{...Wg,...Vg.options,headers:{...vb(Wg.headers),...vb((cg=Vg.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 Rg=kg.message||kg.name;if(i.onFetchError&&({error:Rg,data:Bg}=await i.onFetchError({data:Bg,error:kg,response:w.value})),B.value=Rg,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&&F(),{deep:!0});const v={isFinished:l.readonly(Z),isFetching:l.readonly(b),statusCode:G,response:w,error:B,data:p,canAbort:Y,aborted:h,abort:X,execute:F,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:E("json"),text:E("text"),blob:E("blob"),arrayBuffer:E("arrayBuffer"),formData:E("formData")};function O(T){return(q,cg)=>{if(!b.value)return A.method=T,A.payload=q,A.payloadType=cg,l.isRef(A.payload)&&l.watch([z,PC(A.payload)],([og])=>og&&F(),{deep:!0}),{...v,then(og,Wg){return eg().then(og,Wg)}}}}function eg(){return new Promise((T,q)=>{yr(Z).toBe(!0).then(()=>T(v)).catch(q)})}function E(T){return()=>{if(!b.value)return A.type=T,{...v,then(q,cg){return eg().then(q,cg)}}}}return i.immediate&&Promise.resolve().then(()=>F()),{...v,then(T,q){return eg().then(T,q)}}}function hP(C,g){return!C.endsWith("/")&&!g.startsWith("/")?`${C}/${g}`:C.endsWith("/")&&g.startsWith("/")?`${C.slice(0,-1)}${g}`:`${C}${g}`}const GP={multiple:!0,accept:"*",reset:!1,directory:!1};function wP(C={}){const{document:g=Pt}=C,I=l.ref(null),{on:e,trigger:t}=mt(),{on:i,trigger:A}=mt();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={...GP,...C,...a};n.multiple=d.multiple,n.accept=d.accept,n.webkitdirectory=d.directory,vH(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 WP(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 b(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:b,saveAs:h,updateData:w}}function BP(C,g={}){const{initialValue:I=!1,focusVisible:e=!1,preventScroll:t=!1}=g,i=l.ref(!1),A=l.computed(()=>FI(C));ug(A,"focus",s=>{var o,a;(!e||(a=(o=s.target).matches)!=null&&a.call(o,":focus-visible"))&&(i.value=!0)}),ug(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 pP="focusin",YP="focusout";function yP(C,g={}){const{window:I=Pg}=g,e=l.computed(()=>FI(C)),t=l.ref(!1),i=l.computed(()=>t.value),A=fy(g);return!I||!A.value?{focused:i}:(ug(e,pP,()=>t.value=!0),ug(e,YP,()=>t.value=!1),{focused:i})}function NP(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 ff=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Sf(C,g={}){const{document:I=Pt,autoExit:e=!1}=g,t=l.computed(()=>{var w;return(w=FI(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 b(){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():b())}const G=()=>{const w=m();(!w||w&&d())&&(i.value=w)};return ug(I,ff,G,!1),ug(()=>FI(t),ff,G,!1),e&&GI(Z),{isSupported:a,isFullscreen:i,enter:b,exit:Z,toggle:h}}function VP(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 XP(C={}){const{navigator:g=Ri}=C,I=TI(()=>g&&"getGamepads"in g),e=l.ref([]),t=mt(),i=mt(),A=Z=>{const b=[],h="vibrationActuator"in Z?Z.vibrationActuator:null;return h&&b.push(h),Z.hapticActuators&&b.push(...Z.hapticActuators),{id:Z.id,index:Z.index,connected:Z.connected,mapping:Z.mapping,timestamp:Z.timestamp,vibrationActuator:Z.vibrationActuator,hapticActuators:b,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 b of Z)b&&e.value[b.index]&&(e.value[b.index]=A(b))},{isActive:s,pause:o,resume:a}=Ld(n),d=Z=>{e.value.some(({index:b})=>b===Z.index)||(e.value.push(A(Z)),t.trigger(Z.index)),a()},m=Z=>{e.value=e.value.filter(b=>b.index!==Z.index),i.trigger(Z.index)};return ug("gamepadconnected",Z=>d(Z.gamepad)),ug("gamepaddisconnected",Z=>m(Z.gamepad)),Ae(()=>{const Z=(g==null?void 0:g.getGamepads())||[];for(const b of Z)b&&e.value[b.index]&&d(b)}),o(),{isSupported:I,onConnected:t.on,onDisconnected:i.on,gamepads:e,pause:o,resume:a,isActive:s}}function Df(C={}){const{enableHighAccuracy:g=!0,maximumAge:I=3e4,timeout:e=27e3,navigator:t=Ri,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(b){n.value=b.timestamp,o.value=b.coords,s.value=null}let d;function m(){A.value&&(d=t.geolocation.watchPosition(a,b=>s.value=b,{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 RP=["mousemove","mousedown","resize","keydown","touchstart","wheel"],MP=6e4;function kf(C=MP,g={}){const{initialState:I=!1,listenForVisibilityChange:e=!0,events:t=RP,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)ug(i,Z,d,{passive:!0});e&&ug(m,"visibilitychange",()=>{m.hidden||d()}),a()}return{idle:n,lastActive:s,reset:a}}async function HP(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 fP(C,g={}){const I=df(()=>HP(_(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 Ff=1;function Kf(C,g={}){const{throttle:I=0,idle:e=200,onStop:t=yI,onScroll:i=yI,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)}}),b=l.computed({get(){return m.value},set(X){h(void 0,X)}});function h(X,K){var D,F,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:b.value,left:(F=_(X))!=null?F:Z.value,behavior:_(s)});const eg=((v=O==null?void 0:O.document)==null?void 0:v.documentElement)||(O==null?void 0:O.documentElement)||O;Z!=null&&(d.value=eg.scrollLeft),b!=null&&(m.value=eg.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),y=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)||FI(X),{display:F,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),eg=Math.abs(v)+D.clientWidth>=D.scrollWidth-(A.right||0)-Ff;F==="flex"&&z==="row-reverse"?(w.left=eg,w.right=O):(w.left=O,w.right=eg),d.value=v;let E=D.scrollTop;X===o.document&&!E&&(E=o.document.body.scrollTop),B.top=E<m.value,B.bottom=E>m.value;const T=Math.abs(E)<=(A.top||0),q=Math.abs(E)+D.clientHeight>=D.scrollHeight-(A.bottom||0)-Ff;F==="flex"&&z==="column-reverse"?(w.top=q,w.bottom=T):(w.top=T,w.bottom=q),m.value=E},R=X=>{var K;if(!o)return;const D=(K=X.target.documentElement)!=null?K:X.target;y(D),G.value=!0,Y(X),i(X)};return ug(C,"scroll",I?Rw(R,I,!0,!1):R,n),Ae(()=>{try{const X=_(C);if(!X)return;y(X)}catch(X){a(X)}}),ug(C,"scrollend",p,n),{x:Z,y:b,isScrolling:G,arrivedState:w,directions:B,measure(){const X=_(C);o&&X&&y(X)}}}function SP(C,g,I={}){var e;const{direction:t="bottom",interval:i=100,canLoadMore:A=()=>!0}=I,n=l.reactive(Kf(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:b,clientHeight:h,scrollWidth:G,clientWidth:w}=a.value,B=t==="bottom"||t==="top"?b<=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 DP=["mousedown","mouseup","keydown","keyup"];function kP(C,g={}){const{events:I=DP,document:e=Pt,initial:t=null}=g,i=l.ref(t);return e&&I.forEach(A=>{ug(e,A,n=>{typeof n.getModifierState=="function"&&(i.value=n.getModifierState(C))})}),i}function FP(C,g,I={}){const{window:e=Pg}=I;return xb(C,g,e==null?void 0:e.localStorage,I)}const zf={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=zf,passive:t=!0,onEventFired:i=yI}=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(),y=[(B=h.code)==null?void 0:B.toLowerCase(),p].filter(Boolean);p&&(G?A.add(p):A.delete(p));for(const R of y)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,...y].forEach(R=>o.add(R))}ug(I,"keydown",h=>(Z(h,!0),i(h)),{passive:t}),ug(I,"keyup",h=>(Z(h,!1),i(h)),{passive:t}),ug("blur",m,{passive:!0}),ug("focus",m,{passive:!0});const b=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=>_(b[Y])))}else s[G]=l.ref(!1);const B=Reflect.get(h,G,w);return g?_(B):B}});return b}function Ty(C,g){_(C)&&g(_(C))}function zP(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 JP={src:"",tracks:[]};function xP(C,g={}){C=PC(C),g={...JP,...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([]),b=l.ref(-1),h=l.ref(!1),G=l.ref(!1),w=I&&"pictureInPictureEnabled"in I,B=mt(),p=mt(),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";b.value=-1})},y=(z,v=!0)=>{Ty(C,O=>{const eg=typeof z=="number"?z:z.id;v&&Y(),O.textTracks[eg].mode="showing",b.value=eg})},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(eg=>{eg.removeEventListener("error",B.trigger),eg.remove()}),O.forEach(({src:eg,type:E})=>{const T=I.createElement("source");T.setAttribute("src",eg),T.setAttribute("type",E||""),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:eg,label:E,src:T,srcLang:q},cg)=>{const og=I.createElement("track");og.default=O||!1,og.kind=eg,og.label=E,og.src=T,og.srclang=q,og.default&&(b.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())});ug(C,"timeupdate",()=>X(()=>e.value=_(C).currentTime)),ug(C,"durationchange",()=>t.value=_(C).duration),ug(C,"progress",()=>m.value=zP(_(C).buffered)),ug(C,"seeking",()=>i.value=!0),ug(C,"seeked",()=>i.value=!1),ug(C,["waiting","loadstart"],()=>{n.value=!0,K(()=>o.value=!1)}),ug(C,"loadeddata",()=>n.value=!1),ug(C,"playing",()=>{n.value=!1,s.value=!1,K(()=>o.value=!0)}),ug(C,"ratechange",()=>a.value=_(C).playbackRate),ug(C,"stalled",()=>d.value=!0),ug(C,"ended",()=>s.value=!0),ug(C,"pause",()=>K(()=>o.value=!1)),ug(C,"play",()=>K(()=>o.value=!0)),ug(C,"enterpictureinpicture",()=>h.value=!0),ug(C,"leavepictureinpicture",()=>h.value=!1),ug(C,"volumechange",()=>{const z=_(C);z&&(A.value=z.volume,G.value=z.muted)});const D=[],F=l.watch([C],()=>{const z=_(C);z&&(F(),D[0]=ug(z.textTracks,"addtrack",()=>Z.value=Ly(z.textTracks)),D[1]=ug(z.textTracks,"removetrack",()=>Z.value=Ly(z.textTracks)),D[2]=ug(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:b,enableTrack:y,disableTrack:Y,supportsPictureInPicture:w,togglePictureInPicture:R,isPictureInPicture:h,onSourceError:B.on,onPlaybackError:p.on}}function TP(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 LP(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 vP={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),b=l.ref(null),h=typeof g=="function"?g:vP[g],G=X=>{const K=h(X);o=X,K&&([m.value,Z.value]=K,b.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,b.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),y=s?X=>s(()=>w(X),{}):X=>w(X),R=s?()=>s(()=>B(),{}):()=>B();if(A){const X={passive:!0};ug(A,["mousemove","dragover"],Y,X),I&&g!=="movement"&&(ug(A,["touchstart","touchmove"],y,X),e&&ug(A,"touchend",p,X)),n&&g==="page"&&ug(i,"scroll",R,{passive:!0})}return{x:m,y:Z,sourceType:b}}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),b=l.ref(0),h=l.ref(!0);let G=()=>{};return e&&(G=l.watch([s,i,A],()=>{const w=FI(s);if(!w||!(w instanceof Element))return;const{left:B,top:p,width:Y,height:y}=w.getBoundingClientRect();d.value=B+(t==="page"?e.pageXOffset:0),m.value=p+(t==="page"?e.pageYOffset:0),Z.value=y,b.value=Y;const R=i.value-d.value,X=A.value-m.value;h.value=Y===0||y===0||R<0||X<0||R>Y||X>y,(I||!h.value)&&(o.value=R,a.value=X)},{immediate:!0}),ug(document,"mouseleave",()=>{h.value=!0})),{x:i,y:A,sourceType:n,elementX:o,elementY:a,elementPositionX:d,elementPositionY:m,elementHeight:Z,elementWidth:b,isOutside:h,stop:G}}function Jf(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(()=>FI(C.target)||i);return ug(a,"mousedown",s("mouse"),{passive:!0,capture:e}),ug(i,"mouseleave",o,{passive:!0,capture:e}),ug(i,"mouseup",o,{passive:!0,capture:e}),I&&(ug(a,"dragstart",s("mouse"),{passive:!0,capture:e}),ug(i,"drop",o,{passive:!0,capture:e}),ug(i,"dragend",o,{passive:!0,capture:e})),g&&(ug(a,"touchstart",s("touch"),{passive:!0,capture:e}),ug(i,"touchend",o,{passive:!0,capture:e}),ug(i,"touchcancel",o,{passive:!0,capture:e})),{pressed:A,sourceType:n}}function jP(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 ug(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 b(){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&&(ug(g,"offline",()=>{t.value=!1,A.value=Date.now()}),ug(g,"online",()=>{t.value=!0,n.value=Date.now()})),Z&&ug(Z,"change",b,!1),b(),{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 xf(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 Tf(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 Lf(C){const{total:g=Number.POSITIVE_INFINITY,pageSize:I=10,page:e=1,onPageChange:t=yI,onPageSizeChange:i=yI,onPageCountChange:A=yI}=C,n=Tf(I,1,Number.POSITIVE_INFINITY),s=l.computed(()=>Math.max(1,Math.ceil(_(g)/_(n)))),o=Tf(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 b={currentPage:o,currentPageSize:n,pageCount:s,isFirstPage:a,isLastPage:d,prev:m,next:Z};return l.watch(o,()=>{t(l.reactive(b))}),l.watch(n,()=>{i(l.reactive(b))}),l.watch(s,()=>{A(l.reactive(b))}),b}function vf(C={}){const{isOnline:g}=Qy(C);return g}function jf(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&&(ug(g,"mouseout",e,{passive:!0}),ug(g.document,"mouseleave",e,{passive:!0}),ug(g.document,"mouseenter",e,{passive:!0})),I}function Qf(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&&ug(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 QP(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(Qf({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"),b=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:b,tilt:h,source:Z}}function OP(C=wf()){const g=l.shallowRef(),I=()=>{const e=FI(C);e&&(g.value=e.parentElement)};return Ae(I),l.watch(()=>_(C),I),g}function UP(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 Of={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},EP=Object.keys(Of);function Uf(C={}){const{target:g=Pg}=C,I=l.ref(!1),e=l.ref(C.initialValue||{});Object.assign(e.value,Of,e.value);const t=i=>{I.value=!0,!(C.pointerTypes&&!C.pointerTypes.includes(i.pointerType))&&(e.value=EH(i,EP,!1))};if(g){const i={passive:!0};ug(g,["pointerdown","pointermove","pointerup"],t,i),ug(g,"pointerleave",()=>I.value=!1,i)}return{...My(e),isInside:I}}function Ef(C,g={}){const{document:I=Pt}=g,e=TI(()=>I&&"pointerLockElement"in I),t=l.ref(),i=l.ref();let A;e.value&&(ug(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))}),ug(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=FI(C))!=null?a:i.value:FI(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 PP(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:b,abs:h}=Math,G=l.computed(()=>b(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,F;const z=X.buttons===0,v=X.buttons===1;return(F=(D=(K=g.pointerTypes)==null?void 0:K.includes(X.pointerType))!=null?D:z||v)!=null?F:!0},y=[ug(C,"pointerdown",X=>{if(!Y(X))return;B.value=!0;const K=X.target;K==null||K.setPointerCapture(X.pointerId);const{clientX:D,clientY:F}=X;o(D,F),d(D,F),A==null||A(X)}),ug(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))}),ug(C,"pointerup",X=>{Y(X)&&(w.value&&(i==null||i(X,p.value)),B.value=!1,w.value=!1)})];Ae(()=>{var X,K,D,F,z,v,O,eg;(K=(X=I.value)==null?void 0:X.style)==null||K.setProperty("touch-action","none"),n&&((F=(D=I.value)==null?void 0:D.style)==null||F.setProperty("-webkit-user-select","none"),(v=(z=I.value)==null?void 0:z.style)==null||v.setProperty("-ms-user-select","none"),(eg=(O=I.value)==null?void 0:O.style)==null||eg.setProperty("user-select","none"))});const R=()=>y.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 Pf(C){const g=Mi("(prefers-color-scheme: light)",C),I=Mi("(prefers-color-scheme: dark)",C);return l.computed(()=>I.value?"dark":g.value?"light":"no-preference")}function _f(C){const g=Mi("(prefers-contrast: more)",C),I=Mi("(prefers-contrast: less)",C),e=Mi("(prefers-contrast: custom)",C);return l.computed(()=>g.value?"more":I.value?"less":e.value?"custom":"no-preference")}function qf(C={}){const{window:g=Pg}=C;if(!g)return l.ref(["en"]);const I=g.navigator,e=l.ref(I.languages);return ug(g,"languagechange",()=>{e.value=I.languages}),e}function $f(C){const g=Mi("(prefers-reduced-motion: reduce)",C);return l.computed(()=>g.value?"reduce":"no-preference")}function _P(C,g){const I=l.shallowRef(g);return l.watch(PC(C),(e,t)=>{I.value=t},{flush:"sync"}),l.readonly(I)}const g3="--vueuse-safe-area-top",I3="--vueuse-safe-area-right",C3="--vueuse-safe-area-bottom",e3="--vueuse-safe-area-left";function qP(){const C=l.ref(""),g=l.ref(""),I=l.ref(""),e=l.ref("");if(ue){const i=Tb(g3),A=Tb(I3),n=Tb(C3),s=Tb(e3);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(),ug("resize",pr(t))}function t(){C.value=xw(g3),g.value=xw(I3),I.value=xw(C3),e.value=xw(e3)}return{top:C,right:g,bottom:I,left:e,update:t}}function xw(C){return getComputedStyle(document.documentElement).getPropertyValue(C)}function $P(C,g=yI,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 b=null;const h=B=>new Promise((p,Y)=>{const y=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")&&y(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),y(X)}),R&&(X=d.head.appendChild(X)),B||y(X)}),G=(B=!0)=>(b||(b=h(B)),b),w=()=>{if(!d)return;b=null,Z.value&&(Z.value=null);const B=d.querySelector(`script[src="${_(C)}"]`);B&&d.head.removeChild(B)};return e&&!t&&Ae(G),t||Mw(w),{scriptTag:Z,load:G,unload:w}}function t3(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:t3(I)}}function g6(C){const g=C||window.event,I=g.target;return t3(I)?!1:g.touches.length>1?!0:(g.preventDefault&&g.preventDefault(),!1)}const Uy=new WeakMap;function I6(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=ug(n,"touchmove",s=>{g6(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 C6(C,g,I={}){const{window:e=Pg}=I;return xb(C,g,e==null?void 0:e.sessionStorage,I)}function e6(C={},g={}){const{navigator:I=Ri}=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 t6=(C,g)=>C.sort(g),Tw=(C,g)=>C-g;function i6(...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=t6}=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 A6(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),b=TI(()=>Z);let h;return b.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:b,isListening:A,isFinal:n,recognition:h,result:s,error:o,toggle:a,start:d,stop:m}}function n6(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},b=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 b(B),B}),G=()=>{A.cancel(),h&&A.speak(h.value)},w=()=>{A.cancel(),s.value=!1};return n.value&&(b(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 l6(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(y){return Array.isArray(I.value)?I.value[y]:I.value[e.value[y]]}function d(y){if(e.value.includes(y))return a(e.value.indexOf(y))}function m(y){e.value.includes(y)&&(t.value=e.value.indexOf(y))}function Z(){n.value||t.value++}function b(){A.value||t.value--}function h(y){Y(y)&&m(y)}function G(y){return e.value.indexOf(y)===t.value+1}function w(y){return e.value.indexOf(y)===t.value-1}function B(y){return e.value.indexOf(y)===t.value}function p(y){return t.value<e.value.indexOf(y)}function Y(y){return t.value>e.value.indexOf(y)}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:b,goBackTo:h,isNext:G,isPrevious:w,isCurrent:B,isBefore:p,isAfter:Y}}function s6(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,b=_(g),h=hf(b),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=b,s&&b!==null&&await I.setItem(C,await w.write(b));else if(o){const y=await w.read(Y);typeof o=="function"?G.value=o(y,b):h==="object"&&!Array.isArray(y)?G.value={...b,...y}:G.value=y}else G.value=await w.read(Y)}catch(Y){Z(Y)}}return B(),d&&n&&ug(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 o6=0;function a6(C,g={}){const I=l.ref(!1),{document:e=Pt,immediate:t=!0,manual:i=!1,id:A=`vueuse_styletag_${++o6}`}=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&&Ae(o),i||GI(a),{id:A,css:n,unload:a,load:o,isLoaded:l.readonly(I)}}function d6(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,b=l.computed(()=>m(Z(a.value),Z(d.value))>=I),h=l.ref(!1),G=l.computed(()=>b.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,F)=>{s.x=D,s.y=F},p=(D,F)=>{o.x=D,o.y=F};let Y;const y=c6(n==null?void 0:n.document);A?Y=y?{passive:!0}:{capture:!1}:Y=y?{passive:!1,capture:!0}:{capture:!0};const R=D=>{h.value&&(t==null||t(D,G.value)),h.value=!1},X=[ug(C,"touchstart",D=>{if(D.touches.length!==1)return;const[F,z]=w(D);B(F,z),p(F,z),i==null||i(D)},Y),ug(C,"touchmove",D=>{if(D.touches.length!==1)return;const[F,z]=w(D);p(F,z),Y.capture&&!Y.passive&&Math.abs(a.value)>Math.abs(d.value)&&D.preventDefault(),!h.value&&b.value&&(h.value=!0),h.value&&(e==null||e(D))},Y),ug(C,["touchend","touchcancel"],R,Y)];return{isPassiveEventSupported:y,isSwiping:h,direction:G,coordsStart:s,coordsEnd:o,lengthX:a,lengthY:d,stop:()=>X.forEach(D=>D())}}function c6(C){if(!C)return!1;let g=!1;const I={get passive(){return g=!0,!1}};return C.addEventListener("x",yI,I),C.removeEventListener("x",yI),g}function m6(){const C=l.ref([]);return C.value.set=g=>{g&&C.value.push(g)},l.onBeforeUpdate(()=>{C.value.length=0}),C}function r6(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 Ae(()=>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 Z6(C){var g;const I=(g=C.rangeCount)!=null?g:0;return Array.from({length:I},(e,t)=>C.getRangeAt(t))}function b6(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?Z6(I.value):[]),i=l.computed(()=>t.value.map(n=>n.getBoundingClientRect()));function A(){I.value=null,g&&(I.value=g.getSelection())}return g&&ug(g.document,"selectionchange",A),{text:e,rects:i,ranges:t,selection:I}}function u6(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 h6(C,g={}){const{throttle:I=200,trailing:e=!0}=g,t=Fb(I,e);return{...Fy(C,{...g,eventFilter:t})}}const G6=[{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"}],w6={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 W6(C){return C.toISOString().slice(0,10)}function i3(C,g={}){const{controls:I=!1,updateInterval:e=3e4}=g,{now:t,...i}=Oy({interval:e,controls:!0}),A=l.computed(()=>A3(new Date(_(C)),g,_(t)));return I?{timeAgo:A,...i}:A}function A3(C,g={},I=Date.now()){var e;const{max:t,messages:i=w6,fullDateFormatter:A=W6,units:n=G6,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 b(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 b(d,n[G-1]);if(m<w.max)return b(d,w)}return i.invalid}function B6(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 n3(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 p6(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}),gf(()=>{if(A){const d=A(n,s.value||"");d!=null&&i&&(i.title=d)}}),s}const Y6=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 y6([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 b=n(d,C,I)-a;d-=b/Z}return d};return a=>C===g&&I===e?a:n(o(a),g,e)}function l3(C,g,I){return C+I*(g-C)}function Ey(C){return(typeof C=="number"?[C]:C)||[]}function s3(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,b=typeof Z=="function"?Z:y6(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=b((B-d)/a),Y=Ey(C.value).map((y,R)=>l3(s[R],o[R],p));Array.isArray(C.value)?C.value=Y.map((y,R)=>{var X,K;return l3((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 N6(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 s3(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 V6(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)}),b(w)},{deep:!0});function b(w,B){m(),B&&d(w),A.history.replaceState(A.history.state,A.document.title,A.location.pathname+o(w)),Z()}function h(){i&&b(a(),!0)}ug(A,"popstate",h,!1),C!=="history"&&ug(A,"hashchange",h,!1);const G=a();return G.keys().next().value?d(G):Object.assign(n,I),n}function X6(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=Ri}=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 b(){return d(),await Z()}return l.watch(e,h=>{h?a():d()},{immediate:!0}),l.watch(i,()=>{t.value&&s.value&&b()},{immediate:!0}),GI(()=>{m()}),{isSupported:n,stream:s,start:Z,stop:m,restart:b,constraints:i,enabled:e,autoSwitch:t}}function o3(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(),b=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=()=>LH(C[g])?G(C[g]):d,B=p=>{m?m(p)&&b(h,p):b(h,p)};if(s){const p=w(),Y=l.ref(p);let y=!1;return l.watch(()=>C[g],R=>{y||(y=!0,Y.value=G(R),l.nextTick(()=>y=!1))}),l.watch(Y,R=>{!y&&(R!==C[g]||a)&&B(R)},{deep:a}),Y}else return l.computed({get(){return w()},set(p){B(p)}})}function R6(C,g,I={}){const e={};for(const t in C)e[t]=o3(C,t,g,I);return e}function M6(C){const{pattern:g=[],interval:I=0,navigator:e=Ri}=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 a3(C,g){const{containerStyle:I,wrapperProps:e,scrollTo:t,calculateRange:i,currentList:A,containerRef:n}="itemHeight"in g?S6(g,C):f6(g,C);return{list:A,scrollTo:t,containerProps:{ref:n,onScroll:()=>{i()},style:I},wrapperProps:e}}function d3(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 c3(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 m3(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 r3(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,b)=>({data:Z,index:b+i.value.start}))}}}function Z3(C,g){return I=>typeof C=="number"?I*C:g.value.slice(0,I).reduce((t,i,A)=>t+C(A),0)}function b3(C,g,I,e){l.watch([C.width,C.height,g,I],()=>{e()})}function u3(C,g){return l.computed(()=>typeof C=="number"?g.value.length*C:g.value.reduce((I,e,t)=>I+C(t),0))}const H6={horizontal:"scrollLeft",vertical:"scrollTop"};function h3(C,g,I,e){return t=>{e.value&&(e.value[H6[C]]=I(t),g())}}function f6(C,g){const I=d3(g),{state:e,source:t,currentList:i,size:A,containerRef:n}=I,s={overflowX:"auto"},{itemWidth:o,overscan:a=5}=C,d=c3(e,t,o),m=m3(t,o),Z=r3("horizontal",a,m,d,I),b=Z3(o,t),h=l.computed(()=>b(e.value.start)),G=u3(o,t);b3(A,g,n,Z);const w=h3("horizontal",Z,b,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 S6(C,g){const I=d3(g),{state:e,source:t,currentList:i,size:A,containerRef:n}=I,s={overflowY:"auto"},{itemHeight:o,overscan:a=5}=C,d=c3(e,t,o),m=m3(t,o),Z=r3("vertical",a,m,d,I),b=Z3(o,t),h=l.computed(()=>b(e.value.start)),G=u3(o,t);b3(A,g,n,Z);const w=h3("vertical",Z,b,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 D6(C={}){const{navigator:g=Ri,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&&(ug(t,"release",()=>{var d,m;e.value=(m=(d=t.value)==null?void 0:d.type)!=null?m:!1}),nf(()=>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 k6(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}=mt(),{on:a,trigger:d}=mt(),{on:m,trigger:Z}=mt(),{on:b,trigger:h}=mt(),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&&Ae(n),GI(w),t.value&&g){const B=g.document;ug(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:b}}const G3="ping";function Py(C){return C===!0?{}:C}function F6(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,b,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},y=(D=1e3,F)=>{!ue||!d.value||(h=!0,Y(),Z==null||Z(),d.value.close(D,F),d.value=void 0)},R=(D,F=!0)=>!d.value||a.value!=="OPEN"?(F&&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),b==null||b(),p()},D.onclose=F=>{if(a.value="CLOSED",e==null||e(D,F),!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=F=>{t==null||t(D,F)},D.onmessage=F=>{if(g.heartbeat){Y();const{message:z=G3,responseMessage:v=z}=Py(g.heartbeat);if(F.data===v)return}o.value=F.data,i==null||i(D,F)}};if(g.heartbeat){const{message:D=G3,interval:F=1e3,pongTimeout:z=1e3}=Py(g.heartbeat),{pause:v,resume:O}=xo(()=>{R(D,!1),B==null&&(B=setTimeout(()=>{y(),h=!1},z))},F,{immediate:!1});Z=v,b=O}n&&(ue&&ug("beforeunload",()=>y()),GI(y));const K=()=>{!ue&&!TH||(y(),h=!1,G=0,X())};return A&&K(),l.watch(m,K),{data:o,status:a,close:y,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 z6(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 J6(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 x6(C,g,I){const e=`${z6(g,I)}; onmessage=(${J6})(${C})`,t=new Blob([e],{type:"text/javascript"});return URL.createObjectURL(t)}function T6(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=(b="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=b)};a(),GI(a);const d=()=>{const b=x6(C,I,e),h=new Worker(b);return h._url=b,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=(...b)=>new Promise((h,G)=>{var w;s.value={resolve:h,reject:G},(w=A.value)==null||w.postMessage([[...b]]),n.value="RUNNING"});return{workerFn:(...b)=>n.value==="RUNNING"?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(A.value=d(),m(...b)),workerStatus:n,workerTerminate:a}}function w3(C={}){const{window:g=Pg}=C;if(!g)return l.ref(!1);const I=l.ref(g.document.hasFocus());return ug(g,"blur",()=>{I.value=!1}),ug(g,"focus",()=>{I.value=!0}),I}function L6(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 ug(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(),Ae(o),ug("resize",o,{passive:!0}),t){const a=Mi("(orientation: portrait)");l.watch(a,()=>o())}return{width:n,height:s}}const v6=Object.freeze(Object.defineProperty({__proto__:null,DefaultMagicKeysAliasMap:zf,StorageSerializers:Dy,TransitionPresets:Y6,assert:Z7,asyncComputed:lf,autoResetRef:qH,breakpointsAntDesign:xE,breakpointsBootstrapV5:KE,breakpointsElement:QE,breakpointsMasterCss:vE,breakpointsPrimeFlex:jE,breakpointsQuasar:TE,breakpointsSematic:LE,breakpointsTailwind:FE,breakpointsVuetify:JE,breakpointsVuetifyV2:mf,breakpointsVuetifyV3:zE,bypassFilter:kb,camelize:QH,clamp:Vw,cloneFnJSON:Jb,computedAsync:lf,computedEager:kH,computedInject:cE,computedWithControl:Wy,containsProp:Ny,controlledComputed:Wy,controlledRef:V7,createEventHook:mt,createFetch:uP,createFilterWrapper:Jd,createGlobalState:l7,createInjectionState:s7,createReactiveFn:By,createReusableTemplate:mE,createSharedComposable:o7,createSingletonPromise:OH,createTemplatePromise:ZE,createUnrefFn:bE,customStorageEventName:ky,debounceFilter:Xw,debouncedRef:Vy,debouncedWatch:tf,defaultDocument:Pt,defaultLocation:uE,defaultNavigator:Ri,defaultWindow:Pg,directiveHooks:JA,eagerComputed:kH,executeTransition:s3,extendRef:zH,formatDate:If,formatTimeAgo:A3,get:a7,getLifeCycleTarget:Kb,getSSRHandler:kw,hasOwn:vH,hyphenate:W7,identity:yy,ignorableWatch:Vr,increaseWithUnit:UH,injectLocal:FH,invoke:p7,isClient:ue,isDef:LH,isDefined:d7,isIOS:zd,isObject:Wr,isWorker:TH,makeDestructurable:JH,mapGamepadToXbox360Controller:VP,noop:yI,normalizeDate:Cf,notNullish:Db,now:u7,objectEntries:_H,objectOmit:PH,objectPick:EH,onClickOutside:of,onKeyDown:GE,onKeyPressed:wE,onKeyStroke:Hw,onKeyUp:WE,onLongPress:YE,onStartTyping:VE,pausableFilter:Yy,pausableWatch:xd,promiseTimeout:Br,provideLocal:KH,rand:h7,reactify:By,reactifyObject:m7,reactiveComputed:py,reactiveOmit:r7,reactivePick:y7,refAutoReset:qH,refDebounced:Vy,refDefault:N7,refThrottled:Xy,refWithControl:$H,resolveRef:Y7,resolveUnref:c7,set:X7,setSSRHandler:$E,syncRef:Ry,syncRefs:R7,templateRef:XE,throttleFilter:Fb,throttledRef:Xy,throttledWatch:Af,timestamp:Kd,toReactive:xH,toRef:PC,toRefs:My,toValue:_,tryOnBeforeMount:M7,tryOnBeforeUnmount:gf,tryOnMounted:Ae,tryOnScopeDispose:GI,tryOnUnmounted:Mw,unrefElement:FI,until:yr,useActiveElement:fy,useAnimate:RE,useArrayDifference:f7,useArrayEvery:S7,useArrayFilter:D7,useArrayFind:k7,useArrayFindIndex:F7,useArrayFindLast:z7,useArrayIncludes:x7,useArrayJoin:T7,useArrayMap:L7,useArrayReduce:v7,useArraySome:j7,useArrayUnique:U7,useAsyncQueue:ME,useAsyncState:df,useBase64:SE,useBattery:cf,useBluetooth:kE,useBreakpoints:OE,useBroadcastChannel:UE,useBrowserLocation:Zf,useCached:EE,useClipboard:bf,useClipboardItems:PE,useCloned:_E,useColorMode:Gf,useConfirmDialog:IP,useCounter:E7,useCssVar:Tb,useCurrentElement:wf,useCycleList:CP,useDark:Wf,useDateFormat:$7,useDebounce:Vy,useDebounceFn:pr,useDebouncedRefHistory:AP,useDeviceMotion:Yf,useDeviceOrientation:Ky,useDevicePixelRatio:yf,useDevicesList:Nf,useDisplayMedia:nP,useDocumentVisibility:zy,useDraggable:Vf,useDropZone:lP,useElementBounding:Xf,useElementByPoint:sP,useElementHover:oP,useElementSize:Jy,useElementVisibility:xy,useEventBus:aP,useEventListener:ug,useEventSource:cP,useEyeDropper:Mf,useFavicon:mP,useFetch:Hf,useFileDialog:wP,useFileSystemAccess:WP,useFocus:BP,useFocusWithin:yP,useFps:NP,useFullscreen:Sf,useGamepad:XP,useGeolocation:Df,useIdle:kf,useImage:fP,useInfiniteScroll:SP,useIntersectionObserver:Rf,useInterval:gE,useIntervalFn:xo,useKeyModifier:kP,useLastChanged:IE,useLocalStorage:FP,useMagicKeys:KP,useManualRefHistory:pf,useMediaControls:xP,useMediaQuery:Mi,useMemoize:TP,useMemory:LP,useMounted:af,useMouse:vy,useMouseInElement:jy,useMousePressed:Jf,useMutationObserver:Xr,useNavigatorLanguage:jP,useNetwork:Qy,useNow:Oy,useObjectUrl:xf,useOffsetPagination:Lf,useOnline:vf,usePageLeave:jf,useParallax:QP,useParentElement:OP,usePerformanceObserver:UP,usePermission:fw,usePointer:Uf,usePointerLock:Ef,usePointerSwipe:PP,usePreferredColorScheme:Pf,usePreferredContrast:_f,usePreferredDark:Fw,usePreferredLanguages:qf,usePreferredReducedMotion:$f,usePrevious:_P,useRafFn:Ld,useRefHistory:Fy,useResizeObserver:Kw,useScreenOrientation:Qf,useScreenSafeArea:qP,useScriptTag:$P,useScroll:Kf,useScrollLock:I6,useSessionStorage:C6,useShare:e6,useSorted:i6,useSpeechRecognition:A6,useSpeechSynthesis:n6,useStepper:l6,useStorage:xb,useStorageAsync:s6,useStyleTag:a6,useSupported:TI,useSwipe:d6,useTemplateRefsList:m6,useTextDirection:r6,useTextSelection:b6,useTextareaAutosize:u6,useThrottle:Xy,useThrottleFn:Rw,useThrottledRefHistory:h6,useTimeAgo:i3,useTimeout:CE,useTimeoutFn:Nr,useTimeoutPoll:B6,useTimestamp:n3,useTitle:p6,useToNumber:eE,useToString:tE,useToggle:ef,useTransition:N6,useUrlSearchParams:V6,useUserMedia:X6,useVModel:o3,useVModels:R6,useVibrate:M6,useVirtualList:a3,useWakeLock:D6,useWebNotification:k6,useWebSocket:F6,useWebWorker:K6,useWebWorkerFn:T6,useWindowFocus:w3,useWindowScroll:L6,useWindowSize:W3,watchArray:iE,watchAtMost:AE,watchDebounced:tf,watchDeep:nE,watchIgnorable:Vr,watchImmediate:lE,watchOnce:sE,watchPausable:xd,watchThrottled:Af,watchTriggerable:oE,watchWithFilter:Yr,whenever:nf},Symbol.toStringTag,{value:"Module"})),j6=l.defineComponent({name:"OnClickOutside",props:["as","options"],emits:["trigger"],setup(C,{slots:g,emit:I}){const e=l.ref();return of(e,t=>{I("trigger",t)},C.options),()=>{if(g.default)return l.h(C.as||"div",{ref:e},g.default())}}}),ft=ue?window:void 0;function Te(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=ft):[g,I,e,t]=C,!g)return yI;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(()=>[Te(g),_(t)],([a,d])=>{if(A(),!a)return;const m=Wr(d)?{...d}:d;i.push(...I.flatMap(Z=>e.map(b=>n(a,Z,b,m))))},{immediate:!0,flush:"post"}),o=()=>{s(),A()};return GI(o),o}let B3=!1;function p3(C,g,I={}){const{window:e=ft,ignore:t=[],capture:i=!0,detectIframe:A=!1}=I;if(!e)return yI;zd&&!B3&&(B3=!0,Array.from(e.document.body.children).forEach(h=>h.addEventListener("click",yI)),e.document.documentElement.addEventListener("click",yI));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=Te(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=Te(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=Te(C);n=!s(h)&&!!(G&&!h.composedPath().includes(G))},{passive:!0}),A&&_t(e,"blur",h=>{setTimeout(()=>{var G;const w=Te(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={[JA.mounted](C,g){const I=!g.modifiers.bubble;if(typeof g.value=="function")C.__onClickOutside_stop=p3(C,g.value,{capture:I});else{const[e,t]=g.value;C.__onClickOutside_stop=p3(C,e,Object.assign({capture:I},t))}},[JA.unmounted](C){C.__onClickOutside_stop()}};function Q6(C){return typeof C=="function"?C:typeof C=="string"?g=>g.key===C:Array.isArray(C)?g=>C.includes(g.key):()=>!0}function Y3(...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=ft,eventName:i="keydown",passive:A=!1,dedupe:n=!1}=e,s=Q6(g);return _t(t,i,a=>{a.repeat&&_(n)||s(a)&&I(a)},A)}const O6={[JA.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")Y3(t,g.value,{target:C});else{const[i,A]=g.value;Y3(t,i,{target:C,...A})}}},U6=500,E6=10;function _y(C,g,I){var e,t;const i=l.computed(()=>Te(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[y,R,X]=[s,n,o];if(a(),!(I!=null&&I.onMouseUp)||!R||!y||(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,F=Math.sqrt(K*K+D*D);I.onMouseUp(w.timeStamp-y,F,X)}function m(w){var B,p,Y,y;(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)},(y=I==null?void 0:I.delay)!=null?y:U6))}function Z(w){var B,p,Y,y;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)>=((y=I==null?void 0:I.distanceThreshold)!=null?y:E6)&&a()}const b={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,b),_t(i,"pointermove",Z,b),_t(i,["pointerup","pointerleave"],d,b)];return()=>h.forEach(w=>w())}const P6=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={[JA.mounted](C,g){typeof g.value=="function"?_y(C,g.value,{modifiers:g.modifiers}):_y(C,...g.value)}},_6=l.defineComponent({name:"UseActiveElement",setup(C,{slots:g}){const I=l.reactive({element:fy()});return()=>{if(g.default)return g.default(I)}}}),q6=l.defineComponent({name:"UseBattery",setup(C,{slots:g}){const I=l.reactive(cf(C));return()=>{if(g.default)return g.default(I)}}}),$6=l.defineComponent({name:"UseBrowserLocation",setup(C,{slots:g}){const I=l.reactive(Zf());return()=>{if(g.default)return g.default(I)}}}),g8=l.defineComponent({name:"UseClipboard",props:["source","read","navigator","copiedDuring","legacy"],setup(C,{slots:g}){const I=l.reactive(bf(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__",I8=C8();function C8(){return vw in Lw||(Lw[vw]=Lw[vw]||{}),Lw[vw]}function N3(C,g){return I8[C]||g}function e8(){const C=l.ref(!1),g=l.getCurrentInstance();return g&&l.onMounted(()=>{C.value=!0},g),C}function jw(C){const g=e8();return l.computed(()=>(g.value,!!C()))}function t8(C,g={}){const{window:I=ft}=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 i8(C){return t8("(prefers-color-scheme: dark)",C)}function A8(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 n8={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()}},V3="vueuse-storage";function l8(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=ft,eventFilter:m,onError:Z=F=>{console.error(F)},initOnMounted:b}=e,h=(a?l.shallowRef:l.ref)(typeof g=="function"?g():g);if(!I)try{I=N3("getDefaultStorage",()=>{var F;return(F=ft)==null?void 0:F.localStorage})()}catch(F){Z(F)}if(!I)return h;const G=_(g),w=A8(G),B=(t=e.serializer)!=null?t:n8[w],{pause:p,resume:Y}=xd(h,()=>R(h.value),{flush:i,deep:A,eventFilter:m});d&&n&&Ae(()=>{I instanceof Storage?_t(d,"storage",K):_t(d,V3,D),b&&K()}),b||K();function y(F,z){if(d){const v={key:C,oldValue:F,newValue:z,storageArea:I};d.dispatchEvent(I instanceof Storage?new StorageEvent("storage",v):new CustomEvent(V3,{detail:v}))}}function R(F){try{const z=I.getItem(C);if(F==null)y(z,null),I.removeItem(C);else{const v=B.write(F);z!==v&&(I.setItem(C,v),y(z,v))}}catch(z){Z(z)}}function X(F){const z=F?F.newValue:I.getItem(C);if(z==null)return s&&G!=null&&I.setItem(C,B.write(G)),G;if(!F&&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(F){if(!(F&&F.storageArea!==I)){if(F&&F.key==null){h.value=G;return}if(!(F&&F.key!==C)){p();try{(F==null?void 0:F.newValue)!==B.write(h.value)&&(h.value=X(F))}catch(z){Z(z)}finally{F?l.nextTick(Y):Y()}}}}function D(F){K(F.detail)}return h}const s8="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function o8(C={}){const{selector:g="html",attribute:I="class",initialValue:e="auto",window:t=ft,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=i8({window:t}),Z=l.computed(()=>m.value?"dark":"light"),b=s||(A==null?PC(e):l8(A,e,i,{window:t,listenToStorageChanges:n})),h=l.computed(()=>b.value==="auto"?Z.value:b.value),G=N3("updateHTMLAttrs",(Y,y,R)=>{const X=typeof Y=="string"?t==null?void 0:t.document.querySelector(Y):Te(Y);if(!X)return;const K=new Set,D=new Set;let F=null;if(y==="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 F={key:y,value:R};if(K.size===0&&D.size===0&&F===null)return;let z;a&&(z=t.document.createElement("style"),z.appendChild(document.createTextNode(s8)),t.document.head.appendChild(z));for(const v of K)X.classList.add(v);for(const v of D)X.classList.remove(v);F&&X.setAttribute(F.key,F.value),a&&(t.getComputedStyle(z).opacity,document.head.removeChild(z))});function w(Y){var y;G(g,I,(y=d[Y])!=null?y:Y)}function B(Y){C.onChanged?C.onChanged(Y,w):w(Y)}l.watch(h,B,{flush:"post",immediate:!0}),Ae(()=>B(h.value));const p=l.computed({get(){return o?b.value:h.value},set(Y){b.value=Y}});try{return Object.assign(p,{store:b,system:Z,state:h})}catch{return p}}const a8=l.defineComponent({name:"UseColorMode",props:["selector","attribute","modes","onChanged","storageKey","storage","emitAuto"],setup(C,{slots:g}){const I=o8(C),e=l.reactive({mode:I,system:I.system,store:I.store});return()=>{if(g.default)return g.default(e)}}}),d8=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:ef(I)});return()=>{if(g.default)return g.default(e)}}}),c8=l.defineComponent({name:"UseDeviceMotion",setup(C,{slots:g}){const I=l.reactive(Yf());return()=>{if(g.default)return g.default(I)}}}),m8=l.defineComponent({name:"UseDeviceOrientation",setup(C,{slots:g}){const I=l.reactive(Ky());return()=>{if(g.default)return g.default(I)}}}),r8=l.defineComponent({name:"UseDevicePixelRatio",setup(C,{slots:g}){const I=l.reactive({pixelRatio:yf()});return()=>{if(g.default)return g.default(I)}}}),Z8=l.defineComponent({name:"UseDevicesList",props:["onUpdated","requestPermissions","constraints"],setup(C,{slots:g}){const I=l.reactive(Nf(C));return()=>{if(g.default)return g.default(I)}}}),b8=l.defineComponent({name:"UseDocumentVisibility",setup(C,{slots:g}){const I=l.reactive({visibility:zy()});return()=>{if(g.default)return g.default(I)}}}),u8=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(Vf(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))}}}),h8=l.defineComponent({name:"UseElementBounding",props:["box","as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(Xf(I));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}});function X3(C,g={}){const{delayEnter:I=0,delayLeave:e=0,window:t=ft}=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 G8={[JA.mounted](C,g){const I=g.value;if(typeof I=="function"){const e=X3(C);l.watch(e,t=>I(t))}else{const[e,t]=I,i=X3(C,t);l.watch(i,A=>e(A))}}},w8=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=ft,...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=>Te(m)):[Te(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 W8(C,g={width:0,height:0},I={}){const{window:e=ft,box:t="content-box"}=I,i=l.computed(()=>{var d,m;return(m=(d=Te(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=Te(C);if(Z){const b=Z.getBoundingClientRect();A.value=b.width,n.value=b.height}}else if(m){const Z=Array.isArray(m)?m:[m];A.value=Z.reduce((b,{inlineSize:h})=>b+h,0),n.value=Z.reduce((b,{blockSize:h})=>b+h,0)}else A.value=d.contentRect.width,n.value=d.contentRect.height},I);Ae(()=>{const d=Te(C);d&&(A.value="offsetWidth"in d?d.offsetWidth:g.width,n.value="offsetHeight"in d?d.offsetHeight:g.height)});const o=l.watch(()=>Te(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 B8={[JA.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}=W8(C,...t);l.watch([i,A],([n,s])=>e({width:n,height:s}))}},p8=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=ft,immediate:n=!0}=I,s=jw(()=>A&&"IntersectionObserver"in A),o=l.computed(()=>{const b=_(C);return(Array.isArray(b)?b:[b]).map(Te).filter(Db)});let a=yI;const d=l.ref(n),m=s.value?l.watch(()=>[o.value,Te(e),d.value],([b,h])=>{if(a(),!d.value||!b.length)return;const G=new IntersectionObserver(g,{root:Te(h),rootMargin:t,threshold:i});b.forEach(w=>w&&G.observe(w)),a=()=>{G.disconnect(),a=yI}},{immediate:n,flush:"post"}):yI,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=ft,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 Y8={[JA.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})}}},y8=l.defineComponent({name:"UseEyeDropper",props:{sRGBHex:String},setup(C,{slots:g}){const I=l.reactive(Mf());return()=>{if(g.default)return g.default(I)}}}),N8=l.defineComponent({name:"UseFullscreen",props:["as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(Sf(I));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}}),V8=l.defineComponent({name:"UseGeolocation",props:["enableHighAccuracy","maximumAge","timeout","navigator"],setup(C,{slots:g}){const I=l.reactive(Df(C));return()=>{if(g.default)return g.default(I)}}}),X8=l.defineComponent({name:"UseIdle",props:["timeout","events","listenForVisibilityChange","initialState"],setup(C,{slots:g}){const I=l.reactive(kf(C.timeout,C));return()=>{if(g.default)return g.default(I)}}});function R8(C,g,I){const{immediate:e=!0,delay:t=0,onError:i=yI,onSuccess:A=yI,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 b(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&&b(t);const h={state:a,isReady:d,isLoading:m,error:Z,execute:b};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 M8(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 H8(C,g={}){const I=R8(()=>M8(_(C)),void 0,{resetOnExecute:!0,...g});return l.watch(()=>_(C),()=>I.execute(g.delay),{deep:!0}),I}const f8=l.defineComponent({name:"UseImage",props:["src","srcset","sizes","as","alt","class","loading","crossorigin","referrerPolicy"],setup(C,{slots:g}){const I=l.reactive(H8(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 R3=1;function IN(C,g={}){const{throttle:I=0,idle:e=200,onStop:t=yI,onScroll:i=yI,offset:A={left:0,right:0,top:0,bottom:0},eventListenerOptions:n={capture:!1,passive:!0},behavior:s="auto",window:o=ft,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)}}),b=l.computed({get(){return m.value},set(X){h(void 0,X)}});function h(X,K){var D,F,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:b.value,left:(F=_(X))!=null?F:Z.value,behavior:_(s)});const eg=((v=O==null?void 0:O.document)==null?void 0:v.documentElement)||(O==null?void 0:O.documentElement)||O;Z!=null&&(d.value=eg.scrollLeft),b!=null&&(m.value=eg.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),y=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)||Te(X),{display:F,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),eg=Math.abs(v)+D.clientWidth>=D.scrollWidth-(A.right||0)-R3;F==="flex"&&z==="row-reverse"?(w.left=eg,w.right=O):(w.left=O,w.right=eg),d.value=v;let E=D.scrollTop;X===o.document&&!E&&(E=o.document.body.scrollTop),B.top=E<m.value,B.bottom=E>m.value;const T=Math.abs(E)<=(A.top||0),q=Math.abs(E)+D.clientHeight>=D.scrollHeight-(A.bottom||0)-R3;F==="flex"&&z==="column-reverse"?(w.top=q,w.bottom=T):(w.top=T,w.bottom=q),m.value=E},R=X=>{var K;if(!o)return;const D=(K=X.target.documentElement)!=null?K:X.target;y(D),G.value=!0,Y(X),i(X)};return _t(C,"scroll",I?Rw(R,I,!0,!1):R,n),Ae(()=>{try{const X=_(C);if(!X)return;y(X)}catch(X){a(X)}}),_t(C,"scrollend",p,n),{x:Z,y:b,isScrolling:G,arrivedState:w,directions:B,measure(){const X=_(C);o&&X&&y(X)}}}function M3(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:b,clientHeight:h,scrollWidth:G,clientWidth:w}=a.value,B=t==="bottom"||t==="top"?b<=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 S8={[JA.mounted](C,g){typeof g.value=="function"?M3(C,g.value):M3(C,...g.value)}},D8={[JA.mounted](C,g){typeof g.value=="function"?$y(C,g.value):$y(C,...g.value)}},k8=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)}}}),F8=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(Jf({...C,target:I}));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}}),z8=l.defineComponent({name:"UseNetwork",setup(C,{slots:g}){const I=l.reactive(Qy());return()=>{if(g.default)return g.default(I)}}}),J8=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)}}}),x8=l.defineComponent({name:"UseObjectUrl",props:["object"],setup(C,{slots:g}){const I=PC(C,"object"),e=xf(I);return()=>{if(g.default&&e.value)return g.default(e)}}}),T8=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(Lf({...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)}}}),L8=l.defineComponent({name:"UseOnline",setup(C,{slots:g}){const I=l.reactive({isOnline:vf()});return()=>{if(g.default)return g.default(I)}}}),v8=l.defineComponent({name:"UsePageLeave",setup(C,{slots:g}){const I=l.reactive({isLeft:jf()});return()=>{if(g.default)return g.default(I)}}}),j8=l.defineComponent({name:"UsePointer",props:["pointerTypes","initialValue","target"],setup(C,{slots:g}){const I=l.ref(null),e=l.reactive(Uf({...C,target:C.target==="self"?I:ft}));return()=>{if(g.default)return g.default(e,{ref:I})}}}),Q8=l.defineComponent({name:"UsePointerLock",props:["as"],setup(C,{slots:g}){const I=l.ref(),e=l.reactive(Ef(I));return()=>{if(g.default)return l.h(C.as||"div",{ref:I},g.default(e))}}}),O8=l.defineComponent({name:"UsePreferredColorScheme",setup(C,{slots:g}){const I=l.reactive({colorScheme:Pf()});return()=>{if(g.default)return g.default(I)}}}),U8=l.defineComponent({name:"UsePreferredContrast",setup(C,{slots:g}){const I=l.reactive({contrast:_f()});return()=>{if(g.default)return g.default(I)}}}),E8=l.defineComponent({name:"UsePreferredDark",setup(C,{slots:g}){const I=l.reactive({prefersDark:Fw()});return()=>{if(g.default)return g.default(I)}}}),P8=l.defineComponent({name:"UsePreferredLanguages",setup(C,{slots:g}){const I=l.reactive({languages:qf()});return()=>{if(g.default)return g.default(I)}}}),_8=l.defineComponent({name:"UsePreferredReducedMotion",setup(C,{slots:g}){const I=l.reactive({motion:$f()});return()=>{if(g.default)return g.default(I)}}}),q8={[JA.mounted](C,g){typeof g.value=="function"?qy(C,g.value):qy(C,...g.value)}};function $8(C,g,I={}){const{window:e=ft,...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(Te).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=ft,initialValue:t,observe:i=!1}=I,A=l.ref(t),n=l.computed(()=>{var o;return Te(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 H3="--vueuse-safe-area-top",f3="--vueuse-safe-area-right",S3="--vueuse-safe-area-bottom",D3="--vueuse-safe-area-left";function g_(){const C=l.ref(""),g=l.ref(""),I=l.ref(""),e=l.ref("");if(ue){const i=Ow(H3),A=Ow(f3),n=Ow(S3),s=Ow(D3);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(H3),g.value=Uw(f3),I.value=Uw(S3),e.value=Uw(D3)}return{top:C,right:g,bottom:I,left:e,update:t}}function Uw(C){return getComputedStyle(document.documentElement).getPropertyValue(C)}const I_=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}=g_();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())}}}),C_={[JA.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 k3(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:k3(I)}}function e_(C){const g=C||window.event,I=g.target;return k3(I)?!1:g.touches.length>1?!0:(g.preventDefault&&g.preventDefault(),!1)}const CN=new WeakMap;function t_(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=>{e_(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 i_(){let C=!1;const g=l.ref(!1);return(I,e)=>{if(g.value=e.value,C)return;C=!0;const t=t_(I,e.value);l.watch(g,i=>t.value=i)}}const A_=i_(),n_=l.defineComponent({name:"UseTimeAgo",props:["time","updateInterval","max","fullDateFormatter","messages","showSecond"],setup(C,{slots:g}){const I=l.reactive(i3(()=>C.time,{...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),l_=l.defineComponent({name:"UseTimestamp",props:["immediate","interval","offset"],setup(C,{slots:g}){const I=l.reactive(n3({...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),s_=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}=a3(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!")))])}}),o_=l.defineComponent({name:"UseWindowFocus",setup(C,{slots:g}){const I=l.reactive({focused:w3()});return()=>{if(g.default)return g.default(I)}}}),a_=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 jI(C,g=document.documentElement){for(const[I,e]of Object.entries(C))g.style.setProperty(I,String(e))}const d_=["data-testid"],c_=["data-testid"],m_=["open","data-testid"],Mr=vg(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 b=n.value.getBoundingClientRect();if(!I.isUseAnchor)A.value.style.top=`${b.top+b.height}px`;else{jI({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,jI({transform:`translateY(${G}px)`},A.value)),h.right>window.innerWidth&&(w=-h.right+window.innerWidth-10,jI({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&&jI({"anchor-name":`${o.value}`},s.value),A.value&&jI({"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)}),(b,h)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{ref_key:"selectRef",ref:s,class:"select-list-yui-kit","data-testid":I.dataTestid},[l.renderSlot(b.$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(b.$slots,"header",{},void 0,!0)],42,c_)],!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(b.$slots,"options",{},void 0,!0)],10,m_),[[l.vShow,t.isOpened]])],8,d_)),[[l.unref(To),d,void 0,{bubble:!0}]])}}),[["__scopeId","data-v-ce305442"]]);function Lo(C){return C!==null&&typeof C=="object"&&"key"in C}function F3(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]),r_=["onClick","data-testid"],Z_={class:"options__value truncate-yui-kit"},b_={key:0,class:"options__used"},tN=vg(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",Z_,l.toDisplayString(s(d)),1),typeof d=="object"&&(d!=null&&d.used)?(l.openBlock(),l.createElementBlock("div",b_)):l.createCommentVNode("",!0)],2),l.renderSlot(o.$slots,"option",{inx:m},void 0,!0)],10,r_),l.renderSlot(o.$slots,"default",{},void 0,!0)],64))),128))}}),[["__scopeId","data-v-0d9d40e7"]]),u_=["data-testid"],iN=vg(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(F3(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(()=>{F3(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,u_),e.isOpened?(l.openBlock(),l.createBlock(Yg,{key:0,name:l.unref(mg).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(mg).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-446a42d7"]]);/**
|
|
722
722
|
* @license
|
|
723
723
|
* Copyright 2019 Google LLC
|
|
724
724
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1523,14 +1523,14 @@
|
|
|
1523
1523
|
@change-date=${this.handleDateSelected}
|
|
1524
1524
|
></col-cal-dates>
|
|
1525
1525
|
</div>
|
|
1526
|
-
`}};bl([Lg({type:Object})],Mn.prototype,"date",2),bl([Lg({type:Object})],Mn.prototype,"minDate",2),bl([Lg({type:Object})],Mn.prototype,"maxDate",2),bl([Lg({type:String})],Mn.prototype,"locale",2),bl([Lg({type:String})],Mn.prototype,"dataTestid",2),bl([Lg({type:Number})],Mn.prototype,"firstDayOfWeek",2),bl([Lg({type:Array})],Mn.prototype,"disabledDates",2),bl([Lg({type:Array})],Mn.prototype,"events",2),bl([gW()],Mn.prototype,"_date",2),Mn=bl([Ed("col-cal")],Mn);const kTg=["data-testid"],FTg=["data-testid"],KTg=["data-testid"],zTg=["required","data-testid"],JTg=["data-testid"],xTg=["data-testid","disabled"],TTg=["data-testid","disabled"],LTg=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()},b=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,FTg)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("input",{ref_key:"inputNumberRef",ref:A,"onUpdate:modelValue":p[0]||(p[0]=Y=>t.inputElement=Y),onFocus:b,onInput:s,onKeydown:Z,class:"input-yui-kit__input",required:e.required,"data-testid":`${e.dataTestid}-Input`,type:"text"},null,40,zTg),[[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(mg).chevronUp,"data-testid":`${e.dataTestid}-Icon`},null,8,["name","data-testid"])],40,xTg),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(mg).chevronDown,"data-testid":`${e.dataTestid}-Icon`},null,8,["name","data-testid"])],40,TTg)],8,JTg)],42,kTg))}}),ou=vg(LTg,[["__scopeId","data-v-d8c024ef"]]),vTg=["data-testid"],jTg=["data-testid"],hW=vg(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,jTg)],16,vTg))}}),[["__scopeId","data-v-2ac66c7e"]]),QTg={class:"time-picker-dialog-content"},OTg={class:"time-picker-header"},UTg={key:0,class:"clock-face"},ETg={key:1,class:"clock-face"},PTg={key:0,class:"clock-number__dot"},_Tg={class:"time-picker-actions"},GW=vg(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 y=new Date(Y);t.localHours=y.getHours(),t.localMinutes=y.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,y=100){const R=Y%12/12*360,X=y*Math.sin(R*Math.PI/180),K=-y*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 y=(D=i.value)==null?void 0:D.getBoundingClientRect();if(!y)return 0;const R=Y.clientX-(y.left+y.width/2),X=Y.clientY-(y.top+y.height/2);return(Math.atan2(X,R)*(180/Math.PI)+90+360)%360}function d(Y){const y=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(y/30)%12||12;t.hours=(X?K+12:K)%24}else t.minutes=Math.round(y/6)%60}function m(Y){d(Y)}function Z(Y){d(Y),document.addEventListener("mousemove",b),document.addEventListener("mouseup",h)}function b(Y){d(Y)}function h(){document.removeEventListener("mousemove",b),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,y=new Date(Y.getFullYear(),Y.getMonth(),Y.getDate(),+t.hours,+t.minutes,0,0),R=new Date(y.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,y)=>(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(mg).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(mg).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",QTg,[y[11]||(y[11]=l.createElementVNode("h3",null,"Установка времени",-1)),l.createElementVNode("div",OTg,[l.createElementVNode("div",null,[l.createVNode(ou,{"model-value":t.hours,"onUpdate:modelValue":y[0]||(y[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:y[1]||(y[1]=R=>t.editingValue="hour")},null,8,["model-value","class"]),y[5]||(y[5]=l.createElementVNode("span",null,"Часы",-1))]),y[7]||(y[7]=l.createElementVNode("span",{class:"time-picker-separator"},":",-1)),l.createElementVNode("div",null,[l.createVNode(ou,{"model-value":t.minutes,"onUpdate:modelValue":y[2]||(y[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:y[3]||(y[3]=R=>t.editingValue="minute")},null,8,["model-value","class"]),y[6]||(y[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",UTg,[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",ETg,[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",PTg)):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(R%5?"":R%60),1)],6))),128))])),y[8]||(y[8]=l.createElementVNode("div",{class:"clock-hand-center"},null,-1))],544)):l.createCommentVNode("",!0),l.createElementVNode("div",_Tg,[l.createElementVNode("div",{class:"time-picker-actions__switch",onClick:y[4]||(y[4]=R=>t.openClock=!t.openClock)},[l.createVNode(Yg,{name:t.openClock?l.unref(mg).keyboard:l.unref(mg).time},null,8,["name"])]),l.createVNode(nI,{size:l.unref(YI).little,type:l.unref(II).ghost,onClick:G},{default:l.withCtx(()=>[...y[9]||(y[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(()=>[...y[10]||(y[10]=[l.createTextVNode("Сохранить ",-1)])]),_:1},8,["size","type"])])])]),_:1},8,["open"])],2))}}),[["__scopeId","data-v-4edbd9e5"]]),qTg=["data-testid"],$Tg=["data-testid"],gLg=["data-testid"],ILg=vg(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(mg).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,gLg)),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(mg).crossSmall,"data-testid":`${I.dataTestid}-ButtonClose-Icon`},null,8,["name","data-testid"])]),_:1},8,["size","type","disabled","data-testid"])):l.createCommentVNode("",!0)],10,qTg),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-a0c69a64"]]),KD=["top","right","bottom","left"],zD=["start","end"],JD=KD.reduce((C,g)=>C.concat(g,g+"-"+zD[0],g+"-"+zD[1]),[]),Hn=Math.min,Dt=Math.max,wW=Math.round,WW=Math.floor,ul=C=>({x:C,y:C}),CLg={left:"right",right:"left",bottom:"top",top:"bottom"};function iV(C,g,I){return Dt(C,Hn(g,I))}function fn(C,g){return typeof C=="function"?C(g):C}function eA(C){return C.split("-")[0]}function Sn(C){return C.split("-")[1]}function AV(C){return C==="x"?"y":"x"}function nV(C){return C==="y"?"height":"width"}function Dn(C){const g=C[0];return g==="t"||g==="b"?"y":"x"}function lV(C){return AV(Dn(C))}function xD(C,g,I){I===void 0&&(I=!1);const e=Sn(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 eLg(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 TD=["left","right"],LD=["right","left"],tLg=["top","bottom"],iLg=["bottom","top"];function ALg(C,g,I){switch(C){case"top":case"bottom":return I?g?LD:TD:g?TD:LD;case"left":case"right":return g?tLg:iLg;default:return[]}}function nLg(C,g,I,e){const t=Sn(C);let i=ALg(eA(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=eA(C);return CLg[g]+C.slice(g.length)}function lLg(C){return{top:0,right:0,bottom:0,left:0,...C}}function sV(C){return typeof C!="number"?lLg(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 vD(C,g,I){let{reference:e,floating:t}=C;const i=Dn(g),A=lV(g),n=nV(A),s=eA(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(Sn(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 jD(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}=fn(g,C),b=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},y=Tr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:B,offsetParent:p,strategy:s}):B);return{top:(w.top-y.top+b.top)/Y.y,bottom:(y.bottom-w.bottom+b.bottom)/Y.y,left:(w.left-y.left+b.left)/Y.x,right:(y.right-w.right+b.right)/Y.x}}const sLg=50,oLg=async(C,g,I)=>{const{placement:e="bottom",strategy:t="absolute",middleware:i=[],platform:A}=I,n=A.detectOverflow?A:{...A,detectOverflow:jD},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}=vD(o,e,s),m=e,Z=0;const b={};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:y,reset:R}=await B({x:a,y:d,initialPlacement:e,placement:m,strategy:t,middlewareData:b,rects:o,platform:n,elements:{reference:C,floating:g}});a=p??a,d=Y??d,b[w]={...b[w],...y},R&&Z<sLg&&(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}=vD(o,m,s)),h=-1)}return{x:a,y:d,placement:m,strategy:t,middlewareData:b}},aLg=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}=fn(C,g)||{};if(o==null)return{};const d=sV(a),m={x:I,y:e},Z=lV(t),b=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[b]+i.reference[Z]-m[Z]-i.floating[b],y=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[b]);const K=Y/2-y/2,D=X/2-h[b]/2-1,F=Hn(d[w],D),z=Hn(d[B],D),v=F,O=X-h[b]-z,eg=X/2-h[b]/2+K,E=iV(v,eg,O),T=!s.arrow&&Sn(t)!=null&&eg!==E&&i.reference[b]/2-(eg<v?F:z)-h[b]/2<0,q=T?eg<v?eg-v:eg-O:0;return{[Z]:m[Z]+q,data:{[Z]:E,centerOffset:eg-E-q,...T&&{alignmentOffset:q}},reset:T}}});function dLg(C,g,I){return(C?[...I.filter(t=>Sn(t)===C),...I.filter(t=>Sn(t)!==C)]:I.filter(t=>eA(t)===t)).filter(t=>C?Sn(t)===C||(g?BW(t)!==t:!1):!0)}const cLg=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=JD,autoAlignment:Z=!0,...b}=fn(C,g),h=d!==void 0||m===JD?dLg(d||null,Z,m):m,G=await s.detectOverflow(g,b),w=((I=A.autoPlacement)==null?void 0:I.index)||0,B=h[w];if(B==null)return{};const p=xD(B,i,await(s.isRTL==null?void 0:s.isRTL(o.floating)));if(n!==B)return{reset:{placement:h[0]}};const Y=[G[eA(B)],G[p[0]],G[p[1]]],y=[...((e=A.autoPlacement)==null?void 0:e.overflows)||[],{placement:B,overflows:Y}],R=h[w+1];if(R)return{data:{index:w+1,overflows:y},reset:{placement:R}};const X=y.map(F=>{const z=Sn(F.placement);return[F.placement,z&&a?F.overflows.slice(0,2).reduce((v,O)=>v+O,0):F.overflows[0],F.overflows]}).sort((F,z)=>F[1]-z[1]),D=((t=X.filter(F=>F[2].slice(0,Sn(F[0])?2:3).every(z=>z<=0))[0])==null?void 0:t[0])||X[0][0];return D!==n?{data:{index:w+1,overflows:y},reset:{placement:D}}:{}}}},mLg=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:b="none",flipAlignment:h=!0,...G}=fn(C,g);if((I=i.arrow)!=null&&I.alignmentOffset)return{};const w=eA(t),B=Dn(n),p=eA(n)===n,Y=await(s.isRTL==null?void 0:s.isRTL(o.floating)),y=m||(p||!h?[pW(n)]:eLg(n)),R=b!=="none";!m&&R&&y.push(...nLg(n,h,b,Y));const X=[n,...y],K=await s.detectOverflow(g,G),D=[];let F=((e=i.flip)==null?void 0:e.overflows)||[];if(a&&D.push(K[w]),d){const eg=xD(t,A,Y);D.push(K[eg[0]],K[eg[1]])}if(F=[...F,{placement:t,overflows:D}],!D.every(eg=>eg<=0)){var z,v;const eg=(((z=i.flip)==null?void 0:z.index)||0)+1,E=X[eg];if(E&&(!(d==="alignment"?B!==Dn(E):!1)||F.every(cg=>Dn(cg.placement)===B?cg.overflows[0]>0:!0)))return{data:{index:eg,overflows:F},reset:{placement:E}};let T=(v=F.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=F.filter(cg=>{if(R){const og=Dn(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 QD(C,g){return{top:C.top-g.height,right:C.right-g.width,bottom:C.bottom-g.height,left:C.left-g.width}}function OD(C){return KD.some(g=>C[g]>=0)}const rLg=function(C){return C===void 0&&(C={}),{name:"hide",options:C,async fn(g){const{rects:I,platform:e}=g,{strategy:t="referenceHidden",...i}=fn(C,g);switch(t){case"referenceHidden":{const A=await e.detectOverflow(g,{...i,elementContext:"reference"}),n=QD(A,I.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:OD(n)}}}case"escaped":{const A=await e.detectOverflow(g,{...i,altBoundary:!0}),n=QD(A,I.floating);return{data:{escapedOffsets:n,escaped:OD(n)}}}default:return{}}}}};function UD(C){const g=Hn(...C.map(i=>i.left)),I=Hn(...C.map(i=>i.top)),e=Dt(...C.map(i=>i.right)),t=Dt(...C.map(i=>i.bottom));return{x:g,y:I,width:e-g,height:t-I}}function ZLg(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(UD(t)))}const bLg=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}=fn(C,g),a=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(e.reference))||[]),d=ZLg(a),m=Tr(UD(a)),Z=sV(n);function b(){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(Dn(I)==="y"){const F=d[0],z=d[d.length-1],v=eA(I)==="top",O=F.top,eg=z.bottom,E=v?F.left:z.left,T=v?F.right:z.right,q=T-E,cg=eg-O;return{top:O,bottom:eg,left:E,right:T,width:q,height:cg,x:E,y:O}}const G=eA(I)==="left",w=Dt(...d.map(F=>F.right)),B=Hn(...d.map(F=>F.left)),p=d.filter(F=>G?F.left===B:F.right===w),Y=p[0].top,y=p[p.length-1].bottom,R=B,X=w,K=X-R,D=y-Y;return{top:Y,bottom:y,left:R,right:X,width:K,height:D,x:R,y:Y}}return m}const h=await i.getElementRects({reference:{getBoundingClientRect:b},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}}:{}}}},ED=new Set(["left","top"]);async function uLg(C,g){const{placement:I,platform:e,elements:t}=C,i=await(e.isRTL==null?void 0:e.isRTL(t.floating)),A=eA(I),n=Sn(I),s=Dn(I)==="y",o=ED.has(A)?-1:1,a=i&&s?-1:1,d=fn(g,C);let{mainAxis:m,crossAxis:Z,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return n&&typeof b=="number"&&(Z=n==="end"?b*-1:b),s?{x:Z*a,y:m*o}:{x:m*o,y:Z*a}}const hLg=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 uLg(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}}}}},GLg=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}=fn(C,g),a={x:I,y:e},d=await i.detectOverflow(g,o),m=Dn(eA(t)),Z=AV(m);let b=a[Z],h=a[m];if(A){const w=Z==="y"?"top":"left",B=Z==="y"?"bottom":"right",p=b+d[w],Y=b-d[B];b=iV(p,b,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]:b,[m]:h});return{...G,data:{x:G.x-I,y:G.y-e,enabled:{[Z]:A,[m]:n}}}}}},wLg=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}=fn(C,g),a={x:I,y:e},d=Dn(t),m=AV(d);let Z=a[m],b=a[d];const h=fn(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,y=i.reference[m]+i.reference[p]-G.mainAxis;Z<Y?Z=Y:Z>y&&(Z=y)}if(o){var w,B;const p=m==="y"?"width":"height",Y=ED.has(eA(t)),y=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);b<y?b=y:b>R&&(b=R)}return{[m]:Z,[d]:b}}}},WLg=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}=fn(C,g),a=await A.detectOverflow(g,o),d=eA(t),m=Sn(t),Z=Dn(t)==="y",{width:b,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=b-a.left-a.right,Y=Hn(h-a[G],B),y=Hn(b-a[w],p),R=!g.middlewareData.shift;let X=Y,K=y;if((I=g.middlewareData.shift)!=null&&I.enabled.x&&(K=p),(e=g.middlewareData.shift)!=null&&e.enabled.y&&(X=B),R&&!m){const F=Dt(a.left,0),z=Dt(a.right,0),v=Dt(a.top,0),O=Dt(a.bottom,0);Z?K=b-2*(F!==0||z!==0?F+z:Dt(a.left,a.right)):X=h-2*(v!==0||O!==0?v+O:Dt(a.top,a.bottom))}await s({...g,availableWidth:K,availableHeight:X});const D=await A.getDimensions(n.floating);return b!==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 tA(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 tA(C).Node:!1}function kn(C){return YW()?C instanceof Element||C instanceof tA(C).Element:!1}function rs(C){return YW()?C instanceof HTMLElement||C instanceof tA(C).HTMLElement:!1}function PD(C){return!YW()||typeof ShadowRoot>"u"?!1:C instanceof ShadowRoot||C instanceof tA(C).ShadowRoot}function au(C){const{overflow:g,overflowX:I,overflowY:e,display:t}=Fn(C);return/auto|scroll|overlay|hidden|clip/.test(g+e+I)&&t!=="inline"&&t!=="contents"}function BLg(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 pLg=/transform|translate|scale|rotate|perspective|filter/,YLg=/paint|layout|strict|content/,ic=C=>!!C&&C!=="none";let aV;function dV(C){const g=kn(C)?Fn(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))||pLg.test(g.willChange||"")||YLg.test(g.contain||"")}function yLg(C){let g=Ca(C);for(;rs(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 Fn(C){return tA(C).getComputedStyle(C)}function NW(C){return kn(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||PD(C)&&C.host||hl(C);return PD(g)?g.host:g}function _D(C){const g=Ca(C);return Lr(g)?C.ownerDocument?C.ownerDocument.body:C.body:rs(g)&&au(g)?g:_D(g)}function vr(C,g,I){var e;g===void 0&&(g=[]),I===void 0&&(I=!0);const t=_D(C),i=t===((e=C.ownerDocument)==null?void 0:e.body),A=tA(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 qD(C){const g=Fn(C);let I=parseFloat(g.width)||0,e=parseFloat(g.height)||0;const t=rs(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 kn(C)?C:C.contextElement}function jr(C){const g=rV(C);if(!rs(g))return ul(1);const I=g.getBoundingClientRect(),{width:e,height:t,$:i}=qD(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 NLg=ul(0);function $D(C){const g=tA(C);return!cV()||!g.visualViewport?NLg:{x:g.visualViewport.offsetLeft,y:g.visualViewport.offsetTop}}function VLg(C,g,I){return g===void 0&&(g=!1),!I||g&&I!==tA(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?kn(e)&&(A=jr(e)):A=jr(C));const n=VLg(i,I,e)?$D(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=tA(i),Z=e&&kn(e)?tA(e):e;let b=m,h=mV(b);for(;h&&e&&Z!==b;){const G=jr(h),w=h.getBoundingClientRect(),B=Fn(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,b=tA(h),h=mV(b)}}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 gk(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 XLg(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=rs(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?gk(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 RLg(C){return Array.from(C.getClientRects())}function MLg(C){const g=hl(C),I=NW(C),e=C.ownerDocument.body,t=Dt(g.scrollWidth,g.clientWidth,e.scrollWidth,e.clientWidth),i=Dt(g.scrollHeight,g.clientHeight,e.scrollHeight,e.clientHeight);let A=-I.scrollLeft+VW(C);const n=-I.scrollTop;return Fn(e).direction==="rtl"&&(A+=Dt(g.clientWidth,e.clientWidth)-t),{width:t,height:i,x:A,y:n}}const Ik=25;function HLg(C,g){const I=tA(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,b=Math.abs(e.clientWidth-d.clientWidth-Z);b<=Ik&&(i-=b)}else o<=Ik&&(i+=o);return{width:i,height:A,x:n,y:s}}function fLg(C,g){const I=Ac(C,!0,g==="fixed"),e=I.top+C.clientTop,t=I.left+C.clientLeft,i=rs(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 Ck(C,g,I){let e;if(g==="viewport")e=HLg(C,I);else if(g==="document")e=MLg(hl(C));else if(kn(g))e=fLg(g,I);else{const t=$D(C);e={x:g.x-t.x,y:g.y-t.y,width:g.width,height:g.height}}return Tr(e)}function ek(C,g){const I=Ca(C);return I===g||!kn(I)||Lr(I)?!1:Fn(I).position==="fixed"||ek(I,g)}function SLg(C,g){const I=g.get(C);if(I)return I;let e=vr(C,[],!1).filter(n=>kn(n)&&tc(n)!=="body"),t=null;const i=Fn(C).position==="fixed";let A=i?Ca(C):C;for(;kn(A)&&!Lr(A);){const n=Fn(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&&ek(C,A))?e=e.filter(a=>a!==A):t=n,A=Ca(A)}return g.set(C,e),e}function DLg(C){let{element:g,boundary:I,rootBoundary:e,strategy:t}=C;const A=[...I==="clippingAncestors"?yW(g)?[]:SLg(g,this._c):[].concat(I),e],n=Ck(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=Ck(g,A[m],t);s=Dt(Z.top,s),o=Hn(Z.right,o),a=Hn(Z.bottom,a),d=Dt(Z.left,d)}return{width:o-d,height:a-s,x:d,y:s}}function kLg(C){const{width:g,height:I}=qD(C);return{width:g,height:I}}function FLg(C,g,I){const e=rs(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?gk(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 Fn(C).position==="static"}function tk(C,g){if(!rs(C)||Fn(C).position==="fixed")return null;if(g)return g(C);let I=C.offsetParent;return hl(C)===I&&(I=I.ownerDocument.body),I}function ik(C,g){const I=tA(C);if(yW(C))return I;if(!rs(C)){let t=Ca(C);for(;t&&!Lr(t);){if(kn(t)&&!ZV(t))return t;t=Ca(t)}return I}let e=tk(C,g);for(;e&&BLg(e)&&ZV(e);)e=tk(e,g);return e&&Lr(e)&&ZV(e)&&!dV(e)?I:e||yLg(C)||I}const KLg=async function(C){const g=this.getOffsetParent||ik,I=this.getDimensions,e=await I(C.floating);return{reference:FLg(C.reference,await g(C.floating),C.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function zLg(C){return Fn(C).direction==="rtl"}const Ak={convertOffsetParentRelativeRectToViewportRelativeRect:XLg,getDocumentElement:hl,getClippingRect:DLg,getOffsetParent:ik,getElementRects:KLg,getClientRects:RLg,getDimensions:kLg,getScale:jr,isElement:kn,isRTL:zLg};function nk(C,g){return C.x===g.x&&C.y===g.y&&C.width===g.width&&C.height===g.height}function JLg(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 b=WW(d),h=WW(t.clientWidth-(a+m)),G=WW(t.clientHeight-(d+Z)),w=WW(a),p={rootMargin:-b+"px "+-h+"px "+-G+"px "+-w+"px",threshold:Dt(0,Hn(1,s))||1};let Y=!0;function y(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&&!nk(o,C.getBoundingClientRect())&&A(),Y=!1}try{I=new IntersectionObserver(y,{...p,root:t.ownerDocument})}catch{I=new IntersectionObserver(y,p)}I.observe(C)}return A(!0),i}function lk(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?JLg(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 b,h=s?Ac(C):null;s&&G();function G(){const w=Ac(C);h&&!nk(h,w)&&I(),h=w,b=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(b)}}const xLg=jD,sk=hLg,ok=cLg,TLg=GLg,LLg=mLg,vLg=WLg,jLg=rLg,QLg=aLg,OLg=bLg,ULg=wLg,ak=(C,g,I)=>{const e=new Map,t={platform:Ak,...I},i={...t.platform,_c:e};return oLg(C,g,{...t,platform:i})};function ELg(C){return C!=null&&typeof C=="object"&&"$el"in C}function bV(C){if(ELg(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 PLg(C){return{name:"arrow",options:C,fn(g){const I=bV(Qr(C.element));return I==null?{}:QLg({element:I,padding:C.padding}).fn(g)}}}function dk(C){return typeof window>"u"?1:(C.ownerDocument.defaultView||window).devicePixelRatio||1}function ck(C,g){const I=dk(C);return Math.round(g*I)/I}function mk(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),b=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=ck(a.value,d.value),D=ck(a.value,m.value);return s.value?{...X,transform:"translate("+K+"px, "+D+"px)",...dk(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;ak(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,b.value=K.placement,h.value=K.middlewareData,G.value=X!==!1})}function Y(){typeof B=="function"&&(B(),B=void 0)}function y(){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],y,{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(b),middlewareData:l.shallowReadonly(h),isPositioned:l.shallowReadonly(G),floatingStyles:w,update:p}}const _Lg=vg(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}=mk(i,A,{middleware:[sk(10),ok({crossAxis:!0,allowedPlacements:["top-start","bottom-start"]})],strategy:n.value?"fixed":"absolute",placement:I.placement,whileElementsMounted:lk}),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-c81c9c79"]]),rk=C=>C instanceof Date&&!isNaN(C.getTime()),XW=C=>{const g=rk(C)&&C!==null?C:new Date;return new Date(Date.UTC(g.getFullYear(),g.getMonth(),g.getDate(),23,59,59,999))},Zk=C=>{const g=rk(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))},qLg=(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"],gvg=[".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 F=new Date(A.value);return isNaN(F.getTime())?null:F}),s=()=>{t.isNotClear=!1,A.value=null,i("clear"),setTimeout(()=>t.isNotClear=!0,1),a({detail:{date:null}})},o=F=>{i("change",F?new Date(F):null)},a=({detail:F})=>{if(!F)return;let z=F.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},b=()=>{t.isOpen.years=!1},h=()=>{t.isActive=!1,Z(),b()};l.watchEffect(()=>t.startDate=e.startDate??null),l.watchEffect(()=>t.endDate=e.endDate??null);const G=F=>new Date(F.getFullYear(),F.getMonth(),1),w=F=>new Date(F.getFullYear(),F.getMonth()+1,0,23,59,59,999),B=F=>new Date(F.getFullYear(),0,1),p=F=>new Date(F.getFullYear(),11,31,23,59,59,999),Y=()=>t.isOpen.months&&!t.isOpen.years?"months":t.isOpen.years&&!t.isOpen.months?"years":null,y=F=>{switch(Y()){case"months":return G(F);case"years":return B(F);default:return F}},R=F=>{switch(Y()){case"months":return w(F);case"years":return p(F);default:return F}},X=()=>{const F=t.startDate??new Date;if(e.startDate){const z=n.value??new Date;if(F.valueOf()<=z.valueOf())return y(F);if(F!=null)return y(F)}return null},K=()=>{const F=t.endDate??new Date;if(e.endDate){const z=n.value??new Date;if(F.valueOf()>=z.valueOf())return R(F);if(F!=null)return R(F)}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}),(F,z)=>(l.openBlock(),l.createElementBlock("div",{class:"date-picker-yui-kit__wrapper","data-testid":`${e.dataTestid}-Wrapper`},[l.createVNode(_Lg,{open:!e.disabled&&t.isActive,onUnmountClose:h},{trigger:l.withCtx(()=>[l.createVNode(ILg,{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(qLg)(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:b,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(mg).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(mg).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(mg).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"icon-right-button",name:l.unref(mg).chevronRight,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"years-icon-left",name:l.unref(mg).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"years-icon-right",name:l.unref(mg).chevronRight,width:16,height:16},null,8,["name"])],40,gvg)]),_:1},8,["open"])],8,$Lg))}});var nc=(C=>(C.start="start",C.end="end",C))(nc||{});const Ivg=["data-testid"],Cvg=["data-testid"],evg=vg(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 b,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":(b=i.date)==null?void 0:b.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,Cvg),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,Ivg)}}}),[["__scopeId","data-v-cd5db169"]]),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(evg,{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"]))}}),tvg=["data-testid"],ivg=["data-testid"],GV=vg(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(mg).chevronUp,class:"chevron-up","stroke-width":"2","data-testid":`${g.dataTestid}-ChevronUp`},null,8,["name","data-testid"]),l.createVNode(Yg,{name:l.unref(mg).chevronDown,class:"chevron-down","stroke-width":"2","data-testid":`${g.dataTestid}-ChevronDown`},null,8,["name","data-testid"])],8,ivg),l.renderSlot(I.$slots,"default",{},void 0,!0)],8,tvg))}}),[["__scopeId","data-v-b9b27643"]]),Avg=["data-testid"],nvg=["data-testid"],lvg=["data-testid"],svg=["data-testid","multiple"],wV=vg(l.defineComponent({__name:"DragAndDrop",props:{singleFileMode:{type:Boolean,default:!1},title:{default:"Кликните или перенесите файлы"},type:{},dataTestid:{default:"DragAndDrop"}},emits:["fileDropped"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isPressed:!1}),i=l.computed(()=>[{"dnd-yui-kit_secondary":I.type==="secondary","dnd-yui-kit_primary":I.type==="primary"}]),A=l.ref(null),n=b=>{const h=b.target;Z(h.files)},s=()=>{A.value&&(A.value.value="")},o=b=>{var G;b.preventDefault();const h=(G=b.currentTarget)==null?void 0:G.children[0];h.classList.contains("active")||h.classList.add("active")},a=b=>{b.currentTarget.children[0].classList.remove("active")},d=b=>{var G;b.preventDefault(),Z(((G=b.dataTransfer)==null?void 0:G.files)||null),b.currentTarget.children[0].classList.remove("active")},m=()=>{t.isPressed=!t.isPressed},Z=b=>{t.isPressed=!1,e("fileDropped",b)};return l.onMounted(()=>{var b;(b=A.value)==null||b.addEventListener("cancel",()=>{t.isPressed=!1})}),(b,h)=>(l.openBlock(),l.createElementBlock("div",{onDragover:o,onDragleave:a,onDrop:d,class:l.normalizeClass(["dnd-yui-kit",i.value]),"data-testid":I.dataTestid},[l.createElementVNode("label",{for:"docsFileSelected",class:l.normalizeClass(["dnd-yui-kit__label",{"is-pressed":t.isPressed}]),onClick:m,"data-testid":`${I.dataTestid}-Label`},[l.createVNode(Yg,{name:l.unref(mg).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,lvg)],10,nvg),l.createElementVNode("input",{id:"docsFileSelected",onChange:n,onClick:s,type:"file",style:{display:"none"},"data-testid":`${I.dataTestid}-Input`,required:"",multiple:!I.singleFileMode,ref_key:"fileInputRef",ref:A},null,40,svg)],42,Avg))}}),[["__scopeId","data-v-5f9a1913"]]),ovg=["data-testid"],avg=["data-testid"],WV=vg(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,avg)):l.createCommentVNode("",!0),l.renderSlot(I.$slots,"default",{},void 0,!0)],8,ovg))}}),[["__scopeId","data-v-dbb49677"]]),dvg=["data-testid"],cvg=["data-testid"],mvg=["data-testid"],rvg=["data-testid"],Zvg=["onClick","data-testid"],bvg=["data-testid"],uvg=vg(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,cvg)]),_: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:b=>s(m),class:"history-yui-kit__hint","data-testid":`${I.dataTestid}-HandleChoosePost-Title${Z}`},l.toDisplayString(m),9,Zvg),l.createVNode(nI,{type:l.unref(II).ghost,onClick:b=>n(m),"data-testid":`${I.dataTestid}-ButtonItem-Remove${Z}`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).exitSmall,width:16,"data-testid":`${I.dataTestid}-ButtonItem-RemoveIcon${Z}`},null,8,["name","data-testid"])]),_:2},1032,["type","onClick","data-testid"])],8,rvg))),128))],10,mvg)):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,bvg)]),_:1},8,["type","data-testid"]))],8,dvg)):l.createCommentVNode("",!0)}}}),[["__scopeId","data-v-55d948ee"]]),hvg=["data-testid"],Gvg=["data-testid"],wvg=["data-testid","onClick"],Wvg=["data-testid"],Bvg=["data-testid"],pvg=["data-testid"],Yvg=["data-testid"],yvg=["data-testid"],Nvg=["data-testid"],Vvg=vg(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(mg).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,Wvg),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${I.dataTestid}-Result-Slash${a}`},"/",8,Bvg),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${I.dataTestid}-Result-SearchResult${a}`},l.toDisplayString(o.searchResult),9,pvg)],8,wvg))),128))],40,Gvg)):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,Nvg)],8,yvg)],8,Yvg)):l.createCommentVNode("",!0)],8,hvg))}}),[["__scopeId","data-v-70a3720c"]]),bk=()=>{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))}}},Xvg=["data-testid"],Rvg=["data-testid"],Mvg=["data-testid"],Hvg=["placeholder","data-testid"],du=vg(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}=bk(),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},b=()=>{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,y)=>(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":y[0]||(y[0]=R=>n.searchValue=R),placeholder:I.placeholder,onKeydown:l.withKeys(w,["enter"]),onInput:B,onFocus:Z,onBlur:b,"data-testid":`${I.dataTestid}-Dropdown-Input`},null,40,Hvg),[[l.vModelText,n.searchValue]]),l.createVNode(Yg,{class:"search-icon",name:l.unref(mg).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(mg).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,Mvg)],10,Rvg),!I.global&&I.showHistory?(l.openBlock(),l.createBlock(uvg,{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(Vvg,{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,Xvg))}}),[["__scopeId","data-v-7f0a8bc7"]]);var cu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fvg(C){return C&&C.__esModule&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C}var RW={exports:{}};/**
|
|
1526
|
+
`}};bl([Lg({type:Object})],Mn.prototype,"date",2),bl([Lg({type:Object})],Mn.prototype,"minDate",2),bl([Lg({type:Object})],Mn.prototype,"maxDate",2),bl([Lg({type:String})],Mn.prototype,"locale",2),bl([Lg({type:String})],Mn.prototype,"dataTestid",2),bl([Lg({type:Number})],Mn.prototype,"firstDayOfWeek",2),bl([Lg({type:Array})],Mn.prototype,"disabledDates",2),bl([Lg({type:Array})],Mn.prototype,"events",2),bl([gW()],Mn.prototype,"_date",2),Mn=bl([Ed("col-cal")],Mn);const kTg=["data-testid"],FTg=["data-testid"],KTg=["data-testid"],zTg=["required","data-testid"],JTg=["data-testid"],xTg=["data-testid","disabled"],TTg=["data-testid","disabled"],LTg=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()},b=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,FTg)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("input",{ref_key:"inputNumberRef",ref:A,"onUpdate:modelValue":p[0]||(p[0]=Y=>t.inputElement=Y),onFocus:b,onInput:s,onKeydown:Z,class:"input-yui-kit__input",required:e.required,"data-testid":`${e.dataTestid}-Input`,type:"text"},null,40,zTg),[[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(mg).chevronUp,"data-testid":`${e.dataTestid}-Icon`},null,8,["name","data-testid"])],40,xTg),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(mg).chevronDown,"data-testid":`${e.dataTestid}-Icon`},null,8,["name","data-testid"])],40,TTg)],8,JTg)],42,kTg))}}),ou=vg(LTg,[["__scopeId","data-v-d8c024ef"]]),vTg=["data-testid"],jTg=["data-testid"],hW=vg(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 ug(e,"mousedown",a=>{!I.noClose&&a.target===e.value&&s()}),ug(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,jTg)],16,vTg))}}),[["__scopeId","data-v-2ac66c7e"]]),QTg={class:"time-picker-dialog-content"},OTg={class:"time-picker-header"},UTg={key:0,class:"clock-face"},ETg={key:1,class:"clock-face"},PTg={key:0,class:"clock-number__dot"},_Tg={class:"time-picker-actions"},GW=vg(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 y=new Date(Y);t.localHours=y.getHours(),t.localMinutes=y.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,y=100){const R=Y%12/12*360,X=y*Math.sin(R*Math.PI/180),K=-y*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 y=(D=i.value)==null?void 0:D.getBoundingClientRect();if(!y)return 0;const R=Y.clientX-(y.left+y.width/2),X=Y.clientY-(y.top+y.height/2);return(Math.atan2(X,R)*(180/Math.PI)+90+360)%360}function d(Y){const y=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(y/30)%12||12;t.hours=(X?K+12:K)%24}else t.minutes=Math.round(y/6)%60}function m(Y){d(Y)}function Z(Y){d(Y),document.addEventListener("mousemove",b),document.addEventListener("mouseup",h)}function b(Y){d(Y)}function h(){document.removeEventListener("mousemove",b),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,y=new Date(Y.getFullYear(),Y.getMonth(),Y.getDate(),+t.hours,+t.minutes,0,0),R=new Date(y.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,y)=>(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(mg).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(mg).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",QTg,[y[11]||(y[11]=l.createElementVNode("h3",null,"Установка времени",-1)),l.createElementVNode("div",OTg,[l.createElementVNode("div",null,[l.createVNode(ou,{"model-value":t.hours,"onUpdate:modelValue":y[0]||(y[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:y[1]||(y[1]=R=>t.editingValue="hour")},null,8,["model-value","class"]),y[5]||(y[5]=l.createElementVNode("span",null,"Часы",-1))]),y[7]||(y[7]=l.createElementVNode("span",{class:"time-picker-separator"},":",-1)),l.createElementVNode("div",null,[l.createVNode(ou,{"model-value":t.minutes,"onUpdate:modelValue":y[2]||(y[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:y[3]||(y[3]=R=>t.editingValue="minute")},null,8,["model-value","class"]),y[6]||(y[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",UTg,[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",ETg,[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",PTg)):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(R%5?"":R%60),1)],6))),128))])),y[8]||(y[8]=l.createElementVNode("div",{class:"clock-hand-center"},null,-1))],544)):l.createCommentVNode("",!0),l.createElementVNode("div",_Tg,[l.createElementVNode("div",{class:"time-picker-actions__switch",onClick:y[4]||(y[4]=R=>t.openClock=!t.openClock)},[l.createVNode(Yg,{name:t.openClock?l.unref(mg).keyboard:l.unref(mg).time},null,8,["name"])]),l.createVNode(nI,{size:l.unref(YI).little,type:l.unref(II).ghost,onClick:G},{default:l.withCtx(()=>[...y[9]||(y[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(()=>[...y[10]||(y[10]=[l.createTextVNode("Сохранить ",-1)])]),_:1},8,["size","type"])])])]),_:1},8,["open"])],2))}}),[["__scopeId","data-v-4edbd9e5"]]),qTg=["data-testid"],$Tg=["data-testid"],gLg=["data-testid"],ILg=vg(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(mg).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,gLg)),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(mg).crossSmall,"data-testid":`${I.dataTestid}-ButtonClose-Icon`},null,8,["name","data-testid"])]),_:1},8,["size","type","disabled","data-testid"])):l.createCommentVNode("",!0)],10,qTg),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-a0c69a64"]]),KD=["top","right","bottom","left"],zD=["start","end"],JD=KD.reduce((C,g)=>C.concat(g,g+"-"+zD[0],g+"-"+zD[1]),[]),Hn=Math.min,Dt=Math.max,wW=Math.round,WW=Math.floor,ul=C=>({x:C,y:C}),CLg={left:"right",right:"left",bottom:"top",top:"bottom"};function iV(C,g,I){return Dt(C,Hn(g,I))}function fn(C,g){return typeof C=="function"?C(g):C}function eA(C){return C.split("-")[0]}function Sn(C){return C.split("-")[1]}function AV(C){return C==="x"?"y":"x"}function nV(C){return C==="y"?"height":"width"}function Dn(C){const g=C[0];return g==="t"||g==="b"?"y":"x"}function lV(C){return AV(Dn(C))}function xD(C,g,I){I===void 0&&(I=!1);const e=Sn(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 eLg(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 TD=["left","right"],LD=["right","left"],tLg=["top","bottom"],iLg=["bottom","top"];function ALg(C,g,I){switch(C){case"top":case"bottom":return I?g?LD:TD:g?TD:LD;case"left":case"right":return g?tLg:iLg;default:return[]}}function nLg(C,g,I,e){const t=Sn(C);let i=ALg(eA(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=eA(C);return CLg[g]+C.slice(g.length)}function lLg(C){return{top:0,right:0,bottom:0,left:0,...C}}function sV(C){return typeof C!="number"?lLg(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 vD(C,g,I){let{reference:e,floating:t}=C;const i=Dn(g),A=lV(g),n=nV(A),s=eA(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(Sn(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 jD(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}=fn(g,C),b=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},y=Tr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:B,offsetParent:p,strategy:s}):B);return{top:(w.top-y.top+b.top)/Y.y,bottom:(y.bottom-w.bottom+b.bottom)/Y.y,left:(w.left-y.left+b.left)/Y.x,right:(y.right-w.right+b.right)/Y.x}}const sLg=50,oLg=async(C,g,I)=>{const{placement:e="bottom",strategy:t="absolute",middleware:i=[],platform:A}=I,n=A.detectOverflow?A:{...A,detectOverflow:jD},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}=vD(o,e,s),m=e,Z=0;const b={};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:y,reset:R}=await B({x:a,y:d,initialPlacement:e,placement:m,strategy:t,middlewareData:b,rects:o,platform:n,elements:{reference:C,floating:g}});a=p??a,d=Y??d,b[w]={...b[w],...y},R&&Z<sLg&&(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}=vD(o,m,s)),h=-1)}return{x:a,y:d,placement:m,strategy:t,middlewareData:b}},aLg=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}=fn(C,g)||{};if(o==null)return{};const d=sV(a),m={x:I,y:e},Z=lV(t),b=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[b]+i.reference[Z]-m[Z]-i.floating[b],y=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[b]);const K=Y/2-y/2,D=X/2-h[b]/2-1,F=Hn(d[w],D),z=Hn(d[B],D),v=F,O=X-h[b]-z,eg=X/2-h[b]/2+K,E=iV(v,eg,O),T=!s.arrow&&Sn(t)!=null&&eg!==E&&i.reference[b]/2-(eg<v?F:z)-h[b]/2<0,q=T?eg<v?eg-v:eg-O:0;return{[Z]:m[Z]+q,data:{[Z]:E,centerOffset:eg-E-q,...T&&{alignmentOffset:q}},reset:T}}});function dLg(C,g,I){return(C?[...I.filter(t=>Sn(t)===C),...I.filter(t=>Sn(t)!==C)]:I.filter(t=>eA(t)===t)).filter(t=>C?Sn(t)===C||(g?BW(t)!==t:!1):!0)}const cLg=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=JD,autoAlignment:Z=!0,...b}=fn(C,g),h=d!==void 0||m===JD?dLg(d||null,Z,m):m,G=await s.detectOverflow(g,b),w=((I=A.autoPlacement)==null?void 0:I.index)||0,B=h[w];if(B==null)return{};const p=xD(B,i,await(s.isRTL==null?void 0:s.isRTL(o.floating)));if(n!==B)return{reset:{placement:h[0]}};const Y=[G[eA(B)],G[p[0]],G[p[1]]],y=[...((e=A.autoPlacement)==null?void 0:e.overflows)||[],{placement:B,overflows:Y}],R=h[w+1];if(R)return{data:{index:w+1,overflows:y},reset:{placement:R}};const X=y.map(F=>{const z=Sn(F.placement);return[F.placement,z&&a?F.overflows.slice(0,2).reduce((v,O)=>v+O,0):F.overflows[0],F.overflows]}).sort((F,z)=>F[1]-z[1]),D=((t=X.filter(F=>F[2].slice(0,Sn(F[0])?2:3).every(z=>z<=0))[0])==null?void 0:t[0])||X[0][0];return D!==n?{data:{index:w+1,overflows:y},reset:{placement:D}}:{}}}},mLg=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:b="none",flipAlignment:h=!0,...G}=fn(C,g);if((I=i.arrow)!=null&&I.alignmentOffset)return{};const w=eA(t),B=Dn(n),p=eA(n)===n,Y=await(s.isRTL==null?void 0:s.isRTL(o.floating)),y=m||(p||!h?[pW(n)]:eLg(n)),R=b!=="none";!m&&R&&y.push(...nLg(n,h,b,Y));const X=[n,...y],K=await s.detectOverflow(g,G),D=[];let F=((e=i.flip)==null?void 0:e.overflows)||[];if(a&&D.push(K[w]),d){const eg=xD(t,A,Y);D.push(K[eg[0]],K[eg[1]])}if(F=[...F,{placement:t,overflows:D}],!D.every(eg=>eg<=0)){var z,v;const eg=(((z=i.flip)==null?void 0:z.index)||0)+1,E=X[eg];if(E&&(!(d==="alignment"?B!==Dn(E):!1)||F.every(cg=>Dn(cg.placement)===B?cg.overflows[0]>0:!0)))return{data:{index:eg,overflows:F},reset:{placement:E}};let T=(v=F.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=F.filter(cg=>{if(R){const og=Dn(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 QD(C,g){return{top:C.top-g.height,right:C.right-g.width,bottom:C.bottom-g.height,left:C.left-g.width}}function OD(C){return KD.some(g=>C[g]>=0)}const rLg=function(C){return C===void 0&&(C={}),{name:"hide",options:C,async fn(g){const{rects:I,platform:e}=g,{strategy:t="referenceHidden",...i}=fn(C,g);switch(t){case"referenceHidden":{const A=await e.detectOverflow(g,{...i,elementContext:"reference"}),n=QD(A,I.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:OD(n)}}}case"escaped":{const A=await e.detectOverflow(g,{...i,altBoundary:!0}),n=QD(A,I.floating);return{data:{escapedOffsets:n,escaped:OD(n)}}}default:return{}}}}};function UD(C){const g=Hn(...C.map(i=>i.left)),I=Hn(...C.map(i=>i.top)),e=Dt(...C.map(i=>i.right)),t=Dt(...C.map(i=>i.bottom));return{x:g,y:I,width:e-g,height:t-I}}function ZLg(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(UD(t)))}const bLg=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}=fn(C,g),a=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(e.reference))||[]),d=ZLg(a),m=Tr(UD(a)),Z=sV(n);function b(){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(Dn(I)==="y"){const F=d[0],z=d[d.length-1],v=eA(I)==="top",O=F.top,eg=z.bottom,E=v?F.left:z.left,T=v?F.right:z.right,q=T-E,cg=eg-O;return{top:O,bottom:eg,left:E,right:T,width:q,height:cg,x:E,y:O}}const G=eA(I)==="left",w=Dt(...d.map(F=>F.right)),B=Hn(...d.map(F=>F.left)),p=d.filter(F=>G?F.left===B:F.right===w),Y=p[0].top,y=p[p.length-1].bottom,R=B,X=w,K=X-R,D=y-Y;return{top:Y,bottom:y,left:R,right:X,width:K,height:D,x:R,y:Y}}return m}const h=await i.getElementRects({reference:{getBoundingClientRect:b},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}}:{}}}},ED=new Set(["left","top"]);async function uLg(C,g){const{placement:I,platform:e,elements:t}=C,i=await(e.isRTL==null?void 0:e.isRTL(t.floating)),A=eA(I),n=Sn(I),s=Dn(I)==="y",o=ED.has(A)?-1:1,a=i&&s?-1:1,d=fn(g,C);let{mainAxis:m,crossAxis:Z,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return n&&typeof b=="number"&&(Z=n==="end"?b*-1:b),s?{x:Z*a,y:m*o}:{x:m*o,y:Z*a}}const hLg=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 uLg(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}}}}},GLg=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}=fn(C,g),a={x:I,y:e},d=await i.detectOverflow(g,o),m=Dn(eA(t)),Z=AV(m);let b=a[Z],h=a[m];if(A){const w=Z==="y"?"top":"left",B=Z==="y"?"bottom":"right",p=b+d[w],Y=b-d[B];b=iV(p,b,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]:b,[m]:h});return{...G,data:{x:G.x-I,y:G.y-e,enabled:{[Z]:A,[m]:n}}}}}},wLg=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}=fn(C,g),a={x:I,y:e},d=Dn(t),m=AV(d);let Z=a[m],b=a[d];const h=fn(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,y=i.reference[m]+i.reference[p]-G.mainAxis;Z<Y?Z=Y:Z>y&&(Z=y)}if(o){var w,B;const p=m==="y"?"width":"height",Y=ED.has(eA(t)),y=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);b<y?b=y:b>R&&(b=R)}return{[m]:Z,[d]:b}}}},WLg=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}=fn(C,g),a=await A.detectOverflow(g,o),d=eA(t),m=Sn(t),Z=Dn(t)==="y",{width:b,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=b-a.left-a.right,Y=Hn(h-a[G],B),y=Hn(b-a[w],p),R=!g.middlewareData.shift;let X=Y,K=y;if((I=g.middlewareData.shift)!=null&&I.enabled.x&&(K=p),(e=g.middlewareData.shift)!=null&&e.enabled.y&&(X=B),R&&!m){const F=Dt(a.left,0),z=Dt(a.right,0),v=Dt(a.top,0),O=Dt(a.bottom,0);Z?K=b-2*(F!==0||z!==0?F+z:Dt(a.left,a.right)):X=h-2*(v!==0||O!==0?v+O:Dt(a.top,a.bottom))}await s({...g,availableWidth:K,availableHeight:X});const D=await A.getDimensions(n.floating);return b!==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 tA(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 tA(C).Node:!1}function kn(C){return YW()?C instanceof Element||C instanceof tA(C).Element:!1}function rs(C){return YW()?C instanceof HTMLElement||C instanceof tA(C).HTMLElement:!1}function PD(C){return!YW()||typeof ShadowRoot>"u"?!1:C instanceof ShadowRoot||C instanceof tA(C).ShadowRoot}function au(C){const{overflow:g,overflowX:I,overflowY:e,display:t}=Fn(C);return/auto|scroll|overlay|hidden|clip/.test(g+e+I)&&t!=="inline"&&t!=="contents"}function BLg(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 pLg=/transform|translate|scale|rotate|perspective|filter/,YLg=/paint|layout|strict|content/,ic=C=>!!C&&C!=="none";let aV;function dV(C){const g=kn(C)?Fn(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))||pLg.test(g.willChange||"")||YLg.test(g.contain||"")}function yLg(C){let g=Ca(C);for(;rs(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 Fn(C){return tA(C).getComputedStyle(C)}function NW(C){return kn(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||PD(C)&&C.host||hl(C);return PD(g)?g.host:g}function _D(C){const g=Ca(C);return Lr(g)?C.ownerDocument?C.ownerDocument.body:C.body:rs(g)&&au(g)?g:_D(g)}function vr(C,g,I){var e;g===void 0&&(g=[]),I===void 0&&(I=!0);const t=_D(C),i=t===((e=C.ownerDocument)==null?void 0:e.body),A=tA(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 qD(C){const g=Fn(C);let I=parseFloat(g.width)||0,e=parseFloat(g.height)||0;const t=rs(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 kn(C)?C:C.contextElement}function jr(C){const g=rV(C);if(!rs(g))return ul(1);const I=g.getBoundingClientRect(),{width:e,height:t,$:i}=qD(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 NLg=ul(0);function $D(C){const g=tA(C);return!cV()||!g.visualViewport?NLg:{x:g.visualViewport.offsetLeft,y:g.visualViewport.offsetTop}}function VLg(C,g,I){return g===void 0&&(g=!1),!I||g&&I!==tA(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?kn(e)&&(A=jr(e)):A=jr(C));const n=VLg(i,I,e)?$D(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=tA(i),Z=e&&kn(e)?tA(e):e;let b=m,h=mV(b);for(;h&&e&&Z!==b;){const G=jr(h),w=h.getBoundingClientRect(),B=Fn(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,b=tA(h),h=mV(b)}}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 gk(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 XLg(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=rs(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?gk(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 RLg(C){return Array.from(C.getClientRects())}function MLg(C){const g=hl(C),I=NW(C),e=C.ownerDocument.body,t=Dt(g.scrollWidth,g.clientWidth,e.scrollWidth,e.clientWidth),i=Dt(g.scrollHeight,g.clientHeight,e.scrollHeight,e.clientHeight);let A=-I.scrollLeft+VW(C);const n=-I.scrollTop;return Fn(e).direction==="rtl"&&(A+=Dt(g.clientWidth,e.clientWidth)-t),{width:t,height:i,x:A,y:n}}const Ik=25;function HLg(C,g){const I=tA(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,b=Math.abs(e.clientWidth-d.clientWidth-Z);b<=Ik&&(i-=b)}else o<=Ik&&(i+=o);return{width:i,height:A,x:n,y:s}}function fLg(C,g){const I=Ac(C,!0,g==="fixed"),e=I.top+C.clientTop,t=I.left+C.clientLeft,i=rs(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 Ck(C,g,I){let e;if(g==="viewport")e=HLg(C,I);else if(g==="document")e=MLg(hl(C));else if(kn(g))e=fLg(g,I);else{const t=$D(C);e={x:g.x-t.x,y:g.y-t.y,width:g.width,height:g.height}}return Tr(e)}function ek(C,g){const I=Ca(C);return I===g||!kn(I)||Lr(I)?!1:Fn(I).position==="fixed"||ek(I,g)}function SLg(C,g){const I=g.get(C);if(I)return I;let e=vr(C,[],!1).filter(n=>kn(n)&&tc(n)!=="body"),t=null;const i=Fn(C).position==="fixed";let A=i?Ca(C):C;for(;kn(A)&&!Lr(A);){const n=Fn(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&&ek(C,A))?e=e.filter(a=>a!==A):t=n,A=Ca(A)}return g.set(C,e),e}function DLg(C){let{element:g,boundary:I,rootBoundary:e,strategy:t}=C;const A=[...I==="clippingAncestors"?yW(g)?[]:SLg(g,this._c):[].concat(I),e],n=Ck(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=Ck(g,A[m],t);s=Dt(Z.top,s),o=Hn(Z.right,o),a=Hn(Z.bottom,a),d=Dt(Z.left,d)}return{width:o-d,height:a-s,x:d,y:s}}function kLg(C){const{width:g,height:I}=qD(C);return{width:g,height:I}}function FLg(C,g,I){const e=rs(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?gk(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 Fn(C).position==="static"}function tk(C,g){if(!rs(C)||Fn(C).position==="fixed")return null;if(g)return g(C);let I=C.offsetParent;return hl(C)===I&&(I=I.ownerDocument.body),I}function ik(C,g){const I=tA(C);if(yW(C))return I;if(!rs(C)){let t=Ca(C);for(;t&&!Lr(t);){if(kn(t)&&!ZV(t))return t;t=Ca(t)}return I}let e=tk(C,g);for(;e&&BLg(e)&&ZV(e);)e=tk(e,g);return e&&Lr(e)&&ZV(e)&&!dV(e)?I:e||yLg(C)||I}const KLg=async function(C){const g=this.getOffsetParent||ik,I=this.getDimensions,e=await I(C.floating);return{reference:FLg(C.reference,await g(C.floating),C.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function zLg(C){return Fn(C).direction==="rtl"}const Ak={convertOffsetParentRelativeRectToViewportRelativeRect:XLg,getDocumentElement:hl,getClippingRect:DLg,getOffsetParent:ik,getElementRects:KLg,getClientRects:RLg,getDimensions:kLg,getScale:jr,isElement:kn,isRTL:zLg};function nk(C,g){return C.x===g.x&&C.y===g.y&&C.width===g.width&&C.height===g.height}function JLg(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 b=WW(d),h=WW(t.clientWidth-(a+m)),G=WW(t.clientHeight-(d+Z)),w=WW(a),p={rootMargin:-b+"px "+-h+"px "+-G+"px "+-w+"px",threshold:Dt(0,Hn(1,s))||1};let Y=!0;function y(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&&!nk(o,C.getBoundingClientRect())&&A(),Y=!1}try{I=new IntersectionObserver(y,{...p,root:t.ownerDocument})}catch{I=new IntersectionObserver(y,p)}I.observe(C)}return A(!0),i}function lk(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?JLg(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 b,h=s?Ac(C):null;s&&G();function G(){const w=Ac(C);h&&!nk(h,w)&&I(),h=w,b=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(b)}}const xLg=jD,sk=hLg,ok=cLg,TLg=GLg,LLg=mLg,vLg=WLg,jLg=rLg,QLg=aLg,OLg=bLg,ULg=wLg,ak=(C,g,I)=>{const e=new Map,t={platform:Ak,...I},i={...t.platform,_c:e};return oLg(C,g,{...t,platform:i})};function ELg(C){return C!=null&&typeof C=="object"&&"$el"in C}function bV(C){if(ELg(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 PLg(C){return{name:"arrow",options:C,fn(g){const I=bV(Qr(C.element));return I==null?{}:QLg({element:I,padding:C.padding}).fn(g)}}}function dk(C){return typeof window>"u"?1:(C.ownerDocument.defaultView||window).devicePixelRatio||1}function ck(C,g){const I=dk(C);return Math.round(g*I)/I}function mk(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),b=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=ck(a.value,d.value),D=ck(a.value,m.value);return s.value?{...X,transform:"translate("+K+"px, "+D+"px)",...dk(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;ak(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,b.value=K.placement,h.value=K.middlewareData,G.value=X!==!1})}function Y(){typeof B=="function"&&(B(),B=void 0)}function y(){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],y,{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(b),middlewareData:l.shallowReadonly(h),isPositioned:l.shallowReadonly(G),floatingStyles:w,update:p}}const _Lg=vg(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}=mk(i,A,{middleware:[sk(10),ok({crossAxis:!0,allowedPlacements:["top-start","bottom-start"]})],strategy:n.value?"fixed":"absolute",placement:I.placement,whileElementsMounted:lk}),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-c81c9c79"]]),rk=C=>C instanceof Date&&!isNaN(C.getTime()),XW=C=>{const g=rk(C)&&C!==null?C:new Date;return new Date(Date.UTC(g.getFullYear(),g.getMonth(),g.getDate(),23,59,59,999))},Zk=C=>{const g=rk(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))},qLg=(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"],gvg=[".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 F=new Date(A.value);return isNaN(F.getTime())?null:F}),s=()=>{t.isNotClear=!1,A.value=null,i("clear"),setTimeout(()=>t.isNotClear=!0,1),a({detail:{date:null}})},o=F=>{i("change",F?new Date(F):null)},a=({detail:F})=>{if(!F)return;let z=F.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},b=()=>{t.isOpen.years=!1},h=()=>{t.isActive=!1,Z(),b()};l.watchEffect(()=>t.startDate=e.startDate??null),l.watchEffect(()=>t.endDate=e.endDate??null);const G=F=>new Date(F.getFullYear(),F.getMonth(),1),w=F=>new Date(F.getFullYear(),F.getMonth()+1,0,23,59,59,999),B=F=>new Date(F.getFullYear(),0,1),p=F=>new Date(F.getFullYear(),11,31,23,59,59,999),Y=()=>t.isOpen.months&&!t.isOpen.years?"months":t.isOpen.years&&!t.isOpen.months?"years":null,y=F=>{switch(Y()){case"months":return G(F);case"years":return B(F);default:return F}},R=F=>{switch(Y()){case"months":return w(F);case"years":return p(F);default:return F}},X=()=>{const F=t.startDate??new Date;if(e.startDate){const z=n.value??new Date;if(F.valueOf()<=z.valueOf())return y(F);if(F!=null)return y(F)}return null},K=()=>{const F=t.endDate??new Date;if(e.endDate){const z=n.value??new Date;if(F.valueOf()>=z.valueOf())return R(F);if(F!=null)return R(F)}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}),(F,z)=>(l.openBlock(),l.createElementBlock("div",{class:"date-picker-yui-kit__wrapper","data-testid":`${e.dataTestid}-Wrapper`},[l.createVNode(_Lg,{open:!e.disabled&&t.isActive,onUnmountClose:h},{trigger:l.withCtx(()=>[l.createVNode(ILg,{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(qLg)(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:b,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(mg).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(mg).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(mg).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"icon-right-button",name:l.unref(mg).chevronRight,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"years-icon-left",name:l.unref(mg).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"years-icon-right",name:l.unref(mg).chevronRight,width:16,height:16},null,8,["name"])],40,gvg)]),_:1},8,["open"])],8,$Lg))}});var nc=(C=>(C.start="start",C.end="end",C))(nc||{});const Ivg=["data-testid"],Cvg=["data-testid"],evg=vg(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 b,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":(b=i.date)==null?void 0:b.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,Cvg),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,Ivg)}}}),[["__scopeId","data-v-cd5db169"]]),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(evg,{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"]))}}),tvg=["data-testid"],ivg=["data-testid"],GV=vg(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(mg).chevronUp,class:"chevron-up","stroke-width":"2","data-testid":`${g.dataTestid}-ChevronUp`},null,8,["name","data-testid"]),l.createVNode(Yg,{name:l.unref(mg).chevronDown,class:"chevron-down","stroke-width":"2","data-testid":`${g.dataTestid}-ChevronDown`},null,8,["name","data-testid"])],8,ivg),l.renderSlot(I.$slots,"default",{},void 0,!0)],8,tvg))}}),[["__scopeId","data-v-b9b27643"]]),Avg=["data-testid"],nvg=["data-testid"],lvg=["data-testid"],svg=["data-testid","multiple"],wV=vg(l.defineComponent({__name:"DragAndDrop",props:{singleFileMode:{type:Boolean,default:!1},title:{default:"Кликните или перенесите файлы"},type:{},dataTestid:{default:"DragAndDrop"}},emits:["fileDropped"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isPressed:!1}),i=l.computed(()=>[{"dnd-yui-kit_secondary":I.type==="secondary","dnd-yui-kit_primary":I.type==="primary"}]),A=l.ref(null),n=b=>{const h=b.target;Z(h.files)},s=()=>{A.value&&(A.value.value="")},o=b=>{var G;b.preventDefault();const h=(G=b.currentTarget)==null?void 0:G.children[0];h.classList.contains("active")||h.classList.add("active")},a=b=>{b.currentTarget.children[0].classList.remove("active")},d=b=>{var G;b.preventDefault(),Z(((G=b.dataTransfer)==null?void 0:G.files)||null),b.currentTarget.children[0].classList.remove("active")},m=()=>{t.isPressed=!t.isPressed},Z=b=>{t.isPressed=!1,e("fileDropped",b)};return l.onMounted(()=>{var b;(b=A.value)==null||b.addEventListener("cancel",()=>{t.isPressed=!1})}),(b,h)=>(l.openBlock(),l.createElementBlock("div",{onDragover:o,onDragleave:a,onDrop:d,class:l.normalizeClass(["dnd-yui-kit",i.value]),"data-testid":I.dataTestid},[l.createElementVNode("label",{for:"docsFileSelected",class:l.normalizeClass(["dnd-yui-kit__label",{"is-pressed":t.isPressed}]),onClick:m,"data-testid":`${I.dataTestid}-Label`},[l.createVNode(Yg,{name:l.unref(mg).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,lvg)],10,nvg),l.createElementVNode("input",{id:"docsFileSelected",onChange:n,onClick:s,type:"file",style:{display:"none"},"data-testid":`${I.dataTestid}-Input`,required:"",multiple:!I.singleFileMode,ref_key:"fileInputRef",ref:A},null,40,svg)],42,Avg))}}),[["__scopeId","data-v-5f9a1913"]]),ovg=["data-testid"],avg=["data-testid"],WV=vg(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,avg)):l.createCommentVNode("",!0),l.renderSlot(I.$slots,"default",{},void 0,!0)],8,ovg))}}),[["__scopeId","data-v-ae69aa44"]]),dvg=["data-testid"],cvg=["data-testid"],mvg=["data-testid"],rvg=["data-testid"],Zvg=["onClick","data-testid"],bvg=["data-testid"],uvg=vg(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,cvg)]),_: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:b=>s(m),class:"history-yui-kit__hint","data-testid":`${I.dataTestid}-HandleChoosePost-Title${Z}`},l.toDisplayString(m),9,Zvg),l.createVNode(nI,{type:l.unref(II).ghost,onClick:b=>n(m),"data-testid":`${I.dataTestid}-ButtonItem-Remove${Z}`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).exitSmall,width:16,"data-testid":`${I.dataTestid}-ButtonItem-RemoveIcon${Z}`},null,8,["name","data-testid"])]),_:2},1032,["type","onClick","data-testid"])],8,rvg))),128))],10,mvg)):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,bvg)]),_:1},8,["type","data-testid"]))],8,dvg)):l.createCommentVNode("",!0)}}}),[["__scopeId","data-v-55d948ee"]]),hvg=["data-testid"],Gvg=["data-testid"],wvg=["data-testid","onClick"],Wvg=["data-testid"],Bvg=["data-testid"],pvg=["data-testid"],Yvg=["data-testid"],yvg=["data-testid"],Nvg=["data-testid"],Vvg=vg(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(mg).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,Wvg),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${I.dataTestid}-Result-Slash${a}`},"/",8,Bvg),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${I.dataTestid}-Result-SearchResult${a}`},l.toDisplayString(o.searchResult),9,pvg)],8,wvg))),128))],40,Gvg)):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,Nvg)],8,yvg)],8,Yvg)):l.createCommentVNode("",!0)],8,hvg))}}),[["__scopeId","data-v-70a3720c"]]),bk=()=>{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))}}},Xvg=["data-testid"],Rvg=["data-testid"],Mvg=["data-testid"],Hvg=["placeholder","data-testid"],du=vg(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}=bk(),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},b=()=>{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,y)=>(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":y[0]||(y[0]=R=>n.searchValue=R),placeholder:I.placeholder,onKeydown:l.withKeys(w,["enter"]),onInput:B,onFocus:Z,onBlur:b,"data-testid":`${I.dataTestid}-Dropdown-Input`},null,40,Hvg),[[l.vModelText,n.searchValue]]),l.createVNode(Yg,{class:"search-icon",name:l.unref(mg).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(mg).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,Mvg)],10,Rvg),!I.global&&I.showHistory?(l.openBlock(),l.createBlock(uvg,{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(Vvg,{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,Xvg))}}),[["__scopeId","data-v-7f0a8bc7"]]);var cu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fvg(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/>
|
|
1530
1530
|
* Released under MIT license <https://lodash.com/license>
|
|
1531
1531
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1532
1532
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1533
|
-
*/RW.exports,function(C,g){(function(){var I,e="4.18.1",t=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",A="Expected a function",n="Invalid `variable` option passed into `_.template`",s="Invalid `imports` option passed into `_.template`",o="__lodash_hash_undefined__",a=500,d="__lodash_placeholder__",m=1,Z=2,b=4,h=1,G=2,w=1,B=2,p=4,Y=8,y=16,R=32,X=64,K=128,D=256,F=512,z=30,v="...",O=800,eg=16,E=1,T=2,q=3,cg=1/0,og=9007199254740991,Wg=17976931348623157e292,fg=NaN,Vg=4294967295,Bg=Vg-1,kg=Vg>>>1,Rg=[["ary",K],["bind",w],["bindKey",B],["curry",Y],["curryRight",y],["flip",F],["partial",R],["partialRight",X],["rearg",D]],gI="[object Arguments]",qg="[object Array]",UI="[object AsyncFunction]",BC="[object Boolean]",yC="[object Date]",EI="[object DOMException]",te="[object Error]",oC="[object Function]",re="[object GeneratorFunction]",DI="[object Map]",HC="[object Number]",aC="[object Null]",fC="[object Object]",RA="[object Promise]",st="[object Proxy]",vC="[object RegExp]",PI="[object Set]",Be="[object String]",NC="[object Symbol]",ot="[object Undefined]",dC="[object WeakMap]",hi="[object WeakSet]",pe="[object ArrayBuffer]",jC="[object DataView]",Gi="[object Float32Array]",Ue="[object Float64Array]",Ui="[object Int8Array]",at="[object Int16Array]",QC="[object Int32Array]",wi="[object Uint8Array]",MA="[object Uint8ClampedArray]",HA="[object Uint16Array]",dt="[object Uint32Array]",Ei=/\b__p \+= '';/g,is=/\b(__p \+=) '' \+/g,Wi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bi=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,yo=RegExp(Bi.source),No=RegExp(Ee.source),Vo=/<%-([\s\S]+?)%>/g,il=/<%([\s\S]+?)%>/g,lg=/<%=([\s\S]+?)%>/g,bg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sg=/^\w*$/,Kg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ug=/[\\^$.*+?()[\]{}|]/g,MI=RegExp(Ug.source),_I=/^\s+/,Xt=/\s/,Ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$=/\{\n\/\* \[wrapped with (.+)\] \*/,Ig=/,? & /,rg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jg=/[()=,{}\[\]\/\s]/,oI=/\\(\\)?/g,HI=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tI=/\w*$/,JI=/^[-+]0x[0-9a-f]+$/i,OC=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,Xo=/^(?:0|[1-9]\d*)$/,Ro=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,un=/($^)/,ib=/['\n\r\u2028\u2029\\]/g,As="\\ud800-\\udfff",gg="\\u0300-\\u036f",j="\\ufe20-\\ufe2f",ag="\\u20d0-\\u20ff",yg=gg+j+ag,$g="\\u2700-\\u27bf",bI="a-z\\xdf-\\xf6\\xf8-\\xff",VI="\\xac\\xb1\\xd7\\xf7",qI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cC="\\u2000-\\u206f",ze=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ar="A-Z\\xc0-\\xd6\\xd8-\\xde",nr="\\ufe0e\\ufe0f",T1=VI+qI+cC+ze,Ab="['’]",L1="["+As+"]",N2="["+T1+"]",nb="["+yg+"]",V2="\\d+",X2="["+$g+"]",Bd="["+bI+"]",lr="[^"+As+T1+V2+$g+bI+Ar+"]",lb="\\ud83c[\\udffb-\\udfff]",G9="(?:"+nb+"|"+lb+")",v1="[^"+As+"]",sb="(?:\\ud83c[\\udde6-\\uddff]){2}",ob="[\\ud800-\\udbff][\\udc00-\\udfff]",L="["+Ar+"]",P="\\u200d",tg="(?:"+Bd+"|"+lr+")",ug="(?:"+L+"|"+lr+")",Og="(?:"+Ab+"(?:d|ll|m|re|s|t|ve))?",mI="(?:"+Ab+"(?:D|LL|M|RE|S|T|VE))?",Pi=G9+"?",pd="["+nr+"]?",hn="(?:"+P+"(?:"+[v1,sb,ob].join("|")+")"+pd+Pi+")*",Yd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Je=pd+Pi+hn,R2="(?:"+[X2,sb,ob].join("|")+")"+Je,M2="(?:"+[v1+nb+"?",nb,sb,ob,L1].join("|")+")",j1=RegExp(Ab,"g"),w9=RegExp(nb,"g"),ab=RegExp(lb+"(?="+lb+")|"+M2+Je,"g"),Q1=RegExp([L+"?"+Bd+"+"+Og+"(?="+[N2,L,"$"].join("|")+")",ug+"+"+mI+"(?="+[N2,L+tg,"$"].join("|")+")",L+"?"+tg+"+"+Og,L+"+"+mI,Gn,Yd,V2,R2].join("|"),"g"),VtI=RegExp("["+P+As+yg+nr+"]"),XtI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,RtI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],MtI=-1,zC={};zC[Gi]=zC[Ue]=zC[Ui]=zC[at]=zC[QC]=zC[wi]=zC[MA]=zC[HA]=zC[dt]=!0,zC[gI]=zC[qg]=zC[pe]=zC[BC]=zC[jC]=zC[yC]=zC[te]=zC[oC]=zC[DI]=zC[HC]=zC[fC]=zC[vC]=zC[PI]=zC[Be]=zC[dC]=!1;var SC={};SC[gI]=SC[qg]=SC[pe]=SC[jC]=SC[BC]=SC[yC]=SC[Gi]=SC[Ue]=SC[Ui]=SC[at]=SC[QC]=SC[DI]=SC[HC]=SC[fC]=SC[vC]=SC[PI]=SC[Be]=SC[NC]=SC[wi]=SC[MA]=SC[HA]=SC[dt]=!0,SC[te]=SC[oC]=SC[dC]=!1;var HtI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ftI={"&":"&","<":"<",">":">",'"':""","'":"'"},StI={"&":"&","<":"<",">":">",""":'"',"'":"'"},DtI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ktI=parseFloat,FtI=parseInt,cL=typeof cu=="object"&&cu&&cu.Object===Object&&cu,KtI=typeof self=="object"&&self&&self.Object===Object&&self,Rt=cL||KtI||Function("return this")(),W9=g&&!g.nodeType&&g,sr=W9&&!0&&C&&!C.nodeType&&C,mL=sr&&sr.exports===W9,B9=mL&&cL.process,wn=function(){try{var Ag=sr&&sr.require&&sr.require("util").types;return Ag||B9&&B9.binding&&B9.binding("util")}catch{}}(),rL=wn&&wn.isArrayBuffer,ZL=wn&&wn.isDate,bL=wn&&wn.isMap,uL=wn&&wn.isRegExp,hL=wn&&wn.isSet,GL=wn&&wn.isTypedArray;function fA(Ag,Zg,dg){switch(dg.length){case 0:return Ag.call(Zg);case 1:return Ag.call(Zg,dg[0]);case 2:return Ag.call(Zg,dg[0],dg[1]);case 3:return Ag.call(Zg,dg[0],dg[1],dg[2])}return Ag.apply(Zg,dg)}function ztI(Ag,Zg,dg,Tg){for(var dI=-1,$I=Ag==null?0:Ag.length;++dI<$I;){var Pe=Ag[dI];Zg(Tg,Pe,dg(Pe),Ag)}return Tg}function SA(Ag,Zg){for(var dg=-1,Tg=Ag==null?0:Ag.length;++dg<Tg&&Zg(Ag[dg],dg,Ag)!==!1;);return Ag}function JtI(Ag,Zg){for(var dg=Ag==null?0:Ag.length;dg--&&Zg(Ag[dg],dg,Ag)!==!1;);return Ag}function wL(Ag,Zg){for(var dg=-1,Tg=Ag==null?0:Ag.length;++dg<Tg;)if(!Zg(Ag[dg],dg,Ag))return!1;return!0}function yd(Ag,Zg){for(var dg=-1,Tg=Ag==null?0:Ag.length,dI=0,$I=[];++dg<Tg;){var Pe=Ag[dg];Zg(Pe,dg,Ag)&&($I[dI++]=Pe)}return $I}function O1(Ag,Zg){var dg=Ag==null?0:Ag.length;return!!dg&&db(Ag,Zg,0)>-1}function p9(Ag,Zg,dg){for(var Tg=-1,dI=Ag==null?0:Ag.length;++Tg<dI;)if(dg(Zg,Ag[Tg]))return!0;return!1}function UC(Ag,Zg){for(var dg=-1,Tg=Ag==null?0:Ag.length,dI=Array(Tg);++dg<Tg;)dI[dg]=Zg(Ag[dg],dg,Ag);return dI}function Nd(Ag,Zg){for(var dg=-1,Tg=Zg.length,dI=Ag.length;++dg<Tg;)Ag[dI+dg]=Zg[dg];return Ag}function Y9(Ag,Zg,dg,Tg){var dI=-1,$I=Ag==null?0:Ag.length;for(Tg&&$I&&(dg=Ag[++dI]);++dI<$I;)dg=Zg(dg,Ag[dI],dI,Ag);return dg}function xtI(Ag,Zg,dg,Tg){var dI=Ag==null?0:Ag.length;for(Tg&&dI&&(dg=Ag[--dI]);dI--;)dg=Zg(dg,Ag[dI],dI,Ag);return dg}function y9(Ag,Zg){for(var dg=-1,Tg=Ag==null?0:Ag.length;++dg<Tg;)if(Zg(Ag[dg],dg,Ag))return!0;return!1}var TtI=N9("length");function LtI(Ag){return Ag.split("")}function vtI(Ag){return Ag.match(rg)||[]}function WL(Ag,Zg,dg){var Tg;return dg(Ag,function(dI,$I,Pe){if(Zg(dI,$I,Pe))return Tg=$I,!1}),Tg}function U1(Ag,Zg,dg,Tg){for(var dI=Ag.length,$I=dg+(Tg?1:-1);Tg?$I--:++$I<dI;)if(Zg(Ag[$I],$I,Ag))return $I;return-1}function db(Ag,Zg,dg){return Zg===Zg?CiI(Ag,Zg,dg):U1(Ag,BL,dg)}function jtI(Ag,Zg,dg,Tg){for(var dI=dg-1,$I=Ag.length;++dI<$I;)if(Tg(Ag[dI],Zg))return dI;return-1}function BL(Ag){return Ag!==Ag}function pL(Ag,Zg){var dg=Ag==null?0:Ag.length;return dg?X9(Ag,Zg)/dg:fg}function N9(Ag){return function(Zg){return Zg==null?I:Zg[Ag]}}function V9(Ag){return function(Zg){return Ag==null?I:Ag[Zg]}}function YL(Ag,Zg,dg,Tg,dI){return dI(Ag,function($I,Pe,VC){dg=Tg?(Tg=!1,$I):Zg(dg,$I,Pe,VC)}),dg}function QtI(Ag,Zg){var dg=Ag.length;for(Ag.sort(Zg);dg--;)Ag[dg]=Ag[dg].value;return Ag}function X9(Ag,Zg){for(var dg,Tg=-1,dI=Ag.length;++Tg<dI;){var $I=Zg(Ag[Tg]);$I!==I&&(dg=dg===I?$I:dg+$I)}return dg}function R9(Ag,Zg){for(var dg=-1,Tg=Array(Ag);++dg<Ag;)Tg[dg]=Zg(dg);return Tg}function OtI(Ag,Zg){return UC(Zg,function(dg){return[dg,Ag[dg]]})}function yL(Ag){return Ag&&Ag.slice(0,RL(Ag)+1).replace(_I,"")}function DA(Ag){return function(Zg){return Ag(Zg)}}function M9(Ag,Zg){return UC(Zg,function(dg){return Ag[dg]})}function H2(Ag,Zg){return Ag.has(Zg)}function NL(Ag,Zg){for(var dg=-1,Tg=Ag.length;++dg<Tg&&db(Zg,Ag[dg],0)>-1;);return dg}function VL(Ag,Zg){for(var dg=Ag.length;dg--&&db(Zg,Ag[dg],0)>-1;);return dg}function UtI(Ag,Zg){for(var dg=Ag.length,Tg=0;dg--;)Ag[dg]===Zg&&++Tg;return Tg}var EtI=V9(HtI),PtI=V9(ftI);function _tI(Ag){return"\\"+DtI[Ag]}function qtI(Ag,Zg){return Ag==null?I:Ag[Zg]}function cb(Ag){return VtI.test(Ag)}function $tI(Ag){return XtI.test(Ag)}function giI(Ag){for(var Zg,dg=[];!(Zg=Ag.next()).done;)dg.push(Zg.value);return dg}function H9(Ag){var Zg=-1,dg=Array(Ag.size);return Ag.forEach(function(Tg,dI){dg[++Zg]=[dI,Tg]}),dg}function XL(Ag,Zg){return function(dg){return Ag(Zg(dg))}}function Vd(Ag,Zg){for(var dg=-1,Tg=Ag.length,dI=0,$I=[];++dg<Tg;){var Pe=Ag[dg];(Pe===Zg||Pe===d)&&(Ag[dg]=d,$I[dI++]=dg)}return $I}function E1(Ag){var Zg=-1,dg=Array(Ag.size);return Ag.forEach(function(Tg){dg[++Zg]=Tg}),dg}function IiI(Ag){var Zg=-1,dg=Array(Ag.size);return Ag.forEach(function(Tg){dg[++Zg]=[Tg,Tg]}),dg}function CiI(Ag,Zg,dg){for(var Tg=dg-1,dI=Ag.length;++Tg<dI;)if(Ag[Tg]===Zg)return Tg;return-1}function eiI(Ag,Zg,dg){for(var Tg=dg+1;Tg--;)if(Ag[Tg]===Zg)return Tg;return Tg}function mb(Ag){return cb(Ag)?iiI(Ag):TtI(Ag)}function Al(Ag){return cb(Ag)?AiI(Ag):LtI(Ag)}function RL(Ag){for(var Zg=Ag.length;Zg--&&Xt.test(Ag.charAt(Zg)););return Zg}var tiI=V9(StI);function iiI(Ag){for(var Zg=ab.lastIndex=0;ab.test(Ag);)++Zg;return Zg}function AiI(Ag){return Ag.match(ab)||[]}function niI(Ag){return Ag.match(Q1)||[]}var liI=function Ag(Zg){Zg=Zg==null?Rt:rb.defaults(Rt.Object(),Zg,rb.pick(Rt,RtI));var dg=Zg.Array,Tg=Zg.Date,dI=Zg.Error,$I=Zg.Function,Pe=Zg.Math,VC=Zg.Object,f9=Zg.RegExp,siI=Zg.String,Wn=Zg.TypeError,P1=dg.prototype,oiI=$I.prototype,Zb=VC.prototype,_1=Zg["__core-js_shared__"],q1=oiI.toString,tC=Zb.hasOwnProperty,aiI=0,ML=function(){var r=/[^.]+$/.exec(_1&&_1.keys&&_1.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),$1=Zb.toString,diI=q1.call(VC),ciI=Rt._,miI=f9("^"+q1.call(tC).replace(Ug,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gY=mL?Zg.Buffer:I,Xd=Zg.Symbol,IY=Zg.Uint8Array,HL=gY?gY.allocUnsafe:I,CY=XL(VC.getPrototypeOf,VC),fL=VC.create,SL=Zb.propertyIsEnumerable,eY=P1.splice,DL=Xd?Xd.isConcatSpreadable:I,f2=Xd?Xd.iterator:I,or=Xd?Xd.toStringTag:I,tY=function(){try{var r=rr(VC,"defineProperty");return r({},"",{}),r}catch{}}(),riI=Zg.clearTimeout!==Rt.clearTimeout&&Zg.clearTimeout,ZiI=Tg&&Tg.now!==Rt.Date.now&&Tg.now,biI=Zg.setTimeout!==Rt.setTimeout&&Zg.setTimeout,iY=Pe.ceil,AY=Pe.floor,S9=VC.getOwnPropertySymbols,uiI=gY?gY.isBuffer:I,kL=Zg.isFinite,hiI=P1.join,GiI=XL(VC.keys,VC),_e=Pe.max,Ot=Pe.min,wiI=Tg.now,WiI=Zg.parseInt,FL=Pe.random,BiI=P1.reverse,D9=rr(Zg,"DataView"),S2=rr(Zg,"Map"),k9=rr(Zg,"Promise"),bb=rr(Zg,"Set"),D2=rr(Zg,"WeakMap"),k2=rr(VC,"create"),nY=D2&&new D2,ub={},piI=Zr(D9),YiI=Zr(S2),yiI=Zr(k9),NiI=Zr(bb),ViI=Zr(D2),lY=Xd?Xd.prototype:I,F2=lY?lY.valueOf:I,KL=lY?lY.toString:I;function J(r){if(be(r)&&!uI(r)&&!(r instanceof zI)){if(r instanceof Bn)return r;if(tC.call(r,"__wrapped__"))return zv(r)}return new Bn(r)}var hb=function(){function r(){}return function(u){if(!ie(u))return{};if(fL)return fL(u);r.prototype=u;var W=new r;return r.prototype=I,W}}();function sY(){}function Bn(r,u){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=I}J.templateSettings={escape:Vo,evaluate:il,interpolate:lg,variable:"",imports:{_:J}},J.prototype=sY.prototype,J.prototype.constructor=J,Bn.prototype=hb(sY.prototype),Bn.prototype.constructor=Bn;function zI(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Vg,this.__views__=[]}function XiI(){var r=new zI(this.__wrapped__);return r.__actions__=_i(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=_i(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=_i(this.__views__),r}function RiI(){if(this.__filtered__){var r=new zI(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function MiI(){var r=this.__wrapped__.value(),u=this.__dir__,W=uI(r),V=u<0,k=W?r.length:0,x=LAI(0,k,this.__views__),U=x.start,Cg=x.end,ng=Cg-U,Gg=V?Cg:U-1,wg=this.__iteratees__,pg=wg.length,Fg=0,Eg=Ot(ng,this.__takeCount__);if(!W||!V&&k==ng&&Eg==ng)return lv(r,this.__actions__);var AI=[];g:for(;ng--&&Fg<Eg;){Gg+=u;for(var XI=-1,CI=r[Gg];++XI<pg;){var kI=wg[XI],xI=kI.iteratee,KA=kI.type,yi=xI(CI);if(KA==T)CI=yi;else if(!yi){if(KA==E)continue g;break g}}AI[Fg++]=CI}return AI}zI.prototype=hb(sY.prototype),zI.prototype.constructor=zI;function ar(r){var u=-1,W=r==null?0:r.length;for(this.clear();++u<W;){var V=r[u];this.set(V[0],V[1])}}function HiI(){this.__data__=k2?k2(null):{},this.size=0}function fiI(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}function SiI(r){var u=this.__data__;if(k2){var W=u[r];return W===o?I:W}return tC.call(u,r)?u[r]:I}function DiI(r){var u=this.__data__;return k2?u[r]!==I:tC.call(u,r)}function kiI(r,u){var W=this.__data__;return this.size+=this.has(r)?0:1,W[r]=k2&&u===I?o:u,this}ar.prototype.clear=HiI,ar.prototype.delete=fiI,ar.prototype.get=SiI,ar.prototype.has=DiI,ar.prototype.set=kiI;function Mo(r){var u=-1,W=r==null?0:r.length;for(this.clear();++u<W;){var V=r[u];this.set(V[0],V[1])}}function FiI(){this.__data__=[],this.size=0}function KiI(r){var u=this.__data__,W=oY(u,r);if(W<0)return!1;var V=u.length-1;return W==V?u.pop():eY.call(u,W,1),--this.size,!0}function ziI(r){var u=this.__data__,W=oY(u,r);return W<0?I:u[W][1]}function JiI(r){return oY(this.__data__,r)>-1}function xiI(r,u){var W=this.__data__,V=oY(W,r);return V<0?(++this.size,W.push([r,u])):W[V][1]=u,this}Mo.prototype.clear=FiI,Mo.prototype.delete=KiI,Mo.prototype.get=ziI,Mo.prototype.has=JiI,Mo.prototype.set=xiI;function Ho(r){var u=-1,W=r==null?0:r.length;for(this.clear();++u<W;){var V=r[u];this.set(V[0],V[1])}}function TiI(){this.size=0,this.__data__={hash:new ar,map:new(S2||Mo),string:new ar}}function LiI(r){var u=WY(this,r).delete(r);return this.size-=u?1:0,u}function viI(r){return WY(this,r).get(r)}function jiI(r){return WY(this,r).has(r)}function QiI(r,u){var W=WY(this,r),V=W.size;return W.set(r,u),this.size+=W.size==V?0:1,this}Ho.prototype.clear=TiI,Ho.prototype.delete=LiI,Ho.prototype.get=viI,Ho.prototype.has=jiI,Ho.prototype.set=QiI;function dr(r){var u=-1,W=r==null?0:r.length;for(this.__data__=new Ho;++u<W;)this.add(r[u])}function OiI(r){return this.__data__.set(r,o),this}function UiI(r){return this.__data__.has(r)}dr.prototype.add=dr.prototype.push=OiI,dr.prototype.has=UiI;function nl(r){var u=this.__data__=new Mo(r);this.size=u.size}function EiI(){this.__data__=new Mo,this.size=0}function PiI(r){var u=this.__data__,W=u.delete(r);return this.size=u.size,W}function _iI(r){return this.__data__.get(r)}function qiI(r){return this.__data__.has(r)}function $iI(r,u){var W=this.__data__;if(W instanceof Mo){var V=W.__data__;if(!S2||V.length<t-1)return V.push([r,u]),this.size=++W.size,this;W=this.__data__=new Ho(V)}return W.set(r,u),this.size=W.size,this}nl.prototype.clear=EiI,nl.prototype.delete=PiI,nl.prototype.get=_iI,nl.prototype.has=qiI,nl.prototype.set=$iI;function zL(r,u){var W=uI(r),V=!W&&br(r),k=!W&&!V&&Sd(r),x=!W&&!V&&!k&&Bb(r),U=W||V||k||x,Cg=U?R9(r.length,siI):[],ng=Cg.length;for(var Gg in r)(u||tC.call(r,Gg))&&!(U&&(Gg=="length"||k&&(Gg=="offset"||Gg=="parent")||x&&(Gg=="buffer"||Gg=="byteLength"||Gg=="byteOffset")||Do(Gg,ng)))&&Cg.push(Gg);return Cg}function JL(r){var u=r.length;return u?r[O9(0,u-1)]:I}function gAI(r,u){return BY(_i(r),cr(u,0,r.length))}function IAI(r){return BY(_i(r))}function F9(r,u,W){(W!==I&&!sl(r[u],W)||W===I&&!(u in r))&&ns(r,u,W)}function K2(r,u,W){var V=r[u];(!(tC.call(r,u)&&sl(V,W))||W===I&&!(u in r))&&ns(r,u,W)}function oY(r,u){for(var W=r.length;W--;)if(sl(r[W][0],u))return W;return-1}function CAI(r,u,W,V){return Rd(r,function(k,x,U){u(V,k,W(k),U)}),V}function xL(r,u){return r&&ss(u,ct(u),r)}function eAI(r,u){return r&&ss(u,$i(u),r)}function ns(r,u,W){u=="__proto__"&&tY?tY(r,u,{configurable:!0,enumerable:!0,value:W,writable:!0}):r[u]=W}function K9(r,u){for(var W=-1,V=u.length,k=dg(V),x=r==null;++W<V;)k[W]=x?I:hM(r,u[W]);return k}function cr(r,u,W){return r===r&&(W!==I&&(r=r<=W?r:W),u!==I&&(r=r>=u?r:u)),r}function pn(r,u,W,V,k,x){var U,Cg=u&m,ng=u&Z,Gg=u&b;if(W&&(U=k?W(r,V,k,x):W(r)),U!==I)return U;if(!ie(r))return r;var wg=uI(r);if(wg){if(U=jAI(r),!Cg)return _i(r,U)}else{var pg=Ut(r),Fg=pg==oC||pg==re;if(Sd(r))return av(r,Cg);if(pg==fC||pg==gI||Fg&&!k){if(U=ng||Fg?{}:Rv(r),!Cg)return ng?SAI(r,eAI(U,r)):fAI(r,xL(U,r))}else{if(!SC[pg])return k?r:{};U=QAI(r,pg,Cg)}}x||(x=new nl);var Eg=x.get(r);if(Eg)return Eg;x.set(r,U),ij(r)?r.forEach(function(CI){U.add(pn(CI,u,W,CI,r,x))}):ej(r)&&r.forEach(function(CI,kI){U.set(kI,pn(CI,u,W,kI,r,x))});var AI=Gg?ng?tM:eM:ng?$i:ct,XI=wg?I:AI(r);return SA(XI||r,function(CI,kI){XI&&(kI=CI,CI=r[kI]),K2(U,kI,pn(CI,u,W,kI,r,x))}),U}function tAI(r){var u=ct(r);return function(W){return TL(W,r,u)}}function TL(r,u,W){var V=W.length;if(r==null)return!V;for(r=VC(r);V--;){var k=W[V],x=u[k],U=r[k];if(U===I&&!(k in r)||!x(U))return!1}return!0}function LL(r,u,W){if(typeof r!="function")throw new Wn(A);return j2(function(){r.apply(I,W)},u)}function z2(r,u,W,V){var k=-1,x=O1,U=!0,Cg=r.length,ng=[],Gg=u.length;if(!Cg)return ng;W&&(u=UC(u,DA(W))),V?(x=p9,U=!1):u.length>=t&&(x=H2,U=!1,u=new dr(u));g:for(;++k<Cg;){var wg=r[k],pg=W==null?wg:W(wg);if(wg=V||wg!==0?wg:0,U&&pg===pg){for(var Fg=Gg;Fg--;)if(u[Fg]===pg)continue g;ng.push(wg)}else x(u,pg,V)||ng.push(wg)}return ng}var Rd=Zv(ls),vL=Zv(J9,!0);function iAI(r,u){var W=!0;return Rd(r,function(V,k,x){return W=!!u(V,k,x),W}),W}function aY(r,u,W){for(var V=-1,k=r.length;++V<k;){var x=r[V],U=u(x);if(U!=null&&(Cg===I?U===U&&!FA(U):W(U,Cg)))var Cg=U,ng=x}return ng}function AAI(r,u,W,V){var k=r.length;for(W=pI(W),W<0&&(W=-W>k?0:k+W),V=V===I||V>k?k:pI(V),V<0&&(V+=k),V=W>V?0:nj(V);W<V;)r[W++]=u;return r}function jL(r,u){var W=[];return Rd(r,function(V,k,x){u(V,k,x)&&W.push(V)}),W}function Mt(r,u,W,V,k){var x=-1,U=r.length;for(W||(W=UAI),k||(k=[]);++x<U;){var Cg=r[x];u>0&&W(Cg)?u>1?Mt(Cg,u-1,W,V,k):Nd(k,Cg):V||(k[k.length]=Cg)}return k}var z9=bv(),QL=bv(!0);function ls(r,u){return r&&z9(r,u,ct)}function J9(r,u){return r&&QL(r,u,ct)}function dY(r,u){return yd(u,function(W){return ko(r[W])})}function mr(r,u){u=Hd(u,r);for(var W=0,V=u.length;r!=null&&W<V;)r=r[ll(u[W++])];return W&&W==V?r:I}function OL(r,u,W){var V=u(r);return uI(r)?V:Nd(V,W(r))}function pi(r){return r==null?r===I?ot:aC:or&&or in VC(r)?TAI(r):InI(r)}function x9(r,u){return r>u}function nAI(r,u){return r!=null&&tC.call(r,u)}function lAI(r,u){return r!=null&&u in VC(r)}function sAI(r,u,W){return r>=Ot(u,W)&&r<_e(u,W)}function T9(r,u,W){for(var V=W?p9:O1,k=r[0].length,x=r.length,U=x,Cg=dg(x),ng=1/0,Gg=[];U--;){var wg=r[U];U&&u&&(wg=UC(wg,DA(u))),ng=Ot(wg.length,ng),Cg[U]=!W&&(u||k>=120&&wg.length>=120)?new dr(U&&wg):I}wg=r[0];var pg=-1,Fg=Cg[0];g:for(;++pg<k&&Gg.length<ng;){var Eg=wg[pg],AI=u?u(Eg):Eg;if(Eg=W||Eg!==0?Eg:0,!(Fg?H2(Fg,AI):V(Gg,AI,W))){for(U=x;--U;){var XI=Cg[U];if(!(XI?H2(XI,AI):V(r[U],AI,W)))continue g}Fg&&Fg.push(AI),Gg.push(Eg)}}return Gg}function oAI(r,u,W,V){return ls(r,function(k,x,U){u(V,W(k),x,U)}),V}function J2(r,u,W){u=Hd(u,r),r=Sv(r,u);var V=r==null?r:r[ll(yn(u))];return V==null?I:fA(V,r,W)}function UL(r){return be(r)&&pi(r)==gI}function aAI(r){return be(r)&&pi(r)==pe}function dAI(r){return be(r)&&pi(r)==yC}function x2(r,u,W,V,k){return r===u?!0:r==null||u==null||!be(r)&&!be(u)?r!==r&&u!==u:cAI(r,u,W,V,x2,k)}function cAI(r,u,W,V,k,x){var U=uI(r),Cg=uI(u),ng=U?qg:Ut(r),Gg=Cg?qg:Ut(u);ng=ng==gI?fC:ng,Gg=Gg==gI?fC:Gg;var wg=ng==fC,pg=Gg==fC,Fg=ng==Gg;if(Fg&&Sd(r)){if(!Sd(u))return!1;U=!0,wg=!1}if(Fg&&!wg)return x||(x=new nl),U||Bb(r)?Nv(r,u,W,V,k,x):JAI(r,u,ng,W,V,k,x);if(!(W&h)){var Eg=wg&&tC.call(r,"__wrapped__"),AI=pg&&tC.call(u,"__wrapped__");if(Eg||AI){var XI=Eg?r.value():r,CI=AI?u.value():u;return x||(x=new nl),k(XI,CI,W,V,x)}}return Fg?(x||(x=new nl),xAI(r,u,W,V,k,x)):!1}function mAI(r){return be(r)&&Ut(r)==DI}function L9(r,u,W,V){var k=W.length,x=k,U=!V;if(r==null)return!x;for(r=VC(r);k--;){var Cg=W[k];if(U&&Cg[2]?Cg[1]!==r[Cg[0]]:!(Cg[0]in r))return!1}for(;++k<x;){Cg=W[k];var ng=Cg[0],Gg=r[ng],wg=Cg[1];if(U&&Cg[2]){if(Gg===I&&!(ng in r))return!1}else{var pg=new nl;if(V)var Fg=V(Gg,wg,ng,r,u,pg);if(!(Fg===I?x2(wg,Gg,h|G,V,pg):Fg))return!1}}return!0}function EL(r){if(!ie(r)||PAI(r))return!1;var u=ko(r)?miI:Ye;return u.test(Zr(r))}function rAI(r){return be(r)&&pi(r)==vC}function ZAI(r){return be(r)&&Ut(r)==PI}function bAI(r){return be(r)&&XY(r.length)&&!!zC[pi(r)]}function PL(r){return typeof r=="function"?r:r==null?gA:typeof r=="object"?uI(r)?$L(r[0],r[1]):qL(r):hj(r)}function v9(r){if(!v2(r))return GiI(r);var u=[];for(var W in VC(r))tC.call(r,W)&&W!="constructor"&&u.push(W);return u}function uAI(r){if(!ie(r))return gnI(r);var u=v2(r),W=[];for(var V in r)V=="constructor"&&(u||!tC.call(r,V))||W.push(V);return W}function j9(r,u){return r<u}function _L(r,u){var W=-1,V=qi(r)?dg(r.length):[];return Rd(r,function(k,x,U){V[++W]=u(k,x,U)}),V}function qL(r){var u=AM(r);return u.length==1&&u[0][2]?Hv(u[0][0],u[0][1]):function(W){return W===r||L9(W,r,u)}}function $L(r,u){return lM(r)&&Mv(u)?Hv(ll(r),u):function(W){var V=hM(W,r);return V===I&&V===u?GM(W,r):x2(u,V,h|G)}}function cY(r,u,W,V,k){r!==u&&z9(u,function(x,U){if(k||(k=new nl),ie(x))hAI(r,u,U,W,cY,V,k);else{var Cg=V?V(oM(r,U),x,U+"",r,u,k):I;Cg===I&&(Cg=x),F9(r,U,Cg)}},$i)}function hAI(r,u,W,V,k,x,U){var Cg=oM(r,W),ng=oM(u,W),Gg=U.get(ng);if(Gg){F9(r,W,Gg);return}var wg=x?x(Cg,ng,W+"",r,u,U):I,pg=wg===I;if(pg){var Fg=uI(ng),Eg=!Fg&&Sd(ng),AI=!Fg&&!Eg&&Bb(ng);wg=ng,Fg||Eg||AI?uI(Cg)?wg=Cg:Ne(Cg)?wg=_i(Cg):Eg?(pg=!1,wg=av(ng,!0)):AI?(pg=!1,wg=dv(ng,!0)):wg=[]:Q2(ng)||br(ng)?(wg=Cg,br(Cg)?wg=lj(Cg):(!ie(Cg)||ko(Cg))&&(wg=Rv(ng))):pg=!1}pg&&(U.set(ng,wg),k(wg,ng,V,x,U),U.delete(ng)),F9(r,W,wg)}function gv(r,u){var W=r.length;if(W)return u+=u<0?W:0,Do(u,W)?r[u]:I}function Iv(r,u,W){u.length?u=UC(u,function(x){return uI(x)?function(U){return mr(U,x.length===1?x[0]:x)}:x}):u=[gA];var V=-1;u=UC(u,DA(iI()));var k=_L(r,function(x,U,Cg){var ng=UC(u,function(Gg){return Gg(x)});return{criteria:ng,index:++V,value:x}});return QtI(k,function(x,U){return HAI(x,U,W)})}function GAI(r,u){return Cv(r,u,function(W,V){return GM(r,V)})}function Cv(r,u,W){for(var V=-1,k=u.length,x={};++V<k;){var U=u[V],Cg=mr(r,U);W(Cg,U)&&T2(x,Hd(U,r),Cg)}return x}function wAI(r){return function(u){return mr(u,r)}}function Q9(r,u,W,V){var k=V?jtI:db,x=-1,U=u.length,Cg=r;for(r===u&&(u=_i(u)),W&&(Cg=UC(r,DA(W)));++x<U;)for(var ng=0,Gg=u[x],wg=W?W(Gg):Gg;(ng=k(Cg,wg,ng,V))>-1;)Cg!==r&&eY.call(Cg,ng,1),eY.call(r,ng,1);return r}function ev(r,u){for(var W=r?u.length:0,V=W-1;W--;){var k=u[W];if(W==V||k!==x){var x=k;Do(k)?eY.call(r,k,1):P9(r,k)}}return r}function O9(r,u){return r+AY(FL()*(u-r+1))}function WAI(r,u,W,V){for(var k=-1,x=_e(iY((u-r)/(W||1)),0),U=dg(x);x--;)U[V?x:++k]=r,r+=W;return U}function U9(r,u){var W="";if(!r||u<1||u>og)return W;do u%2&&(W+=r),u=AY(u/2),u&&(r+=r);while(u);return W}function fI(r,u){return aM(fv(r,u,gA),r+"")}function BAI(r){return JL(pb(r))}function pAI(r,u){var W=pb(r);return BY(W,cr(u,0,W.length))}function T2(r,u,W,V){if(!ie(r))return r;u=Hd(u,r);for(var k=-1,x=u.length,U=x-1,Cg=r;Cg!=null&&++k<x;){var ng=ll(u[k]),Gg=W;if(ng==="__proto__"||ng==="constructor"||ng==="prototype")return r;if(k!=U){var wg=Cg[ng];Gg=V?V(wg,ng,Cg):I,Gg===I&&(Gg=ie(wg)?wg:Do(u[k+1])?[]:{})}K2(Cg,ng,Gg),Cg=Cg[ng]}return r}var tv=nY?function(r,u){return nY.set(r,u),r}:gA,YAI=tY?function(r,u){return tY(r,"toString",{configurable:!0,enumerable:!1,value:WM(u),writable:!0})}:gA;function yAI(r){return BY(pb(r))}function Yn(r,u,W){var V=-1,k=r.length;u<0&&(u=-u>k?0:k+u),W=W>k?k:W,W<0&&(W+=k),k=u>W?0:W-u>>>0,u>>>=0;for(var x=dg(k);++V<k;)x[V]=r[V+u];return x}function NAI(r,u){var W;return Rd(r,function(V,k,x){return W=u(V,k,x),!W}),!!W}function mY(r,u,W){var V=0,k=r==null?V:r.length;if(typeof u=="number"&&u===u&&k<=kg){for(;V<k;){var x=V+k>>>1,U=r[x];U!==null&&!FA(U)&&(W?U<=u:U<u)?V=x+1:k=x}return k}return E9(r,u,gA,W)}function E9(r,u,W,V){var k=0,x=r==null?0:r.length;if(x===0)return 0;u=W(u);for(var U=u!==u,Cg=u===null,ng=FA(u),Gg=u===I;k<x;){var wg=AY((k+x)/2),pg=W(r[wg]),Fg=pg!==I,Eg=pg===null,AI=pg===pg,XI=FA(pg);if(U)var CI=V||AI;else Gg?CI=AI&&(V||Fg):Cg?CI=AI&&Fg&&(V||!Eg):ng?CI=AI&&Fg&&!Eg&&(V||!XI):Eg||XI?CI=!1:CI=V?pg<=u:pg<u;CI?k=wg+1:x=wg}return Ot(x,Bg)}function iv(r,u){for(var W=-1,V=r.length,k=0,x=[];++W<V;){var U=r[W],Cg=u?u(U):U;if(!W||!sl(Cg,ng)){var ng=Cg;x[k++]=U===0?0:U}}return x}function Av(r){return typeof r=="number"?r:FA(r)?fg:+r}function kA(r){if(typeof r=="string")return r;if(uI(r))return UC(r,kA)+"";if(FA(r))return KL?KL.call(r):"";var u=r+"";return u=="0"&&1/r==-cg?"-0":u}function Md(r,u,W){var V=-1,k=O1,x=r.length,U=!0,Cg=[],ng=Cg;if(W)U=!1,k=p9;else if(x>=t){var Gg=u?null:KAI(r);if(Gg)return E1(Gg);U=!1,k=H2,ng=new dr}else ng=u?[]:Cg;g:for(;++V<x;){var wg=r[V],pg=u?u(wg):wg;if(wg=W||wg!==0?wg:0,U&&pg===pg){for(var Fg=ng.length;Fg--;)if(ng[Fg]===pg)continue g;u&&ng.push(pg),Cg.push(wg)}else k(ng,pg,W)||(ng!==Cg&&ng.push(pg),Cg.push(wg))}return Cg}function P9(r,u){u=Hd(u,r);var W=-1,V=u.length;if(!V)return!0;for(;++W<V;){var k=ll(u[W]);if(k==="__proto__"&&!tC.call(r,"__proto__")||(k==="constructor"||k==="prototype")&&W<V-1)return!1}var x=Sv(r,u);return x==null||delete x[ll(yn(u))]}function nv(r,u,W,V){return T2(r,u,W(mr(r,u)),V)}function rY(r,u,W,V){for(var k=r.length,x=V?k:-1;(V?x--:++x<k)&&u(r[x],x,r););return W?Yn(r,V?0:x,V?x+1:k):Yn(r,V?x+1:0,V?k:x)}function lv(r,u){var W=r;return W instanceof zI&&(W=W.value()),Y9(u,function(V,k){return k.func.apply(k.thisArg,Nd([V],k.args))},W)}function _9(r,u,W){var V=r.length;if(V<2)return V?Md(r[0]):[];for(var k=-1,x=dg(V);++k<V;)for(var U=r[k],Cg=-1;++Cg<V;)Cg!=k&&(x[k]=z2(x[k]||U,r[Cg],u,W));return Md(Mt(x,1),u,W)}function sv(r,u,W){for(var V=-1,k=r.length,x=u.length,U={};++V<k;){var Cg=V<x?u[V]:I;W(U,r[V],Cg)}return U}function q9(r){return Ne(r)?r:[]}function $9(r){return typeof r=="function"?r:gA}function Hd(r,u){return uI(r)?r:lM(r,u)?[r]:Kv(iC(r))}var VAI=fI;function fd(r,u,W){var V=r.length;return W=W===I?V:W,!u&&W>=V?r:Yn(r,u,W)}var ov=riI||function(r){return Rt.clearTimeout(r)};function av(r,u){if(u)return r.slice();var W=r.length,V=HL?HL(W):new r.constructor(W);return r.copy(V),V}function gM(r){var u=new r.constructor(r.byteLength);return new IY(u).set(new IY(r)),u}function XAI(r,u){var W=u?gM(r.buffer):r.buffer;return new r.constructor(W,r.byteOffset,r.byteLength)}function RAI(r){var u=new r.constructor(r.source,tI.exec(r));return u.lastIndex=r.lastIndex,u}function MAI(r){return F2?VC(F2.call(r)):{}}function dv(r,u){var W=u?gM(r.buffer):r.buffer;return new r.constructor(W,r.byteOffset,r.length)}function cv(r,u){if(r!==u){var W=r!==I,V=r===null,k=r===r,x=FA(r),U=u!==I,Cg=u===null,ng=u===u,Gg=FA(u);if(!Cg&&!Gg&&!x&&r>u||x&&U&&ng&&!Cg&&!Gg||V&&U&&ng||!W&&ng||!k)return 1;if(!V&&!x&&!Gg&&r<u||Gg&&W&&k&&!V&&!x||Cg&&W&&k||!U&&k||!ng)return-1}return 0}function HAI(r,u,W){for(var V=-1,k=r.criteria,x=u.criteria,U=k.length,Cg=W.length;++V<U;){var ng=cv(k[V],x[V]);if(ng){if(V>=Cg)return ng;var Gg=W[V];return ng*(Gg=="desc"?-1:1)}}return r.index-u.index}function mv(r,u,W,V){for(var k=-1,x=r.length,U=W.length,Cg=-1,ng=u.length,Gg=_e(x-U,0),wg=dg(ng+Gg),pg=!V;++Cg<ng;)wg[Cg]=u[Cg];for(;++k<U;)(pg||k<x)&&(wg[W[k]]=r[k]);for(;Gg--;)wg[Cg++]=r[k++];return wg}function rv(r,u,W,V){for(var k=-1,x=r.length,U=-1,Cg=W.length,ng=-1,Gg=u.length,wg=_e(x-Cg,0),pg=dg(wg+Gg),Fg=!V;++k<wg;)pg[k]=r[k];for(var Eg=k;++ng<Gg;)pg[Eg+ng]=u[ng];for(;++U<Cg;)(Fg||k<x)&&(pg[Eg+W[U]]=r[k++]);return pg}function _i(r,u){var W=-1,V=r.length;for(u||(u=dg(V));++W<V;)u[W]=r[W];return u}function ss(r,u,W,V){var k=!W;W||(W={});for(var x=-1,U=u.length;++x<U;){var Cg=u[x],ng=V?V(W[Cg],r[Cg],Cg,W,r):I;ng===I&&(ng=r[Cg]),k?ns(W,Cg,ng):K2(W,Cg,ng)}return W}function fAI(r,u){return ss(r,nM(r),u)}function SAI(r,u){return ss(r,Vv(r),u)}function ZY(r,u){return function(W,V){var k=uI(W)?ztI:CAI,x=u?u():{};return k(W,r,iI(V,2),x)}}function Gb(r){return fI(function(u,W){var V=-1,k=W.length,x=k>1?W[k-1]:I,U=k>2?W[2]:I;for(x=r.length>3&&typeof x=="function"?(k--,x):I,U&&Yi(W[0],W[1],U)&&(x=k<3?I:x,k=1),u=VC(u);++V<k;){var Cg=W[V];Cg&&r(u,Cg,V,x)}return u})}function Zv(r,u){return function(W,V){if(W==null)return W;if(!qi(W))return r(W,V);for(var k=W.length,x=u?k:-1,U=VC(W);(u?x--:++x<k)&&V(U[x],x,U)!==!1;);return W}}function bv(r){return function(u,W,V){for(var k=-1,x=VC(u),U=V(u),Cg=U.length;Cg--;){var ng=U[r?Cg:++k];if(W(x[ng],ng,x)===!1)break}return u}}function DAI(r,u,W){var V=u&w,k=L2(r);function x(){var U=this&&this!==Rt&&this instanceof x?k:r;return U.apply(V?W:this,arguments)}return x}function uv(r){return function(u){u=iC(u);var W=cb(u)?Al(u):I,V=W?W[0]:u.charAt(0),k=W?fd(W,1).join(""):u.slice(1);return V[r]()+k}}function wb(r){return function(u){return Y9(bj(Zj(u).replace(j1,"")),r,"")}}function L2(r){return function(){var u=arguments;switch(u.length){case 0:return new r;case 1:return new r(u[0]);case 2:return new r(u[0],u[1]);case 3:return new r(u[0],u[1],u[2]);case 4:return new r(u[0],u[1],u[2],u[3]);case 5:return new r(u[0],u[1],u[2],u[3],u[4]);case 6:return new r(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new r(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var W=hb(r.prototype),V=r.apply(W,u);return ie(V)?V:W}}function kAI(r,u,W){var V=L2(r);function k(){for(var x=arguments.length,U=dg(x),Cg=x,ng=Wb(k);Cg--;)U[Cg]=arguments[Cg];var Gg=x<3&&U[0]!==ng&&U[x-1]!==ng?[]:Vd(U,ng);if(x-=Gg.length,x<W)return Bv(r,u,bY,k.placeholder,I,U,Gg,I,I,W-x);var wg=this&&this!==Rt&&this instanceof k?V:r;return fA(wg,this,U)}return k}function hv(r){return function(u,W,V){var k=VC(u);if(!qi(u)){var x=iI(W,3);u=ct(u),W=function(Cg){return x(k[Cg],Cg,k)}}var U=r(u,W,V);return U>-1?k[x?u[U]:U]:I}}function Gv(r){return So(function(u){var W=u.length,V=W,k=Bn.prototype.thru;for(r&&u.reverse();V--;){var x=u[V];if(typeof x!="function")throw new Wn(A);if(k&&!U&&wY(x)=="wrapper")var U=new Bn([],!0)}for(V=U?V:W;++V<W;){x=u[V];var Cg=wY(x),ng=Cg=="wrapper"?iM(x):I;ng&&sM(ng[0])&&ng[1]==(K|Y|R|D)&&!ng[4].length&&ng[9]==1?U=U[wY(ng[0])].apply(U,ng[3]):U=x.length==1&&sM(x)?U[Cg]():U.thru(x)}return function(){var Gg=arguments,wg=Gg[0];if(U&&Gg.length==1&&uI(wg))return U.plant(wg).value();for(var pg=0,Fg=W?u[pg].apply(this,Gg):wg;++pg<W;)Fg=u[pg].call(this,Fg);return Fg}})}function bY(r,u,W,V,k,x,U,Cg,ng,Gg){var wg=u&K,pg=u&w,Fg=u&B,Eg=u&(Y|y),AI=u&F,XI=Fg?I:L2(r);function CI(){for(var kI=arguments.length,xI=dg(kI),KA=kI;KA--;)xI[KA]=arguments[KA];if(Eg)var yi=Wb(CI),zA=UtI(xI,yi);if(V&&(xI=mv(xI,V,k,Eg)),x&&(xI=rv(xI,x,U,Eg)),kI-=zA,Eg&&kI<Gg){var Ve=Vd(xI,yi);return Bv(r,u,bY,CI.placeholder,W,xI,Ve,Cg,ng,Gg-kI)}var ol=pg?W:this,Ko=Fg?ol[r]:r;return kI=xI.length,Cg?xI=CnI(xI,Cg):AI&&kI>1&&xI.reverse(),wg&&ng<kI&&(xI.length=ng),this&&this!==Rt&&this instanceof CI&&(Ko=XI||L2(Ko)),Ko.apply(ol,xI)}return CI}function wv(r,u){return function(W,V){return oAI(W,r,u(V),{})}}function uY(r,u){return function(W,V){var k;if(W===I&&V===I)return u;if(W!==I&&(k=W),V!==I){if(k===I)return V;typeof W=="string"||typeof V=="string"?(W=kA(W),V=kA(V)):(W=Av(W),V=Av(V)),k=r(W,V)}return k}}function IM(r){return So(function(u){return u=UC(u,DA(iI())),fI(function(W){var V=this;return r(u,function(k){return fA(k,V,W)})})})}function hY(r,u){u=u===I?" ":kA(u);var W=u.length;if(W<2)return W?U9(u,r):u;var V=U9(u,iY(r/mb(u)));return cb(u)?fd(Al(V),0,r).join(""):V.slice(0,r)}function FAI(r,u,W,V){var k=u&w,x=L2(r);function U(){for(var Cg=-1,ng=arguments.length,Gg=-1,wg=V.length,pg=dg(wg+ng),Fg=this&&this!==Rt&&this instanceof U?x:r;++Gg<wg;)pg[Gg]=V[Gg];for(;ng--;)pg[Gg++]=arguments[++Cg];return fA(Fg,k?W:this,pg)}return U}function Wv(r){return function(u,W,V){return V&&typeof V!="number"&&Yi(u,W,V)&&(W=V=I),u=Fo(u),W===I?(W=u,u=0):W=Fo(W),V=V===I?u<W?1:-1:Fo(V),WAI(u,W,V,r)}}function GY(r){return function(u,W){return typeof u=="string"&&typeof W=="string"||(u=Nn(u),W=Nn(W)),r(u,W)}}function Bv(r,u,W,V,k,x,U,Cg,ng,Gg){var wg=u&Y,pg=wg?U:I,Fg=wg?I:U,Eg=wg?x:I,AI=wg?I:x;u|=wg?R:X,u&=~(wg?X:R),u&p||(u&=-4);var XI=[r,u,k,Eg,pg,AI,Fg,Cg,ng,Gg],CI=W.apply(I,XI);return sM(r)&&Dv(CI,XI),CI.placeholder=V,kv(CI,r,u)}function CM(r){var u=Pe[r];return function(W,V){if(W=Nn(W),V=V==null?0:Ot(pI(V),292),V&&kL(W)){var k=(iC(W)+"e").split("e"),x=u(k[0]+"e"+(+k[1]+V));return k=(iC(x)+"e").split("e"),+(k[0]+"e"+(+k[1]-V))}return u(W)}}var KAI=bb&&1/E1(new bb([,-0]))[1]==cg?function(r){return new bb(r)}:YM;function pv(r){return function(u){var W=Ut(u);return W==DI?H9(u):W==PI?IiI(u):OtI(u,r(u))}}function fo(r,u,W,V,k,x,U,Cg){var ng=u&B;if(!ng&&typeof r!="function")throw new Wn(A);var Gg=V?V.length:0;if(Gg||(u&=-97,V=k=I),U=U===I?U:_e(pI(U),0),Cg=Cg===I?Cg:pI(Cg),Gg-=k?k.length:0,u&X){var wg=V,pg=k;V=k=I}var Fg=ng?I:iM(r),Eg=[r,u,W,V,k,wg,pg,x,U,Cg];if(Fg&&$AI(Eg,Fg),r=Eg[0],u=Eg[1],W=Eg[2],V=Eg[3],k=Eg[4],Cg=Eg[9]=Eg[9]===I?ng?0:r.length:_e(Eg[9]-Gg,0),!Cg&&u&(Y|y)&&(u&=-25),!u||u==w)var AI=DAI(r,u,W);else u==Y||u==y?AI=kAI(r,u,Cg):(u==R||u==(w|R))&&!k.length?AI=FAI(r,u,W,V):AI=bY.apply(I,Eg);var XI=Fg?tv:Dv;return kv(XI(AI,Eg),r,u)}function Yv(r,u,W,V){return r===I||sl(r,Zb[W])&&!tC.call(V,W)?u:r}function yv(r,u,W,V,k,x){return ie(r)&&ie(u)&&(x.set(u,r),cY(r,u,I,yv,x),x.delete(u)),r}function zAI(r){return Q2(r)?I:r}function Nv(r,u,W,V,k,x){var U=W&h,Cg=r.length,ng=u.length;if(Cg!=ng&&!(U&&ng>Cg))return!1;var Gg=x.get(r),wg=x.get(u);if(Gg&&wg)return Gg==u&&wg==r;var pg=-1,Fg=!0,Eg=W&G?new dr:I;for(x.set(r,u),x.set(u,r);++pg<Cg;){var AI=r[pg],XI=u[pg];if(V)var CI=U?V(XI,AI,pg,u,r,x):V(AI,XI,pg,r,u,x);if(CI!==I){if(CI)continue;Fg=!1;break}if(Eg){if(!y9(u,function(kI,xI){if(!H2(Eg,xI)&&(AI===kI||k(AI,kI,W,V,x)))return Eg.push(xI)})){Fg=!1;break}}else if(!(AI===XI||k(AI,XI,W,V,x))){Fg=!1;break}}return x.delete(r),x.delete(u),Fg}function JAI(r,u,W,V,k,x,U){switch(W){case jC:if(r.byteLength!=u.byteLength||r.byteOffset!=u.byteOffset)return!1;r=r.buffer,u=u.buffer;case pe:return!(r.byteLength!=u.byteLength||!x(new IY(r),new IY(u)));case BC:case yC:case HC:return sl(+r,+u);case te:return r.name==u.name&&r.message==u.message;case vC:case Be:return r==u+"";case DI:var Cg=H9;case PI:var ng=V&h;if(Cg||(Cg=E1),r.size!=u.size&&!ng)return!1;var Gg=U.get(r);if(Gg)return Gg==u;V|=G,U.set(r,u);var wg=Nv(Cg(r),Cg(u),V,k,x,U);return U.delete(r),wg;case NC:if(F2)return F2.call(r)==F2.call(u)}return!1}function xAI(r,u,W,V,k,x){var U=W&h,Cg=eM(r),ng=Cg.length,Gg=eM(u),wg=Gg.length;if(ng!=wg&&!U)return!1;for(var pg=ng;pg--;){var Fg=Cg[pg];if(!(U?Fg in u:tC.call(u,Fg)))return!1}var Eg=x.get(r),AI=x.get(u);if(Eg&&AI)return Eg==u&&AI==r;var XI=!0;x.set(r,u),x.set(u,r);for(var CI=U;++pg<ng;){Fg=Cg[pg];var kI=r[Fg],xI=u[Fg];if(V)var KA=U?V(xI,kI,Fg,u,r,x):V(kI,xI,Fg,r,u,x);if(!(KA===I?kI===xI||k(kI,xI,W,V,x):KA)){XI=!1;break}CI||(CI=Fg=="constructor")}if(XI&&!CI){var yi=r.constructor,zA=u.constructor;yi!=zA&&"constructor"in r&&"constructor"in u&&!(typeof yi=="function"&&yi instanceof yi&&typeof zA=="function"&&zA instanceof zA)&&(XI=!1)}return x.delete(r),x.delete(u),XI}function So(r){return aM(fv(r,I,Tv),r+"")}function eM(r){return OL(r,ct,nM)}function tM(r){return OL(r,$i,Vv)}var iM=nY?function(r){return nY.get(r)}:YM;function wY(r){for(var u=r.name+"",W=ub[u],V=tC.call(ub,u)?W.length:0;V--;){var k=W[V],x=k.func;if(x==null||x==r)return k.name}return u}function Wb(r){var u=tC.call(J,"placeholder")?J:r;return u.placeholder}function iI(){var r=J.iteratee||BM;return r=r===BM?PL:r,arguments.length?r(arguments[0],arguments[1]):r}function WY(r,u){var W=r.__data__;return EAI(u)?W[typeof u=="string"?"string":"hash"]:W.map}function AM(r){for(var u=ct(r),W=u.length;W--;){var V=u[W],k=r[V];u[W]=[V,k,Mv(k)]}return u}function rr(r,u){var W=qtI(r,u);return EL(W)?W:I}function TAI(r){var u=tC.call(r,or),W=r[or];try{r[or]=I;var V=!0}catch{}var k=$1.call(r);return V&&(u?r[or]=W:delete r[or]),k}var nM=S9?function(r){return r==null?[]:(r=VC(r),yd(S9(r),function(u){return SL.call(r,u)}))}:yM,Vv=S9?function(r){for(var u=[];r;)Nd(u,nM(r)),r=CY(r);return u}:yM,Ut=pi;(D9&&Ut(new D9(new ArrayBuffer(1)))!=jC||S2&&Ut(new S2)!=DI||k9&&Ut(k9.resolve())!=RA||bb&&Ut(new bb)!=PI||D2&&Ut(new D2)!=dC)&&(Ut=function(r){var u=pi(r),W=u==fC?r.constructor:I,V=W?Zr(W):"";if(V)switch(V){case piI:return jC;case YiI:return DI;case yiI:return RA;case NiI:return PI;case ViI:return dC}return u});function LAI(r,u,W){for(var V=-1,k=W.length;++V<k;){var x=W[V],U=x.size;switch(x.type){case"drop":r+=U;break;case"dropRight":u-=U;break;case"take":u=Ot(u,r+U);break;case"takeRight":r=_e(r,u-U);break}}return{start:r,end:u}}function vAI(r){var u=r.match($);return u?u[1].split(Ig):[]}function Xv(r,u,W){u=Hd(u,r);for(var V=-1,k=u.length,x=!1;++V<k;){var U=ll(u[V]);if(!(x=r!=null&&W(r,U)))break;r=r[U]}return x||++V!=k?x:(k=r==null?0:r.length,!!k&&XY(k)&&Do(U,k)&&(uI(r)||br(r)))}function jAI(r){var u=r.length,W=new r.constructor(u);return u&&typeof r[0]=="string"&&tC.call(r,"index")&&(W.index=r.index,W.input=r.input),W}function Rv(r){return typeof r.constructor=="function"&&!v2(r)?hb(CY(r)):{}}function QAI(r,u,W){var V=r.constructor;switch(u){case pe:return gM(r);case BC:case yC:return new V(+r);case jC:return XAI(r,W);case Gi:case Ue:case Ui:case at:case QC:case wi:case MA:case HA:case dt:return dv(r,W);case DI:return new V;case HC:case Be:return new V(r);case vC:return RAI(r);case PI:return new V;case NC:return MAI(r)}}function OAI(r,u){var W=u.length;if(!W)return r;var V=W-1;return u[V]=(W>1?"& ":"")+u[V],u=u.join(W>2?", ":" "),r.replace(Ze,`{
|
|
1533
|
+
*/RW.exports,function(C,g){(function(){var I,e="4.18.1",t=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",A="Expected a function",n="Invalid `variable` option passed into `_.template`",s="Invalid `imports` option passed into `_.template`",o="__lodash_hash_undefined__",a=500,d="__lodash_placeholder__",m=1,Z=2,b=4,h=1,G=2,w=1,B=2,p=4,Y=8,y=16,R=32,X=64,K=128,D=256,F=512,z=30,v="...",O=800,eg=16,E=1,T=2,q=3,cg=1/0,og=9007199254740991,Wg=17976931348623157e292,fg=NaN,Vg=4294967295,Bg=Vg-1,kg=Vg>>>1,Rg=[["ary",K],["bind",w],["bindKey",B],["curry",Y],["curryRight",y],["flip",F],["partial",R],["partialRight",X],["rearg",D]],gI="[object Arguments]",qg="[object Array]",UI="[object AsyncFunction]",BC="[object Boolean]",yC="[object Date]",EI="[object DOMException]",te="[object Error]",oC="[object Function]",re="[object GeneratorFunction]",DI="[object Map]",HC="[object Number]",aC="[object Null]",fC="[object Object]",RA="[object Promise]",st="[object Proxy]",vC="[object RegExp]",PI="[object Set]",Be="[object String]",NC="[object Symbol]",ot="[object Undefined]",dC="[object WeakMap]",hi="[object WeakSet]",pe="[object ArrayBuffer]",jC="[object DataView]",Gi="[object Float32Array]",Ue="[object Float64Array]",Ui="[object Int8Array]",at="[object Int16Array]",QC="[object Int32Array]",wi="[object Uint8Array]",MA="[object Uint8ClampedArray]",HA="[object Uint16Array]",dt="[object Uint32Array]",Ei=/\b__p \+= '';/g,is=/\b(__p \+=) '' \+/g,Wi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bi=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,yo=RegExp(Bi.source),No=RegExp(Ee.source),Vo=/<%-([\s\S]+?)%>/g,il=/<%([\s\S]+?)%>/g,lg=/<%=([\s\S]+?)%>/g,bg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sg=/^\w*$/,Kg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ug=/[\\^$.*+?()[\]{}|]/g,MI=RegExp(Ug.source),_I=/^\s+/,Xt=/\s/,Ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$=/\{\n\/\* \[wrapped with (.+)\] \*/,Ig=/,? & /,rg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jg=/[()=,{}\[\]\/\s]/,oI=/\\(\\)?/g,HI=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tI=/\w*$/,JI=/^[-+]0x[0-9a-f]+$/i,OC=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,Xo=/^(?:0|[1-9]\d*)$/,Ro=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,un=/($^)/,ib=/['\n\r\u2028\u2029\\]/g,As="\\ud800-\\udfff",gg="\\u0300-\\u036f",j="\\ufe20-\\ufe2f",ag="\\u20d0-\\u20ff",yg=gg+j+ag,$g="\\u2700-\\u27bf",bI="a-z\\xdf-\\xf6\\xf8-\\xff",VI="\\xac\\xb1\\xd7\\xf7",qI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cC="\\u2000-\\u206f",ze=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ar="A-Z\\xc0-\\xd6\\xd8-\\xde",nr="\\ufe0e\\ufe0f",T1=VI+qI+cC+ze,Ab="['’]",L1="["+As+"]",N2="["+T1+"]",nb="["+yg+"]",V2="\\d+",X2="["+$g+"]",Bd="["+bI+"]",lr="[^"+As+T1+V2+$g+bI+Ar+"]",lb="\\ud83c[\\udffb-\\udfff]",G9="(?:"+nb+"|"+lb+")",v1="[^"+As+"]",sb="(?:\\ud83c[\\udde6-\\uddff]){2}",ob="[\\ud800-\\udbff][\\udc00-\\udfff]",L="["+Ar+"]",P="\\u200d",tg="(?:"+Bd+"|"+lr+")",hg="(?:"+L+"|"+lr+")",Og="(?:"+Ab+"(?:d|ll|m|re|s|t|ve))?",mI="(?:"+Ab+"(?:D|LL|M|RE|S|T|VE))?",Pi=G9+"?",pd="["+nr+"]?",hn="(?:"+P+"(?:"+[v1,sb,ob].join("|")+")"+pd+Pi+")*",Yd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Je=pd+Pi+hn,R2="(?:"+[X2,sb,ob].join("|")+")"+Je,M2="(?:"+[v1+nb+"?",nb,sb,ob,L1].join("|")+")",j1=RegExp(Ab,"g"),w9=RegExp(nb,"g"),ab=RegExp(lb+"(?="+lb+")|"+M2+Je,"g"),Q1=RegExp([L+"?"+Bd+"+"+Og+"(?="+[N2,L,"$"].join("|")+")",hg+"+"+mI+"(?="+[N2,L+tg,"$"].join("|")+")",L+"?"+tg+"+"+Og,L+"+"+mI,Gn,Yd,V2,R2].join("|"),"g"),VtI=RegExp("["+P+As+yg+nr+"]"),XtI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,RtI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],MtI=-1,zC={};zC[Gi]=zC[Ue]=zC[Ui]=zC[at]=zC[QC]=zC[wi]=zC[MA]=zC[HA]=zC[dt]=!0,zC[gI]=zC[qg]=zC[pe]=zC[BC]=zC[jC]=zC[yC]=zC[te]=zC[oC]=zC[DI]=zC[HC]=zC[fC]=zC[vC]=zC[PI]=zC[Be]=zC[dC]=!1;var SC={};SC[gI]=SC[qg]=SC[pe]=SC[jC]=SC[BC]=SC[yC]=SC[Gi]=SC[Ue]=SC[Ui]=SC[at]=SC[QC]=SC[DI]=SC[HC]=SC[fC]=SC[vC]=SC[PI]=SC[Be]=SC[NC]=SC[wi]=SC[MA]=SC[HA]=SC[dt]=!0,SC[te]=SC[oC]=SC[dC]=!1;var HtI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ftI={"&":"&","<":"<",">":">",'"':""","'":"'"},StI={"&":"&","<":"<",">":">",""":'"',"'":"'"},DtI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ktI=parseFloat,FtI=parseInt,cL=typeof cu=="object"&&cu&&cu.Object===Object&&cu,KtI=typeof self=="object"&&self&&self.Object===Object&&self,Rt=cL||KtI||Function("return this")(),W9=g&&!g.nodeType&&g,sr=W9&&!0&&C&&!C.nodeType&&C,mL=sr&&sr.exports===W9,B9=mL&&cL.process,wn=function(){try{var Ag=sr&&sr.require&&sr.require("util").types;return Ag||B9&&B9.binding&&B9.binding("util")}catch{}}(),rL=wn&&wn.isArrayBuffer,ZL=wn&&wn.isDate,bL=wn&&wn.isMap,uL=wn&&wn.isRegExp,hL=wn&&wn.isSet,GL=wn&&wn.isTypedArray;function fA(Ag,Zg,dg){switch(dg.length){case 0:return Ag.call(Zg);case 1:return Ag.call(Zg,dg[0]);case 2:return Ag.call(Zg,dg[0],dg[1]);case 3:return Ag.call(Zg,dg[0],dg[1],dg[2])}return Ag.apply(Zg,dg)}function ztI(Ag,Zg,dg,Tg){for(var dI=-1,$I=Ag==null?0:Ag.length;++dI<$I;){var Pe=Ag[dI];Zg(Tg,Pe,dg(Pe),Ag)}return Tg}function SA(Ag,Zg){for(var dg=-1,Tg=Ag==null?0:Ag.length;++dg<Tg&&Zg(Ag[dg],dg,Ag)!==!1;);return Ag}function JtI(Ag,Zg){for(var dg=Ag==null?0:Ag.length;dg--&&Zg(Ag[dg],dg,Ag)!==!1;);return Ag}function wL(Ag,Zg){for(var dg=-1,Tg=Ag==null?0:Ag.length;++dg<Tg;)if(!Zg(Ag[dg],dg,Ag))return!1;return!0}function yd(Ag,Zg){for(var dg=-1,Tg=Ag==null?0:Ag.length,dI=0,$I=[];++dg<Tg;){var Pe=Ag[dg];Zg(Pe,dg,Ag)&&($I[dI++]=Pe)}return $I}function O1(Ag,Zg){var dg=Ag==null?0:Ag.length;return!!dg&&db(Ag,Zg,0)>-1}function p9(Ag,Zg,dg){for(var Tg=-1,dI=Ag==null?0:Ag.length;++Tg<dI;)if(dg(Zg,Ag[Tg]))return!0;return!1}function UC(Ag,Zg){for(var dg=-1,Tg=Ag==null?0:Ag.length,dI=Array(Tg);++dg<Tg;)dI[dg]=Zg(Ag[dg],dg,Ag);return dI}function Nd(Ag,Zg){for(var dg=-1,Tg=Zg.length,dI=Ag.length;++dg<Tg;)Ag[dI+dg]=Zg[dg];return Ag}function Y9(Ag,Zg,dg,Tg){var dI=-1,$I=Ag==null?0:Ag.length;for(Tg&&$I&&(dg=Ag[++dI]);++dI<$I;)dg=Zg(dg,Ag[dI],dI,Ag);return dg}function xtI(Ag,Zg,dg,Tg){var dI=Ag==null?0:Ag.length;for(Tg&&dI&&(dg=Ag[--dI]);dI--;)dg=Zg(dg,Ag[dI],dI,Ag);return dg}function y9(Ag,Zg){for(var dg=-1,Tg=Ag==null?0:Ag.length;++dg<Tg;)if(Zg(Ag[dg],dg,Ag))return!0;return!1}var TtI=N9("length");function LtI(Ag){return Ag.split("")}function vtI(Ag){return Ag.match(rg)||[]}function WL(Ag,Zg,dg){var Tg;return dg(Ag,function(dI,$I,Pe){if(Zg(dI,$I,Pe))return Tg=$I,!1}),Tg}function U1(Ag,Zg,dg,Tg){for(var dI=Ag.length,$I=dg+(Tg?1:-1);Tg?$I--:++$I<dI;)if(Zg(Ag[$I],$I,Ag))return $I;return-1}function db(Ag,Zg,dg){return Zg===Zg?CiI(Ag,Zg,dg):U1(Ag,BL,dg)}function jtI(Ag,Zg,dg,Tg){for(var dI=dg-1,$I=Ag.length;++dI<$I;)if(Tg(Ag[dI],Zg))return dI;return-1}function BL(Ag){return Ag!==Ag}function pL(Ag,Zg){var dg=Ag==null?0:Ag.length;return dg?X9(Ag,Zg)/dg:fg}function N9(Ag){return function(Zg){return Zg==null?I:Zg[Ag]}}function V9(Ag){return function(Zg){return Ag==null?I:Ag[Zg]}}function YL(Ag,Zg,dg,Tg,dI){return dI(Ag,function($I,Pe,VC){dg=Tg?(Tg=!1,$I):Zg(dg,$I,Pe,VC)}),dg}function QtI(Ag,Zg){var dg=Ag.length;for(Ag.sort(Zg);dg--;)Ag[dg]=Ag[dg].value;return Ag}function X9(Ag,Zg){for(var dg,Tg=-1,dI=Ag.length;++Tg<dI;){var $I=Zg(Ag[Tg]);$I!==I&&(dg=dg===I?$I:dg+$I)}return dg}function R9(Ag,Zg){for(var dg=-1,Tg=Array(Ag);++dg<Ag;)Tg[dg]=Zg(dg);return Tg}function OtI(Ag,Zg){return UC(Zg,function(dg){return[dg,Ag[dg]]})}function yL(Ag){return Ag&&Ag.slice(0,RL(Ag)+1).replace(_I,"")}function DA(Ag){return function(Zg){return Ag(Zg)}}function M9(Ag,Zg){return UC(Zg,function(dg){return Ag[dg]})}function H2(Ag,Zg){return Ag.has(Zg)}function NL(Ag,Zg){for(var dg=-1,Tg=Ag.length;++dg<Tg&&db(Zg,Ag[dg],0)>-1;);return dg}function VL(Ag,Zg){for(var dg=Ag.length;dg--&&db(Zg,Ag[dg],0)>-1;);return dg}function UtI(Ag,Zg){for(var dg=Ag.length,Tg=0;dg--;)Ag[dg]===Zg&&++Tg;return Tg}var EtI=V9(HtI),PtI=V9(ftI);function _tI(Ag){return"\\"+DtI[Ag]}function qtI(Ag,Zg){return Ag==null?I:Ag[Zg]}function cb(Ag){return VtI.test(Ag)}function $tI(Ag){return XtI.test(Ag)}function giI(Ag){for(var Zg,dg=[];!(Zg=Ag.next()).done;)dg.push(Zg.value);return dg}function H9(Ag){var Zg=-1,dg=Array(Ag.size);return Ag.forEach(function(Tg,dI){dg[++Zg]=[dI,Tg]}),dg}function XL(Ag,Zg){return function(dg){return Ag(Zg(dg))}}function Vd(Ag,Zg){for(var dg=-1,Tg=Ag.length,dI=0,$I=[];++dg<Tg;){var Pe=Ag[dg];(Pe===Zg||Pe===d)&&(Ag[dg]=d,$I[dI++]=dg)}return $I}function E1(Ag){var Zg=-1,dg=Array(Ag.size);return Ag.forEach(function(Tg){dg[++Zg]=Tg}),dg}function IiI(Ag){var Zg=-1,dg=Array(Ag.size);return Ag.forEach(function(Tg){dg[++Zg]=[Tg,Tg]}),dg}function CiI(Ag,Zg,dg){for(var Tg=dg-1,dI=Ag.length;++Tg<dI;)if(Ag[Tg]===Zg)return Tg;return-1}function eiI(Ag,Zg,dg){for(var Tg=dg+1;Tg--;)if(Ag[Tg]===Zg)return Tg;return Tg}function mb(Ag){return cb(Ag)?iiI(Ag):TtI(Ag)}function Al(Ag){return cb(Ag)?AiI(Ag):LtI(Ag)}function RL(Ag){for(var Zg=Ag.length;Zg--&&Xt.test(Ag.charAt(Zg)););return Zg}var tiI=V9(StI);function iiI(Ag){for(var Zg=ab.lastIndex=0;ab.test(Ag);)++Zg;return Zg}function AiI(Ag){return Ag.match(ab)||[]}function niI(Ag){return Ag.match(Q1)||[]}var liI=function Ag(Zg){Zg=Zg==null?Rt:rb.defaults(Rt.Object(),Zg,rb.pick(Rt,RtI));var dg=Zg.Array,Tg=Zg.Date,dI=Zg.Error,$I=Zg.Function,Pe=Zg.Math,VC=Zg.Object,f9=Zg.RegExp,siI=Zg.String,Wn=Zg.TypeError,P1=dg.prototype,oiI=$I.prototype,Zb=VC.prototype,_1=Zg["__core-js_shared__"],q1=oiI.toString,tC=Zb.hasOwnProperty,aiI=0,ML=function(){var r=/[^.]+$/.exec(_1&&_1.keys&&_1.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),$1=Zb.toString,diI=q1.call(VC),ciI=Rt._,miI=f9("^"+q1.call(tC).replace(Ug,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gY=mL?Zg.Buffer:I,Xd=Zg.Symbol,IY=Zg.Uint8Array,HL=gY?gY.allocUnsafe:I,CY=XL(VC.getPrototypeOf,VC),fL=VC.create,SL=Zb.propertyIsEnumerable,eY=P1.splice,DL=Xd?Xd.isConcatSpreadable:I,f2=Xd?Xd.iterator:I,or=Xd?Xd.toStringTag:I,tY=function(){try{var r=rr(VC,"defineProperty");return r({},"",{}),r}catch{}}(),riI=Zg.clearTimeout!==Rt.clearTimeout&&Zg.clearTimeout,ZiI=Tg&&Tg.now!==Rt.Date.now&&Tg.now,biI=Zg.setTimeout!==Rt.setTimeout&&Zg.setTimeout,iY=Pe.ceil,AY=Pe.floor,S9=VC.getOwnPropertySymbols,uiI=gY?gY.isBuffer:I,kL=Zg.isFinite,hiI=P1.join,GiI=XL(VC.keys,VC),_e=Pe.max,Ot=Pe.min,wiI=Tg.now,WiI=Zg.parseInt,FL=Pe.random,BiI=P1.reverse,D9=rr(Zg,"DataView"),S2=rr(Zg,"Map"),k9=rr(Zg,"Promise"),bb=rr(Zg,"Set"),D2=rr(Zg,"WeakMap"),k2=rr(VC,"create"),nY=D2&&new D2,ub={},piI=Zr(D9),YiI=Zr(S2),yiI=Zr(k9),NiI=Zr(bb),ViI=Zr(D2),lY=Xd?Xd.prototype:I,F2=lY?lY.valueOf:I,KL=lY?lY.toString:I;function J(r){if(be(r)&&!uI(r)&&!(r instanceof zI)){if(r instanceof Bn)return r;if(tC.call(r,"__wrapped__"))return zv(r)}return new Bn(r)}var hb=function(){function r(){}return function(u){if(!ie(u))return{};if(fL)return fL(u);r.prototype=u;var W=new r;return r.prototype=I,W}}();function sY(){}function Bn(r,u){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=I}J.templateSettings={escape:Vo,evaluate:il,interpolate:lg,variable:"",imports:{_:J}},J.prototype=sY.prototype,J.prototype.constructor=J,Bn.prototype=hb(sY.prototype),Bn.prototype.constructor=Bn;function zI(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Vg,this.__views__=[]}function XiI(){var r=new zI(this.__wrapped__);return r.__actions__=_i(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=_i(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=_i(this.__views__),r}function RiI(){if(this.__filtered__){var r=new zI(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function MiI(){var r=this.__wrapped__.value(),u=this.__dir__,W=uI(r),V=u<0,k=W?r.length:0,x=LAI(0,k,this.__views__),U=x.start,Cg=x.end,ng=Cg-U,Gg=V?Cg:U-1,wg=this.__iteratees__,pg=wg.length,Fg=0,Eg=Ot(ng,this.__takeCount__);if(!W||!V&&k==ng&&Eg==ng)return lv(r,this.__actions__);var AI=[];g:for(;ng--&&Fg<Eg;){Gg+=u;for(var XI=-1,CI=r[Gg];++XI<pg;){var kI=wg[XI],xI=kI.iteratee,KA=kI.type,yi=xI(CI);if(KA==T)CI=yi;else if(!yi){if(KA==E)continue g;break g}}AI[Fg++]=CI}return AI}zI.prototype=hb(sY.prototype),zI.prototype.constructor=zI;function ar(r){var u=-1,W=r==null?0:r.length;for(this.clear();++u<W;){var V=r[u];this.set(V[0],V[1])}}function HiI(){this.__data__=k2?k2(null):{},this.size=0}function fiI(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}function SiI(r){var u=this.__data__;if(k2){var W=u[r];return W===o?I:W}return tC.call(u,r)?u[r]:I}function DiI(r){var u=this.__data__;return k2?u[r]!==I:tC.call(u,r)}function kiI(r,u){var W=this.__data__;return this.size+=this.has(r)?0:1,W[r]=k2&&u===I?o:u,this}ar.prototype.clear=HiI,ar.prototype.delete=fiI,ar.prototype.get=SiI,ar.prototype.has=DiI,ar.prototype.set=kiI;function Mo(r){var u=-1,W=r==null?0:r.length;for(this.clear();++u<W;){var V=r[u];this.set(V[0],V[1])}}function FiI(){this.__data__=[],this.size=0}function KiI(r){var u=this.__data__,W=oY(u,r);if(W<0)return!1;var V=u.length-1;return W==V?u.pop():eY.call(u,W,1),--this.size,!0}function ziI(r){var u=this.__data__,W=oY(u,r);return W<0?I:u[W][1]}function JiI(r){return oY(this.__data__,r)>-1}function xiI(r,u){var W=this.__data__,V=oY(W,r);return V<0?(++this.size,W.push([r,u])):W[V][1]=u,this}Mo.prototype.clear=FiI,Mo.prototype.delete=KiI,Mo.prototype.get=ziI,Mo.prototype.has=JiI,Mo.prototype.set=xiI;function Ho(r){var u=-1,W=r==null?0:r.length;for(this.clear();++u<W;){var V=r[u];this.set(V[0],V[1])}}function TiI(){this.size=0,this.__data__={hash:new ar,map:new(S2||Mo),string:new ar}}function LiI(r){var u=WY(this,r).delete(r);return this.size-=u?1:0,u}function viI(r){return WY(this,r).get(r)}function jiI(r){return WY(this,r).has(r)}function QiI(r,u){var W=WY(this,r),V=W.size;return W.set(r,u),this.size+=W.size==V?0:1,this}Ho.prototype.clear=TiI,Ho.prototype.delete=LiI,Ho.prototype.get=viI,Ho.prototype.has=jiI,Ho.prototype.set=QiI;function dr(r){var u=-1,W=r==null?0:r.length;for(this.__data__=new Ho;++u<W;)this.add(r[u])}function OiI(r){return this.__data__.set(r,o),this}function UiI(r){return this.__data__.has(r)}dr.prototype.add=dr.prototype.push=OiI,dr.prototype.has=UiI;function nl(r){var u=this.__data__=new Mo(r);this.size=u.size}function EiI(){this.__data__=new Mo,this.size=0}function PiI(r){var u=this.__data__,W=u.delete(r);return this.size=u.size,W}function _iI(r){return this.__data__.get(r)}function qiI(r){return this.__data__.has(r)}function $iI(r,u){var W=this.__data__;if(W instanceof Mo){var V=W.__data__;if(!S2||V.length<t-1)return V.push([r,u]),this.size=++W.size,this;W=this.__data__=new Ho(V)}return W.set(r,u),this.size=W.size,this}nl.prototype.clear=EiI,nl.prototype.delete=PiI,nl.prototype.get=_iI,nl.prototype.has=qiI,nl.prototype.set=$iI;function zL(r,u){var W=uI(r),V=!W&&br(r),k=!W&&!V&&Sd(r),x=!W&&!V&&!k&&Bb(r),U=W||V||k||x,Cg=U?R9(r.length,siI):[],ng=Cg.length;for(var Gg in r)(u||tC.call(r,Gg))&&!(U&&(Gg=="length"||k&&(Gg=="offset"||Gg=="parent")||x&&(Gg=="buffer"||Gg=="byteLength"||Gg=="byteOffset")||Do(Gg,ng)))&&Cg.push(Gg);return Cg}function JL(r){var u=r.length;return u?r[O9(0,u-1)]:I}function gAI(r,u){return BY(_i(r),cr(u,0,r.length))}function IAI(r){return BY(_i(r))}function F9(r,u,W){(W!==I&&!sl(r[u],W)||W===I&&!(u in r))&&ns(r,u,W)}function K2(r,u,W){var V=r[u];(!(tC.call(r,u)&&sl(V,W))||W===I&&!(u in r))&&ns(r,u,W)}function oY(r,u){for(var W=r.length;W--;)if(sl(r[W][0],u))return W;return-1}function CAI(r,u,W,V){return Rd(r,function(k,x,U){u(V,k,W(k),U)}),V}function xL(r,u){return r&&ss(u,ct(u),r)}function eAI(r,u){return r&&ss(u,$i(u),r)}function ns(r,u,W){u=="__proto__"&&tY?tY(r,u,{configurable:!0,enumerable:!0,value:W,writable:!0}):r[u]=W}function K9(r,u){for(var W=-1,V=u.length,k=dg(V),x=r==null;++W<V;)k[W]=x?I:hM(r,u[W]);return k}function cr(r,u,W){return r===r&&(W!==I&&(r=r<=W?r:W),u!==I&&(r=r>=u?r:u)),r}function pn(r,u,W,V,k,x){var U,Cg=u&m,ng=u&Z,Gg=u&b;if(W&&(U=k?W(r,V,k,x):W(r)),U!==I)return U;if(!ie(r))return r;var wg=uI(r);if(wg){if(U=jAI(r),!Cg)return _i(r,U)}else{var pg=Ut(r),Fg=pg==oC||pg==re;if(Sd(r))return av(r,Cg);if(pg==fC||pg==gI||Fg&&!k){if(U=ng||Fg?{}:Rv(r),!Cg)return ng?SAI(r,eAI(U,r)):fAI(r,xL(U,r))}else{if(!SC[pg])return k?r:{};U=QAI(r,pg,Cg)}}x||(x=new nl);var Eg=x.get(r);if(Eg)return Eg;x.set(r,U),ij(r)?r.forEach(function(CI){U.add(pn(CI,u,W,CI,r,x))}):ej(r)&&r.forEach(function(CI,kI){U.set(kI,pn(CI,u,W,kI,r,x))});var AI=Gg?ng?tM:eM:ng?$i:ct,XI=wg?I:AI(r);return SA(XI||r,function(CI,kI){XI&&(kI=CI,CI=r[kI]),K2(U,kI,pn(CI,u,W,kI,r,x))}),U}function tAI(r){var u=ct(r);return function(W){return TL(W,r,u)}}function TL(r,u,W){var V=W.length;if(r==null)return!V;for(r=VC(r);V--;){var k=W[V],x=u[k],U=r[k];if(U===I&&!(k in r)||!x(U))return!1}return!0}function LL(r,u,W){if(typeof r!="function")throw new Wn(A);return j2(function(){r.apply(I,W)},u)}function z2(r,u,W,V){var k=-1,x=O1,U=!0,Cg=r.length,ng=[],Gg=u.length;if(!Cg)return ng;W&&(u=UC(u,DA(W))),V?(x=p9,U=!1):u.length>=t&&(x=H2,U=!1,u=new dr(u));g:for(;++k<Cg;){var wg=r[k],pg=W==null?wg:W(wg);if(wg=V||wg!==0?wg:0,U&&pg===pg){for(var Fg=Gg;Fg--;)if(u[Fg]===pg)continue g;ng.push(wg)}else x(u,pg,V)||ng.push(wg)}return ng}var Rd=Zv(ls),vL=Zv(J9,!0);function iAI(r,u){var W=!0;return Rd(r,function(V,k,x){return W=!!u(V,k,x),W}),W}function aY(r,u,W){for(var V=-1,k=r.length;++V<k;){var x=r[V],U=u(x);if(U!=null&&(Cg===I?U===U&&!FA(U):W(U,Cg)))var Cg=U,ng=x}return ng}function AAI(r,u,W,V){var k=r.length;for(W=pI(W),W<0&&(W=-W>k?0:k+W),V=V===I||V>k?k:pI(V),V<0&&(V+=k),V=W>V?0:nj(V);W<V;)r[W++]=u;return r}function jL(r,u){var W=[];return Rd(r,function(V,k,x){u(V,k,x)&&W.push(V)}),W}function Mt(r,u,W,V,k){var x=-1,U=r.length;for(W||(W=UAI),k||(k=[]);++x<U;){var Cg=r[x];u>0&&W(Cg)?u>1?Mt(Cg,u-1,W,V,k):Nd(k,Cg):V||(k[k.length]=Cg)}return k}var z9=bv(),QL=bv(!0);function ls(r,u){return r&&z9(r,u,ct)}function J9(r,u){return r&&QL(r,u,ct)}function dY(r,u){return yd(u,function(W){return ko(r[W])})}function mr(r,u){u=Hd(u,r);for(var W=0,V=u.length;r!=null&&W<V;)r=r[ll(u[W++])];return W&&W==V?r:I}function OL(r,u,W){var V=u(r);return uI(r)?V:Nd(V,W(r))}function pi(r){return r==null?r===I?ot:aC:or&&or in VC(r)?TAI(r):InI(r)}function x9(r,u){return r>u}function nAI(r,u){return r!=null&&tC.call(r,u)}function lAI(r,u){return r!=null&&u in VC(r)}function sAI(r,u,W){return r>=Ot(u,W)&&r<_e(u,W)}function T9(r,u,W){for(var V=W?p9:O1,k=r[0].length,x=r.length,U=x,Cg=dg(x),ng=1/0,Gg=[];U--;){var wg=r[U];U&&u&&(wg=UC(wg,DA(u))),ng=Ot(wg.length,ng),Cg[U]=!W&&(u||k>=120&&wg.length>=120)?new dr(U&&wg):I}wg=r[0];var pg=-1,Fg=Cg[0];g:for(;++pg<k&&Gg.length<ng;){var Eg=wg[pg],AI=u?u(Eg):Eg;if(Eg=W||Eg!==0?Eg:0,!(Fg?H2(Fg,AI):V(Gg,AI,W))){for(U=x;--U;){var XI=Cg[U];if(!(XI?H2(XI,AI):V(r[U],AI,W)))continue g}Fg&&Fg.push(AI),Gg.push(Eg)}}return Gg}function oAI(r,u,W,V){return ls(r,function(k,x,U){u(V,W(k),x,U)}),V}function J2(r,u,W){u=Hd(u,r),r=Sv(r,u);var V=r==null?r:r[ll(yn(u))];return V==null?I:fA(V,r,W)}function UL(r){return be(r)&&pi(r)==gI}function aAI(r){return be(r)&&pi(r)==pe}function dAI(r){return be(r)&&pi(r)==yC}function x2(r,u,W,V,k){return r===u?!0:r==null||u==null||!be(r)&&!be(u)?r!==r&&u!==u:cAI(r,u,W,V,x2,k)}function cAI(r,u,W,V,k,x){var U=uI(r),Cg=uI(u),ng=U?qg:Ut(r),Gg=Cg?qg:Ut(u);ng=ng==gI?fC:ng,Gg=Gg==gI?fC:Gg;var wg=ng==fC,pg=Gg==fC,Fg=ng==Gg;if(Fg&&Sd(r)){if(!Sd(u))return!1;U=!0,wg=!1}if(Fg&&!wg)return x||(x=new nl),U||Bb(r)?Nv(r,u,W,V,k,x):JAI(r,u,ng,W,V,k,x);if(!(W&h)){var Eg=wg&&tC.call(r,"__wrapped__"),AI=pg&&tC.call(u,"__wrapped__");if(Eg||AI){var XI=Eg?r.value():r,CI=AI?u.value():u;return x||(x=new nl),k(XI,CI,W,V,x)}}return Fg?(x||(x=new nl),xAI(r,u,W,V,k,x)):!1}function mAI(r){return be(r)&&Ut(r)==DI}function L9(r,u,W,V){var k=W.length,x=k,U=!V;if(r==null)return!x;for(r=VC(r);k--;){var Cg=W[k];if(U&&Cg[2]?Cg[1]!==r[Cg[0]]:!(Cg[0]in r))return!1}for(;++k<x;){Cg=W[k];var ng=Cg[0],Gg=r[ng],wg=Cg[1];if(U&&Cg[2]){if(Gg===I&&!(ng in r))return!1}else{var pg=new nl;if(V)var Fg=V(Gg,wg,ng,r,u,pg);if(!(Fg===I?x2(wg,Gg,h|G,V,pg):Fg))return!1}}return!0}function EL(r){if(!ie(r)||PAI(r))return!1;var u=ko(r)?miI:Ye;return u.test(Zr(r))}function rAI(r){return be(r)&&pi(r)==vC}function ZAI(r){return be(r)&&Ut(r)==PI}function bAI(r){return be(r)&&XY(r.length)&&!!zC[pi(r)]}function PL(r){return typeof r=="function"?r:r==null?gA:typeof r=="object"?uI(r)?$L(r[0],r[1]):qL(r):hj(r)}function v9(r){if(!v2(r))return GiI(r);var u=[];for(var W in VC(r))tC.call(r,W)&&W!="constructor"&&u.push(W);return u}function uAI(r){if(!ie(r))return gnI(r);var u=v2(r),W=[];for(var V in r)V=="constructor"&&(u||!tC.call(r,V))||W.push(V);return W}function j9(r,u){return r<u}function _L(r,u){var W=-1,V=qi(r)?dg(r.length):[];return Rd(r,function(k,x,U){V[++W]=u(k,x,U)}),V}function qL(r){var u=AM(r);return u.length==1&&u[0][2]?Hv(u[0][0],u[0][1]):function(W){return W===r||L9(W,r,u)}}function $L(r,u){return lM(r)&&Mv(u)?Hv(ll(r),u):function(W){var V=hM(W,r);return V===I&&V===u?GM(W,r):x2(u,V,h|G)}}function cY(r,u,W,V,k){r!==u&&z9(u,function(x,U){if(k||(k=new nl),ie(x))hAI(r,u,U,W,cY,V,k);else{var Cg=V?V(oM(r,U),x,U+"",r,u,k):I;Cg===I&&(Cg=x),F9(r,U,Cg)}},$i)}function hAI(r,u,W,V,k,x,U){var Cg=oM(r,W),ng=oM(u,W),Gg=U.get(ng);if(Gg){F9(r,W,Gg);return}var wg=x?x(Cg,ng,W+"",r,u,U):I,pg=wg===I;if(pg){var Fg=uI(ng),Eg=!Fg&&Sd(ng),AI=!Fg&&!Eg&&Bb(ng);wg=ng,Fg||Eg||AI?uI(Cg)?wg=Cg:Ne(Cg)?wg=_i(Cg):Eg?(pg=!1,wg=av(ng,!0)):AI?(pg=!1,wg=dv(ng,!0)):wg=[]:Q2(ng)||br(ng)?(wg=Cg,br(Cg)?wg=lj(Cg):(!ie(Cg)||ko(Cg))&&(wg=Rv(ng))):pg=!1}pg&&(U.set(ng,wg),k(wg,ng,V,x,U),U.delete(ng)),F9(r,W,wg)}function gv(r,u){var W=r.length;if(W)return u+=u<0?W:0,Do(u,W)?r[u]:I}function Iv(r,u,W){u.length?u=UC(u,function(x){return uI(x)?function(U){return mr(U,x.length===1?x[0]:x)}:x}):u=[gA];var V=-1;u=UC(u,DA(iI()));var k=_L(r,function(x,U,Cg){var ng=UC(u,function(Gg){return Gg(x)});return{criteria:ng,index:++V,value:x}});return QtI(k,function(x,U){return HAI(x,U,W)})}function GAI(r,u){return Cv(r,u,function(W,V){return GM(r,V)})}function Cv(r,u,W){for(var V=-1,k=u.length,x={};++V<k;){var U=u[V],Cg=mr(r,U);W(Cg,U)&&T2(x,Hd(U,r),Cg)}return x}function wAI(r){return function(u){return mr(u,r)}}function Q9(r,u,W,V){var k=V?jtI:db,x=-1,U=u.length,Cg=r;for(r===u&&(u=_i(u)),W&&(Cg=UC(r,DA(W)));++x<U;)for(var ng=0,Gg=u[x],wg=W?W(Gg):Gg;(ng=k(Cg,wg,ng,V))>-1;)Cg!==r&&eY.call(Cg,ng,1),eY.call(r,ng,1);return r}function ev(r,u){for(var W=r?u.length:0,V=W-1;W--;){var k=u[W];if(W==V||k!==x){var x=k;Do(k)?eY.call(r,k,1):P9(r,k)}}return r}function O9(r,u){return r+AY(FL()*(u-r+1))}function WAI(r,u,W,V){for(var k=-1,x=_e(iY((u-r)/(W||1)),0),U=dg(x);x--;)U[V?x:++k]=r,r+=W;return U}function U9(r,u){var W="";if(!r||u<1||u>og)return W;do u%2&&(W+=r),u=AY(u/2),u&&(r+=r);while(u);return W}function fI(r,u){return aM(fv(r,u,gA),r+"")}function BAI(r){return JL(pb(r))}function pAI(r,u){var W=pb(r);return BY(W,cr(u,0,W.length))}function T2(r,u,W,V){if(!ie(r))return r;u=Hd(u,r);for(var k=-1,x=u.length,U=x-1,Cg=r;Cg!=null&&++k<x;){var ng=ll(u[k]),Gg=W;if(ng==="__proto__"||ng==="constructor"||ng==="prototype")return r;if(k!=U){var wg=Cg[ng];Gg=V?V(wg,ng,Cg):I,Gg===I&&(Gg=ie(wg)?wg:Do(u[k+1])?[]:{})}K2(Cg,ng,Gg),Cg=Cg[ng]}return r}var tv=nY?function(r,u){return nY.set(r,u),r}:gA,YAI=tY?function(r,u){return tY(r,"toString",{configurable:!0,enumerable:!1,value:WM(u),writable:!0})}:gA;function yAI(r){return BY(pb(r))}function Yn(r,u,W){var V=-1,k=r.length;u<0&&(u=-u>k?0:k+u),W=W>k?k:W,W<0&&(W+=k),k=u>W?0:W-u>>>0,u>>>=0;for(var x=dg(k);++V<k;)x[V]=r[V+u];return x}function NAI(r,u){var W;return Rd(r,function(V,k,x){return W=u(V,k,x),!W}),!!W}function mY(r,u,W){var V=0,k=r==null?V:r.length;if(typeof u=="number"&&u===u&&k<=kg){for(;V<k;){var x=V+k>>>1,U=r[x];U!==null&&!FA(U)&&(W?U<=u:U<u)?V=x+1:k=x}return k}return E9(r,u,gA,W)}function E9(r,u,W,V){var k=0,x=r==null?0:r.length;if(x===0)return 0;u=W(u);for(var U=u!==u,Cg=u===null,ng=FA(u),Gg=u===I;k<x;){var wg=AY((k+x)/2),pg=W(r[wg]),Fg=pg!==I,Eg=pg===null,AI=pg===pg,XI=FA(pg);if(U)var CI=V||AI;else Gg?CI=AI&&(V||Fg):Cg?CI=AI&&Fg&&(V||!Eg):ng?CI=AI&&Fg&&!Eg&&(V||!XI):Eg||XI?CI=!1:CI=V?pg<=u:pg<u;CI?k=wg+1:x=wg}return Ot(x,Bg)}function iv(r,u){for(var W=-1,V=r.length,k=0,x=[];++W<V;){var U=r[W],Cg=u?u(U):U;if(!W||!sl(Cg,ng)){var ng=Cg;x[k++]=U===0?0:U}}return x}function Av(r){return typeof r=="number"?r:FA(r)?fg:+r}function kA(r){if(typeof r=="string")return r;if(uI(r))return UC(r,kA)+"";if(FA(r))return KL?KL.call(r):"";var u=r+"";return u=="0"&&1/r==-cg?"-0":u}function Md(r,u,W){var V=-1,k=O1,x=r.length,U=!0,Cg=[],ng=Cg;if(W)U=!1,k=p9;else if(x>=t){var Gg=u?null:KAI(r);if(Gg)return E1(Gg);U=!1,k=H2,ng=new dr}else ng=u?[]:Cg;g:for(;++V<x;){var wg=r[V],pg=u?u(wg):wg;if(wg=W||wg!==0?wg:0,U&&pg===pg){for(var Fg=ng.length;Fg--;)if(ng[Fg]===pg)continue g;u&&ng.push(pg),Cg.push(wg)}else k(ng,pg,W)||(ng!==Cg&&ng.push(pg),Cg.push(wg))}return Cg}function P9(r,u){u=Hd(u,r);var W=-1,V=u.length;if(!V)return!0;for(;++W<V;){var k=ll(u[W]);if(k==="__proto__"&&!tC.call(r,"__proto__")||(k==="constructor"||k==="prototype")&&W<V-1)return!1}var x=Sv(r,u);return x==null||delete x[ll(yn(u))]}function nv(r,u,W,V){return T2(r,u,W(mr(r,u)),V)}function rY(r,u,W,V){for(var k=r.length,x=V?k:-1;(V?x--:++x<k)&&u(r[x],x,r););return W?Yn(r,V?0:x,V?x+1:k):Yn(r,V?x+1:0,V?k:x)}function lv(r,u){var W=r;return W instanceof zI&&(W=W.value()),Y9(u,function(V,k){return k.func.apply(k.thisArg,Nd([V],k.args))},W)}function _9(r,u,W){var V=r.length;if(V<2)return V?Md(r[0]):[];for(var k=-1,x=dg(V);++k<V;)for(var U=r[k],Cg=-1;++Cg<V;)Cg!=k&&(x[k]=z2(x[k]||U,r[Cg],u,W));return Md(Mt(x,1),u,W)}function sv(r,u,W){for(var V=-1,k=r.length,x=u.length,U={};++V<k;){var Cg=V<x?u[V]:I;W(U,r[V],Cg)}return U}function q9(r){return Ne(r)?r:[]}function $9(r){return typeof r=="function"?r:gA}function Hd(r,u){return uI(r)?r:lM(r,u)?[r]:Kv(iC(r))}var VAI=fI;function fd(r,u,W){var V=r.length;return W=W===I?V:W,!u&&W>=V?r:Yn(r,u,W)}var ov=riI||function(r){return Rt.clearTimeout(r)};function av(r,u){if(u)return r.slice();var W=r.length,V=HL?HL(W):new r.constructor(W);return r.copy(V),V}function gM(r){var u=new r.constructor(r.byteLength);return new IY(u).set(new IY(r)),u}function XAI(r,u){var W=u?gM(r.buffer):r.buffer;return new r.constructor(W,r.byteOffset,r.byteLength)}function RAI(r){var u=new r.constructor(r.source,tI.exec(r));return u.lastIndex=r.lastIndex,u}function MAI(r){return F2?VC(F2.call(r)):{}}function dv(r,u){var W=u?gM(r.buffer):r.buffer;return new r.constructor(W,r.byteOffset,r.length)}function cv(r,u){if(r!==u){var W=r!==I,V=r===null,k=r===r,x=FA(r),U=u!==I,Cg=u===null,ng=u===u,Gg=FA(u);if(!Cg&&!Gg&&!x&&r>u||x&&U&&ng&&!Cg&&!Gg||V&&U&&ng||!W&&ng||!k)return 1;if(!V&&!x&&!Gg&&r<u||Gg&&W&&k&&!V&&!x||Cg&&W&&k||!U&&k||!ng)return-1}return 0}function HAI(r,u,W){for(var V=-1,k=r.criteria,x=u.criteria,U=k.length,Cg=W.length;++V<U;){var ng=cv(k[V],x[V]);if(ng){if(V>=Cg)return ng;var Gg=W[V];return ng*(Gg=="desc"?-1:1)}}return r.index-u.index}function mv(r,u,W,V){for(var k=-1,x=r.length,U=W.length,Cg=-1,ng=u.length,Gg=_e(x-U,0),wg=dg(ng+Gg),pg=!V;++Cg<ng;)wg[Cg]=u[Cg];for(;++k<U;)(pg||k<x)&&(wg[W[k]]=r[k]);for(;Gg--;)wg[Cg++]=r[k++];return wg}function rv(r,u,W,V){for(var k=-1,x=r.length,U=-1,Cg=W.length,ng=-1,Gg=u.length,wg=_e(x-Cg,0),pg=dg(wg+Gg),Fg=!V;++k<wg;)pg[k]=r[k];for(var Eg=k;++ng<Gg;)pg[Eg+ng]=u[ng];for(;++U<Cg;)(Fg||k<x)&&(pg[Eg+W[U]]=r[k++]);return pg}function _i(r,u){var W=-1,V=r.length;for(u||(u=dg(V));++W<V;)u[W]=r[W];return u}function ss(r,u,W,V){var k=!W;W||(W={});for(var x=-1,U=u.length;++x<U;){var Cg=u[x],ng=V?V(W[Cg],r[Cg],Cg,W,r):I;ng===I&&(ng=r[Cg]),k?ns(W,Cg,ng):K2(W,Cg,ng)}return W}function fAI(r,u){return ss(r,nM(r),u)}function SAI(r,u){return ss(r,Vv(r),u)}function ZY(r,u){return function(W,V){var k=uI(W)?ztI:CAI,x=u?u():{};return k(W,r,iI(V,2),x)}}function Gb(r){return fI(function(u,W){var V=-1,k=W.length,x=k>1?W[k-1]:I,U=k>2?W[2]:I;for(x=r.length>3&&typeof x=="function"?(k--,x):I,U&&Yi(W[0],W[1],U)&&(x=k<3?I:x,k=1),u=VC(u);++V<k;){var Cg=W[V];Cg&&r(u,Cg,V,x)}return u})}function Zv(r,u){return function(W,V){if(W==null)return W;if(!qi(W))return r(W,V);for(var k=W.length,x=u?k:-1,U=VC(W);(u?x--:++x<k)&&V(U[x],x,U)!==!1;);return W}}function bv(r){return function(u,W,V){for(var k=-1,x=VC(u),U=V(u),Cg=U.length;Cg--;){var ng=U[r?Cg:++k];if(W(x[ng],ng,x)===!1)break}return u}}function DAI(r,u,W){var V=u&w,k=L2(r);function x(){var U=this&&this!==Rt&&this instanceof x?k:r;return U.apply(V?W:this,arguments)}return x}function uv(r){return function(u){u=iC(u);var W=cb(u)?Al(u):I,V=W?W[0]:u.charAt(0),k=W?fd(W,1).join(""):u.slice(1);return V[r]()+k}}function wb(r){return function(u){return Y9(bj(Zj(u).replace(j1,"")),r,"")}}function L2(r){return function(){var u=arguments;switch(u.length){case 0:return new r;case 1:return new r(u[0]);case 2:return new r(u[0],u[1]);case 3:return new r(u[0],u[1],u[2]);case 4:return new r(u[0],u[1],u[2],u[3]);case 5:return new r(u[0],u[1],u[2],u[3],u[4]);case 6:return new r(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new r(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var W=hb(r.prototype),V=r.apply(W,u);return ie(V)?V:W}}function kAI(r,u,W){var V=L2(r);function k(){for(var x=arguments.length,U=dg(x),Cg=x,ng=Wb(k);Cg--;)U[Cg]=arguments[Cg];var Gg=x<3&&U[0]!==ng&&U[x-1]!==ng?[]:Vd(U,ng);if(x-=Gg.length,x<W)return Bv(r,u,bY,k.placeholder,I,U,Gg,I,I,W-x);var wg=this&&this!==Rt&&this instanceof k?V:r;return fA(wg,this,U)}return k}function hv(r){return function(u,W,V){var k=VC(u);if(!qi(u)){var x=iI(W,3);u=ct(u),W=function(Cg){return x(k[Cg],Cg,k)}}var U=r(u,W,V);return U>-1?k[x?u[U]:U]:I}}function Gv(r){return So(function(u){var W=u.length,V=W,k=Bn.prototype.thru;for(r&&u.reverse();V--;){var x=u[V];if(typeof x!="function")throw new Wn(A);if(k&&!U&&wY(x)=="wrapper")var U=new Bn([],!0)}for(V=U?V:W;++V<W;){x=u[V];var Cg=wY(x),ng=Cg=="wrapper"?iM(x):I;ng&&sM(ng[0])&&ng[1]==(K|Y|R|D)&&!ng[4].length&&ng[9]==1?U=U[wY(ng[0])].apply(U,ng[3]):U=x.length==1&&sM(x)?U[Cg]():U.thru(x)}return function(){var Gg=arguments,wg=Gg[0];if(U&&Gg.length==1&&uI(wg))return U.plant(wg).value();for(var pg=0,Fg=W?u[pg].apply(this,Gg):wg;++pg<W;)Fg=u[pg].call(this,Fg);return Fg}})}function bY(r,u,W,V,k,x,U,Cg,ng,Gg){var wg=u&K,pg=u&w,Fg=u&B,Eg=u&(Y|y),AI=u&F,XI=Fg?I:L2(r);function CI(){for(var kI=arguments.length,xI=dg(kI),KA=kI;KA--;)xI[KA]=arguments[KA];if(Eg)var yi=Wb(CI),zA=UtI(xI,yi);if(V&&(xI=mv(xI,V,k,Eg)),x&&(xI=rv(xI,x,U,Eg)),kI-=zA,Eg&&kI<Gg){var Ve=Vd(xI,yi);return Bv(r,u,bY,CI.placeholder,W,xI,Ve,Cg,ng,Gg-kI)}var ol=pg?W:this,Ko=Fg?ol[r]:r;return kI=xI.length,Cg?xI=CnI(xI,Cg):AI&&kI>1&&xI.reverse(),wg&&ng<kI&&(xI.length=ng),this&&this!==Rt&&this instanceof CI&&(Ko=XI||L2(Ko)),Ko.apply(ol,xI)}return CI}function wv(r,u){return function(W,V){return oAI(W,r,u(V),{})}}function uY(r,u){return function(W,V){var k;if(W===I&&V===I)return u;if(W!==I&&(k=W),V!==I){if(k===I)return V;typeof W=="string"||typeof V=="string"?(W=kA(W),V=kA(V)):(W=Av(W),V=Av(V)),k=r(W,V)}return k}}function IM(r){return So(function(u){return u=UC(u,DA(iI())),fI(function(W){var V=this;return r(u,function(k){return fA(k,V,W)})})})}function hY(r,u){u=u===I?" ":kA(u);var W=u.length;if(W<2)return W?U9(u,r):u;var V=U9(u,iY(r/mb(u)));return cb(u)?fd(Al(V),0,r).join(""):V.slice(0,r)}function FAI(r,u,W,V){var k=u&w,x=L2(r);function U(){for(var Cg=-1,ng=arguments.length,Gg=-1,wg=V.length,pg=dg(wg+ng),Fg=this&&this!==Rt&&this instanceof U?x:r;++Gg<wg;)pg[Gg]=V[Gg];for(;ng--;)pg[Gg++]=arguments[++Cg];return fA(Fg,k?W:this,pg)}return U}function Wv(r){return function(u,W,V){return V&&typeof V!="number"&&Yi(u,W,V)&&(W=V=I),u=Fo(u),W===I?(W=u,u=0):W=Fo(W),V=V===I?u<W?1:-1:Fo(V),WAI(u,W,V,r)}}function GY(r){return function(u,W){return typeof u=="string"&&typeof W=="string"||(u=Nn(u),W=Nn(W)),r(u,W)}}function Bv(r,u,W,V,k,x,U,Cg,ng,Gg){var wg=u&Y,pg=wg?U:I,Fg=wg?I:U,Eg=wg?x:I,AI=wg?I:x;u|=wg?R:X,u&=~(wg?X:R),u&p||(u&=-4);var XI=[r,u,k,Eg,pg,AI,Fg,Cg,ng,Gg],CI=W.apply(I,XI);return sM(r)&&Dv(CI,XI),CI.placeholder=V,kv(CI,r,u)}function CM(r){var u=Pe[r];return function(W,V){if(W=Nn(W),V=V==null?0:Ot(pI(V),292),V&&kL(W)){var k=(iC(W)+"e").split("e"),x=u(k[0]+"e"+(+k[1]+V));return k=(iC(x)+"e").split("e"),+(k[0]+"e"+(+k[1]-V))}return u(W)}}var KAI=bb&&1/E1(new bb([,-0]))[1]==cg?function(r){return new bb(r)}:YM;function pv(r){return function(u){var W=Ut(u);return W==DI?H9(u):W==PI?IiI(u):OtI(u,r(u))}}function fo(r,u,W,V,k,x,U,Cg){var ng=u&B;if(!ng&&typeof r!="function")throw new Wn(A);var Gg=V?V.length:0;if(Gg||(u&=-97,V=k=I),U=U===I?U:_e(pI(U),0),Cg=Cg===I?Cg:pI(Cg),Gg-=k?k.length:0,u&X){var wg=V,pg=k;V=k=I}var Fg=ng?I:iM(r),Eg=[r,u,W,V,k,wg,pg,x,U,Cg];if(Fg&&$AI(Eg,Fg),r=Eg[0],u=Eg[1],W=Eg[2],V=Eg[3],k=Eg[4],Cg=Eg[9]=Eg[9]===I?ng?0:r.length:_e(Eg[9]-Gg,0),!Cg&&u&(Y|y)&&(u&=-25),!u||u==w)var AI=DAI(r,u,W);else u==Y||u==y?AI=kAI(r,u,Cg):(u==R||u==(w|R))&&!k.length?AI=FAI(r,u,W,V):AI=bY.apply(I,Eg);var XI=Fg?tv:Dv;return kv(XI(AI,Eg),r,u)}function Yv(r,u,W,V){return r===I||sl(r,Zb[W])&&!tC.call(V,W)?u:r}function yv(r,u,W,V,k,x){return ie(r)&&ie(u)&&(x.set(u,r),cY(r,u,I,yv,x),x.delete(u)),r}function zAI(r){return Q2(r)?I:r}function Nv(r,u,W,V,k,x){var U=W&h,Cg=r.length,ng=u.length;if(Cg!=ng&&!(U&&ng>Cg))return!1;var Gg=x.get(r),wg=x.get(u);if(Gg&&wg)return Gg==u&&wg==r;var pg=-1,Fg=!0,Eg=W&G?new dr:I;for(x.set(r,u),x.set(u,r);++pg<Cg;){var AI=r[pg],XI=u[pg];if(V)var CI=U?V(XI,AI,pg,u,r,x):V(AI,XI,pg,r,u,x);if(CI!==I){if(CI)continue;Fg=!1;break}if(Eg){if(!y9(u,function(kI,xI){if(!H2(Eg,xI)&&(AI===kI||k(AI,kI,W,V,x)))return Eg.push(xI)})){Fg=!1;break}}else if(!(AI===XI||k(AI,XI,W,V,x))){Fg=!1;break}}return x.delete(r),x.delete(u),Fg}function JAI(r,u,W,V,k,x,U){switch(W){case jC:if(r.byteLength!=u.byteLength||r.byteOffset!=u.byteOffset)return!1;r=r.buffer,u=u.buffer;case pe:return!(r.byteLength!=u.byteLength||!x(new IY(r),new IY(u)));case BC:case yC:case HC:return sl(+r,+u);case te:return r.name==u.name&&r.message==u.message;case vC:case Be:return r==u+"";case DI:var Cg=H9;case PI:var ng=V&h;if(Cg||(Cg=E1),r.size!=u.size&&!ng)return!1;var Gg=U.get(r);if(Gg)return Gg==u;V|=G,U.set(r,u);var wg=Nv(Cg(r),Cg(u),V,k,x,U);return U.delete(r),wg;case NC:if(F2)return F2.call(r)==F2.call(u)}return!1}function xAI(r,u,W,V,k,x){var U=W&h,Cg=eM(r),ng=Cg.length,Gg=eM(u),wg=Gg.length;if(ng!=wg&&!U)return!1;for(var pg=ng;pg--;){var Fg=Cg[pg];if(!(U?Fg in u:tC.call(u,Fg)))return!1}var Eg=x.get(r),AI=x.get(u);if(Eg&&AI)return Eg==u&&AI==r;var XI=!0;x.set(r,u),x.set(u,r);for(var CI=U;++pg<ng;){Fg=Cg[pg];var kI=r[Fg],xI=u[Fg];if(V)var KA=U?V(xI,kI,Fg,u,r,x):V(kI,xI,Fg,r,u,x);if(!(KA===I?kI===xI||k(kI,xI,W,V,x):KA)){XI=!1;break}CI||(CI=Fg=="constructor")}if(XI&&!CI){var yi=r.constructor,zA=u.constructor;yi!=zA&&"constructor"in r&&"constructor"in u&&!(typeof yi=="function"&&yi instanceof yi&&typeof zA=="function"&&zA instanceof zA)&&(XI=!1)}return x.delete(r),x.delete(u),XI}function So(r){return aM(fv(r,I,Tv),r+"")}function eM(r){return OL(r,ct,nM)}function tM(r){return OL(r,$i,Vv)}var iM=nY?function(r){return nY.get(r)}:YM;function wY(r){for(var u=r.name+"",W=ub[u],V=tC.call(ub,u)?W.length:0;V--;){var k=W[V],x=k.func;if(x==null||x==r)return k.name}return u}function Wb(r){var u=tC.call(J,"placeholder")?J:r;return u.placeholder}function iI(){var r=J.iteratee||BM;return r=r===BM?PL:r,arguments.length?r(arguments[0],arguments[1]):r}function WY(r,u){var W=r.__data__;return EAI(u)?W[typeof u=="string"?"string":"hash"]:W.map}function AM(r){for(var u=ct(r),W=u.length;W--;){var V=u[W],k=r[V];u[W]=[V,k,Mv(k)]}return u}function rr(r,u){var W=qtI(r,u);return EL(W)?W:I}function TAI(r){var u=tC.call(r,or),W=r[or];try{r[or]=I;var V=!0}catch{}var k=$1.call(r);return V&&(u?r[or]=W:delete r[or]),k}var nM=S9?function(r){return r==null?[]:(r=VC(r),yd(S9(r),function(u){return SL.call(r,u)}))}:yM,Vv=S9?function(r){for(var u=[];r;)Nd(u,nM(r)),r=CY(r);return u}:yM,Ut=pi;(D9&&Ut(new D9(new ArrayBuffer(1)))!=jC||S2&&Ut(new S2)!=DI||k9&&Ut(k9.resolve())!=RA||bb&&Ut(new bb)!=PI||D2&&Ut(new D2)!=dC)&&(Ut=function(r){var u=pi(r),W=u==fC?r.constructor:I,V=W?Zr(W):"";if(V)switch(V){case piI:return jC;case YiI:return DI;case yiI:return RA;case NiI:return PI;case ViI:return dC}return u});function LAI(r,u,W){for(var V=-1,k=W.length;++V<k;){var x=W[V],U=x.size;switch(x.type){case"drop":r+=U;break;case"dropRight":u-=U;break;case"take":u=Ot(u,r+U);break;case"takeRight":r=_e(r,u-U);break}}return{start:r,end:u}}function vAI(r){var u=r.match($);return u?u[1].split(Ig):[]}function Xv(r,u,W){u=Hd(u,r);for(var V=-1,k=u.length,x=!1;++V<k;){var U=ll(u[V]);if(!(x=r!=null&&W(r,U)))break;r=r[U]}return x||++V!=k?x:(k=r==null?0:r.length,!!k&&XY(k)&&Do(U,k)&&(uI(r)||br(r)))}function jAI(r){var u=r.length,W=new r.constructor(u);return u&&typeof r[0]=="string"&&tC.call(r,"index")&&(W.index=r.index,W.input=r.input),W}function Rv(r){return typeof r.constructor=="function"&&!v2(r)?hb(CY(r)):{}}function QAI(r,u,W){var V=r.constructor;switch(u){case pe:return gM(r);case BC:case yC:return new V(+r);case jC:return XAI(r,W);case Gi:case Ue:case Ui:case at:case QC:case wi:case MA:case HA:case dt:return dv(r,W);case DI:return new V;case HC:case Be:return new V(r);case vC:return RAI(r);case PI:return new V;case NC:return MAI(r)}}function OAI(r,u){var W=u.length;if(!W)return r;var V=W-1;return u[V]=(W>1?"& ":"")+u[V],u=u.join(W>2?", ":" "),r.replace(Ze,`{
|
|
1534
1534
|
/* [wrapped with `+u+`] */
|
|
1535
1535
|
`)}function UAI(r){return uI(r)||br(r)||!!(DL&&r&&r[DL])}function Do(r,u){var W=typeof r;return u=u??og,!!u&&(W=="number"||W!="symbol"&&Xo.test(r))&&r>-1&&r%1==0&&r<u}function Yi(r,u,W){if(!ie(W))return!1;var V=typeof u;return(V=="number"?qi(W)&&Do(u,W.length):V=="string"&&u in W)?sl(W[u],r):!1}function lM(r,u){if(uI(r))return!1;var W=typeof r;return W=="number"||W=="symbol"||W=="boolean"||r==null||FA(r)?!0:Sg.test(r)||!bg.test(r)||u!=null&&r in VC(u)}function EAI(r){var u=typeof r;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?r!=="__proto__":r===null}function sM(r){var u=wY(r),W=J[u];if(typeof W!="function"||!(u in zI.prototype))return!1;if(r===W)return!0;var V=iM(W);return!!V&&r===V[0]}function PAI(r){return!!ML&&ML in r}var _AI=_1?ko:NM;function v2(r){var u=r&&r.constructor,W=typeof u=="function"&&u.prototype||Zb;return r===W}function Mv(r){return r===r&&!ie(r)}function Hv(r,u){return function(W){return W==null?!1:W[r]===u&&(u!==I||r in VC(W))}}function qAI(r){var u=NY(r,function(V){return W.size===a&&W.clear(),V}),W=u.cache;return u}function $AI(r,u){var W=r[1],V=u[1],k=W|V,x=k<(w|B|K),U=V==K&&W==Y||V==K&&W==D&&r[7].length<=u[8]||V==(K|D)&&u[7].length<=u[8]&&W==Y;if(!(x||U))return r;V&w&&(r[2]=u[2],k|=W&w?0:p);var Cg=u[3];if(Cg){var ng=r[3];r[3]=ng?mv(ng,Cg,u[4]):Cg,r[4]=ng?Vd(r[3],d):u[4]}return Cg=u[5],Cg&&(ng=r[5],r[5]=ng?rv(ng,Cg,u[6]):Cg,r[6]=ng?Vd(r[5],d):u[6]),Cg=u[7],Cg&&(r[7]=Cg),V&K&&(r[8]=r[8]==null?u[8]:Ot(r[8],u[8])),r[9]==null&&(r[9]=u[9]),r[0]=u[0],r[1]=k,r}function gnI(r){var u=[];if(r!=null)for(var W in VC(r))u.push(W);return u}function InI(r){return $1.call(r)}function fv(r,u,W){return u=_e(u===I?r.length-1:u,0),function(){for(var V=arguments,k=-1,x=_e(V.length-u,0),U=dg(x);++k<x;)U[k]=V[u+k];k=-1;for(var Cg=dg(u+1);++k<u;)Cg[k]=V[k];return Cg[u]=W(U),fA(r,this,Cg)}}function Sv(r,u){return u.length<2?r:mr(r,Yn(u,0,-1))}function CnI(r,u){for(var W=r.length,V=Ot(u.length,W),k=_i(r);V--;){var x=u[V];r[V]=Do(x,W)?k[x]:I}return r}function oM(r,u){if(!(u==="constructor"&&typeof r[u]=="function")&&u!="__proto__")return r[u]}var Dv=Fv(tv),j2=biI||function(r,u){return Rt.setTimeout(r,u)},aM=Fv(YAI);function kv(r,u,W){var V=u+"";return aM(r,OAI(V,enI(vAI(V),W)))}function Fv(r){var u=0,W=0;return function(){var V=wiI(),k=eg-(V-W);if(W=V,k>0){if(++u>=O)return arguments[0]}else u=0;return r.apply(I,arguments)}}function BY(r,u){var W=-1,V=r.length,k=V-1;for(u=u===I?V:u;++W<u;){var x=O9(W,k),U=r[x];r[x]=r[W],r[W]=U}return r.length=u,r}var Kv=qAI(function(r){var u=[];return r.charCodeAt(0)===46&&u.push(""),r.replace(Kg,function(W,V,k,x){u.push(k?x.replace(oI,"$1"):V||W)}),u});function ll(r){if(typeof r=="string"||FA(r))return r;var u=r+"";return u=="0"&&1/r==-cg?"-0":u}function Zr(r){if(r!=null){try{return q1.call(r)}catch{}try{return r+""}catch{}}return""}function enI(r,u){return SA(Rg,function(W){var V="_."+W[0];u&W[1]&&!O1(r,V)&&r.push(V)}),r.sort()}function zv(r){if(r instanceof zI)return r.clone();var u=new Bn(r.__wrapped__,r.__chain__);return u.__actions__=_i(r.__actions__),u.__index__=r.__index__,u.__values__=r.__values__,u}function tnI(r,u,W){(W?Yi(r,u,W):u===I)?u=1:u=_e(pI(u),0);var V=r==null?0:r.length;if(!V||u<1)return[];for(var k=0,x=0,U=dg(iY(V/u));k<V;)U[x++]=Yn(r,k,k+=u);return U}function inI(r){for(var u=-1,W=r==null?0:r.length,V=0,k=[];++u<W;){var x=r[u];x&&(k[V++]=x)}return k}function AnI(){var r=arguments.length;if(!r)return[];for(var u=dg(r-1),W=arguments[0],V=r;V--;)u[V-1]=arguments[V];return Nd(uI(W)?_i(W):[W],Mt(u,1))}var nnI=fI(function(r,u){return Ne(r)?z2(r,Mt(u,1,Ne,!0)):[]}),lnI=fI(function(r,u){var W=yn(u);return Ne(W)&&(W=I),Ne(r)?z2(r,Mt(u,1,Ne,!0),iI(W,2)):[]}),snI=fI(function(r,u){var W=yn(u);return Ne(W)&&(W=I),Ne(r)?z2(r,Mt(u,1,Ne,!0),I,W):[]});function onI(r,u,W){var V=r==null?0:r.length;return V?(u=W||u===I?1:pI(u),Yn(r,u<0?0:u,V)):[]}function anI(r,u,W){var V=r==null?0:r.length;return V?(u=W||u===I?1:pI(u),u=V-u,Yn(r,0,u<0?0:u)):[]}function dnI(r,u){return r&&r.length?rY(r,iI(u,3),!0,!0):[]}function cnI(r,u){return r&&r.length?rY(r,iI(u,3),!0):[]}function mnI(r,u,W,V){var k=r==null?0:r.length;return k?(W&&typeof W!="number"&&Yi(r,u,W)&&(W=0,V=k),AAI(r,u,W,V)):[]}function Jv(r,u,W){var V=r==null?0:r.length;if(!V)return-1;var k=W==null?0:pI(W);return k<0&&(k=_e(V+k,0)),U1(r,iI(u,3),k)}function xv(r,u,W){var V=r==null?0:r.length;if(!V)return-1;var k=V-1;return W!==I&&(k=pI(W),k=W<0?_e(V+k,0):Ot(k,V-1)),U1(r,iI(u,3),k,!0)}function Tv(r){var u=r==null?0:r.length;return u?Mt(r,1):[]}function rnI(r){var u=r==null?0:r.length;return u?Mt(r,cg):[]}function ZnI(r,u){var W=r==null?0:r.length;return W?(u=u===I?1:pI(u),Mt(r,u)):[]}function bnI(r){for(var u=-1,W=r==null?0:r.length,V={};++u<W;){var k=r[u];ns(V,k[0],k[1])}return V}function Lv(r){return r&&r.length?r[0]:I}function unI(r,u,W){var V=r==null?0:r.length;if(!V)return-1;var k=W==null?0:pI(W);return k<0&&(k=_e(V+k,0)),db(r,u,k)}function hnI(r){var u=r==null?0:r.length;return u?Yn(r,0,-1):[]}var GnI=fI(function(r){var u=UC(r,q9);return u.length&&u[0]===r[0]?T9(u):[]}),wnI=fI(function(r){var u=yn(r),W=UC(r,q9);return u===yn(W)?u=I:W.pop(),W.length&&W[0]===r[0]?T9(W,iI(u,2)):[]}),WnI=fI(function(r){var u=yn(r),W=UC(r,q9);return u=typeof u=="function"?u:I,u&&W.pop(),W.length&&W[0]===r[0]?T9(W,I,u):[]});function BnI(r,u){return r==null?"":hiI.call(r,u)}function yn(r){var u=r==null?0:r.length;return u?r[u-1]:I}function pnI(r,u,W){var V=r==null?0:r.length;if(!V)return-1;var k=V;return W!==I&&(k=pI(W),k=k<0?_e(V+k,0):Ot(k,V-1)),u===u?eiI(r,u,k):U1(r,BL,k,!0)}function YnI(r,u){return r&&r.length?gv(r,pI(u)):I}var ynI=fI(vv);function vv(r,u){return r&&r.length&&u&&u.length?Q9(r,u):r}function NnI(r,u,W){return r&&r.length&&u&&u.length?Q9(r,u,iI(W,2)):r}function VnI(r,u,W){return r&&r.length&&u&&u.length?Q9(r,u,I,W):r}var XnI=So(function(r,u){var W=r==null?0:r.length,V=K9(r,u);return ev(r,UC(u,function(k){return Do(k,W)?+k:k}).sort(cv)),V});function RnI(r,u){var W=[];if(!(r&&r.length))return W;var V=-1,k=[],x=r.length;for(u=iI(u,3);++V<x;){var U=r[V];u(U,V,r)&&(W.push(U),k.push(V))}return ev(r,k),W}function dM(r){return r==null?r:BiI.call(r)}function MnI(r,u,W){var V=r==null?0:r.length;return V?(W&&typeof W!="number"&&Yi(r,u,W)?(u=0,W=V):(u=u==null?0:pI(u),W=W===I?V:pI(W)),Yn(r,u,W)):[]}function HnI(r,u){return mY(r,u)}function fnI(r,u,W){return E9(r,u,iI(W,2))}function SnI(r,u){var W=r==null?0:r.length;if(W){var V=mY(r,u);if(V<W&&sl(r[V],u))return V}return-1}function DnI(r,u){return mY(r,u,!0)}function knI(r,u,W){return E9(r,u,iI(W,2),!0)}function FnI(r,u){var W=r==null?0:r.length;if(W){var V=mY(r,u,!0)-1;if(sl(r[V],u))return V}return-1}function KnI(r){return r&&r.length?iv(r):[]}function znI(r,u){return r&&r.length?iv(r,iI(u,2)):[]}function JnI(r){var u=r==null?0:r.length;return u?Yn(r,1,u):[]}function xnI(r,u,W){return r&&r.length?(u=W||u===I?1:pI(u),Yn(r,0,u<0?0:u)):[]}function TnI(r,u,W){var V=r==null?0:r.length;return V?(u=W||u===I?1:pI(u),u=V-u,Yn(r,u<0?0:u,V)):[]}function LnI(r,u){return r&&r.length?rY(r,iI(u,3),!1,!0):[]}function vnI(r,u){return r&&r.length?rY(r,iI(u,3)):[]}var jnI=fI(function(r){return Md(Mt(r,1,Ne,!0))}),QnI=fI(function(r){var u=yn(r);return Ne(u)&&(u=I),Md(Mt(r,1,Ne,!0),iI(u,2))}),OnI=fI(function(r){var u=yn(r);return u=typeof u=="function"?u:I,Md(Mt(r,1,Ne,!0),I,u)});function UnI(r){return r&&r.length?Md(r):[]}function EnI(r,u){return r&&r.length?Md(r,iI(u,2)):[]}function PnI(r,u){return u=typeof u=="function"?u:I,r&&r.length?Md(r,I,u):[]}function cM(r){if(!(r&&r.length))return[];var u=0;return r=yd(r,function(W){if(Ne(W))return u=_e(W.length,u),!0}),R9(u,function(W){return UC(r,N9(W))})}function jv(r,u){if(!(r&&r.length))return[];var W=cM(r);return u==null?W:UC(W,function(V){return fA(u,I,V)})}var _nI=fI(function(r,u){return Ne(r)?z2(r,u):[]}),qnI=fI(function(r){return _9(yd(r,Ne))}),$nI=fI(function(r){var u=yn(r);return Ne(u)&&(u=I),_9(yd(r,Ne),iI(u,2))}),glI=fI(function(r){var u=yn(r);return u=typeof u=="function"?u:I,_9(yd(r,Ne),I,u)}),IlI=fI(cM);function ClI(r,u){return sv(r||[],u||[],K2)}function elI(r,u){return sv(r||[],u||[],T2)}var tlI=fI(function(r){var u=r.length,W=u>1?r[u-1]:I;return W=typeof W=="function"?(r.pop(),W):I,jv(r,W)});function Qv(r){var u=J(r);return u.__chain__=!0,u}function ilI(r,u){return u(r),r}function pY(r,u){return u(r)}var AlI=So(function(r){var u=r.length,W=u?r[0]:0,V=this.__wrapped__,k=function(x){return K9(x,r)};return u>1||this.__actions__.length||!(V instanceof zI)||!Do(W)?this.thru(k):(V=V.slice(W,+W+(u?1:0)),V.__actions__.push({func:pY,args:[k],thisArg:I}),new Bn(V,this.__chain__).thru(function(x){return u&&!x.length&&x.push(I),x}))});function nlI(){return Qv(this)}function llI(){return new Bn(this.value(),this.__chain__)}function slI(){this.__values__===I&&(this.__values__=Aj(this.value()));var r=this.__index__>=this.__values__.length,u=r?I:this.__values__[this.__index__++];return{done:r,value:u}}function olI(){return this}function alI(r){for(var u,W=this;W instanceof sY;){var V=zv(W);V.__index__=0,V.__values__=I,u?k.__wrapped__=V:u=V;var k=V;W=W.__wrapped__}return k.__wrapped__=r,u}function dlI(){var r=this.__wrapped__;if(r instanceof zI){var u=r;return this.__actions__.length&&(u=new zI(this)),u=u.reverse(),u.__actions__.push({func:pY,args:[dM],thisArg:I}),new Bn(u,this.__chain__)}return this.thru(dM)}function clI(){return lv(this.__wrapped__,this.__actions__)}var mlI=ZY(function(r,u,W){tC.call(r,W)?++r[W]:ns(r,W,1)});function rlI(r,u,W){var V=uI(r)?wL:iAI;return W&&Yi(r,u,W)&&(u=I),V(r,iI(u,3))}function ZlI(r,u){var W=uI(r)?yd:jL;return W(r,iI(u,3))}var blI=hv(Jv),ulI=hv(xv);function hlI(r,u){return Mt(YY(r,u),1)}function GlI(r,u){return Mt(YY(r,u),cg)}function wlI(r,u,W){return W=W===I?1:pI(W),Mt(YY(r,u),W)}function Ov(r,u){var W=uI(r)?SA:Rd;return W(r,iI(u,3))}function Uv(r,u){var W=uI(r)?JtI:vL;return W(r,iI(u,3))}var WlI=ZY(function(r,u,W){tC.call(r,W)?r[W].push(u):ns(r,W,[u])});function BlI(r,u,W,V){r=qi(r)?r:pb(r),W=W&&!V?pI(W):0;var k=r.length;return W<0&&(W=_e(k+W,0)),RY(r)?W<=k&&r.indexOf(u,W)>-1:!!k&&db(r,u,W)>-1}var plI=fI(function(r,u,W){var V=-1,k=typeof u=="function",x=qi(r)?dg(r.length):[];return Rd(r,function(U){x[++V]=k?fA(u,U,W):J2(U,u,W)}),x}),YlI=ZY(function(r,u,W){ns(r,W,u)});function YY(r,u){var W=uI(r)?UC:_L;return W(r,iI(u,3))}function ylI(r,u,W,V){return r==null?[]:(uI(u)||(u=u==null?[]:[u]),W=V?I:W,uI(W)||(W=W==null?[]:[W]),Iv(r,u,W))}var NlI=ZY(function(r,u,W){r[W?0:1].push(u)},function(){return[[],[]]});function VlI(r,u,W){var V=uI(r)?Y9:YL,k=arguments.length<3;return V(r,iI(u,4),W,k,Rd)}function XlI(r,u,W){var V=uI(r)?xtI:YL,k=arguments.length<3;return V(r,iI(u,4),W,k,vL)}function RlI(r,u){var W=uI(r)?yd:jL;return W(r,VY(iI(u,3)))}function MlI(r){var u=uI(r)?JL:BAI;return u(r)}function HlI(r,u,W){(W?Yi(r,u,W):u===I)?u=1:u=pI(u);var V=uI(r)?gAI:pAI;return V(r,u)}function flI(r){var u=uI(r)?IAI:yAI;return u(r)}function SlI(r){if(r==null)return 0;if(qi(r))return RY(r)?mb(r):r.length;var u=Ut(r);return u==DI||u==PI?r.size:v9(r).length}function DlI(r,u,W){var V=uI(r)?y9:NAI;return W&&Yi(r,u,W)&&(u=I),V(r,iI(u,3))}var klI=fI(function(r,u){if(r==null)return[];var W=u.length;return W>1&&Yi(r,u[0],u[1])?u=[]:W>2&&Yi(u[0],u[1],u[2])&&(u=[u[0]]),Iv(r,Mt(u,1),[])}),yY=ZiI||function(){return Rt.Date.now()};function FlI(r,u){if(typeof u!="function")throw new Wn(A);return r=pI(r),function(){if(--r<1)return u.apply(this,arguments)}}function Ev(r,u,W){return u=W?I:u,u=r&&u==null?r.length:u,fo(r,K,I,I,I,I,u)}function Pv(r,u){var W;if(typeof u!="function")throw new Wn(A);return r=pI(r),function(){return--r>0&&(W=u.apply(this,arguments)),r<=1&&(u=I),W}}var mM=fI(function(r,u,W){var V=w;if(W.length){var k=Vd(W,Wb(mM));V|=R}return fo(r,V,u,W,k)}),_v=fI(function(r,u,W){var V=w|B;if(W.length){var k=Vd(W,Wb(_v));V|=R}return fo(u,V,r,W,k)});function qv(r,u,W){u=W?I:u;var V=fo(r,Y,I,I,I,I,I,u);return V.placeholder=qv.placeholder,V}function $v(r,u,W){u=W?I:u;var V=fo(r,y,I,I,I,I,I,u);return V.placeholder=$v.placeholder,V}function gj(r,u,W){var V,k,x,U,Cg,ng,Gg=0,wg=!1,pg=!1,Fg=!0;if(typeof r!="function")throw new Wn(A);u=Nn(u)||0,ie(W)&&(wg=!!W.leading,pg="maxWait"in W,x=pg?_e(Nn(W.maxWait)||0,u):x,Fg="trailing"in W?!!W.trailing:Fg);function Eg(Ve){var ol=V,Ko=k;return V=k=I,Gg=Ve,U=r.apply(Ko,ol),U}function AI(Ve){return Gg=Ve,Cg=j2(kI,u),wg?Eg(Ve):U}function XI(Ve){var ol=Ve-ng,Ko=Ve-Gg,Gj=u-ol;return pg?Ot(Gj,x-Ko):Gj}function CI(Ve){var ol=Ve-ng,Ko=Ve-Gg;return ng===I||ol>=u||ol<0||pg&&Ko>=x}function kI(){var Ve=yY();if(CI(Ve))return xI(Ve);Cg=j2(kI,XI(Ve))}function xI(Ve){return Cg=I,Fg&&V?Eg(Ve):(V=k=I,U)}function KA(){Cg!==I&&ov(Cg),Gg=0,V=ng=k=Cg=I}function yi(){return Cg===I?U:xI(yY())}function zA(){var Ve=yY(),ol=CI(Ve);if(V=arguments,k=this,ng=Ve,ol){if(Cg===I)return AI(ng);if(pg)return ov(Cg),Cg=j2(kI,u),Eg(ng)}return Cg===I&&(Cg=j2(kI,u)),U}return zA.cancel=KA,zA.flush=yi,zA}var KlI=fI(function(r,u){return LL(r,1,u)}),zlI=fI(function(r,u,W){return LL(r,Nn(u)||0,W)});function JlI(r){return fo(r,F)}function NY(r,u){if(typeof r!="function"||u!=null&&typeof u!="function")throw new Wn(A);var W=function(){var V=arguments,k=u?u.apply(this,V):V[0],x=W.cache;if(x.has(k))return x.get(k);var U=r.apply(this,V);return W.cache=x.set(k,U)||x,U};return W.cache=new(NY.Cache||Ho),W}NY.Cache=Ho;function VY(r){if(typeof r!="function")throw new Wn(A);return function(){var u=arguments;switch(u.length){case 0:return!r.call(this);case 1:return!r.call(this,u[0]);case 2:return!r.call(this,u[0],u[1]);case 3:return!r.call(this,u[0],u[1],u[2])}return!r.apply(this,u)}}function xlI(r){return Pv(2,r)}var TlI=VAI(function(r,u){u=u.length==1&&uI(u[0])?UC(u[0],DA(iI())):UC(Mt(u,1),DA(iI()));var W=u.length;return fI(function(V){for(var k=-1,x=Ot(V.length,W);++k<x;)V[k]=u[k].call(this,V[k]);return fA(r,this,V)})}),rM=fI(function(r,u){var W=Vd(u,Wb(rM));return fo(r,R,I,u,W)}),Ij=fI(function(r,u){var W=Vd(u,Wb(Ij));return fo(r,X,I,u,W)}),LlI=So(function(r,u){return fo(r,D,I,I,I,u)});function vlI(r,u){if(typeof r!="function")throw new Wn(A);return u=u===I?u:pI(u),fI(r,u)}function jlI(r,u){if(typeof r!="function")throw new Wn(A);return u=u==null?0:_e(pI(u),0),fI(function(W){var V=W[u],k=fd(W,0,u);return V&&Nd(k,V),fA(r,this,k)})}function QlI(r,u,W){var V=!0,k=!0;if(typeof r!="function")throw new Wn(A);return ie(W)&&(V="leading"in W?!!W.leading:V,k="trailing"in W?!!W.trailing:k),gj(r,u,{leading:V,maxWait:u,trailing:k})}function OlI(r){return Ev(r,1)}function UlI(r,u){return rM($9(u),r)}function ElI(){if(!arguments.length)return[];var r=arguments[0];return uI(r)?r:[r]}function PlI(r){return pn(r,b)}function _lI(r,u){return u=typeof u=="function"?u:I,pn(r,b,u)}function qlI(r){return pn(r,m|b)}function $lI(r,u){return u=typeof u=="function"?u:I,pn(r,m|b,u)}function gsI(r,u){return u==null||TL(r,u,ct(u))}function sl(r,u){return r===u||r!==r&&u!==u}var IsI=GY(x9),CsI=GY(function(r,u){return r>=u}),br=UL(function(){return arguments}())?UL:function(r){return be(r)&&tC.call(r,"callee")&&!SL.call(r,"callee")},uI=dg.isArray,esI=rL?DA(rL):aAI;function qi(r){return r!=null&&XY(r.length)&&!ko(r)}function Ne(r){return be(r)&&qi(r)}function tsI(r){return r===!0||r===!1||be(r)&&pi(r)==BC}var Sd=uiI||NM,isI=ZL?DA(ZL):dAI;function AsI(r){return be(r)&&r.nodeType===1&&!Q2(r)}function nsI(r){if(r==null)return!0;if(qi(r)&&(uI(r)||typeof r=="string"||typeof r.splice=="function"||Sd(r)||Bb(r)||br(r)))return!r.length;var u=Ut(r);if(u==DI||u==PI)return!r.size;if(v2(r))return!v9(r).length;for(var W in r)if(tC.call(r,W))return!1;return!0}function lsI(r,u){return x2(r,u)}function ssI(r,u,W){W=typeof W=="function"?W:I;var V=W?W(r,u):I;return V===I?x2(r,u,I,W):!!V}function ZM(r){if(!be(r))return!1;var u=pi(r);return u==te||u==EI||typeof r.message=="string"&&typeof r.name=="string"&&!Q2(r)}function osI(r){return typeof r=="number"&&kL(r)}function ko(r){if(!ie(r))return!1;var u=pi(r);return u==oC||u==re||u==UI||u==st}function Cj(r){return typeof r=="number"&&r==pI(r)}function XY(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=og}function ie(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}function be(r){return r!=null&&typeof r=="object"}var ej=bL?DA(bL):mAI;function asI(r,u){return r===u||L9(r,u,AM(u))}function dsI(r,u,W){return W=typeof W=="function"?W:I,L9(r,u,AM(u),W)}function csI(r){return tj(r)&&r!=+r}function msI(r){if(_AI(r))throw new dI(i);return EL(r)}function rsI(r){return r===null}function ZsI(r){return r==null}function tj(r){return typeof r=="number"||be(r)&&pi(r)==HC}function Q2(r){if(!be(r)||pi(r)!=fC)return!1;var u=CY(r);if(u===null)return!0;var W=tC.call(u,"constructor")&&u.constructor;return typeof W=="function"&&W instanceof W&&q1.call(W)==diI}var bM=uL?DA(uL):rAI;function bsI(r){return Cj(r)&&r>=-og&&r<=og}var ij=hL?DA(hL):ZAI;function RY(r){return typeof r=="string"||!uI(r)&&be(r)&&pi(r)==Be}function FA(r){return typeof r=="symbol"||be(r)&&pi(r)==NC}var Bb=GL?DA(GL):bAI;function usI(r){return r===I}function hsI(r){return be(r)&&Ut(r)==dC}function GsI(r){return be(r)&&pi(r)==hi}var wsI=GY(j9),WsI=GY(function(r,u){return r<=u});function Aj(r){if(!r)return[];if(qi(r))return RY(r)?Al(r):_i(r);if(f2&&r[f2])return giI(r[f2]());var u=Ut(r),W=u==DI?H9:u==PI?E1:pb;return W(r)}function Fo(r){if(!r)return r===0?r:0;if(r=Nn(r),r===cg||r===-cg){var u=r<0?-1:1;return u*Wg}return r===r?r:0}function pI(r){var u=Fo(r),W=u%1;return u===u?W?u-W:u:0}function nj(r){return r?cr(pI(r),0,Vg):0}function Nn(r){if(typeof r=="number")return r;if(FA(r))return fg;if(ie(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=ie(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=yL(r);var W=OC.test(r);return W||ye.test(r)?FtI(r.slice(2),W?2:8):JI.test(r)?fg:+r}function lj(r){return ss(r,$i(r))}function BsI(r){return r?cr(pI(r),-og,og):r===0?r:0}function iC(r){return r==null?"":kA(r)}var psI=Gb(function(r,u){if(v2(u)||qi(u)){ss(u,ct(u),r);return}for(var W in u)tC.call(u,W)&&K2(r,W,u[W])}),sj=Gb(function(r,u){ss(u,$i(u),r)}),oj=Gb(function(r,u,W,V){ss(u,$i(u),r,V)}),uM=Gb(function(r,u,W,V){ss(u,ct(u),r,V)}),YsI=So(K9);function ysI(r,u){var W=hb(r);return u==null?W:xL(W,u)}var NsI=fI(function(r,u){r=VC(r);var W=-1,V=u.length,k=V>2?u[2]:I;for(k&&Yi(u[0],u[1],k)&&(V=1);++W<V;)for(var x=u[W],U=$i(x),Cg=-1,ng=U.length;++Cg<ng;){var Gg=U[Cg],wg=r[Gg];(wg===I||sl(wg,Zb[Gg])&&!tC.call(r,Gg))&&(r[Gg]=x[Gg])}return r}),VsI=fI(function(r){return r.push(I,yv),fA(aj,I,r)});function XsI(r,u){return WL(r,iI(u,3),ls)}function RsI(r,u){return WL(r,iI(u,3),J9)}function MsI(r,u){return r==null?r:z9(r,iI(u,3),$i)}function HsI(r,u){return r==null?r:QL(r,iI(u,3),$i)}function fsI(r,u){return r&&ls(r,iI(u,3))}function SsI(r,u){return r&&J9(r,iI(u,3))}function DsI(r){return r==null?[]:dY(r,ct(r))}function ksI(r){return r==null?[]:dY(r,$i(r))}function hM(r,u,W){var V=r==null?I:mr(r,u);return V===I?W:V}function FsI(r,u){return r!=null&&Xv(r,u,nAI)}function GM(r,u){return r!=null&&Xv(r,u,lAI)}var KsI=wv(function(r,u,W){u!=null&&typeof u.toString!="function"&&(u=$1.call(u)),r[u]=W},WM(gA)),zsI=wv(function(r,u,W){u!=null&&typeof u.toString!="function"&&(u=$1.call(u)),tC.call(r,u)?r[u].push(W):r[u]=[W]},iI),JsI=fI(J2);function ct(r){return qi(r)?zL(r):v9(r)}function $i(r){return qi(r)?zL(r,!0):uAI(r)}function xsI(r,u){var W={};return u=iI(u,3),ls(r,function(V,k,x){ns(W,u(V,k,x),V)}),W}function TsI(r,u){var W={};return u=iI(u,3),ls(r,function(V,k,x){ns(W,k,u(V,k,x))}),W}var LsI=Gb(function(r,u,W){cY(r,u,W)}),aj=Gb(function(r,u,W,V){cY(r,u,W,V)}),vsI=So(function(r,u){var W={};if(r==null)return W;var V=!1;u=UC(u,function(x){return x=Hd(x,r),V||(V=x.length>1),x}),ss(r,tM(r),W),V&&(W=pn(W,m|Z|b,zAI));for(var k=u.length;k--;)P9(W,u[k]);return W});function jsI(r,u){return dj(r,VY(iI(u)))}var QsI=So(function(r,u){return r==null?{}:GAI(r,u)});function dj(r,u){if(r==null)return{};var W=UC(tM(r),function(V){return[V]});return u=iI(u),Cv(r,W,function(V,k){return u(V,k[0])})}function OsI(r,u,W){u=Hd(u,r);var V=-1,k=u.length;for(k||(k=1,r=I);++V<k;){var x=r==null?I:r[ll(u[V])];x===I&&(V=k,x=W),r=ko(x)?x.call(r):x}return r}function UsI(r,u,W){return r==null?r:T2(r,u,W)}function EsI(r,u,W,V){return V=typeof V=="function"?V:I,r==null?r:T2(r,u,W,V)}var cj=pv(ct),mj=pv($i);function PsI(r,u,W){var V=uI(r),k=V||Sd(r)||Bb(r);if(u=iI(u,4),W==null){var x=r&&r.constructor;k?W=V?new x:[]:ie(r)?W=ko(x)?hb(CY(r)):{}:W={}}return(k?SA:ls)(r,function(U,Cg,ng){return u(W,U,Cg,ng)}),W}function _sI(r,u){return r==null?!0:P9(r,u)}function qsI(r,u,W){return r==null?r:nv(r,u,$9(W))}function $sI(r,u,W,V){return V=typeof V=="function"?V:I,r==null?r:nv(r,u,$9(W),V)}function pb(r){return r==null?[]:M9(r,ct(r))}function goI(r){return r==null?[]:M9(r,$i(r))}function IoI(r,u,W){return W===I&&(W=u,u=I),W!==I&&(W=Nn(W),W=W===W?W:0),u!==I&&(u=Nn(u),u=u===u?u:0),cr(Nn(r),u,W)}function CoI(r,u,W){return u=Fo(u),W===I?(W=u,u=0):W=Fo(W),r=Nn(r),sAI(r,u,W)}function eoI(r,u,W){if(W&&typeof W!="boolean"&&Yi(r,u,W)&&(u=W=I),W===I&&(typeof u=="boolean"?(W=u,u=I):typeof r=="boolean"&&(W=r,r=I)),r===I&&u===I?(r=0,u=1):(r=Fo(r),u===I?(u=r,r=0):u=Fo(u)),r>u){var V=r;r=u,u=V}if(W||r%1||u%1){var k=FL();return Ot(r+k*(u-r+ktI("1e-"+((k+"").length-1))),u)}return O9(r,u)}var toI=wb(function(r,u,W){return u=u.toLowerCase(),r+(W?rj(u):u)});function rj(r){return wM(iC(r).toLowerCase())}function Zj(r){return r=iC(r),r&&r.replace(Ro,EtI).replace(w9,"")}function ioI(r,u,W){r=iC(r),u=kA(u);var V=r.length;W=W===I?V:cr(pI(W),0,V);var k=W;return W-=u.length,W>=0&&r.slice(W,k)==u}function AoI(r){return r=iC(r),r&&No.test(r)?r.replace(Ee,PtI):r}function noI(r){return r=iC(r),r&&MI.test(r)?r.replace(Ug,"\\$&"):r}var loI=wb(function(r,u,W){return r+(W?"-":"")+u.toLowerCase()}),soI=wb(function(r,u,W){return r+(W?" ":"")+u.toLowerCase()}),ooI=uv("toLowerCase");function aoI(r,u,W){r=iC(r),u=pI(u);var V=u?mb(r):0;if(!u||V>=u)return r;var k=(u-V)/2;return hY(AY(k),W)+r+hY(iY(k),W)}function doI(r,u,W){r=iC(r),u=pI(u);var V=u?mb(r):0;return u&&V<u?r+hY(u-V,W):r}function coI(r,u,W){r=iC(r),u=pI(u);var V=u?mb(r):0;return u&&V<u?hY(u-V,W)+r:r}function moI(r,u,W){return W||u==null?u=0:u&&(u=+u),WiI(iC(r).replace(_I,""),u||0)}function roI(r,u,W){return(W?Yi(r,u,W):u===I)?u=1:u=pI(u),U9(iC(r),u)}function ZoI(){var r=arguments,u=iC(r[0]);return r.length<3?u:u.replace(r[1],r[2])}var boI=wb(function(r,u,W){return r+(W?"_":"")+u.toLowerCase()});function uoI(r,u,W){return W&&typeof W!="number"&&Yi(r,u,W)&&(u=W=I),W=W===I?Vg:W>>>0,W?(r=iC(r),r&&(typeof u=="string"||u!=null&&!bM(u))&&(u=kA(u),!u&&cb(r))?fd(Al(r),0,W):r.split(u,W)):[]}var hoI=wb(function(r,u,W){return r+(W?" ":"")+wM(u)});function GoI(r,u,W){return r=iC(r),W=W==null?0:cr(pI(W),0,r.length),u=kA(u),r.slice(W,W+u.length)==u}function woI(r,u,W){var V=J.templateSettings;W&&Yi(r,u,W)&&(u=I),r=iC(r),u=uM({},u,V,Yv);var k=uM({},u.imports,V.imports,Yv),x=ct(k),U=M9(k,x);SA(x,function(CI){if(Jg.test(CI))throw new dI(s)});var Cg,ng,Gg=0,wg=u.interpolate||un,pg="__p += '",Fg=f9((u.escape||un).source+"|"+wg.source+"|"+(wg===lg?HI:un).source+"|"+(u.evaluate||un).source+"|$","g"),Eg="//# sourceURL="+(tC.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++MtI+"]")+`
|
|
1536
1536
|
`;r.replace(Fg,function(CI,kI,xI,KA,yi,zA){return xI||(xI=KA),pg+=r.slice(Gg,zA).replace(ib,_tI),kI&&(Cg=!0,pg+=`' +
|
|
@@ -1632,7 +1632,7 @@ fn fs_main(in : VertexOutput) -> @location(0) vec4<f32> {
|
|
|
1632
1632
|
* perfect-scrollbar v1.5.6
|
|
1633
1633
|
* Copyright 2024 Hyunje Jun, MDBootstrap and Contributors
|
|
1634
1634
|
* Licensed under MIT
|
|
1635
|
-
*/function yl(C){return getComputedStyle(C)}function Di(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 HF=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function na(C,g){if(!HF)throw new Error("No element matching method supported");return HF.call(C,g)}function IZ(C){C.remove?C.remove():C.parentNode&&C.parentNode.removeChild(C)}function fF(C,g){return Array.prototype.filter.call(C.children,function(I){return na(I,g)})}var fe={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}}},SF={x:null,y:null};function DF(C,g){var I=C.element.classList,e=fe.state.scrolling(g);I.contains(e)?clearTimeout(SF[g]):I.add(e)}function kF(C,g){SF[g]=setTimeout(function(){return C.isAlive&&C.element.classList.remove(fe.state.scrolling(g))},C.settings.scrollingThreshold)}function KOg(C,g){DF(C,g),kF(C,g)}var Ku=function(g){this.element=g,this.handlers={}},FF={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)},FF.isEmpty.get=function(){var C=this;return Object.keys(this.handlers).every(function(g){return C.handlers[g].length===0})},Object.defineProperties(Ku.prototype,FF);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");zOg(C,I,i,e,t)}function zOg(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 JOg(C){return na(C,"input,[contenteditable]")||na(C,"select,[contenteditable]")||na(C,"textarea,[contenteditable]")||na(C,"button,[contenteditable]")}function xOg(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)||(fF(g,fe.element.rail("x")).forEach(function(t){return IZ(t)}),g.appendChild(C.scrollbarXRail)),g.contains(C.scrollbarYRail)||(fF(g,fe.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=KF(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=KF(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),TOg(g,C),C.scrollbarXActive?g.classList.add(fe.state.active("x")):(g.classList.remove(fe.state.active("x")),C.scrollbarXWidth=0,C.scrollbarXLeft=0,g.scrollLeft=C.isRtl===!0?C.contentWidth:0),C.scrollbarYActive?g.classList.add(fe.state.active("y")):(g.classList.remove(fe.state.active("y")),C.scrollbarYHeight=0,C.scrollbarYTop=0,g.scrollTop=0)}function KF(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 TOg(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,Di(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,Di(g.scrollbarYRail,t),Di(g.scrollbarX,{left:g.scrollbarXLeft,width:g.scrollbarXWidth-g.railBorderXWidth}),Di(g.scrollbarY,{top:g.scrollbarYTop,height:g.scrollbarYHeight-g.railBorderYWidth})}function LOg(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 vOg(C){zF(C,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),zF(C,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])}function zF(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,b=null;function h(B){B.touches&&B.touches[0]&&(B[t]=B.touches[0]["page"+o.toUpperCase()]),YB===A&&(d[s]=m+b*(B[t]-Z),DF(C,o),Ws(C),B.stopPropagation(),B.preventDefault())}function G(){kF(C,o),C[a].classList.remove(fe.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],b=(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(fe.state.clicking)),B.stopPropagation(),B.cancelable&&B.preventDefault()}C[A].addEventListener("mousedown",w),C[A].addEventListener("touchstart",w)}function jOg(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(JOg(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 QOg(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(fe.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 OOg(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),b=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&&b===C.contentWidth-C.containerWidth||d>0&&b===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 b=d;b&&b!==g;){if(b.classList.contains(fe.element.consuming))return!0;var h=yl(b);if(Z&&h.overflowY.match(/(scroll|auto)/)){var G=b.scrollHeight-b.clientHeight;if(G>0&&(b.scrollTop>0&&Z<0||b.scrollTop<G&&Z>0))return!0}if(m&&h.overflowX.match(/(scroll|auto)/)){var w=b.scrollWidth-b.clientWidth;if(w>0&&(b.scrollLeft>0&&m<0||b.scrollLeft<w&&m>0))return!0}b=b.parentNode}return!1}function o(d){if(A(d)){var m=i(d),Z={pageX:m.pageX,pageY:m.pageY},b=Z.pageX-I.startOffset.pageX,h=Z.pageY-I.startOffset.pageY;if(s(d.target,b,h))return;t(b,h),I.startOffset=Z;var G=new Date().getTime(),w=G-I.startTime;w>0&&(I.speed.x=b/w,I.speed.y=h/w,I.startTime=G),e(b,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 UOg=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}},EOg={"click-rail":LOg,"drag-thumb":vOg,keyboard:jOg,wheel:QOg,touch:OOg},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(fe.main),this.settings=UOg();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(fe.state.focus)},A=function(){return g.classList.remove(fe.state.focus)};this.isRtl=yl(g).direction==="rtl",this.isRtl===!0&&g.classList.add(fe.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(fe.element.rail("x")),g.appendChild(this.scrollbarXRail),this.scrollbarX=WB(fe.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),Di(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ge(n.marginLeft)+ge(n.marginRight),Di(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=WB(fe.element.rail("y")),g.appendChild(this.scrollbarYRail),this.scrollbarY=WB(fe.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?xOg(this.scrollbarY):null,this.railBorderYWidth=ge(s.borderTopWidth)+ge(s.borderBottomWidth),Di(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ge(s.marginTop)+ge(s.marginBottom),Di(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 EOg[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,Di(this.scrollbarXRail,{display:"block"}),Di(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),Di(this.scrollbarXRail,{display:"none"}),Di(this.scrollbarYRail,{display:"none"}),Ws(this),pB(this,"top",0,!1,!0),pB(this,"left",0,!1,!0),Di(this.scrollbarXRail,{display:""}),Di(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 POg=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(([b,h])=>{var G,w;m?(G=A.value)==null||G.element.addEventListener(b,h):(w=A.value)==null||w.element.removeEventListener(b,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))}}),_Og=["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 b of Z)b.type==="attributes"&&b.attributeName==="style"&&d.style.right!==m&&(d.style.right=m)},o=()=>{var w,B,p,Y,y,R,X,K,D,F,z,v,O,eg,E,T,q,cg,og,Wg,fg,Vg,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"),b=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=(y=e.thrumbStyle)==null?void 0:y.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=((F=(D=e.railStyle)==null?void 0:D.y)==null?void 0:F.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=((eg=(O=e.railStyle)==null?void 0:O.y)==null?void 0:eg.right)||"0px",b.style.background=((T=(E=e.railStyle)==null?void 0:E.x)==null?void 0:T.background)||"var(--button-neutral-color)",b.style.width=((cg=(q=e.thrumbStyle)==null?void 0:q.x)==null?void 0:cg.width)||"6px",b.style.right=((Wg=(og=e.railStyle)==null?void 0:og.x)==null?void 0:Wg.right)||"0px";const h=new MutationObserver(s(Z,((Vg=(fg=e.railStyle)==null?void 0:fg.y)==null?void 0:Vg.right)||"0px")),G=new MutationObserver(s(b,((kg=(Bg=e.railStyle)==null?void 0:Bg.x)==null?void 0:kg.right)||"0px"));h.observe(Z,n),G.observe(b,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(POg),{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,_Og))}});var yB=(C=>(C.small="small",C.medium="medium",C.big="big",C))(yB||{}),NB=(C=>(C.circled="circled",C.rounded="rounded",C))(NB||{}),JF=(C=>(C.blue="blue",C.red="red",C))(JF||{});const qOg=["data-testid","checked","disabled"],$Og=l.defineComponent({__name:"Checkbox",props:{size:{default:yB.medium},circular:{default:NB.rounded},color:{default:JF.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,qOg),l.createVNode(Yg,{class:"checkbox__icon",name:l.unref(mg).checked},null,8,["name"])],2))}}),RX=vg($Og,[["__scopeId","data-v-ab59c827"]]);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 gUg=["data-testid"],IUg=["src","alt"],CUg={key:1,class:"avatar-yui-kit__fallback"},eUg=["src"],tUg={key:1,class:"avatar-yui-kit__text"},MX=new Set,HX=new Set,Ju=vg(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,IUg)):l.createCommentVNode("",!0),s.value?(l.openBlock(),l.createElementBlock("div",CUg,[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,eUg)):(l.openBlock(),l.createElementBlock("div",tUg,l.toDisplayString(i.value),1))])):l.createCommentVNode("",!0)],14,gUg))}}),[["__scopeId","data-v-077c67f1"]]),iUg=["data-testid"],AUg={class:"list-yui-kit__item-text"},nUg=vg(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",AUg,l.toDisplayString(C.text),1),l.renderSlot(t.$slots,"default",{},void 0,!0)],10,iUg))}}),[["__scopeId","data-v-41917df3"]]),lUg={class:"menu-yui-kit__list"},sUg={class:"list-yui-kit"},oUg=vg(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]:mg.profile,[ZC.qrAuth]:mg.qrCode,[ZC.downloadChat]:mg.download,[ZC.theme]:mg.darkThemeSwitcher,[ZC.options]:mg.settings,[ZC.exit]:mg.logout,[ZC.help]:mg.help})[m]??mg.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 b,h,G;return l.openBlock(),l.createElementBlock("div",lUg,[l.createElementVNode("ul",sUg,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.categories,w=>{var B;return l.openBlock(),l.createBlock(nUg,{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))]),(b=I.languages)!=null&&b.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-c94f4f0a"]]),aUg=["data-testid"],dUg={class:"menu-yui-kit__wrapper"},cUg={class:"menu-yui-kit__names"},mUg={class:"menu-yui-kit__name"},rUg={class:"menu-yui-kit__role"},ZUg={key:0,class:"menu-yui-kit__dropdown"},fX=vg(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?mg.chevronUp:mg.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,b)=>{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",dUg,[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",cUg,[l.createElementVNode("p",mUg,l.toDisplayString((G=I.user)==null?void 0:G.name),1),l.createElementVNode("p",rUg,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",ZUg,[l.createVNode(oUg,{"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,aUg)}}}),[["__scopeId","data-v-9b4a5c35"]]);var VB=(C=>(C.default="default",C.minor="minor",C))(VB||{});const bUg=["data-testid"],uUg=["data-testid"],hUg=["data-testid"],GUg=["data-testid","placeholder","required","maxlength","readonly"],wUg=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,hUg)):l.createCommentVNode("",!0)],8,uUg)):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,GUg),[[l.vModelText,t.inputElement]])],42,bUg))}}),SX=vg(wUg,[["__scopeId","data-v-0fe11b1b"]]);var DX=(C=>(C.img="img",C.pdf="pdf",C.docx="docx",C))(DX||{});const WUg=["data-testid"],BUg=["data-testid"],pUg=["src","alt","data-testid"],YUg=["src","data-testid"],yUg=["data-testid"],NUg=["data-testid"],VUg=["data-testid"],kX=vg(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,pUg)):(l.openBlock(),l.createElementBlock("img",{key:1,src:l.unref(Zs),alt:"not found",class:"picture-yui-kit__picture_image","data-testid":`${g.dataTestid}-Picture-Img`},null,8,YUg))],8,BUg),l.createElementVNode("figcaption",{class:"picture-yui-kit__picture__caption","data-testid":`${g.dataTestid}-Caption`},l.toDisplayString(g.caption),9,yUg)],64)):l.unref(Er)(g.url)?(l.openBlock(),l.createBlock(ws,{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,VUg)],8,NUg)),!I.isLoad&&e.value?(l.openBlock(),l.createBlock(ku,{key:3,class:"picture-yui-kit__loader"})):l.createCommentVNode("",!0)],8,WUg))}}),[["__scopeId","data-v-bfca9915"]]);var XB=(C=>(C.success="success",C.warning="warning",C.error="error",C.info="info",C))(XB||{}),xF=(C=>(C.success="Успешно",C.warning="Предупреждение",C.error="Ошибка",C.info="Уведомление",C))(xF||{}),TF=(C=>(C[C.success=mg.checkbox]="success",C[C.warning=mg.alertTriangle]="warning",C[C.error=mg.exitCircle]="error",C[C.info=mg.info]="info",C))(TF||{});const XUg=["id","data-testid"],RUg=["data-testid"],MUg=["data-testid"],HUg=["data-testid"],fUg=["data-testid"],SUg=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:TF[e.type],title:e.title||xF[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,HUg),l.createElementVNode("span",{class:"notification-yui-kit__block-text","data-testid":`${e.dataTestid}-Notification-Description`},l.toDisplayString(s.message.description),9,fUg)],8,MUg),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(mg).crossSmall,"data-testid":`${e.dataTestid}-Notification-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","popovertarget","data-testid"])],8,RUg)],10,XUg))}}),FX=vg(SUg,[["__scopeId","data-v-053cfa20"]]),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(mg).copy,"data-testid":g.dataTestid,onClick:I},null,8,["name","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=["data-testid"],UUg=["data-testid"],EUg=l.defineComponent({__name:"FilterTag",props:{title:{},iconName:{default:mg.filter},options:{default:()=>[]},defaultValue:{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(b=>({...b,chose:Z.value===b.value&&Z.chose}))),e.options.every(b=>b.chose)&&(e.options=e.options.map(b=>({...b,chose:!1}))),t("change",s.value.map(b=>b.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,b)=>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,FUg)):l.createCommentVNode("",!0),!s.value.length&&!I.disallowNull?(l.openBlock(),l.createBlock(Ht,{key:2,disabled:"",text:I.defaultValue,"data-testid":`${I.dataTestid}-Badges-All`},null,8,["text","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(Ht,{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(Ht,{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,zUg)],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(mg).crossSmall,"data-testid":`${I.dataTestid}-CloseButton-Icon`},null,8,["name","data-testid"])],8,JUg)):l.createCommentVNode("",!0)],10,kUg),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(Ht,{disabled:"",text:I.defaultValue,"data-testid":`${I.dataTestid}-Select-Badges`},null,8,["text","data-testid"])],8,LUg)),(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(Ht,{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,vUg))),128))],8,TUg),l.createElementVNode("div",{class:"filter-yui-kit__select__divider","data-testid":`${I.dataTestid}-Select-Divider`},null,8,jUg),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(Ht,{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,OUg))),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(Ht,{key:0,disabled:"","data-testid":`${I.dataTestid}-Select-Badges`,text:I.defaultValue,onClick:d},null,8,["data-testid","text"])):l.createCommentVNode("",!0)],8,UUg))],8,QUg)):l.createCommentVNode("",!0)],8,xUg)):l.createCommentVNode("",!0)],8,DUg)),[[l.unref(To),n,void 0,{bubble:!0}]])}}),zX=vg(EUg,[["__scopeId","data-v-364736f4"]]),PUg=["data-testid"],_Ug=["data-testid"],qUg=["data-testid"],$Ug=["data-testid"],JX=vg(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%,
|
|
1635
|
+
*/function yl(C){return getComputedStyle(C)}function Di(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 HF=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function na(C,g){if(!HF)throw new Error("No element matching method supported");return HF.call(C,g)}function IZ(C){C.remove?C.remove():C.parentNode&&C.parentNode.removeChild(C)}function fF(C,g){return Array.prototype.filter.call(C.children,function(I){return na(I,g)})}var fe={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}}},SF={x:null,y:null};function DF(C,g){var I=C.element.classList,e=fe.state.scrolling(g);I.contains(e)?clearTimeout(SF[g]):I.add(e)}function kF(C,g){SF[g]=setTimeout(function(){return C.isAlive&&C.element.classList.remove(fe.state.scrolling(g))},C.settings.scrollingThreshold)}function KOg(C,g){DF(C,g),kF(C,g)}var Ku=function(g){this.element=g,this.handlers={}},FF={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)},FF.isEmpty.get=function(){var C=this;return Object.keys(this.handlers).every(function(g){return C.handlers[g].length===0})},Object.defineProperties(Ku.prototype,FF);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");zOg(C,I,i,e,t)}function zOg(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 JOg(C){return na(C,"input,[contenteditable]")||na(C,"select,[contenteditable]")||na(C,"textarea,[contenteditable]")||na(C,"button,[contenteditable]")}function xOg(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)||(fF(g,fe.element.rail("x")).forEach(function(t){return IZ(t)}),g.appendChild(C.scrollbarXRail)),g.contains(C.scrollbarYRail)||(fF(g,fe.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=KF(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=KF(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),TOg(g,C),C.scrollbarXActive?g.classList.add(fe.state.active("x")):(g.classList.remove(fe.state.active("x")),C.scrollbarXWidth=0,C.scrollbarXLeft=0,g.scrollLeft=C.isRtl===!0?C.contentWidth:0),C.scrollbarYActive?g.classList.add(fe.state.active("y")):(g.classList.remove(fe.state.active("y")),C.scrollbarYHeight=0,C.scrollbarYTop=0,g.scrollTop=0)}function KF(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 TOg(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,Di(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,Di(g.scrollbarYRail,t),Di(g.scrollbarX,{left:g.scrollbarXLeft,width:g.scrollbarXWidth-g.railBorderXWidth}),Di(g.scrollbarY,{top:g.scrollbarYTop,height:g.scrollbarYHeight-g.railBorderYWidth})}function LOg(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 vOg(C){zF(C,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),zF(C,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])}function zF(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,b=null;function h(B){B.touches&&B.touches[0]&&(B[t]=B.touches[0]["page"+o.toUpperCase()]),YB===A&&(d[s]=m+b*(B[t]-Z),DF(C,o),Ws(C),B.stopPropagation(),B.preventDefault())}function G(){kF(C,o),C[a].classList.remove(fe.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],b=(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(fe.state.clicking)),B.stopPropagation(),B.cancelable&&B.preventDefault()}C[A].addEventListener("mousedown",w),C[A].addEventListener("touchstart",w)}function jOg(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(JOg(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 QOg(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(fe.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 OOg(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),b=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&&b===C.contentWidth-C.containerWidth||d>0&&b===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 b=d;b&&b!==g;){if(b.classList.contains(fe.element.consuming))return!0;var h=yl(b);if(Z&&h.overflowY.match(/(scroll|auto)/)){var G=b.scrollHeight-b.clientHeight;if(G>0&&(b.scrollTop>0&&Z<0||b.scrollTop<G&&Z>0))return!0}if(m&&h.overflowX.match(/(scroll|auto)/)){var w=b.scrollWidth-b.clientWidth;if(w>0&&(b.scrollLeft>0&&m<0||b.scrollLeft<w&&m>0))return!0}b=b.parentNode}return!1}function o(d){if(A(d)){var m=i(d),Z={pageX:m.pageX,pageY:m.pageY},b=Z.pageX-I.startOffset.pageX,h=Z.pageY-I.startOffset.pageY;if(s(d.target,b,h))return;t(b,h),I.startOffset=Z;var G=new Date().getTime(),w=G-I.startTime;w>0&&(I.speed.x=b/w,I.speed.y=h/w,I.startTime=G),e(b,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 UOg=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}},EOg={"click-rail":LOg,"drag-thumb":vOg,keyboard:jOg,wheel:QOg,touch:OOg},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(fe.main),this.settings=UOg();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(fe.state.focus)},A=function(){return g.classList.remove(fe.state.focus)};this.isRtl=yl(g).direction==="rtl",this.isRtl===!0&&g.classList.add(fe.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(fe.element.rail("x")),g.appendChild(this.scrollbarXRail),this.scrollbarX=WB(fe.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),Di(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ge(n.marginLeft)+ge(n.marginRight),Di(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=WB(fe.element.rail("y")),g.appendChild(this.scrollbarYRail),this.scrollbarY=WB(fe.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?xOg(this.scrollbarY):null,this.railBorderYWidth=ge(s.borderTopWidth)+ge(s.borderBottomWidth),Di(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ge(s.marginTop)+ge(s.marginBottom),Di(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 EOg[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,Di(this.scrollbarXRail,{display:"block"}),Di(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),Di(this.scrollbarXRail,{display:"none"}),Di(this.scrollbarYRail,{display:"none"}),Ws(this),pB(this,"top",0,!1,!0),pB(this,"left",0,!1,!0),Di(this.scrollbarXRail,{display:""}),Di(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 POg=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(([b,h])=>{var G,w;m?(G=A.value)==null||G.element.addEventListener(b,h):(w=A.value)==null||w.element.removeEventListener(b,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))}}),_Og=["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 b of Z)b.type==="attributes"&&b.attributeName==="style"&&d.style.right!==m&&(d.style.right=m)},o=()=>{var w,B,p,Y,y,R,X,K,D,F,z,v,O,eg,E,T,q,cg,og,Wg,fg,Vg,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"),b=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=(y=e.thrumbStyle)==null?void 0:y.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=((F=(D=e.railStyle)==null?void 0:D.y)==null?void 0:F.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=((eg=(O=e.railStyle)==null?void 0:O.y)==null?void 0:eg.right)||"0px",b.style.background=((T=(E=e.railStyle)==null?void 0:E.x)==null?void 0:T.background)||"var(--button-neutral-color)",b.style.width=((cg=(q=e.thrumbStyle)==null?void 0:q.x)==null?void 0:cg.width)||"6px",b.style.right=((Wg=(og=e.railStyle)==null?void 0:og.x)==null?void 0:Wg.right)||"0px";const h=new MutationObserver(s(Z,((Vg=(fg=e.railStyle)==null?void 0:fg.y)==null?void 0:Vg.right)||"0px")),G=new MutationObserver(s(b,((kg=(Bg=e.railStyle)==null?void 0:Bg.x)==null?void 0:kg.right)||"0px"));h.observe(Z,n),G.observe(b,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(POg),{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,_Og))}});var yB=(C=>(C.small="small",C.medium="medium",C.big="big",C))(yB||{}),NB=(C=>(C.circled="circled",C.rounded="rounded",C))(NB||{}),JF=(C=>(C.blue="blue",C.red="red",C))(JF||{});const qOg=["data-testid","checked","disabled"],$Og=l.defineComponent({__name:"Checkbox",props:{size:{default:yB.medium},circular:{default:NB.rounded},color:{default:JF.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,qOg),l.createVNode(Yg,{class:"checkbox__icon",name:l.unref(mg).checked},null,8,["name"])],2))}}),RX=vg($Og,[["__scopeId","data-v-ab59c827"]]);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 gUg=["data-testid"],IUg=["src","alt"],CUg={key:1,class:"avatar-yui-kit__fallback"},eUg=["src"],tUg={key:1,class:"avatar-yui-kit__text"},MX=new Set,HX=new Set,Ju=vg(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,IUg)):l.createCommentVNode("",!0),s.value?(l.openBlock(),l.createElementBlock("div",CUg,[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,eUg)):(l.openBlock(),l.createElementBlock("div",tUg,l.toDisplayString(i.value),1))])):l.createCommentVNode("",!0)],14,gUg))}}),[["__scopeId","data-v-077c67f1"]]),iUg=["data-testid"],AUg={class:"list-yui-kit__item-text"},nUg=vg(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",AUg,l.toDisplayString(C.text),1),l.renderSlot(t.$slots,"default",{},void 0,!0)],10,iUg))}}),[["__scopeId","data-v-41917df3"]]),lUg={class:"menu-yui-kit__list"},sUg={class:"list-yui-kit"},oUg=vg(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]:mg.profile,[ZC.qrAuth]:mg.qrCode,[ZC.downloadChat]:mg.download,[ZC.theme]:mg.darkThemeSwitcher,[ZC.options]:mg.settings,[ZC.exit]:mg.logout,[ZC.help]:mg.help})[m]??mg.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 b,h,G;return l.openBlock(),l.createElementBlock("div",lUg,[l.createElementVNode("ul",sUg,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.categories,w=>{var B;return l.openBlock(),l.createBlock(nUg,{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))]),(b=I.languages)!=null&&b.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-c94f4f0a"]]),aUg=["data-testid"],dUg={class:"menu-yui-kit__wrapper"},cUg={class:"menu-yui-kit__names"},mUg={class:"menu-yui-kit__name"},rUg={class:"menu-yui-kit__role"},ZUg={key:0,class:"menu-yui-kit__dropdown"},fX=vg(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?mg.chevronUp:mg.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,b)=>{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",dUg,[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",cUg,[l.createElementVNode("p",mUg,l.toDisplayString((G=I.user)==null?void 0:G.name),1),l.createElementVNode("p",rUg,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",ZUg,[l.createVNode(oUg,{"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,aUg)}}}),[["__scopeId","data-v-9b4a5c35"]]);var VB=(C=>(C.default="default",C.minor="minor",C))(VB||{});const bUg=["data-testid"],uUg=["data-testid"],hUg=["data-testid"],GUg=["data-testid","placeholder","required","maxlength","readonly"],wUg=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,hUg)):l.createCommentVNode("",!0)],8,uUg)):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,GUg),[[l.vModelText,t.inputElement]])],42,bUg))}}),SX=vg(wUg,[["__scopeId","data-v-0fe11b1b"]]);var DX=(C=>(C.img="img",C.pdf="pdf",C.docx="docx",C))(DX||{});const WUg=["data-testid"],BUg=["data-testid"],pUg=["src","alt","data-testid"],YUg=["src","data-testid"],yUg=["data-testid"],NUg=["data-testid"],VUg=["data-testid"],kX=vg(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,pUg)):(l.openBlock(),l.createElementBlock("img",{key:1,src:l.unref(Zs),alt:"not found",class:"picture-yui-kit__picture_image","data-testid":`${g.dataTestid}-Picture-Img`},null,8,YUg))],8,BUg),l.createElementVNode("figcaption",{class:"picture-yui-kit__picture__caption","data-testid":`${g.dataTestid}-Caption`},l.toDisplayString(g.caption),9,yUg)],64)):l.unref(Er)(g.url)?(l.openBlock(),l.createBlock(ws,{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,VUg)],8,NUg)),!I.isLoad&&e.value?(l.openBlock(),l.createBlock(ku,{key:3,class:"picture-yui-kit__loader"})):l.createCommentVNode("",!0)],8,WUg))}}),[["__scopeId","data-v-bfca9915"]]);var XB=(C=>(C.success="success",C.warning="warning",C.error="error",C.info="info",C))(XB||{}),xF=(C=>(C.success="Успешно",C.warning="Предупреждение",C.error="Ошибка",C.info="Уведомление",C))(xF||{}),TF=(C=>(C[C.success=mg.checkbox]="success",C[C.warning=mg.alertTriangle]="warning",C[C.error=mg.exitCircle]="error",C[C.info=mg.info]="info",C))(TF||{});const XUg=["id","data-testid"],RUg=["data-testid"],MUg=["data-testid"],HUg=["data-testid"],fUg=["data-testid"],SUg=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);ug(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:TF[e.type],title:e.title||xF[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,HUg),l.createElementVNode("span",{class:"notification-yui-kit__block-text","data-testid":`${e.dataTestid}-Notification-Description`},l.toDisplayString(s.message.description),9,fUg)],8,MUg),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(mg).crossSmall,"data-testid":`${e.dataTestid}-Notification-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","popovertarget","data-testid"])],8,RUg)],10,XUg))}}),FX=vg(SUg,[["__scopeId","data-v-053cfa20"]]),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(mg).copy,"data-testid":g.dataTestid,onClick:I},null,8,["name","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=["data-testid"],UUg=["data-testid"],EUg=l.defineComponent({__name:"FilterTag",props:{title:{},iconName:{default:mg.filter},options:{default:()=>[]},defaultValue:{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(b=>({...b,chose:Z.value===b.value&&Z.chose}))),e.options.every(b=>b.chose)&&(e.options=e.options.map(b=>({...b,chose:!1}))),t("change",s.value.map(b=>b.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,b)=>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,FUg)):l.createCommentVNode("",!0),!s.value.length&&!I.disallowNull?(l.openBlock(),l.createBlock(Ht,{key:2,disabled:"",text:I.defaultValue,"data-testid":`${I.dataTestid}-Badges-All`},null,8,["text","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(Ht,{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(Ht,{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,zUg)],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(mg).crossSmall,"data-testid":`${I.dataTestid}-CloseButton-Icon`},null,8,["name","data-testid"])],8,JUg)):l.createCommentVNode("",!0)],10,kUg),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(Ht,{disabled:"",text:I.defaultValue,"data-testid":`${I.dataTestid}-Select-Badges`},null,8,["text","data-testid"])],8,LUg)),(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(Ht,{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,vUg))),128))],8,TUg),l.createElementVNode("div",{class:"filter-yui-kit__select__divider","data-testid":`${I.dataTestid}-Select-Divider`},null,8,jUg),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(Ht,{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,OUg))),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(Ht,{key:0,disabled:"","data-testid":`${I.dataTestid}-Select-Badges`,text:I.defaultValue,onClick:d},null,8,["data-testid","text"])):l.createCommentVNode("",!0)],8,UUg))],8,QUg)):l.createCommentVNode("",!0)],8,xUg)):l.createCommentVNode("",!0)],8,DUg)),[[l.unref(To),n,void 0,{bubble:!0}]])}}),zX=vg(EUg,[["__scopeId","data-v-364736f4"]]),PUg=["data-testid"],_Ug=["data-testid"],qUg=["data-testid"],$Ug=["data-testid"],JX=vg(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%,
|
|
1636
1636
|
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,qUg)],12,_Ug)],8,PUg)):(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-43f9503c"]]),g7g=["data-testid","aria-label"],I7g=["data-testid"],Zt=vg(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()},b=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,UI=fg.scrollLeft;og+=qg,Wg+=UI}const Vg=q.width,Bg=q.height,kg=cg.width,Rg=cg.height;I||(T["--hint-top"]=`${og}px`,T["--hint-left"]=`${Wg}px`),T["--tooltip-width"]=`${Vg}px`,T["--tooltip-height"]=`${Bg}px`,T["--hint-measured-width"]=`${kg}px`,T["--hint-height"]=`${Rg}px`,A.value&&jI(T,A.value)})},G=()=>{requestAnimationFrame(()=>{!A.value||g.hintGap===void 0||!s.value||jI({"--tooltip-hint-gap":g.hintGap+"px"},A.value)})},w=()=>{g.isCanShow&&s.value&&A.value&&(jI({"position-anchor":`${t.value}`},A.value),h())},B=()=>{!g.isCanShow||!i.value||jI({"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&&eg()})});const p=()=>{g.isCanShow&&(n.isShow=!0)},Y=()=>{n.isShow=!1};let y=null,R=null,X=!1;const K=new Set,D=()=>(y||(y=new MutationObserver(()=>{s.value&&h()})),y),F=()=>(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(),y==null||y.disconnect(),K.clear(),v()},eg=()=>{!g.isCanShow||!s.value||l.nextTick(()=>{!g.isCanShow||!s.value||(B(),w(),G(),A.value&&E(A.value),i.value&&E(i.value),z(),h())})},E=T=>{K.has(T)||(D().observe(T,{childList:!0,attributes:!0,characterData:!0}),F().observe(T),K.add(T))};return l.watch(s,T=>{if(T){eg();return}O()},{flush:"post"}),l.onMounted(()=>{g.isCanShow&&(B(),s.value&&eg())}),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(b.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,I7g)):l.createCommentVNode("",!0)]),_:1})],8,["to"])):l.createCommentVNode("",!0)],16,g7g))}}),[["__scopeId","data-v-3fb4b3c5"]]),C7g=["data-testid"],e7g=["data-testid"],t7g=["data-testid"],i7g=["onClick","data-testid"],A7g=l.defineComponent({__name:"Popover",props:{isShow:{type:Boolean},iconName:{default:mg.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,b=()=>{t.isShow=!1,e("close")},h=X=>{X.function(),b()},G=()=>{requestAnimationFrame(()=>{if(!o.value||!a.value||!t.isShow)return;const X={},K=o.value.getBoundingClientRect(),D=window.pageYOffset||document.documentElement.scrollTop,F=window.pageXOffset||document.documentElement.scrollLeft;let z=K.bottom+D,v=K.left+F;const O=o.value.closest("dialog");if(O){const E=O.getBoundingClientRect();z=K.top-E.top,v=K.left-E.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`),jI(X,a.value),(()=>{if(!a.value)return;const E=a.value.getBoundingClientRect();E.right>window.innerWidth&&(A?X["--popover-right"]="anchor(right) ":X["--popover-right"]=`${K.right-E.width}px`)})(),X["--popover-right"]&&(X.left="auto",jI(X,a.value))})},w=X=>{const K=X.getBoundingClientRect(),D=document.elementFromPoint(K.left,K.top),F=document.elementFromPoint(K.right,K.bottom);!(D&&X.contains(D))&&!(F&&X.contains(F))&&b()},B=new IntersectionObserver(X=>{X.forEach(K=>{K.isIntersecting||b()})}),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))},y=()=>{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(),y()):R(),!A&&(t.isShow?p():Y())}),l.onMounted(()=>{o.value&&jI({"anchor-name":`${s.value}`},o.value),a.value&&jI({"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(Zt,{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,e7g),(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,(F,z)=>(l.openBlock(),l.createElementBlock("div",{class:"popover-yui-kit__options__item",key:z,style:l.normalizeStyle(F.style),onClick:l.withModifiers(v=>h(F),["stop"]),"data-testid":`${I.dataTestid}-Item${z}`},[F.iconName?(l.openBlock(),l.createBlock(Yg,{key:0,name:F.iconName,"data-testid":`${I.dataTestid}-Item${z}-Icon`},null,8,["name","data-testid"])):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(F.value),1)],12,i7g))),128))],8,t7g)):l.createCommentVNode("",!0)]},!0)],4),[[l.vShow,t.isShow]])]),_:3})],8,["to","disabled"]))],8,C7g)),[[l.unref(To),b,void 0,{bubble:!0}]])]),_:3},8,["hint","position","data-testid","is-can-show"]))}}),tZ=vg(A7g,[["__scopeId","data-v-3f52c8e1"]]),n7g=["colspan","rowspan","data-testid"],iZ=vg(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,n7g))}}),[["__scopeId","data-v-88f7c45d"]]),l7g=["data-testid"],xu=vg(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,l7g))}}),[["__scopeId","data-v-93b6bd0e"]]),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.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 y=w/Y,R=e.value.clientWidth,X=I.value.clientWidth,K=R-X,D=y*K;requestAnimationFrame(()=>{g.value&&jI({"--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",b,!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()}},b=()=>{t.value=!1,document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",b,!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,y=B.width;let R=(p-Y/2)*((C.value.scrollWidth-C.value.clientWidth)/(y-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,jI({"--scroll-horizontal-bar-width":`${w}%`},g.value)},horizontalTrackClass:s,isExistHorizontalTrack:o}},vF=(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 y=w/Y,R=e.value.clientHeight,X=I.value.clientHeight,K=R-X,D=y*K;requestAnimationFrame(()=>{g.value&&jI({"--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",b))},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()}},b=()=>{t.value=!1,document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",b)};return{onDrag:Z,onTrackClick:w=>{if(C.value&&I.value){const B=w.currentTarget.getBoundingClientRect(),p=w.clientY-B.top,Y=I.value.clientHeight,y=B.height;let R=(p-Y/2)*((C.value.scrollHeight-C.value.clientHeight)/(y-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,jI({"--scroll-vertical-bar-height":`${w}%`},g.value)},verticalTrackClass:s,isExistVerticalTrack:o}},s7g={class:"scroll-wrapper__vertical-wrapper"},o7g={class:"scroll-wrapper__horizont-wrapper"},Tu=vg(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:b,isExistVerticalTrack:h}=vF(t,i,n,A),{changeBarPosition:G,startDrag:w,onTrackClick:B,setHorizontalBarWidth:p,horizontalTrackClass:Y,isExistHorizontalTrack:y}=LF(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;jI({"--scroll-wrapper-height":`${og}`,"--scroll-wrapper-max-height":`${cg}`,"--scroll-wrapper-min-height":`${q}`},i.value)},D=()=>{Z(),p(),m(),G()},F=()=>{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()}),eg=new ResizeObserver(()=>{X(),v()}),E=T=>{O.observe(T,{childList:!0,subtree:!0,attributes:!0}),eg.observe(T)};return g({scrollToTop:z,setHeightSlot:K,slotRef:t}),l.onMounted(()=>{X(),F(),i.value&&E(i.value),A.value&&E(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",s7g,[l.createElementVNode("div",o7g,[l.createElementVNode("div",{ref_key:"slotRef",ref:t,class:"scroll-wrapper__slot"},[l.renderSlot(T.$slots,"default",{},void 0,!0)],512),l.unref(y)||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(b)]),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-d58d935f"]]),a7g=["id","data-testid"],d7g=["id","data-testid"],c7g=["id","data-testid"],m7g={key:0,class:"table__error-wrapper"},r7g={class:"table__error-content"},Z7g={class:"table__wrapper"},xX=vg(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 y=Y.getBoundingClientRect().height;i.headHeight=y,jI({"--scroll-track-margin-top":`${y}px`},a.value.$el)},b=()=>{a.value&&a.value.scrollToTop()},h=()=>{if(a.value&&o.value){const Y=getComputedStyle(a.value.$el),y=Number(Y.minHeight.replace(/\D/g,""));if(y&&y>0)return;jI({"min-height":`${i.headHeight+108}px`},a.value.$el)}},G=()=>{let Y=1;if(n.value){for(let y=0;y<n.value.children.length;y++)Y=Math.max(n.value.children[y].children.length,Y);i.maxColumnCount=Y}},w=new MutationObserver(()=>{G()}),B=new ResizeObserver(()=>{Z()});return g({scrollToTop:b,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,y)=>(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,d7g)):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,c7g)):l.createCommentVNode("",!0)],!0)]},!0)],8,a7g),e.isError?(l.openBlock(),l.createElementBlock("div",m7g,[l.createElementVNode("div",r7g,[l.createVNode(Yg,{class:"table__error-icon",width:112,height:100,name:l.unref(mg).tableError},null,8,["name"]),y[0]||(y[0]=l.createElementVNode("div",{class:"table__error-header"},"Таблица не загрузилась",-1)),y[1]||(y[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",Z7g,[l.createVNode(Yg,{name:l.unref(mg).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-d8f40559"]]),b7g=["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,b7g))}}),u7g={class:"skeleton"},RB=vg(l.defineComponent({name:"Skeleton",__name:"Skeleton",setup(C){return(g,I)=>(l.openBlock(),l.createElementBlock("div",u7g))}}),[["__scopeId","data-v-e4032176"]]),h7g=["data-testid"],MB=vg(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,h7g))}}),[["__scopeId","data-v-6b48ff96"]]),TX=vg(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-74cf9e8d"]]),G7g=["disabled","name","value","data-testid"],LX=vg(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,G7g)),[[l.vModelRadio,I.value]])}}),[["__scopeId","data-v-ca114382"]]),w7g=["data-testid"],W7g=["data-testid"],jF=vg(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(Ht,{"data-testid":`${I.dataTestid}-Badge${s}`,type:l.unref(QI).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(mg).crossLarge,width:10,height:10,class:"choosen-mini-options__cross",onClick:o=>t(n.key)},null,8,["data-testid","name","onClick"])],8,W7g))),128))],8,w7g))}}),[["__scopeId","data-v-5a73c902"]]),B7g=["data-testid"],p7g=["data-testid"],Y7g=["data-testid"],y7g=["data-testid"],N7g=["data-testid"],V7g=["data-testid"],vX=vg(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 eg;return O.value.toLowerCase().includes(a.value.toLowerCase())||((eg=O==null?void 0:O.hint)==null?void 0:eg.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(eg=>Gl.isArray(n.value)?n.value.includes(eg.key):eg.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))),b=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 eg,E,T;const v=I.options;let O;return Gl.isArray(n.value)?jb(v)?O=(eg=v.find(q=>q.value===m.value))==null?void 0:eg.hint:O=(E=v.find(q=>q.value===m.value))==null?void 0:E.value:O=(T=v.find(q=>q.key===String(n.value)))==null?void 0:T.value,O||I.defaultOption||""}),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),y=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(eg=>eg.key===v);!O&&jb(I.options)&&(O=I.options.find(eg=>eg.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))},F=new IntersectionObserver(v=>{v.forEach(O=>{O.isIntersecting&&t("unmount-pagination")})}),z=()=>{A.value&&I.onUnmountPagination&&(F.unobserve(A.value),F.observe(A.value))};return l.onMounted(()=>{z()}),l.onUnmounted(()=>{F.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",{},()=>[I.title?(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(["filter__header-title",{"filter__header-title__active":s.value}]),"data-testid":`${I.dataTestid}-Title`},l.toDisplayString(C.title),11,B7g)):l.createCommentVNode("",!0),l.createVNode(Zt,{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(Ht,{ref_key:"badgesRef",ref:i,type:C.disabled?l.unref(QI).disabled:m.value===I.defaultOption?l.unref(QI).default:l.unref(QI).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(jF,{"data-testid":`${I.dataTestid}-Filter-Value-MiniOptions`,onClick:O[0]||(O[0]=l.withModifiers(()=>{},["stop"])),options:b.value,onRemove:X},null,8,["data-testid","options"])],8,p7g)):l.createCommentVNode("",!0)]),_:1},8,["position","is-can-show","hint","data-testid"]),y.value&&y.value>1?(l.openBlock(),l.createElementBlock("span",{key:1,class:"filter__count","data-testid":`${I.dataTestid}-Filter-Count`},[l.createTextVNode(" +"+l.toDisplayString(y.value-1)+" ",1),Y.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"filter__values","data-testid":`${I.dataTestid}-Filter-Values`},[l.createVNode(jF,{onClick:O[1]||(O[1]=l.withModifiers(()=>{},["stop"])),options:Z.value,onRemove:X,"data-testid":`${I.dataTestid}-MiniOptions`},null,8,["options","data-testid"])],8,y7g)):l.createCommentVNode("",!0)],8,Y7g)):l.createCommentVNode("",!0),p.value?(l.openBlock(),l.createElementBlock("span",{key:2,class:"filter__cross",onClick:l.withModifiers(D,["stop"]),"data-testid":`${I.dataTestid}-Filter-Cross`},[l.createVNode(Yg,{name:l.unref(mg).crossLarge,width:16,height:16},null,8,["name"])],8,N7g)):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]=eg=>a.value=eg),"show-history":!1,"data-testid":`${I.dataTestid}-Search`,onInput:O[3]||(O[3]=eg=>v.$emit("unmount-search",eg)),onEnter:O[4]||(O[4]=eg=>v.$emit("unmount-search-enter",eg))},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,V7g)]),_: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(eg=>[l.renderSlot(v.$slots,"body",{closeOpenList:eg.closeOpenList},void 0,!0)]),key:"0"}:void 0]),1032,["is-opened","class","is-use-anchor","data-testid","disabled"]))}}),[["__scopeId","data-v-475c0ed9"]]),X7g=["data-testid"],HB=vg(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&&jI({"--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,X7g)),[[l.vModelText,t.value]])}}),[["__scopeId","data-v-07f59a41"]]),R7g=["id","data-testid"],M7g=["data-testid"],H7g=["data-testid"],jX=vg(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,jI({"--scroll-track-margin-top":`${Y}px`},a.value.$el)},Z=()=>{a.value&&a.value.scrollToTop()},b=()=>{if(a.value&&o.value){const p=getComputedStyle(a.value.$el),Y=Number(p.minHeight.replace(/\D/g,""));if(Y&&Y>0)return;jI({"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}),b()}),(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,M7g)):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,H7g)):l.createCommentVNode("",!0)],!0)],!0)],8,R7g)]),_:3},8,["is-show-vertical-scroll","is-show-horizontal-scroll","data-testid"]))}}),[["__scopeId","data-v-828d32df"]]),f7g=["data-testid"],QX=vg(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,f7g))}}),[["__scopeId","data-v-7dc4f5d0"]]),S7g=["data-testid"],fB=vg(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,S7g))}}),[["__scopeId","data-v-f74d38aa"]]),D7g={class:"scroll-wrapper__vertical-wrapper"},k7g={class:"scroll-wrapper__horizont-wrapper"},F7g=vg(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:b,isExistVerticalTrack:h}=vF(t,i,n,A),{changeBarPosition:G,startDrag:w,onTrackClick:B,setHorizontalBarWidth:p,horizontalTrackClass:Y,isExistHorizontalTrack:y}=LF(t,i,o,s),R=E=>{m(),G(),e("unmount-scroll",E)},X=()=>{requestAnimationFrame(()=>{K(),D()})},K=()=>{if(!t.value||!i.value)return;const E=getComputedStyle(i.value),T=i.value.style.minHeight||E.minHeight,q=i.value.style.maxHeight||E.maxHeight,cg=i.value.style.height;jI({"--scroll-wrapper-height":`${cg}`,"--scroll-wrapper-max-height":`${q}`,"--scroll-wrapper-min-height":`${T}`},i.value)},D=()=>{Z(),p(),m(),G()},F=()=>{t.value&&t.value.addEventListener("scroll",R)},z=()=>{t.value&&(t.value.scrollTop=0)},v=new MutationObserver(()=>{X()}),O=new ResizeObserver(()=>{X()}),eg=E=>{v.observe(E,{childList:!0,subtree:!0,attributes:!0}),O.observe(E)};return g({scrollToTop:z,setHeightSlot:K}),l.onMounted(()=>{X(),F(),i.value&&eg(i.value),A.value&&eg(A.value),window.addEventListener("resize",X),e("on-mounted")}),l.onUnmounted(()=>{window.removeEventListener("resize",X)}),(E,T)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"scrollWrapperRef",ref:i,class:"scroll-wrapper"},[l.createElementVNode("div",D7g,[l.createElementVNode("div",k7g,[l.createElementVNode("div",{ref_key:"slotRef",ref:t,class:"scroll-wrapper__slot"},[l.renderSlot(E.$slots,"default",{},void 0,!0)],512),l.unref(y)||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(b)]),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-af83a114"]]),K7g=["data-testid"],z7g=["data-testid"],J7g=["data-testid"],OX=vg(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,z7g)):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,J7g)):l.createCommentVNode("",!0)],!0)],!0)],8,K7g))}}),[["__scopeId","data-v-57a1c54d"]]),x7g=["data-testid"],T7g=["data-testid"],L7g=["onClick","data-testid"],v7g=["data-testid"],UX=vg(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,L7g))),128))],8,T7g),(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,v7g)):l.createCommentVNode("",!0)],64))),128))],8,x7g))}}),[["__scopeId","data-v-f2188407"]]);function bt(C){this.content=C}bt.prototype={constructor:bt,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 bt(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 bt(I)},addToStart:function(C,g){return new bt([C,g].concat(this.remove(C).content))},addToEnd:function(C,g){var I=this.remove(C).content.slice();return I.push(C,g),new bt(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 bt(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=bt.from(C),C.size?new bt(C.content.concat(this.subtract(C).content)):this},append:function(C){return C=bt.from(C),C.size?new bt(this.subtract(C).content.concat(C.content)):this},subtract:function(C){var g=this;C=bt.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}},bt.from=function(C){if(C instanceof bt)return C;var g=[];if(C)for(var I in C)g.push(I,C[I]);return new bt(g)};function QF(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&&EF(A.charCodeAt(s-1))&&UF(A.charCodeAt(s))&&I--,I}if(t.content.size||i.content.size){let A=QF(t.content,i.content,I+1);if(A!=null)return A}I+=t.nodeSize}}function OF(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&&EF(o.charCodeAt(d-1))&&UF(o.charCodeAt(d))&&(I++,e++),{a:I,b:e}}if(A.content.size||n.content.size){let o=OF(A.content,n.content,I-1,e-1);if(o)return o}I-=s,e-=s}}function UF(C){return C>=56320&&C<57344}function EF(C){return C>=55296&&C<56320}let Mg=class Vi{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 Vi(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 Vi(e,t)}cutByIndex(g,I){return g==I?Vi.empty:g==0&&I==this.content.length?this:new Vi(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 Vi(t,i)}addToStart(g){return new Vi([g].concat(this.content),this.size+g.nodeSize)}addToEnd(g){return new Vi(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 QF(this,g,I)}findDiffEnd(g,I=this.size,e=g.size){return OF(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 Vi.empty;if(!Array.isArray(I))throw new RangeError("Invalid input for Fragment.fromJSON");return Vi.fromArray(I.map(g.nodeFromJSON))}static fromArray(g){if(!g.length)return Vi.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 Vi(I||g,e)}static from(g){if(!g)return Vi.empty;if(g instanceof Vi)return g;if(Array.isArray(g))return this.fromArray(g);if(g.attrs)return new Vi([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 pC=class RH{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 RH.none;if(g instanceof RH)return[g];let I=g.slice();return I.sort((e,t)=>e.type.rank-t.type.rank),I}};pC.none=[];let vu=class extends Error{},jg=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=_F(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(PF(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)}};jg.empty=new jg(Mg.empty,0,0);function PF(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(PF(i.content,g-t-1,I-t-1)))}function _F(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=_F(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 j7g(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 qF(C,g,I,0)}function qF(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=qF(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}=Q7g(I,C);return Zc(i,gK(C,A,n,g,e))}else return Zc(i,kB(C,g,e))}function $F(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 $F(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 gK(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)?($F(i,A),rc(Zc(i,gK(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 Q7g(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 pC.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=IK.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 IK.set(g,e=new O7g);let t=e.elts[e.i]=Qu.resolve(g,I);return e.i=(e.i+1)%U7g,t}}class O7g{constructor(){this.elts=[],this.i=0}}const U7g=12,IK=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 E7g=Object.create(null);let la=class MH{constructor(g,I,e,t=pC.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||E7g)&&pC.sameSet(this.marks,e||pC.none)}copy(g=null){return g==this.content?this:new MH(this.type,this.attrs,g,this.marks)}mark(g){return g==this.marks?this:new MH(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 jg.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 jg(o,t.depth-A,i.depth-A)}replace(g,I,e){return j7g(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()+")"),CK(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=pC.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(!pC.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):CK(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 CK(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 P7g(g,I);if(e.next==null)return bc.empty;let t=eK(e);e.next&&e.err("Unexpected trailing text");let i=eEg(CEg(t));return tEg(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(`
|
|
1637
1637
|
`)}}bc.empty=new bc(!0);class P7g{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 eK(C){let g=[];do g.push(_7g(C));while(C.eat("|"));return g.length==1?g[0]:{type:"choice",exprs:g}}function _7g(C){let g=[];do g.push(q7g(C));while(C.next&&C.next!=")"&&C.next!="|");return g.length==1?g[0]:{type:"seq",exprs:g}}function q7g(C){let g=IEg(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 tK(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=tK(C),e=I;return C.eat(",")&&(C.next!="}"?e=tK(C):e=-1),C.eat("}")||C.err("Unclosed braced range"),{type:"range",min:I,max:e,expr:g}}function gEg(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 IEg(C){if(C.eat("(")){let g=eK(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=gEg(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 CEg(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 iK(C,g){return g-C}function AK(C,g){let I=[];return e(g),I.sort(iK);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 eEg(C){let g=Object.create(null);return I(AK(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]);AK(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(iK);i.next.push({type:t[A][0],next:g[n.join(",")]||I(n)})}return i}}function tEg(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 nK(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 lK(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 sK(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 oK(C,g){let I=Object.create(null);if(g)for(let e in g)I[e]=new AEg(C,e,g[e]);return I}let aK=class mQ{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=oK(g,e.attrs),this.defaultAttrs=nK(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:lK(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),pC.setFrom(e))}createChecked(g=null,I,e){return I=Mg.from(I),this.checkContent(I),new la(this,this.computeAttrs(g),I,pC.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),pC.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){sK(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:pC.none:g}static compile(g,I){let e=Object.create(null);g.forEach((i,A)=>e[i]=new mQ(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 iEg(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 AEg{constructor(g,I,e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default,this.validate=typeof e.validate=="string"?iEg(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=oK(g,t.attrs),this.excluded=null;let i=nK(this.attrs);this.instance=i?new pC(this,i):null}create(g=null){return!g&&this.instance?this.instance:new pC(this,lK(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){sK(this.attrs,g,"mark",this.name)}excludes(g){return this.excluded.indexOf(g)>-1}}class dK{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=bt.from(g.nodes),I.marks=bt.from(g.marks||{}),this.nodes=aK.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?cK(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==""?[]:cK(this,A.split(" "))}this.nodeFromJSON=t=>la.fromJSON(this,t),this.markFromJSON=t=>pC.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 aK){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,pC.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 cK(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 nEg(C){return C.tag!=null}function lEg(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(nEg(t))this.tags.push(t);else if(lEg(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 bK(this,I,!1);return e.addAll(g,pC.none,I.from,I.to),e.finish()}parseSlice(g,I={}){let e=new bK(this,I,!0);return e.addAll(g,pC.none,I.from,I.to),jg.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(aEg(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=uK(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=uK(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 mK={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},sEg={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},rK={ol:!0,ul:!0},Ou=1,_X=2,Uu=4;function ZK(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=pC.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&&!mK.hasOwnProperty(g.parentNode.nodeName.toLowerCase())}}class bK{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=ZK(null,I.preserveWhitespace,0)|(e?Uu:0);t?i=new JB(t.type,t.attrs,pC.none,!0,I.topMatch||t.type.contentMatch,A):e?i=new JB(null,null,pC.none,!0,null,A):i=new JB(g.schema.topNodeType,null,pC.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,`
|
|
1638
1638
|
`);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;rK.hasOwnProperty(A)&&this.parser.normalizeLists&&oEg(g);let s=this.options.ruleFromNode&&this.options.ruleFromNode(g)||(n=this.parser.matchTag(g,this,e));g:if(s?s.ignore:sEg.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(mK.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(`
|
|
@@ -1786,5 +1786,5 @@ ${I}
|
|
|
1786
1786
|
`,`
|
|
1787
1787
|
`).split(/\r?\n/).map(rg=>rg.trim()).filter(Boolean),eg=()=>{var $;return(($=e.value)==null?void 0:$.offsetWidth)??0},E=()=>{var $;return(($=e.value)==null?void 0:$.offsetHeight)??0},T=()=>{i.value=window.innerWidth<=ueI,i.value||(A.value=!1)},q=()=>({position:"fixed",left:"0px",top:"0px",transform:"none",visibility:"hidden",pointerEvents:"none",zIndex:"1000"}),cg=()=>{b.value=null,h.value="",t.value=!1,A.value=!1,B.value=!1,p.value=!1,Y.value=null,d.value=q(),m.value=null,Z.value="center"},og=$=>{var Ig;if(!$||$.isDestroyed)return null;try{return((Ig=$.view)==null?void 0:Ig.dom)??null}catch{return null}},Wg=($,Ig)=>{if(!Ig)return!1;const rg=og($);if(!rg)return!1;const Jg=Ig instanceof Element?Ig:Ig.parentElement;return!!Jg&&rg.contains(Jg)},fg=$=>{const Ig=Vg($);return Ig?Array.from(Ig.getRangeAt(0).getClientRects()).filter(rg=>rg.width>0||rg.height>0):[]},Vg=$=>{const Ig=og($),rg=Ig==null?void 0:Ig.ownerDocument.getSelection();return!rg||rg.rangeCount===0||rg.isCollapsed||!Wg($,rg.anchorNode)||!Wg($,rg.focusNode)?null:rg},Bg=$=>{const Ig=fg($);if(Ig.length>0){const tI=Math.min(...Ig.map(ye=>ye.left)),JI=Math.max(...Ig.map(ye=>ye.right)),OC=Math.min(...Ig.map(ye=>ye.top)),Ye=Math.max(...Ig.map(ye=>ye.bottom));return new DOMRect(tI,OC,JI-tI,Ye-OC)}const rg=og($),Jg=rg==null?void 0:rg.ownerDocument.getSelection();if(!Jg||Jg.rangeCount===0)return null;const HI=Jg.getRangeAt(0).getBoundingClientRect();return HI.width>0||HI.height>0?HI:null},kg=$=>{const{doc:Ig,selection:rg}=$.state;return rg.from<=1&&rg.to>=Ig.content.size-1},Rg=$=>{const[Ig]=fg($).sort((Jg,oI)=>Jg.top-oI.top||Jg.left-oI.left);if(Ig)return new DOMRect(Ig.left,Ig.top,Ig.width,Ig.height);const{selection:rg}=$.state;try{const Jg=$.view.coordsAtPos(rg.from);return new DOMRect(Jg.left,Jg.top,Math.max(Jg.right-Jg.left,1),Jg.bottom-Jg.top)}catch{return null}},gI=$=>(kg($)?Rg($):null)??Bg($)??s_g($.view,$.state.selection.from,$.state.selection.to),qg=$=>{const Ig=Vg($);if(!Ig)return!1;try{if(!Ig.anchorNode||!Ig.focusNode)return!1;const rg=$.view.posAtDOM(Ig.anchorNode,Ig.anchorOffset),Jg=$.view.posAtDOM(Ig.focusNode,Ig.focusOffset),oI=Math.min(rg,Jg),HI=Math.max(rg,Jg);return oI===HI?!1:($.state.selection.from===oI&&$.state.selection.to===HI||$.view.dispatch($.state.tr.setSelection(sI.create($.state.doc,oI,HI))),!0)}catch{return!1}},UI=$=>{const Ig=eg();if(!Ig)return $;const rg=window.innerWidth-Ig-Sl;return rg<=Sl?Math.max((window.innerWidth-Ig)/2,0):Math.min(Math.max($,Sl),rg)},BC=$=>{var HI;const Ig=((HI=e.value)==null?void 0:HI.offsetWidth)??0;if(!Ig)return $;const rg=Ig/2,Jg=Sl+rg,oI=window.innerWidth-Sl-rg;return Jg>oI?window.innerWidth/2:Math.min(Math.max($,Jg),oI)},yC=$=>{const Ig=eg();if(!Ig)return"center";const rg=$.left-Sl,Jg=window.innerWidth-$.right-Sl,oI=Ig/2;return Jg<oI&&rg>Jg?"right":rg<oI&&Jg>rg?"left":"center"},EI=($,Ig)=>Ig==="left"?{left:UI($.left),transform:"none"}:Ig==="right"?{left:UI($.right-eg()),transform:"none"}:{left:BC($.left+$.width/2),transform:"translateX(-50%)"},te=($,Ig)=>Ig==="center"?BC($):UI($),oC=$=>{if(!i.value||!A.value)return Math.max($.top-52,12);const Ig=E(),rg=$.bottom+8,Jg=window.innerHeight-Ig-Sl;return!Ig||rg<=Jg?Math.max(rg,Sl):Math.max($.top-Ig-8,Sl)},re=()=>{var $;return($=I())==null?void 0:$.chain().focus()},DI=($=b.value)=>{const Ig=I();!Ig||!$||Ig.chain().focus().setTextSelection($).run()},HC=($={})=>{const Ig=I(),rg=og(Ig);if(!Ig||!Ig.view||!rg){t.value=!1,A.value=!1;return}const{view:Jg,isEditable:oI}=Ig,HI=i.value&&!!Vg(Ig);HI&&qg(Ig);const{selection:tI}=Ig.state,JI=i.value&&p.value&&tI.empty;if(i.value&&tI.empty&&b.value&&!JI){cg();return}if(!oI||i.value&&!B.value||tI.empty&&!JI||!Jg.hasFocus()&&!HI||w.value){t.value=!1,A.value=!1,d.value=q(),m.value=null,Z.value="center";return}tI.empty||Wi(Ig,{from:tI.from,to:tI.to});const OC=JI&&Y.value||gI(Ig);if(!t.value){d.value=q(),t.value=!0,l.nextTick(()=>aC($));return}const Ye=$.preserveHorizontal?Z.value:yC(OC),ye=$.preserveHorizontal?{left:te(m.value??EI(OC,Ye).left,Ye),transform:Ye==="center"?"translateX(-50%)":"none"}:EI(OC,Ye);Z.value=Ye,m.value=ye.left,d.value={position:"fixed",left:`${ye.left}px`,top:`${oC(OC)}px`,transform:ye.transform,visibility:"visible",pointerEvents:"auto",zIndex:"1000"}},aC=($={})=>{y!==null&&cancelAnimationFrame(y),y=requestAnimationFrame(()=>{y=null,HC($)})},fC=()=>{T(),aC({preserveHorizontal:!0})},RA=()=>{aC()},st=()=>{aC()},vC=()=>{aC()},PI=new Set(["Alt","AltGraph","CapsLock","Control","Meta","Shift"]),Be=()=>i.value&&!!b.value,NC=$=>{!Be()||PI.has($.key)||cg()},ot=$=>{!Be()||($.inputType||"").startsWith("format")||cg()},dC=()=>{Be()&&cg()},hi=()=>{t.value=!1,A.value=!1,B.value=!1,p.value=!1},pe=$=>{i.value&&$.preventDefault()},jC=$=>{$.button!==0||n.value||(w.value=!0,B.value=!1,p.value=!1,Y.value=null,t.value=!1,A.value=!1)},Gi=()=>{if(!w.value){Ui();return}w.value=!1,aC(),Ui()},Ue=()=>{R.forEach($=>window.clearTimeout($)),R=[]},Ui=()=>{i.value&&(Ue(),[50,180,360].forEach($=>{const Ig=window.setTimeout(()=>{w.value=!1,aC()},$);R.push(Ig)}))},at=()=>{Ui()},QC=()=>{Ui()},wi=$=>{const Ig=I();if(!i.value||!Ig)return;$.preventDefault(),w.value=!1,B.value=!0,yo().then(()=>{aC({preserveHorizontal:!0})});const{from:rg,to:Jg,empty:oI}=Ig.state.selection;if(Wi(Ig,{from:rg,to:Jg}),oI){const HI=Ig.view.coordsAtPos(rg),tI=$.clientX||HI.left,JI=$.clientY||HI.top;p.value=!0,Y.value=new DOMRect(tI,JI,1,Math.max(HI.bottom-HI.top,1)),Ig.chain().focus().run()}else p.value=!1,Y.value=null;aC()},MA=()=>{A.value=!0,l.nextTick(()=>{aC({preserveHorizontal:!0})})},HA=()=>{A.value=!1,l.nextTick(()=>{aC({preserveHorizontal:!0})})},dt=$=>{var Ig;$.run(),$.key==="link"&&!((Ig=I())!=null&&Ig.isActive("link"))&&(A.value=!1),aC({preserveHorizontal:!0})},Ei=$=>{const{from:Ig,to:rg,empty:Jg}=$.state.selection;return Jg?null:{from:Ig,to:rg}},is=($,Ig)=>$.state.doc.textBetween(Ig.from,Ig.to,`
|
|
1788
1788
|
`),Wi=($,Ig)=>{b.value=Ig,h.value=v($,Ig)},Bi=async $=>{var Jg;if(!$)return!1;try{const oI=(Jg=navigator.clipboard)==null?void 0:Jg.writeText;if(oI)return await oI.call(navigator.clipboard,$),!0}catch{}const Ig=document.createElement("textarea");Ig.value=$,Ig.readOnly=!0,Ig.style.position="fixed",Ig.style.top="-9999px",Ig.style.opacity="0",document.body.appendChild(Ig),Ig.select(),Ig.setSelectionRange(0,Ig.value.length);const rg=document.execCommand("copy");return document.body.removeChild(Ig),rg},Ee=async()=>{var $;if(g.readClipboardText)try{return await g.readClipboardText()||""}catch{}try{const Ig=($=navigator.clipboard)==null?void 0:$.readText;return Ig?await Ig.call(navigator.clipboard):""}catch{return""}},yo=async()=>{if(!i.value)return;const $=++X,Ig=await Ee();$===X&&(G.value=Ig||"")},No=($,Ig=b.value)=>{const rg=document.createElement("textarea");rg.readOnly=!1,rg.style.position="fixed",rg.style.top="-9999px",rg.style.opacity="0",document.body.appendChild(rg),rg.focus(),document.execCommand("paste");const Jg=rg.value;return document.body.removeChild(rg),Ig?DI(Ig):$.chain().focus().run(),Jg},Vo=($,Ig)=>{$.chain().focus().setTextSelection(Ig.to).run(),cg()},il=async $=>{const Ig=I();if(!Ig)return;if($==="paste"){const HI=Ei(Ig)||b.value,tI=await Ee()||No(Ig,HI);if(tI){const JI=Ig.chain().focus();HI?JI.insertContentAt(HI,tI).run():JI.insertContent(tI).run(),cg();return}aC({preserveHorizontal:!0});return}const rg=Ei(Ig);if(!rg)return;Wi(Ig,rg);const Jg=is(Ig,rg),oI=await Bi(Jg);if(oI&&$==="cut"){G.value=Jg,Ig.chain().focus().deleteRange(rg).run(),cg();return}else oI?(G.value=Jg,Vo(Ig,rg)):DI(rg);aC({preserveHorizontal:!0})},lg=[{key:"bold",icon:mg.bold,hint:"Жирный",isActive:()=>{var $;return(($=I())==null?void 0:$.isActive("bold"))??!1},run:()=>{var $;return($=re())==null?void 0:$.toggleBold().run()}},{key:"italic",icon:mg.italic,hint:"Курсив",isActive:()=>{var $;return(($=I())==null?void 0:$.isActive("italic"))??!1},run:()=>{var $;return($=re())==null?void 0:$.toggleItalic().run()}},{key:"underline",icon:mg.underline,hint:"Подчёркнутый",isActive:()=>{var $;return(($=I())==null?void 0:$.isActive("underline"))??!1},run:()=>{var $;return($=re())==null?void 0:$.toggleUnderline().run()}},{key:"strike",icon:mg.strikethrough,hint:"Зачёркнутый",isActive:()=>{var $;return(($=I())==null?void 0:$.isActive("strike"))??!1},run:()=>{var $;return($=re())==null?void 0:$.toggleStrike().run()}}],bg=async()=>{var HI,tI,JI;const $=I();if(!$)return;const{from:Ig,to:rg,empty:Jg}=$.state.selection;if(Jg)return;b.value={from:Ig,to:rg},h.value=v($,{from:Ig,to:rg}),s.value=h.value;const oI=(HI=$.getAttributes("link"))==null?void 0:HI.href;o.value=typeof oI=="string"&&oI.trim().length>0?oI:h.value,n.value=!0,A.value=!1,await l.nextTick(),(tI=a.value)==null||tI.focus(),(JI=a.value)==null||JI.select()},Sg=()=>{const $=I();if(!$)return;if($.isActive("orderedList")){$.chain().focus().toggleOrderedList().run();return}const{from:Ig,to:rg,empty:Jg}=$.state.selection;if(Jg){$.chain().focus().toggleOrderedList().run();return}const oI=O($,{from:Ig,to:rg});oI.length&&$.chain().focus().insertContentAt({from:Ig,to:rg},{type:"orderedList",attrs:{start:1},content:oI.map(HI=>({type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:HI}]}]}))}).run()},Kg=[{key:"code",icon:mg.code,hint:"Код",isActive:()=>{var $;return(($=I())==null?void 0:$.isActive("code"))??!1},run:()=>{var $;return($=re())==null?void 0:$.toggleCode().run()}},{key:"link",icon:mg.link,hint:"Ссылка",isActive:()=>{var $;return(($=I())==null?void 0:$.isActive("link"))??!1},run:()=>{const $=I();if($!=null&&$.isActive("link")){$.chain().focus().extendMarkRange("link").unsetLink().run(),HC({preserveHorizontal:!0});return}bg()}},{key:"blockquote",icon:mg.blockquote,hint:"Цитата",isActive:()=>{var $;return(($=I())==null?void 0:$.isActive("orderedList"))??!1},run:Sg}],Ug=$=>{const Ig=$.trim();return Ig?/^(https?:\/\/|mailto:|tel:)/i.test(Ig)?Ig:`https://${Ig}`:""},MI=()=>{const $=I(),Ig=b.value;if(!$||!Ig)return;const rg=s.value.trim()||h.value.trim(),Jg=Ug(o.value);if(!rg){_I();return}$.chain().focus().insertContentAt(Ig,Jg?{type:"text",text:rg,marks:[{type:"link",attrs:{href:Jg,class:"link"}}]}:rg).run();const oI={from:Ig.from,to:Ig.from+rg.length};z(),DI(oI),HC({preserveHorizontal:!0})},_I=()=>{const $=b.value;z(),DI($),HC({preserveHorizontal:!0})},Xt=$=>{const Ig=og($);!$||!Ig||($.on("selectionUpdate",RA),$.on("focus",st),$.on("blur",hi),$.on("transaction",vC),Ig.addEventListener("pointerdown",jC),Ig.addEventListener("touchend",QC,!0),Ig.addEventListener("contextmenu",wi),Ig.addEventListener("keydown",NC),Ig.addEventListener("beforeinput",ot),Ig.addEventListener("input",dC),Ig.ownerDocument.addEventListener("selectionchange",at))},Ze=$=>{var rg;if(!$)return;$.off("selectionUpdate",RA),$.off("focus",st),$.off("blur",hi),$.off("transaction",vC),(rg=og($))==null||rg.removeEventListener("pointerdown",jC);const Ig=og($);Ig==null||Ig.removeEventListener("touchend",QC,!0),Ig==null||Ig.removeEventListener("contextmenu",wi),Ig==null||Ig.removeEventListener("keydown",NC),Ig==null||Ig.removeEventListener("beforeinput",ot),Ig==null||Ig.removeEventListener("input",dC),Ig==null||Ig.ownerDocument.removeEventListener("selectionchange",at)};return l.onMounted(()=>{T(),Xt(I()),window.addEventListener("resize",fC),window.addEventListener("scroll",fC,!0),window.addEventListener("pointerup",Gi,!0)}),l.onBeforeUnmount(()=>{Ze(I()),window.removeEventListener("resize",fC),window.removeEventListener("scroll",fC,!0),window.removeEventListener("pointerup",Gi,!0),y!==null&&cancelAnimationFrame(y),Ue()}),l.watch(()=>I(),($,Ig)=>{Ig!==$&&(Ze(Ig),Xt($),aC())}),($,Ig)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[t.value?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"toolbarRef",ref:e,class:l.normalizeClass(["formatting-toolbar",{"formatting-toolbar--mobile":i.value,"formatting-toolbar--mobile-menu":i.value&&A.value}]),style:l.normalizeStyle(d.value),onPointerdown:pe,onMousedown:Ig[0]||(Ig[0]=l.withModifiers(()=>{},["prevent"]))},[i.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[A.value?(l.openBlock(),l.createElementBlock("div",eeI,[l.createElementVNode("button",{type:"button",class:"formatting-toolbar__mobile-header",onClick:HA},[l.createVNode(Yg,{name:l.unref(mg).arrowLeft,width:20,height:20},null,8,["name"]),Ig[3]||(Ig[3]=l.createElementVNode("span",null,"Форматирование",-1))]),l.createElementVNode("div",teI,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(lg,rg=>l.createElementVNode("button",{key:rg.key,type:"button",class:l.normalizeClass(["formatting-toolbar__mobile-action",{"formatting-toolbar__mobile-action--active":rg.isActive()}]),"aria-label":rg.hint,"aria-pressed":rg.isActive(),role:"menuitemcheckbox",onClick:Jg=>dt(rg)},[l.createVNode(Yg,{class:"formatting-toolbar__mobile-action-icon",name:rg.icon,width:24,height:24},null,8,["name"]),l.createElementVNode("span",null,l.toDisplayString(rg.hint),1)],10,ieI)),64))]),Ig[4]||(Ig[4]=l.createElementVNode("div",{class:"formatting-toolbar__mobile-divider"},null,-1)),l.createElementVNode("div",AeI,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(Kg,rg=>l.createElementVNode("button",{key:rg.key,type:"button",class:l.normalizeClass(["formatting-toolbar__mobile-action",{"formatting-toolbar__mobile-action--active":rg.isActive()}]),"aria-label":rg.hint,"aria-pressed":rg.isActive(),role:"menuitemcheckbox",onClick:Jg=>dt(rg)},[l.createVNode(Yg,{class:"formatting-toolbar__mobile-action-icon",name:rg.icon,width:24,height:24},null,8,["name"]),l.createElementVNode("span",null,l.toDisplayString(rg.hint),1)],10,neI)),64))])])):(l.openBlock(),l.createElementBlock("div",geI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(F.value,(rg,Jg)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:rg.key},[Jg>0?(l.openBlock(),l.createElementBlock("div",IeI)):l.createCommentVNode("",!0),l.createElementVNode("button",{type:"button",class:"formatting-toolbar__mobile-edit-action",onClick:oI=>il(rg.key)},l.toDisplayString(rg.label),9,CeI)],64))),128)),l.createElementVNode("button",{type:"button",class:"formatting-toolbar__mobile-trigger","aria-label":"Форматирование",onClick:MA},[l.createVNode(Yg,{name:l.unref(mg).plus,width:18,height:18},null,8,["name"])])]))],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("div",leI,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(lg,rg=>l.createVNode(Zt,{key:rg.key,hint:rg.hint,position:"top-center"},{default:l.withCtx(()=>[l.createElementVNode("button",{type:"button",class:l.normalizeClass(["formatting-toolbar__button",{"formatting-toolbar__button--active":rg.isActive()}]),"aria-label":rg.hint,onClick:rg.run},[l.createVNode(Yg,{name:rg.icon},null,8,["name"])],10,seI)]),_:2},1032,["hint"])),64))]),Ig[5]||(Ig[5]=l.createElementVNode("div",{class:"formatting-toolbar__divider"},null,-1)),l.createElementVNode("div",oeI,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(Kg,rg=>l.createVNode(Zt,{key:rg.key,hint:rg.hint,position:"top-center"},{default:l.withCtx(()=>[l.createElementVNode("button",{type:"button",class:l.normalizeClass(["formatting-toolbar__button",{"formatting-toolbar__button--active":rg.isActive()}]),"aria-label":rg.hint,onClick:rg.run},[l.createVNode(Yg,{name:rg.icon},null,8,["name"])],10,aeI)]),_:2},1032,["hint"])),64))])],64))],38)):l.createCommentVNode("",!0),n.value?(l.openBlock(),l.createBlock(mB,{key:1,open:n.value,position:"center",width:"min(370px, -45px + 100vw)",height:"auto",class:"formatting-toolbar__link-modal-container",onClose:_I},{default:l.withCtx(()=>[l.createElementVNode("div",deI,[l.createElementVNode("div",ceI,[Ig[6]||(Ig[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:_I},[l.createVNode(Yg,{name:l.unref(mg).crossLarge},null,8,["name"])])]),l.createElementVNode("label",meI,[Ig[7]||(Ig[7]=l.createElementVNode("span",{class:"formatting-toolbar__field-label"},"Текст:",-1)),l.withDirectives(l.createElementVNode("input",{ref_key:"linkTextInputRef",ref:a,"onUpdate:modelValue":Ig[1]||(Ig[1]=rg=>s.value=rg),class:"formatting-toolbar__field-input",type:"text",placeholder:"Важная ссылка",onKeydown:[l.withKeys(l.withModifiers(MI,["prevent"]),["enter"]),l.withKeys(l.withModifiers(_I,["prevent"]),["esc"])]},null,40,reI),[[l.vModelText,s.value]])]),l.createElementVNode("label",ZeI,[Ig[8]||(Ig[8]=l.createElementVNode("span",{class:"formatting-toolbar__field-label"},"Ссылка:",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":Ig[2]||(Ig[2]=rg=>o.value=rg),class:"formatting-toolbar__field-input",type:"text",placeholder:"https://example.com",onKeydown:[l.withKeys(l.withModifiers(MI,["prevent"]),["enter"]),l.withKeys(l.withModifiers(_I,["prevent"]),["esc"])]},null,40,beI),[[l.vModelText,o.value]])]),l.createElementVNode("div",{class:"formatting-toolbar__link-modal-actions"},[l.createElementVNode("button",{type:"button",class:"formatting-toolbar__link-modal-save",onClick:MI}," Сохранить ")])])]),_:1},8,["open"])):l.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d98d2f8e"]]),heI={class:"image-attachment-editor"},GeI={class:"image-attachment-editor__header"},weI={class:"image-attachment-editor__mode-tabs"},WeI={class:"image-attachment-editor__stage-wrap"},BeI={class:"image-attachment-editor__text-layer"},peI=["onPointerdown","onDblclick"],YeI=["data-text-layer-id","value","readonly","onInput","onPointerdown"],yeI=["aria-label","onPointerdown"],NeI=["aria-label","onPointerdown"],VeI={class:"image-attachment-editor__history"},XeI={class:"image-attachment-editor__settings"},ReI={class:"image-attachment-editor__range-label"},MeI={class:"image-attachment-editor__palette"},HeI=["aria-label","onClick"],feI={key:0,class:"image-attachment-editor__swatch-check"},SeI={key:0,class:"image-attachment-editor__swatch-check"},DeI=["value"],keI={class:"image-attachment-editor__actions"},FeI={class:"image-attachment-editor__confirm"},KeI={class:"image-attachment-editor__confirm-actions"},XZ=20,zeI=350,JeI=8,xeI=3,m1=50,r1=24,TeI=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([]),b=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([]),y=l.ref(-1),R=l.ref(null),X=l.ref({width:0,height:0}),K=l.ref(1);let D="",F=0,z=null,v=0,O=null,eg=null,E=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)}%`}),Vg=l.computed(()=>fg(d.value,2,36)),Bg=l.computed(()=>fg(BC.value,18,72)),kg=l.computed(()=>!s.value.startsWith("--")),Rg=l.computed(()=>Z.value.find(gg=>gg.id===b.value)||null),gI=l.computed(()=>y.value>0),qg=l.computed(()=>y.value<Y.value.length-1),UI=l.computed(()=>!!w.value&&Math.abs(w.value.width)>=10&&Math.abs(w.value.height)>=10),BC=l.computed({get:()=>{var gg;return((gg=Rg.value)==null?void 0:gg.fontSize)??m.value},set:gg=>{const j=Number(gg)||m.value,ag=Rg.value;if(!ag){m.value=j;return}ag.fontSize=j}}),yC=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`}:{}}),EI=l.computed(()=>["image/jpeg","image/png","image/webp"].includes(e.file.type)?e.file.type:"image/png"),te=gg=>gg.map(j=>({...j})),oC=gg=>gg.startsWith("--"),re=gg=>oC(gg)?`var(${gg})`:gg,DI=(gg=s.value)=>{if(!oC(gg))return gg;const j=getComputedStyle(document.documentElement).getPropertyValue(gg).trim(),ag=getComputedStyle(document.body).color;return j||ag},HC=()=>{v=Date.now()+450},aC=()=>{v=Date.now()+450},fC=gg=>{const j=gg.target.value.toLowerCase();j&&(o.value=j,a.value=j,Wi(j))},RA=gg=>{fC(gg),HC()},st=()=>{const gg=e.file.name.lastIndexOf("."),j=gg>0?e.file.name.slice(0,gg):e.file.name,ag=EI.value==="image/jpeg"?"jpg":EI.value==="image/webp"?"webp":"png";return`${j||"image"}-edited.${ag}`},vC=()=>{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},PI=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)}},Be=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`}),NC=gg=>gg/Math.max(K.value,.01),ot=gg=>gg*K.value,dC=(gg,j,ag)=>Math.min(Math.max(gg,j),ag),hi=gg=>{const j=i.value;if(!j)return gg;const ag=dC(gg.width,XZ,j.width),yg=dC(gg.height,XZ,j.height),$g=dC(gg.x,0,j.width-ag),bI=dC(gg.y,0,j.height-yg);return{x:$g,y:bI,width:ag,height:yg}},pe=gg=>{const j=i.value;if(!j)return gg;const ag=Math.max(m1,ot(j.width-gg.x)),yg=Math.max(r1,ot(j.height-gg.y)),$g=dC(gg.width,m1,ag),bI=dC(gg.height,r1,yg),VI=dC(gg.x,0,j.width-NC($g)),qI=dC(gg.y,0,j.height-NC(bI));return{...gg,x:VI,y:qI,width:$g,height:bI}},jC=(gg,j,ag,yg)=>{const $g=j.x-ag.x,bI=j.y-ag.y,VI=ot($g),qI=ot(bI),cC={...yg};return gg.includes("left")&&(cC.x=yg.x+$g,cC.width=yg.width-VI),gg.includes("right")&&(cC.width=yg.width+VI),gg.includes("top")&&(cC.y=yg.y+bI,cC.height=yg.height-qI),gg.includes("bottom")&&(cC.height=yg.height+qI),cC.width<m1&&gg.includes("left")&&(cC.x=yg.x+NC(yg.width-m1)),cC.height<r1&&gg.includes("top")&&(cC.y=yg.y+NC(yg.height-r1)),pe(cC)},Gi=(gg,j,ag)=>{const yg=i.value;if(!yg)return ag;const $g=ag.x,bI=ag.y,VI=ag.x+ag.width,qI=ag.y+ag.height;let cC=$g,ze=bI,Ar=VI,nr=qI;return gg.includes("left")&&(cC=dC(j.x,0,VI-XZ)),gg.includes("right")&&(Ar=dC(j.x,$g+XZ,yg.width)),gg.includes("top")&&(ze=dC(j.y,0,qI-XZ)),gg.includes("bottom")&&(nr=dC(j.y,bI+XZ,yg.height)),hi({x:cC,y:ze,width:Ar-cC,height:nr-ze})},Ue=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(),vC())},Ui=()=>{const gg=i.value;return(gg==null?void 0:gg.toDataURL(EI.value,.92))||""},at=()=>{const gg=Ui();return gg?{image:gg,textLayers:te(Z.value)}:null},QC=()=>{const gg=at();if(!gg)return;const j=Y.value[y.value];j&&JSON.stringify(j)===JSON.stringify(gg)||(Y.value=Y.value.slice(0,y.value+1),Y.value.push(gg),y.value=Y.value.length-1)},wi=async gg=>{gg&&(await Ue(gg.image),Z.value=te(gg.textLayers),b.value&&!Z.value.some(j=>j.id===b.value)&&(b.value=null))},MA=async()=>{D&&URL.revokeObjectURL(D),D=URL.createObjectURL(e.file),await l.nextTick(),await Ue(D),Z.value=[],b.value=null,h.value=null,R.value=at(),Y.value=R.value?[R.value]:[],y.value=Y.value.length?0:-1,w.value=null,B.value=null},HA=()=>{const gg=document.activeElement;gg instanceof HTMLTextAreaElement&&gg.blur()},dt=gg=>{n.value=gg,B.value=null,p.value=!1,gg!=="text"&&(HA(),b.value=null,h.value=null,T=null)},Ei=gg=>{b.value=gg.id,s.value=gg.colorToken,m.value=gg.fontSize,dt("text")},is=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))})},Wi=gg=>{s.value=gg,oC(gg)||(o.value=gg);const j=Rg.value;j&&(j.colorToken=gg,j.color=DI(gg),QC())},Bi=()=>{const gg=Rg.value;if(!gg){h.value=null;return}gg.color=DI(gg.colorToken),h.value=null,QC()},Ee=(gg,j)=>{gg.preventDefault(),Ei(j),h.value=j.id,is(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<=zeI&&yg<=NC(JeI)},No=(gg,j)=>{T={id:gg.id,time:Date.now(),point:j}},Vo=gg=>{const j={id:`text-${Date.now()}-${F++}`,text:"",x:gg.x,y:gg.y,width:160,height:48,fontSize:m.value,color:DI(),colorToken:s.value};Z.value=[...Z.value,j],Ei(j),h.value=j.id,QC(),is(j.id)},il=(gg,j)=>{const ag=gg.target;j.text=ag.value,b.value=j.id,QC()},lg=(gg,j)=>{gg.stopPropagation(),Ei(j)},bg=(gg,j)=>{var yg;const ag=PI(gg);if(ag){if(yo(j,ag)){T=null,Ee(gg,j);return}No(j,ag),gg.preventDefault(),h.value=null,(yg=A.value)==null||yg.setPointerCapture(gg.pointerId),Ei(j),E={id:j.id,handle:"move",startPoint:ag,startLayer:{...j},moved:!1}}},Sg=(gg,j,ag)=>{var $g;const yg=PI(gg);yg&&(gg.preventDefault(),h.value=null,($g=A.value)==null||$g.setPointerCapture(gg.pointerId),Ei(j),E={id:j.id,handle:ag,startPoint:yg,startLayer:{...j},moved:!1})},Kg=(gg,j)=>{var $g;const ag=PI(gg),yg=w.value;!ag||!yg||(gg.preventDefault(),b.value=null,h.value=null,($g=A.value)==null||$g.setPointerCapture(gg.pointerId),eg={handle:j,startPoint:ag,startRect:{...yg}})},Ug=(gg,j)=>{const ag=gg.getContext("2d");ag&&(p.value=!0,ag.strokeStyle=DI(),ag.lineWidth=NC(d.value),ag.lineCap="round",ag.lineJoin="round",ag.beginPath(),ag.moveTo(j.x,j.y))},MI=gg=>{var yg,$g;const j=PI(gg),ag=i.value;if(!(!j||!ag)){if(gg.preventDefault(),Date.now()<=v){v=0,b.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"){b.value=null,h.value=null,eg=null,B.value=j,w.value={...j,width:0,height:0};return}if(n.value==="text"){if(b.value){b.value=null,h.value=null,dt("draw"),Ug(ag,j);return}Vo(j);return}b.value=null,h.value=null,n.value==="draw"&&Ug(ag,j)}},_I=gg=>{const j=PI(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)<NC(xeI))return;Ug(ag,O.point),O=null;const bI=ag.getContext("2d");if(!bI)return;bI.lineTo(j.x,j.y),bI.stroke();return}if(eg){const{handle:$g,startPoint:bI,startRect:VI}=eg;if($g==="move"){w.value=hi({...VI,x:VI.x+j.x-bI.x,y:VI.y+j.y-bI.y});return}w.value=Gi($g,j,VI);return}if(E){const $g=Z.value.find(ze=>ze.id===(E==null?void 0:E.id));if(!$g)return;const{handle:bI,startPoint:VI,startLayer:qI}=E,cC=bI==="move"?pe({...qI,x:qI.x+j.x-VI.x,y:qI.y+j.y-VI.y}):jC(bI,j,VI,qI);Object.assign($g,cC),E.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),VI=Math.abs(j.x-B.value.x),qI=Math.abs(j.y-B.value.y);w.value={x:$g,y:bI,width:VI,height:qI};return}if(!p.value||n.value!=="draw")return;const yg=ag.getContext("2d");yg&&(yg.lineTo(j.x,j.y),yg.stroke())},Xt=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(eg){eg=null;return}if(E){E.moved&&QC(),E=null;return}p.value&&(p.value=!1,QC())},Ze=()=>{var cC;const gg=i.value,j=w.value;if(!gg||!j||!UI.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),VI=Math.round(j.y),qI=gg.getContext("2d");qI&&(gg.width=yg,gg.height=$g,qI.clearRect(0,0,yg,$g),qI.drawImage(ag,bI,VI,yg,$g,0,0,yg,$g),Z.value=Z.value.map(ze=>({...ze,x:ze.x-bI,y:ze.y-VI})).filter(ze=>ze.x>=0&&ze.x<=yg&&ze.y>=0&&ze.y<=$g),b.value=null,h.value=null,w.value=null,vC(),QC())},$=()=>{w.value=null,B.value=null,eg=null},Ig=gg=>NC(gg.width),rg=gg=>NC(gg.height),Jg=(gg,j,ag,yg)=>{const $g=Ig(gg),bI=rg(gg);return pe({...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})},oI=gg=>{var VI;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,(VI=yg.getContext("2d"))==null||VI.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(qI=>Jg(qI,gg,$g,bI)),b.value=null,h.value=null,w.value=null,vC(),QC()},HI=async()=>{gI.value&&(y.value-=1,w.value=null,h.value=null,await wi(Y.value[y.value]))},tI=async()=>{qg.value&&(y.value+=1,w.value=null,h.value=null,await wi(Y.value[y.value]))},JI=async()=>{R.value&&(await wi(R.value),Y.value=[R.value],y.value=0,w.value=null,b.value=null,h.value=null)},OC=()=>{G.value=!0},Ye=()=>{G.value=!1},ye=async()=>{Ye(),await JI()},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=NC(yg.fontSize),VI=NC(Math.max(yg.width-8,1)),qI=bI*1.15;ag.fillStyle=yg.color,ag.font=`600 ${bI}px Inter, sans-serif`,ag.textBaseline="top",Ro(ag,$g,VI).forEach((cC,ze)=>{ag.fillText(cC,yg.x,yg.y+ze*qI)})}),j):null},Ro=(gg,j,ag)=>{const yg=[];return j.split(`
|
|
1789
|
-
`).forEach($g=>{const bI=$g.split(" ");let VI="";bI.forEach(qI=>{const cC=VI?`${VI} ${qI}`:qI;if(gg.measureText(cC).width<=ag||!VI){VI=cC;return}yg.push(VI),VI=qI}),yg.push(VI)}),yg},un=()=>{const gg=Xo();gg&&gg.toBlob(j=>{j&&t("apply",new File([j],st(),{type:EI.value,lastModified:Date.now()}))},EI.value,.92)},ib=()=>{b.value&&(Z.value=Z.value.filter(gg=>gg.id!==b.value),b.value=null,h.value=null,QC())},As=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?tI():HI();return}if(j&&yg==="KeyY"){gg.preventDefault(),tI();return}b.value&&gg.key==="Delete"&&!ag&&(gg.preventDefault(),ib())};return l.watch(()=>e.file,MA,{immediate:!0}),l.onMounted(()=>{window.addEventListener("keydown",As,!0),"ResizeObserver"in window&&A.value&&(z=new ResizeObserver(vC),z.observe(A.value))}),l.onBeforeUnmount(()=>{window.removeEventListener("keydown",As,!0),z==null||z.disconnect(),D&&URL.revokeObjectURL(D)}),(gg,j)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",heI,[l.createElementVNode("div",GeI,[j[9]||(j[9]=l.createElementVNode("div",{class:"image-attachment-editor__header-spacer"},null,-1)),l.createElementVNode("div",weI,[l.createVNode(Zt,{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=>dt("crop"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).crop,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","class"])]),_:1}),l.createVNode(Zt,{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=>dt("draw"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).imagePaint,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","class"])]),_:1}),l.createVNode(Zt,{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=>dt("text"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).text,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","class"])]),_:1}),l.createVNode(Zt,{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(mg).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(mg).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:MI,onPointermove:_I,onPointerup:Xt,onPointerleave:Xt},[l.createElementVNode("canvas",{ref_key:"canvasRef",ref:i,class:"image-attachment-editor__canvas"},null,512),l.createElementVNode("div",BeI,[(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===b.value}]),style:l.normalizeStyle(Be(ag)),onPointerdown:l.withModifiers(yg=>bg(yg,ag),["stop"]),onDblclick:l.withModifiers(yg=>Ee(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=>il(yg,ag),onBlur:Bi,onPointerdown:l.withModifiers(yg=>lg(yg,ag),["stop"])},null,42,YeI),ag.id===b.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,peI))),128))]),n.value==="crop"&&w.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"image-attachment-editor__crop-box",style:l.normalizeStyle(yC.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,NeI)),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",VeI,[l.createVNode(Zt,{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:HI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).undo,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","disabled"])]),_:1}),l.createVNode(Zt,{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:tI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).redo,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","disabled"])]),_:1})]),l.createElementVNode("div",XeI,[n.value==="crop"&&!UI.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(Zt,{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=>oI("left"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).reset,width:18,height:18},null,8,["name"])]),_:1},8,["type","size"])]),_:1}),l.createVNode(Zt,{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=>oI("right"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).reset,width:18,height:18},null,8,["name"])]),_:1},8,["type","size"])]),_:1})],64)):l.createCommentVNode("",!0),n.value==="crop"&&UI.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(Zt,{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:Ze},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).crop,width:18,height:18},null,8,["name"])]),_:1},8,["type","size"])]),_:1}),l.createVNode(Zt,{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(mg).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",ReI,[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(Vg.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=>BC.value=ag),type:"range",min:"18",max:"72",style:l.normalizeStyle(Bg.value),onChange:Bi},null,36)),[[l.vModelText,BC.value,void 0,{number:!0}]])]),l.createElementVNode("div",MeI,[(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:re(ag.value)}),"aria-label":ag.label,onClick:yg=>Wi(ag.value)},[s.value===ag.value?(l.openBlock(),l.createElementBlock("span",feI,[l.createVNode(l.unref(I))])):l.createCommentVNode("",!0)],14,HeI))),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:aC},[kg.value?(l.openBlock(),l.createElementBlock("span",SeI,[l.createVNode(l.unref(I))])):l.createCommentVNode("",!0),l.createVNode(Yg,{name:l.unref(mg).colorPicker},null,8,["name"]),l.createElementVNode("input",{type:"color",class:"image-attachment-editor__color-input",value:o.value,"aria-label":"Выбрать цвет",onBlur:HC,onInput:fC,onChange:RA},null,40,DeI)],34)])],64)):l.createCommentVNode("",!0)]),l.createElementVNode("div",keI,[l.createVNode(nI,{type:l.unref(II).primary,size:l.unref(YI).small,class:"image-attachment-editor__apply-button",onClick:un},{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:Ye},{default:l.withCtx(()=>[l.createElementVNode("div",FeI,[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",KeI,[l.createVNode(nI,{type:l.unref(II).outline,size:l.unref(YI).small,class:"image-attachment-editor__confirm-button",onClick:Ye},{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:ye},{default:l.withCtx(()=>[...j[13]||(j[13]=[l.createTextVNode(" Сбросить ",-1)])]),_:1},8,["type","size"])])])]),_:1},8,["open"])):l.createCommentVNode("",!0)],64))}}),LeI={key:0,class:"editor-component-slot"},veI={key:5,class:"right-buttons"},jeI={key:6,class:"toolbar"},QeI={class:"attach-modal"},OeI={class:"attach-modal__header"},UeI={key:1,class:"attach-modal__attachments__all"},EeI={class:"attach-modal__media-groups"},PeI=["src"],_eI=["src","alt"],qeI={key:0,class:"attach-modal__attachments"},$eI={class:"attach-modal__attachment-icon"},gtI={class:"attach-modal__attachment-body"},ItI={class:"attach-modal__attachment-name"},CtI={class:"attach-modal__attachment-name-base"},etI={key:0,class:"attach-modal__attachment-name-ext"},ttI={class:"attach-modal__attachment-size"},itI={key:0,class:"editor-component-slot"},AtI={class:"attach-modal__toolbar"},ntI={class:"attach-modal__toolbar-left"},ltI={class:"camera-selection"},stI={class:"camera-selection-options"},ya="[ContentEditor]",otI="editor-component__mentions-teleport-root",iL="data-editor-mentions-teleport-root",s9=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),b=l.ref(!1),h=l.ref([]),G=l.ref([]),w=l.ref(null),B=l.ref(null),p=l.ref([]),Y=l.ref(null),y=l.ref(null),R=l.ref(0),X=l.ref(null),K=l.ref(null),D=l.ref(0),F=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)&&!F.value}),v=l.computed(()=>e.mentionItems??[]),O=l.computed(()=>e.slashItems??[]),eg=l.computed(()=>!!e.activeSelectUser&&Y.value!==null&&y.value!==Y.value),E=l.computed(()=>!!e.activeSelectSlash&&X.value!==null&&K.value!==X.value),T=l.computed(()=>eg.value?"mention":E.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,Og;return((ug=(tg=e.mentionConfig)==null?void 0:tg.getKey)==null?void 0:ug.call(tg,L,P))??((Og=e.mentionItemKey)==null?void 0:Og.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))??""},Vg=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)},Rg=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,Og;return((ug=(tg=e.slashConfig)==null?void 0:tg.getKey)==null?void 0:ug.call(tg,L,P))??((Og=e.slashItemKey)==null?void 0:Og.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))??""},UI=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))??""},BC=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))??""},yC=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))??""},EI=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},oC=l.computed(()=>T.value==="slash"?D.value:R.value),re=(L,P)=>T.value==="slash"?gI(L,P):og(L,P),DI=L=>T.value==="slash"?qg(L):Wg(L),HC=L=>T.value==="slash"?UI(L):fg(L),aC=L=>T.value==="slash"?BC(L):Vg(L),fC=L=>T.value==="slash"?yC(L):Bg(L),RA=L=>T.value==="slash"?EI(L):kg(L),st=L=>T.value==="slash"?te(L):Rg(L),vC=l.computed(()=>["emoji-picker",`emoji-picker-${A.value.vertical}`,`emoji-picker-${A.value.horizontal}`,z.value?"":"translateX"]),PI=l.computed(()=>[{value:"Фото или видео",function:()=>yg(!0),iconName:mg.image},{value:"Файл",function:()=>yg(!1),iconName:mg.file}]),Be=l.computed(()=>[{value:"Камера",function:Ei,iconName:mg.camera},...PI.value]),NC=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}))]),ot=l.computed(()=>NC.value.filter(L=>L.kind==="file")),dC=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:Ug(L)})).filter(L=>!!L.url)),hi=(L,P)=>{const tg=[];for(let ug=0;ug<L.length;ug+=P)tg.push(L.slice(ug,ug+P));return tg},pe=l.computed(()=>hi(dC.value,10)),jC=l.computed(()=>{if(w.value===null)return null;const L=G.value[w.value];return!L||!Ug(L)?null:{id:`image-editor-${L.name}-${L.lastModified}-${w.value}`,file:L,index:w.value}}),Gi=l.computed(()=>(b.value?a.value:o.value)??null),Ue=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(iL)==="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 Og=document.createElement("div");return Og.className=otI,Og.setAttribute(iL,"true"),P.insertBefore(Og,tg),Og},Ui=l.computed(()=>{const L=Gi.value;return L?Ue(L):"body"}),at=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,""),Og=L.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),mI=ug.match(new RegExp(`${Og}([^\\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=Gi.value;if(!L)return;const P=L.getBoundingClientRect(),tg=12,ug=b.value?10:3,Og=Math.min(P.width,window.innerWidth-tg*2),mI=window.innerWidth-Og-tg,Pi=Math.min(Math.max(P.left,tg),mI);m.value={left:`${Pi}px`,bottom:`${window.innerHeight-P.top+ug}px`,width:`${Og}px`}},wi=L=>{if(T.value==="slash"){D.value=L;return}R.value=L},MA=()=>{l.nextTick(()=>{const L=d.value,P=Gi.value;if(!L||!P)return;const tg=L.querySelector('[data-mention-active="true"]');if(!(tg instanceof HTMLElement))return;const ug=L.firstElementChild??L,Og=ug.getBoundingClientRect(),mI=P.getBoundingClientRect(),Pi=8,hn=Math.max(Og.bottom-mI.top,0)+8,Yd=tg.offsetTop,Gn=Yd+tg.offsetHeight,Je=ug.scrollTop+Pi,R2=ug.scrollTop+ug.clientHeight-hn;if(Yd<Je){ug.scrollTop=Math.max(Yd-Pi,0);return}Gn>R2&&(ug.scrollTop=Gn-ug.clientHeight+hn)})},HA=()=>window.innerWidth<=480,dt=()=>window.innerWidth<=480&&window.matchMedia("(hover: none) and (pointer: coarse)").matches,Ei=()=>{Z.value=!0},is=()=>{Z.value=!1},Wi=L=>{Z.value=!1,yg(!0,L)};let Bi=!1,Ee=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"},No={"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"},Vo=new Set(["image/png","image/jpeg","image/jpg","image/webp","image/bmp","image/x-ms-bmp"]),il=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=il(L.name);return yo[P]??""},bg=(L,P)=>{const tg=L.name.trim(),ug=No[P],Og=!!il(tg);if(!tg){const mI=P.startsWith("image/")?"image":P.startsWith("video/")?"video":"file";return ug?`${mI}-${Date.now()}.${ug}`:`${mI}-${Date.now()}`}return Og||!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/"),Ug=L=>Vo.has(lg(L)),MI=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}},_I=L=>{const P=new DataTransfer;return L.forEach(tg=>P.items.add(tg)),P.files},Xt=async(L,P)=>{console.warn(`${ya} emitAttachFiles called`,{inputCount:Array.from(L).length,onlyMedia:P});const tg=await Promise.all(Array.from(L,MI));if(!tg.length){console.warn(`${ya} no files after normalization`);return}const ug=P??tg.every(Og=>{const mI=lg(Og);return mI.startsWith("image/")||mI.startsWith("video/")});console.warn(`${ya} emit normalized files`,{files:tg.map(Og=>Sg(Og)),isOnlyMedia:ug}),n("unmount-attach-file",_I(tg),ug)},Ze=async(L,P)=>{const tg=await Promise.all(Array.from(L,MI));if(tg.length){if(P){const ug=tg.filter(mI=>Kg(lg(mI))),Og=tg.filter(mI=>!Kg(lg(mI)));ug.length&&(G.value=[...G.value,...ug]),Og.length&&(h.value=[...h.value,...Og])}else h.value=[...h.value,...tg];b.value=!0}},$=()=>{h.value=[],G.value=[],w.value=null},Ig=()=>{Bd(),b.value=!1,$()},rg=(L,P)=>{if(L==="media"){const ug=G.value.filter((Og,mI)=>mI!==P);G.value=ug,w.value=null,!ug.length&&!h.value.length&&Ig();return}const tg=h.value.filter((ug,Og)=>Og!==P);h.value=tg,!tg.length&&!G.value.length&&Ig()},Jg=L=>{L.canEdit&&(Bd(),w.value=L.index)},oI=()=>{w.value=null},HI=L=>{if(w.value===null)return;const P=[...G.value];P[w.value]=L,G.value=P,oI()},tI=async(L,P)=>{var ug;const tg=L.target;(ug=tg.files)!=null&&ug.length&&(await Ze(tg.files,P),tg.value="")},JI=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)},Ye=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 ye=Ki.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",De(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$/,un=/^(\d+)\.\s$/,ib=(L,P)=>{const tg=L.lastIndexOf(`
|
|
1790
|
-
`);if(tg===-1)return null;const ug=L.slice(tg+1),Og=ug.match(P);return Og?{index:tg+1,text:ug,data:{match:Og}}:null},As=({listTypeName:L,find:P,getAttributes:tg})=>new rh({find:P,handler:({state:ug,range:Og,match:mI})=>{var ab,Q1;const Pi=ug.schema.nodes[L];if(!Pi)return null;const pd=Og.from,hn=pd-1;if(((ab=ug.doc.resolve(pd).nodeBefore)==null?void 0:ab.type.name)!=="hardBreak")return null;const Gn=(tg==null?void 0:tg((Q1=mI.data)==null?void 0:Q1.match))??{};let Je=ug.tr.delete(Og.from,Og.to);Je=Je.delete(hn,hn+1);try{Je=Je.split(hn)}catch{return null}const R2=Math.min(hn+2,Je.doc.content.size),M2=Je.doc.resolve(R2).blockRange(),j1=M2&&jB(M2,Pi,Gn);if(!j1)return null;Je=Je.wrap(M2,j1);const w9=Math.min(hn+4,Je.doc.content.size);Je=Je.setSelection(sI.near(Je.doc.resolve(w9)))}}),gg=Ie.create({name:"contentEditorListInputRules",addInputRules(){const L=this.editor.schema.nodes.bulletList;return L?[Nc({find:Xo,type:L}),As({listTypeName:"bulletList",find:P=>ib(P,Ro)}),As({listTypeName:"orderedList",find:P=>ib(P,un),getAttributes:P=>({start:Number(P[1])})})]:[]}}),j=Cqg({extensions:[NgI.configure({link:!1,heading:!1,blockquote:!1,codeBlock:!1}),i$g.configure({openOnClick:!1,HTMLAttributes:{class:"link"}}),VgI.configure({placeholder:"Начните печатать...",emptyEditorClass:"is-editor-empty"}),ye,gg],content:t.value,editorProps:{handlePaste(L,P){const tg=P.clipboardData;return tg&&tg.files.length>0&&e.activeAttachFile?(P.preventDefault(),P.stopPropagation(),Bi||(Bi=!0,Ze(tg.files,!0),setTimeout(()=>{Bi=!1},200)),!0):!1}},onUpdate:({editor:L})=>{t.value=L.getHTML();const P=e.activeSelectUser?at("@"):null,tg=e.activeSelectSlash?at("/"):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,y.value=null,n("mention-change",null)):(Y.value=null,y.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}oC.value>=L.length&&wi(L.length-1),q.value&&l.nextTick(()=>{QC(),MA()})}),l.watch([R,D],()=>{q.value&&l.nextTick(()=>{QC(),MA()})}),l.watch(q,L=>{if(!L){R.value=0,D.value=0,m.value={};return}T.value==="slash"?K.value=null:y.value=null,l.nextTick(()=>{QC(),MA()})}),l.watch(()=>b.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(HA()){Xt(tg.files,L||!!P);return}Ze(tg.files,L)}},tg.click()},$g=L=>{console.warn(`${ya} fileDropped event received`,L.files.map(P=>Sg(P))),Ze(L.files,L.onlyMedia)},bI=()=>{j!=null&&j.value&&(n("unmount-send",{content:j.value.getHTML(),files:h.value.length?_I(h.value):void 0,mediaFiles:G.value.length?_I(G.value):void 0}),b.value=!1,$(),Bd(),j.value.chain().focus())},VI=()=>{if(j!=null&&j.value){if(F.value){bI();return}n("unmount-send",{content:j.value.getHTML()}),j.value.chain().focus()}},qI=(L,P)=>{if(!(j!=null&&j.value))return;const tg=at("@");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=at(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()},ze=()=>{Y.value=null,y.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,Og,mI;const P=((ug=e.mentionConfig)==null?void 0:ug.getInsertLabel)??e.mentionInsertLabel;if(!P)return;const tg=P(L);tg&&(qI(tg,(mI=((Og=e.mentionConfig)==null?void 0:Og.getInsertAttrs)??e.mentionInsertAttrs)==null?void 0:mI(L)),ze())},T1=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"){T1(L);return}nr(L)},L1=()=>{if(!(j!=null&&j.value))return;const L=at("@");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=at("/");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(),Og=window.innerWidth,mI=window.innerHeight;A.value.vertical=ug.bottom+tg>mI?"top":"bottom",A.value.horizontal=ug.left+P>Og?"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,Og=-1;for(let Gn=tg.depth;Gn>0;Gn-=1){const Je=tg.node(Gn);if(ug===-1&&Je.type.name==="listItem"&&(ug=Gn),Je.type.name==="orderedList"){Og=Gn;break}}if(ug===-1||Og===-1)return null;const mI=tg.node(Og),Pi=tg.node(ug),pd=tg.index(Og),hn=tg.after(Og),Yd=tg.parent.isTextblock&&tg.parentOffset===tg.parent.content.size&&tg.index(ug)===Pi.childCount-1;return{cursorPos:tg.pos,docSize:P.content.size,isLastItem:pd===mI.childCount-1,isAtEndOfItem:Yd,orderedListAfter:hn}},G9=()=>{if(!j.value)return;const L=lb();if(!L)return;const{state:P,view:tg}=j.value,ug=L.orderedListAfter,Og=P.doc.resolve(ug).nodeAfter;let mI=P.tr;if(!Og||Og.type.name!=="paragraph"){const Pi=P.schema.nodes.paragraph.create();mI=mI.insert(ug,Pi)}mI=mI.setSelection(sI.near(mI.doc.resolve(ug+1))),tg.dispatch(mI.scrollIntoView()),tg.focus()},v1=()=>{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"&&(Ee=null),q.value){if(L.key==="Escape"){L.preventDefault(),L.stopPropagation(),T.value==="slash"?K.value=X.value:y.value=Y.value;return}if(L.key==="Enter"){L.preventDefault(),L.stopPropagation(),oC.value>=0&&oC.value<cg.value.length&&Ab(cg.value[oC.value]);return}if(cg.value.length&&(L.key==="ArrowDown"||L.key==="ArrowUp")){L.preventDefault(),L.stopPropagation();const tg=L.key==="ArrowDown"?1:-1;wi((oC.value+tg+cg.value.length)%cg.value.length);return}}if(L.key==="Enter"&&L.shiftKey&&!(L.ctrlKey||L.metaKey)&&v1()){L.preventDefault(),L.stopPropagation(),Ee=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();Ee&&Ee.pos===tg.cursorPos&&ug-Ee.timestamp<1200?(Ee=null,G9()):Ee={pos:tg.cursorPos,timestamp:ug};return}Ee=null}!e.disableSendOnEnter&&L.key==="Enter"&&L.code&&!(L.shiftKey||L.ctrlKey||L.metaKey)&&(L.preventDefault(),L.stopPropagation(),VI())}},ob=L=>{dt()&&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:qI,focus:nb,editor:j,emitAttachFiles:Xt,queueAttachFiles:Ze}),(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&&!b.value?(l.openBlock(),l.createElementBlock("div",LeI,[l.renderSlot(L.$slots,"action")])):l.createCommentVNode("",!0),e.activeAttachFile?(l.openBlock(),l.createBlock(tZ,{key:1,isWCUse:"",options:Be.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(mg).paperClip},null,8,["name"])]),_:1},8,["type","size"])]),_:1},8,["options"])):l.createCommentVNode("",!0),b.value?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref(dx),{key:2,class:"editor-content",editor:l.unref(j)},null,8,["editor"])),b.value?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l9,{key:3,editor:l.unref(j)||null,"read-clipboard-text":e.readClipboardText},null,8,["editor","read-clipboard-text"])),e.activeAttachFile&&!b.value?(l.openBlock(),l.createBlock(tL,{key:4,onFilesDropped:$g})):l.createCommentVNode("",!0),b.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",veI,[l.renderSlot(L.$slots,"mobile-right-action"),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(mg).smile},null,8,["name"]),l.withDirectives(l.createElementVNode("div",{onClick:P[0]||(P[0]=l.withModifiers(()=>{},["stop"])),class:l.normalizeClass(vC.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:VI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).planeRightFill,width:22,height:22,class:"content-editor__save"},null,8,["name"])]),_:1},8,["type","size"]),[[l.vShow,!z.value]])])),b.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",jeI,[e.activeAttachFile?(l.openBlock(),l.createBlock(tZ,{key:0,isWCUse:"",options:PI.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(mg).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(mg).smile,width:16,height:16},null,8,["name"]),l.withDirectives(l.createElementVNode("div",{onClick:P[1]||(P[1]=l.withModifiers(()=>{},["stop"])),class:l.normalizeClass(vC.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:L1},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).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(mg).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:VI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).planeRight,color:l.unref(Jh).white,width:16,height:16},null,8,["name","color"])]),_:1},8,["disabled","size"])])),b.value?(l.openBlock(),l.createBlock(mB,{key:7,open:b.value,onClose:Ig,"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",QeI,[l.createVNode(tL,{onFilesDropped:$g}),jC.value?(l.openBlock(),l.createBlock(TeI,{key:jC.value.id,file:jC.value.file,onApply:HI,onClose:oI},null,8,["file"])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",OeI,[l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(YI).small,class:"attach-modal__close",onClick:Ig},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).crossLarge},null,8,["name"])]),_:1},8,["type","size"])],512),[[l.vShow,!jC.value]]),pe.value.length>0||ot.value.length>0?l.withDirectives((l.openBlock(),l.createElementBlock("div",UeI,[l.createElementVNode("div",EeI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(pe.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,Og=>(l.openBlock(),l.createElementBlock("div",{key:Og.id,class:l.normalizeClass(["attach-modal__media-tile",{"attach-modal__media-tile--editable":Og.canEdit}])},[Og.isVideo?(l.openBlock(),l.createElementBlock("video",{key:0,draggable:"false",src:Og.url,muted:"",playsinline:""},null,8,PeI)):(l.openBlock(),l.createElementBlock("img",{key:1,draggable:"false",src:Og.url,alt:Og.file.name},null,8,_eI)),Og.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=>Jg(Og),["stop"])},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).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=>rg("media",Og.index),["stop"])},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).trash,width:16,height:16},null,8,["name"])]),_:1},8,["type","size","onClick"])],2))),128))],2))),128)),ot.value.length?(l.openBlock(),l.createElementBlock("div",qeI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(ot.value,tg=>(l.openBlock(),l.createElementBlock("div",{key:tg.id,class:"attach-modal__attachment"},[l.createElementVNode("div",$eI,[l.createVNode(Yg,{name:l.unref(mg).fileItem,width:18,height:18},null,8,["name"])]),l.createElementVNode("div",gtI,[l.createElementVNode("div",ItI,[l.createElementVNode("span",CtI,l.toDisplayString(OC(tg.file.name)),1),Ye(tg.file.name)?(l.openBlock(),l.createElementBlock("span",etI,l.toDisplayString(Ye(tg.file.name)),1)):l.createCommentVNode("",!0)]),l.createElementVNode("div",ttI,l.toDisplayString(JI(tg.file.size)),1)]),l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(YI).small,class:"attach-modal__attachment-remove",onClick:ug=>rg(tg.kind,tg.index)},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).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",itI,[l.renderSlot(L.$slots,"action")])):l.createCommentVNode("",!0),l.createVNode(l.unref(dx),{class:"editor-content",editor:l.unref(j)},null,8,["editor"]),l.createElementVNode("div",AtI,[l.createElementVNode("div",ntI,[l.createVNode(tZ,{isWCUse:"",disabled:!e.activeAttachFile,options:PI.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(mg).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(mg).smile,width:16,height:16},null,8,["name"]),l.withDirectives(l.createElementVNode("div",{onClick:P[2]||(P[2]=l.withModifiers(()=>{},["stop"])),class:l.normalizeClass(vC.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:L1},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).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(mg).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(mg).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=>tI(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=>tI(tg,!0))},null,544)],2),(l.openBlock(),l.createBlock(l.Teleport,{to:Ui.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":oC.value,variant:T.value||"mention","is-fixed":"","position-style":m.value,"get-key":re,"get-label":DI,"get-subtitle":HC,"get-avatar-url":aC,"get-avatar-default-image":fC,"get-avatar-initials":RA,"get-is-online":st,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(is,["self"])},[l.createElementVNode("div",ltI,[l.createElementVNode("div",stI,[l.createVNode(nI,{type:l.unref(II).primary,onClick:P[5]||(P[5]=tg=>Wi("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=>Wi("video")),class:"camera-selection-item"},{default:l.withCtx(()=>[...P[8]||(P[8]=[l.createTextVNode(" Записать видео ",-1)])]),_:1},8,["type"])])])])):l.createCommentVNode("",!0)]),_:1})]))],64))}}),atI=["id","aria-selected","onMousedown","onMouseenter"],dtI=["innerHTML"],ctI={class:"content-editor-slash-menu__label"},mtI={key:0,class:"content-editor-slash-menu__empty",role:"status"},AL=vg(l.defineComponent({__name:"ContentEditorSlashMenu",props:{id:{default:"content-editor-slash-menu"},items:{},activeIndex:{default:0},positionStyle:{default:()=>({})},emptyText:{default:"Нет результатов"}},emits:["select","update:activeIndex"],setup(C,{emit:g}){const I=g;return(e,t)=>(l.openBlock(),l.createElementBlock("div",{class:"content-editor-slash-menu",style:l.normalizeStyle(C.positionStyle),role:"listbox","aria-label":"Команды редактора",onMousedown:t[0]||(t[0]=l.withModifiers(()=>{},["prevent"]))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(C.items,(i,A)=>(l.openBlock(),l.createElementBlock("button",{id:`${C.id}-option-${i.id}`,key:i.id,type:"button",class:l.normalizeClass(["content-editor-slash-menu__item",{"content-editor-slash-menu__item--active":C.activeIndex===A}]),role:"option","aria-selected":C.activeIndex===A,onMousedown:l.withModifiers(n=>I("select",A),["prevent"]),onMouseenter:n=>I("update:activeIndex",A)},[i.icon?(l.openBlock(),l.createElementBlock("span",{key:0,class:"content-editor-slash-menu__icon","aria-hidden":"true",innerHTML:i.icon},null,8,dtI)):l.createCommentVNode("",!0),l.createElementVNode("span",ctI,l.toDisplayString(i.label),1)],42,atI))),128)),C.items.length===0?(l.openBlock(),l.createElementBlock("div",mtI,l.toDisplayString(C.emptyText),1)):l.createCommentVNode("",!0)],36))}}),[["__scopeId","data-v-ec1705fb"]]),rtI=["data-testid"],ZtI=["data-testid"],Na="[Cropper][BaseCropper]",btI=vg(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&&b(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:F}=A.value.getBoundingClientRect();i.value&&(i.value.width=D,i.value.height=F),n.image&&a()}},a=()=>{if(n.image){const D=n.ctx,F=i.value;D&&F&&(D.clearRect(0,0,F.width,F.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(F=>setTimeout(F,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)}),b=D=>{const F=m(D)?6:3;let z=0;console.warn(`${Na} loadImage start`,{...Z(D),maxRetries:F});const v=new FileReader;v.onload=async O=>{var eg;console.warn(`${Na} FileReader load success`,{...Z(D),attempt:z+1}),typeof((eg=O.target)==null?void 0:eg.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 E=i.value.width,T=i.value.height,q=n.image.width/n.image.height,cg=E/T;q>cg?(n.image.width=E,n.image.height=E/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:F,error:v.error}),z>=F){try{console.warn(`${Na} fallback to detached file`,Z(D));const eg=await D.arrayBuffer(),E=new File([eg],D.name,{type:D.type||"application/octet-stream",lastModified:D.lastModified});z+=1,console.warn(`${Na} retry readAsDataURL with detached file`,{...Z(E),attempt:z+1}),v.readAsDataURL(E)}catch(eg){console.error("Failed to load cropper image",{fileName:D.name,error:eg})}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 F=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?F=Math.min(Math.max(F,0),i.value.width-n.image.width*n.scale):(F>0&&(F=0),F<v&&(F=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=F,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 F=i.value.width/2,z=i.value.height/2;n.position.x=F-(F-n.position.x)*D,n.position.y=z-(z-n.position.y)*D}},Y=D=>{const F=n.scale,z=n.scale+D.deltaY*-.001;if(F===B(z))return;n.scale=B(z);const v=z/F;p(v),t("unmount-scale",n.scale),a()};return g({cropImage:()=>{if(A.value){const{width:D,height:F}=A.value.getBoundingClientRect(),z=document.createElement("canvas");z.width=D,z.height=F;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"),eg=atob(O.split(",")[1]),E=new ArrayBuffer(eg.length),T=new Uint8Array(E);for(let cg=0;cg<eg.length;cg++)T[cg]=eg.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 F=n.scale,v=D/F;n.scale=B(D),p(v),a()},startMove:h,scaleImage:Y}),l.onMounted(()=>{s(),e.image&&b(e.image)}),(D,F)=>(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,ZtI)],8,rtI))}}),[["__scopeId","data-v-3f2c26f6"]]),utI=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}},htI=(C,g)=>new File([C],g,{type:C.type}),GtI=["data-testid"],wtI=["data-testid"],WtI=["data-testid"],BtI=["data-testid"],ptI=["data-testid"],YtI=["data-testid"],o9=vg(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}=utI({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},b=()=>{n.value=n.value+A},h=()=>{if(o.value){const G=o.value.cropImage();if(G){const w=G.name,B=htI(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,wtI),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(btI,{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(mg).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(mg).plus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-IconPlus`,onClick:b},null,8,["name","data-testid"])],8,ptI)],8,BtI),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,YtI)],8,WtI)],8,GtI)]),_:1},16,["data-testid"]))}}),[["__scopeId","data-v-493bb651"]]),a9={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)}})}},ytI=["src"],d9=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,b=m;i.rotate%180!==0&&(Z=m,b=d),A.value.width=Z,A.value.height=b,a.save(),a.clearRect(0,0,Z,b),a.translate(Z/2,b/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(Zs)},null,8,ytI)):(l.openBlock(),l.createElementBlock("canvas",{key:0,ref_key:"canvasRef",ref:A,class:"image-preview"},null,512))}}),nL={Accordion:GV,Badges:Ht,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:F7g,Radio:LX,Tooltip:Zt,BaseFilter:vX,Range:HB,Tabs:UX,ContentEditor:s9,ModalCroppedAvatar:o9,Avatar:Ju,TimePicker:GW,SliderModal:hB,PdfPreview:ws,ImagePreview:d9,VideoPreview:Su,Skeleton:RB},lL=Object.freeze(Object.defineProperty({__proto__:null,Accordion:GV,Avatar:Ju,Badges:Ht,BadgesTypeEnum:QI,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:s9,ContentEditorFormattingToolbar:l9,ContentEditorSlashMenu:AL,CopyIcon:KX,Dialog:hW,DragAndDrop:wV,Dropdown:iN,Filter:BV,FilterTag:zX,HeadTableRow:xu,HeadTableRowNew:fB,Icon:Yg,IconNameEnum:mg,ImageExtensionsEnum:mu,ImagePreview:d9,Input:HW,InputNumber:ou,InputTypeEnum:pV,Loader:ku,MenuTypeEnum:ZC,MessageTypeEnum:XB,Modal:fu,ModalCroppedAvatar:o9,PdfPreview:ws,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:Zt,UserMenu:fX,VideoExtensionsEnum:ru,VideoPreview:Su,default:{install:C=>{Object.keys(nL).forEach(g=>{C.component("Y"+g,nL[g])})}},getFirstTime:Zk,getLastTime:XW,vuePluginRemoveTestid:a9},Symbol.toStringTag,{value:"Module"})),NtI={install(C){for(const g in lL){const I=lL[g];C.use(I).use(a9,{enabled:!1})}}};ig.Accordion=GV,ig.Avatar=Ju,ig.Badges=Ht,ig.BadgesTypeEnum=QI,ig.BaseFilter=vX,ig.BreadCrumbs=wy,ig.Button=nI,ig.ButtonTypeEnum=II,ig.Calendar=hV,ig.Card=WV,ig.Checkbox=RX,ig.CheckboxCircularEnum=NB,ig.CheckboxSizeEnum=yB,ig.CircularProgress=JX,ig.ColorsEnum=Jh,ig.Combobox=YV,ig.ContentEditor=s9,ig.ContentEditorFormattingToolbar=l9,ig.ContentEditorSlashMenu=AL,ig.CopyIcon=KX,ig.Dialog=hW,ig.DragAndDrop=wV,ig.Dropdown=iN,ig.Filter=BV,ig.FilterTag=zX,ig.HeadTableRow=xu,ig.HeadTableRowNew=fB,ig.Icon=Yg,ig.IconNameEnum=mg,ig.ImageExtensionsEnum=mu,ig.ImagePreview=d9,ig.Input=HW,ig.InputNumber=ou,ig.InputTypeEnum=pV,ig.Loader=ku,ig.MenuTypeEnum=ZC,ig.MessageTypeEnum=XB,ig.Modal=fu,ig.ModalCroppedAvatar=o9,ig.OnClickOutside=j6,ig.OnLongPress=P6,ig.PdfPreview=ws,ig.Picture=kX,ig.Popover=tZ,ig.PushNotification=FX,ig.Radio=LX,ig.Range=HB,ig.Scroll=XX,ig.ScrollWrapper=Tu,ig.Search=du,ig.SectionTableRow=TX,ig.SelectList=Mr,ig.SizesEnum=YI,ig.Skeleton=RB,ig.Slider=VX,ig.SliderModal=hB,ig.Switch=Nw,ig.Table=xX,ig.TableNew=jX,ig.TableRow=MB,ig.TableRowNew=QX,ig.TableSimple=OX,ig.TableTd=Lu,ig.TableTh=iZ,ig.Tabs=UX,ig.TextFieldEnum=MW,ig.Textarea=SX,ig.TextareaTypeEnum=VB,ig.TimePicker=GW,ig.Toggle=wB,ig.Tooltip=Zt,ig.UseActiveElement=_6,ig.UseBattery=q6,ig.UseBrowserLocation=$6,ig.UseClipboard=g8,ig.UseColorMode=a8,ig.UseDark=d8,ig.UseDeviceMotion=c8,ig.UseDeviceOrientation=m8,ig.UseDevicePixelRatio=r8,ig.UseDevicesList=Z8,ig.UseDocumentVisibility=b8,ig.UseDraggable=u8,ig.UseElementBounding=h8,ig.UseElementSize=w8,ig.UseElementVisibility=p8,ig.UseEyeDropper=y8,ig.UseFullscreen=N8,ig.UseGeolocation=V8,ig.UseIdle=X8,ig.UseImage=f8,ig.UseMouse=k8,ig.UseMouseInElement=F8,ig.UseMousePressed=K8,ig.UseNetwork=z8,ig.UseNow=J8,ig.UseObjectUrl=x8,ig.UseOffsetPagination=T8,ig.UseOnline=L8,ig.UsePageLeave=v8,ig.UsePointer=j8,ig.UsePointerLock=Q8,ig.UsePreferredColorScheme=O8,ig.UsePreferredContrast=U8,ig.UsePreferredDark=E8,ig.UsePreferredLanguages=P8,ig.UsePreferredReducedMotion=_8,ig.UseScreenSafeArea=I_,ig.UseTimeAgo=n_,ig.UseTimestamp=l_,ig.UseVirtualList=s_,ig.UseWindowFocus=o_,ig.UseWindowSize=a_,ig.UserMenu=fX,ig.VOnClickOutside=To,ig.VOnLongPress=y3,ig.VideoExtensionsEnum=ru,ig.VideoPreview=Su,ig.VueToolsCore=v6,ig.arrow=PLg,ig.autoPlacement=ok,ig.autoUpdate=lk,ig.computePosition=ak,ig.default=NtI,ig.detectOverflow=xLg,ig.flip=LLg,ig.getFirstTime=Zk,ig.getLastTime=XW,ig.getOverflowAncestors=vr,ig.hide=jLg,ig.inline=OLg,ig.limitShift=ULg,ig.offset=sk,ig.platform=Ak,ig.shift=TLg,ig.size=vLg,ig.useFloating=mk,ig.useSearch=bk,ig.vElementHover=G8,ig.vElementSize=B8,ig.vElementVisibility=Y8,ig.vInfiniteScroll=S8,ig.vIntersectionObserver=D8,ig.vOnClickOutside=To,ig.vOnKeyStroke=O6,ig.vOnLongPress=y3,ig.vResizeObserver=q8,ig.vScroll=C_,ig.vScrollLock=A_,ig.vuePluginRemoveTestid=a9,Object.defineProperties(ig,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1789
|
+
`).forEach($g=>{const bI=$g.split(" ");let VI="";bI.forEach(qI=>{const cC=VI?`${VI} ${qI}`:qI;if(gg.measureText(cC).width<=ag||!VI){VI=cC;return}yg.push(VI),VI=qI}),yg.push(VI)}),yg},un=()=>{const gg=Xo();gg&&gg.toBlob(j=>{j&&t("apply",new File([j],st(),{type:EI.value,lastModified:Date.now()}))},EI.value,.92)},ib=()=>{b.value&&(Z.value=Z.value.filter(gg=>gg.id!==b.value),b.value=null,h.value=null,QC())},As=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?tI():HI();return}if(j&&yg==="KeyY"){gg.preventDefault(),tI();return}b.value&&gg.key==="Delete"&&!ag&&(gg.preventDefault(),ib())};return l.watch(()=>e.file,MA,{immediate:!0}),l.onMounted(()=>{window.addEventListener("keydown",As,!0),"ResizeObserver"in window&&A.value&&(z=new ResizeObserver(vC),z.observe(A.value))}),l.onBeforeUnmount(()=>{window.removeEventListener("keydown",As,!0),z==null||z.disconnect(),D&&URL.revokeObjectURL(D)}),(gg,j)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",heI,[l.createElementVNode("div",GeI,[j[9]||(j[9]=l.createElementVNode("div",{class:"image-attachment-editor__header-spacer"},null,-1)),l.createElementVNode("div",weI,[l.createVNode(Zt,{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=>dt("crop"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).crop,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","class"])]),_:1}),l.createVNode(Zt,{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=>dt("draw"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).imagePaint,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","class"])]),_:1}),l.createVNode(Zt,{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=>dt("text"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).text,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","class"])]),_:1}),l.createVNode(Zt,{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(mg).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(mg).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:MI,onPointermove:_I,onPointerup:Xt,onPointerleave:Xt},[l.createElementVNode("canvas",{ref_key:"canvasRef",ref:i,class:"image-attachment-editor__canvas"},null,512),l.createElementVNode("div",BeI,[(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===b.value}]),style:l.normalizeStyle(Be(ag)),onPointerdown:l.withModifiers(yg=>bg(yg,ag),["stop"]),onDblclick:l.withModifiers(yg=>Ee(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=>il(yg,ag),onBlur:Bi,onPointerdown:l.withModifiers(yg=>lg(yg,ag),["stop"])},null,42,YeI),ag.id===b.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,peI))),128))]),n.value==="crop"&&w.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"image-attachment-editor__crop-box",style:l.normalizeStyle(yC.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,NeI)),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",VeI,[l.createVNode(Zt,{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:HI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).undo,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","disabled"])]),_:1}),l.createVNode(Zt,{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:tI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).redo,width:18,height:18},null,8,["name"])]),_:1},8,["type","size","disabled"])]),_:1})]),l.createElementVNode("div",XeI,[n.value==="crop"&&!UI.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(Zt,{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=>oI("left"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).reset,width:18,height:18},null,8,["name"])]),_:1},8,["type","size"])]),_:1}),l.createVNode(Zt,{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=>oI("right"))},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).reset,width:18,height:18},null,8,["name"])]),_:1},8,["type","size"])]),_:1})],64)):l.createCommentVNode("",!0),n.value==="crop"&&UI.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(Zt,{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:Ze},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).crop,width:18,height:18},null,8,["name"])]),_:1},8,["type","size"])]),_:1}),l.createVNode(Zt,{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(mg).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",ReI,[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(Vg.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=>BC.value=ag),type:"range",min:"18",max:"72",style:l.normalizeStyle(Bg.value),onChange:Bi},null,36)),[[l.vModelText,BC.value,void 0,{number:!0}]])]),l.createElementVNode("div",MeI,[(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:re(ag.value)}),"aria-label":ag.label,onClick:yg=>Wi(ag.value)},[s.value===ag.value?(l.openBlock(),l.createElementBlock("span",feI,[l.createVNode(l.unref(I))])):l.createCommentVNode("",!0)],14,HeI))),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:aC},[kg.value?(l.openBlock(),l.createElementBlock("span",SeI,[l.createVNode(l.unref(I))])):l.createCommentVNode("",!0),l.createVNode(Yg,{name:l.unref(mg).colorPicker},null,8,["name"]),l.createElementVNode("input",{type:"color",class:"image-attachment-editor__color-input",value:o.value,"aria-label":"Выбрать цвет",onBlur:HC,onInput:fC,onChange:RA},null,40,DeI)],34)])],64)):l.createCommentVNode("",!0)]),l.createElementVNode("div",keI,[l.createVNode(nI,{type:l.unref(II).primary,size:l.unref(YI).small,class:"image-attachment-editor__apply-button",onClick:un},{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:Ye},{default:l.withCtx(()=>[l.createElementVNode("div",FeI,[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",KeI,[l.createVNode(nI,{type:l.unref(II).outline,size:l.unref(YI).small,class:"image-attachment-editor__confirm-button",onClick:Ye},{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:ye},{default:l.withCtx(()=>[...j[13]||(j[13]=[l.createTextVNode(" Сбросить ",-1)])]),_:1},8,["type","size"])])])]),_:1},8,["open"])):l.createCommentVNode("",!0)],64))}}),LeI={key:0,class:"editor-component-slot"},veI={key:5,class:"right-buttons"},jeI={key:6,class:"toolbar"},QeI={class:"attach-modal"},OeI={class:"attach-modal__header"},UeI={key:1,class:"attach-modal__attachments__all"},EeI={class:"attach-modal__media-groups"},PeI=["src"],_eI=["src","alt"],qeI={key:0,class:"attach-modal__attachments"},$eI={class:"attach-modal__attachment-icon"},gtI={class:"attach-modal__attachment-body"},ItI={class:"attach-modal__attachment-name"},CtI={class:"attach-modal__attachment-name-base"},etI={key:0,class:"attach-modal__attachment-name-ext"},ttI={class:"attach-modal__attachment-size"},itI={key:0,class:"editor-component-slot"},AtI={class:"attach-modal__toolbar"},ntI={class:"attach-modal__toolbar-left"},ltI={class:"camera-selection"},stI={class:"camera-selection-options"},ya="[ContentEditor]",otI="editor-component__mentions-teleport-root",iL="data-editor-mentions-teleport-root",s9=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),b=l.ref(!1),h=l.ref([]),G=l.ref([]),w=l.ref(null),B=l.ref(null),p=l.ref([]),Y=l.ref(null),y=l.ref(null),R=l.ref(0),X=l.ref(null),K=l.ref(null),D=l.ref(0),F=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)&&!F.value}),v=l.computed(()=>e.mentionItems??[]),O=l.computed(()=>e.slashItems??[]),eg=l.computed(()=>!!e.activeSelectUser&&Y.value!==null&&y.value!==Y.value),E=l.computed(()=>!!e.activeSelectSlash&&X.value!==null&&K.value!==X.value),T=l.computed(()=>eg.value?"mention":E.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,hg,Og;return((hg=(tg=e.mentionConfig)==null?void 0:tg.getKey)==null?void 0:hg.call(tg,L,P))??((Og=e.mentionItemKey)==null?void 0:Og.call(e,L,P))??P},Wg=L=>{var P,tg,hg;return((tg=(P=e.mentionConfig)==null?void 0:P.getLabel)==null?void 0:tg.call(P,L))??((hg=e.mentionItemLabel)==null?void 0:hg.call(e,L))??""},fg=L=>{var P,tg,hg;return((tg=(P=e.mentionConfig)==null?void 0:P.getSubtitle)==null?void 0:tg.call(P,L))??((hg=e.mentionItemSubtitle)==null?void 0:hg.call(e,L))??""},Vg=L=>{var P,tg,hg;return((tg=(P=e.mentionConfig)==null?void 0:P.getAvatarUrl)==null?void 0:tg.call(P,L))??((hg=e.mentionItemAvatarUrl)==null?void 0:hg.call(e,L))??""},Bg=L=>{var P,tg,hg;return((tg=(P=e.mentionConfig)==null?void 0:P.getAvatarDefaultImage)==null?void 0:tg.call(P,L))??((hg=e.mentionItemAvatarDefaultImage)==null?void 0:hg.call(e,L))??""},kg=L=>{var P,tg,hg;return((tg=(P=e.mentionConfig)==null?void 0:P.getAvatarInitials)==null?void 0:tg.call(P,L))??((hg=e.mentionItemAvatarInitials)==null?void 0:hg.call(e,L))??Wg(L)},Rg=L=>{var P,tg,hg;return((tg=(P=e.mentionConfig)==null?void 0:P.getIsOnline)==null?void 0:tg.call(P,L))??((hg=e.mentionItemIsOnline)==null?void 0:hg.call(e,L))??!1},gI=(L,P)=>{var tg,hg,Og;return((hg=(tg=e.slashConfig)==null?void 0:tg.getKey)==null?void 0:hg.call(tg,L,P))??((Og=e.slashItemKey)==null?void 0:Og.call(e,L,P))??P},qg=L=>{var P,tg,hg;return((tg=(P=e.slashConfig)==null?void 0:P.getLabel)==null?void 0:tg.call(P,L))??((hg=e.slashItemLabel)==null?void 0:hg.call(e,L))??""},UI=L=>{var P,tg,hg;return((tg=(P=e.slashConfig)==null?void 0:P.getSubtitle)==null?void 0:tg.call(P,L))??((hg=e.slashItemSubtitle)==null?void 0:hg.call(e,L))??""},BC=L=>{var P,tg,hg;return((tg=(P=e.slashConfig)==null?void 0:P.getAvatarUrl)==null?void 0:tg.call(P,L))??((hg=e.slashItemAvatarUrl)==null?void 0:hg.call(e,L))??""},yC=L=>{var P,tg,hg;return((tg=(P=e.slashConfig)==null?void 0:P.getAvatarDefaultImage)==null?void 0:tg.call(P,L))??((hg=e.slashItemAvatarDefaultImage)==null?void 0:hg.call(e,L))??""},EI=L=>{var P,tg,hg;return((tg=(P=e.slashConfig)==null?void 0:P.getAvatarInitials)==null?void 0:tg.call(P,L))??((hg=e.slashItemAvatarInitials)==null?void 0:hg.call(e,L))??qg(L)},te=L=>{var P,tg,hg;return((tg=(P=e.slashConfig)==null?void 0:P.getIsOnline)==null?void 0:tg.call(P,L))??((hg=e.slashItemIsOnline)==null?void 0:hg.call(e,L))??!1},oC=l.computed(()=>T.value==="slash"?D.value:R.value),re=(L,P)=>T.value==="slash"?gI(L,P):og(L,P),DI=L=>T.value==="slash"?qg(L):Wg(L),HC=L=>T.value==="slash"?UI(L):fg(L),aC=L=>T.value==="slash"?BC(L):Vg(L),fC=L=>T.value==="slash"?yC(L):Bg(L),RA=L=>T.value==="slash"?EI(L):kg(L),st=L=>T.value==="slash"?te(L):Rg(L),vC=l.computed(()=>["emoji-picker",`emoji-picker-${A.value.vertical}`,`emoji-picker-${A.value.horizontal}`,z.value?"":"translateX"]),PI=l.computed(()=>[{value:"Фото или видео",function:()=>yg(!0),iconName:mg.image},{value:"Файл",function:()=>yg(!1),iconName:mg.file}]),Be=l.computed(()=>[{value:"Камера",function:Ei,iconName:mg.camera},...PI.value]),NC=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}))]),ot=l.computed(()=>NC.value.filter(L=>L.kind==="file")),dC=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:Ug(L)})).filter(L=>!!L.url)),hi=(L,P)=>{const tg=[];for(let hg=0;hg<L.length;hg+=P)tg.push(L.slice(hg,hg+P));return tg},pe=l.computed(()=>hi(dC.value,10)),jC=l.computed(()=>{if(w.value===null)return null;const L=G.value[w.value];return!L||!Ug(L)?null:{id:`image-editor-${L.name}-${L.lastModified}-${w.value}`,file:L,index:w.value}}),Gi=l.computed(()=>(b.value?a.value:o.value)??null),Ue=L=>{const P=L.parentElement??L.closest("dialog")??document.body,tg=L.parentElement===P?L:P.firstChild,hg=Array.from(P.children).find(mI=>mI instanceof HTMLElement&&mI.getAttribute(iL)==="true");if(hg)return tg&&hg!==tg&&hg.nextSibling!==tg?P.insertBefore(hg,tg):!tg&&P.firstElementChild!==hg&&P.insertBefore(hg,P.firstChild),hg;const Og=document.createElement("div");return Og.className=otI,Og.setAttribute(iL,"true"),P.insertBefore(Og,tg),Og},Ui=l.computed(()=>{const L=Gi.value;return L?Ue(L):"body"}),at=L=>{if(!j.value)return null;const{$from:P}=j.value.state.selection,tg=Math.max(0,P.parentOffset-50),hg=P.parent.textBetween(tg,P.parentOffset,null,""),Og=L.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),mI=hg.match(new RegExp(`${Og}([^\\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=Gi.value;if(!L)return;const P=L.getBoundingClientRect(),tg=12,hg=b.value?10:3,Og=Math.min(P.width,window.innerWidth-tg*2),mI=window.innerWidth-Og-tg,Pi=Math.min(Math.max(P.left,tg),mI);m.value={left:`${Pi}px`,bottom:`${window.innerHeight-P.top+hg}px`,width:`${Og}px`}},wi=L=>{if(T.value==="slash"){D.value=L;return}R.value=L},MA=()=>{l.nextTick(()=>{const L=d.value,P=Gi.value;if(!L||!P)return;const tg=L.querySelector('[data-mention-active="true"]');if(!(tg instanceof HTMLElement))return;const hg=L.firstElementChild??L,Og=hg.getBoundingClientRect(),mI=P.getBoundingClientRect(),Pi=8,hn=Math.max(Og.bottom-mI.top,0)+8,Yd=tg.offsetTop,Gn=Yd+tg.offsetHeight,Je=hg.scrollTop+Pi,R2=hg.scrollTop+hg.clientHeight-hn;if(Yd<Je){hg.scrollTop=Math.max(Yd-Pi,0);return}Gn>R2&&(hg.scrollTop=Gn-hg.clientHeight+hn)})},HA=()=>window.innerWidth<=480,dt=()=>window.innerWidth<=480&&window.matchMedia("(hover: none) and (pointer: coarse)").matches,Ei=()=>{Z.value=!0},is=()=>{Z.value=!1},Wi=L=>{Z.value=!1,yg(!0,L)};let Bi=!1,Ee=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"},No={"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"},Vo=new Set(["image/png","image/jpeg","image/jpg","image/webp","image/bmp","image/x-ms-bmp"]),il=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=il(L.name);return yo[P]??""},bg=(L,P)=>{const tg=L.name.trim(),hg=No[P],Og=!!il(tg);if(!tg){const mI=P.startsWith("image/")?"image":P.startsWith("video/")?"video":"file";return hg?`${mI}-${Date.now()}.${hg}`:`${mI}-${Date.now()}`}return Og||!hg?tg:`${tg}.${hg}`},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/"),Ug=L=>Vo.has(lg(L)),MI=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 hg=new File([L],tg,{type:P||L.type,lastModified:L.lastModified});return console.warn(`${ya} normalized file wrapper created`,{...Sg(L,P),normalizedFileName:tg}),hg}catch(hg){return console.warn(`${ya} failed to normalize file, using original`,{...Sg(L,P),normalizedFileName:tg,error:hg}),L}},_I=L=>{const P=new DataTransfer;return L.forEach(tg=>P.items.add(tg)),P.files},Xt=async(L,P)=>{console.warn(`${ya} emitAttachFiles called`,{inputCount:Array.from(L).length,onlyMedia:P});const tg=Array.from(L,MI);if(!tg.length){console.warn(`${ya} no files after normalization`);return}const hg=P??tg.every(Og=>{const mI=lg(Og);return mI.startsWith("image/")||mI.startsWith("video/")});console.warn(`${ya} emit normalized files`,{files:tg.map(Og=>Sg(Og)),isOnlyMedia:hg}),n("unmount-attach-file",_I(tg),hg)},Ze=async(L,P)=>{const tg=Array.from(L,MI);if(tg.length){if(P){const hg=tg.filter(mI=>Kg(lg(mI))),Og=tg.filter(mI=>!Kg(lg(mI)));hg.length&&(G.value=[...G.value,...hg]),Og.length&&(h.value=[...h.value,...Og])}else h.value=[...h.value,...tg];b.value=!0}},$=()=>{h.value=[],G.value=[],w.value=null},Ig=()=>{Bd(),b.value=!1,$()},rg=(L,P)=>{if(L==="media"){const hg=G.value.filter((Og,mI)=>mI!==P);G.value=hg,w.value=null,!hg.length&&!h.value.length&&Ig();return}const tg=h.value.filter((hg,Og)=>Og!==P);h.value=tg,!tg.length&&!G.value.length&&Ig()},Jg=L=>{L.canEdit&&(Bd(),w.value=L.index)},oI=()=>{w.value=null},HI=L=>{if(w.value===null)return;const P=[...G.value];P[w.value]=L,G.value=P,oI()},tI=async(L,P)=>{var hg;const tg=L.target;(hg=tg.files)!=null&&hg.length&&(await Ze(tg.files,P),tg.value="")},JI=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)},Ye=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 ye=Ki.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",De(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$/,un=/^(\d+)\.\s$/,ib=(L,P)=>{const tg=L.lastIndexOf(`
|
|
1790
|
+
`);if(tg===-1)return null;const hg=L.slice(tg+1),Og=hg.match(P);return Og?{index:tg+1,text:hg,data:{match:Og}}:null},As=({listTypeName:L,find:P,getAttributes:tg})=>new rh({find:P,handler:({state:hg,range:Og,match:mI})=>{var ab,Q1;const Pi=hg.schema.nodes[L];if(!Pi)return null;const pd=Og.from,hn=pd-1;if(((ab=hg.doc.resolve(pd).nodeBefore)==null?void 0:ab.type.name)!=="hardBreak")return null;const Gn=(tg==null?void 0:tg((Q1=mI.data)==null?void 0:Q1.match))??{};let Je=hg.tr.delete(Og.from,Og.to);Je=Je.delete(hn,hn+1);try{Je=Je.split(hn)}catch{return null}const R2=Math.min(hn+2,Je.doc.content.size),M2=Je.doc.resolve(R2).blockRange(),j1=M2&&jB(M2,Pi,Gn);if(!j1)return null;Je=Je.wrap(M2,j1);const w9=Math.min(hn+4,Je.doc.content.size);Je=Je.setSelection(sI.near(Je.doc.resolve(w9)))}}),gg=Ie.create({name:"contentEditorListInputRules",addInputRules(){const L=this.editor.schema.nodes.bulletList;return L?[Nc({find:Xo,type:L}),As({listTypeName:"bulletList",find:P=>ib(P,Ro)}),As({listTypeName:"orderedList",find:P=>ib(P,un),getAttributes:P=>({start:Number(P[1])})})]:[]}}),j=Cqg({extensions:[NgI.configure({link:!1,heading:!1,blockquote:!1,codeBlock:!1}),i$g.configure({openOnClick:!1,HTMLAttributes:{class:"link"}}),VgI.configure({placeholder:"Начните печатать...",emptyEditorClass:"is-editor-empty"}),ye,gg],content:t.value,editorProps:{handlePaste(L,P){const tg=P.clipboardData;return tg&&tg.files.length>0&&e.activeAttachFile?(P.preventDefault(),P.stopPropagation(),Bi||(Bi=!0,Ze(tg.files,!0),setTimeout(()=>{Bi=!1},200)),!0):!1}},onUpdate:({editor:L})=>{t.value=L.getHTML();const P=e.activeSelectUser?at("@"):null,tg=e.activeSelectSlash?at("/"):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,y.value=null,n("mention-change",null)):(Y.value=null,y.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}oC.value>=L.length&&wi(L.length-1),q.value&&l.nextTick(()=>{QC(),MA()})}),l.watch([R,D],()=>{q.value&&l.nextTick(()=>{QC(),MA()})}),l.watch(q,L=>{if(!L){R.value=0,D.value=0,m.value={};return}T.value==="slash"?K.value=null:y.value=null,l.nextTick(()=>{QC(),MA()})}),l.watch(()=>b.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(HA()){Xt(tg.files,L||!!P);return}Ze(tg.files,L)}},tg.click()},$g=L=>{console.warn(`${ya} fileDropped event received`,L.files.map(P=>Sg(P))),Ze(L.files,L.onlyMedia)},bI=()=>{j!=null&&j.value&&(n("unmount-send",{content:j.value.getHTML(),files:h.value.length?_I(h.value):void 0,mediaFiles:G.value.length?_I(G.value):void 0}),b.value=!1,$(),Bd(),j.value.chain().focus())},VI=()=>{if(j!=null&&j.value){if(F.value){bI();return}n("unmount-send",{content:j.value.getHTML()}),j.value.chain().focus()}},qI=(L,P)=>{if(!(j!=null&&j.value))return;const tg=at("@");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=at(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()},ze=()=>{Y.value=null,y.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 hg,Og,mI;const P=((hg=e.mentionConfig)==null?void 0:hg.getInsertLabel)??e.mentionInsertLabel;if(!P)return;const tg=P(L);tg&&(qI(tg,(mI=((Og=e.mentionConfig)==null?void 0:Og.getInsertAttrs)??e.mentionInsertAttrs)==null?void 0:mI(L)),ze())},T1=L=>{var hg;const P=((hg=e.slashConfig)==null?void 0:hg.getInsertLabel)??e.slashInsertLabel;if(!P)return;const tg=P(L);tg&&(cC("/",tg),Ar())},Ab=L=>{if(T.value==="slash"){T1(L);return}nr(L)},L1=()=>{if(!(j!=null&&j.value))return;const L=at("@");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=at("/");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 hg=L.getBoundingClientRect(),Og=window.innerWidth,mI=window.innerHeight;A.value.vertical=hg.bottom+tg>mI?"top":"bottom",A.value.horizontal=hg.left+P>Og?"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 hg=-1,Og=-1;for(let Gn=tg.depth;Gn>0;Gn-=1){const Je=tg.node(Gn);if(hg===-1&&Je.type.name==="listItem"&&(hg=Gn),Je.type.name==="orderedList"){Og=Gn;break}}if(hg===-1||Og===-1)return null;const mI=tg.node(Og),Pi=tg.node(hg),pd=tg.index(Og),hn=tg.after(Og),Yd=tg.parent.isTextblock&&tg.parentOffset===tg.parent.content.size&&tg.index(hg)===Pi.childCount-1;return{cursorPos:tg.pos,docSize:P.content.size,isLastItem:pd===mI.childCount-1,isAtEndOfItem:Yd,orderedListAfter:hn}},G9=()=>{if(!j.value)return;const L=lb();if(!L)return;const{state:P,view:tg}=j.value,hg=L.orderedListAfter,Og=P.doc.resolve(hg).nodeAfter;let mI=P.tr;if(!Og||Og.type.name!=="paragraph"){const Pi=P.schema.nodes.paragraph.create();mI=mI.insert(hg,Pi)}mI=mI.setSelection(sI.near(mI.doc.resolve(hg+1))),tg.dispatch(mI.scrollIntoView()),tg.focus()},v1=()=>{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"&&(Ee=null),q.value){if(L.key==="Escape"){L.preventDefault(),L.stopPropagation(),T.value==="slash"?K.value=X.value:y.value=Y.value;return}if(L.key==="Enter"){L.preventDefault(),L.stopPropagation(),oC.value>=0&&oC.value<cg.value.length&&Ab(cg.value[oC.value]);return}if(cg.value.length&&(L.key==="ArrowDown"||L.key==="ArrowUp")){L.preventDefault(),L.stopPropagation();const tg=L.key==="ArrowDown"?1:-1;wi((oC.value+tg+cg.value.length)%cg.value.length);return}}if(L.key==="Enter"&&L.shiftKey&&!(L.ctrlKey||L.metaKey)&&v1()){L.preventDefault(),L.stopPropagation(),Ee=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 hg=Date.now();Ee&&Ee.pos===tg.cursorPos&&hg-Ee.timestamp<1200?(Ee=null,G9()):Ee={pos:tg.cursorPos,timestamp:hg};return}Ee=null}!e.disableSendOnEnter&&L.key==="Enter"&&L.code&&!(L.shiftKey||L.ctrlKey||L.metaKey)&&(L.preventDefault(),L.stopPropagation(),VI())}},ob=L=>{dt()&&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:qI,focus:nb,editor:j,emitAttachFiles:Xt,queueAttachFiles:Ze}),(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&&!b.value?(l.openBlock(),l.createElementBlock("div",LeI,[l.renderSlot(L.$slots,"action")])):l.createCommentVNode("",!0),e.activeAttachFile?(l.openBlock(),l.createBlock(tZ,{key:1,isWCUse:"",options:Be.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(mg).paperClip},null,8,["name"])]),_:1},8,["type","size"])]),_:1},8,["options"])):l.createCommentVNode("",!0),b.value?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref(dx),{key:2,class:"editor-content",editor:l.unref(j)},null,8,["editor"])),b.value?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l9,{key:3,editor:l.unref(j)||null,"read-clipboard-text":e.readClipboardText},null,8,["editor","read-clipboard-text"])),e.activeAttachFile&&!b.value?(l.openBlock(),l.createBlock(tL,{key:4,onFilesDropped:$g})):l.createCommentVNode("",!0),b.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",veI,[l.renderSlot(L.$slots,"mobile-right-action"),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(mg).smile},null,8,["name"]),l.withDirectives(l.createElementVNode("div",{onClick:P[0]||(P[0]=l.withModifiers(()=>{},["stop"])),class:l.normalizeClass(vC.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:VI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).planeRightFill,width:22,height:22,class:"content-editor__save"},null,8,["name"])]),_:1},8,["type","size"]),[[l.vShow,!z.value]])])),b.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",jeI,[e.activeAttachFile?(l.openBlock(),l.createBlock(tZ,{key:0,isWCUse:"",options:PI.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(mg).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(mg).smile,width:16,height:16},null,8,["name"]),l.withDirectives(l.createElementVNode("div",{onClick:P[1]||(P[1]=l.withModifiers(()=>{},["stop"])),class:l.normalizeClass(vC.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:L1},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).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(mg).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:VI},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).planeRight,color:l.unref(Jh).white,width:16,height:16},null,8,["name","color"])]),_:1},8,["disabled","size"])])),b.value?(l.openBlock(),l.createBlock(mB,{key:7,open:b.value,onClose:Ig,"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",QeI,[l.createVNode(tL,{onFilesDropped:$g}),jC.value?(l.openBlock(),l.createBlock(TeI,{key:jC.value.id,file:jC.value.file,onApply:HI,onClose:oI},null,8,["file"])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",OeI,[l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(YI).small,class:"attach-modal__close",onClick:Ig},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).crossLarge},null,8,["name"])]),_:1},8,["type","size"])],512),[[l.vShow,!jC.value]]),pe.value.length>0||ot.value.length>0?l.withDirectives((l.openBlock(),l.createElementBlock("div",UeI,[l.createElementVNode("div",EeI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(pe.value,(tg,hg)=>(l.openBlock(),l.createElementBlock("div",{key:`media-chunk-${hg}`,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,Og=>(l.openBlock(),l.createElementBlock("div",{key:Og.id,class:l.normalizeClass(["attach-modal__media-tile",{"attach-modal__media-tile--editable":Og.canEdit}])},[Og.isVideo?(l.openBlock(),l.createElementBlock("video",{key:0,draggable:"false",src:Og.url,muted:"",playsinline:""},null,8,PeI)):(l.openBlock(),l.createElementBlock("img",{key:1,draggable:"false",src:Og.url,alt:Og.file.name},null,8,_eI)),Og.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=>Jg(Og),["stop"])},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).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=>rg("media",Og.index),["stop"])},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).trash,width:16,height:16},null,8,["name"])]),_:1},8,["type","size","onClick"])],2))),128))],2))),128)),ot.value.length?(l.openBlock(),l.createElementBlock("div",qeI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(ot.value,tg=>(l.openBlock(),l.createElementBlock("div",{key:tg.id,class:"attach-modal__attachment"},[l.createElementVNode("div",$eI,[l.createVNode(Yg,{name:l.unref(mg).fileItem,width:18,height:18},null,8,["name"])]),l.createElementVNode("div",gtI,[l.createElementVNode("div",ItI,[l.createElementVNode("span",CtI,l.toDisplayString(OC(tg.file.name)),1),Ye(tg.file.name)?(l.openBlock(),l.createElementBlock("span",etI,l.toDisplayString(Ye(tg.file.name)),1)):l.createCommentVNode("",!0)]),l.createElementVNode("div",ttI,l.toDisplayString(JI(tg.file.size)),1)]),l.createVNode(nI,{type:l.unref(II).ghost,size:l.unref(YI).small,class:"attach-modal__attachment-remove",onClick:hg=>rg(tg.kind,tg.index)},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).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",itI,[l.renderSlot(L.$slots,"action")])):l.createCommentVNode("",!0),l.createVNode(l.unref(dx),{class:"editor-content",editor:l.unref(j)},null,8,["editor"]),l.createElementVNode("div",AtI,[l.createElementVNode("div",ntI,[l.createVNode(tZ,{isWCUse:"",disabled:!e.activeAttachFile,options:PI.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(mg).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(mg).smile,width:16,height:16},null,8,["name"]),l.withDirectives(l.createElementVNode("div",{onClick:P[2]||(P[2]=l.withModifiers(()=>{},["stop"])),class:l.normalizeClass(vC.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:L1},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).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(mg).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(mg).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=>tI(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=>tI(tg,!0))},null,544)],2),(l.openBlock(),l.createBlock(l.Teleport,{to:Ui.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":oC.value,variant:T.value||"mention","is-fixed":"","position-style":m.value,"get-key":re,"get-label":DI,"get-subtitle":HC,"get-avatar-url":aC,"get-avatar-default-image":fC,"get-avatar-initials":RA,"get-is-online":st,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(is,["self"])},[l.createElementVNode("div",ltI,[l.createElementVNode("div",stI,[l.createVNode(nI,{type:l.unref(II).primary,onClick:P[5]||(P[5]=tg=>Wi("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=>Wi("video")),class:"camera-selection-item"},{default:l.withCtx(()=>[...P[8]||(P[8]=[l.createTextVNode(" Записать видео ",-1)])]),_:1},8,["type"])])])])):l.createCommentVNode("",!0)]),_:1})]))],64))}}),atI=["id","aria-selected","onMousedown","onMouseenter"],dtI=["innerHTML"],ctI={class:"content-editor-slash-menu__label"},mtI={key:0,class:"content-editor-slash-menu__empty",role:"status"},AL=vg(l.defineComponent({__name:"ContentEditorSlashMenu",props:{id:{default:"content-editor-slash-menu"},items:{},activeIndex:{default:0},positionStyle:{default:()=>({})},emptyText:{default:"Нет результатов"}},emits:["select","update:activeIndex"],setup(C,{emit:g}){const I=g;return(e,t)=>(l.openBlock(),l.createElementBlock("div",{class:"content-editor-slash-menu",style:l.normalizeStyle(C.positionStyle),role:"listbox","aria-label":"Команды редактора",onMousedown:t[0]||(t[0]=l.withModifiers(()=>{},["prevent"]))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(C.items,(i,A)=>(l.openBlock(),l.createElementBlock("button",{id:`${C.id}-option-${i.id}`,key:i.id,type:"button",class:l.normalizeClass(["content-editor-slash-menu__item",{"content-editor-slash-menu__item--active":C.activeIndex===A}]),role:"option","aria-selected":C.activeIndex===A,onMousedown:l.withModifiers(n=>I("select",A),["prevent"]),onMouseenter:n=>I("update:activeIndex",A)},[i.icon?(l.openBlock(),l.createElementBlock("span",{key:0,class:"content-editor-slash-menu__icon","aria-hidden":"true",innerHTML:i.icon},null,8,dtI)):l.createCommentVNode("",!0),l.createElementVNode("span",ctI,l.toDisplayString(i.label),1)],42,atI))),128)),C.items.length===0?(l.openBlock(),l.createElementBlock("div",mtI,l.toDisplayString(C.emptyText),1)):l.createCommentVNode("",!0)],36))}}),[["__scopeId","data-v-ec1705fb"]]),rtI=["data-testid"],ZtI=["data-testid"],Na="[Cropper][BaseCropper]",btI=vg(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&&b(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:F}=A.value.getBoundingClientRect();i.value&&(i.value.width=D,i.value.height=F),n.image&&a()}},a=()=>{if(n.image){const D=n.ctx,F=i.value;D&&F&&(D.clearRect(0,0,F.width,F.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(F=>setTimeout(F,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)}),b=D=>{const F=m(D)?6:3;let z=0;console.warn(`${Na} loadImage start`,{...Z(D),maxRetries:F});const v=new FileReader;v.onload=async O=>{var eg;console.warn(`${Na} FileReader load success`,{...Z(D),attempt:z+1}),typeof((eg=O.target)==null?void 0:eg.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 E=i.value.width,T=i.value.height,q=n.image.width/n.image.height,cg=E/T;q>cg?(n.image.width=E,n.image.height=E/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:F,error:v.error}),z>=F){try{console.warn(`${Na} fallback to detached file`,Z(D));const eg=await D.arrayBuffer(),E=new File([eg],D.name,{type:D.type||"application/octet-stream",lastModified:D.lastModified});z+=1,console.warn(`${Na} retry readAsDataURL with detached file`,{...Z(E),attempt:z+1}),v.readAsDataURL(E)}catch(eg){console.error("Failed to load cropper image",{fileName:D.name,error:eg})}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 F=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?F=Math.min(Math.max(F,0),i.value.width-n.image.width*n.scale):(F>0&&(F=0),F<v&&(F=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=F,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 F=i.value.width/2,z=i.value.height/2;n.position.x=F-(F-n.position.x)*D,n.position.y=z-(z-n.position.y)*D}},Y=D=>{const F=n.scale,z=n.scale+D.deltaY*-.001;if(F===B(z))return;n.scale=B(z);const v=z/F;p(v),t("unmount-scale",n.scale),a()};return g({cropImage:()=>{if(A.value){const{width:D,height:F}=A.value.getBoundingClientRect(),z=document.createElement("canvas");z.width=D,z.height=F;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"),eg=atob(O.split(",")[1]),E=new ArrayBuffer(eg.length),T=new Uint8Array(E);for(let cg=0;cg<eg.length;cg++)T[cg]=eg.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 F=n.scale,v=D/F;n.scale=B(D),p(v),a()},startMove:h,scaleImage:Y}),l.onMounted(()=>{s(),e.image&&b(e.image)}),(D,F)=>(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,ZtI)],8,rtI))}}),[["__scopeId","data-v-3f2c26f6"]]),utI=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}},htI=(C,g)=>new File([C],g,{type:C.type}),GtI=["data-testid"],wtI=["data-testid"],WtI=["data-testid"],BtI=["data-testid"],ptI=["data-testid"],YtI=["data-testid"],o9=vg(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}=utI({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},b=()=>{n.value=n.value+A},h=()=>{if(o.value){const G=o.value.cropImage();if(G){const w=G.name,B=htI(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,wtI),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(btI,{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(mg).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(mg).plus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${l.unref(s)}-content-IconPlus`,onClick:b},null,8,["name","data-testid"])],8,ptI)],8,BtI),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,YtI)],8,WtI)],8,GtI)]),_:1},16,["data-testid"]))}}),[["__scopeId","data-v-493bb651"]]),a9={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)}})}},ytI=["src"],d9=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,b=m;i.rotate%180!==0&&(Z=m,b=d),A.value.width=Z,A.value.height=b,a.save(),a.clearRect(0,0,Z,b),a.translate(Z/2,b/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(Zs)},null,8,ytI)):(l.openBlock(),l.createElementBlock("canvas",{key:0,ref_key:"canvasRef",ref:A,class:"image-preview"},null,512))}}),nL={Accordion:GV,Badges:Ht,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:F7g,Radio:LX,Tooltip:Zt,BaseFilter:vX,Range:HB,Tabs:UX,ContentEditor:s9,ModalCroppedAvatar:o9,Avatar:Ju,TimePicker:GW,SliderModal:hB,PdfPreview:ws,ImagePreview:d9,VideoPreview:Su,Skeleton:RB},lL=Object.freeze(Object.defineProperty({__proto__:null,Accordion:GV,Avatar:Ju,Badges:Ht,BadgesTypeEnum:QI,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:s9,ContentEditorFormattingToolbar:l9,ContentEditorSlashMenu:AL,CopyIcon:KX,Dialog:hW,DragAndDrop:wV,Dropdown:iN,Filter:BV,FilterTag:zX,HeadTableRow:xu,HeadTableRowNew:fB,Icon:Yg,IconNameEnum:mg,ImageExtensionsEnum:mu,ImagePreview:d9,Input:HW,InputNumber:ou,InputTypeEnum:pV,Loader:ku,MenuTypeEnum:ZC,MessageTypeEnum:XB,Modal:fu,ModalCroppedAvatar:o9,PdfPreview:ws,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:Zt,UserMenu:fX,VideoExtensionsEnum:ru,VideoPreview:Su,default:{install:C=>{Object.keys(nL).forEach(g=>{C.component("Y"+g,nL[g])})}},getFirstTime:Zk,getLastTime:XW,vuePluginRemoveTestid:a9},Symbol.toStringTag,{value:"Module"})),NtI={install(C){for(const g in lL){const I=lL[g];C.use(I).use(a9,{enabled:!1})}}};ig.Accordion=GV,ig.Avatar=Ju,ig.Badges=Ht,ig.BadgesTypeEnum=QI,ig.BaseFilter=vX,ig.BreadCrumbs=wy,ig.Button=nI,ig.ButtonTypeEnum=II,ig.Calendar=hV,ig.Card=WV,ig.Checkbox=RX,ig.CheckboxCircularEnum=NB,ig.CheckboxSizeEnum=yB,ig.CircularProgress=JX,ig.ColorsEnum=Jh,ig.Combobox=YV,ig.ContentEditor=s9,ig.ContentEditorFormattingToolbar=l9,ig.ContentEditorSlashMenu=AL,ig.CopyIcon=KX,ig.Dialog=hW,ig.DragAndDrop=wV,ig.Dropdown=iN,ig.Filter=BV,ig.FilterTag=zX,ig.HeadTableRow=xu,ig.HeadTableRowNew=fB,ig.Icon=Yg,ig.IconNameEnum=mg,ig.ImageExtensionsEnum=mu,ig.ImagePreview=d9,ig.Input=HW,ig.InputNumber=ou,ig.InputTypeEnum=pV,ig.Loader=ku,ig.MenuTypeEnum=ZC,ig.MessageTypeEnum=XB,ig.Modal=fu,ig.ModalCroppedAvatar=o9,ig.OnClickOutside=j6,ig.OnLongPress=P6,ig.PdfPreview=ws,ig.Picture=kX,ig.Popover=tZ,ig.PushNotification=FX,ig.Radio=LX,ig.Range=HB,ig.Scroll=XX,ig.ScrollWrapper=Tu,ig.Search=du,ig.SectionTableRow=TX,ig.SelectList=Mr,ig.SizesEnum=YI,ig.Skeleton=RB,ig.Slider=VX,ig.SliderModal=hB,ig.Switch=Nw,ig.Table=xX,ig.TableNew=jX,ig.TableRow=MB,ig.TableRowNew=QX,ig.TableSimple=OX,ig.TableTd=Lu,ig.TableTh=iZ,ig.Tabs=UX,ig.TextFieldEnum=MW,ig.Textarea=SX,ig.TextareaTypeEnum=VB,ig.TimePicker=GW,ig.Toggle=wB,ig.Tooltip=Zt,ig.UseActiveElement=_6,ig.UseBattery=q6,ig.UseBrowserLocation=$6,ig.UseClipboard=g8,ig.UseColorMode=a8,ig.UseDark=d8,ig.UseDeviceMotion=c8,ig.UseDeviceOrientation=m8,ig.UseDevicePixelRatio=r8,ig.UseDevicesList=Z8,ig.UseDocumentVisibility=b8,ig.UseDraggable=u8,ig.UseElementBounding=h8,ig.UseElementSize=w8,ig.UseElementVisibility=p8,ig.UseEyeDropper=y8,ig.UseFullscreen=N8,ig.UseGeolocation=V8,ig.UseIdle=X8,ig.UseImage=f8,ig.UseMouse=k8,ig.UseMouseInElement=F8,ig.UseMousePressed=K8,ig.UseNetwork=z8,ig.UseNow=J8,ig.UseObjectUrl=x8,ig.UseOffsetPagination=T8,ig.UseOnline=L8,ig.UsePageLeave=v8,ig.UsePointer=j8,ig.UsePointerLock=Q8,ig.UsePreferredColorScheme=O8,ig.UsePreferredContrast=U8,ig.UsePreferredDark=E8,ig.UsePreferredLanguages=P8,ig.UsePreferredReducedMotion=_8,ig.UseScreenSafeArea=I_,ig.UseTimeAgo=n_,ig.UseTimestamp=l_,ig.UseVirtualList=s_,ig.UseWindowFocus=o_,ig.UseWindowSize=a_,ig.UserMenu=fX,ig.VOnClickOutside=To,ig.VOnLongPress=y3,ig.VideoExtensionsEnum=ru,ig.VideoPreview=Su,ig.VueToolsCore=v6,ig.arrow=PLg,ig.autoPlacement=ok,ig.autoUpdate=lk,ig.computePosition=ak,ig.default=NtI,ig.detectOverflow=xLg,ig.flip=LLg,ig.getFirstTime=Zk,ig.getLastTime=XW,ig.getOverflowAncestors=vr,ig.hide=jLg,ig.inline=OLg,ig.limitShift=ULg,ig.offset=sk,ig.platform=Ak,ig.shift=TLg,ig.size=vLg,ig.useFloating=mk,ig.useSearch=bk,ig.vElementHover=G8,ig.vElementSize=B8,ig.vElementVisibility=Y8,ig.vInfiniteScroll=S8,ig.vIntersectionObserver=D8,ig.vOnClickOutside=To,ig.vOnKeyStroke=O6,ig.vOnLongPress=y3,ig.vResizeObserver=q8,ig.vScroll=C_,ig.vScrollLock=A_,ig.vuePluginRemoveTestid=a9,Object.defineProperties(ig,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|