youtuber-blog-frontend/build/client/_app/immutable/chunks/index.B3mWxGlt.js

2 lines
33 KiB
JavaScript
Raw Normal View History

2024-05-29 18:43:41 +00:00
import"./index.CaCtjzNU.js";import{d as Se,w as Ue,r as N}from"./index.DJbdiDqX.js";import{K as Be,ab as He,O as Ce}from"./scheduler.lbjRT0Rl.js";var me=Object.prototype.hasOwnProperty;function ye(e,r,t){for(t of e.keys())if(X(t,r))return t}function X(e,r){var t,n,s;if(e===r)return!0;if(e&&r&&(t=e.constructor)===r.constructor){if(t===Date)return e.getTime()===r.getTime();if(t===RegExp)return e.toString()===r.toString();if(t===Array){if((n=e.length)===r.length)for(;n--&&X(e[n],r[n]););return n===-1}if(t===Set){if(e.size!==r.size)return!1;for(n of e)if(s=n,s&&typeof s=="object"&&(s=ye(r,s),!s)||!r.has(s))return!1;return!0}if(t===Map){if(e.size!==r.size)return!1;for(n of e)if(s=n[0],s&&typeof s=="object"&&(s=ye(r,s),!s)||!X(n[1],r.get(s)))return!1;return!0}if(t===ArrayBuffer)e=new Uint8Array(e),r=new Uint8Array(r);else if(t===DataView){if((n=e.byteLength)===r.byteLength)for(;n--&&e.getInt8(n)===r.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===r.byteLength)for(;n--&&e[n]===r[n];);return n===-1}if(!t||typeof e=="object"){n=0;for(t in e)if(me.call(e,t)&&++n&&!me.call(r,t)||!(t in r)||!X(e[t],r[t]))return!1;return Object.keys(r).length===n}}return e!==e&&r!==r}function Me(e){return Object.keys(e).reduce((r,t)=>e[t]===void 0?r:r+`${t}:${e[t]};`,"")}function Jt(e){return e?!0:void 0}Me({position:"absolute",opacity:0,"pointer-events":"none",margin:0,transform:"translateX(-100%)"});function Yt(e){if(e!==null)return""}function he(e){function r(t){return t(e),()=>{}}return{subscribe:r}}function Xt(e){if(!qe)return null;const r=document.querySelector(`[data-melt-id="${e}"]`);return pe(r)?r:null}const re=e=>new Proxy(e,{get(r,t,n){return Reflect.get(r,t,n)},ownKeys(r){return Reflect.ownKeys(r).filter(t=>t!=="action")}}),ve=e=>typeof e=="function";Te("empty");function Te(e,r){const{stores:t,action:n,returned:s}=r??{},o=(()=>{if(t&&s)return Se(t,a=>{const c=s(a);if(ve(c)){const d=(...u)=>re({...c(...u),[`data-melt-${e}`]:"",action:n??$});return d.action=n??$,d}return re({...c,[`data-melt-${e}`]:"",action:n??$})});{const a=s,c=a==null?void 0:a();if(ve(c)){const d=(...u)=>re({...c(...u),[`data-melt-${e}`]:"",action:n??$});return d.action=n??$,he(d)}return he(re({...c,[`data-melt-${e}`]:"",action:n??$}))}})(),i=n??(()=>{});return i.subscribe=o.subscribe,i}function Ke(e){const r=o=>o?`${e}-${o}`:e,t=o=>`data-melt-${e}${o?`-${o}`:""}`,n=o=>`[data-melt-${e}${o?`-${o}`:""}]`;return{name:r,attribute:t,selector:n,getEl:o=>document.querySelector(n(o))}}const qe=typeof document<"u",Je=e=>typeof e=="function";function Zt(e){return e instanceof Document}function Qt(e){return e instanceof Element}function pe(e){return e instanceof HTMLElement}function er(e){return e instanceof HTMLInputElement}function tr(e){return e instanceof HTMLLabelElement}function rr(e){return e instanceof HTMLButtonElement}function nr(e){const r=e.getAttribute("aria-disabled"),t=e.getAttribute("disabled"),n=e.hasAttribute("data-disabled");return!!(r==="true"||t!==null||n)}function or(e){return e.pointerType==="touch"}function Ye(e){return e!==null&&typeof e=="object"}function ze(e){return Ye(e)&&"subscribe"in e}function Xe(...e){return(...r)=>{for(const t of e)typeof t=="function"&&t(...r)}}function $(){}function Re(e,r,t,n){const s=Array.isArray(r)?r:[r];return s.forEach(o=>e.addEventListener(o,t,n)),()=>{s.forEach(o=>e.removeEventListener(o,t,n))}}function sr(e,r,t,n){const s=Array.isArray(r)?r:[r];if(typeof t=="function"){const o=Qe(i=>t(i));return s.forEach(i=>e.addEventListener(i,o,n)),()=>{s.forEach(i=>e.removeEventListener(i,o,n))}}return()=>void 0}function Ze(e){const r=e.currentTarget;if(!pe(r))return null;const t=new CustomEvent(`m-${e.type}`,{detail:{originalEvent:e},cancelable:!0});return r.dispatchEvent(t),t}function Qe(e){return r=>{const t=Ze(r);if(!(t!=null&&t.defaultPrevented))return e(r)}}const ir=e=>{try{Be(e)}catch{return e}},et=e=>{try{He(e)}catch{return e}};function Oe(e,...r){const t={};for(const n of Object.keys(e))r.includes(n)||(t[n]=e[n]);return t}function ar(e,r,t){return Object.fromEntries(Object.entries(e).filter(([n,s]