(() => { function $parcel$interopDefault(a) { return a && a.__esModule ? a.default : a; } function $parcel$defineInteropFlag(a) { Object.defineProperty(a, '__esModule', {value: true, configurable: true}); } function $parcel$export(e, n, v, s) { Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true}); } // packages/alpinejs/src/scheduler.js var $caa9439642c6336c$var$flushPending = false; var $caa9439642c6336c$var$flushing = false; var $caa9439642c6336c$var$queue = []; function $caa9439642c6336c$var$scheduler(callback) { $caa9439642c6336c$var$queueJob(callback); } function $caa9439642c6336c$var$queueJob(job) { if (!$caa9439642c6336c$var$queue.includes(job)) $caa9439642c6336c$var$queue.push(job); $caa9439642c6336c$var$queueFlush(); } function $caa9439642c6336c$var$dequeueJob(job) { let index = $caa9439642c6336c$var$queue.indexOf(job); if (index !== -1) $caa9439642c6336c$var$queue.splice(index, 1); } function $caa9439642c6336c$var$queueFlush() { if (!$caa9439642c6336c$var$flushing && !$caa9439642c6336c$var$flushPending) { $caa9439642c6336c$var$flushPending = true; queueMicrotask($caa9439642c6336c$var$flushJobs); } } function $caa9439642c6336c$var$flushJobs() { $caa9439642c6336c$var$flushPending = false; $caa9439642c6336c$var$flushing = true; for(let i = 0; i < $caa9439642c6336c$var$queue.length; i++)$caa9439642c6336c$var$queue[i](); $caa9439642c6336c$var$queue.length = 0; $caa9439642c6336c$var$flushing = false; } // packages/alpinejs/src/reactivity.js var $caa9439642c6336c$var$reactive; var $caa9439642c6336c$var$effect; var $caa9439642c6336c$var$release; var $caa9439642c6336c$var$raw; var $caa9439642c6336c$var$shouldSchedule = true; function $caa9439642c6336c$var$disableEffectScheduling(callback) { $caa9439642c6336c$var$shouldSchedule = false; callback(); $caa9439642c6336c$var$shouldSchedule = true; } function $caa9439642c6336c$var$setReactivityEngine(engine) { $caa9439642c6336c$var$reactive = engine.reactive; $caa9439642c6336c$var$release = engine.release; $caa9439642c6336c$var$effect = (callback)=>engine.effect(callback, { scheduler: (task)=>{ if ($caa9439642c6336c$var$shouldSchedule) $caa9439642c6336c$var$scheduler(task); else task(); } }); $caa9439642c6336c$var$raw = engine.raw; } function $caa9439642c6336c$var$overrideEffect(override) { $caa9439642c6336c$var$effect = override; } function $caa9439642c6336c$var$elementBoundEffect(el) { let cleanup2 = ()=>{}; let wrappedEffect = (callback)=>{ let effectReference = $caa9439642c6336c$var$effect(callback); if (!el._x_effects) { el._x_effects = new Set(); el._x_runEffects = ()=>{ el._x_effects.forEach((i)=>i()); }; } el._x_effects.add(effectReference); cleanup2 = ()=>{ if (effectReference === void 0) return; el._x_effects.delete(effectReference); $caa9439642c6336c$var$release(effectReference); }; return effectReference; }; return [ wrappedEffect, ()=>{ cleanup2(); } ]; } // packages/alpinejs/src/mutation.js var $caa9439642c6336c$var$onAttributeAddeds = []; var $caa9439642c6336c$var$onElRemoveds = []; var $caa9439642c6336c$var$onElAddeds = []; function $caa9439642c6336c$var$onElAdded(callback) { $caa9439642c6336c$var$onElAddeds.push(callback); } function $caa9439642c6336c$var$onElRemoved(el, callback) { if (typeof callback === "function") { if (!el._x_cleanups) el._x_cleanups = []; el._x_cleanups.push(callback); } else { callback = el; $caa9439642c6336c$var$onElRemoveds.push(callback); } } function $caa9439642c6336c$var$onAttributesAdded(callback) { $caa9439642c6336c$var$onAttributeAddeds.push(callback); } function $caa9439642c6336c$var$onAttributeRemoved(el, name, callback) { if (!el._x_attributeCleanups) el._x_attributeCleanups = {}; if (!el._x_attributeCleanups[name]) el._x_attributeCleanups[name] = []; el._x_attributeCleanups[name].push(callback); } function $caa9439642c6336c$var$cleanupAttributes(el, names) { if (!el._x_attributeCleanups) return; Object.entries(el._x_attributeCleanups).forEach(([name, value])=>{ if (names === void 0 || names.includes(name)) { value.forEach((i)=>i()); delete el._x_attributeCleanups[name]; } }); } var $caa9439642c6336c$var$observer = new MutationObserver($caa9439642c6336c$var$onMutate); var $caa9439642c6336c$var$currentlyObserving = false; function $caa9439642c6336c$var$startObservingMutations() { $caa9439642c6336c$var$observer.observe(document, { subtree: true, childList: true, attributes: true, attributeOldValue: true }); $caa9439642c6336c$var$currentlyObserving = true; } function $caa9439642c6336c$var$stopObservingMutations() { $caa9439642c6336c$var$flushObserver(); $caa9439642c6336c$var$observer.disconnect(); $caa9439642c6336c$var$currentlyObserving = false; } var $caa9439642c6336c$var$recordQueue = []; var $caa9439642c6336c$var$willProcessRecordQueue = false; function $caa9439642c6336c$var$flushObserver() { $caa9439642c6336c$var$recordQueue = $caa9439642c6336c$var$recordQueue.concat($caa9439642c6336c$var$observer.takeRecords()); if ($caa9439642c6336c$var$recordQueue.length && !$caa9439642c6336c$var$willProcessRecordQueue) { $caa9439642c6336c$var$willProcessRecordQueue = true; queueMicrotask(()=>{ $caa9439642c6336c$var$processRecordQueue(); $caa9439642c6336c$var$willProcessRecordQueue = false; }); } } function $caa9439642c6336c$var$processRecordQueue() { $caa9439642c6336c$var$onMutate($caa9439642c6336c$var$recordQueue); $caa9439642c6336c$var$recordQueue.length = 0; } function $caa9439642c6336c$var$mutateDom(callback) { if (!$caa9439642c6336c$var$currentlyObserving) return callback(); $caa9439642c6336c$var$stopObservingMutations(); let result = callback(); $caa9439642c6336c$var$startObservingMutations(); return result; } var $caa9439642c6336c$var$isCollecting = false; var $caa9439642c6336c$var$deferredMutations = []; function $caa9439642c6336c$var$deferMutations() { $caa9439642c6336c$var$isCollecting = true; } function $caa9439642c6336c$var$flushAndStopDeferringMutations() { $caa9439642c6336c$var$isCollecting = false; $caa9439642c6336c$var$onMutate($caa9439642c6336c$var$deferredMutations); $caa9439642c6336c$var$deferredMutations = []; } function $caa9439642c6336c$var$onMutate(mutations) { if ($caa9439642c6336c$var$isCollecting) { $caa9439642c6336c$var$deferredMutations = $caa9439642c6336c$var$deferredMutations.concat(mutations); return; } let addedNodes = []; let removedNodes = []; let addedAttributes = new Map(); let removedAttributes = new Map(); for(let i1 = 0; i1 < mutations.length; i1++){ if (mutations[i1].target._x_ignoreMutationObserver) continue; if (mutations[i1].type === "childList") { mutations[i1].addedNodes.forEach((node)=>node.nodeType === 1 && addedNodes.push(node)); mutations[i1].removedNodes.forEach((node)=>node.nodeType === 1 && removedNodes.push(node)); } if (mutations[i1].type === "attributes") { let el = mutations[i1].target; let name = mutations[i1].attributeName; let oldValue = mutations[i1].oldValue; let add2 = ()=>{ if (!addedAttributes.has(el)) addedAttributes.set(el, []); addedAttributes.get(el).push({ name: name, value: el.getAttribute(name) }); }; let remove = ()=>{ if (!removedAttributes.has(el)) removedAttributes.set(el, []); removedAttributes.get(el).push(name); }; if (el.hasAttribute(name) && oldValue === null) add2(); else if (el.hasAttribute(name)) { remove(); add2(); } else remove(); } } removedAttributes.forEach((attrs, el)=>{ $caa9439642c6336c$var$cleanupAttributes(el, attrs); }); addedAttributes.forEach((attrs, el)=>{ $caa9439642c6336c$var$onAttributeAddeds.forEach((i)=>i(el, attrs)); }); for (let node2 of removedNodes){ if (addedNodes.includes(node2)) continue; $caa9439642c6336c$var$onElRemoveds.forEach((i)=>i(node2)); if (node2._x_cleanups) while(node2._x_cleanups.length)node2._x_cleanups.pop()(); } addedNodes.forEach((node)=>{ node._x_ignoreSelf = true; node._x_ignore = true; }); for (let node1 of addedNodes){ if (removedNodes.includes(node1)) continue; if (!node1.isConnected) continue; delete node1._x_ignoreSelf; delete node1._x_ignore; $caa9439642c6336c$var$onElAddeds.forEach((i)=>i(node1)); node1._x_ignore = true; node1._x_ignoreSelf = true; } addedNodes.forEach((node)=>{ delete node._x_ignoreSelf; delete node._x_ignore; }); addedNodes = null; removedNodes = null; addedAttributes = null; removedAttributes = null; } // packages/alpinejs/src/scope.js function $caa9439642c6336c$var$scope(node) { return $caa9439642c6336c$var$mergeProxies($caa9439642c6336c$var$closestDataStack(node)); } function $caa9439642c6336c$var$addScopeToNode(node, data2, referenceNode) { node._x_dataStack = [ data2, ...$caa9439642c6336c$var$closestDataStack(referenceNode || node) ]; return ()=>{ node._x_dataStack = node._x_dataStack.filter((i)=>i !== data2); }; } function $caa9439642c6336c$var$refreshScope(element, scope2) { let existingScope = element._x_dataStack[0]; Object.entries(scope2).forEach(([key, value])=>{ existingScope[key] = value; }); } function $caa9439642c6336c$var$closestDataStack(node) { if (node._x_dataStack) return node._x_dataStack; if (typeof ShadowRoot === "function" && node instanceof ShadowRoot) return $caa9439642c6336c$var$closestDataStack(node.host); if (!node.parentNode) return []; return $caa9439642c6336c$var$closestDataStack(node.parentNode); } function $caa9439642c6336c$var$mergeProxies(objects) { let thisProxy = new Proxy({}, { ownKeys: ()=>{ return Array.from(new Set(objects.flatMap((i)=>Object.keys(i)))); }, has: (target, name)=>{ return objects.some((obj)=>obj.hasOwnProperty(name)); }, get: (target, name)=>{ return (objects.find((obj)=>{ if (obj.hasOwnProperty(name)) { let descriptor = Object.getOwnPropertyDescriptor(obj, name); if (descriptor.get && descriptor.get._x_alreadyBound || descriptor.set && descriptor.set._x_alreadyBound) return true; if ((descriptor.get || descriptor.set) && descriptor.enumerable) { let getter = descriptor.get; let setter = descriptor.set; let property = descriptor; getter = getter && getter.bind(thisProxy); setter = setter && setter.bind(thisProxy); if (getter) getter._x_alreadyBound = true; if (setter) setter._x_alreadyBound = true; Object.defineProperty(obj, name, { ...property, get: getter, set: setter }); } return true; } return false; }) || {})[name]; }, set: (target, name, value)=>{ let closestObjectWithKey = objects.find((obj)=>obj.hasOwnProperty(name)); if (closestObjectWithKey) closestObjectWithKey[name] = value; else objects[objects.length - 1][name] = value; return true; } }); return thisProxy; } // packages/alpinejs/src/interceptor.js function $caa9439642c6336c$var$initInterceptors(data2) { let isObject2 = (val)=>typeof val === "object" && !Array.isArray(val) && val !== null; let recurse = (obj, basePath = "")=>{ Object.entries(Object.getOwnPropertyDescriptors(obj)).forEach(([key, { value: value , enumerable: enumerable }])=>{ if (enumerable === false || value === void 0) return; let path = basePath === "" ? key : `${basePath}.${key}`; if (typeof value === "object" && value !== null && value._x_interceptor) obj[key] = value.initialize(data2, path, key); else if (isObject2(value) && value !== obj && !(value instanceof Element)) recurse(value, path); }); }; return recurse(data2); } function $caa9439642c6336c$var$interceptor(callback, mutateObj = ()=>{}) { let obj = { initialValue: void 0, _x_interceptor: true, initialize (data2, path, key) { return callback(this.initialValue, ()=>$caa9439642c6336c$var$get(data2, path), (value)=>$caa9439642c6336c$var$set(data2, path, value), path, key); } }; mutateObj(obj); return (initialValue)=>{ if (typeof initialValue === "object" && initialValue !== null && initialValue._x_interceptor) { let initialize = obj.initialize.bind(obj); obj.initialize = (data2, path, key)=>{ let innerValue = initialValue.initialize(data2, path, key); obj.initialValue = innerValue; return initialize(data2, path, key); }; } else obj.initialValue = initialValue; return obj; }; } function $caa9439642c6336c$var$get(obj, path) { return path.split(".").reduce((carry, segment)=>carry[segment], obj); } function $caa9439642c6336c$var$set(obj, path, value) { if (typeof path === "string") path = path.split("."); if (path.length === 1) obj[path[0]] = value; else if (path.length === 0) throw error; else { if (obj[path[0]]) return $caa9439642c6336c$var$set(obj[path[0]], path.slice(1), value); else { obj[path[0]] = {}; return $caa9439642c6336c$var$set(obj[path[0]], path.slice(1), value); } } } // packages/alpinejs/src/magics.js var $caa9439642c6336c$var$magics = {}; function $caa9439642c6336c$var$magic(name, callback) { $caa9439642c6336c$var$magics[name] = callback; } function $caa9439642c6336c$var$injectMagics(obj, el) { Object.entries($caa9439642c6336c$var$magics).forEach(([name, callback])=>{ Object.defineProperty(obj, `$${name}`, { get () { let [utilities, cleanup2] = $caa9439642c6336c$var$getElementBoundUtilities(el); utilities = { interceptor: $caa9439642c6336c$var$interceptor, ...utilities }; $caa9439642c6336c$var$onElRemoved(el, cleanup2); return callback(el, utilities); }, enumerable: false }); }); return obj; } // packages/alpinejs/src/utils/error.js function $caa9439642c6336c$var$tryCatch(el, expression, callback, ...args) { try { return callback(...args); } catch (e) { $caa9439642c6336c$var$handleError(e, el, expression); } } function $caa9439642c6336c$var$handleError(error2, el, expression) { Object.assign(error2, { el: el, expression: expression }); console.warn(`Alpine Expression Error: ${error2.message} ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el); setTimeout(()=>{ throw error2; }, 0); } // packages/alpinejs/src/evaluator.js var $caa9439642c6336c$var$shouldAutoEvaluateFunctions = true; function $caa9439642c6336c$var$dontAutoEvaluateFunctions(callback) { let cache = $caa9439642c6336c$var$shouldAutoEvaluateFunctions; $caa9439642c6336c$var$shouldAutoEvaluateFunctions = false; callback(); $caa9439642c6336c$var$shouldAutoEvaluateFunctions = cache; } function $caa9439642c6336c$var$evaluate(el, expression, extras = {}) { let result; $caa9439642c6336c$var$evaluateLater(el, expression)((value)=>result = value, extras); return result; } function $caa9439642c6336c$var$evaluateLater(...args) { return $caa9439642c6336c$var$theEvaluatorFunction(...args); } var $caa9439642c6336c$var$theEvaluatorFunction = $caa9439642c6336c$var$normalEvaluator; function $caa9439642c6336c$var$setEvaluator(newEvaluator) { $caa9439642c6336c$var$theEvaluatorFunction = newEvaluator; } function $caa9439642c6336c$var$normalEvaluator(el, expression) { let overriddenMagics = {}; $caa9439642c6336c$var$injectMagics(overriddenMagics, el); let dataStack = [ overriddenMagics, ...$caa9439642c6336c$var$closestDataStack(el) ]; if (typeof expression === "function") return $caa9439642c6336c$var$generateEvaluatorFromFunction(dataStack, expression); let evaluator = $caa9439642c6336c$var$generateEvaluatorFromString(dataStack, expression, el); return $caa9439642c6336c$var$tryCatch.bind(null, el, expression, evaluator); } function $caa9439642c6336c$var$generateEvaluatorFromFunction(dataStack, func) { return (receiver = ()=>{}, { scope: scope2 = {} , params: params = [] } = {})=>{ let result = func.apply($caa9439642c6336c$var$mergeProxies([ scope2, ...dataStack ]), params); $caa9439642c6336c$var$runIfTypeOfFunction(receiver, result); }; } var $caa9439642c6336c$var$evaluatorMemo = {}; function $caa9439642c6336c$var$generateFunctionFromString(expression, el) { if ($caa9439642c6336c$var$evaluatorMemo[expression]) return $caa9439642c6336c$var$evaluatorMemo[expression]; let AsyncFunction = Object.getPrototypeOf(async function() {}).constructor; let rightSideSafeExpression = /^[\n\s]*if.*\(.*\)/.test(expression) || /^(let|const)\s/.test(expression) ? `(() => { ${expression} })()` : expression; const safeAsyncFunction = ()=>{ try { return new AsyncFunction([ "__self", "scope" ], `with (scope) { __self.result = ${rightSideSafeExpression} }; __self.finished = true; return __self.result;`); } catch (error2) { $caa9439642c6336c$var$handleError(error2, el, expression); return Promise.resolve(); } }; let func = safeAsyncFunction(); $caa9439642c6336c$var$evaluatorMemo[expression] = func; return func; } function $caa9439642c6336c$var$generateEvaluatorFromString(dataStack, expression, el) { let func = $caa9439642c6336c$var$generateFunctionFromString(expression, el); return (receiver = ()=>{}, { scope: scope2 = {} , params: params = [] } = {})=>{ func.result = void 0; func.finished = false; let completeScope = $caa9439642c6336c$var$mergeProxies([ scope2, ...dataStack ]); if (typeof func === "function") { let promise = func(func, completeScope).catch((error2)=>$caa9439642c6336c$var$handleError(error2, el, expression)); if (func.finished) { $caa9439642c6336c$var$runIfTypeOfFunction(receiver, func.result, completeScope, params, el); func.result = void 0; } else promise.then((result)=>{ $caa9439642c6336c$var$runIfTypeOfFunction(receiver, result, completeScope, params, el); }).catch((error2)=>$caa9439642c6336c$var$handleError(error2, el, expression)).finally(()=>func.result = void 0); } }; } function $caa9439642c6336c$var$runIfTypeOfFunction(receiver, value, scope2, params, el) { if ($caa9439642c6336c$var$shouldAutoEvaluateFunctions && typeof value === "function") { let result = value.apply(scope2, params); if (result instanceof Promise) result.then((i)=>$caa9439642c6336c$var$runIfTypeOfFunction(receiver, i, scope2, params)).catch((error2)=>$caa9439642c6336c$var$handleError(error2, el, value)); else receiver(result); } else receiver(value); } // packages/alpinejs/src/directives.js var $caa9439642c6336c$var$prefixAsString = "x-"; function $caa9439642c6336c$var$prefix(subject = "") { return $caa9439642c6336c$var$prefixAsString + subject; } function $caa9439642c6336c$var$setPrefix(newPrefix) { $caa9439642c6336c$var$prefixAsString = newPrefix; } var $caa9439642c6336c$var$directiveHandlers = {}; function $caa9439642c6336c$var$directive(name, callback) { $caa9439642c6336c$var$directiveHandlers[name] = callback; } function $caa9439642c6336c$var$directives(el, attributes, originalAttributeOverride) { let transformedAttributeMap = {}; let directives2 = Array.from(attributes).map($caa9439642c6336c$var$toTransformedAttributes((newName, oldName)=>transformedAttributeMap[newName] = oldName)).filter($caa9439642c6336c$var$outNonAlpineAttributes).map($caa9439642c6336c$var$toParsedDirectives(transformedAttributeMap, originalAttributeOverride)).sort($caa9439642c6336c$var$byPriority); return directives2.map((directive2)=>{ return $caa9439642c6336c$var$getDirectiveHandler(el, directive2); }); } function $caa9439642c6336c$var$attributesOnly(attributes) { return Array.from(attributes).map($caa9439642c6336c$var$toTransformedAttributes()).filter((attr)=>!$caa9439642c6336c$var$outNonAlpineAttributes(attr)); } var $caa9439642c6336c$var$isDeferringHandlers = false; var $caa9439642c6336c$var$directiveHandlerStacks = new Map(); var $caa9439642c6336c$var$currentHandlerStackKey = Symbol(); function $caa9439642c6336c$var$deferHandlingDirectives(callback) { $caa9439642c6336c$var$isDeferringHandlers = true; let key = Symbol(); $caa9439642c6336c$var$currentHandlerStackKey = key; $caa9439642c6336c$var$directiveHandlerStacks.set(key, []); let flushHandlers = ()=>{ while($caa9439642c6336c$var$directiveHandlerStacks.get(key).length)$caa9439642c6336c$var$directiveHandlerStacks.get(key).shift()(); $caa9439642c6336c$var$directiveHandlerStacks.delete(key); }; let stopDeferring = ()=>{ $caa9439642c6336c$var$isDeferringHandlers = false; flushHandlers(); }; callback(flushHandlers); stopDeferring(); } function $caa9439642c6336c$var$getElementBoundUtilities(el) { let cleanups = []; let cleanup2 = (callback)=>cleanups.push(callback); let [effect3, cleanupEffect] = $caa9439642c6336c$var$elementBoundEffect(el); cleanups.push(cleanupEffect); let utilities = { Alpine: $caa9439642c6336c$var$alpine_default, effect: effect3, cleanup: cleanup2, evaluateLater: $caa9439642c6336c$var$evaluateLater.bind($caa9439642c6336c$var$evaluateLater, el), evaluate: $caa9439642c6336c$var$evaluate.bind($caa9439642c6336c$var$evaluate, el) }; let doCleanup = ()=>cleanups.forEach((i)=>i()); return [ utilities, doCleanup ]; } function $caa9439642c6336c$var$getDirectiveHandler(el, directive2) { let noop = ()=>{}; let handler3 = $caa9439642c6336c$var$directiveHandlers[directive2.type] || noop; let [utilities, cleanup2] = $caa9439642c6336c$var$getElementBoundUtilities(el); $caa9439642c6336c$var$onAttributeRemoved(el, directive2.original, cleanup2); let fullHandler = ()=>{ if (el._x_ignore || el._x_ignoreSelf) return; handler3.inline && handler3.inline(el, directive2, utilities); handler3 = handler3.bind(handler3, el, directive2, utilities); $caa9439642c6336c$var$isDeferringHandlers ? $caa9439642c6336c$var$directiveHandlerStacks.get($caa9439642c6336c$var$currentHandlerStackKey).push(handler3) : handler3(); }; fullHandler.runCleanups = cleanup2; return fullHandler; } var $caa9439642c6336c$var$startingWith = (subject, replacement)=>({ name: name , value: value })=>{ if (name.startsWith(subject)) name = name.replace(subject, replacement); return { name: name, value: value }; }; var $caa9439642c6336c$var$into = (i)=>i; function $caa9439642c6336c$var$toTransformedAttributes(callback = ()=>{}) { return ({ name: name , value: value })=>{ let { name: newName , value: newValue } = $caa9439642c6336c$var$attributeTransformers.reduce((carry, transform)=>{ return transform(carry); }, { name: name, value: value }); if (newName !== name) callback(newName, name); return { name: newName, value: newValue }; }; } var $caa9439642c6336c$var$attributeTransformers = []; function $caa9439642c6336c$var$mapAttributes(callback) { $caa9439642c6336c$var$attributeTransformers.push(callback); } function $caa9439642c6336c$var$outNonAlpineAttributes({ name: name }) { return $caa9439642c6336c$var$alpineAttributeRegex().test(name); } var $caa9439642c6336c$var$alpineAttributeRegex = ()=>new RegExp(`^${$caa9439642c6336c$var$prefixAsString}([^:^.]+)\\b`); function $caa9439642c6336c$var$toParsedDirectives(transformedAttributeMap, originalAttributeOverride) { return ({ name: name , value: value })=>{ let typeMatch = name.match($caa9439642c6336c$var$alpineAttributeRegex()); let valueMatch = name.match(/:([a-zA-Z0-9\-:]+)/); let modifiers = name.match(/\.[^.\]]+(?=[^\]]*$)/g) || []; let original = originalAttributeOverride || transformedAttributeMap[name] || name; return { type: typeMatch ? typeMatch[1] : null, value: valueMatch ? valueMatch[1] : null, modifiers: modifiers.map((i)=>i.replace(".", "")), expression: value, original: original }; }; } var $caa9439642c6336c$var$DEFAULT = "DEFAULT"; var $caa9439642c6336c$var$directiveOrder = [ "ignore", "ref", "data", "id", "bind", "init", "for", "mask", "model", "modelable", "transition", "show", "if", $caa9439642c6336c$var$DEFAULT, "teleport", "element" ]; function $caa9439642c6336c$var$byPriority(a, b) { let typeA = $caa9439642c6336c$var$directiveOrder.indexOf(a.type) === -1 ? $caa9439642c6336c$var$DEFAULT : a.type; let typeB = $caa9439642c6336c$var$directiveOrder.indexOf(b.type) === -1 ? $caa9439642c6336c$var$DEFAULT : b.type; return $caa9439642c6336c$var$directiveOrder.indexOf(typeA) - $caa9439642c6336c$var$directiveOrder.indexOf(typeB); } // packages/alpinejs/src/utils/dispatch.js function $caa9439642c6336c$var$dispatch(el, name, detail = {}) { el.dispatchEvent(new CustomEvent(name, { detail: detail, bubbles: true, composed: true, cancelable: true })); } // packages/alpinejs/src/nextTick.js var $caa9439642c6336c$var$tickStack = []; var $caa9439642c6336c$var$isHolding = false; function $caa9439642c6336c$var$nextTick(callback = ()=>{}) { queueMicrotask(()=>{ $caa9439642c6336c$var$isHolding || setTimeout(()=>{ $caa9439642c6336c$var$releaseNextTicks(); }); }); return new Promise((res)=>{ $caa9439642c6336c$var$tickStack.push(()=>{ callback(); res(); }); }); } function $caa9439642c6336c$var$releaseNextTicks() { $caa9439642c6336c$var$isHolding = false; while($caa9439642c6336c$var$tickStack.length)$caa9439642c6336c$var$tickStack.shift()(); } function $caa9439642c6336c$var$holdNextTicks() { $caa9439642c6336c$var$isHolding = true; } // packages/alpinejs/src/utils/walk.js function $caa9439642c6336c$var$walk(el, callback) { if (typeof ShadowRoot === "function" && el instanceof ShadowRoot) { Array.from(el.children).forEach((el2)=>$caa9439642c6336c$var$walk(el2, callback)); return; } let skip = false; callback(el, ()=>skip = true); if (skip) return; let node = el.firstElementChild; while(node){ $caa9439642c6336c$var$walk(node, callback, false); node = node.nextElementSibling; } } // packages/alpinejs/src/utils/warn.js function $caa9439642c6336c$var$warn(message, ...args) { console.warn(`Alpine Warning: ${message}`, ...args); } // packages/alpinejs/src/lifecycle.js function $caa9439642c6336c$var$start() { if (!document.body) $caa9439642c6336c$var$warn("Unable to initialize. Trying to load Alpine before `
` is available. Did you forget to add `defer` in Alpine's `