mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
1 line
79 KiB
JavaScript
1 line
79 KiB
JavaScript
|
|
(()=>{"use strict";var e,t={431:(e,t,n)=>{var i,r,o,a,l=!1,s=!1,c=[],u=-1;function f(e){!function(e){c.includes(e)||c.push(e);s||l||(l=!0,queueMicrotask(p))}(e)}function d(e){let t=c.indexOf(e);-1!==t&&t>u&&c.splice(t,1)}function p(){l=!1,s=!0;for(let e=0;e<c.length;e++)c[e](),u=e;c.length=0,u=-1,s=!1}var h=!0;function m(e){r=e}function g(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function v(e,t){if("function"==typeof ShadowRoot&&e instanceof ShadowRoot)return void Array.from(e.children).forEach((e=>v(e,t)));let n=!1;if(t(e,(()=>n=!0)),n)return;let i=e.firstElementChild;for(;i;)v(i,t),i=i.nextElementSibling}function _(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var y=!1;var x=[],b=[];function w(){return x.map((e=>e()))}function k(){return x.concat(b).map((e=>e()))}function E(e){x.push(e)}function A(e){b.push(e)}function O(e,t=!1){return S(e,(e=>{if((t?k():w()).some((t=>e.matches(t))))return!0}))}function S(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentElement)return S(e.parentElement,t)}}var C=[];function j(e,t=v,n=(()=>{})){!function(e){we=!0;let t=Symbol();Ee=t,ke.set(t,[]);let n=()=>{for(;ke.get(t).length;)ke.get(t).shift()();ke.delete(t)},i=()=>{we=!1,n()};e(n),i()}((()=>{t(e,((e,t)=>{n(e,t),C.forEach((n=>n(e,t))),xe(e,e.attributes).forEach((e=>e())),e._x_ignore&&t()}))}))}function T(e){v(e,(e=>{D(e),function(e){if(e._x_cleanups)for(;e._x_cleanups.length;)e._x_cleanups.pop()()}(e)}))}var R=[],P=[],$=[];function L(e,t){"function"==typeof t?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,P.push(t))}function N(e){R.push(e)}function M(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function D(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach((([n,i])=>{(void 0===t||t.includes(n))&&(i.forEach((e=>e())),delete e._x_attributeCleanups[n])}))}var I=new MutationObserver(J),z=!1;function W(){I.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),z=!0}function B(){(F=F.concat(I.takeRecords())).length&&!q&&(q=!0,queueMicrotask((()=>{J(F),F.length=0,q=!1}))),I.disconnect(),z=!1}var F=[],q=!1;function H(e){if(!z)return e();B();let t=e();return W(),t}var V=!1,U=[];function J(e){if(V)return void(U=U.concat(e));let t=[],n=[],i=new Map,r=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&("childList"===e[o].type&&(e[o].addedNodes.forEach((e=>1===e.nodeType&&t.push(e))),e[o].removedNodes.forEach((e=>1===e.nodeType&&n.push(e)))),"attributes"===e[o].type)){let t=e[o].target,n=e[o].attributeName,a=e[o].oldValue,l=()=>{i.has(t)||i.set(t,[]),i.get(t).push({name:n,value:t.getAttribute(n)})},s=()=>{r.has(t)||r.set(t,[]),r.get(t).push(n)};t.hasAttribute(n)&&null===a?l():t.hasAttribute(n)?(s(),l()):s()}r.forEach(((e,t)=>{D(t,e)})),i.forEach(((e,t)=>{R.forEach((n=>n(t,e)))}));for(let e of n)t.includes(e)||(P.forEach((t=>t(e))),T(e));t.forEach((e=>{e._x_ignoreSelf=!0,e._x_ignore=!0}));for(let e of t)n.includes(e)||e.isConnected&&(delete e._x_ignoreSelf,delete e._x_ignore,$.forEach((t=>t(e))),e._x_ignore=!0,e._x_ignoreSelf=!0);t.forEach((e=>{delete e._x_ignoreSelf,delete e._x_ignore})),t=null,n=null,i=null,r=null}function K(e){return Z(Y(e))}function X(e,t,n){return e._x_dataStack=[t,...Y(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter((e=>e!==t))}}function Y(e){return e._x_dataStack?e._x_dataStack:"function"==typeof ShadowRoot&&e instanceof ShadowRoot?Y(e.host):e.parentNode?Y(e.parentNode):[]}function Z(e){return new Proxy({objects:e},G)}var G={ownKeys:({objects:e})=>Array.from(new Set(e.flatMap((e=>Object.keys(e))))),has:({objects:e},t)=>t!=Symbol.unscopables&&e.some((e=>Object.prototype.hasOwnProperty.call(e,t))),get:({objects:e},t,n)=>"toJSON"==t?Q:Reflect.get(e.find((e=>Object.prototype.hasOwnProperty.call(e,t)))||{},t,n),set({objects:e},t,n,i){const r=e.find((e=>Object.prototype.hasOwnProperty.call(e,t)))||e[e.length-1],o=Object.getOwnPropertyDescriptor(r,t)
|