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

46 lines
733 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
!function(){var e={5096:function(e){"use strict";function t(){return null}function n(){return t}t.isRequired=t,e.exports={and:n,between:n,booleanSome:n,childrenHavePropXorChildren:n,childrenOf:n,childrenOfType:n,childrenSequenceOf:n,componentWithName:n,disallowedIf:n,elementType:n,empty:n,explicitNull:n,forbidExtraProps:Object,integer:n,keysOf:n,mutuallyExclusiveProps:n,mutuallyExclusiveTrueProps:n,nChildren:n,nonNegativeInteger:t,nonNegativeNumber:n,numericString:n,object:n,or:n,predicate:n,range:n,ref:n,requiredBy:n,restrictedProp:n,sequenceOf:n,shape:n,stringEndsWith:n,stringStartsWith:n,uniqueArray:n,uniqueArrayOf:n,valuesOf:n,withShape:n}},4882:function(e,t,n){e.exports=n(5096)},4485:function(e,t,n){"use strict";var r=n(1539),o=n(6739),i=n(6448),a=n(1723),s=n(6840),l=n(1283);e.exports=function(){var e=l(this),t=s(i(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=a(arguments[0]));var u=r(e,0);return o(u,e,t,0,n),u}},116:function(e,t,n){"use strict";var r=n(9170),o=n(9961),i=n(4485),a=n(616),s=a(),l=n(2059),u=o(s);r(u,{getPolyfill:a,implementation:i,shim:l}),e.exports=u},9630:function(e,t,n){"use strict";var r=n(1801),o=n(9961),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},9961:function(e,t,n){"use strict";var r=n(1930),o=n(1801),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(a,i),l=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),c=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,a,arguments);if(l&&u){var n=l(t,"length");n.configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var d=function(){return s(r,i,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},4219:function(e,t,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new a},c=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,d=n(9828)(),f=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"==typeof Uint8Array?r:f(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":d?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},8495:function(e,t,n){"use strict";n.r(t),n.d(t,{addEventListener:function(){return u}});var r=!("undefined"==typeof window||!window.document||!window.document.createElement);var o=void 0;function i(){return void 0===o&&(o=function(){if(!r)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),o}function a(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function s(e){this.target=e,this.events={}}s.prototype.getEventHandlers=function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},s.prototype.handleEvent=function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach((function(e){e&&e(n)}))},s.prototype.add=function(e,t,n){var r=this,o=this.getEventHandlers(e,n);a(o),0===o.nextHandlers.length&&(o.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,o.handleEvent,n)),o.nextHandlers.push(t);var i=!0;return function(){if(i){i=!1,a(o);var s=o.nextHandlers.indexOf(t);o.nextHandlers.splice(s,1),0===o.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,o.handleEvent,n),o.handleEvent=void 0)}}};var l="__consolidated_events_handlers__";function u(e,t,n,r){e[l]||(e[l]=new s(e));var o=function(e){if(e)return i()?e:!!e.capture}(r);return e[l].add(t,n,o)}},9170:function(e,t,n){"use strict";var r=n(806),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,l=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),u=function(e,t,n,r){var o;(!(t in e)||"function"==typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;s+=1)u(e,i[s],t[i[s]],n[i[s]])};c.supportsDescriptors=!!l,e.exports=c},8110:function(e){"use strict";e.exports=function(e){if(arguments.length<1)throw new TypeError("1 argument is required");if("object"!=typeof e)throw new TypeError("Argument 1 (other) to Node.contains must be an instance of Node");var t=e;do{if(this===t)return!0;t&&(t=t.parentNode)}while(t);return!1}},6789:function(e,t,n){"use strict";var r=n(9170),o=n(8110),i=n(8267),a=i(),s=function(e,t){return a.apply(e,[t])};r(s,{getPolyfill:i,implementation:o,shim:n(714)}),e.exports=s},8267:function(e,t,n){"use strict";var r=n(8110);e.exports=function(){if("undefined"!=typeof document){if(document.contains)return document.contains;if(document.body&&document.body.contains)try{if("boolean"==typeof document.body.contains.call(document,""))return document.body.contains}catch(e){}}return r}},714:function(e,t,n){"use strict";var r=n(9170),o=n(8267);e.exports=function(){var e=o();return"undefined"!=typeof document&&(r(document,{contains:e},{contains:function(){return document.contains!==e}}),"undefined"!=typeof Element&&r(Element.prototype,{contains:e},{contains:function(){return Element.prototype.contains!==e}})),e}},1345:function(e,t,n){"use strict";var r=n(5022);e.exports=function(e
/** @license React v17.0.2
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),u=b("react.forward_ref"),c=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),v=b("react.fundamental"),g=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case p:case f:case s:return e;default:return t}}case r:return t}}}},2797:function(e,t,n){"use strict";n(9214)},5249:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n(3777),i=n(5443),a=n(8659),s=n(3082),l=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<s.length;++a)if(n=e[s[a]],i(n)&&(r=n.call(e),o(r)))return r;throw new TypeError("No default value")},u=function(e,t){var n=e[t];if(null!=n){if(!i(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}};e.exports=function(e){if(o(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=u(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var i=t.call(e,n);if(o(i))return i;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||s(e))&&(n="string"),l(e,"default"===n?"number":n)}},8023:function(e,t,n){"use strict";var r=Object.prototype.toString,o=n(3777),i=n(5443),a=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,a,s=t===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<s.length;++a)if(i(e[s[a]])&&(n=e[s[a]](),o(n)))return n;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")};e.exports=function(e){return o(e)?e:arguments.length>1?a(e,arguments[1]):a(e)}},3777:function(e){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},2920:function(e){function t(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function n(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function r(e,t,n,r,o){return n.bind(t,e,r,o)}function o(e,o){return r(e,this,1===e.length?t:n,o.cache.create(),o.serializer)}function i(){return JSON.stringify(arguments)}function a(){this.cache=Object.create(null)}a.prototype.has=function(e){return e in this.cache},a.prototype.get=function(e){return this.cache[e]},a.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new a}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:o)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return r(e,this,n,t.cache.create(),t.serializer)},monadic:function(e,n){return r(e,this,t,n.cache.create(),n.serializer)}}},3889:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disableP
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case l:return e;default:return t}}case o:return t}}}function x(e){return _(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||_(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=_},338:function(e,t,n){"use strict";e.exports=n(4821)},9217:function(e){var t={invalidPredicate:"`predicate` must be a function",invalidPropValidator:"`propValidator` must be a function",requiredCore:"is marked as required",invalidTypeCore:"Invalid input type",predicateFailureCore:"Failed to succeed with predicate",anonymousMessage:"<<anonymous>>",baseInvalidMessage:"Invalid "};function n(e){if("function"!=typeof e)throw new Error(t.invalidPropValidator);var n=e.bind(null,!1,null);return n.isRequired=e.bind(null,!0,null),n.withPredicate=function(n){if("function"!=typeof n)throw new Error(t.invalidPredicate);var r=e.bind(null,!1,n);return r.isRequired=e.bind(null,!0,n),r},n}function r(e,n,r){return new Error("The prop `"+e+"` "+t.requiredCore+" in `"+n+"`, but its value is `"+r+"`.")}e.exports={constructPropValidatorVariations:n,createMomentChecker:function(e,o,i,a){return n((function(n,s,l,u,c,d,f){var p=l[u],h=typeof p,m=function(e,t,n,o){var i=void 0===o,a=null===o;if(e){if(i)return r(n,t,"undefined");if(a)return r(n,t,"null")}return i||a?null:-1}(n,c=c||t.anonymousMessage,f=f||u,p);if(-1!==m)return m;if(o&&!o(p))return new Error(t.invalidTypeCore+": `"+u+"` of type `"+h+"` supplied to `"+c+"`, expected `"+e+"`.");if(!i(p))return new Error(t.baseInvalidMessage+d+" `"+u+"` of type `"+h+"` supplied to `"+c+"`, expected `"+a+"`.");if(s&&!s(p)){var v=s.name||t.anonymousMessage;return new Error(t.baseInvalidMessage+d+" `"+u+"` of type `"+h+"` supplied to `"+c+"`. "+t.predicateFailureCore+" `"+v+"`.")}return null}))},messages:t}},6150:function(e,t,n){var r=n(6292),o=n(3416),i=n(9217);e.exports={momentObj:i.createMomentChecker("object",(function(e){return"object"==typeof e}),(function(e){return o.isValidMoment(e)}),"Moment"),momentString:i.createMomentChecker("string",(function(e){return"string"==typeof e}),(function(e){return o.isValidMoment(r(e))}),"Moment"),momentDurationObj:i.createMomentChecker("object",(function(e){return"object"==typeof e}),(functi
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var _i=function(e,t){return _i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},_i(e,t)};function xi(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ei=function(){return Ei=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ei.apply(this,arguments)};function ki(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function Si(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Ci(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var Pi=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Oi={measureLayout:Pi(["layout","layoutId","drag","_layoutResetTransform"]),animation:Pi(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:Pi(["exit"]),drag:Pi(["drag","dragControls"]),focus:Pi(["whileFocus"]),hover:Pi(["whileHover","onHoverStart","onHoverEnd"]),tap:Pi(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Pi(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:Pi(["layout","layoutId"])};var Mi=(0,b.createContext)({strict:!1}),Ti=Object.keys(Oi),Di=Ti.length;var Ii=(0,b.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),Ai=(0,b.createContext)({});var Ri=(0,b.createContext)(null);function Ni(e){var t=(0,b.useRef)(null);return null===t.current&&(t.current=e()),t.current}function Li(){var e=(0,b.useContext)(Ri);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=Bi();(0,b.useEffect)((function(){return r(o)}),[]);return!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function Fi(e){return null===e||e.isPresent}var ji=0,zi=function(){return ji++},Bi=function(){return Ni(zi)},Hi=(0,b.createContext)(null),Vi="undefined"!=typeof window,Wi=Vi?b.useLayoutEffect:b.useEffect;function Ui(e,t,n,r){var o=(0,b.useContext)(Ii),i=(0,b.useContext)(Mi),a=(0,b.useContext)(Ai).visualElement,s=(0,b.useContext)(Ri),l=function(e){var t=e.layoutId,n=(0,b.useContext)(Hi);return n&&void 0!==t?n+"-"+t:t}(n),u=(0,b.useRef)(void 0);r||(r=i.renderer),!u.current&&r&&(u.current=r(e,{visualState:t,parent:a,props:Ei(Ei({},n),{layoutId:l}),presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial)}));var c=u.current;return Wi((function(){c&&(c.setProps(Ei(Ei(Ei({},o),n),{layoutId:l})),c.isPresent=Fi(s),c.isPresenceRoot=!a||a.presenceId!==(null==s?void 0:s.id),c.syncRender())})),(0,b.useEffect)((function(){var e;c&&(null===(e=c.animationState)||void 0===e||e.animateChanges())})),Wi((function(){return function(){return null==c?void 0:c.notifyUnmount()}}),[]),c}function $i(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ki(e){return Array.isArray(e)}function Gi(e){return"string"==typeof e||Ki(e)}function qi(e,t,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"string"==typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"==typeof t?t(null!=n?n:e.custom,r,o):t}function Yi(e,t,n){var r=e.getProps();return qi(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((functio
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,ZT=`calc( ( ${ip.spinnerSize} - ${ip.spinnerSize} * ( 2 / 3 ) ) / 2 )`,JT=Fn("span",{target:"e1s472tg0"})("display:inline-block;background-color:",ko.gray[600],";width:",ip.spinnerSize,";height:",ip.spinnerSize,";opacity:0.7;margin:5px 11px 0;border-radius:100%;position:relative;&::before{content:'';position:absolute;background-color:",ko.white,";top:",ZT,";left:",ZT,";width:calc( ",ip.spinnerSize," / 4.5 );height:calc( ",ip.spinnerSize," / 4.5 );border-radius:100%;transform-origin:calc( ",ip.spinnerSize," / 3 ) calc( ",ip.spinnerSize," / 3 );animation:",XT," 1s infinite linear;}");function QT(){return(0,s.createElement)(JT,{className:"components-spinner"})}var eD=Pn((function(e,t){const n=ry(e);return(0,s.createElement)(zn,a({},n,{ref:t}))}),"Surface");const tD=e=>{let{tabId:t,onClick:n,children:r,selected:o,...i}=e;return(0,s.createElement)(Vn,a({role:"tab",tabIndex:o?null:-1,"aria-selected":o,id:t,onClick:n},i),r)};function nD(e){var t;let{className:n,children:r,tabs:o,initialTabName:i,orientation:a="horizontal",activeClass:u="is-active",onSelect:d=l.noop}=e;const p=(0,f.useInstanceId)(nD,"tab-panel"),[h,m]=(0,s.useState)(null),v=e=>{m(e),d(e)},g=(0,l.find)(o,{name:h}),y=`${p}-${null!==(t=null==g?void 0:g.name)&&void 0!==t?t:"none"}`;return(0,s.useEffect)((()=>{(0,l.find)(o,{name:h})||m(i||(o.length>0?o[0].name:null))}),[o]),(0,s.createElement)("div",{className:n},(0,s.createElement)(_E,{role:"tablist",orientation:a,onNavigate:(e,t)=>{t.click()},className:"components-tab-panel__tabs"},o.map((e=>(0,s.createElement)(tD,{className:c()("components-tab-panel__tabs-item",e.className,{[u]:e.name===h}),tabId:`${p}-${e.name}`,"aria-controls":`${p}-${e.name}-view`,selected:e.name===h,key:e.name,onClick:(0,l.partial)(v,e.name)},e.title)))),g&&(0,s.createElement)("div",{key:y,"aria-labelledby":y,role:"tabpanel",id:`${y}-view`,className:"components-tab-panel__tab-content"},r(g)))}var rD=(0,s.forwardRef)((function e(t,n){let{label:r,hideLabelFromVision:o,value:i,help:l,className:u,onChange:c,type:d="text",...p}=t;const h=`inspector-text-control-${(0,f.useInstanceId)(e)}`;return(0,s.createElement)(qm,{label:r,hideLabelFromVision:o,id:h,help:l,className:u},(0,s.createElement)("input",a({className:"components-text-control__input",type:d,id:h,value:i,onChange:e=>c(e.target.value),"aria-describedby":l?h+"__help":void 0,ref:n},p)))}));const oD=Nr("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",ip.radiusBlockUi,";border:",ip.borderWidth," solid ",ko.ui.border,";",""),iD=Nr("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",ip.borderWidthFocus," - ",ip.borderWidth," ) var( --wp-admin-theme-color );outline:2px solid transparent;","");var aD={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"};const sD=Nr("font-family:",Vm("default.fontFamily"),";padding:6px 8px;",oD,";font-size:",Vm("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${aD["small"]})`,"{font-size:",Vm("default.fontSize"),";line-height:normal;}&:focus{",iD,";}&::-webkit-input-placeholder{color:",ko.darkGray.placeholder,";}&::-moz-placeholder{opacity:1;color:",ko.darkGray.placeholder,";}&:-ms-input-placeholder{color:",ko.darkGray.placeholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",ko.lightGray.placeholder,";}&::-moz-placeholder{opacity:1;color:",ko.lightGray.placeholder,";}&:-ms-input-placeholder{color:",ko.lightGray.placeholder,";}}","");const lD=Fn("textarea",{target:"ebk7yr50"})("width:100%;",sD,";");function uD(e){let{label:t,hideLabelFromVision:n,value:r,help:o,onChange:i,rows:l=4,className:u,...c}=e;const d=`inspector-textarea-control-${(0,f.useInstanceId)(uD)}`;return(0,s.createElement)(qm,{label:t,hideLabelFromVision:n,id:d,help:o,className:u},(0,s.createElement)(lD,a({className:"components-textarea-control__input",id:d,rows:l,onChange:e=>i(e.target.value),"aria-describedby":o?d+"__help":void 0,value:r},c)))}var cD=e=>{let{text:t="",highlight:n=""}=e;const r=n.trim();if(!r)return t;const o=new RegExp(`(${(0,l.es