WordPress/wp-includes/js/dist/dom.min.js

2 lines
13 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.dom=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="2sUP")}({"2sUP":function(t,e,n){"use strict";n.r(e),n.d(e,"focus",(function(){return ct})),n.d(e,"computeCaretRect",(function(){return C})),n.d(e,"documentHasTextSelection",(function(){return w})),n.d(e,"documentHasUncollapsedSelection",(function(){return S})),n.d(e,"documentHasSelection",(function(){return x})),n.d(e,"getRectangleFromRange",(function(){return E})),n.d(e,"getScrollContainer",(function(){return R})),n.d(e,"getOffsetParent",(function(){return P})),n.d(e,"isEntirelySelected",(function(){return M})),n.d(e,"isHorizontalEdge",(function(){return F})),n.d(e,"isNumberInput",(function(){return O})),n.d(e,"isTextField",(function(){return T})),n.d(e,"isVerticalEdge",(function(){return B})),n.d(e,"placeCaretAtHorizontalEdge",(function(){return q})),n.d(e,"placeCaretAtVerticalEdge",(function(){return k})),n.d(e,"replace",(function(){return W})),n.d(e,"remove",(function(){return Y})),n.d(e,"insertAfter",(function(){return X})),n.d(e,"unwrap",(function(){return G})),n.d(e,"replaceTag",(function(){return $})),n.d(e,"wrap",(function(){return J})),n.d(e,"__unstableStripHTML",(function(){return Q})),n.d(e,"isEmpty",(function(){return Z})),n.d(e,"removeInvalidHTML",(function(){return it})),n.d(e,"isRTL",(function(){return j})),n.d(e,"safeHTML",(function(){return K})),n.d(e,"getPhrasingContentSchema",(function(){return nt})),n.d(e,"isPhrasingContent",(function(){return rt})),n.d(e,"isTextContent",(function(){return ot})),n.d(e,"getFilesFromDataTransfer",(function(){return ut}));var r={};n.r(r),n.d(r,"find",(function(){return a}));var o={};function i(t){return[t?'[tabindex]:not([tabindex^="-"])':"[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])",'iframe:not([tabindex^="-"])',"object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",")}function u(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0}function c(t){const e=t.closest("map[name]");if(!e)return!1;const n=t.ownerDocument.querySelector('img[usemap="#'+e.name+'"]');return!!n&&u(n)}function a(t){let{sequential:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.querySelectorAll(i(e));return Array.from(n).filter(t=>{if(!u(t))return!1;const{nodeName:e}=t;return"AREA"!==e||c(t)})}n.r(o),n.d(o,"isTabbableIndex",(function(){return d})),n.d(o,"find",(function(){return b})),n.d(o,"findPrevious",(function(){return g})),n.d(o,"findNext",(function(){return y}));var s=n("YLtl");function l(t){const e=t.getAttribute("tabindex");return null===e?0:parseInt(e,10)}function d(t){return-1!==l(t)}function f(t,e){return{element:t,index:e}}function m(t){return t.element}function p(t,e){const n=l(t.element),r=l(e.element);return n===r?t.index-e.index:n-r}function h(t){return t.filter(d).map(f).sort(p).map(m).reduce(function(){const t={};return function(e,n){const{nodeName:r,type:o,checked:i,name:u}=n;if("INPUT"!==r||"radio"!==o||!u)return e.concat(n);const c=t.hasOwnProperty(u);if(!(i||!c))return e;if(c){const n=t[u];e=Object(s.without)(e,n)}return t[u]=n,e.concat(n)}}(),[])}function b(t){return h(a(t))