/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[22],{449:function(Ba){(function(){Ba.exports={EW:function(){function ua(b,h){this.scrollLeft=b;this.scrollTop=h}function r(b){if(null===b||"object"!==typeof b||void 0===b.behavior||"auto"===b.behavior||"instant"===b.behavior)return!0;if("object"===typeof b&&"smooth"===b.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+b.behavior+" is not a valid value for enumeration ScrollBehavior.");}function pa(b,h){if("Y"===
h)return b.clientHeight+a<b.scrollHeight;if("X"===h)return b.clientWidth+a<b.scrollWidth}function ka(b,h){b=z.getComputedStyle(b,null)["overflow"+h];return"auto"===b||"scroll"===b}function ma(b){var h=pa(b,"Y")&&ka(b,"Y");b=pa(b,"X")&&ka(b,"X");return h||b}function fa(b){var h=(e()-b.startTime)/468;var n=.5*(1-Math.cos(Math.PI*(1<h?1:h)));h=b.sy+(b.x-b.sy)*n;n=b.ty+(b.y-b.ty)*n;b.method.call(b.mE,h,n);h===b.x&&n===b.y||z.requestAnimationFrame(fa.bind(z,b))}function da(b,h,n){var ba=e();if(b===x.body){var w=
z;var ea=z.scrollX||z.pageXOffset;b=z.scrollY||z.pageYOffset;var ja=f.scroll}else w=b,ea=b.scrollLeft,b=b.scrollTop,ja=ua;fa({mE:w,method:ja,startTime:ba,sy:ea,ty:b,x:h,y:n})}var z=window,x=document;if(!("scrollBehavior"in x.documentElement.style&&!0!==z.Vma)){var y=z.HTMLElement||z.Element,f={scroll:z.scroll||z.scrollTo,scrollBy:z.scrollBy,bS:y.prototype.scroll||ua,scrollIntoView:y.prototype.scrollIntoView},e=z.performance&&z.performance.now?z.performance.now.bind(z.performance):Date.now,a=RegExp("MSIE |Trident/|Edge/").test(z.navigator.userAgent)?
1:0;z.scroll=z.scrollTo=function(b,h){void 0!==b&&(!0===r(b)?f.scroll.call(z,void 0!==b.left?b.left:"object"!==typeof b?b:z.scrollX||z.pageXOffset,void 0!==b.top?b.top:void 0!==h?h:z.scrollY||z.pageYOffset):da.call(z,x.body,void 0!==b.left?~~b.left:z.scrollX||z.pageXOffset,void 0!==b.top?~~b.top:z.scrollY||z.pageYOffset))};z.scrollBy=function(b,h){void 0!==b&&(r(b)?f.scrollBy.call(z,void 0!==b.left?b.left:"object"!==typeof b?b:0,void 0!==b.top?b.top:void 0!==h?h:0):da.call(z,x.body,~~b.left+(z.scrollX||
z.pageXOffset),~~b.top+(z.scrollY||z.pageYOffset)))};y.prototype.scroll=y.prototype.scrollTo=function(b,h){if(void 0!==b)if(!0===r(b)){if("number"===typeof b&&void 0===h)throw new SyntaxError("Value could not be converted");f.bS.call(this,void 0!==b.left?~~b.left:"object"!==typeof b?~~b:this.scrollLeft,void 0!==b.top?~~b.top:void 0!==h?~~h:this.scrollTop)}else h=b.left,b=b.top,da.call(this,this,"undefined"===typeof h?this.scrollLeft:~~h,"undefined"===typeof b?this.scrollTop:~~b)};y.prototype.scrollBy=
function(b,h){void 0!==b&&(!0===r(b)?f.bS.call(this,void 0!==b.left?~~b.left+this.scrollLeft:~~b+this.scrollLeft,void 0!==b.top?~~b.top+this.scrollTop:~~h+this.scrollTop):this.scroll({left:~~b.left+this.scrollLeft,top:~~b.top+this.scrollTop,behavior:b.behavior}))};y.prototype.scrollIntoView=function(b){if(!0===r(b))f.scrollIntoView.call(this,void 0===b?!0:b);else{for(b=this;b!==x.body&&!1===ma(b);)b=b.parentNode||b.host;var h=b.getBoundingClientRect(),n=this.getBoundingClientRect();b!==x.body?(da.call(this,
b,b.scrollLeft+n.left-h.left,b.scrollTop+n.top-h.top),"fixed"!==z.getComputedStyle(b).position&&z.scrollBy({left:h.left,top:h.top,behavior:"smooth"})):z.scrollBy({left:n.left,top:n.top,behavior:"smooth"})}}}}}})()}}]);}).call(this || window)
