import{aI as ve,K as A,Q as g,z as pe,P as me,I as j,G as le,L as se,aJ as G,p as ae,B as he,aG as ye,r as ue,C as be,i as L,A as ne,u as ge,E as Se}from"./CGuWR5z3.js";function q(e,n){return pe()?(me(e,n),!0):!1}const K=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalthis instanceof WorkerGlobalScope;const ce=e=>e!=null,we=Object.prototype.toString,Te=e=>we.call(e)==="[object Object]",x=()=>{};function Ee(...e){if(e.length!==1)return he(...e);const n=e[0];return typeof n=="function"?G(ye(()=>({get:n,set:x}))):ue(n)}function X(e,n){function o(...t){return new Promise((i,r)=>{Promise.resolve(e(()=>n.apply(this,t),{fn:n,thisArg:this,args:t})).then(i).catch(r)})}return o}const fe=e=>e();function Oe(e,n={}){let o,t,i=x;const r=u=>{clearTimeout(u),i(),i=x};let s;return u=>{const d=g(e),l=g(n.maxWait);return o&&r(o),d<=0||l!==void 0&&l<=0?(t&&(r(t),t=void 0),Promise.resolve(u())):new Promise((a,w)=>{i=n.rejectOnCancel?w:a,s=u,l&&!t&&(t=setTimeout(()=>{o&&r(o),t=void 0,a(s())},l)),o=setTimeout(()=>{t&&r(t),t=void 0,a(u())},d)})}}function _e(...e){let n=0,o,t=!0,i=x,r,s,c,u,d;!be(e[0])&&typeof e[0]=="object"?{delay:s,trailing:c=!0,leading:u=!0,rejectOnCancel:d=!1}=e[0]:[s,c=!0,u=!0,d=!1]=e;const l=()=>{o&&(clearTimeout(o),o=void 0,i(),i=x)};return w=>{const b=g(s),T=Date.now()-n,E=()=>r=w();return l(),b<=0?(n=date.now(),e()):(t>b?(n=Date.now(),(u||!t)&&E()):c&&(r=new Promise((y,S)=>{i=d?S:y,o=setTimeout(()=>{n=Date.now(),t=!0,y(E()),l()},Math.max(0,b-T))})),!u&&!o&&(o=setTimeout(()=>t=!0,b)),t=!1,r)}}function Ae(e=fe,n={}){const{initialState:o="active"}=n,t=Ee(o==="active");function i(){t.value=!1}function r(){t.value=!0}const s=(...c)=>{t.value&&e(...c)};return{isActive:G(t),pause:i,resume:r,eventFilter:s}}function Ce(e){let n;function o(){return n||(n=e()),n}return o.reset=async()=>{const t=n;n=void 0,t&&await t},o}function V(e){return Array.isArray(e)?e:[e]}function Me(e){return ae()}function Re(e,n=200,o={}){return X(Oe(n,o),e)}function xe(e,n=200,o=!1,t=!0,i=!1){return X(_e(n,o,t,i),e)}function De(e,n,o={}){const{eventFilter:t=fe,...i}=o;return j(e,X(t,n),i)}function Fe(e,n,o={}){const{eventFilter:t,initialState:i="active",...r}=o,{eventFilter:s,pause:c,resume:u,isActive:d}=Ae(t,{initialState:i});return{stop:De(e,n,{...r,eventFilter:s}),pause:c,resume:u,isActive:d}}function Q(e,n=!0,o){Me()?le(e,o):n?e():se(e)}function Le(e,n,o={}){const{immediate:t=!0,immediateCallback:i=!1}=o,r=A(!1);let s;function c(){s&&(clearTimeout(s),s=void 0)}function u(){r.value=!1,c()}function d(...l){i&&e(),c(),r.value=!0,s=setTimeout(()=>{r.value=!1,s=void 0,e(...l)},g(n))}return t&&(r.value=!0,K&&d()),q(u),{isPending:ve(r),start:d,stop:u}}function Pe(e,n,o){return j(e,n,{...o,immediate:!0})}const F=K?window:void 0,Y=K?window.navigator:void 0;function D(e){var n;const o=g(e);return(n=o?.$el)!==null&&n!==void 0?n:o}function W(...e){const n=(t,i,r,s)=>(t.addEventListener(i,r,s),()=>t.removeEventListener(i,r,s)),o=L(()=>{const t=V(g(e[0])).filter(i=>i!=null);return t.every(i=>typeof i!="string")?t:void 0});return Pe(()=>{var t,i;return[(t=(i=o.value)===null||i===void 0?void 0:i.map(r=>D(r)))!==null&&t!==void 0?t:[F].filter(r=>r!=null),V(g(o.value?e[1]:e[0])),V(ge(o.value?e[2]:e[1])),g(o.value?e[3]:e[2])]},([t,i,r,s],c,u)=>{if(!t?.length||!i?.length||!r?.length)return;const d=Te(s)?{...s}:s,l=t.flatMap(a=>i.flatMap(w=>r.map(b=>n(a,w,b,d))));u(()=>{l.forEach(a=>a())})},{flush:"post"})}function We(){const e=A(!1),n=ae();return n&&le(()=>{e.value=!0},n),e}function $(e){const n=We();return L(()=>(n.value,!!e()))}function de(e,n,o={}){const{window:t=F,...i}=o;let r;const s=$(()=>t&&"MutationObserver"in t),c=()=>{r&&(r.disconnect(),r=void 0)},u=j(L(()=>{const a=V(g(e)).map(D).filter(ce);return new Set(a)}),a=>{c(),s.value&&a.size&&(r=new MutationObserver(n),a.forEach(w=>r.observe(w,i)))},{immediate:!0,flush:"post"}),d=()=>r?.takeRecords(),l=()=>{u(),c()};return q(l),{isSupported:s,stop:l,takeRecords:d}}function oe(e,n={}){const{controls:o=!1,navigator:t=Y}=n,i=$(()=>t&&"permissions"in t),r=A(),s=typeof e=="string"?{name:e}:e,c=A(),u=()=>{var l,a;c.value=(l=(a=r.value)===null||a===void 0?void 0:a.state)!==null&&l!==void 0?l:"prompt"};W(r,"change",u,{passive:!0});const d=Ce(async()=>{if(i.value){if(!r.value)try{r.value=await t.permissions.query(s)}catch{r.value=void 0}finally{u()}if(o)return Se(r.value)}});return d(),o?{state:c,isSupported:i,query:d}:c}function He(e={}){const{navigator:n=Y,read:o=!1,source:t,copiedDuring:i=1500,legacy:r=!1}=e,s=$(()=>n&&"clipboard"in n),c=oe("clipboard-read"),u=oe("clipboard-write"),d=L(()=>s.value||r),l=A(""),a=A(!1),w=Le(()=>a.value=!1,i,{immediate:!1});async function b(){let v=!(s.value&&S(c.value));if(!v)try{l.value=await n.clipboard.readText()}catch{v=!0}v&&(l.value=y())}d.value&&o&&W(["copy","cut"],b,{passive:!0});async function T(v=g(t)){if(d.value&&v!=null){let m=!(s.value&&S(u.value));if(!m)try{await n.clipboard.writeText(v)}catch{m=!0}m&&E(v),l.value=v,a.value=!0,w.start()}}function E(v){const m=document.createElement("textarea");m.value=v,m.style.position="absolute",m.style.opacity="0",m.setAttribute("readonly",""),document.body.appendChild(m),m.select(),document.execCommand("copy"),m.remove()}function y(){var v,m,_;return(v=(m=document)===null||m===void 0||(_=m.getSelection)===null||_===void 0||(_=_.call(m))===null||_===void 0?void 0:_.toString())!==null&&v!==void 0?v:""}function S(v){return v==="granted"||v==="prompt"}return{isSupported:d,text:G(l),copied:G(a),copy:T}}const J=typeof globalThis<"u"?globalthis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},b="__vueuse_ssr_handlers__",ze=je();function je(){return B in J||(J[B]=J[B]||{}),J[B]}function Ne(e,n){return ze[e]||n}function $e(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ke={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},re="vueuse-storage";function Je(e,n,o,t={}){var i;const{flush:r="pre",deep:s=!0,listenToStorageChanges:c=!0,writeDefaults:u=!0,mergeDefaults:d=!1,shallow:l,window:a=F,eventFilter:w,onError:b=f=>{console.error(f)},initOnMounted:T}=t,E=(l?A:ue)(typeof n=="function"?n():n),y=L(()=>g(e));if(!o)try{o=Ne("getDefaultStorage",()=>F?.localStorage)()}catch(f){b(f)}if(!o)return E;const S=g(n),v=$e(S),m=(i=t.serializer)!==null&&i!==void 0?i:ke[v],{pause:_,resume:k}=Fe(E,f=>R(f),{flush:r,deep:s,eventFilter:w});j(y,()=>M(),{flush:r});let I=!1;const N=f=>{T&&!I||M(f)},H=f=>{T&&!I||P(f)};a&&c&&(o instanceof Storage?W(a,"storage",N,{passive:!0}):W(a,re,H)),T?Q(()=>{I=!0,M()}):M();function p(f,h){if(a){const O={key:y.value,oldValue:f,newValue:h,storageArea:o};a.dispatchEvent(o instanceof Storage?new StorageEvent("storage",O):new CustomEvent(re,{detail:O}))}}function R(f){try{const h=o.getItem(y.value);if(f==null)p(h,null),o.removeItem(y.value);else{const O=m.write(f);h!==O&&(o.setItem(y.value,O),p(h,O))}}catch(h){b(h)}}function C(f){const h=f?f.newValue:o.getItem(y.value);if(h==null)return u&&S!=null&&o.setItem(y.value,m.write(S)),S;if(!f&&d){const O=m.read(h);return typeof d=="function"?d(O,S):v==="object"&&!Array.isArray(O)?{...S,...O}:O}else return typeof h!="string"?h:m.read(h)}function M(f){if(!(f&&f.storageArea!==o)){if(f&&f.key==null){E.value=S;return}if(!(f&&f.key!==y.value)){_();try{const h=m.write(E.value);(f===void 0||f?.newValue!==h)&&(E.value=C(f))}catch(h){b(h)}finally{f?se(k):k()}}}}function P(f){M(f.detail)}return E}function Ie(e,n,o={}){const{window:t=F,...i}=o;let r;const s=$(()=>t&&"ResizeObserver"in t),c=()=>{r&&(r.disconnect(),r=void 0)},u=j(L(()=>{const l=g(e);return Array.isArray(l)?l.map(a=>D(a)):[D(l)]}),l=>{if(c(),s.value&&t){r=new ResizeObserver(n);for(const a of l)a&&r.observe(a,i)}},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return q(d),{isSupported:s,stop:d}}function Be(e,n={}){const{reset:o=!0,windowResize:t=!0,windowScroll:i=!0,immediate:r=!0,updateTiming:s="sync"}=n,c=A(0),u=A(0),d=A(0),l=A(0),a=A(0),w=A(0),b=A(0),T=A(0);function E(){const S=D(e);if(!S){o&&(c.value=0,u.value=0,d.value=0,l.value=0,a.value=0,w.value=0,b.value=0,T.value=0);return}const v=S.getBoundingClientRect();c.value=v.height,u.value=v.bottom,d.value=v.left,l.value=v.right,a.value=v.top,w.value=v.width,b.value=v.x,T.value=v.y}function y(){s==="sync"?E():s==="next-frame"&&requestAnimationFrame(()=>E())}return Ie(e,y),j(()=>D(e),S=>!S&&y()),de(e,y,{attributeFilter:["style","class"]}),i&&W("scroll",y,{capture:!0,passive:!0}),t&&W("resize",y,{passive:!0}),Q(()=>{r&&y()}),{height:c,bottom:u,left:d,right:l,top:a,width:w,x:b,y:T,update:y}}function Ge(e,n,o={}){const{root:t,rootMargin:i,threshold:r=0,window:s=F,immediate:c=!0}=o,u=$(()=>s&&"IntersectionObserver"in s),d=L(()=>V(g(e)).map(D).filter(ce));let l=x;const a=A(c),w=u.value?j(()=>[d.value,D(t),g(i),a.value],([T,E,y])=>{if(l(),!a.value||!T.length)return;const S=new IntersectionObserver(n,{root:D(E),rootMargin:y,threshold:r});T.forEach(v=>v&&S.observe(v)),l=()=>{S.disconnect(),l=x}},{immediate:c,flush:"post"}):x,b=()=>{l(),w(),a.value=!1};return q(b),{isSupported:u,isActive:a,pause(){l(),a.value=!1},resume(){a.value=!0},stop:b}}const ie=1;function qe(e,n={}){const{throttle:o=0,idle:t=200,onStop:i=x,onScroll:r=x,offset:s={left:0,right:0,top:0,bottom:0},observe:c={mutation:!1},eventListenerOptions:u={capture:!1,passive:!0},behavior:d="auto",window:l=F,onError:a=p=>{console.error(p)}}=n,w=typeof c=="boolean"?{mutation:c}:c,b=A(0),T=A(0),E=L({get(){return b.value},set(p){S(p,void 0)}}),y=L({get(){return T.value},set(p){S(void 0,p)}});function S(p,R){var C,M,P,f;if(!l)return;const h=g(e);if(!h)return;(C=h instanceof Document?l.document.body:h)===null||C===void 0||C.scrollTo({top:(M=g(R))!==null&&M!==void 0?M:y.value,left:(P=g(p))!==null&&P!==void 0?P:E.value,behavior:g(d)});const O=(h==null||(f=h.document)===null||f===void 0?void 0:f.documentElement)||h?.documentElement||h;E!=null&&(b.value=O.scrollLeft),y!=null&&(T.value=O.scrollTop)}const v=A(!1),m=ne({left:!0,right:!1,top:!0,bottom:!1}),_=ne({left:!1,right:!1,top:!1,bottom:!1}),k=p=>{v.value&&(v.value=!1,_.left=!1,_.right=!1,_.top=!1,_.bottom=!1,i(p))},I=Re(k,o+t),N=p=>{var R;if(!l)return;const C=(p==null||(R=p.document)===null||R===void 0?void 0:R.documentElement)||p?.documentElement||D(p),{display:M,flexDirection:P,direction:f}=l.getComputedStyle(C),h=f==="rtl"?-1:1,O=C.scrollLeft;_.left=Ob.value;const U=Math.abs(O*h)<=(s.left||0),z=math.abs(o*h)+c.clientwidth>=C.scrollWidth-(s.right||0)-ie;M==="flex"&&P==="row-reverse"?(m.left=Z,m.right=U):(m.left=U,m.right=Z),b.value=O;let z=C.scrollTop;p===l.document&&!z&&(z=l.document.body.scrollTop),_.top=zT.value;const ee=Math.abs(z)<=(s.top||0),te=math.abs(z)+c.clientheight>=C.scrollHeight-(s.bottom||0)-ie;M==="flex"&&P==="column-reverse"?(m.top=te,m.bottom=ee):(m.top=ee,m.bottom=te),T.value=z},H=p=>{var R;l&&(N((R=p.target.documentElement)!==null&&R!==void 0?R:p.target),v.value=!0,I(p),r(p))};return W(e,"scroll",o?xe(H,o,!0,!1):H,u),Q(()=>{try{const p=g(e);if(!p)return;N(p)}catch(p){a(p)}}),w?.mutation&&e!=null&&e!==l&&e!==document&&de(e,()=>{const p=g(e);p&&N(p)},{attributes:!0,childList:!0,subtree:!0}),W(e,"scrollend",k,u),{x:E,y,isScrolling:v,arrivedState:m,directions:_,measure(){const p=g(e);l&&p&&N(p)}}}function Ke(e={},n={}){const{navigator:o=Y}=n,t=o,i=$(()=>t&&"canShare"in t);return{isSupported:i,share:async(s={})=>{if(i.value){const c={...g(e),...g(s)};let u=!1;if(t.canShare&&(u=t.canShare(c)),u)return t.share(c)}}}}export{Ke as a,Je as b,Be as c,Ge as d,qe as e,Ie as f,He as u};

AltStyle によって変換されたページ (->オリジナル) /