1 line
26 KiB
JavaScript
1 line
26 KiB
JavaScript
|
|
import*as A from"@wordpress/interactivity";var Q={317:A=>{A.exports=import("@wordpress/a11y")}},e={};function B(A){var C=e[A];if(void 0!==C)return C.exports;var E=e[A]={exports:{}};return Q[A](E,E.exports,B),E.exports}B.d=(A,Q)=>{for(var e in Q)B.o(Q,e)&&!B.o(A,e)&&Object.defineProperty(A,e,{enumerable:!0,get:Q[e]})},B.o=(A,Q)=>Object.prototype.hasOwnProperty.call(A,Q);var C={};B.d(C,{o:()=>JA,w:()=>uA});const E=(A=>{var Q={};return B.d(Q,A),Q})({getConfig:()=>A.getConfig,privateApis:()=>A.privateApis,store:()=>A.store});const t=(A,Q)=>A.isEqualNode(Q),o=A=>{const Q=(A=A.cloneNode(!0)).media,{originalMedia:e}=A.dataset;return"preload"===Q?(A.media=e||"all",A.removeAttribute("data-original-media")):A.media||(A.media="all"),A};function g(A,Q,e=window.document.head){if(0===A.length)return Q.map((A=>{const Q=s(A);return e.appendChild(A),Q}));const B=A.map(o),C=Q.map(o),E=function(A,Q,e=(A,Q)=>A===Q){const B=A.length,C=Q.length,E=Array.from({length:B+1},(()=>Array(C+1).fill(null)));for(let Q=0;Q<=B;Q++)E[Q][0]=A.slice(0,Q);for(let A=0;A<=C;A++)E[0][A]=Q.slice(0,A);for(let t=1;t<=B;t++)for(let B=1;B<=C;B++)if(e(A[t-1],Q[B-1]))E[t][B]=E[t-1][B-1].concat(A[t-1]);else{const e=E[t-1][B].concat(A[t-1]),C=E[t][B-1].concat(Q[B-1]);E[t][B]=e.length<=C.length?e:C}return E[B][C]}(B,C,t),g=A.length,r=Q.length,i=[];let n=A[g-1],a=0,I=0;for(const e of E){const E=A[a],o=Q[I],c=B[a],w=C[I];a<g&&t(c,e)?(I<r&&t(w,e)&&(i.push(s(E)),I++),a++):(i.push(s(o)),a<g?E.before(o):(n.after(o),n=o),I++)}return i}const r=new WeakMap,s=A=>{if(r.has(A))return r.get(A);if(window.document.contains(A)&&"preload"!==A.media){const Q=Promise.resolve(A);return r.set(A,Q),Q}if(A.hasAttribute("media")&&"all"!==A.media&&(A.dataset.originalMedia=A.media),A.media="preload",A instanceof HTMLStyleElement){const Q=Promise.resolve(A);return r.set(A,Q),Q}const Q=new Promise(((Q,e)=>{A.addEventListener("load",(()=>Q(A))),A.addEventListener("error",(A=>{const{href:Q}=A.target;e(Error(`The style sheet with the following URL failed to load: ${Q}`))}))}));return r.set(A,Q),Q},i=new Map,n=(A,Q)=>{if(!i.has(Q)){const e=g(Array.from(window.document.querySelectorAll("style,link[rel=stylesheet]")),Array.from(A.querySelectorAll("style,link[rel=stylesheet]")));i.set(Q,e)}return i.get(Q)},a=/\\/g;function I(A,Q){const e=Q.indexOf("#"),B=Q.indexOf("?");if(e+B>-2&&(Q=Q.slice(0,-1===e?B:-1===B||B>e?e:B)),-1!==A.indexOf("\\")&&(A=A.replace(a,"/")),"/"===A[0]&&"/"===A[1])return Q.slice(0,Q.indexOf(":")+1)+A;if("."===A[0]&&("/"===A[1]||"."===A[1]&&("/"===A[2]||2===A.length&&(A+="/"))||1===A.length&&(A+="/"))||"/"===A[0]){const e=Q.slice(0,Q.indexOf(":")+1);let B;if("/"===Q[e.length+1]?"file:"!==e?(B=Q.slice(e.length+2),B=B.slice(B.indexOf("/")+1)):B=Q.slice(8):B=Q.slice(e.length+("/"===Q[e.length])),"/"===A[0])return Q.slice(0,Q.length-B.length-1)+A;const C=B.slice(0,B.lastIndexOf("/")+1)+A,E=[];let t=-1;for(let A=0;A<C.length;A++)if(-1===t){if("."===C[A]){if("."===C[A+1]&&("/"===C[A+2]||A+2===C.length)){E.pop(),A+=2;continue}if("/"===C[A+1]||A+1===C.length){A+=1;continue}}for(;"/"===C[A];)A++;t=A}else"/"===C[A]&&(E.push(C.slice(t,A+1)),t=-1);return-1!==t&&E.push(C.slice(t)),Q.slice(0,Q.length-B.length)+E.join("")}}function c(A,Q){return I(A,Q)||(function(A){if(-1===A.indexOf(":"))return!1;try{return new URL(A),!0}catch(A){return!1}}(A)?A:I("./"+A,Q))}function w(A,Q){if(Q[A])return A;let e=A.length;do{const B=A.slice(0,e+1);if(B in Q)return B}while(-1!==(e=A.lastIndexOf("/",e-1)))}function l(A,Q){const e=w(A,Q);if(e){const B=Q[e];if(null===B)return;return B+A.slice(e.length)}}function K(A,Q,e){let B=e&&w(e,A.scopes);for(;B;){const e=l(Q,A.scopes[B]);if(e)return e;B=w(B.slice(0,B.lastIndexOf("/")),A.scopes)}return l(Q,A.imports)||-1!==Q.indexOf(":")&&Q}function p(A,Q,e,B){for(const C in A){const E=I(C,e)||C,t=A[C];if("string"!=typeof t)continue;const o=K(B,I(t,e)||t,e);o&&(Q[E]=o)}}let D={imports:{},scopes:{}};const k=document.baseURI;function h(A){D=function(A,Q,e){const B={imports:Object.assign({},e.imports),scopes:Object.assign({},e.scopes)};if(A.imports&&p(A.imports,B.imports,Q,e),A.scopes
|