@pksep/yui 0.1.199 → 0.1.200

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.
@@ -10,6 +10,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
10
10
  isSpanOverflow: import('vue').Ref<boolean, boolean>;
11
11
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
12
  choose: (state: boolean, value?: string | undefined) => void;
13
+ remove: (value: string) => void;
13
14
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IBadgesProps>, {
14
15
  type: BadgesTypeEnum;
15
16
  choosed: boolean;
@@ -17,6 +18,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
17
18
  dataTestid: string;
18
19
  }>>> & Readonly<{
19
20
  onChoose?: ((state: boolean, value?: string | undefined) => any) | undefined;
21
+ onRemove?: ((value: string) => any) | undefined;
20
22
  }>, {
21
23
  dataTestid: string;
22
24
  type: BadgesTypeEnum;
@@ -1352,7 +1352,7 @@ const F7 = {
1352
1352
  disabled: { type: Boolean, default: !1 },
1353
1353
  dataTestid: { default: "Badges" }
1354
1354
  },
1355
- emits: ["choose"],
1355
+ emits: ["choose", "remove"],
1356
1356
  setup(C, { expose: g, emit: I }) {
1357
1357
  const e = C, t = I, i = cg({
1358
1358
  choosed: e.choosed
@@ -1372,14 +1372,16 @@ const F7 = {
1372
1372
  "disabled-yui-kit": e.type === WC.disabled
1373
1373
  })), o = () => {
1374
1374
  t("choose", i.choosed, e.text), e.disabled || (i.choosed = !i.choosed);
1375
- }, a = new ResizeObserver(() => {
1375
+ }, a = () => {
1376
+ t("remove", e.text);
1377
+ }, r = new ResizeObserver(() => {
1376
1378
  s.value = n();
1377
1379
  });
1378
1380
  return g({
1379
1381
  isSpanOverflow: s
1380
1382
  }), iI(() => {
1381
- A.value && a.observe(A.value);
1382
- }), (r, u) => (x(), Q("div", {
1383
+ A.value && r.observe(A.value);
1384
+ }), (u, h) => (x(), Q("div", {
1383
1385
  class: Ng(l.value),
1384
1386
  onClick: o,
1385
1387
  "data-testid": e.dataTestid
@@ -1396,11 +1398,12 @@ const F7 = {
1396
1398
  height: 10,
1397
1399
  "data-testid": `${e.dataTestid}-Icon`,
1398
1400
  name: q(Wg).closeTag,
1399
- color: "var(--text-neutral-color)"
1401
+ color: "var(--text-neutral-color)",
1402
+ onClick: a
1400
1403
  }, null, 8, ["data-testid", "name"])
1401
1404
  ], 10, A8));
1402
1405
  }
1403
- }), vt = /* @__PURE__ */ Kg(s8, [["__scopeId", "data-v-882c4d6a"]]), l8 = ["data-testid"], o8 = ["data-testid"], a8 = ["data-testid"], d8 = ["data-testid"], c8 = ["data-testid"], r8 = ["data-testid"], u8 = ["title", "onClick", "data-testid"], m8 = ["data-testid"], h8 = ["onClick", "data-testid"], b8 = ["data-testid"], oY = 25, Z8 = /* @__PURE__ */ ng({
1406
+ }), vt = /* @__PURE__ */ Kg(s8, [["__scopeId", "data-v-8043ecdc"]]), l8 = ["data-testid"], o8 = ["data-testid"], a8 = ["data-testid"], d8 = ["data-testid"], c8 = ["data-testid"], r8 = ["data-testid"], u8 = ["title", "onClick", "data-testid"], m8 = ["data-testid"], h8 = ["onClick", "data-testid"], b8 = ["data-testid"], oY = 25, Z8 = /* @__PURE__ */ ng({
1404
1407
  __name: "BreadCrumbs",
1405
1408
  props: {
1406
1409
  items: {},
@@ -567,7 +567,7 @@
567
567
  <path d="M12.459 7.01366C12.5922 5.98008 12.399 4.93073 11.9065 4.0123C11.4141 3.09387 10.647 2.35226 9.71245 1.89114C8.7779 1.43001 7.72263 1.27241 6.69413 1.44037C5.66564 1.60834 4.71532 2.09346 3.97603 2.82794C3.23674 3.56242 2.74542 4.50955 2.57074 5.53692C2.39607 6.5643 2.54677 7.62058 3.00178 8.55812C3.4568 9.49565 4.19338 10.2676 5.10858 10.766C6.02377 11.2644 7.07183 11.4645 8.10626 11.3381" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
568
568
  <path d="M12.5001 11.875L10.0001 9.375M10.0001 11.875L12.5001 9.375" stroke="#F42C2B" stroke-linecap="round" stroke-linejoin="round"/>
569
569
  <path d="M7.5 3.875V6.87499L9.5 7.87499" stroke="currentColor" stroke-width="0.999998" stroke-linecap="round" stroke-linejoin="round"/>
570
- `,viewbox:"0 0 15 15"},trash:Uv,trashSmall:Ev,uploadCloud:_v,usersGroup:Wj,warehouse:rj,wastes:bj,writeDowns:Zj,zoomMinus:ux,zoomPlus:hx},Symbol.toStringTag,{value:"Module"})),bx=["data-testid","fill","viewBox"],Zx=["innerHTML"],Gx=s.defineComponent({__name:"Icon",props:{height:{},width:{},name:{},color:{},dataTestid:{default:"Icon"}},setup(C){const g=C,I=s.computed(()=>({color:g.color,width:`${g.width}px`,height:`${g.height}px`})),e=i=>i.replace(/-./g,A=>A[1].toUpperCase()),t=s.computed(()=>Zy[e(g.name)]);return(i,A)=>{var n,l,o;return s.openBlock(),s.createElementBlock("svg",{class:"icon-yui-kit","data-testid":g.dataTestid,style:s.normalizeStyle(I.value),fill:(n=s.unref(Zy)[e(g.name)])==null?void 0:n.fill,viewBox:((l=s.unref(Zy)[e(g.name)])==null?void 0:l.viewbox)||"0 0 24 24"},[s.createElementVNode("g",{innerHTML:(o=t.value)==null?void 0:o.path},null,8,Zx)],12,bx)}}}),yg=(C,g)=>{const I=C.__vccOpts||C;for(const[e,t]of g)I[e]=t;return I},Ng=yg(Gx,[["__scopeId","data-v-938d45fe"]]),wx=["data-testid"],Wx=["data-testid"],Bx=s.defineComponent({__name:"Badges",props:{text:{},type:{default:GI.default},choosed:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestid:{default:"Badges"}},emits:["choose"],setup(C,{expose:g,emit:I}){const e=C,t=I,i=s.reactive({choosed:e.choosed}),A=s.ref(null),n=()=>!!(A.value&&A.value.scrollWidth>A.value.clientWidth),l=s.ref(n()),o=s.computed(()=>({"base-yui-kit":!0,"default-yui-kit":e.type===GI.default,"blue-yui-kit":e.type===GI.blue,"light-blue-yui-kit":e.type===GI.lightBlue,"contrast-blue-yui-kit":e.type===GI.contrastBlue,"green-yui-kit":e.type===GI.green,"orange-yui-kit":e.type===GI.orange,"red-yui-kit":e.type===GI.red,"pink-yui-kit":e.type===GI.pink,"violet-yui-kit":e.type===GI.violet,"yellow-yui-kit":e.type===GI.yellow,"choosed-yui-kit":e.choosed||i.choosed,"disabled-yui-kit":e.type===GI.disabled})),a=()=>{t("choose",i.choosed,e.text),e.disabled||(i.choosed=!i.choosed)},d=new ResizeObserver(()=>{l.value=n()});return g({isSpanOverflow:l}),s.onMounted(()=>{A.value&&d.observe(A.value)}),(m,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(o.value),onClick:a,"data-testid":e.dataTestid},[s.createElementVNode("span",{ref_key:"spanRef",ref:A,class:"badges-text","data-testid":`${e.dataTestid}-BadgesText`},s.toDisplayString(e.text),9,Wx),s.createVNode(Ng,{class:"close-icon",width:10,height:10,"data-testid":`${e.dataTestid}-Icon`,name:s.unref(dg).closeTag,color:"var(--text-neutral-color)"},null,8,["data-testid","name"])],10,wx))}}),ke=yg(Bx,[["__scopeId","data-v-882c4d6a"]]),px=["data-testid"],yx=["data-testid"],Yx=["data-testid"],Vx=["data-testid"],Nx=["data-testid"],Mx=["data-testid"],Rx=["title","onClick","data-testid"],Xx=["data-testid"],Hx=["onClick","data-testid"],fx=["data-testid"],Gy=25,wy=yg(s.defineComponent({__name:"BreadCrumbs",props:{items:{},dataTestid:{default:"BreadCrumbs"}},emits:["click"],setup(C,{emit:g}){const I=C,e=g,t=s.reactive({items:[],crumbs:s.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(u=>(u.isSub=!1,u))}),subCrumbs:s.computed(()=>I.items.slice(1,-3).map(d=>(d.isSub=!0,d))),getClassesLink:s.computed(()=>(d,m=!1)=>({"bread-crumbs-yui-kit__link":!0,"disabled-yui-kit":!d.path,active:m})),getClassesSpan:s.computed(()=>d=>({"checked-yui-kit":d===t.crumbs.length-1})),fullTitle:s.computed(()=>d=>d.title.length>Gy),isShowList:!1}),i=s.computed(()=>({crumbs:{"bread-crumbs-yui-kit__item":!0},subcrumbs:{"bread-subcrumbs-yui-kit__item":!0}})),A=s.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&&l(),I.items.forEach(({path:u},b)=>{u===d.path&&e("click",{title:d.title,path:d.path,inx:b+1})}))},l=()=>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 s.onMounted(()=>t.items=t.crumbs.concat(t.subCrumbs)),(d,m)=>(s.openBlock(),s.createElementBlock("ul",{class:"bread-crumbs-yui-kit","data-testid":I.dataTestid},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.items,(u,b)=>(s.openBlock(),s.createElementBlock("li",{class:s.normalizeClass(i.value.crumbs),key:u.path,"data-testid":`${I.dataTestid}-Crumbs${b}`},[a(b)?(s.openBlock(),s.createElementBlock("div",{key:0,"data-testid":`${I.dataTestid}-ShowSubList${b}`},[s.createElementVNode("span",{class:"bread-crumbs-yui-kit--closed",onClick:l,"data-testid":`${I.dataTestid}-Closed${b}`},"...",8,Vx),s.createElementVNode("ul",{class:s.normalizeClass(A.value.crumbs),"data-testid":`${I.dataTestid}-Crumbs${b}`},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.subCrumbs,(Z,w)=>(s.openBlock(),s.createElementBlock("li",{key:Z.path,class:s.normalizeClass(i.value.subcrumbs),"data-testid":`${I.dataTestid}-SubCrumbs${w}`},[s.createElementVNode("span",{title:Z.title,onClick:G=>n(Z,w),class:s.normalizeClass({"disabled-yui-kit":!Z.path}),"data-testid":`${I.dataTestid}-SubCrumbs-Title${w}`},s.toDisplayString(o(Z)),11,Rx)],10,Mx))),128))],10,Nx)],8,Yx)):s.createCommentVNode("",!0),u.isSub?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(t.getClassesLink(u,b===t.crumbs.length-1)),"data-testid":`${I.dataTestid}-Classes${b}`},[s.createElementVNode("span",{class:s.normalizeClass(t.getClassesSpan(b)),onClick:Z=>n(u,b),"data-testid":`${I.dataTestid}-Checked${b}`},[s.createTextVNode(s.toDisplayString(b!==t.crumbs.length-1?o(u):u.title),1),t.fullTitle(u)&&b!==t.crumbs.length-1?(s.openBlock(),s.createElementBlock("span",{key:0,"data-testid":`${I.dataTestid}-FullName`,class:"fullName-yui-kit"},s.toDisplayString(u.title),9,fx)):s.createCommentVNode("",!0)],10,Hx),b!==t.crumbs.length-1?(s.openBlock(),s.createBlock(Ng,{key:0,name:s.unref(dg).rightSmall,"data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"])):s.createCommentVNode("",!0)],10,Xx))],10,yx))),128))],8,px))}}),[["__scopeId","data-v-6c2ef4f4"]]);var Yt=(C=>(C.small="small",C.medium="medium",C.large="large",C.little="little",C))(Yt||{}),QI=(C=>(C.primary="primary",C.outline="outline",C.ghost="ghost",C.secondary="secondary",C.reject="reject",C.minor="minor",C))(QI||{});const Dx=["disabled","data-testid"],Sx=["data-testid"],Kx=["data-testid"],kx=s.defineComponent({__name:"Button",props:{disabled:{type:Boolean,default:!1},size:{default:Yt.medium},type:{default:QI.primary},pill:{type:Boolean,default:!1},backgroundColor:{},color:{default:""},dataTestid:{default:"Button"}},emits:["click"],setup(C,{emit:g}){const I=C,e=g,t=s.computed(()=>({"button-yui-kit":!0,[I.size]:!0,"disabled-yui-kit":I.disabled,"pill-yui-kit":I.pill,"primary-yui-kit":I.type===QI.primary,"secondary-yui-kit":I.type===QI.secondary,"outline-yui-kit":I.type===QI.outline,"reject-yui-kit":I.type===QI.reject,"ghost-yui-kit":I.type===QI.ghost,"minor-yui-kit":I.type===QI.minor})),i=s.computed(()=>({backgroundColor:I.backgroundColor})),A=s.computed(()=>({color:I.color==="primary"||I.color==="secondary"?"black":I.color})),n=l=>e("click",l);return(l,o)=>(s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass(t.value),disabled:I.disabled,tabindex:"0",style:s.normalizeStyle(i.value),"data-testid":I.dataTestid,onClick:n,onKeyup:s.withKeys(n,["enter"])},[l.$slots["left-icon"]?(s.openBlock(),s.createElementBlock("span",{key:0,style:s.normalizeStyle(A.value),"data-testid":`${I.dataTestid}-LeftIcon`},[s.renderSlot(l.$slots,"left-icon",{},void 0,!0)],12,Sx)):s.createCommentVNode("",!0),s.renderSlot(l.$slots,"default",{},void 0,!0),l.$slots["right-icon"]?(s.openBlock(),s.createElementBlock("span",{key:1,style:s.normalizeStyle(A.value),"data-testid":`${I.dataTestid}-RightIcon`},[s.renderSlot(l.$slots,"right-icon",{},void 0,!0)],12,Kx)):s.createCommentVNode("",!0)],46,Dx))}}),MC=yg(kx,[["__scopeId","data-v-4529c65c"]]),Fx=["data-testid"],zx=["data-testid","onClick"],AG=yg(s.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=s.reactive({activeIndex:0}),i=s.computed(()=>[{"switch-yui-kit-list_default":I.theme==="default","switch-yui-kit-list_contrast":I.theme==="contrast","switch-yui-kit-list_disabled":I.disabled}]),A=a=>({"switch-yui-kit-item":!0,"switch-yui-kit-active":t.activeIndex===a,"switch-yui-kit-active_disabled":t.activeIndex===a&&I.disabled,"switch-yui-kit-item_disabled":I.disabled}),n=a=>typeof a=="string"?a:a.label,l=a=>typeof a=="string"?a:a.value,o=a=>{t.activeIndex!==a&&(t.activeIndex=a,e("change",{index:a,value:l(I.items[a])}))};return s.watch(()=>I.defaultValue,()=>{t.activeIndex=I.defaultValue?I.items.findIndex(a=>l(a)===I.defaultValue)??0:0}),s.onMounted(()=>{if(I.defaultValue){const a=I.items.findIndex(d=>l(d)===I.defaultValue);a!==-1&&(t.activeIndex=a)}}),(a,d)=>(s.openBlock(),s.createElementBlock("ul",{class:s.normalizeClass(["switch-yui-kit-list",i.value]),"data-testid":I.dataTestid},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.items,(m,u)=>(s.openBlock(),s.createElementBlock("li",{key:u,class:s.normalizeClass(A(u)),"data-testid":`${I.dataTestid}-Item${u}`,onClick:b=>o(u)},[I.isIcons?(s.openBlock(),s.createBlock(Ng,{key:0,name:m,"data-testid":`${I.dataTestid}-Item-Icon${u}`},null,8,["name","data-testid"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(n(m)),1)],64))],10,zx))),128))],10,Fx))}}),[["__scopeId","data-v-cdc0b286"]]);function QC(C){return s.getCurrentScope()?(s.onScopeDispose(C),!0):!1}function hg(C){return typeof C=="function"?C():s.unref(C)}const hA={mounted:"mounted",updated:"updated",unmounted:"unmounted"},bA=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const nG=C=>C!=null,Jx=Object.prototype.toString,sX=C=>Jx.call(C)==="[object Object]",lG=()=>+Date.now(),Wy=(C,g,I)=>Math.min(I,Math.max(g,C)),UI=()=>{},sG=Lx();function Lx(){var C,g;return bA&&((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 Ku(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 By=C=>C();function Tx(C,g={}){let I,e,t=UI;const i=n=>{clearTimeout(n),t(),t=UI};return n=>{const l=hg(C),o=hg(g.maxWait);return I&&i(I),l<=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())},l)})}}function oX(...C){let g=0,I,e=!0,t=UI,i,A,n,l,o;!s.isRef(C[0])&&typeof C[0]=="object"?{delay:A,trailing:n=!0,leading:l=!0,rejectOnCancel:o=!1}=C[0]:[A,n=!0,l=!0,o=!1]=C;const a=()=>{I&&(clearTimeout(I),I=void 0,t(),t=UI)};return m=>{const u=hg(A),b=Date.now()-g,Z=()=>i=m();return a(),u<=0?(g=Date.now(),Z()):(b>u&&(l||!e)?(g=Date.now(),Z()):n&&(i=new Promise((w,G)=>{t=o?G:w,I=setTimeout(()=>{g=Date.now(),e=!0,w(Z()),a()},Math.max(0,u-b))})),!l&&!I&&(I=setTimeout(()=>e=!0,u)),e=!1,i)}}function vx(C=By){const g=s.ref(!0);function I(){g.value=!1}function e(){g.value=!0}const t=(...i)=>{g.value&&C(...i)};return{isActive:s.readonly(g),pause:I,resume:e,eventFilter:t}}function py(C,g=!1,I="Timeout"){return new Promise((e,t)=>{setTimeout(g?()=>t(I):e,C)})}function jx(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 xx(C,g,I=!1){return g.reduce((e,t)=>(t in C&&(!I||C[t]!==void 0)&&(e[t]=C[t]),e),{})}function Ox(C){return Object.entries(C)}function aX(C){return s.getCurrentInstance()}function oG(...C){if(C.length!==1)return s.toRef(...C);const g=C[0];return typeof g=="function"?s.readonly(s.customRef(()=>({get:g,set:UI}))):s.ref(g)}function dX(C,g=200,I={}){return Ku(Tx(g,I),C)}function Qx(C,g=200,I=!1,e=!0,t=!1){return Ku(oX(g,I,e,t),C)}function Ux(C,g,I={}){const{eventFilter:e=By,...t}=I;return s.watch(C,Ku(e,g),t)}function aG(C,g,I={}){const{eventFilter:e,...t}=I,{eventFilter:i,pause:A,resume:n,isActive:l}=vx(e);return{stop:Ux(C,g,{...t,eventFilter:i}),pause:A,resume:n,isActive:l}}function cX(C,g,...[I]){const{flush:e="sync",deep:t=!1,immediate:i=!0,direction:A="both",transform:n={}}=I||{},l=[],o="ltr"in n&&n.ltr||(m=>m),a="rtl"in n&&n.rtl||(m=>m);return(A==="both"||A==="ltr")&&l.push(aG(C,m=>{l.forEach(u=>u.pause()),g.value=o(m),l.forEach(u=>u.resume())},{flush:e,deep:t,immediate:i})),(A==="both"||A==="rtl")&&l.push(aG(g,m=>{l.forEach(u=>u.pause()),C.value=a(m),l.forEach(u=>u.resume())},{flush:e,deep:t,immediate:i})),()=>{l.forEach(m=>m.stop())}}function rX(C,g={}){if(!s.isRef(C))return s.toRefs(C);const I=Array.isArray(C.value)?Array.from({length:C.value.length}):{};for(const e in C.value)I[e]=s.customRef(()=>({get(){return C.value[e]},set(t){var i;if((i=hg(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 $n(C,g=!0,I){aX()?s.onMounted(C,I):g?C():s.nextTick(C)}function Ex(C,g){aX()&&s.onUnmounted(C,g)}function yy(C,g=!1){function I(d,{flush:m="sync",deep:u=!1,timeout:b,throwOnTimeout:Z}={}){let w=null;const B=[new Promise(p=>{w=s.watch(C,y=>{d(y)!==g&&(w?w():s.nextTick(()=>w==null?void 0:w()),p(y))},{flush:m,deep:u,immediate:!0})})];return b!=null&&B.push(py(b,Z).then(()=>hg(C)).finally(()=>w==null?void 0:w())),Promise.race(B)}function e(d,m){if(!s.isRef(d))return I(y=>y===d,m);const{flush:u="sync",deep:b=!1,timeout:Z,throwOnTimeout:w}=m??{};let G=null;const p=[new Promise(y=>{G=s.watch([C,d],([Y,R])=>{g!==(Y===R)&&(G?G():s.nextTick(()=>G==null?void 0:G()),y(Y))},{flush:u,deep:b,immediate:!0})})];return Z!=null&&p.push(py(Z,w).then(()=>hg(C)).finally(()=>(G==null||G(),hg(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 l(d,m){return I(u=>{const b=Array.from(u);return b.includes(d)||b.includes(hg(d))},m)}function o(d){return a(1,d)}function a(d=1,m){let u=-1;return I(()=>(u+=1,u>=d),m)}return Array.isArray(hg(C))?{toMatch:I,toContains:l,changed:o,changedTimes:a,get not(){return yy(C,!g)}}:{toMatch:I,toBe:e,toBeTruthy:t,toBeNull:i,toBeNaN:n,toBeUndefined:A,changed:o,changedTimes:a,get not(){return yy(C,!g)}}}function Yy(C){return yy(C)}function mX(C,g=1e3,I={}){const{immediate:e=!0,immediateCallback:t=!1}=I;let i=null;const A=s.ref(!1);function n(){i&&(clearInterval(i),i=null)}function l(){A.value=!1,n()}function o(){const a=hg(g);a<=0||(A.value=!0,t&&C(),n(),i=setInterval(C,a))}if(e&&bA&&o(),s.isRef(g)||typeof g=="function"){const a=s.watch(g,()=>{A.value&&bA&&o()});QC(a)}return QC(l),{isActive:A,pause:l,resume:o}}function Px(C,g,I={}){const{immediate:e=!0}=I,t=s.ref(!1);let i=null;function A(){i&&(clearTimeout(i),i=null)}function n(){t.value=!1,A()}function l(...o){A(),t.value=!0,i=setTimeout(()=>{t.value=!1,i=null,C(...o)},hg(g))}return e&&(t.value=!0,bA&&l()),QC(n),{isPending:s.readonly(t),start:l,stop:n}}function _x(C=!1,g={}){const{truthyValue:I=!0,falsyValue:e=!1}=g,t=s.isRef(C),i=s.ref(C);function A(n){if(arguments.length)return i.value=n,i.value;{const l=hg(I);return i.value=i.value===l?hg(e):l,i.value}}return t?A:[i,A]}const yI=bA?window:void 0,Vy=bA?window.document:void 0,ku=bA?window.navigator:void 0;function eC(C){var g;const I=hg(C);return(g=I==null?void 0:I.$el)!=null?g:I}function Xg(...C){let g,I,e,t;if(typeof C[0]=="string"||Array.isArray(C[0])?([I,e,t]=C,g=yI):[g,I,e,t]=C,!g)return UI;Array.isArray(I)||(I=[I]),Array.isArray(e)||(e=[e]);const i=[],A=()=>{i.forEach(a=>a()),i.length=0},n=(a,d,m,u)=>(a.addEventListener(d,m,u),()=>a.removeEventListener(d,m,u)),l=s.watch(()=>[eC(g),hg(t)],([a,d])=>{if(A(),!a)return;const m=sX(d)?{...d}:d;i.push(...I.flatMap(u=>e.map(b=>n(a,u,b,m))))},{immediate:!0,flush:"post"}),o=()=>{l(),A()};return QC(o),o}let uX=!1;function $x(C,g,I={}){const{window:e=yI,ignore:t=[],capture:i=!0,detectIframe:A=!1}=I;if(!e)return UI;sG&&!uX&&(uX=!0,Array.from(e.document.body.children).forEach(u=>u.addEventListener("click",UI)),e.document.documentElement.addEventListener("click",UI));let n=!0;const l=u=>hg(t).some(b=>{if(typeof b=="string")return Array.from(e.document.querySelectorAll(b)).some(Z=>Z===u.target||u.composedPath().includes(Z));{const Z=eC(b);return Z&&(u.target===Z||u.composedPath().includes(Z))}}),o=u=>{const b=eC(C);if(!(!b||b===u.target||u.composedPath().includes(b))){if(u.detail===0&&(n=!l(u)),!n){n=!0;return}g(u)}};let a=!1;const d=[Xg(e,"click",u=>{a||(a=!0,setTimeout(()=>{a=!1},0),o(u))},{passive:!0,capture:i}),Xg(e,"pointerdown",u=>{const b=eC(C);n=!l(u)&&!!(b&&!u.composedPath().includes(b))},{passive:!0}),A&&Xg(e,"blur",u=>{setTimeout(()=>{var b;const Z=eC(C);((b=e.document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(Z!=null&&Z.contains(e.document.activeElement))&&g(u)},0)})].filter(Boolean);return()=>d.forEach(u=>u())}function qx(){const C=s.ref(!1),g=s.getCurrentInstance();return g&&s.onMounted(()=>{C.value=!0},g),C}function Vt(C){const g=qx();return s.computed(()=>(g.value,!!C()))}function hX(C,g,I={}){const{window:e=yI,...t}=I;let i;const A=Vt(()=>e&&"MutationObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},l=s.computed(()=>{const m=hg(C),u=(Array.isArray(m)?m:[m]).map(eC).filter(nG);return new Set(u)}),o=s.watch(()=>l.value,m=>{n(),A.value&&m.size&&(i=new MutationObserver(g),m.forEach(u=>i.observe(u,t)))},{immediate:!0,flush:"post"}),a=()=>i==null?void 0:i.takeRecords(),d=()=>{o(),n()};return QC(d),{isSupported:A,stop:d,takeRecords:a}}function gO(C={}){var g;const{window:I=yI,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=s.ref(),l=()=>{n.value=A()};return I&&(Xg(I,"blur",o=>{o.relatedTarget===null&&l()},!0),Xg(I,"focus",l,!0)),t&&hX(i,o=>{o.filter(a=>a.removedNodes.length).map(a=>Array.from(a.removedNodes)).flat().forEach(a=>{a===n.value&&l()})},{childList:!0,subtree:!0}),l(),n}function bX(C,g={}){const{immediate:I=!0,fpsLimit:e=void 0,window:t=yI}=g,i=s.ref(!1),A=e?1e3/e:null;let n=0,l=null;function o(m){if(!i.value||!t)return;n||(n=m);const u=m-n;if(A&&u<A){l=t.requestAnimationFrame(o);return}n=m,C({delta:u,timestamp:m}),l=t.requestAnimationFrame(o)}function a(){!i.value&&t&&(i.value=!0,n=0,l=t.requestAnimationFrame(o))}function d(){i.value=!1,l!=null&&t&&(t.cancelAnimationFrame(l),l=null)}return I&&a(),QC(d),{isActive:s.readonly(i),pause:d,resume:a}}function IO(C={}){const{navigator:g=ku}=C,I=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],e=Vt(()=>g&&"getBattery"in g&&typeof g.getBattery=="function"),t=s.ref(!1),i=s.ref(0),A=s.ref(0),n=s.ref(1);let l;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=>{l=a,o.call(l),Xg(l,I,o,{passive:!0})}),{isSupported:e,charging:t,chargingTime:i,dischargingTime:A,level:n}}function ms(C,g={}){const{window:I=yI}=g,e=Vt(()=>I&&"matchMedia"in I&&typeof I.matchMedia=="function");let t;const i=s.ref(!1),A=o=>{i.value=o.matches},n=()=>{t&&("removeEventListener"in t?t.removeEventListener("change",A):t.removeListener(A))},l=s.watchEffect(()=>{e.value&&(n(),t=I.matchMedia(hg(C)),"addEventListener"in t?t.addEventListener("change",A):t.addListener(A),i.value=t.matches)});return QC(()=>{l(),n(),t=void 0}),i}const ZX=["hash","host","hostname","href","pathname","port","protocol","search"];function CO(C={}){const{window:g=yI}=C,I=Object.fromEntries(ZX.map(i=>[i,s.ref()]));for(const[i,A]of Ox(I))s.watch(A,n=>{!(g!=null&&g.location)||g.location[i]===n||(g.location[i]=n)});const e=i=>{var A;const{state:n,length:l}=(g==null?void 0:g.history)||{},{origin:o}=(g==null?void 0:g.location)||{};for(const a of ZX)I[a].value=(A=g==null?void 0:g.location)==null?void 0:A[a];return s.reactive({trigger:i,state:n,length:l,origin:o,...I})},t=s.ref(e("load"));return g&&(Xg(g,"popstate",()=>t.value=e("popstate"),{passive:!0}),Xg(g,"hashchange",()=>t.value=e("hashchange"),{passive:!0})),t}function Ny(C,g={}){const{controls:I=!1,navigator:e=ku}=g,t=Vt(()=>e&&"permissions"in e),i=s.shallowRef(),A=typeof C=="string"?{name:C}:C,n=s.shallowRef(),l=()=>{var a,d;n.value=(d=(a=i.value)==null?void 0:a.state)!=null?d:"prompt"};Xg(i,"change",l);const o=jx(async()=>{if(t.value){if(!i.value)try{i.value=await e.permissions.query(A)}catch{i.value=void 0}finally{l()}if(I)return s.toRaw(i.value)}});return o(),I?{state:n,isSupported:t,query:o}:n}function eO(C={}){const{navigator:g=ku,read:I=!1,source:e,copiedDuring:t=1500,legacy:i=!1}=C,A=Vt(()=>g&&"clipboard"in g),n=Ny("clipboard-read"),l=Ny("clipboard-write"),o=s.computed(()=>A.value||i),a=s.ref(""),d=s.ref(!1),m=Px(()=>d.value=!1,t);function u(){A.value&&G(n.value)?g.clipboard.readText().then(B=>{a.value=B}):a.value=w()}o.value&&I&&Xg(["copy","cut"],u);async function b(B=hg(e)){o.value&&B!=null&&(A.value&&G(l.value)?await g.clipboard.writeText(B):Z(B),a.value=B,d.value=!0,m.start())}function Z(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 w(){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 G(B){return B==="granted"||B==="prompt"}return{isSupported:o,text:a,copied:d,copy:b}}const dG=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},cG="__vueuse_ssr_handlers__",tO=iO();function iO(){return cG in dG||(dG[cG]=dG[cG]||{}),dG[cG]}function GX(C,g){return tO[C]||g}function My(C){return ms("(prefers-color-scheme: dark)",C)}function AO(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 nO={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()}},wX="vueuse-storage";function WX(C,g,I,e={}){var t;const{flush:i="pre",deep:A=!0,listenToStorageChanges:n=!0,writeDefaults:l=!0,mergeDefaults:o=!1,shallow:a,window:d=yI,eventFilter:m,onError:u=D=>{console.error(D)},initOnMounted:b}=e,Z=(a?s.shallowRef:s.ref)(typeof g=="function"?g():g);if(!I)try{I=GX("getDefaultStorage",()=>{var D;return(D=yI)==null?void 0:D.localStorage})()}catch(D){u(D)}if(!I)return Z;const w=hg(g),G=AO(w),B=(t=e.serializer)!=null?t:nO[G],{pause:p,resume:y}=aG(Z,()=>R(Z.value),{flush:i,deep:A,eventFilter:m});d&&n&&$n(()=>{I instanceof Storage?Xg(d,"storage",H):Xg(d,wX,z),b&&H()}),b||H();function Y(D,F){if(d){const T={key:C,oldValue:D,newValue:F,storageArea:I};d.dispatchEvent(I instanceof Storage?new StorageEvent("storage",T):new CustomEvent(wX,{detail:T}))}}function R(D){try{const F=I.getItem(C);if(D==null)Y(F,null),I.removeItem(C);else{const T=B.write(D);F!==T&&(I.setItem(C,T),Y(F,T))}}catch(F){u(F)}}function V(D){const F=D?D.newValue:I.getItem(C);if(F==null)return l&&w!=null&&I.setItem(C,B.write(w)),w;if(!D&&o){const T=B.read(F);return typeof o=="function"?o(T,w):G==="object"&&!Array.isArray(T)?{...w,...T}:T}else return typeof F!="string"?F:B.read(F)}function H(D){if(!(D&&D.storageArea!==I)){if(D&&D.key==null){Z.value=w;return}if(!(D&&D.key!==C)){p();try{(D==null?void 0:D.newValue)!==B.write(Z.value)&&(Z.value=V(D))}catch(F){u(F)}finally{D?s.nextTick(y):y()}}}}function z(D){H(D.detail)}return Z}const lO="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function sO(C={}){const{selector:g="html",attribute:I="class",initialValue:e="auto",window:t=yI,storage:i,storageKey:A="vueuse-color-scheme",listenToStorageChanges:n=!0,storageRef:l,emitAuto:o,disableTransition:a=!0}=C,d={auto:"",light:"light",dark:"dark",...C.modes||{}},m=My({window:t}),u=s.computed(()=>m.value?"dark":"light"),b=l||(A==null?oG(e):WX(A,e,i,{window:t,listenToStorageChanges:n})),Z=s.computed(()=>b.value==="auto"?u.value:b.value),w=GX("updateHTMLAttrs",(y,Y,R)=>{const V=typeof y=="string"?t==null?void 0:t.document.querySelector(y):eC(y);if(!V)return;const H=new Set,z=new Set;let D=null;if(Y==="class"){const T=R.split(/\s/g);Object.values(d).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{T.includes(O)?H.add(O):z.add(O)})}else D={key:Y,value:R};if(H.size===0&&z.size===0&&D===null)return;let F;a&&(F=t.document.createElement("style"),F.appendChild(document.createTextNode(lO)),t.document.head.appendChild(F));for(const T of H)V.classList.add(T);for(const T of z)V.classList.remove(T);D&&V.setAttribute(D.key,D.value),a&&(t.getComputedStyle(F).opacity,document.head.removeChild(F))});function G(y){var Y;w(g,I,(Y=d[y])!=null?Y:y)}function B(y){C.onChanged?C.onChanged(y,G):G(y)}s.watch(Z,B,{flush:"post",immediate:!0}),$n(()=>B(Z.value));const p=s.computed({get(){return o?b.value:Z.value},set(y){b.value=y}});try{return Object.assign(p,{store:b,system:u,state:Z})}catch{return p}}function oO(C={}){const{valueDark:g="dark",valueLight:I="",window:e=yI}=C,t=sO({...C,onChanged:(n,l)=>{var o;C.onChanged?(o=C.onChanged)==null||o.call(C,n==="dark",l,n):l(n)},modes:{dark:g,light:I}}),i=s.computed(()=>t.system?t.system.value:My({window:e}).value?"dark":"light");return s.computed({get(){return t.value==="dark"},set(n){const l=n?"dark":"light";i.value===l?t.value="auto":t.value=l}})}function aO(C={}){const{window:g=yI,eventFilter:I=By}=C,e=s.ref({x:null,y:null,z:null}),t=s.ref({alpha:null,beta:null,gamma:null}),i=s.ref(0),A=s.ref({x:null,y:null,z:null});if(g){const n=Ku(I,l=>{e.value=l.acceleration,A.value=l.accelerationIncludingGravity,t.value=l.rotationRate,i.value=l.interval});Xg(g,"devicemotion",n)}return{acceleration:e,accelerationIncludingGravity:A,rotationRate:t,interval:i}}function dO(C={}){const{window:g=yI}=C,I=Vt(()=>g&&"DeviceOrientationEvent"in g),e=s.ref(!1),t=s.ref(null),i=s.ref(null),A=s.ref(null);return g&&I.value&&Xg(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 cO(C={}){const{window:g=yI}=C,I=s.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(),QC(t)}return{pixelRatio:I}}function rO(C={}){const{navigator:g=ku,requestPermissions:I=!1,constraints:e={audio:!0,video:!0},onUpdated:t}=C,i=s.ref([]),A=s.computed(()=>i.value.filter(b=>b.kind==="videoinput")),n=s.computed(()=>i.value.filter(b=>b.kind==="audioinput")),l=s.computed(()=>i.value.filter(b=>b.kind==="audiooutput")),o=Vt(()=>g&&g.mediaDevices&&g.mediaDevices.enumerateDevices),a=s.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 u(){if(!o.value)return!1;if(a.value)return!0;const{state:b,query:Z}=Ny("camera",{controls:!0});return await Z(),b.value!=="granted"&&(d=await g.mediaDevices.getUserMedia(e),m()),a.value=!0,a.value}return o.value&&(I&&u(),Xg(g.mediaDevices,"devicechange",m),m()),{devices:i,ensurePermissions:u,permissionGranted:a,videoInputs:A,audioInputs:n,audioOutputs:l,isSupported:o}}function mO(C={}){const{document:g=Vy}=C;if(!g)return s.ref("visible");const I=s.ref(g.visibilityState);return Xg(g,"visibilitychange",()=>{I.value=g.visibilityState}),I}function uO(C,g={}){var I,e;const{pointerTypes:t,preventDefault:i,stopPropagation:A,exact:n,onMove:l,onEnd:o,onStart:a,initialValue:d,axis:m="both",draggingElement:u=yI,containerElement:b,handle:Z=C,buttons:w=[0]}=g,G=s.ref((I=hg(d))!=null?I:{x:0,y:0}),B=s.ref(),p=H=>t?t.includes(H.pointerType):!0,y=H=>{hg(i)&&H.preventDefault(),hg(A)&&H.stopPropagation()},Y=H=>{var z;if(!hg(w).includes(H.button)||hg(g.disabled)||!p(H)||hg(n)&&H.target!==hg(C))return;const D=hg(b),F=(z=D==null?void 0:D.getBoundingClientRect)==null?void 0:z.call(D),T=hg(C).getBoundingClientRect(),O={x:H.clientX-(D?T.left-F.left+D.scrollLeft:T.left),y:H.clientY-(D?T.top-F.top+D.scrollTop:T.top)};(a==null?void 0:a(O,H))!==!1&&(B.value=O,y(H))},R=H=>{if(hg(g.disabled)||!p(H)||!B.value)return;const z=hg(b),D=hg(C).getBoundingClientRect();let{x:F,y:T}=G.value;(m==="x"||m==="both")&&(F=H.clientX-B.value.x,z&&(F=Math.min(Math.max(0,F),z.scrollWidth-D.width))),(m==="y"||m==="both")&&(T=H.clientY-B.value.y,z&&(T=Math.min(Math.max(0,T),z.scrollHeight-D.height))),G.value={x:F,y:T},l==null||l(G.value,H),y(H)},V=H=>{hg(g.disabled)||!p(H)||B.value&&(B.value=void 0,o==null||o(G.value,H),y(H))};if(bA){const H={capture:(e=g.capture)!=null?e:!0};Xg(Z,"pointerdown",Y,H),Xg(u,"pointermove",R,H),Xg(u,"pointerup",V,H)}return{...rX(G),position:G,isDragging:s.computed(()=>!!B.value),style:s.computed(()=>`left:${G.value.x}px;top:${G.value.y}px;`)}}function BX(C,g,I={}){const{window:e=yI,...t}=I;let i;const A=Vt(()=>e&&"ResizeObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},l=s.computed(()=>{const d=hg(C);return Array.isArray(d)?d.map(m=>eC(m)):[eC(d)]}),o=s.watch(l,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 QC(a),{isSupported:A,stop:a}}function hO(C,g={}){const{reset:I=!0,windowResize:e=!0,windowScroll:t=!0,immediate:i=!0,updateTiming:A="sync"}=g,n=s.ref(0),l=s.ref(0),o=s.ref(0),a=s.ref(0),d=s.ref(0),m=s.ref(0),u=s.ref(0),b=s.ref(0);function Z(){const G=eC(C);if(!G){I&&(n.value=0,l.value=0,o.value=0,a.value=0,d.value=0,m.value=0,u.value=0,b.value=0);return}const B=G.getBoundingClientRect();n.value=B.height,l.value=B.bottom,o.value=B.left,a.value=B.right,d.value=B.top,m.value=B.width,u.value=B.x,b.value=B.y}function w(){A==="sync"?Z():A==="next-frame"&&requestAnimationFrame(()=>Z())}return BX(C,w),s.watch(()=>eC(C),G=>!G&&w()),hX(C,w,{attributeFilter:["style","class"]}),t&&Xg("scroll",w,{capture:!0,passive:!0}),e&&Xg("resize",w,{passive:!0}),$n(()=>{i&&w()}),{height:n,bottom:l,left:o,right:a,top:d,width:m,x:u,y:b,update:w}}function pX(C,g={width:0,height:0},I={}){const{window:e=yI,box:t="content-box"}=I,i=s.computed(()=>{var d,m;return(m=(d=eC(C))==null?void 0:d.namespaceURI)==null?void 0:m.includes("svg")}),A=s.ref(g.width),n=s.ref(g.height),{stop:l}=BX(C,([d])=>{const m=t==="border-box"?d.borderBoxSize:t==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(e&&i.value){const u=eC(C);if(u){const b=u.getBoundingClientRect();A.value=b.width,n.value=b.height}}else if(m){const u=Array.isArray(m)?m:[m];A.value=u.reduce((b,{inlineSize:Z})=>b+Z,0),n.value=u.reduce((b,{blockSize:Z})=>b+Z,0)}else A.value=d.contentRect.width,n.value=d.contentRect.height},I);$n(()=>{const d=eC(C);d&&(A.value="offsetWidth"in d?d.offsetWidth:g.width,n.value="offsetHeight"in d?d.offsetHeight:g.height)});const o=s.watch(()=>eC(C),d=>{A.value=d?g.width:0,n.value=d?g.height:0});function a(){l(),o()}return{width:A,height:n,stop:a}}function bO(C,g,I={}){const{root:e,rootMargin:t="0px",threshold:i=0,window:A=yI,immediate:n=!0}=I,l=Vt(()=>A&&"IntersectionObserver"in A),o=s.computed(()=>{const b=hg(C);return(Array.isArray(b)?b:[b]).map(eC).filter(nG)});let a=UI;const d=s.ref(n),m=l.value?s.watch(()=>[o.value,eC(e),d.value],([b,Z])=>{if(a(),!d.value||!b.length)return;const w=new IntersectionObserver(g,{root:eC(Z),rootMargin:t,threshold:i});b.forEach(G=>G&&w.observe(G)),a=()=>{w.disconnect(),a=UI}},{immediate:n,flush:"post"}):UI,u=()=>{a(),m(),d.value=!1};return QC(u),{isSupported:l,isActive:d,pause(){a(),d.value=!1},resume(){d.value=!0},stop:u}}function ZO(C,g={}){const{window:I=yI,scrollTarget:e,threshold:t=0}=g,i=s.ref(!1);return bO(C,A=>{let n=i.value,l=0;for(const o of A)o.time>=l&&(l=o.time,n=o.isIntersecting);i.value=n},{root:e,window:I,threshold:t}),i}function GO(C={}){const{initialValue:g=""}=C,I=Vt(()=>typeof window<"u"&&"EyeDropper"in window),e=s.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}}const yX=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function wO(C,g={}){const{document:I=Vy,autoExit:e=!1}=g,t=s.computed(()=>{var G;return(G=eC(C))!=null?G:I==null?void 0:I.querySelector("html")}),i=s.ref(!1),A=s.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(G=>I&&G in I||t.value&&G in t.value)),n=s.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(G=>I&&G in I||t.value&&G in t.value)),l=s.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(G=>I&&G in I||t.value&&G in t.value)),o=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(G=>I&&G in I),a=Vt(()=>t.value&&I&&A.value!==void 0&&n.value!==void 0&&l.value!==void 0),d=()=>o?(I==null?void 0:I[o])===t.value:!1,m=()=>{if(l.value){if(I&&I[l.value]!=null)return I[l.value];{const G=t.value;if((G==null?void 0:G[l.value])!=null)return!!G[l.value]}}return!1};async function u(){if(!(!a.value||!i.value)){if(n.value)if((I==null?void 0:I[n.value])!=null)await I[n.value]();else{const G=t.value;(G==null?void 0:G[n.value])!=null&&await G[n.value]()}i.value=!1}}async function b(){if(!a.value||i.value)return;m()&&await u();const G=t.value;A.value&&(G==null?void 0:G[A.value])!=null&&(await G[A.value](),i.value=!0)}async function Z(){await(i.value?u():b())}const w=()=>{const G=m();(!G||G&&d())&&(i.value=G)};return Xg(I,yX,w,!1),Xg(()=>eC(t),yX,w,!1),e&&QC(u),{isSupported:a,isFullscreen:i,enter:b,exit:u,toggle:Z}}function WO(C={}){const{enableHighAccuracy:g=!0,maximumAge:I=3e4,timeout:e=27e3,navigator:t=ku,immediate:i=!0}=C,A=Vt(()=>t&&"geolocation"in t),n=s.ref(null),l=s.shallowRef(null),o=s.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,l.value=null}let d;function m(){A.value&&(d=t.geolocation.watchPosition(a,b=>l.value=b,{enableHighAccuracy:g,maximumAge:I,timeout:e}))}i&&m();function u(){d&&t&&t.geolocation.clearWatch(d)}return QC(()=>{u()}),{isSupported:A,coords:o,locatedAt:n,error:l,resume:m,pause:u}}const BO=["mousemove","mousedown","resize","keydown","touchstart","wheel"],pO=6e4;function yO(C=pO,g={}){const{initialState:I=!1,listenForVisibilityChange:e=!0,events:t=BO,window:i=yI,eventFilter:A=oX(50)}=g,n=s.ref(I),l=s.ref(lG());let o;const a=()=>{n.value=!1,clearTimeout(o),o=setTimeout(()=>n.value=!0,C)},d=Ku(A,()=>{l.value=lG(),a()});if(i){const m=i.document;for(const u of t)Xg(i,u,d,{passive:!0});e&&Xg(m,"visibilitychange",()=>{m.hidden||d()}),a()}return{idle:n,lastActive:l,reset:a}}const YO={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 YX(C={}){const{type:g="page",touch:I=!0,resetOnTouchEnds:e=!1,initialValue:t={x:0,y:0},window:i=yI,target:A=i,scroll:n=!0,eventFilter:l}=C;let o=null;const a=s.ref(t.x),d=s.ref(t.y),m=s.ref(null),u=typeof g=="function"?g:YO[g],b=Y=>{const R=u(Y);o=Y,R&&([a.value,d.value]=R,m.value="mouse")},Z=Y=>{if(Y.touches.length>0){const R=u(Y.touches[0]);R&&([a.value,d.value]=R,m.value="touch")}},w=()=>{if(!o||!i)return;const Y=u(o);o instanceof MouseEvent&&Y&&(a.value=Y[0]+i.scrollX,d.value=Y[1]+i.scrollY)},G=()=>{a.value=t.x,d.value=t.y},B=l?Y=>l(()=>b(Y),{}):Y=>b(Y),p=l?Y=>l(()=>Z(Y),{}):Y=>Z(Y),y=l?()=>l(()=>w(),{}):()=>w();if(A){const Y={passive:!0};Xg(A,["mousemove","dragover"],B,Y),I&&g!=="movement"&&(Xg(A,["touchstart","touchmove"],p,Y),e&&Xg(A,"touchend",G,Y)),n&&g==="page"&&Xg(i,"scroll",y,{passive:!0})}return{x:a,y:d,sourceType:m}}function VO(C,g={}){const{handleOutside:I=!0,window:e=yI}=g,t=g.type||"page",{x:i,y:A,sourceType:n}=YX(g),l=s.ref(C??(e==null?void 0:e.document.body)),o=s.ref(0),a=s.ref(0),d=s.ref(0),m=s.ref(0),u=s.ref(0),b=s.ref(0),Z=s.ref(!0);let w=()=>{};return e&&(w=s.watch([l,i,A],()=>{const G=eC(l);if(!G||!(G instanceof Element))return;const{left:B,top:p,width:y,height:Y}=G.getBoundingClientRect();d.value=B+(t==="page"?e.pageXOffset:0),m.value=p+(t==="page"?e.pageYOffset:0),u.value=Y,b.value=y;const R=i.value-d.value,V=A.value-m.value;Z.value=y===0||Y===0||R<0||V<0||R>y||V>Y,(I||!Z.value)&&(o.value=R,a.value=V)},{immediate:!0}),Xg(document,"mouseleave",()=>{Z.value=!0})),{x:i,y:A,sourceType:n,elementX:o,elementY:a,elementPositionX:d,elementPositionY:m,elementHeight:u,elementWidth:b,isOutside:Z,stop:w}}function NO(C={}){const{touch:g=!0,drag:I=!0,capture:e=!1,initialValue:t=!1,window:i=yI}=C,A=s.ref(t),n=s.ref(null);if(!i)return{pressed:A,sourceType:n};const l=d=>()=>{A.value=!0,n.value=d},o=()=>{A.value=!1,n.value=null},a=s.computed(()=>eC(C.target)||i);return Xg(a,"mousedown",l("mouse"),{passive:!0,capture:e}),Xg(i,"mouseleave",o,{passive:!0,capture:e}),Xg(i,"mouseup",o,{passive:!0,capture:e}),I&&(Xg(a,"dragstart",l("mouse"),{passive:!0,capture:e}),Xg(i,"drop",o,{passive:!0,capture:e}),Xg(i,"dragend",o,{passive:!0,capture:e})),g&&(Xg(a,"touchstart",l("touch"),{passive:!0,capture:e}),Xg(i,"touchend",o,{passive:!0,capture:e}),Xg(i,"touchcancel",o,{passive:!0,capture:e})),{pressed:A,sourceType:n}}function VX(C={}){const{window:g=yI}=C,I=g==null?void 0:g.navigator,e=Vt(()=>I&&"connection"in I),t=s.ref(!0),i=s.ref(!1),A=s.ref(void 0),n=s.ref(void 0),l=s.ref(void 0),o=s.ref(void 0),a=s.ref(void 0),d=s.ref(void 0),m=s.ref("unknown"),u=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,u&&(l.value=u.downlink,o.value=u.downlinkMax,d.value=u.effectiveType,a.value=u.rtt,i.value=u.saveData,m.value=u.type))}return g&&(Xg(g,"offline",()=>{t.value=!1,A.value=Date.now()}),Xg(g,"online",()=>{t.value=!0,n.value=Date.now()})),u&&Xg(u,"change",b,!1),b(),{isSupported:s.readonly(e),isOnline:s.readonly(t),saveData:s.readonly(i),offlineAt:s.readonly(A),onlineAt:s.readonly(n),downlink:s.readonly(l),downlinkMax:s.readonly(o),effectiveType:s.readonly(d),rtt:s.readonly(a),type:s.readonly(m)}}function NX(C={}){const{controls:g=!1,interval:I="requestAnimationFrame"}=C,e=s.ref(new Date),t=()=>e.value=new Date,i=I==="requestAnimationFrame"?bX(t,{immediate:!0}):mX(t,I,{immediate:!0});return g?{now:e,...i}:e}function MO(C){const g=s.ref(),I=()=>{g.value&&URL.revokeObjectURL(g.value),g.value=void 0};return s.watch(()=>hg(C),e=>{I(),e&&(g.value=URL.createObjectURL(e))},{immediate:!0}),QC(I),s.readonly(g)}function MX(C,g,I){if(typeof C=="function"||s.isReadonly(C))return s.computed(()=>Wy(hg(C),hg(g),hg(I)));const e=s.ref(C);return s.computed({get(){return e.value=Wy(e.value,hg(g),hg(I))},set(t){e.value=Wy(t,hg(g),hg(I))}})}function RO(C){const{total:g=Number.POSITIVE_INFINITY,pageSize:I=10,page:e=1,onPageChange:t=UI,onPageSizeChange:i=UI,onPageCountChange:A=UI}=C,n=MX(I,1,Number.POSITIVE_INFINITY),l=s.computed(()=>Math.max(1,Math.ceil(hg(g)/hg(n)))),o=MX(e,1,l),a=s.computed(()=>o.value===1),d=s.computed(()=>o.value===l.value);s.isRef(e)&&cX(e,o,{direction:s.isReadonly(e)?"ltr":"both"}),s.isRef(I)&&cX(I,n,{direction:s.isReadonly(I)?"ltr":"both"});function m(){o.value--}function u(){o.value++}const b={currentPage:o,currentPageSize:n,pageCount:l,isFirstPage:a,isLastPage:d,prev:m,next:u};return s.watch(o,()=>{t(s.reactive(b))}),s.watch(n,()=>{i(s.reactive(b))}),s.watch(l,()=>{A(s.reactive(b))}),b}function XO(C={}){const{isOnline:g}=VX(C);return g}function HO(C={}){const{window:g=yI}=C,I=s.ref(!1),e=t=>{if(!g)return;t=t||g.event;const i=t.relatedTarget||t.toElement;I.value=!i};return g&&(Xg(g,"mouseout",e,{passive:!0}),Xg(g.document,"mouseleave",e,{passive:!0}),Xg(g.document,"mouseenter",e,{passive:!0})),I}const RX={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},fO=Object.keys(RX);function DO(C={}){const{target:g=yI}=C,I=s.ref(!1),e=s.ref(C.initialValue||{});Object.assign(e.value,RX,e.value);const t=i=>{I.value=!0,!(C.pointerTypes&&!C.pointerTypes.includes(i.pointerType))&&(e.value=xx(i,fO,!1))};if(g){const i={passive:!0};Xg(g,["pointerdown","pointermove","pointerup"],t,i),Xg(g,"pointerleave",()=>I.value=!1,i)}return{...rX(e),isInside:I}}function SO(C,g={}){const{document:I=Vy}=g,e=Vt(()=>I&&"pointerLockElement"in I),t=s.ref(),i=s.ref();let A;e.value&&(Xg(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))}),Xg(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=eC(C))!=null?a:i.value:eC(o),!A)throw new Error("Target element undefined.");return A.requestPointerLock(),await Yy(t).toBe(A)}async function l(){return t.value?(I.exitPointerLock(),await Yy(t).toBeNull(),!0):!1}return{isSupported:e,element:t,triggerElement:i,lock:n,unlock:l}}function KO(C){const g=ms("(prefers-color-scheme: light)",C),I=ms("(prefers-color-scheme: dark)",C);return s.computed(()=>I.value?"dark":g.value?"light":"no-preference")}function kO(C){const g=ms("(prefers-contrast: more)",C),I=ms("(prefers-contrast: less)",C),e=ms("(prefers-contrast: custom)",C);return s.computed(()=>g.value?"more":I.value?"less":e.value?"custom":"no-preference")}function FO(C={}){const{window:g=yI}=C;if(!g)return s.ref(["en"]);const I=g.navigator,e=s.ref(I.languages);return Xg(g,"languagechange",()=>{e.value=I.languages}),e}function zO(C){const g=ms("(prefers-reduced-motion: reduce)",C);return s.computed(()=>g.value?"reduce":"no-preference")}const JO=[{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"}],LO={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 TO(C){return C.toISOString().slice(0,10)}function vO(C,g={}){const{controls:I=!1,updateInterval:e=3e4}=g,{now:t,...i}=NX({interval:e,controls:!0}),A=s.computed(()=>jO(new Date(hg(C)),g,hg(t)));return I?{timeAgo:A,...i}:A}function jO(C,g={},I=Date.now()){var e;const{max:t,messages:i=LO,fullDateFormatter:A=TO,units:n=JO,showSecond:l=!1,rounding:o="round"}=g,a=typeof o=="number"?w=>+w.toFixed(o):Math[o],d=+I-+C,m=Math.abs(d);function u(w,G){return a(Math.abs(w)/G.value)}function b(w,G){const B=u(w,G),p=w>0,y=Z(G.name,B,p);return Z(p?"past":"future",y,p)}function Z(w,G,B){const p=i[w];return typeof p=="function"?p(G,B):p.replace("{0}",G.toString())}if(m<6e4&&!l)return i.justNow;if(typeof t=="number"&&m>t)return A(new Date(C));if(typeof t=="string"){const w=(e=n.find(G=>G.name===t))==null?void 0:e.max;if(w&&m>w)return A(new Date(C))}for(const[w,G]of n.entries()){if(u(d,G)<=0&&n[w-1])return b(d,n[w-1]);if(m<G.max)return b(d,G)}return i.invalid}function xO(C={}){const{controls:g=!1,offset:I=0,immediate:e=!0,interval:t="requestAnimationFrame",callback:i}=C,A=s.ref(lG()+I),n=()=>A.value=lG()+I,l=i?()=>{n(),i(A.value)}:n,o=t==="requestAnimationFrame"?bX(l,{immediate:e}):mX(l,t,{immediate:e});return g?{timestamp:A,...o}:A}function OO(C,g){const{containerStyle:I,wrapperProps:e,scrollTo:t,calculateRange:i,currentList:A,containerRef:n}="itemHeight"in g?EO(g,C):UO(g,C);return{list:A,scrollTo:t,containerProps:{ref:n,onScroll:()=>{i()},style:I},wrapperProps:e}}function XX(C){const g=s.ref(null),I=pX(g),e=s.ref([]),t=s.shallowRef(C);return{state:s.ref({start:0,end:10}),source:t,currentList:e,size:I,containerRef:g}}function HX(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 l=I(n);if(i+=l,A=n,i>e)break}return A-t}}function fX(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 DX(C,g,I,e,{containerRef:t,state:i,currentList:A,source:n}){return()=>{const l=t.value;if(l){const o=I(C==="vertical"?l.scrollTop:l.scrollLeft),a=e(C==="vertical"?l.clientHeight:l.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((u,b)=>({data:u,index:b+i.value.start}))}}}function SX(C,g){return I=>typeof C=="number"?I*C:g.value.slice(0,I).reduce((t,i,A)=>t+C(A),0)}function KX(C,g,I,e){s.watch([C.width,C.height,g,I],()=>{e()})}function kX(C,g){return s.computed(()=>typeof C=="number"?g.value.length*C:g.value.reduce((I,e,t)=>I+C(t),0))}const QO={horizontal:"scrollLeft",vertical:"scrollTop"};function FX(C,g,I,e){return t=>{e.value&&(e.value[QO[C]]=I(t),g())}}function UO(C,g){const I=XX(g),{state:e,source:t,currentList:i,size:A,containerRef:n}=I,l={overflowX:"auto"},{itemWidth:o,overscan:a=5}=C,d=HX(e,t,o),m=fX(t,o),u=DX("horizontal",a,m,d,I),b=SX(o,t),Z=s.computed(()=>b(e.value.start)),w=kX(o,t);KX(A,g,n,u);const G=FX("horizontal",u,b,n),B=s.computed(()=>({style:{height:"100%",width:`${w.value-Z.value}px`,marginLeft:`${Z.value}px`,display:"flex"}}));return{scrollTo:G,calculateRange:u,wrapperProps:B,containerStyle:l,currentList:i,containerRef:n}}function EO(C,g){const I=XX(g),{state:e,source:t,currentList:i,size:A,containerRef:n}=I,l={overflowY:"auto"},{itemHeight:o,overscan:a=5}=C,d=HX(e,t,o),m=fX(t,o),u=DX("vertical",a,m,d,I),b=SX(o,t),Z=s.computed(()=>b(e.value.start)),w=kX(o,t);KX(A,g,n,u);const G=FX("vertical",u,b,n),B=s.computed(()=>({style:{width:"100%",height:`${w.value-Z.value}px`,marginTop:`${Z.value}px`}}));return{calculateRange:u,scrollTo:G,containerStyle:l,wrapperProps:B,currentList:i,containerRef:n}}function PO(C={}){const{window:g=yI}=C;if(!g)return s.ref(!1);const I=s.ref(g.document.hasFocus());return Xg(g,"blur",()=>{I.value=!1}),Xg(g,"focus",()=>{I.value=!0}),I}function _O(C={}){const{window:g=yI,initialWidth:I=Number.POSITIVE_INFINITY,initialHeight:e=Number.POSITIVE_INFINITY,listenOrientation:t=!0,includeScrollbar:i=!0,type:A="inner"}=C,n=s.ref(I),l=s.ref(e),o=()=>{g&&(A==="outer"?(n.value=g.outerWidth,l.value=g.outerHeight):i?(n.value=g.innerWidth,l.value=g.innerHeight):(n.value=g.document.documentElement.clientWidth,l.value=g.document.documentElement.clientHeight))};if(o(),$n(o),Xg("resize",o,{passive:!0}),t){const a=ms("(orientation: portrait)");s.watch(a,()=>o())}return{width:n,height:l}}const $O=s.defineComponent({name:"OnClickOutside",props:["as","options"],emits:["trigger"],setup(C,{slots:g,emit:I}){const e=s.ref();return $x(e,t=>{I("trigger",t)},C.options),()=>{if(g.default)return s.h(C.as||"div",{ref:e},g.default())}}}),Fe=bA?window:void 0;function UC(C){var g;const I=hg(C);return(g=I==null?void 0:I.$el)!=null?g:I}function qe(...C){let g,I,e,t;if(typeof C[0]=="string"||Array.isArray(C[0])?([I,e,t]=C,g=Fe):[g,I,e,t]=C,!g)return UI;Array.isArray(I)||(I=[I]),Array.isArray(e)||(e=[e]);const i=[],A=()=>{i.forEach(a=>a()),i.length=0},n=(a,d,m,u)=>(a.addEventListener(d,m,u),()=>a.removeEventListener(d,m,u)),l=s.watch(()=>[UC(g),hg(t)],([a,d])=>{if(A(),!a)return;const m=sX(d)?{...d}:d;i.push(...I.flatMap(u=>e.map(b=>n(a,u,b,m))))},{immediate:!0,flush:"post"}),o=()=>{l(),A()};return QC(o),o}let zX=!1;function JX(C,g,I={}){const{window:e=Fe,ignore:t=[],capture:i=!0,detectIframe:A=!1}=I;if(!e)return UI;sG&&!zX&&(zX=!0,Array.from(e.document.body.children).forEach(u=>u.addEventListener("click",UI)),e.document.documentElement.addEventListener("click",UI));let n=!0;const l=u=>hg(t).some(b=>{if(typeof b=="string")return Array.from(e.document.querySelectorAll(b)).some(Z=>Z===u.target||u.composedPath().includes(Z));{const Z=UC(b);return Z&&(u.target===Z||u.composedPath().includes(Z))}}),o=u=>{const b=UC(C);if(!(!b||b===u.target||u.composedPath().includes(b))){if(u.detail===0&&(n=!l(u)),!n){n=!0;return}g(u)}};let a=!1;const d=[qe(e,"click",u=>{a||(a=!0,setTimeout(()=>{a=!1},0),o(u))},{passive:!0,capture:i}),qe(e,"pointerdown",u=>{const b=UC(C);n=!l(u)&&!!(b&&!u.composedPath().includes(b))},{passive:!0}),A&&qe(e,"blur",u=>{setTimeout(()=>{var b;const Z=UC(C);((b=e.document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(Z!=null&&Z.contains(e.document.activeElement))&&g(u)},0)})].filter(Boolean);return()=>d.forEach(u=>u())}const Nc={[hA.mounted](C,g){const I=!g.modifiers.bubble;if(typeof g.value=="function")C.__onClickOutside_stop=JX(C,g.value,{capture:I});else{const[e,t]=g.value;C.__onClickOutside_stop=JX(C,e,Object.assign({capture:I},t))}},[hA.unmounted](C){C.__onClickOutside_stop()}};function qO(C){return typeof C=="function"?C:typeof C=="string"?g=>g.key===C:Array.isArray(C)?g=>C.includes(g.key):()=>!0}function LX(...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=Fe,eventName:i="keydown",passive:A=!1,dedupe:n=!1}=e,l=qO(g);return qe(t,i,a=>{a.repeat&&hg(n)||l(a)&&I(a)},A)}const gQ={[hA.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")LX(t,g.value,{target:C});else{const[i,A]=g.value;LX(t,i,{target:C,...A})}}},IQ=500,CQ=10;function Ry(C,g,I){var e,t;const i=s.computed(()=>UC(C));let A,n,l,o=!1;function a(){A&&(clearTimeout(A),A=void 0),n=void 0,l=void 0,o=!1}function d(G){var B,p,y;const[Y,R,V]=[l,n,o];if(a(),!(I!=null&&I.onMouseUp)||!R||!Y||(B=I==null?void 0:I.modifiers)!=null&&B.self&&G.target!==i.value)return;(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&G.preventDefault(),(y=I==null?void 0:I.modifiers)!=null&&y.stop&&G.stopPropagation();const H=G.x-R.x,z=G.y-R.y,D=Math.sqrt(H*H+z*z);I.onMouseUp(G.timeStamp-Y,D,V)}function m(G){var B,p,y,Y;(B=I==null?void 0:I.modifiers)!=null&&B.self&&G.target!==i.value||(a(),(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&G.preventDefault(),(y=I==null?void 0:I.modifiers)!=null&&y.stop&&G.stopPropagation(),n={x:G.x,y:G.y},l=G.timeStamp,A=setTimeout(()=>{o=!0,g(G)},(Y=I==null?void 0:I.delay)!=null?Y:IQ))}function u(G){var B,p,y,Y;if((B=I==null?void 0:I.modifiers)!=null&&B.self&&G.target!==i.value||!n||(I==null?void 0:I.distanceThreshold)===!1)return;(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&G.preventDefault(),(y=I==null?void 0:I.modifiers)!=null&&y.stop&&G.stopPropagation();const R=G.x-n.x,V=G.y-n.y;Math.sqrt(R*R+V*V)>=((Y=I==null?void 0:I.distanceThreshold)!=null?Y:CQ)&&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},Z=[qe(i,"pointerdown",m,b),qe(i,"pointermove",u,b),qe(i,["pointerup","pointerleave"],d,b)];return()=>Z.forEach(G=>G())}const eQ=s.defineComponent({name:"OnLongPress",props:["as","options"],emits:["trigger"],setup(C,{slots:g,emit:I}){const e=s.ref();return Ry(e,t=>{I("trigger",t)},C.options),()=>{if(g.default)return s.h(C.as||"div",{ref:e},g.default())}}}),TX={[hA.mounted](C,g){typeof g.value=="function"?Ry(C,g.value,{modifiers:g.modifiers}):Ry(C,...g.value)}},tQ=s.defineComponent({name:"UseActiveElement",setup(C,{slots:g}){const I=s.reactive({element:gO()});return()=>{if(g.default)return g.default(I)}}}),iQ=s.defineComponent({name:"UseBattery",setup(C,{slots:g}){const I=s.reactive(IO(C));return()=>{if(g.default)return g.default(I)}}}),AQ=s.defineComponent({name:"UseBrowserLocation",setup(C,{slots:g}){const I=s.reactive(CO());return()=>{if(g.default)return g.default(I)}}}),nQ=s.defineComponent({name:"UseClipboard",props:["source","read","navigator","copiedDuring","legacy"],setup(C,{slots:g}){const I=s.reactive(eO(C));return()=>{var e;return(e=g.default)==null?void 0:e.call(g,I)}}}),rG=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mG="__vueuse_ssr_handlers__",lQ=sQ();function sQ(){return mG in rG||(rG[mG]=rG[mG]||{}),rG[mG]}function vX(C,g){return lQ[C]||g}function oQ(){const C=s.ref(!1),g=s.getCurrentInstance();return g&&s.onMounted(()=>{C.value=!0},g),C}function uG(C){const g=oQ();return s.computed(()=>(g.value,!!C()))}function aQ(C,g={}){const{window:I=Fe}=g,e=uG(()=>I&&"matchMedia"in I&&typeof I.matchMedia=="function");let t;const i=s.ref(!1),A=o=>{i.value=o.matches},n=()=>{t&&("removeEventListener"in t?t.removeEventListener("change",A):t.removeListener(A))},l=s.watchEffect(()=>{e.value&&(n(),t=I.matchMedia(hg(C)),"addEventListener"in t?t.addEventListener("change",A):t.addListener(A),i.value=t.matches)});return QC(()=>{l(),n(),t=void 0}),i}function dQ(C){return aQ("(prefers-color-scheme: dark)",C)}function cQ(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 rQ={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()}},jX="vueuse-storage";function mQ(C,g,I,e={}){var t;const{flush:i="pre",deep:A=!0,listenToStorageChanges:n=!0,writeDefaults:l=!0,mergeDefaults:o=!1,shallow:a,window:d=Fe,eventFilter:m,onError:u=D=>{console.error(D)},initOnMounted:b}=e,Z=(a?s.shallowRef:s.ref)(typeof g=="function"?g():g);if(!I)try{I=vX("getDefaultStorage",()=>{var D;return(D=Fe)==null?void 0:D.localStorage})()}catch(D){u(D)}if(!I)return Z;const w=hg(g),G=cQ(w),B=(t=e.serializer)!=null?t:rQ[G],{pause:p,resume:y}=aG(Z,()=>R(Z.value),{flush:i,deep:A,eventFilter:m});d&&n&&$n(()=>{I instanceof Storage?qe(d,"storage",H):qe(d,jX,z),b&&H()}),b||H();function Y(D,F){if(d){const T={key:C,oldValue:D,newValue:F,storageArea:I};d.dispatchEvent(I instanceof Storage?new StorageEvent("storage",T):new CustomEvent(jX,{detail:T}))}}function R(D){try{const F=I.getItem(C);if(D==null)Y(F,null),I.removeItem(C);else{const T=B.write(D);F!==T&&(I.setItem(C,T),Y(F,T))}}catch(F){u(F)}}function V(D){const F=D?D.newValue:I.getItem(C);if(F==null)return l&&w!=null&&I.setItem(C,B.write(w)),w;if(!D&&o){const T=B.read(F);return typeof o=="function"?o(T,w):G==="object"&&!Array.isArray(T)?{...w,...T}:T}else return typeof F!="string"?F:B.read(F)}function H(D){if(!(D&&D.storageArea!==I)){if(D&&D.key==null){Z.value=w;return}if(!(D&&D.key!==C)){p();try{(D==null?void 0:D.newValue)!==B.write(Z.value)&&(Z.value=V(D))}catch(F){u(F)}finally{D?s.nextTick(y):y()}}}}function z(D){H(D.detail)}return Z}const uQ="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function hQ(C={}){const{selector:g="html",attribute:I="class",initialValue:e="auto",window:t=Fe,storage:i,storageKey:A="vueuse-color-scheme",listenToStorageChanges:n=!0,storageRef:l,emitAuto:o,disableTransition:a=!0}=C,d={auto:"",light:"light",dark:"dark",...C.modes||{}},m=dQ({window:t}),u=s.computed(()=>m.value?"dark":"light"),b=l||(A==null?oG(e):mQ(A,e,i,{window:t,listenToStorageChanges:n})),Z=s.computed(()=>b.value==="auto"?u.value:b.value),w=vX("updateHTMLAttrs",(y,Y,R)=>{const V=typeof y=="string"?t==null?void 0:t.document.querySelector(y):UC(y);if(!V)return;const H=new Set,z=new Set;let D=null;if(Y==="class"){const T=R.split(/\s/g);Object.values(d).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{T.includes(O)?H.add(O):z.add(O)})}else D={key:Y,value:R};if(H.size===0&&z.size===0&&D===null)return;let F;a&&(F=t.document.createElement("style"),F.appendChild(document.createTextNode(uQ)),t.document.head.appendChild(F));for(const T of H)V.classList.add(T);for(const T of z)V.classList.remove(T);D&&V.setAttribute(D.key,D.value),a&&(t.getComputedStyle(F).opacity,document.head.removeChild(F))});function G(y){var Y;w(g,I,(Y=d[y])!=null?Y:y)}function B(y){C.onChanged?C.onChanged(y,G):G(y)}s.watch(Z,B,{flush:"post",immediate:!0}),$n(()=>B(Z.value));const p=s.computed({get(){return o?b.value:Z.value},set(y){b.value=y}});try{return Object.assign(p,{store:b,system:u,state:Z})}catch{return p}}const bQ=s.defineComponent({name:"UseColorMode",props:["selector","attribute","modes","onChanged","storageKey","storage","emitAuto"],setup(C,{slots:g}){const I=hQ(C),e=s.reactive({mode:I,system:I.system,store:I.store});return()=>{if(g.default)return g.default(e)}}}),ZQ=s.defineComponent({name:"UseDark",props:["selector","attribute","valueDark","valueLight","onChanged","storageKey","storage"],setup(C,{slots:g}){const I=oO(C),e=s.reactive({isDark:I,toggleDark:_x(I)});return()=>{if(g.default)return g.default(e)}}}),GQ=s.defineComponent({name:"UseDeviceMotion",setup(C,{slots:g}){const I=s.reactive(aO());return()=>{if(g.default)return g.default(I)}}}),wQ=s.defineComponent({name:"UseDeviceOrientation",setup(C,{slots:g}){const I=s.reactive(dO());return()=>{if(g.default)return g.default(I)}}}),WQ=s.defineComponent({name:"UseDevicePixelRatio",setup(C,{slots:g}){const I=s.reactive({pixelRatio:cO()});return()=>{if(g.default)return g.default(I)}}}),BQ=s.defineComponent({name:"UseDevicesList",props:["onUpdated","requestPermissions","constraints"],setup(C,{slots:g}){const I=s.reactive(rO(C));return()=>{if(g.default)return g.default(I)}}}),pQ=s.defineComponent({name:"UseDocumentVisibility",setup(C,{slots:g}){const I=s.reactive({visibility:mO()});return()=>{if(g.default)return g.default(I)}}}),yQ=s.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=s.ref(),e=s.computed(()=>{var a;return(a=C.handle)!=null?a:I.value}),t=s.computed(()=>{var a;return(a=C.containerElement)!=null?a:void 0}),i=s.computed(()=>!!C.disabled),A=C.storageKey&&WX(C.storageKey,hg(C.initialValue)||{x:0,y:0},bA?C.storageType==="session"?sessionStorage:localStorage:void 0),n=A||C.initialValue||{x:0,y:0},l=(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=s.reactive(uO(I,{...C,handle:e,initialValue:n,onEnd:l,disabled:i,containerElement:t}));return()=>{if(g.default)return s.h(C.as||"div",{ref:I,style:`touch-action:none;${o.style}`},g.default(o))}}}),YQ=s.defineComponent({name:"UseElementBounding",props:["box","as"],setup(C,{slots:g}){const I=s.ref(),e=s.reactive(hO(I));return()=>{if(g.default)return s.h(C.as||"div",{ref:I},g.default(e))}}});function xX(C,g={}){const{delayEnter:I=0,delayLeave:e=0,window:t=Fe}=g,i=s.ref(!1);let A;const n=l=>{const o=l?I:e;A&&(clearTimeout(A),A=void 0),o?A=setTimeout(()=>i.value=l,o):i.value=l};return t&&(qe(C,"mouseenter",()=>n(!0),{passive:!0}),qe(C,"mouseleave",()=>n(!1),{passive:!0})),i}const VQ={[hA.mounted](C,g){const I=g.value;if(typeof I=="function"){const e=xX(C);s.watch(e,t=>I(t))}else{const[e,t]=I,i=xX(C,t);s.watch(i,A=>e(A))}}},NQ=s.defineComponent({name:"UseElementSize",props:["width","height","box","as"],setup(C,{slots:g}){const I=s.ref(),e=s.reactive(pX(I,{width:C.width,height:C.height},{box:C.box}));return()=>{if(g.default)return s.h(C.as||"div",{ref:I},g.default(e))}}});function Xy(C,g,I={}){const{window:e=Fe,...t}=I;let i;const A=uG(()=>e&&"ResizeObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},l=s.computed(()=>{const d=hg(C);return Array.isArray(d)?d.map(m=>UC(m)):[UC(d)]}),o=s.watch(l,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 QC(a),{isSupported:A,stop:a}}function MQ(C,g={width:0,height:0},I={}){const{window:e=Fe,box:t="content-box"}=I,i=s.computed(()=>{var d,m;return(m=(d=UC(C))==null?void 0:d.namespaceURI)==null?void 0:m.includes("svg")}),A=s.ref(g.width),n=s.ref(g.height),{stop:l}=Xy(C,([d])=>{const m=t==="border-box"?d.borderBoxSize:t==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(e&&i.value){const u=UC(C);if(u){const b=u.getBoundingClientRect();A.value=b.width,n.value=b.height}}else if(m){const u=Array.isArray(m)?m:[m];A.value=u.reduce((b,{inlineSize:Z})=>b+Z,0),n.value=u.reduce((b,{blockSize:Z})=>b+Z,0)}else A.value=d.contentRect.width,n.value=d.contentRect.height},I);$n(()=>{const d=UC(C);d&&(A.value="offsetWidth"in d?d.offsetWidth:g.width,n.value="offsetHeight"in d?d.offsetHeight:g.height)});const o=s.watch(()=>UC(C),d=>{A.value=d?g.width:0,n.value=d?g.height:0});function a(){l(),o()}return{width:A,height:n,stop:a}}const RQ={[hA.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}=MQ(C,...t);s.watch([i,A],([n,l])=>e({width:n,height:l}))}},XQ=s.defineComponent({name:"UseElementVisibility",props:["as"],setup(C,{slots:g}){const I=s.ref(),e=s.reactive({isVisible:ZO(I)});return()=>{if(g.default)return s.h(C.as||"div",{ref:I},g.default(e))}}});function Hy(C,g,I={}){const{root:e,rootMargin:t="0px",threshold:i=0,window:A=Fe,immediate:n=!0}=I,l=uG(()=>A&&"IntersectionObserver"in A),o=s.computed(()=>{const b=hg(C);return(Array.isArray(b)?b:[b]).map(UC).filter(nG)});let a=UI;const d=s.ref(n),m=l.value?s.watch(()=>[o.value,UC(e),d.value],([b,Z])=>{if(a(),!d.value||!b.length)return;const w=new IntersectionObserver(g,{root:UC(Z),rootMargin:t,threshold:i});b.forEach(G=>G&&w.observe(G)),a=()=>{w.disconnect(),a=UI}},{immediate:n,flush:"post"}):UI,u=()=>{a(),m(),d.value=!1};return QC(u),{isSupported:l,isActive:d,pause(){a(),d.value=!1},resume(){d.value=!0},stop:u}}function fy(C,g={}){const{window:I=Fe,scrollTarget:e,threshold:t=0}=g,i=s.ref(!1);return Hy(C,A=>{let n=i.value,l=0;for(const o of A)o.time>=l&&(l=o.time,n=o.isIntersecting);i.value=n},{root:e,window:I,threshold:t}),i}const HQ={[hA.mounted](C,g){if(typeof g.value=="function"){const I=g.value,e=fy(C);s.watch(e,t=>I(t),{immediate:!0})}else{const[I,e]=g.value,t=fy(C,e);s.watch(t,i=>I(i),{immediate:!0})}}},fQ=s.defineComponent({name:"UseEyeDropper",props:{sRGBHex:String},setup(C,{slots:g}){const I=s.reactive(GO());return()=>{if(g.default)return g.default(I)}}}),DQ=s.defineComponent({name:"UseFullscreen",props:["as"],setup(C,{slots:g}){const I=s.ref(),e=s.reactive(wO(I));return()=>{if(g.default)return s.h(C.as||"div",{ref:I},g.default(e))}}}),SQ=s.defineComponent({name:"UseGeolocation",props:["enableHighAccuracy","maximumAge","timeout","navigator"],setup(C,{slots:g}){const I=s.reactive(WO(C));return()=>{if(g.default)return g.default(I)}}}),KQ=s.defineComponent({name:"UseIdle",props:["timeout","events","listenForVisibilityChange","initialState"],setup(C,{slots:g}){const I=s.reactive(yO(C.timeout,C));return()=>{if(g.default)return g.default(I)}}});function kQ(C,g,I){const{immediate:e=!0,delay:t=0,onError:i=UI,onSuccess:A=UI,resetOnExecute:n=!0,shallow:l=!0,throwError:o}=I??{},a=l?s.shallowRef(g):s.ref(g),d=s.ref(!1),m=s.ref(!1),u=s.shallowRef(void 0);async function b(G=0,...B){n&&(a.value=g),u.value=void 0,d.value=!1,m.value=!0,G>0&&await py(G);const p=typeof C=="function"?C(...B):C;try{const y=await p;a.value=y,d.value=!0,A(y)}catch(y){if(u.value=y,i(y),o)throw y}finally{m.value=!1}return a.value}e&&b(t);const Z={state:a,isReady:d,isLoading:m,error:u,execute:b};function w(){return new Promise((G,B)=>{Yy(m).toBe(!1).then(()=>G(Z)).catch(B)})}return{...Z,then(G,B){return w().then(G,B)}}}async function FQ(C){return new Promise((g,I)=>{const e=new Image,{src:t,srcset:i,sizes:A,class:n,loading:l,crossorigin:o,referrerPolicy:a}=C;e.src=t,i&&(e.srcset=i),A&&(e.sizes=A),n&&(e.className=n),l&&(e.loading=l),o&&(e.crossOrigin=o),a&&(e.referrerPolicy=a),e.onload=()=>g(e),e.onerror=I})}function zQ(C,g={}){const I=kQ(()=>FQ(hg(C)),void 0,{resetOnExecute:!0,...g});return s.watch(()=>hg(C),()=>I.execute(g.delay),{deep:!0}),I}const JQ=s.defineComponent({name:"UseImage",props:["src","srcset","sizes","as","alt","class","loading","crossorigin","referrerPolicy"],setup(C,{slots:g}){const I=s.reactive(zQ(C));return()=>I.isLoading&&g.loading?g.loading(I):I.error&&g.error?g.error(I.error):g.default?g.default(I):s.h(C.as||"img",C)}});function hG(C){return typeof Window<"u"&&C instanceof Window?C.document.documentElement:typeof Document<"u"&&C instanceof Document?C.documentElement:C}const OX=1;function Dy(C,g={}){const{throttle:I=0,idle:e=200,onStop:t=UI,onScroll:i=UI,offset:A={left:0,right:0,top:0,bottom:0},eventListenerOptions:n={capture:!1,passive:!0},behavior:l="auto",window:o=Fe,onError:a=V=>{console.error(V)}}=g,d=s.ref(0),m=s.ref(0),u=s.computed({get(){return d.value},set(V){Z(V,void 0)}}),b=s.computed({get(){return m.value},set(V){Z(void 0,V)}});function Z(V,H){var z,D,F,T;if(!o)return;const O=hg(C);if(!O)return;(F=O instanceof Document?o.document.body:O)==null||F.scrollTo({top:(z=hg(H))!=null?z:b.value,left:(D=hg(V))!=null?D:u.value,behavior:hg(l)});const q=((T=O==null?void 0:O.document)==null?void 0:T.documentElement)||(O==null?void 0:O.documentElement)||O;u!=null&&(d.value=q.scrollLeft),b!=null&&(m.value=q.scrollTop)}const w=s.ref(!1),G=s.reactive({left:!0,right:!1,top:!0,bottom:!1}),B=s.reactive({left:!1,right:!1,top:!1,bottom:!1}),p=V=>{w.value&&(w.value=!1,B.left=!1,B.right=!1,B.top=!1,B.bottom=!1,t(V))},y=dX(p,I+e),Y=V=>{var H;if(!o)return;const z=((H=V==null?void 0:V.document)==null?void 0:H.documentElement)||(V==null?void 0:V.documentElement)||UC(V),{display:D,flexDirection:F}=getComputedStyle(z),T=z.scrollLeft;B.left=T<d.value,B.right=T>d.value;const O=Math.abs(T)<=(A.left||0),q=Math.abs(T)+z.clientWidth>=z.scrollWidth-(A.right||0)-OX;D==="flex"&&F==="row-reverse"?(G.left=q,G.right=O):(G.left=O,G.right=q),d.value=T;let Ig=z.scrollTop;V===o.document&&!Ig&&(Ig=o.document.body.scrollTop),B.top=Ig<m.value,B.bottom=Ig>m.value;const Q=Math.abs(Ig)<=(A.top||0),_=Math.abs(Ig)+z.clientHeight>=z.scrollHeight-(A.bottom||0)-OX;D==="flex"&&F==="column-reverse"?(G.top=_,G.bottom=Q):(G.top=Q,G.bottom=_),m.value=Ig},R=V=>{var H;if(!o)return;const z=(H=V.target.documentElement)!=null?H:V.target;Y(z),w.value=!0,y(V),i(V)};return qe(C,"scroll",I?Qx(R,I,!0,!1):R,n),$n(()=>{try{const V=hg(C);if(!V)return;Y(V)}catch(V){a(V)}}),qe(C,"scrollend",p,n),{x:u,y:b,isScrolling:w,arrivedState:G,directions:B,measure(){const V=hg(C);o&&V&&Y(V)}}}function QX(C,g,I={}){var e;const{direction:t="bottom",interval:i=100,canLoadMore:A=()=>!0}=I,n=s.reactive(Dy(C,{...I,offset:{[t]:(e=I.distance)!=null?e:0,...I.offset}})),l=s.ref(),o=s.computed(()=>!!l.value),a=s.computed(()=>hG(hg(C))),d=fy(a);function m(){if(n.measure(),!a.value||!d.value||!A(a.value))return;const{scrollHeight:b,clientHeight:Z,scrollWidth:w,clientWidth:G}=a.value,B=t==="bottom"||t==="top"?b<=Z:w<=G;(n.arrivedState[t]||B)&&(l.value||(l.value=Promise.all([g(n),new Promise(p=>setTimeout(p,i))]).finally(()=>{l.value=null,s.nextTick(()=>m())})))}const u=s.watch(()=>[n.arrivedState[t],d.value],m,{immediate:!0});return Ex(u),{isLoading:o,reset(){s.nextTick(()=>m())}}}const LQ={[hA.mounted](C,g){typeof g.value=="function"?QX(C,g.value):QX(C,...g.value)}},TQ={[hA.mounted](C,g){typeof g.value=="function"?Hy(C,g.value):Hy(C,...g.value)}},vQ=s.defineComponent({name:"UseMouse",props:["touch","resetOnTouchEnds","initialValue"],setup(C,{slots:g}){const I=s.reactive(YX(C));return()=>{if(g.default)return g.default(I)}}}),jQ=s.defineComponent({name:"UseMouseElement",props:["handleOutside","as"],setup(C,{slots:g}){const I=s.ref(),e=s.reactive(VO(I,C));return()=>{if(g.default)return s.h(C.as||"div",{ref:I},g.default(e))}}}),xQ=s.defineComponent({name:"UseMousePressed",props:["touch","initialValue","as"],setup(C,{slots:g}){const I=s.ref(),e=s.reactive(NO({...C,target:I}));return()=>{if(g.default)return s.h(C.as||"div",{ref:I},g.default(e))}}}),OQ=s.defineComponent({name:"UseNetwork",setup(C,{slots:g}){const I=s.reactive(VX());return()=>{if(g.default)return g.default(I)}}}),QQ=s.defineComponent({name:"UseNow",props:["interval"],setup(C,{slots:g}){const I=s.reactive(NX({...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),UQ=s.defineComponent({name:"UseObjectUrl",props:["object"],setup(C,{slots:g}){const I=oG(C,"object"),e=MO(I);return()=>{if(g.default&&e.value)return g.default(e)}}}),EQ=s.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=s.reactive(RO({...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)}}}),PQ=s.defineComponent({name:"UseOnline",setup(C,{slots:g}){const I=s.reactive({isOnline:XO()});return()=>{if(g.default)return g.default(I)}}}),_Q=s.defineComponent({name:"UsePageLeave",setup(C,{slots:g}){const I=s.reactive({isLeft:HO()});return()=>{if(g.default)return g.default(I)}}}),$Q=s.defineComponent({name:"UsePointer",props:["pointerTypes","initialValue","target"],setup(C,{slots:g}){const I=s.ref(null),e=s.reactive(DO({...C,target:C.target==="self"?I:Fe}));return()=>{if(g.default)return g.default(e,{ref:I})}}}),qQ=s.defineComponent({name:"UsePointerLock",props:["as"],setup(C,{slots:g}){const I=s.ref(),e=s.reactive(SO(I));return()=>{if(g.default)return s.h(C.as||"div",{ref:I},g.default(e))}}}),g4=s.defineComponent({name:"UsePreferredColorScheme",setup(C,{slots:g}){const I=s.reactive({colorScheme:KO()});return()=>{if(g.default)return g.default(I)}}}),I4=s.defineComponent({name:"UsePreferredContrast",setup(C,{slots:g}){const I=s.reactive({contrast:kO()});return()=>{if(g.default)return g.default(I)}}}),C4=s.defineComponent({name:"UsePreferredDark",setup(C,{slots:g}){const I=s.reactive({prefersDark:My()});return()=>{if(g.default)return g.default(I)}}}),e4=s.defineComponent({name:"UsePreferredLanguages",setup(C,{slots:g}){const I=s.reactive({languages:FO()});return()=>{if(g.default)return g.default(I)}}}),t4=s.defineComponent({name:"UsePreferredReducedMotion",setup(C,{slots:g}){const I=s.reactive({motion:zO()});return()=>{if(g.default)return g.default(I)}}}),i4={[hA.mounted](C,g){typeof g.value=="function"?Xy(C,g.value):Xy(C,...g.value)}};function A4(C,g,I={}){const{window:e=Fe,...t}=I;let i;const A=uG(()=>e&&"MutationObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},l=s.computed(()=>{const m=hg(C),u=(Array.isArray(m)?m:[m]).map(UC).filter(nG);return new Set(u)}),o=s.watch(()=>l.value,m=>{n(),A.value&&m.size&&(i=new MutationObserver(g),m.forEach(u=>i.observe(u,t)))},{immediate:!0,flush:"post"}),a=()=>i==null?void 0:i.takeRecords(),d=()=>{o(),n()};return QC(d),{isSupported:A,stop:d,takeRecords:a}}function bG(C,g,I={}){const{window:e=Fe,initialValue:t,observe:i=!1}=I,A=s.ref(t),n=s.computed(()=>{var o;return UC(g)||((o=e==null?void 0:e.document)==null?void 0:o.documentElement)});function l(){var o;const a=hg(C),d=hg(n);if(d&&e&&a){const m=(o=e.getComputedStyle(d).getPropertyValue(a))==null?void 0:o.trim();A.value=m||t}}return i&&A4(n,l,{attributeFilter:["style","class"],window:e}),s.watch([n,()=>hg(C)],(o,a)=>{a[0]&&a[1]&&a[0].style.removeProperty(a[1]),l()},{immediate:!0}),s.watch(A,o=>{var a;const d=hg(C);(a=n.value)!=null&&a.style&&d&&(o==null?n.value.style.removeProperty(d):n.value.style.setProperty(d,o))}),A}const UX="--vueuse-safe-area-top",EX="--vueuse-safe-area-right",PX="--vueuse-safe-area-bottom",_X="--vueuse-safe-area-left";function n4(){const C=s.ref(""),g=s.ref(""),I=s.ref(""),e=s.ref("");if(bA){const i=bG(UX),A=bG(EX),n=bG(PX),l=bG(_X);i.value="env(safe-area-inset-top, 0px)",A.value="env(safe-area-inset-right, 0px)",n.value="env(safe-area-inset-bottom, 0px)",l.value="env(safe-area-inset-left, 0px)",t(),qe("resize",dX(t))}function t(){C.value=ZG(UX),g.value=ZG(EX),I.value=ZG(PX),e.value=ZG(_X)}return{top:C,right:g,bottom:I,left:e,update:t}}function ZG(C){return getComputedStyle(document.documentElement).getPropertyValue(C)}const l4=s.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}=n4();return()=>{if(g.default)return s.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())}}}),s4={[hA.mounted](C,g){if(typeof g.value=="function"){const I=g.value,e=Dy(C,{onScroll(){I(e)},onStop(){I(e)}})}else{const[I,e]=g.value,t=Dy(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 $X(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:$X(I)}}function o4(C){const g=C||window.event,I=g.target;return $X(I)?!1:g.touches.length>1?!0:(g.preventDefault&&g.preventDefault(),!1)}const Sy=new WeakMap;function a4(C,g=!1){const I=s.ref(g);let e=null,t="";s.watch(oG(C),n=>{const l=hG(hg(n));if(l){const o=l;if(Sy.get(o)||Sy.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=hG(hg(C));!n||I.value||(sG&&(e=qe(n,"touchmove",l=>{o4(l)},{passive:!1})),n.style.overflow="hidden",I.value=!0)},A=()=>{const n=hG(hg(C));!n||!I.value||(sG&&(e==null||e()),n.style.overflow=t,Sy.delete(n),I.value=!1)};return QC(A),s.computed({get(){return I.value},set(n){n?i():A()}})}function d4(){let C=!1;const g=s.ref(!1);return(I,e)=>{if(g.value=e.value,C)return;C=!0;const t=a4(I,e.value);s.watch(g,i=>t.value=i)}}const c4=d4(),r4=s.defineComponent({name:"UseTimeAgo",props:["time","updateInterval","max","fullDateFormatter","messages","showSecond"],setup(C,{slots:g}){const I=s.reactive(vO(()=>C.time,{...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),m4=s.defineComponent({name:"UseTimestamp",props:["immediate","interval","offset"],setup(C,{slots:g}){const I=s.reactive(xO({...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),u4=s.defineComponent({name:"UseVirtualList",props:["list","options","height"],setup(C,{slots:g,expose:I}){const{list:e}=s.toRefs(C),{list:t,containerProps:i,wrapperProps:A,scrollTo:n}=OO(e,C.options);return I({scrollTo:n}),i.style&&typeof i.style=="object"&&!Array.isArray(i.style)&&(i.style.height=C.height||"300px"),()=>s.h("div",{...i},[s.h("div",{...A.value},t.value.map(l=>s.h("div",{style:{overflow:"hidden",height:l.height}},g.default?g.default(l):"Please set content!")))])}}),h4=s.defineComponent({name:"UseWindowFocus",setup(C,{slots:g}){const I=s.reactive({focused:PO()});return()=>{if(g.default)return g.default(I)}}}),b4=s.defineComponent({name:"UseWindowSize",props:["initialWidth","initialHeight"],setup(C,{slots:g}){const I=s.reactive(_O(C));return()=>{if(g.default)return g.default(I)}}});function YI(C,g=document.documentElement){for(const[I,e]of Object.entries(C))g.style.setProperty(I,String(e))}const Z4=["data-testid"],G4=["data-testid"],w4=["open","data-testid"],Mc=yg(s.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=s.reactive({isOpened:!1}),i=s.useId(),A=s.ref(null),n=s.ref(null),l=s.ref(null),o=s.computed(()=>`--anchor-select-${i}`);s.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=()=>{if(n.value&&A.value&&t.isOpened){const b=n.value.getBoundingClientRect();A.value.style.top=`${b.top+b.height}px`}};s.watch(()=>I.isOpened,()=>{t.isOpened=I.isOpened}),s.watch(()=>t.isOpened,m);const u=()=>{l.value&&YI({"anchor-name":`${o.value}`},l.value),A.value&&YI({"position-anchor":`${o.value}`},A.value)};return s.onMounted(()=>{I.isUseAnchor&&u(),window.addEventListener("scroll",m,!0)}),s.onUnmounted(()=>{window.removeEventListener("scroll",m,!0)}),(b,Z)=>s.withDirectives((s.openBlock(),s.createElementBlock("div",{ref_key:"selectRef",ref:l,class:"select-list-yui-kit","data-testid":I.dataTestid},[s.renderSlot(b.$slots,"body",{closeOpenList:a},()=>[s.createElementVNode("div",{ref_key:"currentRef",ref:n,class:s.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:s.withKeys(a,["enter"]),onClick:a,"data-testid":`${I.dataTestid}-Current`},[s.renderSlot(b.$slots,"header",{},void 0,!0)],42,G4)],!0),s.withDirectives(s.createElementVNode("ul",{ref_key:"dropdownRef",ref:A,class:s.normalizeClass(["select-list-yui-kit__list",I==null?void 0:I.optionsClasses]),open:t.isOpened,"data-testid":`${I.dataTestid}-OptionsList`},[s.renderSlot(b.$slots,"options",{},void 0,!0)],10,w4),[[s.vShow,t.isOpened]])],8,Z4)),[[s.unref(Nc),d,void 0,{bubble:!0}]])}}),[["__scopeId","data-v-daa52ae8"]]);function Fu(C){return C!==null&&typeof C=="object"&&"key"in C}function qX(C){return C!==null&&Array.isArray(C)&&typeof C[0]=="object"&&"key"in C[0]}const Ky=C=>C!==null&&typeof C=="object"&&"hint"in C,zu=C=>C!==null&&Array.isArray(C)&&Ky(C[0]),W4=["onClick","data-testid"],B4={class:"options__item"},p4={class:"options__value truncate-yui-kit"},y4={key:0,class:"options__used"},ky=yg(s.defineComponent({__name:"Options",props:{options:{},defaultOption:{},class:{},disabled:{type:Boolean},dataTestid:{default:"Options"}},emits:["change"],setup(C,{emit:g}){const I=C,e=s.reactive({choosedOption:I.defaultOption??(I.options[0]||""),lengthOption:0});s.watch(()=>I.defaultOption,()=>{I.defaultOption?e.choosedOption=I.defaultOption:e.choosedOption=""},{immediate:!0});const t=g,i=s.computed(()=>({"select-list-yui-kit__item":!0,"truncate-yui-kit":!0})),A=o=>{e.choosedOption=o,Fu(e.choosedOption)?t("change",e.choosedOption.key):t("change",e.choosedOption)},n=o=>{let a=!1;return Fu(o)?Fu(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)):Fu(e.choosedOption)?o===e.choosedOption.value&&(a=!0):o===e.choosedOption&&(a=!0),{active:a}},l=o=>Ky(o)?o.hint:Fu(o)?o.value:o;return(o,a)=>(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.options,(d,m)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:m},[s.createElementVNode("li",{class:s.normalizeClass([i.value,n(d),I.class]),onClick:()=>A(d),"data-testid":`${I.dataTestid}-${m}`},[s.createElementVNode("div",B4,[s.createElementVNode("div",p4,s.toDisplayString(l(d)),1),typeof d=="object"&&(d!=null&&d.used)?(s.openBlock(),s.createElementBlock("div",y4)):s.createCommentVNode("",!0)]),s.renderSlot(o.$slots,"option",{inx:m},void 0,!0)],10,W4),s.renderSlot(o.$slots,"default",{},void 0,!0)],64))),128))}}),[["__scopeId","data-v-582a9d39"]]),Y4=["data-testid"],Fy=yg(s.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=s.reactive({choosedOption:I.defaultOption||I.options[0]||"",isOpened:!1}),t=g,i=n=>{e.isOpened=n},A=n=>{let l;if(qX(I.options)){const o=I.options.find(a=>a.key===n);e.choosedOption=(o==null?void 0:o.value)||n,l=o==null?void 0:o.key}else e.choosedOption=n;e.isOpened=!1,t("change",l||n)};return s.watch(()=>I.defaultOption,()=>{I.defaultOption&&(e.choosedOption=I.defaultOption)}),s.onMounted(()=>{qX(I.options)&&(e.choosedOption=I.defaultOption||I.options[0].value)}),(n,l)=>(s.openBlock(),s.createBlock(Mc,{onChange:i,"is-opened":e.isOpened,class:s.normalizeClass([I.class,"dropdown-yui-kit"]),disabled:I.disabled,"data-testid":I.dataTestid},{header:s.withCtx(()=>[s.createElementVNode("span",{class:"truncate-yui-kit dropdown-yui-kit__text","data-testid":`${I.dataTestid}-SelectedText`},s.toDisplayString(e.choosedOption),9,Y4),e.isOpened?(s.openBlock(),s.createBlock(Ng,{key:0,name:s.unref(dg).chevronUp,"data-testid":`${I.dataTestid}-ArrowUp`},null,8,["name","data-testid"])):s.createCommentVNode("",!0),e.isOpened?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(Ng,{key:1,name:s.unref(dg).chevronDown,"data-testid":`${I.dataTestid}-ArrowDown`},null,8,["name","data-testid"]))]),options:s.withCtx(()=>[s.createVNode(ky,{options:I.options,"default-option":I.defaultOption,onChange:A,"data-testid":`${I.dataTestid}-Options`},null,8,["options","default-option","data-testid"])]),_:1},8,["is-opened","class","disabled","data-testid"]))}}),[["__scopeId","data-v-08af0925"]]);/**
570
+ `,viewbox:"0 0 15 15"},trash:Uv,trashSmall:Ev,uploadCloud:_v,usersGroup:Wj,warehouse:rj,wastes:bj,writeDowns:Zj,zoomMinus:ux,zoomPlus:hx},Symbol.toStringTag,{value:"Module"})),bx=["data-testid","fill","viewBox"],Zx=["innerHTML"],Gx=s.defineComponent({__name:"Icon",props:{height:{},width:{},name:{},color:{},dataTestid:{default:"Icon"}},setup(C){const g=C,I=s.computed(()=>({color:g.color,width:`${g.width}px`,height:`${g.height}px`})),e=i=>i.replace(/-./g,A=>A[1].toUpperCase()),t=s.computed(()=>Zy[e(g.name)]);return(i,A)=>{var n,l,o;return s.openBlock(),s.createElementBlock("svg",{class:"icon-yui-kit","data-testid":g.dataTestid,style:s.normalizeStyle(I.value),fill:(n=s.unref(Zy)[e(g.name)])==null?void 0:n.fill,viewBox:((l=s.unref(Zy)[e(g.name)])==null?void 0:l.viewbox)||"0 0 24 24"},[s.createElementVNode("g",{innerHTML:(o=t.value)==null?void 0:o.path},null,8,Zx)],12,bx)}}}),yg=(C,g)=>{const I=C.__vccOpts||C;for(const[e,t]of g)I[e]=t;return I},Ng=yg(Gx,[["__scopeId","data-v-938d45fe"]]),wx=["data-testid"],Wx=["data-testid"],Bx=s.defineComponent({__name:"Badges",props:{text:{},type:{default:GI.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=s.reactive({choosed:e.choosed}),A=s.ref(null),n=()=>!!(A.value&&A.value.scrollWidth>A.value.clientWidth),l=s.ref(n()),o=s.computed(()=>({"base-yui-kit":!0,"default-yui-kit":e.type===GI.default,"blue-yui-kit":e.type===GI.blue,"light-blue-yui-kit":e.type===GI.lightBlue,"contrast-blue-yui-kit":e.type===GI.contrastBlue,"green-yui-kit":e.type===GI.green,"orange-yui-kit":e.type===GI.orange,"red-yui-kit":e.type===GI.red,"pink-yui-kit":e.type===GI.pink,"violet-yui-kit":e.type===GI.violet,"yellow-yui-kit":e.type===GI.yellow,"choosed-yui-kit":e.choosed||i.choosed,"disabled-yui-kit":e.type===GI.disabled})),a=()=>{t("choose",i.choosed,e.text),e.disabled||(i.choosed=!i.choosed)},d=()=>{t("remove",e.text)},m=new ResizeObserver(()=>{l.value=n()});return g({isSpanOverflow:l}),s.onMounted(()=>{A.value&&m.observe(A.value)}),(u,b)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(o.value),onClick:a,"data-testid":e.dataTestid},[s.createElementVNode("span",{ref_key:"spanRef",ref:A,class:"badges-text","data-testid":`${e.dataTestid}-BadgesText`},s.toDisplayString(e.text),9,Wx),s.createVNode(Ng,{class:"close-icon",width:10,height:10,"data-testid":`${e.dataTestid}-Icon`,name:s.unref(dg).closeTag,color:"var(--text-neutral-color)",onClick:d},null,8,["data-testid","name"])],10,wx))}}),ke=yg(Bx,[["__scopeId","data-v-8043ecdc"]]),px=["data-testid"],yx=["data-testid"],Yx=["data-testid"],Vx=["data-testid"],Nx=["data-testid"],Mx=["data-testid"],Rx=["title","onClick","data-testid"],Xx=["data-testid"],Hx=["onClick","data-testid"],fx=["data-testid"],Gy=25,wy=yg(s.defineComponent({__name:"BreadCrumbs",props:{items:{},dataTestid:{default:"BreadCrumbs"}},emits:["click"],setup(C,{emit:g}){const I=C,e=g,t=s.reactive({items:[],crumbs:s.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(u=>(u.isSub=!1,u))}),subCrumbs:s.computed(()=>I.items.slice(1,-3).map(d=>(d.isSub=!0,d))),getClassesLink:s.computed(()=>(d,m=!1)=>({"bread-crumbs-yui-kit__link":!0,"disabled-yui-kit":!d.path,active:m})),getClassesSpan:s.computed(()=>d=>({"checked-yui-kit":d===t.crumbs.length-1})),fullTitle:s.computed(()=>d=>d.title.length>Gy),isShowList:!1}),i=s.computed(()=>({crumbs:{"bread-crumbs-yui-kit__item":!0},subcrumbs:{"bread-subcrumbs-yui-kit__item":!0}})),A=s.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&&l(),I.items.forEach(({path:u},b)=>{u===d.path&&e("click",{title:d.title,path:d.path,inx:b+1})}))},l=()=>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 s.onMounted(()=>t.items=t.crumbs.concat(t.subCrumbs)),(d,m)=>(s.openBlock(),s.createElementBlock("ul",{class:"bread-crumbs-yui-kit","data-testid":I.dataTestid},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.items,(u,b)=>(s.openBlock(),s.createElementBlock("li",{class:s.normalizeClass(i.value.crumbs),key:u.path,"data-testid":`${I.dataTestid}-Crumbs${b}`},[a(b)?(s.openBlock(),s.createElementBlock("div",{key:0,"data-testid":`${I.dataTestid}-ShowSubList${b}`},[s.createElementVNode("span",{class:"bread-crumbs-yui-kit--closed",onClick:l,"data-testid":`${I.dataTestid}-Closed${b}`},"...",8,Vx),s.createElementVNode("ul",{class:s.normalizeClass(A.value.crumbs),"data-testid":`${I.dataTestid}-Crumbs${b}`},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.subCrumbs,(Z,w)=>(s.openBlock(),s.createElementBlock("li",{key:Z.path,class:s.normalizeClass(i.value.subcrumbs),"data-testid":`${I.dataTestid}-SubCrumbs${w}`},[s.createElementVNode("span",{title:Z.title,onClick:G=>n(Z,w),class:s.normalizeClass({"disabled-yui-kit":!Z.path}),"data-testid":`${I.dataTestid}-SubCrumbs-Title${w}`},s.toDisplayString(o(Z)),11,Rx)],10,Mx))),128))],10,Nx)],8,Yx)):s.createCommentVNode("",!0),u.isSub?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(t.getClassesLink(u,b===t.crumbs.length-1)),"data-testid":`${I.dataTestid}-Classes${b}`},[s.createElementVNode("span",{class:s.normalizeClass(t.getClassesSpan(b)),onClick:Z=>n(u,b),"data-testid":`${I.dataTestid}-Checked${b}`},[s.createTextVNode(s.toDisplayString(b!==t.crumbs.length-1?o(u):u.title),1),t.fullTitle(u)&&b!==t.crumbs.length-1?(s.openBlock(),s.createElementBlock("span",{key:0,"data-testid":`${I.dataTestid}-FullName`,class:"fullName-yui-kit"},s.toDisplayString(u.title),9,fx)):s.createCommentVNode("",!0)],10,Hx),b!==t.crumbs.length-1?(s.openBlock(),s.createBlock(Ng,{key:0,name:s.unref(dg).rightSmall,"data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"])):s.createCommentVNode("",!0)],10,Xx))],10,yx))),128))],8,px))}}),[["__scopeId","data-v-6c2ef4f4"]]);var Yt=(C=>(C.small="small",C.medium="medium",C.large="large",C.little="little",C))(Yt||{}),QI=(C=>(C.primary="primary",C.outline="outline",C.ghost="ghost",C.secondary="secondary",C.reject="reject",C.minor="minor",C))(QI||{});const Dx=["disabled","data-testid"],Sx=["data-testid"],Kx=["data-testid"],kx=s.defineComponent({__name:"Button",props:{disabled:{type:Boolean,default:!1},size:{default:Yt.medium},type:{default:QI.primary},pill:{type:Boolean,default:!1},backgroundColor:{},color:{default:""},dataTestid:{default:"Button"}},emits:["click"],setup(C,{emit:g}){const I=C,e=g,t=s.computed(()=>({"button-yui-kit":!0,[I.size]:!0,"disabled-yui-kit":I.disabled,"pill-yui-kit":I.pill,"primary-yui-kit":I.type===QI.primary,"secondary-yui-kit":I.type===QI.secondary,"outline-yui-kit":I.type===QI.outline,"reject-yui-kit":I.type===QI.reject,"ghost-yui-kit":I.type===QI.ghost,"minor-yui-kit":I.type===QI.minor})),i=s.computed(()=>({backgroundColor:I.backgroundColor})),A=s.computed(()=>({color:I.color==="primary"||I.color==="secondary"?"black":I.color})),n=l=>e("click",l);return(l,o)=>(s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass(t.value),disabled:I.disabled,tabindex:"0",style:s.normalizeStyle(i.value),"data-testid":I.dataTestid,onClick:n,onKeyup:s.withKeys(n,["enter"])},[l.$slots["left-icon"]?(s.openBlock(),s.createElementBlock("span",{key:0,style:s.normalizeStyle(A.value),"data-testid":`${I.dataTestid}-LeftIcon`},[s.renderSlot(l.$slots,"left-icon",{},void 0,!0)],12,Sx)):s.createCommentVNode("",!0),s.renderSlot(l.$slots,"default",{},void 0,!0),l.$slots["right-icon"]?(s.openBlock(),s.createElementBlock("span",{key:1,style:s.normalizeStyle(A.value),"data-testid":`${I.dataTestid}-RightIcon`},[s.renderSlot(l.$slots,"right-icon",{},void 0,!0)],12,Kx)):s.createCommentVNode("",!0)],46,Dx))}}),MC=yg(kx,[["__scopeId","data-v-4529c65c"]]),Fx=["data-testid"],zx=["data-testid","onClick"],AG=yg(s.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=s.reactive({activeIndex:0}),i=s.computed(()=>[{"switch-yui-kit-list_default":I.theme==="default","switch-yui-kit-list_contrast":I.theme==="contrast","switch-yui-kit-list_disabled":I.disabled}]),A=a=>({"switch-yui-kit-item":!0,"switch-yui-kit-active":t.activeIndex===a,"switch-yui-kit-active_disabled":t.activeIndex===a&&I.disabled,"switch-yui-kit-item_disabled":I.disabled}),n=a=>typeof a=="string"?a:a.label,l=a=>typeof a=="string"?a:a.value,o=a=>{t.activeIndex!==a&&(t.activeIndex=a,e("change",{index:a,value:l(I.items[a])}))};return s.watch(()=>I.defaultValue,()=>{t.activeIndex=I.defaultValue?I.items.findIndex(a=>l(a)===I.defaultValue)??0:0}),s.onMounted(()=>{if(I.defaultValue){const a=I.items.findIndex(d=>l(d)===I.defaultValue);a!==-1&&(t.activeIndex=a)}}),(a,d)=>(s.openBlock(),s.createElementBlock("ul",{class:s.normalizeClass(["switch-yui-kit-list",i.value]),"data-testid":I.dataTestid},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.items,(m,u)=>(s.openBlock(),s.createElementBlock("li",{key:u,class:s.normalizeClass(A(u)),"data-testid":`${I.dataTestid}-Item${u}`,onClick:b=>o(u)},[I.isIcons?(s.openBlock(),s.createBlock(Ng,{key:0,name:m,"data-testid":`${I.dataTestid}-Item-Icon${u}`},null,8,["name","data-testid"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(n(m)),1)],64))],10,zx))),128))],10,Fx))}}),[["__scopeId","data-v-cdc0b286"]]);function QC(C){return s.getCurrentScope()?(s.onScopeDispose(C),!0):!1}function hg(C){return typeof C=="function"?C():s.unref(C)}const hA={mounted:"mounted",updated:"updated",unmounted:"unmounted"},bA=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const nG=C=>C!=null,Jx=Object.prototype.toString,sX=C=>Jx.call(C)==="[object Object]",lG=()=>+Date.now(),Wy=(C,g,I)=>Math.min(I,Math.max(g,C)),UI=()=>{},sG=Lx();function Lx(){var C,g;return bA&&((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 Ku(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 By=C=>C();function Tx(C,g={}){let I,e,t=UI;const i=n=>{clearTimeout(n),t(),t=UI};return n=>{const l=hg(C),o=hg(g.maxWait);return I&&i(I),l<=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())},l)})}}function oX(...C){let g=0,I,e=!0,t=UI,i,A,n,l,o;!s.isRef(C[0])&&typeof C[0]=="object"?{delay:A,trailing:n=!0,leading:l=!0,rejectOnCancel:o=!1}=C[0]:[A,n=!0,l=!0,o=!1]=C;const a=()=>{I&&(clearTimeout(I),I=void 0,t(),t=UI)};return m=>{const u=hg(A),b=Date.now()-g,Z=()=>i=m();return a(),u<=0?(g=Date.now(),Z()):(b>u&&(l||!e)?(g=Date.now(),Z()):n&&(i=new Promise((w,G)=>{t=o?G:w,I=setTimeout(()=>{g=Date.now(),e=!0,w(Z()),a()},Math.max(0,u-b))})),!l&&!I&&(I=setTimeout(()=>e=!0,u)),e=!1,i)}}function vx(C=By){const g=s.ref(!0);function I(){g.value=!1}function e(){g.value=!0}const t=(...i)=>{g.value&&C(...i)};return{isActive:s.readonly(g),pause:I,resume:e,eventFilter:t}}function py(C,g=!1,I="Timeout"){return new Promise((e,t)=>{setTimeout(g?()=>t(I):e,C)})}function jx(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 xx(C,g,I=!1){return g.reduce((e,t)=>(t in C&&(!I||C[t]!==void 0)&&(e[t]=C[t]),e),{})}function Ox(C){return Object.entries(C)}function aX(C){return s.getCurrentInstance()}function oG(...C){if(C.length!==1)return s.toRef(...C);const g=C[0];return typeof g=="function"?s.readonly(s.customRef(()=>({get:g,set:UI}))):s.ref(g)}function dX(C,g=200,I={}){return Ku(Tx(g,I),C)}function Qx(C,g=200,I=!1,e=!0,t=!1){return Ku(oX(g,I,e,t),C)}function Ux(C,g,I={}){const{eventFilter:e=By,...t}=I;return s.watch(C,Ku(e,g),t)}function aG(C,g,I={}){const{eventFilter:e,...t}=I,{eventFilter:i,pause:A,resume:n,isActive:l}=vx(e);return{stop:Ux(C,g,{...t,eventFilter:i}),pause:A,resume:n,isActive:l}}function cX(C,g,...[I]){const{flush:e="sync",deep:t=!1,immediate:i=!0,direction:A="both",transform:n={}}=I||{},l=[],o="ltr"in n&&n.ltr||(m=>m),a="rtl"in n&&n.rtl||(m=>m);return(A==="both"||A==="ltr")&&l.push(aG(C,m=>{l.forEach(u=>u.pause()),g.value=o(m),l.forEach(u=>u.resume())},{flush:e,deep:t,immediate:i})),(A==="both"||A==="rtl")&&l.push(aG(g,m=>{l.forEach(u=>u.pause()),C.value=a(m),l.forEach(u=>u.resume())},{flush:e,deep:t,immediate:i})),()=>{l.forEach(m=>m.stop())}}function rX(C,g={}){if(!s.isRef(C))return s.toRefs(C);const I=Array.isArray(C.value)?Array.from({length:C.value.length}):{};for(const e in C.value)I[e]=s.customRef(()=>({get(){return C.value[e]},set(t){var i;if((i=hg(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 $n(C,g=!0,I){aX()?s.onMounted(C,I):g?C():s.nextTick(C)}function Ex(C,g){aX()&&s.onUnmounted(C,g)}function yy(C,g=!1){function I(d,{flush:m="sync",deep:u=!1,timeout:b,throwOnTimeout:Z}={}){let w=null;const B=[new Promise(p=>{w=s.watch(C,y=>{d(y)!==g&&(w?w():s.nextTick(()=>w==null?void 0:w()),p(y))},{flush:m,deep:u,immediate:!0})})];return b!=null&&B.push(py(b,Z).then(()=>hg(C)).finally(()=>w==null?void 0:w())),Promise.race(B)}function e(d,m){if(!s.isRef(d))return I(y=>y===d,m);const{flush:u="sync",deep:b=!1,timeout:Z,throwOnTimeout:w}=m??{};let G=null;const p=[new Promise(y=>{G=s.watch([C,d],([Y,R])=>{g!==(Y===R)&&(G?G():s.nextTick(()=>G==null?void 0:G()),y(Y))},{flush:u,deep:b,immediate:!0})})];return Z!=null&&p.push(py(Z,w).then(()=>hg(C)).finally(()=>(G==null||G(),hg(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 l(d,m){return I(u=>{const b=Array.from(u);return b.includes(d)||b.includes(hg(d))},m)}function o(d){return a(1,d)}function a(d=1,m){let u=-1;return I(()=>(u+=1,u>=d),m)}return Array.isArray(hg(C))?{toMatch:I,toContains:l,changed:o,changedTimes:a,get not(){return yy(C,!g)}}:{toMatch:I,toBe:e,toBeTruthy:t,toBeNull:i,toBeNaN:n,toBeUndefined:A,changed:o,changedTimes:a,get not(){return yy(C,!g)}}}function Yy(C){return yy(C)}function mX(C,g=1e3,I={}){const{immediate:e=!0,immediateCallback:t=!1}=I;let i=null;const A=s.ref(!1);function n(){i&&(clearInterval(i),i=null)}function l(){A.value=!1,n()}function o(){const a=hg(g);a<=0||(A.value=!0,t&&C(),n(),i=setInterval(C,a))}if(e&&bA&&o(),s.isRef(g)||typeof g=="function"){const a=s.watch(g,()=>{A.value&&bA&&o()});QC(a)}return QC(l),{isActive:A,pause:l,resume:o}}function Px(C,g,I={}){const{immediate:e=!0}=I,t=s.ref(!1);let i=null;function A(){i&&(clearTimeout(i),i=null)}function n(){t.value=!1,A()}function l(...o){A(),t.value=!0,i=setTimeout(()=>{t.value=!1,i=null,C(...o)},hg(g))}return e&&(t.value=!0,bA&&l()),QC(n),{isPending:s.readonly(t),start:l,stop:n}}function _x(C=!1,g={}){const{truthyValue:I=!0,falsyValue:e=!1}=g,t=s.isRef(C),i=s.ref(C);function A(n){if(arguments.length)return i.value=n,i.value;{const l=hg(I);return i.value=i.value===l?hg(e):l,i.value}}return t?A:[i,A]}const yI=bA?window:void 0,Vy=bA?window.document:void 0,ku=bA?window.navigator:void 0;function eC(C){var g;const I=hg(C);return(g=I==null?void 0:I.$el)!=null?g:I}function Xg(...C){let g,I,e,t;if(typeof C[0]=="string"||Array.isArray(C[0])?([I,e,t]=C,g=yI):[g,I,e,t]=C,!g)return UI;Array.isArray(I)||(I=[I]),Array.isArray(e)||(e=[e]);const i=[],A=()=>{i.forEach(a=>a()),i.length=0},n=(a,d,m,u)=>(a.addEventListener(d,m,u),()=>a.removeEventListener(d,m,u)),l=s.watch(()=>[eC(g),hg(t)],([a,d])=>{if(A(),!a)return;const m=sX(d)?{...d}:d;i.push(...I.flatMap(u=>e.map(b=>n(a,u,b,m))))},{immediate:!0,flush:"post"}),o=()=>{l(),A()};return QC(o),o}let uX=!1;function $x(C,g,I={}){const{window:e=yI,ignore:t=[],capture:i=!0,detectIframe:A=!1}=I;if(!e)return UI;sG&&!uX&&(uX=!0,Array.from(e.document.body.children).forEach(u=>u.addEventListener("click",UI)),e.document.documentElement.addEventListener("click",UI));let n=!0;const l=u=>hg(t).some(b=>{if(typeof b=="string")return Array.from(e.document.querySelectorAll(b)).some(Z=>Z===u.target||u.composedPath().includes(Z));{const Z=eC(b);return Z&&(u.target===Z||u.composedPath().includes(Z))}}),o=u=>{const b=eC(C);if(!(!b||b===u.target||u.composedPath().includes(b))){if(u.detail===0&&(n=!l(u)),!n){n=!0;return}g(u)}};let a=!1;const d=[Xg(e,"click",u=>{a||(a=!0,setTimeout(()=>{a=!1},0),o(u))},{passive:!0,capture:i}),Xg(e,"pointerdown",u=>{const b=eC(C);n=!l(u)&&!!(b&&!u.composedPath().includes(b))},{passive:!0}),A&&Xg(e,"blur",u=>{setTimeout(()=>{var b;const Z=eC(C);((b=e.document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(Z!=null&&Z.contains(e.document.activeElement))&&g(u)},0)})].filter(Boolean);return()=>d.forEach(u=>u())}function qx(){const C=s.ref(!1),g=s.getCurrentInstance();return g&&s.onMounted(()=>{C.value=!0},g),C}function Vt(C){const g=qx();return s.computed(()=>(g.value,!!C()))}function hX(C,g,I={}){const{window:e=yI,...t}=I;let i;const A=Vt(()=>e&&"MutationObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},l=s.computed(()=>{const m=hg(C),u=(Array.isArray(m)?m:[m]).map(eC).filter(nG);return new Set(u)}),o=s.watch(()=>l.value,m=>{n(),A.value&&m.size&&(i=new MutationObserver(g),m.forEach(u=>i.observe(u,t)))},{immediate:!0,flush:"post"}),a=()=>i==null?void 0:i.takeRecords(),d=()=>{o(),n()};return QC(d),{isSupported:A,stop:d,takeRecords:a}}function gO(C={}){var g;const{window:I=yI,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=s.ref(),l=()=>{n.value=A()};return I&&(Xg(I,"blur",o=>{o.relatedTarget===null&&l()},!0),Xg(I,"focus",l,!0)),t&&hX(i,o=>{o.filter(a=>a.removedNodes.length).map(a=>Array.from(a.removedNodes)).flat().forEach(a=>{a===n.value&&l()})},{childList:!0,subtree:!0}),l(),n}function bX(C,g={}){const{immediate:I=!0,fpsLimit:e=void 0,window:t=yI}=g,i=s.ref(!1),A=e?1e3/e:null;let n=0,l=null;function o(m){if(!i.value||!t)return;n||(n=m);const u=m-n;if(A&&u<A){l=t.requestAnimationFrame(o);return}n=m,C({delta:u,timestamp:m}),l=t.requestAnimationFrame(o)}function a(){!i.value&&t&&(i.value=!0,n=0,l=t.requestAnimationFrame(o))}function d(){i.value=!1,l!=null&&t&&(t.cancelAnimationFrame(l),l=null)}return I&&a(),QC(d),{isActive:s.readonly(i),pause:d,resume:a}}function IO(C={}){const{navigator:g=ku}=C,I=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],e=Vt(()=>g&&"getBattery"in g&&typeof g.getBattery=="function"),t=s.ref(!1),i=s.ref(0),A=s.ref(0),n=s.ref(1);let l;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=>{l=a,o.call(l),Xg(l,I,o,{passive:!0})}),{isSupported:e,charging:t,chargingTime:i,dischargingTime:A,level:n}}function ms(C,g={}){const{window:I=yI}=g,e=Vt(()=>I&&"matchMedia"in I&&typeof I.matchMedia=="function");let t;const i=s.ref(!1),A=o=>{i.value=o.matches},n=()=>{t&&("removeEventListener"in t?t.removeEventListener("change",A):t.removeListener(A))},l=s.watchEffect(()=>{e.value&&(n(),t=I.matchMedia(hg(C)),"addEventListener"in t?t.addEventListener("change",A):t.addListener(A),i.value=t.matches)});return QC(()=>{l(),n(),t=void 0}),i}const ZX=["hash","host","hostname","href","pathname","port","protocol","search"];function CO(C={}){const{window:g=yI}=C,I=Object.fromEntries(ZX.map(i=>[i,s.ref()]));for(const[i,A]of Ox(I))s.watch(A,n=>{!(g!=null&&g.location)||g.location[i]===n||(g.location[i]=n)});const e=i=>{var A;const{state:n,length:l}=(g==null?void 0:g.history)||{},{origin:o}=(g==null?void 0:g.location)||{};for(const a of ZX)I[a].value=(A=g==null?void 0:g.location)==null?void 0:A[a];return s.reactive({trigger:i,state:n,length:l,origin:o,...I})},t=s.ref(e("load"));return g&&(Xg(g,"popstate",()=>t.value=e("popstate"),{passive:!0}),Xg(g,"hashchange",()=>t.value=e("hashchange"),{passive:!0})),t}function Ny(C,g={}){const{controls:I=!1,navigator:e=ku}=g,t=Vt(()=>e&&"permissions"in e),i=s.shallowRef(),A=typeof C=="string"?{name:C}:C,n=s.shallowRef(),l=()=>{var a,d;n.value=(d=(a=i.value)==null?void 0:a.state)!=null?d:"prompt"};Xg(i,"change",l);const o=jx(async()=>{if(t.value){if(!i.value)try{i.value=await e.permissions.query(A)}catch{i.value=void 0}finally{l()}if(I)return s.toRaw(i.value)}});return o(),I?{state:n,isSupported:t,query:o}:n}function eO(C={}){const{navigator:g=ku,read:I=!1,source:e,copiedDuring:t=1500,legacy:i=!1}=C,A=Vt(()=>g&&"clipboard"in g),n=Ny("clipboard-read"),l=Ny("clipboard-write"),o=s.computed(()=>A.value||i),a=s.ref(""),d=s.ref(!1),m=Px(()=>d.value=!1,t);function u(){A.value&&G(n.value)?g.clipboard.readText().then(B=>{a.value=B}):a.value=w()}o.value&&I&&Xg(["copy","cut"],u);async function b(B=hg(e)){o.value&&B!=null&&(A.value&&G(l.value)?await g.clipboard.writeText(B):Z(B),a.value=B,d.value=!0,m.start())}function Z(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 w(){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 G(B){return B==="granted"||B==="prompt"}return{isSupported:o,text:a,copied:d,copy:b}}const dG=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},cG="__vueuse_ssr_handlers__",tO=iO();function iO(){return cG in dG||(dG[cG]=dG[cG]||{}),dG[cG]}function GX(C,g){return tO[C]||g}function My(C){return ms("(prefers-color-scheme: dark)",C)}function AO(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 nO={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()}},wX="vueuse-storage";function WX(C,g,I,e={}){var t;const{flush:i="pre",deep:A=!0,listenToStorageChanges:n=!0,writeDefaults:l=!0,mergeDefaults:o=!1,shallow:a,window:d=yI,eventFilter:m,onError:u=D=>{console.error(D)},initOnMounted:b}=e,Z=(a?s.shallowRef:s.ref)(typeof g=="function"?g():g);if(!I)try{I=GX("getDefaultStorage",()=>{var D;return(D=yI)==null?void 0:D.localStorage})()}catch(D){u(D)}if(!I)return Z;const w=hg(g),G=AO(w),B=(t=e.serializer)!=null?t:nO[G],{pause:p,resume:y}=aG(Z,()=>R(Z.value),{flush:i,deep:A,eventFilter:m});d&&n&&$n(()=>{I instanceof Storage?Xg(d,"storage",H):Xg(d,wX,z),b&&H()}),b||H();function Y(D,F){if(d){const T={key:C,oldValue:D,newValue:F,storageArea:I};d.dispatchEvent(I instanceof Storage?new StorageEvent("storage",T):new CustomEvent(wX,{detail:T}))}}function R(D){try{const F=I.getItem(C);if(D==null)Y(F,null),I.removeItem(C);else{const T=B.write(D);F!==T&&(I.setItem(C,T),Y(F,T))}}catch(F){u(F)}}function V(D){const F=D?D.newValue:I.getItem(C);if(F==null)return l&&w!=null&&I.setItem(C,B.write(w)),w;if(!D&&o){const T=B.read(F);return typeof o=="function"?o(T,w):G==="object"&&!Array.isArray(T)?{...w,...T}:T}else return typeof F!="string"?F:B.read(F)}function H(D){if(!(D&&D.storageArea!==I)){if(D&&D.key==null){Z.value=w;return}if(!(D&&D.key!==C)){p();try{(D==null?void 0:D.newValue)!==B.write(Z.value)&&(Z.value=V(D))}catch(F){u(F)}finally{D?s.nextTick(y):y()}}}}function z(D){H(D.detail)}return Z}const lO="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function sO(C={}){const{selector:g="html",attribute:I="class",initialValue:e="auto",window:t=yI,storage:i,storageKey:A="vueuse-color-scheme",listenToStorageChanges:n=!0,storageRef:l,emitAuto:o,disableTransition:a=!0}=C,d={auto:"",light:"light",dark:"dark",...C.modes||{}},m=My({window:t}),u=s.computed(()=>m.value?"dark":"light"),b=l||(A==null?oG(e):WX(A,e,i,{window:t,listenToStorageChanges:n})),Z=s.computed(()=>b.value==="auto"?u.value:b.value),w=GX("updateHTMLAttrs",(y,Y,R)=>{const V=typeof y=="string"?t==null?void 0:t.document.querySelector(y):eC(y);if(!V)return;const H=new Set,z=new Set;let D=null;if(Y==="class"){const T=R.split(/\s/g);Object.values(d).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{T.includes(O)?H.add(O):z.add(O)})}else D={key:Y,value:R};if(H.size===0&&z.size===0&&D===null)return;let F;a&&(F=t.document.createElement("style"),F.appendChild(document.createTextNode(lO)),t.document.head.appendChild(F));for(const T of H)V.classList.add(T);for(const T of z)V.classList.remove(T);D&&V.setAttribute(D.key,D.value),a&&(t.getComputedStyle(F).opacity,document.head.removeChild(F))});function G(y){var Y;w(g,I,(Y=d[y])!=null?Y:y)}function B(y){C.onChanged?C.onChanged(y,G):G(y)}s.watch(Z,B,{flush:"post",immediate:!0}),$n(()=>B(Z.value));const p=s.computed({get(){return o?b.value:Z.value},set(y){b.value=y}});try{return Object.assign(p,{store:b,system:u,state:Z})}catch{return p}}function oO(C={}){const{valueDark:g="dark",valueLight:I="",window:e=yI}=C,t=sO({...C,onChanged:(n,l)=>{var o;C.onChanged?(o=C.onChanged)==null||o.call(C,n==="dark",l,n):l(n)},modes:{dark:g,light:I}}),i=s.computed(()=>t.system?t.system.value:My({window:e}).value?"dark":"light");return s.computed({get(){return t.value==="dark"},set(n){const l=n?"dark":"light";i.value===l?t.value="auto":t.value=l}})}function aO(C={}){const{window:g=yI,eventFilter:I=By}=C,e=s.ref({x:null,y:null,z:null}),t=s.ref({alpha:null,beta:null,gamma:null}),i=s.ref(0),A=s.ref({x:null,y:null,z:null});if(g){const n=Ku(I,l=>{e.value=l.acceleration,A.value=l.accelerationIncludingGravity,t.value=l.rotationRate,i.value=l.interval});Xg(g,"devicemotion",n)}return{acceleration:e,accelerationIncludingGravity:A,rotationRate:t,interval:i}}function dO(C={}){const{window:g=yI}=C,I=Vt(()=>g&&"DeviceOrientationEvent"in g),e=s.ref(!1),t=s.ref(null),i=s.ref(null),A=s.ref(null);return g&&I.value&&Xg(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 cO(C={}){const{window:g=yI}=C,I=s.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(),QC(t)}return{pixelRatio:I}}function rO(C={}){const{navigator:g=ku,requestPermissions:I=!1,constraints:e={audio:!0,video:!0},onUpdated:t}=C,i=s.ref([]),A=s.computed(()=>i.value.filter(b=>b.kind==="videoinput")),n=s.computed(()=>i.value.filter(b=>b.kind==="audioinput")),l=s.computed(()=>i.value.filter(b=>b.kind==="audiooutput")),o=Vt(()=>g&&g.mediaDevices&&g.mediaDevices.enumerateDevices),a=s.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 u(){if(!o.value)return!1;if(a.value)return!0;const{state:b,query:Z}=Ny("camera",{controls:!0});return await Z(),b.value!=="granted"&&(d=await g.mediaDevices.getUserMedia(e),m()),a.value=!0,a.value}return o.value&&(I&&u(),Xg(g.mediaDevices,"devicechange",m),m()),{devices:i,ensurePermissions:u,permissionGranted:a,videoInputs:A,audioInputs:n,audioOutputs:l,isSupported:o}}function mO(C={}){const{document:g=Vy}=C;if(!g)return s.ref("visible");const I=s.ref(g.visibilityState);return Xg(g,"visibilitychange",()=>{I.value=g.visibilityState}),I}function uO(C,g={}){var I,e;const{pointerTypes:t,preventDefault:i,stopPropagation:A,exact:n,onMove:l,onEnd:o,onStart:a,initialValue:d,axis:m="both",draggingElement:u=yI,containerElement:b,handle:Z=C,buttons:w=[0]}=g,G=s.ref((I=hg(d))!=null?I:{x:0,y:0}),B=s.ref(),p=H=>t?t.includes(H.pointerType):!0,y=H=>{hg(i)&&H.preventDefault(),hg(A)&&H.stopPropagation()},Y=H=>{var z;if(!hg(w).includes(H.button)||hg(g.disabled)||!p(H)||hg(n)&&H.target!==hg(C))return;const D=hg(b),F=(z=D==null?void 0:D.getBoundingClientRect)==null?void 0:z.call(D),T=hg(C).getBoundingClientRect(),O={x:H.clientX-(D?T.left-F.left+D.scrollLeft:T.left),y:H.clientY-(D?T.top-F.top+D.scrollTop:T.top)};(a==null?void 0:a(O,H))!==!1&&(B.value=O,y(H))},R=H=>{if(hg(g.disabled)||!p(H)||!B.value)return;const z=hg(b),D=hg(C).getBoundingClientRect();let{x:F,y:T}=G.value;(m==="x"||m==="both")&&(F=H.clientX-B.value.x,z&&(F=Math.min(Math.max(0,F),z.scrollWidth-D.width))),(m==="y"||m==="both")&&(T=H.clientY-B.value.y,z&&(T=Math.min(Math.max(0,T),z.scrollHeight-D.height))),G.value={x:F,y:T},l==null||l(G.value,H),y(H)},V=H=>{hg(g.disabled)||!p(H)||B.value&&(B.value=void 0,o==null||o(G.value,H),y(H))};if(bA){const H={capture:(e=g.capture)!=null?e:!0};Xg(Z,"pointerdown",Y,H),Xg(u,"pointermove",R,H),Xg(u,"pointerup",V,H)}return{...rX(G),position:G,isDragging:s.computed(()=>!!B.value),style:s.computed(()=>`left:${G.value.x}px;top:${G.value.y}px;`)}}function BX(C,g,I={}){const{window:e=yI,...t}=I;let i;const A=Vt(()=>e&&"ResizeObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},l=s.computed(()=>{const d=hg(C);return Array.isArray(d)?d.map(m=>eC(m)):[eC(d)]}),o=s.watch(l,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 QC(a),{isSupported:A,stop:a}}function hO(C,g={}){const{reset:I=!0,windowResize:e=!0,windowScroll:t=!0,immediate:i=!0,updateTiming:A="sync"}=g,n=s.ref(0),l=s.ref(0),o=s.ref(0),a=s.ref(0),d=s.ref(0),m=s.ref(0),u=s.ref(0),b=s.ref(0);function Z(){const G=eC(C);if(!G){I&&(n.value=0,l.value=0,o.value=0,a.value=0,d.value=0,m.value=0,u.value=0,b.value=0);return}const B=G.getBoundingClientRect();n.value=B.height,l.value=B.bottom,o.value=B.left,a.value=B.right,d.value=B.top,m.value=B.width,u.value=B.x,b.value=B.y}function w(){A==="sync"?Z():A==="next-frame"&&requestAnimationFrame(()=>Z())}return BX(C,w),s.watch(()=>eC(C),G=>!G&&w()),hX(C,w,{attributeFilter:["style","class"]}),t&&Xg("scroll",w,{capture:!0,passive:!0}),e&&Xg("resize",w,{passive:!0}),$n(()=>{i&&w()}),{height:n,bottom:l,left:o,right:a,top:d,width:m,x:u,y:b,update:w}}function pX(C,g={width:0,height:0},I={}){const{window:e=yI,box:t="content-box"}=I,i=s.computed(()=>{var d,m;return(m=(d=eC(C))==null?void 0:d.namespaceURI)==null?void 0:m.includes("svg")}),A=s.ref(g.width),n=s.ref(g.height),{stop:l}=BX(C,([d])=>{const m=t==="border-box"?d.borderBoxSize:t==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(e&&i.value){const u=eC(C);if(u){const b=u.getBoundingClientRect();A.value=b.width,n.value=b.height}}else if(m){const u=Array.isArray(m)?m:[m];A.value=u.reduce((b,{inlineSize:Z})=>b+Z,0),n.value=u.reduce((b,{blockSize:Z})=>b+Z,0)}else A.value=d.contentRect.width,n.value=d.contentRect.height},I);$n(()=>{const d=eC(C);d&&(A.value="offsetWidth"in d?d.offsetWidth:g.width,n.value="offsetHeight"in d?d.offsetHeight:g.height)});const o=s.watch(()=>eC(C),d=>{A.value=d?g.width:0,n.value=d?g.height:0});function a(){l(),o()}return{width:A,height:n,stop:a}}function bO(C,g,I={}){const{root:e,rootMargin:t="0px",threshold:i=0,window:A=yI,immediate:n=!0}=I,l=Vt(()=>A&&"IntersectionObserver"in A),o=s.computed(()=>{const b=hg(C);return(Array.isArray(b)?b:[b]).map(eC).filter(nG)});let a=UI;const d=s.ref(n),m=l.value?s.watch(()=>[o.value,eC(e),d.value],([b,Z])=>{if(a(),!d.value||!b.length)return;const w=new IntersectionObserver(g,{root:eC(Z),rootMargin:t,threshold:i});b.forEach(G=>G&&w.observe(G)),a=()=>{w.disconnect(),a=UI}},{immediate:n,flush:"post"}):UI,u=()=>{a(),m(),d.value=!1};return QC(u),{isSupported:l,isActive:d,pause(){a(),d.value=!1},resume(){d.value=!0},stop:u}}function ZO(C,g={}){const{window:I=yI,scrollTarget:e,threshold:t=0}=g,i=s.ref(!1);return bO(C,A=>{let n=i.value,l=0;for(const o of A)o.time>=l&&(l=o.time,n=o.isIntersecting);i.value=n},{root:e,window:I,threshold:t}),i}function GO(C={}){const{initialValue:g=""}=C,I=Vt(()=>typeof window<"u"&&"EyeDropper"in window),e=s.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}}const yX=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function wO(C,g={}){const{document:I=Vy,autoExit:e=!1}=g,t=s.computed(()=>{var G;return(G=eC(C))!=null?G:I==null?void 0:I.querySelector("html")}),i=s.ref(!1),A=s.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(G=>I&&G in I||t.value&&G in t.value)),n=s.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(G=>I&&G in I||t.value&&G in t.value)),l=s.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(G=>I&&G in I||t.value&&G in t.value)),o=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(G=>I&&G in I),a=Vt(()=>t.value&&I&&A.value!==void 0&&n.value!==void 0&&l.value!==void 0),d=()=>o?(I==null?void 0:I[o])===t.value:!1,m=()=>{if(l.value){if(I&&I[l.value]!=null)return I[l.value];{const G=t.value;if((G==null?void 0:G[l.value])!=null)return!!G[l.value]}}return!1};async function u(){if(!(!a.value||!i.value)){if(n.value)if((I==null?void 0:I[n.value])!=null)await I[n.value]();else{const G=t.value;(G==null?void 0:G[n.value])!=null&&await G[n.value]()}i.value=!1}}async function b(){if(!a.value||i.value)return;m()&&await u();const G=t.value;A.value&&(G==null?void 0:G[A.value])!=null&&(await G[A.value](),i.value=!0)}async function Z(){await(i.value?u():b())}const w=()=>{const G=m();(!G||G&&d())&&(i.value=G)};return Xg(I,yX,w,!1),Xg(()=>eC(t),yX,w,!1),e&&QC(u),{isSupported:a,isFullscreen:i,enter:b,exit:u,toggle:Z}}function WO(C={}){const{enableHighAccuracy:g=!0,maximumAge:I=3e4,timeout:e=27e3,navigator:t=ku,immediate:i=!0}=C,A=Vt(()=>t&&"geolocation"in t),n=s.ref(null),l=s.shallowRef(null),o=s.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,l.value=null}let d;function m(){A.value&&(d=t.geolocation.watchPosition(a,b=>l.value=b,{enableHighAccuracy:g,maximumAge:I,timeout:e}))}i&&m();function u(){d&&t&&t.geolocation.clearWatch(d)}return QC(()=>{u()}),{isSupported:A,coords:o,locatedAt:n,error:l,resume:m,pause:u}}const BO=["mousemove","mousedown","resize","keydown","touchstart","wheel"],pO=6e4;function yO(C=pO,g={}){const{initialState:I=!1,listenForVisibilityChange:e=!0,events:t=BO,window:i=yI,eventFilter:A=oX(50)}=g,n=s.ref(I),l=s.ref(lG());let o;const a=()=>{n.value=!1,clearTimeout(o),o=setTimeout(()=>n.value=!0,C)},d=Ku(A,()=>{l.value=lG(),a()});if(i){const m=i.document;for(const u of t)Xg(i,u,d,{passive:!0});e&&Xg(m,"visibilitychange",()=>{m.hidden||d()}),a()}return{idle:n,lastActive:l,reset:a}}const YO={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 YX(C={}){const{type:g="page",touch:I=!0,resetOnTouchEnds:e=!1,initialValue:t={x:0,y:0},window:i=yI,target:A=i,scroll:n=!0,eventFilter:l}=C;let o=null;const a=s.ref(t.x),d=s.ref(t.y),m=s.ref(null),u=typeof g=="function"?g:YO[g],b=Y=>{const R=u(Y);o=Y,R&&([a.value,d.value]=R,m.value="mouse")},Z=Y=>{if(Y.touches.length>0){const R=u(Y.touches[0]);R&&([a.value,d.value]=R,m.value="touch")}},w=()=>{if(!o||!i)return;const Y=u(o);o instanceof MouseEvent&&Y&&(a.value=Y[0]+i.scrollX,d.value=Y[1]+i.scrollY)},G=()=>{a.value=t.x,d.value=t.y},B=l?Y=>l(()=>b(Y),{}):Y=>b(Y),p=l?Y=>l(()=>Z(Y),{}):Y=>Z(Y),y=l?()=>l(()=>w(),{}):()=>w();if(A){const Y={passive:!0};Xg(A,["mousemove","dragover"],B,Y),I&&g!=="movement"&&(Xg(A,["touchstart","touchmove"],p,Y),e&&Xg(A,"touchend",G,Y)),n&&g==="page"&&Xg(i,"scroll",y,{passive:!0})}return{x:a,y:d,sourceType:m}}function VO(C,g={}){const{handleOutside:I=!0,window:e=yI}=g,t=g.type||"page",{x:i,y:A,sourceType:n}=YX(g),l=s.ref(C??(e==null?void 0:e.document.body)),o=s.ref(0),a=s.ref(0),d=s.ref(0),m=s.ref(0),u=s.ref(0),b=s.ref(0),Z=s.ref(!0);let w=()=>{};return e&&(w=s.watch([l,i,A],()=>{const G=eC(l);if(!G||!(G instanceof Element))return;const{left:B,top:p,width:y,height:Y}=G.getBoundingClientRect();d.value=B+(t==="page"?e.pageXOffset:0),m.value=p+(t==="page"?e.pageYOffset:0),u.value=Y,b.value=y;const R=i.value-d.value,V=A.value-m.value;Z.value=y===0||Y===0||R<0||V<0||R>y||V>Y,(I||!Z.value)&&(o.value=R,a.value=V)},{immediate:!0}),Xg(document,"mouseleave",()=>{Z.value=!0})),{x:i,y:A,sourceType:n,elementX:o,elementY:a,elementPositionX:d,elementPositionY:m,elementHeight:u,elementWidth:b,isOutside:Z,stop:w}}function NO(C={}){const{touch:g=!0,drag:I=!0,capture:e=!1,initialValue:t=!1,window:i=yI}=C,A=s.ref(t),n=s.ref(null);if(!i)return{pressed:A,sourceType:n};const l=d=>()=>{A.value=!0,n.value=d},o=()=>{A.value=!1,n.value=null},a=s.computed(()=>eC(C.target)||i);return Xg(a,"mousedown",l("mouse"),{passive:!0,capture:e}),Xg(i,"mouseleave",o,{passive:!0,capture:e}),Xg(i,"mouseup",o,{passive:!0,capture:e}),I&&(Xg(a,"dragstart",l("mouse"),{passive:!0,capture:e}),Xg(i,"drop",o,{passive:!0,capture:e}),Xg(i,"dragend",o,{passive:!0,capture:e})),g&&(Xg(a,"touchstart",l("touch"),{passive:!0,capture:e}),Xg(i,"touchend",o,{passive:!0,capture:e}),Xg(i,"touchcancel",o,{passive:!0,capture:e})),{pressed:A,sourceType:n}}function VX(C={}){const{window:g=yI}=C,I=g==null?void 0:g.navigator,e=Vt(()=>I&&"connection"in I),t=s.ref(!0),i=s.ref(!1),A=s.ref(void 0),n=s.ref(void 0),l=s.ref(void 0),o=s.ref(void 0),a=s.ref(void 0),d=s.ref(void 0),m=s.ref("unknown"),u=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,u&&(l.value=u.downlink,o.value=u.downlinkMax,d.value=u.effectiveType,a.value=u.rtt,i.value=u.saveData,m.value=u.type))}return g&&(Xg(g,"offline",()=>{t.value=!1,A.value=Date.now()}),Xg(g,"online",()=>{t.value=!0,n.value=Date.now()})),u&&Xg(u,"change",b,!1),b(),{isSupported:s.readonly(e),isOnline:s.readonly(t),saveData:s.readonly(i),offlineAt:s.readonly(A),onlineAt:s.readonly(n),downlink:s.readonly(l),downlinkMax:s.readonly(o),effectiveType:s.readonly(d),rtt:s.readonly(a),type:s.readonly(m)}}function NX(C={}){const{controls:g=!1,interval:I="requestAnimationFrame"}=C,e=s.ref(new Date),t=()=>e.value=new Date,i=I==="requestAnimationFrame"?bX(t,{immediate:!0}):mX(t,I,{immediate:!0});return g?{now:e,...i}:e}function MO(C){const g=s.ref(),I=()=>{g.value&&URL.revokeObjectURL(g.value),g.value=void 0};return s.watch(()=>hg(C),e=>{I(),e&&(g.value=URL.createObjectURL(e))},{immediate:!0}),QC(I),s.readonly(g)}function MX(C,g,I){if(typeof C=="function"||s.isReadonly(C))return s.computed(()=>Wy(hg(C),hg(g),hg(I)));const e=s.ref(C);return s.computed({get(){return e.value=Wy(e.value,hg(g),hg(I))},set(t){e.value=Wy(t,hg(g),hg(I))}})}function RO(C){const{total:g=Number.POSITIVE_INFINITY,pageSize:I=10,page:e=1,onPageChange:t=UI,onPageSizeChange:i=UI,onPageCountChange:A=UI}=C,n=MX(I,1,Number.POSITIVE_INFINITY),l=s.computed(()=>Math.max(1,Math.ceil(hg(g)/hg(n)))),o=MX(e,1,l),a=s.computed(()=>o.value===1),d=s.computed(()=>o.value===l.value);s.isRef(e)&&cX(e,o,{direction:s.isReadonly(e)?"ltr":"both"}),s.isRef(I)&&cX(I,n,{direction:s.isReadonly(I)?"ltr":"both"});function m(){o.value--}function u(){o.value++}const b={currentPage:o,currentPageSize:n,pageCount:l,isFirstPage:a,isLastPage:d,prev:m,next:u};return s.watch(o,()=>{t(s.reactive(b))}),s.watch(n,()=>{i(s.reactive(b))}),s.watch(l,()=>{A(s.reactive(b))}),b}function XO(C={}){const{isOnline:g}=VX(C);return g}function HO(C={}){const{window:g=yI}=C,I=s.ref(!1),e=t=>{if(!g)return;t=t||g.event;const i=t.relatedTarget||t.toElement;I.value=!i};return g&&(Xg(g,"mouseout",e,{passive:!0}),Xg(g.document,"mouseleave",e,{passive:!0}),Xg(g.document,"mouseenter",e,{passive:!0})),I}const RX={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},fO=Object.keys(RX);function DO(C={}){const{target:g=yI}=C,I=s.ref(!1),e=s.ref(C.initialValue||{});Object.assign(e.value,RX,e.value);const t=i=>{I.value=!0,!(C.pointerTypes&&!C.pointerTypes.includes(i.pointerType))&&(e.value=xx(i,fO,!1))};if(g){const i={passive:!0};Xg(g,["pointerdown","pointermove","pointerup"],t,i),Xg(g,"pointerleave",()=>I.value=!1,i)}return{...rX(e),isInside:I}}function SO(C,g={}){const{document:I=Vy}=g,e=Vt(()=>I&&"pointerLockElement"in I),t=s.ref(),i=s.ref();let A;e.value&&(Xg(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))}),Xg(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=eC(C))!=null?a:i.value:eC(o),!A)throw new Error("Target element undefined.");return A.requestPointerLock(),await Yy(t).toBe(A)}async function l(){return t.value?(I.exitPointerLock(),await Yy(t).toBeNull(),!0):!1}return{isSupported:e,element:t,triggerElement:i,lock:n,unlock:l}}function KO(C){const g=ms("(prefers-color-scheme: light)",C),I=ms("(prefers-color-scheme: dark)",C);return s.computed(()=>I.value?"dark":g.value?"light":"no-preference")}function kO(C){const g=ms("(prefers-contrast: more)",C),I=ms("(prefers-contrast: less)",C),e=ms("(prefers-contrast: custom)",C);return s.computed(()=>g.value?"more":I.value?"less":e.value?"custom":"no-preference")}function FO(C={}){const{window:g=yI}=C;if(!g)return s.ref(["en"]);const I=g.navigator,e=s.ref(I.languages);return Xg(g,"languagechange",()=>{e.value=I.languages}),e}function zO(C){const g=ms("(prefers-reduced-motion: reduce)",C);return s.computed(()=>g.value?"reduce":"no-preference")}const JO=[{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"}],LO={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 TO(C){return C.toISOString().slice(0,10)}function vO(C,g={}){const{controls:I=!1,updateInterval:e=3e4}=g,{now:t,...i}=NX({interval:e,controls:!0}),A=s.computed(()=>jO(new Date(hg(C)),g,hg(t)));return I?{timeAgo:A,...i}:A}function jO(C,g={},I=Date.now()){var e;const{max:t,messages:i=LO,fullDateFormatter:A=TO,units:n=JO,showSecond:l=!1,rounding:o="round"}=g,a=typeof o=="number"?w=>+w.toFixed(o):Math[o],d=+I-+C,m=Math.abs(d);function u(w,G){return a(Math.abs(w)/G.value)}function b(w,G){const B=u(w,G),p=w>0,y=Z(G.name,B,p);return Z(p?"past":"future",y,p)}function Z(w,G,B){const p=i[w];return typeof p=="function"?p(G,B):p.replace("{0}",G.toString())}if(m<6e4&&!l)return i.justNow;if(typeof t=="number"&&m>t)return A(new Date(C));if(typeof t=="string"){const w=(e=n.find(G=>G.name===t))==null?void 0:e.max;if(w&&m>w)return A(new Date(C))}for(const[w,G]of n.entries()){if(u(d,G)<=0&&n[w-1])return b(d,n[w-1]);if(m<G.max)return b(d,G)}return i.invalid}function xO(C={}){const{controls:g=!1,offset:I=0,immediate:e=!0,interval:t="requestAnimationFrame",callback:i}=C,A=s.ref(lG()+I),n=()=>A.value=lG()+I,l=i?()=>{n(),i(A.value)}:n,o=t==="requestAnimationFrame"?bX(l,{immediate:e}):mX(l,t,{immediate:e});return g?{timestamp:A,...o}:A}function OO(C,g){const{containerStyle:I,wrapperProps:e,scrollTo:t,calculateRange:i,currentList:A,containerRef:n}="itemHeight"in g?EO(g,C):UO(g,C);return{list:A,scrollTo:t,containerProps:{ref:n,onScroll:()=>{i()},style:I},wrapperProps:e}}function XX(C){const g=s.ref(null),I=pX(g),e=s.ref([]),t=s.shallowRef(C);return{state:s.ref({start:0,end:10}),source:t,currentList:e,size:I,containerRef:g}}function HX(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 l=I(n);if(i+=l,A=n,i>e)break}return A-t}}function fX(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 DX(C,g,I,e,{containerRef:t,state:i,currentList:A,source:n}){return()=>{const l=t.value;if(l){const o=I(C==="vertical"?l.scrollTop:l.scrollLeft),a=e(C==="vertical"?l.clientHeight:l.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((u,b)=>({data:u,index:b+i.value.start}))}}}function SX(C,g){return I=>typeof C=="number"?I*C:g.value.slice(0,I).reduce((t,i,A)=>t+C(A),0)}function KX(C,g,I,e){s.watch([C.width,C.height,g,I],()=>{e()})}function kX(C,g){return s.computed(()=>typeof C=="number"?g.value.length*C:g.value.reduce((I,e,t)=>I+C(t),0))}const QO={horizontal:"scrollLeft",vertical:"scrollTop"};function FX(C,g,I,e){return t=>{e.value&&(e.value[QO[C]]=I(t),g())}}function UO(C,g){const I=XX(g),{state:e,source:t,currentList:i,size:A,containerRef:n}=I,l={overflowX:"auto"},{itemWidth:o,overscan:a=5}=C,d=HX(e,t,o),m=fX(t,o),u=DX("horizontal",a,m,d,I),b=SX(o,t),Z=s.computed(()=>b(e.value.start)),w=kX(o,t);KX(A,g,n,u);const G=FX("horizontal",u,b,n),B=s.computed(()=>({style:{height:"100%",width:`${w.value-Z.value}px`,marginLeft:`${Z.value}px`,display:"flex"}}));return{scrollTo:G,calculateRange:u,wrapperProps:B,containerStyle:l,currentList:i,containerRef:n}}function EO(C,g){const I=XX(g),{state:e,source:t,currentList:i,size:A,containerRef:n}=I,l={overflowY:"auto"},{itemHeight:o,overscan:a=5}=C,d=HX(e,t,o),m=fX(t,o),u=DX("vertical",a,m,d,I),b=SX(o,t),Z=s.computed(()=>b(e.value.start)),w=kX(o,t);KX(A,g,n,u);const G=FX("vertical",u,b,n),B=s.computed(()=>({style:{width:"100%",height:`${w.value-Z.value}px`,marginTop:`${Z.value}px`}}));return{calculateRange:u,scrollTo:G,containerStyle:l,wrapperProps:B,currentList:i,containerRef:n}}function PO(C={}){const{window:g=yI}=C;if(!g)return s.ref(!1);const I=s.ref(g.document.hasFocus());return Xg(g,"blur",()=>{I.value=!1}),Xg(g,"focus",()=>{I.value=!0}),I}function _O(C={}){const{window:g=yI,initialWidth:I=Number.POSITIVE_INFINITY,initialHeight:e=Number.POSITIVE_INFINITY,listenOrientation:t=!0,includeScrollbar:i=!0,type:A="inner"}=C,n=s.ref(I),l=s.ref(e),o=()=>{g&&(A==="outer"?(n.value=g.outerWidth,l.value=g.outerHeight):i?(n.value=g.innerWidth,l.value=g.innerHeight):(n.value=g.document.documentElement.clientWidth,l.value=g.document.documentElement.clientHeight))};if(o(),$n(o),Xg("resize",o,{passive:!0}),t){const a=ms("(orientation: portrait)");s.watch(a,()=>o())}return{width:n,height:l}}const $O=s.defineComponent({name:"OnClickOutside",props:["as","options"],emits:["trigger"],setup(C,{slots:g,emit:I}){const e=s.ref();return $x(e,t=>{I("trigger",t)},C.options),()=>{if(g.default)return s.h(C.as||"div",{ref:e},g.default())}}}),Fe=bA?window:void 0;function UC(C){var g;const I=hg(C);return(g=I==null?void 0:I.$el)!=null?g:I}function qe(...C){let g,I,e,t;if(typeof C[0]=="string"||Array.isArray(C[0])?([I,e,t]=C,g=Fe):[g,I,e,t]=C,!g)return UI;Array.isArray(I)||(I=[I]),Array.isArray(e)||(e=[e]);const i=[],A=()=>{i.forEach(a=>a()),i.length=0},n=(a,d,m,u)=>(a.addEventListener(d,m,u),()=>a.removeEventListener(d,m,u)),l=s.watch(()=>[UC(g),hg(t)],([a,d])=>{if(A(),!a)return;const m=sX(d)?{...d}:d;i.push(...I.flatMap(u=>e.map(b=>n(a,u,b,m))))},{immediate:!0,flush:"post"}),o=()=>{l(),A()};return QC(o),o}let zX=!1;function JX(C,g,I={}){const{window:e=Fe,ignore:t=[],capture:i=!0,detectIframe:A=!1}=I;if(!e)return UI;sG&&!zX&&(zX=!0,Array.from(e.document.body.children).forEach(u=>u.addEventListener("click",UI)),e.document.documentElement.addEventListener("click",UI));let n=!0;const l=u=>hg(t).some(b=>{if(typeof b=="string")return Array.from(e.document.querySelectorAll(b)).some(Z=>Z===u.target||u.composedPath().includes(Z));{const Z=UC(b);return Z&&(u.target===Z||u.composedPath().includes(Z))}}),o=u=>{const b=UC(C);if(!(!b||b===u.target||u.composedPath().includes(b))){if(u.detail===0&&(n=!l(u)),!n){n=!0;return}g(u)}};let a=!1;const d=[qe(e,"click",u=>{a||(a=!0,setTimeout(()=>{a=!1},0),o(u))},{passive:!0,capture:i}),qe(e,"pointerdown",u=>{const b=UC(C);n=!l(u)&&!!(b&&!u.composedPath().includes(b))},{passive:!0}),A&&qe(e,"blur",u=>{setTimeout(()=>{var b;const Z=UC(C);((b=e.document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(Z!=null&&Z.contains(e.document.activeElement))&&g(u)},0)})].filter(Boolean);return()=>d.forEach(u=>u())}const Nc={[hA.mounted](C,g){const I=!g.modifiers.bubble;if(typeof g.value=="function")C.__onClickOutside_stop=JX(C,g.value,{capture:I});else{const[e,t]=g.value;C.__onClickOutside_stop=JX(C,e,Object.assign({capture:I},t))}},[hA.unmounted](C){C.__onClickOutside_stop()}};function qO(C){return typeof C=="function"?C:typeof C=="string"?g=>g.key===C:Array.isArray(C)?g=>C.includes(g.key):()=>!0}function LX(...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=Fe,eventName:i="keydown",passive:A=!1,dedupe:n=!1}=e,l=qO(g);return qe(t,i,a=>{a.repeat&&hg(n)||l(a)&&I(a)},A)}const gQ={[hA.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")LX(t,g.value,{target:C});else{const[i,A]=g.value;LX(t,i,{target:C,...A})}}},IQ=500,CQ=10;function Ry(C,g,I){var e,t;const i=s.computed(()=>UC(C));let A,n,l,o=!1;function a(){A&&(clearTimeout(A),A=void 0),n=void 0,l=void 0,o=!1}function d(G){var B,p,y;const[Y,R,V]=[l,n,o];if(a(),!(I!=null&&I.onMouseUp)||!R||!Y||(B=I==null?void 0:I.modifiers)!=null&&B.self&&G.target!==i.value)return;(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&G.preventDefault(),(y=I==null?void 0:I.modifiers)!=null&&y.stop&&G.stopPropagation();const H=G.x-R.x,z=G.y-R.y,D=Math.sqrt(H*H+z*z);I.onMouseUp(G.timeStamp-Y,D,V)}function m(G){var B,p,y,Y;(B=I==null?void 0:I.modifiers)!=null&&B.self&&G.target!==i.value||(a(),(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&G.preventDefault(),(y=I==null?void 0:I.modifiers)!=null&&y.stop&&G.stopPropagation(),n={x:G.x,y:G.y},l=G.timeStamp,A=setTimeout(()=>{o=!0,g(G)},(Y=I==null?void 0:I.delay)!=null?Y:IQ))}function u(G){var B,p,y,Y;if((B=I==null?void 0:I.modifiers)!=null&&B.self&&G.target!==i.value||!n||(I==null?void 0:I.distanceThreshold)===!1)return;(p=I==null?void 0:I.modifiers)!=null&&p.prevent&&G.preventDefault(),(y=I==null?void 0:I.modifiers)!=null&&y.stop&&G.stopPropagation();const R=G.x-n.x,V=G.y-n.y;Math.sqrt(R*R+V*V)>=((Y=I==null?void 0:I.distanceThreshold)!=null?Y:CQ)&&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},Z=[qe(i,"pointerdown",m,b),qe(i,"pointermove",u,b),qe(i,["pointerup","pointerleave"],d,b)];return()=>Z.forEach(G=>G())}const eQ=s.defineComponent({name:"OnLongPress",props:["as","options"],emits:["trigger"],setup(C,{slots:g,emit:I}){const e=s.ref();return Ry(e,t=>{I("trigger",t)},C.options),()=>{if(g.default)return s.h(C.as||"div",{ref:e},g.default())}}}),TX={[hA.mounted](C,g){typeof g.value=="function"?Ry(C,g.value,{modifiers:g.modifiers}):Ry(C,...g.value)}},tQ=s.defineComponent({name:"UseActiveElement",setup(C,{slots:g}){const I=s.reactive({element:gO()});return()=>{if(g.default)return g.default(I)}}}),iQ=s.defineComponent({name:"UseBattery",setup(C,{slots:g}){const I=s.reactive(IO(C));return()=>{if(g.default)return g.default(I)}}}),AQ=s.defineComponent({name:"UseBrowserLocation",setup(C,{slots:g}){const I=s.reactive(CO());return()=>{if(g.default)return g.default(I)}}}),nQ=s.defineComponent({name:"UseClipboard",props:["source","read","navigator","copiedDuring","legacy"],setup(C,{slots:g}){const I=s.reactive(eO(C));return()=>{var e;return(e=g.default)==null?void 0:e.call(g,I)}}}),rG=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mG="__vueuse_ssr_handlers__",lQ=sQ();function sQ(){return mG in rG||(rG[mG]=rG[mG]||{}),rG[mG]}function vX(C,g){return lQ[C]||g}function oQ(){const C=s.ref(!1),g=s.getCurrentInstance();return g&&s.onMounted(()=>{C.value=!0},g),C}function uG(C){const g=oQ();return s.computed(()=>(g.value,!!C()))}function aQ(C,g={}){const{window:I=Fe}=g,e=uG(()=>I&&"matchMedia"in I&&typeof I.matchMedia=="function");let t;const i=s.ref(!1),A=o=>{i.value=o.matches},n=()=>{t&&("removeEventListener"in t?t.removeEventListener("change",A):t.removeListener(A))},l=s.watchEffect(()=>{e.value&&(n(),t=I.matchMedia(hg(C)),"addEventListener"in t?t.addEventListener("change",A):t.addListener(A),i.value=t.matches)});return QC(()=>{l(),n(),t=void 0}),i}function dQ(C){return aQ("(prefers-color-scheme: dark)",C)}function cQ(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 rQ={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()}},jX="vueuse-storage";function mQ(C,g,I,e={}){var t;const{flush:i="pre",deep:A=!0,listenToStorageChanges:n=!0,writeDefaults:l=!0,mergeDefaults:o=!1,shallow:a,window:d=Fe,eventFilter:m,onError:u=D=>{console.error(D)},initOnMounted:b}=e,Z=(a?s.shallowRef:s.ref)(typeof g=="function"?g():g);if(!I)try{I=vX("getDefaultStorage",()=>{var D;return(D=Fe)==null?void 0:D.localStorage})()}catch(D){u(D)}if(!I)return Z;const w=hg(g),G=cQ(w),B=(t=e.serializer)!=null?t:rQ[G],{pause:p,resume:y}=aG(Z,()=>R(Z.value),{flush:i,deep:A,eventFilter:m});d&&n&&$n(()=>{I instanceof Storage?qe(d,"storage",H):qe(d,jX,z),b&&H()}),b||H();function Y(D,F){if(d){const T={key:C,oldValue:D,newValue:F,storageArea:I};d.dispatchEvent(I instanceof Storage?new StorageEvent("storage",T):new CustomEvent(jX,{detail:T}))}}function R(D){try{const F=I.getItem(C);if(D==null)Y(F,null),I.removeItem(C);else{const T=B.write(D);F!==T&&(I.setItem(C,T),Y(F,T))}}catch(F){u(F)}}function V(D){const F=D?D.newValue:I.getItem(C);if(F==null)return l&&w!=null&&I.setItem(C,B.write(w)),w;if(!D&&o){const T=B.read(F);return typeof o=="function"?o(T,w):G==="object"&&!Array.isArray(T)?{...w,...T}:T}else return typeof F!="string"?F:B.read(F)}function H(D){if(!(D&&D.storageArea!==I)){if(D&&D.key==null){Z.value=w;return}if(!(D&&D.key!==C)){p();try{(D==null?void 0:D.newValue)!==B.write(Z.value)&&(Z.value=V(D))}catch(F){u(F)}finally{D?s.nextTick(y):y()}}}}function z(D){H(D.detail)}return Z}const uQ="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function hQ(C={}){const{selector:g="html",attribute:I="class",initialValue:e="auto",window:t=Fe,storage:i,storageKey:A="vueuse-color-scheme",listenToStorageChanges:n=!0,storageRef:l,emitAuto:o,disableTransition:a=!0}=C,d={auto:"",light:"light",dark:"dark",...C.modes||{}},m=dQ({window:t}),u=s.computed(()=>m.value?"dark":"light"),b=l||(A==null?oG(e):mQ(A,e,i,{window:t,listenToStorageChanges:n})),Z=s.computed(()=>b.value==="auto"?u.value:b.value),w=vX("updateHTMLAttrs",(y,Y,R)=>{const V=typeof y=="string"?t==null?void 0:t.document.querySelector(y):UC(y);if(!V)return;const H=new Set,z=new Set;let D=null;if(Y==="class"){const T=R.split(/\s/g);Object.values(d).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{T.includes(O)?H.add(O):z.add(O)})}else D={key:Y,value:R};if(H.size===0&&z.size===0&&D===null)return;let F;a&&(F=t.document.createElement("style"),F.appendChild(document.createTextNode(uQ)),t.document.head.appendChild(F));for(const T of H)V.classList.add(T);for(const T of z)V.classList.remove(T);D&&V.setAttribute(D.key,D.value),a&&(t.getComputedStyle(F).opacity,document.head.removeChild(F))});function G(y){var Y;w(g,I,(Y=d[y])!=null?Y:y)}function B(y){C.onChanged?C.onChanged(y,G):G(y)}s.watch(Z,B,{flush:"post",immediate:!0}),$n(()=>B(Z.value));const p=s.computed({get(){return o?b.value:Z.value},set(y){b.value=y}});try{return Object.assign(p,{store:b,system:u,state:Z})}catch{return p}}const bQ=s.defineComponent({name:"UseColorMode",props:["selector","attribute","modes","onChanged","storageKey","storage","emitAuto"],setup(C,{slots:g}){const I=hQ(C),e=s.reactive({mode:I,system:I.system,store:I.store});return()=>{if(g.default)return g.default(e)}}}),ZQ=s.defineComponent({name:"UseDark",props:["selector","attribute","valueDark","valueLight","onChanged","storageKey","storage"],setup(C,{slots:g}){const I=oO(C),e=s.reactive({isDark:I,toggleDark:_x(I)});return()=>{if(g.default)return g.default(e)}}}),GQ=s.defineComponent({name:"UseDeviceMotion",setup(C,{slots:g}){const I=s.reactive(aO());return()=>{if(g.default)return g.default(I)}}}),wQ=s.defineComponent({name:"UseDeviceOrientation",setup(C,{slots:g}){const I=s.reactive(dO());return()=>{if(g.default)return g.default(I)}}}),WQ=s.defineComponent({name:"UseDevicePixelRatio",setup(C,{slots:g}){const I=s.reactive({pixelRatio:cO()});return()=>{if(g.default)return g.default(I)}}}),BQ=s.defineComponent({name:"UseDevicesList",props:["onUpdated","requestPermissions","constraints"],setup(C,{slots:g}){const I=s.reactive(rO(C));return()=>{if(g.default)return g.default(I)}}}),pQ=s.defineComponent({name:"UseDocumentVisibility",setup(C,{slots:g}){const I=s.reactive({visibility:mO()});return()=>{if(g.default)return g.default(I)}}}),yQ=s.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=s.ref(),e=s.computed(()=>{var a;return(a=C.handle)!=null?a:I.value}),t=s.computed(()=>{var a;return(a=C.containerElement)!=null?a:void 0}),i=s.computed(()=>!!C.disabled),A=C.storageKey&&WX(C.storageKey,hg(C.initialValue)||{x:0,y:0},bA?C.storageType==="session"?sessionStorage:localStorage:void 0),n=A||C.initialValue||{x:0,y:0},l=(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=s.reactive(uO(I,{...C,handle:e,initialValue:n,onEnd:l,disabled:i,containerElement:t}));return()=>{if(g.default)return s.h(C.as||"div",{ref:I,style:`touch-action:none;${o.style}`},g.default(o))}}}),YQ=s.defineComponent({name:"UseElementBounding",props:["box","as"],setup(C,{slots:g}){const I=s.ref(),e=s.reactive(hO(I));return()=>{if(g.default)return s.h(C.as||"div",{ref:I},g.default(e))}}});function xX(C,g={}){const{delayEnter:I=0,delayLeave:e=0,window:t=Fe}=g,i=s.ref(!1);let A;const n=l=>{const o=l?I:e;A&&(clearTimeout(A),A=void 0),o?A=setTimeout(()=>i.value=l,o):i.value=l};return t&&(qe(C,"mouseenter",()=>n(!0),{passive:!0}),qe(C,"mouseleave",()=>n(!1),{passive:!0})),i}const VQ={[hA.mounted](C,g){const I=g.value;if(typeof I=="function"){const e=xX(C);s.watch(e,t=>I(t))}else{const[e,t]=I,i=xX(C,t);s.watch(i,A=>e(A))}}},NQ=s.defineComponent({name:"UseElementSize",props:["width","height","box","as"],setup(C,{slots:g}){const I=s.ref(),e=s.reactive(pX(I,{width:C.width,height:C.height},{box:C.box}));return()=>{if(g.default)return s.h(C.as||"div",{ref:I},g.default(e))}}});function Xy(C,g,I={}){const{window:e=Fe,...t}=I;let i;const A=uG(()=>e&&"ResizeObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},l=s.computed(()=>{const d=hg(C);return Array.isArray(d)?d.map(m=>UC(m)):[UC(d)]}),o=s.watch(l,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 QC(a),{isSupported:A,stop:a}}function MQ(C,g={width:0,height:0},I={}){const{window:e=Fe,box:t="content-box"}=I,i=s.computed(()=>{var d,m;return(m=(d=UC(C))==null?void 0:d.namespaceURI)==null?void 0:m.includes("svg")}),A=s.ref(g.width),n=s.ref(g.height),{stop:l}=Xy(C,([d])=>{const m=t==="border-box"?d.borderBoxSize:t==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(e&&i.value){const u=UC(C);if(u){const b=u.getBoundingClientRect();A.value=b.width,n.value=b.height}}else if(m){const u=Array.isArray(m)?m:[m];A.value=u.reduce((b,{inlineSize:Z})=>b+Z,0),n.value=u.reduce((b,{blockSize:Z})=>b+Z,0)}else A.value=d.contentRect.width,n.value=d.contentRect.height},I);$n(()=>{const d=UC(C);d&&(A.value="offsetWidth"in d?d.offsetWidth:g.width,n.value="offsetHeight"in d?d.offsetHeight:g.height)});const o=s.watch(()=>UC(C),d=>{A.value=d?g.width:0,n.value=d?g.height:0});function a(){l(),o()}return{width:A,height:n,stop:a}}const RQ={[hA.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}=MQ(C,...t);s.watch([i,A],([n,l])=>e({width:n,height:l}))}},XQ=s.defineComponent({name:"UseElementVisibility",props:["as"],setup(C,{slots:g}){const I=s.ref(),e=s.reactive({isVisible:ZO(I)});return()=>{if(g.default)return s.h(C.as||"div",{ref:I},g.default(e))}}});function Hy(C,g,I={}){const{root:e,rootMargin:t="0px",threshold:i=0,window:A=Fe,immediate:n=!0}=I,l=uG(()=>A&&"IntersectionObserver"in A),o=s.computed(()=>{const b=hg(C);return(Array.isArray(b)?b:[b]).map(UC).filter(nG)});let a=UI;const d=s.ref(n),m=l.value?s.watch(()=>[o.value,UC(e),d.value],([b,Z])=>{if(a(),!d.value||!b.length)return;const w=new IntersectionObserver(g,{root:UC(Z),rootMargin:t,threshold:i});b.forEach(G=>G&&w.observe(G)),a=()=>{w.disconnect(),a=UI}},{immediate:n,flush:"post"}):UI,u=()=>{a(),m(),d.value=!1};return QC(u),{isSupported:l,isActive:d,pause(){a(),d.value=!1},resume(){d.value=!0},stop:u}}function fy(C,g={}){const{window:I=Fe,scrollTarget:e,threshold:t=0}=g,i=s.ref(!1);return Hy(C,A=>{let n=i.value,l=0;for(const o of A)o.time>=l&&(l=o.time,n=o.isIntersecting);i.value=n},{root:e,window:I,threshold:t}),i}const HQ={[hA.mounted](C,g){if(typeof g.value=="function"){const I=g.value,e=fy(C);s.watch(e,t=>I(t),{immediate:!0})}else{const[I,e]=g.value,t=fy(C,e);s.watch(t,i=>I(i),{immediate:!0})}}},fQ=s.defineComponent({name:"UseEyeDropper",props:{sRGBHex:String},setup(C,{slots:g}){const I=s.reactive(GO());return()=>{if(g.default)return g.default(I)}}}),DQ=s.defineComponent({name:"UseFullscreen",props:["as"],setup(C,{slots:g}){const I=s.ref(),e=s.reactive(wO(I));return()=>{if(g.default)return s.h(C.as||"div",{ref:I},g.default(e))}}}),SQ=s.defineComponent({name:"UseGeolocation",props:["enableHighAccuracy","maximumAge","timeout","navigator"],setup(C,{slots:g}){const I=s.reactive(WO(C));return()=>{if(g.default)return g.default(I)}}}),KQ=s.defineComponent({name:"UseIdle",props:["timeout","events","listenForVisibilityChange","initialState"],setup(C,{slots:g}){const I=s.reactive(yO(C.timeout,C));return()=>{if(g.default)return g.default(I)}}});function kQ(C,g,I){const{immediate:e=!0,delay:t=0,onError:i=UI,onSuccess:A=UI,resetOnExecute:n=!0,shallow:l=!0,throwError:o}=I??{},a=l?s.shallowRef(g):s.ref(g),d=s.ref(!1),m=s.ref(!1),u=s.shallowRef(void 0);async function b(G=0,...B){n&&(a.value=g),u.value=void 0,d.value=!1,m.value=!0,G>0&&await py(G);const p=typeof C=="function"?C(...B):C;try{const y=await p;a.value=y,d.value=!0,A(y)}catch(y){if(u.value=y,i(y),o)throw y}finally{m.value=!1}return a.value}e&&b(t);const Z={state:a,isReady:d,isLoading:m,error:u,execute:b};function w(){return new Promise((G,B)=>{Yy(m).toBe(!1).then(()=>G(Z)).catch(B)})}return{...Z,then(G,B){return w().then(G,B)}}}async function FQ(C){return new Promise((g,I)=>{const e=new Image,{src:t,srcset:i,sizes:A,class:n,loading:l,crossorigin:o,referrerPolicy:a}=C;e.src=t,i&&(e.srcset=i),A&&(e.sizes=A),n&&(e.className=n),l&&(e.loading=l),o&&(e.crossOrigin=o),a&&(e.referrerPolicy=a),e.onload=()=>g(e),e.onerror=I})}function zQ(C,g={}){const I=kQ(()=>FQ(hg(C)),void 0,{resetOnExecute:!0,...g});return s.watch(()=>hg(C),()=>I.execute(g.delay),{deep:!0}),I}const JQ=s.defineComponent({name:"UseImage",props:["src","srcset","sizes","as","alt","class","loading","crossorigin","referrerPolicy"],setup(C,{slots:g}){const I=s.reactive(zQ(C));return()=>I.isLoading&&g.loading?g.loading(I):I.error&&g.error?g.error(I.error):g.default?g.default(I):s.h(C.as||"img",C)}});function hG(C){return typeof Window<"u"&&C instanceof Window?C.document.documentElement:typeof Document<"u"&&C instanceof Document?C.documentElement:C}const OX=1;function Dy(C,g={}){const{throttle:I=0,idle:e=200,onStop:t=UI,onScroll:i=UI,offset:A={left:0,right:0,top:0,bottom:0},eventListenerOptions:n={capture:!1,passive:!0},behavior:l="auto",window:o=Fe,onError:a=V=>{console.error(V)}}=g,d=s.ref(0),m=s.ref(0),u=s.computed({get(){return d.value},set(V){Z(V,void 0)}}),b=s.computed({get(){return m.value},set(V){Z(void 0,V)}});function Z(V,H){var z,D,F,T;if(!o)return;const O=hg(C);if(!O)return;(F=O instanceof Document?o.document.body:O)==null||F.scrollTo({top:(z=hg(H))!=null?z:b.value,left:(D=hg(V))!=null?D:u.value,behavior:hg(l)});const q=((T=O==null?void 0:O.document)==null?void 0:T.documentElement)||(O==null?void 0:O.documentElement)||O;u!=null&&(d.value=q.scrollLeft),b!=null&&(m.value=q.scrollTop)}const w=s.ref(!1),G=s.reactive({left:!0,right:!1,top:!0,bottom:!1}),B=s.reactive({left:!1,right:!1,top:!1,bottom:!1}),p=V=>{w.value&&(w.value=!1,B.left=!1,B.right=!1,B.top=!1,B.bottom=!1,t(V))},y=dX(p,I+e),Y=V=>{var H;if(!o)return;const z=((H=V==null?void 0:V.document)==null?void 0:H.documentElement)||(V==null?void 0:V.documentElement)||UC(V),{display:D,flexDirection:F}=getComputedStyle(z),T=z.scrollLeft;B.left=T<d.value,B.right=T>d.value;const O=Math.abs(T)<=(A.left||0),q=Math.abs(T)+z.clientWidth>=z.scrollWidth-(A.right||0)-OX;D==="flex"&&F==="row-reverse"?(G.left=q,G.right=O):(G.left=O,G.right=q),d.value=T;let Ig=z.scrollTop;V===o.document&&!Ig&&(Ig=o.document.body.scrollTop),B.top=Ig<m.value,B.bottom=Ig>m.value;const Q=Math.abs(Ig)<=(A.top||0),_=Math.abs(Ig)+z.clientHeight>=z.scrollHeight-(A.bottom||0)-OX;D==="flex"&&F==="column-reverse"?(G.top=_,G.bottom=Q):(G.top=Q,G.bottom=_),m.value=Ig},R=V=>{var H;if(!o)return;const z=(H=V.target.documentElement)!=null?H:V.target;Y(z),w.value=!0,y(V),i(V)};return qe(C,"scroll",I?Qx(R,I,!0,!1):R,n),$n(()=>{try{const V=hg(C);if(!V)return;Y(V)}catch(V){a(V)}}),qe(C,"scrollend",p,n),{x:u,y:b,isScrolling:w,arrivedState:G,directions:B,measure(){const V=hg(C);o&&V&&Y(V)}}}function QX(C,g,I={}){var e;const{direction:t="bottom",interval:i=100,canLoadMore:A=()=>!0}=I,n=s.reactive(Dy(C,{...I,offset:{[t]:(e=I.distance)!=null?e:0,...I.offset}})),l=s.ref(),o=s.computed(()=>!!l.value),a=s.computed(()=>hG(hg(C))),d=fy(a);function m(){if(n.measure(),!a.value||!d.value||!A(a.value))return;const{scrollHeight:b,clientHeight:Z,scrollWidth:w,clientWidth:G}=a.value,B=t==="bottom"||t==="top"?b<=Z:w<=G;(n.arrivedState[t]||B)&&(l.value||(l.value=Promise.all([g(n),new Promise(p=>setTimeout(p,i))]).finally(()=>{l.value=null,s.nextTick(()=>m())})))}const u=s.watch(()=>[n.arrivedState[t],d.value],m,{immediate:!0});return Ex(u),{isLoading:o,reset(){s.nextTick(()=>m())}}}const LQ={[hA.mounted](C,g){typeof g.value=="function"?QX(C,g.value):QX(C,...g.value)}},TQ={[hA.mounted](C,g){typeof g.value=="function"?Hy(C,g.value):Hy(C,...g.value)}},vQ=s.defineComponent({name:"UseMouse",props:["touch","resetOnTouchEnds","initialValue"],setup(C,{slots:g}){const I=s.reactive(YX(C));return()=>{if(g.default)return g.default(I)}}}),jQ=s.defineComponent({name:"UseMouseElement",props:["handleOutside","as"],setup(C,{slots:g}){const I=s.ref(),e=s.reactive(VO(I,C));return()=>{if(g.default)return s.h(C.as||"div",{ref:I},g.default(e))}}}),xQ=s.defineComponent({name:"UseMousePressed",props:["touch","initialValue","as"],setup(C,{slots:g}){const I=s.ref(),e=s.reactive(NO({...C,target:I}));return()=>{if(g.default)return s.h(C.as||"div",{ref:I},g.default(e))}}}),OQ=s.defineComponent({name:"UseNetwork",setup(C,{slots:g}){const I=s.reactive(VX());return()=>{if(g.default)return g.default(I)}}}),QQ=s.defineComponent({name:"UseNow",props:["interval"],setup(C,{slots:g}){const I=s.reactive(NX({...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),UQ=s.defineComponent({name:"UseObjectUrl",props:["object"],setup(C,{slots:g}){const I=oG(C,"object"),e=MO(I);return()=>{if(g.default&&e.value)return g.default(e)}}}),EQ=s.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=s.reactive(RO({...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)}}}),PQ=s.defineComponent({name:"UseOnline",setup(C,{slots:g}){const I=s.reactive({isOnline:XO()});return()=>{if(g.default)return g.default(I)}}}),_Q=s.defineComponent({name:"UsePageLeave",setup(C,{slots:g}){const I=s.reactive({isLeft:HO()});return()=>{if(g.default)return g.default(I)}}}),$Q=s.defineComponent({name:"UsePointer",props:["pointerTypes","initialValue","target"],setup(C,{slots:g}){const I=s.ref(null),e=s.reactive(DO({...C,target:C.target==="self"?I:Fe}));return()=>{if(g.default)return g.default(e,{ref:I})}}}),qQ=s.defineComponent({name:"UsePointerLock",props:["as"],setup(C,{slots:g}){const I=s.ref(),e=s.reactive(SO(I));return()=>{if(g.default)return s.h(C.as||"div",{ref:I},g.default(e))}}}),g4=s.defineComponent({name:"UsePreferredColorScheme",setup(C,{slots:g}){const I=s.reactive({colorScheme:KO()});return()=>{if(g.default)return g.default(I)}}}),I4=s.defineComponent({name:"UsePreferredContrast",setup(C,{slots:g}){const I=s.reactive({contrast:kO()});return()=>{if(g.default)return g.default(I)}}}),C4=s.defineComponent({name:"UsePreferredDark",setup(C,{slots:g}){const I=s.reactive({prefersDark:My()});return()=>{if(g.default)return g.default(I)}}}),e4=s.defineComponent({name:"UsePreferredLanguages",setup(C,{slots:g}){const I=s.reactive({languages:FO()});return()=>{if(g.default)return g.default(I)}}}),t4=s.defineComponent({name:"UsePreferredReducedMotion",setup(C,{slots:g}){const I=s.reactive({motion:zO()});return()=>{if(g.default)return g.default(I)}}}),i4={[hA.mounted](C,g){typeof g.value=="function"?Xy(C,g.value):Xy(C,...g.value)}};function A4(C,g,I={}){const{window:e=Fe,...t}=I;let i;const A=uG(()=>e&&"MutationObserver"in e),n=()=>{i&&(i.disconnect(),i=void 0)},l=s.computed(()=>{const m=hg(C),u=(Array.isArray(m)?m:[m]).map(UC).filter(nG);return new Set(u)}),o=s.watch(()=>l.value,m=>{n(),A.value&&m.size&&(i=new MutationObserver(g),m.forEach(u=>i.observe(u,t)))},{immediate:!0,flush:"post"}),a=()=>i==null?void 0:i.takeRecords(),d=()=>{o(),n()};return QC(d),{isSupported:A,stop:d,takeRecords:a}}function bG(C,g,I={}){const{window:e=Fe,initialValue:t,observe:i=!1}=I,A=s.ref(t),n=s.computed(()=>{var o;return UC(g)||((o=e==null?void 0:e.document)==null?void 0:o.documentElement)});function l(){var o;const a=hg(C),d=hg(n);if(d&&e&&a){const m=(o=e.getComputedStyle(d).getPropertyValue(a))==null?void 0:o.trim();A.value=m||t}}return i&&A4(n,l,{attributeFilter:["style","class"],window:e}),s.watch([n,()=>hg(C)],(o,a)=>{a[0]&&a[1]&&a[0].style.removeProperty(a[1]),l()},{immediate:!0}),s.watch(A,o=>{var a;const d=hg(C);(a=n.value)!=null&&a.style&&d&&(o==null?n.value.style.removeProperty(d):n.value.style.setProperty(d,o))}),A}const UX="--vueuse-safe-area-top",EX="--vueuse-safe-area-right",PX="--vueuse-safe-area-bottom",_X="--vueuse-safe-area-left";function n4(){const C=s.ref(""),g=s.ref(""),I=s.ref(""),e=s.ref("");if(bA){const i=bG(UX),A=bG(EX),n=bG(PX),l=bG(_X);i.value="env(safe-area-inset-top, 0px)",A.value="env(safe-area-inset-right, 0px)",n.value="env(safe-area-inset-bottom, 0px)",l.value="env(safe-area-inset-left, 0px)",t(),qe("resize",dX(t))}function t(){C.value=ZG(UX),g.value=ZG(EX),I.value=ZG(PX),e.value=ZG(_X)}return{top:C,right:g,bottom:I,left:e,update:t}}function ZG(C){return getComputedStyle(document.documentElement).getPropertyValue(C)}const l4=s.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}=n4();return()=>{if(g.default)return s.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())}}}),s4={[hA.mounted](C,g){if(typeof g.value=="function"){const I=g.value,e=Dy(C,{onScroll(){I(e)},onStop(){I(e)}})}else{const[I,e]=g.value,t=Dy(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 $X(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:$X(I)}}function o4(C){const g=C||window.event,I=g.target;return $X(I)?!1:g.touches.length>1?!0:(g.preventDefault&&g.preventDefault(),!1)}const Sy=new WeakMap;function a4(C,g=!1){const I=s.ref(g);let e=null,t="";s.watch(oG(C),n=>{const l=hG(hg(n));if(l){const o=l;if(Sy.get(o)||Sy.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=hG(hg(C));!n||I.value||(sG&&(e=qe(n,"touchmove",l=>{o4(l)},{passive:!1})),n.style.overflow="hidden",I.value=!0)},A=()=>{const n=hG(hg(C));!n||!I.value||(sG&&(e==null||e()),n.style.overflow=t,Sy.delete(n),I.value=!1)};return QC(A),s.computed({get(){return I.value},set(n){n?i():A()}})}function d4(){let C=!1;const g=s.ref(!1);return(I,e)=>{if(g.value=e.value,C)return;C=!0;const t=a4(I,e.value);s.watch(g,i=>t.value=i)}}const c4=d4(),r4=s.defineComponent({name:"UseTimeAgo",props:["time","updateInterval","max","fullDateFormatter","messages","showSecond"],setup(C,{slots:g}){const I=s.reactive(vO(()=>C.time,{...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),m4=s.defineComponent({name:"UseTimestamp",props:["immediate","interval","offset"],setup(C,{slots:g}){const I=s.reactive(xO({...C,controls:!0}));return()=>{if(g.default)return g.default(I)}}}),u4=s.defineComponent({name:"UseVirtualList",props:["list","options","height"],setup(C,{slots:g,expose:I}){const{list:e}=s.toRefs(C),{list:t,containerProps:i,wrapperProps:A,scrollTo:n}=OO(e,C.options);return I({scrollTo:n}),i.style&&typeof i.style=="object"&&!Array.isArray(i.style)&&(i.style.height=C.height||"300px"),()=>s.h("div",{...i},[s.h("div",{...A.value},t.value.map(l=>s.h("div",{style:{overflow:"hidden",height:l.height}},g.default?g.default(l):"Please set content!")))])}}),h4=s.defineComponent({name:"UseWindowFocus",setup(C,{slots:g}){const I=s.reactive({focused:PO()});return()=>{if(g.default)return g.default(I)}}}),b4=s.defineComponent({name:"UseWindowSize",props:["initialWidth","initialHeight"],setup(C,{slots:g}){const I=s.reactive(_O(C));return()=>{if(g.default)return g.default(I)}}});function YI(C,g=document.documentElement){for(const[I,e]of Object.entries(C))g.style.setProperty(I,String(e))}const Z4=["data-testid"],G4=["data-testid"],w4=["open","data-testid"],Mc=yg(s.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=s.reactive({isOpened:!1}),i=s.useId(),A=s.ref(null),n=s.ref(null),l=s.ref(null),o=s.computed(()=>`--anchor-select-${i}`);s.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=()=>{if(n.value&&A.value&&t.isOpened){const b=n.value.getBoundingClientRect();A.value.style.top=`${b.top+b.height}px`}};s.watch(()=>I.isOpened,()=>{t.isOpened=I.isOpened}),s.watch(()=>t.isOpened,m);const u=()=>{l.value&&YI({"anchor-name":`${o.value}`},l.value),A.value&&YI({"position-anchor":`${o.value}`},A.value)};return s.onMounted(()=>{I.isUseAnchor&&u(),window.addEventListener("scroll",m,!0)}),s.onUnmounted(()=>{window.removeEventListener("scroll",m,!0)}),(b,Z)=>s.withDirectives((s.openBlock(),s.createElementBlock("div",{ref_key:"selectRef",ref:l,class:"select-list-yui-kit","data-testid":I.dataTestid},[s.renderSlot(b.$slots,"body",{closeOpenList:a},()=>[s.createElementVNode("div",{ref_key:"currentRef",ref:n,class:s.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:s.withKeys(a,["enter"]),onClick:a,"data-testid":`${I.dataTestid}-Current`},[s.renderSlot(b.$slots,"header",{},void 0,!0)],42,G4)],!0),s.withDirectives(s.createElementVNode("ul",{ref_key:"dropdownRef",ref:A,class:s.normalizeClass(["select-list-yui-kit__list",I==null?void 0:I.optionsClasses]),open:t.isOpened,"data-testid":`${I.dataTestid}-OptionsList`},[s.renderSlot(b.$slots,"options",{},void 0,!0)],10,w4),[[s.vShow,t.isOpened]])],8,Z4)),[[s.unref(Nc),d,void 0,{bubble:!0}]])}}),[["__scopeId","data-v-daa52ae8"]]);function Fu(C){return C!==null&&typeof C=="object"&&"key"in C}function qX(C){return C!==null&&Array.isArray(C)&&typeof C[0]=="object"&&"key"in C[0]}const Ky=C=>C!==null&&typeof C=="object"&&"hint"in C,zu=C=>C!==null&&Array.isArray(C)&&Ky(C[0]),W4=["onClick","data-testid"],B4={class:"options__item"},p4={class:"options__value truncate-yui-kit"},y4={key:0,class:"options__used"},ky=yg(s.defineComponent({__name:"Options",props:{options:{},defaultOption:{},class:{},disabled:{type:Boolean},dataTestid:{default:"Options"}},emits:["change"],setup(C,{emit:g}){const I=C,e=s.reactive({choosedOption:I.defaultOption??(I.options[0]||""),lengthOption:0});s.watch(()=>I.defaultOption,()=>{I.defaultOption?e.choosedOption=I.defaultOption:e.choosedOption=""},{immediate:!0});const t=g,i=s.computed(()=>({"select-list-yui-kit__item":!0,"truncate-yui-kit":!0})),A=o=>{e.choosedOption=o,Fu(e.choosedOption)?t("change",e.choosedOption.key):t("change",e.choosedOption)},n=o=>{let a=!1;return Fu(o)?Fu(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)):Fu(e.choosedOption)?o===e.choosedOption.value&&(a=!0):o===e.choosedOption&&(a=!0),{active:a}},l=o=>Ky(o)?o.hint:Fu(o)?o.value:o;return(o,a)=>(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.options,(d,m)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:m},[s.createElementVNode("li",{class:s.normalizeClass([i.value,n(d),I.class]),onClick:()=>A(d),"data-testid":`${I.dataTestid}-${m}`},[s.createElementVNode("div",B4,[s.createElementVNode("div",p4,s.toDisplayString(l(d)),1),typeof d=="object"&&(d!=null&&d.used)?(s.openBlock(),s.createElementBlock("div",y4)):s.createCommentVNode("",!0)]),s.renderSlot(o.$slots,"option",{inx:m},void 0,!0)],10,W4),s.renderSlot(o.$slots,"default",{},void 0,!0)],64))),128))}}),[["__scopeId","data-v-582a9d39"]]),Y4=["data-testid"],Fy=yg(s.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=s.reactive({choosedOption:I.defaultOption||I.options[0]||"",isOpened:!1}),t=g,i=n=>{e.isOpened=n},A=n=>{let l;if(qX(I.options)){const o=I.options.find(a=>a.key===n);e.choosedOption=(o==null?void 0:o.value)||n,l=o==null?void 0:o.key}else e.choosedOption=n;e.isOpened=!1,t("change",l||n)};return s.watch(()=>I.defaultOption,()=>{I.defaultOption&&(e.choosedOption=I.defaultOption)}),s.onMounted(()=>{qX(I.options)&&(e.choosedOption=I.defaultOption||I.options[0].value)}),(n,l)=>(s.openBlock(),s.createBlock(Mc,{onChange:i,"is-opened":e.isOpened,class:s.normalizeClass([I.class,"dropdown-yui-kit"]),disabled:I.disabled,"data-testid":I.dataTestid},{header:s.withCtx(()=>[s.createElementVNode("span",{class:"truncate-yui-kit dropdown-yui-kit__text","data-testid":`${I.dataTestid}-SelectedText`},s.toDisplayString(e.choosedOption),9,Y4),e.isOpened?(s.openBlock(),s.createBlock(Ng,{key:0,name:s.unref(dg).chevronUp,"data-testid":`${I.dataTestid}-ArrowUp`},null,8,["name","data-testid"])):s.createCommentVNode("",!0),e.isOpened?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(Ng,{key:1,name:s.unref(dg).chevronDown,"data-testid":`${I.dataTestid}-ArrowDown`},null,8,["name","data-testid"]))]),options:s.withCtx(()=>[s.createVNode(ky,{options:I.options,"default-option":I.defaultOption,onChange:A,"data-testid":`${I.dataTestid}-Options`},null,8,["options","default-option","data-testid"])]),_:1},8,["is-opened","class","disabled","data-testid"]))}}),[["__scopeId","data-v-08af0925"]]);/**
571
571
  * @license
572
572
  * Copyright 2019 Google LLC
573
573
  * SPDX-License-Identifier: BSD-3-Clause