home/wwgoat/public_html/blog/wp-includes/js/dist/commands.min.js000064400000140526147206774260021012 0ustar00/*! This file is auto-generated */ (()=>{"use strict";var e,t,n={},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);o.r(a);var c={};e=e||[null,t({}),t([]),t(t)];for(var u=2&r&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((e=>c[e]=()=>n[e]));return c.default=()=>n,o.d(a,c),a},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var a={};o.r(a),o.d(a,{CommandMenu:()=>Zn,privateApis:()=>Jn,store:()=>qn,useCommand:()=>Qn,useCommandLoader:()=>er});var c={};o.r(c),o.d(c,{close:()=>In,open:()=>Pn,registerCommand:()=>Mn,registerCommandLoader:()=>Tn,unregisterCommand:()=>_n,unregisterCommandLoader:()=>Dn});var u={};o.r(u),o.d(u,{getCommandLoaders:()=>Fn,getCommands:()=>jn,getContext:()=>Un,isOpen:()=>Wn});var i={};o.r(i),o.d(i,{setContext:()=>$n});var l=1,s=.9,d=.8,f=.17,m=.1,v=.999,p=.9999,h=.99,g=/[\\\/_+.#"@\[\(\{&]/,b=/[\\\/_+.#"@\[\(\{&]/g,E=/[\s-]/,y=/[\s-]/g;function w(e,t,n,r,o,a,c){if(a===t.length)return o===e.length?l:h;var u=`${o},${a}`;if(void 0!==c[u])return c[u];for(var i,C,S,x,O=r.charAt(a),R=n.indexOf(O,o),k=0;R>=0;)(i=w(e,t,n,r,R+1,a+1,c))>k&&(R===o?i*=l:g.test(e.charAt(R-1))?(i*=d,(S=e.slice(o,R-1).match(b))&&o>0&&(i*=Math.pow(v,S.length))):E.test(e.charAt(R-1))?(i*=s,(x=e.slice(o,R-1).match(y))&&o>0&&(i*=Math.pow(v,x.length))):(i*=f,o>0&&(i*=Math.pow(v,R-o))),e.charAt(R)!==t.charAt(a)&&(i*=p)),(ii&&(i=C*m)),i>k&&(k=i),R=n.indexOf(O,R+1);return c[u]=k,k}function C(e){return e.toLowerCase().replace(y," ")}function S(e,t,n){return w(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,C(e),C(t),0,0,{})}function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function N(...e){return(0,O.useCallback)(A(...e),e)}function L(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,O.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}const M=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?O.useLayoutEffect:()=>{},_=R["useId".toString()]||(()=>{});let T=0;function D(e){const[t,n]=O.useState(_());return M((()=>{e||n((e=>null!=e?e:String(T++)))}),[e]),e||(t?`radix-${t}`:"")}function P(e){const t=(0,O.useRef)(e);return(0,O.useEffect)((()=>{t.current=e})),(0,O.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function I({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,O.useState)(e),[r]=n,o=(0,O.useRef)(r),a=P(t);return(0,O.useEffect)((()=>{o.current!==r&&(a(r),o.current=r)}),[r,o,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,c=a?e:r,u=P(n);return[c,(0,O.useCallback)((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)}),[a,e,o,u])]}const j=window.ReactDOM,F=(0,O.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=O.Children.toArray(n),a=o.find($);if(a){const e=a.props.children,n=o.map((t=>t===a?O.Children.count(e)>1?O.Children.only(null):(0,O.isValidElement)(e)?e.props.children:null:t));return(0,O.createElement)(W,x({},r,{ref:t}),(0,O.isValidElement)(e)?(0,O.cloneElement)(e,void 0,n):null)}return(0,O.createElement)(W,x({},r,{ref:t}),n)}));F.displayName="Slot";const W=(0,O.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,O.isValidElement)(n)?(0,O.cloneElement)(n,{...B(r,n.props),ref:t?A(t,n.ref):n.ref}):O.Children.count(n)>1?O.Children.only(null):null}));W.displayName="SlotClone";const U=({children:e})=>(0,O.createElement)(O.Fragment,null,e);function $(e){return(0,O.isValidElement)(e)&&e.type===U}function B(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const K=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,O.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,a=r?F:t;return(0,O.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,O.createElement)(a,x({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});const V="dismissableLayer.update",q="dismissableLayer.pointerDownOutside",z="dismissableLayer.focusOutside";let G;const H=(0,O.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),X=(0,O.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:u,onDismiss:i,...l}=e,s=(0,O.useContext)(H),[d,f]=(0,O.useState)(null),m=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,v]=(0,O.useState)({}),p=N(t,(e=>f(e))),h=Array.from(s.layers),[g]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),b=h.indexOf(g),E=d?h.indexOf(d):-1,y=s.layersWithOutsidePointerEventsDisabled.size>0,w=E>=b,C=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=P(e),r=(0,O.useRef)(!1),o=(0,O.useRef)((()=>{}));return(0,O.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const a={originalEvent:e};function c(){Z(q,n,a,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...s.branches].some((e=>e.contains(t)));w&&!n&&(null==a||a(e),null==u||u(e),e.defaultPrevented||null==i||i())}),m),S=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=P(e),r=(0,O.useRef)(!1);return(0,O.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){Z(z,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...s.branches].some((e=>e.contains(t)))||(null==c||c(e),null==u||u(e),e.defaultPrevented||null==i||i())}),m);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=P(e);(0,O.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{E===s.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&i&&(e.preventDefault(),i()))}),m),(0,O.useEffect)((()=>{if(d)return r&&(0===s.layersWithOutsidePointerEventsDisabled.size&&(G=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(d)),s.layers.add(d),Y(),()=>{r&&1===s.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=G)}}),[d,m,r,s]),(0,O.useEffect)((()=>()=>{d&&(s.layers.delete(d),s.layersWithOutsidePointerEventsDisabled.delete(d),Y())}),[d,s]),(0,O.useEffect)((()=>{const e=()=>v({});return document.addEventListener(V,e),()=>document.removeEventListener(V,e)}),[]),(0,O.createElement)(K.div,x({},l,{ref:p,style:{pointerEvents:y?w?"auto":"none":void 0,...e.style},onFocusCapture:k(e.onFocusCapture,S.onFocusCapture),onBlurCapture:k(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:k(e.onPointerDownCapture,C.onPointerDownCapture)}))}));function Y(){const e=new CustomEvent(V);document.dispatchEvent(e)}function Z(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&(0,j.flushSync)((()=>e.dispatchEvent(t)))}(o,a):o.dispatchEvent(a)}const J="focusScope.autoFocusOnMount",Q="focusScope.autoFocusOnUnmount",ee={bubbles:!1,cancelable:!0},te=(0,O.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...c}=e,[u,i]=(0,O.useState)(null),l=P(o),s=P(a),d=(0,O.useRef)(null),f=N(t,(e=>i(e))),m=(0,O.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,O.useEffect)((()=>{if(r){function e(e){if(m.paused||!u)return;const t=e.target;u.contains(t)?d.current=t:ae(d.current,{select:!0})}function t(e){if(m.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||ae(d.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ae(u)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return u&&o.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}}),[r,u,m.paused]),(0,O.useEffect)((()=>{if(u){ce.add(m);const t=document.activeElement;if(!u.contains(t)){const n=new CustomEvent(J,ee);u.addEventListener(J,l),u.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ae(r,{select:t}),document.activeElement!==n)return}((e=ne(u),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&ae(u))}return()=>{u.removeEventListener(J,l),setTimeout((()=>{const e=new CustomEvent(Q,ee);u.addEventListener(Q,s),u.dispatchEvent(e),e.defaultPrevented||ae(null!=t?t:document.body,{select:!0}),u.removeEventListener(Q,s),ce.remove(m)}),0)}}var e}),[u,l,s,m]);const v=(0,O.useCallback)((e=>{if(!n&&!r)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=ne(e),n=re(t,e),r=re(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&ae(a,{select:!0})):(e.preventDefault(),n&&ae(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,m.paused]);return(0,O.createElement)(K.div,x({tabIndex:-1},c,{ref:f,onKeyDown:v}))}));function ne(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function re(e,t){for(const n of e)if(!oe(n,{upTo:t}))return n}function oe(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function ae(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const ce=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=ue(e,t),e.unshift(t)},remove(t){var n;e=ue(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function ue(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const ie=(0,O.forwardRef)(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?j.createPortal((0,O.createElement)(K.div,x({},o,{ref:t})),r):null}));const le=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,O.useState)(),r=(0,O.useRef)({}),o=(0,O.useRef)(e),a=(0,O.useRef)("none"),c=e?"mounted":"unmounted",[u,i]=function(e,t){return(0,O.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,O.useEffect)((()=>{const e=se(r.current);a.current="mounted"===u?e:"none"}),[u]),M((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,c=se(t);if(e)i("MOUNT");else if("none"===c||"none"===(null==t?void 0:t.display))i("UNMOUNT");else{i(n&&r!==c?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,i]),M((()=>{if(t){const e=e=>{const n=se(r.current).includes(e.animationName);e.target===t&&n&&(0,j.flushSync)((()=>i("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=se(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}i("ANIMATION_END")}),[t,i]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:(0,O.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):O.Children.only(n),a=N(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,O.cloneElement)(o,{ref:a}):null};function se(e){return(null==e?void 0:e.animationName)||"none"}le.displayName="Presence";let de=0;function fe(){(0,O.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:me()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:me()),de++,()=>{1===de&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),de--}}),[])}function me(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var ve=function(){return ve=Object.assign||function(e){for(var t,n=1,r=arguments.length;n